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 s,x as i,j as A,m as S,F as n,r as b,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 h,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-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__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(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,c)=>{var p,m,_,f,u;return t.hasFields?(s(),o("div",{key:0,class:P(["ccb-section",[{collapsed:t.collapsed},t.effectiveStyle||((p=l(e).styles)==null?void 0:p.style)]]),style:h({"--ccb-section-text-color":(m=l(e).styles)==null?void 0:m.textColor})},[C.value?(s(),o("div",{key:0,class:"ccb-section__header",onClick:c[0]||(c[0]=(...d)=>t.toggleCollapse&&t.toggleCollapse(...d))},[i("div",z,[(_=l(e).styles)!=null&&_.iconPath?(s(),o("div",L,[i("img",{src:(f=l(e).styles)==null?void 0:f.iconPath,alt:"section icon"},null,8,j)])):r("",!0),i("h2",{class:"ccb-section__title",style:h({color:(u=l(e).styles)==null?void 0:u.textColor})},x(l(e).label),5)]),l(e).collapsible?(s(),o("div",D,c[1]||(c[1]=[i("div",{class:"ccb-section__actions-item"},[i("i",{class:"ccb-icon-Path-3514"})],-1)]))):r("",!0)])):r("",!0),i("div",I,[A(F,{name:"fade"},{default:S(()=>[i("div",M,[i("div",R,[(s(!0),o(n,null,b(l(e).fields,d=>(s(),o(n,null,[(s(!0),o(n,null,b(k.value(d),a=>(s(),o(n,null,[a.fieldName&&!a.hidden&&!a.hideAndLeaveTotal&&!a.alias.includes("total")?(s(),T(B,{name:a.fieldName,field:a,key:a.alias},null,8,["name","field"])):r("",!0)],64))),256))],64))),256))],512)])]),_:1})])],6)):r("",!0)}}}),de=V($,[["__scopeId","data-v-34ca76b1"]]);export{de as default};
//# sourceMappingURL=default-CcxOwdw9.js.map
