{"version":3,"file":"Look.BITH3Z2Z.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/2sWsqFwljOEFBDvX0KMp/TyjNM3UKg63EpOffPTzP/Look.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{useMotionValue,useSpring,useInView}from\"framer-motion\";const with3DIntensity=(Component,maxRotation=10)=>{const SPRING_CONFIG={damping:60,stiffness:300};return props=>{const rotateX=useMotionValue(0);const rotateY=useMotionValue(0);const ref=useRef(null);const isInView=useInView(ref);const springRotateX=useSpring(rotateX,SPRING_CONFIG);const springRotateY=useSpring(rotateY,SPRING_CONFIG);useEffect(()=>{if(!isInView){rotateX.set(0);rotateY.set(0);}},[isInView]);useEffect(()=>{const handleMouseMove=e=>{if(!ref.current||!isInView)return;const rect=ref.current.getBoundingClientRect();const centerX=rect.left+rect.width/2;const centerY=rect.top+rect.height/2;const percentX=(e.clientX-centerX)/(rect.width/2);const percentY=(e.clientY-centerY)/(rect.height/2);rotateY.set(percentX*maxRotation);rotateX.set(-percentY*maxRotation);};document.addEventListener(\"mousemove\",handleMouseMove);return()=>{document.removeEventListener(\"mousemove\",handleMouseMove);};},[isInView]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{rotateX:springRotateX,rotateY:springRotateY,rotateZ:0,transformPerspective:800,transformOrigin:\"center\"}});};};// Individual intensity exports\nexport const with3DIntensity1=Component=>with3DIntensity(Component,1);export const with3DIntensity3=Component=>with3DIntensity(Component,3);export const with3DIntensity5=Component=>with3DIntensity(Component,5);export const with3DIntensity7=Component=>with3DIntensity(Component,7);export const with3DIntensity10=Component=>with3DIntensity(Component,10);\nexport const __FramerMetadata__ = {\"exports\":{\"with3DIntensity10\":{\"type\":\"reactHoc\",\"name\":\"with3DIntensity10\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"with3DIntensity3\":{\"type\":\"reactHoc\",\"name\":\"with3DIntensity3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"with3DIntensity1\":{\"type\":\"reactHoc\",\"name\":\"with3DIntensity1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"with3DIntensity7\":{\"type\":\"reactHoc\",\"name\":\"with3DIntensity7\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"with3DIntensity5\":{\"type\":\"reactHoc\",\"name\":\"with3DIntensity5\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Look.map"],"mappings":"iNAA2C,IAAoC,IAA8D,CAAM,GAAiB,EAAU,EAAY,KAAK,CAAC,IAAM,EAAc,CAAC,QAAQ,GAAG,UAAU,IAAI,CAAC,MAAO,IAAO,CAAC,IAAM,EAAQ,EAAe,EAAE,CAAO,EAAQ,EAAe,EAAE,CAAO,EAAIA,EAAO,KAAK,CAAO,EAAS,EAAU,EAAI,CAAO,EAAc,EAAU,EAAQ,EAAc,CAAO,EAAc,EAAU,EAAQ,EAAc,CAAukB,OAAtkB,MAAc,CAAK,IAAU,EAAQ,IAAI,EAAE,CAAC,EAAQ,IAAI,EAAE,GAAI,CAAC,EAAS,CAAC,CAAC,MAAc,CAAC,IAAM,EAAgB,GAAG,CAAC,GAAG,CAAC,EAAI,SAAS,CAAC,EAAS,OAAO,IAAM,EAAK,EAAI,QAAQ,uBAAuB,CAAO,EAAQ,EAAK,KAAK,EAAK,MAAM,EAAQ,EAAQ,EAAK,IAAI,EAAK,OAAO,EAAQ,GAAU,EAAE,QAAQ,IAAU,EAAK,MAAM,GAAS,GAAU,EAAE,QAAQ,IAAU,EAAK,OAAO,GAAG,EAAQ,IAAI,EAAS,EAAY,CAAC,EAAQ,IAAI,CAAC,EAAS,EAAY,EAA0D,OAAvD,SAAS,iBAAiB,YAAY,EAAgB,KAAW,CAAC,SAAS,oBAAoB,YAAY,EAAgB,GAAK,CAAC,EAAS,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAU,MAAI,MAAM,CAAC,QAAQ,EAAc,QAAQ,EAAc,QAAQ,EAAE,qBAAqB,IAAI,gBAAgB,SAAS,CAAC,CAAC,GAC5rC,EAAiB,GAAW,EAAgB,EAAU,EAAE,CAAc,EAAiB,GAAW,EAAgB,EAAU,EAAE,CAAoF,EAAiB,GAAW,EAAgB,EAAU,EAAE"}