{"version":3,"file":"Test.CS6DGLSc.mjs","names":[],"sources":["https:/framerusercontent.com/modules/khlDmMUm1V8ju0RLNz3u/mGktpXlGYFqfDknQ1Gxh/Test.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// Learn more: https://www.framer.com/developers/overrides/\nexport function withCustomClick(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{}});};}export function withRedirectToCrossroadsUsingSource(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{const queryParams=new URLSearchParams(window.location.search);let source=queryParams.get(\"source\");if(source==null){source=\"siteCefin\";}const url=`https://finsearch.fr/crossroads/#/authentification-automate?source=${source}`;window.open(url,\"_blank\");}});};}export function withRedirectToCrossroadsUsingSourceAndUserAction(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{const today=new Date().toISOString().slice(0,10)// Get the current date (YYYY-MM-DD)\n;// Try to get the UUID from localStorage\nlet userId=localStorage.getItem(`userUUID_${today}`);fetch(\"https://back.finsearch.fr/finalgo/crossroads/logSpecificUserAction\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({action:\"LANDING_PAGE_CLICK\",message:\"googleAds-finsearch , window.location.href: \"+window.location.href+\" , uuid: \"+userId})});const queryParams=new URLSearchParams(window.location.search);let source=queryParams.get(\"source\");if(source==null){source=\"siteCefin\";}const url=`https://finsearch.fr/crossroads/#/authentification-automate?source=${source}`;window.open(url,\"_blank\");}});};}export function withRedirectToAdvisorGetMagicLink(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{const url=`https://finsearch.fr/financement/#/authentification`;window.open(url,\"_blank\");}});};}export function withMakkerUserAction(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{const today=new Date().toISOString().slice(0,10)// Get the current date (YYYY-MM-DD)\n;// Try to get the UUID from localStorage\nlet userId=localStorage.getItem(`userUUID_${today}`);fetch(\"https://back.finsearch.fr/finalgo/crossroads/logSpecificUserAction\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({action:\"FRAMER_NAVIGATION_CLICK_ON_MAKKER_BUTTON\",message:\"window.location.href: \"+window.location.href+\" , uuid: \"+userId})});window.open(\"https://app.makker.fr/auth/inscription/?campain=cefin\",\"_blank\");}});};}export function withRedirectToCrossroadsUsingBlogHrefAsSource(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{const url=`https://finsearch.fr/crossroads/#/authentification-automate?source=${window.location.href.split(\"?\")[0].split(\"/\").pop()}`;window.open(url,\"_blank\");}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRedirectToAdvisorGetMagicLink\":{\"type\":\"reactHoc\",\"name\":\"withRedirectToAdvisorGetMagicLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRedirectToCrossroadsUsingSource\":{\"type\":\"reactHoc\",\"name\":\"withRedirectToCrossroadsUsingSource\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMakkerUserAction\":{\"type\":\"reactHoc\",\"name\":\"withMakkerUserAction\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRedirectToCrossroadsUsingSourceAndUserAction\":{\"type\":\"reactHoc\",\"name\":\"withRedirectToCrossroadsUsingSourceAndUserAction\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCustomClick\":{\"type\":\"reactHoc\",\"name\":\"withCustomClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRedirectToCrossroadsUsingBlogHrefAsSource\":{\"type\":\"reactHoc\",\"name\":\"withRedirectToCrossroadsUsingBlogHrefAsSource\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Test.map"],"mappings":"kHACqgB,SAAgB,EAAiD,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,YAAY,CAAC,IAAM,EAAM,IAAI,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,GAAG,CAEtsB,EAAO,aAAa,QAAQ,YAAY,IAAQ,CAAC,MAAM,qEAAqE,CAAC,OAAO,OAAO,QAAQ,CAAC,eAAe,mBAAmB,CAAC,KAAK,KAAK,UAAU,CAAC,OAAO,qBAAqB,QAAQ,+CAA+C,EAAO,SAAS,KAAK,YAAY,EAAO,CAAC,CAAC,CAAC,CAA+D,IAAI,EAAhD,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAwB,IAAI,SAAS,CAAC,AAAiB,IAAO,YAAa,IAAM,EAAI,sEAAsE,IAAS,EAAO,KAAK,EAAI,SAAS,EAAG,CAAC,CAEzK,SAAgB,EAA8C,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,YAAY,CAAC,IAAM,EAAI,sEAAsE,EAAO,SAAS,KAAK,MAAM,IAAI,CAAC,GAAG,MAAM,IAAI,CAAC,KAAK,GAAG,EAAO,KAAK,EAAI,SAAS,EAAG,CAAC,sBAL9qB"}