<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(this["webpackJsonpatlas-client"]=this["webpackJsonpatlas-client"]||[]).push([[4],{1799:function(e,t,c){"use strict";c.r(t),c.d(t,"LoginPage",(function(){return r}));var s=c(0),n=c(2002),a=c(1),r=s.memo((function(){return Object(a.jsx)(n.a,{})}));t.default=r},1999:function(e,t,c){},2e3:function(e,t,c){"use strict";c.d(t,"a",(function(){return x}));var s=c(9),n=c(16),a=c(6),r=c(0),i=c.n(r),o=(c(1999),c(335)),l=c(32),j=c(911),b=c(122),u=c(231),O=c(8),d=c(5),m=c(40),h=c(14),f=c(1),x=i.a.memo((function(){var e=Object(u.a)().t,t=(Object(m.q)(),Object(r.useState)(!1)),c=Object(a.a)(t,1)[0],i=Object(r.useState)([]),x=Object(a.a)(i,2),p=x[0],N=x[1],v=Object(r.useState)(""),w=Object(a.a)(v,2),g=w[0],S=w[1],_=Object(m.s)(),E=_.username,R=_.token,A=function(){var t=Object(n.a)(Object(s.a)().mark((function t(){return Object(s.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:E&amp;&amp;R&amp;&amp;g&amp;&amp;Object(O.e)(E,R,g).then((function(t){Object(d.Rb)(e,{content:e(t||"PASSWORD_RESET_SUCCESSFUL")})})).catch((function(t){return Object(d.q)(e,{content:e(t||"PLEASE_TRY_AGAIN_LATER")})}));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),T=Object(r.useCallback)((function(){var e=[];E||e.push("Username not found!"),R||e.push("Token not found!"),g.length&lt;6&amp;&amp;e.push("PASSWORD_INVALID"),N(e)}),[g]);return Object(r.useEffect)((function(){T()}),[g]),Object(f.jsxs)(f.Fragment,{children:[Object(f.jsx)("div",{className:"login-bg"}),Object(f.jsxs)("div",{className:"login-wrp",children:[Object(f.jsx)("div",{className:"logo-wrp",children:Object(f.jsx)("img",{src:o.a,alt:"Logo"})}),Object(f.jsx)("div",{className:"form-wrp",children:Object(f.jsxs)("form",{onSubmit:Object(d.wk)(A),children:[Object(f.jsx)("div",{className:"form-row",children:Object(f.jsx)("span",{className:"auth-or-txt",children:e("FILL_PASSWORD_TO_RESET")})}),Object(f.jsxs)("div",{className:"form-row column-dir",children:[Object(f.jsx)("label",{className:"form-label",htmlFor:"email",children:e("PASSWORD")}),Object(f.jsx)("div",{className:"input-wrp",children:Object(f.jsx)(j.a.Password,{type:"password",size:"large",name:"password",onChange:function(e){S(e.target.value)},className:"auth-input",placeholder:"",iconRender:function(e){return e?Object(f.jsx)(h.Kb,{icon:l.O}):Object(f.jsx)(h.Kb,{icon:l.P})},prefix:Object(f.jsx)(l.lb,{size:24})})})]}),Object(f.jsx)("div",{className:"form-row",children:Object(f.jsx)(b.a,{loading:c,onClick:A,className:"reset-submit-btn",type:"primary",disabled:!!p.length,children:e("RESET_PASSWORD")})}),Object(f.jsx)("div",{className:"form-row",children:Object(f.jsx)("ul",{className:"form-error-wrp",children:null===p||void 0===p?void 0:p.map((function(t,c){return Object(f.jsx)("li",{children:e(t)},c)}))})})]})})]})]})}))},2002:function(e,t,c){"use strict";c.d(t,"a",(function(){return w})),c.d(t,"b",(function(){return g}));var s=c(9),n=c(16),a=c(2),r=c(3),i=c(6),o=c(0),l=c.n(o),j=c(40),b=c(2003),u=(c(1999),c(335)),O=c(32),d=c(911),m=c(122),h=c(231),f=c(8),x=c(5),p=c(14),N=c(10),v=c(1),w=l.a.memo((function(){var e=Object(h.a)().t,t=Object(j.q)(),c=Object(N.Bg)(),l=Object(o.useState)(!1),w=Object(i.a)(l,2),g=w[0],S=w[1],_=Object(o.useState)(),E=Object(i.a)(_,2),R=E[0],A=E[1],T=Object(o.useState)({username:"",password:""}),k=Object(i.a)(T,2),P=k[0],C=k[1],I=Object(o.useState)(null),y=Object(i.a)(I,2),D=y[0],L=y[1],F=Object(o.useState)(""),z=Object(i.a)(F,2),U=z[0],W=z[1],G=function(e){return C(Object(r.a)(Object(r.a)({},P),{},Object(a.a)({},e.currentTarget.name,e.currentTarget.value)))},K=function(e){return"Enter"===e.key&amp;&amp;H()},q=function(t){A([e(t||"UNAUTHORIZED")]),S(!1)};Object(o.useEffect)((function(){localStorage.getItem("atlas-auth")&amp;&amp;t("/")}));var H=function(){var e=Object(n.a)(Object(s.a)().mark((function e(){return Object(s.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:S(!0),A([]),Object(f.f)(P.username,P.password).then((function(e){if(e.two_factor_auth)L(e);else{var s=e,n=s.user,a=s.user_status,r=s.tokens;Object(x.oj)(n,a,r,c,t)}})).catch((function(e){q(e.toString())})).finally((function(){S(!1)}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(v.jsxs)(v.Fragment,{children:[Object(v.jsx)("div",{className:"login-bg"}),Object(v.jsxs)("div",{className:"login-wrp",children:[Object(v.jsx)("div",{className:"logo-wrp",children:Object(v.jsx)("img",{src:u.a,alt:"Logo"})}),Object(v.jsxs)("div",{className:"form-wrp",children:[(null===D||void 0===D?void 0:D.two_factor_auth)&amp;&amp;Object(v.jsxs)(v.Fragment,{children:[Object(v.jsx)("div",{className:"form-row",children:Object(v.jsx)("span",{className:"auth-or-txt",children:e(D.otpauth_url?"OPEN_AUTHENTICATOR_AND_SCAN":"OPEN_AUTHENTICATOR")})}),D.otpauth_url&amp;&amp;!U.length&amp;&amp;Object(v.jsx)(b.a,{value:D.otpauth_url,size:200,style:{margin:"30px auto"}}),Object(v.jsx)("div",{className:"form-row",children:Object(v.jsx)("div",{className:"input-wrp",children:Object(v.jsx)(d.a,{size:"large",name:"auth-code",type:"number",placeholder:e("ENTER_6_DIGIT_CODE"),onChange:function(e){6===e.target.value.length?Object(f.g)(D.two_factor_session_token,e.target.value).then((function(e){var s=e.user,n=e.user_status,a=e.tokens;return Object(x.oj)(s,n,a,c,t)}),(function(e){return q(e.toString())})):A([]),W(e.target.value)},className:"auth-input",prefix:Object(v.jsx)(O.lb,{size:24}),autoFocus:!0})})}),Object(v.jsx)("div",{className:"form-row",children:Object(v.jsx)("ul",{className:"form-error-wrp",children:null===R||void 0===R?void 0:R.map((function(e){return Object(v.jsx)("li",{children:e})}))})})]}),!D&amp;&amp;Object(v.jsxs)("form",{children:[Object(v.jsx)("div",{className:"form-row",children:Object(v.jsx)("div",{className:"social-btn",children:Object(v.jsx)("div",{className:"social-btn",onClick:function(){return window.location.href="".concat(Object(x.Ri)(),"/auth/google/redirect")},children:Object(v.jsx)(p.Lb,{icon:O.W,iconProps:{size:28,stroke:0,style:{marginRight:"10px"}},text:e("SIGN_IN_WITH_GOOGLE")})})})}),Object(v.jsx)("div",{className:"form-row",children:Object(v.jsx)("div",{className:"social-btn",children:Object(v.jsx)("div",{className:"social-btn",onClick:function(){return window.location.href="".concat(Object(x.Ri)(),"/auth/azure/redirect")},children:Object(v.jsx)(p.Lb,{icon:O.tb,iconProps:{size:28,stroke:0,style:{marginRight:"10px"}},text:e("SIGN_IN_WITH_MICROSOFT")})})})}),Object(v.jsx)("div",{className:"form-row",children:Object(v.jsx)("span",{className:"auth-or-txt",children:e("OR")})}),Object(v.jsxs)("div",{className:"form-row column-dir",children:[Object(v.jsx)("label",{className:"form-label",htmlFor:"email",children:e("USERNAME")}),Object(v.jsx)("div",{className:"input-wrp",children:Object(v.jsx)(d.a,{size:"large",name:"username",onChange:G,onKeyDown:K,className:"auth-input",placeholder:"",prefix:Object(v.jsx)(O.nb,{size:24}),autoFocus:!0})})]}),Object(v.jsxs)("div",{className:"form-row column-dir",children:[Object(v.jsx)("label",{className:"form-label",htmlFor:"email",children:e("PASSWORD")}),Object(v.jsx)("div",{className:"input-wrp",children:Object(v.jsx)(d.a.Password,{type:"password",size:"large",name:"password",onChange:G,onKeyDown:K,className:"auth-input",placeholder:"",iconRender:function(e){return e?Object(v.jsx)(p.Kb,{icon:O.O}):Object(v.jsx)(p.Kb,{icon:O.P})},prefix:Object(v.jsx)(O.lb,{size:24})})})]}),Object(v.jsx)("div",{className:"form-row",children:Object(v.jsx)(m.a,{loading:g,onClick:H,className:"sign-submit-btn",type:"primary",children:e("SIGN_IN")})}),Object(v.jsx)("div",{className:"form-row",children:Object(v.jsx)("ul",{className:"form-error-wrp",children:null===R||void 0===R?void 0:R.map((function(e){return Object(v.jsx)("li",{children:e})}))})}),Object(v.jsx)("div",{className:"form-row",children:Object(v.jsxs)("div",{className:"forgot-pass clickable",onClick:function(){return t("/request-reset-password")},children:[e("FORGOT_YOUR_PASSWORD"),"? ",Object(v.jsx)("span",{children:e("RESET_PASSWORD")})]})})]})]})]})]})})),g=(c(2e3),l.a.memo((function(){var e=Object(h.a)().t,t=Object(o.useState)(!1),c=Object(i.a)(t,1)[0],a=Object(o.useState)([]),r=Object(i.a)(a,1)[0],l=Object(o.useState)(""),j=Object(i.a)(l,2),b=j[0],p=j[1],N=function(){var t=Object(n.a)(Object(s.a)().mark((function t(){return Object(s.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:w&amp;&amp;Object(f.d)(b).then((function(t){return Object(x.Rb)(e,{content:e(t||"PASSWORD_RESET_REQUEST_SUCCESSFUL")})})).catch((function(t){return Object(x.q)(e,{content:e(t||"PLEASE_TRY_AGAIN_LATER")})}));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),w=b&amp;&amp;b.length&gt;2;return Object(v.jsxs)(v.Fragment,{children:[Object(v.jsx)("div",{className:"login-bg"}),Object(v.jsxs)("div",{className:"login-wrp",children:[Object(v.jsx)("div",{className:"logo-wrp",children:Object(v.jsx)("img",{src:u.a,alt:"Logo"})}),Object(v.jsx)("div",{className:"form-wrp",children:Object(v.jsxs)("form",{onSubmit:Object(x.wk)(N),children:[Object(v.jsx)("div",{className:"form-row",children:Object(v.jsx)("span",{className:"auth-or-txt",children:e("FILL_USERNAME_TO_RESET_PASSWORD")})}),Object(v.jsxs)("div",{className:"form-row column-dir",children:[Object(v.jsx)("label",{className:"form-label",htmlFor:"email",children:e("USERNAME")}),Object(v.jsx)("div",{className:"input-wrp",children:Object(v.jsx)(d.a,{size:"large",name:"username",onChange:function(e){return p(e.target.value)},className:"auth-input",placeholder:"",prefix:Object(v.jsx)(O.nb,{size:24}),autoFocus:!0})})]}),Object(v.jsx)("div",{className:"form-row",children:Object(v.jsx)(m.a,{loading:c,onClick:N,className:"reset-submit-btn",type:"primary",disabled:!w,children:e("RESET_PASSWORD")})}),Object(v.jsx)("div",{className:"form-row",children:Object(v.jsx)("ul",{className:"form-error-wrp",children:null===r||void 0===r?void 0:r.map((function(e,t){return Object(v.jsx)("li",{children:e},t)}))})})]})})]})]})})))}}]);
//# sourceMappingURL=4.69e89bdd.chunk.js.map</pre></body></html>