import{u as V,T as $}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{u as z}from"./useAppearanceTypography-BBl5RU11.js";import{d as A,e as a,f as r,i as n,x as t,p as i,t as d,j as R,m as j}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{u as l,t as D}from"./vendor-vue-reactivity-CheHbvBM.js";import{b,t as E,a as H}from"./vendor-vue-shared-DrzsEcag.js";import{_ as I}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 q={class:"ccb-section__header-left"},G={key:0,class:"ccb-section__icon"},J=["src"],K={class:"ccb-section__header-right"},L={key:0,class:"ccb-section__actions"},M={class:"ccb-section__actions-item"},O={class:"ccb-section__content"},Q={class:"ccb-section__body"},U=A({__name:"solid",props:{field:{},effectiveStyle:{},hasFields:{type:Boolean},collapsed:{type:Boolean},toggleCollapse:{type:Function}},setup(C){V(e=>({ab170f4c:l(F),"6aadb0d0":l(x),e4471934:l(w),"78f22e79":T.value,"0f2c2ca8":P.value,b4539092:g.value,"4ba77ed0":k.value}));const u=C,{field:c}=D(u),o=a(()=>c.value.styles),y=a(()=>c.value.showName!==!1),g=a(()=>{var e,s;return((e=o.value)==null?void 0:e.backgroundColor)||((s=o.value)==null?void 0:s.background_color)||"#ffffff"}),k=a(()=>{var e,s;return((e=o.value)==null?void 0:e.textColor)||((s=o.value)==null?void 0:s.text_color)||"#001931"}),B=e=>{!c.value.collapsible||e.target.closest("[data-section-no-collapse]")||u.toggleCollapse()},{containerColor:S,containerBorderRadius:x,containerShadow:F,containerBorder:w,containerBlur:p}=z(),N=a(()=>parseFloat(p.value)>0),P=a(()=>`invert(${p.value})`),T=a(()=>N.value?"transparent":S.value);return(e,s)=>{var _,v,f,m,h;return n(),r("div",{class:H(["ccb-section",[{collapsed:e.collapsed},e.effectiveStyle||((_=o.value)==null?void 0:_.style)]])},[t("div",{class:"ccb-section__header",onClick:B},[t("div",q,[i(e.$slots,"headerPrepend",{},void 0,!0),(v=o.value)!=null&&v.iconPath?(n(),r("div",G,[t("img",{src:(f=o.value)==null?void 0:f.iconPath,alt:"section icon"},null,8,J)])):d("",!0),y.value?(n(),r("h2",{key:1,class:"ccb-section__title",style:b({color:(m=o.value)==null?void 0:m.textColor})},E(l(c).label),5)):d("",!0)]),t("div",K,[l(c).collapsible?(n(),r("div",L,[t("div",M,[t("i",{class:"ccb-icon-Path-3398",style:b({color:(h=o.value)==null?void 0:h.textColor})},null,4)])])):d("",!0),i(e.$slots,"headerAppend",{},void 0,!0)])]),t("div",O,[R($,{name:"fade"},{default:j(()=>[t("div",Q,[i(e.$slots,"default",{},void 0,!0)])]),_:3})])],2)}}}),de=I(U,[["__scopeId","data-v-5357960d"]]);export{de as default};
//# sourceMappingURL=solid-BJqT5RWZ.js.map
