{"version":3,"file":"utils-nAhCIr.fSW7nCuB.mjs","names":[],"sources":["https:/framerusercontent.com/modules/SSFIIfkP2U6GDtE83PM1/5eVQESdd5W8cwxehYNLN/countries.js","https:/framer.com/m/countries-LlZ7QO.js","https:/framerusercontent.com/modules/W724V3jonPGmRuVvxw3L/UQyR4TQV9jdkM5QEBnoI/utils.js","https:/framer.com/m/utils-nAhCIr.js"],"sourcesContent":["// =============================================================================\n// COUNTRY GROUPINGS\n// =============================================================================\nexport const COUNTRIES=[{localeName:\"Germany\",localeId:\"de\",locales:[\"en-de\",\"de-de\"]},{localeName:\"France\",localeId:\"fr\",locales:[\"en-fr\",\"fr-fr\"]},{localeName:\"Italy\",localeId:\"it\",locales:[\"en-it\",\"it-it\"]},{localeName:\"The Netherlands\",localeId:\"nl\",locales:[\"en-nl\",\"nl-nl\"]},{localeName:\"Belgium\",localeId:\"be\",locales:[\"en-be\",\"nl-be\",\"fr-be\"]},{localeName:\"Spain\",localeId:\"es\",locales:[\"en-es\",\"es-es\"]},{localeName:\"Poland\",localeId:\"pl\",locales:[\"en-pl\",\"pl-pl\"]},{localeName:\"Portugal\",localeId:\"pt\",locales:[\"en-pt\",\"pt-pt\"]},{localeName:\"Austria\",localeId:\"at\",locales:[\"en-at\",\"de-at\"]},{localeName:\"Ireland\",localeId:\"ie\",locales:[\"en-ie\"]},{localeName:\"Other\",localeId:\"eu\",locales:[\"en-eu\"]}];\nexport const __FramerMetadata__ = {\"exports\":{\"Country\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"COUNTRIES\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BreakpointMode\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./countries.map","/*\n * countries\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/SSFIIfkP2U6GDtE83PM1/5eVQESdd5W8cwxehYNLN/countries.js\"\n","// =============================================================================\n// HELPERS\n// =============================================================================\n// Parse activeLocale.code into convenient pieces\nexport function splitLocale(activeLocale){const currentCode=activeLocale?.code?.toLowerCase()??\"\";const[currentLang=\"\",currentCountryId=\"\"]=currentCode.split(\"-\");return{currentCode,currentLang,currentCountryId};}// Find a country by its localeId (e.g. \"de\" → Germany)\nexport function getCountryByLocaleId(localeId,countries){return countries.find(c=>c.localeId===localeId);}// Build CSS class string for the root with optional breakpoint override\nexport function buildRootClass(breakpoint){const parts=[\"lsc-root\"];if(breakpoint===\"mobile\")parts.push(\"lsc-force-mobile\");if(breakpoint===\"desktop\")parts.push(\"lsc-force-desktop\");return parts.join(\" \");}export function pickTargetLocale(available,countryId,currentLang){const sameLang=available.find(l=>l===`${currentLang}-${countryId}`);if(sameLang)return sameLang;if(countryId===\"eu\")return available.find(l=>l.startsWith(\"en-\"));const nonEnglish=available.find(l=>!l.startsWith(\"en-\"));if(nonEnglish)return nonEnglish;return available[0];}export function stripLocalePrefix(path,currentLocale){if(!currentLocale)return path;const prefix=`/${currentLocale}`;if(path===prefix||path===prefix+\"/\")return\"/\";if(path.startsWith(prefix+\"/\"))return path.substring(prefix.length);return path;}export function buildLocalizedHref(targetLocale,pageSlug){const slug=pageSlug.startsWith(\"/\")?pageSlug:`/${pageSlug}`;const origin=typeof window!==\"undefined\"?window.location.origin:\"\";const path=slug===\"/\"?\"/\":slug;return`${origin}/${targetLocale}${path}`;}\nexport const __FramerMetadata__ = {\"exports\":{\"stripLocalePrefix\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"splitLocale\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getCountryByLocaleId\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"buildRootClass\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"buildLocalizedHref\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"pickTargetLocale\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./utils.map","/*\n * utils\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/W724V3jonPGmRuVvxw3L/UQyR4TQV9jdkM5QEBnoI/utils.js\"\n"],"mappings":"oHAGa,EAAU,CAAC,CAAC,WAAW,UAAU,SAAS,KAAK,QAAQ,CAAC,QAAQ,OAAO,CAAC,EAAE,CAAC,WAAW,SAAS,SAAS,KAAK,QAAQ,CAAC,QAAQ,OAAO,CAAC,EAAE,CAAC,WAAW,QAAQ,SAAS,KAAK,QAAQ,CAAC,QAAQ,OAAO,CAAC,EAAE,CAAC,WAAW,kBAAkB,SAAS,KAAK,QAAQ,CAAC,QAAQ,OAAO,CAAC,EAAE,CAAC,WAAW,UAAU,SAAS,KAAK,QAAQ,CAAC,QAAQ,QAAQ,OAAO,CAAC,EAAE,CAAC,WAAW,QAAQ,SAAS,KAAK,QAAQ,CAAC,QAAQ,OAAO,CAAC,EAAE,CAAC,WAAW,SAAS,SAAS,KAAK,QAAQ,CAAC,QAAQ,OAAO,CAAC,EAAE,CAAC,WAAW,WAAW,SAAS,KAAK,QAAQ,CAAC,QAAQ,OAAO,CAAC,EAAE,CAAC,WAAW,UAAU,SAAS,KAAK,QAAQ,CAAC,QAAQ,OAAO,CAAC,EAAE,CAAC,WAAW,UAAU,SAAS,KAAK,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,WAAW,QAAQ,SAAS,KAAK,QAAQ,CAAC,OAAO,CAAC,CAAC,sBECrsB,SAAgB,EAAY,EAAa,CAAC,IAAM,EAAY,GAAc,MAAM,YAAY,GAAG,GAAQ,CAAC,EAAY,GAAG,EAAiB,IAAI,EAAY,MAAM,GAAG,EAAE,MAAM,CAAC,cAAY,cAAY,kBAAgB,CAAE,CACpN,SAAgB,EAAqB,EAAS,E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