(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{1632:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return y}));var a=n(83),i=n.n(a),o=n(82),s=n.n(o),c=n(86),r=n(87),l=n(84),u=n(90),d=n(276),p=n(92),h=n(106),m=n(97);class y extends s.a.PureComponent{constructor(){super(...arguments),i()(this,"onOkClick",()=>{this.props.onFinished()}),i()(this,"onGoToSettingsClick",()=>{this.props.onFinished(),r.a.fire(p.a.ViewUserSettings)}),i()(this,"onSetupClick",async()=>{u.a.createTrackedDialog("Restore Backup","",d.a,{onFinished:this.props.onFinished},null,!1,!0)})}render(){const e=s.a.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},Object(l.a)("New Recovery Method")),t=s.a.createElement("p",null,Object(l.a)("A new Security Phrase and key for Secure Messages have been detected.")),n=s.a.createElement("p",{className:"warning"},Object(l.a)("If you didn't set the new recovery method, an attacker may be trying to access your account. Change your account password and set a new recovery method immediately in Settings."));let a;return a=c.a.get().getKeyBackupEnabled()?s.a.createElement("div",null,t,s.a.createElement("p",null,Object(l.a)("This session is encrypting history using the new recovery method.")),n,s.a.createElement(h.a,{primaryButton:Object(l.a)("OK"),onPrimaryButtonClick:this.onOkClick,cancelButton:Object(l.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})):s.a.createElement("div",null,t,n,s.a.createElement(h.a,{primaryButton:Object(l.a)("Set up Secure Messages"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(l.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})),s.a.createElement(m.a,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:e},a)}}}}]);
//# sourceMappingURL=32.js.map