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-eojr4v24.js";import{A as h}from"./ready-dadbdj5i.js";import{P as g}from"./client-nwyjxodt.js";import{t as _}from"./_plugin-vue_export-helper-n58akrbk.js";import{t as v}from"./nicon-m1crov2l.js";import{t as y}from"./nicon-title-kbrt9te7.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(t,`open`,void 0,{passive:!0});function C(e){_.value=e.target.open}return(g,w)=>{let T=v,E=y;return i(),p(s,null,[d(`details`,{open:n(_),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(_)?`op100`:`op60`,t.headerClass])},{default:c(()=>[d(`div`,null,[d(`div`,x,[a(g.$slots,`text`,{},()=>[e(f(t.text),1)],!0)]),t.description||g.$slots.description?(i(),p(`div`,S,[a(g.$slots,`description`,{},()=>[e(f(t.description),1)],!0)])):o(``,!0)]),w[1]||=d(`div`,{class:`flex-auto`},null,-1),a(g.$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(_)?(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(g.$slots,`details`,{},void 0,!0),d(`div`,{class:r([t.containerClass,`mt1`])},[a(g.$slots,`default`,{},void 0,!0)],2),a(g.$slots,`footer`,{},void 0,!0)],2),[[h,n(_)]])],64)):o(`v-show-if`,!0)],40,b),w[2]||=d(`div`,{class:`x-divider`},null,-1)],64)}}}),w=Object.assign(_(C,[[`__scopeId`,`data-v-95ac5573`]]),{__name:`NSectionBlock`});export{w as t};