{"version":3,"file":"LinkedInRedirect.LEOrtFvT.mjs","names":[],"sources":["https:/framerusercontent.com/modules/GCGHWGdt7HOpA5dENApp/EJ9qU22TNQXT4qh8BfiQ/LinkedInRedirect.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({background:\"#0099FF\"});export function withRedirectToLinkedIn(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{onClick:event=>{const params=new URLSearchParams(window.location.search);// 2. Find the value of the \"referral_code\" parameter\nconst referralCode=params.get(\"referral_code\");console.log(\"referral_code\",referralCode);let apiUrl=`https://app.meetdex.ai`;if(referralCode){apiUrl+=\"?referral_code=\"+referralCode;}console.log(\"onclick\",event);window.location.href=apiUrl;},ref:ref,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withRedirectToLinkedIn\":{\"type\":\"reactHoc\",\"name\":\"withRedirectToLinkedIn\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LinkedInRedirect.map"],"mappings":"qRACmD,SAAgB,EAAuB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAA2B,EAAK,EAAU,CAAC,QAAQ,GAAO,CACrM,IAAM,EAD6M,IAAI,gBAAgB,EAAO,SAAS,OAAO,CACpO,IAAI,gBAAgB,CAAC,QAAQ,IAAI,gBAAgB,EAAa,CAAC,IAAI,EAAO,yBAA4B,IAAc,GAAQ,kBAAkB,GAAc,QAAQ,IAAI,UAAU,EAAM,CAAC,EAAO,SAAS,KAAK,GAAa,MAAI,GAAG,EAAM,CAAC,CAAG,sBAF3N,IAA8B,IAAqE,CAC/H,EAAY,CAAC,WAAW,UAAU,CAAC"}