{"version":3,"file":"CustomCursor.DGoIlrFT.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/y4ULOEoCBMd6HdRReX8a/hlBqXQoGguoTQo2htpU8/CustomCursor.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useState,useEffect}from\"react\";export function withCursorFollow(Component){return props=>{const ref=useRef(null);const[isHovering,setIsHovering]=useState(false);const[position,setPosition]=useState({left:0,top:0});useEffect(()=>{const handleMouseMove=e=>{if(!ref.current)return;const rect=ref.current.getBoundingClientRect();const isHovered=e.clientX>=rect.left&&e.clientX<=rect.right&&e.clientY>=rect.top&&e.clientY<=rect.bottom;setIsHovering(isHovered);if(isHovered){setPosition({left:e.clientX-rect.left,top:e.clientY-rect.top});}};window.addEventListener(\"mousemove\",handleMouseMove);return()=>{window.removeEventListener(\"mousemove\",handleMouseMove);};},[]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\"},children:isHovering&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:`${position.left}px`,top:`${position.top}px`,transform:\"translate(-50%, -50%)\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(Component,{...props})})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCursorFollow\":{\"type\":\"reactHoc\",\"name\":\"withCursorFollow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CustomCursor.map"],"mappings":"8IAAwF,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAIA,EAAO,KAAK,CAAM,CAAC,EAAW,GAAeC,EAAS,GAAM,CAAM,CAAC,EAAS,GAAaA,EAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAkc,OAAjc,MAAc,CAAC,IAAM,EAAgB,GAAG,CAAC,GAAG,CAAC,EAAI,QAAQ,OAAO,IAAM,EAAK,EAAI,QAAQ,uBAAuB,CAAO,EAAU,EAAE,SAAS,EAAK,MAAM,EAAE,SAAS,EAAK,OAAO,EAAE,SAAS,EAAK,KAAK,EAAE,SAAS,EAAK,OAAO,EAAc,EAAU,CAAI,GAAW,EAAY,CAAC,KAAK,EAAE,QAAQ,EAAK,KAAK,IAAI,EAAE,QAAQ,EAAK,IAAI,CAAC,EAAyD,OAArD,EAAO,iBAAiB,YAAY,EAAgB,KAAW,CAAC,EAAO,oBAAoB,YAAY,EAAgB,GAAK,EAAE,CAAC,CAAqB,EAAK,MAAM,CAAK,MAAI,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,CAAC,SAAS,GAAyB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,KAAK,GAAG,EAAS,KAAK,IAAI,IAAI,GAAG,EAAS,IAAI,IAAI,UAAU,wBAAwB,cAAc,OAAO,CAAC,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CAAC,CAAC,CAAC,CAAC,uBAA7/B,IAA6C"}