import{_ as f}from"./DU1BuB-y.js";import{_ as v,u as d,m as g,n as S,s as x,r as k,p as E,q as h,o as y}from"./CibDhUcP.js";import{u as w}from"./BOMqOCA4.js";import{u as T}from"./fWHo1AcK.js";import"./DrA4KDSF.js";import"./CTMooejj.js";import"./BrQy0eBk.js";import"./DTBNEoLd.js";import"./nOI-3DST.js";import"./CcSAih1r.js";import"./HK78SWUp.js";import"./CW5dyef9.js";import"./BpJC44XK.js";import"./CBXHUQO1.js";import"./BCJxuefG.js";const b={__name:"activate-email",setup(l,{expose:p}){p(),w("SeoTitleSignup");const a=d(),r=g(),s=S(),e=x(),t=k(""),c=async()=>{const{error:_}=await e.verifyEmail();if(_){t.value="error";return}s.currentStep=2,r.push("/signup-process")},{token:i,email:o}=a.query,n=o==null?void 0:o.replace(/ /g,"+");!i||!n?t.value="error":(e.signUpData.token=i,e.signUpData.email=n,c());const{tracker:u}=T();u("page_view","page","activate email");const m={route:a,router:r,store:s,sStore:e,resetStatus:t,activateEmail:c,token:i,email:o,fixEmail:n,tracker:u};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}};function A(l,p,a,r,s,e){const t=f;return r.resetStatus==="error"?(y(),E(t,{key:0,class:"flex gap-4 w-full",headline:"ActivationError",text:"ActivateEmailError",error:"TokenNotFound","show-action-headline":!0,"action-headline":"PleaseTryItAgain","action-text":"SignUp",route:"/signup"})):h("",!0)}const z=v(b,[["render",A],["__file","activate-email.vue"]]);export{z as default};
