{"version":3,"file":"MagnifyImage.zF-LRl4a.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/8DEfxAY7dZPn3101DpyN/coqS8LzSydpxOCVjgLJZ/MagnifyImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState}from\"react\";export function withMagnify(Component){return function MagnifyOverride(props){const[zoomStyle,setZoomStyle]=useState({transform:\"scale(1)\",transformOrigin:\"50% 50%\",transition:\"transform 0.4s cubic-bezier(0.2,0,0.2,1)\"});function handleMove(e){const rect=e.currentTarget.getBoundingClientRect();const xPct=(e.clientX-rect.left)/rect.width*100;const yPct=(e.clientY-rect.top)/rect.height*100;setZoomStyle({transform:\"scale(2.2)\",transformOrigin:`${xPct}% ${yPct}%`,transition:\"transform 0.12s ease-out\"});}function handleLeave(){setZoomStyle({transform:\"scale(1)\",transformOrigin:\"50% 50%\",transition:\"transform 0.4s cubic-bezier(0.2,0,0.2,1)\"});}return /*#__PURE__*/_jsx(Component,{...props,onMouseMove:handleMove,onMouseLeave:handleLeave,style:{...props.style,...zoomStyle,cursor:\"zoom-in\",willChange:\"transform\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withMagnify\":{\"type\":\"reactHoc\",\"name\":\"withMagnify\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MagnifyImage.map"],"mappings":"kHAAuE,SAAgB,EAAY,EAAU,CAAC,OAAO,SAAyB,EAAM,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAS,CAAC,UAAU,WAAW,gBAAgB,UAAU,WAAW,0CAA0C,CAAC,EAAE,SAAS,EAAW,EAAE,CAAC,IAAM,EAAK,EAAE,cAAc,sBAAsB,EAAQ,GAAM,EAAE,QAAQ,EAAK,MAAM,EAAK,MAAM,IAAU,GAAM,EAAE,QAAQ,EAAK,KAAK,EAAK,OAAO,IAAI,EAAa,CAAC,UAAU,aAAa,gBAAgB,GAAG,EAAK,IAAI,EAAK,GAAG,WAAW,0BAA0B,CAAC,CAAE,CAAC,SAAS,GAAa,CAAC,EAAa,CAAC,UAAU,WAAW,gBAAgB,UAAU,WAAW,0CAA0C,CAAC,CAAE,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,YAAY,EAAW,aAAa,EAAY,MAAM,CAAC,GAAG,EAAM,MAAM,GAAG,EAAU,OAAO,UAAU,WAAW,WAAW,CAAC,CAAC,CAAE,CAAE,iBAAh1B,IAA4B"}