1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[83459],{73700:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(40720)}])},40720:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return R}});var t=r(47568),i=r(26042),o=r(69396),a=r(99534),s=r(20414),c=r(85893),l=r(95496),u=r(32808),d=r(27484),f=r.n(d),h=r(29387),g=r.n(h),m=r(41664),p=r.n(m),x=r(11163),j=r(67294),v=r(87536),Z=r(37823),b=r(21702),y=r(50383),w=r(19418),S=r(77694),C=r(77778),_=r(7295),k=r(74092),E=r(17746),P=r(38782),I=r(14378),B=r(89294),N=r(63453),D=r(624),T=r(89310),L=r(7297),U=r(28598),W=r(87379);function M(){var e=(0,L.Z)(["\n display: flex;\n align-items: center;\n letter-spacing: normal;\n margin-top: 16px;\n"]);return M=function(){return e},e}function z(){var e=(0,L.Z)(["\n outline: none;\n border: none;\n background-color: transparent;\n padding: 0;\n margin: 0;\n color: var(--color-primary);\n cursor: pointer;\n font-size: ",";\n"]);return z=function(){return e},e}function F(){var e=(0,L.Z)(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]);return F=function(){return e},e}var O=W.ZP.div.withConfig({componentId:"sc-6bb0c0b1-0"})(M()),A=W.ZP.button.withConfig({componentId:"sc-6bb0c0b1-1"})(z(),U.tf),H=W.ZP.div.withConfig({componentId:"sc-6bb0c0b1-2"})(F()),V=r(55208),q=r(52542);f().extend(g());var K=q.Z.object({email:q.Z.string().required().email(),password:q.Z.string().required().min(E.y4),keepMeSignedIn:q.Z.boolean().default(!0)}),Q=function(){var e=(0,x.useRouter)(),n=(0,B.Z)().login,r=(0,I.lm)(),d=(0,v.cI)({defaultValues:{email:"",password:"",keepMeSignedIn:!0},mode:"onSubmit",reValidateMode:"onSubmit",resolver:(0,l.X)(K)}),h=d.control,g=d.handleSubmit,m=d.formState,P=d.getValues,N=d.clearErrors,L=(0,j.useState)(""),U=L[0],W=L[1],M=(0,j.useState)(!1),z=M[0],F=M[1],q=(0,j.useState)(!1),Q=q[0],R=q[1],X=(0,I.BN)(),Y=function(){W(""),N()},$=function(){var e=(0,t.Z)((function(e){var t;return(0,s.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),W(""),F(!1),t=function(e){return(0,o.Z)((0,i.Z)({},e),{email:e.email.toLowerCase(),timezone:f().tz.guess()})}(e),[4,n(t)];case 1:return a.sent(),[3,3];case 2:return function(e){e.statusCode===k.w.UNAUTHORIZED?F(!0):e.code===k.g.ACCOUNT_DISABLED?r.error("Your account has been disabled. Contact [email protected] for more information."):W("Either the email address or password you entered is incorrect. Please try again.")}(a.sent()),[3,3];case 3:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),G=m.isSubmitting;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(w.default,{}),(0,c.jsx)(T.im,{children:(0,c.jsxs)(T.W2,{children:[(0,c.jsx)(T.rS,{children:(0,c.jsx)(T.n5,{children:(0,c.jsxs)(S.Z,{spinning:Q,children:[(0,c.jsxs)(T.Yb,{children:[(0,c.jsx)(T.Am,{children:"LOGIN"}),(0,c.jsxs)(D.Ej,{className:"m__t--6",children:[(0,c.jsx)(T.vw,{children:"Welcome Back!"}),(0,c.jsx)(p(),{href:"/signup",passHref:!0,children:(0,c.jsx)(T.rU,{$underline:!0,$fontWeight:X?400:500,children:"New User? Sign Up Here"})})]}),(0,c.jsxs)(T.l0,{onSubmit:g($),children:[(0,c.jsx)(v.Qr,{name:"email",control:h,render:function(e){var n=e.field.onChange,r=e.fieldState.error,t=(0,a.Z)(e.field,["onChange"]);return(0,c.jsx)(T.Wi,{children:(0,c.jsx)(C.Z,(0,o.Z)((0,i.Z)({},t),{onKeyDown:function(e){return(" "===e.key||"Space"===e.code)&&e.preventDefault()},type:"text",placeholder:"E-mail",onChange:function(e){return n((0,V.c3)(e.target.value))},onFocus:Y,disabled:G,isError:Boolean(U||(null===r||void 0===r?void 0:r.message)),error:Boolean(null===r||void 0===r?void 0:r.message)?"Please enter a valid email address":"",isTransparentBg:!0}))})}}),(0,c.jsx)(v.Qr,{name:"password",control:h,render:function(e){var n=e.field.onChange,r=e.fieldState.error,t=(0,a.Z)(e.field,["onChange"]);return(0,c.jsx)(T.Wi,{children:(0,c.jsx)(C.Z,(0,o.Z)((0,i.Z)({},t),{type:"password",placeholder:"Password",onChange:function(e){return n(e.target.value)},onFocus:Y,disabled:G,isError:Boolean(U||(null===r||void 0===r?void 0:r.message)),error:Boolean(null===r||void 0===r?void 0:r.message)?"Password must be at least ".concat(E.y4," characters"):"",isTransparentBg:!0}))})}}),U&&(0,c.jsx)(T.jj,{style:{marginTop:6,marginBottom:20},children:U}),(0,c.jsxs)(H,{children:[(0,c.jsx)(v.Qr,{name:"keepMeSignedIn",control:h,render:function(e){var n=e.field.onChange;return(0,c.jsx)(T.Wi,{children:(0,c.jsx)(u.Z,{onChange:function(e){return n(e.target.checked)},disabled:G,checked:P("keepMeSignedIn"),children:"Keep me signed in"})})}}),(0,c.jsx)(p(),{href:"/forgot-password",passHref:!0,children:(0,c.jsx)(T.rU,{style:{fontSize:14,textDecoration:"underline"},children:"Forgot your password?"})})]}),z&&(0,c.jsxs)(O,{children:[(0,c.jsx)(T.jj,{children:"Please check your email to verify your account."}),"\xa0",(0,c.jsx)(A,{type:"button",onClick:function(n){n.preventDefault();var t=P("email").toLowerCase();R(!0),Z.default.resendVerificationByEmail(t).then((function(){e.push({pathname:"/verify-email",query:{identification:t,isExpired:!1}})})).catch((function(e){e&&r.error("Sorry, an error has occured. Please try again later.")})).finally((function(){R(!1)}))},children:"Resend"})]}),(0,c.jsx)(T.Mm,{disabled:G,loading:G,htmlType:"submit",fullWidth:!0,children:"Log In"})]}),(0,c.jsx)(b.Z,{title:"Log in with"})]}),(0,c.jsx)(_.K,{})]})})}),(0,c.jsx)(y.Z,{})]})})]})},R=(0,P.Z)(Q);Q.getLayout=function(e){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(N.P,{}),e]})}},77694:function(e,n,r){"use strict";var t=r(26042),i=r(69396),o=r(99534),a=r(7297),s=r(85893),c=r(11382),l=r(26010),u=r(60557);function d(){var e=(0,a.Z)(["\n z-index: 9;\n"]);return d=function(){return e},e}var f=(0,r(87379).ZP)(c.Z).withConfig({componentId:"sc-21a38a2b-0"})(d()),h=function(e){var n=e.heightSpin,r=(0,o.Z)(e,["heightSpin"]);return(0,s.jsx)(f,(0,i.Z)((0,t.Z)({},r),{indicator:(0,s.jsx)(l.Z,{animationData:u,height:n})}))};h.defaultProps={heightSpin:120},n.Z=h}},function(e){e.O(0,[41664,91033,94199,80173,97868,25675,99709,96180,32214,25070,81089,98700,62631,62388,59228,22210,35827,19418,23028,49774,92888,40179],(function(){return n=73700,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.