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CAAC,KAAO;;AAE5B;;AAEA,gBAAgB,mBAAO,CAAC,KAAW;;AAEnC;;AAEA,uCAAuC,uCAAuC;;AAE9E;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,QAAQ;AACR,QAAQ,OAAO;AACf;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,OAAO;AACP;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;;AAEA,kBAAe","sources":["webpack://admin/./node_modules/react-confirm/lib/confirmable.js","webpack://admin/./node_modules/react-confirm/lib/index.js","webpack://admin/./node_modules/react-confirm/lib/createConfirmation.js"],"sourcesContent":["'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar confirmable = function confirmable(Component) {\n return function (_React$Component) {\n _inherits(_class, _React$Component);\n\n function _class(props) {\n _classCallCheck(this, _class);\n\n var _this = _possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).call(this, props));\n\n _this.state = {\n show: true\n };\n return _this;\n }\n\n _createClass(_class, [{\n key: 'dismiss',\n value: function dismiss() {\n var _this2 = this;\n\n this.setState({\n show: false\n }, function () {\n _this2.props.dispose();\n });\n }\n }, {\n key: 'cancel',\n value: function cancel(value) {\n var _this3 = this;\n\n this.setState({\n show: false\n }, function () {\n _this3.props.reject(value);\n });\n }\n }, {\n key: 'proceed',\n value: function proceed(value) {\n var _this4 = this;\n\n this.setState({\n show: false\n }, function () {\n _this4.props.resolve(value);\n });\n }\n }, {\n key: 'render',\n value: function render() {\n return _react2.default.createElement(Component, _extends({ proceed: this.proceed.bind(this), cancel: this.cancel.bind(this), dismiss: this.dismiss.bind(this), show: this.state.show }, this.props));\n }\n }]);\n\n return _class;\n }(_react2.default.Component);\n};\n\nexports.default = confirmable;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createConfirmation = exports.confirmable = undefined;\n\nvar _confirmable = require('./confirmable');\n\nvar _confirmable2 = _interopRequireDefault(_confirmable);\n\nvar _createConfirmation = require('./createConfirmation');\n\nvar _createConfirmation2 = _interopRequireDefault(_createConfirmation);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.confirmable = _confirmable2.default;\nexports.createConfirmation = _createConfirmation2.default;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar createConfirmation = function createConfirmation(Component) {\n var unmountDelay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1000;\n var mountingNode = arguments[2];\n\n return function (props) {\n var wrapper = (mountingNode || document.body).appendChild(document.createElement('div'));\n\n var promise = new Promise(function (resolve, reject) {\n try {\n _reactDom2.default.render(_react2.default.createElement(Component, _extends({\n reject: reject,\n resolve: resolve,\n dispose: dispose\n }, props)), wrapper);\n } catch (e) {\n console.error(e);\n throw e;\n }\n });\n\n function dispose() {\n setTimeout(function () {\n _reactDom2.default.unmountComponentAtNode(wrapper);\n setTimeout(function () {\n if (wrapper && wrapper.parentNode) {\n wrapper.parentNode.removeChild(wrapper);\n }\n });\n }, unmountDelay);\n }\n\n return promise.then(function (result) {\n dispose();\n return result;\n }, function (result) {\n dispose();\n return Promise.reject(result);\n });\n };\n};\n\nexports.default = createConfirmation;"],"names":[],"sourceRoot":""}