"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[7583],{27583:(E,l,a)=>{a.r(l),a.d(l,{VerifyEmailPage:()=>u,default:()=>p});var e=a(66111),i=a(80472),m=a(54899),r=a(52081),t=a(31403),c=a(94270),d=a(19825),g=a(24799),f=a(46967),o=a(47694),v=a(60499),h=a(77293);const y=()=>{const S=(0,v.iG)(),[A,z]=(0,e.useState)(!1),Z=s=>{(0,m.i)().post("/api/user/signup",s).then(()=>{z(!0)}).catch(n=>{const L=n.data?.message||n;S.warning(L)})};return A?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(t.Qj,{variant:"primary",href:(0,o.iE)().appSubUrl+"/signup"},"Complete Signup")):e.createElement(c.l,{onSubmit:Z},({register:s,errors:n})=>e.createElement(e.Fragment,null,e.createElement(d.D,null,"Verify Email"),e.createElement(g.g,{label:"Email",description:"Enter your email address to get a verification link sent to you",invalid:!!n.email,error:n.email?.message},e.createElement(f.I,{id:"email",...s("email",{required:"Email is required",pattern:{value:h.Yb,message:"Email is invalid"}}),placeholder:"Email"})),e.createElement(r.Lh,null,e.createElement(t.zx,{type:"submit"},"Send verification email"),e.createElement(t.Qj,{fill:"text",href:(0,o.iE)().appSubUrl+"/login"},"Back to login"))))},u=()=>e.createElement(i.dd,null,e.createElement(i.$s,null,e.createElement(y,null))),p=u},77293:(E,l,a)=>{a.d(l,{Yb:()=>i,d5:()=>r});var e=a(35645);const i=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function m(){const t=e.v.licenseInfo?.trialExpiry;return!!(t&&t>0)}const r=()=>m()&&e.v.featureToggles.featureHighlights}}]);

//# sourceMappingURL=7583.d8d8cf45c2690989ed4c.js.map