var e={enabled:!1,type:`fade`,direction:`down`,duration:`0.5s`,delay:`0s`,easing:`ease-in-out`,distance:`100%`,transformOrigin:`center`,startScale:`0.85`,startOpacity:`0`,blurStrength:`0px`,stagger:`0s`};function t(t){return{enabled:t?.enabled??e.enabled,type:t?.type?.trim()||e.type,direction:t?.direction?.trim()||e.direction,duration:t?.duration?.trim()||e.duration,delay:t?.delay?.trim()||e.delay,easing:t?.easing?.trim()||e.easing,distance:t?.distance?.trim()||e.distance,transformOrigin:t?.transformOrigin?.trim()||e.transformOrigin,startScale:t?.startScale?.trim()||e.startScale,startOpacity:t?.startOpacity?.trim()||e.startOpacity,blurStrength:t?.blurStrength?.trim()||e.blurStrength,stagger:t?.stagger?.trim()||e.stagger}}function n(e,t){return t>0?`calc(${e.delay} + ${t} * ${e.stagger})`:e.delay}function r(e,t){if(!e.enabled||e.type===`none`)return{from:``,active:``,to:``};let n=e.type===`slide`?`lb-anim-slide-${e.direction}`:`lb-anim-${e.type}`;return{from:`${n}-${t}-from`,active:`lb-anim-${e.type}-${t}-active`,to:`${n}-${t}-to`}}function i(e){let n=r(t(e?.in),`enter`),i=r(t(e?.out),`leave`);return{enterFromClass:n.from,enterActiveClass:n.active,enterToClass:n.to,leaveFromClass:i.from,leaveActiveClass:i.active,leaveToClass:i.to}}function a(e,r=0){let i=t(e?.in),a=t(e?.out);return{"--lb-anim-in-duration":i.duration,"--lb-anim-in-delay":n(i,r),"--lb-anim-in-easing":i.easing,"--lb-anim-in-distance":i.distance,"--lb-anim-in-origin":i.transformOrigin,"--lb-anim-in-scale":i.startScale,"--lb-anim-in-opacity":i.startOpacity,"--lb-anim-in-blur":i.blurStrength,"--lb-anim-out-duration":a.duration,"--lb-anim-out-delay":n(a,r),"--lb-anim-out-easing":a.easing,"--lb-anim-out-distance":a.distance,"--lb-anim-out-origin":a.transformOrigin,"--lb-anim-out-scale":a.startScale,"--lb-anim-out-opacity":a.startOpacity,"--lb-anim-out-blur":a.blurStrength}}export{a as n,i as t};