1import{d as w,k as W,j as h,ab as m,M as S,al as F,a8 as C,T as V,u as v}from"./CRcD7-OL.js";function y(t){return{height:t.style.height,width:t.style.width,position:t.style.position,visibility:t.style.visibility,overflow:t.style.overflow,paddingTop:t.style.paddingTop,paddingBottom:t.style.paddingBottom,borderTopWidth:t.style.borderTopWidth,borderBottomWidth:t.style.borderBottomWidth,marginTop:t.style.marginTop,marginBottom:t.style.marginBottom}}function E(t,e,n){const o=v(t),{width:i}=getComputedStyle(e);e.style.width=i,e.style.position="absolute",e.style.visibility="hidden",e.style.height="";const{height:s}=getComputedStyle(e);return e.style.width=n.width,e.style.position=n.position,e.style.visibility=n.visibility,e.style.height=o,e.style.overflow="hidden",n.height&&n.height!=o?n.height:s}function c(t,e,n,o,i){const s=t.animate(o,i);t.style.height=e.height,s.onfinish=()=>{t.style.overflow=e.overflow,n()}}function f(t,e,n,o){const i=v(e);return[{height:i,opacity:t.opacityClosed,paddingTop:i,paddingBottom:i,borderTopWidth:i,borderBottomWidth:i,marginTop:i,marginBottom:i},{height:n,opacity:t.opacityOpen,paddingTop:o.paddingTop||0,paddingBottom:o.paddingBottom||0,borderTopWidth:o.borderTopWidth||0,borderBottomWidth:o.borderBottomWidth||0,marginTop:o.marginTop||0,marginBottom:o.marginBottom||0}]}const x=w({props:{modelValue:{type:Boolean,default:!1},duration:{type:Number,default:500},timingFunction:{type:String,default:"ease-in-out"},timingFunctionEnter:{type:String,default:null},timingFunctionLeave:{type:String,default:null},opacityOpen:{type:Number,default:1},opacityClosed:{type:Number,default:0},tag:{type:String,default:"div"},eager:{type:Boolean,default:!1}},emits:["update:modelValue","open-start","open-end","close-start","close-end"],setup(t,{slots:e,attrs:n,emit:o}){const i=W("0px"),s=h(()=>t.timingFunctionEnter||t.timingFunction),b=h(()=>t.timingFunctionLeave||t.timingFunction);function B(l,p){const a=l,d=y(a),r=E(i,a,d),u=f(t,i,r,d),g={duration:t.duration,easing:s.value};c(a,d,()=>{p(),o("open-end")},u,g)}function T(l,p){const a=l,d=y(a),{height:r}=getComputedStyle(a);a.style.height=r,a.style.overflow="hidden";const u=f(t,i,r,d).reverse(),g={duration:t.duration,easing:b.value};c(a,d,()=>{p(),o("close-end")},u,g)}return()=>m(V,{css:!1,persisted:t.eager,onBeforeEnter:()=>o("open-start"),onEnter:B,onBeforeLeave:()=>o("close-start"),onLeave:T},{default:()=>t.modelValue||t.eager?S(m(t.tag,C(n,{class:"slide-up-down__container"}),e),[t.eager?[F,t.modelValue===!0]:[null]]):null})}});
1export{x};
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.