(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7141],{74284:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/verify/[token]",function(){return t(26537)}])},79851:function(e,n,t){"use strict";t.d(n,{E:function(){return r}});var r={maxWidth:"400px",margin:"auto",border:"1px solid lightgrey",borderRadius:"5px",padding:"10px 20px 20px 20px",backgroundColor:"#fafafa",fontSize:"12pt",color:"#606060"}},22004:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var r=t(85893),s=t(9008),i=t.n(s),o=t(81617),c=t(21923),u=t(1864);function a(e){var n=e.title,t=(0,o.i)().siteName;return(0,r.jsxs)(i(),{children:[(0,r.jsxs)("title",{children:[t," ",t?"\u2013":""," ",n]}),(0,r.jsx)("meta",{name:"description",content:"CoCalc landing pages and documentation"}),(0,r.jsx)("link",{rel:"icon",href:(0,u.join)(null!==c.Z&&void 0!==c.Z?c.Z:"","/webapp/favicon-32x32.png")})]})}},26537:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return k},default:function(){return w}});var r=t(85893),s=t(97183),i=t(34051),o=t.n(i),c=t(56658),u=t(67294),a=t(7772),d=t(14670),l=t(73846),f=t(79851),x=t(45743);function p(e,n,t,r,s,i,o){try{var c=e[i](o),u=c.value}catch(a){return void t(a)}c.done?n(u):Promise.resolve(u).then(r,s)}function h(e){return function(){var n=this,t=arguments;return new Promise((function(r,s){var i=e.apply(n,t);function o(e){p(i,r,s,o,c,"next",e)}function c(e){p(i,r,s,o,c,"throw",e)}o(void 0)}))}}function v(e){var n=e.token,t=e.email_address,s=function(){return p?(0,r.jsxs)("div",{children:[(0,r.jsx)(a.Icon,{name:"spinner",spin:!0})," Verifying your email address..."]}):(0,r.jsxs)("div",{children:[m&&(0,r.jsx)(d.Z,{style:{marginTop:"20px"},message:"Error",description:(0,r.jsxs)("div",{style:{fontSize:"12pt"},children:[(0,r.jsx)("b",{children:m}),(0,r.jsx)("br",{}),"If you are stuck ",(0,r.jsx)(x.Z,{lower:!0}),"."]}),type:"error",showIcon:!0}),_&&(0,r.jsx)(d.Z,{style:{marginTop:"20px"},message:(0,r.jsx)("b",{children:"Success"}),description:(0,r.jsx)("div",{style:{fontSize:"12pt"},children:_}),type:"success",showIcon:!0})]})},i=(0,u.useState)(!1),p=i[0],v=i[1],j=(0,u.useState)(""),m=j[0],y=j[1],g=(0,u.useState)(""),_=g[0],k=g[1];function w(){return(w=h(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(!0),y(""),k(""),e.prev=3,e.next=6,(0,c.Z)("/auth/redeem-verify-email",{email_address:t,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,v(!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(){w.apply(this,arguments)}()}),[]),(0,r.jsxs)("div",{style:{padding:"15px"},children:[(0,r.jsxs)("div",{style:{textAlign:"center",marginBottom:"15px"},children:[(0,r.jsx)(l.Z,{style:{width:"100px",height:"100px"}}),(0,r.jsxs)("h1",{children:[_?"Successfully ":"","Verif",_?"ied":"y"," Your Email Address"]})]}),(0,r.jsx)("div",{style:f.E,children:(0,r.jsx)(s,{})})]})}var j=t(20691),m=t(22004),y=t(13680),g=t(81617),_=t(11163),k=!0;function w(e){var n=e.token,t=e.customize,i=(0,_.useRouter)().query.email;return(0,r.jsxs)(g.l,{value:t,children:[(0,r.jsx)(m.Z,{title:"Verify Email Address"}),(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(y.Z,{}),(0,r.jsxs)(s.Z.Content,{style:{backgroundColor:"white"},children:[(0,r.jsx)(v,{token:n,email_address:"".concat(i)}),(0,r.jsx)(j.Z,{})]})]})]})}}},function(e){e.O(0,[5386,1271,3424,6258,4670,1107,9097,9774,2888,179],(function(){return n=74284,e(e.s=n);var n}));var n=e.O();_N_E=n}]);