import{T as B}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{a as N}from"./MobileTotalSummary-DueRF4Zq.js";import{d as A,e as b,f as l,t as r,i as o,x as i,j as S,m as T,F as c,r as v,k as w}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as P,u as t}from"./vendor-vue-reactivity-CheHbvBM.js";import{b as d,t as V,a as x}from"./vendor-vue-shared-DrzsEcag.js";import{_ as z}from"./vendor-vue3-html2pdf-KR020wX8.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.js";import"./widget-BSjzAbGy.js";import"./appStore-CFAkQG2b.js";import"./vendor-pinia-BSPefQhS.js";import"./appearanceStore-Cp-euDX2.js";import"./settingsStore-8bwiLMEn.js";import"./fieldsStore-CQRN0FvQ.js";import"./translationsStore-D6vLzgNA.js";import"./vendor-moment-Cv92BTSA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-php-date-formatter-DSpPwBF8.js";import"./callbackStore-BhxBUA6V.js";import"./pageBreakerStore-BevSHYnU.js";import"./vendor-vueform-slider-CCH9_7pb.js";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-html2canvas-BfYXEYrK.js";const L={class:"ccb-section__header-left"},j={key:0,class:"ccb-section__icon"},D=["src"],I={key:0,class:"ccb-section__actions"},M={class:"ccb-section__actions-item"},R={class:"ccb-section__content"},$={class:"ccb-section__body"},q={class:"ccb-section__fields",ref:"fields"},G=A({__name:"solid",props:{field:{},effectiveStyle:{},hasFields:{type:Boolean},collapsed:{type:Boolean},toggleCollapse:{type:Function}},setup(g){const k=g,{field:e}=P(k),C=b(()=>s=>Array.isArray(s)?[s[1]]:Array.from(s.values())),F=b(()=>e.value.showName);return(s,p)=>{var m,_,u,f,y,h;return s.hasFields?(o(),l("div",{key:0,class:x(["ccb-section",[{collapsed:s.collapsed},s.effectiveStyle||((m=t(e).styles)==null?void 0:m.style)]])},[F.value?(o(),l("div",{key:0,class:"ccb-section__header",onClick:p[0]||(p[0]=(...n)=>s.toggleCollapse&&s.toggleCollapse(...n)),style:d({backgroundColor:(_=t(e).styles)==null?void 0:_.backgroundColor})},[i("div",L,[(u=t(e).styles)!=null&&u.iconPath?(o(),l("div",j,[i("img",{src:(f=t(e).styles)==null?void 0:f.iconPath,alt:"section icon"},null,8,D)])):r("",!0),i("h2",{class:"ccb-section__title",style:d({color:(y=t(e).styles)==null?void 0:y.textColor})},V(t(e).label),5)]),t(e).collapsible?(o(),l("div",I,[i("div",M,[i("i",{class:"ccb-icon-Path-3398",style:d({color:(h=t(e).styles)==null?void 0:h.textColor})},null,4)])])):r("",!0)],4)):r("",!0),i("div",R,[S(B,{name:"fade"},{default:T(()=>[i("div",$,[i("div",q,[(o(!0),l(c,null,v(t(e).fields,n=>(o(),l(c,null,[(o(!0),l(c,null,v(C.value(n),a=>(o(),l(c,null,[a.fieldName&&!a.hidden&&!a.hideAndLeaveTotal&&!a.alias.includes("total")?(o(),w(N,{name:a.fieldName,field:a,key:a.alias},null,8,["name","field"])):r("",!0)],64))),256))],64))),256))],512)])]),_:1})])],2)):r("",!0)}}}),me=z(G,[["__scopeId","data-v-e6301984"]]);export{me as default};
//# sourceMappingURL=solid-Dex7_SOc.js.map
