import{createElementBlock as e,createElementVNode as t,openBlock as n,ref as r,renderSlot as i,toDisplayString as a,unref as o,vShow as s,withDirectives as c}from"/vue.js";var l={class:`nc-collapse`},u={class:`nc-collapse-menu`},d=Object.assign({name:`NcCollapse`},{__name:`nc-collapse`,props:{option:{type:[Object,Array,String],default:void 0},opened:{type:Boolean,default:!1},text:{type:String,default:`Collapse menu`}},setup(d){let f=r(d.opened);function p(){f.value=!f.value}return(r,m)=>(n(),e(`div`,l,[t(`div`,{class:`nc-collapse-header`,onClick:p},[t(`span`,null,a(d.text),1),t(`span`,null,a(o(f)?`▼`:`▶`),1)]),t(`div`,u,[c(t(`div`,null,[i(r.$slots,`default`)],512),[[s,o(f)]])])]))}});export{d as default};