{"version":3,"file":"Introducer.DBU2Vbri.mjs","names":[],"sources":["https:/framerusercontent.com/modules/uvkHONdw0jS2ExZ6QJY1/PeXt3uQiXiTLIkLge3fu/Introducer.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */function getCookie(name){const match=document.cookie.match(new RegExp(\"(^| )\"+name+\"=([^;]+)\"));return match?decodeURIComponent(match[2]):null;}export default function Introducer(props){useEffect(()=>{const params=new URLSearchParams(window.location.search);const code=params.get(\"code\");const ref=params.get(\"ref\");const expires=new Date(Date.now()+7*24*60*60*1e3).toUTCString();if(code){sessionStorage.setItem(\"introducerCode\",code);document.cookie=`introducerCode=${code}; expires=${expires}; path=/`;}if(ref){sessionStorage.setItem(\"introducerRef\",ref);document.cookie=`introducerRef=${ref}; expires=${expires}; path=/`;}if(code){window.gtag?.(\"event\",\"introducer_code_detected\",{event_label:`code=${code}`,code});}if(ref){window.gtag?.(\"event\",\"introducer_ref_detected\",{event_label:`ref=${ref}`,ref});}const introducerCode=code??sessionStorage.getItem(\"introducerCode\")??getCookie(\"introducerCode\");const introducerRef=ref??sessionStorage.getItem(\"introducerRef\")??getCookie(\"introducerRef\");// Append query params to all /apply/qualification links\nif(introducerCode||introducerRef){const links=document.querySelectorAll('a[href*=\"/apply/qualification\"]');links.forEach(link=>{const url=new URL(link.href,window.location.origin);if(introducerCode)url.searchParams.set(\"code\",introducerCode);if(introducerRef)url.searchParams.set(\"ref\",introducerRef);link.href=url.toString();});}},[]);return /*#__PURE__*/_jsx(\"div\",{style:{width:1,height:1,opacity:0}});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Introducer\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Introducer.map"],"mappings":"gIAGG,SAAS,EAAU,EAA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