1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{74250:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return i(71786)}])},73871:function(e,n,i){"use strict";var a=i(82729),r=i(85893),s=i(67294),t=i(97538),l=i(51024),o=i(65400),c=i.n(o),u=i(75063),d=i(50319);function _templateObject(){let e=(0,a._)(["\n mutation ResendVerifyEmail($email: String!) {\n resendVerifyEmail(email: $email) {\n response\n }\n }\n"]);return _templateObject=function(){return e},e}let m=(0,u.Ps)(_templateObject());n.Z=e=>{let{emailProp:n="",callbackCompleted:i}=e,[a,o]=(0,s.useState)(n||""),[u,p]=(0,s.useState)(null),[g,_]=(0,s.useState)(!1),[f,{data:h,loading:A}]=(0,d.D)(m,{variables:{email:a},onCompleted(){_(!0),i&&i()},onError(e){p(e)}});return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{children:["Your verify code has expired, please reenter your email and verify. Code will last one hour."," "]}),g?(0,r.jsx)("div",{children:"Your verification email has been sent. Please click the link in your mailbox and enjoy!"}):(0,r.jsxs)("div",{children:[(0,r.jsx)(t.Z,{name:"basic",labelCol:{span:8},wrapperCol:{span:24},initialValues:{remember:!0},children:(0,r.jsx)(t.Z.Item,{name:"email",label:"E-mail",rules:[{required:!0,type:"email"}],children:(0,r.jsx)(l.default,{onChange:e=>o(e.target.value),defaultValue:n})})}),(0,r.jsx)(c(),{onClick:()=>f(),children:"Send Code"})]})]})}},92811:function(e,n,i){"use strict";i.d(n,{k:function(){return t},y:function(){return s}});var a=i(82729),r=i(75063);function _templateObject(){let e=(0,a._)(["\n mutation ($email: String!, $password: String!) {\n login(email: $email, password: $password) {\n user {\n id\n email\n }\n token\n }\n }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,a._)(["\n mutation Signup(\n $email: String!\n $password: String!\n $confirmPassword: String!\n $terms: Boolean\n ) {\n signup(\n email: $email\n password: $password\n confirmPassword: $confirmPassword\n terms: $terms\n ) {\n response\n }\n }\n"]);return _templateObject1=function(){return e},e}let s=(0,r.Ps)(_templateObject()),t=(0,r.Ps)(_templateObject1())},71786:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return login_page}});var a=i(85893),r=i(67294),s=i(50319),t=i(65400),l=i.n(t),o=i(97538),c=i(51024),u=i(25675),d=i.n(u),m=i(41664),p=i.n(m),g=i(11163),_=i(25617),f=i(8415),h=i(92811),A=i(77942),j={src:"/_next/static/media/rocket_cloud.1681a0a8.png",height:1510,width:1600,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAYFBMVEWox+m6+v6t2vmH8vKw4e7Ezff0xe3I2P3Lrdv86dGY6/zc//XD0//B9evIvPnL6ffX//u/hvmMtfag2/vt/+24gv7Q7vSZ9/+v+fSrk96w+PS1q/GB2f3h4un9pcS1hue6kFUqAAAAHXRSTlMBhj4JHboWKyeK+VHy68uyyYn5/YW/juHak6XqghlPYpkAAAAJcEhZcwAACxMAAAsTAQCanBgAAABBSURBVHicHYpHEoAgEMACwq5g7xX9/y8dzCmTCWCVjJ29+eXcpxQEKDieFHIy1zs2FegWl6HuHXdcRX3b5al0IB9LoAJK1XC+ZgAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},v=i(51979),x=i(73871),C=i(84407),b=i.n(C),w=i(85506);let y={email:"",password:"",rememberMe:!0};var Login_Login=()=>{let[e,n]=(0,r.useState)(y),[i,t]=(0,r.useState)(null),[u,m]=(0,r.useState)(!1),C=(0,_.I0)(),[S,{data:L,loading:E}]=(0,s.D)(h.y,{onError(e){t(e),(0,w.L9)(e.message,{[w.N4.LOCATION]:w.jg.LOGIN})}}),N=(0,g.useRouter)();return(0,r.useEffect)(()=>{var e;(null==L?void 0:null===(e=L.login)||void 0===e?void 0:e.token)&&N.push("/overview"),(0,w.L9)(w.Iy.LOGIN_SUCCESSFUL,{[w.N4.LOCATION]:w.jg.LOGIN})},[L]),(0,a.jsx)("div",{className:"log-in-page",children:(0,a.jsx)("div",{className:b().container,children:(0,a.jsxs)("div",{className:b().card,children:[(0,a.jsx)("div",{className:b().imageContainer,children:(0,a.jsx)(d(),{src:j,alt:"login",fill:!0,style:{objectFit:"contain"}})}),(0,a.jsxs)("div",{className:b().formContainer,children:[(0,a.jsx)("h1",{children:"Log in"}),(0,a.jsx)("div",{className:b().inputsContainer,children:(0,a.jsxs)(o.Z,{name:"basic",labelCol:{span:8},wrapperCol:{span:24},initialValues:{remember:!0},children:[(0,a.jsx)(o.Z.Item,{name:"email",label:"Email",rules:[{required:!0,type:"email"}],children:(0,a.jsx)(c.default,{onChange:i=>(0,v.Zv)(f.L.EMAIL,e,i.target.value,n)})}),(0,a.jsx)(o.Z.Item,{label:"Password",name:"password",rules:[{required:!0,message:"Please input your password!"}],children:(0,a.jsx)(c.default.Password,{onChange:i=>(0,v.Zv)(f.L.PASSWORD,e,i.target.value,n)})}),(0,a.jsx)("div",{className:b().error,children:i&&i.message}),(0,a.jsx)("div",{children:i&&"Email not verified"===i.message?(0,a.jsx)(x.Z,{emailProp:e.email,callbackCompleted:()=>{t(null),m(!0),(0,w.L9)(w.Iy.RESENT_VERIFY,{[w.N4.LOCATION]:w.jg.LOGIN})}}):null}),(0,a.jsxs)(o.Z.Item,{wrapperCol:{offset:8,span:16},children:[(0,a.jsx)(l(),{type:"primary",htmlType:"submit",onClick:()=>C((0,A.pH)({email:e.email,password:e.password,login:S})),children:"Submit"}),u?(0,a.jsx)("div",{children:"Your verification email has been sent. Please click the link in your mailbox and enjoy!"}):null]})]})}),(0,a.jsx)("div",{className:b().forgotPassLink,children:(0,a.jsx)(p(),{href:"/resetpassword",children:"Forgot password"})})]})]})})})},login_page=()=>(0,a.jsx)("div",{children:(0,a.jsx)(Login_Login,{})})},84407:function(e){e.exports={container:"styles_container__LJsKv",card:"styles_card__8ceJ0",formContainer:"styles_formContainer__Ole2b","ant-row":"styles_ant-row__LsSCy",inputsContainer:"styles_inputsContainer__dHqQ5",imageContainer:"styles_imageContainer__aFIKr",forgotPassLink:"styles_forgotPassLink___sQ02",error:"styles_error__Avf_K"}}},function(e){e.O(0,[7538,9774,2888,179],function(){return e(e.s=74250)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.