D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
share
/
grafana
/
public
/
build
/
Filename :
6875.06653aec7deb9ca10caf.js
back
Copy
"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[6875],{16875:(F,i,t)=>{t.r(i),t.d(i,{VerifyEmailPage:()=>o,default:()=>y});var e=t(27702),m=t(8874),u=t(73289),r=t(64022),l=t(66670),E=t(23839),c=t(12375),d=t(22209),g=t(1128),s=t(12308),v=t(73807),f=t(41715);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=6875.06653aec7deb9ca10caf.js.map