"use strict";(self.webpackChunkelement_web=self.webpackChunkelement_web||[]).push([[6464],{"./src/async-components/views/dialogs/security/NewRecoveryMethodDialog.tsx":(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var s=n("./node_modules/react/index.js"),c=n("./src/dispatcher/dispatcher.ts"),o=n("./src/languageHandler.tsx"),i=n("./src/Modal.tsx"),a=n("./src/components/views/dialogs/security/RestoreKeyBackupDialog.tsx"),r=n("./src/dispatcher/actions.ts"),l=n("./src/components/views/elements/DialogButtons.tsx"),d=n("./src/components/views/dialogs/BaseDialog.tsx"),m=n("./src/contexts/MatrixClientContext.tsx");function _({onFinished:e}){const t=(0,m.nH)(),[n,_]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{(async()=>{const e=t.getCrypto();_(Boolean(e&&null!==await e.getActiveSessionBackupVersion()))})()}),[t]),s.createElement(d.A,{className:"mx_KeyBackupFailedDialog",onFinished:e,title:s.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},(0,o._t)("encryption|new_recovery_method_detected|title"))},s.createElement("p",null,(0,o._t)("encryption|new_recovery_method_detected|description_1")),n&&s.createElement("p",null,(0,o._t)("encryption|new_recovery_method_detected|description_2")),s.createElement("strong",{className:"warning"},(0,o._t)("encryption|new_recovery_method_detected|warning")),s.createElement(l.A,{primaryButton:(0,o._t)("common|setup_secure_messages"),onPrimaryButtonClick:function(){n?e():i.Ay.createDialog(a.A,{onFinished:e},void 0,!1,!0)},cancelButton:(0,o._t)("common|go_to_settings"),onCancel:()=>{e(),c.A.fire(r.r.ViewUserSettings)}}))}}}]);
//# sourceMappingURL=6464.js.map