{"version":3,"file":"GlowCardEffect.BBC73-_q.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/q9UjlXLgGIF0pxVd4nYU/Z6ZX3HSlXYAszQsLp2Qr/GlowCardEffect.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect,useRef}from\"react\";export function withCardHover(Component){return props=>{const ref=useRef(null);const[point,setPoint]=useState({x:0,y:0});useEffect(()=>{if(!ref.current||typeof window===\"undefined\")return;// Initialize point with window dimensions on the client side\nsetPoint({x:window.innerWidth/2,y:window.innerHeight/2});const updatePos=e=>{const element=ref.current;if(!element)return;const bounds=element.getBoundingClientRect();setPoint({x:e.clientX-bounds.left,y:e.clientY-bounds.top});};window.addEventListener(\"pointermove\",updatePos);return()=>{window.removeEventListener(\"pointermove\",updatePos);};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,\"--x\":`${point.x}px`,\"--y\":`${point.y}px`}});};}export function withOverlayHover(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,display:\"flex\",position:\"absolute\",inset:0,transition:\"400ms mask ease\",willChange:\"mask\",WebkitMask:`radial-gradient(20rem 20rem at var(--x) var(--y), #000 1%, transparent 50%)`,mask:`radial-gradient(20rem 20rem at var(--x) var(--y), #000 1%, transparent 50%)`}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCardHover\":{\"type\":\"reactHoc\",\"name\":\"withCardHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOverlayHover\":{\"type\":\"reactHoc\",\"name\":\"withOverlayHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GlowCardEffect.map"],"mappings":"yIAAwF,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAIA,EAAO,KAAK,CAAM,CAAC,EAAM,GAAUC,EAAS,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAC4I,OAD3I,MAAc,CAAC,GAAG,CAAC,EAAI,SAAgB,IAAS,OAAY,OAC7Q,EAAS,CAAC,EAAE,EAAO,WAAW,EAAE,EAAE,EAAO,YAAY,EAAE,CAAC,CAAC,IAAM,EAAU,GAAG,CAAC,IAAM,EAAQ,EAAI,QAAQ,GAAG,CAAC,EAAQ,OAAO,IAAM,EAAO,EAAQ,uBAAuB,CAAC,EAAS,CAAC,EAAE,EAAE,QAAQ,EAAO,KAAK,EAAE,EAAE,QAAQ,EAAO,IAAI,CAAC,EAAoD,OAAjD,EAAO,iBAAiB,cAAc,EAAU,KAAW,CAAC,EAAO,oBAAoB,cAAc,EAAU,GAAK,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAU,MAAI,MAAM,CAAC,GAAG,EAAM,MAAM,MAAM,GAAG,EAAM,EAAE,IAAI,MAAM,GAAG,EAAM,EAAE,IAAI,CAAC,CAAC,EAAI,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,OAAO,SAAS,WAAW,MAAM,EAAE,WAAW,kBAAkB,WAAW,OAAO,WAAW,8EAA8E,KAAK,8EAA8E,CAAC,CAAC,sBADlzB,IAA6C"}