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