{"version":3,"file":"LocaleGate.CEC-VTMA.mjs","names":[],"sources":["https:/framerusercontent.com/modules/7G1WdLJyJFDOO4aAwOo3/flkRNyor76OguwfHxYeq/LocaleGate.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useLocaleInfo}from\"framer\";function isSpanish(activeLocale){const code=activeLocale?.code?.toLowerCase()??\"\";const slug=activeLocale?.slug?.toLowerCase()??\"\";return code.startsWith(\"es\")||slug===\"es\";}// Bloque español → solo en ES\nexport function withOnlyES(Component){return props=>{const{activeLocale}=useLocaleInfo();if(!isSpanish(activeLocale))return null;return /*#__PURE__*/_jsx(Component,{...props});};}// Bloque inglés (idioma por defecto) → en todo MENOS en ES\nexport function withOnlyEN(Component){return props=>{const{activeLocale}=useLocaleInfo();if(isSpanish(activeLocale))return null;return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withOnlyEN\":{\"type\":\"reactHoc\",\"name\":\"withOnlyEN\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOnlyES\":{\"type\":\"reactHoc\",\"name\":\"withOnlyES\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LocaleGate.map"],"mappings":"sJAA6E,SAAS,EAAU,EAAa,CAAC,IAAM,EAAK,GAAc,MAAM,YAAY,GAAG,GAAS,EAAK,GAAc,MAAM,YAAY,GAAG,GAAG,OAAO,EAAK,WAAW,IAAI,GAAG,IAAO,IAAK,CAC1P,SAAgB,EAAW,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,gBAAc,EAAc,EAA0C,OAApC,EAAU,CAAY,EAAkC,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAlD,IAAoD,CAAE,CAClL,SAAgB,EAAW,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,gBAAc,EAAc,EAAyC,OAApC,EAAU,CAAY,EAAS,KAAyB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,CAAE,CAAE,iBAFvI,IAAkC"}