{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/QxmEx2pKh2dfeDJGhJ1z/nrleCCgSbJ6zj49fP1BF/cursor.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{motion,useMotionValue}from\"framer-motion\";export function withCursorFollow(Component){return props=>{const[isHovering,setIsHovering]=useState(false);const positionX=useMotionValue(0);const positionY=useMotionValue(0);useEffect(()=>{const handleHover=()=>setIsHovering(true);const handleMouseOut=()=>setIsHovering(false);const addEventListeners=(elements,eventName,handler)=>{elements.forEach(element=>{element.addEventListener(eventName,handler);});};const removeEventListeners=(elements,eventName,handler)=>{elements.forEach(element=>{element.removeEventListener(eventName,handler);});};const buttons=document.querySelectorAll(\"button\");const links=document.querySelectorAll(\"a\");addEventListeners(buttons,\"mouseover\",handleHover);addEventListeners(links,\"mouseover\",handleHover);addEventListeners(buttons,\"mouseout\",handleMouseOut);addEventListeners(links,\"mouseout\",handleMouseOut);return()=>{removeEventListeners(buttons,\"mouseover\",handleHover);removeEventListeners(links,\"mouseover\",handleHover);removeEventListeners(buttons,\"mouseout\",handleMouseOut);removeEventListeners(links,\"mouseout\",handleMouseOut);};},[setIsHovering]);useEffect(()=>{const handleMouseMove=e=>{positionX.set(e.clientX);positionY.set(e.clientY);};window.addEventListener(\"mousemove\",handleMouseMove);return()=>{window.removeEventListener(\"mousemove\",handleMouseMove);};},[]);return /*#__PURE__*/_jsxs(motion.div,{style:{position:\"fixed\",left:positionX,top:positionY,pointerEvents:\"none\",transform:\"translate(-50%, -50%)\",transition:\"transform 0.2s ease, opacity 0.2s ease\",zIndex:9999,scale:isHovering?3:1,mixBlendMode:\"difference\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`* { cursor: none !important; }`}),/*#__PURE__*/_jsx(Component,{...props})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCursorFollow\":{\"type\":\"reactHoc\",\"name\":\"withCursorFollow\",\"annotations\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,EAAMC,EAAO,IAAI,CAAC,MAAM,CAAC,SAAS,QAAQ,KAAKlB,EAAU,IAAIE,EAAU,cAAc,OAAO,UAAU,wBAAwB,WAAW,yCAAyC,OAAO,KAAK,MAAML,EAAW,EAAE,EAAE,aAAa,YAAY,EAAE,SAAS,CAAcsB,EAAK,QAAQ,CAAC,SAAS,gCAAgC,CAAC,EAAeA,EAAKxB,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAC,CAAC,CAAC,CAAE,CAAE",
  "names": ["withCursorFollow", "Component", "props", "isHovering", "setIsHovering", "ye", "positionX", "useMotionValue", "positionY", "ue", "handleHover", "handleMouseOut", "addEventListeners", "elements", "eventName", "handler", "element", "removeEventListeners", "buttons", "links", "handleMouseMove", "e", "window", "u", "motion", "p"]
}
