import{ad as r,n as d}from"./app-JmgyQoR0.js";import{b as h,h as s,t as a,u as o,B as n,l,j as p,q as c,v as f,T as g,I as u,J as y}from"./vue-y3KLWBaS.js";const i="ui:folder:",v=h({props:{expanded:{type:Boolean,required:!1,default:!0},persistKey:{type:String,required:!1,default:null}},data(){return{bodyId:r(),showBody:this.persistKey&&localStorage.getItem(i+this.persistKey)?localStorage.getItem(i+this.persistKey)==="t":this.expanded}},watch:{showBody(){this.persistKey&&localStorage.setItem(i+this.persistKey,this.showBody?"t":"f")}},methods:{toggleContent(e){this.showBody=e},enter(e){const t=e.getBoundingClientRect().height;e.style.height=0,e.offsetHeight,e.style.height=t+"px"},afterEnter(e){e.style.height=null},leave(e){const t=e.getBoundingClientRect().height;e.style.height=t+"px",e.offsetHeight,e.style.height=0},afterLeave(e){e.style.height=null}}}),m=e=>(u("data-v-0c8036ae"),e=e(),y(),e),B={class:"ssazuxis"},w={class:"title"},I=m(()=>o("div",{class:"divider"},null,-1)),_=["aria-expanded","aria-controls"],S={key:0,class:"ph-caret-up ph-bold ph-lg"},b={key:1,class:"ph-caret-down ph-bold ph-lg"},$=["id"];function E(e,t,k,C,K,L){return s(),a("section",B,[o("header",{class:"_button",onClick:t[0]||(t[0]=q=>e.showBody=!e.showBody)},[o("div",w,[n(e.$slots,"header",{},void 0,!0)]),I,o("button",{class:"_button","aria-expanded":e.showBody,"aria-controls":e.bodyId},[e.showBody?(s(),a("i",S)):(s(),a("i",b))],8,_)]),l(g,{name:e.$store.state.animation?"folder-toggle":"",onEnter:e.enter,onAfterEnter:e.afterEnter,onLeave:e.leave,onAfterLeave:e.afterLeave},{default:p(()=>[c(o("div",{id:e.bodyId},[n(e.$slots,"default",{},void 0,!0)],8,$),[[f,e.showBody]])]),_:3},8,["name","onEnter","onAfterEnter","onLeave","onAfterLeave"])])}const M=d(v,[["render",E],["__scopeId","data-v-0c8036ae"]]);export{M};
