- License
- information please see main.c7021f8f.js.LICENSE.txt
- Copyright Notice
- \xa9 ",TDe," Imperva"]})]}),ODe=()=>(0,sbe.jsxs)(CDe,{id:"contentInfo",role:"contentInfo","data-testid":"MobileCopyrights MobileContainer",children:[(0,sbe.jsx)(SDe,{href:"https://www.imperva.com/legal/terms-of-use/","data-testid":"HelpLink",children:"Terms of use"}),"\xa0and\xa0",(0,sbe.jsx)(SDe,{href:"https://www.imperva.com/legal/privacy-policy/","data-testid":"HelpLink",children:"Privacy Policy"}),"\xa0",(0,sbe.jsxs)("label",{"data-testid":"label",children:["Copyright \xa9 ",TDe," Imperva"]})]}),MDe={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_OKTA_CLIENT_ID_STAGE:"0oapz9i0neBSNjJTq5d6",REACT_APP_OKTA_DOMAIN_STAGE:"okta.stage.impervaservices.com",REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_STAGE:"false",REACT_APP_OKTA_USE_INTERACTION_CODE_STAGE:"false",REACT_APP_OKTA_CLIENT_ID_PROD:"0oa2hjh7kk8S31Hmo5d7",REACT_APP_OKTA_DOMAIN_PROD:"login.service.imperva.com",REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_PROD:"false",REACT_APP_OKTA_USE_INTERACTION_CODE_PROD:"false",REACT_APP_OKTA_CLIENT_ID_DEV:"0oapz9i0neBSNjJTq5d6",REACT_APP_OKTA_DOMAIN_DEV:"okta.stage.impervaservices.com",REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_DEV:"true",REACT_APP_OKTA_USE_INTERACTION_CODE_DEV:"false",REACT_APP_COMMITHASH:"916f393"}.REACT_APP_SPA_BUILD,PDe=MDe?"/authentication":"",DDe="authentication-management",IDe="@imperva/".concat(DDe),NDe=Id(),zDe={duo:"duo",email:"email",google:"google",sms:"sms",oktaVerify:"oktaVerify",call:"call"},RDe="OKTA",FDe=1,LDe=2;var BDe=__webpack_require__(9370);const jDe=e=>{let{url:t=null,options:n}=e;return BDe.parse(t||window.location.search,n)},HDe=(e,t)=>{if(e.closeSession(),window.location.pathname.includes("sso"))localStorage.setItem("errorType",btoa(t)),window.location.replace("/login");else{const e=KDe(t),n=e.title,r=e.subTitle;kre.error(n,{subtitle:r,container:"box",position:"top-center"}),window.history.pushState({},document.title,window.location.pathname)}},VDe=()=>{const e={domain:eIe(),expires:new Date((new Date).getTime()+864e5)};Dfe.set("lastSuccessLoginTimestamp",Date.now().toString(),e)},UDe=()=>{const e=new Date((new Date).getTime()+6e4),t={secure:!0,domain:eIe(),expires:e};Dfe.set("login_type","sso",t),window.location.replace(tIe(!0))},qDe=(e,t)=>{403===e.response.status?HDe(t,e.response.data.title):HDe(t,"UNKNOWN")},KDe=e=>{switch(e){case"FORBIDDEN_IP":return{title:Iue.t("login.ipAddresses.title"),subTitle:Iue.t("login.ipAddresses.subtitle")};case"IDP_MISMATCH":return{title:Iue.t("login.idpMismatch.title"),subTitle:Iue.t("login.idpMismatch.subtitle")};case"SSO_ONLY":return{title:Iue.t("login.ssoOnly.title"),subTitle:Iue.t("login.ssoOnly.subtitle")};case"API_ONLY":return{title:Iue.t("login.apiOnly.title"),subTitle:Iue.t("login.apiOnly.subtitle")};default:return{title:Iue.t("login.internalError.title"),subTitle:Iue.t("login.internalError.subtitle")}}},WDe=Em.getEnv(),GDe="".concat(window.location.origin),$De={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_OKTA_CLIENT_ID_STAGE:"0oapz9i0neBSNjJTq5d6",REACT_APP_OKTA_DOMAIN_STAGE:"okta.stage.impervaservices.com",REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_STAGE:"false",REACT_APP_OKTA_USE_INTERACTION_CODE_STAGE:"false",REACT_APP_OKTA_CLIENT_ID_PROD:"0oa2hjh7kk8S31Hmo5d7",REACT_APP_OKTA_DOMAIN_PROD:"login.service.imperva.com",REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_PROD:"false",REACT_APP_OKTA_USE_INTERACTION_CODE_PROD:"false",REACT_APP_OKTA_CLIENT_ID_DEV:"0oapz9i0neBSNjJTq5d6",REACT_APP_OKTA_DOMAIN_DEV:"okta.stage.impervaservices.com",REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_DEV:"true",REACT_APP_OKTA_USE_INTERACTION_CODE_DEV:"false",REACT_APP_COMMITHASH:"916f393"}["REACT_APP_OKTA_CLIENT_ID_".concat(WDe)],YDe={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_OKTA_CLIENT_ID_STAGE:"0oapz9i0neBSNjJTq5d6",REACT_APP_OKTA_DOMAIN_STAGE:"okta.stage.impervaservices.com",REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_STAGE:"false",REACT_APP_OKTA_USE_INTERACTION_CODE_STAGE:"false",REACT_APP_OKTA_CLIENT_ID_PROD:"0oa2hjh7kk8S31Hmo5d7",REACT_APP_OKTA_DOMAIN_PROD:"login.service.imperva.com",REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_PROD:"false",REACT_APP_OKTA_USE_INTERACTION_CODE_PROD:"false",REACT_APP_OKTA_CLIENT_ID_DEV:"0oapz9i0neBSNjJTq5d6",REACT_APP_OKTA_DOMAIN_DEV:"okta.stage.impervaservices.com",REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_DEV:"true",REACT_APP_OKTA_USE_INTERACTION_CODE_DEV:"false",REACT_APP_COMMITHASH:"916f393"}["REACT_APP_OKTA_DOMAIN_".concat(WDe)],JDe="https://".concat(YDe,"/oauth2/default"),XDe="true"==={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_OKTA_CLIENT_ID_STAGE:"0oapz9i0neBSNjJTq5d6",REACT_APP_OKTA_DOMAIN_STAGE:"okta.stage.impervaservices.com",REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_STAGE:"false",REACT_APP_OKTA_USE_INTERACTION_CODE_STAGE:"false",REACT_APP_OKTA_CLIENT_ID_PROD:"0oa2hjh7kk8S31Hmo5d7",REACT_APP_OKTA_DOMAIN_PROD:"login.service.imperva.com",REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_PROD:"false",REACT_APP_OKTA_USE_INTERACTION_CODE_PROD:"false",REACT_APP_OKTA_CLIENT_ID_DEV:"0oapz9i0neBSNjJTq5d6",REACT_APP_OKTA_DOMAIN_DEV:"okta.stage.impervaservices.com",REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_DEV:"true",REACT_APP_OKTA_USE_INTERACTION_CODE_DEV:"false",REACT_APP_COMMITHASH:"916f393"}["REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_".concat(WDe)],ZDe=XDe?"memory":"localStorage",QDe={issuer:JDe,clientId:$De,redirectUri:"".concat(GDe,"/login/callback"),scopes:["openid","profile","email","groups","offline_access"],pkce:!0,disableHttpsCheck:XDe,useInteractionCodeFlow:"true"==={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_OKTA_CLIENT_ID_STAGE:"0oapz9i0neBSNjJTq5d6",REACT_APP_OKTA_DOMAIN_STAGE:"okta.stage.impervaservices.com",REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_STAGE:"false",REACT_APP_OKTA_USE_INTERACTION_CODE_STAGE:"false",REACT_APP_OKTA_CLIENT_ID_PROD:"0oa2hjh7kk8S31Hmo5d7",REACT_APP_OKTA_DOMAIN_PROD:"login.service.imperva.com",REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_PROD:"false",REACT_APP_OKTA_USE_INTERACTION_CODE_PROD:"false",REACT_APP_OKTA_CLIENT_ID_DEV:"0oapz9i0neBSNjJTq5d6",REACT_APP_OKTA_DOMAIN_DEV:"okta.stage.impervaservices.com",REACT_APP_OKTA_TESTING_DISABLEHTTPSCHECK_DEV:"true",REACT_APP_OKTA_USE_INTERACTION_CODE_DEV:"false",REACT_APP_COMMITHASH:"916f393"}["REACT_APP_OKTA_USE_INTERACTION_CODE_".concat(WDe)],postLogoutRedirectUri:window.location.origin+"/login",tokenManager:{storage:ZDe,autoRenew:!1,autoRemove:!0},services:{autoRenew:!1,syncStorage:!0}},eIe=()=>Em.getEnv()===Em.ENVIRONMENTS.prod?".imperva.com":".impervaservices.com",tIe=e=>{let t=Em.getEnv()===Em.ENVIRONMENTS.prod?"https://management.service.imperva.com":"https://management.stage.impervaservices.com";return e&&VDe(),t},nIe=new class extends Cye{constructor(e){super(e)}}(QDe),rIe=Em.getEnv();rIe!==Em.ENVIRONMENTS.stage&&rIe!==Em.ENVIRONMENTS.dev||(window.oktaAuth=nIe),window.oktaAuth=nIe;const iIe=nIe;var oIe,aIe;const lIe=tt(wDe)(oIe||(oIe=b(["\n\t@media (min-width: 1024px) {\n\t\tmargin: 0 auto;\n\t\twidth: 430px;\n\t}\n\n\t@media screen and (max-width: 1024px) {\n max-width: 70%;\n\t\tmax-width: 500px;\n\t\tmargin: 0 auto;\n }\n"]))),sIe=tt(HX)(aIe||(aIe=b(["\n\tmargin-top: 20px;\n"]))),cIe=e=>{let{children:t,header:n,showBackLink:r=!1,className:i}=e;const{t:o}=lbe(),a=(0,v.useCallback)(e=>{NDe.push("/login")},[]);return(0,sbe.jsxs)(lIe,{className:i,"data-testid":"ResultPageWrapper Container",children:[(0,sbe.jsx)(ybe,{src:"/images/logo.png",alt:"imperva","data-testid":"Logo"}),(0,sbe.jsx)(gbe,{"data-testid":"Header",children:n}),r&&(0,sbe.jsx)(pbe,{text:o("login.backToLogin"),onClick:a,"data-test-label":"Back to login","data-testid":"BackLink"}),t,!r&&(0,sbe.jsx)(sIe,{onClick:a,"data-test-label":"go to login","data-testid":"AnchorLink",children:o("login.goToLogin")}),(0,sbe.jsx)(ADe,{"data-testid":"Copyrights"}),(0,sbe.jsx)(ODe,{"data-testid":"MobileCopyrights"})]})},uIe=pPe("FETCH_OKTA_AUTH_INFO"),dIe=pPe("OKTA_SIGNIN_WITH_CREDENTIALS"),fIe=iPe("OKTA_MFA_VERIFICATION_TRANSACTION"),hIe=(pPe("SEND_CHANGE_PASSWORD"),pPe("START_AUTH_TRANSACTION")),pIe=pPe("RESET_PASSWORD"),mIe=iPe("SET_UI"),gIe=iPe("SET_PASSWORD_EXPIRED_PAYLOAD"),vIe=(iPe("SET_MFA_ENROLL_TRANSACTION"),pPe("VERIFY_RECOVERY_TOKEN")),yIe=pPe("FETCH_SEND_RESET_PASSWORD_MAIL"),bIe=pPe("VALIDATE_IP_ADDRESS"),wIe=pPe("FETCH_DEFAULT_THEME"),xIe=pPe("CONFIRM_MAIL_CHANGE"),EIe=pPe("UPDATE_IDP_ROLES"),_Ie=iPe("RESET_OKTA_INFO"),SIe=e=>{const[t]=(0,v.useState)(jDe({options:e}));return t},kIe=()=>{const{oktaAuth:e}=Jye();return async()=>{await e.tokenManager.clear(),await e.signOut()}},CIe=()=>{const e=id(),{t:t}=lbe(),[n,r]=(0,v.useState)(!1),[i,o]=(0,v.useState)(!0),[a,l]=(0,v.useState)(!1),{sl:s}=SIe({decode:!1}),c=kIe(),u=(0,v.useCallback)(()=>{o(!1)},[]),d=(0,v.useCallback)(()=>{c(),u()},[u,c]),f=(0,v.useCallback)(()=>{l(!0),u()},[u]),h=(0,v.useCallback)(()=>{o(!0),e(xIe({sl:s},{callbacks:{success:()=>d(),failure:()=>f()}}))},[e,s,d,f]);(0,v.useEffect)(()=>{s?n||(r(!0),h()):NDe.push("/login")},[n,s,h]);const p=t(i?"emailChangeConfirmation.loadingHeader":a?"emailChangeConfirmation.failureHeader":"emailChangeConfirmation.successHeader");return s?(0,sbe.jsxs)(cIe,{header:p,"data-testid":"EmailChangeConfirmation ResultPageWrapper",children:[(0,sbe.jsx)(FG,{isActive:i,customSize:80,withOverlay:!0,"data-testid":"Loader"}),!i&&(0,sbe.jsxs)(sbe.Fragment,{children:[!a&&(0,sbe.jsxs)(Ebe,{"data-testid":"SuccessMessage",children:[t("emailChangeConfirmation.succesMessage1"),(0,sbe.jsx)("br",{}),t("emailChangeConfirmation.succesMessage2")]}),a&&(0,sbe.jsxs)(Sbe,{"data-testid":"AlertMessage",children:[t("emailChangeConfirmation.failureMessage1"),(0,sbe.jsx)("br",{}),t("emailChangeConfirmation.failureMessage2")]})]})]}):null},TIe=e=>e.oktaAuthInfo,AIe=e=>e.recoveryTokenInfo,OIe=e=>e.oktaSigninWithCredentials,MIe=e=>e.oktaMfaVerificationTransaction,PIe=e=>e.passwordExpiredPayload,DIe=e=>e.theme;var IIe,NIe,zIe;const RIe=tt.div(IIe||(IIe=b(["\n background-color: #F8F5F9;\n flex: 0 0 50%;\n max-width: 50%;\n\n @media screen and "," {\n max-width: 100%;\n\t\tflex: 1;\n\t\tbackground-color: unset;\n }\n"])),Xm.medium),FIe=tt(wDe)(NIe||(NIe=b(["\n height: 100% !important;\n margin: 0 auto;\n max-width: 360px;\n \n @media not screen and "," {\n \tmin-height: 100vh;\n }\n \n padding-bottom: 15px;\n width: 100% !important;\n img {\n\tborder-radius: 8px;\n }\n"])),Xm.medium),LIe=tt.div(zIe||(zIe=b(["\n align-items: center;\n background-color: #fff;\n border-radius: 8px;\n display: flex;\n height: 60px;\n justify-content: center;\n margin: 15px 0px;\n width: 100%;\n\n @media not screen and "," {\n font-size: 1rem;\n line-height: 30px;\n min-width: 400px;\n }\n\n a {\n color: #285ae6;\n font-size: 1rem;\n line-height: 30px;\n }\n"])),Xm.medium),BIe=()=>{const{data:e}=sd(DIe);return(0,sbe.jsx)(RIe,{id:"complementary",role:"complementary","data-testid":"MarketContent Wrapper",children:(0,sbe.jsxs)(FIe,{"data-testid":"BannerContainer",children:[(0,sbe.jsx)("a",{alt:"Client-Side Protection banner",href:e.loginBannerUrl?e.loginBannerUrl:"https://www.imperva.com/products/client-side-protection/",children:(0,sbe.jsx)("img",{src:e.path?e.path+"/loginBanner.png":"/images/csp_login.png",alt:"Imperva"})}),(0,sbe.jsx)(LIe,{"data-testid":"Resources",children:(0,sbe.jsx)("a",{href:e.releaseNotesUrl?e.releaseNotesUrl:"https://docs.imperva.com/bundle/cloud-application-security/page/release-notes/2020-07-05.htm",children:"Latest release notes"})})]})})};var jIe,HIe,VIe;const UIe=tt.div(jIe||(jIe=b(["\n margin: auto 0;\n min-width: 375px;\n padding: 15px 0;\n @media screen and "," {\n\tpadding-bottom: 40px;\n }\n width: 100%;\n"])),Xm.medium),qIe=tt.div(HIe||(HIe=b(["\n background-color: #fff;\n display: flex;\n @media screen and "," {\n \tflex-direction: column;\n }\n margin: -15px 0;\n"])),Xm.medium),KIe=tt(wDe)(VIe||(VIe=b(["\n @media not screen and "," {\n \tmin-height: 100vh;\n }\n height: 100% !important;\n margin: 0 auto;\n max-width: 500px;\n padding-bottom: 15px;\n padding-left: 20px;\n padding-right: 20px;\n width: 460px;\n \n @media screen and "," {\n \tmax-width: 375px;\n\twidth: 350px;\n\tpadding-left: 10px;\n\tpadding-right: 10px;\n }\n"])),Xm.medium,Xm.small),WIe=e=>{let{children:t,headerText:n}=e;const{oktaAuth:r,authState:i}=Jye(),o=!!((e,t)=>{const n=jDe({options:t});return n?n[e]:""})("withParams"),a=localStorage.getItem("errorType"),l=id(),[s,c]=(0,v.useState)(!1),{t:u}=lbe(),d=wf();return(0,v.useEffect)(()=>{if(a){const e=KDe(atob(a)),t=e.title,n=e.subTitle;kre.error(t,{subtitle:n,container:"box",position:"top-center"}),localStorage.removeItem("errorType")}},[a]),(0,v.useEffect)(()=>{var e,t,n;if(!r)return;if(!i)return;const{isAuthenticated:a,isPending:s}=i;if(!1===a&&!1===s)return void d.push("/login");const u=null===i||void 0===i||null===(e=i.accessToken)||void 0===e?void 0:e.accessToken,f=null===i||void 0===i||null===(t=i.idToken)||void 0===t?void 0:t.idToken,h=null===i||void 0===i||null===(n=i.refreshToken)||void 0===n?void 0:n.refreshToken;u&&h&&o&&(c(!0),l(bIe({token:f,accessToken:u,refreshToken:h,version:4},{oktaAuth:r,callbacks:{success:()=>{window.location.replace(tIe(o))},failure:async e=>{c(!1),qDe(e,r)}}})))},[i,r,o,l,u,d]),null!==i&&void 0!==i&&i.isPending||s?null:(0,sbe.jsx)(UIe,{"data-testid":"Login Container",children:(0,sbe.jsxs)(qIe,{"data-testid":"Flex",children:[(0,sbe.jsxs)(KIe,{id:"main",role:"main","data-testid":"LoginWrapper",children:[(0,sbe.jsx)(ybe,{src:"/images/logo.png",alt:"imperva","data-testid":"Logo"}),(0,sbe.jsx)(gbe,{id:"cloud-Security_console_login_title",href:"#","data-testid":"Header",children:n}),(0,sbe.jsx)(sbe.Fragment,{children:t}),(0,sbe.jsx)(ADe,{"data-testid":"Copyrights"})]}),(0,sbe.jsx)(BIe,{"data-testid":"MarketContent"}),(0,sbe.jsx)(ODe,{"data-testid":"MobileCopyrights"})]})})};var GIe,$Ie,YIe,JIe,XIe,ZIe;const{required:QIe,email:eNe,validateAll:tNe}=gDe,nNe=()=>{var e,t;const{data:n,loaded:r}=sd(TIe),{oktaAuth:i}=Jye(),[o,a]=(0,v.useState)(!1),[l,s]=(0,v.useState)(null),c=id(),{t:u}=lbe(),d=(0,v.useCallback)((e,t)=>c(dIe(e,(0,zh.A)({},t))),[c]),{submitForm:f}=oDe(d),h=null===n||void 0===n||null===(e=n.links)||void 0===e?void 0:e[0],p=null===h||void 0===h||null===(t=h.properties)||void 0===t?void 0:t["okta:idp:type"],m="isSsoLogin",[g,y]=(0,v.useState)("true"===localStorage.getItem(m));(0,v.useEffect)(()=>{r&&g&&(p!==RDe?(localStorage.setItem(m,"true"),s(null),window.location.replace(null===h||void 0===h?void 0:h.href)):(kre.error(u("login.form.ssoNotAllowed"),{subtitle:"",container:"box",position:"top-center"}),a(!1)))},[r,p,u,h,g]);const b=(0,v.useCallback)((e,t,n)=>{n(!1),localStorage.removeItem(m),VDe(),"PASSWORD_EXPIRED"===t.status?(a(!1),c(gIe((0,zh.A)({},t))),NDe.push("/password-expired")):"MFA_REQUIRED"===t.status?NDe.push("/login/mfa"):"MFA_ENROLL"===t.status?NDe.push("/login/mfa-enroll"):i.signInWithRedirect({sessionToken:t.sessionToken})},[c,i]),w=(0,v.useCallback)((e,t)=>{t(!1),a(!1),"E0000047"===e.errorCode?s(u("login.rateLimitError")):s(e.errorSummary)},[u]),x=(0,v.useCallback)((e,t)=>{let{setSubmitting:n}=t;s(null),a(!0),f({values:e,onSuccess:t=>b(e,t,n),onFailure:e=>w(e,n)})},[w,b,f]),E=(0,v.useCallback)((e,t)=>{let{setSubmitting:n}=t;n(!1),a(!0),c(uIe(null===e||void 0===e?void 0:e.username,{callbacks:{success:()=>RB.dismiss(),failure:()=>RB.dismiss()}}))},[c]),_=()=>{s(null),y(!0)},S=(0,v.useCallback)(()=>{y(!1),RB.dismiss(),c(_Ie())},[c]);return(0,sbe.jsxs)("div",{"data-testid":"AuthWithOkta",children:[g&&(0,sbe.jsx)(pbe,{text:u("login.back"),role:"button",onClick:S,"data-test-label":"Back to login","data-testid":"BackLink"}),(0,sbe.jsx)(YPe,{displayLoader:o,initialValues:{username:"",password:""},showDiscardChangesPopup:!0,msPackage:IDe,onSubmit:g?E:x,validateOnBlur:!1,"data-testid":"Form",children:e=>{let{isSubmitting:t,values:n,errors:r}=e;return(0,sbe.jsxs)(sbe.Fragment,{children:[(0,sbe.jsx)(q_e,{id:"username",name:"username",labelText:u("login.form.email"),component:yDe,autoFocus:!0,"aria-required":"true",autoComplete:"email",validate:tNe(QIe(u("login.form.emailRequired")),eNe(u("login.form.emailNotValid"))),"data-testid":"Field"}),!g&&(0,sbe.jsxs)(sbe.Fragment,{children:[(0,sbe.jsx)(q_e,{id:"password",name:"password",type:"password",labelText:u("login.form.password"),component:yDe,"aria-required":"true",autoComplete:"current-password",validate:tNe(QIe(u("login.form.passwordRequired"))),"data-testid":"Field"}),(0,sbe.jsx)(wbe,{type:"submit",id:"signInButton",disabled:t||(null===r||void 0===r?void 0:r.username)||(null===r||void 0===r?void 0:r.password),"data-testid":"SubmitButtonOrigin",children:u("login.form.signIn")}),l&&(0,sbe.jsxs)(rNe,{"data-testid":"OktaError",children:[(0,sbe.jsx)(sA,{icon:V_,"data-testid":"FontAwesomeIcon"}),l]}),(0,sbe.jsx)(sNe,{role:"button",onClick:()=>NDe.push("/reset-password-request"),"data-test-label":"go to frogot password","data-testid":"ForgotLink",children:u("login.siginHelp")}),(0,sbe.jsxs)(iNe,{"data-testid":"SSOButtonWrapper",children:[(0,sbe.jsx)(oNe,{"data-testid":"Separator",children:(0,sbe.jsx)(aNe,{"data-testid":"SeparatorText",children:u("login.or")})}),(0,sbe.jsx)(lNe,{onClick:_,renderIcon:()=>(0,sbe.jsx)(sA,{icon:A_,"data-testid":"FontAwesomeIcon"}),iconPosition:"left",id:"ssoLoginCheck","data-testid":"SSOCheckButton",children:u("login.form.signInSso")})]})]}),g&&(0,sbe.jsx)(wbe,{type:"submit",disabled:t||(null===r||void 0===r?void 0:r.username),id:"submitSsoLogin","data-testid":"SubmitButtonOrigin",children:u("login.form.signInSso")})]})}})]})},rNe=tt.div(GIe||(GIe=b(["\n\talign-items: center;\n\tcolor: ",";\n\tdisplay: flex;\n\tfont-weight: 600;\n\tgap: 0.3rem;\n\tmargin-top: 10px;\n"])),e=>{let{theme:t}=e;return t.palette.alert500}),iNe=tt.div($Ie||($Ie=b(["\n\tmargin-top: 1.25rem;\n\twidth: 100%;\n"]))),oNe=tt.div(YIe||(YIe=b(["\n align-items: center;\n color: ",";\n\tdisplay: flex;\n flex-basis: 100%;\n margin: 1.25rem 0;\n\twidth: 100%;\n\t&:before,\n\t&:after {\n\t\tbackground: ",';\n\t\tcontent: "";\n\t\tflex-grow: 1;\n\t\tfont-size: 0;\n\t\theight: 1px;\n\t\tline-height: 0;\n\t}\n'])),e=>{let{theme:t}=e;return t.palette.grey600},e=>{let{theme:t}=e;return t.palette.grey300}),aNe=tt.span(JIe||(JIe=b(["\n\tfont-size: 0.75rem;\n\tfont-weight: 500;\n\tpadding: 0px 0.3rem;\n"]))),lNe=tt(uY)(XIe||(XIe=b(["\n\theight: 45px;\n\tmax-width: unset;\n\twidth: 100%;\n"]))),sNe=tt(HX)(ZIe||(ZIe=b(["\n\tdisplay: flex;\n\tmargin-top: 1.25rem;\n"])));var cNe,uNe;const dNe=tt.div(cNe||(cNe=b(["\n\tmargin-top: 2rem;\n\tp {\n\t\tfont-size: 14px;\n\t\tfont-weight: normal;\n\t}\n\ta {\n\t\tcolor: ",";\n\t}\n"])),e=>{let{theme:t}=e;return t.palette.primary500}),fNe=()=>{const e=id(),[t,n]=(0,v.useState)(!1),{t:r}=lbe(),i=(0,v.useCallback)(()=>{n(!1)},[]);return(0,v.useEffect)(()=>{e(wIe())},[e]),(0,sbe.jsx)(WIe,{headerText:r("login.header"),"data-testid":"AuthFlow Login",children:(0,sbe.jsxs)(sbe.Fragment,{children:[t&&(0,sbe.jsx)("div",{children:(0,sbe.jsx)(pbe,{onClick:i,text:r("login.back"),"data-test-label":"Previous step","data-testid":"BackLink"})}),(0,sbe.jsx)(nNe,{"data-testid":"AuthWithOkta"}),(0,sbe.jsx)(dNe,{"data-testid":"RegisterContent",children:(0,sbe.jsxs)("p",{children:[r("login.register.part1"),(0,sbe.jsx)(hNe,{target:"_blank",href:"https://www.imperva.com/request-demo/","data-testid":"FooterLink",children:r("login.register.part2")}),r("login.register.part3"),(0,sbe.jsx)(hNe,{target:"_blank",href:"https://www.imperva.com/free-trial/","data-testid":"FooterLink",children:r("login.register.part4")})]})})]})})},hNe=tt(HX)(uNe||(uNe=b(["\n\tpadding: 0 0.2rem;\n"])));var pNe;const mNe=tt(wDe)(pNe||(pNe=b(["\nalign-items:center;\nbackground-color: ",";\ndisplay:flex;\nflex-direction:column;\njustify-content:center;\n"])),e=>{let{theme:t}=e;return t.palette.grey100}),gNe=()=>{const{t:e}=lbe();return(0,sbe.jsxs)(mNe,{"data-testid":"JitLoadingPage Wrapper",children:[(0,sbe.jsx)(gbe,{"data-testid":"Header",children:e("login.jitLoadingPage.title")}),(0,sbe.jsx)(gbe,{"data-testid":"Header",children:e("login.jitLoadingPage.subtitle")}),(0,sbe.jsx)(FG,{isActive:!0,customSize:100,"data-testid":"Loader"})]})},vNe=()=>{const{oktaAuth:e,authState:t}=Jye(),[n,r]=(0,v.useState)(!1),[i,o]=(0,v.useState)(!1),a=id(),l=wf();return(0,v.useEffect)(()=>{if(n)return;r(!0);(async()=>{try{var n,r,i,s,c,u;if(null!==t&&void 0!==t&&t.isAuthenticated)return void l.push("/login");if(!await e.session.exists())return;const d=await e.token.getWithoutPrompt();await e.tokenManager.setTokens(d.tokens);const f=null===(n=d.tokens)||void 0===n||null===(r=n.accessToken)||void 0===r?void 0:r.accessToken,h=null===(i=d.tokens)||void 0===i?void 0:i.idToken.idToken,p=null===(s=d.tokens)||void 0===s?void 0:s.idToken.claims,m=null===(c=d.tokens)||void 0===c||null===(u=c.refreshToken)||void 0===u?void 0:u.refreshToken;a(bIe({token:h,accessToken:f,refreshToken:m,version:4},{oktaAuth:e,callbacks:{success:()=>{null!==p&&void 0!==p&&p.jit_new_user?(o(!0),setTimeout(()=>{UDe()},11e3)):UDe()},failure:async t=>{qDe(t,e)}}}))}catch(CHe){window.location.replace("/login")}})()},[t,n,a,e.session,e.token,e.tokenManager,e,l]),i?(0,sbe.jsx)(gNe,{"data-testid":"LoginSso JitLoadingPage"}):(0,sbe.jsx)(sbe.Fragment,{})};var yNe,bNe,wNe;const xNe=tt(sA)(yNe||(yNe=b(["\n\tposition: relative;\n\ttop: 1px;\n"]))),ENe=tt(HX)(bNe||(bNe=b(["\n\tcolor: "," !important;\n"])),e=>{let{theme:t}=e;return t.palette.alert500}),_Ne=tt.div(wNe||(wNe=b(["\n\tcolor: ",";\n"])),e=>{let{theme:t}=e;return t.palette.alert500}),SNe=e=>{let{expirationText:t,className:n}=e;const r=id(),{t:i}=lbe(),o=(0,v.useCallback)(()=>{r(fIe({verificationData:{}})),NDe.push("/login")},[r]);return(0,sbe.jsxs)(_Ne,{className:n,"data-testid":"ExpiredSessionNote Wrapper",children:[(0,sbe.jsx)(xNe,{icon:S_,"data-testid":"Icon"})," ",i(t)," ",(0,sbe.jsx)(ENe,{onClick:o,"data-testid":"AnchorLink",children:i("mfa.sessionExpired2")})," ",i("mfa.sessionExpired3")]})};var kNe=__webpack_require__(6178),CNe=__webpack_require__.n(kNe);const TNe=e=>e&&CNe()(e).diff(CNe().now())<0;var ANe,ONe;const MNe=tt(sA)(ANe||(ANe=b(["\n\tcolor: ",";\n\tfont-size: 1rem;\n\tposition: relative;\n\ttop: 1px;\n"])),e=>{let{theme:t}=e;return t.palette.primary500}),PNe=tt.img(ONe||(ONe=b(["\n\tmargin-right: 0.5rem;\n\twidth: 17px;\n"]))),DNe={[zDe.duo]:!0,[zDe.oktaVerify]:!0,[zDe.google]:!0},INe=e=>{let{type:t}=e;const{t:n}=lbe(),r=DNe[t],i=(0,v.useMemo)(()=>{switch(t){case zDe.email:return j_;case zDe.sms:return B_;case zDe.call:return F_;default:return null}},[t]);return r?(0,sbe.jsx)(PNe,{alt:n("mfa.names.".concat(t)),src:"/images/".concat(t,".svg"),"data-testid":"FactorIcon Img"}):(0,sbe.jsx)(MNe,{icon:i,"data-testid":"FactorIcon Icon"})},NNe=["id","simpleType","expiresAt","isExpired","setIsExpired","enrollMode"];var zNe;const RNe=tt(uY)(zNe||(zNe=b(["\n\theight: 45px;\n\tmargin-bottom: 20px;\n\tmax-width: unset;\n\twidth: 100%;\n"]))),FNe=e=>{let{id:t,simpleType:n,expiresAt:r,isExpired:i,setIsExpired:o,enrollMode:a}=e;sg(e,NNe);const{t:l}=lbe(),s=(0,v.useCallback)(()=>{TNe(r)?o(!0):NDe.push("/login/".concat(a?"mfa-enroll":"mfa","/").concat(n))},[a,r,o,n]);return(0,sbe.jsx)(RNe,{disabled:i,onClick:s,renderIcon:()=>(0,sbe.jsx)(INe,{type:n,"data-testid":"FactorIcon"}),"data-test-label":n,"data-testid":"FactorItem Button",children:(0,sbe.jsxs)(sbe.Fragment,{children:[a&&l("mfa.factorButtons.configureLogin")||l("mfa.factorButtons.loginWith")," ",l("mfa.names.".concat(n))]})})};var LNe;const BNe=tt(_re)(LNe||(LNe=b(["\n\tmargin-bottom: 20px;\n"]))),jNe=()=>{var e;const[t,n]=(0,v.useState)(!1),{t:r}=lbe(),{data:i}=sd(OIe),o=null===(e=i.factors)||void 0===e?void 0:e.filter(e=>"DUO"!==e.provider),a=(0,v.useCallback)(()=>{NDe.push("/login")},[]);return(0,v.useEffect)(()=>{(0,Tf.isEmpty)(i)&&NDe.push("/login")},[i]),(0,Tf.isEmpty)(i)?null:(0,sbe.jsxs)(WIe,{headerText:r("login.mfaHeader"),"data-testid":"EnrollWithOktaMfa Login",children:[(0,sbe.jsx)(pbe,{text:r("login.backToLogin"),onClick:a,"data-test-label":"Back to login","data-testid":"BackLink"}),(0,sbe.jsx)(BNe,{title:r("mfa.enrollForm.setPreferred"),subtitle:r("mfa.enrollForm.adminRequires"),kind:"warning",showCloseButton:!1,"data-testid":"NotifWrapper"}),o.map((e,r)=>(0,sbe.jsx)(FNe,(0,zh.A)((0,zh.A)({expiresAt:i.expiresAt,isExpired:t,setIsExpired:n,enrollMode:!0},e),{},{"data-testid":`FactorItem ${r}`}),r)),t&&(0,sbe.jsx)(SNe,{expirationText:"login.sessionExpired1","data-testid":"ExpiredSessionNote"})]})};function HNe(){return HNe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HNe.apply(this,arguments)}function VNe(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var UNe={container:function(e,t){return HNe({},e,{cursor:"default",marginRight:"0px"})},control:function(e,t){return{width:"fit-content",display:"flex",alignItems:"center",cursor:"pointer"}},valueContainer:function(e,t){return{display:"flex",position:"inherit",width:"fit-content",paddingBottom:"3px"}},singleValue:function(e,t){return{position:"inherit"}},placeholder:function(e,t){return{position:"inherit"}},indicatorsContainer:function(e,t){return HNe({},e,{marginRight:"0px"})}},qNe=function(e,t){var n=HNe({},e);return(0,Tf.forEach)(t,function(t,r){if(e[r]){var i=n[r];n[r]=function(e,n){return HNe({},i(e,n),t(e,n))}}else n[r]=t}),n},KNe=function(e){var t=e.theme,n=e.isMulti,r=e.maxHeight,i=e.size,o=e.hideSelectedTags,a=e.invalid,l=e.customStyles,s=e.isFilter,c=e.useFilterStyle,u=e.mergeWithBaseStyles,d=function(e){var t=e.theme,n=e.isMulti,r=e.maxHeight,i=e.size,o=e.hideSelectedTags,a=e.isFilter,l=e.invalid;return{menuPortal:function(e){return HNe({},e,{zIndex:9999})},option:function(e,n){var r,i,o,a,l,s;return HNe({},e,{fontSize:"0.875rem",backgroundColor:n.isSelected?null===t||void 0===t||null===(r=t.dropdown)||void 0===r?void 0:r.selectedBg:n.isFocused?null===t||void 0===t||null===(i=t.dropdown)||void 0===i?void 0:i.hoverOptionBg:null===t||void 0===t||null===(o=t.dropdown)||void 0===o?void 0:o.background,cursor:n.isDisabled?"not-allowed":"pointer",color:n.isDisabled?null===t||void 0===t||null===(a=t.dropdown)||void 0===a?void 0:a.disabledText:null===t||void 0===t||null===(l=t.dropdown)||void 0===l?void 0:l.text,"&:hover":{background:n.isDisabled?"transparent":null===t||void 0===t||null===(s=t.dropdown)||void 0===s?void 0:s.hoverOptionBg},paddingLeft:"17px",paddingRight:"17px"})},control:function(e,a){var s,c,u,d,f,h,p,m,g;return HNe({},e,{alignItems:n?"center":"stretch",fontSize:"0.875rem",minHeight:"small"!==i||n&&!o?"2.5rem !important":"2rem !important",maxHeight:r||"126px",overflowY:"auto",border:"solid 1px "+(l?null===t||void 0===t||null===(s=t.dropdown)||void 0===s?void 0:s.errorBorder:a.isDisabled?null===t||void 0===t||null===(c=t.dropdown)||void 0===c?void 0:c.disabledBorder:null===t||void 0===t||null===(u=t.dropdown)||void 0===u?void 0:u.border),boxShadow:0,borderColor:a.isFocused?null===t||void 0===t||null===(d=t.dropdown)||void 0===d?void 0:d.focusedBorder:0,backgroundColor:a.isDisabled?null===t||void 0===t||null===(f=t.dropdown)||void 0===f?void 0:f.disabledBg:null===t||void 0===t||null===(h=t.dropdown)||void 0===h?void 0:h.background,background:a.selectProps.menuIsOpen&&(null===t||void 0===t||null===(p=t.dropdown)||void 0===p?void 0:p.background),"&:hover":{border:"solid 1px "+(l?null===t||void 0===t||null===(m=t.dropdown)||void 0===m?void 0:m.errorBorder:null===t||void 0===t||null===(g=t.dropdown)||void 0===g?void 0:g.hoverBorder)}})},dropdownIndicator:function(e,n){var r,i,o,a;return HNe({},e,{color:n.isDisabled?null===t||void 0===t||null===(r=t.dropdown)||void 0===r?void 0:r.disabledIndicator:null===t||void 0===t||null===(i=t.dropdown)||void 0===i?void 0:i.indicator,"&:hover":{color:n.isDisabled?null===t||void 0===t||null===(o=t.dropdown)||void 0===o?void 0:o.disabledIndicator:null===t||void 0===t||null===(a=t.dropdown)||void 0===a?void 0:a.indicator}})},placeholder:function(e,n){var r,i;return HNe({},e,{color:n.isDisabled?null===t||void 0===t||null===(r=t.dropdown)||void 0===r?void 0:r.disabledPlaceholder:null===t||void 0===t||null===(i=t.dropdown)||void 0===i?void 0:i.placeholder})},menuList:function(e,t){return HNe({},e,{padding:0,borderRadius:4,overflowX:"hidden"})},menu:function(e,t){return HNe({},e,{padding:"0",marginBottom:"0",">