const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor-vueform-slider-BwB83iY9.css","./widget-C1-ZTn2I.css","./vendor-vue3-html2pdf-DBfPfU4j.css","./MobileTotalSummary-DGiZ7g0m.css","./default-Chva357q.css","./solid-D41dOQGo.css","./number-CeIVAaFr.css","./minimal-DAqKAtss.css"])))=>i.map(i=>d[i]);
import{_ as i}from"./convert-case-to-camel-case.utils-CK5dBN7n.js";import{u as C}from"./fieldsStore-CQRN0FvQ.js";import{d as g,e as a,$ as E,k as S,i as A,v as F}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as k,r as b}from"./vendor-vue-reactivity-CheHbvBM.js";import"./vendor-pinia-BSPefQhS.js";import"./settingsStore-8bwiLMEn.js";import"./appStore-CFAkQG2b.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"./vendor-vue-shared-DrzsEcag.js";const $=g({__name:"Section",props:{field:{}},setup(m){const d=m,{field:s}=k(d),n=b(s.value.defaultCollapsed),p=()=>{s.value.collapsible&&(n.value=!n.value)},f=t=>{var e;return t.fieldName==="section"&&!!((e=t.styles)!=null&&e.applyToAll)},c=()=>C().getFields.find(f),u=a(()=>{var o,l,r;let t=((l=(o=s.value)==null?void 0:o.styles)==null?void 0:l.style)||"default";const e=c();return(r=e==null?void 0:e.styles)!=null&&r.style&&(t=e.styles.style),t}),_=a(()=>{const t=s.value,e=c();if(e!=null&&e.styles){const o=e.styles,l=t.styles||{},r={...l,style:o.style??l.style,textColor:o.textColor??l.textColor,backgroundColor:o.backgroundColor??l.backgroundColor};return{...t,styles:r}}return t}),y=a(()=>s.value.fields.size>0&&Array.from(s.value.fields.values()).some(t=>!t.hidden&&!t.alias.includes("total"))),v=a(()=>{const t=u.value,e={default:()=>i(()=>import("./default-CcxOwdw9.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),solid:()=>i(()=>import("./solid-Dex7_SOc.js"),__vite__mapDeps([0,1,2,3,5]),import.meta.url),number:()=>i(()=>import("./number-niY0RHki.js"),__vite__mapDeps([0,1,2,3,6]),import.meta.url),minimal:()=>i(()=>import("./minimal-BnsFcWfi.js"),__vite__mapDeps([0,1,2,3,7]),import.meta.url)},o=e[t]||e.default;return E(o)});return(t,e)=>(A(),S(F(v.value),{field:_.value,"effective-style":u.value,"has-fields":y.value,collapsed:n.value,"toggle-collapse":p},null,8,["field","effective-style","has-fields","collapsed"]))}});export{$ as default};
//# sourceMappingURL=index-ytyP6lx5.js.map
