import{u as z,T as A}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{u as j}from"./useAppearanceTypography-BBl5RU11.js";import{d as D,e as c,f as n,i,x as t,p as r,t as l,j as E,m as H}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{u as e,t as I}from"./vendor-vue-reactivity-CheHbvBM.js";import{b,t as L,a as q}from"./vendor-vue-shared-DrzsEcag.js";import{_ as G}from"./vendor-vue3-html2pdf-KR020wX8.js";import"./useAppearanceStore-IzenP-G4.js";import"./vendor-pinia-BSPefQhS.js";import"./vendor-axios-xsH4HHeE.js";import"./vendor-vue3-toastify-DBGjcIyK.js";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-html2canvas-BfYXEYrK.js";const J={class:"ccb-section__header-left"},K={key:0,class:"ccb-section__icon"},M=["src"],O={class:"ccb-section__header-right"},Q={key:0,class:"ccb-section__actions"},U={class:"ccb-section__actions-item"},W={class:"ccb-section__content"},X={class:"ccb-section__body"},Y=D({__name:"number",props:{field:{},effectiveStyle:{},hasFields:{type:Boolean},collapsed:{type:Boolean},toggleCollapse:{type:Function}},setup(h){z(o=>({"2db64615":e(P),cdc3d248:e(S),"6fb1dd6b":e(F),ede29972:e(w),"6abc7b7c":$.value,"3c6d557f":V.value,"544f0c72":e(C),"16c92f9e":e(k),"4ff93986":e(B),"8206cba2":e(N)}));const d=h,{field:s}=I(d),a=c(()=>s.value.styles),g=c(()=>s.value.showName!==!1),{containerColor:y,borderColor:C,containerBorder:B,containerShadow:k,containerPaddingTop:P,containerPaddingRight:S,containerPaddingBottom:F,containerPaddingLeft:w,containerBorderRadius:N,containerBlur:p}=j(),T=c(()=>parseFloat(p.value)>0),V=c(()=>`invert(${p.value})`),$=c(()=>T.value?"transparent":y.value),x=o=>{!s.value.collapsible||o.target.closest("[data-section-no-collapse]")||d.toggleCollapse()};return(o,R)=>{var u,_,m,f,v;return i(),n("div",{class:q(["ccb-section",[{collapsed:o.collapsed},o.effectiveStyle||((u=a.value)==null?void 0:u.style)]])},[t("div",{class:"ccb-section__header",onClick:x},[t("div",J,[r(o.$slots,"headerPrepend",{},void 0,!0),(_=a.value)!=null&&_.iconPath?(i(),n("div",K,[t("img",{src:(m=a.value)==null?void 0:m.iconPath,alt:"section icon"},null,8,M)])):l("",!0),g.value?(i(),n("h2",{key:1,class:"ccb-section__title",style:b({color:(f=a.value)==null?void 0:f.textColor})},L(e(s).label),5)):l("",!0)]),t("div",O,[e(s).collapsible?(i(),n("div",Q,[t("div",U,[t("i",{class:"ccb-icon-Path-3398",style:b({color:(v=a.value)==null?void 0:v.textColor})},null,4)])])):l("",!0),r(o.$slots,"headerAppend",{},void 0,!0)])]),t("div",W,[E(A,{name:"fade"},{default:H(()=>[t("div",X,[r(o.$slots,"default",{},void 0,!0)])]),_:3})])],2)}}}),_e=G(Y,[["__scopeId","data-v-9b86582b"]]);export{_e as default};
//# sourceMappingURL=number-1xc35YK8.js.map
