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