{"version":3,"file":"DynamicPricingFree.UtSYi0Le.mjs","names":[],"sources":["https:/framerusercontent.com/modules/2A4UErLeWo2WE0cjw9Fc/VJwYfwUU55v1cR0IQNjV/DynamicPricingFree.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useLocaleInfo}from\"framer\";const baseUrl=\"https://app.jurilo.ch/signup\";// Helper to get current language code\nconst getLang=activeLocale=>{const code=activeLocale?.code?.toLowerCase()||\"\";if(code.startsWith(\"de\"))return\"de\";if(code.startsWith(\"fr\"))return\"fr\";return\"en\";};export function withFreeHandoffGET(Component){return props=>{const{activeLocale}=useLocaleInfo();const lang=getLang(activeLocale);const handleRedirect=e=>{if(e){e.preventDefault();e.stopPropagation();}// Define the parameters for the GET request\nconst params={lang:lang,plan_frequency:\"free\",plan_category:\"basic\"};// Construct the Query String (e.g., ?lang=en&plan_frequency=free...)\nconst queryString=Object.entries(params).map(([key,val])=>`${encodeURIComponent(key)}=${encodeURIComponent(val)}`).join(\"&\");// Execute the GET redirect\nwindow.location.href=`${baseUrl}?${queryString}`;};return /*#__PURE__*/_jsx(Component,{...props,onClick:handleRedirect,// width: 100% fixes the 'narrow button' bug found in instances\nstyle:{...props.style,cursor:\"pointer\",width:\"100%\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withFreeHandoffGET\":{\"type\":\"reactHoc\",\"name\":\"withFreeHandoffGET\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DynamicPricingFree.map"],"mappings":"oKACmK,SAAgB,EAAmB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,gBAAc,GAAe,CAAO,EAAK,EAAQ,EAAa,CAAO,EAAe,GAAG,CAAI,IAAG,EAAE,gBAAgB,CAAC,EAAE,iBAAiB,EAC1W,IAAM,EAAO,CAAM,OAAK,eAAe,OAAO,cAAc,QAAQ,CAC9D,EAAY,OAAO,QAAQ,EAAO,CAAC,KAAK,CAAC,EAAI,KAAO,GAAG,mBAAmB,EAAI,CAAC,GAAG,mBAAmB,EAAI,GAAG,CAAC,KAAK,IAAI,CAC5H,EAAO,SAAS,KAAK,GAAG,EAAQ,GAAG,KAAgB,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,EACxG,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,UAAU,MAAM,OAAO,CAAC,CAAC,2BALX,IAAkC,CAAM,EAAQ,+BACrF,EAAQ,GAAc,CAAC,IAAM,EAAK,GAAc,MAAM,aAAa,EAAE,GAA2E,OAArE,EAAK,WAAW,KAAK,CAAO,KAAQ,EAAK,WAAW,KAAK,CAAO,KAAW"}