import{T as B}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{a as N}from"./MobileTotalSummary.vue_vue_type_style_index_0_lang-CAUpXdiw.js";import{d as A,e as b,f as i,t as a,i as s,x as l,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-RmM7xAIR.js";import"./appStore-CFAkQG2b.js";import"./vendor-pinia-BSPefQhS.js";import"./appearanceStore-Cp-euDX2.js";import"./settingsStore-8bwiLMEn.js";import"./fieldsStore-CNpVuoPu.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-Bkj6mcUr.js";import"./vendor-vueform-slider-CCH9_7pb.js";import"./index-D2j7l29-.js";import"./Wrapper.vue_vue_type_script_setup_true_lang-D49ddy6w.js";import"./Button.vue_vue_type_style_index_0_lang-CxqKrtR4.js";import"./ProBadge.vue_vue_type_style_index_0_lang-DqDXUf8-.js";import"./Popup.vue_vue_type_style_index_0_lang-uNTBWSeR.js";import"./ThankYouPage-CQHohb6N.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(()=>o=>Array.isArray(o)?[o[1]]:Array.from(o.values())),F=b(()=>e.value.showName);return(o,p)=>{var m,_,u,f,y,h;return o.hasFields?(s(),i("div",{key:0,class:x(["ccb-section",[{collapsed:o.collapsed},o.effectiveStyle||((m=t(e).styles)==null?void 0:m.style)]])},[F.value?(s(),i("div",{key:0,class:"ccb-section__header",onClick:p[0]||(p[0]=(...n)=>o.toggleCollapse&&o.toggleCollapse(...n)),style:d({backgroundColor:(_=t(e).styles)==null?void 0:_.backgroundColor})},[l("div",L,[(u=t(e).styles)!=null&&u.iconPath?(s(),i("div",j,[l("img",{src:(f=t(e).styles)==null?void 0:f.iconPath,alt:"section icon"},null,8,D)])):a("",!0),l("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?(s(),i("div",I,[l("div",M,[l("i",{class:"ccb-icon-Path-3398",style:d({color:(h=t(e).styles)==null?void 0:h.textColor})},null,4)])])):a("",!0)],4)):a("",!0),l("div",R,[S(B,{name:"fade"},{default:T(()=>[l("div",$,[l("div",q,[(s(!0),i(c,null,v(t(e).fields,n=>(s(),i(c,null,[(s(!0),i(c,null,v(C.value(n),r=>(s(),i(c,null,[r.fieldName&&!r.hidden&&!r.hideAndLeaveTotal&&!r.alias.includes("total")?(s(),w(N,{name:r.fieldName,field:r,key:r.alias},null,8,["name","field"])):a("",!0)],64))),256))],64))),256))],512)])]),_:1})])],2)):a("",!0)}}}),be=z(G,[["__scopeId","data-v-1f4553ba"]]);export{be as default};
//# sourceMappingURL=solid-CfsmFOzs.js.map
