"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[1391],{51391:(F,i,t)=>{t.r(i),t.d(i,{VerifyEmailPage:()=>o,default:()=>y});var e=t(39953),m=t(77326),u=t(4148),r=t(12223),l=t(4919),E=t(85830),c=t(96276),d=t(96227),g=t(38637),s=t(50820),v=t(90634),f=t(22001);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=1391.af22284d7ad1e84159c1.js.map