{"version":3,"file":"TerraceImageFetchPriority.DiUXb2fc.mjs","names":["__esmMin","c","init_jsx_runtime","withFetchPriority","Component","props","init_TerraceImageFetchPriority"],"sources":["https:/framerusercontent.com/modules/ss5RHIII5WmaxDczJYyI/5Bul2NDFHyG0ZwSx8cZa/TerraceImageFetchPriority.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";/**\n * Terrace — Image Fetch Priority Override\n *\n * Framer's native Image layer doesn't expose fetchpriority in the\n * properties panel. Framer's Image component renders its <img>\n * through an internal `background` prop object, so unlike a plain\n * <img> tag we can't just mutate the DOM after the fact reliably,\n * we inject it into the prop itself before render.\n *\n * This is more reliable than the video DOM-mutation overrides:\n * since this modifies the prop BEFORE Framer renders the element,\n * fetchpriority is present from the component's first render, not\n * patched in after hydration. That's exactly what Lighthouse's LCP\n * discovery check wants.\n *\n * HOW TO APPLY:\n * 1. Upload this file in Assets → Code\n * 2. Select the mobile hero Image layer (the one inside the Stack\n *    that replaced the video on mobile)\n * 3. In the right panel, open the \"Code\" / Overrides section\n * 4. Pick this file, then select \"withFetchPriority\" from the list\n *\n * Only apply this to the ONE image that's actually the LCP element\n * on mobile. Applying fetchpriority=\"high\" to multiple images makes\n * them compete with each other and defeats the purpose.\n */export function withFetchPriority(Component){return props=>{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=./TerraceImageFetchPriority.map"],"mappings":"A,oGAyBG,SAAgBG,EAAkB,EAAU,CAAC,MAAO,IAA4B,gBAAKC,EAAU,CAAC,GAAGC,EAAM,WAAW,CAAC,GAAGA,EAAM,WAAW,cAAc,MAAM,CAAC,CAAC,CAAI,C"}