{"version":3,"file":"HeroBackground.pc43fDHb.mjs","names":["useState","React","e"],"sources":["https:/framerusercontent.com/modules/vFOIA9gMG1vIA1i7wkYV/F2hS1HpmaOF3Y72jgNBX/HeroBackground.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import React,{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function HeroBackground(props){const[mousePosition,setMousePosition]=useState({x:0,y:0});const componentRef=React.useRef(null);useEffect(()=>{const handleMouseMove=e=>{if(componentRef.current){const rect=componentRef.current.getBoundingClientRect();setMousePosition({x:e.clientX-rect.left,y:e.clientY-rect.top});}};document.addEventListener(\"mousemove\",handleMouseMove);return()=>{document.removeEventListener(\"mousemove\",handleMouseMove);};},[]);const glowStyle={position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",background:`radial-gradient(circle at ${mousePosition.x}px ${mousePosition.y}px, ${props.glowColor} 0%, transparent 600px)`,transition:\"opacity 0.3s ease-out\",pointerEvents:\"none\",zIndex:1};return /*#__PURE__*/_jsx(\"div\",{ref:componentRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",backgroundColor:props.backgroundColor,overflow:\"hidden\",cursor:\"none\"},children:/*#__PURE__*/_jsx(\"div\",{style:glowStyle})});}// Framer property controls\naddPropertyControls(HeroBackground,{backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#0a0a0a\"},glowColor:{type:ControlType.Color,title:\"Glow Color\",defaultValue:\"#3b82f6\"}});// Default props for Framer\nHeroBackground.defaultProps={backgroundColor:\"#0a0a0a\",glowColor:\"#3b82f6\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HeroBackground\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HeroBackground.map"],"mappings":"wLAA4I,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,EAAc,GAAkBA,EAAS,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAO,EAAaC,EAAM,OAAO,KAAK,CAAC,MAAc,CAAC,IAAM,EAAgB,GAAG,CAAC,GAAG,EAAa,QAAQ,CAAC,IAAM,EAAK,EAAa,QAAQ,uBAAuB,CAAC,EAAiB,CAAC,EAAEC,EAAE,QAAQ,EAAK,KAAK,EAAEA,EAAE,QAAQ,EAAK,IAAI,CAAC,GAA2D,OAAvD,SAAS,iBAAiB,YAAY,EAAgB,KAAW,CAAC,SAAS,oBAAoB,YAAY,EAAgB,GAAK,EAAE,CAAC,CAAC,IAAM,EAAU,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,OAAO,OAAO,OAAO,WAAW,6BAA6B,EAAc,EAAE,KAAK,EAAc,EAAE,MAAM,EAAM,UAAU,yBAAyB,WAAW,wBAAwB,cAAc,OAAO,OAAO,EAAE,CAAC,OAAoB,EAAK,MAAM,CAAC,IAAI,EAAa,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,gBAAgB,EAAM,gBAAgB,SAAS,SAAS,OAAO,OAAO,CAAC,SAAsB,EAAK,MAAM,CAAC,MAAM,EAAU,CAAC,CAAC,CAAC,kBAA7hC,IAA6C,IAAoD,CAC5I,EAAoB,EAAe,CAAC,gBAAgB,CAAC,KAAK,EAAY,MAAM,MAAM,mBAAmB,aAAa,UAAU,CAAC,UAAU,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,UAAU,CAAC,CAAC,CAC3M,EAAe,aAAa,CAAC,gBAAgB,UAAU,UAAU,UAAU"}