{"version":3,"file":"PerformanceImage.D_cZM4fb.mjs","names":["React.forwardRef","_jsx","__esmMin","init_npm_react_18_3_1","c","J","init_jsx_runtime","withSrcSet","bg","sizes","CDN","base","query","params","pw","ph","long","steps","s","keep","tail","ratio","entries","w","withResponsiveLogo","Component","props","ref","init_PerformanceImage"],"sources":["https:/framerusercontent.com/modules/ImpCQ1y57bzPzROuDavU/s2umYBNTfBIsno5Bj8FM/PerformanceImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";// Performance: Framer renders some image fills (e.g. CMS logos with \"fit-image\" height) without a srcset,\n// so the browser downloads and decodes the full original (up to 4501×4501 px ≈ 80 MB decoded) for a ~250 px logo.\n// This override adds a responsive srcset using Framer's own image CDN (scale-down-to), so the browser picks\n// a size that matches the layout. Visual output is unchanged.\nconst CDN=/^https:\\/\\/framerusercontent\\.com\\/images\\//;function withSrcSet(bg,sizes){if(!bg||typeof bg!==\"object\"||typeof bg.src!==\"string\")return bg;if(bg.srcSet||!CDN.test(bg.src))return bg;const[base,query=\"\"]=bg.src.split(\"?\");const params=new URLSearchParams(query);const pw=Number(bg.pixelWidth||params.get(\"width\")||0);const ph=Number(bg.pixelHeight||params.get(\"height\")||0);const long=Math.max(pw,ph);const steps=[256,512,1024].filter(s=>!long||s<long);if(!steps.length)return bg;const keep=new URLSearchParams;if(pw)keep.set(\"width\",String(pw));if(ph)keep.set(\"height\",String(ph));const tail=keep.toString()?\"&\"+keep.toString():\"\";const ratio=pw&&ph?pw/ph:1;const entries=steps.map(s=>{const w=ratio>=1?s:Math.max(1,Math.round(s*ratio));return base+\"?scale-down-to=\"+s+tail+\" \"+w+\"w\";});if(pw)entries.push(bg.src+\" \"+pw+\"w\");return{...bg,srcSet:entries.join(\", \"),sizes:bg.sizes||sizes};}/** Event / partner logos (max ~260 px wide in every breakpoint). */export function withResponsiveLogo(Component){return /*#__PURE__*/React.forwardRef((props,ref)=>/*#__PURE__*/_jsx(Component,{ref:ref,...props,background:withSrcSet(props.background,\"(max-width: 809.98px) 200px, 260px\")}));}/** Generic content image up to roughly half the viewport. */export function withResponsiveImageHalf(Component){return /*#__PURE__*/React.forwardRef((props,ref)=>/*#__PURE__*/_jsx(Component,{ref:ref,...props,background:withSrcSet(props.background,\"(max-width: 809.98px) 100vw, 50vw\")}));}\nexport const __FramerMetadata__ = {\"exports\":{\"withResponsiveLogo\":{\"type\":\"reactHoc\",\"name\":\"withResponsiveLogo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withResponsiveImageHalf\":{\"type\":\"reactHoc\",\"name\":\"withResponsiveImageHalf\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PerformanceImage.map"],"mappings":"A,kHAIwD,SAASO,EAAWC,EAAGC,EAAM,CAAkE,GAA9D,CAACD,GAAI,OAAOA,GAAK,UAAU,OAAOA,EAAG,KAAM,UAAsBA,EAAG,QAAQ,CAACE,EAAI,KAAKF,EAAG,GAAG,EAAE,OAAOA,EAAG,GAAK,CAACG,EAAKC,EAAM,IAAIJ,EAAG,IAAI,MAAM,GAAG,EAAQK,EAAO,IAAI,gBAAgBD,CAAK,EAAQE,EAAG,OAAON,EAAG,YAAYK,EAAO,IAAI,OAAO,GAAG,CAAC,EAAQE,EAAG,OAAOP,EAAG,aAAaK,EAAO,IAAI,QAAQ,GAAG,CAAC,EAAQG,EAAK,KAAK,IAAIF,EAAGC,CAAE,EAAQE,EAAM,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,OAAOC,GAAG,CAACF,GAAME,EAAEF,CAAI,EAAE,GAAG,CAACC,EAAM,OAAO,OAAOT,EAAG,IAAMW,EAAK,IAAI,gBAAmBL,GAAGK,EAAK,IAAI,QAAQ,OAAOL,CAAE,CAAC,EAAKC,GAAGI,EAAK,IAAI,SAAS,OAAOJ,CAAE,CAAC,EAAE,IAAMK,EAAKD,EAAK,SAAS,EAAE,IAAIA,EAAK,SAAS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