{"version":3,"file":"LazyLoad.D935tFdd.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/aYnAdPf7OaJOsMY0Y7a9/R2iL7chCfXZ7J7s0EwTH/LazyLoad.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export const withImageLazyLoad=Component=>{return props=>{const containerRef=useRef(null);useEffect(()=>{if(containerRef.current){const img=containerRef.current.querySelector(\"img\");if(img){img.setAttribute(\"loading\",\"lazy\");}}},[]);return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,children:/*#__PURE__*/_jsx(Component,{...props})});};};\nexport const __FramerMetadata__ = {\"exports\":{\"withImageLazyLoad\":{\"type\":\"reactHoc\",\"name\":\"withImageLazyLoad\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LazyLoad.map"],"mappings":"2IAA0C,IAAoC,EAAc,EAAkB,GAAmB,GAAO,CAAC,IAAM,EAAaA,EAAO,IAAI,EAAiJ,OAA/I,MAAc,CAAC,GAAG,EAAa,QAAQ,CAAC,IAAM,EAAI,EAAa,QAAQ,cAAc,KAAK,EAAK,GAAK,EAAI,aAAa,UAAU,MAAM,CAAG,CAAC,EAAE,CAAC,CAAC,EAAsB,EAAK,MAAM,CAAC,IAAI,EAAa,SAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,CAAC,CAAC,CAAE"}