(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7141],{74284:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/verify/[token]",function(){return s(66082)}])},2391:function(e,n,s){"use strict";s.d(n,{E:function(){return t}});var t={maxWidth:"400px",margin:"auto",border:"1px solid lightgrey",borderRadius:"5px",padding:"10px 20px 20px 20px",backgroundColor:"#fafafa",fontSize:"12pt",color:"#606060"}},73306:function(e,n,s){"use strict";s.d(n,{Z:function(){return u}});var t=s(85893),r=s(9008),i=s.n(r),c=s(54),o=s(48397),a=s(1864);function u(e){var n=e.title,s=(0,c.i)().siteName;return(0,t.jsxs)(i(),{children:[(0,t.jsxs)("title",{children:[s," ",s?"\u2013":""," ",n]}),(0,t.jsx)("meta",{name:"description",content:"CoCalc landing pages and documentation"}),(0,t.jsx)("link",{rel:"icon",href:(0,a.join)(null!==o.Z&&void 0!==o.Z?o.Z:"","/webapp/favicon-32x32.png")})]})}},66082:function(e,n,s){"use strict";s.r(n),s.d(n,{__N_SSP:function(){return _},default:function(){return k}});var t=s(85893),r=s(97183),i=s(47568),c=s(34051),o=s.n(c),a=s(9125),u=s(67294),d=s(7772),l=s(14670),x=s(61429),p=s(2391),f=s(92771);function h(e){var n=e.token,s=e.email_address,r=function(){return h?(0,t.jsxs)("div",{children:[(0,t.jsx)(d.Icon,{name:"spinner",spin:!0})," Verifying your email address..."]}):(0,t.jsxs)("div",{children:[m&&(0,t.jsx)(l.Z,{style:{marginTop:"20px"},message:"Error",description:(0,t.jsxs)("div",{style:{fontSize:"12pt"},children:[(0,t.jsx)("b",{children:m}),(0,t.jsx)("br",{}),"If you are stuck ",(0,t.jsx)(f.Z,{lower:!0}),"."]}),type:"error",showIcon:!0}),_&&(0,t.jsx)(l.Z,{style:{marginTop:"20px"},message:(0,t.jsx)("b",{children:"Success"}),description:(0,t.jsx)("div",{style:{fontSize:"12pt"},children:_}),type:"success",showIcon:!0})]})},c=(0,u.useState)(!1),h=c[0],j=c[1],v=(0,u.useState)(""),m=v[0],y=v[1],g=(0,u.useState)(""),_=g[0],k=g[1];function Z(){return(Z=(0,i.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(!0),y(""),k(""),e.prev=3,e.next=6,(0,a.Z)("/auth/redeem-verify-email",{email_address:s,token:n});case 6:k("Successfully verified your email address. Thanks!"),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),y("".concat(e.t0));case 12:return e.prev=12,j(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[3,9,12,15]])})))).apply(this,arguments)}return(0,u.useEffect)((function(){!function(){Z.apply(this,arguments)}()}),[]),(0,t.jsxs)("div",{style:{padding:"15px"},children:[(0,t.jsxs)("div",{style:{textAlign:"center",marginBottom:"15px"},children:[(0,t.jsx)(x.Z,{style:{width:"100px",height:"100px"}}),(0,t.jsxs)("h1",{children:[_?"Successfully ":"","Verif",_?"ied":"y"," Your Email Address"]})]}),(0,t.jsx)("div",{style:p.E,children:(0,t.jsx)(r,{})})]})}var j=s(31910),v=s(73306),m=s(31498),y=s(54),g=s(11163),_=!0;function k(e){var n=e.token,s=e.customize,i=(0,g.useRouter)().query.email;return(0,t.jsxs)(y.l,{value:s,children:[(0,t.jsx)(v.Z,{title:"Verify Email Address"}),(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(m.Z,{}),(0,t.jsxs)(r.Z.Content,{style:{backgroundColor:"white"},children:[(0,t.jsx)(h,{token:n,email_address:"".concat(i)}),(0,t.jsx)(j.Z,{})]})]})]})}}},function(e){e.O(0,[5386,1271,4089,7731,4670,9066,6735,9774,2888,179],(function(){return n=74284,e(e.s=n);var n}));var n=e.O();_N_E=n}]);