{"version":3,"file":"Image.DTZ8BrrU.mjs","names":["useRef","__esmMin","de","init_npm_react_18_3_1","ce","init_jsx_runtime","c","fadeInOnLoad","ref","frame","img","Component","props","init_Image"],"sources":["https:/framerusercontent.com/modules/hFdDTqdEQzhgf2D7dG6l/ChX8dYNsST69CZ3QpvRw/Image.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export function fadeInOnLoad(Component){return props=>{const ref=useRef(null);useEffect(()=>{const frame=ref.current;const img=frame?.querySelector(\"img\");if(!frame||!img||img.complete&&img.naturalWidth)return;frame.style.overflow=\"hidden\"// keep the zoom inside the frame\n;img.style.opacity=\"0\";img.style.transform=\"scale(1.04)\";img.style.transition=\"opacity 1.2s cubic-bezier(.2,.6,.2,1), transform 1.8s cubic-bezier(.2,.6,.2,1)\";img.addEventListener(\"load\",()=>{img.style.opacity=\"1\";img.style.transform=\"scale(1)\";},{once:true});},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref});};}\nexport const __FramerMetadata__ = {\"exports\":{\"fadeInOnLoad\":{\"type\":\"reactHoc\",\"name\":\"fadeInOnLoad\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Image.map"],"mappings":"A,yHAA+E,SAAgBO,EAAa,EAAU,CAAC,MAAO,IAAO,CAAC,IAAMC,EAAIR,EAAO,IAAI,EAC+G,OAD7GI,MAAc,CAAC,IAAMK,EAAMD,EAAI,QAAcE,EAAID,GAAO,cAAc,KAAK,EAAK,CAACA,GAAO,CAACC,GAAKA,EAAI,UAAUA,EAAI,eAAoB,EAAM,MAAM,SAAS,SACrT,EAAI,MAAM,QAAQ,IAAI,EAAI,MAAM,UAAU,cAAc,EAAI,MAAM,WAAW,iFAAiFA,EAAI,iBAAiB,WAAW,CAAC,EAAI,MAAM,QAAQ,IAAI,EAAI,MAAM,UAAU,UAAW,EAAE,CAAC,KAAK,EAAI,CAAC,EAAE,EAAE,CAAC,CAAC,EAAsB,gBAAKC,EAAU,CAAC,GAAGC,EAAU,KAAG,CAAC,CAAE,CAAE,C"}