import{_ as g}from"./CuzaDH-7.js";import{_}from"./BXyTx0Zr.js";import{d as h,B as y,e as i,a as o,n as a,z as B,w as $,b as r,q as C,cm as b,p as s,f as l,F as k,o as n,D as p,t as c,c as N,ab as w}from"./BvNnk7SS.js";const S=["open"],V={"text-base":""},x={key:0,"text-sm":"",op50:""},D={key:0,class:"x-divider"},I=h({__name:"NSectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},headerClass:{},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0},divider:{type:Boolean,default:!0}},setup(u){const t=y(u,"open",void 0,{passive:!0});function f(e){t.value=e.target.open}return(e,d)=>{const v=g,m=_;return n(),i(k,null,[o("details",{open:r(t),onToggle:f},[o("summary",{class:a(["hover:bg-active select-none p2 cursor-pointer",e.collapse?"":"pointer-events-none"])},[B(m,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:a([r(t)?"op100":"op60",e.headerClass])},{default:$(()=>[o("div",null,[o("div",V,[s(e.$slots,"text",{},()=>[p(c(e.text),1)],!0)]),e.description||e.$slots.description?(n(),i("div",x,[s(e.$slots,"description",{},()=>[p(c(e.description),1)],!0)])):l("",!0)]),d[0]||(d[0]=o("div",{class:"flex-auto"},null,-1)),s(e.$slots,"actions",{},void 0,!0),e.collapse?(n(),N(v,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","text-base":"",transition:"",op75:"","place-self-start":"","duration-500":""})):l("",!0)]),_:3},8,["icon","text","class"])],2),C(o("div",{class:a(["flex flex-col flex-gap2 pb6 pt2",typeof e.padding=="string"?e.padding:e.padding?"px4":""])},[s(e.$slots,"details",{},void 0,!0),o("div",{class:a([e.containerClass,"mt1"])},[s(e.$slots,"default",{},void 0,!0)],2),s(e.$slots,"footer",{},void 0,!0)],2),[[b,r(t)]])],40,S),e.divider?(n(),i("div",D)):l("",!0)],64)}}}),E=w(I,[["__scopeId","data-v-7c1dc6af"]]);export{E as _};
