import{a as F,C as B,b as y,m as o,q as i,g as t,p as l,u as a,P as b,D as N,n as w,w as A,F as n,H as h,f as P,T as S,I as T}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{a as V}from"./WooRedirectCart-BJuCLpzi.js";import{_ as x}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 z={class:"ccb-section__header-left"},D={key:0,class:"ccb-section__icon"},I=["src"],L={key:0,class:"ccb-section__actions"},q={class:"ccb-section__content"},H={class:"ccb-section__body"},M={class:"ccb-section__fields",ref:"fields"},R=F({__name:"default",props:{field:{},effectiveStyle:{},hasFields:{type:Boolean},collapsed:{type:Boolean},toggleCollapse:{type:Function}},setup(v){const g=v,{field:e}=B(g),C=y(()=>s=>Array.isArray(s)?[s[1]]:Array.from(s.values())),k=y(()=>e.value.showName);return(s,r)=>{var _,u,f,p,m;return s.hasFields?(t(),o("div",{key:0,class:T(["ccb-section",[{collapsed:s.collapsed},s.effectiveStyle||((_=a(e).styles)==null?void 0:_.style)]]),style:b({"--ccb-section-text-color":(u=a(e).styles)==null?void 0:u.textColor})},[k.value?(t(),o("div",{key:0,class:"ccb-section__header",onClick:r[0]||(r[0]=(...d)=>s.toggleCollapse&&s.toggleCollapse(...d))},[l("div",z,[(f=a(e).styles)!=null&&f.iconPath?(t(),o("div",D,[l("img",{src:(p=a(e).styles)==null?void 0:p.iconPath,alt:"section icon"},null,8,I)])):i("",!0),l("h2",{class:"ccb-section__title",style:b({color:(m=a(e).styles)==null?void 0:m.textColor})},N(a(e).label),5)]),a(e).collapsible?(t(),o("div",L,r[1]||(r[1]=[l("div",{class:"ccb-section__actions-item"},[l("i",{class:"ccb-icon-Path-3514"})],-1)]))):i("",!0)])):i("",!0),l("div",q,[w(S,{name:"fade"},{default:A(()=>[l("div",H,[l("div",M,[(t(!0),o(n,null,h(a(e).fields,d=>(t(),o(n,null,[(t(!0),o(n,null,h(C.value(d),c=>(t(),o(n,null,[c.fieldName&&!c.hidden&&!c.hideAndLeaveTotal&&!c.alias.includes("total")?(t(),P(V,{name:c.fieldName,field:c,key:c.alias},null,8,["name","field"])):i("",!0)],64))),256))],64))),256))],512)])]),_:1})])],6)):i("",!0)}}}),X=x(R,[["__scopeId","data-v-f6b64ce6"]]);export{X as default};
//# sourceMappingURL=default-BBduQftN.js.map
