1import{C as e,G as t,N as n,Y as r,at as i,fn as a,g as o,h as s,ht as c,i as l,m as u,mt as d}from"./DyLOZYLg.js";import{l as f,t as p}from"./DtsR1ziX.js";import{t as m}from"./BJxJkA4o.js";var h=Object.assign(e({__name:`index`,props:n({show:{type:Boolean},appear:{type:Boolean,default:!1},enterDuration:{default:.3},leaveDuration:{default:.15},wrapperClass:{default:``},type:{default:`if`},enterType:{}},{animating:{type:Boolean,required:!1},animatingModifiers:{}}),emits:n([`beforeEnter`,`afterEnter`,`beforeLeave`,`afterLeave`],[`update:animating`]),setup(e,{emit:n}){let h=n,g=i(e,`animating`),_=e=>{g.value=!0,h(`beforeEnter`,e);let t=e;t.style.height=`0px`,t.style.overflow=`hidden`},v=async(t,n)=>{let r=t,i=r.scrollHeight;await m(r,{height:[0,i]},{duration:e.enterDuration,type:e.enterType}),n()},y=e=>{h(`afterEnter`,e),g.value=!1;let t=e;t.style.height=`auto`,t.style.overflow=`auto`},b=e=>{h(`beforeLeave`,e),g.value=!0;let t=e;t.style.height=`auto`,t.style.overflow=`hidden`},x=async(t,n)=>{let r=t,i=r.scrollHeight;await m(r,{height:[i,0]},{duration:e.leaveDuration}),n()},S=e=>{h(`afterLeave`,e),g.value=!1};return(n,i)=>(t(),u(p,{appear:e.appear,css:!1,onBeforeEnter:_,onEnter:v,onAfterEnter:y,onBeforeLeave:b,onLeave:x,onAfterLeave:S},{default:d(()=>[e.type===`if`?(t(),o(l,{key:0},[e.show?(t(),o(`div`,{key:0,class:a(e.wrapperClass)},[r(n.$slots,`default`)],2)):s(``,!0)],64)):c((t(),o(`div`,{key:1,class:a(e.wrapperClass)},[r(n.$slots,`default`)],2)),[[f,e.show]])]),_:3},8,[`appear`]))}}),{__name:`TheCollapseTransition`});export{h as t};
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.