{"version":3,"file":"SignUpHandler.B-4ObjTQ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/kuPqku4gdR6BdKXUUvmH/00oYIreZQRDZS6HfJ0Fc/SignUpHandler.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";const stagingSignUpUrl=\"https://www.staging.luno.com/signup\";const stagingSignUpNgUrl=\"https://www.staging.luno.com.ng/signup\";const stagingSignUpInstitutionalUrl=\"https://www.staging.luno.com/en/signup/business/email\";export function signUpButton(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>signUp()});};}function signUp(){const url=getSignUpUrl();if(!url)return;const tracking=getTrackingParams();window.open(`${url}?${tracking}`,\"_blank\");}function getSignUpUrl(){if(isStaging()){if(isNigeria())return stagingSignUpNgUrl;if(isInstitutional())return stagingSignUpInstitutionalUrl;return stagingSignUpUrl;}return null;}function getTrackingParams(){const params=new URLSearchParams;const currentParams=new URLSearchParams(window.location.search);for(const key of[\"utm_source\",\"utm_medium\",\"utm_campaign\",\"utm_term\",\"utm_content\",\"gclid\",\"fbclid\"]){const value=currentParams.get(key);if(value)params.set(key,value);}if(!params.has(\"utm_source\")){params.set(\"utm_source\",\"framer_site\");params.set(\"utm_medium\",\"web\");}params.set(\"utm_content\",window.location.pathname||\"/\");return params.toString();}function isStaging(){return window.location.hostname.startsWith(\"staging.luno.com\")||window.location.hostname.startsWith(\"www.staging.luno.com\")||window.location.hostname.startsWith(\"strategic-flexibility-636644.framer.app\");}function isNigeria(){return window.location.hostname.startsWith(\"www.luno.com.ng\")||window.location.hostname.startsWith(\"staging.luno.com.ng\")||window.location.hostname.startsWith(\"www.staging.luno.com.ng\");}function isInstitutional(){return window.location.pathname.includes(\"/institutional\");}\nexport const __FramerMetadata__ = {\"exports\":{\"signUpButton\":{\"type\":\"reactHoc\",\"name\":\"signUpButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SignUpHand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