(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1067:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(12),o=g(n(6)),i=g(n(4)),l=g(n(5)),u=g(n(7)),r=g(n(8)),s=g(n(0)),c=g(n(1)),d=g(n(3)),p=g(n(9)),f=g(n(13)),h=n(2),m=g(n(15));function g(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(){var e,n,l,r;(0,i.default)(this,t);for(var s=arguments.length,c=Array(s),p=0;p<s;p++)c[p]=arguments[p];return n=l=(0,u.default)(this,(e=t.__proto__||(0,o.default)(t)).call.apply(e,[this].concat(c))),l.onOkClick=function(){l.props.onFinished()},l.onGoToSettingsClick=function(){l.props.onFinished(),f.default.dispatch({action:"view_user_settings"})},l.onSetupClick=(0,a.method)(function(){var e=d.default.getComponent("dialogs.keybackup.RestoreKeyBackupDialog");m.default.createTrackedDialog("Restore Backup","",e,{onFinished:l.props.onFinished})}),r=n,(0,u.default)(l,r)}return(0,r.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=d.default.getComponent("views.dialogs.BaseDialog"),t=d.default.getComponent("views.elements.DialogButtons"),n=s.default.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},(0,h._t)("New Recovery Method")),a=s.default.createElement("p",null,(0,h._t)("A new recovery passphrase and key for Secure Messages have been detected.")),o=s.default.createElement("p",{className:"warning"},(0,h._t)("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.")),i=void 0;return i=p.default.get().getKeyBackupEnabled()?s.default.createElement("div",null,a,s.default.createElement("p",null,(0,h._t)("This device is encrypting history using the new recovery method.")),o,s.default.createElement(t,{primaryButton:(0,h._t)("OK"),onPrimaryButtonClick:this.onOkClick,cancelButton:(0,h._t)("Go to Settings"),onCancel:this.onGoToSettingsClick})):s.default.createElement("div",null,a,o,s.default.createElement(t,{primaryButton:(0,h._t)("Set up Secure Messages"),onPrimaryButtonClick:this.onSetupClick,cancelButton:(0,h._t)("Go to Settings"),onCancel:this.onGoToSettingsClick})),s.default.createElement(e,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:n},i)}}]),t}(s.default.PureComponent);y.propTypes={newVersionInfo:c.default.object,onFinished:c.default.func.isRequired},t.default=y,e.exports=t.default}}]);
//# sourceMappingURL=12.js.map