{"version":3,"file":"DynamicLinks.S55WeIPY.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,EAAc,EAE3K,QAAQ,IAAI,8BAA8B,GAAc,IAAI,EAGd,IAAM,EAAa,0CAHoB,CAAC,IAAM,EAAK,GAAc,MAAM,YAAY,GAAG,GAGpI,OAFG,EAAK,WAAW,IAAI,EAAQ,KAC5B,EAAK,WAAW,IAAI,EAAQ,KACzB,IAAK,EAAoB,CAAiF,IAAI,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,EAAa,OAAO,SAAS,IAAI,UAAU,CAAC,CAAE,CAAE,iBAL5K,IAAkC"}