import{a as B,C as N,b,m as l,q as i,g as o,p as a,P as d,u as t,D as w,n as A,w as P,F as r,H as v,f as S,T,I as V}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{a as z}from"./WooRedirectCart-BJuCLpzi.js";import{_ as D}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ThankYouPage-bf4cLsjC.js";import"./widget-BUAABBRb.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./translationsStore-DBJu9sBR.js";import"./index-CEuXXsrq.js";const I={class:"ccb-section__header-left"},L={key:0,class:"ccb-section__icon"},q=["src"],x={key:0,class:"ccb-section__actions"},H={class:"ccb-section__actions-item"},M={class:"ccb-section__content"},R={class:"ccb-section__body"},$={class:"ccb-section__fields",ref:"fields"},j=B({__name:"solid",props:{field:{},effectiveStyle:{},hasFields:{type:Boolean},collapsed:{type:Boolean},toggleCollapse:{type:Function}},setup(g){const C=g,{field:e}=N(C),k=b(()=>s=>Array.isArray(s)?[s[1]]:Array.from(s.values())),F=b(()=>e.value.showName);return(s,_)=>{var u,p,f,m,y,h;return s.hasFields?(o(),l("div",{key:0,class:V(["ccb-section",[{collapsed:s.collapsed},s.effectiveStyle||((u=t(e).styles)==null?void 0:u.style)]])},[F.value?(o(),l("div",{key:0,class:"ccb-section__header",onClick:_[0]||(_[0]=(...n)=>s.toggleCollapse&&s.toggleCollapse(...n)),style:d({backgroundColor:(p=t(e).styles)==null?void 0:p.backgroundColor})},[a("div",I,[(f=t(e).styles)!=null&&f.iconPath?(o(),l("div",L,[a("img",{src:(m=t(e).styles)==null?void 0:m.iconPath,alt:"section icon"},null,8,q)])):i("",!0),a("h2",{class:"ccb-section__title",style:d({color:(y=t(e).styles)==null?void 0:y.textColor})},w(t(e).label),5)]),t(e).collapsible?(o(),l("div",x,[a("div",H,[a("i",{class:"ccb-icon-Path-3398",style:d({color:(h=t(e).styles)==null?void 0:h.textColor})},null,4)])])):i("",!0)],4)):i("",!0),a("div",M,[A(T,{name:"fade"},{default:P(()=>[a("div",R,[a("div",$,[(o(!0),l(r,null,v(t(e).fields,n=>(o(),l(r,null,[(o(!0),l(r,null,v(k.value(n),c=>(o(),l(r,null,[c.fieldName&&!c.hidden&&!c.hideAndLeaveTotal&&!c.alias.includes("total")?(o(),S(z,{name:c.fieldName,field:c,key:c.alias},null,8,["name","field"])):i("",!0)],64))),256))],64))),256))],512)])]),_:1})])],2)):i("",!0)}}}),Z=D(j,[["__scopeId","data-v-ab6e3a5b"]]);export{Z as default};
//# sourceMappingURL=solid-DJo630SC.js.map
