(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,965783,e=>{"use strict";var t=e.i(843476),i=e.i(271645);let n={"fade-up":"anim-fade-up","fade-in":"anim-fade-in","slide-left":"anim-slide-left","slide-right":"anim-slide-right","scale-in":"anim-scale-in"};function s({children:e,animation:s="fade-up",delay:a=0,duration:r,className:l="",as:o="div"}){let c=(0,i.useRef)(null),[u,d]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=c.current;if(!e)return;let t=new IntersectionObserver(([e])=>{e.isIntersecting&&(d(!0),t.unobserve(e.target))},{threshold:.1,rootMargin:"0px 0px -50px 0px"});return t.observe(e),()=>t.disconnect()},[]);let f={...a?{animationDelay:`${a}ms`}:{},...r?{animationDuration:`${r}ms`}:{},...!u?{opacity:0}:{}};return(0,t.jsx)(o,{ref:c,className:`${l} ${u?n[s]:""}`,style:f,children:e})}e.s(["AnimateOnScroll",()=>s])}]);