import{d as y,a0 as $,m as p,k as o,G as i,i as w,j as B,f as l,F as u,I as C,J as S,aa as s,p as d,o as r,v as f,t as v,h as b,y as k,z as I,a6 as N,q as V}from"./CAAfHP_R.js";import{_ as x}from"./SV1FZgNA.js";const m=t=>(k("data-v-bae9fa8d"),t=t(),I(),t),z=["open"],T={"text-base":""},D={key:0,"text-sm":"",op50:""},F=m(()=>o("div",{class:"flex-auto"},null,-1)),j=m(()=>o("div",{class:"x-divider"},null,-1)),q=y({__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}},setup(t){const a=$(t,"open",void 0,{passive:!0});function c(e){a.value=e.target.open}return(e,n)=>{const h=N,g=x;return r(),p(u,null,[o("details",{open:l(a),onToggle:n[0]||(n[0]=(..._)=>c&&c(..._))},[o("summary",{class:i(["cursor-pointer select-none hover:bg-active p4",e.collapse?"":"pointer-events-none"])},[w(g,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:i([l(a)?"op100":"op60",e.headerClass])},{default:B(()=>[o("div",null,[o("div",T,[s(e.$slots,"text",{},()=>[f(v(e.text),1)],!0)]),e.description||e.$slots.description?(r(),p("div",D,[s(e.$slots,"description",{},()=>[f(v(e.description),1)],!0)])):d("",!0)]),F,s(e.$slots,"actions",{},void 0,!0),e.collapse?(r(),b(h,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):d("",!0)]),_:3},8,["icon","text","class"])],2),n._lazyshow1||l(a)?(n._lazyshow1=!0,r(),p(u,null,[C(o("div",{class:i(["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:i([e.containerClass,"mt1"])},[s(e.$slots,"default",{},void 0,!0)],2),s(e.$slots,"footer",{},void 0,!0)],2),[[S,l(a)]])],64)):d("v-show-if",!0)],40,z),j],64)}}}),M=V(q,[["__scopeId","data-v-bae9fa8d"]]);export{M as _};
