const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./widget-DZZgQDKu.css","./index-DBfPfU4j.css","./ThankYouPage-CMGrCKP5.css","./WooRedirectCart-vxzERp1D.css","./default-CZthQ4dU.css","./solid-Ueeo9WdD.css","./number-DxxXWF_g.css","./minimal-BU8exznA.css"])))=>i.map(i=>d[i]);
import{a as C,C as g,k as E,b as a,e as S,_ as n,f as A,g as F,r as b}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{c as k}from"./widget-BUAABBRb.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./translationsStore-DBJu9sBR.js";const h=C({__name:"Section",props:{field:{}},setup(d){const m=d,{field:o}=g(m),i=E(o.value.defaultCollapsed),p=()=>{o.value.collapsible&&(i.value=!i.value)},f=t=>{var e;return t.fieldName==="section"&&!!((e=t.styles)!=null&&e.applyToAll)},c=()=>k().getFields.find(f),u=a(()=>{var l,s,r;let t=((s=(l=o.value)==null?void 0:l.styles)==null?void 0:s.style)||"default";const e=c();return(r=e==null?void 0:e.styles)!=null&&r.style&&(t=e.styles.style),t}),_=a(()=>{const t=o.value,e=c();if(e!=null&&e.styles){const l=e.styles,s=t.styles||{},r={...s,style:l.style??s.style,textColor:l.textColor??s.textColor,backgroundColor:l.backgroundColor??s.backgroundColor};return{...t,styles:r}}return t}),y=a(()=>o.value.fields.size>0&&Array.from(o.value.fields.values()).some(t=>!t.hidden&&!t.alias.includes("total"))),v=a(()=>{const t=u.value,e={default:()=>n(()=>import("./default-BBduQftN.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),solid:()=>n(()=>import("./solid-DJo630SC.js"),__vite__mapDeps([0,1,2,3,5]),import.meta.url),number:()=>n(()=>import("./number-gqCvfXyb.js"),__vite__mapDeps([0,1,2,3,6]),import.meta.url),minimal:()=>n(()=>import("./minimal-DA52yowU.js"),__vite__mapDeps([0,1,2,3,7]),import.meta.url)},l=e[t]||e.default;return S(l)});return(t,e)=>(F(),A(b(v.value),{field:_.value,"effective-style":u.value,"has-fields":y.value,collapsed:i.value,"toggle-collapse":p},null,8,["field","effective-style","has-fields","collapsed"]))}});export{h as default};
//# sourceMappingURL=index-DBIsKWCU.js.map
