{"version":3,"file":"DynamicLinks.Dd3PUBit.mjs","names":[],"sources":["https:/framerusercontent.com/modules/9MNVhdxqNO8g2VbmW8z7/3WupVSZzo4RATwf8RXs3/DynamicLinks.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useLocaleInfo}from\"framer\";export function withLocalizedLink(Component){return props=>{const{activeLocale}=useLocaleInfo();// This will print the actual code to your browser console (F12)\n// so you can see exactly what Framer is sending.\nconsole.log(\"Current Framer Locale Code:\",activeLocale?.code);const getLangParam=()=>{const code=activeLocale?.code?.toLowerCase()||\"\";// Check if the code starts with 'de' (covers de, de-CH, de-DE)\nif(code.startsWith(\"de\"))return\"de\";// Check if the code starts with 'fr' (covers fr, fr-CH, fr-FR)\nif(code.startsWith(\"fr\"))return\"fr\";// Default to English\nreturn\"en\";};const currentLang=getLangParam();const localizedUrl=`https://app.jurilo.ch/signin?lang=${currentLang}`;return /*#__PURE__*/_jsx(Component,{...props,href:localizedUrl,target:\"_blank\",rel:\"noopener\"});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withLocalizedLink\":{\"type\":\"reactHoc\",\"name\":\"withLocalizedLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DynamicLinks.map"],"mappings":"sJAA6E,SAAgB,EAAkB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,gBAAc,GAAe,CAE5K,QAAQ,IAAI,8BAA8B,GAAc,KAAK,CAGf,IAAM,EAAa,0CAHoB,CAAC,IAAM,EAAK,GAAc,MAAM,aAAa,EAAE,GAGpI,OAFG,EAAK,WAAW,KAAK,CAAO,KAC5B,EAAK,WAAW,KAAK,CAAO,KACzB,QAAuC,GAAuE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,EAAa,OAAO,SAAS,IAAI,WAAW,CAAC,mBALxK,IAAkC"}