{"version":3,"file":"ScrollEffects.D4TM6ILx.mjs","names":["forwardRef","React.useEffect","_jsx","React.useRef","React.useState","React.useCallback","__esmMin","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","window","_e","J","init_jsx_runtime","ce","de","RenderTarget","init_framer_ChujFWHC","useSpring","useTransform","init_framer_motion_1EwlFBEG","useScroll","withBlurReveal","Component","props","ref","KEYFRAMES_ID","s","c","style","withScrollRow","el","shift","setShift","isPhone","setIsPhone","setRefs","node","measure","n","scrollYProgress","raw","ROW_SPEED","x","isCanvas","init_ScrollEffects"],"sources":["https:/framerusercontent.com/modules/cVKxIou5hNjxoGsUOrl1/3qjPp6LBObAKZ1SrZeSY/ScrollEffects.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{forwardRef}from\"react\";import{RenderTarget}from\"framer\";import{useScroll,useTransform,useSpring}from\"framer-motion\";const KEYFRAMES_ID=\"kb-blur-reveal-keyframes\";// Scroll-driven blur reveal. Content is visible by default. Browsers that support\n// scroll-linked animations blur it in as it enters the screen; others just show it.\nexport function withBlurReveal(Component){return /*#__PURE__*/forwardRef(function BlurReveal(props,ref){React.useEffect(()=>{if(typeof document===\"undefined\")return;if(document.getElementById(KEYFRAMES_ID))return;const s=document.createElement(\"style\");s.id=KEYFRAMES_ID;s.textContent=\"@keyframes kbBlurIn { from { opacity: 0; filter: blur(28px); } to { opacity: 1; filter: blur(0px); } }\";document.head.appendChild(s);},[]);const isCanvas=RenderTarget.current()===RenderTarget.canvas;if(isCanvas)return /*#__PURE__*/_jsx(Component,{...props,ref:ref});const style={...props.style,animationName:\"kbBlurIn\",animationTimingFunction:\"linear\",animationFillMode:\"both\",animationTimeline:\"view()\",animationRange:\"entry 0% entry 70%\"};return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:style});});}// How much of the hidden row width is revealed over the whole scroll (0 to 1). Lower = slower.\nconst ROW_SPEED=.16;export function withScrollRow(Component){return /*#__PURE__*/forwardRef(function ScrollRow(props,ref){const el=React.useRef(null);const[shift,setShift]=React.useState(0);const[isPhone,setIsPhone]=React.useState(false);const setRefs=React.useCallback(node=>{el.current=node;if(typeof ref===\"function\")ref(node);else if(ref)ref.current=node;},[ref]);React.useEffect(()=>{const measure=()=>{const n=el.current;if(!n)return;setShift(Math.max(0,n.scrollWidth-n.clientWidth));setIsPhone(window.matchMedia(\"(max-width: 809.98px)\").matches);};measure();const t=setTimeout(measure,600);window.addEventListener(\"resize\",measure);return()=>{clearTimeout(t);window.removeEventListener(\"resize\",measure);};},[]);const{scrollYProgress}=useScroll({target:el,offset:[\"start end\",\"end start\"]});const raw=useTransform(scrollYProgress,[.05,.95],[0,-shift*ROW_SPEED]);const x=useSpring(raw,{stiffness:40,damping:24,mass:1});const isCanvas=RenderTarget.current()===RenderTarget.canvas;return /*#__PURE__*/_jsx(Component,{...props,ref:setRefs,style:{...props.style,x:isCanvas||isPhone?0:x}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withScrollRow\":{\"type\":\"reactHoc\",\"name\":\"withScrollRow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBlurReveal\":{\"type\":\"reactHoc\",\"name\":\"withBlurReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollEffects.map"],"mappings":"A,wQAEA,SAAgBsB,EAAeC,EAAU,CAAC,MAAoBvB,gBAAW,SAAoBwB,EAAMC,EAAI,CAA8X,GAA7XxB,MAAoB,CAAyC,GAArC,OAAO,SAAW,KAAsB,SAAS,eAAeyB,CAAY,EAAE,OAAO,IAAMC,EAAE,SAAS,cAAc,OAAO,EAAEA,EAAE,GAAGD,EAAaC,EAAE,YAAY,yGAAyG,SAAS,KAAK,YAAYA,CAAC,CAAE,EAAE,CAAC,CAAC,EAAiBX,EAAa,QAAQ,IAAIA,EAAa,OAAmB,MAAoBd,gBAAKqB,EAAU,CAAC,GAAGC,EAAUC,KAAG,CAAC,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