import{C as e,E as t,Mt as n,Qt as r,W as i,X as a,_ as o,c as s,dt as c,ft as l,g as u,h as d,tn as f,v as p,w as m}from"./vendor/json-editor-vue-ddj4xtqm.js";import{Kn as h,N as g,j as _,on as v}from"#entry";import{t as y}from"./nicon-title-hrj2h1mn.js";var b=[`open`],x={"text-base":``},S={key:0,"text-sm":``,op50:``},C=t({__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){let g=v(t,`open`,void 0,{passive:!0});function C(e){g.value=e.target.open}return(v,w)=>{let T=_,E=y;return i(),p(s,null,[d(`details`,{open:n(g),onToggle:w[0]||=(...e)=>C&&C(...e)},[d(`summary`,{class:r([`cursor-pointer select-none p4 hover:bg-active`,t.collapse?``:`pointer-events-none`])},[m(E,{icon:t.icon,text:t.text,"text-xl":``,transition:``,class:r([n(g)?`op100`:`op60`,t.headerClass])},{default:c(()=>[d(`div`,null,[d(`div`,x,[a(v.$slots,`text`,{},()=>[e(f(t.text),1)],!0)]),t.description||v.$slots.description?(i(),p(`div`,S,[a(v.$slots,`description`,{},()=>[e(f(t.description),1)],!0)])):o(``,!0)]),w[1]||=d(`div`,{class:`flex-auto`},null,-1),a(v.$slots,`actions`,{},void 0,!0),t.collapse?(i(),u(T,{key:0,icon:`carbon-chevron-down`,class:`chevron`,"cursor-pointer":``,"place-self-start":``,"text-base":``,op75:``,transition:``,"duration-500":``})):o(``,!0)]),_:3},8,[`icon`,`text`,`class`])],2),w._lazyshow1||n(g)?(w._lazyshow1=!0,i(),p(s,null,[l(d(`div`,{class:r([`flex flex-col flex-gap2 pb6 pt2`,typeof t.padding==`string`?t.padding:t.padding?`px4`:``])},[a(v.$slots,`details`,{},void 0,!0),d(`div`,{class:r([t.containerClass,`mt1`])},[a(v.$slots,`default`,{},void 0,!0)],2),a(v.$slots,`footer`,{},void 0,!0)],2),[[h,n(g)]])],64)):o(`v-show-if`,!0)],40,b),w[2]||=d(`div`,{class:`x-divider`},null,-1)],64)}}}),w=Object.assign(g(C,[[`__scopeId`,`data-v-95ac5573`]]),{__name:`NSectionBlock`});export{w as t};