import{_ as f}from"./CWIvYacc.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"./CChoqk00.js";import{u as w}from"./bpksVWCD.js";import{u as T}from"./DTzhji9-.js";import"./CCNnTvL5.js";import"./DgZ9OEJo.js";import"./CEIsV2p2.js";import"./sP9qBMVh.js";import"./oBAm95WQ.js";import"./CvA42dig.js";import"./CyM-5rC-.js";import"./Du23p2ZK.js";import"./dbr-bJEC.js";import"./D7TmchvX.js";import"./BBOawLyY.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};
