1(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{1559:function(e,t,n){},1778:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return m});var r=n(48),a=n(20),o=n(0),s=n.n(o),i=n(1571),u=n(15),c=n(105),f=n(38);n(1559);function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function o(n,r,a,o){var u=r&&r.prototype instanceof i?r:i,c=Object.create(u.prototype);return p(c,"_invoke",function(n,r,a){var o,i,u,c=0,f=a||[],l=!1,p={p:0,n:0,v:e,a:m,f:m.bind(e,4),d:function(t,n){return o=t,i=0,u=e,p.n=n,s}};function m(n,r){for(i=n,u=r,t=0;!l&&c&&!a&&t<f.length;t++){var a,o=f[t],m=p.p,d=o[2];n>3?(a=d===r)&&(u=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=e):o[0]<=m&&((a=n<2&&m<o[1])?(i=0,p.v=r,p.n=o[1]):m<d&&(a=n<3||o[0]>r||r>d)&&(o[4]=n,o[5]=r,p.n=d,i=0))}if(a||n>1)return s;throw l=!0,r}return function(a,f,d){if(c>1)throw TypeError("Generator is already running");for(l&&1===f&&m(f,d),i=f,u=d;(t=i<2?e:u)||!l;){o||(i?i<3?(i>1&&(p.n=-1),m(i,u)):p.n=u:p.v=u);try{if(c=2,o){if(i||(a="next"),t=o[a]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,i<2&&(i=0)}else 1===i&&(t=o.return)&&t.call(o),i<2&&(u=TypeError("The iterator does not provide a '"+a+"' method"),i=1);o=e}else if((t=(l=p.n<0)?u:n.call(r,p))!==s)break}catch(t){o=e,i=1,u=t}finally{c=1}}return{value:t,done:l}}}(n,a,o),!0),c}var s={};function i(){}function u(){}function c(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),m=c.prototype=i.prototype=Object.create(f);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,p(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e}return u.prototype=c,p(m,"constructor",c),p(c,"constructor",u),u.displayName="GeneratorFunction",p(c,a,"GeneratorFunction"),p(m),p(m,a,"Generator"),p(m,r,function(){return this}),p(m,"toString",function(){return"[object Generator]"}),(l=function(){return{w:o,m:d}})()}function p(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}(p=function(e,t,n,r){function o(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))})(e,t,n,r)}function m(e){var t=Object(o.useState)(""),n=Object(a.a)(t,2),r=n[0],i=n[1];return Object(o.useEffect)(function(){var e=Object(f.getSessionConflictMessage)();e&&i(e)},[]),s.a.createElement("div",null,r&&s.a.createElement("div",{className:"session-conflict-alert",style:{maxWidth:"420px",margin:"30px auto 0"}},s.a.createElement("span",{className:"session-conflict-alert__icon"},"\u26a0"),s.a.createElement("span",{className:"session-conflict-alert__text"},r)),s.a.createElement(d,e),s.a.createElement("div",{style:{textAlign:"center",marginTop:"-40px",marginBottom:"40px"}},s.a.createElement("a",{href:"/admin/forgot-password",style:{color:"#1976d2",textDecoration:"none",fontSize:"14px"}},"Forgot Password?")))}var d=Object(i.d)(function(e){var t=Object(o.useRef)(!1),n=Object(o.useState)(""),i=Object(a.a)(n,2),p=(i[0],i[1]);function m(){return d.apply(this,arguments)}function d(){return(d=Object(r.a)(l().m(function n(){var r,a,o,s,i,f;return l().w(function(n){for(;;)switch(n.p=n.n){case 0:if(!t.current){n.n=1;break}return n.a(2);case 1:return t.current=!0,n.p=2,n.n=3,u.Auth.currentAuthenticatedUser();case 3:return r=n.v,a=r.username,n.n=4,u.API.graphql({query:c.a,variables:{username:a,isResend:!0},authMode:"AMAZON_COGNITO_USER_POOLS"});case 4:o=n.v,200===(s=o.data.adminGenerateMfa).status||"200"===s.status?e.history.push({pathname:"/admin/mfa-verify",state:{username:a,resendCount:s.resendCount||0,expiresAt:s.expiresAt}}):423===s.status||"423"===s.status?e.history.push({pathname:"/admin/mfa-verify",state:{username:a,error:s.message,resendCount:s.resendCount||0,locked:!0}}):429===s.status||"429"===s.status?e.history.push({pathname:"/admin/mfa-verify",state:{username:a,error:s.message,resendCount:s.resendCount||6}}):e.history.push({pathname:"/admin/mfa-verify",state:{username:a,error:s.message,resendCount:s.resendCount||0}}),n.n=9;break;case 5:return n.p=5,f=n.v,console.error("Failed to generate MFA OTP:",f),n.p=6,n.n=7,u.Auth.currentAuthenticatedUser();case 7:i=n.v,e.history.push({pathname:"/admin/mfa-verify",state:{username:i.username,error:"Failed to send OTP email. Please try resend."}}),n.n=9;break;case 8:n.p=8,n.v,e.history.push("/admin/login");case 9:return n.a(2)}},n,null,[[6,8],[2,5]])}))).apply(this,arguments)}return Object(o.useEffect)(function(){var e=Object(f.getSessionConflictMessage)();e&&p(e)},[]),Object(o.useEffect)(function(){"signedIn"===e.authState&&m()},[]),Object(o.useEffect)(function(){var t=setTimeout(function(){"signedIn"===e.authState&&m()},1e3);return function(){return clearTimeout(t)}},[e.authState]),"signedIn"===e.authState?s.a.createElement("div",{className:"admin-login-redirect"},"Sending verification code..."):null},!1,[s.a.createElement(i.a,null),s.a.createElement(i.b,null),s.a.createElement(i.c,null)])}}]); 2//# sourceMappingURL=49.9567489a.chunk.js.map
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.