{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/hzdBlTGtDDniG5CG9BJD/DI8ekMBpLAbl3zC3Sal3/Examples.js"],
  "sourcesContent": ["/**\n * Hover Mask - Mastering Framer\n * by Rick Waalders\n * https://x.com/rickwaalders\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect,useRef}from\"react\";const MASK_SIZE=100;export function bottomLayer(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{pointerEvents:\"none\"}});};}export function topLayer(Component){return props=>{const ref=useRef(null);const[mousePosition,setMousePosition]=useState({x:0,y:0});useEffect(()=>{const handleMouseMove=e=>{if(ref.current){const rect=ref.current.getBoundingClientRect();setMousePosition({x:e.clientX-rect.left,y:e.clientY-rect.top});}};window.addEventListener(\"mousemove\",handleMouseMove);return()=>{if(window){window.removeEventListener(\"mousemove\",handleMouseMove);}};},[]);const extendedStyle={color:\"red\",clipPath:`circle(${MASK_SIZE}px at ${mousePosition.x}px ${mousePosition.y}px)`,pointerEvents:\"none\"};return /*#__PURE__*/_jsx(Component,{...props,ref:el=>{ref.current=el;},style:extendedStyle});};}\nexport const __FramerMetadata__ = {\"exports\":{\"bottomLayer\":{\"type\":\"reactHoc\",\"name\":\"bottomLayer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"topLayer\":{\"type\":\"reactHoc\",\"name\":\"topLayer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],
  "mappings": "uGAI2F,IAAMA,EAAU,IAAW,SAASC,EAAYC,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,cAAc,MAAM,CAAC,CAAC,CAAI,CAAQ,SAASE,EAASH,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMG,EAAIC,EAAO,IAAI,EAAO,CAACC,EAAcC,CAAgB,EAAEC,EAAS,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAEC,EAAU,IAAI,CAAC,IAAMC,EAAgBC,GAAG,CAAC,GAAGP,EAAI,QAAQ,CAAC,IAAMQ,EAAKR,EAAI,QAAQ,sBAAsB,EAAEG,EAAiB,CAAC,EAAEI,EAAE,QAAQC,EAAK,KAAK,EAAED,EAAE,QAAQC,EAAK,GAAG,CAAC,CAAE,CAAC,EAAE,OAAAC,EAAO,iBAAiB,YAAYH,CAAe,EAAQ,IAAI,CAAIG,GAAQA,EAAO,oBAAoB,YAAYH,CAAe,CAAG,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMI,EAAc,CAAC,MAAM,MAAM,SAAS,UAAUhB,CAAS,SAASQ,EAAc,CAAC,MAAMA,EAAc,CAAC,MAAM,cAAc,MAAM,EAAE,OAAoBJ,EAAKF,EAAU,CAAC,GAAGC,EAAM,IAAIc,GAAI,CAACX,EAAI,QAAQW,CAAG,EAAE,MAAMD,CAAa,CAAC,CAAE,CAAE",
  "names": ["MASK_SIZE", "bottomLayer", "Component", "props", "p", "topLayer", "ref", "pe", "mousePosition", "setMousePosition", "ye", "ue", "handleMouseMove", "e", "rect", "window", "extendedStyle", "el"]
}
