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