(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{1508:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return y}));var a=n(79),o=n.n(a),i=n(78),s=n.n(i),c=n(88),r=n.n(c),l=n(89),u=n(82),p=n(83),d=n(80),h=n(87),m=n(255),g=n(91);class y extends s.a.PureComponent{constructor(...e){super(...e),o()(this,"onOkClick",()=>{this.props.onFinished()}),o()(this,"onGoToSettingsClick",()=>{this.props.onFinished(),p.a.fire(g.a.ViewUserSettings)}),o()(this,"onSetupClick",async()=>{h.a.createTrackedDialog("Restore Backup","",m.a,{onFinished:this.props.onFinished},null,!1,!0)})}render(){const e=l.getComponent("views.dialogs.BaseDialog"),t=l.getComponent("views.elements.DialogButtons"),n=s.a.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},Object(d.a)("New Recovery Method")),a=s.a.createElement("p",null,Object(d.a)("A new Security Phrase and key for Secure Messages have been detected.")),o=s.a.createElement("p",{className:"warning"},Object(d.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 i;return i=u.a.get().getKeyBackupEnabled()?s.a.createElement("div",null,a,s.a.createElement("p",null,Object(d.a)("This session is encrypting history using the new recovery method.")),o,s.a.createElement(t,{primaryButton:Object(d.a)("OK"),onPrimaryButtonClick:this.onOkClick,cancelButton:Object(d.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})):s.a.createElement("div",null,a,o,s.a.createElement(t,{primaryButton:Object(d.a)("Set up Secure Messages"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(d.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})),s.a.createElement(e,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:n},i)}}o()(y,"propTypes",{newVersionInfo:r.a.object,onFinished:r.a.func.isRequired})}}]);
//# sourceMappingURL=29.js.map