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
7.6 KiB

{"version":3,"sources":["node_modules/matrix-react-sdk/lib/async-components/views/dialogs/keybackup/IgnoreRecoveryReminderDialog.js"],"names":["Object","defineProperty","exports","value","_getPrototypeOf2","_interopRequireDefault","__webpack_require__","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_react2","_propTypes2","_index2","_languageHandler","obj","__esModule","default","IgnoreRecoveryReminderDialog","_React$PureComponent","_ref","_temp","_this","_ret","this","_len","arguments","length","args","Array","_key","__proto__","call","apply","concat","onDontAskAgainClick","props","onFinished","onDontAskAgain","onSetupClick","onSetup","key","BaseDialog","getComponent","DialogButtons","createElement","className","title","_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,IAIrBQ,EAAuBR,EAAQ,GAE/B,SAAAD,EAAAU,GAAsC,OAAAA,KAAAC,WAAAD,GAAuCE,QAAAF,GAkB7E,IAAAG,EAAA,SAAAC,GAGA,SAAAD,IACA,IAAAE,EAEAC,EAAAC,EAAAC,GAEA,EAAAhB,EAAAU,SAAAO,KAAAN,GAEA,QAAAO,EAAAC,UAAAC,OAAAC,EAAAC,MAAAJ,GAAAK,EAAA,EAAuEA,EAAAL,EAAaK,IACpFF,EAAAE,GAAAJ,UAAAI,GAGA,OAAAT,EAAAC,GAAA,EAAAb,EAAAQ,SAAAO,MAAAJ,EAAAF,EAAAa,YAAA,EAAA3B,EAAAa,SAAAC,IAAAc,KAAAC,MAAAb,GAAAI,MAAAU,OAAAN,KAAAN,EAAAa,oBAAA,WACAb,EAAAc,MAAAC,aACAf,EAAAc,MAAAE,kBACShB,EAAAiB,aAAA,WACTjB,EAAAc,MAAAC,aACAf,EAAAc,MAAAI,WALAjB,EAMSF,GAAA,EAAAZ,EAAAQ,SAAAK,EAAAC,GA0CT,OA7DA,EAAAb,EAAAO,SAAAC,EAAAC,IAsBA,EAAAX,EAAAS,SAAAC,IACAuB,IAAA,SACAtC,MAAA,WACA,IAAAuC,EAAA7B,EAAAI,QAAA0B,aAAA,4BACAC,EAAA/B,EAAAI,QAAA0B,aAAA,gCAEA,OAAAhC,EAAAM,QAAA4B,cACAH,GACiBI,UAAA,kCACjBT,WAAAb,KAAAY,MAAAC,WACAU,OAAA,EAAAjC,EAAAkC,IAAA,kBAEArC,EAAAM,QAAA4B,cACA,MACA,KACAlC,EAAAM,QAAA4B,cACA,IACA,MACA,EAAA/B,EAAAkC,IAAA,0GAEArC,EAAAM,QAAA4B,cACA,IACA,MACA,EAAA/B,EAAAkC,IAAA,qEAEArC,EAAAM,QAAA4B,cACA,OACyBC,UAAA,qBACzBnC,EAAAM,QAAA4B,cAAAD,GACAK,eAAA,EAAAnC,EAAAkC,IAAA,UACAE,qBAAA1B,KAAAe,aACAY,cAAA,EAAArC,EAAAkC,IAAA,mBACAI,SAAA5B,KAAAW,6BAOAjB,EA9DA,CA+DCP,EAAAM,QAAAoC,eAEDnC,EAAAoC,WACAhB,eAAA1B,EAAAK,QAAAsC,KAAAC,WACAnB,WAAAzB,EAAAK,QAAAsC,KAAAC,WACAhB,QAAA5B,EAAAK,QAAAsC,KAAAC,YAEAtD,EAAAe,QAAAC,EACAuC,EAAAvD,UAAA","file":"bundles/23de62a7a965ffa277af/11.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 _languageHandler = require(\"../../../../languageHandler\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/*\nCopyright 2018 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 IgnoreRecoveryReminderDialog = function (_React$PureComponent) {\n (0, _inherits3.default)(IgnoreRecoveryReminderDialog, _React$PureComponent);\n\n function IgnoreRecoveryReminderDialog() {\n var _ref;\n\n var _temp, _this, _ret;\n\n (0, _classCallCheck3.default)(this, IgnoreRecoveryReminderDialog);\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 = IgnoreRecoveryReminderDialog.__proto__ || (0, _getPrototypeOf2.default)(IgnoreRecoveryReminderDialog)).call.apply(_ref, [this].concat(args))), _this), _this.onDontAskAgainClick = function () {\n _this.props.onFinished();\n _this.props.onDontAskAgain();\n }, _this.onSetupClick = function () {\n _this.props.onFinished();\n _this.props.onSetup();\n }, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret);\n }\n\n (0, _createClass3.default)(IgnoreRecoveryReminderDialog, [{\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 return _react2.default.createElement(\n BaseDialog,\n { className: \"mx_IgnoreRecoveryReminderDialog\",\n onFinished: this.props.onFinished,\n title: (0, _languageHandler._t)(\"Are you sure?\")\n },\n _react2.default.createElement(\n \"div\",\n null,\n _react2.default.createElement(\n \"p\",\n null,\n (0, _languageHandler._t)(\"Without setting up Secure Message Recovery, \" + \"you'll lose your secure message history when you \" + \"log out.\")\n ),\n _react2.default.createElement(\n \"p\",\n null,\n (0, _languageHandler._t)(\"If you don't want to set this up now, you can later \" + \"in Settings.\")\n ),\n _react2.default.createElement(\n \"div\",\n { className: \"mx_Dialog_buttons\" },\n _react2.default.createElement(DialogButtons, {\n primaryButton: (0, _languageHandler._t)(\"Set up\"),\n onPrimaryButtonClick: this.onSetupClick,\n cancelButton: (0, _languageHandler._t)(\"Don't ask again\"),\n onCancel: this.onDontAskAgainClick\n })\n )\n )\n );\n }\n }]);\n return IgnoreRecoveryReminderDialog;\n}(_react2.default.PureComponent);\n\nIgnoreRecoveryReminderDialog.propTypes = {\n onDontAskAgain: _propTypes2.default.func.isRequired,\n onFinished: _propTypes2.default.func.isRequired,\n onSetup: _propTypes2.default.func.isRequired\n};\nexports.default = IgnoreRecoveryReminderDialog;\nmodule.exports = exports[\"default\"];\n//# sourceMappingURL=IgnoreRecoveryReminderDialog.js.map"],"sourceRoot":""}