<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9344],{36407:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/login",function(){return t(34738)}])},82094:function(e,n,t){"use strict";var s=t(64836);n.Z=void 0;var i=s(t(33651)),r=t(85893),l=(0,i.default)((0,r.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5-5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z"}),"Login");n.Z=l},34738:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return Z},default:function(){return _}});var s=t(85893),i=t(67294),r=t(74882),l=t(87316),o=t(91820),a=t(33299),u=t(19604),d=t(96788),c=t(51263),g=t(65843),h=t(90440),x=t(57898),f=t(82094),v=t(49573),j=t(27398),p=t(47208),m=t(88019),b=t(9473),w=t(64921),S=t(82525);function I(){let[e,n]=(0,i.useState)(!1),{username:t,password:r,setPassword:o,setUsername:I,setShowVerification:Z,setSendVerificationEmail:_,publicSettings:y}=(0,i.useContext)(l.V),{textColor:k}=(0,m.Z)(),C=(0,b.I0)(),N=localStorage.getItem("onboardingEnabled")&amp;&amp;"true"===localStorage.getItem("onboardingEnabled"),[T,E]=(0,i.useState)(null),{t:P}=(0,v.$G)("common"),L=async()=&gt;{await C((0,w.Op)())},A=(0,p.ym)(r),O=(0,p.Le)(t),U=()=&gt;!A&amp;&amp;!O||(E({email:O,password:A}),!1),D=async e=&gt;{if(e.preventDefault(),!U())return;n(!0);let s=await (0,a.signIn)("credentials",{redirect:!1,username:t,password:r});(null==s?void 0:s.ok)?(null==y?void 0:y.elevistaEnabled)&amp;&amp;window.elevistaAIClient&amp;&amp;window.elevistaAIClient.events.signin({email:t,userId:(0,S.I)(t)}):s&amp;&amp;s.error&amp;&amp;("User is not confirmed."===s.error&amp;&amp;(Z(!0),_&amp;&amp;_(!0),L()),E({...T,server:s.error}),n(!1))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Z,{variant:"h4",children:P("auth.signIn.title")}),(0,s.jsx)(d.Z,{variant:"body1",sx:{mb:4,color:k(.5)},children:P("auth.signIn.subTitle")}),(0,s.jsx)("form",{onSubmit:D,children:(0,s.jsxs)(u.Z,{display:"flex",flexDirection:"column",children:[(0,s.jsx)(c.Z,{onChange:I,errorMessages:T}),(0,s.jsx)(g.Z,{onChange:o,errorMessages:T}),(0,s.jsx)(h.Fg,{"data-testid":"forgotPasswordLink",href:x.ln.AUTH.PASSWORD_RESET,children:(0,s.jsx)(d.Z,{variant:"body1",sx:{display:"flex",justifyContent:"flex-end",mt:3,mb:2,color:k(.5),"&amp;:hover":{color:k(.7)}},children:P("auth.signIn.forgotPassword")})}),(0,s.jsxs)(h.OQ,{variant:"contained",endIcon:(0,s.jsx)(f.Z,{sx:{color:k(1)}}),"data-testid":"LoginButton",type:"submit",children:[e&amp;&amp;(0,s.jsx)(j.Z,{size:"14px"}),!e&amp;&amp;(0,s.jsx)(d.Z,{sx:{color:k(1)},variant:"body1",children:P("auth.signIn.prompt")})]}),(0,s.jsxs)(u.Z,{sx:{display:"flex",justifyContent:"center"},children:[(0,s.jsx)(d.Z,{variant:"body1",sx:{color:k(.5)},children:P("auth.signIn.signupText")}),(0,s.jsx)(h.Fg,{"data-testid":"signupLink",replace:!0,href:N?x.ln.AUTH.ONBOARDING:x.ln.AUTH.SIGN_UP,children:(0,s.jsxs)(u.Z,{sx:{display:"flex",flexDirection:"column",ml:1},children:[(0,s.jsx)(d.Z,{variant:"body1",children:P("auth.signIn.signupLink")}),(0,s.jsx)(()=&gt;(0,s.jsx)("svg",{width:"50",height:"11",viewBox:"0 0 77 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M1 10.0002C28 0.000202179 70 -0.500019 98.5 4.00007C69 1.39198 52 1.92464 32 9.00006",stroke:k(.5),strokeOpacity:"0.5",strokeLinejoin:"bevel"})}),{})]})})]})]})})]})}var Z=!0;function _(e){let[n,t]=(0,i.useState)(!1),[a,u]=(0,i.useState)(!1),[d,c]=(0,i.useState)(""),[g,h]=(0,i.useState)("");return(0,s.jsx)(r.default,{pageTitle:"Login",settings:e.settings,children:(0,s.jsx)(l.V.Provider,{value:{fullName:"",jobTitle:"",ageGroup:"",skills:[],setFullName:()=&gt;{},setJobTitle:()=&gt;{},setAgeGroup:()=&gt;{},setSkills:()=&gt;{},signUpPage:0,setSignUpPage:()=&gt;{},password:d,username:g,setPassword:c,setUsername:h,showVerification:n,setShowVerification:t,sendVerificationEmail:a,setSendVerificationEmail:u,publicSettings:e.settings},children:n?(0,s.jsx)(o.Z,{}):(0,s.jsx)(I,{})})})}}},function(e){e.O(0,[7792,7818,2585,2888,9774,179],function(){return e(e.s=36407)}),_N_E=e.O()}]);</pre></body></html>