import{r as a,h as o,H as e}from"./p-9576a29b.js";import{c as r}from"./p-d8e783d1.js";import"./p-0bc4f624.js";import{s}from"./p-17b7253a.js";import"./p-b423423b.js";import"./p-a6974d5a.js";import{v as t}from"./p-c7f96882.js";var i,m;!function(a){a.ADMIN="admin",a.USER="user"}(i||(i={})),function(a){a.PENDING="PENDING",a.VERIFIED="VERIFIED"}(m||(m={}));const n=class{constructor(o){a(this,o),this.verifyState=!1}async componentDidLoad(){const a=new URLSearchParams(location.search);(await r.client.mutate({mutation:s(t),variables:{email:a.get("email"),token:a.get("token")}})).data.userVerify.status===m.VERIFIED&&(this.verifyState=!0)}render(){return o(e,null,o("corejam-box",{flex:!0},this.verifyState?o("corejam-box",{mx:"auto",flex:!0,my:50},o("corejam-base-link",{href:"/"},o("corejam-type",null,"Click here to continue")),o("corejam-modal",{message:"Verified",type:"success"})):"waiting"))}};export{n as auth_verify}