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 n,r as v,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 x,a as V}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-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 L={class:"ccb-section__header-left"},P={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:"minimal",props:{field:{},effectiveStyle:{},hasFields:{type:Boolean},collapsed:{type:Boolean},toggleCollapse:{type:Function}},setup(h){const g=h,{field:e}=w(g),k=y(()=>s=>Array.isArray(s)?[s[1]]:Array.from(s.values())),C=y(()=>e.value.showName);return(s,c)=>{var m,p,_,f,u;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)]]),style:b({"--ccb-section-text-color":(p=l(e).styles)==null?void 0:p.textColor})},[C.value?(t(),o("div",{key:0,class:"ccb-section__header",onClick:c[0]||(c[0]=(...d)=>s.toggleCollapse&&s.toggleCollapse(...d))},[i("div",L,[(_=l(e).styles)!=null&&_.iconPath?(t(),o("div",P,[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:b({color:(u=l(e).styles)==null?void 0:u.textColor})},x(l(e).label),5)]),l(e).collapsible?(t(),o("div",D,c[1]||(c[1]=[i("div",{class:"ccb-section__actions-item"},[i("div",{class:"ccb-section__actions-plus"})],-1)]))):r("",!0)])):r("",!0),i("div",I,[A(F,{name:"fade"},{default:S(()=>[i("div",M,[i("div",R,[(t(!0),o(n,null,v(l(e).fields,d=>(t(),o(n,null,[(t(!0),o(n,null,v(k.value(d),a=>(t(),o(n,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})])],6)):r("",!0)}}}),de=z($,[["__scopeId","data-v-c4c47d2c"]]);export{de as default};
//# sourceMappingURL=minimal-BnsFcWfi.js.map
