const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor-vue3-toastify-DHXAGmwn.css","./vendor-vue3-html2pdf-DBfPfU4j.css","./default-ycolIhTc.css","./solid-DwahmAJS.css","./number-CO-beywP.css","./minimal-CgE1GpmD.css"])))=>i.map(i=>d[i]);
import{_ as a}from"./convert-case-to-camel-case.utils-CK5dBN7n.js";import{u as S}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{u as b}from"./EmbedPopup-BUj0yGgY.js";import{d as A,e as r,$ as P,k,i as x,m as p,p as u,v as T}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as B,r as D}from"./vendor-vue-reactivity-CheHbvBM.js";import"./vendor-vue-shared-DrzsEcag.js";import"./settings.consts-C6F6lZ8o.js";import"./admin-BM775jCq.js";import"./vendor-pinia-BSPefQhS.js";import"./vendor-axios-xsH4HHeE.js";import"./vendor-vue3-toastify-DBGjcIyK.js";/* empty css               */import"./vendor-vue3-html2pdf-KR020wX8.js";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-html2canvas-BfYXEYrK.js";import"./vendor-vueform-slider-CCH9_7pb.js";import"./useAppearanceStore-IzenP-G4.js";import"./vendor-vue-flow-CRbOssRZ.js";const X=A({__name:"Section",props:{field:{}},setup(m){S(e=>({"8c1f6cdc":h.value}));const f=m,{field:s}=B(f),_=b(),i=D(!!s.value.defaultCollapsed),v=()=>{s.value.collapsible&&(i.value=!i.value)},y=e=>{var t;return e.type==="section"&&!!((t=e.styles)!=null&&t.applyToAll)},d=()=>{for(const e of _.builderFields){const t=e.groupElements.find(y);if(t)return t}},c=r(()=>{var o,l,n;const e=d(),t=(o=e==null?void 0:e.styles)==null?void 0:o.style;return t||((n=(l=s.value)==null?void 0:l.styles)==null?void 0:n.style)||"default"}),C=r(()=>{const e=s.value,t=d();if(t!=null&&t.styles){const o=t.styles,l=e.styles||{},n={...l,style:o.style??l.style,textColor:o.textColor??l.textColor,backgroundColor:o.backgroundColor??l.backgroundColor};return{...e,styles:n}}return e}),g=r(()=>(s.value.fields||[]).some(t=>{var o;return!t.hidden&&!((o=t.alias)!=null&&o.includes("total"))})),h=r(()=>{var e;return((e=s.value.styles)==null?void 0:e.textColor)||"#001931"}),E=r(()=>{const e=c.value,t={default:()=>a(()=>import("./default-CD870XYD.js"),__vite__mapDeps([0,1,2]),import.meta.url),solid:()=>a(()=>import("./solid-BJqT5RWZ.js"),__vite__mapDeps([0,1,3]),import.meta.url),number:()=>a(()=>import("./number-1xc35YK8.js"),__vite__mapDeps([0,1,4]),import.meta.url),minimal:()=>a(()=>import("./minimal-CGsWiGkd.js"),__vite__mapDeps([0,1,5]),import.meta.url)},o=t[e]||t.default;return P(o)});return(e,t)=>(x(),k(T(E.value),{field:C.value,"effective-style":c.value,"has-fields":g.value,collapsed:i.value,"toggle-collapse":v},{headerPrepend:p(()=>[u(e.$slots,"headerPrepend")]),headerAppend:p(()=>[u(e.$slots,"headerAppend")]),default:p(()=>[u(e.$slots,"default")]),_:3},8,["field","effective-style","has-fields","collapsed"]))}});export{X as default};
//# sourceMappingURL=Section-Bk2ODNDW.js.map
