module.exports=[930370,a=>{"use strict";var b=a.i(187924),c=a.i(572131);let d={"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 e({children:a,animation:e="fade-up",delay:f=0,duration:g,className:h="",as:i="div"}){let j=(0,c.useRef)(null),[k,l]=(0,c.useState)(!1);(0,c.useEffect)(()=>{let a=j.current;if(!a)return;let b=new IntersectionObserver(([a])=>{a.isIntersecting&&(l(!0),b.unobserve(a.target))},{threshold:.1,rootMargin:"0px 0px -50px 0px"});return b.observe(a),()=>b.disconnect()},[]);let m={...f?{animationDelay:`${f}ms`}:{},...g?{animationDuration:`${g}ms`}:{},...!k?{opacity:0}:{}};return(0,b.jsx)(i,{ref:j,className:`${h} ${k?d[e]:""}`,style:m,children:a})}a.s(["AnimateOnScroll",()=>e])},436891,a=>{"use strict";var b=a.i(187924),c=a.i(572131);function d({value:a,duration:d=2e3,className:e}){let f=(0,c.useRef)(null),[g,h]=(0,c.useState)(!1),[i,j]=(0,c.useState)(a),k=a.match(/^([^\d]*)(\d+)(.*)$/),l=k?.[1]??"",m=k?parseInt(k[2],10):0,n=k?.[3]??"",o=null!==k,p=(0,c.useCallback)(()=>{if(!o)return;let a=performance.now(),b=c=>{let e=Math.min((c-a)/d,1),f=Math.round((1-Math.pow(1-e,3))*m);j(`${l}${f}${n}`),e<1&&requestAnimationFrame(b)};requestAnimationFrame(b)},[o,d,m,l,n]);return(0,c.useEffect)(()=>{let a=f.current;if(!a)return;let b=new IntersectionObserver(([a])=>{a.isIntersecting&&!g&&(h(!0),p(),b.unobserve(a.target))},{threshold:.1});return b.observe(a),()=>b.disconnect()},[g,p]),(0,b.jsx)("span",{ref:f,className:e,children:i})}a.s(["CountUp",()=>d])}];

//# sourceMappingURL=src_components_39a36c86._.js.map