"use strict";(self.webpackChunkelement_web=self.webpackChunkelement_web||[]).push([[516],{"./node_modules/matrix-react-sdk/src/async-components/views/dialogs/security/NewRecoveryMethodDialog.tsx":(e,t,s)=>{s.r(t),s.d(t,{default:()=>p});var n=s("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=s("./node_modules/react/index.js"),c=s("./node_modules/matrix-react-sdk/src/MatrixClientPeg.ts"),i=s("./node_modules/matrix-react-sdk/src/dispatcher/dispatcher.ts"),r=s("./node_modules/matrix-react-sdk/src/languageHandler.tsx"),a=s("./node_modules/matrix-react-sdk/src/Modal.tsx"),l=s("./node_modules/matrix-react-sdk/src/components/views/dialogs/security/RestoreKeyBackupDialog.tsx"),d=s("./node_modules/matrix-react-sdk/src/dispatcher/actions.ts"),m=s("./node_modules/matrix-react-sdk/src/components/views/elements/DialogButtons.tsx"),_=s("./node_modules/matrix-react-sdk/src/components/views/dialogs/BaseDialog.tsx");class p extends o.PureComponent{constructor(...e){super(...e),(0,n.c)(this,"onOkClick",(()=>{this.props.onFinished()})),(0,n.c)(this,"onGoToSettingsClick",(()=>{this.props.onFinished(),i.cp.fire(d.S.ViewUserSettings)})),(0,n.c)(this,"onSetupClick",(async()=>{a.cp.createDialog(l.c,{onFinished:this.props.onFinished},void 0,!1,!0)}))}render(){const e=o.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},(0,r._t)("encryption|new_recovery_method_detected|title")),t=o.createElement("p",null,(0,r._t)("encryption|new_recovery_method_detected|description_1")),s=o.createElement("p",{className:"warning"},(0,r._t)("encryption|new_recovery_method_detected|warning"));let n;return n=c.W.safeGet().getKeyBackupEnabled()?o.createElement("div",null,t,o.createElement("p",null,(0,r._t)("encryption|new_recovery_method_detected|description_2")),s,o.createElement(m.c,{primaryButton:(0,r._t)("action|ok"),onPrimaryButtonClick:this.onOkClick,cancelButton:(0,r._t)("common|go_to_settings"),onCancel:this.onGoToSettingsClick})):o.createElement("div",null,t,s,o.createElement(m.c,{primaryButton:(0,r._t)("common|setup_secure_messages"),onPrimaryButtonClick:this.onSetupClick,cancelButton:(0,r._t)("common|go_to_settings"),onCancel:this.onGoToSettingsClick})),o.createElement(_.c,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:e},n)}}}}]);
//# sourceMappingURL=516.js.map