import{T as F}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{a as B}from"./MobileTotalSummary.vue_vue_type_style_index_0_lang-CAUpXdiw.js";import{d as N,e as y,f as s,t as a,i as o,x as i,j as A,m as S,F as n,r as h,k as T}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as w,u as l}from"./vendor-vue-reactivity-CheHbvBM.js";import{b as v,t as x,a as P}from"./vendor-vue-shared-DrzsEcag.js";import{_ as V}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 z={class:"ccb-section__header-left"},L={key:0,class:"ccb-section__icon"},j=["src"],D={key:0,class:"ccb-section__actions"},I={class:"ccb-section__content"},M={class:"ccb-section__body"},R={class:"ccb-section__fields",ref:"fields"},$=N({__name:"default",props:{field:{},effectiveStyle:{},hasFields:{type:Boolean},collapsed:{type:Boolean},toggleCollapse:{type:Function}},setup(b){const g=b,{field:e}=w(g),k=y(()=>t=>Array.isArray(t)?[t[1]]:Array.from(t.values())),C=y(()=>e.value.showName);return(t,c)=>{var d,m,_,f,u;return t.hasFields?(o(),s("div",{key:0,class:P(["ccb-section",[{collapsed:t.collapsed},t.effectiveStyle||((d=l(e).styles)==null?void 0:d.style)]]),style:v({"--ccb-section-text-color":(m=l(e).styles)==null?void 0:m.textColor})},[C.value?(o(),s("div",{key:0,class:"ccb-section__header",onClick:c[0]||(c[0]=(...p)=>t.toggleCollapse&&t.toggleCollapse(...p))},[i("div",z,[(_=l(e).styles)!=null&&_.iconPath?(o(),s("div",L,[i("img",{src:(f=l(e).styles)==null?void 0:f.iconPath,alt:"section icon"},null,8,j)])):a("",!0),i("h2",{class:"ccb-section__title",style:v({color:(u=l(e).styles)==null?void 0:u.textColor})},x(l(e).label),5)]),l(e).collapsible?(o(),s("div",D,c[1]||(c[1]=[i("div",{class:"ccb-section__actions-item"},[i("i",{class:"ccb-icon-Path-3514"})],-1)]))):a("",!0)])):a("",!0),i("div",I,[A(F,{name:"fade"},{default:S(()=>[i("div",M,[i("div",R,[(o(!0),s(n,null,h(l(e).fields,p=>(o(),s(n,null,[(o(!0),s(n,null,h(k.value(p),r=>(o(),s(n,null,[r.fieldName&&!r.hidden&&!r.hideAndLeaveTotal&&!r.alias.includes("total")?(o(),T(B,{name:r.fieldName,field:r,key:r.alias},null,8,["name","field"])):a("",!0)],64))),256))],64))),256))],512)])]),_:1})])],6)):a("",!0)}}}),ye=V($,[["__scopeId","data-v-e5819c6c"]]);export{ye as default};
//# sourceMappingURL=default-D44kgdRS.js.map
