You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
8.5 KiB

{"version":3,"sources":["node_modules/matrix-react-sdk/lib/async-components/views/dialogs/keybackup/RecoveryMethodRemovedDialog.js"],"names":["Object","defineProperty","exports","value","_getPrototypeOf2","_interopRequireDefault","__webpack_require__","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_react2","_propTypes2","_index2","_dispatcher2","_languageHandler","_Modal2","obj","__esModule","default","RecoveryMethodRemovedDialog","_React$PureComponent","_ref","_temp","_this","_ret","this","_len","arguments","length","args","Array","_key","__proto__","call","apply","concat","onGoToSettingsClick","props","onFinished","dispatch","action","onSetupClick","createTrackedDialogAsync","e","then","t","bind","key","BaseDialog","getComponent","DialogButtons","title","createElement","className","_t","primaryButton","onPrimaryButtonClick","cancelButton","onCancel","PureComponent","propTypes","func","isRequired","module"],"mappings":"4FAEAA,OAAAC,eAAAC,EAAA,cACAC,OAAA,IAGA,IAEAC,EAAAC,EAFsBC,EAAQ,IAM9BC,EAAAF,EAFuBC,EAAQ,IAM/BE,EAAAH,EAFoBC,EAAQ,IAM5BG,EAAAJ,EAFkCC,EAAQ,IAM1CI,EAAAL,EAFiBC,EAAQ,IAMzBK,EAAAN,EAFaC,EAAQ,IAMrBM,EAAAP,EAFiBC,EAAQ,IAMzBO,EAAAR,EAFaC,EAAQ,IAMrBQ,EAAAT,EAFkBC,EAAQ,KAI1BS,EAAuBT,EAAQ,GAI/BU,EAAAX,EAFaC,EAAQ,KAIrB,SAAAD,EAAAY,GAAsC,OAAAA,KAAAC,WAAAD,GAAuCE,QAAAF,GAkB7E,IAAAG,EAAA,SAAAC,GAGA,SAAAD,IACA,IAAAE,EAEAC,EAAAC,EAAAC,GAEA,EAAAlB,EAAAY,SAAAO,KAAAN,GAEA,QAAAO,EAAAC,UAAAC,OAAAC,EAAAC,MAAAJ,GAAAK,EAAA,EAAuEA,EAAAL,EAAaK,IACpFF,EAAAE,GAAAJ,UAAAI,G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KAAAC,YAEA7D,EAAAiB,QAAAC,EACA4C,EAAA9D,UAAA","file":"bundles/23de62a7a965ffa277af/13.js","sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _getPrototypeOf = require(\"babel-runtime/core-js/object/get-prototype-of\");\n\nvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\nvar _classCallCheck2 = require(\"babel-runtime/helpers/classCallCheck\");\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require(\"babel-runtime/helpers/createClass\");\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require(\"babel-runtime/helpers/possibleConstructorReturn\");\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require(\"babel-runtime/helpers/inherits\");\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _react = require(\"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require(\"prop-types\");\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _index = require(\"../../../../index\");\n\nvar _index2 = _interopRequireDefault(_index);\n\nvar _dispatcher = require(\"../../../../dispatcher\");\n\nvar _dispatcher2 = _interopRequireDefault(_dispatcher);\n\nvar _languageHandler = require(\"../../../../languageHandler\");\n\nvar _Modal = require(\"../../../../Modal\");\n\nvar _Modal2 = _interopRequireDefault(_Modal);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/*\nCopyright 2019 New Vector Ltd\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nvar RecoveryMethodRemovedDialog = function (_React$PureComponent) {\n (0, _inherits3.default)(RecoveryMethodRemovedDialog, _React$PureComponent);\n\n function RecoveryMethodRemovedDialog() {\n var _ref;\n\n var _temp, _this, _ret;\n\n (0, _classCallCheck3.default)(this, RecoveryMethodRemovedDialog);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, (_ref = RecoveryMethodRemovedDialog.__proto__ || (0, _getPrototypeOf2.default)(RecoveryMethodRemovedDialog)).call.apply(_ref, [this].concat(args))), _this), _this.onGoToSettingsClick = function () {\n _this.props.onFinished();\n _dispatcher2.default.dispatch({ action: 'view_user_settings' });\n }, _this.onSetupClick = function () {\n _this.props.onFinished();\n _Modal2.default.createTrackedDialogAsync(\"Key Backup\", \"Key Backup\", import(\"./CreateKeyBackupDialog\"));\n }, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret);\n }\n\n (0, _createClass3.default)(RecoveryMethodRemovedDialog, [{\n key: \"render\",\n value: function render() {\n var BaseDialog = _index2.default.getComponent(\"views.dialogs.BaseDialog\");\n var DialogButtons = _index2.default.getComponent(\"views.elements.DialogButtons\");\n\n var title = _react2.default.createElement(\n \"span\",\n { className: \"mx_KeyBackupFailedDialog_title\" },\n (0, _languageHandler._t)(\"Recovery Method Removed\")\n );\n\n return _react2.default.createElement(\n BaseDialog,\n { className: \"mx_KeyBackupFailedDialog\",\n onFinished: this.props.onFinished,\n title: title\n },\n _react2.default.createElement(\n \"div\",\n null,\n _react2.default.createElement(\n \"p\",\n null,\n (0, _languageHandler._t)(\"This device has detected that your recovery passphrase and key \" + \"for Secure Messages have been removed.\")\n ),\n _react2.default.createElement(\n \"p\",\n null,\n (0, _languageHandler._t)(\"If you did this accidentally, you can setup Secure Messages on \" + \"this device which will re-encrypt this device's message \" + \"history with a new recovery method.\")\n ),\n _react2.default.createElement(\n \"p\",\n { className: \"warning\" },\n (0, _languageHandler._t)(\"If you didn't remove the recovery method, an \" + \"attacker may be trying to access your account. \" + \"Change your account password and set a new recovery \" + \"method immediately in Settings.\")\n ),\n _react2.default.createElement(DialogButtons, {\n primaryButton: (0, _languageHandler._t)(\"Set up Secure Messages\"),\n onPrimaryButtonClick: this.onSetupClick,\n cancelButton: (0, _languageHandler._t)(\"Go to Settings\"),\n onCancel: this.onGoToSettingsClick\n })\n )\n );\n }\n }]);\n return RecoveryMethodRemovedDialog;\n}(_react2.default.PureComponent);\n\nRecoveryMethodRemovedDialog.propTypes = {\n onFinished: _propTypes2.default.func.isRequired\n};\nexports.default = RecoveryMethodRemovedDialog;\nmodule.exports = exports[\"default\"];\n//# sourceMappingURL=RecoveryMethodRemovedDialog.js.map"],"sourceRoot":""}