{"version":3,"file":"SignUpHandler.Cy1l6XF2.mjs","names":[],"sources":["https:/framerusercontent.com/modules/kuPqku4gdR6BdKXUUvmH/yAIDEnrzKJt4nL3EJQmL/SignUpHandler.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";const prodSignUpUrl=\"https://www.luno.com/signup\";const prodSignUpNgUrl=\"https://www.luno.com.ng/signup\";const prodSignUpInstitutionalUrl=\"https://www.luno.com/en/signup/business/email\";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();const tracking=getTrackingParams();window.open(`${url}?${tracking}`,\"_blank\");}function getSignUpUrl(){if(isStaging()){if(isNigeria())return stagingSignUpNgUrl;if(isInstitutional())return stagingSignUpInstitutionalUrl;return stagingSignUpUrl;}if(isNigeria())return prodSignUpNgUrl;if(isInstitutional())return prodSignUpInstitutionalUrl;return prodSignUpUrl;}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=./SignUpHandler.map"],"mappings":"kHAAgc,SAAgB,EAAa,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,YAAY,GAAQ,CAAC,CAAC,CAAI,SAAS,GAAQ,CAAC,IAAM,EAAI,GAAc,CAAO,EAAS,GAAmB,CAAC,EAAO,KAAK,GAAG,EAAI,GAAG,IAAW,SAAS,CAAE,SAAS,GAAc,CAA0O,OAAtO,GAAW,CAAK,GAAW,CAAQ,EAAsB,GAAiB,CAAQ,EAAqC,EAAqB,GAAW,CAAQ,EAAmB,GAAiB,CAAQ,EAAkC,EAAe,SAAS,GAAmB,CAAC,IAAM,EAAO,IAAI,gBAAsB,EAAc,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAC,IAAI,IAAM,IAAM,CAAC,aAAa,aAAa,eAAe,WAAW,cAAc,QAAQ,SAAS,CAAC,CAAC,IAAM,EAAM,EAAc,IAAI,EAAI,CAAI,GAAM,EAAO,IAAI,EAAI,EAAM,CAA+J,OAAzJ,EAAO,IAAI,aAAa,GAAE,EAAO,IAAI,aAAa,cAAc,CAAC,EAAO,IAAI,aAAa,MAAM,EAAE,EAAO,IAAI,cAAc,EAAO,SAAS,UAAU,IAAI,CAAQ,EAAO,UAAU,CAAE,SAAS,GAAW,CAAC,OAAO,EAAO,SAAS,SAAS,WAAW,mBAAmB,EAAE,EAAO,SAAS,SAAS,WAAW,uBAAuB,EAAE,EAAO,SAAS,SAAS,WAAW,0CAA0C,CAAE,SAAS,GAAW,CAAC,OAAO,EAAO,SAAS,SAAS,WAAW,kBAAkB,EAAE,EAAO,SAAS,SAAS,WAAW,sBAAsB,EAAE,EAAO,SAAS,SAAS,WAAW,0BAA0B,CAAE,SAAS,GAAiB,CAAC,OAAO,EAAO,SAAS,SAAS,SAAS,iBAAiB,kCAAz4D,CAAM,EAAc,8BAAoC,EAAgB,iCAAuC,EAA2B,gDAAsD,EAAiB,sCAA4C,EAAmB,yCAA+C,EAA8B"}