(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),a=s(48397),o=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,o.join)(null!==a.Z&&void 0!==a.Z?a.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 g}});var t=s(85893),r=s(97183),i=s(47568),c=s(70655),a=s(9125),o=s(67294),u=s(7772),d=s(14670),l=s(61429),x=s(2391),f=s(92771);function p(e){var n=e.token,s=e.email_address,r=function(){return h?(0,t.jsxs)("div",{children:[(0,t.jsx)(u.Icon,{name:"spinner",spin:!0})," Verifying your email address..."]}):(0,t.jsxs)("div",{children:[m&&(0,t.jsx)(d.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}),g&&(0,t.jsx)(d.Z,{style:{marginTop:"20px"},message:(0,t.jsx)("b",{children:"Success"}),description:(0,t.jsx)("div",{style:{fontSize:"12pt"},children:g}),type:"success",showIcon:!0})]})},p=(0,o.useState)(!1),h=p[0],j=p[1],y=(0,o.useState)(""),m=y[0],v=y[1],_=(0,o.useState)(""),g=_[0],Z=_[1];function k(){return(k=(0,i.Z)((function(){var e,t;return(0,c.__generator)(this,(function(r){switch(r.label){case 0:j(!0),v(""),Z(""),r.label=1;case 1:return r.trys.push([1,3,4,5]),e={},[4,(0,a.Z)("/auth/redeem-verify-email",(e.email_address=s,e.token=n,e))];case 2:return r.sent(),Z("Successfully verified your email address. Thanks!"),[3,5];case 3:return t=r.sent(),v("".concat(t)),[3,5];case 4:return j(!1),[7];case 5:return[2]}}))}))).apply(this,arguments)}return(0,o.useEffect)((function(){!function(){k.apply(this,arguments)}()}),[]),(0,t.jsxs)("div",{style:{padding:"15px"},children:[(0,t.jsxs)("div",{style:{textAlign:"center",marginBottom:"15px"},children:[(0,t.jsx)(l.Z,{style:{width:"100px",height:"100px"}}),(0,t.jsxs)("h1",{children:[g?"Successfully ":"","Verif",g?"ied":"y"," Your Email Address"]})]}),(0,t.jsx)("div",{style:x.E,children:(0,t.jsx)(r,{})})]})}var h=s(31910),j=s(73306),y=s(31498),m=s(54),v=s(11163),_=!0;function g(e){var n=e.token,s=e.customize,i=(0,v.useRouter)().query.email;return(0,t.jsxs)(m.l,{value:s,children:[(0,t.jsx)(j.Z,{title:"Verify Email Address"}),(0,t.jsxs)(r.Z,{children:[(0,t.jsx)(y.Z,{}),(0,t.jsxs)(r.Z.Content,{style:{backgroundColor:"white"},children:[(0,t.jsx)(p,{token:n,email_address:"".concat(i)}),(0,t.jsx)(h.Z,{})]})]})]})}}},function(e){e.O(0,[5386,7324,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}]);