PageSourceSearch

https://console.loginradius.com/assets/js/Cfb84p6O.js

js loginradius.com collected 2026-10-02 02:18:03 UTC 20,910 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/js/CE0TBUEh.js","assets/js/MZk2sk3Q.js","assets/QVETL09V.css","assets/js/D6oVoAjQ.js","assets/js/r_90E_HP.js","assets/IxdlRvEC.css","assets/js/BM-92CBZ.js","assets/BlRXL5YH.css","assets/js/CXOMndHZ.js","assets/BkyIzwqH.css","assets/js/8DkdnniB.js","assets/js/BoE8QyMS.js","assets/CPtyR84c.css","assets/js/Bq8pToh6.js","assets/js/CtjRURfO.js","assets/js/BG6sgJYo.js","assets/js/UVfp44lh.js","assets/BVri7DQ-.css","assets/js/CD3zkQMw.js","assets/js/DPTXAdYl.js","assets/js/TGRWZtrK.js","assets/js/BE9nPIna.js","assets/js/V-6xoi_X.js","assets/js/DJC8yTeV.js","assets/js/Bj_v_jxb.js"])))=>i.map(i=>d[i]);
2import{bM as a,r as t,bG as s,bL as e,R as i,bO as n,ed as o,bq as c,c_ as r,ku as d,bJ as u,cB as l,kv as p,ci as E,kw as g,kx as A,ky as f,kz as b,kA as h,kB as _,kC as m,cM as S,dy as I,dv as D,cO as y,kD as L,kE as T,kF as N,kG as P,kH as k,kI as C,kJ as F,kK as O,kL as M,kM as U,kN as j}from"./MZk2sk3Q.js";import{C as x,P as R,B as v}from"./BM-92CBZ.js";import{F as Q}from"./D6oVoAjQ.js";import{P as w}from"./BoE8QyMS.js";import{c as G,u as H,a as B,T as z,B as K,aT as V,l as Y,d as q}from"./r_90E_HP.js";import{C as W}from"./CtjRURfO.js";import{D as $}from"./BG6sgJYo.js";import{D as J}from"./UVfp44lh.js";const X=i.lazy(()=>E(()=>import("./CE0TBUEh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))),Z=i.lazy(()=>E(()=>import("./CD3zkQMw.js"),__vite__mapDeps([18,1,2,3,4,5,6,7,8,9,13,10,11,12]))),aa=i.lazy(()=>E(()=>import("./DPTXAdYl.js"),__vite__mapDeps([19,1,2,4,5,20,10,11,12,13,3,6,7,21,22,14,15,16,17]))),ta=i.lazy(()=>E(()=>import("./DJC8yTeV.js"),__vite__mapDeps([23,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))),sa=i.lazy(()=>E(()=>import("./Bj_v_jxb.js"),__vite__mapDeps([24,1,2,4,5,8,9,13,10,11,12,6,7,3,14,15,16,17]))),ea=a(a=>({i18n:a.appState.i18n.languages,mfaSecurityQuestions:a.securityConfiguration.mfaSecurityQuestions,mfaAuthenticatorApps:a.securityConfiguration.mfaAuthenticatorApps,getMfaSettingsData:a.securityConfiguration.mfaSettings,mfaEmailStatus:a.securityConfiguration.mfaEmailStatus,updateMfaEmailStatus:a.securityConfiguration.updateMfaEmailStatus,mfaSmsOtpStatus:a.securityConfiguration.mfaSmsStatus,updateMfaSmsStatus:a.securityConfiguration.updateMfaSmsStatus,pushNotificationData:a.securityConfiguration.pushNotification,updatemfaAuthenticatorApps:a.securityConfiguration.updateMfaAuthenticatorApps,updatemfaSecurityQuestions:a.securityConfiguration.updateMfaSecurityQuestions,updatePushNotificationData:a.securityConfiguration.updatepushNotification,addPushNotificationData:a.securityConfiguration.addPushNotification,getPasskeySettingsData:a.passkey,appFeatures:a.auth.appFeatures,secondFactorAuthData:a.securityConfiguration.secondFactorAuthentication,duoConfig:a.securityConfiguration.duoSecondFactorAuthentication,authenticatorAppData:a.securityConfiguration.googleAuthenticator,pushNotifyData:a.securityConfiguration.pushNotify}),a=>({getMfaSecurityQuestions:()=>a(j()),getMfaAuthenticatorApps:()=>a(U()),getMfaSettings:()=>a(M()),getMfaEmailOtpStatus:()=>a(O()),updateMfaEmailOtpStatus:t=>a(F(t)),updateMfaSmsOtpStatus:t=>a(C(t)),getPushNotification:()=>a(k()),updateMfaAuthenticatorApps:t=>a(P(t)),updateMfaSecurityQuestions:t=>a(N(t)),addPushNotification:t=>a(T(t)),updatePushNotification:t=>a(L(t)),getPasskeyAuthentication:()=>a(y()),setAppFeatures:t=>a(D(t)),getAppFeatures:()=>a(I()),getSecondFactorAuthStatus:()=>a(S()),updateSecondFactorAuthStatus:(t,s)=>a(l(m(t),s)),getDuoConfig:()=>a(_()),getAuthenticatorApps:()=>a(h()),updateGoogleAuthenticatorApps:t=>a(b(t)),getPushNotify:()=>a(f()),updatePushNotify:(t,s)=>a(l(A(t),s)),addPushNotify:(t,s)=>a(l(g(t),s))}))(a=>{const{i18n:E,appFeatures:g,getPasskeySettingsData:A,getPasskeyAuthentication:f,secondFactorAuthData:b,getSecondFactorAuthStatus:h,updateSecondFactorAuthStatus:_,setAppFeatures:m,duoConfig:S,getDuoConfig:I,authenticatorAppData:D,getAuthenticatorApps:y,pushNotifyData:L,getPushNotify:T,updatePushNotify:N,getAppFeatures:P,addPushNotify:k}=a,[C,F]=t.useState(""),O=s(a=>a.auth.currentAppinfo),M={emailPasscode:{name:"emailPasscode",title:E.EMAIL_PASSCODE,description:E.EMAIL_PASSCODE_DESCRIPTION,docs:e.EMAIL_PASSCODE,isEnabled:!1,isLoading:!0,logo:"mail-01"},smsPasscode:{name:"smsPasscode",title:E.SMS_PASSCODE,description:E.SMS_PASSCODE_DESCRIPTION,docs:e.SMS_PASSCODE,isEnabled:!1,isLoading:!0,logo:"annotation-dots"}
2,authenticatorApps:{name:"authenticatorApps",title:E.GOOGLE_AUTHENTICATOR,description:E.GOOGLE_AUTHENTICATOR_HEADER,docs:e.GOOGLE_AUTHENTICATOR,backDescription:E.GOOGLE_AUTHENTICATOR_PAGE_DESCRIPTION,backDocs:e.GOOGLE_AUTHENTICATOR,isEnabled:!1,isLoading:!0,logo:"phone-02"},securityQuestions:{name:"securityQuestions",title:E.MFA_SQ_TITLE,backTitle:E.MFA_SQ_PAGE_TITLE,description:E.MFA_SECURITY_QUESTION_HEADER,docs:e.SECURITY_QUESTION,backDescription:E.MFA_SQ_PAGE_DESCRIPTION,backDocs:e.SECURITY_QUESTION,isEnabled:!1,isLoading:!0,logo:"help-circle"},pushNotification:{name:"pushNotification",title:E.PUSH_NOTIFICATION_HEADER,backTitle:E.MFA_PUSH_PAGE_TITLE,description:E.PUSH_NOTIFICATION_CARD_DESCRIPTION,docs:e.PUSH_NOTIFICATION,backDescription:E.PUSH_NOTIFICATION_DESCRIPTION,backDocs:e.PUSH_NOTIFICATION,isEnabled:!1,isLoading:!0,logo:"notification-text"},duo:{name:"duo",title:E.DUO_HEADER,backTitle:E.MFA_DUO_PAGE_TITLE,description:E.DUO_CARD_DESCRIPTION,docs:e.DUO,backDescription:E.DUO_DESCRIPTION,backDocs:e.DUO,isEnabled:!1,isLoading:!0,logo:"duo-logo"},passkey:{name:"passkey",title:E.PASSKEY_HEADER,description:E.PASSKEY_DESCRIPTION,isEnabled:!1,isLoading:!0,logo:"face-id"}},[U,j]=t.useState(b.Data&&b.Data.IsSecondFactorAuthenticatorEnabled||!1),[ea,ia]=t.useState(M),[na,oa]=t.useState(""),[ca,ra]=t.useState(!0),[da,ua]=t.useState(!1),[la,pa]=t.useState(!1),Ea=i.useRef(0),ga=i.useRef(null),Aa=G(),fa="setting"!==na&&ea[na],ba=s(a=>a.auth.appFeatures),ha=s(a=>a.auth.appBasicInfo),_a=s(a=>a.securityConfiguration.updateEventBasedReAuthData),ma=n(),Sa=!!ba.event_based_two_factor_authentication_enabled,Ia=!!_a?.isLoading,[Da,ya]=t.useState(ha?.EventBasedReAuthentication?.IsEnabled&&Sa
2),[La,Ta]=t.useState(!1);t.useEffect(()=>{ra(!0),h(),I(),T(),f(),ba.isSuccess||P()},[]);const Na=H();t.useEffect(()=>{b.Data.IsSecondFactorAuthenticatorEnabled&&y()},[b.Data]),t.useEffect(()=>{b.isUpdating||(xa(),ra(!1))},[b.isUpdating]),t.useEffect(()=>{_a?.isSuccess&&(ma(o(!0)),Ta(!1))},[_a?.isSuccess]);const[Pa,ka]=t.useState({authenticatorApps:!0,duo:!1,pushNotification:!1,passkey:!1,securityQuestions:!1}),Ca=i.useRef(null),Fa=i.useRef(!1),Oa=i.useRef(null),Ma=i.useRef(null),Ua=i.useRef(null),ja=()=>{ga.current&&(clearTimeout(ga.current),ga.current=null),Ea.current=Date.now(),pa(!0)},xa=()=>{const a=Ea.current,t=()=>{Ea.current=0,ga.current=null,pa(!1),ua(!1),oa(""),F(""),Ta(!1)};if(ga.current&&(clearTimeout(ga.current),ga.current=null),a>0){const s=Date.now()-a,e=Math.max(0,1e3-s);if(e>0)return void(ga.current=setTimeout(t,e));t()}else ua(!1),oa(""),F("")};t.useEffect(()=>{g.isSuccess&&b.Data.IsSecondFactorAuthenticatorEnabled&&(g.enable_duo_security_authenticator?ka(a=>({...a,duo:!0})):ia(a=>({...a,duo:{...a.duo,isEnabled:!1,isLoading:!1}})),g.enable_push_notifications?ka(a=>({...a,pushNotification:!0})):ia(a=>({...a,pushNotification:{...a.pushNotification,isEnabled:!1,isLoading:!1}})),g.passkey_enabled?ka(a=>({...a,passkey:!0})):ia(a=>({...a,passkey:{...a.passkey,isEnabled:!1,isLoading:!1}})),g.security_question_enabled&&ka(a=>({...a,securityQuestions:!0})))},[g.isLoading,g.isSuccess,b.isUpdating,b.isLoading,S.isUpdating,S.isLoading,D.isUpdating,D.isLoading,L.isUpdating,L.isLoading,A.isLoading,A.isUpdating]),t.useEffect(()=>{b.isLoading||b.isError||b.isUpdating||(b.Data&&j(b.Data.IsSecondFactorAuthenticatorEnabled),ra(!1))},[b.isLoading,b.isUpdating]),t.useEffect(()=>{b.isLoading||b.isUpdating||(ea.securityQuestions.isEnabled=b.Data.IsSecurityQuestionAsMFAEnabled,ea.securityQuestions.isLoading=b.isLoading||b.isUpdating,ea.emailPasscode.isEnabled=b.Data.IsEmailOtpAuthenticatorEnabled,ea.emailPasscode.isLoading=b.isLoading||b.isUpdating,ea.smsPasscode.isEnabled=b.Data.IsSmsOtpAuthenticatorEnabled,ea.smsPasscode.isLoading=b.isLoading||b.isUpdating,ea.passkey.isEnabled=b.Data.IsPasskeyMFAEnabled,ea.passkey.isLoading=b.isLoading||b.isUpdating,ea.authenticatorApps.isEnabled=b.Data.IsAuthenticatorEnabled,ea.authenticatorApps.isLoading=b.isLoading||b.isUpdating,ia(a=>({...a,securityQuestions:ea.securityQuestions,emailPasscode:ea.emailPasscode,smsPasscode:ea.smsPasscode,authenticatorApps:ea.authenticatorApps,passkey:ea.passkey})))},[b.isLoading,b.isUpdating]),t.useEffect(()=>{D.isLoading||D.isUpdating||(ea.authenticatorApps.isEnabled=D.Data?.IsEnabled??!1,ea.authenticatorApps.isLoading=D.isLoading||D.isUpdating,ia(a=>({...a,authenticatorApps:ea.authenticatorApps})))},[D.isLoading,D.isUpdating]),t.useEffect(()=>{D.isLoading||D.isError||D.isUpdating?D.isError&&(ra(!1),xa()):(null!==Ua.current&&(Ua.current,D.Data.IsEnabled),ra(!1),xa(),ea.authenticatorApps.isEnabled=D.Data?.IsEnabled??!1,ea.authenticatorApps.isLoading=D.isLoading||D.isUpdating,ia(a=>({...a,authenticatorApps:ea.authenticatorApps}))),D.isLoading||D.isError||D.isUpdating||(Ua.current=D.Data.IsEnabled)},[D.isLoading,D.isUpdating]),t.useEffect(()=>{L.isLoading||(L.isError||(ea.pushNotification.isEnabled=L.Data?.IsEnabled),ea.pushNotification.isLoading=L.isLoading||L.isUpdating,ia(a=>({...a,pushNotification:ea.pushNotification})))},[L.isLoading]),t.useEffect(()=>{S.isLoading&&!S.isUpdating||(S.isError||(ea.duo.isEnabled=S.Data.IsEnabled),ea.duo.isLoading=S.isLoading||S.isUpdating,ia(a=>({...a,duo:ea.duo})))},[S.isUpdating,S.isLoading]);const Ra={authenticatorApps:D.Data.IsEnabled,securityQuestions:b.Data.IsSecurityQuestionAsMFAEnabled,pushNotification:L.Data.IsEnabled,duo:S.Data.IsEnabled,passkey:b.Data?.IsPasskeyMFAEnabled};t.useEffect(()=>{S.isLoading||S.isError?S.isError&&(ra(!1),xa()):(null!==Ma.current&&(Ma.current,S.Data),ra(!1),xa(),ea.duo.isEnabled=S.Data?.IsEnabled,ia(ea)),S.isLoading||S.isError||(Ma.current=S.Data?.IsEnabled)},[S.isLoading,S.isUpdating]),t.useEffect(()=>{if(b.isLoading||b.isUpdating||b.isError)b.isError&&(ra(!1),xa(),Fa.current=!1);else{const a=Ca.current;if(a&&(!a.IsSecondFactorAuthenticatorEnabled&&b.Data.IsSecondFactorAuthenticatorEnabled||a.IsSecondFactorAuthenticatorEnabled&&!b.Data.IsSecondFactorAuthenticatorEnabled||a.IsSecondFactorAuthenticatorEnabled&&b.Data.IsSecondFactorAuthenticatorEnabled,[["emailPasscode",a.IsEmailOtpAuthenticatorEnabled,b.Data.IsEmailOtpAuthenticatorEnabled],["smsPasscode",a.IsSmsOtpAuthenticatorEnabled,b.Data.IsSmsOtpAuthenticatorEnabled],["authenticatorApps",a.IsAuthenticatorEnabled,b.Data.IsAuthenticatorEnabled],["securityQuestions",a.IsSecurityQuestionAsMFAEnabled,b.Data.IsSecurityQuestionAsMFAEnabled],["passkey",a.IsPasskeyMFAEnabled,b.Data.IsPasskeyMFAEnabled]].forEac
2h(([a,t,s])=>{})),j(b.Data.IsSecondFactorAuthenticatorEnabled),Fa.current)return h(),void(Fa.current=!1);ra(!1),xa()}b.isUpdating&&(Fa.current=!0),b.isLoading||b.isUpdating||b.isError||(Ca.current=b.Data)},[b.isLoading,b.isUpdating]),t.useEffect(()=>{L.isLoading||L.isError?L.isError&&(ra(!1),xa()):(null!==Oa.current&&(Oa.current,L.Data.IsEnabled),ra(!1),xa(),ea.pushNotification.isEnabled=L.Data.IsEnabled,ia(ea)),L.isLoading||L.isError||(Oa.current=L.Data.IsEnabled)},[L.isUpdating]),t.useEffect(()=>{L.isLoading||L.isError?L.isError&&(ra(!1),xa()):(ra(!1),xa(),ea.pushNotification.isEnabled=L.Data.IsEnabled,ia(ea)),L.isLoading||L.isError||(Oa.current=L.Data.IsEnabled)},[L.isAdding]),t.useEffect(()=>{A.isLoading||A.isUpdating||A.error?A.isError&&(ra(!1),xa()):(ra(!1),xa(),ia(a=>({...a,passkey:{...a.passkey,isLoading:!1}})))},[A.isLoading,A.isUpdating]);const va=()=>{F(""),j(b.Data.IsSecondFactorAuthenticatorEnabled||!1),ea.authenticatorApps.isEnabled=D.Data.IsEnabled,ea.securityQuestions.isEnabled=b.Data.IsSecurityQuestionAsMFAEnabled,ea.pushNotification&&(ea.pushNotification.isEnabled=L.Data.IsEnabled),ea.duo&&(ea.duo.isEnabled=S.Data.IsEnabled),ia({...ea})},Qa=()=>{oa(""),va()},wa=c.jsx(Y,{active:!0}),Ga=c.jsx(w,{permissions:["SecurityPolicy_Edit"],children:c.jsx(x,{success:!0,"aria-label":"Multi-factor authentication",className:"has-label mb-3",checked:U,loading:b.isUpdating||b.isLoading,onChange:a=>{b.Data.IsSecondFactorAuthenticatorEnabled&&!a?g.enable_b2b_identity?F("disable"):ua(!0):a||b.Data.IsSecondFactorAuthenticatorEnabled||(oa(""),Qa()),a&&j(a)}})}),Ha=c.jsx("div",{onClick:a=>{a.stopPropagation()},onKeyDown:a=>{a.stopPropagation()},role:"presentation",children:c.jsx(w,{permissions:["SecurityPolicy_Edit"],children:c.jsx(x,{success:!0,"aria-label":"Passkey MFA",className:"has-label",checked:!!A.Data?.IsEnabled&&b.Data.IsPasskeyMFAEnabled,disabled:!A.Data?.IsEnabled,tooltipTitle:A.Data?.IsEnabled?"":E.ENABLE_PASSKEY_TOOLTIP,loading:b.isLoading||b.isUpdating,onChange:a=>{!a&&oa("passkey"),b.Data.IsPasskeyMFAEnabled&&!a?ua(!0):!b.Data.IsPasskeyMFAEnabled&&a?_({IsPasskeyMFAEnabled:a}):a||b.Data.IsSecondFactorAuthenticatorEnabled||(oa(""),Qa()),a&&j(a)}})})}),Ba=c.jsx(w,{permissions:["SecurityPolicy_Edit"],children:c.jsx(x,{success:!0,"aria-label":ea[na]?.title?`Enable ${ea[na].title}`:"Enable factor",className:"has-label mb-3",checked:ea[na]?.isEnabled,onChange:a=>{!a&&Ra[na]?ua(!0):ia(t=>({...t,[na]:{...t[na],isEnabled:a}}))}})});return c.jsxs(c.Fragment,{children:[na&&"emailPasscode"!==na&&"smsPasscode"!==na&&"passkey"!==na&&"mainSwitch"!==na?c.jsxs(B,{direction:"vertical",size:r.singleSection.gap,children:[c.jsx(R,{basename:"",router:null,pageType:"singleSection",title:"setting"===na?"MFA Settings":fa.backTitle||fa.title,description:"setting"===na?E.MULTI_FACTOR_AUTH_SETTING_HEADER:fa.backDescription,onBack:()=>Qa(),hasActionButton:!0,actionButtonNode:c.jsxs(B,{size:8,children:[fa&&fa.backDocs&&c.jsx(z,{title:"Documentation",children:c.jsx(K,{type:"default","aria-label":"Documentation",icon:c.jsx(V,{size:16,strokeWidth:1.6,style:{display:"block"}}),onClick:()=>window.open("setting"===na?e["Multi Factor Authentication"]:fa.backDocs,"_blank")})}),"setting"===na?Ga:Pa[na]?Ba:null]})}),c.jsxs(Q,{designKey:"Multi Factor Authentication",permissions:["SecurityPolicy_View"],features:["registration_as_a_service"],children:["authenticatorApps"===na&&c.jsx(i.Suspense,{fallback:wa,children:c.jsx(X,{mfaAuthenticatorApps:D.Data,Enabled:ea.authenticatorApps.isEnabled,setLoading:a=>ra(a),loading:ca,onCancel:()=>va()})}),"securityQuestions"===na&&c.jsx(i.Suspense,{fallback:wa,children:c.jsx(ta,{isEnabled:ea.securityQuestions.isEnabled,minQuestionsToAsk:b.Data.MinimumSecurityQuestionsToAsk,setLoading:a=>ra(a),loading:ca,onCancel:()=>va()})}),"pushNotification"===na&&c.jsx(i.Suspense,{fallback:wa,children:c.jsx(aa,{Enabled:ea.pushNotification.isEnabled,setLoading:a=>ra(a),loading:ca,onCancel:()=>va()})}),"duo"===na&&c.jsx(i.Suspense,{fallback:wa,children:c.jsx(Z,{enabled:ea.duo.isEnabled,onCancel:()=>va(),loading:ca,setLoading:a=>ra(a)})}),"setting"===na&&c.jsx(i.Suspense,{fallback:wa,children:c.jsx(sa,{isEnabled:U,isRequired:b.Data?.IsRequired,isGoogleAuthenticatorEnabled:D.Data?.IsEnabled??!1,setLoading:a=>ra(a),loading:ca,mfaSwitchClickState:C,setIsMFASwitchClickState:F,onCancel:()=>va(),onSave:()=>oa(""),onBeforeSave:()=>ja()})})]})]}):c.jsxs(B,{direction:"vertical",size:24,children:[Aa&&Aa.state&&Aa.state.isOrganizationMFA&&c.jsx(v,{onClick:()=>Na("/organizations/details",{state:{orgId:Aa.state.organizationID}})}),ca||b.isUpdating||b.isLoading?c.jsx(Y,{active:!0}):c.jsx(Q,{designKey:"Multi Factor Authentication",permissions:["SecurityPolicy_View"],features:["registration_as_a_service"],children:c.jsxs(B,{direction:"vertical",size:r.multiSection.sectionGap,style:{width:"100%"},children:[c.jsxs(q,{vertical:!0,gap:r.multiSection.gap,children:[c.jsx(R,{basename:"",router:null,title:"MFA Setup",pageType:"multiSection",description:E.MULTI_FACTOR_AUTH_SETTING_HEADER,docsKey:"Multi Factor Authentication"}),c.jsxs(W,{itemsPerRow:3,children:[c.jsx($,{title:"MFA settings",description:"Control multi-factor authentication for your applications",svgClassName:"shield-tick",onClick:()=>oa("setting"),hasTags:!0,tags:[{text:U?E.ENABLED:E.DISABLED,color:U?"green":"default"}],disabled:!1,hasAction:!1}),c.jsx("div",{style:{opacity:Sa?1:.6},children:c.jsx($,{title:"Step-up authentication",description:"Require MFA again when users perform sensitive actions",svgClassName:"shield-plus",onClick:()=>{},hasTags:!0,loading:ha?.isLoading||Ia,tags:[{text:Da?E.ENABLED:E.DISABLED,color:Da?"green":"default"}],disableClick:!0,hasAction:!0,actionNode:c.jsx(w,{permissions:["SecurityPolicy_Edit"],children:c.jsx(x,{success:!0,"aria-label":"Step-up authentication",className:"has-label mb-3",checked:Da,loading:Ia||ha?.isLoading,disabled:!Sa,tooltipTitle:Sa?void 0:E.MSG_FEATURE_NOT_AVAILABLE,onChange:a=>{a?(ma(d({IsEnabled:!0})),ya(!0)):Ta(!0)}})})})})]})]}),U&&c.jsxs(q,{vertical:!0,gap:r.multiSection.gap,children:[c.jsx(R,{basename:"",router:null,title:E.MFA_FACTORS,pageType:"multiSection",description:E.MULTI_FACTOR_AUTH_FACTORS_HEADER,tooltipText:E.MFA_FACTORS_INFO_TEXT}),c.jsx(W,{itemsPerRow:3,children:Object.keys(ea).map(a=>c.jsx("div",{style:{flex:1,width:"100%"},children:ea[a].isLoading?c.jsx(Y,{}
2):c.jsx(c.Fragment,{children:c.jsx($,{title:ea[a].title,description:ea[a].description,svgClassName:ea[a].logo,disabled:"passkey"===a&&u(O)&&!ba.trial_mfa_passkey,onClick:()=>{"passkey"===a?Na("/security/multi-factor-authentication/passkeys",{state:{isMFAConfig:!0,isPasskey:!0}}):oa(a)},hasTags:!0,disableClick:"emailPasscode"===a||"smsPasscode"===a,tags:[{text:ea[a].isEnabled?E.ENABLED:E.DISABLED,color:ea[a].isEnabled?"green":"default"}],showFullDescriptionOnHover:!0,hasAction:!0,hasInfo:g.EnablePasswordlessLogin&&["emailPasscode","smsPasscode"].includes(a),infoText:"emailPasscode"===a?E.MFA_PASSWORDLESS_EMAIL_TOOLTIP:"smsPasscode"===a?E.MFA_PASSWORDLESS_SMS_TOOLTIP:"",actionNode:"emailPasscode"===a||"smsPasscode"===a?c.jsx(w,{permissions:["SecurityPolicy_Edit"],children:c.jsx(x,{success:!0,"aria-label":ea[a].title,className:"has-label mb-3",checked:ea[a].isEnabled,onChange:t=>{"emailPasscode"===a&&t?(ra(!0),_({IsEmailOtpAuthenticatorEnabled:t},{eventName:"mfa_factor_enabled",errorEventName:"mfa_factor_got_error",factor:"email_passcode",targetEnabled:!0})):"smsPasscode"===a&&t?(ra(!0),_({IsSmsOtpAuthenticatorEnabled:t},{eventName:"mfa_factor_enabled",errorEventName:"mfa_factor_got_error",factor:"sms_passcode",targetEnabled:!0})):t&&(ea[a].isEnabled=t),oa(a),!t&&ua(!0)}})}):"passkey"===a?Ha:null})})},a))})]})]})})]}),na&&(()=>{const a="mainSwitch"===na||"setting"===na?"MFA":ea[na]?.title||"";return c.jsx(J,{open:da,onClose:()=>ua(!1),onConfirm:()=>{ja(),"mainSwitch"===na||"setting"===na?(_({IsSecondFactorAuthenticatorEnabled:!1},{eventName:"mfa_disabled"}),m({data:[{status:!1,feature:"two_factor_authentication_enabled"}]})):"emailPasscode"===na?_({IsEmailOtpAuthenticatorEnabled:!1},{eventName:"mfa_factor_disabled",errorEventName:"mfa_factor_got_error",factor:"email_passcode",targetEnabled:!1}):"smsPasscode"===na?_({IsSmsOtpAuthenticatorEnabled:!1},{eventName:"mfa_factor_disabled",errorEventName:"mfa_factor_got_error",factor:"sms_passcode",targetEnabled:!1}):"authenticatorApps"===na?_({IsAuthenticatorEnabled:!1},{eventName:"mfa_factor_disabled",errorEventName:"mfa_factor_got_error",factor:"authenticator_apps",targetEnabled:!1}):"securityQuestions"===na?_({IsSecurityQuestionAsMFAEnabled:!1,MinimumSecurityQuestionsToAsk:b.Data.MinimumSecurityQuestionsToAsk}):"pushNotification"===na?L.isError?k({...L.Data,IsEnabled:!1},{eventName:"mfa_factor_disabled",errorEventName:"mfa_factor_got_error",factor:"push_notification",targetEnabled:!1}):N({...L.Data,IsEnabled:!1},{eventName:"mfa_factor_disabled",errorEventName:"mfa_factor_got_error",factor:"push_notification",targetEnabled:!1}):"duo"===na?ma(l(p({IsEnabled:!1}),{eventName:"mfa_factor_disabled",errorEventName:"mfa_factor_got_error",factor:"duo",targetEnabled:!1})):"passkey"===na&&_({IsPasskeyMFAEnabled:!1})},title:a,heading:`Disable ${a}`,message:`Are you sure you want to disable ${a}?`,type:"Disable",confirmButtonLabel:"Disable",loading:la})})(),c.jsx(J,{open:"disable"===C,onClose:()=>F(""),onConfirm:()=>{ja(),_({IsSecondFactorAuthenticatorEnabled:!1},{eventName:"mfa_disabled"}),m({data:[{status:!1,feature:"two_factor_authentication_enabled"}]})},title:"MFA",heading:E.TENANT_MFA_SETTINGS_CONFIRMATION_TITLE,message:E.TENANT_MFA_SETTINGS_CONFIRMATION_DESCRIPTION,type:"Disable",confirmButtonLabel:"Disable",loading:la}),c.jsx(J,{open:La,onClose:()=>Ta(!1),onConfirm:()=>{ma(d({IsEnabled:!1})),ya(!1)},title:"Step-up Authentication",heading:"Disable Step-up Authentication",message:"Are you sure you want to disable Step-up Authentication?",type:"Disable",confirmButtonLabel:"Disable",loading:Ia})]})});export{ea as default};

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.