{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/7c5rBdffwZFOZXZP8GUB/UV7xsi8YDbNcHKlu8jwy/Proximity_Sensor.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{motion,useMotionValue}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export function ParallaxMouseMovement(props){const{children,intensity}=props;const x=useMotionValue(0);const y=useMotionValue(0);React.useEffect(()=>{const handleMouseMove=event=>{const{clientX,clientY}=event;const height=window.innerHeight;const width=window.innerWidth;const moveX=(clientX-width/2)*intensity;const moveY=(clientY-height/2)*intensity;x.set(moveX);y.set(moveY);};window.addEventListener(\"mousemove\",handleMouseMove);return()=>{window.removeEventListener(\"mousemove\",handleMouseMove);};},[intensity,x,y]);return /*#__PURE__*/_jsx(motion.div,{style:{width:\"100%\",height:\"100%\",x:x,y:y,display:\"flex\",alignItems:\"stretch\",justifyContent:\"stretch\"},children:React.Children.map(children,child=>/*#__PURE__*/React.isValidElement(child)?/*#__PURE__*/React.cloneElement(child,{style:{width:\"100%\",height:\"100%\"}}):child)});}ParallaxMouseMovement.defaultProps={intensity:.05};addPropertyControls(ParallaxMouseMovement,{children:{type:ControlType.ComponentInstance,title:\"Content\"},intensity:{type:ControlType.Number,title:\"Intensity\",min:0,max:1,step:.01}});\nexport const __FramerMetadata__ = {\"exports\":{\"ParallaxMouseMovement\":{\"type\":\"reactComponent\",\"name\":\"ParallaxMouseMovement\",\"slots\":[\"children\"],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Proximity_Sensor.map"],
  "mappings": "4IAAmL,SAASA,EAAsBC,EAAM,CAAC,GAAK,CAAC,SAAAC,EAAS,UAAAC,CAAS,EAAEF,EAAYG,EAAEC,EAAe,CAAC,EAAQC,EAAED,EAAe,CAAC,EAAE,OAAME,EAAU,IAAI,CAAC,IAAMC,EAAgBC,GAAO,CAAC,GAAK,CAAC,QAAAC,EAAQ,QAAAC,CAAO,EAAEF,EAAYG,EAAOC,EAAO,YAAkBC,EAAMD,EAAO,WAAiBE,GAAOL,EAAQI,EAAM,GAAGX,EAAgBa,GAAOL,EAAQC,EAAO,GAAGT,EAAUC,EAAE,IAAIW,CAAK,EAAET,EAAE,IAAIU,CAAK,CAAE,EAAE,OAAAH,EAAO,iBAAiB,YAAYL,CAAe,EAAQ,IAAI,CAACK,EAAO,oBAAoB,YAAYL,CAAe,CAAE,CAAE,EAAE,CAACL,EAAUC,EAAEE,CAAC,CAAC,EAAsB,EAAKW,EAAO,IAAI,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,EAAEb,EAAE,EAAEE,EAAE,QAAQ,OAAO,WAAW,UAAU,eAAe,SAAS,EAAE,SAAeY,EAAS,IAAIhB,EAASiB,GAA0BC,EAAeD,CAAK,EAAqBE,EAAaF,EAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,MAAM,CAAC,CAAC,EAAEA,CAAK,CAAC,CAAC,CAAE,CAACnB,EAAsB,aAAa,CAAC,UAAU,GAAG,EAAEsB,EAAoBtB,EAAsB,CAAC,SAAS,CAAC,KAAKuB,EAAY,kBAAkB,MAAM,SAAS,EAAE,UAAU,CAAC,KAAKA,EAAY,OAAO,MAAM,YAAY,IAAI,EAAE,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC",
  "names": ["ParallaxMouseMovement", "props", "children", "intensity", "x", "useMotionValue", "y", "ue", "handleMouseMove", "event", "clientX", "clientY", "height", "window", "width", "moveX", "moveY", "motion", "j", "child", "J", "q", "addPropertyControls", "ControlType"]
}
