{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/JXrNR8v4v9JVuELaNzwk/0UJqjcWliNNlXiHYkwSy/Rotation.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{useRef,useEffect}from\"react\";export function withMouseRotation(Component){return props=>{const ref=useRef(null);useEffect(()=>{function handleMouseMove(event){if(ref.current){const rect=ref.current.getBoundingClientRect();const centerX=rect.left+rect.width/2;const centerY=rect.top+rect.height/2;const deltaX=event.clientX-centerX;const deltaY=event.clientY-centerY;const angle=Math.atan2(deltaY,deltaX)*(180/Math.PI);ref.current.style.transform=`rotate(${angle}deg)`;}}document.addEventListener(\"mousemove\",handleMouseMove);return()=>{// Clean up the event listener when the component unmounts\ndocument.removeEventListener(\"mousemove\",handleMouseMove);};},[]);return /*#__PURE__*/ _jsx(motion.div,{ref:ref,style:{position:\"relative\"},children:/*#__PURE__*/ _jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withMouseRotation\":{\"type\":\"reactHoc\",\"name\":\"withMouseRotation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Rotation.map"],
  "mappings": "gGAAwH,SAASA,EAAkBC,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMC,EAAIC,EAAO,IAAI,EAAE,OAAAC,EAAU,IAAI,CAAC,SAASC,EAAgBC,EAAM,CAAC,GAAGJ,EAAI,QAAQ,CAAC,IAAMK,EAAKL,EAAI,QAAQ,sBAAsB,EAAQM,EAAQD,EAAK,KAAKA,EAAK,MAAM,EAAQE,EAAQF,EAAK,IAAIA,EAAK,OAAO,EAAQG,EAAOJ,EAAM,QAAQE,EAAcG,EAAOL,EAAM,QAAQG,EAAcG,EAAM,KAAK,MAAMD,EAAOD,CAAM,GAAG,IAAI,KAAK,IAAIR,EAAI,QAAQ,MAAM,UAAU,UAAUU,CAAK,MAAO,CAAC,CAAC,gBAAS,iBAAiB,YAAYP,CAAe,EAAQ,IAAI,CAC3mB,SAAS,oBAAoB,YAAYA,CAAe,CAAE,CAAE,EAAE,CAAC,CAAC,EAAuBQ,EAAKC,EAAO,IAAI,CAAC,IAAIZ,EAAI,MAAM,CAAC,SAAS,UAAU,EAAE,SAAuBW,EAAKb,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAC,CAAC,CAAE,CAAE",
  "names": ["withMouseRotation", "Component", "props", "ref", "pe", "ue", "handleMouseMove", "event", "rect", "centerX", "centerY", "deltaX", "deltaY", "angle", "p", "motion"]
}
