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.6 KiB
1 line
8.6 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","Promise","all","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,EAAA,CAAuCE,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,IAC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IAAA,kBACAI,SAAAnC,KAAAW,4BAMAjB,EArEA,CAsECT,EAAAQ,QAAA2C,eAED1C,EAAA2C,UAAA,CACAxB,WAAA3B,EAAAO,QAAA6C,KAAAC,YAEA/D,EAAAiB,QAAAC,EACA8C,EAAAhE,UAAA","file":"bundles/e9b8313cd5591059cfdc/14.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":""} |