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","./ProBadge-Bh7l2BmQ.css","./Button-nVDREZcB.css","./Popup-D_SeLUeJ.css","./ThankYouPage-CUYYzeot.css","./index-COFY5ciX.css","./MobileTotalSummary-C2edHT0S.css","./default-Z7NIjgah.css","./solid-D-wmLVLC.css","./number-a3ps24Wc.css","./minimal-B9hbXRiq.css"])))=>i.map(i=>d[i]);
import{_ as i}from"./convert-case-to-camel-case.utils-CK5dBN7n.js";import{u as C}from"./fieldsStore-CNpVuoPu.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-D44kgdRS.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url),solid:()=>i(()=>import("./solid-CfsmFOzs.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,10]),import.meta.url),number:()=>i(()=>import("./number-BHkG2jF3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,11]),import.meta.url),minimal:()=>i(()=>import("./minimal-BlDJ2R60.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,12]),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-ChbnXaCT.js.map
