{
  "version": 3,
  "sources": ["ssg: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": "8FAAAA,IACO,SAASC,EAAgBC,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,QAAQ,IAAI,CAAC,CAAC,CAAC,CAAI,CAAQ,SAASE,EAAoCH,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,QAAQ,IAAI,CAA+D,IAAIG,EAAhD,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAAyB,IAAI,QAAQ,EAAKA,GAAQ,OAAMA,EAAO,aAAa,IAAMC,EAAI,sEAAsED,CAAM,GAAG,OAAO,KAAKC,EAAI,QAAQ,CAAE,CAAC,CAAC,CAAI,CAAQ,SAASC,EAAiDN,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,QAAQ,IAAI,CAAC,IAAMM,EAAM,IAAI,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAErsBC,EAAO,aAAa,QAAQ,YAAYD,CAAK,EAAE,EAAE,MAAM,qEAAqE,CAAC,OAAO,OAAO,QAAQ,CAAC,eAAe,kBAAkB,EAAE,KAAK,KAAK,UAAU,CAAC,OAAO,qBAAqB,QAAQ,+CAA+C,OAAO,SAAS,KAAK,YAAYC,CAAM,CAAC,CAAC,CAAC,EAAgE,IAAIJ,EAAhD,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAAyB,IAAI,QAAQ,EAAKA,GAAQ,OAAMA,EAAO,aAAa,IAAMC,EAAI,sEAAsED,CAAM,GAAG,OAAO,KAAKC,EAAI,QAAQ,CAAE,CAAC,CAAC,CAAI,CAErK,SAASI,EAA8CC,EAAU,CAAC,OAAOC,GAA4BC,EAAKF,EAAU,CAAC,GAAGC,EAAM,QAAQ,IAAI,CAAC,IAAME,EAAI,sEAAsE,OAAO,SAAS,KAAK,MAAM,GAAG,EAAE,CAAC,EAAE,MAAM,GAAG,EAAE,IAAI,CAAC,GAAG,OAAO,KAAKA,EAAI,QAAQ,CAAE,CAAC,CAAC,CAAI",
  "names": ["init_ssg_sandbox_shims", "withCustomClick", "Component", "props", "p", "withRedirectToCrossroadsUsingSource", "source", "url", "withRedirectToCrossroadsUsingSourceAndUserAction", "today", "userId", "withRedirectToCrossroadsUsingBlogHrefAsSource", "Component", "props", "p", "url"]
}
