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