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