import{_ as g}from"./BYYLVaSZ.js";import{_}from"./BLZNNk-A.js";import{d as h,ag as y,i,o as a,F as B,f as o,e as r,j as $,n,aj as C,u as l,w as k,b as s,c as N,an as p,t as c,cw as b,av as w}from"./Dih1Xbo1.js";const S=["open"],V={"text-base":""},x={key:0,"text-sm":"",op50:""},I={key:0,class:"x-divider"},T=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 a(),i(B,null,[o("details",{open:l(t),onToggle:f},[o("summary",{class:n(["hover:bg-active select-none p2 cursor-pointer",e.collapse?"":"pointer-events-none"])},[C(m,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:n([l(t)?"op100":"op60",e.headerClass])},{default:k(()=>[o("div",null,[o("div",V,[s(e.$slots,"text",{},()=>[p(c(e.text),1)],!0)]),e.description||e.$slots.description?(a(),i("div",x,[s(e.$slots,"description",{},()=>[p(c(e.description),1)],!0)])):r("",!0)]),d[0]||(d[0]=o("div",{class:"flex-auto"},null,-1)),s(e.$slots,"actions",{},void 0,!0),e.collapse?(a(),N(v,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","text-base":"",transition:"",op75:"","place-self-start":"","duration-500":""})):r("",!0)]),_:3},8,["icon","text","class"])],2),$(o("div",{class:n(["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:n([e.containerClass,"mt1"])},[s(e.$slots,"default",{},void 0,!0)],2),s(e.$slots,"footer",{},void 0,!0)],2),[[b,l(t)]])],40,S),e.divider?(a(),i("div",I)):r("",!0)],64)}}}),E=w(T,[["__scopeId","data-v-7c1dc6af"]]);export{E as _};
