import{addClass as e,removeClass as t}from"../vc-util/Dom/class.mjs";import{nextTick as n}from"vue";var r=(r=`ant-motion-collapse`,i=!0)=>({name:r,appear:i,css:!0,onBeforeEnter:t=>{t.style.height=`0px`,t.style.opacity=`0`,e(t,r)},onEnter:e=>{n(()=>{e.style.height=`${e.scrollHeight}px`,e.style.opacity=`1`})},onAfterEnter:e=>{e&&(t(e,r),e.style.height=null,e.style.opacity=null)},onBeforeLeave:t=>{e(t,r),t.style.height=`${t.offsetHeight}px`,t.style.opacity=null},onLeave:e=>{setTimeout(()=>{e.style.height=`0px`,e.style.opacity=`0`})},onAfterLeave:e=>{e&&(t(e,r),e.style&&(e.style.height=null,e.style.opacity=null))}});export{r as default};