{"version":3,"file":"ImageLoadingModifier.CVQ6I5ve.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/4vQlsm6bRRo4biAFtvSe/TZQMOfSczUbGmkdiSbn8/ImageLoadingModifier.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";// Change 'eager' to 'lazy' if your goal is forcing lazy load instead\nconst LOADING_MODE=\"eager\";export function withCustomLoading(Component){return props=>{const ref=useRef(null);useEffect(()=>{if(!ref.current)return;// Search for img tags injected inside Framer's wrapper frame\nconst images=ref.current.querySelectorAll(\"img\");images.forEach(img=>{img.setAttribute(\"loading\",LOADING_MODE);});},[]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{display:\"contents\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCustomLoading\":{\"type\":\"reactHoc\",\"name\":\"withCustomLoading\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ImageLoadingModifier.map"],"mappings":"yHAC2B,SAAgB,EAAkB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAIA,EAAO,IAAI,EACY,OADV,MAAc,CAAK,EAAI,SACpF,EAAhC,QAAQ,iBAAiB,KAAY,CAAC,CAAC,QAAQ,GAAK,CAAC,EAAI,aAAa,UAAU,CAAY,CAAE,CAAC,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,MAAM,CAAK,MAAI,MAAM,CAAC,QAAQ,UAAU,EAAE,SAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,CAAC,CAAC,CAAE,CAAE,mBAFtM,IAAoC,EACxE,EAAa"}