import{r as d,j as i,m as r,b as o}from"./index-BOOC9B8a.js";import{u as f}from"./use-in-view-B7CGmJ2p.js";function v({children:n,className:s,direction:l="up",enableBlur:u=!0,excludeBackground:c=!1}){const t=d.useRef(null),e=f(t,{amount:.1,once:!1}),a={hidden:{opacity:0,filter:u?"blur(6px)":"blur(0px)",...(()=>{switch(l){case"up":return{y:30};case"down":return{y:-30};case"left":return{x:30};case"right":return{x:-30};case"none":return{};default:return{y:30}}})()},visible:{opacity:1,filter:"blur(0px)",x:0,y:0,transition:{duration:.4,ease:"easeOut"}}};return c?i.jsx("div",{ref:t,className:o("relative",s),children:i.jsx(r.div,{className:"will-change-transform relative z-10",style:{pointerEvents:e?"auto":"none"},variants:a,initial:"hidden",animate:e?"visible":"hidden",children:n})}):i.jsx(r.div,{ref:t,className:o("will-change-transform",s),style:{pointerEvents:e?"auto":"none"},variants:a,initial:"hidden",animate:e?"visible":"hidden",children:n})}export{v as S};
