{"version":3,"file":"Fetch.B0PTnDxF.mjs","names":["useEffect","_jsx","__esmMin","init_npm_react_18_3_1","c","init_jsx_runtime","ce","withFetchPriority","Component","props","src","id","link","init_Fetch"],"sources":["https:/framerusercontent.com/modules/PvfKRhovWKCc3qfFHc4K/M8QLH58MfMUtawqGuGrD/Fetch.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function withFetchPriority(Component){return props=>{useEffect(()=>{const src=props?.background?.src;if(!src)return;const id=`preload-${src}`;// prevent duplicates\nif(document.getElementById(id))return;const link=document.createElement(\"link\");link.id=id;link.rel=\"preload\";link.as=\"image\";link.href=src;link.fetchPriority=\"high\";document.head.appendChild(link);},[props?.background?.src]);return /*#__PURE__*/_jsx(Component,{...props,background:{...props.background,fetchPriority:\"high\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withFetchPriority\":{\"type\":\"reactHoc\",\"name\":\"withFetchPriority\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Fetch.map"],"mappings":"A,kHAAwE,SAAgBO,EAAkBC,EAAU,CAAC,MAAOC,KAAQT,MAAc,CAAC,IAAMU,EAAID,GAAO,YAAY,IAAI,GAAG,CAACC,EAAI,OAAO,IAAMC,EAAG,WAAWD,IACvN,GAAG,SAAS,eAAeC,CAAE,EAAE,OAAO,IAAMC,EAAK,SAAS,cAAc,MAAM,EAAEA,EAAK,GAAGD,EAAGC,EAAK,IAAI,UAAUA,EAAK,GAAG,QAAQA,EAAK,KAAKF,EAAIE,EAAK,cAAc,OAAO,SAAS,KAAK,YAAYA,CAAI,CAAE,EAAE,CAACH,GAAO,YAAY,GAAG,CAAC,EAAsBR,gBAAKO,EAAU,CAAC,GAAGC,EAAM,WAAW,CAAC,GAAGA,EAAM,WAAW,cAAc,MAAM,CAAC,CAAC,EAAI,C"}