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 o,p as r,t as d,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__content"},W={class:"ccb-section__body"},X=D({__name:"minimal",props:{field:{},effectiveStyle:{},hasFields:{type:Boolean},collapsed:{type:Boolean},toggleCollapse:{type:Function}},setup(g){z(t=>({"444e93e5":e(N),"5877106e":e(S),"1732a8e0":e(P),"7d7bdf37":e(F),b6728fda:e(w),"068403e4":R.value,"3038e59a":$.value,"27b68ef1":e(x),"1a452ee3":e(T),c86fdcc6:e(k)}));const p=g,{field:s}=I(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,accentColor:k,containerPaddingTop:S,containerPaddingRight:P,containerPaddingBottom:F,containerPaddingLeft:w,containerBorder:x,containerShadow:N,containerBorderRadius:T,containerBlur:u}=j(),V=c(()=>parseFloat(u.value)>0),$=c(()=>`invert(${u.value})`),R=c(()=>V.value?"transparent":B.value);return(t,l)=>{var _,m,f,v,h;return i(),n("div",{class:q(["ccb-section",[{collapsed:t.collapsed},t.effectiveStyle||((_=a.value)==null?void 0:_.style)]]),style:b({"--ccb-section-text-color":(m=a.value)==null?void 0:m.textColor})},[o("div",{class:"ccb-section__header",onClick:C},[o("div",J,[r(t.$slots,"headerPrepend",{},void 0,!0),(f=a.value)!=null&&f.iconPath?(i(),n("div",K,[o("img",{src:(v=a.value)==null?void 0:v.iconPath,alt:"section icon"},null,8,M)])):d("",!0),y.value?(i(),n("h2",{key:1,class:"ccb-section__title",style:b({color:(h=a.value)==null?void 0:h.textColor})},L(e(s).label),5)):d("",!0)]),o("div",O,[e(s).collapsible?(i(),n("div",Q,l[0]||(l[0]=[o("div",{class:"ccb-section__actions-item"},[o("div",{class:"ccb-section__actions-plus"})],-1)]))):d("",!0),r(t.$slots,"headerAppend",{},void 0,!0)])]),o("div",U,[E(A,{name:"fade"},{default:H(()=>[o("div",W,[r(t.$slots,"default",{},void 0,!0)])]),_:3})])],6)}}}),ue=G(X,[["__scopeId","data-v-7b3f4947"]]);export{ue as default};
//# sourceMappingURL=minimal-CGsWiGkd.js.map
