(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{1680:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return h}));var o=n(1),i=n.n(o),c=n(0),a=n.n(c),s=n(7),r=n(10),l=n(2),p=n(12),d=n(661),m=n(13),u=n(60),_=n(34);class h extends a.a.PureComponent{constructor(...e){super(...e),i()(this,"onOkClick",(()=>{this.props.onFinished()})),i()(this,"onGoToSettingsClick",(()=>{this.props.onFinished(),r.a.fire(m.a.ViewUserSettings)})),i()(this,"onSetupClick",(async()=>{p.b.createDialog(d.a,{onFinished:this.props.onFinished},void 0,!1,!0)}))}render(){const e=a.a.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},Object(l.b)("encryption|new_recovery_method_detected|title")),t=a.a.createElement("p",null,Object(l.b)("encryption|new_recovery_method_detected|description_1")),n=a.a.createElement("p",{className:"warning"},Object(l.b)("encryption|new_recovery_method_detected|warning"));let o;return o=s.a.safeGet().getKeyBackupEnabled()?a.a.createElement("div",null,t,a.a.createElement("p",null,Object(l.b)("encryption|new_recovery_method_detected|description_2")),n,a.a.createElement(u.a,{primaryButton:Object(l.b)("action|ok"),onPrimaryButtonClick:this.onOkClick,cancelButton:Object(l.b)("common|go_to_settings"),onCancel:this.onGoToSettingsClick})):a.a.createElement("div",null,t,n,a.a.createElement(u.a,{primaryButton:Object(l.b)("common|setup_secure_messages"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(l.b)("common|go_to_settings"),onCancel:this.onGoToSettingsClick})),a.a.createElement(_.a,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:e},o)}}}}]);
//# sourceMappingURL=42.js.map