{"version":3,"file":"ImageLoadingModifier.CohX0wXR.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,KAAK,CACW,OADV,MAAc,CAAK,EAAI,SACxH,EAAI,QAAQ,iBAAiB,MAAM,CAAQ,QAAQ,GAAK,CAAC,EAAI,aAAa,UAAU,EAAa,EAAG,EAAG,EAAE,CAAC,CAAqB,EAAK,MAAM,CAAK,MAAI,MAAM,CAAC,QAAQ,WAAW,CAAC,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CAAC,CAAC,qBAFlM,IAAoC,CACzE,EAAa"}