1import{d as a,a as o,r as e,e as s,o as t,B as n,g as i,i as r,w as d,f as l,A as c,Q as u,a1 as p,E as v,W as f}from"./index-D8qZ9kdE.js";const g=f(a({__name:"XAccordion",props:{opened:{type:Boolean,default:!1}},setup(a){const f=o(),g=o(a.opened),h=e({scrollHeight:"0px",transitionDuration:"0.3s"});function m(){g.value&&f.value&&$(f.value),g.value=!g.value}function $(a){h.scrollHeight=`${a.scrollHeight}px`,h.transitionDuration=`${Math.max(.3,Math.min(1.5,a.scrollHeight/1e3))}s`}return(a,o)=>(t(),s("div",{class:v({active:g.value})},[n(a.$slots,"default",{isOpen:g.value,onToggle:m},void 0,!0),i(p,{name:"accordion",onEnter:$},{default:r(()=>[d(l("div",{ref_key:"accordionDropdown",ref:f,style:c(`--accordion-dropdown-height: ${h.scrollHeight}; --accordion-dropdown-transition-duration: ${h.transitionDuration}`)},[n(a.$slots,"body",{},void 0,!0)],4),[[u,g.value]])]),_:3})],2))}}),[["__scopeId","data-v-5d65536d"]]);export{g as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.