{"version":3,"file":"segment.Cf0ba2Ne.mjs","names":[],"sources":["https:/framerusercontent.com/modules/0GJ2JVFdfT3X8IwP6P4S/UGXhxrGRL4wtW9iE1GgG/segment.js"],"sourcesContent":["import{isProd}from\"https://framerusercontent.com/modules/Jfx4uG256YjQpjP16mUk/JrwufArNENzeT0kPRpbq/index.js\";const trackEvent=(eventName,properties)=>{if(isProd()){window.analytics?.track(eventName,properties);}else{console.log(eventName,properties);}};const identify=(userId,traits)=>{if(isProd()){window.analytics?.identify(userId,traits);}else{console.log(userId,traits);}};// TODO: Make use of stake_id below\nexport const initSegmentUser=(userId,traits)=>{identify(userId,{...traits,name:traits?.name,email:traits?.email,phone:traits?.phone});};const events={ATTRIBUTION:{TOUCHPOINT:\"touchpoint\"},SIGNUP:{LIGHT_SIGNUP_COMPLETE:\"light_signup_complete\"},CAMPAIGNS:{GOLDEN_VISA_CTA_CLICKED:\"golden_visa_cta_clicked\",GOLDEN_VISA_LEAD_QUALIFIED:\"golden_visa_lead_qualified\",GOLDEN_VISA_LEAD_UNQUALIFIED:\"golden_visa_lead_unqualified\"}};export const logTouchpoint=async()=>{};export const logLightSignupComplete=params=>{trackEvent(events.SIGNUP.LIGHT_SIGNUP_COMPLETE,params);};export const getAnonymousId=async()=>{try{const anonymousId=(await window.analytics?.user())?.anonymousId();return anonymousId;}catch(e){return null;}};export const logGoldenVisaCtaClicked=()=>{trackEvent(events.CAMPAIGNS.GOLDEN_VISA_CTA_CLICKED);};export const logGoldenVisaLeadQualified=()=>{trackEvent(events.CAMPAIGNS.GOLDEN_VISA_LEAD_QUALIFIED);};export const logGoldenVisaLeadUnqualified=()=>{trackEvent(events.CAMPAIGNS.GOLDEN_VISA_LEAD_UNQUALIFIED);};\nexport const __FramerMetadata__ = {\"exports\":{\"logGoldenVisaCtaClicked\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"logTouchpoint\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"logGoldenVisaLeadQualified\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"logGoldenVisaLeadUnqualified\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"initSegmentUser\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getAnonymousId\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"logLightSignupComplete\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./segment.map"],"mappings":"oPAA6G,CAAM,GAAY,EAAU,IAAa,CAAI,GAAQ,CAAE,EAAO,WAAW,MAAM,EAAU,EAAW,CAAO,QAAQ,IAAI,EAAU,EAAW,EAC3G,EAAO,CAAC,YAAY,CAAC,WAAW,aAAa,CAAC,OAAO,CAAC,sBAAsB,wBAAwB,CAAC,UAAU,CAAC,wBAAwB,0BAA0B,2BAA2B,6BAA6B,6BAA6B,+BAA+B,CAAC,CAAc,EAAc,SAAS,GAAgB,EAAuB,GAAQ,CAAC,EAAW,EAAO,OAAO,sBAAsB,EAAO,EAAgB,EAAe,SAAS,CAAC,GAAG,CAAmE,OAA/C,MAAM,EAAO,WAAW,MAAM,GAAG,aAAa,MAA6B,CAAC,OAAO,OAAqB,MAA4B,CAAC,EAAW,EAAO,UAAU,wBAAwB"}