| @@ -1,4 +1,5 @@ | ||
| 1 | +/*! elementor - v3.9.2 - 21-12-2022 */ | |
| 1 | 2 | /******/ (() => { // webpackBootstrap |
| 2 | 3 | /******/ var __webpack_modules__ = ({ |
| 3 | 4 | |
| 4 | 5 | /***/ "../modules/kit-elements-defaults/assets/js/editor/api.js": |
| @@ -24,17 +25,19 @@ | ||
| 24 | 25 | function loadElementsDefaults() { |
| 25 | 26 | return _loadElementsDefaults.apply(this, arguments); |
| 26 | 27 | } |
| 27 | 28 | function _loadElementsDefaults() { |
| 28 | - _loadElementsDefaults = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 29 | - return _regenerator.default.wrap(function (_context) { | |
| 30 | - while (1) switch (_context.prev = _context.next) { | |
| 31 | - case 0: | |
| 32 | - $e.data.cache.storage.removeItem(NAMESPACE); | |
| 33 | - return _context.abrupt("return", $e.data.get("".concat(NAMESPACE, "/index"))); | |
| 34 | - case 1: | |
| 35 | - case "end": | |
| 36 | - return _context.stop(); | |
| 29 | + _loadElementsDefaults = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 30 | + return _regenerator.default.wrap(function _callee$(_context) { | |
| 31 | + while (1) { | |
| 32 | + switch (_context.prev = _context.next) { | |
| 33 | + case 0: | |
| 34 | + $e.data.cache.storage.removeItem(NAMESPACE); | |
| 35 | + return _context.abrupt("return", $e.data.get("".concat(NAMESPACE, "/index"))); | |
| 36 | + case 2: | |
| 37 | + case "end": | |
| 38 | + return _context.stop(); | |
| 39 | + } | |
| 37 | 40 | } |
| 38 | 41 | }, _callee); |
| 39 | 42 | })); |
| 40 | 43 | return _loadElementsDefaults.apply(this, arguments); |
| @@ -46,24 +49,26 @@ | ||
| 46 | 49 | function updateElementDefaults(_x, _x2) { |
| 47 | 50 | return _updateElementDefaults.apply(this, arguments); |
| 48 | 51 | } |
| 49 | 52 | function _updateElementDefaults() { |
| 50 | - _updateElementDefaults = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(type, settings) { | |
| 51 | - return _regenerator.default.wrap(function (_context2) { | |
| 52 | - while (1) switch (_context2.prev = _context2.next) { | |
| 53 | - case 0: | |
| 54 | - _context2.next = 1; | |
| 55 | - return $e.data.update("".concat(NAMESPACE, "/index"), { | |
| 56 | - settings: settings | |
| 57 | - }, { | |
| 58 | - type: type | |
| 59 | - }); | |
| 60 | - case 1: | |
| 61 | - _context2.next = 2; | |
| 62 | - return loadElementsDefaults(); | |
| 63 | - case 2: | |
| 64 | - case "end": | |
| 65 | - return _context2.stop(); | |
| 53 | + _updateElementDefaults = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(type, settings) { | |
| 54 | + return _regenerator.default.wrap(function _callee2$(_context2) { | |
| 55 | + while (1) { | |
| 56 | + switch (_context2.prev = _context2.next) { | |
| 57 | + case 0: | |
| 58 | + _context2.next = 2; | |
| 59 | + return $e.data.update("".concat(NAMESPACE, "/index"), { | |
| 60 | + settings: settings | |
| 61 | + }, { | |
| 62 | + type: type | |
| 63 | + }); | |
| 64 | + case 2: | |
| 65 | + _context2.next = 4; | |
| 66 | + return loadElementsDefaults(); | |
| 67 | + case 4: | |
| 68 | + case "end": | |
| 69 | + return _context2.stop(); | |
| 70 | + } | |
| 66 | 71 | } |
| 67 | 72 | }, _callee2); |
| 68 | 73 | })); |
| 69 | 74 | return _updateElementDefaults.apply(this, arguments); |
| @@ -71,22 +76,24 @@ | ||
| 71 | 76 | function deleteElementDefaults(_x3) { |
| 72 | 77 | return _deleteElementDefaults.apply(this, arguments); |
| 73 | 78 | } |
| 74 | 79 | function _deleteElementDefaults() { |
| 75 | - _deleteElementDefaults = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(type) { | |
| 76 | - return _regenerator.default.wrap(function (_context3) { | |
| 77 | - while (1) switch (_context3.prev = _context3.next) { | |
| 78 | - case 0: | |
| 79 | - _context3.next = 1; | |
| 80 | - return $e.data.delete("".concat(NAMESPACE, "/index"), { | |
| 81 | - type: type | |
| 82 | - }); | |
| 83 | - case 1: | |
| 84 | - _context3.next = 2; | |
| 85 | - return loadElementsDefaults(); | |
| 86 | - case 2: | |
| 87 | - case "end": | |
| 88 | - return _context3.stop(); | |
| 80 | + _deleteElementDefaults = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(type) { | |
| 81 | + return _regenerator.default.wrap(function _callee3$(_context3) { | |
| 82 | + while (1) { | |
| 83 | + switch (_context3.prev = _context3.next) { | |
| 84 | + case 0: | |
| 85 | + _context3.next = 2; | |
| 86 | + return $e.data.delete("".concat(NAMESPACE, "/index"), { | |
| 87 | + type: type | |
| 88 | + }); | |
| 89 | + case 2: | |
| 90 | + _context3.next = 4; | |
| 91 | + return loadElementsDefaults(); | |
| 92 | + case 4: | |
| 93 | + case "end": | |
| 94 | + return _context3.stop(); | |
| 95 | + } | |
| 89 | 96 | } |
| 90 | 97 | }, _callee3); |
| 91 | 98 | })); |
| 92 | 99 | return _deleteElementDefaults.apply(this, arguments); |
| @@ -111,21 +118,22 @@ | ||
| 111 | 118 | var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); |
| 112 | 119 | var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); |
| 113 | 120 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 114 | 121 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 122 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 115 | 123 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 116 | 124 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 117 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 118 | 125 | var _confirmCreationDialog = __webpack_require__(/*! ../confirm-creation-dialog */ "../modules/kit-elements-defaults/assets/js/editor/confirm-creation-dialog.js"); |
| 119 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 120 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 121 | -var ConfirmCreation = exports["default"] = /*#__PURE__*/function (_$e$modules$editor$Co) { | |
| 126 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 127 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 128 | +var ConfirmCreation = /*#__PURE__*/function (_$e$modules$editor$Co) { | |
| 129 | + (0, _inherits2.default)(ConfirmCreation, _$e$modules$editor$Co); | |
| 130 | + var _super = _createSuper(ConfirmCreation); | |
| 122 | 131 | function ConfirmCreation() { |
| 123 | 132 | (0, _classCallCheck2.default)(this, ConfirmCreation); |
| 124 | - return _callSuper(this, ConfirmCreation, arguments); | |
| 133 | + return _super.apply(this, arguments); | |
| 125 | 134 | } |
| 126 | - (0, _inherits2.default)(ConfirmCreation, _$e$modules$editor$Co); | |
| 127 | - return (0, _createClass2.default)(ConfirmCreation, [{ | |
| 135 | + (0, _createClass2.default)(ConfirmCreation, [{ | |
| 128 | 136 | key: "validateArgs", |
| 129 | 137 | value: function validateArgs() { |
| 130 | 138 | this.requireContainer(); |
| 131 | 139 | } |
| @@ -131,34 +139,36 @@ | ||
| 131 | 139 | } |
| 132 | 140 | }, { |
| 133 | 141 | key: "apply", |
| 134 | 142 | value: function () { |
| 135 | - var _apply = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(_ref) { | |
| 143 | + var _apply = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_ref) { | |
| 136 | 144 | var container, confirmCreationDialog; |
| 137 | - return _regenerator.default.wrap(function (_context) { | |
| 138 | - while (1) switch (_context.prev = _context.next) { | |
| 139 | - case 0: | |
| 140 | - container = _ref.container; | |
| 141 | - confirmCreationDialog = (0, _confirmCreationDialog.getConfirmCreationDialog)({ | |
| 142 | - onConfirm: function onConfirm() { | |
| 143 | - return $e.run('kit-elements-defaults/create', { | |
| 144 | - container: container | |
| 145 | - }); | |
| 145 | + return _regenerator.default.wrap(function _callee$(_context) { | |
| 146 | + while (1) { | |
| 147 | + switch (_context.prev = _context.next) { | |
| 148 | + case 0: | |
| 149 | + container = _ref.container; | |
| 150 | + confirmCreationDialog = (0, _confirmCreationDialog.getConfirmCreationDialog)({ | |
| 151 | + onConfirm: function onConfirm() { | |
| 152 | + return $e.run('kit-elements-defaults/create', { | |
| 153 | + container: container | |
| 154 | + }); | |
| 155 | + } | |
| 156 | + }); | |
| 157 | + if (!confirmCreationDialog.doNotShowAgain) { | |
| 158 | + _context.next = 5; | |
| 159 | + break; | |
| 146 | 160 | } |
| 147 | - }); | |
| 148 | - if (!confirmCreationDialog.doNotShowAgain) { | |
| 149 | - _context.next = 1; | |
| 150 | - break; | |
| 151 | - } | |
| 152 | - $e.run('kit-elements-defaults/create', { | |
| 153 | - container: container | |
| 154 | - }); | |
| 155 | - return _context.abrupt("return"); | |
| 156 | - case 1: | |
| 157 | - confirmCreationDialog.show(); | |
| 158 | - case 2: | |
| 159 | - case "end": | |
| 160 | - return _context.stop(); | |
| 161 | + $e.run('kit-elements-defaults/create', { | |
| 162 | + container: container | |
| 163 | + }); | |
| 164 | + return _context.abrupt("return"); | |
| 165 | + case 5: | |
| 166 | + confirmCreationDialog.show(); | |
| 167 | + case 6: | |
| 168 | + case "end": | |
| 169 | + return _context.stop(); | |
| 170 | + } | |
| 161 | 171 | } |
| 162 | 172 | }, _callee); |
| 163 | 173 | })); |
| 164 | 174 | function apply(_x) { |
| @@ -166,9 +176,11 @@ | ||
| 166 | 176 | } |
| 167 | 177 | return apply; |
| 168 | 178 | }() |
| 169 | 179 | }]); |
| 180 | + return ConfirmCreation; | |
| 170 | 181 | }($e.modules.editor.CommandContainerBase); |
| 182 | +exports["default"] = ConfirmCreation; | |
| 171 | 183 | |
| 172 | 184 | /***/ }), |
| 173 | 185 | |
| 174 | 186 | /***/ "../modules/kit-elements-defaults/assets/js/editor/commands/create.js": |
| @@ -189,23 +201,24 @@ | ||
| 189 | 201 | var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); |
| 190 | 202 | var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); |
| 191 | 203 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 192 | 204 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 205 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 193 | 206 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 194 | 207 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 195 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 196 | 208 | var _api = __webpack_require__(/*! ../api */ "../modules/kit-elements-defaults/assets/js/editor/api.js"); |
| 197 | 209 | var _extractContainerSettings = _interopRequireDefault(__webpack_require__(/*! ../extract-container-settings */ "../modules/kit-elements-defaults/assets/js/editor/extract-container-settings.js")); |
| 198 | 210 | var _utils = __webpack_require__(/*! ../utils */ "../modules/kit-elements-defaults/assets/js/editor/utils.js"); |
| 199 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 200 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 201 | -var Create = exports["default"] = /*#__PURE__*/function (_$e$modules$editor$Co) { | |
| 211 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 212 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 213 | +var Create = /*#__PURE__*/function (_$e$modules$editor$Co) { | |
| 214 | + (0, _inherits2.default)(Create, _$e$modules$editor$Co); | |
| 215 | + var _super = _createSuper(Create); | |
| 202 | 216 | function Create() { |
| 203 | 217 | (0, _classCallCheck2.default)(this, Create); |
| 204 | - return _callSuper(this, Create, arguments); | |
| 218 | + return _super.apply(this, arguments); | |
| 205 | 219 | } |
| 206 | - (0, _inherits2.default)(Create, _$e$modules$editor$Co); | |
| 207 | - return (0, _createClass2.default)(Create, [{ | |
| 220 | + (0, _createClass2.default)(Create, [{ | |
| 208 | 221 | key: "validateArgs", |
| 209 | 222 | value: function validateArgs() { |
| 210 | 223 | this.requireContainer(); |
| 211 | 224 | } |
| @@ -211,51 +224,43 @@ | ||
| 211 | 224 | } |
| 212 | 225 | }, { |
| 213 | 226 | key: "apply", |
| 214 | 227 | value: function () { |
| 215 | - var _apply = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(_ref) { | |
| 216 | - var container, type, previousDefaults, newDefaults, _t; | |
| 217 | - return _regenerator.default.wrap(function (_context) { | |
| 218 | - while (1) switch (_context.prev = _context.next) { | |
| 219 | - case 0: | |
| 220 | - container = _ref.container; | |
| 221 | - $e.internal('panel/state-loading'); | |
| 222 | - type = (0, _utils.extractElementType)(container.model), previousDefaults = (0, _api.getElementDefaults)(type), newDefaults = (0, _extractContainerSettings.default)(container); | |
| 223 | - _context.prev = 1; | |
| 224 | - _context.next = 2; | |
| 225 | - return (0, _api.updateElementDefaults)(type, newDefaults); | |
| 226 | - case 2: | |
| 227 | - elementor.notifications.showToast({ | |
| 228 | - message: __('Default settings changed.', 'elementor'), | |
| 229 | - buttons: [{ | |
| 230 | - name: 'undo', | |
| 231 | - text: __('Undo', 'elementor'), | |
| 232 | - callback: function callback() { | |
| 233 | - $e.run('kit-elements-defaults/restore', { | |
| 234 | - type: type, | |
| 235 | - settings: previousDefaults | |
| 236 | - }); | |
| 237 | - } | |
| 238 | - }] | |
| 239 | - }); | |
| 240 | - _context.next = 4; | |
| 241 | - break; | |
| 242 | - case 3: | |
| 243 | - _context.prev = 3; | |
| 244 | - _t = _context["catch"](1); | |
| 245 | - elementor.notifications.showToast({ | |
| 246 | - message: __('An error occurred.', 'elementor') | |
| 247 | - }); | |
| 248 | - throw _t; | |
| 249 | - case 4: | |
| 250 | - _context.prev = 4; | |
| 251 | - $e.internal('panel/state-ready'); | |
| 252 | - return _context.finish(4); | |
| 253 | - case 5: | |
| 254 | - case "end": | |
| 255 | - return _context.stop(); | |
| 228 | + var _apply = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_ref) { | |
| 229 | + var container, settings; | |
| 230 | + return _regenerator.default.wrap(function _callee$(_context) { | |
| 231 | + while (1) { | |
| 232 | + switch (_context.prev = _context.next) { | |
| 233 | + case 0: | |
| 234 | + container = _ref.container; | |
| 235 | + $e.internal('panel/state-loading'); | |
| 236 | + settings = (0, _extractContainerSettings.default)(container); | |
| 237 | + _context.prev = 3; | |
| 238 | + _context.next = 6; | |
| 239 | + return (0, _api.updateElementDefaults)((0, _utils.extractElementType)(container.model), settings); | |
| 240 | + case 6: | |
| 241 | + elementor.notifications.showToast({ | |
| 242 | + message: __('Default settings changed.', 'elementor') | |
| 243 | + }); | |
| 244 | + _context.next = 13; | |
| 245 | + break; | |
| 246 | + case 9: | |
| 247 | + _context.prev = 9; | |
| 248 | + _context.t0 = _context["catch"](3); | |
| 249 | + elementor.notifications.showToast({ | |
| 250 | + message: __('An error occurred.', 'elementor') | |
| 251 | + }); | |
| 252 | + throw _context.t0; | |
| 253 | + case 13: | |
| 254 | + _context.prev = 13; | |
| 255 | + $e.internal('panel/state-ready'); | |
| 256 | + return _context.finish(13); | |
| 257 | + case 16: | |
| 258 | + case "end": | |
| 259 | + return _context.stop(); | |
| 260 | + } | |
| 256 | 261 | } |
| 257 | - }, _callee, null, [[1, 3, 4, 5]]); | |
| 262 | + }, _callee, null, [[3, 9, 13, 16]]); | |
| 258 | 263 | })); |
| 259 | 264 | function apply(_x) { |
| 260 | 265 | return _apply.apply(this, arguments); |
| 261 | 266 | } |
| @@ -261,9 +266,11 @@ | ||
| 261 | 266 | } |
| 262 | 267 | return apply; |
| 263 | 268 | }() |
| 264 | 269 | }]); |
| 270 | + return Create; | |
| 265 | 271 | }($e.modules.editor.CommandContainerBase); |
| 272 | +exports["default"] = Create; | |
| 266 | 273 | |
| 267 | 274 | /***/ }), |
| 268 | 275 | |
| 269 | 276 | /***/ "../modules/kit-elements-defaults/assets/js/editor/commands/delete.js": |
| @@ -284,55 +291,58 @@ | ||
| 284 | 291 | var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); |
| 285 | 292 | var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); |
| 286 | 293 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 287 | 294 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 295 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 288 | 296 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 289 | 297 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 290 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 291 | 298 | var _api = __webpack_require__(/*! ../api */ "../modules/kit-elements-defaults/assets/js/editor/api.js"); |
| 292 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 293 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 294 | -var Delete = exports["default"] = /*#__PURE__*/function (_$e$modules$CommandBa) { | |
| 299 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 300 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 301 | +var Delete = /*#__PURE__*/function (_$e$modules$CommandBa) { | |
| 302 | + (0, _inherits2.default)(Delete, _$e$modules$CommandBa); | |
| 303 | + var _super = _createSuper(Delete); | |
| 295 | 304 | function Delete() { |
| 296 | 305 | (0, _classCallCheck2.default)(this, Delete); |
| 297 | - return _callSuper(this, Delete, arguments); | |
| 306 | + return _super.apply(this, arguments); | |
| 298 | 307 | } |
| 299 | - (0, _inherits2.default)(Delete, _$e$modules$CommandBa); | |
| 300 | - return (0, _createClass2.default)(Delete, [{ | |
| 308 | + (0, _createClass2.default)(Delete, [{ | |
| 301 | 309 | key: "apply", |
| 302 | 310 | value: function () { |
| 303 | - var _apply = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(_ref) { | |
| 304 | - var type, _t; | |
| 305 | - return _regenerator.default.wrap(function (_context) { | |
| 306 | - while (1) switch (_context.prev = _context.next) { | |
| 307 | - case 0: | |
| 308 | - type = _ref.type; | |
| 309 | - $e.internal('panel/state-loading'); | |
| 310 | - _context.prev = 1; | |
| 311 | - _context.next = 2; | |
| 312 | - return (0, _api.deleteElementDefaults)(type); | |
| 313 | - case 2: | |
| 314 | - elementor.notifications.showToast({ | |
| 315 | - message: __('Default settings has been reset.', 'elementor') | |
| 316 | - }); | |
| 317 | - _context.next = 4; | |
| 318 | - break; | |
| 319 | - case 3: | |
| 320 | - _context.prev = 3; | |
| 321 | - _t = _context["catch"](1); | |
| 322 | - elementor.notifications.showToast({ | |
| 323 | - message: __('An error occurred.', 'elementor') | |
| 324 | - }); | |
| 325 | - throw _t; | |
| 326 | - case 4: | |
| 327 | - _context.prev = 4; | |
| 328 | - $e.internal('panel/state-ready'); | |
| 329 | - return _context.finish(4); | |
| 330 | - case 5: | |
| 331 | - case "end": | |
| 332 | - return _context.stop(); | |
| 311 | + var _apply = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_ref) { | |
| 312 | + var type; | |
| 313 | + return _regenerator.default.wrap(function _callee$(_context) { | |
| 314 | + while (1) { | |
| 315 | + switch (_context.prev = _context.next) { | |
| 316 | + case 0: | |
| 317 | + type = _ref.type; | |
| 318 | + $e.internal('panel/state-loading'); | |
| 319 | + _context.prev = 2; | |
| 320 | + _context.next = 5; | |
| 321 | + return (0, _api.deleteElementDefaults)(type); | |
| 322 | + case 5: | |
| 323 | + elementor.notifications.showToast({ | |
| 324 | + message: __('Default settings has been reset.', 'elementor') | |
| 325 | + }); | |
| 326 | + _context.next = 12; | |
| 327 | + break; | |
| 328 | + case 8: | |
| 329 | + _context.prev = 8; | |
| 330 | + _context.t0 = _context["catch"](2); | |
| 331 | + elementor.notifications.showToast({ | |
| 332 | + message: __('An error occurred.', 'elementor') | |
| 333 | + }); | |
| 334 | + throw error; | |
| 335 | + case 12: | |
| 336 | + _context.prev = 12; | |
| 337 | + $e.internal('panel/state-ready'); | |
| 338 | + return _context.finish(12); | |
| 339 | + case 15: | |
| 340 | + case "end": | |
| 341 | + return _context.stop(); | |
| 342 | + } | |
| 333 | 343 | } |
| 334 | - }, _callee, null, [[1, 3, 4, 5]]); | |
| 344 | + }, _callee, null, [[2, 8, 12, 15]]); | |
| 335 | 345 | })); |
| 336 | 346 | function apply(_x) { |
| 337 | 347 | return _apply.apply(this, arguments); |
| 338 | 348 | } |
| @@ -338,9 +348,11 @@ | ||
| 338 | 348 | } |
| 339 | 349 | return apply; |
| 340 | 350 | }() |
| 341 | 351 | }]); |
| 352 | + return Delete; | |
| 342 | 353 | }($e.modules.CommandBase); |
| 354 | +exports["default"] = Delete; | |
| 343 | 355 | |
| 344 | 356 | /***/ }), |
| 345 | 357 | |
| 346 | 358 | /***/ "../modules/kit-elements-defaults/assets/js/editor/commands/index.js": |
| @@ -373,98 +385,14 @@ | ||
| 373 | 385 | get: function get() { |
| 374 | 386 | return _delete.default; |
| 375 | 387 | } |
| 376 | 388 | })); |
| 377 | -Object.defineProperty(exports, "Restore", ({ | |
| 378 | - enumerable: true, | |
| 379 | - get: function get() { | |
| 380 | - return _restore.default; | |
| 381 | - } | |
| 382 | -})); | |
| 383 | 389 | var _confirmCreation = _interopRequireDefault(__webpack_require__(/*! ./confirm-creation */ "../modules/kit-elements-defaults/assets/js/editor/commands/confirm-creation.js")); |
| 384 | 390 | var _create = _interopRequireDefault(__webpack_require__(/*! ./create */ "../modules/kit-elements-defaults/assets/js/editor/commands/create.js")); |
| 385 | 391 | var _delete = _interopRequireDefault(__webpack_require__(/*! ./delete */ "../modules/kit-elements-defaults/assets/js/editor/commands/delete.js")); |
| 386 | -var _restore = _interopRequireDefault(__webpack_require__(/*! ./restore */ "../modules/kit-elements-defaults/assets/js/editor/commands/restore.js")); | |
| 387 | 392 | |
| 388 | 393 | /***/ }), |
| 389 | 394 | |
| 390 | -/***/ "../modules/kit-elements-defaults/assets/js/editor/commands/restore.js": | |
| 391 | -/*!*****************************************************************************!*\ | |
| 392 | - !*** ../modules/kit-elements-defaults/assets/js/editor/commands/restore.js ***! | |
| 393 | - \*****************************************************************************/ | |
| 394 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 395 | - | |
| 396 | -"use strict"; | |
| 397 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 398 | - | |
| 399 | - | |
| 400 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 401 | -Object.defineProperty(exports, "__esModule", ({ | |
| 402 | - value: true | |
| 403 | -})); | |
| 404 | -exports["default"] = void 0; | |
| 405 | -var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 406 | -var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); | |
| 407 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 408 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 409 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 410 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 411 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 412 | -var _api = __webpack_require__(/*! ../api */ "../modules/kit-elements-defaults/assets/js/editor/api.js"); | |
| 413 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 414 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 415 | -var Restore = exports["default"] = /*#__PURE__*/function (_$e$modules$CommandBa) { | |
| 416 | - function Restore() { | |
| 417 | - (0, _classCallCheck2.default)(this, Restore); | |
| 418 | - return _callSuper(this, Restore, arguments); | |
| 419 | - } | |
| 420 | - (0, _inherits2.default)(Restore, _$e$modules$CommandBa); | |
| 421 | - return (0, _createClass2.default)(Restore, [{ | |
| 422 | - key: "apply", | |
| 423 | - value: function () { | |
| 424 | - var _apply = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(_ref) { | |
| 425 | - var type, settings, _t; | |
| 426 | - return _regenerator.default.wrap(function (_context) { | |
| 427 | - while (1) switch (_context.prev = _context.next) { | |
| 428 | - case 0: | |
| 429 | - type = _ref.type, settings = _ref.settings; | |
| 430 | - $e.internal('panel/state-loading'); | |
| 431 | - _context.prev = 1; | |
| 432 | - _context.next = 2; | |
| 433 | - return (0, _api.updateElementDefaults)(type, settings); | |
| 434 | - case 2: | |
| 435 | - elementor.notifications.showToast({ | |
| 436 | - message: __('Previous settings restored.', 'elementor') | |
| 437 | - }); | |
| 438 | - _context.next = 4; | |
| 439 | - break; | |
| 440 | - case 3: | |
| 441 | - _context.prev = 3; | |
| 442 | - _t = _context["catch"](1); | |
| 443 | - elementor.notifications.showToast({ | |
| 444 | - message: __('An error occurred.', 'elementor') | |
| 445 | - }); | |
| 446 | - throw _t; | |
| 447 | - case 4: | |
| 448 | - _context.prev = 4; | |
| 449 | - $e.internal('panel/state-ready'); | |
| 450 | - return _context.finish(4); | |
| 451 | - case 5: | |
| 452 | - case "end": | |
| 453 | - return _context.stop(); | |
| 454 | - } | |
| 455 | - }, _callee, null, [[1, 3, 4, 5]]); | |
| 456 | - })); | |
| 457 | - function apply(_x) { | |
| 458 | - return _apply.apply(this, arguments); | |
| 459 | - } | |
| 460 | - return apply; | |
| 461 | - }() | |
| 462 | - }]); | |
| 463 | -}($e.modules.CommandBase); | |
| 464 | - | |
| 465 | -/***/ }), | |
| 466 | - | |
| 467 | 395 | /***/ "../modules/kit-elements-defaults/assets/js/editor/component.js": |
| 468 | 396 | /*!**********************************************************************!*\ |
| 469 | 397 | !*** ../modules/kit-elements-defaults/assets/js/editor/component.js ***! |
| 470 | 398 | \**********************************************************************/ |
| @@ -480,24 +408,26 @@ | ||
| 480 | 408 | })); |
| 481 | 409 | exports["default"] = void 0; |
| 482 | 410 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 483 | 411 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 412 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 484 | 413 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 485 | 414 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 486 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 487 | 415 | var hooks = _interopRequireWildcard(__webpack_require__(/*! ./hooks */ "../modules/kit-elements-defaults/assets/js/editor/hooks/index.js")); |
| 488 | 416 | var dataCommands = _interopRequireWildcard(__webpack_require__(/*! ./data-commands/ */ "../modules/kit-elements-defaults/assets/js/editor/data-commands/index.js")); |
| 489 | 417 | var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../modules/kit-elements-defaults/assets/js/editor/commands/index.js")); |
| 490 | -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } | |
| 491 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 492 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 493 | -var Component = exports["default"] = /*#__PURE__*/function (_$e$modules$Component) { | |
| 418 | +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | |
| 419 | +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | |
| 420 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 421 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 422 | +var Component = /*#__PURE__*/function (_$e$modules$Component) { | |
| 423 | + (0, _inherits2.default)(Component, _$e$modules$Component); | |
| 424 | + var _super = _createSuper(Component); | |
| 494 | 425 | function Component() { |
| 495 | 426 | (0, _classCallCheck2.default)(this, Component); |
| 496 | - return _callSuper(this, Component, arguments); | |
| 427 | + return _super.apply(this, arguments); | |
| 497 | 428 | } |
| 498 | - (0, _inherits2.default)(Component, _$e$modules$Component); | |
| 499 | - return (0, _createClass2.default)(Component, [{ | |
| 429 | + (0, _createClass2.default)(Component, [{ | |
| 500 | 430 | key: "getNamespace", |
| 501 | 431 | value: function getNamespace() { |
| 502 | 432 | return 'kit-elements-defaults'; |
| 503 | 433 | } |
| @@ -516,9 +446,11 @@ | ||
| 516 | 446 | value: function defaultCommands() { |
| 517 | 447 | return this.importCommands(commands); |
| 518 | 448 | } |
| 519 | 449 | }]); |
| 450 | + return Component; | |
| 520 | 451 | }($e.modules.ComponentBase); |
| 452 | +exports["default"] = Component; | |
| 521 | 453 | |
| 522 | 454 | /***/ }), |
| 523 | 455 | |
| 524 | 456 | /***/ "../modules/kit-elements-defaults/assets/js/editor/confirm-creation-dialog.js": |
| @@ -536,10 +468,11 @@ | ||
| 536 | 468 | })); |
| 537 | 469 | exports.getConfirmCreationDialog = getConfirmCreationDialog; |
| 538 | 470 | exports.introductionManager = exports.introductionKey = void 0; |
| 539 | 471 | exports.removeConfirmCreationDialog = removeConfirmCreationDialog; |
| 540 | -var introductionKey = exports.introductionKey = 'kit_elements_defaults_create_dialog'; | |
| 541 | -var introductionManager = exports.introductionManager = null; | |
| 472 | +var introductionKey = 'kit_elements_defaults_create_dialog'; | |
| 473 | +exports.introductionKey = introductionKey; | |
| 474 | +var introductionManager = null; | |
| 542 | 475 | |
| 543 | 476 | /** |
| 544 | 477 | * A wrapper around Introduction class that allows to create a dialog only once, |
| 545 | 478 | * + has specific logic for the "Do not show this message again" checkbox, |
| @@ -548,8 +481,9 @@ | ||
| 548 | 481 | * @param {Object} config |
| 549 | 482 | * @param {Function} config.onConfirm |
| 550 | 483 | * @return {{show: (function(): *), doNotShowAgain: (boolean)}} |
| 551 | 484 | */ |
| 485 | +exports.introductionManager = introductionManager; | |
| 552 | 486 | function getConfirmCreationDialog(_ref) { |
| 553 | 487 | var onConfirm = _ref.onConfirm; |
| 554 | 488 | if (!introductionManager) { |
| 555 | 489 | var _elementor$config$use; |
| @@ -597,9 +531,9 @@ | ||
| 597 | 531 | cancel: __('Cancel', 'elementor') |
| 598 | 532 | }, |
| 599 | 533 | onShow: function onShow() { |
| 600 | 534 | var _this$getElements; |
| 601 | - (_this$getElements = this.getElements('checkbox-dont-show-again')) === null || _this$getElements === void 0 || _this$getElements.prop('checked', true); | |
| 535 | + (_this$getElements = this.getElements('checkbox-dont-show-again')) === null || _this$getElements === void 0 ? void 0 : _this$getElements.prop('checked', true); | |
| 602 | 536 | } |
| 603 | 537 | } |
| 604 | 538 | }); |
| 605 | 539 | var _createCheckboxAndLab = createCheckboxAndLabel(dialogId), |
| @@ -605,9 +539,9 @@ | ||
| 605 | 539 | var _createCheckboxAndLab = createCheckboxAndLabel(dialogId), |
| 606 | 540 | checkbox = _createCheckboxAndLab.checkbox, |
| 607 | 541 | label = _createCheckboxAndLab.label; |
| 608 | 542 | introduction.getDialog().addElement('checkbox-dont-show-again', checkbox); |
| 609 | - (_introduction$getDial = introduction.getDialog().getElements('message')) === null || _introduction$getDial === void 0 || (_introduction$getDial2 = _introduction$getDial.append) === null || _introduction$getDial2 === void 0 || _introduction$getDial2.call(_introduction$getDial, label); // `getElements` return JQuery object. | |
| 543 | + (_introduction$getDial = introduction.getDialog().getElements('message')) === null || _introduction$getDial === void 0 ? void 0 : (_introduction$getDial2 = _introduction$getDial.append) === null || _introduction$getDial2 === void 0 ? void 0 : _introduction$getDial2.call(_introduction$getDial, label); // `getElements` return JQuery object. | |
| 610 | 544 | |
| 611 | 545 | return introduction; |
| 612 | 546 | } |
| 613 | 547 | function createCheckboxAndLabel(dialogId) { |
| @@ -644,26 +578,29 @@ | ||
| 644 | 578 | })); |
| 645 | 579 | exports.Index = void 0; |
| 646 | 580 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 647 | 581 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 582 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 648 | 583 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 649 | 584 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 650 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 651 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 652 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 653 | -var Index = exports.Index = /*#__PURE__*/function (_$e$modules$CommandDa) { | |
| 585 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 586 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 587 | +var Index = /*#__PURE__*/function (_$e$modules$CommandDa) { | |
| 588 | + (0, _inherits2.default)(Index, _$e$modules$CommandDa); | |
| 589 | + var _super = _createSuper(Index); | |
| 654 | 590 | function Index() { |
| 655 | 591 | (0, _classCallCheck2.default)(this, Index); |
| 656 | - return _callSuper(this, Index, arguments); | |
| 592 | + return _super.apply(this, arguments); | |
| 657 | 593 | } |
| 658 | - (0, _inherits2.default)(Index, _$e$modules$CommandDa); | |
| 659 | - return (0, _createClass2.default)(Index, null, [{ | |
| 594 | + (0, _createClass2.default)(Index, null, [{ | |
| 660 | 595 | key: "getEndpointFormat", |
| 661 | 596 | value: function getEndpointFormat() { |
| 662 | 597 | return 'kit-elements-defaults/{type}'; |
| 663 | 598 | } |
| 664 | 599 | }]); |
| 600 | + return Index; | |
| 665 | 601 | }($e.modules.CommandData); |
| 602 | +exports.Index = Index; | |
| 666 | 603 | |
| 667 | 604 | /***/ }), |
| 668 | 605 | |
| 669 | 606 | /***/ "../modules/kit-elements-defaults/assets/js/editor/extract-container-settings.js": |
| @@ -682,10 +619,10 @@ | ||
| 682 | 619 | exports["default"] = extractContainerSettings; |
| 683 | 620 | var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 684 | 621 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 685 | 622 | var _utils = __webpack_require__(/*! ./utils */ "../modules/kit-elements-defaults/assets/js/editor/utils.js"); |
| 686 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 687 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 623 | +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | |
| 624 | +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | |
| 688 | 625 | var SPECIAL_SETTINGS = ['__dynamic__', '__globals__']; |
| 689 | 626 | function extractContainerSettings(container) { |
| 690 | 627 | var settingsModel = container.settings, |
| 691 | 628 | controls = settingsModel.controls, |
| @@ -732,24 +669,25 @@ | ||
| 732 | 669 | exports["default"] = void 0; |
| 733 | 670 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 734 | 671 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 735 | 672 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 673 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 736 | 674 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 737 | 675 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 738 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 739 | 676 | var _api = __webpack_require__(/*! ../../api */ "../modules/kit-elements-defaults/assets/js/editor/api.js"); |
| 740 | 677 | var _utils = __webpack_require__(/*! ../../utils */ "../modules/kit-elements-defaults/assets/js/editor/utils.js"); |
| 741 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 742 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 743 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 744 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 745 | -var FillDefaultsOnDrop = exports["default"] = /*#__PURE__*/function (_$e$modules$hookData$) { | |
| 678 | +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | |
| 679 | +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | |
| 680 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 681 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 682 | +var FillDefaultsOnDrop = /*#__PURE__*/function (_$e$modules$hookData$) { | |
| 683 | + (0, _inherits2.default)(FillDefaultsOnDrop, _$e$modules$hookData$); | |
| 684 | + var _super = _createSuper(FillDefaultsOnDrop); | |
| 746 | 685 | function FillDefaultsOnDrop() { |
| 747 | 686 | (0, _classCallCheck2.default)(this, FillDefaultsOnDrop); |
| 748 | - return _callSuper(this, FillDefaultsOnDrop, arguments); | |
| 687 | + return _super.apply(this, arguments); | |
| 749 | 688 | } |
| 750 | - (0, _inherits2.default)(FillDefaultsOnDrop, _$e$modules$hookData$); | |
| 751 | - return (0, _createClass2.default)(FillDefaultsOnDrop, [{ | |
| 689 | + (0, _createClass2.default)(FillDefaultsOnDrop, [{ | |
| 752 | 690 | key: "getCommand", |
| 753 | 691 | value: function getCommand() { |
| 754 | 692 | return 'preview/drop'; |
| 755 | 693 | } |
| @@ -785,9 +723,11 @@ | ||
| 785 | 723 | }); |
| 786 | 724 | return true; |
| 787 | 725 | } |
| 788 | 726 | }]); |
| 727 | + return FillDefaultsOnDrop; | |
| 789 | 728 | }($e.modules.hookData.Dependency); |
| 729 | +exports["default"] = FillDefaultsOnDrop; | |
| 790 | 730 | |
| 791 | 731 | /***/ }), |
| 792 | 732 | |
| 793 | 733 | /***/ "../modules/kit-elements-defaults/assets/js/editor/hooks/index.js": |
| @@ -830,21 +770,24 @@ | ||
| 830 | 770 | exports["default"] = void 0; |
| 831 | 771 | var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "../node_modules/@babel/runtime/helpers/toConsumableArray.js")); |
| 832 | 772 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 833 | 773 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 774 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js")); | |
| 775 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 834 | 776 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 835 | 777 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 836 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 837 | 778 | var _component = _interopRequireDefault(__webpack_require__(/*! ./component */ "../modules/kit-elements-defaults/assets/js/editor/component.js")); |
| 838 | 779 | var _api = __webpack_require__(/*! ./api */ "../modules/kit-elements-defaults/assets/js/editor/api.js"); |
| 839 | 780 | var _utils = __webpack_require__(/*! ./utils */ "../modules/kit-elements-defaults/assets/js/editor/utils.js"); |
| 840 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 841 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 842 | -function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); } | |
| 843 | -function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } | |
| 844 | -function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } | |
| 845 | -var _Module_brand = /*#__PURE__*/new WeakSet(); | |
| 846 | -var Module = exports["default"] = /*#__PURE__*/function (_elementorModules$edi) { | |
| 781 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 782 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 783 | +function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); } | |
| 784 | +function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } | |
| 785 | +function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; } | |
| 786 | +var _addContextMenuItem = /*#__PURE__*/new WeakSet(); | |
| 787 | +var Module = /*#__PURE__*/function (_elementorModules$edi) { | |
| 788 | + (0, _inherits2.default)(Module, _elementorModules$edi); | |
| 789 | + var _super = _createSuper(Module); | |
| 847 | 790 | function Module() { |
| 848 | 791 | var _this; |
| 849 | 792 | (0, _classCallCheck2.default)(this, Module); |
| 850 | 793 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| @@ -849,18 +792,17 @@ | ||
| 849 | 792 | (0, _classCallCheck2.default)(this, Module); |
| 850 | 793 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| 851 | 794 | args[_key] = arguments[_key]; |
| 852 | 795 | } |
| 853 | - _this = _callSuper(this, Module, [].concat(args)); | |
| 854 | - _classPrivateMethodInitSpec(_this, _Module_brand); | |
| 796 | + _this = _super.call.apply(_super, [this].concat(args)); | |
| 797 | + _classPrivateMethodInitSpec((0, _assertThisInitialized2.default)(_this), _addContextMenuItem); | |
| 855 | 798 | return _this; |
| 856 | 799 | } |
| 857 | - (0, _inherits2.default)(Module, _elementorModules$edi); | |
| 858 | - return (0, _createClass2.default)(Module, [{ | |
| 800 | + (0, _createClass2.default)(Module, [{ | |
| 859 | 801 | key: "onElementorInit", |
| 860 | 802 | value: function onElementorInit() { |
| 861 | 803 | (0, _api.loadElementsDefaults)(); |
| 862 | - _assertClassBrand(_Module_brand, this, _addContextMenuItem).call(this); | |
| 804 | + _classPrivateMethodGet(this, _addContextMenuItem, _addContextMenuItem2).call(this); | |
| 863 | 805 | } |
| 864 | 806 | }, { |
| 865 | 807 | key: "onElementorInitComponents", |
| 866 | 808 | value: function onElementorInitComponents() { |
| @@ -866,12 +808,14 @@ | ||
| 866 | 808 | value: function onElementorInitComponents() { |
| 867 | 809 | window.$e.components.register(new _component.default()); |
| 868 | 810 | } |
| 869 | 811 | }]); |
| 812 | + return Module; | |
| 870 | 813 | }(elementorModules.editor.utils.Module); |
| 871 | -function _addContextMenuItem() { | |
| 872 | - var _elementor$config; | |
| 873 | - if (!((_elementor$config = elementor.config) !== null && _elementor$config !== void 0 && (_elementor$config = _elementor$config.user) !== null && _elementor$config !== void 0 && _elementor$config.is_administrator)) { | |
| 814 | +exports["default"] = Module; | |
| 815 | +function _addContextMenuItem2() { | |
| 816 | + var _elementor$config, _elementor$config$use; | |
| 817 | + if (!((_elementor$config = elementor.config) !== null && _elementor$config !== void 0 && (_elementor$config$use = _elementor$config.user) !== null && _elementor$config$use !== void 0 && _elementor$config$use.is_administrator)) { | |
| 874 | 818 | return; |
| 875 | 819 | } |
| 876 | 820 | ['widget', 'container', 'section'].forEach(function (elType) { |
| 877 | 821 | elementor.hooks.addFilter("elements/".concat(elType, "/contextMenuGroups"), function (groups, view) { |
| @@ -886,12 +830,9 @@ | ||
| 886 | 830 | return group; |
| 887 | 831 | } |
| 888 | 832 | group.actions = [].concat((0, _toConsumableArray2.default)(group.actions), [{ |
| 889 | 833 | name: 'save-as-default', |
| 890 | - title: __('Save as default', 'elementor'), | |
| 891 | - isEnabled: function isEnabled() { | |
| 892 | - return !view.getContainer().isLocked(); | |
| 893 | - }, | |
| 834 | + title: __('Save as Default', 'elementor'), | |
| 894 | 835 | callback: function callback() { |
| 895 | 836 | $e.run('kit-elements-defaults/confirm-creation', { |
| 896 | 837 | container: view.getContainer() |
| 897 | 838 | }); |
| @@ -934,18 +875,16 @@ | ||
| 934 | 875 | } |
| 935 | 876 | |
| 936 | 877 | /***/ }), |
| 937 | 878 | |
| 938 | -/***/ "../node_modules/@babel/runtime/helpers/OverloadYield.js": | |
| 939 | -/*!***************************************************************!*\ | |
| 940 | - !*** ../node_modules/@babel/runtime/helpers/OverloadYield.js ***! | |
| 941 | - \***************************************************************/ | |
| 879 | +/***/ "@wordpress/i18n": | |
| 880 | +/*!**************************!*\ | |
| 881 | + !*** external "wp.i18n" ***! | |
| 882 | + \**************************/ | |
| 942 | 883 | /***/ ((module) => { |
| 943 | 884 | |
| 944 | -function _OverloadYield(e, d) { | |
| 945 | - this.v = e, this.k = d; | |
| 946 | -} | |
| 947 | -module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 885 | +"use strict"; | |
| 886 | +module.exports = wp.i18n; | |
| 948 | 887 | |
| 949 | 888 | /***/ }), |
| 950 | 889 | |
| 951 | 890 | /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": |
| @@ -953,12 +892,14 @@ | ||
| 953 | 892 | !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! |
| 954 | 893 | \******************************************************************/ |
| 955 | 894 | /***/ ((module) => { |
| 956 | 895 | |
| 957 | -function _arrayLikeToArray(r, a) { | |
| 958 | - (null == a || a > r.length) && (a = r.length); | |
| 959 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 960 | - return n; | |
| 896 | +function _arrayLikeToArray(arr, len) { | |
| 897 | + if (len == null || len > arr.length) len = arr.length; | |
| 898 | + for (var i = 0, arr2 = new Array(len); i < len; i++) { | |
| 899 | + arr2[i] = arr[i]; | |
| 900 | + } | |
| 901 | + return arr2; | |
| 961 | 902 | } |
| 962 | 903 | module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 963 | 904 | |
| 964 | 905 | /***/ }), |
| @@ -968,10 +909,10 @@ | ||
| 968 | 909 | !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! |
| 969 | 910 | \****************************************************************/ |
| 970 | 911 | /***/ ((module) => { |
| 971 | 912 | |
| 972 | -function _arrayWithHoles(r) { | |
| 973 | - if (Array.isArray(r)) return r; | |
| 913 | +function _arrayWithHoles(arr) { | |
| 914 | + if (Array.isArray(arr)) return arr; | |
| 974 | 915 | } |
| 975 | 916 | module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 976 | 917 | |
| 977 | 918 | /***/ }), |
| @@ -982,10 +923,10 @@ | ||
| 982 | 923 | \*******************************************************************/ |
| 983 | 924 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 984 | 925 | |
| 985 | 926 | var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); |
| 986 | -function _arrayWithoutHoles(r) { | |
| 987 | - if (Array.isArray(r)) return arrayLikeToArray(r); | |
| 927 | +function _arrayWithoutHoles(arr) { | |
| 928 | + if (Array.isArray(arr)) return arrayLikeToArray(arr); | |
| 988 | 929 | } |
| 989 | 930 | module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 990 | 931 | |
| 991 | 932 | /***/ }), |
| @@ -995,11 +936,13 @@ | ||
| 995 | 936 | !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! |
| 996 | 937 | \***********************************************************************/ |
| 997 | 938 | /***/ ((module) => { |
| 998 | 939 | |
| 999 | -function _assertThisInitialized(e) { | |
| 1000 | - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 1001 | - return e; | |
| 940 | +function _assertThisInitialized(self) { | |
| 941 | + if (self === void 0) { | |
| 942 | + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 943 | + } | |
| 944 | + return self; | |
| 1002 | 945 | } |
| 1003 | 946 | module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1004 | 947 | |
| 1005 | 948 | /***/ }), |
| @@ -1009,30 +952,35 @@ | ||
| 1009 | 952 | !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***! |
| 1010 | 953 | \******************************************************************/ |
| 1011 | 954 | /***/ ((module) => { |
| 1012 | 955 | |
| 1013 | -function asyncGeneratorStep(n, t, e, r, o, a, c) { | |
| 956 | +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | |
| 1014 | 957 | try { |
| 1015 | - var i = n[a](c), | |
| 1016 | - u = i.value; | |
| 1017 | - } catch (n) { | |
| 1018 | - return void e(n); | |
| 958 | + var info = gen[key](arg); | |
| 959 | + var value = info.value; | |
| 960 | + } catch (error) { | |
| 961 | + reject(error); | |
| 962 | + return; | |
| 1019 | 963 | } |
| 1020 | - i.done ? t(u) : Promise.resolve(u).then(r, o); | |
| 964 | + if (info.done) { | |
| 965 | + resolve(value); | |
| 966 | + } else { | |
| 967 | + Promise.resolve(value).then(_next, _throw); | |
| 968 | + } | |
| 1021 | 969 | } |
| 1022 | -function _asyncToGenerator(n) { | |
| 970 | +function _asyncToGenerator(fn) { | |
| 1023 | 971 | return function () { |
| 1024 | - var t = this, | |
| 1025 | - e = arguments; | |
| 1026 | - return new Promise(function (r, o) { | |
| 1027 | - var a = n.apply(t, e); | |
| 1028 | - function _next(n) { | |
| 1029 | - asyncGeneratorStep(a, r, o, _next, _throw, "next", n); | |
| 972 | + var self = this, | |
| 973 | + args = arguments; | |
| 974 | + return new Promise(function (resolve, reject) { | |
| 975 | + var gen = fn.apply(self, args); | |
| 976 | + function _next(value) { | |
| 977 | + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | |
| 1030 | 978 | } |
| 1031 | - function _throw(n) { | |
| 1032 | - asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | |
| 979 | + function _throw(err) { | |
| 980 | + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | |
| 1033 | 981 | } |
| 1034 | - _next(void 0); | |
| 982 | + _next(undefined); | |
| 1035 | 983 | }); |
| 1036 | 984 | }; |
| 1037 | 985 | } |
| 1038 | 986 | module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| @@ -1044,10 +992,12 @@ | ||
| 1044 | 992 | !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! |
| 1045 | 993 | \****************************************************************/ |
| 1046 | 994 | /***/ ((module) => { |
| 1047 | 995 | |
| 1048 | -function _classCallCheck(a, n) { | |
| 1049 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 996 | +function _classCallCheck(instance, Constructor) { | |
| 997 | + if (!(instance instanceof Constructor)) { | |
| 998 | + throw new TypeError("Cannot call a class as a function"); | |
| 999 | + } | |
| 1050 | 1000 | } |
| 1051 | 1001 | module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1052 | 1002 | |
| 1053 | 1003 | /***/ }), |
| @@ -1055,21 +1005,26 @@ | ||
| 1055 | 1005 | /***/ "../node_modules/@babel/runtime/helpers/createClass.js": |
| 1056 | 1006 | /*!*************************************************************!*\ |
| 1057 | 1007 | !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! |
| 1058 | 1008 | \*************************************************************/ |
| 1059 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1009 | +/***/ ((module) => { | |
| 1060 | 1010 | |
| 1061 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 1062 | -function _defineProperties(e, r) { | |
| 1063 | - for (var t = 0; t < r.length; t++) { | |
| 1064 | - var o = r[t]; | |
| 1065 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 1011 | +function _defineProperties(target, props) { | |
| 1012 | + for (var i = 0; i < props.length; i++) { | |
| 1013 | + var descriptor = props[i]; | |
| 1014 | + descriptor.enumerable = descriptor.enumerable || false; | |
| 1015 | + descriptor.configurable = true; | |
| 1016 | + if ("value" in descriptor) descriptor.writable = true; | |
| 1017 | + Object.defineProperty(target, descriptor.key, descriptor); | |
| 1066 | 1018 | } |
| 1067 | 1019 | } |
| 1068 | -function _createClass(e, r, t) { | |
| 1069 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | |
| 1070 | - writable: !1 | |
| 1071 | - }), e; | |
| 1020 | +function _createClass(Constructor, protoProps, staticProps) { | |
| 1021 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); | |
| 1022 | + if (staticProps) _defineProperties(Constructor, staticProps); | |
| 1023 | + Object.defineProperty(Constructor, "prototype", { | |
| 1024 | + writable: false | |
| 1025 | + }); | |
| 1026 | + return Constructor; | |
| 1072 | 1027 | } |
| 1073 | 1028 | module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1074 | 1029 | |
| 1075 | 1030 | /***/ }), |
| @@ -1077,18 +1032,22 @@ | ||
| 1077 | 1032 | /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": |
| 1078 | 1033 | /*!****************************************************************!*\ |
| 1079 | 1034 | !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! |
| 1080 | 1035 | \****************************************************************/ |
| 1081 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1036 | +/***/ ((module) => { | |
| 1082 | 1037 | |
| 1083 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 1084 | -function _defineProperty(e, r, t) { | |
| 1085 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 1086 | - value: t, | |
| 1087 | - enumerable: !0, | |
| 1088 | - configurable: !0, | |
| 1089 | - writable: !0 | |
| 1090 | - }) : e[r] = t, e; | |
| 1038 | +function _defineProperty(obj, key, value) { | |
| 1039 | + if (key in obj) { | |
| 1040 | + Object.defineProperty(obj, key, { | |
| 1041 | + value: value, | |
| 1042 | + enumerable: true, | |
| 1043 | + configurable: true, | |
| 1044 | + writable: true | |
| 1045 | + }); | |
| 1046 | + } else { | |
| 1047 | + obj[key] = value; | |
| 1048 | + } | |
| 1049 | + return obj; | |
| 1091 | 1050 | } |
| 1092 | 1051 | module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1093 | 1052 | |
| 1094 | 1053 | /***/ }), |
| @@ -1098,12 +1057,13 @@ | ||
| 1098 | 1057 | !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! |
| 1099 | 1058 | \****************************************************************/ |
| 1100 | 1059 | /***/ ((module) => { |
| 1101 | 1060 | |
| 1102 | -function _getPrototypeOf(t) { | |
| 1103 | - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | |
| 1104 | - return t.__proto__ || Object.getPrototypeOf(t); | |
| 1105 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); | |
| 1061 | +function _getPrototypeOf(o) { | |
| 1062 | + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { | |
| 1063 | + return o.__proto__ || Object.getPrototypeOf(o); | |
| 1064 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1065 | + return _getPrototypeOf(o); | |
| 1106 | 1066 | } |
| 1107 | 1067 | module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1108 | 1068 | |
| 1109 | 1069 | /***/ }), |
| @@ -1114,19 +1074,23 @@ | ||
| 1114 | 1074 | \**********************************************************/ |
| 1115 | 1075 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1116 | 1076 | |
| 1117 | 1077 | var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); |
| 1118 | -function _inherits(t, e) { | |
| 1119 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 1120 | - t.prototype = Object.create(e && e.prototype, { | |
| 1078 | +function _inherits(subClass, superClass) { | |
| 1079 | + if (typeof superClass !== "function" && superClass !== null) { | |
| 1080 | + throw new TypeError("Super expression must either be null or a function"); | |
| 1081 | + } | |
| 1082 | + subClass.prototype = Object.create(superClass && superClass.prototype, { | |
| 1121 | 1083 | constructor: { |
| 1122 | - value: t, | |
| 1123 | - writable: !0, | |
| 1124 | - configurable: !0 | |
| 1084 | + value: subClass, | |
| 1085 | + writable: true, | |
| 1086 | + configurable: true | |
| 1125 | 1087 | } |
| 1126 | - }), Object.defineProperty(t, "prototype", { | |
| 1127 | - writable: !1 | |
| 1128 | - }), e && setPrototypeOf(t, e); | |
| 1088 | + }); | |
| 1089 | + Object.defineProperty(subClass, "prototype", { | |
| 1090 | + writable: false | |
| 1091 | + }); | |
| 1092 | + if (superClass) setPrototypeOf(subClass, superClass); | |
| 1129 | 1093 | } |
| 1130 | 1094 | module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1131 | 1095 | |
| 1132 | 1096 | /***/ }), |
| @@ -1136,11 +1100,11 @@ | ||
| 1136 | 1100 | !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! |
| 1137 | 1101 | \***********************************************************************/ |
| 1138 | 1102 | /***/ ((module) => { |
| 1139 | 1103 | |
| 1140 | -function _interopRequireDefault(e) { | |
| 1141 | - return e && e.__esModule ? e : { | |
| 1142 | - "default": e | |
| 1104 | +function _interopRequireDefault(obj) { | |
| 1105 | + return obj && obj.__esModule ? obj : { | |
| 1106 | + "default": obj | |
| 1143 | 1107 | }; |
| 1144 | 1108 | } |
| 1145 | 1109 | module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1146 | 1110 | |
| @@ -1151,10 +1115,10 @@ | ||
| 1151 | 1115 | !*** ../node_modules/@babel/runtime/helpers/iterableToArray.js ***! |
| 1152 | 1116 | \*****************************************************************/ |
| 1153 | 1117 | /***/ ((module) => { |
| 1154 | 1118 | |
| 1155 | -function _iterableToArray(r) { | |
| 1156 | - if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); | |
| 1119 | +function _iterableToArray(iter) { | |
| 1120 | + if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); | |
| 1157 | 1121 | } |
| 1158 | 1122 | module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1159 | 1123 | |
| 1160 | 1124 | /***/ }), |
| @@ -1164,34 +1128,31 @@ | ||
| 1164 | 1128 | !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! |
| 1165 | 1129 | \**********************************************************************/ |
| 1166 | 1130 | /***/ ((module) => { |
| 1167 | 1131 | |
| 1168 | -function _iterableToArrayLimit(r, l) { | |
| 1169 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 1170 | - if (null != t) { | |
| 1171 | - var e, | |
| 1172 | - n, | |
| 1173 | - i, | |
| 1174 | - u, | |
| 1175 | - a = [], | |
| 1176 | - f = !0, | |
| 1177 | - o = !1; | |
| 1132 | +function _iterableToArrayLimit(arr, i) { | |
| 1133 | + var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; | |
| 1134 | + if (_i == null) return; | |
| 1135 | + var _arr = []; | |
| 1136 | + var _n = true; | |
| 1137 | + var _d = false; | |
| 1138 | + var _s, _e; | |
| 1139 | + try { | |
| 1140 | + for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { | |
| 1141 | + _arr.push(_s.value); | |
| 1142 | + if (i && _arr.length === i) break; | |
| 1143 | + } | |
| 1144 | + } catch (err) { | |
| 1145 | + _d = true; | |
| 1146 | + _e = err; | |
| 1147 | + } finally { | |
| 1178 | 1148 | try { |
| 1179 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 1180 | - if (Object(t) !== t) return; | |
| 1181 | - f = !1; | |
| 1182 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 1183 | - } catch (r) { | |
| 1184 | - o = !0, n = r; | |
| 1149 | + if (!_n && _i["return"] != null) _i["return"](); | |
| 1185 | 1150 | } finally { |
| 1186 | - try { | |
| 1187 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 1188 | - } finally { | |
| 1189 | - if (o) throw n; | |
| 1190 | - } | |
| 1151 | + if (_d) throw _e; | |
| 1191 | 1152 | } |
| 1192 | - return a; | |
| 1193 | 1153 | } |
| 1154 | + return _arr; | |
| 1194 | 1155 | } |
| 1195 | 1156 | module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1196 | 1157 | |
| 1197 | 1158 | /***/ }), |
| @@ -1229,350 +1190,326 @@ | ||
| 1229 | 1190 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1230 | 1191 | |
| 1231 | 1192 | var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 1232 | 1193 | var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); |
| 1233 | -function _possibleConstructorReturn(t, e) { | |
| 1234 | - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 1235 | - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 1236 | - return assertThisInitialized(t); | |
| 1194 | +function _possibleConstructorReturn(self, call) { | |
| 1195 | + if (call && (_typeof(call) === "object" || typeof call === "function")) { | |
| 1196 | + return call; | |
| 1197 | + } else if (call !== void 0) { | |
| 1198 | + throw new TypeError("Derived constructors may only return object or undefined"); | |
| 1199 | + } | |
| 1200 | + return assertThisInitialized(self); | |
| 1237 | 1201 | } |
| 1238 | 1202 | module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1239 | 1203 | |
| 1240 | 1204 | /***/ }), |
| 1241 | 1205 | |
| 1242 | -/***/ "../node_modules/@babel/runtime/helpers/regenerator.js": | |
| 1243 | -/*!*************************************************************!*\ | |
| 1244 | - !*** ../node_modules/@babel/runtime/helpers/regenerator.js ***! | |
| 1245 | - \*************************************************************/ | |
| 1206 | +/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js": | |
| 1207 | +/*!********************************************************************!*\ | |
| 1208 | + !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! | |
| 1209 | + \********************************************************************/ | |
| 1246 | 1210 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1247 | 1211 | |
| 1248 | -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 1249 | -function _regenerator() { | |
| 1250 | - /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ | |
| 1251 | - var e, | |
| 1252 | - t, | |
| 1253 | - r = "function" == typeof Symbol ? Symbol : {}, | |
| 1254 | - n = r.iterator || "@@iterator", | |
| 1255 | - o = r.toStringTag || "@@toStringTag"; | |
| 1256 | - function i(r, n, o, i) { | |
| 1257 | - var c = n && n.prototype instanceof Generator ? n : Generator, | |
| 1258 | - u = Object.create(c.prototype); | |
| 1259 | - return regeneratorDefine(u, "_invoke", function (r, n, o) { | |
| 1260 | - var i, | |
| 1261 | - c, | |
| 1262 | - u, | |
| 1263 | - f = 0, | |
| 1264 | - p = o || [], | |
| 1265 | - y = !1, | |
| 1266 | - G = { | |
| 1267 | - p: 0, | |
| 1268 | - n: 0, | |
| 1269 | - v: e, | |
| 1270 | - a: d, | |
| 1271 | - f: d.bind(e, 4), | |
| 1272 | - d: function d(t, r) { | |
| 1273 | - return i = t, c = 0, u = e, G.n = r, a; | |
| 1212 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 1213 | +function _regeneratorRuntime() { | |
| 1214 | + "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ | |
| 1215 | + module.exports = _regeneratorRuntime = function _regeneratorRuntime() { | |
| 1216 | + return exports; | |
| 1217 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1218 | + var exports = {}, | |
| 1219 | + Op = Object.prototype, | |
| 1220 | + hasOwn = Op.hasOwnProperty, | |
| 1221 | + $Symbol = "function" == typeof Symbol ? Symbol : {}, | |
| 1222 | + iteratorSymbol = $Symbol.iterator || "@@iterator", | |
| 1223 | + asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", | |
| 1224 | + toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; | |
| 1225 | + function define(obj, key, value) { | |
| 1226 | + return Object.defineProperty(obj, key, { | |
| 1227 | + value: value, | |
| 1228 | + enumerable: !0, | |
| 1229 | + configurable: !0, | |
| 1230 | + writable: !0 | |
| 1231 | + }), obj[key]; | |
| 1232 | + } | |
| 1233 | + try { | |
| 1234 | + define({}, ""); | |
| 1235 | + } catch (err) { | |
| 1236 | + define = function define(obj, key, value) { | |
| 1237 | + return obj[key] = value; | |
| 1238 | + }; | |
| 1239 | + } | |
| 1240 | + function wrap(innerFn, outerFn, self, tryLocsList) { | |
| 1241 | + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, | |
| 1242 | + generator = Object.create(protoGenerator.prototype), | |
| 1243 | + context = new Context(tryLocsList || []); | |
| 1244 | + return generator._invoke = function (innerFn, self, context) { | |
| 1245 | + var state = "suspendedStart"; | |
| 1246 | + return function (method, arg) { | |
| 1247 | + if ("executing" === state) throw new Error("Generator is already running"); | |
| 1248 | + if ("completed" === state) { | |
| 1249 | + if ("throw" === method) throw arg; | |
| 1250 | + return doneResult(); | |
| 1251 | + } | |
| 1252 | + for (context.method = method, context.arg = arg;;) { | |
| 1253 | + var delegate = context.delegate; | |
| 1254 | + if (delegate) { | |
| 1255 | + var delegateResult = maybeInvokeDelegate(delegate, context); | |
| 1256 | + if (delegateResult) { | |
| 1257 | + if (delegateResult === ContinueSentinel) continue; | |
| 1258 | + return delegateResult; | |
| 1259 | + } | |
| 1274 | 1260 | } |
| 1275 | - }; | |
| 1276 | - function d(r, n) { | |
| 1277 | - for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { | |
| 1278 | - var o, | |
| 1279 | - i = p[t], | |
| 1280 | - d = G.p, | |
| 1281 | - l = i[2]; | |
| 1282 | - r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); | |
| 1283 | - } | |
| 1284 | - if (o || r > 1) return a; | |
| 1285 | - throw y = !0, n; | |
| 1286 | - } | |
| 1287 | - return function (o, p, l) { | |
| 1288 | - if (f > 1) throw TypeError("Generator is already running"); | |
| 1289 | - for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { | |
| 1290 | - i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); | |
| 1291 | - try { | |
| 1292 | - if (f = 2, i) { | |
| 1293 | - if (c || (o = "next"), t = i[o]) { | |
| 1294 | - if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); | |
| 1295 | - if (!t.done) return t; | |
| 1296 | - u = t.value, c < 2 && (c = 0); | |
| 1297 | - } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); | |
| 1298 | - i = e; | |
| 1299 | - } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; | |
| 1300 | - } catch (t) { | |
| 1301 | - i = e, c = 1, u = t; | |
| 1302 | - } finally { | |
| 1303 | - f = 1; | |
| 1261 | + if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { | |
| 1262 | + if ("suspendedStart" === state) throw state = "completed", context.arg; | |
| 1263 | + context.dispatchException(context.arg); | |
| 1264 | + } else "return" === context.method && context.abrupt("return", context.arg); | |
| 1265 | + state = "executing"; | |
| 1266 | + var record = tryCatch(innerFn, self, context); | |
| 1267 | + if ("normal" === record.type) { | |
| 1268 | + if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; | |
| 1269 | + return { | |
| 1270 | + value: record.arg, | |
| 1271 | + done: context.done | |
| 1272 | + }; | |
| 1304 | 1273 | } |
| 1274 | + "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); | |
| 1305 | 1275 | } |
| 1306 | - return { | |
| 1307 | - value: t, | |
| 1308 | - done: y | |
| 1309 | - }; | |
| 1310 | 1276 | }; |
| 1311 | - }(r, o, i), !0), u; | |
| 1277 | + }(innerFn, self, context), generator; | |
| 1312 | 1278 | } |
| 1313 | - var a = {}; | |
| 1279 | + function tryCatch(fn, obj, arg) { | |
| 1280 | + try { | |
| 1281 | + return { | |
| 1282 | + type: "normal", | |
| 1283 | + arg: fn.call(obj, arg) | |
| 1284 | + }; | |
| 1285 | + } catch (err) { | |
| 1286 | + return { | |
| 1287 | + type: "throw", | |
| 1288 | + arg: err | |
| 1289 | + }; | |
| 1290 | + } | |
| 1291 | + } | |
| 1292 | + exports.wrap = wrap; | |
| 1293 | + var ContinueSentinel = {}; | |
| 1314 | 1294 | function Generator() {} |
| 1315 | 1295 | function GeneratorFunction() {} |
| 1316 | 1296 | function GeneratorFunctionPrototype() {} |
| 1317 | - t = Object.getPrototypeOf; | |
| 1318 | - var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () { | |
| 1319 | - return this; | |
| 1320 | - }), t), | |
| 1321 | - u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); | |
| 1322 | - function f(e) { | |
| 1323 | - return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; | |
| 1324 | - } | |
| 1325 | - return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function () { | |
| 1297 | + var IteratorPrototype = {}; | |
| 1298 | + define(IteratorPrototype, iteratorSymbol, function () { | |
| 1326 | 1299 | return this; |
| 1327 | - }), regeneratorDefine(u, "toString", function () { | |
| 1328 | - return "[object Generator]"; | |
| 1329 | - }), (module.exports = _regenerator = function _regenerator() { | |
| 1330 | - return { | |
| 1331 | - w: i, | |
| 1332 | - m: f | |
| 1333 | - }; | |
| 1334 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 1335 | -} | |
| 1336 | -module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1337 | - | |
| 1338 | -/***/ }), | |
| 1339 | - | |
| 1340 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js": | |
| 1341 | -/*!******************************************************************!*\ | |
| 1342 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsync.js ***! | |
| 1343 | - \******************************************************************/ | |
| 1344 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1345 | - | |
| 1346 | -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 1347 | -function _regeneratorAsync(n, e, r, t, o) { | |
| 1348 | - var a = regeneratorAsyncGen(n, e, r, t, o); | |
| 1349 | - return a.next().then(function (n) { | |
| 1350 | - return n.done ? n.value : a.next(); | |
| 1351 | 1300 | }); |
| 1352 | -} | |
| 1353 | -module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1354 | - | |
| 1355 | -/***/ }), | |
| 1356 | - | |
| 1357 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js": | |
| 1358 | -/*!*********************************************************************!*\ | |
| 1359 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js ***! | |
| 1360 | - \*********************************************************************/ | |
| 1361 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1362 | - | |
| 1363 | -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 1364 | -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 1365 | -function _regeneratorAsyncGen(r, e, t, o, n) { | |
| 1366 | - return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise); | |
| 1367 | -} | |
| 1368 | -module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1369 | - | |
| 1370 | -/***/ }), | |
| 1371 | - | |
| 1372 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js": | |
| 1373 | -/*!**************************************************************************!*\ | |
| 1374 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js ***! | |
| 1375 | - \**************************************************************************/ | |
| 1376 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1377 | - | |
| 1378 | -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 1379 | -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 1380 | -function AsyncIterator(t, e) { | |
| 1381 | - function n(r, o, i, f) { | |
| 1382 | - try { | |
| 1383 | - var c = t[r](o), | |
| 1384 | - u = c.value; | |
| 1385 | - return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) { | |
| 1386 | - n("next", t, i, f); | |
| 1387 | - }, function (t) { | |
| 1388 | - n("throw", t, i, f); | |
| 1389 | - }) : e.resolve(u).then(function (t) { | |
| 1390 | - c.value = t, i(c); | |
| 1391 | - }, function (t) { | |
| 1392 | - return n("throw", t, i, f); | |
| 1301 | + var getProto = Object.getPrototypeOf, | |
| 1302 | + NativeIteratorPrototype = getProto && getProto(getProto(values([]))); | |
| 1303 | + NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); | |
| 1304 | + var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); | |
| 1305 | + function defineIteratorMethods(prototype) { | |
| 1306 | + ["next", "throw", "return"].forEach(function (method) { | |
| 1307 | + define(prototype, method, function (arg) { | |
| 1308 | + return this._invoke(method, arg); | |
| 1393 | 1309 | }); |
| 1394 | - } catch (t) { | |
| 1395 | - f(t); | |
| 1310 | + }); | |
| 1311 | + } | |
| 1312 | + function AsyncIterator(generator, PromiseImpl) { | |
| 1313 | + function invoke(method, arg, resolve, reject) { | |
| 1314 | + var record = tryCatch(generator[method], generator, arg); | |
| 1315 | + if ("throw" !== record.type) { | |
| 1316 | + var result = record.arg, | |
| 1317 | + value = result.value; | |
| 1318 | + return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { | |
| 1319 | + invoke("next", value, resolve, reject); | |
| 1320 | + }, function (err) { | |
| 1321 | + invoke("throw", err, resolve, reject); | |
| 1322 | + }) : PromiseImpl.resolve(value).then(function (unwrapped) { | |
| 1323 | + result.value = unwrapped, resolve(result); | |
| 1324 | + }, function (error) { | |
| 1325 | + return invoke("throw", error, resolve, reject); | |
| 1326 | + }); | |
| 1327 | + } | |
| 1328 | + reject(record.arg); | |
| 1396 | 1329 | } |
| 1330 | + var previousPromise; | |
| 1331 | + this._invoke = function (method, arg) { | |
| 1332 | + function callInvokeWithMethodAndArg() { | |
| 1333 | + return new PromiseImpl(function (resolve, reject) { | |
| 1334 | + invoke(method, arg, resolve, reject); | |
| 1335 | + }); | |
| 1336 | + } | |
| 1337 | + return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); | |
| 1338 | + }; | |
| 1397 | 1339 | } |
| 1398 | - var r; | |
| 1399 | - this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { | |
| 1400 | - return this; | |
| 1401 | - })), regeneratorDefine(this, "_invoke", function (t, o, i) { | |
| 1402 | - function f() { | |
| 1403 | - return new e(function (e, r) { | |
| 1404 | - n(t, i, e, r); | |
| 1405 | - }); | |
| 1340 | + function maybeInvokeDelegate(delegate, context) { | |
| 1341 | + var method = delegate.iterator[context.method]; | |
| 1342 | + if (undefined === method) { | |
| 1343 | + if (context.delegate = null, "throw" === context.method) { | |
| 1344 | + if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; | |
| 1345 | + context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); | |
| 1346 | + } | |
| 1347 | + return ContinueSentinel; | |
| 1406 | 1348 | } |
| 1407 | - return r = r ? r.then(f, f) : f(); | |
| 1408 | - }, !0); | |
| 1409 | -} | |
| 1410 | -module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1411 | - | |
| 1412 | -/***/ }), | |
| 1413 | - | |
| 1414 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js": | |
| 1415 | -/*!*******************************************************************!*\ | |
| 1416 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorDefine.js ***! | |
| 1417 | - \*******************************************************************/ | |
| 1418 | -/***/ ((module) => { | |
| 1419 | - | |
| 1420 | -function _regeneratorDefine(e, r, n, t) { | |
| 1421 | - var i = Object.defineProperty; | |
| 1422 | - try { | |
| 1423 | - i({}, "", {}); | |
| 1424 | - } catch (e) { | |
| 1425 | - i = 0; | |
| 1349 | + var record = tryCatch(method, delegate.iterator, context.arg); | |
| 1350 | + if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; | |
| 1351 | + var info = record.arg; | |
| 1352 | + return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); | |
| 1426 | 1353 | } |
| 1427 | - module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) { | |
| 1428 | - function o(r, n) { | |
| 1429 | - _regeneratorDefine(e, r, function (e) { | |
| 1430 | - return this._invoke(r, n, e); | |
| 1431 | - }); | |
| 1354 | + function pushTryEntry(locs) { | |
| 1355 | + var entry = { | |
| 1356 | + tryLoc: locs[0] | |
| 1357 | + }; | |
| 1358 | + 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); | |
| 1359 | + } | |
| 1360 | + function resetTryEntry(entry) { | |
| 1361 | + var record = entry.completion || {}; | |
| 1362 | + record.type = "normal", delete record.arg, entry.completion = record; | |
| 1363 | + } | |
| 1364 | + function Context(tryLocsList) { | |
| 1365 | + this.tryEntries = [{ | |
| 1366 | + tryLoc: "root" | |
| 1367 | + }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); | |
| 1368 | + } | |
| 1369 | + function values(iterable) { | |
| 1370 | + if (iterable) { | |
| 1371 | + var iteratorMethod = iterable[iteratorSymbol]; | |
| 1372 | + if (iteratorMethod) return iteratorMethod.call(iterable); | |
| 1373 | + if ("function" == typeof iterable.next) return iterable; | |
| 1374 | + if (!isNaN(iterable.length)) { | |
| 1375 | + var i = -1, | |
| 1376 | + next = function next() { | |
| 1377 | + for (; ++i < iterable.length;) { | |
| 1378 | + if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; | |
| 1379 | + } | |
| 1380 | + return next.value = undefined, next.done = !0, next; | |
| 1381 | + }; | |
| 1382 | + return next.next = next; | |
| 1383 | + } | |
| 1432 | 1384 | } |
| 1433 | - r ? i ? i(e, r, { | |
| 1434 | - value: n, | |
| 1435 | - enumerable: !t, | |
| 1436 | - configurable: !t, | |
| 1437 | - writable: !t | |
| 1438 | - }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); | |
| 1439 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t); | |
| 1440 | -} | |
| 1441 | -module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1442 | - | |
| 1443 | -/***/ }), | |
| 1444 | - | |
| 1445 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js": | |
| 1446 | -/*!*****************************************************************!*\ | |
| 1447 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorKeys.js ***! | |
| 1448 | - \*****************************************************************/ | |
| 1449 | -/***/ ((module) => { | |
| 1450 | - | |
| 1451 | -function _regeneratorKeys(e) { | |
| 1452 | - var n = Object(e), | |
| 1453 | - r = []; | |
| 1454 | - for (var t in n) r.unshift(t); | |
| 1455 | - return function e() { | |
| 1456 | - for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; | |
| 1457 | - return e.done = !0, e; | |
| 1458 | - }; | |
| 1459 | -} | |
| 1460 | -module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1461 | - | |
| 1462 | -/***/ }), | |
| 1463 | - | |
| 1464 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js": | |
| 1465 | -/*!********************************************************************!*\ | |
| 1466 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! | |
| 1467 | - \********************************************************************/ | |
| 1468 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1469 | - | |
| 1470 | -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 1471 | -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 1472 | -var regeneratorAsync = __webpack_require__(/*! ./regeneratorAsync.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js"); | |
| 1473 | -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 1474 | -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 1475 | -var regeneratorKeys = __webpack_require__(/*! ./regeneratorKeys.js */ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js"); | |
| 1476 | -var regeneratorValues = __webpack_require__(/*! ./regeneratorValues.js */ "../node_modules/@babel/runtime/helpers/regeneratorValues.js"); | |
| 1477 | -function _regeneratorRuntime() { | |
| 1478 | - "use strict"; | |
| 1479 | - | |
| 1480 | - var r = regenerator(), | |
| 1481 | - e = r.m(_regeneratorRuntime), | |
| 1482 | - t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; | |
| 1483 | - function n(r) { | |
| 1484 | - var e = "function" == typeof r && r.constructor; | |
| 1485 | - return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); | |
| 1385 | + return { | |
| 1386 | + next: doneResult | |
| 1387 | + }; | |
| 1486 | 1388 | } |
| 1487 | - var o = { | |
| 1488 | - "throw": 1, | |
| 1489 | - "return": 2, | |
| 1490 | - "break": 3, | |
| 1491 | - "continue": 3 | |
| 1492 | - }; | |
| 1493 | - function a(r) { | |
| 1494 | - var e, t; | |
| 1495 | - return function (n) { | |
| 1496 | - e || (e = { | |
| 1497 | - stop: function stop() { | |
| 1498 | - return t(n.a, 2); | |
| 1499 | - }, | |
| 1500 | - "catch": function _catch() { | |
| 1501 | - return n.v; | |
| 1502 | - }, | |
| 1503 | - abrupt: function abrupt(r, e) { | |
| 1504 | - return t(n.a, o[r], e); | |
| 1505 | - }, | |
| 1506 | - delegateYield: function delegateYield(r, o, a) { | |
| 1507 | - return e.resultName = o, t(n.d, regeneratorValues(r), a); | |
| 1508 | - }, | |
| 1509 | - finish: function finish(r) { | |
| 1510 | - return t(n.f, r); | |
| 1511 | - } | |
| 1512 | - }, t = function t(r, _t, o) { | |
| 1513 | - n.p = e.prev, n.n = e.next; | |
| 1514 | - try { | |
| 1515 | - return r(_t, o); | |
| 1516 | - } finally { | |
| 1517 | - e.next = n.n; | |
| 1518 | - } | |
| 1519 | - }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; | |
| 1520 | - try { | |
| 1521 | - return r.call(this, e); | |
| 1522 | - } finally { | |
| 1523 | - n.p = e.prev, n.n = e.next; | |
| 1524 | - } | |
| 1389 | + function doneResult() { | |
| 1390 | + return { | |
| 1391 | + value: undefined, | |
| 1392 | + done: !0 | |
| 1525 | 1393 | }; |
| 1526 | 1394 | } |
| 1527 | - return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() { | |
| 1395 | + return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { | |
| 1396 | + var ctor = "function" == typeof genFun && genFun.constructor; | |
| 1397 | + return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); | |
| 1398 | + }, exports.mark = function (genFun) { | |
| 1399 | + return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; | |
| 1400 | + }, exports.awrap = function (arg) { | |
| 1528 | 1401 | return { |
| 1529 | - wrap: function wrap(e, t, n, o) { | |
| 1530 | - return r.w(a(e), t, n, o && o.reverse()); | |
| 1531 | - }, | |
| 1532 | - isGeneratorFunction: n, | |
| 1533 | - mark: r.m, | |
| 1534 | - awrap: function awrap(r, e) { | |
| 1535 | - return new OverloadYield(r, e); | |
| 1536 | - }, | |
| 1537 | - AsyncIterator: regeneratorAsyncIterator, | |
| 1538 | - async: function async(r, e, t, o, u) { | |
| 1539 | - return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u); | |
| 1540 | - }, | |
| 1541 | - keys: regeneratorKeys, | |
| 1542 | - values: regeneratorValues | |
| 1402 | + __await: arg | |
| 1543 | 1403 | }; |
| 1544 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 1545 | -} | |
| 1546 | -module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1547 | - | |
| 1548 | -/***/ }), | |
| 1549 | - | |
| 1550 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorValues.js": | |
| 1551 | -/*!*******************************************************************!*\ | |
| 1552 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorValues.js ***! | |
| 1553 | - \*******************************************************************/ | |
| 1554 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1555 | - | |
| 1556 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 1557 | -function _regeneratorValues(e) { | |
| 1558 | - if (null != e) { | |
| 1559 | - var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], | |
| 1560 | - r = 0; | |
| 1561 | - if (t) return t.call(e); | |
| 1562 | - if ("function" == typeof e.next) return e; | |
| 1563 | - if (!isNaN(e.length)) return { | |
| 1564 | - next: function next() { | |
| 1565 | - return e && r >= e.length && (e = void 0), { | |
| 1566 | - value: e && e[r++], | |
| 1567 | - done: !e | |
| 1568 | - }; | |
| 1404 | + }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { | |
| 1405 | + return this; | |
| 1406 | + }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { | |
| 1407 | + void 0 === PromiseImpl && (PromiseImpl = Promise); | |
| 1408 | + var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); | |
| 1409 | + return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { | |
| 1410 | + return result.done ? result.value : iter.next(); | |
| 1411 | + }); | |
| 1412 | + }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { | |
| 1413 | + return this; | |
| 1414 | + }), define(Gp, "toString", function () { | |
| 1415 | + return "[object Generator]"; | |
| 1416 | + }), exports.keys = function (object) { | |
| 1417 | + var keys = []; | |
| 1418 | + for (var key in object) { | |
| 1419 | + keys.push(key); | |
| 1420 | + } | |
| 1421 | + return keys.reverse(), function next() { | |
| 1422 | + for (; keys.length;) { | |
| 1423 | + var key = keys.pop(); | |
| 1424 | + if (key in object) return next.value = key, next.done = !1, next; | |
| 1569 | 1425 | } |
| 1426 | + return next.done = !0, next; | |
| 1570 | 1427 | }; |
| 1571 | - } | |
| 1572 | - throw new TypeError(_typeof(e) + " is not iterable"); | |
| 1428 | + }, exports.values = values, Context.prototype = { | |
| 1429 | + constructor: Context, | |
| 1430 | + reset: function reset(skipTempReset) { | |
| 1431 | + if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { | |
| 1432 | + "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); | |
| 1433 | + } | |
| 1434 | + }, | |
| 1435 | + stop: function stop() { | |
| 1436 | + this.done = !0; | |
| 1437 | + var rootRecord = this.tryEntries[0].completion; | |
| 1438 | + if ("throw" === rootRecord.type) throw rootRecord.arg; | |
| 1439 | + return this.rval; | |
| 1440 | + }, | |
| 1441 | + dispatchException: function dispatchException(exception) { | |
| 1442 | + if (this.done) throw exception; | |
| 1443 | + var context = this; | |
| 1444 | + function handle(loc, caught) { | |
| 1445 | + return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; | |
| 1446 | + } | |
| 1447 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 1448 | + var entry = this.tryEntries[i], | |
| 1449 | + record = entry.completion; | |
| 1450 | + if ("root" === entry.tryLoc) return handle("end"); | |
| 1451 | + if (entry.tryLoc <= this.prev) { | |
| 1452 | + var hasCatch = hasOwn.call(entry, "catchLoc"), | |
| 1453 | + hasFinally = hasOwn.call(entry, "finallyLoc"); | |
| 1454 | + if (hasCatch && hasFinally) { | |
| 1455 | + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); | |
| 1456 | + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); | |
| 1457 | + } else if (hasCatch) { | |
| 1458 | + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); | |
| 1459 | + } else { | |
| 1460 | + if (!hasFinally) throw new Error("try statement without catch or finally"); | |
| 1461 | + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); | |
| 1462 | + } | |
| 1463 | + } | |
| 1464 | + } | |
| 1465 | + }, | |
| 1466 | + abrupt: function abrupt(type, arg) { | |
| 1467 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 1468 | + var entry = this.tryEntries[i]; | |
| 1469 | + if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { | |
| 1470 | + var finallyEntry = entry; | |
| 1471 | + break; | |
| 1472 | + } | |
| 1473 | + } | |
| 1474 | + finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); | |
| 1475 | + var record = finallyEntry ? finallyEntry.completion : {}; | |
| 1476 | + return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); | |
| 1477 | + }, | |
| 1478 | + complete: function complete(record, afterLoc) { | |
| 1479 | + if ("throw" === record.type) throw record.arg; | |
| 1480 | + return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; | |
| 1481 | + }, | |
| 1482 | + finish: function finish(finallyLoc) { | |
| 1483 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 1484 | + var entry = this.tryEntries[i]; | |
| 1485 | + if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; | |
| 1486 | + } | |
| 1487 | + }, | |
| 1488 | + "catch": function _catch(tryLoc) { | |
| 1489 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 1490 | + var entry = this.tryEntries[i]; | |
| 1491 | + if (entry.tryLoc === tryLoc) { | |
| 1492 | + var record = entry.completion; | |
| 1493 | + if ("throw" === record.type) { | |
| 1494 | + var thrown = record.arg; | |
| 1495 | + resetTryEntry(entry); | |
| 1496 | + } | |
| 1497 | + return thrown; | |
| 1498 | + } | |
| 1499 | + } | |
| 1500 | + throw new Error("illegal catch attempt"); | |
| 1501 | + }, | |
| 1502 | + delegateYield: function delegateYield(iterable, resultName, nextLoc) { | |
| 1503 | + return this.delegate = { | |
| 1504 | + iterator: values(iterable), | |
| 1505 | + resultName: resultName, | |
| 1506 | + nextLoc: nextLoc | |
| 1507 | + }, "next" === this.method && (this.arg = undefined), ContinueSentinel; | |
| 1508 | + } | |
| 1509 | + }, exports; | |
| 1573 | 1510 | } |
| 1574 | -module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1511 | +module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1575 | 1512 | |
| 1576 | 1513 | /***/ }), |
| 1577 | 1514 | |
| 1578 | 1515 | /***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": |
| @@ -1580,12 +1517,14 @@ | ||
| 1580 | 1517 | !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! |
| 1581 | 1518 | \****************************************************************/ |
| 1582 | 1519 | /***/ ((module) => { |
| 1583 | 1520 | |
| 1584 | -function _setPrototypeOf(t, e) { | |
| 1585 | - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | |
| 1586 | - return t.__proto__ = e, t; | |
| 1587 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); | |
| 1521 | +function _setPrototypeOf(o, p) { | |
| 1522 | + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | |
| 1523 | + o.__proto__ = p; | |
| 1524 | + return o; | |
| 1525 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1526 | + return _setPrototypeOf(o, p); | |
| 1588 | 1527 | } |
| 1589 | 1528 | module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1590 | 1529 | |
| 1591 | 1530 | /***/ }), |
| @@ -1599,10 +1538,10 @@ | ||
| 1599 | 1538 | var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); |
| 1600 | 1539 | var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); |
| 1601 | 1540 | var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); |
| 1602 | 1541 | var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); |
| 1603 | -function _slicedToArray(r, e) { | |
| 1604 | - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 1542 | +function _slicedToArray(arr, i) { | |
| 1543 | + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | |
| 1605 | 1544 | } |
| 1606 | 1545 | module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1607 | 1546 | |
| 1608 | 1547 | /***/ }), |
| @@ -1616,52 +1555,15 @@ | ||
| 1616 | 1555 | var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"); |
| 1617 | 1556 | var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../node_modules/@babel/runtime/helpers/iterableToArray.js"); |
| 1618 | 1557 | var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); |
| 1619 | 1558 | var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js"); |
| 1620 | -function _toConsumableArray(r) { | |
| 1621 | - return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread(); | |
| 1559 | +function _toConsumableArray(arr) { | |
| 1560 | + return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); | |
| 1622 | 1561 | } |
| 1623 | 1562 | module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1624 | 1563 | |
| 1625 | 1564 | /***/ }), |
| 1626 | 1565 | |
| 1627 | -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 1628 | -/*!*************************************************************!*\ | |
| 1629 | - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 1630 | - \*************************************************************/ | |
| 1631 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1632 | - | |
| 1633 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 1634 | -function toPrimitive(t, r) { | |
| 1635 | - if ("object" != _typeof(t) || !t) return t; | |
| 1636 | - var e = t[Symbol.toPrimitive]; | |
| 1637 | - if (void 0 !== e) { | |
| 1638 | - var i = e.call(t, r || "default"); | |
| 1639 | - if ("object" != _typeof(i)) return i; | |
| 1640 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 1641 | - } | |
| 1642 | - return ("string" === r ? String : Number)(t); | |
| 1643 | -} | |
| 1644 | -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1645 | - | |
| 1646 | -/***/ }), | |
| 1647 | - | |
| 1648 | -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 1649 | -/*!***************************************************************!*\ | |
| 1650 | - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 1651 | - \***************************************************************/ | |
| 1652 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1653 | - | |
| 1654 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 1655 | -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 1656 | -function toPropertyKey(t) { | |
| 1657 | - var i = toPrimitive(t, "string"); | |
| 1658 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 1659 | -} | |
| 1660 | -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1661 | - | |
| 1662 | -/***/ }), | |
| 1663 | - | |
| 1664 | 1566 | /***/ "../node_modules/@babel/runtime/helpers/typeof.js": |
| 1665 | 1567 | /*!********************************************************!*\ |
| 1666 | 1568 | !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! |
| 1667 | 1569 | \********************************************************/ |
| @@ -1666,16 +1568,16 @@ | ||
| 1666 | 1568 | !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! |
| 1667 | 1569 | \********************************************************/ |
| 1668 | 1570 | /***/ ((module) => { |
| 1669 | 1571 | |
| 1670 | -function _typeof(o) { | |
| 1572 | +function _typeof(obj) { | |
| 1671 | 1573 | "@babel/helpers - typeof"; |
| 1672 | 1574 | |
| 1673 | - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 1674 | - return typeof o; | |
| 1675 | - } : function (o) { | |
| 1676 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 1677 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 1575 | + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { | |
| 1576 | + return typeof obj; | |
| 1577 | + } : function (obj) { | |
| 1578 | + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | |
| 1579 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); | |
| 1678 | 1580 | } |
| 1679 | 1581 | module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1680 | 1582 | |
| 1681 | 1583 | /***/ }), |
| @@ -1686,14 +1588,15 @@ | ||
| 1686 | 1588 | \****************************************************************************/ |
| 1687 | 1589 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1688 | 1590 | |
| 1689 | 1591 | var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); |
| 1690 | -function _unsupportedIterableToArray(r, a) { | |
| 1691 | - if (r) { | |
| 1692 | - if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 1693 | - var t = {}.toString.call(r).slice(8, -1); | |
| 1694 | - return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0; | |
| 1695 | - } | |
| 1592 | +function _unsupportedIterableToArray(o, minLen) { | |
| 1593 | + if (!o) return; | |
| 1594 | + if (typeof o === "string") return arrayLikeToArray(o, minLen); | |
| 1595 | + var n = Object.prototype.toString.call(o).slice(8, -1); | |
| 1596 | + if (n === "Object" && o.constructor) n = o.constructor.name; | |
| 1597 | + if (n === "Map" || n === "Set") return Array.from(o); | |
| 1598 | + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); | |
| 1696 | 1599 | } |
| 1697 | 1600 | module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1698 | 1601 | |
| 1699 | 1602 | /***/ }), |
| @@ -1720,19 +1623,8 @@ | ||
| 1720 | 1623 | } |
| 1721 | 1624 | } |
| 1722 | 1625 | |
| 1723 | 1626 | |
| 1724 | -/***/ }), | |
| 1725 | - | |
| 1726 | -/***/ "@wordpress/i18n": | |
| 1727 | -/*!**************************!*\ | |
| 1728 | - !*** external "wp.i18n" ***! | |
| 1729 | - \**************************/ | |
| 1730 | -/***/ ((module) => { | |
| 1731 | - | |
| 1732 | -"use strict"; | |
| 1733 | -module.exports = wp.i18n; | |
| 1734 | - | |
| 1735 | 1627 | /***/ }) |
| 1736 | 1628 | |
| 1737 | 1629 | /******/ }); |
| 1738 | 1630 | /************************************************************************/ |
| @@ -1761,9 +1653,9 @@ | ||
| 1761 | 1653 | /******/ } |
| 1762 | 1654 | /******/ |
| 1763 | 1655 | /************************************************************************/ |
| 1764 | 1656 | var __webpack_exports__ = {}; |
| 1765 | -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. | |
| 1657 | +// This entry need to be wrapped in an IIFE because it need to be in strict mode. | |
| 1766 | 1658 | (() => { |
| 1767 | 1659 | "use strict"; |
| 1768 | 1660 | /*!******************************************************************!*\ |
| 1769 | 1661 | !*** ../modules/kit-elements-defaults/assets/js/editor/index.js ***! |