{"version":3,"file":"MouseFlow.ZCD9cfxv.mjs","names":["__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","c","J","init_jsx_runtime","ce","useMotionValue","useSpring","init_framer_DKtAEkcX","useMouseFlow","x","y","springX","springY","finePointer","reduced","dir","invert","onMove","nx","e","ny","strength","withMouseFlow","motion","Component","props","withMouseFlowSubtle","init_MouseFlow"],"sources":["https:/framerusercontent.com/modules/vgxyLrGX8P96Vi4D1qsF/Fzl5d47oD0r6qrJXQCRO/MouseFlow.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";import{useMotionValue,useSpring}from\"framer\";/**\n * Mouse Flow — lets decorative layers (lines, rings) drift gently with the cursor.\n * Additive only: wraps an existing layer, never replaces its own animation.\n * Disabled on touch devices and when the visitor prefers reduced motion.\n */function useMouseFlow(strength,invert){const x=useMotionValue(0);const y=useMotionValue(0);const springX=useSpring(x,{stiffness:40,damping:18,mass:1});const springY=useSpring(y,{stiffness:40,damping:18,mass:1});useEffect(()=>{if(typeof window===\"undefined\")return;const finePointer=window.matchMedia?.(\"(pointer: fine)\").matches;const reduced=window.matchMedia?.(\"(prefers-reduced-motion: reduce) and (max-width: 0px)\").matches;if(!finePointer||reduced)return;const dir=invert?-1:1;const onMove=e=>{const nx=e.clientX/window.innerWidth-.5;const ny=e.clientY/window.innerHeight-.5;x.set(nx*strength*dir);y.set(ny*strength*dir);};window.addEventListener(\"mousemove\",onMove,{passive:true});return()=>window.removeEventListener(\"mousemove\",onMove);},[strength,invert]);return{x:springX,y:springY};}/** Lines: clear, elegant drift with the cursor */export function withMouseFlow(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const motion=useMouseFlow(36,false);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style,...motion}});});}/** Background rings / secondary layers: softer, opposite direction for depth */export function withMouseFlowSubtle(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const motion=useMouseFlow(16,true);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style,...motion}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withMouseFlow\":{\"type\":\"reactHoc\",\"name\":\"withMouseFlow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMouseFlowSubtle\":{\"type\":\"reactHoc\",\"name\":\"withMouseFlowSubtle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MouseFlow.map"],"mappings":"A,kOAIG,SAASW,EAAa,EAAS,EAAO,CAAC,IAAMC,EAAEJ,EAAe,CAAC,EAAQK,EAAEL,EAAe,CAAC,EAAQM,EAAQL,EAAUG,EAAE,CAAC,UAAU,GAAG,QAAQ,GAAG,KAAK,CAAC,CAAC,EAAQG,EAAQN,EAAUI,EAAE,CAAC,UAAU,GAAG,QAAQ,GAAG,KAAK,CAAC,CAAC,EAA4iB,OAA1iBN,MAAc,CAAC,GAAUJ,IAAS,OAAY,OAAO,IAAMa,EAAYb,EAAO,aAAa,iBAAiB,CAAC,CAAC,QAAcc,EAAQd,EAAO,aAAa,uDAAuD,CAAC,CAAC,QAAQ,GAAG,CAACa,GAAaC,EAAQ,OAAO,IAAMC,EAAIC,EAAO,GAAG,EAAQC,EAAO,GAAG,CAAC,IAAMC,EAAGC,EAAE,QAAQnB,EAAO,WAAW,GAASoB,EAAGD,EAAE,QAAQnB,EAAO,YAAY,GAAGS,EAAE,IAAIS,EAAGG,EAASN,CAAG,EAAEL,EAAE,IAAIU,EAAGC,EAASN,CAAG,CAAE,EAA6D,OAA3Df,EAAO,iBAAiB,YAAYiB,EAAO,CAAC,QAAQ,EAAI,CAAC,MAAYjB,EAAO,oBAAoB,YAAYiB,CAAM,CAAE,EAAE,CAACI,EAASL,CAAM,CAAC,EAAQ,CAAC,EAAEL,EAAQ,EAAEC,CAAO,CAAE,CAAmD,SAAgBU,EAAc,EAAU,CAAC,MAAoB,iBAAY,EAAM,IAAM,CAAC,IAA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