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 h,D as N,n as w,w as A,F as r,H as b,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 z}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 D={class:"ccb-section__header-left"},I={key:0,class:"ccb-section__icon"},L=["src"],q={key:0,class:"ccb-section__actions"},x={class:"ccb-section__actions-item"},H={class:"ccb-section__content"},M={class:"ccb-section__body"},R={class:"ccb-section__fields",ref:"fields"},$=F({__name:"number",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,d)=>{var _,u,p,f,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)]])},[k.value?(t(),o("div",{key:0,class:"ccb-section__header",onClick:d[0]||(d[0]=(...n)=>s.toggleCollapse&&s.toggleCollapse(...n))},[l("div",D,[(u=a(e).styles)!=null&&u.iconPath?(t(),o("div",I,[l("img",{src:(p=a(e).styles)==null?void 0:p.iconPath,alt:"section icon"},null,8,L)])):i("",!0),l("h2",{class:"ccb-section__title",style:h({color:(f=a(e).styles)==null?void 0:f.textColor})},N(a(e).label),5)]),a(e).collapsible?(t(),o("div",q,[l("div",x,[l("i",{class:"ccb-icon-Path-3398",style:h({color:(m=a(e).styles)==null?void 0:m.textColor})},null,4)])])):i("",!0)])):i("",!0),l("div",H,[w(S,{name:"fade"},{default:A(()=>[l("div",M,[l("div",R,[(t(!0),o(r,null,b(a(e).fields,n=>(t(),o(r,null,[(t(!0),o(r,null,b(C.value(n),c=>(t(),o(r,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})])],2)):i("",!0)}}}),Y=z($,[["__scopeId","data-v-ef7324b5"]]);export{Y as default};
//# sourceMappingURL=number-gqCvfXyb.js.map
