"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[2470],{92470:(F,i,t)=>{t.r(i),t.d(i,{VerifyEmailPage:()=>o,default:()=>y});var e=t(65237),m=t(15568),u=t(55041),r=t(6741),l=t(48389),E=t(46181),c=t(34128),d=t(5263),g=t(96682),s=t(18819),v=t(93589),f=t(71175);const h=()=>{const p=(0,v.iG)(),[S,L]=(0,e.useState)(!1),V=n=>{(0,u.i)().post("/api/user/signup",n).then(()=>{L(!0)}).catch(a=>{const C=a.data?.message||a;p.warning(C)})};return S?e.createElement("div",null,e.createElement("p",null,"An email with a verification link has been sent to the email address. You should receive it shortly."),e.createElement(r.W2,{margin:"md"}),e.createElement(l.Qj,{variant:"primary",href:(0,s.iE)().appSubUrl+"/signup"},"Complete Signup")):e.createElement(E.l,{onSubmit:V},({register:n,errors:a})=>e.createElement(e.Fragment,null,e.createElement(c.D,null,"Verify Email"),e.createElement(d.g,{label:"Email",description:"Enter your email address to get a verification link sent to you",invalid:!!a.email,error:a.email?.message},e.createElement(g.I,{id:"email",...n("email",{required:"Email is required",pattern:{value:f.Yb,message:"Email is invalid"}}),placeholder:"Email"})),e.createElement(r.Lh,null,e.createElement(l.zx,{type:"submit"},"Send verification email"),e.createElement(l.Qj,{fill:"text",href:(0,s.iE)().appSubUrl+"/login"},"Back to login"))))},o=()=>e.createElement(m.dd,null,e.createElement(m.$s,null,e.createElement(h,null))),y=o}}]);

//# sourceMappingURL=2470.cfe4d9a506ae87bdb1ef.js.map