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