{"version":3,"file":"Lazy_Load.CwhjNsMh.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/eRX7yhmEgzPrb9DCnRIB/3r0qaIs78abdwq6RHOZx/Lazy_Load.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";/**\n * @framerDisableUnlink\n * @framerIntrinsicWidth 100\n * @framerIntrinsicHeight 100\n */export function withLazyImage(Component){return props=>{const ref=useRef(null);useEffect(()=>{const container=ref.current;const img=container?.querySelector(\"img\");if(img){img.loading=\"lazy\";img.style.width=\"100%\";img.style.height=\"100%\";img.style.objectFit=\"cover\";}},[]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:\"100%\",height:\"100%\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withLazyImage\":{\"type\":\"reactHoc\",\"name\":\"withLazyImage\",\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"* @framerIntrinsicWidth 100\",\"framerIntrinsicHeight\":\"100\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Lazy_Load.map"],"mappings":"mKAIG,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAIA,EAAO,KAAK,CAAmM,OAAlM,MAAc,CAA6B,IAAM,EAAlB,EAAI,SAA6B,cAAc,MAAM,CAAI,IAAK,EAAI,QAAQ,OAAO,EAAI,MAAM,MAAM,OAAO,EAAI,MAAM,OAAO,OAAO,EAAI,MAAM,UAAU,UAAW,EAAE,CAAC,CAAqB,EAAK,MAAM,CAAK,MAAI,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,CAAC,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CAAC,CAAC,mBAJtW,IAAoC"}