{"version":3,"file":"LocaleScreen.l_chpgvJ.mjs","names":["__esmMin","init_jsx_runtime","c","init_framer_BisrWwwE","useLocaleInfo","useLang","swap","value","SCREENS_EN","id","match","withEnglishScreen","Component","props","bg","init_LocaleScreen"],"sources":["https:/framerusercontent.com/modules/dGv9gThNLqtdpJjswhNL/ck0glg3s2RWSOMnzjxPC/LocaleScreen.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useLocaleInfo}from\"framer\";function useLang(){try{const code=String(useLocaleInfo()?.activeLocale?.code??\"\").toLowerCase();return code.startsWith(\"en\")?\"en\":\"es\";}catch{return\"es\";}}// ---------- App screens per language (I18N05, 17 nov 2026) ----------\n// Canvas layers whose image fill is a Spanish app screen (Home card section `app-mockup`, the `phone` /\n// `app-screen` of the steps bento on /global-account, /local-currency and the Bolivia and Santander landings).\n// The override keeps the layer as it is and only swaps its image on `/en` for the English export\n// (Figma page \"EN · web mockups (I18N05)\"). Spanish site unchanged.\nconst SCREENS_EN={\"Bk0uSK3xoskDJMtoNNDmz4WLlgA.webp\":\"wcX3SoWgbmWSkTRoNoBXM6rEfZk.webp\",\"krnIS5Ezfnj1FxRUqrCBQXMqHF0.webp\":\"4GL5j2CTrbhfsNr5RyLhfs94O6g.webp\"};function swap(value){if(typeof value!==\"string\")return value;return value.replace(/images\\/([A-Za-z0-9_-]+\\.(?:webp|png|jpg|jpeg|avif))/g,(match,id)=>SCREENS_EN[id]?`images/${SCREENS_EN[id]}`:match);}/**\n * English app screen on `/en`: apply to a frame whose image fill is one of the screens above.\n */export function withEnglishScreen(Component){return props=>{const lang=useLang();if(lang!==\"en\")return /*#__PURE__*/_jsx(Component,{...props});const bg=props.background;if(!bg||typeof bg!==\"object\")return /*#__PURE__*/_jsx(Component,{...props});return /*#__PURE__*/_jsx(Component,{...props,background:{...bg,src:swap(bg.src),srcSet:swap(bg.srcSet)}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withEnglishScreen\":{\"type\":\"reactHoc\",\"name\":\"withEnglishScreen\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LocaleScreen.map"],"mappings":"A,sJAA6E,SAASK,GAAS,CAAC,GAAG,CAA0E,OAA9D,OAAOD,EAAc,CAAC,EAAE,cAAc,MAAM,EAAE,CAAC,CAAC,YAAwB,CAAC,CAAC,WAAW,IAAI,EAAE,KAAK,IAAK,MAAM,CAAC,MAAM,IAAK,CAAC,CAKxE,SAASE,EAAK,EAAM,CAAyC,OAArC,OAAOC,GAAQ,SAA6BA,EAAM,QAAQ,yDAAyD,EAAM,IAAKC,EAAWC,GAAI,UAAUD,EAAWC,KAAMC,CAAK,EAA9IH,CAAgJ,CAEnW,SAAgBI,EAAkB,EAAU,CAAC,MAAO,IAAO,CAAsB,GAAVN,EAAgB,IAAI,KAAK,MAAoB,gBAAKO,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAE,IAAMC,EAAGD,EAAM,WAAuF,MAAzE,CAACC,GAAI,OAAOA,GAAK,SAA6B,gBAAKF,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAsB,gBAAKD,EAAU,CAAC,GAAGC,EAAM,WAAW,CAAC,GAAGC,EAAG,IAAIR,EAAKQ,EAAG,GAAG,EAAE,OAAOR,EAAKQ,EAAG,MAAM,CAAC,CAAC,CAAC,CAAE,CAAE,C,4CAF9V,EAAW,CAAC,mCAAmC,mCAAmC,mCAAmC,kCAAkC,C"}