{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/s2BP69ik5E4T3VWrq817/ttyQshe6e2ImIdEeUFez/CustomCoursor.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 isHovered=e.target instanceof Element&&(e.target===ref.current.parentElement||ref.current.parentElement.contains(e.target)||e.target===ref.current||ref.current.contains(e.target));setIsHovering(isHovered);if(isHovered){const parentRect=ref.current.parentElement.getBoundingClientRect();const elementRect=ref.current.getBoundingClientRect();setPosition({left:e.clientX-parentRect.left-elementRect.width/2,top:e.clientY-parentRect.top-elementRect.height/2});}else{setIsHovering(false);}};window.addEventListener(\"mousemove\",handleMouseMove);return()=>{window.removeEventListener(\"mousemove\",handleMouseMove);};},[]);return /*#__PURE__*/ _jsx(\"div\",{ref:ref,style:{position:\"fixed\",left:`calc(${position.left}px - 0.1%)`,top:`calc(${position.top}px - 0.1%)`,pointerEvents:\"none\",transform:\"translate(-0.1%, -0.1%)\"},children:isHovering&&/*#__PURE__*/ _jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCursorFollow\":{\"type\":\"reactHoc\",\"name\":\"withCursorFollow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CustomCoursor.map"],
  "mappings": "uGAA+F,SAASA,EAAiBC,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMC,EAAIC,EAAO,IAAI,EAAO,CAACC,EAAWC,CAAa,EAAEC,EAAS,EAAK,EAAO,CAACC,EAASC,CAAW,EAAEF,EAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,EAAE,OAAAG,EAAU,IAAI,CAAC,IAAMC,EAAgB,GAAG,CAAC,GAAG,CAACR,EAAI,QAAQ,OAAO,IAAMS,EAAU,EAAE,kBAAkB,UAAU,EAAE,SAAST,EAAI,QAAQ,eAAeA,EAAI,QAAQ,cAAc,SAAS,EAAE,MAAM,GAAG,EAAE,SAASA,EAAI,SAASA,EAAI,QAAQ,SAAS,EAAE,MAAM,GAA4B,GAAzBG,EAAcM,CAAS,EAAKA,EAAU,CAAC,IAAMC,EAAWV,EAAI,QAAQ,cAAc,sBAAsB,EAAQW,EAAYX,EAAI,QAAQ,sBAAsB,EAAEM,EAAY,CAAC,KAAK,EAAE,QAAQI,EAAW,KAAKC,EAAY,MAAM,EAAE,IAAI,EAAE,QAAQD,EAAW,IAAIC,EAAY,OAAO,CAAC,CAAC,CAAE,MAAMR,EAAc,EAAK,CAAG,EAAE,OAAAS,EAAO,iBAAiB,YAAYJ,CAAe,EAAQ,IAAI,CAACI,EAAO,oBAAoB,YAAYJ,CAAe,CAAE,CAAE,EAAE,CAAC,CAAC,EAAuBK,EAAK,MAAM,CAAC,IAAIb,EAAI,MAAM,CAAC,SAAS,QAAQ,KAAK,QAAQK,EAAS,IAAI,aAAa,IAAI,QAAQA,EAAS,GAAG,aAAa,cAAc,OAAO,UAAU,yBAAyB,EAAE,SAASH,GAA0BW,EAAKf,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAC,CAAC,CAAE,CAAE",
  "names": ["withCursorFollow", "Component", "props", "ref", "pe", "isHovering", "setIsHovering", "ye", "position", "setPosition", "ue", "handleMouseMove", "isHovered", "parentRect", "elementRect", "window", "p"]
}
