| @@ -1,79 +1,3394 @@ | ||
| 1 | +/*! elementor - v3.5.3 - 28-12-2021 */ | |
| 1 | 2 | /******/ (() => { // webpackBootstrap |
| 2 | 3 | /******/ var __webpack_modules__ = ({ |
| 3 | 4 | |
| 4 | -/***/ "../assets/dev/js/editor/command-bases/command-container-base.js": | |
| 5 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/array/from.js": | |
| 6 | +/*!********************************************************************!*\ | |
| 7 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/array/from.js ***! | |
| 8 | + \********************************************************************/ | |
| 9 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 10 | + | |
| 11 | +module.exports = __webpack_require__(/*! core-js/library/fn/array/from */ "../node_modules/core-js/library/fn/array/from.js"); | |
| 12 | + | |
| 13 | +/***/ }), | |
| 14 | + | |
| 15 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/array/is-array.js": | |
| 16 | +/*!************************************************************************!*\ | |
| 17 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/array/is-array.js ***! | |
| 18 | + \************************************************************************/ | |
| 19 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20 | + | |
| 21 | +module.exports = __webpack_require__(/*! core-js/library/fn/array/is-array */ "../node_modules/core-js/library/fn/array/is-array.js"); | |
| 22 | + | |
| 23 | +/***/ }), | |
| 24 | + | |
| 25 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/map.js": | |
| 26 | +/*!*************************************************************!*\ | |
| 27 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/map.js ***! | |
| 28 | + \*************************************************************/ | |
| 29 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 30 | + | |
| 31 | +module.exports = __webpack_require__(/*! core-js/library/fn/map */ "../node_modules/core-js/library/fn/map.js"); | |
| 32 | + | |
| 33 | +/***/ }), | |
| 34 | + | |
| 35 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/object/assign.js": | |
| 5 | 36 | /*!***********************************************************************!*\ |
| 6 | - !*** ../assets/dev/js/editor/command-bases/command-container-base.js ***! | |
| 37 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/object/assign.js ***! | |
| 7 | 38 | \***********************************************************************/ |
| 39 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 40 | + | |
| 41 | +module.exports = __webpack_require__(/*! core-js/library/fn/object/assign */ "../node_modules/core-js/library/fn/object/assign.js"); | |
| 42 | + | |
| 43 | +/***/ }), | |
| 44 | + | |
| 45 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/object/create.js": | |
| 46 | +/*!***********************************************************************!*\ | |
| 47 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/object/create.js ***! | |
| 48 | + \***********************************************************************/ | |
| 49 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 50 | + | |
| 51 | +module.exports = __webpack_require__(/*! core-js/library/fn/object/create */ "../node_modules/core-js/library/fn/object/create.js"); | |
| 52 | + | |
| 53 | +/***/ }), | |
| 54 | + | |
| 55 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/object/define-properties.js": | |
| 56 | +/*!**********************************************************************************!*\ | |
| 57 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/object/define-properties.js ***! | |
| 58 | + \**********************************************************************************/ | |
| 59 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 60 | + | |
| 61 | +module.exports = __webpack_require__(/*! core-js/library/fn/object/define-properties */ "../node_modules/core-js/library/fn/object/define-properties.js"); | |
| 62 | + | |
| 63 | +/***/ }), | |
| 64 | + | |
| 65 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js": | |
| 66 | +/*!********************************************************************************!*\ | |
| 67 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js ***! | |
| 68 | + \********************************************************************************/ | |
| 69 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 70 | + | |
| 71 | +module.exports = __webpack_require__(/*! core-js/library/fn/object/define-property */ "../node_modules/core-js/library/fn/object/define-property.js"); | |
| 72 | + | |
| 73 | +/***/ }), | |
| 74 | + | |
| 75 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/object/entries.js": | |
| 76 | +/*!************************************************************************!*\ | |
| 77 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/object/entries.js ***! | |
| 78 | + \************************************************************************/ | |
| 79 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 80 | + | |
| 81 | +module.exports = __webpack_require__(/*! core-js/library/fn/object/entries */ "../node_modules/core-js/library/fn/object/entries.js"); | |
| 82 | + | |
| 83 | +/***/ }), | |
| 84 | + | |
| 85 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js": | |
| 86 | +/*!********************************************************************************************!*\ | |
| 87 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js ***! | |
| 88 | + \********************************************************************************************/ | |
| 89 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 90 | + | |
| 91 | +module.exports = __webpack_require__(/*! core-js/library/fn/object/get-own-property-descriptor */ "../node_modules/core-js/library/fn/object/get-own-property-descriptor.js"); | |
| 92 | + | |
| 93 | +/***/ }), | |
| 94 | + | |
| 95 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptors.js": | |
| 96 | +/*!*********************************************************************************************!*\ | |
| 97 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptors.js ***! | |
| 98 | + \*********************************************************************************************/ | |
| 99 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 100 | + | |
| 101 | +module.exports = __webpack_require__(/*! core-js/library/fn/object/get-own-property-descriptors */ "../node_modules/core-js/library/fn/object/get-own-property-descriptors.js"); | |
| 102 | + | |
| 103 | +/***/ }), | |
| 104 | + | |
| 105 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-symbols.js": | |
| 106 | +/*!*****************************************************************************************!*\ | |
| 107 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-symbols.js ***! | |
| 108 | + \*****************************************************************************************/ | |
| 109 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 110 | + | |
| 111 | +module.exports = __webpack_require__(/*! core-js/library/fn/object/get-own-property-symbols */ "../node_modules/core-js/library/fn/object/get-own-property-symbols.js"); | |
| 112 | + | |
| 113 | +/***/ }), | |
| 114 | + | |
| 115 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/object/get-prototype-of.js": | |
| 116 | +/*!*********************************************************************************!*\ | |
| 117 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/object/get-prototype-of.js ***! | |
| 118 | + \*********************************************************************************/ | |
| 119 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 120 | + | |
| 121 | +module.exports = __webpack_require__(/*! core-js/library/fn/object/get-prototype-of */ "../node_modules/core-js/library/fn/object/get-prototype-of.js"); | |
| 122 | + | |
| 123 | +/***/ }), | |
| 124 | + | |
| 125 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js": | |
| 126 | +/*!*********************************************************************!*\ | |
| 127 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/object/keys.js ***! | |
| 128 | + \*********************************************************************/ | |
| 129 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 130 | + | |
| 131 | +module.exports = __webpack_require__(/*! core-js/library/fn/object/keys */ "../node_modules/core-js/library/fn/object/keys.js"); | |
| 132 | + | |
| 133 | +/***/ }), | |
| 134 | + | |
| 135 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/object/set-prototype-of.js": | |
| 136 | +/*!*********************************************************************************!*\ | |
| 137 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/object/set-prototype-of.js ***! | |
| 138 | + \*********************************************************************************/ | |
| 139 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 140 | + | |
| 141 | +module.exports = __webpack_require__(/*! core-js/library/fn/object/set-prototype-of */ "../node_modules/core-js/library/fn/object/set-prototype-of.js"); | |
| 142 | + | |
| 143 | +/***/ }), | |
| 144 | + | |
| 145 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/object/values.js": | |
| 146 | +/*!***********************************************************************!*\ | |
| 147 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/object/values.js ***! | |
| 148 | + \***********************************************************************/ | |
| 149 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 150 | + | |
| 151 | +module.exports = __webpack_require__(/*! core-js/library/fn/object/values */ "../node_modules/core-js/library/fn/object/values.js"); | |
| 152 | + | |
| 153 | +/***/ }), | |
| 154 | + | |
| 155 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/parse-int.js": | |
| 156 | +/*!*******************************************************************!*\ | |
| 157 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/parse-int.js ***! | |
| 158 | + \*******************************************************************/ | |
| 159 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 160 | + | |
| 161 | +module.exports = __webpack_require__(/*! core-js/library/fn/parse-int */ "../node_modules/core-js/library/fn/parse-int.js"); | |
| 162 | + | |
| 163 | +/***/ }), | |
| 164 | + | |
| 165 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/promise.js": | |
| 166 | +/*!*****************************************************************!*\ | |
| 167 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/promise.js ***! | |
| 168 | + \*****************************************************************/ | |
| 169 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 170 | + | |
| 171 | +module.exports = __webpack_require__(/*! core-js/library/fn/promise */ "../node_modules/core-js/library/fn/promise.js"); | |
| 172 | + | |
| 173 | +/***/ }), | |
| 174 | + | |
| 175 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/reflect/construct.js": | |
| 176 | +/*!***************************************************************************!*\ | |
| 177 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/reflect/construct.js ***! | |
| 178 | + \***************************************************************************/ | |
| 179 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 180 | + | |
| 181 | +module.exports = __webpack_require__(/*! core-js/library/fn/reflect/construct */ "../node_modules/core-js/library/fn/reflect/construct.js"); | |
| 182 | + | |
| 183 | +/***/ }), | |
| 184 | + | |
| 185 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/reflect/get.js": | |
| 186 | +/*!*********************************************************************!*\ | |
| 187 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/reflect/get.js ***! | |
| 188 | + \*********************************************************************/ | |
| 189 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 190 | + | |
| 191 | +module.exports = __webpack_require__(/*! core-js/library/fn/reflect/get */ "../node_modules/core-js/library/fn/reflect/get.js"); | |
| 192 | + | |
| 193 | +/***/ }), | |
| 194 | + | |
| 195 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/symbol.js": | |
| 196 | +/*!****************************************************************!*\ | |
| 197 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/symbol.js ***! | |
| 198 | + \****************************************************************/ | |
| 199 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 200 | + | |
| 201 | +module.exports = __webpack_require__(/*! core-js/library/fn/symbol */ "../node_modules/core-js/library/fn/symbol/index.js"); | |
| 202 | + | |
| 203 | +/***/ }), | |
| 204 | + | |
| 205 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/symbol/has-instance.js": | |
| 206 | +/*!*****************************************************************************!*\ | |
| 207 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/symbol/has-instance.js ***! | |
| 208 | + \*****************************************************************************/ | |
| 209 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 210 | + | |
| 211 | +module.exports = __webpack_require__(/*! core-js/library/fn/symbol/has-instance */ "../node_modules/core-js/library/fn/symbol/has-instance.js"); | |
| 212 | + | |
| 213 | +/***/ }), | |
| 214 | + | |
| 215 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/symbol/iterator.js": | |
| 216 | +/*!*************************************************************************!*\ | |
| 217 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/symbol/iterator.js ***! | |
| 218 | + \*************************************************************************/ | |
| 219 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 220 | + | |
| 221 | +module.exports = __webpack_require__(/*! core-js/library/fn/symbol/iterator */ "../node_modules/core-js/library/fn/symbol/iterator.js"); | |
| 222 | + | |
| 223 | +/***/ }), | |
| 224 | + | |
| 225 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/symbol/to-string-tag.js": | |
| 226 | +/*!******************************************************************************!*\ | |
| 227 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/symbol/to-string-tag.js ***! | |
| 228 | + \******************************************************************************/ | |
| 229 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 230 | + | |
| 231 | +module.exports = __webpack_require__(/*! core-js/library/fn/symbol/to-string-tag */ "../node_modules/core-js/library/fn/symbol/to-string-tag.js"); | |
| 232 | + | |
| 233 | +/***/ }), | |
| 234 | + | |
| 235 | +/***/ "../node_modules/@babel/runtime-corejs2/core-js/weak-map.js": | |
| 236 | +/*!******************************************************************!*\ | |
| 237 | + !*** ../node_modules/@babel/runtime-corejs2/core-js/weak-map.js ***! | |
| 238 | + \******************************************************************/ | |
| 239 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 240 | + | |
| 241 | +module.exports = __webpack_require__(/*! core-js/library/fn/weak-map */ "../node_modules/core-js/library/fn/weak-map.js"); | |
| 242 | + | |
| 243 | +/***/ }), | |
| 244 | + | |
| 245 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/arrayLikeToArray.js": | |
| 246 | +/*!**************************************************************************!*\ | |
| 247 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/arrayLikeToArray.js ***! | |
| 248 | + \**************************************************************************/ | |
| 249 | +/***/ ((module) => { | |
| 250 | + | |
| 251 | +function _arrayLikeToArray(arr, len) { | |
| 252 | + if (len == null || len > arr.length) len = arr.length; | |
| 253 | + | |
| 254 | + for (var i = 0, arr2 = new Array(len); i < len; i++) { | |
| 255 | + arr2[i] = arr[i]; | |
| 256 | + } | |
| 257 | + | |
| 258 | + return arr2; | |
| 259 | +} | |
| 260 | + | |
| 261 | +module.exports = _arrayLikeToArray; | |
| 262 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 263 | + | |
| 264 | +/***/ }), | |
| 265 | + | |
| 266 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/arrayWithHoles.js": | |
| 267 | +/*!************************************************************************!*\ | |
| 268 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/arrayWithHoles.js ***! | |
| 269 | + \************************************************************************/ | |
| 270 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 271 | + | |
| 272 | +var _Array$isArray = __webpack_require__(/*! @babel/runtime-corejs2/core-js/array/is-array */ "../node_modules/@babel/runtime-corejs2/core-js/array/is-array.js"); | |
| 273 | + | |
| 274 | +function _arrayWithHoles(arr) { | |
| 275 | + if (_Array$isArray(arr)) return arr; | |
| 276 | +} | |
| 277 | + | |
| 278 | +module.exports = _arrayWithHoles; | |
| 279 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 280 | + | |
| 281 | +/***/ }), | |
| 282 | + | |
| 283 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/arrayWithoutHoles.js": | |
| 284 | +/*!***************************************************************************!*\ | |
| 285 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/arrayWithoutHoles.js ***! | |
| 286 | + \***************************************************************************/ | |
| 287 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 288 | + | |
| 289 | +var _Array$isArray = __webpack_require__(/*! @babel/runtime-corejs2/core-js/array/is-array */ "../node_modules/@babel/runtime-corejs2/core-js/array/is-array.js"); | |
| 290 | + | |
| 291 | +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime-corejs2/helpers/arrayLikeToArray.js"); | |
| 292 | + | |
| 293 | +function _arrayWithoutHoles(arr) { | |
| 294 | + if (_Array$isArray(arr)) return arrayLikeToArray(arr); | |
| 295 | +} | |
| 296 | + | |
| 297 | +module.exports = _arrayWithoutHoles; | |
| 298 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 299 | + | |
| 300 | +/***/ }), | |
| 301 | + | |
| 302 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/assertThisInitialized.js": | |
| 303 | +/*!*******************************************************************************!*\ | |
| 304 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/assertThisInitialized.js ***! | |
| 305 | + \*******************************************************************************/ | |
| 306 | +/***/ ((module) => { | |
| 307 | + | |
| 308 | +function _assertThisInitialized(self) { | |
| 309 | + if (self === void 0) { | |
| 310 | + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 311 | + } | |
| 312 | + | |
| 313 | + return self; | |
| 314 | +} | |
| 315 | + | |
| 316 | +module.exports = _assertThisInitialized; | |
| 317 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 318 | + | |
| 319 | +/***/ }), | |
| 320 | + | |
| 321 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js": | |
| 322 | +/*!**************************************************************************!*\ | |
| 323 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js ***! | |
| 324 | + \**************************************************************************/ | |
| 325 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 326 | + | |
| 327 | +var _Promise = __webpack_require__(/*! @babel/runtime-corejs2/core-js/promise */ "../node_modules/@babel/runtime-corejs2/core-js/promise.js"); | |
| 328 | + | |
| 329 | +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | |
| 330 | + try { | |
| 331 | + var info = gen[key](arg); | |
| 332 | + var value = info.value; | |
| 333 | + } catch (error) { | |
| 334 | + reject(error); | |
| 335 | + return; | |
| 336 | + } | |
| 337 | + | |
| 338 | + if (info.done) { | |
| 339 | + resolve(value); | |
| 340 | + } else { | |
| 341 | + _Promise.resolve(value).then(_next, _throw); | |
| 342 | + } | |
| 343 | +} | |
| 344 | + | |
| 345 | +function _asyncToGenerator(fn) { | |
| 346 | + return function () { | |
| 347 | + var self = this, | |
| 348 | + args = arguments; | |
| 349 | + return new _Promise(function (resolve, reject) { | |
| 350 | + var gen = fn.apply(self, args); | |
| 351 | + | |
| 352 | + function _next(value) { | |
| 353 | + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | |
| 354 | + } | |
| 355 | + | |
| 356 | + function _throw(err) { | |
| 357 | + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | |
| 358 | + } | |
| 359 | + | |
| 360 | + _next(undefined); | |
| 361 | + }); | |
| 362 | + }; | |
| 363 | +} | |
| 364 | + | |
| 365 | +module.exports = _asyncToGenerator; | |
| 366 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 367 | + | |
| 368 | +/***/ }), | |
| 369 | + | |
| 370 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js": | |
| 371 | +/*!************************************************************************!*\ | |
| 372 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js ***! | |
| 373 | + \************************************************************************/ | |
| 374 | +/***/ ((module) => { | |
| 375 | + | |
| 376 | +function _classCallCheck(instance, Constructor) { | |
| 377 | + if (!(instance instanceof Constructor)) { | |
| 378 | + throw new TypeError("Cannot call a class as a function"); | |
| 379 | + } | |
| 380 | +} | |
| 381 | + | |
| 382 | +module.exports = _classCallCheck; | |
| 383 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 384 | + | |
| 385 | +/***/ }), | |
| 386 | + | |
| 387 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/construct.js": | |
| 388 | +/*!*******************************************************************!*\ | |
| 389 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/construct.js ***! | |
| 390 | + \*******************************************************************/ | |
| 391 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 392 | + | |
| 393 | +var _Reflect$construct = __webpack_require__(/*! @babel/runtime-corejs2/core-js/reflect/construct */ "../node_modules/@babel/runtime-corejs2/core-js/reflect/construct.js"); | |
| 394 | + | |
| 395 | +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime-corejs2/helpers/setPrototypeOf.js"); | |
| 396 | + | |
| 397 | +var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime-corejs2/helpers/isNativeReflectConstruct.js"); | |
| 398 | + | |
| 399 | +function _construct(Parent, args, Class) { | |
| 400 | + if (isNativeReflectConstruct()) { | |
| 401 | + module.exports = _construct = _Reflect$construct; | |
| 402 | + module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 403 | + } else { | |
| 404 | + module.exports = _construct = function _construct(Parent, args, Class) { | |
| 405 | + var a = [null]; | |
| 406 | + a.push.apply(a, args); | |
| 407 | + var Constructor = Function.bind.apply(Parent, a); | |
| 408 | + var instance = new Constructor(); | |
| 409 | + if (Class) setPrototypeOf(instance, Class.prototype); | |
| 410 | + return instance; | |
| 411 | + }; | |
| 412 | + | |
| 413 | + module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 414 | + } | |
| 415 | + | |
| 416 | + return _construct.apply(null, arguments); | |
| 417 | +} | |
| 418 | + | |
| 419 | +module.exports = _construct; | |
| 420 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 421 | + | |
| 422 | +/***/ }), | |
| 423 | + | |
| 424 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js": | |
| 425 | +/*!*********************************************************************!*\ | |
| 426 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/createClass.js ***! | |
| 427 | + \*********************************************************************/ | |
| 428 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 429 | + | |
| 430 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 431 | + | |
| 432 | +function _defineProperties(target, props) { | |
| 433 | + for (var i = 0; i < props.length; i++) { | |
| 434 | + var descriptor = props[i]; | |
| 435 | + descriptor.enumerable = descriptor.enumerable || false; | |
| 436 | + descriptor.configurable = true; | |
| 437 | + if ("value" in descriptor) descriptor.writable = true; | |
| 438 | + | |
| 439 | + _Object$defineProperty(target, descriptor.key, descriptor); | |
| 440 | + } | |
| 441 | +} | |
| 442 | + | |
| 443 | +function _createClass(Constructor, protoProps, staticProps) { | |
| 444 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); | |
| 445 | + if (staticProps) _defineProperties(Constructor, staticProps); | |
| 446 | + return Constructor; | |
| 447 | +} | |
| 448 | + | |
| 449 | +module.exports = _createClass; | |
| 450 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 451 | + | |
| 452 | +/***/ }), | |
| 453 | + | |
| 454 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/createForOfIteratorHelper.js": | |
| 455 | +/*!***********************************************************************************!*\ | |
| 456 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/createForOfIteratorHelper.js ***! | |
| 457 | + \***********************************************************************************/ | |
| 458 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 459 | + | |
| 460 | +var _Symbol = __webpack_require__(/*! @babel/runtime-corejs2/core-js/symbol */ "../node_modules/@babel/runtime-corejs2/core-js/symbol.js"); | |
| 461 | + | |
| 462 | +var _Symbol$iterator = __webpack_require__(/*! @babel/runtime-corejs2/core-js/symbol/iterator */ "../node_modules/@babel/runtime-corejs2/core-js/symbol/iterator.js"); | |
| 463 | + | |
| 464 | +var _Array$isArray = __webpack_require__(/*! @babel/runtime-corejs2/core-js/array/is-array */ "../node_modules/@babel/runtime-corejs2/core-js/array/is-array.js"); | |
| 465 | + | |
| 466 | +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime-corejs2/helpers/unsupportedIterableToArray.js"); | |
| 467 | + | |
| 468 | +function _createForOfIteratorHelper(o, allowArrayLike) { | |
| 469 | + var it = typeof _Symbol !== "undefined" && o[_Symbol$iterator] || o["@@iterator"]; | |
| 470 | + | |
| 471 | + if (!it) { | |
| 472 | + if (_Array$isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { | |
| 473 | + if (it) o = it; | |
| 474 | + var i = 0; | |
| 475 | + | |
| 476 | + var F = function F() {}; | |
| 477 | + | |
| 478 | + return { | |
| 479 | + s: F, | |
| 480 | + n: function n() { | |
| 481 | + if (i >= o.length) return { | |
| 482 | + done: true | |
| 483 | + }; | |
| 484 | + return { | |
| 485 | + done: false, | |
| 486 | + value: o[i++] | |
| 487 | + }; | |
| 488 | + }, | |
| 489 | + e: function e(_e) { | |
| 490 | + throw _e; | |
| 491 | + }, | |
| 492 | + f: F | |
| 493 | + }; | |
| 494 | + } | |
| 495 | + | |
| 496 | + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 497 | + } | |
| 498 | + | |
| 499 | + var normalCompletion = true, | |
| 500 | + didErr = false, | |
| 501 | + err; | |
| 502 | + return { | |
| 503 | + s: function s() { | |
| 504 | + it = it.call(o); | |
| 505 | + }, | |
| 506 | + n: function n() { | |
| 507 | + var step = it.next(); | |
| 508 | + normalCompletion = step.done; | |
| 509 | + return step; | |
| 510 | + }, | |
| 511 | + e: function e(_e2) { | |
| 512 | + didErr = true; | |
| 513 | + err = _e2; | |
| 514 | + }, | |
| 515 | + f: function f() { | |
| 516 | + try { | |
| 517 | + if (!normalCompletion && it["return"] != null) it["return"](); | |
| 518 | + } finally { | |
| 519 | + if (didErr) throw err; | |
| 520 | + } | |
| 521 | + } | |
| 522 | + }; | |
| 523 | +} | |
| 524 | + | |
| 525 | +module.exports = _createForOfIteratorHelper; | |
| 526 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 527 | + | |
| 528 | +/***/ }), | |
| 529 | + | |
| 530 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js": | |
| 531 | +/*!*********************************************************************!*\ | |
| 532 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/createSuper.js ***! | |
| 533 | + \*********************************************************************/ | |
| 534 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 535 | + | |
| 536 | +var _Reflect$construct = __webpack_require__(/*! @babel/runtime-corejs2/core-js/reflect/construct */ "../node_modules/@babel/runtime-corejs2/core-js/reflect/construct.js"); | |
| 537 | + | |
| 538 | +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js"); | |
| 539 | + | |
| 540 | +var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime-corejs2/helpers/isNativeReflectConstruct.js"); | |
| 541 | + | |
| 542 | +var possibleConstructorReturn = __webpack_require__(/*! ./possibleConstructorReturn.js */ "../node_modules/@babel/runtime-corejs2/helpers/possibleConstructorReturn.js"); | |
| 543 | + | |
| 544 | +function _createSuper(Derived) { | |
| 545 | + var hasNativeReflectConstruct = isNativeReflectConstruct(); | |
| 546 | + return function _createSuperInternal() { | |
| 547 | + var Super = getPrototypeOf(Derived), | |
| 548 | + result; | |
| 549 | + | |
| 550 | + if (hasNativeReflectConstruct) { | |
| 551 | + var NewTarget = getPrototypeOf(this).constructor; | |
| 552 | + result = _Reflect$construct(Super, arguments, NewTarget); | |
| 553 | + } else { | |
| 554 | + result = Super.apply(this, arguments); | |
| 555 | + } | |
| 556 | + | |
| 557 | + return possibleConstructorReturn(this, result); | |
| 558 | + }; | |
| 559 | +} | |
| 560 | + | |
| 561 | +module.exports = _createSuper; | |
| 562 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 563 | + | |
| 564 | +/***/ }), | |
| 565 | + | |
| 566 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/defineProperty.js": | |
| 567 | +/*!************************************************************************!*\ | |
| 568 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/defineProperty.js ***! | |
| 569 | + \************************************************************************/ | |
| 570 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 571 | + | |
| 572 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 573 | + | |
| 574 | +function _defineProperty(obj, key, value) { | |
| 575 | + if (key in obj) { | |
| 576 | + _Object$defineProperty(obj, key, { | |
| 577 | + value: value, | |
| 578 | + enumerable: true, | |
| 579 | + configurable: true, | |
| 580 | + writable: true | |
| 581 | + }); | |
| 582 | + } else { | |
| 583 | + obj[key] = value; | |
| 584 | + } | |
| 585 | + | |
| 586 | + return obj; | |
| 587 | +} | |
| 588 | + | |
| 589 | +module.exports = _defineProperty; | |
| 590 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 591 | + | |
| 592 | +/***/ }), | |
| 593 | + | |
| 594 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/get.js": | |
| 595 | +/*!*************************************************************!*\ | |
| 596 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/get.js ***! | |
| 597 | + \*************************************************************/ | |
| 598 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 599 | + | |
| 600 | +var _Reflect$get = __webpack_require__(/*! @babel/runtime-corejs2/core-js/reflect/get */ "../node_modules/@babel/runtime-corejs2/core-js/reflect/get.js"); | |
| 601 | + | |
| 602 | +var _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/get-own-property-descriptor */ "../node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js"); | |
| 603 | + | |
| 604 | +var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime-corejs2/helpers/superPropBase.js"); | |
| 605 | + | |
| 606 | +function _get(target, property, receiver) { | |
| 607 | + if (typeof Reflect !== "undefined" && _Reflect$get) { | |
| 608 | + module.exports = _get = _Reflect$get; | |
| 609 | + module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 610 | + } else { | |
| 611 | + module.exports = _get = function _get(target, property, receiver) { | |
| 612 | + var base = superPropBase(target, property); | |
| 613 | + if (!base) return; | |
| 614 | + | |
| 615 | + var desc = _Object$getOwnPropertyDescriptor(base, property); | |
| 616 | + | |
| 617 | + if (desc.get) { | |
| 618 | + return desc.get.call(receiver); | |
| 619 | + } | |
| 620 | + | |
| 621 | + return desc.value; | |
| 622 | + }; | |
| 623 | + | |
| 624 | + module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 625 | + } | |
| 626 | + | |
| 627 | + return _get(target, property, receiver || target); | |
| 628 | +} | |
| 629 | + | |
| 630 | +module.exports = _get; | |
| 631 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 632 | + | |
| 633 | +/***/ }), | |
| 634 | + | |
| 635 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js": | |
| 636 | +/*!************************************************************************!*\ | |
| 637 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js ***! | |
| 638 | + \************************************************************************/ | |
| 639 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 640 | + | |
| 641 | +var _Object$setPrototypeOf = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/set-prototype-of */ "../node_modules/@babel/runtime-corejs2/core-js/object/set-prototype-of.js"); | |
| 642 | + | |
| 643 | +var _Object$getPrototypeOf = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/get-prototype-of */ "../node_modules/@babel/runtime-corejs2/core-js/object/get-prototype-of.js"); | |
| 644 | + | |
| 645 | +function _getPrototypeOf(o) { | |
| 646 | + module.exports = _getPrototypeOf = _Object$setPrototypeOf ? _Object$getPrototypeOf : function _getPrototypeOf(o) { | |
| 647 | + return o.__proto__ || _Object$getPrototypeOf(o); | |
| 648 | + }; | |
| 649 | + module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 650 | + return _getPrototypeOf(o); | |
| 651 | +} | |
| 652 | + | |
| 653 | +module.exports = _getPrototypeOf; | |
| 654 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 655 | + | |
| 656 | +/***/ }), | |
| 657 | + | |
| 658 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js": | |
| 659 | +/*!******************************************************************!*\ | |
| 660 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/inherits.js ***! | |
| 661 | + \******************************************************************/ | |
| 662 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 663 | + | |
| 664 | +var _Object$create = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/create */ "../node_modules/@babel/runtime-corejs2/core-js/object/create.js"); | |
| 665 | + | |
| 666 | +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime-corejs2/helpers/setPrototypeOf.js"); | |
| 667 | + | |
| 668 | +function _inherits(subClass, superClass) { | |
| 669 | + if (typeof superClass !== "function" && superClass !== null) { | |
| 670 | + throw new TypeError("Super expression must either be null or a function"); | |
| 671 | + } | |
| 672 | + | |
| 673 | + subClass.prototype = _Object$create(superClass && superClass.prototype, { | |
| 674 | + constructor: { | |
| 675 | + value: subClass, | |
| 676 | + writable: true, | |
| 677 | + configurable: true | |
| 678 | + } | |
| 679 | + }); | |
| 680 | + if (superClass) setPrototypeOf(subClass, superClass); | |
| 681 | +} | |
| 682 | + | |
| 683 | +module.exports = _inherits; | |
| 684 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 685 | + | |
| 686 | +/***/ }), | |
| 687 | + | |
| 688 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js": | |
| 689 | +/*!*******************************************************************************!*\ | |
| 690 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js ***! | |
| 691 | + \*******************************************************************************/ | |
| 692 | +/***/ ((module) => { | |
| 693 | + | |
| 694 | +function _interopRequireDefault(obj) { | |
| 695 | + return obj && obj.__esModule ? obj : { | |
| 696 | + "default": obj | |
| 697 | + }; | |
| 698 | +} | |
| 699 | + | |
| 700 | +module.exports = _interopRequireDefault; | |
| 701 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 702 | + | |
| 703 | +/***/ }), | |
| 704 | + | |
| 705 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js": | |
| 706 | +/*!********************************************************************************!*\ | |
| 707 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js ***! | |
| 708 | + \********************************************************************************/ | |
| 709 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 710 | + | |
| 711 | +var _typeof = __webpack_require__(/*! @babel/runtime-corejs2/helpers/typeof */ "../node_modules/@babel/runtime-corejs2/helpers/typeof.js")["default"]; | |
| 712 | + | |
| 713 | +var _WeakMap = __webpack_require__(/*! @babel/runtime-corejs2/core-js/weak-map */ "../node_modules/@babel/runtime-corejs2/core-js/weak-map.js"); | |
| 714 | + | |
| 715 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 716 | + | |
| 717 | +var _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/get-own-property-descriptor */ "../node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js"); | |
| 718 | + | |
| 719 | +function _getRequireWildcardCache(nodeInterop) { | |
| 720 | + if (typeof _WeakMap !== "function") return null; | |
| 721 | + var cacheBabelInterop = new _WeakMap(); | |
| 722 | + var cacheNodeInterop = new _WeakMap(); | |
| 723 | + return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { | |
| 724 | + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; | |
| 725 | + })(nodeInterop); | |
| 726 | +} | |
| 727 | + | |
| 728 | +function _interopRequireWildcard(obj, nodeInterop) { | |
| 729 | + if (!nodeInterop && obj && obj.__esModule) { | |
| 730 | + return obj; | |
| 731 | + } | |
| 732 | + | |
| 733 | + if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { | |
| 734 | + return { | |
| 735 | + "default": obj | |
| 736 | + }; | |
| 737 | + } | |
| 738 | + | |
| 739 | + var cache = _getRequireWildcardCache(nodeInterop); | |
| 740 | + | |
| 741 | + if (cache && cache.has(obj)) { | |
| 742 | + return cache.get(obj); | |
| 743 | + } | |
| 744 | + | |
| 745 | + var newObj = {}; | |
| 746 | + var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; | |
| 747 | + | |
| 748 | + for (var key in obj) { | |
| 749 | + if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { | |
| 750 | + var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; | |
| 751 | + | |
| 752 | + if (desc && (desc.get || desc.set)) { | |
| 753 | + _Object$defineProperty(newObj, key, desc); | |
| 754 | + } else { | |
| 755 | + newObj[key] = obj[key]; | |
| 756 | + } | |
| 757 | + } | |
| 758 | + } | |
| 759 | + | |
| 760 | + newObj["default"] = obj; | |
| 761 | + | |
| 762 | + if (cache) { | |
| 763 | + cache.set(obj, newObj); | |
| 764 | + } | |
| 765 | + | |
| 766 | + return newObj; | |
| 767 | +} | |
| 768 | + | |
| 769 | +module.exports = _interopRequireWildcard; | |
| 770 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 771 | + | |
| 772 | +/***/ }), | |
| 773 | + | |
| 774 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/isNativeFunction.js": | |
| 775 | +/*!**************************************************************************!*\ | |
| 776 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/isNativeFunction.js ***! | |
| 777 | + \**************************************************************************/ | |
| 778 | +/***/ ((module) => { | |
| 779 | + | |
| 780 | +function _isNativeFunction(fn) { | |
| 781 | + return Function.toString.call(fn).indexOf("[native code]") !== -1; | |
| 782 | +} | |
| 783 | + | |
| 784 | +module.exports = _isNativeFunction; | |
| 785 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 786 | + | |
| 787 | +/***/ }), | |
| 788 | + | |
| 789 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/isNativeReflectConstruct.js": | |
| 790 | +/*!**********************************************************************************!*\ | |
| 791 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/isNativeReflectConstruct.js ***! | |
| 792 | + \**********************************************************************************/ | |
| 793 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 794 | + | |
| 795 | +var _Reflect$construct = __webpack_require__(/*! @babel/runtime-corejs2/core-js/reflect/construct */ "../node_modules/@babel/runtime-corejs2/core-js/reflect/construct.js"); | |
| 796 | + | |
| 797 | +function _isNativeReflectConstruct() { | |
| 798 | + if (typeof Reflect === "undefined" || !_Reflect$construct) return false; | |
| 799 | + if (_Reflect$construct.sham) return false; | |
| 800 | + if (typeof Proxy === "function") return true; | |
| 801 | + | |
| 802 | + try { | |
| 803 | + Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); | |
| 804 | + return true; | |
| 805 | + } catch (e) { | |
| 806 | + return false; | |
| 807 | + } | |
| 808 | +} | |
| 809 | + | |
| 810 | +module.exports = _isNativeReflectConstruct; | |
| 811 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 812 | + | |
| 813 | +/***/ }), | |
| 814 | + | |
| 815 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/iterableToArray.js": | |
| 816 | +/*!*************************************************************************!*\ | |
| 817 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/iterableToArray.js ***! | |
| 818 | + \*************************************************************************/ | |
| 819 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 820 | + | |
| 821 | +var _Symbol = __webpack_require__(/*! @babel/runtime-corejs2/core-js/symbol */ "../node_modules/@babel/runtime-corejs2/core-js/symbol.js"); | |
| 822 | + | |
| 823 | +var _Symbol$iterator = __webpack_require__(/*! @babel/runtime-corejs2/core-js/symbol/iterator */ "../node_modules/@babel/runtime-corejs2/core-js/symbol/iterator.js"); | |
| 824 | + | |
| 825 | +var _Array$from = __webpack_require__(/*! @babel/runtime-corejs2/core-js/array/from */ "../node_modules/@babel/runtime-corejs2/core-js/array/from.js"); | |
| 826 | + | |
| 827 | +function _iterableToArray(iter) { | |
| 828 | + if (typeof _Symbol !== "undefined" && iter[_Symbol$iterator] != null || iter["@@iterator"] != null) return _Array$from(iter); | |
| 829 | +} | |
| 830 | + | |
| 831 | +module.exports = _iterableToArray; | |
| 832 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 833 | + | |
| 834 | +/***/ }), | |
| 835 | + | |
| 836 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/iterableToArrayLimit.js": | |
| 837 | +/*!******************************************************************************!*\ | |
| 838 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/iterableToArrayLimit.js ***! | |
| 839 | + \******************************************************************************/ | |
| 840 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 841 | + | |
| 842 | +var _Symbol = __webpack_require__(/*! @babel/runtime-corejs2/core-js/symbol */ "../node_modules/@babel/runtime-corejs2/core-js/symbol.js"); | |
| 843 | + | |
| 844 | +var _Symbol$iterator = __webpack_require__(/*! @babel/runtime-corejs2/core-js/symbol/iterator */ "../node_modules/@babel/runtime-corejs2/core-js/symbol/iterator.js"); | |
| 845 | + | |
| 846 | +function _iterableToArrayLimit(arr, i) { | |
| 847 | + var _i = arr == null ? null : typeof _Symbol !== "undefined" && arr[_Symbol$iterator] || arr["@@iterator"]; | |
| 848 | + | |
| 849 | + if (_i == null) return; | |
| 850 | + var _arr = []; | |
| 851 | + var _n = true; | |
| 852 | + var _d = false; | |
| 853 | + | |
| 854 | + var _s, _e; | |
| 855 | + | |
| 856 | + try { | |
| 857 | + for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { | |
| 858 | + _arr.push(_s.value); | |
| 859 | + | |
| 860 | + if (i && _arr.length === i) break; | |
| 861 | + } | |
| 862 | + } catch (err) { | |
| 863 | + _d = true; | |
| 864 | + _e = err; | |
| 865 | + } finally { | |
| 866 | + try { | |
| 867 | + if (!_n && _i["return"] != null) _i["return"](); | |
| 868 | + } finally { | |
| 869 | + if (_d) throw _e; | |
| 870 | + } | |
| 871 | + } | |
| 872 | + | |
| 873 | + return _arr; | |
| 874 | +} | |
| 875 | + | |
| 876 | +module.exports = _iterableToArrayLimit; | |
| 877 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 878 | + | |
| 879 | +/***/ }), | |
| 880 | + | |
| 881 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/nonIterableRest.js": | |
| 882 | +/*!*************************************************************************!*\ | |
| 883 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/nonIterableRest.js ***! | |
| 884 | + \*************************************************************************/ | |
| 885 | +/***/ ((module) => { | |
| 886 | + | |
| 887 | +function _nonIterableRest() { | |
| 888 | + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 889 | +} | |
| 890 | + | |
| 891 | +module.exports = _nonIterableRest; | |
| 892 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 893 | + | |
| 894 | +/***/ }), | |
| 895 | + | |
| 896 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/nonIterableSpread.js": | |
| 897 | +/*!***************************************************************************!*\ | |
| 898 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/nonIterableSpread.js ***! | |
| 899 | + \***************************************************************************/ | |
| 900 | +/***/ ((module) => { | |
| 901 | + | |
| 902 | +function _nonIterableSpread() { | |
| 903 | + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 904 | +} | |
| 905 | + | |
| 906 | +module.exports = _nonIterableSpread; | |
| 907 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 908 | + | |
| 909 | +/***/ }), | |
| 910 | + | |
| 911 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/objectSpread2.js": | |
| 912 | +/*!***********************************************************************!*\ | |
| 913 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/objectSpread2.js ***! | |
| 914 | + \***********************************************************************/ | |
| 915 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 916 | + | |
| 917 | +var _Object$keys = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js"); | |
| 918 | + | |
| 919 | +var _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/get-own-property-symbols */ "../node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-symbols.js"); | |
| 920 | + | |
| 921 | +var _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/get-own-property-descriptor */ "../node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js"); | |
| 922 | + | |
| 923 | +var _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/get-own-property-descriptors */ "../node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptors.js"); | |
| 924 | + | |
| 925 | +var _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-properties */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-properties.js"); | |
| 926 | + | |
| 927 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 928 | + | |
| 929 | +var defineProperty = __webpack_require__(/*! ./defineProperty.js */ "../node_modules/@babel/runtime-corejs2/helpers/defineProperty.js"); | |
| 930 | + | |
| 931 | +function ownKeys(object, enumerableOnly) { | |
| 932 | + var keys = _Object$keys(object); | |
| 933 | + | |
| 934 | + if (_Object$getOwnPropertySymbols) { | |
| 935 | + var symbols = _Object$getOwnPropertySymbols(object); | |
| 936 | + | |
| 937 | + if (enumerableOnly) { | |
| 938 | + symbols = symbols.filter(function (sym) { | |
| 939 | + return _Object$getOwnPropertyDescriptor(object, sym).enumerable; | |
| 940 | + }); | |
| 941 | + } | |
| 942 | + | |
| 943 | + keys.push.apply(keys, symbols); | |
| 944 | + } | |
| 945 | + | |
| 946 | + return keys; | |
| 947 | +} | |
| 948 | + | |
| 949 | +function _objectSpread2(target) { | |
| 950 | + for (var i = 1; i < arguments.length; i++) { | |
| 951 | + var source = arguments[i] != null ? arguments[i] : {}; | |
| 952 | + | |
| 953 | + if (i % 2) { | |
| 954 | + ownKeys(Object(source), true).forEach(function (key) { | |
| 955 | + defineProperty(target, key, source[key]); | |
| 956 | + }); | |
| 957 | + } else if (_Object$getOwnPropertyDescriptors) { | |
| 958 | + _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)); | |
| 959 | + } else { | |
| 960 | + ownKeys(Object(source)).forEach(function (key) { | |
| 961 | + _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); | |
| 962 | + }); | |
| 963 | + } | |
| 964 | + } | |
| 965 | + | |
| 966 | + return target; | |
| 967 | +} | |
| 968 | + | |
| 969 | +module.exports = _objectSpread2; | |
| 970 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 971 | + | |
| 972 | +/***/ }), | |
| 973 | + | |
| 974 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/possibleConstructorReturn.js": | |
| 975 | +/*!***********************************************************************************!*\ | |
| 976 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/possibleConstructorReturn.js ***! | |
| 977 | + \***********************************************************************************/ | |
| 978 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 979 | + | |
| 980 | +var _typeof = __webpack_require__(/*! @babel/runtime-corejs2/helpers/typeof */ "../node_modules/@babel/runtime-corejs2/helpers/typeof.js")["default"]; | |
| 981 | + | |
| 982 | +var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime-corejs2/helpers/assertThisInitialized.js"); | |
| 983 | + | |
| 984 | +function _possibleConstructorReturn(self, call) { | |
| 985 | + if (call && (_typeof(call) === "object" || typeof call === "function")) { | |
| 986 | + return call; | |
| 987 | + } else if (call !== void 0) { | |
| 988 | + throw new TypeError("Derived constructors may only return object or undefined"); | |
| 989 | + } | |
| 990 | + | |
| 991 | + return assertThisInitialized(self); | |
| 992 | +} | |
| 993 | + | |
| 994 | +module.exports = _possibleConstructorReturn; | |
| 995 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 996 | + | |
| 997 | +/***/ }), | |
| 998 | + | |
| 999 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/setPrototypeOf.js": | |
| 1000 | +/*!************************************************************************!*\ | |
| 1001 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/setPrototypeOf.js ***! | |
| 1002 | + \************************************************************************/ | |
| 1003 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1004 | + | |
| 1005 | +var _Object$setPrototypeOf = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/set-prototype-of */ "../node_modules/@babel/runtime-corejs2/core-js/object/set-prototype-of.js"); | |
| 1006 | + | |
| 1007 | +function _setPrototypeOf(o, p) { | |
| 1008 | + module.exports = _setPrototypeOf = _Object$setPrototypeOf || function _setPrototypeOf(o, p) { | |
| 1009 | + o.__proto__ = p; | |
| 1010 | + return o; | |
| 1011 | + }; | |
| 1012 | + | |
| 1013 | + module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 1014 | + return _setPrototypeOf(o, p); | |
| 1015 | +} | |
| 1016 | + | |
| 1017 | +module.exports = _setPrototypeOf; | |
| 1018 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 1019 | + | |
| 1020 | +/***/ }), | |
| 1021 | + | |
| 1022 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/slicedToArray.js": | |
| 1023 | +/*!***********************************************************************!*\ | |
| 1024 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/slicedToArray.js ***! | |
| 1025 | + \***********************************************************************/ | |
| 1026 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1027 | + | |
| 1028 | +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime-corejs2/helpers/arrayWithHoles.js"); | |
| 1029 | + | |
| 1030 | +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime-corejs2/helpers/iterableToArrayLimit.js"); | |
| 1031 | + | |
| 1032 | +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime-corejs2/helpers/unsupportedIterableToArray.js"); | |
| 1033 | + | |
| 1034 | +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime-corejs2/helpers/nonIterableRest.js"); | |
| 1035 | + | |
| 1036 | +function _slicedToArray(arr, i) { | |
| 1037 | + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | |
| 1038 | +} | |
| 1039 | + | |
| 1040 | +module.exports = _slicedToArray; | |
| 1041 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 1042 | + | |
| 1043 | +/***/ }), | |
| 1044 | + | |
| 1045 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/superPropBase.js": | |
| 1046 | +/*!***********************************************************************!*\ | |
| 1047 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/superPropBase.js ***! | |
| 1048 | + \***********************************************************************/ | |
| 1049 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1050 | + | |
| 1051 | +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js"); | |
| 1052 | + | |
| 1053 | +function _superPropBase(object, property) { | |
| 1054 | + while (!Object.prototype.hasOwnProperty.call(object, property)) { | |
| 1055 | + object = getPrototypeOf(object); | |
| 1056 | + if (object === null) break; | |
| 1057 | + } | |
| 1058 | + | |
| 1059 | + return object; | |
| 1060 | +} | |
| 1061 | + | |
| 1062 | +module.exports = _superPropBase; | |
| 1063 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 1064 | + | |
| 1065 | +/***/ }), | |
| 1066 | + | |
| 1067 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/toConsumableArray.js": | |
| 1068 | +/*!***************************************************************************!*\ | |
| 1069 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/toConsumableArray.js ***! | |
| 1070 | + \***************************************************************************/ | |
| 1071 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1072 | + | |
| 1073 | +var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ "../node_modules/@babel/runtime-corejs2/helpers/arrayWithoutHoles.js"); | |
| 1074 | + | |
| 1075 | +var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../node_modules/@babel/runtime-corejs2/helpers/iterableToArray.js"); | |
| 1076 | + | |
| 1077 | +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime-corejs2/helpers/unsupportedIterableToArray.js"); | |
| 1078 | + | |
| 1079 | +var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ "../node_modules/@babel/runtime-corejs2/helpers/nonIterableSpread.js"); | |
| 1080 | + | |
| 1081 | +function _toConsumableArray(arr) { | |
| 1082 | + return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); | |
| 1083 | +} | |
| 1084 | + | |
| 1085 | +module.exports = _toConsumableArray; | |
| 1086 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 1087 | + | |
| 1088 | +/***/ }), | |
| 1089 | + | |
| 1090 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/typeof.js": | |
| 1091 | +/*!****************************************************************!*\ | |
| 1092 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/typeof.js ***! | |
| 1093 | + \****************************************************************/ | |
| 1094 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1095 | + | |
| 1096 | +var _Symbol = __webpack_require__(/*! @babel/runtime-corejs2/core-js/symbol */ "../node_modules/@babel/runtime-corejs2/core-js/symbol.js"); | |
| 1097 | + | |
| 1098 | +var _Symbol$iterator = __webpack_require__(/*! @babel/runtime-corejs2/core-js/symbol/iterator */ "../node_modules/@babel/runtime-corejs2/core-js/symbol/iterator.js"); | |
| 1099 | + | |
| 1100 | +function _typeof(obj) { | |
| 1101 | + "@babel/helpers - typeof"; | |
| 1102 | + | |
| 1103 | + if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") { | |
| 1104 | + module.exports = _typeof = function _typeof(obj) { | |
| 1105 | + return typeof obj; | |
| 1106 | + }; | |
| 1107 | + | |
| 1108 | + module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 1109 | + } else { | |
| 1110 | + module.exports = _typeof = function _typeof(obj) { | |
| 1111 | + return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj; | |
| 1112 | + }; | |
| 1113 | + | |
| 1114 | + module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 1115 | + } | |
| 1116 | + | |
| 1117 | + return _typeof(obj); | |
| 1118 | +} | |
| 1119 | + | |
| 1120 | +module.exports = _typeof; | |
| 1121 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 1122 | + | |
| 1123 | +/***/ }), | |
| 1124 | + | |
| 1125 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/unsupportedIterableToArray.js": | |
| 1126 | +/*!************************************************************************************!*\ | |
| 1127 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/unsupportedIterableToArray.js ***! | |
| 1128 | + \************************************************************************************/ | |
| 1129 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1130 | + | |
| 1131 | +var _Array$from = __webpack_require__(/*! @babel/runtime-corejs2/core-js/array/from */ "../node_modules/@babel/runtime-corejs2/core-js/array/from.js"); | |
| 1132 | + | |
| 1133 | +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime-corejs2/helpers/arrayLikeToArray.js"); | |
| 1134 | + | |
| 1135 | +function _unsupportedIterableToArray(o, minLen) { | |
| 1136 | + if (!o) return; | |
| 1137 | + if (typeof o === "string") return arrayLikeToArray(o, minLen); | |
| 1138 | + var n = Object.prototype.toString.call(o).slice(8, -1); | |
| 1139 | + if (n === "Object" && o.constructor) n = o.constructor.name; | |
| 1140 | + if (n === "Map" || n === "Set") return _Array$from(o); | |
| 1141 | + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); | |
| 1142 | +} | |
| 1143 | + | |
| 1144 | +module.exports = _unsupportedIterableToArray; | |
| 1145 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 1146 | + | |
| 1147 | +/***/ }), | |
| 1148 | + | |
| 1149 | +/***/ "../node_modules/@babel/runtime-corejs2/helpers/wrapNativeSuper.js": | |
| 1150 | +/*!*************************************************************************!*\ | |
| 1151 | + !*** ../node_modules/@babel/runtime-corejs2/helpers/wrapNativeSuper.js ***! | |
| 1152 | + \*************************************************************************/ | |
| 1153 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1154 | + | |
| 1155 | +var _Map = __webpack_require__(/*! @babel/runtime-corejs2/core-js/map */ "../node_modules/@babel/runtime-corejs2/core-js/map.js"); | |
| 1156 | + | |
| 1157 | +var _Object$create = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/create */ "../node_modules/@babel/runtime-corejs2/core-js/object/create.js"); | |
| 1158 | + | |
| 1159 | +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js"); | |
| 1160 | + | |
| 1161 | +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime-corejs2/helpers/setPrototypeOf.js"); | |
| 1162 | + | |
| 1163 | +var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime-corejs2/helpers/isNativeFunction.js"); | |
| 1164 | + | |
| 1165 | +var construct = __webpack_require__(/*! ./construct.js */ "../node_modules/@babel/runtime-corejs2/helpers/construct.js"); | |
| 1166 | + | |
| 1167 | +function _wrapNativeSuper(Class) { | |
| 1168 | + var _cache = typeof _Map === "function" ? new _Map() : undefined; | |
| 1169 | + | |
| 1170 | + module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { | |
| 1171 | + if (Class === null || !isNativeFunction(Class)) return Class; | |
| 1172 | + | |
| 1173 | + if (typeof Class !== "function") { | |
| 1174 | + throw new TypeError("Super expression must either be null or a function"); | |
| 1175 | + } | |
| 1176 | + | |
| 1177 | + if (typeof _cache !== "undefined") { | |
| 1178 | + if (_cache.has(Class)) return _cache.get(Class); | |
| 1179 | + | |
| 1180 | + _cache.set(Class, Wrapper); | |
| 1181 | + } | |
| 1182 | + | |
| 1183 | + function Wrapper() { | |
| 1184 | + return construct(Class, arguments, getPrototypeOf(this).constructor); | |
| 1185 | + } | |
| 1186 | + | |
| 1187 | + Wrapper.prototype = _Object$create(Class.prototype, { | |
| 1188 | + constructor: { | |
| 1189 | + value: Wrapper, | |
| 1190 | + enumerable: false, | |
| 1191 | + writable: true, | |
| 1192 | + configurable: true | |
| 1193 | + } | |
| 1194 | + }); | |
| 1195 | + return setPrototypeOf(Wrapper, Class); | |
| 1196 | + }; | |
| 1197 | + | |
| 1198 | + module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 1199 | + return _wrapNativeSuper(Class); | |
| 1200 | +} | |
| 1201 | + | |
| 1202 | +module.exports = _wrapNativeSuper; | |
| 1203 | +module.exports["default"] = module.exports, module.exports.__esModule = true; | |
| 1204 | + | |
| 1205 | +/***/ }), | |
| 1206 | + | |
| 1207 | +/***/ "../node_modules/@babel/runtime/regenerator/index.js": | |
| 1208 | +/*!***********************************************************!*\ | |
| 1209 | + !*** ../node_modules/@babel/runtime/regenerator/index.js ***! | |
| 1210 | + \***********************************************************/ | |
| 1211 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1212 | + | |
| 1213 | +module.exports = __webpack_require__(/*! regenerator-runtime */ "../node_modules/regenerator-runtime/runtime.js"); | |
| 1214 | + | |
| 1215 | + | |
| 1216 | +/***/ }), | |
| 1217 | + | |
| 1218 | +/***/ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js": | |
| 1219 | +/*!******************************************************************!*\ | |
| 1220 | + !*** ../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js ***! | |
| 1221 | + \******************************************************************/ | |
| 1222 | +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 1223 | + | |
| 1224 | +"use strict"; | |
| 1225 | +__webpack_require__.r(__webpack_exports__); | |
| 1226 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 1227 | +/* harmony export */ "__DO_NOT_USE__ActionTypes": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.__DO_NOT_USE__ActionTypes), | |
| 1228 | +/* harmony export */ "applyMiddleware": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware), | |
| 1229 | +/* harmony export */ "bindActionCreators": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.bindActionCreators), | |
| 1230 | +/* harmony export */ "combineReducers": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers), | |
| 1231 | +/* harmony export */ "compose": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.compose), | |
| 1232 | +/* harmony export */ "createStore": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.createStore), | |
| 1233 | +/* harmony export */ "MiddlewareArray": () => (/* binding */ MiddlewareArray), | |
| 1234 | +/* harmony export */ "configureStore": () => (/* binding */ configureStore), | |
| 1235 | +/* harmony export */ "createAction": () => (/* binding */ createAction), | |
| 1236 | +/* harmony export */ "createAsyncThunk": () => (/* binding */ createAsyncThunk), | |
| 1237 | +/* harmony export */ "createDraftSafeSelector": () => (/* binding */ createDraftSafeSelector), | |
| 1238 | +/* harmony export */ "createEntityAdapter": () => (/* binding */ createEntityAdapter), | |
| 1239 | +/* harmony export */ "createImmutableStateInvariantMiddleware": () => (/* binding */ createImmutableStateInvariantMiddleware), | |
| 1240 | +/* harmony export */ "createNextState": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__["default"]), | |
| 1241 | +/* harmony export */ "createReducer": () => (/* binding */ createReducer), | |
| 1242 | +/* harmony export */ "createSelector": () => (/* reexport safe */ reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector), | |
| 1243 | +/* harmony export */ "createSerializableStateInvariantMiddleware": () => (/* binding */ createSerializableStateInvariantMiddleware), | |
| 1244 | +/* harmony export */ "createSlice": () => (/* binding */ createSlice), | |
| 1245 | +/* harmony export */ "current": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.current), | |
| 1246 | +/* harmony export */ "findNonSerializableValue": () => (/* binding */ findNonSerializableValue), | |
| 1247 | +/* harmony export */ "freeze": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.freeze), | |
| 1248 | +/* harmony export */ "getDefaultMiddleware": () => (/* binding */ getDefaultMiddleware), | |
| 1249 | +/* harmony export */ "getType": () => (/* binding */ getType), | |
| 1250 | +/* harmony export */ "isAllOf": () => (/* binding */ isAllOf), | |
| 1251 | +/* harmony export */ "isAnyOf": () => (/* binding */ isAnyOf), | |
| 1252 | +/* harmony export */ "isAsyncThunkAction": () => (/* binding */ isAsyncThunkAction), | |
| 1253 | +/* harmony export */ "isDraft": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.isDraft), | |
| 1254 | +/* harmony export */ "isFulfilled": () => (/* binding */ isFulfilled), | |
| 1255 | +/* harmony export */ "isImmutableDefault": () => (/* binding */ isImmutableDefault), | |
| 1256 | +/* harmony export */ "isPending": () => (/* binding */ isPending), | |
| 1257 | +/* harmony export */ "isPlain": () => (/* binding */ isPlain), | |
| 1258 | +/* harmony export */ "isPlainObject": () => (/* binding */ isPlainObject), | |
| 1259 | +/* harmony export */ "isRejected": () => (/* binding */ isRejected), | |
| 1260 | +/* harmony export */ "isRejectedWithValue": () => (/* binding */ isRejectedWithValue), | |
| 1261 | +/* harmony export */ "miniSerializeError": () => (/* binding */ miniSerializeError), | |
| 1262 | +/* harmony export */ "nanoid": () => (/* binding */ nanoid), | |
| 1263 | +/* harmony export */ "original": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.original), | |
| 1264 | +/* harmony export */ "unwrapResult": () => (/* binding */ unwrapResult) | |
| 1265 | +/* harmony export */ }); | |
| 1266 | +/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! immer */ "../node_modules/immer/dist/immer.esm.js"); | |
| 1267 | +/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "../node_modules/redux/es/redux.js"); | |
| 1268 | +/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reselect */ "../node_modules/reselect/es/index.js"); | |
| 1269 | +/* harmony import */ var redux_thunk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux-thunk */ "../node_modules/redux-thunk/es/index.js"); | |
| 1270 | +var __extends = (undefined && undefined.__extends) || (function () { | |
| 1271 | + var extendStatics = function (d, b) { | |
| 1272 | + extendStatics = Object.setPrototypeOf || | |
| 1273 | + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | |
| 1274 | + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | |
| 1275 | + return extendStatics(d, b); | |
| 1276 | + }; | |
| 1277 | + return function (d, b) { | |
| 1278 | + if (typeof b !== "function" && b !== null) | |
| 1279 | + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | |
| 1280 | + extendStatics(d, b); | |
| 1281 | + function __() { this.constructor = d; } | |
| 1282 | + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | |
| 1283 | + }; | |
| 1284 | +})(); | |
| 1285 | +var __generator = (undefined && undefined.__generator) || function (thisArg, body) { | |
| 1286 | + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | |
| 1287 | + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | |
| 1288 | + function verb(n) { return function (v) { return step([n, v]); }; } | |
| 1289 | + function step(op) { | |
| 1290 | + if (f) throw new TypeError("Generator is already executing."); | |
| 1291 | + while (_) try { | |
| 1292 | + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | |
| 1293 | + if (y = 0, t) op = [op[0] & 2, t.value]; | |
| 1294 | + switch (op[0]) { | |
| 1295 | + case 0: case 1: t = op; break; | |
| 1296 | + case 4: _.label++; return { value: op[1], done: false }; | |
| 1297 | + case 5: _.label++; y = op[1]; op = [0]; continue; | |
| 1298 | + case 7: op = _.ops.pop(); _.trys.pop(); continue; | |
| 1299 | + default: | |
| 1300 | + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | |
| 1301 | + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | |
| 1302 | + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | |
| 1303 | + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | |
| 1304 | + if (t[2]) _.ops.pop(); | |
| 1305 | + _.trys.pop(); continue; | |
| 1306 | + } | |
| 1307 | + op = body.call(thisArg, _); | |
| 1308 | + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | |
| 1309 | + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | |
| 1310 | + } | |
| 1311 | +}; | |
| 1312 | +var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) { | |
| 1313 | + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | |
| 1314 | + to[j] = from[i]; | |
| 1315 | + return to; | |
| 1316 | +}; | |
| 1317 | +var __defProp = Object.defineProperty; | |
| 1318 | +var __defProps = Object.defineProperties; | |
| 1319 | +var __getOwnPropDescs = Object.getOwnPropertyDescriptors; | |
| 1320 | +var __getOwnPropSymbols = Object.getOwnPropertySymbols; | |
| 1321 | +var __hasOwnProp = Object.prototype.hasOwnProperty; | |
| 1322 | +var __propIsEnum = Object.prototype.propertyIsEnumerable; | |
| 1323 | +var __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; }; | |
| 1324 | +var __spreadValues = function (a, b) { | |
| 1325 | + for (var prop in b || (b = {})) | |
| 1326 | + if (__hasOwnProp.call(b, prop)) | |
| 1327 | + __defNormalProp(a, prop, b[prop]); | |
| 1328 | + if (__getOwnPropSymbols) | |
| 1329 | + for (var _i = 0, _b = __getOwnPropSymbols(b); _i < _b.length; _i++) { | |
| 1330 | + var prop = _b[_i]; | |
| 1331 | + if (__propIsEnum.call(b, prop)) | |
| 1332 | + __defNormalProp(a, prop, b[prop]); | |
| 1333 | + } | |
| 1334 | + return a; | |
| 1335 | +}; | |
| 1336 | +var __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); }; | |
| 1337 | +var __async = function (__this, __arguments, generator) { | |
| 1338 | + return new Promise(function (resolve, reject) { | |
| 1339 | + var fulfilled = function (value) { | |
| 1340 | + try { | |
| 1341 | + step(generator.next(value)); | |
| 1342 | + } | |
| 1343 | + catch (e) { | |
| 1344 | + reject(e); | |
| 1345 | + } | |
| 1346 | + }; | |
| 1347 | + var rejected = function (value) { | |
| 1348 | + try { | |
| 1349 | + step(generator.throw(value)); | |
| 1350 | + } | |
| 1351 | + catch (e) { | |
| 1352 | + reject(e); | |
| 1353 | + } | |
| 1354 | + }; | |
| 1355 | + var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); }; | |
| 1356 | + step((generator = generator.apply(__this, __arguments)).next()); | |
| 1357 | + }); | |
| 1358 | +}; | |
| 1359 | +// src/index.ts | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | +// src/createDraftSafeSelector.ts | |
| 1365 | + | |
| 1366 | + | |
| 1367 | +var createDraftSafeSelector = function () { | |
| 1368 | + var args = []; | |
| 1369 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1370 | + args[_i] = arguments[_i]; | |
| 1371 | + } | |
| 1372 | + var selector = reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector.apply(void 0, args); | |
| 1373 | + var wrappedSelector = function (value) { | |
| 1374 | + var rest = []; | |
| 1375 | + for (var _i = 1; _i < arguments.length; _i++) { | |
| 1376 | + rest[_i - 1] = arguments[_i]; | |
| 1377 | + } | |
| 1378 | + return selector.apply(void 0, __spreadArray([(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(value) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__.current)(value) : value], rest)); | |
| 1379 | + }; | |
| 1380 | + return wrappedSelector; | |
| 1381 | +}; | |
| 1382 | +// src/configureStore.ts | |
| 1383 | + | |
| 1384 | +// src/devtoolsExtension.ts | |
| 1385 | + | |
| 1386 | +var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () { | |
| 1387 | + if (arguments.length === 0) | |
| 1388 | + return void 0; | |
| 1389 | + if (typeof arguments[0] === "object") | |
| 1390 | + return redux__WEBPACK_IMPORTED_MODULE_0__.compose; | |
| 1391 | + return redux__WEBPACK_IMPORTED_MODULE_0__.compose.apply(null, arguments); | |
| 1392 | +}; | |
| 1393 | +var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () { | |
| 1394 | + return function (noop) { | |
| 1395 | + return noop; | |
| 1396 | + }; | |
| 1397 | +}; | |
| 1398 | +// src/isPlainObject.ts | |
| 1399 | +function isPlainObject(value) { | |
| 1400 | + if (typeof value !== "object" || value === null) | |
| 1401 | + return false; | |
| 1402 | + var proto = value; | |
| 1403 | + while (Object.getPrototypeOf(proto) !== null) { | |
| 1404 | + proto = Object.getPrototypeOf(proto); | |
| 1405 | + } | |
| 1406 | + return Object.getPrototypeOf(value) === proto; | |
| 1407 | +} | |
| 1408 | +// src/getDefaultMiddleware.ts | |
| 1409 | + | |
| 1410 | +// src/utils.ts | |
| 1411 | +function getTimeMeasureUtils(maxDelay, fnName) { | |
| 1412 | + var elapsed = 0; | |
| 1413 | + return { | |
| 1414 | + measureTime: function (fn) { | |
| 1415 | + var started = Date.now(); | |
| 1416 | + try { | |
| 1417 | + return fn(); | |
| 1418 | + } | |
| 1419 | + finally { | |
| 1420 | + var finished = Date.now(); | |
| 1421 | + elapsed += finished - started; | |
| 1422 | + } | |
| 1423 | + }, | |
| 1424 | + warnIfExceeded: function () { | |
| 1425 | + if (elapsed > maxDelay) { | |
| 1426 | + console.warn(fnName + " took " + elapsed + "ms, which is more than the warning threshold of " + maxDelay + "ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that."); | |
| 1427 | + } | |
| 1428 | + } | |
| 1429 | + }; | |
| 1430 | +} | |
| 1431 | +var MiddlewareArray = /** @class */ (function (_super) { | |
| 1432 | + __extends(MiddlewareArray, _super); | |
| 1433 | + function MiddlewareArray() { | |
| 1434 | + var args = []; | |
| 1435 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1436 | + args[_i] = arguments[_i]; | |
| 1437 | + } | |
| 1438 | + var _this = _super.apply(this, args) || this; | |
| 1439 | + Object.setPrototypeOf(_this, MiddlewareArray.prototype); | |
| 1440 | + return _this; | |
| 1441 | + } | |
| 1442 | + Object.defineProperty(MiddlewareArray, Symbol.species, { | |
| 1443 | + get: function () { | |
| 1444 | + return MiddlewareArray; | |
| 1445 | + }, | |
| 1446 | + enumerable: false, | |
| 1447 | + configurable: true | |
| 1448 | + }); | |
| 1449 | + MiddlewareArray.prototype.concat = function () { | |
| 1450 | + var arr = []; | |
| 1451 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1452 | + arr[_i] = arguments[_i]; | |
| 1453 | + } | |
| 1454 | + return _super.prototype.concat.apply(this, arr); | |
| 1455 | + }; | |
| 1456 | + MiddlewareArray.prototype.prepend = function () { | |
| 1457 | + var arr = []; | |
| 1458 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1459 | + arr[_i] = arguments[_i]; | |
| 1460 | + } | |
| 1461 | + if (arr.length === 1 && Array.isArray(arr[0])) { | |
| 1462 | + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))(); | |
| 1463 | + } | |
| 1464 | + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))(); | |
| 1465 | + }; | |
| 1466 | + return MiddlewareArray; | |
| 1467 | +}(Array)); | |
| 1468 | +// src/immutableStateInvariantMiddleware.ts | |
| 1469 | +var isProduction = "development" === "production"; | |
| 1470 | +var prefix = "Invariant failed"; | |
| 1471 | +function invariant(condition, message) { | |
| 1472 | + if (condition) { | |
| 1473 | + return; | |
| 1474 | + } | |
| 1475 | + if (isProduction) { | |
| 1476 | + throw new Error(prefix); | |
| 1477 | + } | |
| 1478 | + throw new Error(prefix + ": " + (message || "")); | |
| 1479 | +} | |
| 1480 | +function stringify(obj, serializer, indent, decycler) { | |
| 1481 | + return JSON.stringify(obj, getSerialize(serializer, decycler), indent); | |
| 1482 | +} | |
| 1483 | +function getSerialize(serializer, decycler) { | |
| 1484 | + var stack = [], keys = []; | |
| 1485 | + if (!decycler) | |
| 1486 | + decycler = function (_, value) { | |
| 1487 | + if (stack[0] === value) | |
| 1488 | + return "[Circular ~]"; | |
| 1489 | + return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]"; | |
| 1490 | + }; | |
| 1491 | + return function (key, value) { | |
| 1492 | + if (stack.length > 0) { | |
| 1493 | + var thisPos = stack.indexOf(this); | |
| 1494 | + ~thisPos ? stack.splice(thisPos + 1) : stack.push(this); | |
| 1495 | + ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key); | |
| 1496 | + if (~stack.indexOf(value)) | |
| 1497 | + value = decycler.call(this, key, value); | |
| 1498 | + } | |
| 1499 | + else | |
| 1500 | + stack.push(value); | |
| 1501 | + return serializer == null ? value : serializer.call(this, key, value); | |
| 1502 | + }; | |
| 1503 | +} | |
| 1504 | +function isImmutableDefault(value) { | |
| 1505 | + return typeof value !== "object" || value === null || typeof value === "undefined" || Object.isFrozen(value); | |
| 1506 | +} | |
| 1507 | +function trackForMutations(isImmutable, ignorePaths, obj) { | |
| 1508 | + var trackedProperties = trackProperties(isImmutable, ignorePaths, obj); | |
| 1509 | + return { | |
| 1510 | + detectMutations: function () { | |
| 1511 | + return detectMutations(isImmutable, ignorePaths, trackedProperties, obj); | |
| 1512 | + } | |
| 1513 | + }; | |
| 1514 | +} | |
| 1515 | +function trackProperties(isImmutable, ignorePaths, obj, path) { | |
| 1516 | + if (ignorePaths === void 0) { ignorePaths = []; } | |
| 1517 | + if (path === void 0) { path = ""; } | |
| 1518 | + var tracked = { value: obj }; | |
| 1519 | + if (!isImmutable(obj)) { | |
| 1520 | + tracked.children = {}; | |
| 1521 | + for (var key in obj) { | |
| 1522 | + var childPath = path ? path + "." + key : key; | |
| 1523 | + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) { | |
| 1524 | + continue; | |
| 1525 | + } | |
| 1526 | + tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath); | |
| 1527 | + } | |
| 1528 | + } | |
| 1529 | + return tracked; | |
| 1530 | +} | |
| 1531 | +function detectMutations(isImmutable, ignorePaths, trackedProperty, obj, sameParentRef, path) { | |
| 1532 | + if (ignorePaths === void 0) { ignorePaths = []; } | |
| 1533 | + if (sameParentRef === void 0) { sameParentRef = false; } | |
| 1534 | + if (path === void 0) { path = ""; } | |
| 1535 | + var prevObj = trackedProperty ? trackedProperty.value : void 0; | |
| 1536 | + var sameRef = prevObj === obj; | |
| 1537 | + if (sameParentRef && !sameRef && !Number.isNaN(obj)) { | |
| 1538 | + return { wasMutated: true, path: path }; | |
| 1539 | + } | |
| 1540 | + if (isImmutable(prevObj) || isImmutable(obj)) { | |
| 1541 | + return { wasMutated: false }; | |
| 1542 | + } | |
| 1543 | + var keysToDetect = {}; | |
| 1544 | + for (var key in trackedProperty.children) { | |
| 1545 | + keysToDetect[key] = true; | |
| 1546 | + } | |
| 1547 | + for (var key in obj) { | |
| 1548 | + keysToDetect[key] = true; | |
| 1549 | + } | |
| 1550 | + for (var key in keysToDetect) { | |
| 1551 | + var childPath = path ? path + "." + key : key; | |
| 1552 | + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) { | |
| 1553 | + continue; | |
| 1554 | + } | |
| 1555 | + var result = detectMutations(isImmutable, ignorePaths, trackedProperty.children[key], obj[key], sameRef, childPath); | |
| 1556 | + if (result.wasMutated) { | |
| 1557 | + return result; | |
| 1558 | + } | |
| 1559 | + } | |
| 1560 | + return { wasMutated: false }; | |
| 1561 | +} | |
| 1562 | +function createImmutableStateInvariantMiddleware(options) { | |
| 1563 | + if (options === void 0) { options = {}; } | |
| 1564 | + if (false) {} | |
| 1565 | + var _b = options.isImmutable, isImmutable = _b === void 0 ? isImmutableDefault : _b, ignoredPaths = options.ignoredPaths, _c = options.warnAfter, warnAfter = _c === void 0 ? 32 : _c, ignore = options.ignore; | |
| 1566 | + ignoredPaths = ignoredPaths || ignore; | |
| 1567 | + var track = trackForMutations.bind(null, isImmutable, ignoredPaths); | |
| 1568 | + return function (_b) { | |
| 1569 | + var getState = _b.getState; | |
| 1570 | + var state = getState(); | |
| 1571 | + var tracker = track(state); | |
| 1572 | + var result; | |
| 1573 | + return function (next) { return function (action) { | |
| 1574 | + var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware"); | |
| 1575 | + measureUtils.measureTime(function () { | |
| 1576 | + state = getState(); | |
| 1577 | + result = tracker.detectMutations(); | |
| 1578 | + tracker = track(state); | |
| 1579 | + invariant(!result.wasMutated, "A state mutation was detected between dispatches, in the path '" + (result.path || "") + "'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)"); | |
| 1580 | + }); | |
| 1581 | + var dispatchedAction = next(action); | |
| 1582 | + measureUtils.measureTime(function () { | |
| 1583 | + state = getState(); | |
| 1584 | + result = tracker.detectMutations(); | |
| 1585 | + tracker = track(state); | |
| 1586 | + result.wasMutated && invariant(!result.wasMutated, "A state mutation was detected inside a dispatch, in the path: " + (result.path || "") + ". Take a look at the reducer(s) handling the action " + stringify(action) + ". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)"); | |
| 1587 | + }); | |
| 1588 | + measureUtils.warnIfExceeded(); | |
| 1589 | + return dispatchedAction; | |
| 1590 | + }; }; | |
| 1591 | + }; | |
| 1592 | +} | |
| 1593 | +// src/serializableStateInvariantMiddleware.ts | |
| 1594 | +function isPlain(val) { | |
| 1595 | + var type = typeof val; | |
| 1596 | + return type === "undefined" || val === null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val); | |
| 1597 | +} | |
| 1598 | +function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths) { | |
| 1599 | + if (path === void 0) { path = ""; } | |
| 1600 | + if (isSerializable === void 0) { isSerializable = isPlain; } | |
| 1601 | + if (ignoredPaths === void 0) { ignoredPaths = []; } | |
| 1602 | + var foundNestedSerializable; | |
| 1603 | + if (!isSerializable(value)) { | |
| 1604 | + return { | |
| 1605 | + keyPath: path || "<root>", | |
| 1606 | + value: value | |
| 1607 | + }; | |
| 1608 | + } | |
| 1609 | + if (typeof value !== "object" || value === null) { | |
| 1610 | + return false; | |
| 1611 | + } | |
| 1612 | + var entries = getEntries != null ? getEntries(value) : Object.entries(value); | |
| 1613 | + var hasIgnoredPaths = ignoredPaths.length > 0; | |
| 1614 | + for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) { | |
| 1615 | + var _b = entries_1[_i], key = _b[0], nestedValue = _b[1]; | |
| 1616 | + var nestedPath = path ? path + "." + key : key; | |
| 1617 | + if (hasIgnoredPaths && ignoredPaths.indexOf(nestedPath) >= 0) { | |
| 1618 | + continue; | |
| 1619 | + } | |
| 1620 | + if (!isSerializable(nestedValue)) { | |
| 1621 | + return { | |
| 1622 | + keyPath: nestedPath, | |
| 1623 | + value: nestedValue | |
| 1624 | + }; | |
| 1625 | + } | |
| 1626 | + if (typeof nestedValue === "object") { | |
| 1627 | + foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths); | |
| 1628 | + if (foundNestedSerializable) { | |
| 1629 | + return foundNestedSerializable; | |
| 1630 | + } | |
| 1631 | + } | |
| 1632 | + } | |
| 1633 | + return false; | |
| 1634 | +} | |
| 1635 | +function createSerializableStateInvariantMiddleware(options) { | |
| 1636 | + if (options === void 0) { options = {}; } | |
| 1637 | + if (false) {} | |
| 1638 | + var _b = options.isSerializable, isSerializable = _b === void 0 ? isPlain : _b, getEntries = options.getEntries, _c = options.ignoredActions, ignoredActions = _c === void 0 ? [] : _c, _d = options.ignoredActionPaths, ignoredActionPaths = _d === void 0 ? ["meta.arg", "meta.baseQueryMeta"] : _d, _e = options.ignoredPaths, ignoredPaths = _e === void 0 ? [] : _e, _f = options.warnAfter, warnAfter = _f === void 0 ? 32 : _f, _g = options.ignoreState, ignoreState = _g === void 0 ? false : _g; | |
| 1639 | + return function (storeAPI) { return function (next) { return function (action) { | |
| 1640 | + if (ignoredActions.length && ignoredActions.indexOf(action.type) !== -1) { | |
| 1641 | + return next(action); | |
| 1642 | + } | |
| 1643 | + var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware"); | |
| 1644 | + measureUtils.measureTime(function () { | |
| 1645 | + var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths); | |
| 1646 | + if (foundActionNonSerializableValue) { | |
| 1647 | + var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value; | |
| 1648 | + console.error("A non-serializable value was detected in an action, in the path: `" + keyPath + "`. Value:", value, "\nTake a look at the logic that dispatched this action: ", action, "\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)", "\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)"); | |
| 1649 | + } | |
| 1650 | + }); | |
| 1651 | + var result = next(action); | |
| 1652 | + if (!ignoreState) { | |
| 1653 | + measureUtils.measureTime(function () { | |
| 1654 | + var state = storeAPI.getState(); | |
| 1655 | + var foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths); | |
| 1656 | + if (foundStateNonSerializableValue) { | |
| 1657 | + var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value; | |
| 1658 | + console.error("A non-serializable value was detected in the state, in the path: `" + keyPath + "`. Value:", value, "\nTake a look at the reducer(s) handling this action type: " + action.type + ".\n(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)"); | |
| 1659 | + } | |
| 1660 | + }); | |
| 1661 | + measureUtils.warnIfExceeded(); | |
| 1662 | + } | |
| 1663 | + return result; | |
| 1664 | + }; }; }; | |
| 1665 | +} | |
| 1666 | +// src/getDefaultMiddleware.ts | |
| 1667 | +function isBoolean(x) { | |
| 1668 | + return typeof x === "boolean"; | |
| 1669 | +} | |
| 1670 | +function curryGetDefaultMiddleware() { | |
| 1671 | + return function curriedGetDefaultMiddleware(options) { | |
| 1672 | + return getDefaultMiddleware(options); | |
| 1673 | + }; | |
| 1674 | +} | |
| 1675 | +function getDefaultMiddleware(options) { | |
| 1676 | + if (options === void 0) { options = {}; } | |
| 1677 | + var _b = options.thunk, thunk = _b === void 0 ? true : _b, _c = options.immutableCheck, immutableCheck = _c === void 0 ? true : _c, _d = options.serializableCheck, serializableCheck = _d === void 0 ? true : _d; | |
| 1678 | + var middlewareArray = new MiddlewareArray(); | |
| 1679 | + if (thunk) { | |
| 1680 | + if (isBoolean(thunk)) { | |
| 1681 | + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"]); | |
| 1682 | + } | |
| 1683 | + else { | |
| 1684 | + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"].withExtraArgument(thunk.extraArgument)); | |
| 1685 | + } | |
| 1686 | + } | |
| 1687 | + if (true) { | |
| 1688 | + if (immutableCheck) { | |
| 1689 | + var immutableOptions = {}; | |
| 1690 | + if (!isBoolean(immutableCheck)) { | |
| 1691 | + immutableOptions = immutableCheck; | |
| 1692 | + } | |
| 1693 | + middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions)); | |
| 1694 | + } | |
| 1695 | + if (serializableCheck) { | |
| 1696 | + var serializableOptions = {}; | |
| 1697 | + if (!isBoolean(serializableCheck)) { | |
| 1698 | + serializableOptions = serializableCheck; | |
| 1699 | + } | |
| 1700 | + middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions)); | |
| 1701 | + } | |
| 1702 | + } | |
| 1703 | + return middlewareArray; | |
| 1704 | +} | |
| 1705 | +// src/configureStore.ts | |
| 1706 | +var IS_PRODUCTION = "development" === "production"; | |
| 1707 | +function configureStore(options) { | |
| 1708 | + var curriedGetDefaultMiddleware = curryGetDefaultMiddleware(); | |
| 1709 | + var _b = options || {}, _c = _b.reducer, reducer = _c === void 0 ? void 0 : _c, _d = _b.middleware, middleware = _d === void 0 ? curriedGetDefaultMiddleware() : _d, _e = _b.devTools, devTools = _e === void 0 ? true : _e, _f = _b.preloadedState, preloadedState = _f === void 0 ? void 0 : _f, _g = _b.enhancers, enhancers = _g === void 0 ? void 0 : _g; | |
| 1710 | + var rootReducer; | |
| 1711 | + if (typeof reducer === "function") { | |
| 1712 | + rootReducer = reducer; | |
| 1713 | + } | |
| 1714 | + else if (isPlainObject(reducer)) { | |
| 1715 | + rootReducer = (0,redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers)(reducer); | |
| 1716 | + } | |
| 1717 | + else { | |
| 1718 | + throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers'); | |
| 1719 | + } | |
| 1720 | + var finalMiddleware = middleware; | |
| 1721 | + if (typeof finalMiddleware === "function") { | |
| 1722 | + finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware); | |
| 1723 | + if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) { | |
| 1724 | + throw new Error("when using a middleware builder function, an array of middleware must be returned"); | |
| 1725 | + } | |
| 1726 | + } | |
| 1727 | + if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== "function"; })) { | |
| 1728 | + throw new Error("each middleware provided to configureStore must be a function"); | |
| 1729 | + } | |
| 1730 | + var middlewareEnhancer = redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware.apply(void 0, finalMiddleware); | |
| 1731 | + var finalCompose = redux__WEBPACK_IMPORTED_MODULE_0__.compose; | |
| 1732 | + if (devTools) { | |
| 1733 | + finalCompose = composeWithDevTools(__spreadValues({ | |
| 1734 | + trace: !IS_PRODUCTION | |
| 1735 | + }, typeof devTools === "object" && devTools)); | |
| 1736 | + } | |
| 1737 | + var storeEnhancers = [middlewareEnhancer]; | |
| 1738 | + if (Array.isArray(enhancers)) { | |
| 1739 | + storeEnhancers = __spreadArray([middlewareEnhancer], enhancers); | |
| 1740 | + } | |
| 1741 | + else if (typeof enhancers === "function") { | |
| 1742 | + storeEnhancers = enhancers(storeEnhancers); | |
| 1743 | + } | |
| 1744 | + var composedEnhancer = finalCompose.apply(void 0, storeEnhancers); | |
| 1745 | + return (0,redux__WEBPACK_IMPORTED_MODULE_0__.createStore)(rootReducer, preloadedState, composedEnhancer); | |
| 1746 | +} | |
| 1747 | +// src/createAction.ts | |
| 1748 | +function createAction(type, prepareAction) { | |
| 1749 | + function actionCreator() { | |
| 1750 | + var args = []; | |
| 1751 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1752 | + args[_i] = arguments[_i]; | |
| 1753 | + } | |
| 1754 | + if (prepareAction) { | |
| 1755 | + var prepared = prepareAction.apply(void 0, args); | |
| 1756 | + if (!prepared) { | |
| 1757 | + throw new Error("prepareAction did not return an object"); | |
| 1758 | + } | |
| 1759 | + return __spreadValues(__spreadValues({ | |
| 1760 | + type: type, | |
| 1761 | + payload: prepared.payload | |
| 1762 | + }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error }); | |
| 1763 | + } | |
| 1764 | + return { type: type, payload: args[0] }; | |
| 1765 | + } | |
| 1766 | + actionCreator.toString = function () { return "" + type; }; | |
| 1767 | + actionCreator.type = type; | |
| 1768 | + actionCreator.match = function (action) { return action.type === type; }; | |
| 1769 | + return actionCreator; | |
| 1770 | +} | |
| 1771 | +function isFSA(action) { | |
| 1772 | + return isPlainObject(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey); | |
| 1773 | +} | |
| 1774 | +function isValidKey(key) { | |
| 1775 | + return ["type", "payload", "error", "meta"].indexOf(key) > -1; | |
| 1776 | +} | |
| 1777 | +function getType(actionCreator) { | |
| 1778 | + return "" + actionCreator; | |
| 1779 | +} | |
| 1780 | +// src/createReducer.ts | |
| 1781 | + | |
| 1782 | +// src/mapBuilders.ts | |
| 1783 | +function executeReducerBuilderCallback(builderCallback) { | |
| 1784 | + var actionsMap = {}; | |
| 1785 | + var actionMatchers = []; | |
| 1786 | + var defaultCaseReducer; | |
| 1787 | + var builder = { | |
| 1788 | + addCase: function (typeOrActionCreator, reducer) { | |
| 1789 | + if (true) { | |
| 1790 | + if (actionMatchers.length > 0) { | |
| 1791 | + throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`"); | |
| 1792 | + } | |
| 1793 | + if (defaultCaseReducer) { | |
| 1794 | + throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`"); | |
| 1795 | + } | |
| 1796 | + } | |
| 1797 | + var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type; | |
| 1798 | + if (type in actionsMap) { | |
| 1799 | + throw new Error("addCase cannot be called with two reducers for the same action type"); | |
| 1800 | + } | |
| 1801 | + actionsMap[type] = reducer; | |
| 1802 | + return builder; | |
| 1803 | + }, | |
| 1804 | + addMatcher: function (matcher, reducer) { | |
| 1805 | + if (true) { | |
| 1806 | + if (defaultCaseReducer) { | |
| 1807 | + throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`"); | |
| 1808 | + } | |
| 1809 | + } | |
| 1810 | + actionMatchers.push({ matcher: matcher, reducer: reducer }); | |
| 1811 | + return builder; | |
| 1812 | + }, | |
| 1813 | + addDefaultCase: function (reducer) { | |
| 1814 | + if (true) { | |
| 1815 | + if (defaultCaseReducer) { | |
| 1816 | + throw new Error("`builder.addDefaultCase` can only be called once"); | |
| 1817 | + } | |
| 1818 | + } | |
| 1819 | + defaultCaseReducer = reducer; | |
| 1820 | + return builder; | |
| 1821 | + } | |
| 1822 | + }; | |
| 1823 | + builderCallback(builder); | |
| 1824 | + return [actionsMap, actionMatchers, defaultCaseReducer]; | |
| 1825 | +} | |
| 1826 | +// src/createReducer.ts | |
| 1827 | +function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) { | |
| 1828 | + if (actionMatchers === void 0) { actionMatchers = []; } | |
| 1829 | + var _b = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _b[0], finalActionMatchers = _b[1], finalDefaultCaseReducer = _b[2]; | |
| 1830 | + var frozenInitialState = (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(initialState, function () { | |
| 1831 | + }); | |
| 1832 | + return function (state, action) { | |
| 1833 | + if (state === void 0) { state = frozenInitialState; } | |
| 1834 | + var caseReducers = __spreadArray([ | |
| 1835 | + actionsMap[action.type] | |
| 1836 | + ], finalActionMatchers.filter(function (_b) { | |
| 1837 | + var matcher = _b.matcher; | |
| 1838 | + return matcher(action); | |
| 1839 | + }).map(function (_b) { | |
| 1840 | + var reducer = _b.reducer; | |
| 1841 | + return reducer; | |
| 1842 | + })); | |
| 1843 | + if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) { | |
| 1844 | + caseReducers = [finalDefaultCaseReducer]; | |
| 1845 | + } | |
| 1846 | + return caseReducers.reduce(function (previousState, caseReducer) { | |
| 1847 | + if (caseReducer) { | |
| 1848 | + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(previousState)) { | |
| 1849 | + var draft = previousState; | |
| 1850 | + var result = caseReducer(draft, action); | |
| 1851 | + if (typeof result === "undefined") { | |
| 1852 | + return previousState; | |
| 1853 | + } | |
| 1854 | + return result; | |
| 1855 | + } | |
| 1856 | + else if (!(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(previousState)) { | |
| 1857 | + var result = caseReducer(previousState, action); | |
| 1858 | + if (typeof result === "undefined") { | |
| 1859 | + if (previousState === null) { | |
| 1860 | + return previousState; | |
| 1861 | + } | |
| 1862 | + throw Error("A case reducer on a non-draftable value must not return undefined"); | |
| 1863 | + } | |
| 1864 | + return result; | |
| 1865 | + } | |
| 1866 | + else { | |
| 1867 | + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(previousState, function (draft) { | |
| 1868 | + return caseReducer(draft, action); | |
| 1869 | + }); | |
| 1870 | + } | |
| 1871 | + } | |
| 1872 | + return previousState; | |
| 1873 | + }, state); | |
| 1874 | + }; | |
| 1875 | +} | |
| 1876 | +// src/createSlice.ts | |
| 1877 | +function getType2(slice, actionKey) { | |
| 1878 | + return slice + "/" + actionKey; | |
| 1879 | +} | |
| 1880 | +function createSlice(options) { | |
| 1881 | + var name = options.name, initialState = options.initialState; | |
| 1882 | + if (!name) { | |
| 1883 | + throw new Error("`name` is a required option for createSlice"); | |
| 1884 | + } | |
| 1885 | + var reducers = options.reducers || {}; | |
| 1886 | + var _b = typeof options.extraReducers === "function" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers], _c = _b[0], extraReducers = _c === void 0 ? {} : _c, _d = _b[1], actionMatchers = _d === void 0 ? [] : _d, _e = _b[2], defaultCaseReducer = _e === void 0 ? void 0 : _e; | |
| 1887 | + var reducerNames = Object.keys(reducers); | |
| 1888 | + var sliceCaseReducersByName = {}; | |
| 1889 | + var sliceCaseReducersByType = {}; | |
| 1890 | + var actionCreators = {}; | |
| 1891 | + reducerNames.forEach(function (reducerName) { | |
| 1892 | + var maybeReducerWithPrepare = reducers[reducerName]; | |
| 1893 | + var type = getType2(name, reducerName); | |
| 1894 | + var caseReducer; | |
| 1895 | + var prepareCallback; | |
| 1896 | + if ("reducer" in maybeReducerWithPrepare) { | |
| 1897 | + caseReducer = maybeReducerWithPrepare.reducer; | |
| 1898 | + prepareCallback = maybeReducerWithPrepare.prepare; | |
| 1899 | + } | |
| 1900 | + else { | |
| 1901 | + caseReducer = maybeReducerWithPrepare; | |
| 1902 | + } | |
| 1903 | + sliceCaseReducersByName[reducerName] = caseReducer; | |
| 1904 | + sliceCaseReducersByType[type] = caseReducer; | |
| 1905 | + actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type); | |
| 1906 | + }); | |
| 1907 | + var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType); | |
| 1908 | + var reducer = createReducer(initialState, finalCaseReducers, actionMatchers, defaultCaseReducer); | |
| 1909 | + return { | |
| 1910 | + name: name, | |
| 1911 | + reducer: reducer, | |
| 1912 | + actions: actionCreators, | |
| 1913 | + caseReducers: sliceCaseReducersByName | |
| 1914 | + }; | |
| 1915 | +} | |
| 1916 | +// src/entities/entity_state.ts | |
| 1917 | +function getInitialEntityState() { | |
| 1918 | + return { | |
| 1919 | + ids: [], | |
| 1920 | + entities: {} | |
| 1921 | + }; | |
| 1922 | +} | |
| 1923 | +function createInitialStateFactory() { | |
| 1924 | + function getInitialState(additionalState) { | |
| 1925 | + if (additionalState === void 0) { additionalState = {}; } | |
| 1926 | + return Object.assign(getInitialEntityState(), additionalState); | |
| 1927 | + } | |
| 1928 | + return { getInitialState: getInitialState }; | |
| 1929 | +} | |
| 1930 | +// src/entities/state_selectors.ts | |
| 1931 | +function createSelectorsFactory() { | |
| 1932 | + function getSelectors(selectState) { | |
| 1933 | + var selectIds = function (state) { return state.ids; }; | |
| 1934 | + var selectEntities = function (state) { return state.entities; }; | |
| 1935 | + var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); }); | |
| 1936 | + var selectId = function (_, id) { return id; }; | |
| 1937 | + var selectById = function (entities, id) { return entities[id]; }; | |
| 1938 | + var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; }); | |
| 1939 | + if (!selectState) { | |
| 1940 | + return { | |
| 1941 | + selectIds: selectIds, | |
| 1942 | + selectEntities: selectEntities, | |
| 1943 | + selectAll: selectAll, | |
| 1944 | + selectTotal: selectTotal, | |
| 1945 | + selectById: createDraftSafeSelector(selectEntities, selectId, selectById) | |
| 1946 | + }; | |
| 1947 | + } | |
| 1948 | + var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities); | |
| 1949 | + return { | |
| 1950 | + selectIds: createDraftSafeSelector(selectState, selectIds), | |
| 1951 | + selectEntities: selectGlobalizedEntities, | |
| 1952 | + selectAll: createDraftSafeSelector(selectState, selectAll), | |
| 1953 | + selectTotal: createDraftSafeSelector(selectState, selectTotal), | |
| 1954 | + selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById) | |
| 1955 | + }; | |
| 1956 | + } | |
| 1957 | + return { getSelectors: getSelectors }; | |
| 1958 | +} | |
| 1959 | +// src/entities/state_adapter.ts | |
| 1960 | + | |
| 1961 | +function createSingleArgumentStateOperator(mutator) { | |
| 1962 | + var operator = createStateOperator(function (_, state) { return mutator(state); }); | |
| 1963 | + return function operation(state) { | |
| 1964 | + return operator(state, void 0); | |
| 1965 | + }; | |
| 1966 | +} | |
| 1967 | +function createStateOperator(mutator) { | |
| 1968 | + return function operation(state, arg) { | |
| 1969 | + function isPayloadActionArgument(arg2) { | |
| 1970 | + return isFSA(arg2); | |
| 1971 | + } | |
| 1972 | + var runMutator = function (draft) { | |
| 1973 | + if (isPayloadActionArgument(arg)) { | |
| 1974 | + mutator(arg.payload, draft); | |
| 1975 | + } | |
| 1976 | + else { | |
| 1977 | + mutator(arg, draft); | |
| 1978 | + } | |
| 1979 | + }; | |
| 1980 | + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(state)) { | |
| 1981 | + runMutator(state); | |
| 1982 | + return state; | |
| 1983 | + } | |
| 1984 | + else { | |
| 1985 | + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(state, runMutator); | |
| 1986 | + } | |
| 1987 | + }; | |
| 1988 | +} | |
| 1989 | +// src/entities/utils.ts | |
| 1990 | +function selectIdValue(entity, selectId) { | |
| 1991 | + var key = selectId(entity); | |
| 1992 | + if ( true && key === void 0) { | |
| 1993 | + console.warn("The entity passed to the `selectId` implementation returned undefined.", "You should probably provide your own `selectId` implementation.", "The entity that was passed:", entity, "The `selectId` implementation:", selectId.toString()); | |
| 1994 | + } | |
| 1995 | + return key; | |
| 1996 | +} | |
| 1997 | +function ensureEntitiesArray(entities) { | |
| 1998 | + if (!Array.isArray(entities)) { | |
| 1999 | + entities = Object.values(entities); | |
| 2000 | + } | |
| 2001 | + return entities; | |
| 2002 | +} | |
| 2003 | +function splitAddedUpdatedEntities(newEntities, selectId, state) { | |
| 2004 | + newEntities = ensureEntitiesArray(newEntities); | |
| 2005 | + var added = []; | |
| 2006 | + var updated = []; | |
| 2007 | + for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) { | |
| 2008 | + var entity = newEntities_1[_i]; | |
| 2009 | + var id = selectIdValue(entity, selectId); | |
| 2010 | + if (id in state.entities) { | |
| 2011 | + updated.push({ id: id, changes: entity }); | |
| 2012 | + } | |
| 2013 | + else { | |
| 2014 | + added.push(entity); | |
| 2015 | + } | |
| 2016 | + } | |
| 2017 | + return [added, updated]; | |
| 2018 | +} | |
| 2019 | +// src/entities/unsorted_state_adapter.ts | |
| 2020 | +function createUnsortedStateAdapter(selectId) { | |
| 2021 | + function addOneMutably(entity, state) { | |
| 2022 | + var key = selectIdValue(entity, selectId); | |
| 2023 | + if (key in state.entities) { | |
| 2024 | + return; | |
| 2025 | + } | |
| 2026 | + state.ids.push(key); | |
| 2027 | + state.entities[key] = entity; | |
| 2028 | + } | |
| 2029 | + function addManyMutably(newEntities, state) { | |
| 2030 | + newEntities = ensureEntitiesArray(newEntities); | |
| 2031 | + for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) { | |
| 2032 | + var entity = newEntities_2[_i]; | |
| 2033 | + addOneMutably(entity, state); | |
| 2034 | + } | |
| 2035 | + } | |
| 2036 | + function setOneMutably(entity, state) { | |
| 2037 | + var key = selectIdValue(entity, selectId); | |
| 2038 | + if (!(key in state.entities)) { | |
| 2039 | + state.ids.push(key); | |
| 2040 | + } | |
| 2041 | + state.entities[key] = entity; | |
| 2042 | + } | |
| 2043 | + function setManyMutably(newEntities, state) { | |
| 2044 | + newEntities = ensureEntitiesArray(newEntities); | |
| 2045 | + for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) { | |
| 2046 | + var entity = newEntities_3[_i]; | |
| 2047 | + setOneMutably(entity, state); | |
| 2048 | + } | |
| 2049 | + } | |
| 2050 | + function setAllMutably(newEntities, state) { | |
| 2051 | + newEntities = ensureEntitiesArray(newEntities); | |
| 2052 | + state.ids = []; | |
| 2053 | + state.entities = {}; | |
| 2054 | + addManyMutably(newEntities, state); | |
| 2055 | + } | |
| 2056 | + function removeOneMutably(key, state) { | |
| 2057 | + return removeManyMutably([key], state); | |
| 2058 | + } | |
| 2059 | + function removeManyMutably(keys, state) { | |
| 2060 | + var didMutate = false; | |
| 2061 | + keys.forEach(function (key) { | |
| 2062 | + if (key in state.entities) { | |
| 2063 | + delete state.entities[key]; | |
| 2064 | + didMutate = true; | |
| 2065 | + } | |
| 2066 | + }); | |
| 2067 | + if (didMutate) { | |
| 2068 | + state.ids = state.ids.filter(function (id) { return id in state.entities; }); | |
| 2069 | + } | |
| 2070 | + } | |
| 2071 | + function removeAllMutably(state) { | |
| 2072 | + Object.assign(state, { | |
| 2073 | + ids: [], | |
| 2074 | + entities: {} | |
| 2075 | + }); | |
| 2076 | + } | |
| 2077 | + function takeNewKey(keys, update, state) { | |
| 2078 | + var original2 = state.entities[update.id]; | |
| 2079 | + var updated = Object.assign({}, original2, update.changes); | |
| 2080 | + var newKey = selectIdValue(updated, selectId); | |
| 2081 | + var hasNewKey = newKey !== update.id; | |
| 2082 | + if (hasNewKey) { | |
| 2083 | + keys[update.id] = newKey; | |
| 2084 | + delete state.entities[update.id]; | |
| 2085 | + } | |
| 2086 | + state.entities[newKey] = updated; | |
| 2087 | + return hasNewKey; | |
| 2088 | + } | |
| 2089 | + function updateOneMutably(update, state) { | |
| 2090 | + return updateManyMutably([update], state); | |
| 2091 | + } | |
| 2092 | + function updateManyMutably(updates, state) { | |
| 2093 | + var newKeys = {}; | |
| 2094 | + var updatesPerEntity = {}; | |
| 2095 | + updates.forEach(function (update) { | |
| 2096 | + if (update.id in state.entities) { | |
| 2097 | + updatesPerEntity[update.id] = { | |
| 2098 | + id: update.id, | |
| 2099 | + changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes) | |
| 2100 | + }; | |
| 2101 | + } | |
| 2102 | + }); | |
| 2103 | + updates = Object.values(updatesPerEntity); | |
| 2104 | + var didMutateEntities = updates.length > 0; | |
| 2105 | + if (didMutateEntities) { | |
| 2106 | + var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0; | |
| 2107 | + if (didMutateIds) { | |
| 2108 | + state.ids = state.ids.map(function (id) { return newKeys[id] || id; }); | |
| 2109 | + } | |
| 2110 | + } | |
| 2111 | + } | |
| 2112 | + function upsertOneMutably(entity, state) { | |
| 2113 | + return upsertManyMutably([entity], state); | |
| 2114 | + } | |
| 2115 | + function upsertManyMutably(newEntities, state) { | |
| 2116 | + var _b = splitAddedUpdatedEntities(newEntities, selectId, state), added = _b[0], updated = _b[1]; | |
| 2117 | + updateManyMutably(updated, state); | |
| 2118 | + addManyMutably(added, state); | |
| 2119 | + } | |
| 2120 | + return { | |
| 2121 | + removeAll: createSingleArgumentStateOperator(removeAllMutably), | |
| 2122 | + addOne: createStateOperator(addOneMutably), | |
| 2123 | + addMany: createStateOperator(addManyMutably), | |
| 2124 | + setOne: createStateOperator(setOneMutably), | |
| 2125 | + setMany: createStateOperator(setManyMutably), | |
| 2126 | + setAll: createStateOperator(setAllMutably), | |
| 2127 | + updateOne: createStateOperator(updateOneMutably), | |
| 2128 | + updateMany: createStateOperator(updateManyMutably), | |
| 2129 | + upsertOne: createStateOperator(upsertOneMutably), | |
| 2130 | + upsertMany: createStateOperator(upsertManyMutably), | |
| 2131 | + removeOne: createStateOperator(removeOneMutably), | |
| 2132 | + removeMany: createStateOperator(removeManyMutably) | |
| 2133 | + }; | |
| 2134 | +} | |
| 2135 | +// src/entities/sorted_state_adapter.ts | |
| 2136 | +function createSortedStateAdapter(selectId, sort) { | |
| 2137 | + var _b = createUnsortedStateAdapter(selectId), removeOne = _b.removeOne, removeMany = _b.removeMany, removeAll = _b.removeAll; | |
| 2138 | + function addOneMutably(entity, state) { | |
| 2139 | + return addManyMutably([entity], state); | |
| 2140 | + } | |
| 2141 | + function addManyMutably(newEntities, state) { | |
| 2142 | + newEntities = ensureEntitiesArray(newEntities); | |
| 2143 | + var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); }); | |
| 2144 | + if (models.length !== 0) { | |
| 2145 | + merge(models, state); | |
| 2146 | + } | |
| 2147 | + } | |
| 2148 | + function setOneMutably(entity, state) { | |
| 2149 | + return setManyMutably([entity], state); | |
| 2150 | + } | |
| 2151 | + function setManyMutably(newEntities, state) { | |
| 2152 | + newEntities = ensureEntitiesArray(newEntities); | |
| 2153 | + if (newEntities.length !== 0) { | |
| 2154 | + merge(newEntities, state); | |
| 2155 | + } | |
| 2156 | + } | |
| 2157 | + function setAllMutably(newEntities, state) { | |
| 2158 | + newEntities = ensureEntitiesArray(newEntities); | |
| 2159 | + state.entities = {}; | |
| 2160 | + state.ids = []; | |
| 2161 | + addManyMutably(newEntities, state); | |
| 2162 | + } | |
| 2163 | + function updateOneMutably(update, state) { | |
| 2164 | + return updateManyMutably([update], state); | |
| 2165 | + } | |
| 2166 | + function takeUpdatedModel(models, update, state) { | |
| 2167 | + if (!(update.id in state.entities)) { | |
| 2168 | + return false; | |
| 2169 | + } | |
| 2170 | + var original2 = state.entities[update.id]; | |
| 2171 | + var updated = Object.assign({}, original2, update.changes); | |
| 2172 | + var newKey = selectIdValue(updated, selectId); | |
| 2173 | + delete state.entities[update.id]; | |
| 2174 | + models.push(updated); | |
| 2175 | + return newKey !== update.id; | |
| 2176 | + } | |
| 2177 | + function updateManyMutably(updates, state) { | |
| 2178 | + var models = []; | |
| 2179 | + updates.forEach(function (update) { return takeUpdatedModel(models, update, state); }); | |
| 2180 | + if (models.length !== 0) { | |
| 2181 | + merge(models, state); | |
| 2182 | + } | |
| 2183 | + } | |
| 2184 | + function upsertOneMutably(entity, state) { | |
| 2185 | + return upsertManyMutably([entity], state); | |
| 2186 | + } | |
| 2187 | + function upsertManyMutably(newEntities, state) { | |
| 2188 | + var _b = splitAddedUpdatedEntities(newEntities, selectId, state), added = _b[0], updated = _b[1]; | |
| 2189 | + updateManyMutably(updated, state); | |
| 2190 | + addManyMutably(added, state); | |
| 2191 | + } | |
| 2192 | + function areArraysEqual(a, b) { | |
| 2193 | + if (a.length !== b.length) { | |
| 2194 | + return false; | |
| 2195 | + } | |
| 2196 | + for (var i = 0; i < a.length && i < b.length; i++) { | |
| 2197 | + if (a[i] === b[i]) { | |
| 2198 | + continue; | |
| 2199 | + } | |
| 2200 | + return false; | |
| 2201 | + } | |
| 2202 | + return true; | |
| 2203 | + } | |
| 2204 | + function merge(models, state) { | |
| 2205 | + models.forEach(function (model) { | |
| 2206 | + state.entities[selectId(model)] = model; | |
| 2207 | + }); | |
| 2208 | + var allEntities = Object.values(state.entities); | |
| 2209 | + allEntities.sort(sort); | |
| 2210 | + var newSortedIds = allEntities.map(selectId); | |
| 2211 | + var ids = state.ids; | |
| 2212 | + if (!areArraysEqual(ids, newSortedIds)) { | |
| 2213 | + state.ids = newSortedIds; | |
| 2214 | + } | |
| 2215 | + } | |
| 2216 | + return { | |
| 2217 | + removeOne: removeOne, | |
| 2218 | + removeMany: removeMany, | |
| 2219 | + removeAll: removeAll, | |
| 2220 | + addOne: createStateOperator(addOneMutably), | |
| 2221 | + updateOne: createStateOperator(updateOneMutably), | |
| 2222 | + upsertOne: createStateOperator(upsertOneMutably), | |
| 2223 | + setOne: createStateOperator(setOneMutably), | |
| 2224 | + setMany: createStateOperator(setManyMutably), | |
| 2225 | + setAll: createStateOperator(setAllMutably), | |
| 2226 | + addMany: createStateOperator(addManyMutably), | |
| 2227 | + updateMany: createStateOperator(updateManyMutably), | |
| 2228 | + upsertMany: createStateOperator(upsertManyMutably) | |
| 2229 | + }; | |
| 2230 | +} | |
| 2231 | +// src/entities/create_adapter.ts | |
| 2232 | +function createEntityAdapter(options) { | |
| 2233 | + if (options === void 0) { options = {}; } | |
| 2234 | + var _b = __spreadValues({ | |
| 2235 | + sortComparer: false, | |
| 2236 | + selectId: function (instance) { return instance.id; } | |
| 2237 | + }, options), selectId = _b.selectId, sortComparer = _b.sortComparer; | |
| 2238 | + var stateFactory = createInitialStateFactory(); | |
| 2239 | + var selectorsFactory = createSelectorsFactory(); | |
| 2240 | + var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId); | |
| 2241 | + return __spreadValues(__spreadValues(__spreadValues({ | |
| 2242 | + selectId: selectId, | |
| 2243 | + sortComparer: sortComparer | |
| 2244 | + }, stateFactory), selectorsFactory), stateAdapter); | |
| 2245 | +} | |
| 2246 | +// src/nanoid.ts | |
| 2247 | +var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"; | |
| 2248 | +var nanoid = function (size) { | |
| 2249 | + if (size === void 0) { size = 21; } | |
| 2250 | + var id = ""; | |
| 2251 | + var i = size; | |
| 2252 | + while (i--) { | |
| 2253 | + id += urlAlphabet[Math.random() * 64 | 0]; | |
| 2254 | + } | |
| 2255 | + return id; | |
| 2256 | +}; | |
| 2257 | +// src/createAsyncThunk.ts | |
| 2258 | +var commonProperties = [ | |
| 2259 | + "name", | |
| 2260 | + "message", | |
| 2261 | + "stack", | |
| 2262 | + "code" | |
| 2263 | +]; | |
| 2264 | +var RejectWithValue = /** @class */ (function () { | |
| 2265 | + function RejectWithValue(payload, meta) { | |
| 2266 | + this.payload = payload; | |
| 2267 | + this.meta = meta; | |
| 2268 | + } | |
| 2269 | + return RejectWithValue; | |
| 2270 | +}()); | |
| 2271 | +var FulfillWithMeta = /** @class */ (function () { | |
| 2272 | + function FulfillWithMeta(payload, meta) { | |
| 2273 | + this.payload = payload; | |
| 2274 | + this.meta = meta; | |
| 2275 | + } | |
| 2276 | + return FulfillWithMeta; | |
| 2277 | +}()); | |
| 2278 | +var miniSerializeError = function (value) { | |
| 2279 | + if (typeof value === "object" && value !== null) { | |
| 2280 | + var simpleError = {}; | |
| 2281 | + for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) { | |
| 2282 | + var property = commonProperties_1[_i]; | |
| 2283 | + if (typeof value[property] === "string") { | |
| 2284 | + simpleError[property] = value[property]; | |
| 2285 | + } | |
| 2286 | + } | |
| 2287 | + return simpleError; | |
| 2288 | + } | |
| 2289 | + return { message: String(value) }; | |
| 2290 | +}; | |
| 2291 | +function createAsyncThunk(typePrefix, payloadCreator, options) { | |
| 2292 | + var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) { return ({ | |
| 2293 | + payload: payload, | |
| 2294 | + meta: __spreadProps(__spreadValues({}, meta || {}), { | |
| 2295 | + arg: arg, | |
| 2296 | + requestId: requestId, | |
| 2297 | + requestStatus: "fulfilled" | |
| 2298 | + }) | |
| 2299 | + }); }); | |
| 2300 | + var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) { return ({ | |
| 2301 | + payload: void 0, | |
| 2302 | + meta: __spreadProps(__spreadValues({}, meta || {}), { | |
| 2303 | + arg: arg, | |
| 2304 | + requestId: requestId, | |
| 2305 | + requestStatus: "pending" | |
| 2306 | + }) | |
| 2307 | + }); }); | |
| 2308 | + var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) { return ({ | |
| 2309 | + payload: payload, | |
| 2310 | + error: (options && options.serializeError || miniSerializeError)(error || "Rejected"), | |
| 2311 | + meta: __spreadProps(__spreadValues({}, meta || {}), { | |
| 2312 | + arg: arg, | |
| 2313 | + requestId: requestId, | |
| 2314 | + rejectedWithValue: !!payload, | |
| 2315 | + requestStatus: "rejected", | |
| 2316 | + aborted: (error == null ? void 0 : error.name) === "AbortError", | |
| 2317 | + condition: (error == null ? void 0 : error.name) === "ConditionError" | |
| 2318 | + }) | |
| 2319 | + }); }); | |
| 2320 | + var displayedWarning = false; | |
| 2321 | + var AC = typeof AbortController !== "undefined" ? AbortController : /** @class */ (function () { | |
| 2322 | + function class_1() { | |
| 2323 | + this.signal = { | |
| 2324 | + aborted: false, | |
| 2325 | + addEventListener: function () { | |
| 2326 | + }, | |
| 2327 | + dispatchEvent: function () { | |
| 2328 | + return false; | |
| 2329 | + }, | |
| 2330 | + onabort: function () { | |
| 2331 | + }, | |
| 2332 | + removeEventListener: function () { | |
| 2333 | + } | |
| 2334 | + }; | |
| 2335 | + } | |
| 2336 | + class_1.prototype.abort = function () { | |
| 2337 | + if (true) { | |
| 2338 | + if (!displayedWarning) { | |
| 2339 | + displayedWarning = true; | |
| 2340 | + console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'."); | |
| 2341 | + } | |
| 2342 | + } | |
| 2343 | + }; | |
| 2344 | + return class_1; | |
| 2345 | + }()); | |
| 2346 | + function actionCreator(arg) { | |
| 2347 | + return function (dispatch, getState, extra) { | |
| 2348 | + var _a; | |
| 2349 | + var requestId = ((_a = options == null ? void 0 : options.idGenerator) != null ? _a : nanoid)(); | |
| 2350 | + var abortController = new AC(); | |
| 2351 | + var abortReason; | |
| 2352 | + var abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({ name: "AbortError", message: abortReason || "Aborted" }); }); }); | |
| 2353 | + var started = false; | |
| 2354 | + function abort(reason) { | |
| 2355 | + if (started) { | |
| 2356 | + abortReason = reason; | |
| 2357 | + abortController.abort(); | |
| 2358 | + } | |
| 2359 | + } | |
| 2360 | + var promise = function () { | |
| 2361 | + return __async(this, null, function () { | |
| 2362 | + var _a2, finalAction, err_1, skipDispatch; | |
| 2363 | + return __generator(this, function (_b) { | |
| 2364 | + switch (_b.label) { | |
| 2365 | + case 0: | |
| 2366 | + _b.trys.push([0, 2, , 3]); | |
| 2367 | + if (options && options.condition && options.condition(arg, { getState: getState, extra: extra }) === false) { | |
| 2368 | + throw { | |
| 2369 | + name: "ConditionError", | |
| 2370 | + message: "Aborted due to condition callback returning false." | |
| 2371 | + }; | |
| 2372 | + } | |
| 2373 | + started = true; | |
| 2374 | + dispatch(pending(requestId, arg, (_a2 = options == null ? void 0 : options.getPendingMeta) == null ? void 0 : _a2.call(options, { requestId: requestId, arg: arg }, { getState: getState, extra: extra }))); | |
| 2375 | + return [4 /*yield*/, Promise.race([ | |
| 2376 | + abortedPromise, | |
| 2377 | + Promise.resolve(payloadCreator(arg, { | |
| 2378 | + dispatch: dispatch, | |
| 2379 | + getState: getState, | |
| 2380 | + extra: extra, | |
| 2381 | + requestId: requestId, | |
| 2382 | + signal: abortController.signal, | |
| 2383 | + rejectWithValue: function (value, meta) { | |
| 2384 | + return new RejectWithValue(value, meta); | |
| 2385 | + }, | |
| 2386 | + fulfillWithValue: function (value, meta) { | |
| 2387 | + return new FulfillWithMeta(value, meta); | |
| 2388 | + } | |
| 2389 | + })).then(function (result) { | |
| 2390 | + if (result instanceof RejectWithValue) { | |
| 2391 | + throw result; | |
| 2392 | + } | |
| 2393 | + if (result instanceof FulfillWithMeta) { | |
| 2394 | + return fulfilled(result.payload, requestId, arg, result.meta); | |
| 2395 | + } | |
| 2396 | + return fulfilled(result, requestId, arg); | |
| 2397 | + }) | |
| 2398 | + ])]; | |
| 2399 | + case 1: | |
| 2400 | + finalAction = _b.sent(); | |
| 2401 | + return [3 /*break*/, 3]; | |
| 2402 | + case 2: | |
| 2403 | + err_1 = _b.sent(); | |
| 2404 | + finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg); | |
| 2405 | + return [3 /*break*/, 3]; | |
| 2406 | + case 3: | |
| 2407 | + skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition; | |
| 2408 | + if (!skipDispatch) { | |
| 2409 | + dispatch(finalAction); | |
| 2410 | + } | |
| 2411 | + return [2 /*return*/, finalAction]; | |
| 2412 | + } | |
| 2413 | + }); | |
| 2414 | + }); | |
| 2415 | + }(); | |
| 2416 | + return Object.assign(promise, { | |
| 2417 | + abort: abort, | |
| 2418 | + requestId: requestId, | |
| 2419 | + arg: arg, | |
| 2420 | + unwrap: function () { | |
| 2421 | + return promise.then(unwrapResult); | |
| 2422 | + } | |
| 2423 | + }); | |
| 2424 | + }; | |
| 2425 | + } | |
| 2426 | + return Object.assign(actionCreator, { | |
| 2427 | + pending: pending, | |
| 2428 | + rejected: rejected, | |
| 2429 | + fulfilled: fulfilled, | |
| 2430 | + typePrefix: typePrefix | |
| 2431 | + }); | |
| 2432 | +} | |
| 2433 | +function unwrapResult(action) { | |
| 2434 | + if (action.meta && action.meta.rejectedWithValue) { | |
| 2435 | + throw action.payload; | |
| 2436 | + } | |
| 2437 | + if (action.error) { | |
| 2438 | + throw action.error; | |
| 2439 | + } | |
| 2440 | + return action.payload; | |
| 2441 | +} | |
| 2442 | +// src/tsHelpers.ts | |
| 2443 | +var hasMatchFunction = function (v) { | |
| 2444 | + return v && typeof v.match === "function"; | |
| 2445 | +}; | |
| 2446 | +// src/matchers.ts | |
| 2447 | +var matches = function (matcher, action) { | |
| 2448 | + if (hasMatchFunction(matcher)) { | |
| 2449 | + return matcher.match(action); | |
| 2450 | + } | |
| 2451 | + else { | |
| 2452 | + return matcher(action); | |
| 2453 | + } | |
| 2454 | +}; | |
| 2455 | +function isAnyOf() { | |
| 2456 | + var matchers = []; | |
| 2457 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 2458 | + matchers[_i] = arguments[_i]; | |
| 2459 | + } | |
| 2460 | + return function (action) { | |
| 2461 | + return matchers.some(function (matcher) { return matches(matcher, action); }); | |
| 2462 | + }; | |
| 2463 | +} | |
| 2464 | +function isAllOf() { | |
| 2465 | + var matchers = []; | |
| 2466 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 2467 | + matchers[_i] = arguments[_i]; | |
| 2468 | + } | |
| 2469 | + return function (action) { | |
| 2470 | + return matchers.every(function (matcher) { return matches(matcher, action); }); | |
| 2471 | + }; | |
| 2472 | +} | |
| 2473 | +function hasExpectedRequestMetadata(action, validStatus) { | |
| 2474 | + if (!action || !action.meta) | |
| 2475 | + return false; | |
| 2476 | + var hasValidRequestId = typeof action.meta.requestId === "string"; | |
| 2477 | + var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1; | |
| 2478 | + return hasValidRequestId && hasValidRequestStatus; | |
| 2479 | +} | |
| 2480 | +function isAsyncThunkArray(a) { | |
| 2481 | + return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0]; | |
| 2482 | +} | |
| 2483 | +function isPending() { | |
| 2484 | + var asyncThunks = []; | |
| 2485 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 2486 | + asyncThunks[_i] = arguments[_i]; | |
| 2487 | + } | |
| 2488 | + if (asyncThunks.length === 0) { | |
| 2489 | + return function (action) { return hasExpectedRequestMetadata(action, ["pending"]); }; | |
| 2490 | + } | |
| 2491 | + if (!isAsyncThunkArray(asyncThunks)) { | |
| 2492 | + return isPending()(asyncThunks[0]); | |
| 2493 | + } | |
| 2494 | + return function (action) { | |
| 2495 | + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; }); | |
| 2496 | + var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 2497 | + return combinedMatcher(action); | |
| 2498 | + }; | |
| 2499 | +} | |
| 2500 | +function isRejected() { | |
| 2501 | + var asyncThunks = []; | |
| 2502 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 2503 | + asyncThunks[_i] = arguments[_i]; | |
| 2504 | + } | |
| 2505 | + if (asyncThunks.length === 0) { | |
| 2506 | + return function (action) { return hasExpectedRequestMetadata(action, ["rejected"]); }; | |
| 2507 | + } | |
| 2508 | + if (!isAsyncThunkArray(asyncThunks)) { | |
| 2509 | + return isRejected()(asyncThunks[0]); | |
| 2510 | + } | |
| 2511 | + return function (action) { | |
| 2512 | + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; }); | |
| 2513 | + var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 2514 | + return combinedMatcher(action); | |
| 2515 | + }; | |
| 2516 | +} | |
| 2517 | +function isRejectedWithValue() { | |
| 2518 | + var asyncThunks = []; | |
| 2519 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 2520 | + asyncThunks[_i] = arguments[_i]; | |
| 2521 | + } | |
| 2522 | + var hasFlag = function (action) { | |
| 2523 | + return action && action.meta && action.meta.rejectedWithValue; | |
| 2524 | + }; | |
| 2525 | + if (asyncThunks.length === 0) { | |
| 2526 | + return function (action) { | |
| 2527 | + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag); | |
| 2528 | + return combinedMatcher(action); | |
| 2529 | + }; | |
| 2530 | + } | |
| 2531 | + if (!isAsyncThunkArray(asyncThunks)) { | |
| 2532 | + return isRejectedWithValue()(asyncThunks[0]); | |
| 2533 | + } | |
| 2534 | + return function (action) { | |
| 2535 | + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag); | |
| 2536 | + return combinedMatcher(action); | |
| 2537 | + }; | |
| 2538 | +} | |
| 2539 | +function isFulfilled() { | |
| 2540 | + var asyncThunks = []; | |
| 2541 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 2542 | + asyncThunks[_i] = arguments[_i]; | |
| 2543 | + } | |
| 2544 | + if (asyncThunks.length === 0) { | |
| 2545 | + return function (action) { return hasExpectedRequestMetadata(action, ["fulfilled"]); }; | |
| 2546 | + } | |
| 2547 | + if (!isAsyncThunkArray(asyncThunks)) { | |
| 2548 | + return isFulfilled()(asyncThunks[0]); | |
| 2549 | + } | |
| 2550 | + return function (action) { | |
| 2551 | + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; }); | |
| 2552 | + var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 2553 | + return combinedMatcher(action); | |
| 2554 | + }; | |
| 2555 | +} | |
| 2556 | +function isAsyncThunkAction() { | |
| 2557 | + var asyncThunks = []; | |
| 2558 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 2559 | + asyncThunks[_i] = arguments[_i]; | |
| 2560 | + } | |
| 2561 | + if (asyncThunks.length === 0) { | |
| 2562 | + return function (action) { return hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]); }; | |
| 2563 | + } | |
| 2564 | + if (!isAsyncThunkArray(asyncThunks)) { | |
| 2565 | + return isAsyncThunkAction()(asyncThunks[0]); | |
| 2566 | + } | |
| 2567 | + return function (action) { | |
| 2568 | + var matchers = []; | |
| 2569 | + for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) { | |
| 2570 | + var asyncThunk = asyncThunks_1[_i]; | |
| 2571 | + matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled); | |
| 2572 | + } | |
| 2573 | + var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 2574 | + return combinedMatcher(action); | |
| 2575 | + }; | |
| 2576 | +} | |
| 2577 | +// src/index.ts | |
| 2578 | +(0,immer__WEBPACK_IMPORTED_MODULE_2__.enableES5)(); | |
| 2579 | + | |
| 2580 | +//# sourceMappingURL=redux-toolkit.esm.js.map | |
| 2581 | + | |
| 2582 | +/***/ }), | |
| 2583 | + | |
| 2584 | +/***/ "../assets/dev/js/editor/components/validator/base.js": | |
| 2585 | +/*!************************************************************!*\ | |
| 2586 | + !*** ../assets/dev/js/editor/components/validator/base.js ***! | |
| 2587 | + \************************************************************/ | |
| 2588 | +/***/ ((module) => { | |
| 2589 | + | |
| 2590 | +"use strict"; | |
| 2591 | + | |
| 2592 | + | |
| 2593 | +module.exports = elementorModules.Module.extend({ | |
| 2594 | + errors: [], | |
| 2595 | + __construct: function __construct(settings) { | |
| 2596 | + var customValidationMethod = settings.customValidationMethod; | |
| 2597 | + | |
| 2598 | + if (customValidationMethod) { | |
| 2599 | + this.validationMethod = customValidationMethod; | |
| 2600 | + } | |
| 2601 | + }, | |
| 2602 | + getDefaultSettings: function getDefaultSettings() { | |
| 2603 | + return { | |
| 2604 | + validationTerms: {} | |
| 2605 | + }; | |
| 2606 | + }, | |
| 2607 | + isValid: function isValid() { | |
| 2608 | + var validationErrors = this.validationMethod.apply(this, arguments); | |
| 2609 | + | |
| 2610 | + if (validationErrors.length) { | |
| 2611 | + this.errors = validationErrors; | |
| 2612 | + return false; | |
| 2613 | + } | |
| 2614 | + | |
| 2615 | + return true; | |
| 2616 | + }, | |
| 2617 | + validationMethod: function validationMethod(newValue) { | |
| 2618 | + var validationTerms = this.getSettings('validationTerms'), | |
| 2619 | + errors = []; | |
| 2620 | + | |
| 2621 | + if (validationTerms.required) { | |
| 2622 | + if (!('' + newValue).length) { | |
| 2623 | + errors.push('Required value is empty'); | |
| 2624 | + } | |
| 2625 | + } | |
| 2626 | + | |
| 2627 | + return errors; | |
| 2628 | + } | |
| 2629 | +}); | |
| 2630 | + | |
| 2631 | +/***/ }), | |
| 2632 | + | |
| 2633 | +/***/ "../assets/dev/js/editor/data/globals/base/create-base.js": | |
| 2634 | +/*!****************************************************************!*\ | |
| 2635 | + !*** ../assets/dev/js/editor/data/globals/base/create-base.js ***! | |
| 2636 | + \****************************************************************/ | |
| 8 | 2637 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 9 | 2638 | |
| 10 | 2639 | "use strict"; |
| 11 | 2640 | |
| 12 | 2641 | |
| 13 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 14 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2642 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 2643 | + | |
| 2644 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 2645 | + | |
| 2646 | +_Object$defineProperty(exports, "__esModule", { | |
| 15 | 2647 | value: true |
| 16 | -})); | |
| 2648 | +}); | |
| 2649 | + | |
| 17 | 2650 | exports["default"] = void 0; |
| 18 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 19 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 20 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 21 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 22 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 23 | -var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); | |
| 24 | -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)); } | |
| 25 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 26 | -/** | |
| 27 | - * @name $e.modules.editor.CommandContainerBase | |
| 28 | - */ | |
| 29 | -var CommandContainerBase = exports["default"] = /*#__PURE__*/function (_CommandBase) { | |
| 30 | - function CommandContainerBase() { | |
| 31 | - (0, _classCallCheck2.default)(this, CommandContainerBase); | |
| 32 | - return _callSuper(this, CommandContainerBase, arguments); | |
| 2651 | + | |
| 2652 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 2653 | + | |
| 2654 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 2655 | + | |
| 2656 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 2657 | + | |
| 2658 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 2659 | + | |
| 2660 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 2661 | + | |
| 2662 | +var CreateBase = /*#__PURE__*/function (_CommandBase) { | |
| 2663 | + (0, _inherits2.default)(CreateBase, _CommandBase); | |
| 2664 | + | |
| 2665 | + var _super = (0, _createSuper2.default)(CreateBase); | |
| 2666 | + | |
| 2667 | + function CreateBase() { | |
| 2668 | + (0, _classCallCheck2.default)(this, CreateBase); | |
| 2669 | + return _super.apply(this, arguments); | |
| 33 | 2670 | } |
| 34 | - (0, _inherits2.default)(CommandContainerBase, _CommandBase); | |
| 35 | - return (0, _createClass2.default)(CommandContainerBase, [{ | |
| 36 | - key: "requireContainer", | |
| 37 | - value: | |
| 38 | - /** | |
| 39 | - * Function requireContainer(). | |
| 40 | - * | |
| 41 | - * Validate `arg.container` & `arg.containers`. | |
| 42 | - * | |
| 43 | - * @param {{}} args | |
| 44 | - * | |
| 45 | - * @throws {Error} | |
| 46 | - */ | |
| 47 | - function requireContainer() { | |
| 2671 | + | |
| 2672 | + (0, _createClass2.default)(CreateBase, [{ | |
| 2673 | + key: "validateArgs", | |
| 2674 | + value: function validateArgs() { | |
| 2675 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 2676 | + this.requireContainer(args); | |
| 2677 | + this.requireArgumentType('setting', 'string', args); | |
| 2678 | + this.requireArgumentType('title', 'string', args); | |
| 2679 | + } | |
| 2680 | + }]); | |
| 2681 | + return CreateBase; | |
| 2682 | +}(_commandBase.default); | |
| 2683 | + | |
| 2684 | +exports["default"] = CreateBase; | |
| 2685 | + | |
| 2686 | +/***/ }), | |
| 2687 | + | |
| 2688 | +/***/ "../assets/dev/js/editor/data/globals/colors/commands/create.js": | |
| 2689 | +/*!**********************************************************************!*\ | |
| 2690 | + !*** ../assets/dev/js/editor/data/globals/colors/commands/create.js ***! | |
| 2691 | + \**********************************************************************/ | |
| 2692 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2693 | + | |
| 2694 | +"use strict"; | |
| 2695 | + | |
| 2696 | + | |
| 2697 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 2698 | + | |
| 2699 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 2700 | + | |
| 2701 | +_Object$defineProperty(exports, "__esModule", { | |
| 2702 | + value: true | |
| 2703 | +}); | |
| 2704 | + | |
| 2705 | +exports.Create = void 0; | |
| 2706 | + | |
| 2707 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 2708 | + | |
| 2709 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 2710 | + | |
| 2711 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 2712 | + | |
| 2713 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 2714 | + | |
| 2715 | +var _createBase = _interopRequireDefault(__webpack_require__(/*! elementor-editor/data/globals/base/create-base */ "../assets/dev/js/editor/data/globals/base/create-base.js")); | |
| 2716 | + | |
| 2717 | +var Create = /*#__PURE__*/function (_CreateBase) { | |
| 2718 | + (0, _inherits2.default)(Create, _CreateBase); | |
| 2719 | + | |
| 2720 | + var _super = (0, _createSuper2.default)(Create); | |
| 2721 | + | |
| 2722 | + function Create() { | |
| 2723 | + (0, _classCallCheck2.default)(this, Create); | |
| 2724 | + return _super.apply(this, arguments); | |
| 2725 | + } | |
| 2726 | + | |
| 2727 | + (0, _createClass2.default)(Create, [{ | |
| 2728 | + key: "apply", | |
| 2729 | + value: function apply() { | |
| 2730 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 2731 | + var container = args.container, | |
| 2732 | + setting = args.setting, | |
| 2733 | + title = args.title, | |
| 2734 | + controls = container.controls; | |
| 2735 | + var result = false; | |
| 2736 | + | |
| 2737 | + if (!controls[setting]) { | |
| 2738 | + throw new Error("Invalid setting: control '".concat(setting, "', not found.")); | |
| 2739 | + } // `args.id` used by tests. | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + var id = args.id || elementorCommon.helpers.getUniqueId(); | |
| 2743 | + result = $e.data.create("globals/colors?id=".concat(id), { | |
| 2744 | + title: title, | |
| 2745 | + value: container.settings.get(setting) | |
| 2746 | + }); | |
| 2747 | + return result; | |
| 2748 | + } | |
| 2749 | + }]); | |
| 2750 | + return Create; | |
| 2751 | +}(_createBase.default); | |
| 2752 | + | |
| 2753 | +exports.Create = Create; | |
| 2754 | + | |
| 2755 | +/***/ }), | |
| 2756 | + | |
| 2757 | +/***/ "../assets/dev/js/editor/data/globals/colors/commands/index.js": | |
| 2758 | +/*!*********************************************************************!*\ | |
| 2759 | + !*** ../assets/dev/js/editor/data/globals/colors/commands/index.js ***! | |
| 2760 | + \*********************************************************************/ | |
| 2761 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2762 | + | |
| 2763 | +"use strict"; | |
| 2764 | + | |
| 2765 | + | |
| 2766 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 2767 | + | |
| 2768 | +_Object$defineProperty(exports, "__esModule", { | |
| 2769 | + value: true | |
| 2770 | +}); | |
| 2771 | + | |
| 2772 | +_Object$defineProperty(exports, "Create", { | |
| 2773 | + enumerable: true, | |
| 2774 | + get: function get() { | |
| 2775 | + return _create.Create; | |
| 2776 | + } | |
| 2777 | +}); | |
| 2778 | + | |
| 2779 | +var _create = __webpack_require__(/*! ./create */ "../assets/dev/js/editor/data/globals/colors/commands/create.js"); | |
| 2780 | + | |
| 2781 | +/***/ }), | |
| 2782 | + | |
| 2783 | +/***/ "../assets/dev/js/editor/data/globals/colors/component.js": | |
| 2784 | +/*!****************************************************************!*\ | |
| 2785 | + !*** ../assets/dev/js/editor/data/globals/colors/component.js ***! | |
| 2786 | + \****************************************************************/ | |
| 2787 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2788 | + | |
| 2789 | +"use strict"; | |
| 2790 | + | |
| 2791 | + | |
| 2792 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 2793 | + | |
| 2794 | +var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireWildcard */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js"); | |
| 2795 | + | |
| 2796 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 2797 | + | |
| 2798 | +_Object$defineProperty(exports, "__esModule", { | |
| 2799 | + value: true | |
| 2800 | +}); | |
| 2801 | + | |
| 2802 | +exports["default"] = void 0; | |
| 2803 | + | |
| 2804 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 2805 | + | |
| 2806 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 2807 | + | |
| 2808 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 2809 | + | |
| 2810 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 2811 | + | |
| 2812 | +var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../core/common/assets/js/api/modules/component-base.js")); | |
| 2813 | + | |
| 2814 | +var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../assets/dev/js/editor/data/globals/colors/commands/index.js")); | |
| 2815 | + | |
| 2816 | +var Component = /*#__PURE__*/function (_ComponentBase) { | |
| 2817 | + (0, _inherits2.default)(Component, _ComponentBase); | |
| 2818 | + | |
| 2819 | + var _super = (0, _createSuper2.default)(Component); | |
| 2820 | + | |
| 2821 | + function Component() { | |
| 2822 | + (0, _classCallCheck2.default)(this, Component); | |
| 2823 | + return _super.apply(this, arguments); | |
| 2824 | + } | |
| 2825 | + | |
| 2826 | + (0, _createClass2.default)(Component, [{ | |
| 2827 | + key: "getNamespace", | |
| 2828 | + value: function getNamespace() { | |
| 2829 | + return 'globals/colors'; | |
| 2830 | + } | |
| 2831 | + }, { | |
| 2832 | + key: "defaultCommands", | |
| 2833 | + value: function defaultCommands() { | |
| 2834 | + return this.importCommands(commands); | |
| 2835 | + } | |
| 2836 | + }]); | |
| 2837 | + return Component; | |
| 2838 | +}(_componentBase.default); | |
| 2839 | + | |
| 2840 | +exports["default"] = Component; | |
| 2841 | + | |
| 2842 | +/***/ }), | |
| 2843 | + | |
| 2844 | +/***/ "../assets/dev/js/editor/data/globals/commands/data/colors.js": | |
| 2845 | +/*!********************************************************************!*\ | |
| 2846 | + !*** ../assets/dev/js/editor/data/globals/commands/data/colors.js ***! | |
| 2847 | + \********************************************************************/ | |
| 2848 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2849 | + | |
| 2850 | +"use strict"; | |
| 2851 | + | |
| 2852 | + | |
| 2853 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 2854 | + | |
| 2855 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 2856 | + | |
| 2857 | +_Object$defineProperty(exports, "__esModule", { | |
| 2858 | + value: true | |
| 2859 | +}); | |
| 2860 | + | |
| 2861 | +exports["default"] = exports.Colors = void 0; | |
| 2862 | + | |
| 2863 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 2864 | + | |
| 2865 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 2866 | + | |
| 2867 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 2868 | + | |
| 2869 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 2870 | + | |
| 2871 | +var _commandData = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-data */ "../core/common/assets/js/api/modules/command-data.js")); | |
| 2872 | + | |
| 2873 | +var Colors = /*#__PURE__*/function (_CommandData) { | |
| 2874 | + (0, _inherits2.default)(Colors, _CommandData); | |
| 2875 | + | |
| 2876 | + var _super = (0, _createSuper2.default)(Colors); | |
| 2877 | + | |
| 2878 | + function Colors() { | |
| 2879 | + (0, _classCallCheck2.default)(this, Colors); | |
| 2880 | + return _super.apply(this, arguments); | |
| 2881 | + } | |
| 2882 | + | |
| 2883 | + (0, _createClass2.default)(Colors, null, [{ | |
| 2884 | + key: "getEndpointFormat", | |
| 2885 | + value: function getEndpointFormat() { | |
| 2886 | + return 'globals/colors/{id}'; | |
| 2887 | + } | |
| 2888 | + }]); | |
| 2889 | + return Colors; | |
| 2890 | +}(_commandData.default); | |
| 2891 | + | |
| 2892 | +exports.Colors = Colors; | |
| 2893 | +var _default = Colors; | |
| 2894 | +exports["default"] = _default; | |
| 2895 | + | |
| 2896 | +/***/ }), | |
| 2897 | + | |
| 2898 | +/***/ "../assets/dev/js/editor/data/globals/commands/data/index.js": | |
| 2899 | +/*!*******************************************************************!*\ | |
| 2900 | + !*** ../assets/dev/js/editor/data/globals/commands/data/index.js ***! | |
| 2901 | + \*******************************************************************/ | |
| 2902 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2903 | + | |
| 2904 | +"use strict"; | |
| 2905 | + | |
| 2906 | + | |
| 2907 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 2908 | + | |
| 2909 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 2910 | + | |
| 2911 | +_Object$defineProperty(exports, "__esModule", { | |
| 2912 | + value: true | |
| 2913 | +}); | |
| 2914 | + | |
| 2915 | +_Object$defineProperty(exports, "Colors", { | |
| 2916 | + enumerable: true, | |
| 2917 | + get: function get() { | |
| 2918 | + return _colors.Colors; | |
| 2919 | + } | |
| 2920 | +}); | |
| 2921 | + | |
| 2922 | +exports.Index = void 0; | |
| 2923 | + | |
| 2924 | +_Object$defineProperty(exports, "Typography", { | |
| 2925 | + enumerable: true, | |
| 2926 | + get: function get() { | |
| 2927 | + return _typography.Typography; | |
| 2928 | + } | |
| 2929 | +}); | |
| 2930 | + | |
| 2931 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 2932 | + | |
| 2933 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 2934 | + | |
| 2935 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 2936 | + | |
| 2937 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 2938 | + | |
| 2939 | +var _commandData = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-data */ "../core/common/assets/js/api/modules/command-data.js")); | |
| 2940 | + | |
| 2941 | +var _colors = __webpack_require__(/*! ./colors */ "../assets/dev/js/editor/data/globals/commands/data/colors.js"); | |
| 2942 | + | |
| 2943 | +var _typography = __webpack_require__(/*! ./typography */ "../assets/dev/js/editor/data/globals/commands/data/typography.js"); | |
| 2944 | + | |
| 2945 | +// Alphabetical order | |
| 2946 | +// TODO: Remove - Move to into base, Possible to handle using ComponentData. | |
| 2947 | +var Index = /*#__PURE__*/function (_CommandData) { | |
| 2948 | + (0, _inherits2.default)(Index, _CommandData); | |
| 2949 | + | |
| 2950 | + var _super = (0, _createSuper2.default)(Index); | |
| 2951 | + | |
| 2952 | + function Index() { | |
| 2953 | + (0, _classCallCheck2.default)(this, Index); | |
| 2954 | + return _super.apply(this, arguments); | |
| 2955 | + } | |
| 2956 | + | |
| 2957 | + (0, _createClass2.default)(Index, null, [{ | |
| 2958 | + key: "getEndpointFormat", | |
| 2959 | + value: function getEndpointFormat() { | |
| 2960 | + // Format 'globals/index' to 'globals'. | |
| 2961 | + return 'globals'; | |
| 2962 | + } | |
| 2963 | + }]); | |
| 2964 | + return Index; | |
| 2965 | +}(_commandData.default); | |
| 2966 | + | |
| 2967 | +exports.Index = Index; | |
| 2968 | + | |
| 2969 | +/***/ }), | |
| 2970 | + | |
| 2971 | +/***/ "../assets/dev/js/editor/data/globals/commands/data/typography.js": | |
| 2972 | +/*!************************************************************************!*\ | |
| 2973 | + !*** ../assets/dev/js/editor/data/globals/commands/data/typography.js ***! | |
| 2974 | + \************************************************************************/ | |
| 2975 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2976 | + | |
| 2977 | +"use strict"; | |
| 2978 | + | |
| 2979 | + | |
| 2980 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 2981 | + | |
| 2982 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 2983 | + | |
| 2984 | +_Object$defineProperty(exports, "__esModule", { | |
| 2985 | + value: true | |
| 2986 | +}); | |
| 2987 | + | |
| 2988 | +exports["default"] = exports.Typography = void 0; | |
| 2989 | + | |
| 2990 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 2991 | + | |
| 2992 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 2993 | + | |
| 2994 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 2995 | + | |
| 2996 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 2997 | + | |
| 2998 | +var _commandData = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-data */ "../core/common/assets/js/api/modules/command-data.js")); | |
| 2999 | + | |
| 3000 | +var Typography = /*#__PURE__*/function (_CommandData) { | |
| 3001 | + (0, _inherits2.default)(Typography, _CommandData); | |
| 3002 | + | |
| 3003 | + var _super = (0, _createSuper2.default)(Typography); | |
| 3004 | + | |
| 3005 | + function Typography() { | |
| 3006 | + (0, _classCallCheck2.default)(this, Typography); | |
| 3007 | + return _super.apply(this, arguments); | |
| 3008 | + } | |
| 3009 | + | |
| 3010 | + (0, _createClass2.default)(Typography, null, [{ | |
| 3011 | + key: "getEndpointFormat", | |
| 3012 | + value: function getEndpointFormat() { | |
| 3013 | + return 'globals/typography/{id}'; | |
| 3014 | + } | |
| 3015 | + }]); | |
| 3016 | + return Typography; | |
| 3017 | +}(_commandData.default); | |
| 3018 | + | |
| 3019 | +exports.Typography = Typography; | |
| 3020 | +var _default = Typography; | |
| 3021 | +exports["default"] = _default; | |
| 3022 | + | |
| 3023 | +/***/ }), | |
| 3024 | + | |
| 3025 | +/***/ "../assets/dev/js/editor/data/globals/component.js": | |
| 3026 | +/*!*********************************************************!*\ | |
| 3027 | + !*** ../assets/dev/js/editor/data/globals/component.js ***! | |
| 3028 | + \*********************************************************/ | |
| 3029 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3030 | + | |
| 3031 | +"use strict"; | |
| 3032 | + | |
| 3033 | + | |
| 3034 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 3035 | + | |
| 3036 | +var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireWildcard */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js"); | |
| 3037 | + | |
| 3038 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 3039 | + | |
| 3040 | +_Object$defineProperty(exports, "__esModule", { | |
| 3041 | + value: true | |
| 3042 | +}); | |
| 3043 | + | |
| 3044 | +exports["default"] = void 0; | |
| 3045 | + | |
| 3046 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 3047 | + | |
| 3048 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 3049 | + | |
| 3050 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 3051 | + | |
| 3052 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 3053 | + | |
| 3054 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 3055 | + | |
| 3056 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 3057 | + | |
| 3058 | +var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../core/common/assets/js/api/modules/component-base.js")); | |
| 3059 | + | |
| 3060 | +var _component = _interopRequireDefault(__webpack_require__(/*! ./typography/component */ "../assets/dev/js/editor/data/globals/typography/component.js")); | |
| 3061 | + | |
| 3062 | +var _component2 = _interopRequireDefault(__webpack_require__(/*! ./colors/component */ "../assets/dev/js/editor/data/globals/colors/component.js")); | |
| 3063 | + | |
| 3064 | +var commandsData = _interopRequireWildcard(__webpack_require__(/*! ./commands/data/ */ "../assets/dev/js/editor/data/globals/commands/data/index.js")); | |
| 3065 | + | |
| 3066 | +var Component = /*#__PURE__*/function (_ComponentBase) { | |
| 3067 | + (0, _inherits2.default)(Component, _ComponentBase); | |
| 3068 | + | |
| 3069 | + var _super = (0, _createSuper2.default)(Component); | |
| 3070 | + | |
| 3071 | + function Component() { | |
| 3072 | + (0, _classCallCheck2.default)(this, Component); | |
| 3073 | + return _super.apply(this, arguments); | |
| 3074 | + } | |
| 3075 | + | |
| 3076 | + (0, _createClass2.default)(Component, [{ | |
| 3077 | + key: "__construct", | |
| 3078 | + value: function __construct() { | |
| 48 | 3079 | var _this = this; |
| 49 | - var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args; | |
| 50 | - if (!args.container && !args.containers) { | |
| 51 | - throw Error('container or containers are required.'); | |
| 3080 | + | |
| 3081 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 3082 | + (0, _get2.default)((0, _getPrototypeOf2.default)(Component.prototype), "__construct", this).call(this, args); | |
| 3083 | + elementorCommon.elements.$window.on('elementor:loaded', function () { | |
| 3084 | + return _this.refreshGlobalData(); | |
| 3085 | + }); | |
| 3086 | + } | |
| 3087 | + }, { | |
| 3088 | + key: "getNamespace", | |
| 3089 | + value: function getNamespace() { | |
| 3090 | + return 'globals'; | |
| 3091 | + } | |
| 3092 | + }, { | |
| 3093 | + key: "registerAPI", | |
| 3094 | + value: function registerAPI() { | |
| 3095 | + $e.components.register(new _component.default({ | |
| 3096 | + manager: this | |
| 3097 | + })); | |
| 3098 | + $e.components.register(new _component2.default({ | |
| 3099 | + manager: this | |
| 3100 | + })); | |
| 3101 | + (0, _get2.default)((0, _getPrototypeOf2.default)(Component.prototype), "registerAPI", this).call(this); | |
| 3102 | + } | |
| 3103 | + }, { | |
| 3104 | + key: "defaultData", | |
| 3105 | + value: function defaultData() { | |
| 3106 | + return this.importCommands(commandsData); | |
| 3107 | + } | |
| 3108 | + }, { | |
| 3109 | + key: "refreshGlobalData", | |
| 3110 | + value: function refreshGlobalData() { | |
| 3111 | + $e.data.deleteCache($e.components.get('globals'), 'globals/index'); | |
| 3112 | + } | |
| 3113 | + }]); | |
| 3114 | + return Component; | |
| 3115 | +}(_componentBase.default); | |
| 3116 | + | |
| 3117 | +exports["default"] = Component; | |
| 3118 | + | |
| 3119 | +/***/ }), | |
| 3120 | + | |
| 3121 | +/***/ "../assets/dev/js/editor/data/globals/typography/commands/create.js": | |
| 3122 | +/*!**************************************************************************!*\ | |
| 3123 | + !*** ../assets/dev/js/editor/data/globals/typography/commands/create.js ***! | |
| 3124 | + \**************************************************************************/ | |
| 3125 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3126 | + | |
| 3127 | +"use strict"; | |
| 3128 | + | |
| 3129 | + | |
| 3130 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 3131 | + | |
| 3132 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 3133 | + | |
| 3134 | +_Object$defineProperty(exports, "__esModule", { | |
| 3135 | + value: true | |
| 3136 | +}); | |
| 3137 | + | |
| 3138 | +exports.Create = void 0; | |
| 3139 | + | |
| 3140 | +__webpack_require__(/*! core-js/modules/es6.string.includes.js */ "../node_modules/core-js/modules/es6.string.includes.js"); | |
| 3141 | + | |
| 3142 | +__webpack_require__(/*! core-js/modules/es7.array.includes.js */ "../node_modules/core-js/modules/es7.array.includes.js"); | |
| 3143 | + | |
| 3144 | +__webpack_require__(/*! core-js/modules/es6.regexp.replace.js */ "../node_modules/core-js/modules/es6.regexp.replace.js"); | |
| 3145 | + | |
| 3146 | +var _entries = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/entries */ "../node_modules/@babel/runtime-corejs2/core-js/object/entries.js")); | |
| 3147 | + | |
| 3148 | +var _values = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "../node_modules/@babel/runtime-corejs2/core-js/object/values.js")); | |
| 3149 | + | |
| 3150 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/slicedToArray */ "../node_modules/@babel/runtime-corejs2/helpers/slicedToArray.js")); | |
| 3151 | + | |
| 3152 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 3153 | + | |
| 3154 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 3155 | + | |
| 3156 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 3157 | + | |
| 3158 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 3159 | + | |
| 3160 | +var _createBase = _interopRequireDefault(__webpack_require__(/*! elementor-editor/data/globals/base/create-base */ "../assets/dev/js/editor/data/globals/base/create-base.js")); | |
| 3161 | + | |
| 3162 | +var Create = /*#__PURE__*/function (_CreateBase) { | |
| 3163 | + (0, _inherits2.default)(Create, _CreateBase); | |
| 3164 | + | |
| 3165 | + var _super = (0, _createSuper2.default)(Create); | |
| 3166 | + | |
| 3167 | + function Create() { | |
| 3168 | + (0, _classCallCheck2.default)(this, Create); | |
| 3169 | + return _super.apply(this, arguments); | |
| 3170 | + } | |
| 3171 | + | |
| 3172 | + (0, _createClass2.default)(Create, [{ | |
| 3173 | + key: "apply", | |
| 3174 | + value: function apply() { | |
| 3175 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 3176 | + var container = args.container, | |
| 3177 | + setting = args.setting, | |
| 3178 | + title = args.title, | |
| 3179 | + controls = container.controls, | |
| 3180 | + availableControls = {}; | |
| 3181 | + var result = false, | |
| 3182 | + groupPrefix = ''; | |
| 3183 | + | |
| 3184 | + if (controls[setting] && controls[setting].groupPrefix) { | |
| 3185 | + groupPrefix = controls[setting].groupPrefix; | |
| 3186 | + } else { | |
| 3187 | + throw new Error("Invalid setting: control '".concat(setting, "', not found.")); | |
| 52 | 3188 | } |
| 53 | - if (args.container && args.containers) { | |
| 54 | - throw Error('container and containers cannot go together please select one of them.'); | |
| 3189 | + | |
| 3190 | + if (groupPrefix) { | |
| 3191 | + (0, _entries.default)(controls).forEach(function (_ref) { | |
| 3192 | + var _ref2 = (0, _slicedToArray2.default)(_ref, 1), | |
| 3193 | + key = _ref2[0]; | |
| 3194 | + | |
| 3195 | + if (key.includes(groupPrefix)) { | |
| 3196 | + // Get values but remove defaults. | |
| 3197 | + var value = container.settings.get(key), | |
| 3198 | + defaultValue = container.controls[key].default; | |
| 3199 | + | |
| 3200 | + if (!_.isEqual(value, defaultValue)) { | |
| 3201 | + availableControls[key.replace(groupPrefix, elementor.config.kit_config.typography_prefix)] = container.settings.get(key); | |
| 3202 | + } | |
| 3203 | + } | |
| 3204 | + }); | |
| 55 | 3205 | } |
| 56 | - var containers = args.containers || [args.container]; | |
| 57 | - containers.forEach(function (container) { | |
| 58 | - _this.requireArgumentInstance('container', elementorModules.editor.Container, { | |
| 59 | - container: container | |
| 3206 | + | |
| 3207 | + if ((0, _values.default)(availableControls).length) { | |
| 3208 | + var id = elementorCommon.helpers.getUniqueId(); | |
| 3209 | + result = $e.data.create("globals/typography?id=".concat(id), { | |
| 3210 | + title: title, | |
| 3211 | + value: availableControls | |
| 60 | 3212 | }); |
| 3213 | + } | |
| 3214 | + | |
| 3215 | + return result; | |
| 3216 | + } | |
| 3217 | + }]); | |
| 3218 | + return Create; | |
| 3219 | +}(_createBase.default); | |
| 3220 | + | |
| 3221 | +exports.Create = Create; | |
| 3222 | + | |
| 3223 | +/***/ }), | |
| 3224 | + | |
| 3225 | +/***/ "../assets/dev/js/editor/data/globals/typography/commands/index.js": | |
| 3226 | +/*!*************************************************************************!*\ | |
| 3227 | + !*** ../assets/dev/js/editor/data/globals/typography/commands/index.js ***! | |
| 3228 | + \*************************************************************************/ | |
| 3229 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3230 | + | |
| 3231 | +"use strict"; | |
| 3232 | + | |
| 3233 | + | |
| 3234 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 3235 | + | |
| 3236 | +_Object$defineProperty(exports, "__esModule", { | |
| 3237 | + value: true | |
| 3238 | +}); | |
| 3239 | + | |
| 3240 | +_Object$defineProperty(exports, "Create", { | |
| 3241 | + enumerable: true, | |
| 3242 | + get: function get() { | |
| 3243 | + return _create.Create; | |
| 3244 | + } | |
| 3245 | +}); | |
| 3246 | + | |
| 3247 | +var _create = __webpack_require__(/*! ./create */ "../assets/dev/js/editor/data/globals/typography/commands/create.js"); | |
| 3248 | + | |
| 3249 | +/***/ }), | |
| 3250 | + | |
| 3251 | +/***/ "../assets/dev/js/editor/data/globals/typography/component.js": | |
| 3252 | +/*!********************************************************************!*\ | |
| 3253 | + !*** ../assets/dev/js/editor/data/globals/typography/component.js ***! | |
| 3254 | + \********************************************************************/ | |
| 3255 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3256 | + | |
| 3257 | +"use strict"; | |
| 3258 | + | |
| 3259 | + | |
| 3260 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 3261 | + | |
| 3262 | +var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireWildcard */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js"); | |
| 3263 | + | |
| 3264 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 3265 | + | |
| 3266 | +_Object$defineProperty(exports, "__esModule", { | |
| 3267 | + value: true | |
| 3268 | +}); | |
| 3269 | + | |
| 3270 | +exports["default"] = void 0; | |
| 3271 | + | |
| 3272 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 3273 | + | |
| 3274 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 3275 | + | |
| 3276 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 3277 | + | |
| 3278 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 3279 | + | |
| 3280 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 3281 | + | |
| 3282 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 3283 | + | |
| 3284 | +var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../core/common/assets/js/api/modules/component-base.js")); | |
| 3285 | + | |
| 3286 | +var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../assets/dev/js/editor/data/globals/typography/commands/index.js")); | |
| 3287 | + | |
| 3288 | +var Component = /*#__PURE__*/function (_ComponentBase) { | |
| 3289 | + (0, _inherits2.default)(Component, _ComponentBase); | |
| 3290 | + | |
| 3291 | + var _super = (0, _createSuper2.default)(Component); | |
| 3292 | + | |
| 3293 | + function Component() { | |
| 3294 | + (0, _classCallCheck2.default)(this, Component); | |
| 3295 | + return _super.apply(this, arguments); | |
| 3296 | + } | |
| 3297 | + | |
| 3298 | + (0, _createClass2.default)(Component, [{ | |
| 3299 | + key: "__construct", | |
| 3300 | + value: function __construct() { | |
| 3301 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 3302 | + (0, _get2.default)((0, _getPrototypeOf2.default)(Component.prototype), "__construct", this).call(this, args); | |
| 3303 | + } | |
| 3304 | + }, { | |
| 3305 | + key: "getNamespace", | |
| 3306 | + value: function getNamespace() { | |
| 3307 | + return 'globals/typography'; | |
| 3308 | + } | |
| 3309 | + }, { | |
| 3310 | + key: "defaultCommands", | |
| 3311 | + value: function defaultCommands() { | |
| 3312 | + return this.importCommands(commands); | |
| 3313 | + } | |
| 3314 | + }]); | |
| 3315 | + return Component; | |
| 3316 | +}(_componentBase.default); | |
| 3317 | + | |
| 3318 | +exports["default"] = Component; | |
| 3319 | + | |
| 3320 | +/***/ }), | |
| 3321 | + | |
| 3322 | +/***/ "../assets/dev/js/editor/document/backwards-compatibility.js": | |
| 3323 | +/*!*******************************************************************!*\ | |
| 3324 | + !*** ../assets/dev/js/editor/document/backwards-compatibility.js ***! | |
| 3325 | + \*******************************************************************/ | |
| 3326 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3327 | + | |
| 3328 | +"use strict"; | |
| 3329 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 3330 | + | |
| 3331 | + | |
| 3332 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 3333 | + | |
| 3334 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 3335 | + | |
| 3336 | +_Object$defineProperty(exports, "__esModule", { | |
| 3337 | + value: true | |
| 3338 | +}); | |
| 3339 | + | |
| 3340 | +exports["default"] = void 0; | |
| 3341 | + | |
| 3342 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 3343 | + | |
| 3344 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 3345 | + | |
| 3346 | +var BackwardsCompatibility = /*#__PURE__*/function () { | |
| 3347 | + function BackwardsCompatibility() { | |
| 3348 | + (0, _classCallCheck2.default)(this, BackwardsCompatibility); | |
| 3349 | + elementorCommon.elements.$window.on('elementor:init', this.deprecatedEvents); | |
| 3350 | + elementor.channels.data.on('template:before:insert', this.startInsertTemplate).on('template:after:insert', this.endItem); | |
| 3351 | + } | |
| 3352 | + | |
| 3353 | + (0, _createClass2.default)(BackwardsCompatibility, [{ | |
| 3354 | + key: "deprecatedEvents", | |
| 3355 | + value: function deprecatedEvents() { | |
| 3356 | + var elementorDataEvents = elementor.channels.data._events, | |
| 3357 | + deprecatedEvents = ['drag:before:update', 'drag:after:update', 'element:before:add', 'element:after:add', 'element:before:remove', 'element:after:remove', 'element:before:paste:style', 'element:after:paste:style', 'element:before:reset:style', 'element:after:reset:style', 'section:before:drop', 'section:after:drop']; | |
| 3358 | + deprecatedEvents.forEach(function (event) { | |
| 3359 | + if (elementorDataEvents[event] && elementorDataEvents[event].length) { | |
| 3360 | + elementorCommon.helpers.softDeprecated("event: ".concat(event), '2.8.0', '$e.hooks'); | |
| 3361 | + } | |
| 61 | 3362 | }); |
| 62 | 3363 | } |
| 63 | - }], [{ | |
| 64 | - key: "getInstanceType", | |
| 65 | - value: function getInstanceType() { | |
| 66 | - return 'CommandContainerBase'; | |
| 3364 | + }, { | |
| 3365 | + key: "startInsertTemplate", | |
| 3366 | + value: function startInsertTemplate(model) { | |
| 3367 | + elementorCommon.helpers.softDeprecated('event: template:before:insert', '2.8.0', "$e.run( 'document/import' )"); | |
| 3368 | + elementor.documents.getCurrent().history.startItem({ | |
| 3369 | + type: 'add', | |
| 3370 | + title: __('Template', 'elementor'), | |
| 3371 | + subTitle: model.get('title'), | |
| 3372 | + elementType: 'template' | |
| 3373 | + }); | |
| 67 | 3374 | } |
| 3375 | + }, { | |
| 3376 | + key: "endItem", | |
| 3377 | + value: function endItem() { | |
| 3378 | + elementor.documents.getCurrent().history.endItem(); | |
| 3379 | + } | |
| 68 | 3380 | }]); |
| 69 | -}(_commandBase.default); | |
| 3381 | + return BackwardsCompatibility; | |
| 3382 | +}(); | |
| 70 | 3383 | |
| 3384 | +exports["default"] = BackwardsCompatibility; | |
| 3385 | + | |
| 71 | 3386 | /***/ }), |
| 72 | 3387 | |
| 73 | -/***/ "../assets/dev/js/editor/command-bases/command-container-internal-base.js": | |
| 3388 | +/***/ "../assets/dev/js/editor/document/commands/base/command-disable-enable.js": | |
| 74 | 3389 | /*!********************************************************************************!*\ |
| 75 | - !*** ../assets/dev/js/editor/command-bases/command-container-internal-base.js ***! | |
| 3390 | + !*** ../assets/dev/js/editor/document/commands/base/command-disable-enable.js ***! | |
| 76 | 3391 | \********************************************************************************/ |
| 77 | 3392 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 78 | 3393 | |
| 79 | 3394 | "use strict"; |
| @@ -78,107 +3393,369 @@ | ||
| 78 | 3393 | |
| 79 | 3394 | "use strict"; |
| 80 | 3395 | |
| 81 | 3396 | |
| 82 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 83 | -Object.defineProperty(exports, "__esModule", ({ | |
| 3397 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 3398 | + | |
| 3399 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 3400 | + | |
| 3401 | +_Object$defineProperty(exports, "__esModule", { | |
| 84 | 3402 | value: true |
| 85 | -})); | |
| 3403 | +}); | |
| 3404 | + | |
| 86 | 3405 | exports["default"] = void 0; |
| 87 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 88 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 89 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 90 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 91 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 92 | -var _commandContainerBase = _interopRequireDefault(__webpack_require__(/*! ./command-container-base */ "../assets/dev/js/editor/command-bases/command-container-base.js")); | |
| 93 | -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)); } | |
| 94 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 95 | -/** | |
| 96 | - * @name $e.modules.editor.CommandContainerInternalBase | |
| 97 | - */ | |
| 98 | -var CommandContainerInternalBase = exports["default"] = /*#__PURE__*/function (_CommandContainerBase) { | |
| 99 | - function CommandContainerInternalBase(args) { | |
| 100 | - (0, _classCallCheck2.default)(this, CommandContainerInternalBase); | |
| 101 | - return _callSuper(this, CommandContainerInternalBase, [args, $e.commandsInternal]); | |
| 3406 | + | |
| 3407 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 3408 | + | |
| 3409 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 3410 | + | |
| 3411 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 3412 | + | |
| 3413 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 3414 | + | |
| 3415 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 3416 | + | |
| 3417 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 3418 | + | |
| 3419 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! ./command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 3420 | + | |
| 3421 | +var _settings = _interopRequireDefault(__webpack_require__(/*! elementor-document/elements/commands/settings */ "../assets/dev/js/editor/document/elements/commands/settings.js")); | |
| 3422 | + | |
| 3423 | +var CommandDisableEnable = /*#__PURE__*/function (_CommandHistory) { | |
| 3424 | + (0, _inherits2.default)(CommandDisableEnable, _CommandHistory); | |
| 3425 | + | |
| 3426 | + var _super = (0, _createSuper2.default)(CommandDisableEnable); | |
| 3427 | + | |
| 3428 | + function CommandDisableEnable() { | |
| 3429 | + (0, _classCallCheck2.default)(this, CommandDisableEnable); | |
| 3430 | + return _super.apply(this, arguments); | |
| 102 | 3431 | } |
| 103 | - (0, _inherits2.default)(CommandContainerInternalBase, _CommandContainerBase); | |
| 104 | - return (0, _createClass2.default)(CommandContainerInternalBase, null, [{ | |
| 105 | - key: "getInstanceType", | |
| 106 | - value: function getInstanceType() { | |
| 107 | - return 'CommandContainerInternalBase'; | |
| 3432 | + | |
| 3433 | + (0, _createClass2.default)(CommandDisableEnable, [{ | |
| 3434 | + key: "initialize", | |
| 3435 | + value: function initialize(args) { | |
| 3436 | + (0, _get2.default)((0, _getPrototypeOf2.default)(CommandDisableEnable.prototype), "initialize", this).call(this, args); | |
| 3437 | + /** | |
| 3438 | + * Which command is running. | |
| 3439 | + * | |
| 3440 | + * @type {string} | |
| 3441 | + */ | |
| 3442 | + | |
| 3443 | + this.type = this.currentCommand === this.constructor.getEnableCommand() ? 'enable' : 'disable'; | |
| 108 | 3444 | } |
| 3445 | + }, { | |
| 3446 | + key: "getTitle", | |
| 3447 | + value: function getTitle() { | |
| 3448 | + elementorModules.ForceMethodImplementation(); | |
| 3449 | + } | |
| 3450 | + }, { | |
| 3451 | + key: "validateArgs", | |
| 3452 | + value: function validateArgs(args) { | |
| 3453 | + this.requireContainer(args); | |
| 3454 | + this.requireArgumentConstructor('settings', Object, args); | |
| 3455 | + } | |
| 3456 | + }, { | |
| 3457 | + key: "getHistory", | |
| 3458 | + value: function getHistory(args) { | |
| 3459 | + var settings = args.settings, | |
| 3460 | + _args$containers = args.containers, | |
| 3461 | + containers = _args$containers === void 0 ? [args.container] : _args$containers, | |
| 3462 | + changes = {}; | |
| 3463 | + containers.forEach(function (container) { | |
| 3464 | + var id = container.id; | |
| 3465 | + | |
| 3466 | + if (!changes[id]) { | |
| 3467 | + changes[id] = {}; | |
| 3468 | + } | |
| 3469 | + | |
| 3470 | + changes[id] = settings; | |
| 3471 | + }); | |
| 3472 | + | |
| 3473 | + var subTitle = this.getTitle() + ' ' + _settings.default.getSubTitle(args), | |
| 3474 | + type = this.type; | |
| 3475 | + | |
| 3476 | + return { | |
| 3477 | + containers: containers, | |
| 3478 | + subTitle: subTitle, | |
| 3479 | + data: { | |
| 3480 | + changes: changes, | |
| 3481 | + command: this.currentCommand | |
| 3482 | + }, | |
| 3483 | + type: type, | |
| 3484 | + restore: this.constructor.restore | |
| 3485 | + }; | |
| 3486 | + } | |
| 3487 | + }, { | |
| 3488 | + key: "isDataChanged", | |
| 3489 | + value: function isDataChanged() { | |
| 3490 | + return true; | |
| 3491 | + } | |
| 3492 | + }], [{ | |
| 3493 | + key: "getEnableCommand", | |
| 3494 | + value: | |
| 3495 | + /** | |
| 3496 | + * @returns {string} | |
| 3497 | + */ | |
| 3498 | + function getEnableCommand() { | |
| 3499 | + elementorModules.ForceMethodImplementation(); | |
| 3500 | + } | |
| 3501 | + /** | |
| 3502 | + * @returns {string} | |
| 3503 | + */ | |
| 3504 | + | |
| 3505 | + }, { | |
| 3506 | + key: "getDisableCommand", | |
| 3507 | + value: function getDisableCommand() { | |
| 3508 | + elementorModules.ForceMethodImplementation(); | |
| 3509 | + } | |
| 3510 | + }, { | |
| 3511 | + key: "restore", | |
| 3512 | + value: function restore(historyItem, isRedo) { | |
| 3513 | + var data = historyItem.get('data'), | |
| 3514 | + CommandClass = $e.commands.getCommandClass(data.command); // Upon `disable` command toggle `isRedo`. | |
| 3515 | + | |
| 3516 | + if (CommandClass.getDisableCommand() === data.command) { | |
| 3517 | + isRedo = !isRedo; | |
| 3518 | + } | |
| 3519 | + | |
| 3520 | + historyItem.get('containers').forEach(function (container) { | |
| 3521 | + var settings = data.changes[container.id], | |
| 3522 | + toggle = isRedo ? CommandClass.getEnableCommand() : CommandClass.getDisableCommand(); | |
| 3523 | + $e.run(toggle, { | |
| 3524 | + container: container, | |
| 3525 | + settings: settings | |
| 3526 | + }); | |
| 3527 | + container.panel.refresh(); | |
| 3528 | + }); | |
| 3529 | + } | |
| 109 | 3530 | }]); |
| 110 | -}(_commandContainerBase.default); | |
| 3531 | + return CommandDisableEnable; | |
| 3532 | +}(_commandHistory.default); | |
| 111 | 3533 | |
| 3534 | +exports["default"] = CommandDisableEnable; | |
| 3535 | + | |
| 112 | 3536 | /***/ }), |
| 113 | 3537 | |
| 114 | -/***/ "../assets/dev/js/editor/document/command-bases/command-history-base.js": | |
| 115 | -/*!******************************************************************************!*\ | |
| 116 | - !*** ../assets/dev/js/editor/document/command-bases/command-history-base.js ***! | |
| 117 | - \******************************************************************************/ | |
| 3538 | +/***/ "../assets/dev/js/editor/document/commands/base/command-history-debounce.js": | |
| 3539 | +/*!**********************************************************************************!*\ | |
| 3540 | + !*** ../assets/dev/js/editor/document/commands/base/command-history-debounce.js ***! | |
| 3541 | + \**********************************************************************************/ | |
| 118 | 3542 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 119 | 3543 | |
| 120 | 3544 | "use strict"; |
| 121 | 3545 | |
| 122 | 3546 | |
| 123 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 124 | -Object.defineProperty(exports, "__esModule", ({ | |
| 3547 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 3548 | + | |
| 3549 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 3550 | + | |
| 3551 | +_Object$defineProperty(exports, "__esModule", { | |
| 125 | 3552 | value: true |
| 126 | -})); | |
| 127 | -exports["default"] = void 0; | |
| 128 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 129 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 130 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 131 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 132 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 133 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 134 | -var _commandContainerBase = _interopRequireDefault(__webpack_require__(/*! elementor-editor/command-bases/command-container-base */ "../assets/dev/js/editor/command-bases/command-container-base.js")); | |
| 135 | -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)); } | |
| 136 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 137 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 3553 | +}); | |
| 3554 | + | |
| 3555 | +exports.getDefaultDebounceDelay = exports["default"] = exports.DEFAULT_DEBOUNCE_DELAY = void 0; | |
| 3556 | + | |
| 3557 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 3558 | + | |
| 3559 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 3560 | + | |
| 3561 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 3562 | + | |
| 3563 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 3564 | + | |
| 3565 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 3566 | + | |
| 3567 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 3568 | + | |
| 3569 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/defineProperty */ "../node_modules/@babel/runtime-corejs2/helpers/defineProperty.js")); | |
| 3570 | + | |
| 3571 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 3572 | + | |
| 3573 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! ./command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 3574 | + | |
| 3575 | +var DEFAULT_DEBOUNCE_DELAY = 800; | |
| 138 | 3576 | /** |
| 139 | - * @name $e.modules.editor.document.CommandHistoryBase | |
| 3577 | + * Function getDefaultDebounceDelay(). | |
| 3578 | + * | |
| 3579 | + * Returns default debounce delay time, if exists in config override. | |
| 3580 | + * | |
| 3581 | + * @returns {number} | |
| 140 | 3582 | */ |
| 141 | -var CommandHistoryBase = exports["default"] = /*#__PURE__*/function (_CommandContainerBase) { | |
| 142 | - function CommandHistoryBase() { | |
| 143 | - (0, _classCallCheck2.default)(this, CommandHistoryBase); | |
| 144 | - return _callSuper(this, CommandHistoryBase, arguments); | |
| 3583 | + | |
| 3584 | +exports.DEFAULT_DEBOUNCE_DELAY = DEFAULT_DEBOUNCE_DELAY; | |
| 3585 | + | |
| 3586 | +var getDefaultDebounceDelay = function getDefaultDebounceDelay() { | |
| 3587 | + var result = DEFAULT_DEBOUNCE_DELAY; | |
| 3588 | + | |
| 3589 | + if (elementor.config.document && undefined !== elementor.config.document.debounceDelay) { | |
| 3590 | + result = elementor.config.document.debounceDelay; | |
| 145 | 3591 | } |
| 146 | - (0, _inherits2.default)(CommandHistoryBase, _CommandContainerBase); | |
| 147 | - return (0, _createClass2.default)(CommandHistoryBase, [{ | |
| 3592 | + | |
| 3593 | + return result; | |
| 3594 | +}; | |
| 3595 | + | |
| 3596 | +exports.getDefaultDebounceDelay = getDefaultDebounceDelay; | |
| 3597 | + | |
| 3598 | +var CommandHistoryDebounce = /*#__PURE__*/function (_CommandHistory) { | |
| 3599 | + (0, _inherits2.default)(CommandHistoryDebounce, _CommandHistory); | |
| 3600 | + | |
| 3601 | + var _super = (0, _createSuper2.default)(CommandHistoryDebounce); | |
| 3602 | + | |
| 3603 | + function CommandHistoryDebounce() { | |
| 3604 | + (0, _classCallCheck2.default)(this, CommandHistoryDebounce); | |
| 3605 | + return _super.apply(this, arguments); | |
| 3606 | + } | |
| 3607 | + | |
| 3608 | + (0, _createClass2.default)(CommandHistoryDebounce, [{ | |
| 148 | 3609 | key: "initialize", |
| 149 | - value: function initialize() { | |
| 150 | - var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 3610 | + value: function initialize(args) { | |
| 151 | 3611 | var _args$options = args.options, |
| 152 | - options = _args$options === void 0 ? {} : _args$options, | |
| 153 | - _options$useHistory = options.useHistory, | |
| 154 | - useHistory = _options$useHistory === void 0 ? true : _options$useHistory; | |
| 155 | - if (useHistory) { | |
| 156 | - /** | |
| 157 | - * Get History from child command. | |
| 158 | - * | |
| 159 | - * @type {{}|boolean} | |
| 160 | - */ | |
| 161 | - this.history = this.getHistory(args); | |
| 3612 | + options = _args$options === void 0 ? {} : _args$options; | |
| 3613 | + (0, _get2.default)((0, _getPrototypeOf2.default)(CommandHistoryDebounce.prototype), "initialize", this).call(this, args); | |
| 162 | 3614 | |
| 163 | - /** | |
| 164 | - * @type {number|boolean} | |
| 165 | - */ | |
| 166 | - this.historyId = false; | |
| 3615 | + if (!this.constructor.debounce) { | |
| 3616 | + this.constructor.debounce = _.debounce(function (fn) { | |
| 3617 | + return fn(); | |
| 3618 | + }, getDefaultDebounceDelay()); | |
| 3619 | + } // If its head command, and not called within another command. | |
| 3620 | + | |
| 3621 | + | |
| 3622 | + if (1 === $e.commands.currentTrace.length || options.debounce) { | |
| 3623 | + this.isDebounceRequired = true; | |
| 167 | 3624 | } |
| 168 | 3625 | } |
| 3626 | + }, { | |
| 3627 | + key: "onBeforeRun", | |
| 3628 | + value: function onBeforeRun(args) { | |
| 3629 | + _commandBase.default.prototype.onBeforeRun.call(this, args); | |
| 169 | 3630 | |
| 170 | - // eslint-disable-next-line jsdoc/require-returns-check | |
| 3631 | + if (this.history && this.isHistoryActive()) { | |
| 3632 | + $e.internal('document/history/add-transaction', this.history); | |
| 3633 | + } | |
| 3634 | + } | |
| 3635 | + }, { | |
| 3636 | + key: "onAfterRun", | |
| 3637 | + value: function onAfterRun(args, result) { | |
| 3638 | + _commandBase.default.prototype.onAfterRun.call(this, args, result); | |
| 3639 | + | |
| 3640 | + if (this.isHistoryActive()) { | |
| 3641 | + if (this.isDebounceRequired) { | |
| 3642 | + this.constructor.debounce(function () { | |
| 3643 | + return $e.internal('document/history/end-transaction'); | |
| 3644 | + }); | |
| 3645 | + } else { | |
| 3646 | + $e.internal('document/history/end-transaction'); | |
| 3647 | + } | |
| 3648 | + } | |
| 3649 | + } | |
| 3650 | + }, { | |
| 3651 | + key: "onCatchApply", | |
| 3652 | + value: function onCatchApply(e) { | |
| 3653 | + _commandBase.default.prototype.onCatchApply.call(this, e); // Rollback history on failure. | |
| 3654 | + | |
| 3655 | + | |
| 3656 | + if (e instanceof $e.modules.HookBreak && this.history) { | |
| 3657 | + if (this.isDebounceRequired) { | |
| 3658 | + // `clear-transaction` is under debounce, because it should `clear-transaction` after `end-transaction`. | |
| 3659 | + this.constructor.debounce(function () { | |
| 3660 | + return $e.internal('document/history/clear-transaction'); | |
| 3661 | + }); | |
| 3662 | + } else { | |
| 3663 | + $e.internal('document/history/clear-transaction'); | |
| 3664 | + } | |
| 3665 | + } | |
| 3666 | + } | |
| 3667 | + }], [{ | |
| 3668 | + key: "getInstanceType", | |
| 3669 | + value: | |
| 171 | 3670 | /** |
| 172 | - * Function getHistory(). | |
| 3671 | + * Function debounce(). | |
| 173 | 3672 | * |
| 174 | - * Get history object from child, do nothing if it false. | |
| 3673 | + * Will debounce every function you pass in, at the same debounce flow. | |
| 175 | 3674 | * |
| 176 | - * @param {*} [args={}] | |
| 3675 | + * @param {(function())} | |
| 3676 | + */ | |
| 3677 | + function getInstanceType() { | |
| 3678 | + return 'CommandHistoryDebounce'; | |
| 3679 | + } | |
| 3680 | + }]); | |
| 3681 | + return CommandHistoryDebounce; | |
| 3682 | +}(_commandHistory.default); | |
| 3683 | + | |
| 3684 | +exports["default"] = CommandHistoryDebounce; | |
| 3685 | +(0, _defineProperty2.default)(CommandHistoryDebounce, "debounce", undefined); | |
| 3686 | + | |
| 3687 | +/***/ }), | |
| 3688 | + | |
| 3689 | +/***/ "../assets/dev/js/editor/document/commands/base/command-history.js": | |
| 3690 | +/*!*************************************************************************!*\ | |
| 3691 | + !*** ../assets/dev/js/editor/document/commands/base/command-history.js ***! | |
| 3692 | + \*************************************************************************/ | |
| 3693 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3694 | + | |
| 3695 | +"use strict"; | |
| 3696 | + | |
| 3697 | + | |
| 3698 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 3699 | + | |
| 3700 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 3701 | + | |
| 3702 | +_Object$defineProperty(exports, "__esModule", { | |
| 3703 | + value: true | |
| 3704 | +}); | |
| 3705 | + | |
| 3706 | +exports["default"] = void 0; | |
| 3707 | + | |
| 3708 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 3709 | + | |
| 3710 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 3711 | + | |
| 3712 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 3713 | + | |
| 3714 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 3715 | + | |
| 3716 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 3717 | + | |
| 3718 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 3719 | + | |
| 3720 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 3721 | + | |
| 3722 | +var CommandHistory = /*#__PURE__*/function (_CommandBase) { | |
| 3723 | + (0, _inherits2.default)(CommandHistory, _CommandBase); | |
| 3724 | + | |
| 3725 | + var _super = (0, _createSuper2.default)(CommandHistory); | |
| 3726 | + | |
| 3727 | + function CommandHistory(args) { | |
| 3728 | + var _this; | |
| 3729 | + | |
| 3730 | + (0, _classCallCheck2.default)(this, CommandHistory); | |
| 3731 | + _this = _super.call(this, args); | |
| 3732 | + /** | |
| 3733 | + * Get History from child command. | |
| 177 | 3734 | * |
| 178 | - * @return {({}|boolean)} history object | |
| 3735 | + * @type {{}|boolean} | |
| 179 | 3736 | */ |
| 180 | - }, { | |
| 3737 | + | |
| 3738 | + _this.history = _this.getHistory(args); | |
| 3739 | + /** | |
| 3740 | + * @type {number|boolean} | |
| 3741 | + */ | |
| 3742 | + | |
| 3743 | + _this.historyId = false; | |
| 3744 | + return _this; | |
| 3745 | + } | |
| 3746 | + /** | |
| 3747 | + * Function getHistory(). | |
| 3748 | + * | |
| 3749 | + * Get history object from child, do nothing if it false. | |
| 3750 | + * | |
| 3751 | + * @param [args={}] | |
| 3752 | + * | |
| 3753 | + * @returns {({}|boolean)} | |
| 3754 | + */ | |
| 3755 | + | |
| 3756 | + | |
| 3757 | + (0, _createClass2.default)(CommandHistory, [{ | |
| 181 | 3758 | key: "getHistory", |
| 182 | 3759 | value: function getHistory() { |
| 183 | 3760 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 184 | 3761 | // eslint-disable-line no-unused-vars |
| @@ -183,16 +3760,16 @@ | ||
| 183 | 3760 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 184 | 3761 | // eslint-disable-line no-unused-vars |
| 185 | 3762 | elementorModules.ForceMethodImplementation(); |
| 186 | 3763 | } |
| 187 | - | |
| 188 | 3764 | /** |
| 189 | 3765 | * Function isHistoryActive(). |
| 190 | 3766 | * |
| 191 | 3767 | * Return `elementor.documents.getCurrent().history.getActive()`. |
| 192 | 3768 | * |
| 193 | - * @return {boolean} is history active | |
| 3769 | + * @returns {boolean} | |
| 194 | 3770 | */ |
| 3771 | + | |
| 195 | 3772 | }, { |
| 196 | 3773 | key: "isHistoryActive", |
| 197 | 3774 | value: function isHistoryActive() { |
| 198 | 3775 | return elementor.documents.getCurrent().history.getActive(); |
| @@ -199,9 +3776,10 @@ | ||
| 199 | 3776 | } |
| 200 | 3777 | }, { |
| 201 | 3778 | key: "onBeforeRun", |
| 202 | 3779 | value: function onBeforeRun(args) { |
| 203 | - _superPropGet(CommandHistoryBase, "onBeforeRun", this, 3)([args]); | |
| 3780 | + (0, _get2.default)((0, _getPrototypeOf2.default)(CommandHistory.prototype), "onBeforeRun", this).call(this, args); | |
| 3781 | + | |
| 204 | 3782 | if (this.history && this.isHistoryActive()) { |
| 205 | 3783 | this.historyId = $e.internal('document/history/start-log', this.history); |
| 206 | 3784 | } |
| 207 | 3785 | } |
| @@ -207,9 +3785,10 @@ | ||
| 207 | 3785 | } |
| 208 | 3786 | }, { |
| 209 | 3787 | key: "onAfterRun", |
| 210 | 3788 | value: function onAfterRun(args, result) { |
| 211 | - _superPropGet(CommandHistoryBase, "onAfterRun", this, 3)([args, result]); | |
| 3789 | + (0, _get2.default)((0, _getPrototypeOf2.default)(CommandHistory.prototype), "onAfterRun", this).call(this, args, result); | |
| 3790 | + | |
| 212 | 3791 | if (this.history && this.isHistoryActive()) { |
| 213 | 3792 | $e.internal('document/history/end-log', { |
| 214 | 3793 | id: this.historyId |
| 215 | 3794 | }); |
| @@ -215,49 +3794,4102 @@ | ||
| 215 | 3794 | }); |
| 216 | 3795 | } |
| 217 | 3796 | } |
| 218 | 3797 | }, { |
| 219 | - key: "onAfterApply", | |
| 220 | - value: function onAfterApply() { | |
| 3798 | + key: "onCatchApply", | |
| 3799 | + value: function onCatchApply(e) { | |
| 3800 | + (0, _get2.default)((0, _getPrototypeOf2.default)(CommandHistory.prototype), "onCatchApply", this).call(this, e); // Rollback history on failure. | |
| 3801 | + | |
| 3802 | + if (e instanceof $e.modules.HookBreak && this.historyId) { | |
| 3803 | + $e.internal('document/history/delete-log', { | |
| 3804 | + id: this.historyId | |
| 3805 | + }); | |
| 3806 | + } | |
| 3807 | + } | |
| 3808 | + }], [{ | |
| 3809 | + key: "getInstanceType", | |
| 3810 | + value: function getInstanceType() { | |
| 3811 | + return 'CommandHistory'; | |
| 3812 | + } | |
| 3813 | + }]); | |
| 3814 | + return CommandHistory; | |
| 3815 | +}(_commandBase.default); | |
| 3816 | + | |
| 3817 | +exports["default"] = CommandHistory; | |
| 3818 | + | |
| 3819 | +/***/ }), | |
| 3820 | + | |
| 3821 | +/***/ "../assets/dev/js/editor/document/component.js": | |
| 3822 | +/*!*****************************************************!*\ | |
| 3823 | + !*** ../assets/dev/js/editor/document/component.js ***! | |
| 3824 | + \*****************************************************/ | |
| 3825 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3826 | + | |
| 3827 | +"use strict"; | |
| 3828 | + | |
| 3829 | + | |
| 3830 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 3831 | + | |
| 3832 | +var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireWildcard */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js"); | |
| 3833 | + | |
| 3834 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 3835 | + | |
| 3836 | +_Object$defineProperty(exports, "__esModule", { | |
| 3837 | + value: true | |
| 3838 | +}); | |
| 3839 | + | |
| 3840 | +exports["default"] = void 0; | |
| 3841 | + | |
| 3842 | +var _values = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "../node_modules/@babel/runtime-corejs2/core-js/object/values.js")); | |
| 3843 | + | |
| 3844 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 3845 | + | |
| 3846 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 3847 | + | |
| 3848 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 3849 | + | |
| 3850 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 3851 | + | |
| 3852 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 3853 | + | |
| 3854 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 3855 | + | |
| 3856 | +var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../core/common/assets/js/api/modules/component-base.js")); | |
| 3857 | + | |
| 3858 | +var _backwardsCompatibility = _interopRequireDefault(__webpack_require__(/*! ./backwards-compatibility.js */ "../assets/dev/js/editor/document/backwards-compatibility.js")); | |
| 3859 | + | |
| 3860 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! ./commands/base/command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 3861 | + | |
| 3862 | +var _commandHistoryDebounce = _interopRequireDefault(__webpack_require__(/*! ./commands/base/command-history-debounce */ "../assets/dev/js/editor/document/commands/base/command-history-debounce.js")); | |
| 3863 | + | |
| 3864 | +var components = _interopRequireWildcard(__webpack_require__(/*! ./ */ "../assets/dev/js/editor/document/index.js")); | |
| 3865 | + | |
| 3866 | +var hooks = _interopRequireWildcard(__webpack_require__(/*! ./hooks/ */ "../assets/dev/js/editor/document/hooks/index.js")); | |
| 3867 | + | |
| 3868 | +var Component = /*#__PURE__*/function (_ComponentBase) { | |
| 3869 | + (0, _inherits2.default)(Component, _ComponentBase); | |
| 3870 | + | |
| 3871 | + var _super = (0, _createSuper2.default)(Component); | |
| 3872 | + | |
| 3873 | + function Component() { | |
| 3874 | + (0, _classCallCheck2.default)(this, Component); | |
| 3875 | + return _super.apply(this, arguments); | |
| 3876 | + } | |
| 3877 | + | |
| 3878 | + (0, _createClass2.default)(Component, [{ | |
| 3879 | + key: "getNamespace", | |
| 3880 | + value: function getNamespace() { | |
| 3881 | + return 'document'; | |
| 3882 | + } | |
| 3883 | + }, { | |
| 3884 | + key: "registerAPI", | |
| 3885 | + value: function registerAPI() { | |
| 3886 | + new _backwardsCompatibility.default(); | |
| 3887 | + (0, _values.default)(components).forEach(function (ComponentClass) { | |
| 3888 | + return $e.components.register(new ComponentClass()); | |
| 3889 | + }); | |
| 3890 | + (0, _get2.default)((0, _getPrototypeOf2.default)(Component.prototype), "registerAPI", this).call(this); | |
| 3891 | + } | |
| 3892 | + }, { | |
| 3893 | + key: "defaultCommands", | |
| 3894 | + value: function defaultCommands() { | |
| 3895 | + return {//example: ( args ) => ( new Commands.Example( args ).run() ), | |
| 3896 | + }; | |
| 3897 | + } | |
| 3898 | + }, { | |
| 3899 | + key: "defaultHooks", | |
| 3900 | + value: function defaultHooks() { | |
| 3901 | + return this.importHooks(hooks); | |
| 3902 | + } | |
| 3903 | + }, { | |
| 3904 | + key: "defaultUtils", | |
| 3905 | + value: function defaultUtils() { | |
| 3906 | + var _this = this; | |
| 3907 | + | |
| 3908 | + return { | |
| 3909 | + findViewRecursive: function findViewRecursive(parent, key, value) { | |
| 3910 | + var multiple = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; | |
| 3911 | + var found = []; | |
| 3912 | + | |
| 3913 | + for (var x in parent._views) { | |
| 3914 | + var view = parent._views[x]; | |
| 3915 | + | |
| 3916 | + if (value === view.model.get(key)) { | |
| 3917 | + found.push(view); | |
| 3918 | + | |
| 3919 | + if (!multiple) { | |
| 3920 | + return found; | |
| 3921 | + } | |
| 3922 | + } | |
| 3923 | + | |
| 3924 | + if (view.children) { | |
| 3925 | + var views = _this.utils.findViewRecursive(view.children, key, value, multiple); | |
| 3926 | + | |
| 3927 | + if (views.length) { | |
| 3928 | + found = found.concat(views); | |
| 3929 | + | |
| 3930 | + if (!multiple) { | |
| 3931 | + return found; | |
| 3932 | + } | |
| 3933 | + } | |
| 3934 | + } | |
| 3935 | + } | |
| 3936 | + | |
| 3937 | + return found; | |
| 3938 | + }, | |
| 3939 | + findViewById: function findViewById(id) { | |
| 3940 | + var elements = _this.utils.findViewRecursive(elementor.getPreviewView().children, 'id', id, false); | |
| 3941 | + | |
| 3942 | + return elements ? elements[0] : false; | |
| 3943 | + }, | |
| 3944 | + findContainerById: function findContainerById(id) { | |
| 3945 | + var result = _this.utils.findViewById(id); | |
| 3946 | + | |
| 3947 | + if (result) { | |
| 3948 | + result = result.getContainer(); | |
| 3949 | + } | |
| 3950 | + | |
| 3951 | + return result; | |
| 3952 | + } | |
| 3953 | + }; | |
| 3954 | + } | |
| 3955 | + }], [{ | |
| 3956 | + key: "getModules", | |
| 3957 | + value: function getModules() { | |
| 3958 | + var modules = { | |
| 3959 | + get CommandHistoryBase() { | |
| 3960 | + elementorCommon.helpers.hardDeprecated('$e.modules.document.CommandHistoryBase', '3.0.0', '$e.modules.document.CommandHistory'); | |
| 3961 | + return this.CommandHistory; | |
| 3962 | + }, | |
| 3963 | + | |
| 3964 | + get CommandHistoryDebounceBase() { | |
| 3965 | + elementorCommon.helpers.hardDeprecated('$e.modules.document.CommandHistoryDebounceBase', '3.0.0', '$e.modules.document.CommandHistoryDebounce'); | |
| 3966 | + return this.CommandHistoryDebounce; | |
| 3967 | + }, | |
| 3968 | + | |
| 3969 | + CommandHistory: _commandHistory.default, | |
| 3970 | + CommandHistoryDebounce: _commandHistoryDebounce.default | |
| 3971 | + }; | |
| 3972 | + return modules; | |
| 3973 | + } | |
| 3974 | + }]); | |
| 3975 | + return Component; | |
| 3976 | +}(_componentBase.default); | |
| 3977 | + | |
| 3978 | +exports["default"] = Component; | |
| 3979 | + | |
| 3980 | +/***/ }), | |
| 3981 | + | |
| 3982 | +/***/ "../assets/dev/js/editor/document/dynamic/commands/base/disable-enable.js": | |
| 3983 | +/*!********************************************************************************!*\ | |
| 3984 | + !*** ../assets/dev/js/editor/document/dynamic/commands/base/disable-enable.js ***! | |
| 3985 | + \********************************************************************************/ | |
| 3986 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3987 | + | |
| 3988 | +"use strict"; | |
| 3989 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 3990 | + | |
| 3991 | + | |
| 3992 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 3993 | + | |
| 3994 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 3995 | + | |
| 3996 | +_Object$defineProperty(exports, "__esModule", { | |
| 3997 | + value: true | |
| 3998 | +}); | |
| 3999 | + | |
| 4000 | +exports["default"] = void 0; | |
| 4001 | + | |
| 4002 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 4003 | + | |
| 4004 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 4005 | + | |
| 4006 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 4007 | + | |
| 4008 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 4009 | + | |
| 4010 | +var _commandDisableEnable = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-disable-enable */ "../assets/dev/js/editor/document/commands/base/command-disable-enable.js")); | |
| 4011 | + | |
| 4012 | +var DisableEnable = /*#__PURE__*/function (_CommandDisableEnable) { | |
| 4013 | + (0, _inherits2.default)(DisableEnable, _CommandDisableEnable); | |
| 4014 | + | |
| 4015 | + var _super = (0, _createSuper2.default)(DisableEnable); | |
| 4016 | + | |
| 4017 | + function DisableEnable() { | |
| 4018 | + (0, _classCallCheck2.default)(this, DisableEnable); | |
| 4019 | + return _super.apply(this, arguments); | |
| 4020 | + } | |
| 4021 | + | |
| 4022 | + (0, _createClass2.default)(DisableEnable, [{ | |
| 4023 | + key: "getTitle", | |
| 4024 | + value: function getTitle() { | |
| 4025 | + return __('Dynamic'); | |
| 4026 | + } | |
| 4027 | + }], [{ | |
| 4028 | + key: "getEnableCommand", | |
| 4029 | + value: function getEnableCommand() { | |
| 4030 | + return 'document/dynamic/enable'; | |
| 4031 | + } | |
| 4032 | + }, { | |
| 4033 | + key: "getDisableCommand", | |
| 4034 | + value: function getDisableCommand() { | |
| 4035 | + return 'document/dynamic/disable'; | |
| 4036 | + } | |
| 4037 | + }]); | |
| 4038 | + return DisableEnable; | |
| 4039 | +}(_commandDisableEnable.default); | |
| 4040 | + | |
| 4041 | +exports["default"] = DisableEnable; | |
| 4042 | + | |
| 4043 | +/***/ }), | |
| 4044 | + | |
| 4045 | +/***/ "../assets/dev/js/editor/document/dynamic/commands/disable.js": | |
| 4046 | +/*!********************************************************************!*\ | |
| 4047 | + !*** ../assets/dev/js/editor/document/dynamic/commands/disable.js ***! | |
| 4048 | + \********************************************************************/ | |
| 4049 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4050 | + | |
| 4051 | +"use strict"; | |
| 4052 | + | |
| 4053 | + | |
| 4054 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 4055 | + | |
| 4056 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 4057 | + | |
| 4058 | +_Object$defineProperty(exports, "__esModule", { | |
| 4059 | + value: true | |
| 4060 | +}); | |
| 4061 | + | |
| 4062 | +exports["default"] = exports.Disable = void 0; | |
| 4063 | + | |
| 4064 | +var _keys = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js")); | |
| 4065 | + | |
| 4066 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 4067 | + | |
| 4068 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 4069 | + | |
| 4070 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 4071 | + | |
| 4072 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 4073 | + | |
| 4074 | +var _disableEnable = _interopRequireDefault(__webpack_require__(/*! ./base/disable-enable */ "../assets/dev/js/editor/document/dynamic/commands/base/disable-enable.js")); | |
| 4075 | + | |
| 4076 | +var Disable = /*#__PURE__*/function (_DisableEnable) { | |
| 4077 | + (0, _inherits2.default)(Disable, _DisableEnable); | |
| 4078 | + | |
| 4079 | + var _super = (0, _createSuper2.default)(Disable); | |
| 4080 | + | |
| 4081 | + function Disable() { | |
| 4082 | + (0, _classCallCheck2.default)(this, Disable); | |
| 4083 | + return _super.apply(this, arguments); | |
| 4084 | + } | |
| 4085 | + | |
| 4086 | + (0, _createClass2.default)(Disable, [{ | |
| 4087 | + key: "apply", | |
| 4088 | + value: function apply(args) { | |
| 4089 | + var settings = args.settings, | |
| 4090 | + _args$containers = args.containers, | |
| 4091 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 4092 | + containers.forEach(function (container) { | |
| 4093 | + container = container.lookup(); | |
| 4094 | + (0, _keys.default)(settings).forEach(function (setting) { | |
| 4095 | + container.dynamic.unset(setting); | |
| 4096 | + }); | |
| 4097 | + $e.internal('document/elements/set-settings', { | |
| 4098 | + container: container, | |
| 4099 | + settings: { | |
| 4100 | + __dynamic__: container.dynamic.toJSON() | |
| 4101 | + } | |
| 4102 | + }); | |
| 4103 | + }); | |
| 4104 | + } | |
| 4105 | + }]); | |
| 4106 | + return Disable; | |
| 4107 | +}(_disableEnable.default); | |
| 4108 | + | |
| 4109 | +exports.Disable = Disable; | |
| 4110 | +var _default = Disable; | |
| 4111 | +exports["default"] = _default; | |
| 4112 | + | |
| 4113 | +/***/ }), | |
| 4114 | + | |
| 4115 | +/***/ "../assets/dev/js/editor/document/dynamic/commands/enable.js": | |
| 4116 | +/*!*******************************************************************!*\ | |
| 4117 | + !*** ../assets/dev/js/editor/document/dynamic/commands/enable.js ***! | |
| 4118 | + \*******************************************************************/ | |
| 4119 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4120 | + | |
| 4121 | +"use strict"; | |
| 4122 | + | |
| 4123 | + | |
| 4124 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 4125 | + | |
| 4126 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 4127 | + | |
| 4128 | +_Object$defineProperty(exports, "__esModule", { | |
| 4129 | + value: true | |
| 4130 | +}); | |
| 4131 | + | |
| 4132 | +exports["default"] = exports.Enable = void 0; | |
| 4133 | + | |
| 4134 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 4135 | + | |
| 4136 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 4137 | + | |
| 4138 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 4139 | + | |
| 4140 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 4141 | + | |
| 4142 | +var _disableEnable = _interopRequireDefault(__webpack_require__(/*! ./base/disable-enable */ "../assets/dev/js/editor/document/dynamic/commands/base/disable-enable.js")); | |
| 4143 | + | |
| 4144 | +var Enable = /*#__PURE__*/function (_DisableEnable) { | |
| 4145 | + (0, _inherits2.default)(Enable, _DisableEnable); | |
| 4146 | + | |
| 4147 | + var _super = (0, _createSuper2.default)(Enable); | |
| 4148 | + | |
| 4149 | + function Enable() { | |
| 4150 | + (0, _classCallCheck2.default)(this, Enable); | |
| 4151 | + return _super.apply(this, arguments); | |
| 4152 | + } | |
| 4153 | + | |
| 4154 | + (0, _createClass2.default)(Enable, [{ | |
| 4155 | + key: "apply", | |
| 4156 | + value: function apply(args) { | |
| 4157 | + var settings = args.settings, | |
| 4158 | + _args$containers = args.containers, | |
| 4159 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 4160 | + containers.forEach(function (container) { | |
| 4161 | + container = container.lookup(); | |
| 4162 | + container.dynamic.set(settings); | |
| 4163 | + $e.internal('document/elements/set-settings', { | |
| 4164 | + container: container, | |
| 4165 | + settings: { | |
| 4166 | + __dynamic__: container.dynamic.toJSON() | |
| 4167 | + } | |
| 4168 | + }); | |
| 4169 | + }); | |
| 4170 | + } | |
| 4171 | + }]); | |
| 4172 | + return Enable; | |
| 4173 | +}(_disableEnable.default); | |
| 4174 | + | |
| 4175 | +exports.Enable = Enable; | |
| 4176 | +var _default = Enable; | |
| 4177 | +exports["default"] = _default; | |
| 4178 | + | |
| 4179 | +/***/ }), | |
| 4180 | + | |
| 4181 | +/***/ "../assets/dev/js/editor/document/dynamic/commands/index.js": | |
| 4182 | +/*!******************************************************************!*\ | |
| 4183 | + !*** ../assets/dev/js/editor/document/dynamic/commands/index.js ***! | |
| 4184 | + \******************************************************************/ | |
| 4185 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4186 | + | |
| 4187 | +"use strict"; | |
| 4188 | + | |
| 4189 | + | |
| 4190 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 4191 | + | |
| 4192 | +_Object$defineProperty(exports, "__esModule", { | |
| 4193 | + value: true | |
| 4194 | +}); | |
| 4195 | + | |
| 4196 | +_Object$defineProperty(exports, "Disable", { | |
| 4197 | + enumerable: true, | |
| 4198 | + get: function get() { | |
| 4199 | + return _disable.Disable; | |
| 4200 | + } | |
| 4201 | +}); | |
| 4202 | + | |
| 4203 | +_Object$defineProperty(exports, "Enable", { | |
| 4204 | + enumerable: true, | |
| 4205 | + get: function get() { | |
| 4206 | + return _enable.Enable; | |
| 4207 | + } | |
| 4208 | +}); | |
| 4209 | + | |
| 4210 | +_Object$defineProperty(exports, "Settings", { | |
| 4211 | + enumerable: true, | |
| 4212 | + get: function get() { | |
| 4213 | + return _settings.Settings; | |
| 4214 | + } | |
| 4215 | +}); | |
| 4216 | + | |
| 4217 | +var _disable = __webpack_require__(/*! ./disable */ "../assets/dev/js/editor/document/dynamic/commands/disable.js"); | |
| 4218 | + | |
| 4219 | +var _enable = __webpack_require__(/*! ./enable */ "../assets/dev/js/editor/document/dynamic/commands/enable.js"); | |
| 4220 | + | |
| 4221 | +var _settings = __webpack_require__(/*! ./settings */ "../assets/dev/js/editor/document/dynamic/commands/settings.js"); | |
| 4222 | + | |
| 4223 | +/***/ }), | |
| 4224 | + | |
| 4225 | +/***/ "../assets/dev/js/editor/document/dynamic/commands/settings.js": | |
| 4226 | +/*!*********************************************************************!*\ | |
| 4227 | + !*** ../assets/dev/js/editor/document/dynamic/commands/settings.js ***! | |
| 4228 | + \*********************************************************************/ | |
| 4229 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4230 | + | |
| 4231 | +"use strict"; | |
| 4232 | + | |
| 4233 | + | |
| 4234 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 4235 | + | |
| 4236 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 4237 | + | |
| 4238 | +_Object$defineProperty(exports, "__esModule", { | |
| 4239 | + value: true | |
| 4240 | +}); | |
| 4241 | + | |
| 4242 | +exports["default"] = exports.Settings = void 0; | |
| 4243 | + | |
| 4244 | +var _keys = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js")); | |
| 4245 | + | |
| 4246 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 4247 | + | |
| 4248 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 4249 | + | |
| 4250 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 4251 | + | |
| 4252 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 4253 | + | |
| 4254 | +var _commandHistoryDebounce = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history-debounce */ "../assets/dev/js/editor/document/commands/base/command-history-debounce.js")); | |
| 4255 | + | |
| 4256 | +var _settings = _interopRequireDefault(__webpack_require__(/*! elementor-document/elements/commands/settings */ "../assets/dev/js/editor/document/elements/commands/settings.js")); | |
| 4257 | + | |
| 4258 | +/** | |
| 4259 | + * The difference between 'document/elements/settings` and `document/dynamic/settings` is: | |
| 4260 | + * that `document/elements/settings` apply settings to `container.settings` and `document/dynamic/settings` affect | |
| 4261 | + * `container.settings.__dynamic__`, also clearing the dynamic if `args.settings` is empty. | |
| 4262 | + */ | |
| 4263 | +var Settings = /*#__PURE__*/function (_CommandHistoryDeboun) { | |
| 4264 | + (0, _inherits2.default)(Settings, _CommandHistoryDeboun); | |
| 4265 | + | |
| 4266 | + var _super = (0, _createSuper2.default)(Settings); | |
| 4267 | + | |
| 4268 | + function Settings() { | |
| 4269 | + (0, _classCallCheck2.default)(this, Settings); | |
| 4270 | + return _super.apply(this, arguments); | |
| 4271 | + } | |
| 4272 | + | |
| 4273 | + (0, _createClass2.default)(Settings, [{ | |
| 4274 | + key: "validateArgs", | |
| 4275 | + value: function validateArgs(args) { | |
| 4276 | + this.requireContainer(args); | |
| 4277 | + this.requireArgumentConstructor('settings', Object, args); | |
| 4278 | + } | |
| 4279 | + }, { | |
| 4280 | + key: "getHistory", | |
| 4281 | + value: function getHistory(args) { | |
| 4282 | + var settings = args.settings, | |
| 4283 | + _args$containers = args.containers, | |
| 4284 | + containers = _args$containers === void 0 ? [args.container] : _args$containers, | |
| 4285 | + changes = {}; | |
| 4286 | + containers.forEach(function (container) { | |
| 4287 | + var id = container.id; | |
| 4288 | + | |
| 4289 | + if (!changes[id]) { | |
| 4290 | + changes[id] = {}; | |
| 4291 | + } | |
| 4292 | + | |
| 4293 | + changes[id] = { | |
| 4294 | + old: container.dynamic.toJSON(), | |
| 4295 | + new: settings | |
| 4296 | + }; | |
| 4297 | + }); | |
| 4298 | + | |
| 4299 | + var subTitle = _settings.default.getSubTitle(args); | |
| 4300 | + | |
| 4301 | + return { | |
| 4302 | + containers: containers, | |
| 4303 | + subTitle: subTitle, | |
| 4304 | + data: { | |
| 4305 | + changes: changes | |
| 4306 | + }, | |
| 4307 | + type: 'change', | |
| 4308 | + restore: this.constructor.restore | |
| 4309 | + }; | |
| 4310 | + } | |
| 4311 | + }, { | |
| 4312 | + key: "apply", | |
| 4313 | + value: function apply(args) { | |
| 4314 | + var settings = args.settings, | |
| 4315 | + _args$containers2 = args.containers, | |
| 4316 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2; | |
| 4317 | + containers.forEach(function (container) { | |
| 4318 | + container = container.lookup(); | |
| 4319 | + | |
| 4320 | + if (!(0, _keys.default)(settings).length) { | |
| 4321 | + container.dynamic.clear(); | |
| 4322 | + } else { | |
| 4323 | + container.dynamic.set(settings); | |
| 4324 | + } | |
| 4325 | + | |
| 4326 | + $e.internal('document/elements/set-settings', { | |
| 4327 | + container: container, | |
| 4328 | + settings: { | |
| 4329 | + __dynamic__: container.dynamic.toJSON() | |
| 4330 | + } | |
| 4331 | + }); | |
| 4332 | + }); | |
| 4333 | + } | |
| 4334 | + }], [{ | |
| 4335 | + key: "restore", | |
| 4336 | + value: function restore(historyItem, isRedo) { | |
| 4337 | + var data = historyItem.get('data'); | |
| 4338 | + historyItem.get('containers').forEach(function (container) { | |
| 4339 | + var changes = data.changes[container.id]; | |
| 4340 | + $e.run('document/dynamic/settings', { | |
| 4341 | + container: container, | |
| 4342 | + settings: isRedo ? changes.new : changes.old | |
| 4343 | + }); | |
| 4344 | + container.panel.refresh(); | |
| 4345 | + }); | |
| 4346 | + } | |
| 4347 | + }]); | |
| 4348 | + return Settings; | |
| 4349 | +}(_commandHistoryDebounce.default); | |
| 4350 | + | |
| 4351 | +exports.Settings = Settings; | |
| 4352 | +var _default = Settings; | |
| 4353 | +exports["default"] = _default; | |
| 4354 | + | |
| 4355 | +/***/ }), | |
| 4356 | + | |
| 4357 | +/***/ "../assets/dev/js/editor/document/dynamic/component.js": | |
| 4358 | +/*!*************************************************************!*\ | |
| 4359 | + !*** ../assets/dev/js/editor/document/dynamic/component.js ***! | |
| 4360 | + \*************************************************************/ | |
| 4361 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4362 | + | |
| 4363 | +"use strict"; | |
| 4364 | + | |
| 4365 | + | |
| 4366 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 4367 | + | |
| 4368 | +var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireWildcard */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js"); | |
| 4369 | + | |
| 4370 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 4371 | + | |
| 4372 | +_Object$defineProperty(exports, "__esModule", { | |
| 4373 | + value: true | |
| 4374 | +}); | |
| 4375 | + | |
| 4376 | +exports["default"] = void 0; | |
| 4377 | + | |
| 4378 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 4379 | + | |
| 4380 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 4381 | + | |
| 4382 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 4383 | + | |
| 4384 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 4385 | + | |
| 4386 | +var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../core/common/assets/js/api/modules/component-base.js")); | |
| 4387 | + | |
| 4388 | +var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../assets/dev/js/editor/document/dynamic/commands/index.js")); | |
| 4389 | + | |
| 4390 | +var Component = /*#__PURE__*/function (_ComponentBase) { | |
| 4391 | + (0, _inherits2.default)(Component, _ComponentBase); | |
| 4392 | + | |
| 4393 | + var _super = (0, _createSuper2.default)(Component); | |
| 4394 | + | |
| 4395 | + function Component() { | |
| 4396 | + (0, _classCallCheck2.default)(this, Component); | |
| 4397 | + return _super.apply(this, arguments); | |
| 4398 | + } | |
| 4399 | + | |
| 4400 | + (0, _createClass2.default)(Component, [{ | |
| 4401 | + key: "getNamespace", | |
| 4402 | + value: function getNamespace() { | |
| 4403 | + return 'document/dynamic'; | |
| 4404 | + } | |
| 4405 | + }, { | |
| 4406 | + key: "defaultCommands", | |
| 4407 | + value: function defaultCommands() { | |
| 4408 | + return this.importCommands(commands); | |
| 4409 | + } | |
| 4410 | + }]); | |
| 4411 | + return Component; | |
| 4412 | +}(_componentBase.default); | |
| 4413 | + | |
| 4414 | +exports["default"] = Component; | |
| 4415 | + | |
| 4416 | +/***/ }), | |
| 4417 | + | |
| 4418 | +/***/ "../assets/dev/js/editor/document/elements/commands-internal/index.js": | |
| 4419 | +/*!****************************************************************************!*\ | |
| 4420 | + !*** ../assets/dev/js/editor/document/elements/commands-internal/index.js ***! | |
| 4421 | + \****************************************************************************/ | |
| 4422 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4423 | + | |
| 4424 | +"use strict"; | |
| 4425 | + | |
| 4426 | + | |
| 4427 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 4428 | + | |
| 4429 | +_Object$defineProperty(exports, "__esModule", { | |
| 4430 | + value: true | |
| 4431 | +}); | |
| 4432 | + | |
| 4433 | +_Object$defineProperty(exports, "SetSettings", { | |
| 4434 | + enumerable: true, | |
| 4435 | + get: function get() { | |
| 4436 | + return _setSettings.SetSettings; | |
| 4437 | + } | |
| 4438 | +}); | |
| 4439 | + | |
| 4440 | +var _setSettings = __webpack_require__(/*! ./set-settings */ "../assets/dev/js/editor/document/elements/commands-internal/set-settings.js"); | |
| 4441 | + | |
| 4442 | +/***/ }), | |
| 4443 | + | |
| 4444 | +/***/ "../assets/dev/js/editor/document/elements/commands-internal/set-settings.js": | |
| 4445 | +/*!***********************************************************************************!*\ | |
| 4446 | + !*** ../assets/dev/js/editor/document/elements/commands-internal/set-settings.js ***! | |
| 4447 | + \***********************************************************************************/ | |
| 4448 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4449 | + | |
| 4450 | +"use strict"; | |
| 4451 | + | |
| 4452 | + | |
| 4453 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 4454 | + | |
| 4455 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 4456 | + | |
| 4457 | +_Object$defineProperty(exports, "__esModule", { | |
| 4458 | + value: true | |
| 4459 | +}); | |
| 4460 | + | |
| 4461 | +exports["default"] = exports.SetSettings = void 0; | |
| 4462 | + | |
| 4463 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 4464 | + | |
| 4465 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 4466 | + | |
| 4467 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 4468 | + | |
| 4469 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 4470 | + | |
| 4471 | +var _commandInternalBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-internal-base */ "../core/common/assets/js/api/modules/command-internal-base.js")); | |
| 4472 | + | |
| 4473 | +var SetSettings = /*#__PURE__*/function (_CommandInternal) { | |
| 4474 | + (0, _inherits2.default)(SetSettings, _CommandInternal); | |
| 4475 | + | |
| 4476 | + var _super = (0, _createSuper2.default)(SetSettings); | |
| 4477 | + | |
| 4478 | + function SetSettings() { | |
| 4479 | + (0, _classCallCheck2.default)(this, SetSettings); | |
| 4480 | + return _super.apply(this, arguments); | |
| 4481 | + } | |
| 4482 | + | |
| 4483 | + (0, _createClass2.default)(SetSettings, [{ | |
| 4484 | + key: "validateArgs", | |
| 4485 | + value: function validateArgs() { | |
| 221 | 4486 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 222 | - var result = arguments.length > 1 ? arguments[1] : undefined; | |
| 223 | - _superPropGet(CommandHistoryBase, "onAfterApply", this, 3)([args, result]); | |
| 224 | - if (this.isDataChanged()) { | |
| 4487 | + this.requireContainer(args); | |
| 4488 | + this.requireArgumentType('settings', 'object', args); | |
| 4489 | + | |
| 4490 | + if ('undefined' !== typeof args.render && 'undefined' !== typeof args.renderUI) { | |
| 4491 | + throw new Error('Args: `render` and `renderUI` cannot be applied together.'); | |
| 4492 | + } | |
| 4493 | + } | |
| 4494 | + }, { | |
| 4495 | + key: "apply", | |
| 4496 | + value: function apply() { | |
| 4497 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 4498 | + var _args$containers = args.containers, | |
| 4499 | + containers = _args$containers === void 0 ? [args.container] : _args$containers, | |
| 4500 | + settings = args.settings, | |
| 4501 | + _args$options = args.options, | |
| 4502 | + options = _args$options === void 0 ? {} : _args$options, | |
| 4503 | + external = options.external, | |
| 4504 | + _options$render = options.render, | |
| 4505 | + render = _options$render === void 0 ? true : _options$render, | |
| 4506 | + _options$renderUI = options.renderUI, | |
| 4507 | + renderUI = _options$renderUI === void 0 ? false : _options$renderUI; | |
| 4508 | + containers.forEach(function (container) { | |
| 4509 | + if (external) { | |
| 4510 | + container.settings.setExternalChange(settings); | |
| 4511 | + } else { | |
| 4512 | + container.settings.set(settings); | |
| 4513 | + } | |
| 4514 | + | |
| 4515 | + if (renderUI) { | |
| 4516 | + container.renderUI(); | |
| 4517 | + } else if (render) { | |
| 4518 | + container.render(); | |
| 4519 | + } | |
| 4520 | + }); | |
| 4521 | + } | |
| 4522 | + }]); | |
| 4523 | + return SetSettings; | |
| 4524 | +}(_commandInternalBase.default); | |
| 4525 | + | |
| 4526 | +exports.SetSettings = SetSettings; | |
| 4527 | +var _default = SetSettings; | |
| 4528 | +exports["default"] = _default; | |
| 4529 | + | |
| 4530 | +/***/ }), | |
| 4531 | + | |
| 4532 | +/***/ "../assets/dev/js/editor/document/elements/commands/copy-all.js": | |
| 4533 | +/*!**********************************************************************!*\ | |
| 4534 | + !*** ../assets/dev/js/editor/document/elements/commands/copy-all.js ***! | |
| 4535 | + \**********************************************************************/ | |
| 4536 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4537 | + | |
| 4538 | +"use strict"; | |
| 4539 | + | |
| 4540 | + | |
| 4541 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 4542 | + | |
| 4543 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 4544 | + | |
| 4545 | +_Object$defineProperty(exports, "__esModule", { | |
| 4546 | + value: true | |
| 4547 | +}); | |
| 4548 | + | |
| 4549 | +exports["default"] = exports.CopyAll = void 0; | |
| 4550 | + | |
| 4551 | +var _values = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "../node_modules/@babel/runtime-corejs2/core-js/object/values.js")); | |
| 4552 | + | |
| 4553 | +__webpack_require__(/*! core-js/modules/es6.array.map.js */ "../node_modules/core-js/modules/es6.array.map.js"); | |
| 4554 | + | |
| 4555 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 4556 | + | |
| 4557 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 4558 | + | |
| 4559 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 4560 | + | |
| 4561 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 4562 | + | |
| 4563 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 4564 | + | |
| 4565 | +var CopyAll = /*#__PURE__*/function (_CommandBase) { | |
| 4566 | + (0, _inherits2.default)(CopyAll, _CommandBase); | |
| 4567 | + | |
| 4568 | + var _super = (0, _createSuper2.default)(CopyAll); | |
| 4569 | + | |
| 4570 | + function CopyAll() { | |
| 4571 | + (0, _classCallCheck2.default)(this, CopyAll); | |
| 4572 | + return _super.apply(this, arguments); | |
| 4573 | + } | |
| 4574 | + | |
| 4575 | + (0, _createClass2.default)(CopyAll, [{ | |
| 4576 | + key: "apply", | |
| 4577 | + value: function apply() { | |
| 4578 | + $e.run('document/elements/copy', { | |
| 4579 | + containers: (0, _values.default)(elementor.getPreviewView().children._views).map(function (view) { | |
| 4580 | + return view.getContainer(); | |
| 4581 | + }) | |
| 4582 | + }); | |
| 4583 | + } | |
| 4584 | + }]); | |
| 4585 | + return CopyAll; | |
| 4586 | +}(_commandBase.default); | |
| 4587 | + | |
| 4588 | +exports.CopyAll = CopyAll; | |
| 4589 | +var _default = CopyAll; | |
| 4590 | +exports["default"] = _default; | |
| 4591 | + | |
| 4592 | +/***/ }), | |
| 4593 | + | |
| 4594 | +/***/ "../assets/dev/js/editor/document/elements/commands/copy.js": | |
| 4595 | +/*!******************************************************************!*\ | |
| 4596 | + !*** ../assets/dev/js/editor/document/elements/commands/copy.js ***! | |
| 4597 | + \******************************************************************/ | |
| 4598 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4599 | + | |
| 4600 | +"use strict"; | |
| 4601 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 4602 | + | |
| 4603 | + | |
| 4604 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 4605 | + | |
| 4606 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 4607 | + | |
| 4608 | +_Object$defineProperty(exports, "__esModule", { | |
| 4609 | + value: true | |
| 4610 | +}); | |
| 4611 | + | |
| 4612 | +exports["default"] = exports.Copy = void 0; | |
| 4613 | + | |
| 4614 | +__webpack_require__(/*! core-js/modules/es6.array.find.js */ "../node_modules/core-js/modules/es6.array.find.js"); | |
| 4615 | + | |
| 4616 | +__webpack_require__(/*! core-js/modules/es6.array.map.js */ "../node_modules/core-js/modules/es6.array.map.js"); | |
| 4617 | + | |
| 4618 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 4619 | + | |
| 4620 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 4621 | + | |
| 4622 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 4623 | + | |
| 4624 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 4625 | + | |
| 4626 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 4627 | + | |
| 4628 | +var Copy = /*#__PURE__*/function (_CommandBase) { | |
| 4629 | + (0, _inherits2.default)(Copy, _CommandBase); | |
| 4630 | + | |
| 4631 | + var _super = (0, _createSuper2.default)(Copy); | |
| 4632 | + | |
| 4633 | + function Copy() { | |
| 4634 | + (0, _classCallCheck2.default)(this, Copy); | |
| 4635 | + return _super.apply(this, arguments); | |
| 4636 | + } | |
| 4637 | + | |
| 4638 | + (0, _createClass2.default)(Copy, [{ | |
| 4639 | + key: "validateArgs", | |
| 4640 | + value: function validateArgs(args) { | |
| 4641 | + this.requireContainer(args); | |
| 4642 | + } | |
| 4643 | + }, { | |
| 4644 | + key: "apply", | |
| 4645 | + value: function apply(args) { | |
| 4646 | + var _args$storageKey = args.storageKey, | |
| 4647 | + storageKey = _args$storageKey === void 0 ? 'clipboard' : _args$storageKey, | |
| 4648 | + _args$containers = args.containers, | |
| 4649 | + containers = _args$containers === void 0 ? [args.container] : _args$containers, | |
| 4650 | + elements = elementor.getPreviewView().$el.find('.elementor-element'); | |
| 4651 | + | |
| 4652 | + if (!elementor.selection.isSameType()) { | |
| 4653 | + elementor.notifications.showToast({ | |
| 4654 | + message: __('That didn’t work. Try copying one kind of element at a time.', 'elementor'), | |
| 4655 | + buttons: [{ | |
| 4656 | + name: 'got_it', | |
| 4657 | + text: __('Got it', 'elementor') | |
| 4658 | + }] | |
| 4659 | + }); | |
| 4660 | + return false; | |
| 4661 | + } | |
| 4662 | + | |
| 4663 | + elementorCommon.storage.set(storageKey, containers.sort(function (first, second) { | |
| 4664 | + return elements.index(first.view.el) - elements.index(second.view.el); | |
| 4665 | + }).map(function (container) { | |
| 4666 | + return container.model.toJSON({ | |
| 4667 | + copyHtmlCache: true | |
| 4668 | + }); | |
| 4669 | + })); | |
| 4670 | + } | |
| 4671 | + }]); | |
| 4672 | + return Copy; | |
| 4673 | +}(_commandBase.default); | |
| 4674 | + | |
| 4675 | +exports.Copy = Copy; | |
| 4676 | +var _default = Copy; | |
| 4677 | +exports["default"] = _default; | |
| 4678 | + | |
| 4679 | +/***/ }), | |
| 4680 | + | |
| 4681 | +/***/ "../assets/dev/js/editor/document/elements/commands/create.js": | |
| 4682 | +/*!********************************************************************!*\ | |
| 4683 | + !*** ../assets/dev/js/editor/document/elements/commands/create.js ***! | |
| 4684 | + \********************************************************************/ | |
| 4685 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4686 | + | |
| 4687 | +"use strict"; | |
| 4688 | + | |
| 4689 | + | |
| 4690 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 4691 | + | |
| 4692 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 4693 | + | |
| 4694 | +_Object$defineProperty(exports, "__esModule", { | |
| 4695 | + value: true | |
| 4696 | +}); | |
| 4697 | + | |
| 4698 | +exports["default"] = exports.Create = void 0; | |
| 4699 | + | |
| 4700 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 4701 | + | |
| 4702 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 4703 | + | |
| 4704 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 4705 | + | |
| 4706 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 4707 | + | |
| 4708 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 4709 | + | |
| 4710 | +var Create = /*#__PURE__*/function (_CommandHistory) { | |
| 4711 | + (0, _inherits2.default)(Create, _CommandHistory); | |
| 4712 | + | |
| 4713 | + var _super = (0, _createSuper2.default)(Create); | |
| 4714 | + | |
| 4715 | + function Create() { | |
| 4716 | + (0, _classCallCheck2.default)(this, Create); | |
| 4717 | + return _super.apply(this, arguments); | |
| 4718 | + } | |
| 4719 | + | |
| 4720 | + (0, _createClass2.default)(Create, [{ | |
| 4721 | + key: "validateArgs", | |
| 4722 | + value: function validateArgs(args) { | |
| 4723 | + this.requireContainer(args); // Avoid Backbone model & etc. | |
| 4724 | + | |
| 4725 | + this.requireArgumentConstructor('model', Object, args); | |
| 4726 | + } | |
| 4727 | + }, { | |
| 4728 | + key: "getHistory", | |
| 4729 | + value: function getHistory(args) { | |
| 4730 | + var model = args.model, | |
| 4731 | + _args$containers = args.containers, | |
| 4732 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 4733 | + return { | |
| 4734 | + containers: containers, | |
| 4735 | + model: model, | |
| 4736 | + type: 'add', | |
| 4737 | + title: elementor.helpers.getModelLabel(model) | |
| 4738 | + }; | |
| 4739 | + } | |
| 4740 | + }, { | |
| 4741 | + key: "apply", | |
| 4742 | + value: function apply(args) { | |
| 4743 | + var _this = this; | |
| 4744 | + | |
| 4745 | + var model = args.model, | |
| 4746 | + _args$options = args.options, | |
| 4747 | + options = _args$options === void 0 ? {} : _args$options, | |
| 4748 | + _args$containers2 = args.containers, | |
| 4749 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2; | |
| 4750 | + var result = []; // BC: Deprecated since 2.8.0 - use `$e.hooks`. | |
| 4751 | + | |
| 4752 | + if (!options.trigger) { | |
| 4753 | + options.trigger = { | |
| 4754 | + beforeAdd: 'element:before:add', | |
| 4755 | + afterAdd: 'element:after:add' | |
| 4756 | + }; | |
| 4757 | + } | |
| 4758 | + | |
| 4759 | + containers.forEach(function (container) { | |
| 4760 | + container = container.lookup(); | |
| 4761 | + var createdContainer = container.view.addElement(model, options).getContainer(); | |
| 4762 | + result.push(createdContainer); | |
| 4763 | + /** | |
| 4764 | + * Acknowledge history of each created item, because we cannot pass the elements when they do not exist | |
| 4765 | + * in getHistory(). | |
| 4766 | + */ | |
| 4767 | + | |
| 4768 | + if (_this.isHistoryActive()) { | |
| 4769 | + $e.internal('document/history/log-sub-item', { | |
| 4770 | + container: container, | |
| 4771 | + type: 'sub-add', | |
| 4772 | + restore: _this.constructor.restore, | |
| 4773 | + options: options, | |
| 4774 | + data: { | |
| 4775 | + containerToRestore: createdContainer, | |
| 4776 | + modelToRestore: createdContainer.model.toJSON() | |
| 4777 | + } | |
| 4778 | + }); | |
| 4779 | + } | |
| 4780 | + }); | |
| 4781 | + | |
| 4782 | + if (1 === result.length) { | |
| 4783 | + result = result[0]; | |
| 4784 | + } | |
| 4785 | + | |
| 4786 | + return result; | |
| 4787 | + } | |
| 4788 | + }, { | |
| 4789 | + key: "isDataChanged", | |
| 4790 | + value: function isDataChanged() { | |
| 4791 | + return true; | |
| 4792 | + } | |
| 4793 | + }], [{ | |
| 4794 | + key: "restore", | |
| 4795 | + value: function restore(historyItem, isRedo) { | |
| 4796 | + var data = historyItem.get('data'), | |
| 4797 | + container = historyItem.get('container'), | |
| 4798 | + options = historyItem.get('options') || {}; // No clone when restoring. e.g: duplicate will generate unique ids while restoring. | |
| 4799 | + | |
| 4800 | + if (options.clone) { | |
| 4801 | + options.clone = false; | |
| 4802 | + } | |
| 4803 | + | |
| 4804 | + if (isRedo) { | |
| 4805 | + $e.run('document/elements/create', { | |
| 4806 | + container: container, | |
| 4807 | + model: data.modelToRestore, | |
| 4808 | + options: options | |
| 4809 | + }); | |
| 4810 | + } else { | |
| 4811 | + $e.run('document/elements/delete', { | |
| 4812 | + container: data.containerToRestore | |
| 4813 | + }); | |
| 4814 | + } | |
| 4815 | + } | |
| 4816 | + }]); | |
| 4817 | + return Create; | |
| 4818 | +}(_commandHistory.default); | |
| 4819 | + | |
| 4820 | +exports.Create = Create; | |
| 4821 | +var _default = Create; | |
| 4822 | +exports["default"] = _default; | |
| 4823 | + | |
| 4824 | +/***/ }), | |
| 4825 | + | |
| 4826 | +/***/ "../assets/dev/js/editor/document/elements/commands/delete.js": | |
| 4827 | +/*!********************************************************************!*\ | |
| 4828 | + !*** ../assets/dev/js/editor/document/elements/commands/delete.js ***! | |
| 4829 | + \********************************************************************/ | |
| 4830 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4831 | + | |
| 4832 | +"use strict"; | |
| 4833 | + | |
| 4834 | + | |
| 4835 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 4836 | + | |
| 4837 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 4838 | + | |
| 4839 | +_Object$defineProperty(exports, "__esModule", { | |
| 4840 | + value: true | |
| 4841 | +}); | |
| 4842 | + | |
| 4843 | +exports["default"] = exports.Delete = void 0; | |
| 4844 | + | |
| 4845 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 4846 | + | |
| 4847 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 4848 | + | |
| 4849 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 4850 | + | |
| 4851 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 4852 | + | |
| 4853 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 4854 | + | |
| 4855 | +var Delete = /*#__PURE__*/function (_CommandHistory) { | |
| 4856 | + (0, _inherits2.default)(Delete, _CommandHistory); | |
| 4857 | + | |
| 4858 | + var _super = (0, _createSuper2.default)(Delete); | |
| 4859 | + | |
| 4860 | + function Delete() { | |
| 4861 | + (0, _classCallCheck2.default)(this, Delete); | |
| 4862 | + return _super.apply(this, arguments); | |
| 4863 | + } | |
| 4864 | + | |
| 4865 | + (0, _createClass2.default)(Delete, [{ | |
| 4866 | + key: "validateArgs", | |
| 4867 | + value: function validateArgs(args) { | |
| 4868 | + this.requireContainer(args); | |
| 4869 | + } | |
| 4870 | + }, { | |
| 4871 | + key: "getHistory", | |
| 4872 | + value: function getHistory(args) { | |
| 4873 | + var _args$containers = args.containers, | |
| 4874 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 4875 | + return { | |
| 4876 | + containers: containers, | |
| 4877 | + type: 'remove' | |
| 4878 | + }; | |
| 4879 | + } | |
| 4880 | + }, { | |
| 4881 | + key: "apply", | |
| 4882 | + value: function apply(args) { | |
| 4883 | + var _this = this; | |
| 4884 | + | |
| 4885 | + var _args$containers2 = args.containers, | |
| 4886 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2; | |
| 4887 | + containers.forEach(function (container) { | |
| 4888 | + container = container.lookup(); | |
| 4889 | + | |
| 4890 | + if (_this.isHistoryActive()) { | |
| 4891 | + $e.internal('document/history/log-sub-item', { | |
| 4892 | + container: container, | |
| 4893 | + type: 'sub-remove', | |
| 4894 | + restore: _this.constructor.restore, | |
| 4895 | + data: { | |
| 4896 | + model: container.model.toJSON(), | |
| 4897 | + parent: container.parent, | |
| 4898 | + at: container.view._index | |
| 4899 | + } | |
| 4900 | + }); | |
| 4901 | + } // BC: Deprecated since 2.8.0 - use `$e.hooks`. | |
| 4902 | + | |
| 4903 | + | |
| 4904 | + elementor.channels.data.trigger('element:before:remove', container.model); | |
| 4905 | + container.model.destroy(); // BC: Deprecated since 2.8.0 - use `$e.hooks`. | |
| 4906 | + | |
| 4907 | + elementor.channels.data.trigger('element:after:remove', container.model); | |
| 4908 | + container.panel.refresh(); | |
| 4909 | + }); | |
| 4910 | + | |
| 4911 | + if (1 === containers.length) { | |
| 4912 | + return containers[0]; | |
| 4913 | + } | |
| 4914 | + | |
| 4915 | + return containers; | |
| 4916 | + } | |
| 4917 | + }, { | |
| 4918 | + key: "isDataChanged", | |
| 4919 | + value: function isDataChanged() { | |
| 4920 | + return true; | |
| 4921 | + } | |
| 4922 | + }], [{ | |
| 4923 | + key: "restore", | |
| 4924 | + value: function restore(historyItem, isRedo) { | |
| 4925 | + var container = historyItem.get('container'), | |
| 4926 | + data = historyItem.get('data'); | |
| 4927 | + | |
| 4928 | + if (isRedo) { | |
| 4929 | + $e.run('document/elements/delete', { | |
| 4930 | + container: container | |
| 4931 | + }); | |
| 4932 | + } else { | |
| 4933 | + $e.run('document/elements/create', { | |
| 4934 | + container: data.parent, | |
| 4935 | + model: data.model, | |
| 4936 | + options: { | |
| 4937 | + at: data.at | |
| 4938 | + } | |
| 4939 | + }); | |
| 4940 | + } | |
| 4941 | + } | |
| 4942 | + }]); | |
| 4943 | + return Delete; | |
| 4944 | +}(_commandHistory.default); | |
| 4945 | + | |
| 4946 | +exports.Delete = Delete; | |
| 4947 | +var _default = Delete; | |
| 4948 | +exports["default"] = _default; | |
| 4949 | + | |
| 4950 | +/***/ }), | |
| 4951 | + | |
| 4952 | +/***/ "../assets/dev/js/editor/document/elements/commands/deselect-all.js": | |
| 4953 | +/*!**************************************************************************!*\ | |
| 4954 | + !*** ../assets/dev/js/editor/document/elements/commands/deselect-all.js ***! | |
| 4955 | + \**************************************************************************/ | |
| 4956 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4957 | + | |
| 4958 | +"use strict"; | |
| 4959 | + | |
| 4960 | + | |
| 4961 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 4962 | + | |
| 4963 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 4964 | + | |
| 4965 | +_Object$defineProperty(exports, "__esModule", { | |
| 4966 | + value: true | |
| 4967 | +}); | |
| 4968 | + | |
| 4969 | +exports["default"] = exports.DeselectAll = void 0; | |
| 4970 | + | |
| 4971 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 4972 | + | |
| 4973 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 4974 | + | |
| 4975 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 4976 | + | |
| 4977 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 4978 | + | |
| 4979 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 4980 | + | |
| 4981 | +var DeselectAll = /*#__PURE__*/function (_CommandBase) { | |
| 4982 | + (0, _inherits2.default)(DeselectAll, _CommandBase); | |
| 4983 | + | |
| 4984 | + var _super = (0, _createSuper2.default)(DeselectAll); | |
| 4985 | + | |
| 4986 | + function DeselectAll() { | |
| 4987 | + (0, _classCallCheck2.default)(this, DeselectAll); | |
| 4988 | + return _super.apply(this, arguments); | |
| 4989 | + } | |
| 4990 | + | |
| 4991 | + (0, _createClass2.default)(DeselectAll, [{ | |
| 4992 | + key: "apply", | |
| 4993 | + value: function apply(args) { | |
| 4994 | + elementor.selection.remove([], true); | |
| 4995 | + } | |
| 4996 | + }]); | |
| 4997 | + return DeselectAll; | |
| 4998 | +}(_commandBase.default); | |
| 4999 | + | |
| 5000 | +exports.DeselectAll = DeselectAll; | |
| 5001 | +var _default = DeselectAll; | |
| 5002 | +exports["default"] = _default; | |
| 5003 | + | |
| 5004 | +/***/ }), | |
| 5005 | + | |
| 5006 | +/***/ "../assets/dev/js/editor/document/elements/commands/deselect.js": | |
| 5007 | +/*!**********************************************************************!*\ | |
| 5008 | + !*** ../assets/dev/js/editor/document/elements/commands/deselect.js ***! | |
| 5009 | + \**********************************************************************/ | |
| 5010 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 5011 | + | |
| 5012 | +"use strict"; | |
| 5013 | + | |
| 5014 | + | |
| 5015 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 5016 | + | |
| 5017 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 5018 | + | |
| 5019 | +_Object$defineProperty(exports, "__esModule", { | |
| 5020 | + value: true | |
| 5021 | +}); | |
| 5022 | + | |
| 5023 | +exports["default"] = exports.Deselect = void 0; | |
| 5024 | + | |
| 5025 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 5026 | + | |
| 5027 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 5028 | + | |
| 5029 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 5030 | + | |
| 5031 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 5032 | + | |
| 5033 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 5034 | + | |
| 5035 | +var Deselect = /*#__PURE__*/function (_CommandBase) { | |
| 5036 | + (0, _inherits2.default)(Deselect, _CommandBase); | |
| 5037 | + | |
| 5038 | + var _super = (0, _createSuper2.default)(Deselect); | |
| 5039 | + | |
| 5040 | + function Deselect() { | |
| 5041 | + (0, _classCallCheck2.default)(this, Deselect); | |
| 5042 | + return _super.apply(this, arguments); | |
| 5043 | + } | |
| 5044 | + | |
| 5045 | + (0, _createClass2.default)(Deselect, [{ | |
| 5046 | + key: "validateArgs", | |
| 5047 | + value: function validateArgs() { | |
| 5048 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 5049 | + | |
| 5050 | + if (!args.all) { | |
| 5051 | + this.requireContainer(args); | |
| 5052 | + } | |
| 5053 | + } | |
| 5054 | + }, { | |
| 5055 | + key: "apply", | |
| 5056 | + value: function apply(args) { | |
| 5057 | + var _args$containers = args.containers, | |
| 5058 | + containers = _args$containers === void 0 ? [args.container] : _args$containers, | |
| 5059 | + _args$all = args.all, | |
| 5060 | + all = _args$all === void 0 ? false : _args$all; | |
| 5061 | + elementor.selection.remove(containers, all); | |
| 5062 | + } | |
| 5063 | + }]); | |
| 5064 | + return Deselect; | |
| 5065 | +}(_commandBase.default); | |
| 5066 | + | |
| 5067 | +exports.Deselect = Deselect; | |
| 5068 | +var _default = Deselect; | |
| 5069 | +exports["default"] = _default; | |
| 5070 | + | |
| 5071 | +/***/ }), | |
| 5072 | + | |
| 5073 | +/***/ "../assets/dev/js/editor/document/elements/commands/duplicate.js": | |
| 5074 | +/*!***********************************************************************!*\ | |
| 5075 | + !*** ../assets/dev/js/editor/document/elements/commands/duplicate.js ***! | |
| 5076 | + \***********************************************************************/ | |
| 5077 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 5078 | + | |
| 5079 | +"use strict"; | |
| 5080 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 5081 | + | |
| 5082 | + | |
| 5083 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 5084 | + | |
| 5085 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 5086 | + | |
| 5087 | +_Object$defineProperty(exports, "__esModule", { | |
| 5088 | + value: true | |
| 5089 | +}); | |
| 5090 | + | |
| 5091 | +exports["default"] = exports.Duplicate = void 0; | |
| 5092 | + | |
| 5093 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 5094 | + | |
| 5095 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 5096 | + | |
| 5097 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 5098 | + | |
| 5099 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 5100 | + | |
| 5101 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 5102 | + | |
| 5103 | +var Duplicate = /*#__PURE__*/function (_CommandHistory) { | |
| 5104 | + (0, _inherits2.default)(Duplicate, _CommandHistory); | |
| 5105 | + | |
| 5106 | + var _super = (0, _createSuper2.default)(Duplicate); | |
| 5107 | + | |
| 5108 | + function Duplicate() { | |
| 5109 | + (0, _classCallCheck2.default)(this, Duplicate); | |
| 5110 | + return _super.apply(this, arguments); | |
| 5111 | + } | |
| 5112 | + | |
| 5113 | + (0, _createClass2.default)(Duplicate, [{ | |
| 5114 | + key: "validateArgs", | |
| 5115 | + value: function validateArgs(args) { | |
| 5116 | + this.requireContainer(args); | |
| 5117 | + } | |
| 5118 | + }, { | |
| 5119 | + key: "getHistory", | |
| 5120 | + value: function getHistory(args) { | |
| 5121 | + var _args$containers = args.containers, | |
| 5122 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 5123 | + return { | |
| 5124 | + containers: containers, | |
| 5125 | + type: 'duplicate' | |
| 5126 | + }; | |
| 5127 | + } | |
| 5128 | + }, { | |
| 5129 | + key: "apply", | |
| 5130 | + value: function apply(args) { | |
| 5131 | + var _args$containers2 = args.containers, | |
| 5132 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2, | |
| 5133 | + result = []; | |
| 5134 | + var at = containers[containers.length - 1].view._index; | |
| 5135 | + | |
| 5136 | + if (!elementor.selection.isSameType()) { | |
| 5137 | + elementor.notifications.showToast({ | |
| 5138 | + message: __('That didn’t work. Try duplicating one kind of element at a time.', 'elementor'), | |
| 5139 | + buttons: [{ | |
| 5140 | + name: 'got_it', | |
| 5141 | + text: __('Got it', 'elementor') | |
| 5142 | + }] | |
| 5143 | + }); | |
| 5144 | + return false; | |
| 5145 | + } | |
| 5146 | + | |
| 5147 | + containers.forEach(function (container) { | |
| 5148 | + var parent = container.parent; | |
| 5149 | + result.push($e.run('document/elements/create', { | |
| 5150 | + container: parent, | |
| 5151 | + model: container.model.toJSON(), | |
| 5152 | + options: { | |
| 5153 | + at: ++at, | |
| 5154 | + clone: true | |
| 5155 | + } | |
| 5156 | + })); | |
| 5157 | + }); | |
| 5158 | + | |
| 5159 | + if (1 === result.length) { | |
| 5160 | + return result[0]; | |
| 5161 | + } | |
| 5162 | + | |
| 5163 | + return result; | |
| 5164 | + } | |
| 5165 | + }]); | |
| 5166 | + return Duplicate; | |
| 5167 | +}(_commandHistory.default); | |
| 5168 | + | |
| 5169 | +exports.Duplicate = Duplicate; | |
| 5170 | +var _default = Duplicate; | |
| 5171 | +exports["default"] = _default; | |
| 5172 | + | |
| 5173 | +/***/ }), | |
| 5174 | + | |
| 5175 | +/***/ "../assets/dev/js/editor/document/elements/commands/empty.js": | |
| 5176 | +/*!*******************************************************************!*\ | |
| 5177 | + !*** ../assets/dev/js/editor/document/elements/commands/empty.js ***! | |
| 5178 | + \*******************************************************************/ | |
| 5179 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 5180 | + | |
| 5181 | +"use strict"; | |
| 5182 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 5183 | + | |
| 5184 | + | |
| 5185 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 5186 | + | |
| 5187 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 5188 | + | |
| 5189 | +_Object$defineProperty(exports, "__esModule", { | |
| 5190 | + value: true | |
| 5191 | +}); | |
| 5192 | + | |
| 5193 | +exports["default"] = exports.Empty = void 0; | |
| 5194 | + | |
| 5195 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 5196 | + | |
| 5197 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 5198 | + | |
| 5199 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 5200 | + | |
| 5201 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 5202 | + | |
| 5203 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 5204 | + | |
| 5205 | +var Empty = /*#__PURE__*/function (_CommandHistory) { | |
| 5206 | + (0, _inherits2.default)(Empty, _CommandHistory); | |
| 5207 | + | |
| 5208 | + var _super = (0, _createSuper2.default)(Empty); | |
| 5209 | + | |
| 5210 | + function Empty() { | |
| 5211 | + (0, _classCallCheck2.default)(this, Empty); | |
| 5212 | + return _super.apply(this, arguments); | |
| 5213 | + } | |
| 5214 | + | |
| 5215 | + (0, _createClass2.default)(Empty, [{ | |
| 5216 | + key: "getHistory", | |
| 5217 | + value: function getHistory(args) { | |
| 5218 | + if (args.force) { | |
| 5219 | + return { | |
| 5220 | + type: 'remove', | |
| 5221 | + title: __('All Content', 'elementor'), | |
| 5222 | + data: elementor.elements ? elementor.elements.toJSON() : null, | |
| 5223 | + restore: this.constructor.restore | |
| 5224 | + }; | |
| 5225 | + } | |
| 5226 | + | |
| 5227 | + return false; | |
| 5228 | + } | |
| 5229 | + }, { | |
| 5230 | + key: "apply", | |
| 5231 | + value: function apply(args) { | |
| 5232 | + if (args.force && elementor.elements) { | |
| 5233 | + elementor.elements.reset(); | |
| 5234 | + elementor.getPreviewContainer().panel.closeEditor(); | |
| 5235 | + return; | |
| 5236 | + } | |
| 5237 | + | |
| 5238 | + elementor.getClearPageDialog().show(); | |
| 5239 | + } | |
| 5240 | + }, { | |
| 5241 | + key: "isDataChanged", | |
| 5242 | + value: function isDataChanged() { | |
| 5243 | + if (this.args.force) { | |
| 5244 | + return true; | |
| 5245 | + } | |
| 5246 | + } | |
| 5247 | + }], [{ | |
| 5248 | + key: "restore", | |
| 5249 | + value: function restore(historyItem, isRedo) { | |
| 5250 | + if (isRedo) { | |
| 5251 | + $e.run('document/elements/empty', { | |
| 5252 | + force: true | |
| 5253 | + }); | |
| 5254 | + } else { | |
| 5255 | + var data = historyItem.get('data'); | |
| 5256 | + | |
| 5257 | + if (data) { | |
| 5258 | + elementor.getPreviewView().addChildModel(data); | |
| 5259 | + } | |
| 5260 | + | |
| 225 | 5261 | $e.internal('document/save/set-is-modified', { |
| 226 | 5262 | status: true |
| 227 | 5263 | }); |
| 228 | 5264 | } |
| 229 | 5265 | } |
| 5266 | + }]); | |
| 5267 | + return Empty; | |
| 5268 | +}(_commandHistory.default); | |
| 5269 | + | |
| 5270 | +exports.Empty = Empty; | |
| 5271 | +var _default = Empty; | |
| 5272 | +exports["default"] = _default; | |
| 5273 | + | |
| 5274 | +/***/ }), | |
| 5275 | + | |
| 5276 | +/***/ "../assets/dev/js/editor/document/elements/commands/import.js": | |
| 5277 | +/*!********************************************************************!*\ | |
| 5278 | + !*** ../assets/dev/js/editor/document/elements/commands/import.js ***! | |
| 5279 | + \********************************************************************/ | |
| 5280 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 5281 | + | |
| 5282 | +"use strict"; | |
| 5283 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 5284 | + | |
| 5285 | + | |
| 5286 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 5287 | + | |
| 5288 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 5289 | + | |
| 5290 | +_Object$defineProperty(exports, "__esModule", { | |
| 5291 | + value: true | |
| 5292 | +}); | |
| 5293 | + | |
| 5294 | +exports["default"] = exports.Import = void 0; | |
| 5295 | + | |
| 5296 | +var _values = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "../node_modules/@babel/runtime-corejs2/core-js/object/values.js")); | |
| 5297 | + | |
| 5298 | +var _assign = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/assign */ "../node_modules/@babel/runtime-corejs2/core-js/object/assign.js")); | |
| 5299 | + | |
| 5300 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 5301 | + | |
| 5302 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 5303 | + | |
| 5304 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 5305 | + | |
| 5306 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 5307 | + | |
| 5308 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 5309 | + | |
| 5310 | +var Import = /*#__PURE__*/function (_CommandHistory) { | |
| 5311 | + (0, _inherits2.default)(Import, _CommandHistory); | |
| 5312 | + | |
| 5313 | + var _super = (0, _createSuper2.default)(Import); | |
| 5314 | + | |
| 5315 | + function Import() { | |
| 5316 | + (0, _classCallCheck2.default)(this, Import); | |
| 5317 | + return _super.apply(this, arguments); | |
| 5318 | + } | |
| 5319 | + | |
| 5320 | + (0, _createClass2.default)(Import, [{ | |
| 5321 | + key: "validateArgs", | |
| 5322 | + value: function validateArgs(args) { | |
| 5323 | + this.requireArgumentInstance('model', Backbone.Model, args); | |
| 5324 | + this.requireArgumentConstructor('data', Object, args); | |
| 5325 | + } | |
| 230 | 5326 | }, { |
| 231 | - key: "onCatchApply", | |
| 232 | - value: function onCatchApply(e) { | |
| 233 | - // Rollback history on failure. | |
| 234 | - if (e instanceof $e.modules.HookBreak && this.historyId) { | |
| 235 | - $e.internal('document/history/delete-log', { | |
| 236 | - id: this.historyId | |
| 5327 | + key: "getHistory", | |
| 5328 | + value: function getHistory(args) { | |
| 5329 | + var model = args.model; | |
| 5330 | + return { | |
| 5331 | + type: 'add', | |
| 5332 | + title: __('Template', 'elementor'), | |
| 5333 | + subTitle: model.get('title') | |
| 5334 | + }; | |
| 5335 | + } | |
| 5336 | + }, { | |
| 5337 | + key: "apply", | |
| 5338 | + value: function apply(args) { | |
| 5339 | + var data = args.data, | |
| 5340 | + _args$options = args.options, | |
| 5341 | + options = _args$options === void 0 ? args.options || {} : _args$options, | |
| 5342 | + previewContainer = elementor.getPreviewContainer(), | |
| 5343 | + result = []; | |
| 5344 | + var at = isNaN(options.at) ? previewContainer.view.collection.length : options.at; // Each `data.content`. | |
| 5345 | + | |
| 5346 | + (0, _values.default)(data.content).forEach(function (model) { | |
| 5347 | + result.push($e.run('document/elements/create', { | |
| 5348 | + container: elementor.getPreviewContainer(), | |
| 5349 | + model: model, | |
| 5350 | + options: (0, _assign.default)(options, { | |
| 5351 | + at: at | |
| 5352 | + }) | |
| 5353 | + })); | |
| 5354 | + at++; | |
| 5355 | + }); | |
| 5356 | + | |
| 5357 | + if (options.withPageSettings) { | |
| 5358 | + $e.run('document/elements/settings', { | |
| 5359 | + container: elementor.settings.page.getEditedView().getContainer(), | |
| 5360 | + settings: data.page_settings, | |
| 5361 | + options: { | |
| 5362 | + external: true | |
| 5363 | + } | |
| 237 | 5364 | }); |
| 238 | 5365 | } |
| 239 | - _superPropGet(CommandHistoryBase, "onCatchApply", this, 3)([e]); | |
| 5366 | + | |
| 5367 | + return result; | |
| 240 | 5368 | } |
| 5369 | + }]); | |
| 5370 | + return Import; | |
| 5371 | +}(_commandHistory.default); | |
| 5372 | + | |
| 5373 | +exports.Import = Import; | |
| 5374 | +var _default = Import; | |
| 5375 | +exports["default"] = _default; | |
| 5376 | + | |
| 5377 | +/***/ }), | |
| 5378 | + | |
| 5379 | +/***/ "../assets/dev/js/editor/document/elements/commands/index.js": | |
| 5380 | +/*!*******************************************************************!*\ | |
| 5381 | + !*** ../assets/dev/js/editor/document/elements/commands/index.js ***! | |
| 5382 | + \*******************************************************************/ | |
| 5383 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 5384 | + | |
| 5385 | +"use strict"; | |
| 5386 | + | |
| 5387 | + | |
| 5388 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 5389 | + | |
| 5390 | +_Object$defineProperty(exports, "__esModule", { | |
| 5391 | + value: true | |
| 5392 | +}); | |
| 5393 | + | |
| 5394 | +_Object$defineProperty(exports, "Copy", { | |
| 5395 | + enumerable: true, | |
| 5396 | + get: function get() { | |
| 5397 | + return _copy.Copy; | |
| 5398 | + } | |
| 5399 | +}); | |
| 5400 | + | |
| 5401 | +_Object$defineProperty(exports, "CopyAll", { | |
| 5402 | + enumerable: true, | |
| 5403 | + get: function get() { | |
| 5404 | + return _copyAll.CopyAll; | |
| 5405 | + } | |
| 5406 | +}); | |
| 5407 | + | |
| 5408 | +_Object$defineProperty(exports, "Create", { | |
| 5409 | + enumerable: true, | |
| 5410 | + get: function get() { | |
| 5411 | + return _create.Create; | |
| 5412 | + } | |
| 5413 | +}); | |
| 5414 | + | |
| 5415 | +_Object$defineProperty(exports, "Delete", { | |
| 5416 | + enumerable: true, | |
| 5417 | + get: function get() { | |
| 5418 | + return _delete.Delete; | |
| 5419 | + } | |
| 5420 | +}); | |
| 5421 | + | |
| 5422 | +_Object$defineProperty(exports, "Deselect", { | |
| 5423 | + enumerable: true, | |
| 5424 | + get: function get() { | |
| 5425 | + return _deselect.Deselect; | |
| 5426 | + } | |
| 5427 | +}); | |
| 5428 | + | |
| 5429 | +_Object$defineProperty(exports, "DeselectAll", { | |
| 5430 | + enumerable: true, | |
| 5431 | + get: function get() { | |
| 5432 | + return _deselectAll.DeselectAll; | |
| 5433 | + } | |
| 5434 | +}); | |
| 5435 | + | |
| 5436 | +_Object$defineProperty(exports, "Duplicate", { | |
| 5437 | + enumerable: true, | |
| 5438 | + get: function get() { | |
| 5439 | + return _duplicate.Duplicate; | |
| 5440 | + } | |
| 5441 | +}); | |
| 5442 | + | |
| 5443 | +_Object$defineProperty(exports, "Empty", { | |
| 5444 | + enumerable: true, | |
| 5445 | + get: function get() { | |
| 5446 | + return _empty.Empty; | |
| 5447 | + } | |
| 5448 | +}); | |
| 5449 | + | |
| 5450 | +_Object$defineProperty(exports, "Import", { | |
| 5451 | + enumerable: true, | |
| 5452 | + get: function get() { | |
| 5453 | + return _import.Import; | |
| 5454 | + } | |
| 5455 | +}); | |
| 5456 | + | |
| 5457 | +_Object$defineProperty(exports, "Move", { | |
| 5458 | + enumerable: true, | |
| 5459 | + get: function get() { | |
| 5460 | + return _move.Move; | |
| 5461 | + } | |
| 5462 | +}); | |
| 5463 | + | |
| 5464 | +_Object$defineProperty(exports, "Paste", { | |
| 5465 | + enumerable: true, | |
| 5466 | + get: function get() { | |
| 5467 | + return _paste.Paste; | |
| 5468 | + } | |
| 5469 | +}); | |
| 5470 | + | |
| 5471 | +_Object$defineProperty(exports, "PasteStyle", { | |
| 5472 | + enumerable: true, | |
| 5473 | + get: function get() { | |
| 5474 | + return _pasteStyle.PasteStyle; | |
| 5475 | + } | |
| 5476 | +}); | |
| 5477 | + | |
| 5478 | +_Object$defineProperty(exports, "ResetSettings", { | |
| 5479 | + enumerable: true, | |
| 5480 | + get: function get() { | |
| 5481 | + return _resetSettings.ResetSettings; | |
| 5482 | + } | |
| 5483 | +}); | |
| 5484 | + | |
| 5485 | +_Object$defineProperty(exports, "ResetStyle", { | |
| 5486 | + enumerable: true, | |
| 5487 | + get: function get() { | |
| 5488 | + return _resetStyle.ResetStyle; | |
| 5489 | + } | |
| 5490 | +}); | |
| 5491 | + | |
| 5492 | +_Object$defineProperty(exports, "Select", { | |
| 5493 | + enumerable: true, | |
| 5494 | + get: function get() { | |
| 5495 | + return _select.Select; | |
| 5496 | + } | |
| 5497 | +}); | |
| 5498 | + | |
| 5499 | +_Object$defineProperty(exports, "SelectAll", { | |
| 5500 | + enumerable: true, | |
| 5501 | + get: function get() { | |
| 5502 | + return _selectAll.SelectAll; | |
| 5503 | + } | |
| 5504 | +}); | |
| 5505 | + | |
| 5506 | +_Object$defineProperty(exports, "Settings", { | |
| 5507 | + enumerable: true, | |
| 5508 | + get: function get() { | |
| 5509 | + return _settings.Settings; | |
| 5510 | + } | |
| 5511 | +}); | |
| 5512 | + | |
| 5513 | +_Object$defineProperty(exports, "ToggleSelection", { | |
| 5514 | + enumerable: true, | |
| 5515 | + get: function get() { | |
| 5516 | + return _toggleSelection.ToggleSelection; | |
| 5517 | + } | |
| 5518 | +}); | |
| 5519 | + | |
| 5520 | +var _copy = __webpack_require__(/*! ./copy */ "../assets/dev/js/editor/document/elements/commands/copy.js"); | |
| 5521 | + | |
| 5522 | +var _copyAll = __webpack_require__(/*! ./copy-all */ "../assets/dev/js/editor/document/elements/commands/copy-all.js"); | |
| 5523 | + | |
| 5524 | +var _create = __webpack_require__(/*! ./create */ "../assets/dev/js/editor/document/elements/commands/create.js"); | |
| 5525 | + | |
| 5526 | +var _delete = __webpack_require__(/*! ./delete */ "../assets/dev/js/editor/document/elements/commands/delete.js"); | |
| 5527 | + | |
| 5528 | +var _deselect = __webpack_require__(/*! ./deselect */ "../assets/dev/js/editor/document/elements/commands/deselect.js"); | |
| 5529 | + | |
| 5530 | +var _deselectAll = __webpack_require__(/*! ./deselect-all */ "../assets/dev/js/editor/document/elements/commands/deselect-all.js"); | |
| 5531 | + | |
| 5532 | +var _duplicate = __webpack_require__(/*! ./duplicate */ "../assets/dev/js/editor/document/elements/commands/duplicate.js"); | |
| 5533 | + | |
| 5534 | +var _empty = __webpack_require__(/*! ./empty */ "../assets/dev/js/editor/document/elements/commands/empty.js"); | |
| 5535 | + | |
| 5536 | +var _import = __webpack_require__(/*! ./import */ "../assets/dev/js/editor/document/elements/commands/import.js"); | |
| 5537 | + | |
| 5538 | +var _paste = __webpack_require__(/*! ./paste */ "../assets/dev/js/editor/document/elements/commands/paste.js"); | |
| 5539 | + | |
| 5540 | +var _move = __webpack_require__(/*! ./move */ "../assets/dev/js/editor/document/elements/commands/move.js"); | |
| 5541 | + | |
| 5542 | +var _pasteStyle = __webpack_require__(/*! ./paste-style */ "../assets/dev/js/editor/document/elements/commands/paste-style.js"); | |
| 5543 | + | |
| 5544 | +var _resetSettings = __webpack_require__(/*! ./reset-settings */ "../assets/dev/js/editor/document/elements/commands/reset-settings.js"); | |
| 5545 | + | |
| 5546 | +var _resetStyle = __webpack_require__(/*! ./reset-style */ "../assets/dev/js/editor/document/elements/commands/reset-style.js"); | |
| 5547 | + | |
| 5548 | +var _select = __webpack_require__(/*! ./select */ "../assets/dev/js/editor/document/elements/commands/select.js"); | |
| 5549 | + | |
| 5550 | +var _selectAll = __webpack_require__(/*! ./select-all */ "../assets/dev/js/editor/document/elements/commands/select-all.js"); | |
| 5551 | + | |
| 5552 | +var _settings = __webpack_require__(/*! ./settings */ "../assets/dev/js/editor/document/elements/commands/settings.js"); | |
| 5553 | + | |
| 5554 | +var _toggleSelection = __webpack_require__(/*! ./toggle-selection */ "../assets/dev/js/editor/document/elements/commands/toggle-selection.js"); | |
| 5555 | + | |
| 5556 | +/***/ }), | |
| 5557 | + | |
| 5558 | +/***/ "../assets/dev/js/editor/document/elements/commands/move.js": | |
| 5559 | +/*!******************************************************************!*\ | |
| 5560 | + !*** ../assets/dev/js/editor/document/elements/commands/move.js ***! | |
| 5561 | + \******************************************************************/ | |
| 5562 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 5563 | + | |
| 5564 | +"use strict"; | |
| 5565 | + | |
| 5566 | + | |
| 5567 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 5568 | + | |
| 5569 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 5570 | + | |
| 5571 | +_Object$defineProperty(exports, "__esModule", { | |
| 5572 | + value: true | |
| 5573 | +}); | |
| 5574 | + | |
| 5575 | +exports["default"] = exports.Move = void 0; | |
| 5576 | + | |
| 5577 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 5578 | + | |
| 5579 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 5580 | + | |
| 5581 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 5582 | + | |
| 5583 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 5584 | + | |
| 5585 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 5586 | + | |
| 5587 | +var Move = /*#__PURE__*/function (_CommandHistory) { | |
| 5588 | + (0, _inherits2.default)(Move, _CommandHistory); | |
| 5589 | + | |
| 5590 | + var _super = (0, _createSuper2.default)(Move); | |
| 5591 | + | |
| 5592 | + function Move() { | |
| 5593 | + (0, _classCallCheck2.default)(this, Move); | |
| 5594 | + return _super.apply(this, arguments); | |
| 5595 | + } | |
| 5596 | + | |
| 5597 | + (0, _createClass2.default)(Move, [{ | |
| 5598 | + key: "validateArgs", | |
| 5599 | + value: function validateArgs(args) { | |
| 5600 | + this.requireContainer(args); | |
| 5601 | + this.requireArgumentInstance('target', elementorModules.editor.Container, args); | |
| 5602 | + } | |
| 241 | 5603 | }, { |
| 5604 | + key: "getHistory", | |
| 5605 | + value: function getHistory(args) { | |
| 5606 | + var _args$containers = args.containers, | |
| 5607 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 5608 | + return { | |
| 5609 | + containers: containers, | |
| 5610 | + type: 'move' | |
| 5611 | + }; | |
| 5612 | + } | |
| 5613 | + }, { | |
| 5614 | + key: "apply", | |
| 5615 | + value: function apply(args) { | |
| 5616 | + var target = args.target, | |
| 5617 | + _args$options = args.options, | |
| 5618 | + options = _args$options === void 0 ? {} : _args$options, | |
| 5619 | + _args$containers2 = args.containers, | |
| 5620 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2, | |
| 5621 | + reCreate = []; | |
| 5622 | + containers.forEach(function (container) { | |
| 5623 | + reCreate.push(container.model.toJSON()); | |
| 5624 | + $e.run('document/elements/delete', { | |
| 5625 | + container: container | |
| 5626 | + }); | |
| 5627 | + }); | |
| 5628 | + var count = 0; | |
| 5629 | + reCreate.forEach(function (model) { | |
| 5630 | + // If multiple fix position. | |
| 5631 | + if (options.hasOwnProperty('at') && reCreate.length > 1) { | |
| 5632 | + if (0 !== count) { | |
| 5633 | + options.at += count; | |
| 5634 | + } | |
| 5635 | + } // BC: Deprecated since 2.8.0 - use `$e.hooks`. | |
| 5636 | + | |
| 5637 | + | |
| 5638 | + options.trigger = { | |
| 5639 | + beforeAdd: 'drag:before:update', | |
| 5640 | + afterAdd: 'drag:after:update' | |
| 5641 | + }; | |
| 5642 | + $e.run('document/elements/create', { | |
| 5643 | + container: target, | |
| 5644 | + model: model, | |
| 5645 | + options: options | |
| 5646 | + }); | |
| 5647 | + count++; | |
| 5648 | + }); | |
| 5649 | + } | |
| 5650 | + }]); | |
| 5651 | + return Move; | |
| 5652 | +}(_commandHistory.default); | |
| 5653 | + | |
| 5654 | +exports.Move = Move; | |
| 5655 | +var _default = Move; | |
| 5656 | +exports["default"] = _default; | |
| 5657 | + | |
| 5658 | +/***/ }), | |
| 5659 | + | |
| 5660 | +/***/ "../assets/dev/js/editor/document/elements/commands/paste-style.js": | |
| 5661 | +/*!*************************************************************************!*\ | |
| 5662 | + !*** ../assets/dev/js/editor/document/elements/commands/paste-style.js ***! | |
| 5663 | + \*************************************************************************/ | |
| 5664 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 5665 | + | |
| 5666 | +"use strict"; | |
| 5667 | + | |
| 5668 | + | |
| 5669 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 5670 | + | |
| 5671 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 5672 | + | |
| 5673 | +_Object$defineProperty(exports, "__esModule", { | |
| 5674 | + value: true | |
| 5675 | +}); | |
| 5676 | + | |
| 5677 | +exports["default"] = exports.PasteStyle = void 0; | |
| 5678 | + | |
| 5679 | +var _entries = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/entries */ "../node_modules/@babel/runtime-corejs2/core-js/object/entries.js")); | |
| 5680 | + | |
| 5681 | +var _keys = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js")); | |
| 5682 | + | |
| 5683 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/slicedToArray */ "../node_modules/@babel/runtime-corejs2/helpers/slicedToArray.js")); | |
| 5684 | + | |
| 5685 | +var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/typeof */ "../node_modules/@babel/runtime-corejs2/helpers/typeof.js")); | |
| 5686 | + | |
| 5687 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 5688 | + | |
| 5689 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 5690 | + | |
| 5691 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 5692 | + | |
| 5693 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 5694 | + | |
| 5695 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 5696 | + | |
| 5697 | +var PasteStyle = /*#__PURE__*/function (_CommandHistory) { | |
| 5698 | + (0, _inherits2.default)(PasteStyle, _CommandHistory); | |
| 5699 | + | |
| 5700 | + var _super = (0, _createSuper2.default)(PasteStyle); | |
| 5701 | + | |
| 5702 | + function PasteStyle() { | |
| 5703 | + (0, _classCallCheck2.default)(this, PasteStyle); | |
| 5704 | + return _super.apply(this, arguments); | |
| 5705 | + } | |
| 5706 | + | |
| 5707 | + (0, _createClass2.default)(PasteStyle, [{ | |
| 5708 | + key: "validateArgs", | |
| 5709 | + value: function validateArgs(args) { | |
| 5710 | + this.requireContainer(args); // Validate if storage have data. | |
| 5711 | + | |
| 5712 | + var _args$storageKey = args.storageKey, | |
| 5713 | + storageKey = _args$storageKey === void 0 ? 'clipboard' : _args$storageKey, | |
| 5714 | + storageData = elementorCommon.storage.get(storageKey); | |
| 5715 | + this.requireArgumentType('storageData', 'object', { | |
| 5716 | + storageData: storageData | |
| 5717 | + }); | |
| 5718 | + } | |
| 5719 | + }, { | |
| 5720 | + key: "validateControls", | |
| 5721 | + value: function validateControls(source, target) { | |
| 5722 | + var result = true; // Cannot use `_.isEmpty()` does not pass paste style test. | |
| 5723 | + | |
| 5724 | + if (null === source || null === target || undefined === source || undefined === target || 'object' === (0, _typeof2.default)(source) ^ 'object' === (0, _typeof2.default)(target)) { | |
| 5725 | + result = false; | |
| 5726 | + } | |
| 5727 | + | |
| 5728 | + return result; | |
| 5729 | + } | |
| 5730 | + }, { | |
| 5731 | + key: "getHistory", | |
| 5732 | + value: function getHistory(args) { | |
| 5733 | + var _args$containers = args.containers, | |
| 5734 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 5735 | + return { | |
| 5736 | + containers: containers, | |
| 5737 | + type: 'paste_style' | |
| 5738 | + }; | |
| 5739 | + } | |
| 5740 | + }, { | |
| 5741 | + key: "apply", | |
| 5742 | + value: function apply(args) { | |
| 5743 | + var _args$containers2 = args.containers, | |
| 5744 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2, | |
| 5745 | + _args$storageKey2 = args.storageKey, | |
| 5746 | + storageKey = _args$storageKey2 === void 0 ? 'clipboard' : _args$storageKey2, | |
| 5747 | + storageData = elementorCommon.storage.get(storageKey); | |
| 5748 | + this.applyPasteStyleData(containers, storageData); | |
| 5749 | + } | |
| 5750 | + }, { | |
| 5751 | + key: "applyPasteStyleData", | |
| 5752 | + value: function applyPasteStyleData(containers, data) { | |
| 5753 | + var _this = this; | |
| 5754 | + | |
| 5755 | + containers.forEach(function (targetContainer) { | |
| 5756 | + var targetSettings = targetContainer.settings, | |
| 5757 | + targetSettingsAttributes = targetSettings.attributes, | |
| 5758 | + targetControls = targetSettings.controls, | |
| 5759 | + diffSettings = {}, | |
| 5760 | + addExtraControls = function addExtraControls(sourceSettings, extraType) { | |
| 5761 | + if (sourceSettings[extraType]) { | |
| 5762 | + (0, _entries.default)(sourceSettings[extraType]).forEach(function (_ref) { | |
| 5763 | + var _ref2 = (0, _slicedToArray2.default)(_ref, 2), | |
| 5764 | + controlName = _ref2[0], | |
| 5765 | + value = _ref2[1]; | |
| 5766 | + | |
| 5767 | + var control = targetControls[controlName]; | |
| 5768 | + | |
| 5769 | + if (targetContainer.view.isStyleTransferControl(control)) { | |
| 5770 | + diffSettings[extraType] = diffSettings[extraType] || {}; | |
| 5771 | + diffSettings[extraType][controlName] = value; | |
| 5772 | + } | |
| 5773 | + }); | |
| 5774 | + } | |
| 5775 | + }; | |
| 5776 | + | |
| 5777 | + data.forEach(function (sourceModel) { | |
| 5778 | + var sourceSettings = sourceModel.settings; | |
| 5779 | + addExtraControls(sourceSettings, '__globals__'); | |
| 5780 | + addExtraControls(sourceSettings, '__dynamic__'); | |
| 5781 | + (0, _entries.default)(targetControls).forEach(function (_ref3) { | |
| 5782 | + var _ref4 = (0, _slicedToArray2.default)(_ref3, 2), | |
| 5783 | + controlName = _ref4[0], | |
| 5784 | + control = _ref4[1]; | |
| 5785 | + | |
| 5786 | + if (!targetContainer.view.isStyleTransferControl(control)) { | |
| 5787 | + return; | |
| 5788 | + } | |
| 5789 | + | |
| 5790 | + var controlSourceValue = sourceSettings[controlName], | |
| 5791 | + controlTargetValue = targetSettingsAttributes[controlName]; | |
| 5792 | + | |
| 5793 | + if (!_this.validateControls(controlSourceValue, controlTargetValue)) { | |
| 5794 | + return; | |
| 5795 | + } | |
| 5796 | + | |
| 5797 | + if ('object' === (0, _typeof2.default)(controlSourceValue)) { | |
| 5798 | + var isEqual = (0, _keys.default)(controlSourceValue).some(function (propertyKey) { | |
| 5799 | + if (controlSourceValue[propertyKey] !== controlTargetValue[propertyKey]) { | |
| 5800 | + return false; | |
| 5801 | + } | |
| 5802 | + }); | |
| 5803 | + | |
| 5804 | + if (isEqual) { | |
| 5805 | + return; | |
| 5806 | + } | |
| 5807 | + } | |
| 5808 | + | |
| 5809 | + if (controlSourceValue === controlTargetValue || !elementor.getControlView(control.type).onPasteStyle(control, controlSourceValue)) { | |
| 5810 | + return; | |
| 5811 | + } | |
| 5812 | + | |
| 5813 | + diffSettings[controlName] = controlSourceValue; | |
| 5814 | + }); | |
| 5815 | + | |
| 5816 | + _this.pasteStyle(targetContainer, diffSettings); | |
| 5817 | + }); | |
| 5818 | + }); | |
| 5819 | + } | |
| 5820 | + /** | |
| 5821 | + * @param {Container} targetContainer | |
| 5822 | + * @param {{}} settings | |
| 5823 | + */ | |
| 5824 | + | |
| 5825 | + }, { | |
| 5826 | + key: "pasteStyle", | |
| 5827 | + value: function pasteStyle(targetContainer, settings) { | |
| 5828 | + // BC: Deprecated since 2.8.0 - use `$e.hooks`. | |
| 5829 | + elementor.channels.data.trigger('element:before:paste:style', targetContainer.model); | |
| 5830 | + var globals = settings.__globals__; | |
| 5831 | + | |
| 5832 | + if (globals) { | |
| 5833 | + delete settings.__globals__; | |
| 5834 | + } | |
| 5835 | + | |
| 5836 | + $e.run('document/elements/settings', { | |
| 5837 | + container: targetContainer, | |
| 5838 | + settings: settings, | |
| 5839 | + options: { | |
| 5840 | + external: true, | |
| 5841 | + render: false | |
| 5842 | + } | |
| 5843 | + }); | |
| 5844 | + | |
| 5845 | + if (globals) { | |
| 5846 | + $e.run('document/globals/settings', { | |
| 5847 | + container: targetContainer, | |
| 5848 | + settings: globals, | |
| 5849 | + options: { | |
| 5850 | + external: true, | |
| 5851 | + render: false | |
| 5852 | + } | |
| 5853 | + }); | |
| 5854 | + targetContainer.panel.refresh(); | |
| 5855 | + } // BC: Deprecated since 2.8.0 - use `$e.hooks`. | |
| 5856 | + | |
| 5857 | + | |
| 5858 | + elementor.channels.data.trigger('element:after:paste:style', targetContainer.model); | |
| 5859 | + targetContainer.render(); | |
| 5860 | + } | |
| 5861 | + }]); | |
| 5862 | + return PasteStyle; | |
| 5863 | +}(_commandHistory.default); | |
| 5864 | + | |
| 5865 | +exports.PasteStyle = PasteStyle; | |
| 5866 | +var _default = PasteStyle; | |
| 5867 | +exports["default"] = _default; | |
| 5868 | + | |
| 5869 | +/***/ }), | |
| 5870 | + | |
| 5871 | +/***/ "../assets/dev/js/editor/document/elements/commands/paste.js": | |
| 5872 | +/*!*******************************************************************!*\ | |
| 5873 | + !*** ../assets/dev/js/editor/document/elements/commands/paste.js ***! | |
| 5874 | + \*******************************************************************/ | |
| 5875 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 5876 | + | |
| 5877 | +"use strict"; | |
| 5878 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 5879 | + | |
| 5880 | + | |
| 5881 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 5882 | + | |
| 5883 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 5884 | + | |
| 5885 | +_Object$defineProperty(exports, "__esModule", { | |
| 5886 | + value: true | |
| 5887 | +}); | |
| 5888 | + | |
| 5889 | +exports["default"] = exports.Paste = void 0; | |
| 5890 | + | |
| 5891 | +var _assign = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/assign */ "../node_modules/@babel/runtime-corejs2/core-js/object/assign.js")); | |
| 5892 | + | |
| 5893 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 5894 | + | |
| 5895 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 5896 | + | |
| 5897 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 5898 | + | |
| 5899 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 5900 | + | |
| 5901 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 5902 | + | |
| 5903 | +var Paste = /*#__PURE__*/function (_CommandHistory) { | |
| 5904 | + (0, _inherits2.default)(Paste, _CommandHistory); | |
| 5905 | + | |
| 5906 | + var _super = (0, _createSuper2.default)(Paste); | |
| 5907 | + | |
| 5908 | + function Paste() { | |
| 5909 | + (0, _classCallCheck2.default)(this, Paste); | |
| 5910 | + return _super.apply(this, arguments); | |
| 5911 | + } | |
| 5912 | + | |
| 5913 | + (0, _createClass2.default)(Paste, [{ | |
| 5914 | + key: "validateArgs", | |
| 5915 | + value: function validateArgs(args) { | |
| 5916 | + this.requireContainer(args); // Validate if storage have data. | |
| 5917 | + | |
| 5918 | + var _args$storageKey = args.storageKey, | |
| 5919 | + storageKey = _args$storageKey === void 0 ? 'clipboard' : _args$storageKey, | |
| 5920 | + storageData = elementorCommon.storage.get(storageKey); | |
| 5921 | + this.requireArgumentType('storageData', 'object', { | |
| 5922 | + storageData: storageData | |
| 5923 | + }); | |
| 5924 | + } | |
| 5925 | + }, { | |
| 5926 | + key: "getHistory", | |
| 5927 | + value: function getHistory() { | |
| 5928 | + return { | |
| 5929 | + type: 'paste', | |
| 5930 | + title: __('Elements', 'elementor') | |
| 5931 | + }; | |
| 5932 | + } | |
| 5933 | + }, { | |
| 5934 | + key: "apply", | |
| 5935 | + value: function apply(args) { | |
| 5936 | + var at = args.at, | |
| 5937 | + _args$rebuild = args.rebuild, | |
| 5938 | + rebuild = _args$rebuild === void 0 ? false : _args$rebuild, | |
| 5939 | + _args$storageKey2 = args.storageKey, | |
| 5940 | + storageKey = _args$storageKey2 === void 0 ? 'clipboard' : _args$storageKey2, | |
| 5941 | + _args$containers = args.containers, | |
| 5942 | + containers = _args$containers === void 0 ? [args.container] : _args$containers, | |
| 5943 | + _args$options = args.options, | |
| 5944 | + options = _args$options === void 0 ? {} : _args$options, | |
| 5945 | + storageData = elementorCommon.storage.get(storageKey); | |
| 5946 | + var result = []; // Paste on "Add Section" area. | |
| 5947 | + | |
| 5948 | + if (rebuild) { | |
| 5949 | + result = this.rebuild(containers, storageData, at); | |
| 5950 | + } else { | |
| 5951 | + if (undefined !== at) { | |
| 5952 | + options.at = at; | |
| 5953 | + } | |
| 5954 | + | |
| 5955 | + result.push(this.pasteTo(containers, storageData, options)); | |
| 5956 | + } | |
| 5957 | + | |
| 5958 | + if (1 === result.length) { | |
| 5959 | + return result[0]; | |
| 5960 | + } | |
| 5961 | + | |
| 5962 | + return result; | |
| 5963 | + } | |
| 5964 | + }, { | |
| 5965 | + key: "rebuild", | |
| 5966 | + value: function rebuild(containers, data, at) { | |
| 5967 | + var _this = this; | |
| 5968 | + | |
| 5969 | + // Paste at each target. | |
| 5970 | + var result = []; | |
| 5971 | + containers.forEach(function (targetContainer) { | |
| 5972 | + var index = 'undefined' === typeof at ? targetContainer.view.collection.length : at; | |
| 5973 | + data.forEach(function (model) { | |
| 5974 | + switch (model.elType) { | |
| 5975 | + case 'section': | |
| 5976 | + { | |
| 5977 | + // If is inner create section for `inner-section`. | |
| 5978 | + if (model.isInner) { | |
| 5979 | + var section = $e.run('document/elements/create', { | |
| 5980 | + container: targetContainer, | |
| 5981 | + model: { | |
| 5982 | + elType: 'section' | |
| 5983 | + }, | |
| 5984 | + columns: 1, | |
| 5985 | + options: { | |
| 5986 | + at: index, | |
| 5987 | + edit: false | |
| 5988 | + } | |
| 5989 | + }); // `targetContainer` = first column at `section`. | |
| 5990 | + | |
| 5991 | + targetContainer = section.view.children.findByIndex(0).getContainer(); | |
| 5992 | + } // Will be not affected by hook since it always have `model.elements`. | |
| 5993 | + | |
| 5994 | + | |
| 5995 | + result.push(_this.pasteTo([targetContainer], [model], { | |
| 5996 | + at: index, | |
| 5997 | + edit: false | |
| 5998 | + })); | |
| 5999 | + index++; | |
| 6000 | + } | |
| 6001 | + break; | |
| 6002 | + | |
| 6003 | + case 'column': | |
| 6004 | + { | |
| 6005 | + // Next code changed from original since `_checkIsEmpty()` was removed. | |
| 6006 | + var _section = $e.run('document/elements/create', { | |
| 6007 | + container: targetContainer, | |
| 6008 | + model: { | |
| 6009 | + elType: 'section' | |
| 6010 | + }, | |
| 6011 | + columns: 0, | |
| 6012 | + // section with no columns. | |
| 6013 | + options: { | |
| 6014 | + at: ++index, | |
| 6015 | + edit: false | |
| 6016 | + } | |
| 6017 | + }); | |
| 6018 | + | |
| 6019 | + result.push(_this.pasteTo([_section], [model])); | |
| 6020 | + } | |
| 6021 | + break; | |
| 6022 | + | |
| 6023 | + default: | |
| 6024 | + // In case it widget: | |
| 6025 | + var target; // If you trying to paste widget on section, then paste should be at the first column. | |
| 6026 | + | |
| 6027 | + if ('section' === targetContainer.model.get('elType')) { | |
| 6028 | + target = [targetContainer.view.children.findByIndex(0).getContainer()]; | |
| 6029 | + } else { | |
| 6030 | + // Else, create section with one column for element. | |
| 6031 | + var _section2 = $e.run('document/elements/create', { | |
| 6032 | + container: targetContainer, | |
| 6033 | + model: { | |
| 6034 | + elType: 'section' | |
| 6035 | + }, | |
| 6036 | + columns: 1, | |
| 6037 | + options: { | |
| 6038 | + at: ++index | |
| 6039 | + } | |
| 6040 | + }); // Create the element in the column that just was created. | |
| 6041 | + | |
| 6042 | + | |
| 6043 | + target = [_section2.view.children.first().getContainer()]; | |
| 6044 | + } | |
| 6045 | + | |
| 6046 | + result.push(_this.pasteTo(target, [model])); | |
| 6047 | + } | |
| 6048 | + }); | |
| 6049 | + }); | |
| 6050 | + return result; | |
| 6051 | + } | |
| 6052 | + }, { | |
| 6053 | + key: "pasteTo", | |
| 6054 | + value: function pasteTo(targetContainers, models) { | |
| 6055 | + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | |
| 6056 | + options = (0, _assign.default)({ | |
| 6057 | + at: null, | |
| 6058 | + clone: true | |
| 6059 | + }, options); | |
| 6060 | + var result = []; | |
| 6061 | + models.forEach(function (model) { | |
| 6062 | + result.push($e.run('document/elements/create', { | |
| 6063 | + containers: targetContainers, | |
| 6064 | + model: model, | |
| 6065 | + options: options | |
| 6066 | + })); // On paste sections, increase the `at` for every section. | |
| 6067 | + | |
| 6068 | + if (null !== options.at) { | |
| 6069 | + options.at++; | |
| 6070 | + } | |
| 6071 | + }); | |
| 6072 | + | |
| 6073 | + if (1 === result.length) { | |
| 6074 | + return result[0]; | |
| 6075 | + } | |
| 6076 | + | |
| 6077 | + return result; | |
| 6078 | + } | |
| 6079 | + }]); | |
| 6080 | + return Paste; | |
| 6081 | +}(_commandHistory.default); | |
| 6082 | + | |
| 6083 | +exports.Paste = Paste; | |
| 6084 | +var _default = Paste; | |
| 6085 | +exports["default"] = _default; | |
| 6086 | + | |
| 6087 | +/***/ }), | |
| 6088 | + | |
| 6089 | +/***/ "../assets/dev/js/editor/document/elements/commands/reset-settings.js": | |
| 6090 | +/*!****************************************************************************!*\ | |
| 6091 | + !*** ../assets/dev/js/editor/document/elements/commands/reset-settings.js ***! | |
| 6092 | + \****************************************************************************/ | |
| 6093 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 6094 | + | |
| 6095 | +"use strict"; | |
| 6096 | + | |
| 6097 | + | |
| 6098 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 6099 | + | |
| 6100 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 6101 | + | |
| 6102 | +_Object$defineProperty(exports, "__esModule", { | |
| 6103 | + value: true | |
| 6104 | +}); | |
| 6105 | + | |
| 6106 | +exports["default"] = exports.ResetSettings = void 0; | |
| 6107 | + | |
| 6108 | +__webpack_require__(/*! core-js/modules/es6.array.find.js */ "../node_modules/core-js/modules/es6.array.find.js"); | |
| 6109 | + | |
| 6110 | +var _entries = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/entries */ "../node_modules/@babel/runtime-corejs2/core-js/object/entries.js")); | |
| 6111 | + | |
| 6112 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/slicedToArray */ "../node_modules/@babel/runtime-corejs2/helpers/slicedToArray.js")); | |
| 6113 | + | |
| 6114 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 6115 | + | |
| 6116 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 6117 | + | |
| 6118 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 6119 | + | |
| 6120 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 6121 | + | |
| 6122 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! ../../commands/base/command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 6123 | + | |
| 6124 | +var ResetSettings = /*#__PURE__*/function (_CommandHistory) { | |
| 6125 | + (0, _inherits2.default)(ResetSettings, _CommandHistory); | |
| 6126 | + | |
| 6127 | + var _super = (0, _createSuper2.default)(ResetSettings); | |
| 6128 | + | |
| 6129 | + function ResetSettings() { | |
| 6130 | + (0, _classCallCheck2.default)(this, ResetSettings); | |
| 6131 | + return _super.apply(this, arguments); | |
| 6132 | + } | |
| 6133 | + | |
| 6134 | + (0, _createClass2.default)(ResetSettings, [{ | |
| 6135 | + key: "validateArgs", | |
| 6136 | + value: function validateArgs(args) { | |
| 6137 | + this.requireContainer(args); | |
| 6138 | + } | |
| 6139 | + }, { | |
| 6140 | + key: "getHistory", | |
| 6141 | + value: function getHistory(args) { | |
| 6142 | + var _args$containers = args.containers, | |
| 6143 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 6144 | + return { | |
| 6145 | + containers: containers, | |
| 6146 | + type: 'reset_settings' | |
| 6147 | + }; | |
| 6148 | + } | |
| 6149 | + }, { | |
| 6150 | + key: "apply", | |
| 6151 | + value: function apply(args) { | |
| 6152 | + var _args$containers2 = args.containers, | |
| 6153 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2, | |
| 6154 | + _args$options = args.options, | |
| 6155 | + options = _args$options === void 0 ? {} : _args$options, | |
| 6156 | + _args$settings = args.settings, | |
| 6157 | + settings = _args$settings === void 0 ? [] : _args$settings; | |
| 6158 | + containers.forEach(function (container) { | |
| 6159 | + var controls = (0, _entries.default)(container.settings.controls), | |
| 6160 | + defaultValues = {}; | |
| 6161 | + controls.forEach(function (_ref) { | |
| 6162 | + var _ref2 = (0, _slicedToArray2.default)(_ref, 2), | |
| 6163 | + controlName = _ref2[0], | |
| 6164 | + control = _ref2[1]; | |
| 6165 | + | |
| 6166 | + // If settings were specific, restore only them. | |
| 6167 | + if (settings && settings.length) { | |
| 6168 | + if (!settings.find(function (key) { | |
| 6169 | + return key === controlName; | |
| 6170 | + })) { | |
| 6171 | + return; | |
| 6172 | + } | |
| 6173 | + } | |
| 6174 | + | |
| 6175 | + defaultValues[controlName] = control.default; | |
| 6176 | + }); | |
| 6177 | + $e.run('document/elements/settings', { | |
| 6178 | + container: container, | |
| 6179 | + options: options, | |
| 6180 | + settings: defaultValues | |
| 6181 | + }); | |
| 6182 | + container.render(); | |
| 6183 | + }); | |
| 6184 | + } | |
| 6185 | + }]); | |
| 6186 | + return ResetSettings; | |
| 6187 | +}(_commandHistory.default); | |
| 6188 | + | |
| 6189 | +exports.ResetSettings = ResetSettings; | |
| 6190 | +var _default = ResetSettings; | |
| 6191 | +exports["default"] = _default; | |
| 6192 | + | |
| 6193 | +/***/ }), | |
| 6194 | + | |
| 6195 | +/***/ "../assets/dev/js/editor/document/elements/commands/reset-style.js": | |
| 6196 | +/*!*************************************************************************!*\ | |
| 6197 | + !*** ../assets/dev/js/editor/document/elements/commands/reset-style.js ***! | |
| 6198 | + \*************************************************************************/ | |
| 6199 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 6200 | + | |
| 6201 | +"use strict"; | |
| 6202 | + | |
| 6203 | + | |
| 6204 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 6205 | + | |
| 6206 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 6207 | + | |
| 6208 | +_Object$defineProperty(exports, "__esModule", { | |
| 6209 | + value: true | |
| 6210 | +}); | |
| 6211 | + | |
| 6212 | +exports["default"] = exports.ResetStyle = void 0; | |
| 6213 | + | |
| 6214 | +var _entries = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/entries */ "../node_modules/@babel/runtime-corejs2/core-js/object/entries.js")); | |
| 6215 | + | |
| 6216 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/slicedToArray */ "../node_modules/@babel/runtime-corejs2/helpers/slicedToArray.js")); | |
| 6217 | + | |
| 6218 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 6219 | + | |
| 6220 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 6221 | + | |
| 6222 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 6223 | + | |
| 6224 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 6225 | + | |
| 6226 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 6227 | + | |
| 6228 | +var ResetStyle = /*#__PURE__*/function (_CommandHistory) { | |
| 6229 | + (0, _inherits2.default)(ResetStyle, _CommandHistory); | |
| 6230 | + | |
| 6231 | + var _super = (0, _createSuper2.default)(ResetStyle); | |
| 6232 | + | |
| 6233 | + function ResetStyle() { | |
| 6234 | + (0, _classCallCheck2.default)(this, ResetStyle); | |
| 6235 | + return _super.apply(this, arguments); | |
| 6236 | + } | |
| 6237 | + | |
| 6238 | + (0, _createClass2.default)(ResetStyle, [{ | |
| 6239 | + key: "validateArgs", | |
| 6240 | + value: function validateArgs(args) { | |
| 6241 | + this.requireContainer(args); | |
| 6242 | + } | |
| 6243 | + }, { | |
| 6244 | + key: "getHistory", | |
| 6245 | + value: function getHistory(args) { | |
| 6246 | + var _args$containers = args.containers, | |
| 6247 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 6248 | + return { | |
| 6249 | + containers: containers, | |
| 6250 | + type: 'reset_style' | |
| 6251 | + }; | |
| 6252 | + } | |
| 6253 | + }, { | |
| 6254 | + key: "apply", | |
| 6255 | + value: function apply(args) { | |
| 6256 | + var _args$containers2 = args.containers, | |
| 6257 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2; | |
| 6258 | + containers.forEach(function (container) { | |
| 6259 | + var controls = container.settings.controls, | |
| 6260 | + settingsKeys = []; | |
| 6261 | + container.view.allowRender = false; | |
| 6262 | + (0, _entries.default)(controls).forEach(function (_ref) { | |
| 6263 | + var _ref2 = (0, _slicedToArray2.default)(_ref, 2), | |
| 6264 | + controlName = _ref2[0], | |
| 6265 | + control = _ref2[1]; | |
| 6266 | + | |
| 6267 | + if (!container.view.isStyleTransferControl(control)) { | |
| 6268 | + return; | |
| 6269 | + } | |
| 6270 | + | |
| 6271 | + settingsKeys.push(controlName); | |
| 6272 | + }); // BC: Deprecated since 2.8.0 - use `$e.hooks`. | |
| 6273 | + | |
| 6274 | + elementor.channels.data.trigger('element:before:reset:style', container.model); | |
| 6275 | + $e.run('document/elements/reset-settings', { | |
| 6276 | + container: container, | |
| 6277 | + settings: settingsKeys, | |
| 6278 | + options: { | |
| 6279 | + external: true | |
| 6280 | + } | |
| 6281 | + }); // BC: Deprecated since 2.8.0 - use `$e.hooks`. | |
| 6282 | + | |
| 6283 | + elementor.channels.data.trigger('element:after:reset:style', container.model); | |
| 6284 | + container.view.allowRender = true; | |
| 6285 | + container.render(); | |
| 6286 | + }); | |
| 6287 | + } | |
| 6288 | + }]); | |
| 6289 | + return ResetStyle; | |
| 6290 | +}(_commandHistory.default); | |
| 6291 | + | |
| 6292 | +exports.ResetStyle = ResetStyle; | |
| 6293 | +var _default = ResetStyle; | |
| 6294 | +exports["default"] = _default; | |
| 6295 | + | |
| 6296 | +/***/ }), | |
| 6297 | + | |
| 6298 | +/***/ "../assets/dev/js/editor/document/elements/commands/select-all.js": | |
| 6299 | +/*!************************************************************************!*\ | |
| 6300 | + !*** ../assets/dev/js/editor/document/elements/commands/select-all.js ***! | |
| 6301 | + \************************************************************************/ | |
| 6302 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 6303 | + | |
| 6304 | +"use strict"; | |
| 6305 | + | |
| 6306 | + | |
| 6307 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 6308 | + | |
| 6309 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 6310 | + | |
| 6311 | +_Object$defineProperty(exports, "__esModule", { | |
| 6312 | + value: true | |
| 6313 | +}); | |
| 6314 | + | |
| 6315 | +exports["default"] = exports.SelectAll = void 0; | |
| 6316 | + | |
| 6317 | +__webpack_require__(/*! core-js/modules/es6.array.map.js */ "../node_modules/core-js/modules/es6.array.map.js"); | |
| 6318 | + | |
| 6319 | +var _createForOfIteratorHelper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createForOfIteratorHelper */ "../node_modules/@babel/runtime-corejs2/helpers/createForOfIteratorHelper.js")); | |
| 6320 | + | |
| 6321 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 6322 | + | |
| 6323 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 6324 | + | |
| 6325 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 6326 | + | |
| 6327 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 6328 | + | |
| 6329 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 6330 | + | |
| 6331 | +var SelectAll = /*#__PURE__*/function (_CommandBase) { | |
| 6332 | + (0, _inherits2.default)(SelectAll, _CommandBase); | |
| 6333 | + | |
| 6334 | + var _super = (0, _createSuper2.default)(SelectAll); | |
| 6335 | + | |
| 6336 | + function SelectAll() { | |
| 6337 | + (0, _classCallCheck2.default)(this, SelectAll); | |
| 6338 | + return _super.apply(this, arguments); | |
| 6339 | + } | |
| 6340 | + | |
| 6341 | + (0, _createClass2.default)(SelectAll, [{ | |
| 6342 | + key: "apply", | |
| 6343 | + value: function apply(args) { | |
| 6344 | + elementor.selection.add(this.flattenContainersList( // The selection mechanism keeps selected elements in a single-dimension object. Therefore, In order to | |
| 6345 | + // select all document elements, we should convert them into a flatten, single-dimension array. | |
| 6346 | + elementor.elementsModel.get('elements').map(function (element) { | |
| 6347 | + return elementor.getContainer(element.id); | |
| 6348 | + }))); | |
| 6349 | + } | |
| 6350 | + /** | |
| 6351 | + * Recursively iterate over all container children and make a flatten array of their instances. | |
| 6352 | + * | |
| 6353 | + * @param containers | |
| 6354 | + * @returns {*[]} | |
| 6355 | + */ | |
| 6356 | + | |
| 6357 | + }, { | |
| 6358 | + key: "flattenContainersList", | |
| 6359 | + value: function flattenContainersList() { | |
| 6360 | + var containers = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; | |
| 6361 | + var flatten = []; | |
| 6362 | + | |
| 6363 | + var _iterator = (0, _createForOfIteratorHelper2.default)(containers), | |
| 6364 | + _step; | |
| 6365 | + | |
| 6366 | + try { | |
| 6367 | + for (_iterator.s(); !(_step = _iterator.n()).done;) { | |
| 6368 | + var container = _step.value; | |
| 6369 | + flatten.push(container); | |
| 6370 | + | |
| 6371 | + if (container.children.length) { | |
| 6372 | + flatten = flatten.concat(this.flattenContainersList(container.children)); | |
| 6373 | + } | |
| 6374 | + } | |
| 6375 | + } catch (err) { | |
| 6376 | + _iterator.e(err); | |
| 6377 | + } finally { | |
| 6378 | + _iterator.f(); | |
| 6379 | + } | |
| 6380 | + | |
| 6381 | + return flatten; | |
| 6382 | + } | |
| 6383 | + }]); | |
| 6384 | + return SelectAll; | |
| 6385 | +}(_commandBase.default); | |
| 6386 | + | |
| 6387 | +exports.SelectAll = SelectAll; | |
| 6388 | +var _default = SelectAll; | |
| 6389 | +exports["default"] = _default; | |
| 6390 | + | |
| 6391 | +/***/ }), | |
| 6392 | + | |
| 6393 | +/***/ "../assets/dev/js/editor/document/elements/commands/select.js": | |
| 6394 | +/*!********************************************************************!*\ | |
| 6395 | + !*** ../assets/dev/js/editor/document/elements/commands/select.js ***! | |
| 6396 | + \********************************************************************/ | |
| 6397 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 6398 | + | |
| 6399 | +"use strict"; | |
| 6400 | + | |
| 6401 | + | |
| 6402 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 6403 | + | |
| 6404 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 6405 | + | |
| 6406 | +_Object$defineProperty(exports, "__esModule", { | |
| 6407 | + value: true | |
| 6408 | +}); | |
| 6409 | + | |
| 6410 | +exports["default"] = exports.Select = void 0; | |
| 6411 | + | |
| 6412 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 6413 | + | |
| 6414 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 6415 | + | |
| 6416 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 6417 | + | |
| 6418 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 6419 | + | |
| 6420 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 6421 | + | |
| 6422 | +var Select = /*#__PURE__*/function (_CommandBase) { | |
| 6423 | + (0, _inherits2.default)(Select, _CommandBase); | |
| 6424 | + | |
| 6425 | + var _super = (0, _createSuper2.default)(Select); | |
| 6426 | + | |
| 6427 | + function Select() { | |
| 6428 | + (0, _classCallCheck2.default)(this, Select); | |
| 6429 | + return _super.apply(this, arguments); | |
| 6430 | + } | |
| 6431 | + | |
| 6432 | + (0, _createClass2.default)(Select, [{ | |
| 6433 | + key: "validateArgs", | |
| 6434 | + value: function validateArgs(args) { | |
| 6435 | + this.requireContainer(args); | |
| 6436 | + } | |
| 6437 | + }, { | |
| 6438 | + key: "apply", | |
| 6439 | + value: function apply(args) { | |
| 6440 | + var _args$containers = args.containers, | |
| 6441 | + containers = _args$containers === void 0 ? [args.container] : _args$containers, | |
| 6442 | + _args$append = args.append, | |
| 6443 | + append = _args$append === void 0 ? false : _args$append; | |
| 6444 | + elementor.selection.add(containers, append); | |
| 6445 | + } | |
| 6446 | + }]); | |
| 6447 | + return Select; | |
| 6448 | +}(_commandBase.default); | |
| 6449 | + | |
| 6450 | +exports.Select = Select; | |
| 6451 | +var _default = Select; | |
| 6452 | +exports["default"] = _default; | |
| 6453 | + | |
| 6454 | +/***/ }), | |
| 6455 | + | |
| 6456 | +/***/ "../assets/dev/js/editor/document/elements/commands/settings.js": | |
| 6457 | +/*!**********************************************************************!*\ | |
| 6458 | + !*** ../assets/dev/js/editor/document/elements/commands/settings.js ***! | |
| 6459 | + \**********************************************************************/ | |
| 6460 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 6461 | + | |
| 6462 | +"use strict"; | |
| 6463 | + | |
| 6464 | + | |
| 6465 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 6466 | + | |
| 6467 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 6468 | + | |
| 6469 | +_Object$defineProperty(exports, "__esModule", { | |
| 6470 | + value: true | |
| 6471 | +}); | |
| 6472 | + | |
| 6473 | +exports["default"] = exports.Settings = void 0; | |
| 6474 | + | |
| 6475 | +var _keys = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js")); | |
| 6476 | + | |
| 6477 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/defineProperty */ "../node_modules/@babel/runtime-corejs2/helpers/defineProperty.js")); | |
| 6478 | + | |
| 6479 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 6480 | + | |
| 6481 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 6482 | + | |
| 6483 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 6484 | + | |
| 6485 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 6486 | + | |
| 6487 | +var _commandHistoryDebounce = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history-debounce */ "../assets/dev/js/editor/document/commands/base/command-history-debounce.js")); | |
| 6488 | + | |
| 6489 | +var Settings = /*#__PURE__*/function (_CommandHistoryDeboun) { | |
| 6490 | + (0, _inherits2.default)(Settings, _CommandHistoryDeboun); | |
| 6491 | + | |
| 6492 | + var _super = (0, _createSuper2.default)(Settings); | |
| 6493 | + | |
| 6494 | + function Settings() { | |
| 6495 | + (0, _classCallCheck2.default)(this, Settings); | |
| 6496 | + return _super.apply(this, arguments); | |
| 6497 | + } | |
| 6498 | + | |
| 6499 | + (0, _createClass2.default)(Settings, [{ | |
| 6500 | + key: "addToHistory", | |
| 6501 | + value: | |
| 6502 | + /** | |
| 6503 | + * Function addToHistory(). | |
| 6504 | + * | |
| 6505 | + * @param {Container} container | |
| 6506 | + * @param {{}} newSettings | |
| 6507 | + * @param {{}} oldSettings | |
| 6508 | + */ | |
| 6509 | + function addToHistory(container, newSettings, oldSettings) { | |
| 6510 | + var changes = (0, _defineProperty2.default)({}, container.id, { | |
| 6511 | + old: oldSettings, | |
| 6512 | + new: newSettings | |
| 6513 | + }), | |
| 6514 | + historyItem = { | |
| 6515 | + containers: [container], | |
| 6516 | + data: { | |
| 6517 | + changes: changes | |
| 6518 | + }, | |
| 6519 | + type: 'change', | |
| 6520 | + restore: Settings.restore | |
| 6521 | + }; | |
| 6522 | + $e.internal('document/history/add-transaction', historyItem); | |
| 6523 | + } | |
| 6524 | + }, { | |
| 6525 | + key: "validateArgs", | |
| 6526 | + value: function validateArgs(args) { | |
| 6527 | + this.requireContainer(args); | |
| 6528 | + this.requireArgumentConstructor('settings', Object, args); | |
| 6529 | + } | |
| 6530 | + }, { | |
| 6531 | + key: "getHistory", | |
| 6532 | + value: function getHistory(args) { | |
| 6533 | + var _args$containers = args.containers, | |
| 6534 | + containers = _args$containers === void 0 ? [args.container] : _args$containers, | |
| 6535 | + subTitle = this.constructor.getSubTitle(args); | |
| 6536 | + return { | |
| 6537 | + containers: containers, | |
| 6538 | + subTitle: subTitle, | |
| 6539 | + type: 'change' | |
| 6540 | + }; | |
| 6541 | + } | |
| 6542 | + }, { | |
| 6543 | + key: "apply", | |
| 6544 | + value: function apply(args) { | |
| 6545 | + var _this = this; | |
| 6546 | + | |
| 6547 | + var _args$containers2 = args.containers, | |
| 6548 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2, | |
| 6549 | + _args$settings = args.settings, | |
| 6550 | + settings = _args$settings === void 0 ? {} : _args$settings, | |
| 6551 | + _args$isMultiSettings = args.isMultiSettings, | |
| 6552 | + isMultiSettings = _args$isMultiSettings === void 0 ? false : _args$isMultiSettings, | |
| 6553 | + _args$options = args.options, | |
| 6554 | + options = _args$options === void 0 ? {} : _args$options; | |
| 6555 | + containers.forEach(function (container) { | |
| 6556 | + container = container.lookup(); | |
| 6557 | + /** | |
| 6558 | + * Settings support multi settings for each container, eg use: | |
| 6559 | + * settings: { '{ container-id }': { someSettingKey: someSettingValue } } etc. | |
| 6560 | + */ | |
| 6561 | + | |
| 6562 | + var newSettings = isMultiSettings ? settings[container.id] : settings, | |
| 6563 | + oldSettings = container.settings.toJSON(); // Clear old oldValues. | |
| 6564 | + | |
| 6565 | + container.oldValues = {}; // Set oldValues, For each setting is about to change save setting value. | |
| 6566 | + | |
| 6567 | + (0, _keys.default)(newSettings).forEach(function (key) { | |
| 6568 | + container.oldValues[key] = oldSettings[key]; | |
| 6569 | + }); // If history active, add history transaction with old and new settings. | |
| 6570 | + | |
| 6571 | + if (_this.isHistoryActive()) { | |
| 6572 | + _this.addToHistory(container, newSettings, container.oldValues); | |
| 6573 | + } | |
| 6574 | + | |
| 6575 | + $e.internal('document/elements/set-settings', { | |
| 6576 | + container: container, | |
| 6577 | + options: options, | |
| 6578 | + settings: newSettings | |
| 6579 | + }); | |
| 6580 | + }); | |
| 6581 | + } | |
| 6582 | + }, { | |
| 242 | 6583 | key: "isDataChanged", |
| 243 | 6584 | value: function isDataChanged() { |
| 244 | - // All the commands who use history are commands that changing the data. | |
| 245 | 6585 | return true; |
| 246 | 6586 | } |
| 247 | 6587 | }], [{ |
| 248 | - key: "getInstanceType", | |
| 249 | - value: function getInstanceType() { | |
| 250 | - return 'CommandHistoryBase'; | |
| 6588 | + key: "getSubTitle", | |
| 6589 | + value: | |
| 6590 | + /** | |
| 6591 | + * Function getSubTitle(). | |
| 6592 | + * | |
| 6593 | + * Get sub title by container. | |
| 6594 | + * | |
| 6595 | + * @param {{}} args | |
| 6596 | + * | |
| 6597 | + * @returns {string} | |
| 6598 | + */ | |
| 6599 | + function getSubTitle(args) { | |
| 6600 | + var _args$containers3 = args.containers, | |
| 6601 | + containers = _args$containers3 === void 0 ? [args.container] : _args$containers3, | |
| 6602 | + _args$settings2 = args.settings, | |
| 6603 | + settings = _args$settings2 === void 0 ? {} : _args$settings2, | |
| 6604 | + isMultiSettings = args.isMultiSettings, | |
| 6605 | + settingsKeys = (0, _keys.default)(settings), | |
| 6606 | + controls = containers[0].controls, | |
| 6607 | + firstSettingKey = settingsKeys[0]; | |
| 6608 | + var result = ''; | |
| 6609 | + | |
| 6610 | + if (!isMultiSettings && 1 === settingsKeys.length && controls && controls[firstSettingKey]) { | |
| 6611 | + result = controls[firstSettingKey].label; | |
| 6612 | + } | |
| 6613 | + | |
| 6614 | + return result; | |
| 251 | 6615 | } |
| 6616 | + /** | |
| 6617 | + * Function restore(). | |
| 6618 | + * | |
| 6619 | + * Redo/Restore. | |
| 6620 | + * | |
| 6621 | + * @param {{}} historyItem | |
| 6622 | + * @param {boolean} isRedo | |
| 6623 | + */ | |
| 6624 | + | |
| 6625 | + }, { | |
| 6626 | + key: "restore", | |
| 6627 | + value: function restore(historyItem, isRedo) { | |
| 6628 | + var data = historyItem.get('data'); | |
| 6629 | + historyItem.get('containers').forEach(function ( | |
| 6630 | + /* Container */ | |
| 6631 | + container) { | |
| 6632 | + var changes = data.changes[container.id]; | |
| 6633 | + $e.run('document/elements/settings', { | |
| 6634 | + container: container, | |
| 6635 | + settings: isRedo ? changes.new : changes.old, | |
| 6636 | + options: { | |
| 6637 | + external: true | |
| 6638 | + } | |
| 6639 | + }); | |
| 6640 | + }); | |
| 6641 | + } | |
| 252 | 6642 | }]); |
| 253 | -}(_commandContainerBase.default); | |
| 6643 | + return Settings; | |
| 6644 | +}(_commandHistoryDebounce.default); | |
| 254 | 6645 | |
| 6646 | +exports.Settings = Settings; | |
| 6647 | +var _default = Settings; | |
| 6648 | +exports["default"] = _default; | |
| 6649 | + | |
| 255 | 6650 | /***/ }), |
| 256 | 6651 | |
| 257 | -/***/ "../assets/dev/js/editor/document/command-bases/command-history-debounce-base.js": | |
| 6652 | +/***/ "../assets/dev/js/editor/document/elements/commands/toggle-selection.js": | |
| 6653 | +/*!******************************************************************************!*\ | |
| 6654 | + !*** ../assets/dev/js/editor/document/elements/commands/toggle-selection.js ***! | |
| 6655 | + \******************************************************************************/ | |
| 6656 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 6657 | + | |
| 6658 | +"use strict"; | |
| 6659 | + | |
| 6660 | + | |
| 6661 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 6662 | + | |
| 6663 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 6664 | + | |
| 6665 | +_Object$defineProperty(exports, "__esModule", { | |
| 6666 | + value: true | |
| 6667 | +}); | |
| 6668 | + | |
| 6669 | +exports["default"] = exports.ToggleSelection = void 0; | |
| 6670 | + | |
| 6671 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 6672 | + | |
| 6673 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 6674 | + | |
| 6675 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 6676 | + | |
| 6677 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 6678 | + | |
| 6679 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 6680 | + | |
| 6681 | +var ToggleSelection = /*#__PURE__*/function (_CommandBase) { | |
| 6682 | + (0, _inherits2.default)(ToggleSelection, _CommandBase); | |
| 6683 | + | |
| 6684 | + var _super = (0, _createSuper2.default)(ToggleSelection); | |
| 6685 | + | |
| 6686 | + function ToggleSelection() { | |
| 6687 | + (0, _classCallCheck2.default)(this, ToggleSelection); | |
| 6688 | + return _super.apply(this, arguments); | |
| 6689 | + } | |
| 6690 | + | |
| 6691 | + (0, _createClass2.default)(ToggleSelection, [{ | |
| 6692 | + key: "validateArgs", | |
| 6693 | + value: function validateArgs(args) { | |
| 6694 | + this.requireContainer(args); | |
| 6695 | + } | |
| 6696 | + }, { | |
| 6697 | + key: "apply", | |
| 6698 | + value: function apply(args) { | |
| 6699 | + var _args$containers = args.containers, | |
| 6700 | + containers = _args$containers === void 0 ? [args.container] : _args$containers, | |
| 6701 | + _args$append = args.append, | |
| 6702 | + append = _args$append === void 0 ? false : _args$append; | |
| 6703 | + containers.forEach(function (container) { | |
| 6704 | + $e.run(elementor.selection.has(container) && append ? 'document/elements/deselect' : 'document/elements/select', args); | |
| 6705 | + }); | |
| 6706 | + } | |
| 6707 | + }]); | |
| 6708 | + return ToggleSelection; | |
| 6709 | +}(_commandBase.default); | |
| 6710 | + | |
| 6711 | +exports.ToggleSelection = ToggleSelection; | |
| 6712 | +var _default = ToggleSelection; | |
| 6713 | +exports["default"] = _default; | |
| 6714 | + | |
| 6715 | +/***/ }), | |
| 6716 | + | |
| 6717 | +/***/ "../assets/dev/js/editor/document/elements/component.js": | |
| 6718 | +/*!**************************************************************!*\ | |
| 6719 | + !*** ../assets/dev/js/editor/document/elements/component.js ***! | |
| 6720 | + \**************************************************************/ | |
| 6721 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 6722 | + | |
| 6723 | +"use strict"; | |
| 6724 | + | |
| 6725 | + | |
| 6726 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 6727 | + | |
| 6728 | +var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireWildcard */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js"); | |
| 6729 | + | |
| 6730 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 6731 | + | |
| 6732 | +_Object$defineProperty(exports, "__esModule", { | |
| 6733 | + value: true | |
| 6734 | +}); | |
| 6735 | + | |
| 6736 | +exports["default"] = void 0; | |
| 6737 | + | |
| 6738 | +var _values = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "../node_modules/@babel/runtime-corejs2/core-js/object/values.js")); | |
| 6739 | + | |
| 6740 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 6741 | + | |
| 6742 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 6743 | + | |
| 6744 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 6745 | + | |
| 6746 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 6747 | + | |
| 6748 | +var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../core/common/assets/js/api/modules/component-base.js")); | |
| 6749 | + | |
| 6750 | +var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../assets/dev/js/editor/document/elements/commands/index.js")); | |
| 6751 | + | |
| 6752 | +var commandsInternal = _interopRequireWildcard(__webpack_require__(/*! ./commands-internal/ */ "../assets/dev/js/editor/document/elements/commands-internal/index.js")); | |
| 6753 | + | |
| 6754 | +var Component = /*#__PURE__*/function (_ComponentBase) { | |
| 6755 | + (0, _inherits2.default)(Component, _ComponentBase); | |
| 6756 | + | |
| 6757 | + var _super = (0, _createSuper2.default)(Component); | |
| 6758 | + | |
| 6759 | + function Component() { | |
| 6760 | + (0, _classCallCheck2.default)(this, Component); | |
| 6761 | + return _super.apply(this, arguments); | |
| 6762 | + } | |
| 6763 | + | |
| 6764 | + (0, _createClass2.default)(Component, [{ | |
| 6765 | + key: "getNamespace", | |
| 6766 | + value: function getNamespace() { | |
| 6767 | + return 'document/elements'; | |
| 6768 | + } | |
| 6769 | + }, { | |
| 6770 | + key: "defaultCommands", | |
| 6771 | + value: function defaultCommands() { | |
| 6772 | + return this.importCommands(commands); | |
| 6773 | + } | |
| 6774 | + }, { | |
| 6775 | + key: "defaultCommandsInternal", | |
| 6776 | + value: function defaultCommandsInternal() { | |
| 6777 | + return this.importCommands(commandsInternal); | |
| 6778 | + } | |
| 6779 | + }, { | |
| 6780 | + key: "defaultUtils", | |
| 6781 | + value: function defaultUtils() { | |
| 6782 | + var _this = this; | |
| 6783 | + | |
| 6784 | + return { | |
| 6785 | + isValidChild: function isValidChild(childModel, parentModel) { | |
| 6786 | + if (childModel instanceof Backbone.Model) { | |
| 6787 | + childModel = childModel.attributes; | |
| 6788 | + } | |
| 6789 | + | |
| 6790 | + if (parentModel instanceof Backbone.Model) { | |
| 6791 | + parentModel = parentModel.attributes; | |
| 6792 | + } | |
| 6793 | + | |
| 6794 | + var parentElType = parentModel.elType, | |
| 6795 | + draggedElType = childModel.elType, | |
| 6796 | + parentIsInner = parentModel.isInner, | |
| 6797 | + draggedIsInner = childModel.isInner; // Block's inner-section at inner-section column. | |
| 6798 | + | |
| 6799 | + if (draggedIsInner && 'section' === draggedElType && parentIsInner && 'column' === parentElType) { | |
| 6800 | + return false; | |
| 6801 | + } | |
| 6802 | + | |
| 6803 | + if (draggedElType === parentElType) { | |
| 6804 | + return false; | |
| 6805 | + } | |
| 6806 | + | |
| 6807 | + if ('section' === draggedElType && !draggedIsInner && 'column' === parentElType) { | |
| 6808 | + return false; | |
| 6809 | + } | |
| 6810 | + | |
| 6811 | + var childTypes = elementor.helpers.getElementChildType(parentElType); | |
| 6812 | + return childTypes && -1 !== childTypes.indexOf(draggedElType); | |
| 6813 | + }, | |
| 6814 | + isValidGrandChild: function isValidGrandChild(childModel, targetContainer) { | |
| 6815 | + var result; | |
| 6816 | + var childElType = childModel.get('elType'); | |
| 6817 | + | |
| 6818 | + switch (targetContainer.model.get('elType')) { | |
| 6819 | + case 'document': | |
| 6820 | + result = true; | |
| 6821 | + break; | |
| 6822 | + | |
| 6823 | + case 'section': | |
| 6824 | + result = 'widget' === childElType; | |
| 6825 | + break; | |
| 6826 | + | |
| 6827 | + default: | |
| 6828 | + result = false; | |
| 6829 | + } | |
| 6830 | + | |
| 6831 | + return result; | |
| 6832 | + }, | |
| 6833 | + isSameElement: function isSameElement(sourceModel, targetContainer) { | |
| 6834 | + var targetElType = targetContainer.model.get('elType'), | |
| 6835 | + sourceElType = sourceModel.get('elType'); | |
| 6836 | + | |
| 6837 | + if (targetElType !== sourceElType) { | |
| 6838 | + return false; | |
| 6839 | + } | |
| 6840 | + | |
| 6841 | + if ('column' === targetElType && 'column' === sourceElType) { | |
| 6842 | + return true; | |
| 6843 | + } | |
| 6844 | + | |
| 6845 | + return targetContainer.model.get('isInner') === sourceModel.get('isInner'); | |
| 6846 | + }, | |
| 6847 | + getPasteOptions: function getPasteOptions(sourceModel, targetContainer) { | |
| 6848 | + var result = {}; | |
| 6849 | + result.isValidChild = _this.utils.isValidChild(sourceModel, targetContainer.model); | |
| 6850 | + result.isSameElement = _this.utils.isSameElement(sourceModel, targetContainer); | |
| 6851 | + result.isValidGrandChild = _this.utils.isValidGrandChild(sourceModel, targetContainer); | |
| 6852 | + return result; | |
| 6853 | + }, | |
| 6854 | + isPasteEnabled: function isPasteEnabled(targetContainer) { | |
| 6855 | + var storage = elementorCommon.storage.get('clipboard'); // No storage? no paste. | |
| 6856 | + | |
| 6857 | + if (!storage || !storage[0]) { | |
| 6858 | + return false; | |
| 6859 | + } | |
| 6860 | + | |
| 6861 | + if (!(storage[0] instanceof Backbone.Model)) { | |
| 6862 | + storage[0] = new Backbone.Model(storage[0]); | |
| 6863 | + } | |
| 6864 | + | |
| 6865 | + var pasteOptions = _this.utils.getPasteOptions(storage[0], targetContainer); | |
| 6866 | + | |
| 6867 | + return (0, _values.default)(pasteOptions).some(function (opt) { | |
| 6868 | + return !!opt; | |
| 6869 | + }); | |
| 6870 | + } | |
| 6871 | + }; | |
| 6872 | + } | |
| 6873 | + }]); | |
| 6874 | + return Component; | |
| 6875 | +}(_componentBase.default); | |
| 6876 | + | |
| 6877 | +exports["default"] = Component; | |
| 6878 | + | |
| 6879 | +/***/ }), | |
| 6880 | + | |
| 6881 | +/***/ "../assets/dev/js/editor/document/globals/commands/base/disable-enable.js": | |
| 6882 | +/*!********************************************************************************!*\ | |
| 6883 | + !*** ../assets/dev/js/editor/document/globals/commands/base/disable-enable.js ***! | |
| 6884 | + \********************************************************************************/ | |
| 6885 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 6886 | + | |
| 6887 | +"use strict"; | |
| 6888 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 6889 | + | |
| 6890 | + | |
| 6891 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 6892 | + | |
| 6893 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 6894 | + | |
| 6895 | +_Object$defineProperty(exports, "__esModule", { | |
| 6896 | + value: true | |
| 6897 | +}); | |
| 6898 | + | |
| 6899 | +exports["default"] = void 0; | |
| 6900 | + | |
| 6901 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 6902 | + | |
| 6903 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 6904 | + | |
| 6905 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 6906 | + | |
| 6907 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 6908 | + | |
| 6909 | +var _commandDisableEnable = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-disable-enable */ "../assets/dev/js/editor/document/commands/base/command-disable-enable.js")); | |
| 6910 | + | |
| 6911 | +var DisableEnable = /*#__PURE__*/function (_CommandDisableEnable) { | |
| 6912 | + (0, _inherits2.default)(DisableEnable, _CommandDisableEnable); | |
| 6913 | + | |
| 6914 | + var _super = (0, _createSuper2.default)(DisableEnable); | |
| 6915 | + | |
| 6916 | + function DisableEnable() { | |
| 6917 | + (0, _classCallCheck2.default)(this, DisableEnable); | |
| 6918 | + return _super.apply(this, arguments); | |
| 6919 | + } | |
| 6920 | + | |
| 6921 | + (0, _createClass2.default)(DisableEnable, [{ | |
| 6922 | + key: "getTitle", | |
| 6923 | + value: function getTitle() { | |
| 6924 | + return __('Global'); | |
| 6925 | + } | |
| 6926 | + }], [{ | |
| 6927 | + key: "getName", | |
| 6928 | + value: function getName() { | |
| 6929 | + return 'Global'; | |
| 6930 | + } | |
| 6931 | + }, { | |
| 6932 | + key: "getEnableCommand", | |
| 6933 | + value: function getEnableCommand() { | |
| 6934 | + return 'document/globals/enable'; | |
| 6935 | + } | |
| 6936 | + }, { | |
| 6937 | + key: "getDisableCommand", | |
| 6938 | + value: function getDisableCommand() { | |
| 6939 | + return 'document/globals/disable'; | |
| 6940 | + } | |
| 6941 | + }]); | |
| 6942 | + return DisableEnable; | |
| 6943 | +}(_commandDisableEnable.default); | |
| 6944 | + | |
| 6945 | +exports["default"] = DisableEnable; | |
| 6946 | + | |
| 6947 | +/***/ }), | |
| 6948 | + | |
| 6949 | +/***/ "../assets/dev/js/editor/document/globals/commands/disable.js": | |
| 6950 | +/*!********************************************************************!*\ | |
| 6951 | + !*** ../assets/dev/js/editor/document/globals/commands/disable.js ***! | |
| 6952 | + \********************************************************************/ | |
| 6953 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 6954 | + | |
| 6955 | +"use strict"; | |
| 6956 | + | |
| 6957 | + | |
| 6958 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 6959 | + | |
| 6960 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 6961 | + | |
| 6962 | +_Object$defineProperty(exports, "__esModule", { | |
| 6963 | + value: true | |
| 6964 | +}); | |
| 6965 | + | |
| 6966 | +exports["default"] = exports.Disable = void 0; | |
| 6967 | + | |
| 6968 | +var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 6969 | + | |
| 6970 | +var _entries = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/entries */ "../node_modules/@babel/runtime-corejs2/core-js/object/entries.js")); | |
| 6971 | + | |
| 6972 | +var _promise = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/promise */ "../node_modules/@babel/runtime-corejs2/core-js/promise.js")); | |
| 6973 | + | |
| 6974 | +var _keys = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js")); | |
| 6975 | + | |
| 6976 | +__webpack_require__(/*! core-js/modules/es6.array.map.js */ "../node_modules/core-js/modules/es6.array.map.js"); | |
| 6977 | + | |
| 6978 | +__webpack_require__(/*! core-js/modules/es6.string.iterator.js */ "../node_modules/core-js/modules/es6.string.iterator.js"); | |
| 6979 | + | |
| 6980 | +__webpack_require__(/*! core-js/modules/es6.object.to-string.js */ "../node_modules/core-js/modules/es6.object.to-string.js"); | |
| 6981 | + | |
| 6982 | +__webpack_require__(/*! core-js/modules/es6.array.iterator.js */ "../node_modules/core-js/modules/es6.array.iterator.js"); | |
| 6983 | + | |
| 6984 | +__webpack_require__(/*! core-js/modules/web.dom.iterable.js */ "../node_modules/core-js/modules/web.dom.iterable.js"); | |
| 6985 | + | |
| 6986 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/slicedToArray */ "../node_modules/@babel/runtime-corejs2/helpers/slicedToArray.js")); | |
| 6987 | + | |
| 6988 | +var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/asyncToGenerator */ "../node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js")); | |
| 6989 | + | |
| 6990 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 6991 | + | |
| 6992 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 6993 | + | |
| 6994 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 6995 | + | |
| 6996 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 6997 | + | |
| 6998 | +var _disableEnable = _interopRequireDefault(__webpack_require__(/*! ./base/disable-enable */ "../assets/dev/js/editor/document/globals/commands/base/disable-enable.js")); | |
| 6999 | + | |
| 7000 | +// TODO: Disable is the only command that extends DisableEnable which is async. | |
| 7001 | +var Disable = /*#__PURE__*/function (_DisableEnable) { | |
| 7002 | + (0, _inherits2.default)(Disable, _DisableEnable); | |
| 7003 | + | |
| 7004 | + var _super = (0, _createSuper2.default)(Disable); | |
| 7005 | + | |
| 7006 | + function Disable() { | |
| 7007 | + (0, _classCallCheck2.default)(this, Disable); | |
| 7008 | + return _super.apply(this, arguments); | |
| 7009 | + } | |
| 7010 | + | |
| 7011 | + (0, _createClass2.default)(Disable, [{ | |
| 7012 | + key: "apply", | |
| 7013 | + value: function () { | |
| 7014 | + var _apply = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(args) { | |
| 7015 | + var settings, _args$containers, containers, _args$options, options, all; | |
| 7016 | + | |
| 7017 | + return _regenerator.default.wrap(function _callee3$(_context3) { | |
| 7018 | + while (1) { | |
| 7019 | + switch (_context3.prev = _context3.next) { | |
| 7020 | + case 0: | |
| 7021 | + settings = args.settings, _args$containers = args.containers, containers = _args$containers === void 0 ? [args.container] : _args$containers, _args$options = args.options, options = _args$options === void 0 ? {} : _args$options; | |
| 7022 | + all = containers.map( /*#__PURE__*/function () { | |
| 7023 | + var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2( | |
| 7024 | + /* Container */ | |
| 7025 | + container) { | |
| 7026 | + var promises; | |
| 7027 | + return _regenerator.default.wrap(function _callee2$(_context2) { | |
| 7028 | + while (1) { | |
| 7029 | + switch (_context2.prev = _context2.next) { | |
| 7030 | + case 0: | |
| 7031 | + container = container.lookup(); | |
| 7032 | + promises = []; // TODO rename `options.restore` => `options.unlink`. | |
| 7033 | + | |
| 7034 | + if (!options.restore) { | |
| 7035 | + _context2.next = 6; | |
| 7036 | + break; | |
| 7037 | + } | |
| 7038 | + | |
| 7039 | + promises = (0, _entries.default)(container.globals.attributes).map( /*#__PURE__*/function () { | |
| 7040 | + var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_ref2) { | |
| 7041 | + var _ref4, globalKey, globalValue; | |
| 7042 | + | |
| 7043 | + return _regenerator.default.wrap(function _callee$(_context) { | |
| 7044 | + while (1) { | |
| 7045 | + switch (_context.prev = _context.next) { | |
| 7046 | + case 0: | |
| 7047 | + _ref4 = (0, _slicedToArray2.default)(_ref2, 2), globalKey = _ref4[0], globalValue = _ref4[1]; | |
| 7048 | + | |
| 7049 | + if (globalValue) { | |
| 7050 | + _context.next = 3; | |
| 7051 | + break; | |
| 7052 | + } | |
| 7053 | + | |
| 7054 | + return _context.abrupt("return"); | |
| 7055 | + | |
| 7056 | + case 3: | |
| 7057 | + return _context.abrupt("return", $e.run('document/globals/unlink', { | |
| 7058 | + container: container, | |
| 7059 | + options: { | |
| 7060 | + external: true | |
| 7061 | + }, | |
| 7062 | + globalValue: globalValue, | |
| 7063 | + setting: globalKey | |
| 7064 | + })); | |
| 7065 | + | |
| 7066 | + case 4: | |
| 7067 | + case "end": | |
| 7068 | + return _context.stop(); | |
| 7069 | + } | |
| 7070 | + } | |
| 7071 | + }, _callee); | |
| 7072 | + })); | |
| 7073 | + | |
| 7074 | + return function (_x3) { | |
| 7075 | + return _ref3.apply(this, arguments); | |
| 7076 | + }; | |
| 7077 | + }()); | |
| 7078 | + _context2.next = 6; | |
| 7079 | + return _promise.default.all(promises); | |
| 7080 | + | |
| 7081 | + case 6: | |
| 7082 | + // Clear globals. | |
| 7083 | + (0, _keys.default)(settings).forEach(function (setting) { | |
| 7084 | + return container.globals.set(setting, ''); | |
| 7085 | + }); | |
| 7086 | + $e.internal('document/elements/set-settings', { | |
| 7087 | + container: container, | |
| 7088 | + settings: { | |
| 7089 | + __globals__: container.globals.toJSON() | |
| 7090 | + }, | |
| 7091 | + options: { | |
| 7092 | + renderUI: true | |
| 7093 | + } | |
| 7094 | + }); | |
| 7095 | + | |
| 7096 | + case 8: | |
| 7097 | + case "end": | |
| 7098 | + return _context2.stop(); | |
| 7099 | + } | |
| 7100 | + } | |
| 7101 | + }, _callee2); | |
| 7102 | + })); | |
| 7103 | + | |
| 7104 | + return function (_x2) { | |
| 7105 | + return _ref.apply(this, arguments); | |
| 7106 | + }; | |
| 7107 | + }()); | |
| 7108 | + _context3.next = 4; | |
| 7109 | + return _promise.default.all(all); | |
| 7110 | + | |
| 7111 | + case 4: | |
| 7112 | + case "end": | |
| 7113 | + return _context3.stop(); | |
| 7114 | + } | |
| 7115 | + } | |
| 7116 | + }, _callee3); | |
| 7117 | + })); | |
| 7118 | + | |
| 7119 | + function apply(_x) { | |
| 7120 | + return _apply.apply(this, arguments); | |
| 7121 | + } | |
| 7122 | + | |
| 7123 | + return apply; | |
| 7124 | + }() | |
| 7125 | + }]); | |
| 7126 | + return Disable; | |
| 7127 | +}(_disableEnable.default); | |
| 7128 | + | |
| 7129 | +exports.Disable = Disable; | |
| 7130 | +var _default = Disable; | |
| 7131 | +exports["default"] = _default; | |
| 7132 | + | |
| 7133 | +/***/ }), | |
| 7134 | + | |
| 7135 | +/***/ "../assets/dev/js/editor/document/globals/commands/enable.js": | |
| 7136 | +/*!*******************************************************************!*\ | |
| 7137 | + !*** ../assets/dev/js/editor/document/globals/commands/enable.js ***! | |
| 7138 | + \*******************************************************************/ | |
| 7139 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 7140 | + | |
| 7141 | +"use strict"; | |
| 7142 | + | |
| 7143 | + | |
| 7144 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 7145 | + | |
| 7146 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 7147 | + | |
| 7148 | +_Object$defineProperty(exports, "__esModule", { | |
| 7149 | + value: true | |
| 7150 | +}); | |
| 7151 | + | |
| 7152 | +exports["default"] = exports.Enable = void 0; | |
| 7153 | + | |
| 7154 | +__webpack_require__(/*! core-js/modules/es6.function.name.js */ "../node_modules/core-js/modules/es6.function.name.js"); | |
| 7155 | + | |
| 7156 | +var _values = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "../node_modules/@babel/runtime-corejs2/core-js/object/values.js")); | |
| 7157 | + | |
| 7158 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 7159 | + | |
| 7160 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 7161 | + | |
| 7162 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 7163 | + | |
| 7164 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 7165 | + | |
| 7166 | +var _disableEnable = _interopRequireDefault(__webpack_require__(/*! ./base/disable-enable */ "../assets/dev/js/editor/document/globals/commands/base/disable-enable.js")); | |
| 7167 | + | |
| 7168 | +// Run when a global control value is chosen while the active value is custom. | |
| 7169 | +var Enable = /*#__PURE__*/function (_DisableEnable) { | |
| 7170 | + (0, _inherits2.default)(Enable, _DisableEnable); | |
| 7171 | + | |
| 7172 | + var _super = (0, _createSuper2.default)(Enable); | |
| 7173 | + | |
| 7174 | + function Enable() { | |
| 7175 | + (0, _classCallCheck2.default)(this, Enable); | |
| 7176 | + return _super.apply(this, arguments); | |
| 7177 | + } | |
| 7178 | + | |
| 7179 | + (0, _createClass2.default)(Enable, [{ | |
| 7180 | + key: "apply", | |
| 7181 | + value: function apply(args) { | |
| 7182 | + var settings = args.settings, | |
| 7183 | + _args$containers = args.containers, | |
| 7184 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 7185 | + containers.forEach(function (container) { | |
| 7186 | + container = container.lookup(); | |
| 7187 | + container.globals.set(settings); | |
| 7188 | + $e.internal('document/elements/set-settings', { | |
| 7189 | + container: container, | |
| 7190 | + settings: { | |
| 7191 | + __globals__: container.globals.toJSON() | |
| 7192 | + }, | |
| 7193 | + options: { | |
| 7194 | + renderUI: true | |
| 7195 | + } | |
| 7196 | + }); // Clear custom local settings. | |
| 7197 | + | |
| 7198 | + (0, _values.default)(container.getGroupRelatedControls(settings)).forEach(function (control) { | |
| 7199 | + container.settings.set(control.name, control.default); | |
| 7200 | + }); | |
| 7201 | + }); | |
| 7202 | + } | |
| 7203 | + }]); | |
| 7204 | + return Enable; | |
| 7205 | +}(_disableEnable.default); | |
| 7206 | + | |
| 7207 | +exports.Enable = Enable; | |
| 7208 | +var _default = Enable; | |
| 7209 | +exports["default"] = _default; | |
| 7210 | + | |
| 7211 | +/***/ }), | |
| 7212 | + | |
| 7213 | +/***/ "../assets/dev/js/editor/document/globals/commands/index.js": | |
| 7214 | +/*!******************************************************************!*\ | |
| 7215 | + !*** ../assets/dev/js/editor/document/globals/commands/index.js ***! | |
| 7216 | + \******************************************************************/ | |
| 7217 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 7218 | + | |
| 7219 | +"use strict"; | |
| 7220 | + | |
| 7221 | + | |
| 7222 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 7223 | + | |
| 7224 | +_Object$defineProperty(exports, "__esModule", { | |
| 7225 | + value: true | |
| 7226 | +}); | |
| 7227 | + | |
| 7228 | +_Object$defineProperty(exports, "Disable", { | |
| 7229 | + enumerable: true, | |
| 7230 | + get: function get() { | |
| 7231 | + return _disable.Disable; | |
| 7232 | + } | |
| 7233 | +}); | |
| 7234 | + | |
| 7235 | +_Object$defineProperty(exports, "Enable", { | |
| 7236 | + enumerable: true, | |
| 7237 | + get: function get() { | |
| 7238 | + return _enable.Enable; | |
| 7239 | + } | |
| 7240 | +}); | |
| 7241 | + | |
| 7242 | +_Object$defineProperty(exports, "Settings", { | |
| 7243 | + enumerable: true, | |
| 7244 | + get: function get() { | |
| 7245 | + return _settings.Settings; | |
| 7246 | + } | |
| 7247 | +}); | |
| 7248 | + | |
| 7249 | +_Object$defineProperty(exports, "Unlink", { | |
| 7250 | + enumerable: true, | |
| 7251 | + get: function get() { | |
| 7252 | + return _unlink.Unlink; | |
| 7253 | + } | |
| 7254 | +}); | |
| 7255 | + | |
| 7256 | +var _disable = __webpack_require__(/*! ./disable */ "../assets/dev/js/editor/document/globals/commands/disable.js"); | |
| 7257 | + | |
| 7258 | +var _enable = __webpack_require__(/*! ./enable */ "../assets/dev/js/editor/document/globals/commands/enable.js"); | |
| 7259 | + | |
| 7260 | +var _settings = __webpack_require__(/*! ./settings */ "../assets/dev/js/editor/document/globals/commands/settings.js"); | |
| 7261 | + | |
| 7262 | +var _unlink = __webpack_require__(/*! ./unlink */ "../assets/dev/js/editor/document/globals/commands/unlink.js"); | |
| 7263 | + | |
| 7264 | +/***/ }), | |
| 7265 | + | |
| 7266 | +/***/ "../assets/dev/js/editor/document/globals/commands/settings.js": | |
| 7267 | +/*!*********************************************************************!*\ | |
| 7268 | + !*** ../assets/dev/js/editor/document/globals/commands/settings.js ***! | |
| 7269 | + \*********************************************************************/ | |
| 7270 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 7271 | + | |
| 7272 | +"use strict"; | |
| 7273 | + | |
| 7274 | + | |
| 7275 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 7276 | + | |
| 7277 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 7278 | + | |
| 7279 | +_Object$defineProperty(exports, "__esModule", { | |
| 7280 | + value: true | |
| 7281 | +}); | |
| 7282 | + | |
| 7283 | +exports["default"] = exports.Settings = void 0; | |
| 7284 | + | |
| 7285 | +var _keys = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js")); | |
| 7286 | + | |
| 7287 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 7288 | + | |
| 7289 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 7290 | + | |
| 7291 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 7292 | + | |
| 7293 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 7294 | + | |
| 7295 | +var _commandHistoryDebounce = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history-debounce */ "../assets/dev/js/editor/document/commands/base/command-history-debounce.js")); | |
| 7296 | + | |
| 7297 | +var _settings = _interopRequireDefault(__webpack_require__(/*! elementor-document/elements/commands/settings */ "../assets/dev/js/editor/document/elements/commands/settings.js")); | |
| 7298 | + | |
| 7299 | +var Settings = /*#__PURE__*/function (_CommandHistoryDeboun) { | |
| 7300 | + (0, _inherits2.default)(Settings, _CommandHistoryDeboun); | |
| 7301 | + | |
| 7302 | + var _super = (0, _createSuper2.default)(Settings); | |
| 7303 | + | |
| 7304 | + function Settings() { | |
| 7305 | + (0, _classCallCheck2.default)(this, Settings); | |
| 7306 | + return _super.apply(this, arguments); | |
| 7307 | + } | |
| 7308 | + | |
| 7309 | + (0, _createClass2.default)(Settings, [{ | |
| 7310 | + key: "validateArgs", | |
| 7311 | + value: function validateArgs(args) { | |
| 7312 | + this.requireContainer(args); | |
| 7313 | + this.requireArgumentConstructor('settings', Object, args); | |
| 7314 | + } | |
| 7315 | + }, { | |
| 7316 | + key: "getHistory", | |
| 7317 | + value: function getHistory(args) { | |
| 7318 | + var settings = args.settings, | |
| 7319 | + _args$containers = args.containers, | |
| 7320 | + containers = _args$containers === void 0 ? [args.container] : _args$containers, | |
| 7321 | + changes = {}; | |
| 7322 | + containers.forEach(function (container) { | |
| 7323 | + var id = container.id; | |
| 7324 | + | |
| 7325 | + if (!changes[id]) { | |
| 7326 | + changes[id] = {}; | |
| 7327 | + } | |
| 7328 | + | |
| 7329 | + changes[id] = { | |
| 7330 | + old: container.globals.toJSON(), | |
| 7331 | + new: settings | |
| 7332 | + }; | |
| 7333 | + }); | |
| 7334 | + | |
| 7335 | + var subTitle = _settings.default.getSubTitle(args); | |
| 7336 | + | |
| 7337 | + return { | |
| 7338 | + containers: containers, | |
| 7339 | + subTitle: subTitle, | |
| 7340 | + data: { | |
| 7341 | + changes: changes | |
| 7342 | + }, | |
| 7343 | + type: 'change', | |
| 7344 | + restore: this.constructor.restore | |
| 7345 | + }; | |
| 7346 | + } | |
| 7347 | + }, { | |
| 7348 | + key: "apply", | |
| 7349 | + value: function apply(args) { | |
| 7350 | + var settings = args.settings, | |
| 7351 | + _args$containers2 = args.containers, | |
| 7352 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2, | |
| 7353 | + _args$options = args.options, | |
| 7354 | + options = _args$options === void 0 ? {} : _args$options; | |
| 7355 | + containers.forEach(function (container) { | |
| 7356 | + container = container.lookup(); | |
| 7357 | + | |
| 7358 | + if (!(0, _keys.default)(settings).length) { | |
| 7359 | + container.globals.clear(); | |
| 7360 | + } else { | |
| 7361 | + container.globals.set(settings); | |
| 7362 | + } | |
| 7363 | + | |
| 7364 | + $e.internal('document/elements/set-settings', { | |
| 7365 | + container: container, | |
| 7366 | + options: options, | |
| 7367 | + settings: { | |
| 7368 | + __globals__: container.globals.toJSON() | |
| 7369 | + } | |
| 7370 | + }); | |
| 7371 | + }); | |
| 7372 | + } | |
| 7373 | + }, { | |
| 7374 | + key: "isDataChanged", | |
| 7375 | + value: function isDataChanged() { | |
| 7376 | + return true; | |
| 7377 | + } | |
| 7378 | + }], [{ | |
| 7379 | + key: "restore", | |
| 7380 | + value: function restore(historyItem, isRedo) { | |
| 7381 | + var data = historyItem.get('data'); | |
| 7382 | + historyItem.get('containers').forEach(function (container) { | |
| 7383 | + var changes = data.changes[container.id]; | |
| 7384 | + $e.run('document/globals/settings', { | |
| 7385 | + container: container, | |
| 7386 | + settings: isRedo ? changes.new : changes.old | |
| 7387 | + }); | |
| 7388 | + container.panel.refresh(); | |
| 7389 | + }); | |
| 7390 | + } | |
| 7391 | + }]); | |
| 7392 | + return Settings; | |
| 7393 | +}(_commandHistoryDebounce.default); | |
| 7394 | + | |
| 7395 | +exports.Settings = Settings; | |
| 7396 | +var _default = Settings; | |
| 7397 | +exports["default"] = _default; | |
| 7398 | + | |
| 7399 | +/***/ }), | |
| 7400 | + | |
| 7401 | +/***/ "../assets/dev/js/editor/document/globals/commands/unlink.js": | |
| 7402 | +/*!*******************************************************************!*\ | |
| 7403 | + !*** ../assets/dev/js/editor/document/globals/commands/unlink.js ***! | |
| 7404 | + \*******************************************************************/ | |
| 7405 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 7406 | + | |
| 7407 | +"use strict"; | |
| 7408 | + | |
| 7409 | + | |
| 7410 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 7411 | + | |
| 7412 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 7413 | + | |
| 7414 | +_Object$defineProperty(exports, "__esModule", { | |
| 7415 | + value: true | |
| 7416 | +}); | |
| 7417 | + | |
| 7418 | +exports["default"] = exports.Unlink = void 0; | |
| 7419 | + | |
| 7420 | +var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 7421 | + | |
| 7422 | +var _promise = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/promise */ "../node_modules/@babel/runtime-corejs2/core-js/promise.js")); | |
| 7423 | + | |
| 7424 | +var _entries = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/entries */ "../node_modules/@babel/runtime-corejs2/core-js/object/entries.js")); | |
| 7425 | + | |
| 7426 | +var _keys = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js")); | |
| 7427 | + | |
| 7428 | +__webpack_require__(/*! core-js/modules/es6.string.iterator.js */ "../node_modules/core-js/modules/es6.string.iterator.js"); | |
| 7429 | + | |
| 7430 | +__webpack_require__(/*! core-js/modules/es6.object.to-string.js */ "../node_modules/core-js/modules/es6.object.to-string.js"); | |
| 7431 | + | |
| 7432 | +__webpack_require__(/*! core-js/modules/es6.array.iterator.js */ "../node_modules/core-js/modules/es6.array.iterator.js"); | |
| 7433 | + | |
| 7434 | +__webpack_require__(/*! core-js/modules/web.dom.iterable.js */ "../node_modules/core-js/modules/web.dom.iterable.js"); | |
| 7435 | + | |
| 7436 | +__webpack_require__(/*! core-js/modules/es6.array.map.js */ "../node_modules/core-js/modules/es6.array.map.js"); | |
| 7437 | + | |
| 7438 | +__webpack_require__(/*! core-js/modules/es6.regexp.replace.js */ "../node_modules/core-js/modules/es6.regexp.replace.js"); | |
| 7439 | + | |
| 7440 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/slicedToArray */ "../node_modules/@babel/runtime-corejs2/helpers/slicedToArray.js")); | |
| 7441 | + | |
| 7442 | +var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/asyncToGenerator */ "../node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js")); | |
| 7443 | + | |
| 7444 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 7445 | + | |
| 7446 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 7447 | + | |
| 7448 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 7449 | + | |
| 7450 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 7451 | + | |
| 7452 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 7453 | + | |
| 7454 | +// TODO: Add dev-tools CSS to see if widget have globals. | |
| 7455 | +var Unlink = /*#__PURE__*/function (_CommandBase) { | |
| 7456 | + (0, _inherits2.default)(Unlink, _CommandBase); | |
| 7457 | + | |
| 7458 | + var _super = (0, _createSuper2.default)(Unlink); | |
| 7459 | + | |
| 7460 | + function Unlink() { | |
| 7461 | + (0, _classCallCheck2.default)(this, Unlink); | |
| 7462 | + return _super.apply(this, arguments); | |
| 7463 | + } | |
| 7464 | + | |
| 7465 | + (0, _createClass2.default)(Unlink, [{ | |
| 7466 | + key: "validateArgs", | |
| 7467 | + value: function validateArgs() { | |
| 7468 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 7469 | + this.requireContainer(args); | |
| 7470 | + this.requireArgumentType('setting', 'string', args); | |
| 7471 | + this.requireArgumentType('globalValue', 'string', args); // TODO: validate global value is command format. | |
| 7472 | + } | |
| 7473 | + }, { | |
| 7474 | + key: "apply", | |
| 7475 | + value: function () { | |
| 7476 | + var _apply = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(args) { | |
| 7477 | + var _args$containers, containers, setting, globalValue, _args$options, options, localSettings; | |
| 7478 | + | |
| 7479 | + return _regenerator.default.wrap(function _callee2$(_context2) { | |
| 7480 | + while (1) { | |
| 7481 | + switch (_context2.prev = _context2.next) { | |
| 7482 | + case 0: | |
| 7483 | + _args$containers = args.containers, containers = _args$containers === void 0 ? [args.container] : _args$containers, setting = args.setting, globalValue = args.globalValue, _args$options = args.options, options = _args$options === void 0 ? {} : _args$options, localSettings = {}; | |
| 7484 | + _context2.next = 3; | |
| 7485 | + return _promise.default.all(containers.map( /*#__PURE__*/function () { | |
| 7486 | + var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee( | |
| 7487 | + /* Container */ | |
| 7488 | + container) { | |
| 7489 | + var result, _container$controls$s, value, groupPrefix; | |
| 7490 | + | |
| 7491 | + return _regenerator.default.wrap(function _callee$(_context) { | |
| 7492 | + while (1) { | |
| 7493 | + switch (_context.prev = _context.next) { | |
| 7494 | + case 0: | |
| 7495 | + _context.next = 2; | |
| 7496 | + return $e.data.get(globalValue); | |
| 7497 | + | |
| 7498 | + case 2: | |
| 7499 | + result = _context.sent; | |
| 7500 | + | |
| 7501 | + if (result) { | |
| 7502 | + // Prepare global value to mapping. | |
| 7503 | + value = result.data.value, groupPrefix = (_container$controls$s = container.controls[setting]) === null || _container$controls$s === void 0 ? void 0 : _container$controls$s.groupPrefix; | |
| 7504 | + | |
| 7505 | + if (groupPrefix) { | |
| 7506 | + (0, _entries.default)(value).forEach(function (_ref2) { | |
| 7507 | + var _ref3 = (0, _slicedToArray2.default)(_ref2, 2), | |
| 7508 | + dataKey = _ref3[0], | |
| 7509 | + dataValue = _ref3[1]; | |
| 7510 | + | |
| 7511 | + dataKey = dataKey.replace(elementor.config.kit_config.typography_prefix, groupPrefix); | |
| 7512 | + localSettings[dataKey] = dataValue; | |
| 7513 | + }); | |
| 7514 | + } else { | |
| 7515 | + localSettings[setting] = value; | |
| 7516 | + } | |
| 7517 | + } | |
| 7518 | + | |
| 7519 | + return _context.abrupt("return", _promise.default.resolve()); | |
| 7520 | + | |
| 7521 | + case 5: | |
| 7522 | + case "end": | |
| 7523 | + return _context.stop(); | |
| 7524 | + } | |
| 7525 | + } | |
| 7526 | + }, _callee); | |
| 7527 | + })); | |
| 7528 | + | |
| 7529 | + return function (_x2) { | |
| 7530 | + return _ref.apply(this, arguments); | |
| 7531 | + }; | |
| 7532 | + }())); | |
| 7533 | + | |
| 7534 | + case 3: | |
| 7535 | + // Restore globals settings as custom local settings. | |
| 7536 | + if ((0, _keys.default)(localSettings).length) { | |
| 7537 | + $e.run('document/elements/settings', { | |
| 7538 | + containers: containers, | |
| 7539 | + options: options, | |
| 7540 | + settings: localSettings | |
| 7541 | + }); | |
| 7542 | + } | |
| 7543 | + | |
| 7544 | + case 4: | |
| 7545 | + case "end": | |
| 7546 | + return _context2.stop(); | |
| 7547 | + } | |
| 7548 | + } | |
| 7549 | + }, _callee2); | |
| 7550 | + })); | |
| 7551 | + | |
| 7552 | + function apply(_x) { | |
| 7553 | + return _apply.apply(this, arguments); | |
| 7554 | + } | |
| 7555 | + | |
| 7556 | + return apply; | |
| 7557 | + }() | |
| 7558 | + }, { | |
| 7559 | + key: "isDataChanged", | |
| 7560 | + value: function isDataChanged() { | |
| 7561 | + return true; | |
| 7562 | + } | |
| 7563 | + }]); | |
| 7564 | + return Unlink; | |
| 7565 | +}(_commandBase.default); | |
| 7566 | + | |
| 7567 | +exports.Unlink = Unlink; | |
| 7568 | +var _default = Unlink; | |
| 7569 | +exports["default"] = _default; | |
| 7570 | + | |
| 7571 | +/***/ }), | |
| 7572 | + | |
| 7573 | +/***/ "../assets/dev/js/editor/document/globals/component.js": | |
| 7574 | +/*!*************************************************************!*\ | |
| 7575 | + !*** ../assets/dev/js/editor/document/globals/component.js ***! | |
| 7576 | + \*************************************************************/ | |
| 7577 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 7578 | + | |
| 7579 | +"use strict"; | |
| 7580 | + | |
| 7581 | + | |
| 7582 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 7583 | + | |
| 7584 | +var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireWildcard */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js"); | |
| 7585 | + | |
| 7586 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 7587 | + | |
| 7588 | +_Object$defineProperty(exports, "__esModule", { | |
| 7589 | + value: true | |
| 7590 | +}); | |
| 7591 | + | |
| 7592 | +exports["default"] = void 0; | |
| 7593 | + | |
| 7594 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 7595 | + | |
| 7596 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 7597 | + | |
| 7598 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 7599 | + | |
| 7600 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 7601 | + | |
| 7602 | +var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../core/common/assets/js/api/modules/component-base.js")); | |
| 7603 | + | |
| 7604 | +var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../assets/dev/js/editor/document/globals/commands/index.js")); | |
| 7605 | + | |
| 7606 | +var Component = /*#__PURE__*/function (_ComponentBase) { | |
| 7607 | + (0, _inherits2.default)(Component, _ComponentBase); | |
| 7608 | + | |
| 7609 | + var _super = (0, _createSuper2.default)(Component); | |
| 7610 | + | |
| 7611 | + function Component() { | |
| 7612 | + (0, _classCallCheck2.default)(this, Component); | |
| 7613 | + return _super.apply(this, arguments); | |
| 7614 | + } | |
| 7615 | + | |
| 7616 | + (0, _createClass2.default)(Component, [{ | |
| 7617 | + key: "getNamespace", | |
| 7618 | + value: function getNamespace() { | |
| 7619 | + return 'document/globals'; | |
| 7620 | + } | |
| 7621 | + }, { | |
| 7622 | + key: "defaultCommands", | |
| 7623 | + value: function defaultCommands() { | |
| 7624 | + return this.importCommands(commands); | |
| 7625 | + } | |
| 7626 | + }]); | |
| 7627 | + return Component; | |
| 7628 | +}(_componentBase.default); | |
| 7629 | + | |
| 7630 | +exports["default"] = Component; | |
| 7631 | + | |
| 7632 | +/***/ }), | |
| 7633 | + | |
| 7634 | +/***/ "../assets/dev/js/editor/document/history/commands/base/base.js": | |
| 7635 | +/*!**********************************************************************!*\ | |
| 7636 | + !*** ../assets/dev/js/editor/document/history/commands/base/base.js ***! | |
| 7637 | + \**********************************************************************/ | |
| 7638 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 7639 | + | |
| 7640 | +"use strict"; | |
| 7641 | + | |
| 7642 | + | |
| 7643 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 7644 | + | |
| 7645 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 7646 | + | |
| 7647 | +_Object$defineProperty(exports, "__esModule", { | |
| 7648 | + value: true | |
| 7649 | +}); | |
| 7650 | + | |
| 7651 | +exports["default"] = void 0; | |
| 7652 | + | |
| 7653 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 7654 | + | |
| 7655 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 7656 | + | |
| 7657 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 7658 | + | |
| 7659 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 7660 | + | |
| 7661 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 7662 | + | |
| 7663 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 7664 | + | |
| 7665 | +var _commandInternalBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-internal-base */ "../core/common/assets/js/api/modules/command-internal-base.js")); | |
| 7666 | + | |
| 7667 | +var Base = /*#__PURE__*/function (_CommandInternalBase) { | |
| 7668 | + (0, _inherits2.default)(Base, _CommandInternalBase); | |
| 7669 | + | |
| 7670 | + var _super = (0, _createSuper2.default)(Base); | |
| 7671 | + | |
| 7672 | + function Base() { | |
| 7673 | + (0, _classCallCheck2.default)(this, Base); | |
| 7674 | + return _super.apply(this, arguments); | |
| 7675 | + } | |
| 7676 | + | |
| 7677 | + (0, _createClass2.default)(Base, [{ | |
| 7678 | + key: "initialize", | |
| 7679 | + value: function initialize(args) { | |
| 7680 | + (0, _get2.default)((0, _getPrototypeOf2.default)(Base.prototype), "initialize", this).call(this, args); | |
| 7681 | + /** | |
| 7682 | + * @type {HistoryManager} | |
| 7683 | + */ | |
| 7684 | + | |
| 7685 | + this.history = elementor.documents.getCurrent().history; | |
| 7686 | + } | |
| 7687 | + }]); | |
| 7688 | + return Base; | |
| 7689 | +}(_commandInternalBase.default); | |
| 7690 | + | |
| 7691 | +exports["default"] = Base; | |
| 7692 | + | |
| 7693 | +/***/ }), | |
| 7694 | + | |
| 7695 | +/***/ "../assets/dev/js/editor/document/history/commands/do.js": | |
| 7696 | +/*!***************************************************************!*\ | |
| 7697 | + !*** ../assets/dev/js/editor/document/history/commands/do.js ***! | |
| 7698 | + \***************************************************************/ | |
| 7699 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 7700 | + | |
| 7701 | +"use strict"; | |
| 7702 | + | |
| 7703 | + | |
| 7704 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 7705 | + | |
| 7706 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 7707 | + | |
| 7708 | +_Object$defineProperty(exports, "__esModule", { | |
| 7709 | + value: true | |
| 7710 | +}); | |
| 7711 | + | |
| 7712 | +exports["default"] = exports.Do = void 0; | |
| 7713 | + | |
| 7714 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 7715 | + | |
| 7716 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 7717 | + | |
| 7718 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 7719 | + | |
| 7720 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 7721 | + | |
| 7722 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 7723 | + | |
| 7724 | +var Do = /*#__PURE__*/function (_CommandBase) { | |
| 7725 | + (0, _inherits2.default)(Do, _CommandBase); | |
| 7726 | + | |
| 7727 | + var _super = (0, _createSuper2.default)(Do); | |
| 7728 | + | |
| 7729 | + function Do() { | |
| 7730 | + (0, _classCallCheck2.default)(this, Do); | |
| 7731 | + return _super.apply(this, arguments); | |
| 7732 | + } | |
| 7733 | + | |
| 7734 | + (0, _createClass2.default)(Do, [{ | |
| 7735 | + key: "apply", | |
| 7736 | + value: function apply(args) { | |
| 7737 | + var index = args.index; | |
| 7738 | + return elementor.documents.getCurrent().history.doItem(index); | |
| 7739 | + } | |
| 7740 | + }]); | |
| 7741 | + return Do; | |
| 7742 | +}(_commandBase.default); | |
| 7743 | + | |
| 7744 | +exports.Do = Do; | |
| 7745 | +var _default = Do; | |
| 7746 | +exports["default"] = _default; | |
| 7747 | + | |
| 7748 | +/***/ }), | |
| 7749 | + | |
| 7750 | +/***/ "../assets/dev/js/editor/document/history/commands/index.js": | |
| 7751 | +/*!******************************************************************!*\ | |
| 7752 | + !*** ../assets/dev/js/editor/document/history/commands/index.js ***! | |
| 7753 | + \******************************************************************/ | |
| 7754 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 7755 | + | |
| 7756 | +"use strict"; | |
| 7757 | + | |
| 7758 | + | |
| 7759 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 7760 | + | |
| 7761 | +_Object$defineProperty(exports, "__esModule", { | |
| 7762 | + value: true | |
| 7763 | +}); | |
| 7764 | + | |
| 7765 | +_Object$defineProperty(exports, "Do", { | |
| 7766 | + enumerable: true, | |
| 7767 | + get: function get() { | |
| 7768 | + return _do.Do; | |
| 7769 | + } | |
| 7770 | +}); | |
| 7771 | + | |
| 7772 | +_Object$defineProperty(exports, "Redo", { | |
| 7773 | + enumerable: true, | |
| 7774 | + get: function get() { | |
| 7775 | + return _redo.Redo; | |
| 7776 | + } | |
| 7777 | +}); | |
| 7778 | + | |
| 7779 | +_Object$defineProperty(exports, "Undo", { | |
| 7780 | + enumerable: true, | |
| 7781 | + get: function get() { | |
| 7782 | + return _undo.Undo; | |
| 7783 | + } | |
| 7784 | +}); | |
| 7785 | + | |
| 7786 | +_Object$defineProperty(exports, "UndoAll", { | |
| 7787 | + enumerable: true, | |
| 7788 | + get: function get() { | |
| 7789 | + return _undoAll.UndoAll; | |
| 7790 | + } | |
| 7791 | +}); | |
| 7792 | + | |
| 7793 | +var _do = __webpack_require__(/*! ./do */ "../assets/dev/js/editor/document/history/commands/do.js"); | |
| 7794 | + | |
| 7795 | +var _redo = __webpack_require__(/*! ./redo */ "../assets/dev/js/editor/document/history/commands/redo.js"); | |
| 7796 | + | |
| 7797 | +var _undo = __webpack_require__(/*! ./undo */ "../assets/dev/js/editor/document/history/commands/undo.js"); | |
| 7798 | + | |
| 7799 | +var _undoAll = __webpack_require__(/*! ./undo-all */ "../assets/dev/js/editor/document/history/commands/undo-all.js"); | |
| 7800 | + | |
| 7801 | +/***/ }), | |
| 7802 | + | |
| 7803 | +/***/ "../assets/dev/js/editor/document/history/commands/internal/add-transaction.js": | |
| 7804 | +/*!*************************************************************************************!*\ | |
| 7805 | + !*** ../assets/dev/js/editor/document/history/commands/internal/add-transaction.js ***! | |
| 7806 | + \*************************************************************************************/ | |
| 7807 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 7808 | + | |
| 7809 | +"use strict"; | |
| 7810 | + | |
| 7811 | + | |
| 7812 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 7813 | + | |
| 7814 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 7815 | + | |
| 7816 | +_Object$defineProperty(exports, "__esModule", { | |
| 7817 | + value: true | |
| 7818 | +}); | |
| 7819 | + | |
| 7820 | +exports["default"] = exports.AddTransaction = void 0; | |
| 7821 | + | |
| 7822 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 7823 | + | |
| 7824 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 7825 | + | |
| 7826 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 7827 | + | |
| 7828 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 7829 | + | |
| 7830 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 7831 | + | |
| 7832 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 7833 | + | |
| 7834 | +var _base = _interopRequireDefault(__webpack_require__(/*! ../base/base */ "../assets/dev/js/editor/document/history/commands/base/base.js")); | |
| 7835 | + | |
| 7836 | +var AddTransaction = /*#__PURE__*/function (_Base) { | |
| 7837 | + (0, _inherits2.default)(AddTransaction, _Base); | |
| 7838 | + | |
| 7839 | + var _super = (0, _createSuper2.default)(AddTransaction); | |
| 7840 | + | |
| 7841 | + function AddTransaction() { | |
| 7842 | + (0, _classCallCheck2.default)(this, AddTransaction); | |
| 7843 | + return _super.apply(this, arguments); | |
| 7844 | + } | |
| 7845 | + | |
| 7846 | + (0, _createClass2.default)(AddTransaction, [{ | |
| 7847 | + key: "initialize", | |
| 7848 | + value: function initialize(args) { | |
| 7849 | + (0, _get2.default)((0, _getPrototypeOf2.default)(AddTransaction.prototype), "initialize", this).call(this, args); | |
| 7850 | + /** | |
| 7851 | + * Debounce always send 'add-transaction' with title & subTitle, when the transaction | |
| 7852 | + * already started, there is no need to save those args they are useless. | |
| 7853 | + */ | |
| 7854 | + | |
| 7855 | + if (this.component.isTransactionStarted()) { | |
| 7856 | + delete args.title; | |
| 7857 | + delete args.subTitle; | |
| 7858 | + } | |
| 7859 | + } | |
| 7860 | + }, { | |
| 7861 | + key: "validateArgs", | |
| 7862 | + value: function validateArgs(args) { | |
| 7863 | + this.requireContainer(); | |
| 7864 | + this.requireArgumentType('type', 'string', args); | |
| 7865 | + } | |
| 7866 | + }, { | |
| 7867 | + key: "apply", | |
| 7868 | + value: function apply(args) { | |
| 7869 | + var currentId = this.history.getCurrentId(); | |
| 7870 | + | |
| 7871 | + if (currentId) { | |
| 7872 | + // If log already started chain his historyId. | |
| 7873 | + args.id = currentId; | |
| 7874 | + } | |
| 7875 | + | |
| 7876 | + args = this.component.normalizeLogTitle(args); | |
| 7877 | + this.component.transactions.push(args); | |
| 7878 | + } | |
| 7879 | + }]); | |
| 7880 | + return AddTransaction; | |
| 7881 | +}(_base.default); | |
| 7882 | + | |
| 7883 | +exports.AddTransaction = AddTransaction; | |
| 7884 | +var _default = AddTransaction; | |
| 7885 | +exports["default"] = _default; | |
| 7886 | + | |
| 7887 | +/***/ }), | |
| 7888 | + | |
| 7889 | +/***/ "../assets/dev/js/editor/document/history/commands/internal/clear-transaction.js": | |
| 258 | 7890 | /*!***************************************************************************************!*\ |
| 259 | - !*** ../assets/dev/js/editor/document/command-bases/command-history-debounce-base.js ***! | |
| 7891 | + !*** ../assets/dev/js/editor/document/history/commands/internal/clear-transaction.js ***! | |
| 260 | 7892 | \***************************************************************************************/ |
| 261 | 7893 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 262 | 7894 | |
| 263 | 7895 | "use strict"; |
| @@ -262,157 +7894,9133 @@ | ||
| 262 | 7894 | |
| 263 | 7895 | "use strict"; |
| 264 | 7896 | |
| 265 | 7897 | |
| 266 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 267 | -Object.defineProperty(exports, "__esModule", ({ | |
| 7898 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 7899 | + | |
| 7900 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 7901 | + | |
| 7902 | +_Object$defineProperty(exports, "__esModule", { | |
| 268 | 7903 | value: true |
| 269 | -})); | |
| 270 | -exports.getDefaultDebounceDelay = exports["default"] = exports.DEFAULT_DEBOUNCE_DELAY = void 0; | |
| 271 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 272 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 273 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 274 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 275 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 276 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 277 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 278 | -var _commandHistoryBase = _interopRequireDefault(__webpack_require__(/*! ./command-history-base */ "../assets/dev/js/editor/document/command-bases/command-history-base.js")); | |
| 279 | -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)); } | |
| 280 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 281 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 282 | -var DEFAULT_DEBOUNCE_DELAY = exports.DEFAULT_DEBOUNCE_DELAY = 800; | |
| 7904 | +}); | |
| 283 | 7905 | |
| 284 | -/** | |
| 285 | - * Function getDefaultDebounceDelay(). | |
| 286 | - * | |
| 287 | - * Returns default debounce delay time, if exists in config override. | |
| 288 | - * | |
| 289 | - * @return {number} default debounce delay time | |
| 290 | - */ | |
| 291 | -var getDefaultDebounceDelay = exports.getDefaultDebounceDelay = function getDefaultDebounceDelay() { | |
| 292 | - var result = DEFAULT_DEBOUNCE_DELAY; | |
| 293 | - if (elementor.config.document && undefined !== elementor.config.document.debounceDelay) { | |
| 294 | - result = elementor.config.document.debounceDelay; | |
| 7906 | +exports["default"] = exports.ClearTransaction = void 0; | |
| 7907 | + | |
| 7908 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 7909 | + | |
| 7910 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 7911 | + | |
| 7912 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 7913 | + | |
| 7914 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 7915 | + | |
| 7916 | +var _base = _interopRequireDefault(__webpack_require__(/*! ../base/base */ "../assets/dev/js/editor/document/history/commands/base/base.js")); | |
| 7917 | + | |
| 7918 | +var ClearTransaction = /*#__PURE__*/function (_Base) { | |
| 7919 | + (0, _inherits2.default)(ClearTransaction, _Base); | |
| 7920 | + | |
| 7921 | + var _super = (0, _createSuper2.default)(ClearTransaction); | |
| 7922 | + | |
| 7923 | + function ClearTransaction() { | |
| 7924 | + (0, _classCallCheck2.default)(this, ClearTransaction); | |
| 7925 | + return _super.apply(this, arguments); | |
| 295 | 7926 | } |
| 296 | - return result; | |
| 297 | -}; | |
| 298 | 7927 | |
| 299 | -/** | |
| 300 | - * @name $e.modules.editor.document.CommandHistoryDebounceBase | |
| 301 | - */ | |
| 302 | -var CommandHistoryDebounceBase = exports["default"] = /*#__PURE__*/function (_CommandHistoryBase) { | |
| 303 | - function CommandHistoryDebounceBase() { | |
| 304 | - (0, _classCallCheck2.default)(this, CommandHistoryDebounceBase); | |
| 305 | - return _callSuper(this, CommandHistoryDebounceBase, arguments); | |
| 7928 | + (0, _createClass2.default)(ClearTransaction, [{ | |
| 7929 | + key: "apply", | |
| 7930 | + value: function apply() { | |
| 7931 | + this.component.transactions = []; | |
| 7932 | + } | |
| 7933 | + }]); | |
| 7934 | + return ClearTransaction; | |
| 7935 | +}(_base.default); | |
| 7936 | + | |
| 7937 | +exports.ClearTransaction = ClearTransaction; | |
| 7938 | +var _default = ClearTransaction; | |
| 7939 | +exports["default"] = _default; | |
| 7940 | + | |
| 7941 | +/***/ }), | |
| 7942 | + | |
| 7943 | +/***/ "../assets/dev/js/editor/document/history/commands/internal/delete-log.js": | |
| 7944 | +/*!********************************************************************************!*\ | |
| 7945 | + !*** ../assets/dev/js/editor/document/history/commands/internal/delete-log.js ***! | |
| 7946 | + \********************************************************************************/ | |
| 7947 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 7948 | + | |
| 7949 | +"use strict"; | |
| 7950 | + | |
| 7951 | + | |
| 7952 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 7953 | + | |
| 7954 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 7955 | + | |
| 7956 | +_Object$defineProperty(exports, "__esModule", { | |
| 7957 | + value: true | |
| 7958 | +}); | |
| 7959 | + | |
| 7960 | +exports["default"] = exports.DeleteLog = void 0; | |
| 7961 | + | |
| 7962 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 7963 | + | |
| 7964 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 7965 | + | |
| 7966 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 7967 | + | |
| 7968 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 7969 | + | |
| 7970 | +var _base = _interopRequireDefault(__webpack_require__(/*! ../base/base */ "../assets/dev/js/editor/document/history/commands/base/base.js")); | |
| 7971 | + | |
| 7972 | +var DeleteLog = /*#__PURE__*/function (_Base) { | |
| 7973 | + (0, _inherits2.default)(DeleteLog, _Base); | |
| 7974 | + | |
| 7975 | + var _super = (0, _createSuper2.default)(DeleteLog); | |
| 7976 | + | |
| 7977 | + function DeleteLog() { | |
| 7978 | + (0, _classCallCheck2.default)(this, DeleteLog); | |
| 7979 | + return _super.apply(this, arguments); | |
| 306 | 7980 | } |
| 307 | - (0, _inherits2.default)(CommandHistoryDebounceBase, _CommandHistoryBase); | |
| 308 | - return (0, _createClass2.default)(CommandHistoryDebounceBase, [{ | |
| 7981 | + | |
| 7982 | + (0, _createClass2.default)(DeleteLog, [{ | |
| 7983 | + key: "apply", | |
| 7984 | + value: function apply(args) { | |
| 7985 | + if (args.id) { | |
| 7986 | + this.history.deleteItem(args.id); | |
| 7987 | + } | |
| 7988 | + } | |
| 7989 | + }]); | |
| 7990 | + return DeleteLog; | |
| 7991 | +}(_base.default); | |
| 7992 | + | |
| 7993 | +exports.DeleteLog = DeleteLog; | |
| 7994 | +var _default = DeleteLog; | |
| 7995 | +exports["default"] = _default; | |
| 7996 | + | |
| 7997 | +/***/ }), | |
| 7998 | + | |
| 7999 | +/***/ "../assets/dev/js/editor/document/history/commands/internal/end-log.js": | |
| 8000 | +/*!*****************************************************************************!*\ | |
| 8001 | + !*** ../assets/dev/js/editor/document/history/commands/internal/end-log.js ***! | |
| 8002 | + \*****************************************************************************/ | |
| 8003 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 8004 | + | |
| 8005 | +"use strict"; | |
| 8006 | + | |
| 8007 | + | |
| 8008 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 8009 | + | |
| 8010 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 8011 | + | |
| 8012 | +_Object$defineProperty(exports, "__esModule", { | |
| 8013 | + value: true | |
| 8014 | +}); | |
| 8015 | + | |
| 8016 | +exports["default"] = exports.EndLog = void 0; | |
| 8017 | + | |
| 8018 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 8019 | + | |
| 8020 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 8021 | + | |
| 8022 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 8023 | + | |
| 8024 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 8025 | + | |
| 8026 | +var _base = _interopRequireDefault(__webpack_require__(/*! ../base/base */ "../assets/dev/js/editor/document/history/commands/base/base.js")); | |
| 8027 | + | |
| 8028 | +var EndLog = /*#__PURE__*/function (_Base) { | |
| 8029 | + (0, _inherits2.default)(EndLog, _Base); | |
| 8030 | + | |
| 8031 | + var _super = (0, _createSuper2.default)(EndLog); | |
| 8032 | + | |
| 8033 | + function EndLog() { | |
| 8034 | + (0, _classCallCheck2.default)(this, EndLog); | |
| 8035 | + return _super.apply(this, arguments); | |
| 8036 | + } | |
| 8037 | + | |
| 8038 | + (0, _createClass2.default)(EndLog, [{ | |
| 8039 | + key: "apply", | |
| 8040 | + value: function apply(args) { | |
| 8041 | + if (args.id) { | |
| 8042 | + this.history.endItem(args.id); | |
| 8043 | + } | |
| 8044 | + } | |
| 8045 | + }]); | |
| 8046 | + return EndLog; | |
| 8047 | +}(_base.default); | |
| 8048 | + | |
| 8049 | +exports.EndLog = EndLog; | |
| 8050 | +var _default = EndLog; | |
| 8051 | +exports["default"] = _default; | |
| 8052 | + | |
| 8053 | +/***/ }), | |
| 8054 | + | |
| 8055 | +/***/ "../assets/dev/js/editor/document/history/commands/internal/end-transaction.js": | |
| 8056 | +/*!*************************************************************************************!*\ | |
| 8057 | + !*** ../assets/dev/js/editor/document/history/commands/internal/end-transaction.js ***! | |
| 8058 | + \*************************************************************************************/ | |
| 8059 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 8060 | + | |
| 8061 | +"use strict"; | |
| 8062 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 8063 | + | |
| 8064 | + | |
| 8065 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 8066 | + | |
| 8067 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 8068 | + | |
| 8069 | +_Object$defineProperty(exports, "__esModule", { | |
| 8070 | + value: true | |
| 8071 | +}); | |
| 8072 | + | |
| 8073 | +exports["default"] = exports.EndTransaction = void 0; | |
| 8074 | + | |
| 8075 | +var _values = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "../node_modules/@babel/runtime-corejs2/core-js/object/values.js")); | |
| 8076 | + | |
| 8077 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 8078 | + | |
| 8079 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 8080 | + | |
| 8081 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 8082 | + | |
| 8083 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 8084 | + | |
| 8085 | +var _base = _interopRequireDefault(__webpack_require__(/*! ../base/base */ "../assets/dev/js/editor/document/history/commands/base/base.js")); | |
| 8086 | + | |
| 8087 | +var EndTransaction = /*#__PURE__*/function (_Base) { | |
| 8088 | + (0, _inherits2.default)(EndTransaction, _Base); | |
| 8089 | + | |
| 8090 | + var _super = (0, _createSuper2.default)(EndTransaction); | |
| 8091 | + | |
| 8092 | + function EndTransaction() { | |
| 8093 | + (0, _classCallCheck2.default)(this, EndTransaction); | |
| 8094 | + return _super.apply(this, arguments); | |
| 8095 | + } | |
| 8096 | + | |
| 8097 | + (0, _createClass2.default)(EndTransaction, [{ | |
| 8098 | + key: "apply", | |
| 8099 | + value: function apply() { | |
| 8100 | + if (!this.component.isTransactionStarted()) { | |
| 8101 | + return; | |
| 8102 | + } | |
| 8103 | + | |
| 8104 | + var firstItem = this.component.transactions[0], | |
| 8105 | + type = firstItem.type, | |
| 8106 | + transactions = this.component.mergeTransactions(this.component.transactions); | |
| 8107 | + var _firstItem$title = firstItem.title, | |
| 8108 | + title = _firstItem$title === void 0 ? '' : _firstItem$title, | |
| 8109 | + _firstItem$subTitle = firstItem.subTitle, | |
| 8110 | + subTitle = _firstItem$subTitle === void 0 ? '' : _firstItem$subTitle; // 'elements' title for multiple containers. | |
| 8111 | + | |
| 8112 | + if (transactions.length > 1) { | |
| 8113 | + title = __('Elements', 'elementor'); | |
| 8114 | + subTitle = ''; | |
| 8115 | + } | |
| 8116 | + | |
| 8117 | + var history = { | |
| 8118 | + title: title, | |
| 8119 | + subTitle: subTitle, | |
| 8120 | + type: type | |
| 8121 | + }; // If firstItem have id already it means that log already started for that transaction. | |
| 8122 | + | |
| 8123 | + if (firstItem.id) { | |
| 8124 | + history.id = firstItem.id; | |
| 8125 | + } | |
| 8126 | + | |
| 8127 | + var historyId = $e.internal('document/history/start-log', history); | |
| 8128 | + (0, _values.default)(transactions).forEach(function (item) { | |
| 8129 | + var itemArgs = item; // If log already started chain his historyId. | |
| 8130 | + | |
| 8131 | + if (firstItem.id) { | |
| 8132 | + itemArgs.id = firstItem.id; | |
| 8133 | + } | |
| 8134 | + | |
| 8135 | + $e.internal('document/history/log-sub-item', itemArgs); | |
| 8136 | + }); | |
| 8137 | + $e.internal('document/history/end-log', { | |
| 8138 | + id: historyId | |
| 8139 | + }); // Clear transactions before leave. | |
| 8140 | + | |
| 8141 | + $e.internal('document/history/clear-transaction'); | |
| 8142 | + } | |
| 8143 | + }]); | |
| 8144 | + return EndTransaction; | |
| 8145 | +}(_base.default); | |
| 8146 | + | |
| 8147 | +exports.EndTransaction = EndTransaction; | |
| 8148 | +var _default = EndTransaction; | |
| 8149 | +exports["default"] = _default; | |
| 8150 | + | |
| 8151 | +/***/ }), | |
| 8152 | + | |
| 8153 | +/***/ "../assets/dev/js/editor/document/history/commands/internal/index.js": | |
| 8154 | +/*!***************************************************************************!*\ | |
| 8155 | + !*** ../assets/dev/js/editor/document/history/commands/internal/index.js ***! | |
| 8156 | + \***************************************************************************/ | |
| 8157 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 8158 | + | |
| 8159 | +"use strict"; | |
| 8160 | + | |
| 8161 | + | |
| 8162 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 8163 | + | |
| 8164 | +_Object$defineProperty(exports, "__esModule", { | |
| 8165 | + value: true | |
| 8166 | +}); | |
| 8167 | + | |
| 8168 | +_Object$defineProperty(exports, "AddTransaction", { | |
| 8169 | + enumerable: true, | |
| 8170 | + get: function get() { | |
| 8171 | + return _addTransaction.AddTransaction; | |
| 8172 | + } | |
| 8173 | +}); | |
| 8174 | + | |
| 8175 | +_Object$defineProperty(exports, "ClearTransaction", { | |
| 8176 | + enumerable: true, | |
| 8177 | + get: function get() { | |
| 8178 | + return _clearTransaction.ClearTransaction; | |
| 8179 | + } | |
| 8180 | +}); | |
| 8181 | + | |
| 8182 | +_Object$defineProperty(exports, "DeleteLog", { | |
| 8183 | + enumerable: true, | |
| 8184 | + get: function get() { | |
| 8185 | + return _deleteLog.DeleteLog; | |
| 8186 | + } | |
| 8187 | +}); | |
| 8188 | + | |
| 8189 | +_Object$defineProperty(exports, "EndLog", { | |
| 8190 | + enumerable: true, | |
| 8191 | + get: function get() { | |
| 8192 | + return _endLog.EndLog; | |
| 8193 | + } | |
| 8194 | +}); | |
| 8195 | + | |
| 8196 | +_Object$defineProperty(exports, "EndTransaction", { | |
| 8197 | + enumerable: true, | |
| 8198 | + get: function get() { | |
| 8199 | + return _endTransaction.EndTransaction; | |
| 8200 | + } | |
| 8201 | +}); | |
| 8202 | + | |
| 8203 | +_Object$defineProperty(exports, "LogSubItem", { | |
| 8204 | + enumerable: true, | |
| 8205 | + get: function get() { | |
| 8206 | + return _logSubItem.LogSubItem; | |
| 8207 | + } | |
| 8208 | +}); | |
| 8209 | + | |
| 8210 | +_Object$defineProperty(exports, "StartLog", { | |
| 8211 | + enumerable: true, | |
| 8212 | + get: function get() { | |
| 8213 | + return _startLog.StartLog; | |
| 8214 | + } | |
| 8215 | +}); | |
| 8216 | + | |
| 8217 | +var _addTransaction = __webpack_require__(/*! ./add-transaction */ "../assets/dev/js/editor/document/history/commands/internal/add-transaction.js"); | |
| 8218 | + | |
| 8219 | +var _clearTransaction = __webpack_require__(/*! ./clear-transaction */ "../assets/dev/js/editor/document/history/commands/internal/clear-transaction.js"); | |
| 8220 | + | |
| 8221 | +var _deleteLog = __webpack_require__(/*! ./delete-log */ "../assets/dev/js/editor/document/history/commands/internal/delete-log.js"); | |
| 8222 | + | |
| 8223 | +var _endLog = __webpack_require__(/*! ./end-log */ "../assets/dev/js/editor/document/history/commands/internal/end-log.js"); | |
| 8224 | + | |
| 8225 | +var _endTransaction = __webpack_require__(/*! ./end-transaction */ "../assets/dev/js/editor/document/history/commands/internal/end-transaction.js"); | |
| 8226 | + | |
| 8227 | +var _logSubItem = __webpack_require__(/*! ./log-sub-item */ "../assets/dev/js/editor/document/history/commands/internal/log-sub-item.js"); | |
| 8228 | + | |
| 8229 | +var _startLog = __webpack_require__(/*! ./start-log */ "../assets/dev/js/editor/document/history/commands/internal/start-log.js"); | |
| 8230 | + | |
| 8231 | +/***/ }), | |
| 8232 | + | |
| 8233 | +/***/ "../assets/dev/js/editor/document/history/commands/internal/log-sub-item.js": | |
| 8234 | +/*!**********************************************************************************!*\ | |
| 8235 | + !*** ../assets/dev/js/editor/document/history/commands/internal/log-sub-item.js ***! | |
| 8236 | + \**********************************************************************************/ | |
| 8237 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 8238 | + | |
| 8239 | +"use strict"; | |
| 8240 | + | |
| 8241 | + | |
| 8242 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 8243 | + | |
| 8244 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 8245 | + | |
| 8246 | +_Object$defineProperty(exports, "__esModule", { | |
| 8247 | + value: true | |
| 8248 | +}); | |
| 8249 | + | |
| 8250 | +exports["default"] = exports.LogSubItem = void 0; | |
| 8251 | + | |
| 8252 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 8253 | + | |
| 8254 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 8255 | + | |
| 8256 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 8257 | + | |
| 8258 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 8259 | + | |
| 8260 | +var _base = _interopRequireDefault(__webpack_require__(/*! ../base/base */ "../assets/dev/js/editor/document/history/commands/base/base.js")); | |
| 8261 | + | |
| 8262 | +var LogSubItem = /*#__PURE__*/function (_Base) { | |
| 8263 | + (0, _inherits2.default)(LogSubItem, _Base); | |
| 8264 | + | |
| 8265 | + var _super = (0, _createSuper2.default)(LogSubItem); | |
| 8266 | + | |
| 8267 | + function LogSubItem() { | |
| 8268 | + (0, _classCallCheck2.default)(this, LogSubItem); | |
| 8269 | + return _super.apply(this, arguments); | |
| 8270 | + } | |
| 8271 | + | |
| 8272 | + (0, _createClass2.default)(LogSubItem, [{ | |
| 8273 | + key: "apply", | |
| 8274 | + value: function apply(args) { | |
| 8275 | + if (!this.history.getActive()) { | |
| 8276 | + return; | |
| 8277 | + } | |
| 8278 | + | |
| 8279 | + var id = args.id || this.history.getCurrentId(); | |
| 8280 | + args = this.component.normalizeLogTitle(args); | |
| 8281 | + var items = this.history.getItems(), | |
| 8282 | + item = items.findWhere({ | |
| 8283 | + id: id | |
| 8284 | + }); | |
| 8285 | + | |
| 8286 | + if (!item) { | |
| 8287 | + throw new Error('History item not found.'); | |
| 8288 | + } | |
| 8289 | + /** | |
| 8290 | + * Sometimes `args.id` passed to `LogSubItem`, to add sub item for specific id. | |
| 8291 | + * this `id` should not be passed as sub-item. | |
| 8292 | + */ | |
| 8293 | + | |
| 8294 | + | |
| 8295 | + if (args.id) { | |
| 8296 | + delete args.id; | |
| 8297 | + } | |
| 8298 | + | |
| 8299 | + item.get('items').unshift(args); | |
| 8300 | + } | |
| 8301 | + }]); | |
| 8302 | + return LogSubItem; | |
| 8303 | +}(_base.default); | |
| 8304 | + | |
| 8305 | +exports.LogSubItem = LogSubItem; | |
| 8306 | +var _default = LogSubItem; | |
| 8307 | +exports["default"] = _default; | |
| 8308 | + | |
| 8309 | +/***/ }), | |
| 8310 | + | |
| 8311 | +/***/ "../assets/dev/js/editor/document/history/commands/internal/start-log.js": | |
| 8312 | +/*!*******************************************************************************!*\ | |
| 8313 | + !*** ../assets/dev/js/editor/document/history/commands/internal/start-log.js ***! | |
| 8314 | + \*******************************************************************************/ | |
| 8315 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 8316 | + | |
| 8317 | +"use strict"; | |
| 8318 | + | |
| 8319 | + | |
| 8320 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 8321 | + | |
| 8322 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 8323 | + | |
| 8324 | +_Object$defineProperty(exports, "__esModule", { | |
| 8325 | + value: true | |
| 8326 | +}); | |
| 8327 | + | |
| 8328 | +exports["default"] = exports.StartLog = void 0; | |
| 8329 | + | |
| 8330 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 8331 | + | |
| 8332 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 8333 | + | |
| 8334 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 8335 | + | |
| 8336 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 8337 | + | |
| 8338 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 8339 | + | |
| 8340 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 8341 | + | |
| 8342 | +var _base = _interopRequireDefault(__webpack_require__(/*! ../base/base */ "../assets/dev/js/editor/document/history/commands/base/base.js")); | |
| 8343 | + | |
| 8344 | +var StartLog = /*#__PURE__*/function (_Base) { | |
| 8345 | + (0, _inherits2.default)(StartLog, _Base); | |
| 8346 | + | |
| 8347 | + var _super = (0, _createSuper2.default)(StartLog); | |
| 8348 | + | |
| 8349 | + function StartLog() { | |
| 8350 | + (0, _classCallCheck2.default)(this, StartLog); | |
| 8351 | + return _super.apply(this, arguments); | |
| 8352 | + } | |
| 8353 | + | |
| 8354 | + (0, _createClass2.default)(StartLog, [{ | |
| 309 | 8355 | key: "initialize", |
| 310 | 8356 | value: function initialize(args) { |
| 311 | - var _args$options = args.options, | |
| 312 | - options = _args$options === void 0 ? {} : _args$options; | |
| 313 | - _superPropGet(CommandHistoryDebounceBase, "initialize", this, 3)([args]); | |
| 314 | - if (!this.constructor.debounce) { | |
| 315 | - this.constructor.debounce = _.debounce(function (fn) { | |
| 316 | - return fn(); | |
| 317 | - }, getDefaultDebounceDelay()); | |
| 8357 | + (0, _get2.default)((0, _getPrototypeOf2.default)(StartLog.prototype), "initialize", this).call(this, args); | |
| 8358 | + | |
| 8359 | + if (this.history.isItemStarted() || args.id) { | |
| 8360 | + this.isSubItem = true; | |
| 8361 | + return; | |
| 318 | 8362 | } |
| 319 | 8363 | |
| 320 | - // If its head command, and not called within another command. | |
| 321 | - if (1 === $e.commands.currentTrace.length || options.debounce) { | |
| 322 | - this.isDebounceRequired = true; | |
| 8364 | + this.args = this.component.normalizeLogTitle(args); | |
| 8365 | + } | |
| 8366 | + }, { | |
| 8367 | + key: "validateArgs", | |
| 8368 | + value: function validateArgs(args) { | |
| 8369 | + if (!this.isSubItem) { | |
| 8370 | + this.requireArgumentType('type', 'string', args); | |
| 8371 | + this.requireArgumentType('title', 'string', args); | |
| 323 | 8372 | } |
| 324 | 8373 | } |
| 325 | 8374 | }, { |
| 326 | - key: "onBeforeRun", | |
| 327 | - value: function onBeforeRun(args) { | |
| 328 | - $e.modules.CommandBase.prototype.onBeforeRun.call(this, args); | |
| 329 | - if (this.history && this.isHistoryActive()) { | |
| 330 | - $e.internal('document/history/add-transaction', this.history); | |
| 8375 | + key: "apply", | |
| 8376 | + value: function apply(args) { | |
| 8377 | + if (this.isSubItem) { | |
| 8378 | + $e.internal('document/history/log-sub-item', args); | |
| 8379 | + return null; | |
| 331 | 8380 | } |
| 8381 | + | |
| 8382 | + return this.history.startItem(args); | |
| 332 | 8383 | } |
| 8384 | + }]); | |
| 8385 | + return StartLog; | |
| 8386 | +}(_base.default); | |
| 8387 | + | |
| 8388 | +exports.StartLog = StartLog; | |
| 8389 | +var _default = StartLog; | |
| 8390 | +exports["default"] = _default; | |
| 8391 | + | |
| 8392 | +/***/ }), | |
| 8393 | + | |
| 8394 | +/***/ "../assets/dev/js/editor/document/history/commands/redo.js": | |
| 8395 | +/*!*****************************************************************!*\ | |
| 8396 | + !*** ../assets/dev/js/editor/document/history/commands/redo.js ***! | |
| 8397 | + \*****************************************************************/ | |
| 8398 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 8399 | + | |
| 8400 | +"use strict"; | |
| 8401 | + | |
| 8402 | + | |
| 8403 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 8404 | + | |
| 8405 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 8406 | + | |
| 8407 | +_Object$defineProperty(exports, "__esModule", { | |
| 8408 | + value: true | |
| 8409 | +}); | |
| 8410 | + | |
| 8411 | +exports["default"] = exports.Redo = void 0; | |
| 8412 | + | |
| 8413 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 8414 | + | |
| 8415 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 8416 | + | |
| 8417 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 8418 | + | |
| 8419 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 8420 | + | |
| 8421 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 8422 | + | |
| 8423 | +var Redo = /*#__PURE__*/function (_CommandBase) { | |
| 8424 | + (0, _inherits2.default)(Redo, _CommandBase); | |
| 8425 | + | |
| 8426 | + var _super = (0, _createSuper2.default)(Redo); | |
| 8427 | + | |
| 8428 | + function Redo() { | |
| 8429 | + (0, _classCallCheck2.default)(this, Redo); | |
| 8430 | + return _super.apply(this, arguments); | |
| 8431 | + } | |
| 8432 | + | |
| 8433 | + (0, _createClass2.default)(Redo, [{ | |
| 8434 | + key: "apply", | |
| 8435 | + value: function apply() { | |
| 8436 | + elementor.documents.getCurrent().history.navigate(true); | |
| 8437 | + } | |
| 8438 | + }]); | |
| 8439 | + return Redo; | |
| 8440 | +}(_commandBase.default); | |
| 8441 | + | |
| 8442 | +exports.Redo = Redo; | |
| 8443 | +var _default = Redo; | |
| 8444 | +exports["default"] = _default; | |
| 8445 | + | |
| 8446 | +/***/ }), | |
| 8447 | + | |
| 8448 | +/***/ "../assets/dev/js/editor/document/history/commands/undo-all.js": | |
| 8449 | +/*!*********************************************************************!*\ | |
| 8450 | + !*** ../assets/dev/js/editor/document/history/commands/undo-all.js ***! | |
| 8451 | + \*********************************************************************/ | |
| 8452 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 8453 | + | |
| 8454 | +"use strict"; | |
| 8455 | + | |
| 8456 | + | |
| 8457 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 8458 | + | |
| 8459 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 8460 | + | |
| 8461 | +_Object$defineProperty(exports, "__esModule", { | |
| 8462 | + value: true | |
| 8463 | +}); | |
| 8464 | + | |
| 8465 | +exports["default"] = exports.UndoAll = void 0; | |
| 8466 | + | |
| 8467 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 8468 | + | |
| 8469 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 8470 | + | |
| 8471 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 8472 | + | |
| 8473 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 8474 | + | |
| 8475 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 8476 | + | |
| 8477 | +var UndoAll = /*#__PURE__*/function (_CommandBase) { | |
| 8478 | + (0, _inherits2.default)(UndoAll, _CommandBase); | |
| 8479 | + | |
| 8480 | + var _super = (0, _createSuper2.default)(UndoAll); | |
| 8481 | + | |
| 8482 | + function UndoAll() { | |
| 8483 | + (0, _classCallCheck2.default)(this, UndoAll); | |
| 8484 | + return _super.apply(this, arguments); | |
| 8485 | + } | |
| 8486 | + | |
| 8487 | + (0, _createClass2.default)(UndoAll, [{ | |
| 8488 | + key: "apply", | |
| 8489 | + value: function apply(args) { | |
| 8490 | + var document = args.document; | |
| 8491 | + document.history.doItem(document.history.getItems().length - 1); | |
| 8492 | + } | |
| 8493 | + }]); | |
| 8494 | + return UndoAll; | |
| 8495 | +}(_commandBase.default); | |
| 8496 | + | |
| 8497 | +exports.UndoAll = UndoAll; | |
| 8498 | +var _default = UndoAll; | |
| 8499 | +exports["default"] = _default; | |
| 8500 | + | |
| 8501 | +/***/ }), | |
| 8502 | + | |
| 8503 | +/***/ "../assets/dev/js/editor/document/history/commands/undo.js": | |
| 8504 | +/*!*****************************************************************!*\ | |
| 8505 | + !*** ../assets/dev/js/editor/document/history/commands/undo.js ***! | |
| 8506 | + \*****************************************************************/ | |
| 8507 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 8508 | + | |
| 8509 | +"use strict"; | |
| 8510 | + | |
| 8511 | + | |
| 8512 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 8513 | + | |
| 8514 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 8515 | + | |
| 8516 | +_Object$defineProperty(exports, "__esModule", { | |
| 8517 | + value: true | |
| 8518 | +}); | |
| 8519 | + | |
| 8520 | +exports["default"] = exports.Undo = void 0; | |
| 8521 | + | |
| 8522 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 8523 | + | |
| 8524 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 8525 | + | |
| 8526 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 8527 | + | |
| 8528 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 8529 | + | |
| 8530 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 8531 | + | |
| 8532 | +var Undo = /*#__PURE__*/function (_CommandBase) { | |
| 8533 | + (0, _inherits2.default)(Undo, _CommandBase); | |
| 8534 | + | |
| 8535 | + var _super = (0, _createSuper2.default)(Undo); | |
| 8536 | + | |
| 8537 | + function Undo() { | |
| 8538 | + (0, _classCallCheck2.default)(this, Undo); | |
| 8539 | + return _super.apply(this, arguments); | |
| 8540 | + } | |
| 8541 | + | |
| 8542 | + (0, _createClass2.default)(Undo, [{ | |
| 8543 | + key: "apply", | |
| 8544 | + value: function apply() { | |
| 8545 | + elementor.documents.getCurrent().history.navigate(); | |
| 8546 | + } | |
| 8547 | + }]); | |
| 8548 | + return Undo; | |
| 8549 | +}(_commandBase.default); | |
| 8550 | + | |
| 8551 | +exports.Undo = Undo; | |
| 8552 | +var _default = Undo; | |
| 8553 | +exports["default"] = _default; | |
| 8554 | + | |
| 8555 | +/***/ }), | |
| 8556 | + | |
| 8557 | +/***/ "../assets/dev/js/editor/document/history/component.js": | |
| 8558 | +/*!*************************************************************!*\ | |
| 8559 | + !*** ../assets/dev/js/editor/document/history/component.js ***! | |
| 8560 | + \*************************************************************/ | |
| 8561 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 8562 | + | |
| 8563 | +"use strict"; | |
| 8564 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 8565 | + | |
| 8566 | + | |
| 8567 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 8568 | + | |
| 8569 | +var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireWildcard */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js"); | |
| 8570 | + | |
| 8571 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 8572 | + | |
| 8573 | +_Object$defineProperty(exports, "__esModule", { | |
| 8574 | + value: true | |
| 8575 | +}); | |
| 8576 | + | |
| 8577 | +exports["default"] = void 0; | |
| 8578 | + | |
| 8579 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 8580 | + | |
| 8581 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 8582 | + | |
| 8583 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 8584 | + | |
| 8585 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 8586 | + | |
| 8587 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 8588 | + | |
| 8589 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 8590 | + | |
| 8591 | +var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../core/common/assets/js/api/modules/component-base.js")); | |
| 8592 | + | |
| 8593 | +var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../assets/dev/js/editor/document/history/commands/index.js")); | |
| 8594 | + | |
| 8595 | +var commandsInternal = _interopRequireWildcard(__webpack_require__(/*! ./commands/internal/ */ "../assets/dev/js/editor/document/history/commands/internal/index.js")); | |
| 8596 | + | |
| 8597 | +var Component = /*#__PURE__*/function (_ComponentBase) { | |
| 8598 | + (0, _inherits2.default)(Component, _ComponentBase); | |
| 8599 | + | |
| 8600 | + var _super = (0, _createSuper2.default)(Component); | |
| 8601 | + | |
| 8602 | + function Component() { | |
| 8603 | + (0, _classCallCheck2.default)(this, Component); | |
| 8604 | + return _super.apply(this, arguments); | |
| 8605 | + } | |
| 8606 | + | |
| 8607 | + (0, _createClass2.default)(Component, [{ | |
| 8608 | + key: "__construct", | |
| 8609 | + value: function __construct(args) { | |
| 8610 | + (0, _get2.default)((0, _getPrototypeOf2.default)(Component.prototype), "__construct", this).call(this, args); | |
| 8611 | + /** | |
| 8612 | + * Transactions holder. | |
| 8613 | + * | |
| 8614 | + * @type {Array} | |
| 8615 | + */ | |
| 8616 | + | |
| 8617 | + this.transactions = []; | |
| 8618 | + } | |
| 333 | 8619 | }, { |
| 334 | - key: "onAfterRun", | |
| 335 | - value: function onAfterRun(args, result) { | |
| 336 | - $e.modules.CommandBase.prototype.onAfterRun.call(this, args, result); | |
| 337 | - if (this.isHistoryActive()) { | |
| 338 | - if (this.isDebounceRequired) { | |
| 339 | - this.constructor.debounce(function () { | |
| 340 | - return $e.internal('document/history/end-transaction'); | |
| 8620 | + key: "getNamespace", | |
| 8621 | + value: function getNamespace() { | |
| 8622 | + return 'document/history'; | |
| 8623 | + } | |
| 8624 | + }, { | |
| 8625 | + key: "defaultCommands", | |
| 8626 | + value: function defaultCommands() { | |
| 8627 | + return this.importCommands(commands); | |
| 8628 | + } | |
| 8629 | + }, { | |
| 8630 | + key: "defaultCommandsInternal", | |
| 8631 | + value: function defaultCommandsInternal() { | |
| 8632 | + return this.importCommands(commandsInternal); | |
| 8633 | + } | |
| 8634 | + }, { | |
| 8635 | + key: "normalizeLogTitle", | |
| 8636 | + value: function normalizeLogTitle(args) { | |
| 8637 | + var _args$containers = args.containers, | |
| 8638 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 8639 | + | |
| 8640 | + if (!args.title && containers[0]) { | |
| 8641 | + if (1 === containers.length) { | |
| 8642 | + args.title = containers[0].label; | |
| 8643 | + } else { | |
| 8644 | + args.title = __('Elements', 'elementor'); | |
| 8645 | + } | |
| 8646 | + } | |
| 8647 | + | |
| 8648 | + return args; | |
| 8649 | + } | |
| 8650 | + }, { | |
| 8651 | + key: "mergeTransactions", | |
| 8652 | + value: function mergeTransactions(transactions) { | |
| 8653 | + var result = {}; | |
| 8654 | + transactions.forEach(function (itemArgs) { | |
| 8655 | + // If no containers at the current transaction. | |
| 8656 | + if (!itemArgs.container && !itemArgs.containers) { | |
| 8657 | + return; | |
| 8658 | + } | |
| 8659 | + | |
| 8660 | + var _itemArgs$containers = itemArgs.containers, | |
| 8661 | + containers = _itemArgs$containers === void 0 ? [itemArgs.container] : _itemArgs$containers; | |
| 8662 | + | |
| 8663 | + if (containers) { | |
| 8664 | + containers.forEach(function (container) { | |
| 8665 | + if (!itemArgs.data) { | |
| 8666 | + return; | |
| 8667 | + } // Replace new changes by current itemArgs. | |
| 8668 | + | |
| 8669 | + | |
| 8670 | + if (result[container.id]) { | |
| 8671 | + result[container.id].data.changes[container.id].new = itemArgs.data.changes[container.id].new; | |
| 8672 | + return; | |
| 8673 | + } | |
| 8674 | + | |
| 8675 | + result[container.id] = itemArgs; | |
| 341 | 8676 | }); |
| 342 | - } else { | |
| 343 | - $e.internal('document/history/end-transaction'); | |
| 344 | 8677 | } |
| 8678 | + }); | |
| 8679 | + return result; | |
| 8680 | + } | |
| 8681 | + }, { | |
| 8682 | + key: "isTransactionStarted", | |
| 8683 | + value: function isTransactionStarted() { | |
| 8684 | + return Boolean(this.transactions.length); | |
| 8685 | + } | |
| 8686 | + }]); | |
| 8687 | + return Component; | |
| 8688 | +}(_componentBase.default); | |
| 8689 | + | |
| 8690 | +exports["default"] = Component; | |
| 8691 | + | |
| 8692 | +/***/ }), | |
| 8693 | + | |
| 8694 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/base/reset-layout-base.js": | |
| 8695 | +/*!***********************************************************************************************!*\ | |
| 8696 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/base/reset-layout-base.js ***! | |
| 8697 | + \***********************************************************************************************/ | |
| 8698 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 8699 | + | |
| 8700 | +"use strict"; | |
| 8701 | + | |
| 8702 | + | |
| 8703 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 8704 | + | |
| 8705 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 8706 | + | |
| 8707 | +_Object$defineProperty(exports, "__esModule", { | |
| 8708 | + value: true | |
| 8709 | +}); | |
| 8710 | + | |
| 8711 | +exports["default"] = void 0; | |
| 8712 | + | |
| 8713 | +var _isArray = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/array/is-array */ "../node_modules/@babel/runtime-corejs2/core-js/array/is-array.js")); | |
| 8714 | + | |
| 8715 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 8716 | + | |
| 8717 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 8718 | + | |
| 8719 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 8720 | + | |
| 8721 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 8722 | + | |
| 8723 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/data/after */ "../core/common/assets/js/api/modules/hooks/data/after.js")); | |
| 8724 | + | |
| 8725 | +var ResetLayoutBase = /*#__PURE__*/function (_After) { | |
| 8726 | + (0, _inherits2.default)(ResetLayoutBase, _After); | |
| 8727 | + | |
| 8728 | + var _super = (0, _createSuper2.default)(ResetLayoutBase); | |
| 8729 | + | |
| 8730 | + function ResetLayoutBase() { | |
| 8731 | + (0, _classCallCheck2.default)(this, ResetLayoutBase); | |
| 8732 | + return _super.apply(this, arguments); | |
| 8733 | + } | |
| 8734 | + | |
| 8735 | + (0, _createClass2.default)(ResetLayoutBase, [{ | |
| 8736 | + key: "getConditions", | |
| 8737 | + value: function getConditions() { | |
| 8738 | + // On `document/elements/move` do not fire the hook!. | |
| 8739 | + return !$e.commands.isCurrentFirstTrace('document/elements/move'); | |
| 8740 | + } | |
| 8741 | + /** | |
| 8742 | + * @inheritDoc | |
| 8743 | + * | |
| 8744 | + * @param {{}} args | |
| 8745 | + * @param {Container||Container[]} containers | |
| 8746 | + * | |
| 8747 | + * @returns {boolean} | |
| 8748 | + */ | |
| 8749 | + | |
| 8750 | + }, { | |
| 8751 | + key: "apply", | |
| 8752 | + value: function apply(args, containers) { | |
| 8753 | + if (!(0, _isArray.default)(containers)) { | |
| 8754 | + containers = [containers]; | |
| 345 | 8755 | } |
| 8756 | + | |
| 8757 | + containers.forEach(function ( | |
| 8758 | + /**Container*/ | |
| 8759 | + container) { | |
| 8760 | + return container.parent.view.resetLayout(false); | |
| 8761 | + }); | |
| 346 | 8762 | } |
| 8763 | + }]); | |
| 8764 | + return ResetLayoutBase; | |
| 8765 | +}(_after.default); | |
| 8766 | + | |
| 8767 | +exports["default"] = ResetLayoutBase; | |
| 8768 | + | |
| 8769 | +/***/ }), | |
| 8770 | + | |
| 8771 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/create/create-section-columns-reset-layout.js": | |
| 8772 | +/*!*******************************************************************************************************************!*\ | |
| 8773 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/create/create-section-columns-reset-layout.js ***! | |
| 8774 | + \*******************************************************************************************************************/ | |
| 8775 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 8776 | + | |
| 8777 | +"use strict"; | |
| 8778 | + | |
| 8779 | + | |
| 8780 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 8781 | + | |
| 8782 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 8783 | + | |
| 8784 | +_Object$defineProperty(exports, "__esModule", { | |
| 8785 | + value: true | |
| 8786 | +}); | |
| 8787 | + | |
| 8788 | +exports["default"] = exports.CreateSectionColumnsResetLayout = void 0; | |
| 8789 | + | |
| 8790 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 8791 | + | |
| 8792 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 8793 | + | |
| 8794 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 8795 | + | |
| 8796 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 8797 | + | |
| 8798 | +var _resetLayoutBase = _interopRequireDefault(__webpack_require__(/*! ../base/reset-layout-base */ "../assets/dev/js/editor/document/hooks/data/document/elements/base/reset-layout-base.js")); | |
| 8799 | + | |
| 8800 | +var CreateSectionColumnsResetLayout = /*#__PURE__*/function (_ResetLayoutBase) { | |
| 8801 | + (0, _inherits2.default)(CreateSectionColumnsResetLayout, _ResetLayoutBase); | |
| 8802 | + | |
| 8803 | + var _super = (0, _createSuper2.default)(CreateSectionColumnsResetLayout); | |
| 8804 | + | |
| 8805 | + function CreateSectionColumnsResetLayout() { | |
| 8806 | + (0, _classCallCheck2.default)(this, CreateSectionColumnsResetLayout); | |
| 8807 | + return _super.apply(this, arguments); | |
| 8808 | + } | |
| 8809 | + | |
| 8810 | + (0, _createClass2.default)(CreateSectionColumnsResetLayout, [{ | |
| 8811 | + key: "getCommand", | |
| 8812 | + value: function getCommand() { | |
| 8813 | + return 'document/elements/create'; | |
| 8814 | + } | |
| 347 | 8815 | }, { |
| 348 | - key: "onCatchApply", | |
| 349 | - value: function onCatchApply(e) { | |
| 350 | - $e.modules.CommandBase.prototype.onCatchApply.call(this, e); | |
| 8816 | + key: "getId", | |
| 8817 | + value: function getId() { | |
| 8818 | + return 'section-columns-reset-layout--document/elements/create'; | |
| 8819 | + } | |
| 8820 | + }, { | |
| 8821 | + key: "getContainerType", | |
| 8822 | + value: function getContainerType() { | |
| 8823 | + return 'section'; | |
| 8824 | + } | |
| 8825 | + }]); | |
| 8826 | + return CreateSectionColumnsResetLayout; | |
| 8827 | +}(_resetLayoutBase.default); | |
| 351 | 8828 | |
| 352 | - // Rollback history on failure. | |
| 353 | - if (e instanceof $e.modules.HookBreak && this.history) { | |
| 354 | - if (this.isDebounceRequired) { | |
| 355 | - // `clear-transaction` is under debounce, because it should `clear-transaction` after `end-transaction`. | |
| 356 | - this.constructor.debounce(function () { | |
| 357 | - return $e.internal('document/history/clear-transaction'); | |
| 8829 | +exports.CreateSectionColumnsResetLayout = CreateSectionColumnsResetLayout; | |
| 8830 | +var _default = CreateSectionColumnsResetLayout; | |
| 8831 | +exports["default"] = _default; | |
| 8832 | + | |
| 8833 | +/***/ }), | |
| 8834 | + | |
| 8835 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/create/index.js": | |
| 8836 | +/*!*************************************************************************************!*\ | |
| 8837 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/create/index.js ***! | |
| 8838 | + \*************************************************************************************/ | |
| 8839 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 8840 | + | |
| 8841 | +"use strict"; | |
| 8842 | + | |
| 8843 | + | |
| 8844 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 8845 | + | |
| 8846 | +_Object$defineProperty(exports, "__esModule", { | |
| 8847 | + value: true | |
| 8848 | +}); | |
| 8849 | + | |
| 8850 | +_Object$defineProperty(exports, "CreateSectionColumnsResetLayout", { | |
| 8851 | + enumerable: true, | |
| 8852 | + get: function get() { | |
| 8853 | + return _createSectionColumnsResetLayout.CreateSectionColumnsResetLayout; | |
| 8854 | + } | |
| 8855 | +}); | |
| 8856 | + | |
| 8857 | +_Object$defineProperty(exports, "InnerSectionColumns", { | |
| 8858 | + enumerable: true, | |
| 8859 | + get: function get() { | |
| 8860 | + return _innerSectionColumns.InnerSectionColumns; | |
| 8861 | + } | |
| 8862 | +}); | |
| 8863 | + | |
| 8864 | +_Object$defineProperty(exports, "IsValidChild", { | |
| 8865 | + enumerable: true, | |
| 8866 | + get: function get() { | |
| 8867 | + return _isValidChild.IsValidChild; | |
| 8868 | + } | |
| 8869 | +}); | |
| 8870 | + | |
| 8871 | +_Object$defineProperty(exports, "SectionColumns", { | |
| 8872 | + enumerable: true, | |
| 8873 | + get: function get() { | |
| 8874 | + return _sectionColumns.SectionColumns; | |
| 8875 | + } | |
| 8876 | +}); | |
| 8877 | + | |
| 8878 | +_Object$defineProperty(exports, "SectionColumnsLimit", { | |
| 8879 | + enumerable: true, | |
| 8880 | + get: function get() { | |
| 8881 | + return _sectionColumnsLimit.SectionColumnsLimit; | |
| 8882 | + } | |
| 8883 | +}); | |
| 8884 | + | |
| 8885 | +var _createSectionColumnsResetLayout = __webpack_require__(/*! ./create-section-columns-reset-layout */ "../assets/dev/js/editor/document/hooks/data/document/elements/create/create-section-columns-reset-layout.js"); | |
| 8886 | + | |
| 8887 | +var _innerSectionColumns = __webpack_require__(/*! ./inner-section-columns */ "../assets/dev/js/editor/document/hooks/data/document/elements/create/inner-section-columns.js"); | |
| 8888 | + | |
| 8889 | +var _isValidChild = __webpack_require__(/*! ./is-valid-child */ "../assets/dev/js/editor/document/hooks/data/document/elements/create/is-valid-child.js"); | |
| 8890 | + | |
| 8891 | +var _sectionColumns = __webpack_require__(/*! ./section-columns */ "../assets/dev/js/editor/document/hooks/data/document/elements/create/section-columns.js"); | |
| 8892 | + | |
| 8893 | +var _sectionColumnsLimit = __webpack_require__(/*! ./section-columns-limit */ "../assets/dev/js/editor/document/hooks/data/document/elements/create/section-columns-limit.js"); | |
| 8894 | + | |
| 8895 | +/***/ }), | |
| 8896 | + | |
| 8897 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/create/inner-section-columns.js": | |
| 8898 | +/*!*****************************************************************************************************!*\ | |
| 8899 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/create/inner-section-columns.js ***! | |
| 8900 | + \*****************************************************************************************************/ | |
| 8901 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 8902 | + | |
| 8903 | +"use strict"; | |
| 8904 | + | |
| 8905 | + | |
| 8906 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 8907 | + | |
| 8908 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 8909 | + | |
| 8910 | +_Object$defineProperty(exports, "__esModule", { | |
| 8911 | + value: true | |
| 8912 | +}); | |
| 8913 | + | |
| 8914 | +exports["default"] = exports.InnerSectionColumns = void 0; | |
| 8915 | + | |
| 8916 | +var _isArray = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/array/is-array */ "../node_modules/@babel/runtime-corejs2/core-js/array/is-array.js")); | |
| 8917 | + | |
| 8918 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 8919 | + | |
| 8920 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 8921 | + | |
| 8922 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 8923 | + | |
| 8924 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 8925 | + | |
| 8926 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/data/after */ "../core/common/assets/js/api/modules/hooks/data/after.js")); | |
| 8927 | + | |
| 8928 | +var _helper = _interopRequireDefault(__webpack_require__(/*! ../helper */ "../assets/dev/js/editor/document/hooks/data/document/elements/helper.js")); | |
| 8929 | + | |
| 8930 | +var _section = __webpack_require__(/*! elementor-elements/views/section */ "../assets/dev/js/editor/elements/views/section.js"); | |
| 8931 | + | |
| 8932 | +var InnerSectionColumns = /*#__PURE__*/function (_After) { | |
| 8933 | + (0, _inherits2.default)(InnerSectionColumns, _After); | |
| 8934 | + | |
| 8935 | + var _super = (0, _createSuper2.default)(InnerSectionColumns); | |
| 8936 | + | |
| 8937 | + function InnerSectionColumns() { | |
| 8938 | + (0, _classCallCheck2.default)(this, InnerSectionColumns); | |
| 8939 | + return _super.apply(this, arguments); | |
| 8940 | + } | |
| 8941 | + | |
| 8942 | + (0, _createClass2.default)(InnerSectionColumns, [{ | |
| 8943 | + key: "getCommand", | |
| 8944 | + value: function getCommand() { | |
| 8945 | + return 'document/elements/create'; | |
| 8946 | + } | |
| 8947 | + }, { | |
| 8948 | + key: "getId", | |
| 8949 | + value: function getId() { | |
| 8950 | + return 'create-inner-section-columns'; | |
| 8951 | + } | |
| 8952 | + }, { | |
| 8953 | + key: "getContainerType", | |
| 8954 | + value: function getContainerType() { | |
| 8955 | + return 'column'; | |
| 8956 | + } | |
| 8957 | + }, { | |
| 8958 | + key: "getConditions", | |
| 8959 | + value: function getConditions(args) { | |
| 8960 | + return args.model.isInner && !args.model.elements; | |
| 8961 | + } | |
| 8962 | + /** | |
| 8963 | + * @inheritDoc | |
| 8964 | + * | |
| 8965 | + * @param {{}} args | |
| 8966 | + * @param {Container||Container[]} containers | |
| 8967 | + * | |
| 8968 | + * @returns {boolean} | |
| 8969 | + */ | |
| 8970 | + | |
| 8971 | + }, { | |
| 8972 | + key: "apply", | |
| 8973 | + value: function apply(args, containers) { | |
| 8974 | + var _args$structure = args.structure, | |
| 8975 | + structure = _args$structure === void 0 ? '20' : _args$structure, | |
| 8976 | + _args$options = args.options, | |
| 8977 | + options = _args$options === void 0 ? {} : _args$options; | |
| 8978 | + | |
| 8979 | + if (!(0, _isArray.default)(containers)) { | |
| 8980 | + containers = [containers]; | |
| 8981 | + } | |
| 8982 | + | |
| 8983 | + _helper.default.createSectionColumns(containers, _section.DEFAULT_INNER_SECTION_COLUMNS, options, structure); | |
| 8984 | + } | |
| 8985 | + }]); | |
| 8986 | + return InnerSectionColumns; | |
| 8987 | +}(_after.default); | |
| 8988 | + | |
| 8989 | +exports.InnerSectionColumns = InnerSectionColumns; | |
| 8990 | +var _default = InnerSectionColumns; | |
| 8991 | +exports["default"] = _default; | |
| 8992 | + | |
| 8993 | +/***/ }), | |
| 8994 | + | |
| 8995 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/create/is-valid-child.js": | |
| 8996 | +/*!**********************************************************************************************!*\ | |
| 8997 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/create/is-valid-child.js ***! | |
| 8998 | + \**********************************************************************************************/ | |
| 8999 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9000 | + | |
| 9001 | +"use strict"; | |
| 9002 | + | |
| 9003 | + | |
| 9004 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 9005 | + | |
| 9006 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 9007 | + | |
| 9008 | +_Object$defineProperty(exports, "__esModule", { | |
| 9009 | + value: true | |
| 9010 | +}); | |
| 9011 | + | |
| 9012 | +exports["default"] = exports.IsValidChild = void 0; | |
| 9013 | + | |
| 9014 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 9015 | + | |
| 9016 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 9017 | + | |
| 9018 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 9019 | + | |
| 9020 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 9021 | + | |
| 9022 | +var _dependency = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/data/dependency */ "../core/common/assets/js/api/modules/hooks/data/dependency.js")); | |
| 9023 | + | |
| 9024 | +var IsValidChild = /*#__PURE__*/function (_Dependency) { | |
| 9025 | + (0, _inherits2.default)(IsValidChild, _Dependency); | |
| 9026 | + | |
| 9027 | + var _super = (0, _createSuper2.default)(IsValidChild); | |
| 9028 | + | |
| 9029 | + function IsValidChild() { | |
| 9030 | + (0, _classCallCheck2.default)(this, IsValidChild); | |
| 9031 | + return _super.apply(this, arguments); | |
| 9032 | + } | |
| 9033 | + | |
| 9034 | + (0, _createClass2.default)(IsValidChild, [{ | |
| 9035 | + key: "getCommand", | |
| 9036 | + value: function getCommand() { | |
| 9037 | + return 'document/elements/create'; | |
| 9038 | + } | |
| 9039 | + }, { | |
| 9040 | + key: "getId", | |
| 9041 | + value: function getId() { | |
| 9042 | + return 'is-valid-child'; | |
| 9043 | + } | |
| 9044 | + }, { | |
| 9045 | + key: "apply", | |
| 9046 | + value: function apply(args) { | |
| 9047 | + var _args$containers = args.containers, | |
| 9048 | + containers = _args$containers === void 0 ? [args.container] : _args$containers, | |
| 9049 | + _args$model = args.model, | |
| 9050 | + model = _args$model === void 0 ? {} : _args$model, | |
| 9051 | + modelToCreate = new Backbone.Model(model); | |
| 9052 | + return containers.some(function ( | |
| 9053 | + /* Container */ | |
| 9054 | + container) { | |
| 9055 | + return $e.components.get('document/elements').utils.isValidChild(modelToCreate, container.model); | |
| 9056 | + }); | |
| 9057 | + } | |
| 9058 | + }]); | |
| 9059 | + return IsValidChild; | |
| 9060 | +}(_dependency.default); | |
| 9061 | + | |
| 9062 | +exports.IsValidChild = IsValidChild; | |
| 9063 | +var _default = IsValidChild; | |
| 9064 | +exports["default"] = _default; | |
| 9065 | + | |
| 9066 | +/***/ }), | |
| 9067 | + | |
| 9068 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/create/section-columns-limit.js": | |
| 9069 | +/*!*****************************************************************************************************!*\ | |
| 9070 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/create/section-columns-limit.js ***! | |
| 9071 | + \*****************************************************************************************************/ | |
| 9072 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9073 | + | |
| 9074 | +"use strict"; | |
| 9075 | + | |
| 9076 | + | |
| 9077 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 9078 | + | |
| 9079 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 9080 | + | |
| 9081 | +_Object$defineProperty(exports, "__esModule", { | |
| 9082 | + value: true | |
| 9083 | +}); | |
| 9084 | + | |
| 9085 | +exports["default"] = exports.SectionColumnsLimit = void 0; | |
| 9086 | + | |
| 9087 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 9088 | + | |
| 9089 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 9090 | + | |
| 9091 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 9092 | + | |
| 9093 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 9094 | + | |
| 9095 | +var _dependency = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/data/dependency */ "../core/common/assets/js/api/modules/hooks/data/dependency.js")); | |
| 9096 | + | |
| 9097 | +var SectionColumnsLimit = /*#__PURE__*/function (_Dependency) { | |
| 9098 | + (0, _inherits2.default)(SectionColumnsLimit, _Dependency); | |
| 9099 | + | |
| 9100 | + var _super = (0, _createSuper2.default)(SectionColumnsLimit); | |
| 9101 | + | |
| 9102 | + function SectionColumnsLimit() { | |
| 9103 | + (0, _classCallCheck2.default)(this, SectionColumnsLimit); | |
| 9104 | + return _super.apply(this, arguments); | |
| 9105 | + } | |
| 9106 | + | |
| 9107 | + (0, _createClass2.default)(SectionColumnsLimit, [{ | |
| 9108 | + key: "getCommand", | |
| 9109 | + value: function getCommand() { | |
| 9110 | + return 'document/elements/create'; | |
| 9111 | + } | |
| 9112 | + }, { | |
| 9113 | + key: "getId", | |
| 9114 | + value: function getId() { | |
| 9115 | + return 'section-columns-limit'; | |
| 9116 | + } | |
| 9117 | + }, { | |
| 9118 | + key: "getContainerType", | |
| 9119 | + value: function getContainerType() { | |
| 9120 | + return 'section'; | |
| 9121 | + } | |
| 9122 | + }, { | |
| 9123 | + key: "apply", | |
| 9124 | + value: function apply(args) { | |
| 9125 | + var _args$containers = args.containers, | |
| 9126 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; // If one of the targets have maximum columns reached break the command. | |
| 9127 | + | |
| 9128 | + return !containers.some(function ( | |
| 9129 | + /**Container*/ | |
| 9130 | + container) { | |
| 9131 | + return container.view.isCollectionFilled(); | |
| 9132 | + }); | |
| 9133 | + } | |
| 9134 | + }]); | |
| 9135 | + return SectionColumnsLimit; | |
| 9136 | +}(_dependency.default); | |
| 9137 | + | |
| 9138 | +exports.SectionColumnsLimit = SectionColumnsLimit; | |
| 9139 | +var _default = SectionColumnsLimit; | |
| 9140 | +exports["default"] = _default; | |
| 9141 | + | |
| 9142 | +/***/ }), | |
| 9143 | + | |
| 9144 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/create/section-columns.js": | |
| 9145 | +/*!***********************************************************************************************!*\ | |
| 9146 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/create/section-columns.js ***! | |
| 9147 | + \***********************************************************************************************/ | |
| 9148 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9149 | + | |
| 9150 | +"use strict"; | |
| 9151 | + | |
| 9152 | + | |
| 9153 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 9154 | + | |
| 9155 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 9156 | + | |
| 9157 | +_Object$defineProperty(exports, "__esModule", { | |
| 9158 | + value: true | |
| 9159 | +}); | |
| 9160 | + | |
| 9161 | +exports["default"] = exports.SectionColumns = void 0; | |
| 9162 | + | |
| 9163 | +var _isArray = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/array/is-array */ "../node_modules/@babel/runtime-corejs2/core-js/array/is-array.js")); | |
| 9164 | + | |
| 9165 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 9166 | + | |
| 9167 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 9168 | + | |
| 9169 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 9170 | + | |
| 9171 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 9172 | + | |
| 9173 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/data/after */ "../core/common/assets/js/api/modules/hooks/data/after.js")); | |
| 9174 | + | |
| 9175 | +var _helper = _interopRequireDefault(__webpack_require__(/*! ../helper */ "../assets/dev/js/editor/document/hooks/data/document/elements/helper.js")); | |
| 9176 | + | |
| 9177 | +var _section = __webpack_require__(/*! elementor-elements/views/section */ "../assets/dev/js/editor/elements/views/section.js"); | |
| 9178 | + | |
| 9179 | +var SectionColumns = /*#__PURE__*/function (_After) { | |
| 9180 | + (0, _inherits2.default)(SectionColumns, _After); | |
| 9181 | + | |
| 9182 | + var _super = (0, _createSuper2.default)(SectionColumns); | |
| 9183 | + | |
| 9184 | + function SectionColumns() { | |
| 9185 | + (0, _classCallCheck2.default)(this, SectionColumns); | |
| 9186 | + return _super.apply(this, arguments); | |
| 9187 | + } | |
| 9188 | + | |
| 9189 | + (0, _createClass2.default)(SectionColumns, [{ | |
| 9190 | + key: "getCommand", | |
| 9191 | + value: function getCommand() { | |
| 9192 | + return 'document/elements/create'; | |
| 9193 | + } | |
| 9194 | + }, { | |
| 9195 | + key: "getId", | |
| 9196 | + value: function getId() { | |
| 9197 | + return 'create-section-columns'; | |
| 9198 | + } | |
| 9199 | + }, { | |
| 9200 | + key: "getContainerType", | |
| 9201 | + value: function getContainerType() { | |
| 9202 | + return 'document'; | |
| 9203 | + } | |
| 9204 | + }, { | |
| 9205 | + key: "getConditions", | |
| 9206 | + value: function getConditions(args) { | |
| 9207 | + return !args.model.elements; | |
| 9208 | + } | |
| 9209 | + /** | |
| 9210 | + * @inheritDoc | |
| 9211 | + * | |
| 9212 | + * @param {{}} args | |
| 9213 | + * @param {Container||Container[]} containers | |
| 9214 | + * | |
| 9215 | + * @returns {boolean} | |
| 9216 | + */ | |
| 9217 | + | |
| 9218 | + }, { | |
| 9219 | + key: "apply", | |
| 9220 | + value: function apply(args, containers) { | |
| 9221 | + var _args$structure = args.structure, | |
| 9222 | + structure = _args$structure === void 0 ? false : _args$structure, | |
| 9223 | + _args$options = args.options, | |
| 9224 | + options = _args$options === void 0 ? {} : _args$options; | |
| 9225 | + | |
| 9226 | + if (!(0, _isArray.default)(containers)) { | |
| 9227 | + containers = [containers]; | |
| 9228 | + } | |
| 9229 | + | |
| 9230 | + var _args$columns = args.columns, | |
| 9231 | + columns = _args$columns === void 0 ? 1 : _args$columns; | |
| 9232 | + | |
| 9233 | + if (args.model.isInner && 1 === columns) { | |
| 9234 | + columns = _section.DEFAULT_INNER_SECTION_COLUMNS; | |
| 9235 | + } | |
| 9236 | + | |
| 9237 | + _helper.default.createSectionColumns(containers, columns, options, structure); | |
| 9238 | + } | |
| 9239 | + }]); | |
| 9240 | + return SectionColumns; | |
| 9241 | +}(_after.default); | |
| 9242 | + | |
| 9243 | +exports.SectionColumns = SectionColumns; | |
| 9244 | +var _default = SectionColumns; | |
| 9245 | +exports["default"] = _default; | |
| 9246 | + | |
| 9247 | +/***/ }), | |
| 9248 | + | |
| 9249 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/delete/create-column-for-empty-section.js": | |
| 9250 | +/*!***************************************************************************************************************!*\ | |
| 9251 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/delete/create-column-for-empty-section.js ***! | |
| 9252 | + \***************************************************************************************************************/ | |
| 9253 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9254 | + | |
| 9255 | +"use strict"; | |
| 9256 | + | |
| 9257 | + | |
| 9258 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 9259 | + | |
| 9260 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 9261 | + | |
| 9262 | +_Object$defineProperty(exports, "__esModule", { | |
| 9263 | + value: true | |
| 9264 | +}); | |
| 9265 | + | |
| 9266 | +exports["default"] = exports.CreateColumnForEmptySection = void 0; | |
| 9267 | + | |
| 9268 | +var _isArray = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/array/is-array */ "../node_modules/@babel/runtime-corejs2/core-js/array/is-array.js")); | |
| 9269 | + | |
| 9270 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 9271 | + | |
| 9272 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 9273 | + | |
| 9274 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 9275 | + | |
| 9276 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 9277 | + | |
| 9278 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/data/after */ "../core/common/assets/js/api/modules/hooks/data/after.js")); | |
| 9279 | + | |
| 9280 | +var CreateColumnForEmptySection = /*#__PURE__*/function (_After) { | |
| 9281 | + (0, _inherits2.default)(CreateColumnForEmptySection, _After); | |
| 9282 | + | |
| 9283 | + var _super = (0, _createSuper2.default)(CreateColumnForEmptySection); | |
| 9284 | + | |
| 9285 | + function CreateColumnForEmptySection() { | |
| 9286 | + (0, _classCallCheck2.default)(this, CreateColumnForEmptySection); | |
| 9287 | + return _super.apply(this, arguments); | |
| 9288 | + } | |
| 9289 | + | |
| 9290 | + (0, _createClass2.default)(CreateColumnForEmptySection, [{ | |
| 9291 | + key: "getCommand", | |
| 9292 | + value: function getCommand() { | |
| 9293 | + return 'document/elements/delete'; | |
| 9294 | + } | |
| 9295 | + }, { | |
| 9296 | + key: "getId", | |
| 9297 | + value: function getId() { | |
| 9298 | + return 'create-column-for-empty-section--document/elements/delete'; | |
| 9299 | + } | |
| 9300 | + }, { | |
| 9301 | + key: "getContainerType", | |
| 9302 | + value: function getContainerType() { | |
| 9303 | + return 'column'; | |
| 9304 | + } | |
| 9305 | + }, { | |
| 9306 | + key: "getConditions", | |
| 9307 | + value: function getConditions() { | |
| 9308 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 9309 | + var _args$containers = args.containers, | |
| 9310 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; // Validate also that its a section, this is hook should not work with new flex container. | |
| 9311 | + | |
| 9312 | + return containers.some(function (container) { | |
| 9313 | + return 'section' === container.parent.type && 0 === container.parent.children.length; | |
| 9314 | + }); | |
| 9315 | + } | |
| 9316 | + /** | |
| 9317 | + * @inheritDoc | |
| 9318 | + * | |
| 9319 | + * @param {{}} args | |
| 9320 | + * @param {Container||Container[]} containers | |
| 9321 | + * | |
| 9322 | + * @returns {boolean} | |
| 9323 | + */ | |
| 9324 | + | |
| 9325 | + }, { | |
| 9326 | + key: "apply", | |
| 9327 | + value: function apply(args, containers) { | |
| 9328 | + if (!(0, _isArray.default)(containers)) { | |
| 9329 | + containers = [containers]; | |
| 9330 | + } | |
| 9331 | + | |
| 9332 | + containers.forEach(function ( | |
| 9333 | + /**Container*/ | |
| 9334 | + container) { | |
| 9335 | + var parent = container.parent; // If deleted the last column, should recreate it. | |
| 9336 | + | |
| 9337 | + if (0 === parent.children.length) { | |
| 9338 | + $e.run('document/elements/create', { | |
| 9339 | + container: parent, | |
| 9340 | + model: { | |
| 9341 | + elType: 'column' | |
| 9342 | + } | |
| 358 | 9343 | }); |
| 359 | - } else { | |
| 360 | - $e.internal('document/history/clear-transaction'); | |
| 361 | 9344 | } |
| 9345 | + }); | |
| 9346 | + } | |
| 9347 | + }]); | |
| 9348 | + return CreateColumnForEmptySection; | |
| 9349 | +}(_after.default); | |
| 9350 | + | |
| 9351 | +exports.CreateColumnForEmptySection = CreateColumnForEmptySection; | |
| 9352 | +var _default = CreateColumnForEmptySection; | |
| 9353 | +exports["default"] = _default; | |
| 9354 | + | |
| 9355 | +/***/ }), | |
| 9356 | + | |
| 9357 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/delete/delete-column-columns-reset-layout.js": | |
| 9358 | +/*!******************************************************************************************************************!*\ | |
| 9359 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/delete/delete-column-columns-reset-layout.js ***! | |
| 9360 | + \******************************************************************************************************************/ | |
| 9361 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9362 | + | |
| 9363 | +"use strict"; | |
| 9364 | + | |
| 9365 | + | |
| 9366 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 9367 | + | |
| 9368 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 9369 | + | |
| 9370 | +_Object$defineProperty(exports, "__esModule", { | |
| 9371 | + value: true | |
| 9372 | +}); | |
| 9373 | + | |
| 9374 | +exports["default"] = exports.DeleteColumnColumnsResetLayout = void 0; | |
| 9375 | + | |
| 9376 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 9377 | + | |
| 9378 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 9379 | + | |
| 9380 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 9381 | + | |
| 9382 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 9383 | + | |
| 9384 | +var _resetLayoutBase = _interopRequireDefault(__webpack_require__(/*! ../base/reset-layout-base */ "../assets/dev/js/editor/document/hooks/data/document/elements/base/reset-layout-base.js")); | |
| 9385 | + | |
| 9386 | +var DeleteColumnColumnsResetLayout = /*#__PURE__*/function (_ResetLayoutBase) { | |
| 9387 | + (0, _inherits2.default)(DeleteColumnColumnsResetLayout, _ResetLayoutBase); | |
| 9388 | + | |
| 9389 | + var _super = (0, _createSuper2.default)(DeleteColumnColumnsResetLayout); | |
| 9390 | + | |
| 9391 | + function DeleteColumnColumnsResetLayout() { | |
| 9392 | + (0, _classCallCheck2.default)(this, DeleteColumnColumnsResetLayout); | |
| 9393 | + return _super.apply(this, arguments); | |
| 9394 | + } | |
| 9395 | + | |
| 9396 | + (0, _createClass2.default)(DeleteColumnColumnsResetLayout, [{ | |
| 9397 | + key: "getCommand", | |
| 9398 | + value: function getCommand() { | |
| 9399 | + return 'document/elements/delete'; | |
| 9400 | + } | |
| 9401 | + }, { | |
| 9402 | + key: "getId", | |
| 9403 | + value: function getId() { | |
| 9404 | + return 'section-columns-reset-layout--document/elements/delete'; | |
| 9405 | + } | |
| 9406 | + }, { | |
| 9407 | + key: "getContainerType", | |
| 9408 | + value: function getContainerType() { | |
| 9409 | + return 'column'; | |
| 9410 | + } | |
| 9411 | + }]); | |
| 9412 | + return DeleteColumnColumnsResetLayout; | |
| 9413 | +}(_resetLayoutBase.default); | |
| 9414 | + | |
| 9415 | +exports.DeleteColumnColumnsResetLayout = DeleteColumnColumnsResetLayout; | |
| 9416 | +var _default = DeleteColumnColumnsResetLayout; | |
| 9417 | +exports["default"] = _default; | |
| 9418 | + | |
| 9419 | +/***/ }), | |
| 9420 | + | |
| 9421 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/delete/index.js": | |
| 9422 | +/*!*************************************************************************************!*\ | |
| 9423 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/delete/index.js ***! | |
| 9424 | + \*************************************************************************************/ | |
| 9425 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9426 | + | |
| 9427 | +"use strict"; | |
| 9428 | + | |
| 9429 | + | |
| 9430 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 9431 | + | |
| 9432 | +_Object$defineProperty(exports, "__esModule", { | |
| 9433 | + value: true | |
| 9434 | +}); | |
| 9435 | + | |
| 9436 | +_Object$defineProperty(exports, "CreateColumnForEmptySection", { | |
| 9437 | + enumerable: true, | |
| 9438 | + get: function get() { | |
| 9439 | + return _createColumnForEmptySection.CreateColumnForEmptySection; | |
| 9440 | + } | |
| 9441 | +}); | |
| 9442 | + | |
| 9443 | +_Object$defineProperty(exports, "DeleteColumnColumnsResetLayout", { | |
| 9444 | + enumerable: true, | |
| 9445 | + get: function get() { | |
| 9446 | + return _deleteColumnColumnsResetLayout.DeleteColumnColumnsResetLayout; | |
| 9447 | + } | |
| 9448 | +}); | |
| 9449 | + | |
| 9450 | +var _createColumnForEmptySection = __webpack_require__(/*! ./create-column-for-empty-section */ "../assets/dev/js/editor/document/hooks/data/document/elements/delete/create-column-for-empty-section.js"); | |
| 9451 | + | |
| 9452 | +var _deleteColumnColumnsResetLayout = __webpack_require__(/*! ./delete-column-columns-reset-layout */ "../assets/dev/js/editor/document/hooks/data/document/elements/delete/delete-column-columns-reset-layout.js"); | |
| 9453 | + | |
| 9454 | +/***/ }), | |
| 9455 | + | |
| 9456 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/helper.js": | |
| 9457 | +/*!*******************************************************************************!*\ | |
| 9458 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/helper.js ***! | |
| 9459 | + \*******************************************************************************/ | |
| 9460 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9461 | + | |
| 9462 | +"use strict"; | |
| 9463 | + | |
| 9464 | + | |
| 9465 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 9466 | + | |
| 9467 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 9468 | + | |
| 9469 | +_Object$defineProperty(exports, "__esModule", { | |
| 9470 | + value: true | |
| 9471 | +}); | |
| 9472 | + | |
| 9473 | +exports["default"] = void 0; | |
| 9474 | + | |
| 9475 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 9476 | + | |
| 9477 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 9478 | + | |
| 9479 | +var _commands = __webpack_require__(/*! elementor-document/elements/commands */ "../assets/dev/js/editor/document/elements/commands/index.js"); | |
| 9480 | + | |
| 9481 | +var Helper = /*#__PURE__*/function () { | |
| 9482 | + function Helper() { | |
| 9483 | + (0, _classCallCheck2.default)(this, Helper); | |
| 9484 | + } | |
| 9485 | + | |
| 9486 | + (0, _createClass2.default)(Helper, null, [{ | |
| 9487 | + key: "createSectionColumns", | |
| 9488 | + value: function createSectionColumns(containers, columns, options) { | |
| 9489 | + var structure = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; | |
| 9490 | + containers.forEach(function ( | |
| 9491 | + /**Container*/ | |
| 9492 | + container) { | |
| 9493 | + for (var loopIndex = 0; loopIndex < columns; loopIndex++) { | |
| 9494 | + var model = { | |
| 9495 | + id: elementorCommon.helpers.getUniqueId(), | |
| 9496 | + elType: 'column', | |
| 9497 | + settings: {}, | |
| 9498 | + elements: [] | |
| 9499 | + }; | |
| 9500 | + /** | |
| 9501 | + * TODO: Try improve performance of using 'document/elements/create` instead of manual create. | |
| 9502 | + */ | |
| 9503 | + | |
| 9504 | + container.view.addChildModel(model); | |
| 9505 | + /** | |
| 9506 | + * Manual history & not using of `$e.run('document/elements/create')` | |
| 9507 | + * For performance reasons. | |
| 9508 | + */ | |
| 9509 | + | |
| 9510 | + $e.internal('document/history/log-sub-item', { | |
| 9511 | + container: container, | |
| 9512 | + type: 'sub-add', | |
| 9513 | + restore: _commands.Create.restore, | |
| 9514 | + options: options, | |
| 9515 | + data: { | |
| 9516 | + containerToRestore: container, | |
| 9517 | + modelToRestore: model | |
| 9518 | + } | |
| 9519 | + }); | |
| 9520 | + } | |
| 9521 | + }); | |
| 9522 | + | |
| 9523 | + if (structure) { | |
| 9524 | + containers.forEach(function ( | |
| 9525 | + /* Container */ | |
| 9526 | + container) { | |
| 9527 | + container.view.setStructure(structure, false); | |
| 9528 | + }); | |
| 9529 | + } else if (columns) { | |
| 9530 | + containers.forEach(function ( | |
| 9531 | + /* Container */ | |
| 9532 | + container) { | |
| 9533 | + return container.view.resetLayout(); | |
| 9534 | + }); // Focus on last container. | |
| 9535 | + | |
| 9536 | + containers[containers.length - 1].model.trigger('request:edit'); | |
| 362 | 9537 | } |
| 363 | 9538 | } |
| 9539 | + }]); | |
| 9540 | + return Helper; | |
| 9541 | +}(); | |
| 9542 | + | |
| 9543 | +exports["default"] = Helper; | |
| 9544 | + | |
| 9545 | +/***/ }), | |
| 9546 | + | |
| 9547 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/move/index.js": | |
| 9548 | +/*!***********************************************************************************!*\ | |
| 9549 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/move/index.js ***! | |
| 9550 | + \***********************************************************************************/ | |
| 9551 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9552 | + | |
| 9553 | +"use strict"; | |
| 9554 | + | |
| 9555 | + | |
| 9556 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 9557 | + | |
| 9558 | +_Object$defineProperty(exports, "__esModule", { | |
| 9559 | + value: true | |
| 9560 | +}); | |
| 9561 | + | |
| 9562 | +_Object$defineProperty(exports, "SectionColumnsSetStructure", { | |
| 9563 | + enumerable: true, | |
| 9564 | + get: function get() { | |
| 9565 | + return _sectionColumnsSetStructure.SectionColumnsSetStructure; | |
| 9566 | + } | |
| 9567 | +}); | |
| 9568 | + | |
| 9569 | +var _sectionColumnsSetStructure = __webpack_require__(/*! ./section-columns-set-structure */ "../assets/dev/js/editor/document/hooks/data/document/elements/move/section-columns-set-structure.js"); | |
| 9570 | + | |
| 9571 | +/***/ }), | |
| 9572 | + | |
| 9573 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/move/section-columns-set-structure.js": | |
| 9574 | +/*!***********************************************************************************************************!*\ | |
| 9575 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/move/section-columns-set-structure.js ***! | |
| 9576 | + \***********************************************************************************************************/ | |
| 9577 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9578 | + | |
| 9579 | +"use strict"; | |
| 9580 | + | |
| 9581 | + | |
| 9582 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 9583 | + | |
| 9584 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 9585 | + | |
| 9586 | +_Object$defineProperty(exports, "__esModule", { | |
| 9587 | + value: true | |
| 9588 | +}); | |
| 9589 | + | |
| 9590 | +exports["default"] = exports.SectionColumnsSetStructure = void 0; | |
| 9591 | + | |
| 9592 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 9593 | + | |
| 9594 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 9595 | + | |
| 9596 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 9597 | + | |
| 9598 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 9599 | + | |
| 9600 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/data/after */ "../core/common/assets/js/api/modules/hooks/data/after.js")); | |
| 9601 | + | |
| 9602 | +var SectionColumnsSetStructure = /*#__PURE__*/function (_After) { | |
| 9603 | + (0, _inherits2.default)(SectionColumnsSetStructure, _After); | |
| 9604 | + | |
| 9605 | + var _super = (0, _createSuper2.default)(SectionColumnsSetStructure); | |
| 9606 | + | |
| 9607 | + function SectionColumnsSetStructure() { | |
| 9608 | + (0, _classCallCheck2.default)(this, SectionColumnsSetStructure); | |
| 9609 | + return _super.apply(this, arguments); | |
| 9610 | + } | |
| 9611 | + | |
| 9612 | + (0, _createClass2.default)(SectionColumnsSetStructure, [{ | |
| 9613 | + key: "getCommand", | |
| 9614 | + value: function getCommand() { | |
| 9615 | + return 'document/elements/move'; | |
| 9616 | + } | |
| 9617 | + }, { | |
| 9618 | + key: "getId", | |
| 9619 | + value: function getId() { | |
| 9620 | + return 'section-columns-set-structure'; | |
| 9621 | + } | |
| 9622 | + }, { | |
| 9623 | + key: "getContainerType", | |
| 9624 | + value: function getContainerType() { | |
| 9625 | + return 'column'; | |
| 9626 | + } | |
| 9627 | + }, { | |
| 9628 | + key: "getConditions", | |
| 9629 | + value: function getConditions(args) { | |
| 9630 | + var _args$containers = args.containers, | |
| 9631 | + containers = _args$containers === void 0 ? [args.container] : _args$containers, | |
| 9632 | + target = args.target; // Fire the hook only when target is not equals to moved container parent. | |
| 9633 | + | |
| 9634 | + return containers.some(function ( | |
| 9635 | + /* Container */ | |
| 9636 | + container) { | |
| 9637 | + return container.parent !== target; | |
| 9638 | + }); | |
| 9639 | + } | |
| 9640 | + }, { | |
| 9641 | + key: "apply", | |
| 9642 | + value: function apply(args) { | |
| 9643 | + var _args$containers2 = args.containers, | |
| 9644 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2, | |
| 9645 | + target = args.target; | |
| 9646 | + containers.forEach(function ( | |
| 9647 | + /* Container */ | |
| 9648 | + container) { | |
| 9649 | + return container.parent.view.resetLayout(); | |
| 9650 | + }); | |
| 9651 | + target.view.resetLayout(); | |
| 9652 | + return true; | |
| 9653 | + } | |
| 9654 | + }]); | |
| 9655 | + return SectionColumnsSetStructure; | |
| 9656 | +}(_after.default); | |
| 9657 | + | |
| 9658 | +exports.SectionColumnsSetStructure = SectionColumnsSetStructure; | |
| 9659 | +var _default = SectionColumnsSetStructure; | |
| 9660 | +exports["default"] = _default; | |
| 9661 | + | |
| 9662 | +/***/ }), | |
| 9663 | + | |
| 9664 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/paste/index.js": | |
| 9665 | +/*!************************************************************************************!*\ | |
| 9666 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/paste/index.js ***! | |
| 9667 | + \************************************************************************************/ | |
| 9668 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9669 | + | |
| 9670 | +"use strict"; | |
| 9671 | + | |
| 9672 | + | |
| 9673 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 9674 | + | |
| 9675 | +_Object$defineProperty(exports, "__esModule", { | |
| 9676 | + value: true | |
| 9677 | +}); | |
| 9678 | + | |
| 9679 | +_Object$defineProperty(exports, "IsPasteEnabled", { | |
| 9680 | + enumerable: true, | |
| 9681 | + get: function get() { | |
| 9682 | + return _isPasteEnabled.IsPasteEnabled; | |
| 9683 | + } | |
| 9684 | +}); | |
| 9685 | + | |
| 9686 | +var _isPasteEnabled = __webpack_require__(/*! ./is-paste-enabled */ "../assets/dev/js/editor/document/hooks/data/document/elements/paste/is-paste-enabled.js"); | |
| 9687 | + | |
| 9688 | +/***/ }), | |
| 9689 | + | |
| 9690 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/paste/is-paste-enabled.js": | |
| 9691 | +/*!***********************************************************************************************!*\ | |
| 9692 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/paste/is-paste-enabled.js ***! | |
| 9693 | + \***********************************************************************************************/ | |
| 9694 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9695 | + | |
| 9696 | +"use strict"; | |
| 9697 | + | |
| 9698 | + | |
| 9699 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 9700 | + | |
| 9701 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 9702 | + | |
| 9703 | +_Object$defineProperty(exports, "__esModule", { | |
| 9704 | + value: true | |
| 9705 | +}); | |
| 9706 | + | |
| 9707 | +exports["default"] = exports.IsPasteEnabled = void 0; | |
| 9708 | + | |
| 9709 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 9710 | + | |
| 9711 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 9712 | + | |
| 9713 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 9714 | + | |
| 9715 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 9716 | + | |
| 9717 | +var _dependency = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/data/dependency */ "../core/common/assets/js/api/modules/hooks/data/dependency.js")); | |
| 9718 | + | |
| 9719 | +var IsPasteEnabled = /*#__PURE__*/function (_Dependency) { | |
| 9720 | + (0, _inherits2.default)(IsPasteEnabled, _Dependency); | |
| 9721 | + | |
| 9722 | + var _super = (0, _createSuper2.default)(IsPasteEnabled); | |
| 9723 | + | |
| 9724 | + function IsPasteEnabled() { | |
| 9725 | + (0, _classCallCheck2.default)(this, IsPasteEnabled); | |
| 9726 | + return _super.apply(this, arguments); | |
| 9727 | + } | |
| 9728 | + | |
| 9729 | + (0, _createClass2.default)(IsPasteEnabled, [{ | |
| 9730 | + key: "getCommand", | |
| 9731 | + value: function getCommand() { | |
| 9732 | + return 'document/elements/paste'; | |
| 9733 | + } | |
| 9734 | + }, { | |
| 9735 | + key: "getId", | |
| 9736 | + value: function getId() { | |
| 9737 | + return 'is-paste-enabled'; | |
| 9738 | + } | |
| 9739 | + }, { | |
| 9740 | + key: "getConditions", | |
| 9741 | + value: function getConditions(args) { | |
| 9742 | + return !args.rebuild; | |
| 9743 | + } | |
| 9744 | + }, { | |
| 9745 | + key: "apply", | |
| 9746 | + value: function apply(args) { | |
| 9747 | + var _args$containers = args.containers, | |
| 9748 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 9749 | + return containers.some(function (container) { | |
| 9750 | + return $e.components.get('document/elements').utils.isPasteEnabled(container); | |
| 9751 | + }); | |
| 9752 | + } | |
| 9753 | + }]); | |
| 9754 | + return IsPasteEnabled; | |
| 9755 | +}(_dependency.default); | |
| 9756 | + | |
| 9757 | +exports.IsPasteEnabled = IsPasteEnabled; | |
| 9758 | +var _default = IsPasteEnabled; | |
| 9759 | +exports["default"] = _default; | |
| 9760 | + | |
| 9761 | +/***/ }), | |
| 9762 | + | |
| 9763 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/settings/handle-dynamic.js": | |
| 9764 | +/*!************************************************************************************************!*\ | |
| 9765 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/settings/handle-dynamic.js ***! | |
| 9766 | + \************************************************************************************************/ | |
| 9767 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9768 | + | |
| 9769 | +"use strict"; | |
| 9770 | + | |
| 9771 | + | |
| 9772 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 9773 | + | |
| 9774 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 9775 | + | |
| 9776 | +_Object$defineProperty(exports, "__esModule", { | |
| 9777 | + value: true | |
| 9778 | +}); | |
| 9779 | + | |
| 9780 | +exports["default"] = exports.HandleDynamic = void 0; | |
| 9781 | + | |
| 9782 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/defineProperty */ "../node_modules/@babel/runtime-corejs2/helpers/defineProperty.js")); | |
| 9783 | + | |
| 9784 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 9785 | + | |
| 9786 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 9787 | + | |
| 9788 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 9789 | + | |
| 9790 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 9791 | + | |
| 9792 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/data/after */ "../core/common/assets/js/api/modules/hooks/data/after.js")); | |
| 9793 | + | |
| 9794 | +var HandleDynamic = /*#__PURE__*/function (_After) { | |
| 9795 | + (0, _inherits2.default)(HandleDynamic, _After); | |
| 9796 | + | |
| 9797 | + var _super = (0, _createSuper2.default)(HandleDynamic); | |
| 9798 | + | |
| 9799 | + function HandleDynamic() { | |
| 9800 | + (0, _classCallCheck2.default)(this, HandleDynamic); | |
| 9801 | + return _super.apply(this, arguments); | |
| 9802 | + } | |
| 9803 | + | |
| 9804 | + (0, _createClass2.default)(HandleDynamic, [{ | |
| 9805 | + key: "getCommand", | |
| 9806 | + value: function getCommand() { | |
| 9807 | + return 'document/elements/settings'; | |
| 9808 | + } | |
| 9809 | + }, { | |
| 9810 | + key: "getId", | |
| 9811 | + value: function getId() { | |
| 9812 | + return 'handle-dynamic'; | |
| 9813 | + } | |
| 9814 | + }, { | |
| 9815 | + key: "getContainerType", | |
| 9816 | + value: function getContainerType() { | |
| 9817 | + return 'dynamic'; | |
| 9818 | + } | |
| 9819 | + }, { | |
| 9820 | + key: "getConditions", | |
| 9821 | + value: function getConditions(args) { | |
| 9822 | + var _args$containers = args.containers, | |
| 9823 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 9824 | + return containers.some(function ( | |
| 9825 | + /**Container*/ | |
| 9826 | + container) { | |
| 9827 | + return 'dynamic' === container.type; | |
| 9828 | + }); | |
| 9829 | + } | |
| 9830 | + }, { | |
| 9831 | + key: "apply", | |
| 9832 | + value: function apply(args) { | |
| 9833 | + var _args$containers2 = args.containers, | |
| 9834 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2; | |
| 9835 | + containers.forEach(function ( | |
| 9836 | + /**Container*/ | |
| 9837 | + container) { | |
| 9838 | + if ('dynamic' === container.type) { | |
| 9839 | + var tagText = elementor.dynamicTags.tagContainerToTagText(container), | |
| 9840 | + commandArgs = { | |
| 9841 | + container: container.parent, | |
| 9842 | + settings: (0, _defineProperty2.default)({}, container.view.options.controlName, tagText) | |
| 9843 | + }; | |
| 9844 | + $e.run('document/dynamic/settings', commandArgs); | |
| 9845 | + } | |
| 9846 | + }); | |
| 9847 | + return true; | |
| 9848 | + } | |
| 9849 | + }]); | |
| 9850 | + return HandleDynamic; | |
| 9851 | +}(_after.default); | |
| 9852 | + | |
| 9853 | +exports.HandleDynamic = HandleDynamic; | |
| 9854 | +var _default = HandleDynamic; | |
| 9855 | +exports["default"] = _default; | |
| 9856 | + | |
| 9857 | +/***/ }), | |
| 9858 | + | |
| 9859 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/settings/index.js": | |
| 9860 | +/*!***************************************************************************************!*\ | |
| 9861 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/settings/index.js ***! | |
| 9862 | + \***************************************************************************************/ | |
| 9863 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9864 | + | |
| 9865 | +"use strict"; | |
| 9866 | + | |
| 9867 | + | |
| 9868 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 9869 | + | |
| 9870 | +_Object$defineProperty(exports, "__esModule", { | |
| 9871 | + value: true | |
| 9872 | +}); | |
| 9873 | + | |
| 9874 | +_Object$defineProperty(exports, "HandleDynamic", { | |
| 9875 | + enumerable: true, | |
| 9876 | + get: function get() { | |
| 9877 | + return _handleDynamic.HandleDynamic; | |
| 9878 | + } | |
| 9879 | +}); | |
| 9880 | + | |
| 9881 | +_Object$defineProperty(exports, "ResizeColumn", { | |
| 9882 | + enumerable: true, | |
| 9883 | + get: function get() { | |
| 9884 | + return _resizeColumn.ResizeColumn; | |
| 9885 | + } | |
| 9886 | +}); | |
| 9887 | + | |
| 9888 | +_Object$defineProperty(exports, "ResizeColumnLimit", { | |
| 9889 | + enumerable: true, | |
| 9890 | + get: function get() { | |
| 9891 | + return _resizeColumnLimit.ResizeColumnLimit; | |
| 9892 | + } | |
| 9893 | +}); | |
| 9894 | + | |
| 9895 | +_Object$defineProperty(exports, "SetStructure", { | |
| 9896 | + enumerable: true, | |
| 9897 | + get: function get() { | |
| 9898 | + return _setStructure.SetStructure; | |
| 9899 | + } | |
| 9900 | +}); | |
| 9901 | + | |
| 9902 | +var _handleDynamic = __webpack_require__(/*! ./handle-dynamic */ "../assets/dev/js/editor/document/hooks/data/document/elements/settings/handle-dynamic.js"); | |
| 9903 | + | |
| 9904 | +var _resizeColumn = __webpack_require__(/*! ./resize-column */ "../assets/dev/js/editor/document/hooks/data/document/elements/settings/resize-column.js"); | |
| 9905 | + | |
| 9906 | +var _resizeColumnLimit = __webpack_require__(/*! ./resize-column-limit */ "../assets/dev/js/editor/document/hooks/data/document/elements/settings/resize-column-limit.js"); | |
| 9907 | + | |
| 9908 | +var _setStructure = __webpack_require__(/*! ./set-structure */ "../assets/dev/js/editor/document/hooks/data/document/elements/settings/set-structure.js"); | |
| 9909 | + | |
| 9910 | +/***/ }), | |
| 9911 | + | |
| 9912 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/settings/resize-column-limit.js": | |
| 9913 | +/*!*****************************************************************************************************!*\ | |
| 9914 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/settings/resize-column-limit.js ***! | |
| 9915 | + \*****************************************************************************************************/ | |
| 9916 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9917 | + | |
| 9918 | +"use strict"; | |
| 9919 | + | |
| 9920 | + | |
| 9921 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 9922 | + | |
| 9923 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 9924 | + | |
| 9925 | +_Object$defineProperty(exports, "__esModule", { | |
| 9926 | + value: true | |
| 9927 | +}); | |
| 9928 | + | |
| 9929 | +exports["default"] = exports.ResizeColumnLimit = void 0; | |
| 9930 | + | |
| 9931 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 9932 | + | |
| 9933 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 9934 | + | |
| 9935 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 9936 | + | |
| 9937 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 9938 | + | |
| 9939 | +var _dependency = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/data/dependency */ "../core/common/assets/js/api/modules/hooks/data/dependency.js")); | |
| 9940 | + | |
| 9941 | +var _section = __webpack_require__(/*! elementor-elements/views/section */ "../assets/dev/js/editor/elements/views/section.js"); | |
| 9942 | + | |
| 9943 | +var ResizeColumnLimit = /*#__PURE__*/function (_Dependency) { | |
| 9944 | + (0, _inherits2.default)(ResizeColumnLimit, _Dependency); | |
| 9945 | + | |
| 9946 | + var _super = (0, _createSuper2.default)(ResizeColumnLimit); | |
| 9947 | + | |
| 9948 | + function ResizeColumnLimit() { | |
| 9949 | + (0, _classCallCheck2.default)(this, ResizeColumnLimit); | |
| 9950 | + return _super.apply(this, arguments); | |
| 9951 | + } | |
| 9952 | + | |
| 9953 | + (0, _createClass2.default)(ResizeColumnLimit, [{ | |
| 9954 | + key: "getCommand", | |
| 9955 | + value: function getCommand() { | |
| 9956 | + return 'document/elements/settings'; | |
| 9957 | + } | |
| 9958 | + }, { | |
| 9959 | + key: "getId", | |
| 9960 | + value: function getId() { | |
| 9961 | + return 'resize-column-limit'; | |
| 9962 | + } | |
| 9963 | + }, { | |
| 9964 | + key: "getContainerType", | |
| 9965 | + value: function getContainerType() { | |
| 9966 | + return 'column'; | |
| 9967 | + } | |
| 9968 | + }, { | |
| 9969 | + key: "getConditions", | |
| 9970 | + value: function getConditions(args) { | |
| 9971 | + return args.settings._inline_size; | |
| 9972 | + } | |
| 9973 | + }, { | |
| 9974 | + key: "apply", | |
| 9975 | + value: function apply(args) { | |
| 9976 | + var _args$containers = args.containers, | |
| 9977 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 9978 | + return containers.some(function ( | |
| 9979 | + /**Container*/ | |
| 9980 | + container) { | |
| 9981 | + var parentView = container.parent.view, | |
| 9982 | + columnView = container.view, | |
| 9983 | + currentSize = container.settings.get('_inline_size') || container.settings.get('_column_size'), | |
| 9984 | + newSize = args.settings._inline_size, | |
| 9985 | + nextChildView = parentView.getNextColumn(columnView) || parentView.getPreviousColumn(columnView); | |
| 9986 | + | |
| 9987 | + if (!nextChildView) { | |
| 9988 | + if ($e.devTools) { | |
| 9989 | + $e.devTools.log.error('There is not any next column'); | |
| 9990 | + } | |
| 9991 | + | |
| 9992 | + return false; | |
| 9993 | + } | |
| 9994 | + | |
| 9995 | + var $nextElement = nextChildView.$el, | |
| 9996 | + nextElementCurrentSize = +nextChildView.model.getSetting('_inline_size') || parentView.getColumnPercentSize($nextElement, $nextElement[0].getBoundingClientRect().width), | |
| 9997 | + nextElementNewSize = +(currentSize + nextElementCurrentSize - newSize).toFixed(3); | |
| 9998 | + | |
| 9999 | + if (nextElementNewSize < _section.DEFAULT_INNER_SECTION_COLUMNS) { | |
| 10000 | + if ($e.devTools) { | |
| 10001 | + $e.devTools.log.error('New column width is too large'); | |
| 10002 | + } | |
| 10003 | + | |
| 10004 | + return false; | |
| 10005 | + } | |
| 10006 | + | |
| 10007 | + if (newSize < _section.DEFAULT_INNER_SECTION_COLUMNS) { | |
| 10008 | + if ($e.devTools) { | |
| 10009 | + $e.devTools.log.error('New column width is too small'); | |
| 10010 | + } | |
| 10011 | + | |
| 10012 | + return false; | |
| 10013 | + } | |
| 10014 | + | |
| 10015 | + return true; | |
| 10016 | + }); | |
| 10017 | + } | |
| 10018 | + }]); | |
| 10019 | + return ResizeColumnLimit; | |
| 10020 | +}(_dependency.default); | |
| 10021 | + | |
| 10022 | +exports.ResizeColumnLimit = ResizeColumnLimit; | |
| 10023 | +var _default = ResizeColumnLimit; | |
| 10024 | +exports["default"] = _default; | |
| 10025 | + | |
| 10026 | +/***/ }), | |
| 10027 | + | |
| 10028 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/settings/resize-column.js": | |
| 10029 | +/*!***********************************************************************************************!*\ | |
| 10030 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/settings/resize-column.js ***! | |
| 10031 | + \***********************************************************************************************/ | |
| 10032 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 10033 | + | |
| 10034 | +"use strict"; | |
| 10035 | + | |
| 10036 | + | |
| 10037 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 10038 | + | |
| 10039 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 10040 | + | |
| 10041 | +_Object$defineProperty(exports, "__esModule", { | |
| 10042 | + value: true | |
| 10043 | +}); | |
| 10044 | + | |
| 10045 | +exports["default"] = exports.ResizeColumn = void 0; | |
| 10046 | + | |
| 10047 | +__webpack_require__(/*! core-js/modules/es6.array.find.js */ "../node_modules/core-js/modules/es6.array.find.js"); | |
| 10048 | + | |
| 10049 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 10050 | + | |
| 10051 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 10052 | + | |
| 10053 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 10054 | + | |
| 10055 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 10056 | + | |
| 10057 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/data/after */ "../core/common/assets/js/api/modules/hooks/data/after.js")); | |
| 10058 | + | |
| 10059 | +var ResizeColumn = /*#__PURE__*/function (_After) { | |
| 10060 | + (0, _inherits2.default)(ResizeColumn, _After); | |
| 10061 | + | |
| 10062 | + var _super = (0, _createSuper2.default)(ResizeColumn); | |
| 10063 | + | |
| 10064 | + function ResizeColumn() { | |
| 10065 | + (0, _classCallCheck2.default)(this, ResizeColumn); | |
| 10066 | + return _super.apply(this, arguments); | |
| 10067 | + } | |
| 10068 | + | |
| 10069 | + (0, _createClass2.default)(ResizeColumn, [{ | |
| 10070 | + key: "getCommand", | |
| 10071 | + value: function getCommand() { | |
| 10072 | + return 'document/elements/settings'; | |
| 10073 | + } | |
| 10074 | + }, { | |
| 10075 | + key: "getId", | |
| 10076 | + value: function getId() { | |
| 10077 | + return 'resize-column'; | |
| 10078 | + } | |
| 10079 | + }, { | |
| 10080 | + key: "getContainerType", | |
| 10081 | + value: function getContainerType() { | |
| 10082 | + return 'column'; | |
| 10083 | + } | |
| 10084 | + }, { | |
| 10085 | + key: "getConditions", | |
| 10086 | + value: function getConditions(args) { | |
| 10087 | + return args.settings._inline_size; | |
| 10088 | + } | |
| 10089 | + }, { | |
| 10090 | + key: "apply", | |
| 10091 | + value: function apply(args) { | |
| 10092 | + var _this = this; | |
| 10093 | + | |
| 10094 | + var _args$containers = args.containers, | |
| 10095 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 10096 | + containers.forEach(function ( | |
| 10097 | + /**Container*/ | |
| 10098 | + container) { | |
| 10099 | + _this.resizeColumn(container, args.settings._inline_size); | |
| 10100 | + }); | |
| 10101 | + return true; | |
| 10102 | + } | |
| 10103 | + }, { | |
| 10104 | + key: "resizeColumn", | |
| 10105 | + value: function resizeColumn(container, newSize) { | |
| 10106 | + var nextContainer = container.parent.view.getNeighborContainer(container); | |
| 10107 | + | |
| 10108 | + if (!nextContainer) { | |
| 10109 | + return false; | |
| 10110 | + } | |
| 10111 | + | |
| 10112 | + var parentView = container.parent.view, | |
| 10113 | + currentColumnView = container.view; | |
| 10114 | + var currentSize = null; | |
| 10115 | + | |
| 10116 | + if (undefined === container.oldValues || null === container.oldValues._inline_size) { | |
| 10117 | + // Mean, that it was not set before ( first time ). | |
| 10118 | + currentSize = container.settings.get('_column_size'); | |
| 10119 | + } else { | |
| 10120 | + var totalWidth = parentView.$el.find(' > .elementor-container')[0].getBoundingClientRect().width; | |
| 10121 | + currentSize = +(container.oldValues._inline_size || currentColumnView.el.getBoundingClientRect().width / totalWidth * 100); | |
| 10122 | + } | |
| 10123 | + | |
| 10124 | + var nextChildView = nextContainer.view, | |
| 10125 | + $nextElement = nextChildView.$el, | |
| 10126 | + nextElementCurrentSize = +nextChildView.model.getSetting('_inline_size') || container.parent.view.getColumnPercentSize($nextElement, $nextElement[0].getBoundingClientRect().width), | |
| 10127 | + nextElementNewSize = +(currentSize + nextElementCurrentSize - newSize).toFixed(3); | |
| 10128 | + /** | |
| 10129 | + * TODO: Hook prevented ( next command will not call recursive hook ), but we didnt tell the hook to be prevented | |
| 10130 | + * consider: '$e.hooks.preventRecursive()'. | |
| 10131 | + */ | |
| 10132 | + | |
| 10133 | + $e.run('document/elements/settings', { | |
| 10134 | + containers: [nextContainer], | |
| 10135 | + settings: { | |
| 10136 | + _inline_size: nextElementNewSize | |
| 10137 | + }, | |
| 10138 | + options: { | |
| 10139 | + callbacks: { | |
| 10140 | + 'resize-column-limit': false | |
| 10141 | + }, | |
| 10142 | + history: { | |
| 10143 | + title: elementor.config.elements.column.controls._inline_size.label | |
| 10144 | + }, | |
| 10145 | + external: true, | |
| 10146 | + debounce: true | |
| 10147 | + } | |
| 10148 | + }); | |
| 10149 | + return true; | |
| 10150 | + } | |
| 10151 | + }]); | |
| 10152 | + return ResizeColumn; | |
| 10153 | +}(_after.default); | |
| 10154 | + | |
| 10155 | +exports.ResizeColumn = ResizeColumn; | |
| 10156 | +var _default = ResizeColumn; | |
| 10157 | +exports["default"] = _default; | |
| 10158 | + | |
| 10159 | +/***/ }), | |
| 10160 | + | |
| 10161 | +/***/ "../assets/dev/js/editor/document/hooks/data/document/elements/settings/set-structure.js": | |
| 10162 | +/*!***********************************************************************************************!*\ | |
| 10163 | + !*** ../assets/dev/js/editor/document/hooks/data/document/elements/settings/set-structure.js ***! | |
| 10164 | + \***********************************************************************************************/ | |
| 10165 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 10166 | + | |
| 10167 | +"use strict"; | |
| 10168 | + | |
| 10169 | + | |
| 10170 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 10171 | + | |
| 10172 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 10173 | + | |
| 10174 | +_Object$defineProperty(exports, "__esModule", { | |
| 10175 | + value: true | |
| 10176 | +}); | |
| 10177 | + | |
| 10178 | +exports["default"] = exports.SetStructure = void 0; | |
| 10179 | + | |
| 10180 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 10181 | + | |
| 10182 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 10183 | + | |
| 10184 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 10185 | + | |
| 10186 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 10187 | + | |
| 10188 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/data/after */ "../core/common/assets/js/api/modules/hooks/data/after.js")); | |
| 10189 | + | |
| 10190 | +var SetStructure = /*#__PURE__*/function (_After) { | |
| 10191 | + (0, _inherits2.default)(SetStructure, _After); | |
| 10192 | + | |
| 10193 | + var _super = (0, _createSuper2.default)(SetStructure); | |
| 10194 | + | |
| 10195 | + function SetStructure() { | |
| 10196 | + (0, _classCallCheck2.default)(this, SetStructure); | |
| 10197 | + return _super.apply(this, arguments); | |
| 10198 | + } | |
| 10199 | + | |
| 10200 | + (0, _createClass2.default)(SetStructure, [{ | |
| 10201 | + key: "getCommand", | |
| 10202 | + value: function getCommand() { | |
| 10203 | + return 'document/elements/settings'; | |
| 10204 | + } | |
| 10205 | + }, { | |
| 10206 | + key: "getId", | |
| 10207 | + value: function getId() { | |
| 10208 | + return 'set-structure'; | |
| 10209 | + } | |
| 10210 | + }, { | |
| 10211 | + key: "getContainerType", | |
| 10212 | + value: function getContainerType() { | |
| 10213 | + return 'section'; | |
| 10214 | + } | |
| 10215 | + }, { | |
| 10216 | + key: "getConditions", | |
| 10217 | + value: function getConditions(args) { | |
| 10218 | + return !!args.settings.structure; | |
| 10219 | + } | |
| 10220 | + }, { | |
| 10221 | + key: "apply", | |
| 10222 | + value: function apply(args) { | |
| 10223 | + var _args$containers = args.containers, | |
| 10224 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 10225 | + containers.forEach(function ( | |
| 10226 | + /**Container*/ | |
| 10227 | + container) { | |
| 10228 | + container.view.adjustColumns(); | |
| 10229 | + }); | |
| 10230 | + return true; | |
| 10231 | + } | |
| 10232 | + }]); | |
| 10233 | + return SetStructure; | |
| 10234 | +}(_after.default); | |
| 10235 | + | |
| 10236 | +exports.SetStructure = SetStructure; | |
| 10237 | +var _default = SetStructure; | |
| 10238 | +exports["default"] = _default; | |
| 10239 | + | |
| 10240 | +/***/ }), | |
| 10241 | + | |
| 10242 | +/***/ "../assets/dev/js/editor/document/hooks/data/index.js": | |
| 10243 | +/*!************************************************************!*\ | |
| 10244 | + !*** ../assets/dev/js/editor/document/hooks/data/index.js ***! | |
| 10245 | + \************************************************************/ | |
| 10246 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 10247 | + | |
| 10248 | +"use strict"; | |
| 10249 | + | |
| 10250 | + | |
| 10251 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 10252 | + | |
| 10253 | +var _Object$keys = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js"); | |
| 10254 | + | |
| 10255 | +_Object$defineProperty(exports, "__esModule", { | |
| 10256 | + value: true | |
| 10257 | +}); | |
| 10258 | + | |
| 10259 | +var _create = __webpack_require__(/*! ./document/elements/create/ */ "../assets/dev/js/editor/document/hooks/data/document/elements/create/index.js"); | |
| 10260 | + | |
| 10261 | +_Object$keys(_create).forEach(function (key) { | |
| 10262 | + if (key === "default" || key === "__esModule") return; | |
| 10263 | + if (key in exports && exports[key] === _create[key]) return; | |
| 10264 | + | |
| 10265 | + _Object$defineProperty(exports, key, { | |
| 10266 | + enumerable: true, | |
| 10267 | + get: function get() { | |
| 10268 | + return _create[key]; | |
| 10269 | + } | |
| 10270 | + }); | |
| 10271 | +}); | |
| 10272 | + | |
| 10273 | +var _delete = __webpack_require__(/*! ./document/elements/delete/ */ "../assets/dev/js/editor/document/hooks/data/document/elements/delete/index.js"); | |
| 10274 | + | |
| 10275 | +_Object$keys(_delete).forEach(function (key) { | |
| 10276 | + if (key === "default" || key === "__esModule") return; | |
| 10277 | + if (key in exports && exports[key] === _delete[key]) return; | |
| 10278 | + | |
| 10279 | + _Object$defineProperty(exports, key, { | |
| 10280 | + enumerable: true, | |
| 10281 | + get: function get() { | |
| 10282 | + return _delete[key]; | |
| 10283 | + } | |
| 10284 | + }); | |
| 10285 | +}); | |
| 10286 | + | |
| 10287 | +var _move = __webpack_require__(/*! ./document/elements/move/ */ "../assets/dev/js/editor/document/hooks/data/document/elements/move/index.js"); | |
| 10288 | + | |
| 10289 | +_Object$keys(_move).forEach(function (key) { | |
| 10290 | + if (key === "default" || key === "__esModule") return; | |
| 10291 | + if (key in exports && exports[key] === _move[key]) return; | |
| 10292 | + | |
| 10293 | + _Object$defineProperty(exports, key, { | |
| 10294 | + enumerable: true, | |
| 10295 | + get: function get() { | |
| 10296 | + return _move[key]; | |
| 10297 | + } | |
| 10298 | + }); | |
| 10299 | +}); | |
| 10300 | + | |
| 10301 | +var _paste = __webpack_require__(/*! ./document/elements/paste/ */ "../assets/dev/js/editor/document/hooks/data/document/elements/paste/index.js"); | |
| 10302 | + | |
| 10303 | +_Object$keys(_paste).forEach(function (key) { | |
| 10304 | + if (key === "default" || key === "__esModule") return; | |
| 10305 | + if (key in exports && exports[key] === _paste[key]) return; | |
| 10306 | + | |
| 10307 | + _Object$defineProperty(exports, key, { | |
| 10308 | + enumerable: true, | |
| 10309 | + get: function get() { | |
| 10310 | + return _paste[key]; | |
| 10311 | + } | |
| 10312 | + }); | |
| 10313 | +}); | |
| 10314 | + | |
| 10315 | +var _settings = __webpack_require__(/*! ./document/elements/settings/ */ "../assets/dev/js/editor/document/hooks/data/document/elements/settings/index.js"); | |
| 10316 | + | |
| 10317 | +_Object$keys(_settings).forEach(function (key) { | |
| 10318 | + if (key === "default" || key === "__esModule") return; | |
| 10319 | + if (key in exports && exports[key] === _settings[key]) return; | |
| 10320 | + | |
| 10321 | + _Object$defineProperty(exports, key, { | |
| 10322 | + enumerable: true, | |
| 10323 | + get: function get() { | |
| 10324 | + return _settings[key]; | |
| 10325 | + } | |
| 10326 | + }); | |
| 10327 | +}); | |
| 10328 | + | |
| 10329 | +/***/ }), | |
| 10330 | + | |
| 10331 | +/***/ "../assets/dev/js/editor/document/hooks/index.js": | |
| 10332 | +/*!*******************************************************!*\ | |
| 10333 | + !*** ../assets/dev/js/editor/document/hooks/index.js ***! | |
| 10334 | + \*******************************************************/ | |
| 10335 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 10336 | + | |
| 10337 | +"use strict"; | |
| 10338 | + | |
| 10339 | + | |
| 10340 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 10341 | + | |
| 10342 | +var _Object$keys = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js"); | |
| 10343 | + | |
| 10344 | +_Object$defineProperty(exports, "__esModule", { | |
| 10345 | + value: true | |
| 10346 | +}); | |
| 10347 | + | |
| 10348 | +var _data = __webpack_require__(/*! ./data/ */ "../assets/dev/js/editor/document/hooks/data/index.js"); | |
| 10349 | + | |
| 10350 | +_Object$keys(_data).forEach(function (key) { | |
| 10351 | + if (key === "default" || key === "__esModule") return; | |
| 10352 | + if (key in exports && exports[key] === _data[key]) return; | |
| 10353 | + | |
| 10354 | + _Object$defineProperty(exports, key, { | |
| 10355 | + enumerable: true, | |
| 10356 | + get: function get() { | |
| 10357 | + return _data[key]; | |
| 10358 | + } | |
| 10359 | + }); | |
| 10360 | +}); | |
| 10361 | + | |
| 10362 | +var _ui = __webpack_require__(/*! ./ui/ */ "../assets/dev/js/editor/document/hooks/ui/index.js"); | |
| 10363 | + | |
| 10364 | +_Object$keys(_ui).forEach(function (key) { | |
| 10365 | + if (key === "default" || key === "__esModule") return; | |
| 10366 | + if (key in exports && exports[key] === _ui[key]) return; | |
| 10367 | + | |
| 10368 | + _Object$defineProperty(exports, key, { | |
| 10369 | + enumerable: true, | |
| 10370 | + get: function get() { | |
| 10371 | + return _ui[key]; | |
| 10372 | + } | |
| 10373 | + }); | |
| 10374 | +}); | |
| 10375 | + | |
| 10376 | +/***/ }), | |
| 10377 | + | |
| 10378 | +/***/ "../assets/dev/js/editor/document/hooks/ui/create/column-is-populated.js": | |
| 10379 | +/*!*******************************************************************************!*\ | |
| 10380 | + !*** ../assets/dev/js/editor/document/hooks/ui/create/column-is-populated.js ***! | |
| 10381 | + \*******************************************************************************/ | |
| 10382 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 10383 | + | |
| 10384 | +"use strict"; | |
| 10385 | + | |
| 10386 | + | |
| 10387 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 10388 | + | |
| 10389 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 10390 | + | |
| 10391 | +_Object$defineProperty(exports, "__esModule", { | |
| 10392 | + value: true | |
| 10393 | +}); | |
| 10394 | + | |
| 10395 | +exports["default"] = exports.ColumnIsPopulated = void 0; | |
| 10396 | + | |
| 10397 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 10398 | + | |
| 10399 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 10400 | + | |
| 10401 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 10402 | + | |
| 10403 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 10404 | + | |
| 10405 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/ui/after */ "../core/common/assets/js/api/modules/hooks/ui/after.js")); | |
| 10406 | + | |
| 10407 | +var ColumnIsPopulated = /*#__PURE__*/function (_After) { | |
| 10408 | + (0, _inherits2.default)(ColumnIsPopulated, _After); | |
| 10409 | + | |
| 10410 | + var _super = (0, _createSuper2.default)(ColumnIsPopulated); | |
| 10411 | + | |
| 10412 | + function ColumnIsPopulated() { | |
| 10413 | + (0, _classCallCheck2.default)(this, ColumnIsPopulated); | |
| 10414 | + return _super.apply(this, arguments); | |
| 10415 | + } | |
| 10416 | + | |
| 10417 | + (0, _createClass2.default)(ColumnIsPopulated, [{ | |
| 10418 | + key: "getCommand", | |
| 10419 | + value: function getCommand() { | |
| 10420 | + return 'document/elements/create'; | |
| 10421 | + } | |
| 10422 | + }, { | |
| 10423 | + key: "getId", | |
| 10424 | + value: function getId() { | |
| 10425 | + return 'column-is-populated'; | |
| 10426 | + } | |
| 10427 | + }, { | |
| 10428 | + key: "getConditions", | |
| 10429 | + value: function getConditions(args) { | |
| 10430 | + var _args$containers = args.containers, | |
| 10431 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; // If the created element, was created at column. | |
| 10432 | + | |
| 10433 | + return containers.some(function ( | |
| 10434 | + /**Container*/ | |
| 10435 | + container) { | |
| 10436 | + return 'column' === container.model.get('elType'); | |
| 10437 | + }); | |
| 10438 | + } | |
| 10439 | + }, { | |
| 10440 | + key: "apply", | |
| 10441 | + value: function apply(args) { | |
| 10442 | + var _args$containers2 = args.containers, | |
| 10443 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2; | |
| 10444 | + containers.forEach(function ( | |
| 10445 | + /* Container */ | |
| 10446 | + container) { | |
| 10447 | + if ('column' === container.model.get('elType')) { | |
| 10448 | + container.view.changeChildContainerClasses(); | |
| 10449 | + } | |
| 10450 | + }); | |
| 10451 | + } | |
| 10452 | + }]); | |
| 10453 | + return ColumnIsPopulated; | |
| 10454 | +}(_after.default); | |
| 10455 | + | |
| 10456 | +exports.ColumnIsPopulated = ColumnIsPopulated; | |
| 10457 | +var _default = ColumnIsPopulated; | |
| 10458 | +exports["default"] = _default; | |
| 10459 | + | |
| 10460 | +/***/ }), | |
| 10461 | + | |
| 10462 | +/***/ "../assets/dev/js/editor/document/hooks/ui/create/index.js": | |
| 10463 | +/*!*****************************************************************!*\ | |
| 10464 | + !*** ../assets/dev/js/editor/document/hooks/ui/create/index.js ***! | |
| 10465 | + \*****************************************************************/ | |
| 10466 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 10467 | + | |
| 10468 | +"use strict"; | |
| 10469 | + | |
| 10470 | + | |
| 10471 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 10472 | + | |
| 10473 | +_Object$defineProperty(exports, "__esModule", { | |
| 10474 | + value: true | |
| 10475 | +}); | |
| 10476 | + | |
| 10477 | +_Object$defineProperty(exports, "ColumnIsPopulated", { | |
| 10478 | + enumerable: true, | |
| 10479 | + get: function get() { | |
| 10480 | + return _columnIsPopulated.ColumnIsPopulated; | |
| 10481 | + } | |
| 10482 | +}); | |
| 10483 | + | |
| 10484 | +_Object$defineProperty(exports, "CreateSectionIsFull", { | |
| 10485 | + enumerable: true, | |
| 10486 | + get: function get() { | |
| 10487 | + return _sectionIsFull.CreateSectionIsFull; | |
| 10488 | + } | |
| 10489 | +}); | |
| 10490 | + | |
| 10491 | +var _columnIsPopulated = __webpack_require__(/*! ../create/column-is-populated.js */ "../assets/dev/js/editor/document/hooks/ui/create/column-is-populated.js"); | |
| 10492 | + | |
| 10493 | +var _sectionIsFull = __webpack_require__(/*! ./section-is-full */ "../assets/dev/js/editor/document/hooks/ui/create/section-is-full.js"); | |
| 10494 | + | |
| 10495 | +/***/ }), | |
| 10496 | + | |
| 10497 | +/***/ "../assets/dev/js/editor/document/hooks/ui/create/section-is-full.js": | |
| 10498 | +/*!***************************************************************************!*\ | |
| 10499 | + !*** ../assets/dev/js/editor/document/hooks/ui/create/section-is-full.js ***! | |
| 10500 | + \***************************************************************************/ | |
| 10501 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 10502 | + | |
| 10503 | +"use strict"; | |
| 10504 | + | |
| 10505 | + | |
| 10506 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 10507 | + | |
| 10508 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 10509 | + | |
| 10510 | +_Object$defineProperty(exports, "__esModule", { | |
| 10511 | + value: true | |
| 10512 | +}); | |
| 10513 | + | |
| 10514 | +exports["default"] = exports.CreateSectionIsFull = void 0; | |
| 10515 | + | |
| 10516 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 10517 | + | |
| 10518 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 10519 | + | |
| 10520 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 10521 | + | |
| 10522 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 10523 | + | |
| 10524 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/ui/after */ "../core/common/assets/js/api/modules/hooks/ui/after.js")); | |
| 10525 | + | |
| 10526 | +var CreateSectionIsFull = /*#__PURE__*/function (_After) { | |
| 10527 | + (0, _inherits2.default)(CreateSectionIsFull, _After); | |
| 10528 | + | |
| 10529 | + var _super = (0, _createSuper2.default)(CreateSectionIsFull); | |
| 10530 | + | |
| 10531 | + function CreateSectionIsFull() { | |
| 10532 | + (0, _classCallCheck2.default)(this, CreateSectionIsFull); | |
| 10533 | + return _super.apply(this, arguments); | |
| 10534 | + } | |
| 10535 | + | |
| 10536 | + (0, _createClass2.default)(CreateSectionIsFull, [{ | |
| 10537 | + key: "getCommand", | |
| 10538 | + value: function getCommand() { | |
| 10539 | + return 'document/elements/create'; | |
| 10540 | + } | |
| 10541 | + }, { | |
| 10542 | + key: "getId", | |
| 10543 | + value: function getId() { | |
| 10544 | + return 'create-section-is-full'; | |
| 10545 | + } | |
| 10546 | + }, { | |
| 10547 | + key: "getConditions", | |
| 10548 | + value: function getConditions(args) { | |
| 10549 | + var _args$containers = args.containers, | |
| 10550 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 10551 | + return containers.some(function ( | |
| 10552 | + /* Container */ | |
| 10553 | + container) { | |
| 10554 | + return 'section' === container.model.get('elType'); | |
| 10555 | + }); | |
| 10556 | + } | |
| 10557 | + }, { | |
| 10558 | + key: "apply", | |
| 10559 | + value: function apply(args) { | |
| 10560 | + var _args$containers2 = args.containers, | |
| 10561 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2; | |
| 10562 | + containers.forEach(function ( | |
| 10563 | + /* Container */ | |
| 10564 | + container) { | |
| 10565 | + if ('section' === container.model.get('elType')) { | |
| 10566 | + container.view.toggleSectionIsFull(); | |
| 10567 | + } | |
| 10568 | + }); | |
| 10569 | + } | |
| 10570 | + }]); | |
| 10571 | + return CreateSectionIsFull; | |
| 10572 | +}(_after.default); | |
| 10573 | + | |
| 10574 | +exports.CreateSectionIsFull = CreateSectionIsFull; | |
| 10575 | +var _default = CreateSectionIsFull; | |
| 10576 | +exports["default"] = _default; | |
| 10577 | + | |
| 10578 | +/***/ }), | |
| 10579 | + | |
| 10580 | +/***/ "../assets/dev/js/editor/document/hooks/ui/delete/column-is-empty.js": | |
| 10581 | +/*!***************************************************************************!*\ | |
| 10582 | + !*** ../assets/dev/js/editor/document/hooks/ui/delete/column-is-empty.js ***! | |
| 10583 | + \***************************************************************************/ | |
| 10584 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 10585 | + | |
| 10586 | +"use strict"; | |
| 10587 | + | |
| 10588 | + | |
| 10589 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 10590 | + | |
| 10591 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 10592 | + | |
| 10593 | +_Object$defineProperty(exports, "__esModule", { | |
| 10594 | + value: true | |
| 10595 | +}); | |
| 10596 | + | |
| 10597 | +exports["default"] = exports.ColumnIsEmpty = void 0; | |
| 10598 | + | |
| 10599 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 10600 | + | |
| 10601 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 10602 | + | |
| 10603 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 10604 | + | |
| 10605 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 10606 | + | |
| 10607 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/ui/after */ "../core/common/assets/js/api/modules/hooks/ui/after.js")); | |
| 10608 | + | |
| 10609 | +var ColumnIsEmpty = /*#__PURE__*/function (_After) { | |
| 10610 | + (0, _inherits2.default)(ColumnIsEmpty, _After); | |
| 10611 | + | |
| 10612 | + var _super = (0, _createSuper2.default)(ColumnIsEmpty); | |
| 10613 | + | |
| 10614 | + function ColumnIsEmpty() { | |
| 10615 | + (0, _classCallCheck2.default)(this, ColumnIsEmpty); | |
| 10616 | + return _super.apply(this, arguments); | |
| 10617 | + } | |
| 10618 | + | |
| 10619 | + (0, _createClass2.default)(ColumnIsEmpty, [{ | |
| 10620 | + key: "getCommand", | |
| 10621 | + value: function getCommand() { | |
| 10622 | + return 'document/elements/delete'; | |
| 10623 | + } | |
| 10624 | + }, { | |
| 10625 | + key: "getId", | |
| 10626 | + value: function getId() { | |
| 10627 | + return 'column-is-empty'; | |
| 10628 | + } | |
| 10629 | + }, { | |
| 10630 | + key: "getConditions", | |
| 10631 | + value: function getConditions(args) { | |
| 10632 | + var _args$containers = args.containers, | |
| 10633 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; // If the deleted element, was deleted from column. | |
| 10634 | + | |
| 10635 | + return containers.some(function ( | |
| 10636 | + /**Container*/ | |
| 10637 | + container) { | |
| 10638 | + return 'column' === container.parent.model.get('elType'); | |
| 10639 | + }); | |
| 10640 | + } | |
| 10641 | + }, { | |
| 10642 | + key: "apply", | |
| 10643 | + value: function apply(args) { | |
| 10644 | + var _args$containers2 = args.containers, | |
| 10645 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2; | |
| 10646 | + containers.forEach(function ( | |
| 10647 | + /* Container */ | |
| 10648 | + container) { | |
| 10649 | + if ('column' === container.parent.model.get('elType')) { | |
| 10650 | + container.parent.view.changeChildContainerClasses(); | |
| 10651 | + } | |
| 10652 | + }); | |
| 10653 | + } | |
| 10654 | + }]); | |
| 10655 | + return ColumnIsEmpty; | |
| 10656 | +}(_after.default); | |
| 10657 | + | |
| 10658 | +exports.ColumnIsEmpty = ColumnIsEmpty; | |
| 10659 | +var _default = ColumnIsEmpty; | |
| 10660 | +exports["default"] = _default; | |
| 10661 | + | |
| 10662 | +/***/ }), | |
| 10663 | + | |
| 10664 | +/***/ "../assets/dev/js/editor/document/hooks/ui/delete/index.js": | |
| 10665 | +/*!*****************************************************************!*\ | |
| 10666 | + !*** ../assets/dev/js/editor/document/hooks/ui/delete/index.js ***! | |
| 10667 | + \*****************************************************************/ | |
| 10668 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 10669 | + | |
| 10670 | +"use strict"; | |
| 10671 | + | |
| 10672 | + | |
| 10673 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 10674 | + | |
| 10675 | +_Object$defineProperty(exports, "__esModule", { | |
| 10676 | + value: true | |
| 10677 | +}); | |
| 10678 | + | |
| 10679 | +_Object$defineProperty(exports, "ColumnIsEmpty", { | |
| 10680 | + enumerable: true, | |
| 10681 | + get: function get() { | |
| 10682 | + return _columnIsEmpty.ColumnIsEmpty; | |
| 10683 | + } | |
| 10684 | +}); | |
| 10685 | + | |
| 10686 | +_Object$defineProperty(exports, "DeleteSectionIsFull", { | |
| 10687 | + enumerable: true, | |
| 10688 | + get: function get() { | |
| 10689 | + return _sectionIsFull.DeleteSectionIsFull; | |
| 10690 | + } | |
| 10691 | +}); | |
| 10692 | + | |
| 10693 | +var _columnIsEmpty = __webpack_require__(/*! ./column-is-empty */ "../assets/dev/js/editor/document/hooks/ui/delete/column-is-empty.js"); | |
| 10694 | + | |
| 10695 | +var _sectionIsFull = __webpack_require__(/*! ./section-is-full */ "../assets/dev/js/editor/document/hooks/ui/delete/section-is-full.js"); | |
| 10696 | + | |
| 10697 | +/***/ }), | |
| 10698 | + | |
| 10699 | +/***/ "../assets/dev/js/editor/document/hooks/ui/delete/section-is-full.js": | |
| 10700 | +/*!***************************************************************************!*\ | |
| 10701 | + !*** ../assets/dev/js/editor/document/hooks/ui/delete/section-is-full.js ***! | |
| 10702 | + \***************************************************************************/ | |
| 10703 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 10704 | + | |
| 10705 | +"use strict"; | |
| 10706 | + | |
| 10707 | + | |
| 10708 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 10709 | + | |
| 10710 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 10711 | + | |
| 10712 | +_Object$defineProperty(exports, "__esModule", { | |
| 10713 | + value: true | |
| 10714 | +}); | |
| 10715 | + | |
| 10716 | +exports["default"] = exports.DeleteSectionIsFull = void 0; | |
| 10717 | + | |
| 10718 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 10719 | + | |
| 10720 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 10721 | + | |
| 10722 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 10723 | + | |
| 10724 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 10725 | + | |
| 10726 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/ui/after */ "../core/common/assets/js/api/modules/hooks/ui/after.js")); | |
| 10727 | + | |
| 10728 | +var DeleteSectionIsFull = /*#__PURE__*/function (_After) { | |
| 10729 | + (0, _inherits2.default)(DeleteSectionIsFull, _After); | |
| 10730 | + | |
| 10731 | + var _super = (0, _createSuper2.default)(DeleteSectionIsFull); | |
| 10732 | + | |
| 10733 | + function DeleteSectionIsFull() { | |
| 10734 | + (0, _classCallCheck2.default)(this, DeleteSectionIsFull); | |
| 10735 | + return _super.apply(this, arguments); | |
| 10736 | + } | |
| 10737 | + | |
| 10738 | + (0, _createClass2.default)(DeleteSectionIsFull, [{ | |
| 10739 | + key: "getCommand", | |
| 10740 | + value: function getCommand() { | |
| 10741 | + return 'document/elements/delete'; | |
| 10742 | + } | |
| 10743 | + }, { | |
| 10744 | + key: "getId", | |
| 10745 | + value: function getId() { | |
| 10746 | + return 'delete-section-is-full'; | |
| 10747 | + } | |
| 10748 | + }, { | |
| 10749 | + key: "getConditions", | |
| 10750 | + value: function getConditions(args) { | |
| 10751 | + var _args$containers = args.containers, | |
| 10752 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 10753 | + return containers.some(function ( | |
| 10754 | + /* Container */ | |
| 10755 | + container) { | |
| 10756 | + return 'column' === container.model.get('elType'); | |
| 10757 | + }); | |
| 10758 | + } | |
| 10759 | + }, { | |
| 10760 | + key: "apply", | |
| 10761 | + value: function apply(args) { | |
| 10762 | + var _args$containers2 = args.containers, | |
| 10763 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2; | |
| 10764 | + containers.forEach(function ( | |
| 10765 | + /* Container */ | |
| 10766 | + container) { | |
| 10767 | + if ('column' === container.model.get('elType')) { | |
| 10768 | + container.parent.view.toggleSectionIsFull(); | |
| 10769 | + } | |
| 10770 | + }); | |
| 10771 | + } | |
| 10772 | + }]); | |
| 10773 | + return DeleteSectionIsFull; | |
| 10774 | +}(_after.default); | |
| 10775 | + | |
| 10776 | +exports.DeleteSectionIsFull = DeleteSectionIsFull; | |
| 10777 | +var _default = DeleteSectionIsFull; | |
| 10778 | +exports["default"] = _default; | |
| 10779 | + | |
| 10780 | +/***/ }), | |
| 10781 | + | |
| 10782 | +/***/ "../assets/dev/js/editor/document/hooks/ui/index.js": | |
| 10783 | +/*!**********************************************************!*\ | |
| 10784 | + !*** ../assets/dev/js/editor/document/hooks/ui/index.js ***! | |
| 10785 | + \**********************************************************/ | |
| 10786 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 10787 | + | |
| 10788 | +"use strict"; | |
| 10789 | + | |
| 10790 | + | |
| 10791 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 10792 | + | |
| 10793 | +var _Object$keys = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js"); | |
| 10794 | + | |
| 10795 | +_Object$defineProperty(exports, "__esModule", { | |
| 10796 | + value: true | |
| 10797 | +}); | |
| 10798 | + | |
| 10799 | +var _create = __webpack_require__(/*! ./create/ */ "../assets/dev/js/editor/document/hooks/ui/create/index.js"); | |
| 10800 | + | |
| 10801 | +_Object$keys(_create).forEach(function (key) { | |
| 10802 | + if (key === "default" || key === "__esModule") return; | |
| 10803 | + if (key in exports && exports[key] === _create[key]) return; | |
| 10804 | + | |
| 10805 | + _Object$defineProperty(exports, key, { | |
| 10806 | + enumerable: true, | |
| 10807 | + get: function get() { | |
| 10808 | + return _create[key]; | |
| 10809 | + } | |
| 10810 | + }); | |
| 10811 | +}); | |
| 10812 | + | |
| 10813 | +var _delete = __webpack_require__(/*! ./delete/ */ "../assets/dev/js/editor/document/hooks/ui/delete/index.js"); | |
| 10814 | + | |
| 10815 | +_Object$keys(_delete).forEach(function (key) { | |
| 10816 | + if (key === "default" || key === "__esModule") return; | |
| 10817 | + if (key in exports && exports[key] === _delete[key]) return; | |
| 10818 | + | |
| 10819 | + _Object$defineProperty(exports, key, { | |
| 10820 | + enumerable: true, | |
| 10821 | + get: function get() { | |
| 10822 | + return _delete[key]; | |
| 10823 | + } | |
| 10824 | + }); | |
| 10825 | +}); | |
| 10826 | + | |
| 10827 | +var _settings = __webpack_require__(/*! ./settings/ */ "../assets/dev/js/editor/document/hooks/ui/settings/index.js"); | |
| 10828 | + | |
| 10829 | +_Object$keys(_settings).forEach(function (key) { | |
| 10830 | + if (key === "default" || key === "__esModule") return; | |
| 10831 | + if (key in exports && exports[key] === _settings[key]) return; | |
| 10832 | + | |
| 10833 | + _Object$defineProperty(exports, key, { | |
| 10834 | + enumerable: true, | |
| 10835 | + get: function get() { | |
| 10836 | + return _settings[key]; | |
| 10837 | + } | |
| 10838 | + }); | |
| 10839 | +}); | |
| 10840 | + | |
| 10841 | +/***/ }), | |
| 10842 | + | |
| 10843 | +/***/ "../assets/dev/js/editor/document/hooks/ui/settings/change-post-title.js": | |
| 10844 | +/*!*******************************************************************************!*\ | |
| 10845 | + !*** ../assets/dev/js/editor/document/hooks/ui/settings/change-post-title.js ***! | |
| 10846 | + \*******************************************************************************/ | |
| 10847 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 10848 | + | |
| 10849 | +"use strict"; | |
| 10850 | + | |
| 10851 | + | |
| 10852 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 10853 | + | |
| 10854 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 10855 | + | |
| 10856 | +_Object$defineProperty(exports, "__esModule", { | |
| 10857 | + value: true | |
| 10858 | +}); | |
| 10859 | + | |
| 10860 | +exports["default"] = exports.ChangePostTitle = void 0; | |
| 10861 | + | |
| 10862 | +__webpack_require__(/*! core-js/modules/es6.array.find.js */ "../node_modules/core-js/modules/es6.array.find.js"); | |
| 10863 | + | |
| 10864 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 10865 | + | |
| 10866 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 10867 | + | |
| 10868 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 10869 | + | |
| 10870 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 10871 | + | |
| 10872 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/ui/after */ "../core/common/assets/js/api/modules/hooks/ui/after.js")); | |
| 10873 | + | |
| 10874 | +var ChangePostTitle = /*#__PURE__*/function (_After) { | |
| 10875 | + (0, _inherits2.default)(ChangePostTitle, _After); | |
| 10876 | + | |
| 10877 | + var _super = (0, _createSuper2.default)(ChangePostTitle); | |
| 10878 | + | |
| 10879 | + function ChangePostTitle() { | |
| 10880 | + (0, _classCallCheck2.default)(this, ChangePostTitle); | |
| 10881 | + return _super.apply(this, arguments); | |
| 10882 | + } | |
| 10883 | + | |
| 10884 | + (0, _createClass2.default)(ChangePostTitle, [{ | |
| 10885 | + key: "getCommand", | |
| 10886 | + value: function getCommand() { | |
| 10887 | + return 'document/elements/settings'; | |
| 10888 | + } | |
| 10889 | + }, { | |
| 10890 | + key: "getId", | |
| 10891 | + value: function getId() { | |
| 10892 | + return 'change-post-title'; | |
| 10893 | + } | |
| 10894 | + }, { | |
| 10895 | + key: "getContainerType", | |
| 10896 | + value: function getContainerType() { | |
| 10897 | + return 'document'; | |
| 10898 | + } | |
| 10899 | + }, { | |
| 10900 | + key: "getConditions", | |
| 10901 | + value: function getConditions(args) { | |
| 10902 | + return undefined !== args.settings.post_title; | |
| 10903 | + } | |
| 10904 | + }, { | |
| 10905 | + key: "apply", | |
| 10906 | + value: function apply(args) { | |
| 10907 | + var $title = elementorFrontend.elements.$document.find(elementor.config.page_title_selector); | |
| 10908 | + $title.text(args.settings.post_title); | |
| 10909 | + } | |
| 10910 | + }]); | |
| 10911 | + return ChangePostTitle; | |
| 10912 | +}(_after.default); | |
| 10913 | + | |
| 10914 | +exports.ChangePostTitle = ChangePostTitle; | |
| 10915 | +var _default = ChangePostTitle; | |
| 10916 | +exports["default"] = _default; | |
| 10917 | + | |
| 10918 | +/***/ }), | |
| 10919 | + | |
| 10920 | +/***/ "../assets/dev/js/editor/document/hooks/ui/settings/column-change-size.js": | |
| 10921 | +/*!********************************************************************************!*\ | |
| 10922 | + !*** ../assets/dev/js/editor/document/hooks/ui/settings/column-change-size.js ***! | |
| 10923 | + \********************************************************************************/ | |
| 10924 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 10925 | + | |
| 10926 | +"use strict"; | |
| 10927 | + | |
| 10928 | + | |
| 10929 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 10930 | + | |
| 10931 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 10932 | + | |
| 10933 | +_Object$defineProperty(exports, "__esModule", { | |
| 10934 | + value: true | |
| 10935 | +}); | |
| 10936 | + | |
| 10937 | +exports["default"] = exports.ColumnChangeSize = void 0; | |
| 10938 | + | |
| 10939 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 10940 | + | |
| 10941 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 10942 | + | |
| 10943 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 10944 | + | |
| 10945 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 10946 | + | |
| 10947 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/ui/after */ "../core/common/assets/js/api/modules/hooks/ui/after.js")); | |
| 10948 | + | |
| 10949 | +var ColumnChangeSize = /*#__PURE__*/function (_After) { | |
| 10950 | + (0, _inherits2.default)(ColumnChangeSize, _After); | |
| 10951 | + | |
| 10952 | + var _super = (0, _createSuper2.default)(ColumnChangeSize); | |
| 10953 | + | |
| 10954 | + function ColumnChangeSize() { | |
| 10955 | + (0, _classCallCheck2.default)(this, ColumnChangeSize); | |
| 10956 | + return _super.apply(this, arguments); | |
| 10957 | + } | |
| 10958 | + | |
| 10959 | + (0, _createClass2.default)(ColumnChangeSize, [{ | |
| 10960 | + key: "getCommand", | |
| 10961 | + value: function getCommand() { | |
| 10962 | + return 'document/elements/settings'; | |
| 10963 | + } | |
| 10964 | + }, { | |
| 10965 | + key: "getId", | |
| 10966 | + value: function getId() { | |
| 10967 | + return 'column-change-size'; | |
| 10968 | + } | |
| 10969 | + }, { | |
| 10970 | + key: "getConditions", | |
| 10971 | + value: function getConditions(args) { | |
| 10972 | + return undefined !== args.settings._inline_size || undefined !== args.settings._column_size; | |
| 10973 | + } | |
| 10974 | + }, { | |
| 10975 | + key: "apply", | |
| 10976 | + value: function apply(args) { | |
| 10977 | + var _args$containers = args.containers, | |
| 10978 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 10979 | + containers.forEach(function ( | |
| 10980 | + /* Container */ | |
| 10981 | + container) { | |
| 10982 | + container.view.changeSizeUI(); | |
| 10983 | + }); | |
| 10984 | + } | |
| 10985 | + }]); | |
| 10986 | + return ColumnChangeSize; | |
| 10987 | +}(_after.default); | |
| 10988 | + | |
| 10989 | +exports.ColumnChangeSize = ColumnChangeSize; | |
| 10990 | +var _default = ColumnChangeSize; | |
| 10991 | +exports["default"] = _default; | |
| 10992 | + | |
| 10993 | +/***/ }), | |
| 10994 | + | |
| 10995 | +/***/ "../assets/dev/js/editor/document/hooks/ui/settings/draggable.js": | |
| 10996 | +/*!***********************************************************************!*\ | |
| 10997 | + !*** ../assets/dev/js/editor/document/hooks/ui/settings/draggable.js ***! | |
| 10998 | + \***********************************************************************/ | |
| 10999 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 11000 | + | |
| 11001 | +"use strict"; | |
| 11002 | + | |
| 11003 | + | |
| 11004 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 11005 | + | |
| 11006 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 11007 | + | |
| 11008 | +_Object$defineProperty(exports, "__esModule", { | |
| 11009 | + value: true | |
| 11010 | +}); | |
| 11011 | + | |
| 11012 | +exports["default"] = exports.Draggable = void 0; | |
| 11013 | + | |
| 11014 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 11015 | + | |
| 11016 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 11017 | + | |
| 11018 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 11019 | + | |
| 11020 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 11021 | + | |
| 11022 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/ui/after */ "../core/common/assets/js/api/modules/hooks/ui/after.js")); | |
| 11023 | + | |
| 11024 | +var Draggable = /*#__PURE__*/function (_After) { | |
| 11025 | + (0, _inherits2.default)(Draggable, _After); | |
| 11026 | + | |
| 11027 | + var _super = (0, _createSuper2.default)(Draggable); | |
| 11028 | + | |
| 11029 | + function Draggable() { | |
| 11030 | + (0, _classCallCheck2.default)(this, Draggable); | |
| 11031 | + return _super.apply(this, arguments); | |
| 11032 | + } | |
| 11033 | + | |
| 11034 | + (0, _createClass2.default)(Draggable, [{ | |
| 11035 | + key: "getCommand", | |
| 11036 | + value: function getCommand() { | |
| 11037 | + return 'document/elements/settings'; | |
| 11038 | + } | |
| 11039 | + }, { | |
| 11040 | + key: "getId", | |
| 11041 | + value: function getId() { | |
| 11042 | + return 'draggable'; | |
| 11043 | + } | |
| 11044 | + }, { | |
| 11045 | + key: "getConditions", | |
| 11046 | + value: function getConditions(args) { | |
| 11047 | + return undefined !== args.settings._position; | |
| 11048 | + } | |
| 11049 | + }, { | |
| 11050 | + key: "apply", | |
| 11051 | + value: function apply(args) { | |
| 11052 | + var _args$containers = args.containers, | |
| 11053 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 11054 | + containers.forEach(function ( | |
| 11055 | + /* Container */ | |
| 11056 | + container) { | |
| 11057 | + if (container.view.options.draggable) { | |
| 11058 | + container.view.options.draggable.toggle(); | |
| 11059 | + } | |
| 11060 | + }); | |
| 11061 | + } | |
| 11062 | + }]); | |
| 11063 | + return Draggable; | |
| 11064 | +}(_after.default); | |
| 11065 | + | |
| 11066 | +exports.Draggable = Draggable; | |
| 11067 | +var _default = Draggable; | |
| 11068 | +exports["default"] = _default; | |
| 11069 | + | |
| 11070 | +/***/ }), | |
| 11071 | + | |
| 11072 | +/***/ "../assets/dev/js/editor/document/hooks/ui/settings/index.js": | |
| 11073 | +/*!*******************************************************************!*\ | |
| 11074 | + !*** ../assets/dev/js/editor/document/hooks/ui/settings/index.js ***! | |
| 11075 | + \*******************************************************************/ | |
| 11076 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 11077 | + | |
| 11078 | +"use strict"; | |
| 11079 | + | |
| 11080 | + | |
| 11081 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 11082 | + | |
| 11083 | +_Object$defineProperty(exports, "__esModule", { | |
| 11084 | + value: true | |
| 11085 | +}); | |
| 11086 | + | |
| 11087 | +_Object$defineProperty(exports, "ChangePostTitle", { | |
| 11088 | + enumerable: true, | |
| 11089 | + get: function get() { | |
| 11090 | + return _changePostTitle.ChangePostTitle; | |
| 11091 | + } | |
| 11092 | +}); | |
| 11093 | + | |
| 11094 | +_Object$defineProperty(exports, "ColumnChangeSize", { | |
| 11095 | + enumerable: true, | |
| 11096 | + get: function get() { | |
| 11097 | + return _columnChangeSize.ColumnChangeSize; | |
| 11098 | + } | |
| 11099 | +}); | |
| 11100 | + | |
| 11101 | +_Object$defineProperty(exports, "Draggable", { | |
| 11102 | + enumerable: true, | |
| 11103 | + get: function get() { | |
| 11104 | + return _draggable.Draggable; | |
| 11105 | + } | |
| 11106 | +}); | |
| 11107 | + | |
| 11108 | +_Object$defineProperty(exports, "ReloadPreview", { | |
| 11109 | + enumerable: true, | |
| 11110 | + get: function get() { | |
| 11111 | + return _reloadPreview.ReloadPreview; | |
| 11112 | + } | |
| 11113 | +}); | |
| 11114 | + | |
| 11115 | +_Object$defineProperty(exports, "Resizeable", { | |
| 11116 | + enumerable: true, | |
| 11117 | + get: function get() { | |
| 11118 | + return _resizeable.Resizeable; | |
| 11119 | + } | |
| 11120 | +}); | |
| 11121 | + | |
| 11122 | +var _changePostTitle = __webpack_require__(/*! ./change-post-title */ "../assets/dev/js/editor/document/hooks/ui/settings/change-post-title.js"); | |
| 11123 | + | |
| 11124 | +var _columnChangeSize = __webpack_require__(/*! ./column-change-size */ "../assets/dev/js/editor/document/hooks/ui/settings/column-change-size.js"); | |
| 11125 | + | |
| 11126 | +var _draggable = __webpack_require__(/*! ./draggable */ "../assets/dev/js/editor/document/hooks/ui/settings/draggable.js"); | |
| 11127 | + | |
| 11128 | +var _resizeable = __webpack_require__(/*! ./resizeable */ "../assets/dev/js/editor/document/hooks/ui/settings/resizeable.js"); | |
| 11129 | + | |
| 11130 | +var _reloadPreview = __webpack_require__(/*! ./reload-preview */ "../assets/dev/js/editor/document/hooks/ui/settings/reload-preview.js"); | |
| 11131 | + | |
| 11132 | +/***/ }), | |
| 11133 | + | |
| 11134 | +/***/ "../assets/dev/js/editor/document/hooks/ui/settings/reload-preview.js": | |
| 11135 | +/*!****************************************************************************!*\ | |
| 11136 | + !*** ../assets/dev/js/editor/document/hooks/ui/settings/reload-preview.js ***! | |
| 11137 | + \****************************************************************************/ | |
| 11138 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 11139 | + | |
| 11140 | +"use strict"; | |
| 11141 | + | |
| 11142 | + | |
| 11143 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 11144 | + | |
| 11145 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 11146 | + | |
| 11147 | +_Object$defineProperty(exports, "__esModule", { | |
| 11148 | + value: true | |
| 11149 | +}); | |
| 11150 | + | |
| 11151 | +exports.ReloadPreview = void 0; | |
| 11152 | + | |
| 11153 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 11154 | + | |
| 11155 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 11156 | + | |
| 11157 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 11158 | + | |
| 11159 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 11160 | + | |
| 11161 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/ui/after */ "../core/common/assets/js/api/modules/hooks/ui/after.js")); | |
| 11162 | + | |
| 11163 | +var ReloadPreview = /*#__PURE__*/function (_After) { | |
| 11164 | + (0, _inherits2.default)(ReloadPreview, _After); | |
| 11165 | + | |
| 11166 | + var _super = (0, _createSuper2.default)(ReloadPreview); | |
| 11167 | + | |
| 11168 | + function ReloadPreview() { | |
| 11169 | + (0, _classCallCheck2.default)(this, ReloadPreview); | |
| 11170 | + return _super.apply(this, arguments); | |
| 11171 | + } | |
| 11172 | + | |
| 11173 | + (0, _createClass2.default)(ReloadPreview, [{ | |
| 11174 | + key: "getCommand", | |
| 11175 | + value: function getCommand() { | |
| 11176 | + return 'document/elements/settings'; | |
| 11177 | + } | |
| 11178 | + }, { | |
| 11179 | + key: "getId", | |
| 11180 | + value: function getId() { | |
| 11181 | + return 'save-layout'; | |
| 11182 | + } | |
| 11183 | + }, { | |
| 11184 | + key: "getContainerType", | |
| 11185 | + value: function getContainerType() { | |
| 11186 | + return 'document'; | |
| 11187 | + } | |
| 11188 | + }, { | |
| 11189 | + key: "getConditions", | |
| 11190 | + value: function getConditions(args) { | |
| 11191 | + return !!args.settings.template; | |
| 11192 | + } | |
| 11193 | + }, { | |
| 11194 | + key: "apply", | |
| 11195 | + value: function apply() { | |
| 11196 | + return $e.run('document/save/auto', { | |
| 11197 | + force: true | |
| 11198 | + }).then(function () { | |
| 11199 | + elementor.reloadPreview(); // TODO: Fix the route change. | |
| 11200 | + | |
| 11201 | + elementor.once('preview:loaded', function () { | |
| 11202 | + $e.route('panel/page-settings/settings'); | |
| 11203 | + }); | |
| 11204 | + }); | |
| 11205 | + } | |
| 11206 | + }]); | |
| 11207 | + return ReloadPreview; | |
| 11208 | +}(_after.default); | |
| 11209 | + | |
| 11210 | +exports.ReloadPreview = ReloadPreview; | |
| 11211 | + | |
| 11212 | +/***/ }), | |
| 11213 | + | |
| 11214 | +/***/ "../assets/dev/js/editor/document/hooks/ui/settings/resizeable.js": | |
| 11215 | +/*!************************************************************************!*\ | |
| 11216 | + !*** ../assets/dev/js/editor/document/hooks/ui/settings/resizeable.js ***! | |
| 11217 | + \************************************************************************/ | |
| 11218 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 11219 | + | |
| 11220 | +"use strict"; | |
| 11221 | + | |
| 11222 | + | |
| 11223 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 11224 | + | |
| 11225 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 11226 | + | |
| 11227 | +_Object$defineProperty(exports, "__esModule", { | |
| 11228 | + value: true | |
| 11229 | +}); | |
| 11230 | + | |
| 11231 | +exports["default"] = exports.Resizeable = void 0; | |
| 11232 | + | |
| 11233 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 11234 | + | |
| 11235 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 11236 | + | |
| 11237 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 11238 | + | |
| 11239 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 11240 | + | |
| 11241 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/ui/after */ "../core/common/assets/js/api/modules/hooks/ui/after.js")); | |
| 11242 | + | |
| 11243 | +var Resizeable = /*#__PURE__*/function (_After) { | |
| 11244 | + (0, _inherits2.default)(Resizeable, _After); | |
| 11245 | + | |
| 11246 | + var _super = (0, _createSuper2.default)(Resizeable); | |
| 11247 | + | |
| 11248 | + function Resizeable() { | |
| 11249 | + (0, _classCallCheck2.default)(this, Resizeable); | |
| 11250 | + return _super.apply(this, arguments); | |
| 11251 | + } | |
| 11252 | + | |
| 11253 | + (0, _createClass2.default)(Resizeable, [{ | |
| 11254 | + key: "getCommand", | |
| 11255 | + value: function getCommand() { | |
| 11256 | + return 'document/elements/settings'; | |
| 11257 | + } | |
| 11258 | + }, { | |
| 11259 | + key: "getId", | |
| 11260 | + value: function getId() { | |
| 11261 | + return 'resizeable'; | |
| 11262 | + } | |
| 11263 | + }, { | |
| 11264 | + key: "getConditions", | |
| 11265 | + value: function getConditions(args) { | |
| 11266 | + return undefined !== args.settings._position || undefined !== args.settings._element_width; | |
| 11267 | + } | |
| 11268 | + }, { | |
| 11269 | + key: "apply", | |
| 11270 | + value: function apply(args) { | |
| 11271 | + var _args$containers = args.containers, | |
| 11272 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 11273 | + containers.forEach(function ( | |
| 11274 | + /* Container */ | |
| 11275 | + container) { | |
| 11276 | + if (container.view.options.resizeable) { | |
| 11277 | + container.view.options.resizeable.toggle(); | |
| 11278 | + } | |
| 11279 | + }); | |
| 11280 | + } | |
| 11281 | + }]); | |
| 11282 | + return Resizeable; | |
| 11283 | +}(_after.default); | |
| 11284 | + | |
| 11285 | +exports.Resizeable = Resizeable; | |
| 11286 | +var _default = Resizeable; | |
| 11287 | +exports["default"] = _default; | |
| 11288 | + | |
| 11289 | +/***/ }), | |
| 11290 | + | |
| 11291 | +/***/ "../assets/dev/js/editor/document/index.js": | |
| 11292 | +/*!*************************************************!*\ | |
| 11293 | + !*** ../assets/dev/js/editor/document/index.js ***! | |
| 11294 | + \*************************************************/ | |
| 11295 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 11296 | + | |
| 11297 | +"use strict"; | |
| 11298 | + | |
| 11299 | + | |
| 11300 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 11301 | + | |
| 11302 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 11303 | + | |
| 11304 | +_Object$defineProperty(exports, "__esModule", { | |
| 11305 | + value: true | |
| 11306 | +}); | |
| 11307 | + | |
| 11308 | +_Object$defineProperty(exports, "DynamicComponent", { | |
| 11309 | + enumerable: true, | |
| 11310 | + get: function get() { | |
| 11311 | + return _component.default; | |
| 11312 | + } | |
| 11313 | +}); | |
| 11314 | + | |
| 11315 | +_Object$defineProperty(exports, "ElementsComponent", { | |
| 11316 | + enumerable: true, | |
| 11317 | + get: function get() { | |
| 11318 | + return _component2.default; | |
| 11319 | + } | |
| 11320 | +}); | |
| 11321 | + | |
| 11322 | +_Object$defineProperty(exports, "GlobalsComponent", { | |
| 11323 | + enumerable: true, | |
| 11324 | + get: function get() { | |
| 11325 | + return _component3.default; | |
| 11326 | + } | |
| 11327 | +}); | |
| 11328 | + | |
| 11329 | +_Object$defineProperty(exports, "HistoryComponent", { | |
| 11330 | + enumerable: true, | |
| 11331 | + get: function get() { | |
| 11332 | + return _component4.default; | |
| 11333 | + } | |
| 11334 | +}); | |
| 11335 | + | |
| 11336 | +_Object$defineProperty(exports, "RepeaterComponent", { | |
| 11337 | + enumerable: true, | |
| 11338 | + get: function get() { | |
| 11339 | + return _component5.default; | |
| 11340 | + } | |
| 11341 | +}); | |
| 11342 | + | |
| 11343 | +_Object$defineProperty(exports, "SaveComponent", { | |
| 11344 | + enumerable: true, | |
| 11345 | + get: function get() { | |
| 11346 | + return _component6.default; | |
| 11347 | + } | |
| 11348 | +}); | |
| 11349 | + | |
| 11350 | +_Object$defineProperty(exports, "UIComponent", { | |
| 11351 | + enumerable: true, | |
| 11352 | + get: function get() { | |
| 11353 | + return _component7.default; | |
| 11354 | + } | |
| 11355 | +}); | |
| 11356 | + | |
| 11357 | +var _component = _interopRequireDefault(__webpack_require__(/*! ../document/dynamic/component */ "../assets/dev/js/editor/document/dynamic/component.js")); | |
| 11358 | + | |
| 11359 | +var _component2 = _interopRequireDefault(__webpack_require__(/*! ../document/elements/component */ "../assets/dev/js/editor/document/elements/component.js")); | |
| 11360 | + | |
| 11361 | +var _component3 = _interopRequireDefault(__webpack_require__(/*! ../document/globals/component */ "../assets/dev/js/editor/document/globals/component.js")); | |
| 11362 | + | |
| 11363 | +var _component4 = _interopRequireDefault(__webpack_require__(/*! ../document/history/component */ "../assets/dev/js/editor/document/history/component.js")); | |
| 11364 | + | |
| 11365 | +var _component5 = _interopRequireDefault(__webpack_require__(/*! ../document/repeater/component */ "../assets/dev/js/editor/document/repeater/component.js")); | |
| 11366 | + | |
| 11367 | +var _component6 = _interopRequireDefault(__webpack_require__(/*! ../document/save/component */ "../assets/dev/js/editor/document/save/component.js")); | |
| 11368 | + | |
| 11369 | +var _component7 = _interopRequireDefault(__webpack_require__(/*! ../document/ui/component */ "../assets/dev/js/editor/document/ui/component.js")); | |
| 11370 | + | |
| 11371 | +/***/ }), | |
| 11372 | + | |
| 11373 | +/***/ "../assets/dev/js/editor/document/repeater/commands/duplicate.js": | |
| 11374 | +/*!***********************************************************************!*\ | |
| 11375 | + !*** ../assets/dev/js/editor/document/repeater/commands/duplicate.js ***! | |
| 11376 | + \***********************************************************************/ | |
| 11377 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 11378 | + | |
| 11379 | +"use strict"; | |
| 11380 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 11381 | + | |
| 11382 | + | |
| 11383 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 11384 | + | |
| 11385 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 11386 | + | |
| 11387 | +_Object$defineProperty(exports, "__esModule", { | |
| 11388 | + value: true | |
| 11389 | +}); | |
| 11390 | + | |
| 11391 | +exports["default"] = exports.Duplicate = void 0; | |
| 11392 | + | |
| 11393 | +var _assign = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/assign */ "../node_modules/@babel/runtime-corejs2/core-js/object/assign.js")); | |
| 11394 | + | |
| 11395 | +__webpack_require__(/*! core-js/modules/es6.function.name.js */ "../node_modules/core-js/modules/es6.function.name.js"); | |
| 11396 | + | |
| 11397 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 11398 | + | |
| 11399 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 11400 | + | |
| 11401 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 11402 | + | |
| 11403 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 11404 | + | |
| 11405 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 11406 | + | |
| 11407 | +var Duplicate = /*#__PURE__*/function (_CommandHistory) { | |
| 11408 | + (0, _inherits2.default)(Duplicate, _CommandHistory); | |
| 11409 | + | |
| 11410 | + var _super = (0, _createSuper2.default)(Duplicate); | |
| 11411 | + | |
| 11412 | + function Duplicate() { | |
| 11413 | + (0, _classCallCheck2.default)(this, Duplicate); | |
| 11414 | + return _super.apply(this, arguments); | |
| 11415 | + } | |
| 11416 | + | |
| 11417 | + (0, _createClass2.default)(Duplicate, [{ | |
| 11418 | + key: "validateArgs", | |
| 11419 | + value: function validateArgs(args) { | |
| 11420 | + this.requireContainer(args); | |
| 11421 | + this.requireArgumentType('name', 'string', args); | |
| 11422 | + this.requireArgumentType('index', 'number', args); | |
| 11423 | + } | |
| 11424 | + }, { | |
| 11425 | + key: "getHistory", | |
| 11426 | + value: function getHistory(args) { | |
| 11427 | + var _args$containers = args.containers, | |
| 11428 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 11429 | + return { | |
| 11430 | + containers: containers, | |
| 11431 | + type: 'duplicate', | |
| 11432 | + subTitle: __('Item', 'elementor') | |
| 11433 | + }; | |
| 11434 | + } | |
| 11435 | + }, { | |
| 11436 | + key: "apply", | |
| 11437 | + value: function apply(args) { | |
| 11438 | + var index = args.index, | |
| 11439 | + name = args.name, | |
| 11440 | + _args$options = args.options, | |
| 11441 | + options = _args$options === void 0 ? {} : _args$options, | |
| 11442 | + _args$containers2 = args.containers, | |
| 11443 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2, | |
| 11444 | + result = []; | |
| 11445 | + containers.forEach(function (container) { | |
| 11446 | + var settingsModel = container.settings, | |
| 11447 | + collection = settingsModel.get(name), | |
| 11448 | + model = collection.at(index).toJSON(); // Let the insert handle it, do not use the duplicated id. | |
| 11449 | + | |
| 11450 | + if (model._id) { | |
| 11451 | + delete model._id; | |
| 11452 | + } | |
| 11453 | + | |
| 11454 | + result.push($e.run('document/repeater/insert', { | |
| 11455 | + container: container, | |
| 11456 | + name: name, | |
| 11457 | + model: model, | |
| 11458 | + options: (0, _assign.default)({ | |
| 11459 | + at: index + 1 | |
| 11460 | + }, options) | |
| 11461 | + })); | |
| 11462 | + }); | |
| 11463 | + | |
| 11464 | + if (1 === result.length) { | |
| 11465 | + return result[0]; | |
| 11466 | + } | |
| 11467 | + | |
| 11468 | + return result; | |
| 11469 | + } | |
| 11470 | + }]); | |
| 11471 | + return Duplicate; | |
| 11472 | +}(_commandHistory.default); | |
| 11473 | + | |
| 11474 | +exports.Duplicate = Duplicate; | |
| 11475 | +var _default = Duplicate; | |
| 11476 | +exports["default"] = _default; | |
| 11477 | + | |
| 11478 | +/***/ }), | |
| 11479 | + | |
| 11480 | +/***/ "../assets/dev/js/editor/document/repeater/commands/index.js": | |
| 11481 | +/*!*******************************************************************!*\ | |
| 11482 | + !*** ../assets/dev/js/editor/document/repeater/commands/index.js ***! | |
| 11483 | + \*******************************************************************/ | |
| 11484 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 11485 | + | |
| 11486 | +"use strict"; | |
| 11487 | + | |
| 11488 | + | |
| 11489 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 11490 | + | |
| 11491 | +_Object$defineProperty(exports, "__esModule", { | |
| 11492 | + value: true | |
| 11493 | +}); | |
| 11494 | + | |
| 11495 | +_Object$defineProperty(exports, "Duplicate", { | |
| 11496 | + enumerable: true, | |
| 11497 | + get: function get() { | |
| 11498 | + return _duplicate.Duplicate; | |
| 11499 | + } | |
| 11500 | +}); | |
| 11501 | + | |
| 11502 | +_Object$defineProperty(exports, "Insert", { | |
| 11503 | + enumerable: true, | |
| 11504 | + get: function get() { | |
| 11505 | + return _insert.Insert; | |
| 11506 | + } | |
| 11507 | +}); | |
| 11508 | + | |
| 11509 | +_Object$defineProperty(exports, "Move", { | |
| 11510 | + enumerable: true, | |
| 11511 | + get: function get() { | |
| 11512 | + return _move.Move; | |
| 11513 | + } | |
| 11514 | +}); | |
| 11515 | + | |
| 11516 | +_Object$defineProperty(exports, "Remove", { | |
| 11517 | + enumerable: true, | |
| 11518 | + get: function get() { | |
| 11519 | + return _remove.Remove; | |
| 11520 | + } | |
| 11521 | +}); | |
| 11522 | + | |
| 11523 | +var _duplicate = __webpack_require__(/*! ./duplicate */ "../assets/dev/js/editor/document/repeater/commands/duplicate.js"); | |
| 11524 | + | |
| 11525 | +var _insert = __webpack_require__(/*! ./insert */ "../assets/dev/js/editor/document/repeater/commands/insert.js"); | |
| 11526 | + | |
| 11527 | +var _move = __webpack_require__(/*! ./move */ "../assets/dev/js/editor/document/repeater/commands/move.js"); | |
| 11528 | + | |
| 11529 | +var _remove = __webpack_require__(/*! ./remove */ "../assets/dev/js/editor/document/repeater/commands/remove.js"); | |
| 11530 | + | |
| 11531 | +/***/ }), | |
| 11532 | + | |
| 11533 | +/***/ "../assets/dev/js/editor/document/repeater/commands/insert.js": | |
| 11534 | +/*!********************************************************************!*\ | |
| 11535 | + !*** ../assets/dev/js/editor/document/repeater/commands/insert.js ***! | |
| 11536 | + \********************************************************************/ | |
| 11537 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 11538 | + | |
| 11539 | +"use strict"; | |
| 11540 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 11541 | + | |
| 11542 | + | |
| 11543 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 11544 | + | |
| 11545 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 11546 | + | |
| 11547 | +_Object$defineProperty(exports, "__esModule", { | |
| 11548 | + value: true | |
| 11549 | +}); | |
| 11550 | + | |
| 11551 | +exports["default"] = exports.Insert = void 0; | |
| 11552 | + | |
| 11553 | +__webpack_require__(/*! core-js/modules/es6.function.name.js */ "../node_modules/core-js/modules/es6.function.name.js"); | |
| 11554 | + | |
| 11555 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 11556 | + | |
| 11557 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 11558 | + | |
| 11559 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 11560 | + | |
| 11561 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 11562 | + | |
| 11563 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 11564 | + | |
| 11565 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 11566 | + | |
| 11567 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 11568 | + | |
| 11569 | +var Insert = /*#__PURE__*/function (_CommandHistory) { | |
| 11570 | + (0, _inherits2.default)(Insert, _CommandHistory); | |
| 11571 | + | |
| 11572 | + var _super = (0, _createSuper2.default)(Insert); | |
| 11573 | + | |
| 11574 | + function Insert() { | |
| 11575 | + (0, _classCallCheck2.default)(this, Insert); | |
| 11576 | + return _super.apply(this, arguments); | |
| 11577 | + } | |
| 11578 | + | |
| 11579 | + (0, _createClass2.default)(Insert, [{ | |
| 11580 | + key: "initialize", | |
| 11581 | + value: function initialize(args) { | |
| 11582 | + (0, _get2.default)((0, _getPrototypeOf2.default)(Insert.prototype), "initialize", this).call(this, args); | |
| 11583 | + | |
| 11584 | + if (!args.model._id) { | |
| 11585 | + args.model._id = elementorCommon.helpers.getUniqueId(); | |
| 11586 | + } | |
| 11587 | + } | |
| 11588 | + }, { | |
| 11589 | + key: "validateArgs", | |
| 11590 | + value: function validateArgs(args) { | |
| 11591 | + this.requireContainer(args); | |
| 11592 | + this.requireArgumentType('model', 'object', args); | |
| 11593 | + this.requireArgumentConstructor('name', String, args); | |
| 11594 | + } | |
| 11595 | + }, { | |
| 11596 | + key: "getHistory", | |
| 11597 | + value: function getHistory(args) { | |
| 11598 | + var model = args.model, | |
| 11599 | + name = args.name, | |
| 11600 | + _args$options = args.options, | |
| 11601 | + options = _args$options === void 0 ? { | |
| 11602 | + at: null | |
| 11603 | + } : _args$options, | |
| 11604 | + _args$containers = args.containers, | |
| 11605 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 11606 | + return { | |
| 11607 | + containers: containers, | |
| 11608 | + type: 'add', | |
| 11609 | + subTitle: __('Item', 'elementor'), | |
| 11610 | + data: { | |
| 11611 | + model: model, | |
| 11612 | + name: name, | |
| 11613 | + index: options.at | |
| 11614 | + }, | |
| 11615 | + restore: this.constructor.restore | |
| 11616 | + }; | |
| 11617 | + } | |
| 11618 | + }, { | |
| 11619 | + key: "isDataChanged", | |
| 11620 | + value: function isDataChanged() { | |
| 11621 | + return true; | |
| 11622 | + } | |
| 11623 | + }, { | |
| 11624 | + key: "apply", | |
| 11625 | + value: function apply(args) { | |
| 11626 | + var model = args.model, | |
| 11627 | + name = args.name, | |
| 11628 | + _args$options2 = args.options, | |
| 11629 | + options = _args$options2 === void 0 ? { | |
| 11630 | + at: null | |
| 11631 | + } : _args$options2, | |
| 11632 | + _args$containers2 = args.containers, | |
| 11633 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2, | |
| 11634 | + result = []; | |
| 11635 | + containers.forEach(function (container) { | |
| 11636 | + container = container.lookup(); | |
| 11637 | + var collection = container.settings.get(name); | |
| 11638 | + options.at = null === options.at ? collection.length : options.at; // On `collection.push` the renderer needs a container, the container needs a settingsModel. | |
| 11639 | + | |
| 11640 | + var rowSettingsModel = collection._prepareModel(model), | |
| 11641 | + repeaterContainer = container.addRepeaterItem(name, rowSettingsModel, options.at); | |
| 11642 | + | |
| 11643 | + result.push(collection.push(rowSettingsModel, options)); // Trigger render on widget but with the settings of the control. | |
| 11644 | + | |
| 11645 | + repeaterContainer.render(); | |
| 11646 | + }); | |
| 11647 | + | |
| 11648 | + if (1 === result.length) { | |
| 11649 | + return result[0]; | |
| 11650 | + } | |
| 11651 | + | |
| 11652 | + return result; | |
| 11653 | + } | |
| 364 | 11654 | }], [{ |
| 365 | - key: "getInstanceType", | |
| 366 | - value: function getInstanceType() { | |
| 367 | - return 'CommandHistoryDebounceBase'; | |
| 11655 | + key: "restore", | |
| 11656 | + value: function restore(historyItem, isRedo) { | |
| 11657 | + var containers = historyItem.get('containers'), | |
| 11658 | + data = historyItem.get('data'); | |
| 11659 | + | |
| 11660 | + if (isRedo) { | |
| 11661 | + $e.run('document/repeater/insert', { | |
| 11662 | + containers: containers, | |
| 11663 | + model: data.model, | |
| 11664 | + name: data.name, | |
| 11665 | + options: { | |
| 11666 | + at: data.index | |
| 11667 | + } | |
| 11668 | + }); | |
| 11669 | + } else { | |
| 11670 | + $e.run('document/repeater/remove', { | |
| 11671 | + containers: containers, | |
| 11672 | + name: data.name, | |
| 11673 | + index: data.index | |
| 11674 | + }); | |
| 11675 | + } | |
| 368 | 11676 | } |
| 369 | 11677 | }]); |
| 370 | -}(_commandHistoryBase.default); | |
| 371 | -/** | |
| 372 | - * Function debounce(). | |
| 373 | - * | |
| 374 | - * Will debounce every function you pass in, at the same debounce flow. | |
| 375 | - * | |
| 376 | - * @param {Function} | |
| 377 | - */ | |
| 378 | -(0, _defineProperty2.default)(CommandHistoryDebounceBase, "debounce", undefined); | |
| 11678 | + return Insert; | |
| 11679 | +}(_commandHistory.default); | |
| 379 | 11680 | |
| 11681 | +exports.Insert = Insert; | |
| 11682 | +var _default = Insert; | |
| 11683 | +exports["default"] = _default; | |
| 11684 | + | |
| 380 | 11685 | /***/ }), |
| 381 | 11686 | |
| 11687 | +/***/ "../assets/dev/js/editor/document/repeater/commands/move.js": | |
| 11688 | +/*!******************************************************************!*\ | |
| 11689 | + !*** ../assets/dev/js/editor/document/repeater/commands/move.js ***! | |
| 11690 | + \******************************************************************/ | |
| 11691 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 11692 | + | |
| 11693 | +"use strict"; | |
| 11694 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 11695 | + | |
| 11696 | + | |
| 11697 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 11698 | + | |
| 11699 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 11700 | + | |
| 11701 | +_Object$defineProperty(exports, "__esModule", { | |
| 11702 | + value: true | |
| 11703 | +}); | |
| 11704 | + | |
| 11705 | +exports["default"] = exports.Move = void 0; | |
| 11706 | + | |
| 11707 | +__webpack_require__(/*! core-js/modules/es6.function.name.js */ "../node_modules/core-js/modules/es6.function.name.js"); | |
| 11708 | + | |
| 11709 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 11710 | + | |
| 11711 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 11712 | + | |
| 11713 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 11714 | + | |
| 11715 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 11716 | + | |
| 11717 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 11718 | + | |
| 11719 | +var Move = /*#__PURE__*/function (_CommandHistory) { | |
| 11720 | + (0, _inherits2.default)(Move, _CommandHistory); | |
| 11721 | + | |
| 11722 | + var _super = (0, _createSuper2.default)(Move); | |
| 11723 | + | |
| 11724 | + function Move() { | |
| 11725 | + (0, _classCallCheck2.default)(this, Move); | |
| 11726 | + return _super.apply(this, arguments); | |
| 11727 | + } | |
| 11728 | + | |
| 11729 | + (0, _createClass2.default)(Move, [{ | |
| 11730 | + key: "validateArgs", | |
| 11731 | + value: function validateArgs(args) { | |
| 11732 | + this.requireContainer(args); | |
| 11733 | + this.requireArgumentType('name', 'string', args); | |
| 11734 | + this.requireArgumentType('sourceIndex', 'number', args); | |
| 11735 | + this.requireArgumentType('targetIndex', 'number', args); | |
| 11736 | + } | |
| 11737 | + }, { | |
| 11738 | + key: "getHistory", | |
| 11739 | + value: function getHistory(args) { | |
| 11740 | + var _args$containers = args.containers, | |
| 11741 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 11742 | + return { | |
| 11743 | + containers: containers, | |
| 11744 | + type: 'move', | |
| 11745 | + subTitle: __('Item', 'elementor') | |
| 11746 | + }; | |
| 11747 | + } | |
| 11748 | + }, { | |
| 11749 | + key: "apply", | |
| 11750 | + value: function apply(args) { | |
| 11751 | + var sourceIndex = args.sourceIndex, | |
| 11752 | + targetIndex = args.targetIndex, | |
| 11753 | + name = args.name, | |
| 11754 | + _args$containers2 = args.containers, | |
| 11755 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2, | |
| 11756 | + result = []; | |
| 11757 | + containers.forEach(function (container) { | |
| 11758 | + var collection = container.settings.get(name), | |
| 11759 | + model = elementorCommon.helpers.cloneObject(collection.at(sourceIndex)); | |
| 11760 | + $e.run('document/repeater/remove', { | |
| 11761 | + container: container, | |
| 11762 | + name: name, | |
| 11763 | + index: sourceIndex | |
| 11764 | + }); | |
| 11765 | + result.push($e.run('document/repeater/insert', { | |
| 11766 | + container: container, | |
| 11767 | + name: name, | |
| 11768 | + model: model, | |
| 11769 | + options: { | |
| 11770 | + at: targetIndex | |
| 11771 | + } | |
| 11772 | + })); | |
| 11773 | + }); | |
| 11774 | + | |
| 11775 | + if (1 === result.length) { | |
| 11776 | + return result[0]; | |
| 11777 | + } | |
| 11778 | + | |
| 11779 | + return result; | |
| 11780 | + } | |
| 11781 | + }]); | |
| 11782 | + return Move; | |
| 11783 | +}(_commandHistory.default); | |
| 11784 | + | |
| 11785 | +exports.Move = Move; | |
| 11786 | +var _default = Move; | |
| 11787 | +exports["default"] = _default; | |
| 11788 | + | |
| 11789 | +/***/ }), | |
| 11790 | + | |
| 11791 | +/***/ "../assets/dev/js/editor/document/repeater/commands/remove.js": | |
| 11792 | +/*!********************************************************************!*\ | |
| 11793 | + !*** ../assets/dev/js/editor/document/repeater/commands/remove.js ***! | |
| 11794 | + \********************************************************************/ | |
| 11795 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 11796 | + | |
| 11797 | +"use strict"; | |
| 11798 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 11799 | + | |
| 11800 | + | |
| 11801 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 11802 | + | |
| 11803 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 11804 | + | |
| 11805 | +_Object$defineProperty(exports, "__esModule", { | |
| 11806 | + value: true | |
| 11807 | +}); | |
| 11808 | + | |
| 11809 | +exports["default"] = exports.Remove = void 0; | |
| 11810 | + | |
| 11811 | +__webpack_require__(/*! core-js/modules/es6.function.name.js */ "../node_modules/core-js/modules/es6.function.name.js"); | |
| 11812 | + | |
| 11813 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 11814 | + | |
| 11815 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 11816 | + | |
| 11817 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 11818 | + | |
| 11819 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 11820 | + | |
| 11821 | +var _commandHistory = _interopRequireDefault(__webpack_require__(/*! elementor-document/commands/base/command-history */ "../assets/dev/js/editor/document/commands/base/command-history.js")); | |
| 11822 | + | |
| 11823 | +var Remove = /*#__PURE__*/function (_CommandHistory) { | |
| 11824 | + (0, _inherits2.default)(Remove, _CommandHistory); | |
| 11825 | + | |
| 11826 | + var _super = (0, _createSuper2.default)(Remove); | |
| 11827 | + | |
| 11828 | + function Remove() { | |
| 11829 | + (0, _classCallCheck2.default)(this, Remove); | |
| 11830 | + return _super.apply(this, arguments); | |
| 11831 | + } | |
| 11832 | + | |
| 11833 | + (0, _createClass2.default)(Remove, [{ | |
| 11834 | + key: "validateArgs", | |
| 11835 | + value: function validateArgs(args) { | |
| 11836 | + this.requireContainer(args); | |
| 11837 | + this.requireArgumentType('name', 'string', args); | |
| 11838 | + this.requireArgument('index', args); // sometimes null. | |
| 11839 | + } | |
| 11840 | + }, { | |
| 11841 | + key: "getHistory", | |
| 11842 | + value: function getHistory(args) { | |
| 11843 | + var _args$containers = args.containers, | |
| 11844 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 11845 | + return { | |
| 11846 | + containers: containers, | |
| 11847 | + type: 'remove', | |
| 11848 | + subTitle: __('Item', 'elementor') | |
| 11849 | + }; | |
| 11850 | + } | |
| 11851 | + }, { | |
| 11852 | + key: "isDataChanged", | |
| 11853 | + value: function isDataChanged() { | |
| 11854 | + return true; | |
| 11855 | + } | |
| 11856 | + }, { | |
| 11857 | + key: "apply", | |
| 11858 | + value: function apply(args) { | |
| 11859 | + var _this = this; | |
| 11860 | + | |
| 11861 | + var name = args.name, | |
| 11862 | + _args$containers2 = args.containers, | |
| 11863 | + containers = _args$containers2 === void 0 ? [args.container] : _args$containers2, | |
| 11864 | + index = null === args.index ? -1 : args.index, | |
| 11865 | + result = []; | |
| 11866 | + containers.forEach(function (container) { | |
| 11867 | + container = container.lookup(); | |
| 11868 | + var collection = container.settings.get(name), | |
| 11869 | + model = collection.at(index), | |
| 11870 | + repeaterContainer = container.repeaters[name]; | |
| 11871 | + | |
| 11872 | + if (_this.isHistoryActive()) { | |
| 11873 | + $e.internal('document/history/log-sub-item', { | |
| 11874 | + container: container, | |
| 11875 | + data: { | |
| 11876 | + name: name, | |
| 11877 | + model: model, | |
| 11878 | + index: index | |
| 11879 | + }, | |
| 11880 | + restore: _this.constructor.restore | |
| 11881 | + }); | |
| 11882 | + } // Remove from container and add to result. | |
| 11883 | + | |
| 11884 | + | |
| 11885 | + result.push(repeaterContainer.children.splice(index, 1)); | |
| 11886 | + collection.remove(model); // Trigger render on widget but with the settings of the control. | |
| 11887 | + | |
| 11888 | + repeaterContainer.render(); | |
| 11889 | + }); | |
| 11890 | + | |
| 11891 | + if (1 === result.length) { | |
| 11892 | + return result[0]; | |
| 11893 | + } | |
| 11894 | + | |
| 11895 | + return result; | |
| 11896 | + } | |
| 11897 | + }], [{ | |
| 11898 | + key: "restore", | |
| 11899 | + value: function restore(historyItem, isRedo) { | |
| 11900 | + var data = historyItem.get('data'), | |
| 11901 | + container = historyItem.get('container'); | |
| 11902 | + | |
| 11903 | + if (isRedo) { | |
| 11904 | + $e.run('document/repeater/remove', { | |
| 11905 | + container: container, | |
| 11906 | + name: data.name, | |
| 11907 | + index: data.index | |
| 11908 | + }); | |
| 11909 | + } else { | |
| 11910 | + $e.run('document/repeater/insert', { | |
| 11911 | + container: container, | |
| 11912 | + model: data.model, | |
| 11913 | + name: data.name, | |
| 11914 | + options: { | |
| 11915 | + at: data.index | |
| 11916 | + } | |
| 11917 | + }); | |
| 11918 | + } | |
| 11919 | + } | |
| 11920 | + }]); | |
| 11921 | + return Remove; | |
| 11922 | +}(_commandHistory.default); | |
| 11923 | + | |
| 11924 | +exports.Remove = Remove; | |
| 11925 | +var _default = Remove; | |
| 11926 | +exports["default"] = _default; | |
| 11927 | + | |
| 11928 | +/***/ }), | |
| 11929 | + | |
| 11930 | +/***/ "../assets/dev/js/editor/document/repeater/component.js": | |
| 11931 | +/*!**************************************************************!*\ | |
| 11932 | + !*** ../assets/dev/js/editor/document/repeater/component.js ***! | |
| 11933 | + \**************************************************************/ | |
| 11934 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 11935 | + | |
| 11936 | +"use strict"; | |
| 11937 | + | |
| 11938 | + | |
| 11939 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 11940 | + | |
| 11941 | +var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireWildcard */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js"); | |
| 11942 | + | |
| 11943 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 11944 | + | |
| 11945 | +_Object$defineProperty(exports, "__esModule", { | |
| 11946 | + value: true | |
| 11947 | +}); | |
| 11948 | + | |
| 11949 | +exports["default"] = void 0; | |
| 11950 | + | |
| 11951 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 11952 | + | |
| 11953 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 11954 | + | |
| 11955 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 11956 | + | |
| 11957 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 11958 | + | |
| 11959 | +var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../core/common/assets/js/api/modules/component-base.js")); | |
| 11960 | + | |
| 11961 | +var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../assets/dev/js/editor/document/repeater/commands/index.js")); | |
| 11962 | + | |
| 11963 | +var Component = /*#__PURE__*/function (_ComponentBase) { | |
| 11964 | + (0, _inherits2.default)(Component, _ComponentBase); | |
| 11965 | + | |
| 11966 | + var _super = (0, _createSuper2.default)(Component); | |
| 11967 | + | |
| 11968 | + function Component() { | |
| 11969 | + (0, _classCallCheck2.default)(this, Component); | |
| 11970 | + return _super.apply(this, arguments); | |
| 11971 | + } | |
| 11972 | + | |
| 11973 | + (0, _createClass2.default)(Component, [{ | |
| 11974 | + key: "getNamespace", | |
| 11975 | + value: function getNamespace() { | |
| 11976 | + return 'document/repeater'; | |
| 11977 | + } | |
| 11978 | + }, { | |
| 11979 | + key: "defaultCommands", | |
| 11980 | + value: function defaultCommands() { | |
| 11981 | + return this.importCommands(commands); | |
| 11982 | + } | |
| 11983 | + }]); | |
| 11984 | + return Component; | |
| 11985 | +}(_componentBase.default); | |
| 11986 | + | |
| 11987 | +exports["default"] = Component; | |
| 11988 | + | |
| 11989 | +/***/ }), | |
| 11990 | + | |
| 11991 | +/***/ "../assets/dev/js/editor/document/save/backwards-compatibility.js": | |
| 11992 | +/*!************************************************************************!*\ | |
| 11993 | + !*** ../assets/dev/js/editor/document/save/backwards-compatibility.js ***! | |
| 11994 | + \************************************************************************/ | |
| 11995 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 11996 | + | |
| 11997 | +"use strict"; | |
| 11998 | + | |
| 11999 | + | |
| 12000 | +var _Object$defineProperty2 = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 12001 | + | |
| 12002 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 12003 | + | |
| 12004 | +_Object$defineProperty2(exports, "__esModule", { | |
| 12005 | + value: true | |
| 12006 | +}); | |
| 12007 | + | |
| 12008 | +exports["default"] = void 0; | |
| 12009 | + | |
| 12010 | +var _defineProperty = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js")); | |
| 12011 | + | |
| 12012 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 12013 | + | |
| 12014 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 12015 | + | |
| 12016 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 12017 | + | |
| 12018 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 12019 | + | |
| 12020 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 12021 | + | |
| 12022 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 12023 | + | |
| 12024 | +var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../core/common/assets/js/api/modules/component-base.js")); | |
| 12025 | + | |
| 12026 | +var BackwardsCompatibility = /*#__PURE__*/function (_ComponentBase) { | |
| 12027 | + (0, _inherits2.default)(BackwardsCompatibility, _ComponentBase); | |
| 12028 | + | |
| 12029 | + var _super = (0, _createSuper2.default)(BackwardsCompatibility); | |
| 12030 | + | |
| 12031 | + function BackwardsCompatibility() { | |
| 12032 | + (0, _classCallCheck2.default)(this, BackwardsCompatibility); | |
| 12033 | + return _super.apply(this, arguments); | |
| 12034 | + } | |
| 12035 | + | |
| 12036 | + (0, _createClass2.default)(BackwardsCompatibility, [{ | |
| 12037 | + key: "__construct", | |
| 12038 | + value: function __construct() { | |
| 12039 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 12040 | + (0, _get2.default)((0, _getPrototypeOf2.default)(BackwardsCompatibility.prototype), "__construct", this).call(this, args); | |
| 12041 | + (0, _defineProperty.default)(this, 'autoSaveTimer', { | |
| 12042 | + get: function get() { | |
| 12043 | + elementorCommon.helpers.softDeprecated('elementor.saver.autoSaveTimer', '2.9.0', "$e.components.get( 'editor/documents' ).autoSaveTimers"); | |
| 12044 | + return $e.components.get('editor/documents').autoSaveTimers; | |
| 12045 | + }, | |
| 12046 | + set: function set(value) { | |
| 12047 | + elementorCommon.helpers.softDeprecated('elementor.saver.autoSaveTimer', '2.9.0', "$e.components.get( 'editor/documents' ).autoSaveTimers[ documentId ]"); | |
| 12048 | + var documentId = elementor.documents.getCurrent(); | |
| 12049 | + $e.components.get('editor/documents').autoSaveTimers[documentId] = value; | |
| 12050 | + } | |
| 12051 | + }); | |
| 12052 | + var onOrig = this.on; | |
| 12053 | + | |
| 12054 | + this.on = function (eventName, callback, context) { | |
| 12055 | + elementorCommon.helpers.softDeprecated('elementor.saver.on', '2.9.0', '$e.hooks'); | |
| 12056 | + onOrig(eventName, callback, context); | |
| 12057 | + }; | |
| 12058 | + | |
| 12059 | + elementor.on('document:loaded', function () { | |
| 12060 | + if (elementor.channels.editor._events && elementor.channels.editor._events.saved) { | |
| 12061 | + elementorCommon.helpers.softDeprecated("elementor.channels.editor.on( 'saved', ... )", '2.9.0', '$e.hooks'); | |
| 12062 | + } | |
| 12063 | + }); | |
| 12064 | + } | |
| 12065 | + }, { | |
| 12066 | + key: "defaultSave", | |
| 12067 | + value: function defaultSave() { | |
| 12068 | + elementorCommon.helpers.softDeprecated('defaultSave', '2.9.0', "$e.run( 'document/save/default' )"); | |
| 12069 | + return $e.run('document/save/default'); | |
| 12070 | + } | |
| 12071 | + }, { | |
| 12072 | + key: "discard", | |
| 12073 | + value: function discard() { | |
| 12074 | + elementorCommon.helpers.softDeprecated('discard', '2.9.0', "$e.run( 'document/save/discard' )"); | |
| 12075 | + return $e.run('document/save/discard'); | |
| 12076 | + } | |
| 12077 | + }, { | |
| 12078 | + key: "doAutoSave", | |
| 12079 | + value: function doAutoSave() { | |
| 12080 | + elementorCommon.helpers.softDeprecated('doAutoSave', '2.9.0', "$e.run( 'document/save/auto' )"); | |
| 12081 | + return $e.run('document/save/auto'); | |
| 12082 | + } | |
| 12083 | + }, { | |
| 12084 | + key: "publish", | |
| 12085 | + value: function publish(options) { | |
| 12086 | + elementorCommon.helpers.softDeprecated('publish', '2.9.0', "$e.run( 'document/save/publish' )"); | |
| 12087 | + return $e.run('document/save/auto', { | |
| 12088 | + options: options | |
| 12089 | + }); | |
| 12090 | + } | |
| 12091 | + }, { | |
| 12092 | + key: "saveAutoSave", | |
| 12093 | + value: function saveAutoSave(options) { | |
| 12094 | + elementorCommon.helpers.softDeprecated('saveAutoSave', '2.9.0', "$e.run( 'document/save/auto', { force: true } )"); | |
| 12095 | + options.force = true; | |
| 12096 | + return $e.run('document/save/auto', options); | |
| 12097 | + } | |
| 12098 | + }, { | |
| 12099 | + key: "saveDraft", | |
| 12100 | + value: function saveDraft() { | |
| 12101 | + elementorCommon.helpers.softDeprecated('saveDraft', '2.9.0', "$e.run( 'document/save/draft' )"); | |
| 12102 | + return $e.run('document/save/draft'); | |
| 12103 | + } | |
| 12104 | + }, { | |
| 12105 | + key: "savePending", | |
| 12106 | + value: function savePending() { | |
| 12107 | + elementorCommon.helpers.softDeprecated('savePending', '2.9.0', "$e.run( 'document/save/pending' )"); | |
| 12108 | + return $e.run('document/save/pending'); | |
| 12109 | + } | |
| 12110 | + }, { | |
| 12111 | + key: "update", | |
| 12112 | + value: function update(options) { | |
| 12113 | + elementorCommon.helpers.softDeprecated('update', '2.9.0', "$e.run( 'document/save/update' )"); | |
| 12114 | + return $e.run('document/save/update', options); | |
| 12115 | + } | |
| 12116 | + }, { | |
| 12117 | + key: "startTimer", | |
| 12118 | + value: function startTimer() { | |
| 12119 | + elementorCommon.helpers.softDeprecated('startTimer', '2.9.0', "$e.components.get( 'document/save' ).startAutoSave"); | |
| 12120 | + throw Error('Deprecated'); | |
| 12121 | + } | |
| 12122 | + }, { | |
| 12123 | + key: "saveEditor", | |
| 12124 | + value: function saveEditor(options) { | |
| 12125 | + elementorCommon.helpers.softDeprecated('saveEditor', '2.9.0', "$e.internal( 'document/save/save' )"); | |
| 12126 | + $e.internal('document/save/save', options); | |
| 12127 | + } | |
| 12128 | + }, { | |
| 12129 | + key: "setFlagEditorChange", | |
| 12130 | + value: function setFlagEditorChange(status) { | |
| 12131 | + elementorCommon.helpers.softDeprecated('setFlagEditorChange', '2.9.0', "$e.internal( 'document/save/set-is-modified' )"); | |
| 12132 | + $e.internal('document/save/set-is-modified', { | |
| 12133 | + status: status | |
| 12134 | + }); | |
| 12135 | + } | |
| 12136 | + }]); | |
| 12137 | + return BackwardsCompatibility; | |
| 12138 | +}(_componentBase.default); | |
| 12139 | + | |
| 12140 | +exports["default"] = BackwardsCompatibility; | |
| 12141 | + | |
| 12142 | +/***/ }), | |
| 12143 | + | |
| 12144 | +/***/ "../assets/dev/js/editor/document/save/commands/auto.js": | |
| 12145 | +/*!**************************************************************!*\ | |
| 12146 | + !*** ../assets/dev/js/editor/document/save/commands/auto.js ***! | |
| 12147 | + \**************************************************************/ | |
| 12148 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 12149 | + | |
| 12150 | +"use strict"; | |
| 12151 | + | |
| 12152 | + | |
| 12153 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 12154 | + | |
| 12155 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 12156 | + | |
| 12157 | +_Object$defineProperty(exports, "__esModule", { | |
| 12158 | + value: true | |
| 12159 | +}); | |
| 12160 | + | |
| 12161 | +exports["default"] = exports.Auto = void 0; | |
| 12162 | + | |
| 12163 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 12164 | + | |
| 12165 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 12166 | + | |
| 12167 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 12168 | + | |
| 12169 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 12170 | + | |
| 12171 | +var _base = _interopRequireDefault(__webpack_require__(/*! ./base/base */ "../assets/dev/js/editor/document/save/commands/base/base.js")); | |
| 12172 | + | |
| 12173 | +var Auto = /*#__PURE__*/function (_Base) { | |
| 12174 | + (0, _inherits2.default)(Auto, _Base); | |
| 12175 | + | |
| 12176 | + var _super = (0, _createSuper2.default)(Auto); | |
| 12177 | + | |
| 12178 | + function Auto() { | |
| 12179 | + (0, _classCallCheck2.default)(this, Auto); | |
| 12180 | + return _super.apply(this, arguments); | |
| 12181 | + } | |
| 12182 | + | |
| 12183 | + (0, _createClass2.default)(Auto, [{ | |
| 12184 | + key: "apply", | |
| 12185 | + value: function apply(args) { | |
| 12186 | + var _args$force = args.force, | |
| 12187 | + force = _args$force === void 0 ? false : _args$force, | |
| 12188 | + _args$document = args.document, | |
| 12189 | + document = _args$document === void 0 ? this.document : _args$document; | |
| 12190 | + | |
| 12191 | + if (!force && !document.container.isEditable()) { | |
| 12192 | + return jQuery.Deferred().reject('Document is not editable'); | |
| 12193 | + } | |
| 12194 | + | |
| 12195 | + if (!document.editor.isChanged) { | |
| 12196 | + return jQuery.Deferred().resolve('Document is not changed'); | |
| 12197 | + } | |
| 12198 | + | |
| 12199 | + args.status = 'autosave'; | |
| 12200 | + args.document = document; | |
| 12201 | + return $e.internal('document/save/save', args); | |
| 12202 | + } | |
| 12203 | + }]); | |
| 12204 | + return Auto; | |
| 12205 | +}(_base.default); | |
| 12206 | + | |
| 12207 | +exports.Auto = Auto; | |
| 12208 | +var _default = Auto; | |
| 12209 | +exports["default"] = _default; | |
| 12210 | + | |
| 12211 | +/***/ }), | |
| 12212 | + | |
| 12213 | +/***/ "../assets/dev/js/editor/document/save/commands/base/base.js": | |
| 12214 | +/*!*******************************************************************!*\ | |
| 12215 | + !*** ../assets/dev/js/editor/document/save/commands/base/base.js ***! | |
| 12216 | + \*******************************************************************/ | |
| 12217 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 12218 | + | |
| 12219 | +"use strict"; | |
| 12220 | + | |
| 12221 | + | |
| 12222 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 12223 | + | |
| 12224 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 12225 | + | |
| 12226 | +_Object$defineProperty(exports, "__esModule", { | |
| 12227 | + value: true | |
| 12228 | +}); | |
| 12229 | + | |
| 12230 | +exports["default"] = void 0; | |
| 12231 | + | |
| 12232 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 12233 | + | |
| 12234 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 12235 | + | |
| 12236 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 12237 | + | |
| 12238 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 12239 | + | |
| 12240 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 12241 | + | |
| 12242 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 12243 | + | |
| 12244 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 12245 | + | |
| 12246 | +var Base = /*#__PURE__*/function (_CommandBase) { | |
| 12247 | + (0, _inherits2.default)(Base, _CommandBase); | |
| 12248 | + | |
| 12249 | + var _super = (0, _createSuper2.default)(Base); | |
| 12250 | + | |
| 12251 | + function Base() { | |
| 12252 | + (0, _classCallCheck2.default)(this, Base); | |
| 12253 | + return _super.apply(this, arguments); | |
| 12254 | + } | |
| 12255 | + | |
| 12256 | + (0, _createClass2.default)(Base, [{ | |
| 12257 | + key: "initialize", | |
| 12258 | + value: function initialize(args) { | |
| 12259 | + (0, _get2.default)((0, _getPrototypeOf2.default)(Base.prototype), "initialize", this).call(this, args); | |
| 12260 | + var _args$document = args.document, | |
| 12261 | + document = _args$document === void 0 ? elementor.documents.getCurrent() : _args$document; | |
| 12262 | + this.document = document; | |
| 12263 | + } | |
| 12264 | + }]); | |
| 12265 | + return Base; | |
| 12266 | +}(_commandBase.default); | |
| 12267 | + | |
| 12268 | +exports["default"] = Base; | |
| 12269 | + | |
| 12270 | +/***/ }), | |
| 12271 | + | |
| 12272 | +/***/ "../assets/dev/js/editor/document/save/commands/default.js": | |
| 12273 | +/*!*****************************************************************!*\ | |
| 12274 | + !*** ../assets/dev/js/editor/document/save/commands/default.js ***! | |
| 12275 | + \*****************************************************************/ | |
| 12276 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 12277 | + | |
| 12278 | +"use strict"; | |
| 12279 | + | |
| 12280 | + | |
| 12281 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 12282 | + | |
| 12283 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 12284 | + | |
| 12285 | +_Object$defineProperty(exports, "__esModule", { | |
| 12286 | + value: true | |
| 12287 | +}); | |
| 12288 | + | |
| 12289 | +exports["default"] = exports.Default = void 0; | |
| 12290 | + | |
| 12291 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 12292 | + | |
| 12293 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 12294 | + | |
| 12295 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 12296 | + | |
| 12297 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 12298 | + | |
| 12299 | +var _base = _interopRequireDefault(__webpack_require__(/*! ./base/base */ "../assets/dev/js/editor/document/save/commands/base/base.js")); | |
| 12300 | + | |
| 12301 | +var Default = /*#__PURE__*/function (_Base) { | |
| 12302 | + (0, _inherits2.default)(Default, _Base); | |
| 12303 | + | |
| 12304 | + var _super = (0, _createSuper2.default)(Default); | |
| 12305 | + | |
| 12306 | + function Default() { | |
| 12307 | + (0, _classCallCheck2.default)(this, Default); | |
| 12308 | + return _super.apply(this, arguments); | |
| 12309 | + } | |
| 12310 | + | |
| 12311 | + (0, _createClass2.default)(Default, [{ | |
| 12312 | + key: "apply", | |
| 12313 | + value: function apply() { | |
| 12314 | + var document = this.document, | |
| 12315 | + postStatus = document.container.settings.get('post_status'); | |
| 12316 | + var deferred; | |
| 12317 | + | |
| 12318 | + switch (postStatus) { | |
| 12319 | + case 'publish': | |
| 12320 | + case 'future': | |
| 12321 | + case 'private': | |
| 12322 | + deferred = $e.run('document/save/update', { | |
| 12323 | + document: document | |
| 12324 | + }); | |
| 12325 | + break; | |
| 12326 | + | |
| 12327 | + case 'draft': | |
| 12328 | + if (document.config.user.can_publish) { | |
| 12329 | + deferred = $e.run('document/save/publish', { | |
| 12330 | + document: document | |
| 12331 | + }); | |
| 12332 | + } else { | |
| 12333 | + deferred = $e.run('document/save/pending', { | |
| 12334 | + document: document | |
| 12335 | + }); | |
| 12336 | + } | |
| 12337 | + | |
| 12338 | + break; | |
| 12339 | + | |
| 12340 | + case 'pending': // User cannot change post status | |
| 12341 | + | |
| 12342 | + case undefined: | |
| 12343 | + // TODO: as a contributor it's undefined instead of 'pending'. | |
| 12344 | + if (document.config.user.can_publish) { | |
| 12345 | + deferred = $e.run('document/save/publish', { | |
| 12346 | + document: document | |
| 12347 | + }); | |
| 12348 | + } else { | |
| 12349 | + deferred = $e.run('document/save/update', { | |
| 12350 | + document: document | |
| 12351 | + }); | |
| 12352 | + } | |
| 12353 | + | |
| 12354 | + } | |
| 12355 | + | |
| 12356 | + return deferred; | |
| 12357 | + } | |
| 12358 | + }]); | |
| 12359 | + return Default; | |
| 12360 | +}(_base.default); | |
| 12361 | + | |
| 12362 | +exports.Default = Default; | |
| 12363 | +var _default = Default; | |
| 12364 | +exports["default"] = _default; | |
| 12365 | + | |
| 12366 | +/***/ }), | |
| 12367 | + | |
| 12368 | +/***/ "../assets/dev/js/editor/document/save/commands/discard.js": | |
| 12369 | +/*!*****************************************************************!*\ | |
| 12370 | + !*** ../assets/dev/js/editor/document/save/commands/discard.js ***! | |
| 12371 | + \*****************************************************************/ | |
| 12372 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 12373 | + | |
| 12374 | +"use strict"; | |
| 12375 | + | |
| 12376 | + | |
| 12377 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 12378 | + | |
| 12379 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 12380 | + | |
| 12381 | +_Object$defineProperty(exports, "__esModule", { | |
| 12382 | + value: true | |
| 12383 | +}); | |
| 12384 | + | |
| 12385 | +exports["default"] = exports.Discard = void 0; | |
| 12386 | + | |
| 12387 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 12388 | + | |
| 12389 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 12390 | + | |
| 12391 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 12392 | + | |
| 12393 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 12394 | + | |
| 12395 | +var _base = _interopRequireDefault(__webpack_require__(/*! ./base/base */ "../assets/dev/js/editor/document/save/commands/base/base.js")); | |
| 12396 | + | |
| 12397 | +var Discard = /*#__PURE__*/function (_Base) { | |
| 12398 | + (0, _inherits2.default)(Discard, _Base); | |
| 12399 | + | |
| 12400 | + var _super = (0, _createSuper2.default)(Discard); | |
| 12401 | + | |
| 12402 | + function Discard() { | |
| 12403 | + (0, _classCallCheck2.default)(this, Discard); | |
| 12404 | + return _super.apply(this, arguments); | |
| 12405 | + } | |
| 12406 | + | |
| 12407 | + (0, _createClass2.default)(Discard, [{ | |
| 12408 | + key: "apply", | |
| 12409 | + value: function apply(args) { | |
| 12410 | + var _args$document = args.document, | |
| 12411 | + document = _args$document === void 0 ? elementor.documents.getCurrent() : _args$document; // Start server request before undo, because the undo can take time. | |
| 12412 | + | |
| 12413 | + var deferred = elementorCommon.ajax.addRequest('discard_changes'); | |
| 12414 | + $e.run('document/history/undo-all', { | |
| 12415 | + document: document | |
| 12416 | + }); // Discard autosave revision if exist. | |
| 12417 | + | |
| 12418 | + return deferred; | |
| 12419 | + } | |
| 12420 | + }]); | |
| 12421 | + return Discard; | |
| 12422 | +}(_base.default); | |
| 12423 | + | |
| 12424 | +exports.Discard = Discard; | |
| 12425 | +var _default = Discard; | |
| 12426 | +exports["default"] = _default; | |
| 12427 | + | |
| 12428 | +/***/ }), | |
| 12429 | + | |
| 12430 | +/***/ "../assets/dev/js/editor/document/save/commands/draft.js": | |
| 12431 | +/*!***************************************************************!*\ | |
| 12432 | + !*** ../assets/dev/js/editor/document/save/commands/draft.js ***! | |
| 12433 | + \***************************************************************/ | |
| 12434 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 12435 | + | |
| 12436 | +"use strict"; | |
| 12437 | + | |
| 12438 | + | |
| 12439 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 12440 | + | |
| 12441 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 12442 | + | |
| 12443 | +_Object$defineProperty(exports, "__esModule", { | |
| 12444 | + value: true | |
| 12445 | +}); | |
| 12446 | + | |
| 12447 | +exports["default"] = exports.Draft = void 0; | |
| 12448 | + | |
| 12449 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 12450 | + | |
| 12451 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 12452 | + | |
| 12453 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 12454 | + | |
| 12455 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 12456 | + | |
| 12457 | +var _base = _interopRequireDefault(__webpack_require__(/*! ./base/base */ "../assets/dev/js/editor/document/save/commands/base/base.js")); | |
| 12458 | + | |
| 12459 | +var Draft = /*#__PURE__*/function (_Base) { | |
| 12460 | + (0, _inherits2.default)(Draft, _Base); | |
| 12461 | + | |
| 12462 | + var _super = (0, _createSuper2.default)(Draft); | |
| 12463 | + | |
| 12464 | + function Draft() { | |
| 12465 | + (0, _classCallCheck2.default)(this, Draft); | |
| 12466 | + return _super.apply(this, arguments); | |
| 12467 | + } | |
| 12468 | + | |
| 12469 | + (0, _createClass2.default)(Draft, [{ | |
| 12470 | + key: "apply", | |
| 12471 | + value: function apply() { | |
| 12472 | + var document = this.document, | |
| 12473 | + postStatus = document.container.settings.get('post_status'); // If no changes - don't save but allow un-publish. | |
| 12474 | + | |
| 12475 | + if (!document.editor.isChanged && 'draft' !== postStatus) { | |
| 12476 | + return jQuery.Deferred().reject('Document is not editable'); | |
| 12477 | + } | |
| 12478 | + | |
| 12479 | + var deferred; | |
| 12480 | + | |
| 12481 | + switch (postStatus) { | |
| 12482 | + case 'publish': | |
| 12483 | + case 'private': | |
| 12484 | + deferred = $e.run('document/save/auto', { | |
| 12485 | + document: document | |
| 12486 | + }); | |
| 12487 | + break; | |
| 12488 | + | |
| 12489 | + default: | |
| 12490 | + // Update and create a revision | |
| 12491 | + deferred = $e.run('document/save/update', { | |
| 12492 | + document: document | |
| 12493 | + }); | |
| 12494 | + } | |
| 12495 | + | |
| 12496 | + return deferred; | |
| 12497 | + } | |
| 12498 | + }]); | |
| 12499 | + return Draft; | |
| 12500 | +}(_base.default); | |
| 12501 | + | |
| 12502 | +exports.Draft = Draft; | |
| 12503 | +var _default = Draft; | |
| 12504 | +exports["default"] = _default; | |
| 12505 | + | |
| 12506 | +/***/ }), | |
| 12507 | + | |
| 12508 | +/***/ "../assets/dev/js/editor/document/save/commands/index.js": | |
| 12509 | +/*!***************************************************************!*\ | |
| 12510 | + !*** ../assets/dev/js/editor/document/save/commands/index.js ***! | |
| 12511 | + \***************************************************************/ | |
| 12512 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 12513 | + | |
| 12514 | +"use strict"; | |
| 12515 | + | |
| 12516 | + | |
| 12517 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 12518 | + | |
| 12519 | +_Object$defineProperty(exports, "__esModule", { | |
| 12520 | + value: true | |
| 12521 | +}); | |
| 12522 | + | |
| 12523 | +_Object$defineProperty(exports, "Auto", { | |
| 12524 | + enumerable: true, | |
| 12525 | + get: function get() { | |
| 12526 | + return _auto.Auto; | |
| 12527 | + } | |
| 12528 | +}); | |
| 12529 | + | |
| 12530 | +_Object$defineProperty(exports, "Default", { | |
| 12531 | + enumerable: true, | |
| 12532 | + get: function get() { | |
| 12533 | + return _default.Default; | |
| 12534 | + } | |
| 12535 | +}); | |
| 12536 | + | |
| 12537 | +_Object$defineProperty(exports, "Discard", { | |
| 12538 | + enumerable: true, | |
| 12539 | + get: function get() { | |
| 12540 | + return _discard.Discard; | |
| 12541 | + } | |
| 12542 | +}); | |
| 12543 | + | |
| 12544 | +_Object$defineProperty(exports, "Draft", { | |
| 12545 | + enumerable: true, | |
| 12546 | + get: function get() { | |
| 12547 | + return _draft.Draft; | |
| 12548 | + } | |
| 12549 | +}); | |
| 12550 | + | |
| 12551 | +_Object$defineProperty(exports, "Pending", { | |
| 12552 | + enumerable: true, | |
| 12553 | + get: function get() { | |
| 12554 | + return _pending.Pending; | |
| 12555 | + } | |
| 12556 | +}); | |
| 12557 | + | |
| 12558 | +_Object$defineProperty(exports, "Publish", { | |
| 12559 | + enumerable: true, | |
| 12560 | + get: function get() { | |
| 12561 | + return _publish.Publish; | |
| 12562 | + } | |
| 12563 | +}); | |
| 12564 | + | |
| 12565 | +_Object$defineProperty(exports, "Update", { | |
| 12566 | + enumerable: true, | |
| 12567 | + get: function get() { | |
| 12568 | + return _update.Update; | |
| 12569 | + } | |
| 12570 | +}); | |
| 12571 | + | |
| 12572 | +var _auto = __webpack_require__(/*! ./auto */ "../assets/dev/js/editor/document/save/commands/auto.js"); | |
| 12573 | + | |
| 12574 | +var _default = __webpack_require__(/*! ./default */ "../assets/dev/js/editor/document/save/commands/default.js"); | |
| 12575 | + | |
| 12576 | +var _discard = __webpack_require__(/*! ./discard */ "../assets/dev/js/editor/document/save/commands/discard.js"); | |
| 12577 | + | |
| 12578 | +var _draft = __webpack_require__(/*! ./draft */ "../assets/dev/js/editor/document/save/commands/draft.js"); | |
| 12579 | + | |
| 12580 | +var _pending = __webpack_require__(/*! ./pending */ "../assets/dev/js/editor/document/save/commands/pending.js"); | |
| 12581 | + | |
| 12582 | +var _publish = __webpack_require__(/*! ./publish */ "../assets/dev/js/editor/document/save/commands/publish.js"); | |
| 12583 | + | |
| 12584 | +var _update = __webpack_require__(/*! ./update */ "../assets/dev/js/editor/document/save/commands/update.js"); | |
| 12585 | + | |
| 12586 | +/***/ }), | |
| 12587 | + | |
| 12588 | +/***/ "../assets/dev/js/editor/document/save/commands/internal/index.js": | |
| 12589 | +/*!************************************************************************!*\ | |
| 12590 | + !*** ../assets/dev/js/editor/document/save/commands/internal/index.js ***! | |
| 12591 | + \************************************************************************/ | |
| 12592 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 12593 | + | |
| 12594 | +"use strict"; | |
| 12595 | + | |
| 12596 | + | |
| 12597 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 12598 | + | |
| 12599 | +_Object$defineProperty(exports, "__esModule", { | |
| 12600 | + value: true | |
| 12601 | +}); | |
| 12602 | + | |
| 12603 | +_Object$defineProperty(exports, "Save", { | |
| 12604 | + enumerable: true, | |
| 12605 | + get: function get() { | |
| 12606 | + return _save.Save; | |
| 12607 | + } | |
| 12608 | +}); | |
| 12609 | + | |
| 12610 | +_Object$defineProperty(exports, "SetIsModified", { | |
| 12611 | + enumerable: true, | |
| 12612 | + get: function get() { | |
| 12613 | + return _setIsModified.SetIsModified; | |
| 12614 | + } | |
| 12615 | +}); | |
| 12616 | + | |
| 12617 | +var _save = __webpack_require__(/*! ./save.js */ "../assets/dev/js/editor/document/save/commands/internal/save.js"); | |
| 12618 | + | |
| 12619 | +var _setIsModified = __webpack_require__(/*! ./set-is-modified */ "../assets/dev/js/editor/document/save/commands/internal/set-is-modified.js"); | |
| 12620 | + | |
| 12621 | +/***/ }), | |
| 12622 | + | |
| 12623 | +/***/ "../assets/dev/js/editor/document/save/commands/internal/save.js": | |
| 12624 | +/*!***********************************************************************!*\ | |
| 12625 | + !*** ../assets/dev/js/editor/document/save/commands/internal/save.js ***! | |
| 12626 | + \***********************************************************************/ | |
| 12627 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 12628 | + | |
| 12629 | +"use strict"; | |
| 12630 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 12631 | + | |
| 12632 | + | |
| 12633 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 12634 | + | |
| 12635 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 12636 | + | |
| 12637 | +_Object$defineProperty(exports, "__esModule", { | |
| 12638 | + value: true | |
| 12639 | +}); | |
| 12640 | + | |
| 12641 | +exports["default"] = exports.Save = void 0; | |
| 12642 | + | |
| 12643 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 12644 | + | |
| 12645 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 12646 | + | |
| 12647 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 12648 | + | |
| 12649 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 12650 | + | |
| 12651 | +var _commandInternalBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-internal-base */ "../core/common/assets/js/api/modules/command-internal-base.js")); | |
| 12652 | + | |
| 12653 | +var Save = /*#__PURE__*/function (_CommandInternalBase) { | |
| 12654 | + (0, _inherits2.default)(Save, _CommandInternalBase); | |
| 12655 | + | |
| 12656 | + var _super = (0, _createSuper2.default)(Save); | |
| 12657 | + | |
| 12658 | + function Save() { | |
| 12659 | + (0, _classCallCheck2.default)(this, Save); | |
| 12660 | + return _super.apply(this, arguments); | |
| 12661 | + } | |
| 12662 | + | |
| 12663 | + (0, _createClass2.default)(Save, [{ | |
| 12664 | + key: "apply", | |
| 12665 | + value: function apply(args) { | |
| 12666 | + var _this = this; | |
| 12667 | + | |
| 12668 | + var _args$status = args.status, | |
| 12669 | + status = _args$status === void 0 ? 'draft' : _args$status, | |
| 12670 | + _args$force = args.force, | |
| 12671 | + force = _args$force === void 0 ? false : _args$force, | |
| 12672 | + _args$onSuccess = args.onSuccess, | |
| 12673 | + onSuccess = _args$onSuccess === void 0 ? null : _args$onSuccess, | |
| 12674 | + _args$document = args.document, | |
| 12675 | + document = _args$document === void 0 ? elementor.documents.getCurrent() : _args$document; | |
| 12676 | + | |
| 12677 | + if (!force && document.editor.isSaving) { | |
| 12678 | + return jQuery.Deferred().reject('Document already in save progress'); | |
| 12679 | + } | |
| 12680 | + | |
| 12681 | + var container = document.container, | |
| 12682 | + settings = container.settings.toJSON({ | |
| 12683 | + remove: ['default'] | |
| 12684 | + }), | |
| 12685 | + oldStatus = container.settings.get('post_status'); // TODO: Remove - Backwards compatibility. | |
| 12686 | + | |
| 12687 | + elementor.saver.trigger('before:save', args).trigger('before:save:' + status, args); | |
| 12688 | + document.editor.isSaving = true; | |
| 12689 | + document.editor.isChangedDuringSave = false; | |
| 12690 | + settings.post_status = status; | |
| 12691 | + var elements = []; | |
| 12692 | + | |
| 12693 | + if (elementor.config.document.panel.has_elements) { | |
| 12694 | + elements = container.model.get('elements').toJSON({ | |
| 12695 | + remove: ['default', 'editSettings', 'defaultEditSettings'] | |
| 12696 | + }); | |
| 12697 | + } | |
| 12698 | + | |
| 12699 | + var successArgs = { | |
| 12700 | + status: status, | |
| 12701 | + oldStatus: oldStatus, | |
| 12702 | + elements: elements, | |
| 12703 | + document: document, | |
| 12704 | + currentHistoryId: document.history.currentItem.get('id') | |
| 12705 | + }; | |
| 12706 | + var deferred = elementorCommon.ajax.addRequest('save_builder', { | |
| 12707 | + data: { | |
| 12708 | + status: status, | |
| 12709 | + elements: elements, | |
| 12710 | + settings: settings | |
| 12711 | + }, | |
| 12712 | + error: function error(data) { | |
| 12713 | + return _this.onSaveError(data, status, document); | |
| 12714 | + } | |
| 12715 | + }).then(function (data) { | |
| 12716 | + return _this.onSaveSuccess(data, successArgs, onSuccess); | |
| 12717 | + }); // TODO: Remove - Backwards compatibility | |
| 12718 | + | |
| 12719 | + elementor.saver.trigger('save', args); | |
| 12720 | + return deferred; | |
| 12721 | + } | |
| 12722 | + }, { | |
| 12723 | + key: "onSaveSuccess", | |
| 12724 | + value: function onSaveSuccess(data, args) { | |
| 12725 | + var callback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; | |
| 12726 | + var status = args.status, | |
| 12727 | + oldStatus = args.oldStatus, | |
| 12728 | + elements = args.elements, | |
| 12729 | + document = args.document, | |
| 12730 | + currentHistoryId = args.currentHistoryId; | |
| 12731 | + this.onAfterAjax(document); | |
| 12732 | + document.editor.lastSaveHistoryId = currentHistoryId; // Remove document cache. | |
| 12733 | + | |
| 12734 | + elementor.documents.invalidateCache(document.id); | |
| 12735 | + var statusChanged = status !== oldStatus, | |
| 12736 | + result = { | |
| 12737 | + data: data, | |
| 12738 | + statusChanged: statusChanged | |
| 12739 | + }; // Document is switched during the save, do nothing. | |
| 12740 | + | |
| 12741 | + if (document !== elementor.documents.getCurrent()) { | |
| 12742 | + return result; | |
| 12743 | + } | |
| 12744 | + | |
| 12745 | + if (!document.editor.isChangedDuringSave) { | |
| 12746 | + document.editor.isSaved = true; | |
| 12747 | + } // TODO: Move to hook. | |
| 12748 | + | |
| 12749 | + | |
| 12750 | + if ('autosave' !== status) { | |
| 12751 | + if (statusChanged) { | |
| 12752 | + $e.run('document/elements/settings', { | |
| 12753 | + container: elementor.settings.page.getEditedView().getContainer(), | |
| 12754 | + settings: { | |
| 12755 | + post_status: status | |
| 12756 | + }, | |
| 12757 | + options: { | |
| 12758 | + external: true | |
| 12759 | + } | |
| 12760 | + }); | |
| 12761 | + } // Notice: Must be after update page.model.post_status to the new status. | |
| 12762 | + | |
| 12763 | + | |
| 12764 | + if (!document.editor.isChangedDuringSave) { | |
| 12765 | + $e.internal('document/save/set-is-modified', { | |
| 12766 | + status: false | |
| 12767 | + }); | |
| 12768 | + } | |
| 12769 | + } | |
| 12770 | + | |
| 12771 | + if (data.config) { | |
| 12772 | + // TODO: Move to es6. | |
| 12773 | + jQuery.extend(true, document.config, data.config.document); | |
| 12774 | + } | |
| 12775 | + | |
| 12776 | + if (document.config.elements) { | |
| 12777 | + document.config.elements = elements; | |
| 12778 | + } // TODO: Remove - Backwards compatibility | |
| 12779 | + | |
| 12780 | + | |
| 12781 | + elementor.channels.editor.trigger('saved', data); // TODO: Remove - Backwards compatibility | |
| 12782 | + | |
| 12783 | + elementor.saver.trigger('after:save', data).trigger('after:save:' + status, data); // TODO: Remove - Backwards compatibility | |
| 12784 | + | |
| 12785 | + if (statusChanged) { | |
| 12786 | + elementor.saver.trigger('page:status:change', status, oldStatus); | |
| 12787 | + } | |
| 12788 | + | |
| 12789 | + if (_.isFunction(callback)) { | |
| 12790 | + callback.call(this, result); | |
| 12791 | + } | |
| 12792 | + | |
| 12793 | + return result; | |
| 12794 | + } | |
| 12795 | + }, { | |
| 12796 | + key: "onSaveError", | |
| 12797 | + value: function onSaveError(data, status, document) { | |
| 12798 | + this.onAfterAjax(document); // TODO: Remove - Backwards compatibility | |
| 12799 | + | |
| 12800 | + elementor.saver.trigger('after:saveError', data).trigger('after:saveError:' + status, data); | |
| 12801 | + var message; | |
| 12802 | + | |
| 12803 | + if (_.isString(data)) { | |
| 12804 | + message = data; | |
| 12805 | + } else if (data.statusText) { | |
| 12806 | + message = elementor.createAjaxErrorMessage(data); | |
| 12807 | + | |
| 12808 | + if (0 === data.readyState) { | |
| 12809 | + message += ' ' + __('Saving has been disabled until you’re reconnected.', 'elementor'); | |
| 12810 | + } | |
| 12811 | + } else if (data[0] && data[0].code) { | |
| 12812 | + message = __('Server Error', 'elementor') + ' ' + data[0].code; | |
| 12813 | + } | |
| 12814 | + | |
| 12815 | + elementor.notifications.showToast({ | |
| 12816 | + message: message | |
| 12817 | + }); | |
| 12818 | + } | |
| 12819 | + }, { | |
| 12820 | + key: "onAfterAjax", | |
| 12821 | + value: function onAfterAjax(document) { | |
| 12822 | + document.editor.isSaving = false; | |
| 12823 | + } | |
| 12824 | + }]); | |
| 12825 | + return Save; | |
| 12826 | +}(_commandInternalBase.default); | |
| 12827 | + | |
| 12828 | +exports.Save = Save; | |
| 12829 | +var _default = Save; | |
| 12830 | +exports["default"] = _default; | |
| 12831 | + | |
| 12832 | +/***/ }), | |
| 12833 | + | |
| 12834 | +/***/ "../assets/dev/js/editor/document/save/commands/internal/set-is-modified.js": | |
| 12835 | +/*!**********************************************************************************!*\ | |
| 12836 | + !*** ../assets/dev/js/editor/document/save/commands/internal/set-is-modified.js ***! | |
| 12837 | + \**********************************************************************************/ | |
| 12838 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 12839 | + | |
| 12840 | +"use strict"; | |
| 12841 | + | |
| 12842 | + | |
| 12843 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 12844 | + | |
| 12845 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 12846 | + | |
| 12847 | +_Object$defineProperty(exports, "__esModule", { | |
| 12848 | + value: true | |
| 12849 | +}); | |
| 12850 | + | |
| 12851 | +exports["default"] = exports.SetIsModified = void 0; | |
| 12852 | + | |
| 12853 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 12854 | + | |
| 12855 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 12856 | + | |
| 12857 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 12858 | + | |
| 12859 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 12860 | + | |
| 12861 | +var _commandInternalBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-internal-base */ "../core/common/assets/js/api/modules/command-internal-base.js")); | |
| 12862 | + | |
| 12863 | +var SetIsModified = /*#__PURE__*/function (_CommandInternalBase) { | |
| 12864 | + (0, _inherits2.default)(SetIsModified, _CommandInternalBase); | |
| 12865 | + | |
| 12866 | + var _super = (0, _createSuper2.default)(SetIsModified); | |
| 12867 | + | |
| 12868 | + function SetIsModified() { | |
| 12869 | + (0, _classCallCheck2.default)(this, SetIsModified); | |
| 12870 | + return _super.apply(this, arguments); | |
| 12871 | + } | |
| 12872 | + | |
| 12873 | + (0, _createClass2.default)(SetIsModified, [{ | |
| 12874 | + key: "validateArgs", | |
| 12875 | + value: function validateArgs(args) { | |
| 12876 | + this.requireArgumentType('status', 'boolean', args); | |
| 12877 | + } | |
| 12878 | + }, { | |
| 12879 | + key: "apply", | |
| 12880 | + value: function apply(args) { | |
| 12881 | + var status = args.status, | |
| 12882 | + _args$document = args.document, | |
| 12883 | + document = _args$document === void 0 ? elementor.documents.getCurrent() : _args$document; // Save document for hooks. | |
| 12884 | + | |
| 12885 | + args.document = document; | |
| 12886 | + document.editor.isChanged = status; | |
| 12887 | + | |
| 12888 | + if (status && document.editor.isSaving) { | |
| 12889 | + document.editor.isChangedDuringSave = true; | |
| 12890 | + } | |
| 12891 | + | |
| 12892 | + if (status) { | |
| 12893 | + document.editor.isSaved = false; | |
| 12894 | + } // TODO: BC. | |
| 12895 | + | |
| 12896 | + | |
| 12897 | + elementor.channels.editor.reply('status', status).trigger('status:change', status); | |
| 12898 | + | |
| 12899 | + if (document.editor.isChanged) { | |
| 12900 | + this.component.startAutoSave(document); | |
| 12901 | + } | |
| 12902 | + } | |
| 12903 | + }]); | |
| 12904 | + return SetIsModified; | |
| 12905 | +}(_commandInternalBase.default); | |
| 12906 | + | |
| 12907 | +exports.SetIsModified = SetIsModified; | |
| 12908 | +var _default = SetIsModified; | |
| 12909 | +exports["default"] = _default; | |
| 12910 | + | |
| 12911 | +/***/ }), | |
| 12912 | + | |
| 12913 | +/***/ "../assets/dev/js/editor/document/save/commands/pending.js": | |
| 12914 | +/*!*****************************************************************!*\ | |
| 12915 | + !*** ../assets/dev/js/editor/document/save/commands/pending.js ***! | |
| 12916 | + \*****************************************************************/ | |
| 12917 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 12918 | + | |
| 12919 | +"use strict"; | |
| 12920 | + | |
| 12921 | + | |
| 12922 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 12923 | + | |
| 12924 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 12925 | + | |
| 12926 | +_Object$defineProperty(exports, "__esModule", { | |
| 12927 | + value: true | |
| 12928 | +}); | |
| 12929 | + | |
| 12930 | +exports.Pending = void 0; | |
| 12931 | + | |
| 12932 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 12933 | + | |
| 12934 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 12935 | + | |
| 12936 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 12937 | + | |
| 12938 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 12939 | + | |
| 12940 | +var _base = _interopRequireDefault(__webpack_require__(/*! ./base/base */ "../assets/dev/js/editor/document/save/commands/base/base.js")); | |
| 12941 | + | |
| 12942 | +var Pending = /*#__PURE__*/function (_Base) { | |
| 12943 | + (0, _inherits2.default)(Pending, _Base); | |
| 12944 | + | |
| 12945 | + var _super = (0, _createSuper2.default)(Pending); | |
| 12946 | + | |
| 12947 | + function Pending() { | |
| 12948 | + (0, _classCallCheck2.default)(this, Pending); | |
| 12949 | + return _super.apply(this, arguments); | |
| 12950 | + } | |
| 12951 | + | |
| 12952 | + (0, _createClass2.default)(Pending, [{ | |
| 12953 | + key: "apply", | |
| 12954 | + value: function apply(args) { | |
| 12955 | + var _args$status = args.status, | |
| 12956 | + status = _args$status === void 0 ? 'pending' : _args$status, | |
| 12957 | + _args$document = args.document, | |
| 12958 | + document = _args$document === void 0 ? this.document : _args$document; | |
| 12959 | + return $e.internal('document/save/save', { | |
| 12960 | + status: status, | |
| 12961 | + document: document | |
| 12962 | + }); | |
| 12963 | + } | |
| 12964 | + }]); | |
| 12965 | + return Pending; | |
| 12966 | +}(_base.default); | |
| 12967 | + | |
| 12968 | +exports.Pending = Pending; | |
| 12969 | + | |
| 12970 | +/***/ }), | |
| 12971 | + | |
| 12972 | +/***/ "../assets/dev/js/editor/document/save/commands/publish.js": | |
| 12973 | +/*!*****************************************************************!*\ | |
| 12974 | + !*** ../assets/dev/js/editor/document/save/commands/publish.js ***! | |
| 12975 | + \*****************************************************************/ | |
| 12976 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 12977 | + | |
| 12978 | +"use strict"; | |
| 12979 | + | |
| 12980 | + | |
| 12981 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 12982 | + | |
| 12983 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 12984 | + | |
| 12985 | +_Object$defineProperty(exports, "__esModule", { | |
| 12986 | + value: true | |
| 12987 | +}); | |
| 12988 | + | |
| 12989 | +exports.Publish = void 0; | |
| 12990 | + | |
| 12991 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 12992 | + | |
| 12993 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 12994 | + | |
| 12995 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 12996 | + | |
| 12997 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 12998 | + | |
| 12999 | +var _base = _interopRequireDefault(__webpack_require__(/*! ./base/base */ "../assets/dev/js/editor/document/save/commands/base/base.js")); | |
| 13000 | + | |
| 13001 | +var Publish = /*#__PURE__*/function (_Base) { | |
| 13002 | + (0, _inherits2.default)(Publish, _Base); | |
| 13003 | + | |
| 13004 | + var _super = (0, _createSuper2.default)(Publish); | |
| 13005 | + | |
| 13006 | + function Publish() { | |
| 13007 | + (0, _classCallCheck2.default)(this, Publish); | |
| 13008 | + return _super.apply(this, arguments); | |
| 13009 | + } | |
| 13010 | + | |
| 13011 | + (0, _createClass2.default)(Publish, [{ | |
| 13012 | + key: "apply", | |
| 13013 | + value: function apply(args) { | |
| 13014 | + var _args$status = args.status, | |
| 13015 | + status = _args$status === void 0 ? 'publish' : _args$status, | |
| 13016 | + _args$document = args.document, | |
| 13017 | + document = _args$document === void 0 ? this.document : _args$document; | |
| 13018 | + return $e.internal('document/save/save', { | |
| 13019 | + status: status, | |
| 13020 | + document: document | |
| 13021 | + }); | |
| 13022 | + } | |
| 13023 | + }]); | |
| 13024 | + return Publish; | |
| 13025 | +}(_base.default); | |
| 13026 | + | |
| 13027 | +exports.Publish = Publish; | |
| 13028 | + | |
| 13029 | +/***/ }), | |
| 13030 | + | |
| 13031 | +/***/ "../assets/dev/js/editor/document/save/commands/update.js": | |
| 13032 | +/*!****************************************************************!*\ | |
| 13033 | + !*** ../assets/dev/js/editor/document/save/commands/update.js ***! | |
| 13034 | + \****************************************************************/ | |
| 13035 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 13036 | + | |
| 13037 | +"use strict"; | |
| 13038 | + | |
| 13039 | + | |
| 13040 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 13041 | + | |
| 13042 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 13043 | + | |
| 13044 | +_Object$defineProperty(exports, "__esModule", { | |
| 13045 | + value: true | |
| 13046 | +}); | |
| 13047 | + | |
| 13048 | +exports.Update = void 0; | |
| 13049 | + | |
| 13050 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 13051 | + | |
| 13052 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 13053 | + | |
| 13054 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 13055 | + | |
| 13056 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 13057 | + | |
| 13058 | +var _base = _interopRequireDefault(__webpack_require__(/*! ./base/base */ "../assets/dev/js/editor/document/save/commands/base/base.js")); | |
| 13059 | + | |
| 13060 | +var Update = /*#__PURE__*/function (_Base) { | |
| 13061 | + (0, _inherits2.default)(Update, _Base); | |
| 13062 | + | |
| 13063 | + var _super = (0, _createSuper2.default)(Update); | |
| 13064 | + | |
| 13065 | + function Update() { | |
| 13066 | + (0, _classCallCheck2.default)(this, Update); | |
| 13067 | + return _super.apply(this, arguments); | |
| 13068 | + } | |
| 13069 | + | |
| 13070 | + (0, _createClass2.default)(Update, [{ | |
| 13071 | + key: "apply", | |
| 13072 | + value: function apply(args) { | |
| 13073 | + var _args$document = args.document, | |
| 13074 | + document = _args$document === void 0 ? this.document : _args$document, | |
| 13075 | + _args$status = args.status, | |
| 13076 | + status = _args$status === void 0 ? document.container.settings.get('post_status') : _args$status; | |
| 13077 | + return $e.internal('document/save/save', { | |
| 13078 | + status: status, | |
| 13079 | + document: document | |
| 13080 | + }); | |
| 13081 | + } | |
| 13082 | + }]); | |
| 13083 | + return Update; | |
| 13084 | +}(_base.default); | |
| 13085 | + | |
| 13086 | +exports.Update = Update; | |
| 13087 | + | |
| 13088 | +/***/ }), | |
| 13089 | + | |
| 13090 | +/***/ "../assets/dev/js/editor/document/save/component.js": | |
| 13091 | +/*!**********************************************************!*\ | |
| 13092 | + !*** ../assets/dev/js/editor/document/save/component.js ***! | |
| 13093 | + \**********************************************************/ | |
| 13094 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 13095 | + | |
| 13096 | +"use strict"; | |
| 13097 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 13098 | + | |
| 13099 | + | |
| 13100 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 13101 | + | |
| 13102 | +var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireWildcard */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js"); | |
| 13103 | + | |
| 13104 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 13105 | + | |
| 13106 | +_Object$defineProperty(exports, "__esModule", { | |
| 13107 | + value: true | |
| 13108 | +}); | |
| 13109 | + | |
| 13110 | +exports["default"] = void 0; | |
| 13111 | + | |
| 13112 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 13113 | + | |
| 13114 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 13115 | + | |
| 13116 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/assertThisInitialized */ "../node_modules/@babel/runtime-corejs2/helpers/assertThisInitialized.js")); | |
| 13117 | + | |
| 13118 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 13119 | + | |
| 13120 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 13121 | + | |
| 13122 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 13123 | + | |
| 13124 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 13125 | + | |
| 13126 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/defineProperty */ "../node_modules/@babel/runtime-corejs2/helpers/defineProperty.js")); | |
| 13127 | + | |
| 13128 | +var _backwardsCompatibility = _interopRequireDefault(__webpack_require__(/*! ./backwards-compatibility */ "../assets/dev/js/editor/document/save/backwards-compatibility.js")); | |
| 13129 | + | |
| 13130 | +var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../assets/dev/js/editor/document/save/commands/index.js")); | |
| 13131 | + | |
| 13132 | +var commandsInternal = _interopRequireWildcard(__webpack_require__(/*! ./commands/internal */ "../assets/dev/js/editor/document/save/commands/internal/index.js")); | |
| 13133 | + | |
| 13134 | +var hooks = _interopRequireWildcard(__webpack_require__(/*! ./hooks/ */ "../assets/dev/js/editor/document/save/hooks/index.js")); | |
| 13135 | + | |
| 13136 | +var Component = /*#__PURE__*/function (_BackwardsCompatibili) { | |
| 13137 | + (0, _inherits2.default)(Component, _BackwardsCompatibili); | |
| 13138 | + | |
| 13139 | + var _super = (0, _createSuper2.default)(Component); | |
| 13140 | + | |
| 13141 | + function Component() { | |
| 13142 | + var _this; | |
| 13143 | + | |
| 13144 | + (0, _classCallCheck2.default)(this, Component); | |
| 13145 | + | |
| 13146 | + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 13147 | + args[_key] = arguments[_key]; | |
| 13148 | + } | |
| 13149 | + | |
| 13150 | + _this = _super.call.apply(_super, [this].concat(args)); | |
| 13151 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "footerSaver", void 0); | |
| 13152 | + return _this; | |
| 13153 | + } | |
| 13154 | + | |
| 13155 | + (0, _createClass2.default)(Component, [{ | |
| 13156 | + key: "__construct", | |
| 13157 | + value: function __construct() { | |
| 13158 | + var _this2 = this; | |
| 13159 | + | |
| 13160 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 13161 | + (0, _get2.default)((0, _getPrototypeOf2.default)(Component.prototype), "__construct", this).call(this, args); | |
| 13162 | + /** | |
| 13163 | + * Auto save timer handlers. | |
| 13164 | + * | |
| 13165 | + * @type {Object} | |
| 13166 | + */ | |
| 13167 | + | |
| 13168 | + this.autoSaveTimers = {}; | |
| 13169 | + /** | |
| 13170 | + * Auto save interval. | |
| 13171 | + * | |
| 13172 | + * @type {number} | |
| 13173 | + */ | |
| 13174 | + | |
| 13175 | + this.autoSaveInterval = elementor.config.autosave_interval * 1000; | |
| 13176 | + elementorCommon.elements.$window.on('beforeunload', function () { | |
| 13177 | + if (_this2.isEditorChanged()) { | |
| 13178 | + // Returns a message to confirm dialog. | |
| 13179 | + return __('Please note: All unsaved changes will be lost.', 'elementor'); | |
| 13180 | + } | |
| 13181 | + }); | |
| 13182 | + } | |
| 13183 | + }, { | |
| 13184 | + key: "getNamespace", | |
| 13185 | + value: function getNamespace() { | |
| 13186 | + return 'document/save'; | |
| 13187 | + } | |
| 13188 | + /** | |
| 13189 | + * TODO: test | |
| 13190 | + * @param {Document} document | |
| 13191 | + */ | |
| 13192 | + | |
| 13193 | + }, { | |
| 13194 | + key: "startAutoSave", | |
| 13195 | + value: function startAutoSave(document) { | |
| 13196 | + var _this3 = this; | |
| 13197 | + | |
| 13198 | + this.stopAutoSave(document); | |
| 13199 | + this.autoSaveTimers[document.id] = setTimeout(function () { | |
| 13200 | + $e.run('document/save/auto', { | |
| 13201 | + document: document | |
| 13202 | + }); | |
| 13203 | + delete _this3.autoSaveTimers[document.id]; | |
| 13204 | + }, this.autoSaveInterval); | |
| 13205 | + } | |
| 13206 | + /** | |
| 13207 | + * TODO: test | |
| 13208 | + * @param {Document} document | |
| 13209 | + */ | |
| 13210 | + | |
| 13211 | + }, { | |
| 13212 | + key: "stopAutoSave", | |
| 13213 | + value: function stopAutoSave(document) { | |
| 13214 | + if (this.autoSaveTimers[document.id]) { | |
| 13215 | + clearTimeout(this.autoSaveTimers[document.id]); | |
| 13216 | + delete this.autoSaveTimers[document.id]; | |
| 13217 | + } | |
| 13218 | + } | |
| 13219 | + }, { | |
| 13220 | + key: "defaultCommands", | |
| 13221 | + value: function defaultCommands() { | |
| 13222 | + return this.importCommands(commands); | |
| 13223 | + } | |
| 13224 | + }, { | |
| 13225 | + key: "defaultCommandsInternal", | |
| 13226 | + value: function defaultCommandsInternal() { | |
| 13227 | + return this.importCommands(commandsInternal); | |
| 13228 | + } | |
| 13229 | + }, { | |
| 13230 | + key: "defaultHooks", | |
| 13231 | + value: function defaultHooks() { | |
| 13232 | + return this.importHooks(hooks); | |
| 13233 | + } | |
| 13234 | + }, { | |
| 13235 | + key: "isEditorChanged", | |
| 13236 | + value: function isEditorChanged() { | |
| 13237 | + return true === elementor.channels.editor.request('status'); | |
| 13238 | + } | |
| 13239 | + }]); | |
| 13240 | + return Component; | |
| 13241 | +}(_backwardsCompatibility.default); | |
| 13242 | + | |
| 13243 | +exports["default"] = Component; | |
| 13244 | + | |
| 13245 | +/***/ }), | |
| 13246 | + | |
| 13247 | +/***/ "../assets/dev/js/editor/document/save/hooks/index.js": | |
| 13248 | +/*!************************************************************!*\ | |
| 13249 | + !*** ../assets/dev/js/editor/document/save/hooks/index.js ***! | |
| 13250 | + \************************************************************/ | |
| 13251 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 13252 | + | |
| 13253 | +"use strict"; | |
| 13254 | + | |
| 13255 | + | |
| 13256 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 13257 | + | |
| 13258 | +var _Object$keys = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js"); | |
| 13259 | + | |
| 13260 | +_Object$defineProperty(exports, "__esModule", { | |
| 13261 | + value: true | |
| 13262 | +}); | |
| 13263 | + | |
| 13264 | +var _ui = __webpack_require__(/*! ./ui/ */ "../assets/dev/js/editor/document/save/hooks/ui/index.js"); | |
| 13265 | + | |
| 13266 | +_Object$keys(_ui).forEach(function (key) { | |
| 13267 | + if (key === "default" || key === "__esModule") return; | |
| 13268 | + if (key in exports && exports[key] === _ui[key]) return; | |
| 13269 | + | |
| 13270 | + _Object$defineProperty(exports, key, { | |
| 13271 | + enumerable: true, | |
| 13272 | + get: function get() { | |
| 13273 | + return _ui[key]; | |
| 13274 | + } | |
| 13275 | + }); | |
| 13276 | +}); | |
| 13277 | + | |
| 13278 | +/***/ }), | |
| 13279 | + | |
| 13280 | +/***/ "../assets/dev/js/editor/document/save/hooks/ui/index.js": | |
| 13281 | +/*!***************************************************************!*\ | |
| 13282 | + !*** ../assets/dev/js/editor/document/save/hooks/ui/index.js ***! | |
| 13283 | + \***************************************************************/ | |
| 13284 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 13285 | + | |
| 13286 | +"use strict"; | |
| 13287 | + | |
| 13288 | + | |
| 13289 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 13290 | + | |
| 13291 | +var _Object$keys = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js"); | |
| 13292 | + | |
| 13293 | +_Object$defineProperty(exports, "__esModule", { | |
| 13294 | + value: true | |
| 13295 | +}); | |
| 13296 | + | |
| 13297 | +var _save = __webpack_require__(/*! ./save/ */ "../assets/dev/js/editor/document/save/hooks/ui/save/index.js"); | |
| 13298 | + | |
| 13299 | +_Object$keys(_save).forEach(function (key) { | |
| 13300 | + if (key === "default" || key === "__esModule") return; | |
| 13301 | + if (key in exports && exports[key] === _save[key]) return; | |
| 13302 | + | |
| 13303 | + _Object$defineProperty(exports, key, { | |
| 13304 | + enumerable: true, | |
| 13305 | + get: function get() { | |
| 13306 | + return _save[key]; | |
| 13307 | + } | |
| 13308 | + }); | |
| 13309 | +}); | |
| 13310 | + | |
| 13311 | +var _setIsModified = __webpack_require__(/*! ./set-is-modified/ */ "../assets/dev/js/editor/document/save/hooks/ui/set-is-modified/index.js"); | |
| 13312 | + | |
| 13313 | +_Object$keys(_setIsModified).forEach(function (key) { | |
| 13314 | + if (key === "default" || key === "__esModule") return; | |
| 13315 | + if (key in exports && exports[key] === _setIsModified[key]) return; | |
| 13316 | + | |
| 13317 | + _Object$defineProperty(exports, key, { | |
| 13318 | + enumerable: true, | |
| 13319 | + get: function get() { | |
| 13320 | + return _setIsModified[key]; | |
| 13321 | + } | |
| 13322 | + }); | |
| 13323 | +}); | |
| 13324 | + | |
| 13325 | +var _settings = __webpack_require__(/*! ./settings */ "../assets/dev/js/editor/document/save/hooks/ui/settings/index.js"); | |
| 13326 | + | |
| 13327 | +_Object$keys(_settings).forEach(function (key) { | |
| 13328 | + if (key === "default" || key === "__esModule") return; | |
| 13329 | + if (key in exports && exports[key] === _settings[key]) return; | |
| 13330 | + | |
| 13331 | + _Object$defineProperty(exports, key, { | |
| 13332 | + enumerable: true, | |
| 13333 | + get: function get() { | |
| 13334 | + return _settings[key]; | |
| 13335 | + } | |
| 13336 | + }); | |
| 13337 | +}); | |
| 13338 | + | |
| 13339 | +/***/ }), | |
| 13340 | + | |
| 13341 | +/***/ "../assets/dev/js/editor/document/save/hooks/ui/save/after.js": | |
| 13342 | +/*!********************************************************************!*\ | |
| 13343 | + !*** ../assets/dev/js/editor/document/save/hooks/ui/save/after.js ***! | |
| 13344 | + \********************************************************************/ | |
| 13345 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 13346 | + | |
| 13347 | +"use strict"; | |
| 13348 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 13349 | + | |
| 13350 | + | |
| 13351 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 13352 | + | |
| 13353 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 13354 | + | |
| 13355 | +_Object$defineProperty(exports, "__esModule", { | |
| 13356 | + value: true | |
| 13357 | +}); | |
| 13358 | + | |
| 13359 | +exports["default"] = exports.FooterSaverAfterSave = void 0; | |
| 13360 | + | |
| 13361 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 13362 | + | |
| 13363 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 13364 | + | |
| 13365 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 13366 | + | |
| 13367 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 13368 | + | |
| 13369 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/ui/after */ "../core/common/assets/js/api/modules/hooks/ui/after.js")); | |
| 13370 | + | |
| 13371 | +var FooterSaverAfterSave = /*#__PURE__*/function (_HookUIAfter) { | |
| 13372 | + (0, _inherits2.default)(FooterSaverAfterSave, _HookUIAfter); | |
| 13373 | + | |
| 13374 | + var _super = (0, _createSuper2.default)(FooterSaverAfterSave); | |
| 13375 | + | |
| 13376 | + function FooterSaverAfterSave() { | |
| 13377 | + (0, _classCallCheck2.default)(this, FooterSaverAfterSave); | |
| 13378 | + return _super.apply(this, arguments); | |
| 13379 | + } | |
| 13380 | + | |
| 13381 | + (0, _createClass2.default)(FooterSaverAfterSave, [{ | |
| 13382 | + key: "getCommand", | |
| 13383 | + value: function getCommand() { | |
| 13384 | + return 'document/save/save'; | |
| 13385 | + } | |
| 13386 | + }, { | |
| 13387 | + key: "getId", | |
| 13388 | + value: function getId() { | |
| 13389 | + return 'footer-saver-after-save'; | |
| 13390 | + } | |
| 13391 | + }, { | |
| 13392 | + key: "apply", | |
| 13393 | + value: function apply(args, result) { | |
| 13394 | + var status = args.status, | |
| 13395 | + data = result.data, | |
| 13396 | + _$e$components$get = $e.components.get('document/save'), | |
| 13397 | + footerSaver = _$e$components$get.footerSaver; | |
| 13398 | + | |
| 13399 | + NProgress.done(); | |
| 13400 | + footerSaver.ui.buttonPublish.removeClass('elementor-button-state'); | |
| 13401 | + footerSaver.ui.lastEditedWrapper.removeClass('elementor-state-active'); | |
| 13402 | + footerSaver.refreshWpPreview(); | |
| 13403 | + footerSaver.setLastEdited(data.config.document.last_edited); | |
| 13404 | + | |
| 13405 | + if (result.statusChanged && 'publish' === status && elementor.config.document.urls.have_a_look) { | |
| 13406 | + this.onPageStatusChange(); | |
| 13407 | + } | |
| 13408 | + } | |
| 13409 | + }, { | |
| 13410 | + key: "onPageStatusChange", | |
| 13411 | + value: function onPageStatusChange() { | |
| 13412 | + var buttons = []; | |
| 13413 | + buttons.push({ | |
| 13414 | + name: 'view_page', | |
| 13415 | + text: __('Have a look', 'elementor'), | |
| 13416 | + callback: function callback() { | |
| 13417 | + open(elementor.config.document.urls.have_a_look); | |
| 13418 | + } | |
| 13419 | + }); | |
| 13420 | + elementor.notifications.showToast({ | |
| 13421 | + message: elementor.config.document.panel.messages.publish_notification, | |
| 13422 | + buttons: buttons | |
| 13423 | + }); | |
| 13424 | + } | |
| 13425 | + }]); | |
| 13426 | + return FooterSaverAfterSave; | |
| 13427 | +}(_after.default); | |
| 13428 | + | |
| 13429 | +exports.FooterSaverAfterSave = FooterSaverAfterSave; | |
| 13430 | +var _default = FooterSaverAfterSave; | |
| 13431 | +exports["default"] = _default; | |
| 13432 | + | |
| 13433 | +/***/ }), | |
| 13434 | + | |
| 13435 | +/***/ "../assets/dev/js/editor/document/save/hooks/ui/save/before.js": | |
| 13436 | +/*!*********************************************************************!*\ | |
| 13437 | + !*** ../assets/dev/js/editor/document/save/hooks/ui/save/before.js ***! | |
| 13438 | + \*********************************************************************/ | |
| 13439 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 13440 | + | |
| 13441 | +"use strict"; | |
| 13442 | + | |
| 13443 | + | |
| 13444 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 13445 | + | |
| 13446 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 13447 | + | |
| 13448 | +_Object$defineProperty(exports, "__esModule", { | |
| 13449 | + value: true | |
| 13450 | +}); | |
| 13451 | + | |
| 13452 | +exports["default"] = exports.FooterSaverBeforeSave = void 0; | |
| 13453 | + | |
| 13454 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 13455 | + | |
| 13456 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 13457 | + | |
| 13458 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 13459 | + | |
| 13460 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 13461 | + | |
| 13462 | +var _before = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/ui/before */ "../core/common/assets/js/api/modules/hooks/ui/before.js")); | |
| 13463 | + | |
| 13464 | +var FooterSaverBeforeSave = /*#__PURE__*/function (_HookUIBefore) { | |
| 13465 | + (0, _inherits2.default)(FooterSaverBeforeSave, _HookUIBefore); | |
| 13466 | + | |
| 13467 | + var _super = (0, _createSuper2.default)(FooterSaverBeforeSave); | |
| 13468 | + | |
| 13469 | + function FooterSaverBeforeSave() { | |
| 13470 | + (0, _classCallCheck2.default)(this, FooterSaverBeforeSave); | |
| 13471 | + return _super.apply(this, arguments); | |
| 13472 | + } | |
| 13473 | + | |
| 13474 | + (0, _createClass2.default)(FooterSaverBeforeSave, [{ | |
| 13475 | + key: "getCommand", | |
| 13476 | + value: function getCommand() { | |
| 13477 | + return 'document/save/save'; | |
| 13478 | + } | |
| 13479 | + }, { | |
| 13480 | + key: "getId", | |
| 13481 | + value: function getId() { | |
| 13482 | + return 'footer-saver-before-save'; | |
| 13483 | + } | |
| 13484 | + }, { | |
| 13485 | + key: "apply", | |
| 13486 | + value: function apply(args) { | |
| 13487 | + var status = args.status, | |
| 13488 | + _$e$components$get = $e.components.get('document/save'), | |
| 13489 | + footerSaver = _$e$components$get.footerSaver; | |
| 13490 | + | |
| 13491 | + NProgress.start(); | |
| 13492 | + | |
| 13493 | + if ('autosave' === status) { | |
| 13494 | + footerSaver.ui.lastEditedWrapper.addClass('elementor-state-active'); | |
| 13495 | + } else { | |
| 13496 | + footerSaver.ui.buttonPublish.addClass('elementor-button-state'); | |
| 13497 | + } | |
| 13498 | + } | |
| 13499 | + }]); | |
| 13500 | + return FooterSaverBeforeSave; | |
| 13501 | +}(_before.default); | |
| 13502 | + | |
| 13503 | +exports.FooterSaverBeforeSave = FooterSaverBeforeSave; | |
| 13504 | +var _default = FooterSaverBeforeSave; | |
| 13505 | +exports["default"] = _default; | |
| 13506 | + | |
| 13507 | +/***/ }), | |
| 13508 | + | |
| 13509 | +/***/ "../assets/dev/js/editor/document/save/hooks/ui/save/catch.js": | |
| 13510 | +/*!********************************************************************!*\ | |
| 13511 | + !*** ../assets/dev/js/editor/document/save/hooks/ui/save/catch.js ***! | |
| 13512 | + \********************************************************************/ | |
| 13513 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 13514 | + | |
| 13515 | +"use strict"; | |
| 13516 | + | |
| 13517 | + | |
| 13518 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 13519 | + | |
| 13520 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 13521 | + | |
| 13522 | +_Object$defineProperty(exports, "__esModule", { | |
| 13523 | + value: true | |
| 13524 | +}); | |
| 13525 | + | |
| 13526 | +exports["default"] = exports.FooterSaverCatchSave = void 0; | |
| 13527 | + | |
| 13528 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 13529 | + | |
| 13530 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 13531 | + | |
| 13532 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 13533 | + | |
| 13534 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 13535 | + | |
| 13536 | +var _catch = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/ui/catch */ "../core/common/assets/js/api/modules/hooks/ui/catch.js")); | |
| 13537 | + | |
| 13538 | +var FooterSaverCatchSave = /*#__PURE__*/function (_HookUICatch) { | |
| 13539 | + (0, _inherits2.default)(FooterSaverCatchSave, _HookUICatch); | |
| 13540 | + | |
| 13541 | + var _super = (0, _createSuper2.default)(FooterSaverCatchSave); | |
| 13542 | + | |
| 13543 | + function FooterSaverCatchSave() { | |
| 13544 | + (0, _classCallCheck2.default)(this, FooterSaverCatchSave); | |
| 13545 | + return _super.apply(this, arguments); | |
| 13546 | + } | |
| 13547 | + | |
| 13548 | + (0, _createClass2.default)(FooterSaverCatchSave, [{ | |
| 13549 | + key: "getCommand", | |
| 13550 | + value: function getCommand() { | |
| 13551 | + return 'document/save/save'; | |
| 13552 | + } | |
| 13553 | + }, { | |
| 13554 | + key: "getId", | |
| 13555 | + value: function getId() { | |
| 13556 | + return 'footer-saver-catch-save'; | |
| 13557 | + } | |
| 13558 | + }, { | |
| 13559 | + key: "apply", | |
| 13560 | + value: function apply() { | |
| 13561 | + NProgress.done(); | |
| 13562 | + $e.components.get('document/save').footerSaver.ui.buttonPublish.removeClass('elementor-button-state'); | |
| 13563 | + } | |
| 13564 | + }]); | |
| 13565 | + return FooterSaverCatchSave; | |
| 13566 | +}(_catch.default); | |
| 13567 | + | |
| 13568 | +exports.FooterSaverCatchSave = FooterSaverCatchSave; | |
| 13569 | +var _default = FooterSaverCatchSave; | |
| 13570 | +exports["default"] = _default; | |
| 13571 | + | |
| 13572 | +/***/ }), | |
| 13573 | + | |
| 13574 | +/***/ "../assets/dev/js/editor/document/save/hooks/ui/save/index.js": | |
| 13575 | +/*!********************************************************************!*\ | |
| 13576 | + !*** ../assets/dev/js/editor/document/save/hooks/ui/save/index.js ***! | |
| 13577 | + \********************************************************************/ | |
| 13578 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 13579 | + | |
| 13580 | +"use strict"; | |
| 13581 | + | |
| 13582 | + | |
| 13583 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 13584 | + | |
| 13585 | +_Object$defineProperty(exports, "__esModule", { | |
| 13586 | + value: true | |
| 13587 | +}); | |
| 13588 | + | |
| 13589 | +_Object$defineProperty(exports, "FooterSaverAfterSave", { | |
| 13590 | + enumerable: true, | |
| 13591 | + get: function get() { | |
| 13592 | + return _after.FooterSaverAfterSave; | |
| 13593 | + } | |
| 13594 | +}); | |
| 13595 | + | |
| 13596 | +_Object$defineProperty(exports, "FooterSaverBeforeSave", { | |
| 13597 | + enumerable: true, | |
| 13598 | + get: function get() { | |
| 13599 | + return _before.FooterSaverBeforeSave; | |
| 13600 | + } | |
| 13601 | +}); | |
| 13602 | + | |
| 13603 | +_Object$defineProperty(exports, "FooterSaverCatchSave", { | |
| 13604 | + enumerable: true, | |
| 13605 | + get: function get() { | |
| 13606 | + return _catch.FooterSaverCatchSave; | |
| 13607 | + } | |
| 13608 | +}); | |
| 13609 | + | |
| 13610 | +var _after = __webpack_require__(/*! ./after */ "../assets/dev/js/editor/document/save/hooks/ui/save/after.js"); | |
| 13611 | + | |
| 13612 | +var _before = __webpack_require__(/*! ./before */ "../assets/dev/js/editor/document/save/hooks/ui/save/before.js"); | |
| 13613 | + | |
| 13614 | +var _catch = __webpack_require__(/*! ./catch */ "../assets/dev/js/editor/document/save/hooks/ui/save/catch.js"); | |
| 13615 | + | |
| 13616 | +/***/ }), | |
| 13617 | + | |
| 13618 | +/***/ "../assets/dev/js/editor/document/save/hooks/ui/set-is-modified/after.js": | |
| 13619 | +/*!*******************************************************************************!*\ | |
| 13620 | + !*** ../assets/dev/js/editor/document/save/hooks/ui/set-is-modified/after.js ***! | |
| 13621 | + \*******************************************************************************/ | |
| 13622 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 13623 | + | |
| 13624 | +"use strict"; | |
| 13625 | + | |
| 13626 | + | |
| 13627 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 13628 | + | |
| 13629 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 13630 | + | |
| 13631 | +_Object$defineProperty(exports, "__esModule", { | |
| 13632 | + value: true | |
| 13633 | +}); | |
| 13634 | + | |
| 13635 | +exports["default"] = exports.FooterSaverActiveSaveButtons = void 0; | |
| 13636 | + | |
| 13637 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 13638 | + | |
| 13639 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 13640 | + | |
| 13641 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 13642 | + | |
| 13643 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 13644 | + | |
| 13645 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/ui/after */ "../core/common/assets/js/api/modules/hooks/ui/after.js")); | |
| 13646 | + | |
| 13647 | +var FooterSaverActiveSaveButtons = /*#__PURE__*/function (_HookUIAfter) { | |
| 13648 | + (0, _inherits2.default)(FooterSaverActiveSaveButtons, _HookUIAfter); | |
| 13649 | + | |
| 13650 | + var _super = (0, _createSuper2.default)(FooterSaverActiveSaveButtons); | |
| 13651 | + | |
| 13652 | + function FooterSaverActiveSaveButtons() { | |
| 13653 | + (0, _classCallCheck2.default)(this, FooterSaverActiveSaveButtons); | |
| 13654 | + return _super.apply(this, arguments); | |
| 13655 | + } | |
| 13656 | + | |
| 13657 | + (0, _createClass2.default)(FooterSaverActiveSaveButtons, [{ | |
| 13658 | + key: "getCommand", | |
| 13659 | + value: function getCommand() { | |
| 13660 | + return 'document/save/set-is-modified'; | |
| 13661 | + } | |
| 13662 | + }, { | |
| 13663 | + key: "getId", | |
| 13664 | + value: function getId() { | |
| 13665 | + return 'footer-saver-activate-save-buttons'; | |
| 13666 | + } | |
| 13667 | + }, { | |
| 13668 | + key: "apply", | |
| 13669 | + value: function apply(args) { | |
| 13670 | + var status = args.status, | |
| 13671 | + document = args.document; | |
| 13672 | + $e.components.get('document/save').footerSaver.activateSaveButtons(document, status); | |
| 13673 | + } | |
| 13674 | + }]); | |
| 13675 | + return FooterSaverActiveSaveButtons; | |
| 13676 | +}(_after.default); | |
| 13677 | + | |
| 13678 | +exports.FooterSaverActiveSaveButtons = FooterSaverActiveSaveButtons; | |
| 13679 | +var _default = FooterSaverActiveSaveButtons; | |
| 13680 | +exports["default"] = _default; | |
| 13681 | + | |
| 13682 | +/***/ }), | |
| 13683 | + | |
| 13684 | +/***/ "../assets/dev/js/editor/document/save/hooks/ui/set-is-modified/index.js": | |
| 13685 | +/*!*******************************************************************************!*\ | |
| 13686 | + !*** ../assets/dev/js/editor/document/save/hooks/ui/set-is-modified/index.js ***! | |
| 13687 | + \*******************************************************************************/ | |
| 13688 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 13689 | + | |
| 13690 | +"use strict"; | |
| 13691 | + | |
| 13692 | + | |
| 13693 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 13694 | + | |
| 13695 | +_Object$defineProperty(exports, "__esModule", { | |
| 13696 | + value: true | |
| 13697 | +}); | |
| 13698 | + | |
| 13699 | +_Object$defineProperty(exports, "FooterSaverActiveSaveButtons", { | |
| 13700 | + enumerable: true, | |
| 13701 | + get: function get() { | |
| 13702 | + return _after.FooterSaverActiveSaveButtons; | |
| 13703 | + } | |
| 13704 | +}); | |
| 13705 | + | |
| 13706 | +var _after = __webpack_require__(/*! ./after */ "../assets/dev/js/editor/document/save/hooks/ui/set-is-modified/after.js"); | |
| 13707 | + | |
| 13708 | +/***/ }), | |
| 13709 | + | |
| 13710 | +/***/ "../assets/dev/js/editor/document/save/hooks/ui/settings/index.js": | |
| 13711 | +/*!************************************************************************!*\ | |
| 13712 | + !*** ../assets/dev/js/editor/document/save/hooks/ui/settings/index.js ***! | |
| 13713 | + \************************************************************************/ | |
| 13714 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 13715 | + | |
| 13716 | +"use strict"; | |
| 13717 | + | |
| 13718 | + | |
| 13719 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 13720 | + | |
| 13721 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 13722 | + | |
| 13723 | +_Object$defineProperty(exports, "__esModule", { | |
| 13724 | + value: true | |
| 13725 | +}); | |
| 13726 | + | |
| 13727 | +exports["default"] = exports.FooterSeverRefreshMenu = void 0; | |
| 13728 | + | |
| 13729 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 13730 | + | |
| 13731 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 13732 | + | |
| 13733 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 13734 | + | |
| 13735 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 13736 | + | |
| 13737 | +var _after = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hooks/ui/after */ "../core/common/assets/js/api/modules/hooks/ui/after.js")); | |
| 13738 | + | |
| 13739 | +var FooterSeverRefreshMenu = /*#__PURE__*/function (_HookUIAfter) { | |
| 13740 | + (0, _inherits2.default)(FooterSeverRefreshMenu, _HookUIAfter); | |
| 13741 | + | |
| 13742 | + var _super = (0, _createSuper2.default)(FooterSeverRefreshMenu); | |
| 13743 | + | |
| 13744 | + function FooterSeverRefreshMenu() { | |
| 13745 | + (0, _classCallCheck2.default)(this, FooterSeverRefreshMenu); | |
| 13746 | + return _super.apply(this, arguments); | |
| 13747 | + } | |
| 13748 | + | |
| 13749 | + (0, _createClass2.default)(FooterSeverRefreshMenu, [{ | |
| 13750 | + key: "getCommand", | |
| 13751 | + value: function getCommand() { | |
| 13752 | + return 'document/elements/settings'; | |
| 13753 | + } | |
| 13754 | + }, { | |
| 13755 | + key: "getId", | |
| 13756 | + value: function getId() { | |
| 13757 | + return 'footer-saver-refresh-menu'; | |
| 13758 | + } | |
| 13759 | + }, { | |
| 13760 | + key: "getContainerType", | |
| 13761 | + value: function getContainerType() { | |
| 13762 | + return 'document'; | |
| 13763 | + } | |
| 13764 | + }, { | |
| 13765 | + key: "getConditions", | |
| 13766 | + value: function getConditions(args) { | |
| 13767 | + return args.settings && 'undefined' !== typeof args.settings.post_status; | |
| 13768 | + } | |
| 13769 | + }, { | |
| 13770 | + key: "apply", | |
| 13771 | + value: function apply(args) { | |
| 13772 | + var _$e$components$get = $e.components.get('document/save'), | |
| 13773 | + footerSaver = _$e$components$get.footerSaver; | |
| 13774 | + | |
| 13775 | + footerSaver.setMenuItems(args.container.document); | |
| 13776 | + footerSaver.refreshWpPreview(); | |
| 13777 | + } | |
| 13778 | + }]); | |
| 13779 | + return FooterSeverRefreshMenu; | |
| 13780 | +}(_after.default); | |
| 13781 | + | |
| 13782 | +exports.FooterSeverRefreshMenu = FooterSeverRefreshMenu; | |
| 13783 | +var _default = FooterSeverRefreshMenu; | |
| 13784 | +exports["default"] = _default; | |
| 13785 | + | |
| 13786 | +/***/ }), | |
| 13787 | + | |
| 13788 | +/***/ "../assets/dev/js/editor/document/ui/commands/copy.js": | |
| 13789 | +/*!************************************************************!*\ | |
| 13790 | + !*** ../assets/dev/js/editor/document/ui/commands/copy.js ***! | |
| 13791 | + \************************************************************/ | |
| 13792 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 13793 | + | |
| 13794 | +"use strict"; | |
| 13795 | + | |
| 13796 | + | |
| 13797 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 13798 | + | |
| 13799 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 13800 | + | |
| 13801 | +_Object$defineProperty(exports, "__esModule", { | |
| 13802 | + value: true | |
| 13803 | +}); | |
| 13804 | + | |
| 13805 | +exports["default"] = exports.Copy = void 0; | |
| 13806 | + | |
| 13807 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 13808 | + | |
| 13809 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 13810 | + | |
| 13811 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 13812 | + | |
| 13813 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 13814 | + | |
| 13815 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 13816 | + | |
| 13817 | +var Copy = /*#__PURE__*/function (_CommandBase) { | |
| 13818 | + (0, _inherits2.default)(Copy, _CommandBase); | |
| 13819 | + | |
| 13820 | + var _super = (0, _createSuper2.default)(Copy); | |
| 13821 | + | |
| 13822 | + function Copy() { | |
| 13823 | + (0, _classCallCheck2.default)(this, Copy); | |
| 13824 | + return _super.apply(this, arguments); | |
| 13825 | + } | |
| 13826 | + | |
| 13827 | + (0, _createClass2.default)(Copy, [{ | |
| 13828 | + key: "apply", | |
| 13829 | + value: function apply() { | |
| 13830 | + var selectedElements = elementor.selection.getElements(); | |
| 13831 | + | |
| 13832 | + if (selectedElements.length) { | |
| 13833 | + return $e.run('document/elements/copy', { | |
| 13834 | + containers: selectedElements | |
| 13835 | + }); | |
| 13836 | + } | |
| 13837 | + | |
| 13838 | + return false; | |
| 13839 | + } | |
| 13840 | + }]); | |
| 13841 | + return Copy; | |
| 13842 | +}(_commandBase.default); | |
| 13843 | + | |
| 13844 | +exports.Copy = Copy; | |
| 13845 | +var _default = Copy; | |
| 13846 | +exports["default"] = _default; | |
| 13847 | + | |
| 13848 | +/***/ }), | |
| 13849 | + | |
| 13850 | +/***/ "../assets/dev/js/editor/document/ui/commands/delete.js": | |
| 13851 | +/*!**************************************************************!*\ | |
| 13852 | + !*** ../assets/dev/js/editor/document/ui/commands/delete.js ***! | |
| 13853 | + \**************************************************************/ | |
| 13854 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 13855 | + | |
| 13856 | +"use strict"; | |
| 13857 | + | |
| 13858 | + | |
| 13859 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 13860 | + | |
| 13861 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 13862 | + | |
| 13863 | +_Object$defineProperty(exports, "__esModule", { | |
| 13864 | + value: true | |
| 13865 | +}); | |
| 13866 | + | |
| 13867 | +exports["default"] = exports.Delete = void 0; | |
| 13868 | + | |
| 13869 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 13870 | + | |
| 13871 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 13872 | + | |
| 13873 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 13874 | + | |
| 13875 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 13876 | + | |
| 13877 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 13878 | + | |
| 13879 | +var Delete = /*#__PURE__*/function (_CommandBase) { | |
| 13880 | + (0, _inherits2.default)(Delete, _CommandBase); | |
| 13881 | + | |
| 13882 | + var _super = (0, _createSuper2.default)(Delete); | |
| 13883 | + | |
| 13884 | + function Delete() { | |
| 13885 | + (0, _classCallCheck2.default)(this, Delete); | |
| 13886 | + return _super.apply(this, arguments); | |
| 13887 | + } | |
| 13888 | + | |
| 13889 | + (0, _createClass2.default)(Delete, [{ | |
| 13890 | + key: "apply", | |
| 13891 | + value: function apply() { | |
| 13892 | + var selectedElements = elementor.selection.getElements(); | |
| 13893 | + | |
| 13894 | + if (selectedElements.length) { | |
| 13895 | + return $e.run('document/elements/delete', { | |
| 13896 | + containers: selectedElements | |
| 13897 | + }); | |
| 13898 | + } | |
| 13899 | + | |
| 13900 | + return false; | |
| 13901 | + } | |
| 13902 | + }]); | |
| 13903 | + return Delete; | |
| 13904 | +}(_commandBase.default); | |
| 13905 | + | |
| 13906 | +exports.Delete = Delete; | |
| 13907 | +var _default = Delete; | |
| 13908 | +exports["default"] = _default; | |
| 13909 | + | |
| 13910 | +/***/ }), | |
| 13911 | + | |
| 13912 | +/***/ "../assets/dev/js/editor/document/ui/commands/duplicate.js": | |
| 13913 | +/*!*****************************************************************!*\ | |
| 13914 | + !*** ../assets/dev/js/editor/document/ui/commands/duplicate.js ***! | |
| 13915 | + \*****************************************************************/ | |
| 13916 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 13917 | + | |
| 13918 | +"use strict"; | |
| 13919 | + | |
| 13920 | + | |
| 13921 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 13922 | + | |
| 13923 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 13924 | + | |
| 13925 | +_Object$defineProperty(exports, "__esModule", { | |
| 13926 | + value: true | |
| 13927 | +}); | |
| 13928 | + | |
| 13929 | +exports["default"] = exports.Duplicate = void 0; | |
| 13930 | + | |
| 13931 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 13932 | + | |
| 13933 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 13934 | + | |
| 13935 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 13936 | + | |
| 13937 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 13938 | + | |
| 13939 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 13940 | + | |
| 13941 | +var Duplicate = /*#__PURE__*/function (_CommandBase) { | |
| 13942 | + (0, _inherits2.default)(Duplicate, _CommandBase); | |
| 13943 | + | |
| 13944 | + var _super = (0, _createSuper2.default)(Duplicate); | |
| 13945 | + | |
| 13946 | + function Duplicate() { | |
| 13947 | + (0, _classCallCheck2.default)(this, Duplicate); | |
| 13948 | + return _super.apply(this, arguments); | |
| 13949 | + } | |
| 13950 | + | |
| 13951 | + (0, _createClass2.default)(Duplicate, [{ | |
| 13952 | + key: "apply", | |
| 13953 | + value: function apply() { | |
| 13954 | + var selectedElements = elementor.selection.getElements(); | |
| 13955 | + | |
| 13956 | + if (selectedElements.length) { | |
| 13957 | + return $e.run('document/elements/duplicate', { | |
| 13958 | + containers: selectedElements | |
| 13959 | + }); | |
| 13960 | + } | |
| 13961 | + | |
| 13962 | + return false; | |
| 13963 | + } | |
| 13964 | + }]); | |
| 13965 | + return Duplicate; | |
| 13966 | +}(_commandBase.default); | |
| 13967 | + | |
| 13968 | +exports.Duplicate = Duplicate; | |
| 13969 | +var _default = Duplicate; | |
| 13970 | +exports["default"] = _default; | |
| 13971 | + | |
| 13972 | +/***/ }), | |
| 13973 | + | |
| 13974 | +/***/ "../assets/dev/js/editor/document/ui/commands/index.js": | |
| 13975 | +/*!*************************************************************!*\ | |
| 13976 | + !*** ../assets/dev/js/editor/document/ui/commands/index.js ***! | |
| 13977 | + \*************************************************************/ | |
| 13978 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 13979 | + | |
| 13980 | +"use strict"; | |
| 13981 | + | |
| 13982 | + | |
| 13983 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 13984 | + | |
| 13985 | +_Object$defineProperty(exports, "__esModule", { | |
| 13986 | + value: true | |
| 13987 | +}); | |
| 13988 | + | |
| 13989 | +_Object$defineProperty(exports, "Copy", { | |
| 13990 | + enumerable: true, | |
| 13991 | + get: function get() { | |
| 13992 | + return _copy.Copy; | |
| 13993 | + } | |
| 13994 | +}); | |
| 13995 | + | |
| 13996 | +_Object$defineProperty(exports, "Delete", { | |
| 13997 | + enumerable: true, | |
| 13998 | + get: function get() { | |
| 13999 | + return _delete.Delete; | |
| 14000 | + } | |
| 14001 | +}); | |
| 14002 | + | |
| 14003 | +_Object$defineProperty(exports, "Duplicate", { | |
| 14004 | + enumerable: true, | |
| 14005 | + get: function get() { | |
| 14006 | + return _duplicate.Duplicate; | |
| 14007 | + } | |
| 14008 | +}); | |
| 14009 | + | |
| 14010 | +_Object$defineProperty(exports, "Paste", { | |
| 14011 | + enumerable: true, | |
| 14012 | + get: function get() { | |
| 14013 | + return _paste.Paste; | |
| 14014 | + } | |
| 14015 | +}); | |
| 14016 | + | |
| 14017 | +_Object$defineProperty(exports, "PasteStyle", { | |
| 14018 | + enumerable: true, | |
| 14019 | + get: function get() { | |
| 14020 | + return _pasteStyle.PasteStyle; | |
| 14021 | + } | |
| 14022 | +}); | |
| 14023 | + | |
| 14024 | +var _copy = __webpack_require__(/*! ./copy */ "../assets/dev/js/editor/document/ui/commands/copy.js"); | |
| 14025 | + | |
| 14026 | +var _delete = __webpack_require__(/*! ./delete */ "../assets/dev/js/editor/document/ui/commands/delete.js"); | |
| 14027 | + | |
| 14028 | +var _duplicate = __webpack_require__(/*! ./duplicate */ "../assets/dev/js/editor/document/ui/commands/duplicate.js"); | |
| 14029 | + | |
| 14030 | +var _paste = __webpack_require__(/*! ./paste */ "../assets/dev/js/editor/document/ui/commands/paste.js"); | |
| 14031 | + | |
| 14032 | +var _pasteStyle = __webpack_require__(/*! ./paste-style */ "../assets/dev/js/editor/document/ui/commands/paste-style.js"); | |
| 14033 | + | |
| 14034 | +/***/ }), | |
| 14035 | + | |
| 14036 | +/***/ "../assets/dev/js/editor/document/ui/commands/paste-style.js": | |
| 14037 | +/*!*******************************************************************!*\ | |
| 14038 | + !*** ../assets/dev/js/editor/document/ui/commands/paste-style.js ***! | |
| 14039 | + \*******************************************************************/ | |
| 14040 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 14041 | + | |
| 14042 | +"use strict"; | |
| 14043 | + | |
| 14044 | + | |
| 14045 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 14046 | + | |
| 14047 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 14048 | + | |
| 14049 | +_Object$defineProperty(exports, "__esModule", { | |
| 14050 | + value: true | |
| 14051 | +}); | |
| 14052 | + | |
| 14053 | +exports["default"] = exports.PasteStyle = void 0; | |
| 14054 | + | |
| 14055 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 14056 | + | |
| 14057 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 14058 | + | |
| 14059 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 14060 | + | |
| 14061 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 14062 | + | |
| 14063 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 14064 | + | |
| 14065 | +var PasteStyle = /*#__PURE__*/function (_CommandBase) { | |
| 14066 | + (0, _inherits2.default)(PasteStyle, _CommandBase); | |
| 14067 | + | |
| 14068 | + var _super = (0, _createSuper2.default)(PasteStyle); | |
| 14069 | + | |
| 14070 | + function PasteStyle() { | |
| 14071 | + (0, _classCallCheck2.default)(this, PasteStyle); | |
| 14072 | + return _super.apply(this, arguments); | |
| 14073 | + } | |
| 14074 | + | |
| 14075 | + (0, _createClass2.default)(PasteStyle, [{ | |
| 14076 | + key: "apply", | |
| 14077 | + value: function apply() { | |
| 14078 | + var selectedElement = elementor.getCurrentElement(); | |
| 14079 | + | |
| 14080 | + if (selectedElement) { | |
| 14081 | + return $e.run('document/elements/paste-style', { | |
| 14082 | + container: selectedElement.getContainer() | |
| 14083 | + }); | |
| 14084 | + } | |
| 14085 | + | |
| 14086 | + return false; | |
| 14087 | + } | |
| 14088 | + }]); | |
| 14089 | + return PasteStyle; | |
| 14090 | +}(_commandBase.default); | |
| 14091 | + | |
| 14092 | +exports.PasteStyle = PasteStyle; | |
| 14093 | +var _default = PasteStyle; | |
| 14094 | +exports["default"] = _default; | |
| 14095 | + | |
| 14096 | +/***/ }), | |
| 14097 | + | |
| 14098 | +/***/ "../assets/dev/js/editor/document/ui/commands/paste.js": | |
| 14099 | +/*!*************************************************************!*\ | |
| 14100 | + !*** ../assets/dev/js/editor/document/ui/commands/paste.js ***! | |
| 14101 | + \*************************************************************/ | |
| 14102 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 14103 | + | |
| 14104 | +"use strict"; | |
| 14105 | + | |
| 14106 | + | |
| 14107 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 14108 | + | |
| 14109 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 14110 | + | |
| 14111 | +_Object$defineProperty(exports, "__esModule", { | |
| 14112 | + value: true | |
| 14113 | +}); | |
| 14114 | + | |
| 14115 | +exports["default"] = exports.Paste = void 0; | |
| 14116 | + | |
| 14117 | +var _values = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "../node_modules/@babel/runtime-corejs2/core-js/object/values.js")); | |
| 14118 | + | |
| 14119 | +__webpack_require__(/*! core-js/modules/es6.array.map.js */ "../node_modules/core-js/modules/es6.array.map.js"); | |
| 14120 | + | |
| 14121 | +__webpack_require__(/*! core-js/modules/es6.array.find-index.js */ "../node_modules/core-js/modules/es6.array.find-index.js"); | |
| 14122 | + | |
| 14123 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 14124 | + | |
| 14125 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 14126 | + | |
| 14127 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 14128 | + | |
| 14129 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 14130 | + | |
| 14131 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 14132 | + | |
| 14133 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 14134 | + | |
| 14135 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 14136 | + | |
| 14137 | +var Paste = /*#__PURE__*/function (_CommandBase) { | |
| 14138 | + (0, _inherits2.default)(Paste, _CommandBase); | |
| 14139 | + | |
| 14140 | + var _super = (0, _createSuper2.default)(Paste); | |
| 14141 | + | |
| 14142 | + function Paste() { | |
| 14143 | + (0, _classCallCheck2.default)(this, Paste); | |
| 14144 | + return _super.apply(this, arguments); | |
| 14145 | + } | |
| 14146 | + | |
| 14147 | + (0, _createClass2.default)(Paste, [{ | |
| 14148 | + key: "initialize", | |
| 14149 | + value: function initialize(args) { | |
| 14150 | + var _args$containers = args.containers, | |
| 14151 | + containers = _args$containers === void 0 ? [args.container] : _args$containers; | |
| 14152 | + (0, _get2.default)((0, _getPrototypeOf2.default)(Paste.prototype), "initialize", this).call(this, args); | |
| 14153 | + this.storage = elementorCommon.storage.get('clipboard') || []; | |
| 14154 | + this.storage = this.storage.map(function (model) { | |
| 14155 | + return new Backbone.Model(model); | |
| 14156 | + }); | |
| 14157 | + | |
| 14158 | + if (!containers[0]) { | |
| 14159 | + this.target = elementor.getCurrentElement(); | |
| 14160 | + this.target = this.target ? [this.target.getContainer()] : null; | |
| 14161 | + } else { | |
| 14162 | + this.target = containers; | |
| 14163 | + } | |
| 14164 | + } | |
| 14165 | + }, { | |
| 14166 | + key: "apply", | |
| 14167 | + value: function apply(args) { | |
| 14168 | + var _this = this; | |
| 14169 | + | |
| 14170 | + if (!this.target || 0 === this.storage.length) { | |
| 14171 | + return false; | |
| 14172 | + } | |
| 14173 | + | |
| 14174 | + var result = []; | |
| 14175 | + this.target.forEach(function ( | |
| 14176 | + /* Container */ | |
| 14177 | + container) { | |
| 14178 | + var _args$options = args.options, | |
| 14179 | + options = _args$options === void 0 ? {} : _args$options, | |
| 14180 | + pasteOptions = $e.components.get('document/elements').utils.getPasteOptions(_this.storage[0], container); | |
| 14181 | + | |
| 14182 | + if (!pasteOptions.isValidChild) { | |
| 14183 | + if (pasteOptions.isSameElement) { | |
| 14184 | + options.at = container.parent.model.get('elements').findIndex(container.model) + 1; // For same element always paste on his parent. | |
| 14185 | + | |
| 14186 | + container = container.parent; | |
| 14187 | + } else if (pasteOptions.isValidGrandChild) { | |
| 14188 | + options.rebuild = true; | |
| 14189 | + } | |
| 14190 | + } | |
| 14191 | + | |
| 14192 | + if ((0, _values.default)(pasteOptions).some(function (opt) { | |
| 14193 | + return !!opt; | |
| 14194 | + })) { | |
| 14195 | + var commandArgs = { | |
| 14196 | + container: container | |
| 14197 | + }; | |
| 14198 | + | |
| 14199 | + if (undefined !== options.rebuild) { | |
| 14200 | + commandArgs.rebuild = options.rebuild; | |
| 14201 | + } | |
| 14202 | + | |
| 14203 | + if (undefined !== options.at) { | |
| 14204 | + commandArgs.at = options.at; | |
| 14205 | + } | |
| 14206 | + | |
| 14207 | + result.push($e.run('document/elements/paste', commandArgs)); | |
| 14208 | + } | |
| 14209 | + }); | |
| 14210 | + | |
| 14211 | + if (0 === result.length) { | |
| 14212 | + return false; | |
| 14213 | + } else if (1 === result.length) { | |
| 14214 | + return result[0]; | |
| 14215 | + } | |
| 14216 | + | |
| 14217 | + return result; | |
| 14218 | + } | |
| 14219 | + }]); | |
| 14220 | + return Paste; | |
| 14221 | +}(_commandBase.default); | |
| 14222 | + | |
| 14223 | +exports.Paste = Paste; | |
| 14224 | +var _default = Paste; | |
| 14225 | +exports["default"] = _default; | |
| 14226 | + | |
| 14227 | +/***/ }), | |
| 14228 | + | |
| 14229 | +/***/ "../assets/dev/js/editor/document/ui/component.js": | |
| 14230 | +/*!********************************************************!*\ | |
| 14231 | + !*** ../assets/dev/js/editor/document/ui/component.js ***! | |
| 14232 | + \********************************************************/ | |
| 14233 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 14234 | + | |
| 14235 | +"use strict"; | |
| 14236 | + | |
| 14237 | + | |
| 14238 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 14239 | + | |
| 14240 | +var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireWildcard */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js"); | |
| 14241 | + | |
| 14242 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 14243 | + | |
| 14244 | +_Object$defineProperty(exports, "__esModule", { | |
| 14245 | + value: true | |
| 14246 | +}); | |
| 14247 | + | |
| 14248 | +exports["default"] = void 0; | |
| 14249 | + | |
| 14250 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 14251 | + | |
| 14252 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 14253 | + | |
| 14254 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 14255 | + | |
| 14256 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 14257 | + | |
| 14258 | +var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../core/common/assets/js/api/modules/component-base.js")); | |
| 14259 | + | |
| 14260 | +var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../assets/dev/js/editor/document/ui/commands/index.js")); | |
| 14261 | + | |
| 14262 | +var Component = /*#__PURE__*/function (_ComponentBase) { | |
| 14263 | + (0, _inherits2.default)(Component, _ComponentBase); | |
| 14264 | + | |
| 14265 | + var _super = (0, _createSuper2.default)(Component); | |
| 14266 | + | |
| 14267 | + function Component() { | |
| 14268 | + (0, _classCallCheck2.default)(this, Component); | |
| 14269 | + return _super.apply(this, arguments); | |
| 14270 | + } | |
| 14271 | + | |
| 14272 | + (0, _createClass2.default)(Component, [{ | |
| 14273 | + key: "getNamespace", | |
| 14274 | + value: function getNamespace() { | |
| 14275 | + return 'document/ui'; | |
| 14276 | + } | |
| 14277 | + }, { | |
| 14278 | + key: "defaultCommands", | |
| 14279 | + value: function defaultCommands() { | |
| 14280 | + return this.importCommands(commands); | |
| 14281 | + } | |
| 14282 | + }, { | |
| 14283 | + key: "defaultShortcuts", | |
| 14284 | + value: function defaultShortcuts() { | |
| 14285 | + return { | |
| 14286 | + copy: { | |
| 14287 | + keys: 'ctrl+c', | |
| 14288 | + exclude: ['input'] | |
| 14289 | + }, | |
| 14290 | + delete: { | |
| 14291 | + keys: 'del', | |
| 14292 | + exclude: ['input'] | |
| 14293 | + }, | |
| 14294 | + duplicate: { | |
| 14295 | + keys: 'ctrl+d' | |
| 14296 | + }, | |
| 14297 | + paste: { | |
| 14298 | + keys: 'ctrl+v', | |
| 14299 | + exclude: ['input'] | |
| 14300 | + }, | |
| 14301 | + 'paste-style': { | |
| 14302 | + keys: 'ctrl+shift+v', | |
| 14303 | + exclude: ['input'] | |
| 14304 | + } | |
| 14305 | + }; | |
| 14306 | + } | |
| 14307 | + }]); | |
| 14308 | + return Component; | |
| 14309 | +}(_componentBase.default); | |
| 14310 | + | |
| 14311 | +exports["default"] = Component; | |
| 14312 | + | |
| 14313 | +/***/ }), | |
| 14314 | + | |
| 14315 | +/***/ "../assets/dev/js/editor/elements/collections/elements.js": | |
| 14316 | +/*!****************************************************************!*\ | |
| 14317 | + !*** ../assets/dev/js/editor/elements/collections/elements.js ***! | |
| 14318 | + \****************************************************************/ | |
| 14319 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 14320 | + | |
| 14321 | +"use strict"; | |
| 14322 | + | |
| 14323 | + | |
| 14324 | +var ElementModel = __webpack_require__(/*! elementor-elements/models/element */ "../assets/dev/js/editor/elements/models/element.js"); | |
| 14325 | + | |
| 14326 | +var ElementsCollection = Backbone.Collection.extend({ | |
| 14327 | + add: function add(models, options, isCorrectSet) { | |
| 14328 | + if ((!options || !options.silent) && !isCorrectSet) { | |
| 14329 | + throw 'Call Error: Adding model to element collection is allowed only by the dedicated addChildModel() method.'; | |
| 14330 | + } | |
| 14331 | + | |
| 14332 | + return Backbone.Collection.prototype.add.call(this, models, options); | |
| 14333 | + }, | |
| 14334 | + model: function model(attrs, options) { | |
| 14335 | + var ModelClass = Backbone.Model; | |
| 14336 | + | |
| 14337 | + if (attrs.elType) { | |
| 14338 | + ModelClass = elementor.hooks.applyFilters('element/model', ElementModel, attrs); | |
| 14339 | + } | |
| 14340 | + | |
| 14341 | + return new ModelClass(attrs, options); | |
| 14342 | + }, | |
| 14343 | + clone: function clone() { | |
| 14344 | + var tempCollection = Backbone.Collection.prototype.clone.apply(this, arguments), | |
| 14345 | + newCollection = new ElementsCollection(); | |
| 14346 | + tempCollection.forEach(function (model) { | |
| 14347 | + newCollection.add(model.clone(), null, true); | |
| 14348 | + }); | |
| 14349 | + return newCollection; | |
| 14350 | + } | |
| 14351 | +}); | |
| 14352 | +ElementsCollection.prototype.sync = ElementsCollection.prototype.fetch = ElementsCollection.prototype.save = _.noop; | |
| 14353 | +module.exports = ElementsCollection; | |
| 14354 | + | |
| 14355 | +/***/ }), | |
| 14356 | + | |
| 14357 | +/***/ "../assets/dev/js/editor/elements/models/column-settings.js": | |
| 14358 | +/*!******************************************************************!*\ | |
| 14359 | + !*** ../assets/dev/js/editor/elements/models/column-settings.js ***! | |
| 14360 | + \******************************************************************/ | |
| 14361 | +/***/ ((module) => { | |
| 14362 | + | |
| 14363 | +"use strict"; | |
| 14364 | + | |
| 14365 | + | |
| 14366 | +module.exports = elementorModules.editor.elements.models.BaseSettings.extend({ | |
| 14367 | + defaults: { | |
| 14368 | + _column_size: 100 | |
| 14369 | + } | |
| 14370 | +}); | |
| 14371 | + | |
| 14372 | +/***/ }), | |
| 14373 | + | |
| 14374 | +/***/ "../assets/dev/js/editor/elements/models/element.js": | |
| 14375 | +/*!**********************************************************!*\ | |
| 14376 | + !*** ../assets/dev/js/editor/elements/models/element.js ***! | |
| 14377 | + \**********************************************************/ | |
| 14378 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 14379 | + | |
| 14380 | +"use strict"; | |
| 14381 | + | |
| 14382 | + | |
| 14383 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 14384 | + | |
| 14385 | +__webpack_require__(/*! core-js/modules/es6.regexp.split.js */ "../node_modules/core-js/modules/es6.regexp.split.js"); | |
| 14386 | + | |
| 14387 | +var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/typeof */ "../node_modules/@babel/runtime-corejs2/helpers/typeof.js")); | |
| 14388 | + | |
| 14389 | +var ColumnSettingsModel = __webpack_require__(/*! elementor-elements/models/column-settings */ "../assets/dev/js/editor/elements/models/column-settings.js"), | |
| 14390 | + ElementModel; | |
| 14391 | + | |
| 14392 | +ElementModel = Backbone.Model.extend({ | |
| 14393 | + defaults: { | |
| 14394 | + id: '', | |
| 14395 | + elType: '', | |
| 14396 | + isInner: false, | |
| 14397 | + settings: {}, | |
| 14398 | + defaultEditSettings: { | |
| 14399 | + defaultEditRoute: 'content' | |
| 14400 | + } | |
| 14401 | + }, | |
| 14402 | + remoteRender: false, | |
| 14403 | + _htmlCache: null, | |
| 14404 | + _jqueryXhr: null, | |
| 14405 | + renderOnLeave: false, | |
| 14406 | + initialize: function initialize(options) { | |
| 14407 | + var elType = this.get('elType'), | |
| 14408 | + elements = this.get('elements'); | |
| 14409 | + | |
| 14410 | + if (undefined !== elements) { | |
| 14411 | + var ElementsCollection = __webpack_require__(/*! elementor-elements/collections/elements */ "../assets/dev/js/editor/elements/collections/elements.js"); | |
| 14412 | + | |
| 14413 | + this.set('elements', new ElementsCollection(elements)); | |
| 14414 | + } | |
| 14415 | + | |
| 14416 | + if ('widget' === elType) { | |
| 14417 | + this.remoteRender = true; | |
| 14418 | + this.setHtmlCache(options.htmlCache || ''); | |
| 14419 | + } // No need this variable anymore | |
| 14420 | + | |
| 14421 | + | |
| 14422 | + delete options.htmlCache; // Make call to remote server as throttle function | |
| 14423 | + | |
| 14424 | + this.renderRemoteServer = _.throttle(this.renderRemoteServer, 1000); | |
| 14425 | + this.initSettings(); | |
| 14426 | + this.initEditSettings(); | |
| 14427 | + this.on({ | |
| 14428 | + destroy: this.onDestroy, | |
| 14429 | + 'editor:close': this.onCloseEditor | |
| 14430 | + }); | |
| 14431 | + }, | |
| 14432 | + initSettings: function initSettings() { | |
| 14433 | + var elType = this.get('elType'), | |
| 14434 | + settings = this.get('settings'), | |
| 14435 | + settingModels = { | |
| 14436 | + column: ColumnSettingsModel | |
| 14437 | + }, | |
| 14438 | + SettingsModel = settingModels[elType] || elementorModules.editor.elements.models.BaseSettings; | |
| 14439 | + | |
| 14440 | + if (jQuery.isEmptyObject(settings)) { | |
| 14441 | + settings = elementorCommon.helpers.cloneObject(settings); | |
| 14442 | + } | |
| 14443 | + | |
| 14444 | + if ('widget' === elType) { | |
| 14445 | + settings.widgetType = this.get('widgetType'); | |
| 14446 | + } | |
| 14447 | + | |
| 14448 | + settings.elType = elType; | |
| 14449 | + settings.isInner = this.get('isInner'); | |
| 14450 | + settings = new SettingsModel(settings, { | |
| 14451 | + controls: elementor.getElementControls(this) | |
| 14452 | + }); | |
| 14453 | + this.set('settings', settings); | |
| 14454 | + elementorFrontend.config.elements.data[this.cid] = settings; | |
| 14455 | + }, | |
| 14456 | + initEditSettings: function initEditSettings() { | |
| 14457 | + var editSettings = new Backbone.Model(this.get('defaultEditSettings')); | |
| 14458 | + this.set('editSettings', editSettings); | |
| 14459 | + elementorFrontend.config.elements.editSettings[this.cid] = editSettings; | |
| 14460 | + }, | |
| 14461 | + setSetting: function setSetting(key, value) { | |
| 14462 | + var settings = this.get('settings'); | |
| 14463 | + | |
| 14464 | + if ('object' !== (0, _typeof2.default)(key)) { | |
| 14465 | + var keyParts = key.split('.'), | |
| 14466 | + isRepeaterKey = 3 === keyParts.length; | |
| 14467 | + key = keyParts[0]; | |
| 14468 | + | |
| 14469 | + if (isRepeaterKey) { | |
| 14470 | + settings = settings.get(key).models[keyParts[1]]; | |
| 14471 | + key = keyParts[2]; | |
| 14472 | + } | |
| 14473 | + } | |
| 14474 | + | |
| 14475 | + settings.setExternalChange(key, value); | |
| 14476 | + }, | |
| 14477 | + getSetting: function getSetting(key) { | |
| 14478 | + var keyParts = key.split('.'), | |
| 14479 | + isRepeaterKey = 3 === keyParts.length, | |
| 14480 | + settings = this.get('settings'); | |
| 14481 | + key = keyParts[0]; | |
| 14482 | + var value = settings.get(key); | |
| 14483 | + | |
| 14484 | + if (undefined === value) { | |
| 14485 | + return ''; | |
| 14486 | + } | |
| 14487 | + | |
| 14488 | + if (isRepeaterKey) { | |
| 14489 | + value = value.models[keyParts[1]].get(keyParts[2]); | |
| 14490 | + } | |
| 14491 | + | |
| 14492 | + return value; | |
| 14493 | + }, | |
| 14494 | + setHtmlCache: function setHtmlCache(htmlCache) { | |
| 14495 | + this._htmlCache = htmlCache; | |
| 14496 | + }, | |
| 14497 | + getHtmlCache: function getHtmlCache() { | |
| 14498 | + return this._htmlCache; | |
| 14499 | + }, | |
| 14500 | + getDefaultTitle: function getDefaultTitle() { | |
| 14501 | + return elementor.getElementData(this).title; | |
| 14502 | + }, | |
| 14503 | + getTitle: function getTitle() { | |
| 14504 | + var title = this.getSetting('_title'); | |
| 14505 | + | |
| 14506 | + if (!title) { | |
| 14507 | + title = this.getDefaultTitle(); | |
| 14508 | + } | |
| 14509 | + | |
| 14510 | + return title; | |
| 14511 | + }, | |
| 14512 | + getIcon: function getIcon() { | |
| 14513 | + return elementor.getElementData(this).icon; | |
| 14514 | + }, | |
| 14515 | + createRemoteRenderRequest: function createRemoteRenderRequest() { | |
| 14516 | + var data = this.toJSON(); | |
| 14517 | + return elementorCommon.ajax.addRequest('render_widget', { | |
| 14518 | + unique_id: this.cid, | |
| 14519 | + data: { | |
| 14520 | + data: data | |
| 14521 | + }, | |
| 14522 | + success: this.onRemoteGetHtml.bind(this) | |
| 14523 | + }, true).jqXhr; | |
| 14524 | + }, | |
| 14525 | + renderRemoteServer: function renderRemoteServer() { | |
| 14526 | + if (!this.remoteRender) { | |
| 14527 | + return; | |
| 14528 | + } | |
| 14529 | + | |
| 14530 | + this.renderOnLeave = false; | |
| 14531 | + this.trigger('before:remote:render'); | |
| 14532 | + | |
| 14533 | + if (this.isRemoteRequestActive()) { | |
| 14534 | + this._jqueryXhr.abort(); | |
| 14535 | + } | |
| 14536 | + | |
| 14537 | + this._jqueryXhr = this.createRemoteRenderRequest(); | |
| 14538 | + }, | |
| 14539 | + isRemoteRequestActive: function isRemoteRequestActive() { | |
| 14540 | + return this._jqueryXhr && 4 !== this._jqueryXhr.readyState; | |
| 14541 | + }, | |
| 14542 | + onRemoteGetHtml: function onRemoteGetHtml(data) { | |
| 14543 | + this.setHtmlCache(data.render); | |
| 14544 | + this.trigger('remote:render'); | |
| 14545 | + }, | |
| 14546 | + clone: function clone() { | |
| 14547 | + var newModel = new this.constructor(elementorCommon.helpers.cloneObject(this.attributes)); | |
| 14548 | + newModel.set('id', elementorCommon.helpers.getUniqueId()); | |
| 14549 | + newModel.setHtmlCache(this.getHtmlCache()); | |
| 14550 | + var elements = this.get('elements'); | |
| 14551 | + | |
| 14552 | + if (!_.isEmpty(elements)) { | |
| 14553 | + newModel.set('elements', elements.clone()); | |
| 14554 | + } | |
| 14555 | + | |
| 14556 | + return newModel; | |
| 14557 | + }, | |
| 14558 | + toJSON: function toJSON(options) { | |
| 14559 | + options = options || {}; // Call parent's toJSON method | |
| 14560 | + | |
| 14561 | + var data = Backbone.Model.prototype.toJSON.call(this); | |
| 14562 | + | |
| 14563 | + _.each(data, function (attribute, key) { | |
| 14564 | + if (attribute && attribute.toJSON) { | |
| 14565 | + data[key] = attribute.toJSON(options); | |
| 14566 | + } | |
| 14567 | + }); | |
| 14568 | + | |
| 14569 | + if (options.copyHtmlCache) { | |
| 14570 | + data.htmlCache = this.getHtmlCache(); | |
| 14571 | + } else { | |
| 14572 | + delete data.htmlCache; | |
| 14573 | + } | |
| 14574 | + | |
| 14575 | + if (options.remove) { | |
| 14576 | + options.remove.forEach(function (key) { | |
| 14577 | + return delete data[key]; | |
| 14578 | + }); | |
| 14579 | + } | |
| 14580 | + | |
| 14581 | + return data; | |
| 14582 | + }, | |
| 14583 | + onCloseEditor: function onCloseEditor() { | |
| 14584 | + if (this.renderOnLeave) { | |
| 14585 | + this.renderRemoteServer(); | |
| 14586 | + } | |
| 14587 | + }, | |
| 14588 | + onDestroy: function onDestroy() { | |
| 14589 | + // Clean the memory for all use instances | |
| 14590 | + var settings = this.get('settings'), | |
| 14591 | + elements = this.get('elements'); | |
| 14592 | + | |
| 14593 | + if (undefined !== elements) { | |
| 14594 | + _.each(_.clone(elements.models), function (model) { | |
| 14595 | + model.destroy(); | |
| 14596 | + }); | |
| 14597 | + } | |
| 14598 | + | |
| 14599 | + settings.destroy(); | |
| 14600 | + } | |
| 14601 | +}); | |
| 14602 | +ElementModel.prototype.sync = ElementModel.prototype.fetch = ElementModel.prototype.save = _.noop; | |
| 14603 | +module.exports = ElementModel; | |
| 14604 | + | |
| 14605 | +/***/ }), | |
| 14606 | + | |
| 14607 | +/***/ "../assets/dev/js/editor/elements/views/base.js": | |
| 14608 | +/*!******************************************************!*\ | |
| 14609 | + !*** ../assets/dev/js/editor/elements/views/base.js ***! | |
| 14610 | + \******************************************************/ | |
| 14611 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 14612 | + | |
| 14613 | +"use strict"; | |
| 14614 | +/* provided dependency */ var sprintf = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["sprintf"]; | |
| 14615 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 14616 | + | |
| 14617 | + | |
| 14618 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 14619 | + | |
| 14620 | +__webpack_require__(/*! core-js/modules/es6.function.name.js */ "../node_modules/core-js/modules/es6.function.name.js"); | |
| 14621 | + | |
| 14622 | +__webpack_require__(/*! core-js/modules/es6.array.find.js */ "../node_modules/core-js/modules/es6.array.find.js"); | |
| 14623 | + | |
| 14624 | +var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/typeof */ "../node_modules/@babel/runtime-corejs2/helpers/typeof.js")); | |
| 14625 | + | |
| 14626 | +var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/toConsumableArray */ "../node_modules/@babel/runtime-corejs2/helpers/toConsumableArray.js")); | |
| 14627 | + | |
| 14628 | +var _keys = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js")); | |
| 14629 | + | |
| 14630 | +var _parseInt2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/parse-int */ "../node_modules/@babel/runtime-corejs2/core-js/parse-int.js")); | |
| 14631 | + | |
| 14632 | +var _isArray = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/array/is-array */ "../node_modules/@babel/runtime-corejs2/core-js/array/is-array.js")); | |
| 14633 | + | |
| 14634 | +var _environment = _interopRequireDefault(__webpack_require__(/*! elementor-common/utils/environment */ "../core/common/assets/js/utils/environment.js")); | |
| 14635 | + | |
| 14636 | +var ControlsCSSParser = __webpack_require__(/*! elementor-editor-utils/controls-css-parser */ "../assets/dev/js/editor/utils/controls-css-parser.js"), | |
| 14637 | + Validator = __webpack_require__(/*! elementor-validator/base */ "../assets/dev/js/editor/components/validator/base.js"), | |
| 14638 | + BaseContainer = __webpack_require__(/*! elementor-views/base-container */ "../assets/dev/js/editor/views/base-container.js"), | |
| 14639 | + BaseElementView; | |
| 14640 | + | |
| 14641 | +BaseElementView = BaseContainer.extend({ | |
| 14642 | + tagName: 'div', | |
| 14643 | + controlsCSSParser: null, | |
| 14644 | + allowRender: true, | |
| 14645 | + toggleEditTools: false, | |
| 14646 | + renderAttributes: {}, | |
| 14647 | + className: function className() { | |
| 14648 | + var classes = 'elementor-element elementor-element-edit-mode ' + this.getElementUniqueID(); | |
| 14649 | + | |
| 14650 | + if (this.toggleEditTools) { | |
| 14651 | + classes += ' elementor-element--toggle-edit-tools'; | |
| 14652 | + } | |
| 14653 | + | |
| 14654 | + return classes; | |
| 14655 | + }, | |
| 14656 | + attributes: function attributes() { | |
| 14657 | + return { | |
| 14658 | + 'data-id': this.getID(), | |
| 14659 | + 'data-element_type': this.model.get('elType') | |
| 14660 | + }; | |
| 14661 | + }, | |
| 14662 | + ui: function ui() { | |
| 14663 | + return { | |
| 14664 | + tools: '> .elementor-element-overlay > .elementor-editor-element-settings', | |
| 14665 | + editButton: '> .elementor-element-overlay .elementor-editor-element-edit', | |
| 14666 | + duplicateButton: '> .elementor-element-overlay .elementor-editor-element-duplicate', | |
| 14667 | + addButton: '> .elementor-element-overlay .elementor-editor-element-add', | |
| 14668 | + removeButton: '> .elementor-element-overlay .elementor-editor-element-remove' | |
| 14669 | + }; | |
| 14670 | + }, | |
| 14671 | + behaviors: function behaviors() { | |
| 14672 | + var elementType = this.options.model.get('elType'); | |
| 14673 | + var groups = elementor.hooks.applyFilters("elements/".concat(elementType, "/contextMenuGroups"), this.getContextMenuGroups(), this); | |
| 14674 | + var behaviors = { | |
| 14675 | + contextMenu: { | |
| 14676 | + behaviorClass: __webpack_require__(/*! elementor-behaviors/context-menu */ "../assets/dev/js/editor/elements/views/behaviors/context-menu.js"), | |
| 14677 | + groups: groups | |
| 14678 | + } | |
| 14679 | + }; | |
| 14680 | + return elementor.hooks.applyFilters('elements/base/behaviors', behaviors, this); | |
| 14681 | + }, | |
| 14682 | + getBehavior: function getBehavior(name) { | |
| 14683 | + return this._behaviors[(0, _keys.default)(this.behaviors()).indexOf(name)]; | |
| 14684 | + }, | |
| 14685 | + events: function events() { | |
| 14686 | + return { | |
| 14687 | + mousedown: 'onMouseDown', | |
| 14688 | + 'click @ui.editButton': 'onEditButtonClick', | |
| 14689 | + 'click @ui.duplicateButton': 'onDuplicateButtonClick', | |
| 14690 | + 'click @ui.addButton': 'onAddButtonClick', | |
| 14691 | + 'click @ui.removeButton': 'onRemoveButtonClick' | |
| 14692 | + }; | |
| 14693 | + }, | |
| 14694 | + getElementType: function getElementType() { | |
| 14695 | + return this.model.get('elType'); | |
| 14696 | + }, | |
| 14697 | + getIDInt: function getIDInt() { | |
| 14698 | + return (0, _parseInt2.default)(this.getID(), 16); | |
| 14699 | + }, | |
| 14700 | + getChildType: function getChildType() { | |
| 14701 | + return elementor.helpers.getElementChildType(this.getElementType()); | |
| 14702 | + }, | |
| 14703 | + getChildView: function getChildView(model) { | |
| 14704 | + var ChildView; | |
| 14705 | + var elType = model.get('elType'); | |
| 14706 | + | |
| 14707 | + if ('section' === elType) { | |
| 14708 | + ChildView = __webpack_require__(/*! elementor-elements/views/section */ "../assets/dev/js/editor/elements/views/section.js"); | |
| 14709 | + } else if ('column' === elType) { | |
| 14710 | + ChildView = __webpack_require__(/*! elementor-elements/views/column */ "../assets/dev/js/editor/elements/views/column.js"); | |
| 14711 | + } else { | |
| 14712 | + ChildView = elementor.modules.elements.views.Widget; | |
| 14713 | + } | |
| 14714 | + | |
| 14715 | + return elementor.hooks.applyFilters('element/view', ChildView, model, this); | |
| 14716 | + }, | |
| 14717 | + getTemplateType: function getTemplateType() { | |
| 14718 | + return 'js'; | |
| 14719 | + }, | |
| 14720 | + getEditModel: function getEditModel() { | |
| 14721 | + return this.model; | |
| 14722 | + }, | |
| 14723 | + getContainer: function getContainer() { | |
| 14724 | + if (!this.container) { | |
| 14725 | + var settingsModel = this.model.get('settings'); | |
| 14726 | + this.container = new elementorModules.editor.Container({ | |
| 14727 | + type: this.model.get('elType'), | |
| 14728 | + id: this.model.id, | |
| 14729 | + model: this.model, | |
| 14730 | + settings: settingsModel, | |
| 14731 | + view: this, | |
| 14732 | + parent: this._parent ? this._parent.getContainer() : {}, | |
| 14733 | + label: elementor.helpers.getModelLabel(this.model), | |
| 14734 | + controls: settingsModel.options.controls | |
| 14735 | + }); | |
| 14736 | + } | |
| 14737 | + | |
| 14738 | + return this.container; | |
| 14739 | + }, | |
| 14740 | + getContextMenuGroups: function getContextMenuGroups() { | |
| 14741 | + var _this = this; | |
| 14742 | + | |
| 14743 | + var controlSign = _environment.default.mac ? '⌘' : '^'; | |
| 14744 | + var groups = [{ | |
| 14745 | + name: 'general', | |
| 14746 | + actions: [{ | |
| 14747 | + name: 'edit', | |
| 14748 | + icon: 'eicon-edit', | |
| 14749 | + | |
| 14750 | + /* translators: %s: Element Name. */ | |
| 14751 | + title: function title() { | |
| 14752 | + return sprintf(__('Edit %s', 'elementor'), elementor.selection.isMultiple() ? '' : _this.options.model.getTitle()); | |
| 14753 | + }, | |
| 14754 | + isEnabled: function isEnabled() { | |
| 14755 | + return !elementor.selection.isMultiple(); | |
| 14756 | + }, | |
| 14757 | + callback: function callback() { | |
| 14758 | + return $e.run('panel/editor/open', { | |
| 14759 | + model: _this.options.model, | |
| 14760 | + // Todo: remove on merge router | |
| 14761 | + view: _this, | |
| 14762 | + // Todo: remove on merge router | |
| 14763 | + container: _this.getContainer() | |
| 14764 | + }); | |
| 14765 | + } | |
| 14766 | + }, { | |
| 14767 | + name: 'duplicate', | |
| 14768 | + icon: 'eicon-clone', | |
| 14769 | + title: __('Duplicate', 'elementor'), | |
| 14770 | + shortcut: controlSign + '+D', | |
| 14771 | + isEnabled: function isEnabled() { | |
| 14772 | + return elementor.selection.isSameType(); | |
| 14773 | + }, | |
| 14774 | + callback: function callback() { | |
| 14775 | + return $e.run('document/elements/duplicate', { | |
| 14776 | + containers: elementor.selection.getElements(_this.getContainer()) | |
| 14777 | + }); | |
| 14778 | + } | |
| 14779 | + }] | |
| 14780 | + }, { | |
| 14781 | + name: 'clipboard', | |
| 14782 | + actions: [{ | |
| 14783 | + name: 'copy', | |
| 14784 | + title: __('Copy', 'elementor'), | |
| 14785 | + shortcut: controlSign + '+C', | |
| 14786 | + isEnabled: function isEnabled() { | |
| 14787 | + return elementor.selection.isSameType(); | |
| 14788 | + }, | |
| 14789 | + callback: function callback() { | |
| 14790 | + return $e.run('document/elements/copy', { | |
| 14791 | + containers: elementor.selection.getElements(_this.getContainer()) | |
| 14792 | + }); | |
| 14793 | + } | |
| 14794 | + }, { | |
| 14795 | + name: 'paste', | |
| 14796 | + title: __('Paste', 'elementor'), | |
| 14797 | + shortcut: controlSign + '+V', | |
| 14798 | + isEnabled: function isEnabled() { | |
| 14799 | + return $e.components.get('document/elements').utils.isPasteEnabled(_this.getContainer()) && elementor.selection.isSameType(); | |
| 14800 | + }, | |
| 14801 | + callback: function callback() { | |
| 14802 | + return $e.run('document/ui/paste', { | |
| 14803 | + container: _this.getContainer() | |
| 14804 | + }); | |
| 14805 | + } | |
| 14806 | + }, { | |
| 14807 | + name: 'pasteStyle', | |
| 14808 | + title: __('Paste Style', 'elementor'), | |
| 14809 | + shortcut: controlSign + '+⇧+V', | |
| 14810 | + isEnabled: function isEnabled() { | |
| 14811 | + return !!elementorCommon.storage.get('clipboard'); | |
| 14812 | + }, | |
| 14813 | + callback: function callback() { | |
| 14814 | + return $e.run('document/elements/paste-style', { | |
| 14815 | + containers: elementor.selection.getElements(_this.getContainer()) | |
| 14816 | + }); | |
| 14817 | + } | |
| 14818 | + }, { | |
| 14819 | + name: 'resetStyle', | |
| 14820 | + title: __('Reset Style', 'elementor'), | |
| 14821 | + callback: function callback() { | |
| 14822 | + return $e.run('document/elements/reset-style', { | |
| 14823 | + containers: elementor.selection.getElements(_this.getContainer()) | |
| 14824 | + }); | |
| 14825 | + } | |
| 14826 | + }] | |
| 14827 | + }]; | |
| 14828 | + var customGroups = []; | |
| 14829 | + /** | |
| 14830 | + * Filter Additional Context Menu Groups. | |
| 14831 | + * | |
| 14832 | + * This filter allows adding new context menu groups to elements. | |
| 14833 | + * | |
| 14834 | + * @param array customGroups - An array of group objects. | |
| 14835 | + * @param string elementType - The current element type. | |
| 14836 | + */ | |
| 14837 | + | |
| 14838 | + customGroups = elementor.hooks.applyFilters('elements/context-menu/groups', customGroups, this.options.model.get('elType')); | |
| 14839 | + | |
| 14840 | + if (customGroups.length) { | |
| 14841 | + groups = [].concat((0, _toConsumableArray2.default)(groups), (0, _toConsumableArray2.default)(customGroups)); | |
| 14842 | + } | |
| 14843 | + | |
| 14844 | + groups.push({ | |
| 14845 | + name: 'delete', | |
| 14846 | + actions: [{ | |
| 14847 | + name: 'delete', | |
| 14848 | + icon: 'eicon-trash', | |
| 14849 | + title: function title() { | |
| 14850 | + return elementor.selection.isMultiple() ? sprintf(__('Delete %d items', 'elementor'), elementor.selection.getElements().length) : __('Delete', 'elementor'); | |
| 14851 | + }, | |
| 14852 | + shortcut: '⌦', | |
| 14853 | + callback: function callback() { | |
| 14854 | + return $e.run('document/elements/delete', { | |
| 14855 | + containers: elementor.selection.getElements(_this.getContainer()) | |
| 14856 | + }); | |
| 14857 | + } | |
| 14858 | + }] | |
| 14859 | + }); | |
| 14860 | + return groups; | |
| 14861 | + }, | |
| 14862 | + getEditButtons: function getEditButtons() { | |
| 14863 | + return {}; | |
| 14864 | + }, | |
| 14865 | + initialize: function initialize() { | |
| 14866 | + var _this2 = this; | |
| 14867 | + | |
| 14868 | + BaseContainer.prototype.initialize.apply(this, arguments); | |
| 14869 | + var editModel = this.getEditModel(); | |
| 14870 | + | |
| 14871 | + if (this.collection && this.onCollectionChanged) { | |
| 14872 | + elementorCommon.helpers.softDeprecated('onCollectionChanged', '2.8.0', '$e.hooks'); | |
| 14873 | + this.listenTo(this.collection, 'add remove reset', this.onCollectionChanged, this); | |
| 14874 | + } | |
| 14875 | + | |
| 14876 | + if (this.onSettingsChanged) { | |
| 14877 | + elementorCommon.helpers.softDeprecated('onSettingsChanged', '2.8.0', '$e.hooks'); | |
| 14878 | + this.listenTo(editModel.get('settings'), 'change', this.onSettingsChanged); | |
| 14879 | + } | |
| 14880 | + | |
| 14881 | + this.listenTo(editModel.get('editSettings'), 'change', this.onEditSettingsChanged).listenTo(this.model, 'request:edit', this.onEditRequest).listenTo(this.model, 'request:toggleVisibility', this.toggleVisibility); | |
| 14882 | + this.initControlsCSSParser(); | |
| 14883 | + | |
| 14884 | + _.defer(function () { | |
| 14885 | + // Init container. Defer - in order to init the container after the element is fully initialized, and properties like `_parent` are available. | |
| 14886 | + _this2.getContainer(); | |
| 14887 | + }); | |
| 14888 | + }, | |
| 14889 | + getHandlesOverlay: function getHandlesOverlay() { | |
| 14890 | + var elementType = this.getElementType(), | |
| 14891 | + $handlesOverlay = jQuery('<div>', { | |
| 14892 | + class: 'elementor-element-overlay' | |
| 14893 | + }), | |
| 14894 | + $overlayList = jQuery('<ul>', { | |
| 14895 | + class: "elementor-editor-element-settings elementor-editor-".concat(elementType, "-settings") | |
| 14896 | + }), | |
| 14897 | + editButtonsEnabled = elementor.getPreferences('edit_buttons'), | |
| 14898 | + elementData = elementor.getElementData(this.model); | |
| 14899 | + var editButtons = this.getEditButtons(); // We should only allow external modification to edit buttons if the user enabled edit buttons. | |
| 14900 | + | |
| 14901 | + if (editButtonsEnabled) { | |
| 14902 | + /** | |
| 14903 | + * Filter edit buttons. | |
| 14904 | + * | |
| 14905 | + * This filter allows adding edit buttons to all element types. | |
| 14906 | + * | |
| 14907 | + * @since 3.5.0 | |
| 14908 | + * | |
| 14909 | + * @param array editButtons An array of buttons. | |
| 14910 | + */ | |
| 14911 | + editButtons = elementor.hooks.applyFilters("elements/edit-buttons", editButtons); | |
| 14912 | + /** | |
| 14913 | + * Filter edit buttons. | |
| 14914 | + * | |
| 14915 | + * This filter allows adding edit buttons only to a specific element type. | |
| 14916 | + * | |
| 14917 | + * The dynamic portion of the hook name, `elementType`, refers to element type (widget, column, section). | |
| 14918 | + * | |
| 14919 | + * @since 3.5.0 | |
| 14920 | + * | |
| 14921 | + * @param array editButtons An array of buttons. | |
| 14922 | + */ | |
| 14923 | + | |
| 14924 | + editButtons = elementor.hooks.applyFilters("elements/edit-buttons/".concat(elementType), editButtons); | |
| 14925 | + } // Only sections always have the remove button, even if the Editing Handles preference is off. | |
| 14926 | + | |
| 14927 | + | |
| 14928 | + if ('section' === elementType || editButtonsEnabled) { | |
| 14929 | + editButtons.remove = { | |
| 14930 | + /* translators: %s: Element Name. */ | |
| 14931 | + title: sprintf(__('Delete %s', 'elementor'), elementData.title), | |
| 14932 | + icon: 'close' | |
| 14933 | + }; | |
| 14934 | + } | |
| 14935 | + | |
| 14936 | + jQuery.each(editButtons, function (toolName, tool) { | |
| 14937 | + var $item = jQuery('<li>', { | |
| 14938 | + class: "elementor-editor-element-setting elementor-editor-element-".concat(toolName), | |
| 14939 | + title: tool.title | |
| 14940 | + }), | |
| 14941 | + $icon = jQuery('<i>', { | |
| 14942 | + class: "eicon-".concat(tool.icon), | |
| 14943 | + 'aria-hidden': true | |
| 14944 | + }), | |
| 14945 | + $a11y = jQuery('<span>', { | |
| 14946 | + class: 'elementor-screen-only' | |
| 14947 | + }); | |
| 14948 | + $a11y.text(tool.title); | |
| 14949 | + $item.append($icon, $a11y); | |
| 14950 | + $overlayList.append($item); | |
| 14951 | + }); | |
| 14952 | + $handlesOverlay.append($overlayList); | |
| 14953 | + return $handlesOverlay; | |
| 14954 | + }, | |
| 14955 | + attachElContent: function attachElContent(html) { | |
| 14956 | + this.$el.empty().append(this.getHandlesOverlay(), html); | |
| 14957 | + }, | |
| 14958 | + startTransport: function startTransport() { | |
| 14959 | + elementorCommon.helpers.softDeprecated('element.startTransport', '2.8.0', "$e.run( 'document/elements/copy' )"); | |
| 14960 | + $e.run('document/elements/copy', { | |
| 14961 | + container: this.getContainer() | |
| 14962 | + }); | |
| 14963 | + }, | |
| 14964 | + copy: function copy() { | |
| 14965 | + elementorCommon.helpers.softDeprecated('element.copy', '2.8.0', "$e.run( 'document/elements/copy' )"); | |
| 14966 | + $e.run('document/elements/copy', { | |
| 14967 | + container: this.getContainer() | |
| 14968 | + }); | |
| 14969 | + }, | |
| 14970 | + cut: function cut() { | |
| 14971 | + elementorCommon.helpers.softDeprecated('element.cut', '2.8.0'); | |
| 14972 | + }, | |
| 14973 | + paste: function paste() { | |
| 14974 | + elementorCommon.helpers.softDeprecated('element.paste', '2.8.0', "$e.run( 'document/elements/paste' )"); | |
| 14975 | + $e.run('document/elements/paste', { | |
| 14976 | + container: this.getContainer(), | |
| 14977 | + at: this._parent.collection.indexOf(this.model) | |
| 14978 | + }); | |
| 14979 | + }, | |
| 14980 | + duplicate: function duplicate() { | |
| 14981 | + elementorCommon.helpers.softDeprecated('element.duplicate', '2.8.0', "$e.run( 'document/elements/duplicate' )"); | |
| 14982 | + $e.run('document/elements/duplicate', { | |
| 14983 | + container: this.getContainer() | |
| 14984 | + }); | |
| 14985 | + }, | |
| 14986 | + pasteStyle: function pasteStyle() { | |
| 14987 | + elementorCommon.helpers.softDeprecated('element.pasteStyle', '2.8.0', "$e.run( 'document/elements/paste-style' )"); | |
| 14988 | + $e.run('document/elements/paste-style', { | |
| 14989 | + container: this.getContainer() | |
| 14990 | + }); | |
| 14991 | + }, | |
| 14992 | + resetStyle: function resetStyle() { | |
| 14993 | + elementorCommon.helpers.softDeprecated('element.resetStyle', '2.8.0', "$e.run( 'document/elements/reset-style' )"); | |
| 14994 | + $e.run('document/elements/reset-style', { | |
| 14995 | + container: this.getContainer() | |
| 14996 | + }); | |
| 14997 | + }, | |
| 14998 | + isStyleTransferControl: function isStyleTransferControl(control) { | |
| 14999 | + if (undefined !== control.style_transfer) { | |
| 15000 | + return control.style_transfer; | |
| 15001 | + } | |
| 15002 | + | |
| 15003 | + return 'content' !== control.tab || control.selectors || control.prefix_class; | |
| 15004 | + }, | |
| 15005 | + toggleVisibility: function toggleVisibility() { | |
| 15006 | + this.model.set('hidden', !this.model.get('hidden')); | |
| 15007 | + this.toggleVisibilityClass(); | |
| 15008 | + }, | |
| 15009 | + toggleVisibilityClass: function toggleVisibilityClass() { | |
| 15010 | + this.$el.toggleClass('elementor-edit-hidden', !!this.model.get('hidden')); | |
| 15011 | + }, | |
| 15012 | + addElementFromPanel: function addElementFromPanel(options) { | |
| 15013 | + options = options || {}; | |
| 15014 | + var elementView = elementor.channels.panelElements.request('element:selected'), | |
| 15015 | + model = { | |
| 15016 | + elType: elementView.model.get('elType') | |
| 15017 | + }; | |
| 15018 | + | |
| 15019 | + if (elementor.helpers.maybeDisableWidget()) { | |
| 15020 | + return; | |
| 15021 | + } | |
| 15022 | + | |
| 15023 | + if ('widget' === model.elType) { | |
| 15024 | + model.widgetType = elementView.model.get('widgetType'); | |
| 15025 | + } else if ('section' === model.elType) { | |
| 15026 | + model.isInner = true; | |
| 15027 | + } else { | |
| 15028 | + return; | |
| 15029 | + } | |
| 15030 | + | |
| 15031 | + var customData = elementView.model.get('custom'); | |
| 15032 | + | |
| 15033 | + if (customData) { | |
| 15034 | + jQuery.extend(model, customData); | |
| 15035 | + } | |
| 15036 | + | |
| 15037 | + return $e.run('document/elements/create', { | |
| 15038 | + container: this.getContainer(), | |
| 15039 | + model: model, | |
| 15040 | + options: options | |
| 15041 | + }); | |
| 15042 | + }, | |
| 15043 | + // TODO: Unused function. | |
| 15044 | + addControlValidator: function addControlValidator(controlName, validationCallback) { | |
| 15045 | + validationCallback = validationCallback.bind(this); | |
| 15046 | + var validator = new Validator({ | |
| 15047 | + customValidationMethod: validationCallback | |
| 15048 | + }), | |
| 15049 | + validators = this.getEditModel().get('settings').validators; | |
| 15050 | + | |
| 15051 | + if (!validators[controlName]) { | |
| 15052 | + validators[controlName] = []; | |
| 15053 | + } | |
| 15054 | + | |
| 15055 | + validators[controlName].push(validator); | |
| 15056 | + }, | |
| 15057 | + addRenderAttribute: function addRenderAttribute(element, key, value, overwrite) { | |
| 15058 | + var self = this; | |
| 15059 | + | |
| 15060 | + if ('object' === (0, _typeof2.default)(element)) { | |
| 15061 | + jQuery.each(element, function (elementKey, elementValue) { | |
| 15062 | + self.addRenderAttribute(elementKey, elementValue, null, overwrite); | |
| 15063 | + }); | |
| 15064 | + return self; | |
| 15065 | + } | |
| 15066 | + | |
| 15067 | + if ('object' === (0, _typeof2.default)(key)) { | |
| 15068 | + jQuery.each(key, function (attributeKey, attributeValue) { | |
| 15069 | + self.addRenderAttribute(element, attributeKey, attributeValue, overwrite); | |
| 15070 | + }); | |
| 15071 | + return self; | |
| 15072 | + } | |
| 15073 | + | |
| 15074 | + if (!self.renderAttributes[element]) { | |
| 15075 | + self.renderAttributes[element] = {}; | |
| 15076 | + } | |
| 15077 | + | |
| 15078 | + if (!self.renderAttributes[element][key]) { | |
| 15079 | + self.renderAttributes[element][key] = []; | |
| 15080 | + } | |
| 15081 | + | |
| 15082 | + if (!(0, _isArray.default)(value)) { | |
| 15083 | + value = [value]; | |
| 15084 | + } | |
| 15085 | + | |
| 15086 | + if (overwrite) { | |
| 15087 | + self.renderAttributes[element][key] = value; | |
| 15088 | + } else { | |
| 15089 | + self.renderAttributes[element][key] = self.renderAttributes[element][key].concat(value); | |
| 15090 | + } | |
| 15091 | + }, | |
| 15092 | + getRenderAttributeString: function getRenderAttributeString(element) { | |
| 15093 | + if (!this.renderAttributes[element]) { | |
| 15094 | + return ''; | |
| 15095 | + } | |
| 15096 | + | |
| 15097 | + var renderAttributes = this.renderAttributes[element], | |
| 15098 | + attributes = []; | |
| 15099 | + jQuery.each(renderAttributes, function (attributeKey, attributeValue) { | |
| 15100 | + attributes.push(attributeKey + '="' + _.escape(attributeValue.join(' ')) + '"'); | |
| 15101 | + }); | |
| 15102 | + return attributes.join(' '); | |
| 15103 | + }, | |
| 15104 | + isInner: function isInner() { | |
| 15105 | + return !!this.model.get('isInner'); | |
| 15106 | + }, | |
| 15107 | + initControlsCSSParser: function initControlsCSSParser() { | |
| 15108 | + this.controlsCSSParser = new ControlsCSSParser({ | |
| 15109 | + id: this.model.get('id'), | |
| 15110 | + context: this, | |
| 15111 | + settingsModel: this.getEditModel().get('settings'), | |
| 15112 | + dynamicParsing: this.getDynamicParsingSettings() | |
| 15113 | + }); | |
| 15114 | + }, | |
| 15115 | + enqueueFonts: function enqueueFonts() { | |
| 15116 | + var editModel = this.getEditModel(), | |
| 15117 | + settings = editModel.get('settings'); // Enqueue Icon Fonts | |
| 15118 | + | |
| 15119 | + jQuery.each(settings.getIconsControls(), function (index, control) { | |
| 15120 | + var iconType = editModel.getSetting(control.name); | |
| 15121 | + | |
| 15122 | + if (!iconType || !iconType.library) { | |
| 15123 | + return; | |
| 15124 | + } | |
| 15125 | + | |
| 15126 | + elementor.helpers.enqueueIconFonts(iconType.library); | |
| 15127 | + }); | |
| 15128 | + }, | |
| 15129 | + renderStyles: function renderStyles(settings) { | |
| 15130 | + if (!settings) { | |
| 15131 | + settings = this.getEditModel().get('settings'); | |
| 15132 | + } | |
| 15133 | + | |
| 15134 | + this.controlsCSSParser.stylesheet.empty(); | |
| 15135 | + this.controlsCSSParser.addStyleRules(settings.getStyleControls(), settings.attributes, this.getEditModel().get('settings').controls, [/{{ID}}/g, /{{WRAPPER}}/g], [this.getID(), '.elementor-' + elementor.config.document.id + ' .elementor-element.' + this.getElementUniqueID()]); | |
| 15136 | + this.controlsCSSParser.addStyleToDocument(); | |
| 15137 | + }, | |
| 15138 | + renderCustomClasses: function renderCustomClasses() { | |
| 15139 | + var self = this; | |
| 15140 | + var settings = self.getEditModel().get('settings'), | |
| 15141 | + classControls = settings.getClassControls(); // Remove all previous classes | |
| 15142 | + | |
| 15143 | + _.each(classControls, function (control) { | |
| 15144 | + var previousClassValue = settings.previous(control.name); | |
| 15145 | + | |
| 15146 | + if (control.classes_dictionary) { | |
| 15147 | + if (undefined !== control.classes_dictionary[previousClassValue]) { | |
| 15148 | + previousClassValue = control.classes_dictionary[previousClassValue]; | |
| 15149 | + } | |
| 15150 | + } | |
| 15151 | + | |
| 15152 | + self.$el.removeClass(control.prefix_class + previousClassValue); | |
| 15153 | + }); // Add new classes | |
| 15154 | + | |
| 15155 | + | |
| 15156 | + _.each(classControls, function (control) { | |
| 15157 | + var value = settings.attributes[control.name]; | |
| 15158 | + var classValue = value; | |
| 15159 | + | |
| 15160 | + if (control.classes_dictionary) { | |
| 15161 | + if (undefined !== control.classes_dictionary[value]) { | |
| 15162 | + classValue = control.classes_dictionary[value]; | |
| 15163 | + } | |
| 15164 | + } | |
| 15165 | + | |
| 15166 | + var isVisible = elementor.helpers.isActiveControl(control, settings.attributes); | |
| 15167 | + | |
| 15168 | + if (isVisible && (classValue || 0 === classValue)) { | |
| 15169 | + self.$el.addClass(control.prefix_class + classValue); | |
| 15170 | + } | |
| 15171 | + }); | |
| 15172 | + | |
| 15173 | + self.$el.addClass(_.result(self, 'className')); | |
| 15174 | + self.toggleVisibilityClass(); | |
| 15175 | + }, | |
| 15176 | + renderCustomElementID: function renderCustomElementID() { | |
| 15177 | + var customElementID = this.getEditModel().get('settings').get('_element_id'); | |
| 15178 | + this.$el.attr('id', customElementID); | |
| 15179 | + }, | |
| 15180 | + renderUI: function renderUI() { | |
| 15181 | + this.renderStyles(); | |
| 15182 | + this.renderCustomClasses(); | |
| 15183 | + this.renderCustomElementID(); | |
| 15184 | + this.enqueueFonts(); | |
| 15185 | + }, | |
| 15186 | + runReadyTrigger: function runReadyTrigger() { | |
| 15187 | + var self = this; | |
| 15188 | + | |
| 15189 | + _.defer(function () { | |
| 15190 | + elementorFrontend.elementsHandler.runReadyTrigger(self.el); | |
| 15191 | + | |
| 15192 | + if (!elementorFrontend.isEditMode()) { | |
| 15193 | + return; | |
| 15194 | + } // In edit mode - handle an external elements that loaded by another elements like shortcode etc. | |
| 15195 | + | |
| 15196 | + | |
| 15197 | + self.$el.find('.elementor-element.elementor-' + self.model.get('elType') + ':not(.elementor-element-edit-mode)').each(function () { | |
| 15198 | + elementorFrontend.elementsHandler.runReadyTrigger(this); | |
| 15199 | + }); | |
| 15200 | + }); | |
| 15201 | + }, | |
| 15202 | + getID: function getID() { | |
| 15203 | + return this.model.get('id'); | |
| 15204 | + }, | |
| 15205 | + getElementUniqueID: function getElementUniqueID() { | |
| 15206 | + return 'elementor-element-' + this.getID(); | |
| 15207 | + }, | |
| 15208 | + renderHTML: function renderHTML() { | |
| 15209 | + var templateType = this.getTemplateType(), | |
| 15210 | + editModel = this.getEditModel(); | |
| 15211 | + | |
| 15212 | + if ('js' === templateType) { | |
| 15213 | + this.getEditModel().setHtmlCache(); | |
| 15214 | + this.render(); | |
| 15215 | + editModel.renderOnLeave = true; | |
| 15216 | + } else { | |
| 15217 | + editModel.renderRemoteServer(); | |
| 15218 | + } | |
| 15219 | + }, | |
| 15220 | + renderOnChange: function renderOnChange(settings) { | |
| 15221 | + if (!this.allowRender) { | |
| 15222 | + return; | |
| 15223 | + } // Make sure is correct model | |
| 15224 | + | |
| 15225 | + | |
| 15226 | + if (settings instanceof elementorModules.editor.elements.models.BaseSettings) { | |
| 15227 | + var hasChanged = settings.hasChanged(); | |
| 15228 | + var isContentChanged = !hasChanged, | |
| 15229 | + isRenderRequired = !hasChanged; | |
| 15230 | + | |
| 15231 | + _.each(settings.changedAttributes(), function (settingValue, settingKey) { | |
| 15232 | + var control = settings.getControl(settingKey); | |
| 15233 | + | |
| 15234 | + if ('_column_size' === settingKey) { | |
| 15235 | + isRenderRequired = true; | |
| 15236 | + return; | |
| 15237 | + } | |
| 15238 | + | |
| 15239 | + if (!control) { | |
| 15240 | + isRenderRequired = true; | |
| 15241 | + isContentChanged = true; | |
| 15242 | + return; | |
| 15243 | + } | |
| 15244 | + | |
| 15245 | + if ('none' !== control.render_type) { | |
| 15246 | + isRenderRequired = true; | |
| 15247 | + } | |
| 15248 | + | |
| 15249 | + if (-1 !== ['none', 'ui'].indexOf(control.render_type)) { | |
| 15250 | + return; | |
| 15251 | + } | |
| 15252 | + | |
| 15253 | + if ('template' === control.render_type || !settings.isStyleControl(settingKey) && !settings.isClassControl(settingKey) && '_element_id' !== settingKey) { | |
| 15254 | + isContentChanged = true; | |
| 15255 | + } | |
| 15256 | + }); | |
| 15257 | + | |
| 15258 | + if (!isRenderRequired) { | |
| 15259 | + return; | |
| 15260 | + } | |
| 15261 | + | |
| 15262 | + if (!isContentChanged) { | |
| 15263 | + this.renderUI(); | |
| 15264 | + return; | |
| 15265 | + } | |
| 15266 | + } // Re-render the template | |
| 15267 | + | |
| 15268 | + | |
| 15269 | + this.renderHTML(); | |
| 15270 | + }, | |
| 15271 | + getDynamicParsingSettings: function getDynamicParsingSettings() { | |
| 15272 | + var self = this; | |
| 15273 | + return { | |
| 15274 | + onServerRequestStart: function onServerRequestStart() { | |
| 15275 | + self.$el.addClass('elementor-loading'); | |
| 15276 | + }, | |
| 15277 | + onServerRequestEnd: function onServerRequestEnd() { | |
| 15278 | + self.render(); | |
| 15279 | + self.$el.removeClass('elementor-loading'); | |
| 15280 | + } | |
| 15281 | + }; | |
| 15282 | + }, | |
| 15283 | + serializeData: function serializeData() { | |
| 15284 | + var data = BaseContainer.prototype.serializeData.apply(this, arguments); | |
| 15285 | + data.settings = this.getEditModel().get('settings').parseDynamicSettings(data.settings, this.getDynamicParsingSettings()); | |
| 15286 | + return data; | |
| 15287 | + }, | |
| 15288 | + save: function save() { | |
| 15289 | + $e.route('library/save-template', { | |
| 15290 | + model: this.model | |
| 15291 | + }); | |
| 15292 | + }, | |
| 15293 | + onBeforeRender: function onBeforeRender() { | |
| 15294 | + this.renderAttributes = {}; | |
| 15295 | + }, | |
| 15296 | + onRender: function onRender() { | |
| 15297 | + this.renderUI(); | |
| 15298 | + this.runReadyTrigger(); | |
| 15299 | + | |
| 15300 | + if (this.toggleEditTools) { | |
| 15301 | + var editButton = this.ui.editButton; // Since this.ui.tools does not exist while testing. | |
| 15302 | + | |
| 15303 | + if (this.ui.tools) { | |
| 15304 | + this.ui.tools.hoverIntent(function () { | |
| 15305 | + editButton.addClass('elementor-active'); | |
| 15306 | + }, function () { | |
| 15307 | + editButton.removeClass('elementor-active'); | |
| 15308 | + }, { | |
| 15309 | + timeout: 500 | |
| 15310 | + }); | |
| 15311 | + } | |
| 15312 | + } | |
| 15313 | + }, | |
| 15314 | + onEditSettingsChanged: function onEditSettingsChanged(changedModel) { | |
| 15315 | + elementor.channels.editor.trigger('change:editSettings', changedModel, this); | |
| 15316 | + }, | |
| 15317 | + onEditButtonClick: function onEditButtonClick(event) { | |
| 15318 | + this.model.trigger('request:edit', { | |
| 15319 | + append: event.ctrlKey || event.metaKey | |
| 15320 | + }); | |
| 15321 | + }, | |
| 15322 | + onEditRequest: function onEditRequest() { | |
| 15323 | + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 15324 | + | |
| 15325 | + if (!this.container.isEditable()) { | |
| 15326 | + return; | |
| 15327 | + } | |
| 15328 | + | |
| 15329 | + var model = this.getEditModel(), | |
| 15330 | + panel = elementor.getPanelView(); | |
| 15331 | + | |
| 15332 | + if ($e.routes.isPartOf('panel/editor') && panel.getCurrentPageView().model === model) { | |
| 15333 | + return; | |
| 15334 | + } | |
| 15335 | + | |
| 15336 | + if (options.scrollIntoView) { | |
| 15337 | + elementor.helpers.scrollToView(this.$el, 200); | |
| 15338 | + } | |
| 15339 | + | |
| 15340 | + $e.run('document/elements/toggle-selection', { | |
| 15341 | + container: this.getContainer(), | |
| 15342 | + append: options.append | |
| 15343 | + }); | |
| 15344 | + }, | |
| 15345 | + | |
| 15346 | + /** | |
| 15347 | + * Select current element. | |
| 15348 | + */ | |
| 15349 | + select: function select() { | |
| 15350 | + this.$el.addClass('elementor-element-editable'); | |
| 15351 | + }, | |
| 15352 | + | |
| 15353 | + /** | |
| 15354 | + * Deselect current element. | |
| 15355 | + */ | |
| 15356 | + deselect: function deselect() { | |
| 15357 | + this.$el.removeClass('elementor-element-editable'); | |
| 15358 | + }, | |
| 15359 | + onDuplicateButtonClick: function onDuplicateButtonClick(event) { | |
| 15360 | + event.stopPropagation(); | |
| 15361 | + $e.run('document/elements/duplicate', { | |
| 15362 | + container: this.getContainer() | |
| 15363 | + }); | |
| 15364 | + }, | |
| 15365 | + onRemoveButtonClick: function onRemoveButtonClick(event) { | |
| 15366 | + event.stopPropagation(); | |
| 15367 | + $e.run('document/elements/delete', { | |
| 15368 | + container: this.getContainer() | |
| 15369 | + }); | |
| 15370 | + }, | |
| 15371 | + | |
| 15372 | + /* jQuery ui sortable preventing any `mousedown` event above any element, and as a result is preventing the `blur` | |
| 15373 | + * event on the currently active element. Therefor, we need to blur the active element manually. | |
| 15374 | + */ | |
| 15375 | + onMouseDown: function onMouseDown(event) { | |
| 15376 | + if (jQuery(event.target).closest('.elementor-inline-editing').length) { | |
| 15377 | + return; | |
| 15378 | + } | |
| 15379 | + | |
| 15380 | + elementorFrontend.elements.window.document.activeElement.blur(); | |
| 15381 | + }, | |
| 15382 | + onDestroy: function onDestroy() { | |
| 15383 | + this.controlsCSSParser.removeStyleFromDocument(); | |
| 15384 | + this.getEditModel().get('settings').validators = {}; | |
| 15385 | + elementor.channels.data.trigger('element:destroy', this.model); | |
| 15386 | + } | |
| 15387 | +}); | |
| 15388 | +module.exports = BaseElementView; | |
| 15389 | + | |
| 15390 | +/***/ }), | |
| 15391 | + | |
| 15392 | +/***/ "../assets/dev/js/editor/elements/views/behaviors/column-resizable.js": | |
| 15393 | +/*!****************************************************************************!*\ | |
| 15394 | + !*** ../assets/dev/js/editor/elements/views/behaviors/column-resizable.js ***! | |
| 15395 | + \****************************************************************************/ | |
| 15396 | +/***/ ((module) => { | |
| 15397 | + | |
| 15398 | +"use strict"; | |
| 15399 | + | |
| 15400 | + | |
| 15401 | +var ResizableBehavior; | |
| 15402 | +ResizableBehavior = Marionette.Behavior.extend({ | |
| 15403 | + defaults: { | |
| 15404 | + handles: elementorCommon.config.isRTL ? 'w' : 'e' | |
| 15405 | + }, | |
| 15406 | + events: { | |
| 15407 | + resizestart: 'onResizeStart', | |
| 15408 | + resizestop: 'onResizeStop', | |
| 15409 | + resize: 'onResize' | |
| 15410 | + }, | |
| 15411 | + initialize: function initialize() { | |
| 15412 | + Marionette.Behavior.prototype.initialize.apply(this, arguments); | |
| 15413 | + this.listenTo(elementor.channels.dataEditMode, 'switch', this.onEditModeSwitched); | |
| 15414 | + }, | |
| 15415 | + active: function active() { | |
| 15416 | + if (!elementor.userCan('design')) { | |
| 15417 | + return; | |
| 15418 | + } | |
| 15419 | + | |
| 15420 | + this.deactivate(); | |
| 15421 | + | |
| 15422 | + var options = _.clone(this.options); | |
| 15423 | + | |
| 15424 | + delete options.behaviorClass; | |
| 15425 | + | |
| 15426 | + var $childViewContainer = this.getChildViewContainer(), | |
| 15427 | + defaultResizableOptions = {}, | |
| 15428 | + resizableOptions = _.extend(defaultResizableOptions, options); | |
| 15429 | + | |
| 15430 | + $childViewContainer.resizable(resizableOptions); | |
| 15431 | + }, | |
| 15432 | + deactivate: function deactivate() { | |
| 15433 | + if (this.getChildViewContainer().resizable('instance')) { | |
| 15434 | + this.getChildViewContainer().resizable('destroy'); | |
| 15435 | + } | |
| 15436 | + }, | |
| 15437 | + onEditModeSwitched: function onEditModeSwitched(activeMode) { | |
| 15438 | + if ('edit' === activeMode) { | |
| 15439 | + this.active(); | |
| 15440 | + } else { | |
| 15441 | + this.deactivate(); | |
| 15442 | + } | |
| 15443 | + }, | |
| 15444 | + onRender: function onRender() { | |
| 15445 | + var self = this; | |
| 15446 | + | |
| 15447 | + _.defer(function () { | |
| 15448 | + self.onEditModeSwitched(elementor.channels.dataEditMode.request('activeMode')); | |
| 15449 | + }); | |
| 15450 | + }, | |
| 15451 | + onDestroy: function onDestroy() { | |
| 15452 | + this.deactivate(); | |
| 15453 | + }, | |
| 15454 | + onResizeStart: function onResizeStart(event) { | |
| 15455 | + event.stopPropagation(); | |
| 15456 | + this.view.$el.data('originalWidth', this.view.el.getBoundingClientRect().width); | |
| 15457 | + this.view.triggerMethod('request:resize:start', event); | |
| 15458 | + }, | |
| 15459 | + onResizeStop: function onResizeStop(event) { | |
| 15460 | + event.stopPropagation(); | |
| 15461 | + this.view.triggerMethod('request:resize:stop'); | |
| 15462 | + }, | |
| 15463 | + onResize: function onResize(event, ui) { | |
| 15464 | + event.stopPropagation(); | |
| 15465 | + this.view.triggerMethod('request:resize', ui, event); | |
| 15466 | + }, | |
| 15467 | + getChildViewContainer: function getChildViewContainer() { | |
| 15468 | + return this.$el; | |
| 15469 | + } | |
| 15470 | +}); | |
| 15471 | +module.exports = ResizableBehavior; | |
| 15472 | + | |
| 15473 | +/***/ }), | |
| 15474 | + | |
| 15475 | +/***/ "../assets/dev/js/editor/elements/views/behaviors/context-menu.js": | |
| 15476 | +/*!************************************************************************!*\ | |
| 15477 | + !*** ../assets/dev/js/editor/elements/views/behaviors/context-menu.js ***! | |
| 15478 | + \************************************************************************/ | |
| 15479 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 15480 | + | |
| 15481 | +"use strict"; | |
| 15482 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 15483 | + | |
| 15484 | + | |
| 15485 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 15486 | + | |
| 15487 | +var _base = _interopRequireDefault(__webpack_require__(/*! elementor-views/add-section/base */ "../assets/dev/js/editor/views/add-section/base.js")); | |
| 15488 | + | |
| 15489 | +var ContextMenu = __webpack_require__(/*! elementor-editor-utils/context-menu */ "../assets/dev/js/editor/utils/context-menu.js"); | |
| 15490 | + | |
| 15491 | +module.exports = Marionette.Behavior.extend({ | |
| 15492 | + defaults: { | |
| 15493 | + context: 'preview', | |
| 15494 | + groups: [], | |
| 15495 | + eventTargets: ['el'] | |
| 15496 | + }, | |
| 15497 | + events: function events() { | |
| 15498 | + var events = {}; | |
| 15499 | + this.getOption('eventTargets').forEach(function (eventTarget) { | |
| 15500 | + var eventName = 'contextmenu'; | |
| 15501 | + | |
| 15502 | + if ('el' !== eventTarget) { | |
| 15503 | + eventName += ' ' + eventTarget; | |
| 15504 | + } | |
| 15505 | + | |
| 15506 | + events[eventName] = 'onContextMenu'; | |
| 15507 | + }); | |
| 15508 | + return events; | |
| 15509 | + }, | |
| 15510 | + initialize: function initialize() { | |
| 15511 | + this.listenTo(this.view.options.model, 'request:contextmenu', this.onRequestContextMenu); | |
| 15512 | + }, | |
| 15513 | + initContextMenu: function initContextMenu() { | |
| 15514 | + var _this = this; | |
| 15515 | + | |
| 15516 | + var contextMenuGroups = this.getOption('groups'), | |
| 15517 | + deleteGroup = _.findWhere(contextMenuGroups, { | |
| 15518 | + name: 'delete' | |
| 15519 | + }), | |
| 15520 | + afterGroupIndex = contextMenuGroups.indexOf(deleteGroup); | |
| 15521 | + | |
| 15522 | + if (-1 === afterGroupIndex) { | |
| 15523 | + afterGroupIndex = contextMenuGroups.length; | |
| 15524 | + } | |
| 15525 | + | |
| 15526 | + if ('preview' === this.getOption('context')) { | |
| 15527 | + contextMenuGroups.splice(afterGroupIndex, 0, { | |
| 15528 | + name: 'tools', | |
| 15529 | + actions: [{ | |
| 15530 | + name: 'navigator', | |
| 15531 | + title: __('Navigator', 'elementor'), | |
| 15532 | + callback: function callback() { | |
| 15533 | + return $e.route('navigator', { | |
| 15534 | + reOpen: true, | |
| 15535 | + model: _this.view.model | |
| 15536 | + }); | |
| 15537 | + } | |
| 15538 | + }] | |
| 15539 | + }); | |
| 15540 | + } | |
| 15541 | + | |
| 15542 | + this.contextMenu = new ContextMenu({ | |
| 15543 | + groups: contextMenuGroups, | |
| 15544 | + context: this.getOption('context') | |
| 15545 | + }); | |
| 15546 | + this.contextMenu.getModal().on('hide', function () { | |
| 15547 | + return _this.onContextMenuHide(); | |
| 15548 | + }); | |
| 15549 | + }, | |
| 15550 | + getContextMenu: function getContextMenu() { | |
| 15551 | + var _this$view$getContain, _this$view; | |
| 15552 | + | |
| 15553 | + if (!this.contextMenu) { | |
| 15554 | + this.initContextMenu(); | |
| 15555 | + } | |
| 15556 | + | |
| 15557 | + if ('preview' === this.getOption('context') && !elementor.selection.has((_this$view$getContain = (_this$view = this.view).getContainer) === null || _this$view$getContain === void 0 ? void 0 : _this$view$getContain.call(_this$view))) { | |
| 15558 | + $e.run('document/elements/deselect-all'); | |
| 15559 | + } | |
| 15560 | + | |
| 15561 | + return this.contextMenu; | |
| 15562 | + }, | |
| 15563 | + onContextMenu: function onContextMenu(event) { | |
| 15564 | + if ($e.shortcuts.isControlEvent(event)) { | |
| 15565 | + return; | |
| 15566 | + } | |
| 15567 | + | |
| 15568 | + if ('preview' === this.getOption('context')) { | |
| 15569 | + var isAddSectionView = this.view instanceof _base.default; | |
| 15570 | + | |
| 15571 | + if (!isAddSectionView && (!this.view.container || !this.view.container.isDesignable())) { | |
| 15572 | + return; | |
| 15573 | + } | |
| 15574 | + } | |
| 15575 | + | |
| 15576 | + event.preventDefault(); | |
| 15577 | + event.stopPropagation(); // Disable sortable when context menu opened | |
| 15578 | + // TODO: Should be in UI hook when the context menu will move to command | |
| 15579 | + | |
| 15580 | + if (this.view._parent) { | |
| 15581 | + this.view._parent.triggerMethod('toggleSortMode', false); | |
| 15582 | + } | |
| 15583 | + | |
| 15584 | + this.getContextMenu().show(event); | |
| 15585 | + elementor.channels.editor.reply('contextMenu:targetView', this.view); | |
| 15586 | + }, | |
| 15587 | + onRequestContextMenu: function onRequestContextMenu(event) { | |
| 15588 | + var modal = this.getContextMenu().getModal(), | |
| 15589 | + iframe = modal.getSettings('iframe'), | |
| 15590 | + toolsGroup = _.findWhere(this.contextMenu.getSettings('groups'), { | |
| 15591 | + name: 'tools' | |
| 15592 | + }); | |
| 15593 | + | |
| 15594 | + toolsGroup.isVisible = false; | |
| 15595 | + modal.setSettings('iframe', null); | |
| 15596 | + this.onContextMenu(event); | |
| 15597 | + toolsGroup.isVisible = true; | |
| 15598 | + modal.setSettings('iframe', iframe); | |
| 15599 | + }, | |
| 15600 | + onContextMenuHide: function onContextMenuHide() { | |
| 15601 | + // enable sortable when context menu closed | |
| 15602 | + // TODO: Should be in UI hook when the context menu will move to command | |
| 15603 | + if (this.view._parent) { | |
| 15604 | + this.view._parent.triggerMethod('toggleSortMode', true); | |
| 15605 | + } | |
| 15606 | + | |
| 15607 | + elementor.channels.editor.reply('contextMenu:targetView', null); | |
| 15608 | + }, | |
| 15609 | + onDestroy: function onDestroy() { | |
| 15610 | + if (this.contextMenu) { | |
| 15611 | + this.contextMenu.destroy(); | |
| 15612 | + } | |
| 15613 | + } | |
| 15614 | +}); | |
| 15615 | + | |
| 15616 | +/***/ }), | |
| 15617 | + | |
| 15618 | +/***/ "../assets/dev/js/editor/elements/views/behaviors/sortable.js": | |
| 15619 | +/*!********************************************************************!*\ | |
| 15620 | + !*** ../assets/dev/js/editor/elements/views/behaviors/sortable.js ***! | |
| 15621 | + \********************************************************************/ | |
| 15622 | +/***/ ((module) => { | |
| 15623 | + | |
| 15624 | +"use strict"; | |
| 15625 | + | |
| 15626 | + | |
| 15627 | +var SortableBehavior; | |
| 15628 | +SortableBehavior = Marionette.Behavior.extend({ | |
| 15629 | + defaults: { | |
| 15630 | + elChildType: 'widget' | |
| 15631 | + }, | |
| 15632 | + events: { | |
| 15633 | + sortstart: 'onSortStart', | |
| 15634 | + sortreceive: 'onSortReceive', | |
| 15635 | + sortupdate: 'onSortUpdate', | |
| 15636 | + sortover: 'onSortOver', | |
| 15637 | + sortout: 'onSortOut' | |
| 15638 | + }, | |
| 15639 | + initialize: function initialize() { | |
| 15640 | + this.listenTo(elementor.channels.dataEditMode, 'switch', this.onEditModeSwitched).listenTo(this.view.options.model, 'request:sort:start', this.startSort).listenTo(this.view.options.model, 'request:sort:update', this.updateSort).listenTo(this.view.options.model, 'request:sort:receive', this.receiveSort); | |
| 15641 | + }, | |
| 15642 | + onEditModeSwitched: function onEditModeSwitched(activeMode) { | |
| 15643 | + this.onToggleSortMode('edit' === activeMode); | |
| 15644 | + }, | |
| 15645 | + onRender: function onRender() { | |
| 15646 | + var self = this; | |
| 15647 | + | |
| 15648 | + _.defer(function () { | |
| 15649 | + self.onEditModeSwitched(elementor.channels.dataEditMode.request('activeMode')); | |
| 15650 | + }); | |
| 15651 | + }, | |
| 15652 | + onDestroy: function onDestroy() { | |
| 15653 | + this.deactivate(); | |
| 15654 | + }, | |
| 15655 | + onToggleSortMode: function onToggleSortMode(isActive) { | |
| 15656 | + if (isActive) { | |
| 15657 | + this.activate(); | |
| 15658 | + } else { | |
| 15659 | + this.deactivate(); | |
| 15660 | + } | |
| 15661 | + }, | |
| 15662 | + applySortable: function applySortable() { | |
| 15663 | + if (!elementor.userCan('design')) { | |
| 15664 | + return; | |
| 15665 | + } | |
| 15666 | + | |
| 15667 | + var $childViewContainer = this.getChildViewContainer(), | |
| 15668 | + defaultSortableOptions = { | |
| 15669 | + placeholder: 'elementor-sortable-placeholder elementor-' + this.getOption('elChildType') + '-placeholder', | |
| 15670 | + cursorAt: { | |
| 15671 | + top: 20, | |
| 15672 | + left: 25 | |
| 15673 | + }, | |
| 15674 | + helper: this._getSortableHelper.bind(this), | |
| 15675 | + cancel: 'input, textarea, button, select, option, .elementor-inline-editing, .elementor-tab-title', | |
| 15676 | + // Fix: Sortable - Unable to drag and drop sections with huge height. | |
| 15677 | + start: function start() { | |
| 15678 | + $childViewContainer.sortable('refreshPositions'); | |
| 15679 | + } | |
| 15680 | + }, | |
| 15681 | + sortableOptions = _.extend(defaultSortableOptions, this.view.getSortableOptions()); | |
| 15682 | + | |
| 15683 | + $childViewContainer.sortable(sortableOptions); | |
| 15684 | + }, | |
| 15685 | + | |
| 15686 | + /** | |
| 15687 | + * Enable sorting for this element, and generate sortable instance for it unless already generated. | |
| 15688 | + */ | |
| 15689 | + activate: function activate() { | |
| 15690 | + if (!this.getChildViewContainer().sortable('instance')) { | |
| 15691 | + // Generate sortable instance for this element. Since fresh instances of sortable already allowing sorting, | |
| 15692 | + // we can return. | |
| 15693 | + this.applySortable(); | |
| 15694 | + return; | |
| 15695 | + } | |
| 15696 | + | |
| 15697 | + this.getChildViewContainer().sortable('enable'); | |
| 15698 | + }, | |
| 15699 | + _getSortableHelper: function _getSortableHelper(event, $item) { | |
| 15700 | + var model = this.view.collection.get({ | |
| 15701 | + cid: $item.data('model-cid') | |
| 15702 | + }); | |
| 15703 | + return '<div style="height: 84px; width: 125px;" class="elementor-sortable-helper elementor-sortable-helper-' + model.get('elType') + '"><div class="icon"><i class="' + model.getIcon() + '"></i></div><div class="elementor-element-title-wrapper"><div class="title">' + model.getTitle() + '</div></div></div>'; | |
| 15704 | + }, | |
| 15705 | + getChildViewContainer: function getChildViewContainer() { | |
| 15706 | + return this.view.getChildViewContainer(this.view); | |
| 15707 | + }, | |
| 15708 | + // This method is used to fix widgets index detection when dragging or sorting using the preview interface, | |
| 15709 | + // The natural widget index in the column is wrong, since there is a `.elementor-background-overlay` element | |
| 15710 | + // at the beginning of the column | |
| 15711 | + getSortedElementNewIndex: function getSortedElementNewIndex($element) { | |
| 15712 | + var draggedModel = elementor.channels.data.request('dragging:model'), | |
| 15713 | + draggedElType = draggedModel.get('elType'); | |
| 15714 | + var newIndex = $element.index(); | |
| 15715 | + | |
| 15716 | + if ('widget' === draggedElType && elementorCommon.config.experimentalFeatures['e_dom_optimization']) { | |
| 15717 | + newIndex--; | |
| 15718 | + } | |
| 15719 | + | |
| 15720 | + return newIndex; | |
| 15721 | + }, | |
| 15722 | + | |
| 15723 | + /** | |
| 15724 | + * Disable sorting of the element unless no sortable instance exists, in which case there is already no option to | |
| 15725 | + * sort. | |
| 15726 | + */ | |
| 15727 | + deactivate: function deactivate() { | |
| 15728 | + var childViewContainer = this.getChildViewContainer(); | |
| 15729 | + | |
| 15730 | + if (childViewContainer.sortable('instance')) { | |
| 15731 | + childViewContainer.sortable('disable'); | |
| 15732 | + } | |
| 15733 | + }, | |
| 15734 | + startSort: function startSort(event, ui) { | |
| 15735 | + event.stopPropagation(); | |
| 15736 | + var container = elementor.getContainer(ui.item.attr('data-id')); | |
| 15737 | + elementor.channels.data.reply('dragging:model', container.model).reply('dragging:view', container.view).reply('dragging:parent:view', this.view).trigger('drag:start', container.model).trigger(container.model.get('elType') + ':drag:start'); | |
| 15738 | + }, | |
| 15739 | + // On sorting element | |
| 15740 | + updateSort: function updateSort(ui, newIndex) { | |
| 15741 | + if (undefined === newIndex) { | |
| 15742 | + newIndex = ui.item.index(); | |
| 15743 | + } | |
| 15744 | + | |
| 15745 | + $e.run('document/elements/move', { | |
| 15746 | + container: elementor.channels.data.request('dragging:view').getContainer(), | |
| 15747 | + target: this.view.getContainer(), | |
| 15748 | + options: { | |
| 15749 | + at: newIndex | |
| 15750 | + } | |
| 15751 | + }); | |
| 15752 | + }, | |
| 15753 | + // On receiving element from another container | |
| 15754 | + receiveSort: function receiveSort(event, ui, newIndex) { | |
| 15755 | + event.stopPropagation(); | |
| 15756 | + | |
| 15757 | + if (this.view.isCollectionFilled()) { | |
| 15758 | + jQuery(ui.sender).sortable('cancel'); | |
| 15759 | + return; | |
| 15760 | + } | |
| 15761 | + | |
| 15762 | + var model = elementor.channels.data.request('dragging:model'), | |
| 15763 | + draggedElType = model.get('elType'), | |
| 15764 | + draggedIsInnerSection = 'section' === draggedElType && model.get('isInner'), | |
| 15765 | + targetIsInnerColumn = 'column' === this.view.getElementType() && this.view.isInner(); | |
| 15766 | + | |
| 15767 | + if (draggedIsInnerSection && targetIsInnerColumn) { | |
| 15768 | + jQuery(ui.sender).sortable('cancel'); | |
| 15769 | + return; | |
| 15770 | + } | |
| 15771 | + | |
| 15772 | + if (undefined === newIndex) { | |
| 15773 | + newIndex = ui.item.index(); | |
| 15774 | + } | |
| 15775 | + | |
| 15776 | + $e.run('document/elements/move', { | |
| 15777 | + container: elementor.channels.data.request('dragging:view').getContainer(), | |
| 15778 | + target: this.view.getContainer(), | |
| 15779 | + options: { | |
| 15780 | + at: newIndex | |
| 15781 | + } | |
| 15782 | + }); | |
| 15783 | + }, | |
| 15784 | + onSortStart: function onSortStart(event, ui) { | |
| 15785 | + if ('column' === this.options.elChildType) { | |
| 15786 | + var uiData = ui.item.data('sortableItem'), | |
| 15787 | + uiItems = uiData.items, | |
| 15788 | + itemHeight = 0; | |
| 15789 | + uiItems.forEach(function (item) { | |
| 15790 | + if (item.item[0] === ui.item[0]) { | |
| 15791 | + itemHeight = item.height; | |
| 15792 | + return false; | |
| 15793 | + } | |
| 15794 | + }); | |
| 15795 | + ui.placeholder.height(itemHeight); | |
| 15796 | + } | |
| 15797 | + | |
| 15798 | + this.startSort(event, ui); | |
| 15799 | + }, | |
| 15800 | + onSortOver: function onSortOver(event) { | |
| 15801 | + event.stopPropagation(); | |
| 15802 | + var model = elementor.channels.data.request('dragging:model'); | |
| 15803 | + jQuery(event.target).addClass('elementor-draggable-over').attr({ | |
| 15804 | + 'data-dragged-element': model.get('elType'), | |
| 15805 | + 'data-dragged-is-inner': model.get('isInner') | |
| 15806 | + }); | |
| 15807 | + this.$el.addClass('elementor-dragging-on-child'); | |
| 15808 | + }, | |
| 15809 | + onSortOut: function onSortOut(event) { | |
| 15810 | + event.stopPropagation(); | |
| 15811 | + jQuery(event.target).removeClass('elementor-draggable-over').removeAttr('data-dragged-element data-dragged-is-inner'); | |
| 15812 | + this.$el.removeClass('elementor-dragging-on-child'); | |
| 15813 | + }, | |
| 15814 | + onSortReceive: function onSortReceive(event, ui) { | |
| 15815 | + this.receiveSort(event, ui, this.getSortedElementNewIndex(ui.item)); | |
| 15816 | + }, | |
| 15817 | + onSortUpdate: function onSortUpdate(event, ui) { | |
| 15818 | + event.stopPropagation(); | |
| 15819 | + | |
| 15820 | + if (this.getChildViewContainer()[0] !== ui.item.parent()[0]) { | |
| 15821 | + return; | |
| 15822 | + } | |
| 15823 | + | |
| 15824 | + this.updateSort(ui, this.getSortedElementNewIndex(ui.item)); | |
| 15825 | + }, | |
| 15826 | + onAddChild: function onAddChild(view) { | |
| 15827 | + view.$el.attr('data-model-cid', view.model.cid); | |
| 15828 | + } | |
| 15829 | +}); | |
| 15830 | +module.exports = SortableBehavior; | |
| 15831 | + | |
| 15832 | +/***/ }), | |
| 15833 | + | |
| 15834 | +/***/ "../assets/dev/js/editor/elements/views/column-empty.js": | |
| 15835 | +/*!**************************************************************!*\ | |
| 15836 | + !*** ../assets/dev/js/editor/elements/views/column-empty.js ***! | |
| 15837 | + \**************************************************************/ | |
| 15838 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 15839 | + | |
| 15840 | +"use strict"; | |
| 15841 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 15842 | + | |
| 15843 | + | |
| 15844 | +module.exports = Marionette.ItemView.extend({ | |
| 15845 | + template: '#tmpl-elementor-empty-preview', | |
| 15846 | + className: 'elementor-empty-view', | |
| 15847 | + events: { | |
| 15848 | + click: 'onClickAdd' | |
| 15849 | + }, | |
| 15850 | + behaviors: function behaviors() { | |
| 15851 | + return { | |
| 15852 | + contextMenu: { | |
| 15853 | + behaviorClass: __webpack_require__(/*! elementor-behaviors/context-menu */ "../assets/dev/js/editor/elements/views/behaviors/context-menu.js"), | |
| 15854 | + groups: this.getContextMenuGroups() | |
| 15855 | + } | |
| 15856 | + }; | |
| 15857 | + }, | |
| 15858 | + getContextMenuGroups: function getContextMenuGroups() { | |
| 15859 | + var _this = this; | |
| 15860 | + | |
| 15861 | + return [{ | |
| 15862 | + name: 'general', | |
| 15863 | + actions: [{ | |
| 15864 | + name: 'paste', | |
| 15865 | + title: __('Paste', 'elementor'), | |
| 15866 | + isEnabled: function isEnabled() { | |
| 15867 | + return $e.components.get('document/elements').utils.isPasteEnabled(_this._parent.getContainer()); | |
| 15868 | + }, | |
| 15869 | + callback: function callback() { | |
| 15870 | + return $e.run('document/ui/paste', { | |
| 15871 | + container: _this._parent.getContainer() | |
| 15872 | + }); | |
| 15873 | + } | |
| 15874 | + }] | |
| 15875 | + }]; | |
| 15876 | + }, | |
| 15877 | + onClickAdd: function onClickAdd() { | |
| 15878 | + $e.route('panel/elements/categories'); | |
| 15879 | + } | |
| 15880 | +}); | |
| 15881 | + | |
| 15882 | +/***/ }), | |
| 15883 | + | |
| 15884 | +/***/ "../assets/dev/js/editor/elements/views/column.js": | |
| 15885 | +/*!********************************************************!*\ | |
| 15886 | + !*** ../assets/dev/js/editor/elements/views/column.js ***! | |
| 15887 | + \********************************************************/ | |
| 15888 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 15889 | + | |
| 15890 | +"use strict"; | |
| 15891 | +/* provided dependency */ var sprintf = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["sprintf"]; | |
| 15892 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 15893 | + | |
| 15894 | + | |
| 15895 | +var _section = __webpack_require__(/*! elementor-elements/views/section */ "../assets/dev/js/editor/elements/views/section.js"); | |
| 15896 | + | |
| 15897 | +var BaseElementView = __webpack_require__(/*! elementor-elements/views/base */ "../assets/dev/js/editor/elements/views/base.js"), | |
| 15898 | + ColumnEmptyView = __webpack_require__(/*! elementor-elements/views/column-empty */ "../assets/dev/js/editor/elements/views/column-empty.js"), | |
| 15899 | + ColumnView; | |
| 15900 | + | |
| 15901 | +ColumnView = BaseElementView.extend({ | |
| 15902 | + template: Marionette.TemplateCache.get('#tmpl-elementor-column-content'), | |
| 15903 | + emptyView: ColumnEmptyView, | |
| 15904 | + childViewContainer: elementorCommon.config.experimentalFeatures['e_dom_optimization'] ? '> .elementor-widget-wrap' : '> .elementor-column-wrap > .elementor-widget-wrap', | |
| 15905 | + toggleEditTools: true, | |
| 15906 | + behaviors: function behaviors() { | |
| 15907 | + var behaviors = BaseElementView.prototype.behaviors.apply(this, arguments); | |
| 15908 | + | |
| 15909 | + _.extend(behaviors, { | |
| 15910 | + Sortable: { | |
| 15911 | + behaviorClass: __webpack_require__(/*! elementor-behaviors/sortable */ "../assets/dev/js/editor/elements/views/behaviors/sortable.js"), | |
| 15912 | + elChildType: 'widget' | |
| 15913 | + }, | |
| 15914 | + Resizable: { | |
| 15915 | + behaviorClass: __webpack_require__(/*! elementor-behaviors/column-resizable */ "../assets/dev/js/editor/elements/views/behaviors/column-resizable.js") | |
| 15916 | + } | |
| 15917 | + }); | |
| 15918 | + | |
| 15919 | + return elementor.hooks.applyFilters('elements/column/behaviors', behaviors, this); | |
| 15920 | + }, | |
| 15921 | + className: function className() { | |
| 15922 | + var classes = BaseElementView.prototype.className.apply(this, arguments), | |
| 15923 | + type = this.isInner() ? 'inner' : 'top'; | |
| 15924 | + return classes + ' elementor-column elementor-' + type + '-column'; | |
| 15925 | + }, | |
| 15926 | + tagName: function tagName() { | |
| 15927 | + return this.model.getSetting('html_tag') || 'div'; | |
| 15928 | + }, | |
| 15929 | + ui: function ui() { | |
| 15930 | + var ui = BaseElementView.prototype.ui.apply(this, arguments); | |
| 15931 | + ui.columnInner = elementorCommon.config.experimentalFeatures['e_dom_optimization'] ? '> .elementor-widget-wrap' : '> .elementor-column-wrap'; | |
| 15932 | + ui.percentsTooltip = '> .elementor-element-overlay .elementor-column-percents-tooltip'; | |
| 15933 | + return ui; | |
| 15934 | + }, | |
| 15935 | + getEditButtons: function getEditButtons() { | |
| 15936 | + var elementData = elementor.getElementData(this.model), | |
| 15937 | + editTools = {}; | |
| 15938 | + editTools.edit = { | |
| 15939 | + /* translators: %s: Element name. */ | |
| 15940 | + title: sprintf(__('Edit %s', 'elementor'), elementData.title), | |
| 15941 | + icon: 'column' | |
| 15942 | + }; | |
| 15943 | + | |
| 15944 | + if (elementor.getPreferences('edit_buttons')) { | |
| 15945 | + editTools.duplicate = { | |
| 15946 | + /* translators: %s: Element name. */ | |
| 15947 | + title: sprintf(__('Duplicate %s', 'elementor'), elementData.title), | |
| 15948 | + icon: 'clone' | |
| 15949 | + }; | |
| 15950 | + editTools.add = { | |
| 15951 | + /* translators: %s: Element name. */ | |
| 15952 | + title: sprintf(__('Add %s', 'elementor'), elementData.title), | |
| 15953 | + icon: 'plus' | |
| 15954 | + }; | |
| 15955 | + } | |
| 15956 | + | |
| 15957 | + return editTools; | |
| 15958 | + }, | |
| 15959 | + initialize: function initialize() { | |
| 15960 | + BaseElementView.prototype.initialize.apply(this, arguments); | |
| 15961 | + this.model.get('editSettings').set('defaultEditRoute', 'layout'); | |
| 15962 | + }, | |
| 15963 | + attachElContent: function attachElContent() { | |
| 15964 | + BaseElementView.prototype.attachElContent.apply(this, arguments); | |
| 15965 | + var $tooltip = jQuery('<div>', { | |
| 15966 | + class: 'elementor-column-percents-tooltip' | |
| 15967 | + }); | |
| 15968 | + this.$el.children('.elementor-element-overlay').append($tooltip); | |
| 15969 | + }, | |
| 15970 | + getContextMenuGroups: function getContextMenuGroups() { | |
| 15971 | + var self = this, | |
| 15972 | + groups = BaseElementView.prototype.getContextMenuGroups.apply(this, arguments), | |
| 15973 | + generalGroupIndex = groups.indexOf(_.findWhere(groups, { | |
| 15974 | + name: 'general' | |
| 15975 | + })); | |
| 15976 | + groups.splice(generalGroupIndex + 1, 0, { | |
| 15977 | + name: 'addNew', | |
| 15978 | + actions: [{ | |
| 15979 | + name: 'addNew', | |
| 15980 | + icon: 'eicon-plus', | |
| 15981 | + title: __('Add New Column', 'elementor'), | |
| 15982 | + callback: this.addNewColumn.bind(this), | |
| 15983 | + isEnabled: function isEnabled() { | |
| 15984 | + return self.model.collection.length < _section.DEFAULT_MAX_COLUMNS && !elementor.selection.isMultiple(); | |
| 15985 | + } | |
| 15986 | + }] | |
| 15987 | + }); | |
| 15988 | + return groups; | |
| 15989 | + }, | |
| 15990 | + isDroppingAllowed: function isDroppingAllowed() { | |
| 15991 | + // Don't allow dragging items to document which is not editable. | |
| 15992 | + if (!this.getContainer().isEditable()) { | |
| 15993 | + return false; | |
| 15994 | + } | |
| 15995 | + | |
| 15996 | + var elementView = elementor.channels.panelElements.request('element:selected'); | |
| 15997 | + | |
| 15998 | + if (!elementView) { | |
| 15999 | + return false; | |
| 16000 | + } | |
| 16001 | + | |
| 16002 | + var elType = elementView.model.get('elType'); | |
| 16003 | + | |
| 16004 | + if ('section' === elType) { | |
| 16005 | + return !this.isInner(); | |
| 16006 | + } | |
| 16007 | + | |
| 16008 | + return 'widget' === elType; | |
| 16009 | + }, | |
| 16010 | + getPercentsForDisplay: function getPercentsForDisplay() { | |
| 16011 | + var inlineSize = +this.model.getSetting('_inline_size') || this.getPercentSize(); | |
| 16012 | + return inlineSize.toFixed(1) + '%'; | |
| 16013 | + }, | |
| 16014 | + changeSizeUI: function changeSizeUI() { | |
| 16015 | + var self = this, | |
| 16016 | + columnSize = self.model.getSetting('_column_size'); | |
| 16017 | + self.$el.attr('data-col', columnSize); | |
| 16018 | + | |
| 16019 | + _.defer(function () { | |
| 16020 | + // Wait for the column size to be applied | |
| 16021 | + if (self.ui.percentsTooltip) { | |
| 16022 | + self.ui.percentsTooltip.text(self.getPercentsForDisplay()); | |
| 16023 | + } | |
| 16024 | + }); | |
| 16025 | + }, | |
| 16026 | + getPercentSize: function getPercentSize(size) { | |
| 16027 | + if (!size) { | |
| 16028 | + size = this.el.getBoundingClientRect().width; | |
| 16029 | + } | |
| 16030 | + | |
| 16031 | + return +(size / this.$el.parent().width() * 100).toFixed(3); | |
| 16032 | + }, | |
| 16033 | + getSortableOptions: function getSortableOptions() { | |
| 16034 | + return { | |
| 16035 | + connectWith: '.elementor-widget-wrap', | |
| 16036 | + items: '> .elementor-element' | |
| 16037 | + }; | |
| 16038 | + }, | |
| 16039 | + changeChildContainerClasses: function changeChildContainerClasses() { | |
| 16040 | + var emptyClass = 'elementor-element-empty', | |
| 16041 | + populatedClass = 'elementor-element-populated'; | |
| 16042 | + | |
| 16043 | + if (this.ui.columnInner) { | |
| 16044 | + if (this.collection.isEmpty()) { | |
| 16045 | + this.ui.columnInner.removeClass(populatedClass).addClass(emptyClass); | |
| 16046 | + } else { | |
| 16047 | + this.ui.columnInner.removeClass(emptyClass).addClass(populatedClass); | |
| 16048 | + } | |
| 16049 | + } | |
| 16050 | + }, | |
| 16051 | + addNewColumn: function addNewColumn() { | |
| 16052 | + $e.run('document/elements/create', { | |
| 16053 | + model: { | |
| 16054 | + elType: 'column' | |
| 16055 | + }, | |
| 16056 | + container: this.getContainer().parent, | |
| 16057 | + options: { | |
| 16058 | + at: this.$el.index() + 1 | |
| 16059 | + } | |
| 16060 | + }); | |
| 16061 | + }, | |
| 16062 | + onRender: function onRender() { | |
| 16063 | + var _this = this; | |
| 16064 | + | |
| 16065 | + var isDomOptimizationActive = elementorCommon.config.experimentalFeatures['e_dom_optimization'], | |
| 16066 | + getDropIndex = function getDropIndex(side, event) { | |
| 16067 | + var newIndex = jQuery(event.currentTarget).index(); // Since 3.0.0, the `.elementor-background-overlay` element sit at the same level as widgets | |
| 16068 | + | |
| 16069 | + if ('bottom' === side && !isDomOptimizationActive) { | |
| 16070 | + newIndex++; | |
| 16071 | + } else if ('top' === side && isDomOptimizationActive) { | |
| 16072 | + newIndex--; | |
| 16073 | + } | |
| 16074 | + | |
| 16075 | + return newIndex; | |
| 16076 | + }; | |
| 16077 | + | |
| 16078 | + var itemsClasses = ''; | |
| 16079 | + | |
| 16080 | + if (isDomOptimizationActive) { | |
| 16081 | + itemsClasses = ' > .elementor-widget-wrap > .elementor-element, >.elementor-widget-wrap > .elementor-empty-view > .elementor-first-add'; | |
| 16082 | + } else { | |
| 16083 | + itemsClasses = ' > .elementor-column-wrap > .elementor-widget-wrap > .elementor-element, >.elementor-column-wrap > .elementor-widget-wrap > .elementor-empty-view > .elementor-first-add'; | |
| 16084 | + } | |
| 16085 | + | |
| 16086 | + BaseElementView.prototype.onRender.apply(this, arguments); | |
| 16087 | + this.changeChildContainerClasses(); | |
| 16088 | + this.changeSizeUI(); | |
| 16089 | + this.$el.html5Droppable({ | |
| 16090 | + items: itemsClasses, | |
| 16091 | + axis: ['vertical'], | |
| 16092 | + groups: ['elementor-element'], | |
| 16093 | + isDroppingAllowed: this.isDroppingAllowed.bind(this), | |
| 16094 | + currentElementClass: 'elementor-html5dnd-current-element', | |
| 16095 | + placeholderClass: 'elementor-sortable-placeholder elementor-widget-placeholder', | |
| 16096 | + hasDraggingOnChildClass: 'elementor-dragging-on-child', | |
| 16097 | + getDropContainer: function getDropContainer() { | |
| 16098 | + return _this.getContainer(); | |
| 16099 | + }, | |
| 16100 | + getDropIndex: getDropIndex, | |
| 16101 | + onDropping: function onDropping(side, event) { | |
| 16102 | + event.stopPropagation(); // Triggering drag end manually, since it won't fired above iframe | |
| 16103 | + | |
| 16104 | + elementor.getPreviewView().onPanelElementDragEnd(); | |
| 16105 | + | |
| 16106 | + _this.addElementFromPanel({ | |
| 16107 | + at: getDropIndex(side, event) | |
| 16108 | + }); | |
| 16109 | + } | |
| 16110 | + }); | |
| 16111 | + }, | |
| 16112 | + onAddButtonClick: function onAddButtonClick(event) { | |
| 16113 | + event.stopPropagation(); | |
| 16114 | + this.addNewColumn(); | |
| 16115 | + } | |
| 16116 | +}); | |
| 16117 | +module.exports = ColumnView; | |
| 16118 | + | |
| 16119 | +/***/ }), | |
| 16120 | + | |
| 16121 | +/***/ "../assets/dev/js/editor/elements/views/section.js": | |
| 16122 | +/*!*********************************************************!*\ | |
| 16123 | + !*** ../assets/dev/js/editor/elements/views/section.js ***! | |
| 16124 | + \*********************************************************/ | |
| 16125 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 16126 | + | |
| 16127 | +"use strict"; | |
| 16128 | +/* provided dependency */ var sprintf = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["sprintf"]; | |
| 16129 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 16130 | + | |
| 16131 | + | |
| 16132 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 16133 | + | |
| 16134 | +__webpack_require__(/*! core-js/modules/es6.array.find.js */ "../node_modules/core-js/modules/es6.array.find.js"); | |
| 16135 | + | |
| 16136 | +var _inline = _interopRequireDefault(__webpack_require__(/*! ../../views/add-section/inline */ "../assets/dev/js/editor/views/add-section/inline.js")); | |
| 16137 | + | |
| 16138 | +var BaseElementView = __webpack_require__(/*! elementor-elements/views/base */ "../assets/dev/js/editor/elements/views/base.js"); | |
| 16139 | + | |
| 16140 | +var DEFAULT_INNER_SECTION_COLUMNS = 2, | |
| 16141 | + DEFAULT_MIN_COLUMN_SIZE = 2, | |
| 16142 | + DEFAULT_MAX_COLUMNS = 10; | |
| 16143 | +var SectionView = BaseElementView.extend({ | |
| 16144 | + childViewContainer: function childViewContainer() { | |
| 16145 | + var containerSelector = '> .elementor-container'; | |
| 16146 | + | |
| 16147 | + if (!elementorCommon.config.experimentalFeatures['e_dom_optimization']) { | |
| 16148 | + containerSelector += ' > .elementor-row'; | |
| 16149 | + } | |
| 16150 | + | |
| 16151 | + return containerSelector; | |
| 16152 | + }, | |
| 16153 | + template: Marionette.TemplateCache.get('#tmpl-elementor-section-content'), | |
| 16154 | + addSectionView: null, | |
| 16155 | + _checkIsFull: function _checkIsFull() { | |
| 16156 | + this.toggleSectionIsFull(); | |
| 16157 | + elementorCommon.helpers.softDeprecated('_checkIsFull', '2.9.0', 'toggleSectionIsFull()'); | |
| 16158 | + }, | |
| 16159 | + toggleSectionIsFull: function toggleSectionIsFull() { | |
| 16160 | + this.$el.toggleClass('elementor-section-filled', this.isCollectionFilled()); | |
| 16161 | + }, | |
| 16162 | + addChildModel: function addChildModel(model) { | |
| 16163 | + /// TODO: maybe should be part of $e.hooks. | |
| 16164 | + var isModelInstance = model instanceof Backbone.Model, | |
| 16165 | + isInner = this.isInner(); | |
| 16166 | + | |
| 16167 | + if (isModelInstance) { | |
| 16168 | + // TODO: change to command. | |
| 16169 | + model.set('isInner', isInner); | |
| 16170 | + } else { | |
| 16171 | + model.isInner = isInner; | |
| 16172 | + } | |
| 16173 | + | |
| 16174 | + return BaseElementView.prototype.addChildModel.apply(this, arguments); | |
| 16175 | + }, | |
| 16176 | + className: function className() { | |
| 16177 | + var classes = BaseElementView.prototype.className.apply(this, arguments), | |
| 16178 | + type = this.isInner() ? 'inner' : 'top'; | |
| 16179 | + return classes + ' elementor-section elementor-' + type + '-section'; | |
| 16180 | + }, | |
| 16181 | + tagName: function tagName() { | |
| 16182 | + return this.model.getSetting('html_tag') || 'section'; | |
| 16183 | + }, | |
| 16184 | + behaviors: function behaviors() { | |
| 16185 | + var behaviors = BaseElementView.prototype.behaviors.apply(this, arguments); | |
| 16186 | + | |
| 16187 | + _.extend(behaviors, { | |
| 16188 | + Sortable: { | |
| 16189 | + behaviorClass: __webpack_require__(/*! elementor-behaviors/sortable */ "../assets/dev/js/editor/elements/views/behaviors/sortable.js"), | |
| 16190 | + elChildType: 'column' | |
| 16191 | + } | |
| 16192 | + }); | |
| 16193 | + | |
| 16194 | + return elementor.hooks.applyFilters('elements/section/behaviors', behaviors, this); | |
| 16195 | + }, | |
| 16196 | + initialize: function initialize() { | |
| 16197 | + BaseElementView.prototype.initialize.apply(this, arguments); | |
| 16198 | + this.model.get('editSettings').set('defaultEditRoute', 'layout'); | |
| 16199 | + }, | |
| 16200 | + getEditButtons: function getEditButtons() { | |
| 16201 | + var elementData = elementor.getElementData(this.model), | |
| 16202 | + editTools = {}; | |
| 16203 | + | |
| 16204 | + if (!this.isInner()) { | |
| 16205 | + editTools.add = { | |
| 16206 | + /* translators: %s: Element name. */ | |
| 16207 | + title: sprintf(__('Add %s', 'elementor'), elementData.title), | |
| 16208 | + icon: 'plus' | |
| 16209 | + }; | |
| 16210 | + } | |
| 16211 | + | |
| 16212 | + editTools.edit = { | |
| 16213 | + /* translators: %s: Element name. */ | |
| 16214 | + title: sprintf(__('Edit %s', 'elementor'), elementData.title), | |
| 16215 | + icon: 'handle' | |
| 16216 | + }; | |
| 16217 | + | |
| 16218 | + if (elementor.getPreferences('edit_buttons')) { | |
| 16219 | + editTools.duplicate = { | |
| 16220 | + /* translators: %s: Element name. */ | |
| 16221 | + title: sprintf(__('Duplicate %s', 'elementor'), elementData.title), | |
| 16222 | + icon: 'clone' | |
| 16223 | + }; | |
| 16224 | + } | |
| 16225 | + | |
| 16226 | + return editTools; | |
| 16227 | + }, | |
| 16228 | + getContextMenuGroups: function getContextMenuGroups() { | |
| 16229 | + var groups = BaseElementView.prototype.getContextMenuGroups.apply(this, arguments), | |
| 16230 | + transferGroupIndex = groups.indexOf(_.findWhere(groups, { | |
| 16231 | + name: 'clipboard' | |
| 16232 | + })); | |
| 16233 | + groups.splice(transferGroupIndex + 1, 0, { | |
| 16234 | + name: 'save', | |
| 16235 | + actions: [{ | |
| 16236 | + name: 'save', | |
| 16237 | + title: __('Save as Template', 'elementor'), | |
| 16238 | + isEnabled: function isEnabled() { | |
| 16239 | + return !elementor.selection.isMultiple(); | |
| 16240 | + }, | |
| 16241 | + callback: this.save.bind(this) | |
| 16242 | + }] | |
| 16243 | + }); | |
| 16244 | + return groups; | |
| 16245 | + }, | |
| 16246 | + getSortableOptions: function getSortableOptions() { | |
| 16247 | + var sectionConnectClass = this.isInner() ? '.elementor-inner-section' : '.elementor-top-section'; | |
| 16248 | + return { | |
| 16249 | + connectWith: sectionConnectClass + this.childViewContainer(), | |
| 16250 | + handle: '> .elementor-element-overlay .elementor-editor-element-edit', | |
| 16251 | + items: '> .elementor-column', | |
| 16252 | + forcePlaceholderSize: true, | |
| 16253 | + tolerance: 'pointer' | |
| 16254 | + }; | |
| 16255 | + }, | |
| 16256 | + getColumnPercentSize: function getColumnPercentSize(element, size) { | |
| 16257 | + return +(size / element.parent().width() * 100).toFixed(3); | |
| 16258 | + }, | |
| 16259 | + getDefaultStructure: function getDefaultStructure() { | |
| 16260 | + return this.collection.length + '0'; | |
| 16261 | + }, | |
| 16262 | + getStructure: function getStructure() { | |
| 16263 | + return this.model.getSetting('structure'); | |
| 16264 | + }, | |
| 16265 | + getColumnAt: function getColumnAt(index) { | |
| 16266 | + var model = this.collection.at(index); | |
| 16267 | + return model ? this.children.findByModelCid(model.cid) : null; | |
| 16268 | + }, | |
| 16269 | + getNextColumn: function getNextColumn(columnView) { | |
| 16270 | + return this.getColumnAt(this.collection.indexOf(columnView.model) + 1); | |
| 16271 | + }, | |
| 16272 | + getPreviousColumn: function getPreviousColumn(columnView) { | |
| 16273 | + return this.getColumnAt(this.collection.indexOf(columnView.model) - 1); | |
| 16274 | + }, | |
| 16275 | + getNeighborContainer: function getNeighborContainer(container) { | |
| 16276 | + var parentView = container.parent.view, | |
| 16277 | + nextView = parentView.getNextColumn(container.view) || parentView.getPreviousColumn(container.view); | |
| 16278 | + | |
| 16279 | + if (!nextView) { | |
| 16280 | + return false; | |
| 16281 | + } | |
| 16282 | + | |
| 16283 | + return nextView.getContainer(); | |
| 16284 | + }, | |
| 16285 | + setStructure: function setStructure(structure) { | |
| 16286 | + var shouldAdjustColumns = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; | |
| 16287 | + var parsedStructure = elementor.presetsFactory.getParsedStructure(structure); | |
| 16288 | + | |
| 16289 | + if (+parsedStructure.columnsCount !== this.collection.length) { | |
| 16290 | + throw new TypeError('The provided structure doesn\'t match the columns count.'); | |
| 16291 | + } | |
| 16292 | + | |
| 16293 | + $e.run('document/elements/settings', { | |
| 16294 | + container: this.getContainer(), | |
| 16295 | + settings: { | |
| 16296 | + structure: structure | |
| 16297 | + }, | |
| 16298 | + options: { | |
| 16299 | + external: true | |
| 16300 | + } | |
| 16301 | + }); | |
| 16302 | + | |
| 16303 | + if (shouldAdjustColumns) { | |
| 16304 | + this.adjustColumns(); | |
| 16305 | + } | |
| 16306 | + }, | |
| 16307 | + adjustColumns: function adjustColumns() { | |
| 16308 | + var preset = elementor.presetsFactory.getPresetByStructure(this.getStructure()); | |
| 16309 | + this.children.each(function (columnView, index) { | |
| 16310 | + var container = columnView.getContainer(); | |
| 16311 | + $e.run('document/elements/settings', { | |
| 16312 | + container: container, | |
| 16313 | + settings: { | |
| 16314 | + _column_size: preset.preset[index], | |
| 16315 | + _inline_size: null | |
| 16316 | + } | |
| 16317 | + }); | |
| 16318 | + }); | |
| 16319 | + }, | |
| 16320 | + resetLayout: function resetLayout() { | |
| 16321 | + var shouldAdjustColumns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; | |
| 16322 | + this.setStructure(this.getDefaultStructure(), shouldAdjustColumns); | |
| 16323 | + }, | |
| 16324 | + resetColumnsCustomSize: function resetColumnsCustomSize() { | |
| 16325 | + this.children.each(function (columnView) { | |
| 16326 | + $e.run('document/elements/settings', { | |
| 16327 | + container: columnView.getContainer(), | |
| 16328 | + settings: { | |
| 16329 | + _inline_size: null | |
| 16330 | + }, | |
| 16331 | + options: { | |
| 16332 | + external: true | |
| 16333 | + } | |
| 16334 | + }); | |
| 16335 | + }); | |
| 16336 | + }, | |
| 16337 | + isCollectionFilled: function isCollectionFilled() { | |
| 16338 | + return DEFAULT_MAX_COLUMNS <= this.collection.length; | |
| 16339 | + }, | |
| 16340 | + showChildrenPercentsTooltip: function showChildrenPercentsTooltip(columnView, nextColumnView) { | |
| 16341 | + columnView.ui.percentsTooltip.show(); | |
| 16342 | + columnView.ui.percentsTooltip.attr('data-side', elementorCommon.config.isRTL ? 'right' : 'left'); | |
| 16343 | + nextColumnView.ui.percentsTooltip.show(); | |
| 16344 | + nextColumnView.ui.percentsTooltip.attr('data-side', elementorCommon.config.isRTL ? 'left' : 'right'); | |
| 16345 | + }, | |
| 16346 | + hideChildrenPercentsTooltip: function hideChildrenPercentsTooltip(columnView, nextColumnView) { | |
| 16347 | + columnView.ui.percentsTooltip.hide(); | |
| 16348 | + nextColumnView.ui.percentsTooltip.hide(); | |
| 16349 | + }, | |
| 16350 | + destroyAddSectionView: function destroyAddSectionView() { | |
| 16351 | + if (this.addSectionView && !this.addSectionView.isDestroyed) { | |
| 16352 | + this.addSectionView.destroy(); | |
| 16353 | + } | |
| 16354 | + }, | |
| 16355 | + onRender: function onRender() { | |
| 16356 | + BaseElementView.prototype.onRender.apply(this, arguments); | |
| 16357 | + this.toggleSectionIsFull(); | |
| 16358 | + }, | |
| 16359 | + onAddButtonClick: function onAddButtonClick() { | |
| 16360 | + if (this.addSectionView && !this.addSectionView.isDestroyed) { | |
| 16361 | + this.addSectionView.fadeToDeath(); | |
| 16362 | + return; | |
| 16363 | + } | |
| 16364 | + | |
| 16365 | + var addSectionView = new _inline.default({ | |
| 16366 | + at: this.model.collection.indexOf(this.model) | |
| 16367 | + }); | |
| 16368 | + addSectionView.render(); | |
| 16369 | + this.$el.before(addSectionView.$el); | |
| 16370 | + addSectionView.$el.hide(); // Delaying the slide down for slow-render browsers (such as FF) | |
| 16371 | + | |
| 16372 | + setTimeout(function () { | |
| 16373 | + addSectionView.$el.slideDown(null, function () { | |
| 16374 | + // Remove inline style, for preview mode. | |
| 16375 | + jQuery(this).css('display', ''); | |
| 16376 | + }); | |
| 16377 | + }); | |
| 16378 | + this.addSectionView = addSectionView; | |
| 16379 | + }, | |
| 16380 | + onChildviewRequestResizeStart: function onChildviewRequestResizeStart(columnView) { | |
| 16381 | + var nextColumnView = this.getNextColumn(columnView); | |
| 16382 | + | |
| 16383 | + if (!nextColumnView) { | |
| 16384 | + return; | |
| 16385 | + } | |
| 16386 | + | |
| 16387 | + this.showChildrenPercentsTooltip(columnView, nextColumnView); | |
| 16388 | + var $iframes = columnView.$el.find('iframe').add(nextColumnView.$el.find('iframe')); | |
| 16389 | + elementor.helpers.disableElementEvents($iframes); | |
| 16390 | + }, | |
| 16391 | + onChildviewRequestResizeStop: function onChildviewRequestResizeStop(columnView) { | |
| 16392 | + var nextColumnView = this.getNextColumn(columnView); | |
| 16393 | + | |
| 16394 | + if (!nextColumnView) { | |
| 16395 | + return; | |
| 16396 | + } | |
| 16397 | + | |
| 16398 | + this.hideChildrenPercentsTooltip(columnView, nextColumnView); | |
| 16399 | + var $iframes = columnView.$el.find('iframe').add(nextColumnView.$el.find('iframe')); | |
| 16400 | + elementor.helpers.enableElementEvents($iframes); | |
| 16401 | + }, | |
| 16402 | + onChildviewRequestResize: function onChildviewRequestResize(columnView, ui) { | |
| 16403 | + ui.element.css({ | |
| 16404 | + width: '', | |
| 16405 | + left: 'initial' // Fix for RTL resizing | |
| 16406 | + | |
| 16407 | + }); | |
| 16408 | + $e.run('document/elements/settings', { | |
| 16409 | + container: columnView.getContainer(), | |
| 16410 | + settings: { | |
| 16411 | + _inline_size: this.getColumnPercentSize(ui.element, ui.size.width) | |
| 16412 | + } | |
| 16413 | + }); | |
| 16414 | + }, | |
| 16415 | + onDestroy: function onDestroy() { | |
| 16416 | + BaseElementView.prototype.onDestroy.apply(this, arguments); | |
| 16417 | + this.destroyAddSectionView(); | |
| 16418 | + } | |
| 16419 | +}); | |
| 16420 | +module.exports = SectionView; | |
| 16421 | +module.exports.DEFAULT_INNER_SECTION_COLUMNS = DEFAULT_INNER_SECTION_COLUMNS; | |
| 16422 | +module.exports.DEFAULT_MIN_COLUMN_SIZE = DEFAULT_MIN_COLUMN_SIZE; | |
| 16423 | +module.exports.DEFAULT_MAX_COLUMNS = DEFAULT_MAX_COLUMNS; | |
| 16424 | + | |
| 16425 | +/***/ }), | |
| 16426 | + | |
| 16427 | +/***/ "../assets/dev/js/editor/utils/context-menu.js": | |
| 16428 | +/*!*****************************************************!*\ | |
| 16429 | + !*** ../assets/dev/js/editor/utils/context-menu.js ***! | |
| 16430 | + \*****************************************************/ | |
| 16431 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 16432 | + | |
| 16433 | +"use strict"; | |
| 16434 | + | |
| 16435 | + | |
| 16436 | +__webpack_require__(/*! core-js/modules/es6.function.name.js */ "../node_modules/core-js/modules/es6.function.name.js"); | |
| 16437 | + | |
| 16438 | +__webpack_require__(/*! core-js/modules/es6.array.find.js */ "../node_modules/core-js/modules/es6.array.find.js"); | |
| 16439 | + | |
| 16440 | +module.exports = elementorModules.Module.extend({ | |
| 16441 | + getDefaultSettings: function getDefaultSettings() { | |
| 16442 | + return { | |
| 16443 | + context: 'preview', | |
| 16444 | + actions: {}, | |
| 16445 | + classes: { | |
| 16446 | + list: 'elementor-context-menu-list', | |
| 16447 | + group: 'elementor-context-menu-list__group', | |
| 16448 | + groupPrefix: 'elementor-context-menu-list__group-', | |
| 16449 | + item: 'elementor-context-menu-list__item', | |
| 16450 | + itemTypePrefix: 'elementor-context-menu-list__item-', | |
| 16451 | + itemTitle: 'elementor-context-menu-list__item__title', | |
| 16452 | + itemShortcut: 'elementor-context-menu-list__item__shortcut', | |
| 16453 | + iconShortcut: 'elementor-context-menu-list__item__icon', | |
| 16454 | + itemDisabled: 'elementor-context-menu-list__item--disabled', | |
| 16455 | + divider: 'elementor-context-menu-list__divider', | |
| 16456 | + hidden: 'elementor-hidden' | |
| 16457 | + } | |
| 16458 | + }; | |
| 16459 | + }, | |
| 16460 | + buildActionItem: function buildActionItem(action) { | |
| 16461 | + var self = this, | |
| 16462 | + classes = self.getSettings('classes'), | |
| 16463 | + $item = jQuery('<div>', { | |
| 16464 | + class: classes.item + ' ' + classes.itemTypePrefix + action.name | |
| 16465 | + }), | |
| 16466 | + $itemTitle = jQuery('<div>', { | |
| 16467 | + class: classes.itemTitle | |
| 16468 | + }).text(action.title), | |
| 16469 | + $itemIcon = jQuery('<div>', { | |
| 16470 | + class: classes.iconShortcut | |
| 16471 | + }); | |
| 16472 | + | |
| 16473 | + if (action.icon) { | |
| 16474 | + $itemIcon.html(jQuery('<i>', { | |
| 16475 | + class: action.icon | |
| 16476 | + })); | |
| 16477 | + } | |
| 16478 | + | |
| 16479 | + $item.append($itemIcon, $itemTitle); | |
| 16480 | + | |
| 16481 | + if (action.shortcut) { | |
| 16482 | + var $itemShortcut = jQuery('<div>', { | |
| 16483 | + class: classes.itemShortcut | |
| 16484 | + }).html(action.shortcut); | |
| 16485 | + $item.append($itemShortcut); | |
| 16486 | + } | |
| 16487 | + | |
| 16488 | + if (action.callback) { | |
| 16489 | + $item.on('click', function () { | |
| 16490 | + self.runAction(action); | |
| 16491 | + }); | |
| 16492 | + } | |
| 16493 | + | |
| 16494 | + action.$item = $item; | |
| 16495 | + return $item; | |
| 16496 | + }, | |
| 16497 | + buildActionsList: function buildActionsList() { | |
| 16498 | + var self = this, | |
| 16499 | + classes = self.getSettings('classes'), | |
| 16500 | + groups = self.getSettings('groups'), | |
| 16501 | + $list = jQuery('<div>', { | |
| 16502 | + class: classes.list | |
| 16503 | + }); | |
| 16504 | + groups.forEach(function (group) { | |
| 16505 | + var $group = jQuery('<div>', { | |
| 16506 | + class: classes.group + ' ' + classes.groupPrefix + group.name | |
| 16507 | + }); | |
| 16508 | + group.actions.forEach(function (action) { | |
| 16509 | + $group.append(self.buildActionItem(action)); | |
| 16510 | + }); | |
| 16511 | + $list.append($group); | |
| 16512 | + group.$item = $group; | |
| 16513 | + }); | |
| 16514 | + return $list; | |
| 16515 | + }, | |
| 16516 | + toggleGroupVisibility: function toggleGroupVisibility(group, state) { | |
| 16517 | + group.$item.toggleClass(this.getSettings('classes.hidden'), !state); | |
| 16518 | + }, | |
| 16519 | + toggleActionVisibility: function toggleActionVisibility(action, state) { | |
| 16520 | + action.$item.toggleClass(this.getSettings('classes.hidden'), !state); | |
| 16521 | + }, | |
| 16522 | + toggleActionUsability: function toggleActionUsability(action, state) { | |
| 16523 | + action.$item.toggleClass(this.getSettings('classes.itemDisabled'), !state); | |
| 16524 | + }, | |
| 16525 | + | |
| 16526 | + /** | |
| 16527 | + * Update the action title. | |
| 16528 | + * | |
| 16529 | + * Sometimes the action title should dynamically change. This can be done by passing a function as the `title` | |
| 16530 | + * property when initializing the context-menu, and here it actually invoked and assigned as the title. | |
| 16531 | + * | |
| 16532 | + * @param action | |
| 16533 | + */ | |
| 16534 | + updateActionTitle: function updateActionTitle(action) { | |
| 16535 | + if ('function' === typeof action.title) { | |
| 16536 | + action.$item.find('.' + this.getSettings('classes').itemTitle).text(action.title()); | |
| 16537 | + } | |
| 16538 | + }, | |
| 16539 | + isActionEnabled: function isActionEnabled(action) { | |
| 16540 | + if (!action.callback && !action.groups) { | |
| 16541 | + return false; | |
| 16542 | + } | |
| 16543 | + | |
| 16544 | + return action.isEnabled ? action.isEnabled() : true; | |
| 16545 | + }, | |
| 16546 | + runAction: function runAction(action) { | |
| 16547 | + if (!this.isActionEnabled(action)) { | |
| 16548 | + return; | |
| 16549 | + } | |
| 16550 | + | |
| 16551 | + action.callback(); | |
| 16552 | + this.getModal().hide(); | |
| 16553 | + }, | |
| 16554 | + initModal: function initModal() { | |
| 16555 | + var modal; | |
| 16556 | + | |
| 16557 | + this.getModal = function () { | |
| 16558 | + if (!modal) { | |
| 16559 | + modal = elementorCommon.dialogsManager.createWidget('simple', { | |
| 16560 | + className: 'elementor-context-menu', | |
| 16561 | + message: this.buildActionsList(), | |
| 16562 | + iframe: 'preview' === this.getSettings('context') ? elementor.$preview : null, | |
| 16563 | + effects: { | |
| 16564 | + hide: 'hide', | |
| 16565 | + show: 'show' | |
| 16566 | + }, | |
| 16567 | + hide: { | |
| 16568 | + onOutsideContextMenu: true | |
| 16569 | + }, | |
| 16570 | + position: { | |
| 16571 | + my: (elementorCommon.config.isRTL ? 'right' : 'left') + ' top', | |
| 16572 | + collision: 'fit' | |
| 16573 | + } | |
| 16574 | + }); | |
| 16575 | + } | |
| 16576 | + | |
| 16577 | + return modal; | |
| 16578 | + }; | |
| 16579 | + }, | |
| 16580 | + show: function show(event) { | |
| 16581 | + var self = this, | |
| 16582 | + modal = self.getModal(); | |
| 16583 | + modal.setSettings('position', { | |
| 16584 | + of: event | |
| 16585 | + }); | |
| 16586 | + self.getSettings('groups').forEach(function (group) { | |
| 16587 | + var isGroupVisible = false !== group.isVisible; | |
| 16588 | + self.toggleGroupVisibility(group, isGroupVisible); | |
| 16589 | + | |
| 16590 | + if (isGroupVisible) { | |
| 16591 | + group.actions.forEach(function (action) { | |
| 16592 | + var isActionVisible = false !== action.isVisible; | |
| 16593 | + self.toggleActionVisibility(action, isActionVisible); | |
| 16594 | + self.updateActionTitle(action); | |
| 16595 | + | |
| 16596 | + if (isActionVisible) { | |
| 16597 | + self.toggleActionUsability(action, self.isActionEnabled(action)); | |
| 16598 | + } | |
| 16599 | + }); | |
| 16600 | + } | |
| 16601 | + }); | |
| 16602 | + modal.show(); | |
| 16603 | + }, | |
| 16604 | + destroy: function destroy() { | |
| 16605 | + this.getModal().destroy(); | |
| 16606 | + }, | |
| 16607 | + onInit: function onInit() { | |
| 16608 | + this.initModal(); | |
| 16609 | + } | |
| 16610 | +}); | |
| 16611 | + | |
| 16612 | +/***/ }), | |
| 16613 | + | |
| 16614 | +/***/ "../assets/dev/js/editor/utils/controls-css-parser.js": | |
| 16615 | +/*!************************************************************!*\ | |
| 16616 | + !*** ../assets/dev/js/editor/utils/controls-css-parser.js ***! | |
| 16617 | + \************************************************************/ | |
| 16618 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 16619 | + | |
| 16620 | +"use strict"; | |
| 16621 | + | |
| 16622 | + | |
| 16623 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 16624 | + | |
| 16625 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/slicedToArray */ "../node_modules/@babel/runtime-corejs2/helpers/slicedToArray.js")); | |
| 16626 | + | |
| 16627 | +var _entries = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/entries */ "../node_modules/@babel/runtime-corejs2/core-js/object/entries.js")); | |
| 16628 | + | |
| 16629 | +var _keys = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js")); | |
| 16630 | + | |
| 16631 | +__webpack_require__(/*! core-js/modules/es6.array.find.js */ "../node_modules/core-js/modules/es6.array.find.js"); | |
| 16632 | + | |
| 16633 | +__webpack_require__(/*! core-js/modules/es6.function.name.js */ "../node_modules/core-js/modules/es6.function.name.js"); | |
| 16634 | + | |
| 16635 | +__webpack_require__(/*! core-js/modules/es6.regexp.replace.js */ "../node_modules/core-js/modules/es6.regexp.replace.js"); | |
| 16636 | + | |
| 16637 | +__webpack_require__(/*! core-js/modules/es6.regexp.match.js */ "../node_modules/core-js/modules/es6.regexp.match.js"); | |
| 16638 | + | |
| 16639 | +__webpack_require__(/*! core-js/modules/es6.regexp.constructor.js */ "../node_modules/core-js/modules/es6.regexp.constructor.js"); | |
| 16640 | + | |
| 16641 | +var Stylesheet = __webpack_require__(/*! elementor-editor-utils/stylesheet */ "../assets/dev/js/editor/utils/stylesheet.js"), | |
| 16642 | + ControlsCSSParser; | |
| 16643 | + | |
| 16644 | +ControlsCSSParser = elementorModules.ViewModule.extend({ | |
| 16645 | + stylesheet: null, | |
| 16646 | + getDefaultSettings: function getDefaultSettings() { | |
| 16647 | + return { | |
| 16648 | + id: 0, | |
| 16649 | + context: null, | |
| 16650 | + settingsModel: null, | |
| 16651 | + dynamicParsing: {} | |
| 16652 | + }; | |
| 16653 | + }, | |
| 16654 | + getDefaultElements: function getDefaultElements() { | |
| 16655 | + var id = "elementor-style-".concat(this.getSettings('id')); | |
| 16656 | + var $stylesheet = elementor.$previewContents.find("#".concat(id)); | |
| 16657 | + | |
| 16658 | + if (!$stylesheet.length) { | |
| 16659 | + $stylesheet = jQuery('<style>', { | |
| 16660 | + id: id | |
| 16661 | + }); | |
| 16662 | + } | |
| 16663 | + | |
| 16664 | + return { | |
| 16665 | + $stylesheetElement: $stylesheet | |
| 16666 | + }; | |
| 16667 | + }, | |
| 16668 | + initStylesheet: function initStylesheet() { | |
| 16669 | + var _this = this; | |
| 16670 | + | |
| 16671 | + var breakpoints = elementorFrontend.config.responsive.activeBreakpoints; | |
| 16672 | + this.stylesheet = new Stylesheet(); | |
| 16673 | + (0, _entries.default)(breakpoints).forEach(function (_ref) { | |
| 16674 | + var _ref2 = (0, _slicedToArray2.default)(_ref, 2), | |
| 16675 | + breakpointName = _ref2[0], | |
| 16676 | + breakpointConfig = _ref2[1]; | |
| 16677 | + | |
| 16678 | + _this.stylesheet.addDevice(breakpointName, breakpointConfig.value); | |
| 16679 | + }); | |
| 16680 | + }, | |
| 16681 | + addStyleRules: function addStyleRules(styleControls, values, controls, placeholders, replacements) { | |
| 16682 | + var _this2 = this; | |
| 16683 | + | |
| 16684 | + // If the current element contains dynamic values, parse these values | |
| 16685 | + var dynamicParsedValues = this.getSettings('settingsModel').parseDynamicSettings(values, this.getSettings('dynamicParsing'), styleControls); | |
| 16686 | + | |
| 16687 | + _.each(styleControls, function (control) { | |
| 16688 | + var _control$dynamic, _values$__dynamic__; | |
| 16689 | + | |
| 16690 | + if (control.styleFields && control.styleFields.length) { | |
| 16691 | + _this2.addRepeaterControlsStyleRules(values[control.name], control.styleFields, control.fields, placeholders, replacements); | |
| 16692 | + } // If a dynamic tag includes controls with CSS implementations, Take their CSS and apply it. | |
| 16693 | + | |
| 16694 | + | |
| 16695 | + if ((_control$dynamic = control.dynamic) !== null && _control$dynamic !== void 0 && _control$dynamic.active && (_values$__dynamic__ = values.__dynamic__) !== null && _values$__dynamic__ !== void 0 && _values$__dynamic__[control.name]) { | |
| 16696 | + _this2.addDynamicControlStyleRules(values.__dynamic__[control.name], control); | |
| 16697 | + } | |
| 16698 | + | |
| 16699 | + if (!control.selectors) { | |
| 16700 | + return; | |
| 16701 | + } | |
| 16702 | + | |
| 16703 | + var context = _this2.getSettings('context'); | |
| 16704 | + | |
| 16705 | + var globalKeys; | |
| 16706 | + | |
| 16707 | + if (context) { | |
| 16708 | + globalKeys = context.model.get('settings').get('__globals__'); | |
| 16709 | + } | |
| 16710 | + | |
| 16711 | + _this2.addControlStyleRules(control, dynamicParsedValues, controls, placeholders, replacements, globalKeys); | |
| 16712 | + }); | |
| 16713 | + }, | |
| 16714 | + addControlStyleRules: function addControlStyleRules(control, values, controls, placeholders, replacements, globalKeys) { | |
| 16715 | + var _this3 = this; | |
| 16716 | + | |
| 16717 | + var globalKey; | |
| 16718 | + | |
| 16719 | + if (globalKeys) { | |
| 16720 | + var controlGlobalKey = control.name; | |
| 16721 | + | |
| 16722 | + if (control.groupType) { | |
| 16723 | + controlGlobalKey = control.groupPrefix + control.groupType; | |
| 16724 | + } | |
| 16725 | + | |
| 16726 | + globalKey = globalKeys[controlGlobalKey]; | |
| 16727 | + } | |
| 16728 | + | |
| 16729 | + var value; | |
| 16730 | + | |
| 16731 | + if (!globalKey) { | |
| 16732 | + value = this.getStyleControlValue(control, values); | |
| 16733 | + | |
| 16734 | + if (undefined === value) { | |
| 16735 | + return; | |
| 16736 | + } | |
| 16737 | + } | |
| 16738 | + | |
| 16739 | + _.each(control.selectors, function (cssProperty, selector) { | |
| 16740 | + var outputCssProperty; | |
| 16741 | + | |
| 16742 | + if (globalKey) { | |
| 16743 | + var selectorGlobalValue = _this3.getSelectorGlobalValue(control, globalKey); | |
| 16744 | + | |
| 16745 | + if (selectorGlobalValue) { | |
| 16746 | + if ('font' === control.type) { | |
| 16747 | + $e.data.get(globalKey).then(function (response) { | |
| 16748 | + elementor.helpers.enqueueFont(response.data.value.typography_font_family); | |
| 16749 | + }); | |
| 16750 | + } // This regex handles a case where a control's selector property value includes more than one CSS selector. | |
| 16751 | + // Example: 'selector' => 'background: {{VALUE}}; background-color: {{VALUE}};'. | |
| 16752 | + | |
| 16753 | + | |
| 16754 | + outputCssProperty = cssProperty.replace(/(:)[^;]+(;?)/g, '$1' + selectorGlobalValue + '$2'); | |
| 16755 | + } | |
| 16756 | + } else { | |
| 16757 | + try { | |
| 16758 | + outputCssProperty = cssProperty.replace(/{{(?:([^.}]+)\.)?([^}| ]*)(?: *\|\| *(?:([^.}]+)\.)?([^}| ]*) *)*}}/g, function (originalPhrase, controlName, placeholder, fallbackControlName, fallbackValue) { | |
| 16759 | + var externalControlMissing = controlName && !controls[controlName]; | |
| 16760 | + var parsedValue = ''; | |
| 16761 | + | |
| 16762 | + if (!externalControlMissing) { | |
| 16763 | + parsedValue = _this3.parsePropertyPlaceholder(control, value, controls, values, placeholder, controlName); | |
| 16764 | + } | |
| 16765 | + | |
| 16766 | + if (!parsedValue && 0 !== parsedValue) { | |
| 16767 | + if (fallbackValue) { | |
| 16768 | + parsedValue = fallbackValue; | |
| 16769 | + var stringValueMatches = parsedValue.match(/^(['"])(.*)\1$/); | |
| 16770 | + | |
| 16771 | + if (stringValueMatches) { | |
| 16772 | + parsedValue = stringValueMatches[2]; | |
| 16773 | + } else if (!isFinite(parsedValue)) { | |
| 16774 | + if (fallbackControlName && !controls[fallbackControlName]) { | |
| 16775 | + return ''; | |
| 16776 | + } | |
| 16777 | + | |
| 16778 | + parsedValue = _this3.parsePropertyPlaceholder(control, value, controls, values, fallbackValue, fallbackControlName); | |
| 16779 | + } | |
| 16780 | + } | |
| 16781 | + | |
| 16782 | + if (!parsedValue && 0 !== parsedValue) { | |
| 16783 | + if (externalControlMissing) { | |
| 16784 | + return ''; | |
| 16785 | + } | |
| 16786 | + | |
| 16787 | + throw ''; | |
| 16788 | + } | |
| 16789 | + } | |
| 16790 | + | |
| 16791 | + if ('font' === control.type) { | |
| 16792 | + elementor.helpers.enqueueFont(parsedValue); | |
| 16793 | + } | |
| 16794 | + | |
| 16795 | + return parsedValue; | |
| 16796 | + }); | |
| 16797 | + } catch (e) { | |
| 16798 | + return; | |
| 16799 | + } | |
| 16800 | + } | |
| 16801 | + | |
| 16802 | + if (_.isEmpty(outputCssProperty)) { | |
| 16803 | + return; | |
| 16804 | + } | |
| 16805 | + | |
| 16806 | + var devicePattern = /^(?:\([^)]+\)){1,2}/, | |
| 16807 | + deviceRules = selector.match(devicePattern), | |
| 16808 | + query = {}; | |
| 16809 | + | |
| 16810 | + if (deviceRules) { | |
| 16811 | + deviceRules = deviceRules[0]; | |
| 16812 | + selector = selector.replace(devicePattern, ''); | |
| 16813 | + var pureDevicePattern = /\(([^)]+)\)/g, | |
| 16814 | + pureDeviceRules = [], | |
| 16815 | + matches; | |
| 16816 | + matches = pureDevicePattern.exec(deviceRules); | |
| 16817 | + | |
| 16818 | + while (matches) { | |
| 16819 | + pureDeviceRules.push(matches[1]); | |
| 16820 | + matches = pureDevicePattern.exec(deviceRules); | |
| 16821 | + } | |
| 16822 | + | |
| 16823 | + _.each(pureDeviceRules, function (deviceRule) { | |
| 16824 | + if ('desktop' === deviceRule) { | |
| 16825 | + return; | |
| 16826 | + } | |
| 16827 | + | |
| 16828 | + var device = deviceRule.replace(/\+$/, ''), | |
| 16829 | + endPoint = device === deviceRule ? 'max' : 'min'; | |
| 16830 | + query[endPoint] = device; | |
| 16831 | + }); | |
| 16832 | + } | |
| 16833 | + | |
| 16834 | + _.each(placeholders, function (placeholder, index) { | |
| 16835 | + // Check if it's a RegExp | |
| 16836 | + var regexp = placeholder.source ? placeholder.source : placeholder, | |
| 16837 | + placeholderPattern = new RegExp(regexp, 'g'); | |
| 16838 | + selector = selector.replace(placeholderPattern, replacements[index]); | |
| 16839 | + }); | |
| 16840 | + | |
| 16841 | + if (!(0, _keys.default)(query).length && control.responsive) { | |
| 16842 | + query = _.pick(elementorCommon.helpers.cloneObject(control.responsive), ['min', 'max']); | |
| 16843 | + | |
| 16844 | + if ('desktop' === query.max) { | |
| 16845 | + delete query.max; | |
| 16846 | + } | |
| 16847 | + } | |
| 16848 | + | |
| 16849 | + _this3.stylesheet.addRules(selector, outputCssProperty, query); | |
| 16850 | + }); | |
| 16851 | + }, | |
| 16852 | + parsePropertyPlaceholder: function parsePropertyPlaceholder(control, value, controls, values, placeholder, parserControlName) { | |
| 16853 | + if (parserControlName) { | |
| 16854 | + control = _.findWhere(controls, { | |
| 16855 | + name: parserControlName | |
| 16856 | + }); | |
| 16857 | + value = this.getStyleControlValue(control, values); | |
| 16858 | + } | |
| 16859 | + | |
| 16860 | + return elementor.getControlView(control.type).getStyleValue(placeholder, value, control); | |
| 16861 | + }, | |
| 16862 | + getStyleControlValue: function getStyleControlValue(control, values) { | |
| 16863 | + var _this$getSettings, _this$getSettings$con, _values$__globals__, _control$global; | |
| 16864 | + | |
| 16865 | + var container = (_this$getSettings = this.getSettings()) === null || _this$getSettings === void 0 ? void 0 : (_this$getSettings$con = _this$getSettings.context) === null || _this$getSettings$con === void 0 ? void 0 : _this$getSettings$con.container, | |
| 16866 | + isGlobalApplied = container === null || container === void 0 ? void 0 : container.isGlobalApplied(control.name), | |
| 16867 | + globalKey = ((_values$__globals__ = values.__globals__) === null || _values$__globals__ === void 0 ? void 0 : _values$__globals__[control.name]) || ((_control$global = control.global) === null || _control$global === void 0 ? void 0 : _control$global.default); // Set a global value only if it's is applied. | |
| 16868 | + | |
| 16869 | + if (isGlobalApplied && globalKey) { | |
| 16870 | + // When the control itself has no global value, but it refers to another control global value | |
| 16871 | + return this.getSelectorGlobalValue(control, globalKey); | |
| 16872 | + } | |
| 16873 | + | |
| 16874 | + var value = values[control.name]; | |
| 16875 | + | |
| 16876 | + if (control.selectors_dictionary) { | |
| 16877 | + value = control.selectors_dictionary[value] || value; | |
| 16878 | + } | |
| 16879 | + | |
| 16880 | + if (!_.isNumber(value) && _.isEmpty(value)) { | |
| 16881 | + return; | |
| 16882 | + } | |
| 16883 | + | |
| 16884 | + return value; | |
| 16885 | + }, | |
| 16886 | + getSelectorGlobalValue: function getSelectorGlobalValue(control, globalKey) { | |
| 16887 | + var globalArgs = $e.data.commandExtractArgs(globalKey), | |
| 16888 | + data = $e.data.getCache($e.components.get('globals'), globalArgs.command, globalArgs.args.query); | |
| 16889 | + | |
| 16890 | + if (!(data !== null && data !== void 0 && data.value)) { | |
| 16891 | + return; | |
| 16892 | + } | |
| 16893 | + | |
| 16894 | + var id = data.id; | |
| 16895 | + var value; // it's a global settings with additional controls in group. | |
| 16896 | + | |
| 16897 | + if (control.groupType) { | |
| 16898 | + // A regex containing all of the active breakpoints' prefixes ('_mobile', '_tablet' etc.). | |
| 16899 | + var responsivePrefixRegex = elementor.breakpoints.getActiveMatchRegex(); | |
| 16900 | + var propertyName = control.name.replace(control.groupPrefix, '').replace(responsivePrefixRegex, ''); | |
| 16901 | + | |
| 16902 | + if (!data.value[elementor.config.kit_config.typography_prefix + propertyName]) { | |
| 16903 | + return; | |
| 16904 | + } | |
| 16905 | + | |
| 16906 | + propertyName = propertyName.replace('_', '-'); | |
| 16907 | + value = "var( --e-global-".concat(control.groupType, "-").concat(id, "-").concat(propertyName, " )"); | |
| 16908 | + | |
| 16909 | + if (elementor.config.ui.defaultGenericFonts && control.groupPrefix + 'font_family' === control.name) { | |
| 16910 | + value += ", ".concat(elementor.config.ui.defaultGenericFonts); | |
| 16911 | + } | |
| 16912 | + } else { | |
| 16913 | + value = "var( --e-global-".concat(control.type, "-").concat(id, " )"); | |
| 16914 | + } | |
| 16915 | + | |
| 16916 | + return value; | |
| 16917 | + }, | |
| 16918 | + addRepeaterControlsStyleRules: function addRepeaterControlsStyleRules(repeaterValues, repeaterControlsItems, controls, placeholders, replacements) { | |
| 16919 | + var _this4 = this; | |
| 16920 | + | |
| 16921 | + repeaterControlsItems.forEach(function (item, index) { | |
| 16922 | + var itemModel = repeaterValues.models[index]; | |
| 16923 | + | |
| 16924 | + _this4.addStyleRules(item, itemModel.attributes, controls, placeholders.concat(['{{CURRENT_ITEM}}']), replacements.concat(['.elementor-repeater-item-' + itemModel.get('_id')])); | |
| 16925 | + }); | |
| 16926 | + }, | |
| 16927 | + addDynamicControlStyleRules: function addDynamicControlStyleRules(value, control) { | |
| 16928 | + var self = this; | |
| 16929 | + elementor.dynamicTags.parseTagsText(value, control.dynamic, function (id, name, settings) { | |
| 16930 | + var tag = elementor.dynamicTags.createTag(id, name, settings); | |
| 16931 | + | |
| 16932 | + if (!tag) { | |
| 16933 | + return; | |
| 16934 | + } | |
| 16935 | + | |
| 16936 | + var tagSettingsModel = tag.model, | |
| 16937 | + styleControls = tagSettingsModel.getStyleControls(); | |
| 16938 | + | |
| 16939 | + if (!styleControls.length) { | |
| 16940 | + return; | |
| 16941 | + } | |
| 16942 | + | |
| 16943 | + self.addStyleRules(tagSettingsModel.getStyleControls(), tagSettingsModel.attributes, tagSettingsModel.controls, ['{{WRAPPER}}'], ['#elementor-tag-' + id]); | |
| 16944 | + }); | |
| 16945 | + }, | |
| 16946 | + addStyleToDocument: function addStyleToDocument(position) { | |
| 16947 | + var $head = elementor.$previewContents.find('head'); | |
| 16948 | + var insertMethod = 'append', | |
| 16949 | + $insertBy = $head; | |
| 16950 | + | |
| 16951 | + if (position) { | |
| 16952 | + var $targetElement = $head.children(position.of); | |
| 16953 | + | |
| 16954 | + if ($targetElement.length) { | |
| 16955 | + insertMethod = position.at; | |
| 16956 | + $insertBy = $targetElement; | |
| 16957 | + } | |
| 16958 | + } | |
| 16959 | + | |
| 16960 | + $insertBy[insertMethod](this.elements.$stylesheetElement); | |
| 16961 | + var extraCSS = elementor.hooks.applyFilters('editor/style/styleText', '', this.getSettings('context')); | |
| 16962 | + this.elements.$stylesheetElement.text(this.stylesheet + extraCSS); | |
| 16963 | + }, | |
| 16964 | + removeStyleFromDocument: function removeStyleFromDocument() { | |
| 16965 | + this.elements.$stylesheetElement.remove(); | |
| 16966 | + }, | |
| 16967 | + onInit: function onInit() { | |
| 16968 | + elementorModules.ViewModule.prototype.onInit.apply(this, arguments); | |
| 16969 | + this.initStylesheet(); | |
| 16970 | + } | |
| 16971 | +}); | |
| 16972 | +module.exports = ControlsCSSParser; | |
| 16973 | + | |
| 16974 | +/***/ }), | |
| 16975 | + | |
| 382 | 16976 | /***/ "../assets/dev/js/editor/utils/is-instanceof.js": |
| 383 | 16977 | /*!******************************************************!*\ |
| 384 | 16978 | !*** ../assets/dev/js/editor/utils/is-instanceof.js ***! |
| 385 | 16979 | \******************************************************/ |
| 386 | -/***/ ((__unused_webpack_module, exports) => { | |
| 16980 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 387 | 16981 | |
| 388 | 16982 | "use strict"; |
| 389 | 16983 | |
| 390 | 16984 | |
| 391 | -Object.defineProperty(exports, "__esModule", ({ | |
| 16985 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 16986 | + | |
| 16987 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 16988 | + | |
| 16989 | +_Object$defineProperty(exports, "__esModule", { | |
| 392 | 16990 | value: true |
| 393 | -})); | |
| 16991 | +}); | |
| 16992 | + | |
| 394 | 16993 | exports["default"] = void 0; |
| 395 | -function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; } | |
| 396 | -function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); 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; } } | |
| 397 | -function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } | |
| 16994 | + | |
| 16995 | +__webpack_require__(/*! core-js/modules/es6.function.name.js */ "../node_modules/core-js/modules/es6.function.name.js"); | |
| 16996 | + | |
| 16997 | +var _createForOfIteratorHelper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createForOfIteratorHelper */ "../node_modules/@babel/runtime-corejs2/helpers/createForOfIteratorHelper.js")); | |
| 16998 | + | |
| 16999 | +var _isArray = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/array/is-array */ "../node_modules/@babel/runtime-corejs2/core-js/array/is-array.js")); | |
| 17000 | + | |
| 17001 | +var _toStringTag = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/symbol/to-string-tag */ "../node_modules/@babel/runtime-corejs2/core-js/symbol/to-string-tag.js")); | |
| 17002 | + | |
| 398 | 17003 | /** |
| 399 | 17004 | * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved |
| 400 | 17005 | * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can |
| 401 | 17006 | * check whether it's instanceof by using the objects constructor and prototype names. |
| 402 | 17007 | * |
| 403 | - * @param object | |
| 404 | - * @param constructors | |
| 405 | - * @return {boolean} | |
| 17008 | + * @param object | |
| 17009 | + * @param constructors | |
| 17010 | + * @returns {boolean} | |
| 406 | 17011 | */ |
| 407 | -var _default = exports["default"] = function _default(object, constructors) { | |
| 408 | - constructors = Array.isArray(constructors) ? constructors : [constructors]; | |
| 409 | - var _iterator = _createForOfIteratorHelper(constructors), | |
| 410 | - _step; | |
| 17012 | +var _default = function _default(object, constructors) { | |
| 17013 | + constructors = (0, _isArray.default)(constructors) ? constructors : [constructors]; | |
| 17014 | + | |
| 17015 | + var _iterator = (0, _createForOfIteratorHelper2.default)(constructors), | |
| 17016 | + _step; | |
| 17017 | + | |
| 411 | 17018 | try { |
| 412 | 17019 | for (_iterator.s(); !(_step = _iterator.n()).done;) { |
| 413 | - var constructor = _step.value; | |
| 414 | - if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) { | |
| 17020 | + var _constructor = _step.value; | |
| 17021 | + | |
| 17022 | + if (object.constructor.name === _constructor.prototype[_toStringTag.default]) { | |
| 415 | 17023 | return true; |
| 416 | 17024 | } |
| 417 | 17025 | } |
| 418 | 17026 | } catch (err) { |
| @@ -419,13 +17027,803 @@ | ||
| 419 | 17027 | _iterator.e(err); |
| 420 | 17028 | } finally { |
| 421 | 17029 | _iterator.f(); |
| 422 | 17030 | } |
| 17031 | + | |
| 423 | 17032 | return false; |
| 424 | 17033 | }; |
| 425 | 17034 | |
| 17035 | +exports["default"] = _default; | |
| 17036 | + | |
| 426 | 17037 | /***/ }), |
| 427 | 17038 | |
| 17039 | +/***/ "../assets/dev/js/editor/utils/stylesheet.js": | |
| 17040 | +/*!***************************************************!*\ | |
| 17041 | + !*** ../assets/dev/js/editor/utils/stylesheet.js ***! | |
| 17042 | + \***************************************************/ | |
| 17043 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 17044 | + | |
| 17045 | +"use strict"; | |
| 17046 | + | |
| 17047 | + | |
| 17048 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 17049 | + | |
| 17050 | +var _keys = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js")); | |
| 17051 | + | |
| 17052 | +__webpack_require__(/*! core-js/modules/es6.array.filter.js */ "../node_modules/core-js/modules/es6.array.filter.js"); | |
| 17053 | + | |
| 17054 | +__webpack_require__(/*! core-js/modules/es6.regexp.split.js */ "../node_modules/core-js/modules/es6.regexp.split.js"); | |
| 17055 | + | |
| 17056 | +__webpack_require__(/*! core-js/modules/es6.regexp.match.js */ "../node_modules/core-js/modules/es6.regexp.match.js"); | |
| 17057 | + | |
| 17058 | +__webpack_require__(/*! core-js/modules/es6.regexp.replace.js */ "../node_modules/core-js/modules/es6.regexp.replace.js"); | |
| 17059 | + | |
| 17060 | +__webpack_require__(/*! core-js/modules/es6.object.to-string.js */ "../node_modules/core-js/modules/es6.object.to-string.js"); | |
| 17061 | + | |
| 17062 | +__webpack_require__(/*! core-js/modules/es6.regexp.to-string.js */ "../node_modules/core-js/modules/es6.regexp.to-string.js"); | |
| 17063 | + | |
| 17064 | +(function ($) { | |
| 17065 | + var Stylesheet = function Stylesheet() { | |
| 17066 | + var self = this, | |
| 17067 | + rules = {}, | |
| 17068 | + rawCSS = {}, | |
| 17069 | + devices = {}; | |
| 17070 | + | |
| 17071 | + var queryToHash = function queryToHash(query) { | |
| 17072 | + var hash = []; | |
| 17073 | + $.each(query, function (endPoint) { | |
| 17074 | + hash.push(endPoint + '_' + this); | |
| 17075 | + }); | |
| 17076 | + return hash.join('-'); | |
| 17077 | + }; | |
| 17078 | + | |
| 17079 | + var hashToQuery = function hashToQuery(hash) { | |
| 17080 | + var query = {}; | |
| 17081 | + hash = hash.split('-').filter(String); | |
| 17082 | + hash.forEach(function (singleQuery) { | |
| 17083 | + // split {max}/{min}_{device name} to separate strings | |
| 17084 | + var queryParts = singleQuery.split(/_(.+)/), | |
| 17085 | + endPoint = queryParts[0], | |
| 17086 | + deviceName = queryParts[1]; | |
| 17087 | + query[endPoint] = 'max' === endPoint ? devices[deviceName] : elementorFrontend.breakpoints.getDeviceMinBreakpoint(deviceName); | |
| 17088 | + }); | |
| 17089 | + return query; | |
| 17090 | + }; | |
| 17091 | + | |
| 17092 | + var addQueryHash = function addQueryHash(queryHash) { | |
| 17093 | + rules[queryHash] = {}; | |
| 17094 | + var hashes = (0, _keys.default)(rules); | |
| 17095 | + | |
| 17096 | + if (hashes.length < 2) { | |
| 17097 | + return; | |
| 17098 | + } // Sort the devices from narrowest to widest | |
| 17099 | + | |
| 17100 | + | |
| 17101 | + hashes.sort(function (a, b) { | |
| 17102 | + if ('all' === a) { | |
| 17103 | + return -1; | |
| 17104 | + } | |
| 17105 | + | |
| 17106 | + if ('all' === b) { | |
| 17107 | + return 1; | |
| 17108 | + } | |
| 17109 | + | |
| 17110 | + var aQuery = hashToQuery(a), | |
| 17111 | + bQuery = hashToQuery(b); | |
| 17112 | + return bQuery.max - aQuery.max; | |
| 17113 | + }); | |
| 17114 | + var sortedRules = {}; | |
| 17115 | + hashes.forEach(function (deviceName) { | |
| 17116 | + sortedRules[deviceName] = rules[deviceName]; | |
| 17117 | + }); | |
| 17118 | + rules = sortedRules; | |
| 17119 | + }; | |
| 17120 | + | |
| 17121 | + var getQueryHashStyleFormat = function getQueryHashStyleFormat(queryHash) { | |
| 17122 | + var query = hashToQuery(queryHash), | |
| 17123 | + styleFormat = []; | |
| 17124 | + $.each(query, function (endPoint) { | |
| 17125 | + styleFormat.push('(' + endPoint + '-width:' + this + 'px)'); | |
| 17126 | + }); | |
| 17127 | + return '@media' + styleFormat.join(' and '); | |
| 17128 | + }; | |
| 17129 | + | |
| 17130 | + this.addDevice = function (newDeviceName, deviceValue) { | |
| 17131 | + devices[newDeviceName] = deviceValue; | |
| 17132 | + var deviceNames = (0, _keys.default)(devices); | |
| 17133 | + | |
| 17134 | + if (deviceNames.length < 2) { | |
| 17135 | + return self; | |
| 17136 | + } // Sort the devices from narrowest to widest | |
| 17137 | + | |
| 17138 | + | |
| 17139 | + deviceNames.sort(function (a, b) { | |
| 17140 | + return devices[a] - devices[b]; | |
| 17141 | + }); | |
| 17142 | + var sortedDevices = {}; | |
| 17143 | + deviceNames.forEach(function (deviceName) { | |
| 17144 | + sortedDevices[deviceName] = devices[deviceName]; | |
| 17145 | + }); | |
| 17146 | + devices = sortedDevices; | |
| 17147 | + return self; | |
| 17148 | + }; | |
| 17149 | + | |
| 17150 | + this.addRawCSS = function (key, css) { | |
| 17151 | + rawCSS[key] = css; | |
| 17152 | + }; | |
| 17153 | + | |
| 17154 | + this.addRules = function (selector, styleRules, query) { | |
| 17155 | + var queryHash = 'all'; | |
| 17156 | + | |
| 17157 | + if (!_.isEmpty(query)) { | |
| 17158 | + queryHash = queryToHash(query); | |
| 17159 | + } | |
| 17160 | + | |
| 17161 | + if (!rules[queryHash]) { | |
| 17162 | + addQueryHash(queryHash); | |
| 17163 | + } | |
| 17164 | + | |
| 17165 | + if (!styleRules) { | |
| 17166 | + var parsedRules = selector.match(/[^{]+\{[^}]+}/g); | |
| 17167 | + $.each(parsedRules, function () { | |
| 17168 | + var parsedRule = this.match(/([^{]+)\{([^}]+)}/); | |
| 17169 | + | |
| 17170 | + if (parsedRule) { | |
| 17171 | + self.addRules(parsedRule[1].trim(), parsedRule[2].trim(), query); | |
| 17172 | + } | |
| 17173 | + }); | |
| 17174 | + return; | |
| 17175 | + } | |
| 17176 | + | |
| 17177 | + if (!rules[queryHash][selector]) { | |
| 17178 | + rules[queryHash][selector] = {}; | |
| 17179 | + } | |
| 17180 | + | |
| 17181 | + if ('string' === typeof styleRules) { | |
| 17182 | + styleRules = styleRules.split(';').filter(String); | |
| 17183 | + var orderedRules = {}; | |
| 17184 | + | |
| 17185 | + try { | |
| 17186 | + $.each(styleRules, function () { | |
| 17187 | + var property = this.split(/:(.*)?/); | |
| 17188 | + orderedRules[property[0].trim()] = property[1].trim().replace(';', ''); | |
| 17189 | + }); | |
| 17190 | + } catch (error) { | |
| 17191 | + // At least one of the properties is incorrect | |
| 17192 | + return; | |
| 17193 | + } | |
| 17194 | + | |
| 17195 | + styleRules = orderedRules; | |
| 17196 | + } | |
| 17197 | + | |
| 17198 | + $.extend(rules[queryHash][selector], styleRules); | |
| 17199 | + return self; | |
| 17200 | + }; | |
| 17201 | + | |
| 17202 | + this.getRules = function () { | |
| 17203 | + return rules; | |
| 17204 | + }; | |
| 17205 | + | |
| 17206 | + this.empty = function () { | |
| 17207 | + rules = {}; | |
| 17208 | + rawCSS = {}; | |
| 17209 | + }; | |
| 17210 | + | |
| 17211 | + this.toString = function () { | |
| 17212 | + var styleText = ''; | |
| 17213 | + $.each(rules, function (queryHash) { | |
| 17214 | + var deviceText = Stylesheet.parseRules(this); | |
| 17215 | + | |
| 17216 | + if ('all' !== queryHash) { | |
| 17217 | + deviceText = getQueryHashStyleFormat(queryHash) + '{' + deviceText + '}'; | |
| 17218 | + } | |
| 17219 | + | |
| 17220 | + styleText += deviceText; | |
| 17221 | + }); | |
| 17222 | + $.each(rawCSS, function () { | |
| 17223 | + styleText += this; | |
| 17224 | + }); | |
| 17225 | + return styleText; | |
| 17226 | + }; | |
| 17227 | + }; | |
| 17228 | + | |
| 17229 | + Stylesheet.parseRules = function (rules) { | |
| 17230 | + var parsedRules = ''; | |
| 17231 | + $.each(rules, function (selector) { | |
| 17232 | + var selectorContent = Stylesheet.parseProperties(this); | |
| 17233 | + | |
| 17234 | + if (selectorContent) { | |
| 17235 | + parsedRules += selector + '{' + selectorContent + '}'; | |
| 17236 | + } | |
| 17237 | + }); | |
| 17238 | + return parsedRules; | |
| 17239 | + }; | |
| 17240 | + | |
| 17241 | + Stylesheet.parseProperties = function (properties) { | |
| 17242 | + var parsedProperties = ''; | |
| 17243 | + $.each(properties, function (propertyKey) { | |
| 17244 | + if (this) { | |
| 17245 | + parsedProperties += propertyKey + ':' + this + ';'; | |
| 17246 | + } | |
| 17247 | + }); | |
| 17248 | + return parsedProperties; | |
| 17249 | + }; | |
| 17250 | + | |
| 17251 | + module.exports = Stylesheet; | |
| 17252 | +})(jQuery); | |
| 17253 | + | |
| 17254 | +/***/ }), | |
| 17255 | + | |
| 17256 | +/***/ "../assets/dev/js/editor/views/add-section/base.js": | |
| 17257 | +/*!*********************************************************!*\ | |
| 17258 | + !*** ../assets/dev/js/editor/views/add-section/base.js ***! | |
| 17259 | + \*********************************************************/ | |
| 17260 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 17261 | + | |
| 17262 | +"use strict"; | |
| 17263 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 17264 | + | |
| 17265 | + | |
| 17266 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 17267 | + | |
| 17268 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 17269 | + | |
| 17270 | +_Object$defineProperty(exports, "__esModule", { | |
| 17271 | + value: true | |
| 17272 | +}); | |
| 17273 | + | |
| 17274 | +exports["default"] = void 0; | |
| 17275 | + | |
| 17276 | +var _assign = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/assign */ "../node_modules/@babel/runtime-corejs2/core-js/object/assign.js")); | |
| 17277 | + | |
| 17278 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 17279 | + | |
| 17280 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 17281 | + | |
| 17282 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 17283 | + | |
| 17284 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 17285 | + | |
| 17286 | +var AddSectionBase = /*#__PURE__*/function (_Marionette$ItemView) { | |
| 17287 | + (0, _inherits2.default)(AddSectionBase, _Marionette$ItemView); | |
| 17288 | + | |
| 17289 | + var _super = (0, _createSuper2.default)(AddSectionBase); | |
| 17290 | + | |
| 17291 | + function AddSectionBase() { | |
| 17292 | + (0, _classCallCheck2.default)(this, AddSectionBase); | |
| 17293 | + return _super.apply(this, arguments); | |
| 17294 | + } | |
| 17295 | + | |
| 17296 | + (0, _createClass2.default)(AddSectionBase, [{ | |
| 17297 | + key: "template", | |
| 17298 | + value: function template() { | |
| 17299 | + return Marionette.TemplateCache.get('#tmpl-elementor-add-section'); | |
| 17300 | + } | |
| 17301 | + }, { | |
| 17302 | + key: "attributes", | |
| 17303 | + value: function attributes() { | |
| 17304 | + return { | |
| 17305 | + 'data-view': 'choose-action' | |
| 17306 | + }; | |
| 17307 | + } | |
| 17308 | + }, { | |
| 17309 | + key: "ui", | |
| 17310 | + value: function ui() { | |
| 17311 | + return { | |
| 17312 | + addNewSection: '.elementor-add-new-section', | |
| 17313 | + closeButton: '.elementor-add-section-close', | |
| 17314 | + addSectionButton: '.elementor-add-section-button', | |
| 17315 | + addTemplateButton: '.elementor-add-template-button', | |
| 17316 | + selectPreset: '.elementor-select-preset', | |
| 17317 | + presets: '.elementor-preset' | |
| 17318 | + }; | |
| 17319 | + } | |
| 17320 | + }, { | |
| 17321 | + key: "events", | |
| 17322 | + value: function events() { | |
| 17323 | + return { | |
| 17324 | + 'click @ui.addSectionButton': 'onAddSectionButtonClick', | |
| 17325 | + 'click @ui.addTemplateButton': 'onAddTemplateButtonClick', | |
| 17326 | + 'click @ui.closeButton': 'onCloseButtonClick', | |
| 17327 | + 'click @ui.presets': 'onPresetSelected' | |
| 17328 | + }; | |
| 17329 | + } | |
| 17330 | + }, { | |
| 17331 | + key: "behaviors", | |
| 17332 | + value: function behaviors() { | |
| 17333 | + return { | |
| 17334 | + contextMenu: { | |
| 17335 | + behaviorClass: __webpack_require__(/*! elementor-behaviors/context-menu */ "../assets/dev/js/editor/elements/views/behaviors/context-menu.js"), | |
| 17336 | + groups: this.getContextMenuGroups() | |
| 17337 | + } | |
| 17338 | + }; | |
| 17339 | + } | |
| 17340 | + }, { | |
| 17341 | + key: "className", | |
| 17342 | + value: function className() { | |
| 17343 | + return 'elementor-add-section elementor-visible-desktop'; | |
| 17344 | + } | |
| 17345 | + }, { | |
| 17346 | + key: "setView", | |
| 17347 | + value: function setView(view) { | |
| 17348 | + this.$el.attr('data-view', view); | |
| 17349 | + } | |
| 17350 | + }, { | |
| 17351 | + key: "showSelectPresets", | |
| 17352 | + value: function showSelectPresets() { | |
| 17353 | + this.setView('select-preset'); | |
| 17354 | + } | |
| 17355 | + }, { | |
| 17356 | + key: "closeSelectPresets", | |
| 17357 | + value: function closeSelectPresets() { | |
| 17358 | + this.setView('choose-action'); | |
| 17359 | + } | |
| 17360 | + }, { | |
| 17361 | + key: "getTemplatesModalOptions", | |
| 17362 | + value: function getTemplatesModalOptions() { | |
| 17363 | + return { | |
| 17364 | + importOptions: { | |
| 17365 | + at: this.getOption('at') | |
| 17366 | + } | |
| 17367 | + }; | |
| 17368 | + } | |
| 17369 | + }, { | |
| 17370 | + key: "getContextMenuGroups", | |
| 17371 | + value: function getContextMenuGroups() { | |
| 17372 | + var _this = this; | |
| 17373 | + | |
| 17374 | + var hasContent = function hasContent() { | |
| 17375 | + return elementor.elements.length > 0; | |
| 17376 | + }; | |
| 17377 | + | |
| 17378 | + return [{ | |
| 17379 | + name: 'paste', | |
| 17380 | + actions: [{ | |
| 17381 | + name: 'paste', | |
| 17382 | + title: __('Paste', 'elementor'), | |
| 17383 | + isEnabled: function isEnabled() { | |
| 17384 | + return $e.components.get('document/elements').utils.isPasteEnabled(elementor.getPreviewContainer()); | |
| 17385 | + }, | |
| 17386 | + callback: function callback() { | |
| 17387 | + return $e.run('document/ui/paste', { | |
| 17388 | + container: elementor.getPreviewContainer(), | |
| 17389 | + options: { | |
| 17390 | + at: _this.getOption('at'), | |
| 17391 | + rebuild: true | |
| 17392 | + }, | |
| 17393 | + onAfter: function onAfter() { | |
| 17394 | + return _this.onAfterPaste(); | |
| 17395 | + } | |
| 17396 | + }); | |
| 17397 | + } | |
| 17398 | + }] | |
| 17399 | + }, { | |
| 17400 | + name: 'content', | |
| 17401 | + actions: [{ | |
| 17402 | + name: 'copy_all_content', | |
| 17403 | + title: __('Copy All Content', 'elementor'), | |
| 17404 | + isEnabled: hasContent, | |
| 17405 | + callback: function callback() { | |
| 17406 | + return $e.run('document/elements/copy-all'); | |
| 17407 | + } | |
| 17408 | + }, { | |
| 17409 | + name: 'delete_all_content', | |
| 17410 | + title: __('Delete All Content', 'elementor'), | |
| 17411 | + isEnabled: hasContent, | |
| 17412 | + callback: function callback() { | |
| 17413 | + return $e.run('document/elements/empty'); | |
| 17414 | + } | |
| 17415 | + }] | |
| 17416 | + }]; | |
| 17417 | + } | |
| 17418 | + }, { | |
| 17419 | + key: "onAddSectionButtonClick", | |
| 17420 | + value: function onAddSectionButtonClick() { | |
| 17421 | + this.showSelectPresets(); | |
| 17422 | + } | |
| 17423 | + }, { | |
| 17424 | + key: "onAddTemplateButtonClick", | |
| 17425 | + value: function onAddTemplateButtonClick() { | |
| 17426 | + $e.run('library/open', this.getTemplatesModalOptions()); | |
| 17427 | + } | |
| 17428 | + }, { | |
| 17429 | + key: "onRender", | |
| 17430 | + value: function onRender() { | |
| 17431 | + this.$el.html5Droppable({ | |
| 17432 | + axis: ['vertical'], | |
| 17433 | + groups: ['elementor-element'], | |
| 17434 | + placeholder: false, | |
| 17435 | + currentElementClass: 'elementor-html5dnd-current-element', | |
| 17436 | + hasDraggingOnChildClass: 'elementor-dragging-on-child', | |
| 17437 | + onDropping: this.onDropping.bind(this) | |
| 17438 | + }); | |
| 17439 | + } | |
| 17440 | + }, { | |
| 17441 | + key: "onPresetSelected", | |
| 17442 | + value: function onPresetSelected(event) { | |
| 17443 | + this.closeSelectPresets(); | |
| 17444 | + var selectedStructure = event.currentTarget.dataset.structure, | |
| 17445 | + parsedStructure = elementor.presetsFactory.getParsedStructure(selectedStructure); | |
| 17446 | + $e.run('document/elements/create', { | |
| 17447 | + model: { | |
| 17448 | + elType: 'section' | |
| 17449 | + }, | |
| 17450 | + container: elementor.getPreviewContainer(), | |
| 17451 | + columns: parsedStructure.columnsCount, | |
| 17452 | + structure: selectedStructure, | |
| 17453 | + options: (0, _assign.default)({}, this.options) | |
| 17454 | + }); | |
| 17455 | + } | |
| 17456 | + }, { | |
| 17457 | + key: "onDropping", | |
| 17458 | + value: function onDropping() { | |
| 17459 | + if (elementor.helpers.maybeDisableWidget()) { | |
| 17460 | + return; | |
| 17461 | + } | |
| 17462 | + | |
| 17463 | + var selectedElement = elementor.channels.panelElements.request('element:selected'), | |
| 17464 | + historyId = $e.internal('document/history/start-log', { | |
| 17465 | + type: 'add', | |
| 17466 | + title: elementor.helpers.getModelLabel(selectedElement.model) | |
| 17467 | + }), | |
| 17468 | + eSection = $e.run('document/elements/create', { | |
| 17469 | + model: { | |
| 17470 | + elType: 'section' | |
| 17471 | + }, | |
| 17472 | + container: elementor.getPreviewContainer(), | |
| 17473 | + columns: 1, | |
| 17474 | + options: { | |
| 17475 | + at: this.getOption('at'), | |
| 17476 | + // BC: Deprecated since 2.8.0 - use `$e.hooks`. | |
| 17477 | + trigger: { | |
| 17478 | + beforeAdd: 'section:before:drop', | |
| 17479 | + afterAdd: 'section:after:drop' | |
| 17480 | + } | |
| 17481 | + } | |
| 17482 | + }); // Create the element in column. | |
| 17483 | + | |
| 17484 | + eSection.view.children.findByIndex(0).addElementFromPanel(); | |
| 17485 | + $e.internal('document/history/end-log', { | |
| 17486 | + id: historyId | |
| 17487 | + }); | |
| 17488 | + } | |
| 17489 | + }, { | |
| 17490 | + key: "onAfterPaste", | |
| 17491 | + value: function onAfterPaste() {} | |
| 17492 | + }]); | |
| 17493 | + return AddSectionBase; | |
| 17494 | +}(Marionette.ItemView); | |
| 17495 | + | |
| 17496 | +var _default = AddSectionBase; | |
| 17497 | +exports["default"] = _default; | |
| 17498 | + | |
| 17499 | +/***/ }), | |
| 17500 | + | |
| 17501 | +/***/ "../assets/dev/js/editor/views/add-section/inline.js": | |
| 17502 | +/*!***********************************************************!*\ | |
| 17503 | + !*** ../assets/dev/js/editor/views/add-section/inline.js ***! | |
| 17504 | + \***********************************************************/ | |
| 17505 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 17506 | + | |
| 17507 | +"use strict"; | |
| 17508 | + | |
| 17509 | + | |
| 17510 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 17511 | + | |
| 17512 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 17513 | + | |
| 17514 | +_Object$defineProperty(exports, "__esModule", { | |
| 17515 | + value: true | |
| 17516 | +}); | |
| 17517 | + | |
| 17518 | +exports["default"] = void 0; | |
| 17519 | + | |
| 17520 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 17521 | + | |
| 17522 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 17523 | + | |
| 17524 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 17525 | + | |
| 17526 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 17527 | + | |
| 17528 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 17529 | + | |
| 17530 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 17531 | + | |
| 17532 | +var _base = _interopRequireDefault(__webpack_require__(/*! ./base */ "../assets/dev/js/editor/views/add-section/base.js")); | |
| 17533 | + | |
| 17534 | +var AddSectionView = /*#__PURE__*/function (_BaseAddSectionView) { | |
| 17535 | + (0, _inherits2.default)(AddSectionView, _BaseAddSectionView); | |
| 17536 | + | |
| 17537 | + var _super = (0, _createSuper2.default)(AddSectionView); | |
| 17538 | + | |
| 17539 | + function AddSectionView() { | |
| 17540 | + (0, _classCallCheck2.default)(this, AddSectionView); | |
| 17541 | + return _super.apply(this, arguments); | |
| 17542 | + } | |
| 17543 | + | |
| 17544 | + (0, _createClass2.default)(AddSectionView, [{ | |
| 17545 | + key: "className", | |
| 17546 | + value: function className() { | |
| 17547 | + return (0, _get2.default)((0, _getPrototypeOf2.default)(AddSectionView.prototype), "className", this).call(this) + ' elementor-add-section-inline'; | |
| 17548 | + } | |
| 17549 | + }, { | |
| 17550 | + key: "fadeToDeath", | |
| 17551 | + value: function fadeToDeath() { | |
| 17552 | + var self = this; | |
| 17553 | + self.$el.slideUp(function () { | |
| 17554 | + self.destroy(); | |
| 17555 | + }); | |
| 17556 | + } | |
| 17557 | + }, { | |
| 17558 | + key: "onAfterPaste", | |
| 17559 | + value: function onAfterPaste() { | |
| 17560 | + (0, _get2.default)((0, _getPrototypeOf2.default)(AddSectionView.prototype), "onAfterPaste", this).call(this); | |
| 17561 | + this.destroy(); | |
| 17562 | + } | |
| 17563 | + }, { | |
| 17564 | + key: "onCloseButtonClick", | |
| 17565 | + value: function onCloseButtonClick() { | |
| 17566 | + this.fadeToDeath(); | |
| 17567 | + } | |
| 17568 | + }, { | |
| 17569 | + key: "onPresetSelected", | |
| 17570 | + value: function onPresetSelected(event) { | |
| 17571 | + (0, _get2.default)((0, _getPrototypeOf2.default)(AddSectionView.prototype), "onPresetSelected", this).call(this, event); | |
| 17572 | + this.destroy(); | |
| 17573 | + } | |
| 17574 | + }, { | |
| 17575 | + key: "onAddTemplateButtonClick", | |
| 17576 | + value: function onAddTemplateButtonClick() { | |
| 17577 | + (0, _get2.default)((0, _getPrototypeOf2.default)(AddSectionView.prototype), "onAddTemplateButtonClick", this).call(this); | |
| 17578 | + this.destroy(); | |
| 17579 | + } | |
| 17580 | + }, { | |
| 17581 | + key: "onDropping", | |
| 17582 | + value: function onDropping() { | |
| 17583 | + (0, _get2.default)((0, _getPrototypeOf2.default)(AddSectionView.prototype), "onDropping", this).call(this); | |
| 17584 | + this.destroy(); | |
| 17585 | + } | |
| 17586 | + }]); | |
| 17587 | + return AddSectionView; | |
| 17588 | +}(_base.default); | |
| 17589 | + | |
| 17590 | +var _default = AddSectionView; | |
| 17591 | +exports["default"] = _default; | |
| 17592 | + | |
| 17593 | +/***/ }), | |
| 17594 | + | |
| 17595 | +/***/ "../assets/dev/js/editor/views/base-container.js": | |
| 17596 | +/*!*******************************************************!*\ | |
| 17597 | + !*** ../assets/dev/js/editor/views/base-container.js ***! | |
| 17598 | + \*******************************************************/ | |
| 17599 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 17600 | + | |
| 17601 | +"use strict"; | |
| 17602 | + | |
| 17603 | + | |
| 17604 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 17605 | + | |
| 17606 | +__webpack_require__(/*! core-js/modules/es6.number.constructor.js */ "../node_modules/core-js/modules/es6.number.constructor.js"); | |
| 17607 | + | |
| 17608 | +__webpack_require__(/*! core-js/modules/es6.function.name.js */ "../node_modules/core-js/modules/es6.function.name.js"); | |
| 17609 | + | |
| 17610 | +var _keys = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js")); | |
| 17611 | + | |
| 17612 | +var _assign = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/assign */ "../node_modules/@babel/runtime-corejs2/core-js/object/assign.js")); | |
| 17613 | + | |
| 17614 | +var _element = _interopRequireDefault(__webpack_require__(/*! elementor-elements/models/element */ "../assets/dev/js/editor/elements/models/element.js")); | |
| 17615 | + | |
| 17616 | +module.exports = Marionette.CompositeView.extend({ | |
| 17617 | + templateHelpers: function templateHelpers() { | |
| 17618 | + return { | |
| 17619 | + view: this | |
| 17620 | + }; | |
| 17621 | + }, | |
| 17622 | + getBehavior: function getBehavior(name) { | |
| 17623 | + return this._behaviors[(0, _keys.default)(this.behaviors()).indexOf(name)]; | |
| 17624 | + }, | |
| 17625 | + initialize: function initialize() { | |
| 17626 | + this.collection = this.model.get('elements'); | |
| 17627 | + }, | |
| 17628 | + addChildModel: function addChildModel(model, options) { | |
| 17629 | + return this.collection.add(model, options, true); | |
| 17630 | + }, | |
| 17631 | + addElement: function addElement(data, options) { | |
| 17632 | + if (this.isCollectionFilled()) { | |
| 17633 | + return; | |
| 17634 | + } | |
| 17635 | + | |
| 17636 | + options = jQuery.extend({ | |
| 17637 | + trigger: false, | |
| 17638 | + edit: true, | |
| 17639 | + onBeforeAdd: null, | |
| 17640 | + onAfterAdd: null | |
| 17641 | + }, options); | |
| 17642 | + var childTypes = this.getChildType(); | |
| 17643 | + var newItem, elType; | |
| 17644 | + | |
| 17645 | + if (data instanceof Backbone.Model) { | |
| 17646 | + newItem = data; | |
| 17647 | + elType = newItem.get('elType'); | |
| 17648 | + } else { | |
| 17649 | + newItem = { | |
| 17650 | + id: elementorCommon.helpers.getUniqueId(), | |
| 17651 | + elType: childTypes[0], | |
| 17652 | + settings: {}, | |
| 17653 | + elements: [] | |
| 17654 | + }; | |
| 17655 | + | |
| 17656 | + if (data) { | |
| 17657 | + jQuery.extend(newItem, data); | |
| 17658 | + } | |
| 17659 | + | |
| 17660 | + elType = newItem.elType; | |
| 17661 | + } | |
| 17662 | + | |
| 17663 | + if (-1 === childTypes.indexOf(elType)) { | |
| 17664 | + return this.children.last().addElement(newItem, options); | |
| 17665 | + } | |
| 17666 | + | |
| 17667 | + if (options.clone) { | |
| 17668 | + newItem = this.cloneItem(newItem); | |
| 17669 | + } | |
| 17670 | + | |
| 17671 | + if (options.trigger) { | |
| 17672 | + elementor.channels.data.trigger(options.trigger.beforeAdd, newItem); | |
| 17673 | + } | |
| 17674 | + | |
| 17675 | + if (options.onBeforeAdd) { | |
| 17676 | + options.onBeforeAdd(); | |
| 17677 | + } | |
| 17678 | + | |
| 17679 | + var newModel = this.addChildModel(newItem, { | |
| 17680 | + at: options.at | |
| 17681 | + }), | |
| 17682 | + newView = this.children.findByModel(newModel); | |
| 17683 | + | |
| 17684 | + if (options.onAfterAdd) { | |
| 17685 | + options.onAfterAdd(newModel, newView); | |
| 17686 | + } | |
| 17687 | + | |
| 17688 | + if (options.trigger) { | |
| 17689 | + elementor.channels.data.trigger(options.trigger.afterAdd, newItem); | |
| 17690 | + } | |
| 17691 | + | |
| 17692 | + if (options.edit && elementor.documents.getCurrent().history.getActive()) { | |
| 17693 | + // Ensure container is created. TODO: Open editor via UI hook after `document/elements/create`. | |
| 17694 | + newView.getContainer(); | |
| 17695 | + newModel.trigger('request:edit', { | |
| 17696 | + scrollIntoView: options.scrollIntoView | |
| 17697 | + }); | |
| 17698 | + } | |
| 17699 | + | |
| 17700 | + return newView; | |
| 17701 | + }, | |
| 17702 | + createElementFromContainer: function createElementFromContainer(container) { | |
| 17703 | + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | |
| 17704 | + return this.createElementFromModel(container.model, options); | |
| 17705 | + }, | |
| 17706 | + createElementFromModel: function createElementFromModel(model) { | |
| 17707 | + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | |
| 17708 | + var container = this.getContainer(); | |
| 17709 | + | |
| 17710 | + if (model instanceof Backbone.Model) { | |
| 17711 | + model = model.toJSON(); | |
| 17712 | + } | |
| 17713 | + | |
| 17714 | + if (elementor.helpers.maybeDisableWidget(model.widgetType)) { | |
| 17715 | + return; | |
| 17716 | + } | |
| 17717 | + | |
| 17718 | + model = (0, _assign.default)(model, model.custom); // Check whether the container cannot contain a section, in which case we should use an inner-section. | |
| 17719 | + | |
| 17720 | + if ('section' === model.elType) { | |
| 17721 | + model.isInner = true; | |
| 17722 | + } | |
| 17723 | + | |
| 17724 | + var historyId = $e.internal('document/history/start-log', { | |
| 17725 | + type: this.getHistoryType(options.event), | |
| 17726 | + title: elementor.helpers.getModelLabel(model) | |
| 17727 | + }); | |
| 17728 | + | |
| 17729 | + if (options.shouldWrap) { | |
| 17730 | + var containerExperiment = elementorCommon.config.experimentalFeatures.container; | |
| 17731 | + container = $e.run('document/elements/create', { | |
| 17732 | + model: { | |
| 17733 | + elType: containerExperiment ? 'container' : 'section' | |
| 17734 | + }, | |
| 17735 | + container: container, | |
| 17736 | + columns: Number(!containerExperiment), | |
| 17737 | + options: { | |
| 17738 | + at: this.getOption('at'), | |
| 17739 | + // BC: Deprecated since 2.8.0 - use `$e.hooks`. | |
| 17740 | + trigger: { | |
| 17741 | + beforeAdd: 'section:before:drop', | |
| 17742 | + afterAdd: 'section:after:drop' | |
| 17743 | + } | |
| 17744 | + } | |
| 17745 | + }); // Since wrapping an element with container doesn't produce a column, we shouldn't try to access it. | |
| 17746 | + | |
| 17747 | + if (!containerExperiment) { | |
| 17748 | + container = container.view.children.findByIndex(0).getContainer(); | |
| 17749 | + } | |
| 17750 | + } // Create the element in column. | |
| 17751 | + | |
| 17752 | + | |
| 17753 | + var widget = $e.run('document/elements/create', { | |
| 17754 | + container: container, | |
| 17755 | + model: model, | |
| 17756 | + options: options | |
| 17757 | + }); | |
| 17758 | + $e.internal('document/history/end-log', { | |
| 17759 | + id: historyId | |
| 17760 | + }); | |
| 17761 | + return widget; | |
| 17762 | + }, | |
| 17763 | + getHistoryType: function getHistoryType(event) { | |
| 17764 | + if (event) { | |
| 17765 | + if (event.originalEvent) { | |
| 17766 | + event = event.originalEvent; | |
| 17767 | + } | |
| 17768 | + | |
| 17769 | + switch (event.constructor.name) { | |
| 17770 | + case 'DragEvent': | |
| 17771 | + return 'import'; | |
| 17772 | + | |
| 17773 | + case 'ClipboardEvent': | |
| 17774 | + return 'paste'; | |
| 17775 | + } | |
| 17776 | + } | |
| 17777 | + | |
| 17778 | + return 'add'; | |
| 17779 | + }, | |
| 17780 | + addChildElement: function addChildElement(data, options) { | |
| 17781 | + elementorCommon.helpers.softDeprecated('addChildElement', '2.8.0', "$e.run( 'document/elements/create' )"); | |
| 17782 | + | |
| 17783 | + if (Object !== data.constructor) { | |
| 17784 | + data = jQuery.extend({}, data); | |
| 17785 | + } | |
| 17786 | + | |
| 17787 | + $e.run('document/elements/create', { | |
| 17788 | + container: this.getContainer(), | |
| 17789 | + model: data, | |
| 17790 | + options: options | |
| 17791 | + }); | |
| 17792 | + }, | |
| 17793 | + cloneItem: function cloneItem(item) { | |
| 17794 | + var self = this; | |
| 17795 | + | |
| 17796 | + if (item instanceof Backbone.Model) { | |
| 17797 | + return item.clone(); | |
| 17798 | + } | |
| 17799 | + | |
| 17800 | + item.id = elementorCommon.helpers.getUniqueId(); | |
| 17801 | + item.settings._element_id = ''; | |
| 17802 | + item.elements.forEach(function (childItem, index) { | |
| 17803 | + item.elements[index] = self.cloneItem(childItem); | |
| 17804 | + }); | |
| 17805 | + return item; | |
| 17806 | + }, | |
| 17807 | + lookup: function lookup() { | |
| 17808 | + var element = this; | |
| 17809 | + | |
| 17810 | + if (element.isDisconnected()) { | |
| 17811 | + element = $e.components.get('document').utils.findViewById(element.model.id); | |
| 17812 | + } | |
| 17813 | + | |
| 17814 | + return element; | |
| 17815 | + }, | |
| 17816 | + isDisconnected: function isDisconnected() { | |
| 17817 | + return this.isDestroyed || !this.el.isConnected; | |
| 17818 | + }, | |
| 17819 | + isCollectionFilled: function isCollectionFilled() { | |
| 17820 | + return false; | |
| 17821 | + } | |
| 17822 | +}); | |
| 17823 | + | |
| 17824 | +/***/ }), | |
| 17825 | + | |
| 428 | 17826 | /***/ "../assets/dev/js/modules/imports/args-object.js": |
| 429 | 17827 | /*!*******************************************************!*\ |
| 430 | 17828 | !*** ../assets/dev/js/modules/imports/args-object.js ***! |
| 431 | 17829 | \*******************************************************/ |
| @@ -433,24 +17831,37 @@ | ||
| 433 | 17831 | |
| 434 | 17832 | "use strict"; |
| 435 | 17833 | |
| 436 | 17834 | |
| 437 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 438 | -Object.defineProperty(exports, "__esModule", ({ | |
| 17835 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 17836 | + | |
| 17837 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 17838 | + | |
| 17839 | +_Object$defineProperty(exports, "__esModule", { | |
| 439 | 17840 | value: true |
| 440 | -})); | |
| 17841 | +}); | |
| 17842 | + | |
| 441 | 17843 | exports["default"] = void 0; |
| 442 | -var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); | |
| 443 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 444 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 445 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 446 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 447 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 17844 | + | |
| 17845 | +var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/typeof */ "../node_modules/@babel/runtime-corejs2/helpers/typeof.js")); | |
| 17846 | + | |
| 17847 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 17848 | + | |
| 17849 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 17850 | + | |
| 17851 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 17852 | + | |
| 17853 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 17854 | + | |
| 448 | 17855 | var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js")); |
| 17856 | + | |
| 449 | 17857 | var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js")); |
| 450 | -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)); } | |
| 451 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 452 | -var ArgsObject = exports["default"] = /*#__PURE__*/function (_InstanceType) { | |
| 17858 | + | |
| 17859 | +var ArgsObject = /*#__PURE__*/function (_InstanceType) { | |
| 17860 | + (0, _inherits2.default)(ArgsObject, _InstanceType); | |
| 17861 | + | |
| 17862 | + var _super = (0, _createSuper2.default)(ArgsObject); | |
| 17863 | + | |
| 453 | 17864 | /** |
| 454 | 17865 | * Function constructor(). |
| 455 | 17866 | * |
| 456 | 17867 | * Create ArgsObject. |
| @@ -458,14 +17869,14 @@ | ||
| 458 | 17869 | * @param {{}} args |
| 459 | 17870 | */ |
| 460 | 17871 | function ArgsObject(args) { |
| 461 | 17872 | var _this; |
| 17873 | + | |
| 462 | 17874 | (0, _classCallCheck2.default)(this, ArgsObject); |
| 463 | - _this = _callSuper(this, ArgsObject); | |
| 17875 | + _this = _super.call(this); | |
| 464 | 17876 | _this.args = args; |
| 465 | 17877 | return _this; |
| 466 | 17878 | } |
| 467 | - | |
| 468 | 17879 | /** |
| 469 | 17880 | * Function requireArgument(). |
| 470 | 17881 | * |
| 471 | 17882 | * Validate property in args. |
| @@ -470,22 +17881,24 @@ | ||
| 470 | 17881 | * |
| 471 | 17882 | * Validate property in args. |
| 472 | 17883 | * |
| 473 | 17884 | * @param {string} property |
| 474 | - * @param {{}} args | |
| 17885 | + * @param {{}} args | |
| 475 | 17886 | * |
| 476 | 17887 | * @throws {Error} |
| 17888 | + * | |
| 477 | 17889 | */ |
| 478 | - (0, _inherits2.default)(ArgsObject, _InstanceType); | |
| 479 | - return (0, _createClass2.default)(ArgsObject, [{ | |
| 17890 | + | |
| 17891 | + | |
| 17892 | + (0, _createClass2.default)(ArgsObject, [{ | |
| 480 | 17893 | key: "requireArgument", |
| 481 | 17894 | value: function requireArgument(property) { |
| 482 | 17895 | var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args; |
| 483 | - if (!Object.prototype.hasOwnProperty.call(args, property)) { | |
| 17896 | + | |
| 17897 | + if (!args.hasOwnProperty(property)) { | |
| 484 | 17898 | throw Error("".concat(property, " is required.")); |
| 485 | 17899 | } |
| 486 | 17900 | } |
| 487 | - | |
| 488 | 17901 | /** |
| 489 | 17902 | * Function requireArgumentType(). |
| 490 | 17903 | * |
| 491 | 17904 | * Validate property in args using `type === typeof(args.whatever)`. |
| @@ -491,22 +17904,24 @@ | ||
| 491 | 17904 | * Validate property in args using `type === typeof(args.whatever)`. |
| 492 | 17905 | * |
| 493 | 17906 | * @param {string} property |
| 494 | 17907 | * @param {string} type |
| 495 | - * @param {{}} args | |
| 17908 | + * @param {{}} args | |
| 496 | 17909 | * |
| 497 | 17910 | * @throws {Error} |
| 17911 | + * | |
| 498 | 17912 | */ |
| 17913 | + | |
| 499 | 17914 | }, { |
| 500 | 17915 | key: "requireArgumentType", |
| 501 | 17916 | value: function requireArgumentType(property, type) { |
| 502 | 17917 | var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; |
| 503 | 17918 | this.requireArgument(property, args); |
| 17919 | + | |
| 504 | 17920 | if ((0, _typeof2.default)(args[property]) !== type) { |
| 505 | 17921 | throw Error("".concat(property, " invalid type: ").concat(type, ".")); |
| 506 | 17922 | } |
| 507 | 17923 | } |
| 508 | - | |
| 509 | 17924 | /** |
| 510 | 17925 | * Function requireArgumentInstance(). |
| 511 | 17926 | * |
| 512 | 17927 | * Validate property in args using `args.whatever instanceof instance`. |
| @@ -511,23 +17926,25 @@ | ||
| 511 | 17926 | * |
| 512 | 17927 | * Validate property in args using `args.whatever instanceof instance`. |
| 513 | 17928 | * |
| 514 | 17929 | * @param {string} property |
| 515 | - * @param {*} instance | |
| 516 | - * @param {{}} args | |
| 17930 | + * @param {instanceof} instance | |
| 17931 | + * @param {{}} args | |
| 517 | 17932 | * |
| 518 | 17933 | * @throws {Error} |
| 17934 | + * | |
| 519 | 17935 | */ |
| 17936 | + | |
| 520 | 17937 | }, { |
| 521 | 17938 | key: "requireArgumentInstance", |
| 522 | 17939 | value: function requireArgumentInstance(property, instance) { |
| 523 | 17940 | var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; |
| 524 | 17941 | this.requireArgument(property, args); |
| 17942 | + | |
| 525 | 17943 | if (!(args[property] instanceof instance) && !(0, _isInstanceof.default)(args[property], instance)) { |
| 526 | 17944 | throw Error("".concat(property, " invalid instance.")); |
| 527 | 17945 | } |
| 528 | 17946 | } |
| 529 | - | |
| 530 | 17947 | /** |
| 531 | 17948 | * Function requireArgumentConstructor(). |
| 532 | 17949 | * |
| 533 | 17950 | * Validate property in args using `type === args.whatever.constructor`. |
| @@ -532,13 +17949,15 @@ | ||
| 532 | 17949 | * |
| 533 | 17950 | * Validate property in args using `type === args.whatever.constructor`. |
| 534 | 17951 | * |
| 535 | 17952 | * @param {string} property |
| 536 | - * @param {*} type | |
| 537 | - * @param {{}} args | |
| 17953 | + * @param {*} type | |
| 17954 | + * @param {{}} args | |
| 538 | 17955 | * |
| 539 | 17956 | * @throws {Error} |
| 17957 | + * | |
| 540 | 17958 | */ |
| 17959 | + | |
| 541 | 17960 | }, { |
| 542 | 17961 | key: "requireArgumentConstructor", |
| 543 | 17962 | value: function requireArgumentConstructor(property, type) { |
| 544 | 17963 | var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; |
| @@ -543,11 +17962,9 @@ | ||
| 543 | 17962 | value: function requireArgumentConstructor(property, type) { |
| 544 | 17963 | var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; |
| 545 | 17964 | this.requireArgument(property, args); |
| 546 | 17965 | |
| 547 | - // Note: Converting the constructor to string in order to avoid equation issues | |
| 548 | - // due to different memory addresses between iframes (window.Object !== window.top.Object). | |
| 549 | - if (args[property].constructor.toString() !== type.prototype.constructor.toString()) { | |
| 17966 | + if (args[property].constructor !== type) { | |
| 550 | 17967 | throw Error("".concat(property, " invalid constructor type.")); |
| 551 | 17968 | } |
| 552 | 17969 | } |
| 553 | 17970 | }], [{ |
| @@ -555,10 +17972,13 @@ | ||
| 555 | 17972 | value: function getInstanceType() { |
| 556 | 17973 | return 'ArgsObject'; |
| 557 | 17974 | } |
| 558 | 17975 | }]); |
| 17976 | + return ArgsObject; | |
| 559 | 17977 | }(_instanceType.default); |
| 560 | 17978 | |
| 17979 | +exports["default"] = ArgsObject; | |
| 17980 | + | |
| 561 | 17981 | /***/ }), |
| 562 | 17982 | |
| 563 | 17983 | /***/ "../assets/dev/js/modules/imports/instance-type.js": |
| 564 | 17984 | /*!*********************************************************!*\ |
| @@ -568,35 +17988,53 @@ | ||
| 568 | 17988 | |
| 569 | 17989 | "use strict"; |
| 570 | 17990 | |
| 571 | 17991 | |
| 572 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 573 | -Object.defineProperty(exports, "__esModule", ({ | |
| 17992 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 17993 | + | |
| 17994 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 17995 | + | |
| 17996 | +_Object$defineProperty(exports, "__esModule", { | |
| 574 | 17997 | value: true |
| 575 | -})); | |
| 17998 | +}); | |
| 17999 | + | |
| 576 | 18000 | exports["default"] = void 0; |
| 577 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 578 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 579 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 580 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 581 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 582 | -var InstanceType = exports["default"] = /*#__PURE__*/function () { | |
| 18001 | + | |
| 18002 | +var _hasInstance = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/symbol/has-instance */ "../node_modules/@babel/runtime-corejs2/core-js/symbol/has-instance.js")); | |
| 18003 | + | |
| 18004 | +var _isArray = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/array/is-array */ "../node_modules/@babel/runtime-corejs2/core-js/array/is-array.js")); | |
| 18005 | + | |
| 18006 | +__webpack_require__(/*! core-js/modules/es6.function.name.js */ "../node_modules/core-js/modules/es6.function.name.js"); | |
| 18007 | + | |
| 18008 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 18009 | + | |
| 18010 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 18011 | + | |
| 18012 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/get */ "../node_modules/@babel/runtime-corejs2/helpers/get.js")); | |
| 18013 | + | |
| 18014 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/getPrototypeOf */ "../node_modules/@babel/runtime-corejs2/helpers/getPrototypeOf.js")); | |
| 18015 | + | |
| 18016 | +var InstanceType = /*#__PURE__*/function (_Symbol$hasInstance) { | |
| 583 | 18017 | function InstanceType() { |
| 584 | 18018 | var _this = this; |
| 18019 | + | |
| 585 | 18020 | (0, _classCallCheck2.default)(this, InstanceType); |
| 586 | 18021 | // Since anonymous classes sometimes do not get validated by babel, do it manually. |
| 587 | 18022 | var target = this instanceof InstanceType ? this.constructor : void 0; |
| 588 | 18023 | var prototypes = []; |
| 18024 | + | |
| 589 | 18025 | while (target.__proto__ && target.__proto__.name) { |
| 590 | 18026 | prototypes.push(target.__proto__); |
| 591 | 18027 | target = target.__proto__; |
| 592 | 18028 | } |
| 18029 | + | |
| 593 | 18030 | prototypes.reverse().forEach(function (proto) { |
| 594 | 18031 | return _this instanceof proto; |
| 595 | 18032 | }); |
| 596 | 18033 | } |
| 597 | - return (0, _createClass2.default)(InstanceType, null, [{ | |
| 598 | - key: Symbol.hasInstance, | |
| 18034 | + | |
| 18035 | + (0, _createClass2.default)(InstanceType, null, [{ | |
| 18036 | + key: _Symbol$hasInstance, | |
| 599 | 18037 | value: function value(target) { |
| 600 | 18038 | /** |
| 601 | 18039 | * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class |
| 602 | 18040 | * its give's opportunity to mange capabilities of instanceOf operator. |
| @@ -601,34 +18039,39 @@ | ||
| 601 | 18039 | * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class |
| 602 | 18040 | * its give's opportunity to mange capabilities of instanceOf operator. |
| 603 | 18041 | * saving current class each time will give option later to handle instanceOf manually. |
| 604 | 18042 | */ |
| 605 | - var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]); | |
| 18043 | + var result = (0, _get2.default)((0, _getPrototypeOf2.default)(InstanceType), _hasInstance.default, this).call(this, target); // Act normal when validate a class, which does not have instance type. | |
| 606 | 18044 | |
| 607 | - // Act normal when validate a class, which does not have instance type. | |
| 608 | 18045 | if (target && !target.constructor.getInstanceType) { |
| 609 | 18046 | return result; |
| 610 | 18047 | } |
| 18048 | + | |
| 611 | 18049 | if (target) { |
| 612 | 18050 | if (!target.instanceTypes) { |
| 613 | 18051 | target.instanceTypes = []; |
| 614 | 18052 | } |
| 18053 | + | |
| 615 | 18054 | if (!result) { |
| 616 | 18055 | if (this.getInstanceType() === target.constructor.getInstanceType()) { |
| 617 | 18056 | result = true; |
| 618 | 18057 | } |
| 619 | 18058 | } |
| 18059 | + | |
| 620 | 18060 | if (result) { |
| 621 | 18061 | var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType(); |
| 18062 | + | |
| 622 | 18063 | if (-1 === target.instanceTypes.indexOf(name)) { |
| 623 | 18064 | target.instanceTypes.push(name); |
| 624 | 18065 | } |
| 625 | 18066 | } |
| 626 | 18067 | } |
| 18068 | + | |
| 627 | 18069 | if (!result && target) { |
| 628 | 18070 | // Check if the given 'target', is instance of known types. |
| 629 | - result = target.instanceTypes && Array.isArray(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType()); | |
| 18071 | + result = target.instanceTypes && (0, _isArray.default)(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType()); | |
| 630 | 18072 | } |
| 18073 | + | |
| 631 | 18074 | return result; |
| 632 | 18075 | } |
| 633 | 18076 | }, { |
| 634 | 18077 | key: "getInstanceType", |
| @@ -635,208 +18078,409 @@ | ||
| 635 | 18078 | value: function getInstanceType() { |
| 636 | 18079 | elementorModules.ForceMethodImplementation(); |
| 637 | 18080 | } |
| 638 | 18081 | }]); |
| 639 | -}(); | |
| 18082 | + return InstanceType; | |
| 18083 | +}(_hasInstance.default); | |
| 640 | 18084 | |
| 18085 | +exports["default"] = InstanceType; | |
| 18086 | + | |
| 641 | 18087 | /***/ }), |
| 642 | 18088 | |
| 643 | -/***/ "../modules/web-cli/assets/js/modules/command-base.js": | |
| 644 | -/*!************************************************************!*\ | |
| 645 | - !*** ../modules/web-cli/assets/js/modules/command-base.js ***! | |
| 646 | - \************************************************************/ | |
| 18089 | +/***/ "../core/common/assets/js/api/core/data/errors/base-error.js": | |
| 18090 | +/*!*******************************************************************!*\ | |
| 18091 | + !*** ../core/common/assets/js/api/core/data/errors/base-error.js ***! | |
| 18092 | + \*******************************************************************/ | |
| 647 | 18093 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 648 | 18094 | |
| 649 | 18095 | "use strict"; |
| 650 | 18096 | |
| 651 | 18097 | |
| 652 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 653 | -Object.defineProperty(exports, "__esModule", ({ | |
| 18098 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 18099 | + | |
| 18100 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 18101 | + | |
| 18102 | +_Object$defineProperty(exports, "__esModule", { | |
| 654 | 18103 | value: true |
| 655 | -})); | |
| 18104 | +}); | |
| 18105 | + | |
| 656 | 18106 | exports["default"] = void 0; |
| 657 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 658 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 659 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 660 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 661 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 662 | -var _commandInfra = _interopRequireDefault(__webpack_require__(/*! ./command-infra */ "../modules/web-cli/assets/js/modules/command-infra.js")); | |
| 663 | -var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); | |
| 664 | -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)); } | |
| 665 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 666 | -/** | |
| 667 | - * @name $e.modules.CommandBase | |
| 668 | - */ | |
| 669 | -var CommandBase = exports["default"] = /*#__PURE__*/function (_CommandInfra) { | |
| 670 | - function CommandBase() { | |
| 671 | - (0, _classCallCheck2.default)(this, CommandBase); | |
| 672 | - return _callSuper(this, CommandBase, arguments); | |
| 18107 | + | |
| 18108 | +var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/objectSpread2 */ "../node_modules/@babel/runtime-corejs2/helpers/objectSpread2.js")); | |
| 18109 | + | |
| 18110 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 18111 | + | |
| 18112 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 18113 | + | |
| 18114 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/assertThisInitialized */ "../node_modules/@babel/runtime-corejs2/helpers/assertThisInitialized.js")); | |
| 18115 | + | |
| 18116 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 18117 | + | |
| 18118 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 18119 | + | |
| 18120 | +var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime-corejs2/helpers/wrapNativeSuper.js")); | |
| 18121 | + | |
| 18122 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/defineProperty */ "../node_modules/@babel/runtime-corejs2/helpers/defineProperty.js")); | |
| 18123 | + | |
| 18124 | +var BaseError = /*#__PURE__*/function (_Error) { | |
| 18125 | + (0, _inherits2.default)(BaseError, _Error); | |
| 18126 | + | |
| 18127 | + var _super = (0, _createSuper2.default)(BaseError); | |
| 18128 | + | |
| 18129 | + /** | |
| 18130 | + * Error constructor. | |
| 18131 | + * | |
| 18132 | + * @param code | |
| 18133 | + * @param message | |
| 18134 | + * @param data | |
| 18135 | + */ | |
| 18136 | + function BaseError() { | |
| 18137 | + var _this; | |
| 18138 | + | |
| 18139 | + var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; | |
| 18140 | + var code = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; | |
| 18141 | + var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; | |
| 18142 | + (0, _classCallCheck2.default)(this, BaseError); | |
| 18143 | + _this = _super.call(this, message); | |
| 18144 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "code", ''); | |
| 18145 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "data", []); | |
| 18146 | + _this.code = code; | |
| 18147 | + _this.data = data; | |
| 18148 | + return _this; | |
| 673 | 18149 | } |
| 674 | - (0, _inherits2.default)(CommandBase, _CommandInfra); | |
| 675 | - return (0, _createClass2.default)(CommandBase, [{ | |
| 676 | - key: "onBeforeRun", | |
| 677 | - value: function onBeforeRun() { | |
| 678 | - var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 679 | - $e.hooks.runUIBefore(this.command, args); | |
| 18150 | + /** | |
| 18151 | + * Notify a message when the error occurs. | |
| 18152 | + */ | |
| 18153 | + | |
| 18154 | + | |
| 18155 | + (0, _createClass2.default)(BaseError, [{ | |
| 18156 | + key: "notify", | |
| 18157 | + value: function notify() { | |
| 18158 | + elementorCommon.helpers.consoleError((0, _objectSpread2.default)({ | |
| 18159 | + message: this.message | |
| 18160 | + }, this)); | |
| 680 | 18161 | } |
| 681 | - }, { | |
| 682 | - key: "onAfterRun", | |
| 683 | - value: function onAfterRun() { | |
| 684 | - var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 685 | - var result = arguments.length > 1 ? arguments[1] : undefined; | |
| 686 | - $e.hooks.runUIAfter(this.command, args, result); | |
| 687 | - } | |
| 688 | - }, { | |
| 689 | - key: "onBeforeApply", | |
| 690 | - value: function onBeforeApply() { | |
| 691 | - var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 692 | - $e.hooks.runDataDependency(this.command, args); | |
| 693 | - } | |
| 694 | - }, { | |
| 695 | - key: "onAfterApply", | |
| 696 | - value: function onAfterApply() { | |
| 697 | - var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 698 | - var result = arguments.length > 1 ? arguments[1] : undefined; | |
| 699 | - return $e.hooks.runDataAfter(this.command, args, result); | |
| 700 | - } | |
| 701 | - }, { | |
| 702 | - key: "onCatchApply", | |
| 703 | - value: function onCatchApply(e) { | |
| 704 | - this.runCatchHooks(e); | |
| 705 | - } | |
| 18162 | + }], [{ | |
| 18163 | + key: "create", | |
| 18164 | + value: | |
| 18165 | + /** | |
| 18166 | + * The server error code. | |
| 18167 | + * | |
| 18168 | + * @type {string} | |
| 18169 | + */ | |
| 706 | 18170 | |
| 707 | 18171 | /** |
| 708 | - * Run all the catch hooks. | |
| 18172 | + * Additional data about the current error. | |
| 709 | 18173 | * |
| 710 | - * @param {Error} e | |
| 18174 | + * @type {*[]} | |
| 711 | 18175 | */ |
| 712 | - }, { | |
| 713 | - key: "runCatchHooks", | |
| 714 | - value: function runCatchHooks(e) { | |
| 715 | - $e.hooks.runDataCatch(this.command, this.args, e); | |
| 716 | - $e.hooks.runUICatch(this.command, this.args, e); | |
| 717 | - } | |
| 718 | 18176 | |
| 719 | 18177 | /** |
| 720 | - * TODO - Remove - Backwards compatibility. | |
| 18178 | + * Static helper function to create the error. | |
| 721 | 18179 | * |
| 722 | - * Function requireContainer(). | |
| 723 | - * | |
| 724 | - * Validate `arg.container` & `arg.containers`. | |
| 725 | - * | |
| 726 | - * @param {{}} args | |
| 727 | - * @deprecated since 3.7.0, extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase` instead. | |
| 728 | - * | |
| 729 | - * @throws {Error} | |
| 18180 | + * @param message | |
| 18181 | + * @param code | |
| 18182 | + * @param data | |
| 18183 | + * @returns {BaseError} | |
| 730 | 18184 | */ |
| 18185 | + function create(message) { | |
| 18186 | + var code = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; | |
| 18187 | + var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; | |
| 18188 | + return new this(message, code, data); | |
| 18189 | + } | |
| 18190 | + /** | |
| 18191 | + * Returns the status code of the error. | |
| 18192 | + */ | |
| 18193 | + | |
| 731 | 18194 | }, { |
| 732 | - key: "requireContainer", | |
| 733 | - value: function requireContainer() { | |
| 734 | - var _this = this; | |
| 735 | - var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args; | |
| 736 | - _deprecation.default.deprecated('requireContainer()', '3.7.0', 'Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`'); | |
| 737 | - if (!args.container && !args.containers) { | |
| 738 | - throw Error('container or containers are required.'); | |
| 739 | - } | |
| 740 | - if (args.container && args.containers) { | |
| 741 | - throw Error('container and containers cannot go together please select one of them.'); | |
| 742 | - } | |
| 743 | - var containers = args.containers || [args.container]; | |
| 744 | - containers.forEach(function (container) { | |
| 745 | - _this.requireArgumentInstance('container', elementorModules.editor.Container, { | |
| 746 | - container: container | |
| 747 | - }); | |
| 748 | - }); | |
| 18195 | + key: "getHTTPErrorCode", | |
| 18196 | + value: function getHTTPErrorCode() { | |
| 18197 | + elementorModules.ForceMethodImplementation(); | |
| 749 | 18198 | } |
| 18199 | + }]); | |
| 18200 | + return BaseError; | |
| 18201 | +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 18202 | + | |
| 18203 | +exports["default"] = BaseError; | |
| 18204 | + | |
| 18205 | +/***/ }), | |
| 18206 | + | |
| 18207 | +/***/ "../core/common/assets/js/api/core/data/errors/default-error.js": | |
| 18208 | +/*!**********************************************************************!*\ | |
| 18209 | + !*** ../core/common/assets/js/api/core/data/errors/default-error.js ***! | |
| 18210 | + \**********************************************************************/ | |
| 18211 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 18212 | + | |
| 18213 | +"use strict"; | |
| 18214 | + | |
| 18215 | + | |
| 18216 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 18217 | + | |
| 18218 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 18219 | + | |
| 18220 | +_Object$defineProperty(exports, "__esModule", { | |
| 18221 | + value: true | |
| 18222 | +}); | |
| 18223 | + | |
| 18224 | +exports["default"] = exports.DefaultError = void 0; | |
| 18225 | + | |
| 18226 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 18227 | + | |
| 18228 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 18229 | + | |
| 18230 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 18231 | + | |
| 18232 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 18233 | + | |
| 18234 | +var _baseError = _interopRequireDefault(__webpack_require__(/*! ./base-error */ "../core/common/assets/js/api/core/data/errors/base-error.js")); | |
| 18235 | + | |
| 18236 | +var DefaultError = /*#__PURE__*/function (_BaseError) { | |
| 18237 | + (0, _inherits2.default)(DefaultError, _BaseError); | |
| 18238 | + | |
| 18239 | + var _super = (0, _createSuper2.default)(DefaultError); | |
| 18240 | + | |
| 18241 | + function DefaultError() { | |
| 18242 | + (0, _classCallCheck2.default)(this, DefaultError); | |
| 18243 | + return _super.apply(this, arguments); | |
| 18244 | + } | |
| 18245 | + | |
| 18246 | + (0, _createClass2.default)(DefaultError, null, [{ | |
| 18247 | + key: "getHTTPErrorCode", | |
| 18248 | + value: function getHTTPErrorCode() { | |
| 18249 | + return 501; | |
| 18250 | + } | |
| 18251 | + }]); | |
| 18252 | + return DefaultError; | |
| 18253 | +}(_baseError.default); | |
| 18254 | + | |
| 18255 | +exports.DefaultError = DefaultError; | |
| 18256 | +var _default = DefaultError; | |
| 18257 | +exports["default"] = _default; | |
| 18258 | + | |
| 18259 | +/***/ }), | |
| 18260 | + | |
| 18261 | +/***/ "../core/common/assets/js/api/core/data/errors/error-404.js": | |
| 18262 | +/*!******************************************************************!*\ | |
| 18263 | + !*** ../core/common/assets/js/api/core/data/errors/error-404.js ***! | |
| 18264 | + \******************************************************************/ | |
| 18265 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 18266 | + | |
| 18267 | +"use strict"; | |
| 18268 | + | |
| 18269 | + | |
| 18270 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 18271 | + | |
| 18272 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 18273 | + | |
| 18274 | +_Object$defineProperty(exports, "__esModule", { | |
| 18275 | + value: true | |
| 18276 | +}); | |
| 18277 | + | |
| 18278 | +exports["default"] = exports.Error404 = void 0; | |
| 18279 | + | |
| 18280 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 18281 | + | |
| 18282 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 18283 | + | |
| 18284 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 18285 | + | |
| 18286 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 18287 | + | |
| 18288 | +var _baseError = _interopRequireDefault(__webpack_require__(/*! ./base-error */ "../core/common/assets/js/api/core/data/errors/base-error.js")); | |
| 18289 | + | |
| 18290 | +var Error404 = /*#__PURE__*/function (_BaseError) { | |
| 18291 | + (0, _inherits2.default)(Error404, _BaseError); | |
| 18292 | + | |
| 18293 | + var _super = (0, _createSuper2.default)(Error404); | |
| 18294 | + | |
| 18295 | + function Error404() { | |
| 18296 | + (0, _classCallCheck2.default)(this, Error404); | |
| 18297 | + return _super.apply(this, arguments); | |
| 18298 | + } | |
| 18299 | + | |
| 18300 | + (0, _createClass2.default)(Error404, [{ | |
| 18301 | + key: "notify", | |
| 18302 | + value: function notify() { | |
| 18303 | + elementorCommon.helpers.consoleWarn(this.message); | |
| 18304 | + } | |
| 750 | 18305 | }], [{ |
| 751 | - key: "getInstanceType", | |
| 752 | - value: function getInstanceType() { | |
| 753 | - return 'CommandBase'; | |
| 18306 | + key: "getHTTPErrorCode", | |
| 18307 | + value: function getHTTPErrorCode() { | |
| 18308 | + return 404; | |
| 754 | 18309 | } |
| 755 | 18310 | }]); |
| 756 | -}(_commandInfra.default); | |
| 18311 | + return Error404; | |
| 18312 | +}(_baseError.default); | |
| 757 | 18313 | |
| 18314 | +exports.Error404 = Error404; | |
| 18315 | +var _default = Error404; | |
| 18316 | +exports["default"] = _default; | |
| 18317 | + | |
| 758 | 18318 | /***/ }), |
| 759 | 18319 | |
| 760 | -/***/ "../modules/web-cli/assets/js/modules/command-infra.js": | |
| 761 | -/*!*************************************************************!*\ | |
| 762 | - !*** ../modules/web-cli/assets/js/modules/command-infra.js ***! | |
| 763 | - \*************************************************************/ | |
| 18320 | +/***/ "../core/common/assets/js/api/core/data/errors/index.js": | |
| 18321 | +/*!**************************************************************!*\ | |
| 18322 | + !*** ../core/common/assets/js/api/core/data/errors/index.js ***! | |
| 18323 | + \**************************************************************/ | |
| 764 | 18324 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 765 | 18325 | |
| 766 | 18326 | "use strict"; |
| 767 | 18327 | |
| 768 | 18328 | |
| 769 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 770 | -Object.defineProperty(exports, "__esModule", ({ | |
| 18329 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 18330 | + | |
| 18331 | +_Object$defineProperty(exports, "__esModule", { | |
| 771 | 18332 | value: true |
| 772 | -})); | |
| 18333 | +}); | |
| 18334 | + | |
| 18335 | +_Object$defineProperty(exports, "DefaultError", { | |
| 18336 | + enumerable: true, | |
| 18337 | + get: function get() { | |
| 18338 | + return _defaultError.DefaultError; | |
| 18339 | + } | |
| 18340 | +}); | |
| 18341 | + | |
| 18342 | +_Object$defineProperty(exports, "Error404", { | |
| 18343 | + enumerable: true, | |
| 18344 | + get: function get() { | |
| 18345 | + return _error.Error404; | |
| 18346 | + } | |
| 18347 | +}); | |
| 18348 | + | |
| 18349 | +var _defaultError = __webpack_require__(/*! ./default-error */ "../core/common/assets/js/api/core/data/errors/default-error.js"); | |
| 18350 | + | |
| 18351 | +var _error = __webpack_require__(/*! ./error-404 */ "../core/common/assets/js/api/core/data/errors/error-404.js"); | |
| 18352 | + | |
| 18353 | +/***/ }), | |
| 18354 | + | |
| 18355 | +/***/ "../core/common/assets/js/api/modules/command-base.js": | |
| 18356 | +/*!************************************************************!*\ | |
| 18357 | + !*** ../core/common/assets/js/api/modules/command-base.js ***! | |
| 18358 | + \************************************************************/ | |
| 18359 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 18360 | + | |
| 18361 | +"use strict"; | |
| 18362 | + | |
| 18363 | + | |
| 18364 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 18365 | + | |
| 18366 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 18367 | + | |
| 18368 | +_Object$defineProperty(exports, "__esModule", { | |
| 18369 | + value: true | |
| 18370 | +}); | |
| 18371 | + | |
| 773 | 18372 | exports["default"] = void 0; |
| 774 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 775 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 776 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 777 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 778 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 779 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 18373 | + | |
| 18374 | +var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 18375 | + | |
| 18376 | +__webpack_require__(/*! core-js/modules/es6.array.filter.js */ "../node_modules/core-js/modules/es6.array.filter.js"); | |
| 18377 | + | |
| 18378 | +__webpack_require__(/*! core-js/modules/es6.string.iterator.js */ "../node_modules/core-js/modules/es6.string.iterator.js"); | |
| 18379 | + | |
| 18380 | +__webpack_require__(/*! core-js/modules/es6.object.to-string.js */ "../node_modules/core-js/modules/es6.object.to-string.js"); | |
| 18381 | + | |
| 18382 | +__webpack_require__(/*! core-js/modules/es6.array.iterator.js */ "../node_modules/core-js/modules/es6.array.iterator.js"); | |
| 18383 | + | |
| 18384 | +__webpack_require__(/*! core-js/modules/web.dom.iterable.js */ "../node_modules/core-js/modules/web.dom.iterable.js"); | |
| 18385 | + | |
| 18386 | +var _isArray = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/array/is-array */ "../node_modules/@babel/runtime-corejs2/core-js/array/is-array.js")); | |
| 18387 | + | |
| 18388 | +var _promise = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/promise */ "../node_modules/@babel/runtime-corejs2/core-js/promise.js")); | |
| 18389 | + | |
| 18390 | +var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/typeof */ "../node_modules/@babel/runtime-corejs2/helpers/typeof.js")); | |
| 18391 | + | |
| 18392 | +var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/asyncToGenerator */ "../node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js")); | |
| 18393 | + | |
| 18394 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 18395 | + | |
| 18396 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 18397 | + | |
| 18398 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/assertThisInitialized */ "../node_modules/@babel/runtime-corejs2/helpers/assertThisInitialized.js")); | |
| 18399 | + | |
| 18400 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 18401 | + | |
| 18402 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 18403 | + | |
| 18404 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/defineProperty */ "../node_modules/@babel/runtime-corejs2/helpers/defineProperty.js")); | |
| 18405 | + | |
| 780 | 18406 | var _argsObject = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js")); |
| 781 | -var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); | |
| 782 | -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)); } | |
| 783 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 784 | -/** | |
| 785 | - * @typedef {import('../modules/component-base')} ComponentBase | |
| 786 | - */ | |
| 787 | -var CommandInfra = exports["default"] = /*#__PURE__*/function (_ArgsObject) { | |
| 18407 | + | |
| 18408 | +var CommandBase = /*#__PURE__*/function (_ArgsObject) { | |
| 18409 | + (0, _inherits2.default)(CommandBase, _ArgsObject); | |
| 18410 | + | |
| 18411 | + var _super = (0, _createSuper2.default)(CommandBase); | |
| 18412 | + | |
| 788 | 18413 | /** |
| 789 | 18414 | * Function constructor(). |
| 790 | 18415 | * |
| 791 | 18416 | * Create Commands Base. |
| 792 | 18417 | * |
| 793 | - * @param {{}} args | |
| 18418 | + * @param [args={}] | |
| 18419 | + * @param [commandsAPI={}] | |
| 794 | 18420 | */ |
| 795 | - function CommandInfra() { | |
| 18421 | + function CommandBase(args) { | |
| 796 | 18422 | var _this; |
| 797 | - var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 798 | - (0, _classCallCheck2.default)(this, CommandInfra); | |
| 799 | - _this = _callSuper(this, CommandInfra, [args]); | |
| 800 | - if (!_this.constructor.registerConfig) { | |
| 801 | - throw RangeError('Doing it wrong: Each command type should have `registerConfig`.'); | |
| 802 | - } | |
| 803 | 18423 | |
| 804 | - // Acknowledge self about which command it run. | |
| 805 | - _this.command = _this.constructor.getCommand(); | |
| 18424 | + var commandsAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $e.commands; | |
| 18425 | + (0, _classCallCheck2.default)(this, CommandBase); | |
| 18426 | + _this = _super.call(this, args); // Acknowledge self about which command it run. | |
| 806 | 18427 | |
| 807 | - // Assign instance of current component. | |
| 808 | - _this.component = _this.constructor.getComponent(); | |
| 18428 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "component", void 0); | |
| 18429 | + _this.currentCommand = commandsAPI.getCurrentLast(); // Assign instance of current component. | |
| 809 | 18430 | |
| 810 | - // Who ever need do something before without `super` the constructor can use `initialize` method. | |
| 811 | - _this.initialize(args); | |
| 18431 | + _this.component = commandsAPI.getComponent(_this.currentCommand); // Who ever need do something before without `super` the constructor can use `initialize` method. | |
| 812 | 18432 | |
| 813 | - // Refresh args, maybe the changed via `initialize`. | |
| 814 | - args = _this.args; | |
| 18433 | + _this.initialize(args); // Refresh args, maybe the changed via `initialize`. | |
| 815 | 18434 | |
| 816 | - // Validate args before run. | |
| 18435 | + | |
| 18436 | + args = _this.args; // Validate args before run. | |
| 18437 | + | |
| 817 | 18438 | _this.validateArgs(args); |
| 18439 | + | |
| 818 | 18440 | return _this; |
| 819 | 18441 | } |
| 820 | - | |
| 821 | 18442 | /** |
| 822 | - * Function initialize(). | |
| 18443 | + * Function requireContainer(). | |
| 823 | 18444 | * |
| 824 | - * Initialize command, called after construction. | |
| 18445 | + * Validate `arg.container` & `arg.containers`. | |
| 825 | 18446 | * |
| 826 | 18447 | * @param {{}} args |
| 18448 | + * | |
| 18449 | + * @throws {Error} | |
| 827 | 18450 | */ |
| 828 | - (0, _inherits2.default)(CommandInfra, _ArgsObject); | |
| 829 | - return (0, _createClass2.default)(CommandInfra, [{ | |
| 830 | - key: "currentCommand", | |
| 831 | - get: | |
| 18451 | + | |
| 18452 | + | |
| 18453 | + (0, _createClass2.default)(CommandBase, [{ | |
| 18454 | + key: "requireContainer", | |
| 18455 | + value: function requireContainer() { | |
| 18456 | + var _this2 = this; | |
| 18457 | + | |
| 18458 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args; | |
| 18459 | + | |
| 18460 | + if (!args.container && !args.containers) { | |
| 18461 | + throw Error('container or containers are required.'); | |
| 18462 | + } | |
| 18463 | + | |
| 18464 | + if (args.container && args.containers) { | |
| 18465 | + throw Error('container and containers cannot go together please select one of them.'); | |
| 18466 | + } | |
| 18467 | + | |
| 18468 | + var containers = args.containers || [args.container]; | |
| 18469 | + containers.forEach(function (container) { | |
| 18470 | + _this2.requireArgumentInstance('container', elementorModules.editor.Container, { | |
| 18471 | + container: container | |
| 18472 | + }); | |
| 18473 | + }); | |
| 18474 | + } | |
| 832 | 18475 | /** |
| 833 | - * @deprecated since 3.7.0, use `this.command` instead. | |
| 18476 | + * Function initialize(). | |
| 18477 | + * | |
| 18478 | + * Initialize command, called after construction. | |
| 18479 | + * | |
| 18480 | + * @param [args={}] | |
| 834 | 18481 | */ |
| 835 | - function get() { | |
| 836 | - _deprecation.default.deprecated('this.currentCommand', '3.7.0', 'this.command'); | |
| 837 | - return this.command; | |
| 838 | - } | |
| 18482 | + | |
| 839 | 18483 | }, { |
| 840 | 18484 | key: "initialize", |
| 841 | 18485 | value: function initialize() { |
| 842 | 18486 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| @@ -846,10 +18490,11 @@ | ||
| 846 | 18490 | * Function validateArgs(). |
| 847 | 18491 | * |
| 848 | 18492 | * Validate command arguments. |
| 849 | 18493 | * |
| 850 | - * @param {{}} args | |
| 18494 | + * @param [args={}] | |
| 851 | 18495 | */ |
| 18496 | + | |
| 852 | 18497 | }, { |
| 853 | 18498 | key: "validateArgs", |
| 854 | 18499 | value: function validateArgs() { |
| 855 | 18500 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| @@ -854,18 +18499,31 @@ | ||
| 854 | 18499 | value: function validateArgs() { |
| 855 | 18500 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 856 | 18501 | } // eslint-disable-line no-unused-vars |
| 857 | 18502 | |
| 858 | - // eslint-disable-next-line jsdoc/require-returns-check | |
| 859 | 18503 | /** |
| 18504 | + * Function isDataChanged(). | |
| 18505 | + * | |
| 18506 | + * Whether the editor needs to set change flag on/off. | |
| 18507 | + * | |
| 18508 | + * @returns {boolean} | |
| 18509 | + */ | |
| 18510 | + | |
| 18511 | + }, { | |
| 18512 | + key: "isDataChanged", | |
| 18513 | + value: function isDataChanged() { | |
| 18514 | + return false; | |
| 18515 | + } | |
| 18516 | + /** | |
| 860 | 18517 | * Function apply(). |
| 861 | 18518 | * |
| 862 | 18519 | * Do the actual command. |
| 863 | 18520 | * |
| 864 | - * @param {{}} args | |
| 18521 | + * @param [args={}] | |
| 865 | 18522 | * |
| 866 | - * @return {*} Command results. | |
| 18523 | + * @returns {*} | |
| 867 | 18524 | */ |
| 18525 | + | |
| 868 | 18526 | }, { |
| 869 | 18527 | key: "apply", |
| 870 | 18528 | value: function apply() { |
| 871 | 18529 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| @@ -871,78 +18529,209 @@ | ||
| 871 | 18529 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 872 | 18530 | // eslint-disable-line no-unused-vars |
| 873 | 18531 | elementorModules.ForceMethodImplementation(); |
| 874 | 18532 | } |
| 875 | - | |
| 876 | 18533 | /** |
| 877 | 18534 | * Function run(). |
| 878 | 18535 | * |
| 879 | 18536 | * Run command with history & hooks. |
| 880 | 18537 | * |
| 881 | - * @return {*} Command results. | |
| 18538 | + * @returns {*} | |
| 882 | 18539 | */ |
| 18540 | + | |
| 883 | 18541 | }, { |
| 884 | 18542 | key: "run", |
| 885 | 18543 | value: function run() { |
| 886 | - return this.apply(this.args); | |
| 18544 | + var result; // For UI Hooks. | |
| 18545 | + | |
| 18546 | + this.onBeforeRun(this.args); | |
| 18547 | + | |
| 18548 | + try { | |
| 18549 | + // For Data hooks. | |
| 18550 | + this.onBeforeApply(this.args); | |
| 18551 | + result = this.apply(this.args); | |
| 18552 | + } catch (e) { | |
| 18553 | + this.onCatchApply(e); // Catch 'Hook-Break' that comes from hooks base. | |
| 18554 | + | |
| 18555 | + if (e instanceof $e.modules.HookBreak) { | |
| 18556 | + // Bypass. | |
| 18557 | + return false; | |
| 18558 | + } | |
| 18559 | + } | |
| 18560 | + | |
| 18561 | + return this.runAfter(result); | |
| 887 | 18562 | } |
| 18563 | + }, { | |
| 18564 | + key: "runAfter", | |
| 18565 | + value: function runAfter(result) { | |
| 18566 | + var _this3 = this; | |
| 888 | 18567 | |
| 18568 | + var onAfter = function onAfter(_result) { | |
| 18569 | + // Run Data hooks. | |
| 18570 | + _this3.onAfterApply(_this3.args, _result); // TODO: Create Command-Base for Command-Document and apply it on after. | |
| 18571 | + | |
| 18572 | + | |
| 18573 | + if (_this3.isDataChanged()) { | |
| 18574 | + $e.internal('document/save/set-is-modified', { | |
| 18575 | + status: true | |
| 18576 | + }); | |
| 18577 | + } // For UI hooks. | |
| 18578 | + | |
| 18579 | + | |
| 18580 | + _this3.onAfterRun(_this3.args, _result); | |
| 18581 | + }, | |
| 18582 | + asyncOnAfter = /*#__PURE__*/function () { | |
| 18583 | + var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_result) { | |
| 18584 | + var results, promises; | |
| 18585 | + return _regenerator.default.wrap(function _callee$(_context) { | |
| 18586 | + while (1) { | |
| 18587 | + switch (_context.prev = _context.next) { | |
| 18588 | + case 0: | |
| 18589 | + // Run Data hooks. | |
| 18590 | + results = _this3.onAfterApply(_this3.args, _result), promises = (0, _isArray.default)(results) ? results.flat().filter(function (filtered) { | |
| 18591 | + return filtered instanceof _promise.default; | |
| 18592 | + }) : []; | |
| 18593 | + | |
| 18594 | + if (!promises.length) { | |
| 18595 | + _context.next = 4; | |
| 18596 | + break; | |
| 18597 | + } | |
| 18598 | + | |
| 18599 | + _context.next = 4; | |
| 18600 | + return _promise.default.all(promises); | |
| 18601 | + | |
| 18602 | + case 4: | |
| 18603 | + if (_this3.isDataChanged()) { | |
| 18604 | + // TODO: Create Command-Base for Command-Document and apply it on after. | |
| 18605 | + $e.internal('document/save/set-is-modified', { | |
| 18606 | + status: true | |
| 18607 | + }); | |
| 18608 | + } // For UI hooks. | |
| 18609 | + | |
| 18610 | + | |
| 18611 | + _this3.onAfterRun(_this3.args, _result); | |
| 18612 | + | |
| 18613 | + case 6: | |
| 18614 | + case "end": | |
| 18615 | + return _context.stop(); | |
| 18616 | + } | |
| 18617 | + } | |
| 18618 | + }, _callee); | |
| 18619 | + })); | |
| 18620 | + | |
| 18621 | + return function asyncOnAfter(_x) { | |
| 18622 | + return _ref.apply(this, arguments); | |
| 18623 | + }; | |
| 18624 | + }(); // TODO: Temp code determine if it's a jQuery deferred object. | |
| 18625 | + | |
| 18626 | + | |
| 18627 | + if (result && 'object' === (0, _typeof2.default)(result) && result.promise && result.then && result.fail) { | |
| 18628 | + result.fail(this.onCatchApply.bind(this)); | |
| 18629 | + result.done(onAfter); | |
| 18630 | + } else if (result instanceof _promise.default) { | |
| 18631 | + // Override initial result ( promise ) to await onAfter promises, first!. | |
| 18632 | + return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() { | |
| 18633 | + return _regenerator.default.wrap(function _callee2$(_context2) { | |
| 18634 | + while (1) { | |
| 18635 | + switch (_context2.prev = _context2.next) { | |
| 18636 | + case 0: | |
| 18637 | + _context2.next = 2; | |
| 18638 | + return result.catch(_this3.onCatchApply.bind(_this3)); | |
| 18639 | + | |
| 18640 | + case 2: | |
| 18641 | + _context2.next = 4; | |
| 18642 | + return result.then(function (_result) { | |
| 18643 | + return asyncOnAfter(_result); | |
| 18644 | + }); | |
| 18645 | + | |
| 18646 | + case 4: | |
| 18647 | + return _context2.abrupt("return", result); | |
| 18648 | + | |
| 18649 | + case 5: | |
| 18650 | + case "end": | |
| 18651 | + return _context2.stop(); | |
| 18652 | + } | |
| 18653 | + } | |
| 18654 | + }, _callee2); | |
| 18655 | + }))(); | |
| 18656 | + } else { | |
| 18657 | + onAfter(result); | |
| 18658 | + } | |
| 18659 | + | |
| 18660 | + return result; | |
| 18661 | + } | |
| 889 | 18662 | /** |
| 18663 | + * Run all the catch hooks. | |
| 18664 | + * | |
| 18665 | + * @param {Error} e | |
| 18666 | + */ | |
| 18667 | + | |
| 18668 | + }, { | |
| 18669 | + key: "runCatchHooks", | |
| 18670 | + value: function runCatchHooks(e) { | |
| 18671 | + $e.hooks.runDataCatch(this.currentCommand, this.args, e); | |
| 18672 | + $e.hooks.runUICatch(this.currentCommand, this.args, e); | |
| 18673 | + } | |
| 18674 | + /** | |
| 890 | 18675 | * Function onBeforeRun. |
| 891 | 18676 | * |
| 892 | 18677 | * Called before run(). |
| 893 | 18678 | * |
| 894 | - * @param {{}} args | |
| 18679 | + * @param [args={}] | |
| 895 | 18680 | */ |
| 18681 | + | |
| 896 | 18682 | }, { |
| 897 | 18683 | key: "onBeforeRun", |
| 898 | 18684 | value: function onBeforeRun() { |
| 899 | 18685 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 900 | - } // eslint-disable-line no-unused-vars | |
| 901 | - | |
| 18686 | + $e.hooks.runUIBefore(this.currentCommand, args); | |
| 18687 | + } | |
| 902 | 18688 | /** |
| 903 | 18689 | * Function onAfterRun. |
| 904 | 18690 | * |
| 905 | 18691 | * Called after run(). |
| 906 | 18692 | * |
| 907 | - * @param {{}} args | |
| 908 | - * @param {*} result | |
| 18693 | + * @param [args={}] | |
| 18694 | + * @param [result={*}] | |
| 909 | 18695 | */ |
| 18696 | + | |
| 910 | 18697 | }, { |
| 911 | 18698 | key: "onAfterRun", |
| 912 | 18699 | value: function onAfterRun() { |
| 913 | 18700 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 914 | 18701 | var result = arguments.length > 1 ? arguments[1] : undefined; |
| 915 | - } // eslint-disable-line no-unused-vars | |
| 916 | - | |
| 18702 | + $e.hooks.runUIAfter(this.currentCommand, args, result); | |
| 18703 | + } | |
| 917 | 18704 | /** |
| 918 | 18705 | * Function onBeforeApply. |
| 919 | 18706 | * |
| 920 | 18707 | * Called before apply(). |
| 921 | 18708 | * |
| 922 | - * @param {{}} args | |
| 18709 | + * @param [args={}] | |
| 923 | 18710 | */ |
| 18711 | + | |
| 924 | 18712 | }, { |
| 925 | 18713 | key: "onBeforeApply", |
| 926 | 18714 | value: function onBeforeApply() { |
| 927 | 18715 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 928 | - } // eslint-disable-line no-unused-vars | |
| 929 | - | |
| 18716 | + $e.hooks.runDataDependency(this.currentCommand, args); | |
| 18717 | + } | |
| 930 | 18718 | /** |
| 931 | 18719 | * Function onAfterApply. |
| 932 | 18720 | * |
| 933 | 18721 | * Called after apply(). |
| 934 | 18722 | * |
| 935 | - * @param {{}} args | |
| 936 | - * @param {*} result | |
| 18723 | + * @param [args={}] | |
| 18724 | + * @param [result={*}] | |
| 937 | 18725 | */ |
| 18726 | + | |
| 938 | 18727 | }, { |
| 939 | 18728 | key: "onAfterApply", |
| 940 | 18729 | value: function onAfterApply() { |
| 941 | 18730 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 942 | 18731 | var result = arguments.length > 1 ? arguments[1] : undefined; |
| 943 | - } // eslint-disable-line no-unused-vars | |
| 944 | - | |
| 18732 | + return $e.hooks.runDataAfter(this.currentCommand, args, result); | |
| 18733 | + } | |
| 945 | 18734 | /** |
| 946 | 18735 | * Function onCatchApply. |
| 947 | 18736 | * |
| 948 | 18737 | * Called after apply() failed. |
| @@ -948,112 +18737,1009 @@ | ||
| 948 | 18737 | * Called after apply() failed. |
| 949 | 18738 | * |
| 950 | 18739 | * @param {Error} e |
| 951 | 18740 | */ |
| 18741 | + | |
| 952 | 18742 | }, { |
| 953 | 18743 | key: "onCatchApply", |
| 954 | - value: function onCatchApply(e) {} // eslint-disable-line no-unused-vars | |
| 18744 | + value: function onCatchApply(e) { | |
| 18745 | + this.runCatchHooks(e); | |
| 18746 | + elementorCommon.helpers.consoleError(e); | |
| 18747 | + } | |
| 955 | 18748 | }], [{ |
| 956 | 18749 | key: "getInstanceType", |
| 957 | 18750 | value: function getInstanceType() { |
| 958 | - return 'CommandInfra'; | |
| 18751 | + return 'CommandBase'; | |
| 959 | 18752 | } |
| 960 | - | |
| 961 | 18753 | /** |
| 962 | 18754 | * Get info of command. |
| 963 | 18755 | * |
| 964 | - * @return {Object} Extra information about the command. | |
| 18756 | + * Use to provide 'extra' information about the command. | |
| 18757 | + * | |
| 18758 | + * @returns {Object} | |
| 965 | 18759 | */ |
| 18760 | + | |
| 966 | 18761 | }, { |
| 967 | 18762 | key: "getInfo", |
| 968 | 18763 | value: function getInfo() { |
| 969 | 18764 | return {}; |
| 970 | 18765 | } |
| 18766 | + /** | |
| 18767 | + * Current component. | |
| 18768 | + * | |
| 18769 | + * @type {Component} | |
| 18770 | + */ | |
| 971 | 18771 | |
| 18772 | + }]); | |
| 18773 | + return CommandBase; | |
| 18774 | +}(_argsObject.default); | |
| 18775 | + | |
| 18776 | +exports["default"] = CommandBase; | |
| 18777 | + | |
| 18778 | +/***/ }), | |
| 18779 | + | |
| 18780 | +/***/ "../core/common/assets/js/api/modules/command-data.js": | |
| 18781 | +/*!************************************************************!*\ | |
| 18782 | + !*** ../core/common/assets/js/api/modules/command-data.js ***! | |
| 18783 | + \************************************************************/ | |
| 18784 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 18785 | + | |
| 18786 | +"use strict"; | |
| 18787 | + | |
| 18788 | + | |
| 18789 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 18790 | + | |
| 18791 | +var _interopRequireWildcard = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireWildcard */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js"); | |
| 18792 | + | |
| 18793 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 18794 | + | |
| 18795 | +_Object$defineProperty(exports, "__esModule", { | |
| 18796 | + value: true | |
| 18797 | +}); | |
| 18798 | + | |
| 18799 | +exports["default"] = void 0; | |
| 18800 | + | |
| 18801 | +__webpack_require__(/*! core-js/modules/es6.array.find.js */ "../node_modules/core-js/modules/es6.array.find.js"); | |
| 18802 | + | |
| 18803 | +var _assign = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/assign */ "../node_modules/@babel/runtime-corejs2/core-js/object/assign.js")); | |
| 18804 | + | |
| 18805 | +var _values = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "../node_modules/@babel/runtime-corejs2/core-js/object/values.js")); | |
| 18806 | + | |
| 18807 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 18808 | + | |
| 18809 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 18810 | + | |
| 18811 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/assertThisInitialized */ "../node_modules/@babel/runtime-corejs2/helpers/assertThisInitialized.js")); | |
| 18812 | + | |
| 18813 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 18814 | + | |
| 18815 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 18816 | + | |
| 18817 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/defineProperty */ "../node_modules/@babel/runtime-corejs2/helpers/defineProperty.js")); | |
| 18818 | + | |
| 18819 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! ./command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 18820 | + | |
| 18821 | +var errors = _interopRequireWildcard(__webpack_require__(/*! ../core/data/errors/ */ "../core/common/assets/js/api/core/data/errors/index.js")); | |
| 18822 | + | |
| 18823 | +var CommandData = /*#__PURE__*/function (_CommandBase) { | |
| 18824 | + (0, _inherits2.default)(CommandData, _CommandBase); | |
| 18825 | + | |
| 18826 | + var _super = (0, _createSuper2.default)(CommandData); | |
| 18827 | + | |
| 18828 | + function CommandData(args) { | |
| 18829 | + var _this$args$options; | |
| 18830 | + | |
| 18831 | + var _this; | |
| 18832 | + | |
| 18833 | + var commandsAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $e.data; | |
| 18834 | + (0, _classCallCheck2.default)(this, CommandData); | |
| 18835 | + _this = _super.call(this, args, commandsAPI); | |
| 18836 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "data", void 0); | |
| 18837 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "type", void 0); | |
| 18838 | + | |
| 18839 | + if ((_this$args$options = _this.args.options) !== null && _this$args$options !== void 0 && _this$args$options.type) { | |
| 18840 | + _this.type = _this.args.options.type; | |
| 18841 | + } | |
| 18842 | + | |
| 18843 | + return _this; | |
| 18844 | + } | |
| 18845 | + /** | |
| 18846 | + * Function getEndpointFormat(). | |
| 18847 | + * | |
| 18848 | + * @returns {(null|string)} | |
| 18849 | + */ | |
| 18850 | + | |
| 18851 | + | |
| 18852 | + (0, _createClass2.default)(CommandData, [{ | |
| 18853 | + key: "getApplyMethods", | |
| 18854 | + value: | |
| 972 | 18855 | /** |
| 973 | - * @return {string} Self command name. | |
| 18856 | + * @param {DataTypes} type | |
| 18857 | + * | |
| 18858 | + * @returns {boolean|{before: (function(*=): {}), after: (function({}, *=): {})}} | |
| 974 | 18859 | */ |
| 18860 | + function getApplyMethods() { | |
| 18861 | + var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.type; | |
| 18862 | + var before, after; | |
| 18863 | + | |
| 18864 | + switch (type) { | |
| 18865 | + case 'create': | |
| 18866 | + before = this.applyBeforeCreate; | |
| 18867 | + after = this.applyAfterCreate; | |
| 18868 | + break; | |
| 18869 | + | |
| 18870 | + case 'delete': | |
| 18871 | + before = this.applyBeforeDelete; | |
| 18872 | + after = this.applyAfterDelete; | |
| 18873 | + break; | |
| 18874 | + | |
| 18875 | + case 'get': | |
| 18876 | + before = this.applyBeforeGet; | |
| 18877 | + after = this.applyAfterGet; | |
| 18878 | + break; | |
| 18879 | + | |
| 18880 | + case 'update': | |
| 18881 | + before = this.applyBeforeUpdate; | |
| 18882 | + after = this.applyAfterUpdate; | |
| 18883 | + break; | |
| 18884 | + | |
| 18885 | + case 'options': | |
| 18886 | + before = this.applyBeforeOptions; | |
| 18887 | + after = this.applyAfterOptions; | |
| 18888 | + break; | |
| 18889 | + | |
| 18890 | + default: | |
| 18891 | + return false; | |
| 18892 | + } | |
| 18893 | + | |
| 18894 | + return { | |
| 18895 | + before: before.bind(this), | |
| 18896 | + after: after.bind(this) | |
| 18897 | + }; | |
| 18898 | + } | |
| 18899 | + /** | |
| 18900 | + * Function getRequestData(). | |
| 18901 | + * | |
| 18902 | + * @returns {RequestData} | |
| 18903 | + */ | |
| 18904 | + | |
| 975 | 18905 | }, { |
| 976 | - key: "getCommand", | |
| 977 | - value: function getCommand() { | |
| 978 | - return this.registerConfig.command; | |
| 18906 | + key: "getRequestData", | |
| 18907 | + value: function getRequestData() { | |
| 18908 | + return { | |
| 18909 | + component: this.component, | |
| 18910 | + command: this.currentCommand, | |
| 18911 | + type: this.type, | |
| 18912 | + args: this.args, | |
| 18913 | + timestamp: new Date().getTime(), | |
| 18914 | + endpoint: $e.data.commandToEndpoint(this.currentCommand, elementorCommon.helpers.cloneObject(this.args), this.constructor.getEndpointFormat()) | |
| 18915 | + }; | |
| 979 | 18916 | } |
| 18917 | + }, { | |
| 18918 | + key: "apply", | |
| 18919 | + value: function apply() { | |
| 18920 | + var _this2 = this; | |
| 980 | 18921 | |
| 18922 | + var applyMethods = this.getApplyMethods(); // Run 'before' method. | |
| 18923 | + | |
| 18924 | + this.args = applyMethods.before(this.args); | |
| 18925 | + var requestData = this.getRequestData(); | |
| 18926 | + return $e.data.fetch(requestData).then(function (data) { | |
| 18927 | + _this2.data = data; // Run 'after' method. | |
| 18928 | + | |
| 18929 | + _this2.data = applyMethods.after(data, _this2.args); | |
| 18930 | + _this2.data = { | |
| 18931 | + data: _this2.data | |
| 18932 | + }; // Append requestData. | |
| 18933 | + | |
| 18934 | + _this2.data = (0, _assign.default)({ | |
| 18935 | + __requestData__: requestData | |
| 18936 | + }, _this2.data); | |
| 18937 | + return _this2.data; | |
| 18938 | + }); | |
| 18939 | + } | |
| 981 | 18940 | /** |
| 982 | - * @return {ComponentBase} Self component | |
| 18941 | + * @param [args={}] | |
| 18942 | + * @returns {{}} filtered args | |
| 983 | 18943 | */ |
| 18944 | + | |
| 984 | 18945 | }, { |
| 985 | - key: "getComponent", | |
| 986 | - value: function getComponent() { | |
| 987 | - return this.registerConfig.component; | |
| 18946 | + key: "applyBeforeCreate", | |
| 18947 | + value: function applyBeforeCreate() { | |
| 18948 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 18949 | + return args; | |
| 988 | 18950 | } |
| 18951 | + /** | |
| 18952 | + * @param {{}} data | |
| 18953 | + * @param [args={}] | |
| 18954 | + * @returns {{}} filtered result | |
| 18955 | + */ | |
| 18956 | + | |
| 989 | 18957 | }, { |
| 990 | - key: "setRegisterConfig", | |
| 991 | - value: function setRegisterConfig(config) { | |
| 992 | - this.registerConfig = Object.freeze(config); | |
| 18958 | + key: "applyAfterCreate", | |
| 18959 | + value: function applyAfterCreate(data) { | |
| 18960 | + var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | |
| 18961 | + // eslint-disable-line no-unused-vars | |
| 18962 | + return data; | |
| 993 | 18963 | } |
| 18964 | + /** | |
| 18965 | + * @param [args={}] | |
| 18966 | + * @returns {{}} filtered args | |
| 18967 | + */ | |
| 18968 | + | |
| 18969 | + }, { | |
| 18970 | + key: "applyBeforeDelete", | |
| 18971 | + value: function applyBeforeDelete() { | |
| 18972 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 18973 | + return args; | |
| 18974 | + } | |
| 18975 | + /** | |
| 18976 | + * @param {{}} data | |
| 18977 | + * @param [args={}] | |
| 18978 | + * @returns {{}} filtered result | |
| 18979 | + */ | |
| 18980 | + | |
| 18981 | + }, { | |
| 18982 | + key: "applyAfterDelete", | |
| 18983 | + value: function applyAfterDelete(data) { | |
| 18984 | + var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | |
| 18985 | + // eslint-disable-line no-unused-vars | |
| 18986 | + return data; | |
| 18987 | + } | |
| 18988 | + /** | |
| 18989 | + * @param [args={}] | |
| 18990 | + * @returns {{}} filtered args | |
| 18991 | + */ | |
| 18992 | + | |
| 18993 | + }, { | |
| 18994 | + key: "applyBeforeGet", | |
| 18995 | + value: function applyBeforeGet() { | |
| 18996 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 18997 | + return args; | |
| 18998 | + } | |
| 18999 | + /** | |
| 19000 | + * @param {{}} data | |
| 19001 | + * @param [args={}] | |
| 19002 | + * @returns {{}} filtered result | |
| 19003 | + */ | |
| 19004 | + | |
| 19005 | + }, { | |
| 19006 | + key: "applyAfterGet", | |
| 19007 | + value: function applyAfterGet(data) { | |
| 19008 | + var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | |
| 19009 | + // eslint-disable-line no-unused-vars | |
| 19010 | + return data; | |
| 19011 | + } | |
| 19012 | + /** | |
| 19013 | + * @param [args={}] | |
| 19014 | + * @returns {{}} filtered args | |
| 19015 | + */ | |
| 19016 | + | |
| 19017 | + }, { | |
| 19018 | + key: "applyBeforeUpdate", | |
| 19019 | + value: function applyBeforeUpdate() { | |
| 19020 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 19021 | + return args; | |
| 19022 | + } | |
| 19023 | + /** | |
| 19024 | + * @param {{}} data | |
| 19025 | + * @param [args={}] | |
| 19026 | + * @returns {{}} filtered result | |
| 19027 | + */ | |
| 19028 | + | |
| 19029 | + }, { | |
| 19030 | + key: "applyAfterUpdate", | |
| 19031 | + value: function applyAfterUpdate(data) { | |
| 19032 | + var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | |
| 19033 | + // eslint-disable-line no-unused-vars | |
| 19034 | + return data; | |
| 19035 | + } | |
| 19036 | + /** | |
| 19037 | + * @param [args={}] | |
| 19038 | + * @returns {{}} filtered args | |
| 19039 | + */ | |
| 19040 | + | |
| 19041 | + }, { | |
| 19042 | + key: "applyBeforeOptions", | |
| 19043 | + value: function applyBeforeOptions() { | |
| 19044 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 19045 | + return args; | |
| 19046 | + } | |
| 19047 | + /** | |
| 19048 | + * @param {{}} data | |
| 19049 | + * @param [args={}] | |
| 19050 | + * @returns {{}} filtered result | |
| 19051 | + */ | |
| 19052 | + | |
| 19053 | + }, { | |
| 19054 | + key: "applyAfterOptions", | |
| 19055 | + value: function applyAfterOptions(data) { | |
| 19056 | + var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | |
| 19057 | + // eslint-disable-line no-unused-vars | |
| 19058 | + return data; | |
| 19059 | + } | |
| 19060 | + /** | |
| 19061 | + * @param {BaseError} e | |
| 19062 | + */ | |
| 19063 | + | |
| 19064 | + }, { | |
| 19065 | + key: "applyAfterCatch", | |
| 19066 | + value: function applyAfterCatch(e) { | |
| 19067 | + e.notify(); | |
| 19068 | + } | |
| 19069 | + }, { | |
| 19070 | + key: "onCatchApply", | |
| 19071 | + value: function onCatchApply(e) { | |
| 19072 | + var _e, _e$data; | |
| 19073 | + | |
| 19074 | + // TODO: If the errors that returns from the server is consistent remove the '?' from 'e' | |
| 19075 | + var httpErrorCode = ((_e = e) === null || _e === void 0 ? void 0 : (_e$data = _e.data) === null || _e$data === void 0 ? void 0 : _e$data.status) || 501; | |
| 19076 | + var dataError = (0, _values.default)(errors).find(function (error) { | |
| 19077 | + return error.getHTTPErrorCode() === httpErrorCode; | |
| 19078 | + }); | |
| 19079 | + | |
| 19080 | + if (!dataError) { | |
| 19081 | + dataError = errors.DefaultError; | |
| 19082 | + } | |
| 19083 | + | |
| 19084 | + e = dataError.create(e.message, e.code, e.data || []); | |
| 19085 | + this.runCatchHooks(e); | |
| 19086 | + this.applyAfterCatch(e); | |
| 19087 | + } | |
| 19088 | + }], [{ | |
| 19089 | + key: "getInstanceType", | |
| 19090 | + value: | |
| 19091 | + /** | |
| 19092 | + * Data returned from remote. | |
| 19093 | + * | |
| 19094 | + * @type {*} | |
| 19095 | + */ | |
| 19096 | + | |
| 19097 | + /** | |
| 19098 | + * Fetch type. | |
| 19099 | + * | |
| 19100 | + * @type {DataTypes} | |
| 19101 | + */ | |
| 19102 | + function getInstanceType() { | |
| 19103 | + return 'CommandData'; | |
| 19104 | + } | |
| 19105 | + }, { | |
| 19106 | + key: "getEndpointFormat", | |
| 19107 | + value: function getEndpointFormat() { | |
| 19108 | + return null; | |
| 19109 | + } | |
| 994 | 19110 | }]); |
| 995 | -}(_argsObject.default); | |
| 996 | -/** | |
| 997 | - * @type {Object} | |
| 998 | - */ | |
| 999 | -(0, _defineProperty2.default)(CommandInfra, "registerConfig", null); | |
| 19111 | + return CommandData; | |
| 19112 | +}(_commandBase.default); | |
| 1000 | 19113 | |
| 19114 | +exports["default"] = CommandData; | |
| 19115 | + | |
| 1001 | 19116 | /***/ }), |
| 1002 | 19117 | |
| 1003 | -/***/ "../modules/web-cli/assets/js/utils/console.js": | |
| 1004 | -/*!*****************************************************!*\ | |
| 1005 | - !*** ../modules/web-cli/assets/js/utils/console.js ***! | |
| 1006 | - \*****************************************************/ | |
| 19118 | +/***/ "../core/common/assets/js/api/modules/command-internal-base.js": | |
| 19119 | +/*!*********************************************************************!*\ | |
| 19120 | + !*** ../core/common/assets/js/api/modules/command-internal-base.js ***! | |
| 19121 | + \*********************************************************************/ | |
| 1007 | 19122 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 1008 | 19123 | |
| 1009 | 19124 | "use strict"; |
| 1010 | 19125 | |
| 1011 | 19126 | |
| 1012 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1013 | -Object.defineProperty(exports, "__esModule", ({ | |
| 19127 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 19128 | + | |
| 19129 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 19130 | + | |
| 19131 | +_Object$defineProperty(exports, "__esModule", { | |
| 1014 | 19132 | value: true |
| 1015 | -})); | |
| 19133 | +}); | |
| 19134 | + | |
| 1016 | 19135 | exports["default"] = void 0; |
| 1017 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1018 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1019 | -var Console = exports["default"] = /*#__PURE__*/function () { | |
| 1020 | - function Console() { | |
| 1021 | - (0, _classCallCheck2.default)(this, Console); | |
| 19136 | + | |
| 19137 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 19138 | + | |
| 19139 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 19140 | + | |
| 19141 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 19142 | + | |
| 19143 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 19144 | + | |
| 19145 | +var _commandBase = _interopRequireDefault(__webpack_require__(/*! ./command-base */ "../core/common/assets/js/api/modules/command-base.js")); | |
| 19146 | + | |
| 19147 | +var CommandInternalBase = /*#__PURE__*/function (_CommandBase) { | |
| 19148 | + (0, _inherits2.default)(CommandInternalBase, _CommandBase); | |
| 19149 | + | |
| 19150 | + var _super = (0, _createSuper2.default)(CommandInternalBase); | |
| 19151 | + | |
| 19152 | + function CommandInternalBase(args) { | |
| 19153 | + var commandsAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $e.commandsInternal; | |
| 19154 | + (0, _classCallCheck2.default)(this, CommandInternalBase); | |
| 19155 | + return _super.call(this, args, commandsAPI); | |
| 1022 | 19156 | } |
| 1023 | - return (0, _createClass2.default)(Console, null, [{ | |
| 1024 | - key: "error", | |
| 1025 | - value: function error(message) { | |
| 1026 | - // Show an error if devTools is available. | |
| 1027 | - if ($e.devTools) { | |
| 1028 | - $e.devTools.log.error(message); | |
| 19157 | + | |
| 19158 | + (0, _createClass2.default)(CommandInternalBase, null, [{ | |
| 19159 | + key: "getInstanceType", | |
| 19160 | + value: function getInstanceType() { | |
| 19161 | + return 'CommandInternalBase'; | |
| 19162 | + } | |
| 19163 | + }]); | |
| 19164 | + return CommandInternalBase; | |
| 19165 | +}(_commandBase.default); | |
| 19166 | + | |
| 19167 | +exports["default"] = CommandInternalBase; | |
| 19168 | + | |
| 19169 | +/***/ }), | |
| 19170 | + | |
| 19171 | +/***/ "../core/common/assets/js/api/modules/component-base.js": | |
| 19172 | +/*!**************************************************************!*\ | |
| 19173 | + !*** ../core/common/assets/js/api/modules/component-base.js ***! | |
| 19174 | + \**************************************************************/ | |
| 19175 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 19176 | + | |
| 19177 | +"use strict"; | |
| 19178 | + | |
| 19179 | + | |
| 19180 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 19181 | + | |
| 19182 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 19183 | + | |
| 19184 | +_Object$defineProperty(exports, "__esModule", { | |
| 19185 | + value: true | |
| 19186 | +}); | |
| 19187 | + | |
| 19188 | +exports["default"] = void 0; | |
| 19189 | + | |
| 19190 | +__webpack_require__(/*! core-js/modules/es6.regexp.split.js */ "../node_modules/core-js/modules/es6.regexp.split.js"); | |
| 19191 | + | |
| 19192 | +__webpack_require__(/*! core-js/modules/es6.array.filter.js */ "../node_modules/core-js/modules/es6.array.filter.js"); | |
| 19193 | + | |
| 19194 | +__webpack_require__(/*! core-js/modules/es6.regexp.replace.js */ "../node_modules/core-js/modules/es6.regexp.replace.js"); | |
| 19195 | + | |
| 19196 | +var _entries = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/entries */ "../node_modules/@babel/runtime-corejs2/core-js/object/entries.js")); | |
| 19197 | + | |
| 19198 | +var _values = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/values */ "../node_modules/@babel/runtime-corejs2/core-js/object/values.js")); | |
| 19199 | + | |
| 19200 | +var _keys = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js")); | |
| 19201 | + | |
| 19202 | +var _objectSpread2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/objectSpread2 */ "../node_modules/@babel/runtime-corejs2/helpers/objectSpread2.js")); | |
| 19203 | + | |
| 19204 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/slicedToArray */ "../node_modules/@babel/runtime-corejs2/helpers/slicedToArray.js")); | |
| 19205 | + | |
| 19206 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 19207 | + | |
| 19208 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 19209 | + | |
| 19210 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 19211 | + | |
| 19212 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 19213 | + | |
| 19214 | +var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js"); | |
| 19215 | + | |
| 19216 | +var ComponentBase = /*#__PURE__*/function (_elementorModules$Mod) { | |
| 19217 | + (0, _inherits2.default)(ComponentBase, _elementorModules$Mod); | |
| 19218 | + | |
| 19219 | + var _super = (0, _createSuper2.default)(ComponentBase); | |
| 19220 | + | |
| 19221 | + function ComponentBase() { | |
| 19222 | + (0, _classCallCheck2.default)(this, ComponentBase); | |
| 19223 | + return _super.apply(this, arguments); | |
| 19224 | + } | |
| 19225 | + | |
| 19226 | + (0, _createClass2.default)(ComponentBase, [{ | |
| 19227 | + key: "__construct", | |
| 19228 | + value: function __construct() { | |
| 19229 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 19230 | + | |
| 19231 | + if (args.manager) { | |
| 19232 | + this.manager = args.manager; | |
| 1029 | 19233 | } |
| 1030 | 19234 | |
| 1031 | - // If not a 'Hook-Break' then show error. | |
| 1032 | - if (!(message instanceof $e.modules.HookBreak)) { | |
| 1033 | - // eslint-disable-next-line no-console | |
| 1034 | - console.error(message); | |
| 19235 | + this.commands = this.defaultCommands(); | |
| 19236 | + this.commandsInternal = this.defaultCommandsInternal(); | |
| 19237 | + this.hooks = this.defaultHooks(); | |
| 19238 | + this.routes = this.defaultRoutes(); | |
| 19239 | + this.tabs = this.defaultTabs(); | |
| 19240 | + this.shortcuts = this.defaultShortcuts(); | |
| 19241 | + this.utils = this.defaultUtils(); | |
| 19242 | + this.data = this.defaultData(); | |
| 19243 | + this.uiStates = this.defaultUiStates(); | |
| 19244 | + this.states = this.defaultStates(); | |
| 19245 | + this.defaultRoute = ''; | |
| 19246 | + this.currentTab = ''; | |
| 19247 | + } | |
| 19248 | + }, { | |
| 19249 | + key: "registerAPI", | |
| 19250 | + value: function registerAPI() { | |
| 19251 | + var _this = this; | |
| 19252 | + | |
| 19253 | + (0, _entries.default)(this.getTabs()).forEach(function (tab) { | |
| 19254 | + return _this.registerTabRoute(tab[0]); | |
| 19255 | + }); | |
| 19256 | + (0, _entries.default)(this.getRoutes()).forEach(function (_ref) { | |
| 19257 | + var _ref2 = (0, _slicedToArray2.default)(_ref, 2), | |
| 19258 | + route = _ref2[0], | |
| 19259 | + callback = _ref2[1]; | |
| 19260 | + | |
| 19261 | + return _this.registerRoute(route, callback); | |
| 19262 | + }); | |
| 19263 | + (0, _entries.default)(this.getCommands()).forEach(function (_ref3) { | |
| 19264 | + var _ref4 = (0, _slicedToArray2.default)(_ref3, 2), | |
| 19265 | + command = _ref4[0], | |
| 19266 | + callback = _ref4[1]; | |
| 19267 | + | |
| 19268 | + return _this.registerCommand(command, callback); | |
| 19269 | + }); | |
| 19270 | + (0, _entries.default)(this.getCommandsInternal()).forEach(function (_ref5) { | |
| 19271 | + var _ref6 = (0, _slicedToArray2.default)(_ref5, 2), | |
| 19272 | + command = _ref6[0], | |
| 19273 | + callback = _ref6[1]; | |
| 19274 | + | |
| 19275 | + return _this.registerCommandInternal(command, callback); | |
| 19276 | + }); | |
| 19277 | + (0, _values.default)(this.getHooks()).forEach(function (instance) { | |
| 19278 | + return _this.registerHook(instance); | |
| 19279 | + }); | |
| 19280 | + (0, _entries.default)(this.getData()).forEach(function (_ref7) { | |
| 19281 | + var _ref8 = (0, _slicedToArray2.default)(_ref7, 2), | |
| 19282 | + command = _ref8[0], | |
| 19283 | + callback = _ref8[1]; | |
| 19284 | + | |
| 19285 | + return _this.registerData(command, callback); | |
| 19286 | + }); | |
| 19287 | + (0, _values.default)(this.getUiStates()).forEach(function (instance) { | |
| 19288 | + return _this.registerUiState(instance); | |
| 19289 | + }); | |
| 19290 | + (0, _entries.default)(this.getStates()).forEach(function (_ref9) { | |
| 19291 | + var _ref10 = (0, _slicedToArray2.default)(_ref9, 2), | |
| 19292 | + id = _ref10[0], | |
| 19293 | + state = _ref10[1]; | |
| 19294 | + | |
| 19295 | + return _this.registerState(id, state); | |
| 19296 | + }); | |
| 19297 | + } | |
| 19298 | + /** | |
| 19299 | + * @returns {string} | |
| 19300 | + */ | |
| 19301 | + | |
| 19302 | + }, { | |
| 19303 | + key: "getNamespace", | |
| 19304 | + value: function getNamespace() { | |
| 19305 | + elementorModules.ForceMethodImplementation(); | |
| 19306 | + } | |
| 19307 | + }, { | |
| 19308 | + key: "getRootContainer", | |
| 19309 | + value: function getRootContainer() { | |
| 19310 | + var parts = this.getNamespace().split('/'); | |
| 19311 | + return parts[0]; | |
| 19312 | + } | |
| 19313 | + }, { | |
| 19314 | + key: "defaultTabs", | |
| 19315 | + value: function defaultTabs() { | |
| 19316 | + return {}; | |
| 19317 | + } | |
| 19318 | + }, { | |
| 19319 | + key: "defaultRoutes", | |
| 19320 | + value: function defaultRoutes() { | |
| 19321 | + return {}; | |
| 19322 | + } | |
| 19323 | + }, { | |
| 19324 | + key: "defaultCommands", | |
| 19325 | + value: function defaultCommands() { | |
| 19326 | + return {}; | |
| 19327 | + } | |
| 19328 | + }, { | |
| 19329 | + key: "defaultCommandsInternal", | |
| 19330 | + value: function defaultCommandsInternal() { | |
| 19331 | + return {}; | |
| 19332 | + } | |
| 19333 | + }, { | |
| 19334 | + key: "defaultHooks", | |
| 19335 | + value: function defaultHooks() { | |
| 19336 | + return {}; | |
| 19337 | + } | |
| 19338 | + /** | |
| 19339 | + * Get the component's default UI states. | |
| 19340 | + * | |
| 19341 | + * @return {Object} | |
| 19342 | + */ | |
| 19343 | + | |
| 19344 | + }, { | |
| 19345 | + key: "defaultUiStates", | |
| 19346 | + value: function defaultUiStates() { | |
| 19347 | + return {}; | |
| 19348 | + } | |
| 19349 | + /** | |
| 19350 | + * Get the component's Redux slice settings. | |
| 19351 | + * | |
| 19352 | + * @return {Object} | |
| 19353 | + */ | |
| 19354 | + | |
| 19355 | + }, { | |
| 19356 | + key: "defaultStates", | |
| 19357 | + value: function defaultStates() { | |
| 19358 | + return {}; | |
| 19359 | + } | |
| 19360 | + }, { | |
| 19361 | + key: "defaultShortcuts", | |
| 19362 | + value: function defaultShortcuts() { | |
| 19363 | + return {}; | |
| 19364 | + } | |
| 19365 | + }, { | |
| 19366 | + key: "defaultUtils", | |
| 19367 | + value: function defaultUtils() { | |
| 19368 | + return {}; | |
| 19369 | + } | |
| 19370 | + }, { | |
| 19371 | + key: "defaultData", | |
| 19372 | + value: function defaultData() { | |
| 19373 | + return {}; | |
| 19374 | + } | |
| 19375 | + }, { | |
| 19376 | + key: "getCommands", | |
| 19377 | + value: function getCommands() { | |
| 19378 | + return this.commands; | |
| 19379 | + } | |
| 19380 | + }, { | |
| 19381 | + key: "getCommandsInternal", | |
| 19382 | + value: function getCommandsInternal() { | |
| 19383 | + return this.commandsInternal; | |
| 19384 | + } | |
| 19385 | + }, { | |
| 19386 | + key: "getHooks", | |
| 19387 | + value: function getHooks() { | |
| 19388 | + return this.hooks; | |
| 19389 | + } | |
| 19390 | + /** | |
| 19391 | + * Retrieve the component's UI states. | |
| 19392 | + * | |
| 19393 | + * @return {Object} | |
| 19394 | + */ | |
| 19395 | + | |
| 19396 | + }, { | |
| 19397 | + key: "getUiStates", | |
| 19398 | + value: function getUiStates() { | |
| 19399 | + return this.uiStates; | |
| 19400 | + } | |
| 19401 | + /** | |
| 19402 | + * Retrieve the component's Redux Slice. | |
| 19403 | + * | |
| 19404 | + * @return {Object} | |
| 19405 | + */ | |
| 19406 | + | |
| 19407 | + }, { | |
| 19408 | + key: "getStates", | |
| 19409 | + value: function getStates() { | |
| 19410 | + return this.states; | |
| 19411 | + } | |
| 19412 | + }, { | |
| 19413 | + key: "getRoutes", | |
| 19414 | + value: function getRoutes() { | |
| 19415 | + return this.routes; | |
| 19416 | + } | |
| 19417 | + }, { | |
| 19418 | + key: "getTabs", | |
| 19419 | + value: function getTabs() { | |
| 19420 | + return this.tabs; | |
| 19421 | + } | |
| 19422 | + }, { | |
| 19423 | + key: "getShortcuts", | |
| 19424 | + value: function getShortcuts() { | |
| 19425 | + return this.shortcuts; | |
| 19426 | + } | |
| 19427 | + }, { | |
| 19428 | + key: "getData", | |
| 19429 | + value: function getData() { | |
| 19430 | + return this.data; | |
| 19431 | + } | |
| 19432 | + }, { | |
| 19433 | + key: "registerCommand", | |
| 19434 | + value: function registerCommand(command, callback) { | |
| 19435 | + $e.commands.register(this, command, callback); | |
| 19436 | + } | |
| 19437 | + /** | |
| 19438 | + * @param {HookBase} instance | |
| 19439 | + */ | |
| 19440 | + | |
| 19441 | + }, { | |
| 19442 | + key: "registerHook", | |
| 19443 | + value: function registerHook(instance) { | |
| 19444 | + return instance.register(); | |
| 19445 | + } | |
| 19446 | + /** | |
| 19447 | + * Register a UI state. | |
| 19448 | + * | |
| 19449 | + * @param {UiStateBase} instance - UI state instance. | |
| 19450 | + * | |
| 19451 | + * @return {void} | |
| 19452 | + */ | |
| 19453 | + | |
| 19454 | + }, { | |
| 19455 | + key: "registerUiState", | |
| 19456 | + value: function registerUiState(instance) { | |
| 19457 | + $e.uiStates.register(instance); | |
| 19458 | + } | |
| 19459 | + /** | |
| 19460 | + * Register a Redux Slice. | |
| 19461 | + * | |
| 19462 | + * @param {string} id - State id. | |
| 19463 | + * @param {Object} stateConfig - The state config. | |
| 19464 | + * | |
| 19465 | + * @return {void} | |
| 19466 | + */ | |
| 19467 | + | |
| 19468 | + }, { | |
| 19469 | + key: "registerState", | |
| 19470 | + value: function registerState(id, stateConfig) { | |
| 19471 | + id = this.getNamespace() + (id ? "/".concat(id) : ''); | |
| 19472 | + var slice = (0, _toolkit.createSlice)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, stateConfig), {}, { | |
| 19473 | + name: id | |
| 19474 | + })); | |
| 19475 | + $e.store.register(id, slice); | |
| 19476 | + } | |
| 19477 | + }, { | |
| 19478 | + key: "registerCommandInternal", | |
| 19479 | + value: function registerCommandInternal(command, callback) { | |
| 19480 | + $e.commandsInternal.register(this, command, callback); | |
| 19481 | + } | |
| 19482 | + }, { | |
| 19483 | + key: "registerRoute", | |
| 19484 | + value: function registerRoute(route, callback) { | |
| 19485 | + $e.routes.register(this, route, callback); | |
| 19486 | + } | |
| 19487 | + }, { | |
| 19488 | + key: "registerData", | |
| 19489 | + value: function registerData(command, callback) { | |
| 19490 | + $e.data.register(this, command, callback); | |
| 19491 | + } | |
| 19492 | + }, { | |
| 19493 | + key: "unregisterRoute", | |
| 19494 | + value: function unregisterRoute(route) { | |
| 19495 | + $e.routes.unregister(this, route); | |
| 19496 | + } | |
| 19497 | + }, { | |
| 19498 | + key: "registerTabRoute", | |
| 19499 | + value: function registerTabRoute(tab) { | |
| 19500 | + var _this2 = this; | |
| 19501 | + | |
| 19502 | + this.registerRoute(tab, function (args) { | |
| 19503 | + return _this2.activateTab(tab, args); | |
| 19504 | + }); | |
| 19505 | + } | |
| 19506 | + }, { | |
| 19507 | + key: "dependency", | |
| 19508 | + value: function dependency() { | |
| 19509 | + return true; | |
| 19510 | + } | |
| 19511 | + }, { | |
| 19512 | + key: "open", | |
| 19513 | + value: function open() { | |
| 19514 | + return true; | |
| 19515 | + } | |
| 19516 | + }, { | |
| 19517 | + key: "close", | |
| 19518 | + value: function close() { | |
| 19519 | + if (!this.isOpen) { | |
| 19520 | + return false; | |
| 1035 | 19521 | } |
| 19522 | + | |
| 19523 | + this.isOpen = false; | |
| 19524 | + this.inactivate(); | |
| 19525 | + $e.routes.clearCurrent(this.getNamespace()); | |
| 19526 | + $e.routes.clearHistory(this.getRootContainer()); | |
| 19527 | + return true; | |
| 1036 | 19528 | } |
| 1037 | 19529 | }, { |
| 1038 | - key: "warn", | |
| 1039 | - value: function warn() { | |
| 1040 | - var _console; | |
| 1041 | - var style = "font-size: 12px; background-image: url(\"".concat(elementorWebCliConfig.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;"); | |
| 1042 | - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 1043 | - args[_key] = arguments[_key]; | |
| 19530 | + key: "activate", | |
| 19531 | + value: function activate() { | |
| 19532 | + $e.components.activate(this.getNamespace()); | |
| 19533 | + } | |
| 19534 | + }, { | |
| 19535 | + key: "inactivate", | |
| 19536 | + value: function inactivate() { | |
| 19537 | + $e.components.inactivate(this.getNamespace()); | |
| 19538 | + } | |
| 19539 | + }, { | |
| 19540 | + key: "isActive", | |
| 19541 | + value: function isActive() { | |
| 19542 | + return $e.components.isActive(this.getNamespace()); | |
| 19543 | + } | |
| 19544 | + }, { | |
| 19545 | + key: "onRoute", | |
| 19546 | + value: function onRoute(route) { | |
| 19547 | + this.toggleRouteClass(route, true); | |
| 19548 | + this.toggleHistoryClass(); | |
| 19549 | + this.activate(); | |
| 19550 | + this.trigger('route/open', route); | |
| 19551 | + } | |
| 19552 | + }, { | |
| 19553 | + key: "onCloseRoute", | |
| 19554 | + value: function onCloseRoute(route) { | |
| 19555 | + this.toggleRouteClass(route, false); | |
| 19556 | + this.inactivate(); | |
| 19557 | + this.trigger('route/close', route); | |
| 19558 | + } | |
| 19559 | + }, { | |
| 19560 | + key: "setDefaultRoute", | |
| 19561 | + value: function setDefaultRoute(route) { | |
| 19562 | + this.defaultRoute = this.getNamespace() + '/' + route; | |
| 19563 | + } | |
| 19564 | + }, { | |
| 19565 | + key: "getDefaultRoute", | |
| 19566 | + value: function getDefaultRoute() { | |
| 19567 | + return this.defaultRoute; | |
| 19568 | + } | |
| 19569 | + }, { | |
| 19570 | + key: "removeTab", | |
| 19571 | + value: function removeTab(tab) { | |
| 19572 | + delete this.tabs[tab]; | |
| 19573 | + this.unregisterRoute(tab); | |
| 19574 | + } | |
| 19575 | + }, { | |
| 19576 | + key: "hasTab", | |
| 19577 | + value: function hasTab(tab) { | |
| 19578 | + return !!this.tabs[tab]; | |
| 19579 | + } | |
| 19580 | + }, { | |
| 19581 | + key: "addTab", | |
| 19582 | + value: function addTab(tab, args, position) { | |
| 19583 | + var _this3 = this; | |
| 19584 | + | |
| 19585 | + this.tabs[tab] = args; // It can be 0. | |
| 19586 | + | |
| 19587 | + if ('undefined' !== typeof position) { | |
| 19588 | + var newTabs = {}; | |
| 19589 | + var ids = (0, _keys.default)(this.tabs); // Remove new tab | |
| 19590 | + | |
| 19591 | + ids.pop(); // Add it to position. | |
| 19592 | + | |
| 19593 | + ids.splice(position, 0, tab); | |
| 19594 | + ids.forEach(function (id) { | |
| 19595 | + newTabs[id] = _this3.tabs[id]; | |
| 19596 | + }); | |
| 19597 | + this.tabs = newTabs; | |
| 1044 | 19598 | } |
| 1045 | - args.unshift('%c %c', style, ''); | |
| 1046 | - (_console = console).warn.apply(_console, args); // eslint-disable-line no-console | |
| 19599 | + | |
| 19600 | + this.registerTabRoute(tab); | |
| 1047 | 19601 | } |
| 19602 | + }, { | |
| 19603 | + key: "getTabsWrapperSelector", | |
| 19604 | + value: function getTabsWrapperSelector() { | |
| 19605 | + return ''; | |
| 19606 | + } | |
| 19607 | + }, { | |
| 19608 | + key: "getTabRoute", | |
| 19609 | + value: function getTabRoute(tab) { | |
| 19610 | + return this.getNamespace() + '/' + tab; | |
| 19611 | + } | |
| 19612 | + }, { | |
| 19613 | + key: "renderTab", | |
| 19614 | + value: function renderTab(tab) {} // eslint-disable-line | |
| 19615 | + | |
| 19616 | + }, { | |
| 19617 | + key: "activateTab", | |
| 19618 | + value: function activateTab(tab, args) { | |
| 19619 | + var _this4 = this; | |
| 19620 | + | |
| 19621 | + this.currentTab = tab; | |
| 19622 | + this.renderTab(tab, args); | |
| 19623 | + jQuery(this.getTabsWrapperSelector() + ' .elementor-component-tab').off('click').on('click', function (event) { | |
| 19624 | + $e.route(_this4.getTabRoute(event.currentTarget.dataset.tab), args); | |
| 19625 | + }).removeClass('elementor-active').filter('[data-tab="' + tab + '"]').addClass('elementor-active'); | |
| 19626 | + } | |
| 19627 | + }, { | |
| 19628 | + key: "getActiveTabConfig", | |
| 19629 | + value: function getActiveTabConfig() { | |
| 19630 | + return this.tabs[this.currentTab] || {}; | |
| 19631 | + } | |
| 19632 | + }, { | |
| 19633 | + key: "getBodyClass", | |
| 19634 | + value: function getBodyClass(route) { | |
| 19635 | + return 'e-route-' + route.replace(/\//g, '-'); | |
| 19636 | + } | |
| 19637 | + /** | |
| 19638 | + * If command includes uppercase character convert it to lowercase and add `-`. | |
| 19639 | + * e.g: `CopyAll` is converted to `copy-all`. | |
| 19640 | + */ | |
| 19641 | + | |
| 19642 | + }, { | |
| 19643 | + key: "normalizeCommandName", | |
| 19644 | + value: function normalizeCommandName(commandName) { | |
| 19645 | + return commandName.replace(/[A-Z]/g, function (match, offset) { | |
| 19646 | + return (offset > 0 ? '-' : '') + match.toLowerCase(); | |
| 19647 | + }); | |
| 19648 | + } | |
| 19649 | + }, { | |
| 19650 | + key: "importCommands", | |
| 19651 | + value: function importCommands(commandsFromImport) { | |
| 19652 | + var _this5 = this; | |
| 19653 | + | |
| 19654 | + var commands = {}; // Convert `Commands` to `ComponentBase` workable format. | |
| 19655 | + | |
| 19656 | + (0, _entries.default)(commandsFromImport).forEach(function (_ref11) { | |
| 19657 | + var _ref12 = (0, _slicedToArray2.default)(_ref11, 2), | |
| 19658 | + className = _ref12[0], | |
| 19659 | + Class = _ref12[1]; | |
| 19660 | + | |
| 19661 | + var command = _this5.normalizeCommandName(className); | |
| 19662 | + | |
| 19663 | + commands[command] = function (args) { | |
| 19664 | + return new Class(args).run(); | |
| 19665 | + }; // TODO: Temporary code, remove after merge with 'require-commands-base' branch. | |
| 19666 | + // should not return callback, but Class or Instance without run ( gain performance ). | |
| 19667 | + | |
| 19668 | + | |
| 19669 | + $e.commands.classes[_this5.getNamespace() + '/' + command] = Class; | |
| 19670 | + }); | |
| 19671 | + return commands; | |
| 19672 | + } | |
| 19673 | + }, { | |
| 19674 | + key: "importHooks", | |
| 19675 | + value: function importHooks(hooksFromImport) { | |
| 19676 | + var hooks = {}; | |
| 19677 | + | |
| 19678 | + for (var key in hooksFromImport) { | |
| 19679 | + var hook = new hooksFromImport[key](); | |
| 19680 | + hooks[hook.getId()] = hook; | |
| 19681 | + } | |
| 19682 | + | |
| 19683 | + return hooks; | |
| 19684 | + } | |
| 19685 | + /** | |
| 19686 | + * Import & initialize the component's UI states. | |
| 19687 | + * Should be used inside `defaultUiState()`. | |
| 19688 | + * | |
| 19689 | + * @param {Object} statesFromImport - UI states from import. | |
| 19690 | + * | |
| 19691 | + * @return {Object} | |
| 19692 | + */ | |
| 19693 | + | |
| 19694 | + }, { | |
| 19695 | + key: "importUiStates", | |
| 19696 | + value: function importUiStates(statesFromImport) { | |
| 19697 | + var _this6 = this; | |
| 19698 | + | |
| 19699 | + var uiStates = {}; | |
| 19700 | + (0, _values.default)(statesFromImport).forEach(function (className) { | |
| 19701 | + var uiState = new className(_this6); | |
| 19702 | + uiStates[uiState.getId()] = uiState; | |
| 19703 | + }); | |
| 19704 | + return uiStates; | |
| 19705 | + } | |
| 19706 | + /** | |
| 19707 | + * Set a UI state value. | |
| 19708 | + * TODO: Should we provide such function? Maybe the developer should implicitly pass the full state ID? | |
| 19709 | + * | |
| 19710 | + * @param state - Non-prefixed state ID. | |
| 19711 | + * @param value - New state value. | |
| 19712 | + * | |
| 19713 | + * @return {void} | |
| 19714 | + */ | |
| 19715 | + | |
| 19716 | + }, { | |
| 19717 | + key: "setUiState", | |
| 19718 | + value: function setUiState(state, value) { | |
| 19719 | + $e.uiStates.set("".concat(this.getNamespace(), "/").concat(state), value); | |
| 19720 | + } | |
| 19721 | + }, { | |
| 19722 | + key: "toggleRouteClass", | |
| 19723 | + value: function toggleRouteClass(route, state) { | |
| 19724 | + elementorCommon.elements.$body.toggleClass(this.getBodyClass(route), state); | |
| 19725 | + } | |
| 19726 | + }, { | |
| 19727 | + key: "toggleHistoryClass", | |
| 19728 | + value: function toggleHistoryClass() { | |
| 19729 | + elementorCommon.elements.$body.toggleClass('e-routes-has-history', !!$e.routes.getHistory(this.getRootContainer()).length); | |
| 19730 | + } | |
| 1048 | 19731 | }]); |
| 1049 | -}(); | |
| 19732 | + return ComponentBase; | |
| 19733 | +}(elementorModules.Module); | |
| 1050 | 19734 | |
| 19735 | +exports["default"] = ComponentBase; | |
| 19736 | + | |
| 1051 | 19737 | /***/ }), |
| 1052 | 19738 | |
| 1053 | -/***/ "../modules/web-cli/assets/js/utils/deprecation.js": | |
| 19739 | +/***/ "../core/common/assets/js/api/modules/hook-base.js": | |
| 1054 | 19740 | /*!*********************************************************!*\ |
| 1055 | - !*** ../modules/web-cli/assets/js/utils/deprecation.js ***! | |
| 19741 | + !*** ../core/common/assets/js/api/modules/hook-base.js ***! | |
| 1056 | 19742 | \*********************************************************/ |
| 1057 | 19743 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 1058 | 19744 | |
| 1059 | 19745 | "use strict"; |
| @@ -1058,501 +19744,9203 @@ | ||
| 1058 | 19744 | |
| 1059 | 19745 | "use strict"; |
| 1060 | 19746 | |
| 1061 | 19747 | |
| 1062 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1063 | -Object.defineProperty(exports, "__esModule", ({ | |
| 19748 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 19749 | + | |
| 19750 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 19751 | + | |
| 19752 | +_Object$defineProperty(exports, "__esModule", { | |
| 1064 | 19753 | value: true |
| 1065 | -})); | |
| 19754 | +}); | |
| 19755 | + | |
| 1066 | 19756 | exports["default"] = void 0; |
| 1067 | -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 1068 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1069 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1070 | -var _console = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/console */ "../modules/web-cli/assets/js/utils/console.js")); | |
| 1071 | -// Copied from `modules/dev-tools/assets/js/deprecation.js` | |
| 1072 | -/** | |
| 1073 | - * @typedef {Object} Version | |
| 1074 | - * @property {number} major1 The first number | |
| 1075 | - * @property {number} major2 The second number | |
| 1076 | - * @property {number} minor The third number | |
| 1077 | - * @property {string} build The fourth number | |
| 1078 | - */ | |
| 1079 | 19757 | |
| 1080 | -var softDeprecated = function softDeprecated(name, version, replacement) { | |
| 1081 | - if (elementorWebCliConfig.isDebug) { | |
| 1082 | - deprecatedMessage('soft', name, version, replacement); | |
| 19758 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 19759 | + | |
| 19760 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 19761 | + | |
| 19762 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/defineProperty */ "../node_modules/@babel/runtime-corejs2/helpers/defineProperty.js")); | |
| 19763 | + | |
| 19764 | +var HookBase = /*#__PURE__*/function () { | |
| 19765 | + /** | |
| 19766 | + * Callback type, eg ( hook, event ). | |
| 19767 | + * | |
| 19768 | + * @type {string} | |
| 19769 | + */ | |
| 19770 | + | |
| 19771 | + /** | |
| 19772 | + * Full command address, that will hook the callback. | |
| 19773 | + * | |
| 19774 | + * @type (string) | |
| 19775 | + */ | |
| 19776 | + | |
| 19777 | + /** | |
| 19778 | + * Unique id of the callback. | |
| 19779 | + * | |
| 19780 | + * @type {string} | |
| 19781 | + */ | |
| 19782 | + | |
| 19783 | + /** | |
| 19784 | + * Function constructor(). | |
| 19785 | + * | |
| 19786 | + * Create callback base. | |
| 19787 | + */ | |
| 19788 | + function HookBase() { | |
| 19789 | + (0, _classCallCheck2.default)(this, HookBase); | |
| 19790 | + (0, _defineProperty2.default)(this, "type", void 0); | |
| 19791 | + (0, _defineProperty2.default)(this, "command", void 0); | |
| 19792 | + (0, _defineProperty2.default)(this, "id", void 0); | |
| 19793 | + this.initialize(); | |
| 19794 | + this.type = this.getType(); | |
| 19795 | + this.command = this.getCommand(); | |
| 19796 | + this.id = this.getId(); | |
| 1083 | 19797 | } |
| 1084 | -}; | |
| 1085 | -var hardDeprecated = function hardDeprecated(name, version, replacement) { | |
| 1086 | - deprecatedMessage('hard', name, version, replacement); | |
| 1087 | -}; | |
| 1088 | -var deprecatedMessage = function deprecatedMessage(type, name, version, replacement) { | |
| 1089 | - var message = "`".concat(name, "` is ").concat(type, " deprecated since ").concat(version); | |
| 1090 | - if (replacement) { | |
| 1091 | - message += " - Use `".concat(replacement, "` instead"); | |
| 1092 | - } | |
| 1093 | - _console.default.warn(message); | |
| 1094 | -}; | |
| 1095 | -var Deprecation = exports["default"] = /*#__PURE__*/function () { | |
| 1096 | - function Deprecation() { | |
| 1097 | - (0, _classCallCheck2.default)(this, Deprecation); | |
| 1098 | - } | |
| 1099 | - return (0, _createClass2.default)(Deprecation, null, [{ | |
| 1100 | - key: "deprecated", | |
| 1101 | - value: function deprecated(name, version, replacement) { | |
| 1102 | - if (this.isHardDeprecated(version)) { | |
| 1103 | - hardDeprecated(name, version, replacement); | |
| 1104 | - } else { | |
| 1105 | - softDeprecated(name, version, replacement); | |
| 1106 | - } | |
| 1107 | - } | |
| 19798 | + /** | |
| 19799 | + * Function initialize(). | |
| 19800 | + * | |
| 19801 | + * Called after creation of the base, used for initialize extras. | |
| 19802 | + * Without expending constructor. | |
| 19803 | + */ | |
| 1108 | 19804 | |
| 19805 | + | |
| 19806 | + (0, _createClass2.default)(HookBase, [{ | |
| 19807 | + key: "initialize", | |
| 19808 | + value: function initialize() {} | |
| 1109 | 19809 | /** |
| 1110 | - * @param {string} version | |
| 19810 | + * Function register(). | |
| 1111 | 19811 | * |
| 1112 | - * @return {Version} | |
| 19812 | + * Used to register the callback. | |
| 19813 | + * | |
| 19814 | + * @throws {Error} | |
| 1113 | 19815 | */ |
| 19816 | + | |
| 1114 | 19817 | }, { |
| 1115 | - key: "parseVersion", | |
| 1116 | - value: function parseVersion(version) { | |
| 1117 | - var versionParts = version.split('.'); | |
| 1118 | - if (versionParts.length < 3 || versionParts.length > 4) { | |
| 1119 | - throw new RangeError('Invalid Semantic Version string provided'); | |
| 1120 | - } | |
| 1121 | - var _versionParts = (0, _slicedToArray2.default)(versionParts, 4), | |
| 1122 | - major1 = _versionParts[0], | |
| 1123 | - major2 = _versionParts[1], | |
| 1124 | - minor = _versionParts[2], | |
| 1125 | - _versionParts$ = _versionParts[3], | |
| 1126 | - build = _versionParts$ === void 0 ? '' : _versionParts$; | |
| 1127 | - return { | |
| 1128 | - major1: parseInt(major1), | |
| 1129 | - major2: parseInt(major2), | |
| 1130 | - minor: parseInt(minor), | |
| 1131 | - build: build | |
| 1132 | - }; | |
| 19818 | + key: "register", | |
| 19819 | + value: function register() { | |
| 19820 | + elementorModules.ForceMethodImplementation(); | |
| 1133 | 19821 | } |
| 19822 | + /** | |
| 19823 | + * Function getType(). | |
| 19824 | + * | |
| 19825 | + * Get type eg: ( hook, event, etc ... ). | |
| 19826 | + * | |
| 19827 | + * @returns {string} | |
| 19828 | + * | |
| 19829 | + * @throws {Error} | |
| 19830 | + */ | |
| 1134 | 19831 | |
| 19832 | + }, { | |
| 19833 | + key: "getType", | |
| 19834 | + value: function getType() { | |
| 19835 | + elementorModules.ForceMethodImplementation(); | |
| 19836 | + } | |
| 1135 | 19837 | /** |
| 1136 | - * Get total of major. | |
| 19838 | + * Function getCommand(). | |
| 1137 | 19839 | * |
| 1138 | - * Since `get_total_major` cannot determine how much really versions between 2.9.0 and 3.3.0 if there is 2.10.0 version for example, | |
| 1139 | - * versions with major2 more then 9 will be added to total. | |
| 19840 | + * Returns the full command path for callback binding. | |
| 1140 | 19841 | * |
| 1141 | - * @param {Version} versionObj | |
| 19842 | + * Supports array of strings ( commands ). | |
| 1142 | 19843 | * |
| 1143 | - * @return {number} | |
| 19844 | + * @returns {string} | |
| 19845 | + * | |
| 19846 | + * @throws {Error} | |
| 1144 | 19847 | */ |
| 19848 | + | |
| 1145 | 19849 | }, { |
| 1146 | - key: "getTotalMajor", | |
| 1147 | - value: function getTotalMajor(versionObj) { | |
| 1148 | - var total = parseInt("".concat(versionObj.major1).concat(versionObj.major2, "0")); | |
| 1149 | - total = Number((total / 10).toFixed(0)); | |
| 1150 | - if (versionObj.major2 > 9) { | |
| 1151 | - total = versionObj.major2 - 9; | |
| 1152 | - } | |
| 1153 | - return total; | |
| 19850 | + key: "getCommand", | |
| 19851 | + value: function getCommand() { | |
| 19852 | + elementorModules.ForceMethodImplementation(); | |
| 1154 | 19853 | } |
| 1155 | - | |
| 1156 | 19854 | /** |
| 1157 | - * @param {string} version1 | |
| 1158 | - * @param {string} version2 | |
| 19855 | + * Function getId(). | |
| 1159 | 19856 | * |
| 1160 | - * @return {number} | |
| 19857 | + * Returns command id for the hook (should be unique). | |
| 19858 | + * | |
| 19859 | + * @returns {string} | |
| 19860 | + * | |
| 19861 | + * @throws {Error} | |
| 1161 | 19862 | */ |
| 19863 | + | |
| 1162 | 19864 | }, { |
| 1163 | - key: "compareVersion", | |
| 1164 | - value: function compareVersion(version1, version2) { | |
| 1165 | - var _this = this; | |
| 1166 | - return [this.parseVersion(version1), this.parseVersion(version2)].map(function (versionObj) { | |
| 1167 | - return _this.getTotalMajor(versionObj); | |
| 1168 | - }).reduce(function (acc, major) { | |
| 1169 | - return acc - major; | |
| 1170 | - }); | |
| 19865 | + key: "getId", | |
| 19866 | + value: function getId() { | |
| 19867 | + elementorModules.ForceMethodImplementation(); | |
| 1171 | 19868 | } |
| 19869 | + /** | |
| 19870 | + * Function getContainerType(). | |
| 19871 | + * | |
| 19872 | + * Bind eContainer type to callback. | |
| 19873 | + * | |
| 19874 | + * Used to gain performance. | |
| 19875 | + * | |
| 19876 | + * @return {string} type | |
| 19877 | + */ | |
| 1172 | 19878 | |
| 19879 | + }, { | |
| 19880 | + key: "getContainerType", | |
| 19881 | + value: function getContainerType() {} | |
| 1173 | 19882 | /** |
| 1174 | - * @param {string} version | |
| 19883 | + * Function getConditions(). | |
| 1175 | 19884 | * |
| 1176 | - * @return {boolean} | |
| 19885 | + * Condition for running the callback, if true, call to apply(). | |
| 19886 | + * | |
| 19887 | + * @param [args={}] | |
| 19888 | + * @param [result=*] | |
| 19889 | + * | |
| 19890 | + * @returns {boolean} | |
| 1177 | 19891 | */ |
| 19892 | + | |
| 1178 | 19893 | }, { |
| 1179 | - key: "isSoftDeprecated", | |
| 1180 | - value: function isSoftDeprecated(version) { | |
| 1181 | - var total = this.compareVersion(version, elementorWebCliConfig.version); | |
| 1182 | - return total <= 4; | |
| 19894 | + key: "getConditions", | |
| 19895 | + value: function getConditions() { | |
| 19896 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 19897 | + var result = arguments.length > 1 ? arguments[1] : undefined; | |
| 19898 | + // eslint-disable-line no-unused-vars | |
| 19899 | + return true; | |
| 1183 | 19900 | } |
| 19901 | + /** | |
| 19902 | + * Function apply(). | |
| 19903 | + * | |
| 19904 | + * Apply the callback, ( The actual affect of the callback ). | |
| 19905 | + * | |
| 19906 | + * @param [args={}] | |
| 19907 | + * | |
| 19908 | + * @returns {*} | |
| 19909 | + */ | |
| 1184 | 19910 | |
| 19911 | + }, { | |
| 19912 | + key: "apply", | |
| 19913 | + value: function apply(args) { | |
| 19914 | + // eslint-disable-line no-unused-vars | |
| 19915 | + elementorModules.ForceMethodImplementation(); | |
| 19916 | + } | |
| 1185 | 19917 | /** |
| 1186 | - * @param {string} version | |
| 1187 | - * @return {boolean} | |
| 19918 | + * Function run(). | |
| 19919 | + * | |
| 19920 | + * Run the callback. | |
| 19921 | + * | |
| 19922 | + * @param {*} args | |
| 19923 | + * | |
| 19924 | + * @returns {*} | |
| 1188 | 19925 | */ |
| 19926 | + | |
| 1189 | 19927 | }, { |
| 1190 | - key: "isHardDeprecated", | |
| 1191 | - value: function isHardDeprecated(version) { | |
| 1192 | - var total = this.compareVersion(version, elementorWebCliConfig.version); | |
| 1193 | - return total < 0 || total >= 8; | |
| 19928 | + key: "run", | |
| 19929 | + value: function run() { | |
| 19930 | + var _ref = arguments.length <= 0 ? undefined : arguments[0], | |
| 19931 | + _ref$options = _ref.options, | |
| 19932 | + options = _ref$options === void 0 ? {} : _ref$options; // Disable callback if requested by args.options. | |
| 19933 | + | |
| 19934 | + | |
| 19935 | + if (options.callbacks && false === options.callbacks[this.id]) { | |
| 19936 | + return true; | |
| 19937 | + } | |
| 19938 | + | |
| 19939 | + if (this.getConditions.apply(this, arguments)) { | |
| 19940 | + if ($e.devTools) { | |
| 19941 | + $e.devTools.log.callbacks().active(this.type, this.command, this.id); | |
| 19942 | + } | |
| 19943 | + | |
| 19944 | + return this.apply.apply(this, arguments); | |
| 19945 | + } | |
| 19946 | + | |
| 19947 | + return true; | |
| 1194 | 19948 | } |
| 1195 | 19949 | }]); |
| 19950 | + return HookBase; | |
| 1196 | 19951 | }(); |
| 1197 | 19952 | |
| 19953 | +exports["default"] = HookBase; | |
| 19954 | + | |
| 1198 | 19955 | /***/ }), |
| 1199 | 19956 | |
| 1200 | -/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 19957 | +/***/ "../core/common/assets/js/api/modules/hooks/data/after.js": | |
| 19958 | +/*!****************************************************************!*\ | |
| 19959 | + !*** ../core/common/assets/js/api/modules/hooks/data/after.js ***! | |
| 19960 | + \****************************************************************/ | |
| 19961 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 19962 | + | |
| 19963 | +"use strict"; | |
| 19964 | + | |
| 19965 | + | |
| 19966 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 19967 | + | |
| 19968 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 19969 | + | |
| 19970 | +_Object$defineProperty(exports, "__esModule", { | |
| 19971 | + value: true | |
| 19972 | +}); | |
| 19973 | + | |
| 19974 | +exports["default"] = exports.After = void 0; | |
| 19975 | + | |
| 19976 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 19977 | + | |
| 19978 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 19979 | + | |
| 19980 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 19981 | + | |
| 19982 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 19983 | + | |
| 19984 | +var _base = _interopRequireDefault(__webpack_require__(/*! ./base */ "../core/common/assets/js/api/modules/hooks/data/base.js")); | |
| 19985 | + | |
| 19986 | +var After = /*#__PURE__*/function (_Base) { | |
| 19987 | + (0, _inherits2.default)(After, _Base); | |
| 19988 | + | |
| 19989 | + var _super = (0, _createSuper2.default)(After); | |
| 19990 | + | |
| 19991 | + function After() { | |
| 19992 | + (0, _classCallCheck2.default)(this, After); | |
| 19993 | + return _super.apply(this, arguments); | |
| 19994 | + } | |
| 19995 | + | |
| 19996 | + (0, _createClass2.default)(After, [{ | |
| 19997 | + key: "register", | |
| 19998 | + value: function register() { | |
| 19999 | + $e.hooks.registerDataAfter(this); | |
| 20000 | + } | |
| 20001 | + }]); | |
| 20002 | + return After; | |
| 20003 | +}(_base.default); | |
| 20004 | + | |
| 20005 | +exports.After = After; | |
| 20006 | +var _default = After; | |
| 20007 | +exports["default"] = _default; | |
| 20008 | + | |
| 20009 | +/***/ }), | |
| 20010 | + | |
| 20011 | +/***/ "../core/common/assets/js/api/modules/hooks/data/base.js": | |
| 20012 | +/*!***************************************************************!*\ | |
| 20013 | + !*** ../core/common/assets/js/api/modules/hooks/data/base.js ***! | |
| 20014 | + \***************************************************************/ | |
| 20015 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 20016 | + | |
| 20017 | +"use strict"; | |
| 20018 | + | |
| 20019 | + | |
| 20020 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 20021 | + | |
| 20022 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 20023 | + | |
| 20024 | +_Object$defineProperty(exports, "__esModule", { | |
| 20025 | + value: true | |
| 20026 | +}); | |
| 20027 | + | |
| 20028 | +exports["default"] = exports.Base = void 0; | |
| 20029 | + | |
| 20030 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 20031 | + | |
| 20032 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 20033 | + | |
| 20034 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 20035 | + | |
| 20036 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 20037 | + | |
| 20038 | +var _hookBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hook-base */ "../core/common/assets/js/api/modules/hook-base.js")); | |
| 20039 | + | |
| 20040 | +var Base = /*#__PURE__*/function (_HookBase) { | |
| 20041 | + (0, _inherits2.default)(Base, _HookBase); | |
| 20042 | + | |
| 20043 | + var _super = (0, _createSuper2.default)(Base); | |
| 20044 | + | |
| 20045 | + function Base() { | |
| 20046 | + (0, _classCallCheck2.default)(this, Base); | |
| 20047 | + return _super.apply(this, arguments); | |
| 20048 | + } | |
| 20049 | + | |
| 20050 | + (0, _createClass2.default)(Base, [{ | |
| 20051 | + key: "getType", | |
| 20052 | + value: function getType() { | |
| 20053 | + return 'data'; | |
| 20054 | + } | |
| 20055 | + }]); | |
| 20056 | + return Base; | |
| 20057 | +}(_hookBase.default); | |
| 20058 | + | |
| 20059 | +exports.Base = Base; | |
| 20060 | +var _default = Base; | |
| 20061 | +exports["default"] = _default; | |
| 20062 | + | |
| 20063 | +/***/ }), | |
| 20064 | + | |
| 20065 | +/***/ "../core/common/assets/js/api/modules/hooks/data/dependency.js": | |
| 20066 | +/*!*********************************************************************!*\ | |
| 20067 | + !*** ../core/common/assets/js/api/modules/hooks/data/dependency.js ***! | |
| 20068 | + \*********************************************************************/ | |
| 20069 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 20070 | + | |
| 20071 | +"use strict"; | |
| 20072 | + | |
| 20073 | + | |
| 20074 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 20075 | + | |
| 20076 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 20077 | + | |
| 20078 | +_Object$defineProperty(exports, "__esModule", { | |
| 20079 | + value: true | |
| 20080 | +}); | |
| 20081 | + | |
| 20082 | +exports["default"] = exports.Dependency = void 0; | |
| 20083 | + | |
| 20084 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 20085 | + | |
| 20086 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 20087 | + | |
| 20088 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 20089 | + | |
| 20090 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 20091 | + | |
| 20092 | +var _base = _interopRequireDefault(__webpack_require__(/*! ./base */ "../core/common/assets/js/api/modules/hooks/data/base.js")); | |
| 20093 | + | |
| 20094 | +var Dependency = /*#__PURE__*/function (_Base) { | |
| 20095 | + (0, _inherits2.default)(Dependency, _Base); | |
| 20096 | + | |
| 20097 | + var _super = (0, _createSuper2.default)(Dependency); | |
| 20098 | + | |
| 20099 | + function Dependency() { | |
| 20100 | + (0, _classCallCheck2.default)(this, Dependency); | |
| 20101 | + return _super.apply(this, arguments); | |
| 20102 | + } | |
| 20103 | + | |
| 20104 | + (0, _createClass2.default)(Dependency, [{ | |
| 20105 | + key: "register", | |
| 20106 | + value: function register() { | |
| 20107 | + $e.hooks.registerDataDependency(this); | |
| 20108 | + } | |
| 20109 | + }]); | |
| 20110 | + return Dependency; | |
| 20111 | +}(_base.default); | |
| 20112 | + | |
| 20113 | +exports.Dependency = Dependency; | |
| 20114 | +var _default = Dependency; | |
| 20115 | +exports["default"] = _default; | |
| 20116 | + | |
| 20117 | +/***/ }), | |
| 20118 | + | |
| 20119 | +/***/ "../core/common/assets/js/api/modules/hooks/ui/after.js": | |
| 20120 | +/*!**************************************************************!*\ | |
| 20121 | + !*** ../core/common/assets/js/api/modules/hooks/ui/after.js ***! | |
| 20122 | + \**************************************************************/ | |
| 20123 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 20124 | + | |
| 20125 | +"use strict"; | |
| 20126 | + | |
| 20127 | + | |
| 20128 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 20129 | + | |
| 20130 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 20131 | + | |
| 20132 | +_Object$defineProperty(exports, "__esModule", { | |
| 20133 | + value: true | |
| 20134 | +}); | |
| 20135 | + | |
| 20136 | +exports["default"] = exports.After = void 0; | |
| 20137 | + | |
| 20138 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 20139 | + | |
| 20140 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 20141 | + | |
| 20142 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 20143 | + | |
| 20144 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 20145 | + | |
| 20146 | +var _base = _interopRequireDefault(__webpack_require__(/*! ./base */ "../core/common/assets/js/api/modules/hooks/ui/base.js")); | |
| 20147 | + | |
| 20148 | +var After = /*#__PURE__*/function (_Base) { | |
| 20149 | + (0, _inherits2.default)(After, _Base); | |
| 20150 | + | |
| 20151 | + var _super = (0, _createSuper2.default)(After); | |
| 20152 | + | |
| 20153 | + function After() { | |
| 20154 | + (0, _classCallCheck2.default)(this, After); | |
| 20155 | + return _super.apply(this, arguments); | |
| 20156 | + } | |
| 20157 | + | |
| 20158 | + (0, _createClass2.default)(After, [{ | |
| 20159 | + key: "register", | |
| 20160 | + value: function register() { | |
| 20161 | + $e.hooks.registerUIAfter(this); | |
| 20162 | + } | |
| 20163 | + }]); | |
| 20164 | + return After; | |
| 20165 | +}(_base.default); | |
| 20166 | + | |
| 20167 | +exports.After = After; | |
| 20168 | +var _default = After; | |
| 20169 | +exports["default"] = _default; | |
| 20170 | + | |
| 20171 | +/***/ }), | |
| 20172 | + | |
| 20173 | +/***/ "../core/common/assets/js/api/modules/hooks/ui/base.js": | |
| 20174 | +/*!*************************************************************!*\ | |
| 20175 | + !*** ../core/common/assets/js/api/modules/hooks/ui/base.js ***! | |
| 20176 | + \*************************************************************/ | |
| 20177 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 20178 | + | |
| 20179 | +"use strict"; | |
| 20180 | + | |
| 20181 | + | |
| 20182 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 20183 | + | |
| 20184 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 20185 | + | |
| 20186 | +_Object$defineProperty(exports, "__esModule", { | |
| 20187 | + value: true | |
| 20188 | +}); | |
| 20189 | + | |
| 20190 | +exports["default"] = exports.Base = void 0; | |
| 20191 | + | |
| 20192 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 20193 | + | |
| 20194 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 20195 | + | |
| 20196 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 20197 | + | |
| 20198 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 20199 | + | |
| 20200 | +var _hookBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hook-base */ "../core/common/assets/js/api/modules/hook-base.js")); | |
| 20201 | + | |
| 20202 | +var Base = /*#__PURE__*/function (_HookBase) { | |
| 20203 | + (0, _inherits2.default)(Base, _HookBase); | |
| 20204 | + | |
| 20205 | + var _super = (0, _createSuper2.default)(Base); | |
| 20206 | + | |
| 20207 | + function Base() { | |
| 20208 | + (0, _classCallCheck2.default)(this, Base); | |
| 20209 | + return _super.apply(this, arguments); | |
| 20210 | + } | |
| 20211 | + | |
| 20212 | + (0, _createClass2.default)(Base, [{ | |
| 20213 | + key: "getType", | |
| 20214 | + value: function getType() { | |
| 20215 | + return 'ui'; | |
| 20216 | + } | |
| 20217 | + }]); | |
| 20218 | + return Base; | |
| 20219 | +}(_hookBase.default); | |
| 20220 | + | |
| 20221 | +exports.Base = Base; | |
| 20222 | +var _default = Base; | |
| 20223 | +exports["default"] = _default; | |
| 20224 | + | |
| 20225 | +/***/ }), | |
| 20226 | + | |
| 20227 | +/***/ "../core/common/assets/js/api/modules/hooks/ui/before.js": | |
| 20228 | +/*!***************************************************************!*\ | |
| 20229 | + !*** ../core/common/assets/js/api/modules/hooks/ui/before.js ***! | |
| 20230 | + \***************************************************************/ | |
| 20231 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 20232 | + | |
| 20233 | +"use strict"; | |
| 20234 | + | |
| 20235 | + | |
| 20236 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 20237 | + | |
| 20238 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 20239 | + | |
| 20240 | +_Object$defineProperty(exports, "__esModule", { | |
| 20241 | + value: true | |
| 20242 | +}); | |
| 20243 | + | |
| 20244 | +exports["default"] = exports.Before = void 0; | |
| 20245 | + | |
| 20246 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 20247 | + | |
| 20248 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 20249 | + | |
| 20250 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 20251 | + | |
| 20252 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 20253 | + | |
| 20254 | +var _base = _interopRequireDefault(__webpack_require__(/*! ./base */ "../core/common/assets/js/api/modules/hooks/ui/base.js")); | |
| 20255 | + | |
| 20256 | +var Before = /*#__PURE__*/function (_Base) { | |
| 20257 | + (0, _inherits2.default)(Before, _Base); | |
| 20258 | + | |
| 20259 | + var _super = (0, _createSuper2.default)(Before); | |
| 20260 | + | |
| 20261 | + function Before() { | |
| 20262 | + (0, _classCallCheck2.default)(this, Before); | |
| 20263 | + return _super.apply(this, arguments); | |
| 20264 | + } | |
| 20265 | + | |
| 20266 | + (0, _createClass2.default)(Before, [{ | |
| 20267 | + key: "register", | |
| 20268 | + value: function register() { | |
| 20269 | + $e.hooks.registerUIBefore(this); | |
| 20270 | + } | |
| 20271 | + }]); | |
| 20272 | + return Before; | |
| 20273 | +}(_base.default); | |
| 20274 | + | |
| 20275 | +exports.Before = Before; | |
| 20276 | +var _default = Before; | |
| 20277 | +exports["default"] = _default; | |
| 20278 | + | |
| 20279 | +/***/ }), | |
| 20280 | + | |
| 20281 | +/***/ "../core/common/assets/js/api/modules/hooks/ui/catch.js": | |
| 20282 | +/*!**************************************************************!*\ | |
| 20283 | + !*** ../core/common/assets/js/api/modules/hooks/ui/catch.js ***! | |
| 20284 | + \**************************************************************/ | |
| 20285 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 20286 | + | |
| 20287 | +"use strict"; | |
| 20288 | + | |
| 20289 | + | |
| 20290 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 20291 | + | |
| 20292 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 20293 | + | |
| 20294 | +_Object$defineProperty(exports, "__esModule", { | |
| 20295 | + value: true | |
| 20296 | +}); | |
| 20297 | + | |
| 20298 | +exports["default"] = exports.Catch = void 0; | |
| 20299 | + | |
| 20300 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); | |
| 20301 | + | |
| 20302 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); | |
| 20303 | + | |
| 20304 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); | |
| 20305 | + | |
| 20306 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); | |
| 20307 | + | |
| 20308 | +var _base = _interopRequireDefault(__webpack_require__(/*! ./base */ "../core/common/assets/js/api/modules/hooks/ui/base.js")); | |
| 20309 | + | |
| 20310 | +var Catch = /*#__PURE__*/function (_Base) { | |
| 20311 | + (0, _inherits2.default)(Catch, _Base); | |
| 20312 | + | |
| 20313 | + var _super = (0, _createSuper2.default)(Catch); | |
| 20314 | + | |
| 20315 | + function Catch() { | |
| 20316 | + (0, _classCallCheck2.default)(this, Catch); | |
| 20317 | + return _super.apply(this, arguments); | |
| 20318 | + } | |
| 20319 | + | |
| 20320 | + (0, _createClass2.default)(Catch, [{ | |
| 20321 | + key: "register", | |
| 20322 | + value: function register() { | |
| 20323 | + $e.hooks.registerUICatch(this); | |
| 20324 | + } | |
| 20325 | + }]); | |
| 20326 | + return Catch; | |
| 20327 | +}(_base.default); | |
| 20328 | + | |
| 20329 | +exports.Catch = Catch; | |
| 20330 | +var _default = Catch; | |
| 20331 | +exports["default"] = _default; | |
| 20332 | + | |
| 20333 | +/***/ }), | |
| 20334 | + | |
| 20335 | +/***/ "../core/common/assets/js/utils/environment.js": | |
| 20336 | +/*!*****************************************************!*\ | |
| 20337 | + !*** ../core/common/assets/js/utils/environment.js ***! | |
| 20338 | + \*****************************************************/ | |
| 20339 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 20340 | + | |
| 20341 | +"use strict"; | |
| 20342 | + | |
| 20343 | + | |
| 20344 | +var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); | |
| 20345 | + | |
| 20346 | +_Object$defineProperty(exports, "__esModule", { | |
| 20347 | + value: true | |
| 20348 | +}); | |
| 20349 | + | |
| 20350 | +exports["default"] = void 0; | |
| 20351 | + | |
| 20352 | +__webpack_require__(/*! core-js/modules/es6.object.to-string.js */ "../node_modules/core-js/modules/es6.object.to-string.js"); | |
| 20353 | + | |
| 20354 | +__webpack_require__(/*! core-js/modules/es6.regexp.to-string.js */ "../node_modules/core-js/modules/es6.regexp.to-string.js"); | |
| 20355 | + | |
| 20356 | +var matchUserAgent = function matchUserAgent(UserAgentStr) { | |
| 20357 | + return userAgent.indexOf(UserAgentStr) >= 0; | |
| 20358 | +}, | |
| 20359 | + userAgent = navigator.userAgent, | |
| 20360 | + // Solution influenced by https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser | |
| 20361 | +// Opera 8.0+ | |
| 20362 | +isOpera = !!window.opr && !!opr.addons || !!window.opera || matchUserAgent(' OPR/'), | |
| 20363 | + // Firefox 1.0+ | |
| 20364 | +isFirefox = matchUserAgent('Firefox'), | |
| 20365 | + // Safari 3.0+ "[object HTMLElementConstructor]" | |
| 20366 | +isSafari = /^((?!chrome|android).)*safari/i.test(userAgent) || /constructor/i.test(window.HTMLElement) || function (p) { | |
| 20367 | + return '[object SafariRemoteNotification]' === p.toString(); | |
| 20368 | +}(!window.safari || typeof safari !== 'undefined' && safari.pushNotification), | |
| 20369 | + // Internet Explorer 6-11 | |
| 20370 | +isIE = /Trident|MSIE/.test(userAgent) && ( | |
| 20371 | +/*@cc_on!@*/ | |
| 20372 | + false || !!document.documentMode), | |
| 20373 | + // Edge 20+ | |
| 20374 | +isEdge = !isIE && !!window.StyleMedia || matchUserAgent('Edg'), | |
| 20375 | + // Google Chrome (Not accurate) | |
| 20376 | +isChrome = !!window.chrome && matchUserAgent('Chrome') && !(isEdge || isOpera), | |
| 20377 | + // Blink engine | |
| 20378 | +isBlink = matchUserAgent('Chrome') && !!window.CSS, | |
| 20379 | + // Apple Webkit engine | |
| 20380 | +isAppleWebkit = matchUserAgent('AppleWebKit') && !isBlink, | |
| 20381 | + environment = { | |
| 20382 | + appleWebkit: isAppleWebkit, | |
| 20383 | + blink: isBlink, | |
| 20384 | + chrome: isChrome, | |
| 20385 | + edge: isEdge, | |
| 20386 | + firefox: isFirefox, | |
| 20387 | + ie: isIE, | |
| 20388 | + mac: matchUserAgent('Macintosh'), | |
| 20389 | + opera: isOpera, | |
| 20390 | + safari: isSafari, | |
| 20391 | + webkit: matchUserAgent('AppleWebKit') | |
| 20392 | +}; | |
| 20393 | + | |
| 20394 | +var _default = environment; | |
| 20395 | +exports["default"] = _default; | |
| 20396 | + | |
| 20397 | +/***/ }), | |
| 20398 | + | |
| 20399 | +/***/ "../node_modules/core-js/library/fn/array/from.js": | |
| 20400 | +/*!********************************************************!*\ | |
| 20401 | + !*** ../node_modules/core-js/library/fn/array/from.js ***! | |
| 20402 | + \********************************************************/ | |
| 20403 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20404 | + | |
| 20405 | +__webpack_require__(/*! ../../modules/es6.string.iterator */ "../node_modules/core-js/library/modules/es6.string.iterator.js"); | |
| 20406 | +__webpack_require__(/*! ../../modules/es6.array.from */ "../node_modules/core-js/library/modules/es6.array.from.js"); | |
| 20407 | +module.exports = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Array.from; | |
| 20408 | + | |
| 20409 | + | |
| 20410 | +/***/ }), | |
| 20411 | + | |
| 20412 | +/***/ "../node_modules/core-js/library/fn/array/is-array.js": | |
| 20413 | +/*!************************************************************!*\ | |
| 20414 | + !*** ../node_modules/core-js/library/fn/array/is-array.js ***! | |
| 20415 | + \************************************************************/ | |
| 20416 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20417 | + | |
| 20418 | +__webpack_require__(/*! ../../modules/es6.array.is-array */ "../node_modules/core-js/library/modules/es6.array.is-array.js"); | |
| 20419 | +module.exports = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Array.isArray; | |
| 20420 | + | |
| 20421 | + | |
| 20422 | +/***/ }), | |
| 20423 | + | |
| 20424 | +/***/ "../node_modules/core-js/library/fn/map.js": | |
| 20425 | +/*!*************************************************!*\ | |
| 20426 | + !*** ../node_modules/core-js/library/fn/map.js ***! | |
| 20427 | + \*************************************************/ | |
| 20428 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20429 | + | |
| 20430 | +__webpack_require__(/*! ../modules/es6.object.to-string */ "../node_modules/core-js/library/modules/es6.object.to-string.js"); | |
| 20431 | +__webpack_require__(/*! ../modules/es6.string.iterator */ "../node_modules/core-js/library/modules/es6.string.iterator.js"); | |
| 20432 | +__webpack_require__(/*! ../modules/web.dom.iterable */ "../node_modules/core-js/library/modules/web.dom.iterable.js"); | |
| 20433 | +__webpack_require__(/*! ../modules/es6.map */ "../node_modules/core-js/library/modules/es6.map.js"); | |
| 20434 | +__webpack_require__(/*! ../modules/es7.map.to-json */ "../node_modules/core-js/library/modules/es7.map.to-json.js"); | |
| 20435 | +__webpack_require__(/*! ../modules/es7.map.of */ "../node_modules/core-js/library/modules/es7.map.of.js"); | |
| 20436 | +__webpack_require__(/*! ../modules/es7.map.from */ "../node_modules/core-js/library/modules/es7.map.from.js"); | |
| 20437 | +module.exports = __webpack_require__(/*! ../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Map; | |
| 20438 | + | |
| 20439 | + | |
| 20440 | +/***/ }), | |
| 20441 | + | |
| 20442 | +/***/ "../node_modules/core-js/library/fn/object/assign.js": | |
| 20443 | +/*!***********************************************************!*\ | |
| 20444 | + !*** ../node_modules/core-js/library/fn/object/assign.js ***! | |
| 20445 | + \***********************************************************/ | |
| 20446 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20447 | + | |
| 20448 | +__webpack_require__(/*! ../../modules/es6.object.assign */ "../node_modules/core-js/library/modules/es6.object.assign.js"); | |
| 20449 | +module.exports = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Object.assign; | |
| 20450 | + | |
| 20451 | + | |
| 20452 | +/***/ }), | |
| 20453 | + | |
| 20454 | +/***/ "../node_modules/core-js/library/fn/object/create.js": | |
| 20455 | +/*!***********************************************************!*\ | |
| 20456 | + !*** ../node_modules/core-js/library/fn/object/create.js ***! | |
| 20457 | + \***********************************************************/ | |
| 20458 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20459 | + | |
| 20460 | +__webpack_require__(/*! ../../modules/es6.object.create */ "../node_modules/core-js/library/modules/es6.object.create.js"); | |
| 20461 | +var $Object = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Object; | |
| 20462 | +module.exports = function create(P, D) { | |
| 20463 | + return $Object.create(P, D); | |
| 20464 | +}; | |
| 20465 | + | |
| 20466 | + | |
| 20467 | +/***/ }), | |
| 20468 | + | |
| 20469 | +/***/ "../node_modules/core-js/library/fn/object/define-properties.js": | |
| 20470 | +/*!**********************************************************************!*\ | |
| 20471 | + !*** ../node_modules/core-js/library/fn/object/define-properties.js ***! | |
| 20472 | + \**********************************************************************/ | |
| 20473 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20474 | + | |
| 20475 | +__webpack_require__(/*! ../../modules/es6.object.define-properties */ "../node_modules/core-js/library/modules/es6.object.define-properties.js"); | |
| 20476 | +var $Object = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Object; | |
| 20477 | +module.exports = function defineProperties(T, D) { | |
| 20478 | + return $Object.defineProperties(T, D); | |
| 20479 | +}; | |
| 20480 | + | |
| 20481 | + | |
| 20482 | +/***/ }), | |
| 20483 | + | |
| 20484 | +/***/ "../node_modules/core-js/library/fn/object/define-property.js": | |
| 20485 | +/*!********************************************************************!*\ | |
| 20486 | + !*** ../node_modules/core-js/library/fn/object/define-property.js ***! | |
| 20487 | + \********************************************************************/ | |
| 20488 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20489 | + | |
| 20490 | +__webpack_require__(/*! ../../modules/es6.object.define-property */ "../node_modules/core-js/library/modules/es6.object.define-property.js"); | |
| 20491 | +var $Object = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Object; | |
| 20492 | +module.exports = function defineProperty(it, key, desc) { | |
| 20493 | + return $Object.defineProperty(it, key, desc); | |
| 20494 | +}; | |
| 20495 | + | |
| 20496 | + | |
| 20497 | +/***/ }), | |
| 20498 | + | |
| 20499 | +/***/ "../node_modules/core-js/library/fn/object/entries.js": | |
| 20500 | +/*!************************************************************!*\ | |
| 20501 | + !*** ../node_modules/core-js/library/fn/object/entries.js ***! | |
| 20502 | + \************************************************************/ | |
| 20503 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20504 | + | |
| 20505 | +__webpack_require__(/*! ../../modules/es7.object.entries */ "../node_modules/core-js/library/modules/es7.object.entries.js"); | |
| 20506 | +module.exports = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Object.entries; | |
| 20507 | + | |
| 20508 | + | |
| 20509 | +/***/ }), | |
| 20510 | + | |
| 20511 | +/***/ "../node_modules/core-js/library/fn/object/get-own-property-descriptor.js": | |
| 20512 | +/*!********************************************************************************!*\ | |
| 20513 | + !*** ../node_modules/core-js/library/fn/object/get-own-property-descriptor.js ***! | |
| 20514 | + \********************************************************************************/ | |
| 20515 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20516 | + | |
| 20517 | +__webpack_require__(/*! ../../modules/es6.object.get-own-property-descriptor */ "../node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js"); | |
| 20518 | +var $Object = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Object; | |
| 20519 | +module.exports = function getOwnPropertyDescriptor(it, key) { | |
| 20520 | + return $Object.getOwnPropertyDescriptor(it, key); | |
| 20521 | +}; | |
| 20522 | + | |
| 20523 | + | |
| 20524 | +/***/ }), | |
| 20525 | + | |
| 20526 | +/***/ "../node_modules/core-js/library/fn/object/get-own-property-descriptors.js": | |
| 20527 | +/*!*********************************************************************************!*\ | |
| 20528 | + !*** ../node_modules/core-js/library/fn/object/get-own-property-descriptors.js ***! | |
| 20529 | + \*********************************************************************************/ | |
| 20530 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20531 | + | |
| 20532 | +__webpack_require__(/*! ../../modules/es7.object.get-own-property-descriptors */ "../node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js"); | |
| 20533 | +module.exports = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Object.getOwnPropertyDescriptors; | |
| 20534 | + | |
| 20535 | + | |
| 20536 | +/***/ }), | |
| 20537 | + | |
| 20538 | +/***/ "../node_modules/core-js/library/fn/object/get-own-property-symbols.js": | |
| 20539 | +/*!*****************************************************************************!*\ | |
| 20540 | + !*** ../node_modules/core-js/library/fn/object/get-own-property-symbols.js ***! | |
| 20541 | + \*****************************************************************************/ | |
| 20542 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20543 | + | |
| 20544 | +__webpack_require__(/*! ../../modules/es6.symbol */ "../node_modules/core-js/library/modules/es6.symbol.js"); | |
| 20545 | +module.exports = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Object.getOwnPropertySymbols; | |
| 20546 | + | |
| 20547 | + | |
| 20548 | +/***/ }), | |
| 20549 | + | |
| 20550 | +/***/ "../node_modules/core-js/library/fn/object/get-prototype-of.js": | |
| 20551 | +/*!*********************************************************************!*\ | |
| 20552 | + !*** ../node_modules/core-js/library/fn/object/get-prototype-of.js ***! | |
| 20553 | + \*********************************************************************/ | |
| 20554 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20555 | + | |
| 20556 | +__webpack_require__(/*! ../../modules/es6.object.get-prototype-of */ "../node_modules/core-js/library/modules/es6.object.get-prototype-of.js"); | |
| 20557 | +module.exports = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Object.getPrototypeOf; | |
| 20558 | + | |
| 20559 | + | |
| 20560 | +/***/ }), | |
| 20561 | + | |
| 20562 | +/***/ "../node_modules/core-js/library/fn/object/keys.js": | |
| 20563 | +/*!*********************************************************!*\ | |
| 20564 | + !*** ../node_modules/core-js/library/fn/object/keys.js ***! | |
| 20565 | + \*********************************************************/ | |
| 20566 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20567 | + | |
| 20568 | +__webpack_require__(/*! ../../modules/es6.object.keys */ "../node_modules/core-js/library/modules/es6.object.keys.js"); | |
| 20569 | +module.exports = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Object.keys; | |
| 20570 | + | |
| 20571 | + | |
| 20572 | +/***/ }), | |
| 20573 | + | |
| 20574 | +/***/ "../node_modules/core-js/library/fn/object/set-prototype-of.js": | |
| 20575 | +/*!*********************************************************************!*\ | |
| 20576 | + !*** ../node_modules/core-js/library/fn/object/set-prototype-of.js ***! | |
| 20577 | + \*********************************************************************/ | |
| 20578 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20579 | + | |
| 20580 | +__webpack_require__(/*! ../../modules/es6.object.set-prototype-of */ "../node_modules/core-js/library/modules/es6.object.set-prototype-of.js"); | |
| 20581 | +module.exports = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Object.setPrototypeOf; | |
| 20582 | + | |
| 20583 | + | |
| 20584 | +/***/ }), | |
| 20585 | + | |
| 20586 | +/***/ "../node_modules/core-js/library/fn/object/values.js": | |
| 20587 | +/*!***********************************************************!*\ | |
| 20588 | + !*** ../node_modules/core-js/library/fn/object/values.js ***! | |
| 20589 | + \***********************************************************/ | |
| 20590 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20591 | + | |
| 20592 | +__webpack_require__(/*! ../../modules/es7.object.values */ "../node_modules/core-js/library/modules/es7.object.values.js"); | |
| 20593 | +module.exports = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Object.values; | |
| 20594 | + | |
| 20595 | + | |
| 20596 | +/***/ }), | |
| 20597 | + | |
| 20598 | +/***/ "../node_modules/core-js/library/fn/parse-int.js": | |
| 20599 | +/*!*******************************************************!*\ | |
| 20600 | + !*** ../node_modules/core-js/library/fn/parse-int.js ***! | |
| 20601 | + \*******************************************************/ | |
| 20602 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20603 | + | |
| 20604 | +__webpack_require__(/*! ../modules/es6.parse-int */ "../node_modules/core-js/library/modules/es6.parse-int.js"); | |
| 20605 | +module.exports = __webpack_require__(/*! ../modules/_core */ "../node_modules/core-js/library/modules/_core.js").parseInt; | |
| 20606 | + | |
| 20607 | + | |
| 20608 | +/***/ }), | |
| 20609 | + | |
| 20610 | +/***/ "../node_modules/core-js/library/fn/promise.js": | |
| 20611 | +/*!*****************************************************!*\ | |
| 20612 | + !*** ../node_modules/core-js/library/fn/promise.js ***! | |
| 20613 | + \*****************************************************/ | |
| 20614 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20615 | + | |
| 20616 | +__webpack_require__(/*! ../modules/es6.object.to-string */ "../node_modules/core-js/library/modules/es6.object.to-string.js"); | |
| 20617 | +__webpack_require__(/*! ../modules/es6.string.iterator */ "../node_modules/core-js/library/modules/es6.string.iterator.js"); | |
| 20618 | +__webpack_require__(/*! ../modules/web.dom.iterable */ "../node_modules/core-js/library/modules/web.dom.iterable.js"); | |
| 20619 | +__webpack_require__(/*! ../modules/es6.promise */ "../node_modules/core-js/library/modules/es6.promise.js"); | |
| 20620 | +__webpack_require__(/*! ../modules/es7.promise.finally */ "../node_modules/core-js/library/modules/es7.promise.finally.js"); | |
| 20621 | +__webpack_require__(/*! ../modules/es7.promise.try */ "../node_modules/core-js/library/modules/es7.promise.try.js"); | |
| 20622 | +module.exports = __webpack_require__(/*! ../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Promise; | |
| 20623 | + | |
| 20624 | + | |
| 20625 | +/***/ }), | |
| 20626 | + | |
| 20627 | +/***/ "../node_modules/core-js/library/fn/reflect/construct.js": | |
| 20628 | +/*!***************************************************************!*\ | |
| 20629 | + !*** ../node_modules/core-js/library/fn/reflect/construct.js ***! | |
| 20630 | + \***************************************************************/ | |
| 20631 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20632 | + | |
| 20633 | +__webpack_require__(/*! ../../modules/es6.reflect.construct */ "../node_modules/core-js/library/modules/es6.reflect.construct.js"); | |
| 20634 | +module.exports = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Reflect.construct; | |
| 20635 | + | |
| 20636 | + | |
| 20637 | +/***/ }), | |
| 20638 | + | |
| 20639 | +/***/ "../node_modules/core-js/library/fn/reflect/get.js": | |
| 20640 | +/*!*********************************************************!*\ | |
| 20641 | + !*** ../node_modules/core-js/library/fn/reflect/get.js ***! | |
| 20642 | + \*********************************************************/ | |
| 20643 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20644 | + | |
| 20645 | +__webpack_require__(/*! ../../modules/es6.reflect.get */ "../node_modules/core-js/library/modules/es6.reflect.get.js"); | |
| 20646 | +module.exports = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Reflect.get; | |
| 20647 | + | |
| 20648 | + | |
| 20649 | +/***/ }), | |
| 20650 | + | |
| 20651 | +/***/ "../node_modules/core-js/library/fn/symbol/has-instance.js": | |
| 20652 | +/*!*****************************************************************!*\ | |
| 20653 | + !*** ../node_modules/core-js/library/fn/symbol/has-instance.js ***! | |
| 20654 | + \*****************************************************************/ | |
| 20655 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20656 | + | |
| 20657 | +__webpack_require__(/*! ../../modules/es6.function.has-instance */ "../node_modules/core-js/library/modules/es6.function.has-instance.js"); | |
| 20658 | +module.exports = __webpack_require__(/*! ../../modules/_wks-ext */ "../node_modules/core-js/library/modules/_wks-ext.js").f('hasInstance'); | |
| 20659 | + | |
| 20660 | + | |
| 20661 | +/***/ }), | |
| 20662 | + | |
| 20663 | +/***/ "../node_modules/core-js/library/fn/symbol/index.js": | |
| 20664 | +/*!**********************************************************!*\ | |
| 20665 | + !*** ../node_modules/core-js/library/fn/symbol/index.js ***! | |
| 20666 | + \**********************************************************/ | |
| 20667 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20668 | + | |
| 20669 | +__webpack_require__(/*! ../../modules/es6.symbol */ "../node_modules/core-js/library/modules/es6.symbol.js"); | |
| 20670 | +__webpack_require__(/*! ../../modules/es6.object.to-string */ "../node_modules/core-js/library/modules/es6.object.to-string.js"); | |
| 20671 | +__webpack_require__(/*! ../../modules/es7.symbol.async-iterator */ "../node_modules/core-js/library/modules/es7.symbol.async-iterator.js"); | |
| 20672 | +__webpack_require__(/*! ../../modules/es7.symbol.observable */ "../node_modules/core-js/library/modules/es7.symbol.observable.js"); | |
| 20673 | +module.exports = __webpack_require__(/*! ../../modules/_core */ "../node_modules/core-js/library/modules/_core.js").Symbol; | |
| 20674 | + | |
| 20675 | + | |
| 20676 | +/***/ }), | |
| 20677 | + | |
| 20678 | +/***/ "../node_modules/core-js/library/fn/symbol/iterator.js": | |
| 20679 | +/*!*************************************************************!*\ | |
| 20680 | + !*** ../node_modules/core-js/library/fn/symbol/iterator.js ***! | |
| 20681 | + \*************************************************************/ | |
| 20682 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20683 | + | |
| 20684 | +__webpack_require__(/*! ../../modules/es6.string.iterator */ "../node_modules/core-js/library/modules/es6.string.iterator.js"); | |
| 20685 | +__webpack_require__(/*! ../../modules/web.dom.iterable */ "../node_modules/core-js/library/modules/web.dom.iterable.js"); | |
| 20686 | +module.exports = __webpack_require__(/*! ../../modules/_wks-ext */ "../node_modules/core-js/library/modules/_wks-ext.js").f('iterator'); | |
| 20687 | + | |
| 20688 | + | |
| 20689 | +/***/ }), | |
| 20690 | + | |
| 20691 | +/***/ "../node_modules/core-js/library/fn/symbol/to-string-tag.js": | |
| 1201 | 20692 | /*!******************************************************************!*\ |
| 1202 | - !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 20693 | + !*** ../node_modules/core-js/library/fn/symbol/to-string-tag.js ***! | |
| 1203 | 20694 | \******************************************************************/ |
| 20695 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20696 | + | |
| 20697 | +__webpack_require__(/*! ../../modules/es6.object.to-string */ "../node_modules/core-js/library/modules/es6.object.to-string.js"); | |
| 20698 | +module.exports = __webpack_require__(/*! ../../modules/_wks-ext */ "../node_modules/core-js/library/modules/_wks-ext.js").f('toStringTag'); | |
| 20699 | + | |
| 20700 | + | |
| 20701 | +/***/ }), | |
| 20702 | + | |
| 20703 | +/***/ "../node_modules/core-js/library/fn/weak-map.js": | |
| 20704 | +/*!******************************************************!*\ | |
| 20705 | + !*** ../node_modules/core-js/library/fn/weak-map.js ***! | |
| 20706 | + \******************************************************/ | |
| 20707 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20708 | + | |
| 20709 | +__webpack_require__(/*! ../modules/es6.object.to-string */ "../node_modules/core-js/library/modules/es6.object.to-string.js"); | |
| 20710 | +__webpack_require__(/*! ../modules/web.dom.iterable */ "../node_modules/core-js/library/modules/web.dom.iterable.js"); | |
| 20711 | +__webpack_require__(/*! ../modules/es6.weak-map */ "../node_modules/core-js/library/modules/es6.weak-map.js"); | |
| 20712 | +__webpack_require__(/*! ../modules/es7.weak-map.of */ "../node_modules/core-js/library/modules/es7.weak-map.of.js"); | |
| 20713 | +__webpack_require__(/*! ../modules/es7.weak-map.from */ "../node_modules/core-js/library/modules/es7.weak-map.from.js"); | |
| 20714 | +module.exports = __webpack_require__(/*! ../modules/_core */ "../node_modules/core-js/library/modules/_core.js").WeakMap; | |
| 20715 | + | |
| 20716 | + | |
| 20717 | +/***/ }), | |
| 20718 | + | |
| 20719 | +/***/ "../node_modules/core-js/library/modules/_a-function.js": | |
| 20720 | +/*!**************************************************************!*\ | |
| 20721 | + !*** ../node_modules/core-js/library/modules/_a-function.js ***! | |
| 20722 | + \**************************************************************/ | |
| 1204 | 20723 | /***/ ((module) => { |
| 1205 | 20724 | |
| 1206 | -function _arrayLikeToArray(r, a) { | |
| 1207 | - (null == a || a > r.length) && (a = r.length); | |
| 1208 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 1209 | - return n; | |
| 20725 | +module.exports = function (it) { | |
| 20726 | + if (typeof it != 'function') throw TypeError(it + ' is not a function!'); | |
| 20727 | + return it; | |
| 20728 | +}; | |
| 20729 | + | |
| 20730 | + | |
| 20731 | +/***/ }), | |
| 20732 | + | |
| 20733 | +/***/ "../node_modules/core-js/library/modules/_add-to-unscopables.js": | |
| 20734 | +/*!**********************************************************************!*\ | |
| 20735 | + !*** ../node_modules/core-js/library/modules/_add-to-unscopables.js ***! | |
| 20736 | + \**********************************************************************/ | |
| 20737 | +/***/ ((module) => { | |
| 20738 | + | |
| 20739 | +module.exports = function () { /* empty */ }; | |
| 20740 | + | |
| 20741 | + | |
| 20742 | +/***/ }), | |
| 20743 | + | |
| 20744 | +/***/ "../node_modules/core-js/library/modules/_an-instance.js": | |
| 20745 | +/*!***************************************************************!*\ | |
| 20746 | + !*** ../node_modules/core-js/library/modules/_an-instance.js ***! | |
| 20747 | + \***************************************************************/ | |
| 20748 | +/***/ ((module) => { | |
| 20749 | + | |
| 20750 | +module.exports = function (it, Constructor, name, forbiddenField) { | |
| 20751 | + if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { | |
| 20752 | + throw TypeError(name + ': incorrect invocation!'); | |
| 20753 | + } return it; | |
| 20754 | +}; | |
| 20755 | + | |
| 20756 | + | |
| 20757 | +/***/ }), | |
| 20758 | + | |
| 20759 | +/***/ "../node_modules/core-js/library/modules/_an-object.js": | |
| 20760 | +/*!*************************************************************!*\ | |
| 20761 | + !*** ../node_modules/core-js/library/modules/_an-object.js ***! | |
| 20762 | + \*************************************************************/ | |
| 20763 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20764 | + | |
| 20765 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 20766 | +module.exports = function (it) { | |
| 20767 | + if (!isObject(it)) throw TypeError(it + ' is not an object!'); | |
| 20768 | + return it; | |
| 20769 | +}; | |
| 20770 | + | |
| 20771 | + | |
| 20772 | +/***/ }), | |
| 20773 | + | |
| 20774 | +/***/ "../node_modules/core-js/library/modules/_array-from-iterable.js": | |
| 20775 | +/*!***********************************************************************!*\ | |
| 20776 | + !*** ../node_modules/core-js/library/modules/_array-from-iterable.js ***! | |
| 20777 | + \***********************************************************************/ | |
| 20778 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20779 | + | |
| 20780 | +var forOf = __webpack_require__(/*! ./_for-of */ "../node_modules/core-js/library/modules/_for-of.js"); | |
| 20781 | + | |
| 20782 | +module.exports = function (iter, ITERATOR) { | |
| 20783 | + var result = []; | |
| 20784 | + forOf(iter, false, result.push, result, ITERATOR); | |
| 20785 | + return result; | |
| 20786 | +}; | |
| 20787 | + | |
| 20788 | + | |
| 20789 | +/***/ }), | |
| 20790 | + | |
| 20791 | +/***/ "../node_modules/core-js/library/modules/_array-includes.js": | |
| 20792 | +/*!******************************************************************!*\ | |
| 20793 | + !*** ../node_modules/core-js/library/modules/_array-includes.js ***! | |
| 20794 | + \******************************************************************/ | |
| 20795 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20796 | + | |
| 20797 | +// false -> Array#indexOf | |
| 20798 | +// true -> Array#includes | |
| 20799 | +var toIObject = __webpack_require__(/*! ./_to-iobject */ "../node_modules/core-js/library/modules/_to-iobject.js"); | |
| 20800 | +var toLength = __webpack_require__(/*! ./_to-length */ "../node_modules/core-js/library/modules/_to-length.js"); | |
| 20801 | +var toAbsoluteIndex = __webpack_require__(/*! ./_to-absolute-index */ "../node_modules/core-js/library/modules/_to-absolute-index.js"); | |
| 20802 | +module.exports = function (IS_INCLUDES) { | |
| 20803 | + return function ($this, el, fromIndex) { | |
| 20804 | + var O = toIObject($this); | |
| 20805 | + var length = toLength(O.length); | |
| 20806 | + var index = toAbsoluteIndex(fromIndex, length); | |
| 20807 | + var value; | |
| 20808 | + // Array#includes uses SameValueZero equality algorithm | |
| 20809 | + // eslint-disable-next-line no-self-compare | |
| 20810 | + if (IS_INCLUDES && el != el) while (length > index) { | |
| 20811 | + value = O[index++]; | |
| 20812 | + // eslint-disable-next-line no-self-compare | |
| 20813 | + if (value != value) return true; | |
| 20814 | + // Array#indexOf ignores holes, Array#includes - not | |
| 20815 | + } else for (;length > index; index++) if (IS_INCLUDES || index in O) { | |
| 20816 | + if (O[index] === el) return IS_INCLUDES || index || 0; | |
| 20817 | + } return !IS_INCLUDES && -1; | |
| 20818 | + }; | |
| 20819 | +}; | |
| 20820 | + | |
| 20821 | + | |
| 20822 | +/***/ }), | |
| 20823 | + | |
| 20824 | +/***/ "../node_modules/core-js/library/modules/_array-methods.js": | |
| 20825 | +/*!*****************************************************************!*\ | |
| 20826 | + !*** ../node_modules/core-js/library/modules/_array-methods.js ***! | |
| 20827 | + \*****************************************************************/ | |
| 20828 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20829 | + | |
| 20830 | +// 0 -> Array#forEach | |
| 20831 | +// 1 -> Array#map | |
| 20832 | +// 2 -> Array#filter | |
| 20833 | +// 3 -> Array#some | |
| 20834 | +// 4 -> Array#every | |
| 20835 | +// 5 -> Array#find | |
| 20836 | +// 6 -> Array#findIndex | |
| 20837 | +var ctx = __webpack_require__(/*! ./_ctx */ "../node_modules/core-js/library/modules/_ctx.js"); | |
| 20838 | +var IObject = __webpack_require__(/*! ./_iobject */ "../node_modules/core-js/library/modules/_iobject.js"); | |
| 20839 | +var toObject = __webpack_require__(/*! ./_to-object */ "../node_modules/core-js/library/modules/_to-object.js"); | |
| 20840 | +var toLength = __webpack_require__(/*! ./_to-length */ "../node_modules/core-js/library/modules/_to-length.js"); | |
| 20841 | +var asc = __webpack_require__(/*! ./_array-species-create */ "../node_modules/core-js/library/modules/_array-species-create.js"); | |
| 20842 | +module.exports = function (TYPE, $create) { | |
| 20843 | + var IS_MAP = TYPE == 1; | |
| 20844 | + var IS_FILTER = TYPE == 2; | |
| 20845 | + var IS_SOME = TYPE == 3; | |
| 20846 | + var IS_EVERY = TYPE == 4; | |
| 20847 | + var IS_FIND_INDEX = TYPE == 6; | |
| 20848 | + var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; | |
| 20849 | + var create = $create || asc; | |
| 20850 | + return function ($this, callbackfn, that) { | |
| 20851 | + var O = toObject($this); | |
| 20852 | + var self = IObject(O); | |
| 20853 | + var f = ctx(callbackfn, that, 3); | |
| 20854 | + var length = toLength(self.length); | |
| 20855 | + var index = 0; | |
| 20856 | + var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; | |
| 20857 | + var val, res; | |
| 20858 | + for (;length > index; index++) if (NO_HOLES || index in self) { | |
| 20859 | + val = self[index]; | |
| 20860 | + res = f(val, index, O); | |
| 20861 | + if (TYPE) { | |
| 20862 | + if (IS_MAP) result[index] = res; // map | |
| 20863 | + else if (res) switch (TYPE) { | |
| 20864 | + case 3: return true; // some | |
| 20865 | + case 5: return val; // find | |
| 20866 | + case 6: return index; // findIndex | |
| 20867 | + case 2: result.push(val); // filter | |
| 20868 | + } else if (IS_EVERY) return false; // every | |
| 20869 | + } | |
| 20870 | + } | |
| 20871 | + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; | |
| 20872 | + }; | |
| 20873 | +}; | |
| 20874 | + | |
| 20875 | + | |
| 20876 | +/***/ }), | |
| 20877 | + | |
| 20878 | +/***/ "../node_modules/core-js/library/modules/_array-species-constructor.js": | |
| 20879 | +/*!*****************************************************************************!*\ | |
| 20880 | + !*** ../node_modules/core-js/library/modules/_array-species-constructor.js ***! | |
| 20881 | + \*****************************************************************************/ | |
| 20882 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20883 | + | |
| 20884 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 20885 | +var isArray = __webpack_require__(/*! ./_is-array */ "../node_modules/core-js/library/modules/_is-array.js"); | |
| 20886 | +var SPECIES = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/library/modules/_wks.js")('species'); | |
| 20887 | + | |
| 20888 | +module.exports = function (original) { | |
| 20889 | + var C; | |
| 20890 | + if (isArray(original)) { | |
| 20891 | + C = original.constructor; | |
| 20892 | + // cross-realm fallback | |
| 20893 | + if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; | |
| 20894 | + if (isObject(C)) { | |
| 20895 | + C = C[SPECIES]; | |
| 20896 | + if (C === null) C = undefined; | |
| 20897 | + } | |
| 20898 | + } return C === undefined ? Array : C; | |
| 20899 | +}; | |
| 20900 | + | |
| 20901 | + | |
| 20902 | +/***/ }), | |
| 20903 | + | |
| 20904 | +/***/ "../node_modules/core-js/library/modules/_array-species-create.js": | |
| 20905 | +/*!************************************************************************!*\ | |
| 20906 | + !*** ../node_modules/core-js/library/modules/_array-species-create.js ***! | |
| 20907 | + \************************************************************************/ | |
| 20908 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20909 | + | |
| 20910 | +// 9.4.2.3 ArraySpeciesCreate(originalArray, length) | |
| 20911 | +var speciesConstructor = __webpack_require__(/*! ./_array-species-constructor */ "../node_modules/core-js/library/modules/_array-species-constructor.js"); | |
| 20912 | + | |
| 20913 | +module.exports = function (original, length) { | |
| 20914 | + return new (speciesConstructor(original))(length); | |
| 20915 | +}; | |
| 20916 | + | |
| 20917 | + | |
| 20918 | +/***/ }), | |
| 20919 | + | |
| 20920 | +/***/ "../node_modules/core-js/library/modules/_bind.js": | |
| 20921 | +/*!********************************************************!*\ | |
| 20922 | + !*** ../node_modules/core-js/library/modules/_bind.js ***! | |
| 20923 | + \********************************************************/ | |
| 20924 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20925 | + | |
| 20926 | +"use strict"; | |
| 20927 | + | |
| 20928 | +var aFunction = __webpack_require__(/*! ./_a-function */ "../node_modules/core-js/library/modules/_a-function.js"); | |
| 20929 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 20930 | +var invoke = __webpack_require__(/*! ./_invoke */ "../node_modules/core-js/library/modules/_invoke.js"); | |
| 20931 | +var arraySlice = [].slice; | |
| 20932 | +var factories = {}; | |
| 20933 | + | |
| 20934 | +var construct = function (F, len, args) { | |
| 20935 | + if (!(len in factories)) { | |
| 20936 | + for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']'; | |
| 20937 | + // eslint-disable-next-line no-new-func | |
| 20938 | + factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')'); | |
| 20939 | + } return factories[len](F, args); | |
| 20940 | +}; | |
| 20941 | + | |
| 20942 | +module.exports = Function.bind || function bind(that /* , ...args */) { | |
| 20943 | + var fn = aFunction(this); | |
| 20944 | + var partArgs = arraySlice.call(arguments, 1); | |
| 20945 | + var bound = function (/* args... */) { | |
| 20946 | + var args = partArgs.concat(arraySlice.call(arguments)); | |
| 20947 | + return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that); | |
| 20948 | + }; | |
| 20949 | + if (isObject(fn.prototype)) bound.prototype = fn.prototype; | |
| 20950 | + return bound; | |
| 20951 | +}; | |
| 20952 | + | |
| 20953 | + | |
| 20954 | +/***/ }), | |
| 20955 | + | |
| 20956 | +/***/ "../node_modules/core-js/library/modules/_classof.js": | |
| 20957 | +/*!***********************************************************!*\ | |
| 20958 | + !*** ../node_modules/core-js/library/modules/_classof.js ***! | |
| 20959 | + \***********************************************************/ | |
| 20960 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 20961 | + | |
| 20962 | +// getting tag from 19.1.3.6 Object.prototype.toString() | |
| 20963 | +var cof = __webpack_require__(/*! ./_cof */ "../node_modules/core-js/library/modules/_cof.js"); | |
| 20964 | +var TAG = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/library/modules/_wks.js")('toStringTag'); | |
| 20965 | +// ES3 wrong here | |
| 20966 | +var ARG = cof(function () { return arguments; }()) == 'Arguments'; | |
| 20967 | + | |
| 20968 | +// fallback for IE11 Script Access Denied error | |
| 20969 | +var tryGet = function (it, key) { | |
| 20970 | + try { | |
| 20971 | + return it[key]; | |
| 20972 | + } catch (e) { /* empty */ } | |
| 20973 | +}; | |
| 20974 | + | |
| 20975 | +module.exports = function (it) { | |
| 20976 | + var O, T, B; | |
| 20977 | + return it === undefined ? 'Undefined' : it === null ? 'Null' | |
| 20978 | + // @@toStringTag case | |
| 20979 | + : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T | |
| 20980 | + // builtinTag case | |
| 20981 | + : ARG ? cof(O) | |
| 20982 | + // ES3 arguments fallback | |
| 20983 | + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; | |
| 20984 | +}; | |
| 20985 | + | |
| 20986 | + | |
| 20987 | +/***/ }), | |
| 20988 | + | |
| 20989 | +/***/ "../node_modules/core-js/library/modules/_cof.js": | |
| 20990 | +/*!*******************************************************!*\ | |
| 20991 | + !*** ../node_modules/core-js/library/modules/_cof.js ***! | |
| 20992 | + \*******************************************************/ | |
| 20993 | +/***/ ((module) => { | |
| 20994 | + | |
| 20995 | +var toString = {}.toString; | |
| 20996 | + | |
| 20997 | +module.exports = function (it) { | |
| 20998 | + return toString.call(it).slice(8, -1); | |
| 20999 | +}; | |
| 21000 | + | |
| 21001 | + | |
| 21002 | +/***/ }), | |
| 21003 | + | |
| 21004 | +/***/ "../node_modules/core-js/library/modules/_collection-strong.js": | |
| 21005 | +/*!*********************************************************************!*\ | |
| 21006 | + !*** ../node_modules/core-js/library/modules/_collection-strong.js ***! | |
| 21007 | + \*********************************************************************/ | |
| 21008 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21009 | + | |
| 21010 | +"use strict"; | |
| 21011 | + | |
| 21012 | +var dP = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/library/modules/_object-dp.js").f; | |
| 21013 | +var create = __webpack_require__(/*! ./_object-create */ "../node_modules/core-js/library/modules/_object-create.js"); | |
| 21014 | +var redefineAll = __webpack_require__(/*! ./_redefine-all */ "../node_modules/core-js/library/modules/_redefine-all.js"); | |
| 21015 | +var ctx = __webpack_require__(/*! ./_ctx */ "../node_modules/core-js/library/modules/_ctx.js"); | |
| 21016 | +var anInstance = __webpack_require__(/*! ./_an-instance */ "../node_modules/core-js/library/modules/_an-instance.js"); | |
| 21017 | +var forOf = __webpack_require__(/*! ./_for-of */ "../node_modules/core-js/library/modules/_for-of.js"); | |
| 21018 | +var $iterDefine = __webpack_require__(/*! ./_iter-define */ "../node_modules/core-js/library/modules/_iter-define.js"); | |
| 21019 | +var step = __webpack_require__(/*! ./_iter-step */ "../node_modules/core-js/library/modules/_iter-step.js"); | |
| 21020 | +var setSpecies = __webpack_require__(/*! ./_set-species */ "../node_modules/core-js/library/modules/_set-species.js"); | |
| 21021 | +var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/library/modules/_descriptors.js"); | |
| 21022 | +var fastKey = __webpack_require__(/*! ./_meta */ "../node_modules/core-js/library/modules/_meta.js").fastKey; | |
| 21023 | +var validate = __webpack_require__(/*! ./_validate-collection */ "../node_modules/core-js/library/modules/_validate-collection.js"); | |
| 21024 | +var SIZE = DESCRIPTORS ? '_s' : 'size'; | |
| 21025 | + | |
| 21026 | +var getEntry = function (that, key) { | |
| 21027 | + // fast case | |
| 21028 | + var index = fastKey(key); | |
| 21029 | + var entry; | |
| 21030 | + if (index !== 'F') return that._i[index]; | |
| 21031 | + // frozen object case | |
| 21032 | + for (entry = that._f; entry; entry = entry.n) { | |
| 21033 | + if (entry.k == key) return entry; | |
| 21034 | + } | |
| 21035 | +}; | |
| 21036 | + | |
| 21037 | +module.exports = { | |
| 21038 | + getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { | |
| 21039 | + var C = wrapper(function (that, iterable) { | |
| 21040 | + anInstance(that, C, NAME, '_i'); | |
| 21041 | + that._t = NAME; // collection type | |
| 21042 | + that._i = create(null); // index | |
| 21043 | + that._f = undefined; // first entry | |
| 21044 | + that._l = undefined; // last entry | |
| 21045 | + that[SIZE] = 0; // size | |
| 21046 | + if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); | |
| 21047 | + }); | |
| 21048 | + redefineAll(C.prototype, { | |
| 21049 | + // 23.1.3.1 Map.prototype.clear() | |
| 21050 | + // 23.2.3.2 Set.prototype.clear() | |
| 21051 | + clear: function clear() { | |
| 21052 | + for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) { | |
| 21053 | + entry.r = true; | |
| 21054 | + if (entry.p) entry.p = entry.p.n = undefined; | |
| 21055 | + delete data[entry.i]; | |
| 21056 | + } | |
| 21057 | + that._f = that._l = undefined; | |
| 21058 | + that[SIZE] = 0; | |
| 21059 | + }, | |
| 21060 | + // 23.1.3.3 Map.prototype.delete(key) | |
| 21061 | + // 23.2.3.4 Set.prototype.delete(value) | |
| 21062 | + 'delete': function (key) { | |
| 21063 | + var that = validate(this, NAME); | |
| 21064 | + var entry = getEntry(that, key); | |
| 21065 | + if (entry) { | |
| 21066 | + var next = entry.n; | |
| 21067 | + var prev = entry.p; | |
| 21068 | + delete that._i[entry.i]; | |
| 21069 | + entry.r = true; | |
| 21070 | + if (prev) prev.n = next; | |
| 21071 | + if (next) next.p = prev; | |
| 21072 | + if (that._f == entry) that._f = next; | |
| 21073 | + if (that._l == entry) that._l = prev; | |
| 21074 | + that[SIZE]--; | |
| 21075 | + } return !!entry; | |
| 21076 | + }, | |
| 21077 | + // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined) | |
| 21078 | + // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined) | |
| 21079 | + forEach: function forEach(callbackfn /* , that = undefined */) { | |
| 21080 | + validate(this, NAME); | |
| 21081 | + var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3); | |
| 21082 | + var entry; | |
| 21083 | + while (entry = entry ? entry.n : this._f) { | |
| 21084 | + f(entry.v, entry.k, this); | |
| 21085 | + // revert to the last existing entry | |
| 21086 | + while (entry && entry.r) entry = entry.p; | |
| 21087 | + } | |
| 21088 | + }, | |
| 21089 | + // 23.1.3.7 Map.prototype.has(key) | |
| 21090 | + // 23.2.3.7 Set.prototype.has(value) | |
| 21091 | + has: function has(key) { | |
| 21092 | + return !!getEntry(validate(this, NAME), key); | |
| 21093 | + } | |
| 21094 | + }); | |
| 21095 | + if (DESCRIPTORS) dP(C.prototype, 'size', { | |
| 21096 | + get: function () { | |
| 21097 | + return validate(this, NAME)[SIZE]; | |
| 21098 | + } | |
| 21099 | + }); | |
| 21100 | + return C; | |
| 21101 | + }, | |
| 21102 | + def: function (that, key, value) { | |
| 21103 | + var entry = getEntry(that, key); | |
| 21104 | + var prev, index; | |
| 21105 | + // change existing entry | |
| 21106 | + if (entry) { | |
| 21107 | + entry.v = value; | |
| 21108 | + // create new entry | |
| 21109 | + } else { | |
| 21110 | + that._l = entry = { | |
| 21111 | + i: index = fastKey(key, true), // <- index | |
| 21112 | + k: key, // <- key | |
| 21113 | + v: value, // <- value | |
| 21114 | + p: prev = that._l, // <- previous entry | |
| 21115 | + n: undefined, // <- next entry | |
| 21116 | + r: false // <- removed | |
| 21117 | + }; | |
| 21118 | + if (!that._f) that._f = entry; | |
| 21119 | + if (prev) prev.n = entry; | |
| 21120 | + that[SIZE]++; | |
| 21121 | + // add to index | |
| 21122 | + if (index !== 'F') that._i[index] = entry; | |
| 21123 | + } return that; | |
| 21124 | + }, | |
| 21125 | + getEntry: getEntry, | |
| 21126 | + setStrong: function (C, NAME, IS_MAP) { | |
| 21127 | + // add .keys, .values, .entries, [@@iterator] | |
| 21128 | + // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11 | |
| 21129 | + $iterDefine(C, NAME, function (iterated, kind) { | |
| 21130 | + this._t = validate(iterated, NAME); // target | |
| 21131 | + this._k = kind; // kind | |
| 21132 | + this._l = undefined; // previous | |
| 21133 | + }, function () { | |
| 21134 | + var that = this; | |
| 21135 | + var kind = that._k; | |
| 21136 | + var entry = that._l; | |
| 21137 | + // revert to the last existing entry | |
| 21138 | + while (entry && entry.r) entry = entry.p; | |
| 21139 | + // get next entry | |
| 21140 | + if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) { | |
| 21141 | + // or finish the iteration | |
| 21142 | + that._t = undefined; | |
| 21143 | + return step(1); | |
| 21144 | + } | |
| 21145 | + // return step by kind | |
| 21146 | + if (kind == 'keys') return step(0, entry.k); | |
| 21147 | + if (kind == 'values') return step(0, entry.v); | |
| 21148 | + return step(0, [entry.k, entry.v]); | |
| 21149 | + }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); | |
| 21150 | + | |
| 21151 | + // add [@@species], 23.1.2.2, 23.2.2.2 | |
| 21152 | + setSpecies(NAME); | |
| 21153 | + } | |
| 21154 | +}; | |
| 21155 | + | |
| 21156 | + | |
| 21157 | +/***/ }), | |
| 21158 | + | |
| 21159 | +/***/ "../node_modules/core-js/library/modules/_collection-to-json.js": | |
| 21160 | +/*!**********************************************************************!*\ | |
| 21161 | + !*** ../node_modules/core-js/library/modules/_collection-to-json.js ***! | |
| 21162 | + \**********************************************************************/ | |
| 21163 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21164 | + | |
| 21165 | +// https://github.com/DavidBruant/Map-Set.prototype.toJSON | |
| 21166 | +var classof = __webpack_require__(/*! ./_classof */ "../node_modules/core-js/library/modules/_classof.js"); | |
| 21167 | +var from = __webpack_require__(/*! ./_array-from-iterable */ "../node_modules/core-js/library/modules/_array-from-iterable.js"); | |
| 21168 | +module.exports = function (NAME) { | |
| 21169 | + return function toJSON() { | |
| 21170 | + if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic"); | |
| 21171 | + return from(this); | |
| 21172 | + }; | |
| 21173 | +}; | |
| 21174 | + | |
| 21175 | + | |
| 21176 | +/***/ }), | |
| 21177 | + | |
| 21178 | +/***/ "../node_modules/core-js/library/modules/_collection-weak.js": | |
| 21179 | +/*!*******************************************************************!*\ | |
| 21180 | + !*** ../node_modules/core-js/library/modules/_collection-weak.js ***! | |
| 21181 | + \*******************************************************************/ | |
| 21182 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21183 | + | |
| 21184 | +"use strict"; | |
| 21185 | + | |
| 21186 | +var redefineAll = __webpack_require__(/*! ./_redefine-all */ "../node_modules/core-js/library/modules/_redefine-all.js"); | |
| 21187 | +var getWeak = __webpack_require__(/*! ./_meta */ "../node_modules/core-js/library/modules/_meta.js").getWeak; | |
| 21188 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/library/modules/_an-object.js"); | |
| 21189 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 21190 | +var anInstance = __webpack_require__(/*! ./_an-instance */ "../node_modules/core-js/library/modules/_an-instance.js"); | |
| 21191 | +var forOf = __webpack_require__(/*! ./_for-of */ "../node_modules/core-js/library/modules/_for-of.js"); | |
| 21192 | +var createArrayMethod = __webpack_require__(/*! ./_array-methods */ "../node_modules/core-js/library/modules/_array-methods.js"); | |
| 21193 | +var $has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/library/modules/_has.js"); | |
| 21194 | +var validate = __webpack_require__(/*! ./_validate-collection */ "../node_modules/core-js/library/modules/_validate-collection.js"); | |
| 21195 | +var arrayFind = createArrayMethod(5); | |
| 21196 | +var arrayFindIndex = createArrayMethod(6); | |
| 21197 | +var id = 0; | |
| 21198 | + | |
| 21199 | +// fallback for uncaught frozen keys | |
| 21200 | +var uncaughtFrozenStore = function (that) { | |
| 21201 | + return that._l || (that._l = new UncaughtFrozenStore()); | |
| 21202 | +}; | |
| 21203 | +var UncaughtFrozenStore = function () { | |
| 21204 | + this.a = []; | |
| 21205 | +}; | |
| 21206 | +var findUncaughtFrozen = function (store, key) { | |
| 21207 | + return arrayFind(store.a, function (it) { | |
| 21208 | + return it[0] === key; | |
| 21209 | + }); | |
| 21210 | +}; | |
| 21211 | +UncaughtFrozenStore.prototype = { | |
| 21212 | + get: function (key) { | |
| 21213 | + var entry = findUncaughtFrozen(this, key); | |
| 21214 | + if (entry) return entry[1]; | |
| 21215 | + }, | |
| 21216 | + has: function (key) { | |
| 21217 | + return !!findUncaughtFrozen(this, key); | |
| 21218 | + }, | |
| 21219 | + set: function (key, value) { | |
| 21220 | + var entry = findUncaughtFrozen(this, key); | |
| 21221 | + if (entry) entry[1] = value; | |
| 21222 | + else this.a.push([key, value]); | |
| 21223 | + }, | |
| 21224 | + 'delete': function (key) { | |
| 21225 | + var index = arrayFindIndex(this.a, function (it) { | |
| 21226 | + return it[0] === key; | |
| 21227 | + }); | |
| 21228 | + if (~index) this.a.splice(index, 1); | |
| 21229 | + return !!~index; | |
| 21230 | + } | |
| 21231 | +}; | |
| 21232 | + | |
| 21233 | +module.exports = { | |
| 21234 | + getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { | |
| 21235 | + var C = wrapper(function (that, iterable) { | |
| 21236 | + anInstance(that, C, NAME, '_i'); | |
| 21237 | + that._t = NAME; // collection type | |
| 21238 | + that._i = id++; // collection id | |
| 21239 | + that._l = undefined; // leak store for uncaught frozen objects | |
| 21240 | + if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); | |
| 21241 | + }); | |
| 21242 | + redefineAll(C.prototype, { | |
| 21243 | + // 23.3.3.2 WeakMap.prototype.delete(key) | |
| 21244 | + // 23.4.3.3 WeakSet.prototype.delete(value) | |
| 21245 | + 'delete': function (key) { | |
| 21246 | + if (!isObject(key)) return false; | |
| 21247 | + var data = getWeak(key); | |
| 21248 | + if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key); | |
| 21249 | + return data && $has(data, this._i) && delete data[this._i]; | |
| 21250 | + }, | |
| 21251 | + // 23.3.3.4 WeakMap.prototype.has(key) | |
| 21252 | + // 23.4.3.4 WeakSet.prototype.has(value) | |
| 21253 | + has: function has(key) { | |
| 21254 | + if (!isObject(key)) return false; | |
| 21255 | + var data = getWeak(key); | |
| 21256 | + if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key); | |
| 21257 | + return data && $has(data, this._i); | |
| 21258 | + } | |
| 21259 | + }); | |
| 21260 | + return C; | |
| 21261 | + }, | |
| 21262 | + def: function (that, key, value) { | |
| 21263 | + var data = getWeak(anObject(key), true); | |
| 21264 | + if (data === true) uncaughtFrozenStore(that).set(key, value); | |
| 21265 | + else data[that._i] = value; | |
| 21266 | + return that; | |
| 21267 | + }, | |
| 21268 | + ufstore: uncaughtFrozenStore | |
| 21269 | +}; | |
| 21270 | + | |
| 21271 | + | |
| 21272 | +/***/ }), | |
| 21273 | + | |
| 21274 | +/***/ "../node_modules/core-js/library/modules/_collection.js": | |
| 21275 | +/*!**************************************************************!*\ | |
| 21276 | + !*** ../node_modules/core-js/library/modules/_collection.js ***! | |
| 21277 | + \**************************************************************/ | |
| 21278 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21279 | + | |
| 21280 | +"use strict"; | |
| 21281 | + | |
| 21282 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js"); | |
| 21283 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 21284 | +var meta = __webpack_require__(/*! ./_meta */ "../node_modules/core-js/library/modules/_meta.js"); | |
| 21285 | +var fails = __webpack_require__(/*! ./_fails */ "../node_modules/core-js/library/modules/_fails.js"); | |
| 21286 | +var hide = __webpack_require__(/*! ./_hide */ "../node_modules/core-js/library/modules/_hide.js"); | |
| 21287 | +var redefineAll = __webpack_require__(/*! ./_redefine-all */ "../node_modules/core-js/library/modules/_redefine-all.js"); | |
| 21288 | +var forOf = __webpack_require__(/*! ./_for-of */ "../node_modules/core-js/library/modules/_for-of.js"); | |
| 21289 | +var anInstance = __webpack_require__(/*! ./_an-instance */ "../node_modules/core-js/library/modules/_an-instance.js"); | |
| 21290 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 21291 | +var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "../node_modules/core-js/library/modules/_set-to-string-tag.js"); | |
| 21292 | +var dP = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/library/modules/_object-dp.js").f; | |
| 21293 | +var each = __webpack_require__(/*! ./_array-methods */ "../node_modules/core-js/library/modules/_array-methods.js")(0); | |
| 21294 | +var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/library/modules/_descriptors.js"); | |
| 21295 | + | |
| 21296 | +module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { | |
| 21297 | + var Base = global[NAME]; | |
| 21298 | + var C = Base; | |
| 21299 | + var ADDER = IS_MAP ? 'set' : 'add'; | |
| 21300 | + var proto = C && C.prototype; | |
| 21301 | + var O = {}; | |
| 21302 | + if (!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () { | |
| 21303 | + new C().entries().next(); | |
| 21304 | + }))) { | |
| 21305 | + // create collection constructor | |
| 21306 | + C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER); | |
| 21307 | + redefineAll(C.prototype, methods); | |
| 21308 | + meta.NEED = true; | |
| 21309 | + } else { | |
| 21310 | + C = wrapper(function (target, iterable) { | |
| 21311 | + anInstance(target, C, NAME, '_c'); | |
| 21312 | + target._c = new Base(); | |
| 21313 | + if (iterable != undefined) forOf(iterable, IS_MAP, target[ADDER], target); | |
| 21314 | + }); | |
| 21315 | + each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) { | |
| 21316 | + var IS_ADDER = KEY == 'add' || KEY == 'set'; | |
| 21317 | + if (KEY in proto && !(IS_WEAK && KEY == 'clear')) hide(C.prototype, KEY, function (a, b) { | |
| 21318 | + anInstance(this, C, KEY); | |
| 21319 | + if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false; | |
| 21320 | + var result = this._c[KEY](a === 0 ? 0 : a, b); | |
| 21321 | + return IS_ADDER ? this : result; | |
| 21322 | + }); | |
| 21323 | + }); | |
| 21324 | + IS_WEAK || dP(C.prototype, 'size', { | |
| 21325 | + get: function () { | |
| 21326 | + return this._c.size; | |
| 21327 | + } | |
| 21328 | + }); | |
| 21329 | + } | |
| 21330 | + | |
| 21331 | + setToStringTag(C, NAME); | |
| 21332 | + | |
| 21333 | + O[NAME] = C; | |
| 21334 | + $export($export.G + $export.W + $export.F, O); | |
| 21335 | + | |
| 21336 | + if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP); | |
| 21337 | + | |
| 21338 | + return C; | |
| 21339 | +}; | |
| 21340 | + | |
| 21341 | + | |
| 21342 | +/***/ }), | |
| 21343 | + | |
| 21344 | +/***/ "../node_modules/core-js/library/modules/_core.js": | |
| 21345 | +/*!********************************************************!*\ | |
| 21346 | + !*** ../node_modules/core-js/library/modules/_core.js ***! | |
| 21347 | + \********************************************************/ | |
| 21348 | +/***/ ((module) => { | |
| 21349 | + | |
| 21350 | +var core = module.exports = { version: '2.6.12' }; | |
| 21351 | +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef | |
| 21352 | + | |
| 21353 | + | |
| 21354 | +/***/ }), | |
| 21355 | + | |
| 21356 | +/***/ "../node_modules/core-js/library/modules/_create-property.js": | |
| 21357 | +/*!*******************************************************************!*\ | |
| 21358 | + !*** ../node_modules/core-js/library/modules/_create-property.js ***! | |
| 21359 | + \*******************************************************************/ | |
| 21360 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21361 | + | |
| 21362 | +"use strict"; | |
| 21363 | + | |
| 21364 | +var $defineProperty = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/library/modules/_object-dp.js"); | |
| 21365 | +var createDesc = __webpack_require__(/*! ./_property-desc */ "../node_modules/core-js/library/modules/_property-desc.js"); | |
| 21366 | + | |
| 21367 | +module.exports = function (object, index, value) { | |
| 21368 | + if (index in object) $defineProperty.f(object, index, createDesc(0, value)); | |
| 21369 | + else object[index] = value; | |
| 21370 | +}; | |
| 21371 | + | |
| 21372 | + | |
| 21373 | +/***/ }), | |
| 21374 | + | |
| 21375 | +/***/ "../node_modules/core-js/library/modules/_ctx.js": | |
| 21376 | +/*!*******************************************************!*\ | |
| 21377 | + !*** ../node_modules/core-js/library/modules/_ctx.js ***! | |
| 21378 | + \*******************************************************/ | |
| 21379 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21380 | + | |
| 21381 | +// optional / simple context binding | |
| 21382 | +var aFunction = __webpack_require__(/*! ./_a-function */ "../node_modules/core-js/library/modules/_a-function.js"); | |
| 21383 | +module.exports = function (fn, that, length) { | |
| 21384 | + aFunction(fn); | |
| 21385 | + if (that === undefined) return fn; | |
| 21386 | + switch (length) { | |
| 21387 | + case 1: return function (a) { | |
| 21388 | + return fn.call(that, a); | |
| 21389 | + }; | |
| 21390 | + case 2: return function (a, b) { | |
| 21391 | + return fn.call(that, a, b); | |
| 21392 | + }; | |
| 21393 | + case 3: return function (a, b, c) { | |
| 21394 | + return fn.call(that, a, b, c); | |
| 21395 | + }; | |
| 21396 | + } | |
| 21397 | + return function (/* ...args */) { | |
| 21398 | + return fn.apply(that, arguments); | |
| 21399 | + }; | |
| 21400 | +}; | |
| 21401 | + | |
| 21402 | + | |
| 21403 | +/***/ }), | |
| 21404 | + | |
| 21405 | +/***/ "../node_modules/core-js/library/modules/_defined.js": | |
| 21406 | +/*!***********************************************************!*\ | |
| 21407 | + !*** ../node_modules/core-js/library/modules/_defined.js ***! | |
| 21408 | + \***********************************************************/ | |
| 21409 | +/***/ ((module) => { | |
| 21410 | + | |
| 21411 | +// 7.2.1 RequireObjectCoercible(argument) | |
| 21412 | +module.exports = function (it) { | |
| 21413 | + if (it == undefined) throw TypeError("Can't call method on " + it); | |
| 21414 | + return it; | |
| 21415 | +}; | |
| 21416 | + | |
| 21417 | + | |
| 21418 | +/***/ }), | |
| 21419 | + | |
| 21420 | +/***/ "../node_modules/core-js/library/modules/_descriptors.js": | |
| 21421 | +/*!***************************************************************!*\ | |
| 21422 | + !*** ../node_modules/core-js/library/modules/_descriptors.js ***! | |
| 21423 | + \***************************************************************/ | |
| 21424 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21425 | + | |
| 21426 | +// Thank's IE8 for his funny defineProperty | |
| 21427 | +module.exports = !__webpack_require__(/*! ./_fails */ "../node_modules/core-js/library/modules/_fails.js")(function () { | |
| 21428 | + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; | |
| 21429 | +}); | |
| 21430 | + | |
| 21431 | + | |
| 21432 | +/***/ }), | |
| 21433 | + | |
| 21434 | +/***/ "../node_modules/core-js/library/modules/_dom-create.js": | |
| 21435 | +/*!**************************************************************!*\ | |
| 21436 | + !*** ../node_modules/core-js/library/modules/_dom-create.js ***! | |
| 21437 | + \**************************************************************/ | |
| 21438 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21439 | + | |
| 21440 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 21441 | +var document = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js").document; | |
| 21442 | +// typeof document.createElement is 'object' in old IE | |
| 21443 | +var is = isObject(document) && isObject(document.createElement); | |
| 21444 | +module.exports = function (it) { | |
| 21445 | + return is ? document.createElement(it) : {}; | |
| 21446 | +}; | |
| 21447 | + | |
| 21448 | + | |
| 21449 | +/***/ }), | |
| 21450 | + | |
| 21451 | +/***/ "../node_modules/core-js/library/modules/_enum-bug-keys.js": | |
| 21452 | +/*!*****************************************************************!*\ | |
| 21453 | + !*** ../node_modules/core-js/library/modules/_enum-bug-keys.js ***! | |
| 21454 | + \*****************************************************************/ | |
| 21455 | +/***/ ((module) => { | |
| 21456 | + | |
| 21457 | +// IE 8- don't enum bug keys | |
| 21458 | +module.exports = ( | |
| 21459 | + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' | |
| 21460 | +).split(','); | |
| 21461 | + | |
| 21462 | + | |
| 21463 | +/***/ }), | |
| 21464 | + | |
| 21465 | +/***/ "../node_modules/core-js/library/modules/_enum-keys.js": | |
| 21466 | +/*!*************************************************************!*\ | |
| 21467 | + !*** ../node_modules/core-js/library/modules/_enum-keys.js ***! | |
| 21468 | + \*************************************************************/ | |
| 21469 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21470 | + | |
| 21471 | +// all enumerable object keys, includes symbols | |
| 21472 | +var getKeys = __webpack_require__(/*! ./_object-keys */ "../node_modules/core-js/library/modules/_object-keys.js"); | |
| 21473 | +var gOPS = __webpack_require__(/*! ./_object-gops */ "../node_modules/core-js/library/modules/_object-gops.js"); | |
| 21474 | +var pIE = __webpack_require__(/*! ./_object-pie */ "../node_modules/core-js/library/modules/_object-pie.js"); | |
| 21475 | +module.exports = function (it) { | |
| 21476 | + var result = getKeys(it); | |
| 21477 | + var getSymbols = gOPS.f; | |
| 21478 | + if (getSymbols) { | |
| 21479 | + var symbols = getSymbols(it); | |
| 21480 | + var isEnum = pIE.f; | |
| 21481 | + var i = 0; | |
| 21482 | + var key; | |
| 21483 | + while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); | |
| 21484 | + } return result; | |
| 21485 | +}; | |
| 21486 | + | |
| 21487 | + | |
| 21488 | +/***/ }), | |
| 21489 | + | |
| 21490 | +/***/ "../node_modules/core-js/library/modules/_export.js": | |
| 21491 | +/*!**********************************************************!*\ | |
| 21492 | + !*** ../node_modules/core-js/library/modules/_export.js ***! | |
| 21493 | + \**********************************************************/ | |
| 21494 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21495 | + | |
| 21496 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js"); | |
| 21497 | +var core = __webpack_require__(/*! ./_core */ "../node_modules/core-js/library/modules/_core.js"); | |
| 21498 | +var ctx = __webpack_require__(/*! ./_ctx */ "../node_modules/core-js/library/modules/_ctx.js"); | |
| 21499 | +var hide = __webpack_require__(/*! ./_hide */ "../node_modules/core-js/library/modules/_hide.js"); | |
| 21500 | +var has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/library/modules/_has.js"); | |
| 21501 | +var PROTOTYPE = 'prototype'; | |
| 21502 | + | |
| 21503 | +var $export = function (type, name, source) { | |
| 21504 | + var IS_FORCED = type & $export.F; | |
| 21505 | + var IS_GLOBAL = type & $export.G; | |
| 21506 | + var IS_STATIC = type & $export.S; | |
| 21507 | + var IS_PROTO = type & $export.P; | |
| 21508 | + var IS_BIND = type & $export.B; | |
| 21509 | + var IS_WRAP = type & $export.W; | |
| 21510 | + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); | |
| 21511 | + var expProto = exports[PROTOTYPE]; | |
| 21512 | + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; | |
| 21513 | + var key, own, out; | |
| 21514 | + if (IS_GLOBAL) source = name; | |
| 21515 | + for (key in source) { | |
| 21516 | + // contains in native | |
| 21517 | + own = !IS_FORCED && target && target[key] !== undefined; | |
| 21518 | + if (own && has(exports, key)) continue; | |
| 21519 | + // export native or passed | |
| 21520 | + out = own ? target[key] : source[key]; | |
| 21521 | + // prevent global pollution for namespaces | |
| 21522 | + exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] | |
| 21523 | + // bind timers to global for call from export context | |
| 21524 | + : IS_BIND && own ? ctx(out, global) | |
| 21525 | + // wrap global constructors for prevent change them in library | |
| 21526 | + : IS_WRAP && target[key] == out ? (function (C) { | |
| 21527 | + var F = function (a, b, c) { | |
| 21528 | + if (this instanceof C) { | |
| 21529 | + switch (arguments.length) { | |
| 21530 | + case 0: return new C(); | |
| 21531 | + case 1: return new C(a); | |
| 21532 | + case 2: return new C(a, b); | |
| 21533 | + } return new C(a, b, c); | |
| 21534 | + } return C.apply(this, arguments); | |
| 21535 | + }; | |
| 21536 | + F[PROTOTYPE] = C[PROTOTYPE]; | |
| 21537 | + return F; | |
| 21538 | + // make static versions for prototype methods | |
| 21539 | + })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; | |
| 21540 | + // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% | |
| 21541 | + if (IS_PROTO) { | |
| 21542 | + (exports.virtual || (exports.virtual = {}))[key] = out; | |
| 21543 | + // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% | |
| 21544 | + if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); | |
| 21545 | + } | |
| 21546 | + } | |
| 21547 | +}; | |
| 21548 | +// type bitmap | |
| 21549 | +$export.F = 1; // forced | |
| 21550 | +$export.G = 2; // global | |
| 21551 | +$export.S = 4; // static | |
| 21552 | +$export.P = 8; // proto | |
| 21553 | +$export.B = 16; // bind | |
| 21554 | +$export.W = 32; // wrap | |
| 21555 | +$export.U = 64; // safe | |
| 21556 | +$export.R = 128; // real proto method for `library` | |
| 21557 | +module.exports = $export; | |
| 21558 | + | |
| 21559 | + | |
| 21560 | +/***/ }), | |
| 21561 | + | |
| 21562 | +/***/ "../node_modules/core-js/library/modules/_fails.js": | |
| 21563 | +/*!*********************************************************!*\ | |
| 21564 | + !*** ../node_modules/core-js/library/modules/_fails.js ***! | |
| 21565 | + \*********************************************************/ | |
| 21566 | +/***/ ((module) => { | |
| 21567 | + | |
| 21568 | +module.exports = function (exec) { | |
| 21569 | + try { | |
| 21570 | + return !!exec(); | |
| 21571 | + } catch (e) { | |
| 21572 | + return true; | |
| 21573 | + } | |
| 21574 | +}; | |
| 21575 | + | |
| 21576 | + | |
| 21577 | +/***/ }), | |
| 21578 | + | |
| 21579 | +/***/ "../node_modules/core-js/library/modules/_for-of.js": | |
| 21580 | +/*!**********************************************************!*\ | |
| 21581 | + !*** ../node_modules/core-js/library/modules/_for-of.js ***! | |
| 21582 | + \**********************************************************/ | |
| 21583 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21584 | + | |
| 21585 | +var ctx = __webpack_require__(/*! ./_ctx */ "../node_modules/core-js/library/modules/_ctx.js"); | |
| 21586 | +var call = __webpack_require__(/*! ./_iter-call */ "../node_modules/core-js/library/modules/_iter-call.js"); | |
| 21587 | +var isArrayIter = __webpack_require__(/*! ./_is-array-iter */ "../node_modules/core-js/library/modules/_is-array-iter.js"); | |
| 21588 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/library/modules/_an-object.js"); | |
| 21589 | +var toLength = __webpack_require__(/*! ./_to-length */ "../node_modules/core-js/library/modules/_to-length.js"); | |
| 21590 | +var getIterFn = __webpack_require__(/*! ./core.get-iterator-method */ "../node_modules/core-js/library/modules/core.get-iterator-method.js"); | |
| 21591 | +var BREAK = {}; | |
| 21592 | +var RETURN = {}; | |
| 21593 | +var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { | |
| 21594 | + var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable); | |
| 21595 | + var f = ctx(fn, that, entries ? 2 : 1); | |
| 21596 | + var index = 0; | |
| 21597 | + var length, step, iterator, result; | |
| 21598 | + if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!'); | |
| 21599 | + // fast case for arrays with default iterator | |
| 21600 | + if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) { | |
| 21601 | + result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]); | |
| 21602 | + if (result === BREAK || result === RETURN) return result; | |
| 21603 | + } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) { | |
| 21604 | + result = call(iterator, f, step.value, entries); | |
| 21605 | + if (result === BREAK || result === RETURN) return result; | |
| 21606 | + } | |
| 21607 | +}; | |
| 21608 | +exports.BREAK = BREAK; | |
| 21609 | +exports.RETURN = RETURN; | |
| 21610 | + | |
| 21611 | + | |
| 21612 | +/***/ }), | |
| 21613 | + | |
| 21614 | +/***/ "../node_modules/core-js/library/modules/_global.js": | |
| 21615 | +/*!**********************************************************!*\ | |
| 21616 | + !*** ../node_modules/core-js/library/modules/_global.js ***! | |
| 21617 | + \**********************************************************/ | |
| 21618 | +/***/ ((module) => { | |
| 21619 | + | |
| 21620 | +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | |
| 21621 | +var global = module.exports = typeof window != 'undefined' && window.Math == Math | |
| 21622 | + ? window : typeof self != 'undefined' && self.Math == Math ? self | |
| 21623 | + // eslint-disable-next-line no-new-func | |
| 21624 | + : Function('return this')(); | |
| 21625 | +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef | |
| 21626 | + | |
| 21627 | + | |
| 21628 | +/***/ }), | |
| 21629 | + | |
| 21630 | +/***/ "../node_modules/core-js/library/modules/_has.js": | |
| 21631 | +/*!*******************************************************!*\ | |
| 21632 | + !*** ../node_modules/core-js/library/modules/_has.js ***! | |
| 21633 | + \*******************************************************/ | |
| 21634 | +/***/ ((module) => { | |
| 21635 | + | |
| 21636 | +var hasOwnProperty = {}.hasOwnProperty; | |
| 21637 | +module.exports = function (it, key) { | |
| 21638 | + return hasOwnProperty.call(it, key); | |
| 21639 | +}; | |
| 21640 | + | |
| 21641 | + | |
| 21642 | +/***/ }), | |
| 21643 | + | |
| 21644 | +/***/ "../node_modules/core-js/library/modules/_hide.js": | |
| 21645 | +/*!********************************************************!*\ | |
| 21646 | + !*** ../node_modules/core-js/library/modules/_hide.js ***! | |
| 21647 | + \********************************************************/ | |
| 21648 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21649 | + | |
| 21650 | +var dP = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/library/modules/_object-dp.js"); | |
| 21651 | +var createDesc = __webpack_require__(/*! ./_property-desc */ "../node_modules/core-js/library/modules/_property-desc.js"); | |
| 21652 | +module.exports = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/library/modules/_descriptors.js") ? function (object, key, value) { | |
| 21653 | + return dP.f(object, key, createDesc(1, value)); | |
| 21654 | +} : function (object, key, value) { | |
| 21655 | + object[key] = value; | |
| 21656 | + return object; | |
| 21657 | +}; | |
| 21658 | + | |
| 21659 | + | |
| 21660 | +/***/ }), | |
| 21661 | + | |
| 21662 | +/***/ "../node_modules/core-js/library/modules/_html.js": | |
| 21663 | +/*!********************************************************!*\ | |
| 21664 | + !*** ../node_modules/core-js/library/modules/_html.js ***! | |
| 21665 | + \********************************************************/ | |
| 21666 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21667 | + | |
| 21668 | +var document = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js").document; | |
| 21669 | +module.exports = document && document.documentElement; | |
| 21670 | + | |
| 21671 | + | |
| 21672 | +/***/ }), | |
| 21673 | + | |
| 21674 | +/***/ "../node_modules/core-js/library/modules/_ie8-dom-define.js": | |
| 21675 | +/*!******************************************************************!*\ | |
| 21676 | + !*** ../node_modules/core-js/library/modules/_ie8-dom-define.js ***! | |
| 21677 | + \******************************************************************/ | |
| 21678 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21679 | + | |
| 21680 | +module.exports = !__webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/library/modules/_descriptors.js") && !__webpack_require__(/*! ./_fails */ "../node_modules/core-js/library/modules/_fails.js")(function () { | |
| 21681 | + return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ "../node_modules/core-js/library/modules/_dom-create.js")('div'), 'a', { get: function () { return 7; } }).a != 7; | |
| 21682 | +}); | |
| 21683 | + | |
| 21684 | + | |
| 21685 | +/***/ }), | |
| 21686 | + | |
| 21687 | +/***/ "../node_modules/core-js/library/modules/_invoke.js": | |
| 21688 | +/*!**********************************************************!*\ | |
| 21689 | + !*** ../node_modules/core-js/library/modules/_invoke.js ***! | |
| 21690 | + \**********************************************************/ | |
| 21691 | +/***/ ((module) => { | |
| 21692 | + | |
| 21693 | +// fast apply, http://jsperf.lnkit.com/fast-apply/5 | |
| 21694 | +module.exports = function (fn, args, that) { | |
| 21695 | + var un = that === undefined; | |
| 21696 | + switch (args.length) { | |
| 21697 | + case 0: return un ? fn() | |
| 21698 | + : fn.call(that); | |
| 21699 | + case 1: return un ? fn(args[0]) | |
| 21700 | + : fn.call(that, args[0]); | |
| 21701 | + case 2: return un ? fn(args[0], args[1]) | |
| 21702 | + : fn.call(that, args[0], args[1]); | |
| 21703 | + case 3: return un ? fn(args[0], args[1], args[2]) | |
| 21704 | + : fn.call(that, args[0], args[1], args[2]); | |
| 21705 | + case 4: return un ? fn(args[0], args[1], args[2], args[3]) | |
| 21706 | + : fn.call(that, args[0], args[1], args[2], args[3]); | |
| 21707 | + } return fn.apply(that, args); | |
| 21708 | +}; | |
| 21709 | + | |
| 21710 | + | |
| 21711 | +/***/ }), | |
| 21712 | + | |
| 21713 | +/***/ "../node_modules/core-js/library/modules/_iobject.js": | |
| 21714 | +/*!***********************************************************!*\ | |
| 21715 | + !*** ../node_modules/core-js/library/modules/_iobject.js ***! | |
| 21716 | + \***********************************************************/ | |
| 21717 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21718 | + | |
| 21719 | +// fallback for non-array-like ES3 and non-enumerable old V8 strings | |
| 21720 | +var cof = __webpack_require__(/*! ./_cof */ "../node_modules/core-js/library/modules/_cof.js"); | |
| 21721 | +// eslint-disable-next-line no-prototype-builtins | |
| 21722 | +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { | |
| 21723 | + return cof(it) == 'String' ? it.split('') : Object(it); | |
| 21724 | +}; | |
| 21725 | + | |
| 21726 | + | |
| 21727 | +/***/ }), | |
| 21728 | + | |
| 21729 | +/***/ "../node_modules/core-js/library/modules/_is-array-iter.js": | |
| 21730 | +/*!*****************************************************************!*\ | |
| 21731 | + !*** ../node_modules/core-js/library/modules/_is-array-iter.js ***! | |
| 21732 | + \*****************************************************************/ | |
| 21733 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21734 | + | |
| 21735 | +// check on default Array iterator | |
| 21736 | +var Iterators = __webpack_require__(/*! ./_iterators */ "../node_modules/core-js/library/modules/_iterators.js"); | |
| 21737 | +var ITERATOR = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/library/modules/_wks.js")('iterator'); | |
| 21738 | +var ArrayProto = Array.prototype; | |
| 21739 | + | |
| 21740 | +module.exports = function (it) { | |
| 21741 | + return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); | |
| 21742 | +}; | |
| 21743 | + | |
| 21744 | + | |
| 21745 | +/***/ }), | |
| 21746 | + | |
| 21747 | +/***/ "../node_modules/core-js/library/modules/_is-array.js": | |
| 21748 | +/*!************************************************************!*\ | |
| 21749 | + !*** ../node_modules/core-js/library/modules/_is-array.js ***! | |
| 21750 | + \************************************************************/ | |
| 21751 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21752 | + | |
| 21753 | +// 7.2.2 IsArray(argument) | |
| 21754 | +var cof = __webpack_require__(/*! ./_cof */ "../node_modules/core-js/library/modules/_cof.js"); | |
| 21755 | +module.exports = Array.isArray || function isArray(arg) { | |
| 21756 | + return cof(arg) == 'Array'; | |
| 21757 | +}; | |
| 21758 | + | |
| 21759 | + | |
| 21760 | +/***/ }), | |
| 21761 | + | |
| 21762 | +/***/ "../node_modules/core-js/library/modules/_is-object.js": | |
| 21763 | +/*!*************************************************************!*\ | |
| 21764 | + !*** ../node_modules/core-js/library/modules/_is-object.js ***! | |
| 21765 | + \*************************************************************/ | |
| 21766 | +/***/ ((module) => { | |
| 21767 | + | |
| 21768 | +module.exports = function (it) { | |
| 21769 | + return typeof it === 'object' ? it !== null : typeof it === 'function'; | |
| 21770 | +}; | |
| 21771 | + | |
| 21772 | + | |
| 21773 | +/***/ }), | |
| 21774 | + | |
| 21775 | +/***/ "../node_modules/core-js/library/modules/_iter-call.js": | |
| 21776 | +/*!*************************************************************!*\ | |
| 21777 | + !*** ../node_modules/core-js/library/modules/_iter-call.js ***! | |
| 21778 | + \*************************************************************/ | |
| 21779 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21780 | + | |
| 21781 | +// call something on iterator step with safe closing on error | |
| 21782 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/library/modules/_an-object.js"); | |
| 21783 | +module.exports = function (iterator, fn, value, entries) { | |
| 21784 | + try { | |
| 21785 | + return entries ? fn(anObject(value)[0], value[1]) : fn(value); | |
| 21786 | + // 7.4.6 IteratorClose(iterator, completion) | |
| 21787 | + } catch (e) { | |
| 21788 | + var ret = iterator['return']; | |
| 21789 | + if (ret !== undefined) anObject(ret.call(iterator)); | |
| 21790 | + throw e; | |
| 21791 | + } | |
| 21792 | +}; | |
| 21793 | + | |
| 21794 | + | |
| 21795 | +/***/ }), | |
| 21796 | + | |
| 21797 | +/***/ "../node_modules/core-js/library/modules/_iter-create.js": | |
| 21798 | +/*!***************************************************************!*\ | |
| 21799 | + !*** ../node_modules/core-js/library/modules/_iter-create.js ***! | |
| 21800 | + \***************************************************************/ | |
| 21801 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21802 | + | |
| 21803 | +"use strict"; | |
| 21804 | + | |
| 21805 | +var create = __webpack_require__(/*! ./_object-create */ "../node_modules/core-js/library/modules/_object-create.js"); | |
| 21806 | +var descriptor = __webpack_require__(/*! ./_property-desc */ "../node_modules/core-js/library/modules/_property-desc.js"); | |
| 21807 | +var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "../node_modules/core-js/library/modules/_set-to-string-tag.js"); | |
| 21808 | +var IteratorPrototype = {}; | |
| 21809 | + | |
| 21810 | +// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() | |
| 21811 | +__webpack_require__(/*! ./_hide */ "../node_modules/core-js/library/modules/_hide.js")(IteratorPrototype, __webpack_require__(/*! ./_wks */ "../node_modules/core-js/library/modules/_wks.js")('iterator'), function () { return this; }); | |
| 21812 | + | |
| 21813 | +module.exports = function (Constructor, NAME, next) { | |
| 21814 | + Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); | |
| 21815 | + setToStringTag(Constructor, NAME + ' Iterator'); | |
| 21816 | +}; | |
| 21817 | + | |
| 21818 | + | |
| 21819 | +/***/ }), | |
| 21820 | + | |
| 21821 | +/***/ "../node_modules/core-js/library/modules/_iter-define.js": | |
| 21822 | +/*!***************************************************************!*\ | |
| 21823 | + !*** ../node_modules/core-js/library/modules/_iter-define.js ***! | |
| 21824 | + \***************************************************************/ | |
| 21825 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21826 | + | |
| 21827 | +"use strict"; | |
| 21828 | + | |
| 21829 | +var LIBRARY = __webpack_require__(/*! ./_library */ "../node_modules/core-js/library/modules/_library.js"); | |
| 21830 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 21831 | +var redefine = __webpack_require__(/*! ./_redefine */ "../node_modules/core-js/library/modules/_redefine.js"); | |
| 21832 | +var hide = __webpack_require__(/*! ./_hide */ "../node_modules/core-js/library/modules/_hide.js"); | |
| 21833 | +var Iterators = __webpack_require__(/*! ./_iterators */ "../node_modules/core-js/library/modules/_iterators.js"); | |
| 21834 | +var $iterCreate = __webpack_require__(/*! ./_iter-create */ "../node_modules/core-js/library/modules/_iter-create.js"); | |
| 21835 | +var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "../node_modules/core-js/library/modules/_set-to-string-tag.js"); | |
| 21836 | +var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "../node_modules/core-js/library/modules/_object-gpo.js"); | |
| 21837 | +var ITERATOR = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/library/modules/_wks.js")('iterator'); | |
| 21838 | +var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` | |
| 21839 | +var FF_ITERATOR = '@@iterator'; | |
| 21840 | +var KEYS = 'keys'; | |
| 21841 | +var VALUES = 'values'; | |
| 21842 | + | |
| 21843 | +var returnThis = function () { return this; }; | |
| 21844 | + | |
| 21845 | +module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { | |
| 21846 | + $iterCreate(Constructor, NAME, next); | |
| 21847 | + var getMethod = function (kind) { | |
| 21848 | + if (!BUGGY && kind in proto) return proto[kind]; | |
| 21849 | + switch (kind) { | |
| 21850 | + case KEYS: return function keys() { return new Constructor(this, kind); }; | |
| 21851 | + case VALUES: return function values() { return new Constructor(this, kind); }; | |
| 21852 | + } return function entries() { return new Constructor(this, kind); }; | |
| 21853 | + }; | |
| 21854 | + var TAG = NAME + ' Iterator'; | |
| 21855 | + var DEF_VALUES = DEFAULT == VALUES; | |
| 21856 | + var VALUES_BUG = false; | |
| 21857 | + var proto = Base.prototype; | |
| 21858 | + var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; | |
| 21859 | + var $default = $native || getMethod(DEFAULT); | |
| 21860 | + var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; | |
| 21861 | + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; | |
| 21862 | + var methods, key, IteratorPrototype; | |
| 21863 | + // Fix native | |
| 21864 | + if ($anyNative) { | |
| 21865 | + IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); | |
| 21866 | + if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { | |
| 21867 | + // Set @@toStringTag to native iterators | |
| 21868 | + setToStringTag(IteratorPrototype, TAG, true); | |
| 21869 | + // fix for some old engines | |
| 21870 | + if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); | |
| 21871 | + } | |
| 21872 | + } | |
| 21873 | + // fix Array#{values, @@iterator}.name in V8 / FF | |
| 21874 | + if (DEF_VALUES && $native && $native.name !== VALUES) { | |
| 21875 | + VALUES_BUG = true; | |
| 21876 | + $default = function values() { return $native.call(this); }; | |
| 21877 | + } | |
| 21878 | + // Define iterator | |
| 21879 | + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { | |
| 21880 | + hide(proto, ITERATOR, $default); | |
| 21881 | + } | |
| 21882 | + // Plug for library | |
| 21883 | + Iterators[NAME] = $default; | |
| 21884 | + Iterators[TAG] = returnThis; | |
| 21885 | + if (DEFAULT) { | |
| 21886 | + methods = { | |
| 21887 | + values: DEF_VALUES ? $default : getMethod(VALUES), | |
| 21888 | + keys: IS_SET ? $default : getMethod(KEYS), | |
| 21889 | + entries: $entries | |
| 21890 | + }; | |
| 21891 | + if (FORCED) for (key in methods) { | |
| 21892 | + if (!(key in proto)) redefine(proto, key, methods[key]); | |
| 21893 | + } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); | |
| 21894 | + } | |
| 21895 | + return methods; | |
| 21896 | +}; | |
| 21897 | + | |
| 21898 | + | |
| 21899 | +/***/ }), | |
| 21900 | + | |
| 21901 | +/***/ "../node_modules/core-js/library/modules/_iter-detect.js": | |
| 21902 | +/*!***************************************************************!*\ | |
| 21903 | + !*** ../node_modules/core-js/library/modules/_iter-detect.js ***! | |
| 21904 | + \***************************************************************/ | |
| 21905 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21906 | + | |
| 21907 | +var ITERATOR = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/library/modules/_wks.js")('iterator'); | |
| 21908 | +var SAFE_CLOSING = false; | |
| 21909 | + | |
| 21910 | +try { | |
| 21911 | + var riter = [7][ITERATOR](); | |
| 21912 | + riter['return'] = function () { SAFE_CLOSING = true; }; | |
| 21913 | + // eslint-disable-next-line no-throw-literal | |
| 21914 | + Array.from(riter, function () { throw 2; }); | |
| 21915 | +} catch (e) { /* empty */ } | |
| 21916 | + | |
| 21917 | +module.exports = function (exec, skipClosing) { | |
| 21918 | + if (!skipClosing && !SAFE_CLOSING) return false; | |
| 21919 | + var safe = false; | |
| 21920 | + try { | |
| 21921 | + var arr = [7]; | |
| 21922 | + var iter = arr[ITERATOR](); | |
| 21923 | + iter.next = function () { return { done: safe = true }; }; | |
| 21924 | + arr[ITERATOR] = function () { return iter; }; | |
| 21925 | + exec(arr); | |
| 21926 | + } catch (e) { /* empty */ } | |
| 21927 | + return safe; | |
| 21928 | +}; | |
| 21929 | + | |
| 21930 | + | |
| 21931 | +/***/ }), | |
| 21932 | + | |
| 21933 | +/***/ "../node_modules/core-js/library/modules/_iter-step.js": | |
| 21934 | +/*!*************************************************************!*\ | |
| 21935 | + !*** ../node_modules/core-js/library/modules/_iter-step.js ***! | |
| 21936 | + \*************************************************************/ | |
| 21937 | +/***/ ((module) => { | |
| 21938 | + | |
| 21939 | +module.exports = function (done, value) { | |
| 21940 | + return { value: value, done: !!done }; | |
| 21941 | +}; | |
| 21942 | + | |
| 21943 | + | |
| 21944 | +/***/ }), | |
| 21945 | + | |
| 21946 | +/***/ "../node_modules/core-js/library/modules/_iterators.js": | |
| 21947 | +/*!*************************************************************!*\ | |
| 21948 | + !*** ../node_modules/core-js/library/modules/_iterators.js ***! | |
| 21949 | + \*************************************************************/ | |
| 21950 | +/***/ ((module) => { | |
| 21951 | + | |
| 21952 | +module.exports = {}; | |
| 21953 | + | |
| 21954 | + | |
| 21955 | +/***/ }), | |
| 21956 | + | |
| 21957 | +/***/ "../node_modules/core-js/library/modules/_library.js": | |
| 21958 | +/*!***********************************************************!*\ | |
| 21959 | + !*** ../node_modules/core-js/library/modules/_library.js ***! | |
| 21960 | + \***********************************************************/ | |
| 21961 | +/***/ ((module) => { | |
| 21962 | + | |
| 21963 | +module.exports = true; | |
| 21964 | + | |
| 21965 | + | |
| 21966 | +/***/ }), | |
| 21967 | + | |
| 21968 | +/***/ "../node_modules/core-js/library/modules/_meta.js": | |
| 21969 | +/*!********************************************************!*\ | |
| 21970 | + !*** ../node_modules/core-js/library/modules/_meta.js ***! | |
| 21971 | + \********************************************************/ | |
| 21972 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 21973 | + | |
| 21974 | +var META = __webpack_require__(/*! ./_uid */ "../node_modules/core-js/library/modules/_uid.js")('meta'); | |
| 21975 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 21976 | +var has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/library/modules/_has.js"); | |
| 21977 | +var setDesc = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/library/modules/_object-dp.js").f; | |
| 21978 | +var id = 0; | |
| 21979 | +var isExtensible = Object.isExtensible || function () { | |
| 21980 | + return true; | |
| 21981 | +}; | |
| 21982 | +var FREEZE = !__webpack_require__(/*! ./_fails */ "../node_modules/core-js/library/modules/_fails.js")(function () { | |
| 21983 | + return isExtensible(Object.preventExtensions({})); | |
| 21984 | +}); | |
| 21985 | +var setMeta = function (it) { | |
| 21986 | + setDesc(it, META, { value: { | |
| 21987 | + i: 'O' + ++id, // object ID | |
| 21988 | + w: {} // weak collections IDs | |
| 21989 | + } }); | |
| 21990 | +}; | |
| 21991 | +var fastKey = function (it, create) { | |
| 21992 | + // return primitive with prefix | |
| 21993 | + if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; | |
| 21994 | + if (!has(it, META)) { | |
| 21995 | + // can't set metadata to uncaught frozen object | |
| 21996 | + if (!isExtensible(it)) return 'F'; | |
| 21997 | + // not necessary to add metadata | |
| 21998 | + if (!create) return 'E'; | |
| 21999 | + // add missing metadata | |
| 22000 | + setMeta(it); | |
| 22001 | + // return object ID | |
| 22002 | + } return it[META].i; | |
| 22003 | +}; | |
| 22004 | +var getWeak = function (it, create) { | |
| 22005 | + if (!has(it, META)) { | |
| 22006 | + // can't set metadata to uncaught frozen object | |
| 22007 | + if (!isExtensible(it)) return true; | |
| 22008 | + // not necessary to add metadata | |
| 22009 | + if (!create) return false; | |
| 22010 | + // add missing metadata | |
| 22011 | + setMeta(it); | |
| 22012 | + // return hash weak collections IDs | |
| 22013 | + } return it[META].w; | |
| 22014 | +}; | |
| 22015 | +// add metadata on freeze-family methods calling | |
| 22016 | +var onFreeze = function (it) { | |
| 22017 | + if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); | |
| 22018 | + return it; | |
| 22019 | +}; | |
| 22020 | +var meta = module.exports = { | |
| 22021 | + KEY: META, | |
| 22022 | + NEED: false, | |
| 22023 | + fastKey: fastKey, | |
| 22024 | + getWeak: getWeak, | |
| 22025 | + onFreeze: onFreeze | |
| 22026 | +}; | |
| 22027 | + | |
| 22028 | + | |
| 22029 | +/***/ }), | |
| 22030 | + | |
| 22031 | +/***/ "../node_modules/core-js/library/modules/_microtask.js": | |
| 22032 | +/*!*************************************************************!*\ | |
| 22033 | + !*** ../node_modules/core-js/library/modules/_microtask.js ***! | |
| 22034 | + \*************************************************************/ | |
| 22035 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22036 | + | |
| 22037 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js"); | |
| 22038 | +var macrotask = __webpack_require__(/*! ./_task */ "../node_modules/core-js/library/modules/_task.js").set; | |
| 22039 | +var Observer = global.MutationObserver || global.WebKitMutationObserver; | |
| 22040 | +var process = global.process; | |
| 22041 | +var Promise = global.Promise; | |
| 22042 | +var isNode = __webpack_require__(/*! ./_cof */ "../node_modules/core-js/library/modules/_cof.js")(process) == 'process'; | |
| 22043 | + | |
| 22044 | +module.exports = function () { | |
| 22045 | + var head, last, notify; | |
| 22046 | + | |
| 22047 | + var flush = function () { | |
| 22048 | + var parent, fn; | |
| 22049 | + if (isNode && (parent = process.domain)) parent.exit(); | |
| 22050 | + while (head) { | |
| 22051 | + fn = head.fn; | |
| 22052 | + head = head.next; | |
| 22053 | + try { | |
| 22054 | + fn(); | |
| 22055 | + } catch (e) { | |
| 22056 | + if (head) notify(); | |
| 22057 | + else last = undefined; | |
| 22058 | + throw e; | |
| 22059 | + } | |
| 22060 | + } last = undefined; | |
| 22061 | + if (parent) parent.enter(); | |
| 22062 | + }; | |
| 22063 | + | |
| 22064 | + // Node.js | |
| 22065 | + if (isNode) { | |
| 22066 | + notify = function () { | |
| 22067 | + process.nextTick(flush); | |
| 22068 | + }; | |
| 22069 | + // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339 | |
| 22070 | + } else if (Observer && !(global.navigator && global.navigator.standalone)) { | |
| 22071 | + var toggle = true; | |
| 22072 | + var node = document.createTextNode(''); | |
| 22073 | + new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new | |
| 22074 | + notify = function () { | |
| 22075 | + node.data = toggle = !toggle; | |
| 22076 | + }; | |
| 22077 | + // environments with maybe non-completely correct, but existent Promise | |
| 22078 | + } else if (Promise && Promise.resolve) { | |
| 22079 | + // Promise.resolve without an argument throws an error in LG WebOS 2 | |
| 22080 | + var promise = Promise.resolve(undefined); | |
| 22081 | + notify = function () { | |
| 22082 | + promise.then(flush); | |
| 22083 | + }; | |
| 22084 | + // for other environments - macrotask based on: | |
| 22085 | + // - setImmediate | |
| 22086 | + // - MessageChannel | |
| 22087 | + // - window.postMessag | |
| 22088 | + // - onreadystatechange | |
| 22089 | + // - setTimeout | |
| 22090 | + } else { | |
| 22091 | + notify = function () { | |
| 22092 | + // strange IE + webpack dev server bug - use .call(global) | |
| 22093 | + macrotask.call(global, flush); | |
| 22094 | + }; | |
| 22095 | + } | |
| 22096 | + | |
| 22097 | + return function (fn) { | |
| 22098 | + var task = { fn: fn, next: undefined }; | |
| 22099 | + if (last) last.next = task; | |
| 22100 | + if (!head) { | |
| 22101 | + head = task; | |
| 22102 | + notify(); | |
| 22103 | + } last = task; | |
| 22104 | + }; | |
| 22105 | +}; | |
| 22106 | + | |
| 22107 | + | |
| 22108 | +/***/ }), | |
| 22109 | + | |
| 22110 | +/***/ "../node_modules/core-js/library/modules/_new-promise-capability.js": | |
| 22111 | +/*!**************************************************************************!*\ | |
| 22112 | + !*** ../node_modules/core-js/library/modules/_new-promise-capability.js ***! | |
| 22113 | + \**************************************************************************/ | |
| 22114 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22115 | + | |
| 22116 | +"use strict"; | |
| 22117 | + | |
| 22118 | +// 25.4.1.5 NewPromiseCapability(C) | |
| 22119 | +var aFunction = __webpack_require__(/*! ./_a-function */ "../node_modules/core-js/library/modules/_a-function.js"); | |
| 22120 | + | |
| 22121 | +function PromiseCapability(C) { | |
| 22122 | + var resolve, reject; | |
| 22123 | + this.promise = new C(function ($$resolve, $$reject) { | |
| 22124 | + if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor'); | |
| 22125 | + resolve = $$resolve; | |
| 22126 | + reject = $$reject; | |
| 22127 | + }); | |
| 22128 | + this.resolve = aFunction(resolve); | |
| 22129 | + this.reject = aFunction(reject); | |
| 1210 | 22130 | } |
| 1211 | -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1212 | 22131 | |
| 22132 | +module.exports.f = function (C) { | |
| 22133 | + return new PromiseCapability(C); | |
| 22134 | +}; | |
| 22135 | + | |
| 22136 | + | |
| 1213 | 22137 | /***/ }), |
| 1214 | 22138 | |
| 1215 | -/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 22139 | +/***/ "../node_modules/core-js/library/modules/_object-assign.js": | |
| 22140 | +/*!*****************************************************************!*\ | |
| 22141 | + !*** ../node_modules/core-js/library/modules/_object-assign.js ***! | |
| 22142 | + \*****************************************************************/ | |
| 22143 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22144 | + | |
| 22145 | +"use strict"; | |
| 22146 | + | |
| 22147 | +// 19.1.2.1 Object.assign(target, source, ...) | |
| 22148 | +var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/library/modules/_descriptors.js"); | |
| 22149 | +var getKeys = __webpack_require__(/*! ./_object-keys */ "../node_modules/core-js/library/modules/_object-keys.js"); | |
| 22150 | +var gOPS = __webpack_require__(/*! ./_object-gops */ "../node_modules/core-js/library/modules/_object-gops.js"); | |
| 22151 | +var pIE = __webpack_require__(/*! ./_object-pie */ "../node_modules/core-js/library/modules/_object-pie.js"); | |
| 22152 | +var toObject = __webpack_require__(/*! ./_to-object */ "../node_modules/core-js/library/modules/_to-object.js"); | |
| 22153 | +var IObject = __webpack_require__(/*! ./_iobject */ "../node_modules/core-js/library/modules/_iobject.js"); | |
| 22154 | +var $assign = Object.assign; | |
| 22155 | + | |
| 22156 | +// should work with symbols and should have deterministic property order (V8 bug) | |
| 22157 | +module.exports = !$assign || __webpack_require__(/*! ./_fails */ "../node_modules/core-js/library/modules/_fails.js")(function () { | |
| 22158 | + var A = {}; | |
| 22159 | + var B = {}; | |
| 22160 | + // eslint-disable-next-line no-undef | |
| 22161 | + var S = Symbol(); | |
| 22162 | + var K = 'abcdefghijklmnopqrst'; | |
| 22163 | + A[S] = 7; | |
| 22164 | + K.split('').forEach(function (k) { B[k] = k; }); | |
| 22165 | + return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; | |
| 22166 | +}) ? function assign(target, source) { // eslint-disable-line no-unused-vars | |
| 22167 | + var T = toObject(target); | |
| 22168 | + var aLen = arguments.length; | |
| 22169 | + var index = 1; | |
| 22170 | + var getSymbols = gOPS.f; | |
| 22171 | + var isEnum = pIE.f; | |
| 22172 | + while (aLen > index) { | |
| 22173 | + var S = IObject(arguments[index++]); | |
| 22174 | + var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); | |
| 22175 | + var length = keys.length; | |
| 22176 | + var j = 0; | |
| 22177 | + var key; | |
| 22178 | + while (length > j) { | |
| 22179 | + key = keys[j++]; | |
| 22180 | + if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key]; | |
| 22181 | + } | |
| 22182 | + } return T; | |
| 22183 | +} : $assign; | |
| 22184 | + | |
| 22185 | + | |
| 22186 | +/***/ }), | |
| 22187 | + | |
| 22188 | +/***/ "../node_modules/core-js/library/modules/_object-create.js": | |
| 22189 | +/*!*****************************************************************!*\ | |
| 22190 | + !*** ../node_modules/core-js/library/modules/_object-create.js ***! | |
| 22191 | + \*****************************************************************/ | |
| 22192 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22193 | + | |
| 22194 | +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | |
| 22195 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/library/modules/_an-object.js"); | |
| 22196 | +var dPs = __webpack_require__(/*! ./_object-dps */ "../node_modules/core-js/library/modules/_object-dps.js"); | |
| 22197 | +var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "../node_modules/core-js/library/modules/_enum-bug-keys.js"); | |
| 22198 | +var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "../node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO'); | |
| 22199 | +var Empty = function () { /* empty */ }; | |
| 22200 | +var PROTOTYPE = 'prototype'; | |
| 22201 | + | |
| 22202 | +// Create object with fake `null` prototype: use iframe Object with cleared prototype | |
| 22203 | +var createDict = function () { | |
| 22204 | + // Thrash, waste and sodomy: IE GC bug | |
| 22205 | + var iframe = __webpack_require__(/*! ./_dom-create */ "../node_modules/core-js/library/modules/_dom-create.js")('iframe'); | |
| 22206 | + var i = enumBugKeys.length; | |
| 22207 | + var lt = '<'; | |
| 22208 | + var gt = '>'; | |
| 22209 | + var iframeDocument; | |
| 22210 | + iframe.style.display = 'none'; | |
| 22211 | + __webpack_require__(/*! ./_html */ "../node_modules/core-js/library/modules/_html.js").appendChild(iframe); | |
| 22212 | + iframe.src = 'javascript:'; // eslint-disable-line no-script-url | |
| 22213 | + // createDict = iframe.contentWindow.Object; | |
| 22214 | + // html.removeChild(iframe); | |
| 22215 | + iframeDocument = iframe.contentWindow.document; | |
| 22216 | + iframeDocument.open(); | |
| 22217 | + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); | |
| 22218 | + iframeDocument.close(); | |
| 22219 | + createDict = iframeDocument.F; | |
| 22220 | + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; | |
| 22221 | + return createDict(); | |
| 22222 | +}; | |
| 22223 | + | |
| 22224 | +module.exports = Object.create || function create(O, Properties) { | |
| 22225 | + var result; | |
| 22226 | + if (O !== null) { | |
| 22227 | + Empty[PROTOTYPE] = anObject(O); | |
| 22228 | + result = new Empty(); | |
| 22229 | + Empty[PROTOTYPE] = null; | |
| 22230 | + // add "__proto__" for Object.getPrototypeOf polyfill | |
| 22231 | + result[IE_PROTO] = O; | |
| 22232 | + } else result = createDict(); | |
| 22233 | + return Properties === undefined ? result : dPs(result, Properties); | |
| 22234 | +}; | |
| 22235 | + | |
| 22236 | + | |
| 22237 | +/***/ }), | |
| 22238 | + | |
| 22239 | +/***/ "../node_modules/core-js/library/modules/_object-dp.js": | |
| 22240 | +/*!*************************************************************!*\ | |
| 22241 | + !*** ../node_modules/core-js/library/modules/_object-dp.js ***! | |
| 22242 | + \*************************************************************/ | |
| 22243 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 22244 | + | |
| 22245 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/library/modules/_an-object.js"); | |
| 22246 | +var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "../node_modules/core-js/library/modules/_ie8-dom-define.js"); | |
| 22247 | +var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "../node_modules/core-js/library/modules/_to-primitive.js"); | |
| 22248 | +var dP = Object.defineProperty; | |
| 22249 | + | |
| 22250 | +exports.f = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperty : function defineProperty(O, P, Attributes) { | |
| 22251 | + anObject(O); | |
| 22252 | + P = toPrimitive(P, true); | |
| 22253 | + anObject(Attributes); | |
| 22254 | + if (IE8_DOM_DEFINE) try { | |
| 22255 | + return dP(O, P, Attributes); | |
| 22256 | + } catch (e) { /* empty */ } | |
| 22257 | + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); | |
| 22258 | + if ('value' in Attributes) O[P] = Attributes.value; | |
| 22259 | + return O; | |
| 22260 | +}; | |
| 22261 | + | |
| 22262 | + | |
| 22263 | +/***/ }), | |
| 22264 | + | |
| 22265 | +/***/ "../node_modules/core-js/library/modules/_object-dps.js": | |
| 22266 | +/*!**************************************************************!*\ | |
| 22267 | + !*** ../node_modules/core-js/library/modules/_object-dps.js ***! | |
| 22268 | + \**************************************************************/ | |
| 22269 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22270 | + | |
| 22271 | +var dP = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/library/modules/_object-dp.js"); | |
| 22272 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/library/modules/_an-object.js"); | |
| 22273 | +var getKeys = __webpack_require__(/*! ./_object-keys */ "../node_modules/core-js/library/modules/_object-keys.js"); | |
| 22274 | + | |
| 22275 | +module.exports = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperties : function defineProperties(O, Properties) { | |
| 22276 | + anObject(O); | |
| 22277 | + var keys = getKeys(Properties); | |
| 22278 | + var length = keys.length; | |
| 22279 | + var i = 0; | |
| 22280 | + var P; | |
| 22281 | + while (length > i) dP.f(O, P = keys[i++], Properties[P]); | |
| 22282 | + return O; | |
| 22283 | +}; | |
| 22284 | + | |
| 22285 | + | |
| 22286 | +/***/ }), | |
| 22287 | + | |
| 22288 | +/***/ "../node_modules/core-js/library/modules/_object-gopd.js": | |
| 22289 | +/*!***************************************************************!*\ | |
| 22290 | + !*** ../node_modules/core-js/library/modules/_object-gopd.js ***! | |
| 22291 | + \***************************************************************/ | |
| 22292 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 22293 | + | |
| 22294 | +var pIE = __webpack_require__(/*! ./_object-pie */ "../node_modules/core-js/library/modules/_object-pie.js"); | |
| 22295 | +var createDesc = __webpack_require__(/*! ./_property-desc */ "../node_modules/core-js/library/modules/_property-desc.js"); | |
| 22296 | +var toIObject = __webpack_require__(/*! ./_to-iobject */ "../node_modules/core-js/library/modules/_to-iobject.js"); | |
| 22297 | +var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "../node_modules/core-js/library/modules/_to-primitive.js"); | |
| 22298 | +var has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/library/modules/_has.js"); | |
| 22299 | +var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "../node_modules/core-js/library/modules/_ie8-dom-define.js"); | |
| 22300 | +var gOPD = Object.getOwnPropertyDescriptor; | |
| 22301 | + | |
| 22302 | +exports.f = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/library/modules/_descriptors.js") ? gOPD : function getOwnPropertyDescriptor(O, P) { | |
| 22303 | + O = toIObject(O); | |
| 22304 | + P = toPrimitive(P, true); | |
| 22305 | + if (IE8_DOM_DEFINE) try { | |
| 22306 | + return gOPD(O, P); | |
| 22307 | + } catch (e) { /* empty */ } | |
| 22308 | + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); | |
| 22309 | +}; | |
| 22310 | + | |
| 22311 | + | |
| 22312 | +/***/ }), | |
| 22313 | + | |
| 22314 | +/***/ "../node_modules/core-js/library/modules/_object-gopn-ext.js": | |
| 22315 | +/*!*******************************************************************!*\ | |
| 22316 | + !*** ../node_modules/core-js/library/modules/_object-gopn-ext.js ***! | |
| 22317 | + \*******************************************************************/ | |
| 22318 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22319 | + | |
| 22320 | +// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window | |
| 22321 | +var toIObject = __webpack_require__(/*! ./_to-iobject */ "../node_modules/core-js/library/modules/_to-iobject.js"); | |
| 22322 | +var gOPN = __webpack_require__(/*! ./_object-gopn */ "../node_modules/core-js/library/modules/_object-gopn.js").f; | |
| 22323 | +var toString = {}.toString; | |
| 22324 | + | |
| 22325 | +var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames | |
| 22326 | + ? Object.getOwnPropertyNames(window) : []; | |
| 22327 | + | |
| 22328 | +var getWindowNames = function (it) { | |
| 22329 | + try { | |
| 22330 | + return gOPN(it); | |
| 22331 | + } catch (e) { | |
| 22332 | + return windowNames.slice(); | |
| 22333 | + } | |
| 22334 | +}; | |
| 22335 | + | |
| 22336 | +module.exports.f = function getOwnPropertyNames(it) { | |
| 22337 | + return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); | |
| 22338 | +}; | |
| 22339 | + | |
| 22340 | + | |
| 22341 | +/***/ }), | |
| 22342 | + | |
| 22343 | +/***/ "../node_modules/core-js/library/modules/_object-gopn.js": | |
| 22344 | +/*!***************************************************************!*\ | |
| 22345 | + !*** ../node_modules/core-js/library/modules/_object-gopn.js ***! | |
| 22346 | + \***************************************************************/ | |
| 22347 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 22348 | + | |
| 22349 | +// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) | |
| 22350 | +var $keys = __webpack_require__(/*! ./_object-keys-internal */ "../node_modules/core-js/library/modules/_object-keys-internal.js"); | |
| 22351 | +var hiddenKeys = __webpack_require__(/*! ./_enum-bug-keys */ "../node_modules/core-js/library/modules/_enum-bug-keys.js").concat('length', 'prototype'); | |
| 22352 | + | |
| 22353 | +exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { | |
| 22354 | + return $keys(O, hiddenKeys); | |
| 22355 | +}; | |
| 22356 | + | |
| 22357 | + | |
| 22358 | +/***/ }), | |
| 22359 | + | |
| 22360 | +/***/ "../node_modules/core-js/library/modules/_object-gops.js": | |
| 22361 | +/*!***************************************************************!*\ | |
| 22362 | + !*** ../node_modules/core-js/library/modules/_object-gops.js ***! | |
| 22363 | + \***************************************************************/ | |
| 22364 | +/***/ ((__unused_webpack_module, exports) => { | |
| 22365 | + | |
| 22366 | +exports.f = Object.getOwnPropertySymbols; | |
| 22367 | + | |
| 22368 | + | |
| 22369 | +/***/ }), | |
| 22370 | + | |
| 22371 | +/***/ "../node_modules/core-js/library/modules/_object-gpo.js": | |
| 22372 | +/*!**************************************************************!*\ | |
| 22373 | + !*** ../node_modules/core-js/library/modules/_object-gpo.js ***! | |
| 22374 | + \**************************************************************/ | |
| 22375 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22376 | + | |
| 22377 | +// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) | |
| 22378 | +var has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/library/modules/_has.js"); | |
| 22379 | +var toObject = __webpack_require__(/*! ./_to-object */ "../node_modules/core-js/library/modules/_to-object.js"); | |
| 22380 | +var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "../node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO'); | |
| 22381 | +var ObjectProto = Object.prototype; | |
| 22382 | + | |
| 22383 | +module.exports = Object.getPrototypeOf || function (O) { | |
| 22384 | + O = toObject(O); | |
| 22385 | + if (has(O, IE_PROTO)) return O[IE_PROTO]; | |
| 22386 | + if (typeof O.constructor == 'function' && O instanceof O.constructor) { | |
| 22387 | + return O.constructor.prototype; | |
| 22388 | + } return O instanceof Object ? ObjectProto : null; | |
| 22389 | +}; | |
| 22390 | + | |
| 22391 | + | |
| 22392 | +/***/ }), | |
| 22393 | + | |
| 22394 | +/***/ "../node_modules/core-js/library/modules/_object-keys-internal.js": | |
| 22395 | +/*!************************************************************************!*\ | |
| 22396 | + !*** ../node_modules/core-js/library/modules/_object-keys-internal.js ***! | |
| 22397 | + \************************************************************************/ | |
| 22398 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22399 | + | |
| 22400 | +var has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/library/modules/_has.js"); | |
| 22401 | +var toIObject = __webpack_require__(/*! ./_to-iobject */ "../node_modules/core-js/library/modules/_to-iobject.js"); | |
| 22402 | +var arrayIndexOf = __webpack_require__(/*! ./_array-includes */ "../node_modules/core-js/library/modules/_array-includes.js")(false); | |
| 22403 | +var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "../node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO'); | |
| 22404 | + | |
| 22405 | +module.exports = function (object, names) { | |
| 22406 | + var O = toIObject(object); | |
| 22407 | + var i = 0; | |
| 22408 | + var result = []; | |
| 22409 | + var key; | |
| 22410 | + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); | |
| 22411 | + // Don't enum bug & hidden keys | |
| 22412 | + while (names.length > i) if (has(O, key = names[i++])) { | |
| 22413 | + ~arrayIndexOf(result, key) || result.push(key); | |
| 22414 | + } | |
| 22415 | + return result; | |
| 22416 | +}; | |
| 22417 | + | |
| 22418 | + | |
| 22419 | +/***/ }), | |
| 22420 | + | |
| 22421 | +/***/ "../node_modules/core-js/library/modules/_object-keys.js": | |
| 22422 | +/*!***************************************************************!*\ | |
| 22423 | + !*** ../node_modules/core-js/library/modules/_object-keys.js ***! | |
| 22424 | + \***************************************************************/ | |
| 22425 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22426 | + | |
| 22427 | +// 19.1.2.14 / 15.2.3.14 Object.keys(O) | |
| 22428 | +var $keys = __webpack_require__(/*! ./_object-keys-internal */ "../node_modules/core-js/library/modules/_object-keys-internal.js"); | |
| 22429 | +var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "../node_modules/core-js/library/modules/_enum-bug-keys.js"); | |
| 22430 | + | |
| 22431 | +module.exports = Object.keys || function keys(O) { | |
| 22432 | + return $keys(O, enumBugKeys); | |
| 22433 | +}; | |
| 22434 | + | |
| 22435 | + | |
| 22436 | +/***/ }), | |
| 22437 | + | |
| 22438 | +/***/ "../node_modules/core-js/library/modules/_object-pie.js": | |
| 22439 | +/*!**************************************************************!*\ | |
| 22440 | + !*** ../node_modules/core-js/library/modules/_object-pie.js ***! | |
| 22441 | + \**************************************************************/ | |
| 22442 | +/***/ ((__unused_webpack_module, exports) => { | |
| 22443 | + | |
| 22444 | +exports.f = {}.propertyIsEnumerable; | |
| 22445 | + | |
| 22446 | + | |
| 22447 | +/***/ }), | |
| 22448 | + | |
| 22449 | +/***/ "../node_modules/core-js/library/modules/_object-sap.js": | |
| 22450 | +/*!**************************************************************!*\ | |
| 22451 | + !*** ../node_modules/core-js/library/modules/_object-sap.js ***! | |
| 22452 | + \**************************************************************/ | |
| 22453 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22454 | + | |
| 22455 | +// most Object methods by ES6 should accept primitives | |
| 22456 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 22457 | +var core = __webpack_require__(/*! ./_core */ "../node_modules/core-js/library/modules/_core.js"); | |
| 22458 | +var fails = __webpack_require__(/*! ./_fails */ "../node_modules/core-js/library/modules/_fails.js"); | |
| 22459 | +module.exports = function (KEY, exec) { | |
| 22460 | + var fn = (core.Object || {})[KEY] || Object[KEY]; | |
| 22461 | + var exp = {}; | |
| 22462 | + exp[KEY] = exec(fn); | |
| 22463 | + $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp); | |
| 22464 | +}; | |
| 22465 | + | |
| 22466 | + | |
| 22467 | +/***/ }), | |
| 22468 | + | |
| 22469 | +/***/ "../node_modules/core-js/library/modules/_object-to-array.js": | |
| 22470 | +/*!*******************************************************************!*\ | |
| 22471 | + !*** ../node_modules/core-js/library/modules/_object-to-array.js ***! | |
| 22472 | + \*******************************************************************/ | |
| 22473 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22474 | + | |
| 22475 | +var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/library/modules/_descriptors.js"); | |
| 22476 | +var getKeys = __webpack_require__(/*! ./_object-keys */ "../node_modules/core-js/library/modules/_object-keys.js"); | |
| 22477 | +var toIObject = __webpack_require__(/*! ./_to-iobject */ "../node_modules/core-js/library/modules/_to-iobject.js"); | |
| 22478 | +var isEnum = __webpack_require__(/*! ./_object-pie */ "../node_modules/core-js/library/modules/_object-pie.js").f; | |
| 22479 | +module.exports = function (isEntries) { | |
| 22480 | + return function (it) { | |
| 22481 | + var O = toIObject(it); | |
| 22482 | + var keys = getKeys(O); | |
| 22483 | + var length = keys.length; | |
| 22484 | + var i = 0; | |
| 22485 | + var result = []; | |
| 22486 | + var key; | |
| 22487 | + while (length > i) { | |
| 22488 | + key = keys[i++]; | |
| 22489 | + if (!DESCRIPTORS || isEnum.call(O, key)) { | |
| 22490 | + result.push(isEntries ? [key, O[key]] : O[key]); | |
| 22491 | + } | |
| 22492 | + } | |
| 22493 | + return result; | |
| 22494 | + }; | |
| 22495 | +}; | |
| 22496 | + | |
| 22497 | + | |
| 22498 | +/***/ }), | |
| 22499 | + | |
| 22500 | +/***/ "../node_modules/core-js/library/modules/_own-keys.js": | |
| 22501 | +/*!************************************************************!*\ | |
| 22502 | + !*** ../node_modules/core-js/library/modules/_own-keys.js ***! | |
| 22503 | + \************************************************************/ | |
| 22504 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22505 | + | |
| 22506 | +// all object keys, includes non-enumerable and symbols | |
| 22507 | +var gOPN = __webpack_require__(/*! ./_object-gopn */ "../node_modules/core-js/library/modules/_object-gopn.js"); | |
| 22508 | +var gOPS = __webpack_require__(/*! ./_object-gops */ "../node_modules/core-js/library/modules/_object-gops.js"); | |
| 22509 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/library/modules/_an-object.js"); | |
| 22510 | +var Reflect = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js").Reflect; | |
| 22511 | +module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) { | |
| 22512 | + var keys = gOPN.f(anObject(it)); | |
| 22513 | + var getSymbols = gOPS.f; | |
| 22514 | + return getSymbols ? keys.concat(getSymbols(it)) : keys; | |
| 22515 | +}; | |
| 22516 | + | |
| 22517 | + | |
| 22518 | +/***/ }), | |
| 22519 | + | |
| 22520 | +/***/ "../node_modules/core-js/library/modules/_parse-int.js": | |
| 22521 | +/*!*************************************************************!*\ | |
| 22522 | + !*** ../node_modules/core-js/library/modules/_parse-int.js ***! | |
| 22523 | + \*************************************************************/ | |
| 22524 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22525 | + | |
| 22526 | +var $parseInt = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js").parseInt; | |
| 22527 | +var $trim = __webpack_require__(/*! ./_string-trim */ "../node_modules/core-js/library/modules/_string-trim.js").trim; | |
| 22528 | +var ws = __webpack_require__(/*! ./_string-ws */ "../node_modules/core-js/library/modules/_string-ws.js"); | |
| 22529 | +var hex = /^[-+]?0[xX]/; | |
| 22530 | + | |
| 22531 | +module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) { | |
| 22532 | + var string = $trim(String(str), 3); | |
| 22533 | + return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10)); | |
| 22534 | +} : $parseInt; | |
| 22535 | + | |
| 22536 | + | |
| 22537 | +/***/ }), | |
| 22538 | + | |
| 22539 | +/***/ "../node_modules/core-js/library/modules/_perform.js": | |
| 22540 | +/*!***********************************************************!*\ | |
| 22541 | + !*** ../node_modules/core-js/library/modules/_perform.js ***! | |
| 22542 | + \***********************************************************/ | |
| 22543 | +/***/ ((module) => { | |
| 22544 | + | |
| 22545 | +module.exports = function (exec) { | |
| 22546 | + try { | |
| 22547 | + return { e: false, v: exec() }; | |
| 22548 | + } catch (e) { | |
| 22549 | + return { e: true, v: e }; | |
| 22550 | + } | |
| 22551 | +}; | |
| 22552 | + | |
| 22553 | + | |
| 22554 | +/***/ }), | |
| 22555 | + | |
| 22556 | +/***/ "../node_modules/core-js/library/modules/_promise-resolve.js": | |
| 22557 | +/*!*******************************************************************!*\ | |
| 22558 | + !*** ../node_modules/core-js/library/modules/_promise-resolve.js ***! | |
| 22559 | + \*******************************************************************/ | |
| 22560 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22561 | + | |
| 22562 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/library/modules/_an-object.js"); | |
| 22563 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 22564 | +var newPromiseCapability = __webpack_require__(/*! ./_new-promise-capability */ "../node_modules/core-js/library/modules/_new-promise-capability.js"); | |
| 22565 | + | |
| 22566 | +module.exports = function (C, x) { | |
| 22567 | + anObject(C); | |
| 22568 | + if (isObject(x) && x.constructor === C) return x; | |
| 22569 | + var promiseCapability = newPromiseCapability.f(C); | |
| 22570 | + var resolve = promiseCapability.resolve; | |
| 22571 | + resolve(x); | |
| 22572 | + return promiseCapability.promise; | |
| 22573 | +}; | |
| 22574 | + | |
| 22575 | + | |
| 22576 | +/***/ }), | |
| 22577 | + | |
| 22578 | +/***/ "../node_modules/core-js/library/modules/_property-desc.js": | |
| 22579 | +/*!*****************************************************************!*\ | |
| 22580 | + !*** ../node_modules/core-js/library/modules/_property-desc.js ***! | |
| 22581 | + \*****************************************************************/ | |
| 22582 | +/***/ ((module) => { | |
| 22583 | + | |
| 22584 | +module.exports = function (bitmap, value) { | |
| 22585 | + return { | |
| 22586 | + enumerable: !(bitmap & 1), | |
| 22587 | + configurable: !(bitmap & 2), | |
| 22588 | + writable: !(bitmap & 4), | |
| 22589 | + value: value | |
| 22590 | + }; | |
| 22591 | +}; | |
| 22592 | + | |
| 22593 | + | |
| 22594 | +/***/ }), | |
| 22595 | + | |
| 22596 | +/***/ "../node_modules/core-js/library/modules/_redefine-all.js": | |
| 1216 | 22597 | /*!****************************************************************!*\ |
| 1217 | - !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 22598 | + !*** ../node_modules/core-js/library/modules/_redefine-all.js ***! | |
| 1218 | 22599 | \****************************************************************/ |
| 1219 | -/***/ ((module) => { | |
| 22600 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1220 | 22601 | |
| 1221 | -function _arrayWithHoles(r) { | |
| 1222 | - if (Array.isArray(r)) return r; | |
| 1223 | -} | |
| 1224 | -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 22602 | +var hide = __webpack_require__(/*! ./_hide */ "../node_modules/core-js/library/modules/_hide.js"); | |
| 22603 | +module.exports = function (target, src, safe) { | |
| 22604 | + for (var key in src) { | |
| 22605 | + if (safe && target[key]) target[key] = src[key]; | |
| 22606 | + else hide(target, key, src[key]); | |
| 22607 | + } return target; | |
| 22608 | +}; | |
| 1225 | 22609 | |
| 22610 | + | |
| 1226 | 22611 | /***/ }), |
| 1227 | 22612 | |
| 1228 | -/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": | |
| 22613 | +/***/ "../node_modules/core-js/library/modules/_redefine.js": | |
| 22614 | +/*!************************************************************!*\ | |
| 22615 | + !*** ../node_modules/core-js/library/modules/_redefine.js ***! | |
| 22616 | + \************************************************************/ | |
| 22617 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22618 | + | |
| 22619 | +module.exports = __webpack_require__(/*! ./_hide */ "../node_modules/core-js/library/modules/_hide.js"); | |
| 22620 | + | |
| 22621 | + | |
| 22622 | +/***/ }), | |
| 22623 | + | |
| 22624 | +/***/ "../node_modules/core-js/library/modules/_set-collection-from.js": | |
| 1229 | 22625 | /*!***********************************************************************!*\ |
| 1230 | - !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! | |
| 22626 | + !*** ../node_modules/core-js/library/modules/_set-collection-from.js ***! | |
| 1231 | 22627 | \***********************************************************************/ |
| 22628 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22629 | + | |
| 22630 | +"use strict"; | |
| 22631 | + | |
| 22632 | +// https://tc39.github.io/proposal-setmap-offrom/ | |
| 22633 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 22634 | +var aFunction = __webpack_require__(/*! ./_a-function */ "../node_modules/core-js/library/modules/_a-function.js"); | |
| 22635 | +var ctx = __webpack_require__(/*! ./_ctx */ "../node_modules/core-js/library/modules/_ctx.js"); | |
| 22636 | +var forOf = __webpack_require__(/*! ./_for-of */ "../node_modules/core-js/library/modules/_for-of.js"); | |
| 22637 | + | |
| 22638 | +module.exports = function (COLLECTION) { | |
| 22639 | + $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) { | |
| 22640 | + var mapFn = arguments[1]; | |
| 22641 | + var mapping, A, n, cb; | |
| 22642 | + aFunction(this); | |
| 22643 | + mapping = mapFn !== undefined; | |
| 22644 | + if (mapping) aFunction(mapFn); | |
| 22645 | + if (source == undefined) return new this(); | |
| 22646 | + A = []; | |
| 22647 | + if (mapping) { | |
| 22648 | + n = 0; | |
| 22649 | + cb = ctx(mapFn, arguments[2], 2); | |
| 22650 | + forOf(source, false, function (nextItem) { | |
| 22651 | + A.push(cb(nextItem, n++)); | |
| 22652 | + }); | |
| 22653 | + } else { | |
| 22654 | + forOf(source, false, A.push, A); | |
| 22655 | + } | |
| 22656 | + return new this(A); | |
| 22657 | + } }); | |
| 22658 | +}; | |
| 22659 | + | |
| 22660 | + | |
| 22661 | +/***/ }), | |
| 22662 | + | |
| 22663 | +/***/ "../node_modules/core-js/library/modules/_set-collection-of.js": | |
| 22664 | +/*!*********************************************************************!*\ | |
| 22665 | + !*** ../node_modules/core-js/library/modules/_set-collection-of.js ***! | |
| 22666 | + \*********************************************************************/ | |
| 22667 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22668 | + | |
| 22669 | +"use strict"; | |
| 22670 | + | |
| 22671 | +// https://tc39.github.io/proposal-setmap-offrom/ | |
| 22672 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 22673 | + | |
| 22674 | +module.exports = function (COLLECTION) { | |
| 22675 | + $export($export.S, COLLECTION, { of: function of() { | |
| 22676 | + var length = arguments.length; | |
| 22677 | + var A = new Array(length); | |
| 22678 | + while (length--) A[length] = arguments[length]; | |
| 22679 | + return new this(A); | |
| 22680 | + } }); | |
| 22681 | +}; | |
| 22682 | + | |
| 22683 | + | |
| 22684 | +/***/ }), | |
| 22685 | + | |
| 22686 | +/***/ "../node_modules/core-js/library/modules/_set-proto.js": | |
| 22687 | +/*!*************************************************************!*\ | |
| 22688 | + !*** ../node_modules/core-js/library/modules/_set-proto.js ***! | |
| 22689 | + \*************************************************************/ | |
| 22690 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22691 | + | |
| 22692 | +// Works with __proto__ only. Old v8 can't work with null proto objects. | |
| 22693 | +/* eslint-disable no-proto */ | |
| 22694 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 22695 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/library/modules/_an-object.js"); | |
| 22696 | +var check = function (O, proto) { | |
| 22697 | + anObject(O); | |
| 22698 | + if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); | |
| 22699 | +}; | |
| 22700 | +module.exports = { | |
| 22701 | + set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line | |
| 22702 | + function (test, buggy, set) { | |
| 22703 | + try { | |
| 22704 | + set = __webpack_require__(/*! ./_ctx */ "../node_modules/core-js/library/modules/_ctx.js")(Function.call, __webpack_require__(/*! ./_object-gopd */ "../node_modules/core-js/library/modules/_object-gopd.js").f(Object.prototype, '__proto__').set, 2); | |
| 22705 | + set(test, []); | |
| 22706 | + buggy = !(test instanceof Array); | |
| 22707 | + } catch (e) { buggy = true; } | |
| 22708 | + return function setPrototypeOf(O, proto) { | |
| 22709 | + check(O, proto); | |
| 22710 | + if (buggy) O.__proto__ = proto; | |
| 22711 | + else set(O, proto); | |
| 22712 | + return O; | |
| 22713 | + }; | |
| 22714 | + }({}, false) : undefined), | |
| 22715 | + check: check | |
| 22716 | +}; | |
| 22717 | + | |
| 22718 | + | |
| 22719 | +/***/ }), | |
| 22720 | + | |
| 22721 | +/***/ "../node_modules/core-js/library/modules/_set-species.js": | |
| 22722 | +/*!***************************************************************!*\ | |
| 22723 | + !*** ../node_modules/core-js/library/modules/_set-species.js ***! | |
| 22724 | + \***************************************************************/ | |
| 22725 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22726 | + | |
| 22727 | +"use strict"; | |
| 22728 | + | |
| 22729 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js"); | |
| 22730 | +var core = __webpack_require__(/*! ./_core */ "../node_modules/core-js/library/modules/_core.js"); | |
| 22731 | +var dP = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/library/modules/_object-dp.js"); | |
| 22732 | +var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/library/modules/_descriptors.js"); | |
| 22733 | +var SPECIES = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/library/modules/_wks.js")('species'); | |
| 22734 | + | |
| 22735 | +module.exports = function (KEY) { | |
| 22736 | + var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY]; | |
| 22737 | + if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { | |
| 22738 | + configurable: true, | |
| 22739 | + get: function () { return this; } | |
| 22740 | + }); | |
| 22741 | +}; | |
| 22742 | + | |
| 22743 | + | |
| 22744 | +/***/ }), | |
| 22745 | + | |
| 22746 | +/***/ "../node_modules/core-js/library/modules/_set-to-string-tag.js": | |
| 22747 | +/*!*********************************************************************!*\ | |
| 22748 | + !*** ../node_modules/core-js/library/modules/_set-to-string-tag.js ***! | |
| 22749 | + \*********************************************************************/ | |
| 22750 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22751 | + | |
| 22752 | +var def = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/library/modules/_object-dp.js").f; | |
| 22753 | +var has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/library/modules/_has.js"); | |
| 22754 | +var TAG = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/library/modules/_wks.js")('toStringTag'); | |
| 22755 | + | |
| 22756 | +module.exports = function (it, tag, stat) { | |
| 22757 | + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); | |
| 22758 | +}; | |
| 22759 | + | |
| 22760 | + | |
| 22761 | +/***/ }), | |
| 22762 | + | |
| 22763 | +/***/ "../node_modules/core-js/library/modules/_shared-key.js": | |
| 22764 | +/*!**************************************************************!*\ | |
| 22765 | + !*** ../node_modules/core-js/library/modules/_shared-key.js ***! | |
| 22766 | + \**************************************************************/ | |
| 22767 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22768 | + | |
| 22769 | +var shared = __webpack_require__(/*! ./_shared */ "../node_modules/core-js/library/modules/_shared.js")('keys'); | |
| 22770 | +var uid = __webpack_require__(/*! ./_uid */ "../node_modules/core-js/library/modules/_uid.js"); | |
| 22771 | +module.exports = function (key) { | |
| 22772 | + return shared[key] || (shared[key] = uid(key)); | |
| 22773 | +}; | |
| 22774 | + | |
| 22775 | + | |
| 22776 | +/***/ }), | |
| 22777 | + | |
| 22778 | +/***/ "../node_modules/core-js/library/modules/_shared.js": | |
| 22779 | +/*!**********************************************************!*\ | |
| 22780 | + !*** ../node_modules/core-js/library/modules/_shared.js ***! | |
| 22781 | + \**********************************************************/ | |
| 22782 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22783 | + | |
| 22784 | +var core = __webpack_require__(/*! ./_core */ "../node_modules/core-js/library/modules/_core.js"); | |
| 22785 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js"); | |
| 22786 | +var SHARED = '__core-js_shared__'; | |
| 22787 | +var store = global[SHARED] || (global[SHARED] = {}); | |
| 22788 | + | |
| 22789 | +(module.exports = function (key, value) { | |
| 22790 | + return store[key] || (store[key] = value !== undefined ? value : {}); | |
| 22791 | +})('versions', []).push({ | |
| 22792 | + version: core.version, | |
| 22793 | + mode: __webpack_require__(/*! ./_library */ "../node_modules/core-js/library/modules/_library.js") ? 'pure' : 'global', | |
| 22794 | + copyright: '© 2020 Denis Pushkarev (zloirock.ru)' | |
| 22795 | +}); | |
| 22796 | + | |
| 22797 | + | |
| 22798 | +/***/ }), | |
| 22799 | + | |
| 22800 | +/***/ "../node_modules/core-js/library/modules/_species-constructor.js": | |
| 22801 | +/*!***********************************************************************!*\ | |
| 22802 | + !*** ../node_modules/core-js/library/modules/_species-constructor.js ***! | |
| 22803 | + \***********************************************************************/ | |
| 22804 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22805 | + | |
| 22806 | +// 7.3.20 SpeciesConstructor(O, defaultConstructor) | |
| 22807 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/library/modules/_an-object.js"); | |
| 22808 | +var aFunction = __webpack_require__(/*! ./_a-function */ "../node_modules/core-js/library/modules/_a-function.js"); | |
| 22809 | +var SPECIES = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/library/modules/_wks.js")('species'); | |
| 22810 | +module.exports = function (O, D) { | |
| 22811 | + var C = anObject(O).constructor; | |
| 22812 | + var S; | |
| 22813 | + return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); | |
| 22814 | +}; | |
| 22815 | + | |
| 22816 | + | |
| 22817 | +/***/ }), | |
| 22818 | + | |
| 22819 | +/***/ "../node_modules/core-js/library/modules/_string-at.js": | |
| 22820 | +/*!*************************************************************!*\ | |
| 22821 | + !*** ../node_modules/core-js/library/modules/_string-at.js ***! | |
| 22822 | + \*************************************************************/ | |
| 22823 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22824 | + | |
| 22825 | +var toInteger = __webpack_require__(/*! ./_to-integer */ "../node_modules/core-js/library/modules/_to-integer.js"); | |
| 22826 | +var defined = __webpack_require__(/*! ./_defined */ "../node_modules/core-js/library/modules/_defined.js"); | |
| 22827 | +// true -> String#at | |
| 22828 | +// false -> String#codePointAt | |
| 22829 | +module.exports = function (TO_STRING) { | |
| 22830 | + return function (that, pos) { | |
| 22831 | + var s = String(defined(that)); | |
| 22832 | + var i = toInteger(pos); | |
| 22833 | + var l = s.length; | |
| 22834 | + var a, b; | |
| 22835 | + if (i < 0 || i >= l) return TO_STRING ? '' : undefined; | |
| 22836 | + a = s.charCodeAt(i); | |
| 22837 | + return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff | |
| 22838 | + ? TO_STRING ? s.charAt(i) : a | |
| 22839 | + : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; | |
| 22840 | + }; | |
| 22841 | +}; | |
| 22842 | + | |
| 22843 | + | |
| 22844 | +/***/ }), | |
| 22845 | + | |
| 22846 | +/***/ "../node_modules/core-js/library/modules/_string-trim.js": | |
| 22847 | +/*!***************************************************************!*\ | |
| 22848 | + !*** ../node_modules/core-js/library/modules/_string-trim.js ***! | |
| 22849 | + \***************************************************************/ | |
| 22850 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22851 | + | |
| 22852 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 22853 | +var defined = __webpack_require__(/*! ./_defined */ "../node_modules/core-js/library/modules/_defined.js"); | |
| 22854 | +var fails = __webpack_require__(/*! ./_fails */ "../node_modules/core-js/library/modules/_fails.js"); | |
| 22855 | +var spaces = __webpack_require__(/*! ./_string-ws */ "../node_modules/core-js/library/modules/_string-ws.js"); | |
| 22856 | +var space = '[' + spaces + ']'; | |
| 22857 | +var non = '\u200b\u0085'; | |
| 22858 | +var ltrim = RegExp('^' + space + space + '*'); | |
| 22859 | +var rtrim = RegExp(space + space + '*$'); | |
| 22860 | + | |
| 22861 | +var exporter = function (KEY, exec, ALIAS) { | |
| 22862 | + var exp = {}; | |
| 22863 | + var FORCE = fails(function () { | |
| 22864 | + return !!spaces[KEY]() || non[KEY]() != non; | |
| 22865 | + }); | |
| 22866 | + var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; | |
| 22867 | + if (ALIAS) exp[ALIAS] = fn; | |
| 22868 | + $export($export.P + $export.F * FORCE, 'String', exp); | |
| 22869 | +}; | |
| 22870 | + | |
| 22871 | +// 1 -> String#trimLeft | |
| 22872 | +// 2 -> String#trimRight | |
| 22873 | +// 3 -> String#trim | |
| 22874 | +var trim = exporter.trim = function (string, TYPE) { | |
| 22875 | + string = String(defined(string)); | |
| 22876 | + if (TYPE & 1) string = string.replace(ltrim, ''); | |
| 22877 | + if (TYPE & 2) string = string.replace(rtrim, ''); | |
| 22878 | + return string; | |
| 22879 | +}; | |
| 22880 | + | |
| 22881 | +module.exports = exporter; | |
| 22882 | + | |
| 22883 | + | |
| 22884 | +/***/ }), | |
| 22885 | + | |
| 22886 | +/***/ "../node_modules/core-js/library/modules/_string-ws.js": | |
| 22887 | +/*!*************************************************************!*\ | |
| 22888 | + !*** ../node_modules/core-js/library/modules/_string-ws.js ***! | |
| 22889 | + \*************************************************************/ | |
| 1232 | 22890 | /***/ ((module) => { |
| 1233 | 22891 | |
| 1234 | -function _assertThisInitialized(e) { | |
| 1235 | - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 1236 | - return e; | |
| 22892 | +module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + | |
| 22893 | + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; | |
| 22894 | + | |
| 22895 | + | |
| 22896 | +/***/ }), | |
| 22897 | + | |
| 22898 | +/***/ "../node_modules/core-js/library/modules/_task.js": | |
| 22899 | +/*!********************************************************!*\ | |
| 22900 | + !*** ../node_modules/core-js/library/modules/_task.js ***! | |
| 22901 | + \********************************************************/ | |
| 22902 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22903 | + | |
| 22904 | +var ctx = __webpack_require__(/*! ./_ctx */ "../node_modules/core-js/library/modules/_ctx.js"); | |
| 22905 | +var invoke = __webpack_require__(/*! ./_invoke */ "../node_modules/core-js/library/modules/_invoke.js"); | |
| 22906 | +var html = __webpack_require__(/*! ./_html */ "../node_modules/core-js/library/modules/_html.js"); | |
| 22907 | +var cel = __webpack_require__(/*! ./_dom-create */ "../node_modules/core-js/library/modules/_dom-create.js"); | |
| 22908 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js"); | |
| 22909 | +var process = global.process; | |
| 22910 | +var setTask = global.setImmediate; | |
| 22911 | +var clearTask = global.clearImmediate; | |
| 22912 | +var MessageChannel = global.MessageChannel; | |
| 22913 | +var Dispatch = global.Dispatch; | |
| 22914 | +var counter = 0; | |
| 22915 | +var queue = {}; | |
| 22916 | +var ONREADYSTATECHANGE = 'onreadystatechange'; | |
| 22917 | +var defer, channel, port; | |
| 22918 | +var run = function () { | |
| 22919 | + var id = +this; | |
| 22920 | + // eslint-disable-next-line no-prototype-builtins | |
| 22921 | + if (queue.hasOwnProperty(id)) { | |
| 22922 | + var fn = queue[id]; | |
| 22923 | + delete queue[id]; | |
| 22924 | + fn(); | |
| 22925 | + } | |
| 22926 | +}; | |
| 22927 | +var listener = function (event) { | |
| 22928 | + run.call(event.data); | |
| 22929 | +}; | |
| 22930 | +// Node.js 0.9+ & IE10+ has setImmediate, otherwise: | |
| 22931 | +if (!setTask || !clearTask) { | |
| 22932 | + setTask = function setImmediate(fn) { | |
| 22933 | + var args = []; | |
| 22934 | + var i = 1; | |
| 22935 | + while (arguments.length > i) args.push(arguments[i++]); | |
| 22936 | + queue[++counter] = function () { | |
| 22937 | + // eslint-disable-next-line no-new-func | |
| 22938 | + invoke(typeof fn == 'function' ? fn : Function(fn), args); | |
| 22939 | + }; | |
| 22940 | + defer(counter); | |
| 22941 | + return counter; | |
| 22942 | + }; | |
| 22943 | + clearTask = function clearImmediate(id) { | |
| 22944 | + delete queue[id]; | |
| 22945 | + }; | |
| 22946 | + // Node.js 0.8- | |
| 22947 | + if (__webpack_require__(/*! ./_cof */ "../node_modules/core-js/library/modules/_cof.js")(process) == 'process') { | |
| 22948 | + defer = function (id) { | |
| 22949 | + process.nextTick(ctx(run, id, 1)); | |
| 22950 | + }; | |
| 22951 | + // Sphere (JS game engine) Dispatch API | |
| 22952 | + } else if (Dispatch && Dispatch.now) { | |
| 22953 | + defer = function (id) { | |
| 22954 | + Dispatch.now(ctx(run, id, 1)); | |
| 22955 | + }; | |
| 22956 | + // Browsers with MessageChannel, includes WebWorkers | |
| 22957 | + } else if (MessageChannel) { | |
| 22958 | + channel = new MessageChannel(); | |
| 22959 | + port = channel.port2; | |
| 22960 | + channel.port1.onmessage = listener; | |
| 22961 | + defer = ctx(port.postMessage, port, 1); | |
| 22962 | + // Browsers with postMessage, skip WebWorkers | |
| 22963 | + // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' | |
| 22964 | + } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) { | |
| 22965 | + defer = function (id) { | |
| 22966 | + global.postMessage(id + '', '*'); | |
| 22967 | + }; | |
| 22968 | + global.addEventListener('message', listener, false); | |
| 22969 | + // IE8- | |
| 22970 | + } else if (ONREADYSTATECHANGE in cel('script')) { | |
| 22971 | + defer = function (id) { | |
| 22972 | + html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () { | |
| 22973 | + html.removeChild(this); | |
| 22974 | + run.call(id); | |
| 22975 | + }; | |
| 22976 | + }; | |
| 22977 | + // Rest old browsers | |
| 22978 | + } else { | |
| 22979 | + defer = function (id) { | |
| 22980 | + setTimeout(ctx(run, id, 1), 0); | |
| 22981 | + }; | |
| 22982 | + } | |
| 1237 | 22983 | } |
| 1238 | -module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 22984 | +module.exports = { | |
| 22985 | + set: setTask, | |
| 22986 | + clear: clearTask | |
| 22987 | +}; | |
| 1239 | 22988 | |
| 22989 | + | |
| 1240 | 22990 | /***/ }), |
| 1241 | 22991 | |
| 1242 | -/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": | |
| 22992 | +/***/ "../node_modules/core-js/library/modules/_to-absolute-index.js": | |
| 22993 | +/*!*********************************************************************!*\ | |
| 22994 | + !*** ../node_modules/core-js/library/modules/_to-absolute-index.js ***! | |
| 22995 | + \*********************************************************************/ | |
| 22996 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 22997 | + | |
| 22998 | +var toInteger = __webpack_require__(/*! ./_to-integer */ "../node_modules/core-js/library/modules/_to-integer.js"); | |
| 22999 | +var max = Math.max; | |
| 23000 | +var min = Math.min; | |
| 23001 | +module.exports = function (index, length) { | |
| 23002 | + index = toInteger(index); | |
| 23003 | + return index < 0 ? max(index + length, 0) : min(index, length); | |
| 23004 | +}; | |
| 23005 | + | |
| 23006 | + | |
| 23007 | +/***/ }), | |
| 23008 | + | |
| 23009 | +/***/ "../node_modules/core-js/library/modules/_to-integer.js": | |
| 23010 | +/*!**************************************************************!*\ | |
| 23011 | + !*** ../node_modules/core-js/library/modules/_to-integer.js ***! | |
| 23012 | + \**************************************************************/ | |
| 23013 | +/***/ ((module) => { | |
| 23014 | + | |
| 23015 | +// 7.1.4 ToInteger | |
| 23016 | +var ceil = Math.ceil; | |
| 23017 | +var floor = Math.floor; | |
| 23018 | +module.exports = function (it) { | |
| 23019 | + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); | |
| 23020 | +}; | |
| 23021 | + | |
| 23022 | + | |
| 23023 | +/***/ }), | |
| 23024 | + | |
| 23025 | +/***/ "../node_modules/core-js/library/modules/_to-iobject.js": | |
| 23026 | +/*!**************************************************************!*\ | |
| 23027 | + !*** ../node_modules/core-js/library/modules/_to-iobject.js ***! | |
| 23028 | + \**************************************************************/ | |
| 23029 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 23030 | + | |
| 23031 | +// to indexed object, toObject with fallback for non-array-like ES3 strings | |
| 23032 | +var IObject = __webpack_require__(/*! ./_iobject */ "../node_modules/core-js/library/modules/_iobject.js"); | |
| 23033 | +var defined = __webpack_require__(/*! ./_defined */ "../node_modules/core-js/library/modules/_defined.js"); | |
| 23034 | +module.exports = function (it) { | |
| 23035 | + return IObject(defined(it)); | |
| 23036 | +}; | |
| 23037 | + | |
| 23038 | + | |
| 23039 | +/***/ }), | |
| 23040 | + | |
| 23041 | +/***/ "../node_modules/core-js/library/modules/_to-length.js": | |
| 23042 | +/*!*************************************************************!*\ | |
| 23043 | + !*** ../node_modules/core-js/library/modules/_to-length.js ***! | |
| 23044 | + \*************************************************************/ | |
| 23045 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 23046 | + | |
| 23047 | +// 7.1.15 ToLength | |
| 23048 | +var toInteger = __webpack_require__(/*! ./_to-integer */ "../node_modules/core-js/library/modules/_to-integer.js"); | |
| 23049 | +var min = Math.min; | |
| 23050 | +module.exports = function (it) { | |
| 23051 | + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 | |
| 23052 | +}; | |
| 23053 | + | |
| 23054 | + | |
| 23055 | +/***/ }), | |
| 23056 | + | |
| 23057 | +/***/ "../node_modules/core-js/library/modules/_to-object.js": | |
| 23058 | +/*!*************************************************************!*\ | |
| 23059 | + !*** ../node_modules/core-js/library/modules/_to-object.js ***! | |
| 23060 | + \*************************************************************/ | |
| 23061 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 23062 | + | |
| 23063 | +// 7.1.13 ToObject(argument) | |
| 23064 | +var defined = __webpack_require__(/*! ./_defined */ "../node_modules/core-js/library/modules/_defined.js"); | |
| 23065 | +module.exports = function (it) { | |
| 23066 | + return Object(defined(it)); | |
| 23067 | +}; | |
| 23068 | + | |
| 23069 | + | |
| 23070 | +/***/ }), | |
| 23071 | + | |
| 23072 | +/***/ "../node_modules/core-js/library/modules/_to-primitive.js": | |
| 1243 | 23073 | /*!****************************************************************!*\ |
| 1244 | - !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! | |
| 23074 | + !*** ../node_modules/core-js/library/modules/_to-primitive.js ***! | |
| 1245 | 23075 | \****************************************************************/ |
| 23076 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 23077 | + | |
| 23078 | +// 7.1.1 ToPrimitive(input [, PreferredType]) | |
| 23079 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 23080 | +// instead of the ES6 spec version, we didn't implement @@toPrimitive case | |
| 23081 | +// and the second argument - flag - preferred type is a string | |
| 23082 | +module.exports = function (it, S) { | |
| 23083 | + if (!isObject(it)) return it; | |
| 23084 | + var fn, val; | |
| 23085 | + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 23086 | + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 23087 | + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 23088 | + throw TypeError("Can't convert object to primitive value"); | |
| 23089 | +}; | |
| 23090 | + | |
| 23091 | + | |
| 23092 | +/***/ }), | |
| 23093 | + | |
| 23094 | +/***/ "../node_modules/core-js/library/modules/_uid.js": | |
| 23095 | +/*!*******************************************************!*\ | |
| 23096 | + !*** ../node_modules/core-js/library/modules/_uid.js ***! | |
| 23097 | + \*******************************************************/ | |
| 1246 | 23098 | /***/ ((module) => { |
| 1247 | 23099 | |
| 1248 | -function _classCallCheck(a, n) { | |
| 1249 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 23100 | +var id = 0; | |
| 23101 | +var px = Math.random(); | |
| 23102 | +module.exports = function (key) { | |
| 23103 | + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); | |
| 23104 | +}; | |
| 23105 | + | |
| 23106 | + | |
| 23107 | +/***/ }), | |
| 23108 | + | |
| 23109 | +/***/ "../node_modules/core-js/library/modules/_user-agent.js": | |
| 23110 | +/*!**************************************************************!*\ | |
| 23111 | + !*** ../node_modules/core-js/library/modules/_user-agent.js ***! | |
| 23112 | + \**************************************************************/ | |
| 23113 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 23114 | + | |
| 23115 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js"); | |
| 23116 | +var navigator = global.navigator; | |
| 23117 | + | |
| 23118 | +module.exports = navigator && navigator.userAgent || ''; | |
| 23119 | + | |
| 23120 | + | |
| 23121 | +/***/ }), | |
| 23122 | + | |
| 23123 | +/***/ "../node_modules/core-js/library/modules/_validate-collection.js": | |
| 23124 | +/*!***********************************************************************!*\ | |
| 23125 | + !*** ../node_modules/core-js/library/modules/_validate-collection.js ***! | |
| 23126 | + \***********************************************************************/ | |
| 23127 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 23128 | + | |
| 23129 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 23130 | +module.exports = function (it, TYPE) { | |
| 23131 | + if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!'); | |
| 23132 | + return it; | |
| 23133 | +}; | |
| 23134 | + | |
| 23135 | + | |
| 23136 | +/***/ }), | |
| 23137 | + | |
| 23138 | +/***/ "../node_modules/core-js/library/modules/_wks-define.js": | |
| 23139 | +/*!**************************************************************!*\ | |
| 23140 | + !*** ../node_modules/core-js/library/modules/_wks-define.js ***! | |
| 23141 | + \**************************************************************/ | |
| 23142 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 23143 | + | |
| 23144 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js"); | |
| 23145 | +var core = __webpack_require__(/*! ./_core */ "../node_modules/core-js/library/modules/_core.js"); | |
| 23146 | +var LIBRARY = __webpack_require__(/*! ./_library */ "../node_modules/core-js/library/modules/_library.js"); | |
| 23147 | +var wksExt = __webpack_require__(/*! ./_wks-ext */ "../node_modules/core-js/library/modules/_wks-ext.js"); | |
| 23148 | +var defineProperty = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/library/modules/_object-dp.js").f; | |
| 23149 | +module.exports = function (name) { | |
| 23150 | + var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); | |
| 23151 | + if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); | |
| 23152 | +}; | |
| 23153 | + | |
| 23154 | + | |
| 23155 | +/***/ }), | |
| 23156 | + | |
| 23157 | +/***/ "../node_modules/core-js/library/modules/_wks-ext.js": | |
| 23158 | +/*!***********************************************************!*\ | |
| 23159 | + !*** ../node_modules/core-js/library/modules/_wks-ext.js ***! | |
| 23160 | + \***********************************************************/ | |
| 23161 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 23162 | + | |
| 23163 | +exports.f = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/library/modules/_wks.js"); | |
| 23164 | + | |
| 23165 | + | |
| 23166 | +/***/ }), | |
| 23167 | + | |
| 23168 | +/***/ "../node_modules/core-js/library/modules/_wks.js": | |
| 23169 | +/*!*******************************************************!*\ | |
| 23170 | + !*** ../node_modules/core-js/library/modules/_wks.js ***! | |
| 23171 | + \*******************************************************/ | |
| 23172 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 23173 | + | |
| 23174 | +var store = __webpack_require__(/*! ./_shared */ "../node_modules/core-js/library/modules/_shared.js")('wks'); | |
| 23175 | +var uid = __webpack_require__(/*! ./_uid */ "../node_modules/core-js/library/modules/_uid.js"); | |
| 23176 | +var Symbol = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js").Symbol; | |
| 23177 | +var USE_SYMBOL = typeof Symbol == 'function'; | |
| 23178 | + | |
| 23179 | +var $exports = module.exports = function (name) { | |
| 23180 | + return store[name] || (store[name] = | |
| 23181 | + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); | |
| 23182 | +}; | |
| 23183 | + | |
| 23184 | +$exports.store = store; | |
| 23185 | + | |
| 23186 | + | |
| 23187 | +/***/ }), | |
| 23188 | + | |
| 23189 | +/***/ "../node_modules/core-js/library/modules/core.get-iterator-method.js": | |
| 23190 | +/*!***************************************************************************!*\ | |
| 23191 | + !*** ../node_modules/core-js/library/modules/core.get-iterator-method.js ***! | |
| 23192 | + \***************************************************************************/ | |
| 23193 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 23194 | + | |
| 23195 | +var classof = __webpack_require__(/*! ./_classof */ "../node_modules/core-js/library/modules/_classof.js"); | |
| 23196 | +var ITERATOR = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/library/modules/_wks.js")('iterator'); | |
| 23197 | +var Iterators = __webpack_require__(/*! ./_iterators */ "../node_modules/core-js/library/modules/_iterators.js"); | |
| 23198 | +module.exports = __webpack_require__(/*! ./_core */ "../node_modules/core-js/library/modules/_core.js").getIteratorMethod = function (it) { | |
| 23199 | + if (it != undefined) return it[ITERATOR] | |
| 23200 | + || it['@@iterator'] | |
| 23201 | + || Iterators[classof(it)]; | |
| 23202 | +}; | |
| 23203 | + | |
| 23204 | + | |
| 23205 | +/***/ }), | |
| 23206 | + | |
| 23207 | +/***/ "../node_modules/core-js/library/modules/es6.array.from.js": | |
| 23208 | +/*!*****************************************************************!*\ | |
| 23209 | + !*** ../node_modules/core-js/library/modules/es6.array.from.js ***! | |
| 23210 | + \*****************************************************************/ | |
| 23211 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23212 | + | |
| 23213 | +"use strict"; | |
| 23214 | + | |
| 23215 | +var ctx = __webpack_require__(/*! ./_ctx */ "../node_modules/core-js/library/modules/_ctx.js"); | |
| 23216 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 23217 | +var toObject = __webpack_require__(/*! ./_to-object */ "../node_modules/core-js/library/modules/_to-object.js"); | |
| 23218 | +var call = __webpack_require__(/*! ./_iter-call */ "../node_modules/core-js/library/modules/_iter-call.js"); | |
| 23219 | +var isArrayIter = __webpack_require__(/*! ./_is-array-iter */ "../node_modules/core-js/library/modules/_is-array-iter.js"); | |
| 23220 | +var toLength = __webpack_require__(/*! ./_to-length */ "../node_modules/core-js/library/modules/_to-length.js"); | |
| 23221 | +var createProperty = __webpack_require__(/*! ./_create-property */ "../node_modules/core-js/library/modules/_create-property.js"); | |
| 23222 | +var getIterFn = __webpack_require__(/*! ./core.get-iterator-method */ "../node_modules/core-js/library/modules/core.get-iterator-method.js"); | |
| 23223 | + | |
| 23224 | +$export($export.S + $export.F * !__webpack_require__(/*! ./_iter-detect */ "../node_modules/core-js/library/modules/_iter-detect.js")(function (iter) { Array.from(iter); }), 'Array', { | |
| 23225 | + // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) | |
| 23226 | + from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { | |
| 23227 | + var O = toObject(arrayLike); | |
| 23228 | + var C = typeof this == 'function' ? this : Array; | |
| 23229 | + var aLen = arguments.length; | |
| 23230 | + var mapfn = aLen > 1 ? arguments[1] : undefined; | |
| 23231 | + var mapping = mapfn !== undefined; | |
| 23232 | + var index = 0; | |
| 23233 | + var iterFn = getIterFn(O); | |
| 23234 | + var length, result, step, iterator; | |
| 23235 | + if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); | |
| 23236 | + // if object isn't iterable or it's array with default iterator - use simple case | |
| 23237 | + if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { | |
| 23238 | + for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { | |
| 23239 | + createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); | |
| 23240 | + } | |
| 23241 | + } else { | |
| 23242 | + length = toLength(O.length); | |
| 23243 | + for (result = new C(length); length > index; index++) { | |
| 23244 | + createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); | |
| 23245 | + } | |
| 23246 | + } | |
| 23247 | + result.length = index; | |
| 23248 | + return result; | |
| 23249 | + } | |
| 23250 | +}); | |
| 23251 | + | |
| 23252 | + | |
| 23253 | +/***/ }), | |
| 23254 | + | |
| 23255 | +/***/ "../node_modules/core-js/library/modules/es6.array.is-array.js": | |
| 23256 | +/*!*********************************************************************!*\ | |
| 23257 | + !*** ../node_modules/core-js/library/modules/es6.array.is-array.js ***! | |
| 23258 | + \*********************************************************************/ | |
| 23259 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23260 | + | |
| 23261 | +// 22.1.2.2 / 15.4.3.2 Array.isArray(arg) | |
| 23262 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 23263 | + | |
| 23264 | +$export($export.S, 'Array', { isArray: __webpack_require__(/*! ./_is-array */ "../node_modules/core-js/library/modules/_is-array.js") }); | |
| 23265 | + | |
| 23266 | + | |
| 23267 | +/***/ }), | |
| 23268 | + | |
| 23269 | +/***/ "../node_modules/core-js/library/modules/es6.array.iterator.js": | |
| 23270 | +/*!*********************************************************************!*\ | |
| 23271 | + !*** ../node_modules/core-js/library/modules/es6.array.iterator.js ***! | |
| 23272 | + \*********************************************************************/ | |
| 23273 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 23274 | + | |
| 23275 | +"use strict"; | |
| 23276 | + | |
| 23277 | +var addToUnscopables = __webpack_require__(/*! ./_add-to-unscopables */ "../node_modules/core-js/library/modules/_add-to-unscopables.js"); | |
| 23278 | +var step = __webpack_require__(/*! ./_iter-step */ "../node_modules/core-js/library/modules/_iter-step.js"); | |
| 23279 | +var Iterators = __webpack_require__(/*! ./_iterators */ "../node_modules/core-js/library/modules/_iterators.js"); | |
| 23280 | +var toIObject = __webpack_require__(/*! ./_to-iobject */ "../node_modules/core-js/library/modules/_to-iobject.js"); | |
| 23281 | + | |
| 23282 | +// 22.1.3.4 Array.prototype.entries() | |
| 23283 | +// 22.1.3.13 Array.prototype.keys() | |
| 23284 | +// 22.1.3.29 Array.prototype.values() | |
| 23285 | +// 22.1.3.30 Array.prototype[@@iterator]() | |
| 23286 | +module.exports = __webpack_require__(/*! ./_iter-define */ "../node_modules/core-js/library/modules/_iter-define.js")(Array, 'Array', function (iterated, kind) { | |
| 23287 | + this._t = toIObject(iterated); // target | |
| 23288 | + this._i = 0; // next index | |
| 23289 | + this._k = kind; // kind | |
| 23290 | +// 22.1.5.2.1 %ArrayIteratorPrototype%.next() | |
| 23291 | +}, function () { | |
| 23292 | + var O = this._t; | |
| 23293 | + var kind = this._k; | |
| 23294 | + var index = this._i++; | |
| 23295 | + if (!O || index >= O.length) { | |
| 23296 | + this._t = undefined; | |
| 23297 | + return step(1); | |
| 23298 | + } | |
| 23299 | + if (kind == 'keys') return step(0, index); | |
| 23300 | + if (kind == 'values') return step(0, O[index]); | |
| 23301 | + return step(0, [index, O[index]]); | |
| 23302 | +}, 'values'); | |
| 23303 | + | |
| 23304 | +// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) | |
| 23305 | +Iterators.Arguments = Iterators.Array; | |
| 23306 | + | |
| 23307 | +addToUnscopables('keys'); | |
| 23308 | +addToUnscopables('values'); | |
| 23309 | +addToUnscopables('entries'); | |
| 23310 | + | |
| 23311 | + | |
| 23312 | +/***/ }), | |
| 23313 | + | |
| 23314 | +/***/ "../node_modules/core-js/library/modules/es6.function.has-instance.js": | |
| 23315 | +/*!****************************************************************************!*\ | |
| 23316 | + !*** ../node_modules/core-js/library/modules/es6.function.has-instance.js ***! | |
| 23317 | + \****************************************************************************/ | |
| 23318 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23319 | + | |
| 23320 | +"use strict"; | |
| 23321 | + | |
| 23322 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 23323 | +var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "../node_modules/core-js/library/modules/_object-gpo.js"); | |
| 23324 | +var HAS_INSTANCE = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/library/modules/_wks.js")('hasInstance'); | |
| 23325 | +var FunctionProto = Function.prototype; | |
| 23326 | +// 19.2.3.6 Function.prototype[@@hasInstance](V) | |
| 23327 | +if (!(HAS_INSTANCE in FunctionProto)) __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/library/modules/_object-dp.js").f(FunctionProto, HAS_INSTANCE, { value: function (O) { | |
| 23328 | + if (typeof this != 'function' || !isObject(O)) return false; | |
| 23329 | + if (!isObject(this.prototype)) return O instanceof this; | |
| 23330 | + // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this: | |
| 23331 | + while (O = getPrototypeOf(O)) if (this.prototype === O) return true; | |
| 23332 | + return false; | |
| 23333 | +} }); | |
| 23334 | + | |
| 23335 | + | |
| 23336 | +/***/ }), | |
| 23337 | + | |
| 23338 | +/***/ "../node_modules/core-js/library/modules/es6.map.js": | |
| 23339 | +/*!**********************************************************!*\ | |
| 23340 | + !*** ../node_modules/core-js/library/modules/es6.map.js ***! | |
| 23341 | + \**********************************************************/ | |
| 23342 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 23343 | + | |
| 23344 | +"use strict"; | |
| 23345 | + | |
| 23346 | +var strong = __webpack_require__(/*! ./_collection-strong */ "../node_modules/core-js/library/modules/_collection-strong.js"); | |
| 23347 | +var validate = __webpack_require__(/*! ./_validate-collection */ "../node_modules/core-js/library/modules/_validate-collection.js"); | |
| 23348 | +var MAP = 'Map'; | |
| 23349 | + | |
| 23350 | +// 23.1 Map Objects | |
| 23351 | +module.exports = __webpack_require__(/*! ./_collection */ "../node_modules/core-js/library/modules/_collection.js")(MAP, function (get) { | |
| 23352 | + return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; | |
| 23353 | +}, { | |
| 23354 | + // 23.1.3.6 Map.prototype.get(key) | |
| 23355 | + get: function get(key) { | |
| 23356 | + var entry = strong.getEntry(validate(this, MAP), key); | |
| 23357 | + return entry && entry.v; | |
| 23358 | + }, | |
| 23359 | + // 23.1.3.9 Map.prototype.set(key, value) | |
| 23360 | + set: function set(key, value) { | |
| 23361 | + return strong.def(validate(this, MAP), key === 0 ? 0 : key, value); | |
| 23362 | + } | |
| 23363 | +}, strong, true); | |
| 23364 | + | |
| 23365 | + | |
| 23366 | +/***/ }), | |
| 23367 | + | |
| 23368 | +/***/ "../node_modules/core-js/library/modules/es6.object.assign.js": | |
| 23369 | +/*!********************************************************************!*\ | |
| 23370 | + !*** ../node_modules/core-js/library/modules/es6.object.assign.js ***! | |
| 23371 | + \********************************************************************/ | |
| 23372 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23373 | + | |
| 23374 | +// 19.1.3.1 Object.assign(target, source) | |
| 23375 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 23376 | + | |
| 23377 | +$export($export.S + $export.F, 'Object', { assign: __webpack_require__(/*! ./_object-assign */ "../node_modules/core-js/library/modules/_object-assign.js") }); | |
| 23378 | + | |
| 23379 | + | |
| 23380 | +/***/ }), | |
| 23381 | + | |
| 23382 | +/***/ "../node_modules/core-js/library/modules/es6.object.create.js": | |
| 23383 | +/*!********************************************************************!*\ | |
| 23384 | + !*** ../node_modules/core-js/library/modules/es6.object.create.js ***! | |
| 23385 | + \********************************************************************/ | |
| 23386 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23387 | + | |
| 23388 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 23389 | +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | |
| 23390 | +$export($export.S, 'Object', { create: __webpack_require__(/*! ./_object-create */ "../node_modules/core-js/library/modules/_object-create.js") }); | |
| 23391 | + | |
| 23392 | + | |
| 23393 | +/***/ }), | |
| 23394 | + | |
| 23395 | +/***/ "../node_modules/core-js/library/modules/es6.object.define-properties.js": | |
| 23396 | +/*!*******************************************************************************!*\ | |
| 23397 | + !*** ../node_modules/core-js/library/modules/es6.object.define-properties.js ***! | |
| 23398 | + \*******************************************************************************/ | |
| 23399 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23400 | + | |
| 23401 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 23402 | +// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties) | |
| 23403 | +$export($export.S + $export.F * !__webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/library/modules/_descriptors.js"), 'Object', { defineProperties: __webpack_require__(/*! ./_object-dps */ "../node_modules/core-js/library/modules/_object-dps.js") }); | |
| 23404 | + | |
| 23405 | + | |
| 23406 | +/***/ }), | |
| 23407 | + | |
| 23408 | +/***/ "../node_modules/core-js/library/modules/es6.object.define-property.js": | |
| 23409 | +/*!*****************************************************************************!*\ | |
| 23410 | + !*** ../node_modules/core-js/library/modules/es6.object.define-property.js ***! | |
| 23411 | + \*****************************************************************************/ | |
| 23412 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23413 | + | |
| 23414 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 23415 | +// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) | |
| 23416 | +$export($export.S + $export.F * !__webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/library/modules/_descriptors.js"), 'Object', { defineProperty: __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/library/modules/_object-dp.js").f }); | |
| 23417 | + | |
| 23418 | + | |
| 23419 | +/***/ }), | |
| 23420 | + | |
| 23421 | +/***/ "../node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js": | |
| 23422 | +/*!*****************************************************************************************!*\ | |
| 23423 | + !*** ../node_modules/core-js/library/modules/es6.object.get-own-property-descriptor.js ***! | |
| 23424 | + \*****************************************************************************************/ | |
| 23425 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23426 | + | |
| 23427 | +// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) | |
| 23428 | +var toIObject = __webpack_require__(/*! ./_to-iobject */ "../node_modules/core-js/library/modules/_to-iobject.js"); | |
| 23429 | +var $getOwnPropertyDescriptor = __webpack_require__(/*! ./_object-gopd */ "../node_modules/core-js/library/modules/_object-gopd.js").f; | |
| 23430 | + | |
| 23431 | +__webpack_require__(/*! ./_object-sap */ "../node_modules/core-js/library/modules/_object-sap.js")('getOwnPropertyDescriptor', function () { | |
| 23432 | + return function getOwnPropertyDescriptor(it, key) { | |
| 23433 | + return $getOwnPropertyDescriptor(toIObject(it), key); | |
| 23434 | + }; | |
| 23435 | +}); | |
| 23436 | + | |
| 23437 | + | |
| 23438 | +/***/ }), | |
| 23439 | + | |
| 23440 | +/***/ "../node_modules/core-js/library/modules/es6.object.get-prototype-of.js": | |
| 23441 | +/*!******************************************************************************!*\ | |
| 23442 | + !*** ../node_modules/core-js/library/modules/es6.object.get-prototype-of.js ***! | |
| 23443 | + \******************************************************************************/ | |
| 23444 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23445 | + | |
| 23446 | +// 19.1.2.9 Object.getPrototypeOf(O) | |
| 23447 | +var toObject = __webpack_require__(/*! ./_to-object */ "../node_modules/core-js/library/modules/_to-object.js"); | |
| 23448 | +var $getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "../node_modules/core-js/library/modules/_object-gpo.js"); | |
| 23449 | + | |
| 23450 | +__webpack_require__(/*! ./_object-sap */ "../node_modules/core-js/library/modules/_object-sap.js")('getPrototypeOf', function () { | |
| 23451 | + return function getPrototypeOf(it) { | |
| 23452 | + return $getPrototypeOf(toObject(it)); | |
| 23453 | + }; | |
| 23454 | +}); | |
| 23455 | + | |
| 23456 | + | |
| 23457 | +/***/ }), | |
| 23458 | + | |
| 23459 | +/***/ "../node_modules/core-js/library/modules/es6.object.keys.js": | |
| 23460 | +/*!******************************************************************!*\ | |
| 23461 | + !*** ../node_modules/core-js/library/modules/es6.object.keys.js ***! | |
| 23462 | + \******************************************************************/ | |
| 23463 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23464 | + | |
| 23465 | +// 19.1.2.14 Object.keys(O) | |
| 23466 | +var toObject = __webpack_require__(/*! ./_to-object */ "../node_modules/core-js/library/modules/_to-object.js"); | |
| 23467 | +var $keys = __webpack_require__(/*! ./_object-keys */ "../node_modules/core-js/library/modules/_object-keys.js"); | |
| 23468 | + | |
| 23469 | +__webpack_require__(/*! ./_object-sap */ "../node_modules/core-js/library/modules/_object-sap.js")('keys', function () { | |
| 23470 | + return function keys(it) { | |
| 23471 | + return $keys(toObject(it)); | |
| 23472 | + }; | |
| 23473 | +}); | |
| 23474 | + | |
| 23475 | + | |
| 23476 | +/***/ }), | |
| 23477 | + | |
| 23478 | +/***/ "../node_modules/core-js/library/modules/es6.object.set-prototype-of.js": | |
| 23479 | +/*!******************************************************************************!*\ | |
| 23480 | + !*** ../node_modules/core-js/library/modules/es6.object.set-prototype-of.js ***! | |
| 23481 | + \******************************************************************************/ | |
| 23482 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23483 | + | |
| 23484 | +// 19.1.3.19 Object.setPrototypeOf(O, proto) | |
| 23485 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 23486 | +$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(/*! ./_set-proto */ "../node_modules/core-js/library/modules/_set-proto.js").set }); | |
| 23487 | + | |
| 23488 | + | |
| 23489 | +/***/ }), | |
| 23490 | + | |
| 23491 | +/***/ "../node_modules/core-js/library/modules/es6.object.to-string.js": | |
| 23492 | +/*!***********************************************************************!*\ | |
| 23493 | + !*** ../node_modules/core-js/library/modules/es6.object.to-string.js ***! | |
| 23494 | + \***********************************************************************/ | |
| 23495 | +/***/ (() => { | |
| 23496 | + | |
| 23497 | + | |
| 23498 | + | |
| 23499 | +/***/ }), | |
| 23500 | + | |
| 23501 | +/***/ "../node_modules/core-js/library/modules/es6.parse-int.js": | |
| 23502 | +/*!****************************************************************!*\ | |
| 23503 | + !*** ../node_modules/core-js/library/modules/es6.parse-int.js ***! | |
| 23504 | + \****************************************************************/ | |
| 23505 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23506 | + | |
| 23507 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 23508 | +var $parseInt = __webpack_require__(/*! ./_parse-int */ "../node_modules/core-js/library/modules/_parse-int.js"); | |
| 23509 | +// 18.2.5 parseInt(string, radix) | |
| 23510 | +$export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt }); | |
| 23511 | + | |
| 23512 | + | |
| 23513 | +/***/ }), | |
| 23514 | + | |
| 23515 | +/***/ "../node_modules/core-js/library/modules/es6.promise.js": | |
| 23516 | +/*!**************************************************************!*\ | |
| 23517 | + !*** ../node_modules/core-js/library/modules/es6.promise.js ***! | |
| 23518 | + \**************************************************************/ | |
| 23519 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23520 | + | |
| 23521 | +"use strict"; | |
| 23522 | + | |
| 23523 | +var LIBRARY = __webpack_require__(/*! ./_library */ "../node_modules/core-js/library/modules/_library.js"); | |
| 23524 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js"); | |
| 23525 | +var ctx = __webpack_require__(/*! ./_ctx */ "../node_modules/core-js/library/modules/_ctx.js"); | |
| 23526 | +var classof = __webpack_require__(/*! ./_classof */ "../node_modules/core-js/library/modules/_classof.js"); | |
| 23527 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 23528 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 23529 | +var aFunction = __webpack_require__(/*! ./_a-function */ "../node_modules/core-js/library/modules/_a-function.js"); | |
| 23530 | +var anInstance = __webpack_require__(/*! ./_an-instance */ "../node_modules/core-js/library/modules/_an-instance.js"); | |
| 23531 | +var forOf = __webpack_require__(/*! ./_for-of */ "../node_modules/core-js/library/modules/_for-of.js"); | |
| 23532 | +var speciesConstructor = __webpack_require__(/*! ./_species-constructor */ "../node_modules/core-js/library/modules/_species-constructor.js"); | |
| 23533 | +var task = __webpack_require__(/*! ./_task */ "../node_modules/core-js/library/modules/_task.js").set; | |
| 23534 | +var microtask = __webpack_require__(/*! ./_microtask */ "../node_modules/core-js/library/modules/_microtask.js")(); | |
| 23535 | +var newPromiseCapabilityModule = __webpack_require__(/*! ./_new-promise-capability */ "../node_modules/core-js/library/modules/_new-promise-capability.js"); | |
| 23536 | +var perform = __webpack_require__(/*! ./_perform */ "../node_modules/core-js/library/modules/_perform.js"); | |
| 23537 | +var userAgent = __webpack_require__(/*! ./_user-agent */ "../node_modules/core-js/library/modules/_user-agent.js"); | |
| 23538 | +var promiseResolve = __webpack_require__(/*! ./_promise-resolve */ "../node_modules/core-js/library/modules/_promise-resolve.js"); | |
| 23539 | +var PROMISE = 'Promise'; | |
| 23540 | +var TypeError = global.TypeError; | |
| 23541 | +var process = global.process; | |
| 23542 | +var versions = process && process.versions; | |
| 23543 | +var v8 = versions && versions.v8 || ''; | |
| 23544 | +var $Promise = global[PROMISE]; | |
| 23545 | +var isNode = classof(process) == 'process'; | |
| 23546 | +var empty = function () { /* empty */ }; | |
| 23547 | +var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper; | |
| 23548 | +var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f; | |
| 23549 | + | |
| 23550 | +var USE_NATIVE = !!function () { | |
| 23551 | + try { | |
| 23552 | + // correct subclassing with @@species support | |
| 23553 | + var promise = $Promise.resolve(1); | |
| 23554 | + var FakePromise = (promise.constructor = {})[__webpack_require__(/*! ./_wks */ "../node_modules/core-js/library/modules/_wks.js")('species')] = function (exec) { | |
| 23555 | + exec(empty, empty); | |
| 23556 | + }; | |
| 23557 | + // unhandled rejections tracking support, NodeJS Promise without it fails @@species test | |
| 23558 | + return (isNode || typeof PromiseRejectionEvent == 'function') | |
| 23559 | + && promise.then(empty) instanceof FakePromise | |
| 23560 | + // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables | |
| 23561 | + // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 | |
| 23562 | + // we can't detect it synchronously, so just check versions | |
| 23563 | + && v8.indexOf('6.6') !== 0 | |
| 23564 | + && userAgent.indexOf('Chrome/66') === -1; | |
| 23565 | + } catch (e) { /* empty */ } | |
| 23566 | +}(); | |
| 23567 | + | |
| 23568 | +// helpers | |
| 23569 | +var isThenable = function (it) { | |
| 23570 | + var then; | |
| 23571 | + return isObject(it) && typeof (then = it.then) == 'function' ? then : false; | |
| 23572 | +}; | |
| 23573 | +var notify = function (promise, isReject) { | |
| 23574 | + if (promise._n) return; | |
| 23575 | + promise._n = true; | |
| 23576 | + var chain = promise._c; | |
| 23577 | + microtask(function () { | |
| 23578 | + var value = promise._v; | |
| 23579 | + var ok = promise._s == 1; | |
| 23580 | + var i = 0; | |
| 23581 | + var run = function (reaction) { | |
| 23582 | + var handler = ok ? reaction.ok : reaction.fail; | |
| 23583 | + var resolve = reaction.resolve; | |
| 23584 | + var reject = reaction.reject; | |
| 23585 | + var domain = reaction.domain; | |
| 23586 | + var result, then, exited; | |
| 23587 | + try { | |
| 23588 | + if (handler) { | |
| 23589 | + if (!ok) { | |
| 23590 | + if (promise._h == 2) onHandleUnhandled(promise); | |
| 23591 | + promise._h = 1; | |
| 23592 | + } | |
| 23593 | + if (handler === true) result = value; | |
| 23594 | + else { | |
| 23595 | + if (domain) domain.enter(); | |
| 23596 | + result = handler(value); // may throw | |
| 23597 | + if (domain) { | |
| 23598 | + domain.exit(); | |
| 23599 | + exited = true; | |
| 23600 | + } | |
| 23601 | + } | |
| 23602 | + if (result === reaction.promise) { | |
| 23603 | + reject(TypeError('Promise-chain cycle')); | |
| 23604 | + } else if (then = isThenable(result)) { | |
| 23605 | + then.call(result, resolve, reject); | |
| 23606 | + } else resolve(result); | |
| 23607 | + } else reject(value); | |
| 23608 | + } catch (e) { | |
| 23609 | + if (domain && !exited) domain.exit(); | |
| 23610 | + reject(e); | |
| 23611 | + } | |
| 23612 | + }; | |
| 23613 | + while (chain.length > i) run(chain[i++]); // variable length - can't use forEach | |
| 23614 | + promise._c = []; | |
| 23615 | + promise._n = false; | |
| 23616 | + if (isReject && !promise._h) onUnhandled(promise); | |
| 23617 | + }); | |
| 23618 | +}; | |
| 23619 | +var onUnhandled = function (promise) { | |
| 23620 | + task.call(global, function () { | |
| 23621 | + var value = promise._v; | |
| 23622 | + var unhandled = isUnhandled(promise); | |
| 23623 | + var result, handler, console; | |
| 23624 | + if (unhandled) { | |
| 23625 | + result = perform(function () { | |
| 23626 | + if (isNode) { | |
| 23627 | + process.emit('unhandledRejection', value, promise); | |
| 23628 | + } else if (handler = global.onunhandledrejection) { | |
| 23629 | + handler({ promise: promise, reason: value }); | |
| 23630 | + } else if ((console = global.console) && console.error) { | |
| 23631 | + console.error('Unhandled promise rejection', value); | |
| 23632 | + } | |
| 23633 | + }); | |
| 23634 | + // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should | |
| 23635 | + promise._h = isNode || isUnhandled(promise) ? 2 : 1; | |
| 23636 | + } promise._a = undefined; | |
| 23637 | + if (unhandled && result.e) throw result.v; | |
| 23638 | + }); | |
| 23639 | +}; | |
| 23640 | +var isUnhandled = function (promise) { | |
| 23641 | + return promise._h !== 1 && (promise._a || promise._c).length === 0; | |
| 23642 | +}; | |
| 23643 | +var onHandleUnhandled = function (promise) { | |
| 23644 | + task.call(global, function () { | |
| 23645 | + var handler; | |
| 23646 | + if (isNode) { | |
| 23647 | + process.emit('rejectionHandled', promise); | |
| 23648 | + } else if (handler = global.onrejectionhandled) { | |
| 23649 | + handler({ promise: promise, reason: promise._v }); | |
| 23650 | + } | |
| 23651 | + }); | |
| 23652 | +}; | |
| 23653 | +var $reject = function (value) { | |
| 23654 | + var promise = this; | |
| 23655 | + if (promise._d) return; | |
| 23656 | + promise._d = true; | |
| 23657 | + promise = promise._w || promise; // unwrap | |
| 23658 | + promise._v = value; | |
| 23659 | + promise._s = 2; | |
| 23660 | + if (!promise._a) promise._a = promise._c.slice(); | |
| 23661 | + notify(promise, true); | |
| 23662 | +}; | |
| 23663 | +var $resolve = function (value) { | |
| 23664 | + var promise = this; | |
| 23665 | + var then; | |
| 23666 | + if (promise._d) return; | |
| 23667 | + promise._d = true; | |
| 23668 | + promise = promise._w || promise; // unwrap | |
| 23669 | + try { | |
| 23670 | + if (promise === value) throw TypeError("Promise can't be resolved itself"); | |
| 23671 | + if (then = isThenable(value)) { | |
| 23672 | + microtask(function () { | |
| 23673 | + var wrapper = { _w: promise, _d: false }; // wrap | |
| 23674 | + try { | |
| 23675 | + then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); | |
| 23676 | + } catch (e) { | |
| 23677 | + $reject.call(wrapper, e); | |
| 23678 | + } | |
| 23679 | + }); | |
| 23680 | + } else { | |
| 23681 | + promise._v = value; | |
| 23682 | + promise._s = 1; | |
| 23683 | + notify(promise, false); | |
| 23684 | + } | |
| 23685 | + } catch (e) { | |
| 23686 | + $reject.call({ _w: promise, _d: false }, e); // wrap | |
| 23687 | + } | |
| 23688 | +}; | |
| 23689 | + | |
| 23690 | +// constructor polyfill | |
| 23691 | +if (!USE_NATIVE) { | |
| 23692 | + // 25.4.3.1 Promise(executor) | |
| 23693 | + $Promise = function Promise(executor) { | |
| 23694 | + anInstance(this, $Promise, PROMISE, '_h'); | |
| 23695 | + aFunction(executor); | |
| 23696 | + Internal.call(this); | |
| 23697 | + try { | |
| 23698 | + executor(ctx($resolve, this, 1), ctx($reject, this, 1)); | |
| 23699 | + } catch (err) { | |
| 23700 | + $reject.call(this, err); | |
| 23701 | + } | |
| 23702 | + }; | |
| 23703 | + // eslint-disable-next-line no-unused-vars | |
| 23704 | + Internal = function Promise(executor) { | |
| 23705 | + this._c = []; // <- awaiting reactions | |
| 23706 | + this._a = undefined; // <- checked in isUnhandled reactions | |
| 23707 | + this._s = 0; // <- state | |
| 23708 | + this._d = false; // <- done | |
| 23709 | + this._v = undefined; // <- value | |
| 23710 | + this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled | |
| 23711 | + this._n = false; // <- notify | |
| 23712 | + }; | |
| 23713 | + Internal.prototype = __webpack_require__(/*! ./_redefine-all */ "../node_modules/core-js/library/modules/_redefine-all.js")($Promise.prototype, { | |
| 23714 | + // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) | |
| 23715 | + then: function then(onFulfilled, onRejected) { | |
| 23716 | + var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); | |
| 23717 | + reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; | |
| 23718 | + reaction.fail = typeof onRejected == 'function' && onRejected; | |
| 23719 | + reaction.domain = isNode ? process.domain : undefined; | |
| 23720 | + this._c.push(reaction); | |
| 23721 | + if (this._a) this._a.push(reaction); | |
| 23722 | + if (this._s) notify(this, false); | |
| 23723 | + return reaction.promise; | |
| 23724 | + }, | |
| 23725 | + // 25.4.5.1 Promise.prototype.catch(onRejected) | |
| 23726 | + 'catch': function (onRejected) { | |
| 23727 | + return this.then(undefined, onRejected); | |
| 23728 | + } | |
| 23729 | + }); | |
| 23730 | + OwnPromiseCapability = function () { | |
| 23731 | + var promise = new Internal(); | |
| 23732 | + this.promise = promise; | |
| 23733 | + this.resolve = ctx($resolve, promise, 1); | |
| 23734 | + this.reject = ctx($reject, promise, 1); | |
| 23735 | + }; | |
| 23736 | + newPromiseCapabilityModule.f = newPromiseCapability = function (C) { | |
| 23737 | + return C === $Promise || C === Wrapper | |
| 23738 | + ? new OwnPromiseCapability(C) | |
| 23739 | + : newGenericPromiseCapability(C); | |
| 23740 | + }; | |
| 1250 | 23741 | } |
| 1251 | -module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1252 | 23742 | |
| 23743 | +$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise }); | |
| 23744 | +__webpack_require__(/*! ./_set-to-string-tag */ "../node_modules/core-js/library/modules/_set-to-string-tag.js")($Promise, PROMISE); | |
| 23745 | +__webpack_require__(/*! ./_set-species */ "../node_modules/core-js/library/modules/_set-species.js")(PROMISE); | |
| 23746 | +Wrapper = __webpack_require__(/*! ./_core */ "../node_modules/core-js/library/modules/_core.js")[PROMISE]; | |
| 23747 | + | |
| 23748 | +// statics | |
| 23749 | +$export($export.S + $export.F * !USE_NATIVE, PROMISE, { | |
| 23750 | + // 25.4.4.5 Promise.reject(r) | |
| 23751 | + reject: function reject(r) { | |
| 23752 | + var capability = newPromiseCapability(this); | |
| 23753 | + var $$reject = capability.reject; | |
| 23754 | + $$reject(r); | |
| 23755 | + return capability.promise; | |
| 23756 | + } | |
| 23757 | +}); | |
| 23758 | +$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, { | |
| 23759 | + // 25.4.4.6 Promise.resolve(x) | |
| 23760 | + resolve: function resolve(x) { | |
| 23761 | + return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x); | |
| 23762 | + } | |
| 23763 | +}); | |
| 23764 | +$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(/*! ./_iter-detect */ "../node_modules/core-js/library/modules/_iter-detect.js")(function (iter) { | |
| 23765 | + $Promise.all(iter)['catch'](empty); | |
| 23766 | +})), PROMISE, { | |
| 23767 | + // 25.4.4.1 Promise.all(iterable) | |
| 23768 | + all: function all(iterable) { | |
| 23769 | + var C = this; | |
| 23770 | + var capability = newPromiseCapability(C); | |
| 23771 | + var resolve = capability.resolve; | |
| 23772 | + var reject = capability.reject; | |
| 23773 | + var result = perform(function () { | |
| 23774 | + var values = []; | |
| 23775 | + var index = 0; | |
| 23776 | + var remaining = 1; | |
| 23777 | + forOf(iterable, false, function (promise) { | |
| 23778 | + var $index = index++; | |
| 23779 | + var alreadyCalled = false; | |
| 23780 | + values.push(undefined); | |
| 23781 | + remaining++; | |
| 23782 | + C.resolve(promise).then(function (value) { | |
| 23783 | + if (alreadyCalled) return; | |
| 23784 | + alreadyCalled = true; | |
| 23785 | + values[$index] = value; | |
| 23786 | + --remaining || resolve(values); | |
| 23787 | + }, reject); | |
| 23788 | + }); | |
| 23789 | + --remaining || resolve(values); | |
| 23790 | + }); | |
| 23791 | + if (result.e) reject(result.v); | |
| 23792 | + return capability.promise; | |
| 23793 | + }, | |
| 23794 | + // 25.4.4.4 Promise.race(iterable) | |
| 23795 | + race: function race(iterable) { | |
| 23796 | + var C = this; | |
| 23797 | + var capability = newPromiseCapability(C); | |
| 23798 | + var reject = capability.reject; | |
| 23799 | + var result = perform(function () { | |
| 23800 | + forOf(iterable, false, function (promise) { | |
| 23801 | + C.resolve(promise).then(capability.resolve, reject); | |
| 23802 | + }); | |
| 23803 | + }); | |
| 23804 | + if (result.e) reject(result.v); | |
| 23805 | + return capability.promise; | |
| 23806 | + } | |
| 23807 | +}); | |
| 23808 | + | |
| 23809 | + | |
| 1253 | 23810 | /***/ }), |
| 1254 | 23811 | |
| 1255 | -/***/ "../node_modules/@babel/runtime/helpers/createClass.js": | |
| 23812 | +/***/ "../node_modules/core-js/library/modules/es6.reflect.construct.js": | |
| 23813 | +/*!************************************************************************!*\ | |
| 23814 | + !*** ../node_modules/core-js/library/modules/es6.reflect.construct.js ***! | |
| 23815 | + \************************************************************************/ | |
| 23816 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23817 | + | |
| 23818 | +// 26.1.2 Reflect.construct(target, argumentsList [, newTarget]) | |
| 23819 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 23820 | +var create = __webpack_require__(/*! ./_object-create */ "../node_modules/core-js/library/modules/_object-create.js"); | |
| 23821 | +var aFunction = __webpack_require__(/*! ./_a-function */ "../node_modules/core-js/library/modules/_a-function.js"); | |
| 23822 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/library/modules/_an-object.js"); | |
| 23823 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 23824 | +var fails = __webpack_require__(/*! ./_fails */ "../node_modules/core-js/library/modules/_fails.js"); | |
| 23825 | +var bind = __webpack_require__(/*! ./_bind */ "../node_modules/core-js/library/modules/_bind.js"); | |
| 23826 | +var rConstruct = (__webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js").Reflect || {}).construct; | |
| 23827 | + | |
| 23828 | +// MS Edge supports only 2 arguments and argumentsList argument is optional | |
| 23829 | +// FF Nightly sets third argument as `new.target`, but does not create `this` from it | |
| 23830 | +var NEW_TARGET_BUG = fails(function () { | |
| 23831 | + function F() { /* empty */ } | |
| 23832 | + return !(rConstruct(function () { /* empty */ }, [], F) instanceof F); | |
| 23833 | +}); | |
| 23834 | +var ARGS_BUG = !fails(function () { | |
| 23835 | + rConstruct(function () { /* empty */ }); | |
| 23836 | +}); | |
| 23837 | + | |
| 23838 | +$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { | |
| 23839 | + construct: function construct(Target, args /* , newTarget */) { | |
| 23840 | + aFunction(Target); | |
| 23841 | + anObject(args); | |
| 23842 | + var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]); | |
| 23843 | + if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget); | |
| 23844 | + if (Target == newTarget) { | |
| 23845 | + // w/o altered newTarget, optimization for 0-4 arguments | |
| 23846 | + switch (args.length) { | |
| 23847 | + case 0: return new Target(); | |
| 23848 | + case 1: return new Target(args[0]); | |
| 23849 | + case 2: return new Target(args[0], args[1]); | |
| 23850 | + case 3: return new Target(args[0], args[1], args[2]); | |
| 23851 | + case 4: return new Target(args[0], args[1], args[2], args[3]); | |
| 23852 | + } | |
| 23853 | + // w/o altered newTarget, lot of arguments case | |
| 23854 | + var $args = [null]; | |
| 23855 | + $args.push.apply($args, args); | |
| 23856 | + return new (bind.apply(Target, $args))(); | |
| 23857 | + } | |
| 23858 | + // with altered newTarget, not support built-in constructors | |
| 23859 | + var proto = newTarget.prototype; | |
| 23860 | + var instance = create(isObject(proto) ? proto : Object.prototype); | |
| 23861 | + var result = Function.apply.call(Target, instance, args); | |
| 23862 | + return isObject(result) ? result : instance; | |
| 23863 | + } | |
| 23864 | +}); | |
| 23865 | + | |
| 23866 | + | |
| 23867 | +/***/ }), | |
| 23868 | + | |
| 23869 | +/***/ "../node_modules/core-js/library/modules/es6.reflect.get.js": | |
| 23870 | +/*!******************************************************************!*\ | |
| 23871 | + !*** ../node_modules/core-js/library/modules/es6.reflect.get.js ***! | |
| 23872 | + \******************************************************************/ | |
| 23873 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23874 | + | |
| 23875 | +// 26.1.6 Reflect.get(target, propertyKey [, receiver]) | |
| 23876 | +var gOPD = __webpack_require__(/*! ./_object-gopd */ "../node_modules/core-js/library/modules/_object-gopd.js"); | |
| 23877 | +var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "../node_modules/core-js/library/modules/_object-gpo.js"); | |
| 23878 | +var has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/library/modules/_has.js"); | |
| 23879 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 23880 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 23881 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/library/modules/_an-object.js"); | |
| 23882 | + | |
| 23883 | +function get(target, propertyKey /* , receiver */) { | |
| 23884 | + var receiver = arguments.length < 3 ? target : arguments[2]; | |
| 23885 | + var desc, proto; | |
| 23886 | + if (anObject(target) === receiver) return target[propertyKey]; | |
| 23887 | + if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value') | |
| 23888 | + ? desc.value | |
| 23889 | + : desc.get !== undefined | |
| 23890 | + ? desc.get.call(receiver) | |
| 23891 | + : undefined; | |
| 23892 | + if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver); | |
| 23893 | +} | |
| 23894 | + | |
| 23895 | +$export($export.S, 'Reflect', { get: get }); | |
| 23896 | + | |
| 23897 | + | |
| 23898 | +/***/ }), | |
| 23899 | + | |
| 23900 | +/***/ "../node_modules/core-js/library/modules/es6.string.iterator.js": | |
| 23901 | +/*!**********************************************************************!*\ | |
| 23902 | + !*** ../node_modules/core-js/library/modules/es6.string.iterator.js ***! | |
| 23903 | + \**********************************************************************/ | |
| 23904 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23905 | + | |
| 23906 | +"use strict"; | |
| 23907 | + | |
| 23908 | +var $at = __webpack_require__(/*! ./_string-at */ "../node_modules/core-js/library/modules/_string-at.js")(true); | |
| 23909 | + | |
| 23910 | +// 21.1.3.27 String.prototype[@@iterator]() | |
| 23911 | +__webpack_require__(/*! ./_iter-define */ "../node_modules/core-js/library/modules/_iter-define.js")(String, 'String', function (iterated) { | |
| 23912 | + this._t = String(iterated); // target | |
| 23913 | + this._i = 0; // next index | |
| 23914 | +// 21.1.5.2.1 %StringIteratorPrototype%.next() | |
| 23915 | +}, function () { | |
| 23916 | + var O = this._t; | |
| 23917 | + var index = this._i; | |
| 23918 | + var point; | |
| 23919 | + if (index >= O.length) return { value: undefined, done: true }; | |
| 23920 | + point = $at(O, index); | |
| 23921 | + this._i += point.length; | |
| 23922 | + return { value: point, done: false }; | |
| 23923 | +}); | |
| 23924 | + | |
| 23925 | + | |
| 23926 | +/***/ }), | |
| 23927 | + | |
| 23928 | +/***/ "../node_modules/core-js/library/modules/es6.symbol.js": | |
| 1256 | 23929 | /*!*************************************************************!*\ |
| 1257 | - !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! | |
| 23930 | + !*** ../node_modules/core-js/library/modules/es6.symbol.js ***! | |
| 1258 | 23931 | \*************************************************************/ |
| 23932 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 23933 | + | |
| 23934 | +"use strict"; | |
| 23935 | + | |
| 23936 | +// ECMAScript 6 symbols shim | |
| 23937 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js"); | |
| 23938 | +var has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/library/modules/_has.js"); | |
| 23939 | +var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/library/modules/_descriptors.js"); | |
| 23940 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 23941 | +var redefine = __webpack_require__(/*! ./_redefine */ "../node_modules/core-js/library/modules/_redefine.js"); | |
| 23942 | +var META = __webpack_require__(/*! ./_meta */ "../node_modules/core-js/library/modules/_meta.js").KEY; | |
| 23943 | +var $fails = __webpack_require__(/*! ./_fails */ "../node_modules/core-js/library/modules/_fails.js"); | |
| 23944 | +var shared = __webpack_require__(/*! ./_shared */ "../node_modules/core-js/library/modules/_shared.js"); | |
| 23945 | +var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "../node_modules/core-js/library/modules/_set-to-string-tag.js"); | |
| 23946 | +var uid = __webpack_require__(/*! ./_uid */ "../node_modules/core-js/library/modules/_uid.js"); | |
| 23947 | +var wks = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/library/modules/_wks.js"); | |
| 23948 | +var wksExt = __webpack_require__(/*! ./_wks-ext */ "../node_modules/core-js/library/modules/_wks-ext.js"); | |
| 23949 | +var wksDefine = __webpack_require__(/*! ./_wks-define */ "../node_modules/core-js/library/modules/_wks-define.js"); | |
| 23950 | +var enumKeys = __webpack_require__(/*! ./_enum-keys */ "../node_modules/core-js/library/modules/_enum-keys.js"); | |
| 23951 | +var isArray = __webpack_require__(/*! ./_is-array */ "../node_modules/core-js/library/modules/_is-array.js"); | |
| 23952 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/library/modules/_an-object.js"); | |
| 23953 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 23954 | +var toObject = __webpack_require__(/*! ./_to-object */ "../node_modules/core-js/library/modules/_to-object.js"); | |
| 23955 | +var toIObject = __webpack_require__(/*! ./_to-iobject */ "../node_modules/core-js/library/modules/_to-iobject.js"); | |
| 23956 | +var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "../node_modules/core-js/library/modules/_to-primitive.js"); | |
| 23957 | +var createDesc = __webpack_require__(/*! ./_property-desc */ "../node_modules/core-js/library/modules/_property-desc.js"); | |
| 23958 | +var _create = __webpack_require__(/*! ./_object-create */ "../node_modules/core-js/library/modules/_object-create.js"); | |
| 23959 | +var gOPNExt = __webpack_require__(/*! ./_object-gopn-ext */ "../node_modules/core-js/library/modules/_object-gopn-ext.js"); | |
| 23960 | +var $GOPD = __webpack_require__(/*! ./_object-gopd */ "../node_modules/core-js/library/modules/_object-gopd.js"); | |
| 23961 | +var $GOPS = __webpack_require__(/*! ./_object-gops */ "../node_modules/core-js/library/modules/_object-gops.js"); | |
| 23962 | +var $DP = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/library/modules/_object-dp.js"); | |
| 23963 | +var $keys = __webpack_require__(/*! ./_object-keys */ "../node_modules/core-js/library/modules/_object-keys.js"); | |
| 23964 | +var gOPD = $GOPD.f; | |
| 23965 | +var dP = $DP.f; | |
| 23966 | +var gOPN = gOPNExt.f; | |
| 23967 | +var $Symbol = global.Symbol; | |
| 23968 | +var $JSON = global.JSON; | |
| 23969 | +var _stringify = $JSON && $JSON.stringify; | |
| 23970 | +var PROTOTYPE = 'prototype'; | |
| 23971 | +var HIDDEN = wks('_hidden'); | |
| 23972 | +var TO_PRIMITIVE = wks('toPrimitive'); | |
| 23973 | +var isEnum = {}.propertyIsEnumerable; | |
| 23974 | +var SymbolRegistry = shared('symbol-registry'); | |
| 23975 | +var AllSymbols = shared('symbols'); | |
| 23976 | +var OPSymbols = shared('op-symbols'); | |
| 23977 | +var ObjectProto = Object[PROTOTYPE]; | |
| 23978 | +var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f; | |
| 23979 | +var QObject = global.QObject; | |
| 23980 | +// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 | |
| 23981 | +var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; | |
| 23982 | + | |
| 23983 | +// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 | |
| 23984 | +var setSymbolDesc = DESCRIPTORS && $fails(function () { | |
| 23985 | + return _create(dP({}, 'a', { | |
| 23986 | + get: function () { return dP(this, 'a', { value: 7 }).a; } | |
| 23987 | + })).a != 7; | |
| 23988 | +}) ? function (it, key, D) { | |
| 23989 | + var protoDesc = gOPD(ObjectProto, key); | |
| 23990 | + if (protoDesc) delete ObjectProto[key]; | |
| 23991 | + dP(it, key, D); | |
| 23992 | + if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); | |
| 23993 | +} : dP; | |
| 23994 | + | |
| 23995 | +var wrap = function (tag) { | |
| 23996 | + var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); | |
| 23997 | + sym._k = tag; | |
| 23998 | + return sym; | |
| 23999 | +}; | |
| 24000 | + | |
| 24001 | +var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { | |
| 24002 | + return typeof it == 'symbol'; | |
| 24003 | +} : function (it) { | |
| 24004 | + return it instanceof $Symbol; | |
| 24005 | +}; | |
| 24006 | + | |
| 24007 | +var $defineProperty = function defineProperty(it, key, D) { | |
| 24008 | + if (it === ObjectProto) $defineProperty(OPSymbols, key, D); | |
| 24009 | + anObject(it); | |
| 24010 | + key = toPrimitive(key, true); | |
| 24011 | + anObject(D); | |
| 24012 | + if (has(AllSymbols, key)) { | |
| 24013 | + if (!D.enumerable) { | |
| 24014 | + if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); | |
| 24015 | + it[HIDDEN][key] = true; | |
| 24016 | + } else { | |
| 24017 | + if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; | |
| 24018 | + D = _create(D, { enumerable: createDesc(0, false) }); | |
| 24019 | + } return setSymbolDesc(it, key, D); | |
| 24020 | + } return dP(it, key, D); | |
| 24021 | +}; | |
| 24022 | +var $defineProperties = function defineProperties(it, P) { | |
| 24023 | + anObject(it); | |
| 24024 | + var keys = enumKeys(P = toIObject(P)); | |
| 24025 | + var i = 0; | |
| 24026 | + var l = keys.length; | |
| 24027 | + var key; | |
| 24028 | + while (l > i) $defineProperty(it, key = keys[i++], P[key]); | |
| 24029 | + return it; | |
| 24030 | +}; | |
| 24031 | +var $create = function create(it, P) { | |
| 24032 | + return P === undefined ? _create(it) : $defineProperties(_create(it), P); | |
| 24033 | +}; | |
| 24034 | +var $propertyIsEnumerable = function propertyIsEnumerable(key) { | |
| 24035 | + var E = isEnum.call(this, key = toPrimitive(key, true)); | |
| 24036 | + if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; | |
| 24037 | + return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; | |
| 24038 | +}; | |
| 24039 | +var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { | |
| 24040 | + it = toIObject(it); | |
| 24041 | + key = toPrimitive(key, true); | |
| 24042 | + if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; | |
| 24043 | + var D = gOPD(it, key); | |
| 24044 | + if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; | |
| 24045 | + return D; | |
| 24046 | +}; | |
| 24047 | +var $getOwnPropertyNames = function getOwnPropertyNames(it) { | |
| 24048 | + var names = gOPN(toIObject(it)); | |
| 24049 | + var result = []; | |
| 24050 | + var i = 0; | |
| 24051 | + var key; | |
| 24052 | + while (names.length > i) { | |
| 24053 | + if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); | |
| 24054 | + } return result; | |
| 24055 | +}; | |
| 24056 | +var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { | |
| 24057 | + var IS_OP = it === ObjectProto; | |
| 24058 | + var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); | |
| 24059 | + var result = []; | |
| 24060 | + var i = 0; | |
| 24061 | + var key; | |
| 24062 | + while (names.length > i) { | |
| 24063 | + if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); | |
| 24064 | + } return result; | |
| 24065 | +}; | |
| 24066 | + | |
| 24067 | +// 19.4.1.1 Symbol([description]) | |
| 24068 | +if (!USE_NATIVE) { | |
| 24069 | + $Symbol = function Symbol() { | |
| 24070 | + if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); | |
| 24071 | + var tag = uid(arguments.length > 0 ? arguments[0] : undefined); | |
| 24072 | + var $set = function (value) { | |
| 24073 | + if (this === ObjectProto) $set.call(OPSymbols, value); | |
| 24074 | + if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; | |
| 24075 | + setSymbolDesc(this, tag, createDesc(1, value)); | |
| 24076 | + }; | |
| 24077 | + if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); | |
| 24078 | + return wrap(tag); | |
| 24079 | + }; | |
| 24080 | + redefine($Symbol[PROTOTYPE], 'toString', function toString() { | |
| 24081 | + return this._k; | |
| 24082 | + }); | |
| 24083 | + | |
| 24084 | + $GOPD.f = $getOwnPropertyDescriptor; | |
| 24085 | + $DP.f = $defineProperty; | |
| 24086 | + __webpack_require__(/*! ./_object-gopn */ "../node_modules/core-js/library/modules/_object-gopn.js").f = gOPNExt.f = $getOwnPropertyNames; | |
| 24087 | + __webpack_require__(/*! ./_object-pie */ "../node_modules/core-js/library/modules/_object-pie.js").f = $propertyIsEnumerable; | |
| 24088 | + $GOPS.f = $getOwnPropertySymbols; | |
| 24089 | + | |
| 24090 | + if (DESCRIPTORS && !__webpack_require__(/*! ./_library */ "../node_modules/core-js/library/modules/_library.js")) { | |
| 24091 | + redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); | |
| 24092 | + } | |
| 24093 | + | |
| 24094 | + wksExt.f = function (name) { | |
| 24095 | + return wrap(wks(name)); | |
| 24096 | + }; | |
| 24097 | +} | |
| 24098 | + | |
| 24099 | +$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); | |
| 24100 | + | |
| 24101 | +for (var es6Symbols = ( | |
| 24102 | + // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 | |
| 24103 | + 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' | |
| 24104 | +).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); | |
| 24105 | + | |
| 24106 | +for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); | |
| 24107 | + | |
| 24108 | +$export($export.S + $export.F * !USE_NATIVE, 'Symbol', { | |
| 24109 | + // 19.4.2.1 Symbol.for(key) | |
| 24110 | + 'for': function (key) { | |
| 24111 | + return has(SymbolRegistry, key += '') | |
| 24112 | + ? SymbolRegistry[key] | |
| 24113 | + : SymbolRegistry[key] = $Symbol(key); | |
| 24114 | + }, | |
| 24115 | + // 19.4.2.5 Symbol.keyFor(sym) | |
| 24116 | + keyFor: function keyFor(sym) { | |
| 24117 | + if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); | |
| 24118 | + for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; | |
| 24119 | + }, | |
| 24120 | + useSetter: function () { setter = true; }, | |
| 24121 | + useSimple: function () { setter = false; } | |
| 24122 | +}); | |
| 24123 | + | |
| 24124 | +$export($export.S + $export.F * !USE_NATIVE, 'Object', { | |
| 24125 | + // 19.1.2.2 Object.create(O [, Properties]) | |
| 24126 | + create: $create, | |
| 24127 | + // 19.1.2.4 Object.defineProperty(O, P, Attributes) | |
| 24128 | + defineProperty: $defineProperty, | |
| 24129 | + // 19.1.2.3 Object.defineProperties(O, Properties) | |
| 24130 | + defineProperties: $defineProperties, | |
| 24131 | + // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) | |
| 24132 | + getOwnPropertyDescriptor: $getOwnPropertyDescriptor, | |
| 24133 | + // 19.1.2.7 Object.getOwnPropertyNames(O) | |
| 24134 | + getOwnPropertyNames: $getOwnPropertyNames, | |
| 24135 | + // 19.1.2.8 Object.getOwnPropertySymbols(O) | |
| 24136 | + getOwnPropertySymbols: $getOwnPropertySymbols | |
| 24137 | +}); | |
| 24138 | + | |
| 24139 | +// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives | |
| 24140 | +// https://bugs.chromium.org/p/v8/issues/detail?id=3443 | |
| 24141 | +var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); }); | |
| 24142 | + | |
| 24143 | +$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', { | |
| 24144 | + getOwnPropertySymbols: function getOwnPropertySymbols(it) { | |
| 24145 | + return $GOPS.f(toObject(it)); | |
| 24146 | + } | |
| 24147 | +}); | |
| 24148 | + | |
| 24149 | +// 24.3.2 JSON.stringify(value [, replacer [, space]]) | |
| 24150 | +$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { | |
| 24151 | + var S = $Symbol(); | |
| 24152 | + // MS Edge converts symbol values to JSON as {} | |
| 24153 | + // WebKit converts symbol values to JSON as null | |
| 24154 | + // V8 throws on boxed symbols | |
| 24155 | + return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; | |
| 24156 | +})), 'JSON', { | |
| 24157 | + stringify: function stringify(it) { | |
| 24158 | + var args = [it]; | |
| 24159 | + var i = 1; | |
| 24160 | + var replacer, $replacer; | |
| 24161 | + while (arguments.length > i) args.push(arguments[i++]); | |
| 24162 | + $replacer = replacer = args[1]; | |
| 24163 | + if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined | |
| 24164 | + if (!isArray(replacer)) replacer = function (key, value) { | |
| 24165 | + if (typeof $replacer == 'function') value = $replacer.call(this, key, value); | |
| 24166 | + if (!isSymbol(value)) return value; | |
| 24167 | + }; | |
| 24168 | + args[1] = replacer; | |
| 24169 | + return _stringify.apply($JSON, args); | |
| 24170 | + } | |
| 24171 | +}); | |
| 24172 | + | |
| 24173 | +// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) | |
| 24174 | +$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(/*! ./_hide */ "../node_modules/core-js/library/modules/_hide.js")($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); | |
| 24175 | +// 19.4.3.5 Symbol.prototype[@@toStringTag] | |
| 24176 | +setToStringTag($Symbol, 'Symbol'); | |
| 24177 | +// 20.2.1.9 Math[@@toStringTag] | |
| 24178 | +setToStringTag(Math, 'Math', true); | |
| 24179 | +// 24.3.3 JSON[@@toStringTag] | |
| 24180 | +setToStringTag(global.JSON, 'JSON', true); | |
| 24181 | + | |
| 24182 | + | |
| 24183 | +/***/ }), | |
| 24184 | + | |
| 24185 | +/***/ "../node_modules/core-js/library/modules/es6.weak-map.js": | |
| 24186 | +/*!***************************************************************!*\ | |
| 24187 | + !*** ../node_modules/core-js/library/modules/es6.weak-map.js ***! | |
| 24188 | + \***************************************************************/ | |
| 1259 | 24189 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1260 | 24190 | |
| 1261 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 1262 | -function _defineProperties(e, r) { | |
| 1263 | - for (var t = 0; t < r.length; t++) { | |
| 1264 | - var o = r[t]; | |
| 1265 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 24191 | +"use strict"; | |
| 24192 | + | |
| 24193 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js"); | |
| 24194 | +var each = __webpack_require__(/*! ./_array-methods */ "../node_modules/core-js/library/modules/_array-methods.js")(0); | |
| 24195 | +var redefine = __webpack_require__(/*! ./_redefine */ "../node_modules/core-js/library/modules/_redefine.js"); | |
| 24196 | +var meta = __webpack_require__(/*! ./_meta */ "../node_modules/core-js/library/modules/_meta.js"); | |
| 24197 | +var assign = __webpack_require__(/*! ./_object-assign */ "../node_modules/core-js/library/modules/_object-assign.js"); | |
| 24198 | +var weak = __webpack_require__(/*! ./_collection-weak */ "../node_modules/core-js/library/modules/_collection-weak.js"); | |
| 24199 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/library/modules/_is-object.js"); | |
| 24200 | +var validate = __webpack_require__(/*! ./_validate-collection */ "../node_modules/core-js/library/modules/_validate-collection.js"); | |
| 24201 | +var NATIVE_WEAK_MAP = __webpack_require__(/*! ./_validate-collection */ "../node_modules/core-js/library/modules/_validate-collection.js"); | |
| 24202 | +var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global; | |
| 24203 | +var WEAK_MAP = 'WeakMap'; | |
| 24204 | +var getWeak = meta.getWeak; | |
| 24205 | +var isExtensible = Object.isExtensible; | |
| 24206 | +var uncaughtFrozenStore = weak.ufstore; | |
| 24207 | +var InternalMap; | |
| 24208 | + | |
| 24209 | +var wrapper = function (get) { | |
| 24210 | + return function WeakMap() { | |
| 24211 | + return get(this, arguments.length > 0 ? arguments[0] : undefined); | |
| 24212 | + }; | |
| 24213 | +}; | |
| 24214 | + | |
| 24215 | +var methods = { | |
| 24216 | + // 23.3.3.3 WeakMap.prototype.get(key) | |
| 24217 | + get: function get(key) { | |
| 24218 | + if (isObject(key)) { | |
| 24219 | + var data = getWeak(key); | |
| 24220 | + if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key); | |
| 24221 | + return data ? data[this._i] : undefined; | |
| 24222 | + } | |
| 24223 | + }, | |
| 24224 | + // 23.3.3.5 WeakMap.prototype.set(key, value) | |
| 24225 | + set: function set(key, value) { | |
| 24226 | + return weak.def(validate(this, WEAK_MAP), key, value); | |
| 1266 | 24227 | } |
| 24228 | +}; | |
| 24229 | + | |
| 24230 | +// 23.3 WeakMap Objects | |
| 24231 | +var $WeakMap = module.exports = __webpack_require__(/*! ./_collection */ "../node_modules/core-js/library/modules/_collection.js")(WEAK_MAP, wrapper, methods, weak, true, true); | |
| 24232 | + | |
| 24233 | +// IE11 WeakMap frozen keys fix | |
| 24234 | +if (NATIVE_WEAK_MAP && IS_IE11) { | |
| 24235 | + InternalMap = weak.getConstructor(wrapper, WEAK_MAP); | |
| 24236 | + assign(InternalMap.prototype, methods); | |
| 24237 | + meta.NEED = true; | |
| 24238 | + each(['delete', 'has', 'get', 'set'], function (key) { | |
| 24239 | + var proto = $WeakMap.prototype; | |
| 24240 | + var method = proto[key]; | |
| 24241 | + redefine(proto, key, function (a, b) { | |
| 24242 | + // store frozen objects on internal weakmap shim | |
| 24243 | + if (isObject(a) && !isExtensible(a)) { | |
| 24244 | + if (!this._f) this._f = new InternalMap(); | |
| 24245 | + var result = this._f[key](a, b); | |
| 24246 | + return key == 'set' ? this : result; | |
| 24247 | + // store all the rest on native weakmap | |
| 24248 | + } return method.call(this, a, b); | |
| 24249 | + }); | |
| 24250 | + }); | |
| 1267 | 24251 | } |
| 1268 | -function _createClass(e, r, t) { | |
| 1269 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | |
| 1270 | - writable: !1 | |
| 1271 | - }), e; | |
| 24252 | + | |
| 24253 | + | |
| 24254 | +/***/ }), | |
| 24255 | + | |
| 24256 | +/***/ "../node_modules/core-js/library/modules/es7.map.from.js": | |
| 24257 | +/*!***************************************************************!*\ | |
| 24258 | + !*** ../node_modules/core-js/library/modules/es7.map.from.js ***! | |
| 24259 | + \***************************************************************/ | |
| 24260 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 24261 | + | |
| 24262 | +// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from | |
| 24263 | +__webpack_require__(/*! ./_set-collection-from */ "../node_modules/core-js/library/modules/_set-collection-from.js")('Map'); | |
| 24264 | + | |
| 24265 | + | |
| 24266 | +/***/ }), | |
| 24267 | + | |
| 24268 | +/***/ "../node_modules/core-js/library/modules/es7.map.of.js": | |
| 24269 | +/*!*************************************************************!*\ | |
| 24270 | + !*** ../node_modules/core-js/library/modules/es7.map.of.js ***! | |
| 24271 | + \*************************************************************/ | |
| 24272 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 24273 | + | |
| 24274 | +// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of | |
| 24275 | +__webpack_require__(/*! ./_set-collection-of */ "../node_modules/core-js/library/modules/_set-collection-of.js")('Map'); | |
| 24276 | + | |
| 24277 | + | |
| 24278 | +/***/ }), | |
| 24279 | + | |
| 24280 | +/***/ "../node_modules/core-js/library/modules/es7.map.to-json.js": | |
| 24281 | +/*!******************************************************************!*\ | |
| 24282 | + !*** ../node_modules/core-js/library/modules/es7.map.to-json.js ***! | |
| 24283 | + \******************************************************************/ | |
| 24284 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 24285 | + | |
| 24286 | +// https://github.com/DavidBruant/Map-Set.prototype.toJSON | |
| 24287 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 24288 | + | |
| 24289 | +$export($export.P + $export.R, 'Map', { toJSON: __webpack_require__(/*! ./_collection-to-json */ "../node_modules/core-js/library/modules/_collection-to-json.js")('Map') }); | |
| 24290 | + | |
| 24291 | + | |
| 24292 | +/***/ }), | |
| 24293 | + | |
| 24294 | +/***/ "../node_modules/core-js/library/modules/es7.object.entries.js": | |
| 24295 | +/*!*********************************************************************!*\ | |
| 24296 | + !*** ../node_modules/core-js/library/modules/es7.object.entries.js ***! | |
| 24297 | + \*********************************************************************/ | |
| 24298 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 24299 | + | |
| 24300 | +// https://github.com/tc39/proposal-object-values-entries | |
| 24301 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 24302 | +var $entries = __webpack_require__(/*! ./_object-to-array */ "../node_modules/core-js/library/modules/_object-to-array.js")(true); | |
| 24303 | + | |
| 24304 | +$export($export.S, 'Object', { | |
| 24305 | + entries: function entries(it) { | |
| 24306 | + return $entries(it); | |
| 24307 | + } | |
| 24308 | +}); | |
| 24309 | + | |
| 24310 | + | |
| 24311 | +/***/ }), | |
| 24312 | + | |
| 24313 | +/***/ "../node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js": | |
| 24314 | +/*!******************************************************************************************!*\ | |
| 24315 | + !*** ../node_modules/core-js/library/modules/es7.object.get-own-property-descriptors.js ***! | |
| 24316 | + \******************************************************************************************/ | |
| 24317 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 24318 | + | |
| 24319 | +// https://github.com/tc39/proposal-object-getownpropertydescriptors | |
| 24320 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 24321 | +var ownKeys = __webpack_require__(/*! ./_own-keys */ "../node_modules/core-js/library/modules/_own-keys.js"); | |
| 24322 | +var toIObject = __webpack_require__(/*! ./_to-iobject */ "../node_modules/core-js/library/modules/_to-iobject.js"); | |
| 24323 | +var gOPD = __webpack_require__(/*! ./_object-gopd */ "../node_modules/core-js/library/modules/_object-gopd.js"); | |
| 24324 | +var createProperty = __webpack_require__(/*! ./_create-property */ "../node_modules/core-js/library/modules/_create-property.js"); | |
| 24325 | + | |
| 24326 | +$export($export.S, 'Object', { | |
| 24327 | + getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) { | |
| 24328 | + var O = toIObject(object); | |
| 24329 | + var getDesc = gOPD.f; | |
| 24330 | + var keys = ownKeys(O); | |
| 24331 | + var result = {}; | |
| 24332 | + var i = 0; | |
| 24333 | + var key, desc; | |
| 24334 | + while (keys.length > i) { | |
| 24335 | + desc = getDesc(O, key = keys[i++]); | |
| 24336 | + if (desc !== undefined) createProperty(result, key, desc); | |
| 24337 | + } | |
| 24338 | + return result; | |
| 24339 | + } | |
| 24340 | +}); | |
| 24341 | + | |
| 24342 | + | |
| 24343 | +/***/ }), | |
| 24344 | + | |
| 24345 | +/***/ "../node_modules/core-js/library/modules/es7.object.values.js": | |
| 24346 | +/*!********************************************************************!*\ | |
| 24347 | + !*** ../node_modules/core-js/library/modules/es7.object.values.js ***! | |
| 24348 | + \********************************************************************/ | |
| 24349 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 24350 | + | |
| 24351 | +// https://github.com/tc39/proposal-object-values-entries | |
| 24352 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 24353 | +var $values = __webpack_require__(/*! ./_object-to-array */ "../node_modules/core-js/library/modules/_object-to-array.js")(false); | |
| 24354 | + | |
| 24355 | +$export($export.S, 'Object', { | |
| 24356 | + values: function values(it) { | |
| 24357 | + return $values(it); | |
| 24358 | + } | |
| 24359 | +}); | |
| 24360 | + | |
| 24361 | + | |
| 24362 | +/***/ }), | |
| 24363 | + | |
| 24364 | +/***/ "../node_modules/core-js/library/modules/es7.promise.finally.js": | |
| 24365 | +/*!**********************************************************************!*\ | |
| 24366 | + !*** ../node_modules/core-js/library/modules/es7.promise.finally.js ***! | |
| 24367 | + \**********************************************************************/ | |
| 24368 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 24369 | + | |
| 24370 | +"use strict"; | |
| 24371 | +// https://github.com/tc39/proposal-promise-finally | |
| 24372 | + | |
| 24373 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 24374 | +var core = __webpack_require__(/*! ./_core */ "../node_modules/core-js/library/modules/_core.js"); | |
| 24375 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js"); | |
| 24376 | +var speciesConstructor = __webpack_require__(/*! ./_species-constructor */ "../node_modules/core-js/library/modules/_species-constructor.js"); | |
| 24377 | +var promiseResolve = __webpack_require__(/*! ./_promise-resolve */ "../node_modules/core-js/library/modules/_promise-resolve.js"); | |
| 24378 | + | |
| 24379 | +$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) { | |
| 24380 | + var C = speciesConstructor(this, core.Promise || global.Promise); | |
| 24381 | + var isFunction = typeof onFinally == 'function'; | |
| 24382 | + return this.then( | |
| 24383 | + isFunction ? function (x) { | |
| 24384 | + return promiseResolve(C, onFinally()).then(function () { return x; }); | |
| 24385 | + } : onFinally, | |
| 24386 | + isFunction ? function (e) { | |
| 24387 | + return promiseResolve(C, onFinally()).then(function () { throw e; }); | |
| 24388 | + } : onFinally | |
| 24389 | + ); | |
| 24390 | +} }); | |
| 24391 | + | |
| 24392 | + | |
| 24393 | +/***/ }), | |
| 24394 | + | |
| 24395 | +/***/ "../node_modules/core-js/library/modules/es7.promise.try.js": | |
| 24396 | +/*!******************************************************************!*\ | |
| 24397 | + !*** ../node_modules/core-js/library/modules/es7.promise.try.js ***! | |
| 24398 | + \******************************************************************/ | |
| 24399 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 24400 | + | |
| 24401 | +"use strict"; | |
| 24402 | + | |
| 24403 | +// https://github.com/tc39/proposal-promise-try | |
| 24404 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/library/modules/_export.js"); | |
| 24405 | +var newPromiseCapability = __webpack_require__(/*! ./_new-promise-capability */ "../node_modules/core-js/library/modules/_new-promise-capability.js"); | |
| 24406 | +var perform = __webpack_require__(/*! ./_perform */ "../node_modules/core-js/library/modules/_perform.js"); | |
| 24407 | + | |
| 24408 | +$export($export.S, 'Promise', { 'try': function (callbackfn) { | |
| 24409 | + var promiseCapability = newPromiseCapability.f(this); | |
| 24410 | + var result = perform(callbackfn); | |
| 24411 | + (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v); | |
| 24412 | + return promiseCapability.promise; | |
| 24413 | +} }); | |
| 24414 | + | |
| 24415 | + | |
| 24416 | +/***/ }), | |
| 24417 | + | |
| 24418 | +/***/ "../node_modules/core-js/library/modules/es7.symbol.async-iterator.js": | |
| 24419 | +/*!****************************************************************************!*\ | |
| 24420 | + !*** ../node_modules/core-js/library/modules/es7.symbol.async-iterator.js ***! | |
| 24421 | + \****************************************************************************/ | |
| 24422 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 24423 | + | |
| 24424 | +__webpack_require__(/*! ./_wks-define */ "../node_modules/core-js/library/modules/_wks-define.js")('asyncIterator'); | |
| 24425 | + | |
| 24426 | + | |
| 24427 | +/***/ }), | |
| 24428 | + | |
| 24429 | +/***/ "../node_modules/core-js/library/modules/es7.symbol.observable.js": | |
| 24430 | +/*!************************************************************************!*\ | |
| 24431 | + !*** ../node_modules/core-js/library/modules/es7.symbol.observable.js ***! | |
| 24432 | + \************************************************************************/ | |
| 24433 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 24434 | + | |
| 24435 | +__webpack_require__(/*! ./_wks-define */ "../node_modules/core-js/library/modules/_wks-define.js")('observable'); | |
| 24436 | + | |
| 24437 | + | |
| 24438 | +/***/ }), | |
| 24439 | + | |
| 24440 | +/***/ "../node_modules/core-js/library/modules/es7.weak-map.from.js": | |
| 24441 | +/*!********************************************************************!*\ | |
| 24442 | + !*** ../node_modules/core-js/library/modules/es7.weak-map.from.js ***! | |
| 24443 | + \********************************************************************/ | |
| 24444 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 24445 | + | |
| 24446 | +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from | |
| 24447 | +__webpack_require__(/*! ./_set-collection-from */ "../node_modules/core-js/library/modules/_set-collection-from.js")('WeakMap'); | |
| 24448 | + | |
| 24449 | + | |
| 24450 | +/***/ }), | |
| 24451 | + | |
| 24452 | +/***/ "../node_modules/core-js/library/modules/es7.weak-map.of.js": | |
| 24453 | +/*!******************************************************************!*\ | |
| 24454 | + !*** ../node_modules/core-js/library/modules/es7.weak-map.of.js ***! | |
| 24455 | + \******************************************************************/ | |
| 24456 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 24457 | + | |
| 24458 | +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of | |
| 24459 | +__webpack_require__(/*! ./_set-collection-of */ "../node_modules/core-js/library/modules/_set-collection-of.js")('WeakMap'); | |
| 24460 | + | |
| 24461 | + | |
| 24462 | +/***/ }), | |
| 24463 | + | |
| 24464 | +/***/ "../node_modules/core-js/library/modules/web.dom.iterable.js": | |
| 24465 | +/*!*******************************************************************!*\ | |
| 24466 | + !*** ../node_modules/core-js/library/modules/web.dom.iterable.js ***! | |
| 24467 | + \*******************************************************************/ | |
| 24468 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 24469 | + | |
| 24470 | +__webpack_require__(/*! ./es6.array.iterator */ "../node_modules/core-js/library/modules/es6.array.iterator.js"); | |
| 24471 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/library/modules/_global.js"); | |
| 24472 | +var hide = __webpack_require__(/*! ./_hide */ "../node_modules/core-js/library/modules/_hide.js"); | |
| 24473 | +var Iterators = __webpack_require__(/*! ./_iterators */ "../node_modules/core-js/library/modules/_iterators.js"); | |
| 24474 | +var TO_STRING_TAG = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/library/modules/_wks.js")('toStringTag'); | |
| 24475 | + | |
| 24476 | +var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + | |
| 24477 | + 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + | |
| 24478 | + 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + | |
| 24479 | + 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + | |
| 24480 | + 'TextTrackList,TouchList').split(','); | |
| 24481 | + | |
| 24482 | +for (var i = 0; i < DOMIterables.length; i++) { | |
| 24483 | + var NAME = DOMIterables[i]; | |
| 24484 | + var Collection = global[NAME]; | |
| 24485 | + var proto = Collection && Collection.prototype; | |
| 24486 | + if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); | |
| 24487 | + Iterators[NAME] = Iterators.Array; | |
| 1272 | 24488 | } |
| 1273 | -module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1274 | 24489 | |
| 24490 | + | |
| 1275 | 24491 | /***/ }), |
| 1276 | 24492 | |
| 1277 | -/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": | |
| 24493 | +/***/ "../node_modules/core-js/modules/_a-function.js": | |
| 24494 | +/*!******************************************************!*\ | |
| 24495 | + !*** ../node_modules/core-js/modules/_a-function.js ***! | |
| 24496 | + \******************************************************/ | |
| 24497 | +/***/ ((module) => { | |
| 24498 | + | |
| 24499 | +module.exports = function (it) { | |
| 24500 | + if (typeof it != 'function') throw TypeError(it + ' is not a function!'); | |
| 24501 | + return it; | |
| 24502 | +}; | |
| 24503 | + | |
| 24504 | + | |
| 24505 | +/***/ }), | |
| 24506 | + | |
| 24507 | +/***/ "../node_modules/core-js/modules/_add-to-unscopables.js": | |
| 24508 | +/*!**************************************************************!*\ | |
| 24509 | + !*** ../node_modules/core-js/modules/_add-to-unscopables.js ***! | |
| 24510 | + \**************************************************************/ | |
| 24511 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 24512 | + | |
| 24513 | +// 22.1.3.31 Array.prototype[@@unscopables] | |
| 24514 | +var UNSCOPABLES = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js")('unscopables'); | |
| 24515 | +var ArrayProto = Array.prototype; | |
| 24516 | +if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(/*! ./_hide */ "../node_modules/core-js/modules/_hide.js")(ArrayProto, UNSCOPABLES, {}); | |
| 24517 | +module.exports = function (key) { | |
| 24518 | + ArrayProto[UNSCOPABLES][key] = true; | |
| 24519 | +}; | |
| 24520 | + | |
| 24521 | + | |
| 24522 | +/***/ }), | |
| 24523 | + | |
| 24524 | +/***/ "../node_modules/core-js/modules/_advance-string-index.js": | |
| 1278 | 24525 | /*!****************************************************************!*\ |
| 1279 | - !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! | |
| 24526 | + !*** ../node_modules/core-js/modules/_advance-string-index.js ***! | |
| 1280 | 24527 | \****************************************************************/ |
| 1281 | 24528 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1282 | 24529 | |
| 1283 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 1284 | -function _defineProperty(e, r, t) { | |
| 1285 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 1286 | - value: t, | |
| 1287 | - enumerable: !0, | |
| 1288 | - configurable: !0, | |
| 1289 | - writable: !0 | |
| 1290 | - }) : e[r] = t, e; | |
| 1291 | -} | |
| 1292 | -module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 24530 | +"use strict"; | |
| 1293 | 24531 | |
| 24532 | +var at = __webpack_require__(/*! ./_string-at */ "../node_modules/core-js/modules/_string-at.js")(true); | |
| 24533 | + | |
| 24534 | + // `AdvanceStringIndex` abstract operation | |
| 24535 | +// https://tc39.github.io/ecma262/#sec-advancestringindex | |
| 24536 | +module.exports = function (S, index, unicode) { | |
| 24537 | + return index + (unicode ? at(S, index).length : 1); | |
| 24538 | +}; | |
| 24539 | + | |
| 24540 | + | |
| 1294 | 24541 | /***/ }), |
| 1295 | 24542 | |
| 1296 | -/***/ "../node_modules/@babel/runtime/helpers/get.js": | |
| 24543 | +/***/ "../node_modules/core-js/modules/_an-object.js": | |
| 1297 | 24544 | /*!*****************************************************!*\ |
| 1298 | - !*** ../node_modules/@babel/runtime/helpers/get.js ***! | |
| 24545 | + !*** ../node_modules/core-js/modules/_an-object.js ***! | |
| 1299 | 24546 | \*****************************************************/ |
| 1300 | 24547 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1301 | 24548 | |
| 1302 | -var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); | |
| 1303 | -function _get() { | |
| 1304 | - return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { | |
| 1305 | - var p = superPropBase(e, t); | |
| 1306 | - if (p) { | |
| 1307 | - var n = Object.getOwnPropertyDescriptor(p, t); | |
| 1308 | - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; | |
| 24549 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/modules/_is-object.js"); | |
| 24550 | +module.exports = function (it) { | |
| 24551 | + if (!isObject(it)) throw TypeError(it + ' is not an object!'); | |
| 24552 | + return it; | |
| 24553 | +}; | |
| 24554 | + | |
| 24555 | + | |
| 24556 | +/***/ }), | |
| 24557 | + | |
| 24558 | +/***/ "../node_modules/core-js/modules/_array-includes.js": | |
| 24559 | +/*!**********************************************************!*\ | |
| 24560 | + !*** ../node_modules/core-js/modules/_array-includes.js ***! | |
| 24561 | + \**********************************************************/ | |
| 24562 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 24563 | + | |
| 24564 | +// false -> Array#indexOf | |
| 24565 | +// true -> Array#includes | |
| 24566 | +var toIObject = __webpack_require__(/*! ./_to-iobject */ "../node_modules/core-js/modules/_to-iobject.js"); | |
| 24567 | +var toLength = __webpack_require__(/*! ./_to-length */ "../node_modules/core-js/modules/_to-length.js"); | |
| 24568 | +var toAbsoluteIndex = __webpack_require__(/*! ./_to-absolute-index */ "../node_modules/core-js/modules/_to-absolute-index.js"); | |
| 24569 | +module.exports = function (IS_INCLUDES) { | |
| 24570 | + return function ($this, el, fromIndex) { | |
| 24571 | + var O = toIObject($this); | |
| 24572 | + var length = toLength(O.length); | |
| 24573 | + var index = toAbsoluteIndex(fromIndex, length); | |
| 24574 | + var value; | |
| 24575 | + // Array#includes uses SameValueZero equality algorithm | |
| 24576 | + // eslint-disable-next-line no-self-compare | |
| 24577 | + if (IS_INCLUDES && el != el) while (length > index) { | |
| 24578 | + value = O[index++]; | |
| 24579 | + // eslint-disable-next-line no-self-compare | |
| 24580 | + if (value != value) return true; | |
| 24581 | + // Array#indexOf ignores holes, Array#includes - not | |
| 24582 | + } else for (;length > index; index++) if (IS_INCLUDES || index in O) { | |
| 24583 | + if (O[index] === el) return IS_INCLUDES || index || 0; | |
| 24584 | + } return !IS_INCLUDES && -1; | |
| 24585 | + }; | |
| 24586 | +}; | |
| 24587 | + | |
| 24588 | + | |
| 24589 | +/***/ }), | |
| 24590 | + | |
| 24591 | +/***/ "../node_modules/core-js/modules/_array-methods.js": | |
| 24592 | +/*!*********************************************************!*\ | |
| 24593 | + !*** ../node_modules/core-js/modules/_array-methods.js ***! | |
| 24594 | + \*********************************************************/ | |
| 24595 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 24596 | + | |
| 24597 | +// 0 -> Array#forEach | |
| 24598 | +// 1 -> Array#map | |
| 24599 | +// 2 -> Array#filter | |
| 24600 | +// 3 -> Array#some | |
| 24601 | +// 4 -> Array#every | |
| 24602 | +// 5 -> Array#find | |
| 24603 | +// 6 -> Array#findIndex | |
| 24604 | +var ctx = __webpack_require__(/*! ./_ctx */ "../node_modules/core-js/modules/_ctx.js"); | |
| 24605 | +var IObject = __webpack_require__(/*! ./_iobject */ "../node_modules/core-js/modules/_iobject.js"); | |
| 24606 | +var toObject = __webpack_require__(/*! ./_to-object */ "../node_modules/core-js/modules/_to-object.js"); | |
| 24607 | +var toLength = __webpack_require__(/*! ./_to-length */ "../node_modules/core-js/modules/_to-length.js"); | |
| 24608 | +var asc = __webpack_require__(/*! ./_array-species-create */ "../node_modules/core-js/modules/_array-species-create.js"); | |
| 24609 | +module.exports = function (TYPE, $create) { | |
| 24610 | + var IS_MAP = TYPE == 1; | |
| 24611 | + var IS_FILTER = TYPE == 2; | |
| 24612 | + var IS_SOME = TYPE == 3; | |
| 24613 | + var IS_EVERY = TYPE == 4; | |
| 24614 | + var IS_FIND_INDEX = TYPE == 6; | |
| 24615 | + var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; | |
| 24616 | + var create = $create || asc; | |
| 24617 | + return function ($this, callbackfn, that) { | |
| 24618 | + var O = toObject($this); | |
| 24619 | + var self = IObject(O); | |
| 24620 | + var f = ctx(callbackfn, that, 3); | |
| 24621 | + var length = toLength(self.length); | |
| 24622 | + var index = 0; | |
| 24623 | + var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; | |
| 24624 | + var val, res; | |
| 24625 | + for (;length > index; index++) if (NO_HOLES || index in self) { | |
| 24626 | + val = self[index]; | |
| 24627 | + res = f(val, index, O); | |
| 24628 | + if (TYPE) { | |
| 24629 | + if (IS_MAP) result[index] = res; // map | |
| 24630 | + else if (res) switch (TYPE) { | |
| 24631 | + case 3: return true; // some | |
| 24632 | + case 5: return val; // find | |
| 24633 | + case 6: return index; // findIndex | |
| 24634 | + case 2: result.push(val); // filter | |
| 24635 | + } else if (IS_EVERY) return false; // every | |
| 24636 | + } | |
| 1309 | 24637 | } |
| 1310 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments); | |
| 1311 | -} | |
| 1312 | -module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 24638 | + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; | |
| 24639 | + }; | |
| 24640 | +}; | |
| 1313 | 24641 | |
| 24642 | + | |
| 1314 | 24643 | /***/ }), |
| 1315 | 24644 | |
| 1316 | -/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": | |
| 24645 | +/***/ "../node_modules/core-js/modules/_array-species-constructor.js": | |
| 24646 | +/*!*********************************************************************!*\ | |
| 24647 | + !*** ../node_modules/core-js/modules/_array-species-constructor.js ***! | |
| 24648 | + \*********************************************************************/ | |
| 24649 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 24650 | + | |
| 24651 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/modules/_is-object.js"); | |
| 24652 | +var isArray = __webpack_require__(/*! ./_is-array */ "../node_modules/core-js/modules/_is-array.js"); | |
| 24653 | +var SPECIES = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js")('species'); | |
| 24654 | + | |
| 24655 | +module.exports = function (original) { | |
| 24656 | + var C; | |
| 24657 | + if (isArray(original)) { | |
| 24658 | + C = original.constructor; | |
| 24659 | + // cross-realm fallback | |
| 24660 | + if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; | |
| 24661 | + if (isObject(C)) { | |
| 24662 | + C = C[SPECIES]; | |
| 24663 | + if (C === null) C = undefined; | |
| 24664 | + } | |
| 24665 | + } return C === undefined ? Array : C; | |
| 24666 | +}; | |
| 24667 | + | |
| 24668 | + | |
| 24669 | +/***/ }), | |
| 24670 | + | |
| 24671 | +/***/ "../node_modules/core-js/modules/_array-species-create.js": | |
| 1317 | 24672 | /*!****************************************************************!*\ |
| 1318 | - !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! | |
| 24673 | + !*** ../node_modules/core-js/modules/_array-species-create.js ***! | |
| 1319 | 24674 | \****************************************************************/ |
| 24675 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 24676 | + | |
| 24677 | +// 9.4.2.3 ArraySpeciesCreate(originalArray, length) | |
| 24678 | +var speciesConstructor = __webpack_require__(/*! ./_array-species-constructor */ "../node_modules/core-js/modules/_array-species-constructor.js"); | |
| 24679 | + | |
| 24680 | +module.exports = function (original, length) { | |
| 24681 | + return new (speciesConstructor(original))(length); | |
| 24682 | +}; | |
| 24683 | + | |
| 24684 | + | |
| 24685 | +/***/ }), | |
| 24686 | + | |
| 24687 | +/***/ "../node_modules/core-js/modules/_classof.js": | |
| 24688 | +/*!***************************************************!*\ | |
| 24689 | + !*** ../node_modules/core-js/modules/_classof.js ***! | |
| 24690 | + \***************************************************/ | |
| 24691 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 24692 | + | |
| 24693 | +// getting tag from 19.1.3.6 Object.prototype.toString() | |
| 24694 | +var cof = __webpack_require__(/*! ./_cof */ "../node_modules/core-js/modules/_cof.js"); | |
| 24695 | +var TAG = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js")('toStringTag'); | |
| 24696 | +// ES3 wrong here | |
| 24697 | +var ARG = cof(function () { return arguments; }()) == 'Arguments'; | |
| 24698 | + | |
| 24699 | +// fallback for IE11 Script Access Denied error | |
| 24700 | +var tryGet = function (it, key) { | |
| 24701 | + try { | |
| 24702 | + return it[key]; | |
| 24703 | + } catch (e) { /* empty */ } | |
| 24704 | +}; | |
| 24705 | + | |
| 24706 | +module.exports = function (it) { | |
| 24707 | + var O, T, B; | |
| 24708 | + return it === undefined ? 'Undefined' : it === null ? 'Null' | |
| 24709 | + // @@toStringTag case | |
| 24710 | + : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T | |
| 24711 | + // builtinTag case | |
| 24712 | + : ARG ? cof(O) | |
| 24713 | + // ES3 arguments fallback | |
| 24714 | + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; | |
| 24715 | +}; | |
| 24716 | + | |
| 24717 | + | |
| 24718 | +/***/ }), | |
| 24719 | + | |
| 24720 | +/***/ "../node_modules/core-js/modules/_cof.js": | |
| 24721 | +/*!***********************************************!*\ | |
| 24722 | + !*** ../node_modules/core-js/modules/_cof.js ***! | |
| 24723 | + \***********************************************/ | |
| 1320 | 24724 | /***/ ((module) => { |
| 1321 | 24725 | |
| 1322 | -function _getPrototypeOf(t) { | |
| 1323 | - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | |
| 1324 | - return t.__proto__ || Object.getPrototypeOf(t); | |
| 1325 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); | |
| 1326 | -} | |
| 1327 | -module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 24726 | +var toString = {}.toString; | |
| 1328 | 24727 | |
| 24728 | +module.exports = function (it) { | |
| 24729 | + return toString.call(it).slice(8, -1); | |
| 24730 | +}; | |
| 24731 | + | |
| 24732 | + | |
| 1329 | 24733 | /***/ }), |
| 1330 | 24734 | |
| 1331 | -/***/ "../node_modules/@babel/runtime/helpers/inherits.js": | |
| 1332 | -/*!**********************************************************!*\ | |
| 1333 | - !*** ../node_modules/@babel/runtime/helpers/inherits.js ***! | |
| 1334 | - \**********************************************************/ | |
| 24735 | +/***/ "../node_modules/core-js/modules/_core.js": | |
| 24736 | +/*!************************************************!*\ | |
| 24737 | + !*** ../node_modules/core-js/modules/_core.js ***! | |
| 24738 | + \************************************************/ | |
| 24739 | +/***/ ((module) => { | |
| 24740 | + | |
| 24741 | +var core = module.exports = { version: '2.6.12' }; | |
| 24742 | +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef | |
| 24743 | + | |
| 24744 | + | |
| 24745 | +/***/ }), | |
| 24746 | + | |
| 24747 | +/***/ "../node_modules/core-js/modules/_ctx.js": | |
| 24748 | +/*!***********************************************!*\ | |
| 24749 | + !*** ../node_modules/core-js/modules/_ctx.js ***! | |
| 24750 | + \***********************************************/ | |
| 1335 | 24751 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1336 | 24752 | |
| 1337 | -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 1338 | -function _inherits(t, e) { | |
| 1339 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 1340 | - t.prototype = Object.create(e && e.prototype, { | |
| 1341 | - constructor: { | |
| 1342 | - value: t, | |
| 1343 | - writable: !0, | |
| 1344 | - configurable: !0 | |
| 1345 | - } | |
| 1346 | - }), Object.defineProperty(t, "prototype", { | |
| 1347 | - writable: !1 | |
| 1348 | - }), e && setPrototypeOf(t, e); | |
| 1349 | -} | |
| 1350 | -module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 24753 | +// optional / simple context binding | |
| 24754 | +var aFunction = __webpack_require__(/*! ./_a-function */ "../node_modules/core-js/modules/_a-function.js"); | |
| 24755 | +module.exports = function (fn, that, length) { | |
| 24756 | + aFunction(fn); | |
| 24757 | + if (that === undefined) return fn; | |
| 24758 | + switch (length) { | |
| 24759 | + case 1: return function (a) { | |
| 24760 | + return fn.call(that, a); | |
| 24761 | + }; | |
| 24762 | + case 2: return function (a, b) { | |
| 24763 | + return fn.call(that, a, b); | |
| 24764 | + }; | |
| 24765 | + case 3: return function (a, b, c) { | |
| 24766 | + return fn.call(that, a, b, c); | |
| 24767 | + }; | |
| 24768 | + } | |
| 24769 | + return function (/* ...args */) { | |
| 24770 | + return fn.apply(that, arguments); | |
| 24771 | + }; | |
| 24772 | +}; | |
| 1351 | 24773 | |
| 24774 | + | |
| 1352 | 24775 | /***/ }), |
| 1353 | 24776 | |
| 1354 | -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 1355 | -/*!***********************************************************************!*\ | |
| 1356 | - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 1357 | - \***********************************************************************/ | |
| 24777 | +/***/ "../node_modules/core-js/modules/_defined.js": | |
| 24778 | +/*!***************************************************!*\ | |
| 24779 | + !*** ../node_modules/core-js/modules/_defined.js ***! | |
| 24780 | + \***************************************************/ | |
| 1358 | 24781 | /***/ ((module) => { |
| 1359 | 24782 | |
| 1360 | -function _interopRequireDefault(e) { | |
| 1361 | - return e && e.__esModule ? e : { | |
| 1362 | - "default": e | |
| 1363 | - }; | |
| 1364 | -} | |
| 1365 | -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 24783 | +// 7.2.1 RequireObjectCoercible(argument) | |
| 24784 | +module.exports = function (it) { | |
| 24785 | + if (it == undefined) throw TypeError("Can't call method on " + it); | |
| 24786 | + return it; | |
| 24787 | +}; | |
| 1366 | 24788 | |
| 24789 | + | |
| 1367 | 24790 | /***/ }), |
| 1368 | 24791 | |
| 1369 | -/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": | |
| 1370 | -/*!**********************************************************************!*\ | |
| 1371 | - !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! | |
| 1372 | - \**********************************************************************/ | |
| 24792 | +/***/ "../node_modules/core-js/modules/_descriptors.js": | |
| 24793 | +/*!*******************************************************!*\ | |
| 24794 | + !*** ../node_modules/core-js/modules/_descriptors.js ***! | |
| 24795 | + \*******************************************************/ | |
| 24796 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 24797 | + | |
| 24798 | +// Thank's IE8 for his funny defineProperty | |
| 24799 | +module.exports = !__webpack_require__(/*! ./_fails */ "../node_modules/core-js/modules/_fails.js")(function () { | |
| 24800 | + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; | |
| 24801 | +}); | |
| 24802 | + | |
| 24803 | + | |
| 24804 | +/***/ }), | |
| 24805 | + | |
| 24806 | +/***/ "../node_modules/core-js/modules/_dom-create.js": | |
| 24807 | +/*!******************************************************!*\ | |
| 24808 | + !*** ../node_modules/core-js/modules/_dom-create.js ***! | |
| 24809 | + \******************************************************/ | |
| 24810 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 24811 | + | |
| 24812 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/modules/_is-object.js"); | |
| 24813 | +var document = __webpack_require__(/*! ./_global */ "../node_modules/core-js/modules/_global.js").document; | |
| 24814 | +// typeof document.createElement is 'object' in old IE | |
| 24815 | +var is = isObject(document) && isObject(document.createElement); | |
| 24816 | +module.exports = function (it) { | |
| 24817 | + return is ? document.createElement(it) : {}; | |
| 24818 | +}; | |
| 24819 | + | |
| 24820 | + | |
| 24821 | +/***/ }), | |
| 24822 | + | |
| 24823 | +/***/ "../node_modules/core-js/modules/_enum-bug-keys.js": | |
| 24824 | +/*!*********************************************************!*\ | |
| 24825 | + !*** ../node_modules/core-js/modules/_enum-bug-keys.js ***! | |
| 24826 | + \*********************************************************/ | |
| 1373 | 24827 | /***/ ((module) => { |
| 1374 | 24828 | |
| 1375 | -function _iterableToArrayLimit(r, l) { | |
| 1376 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 1377 | - if (null != t) { | |
| 1378 | - var e, | |
| 1379 | - n, | |
| 1380 | - i, | |
| 1381 | - u, | |
| 1382 | - a = [], | |
| 1383 | - f = !0, | |
| 1384 | - o = !1; | |
| 24829 | +// IE 8- don't enum bug keys | |
| 24830 | +module.exports = ( | |
| 24831 | + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' | |
| 24832 | +).split(','); | |
| 24833 | + | |
| 24834 | + | |
| 24835 | +/***/ }), | |
| 24836 | + | |
| 24837 | +/***/ "../node_modules/core-js/modules/_export.js": | |
| 24838 | +/*!**************************************************!*\ | |
| 24839 | + !*** ../node_modules/core-js/modules/_export.js ***! | |
| 24840 | + \**************************************************/ | |
| 24841 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 24842 | + | |
| 24843 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/modules/_global.js"); | |
| 24844 | +var core = __webpack_require__(/*! ./_core */ "../node_modules/core-js/modules/_core.js"); | |
| 24845 | +var hide = __webpack_require__(/*! ./_hide */ "../node_modules/core-js/modules/_hide.js"); | |
| 24846 | +var redefine = __webpack_require__(/*! ./_redefine */ "../node_modules/core-js/modules/_redefine.js"); | |
| 24847 | +var ctx = __webpack_require__(/*! ./_ctx */ "../node_modules/core-js/modules/_ctx.js"); | |
| 24848 | +var PROTOTYPE = 'prototype'; | |
| 24849 | + | |
| 24850 | +var $export = function (type, name, source) { | |
| 24851 | + var IS_FORCED = type & $export.F; | |
| 24852 | + var IS_GLOBAL = type & $export.G; | |
| 24853 | + var IS_STATIC = type & $export.S; | |
| 24854 | + var IS_PROTO = type & $export.P; | |
| 24855 | + var IS_BIND = type & $export.B; | |
| 24856 | + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; | |
| 24857 | + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); | |
| 24858 | + var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); | |
| 24859 | + var key, own, out, exp; | |
| 24860 | + if (IS_GLOBAL) source = name; | |
| 24861 | + for (key in source) { | |
| 24862 | + // contains in native | |
| 24863 | + own = !IS_FORCED && target && target[key] !== undefined; | |
| 24864 | + // export native or passed | |
| 24865 | + out = (own ? target : source)[key]; | |
| 24866 | + // bind timers to global for call from export context | |
| 24867 | + exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; | |
| 24868 | + // extend global | |
| 24869 | + if (target) redefine(target, key, out, type & $export.U); | |
| 24870 | + // export | |
| 24871 | + if (exports[key] != out) hide(exports, key, exp); | |
| 24872 | + if (IS_PROTO && expProto[key] != out) expProto[key] = out; | |
| 24873 | + } | |
| 24874 | +}; | |
| 24875 | +global.core = core; | |
| 24876 | +// type bitmap | |
| 24877 | +$export.F = 1; // forced | |
| 24878 | +$export.G = 2; // global | |
| 24879 | +$export.S = 4; // static | |
| 24880 | +$export.P = 8; // proto | |
| 24881 | +$export.B = 16; // bind | |
| 24882 | +$export.W = 32; // wrap | |
| 24883 | +$export.U = 64; // safe | |
| 24884 | +$export.R = 128; // real proto method for `library` | |
| 24885 | +module.exports = $export; | |
| 24886 | + | |
| 24887 | + | |
| 24888 | +/***/ }), | |
| 24889 | + | |
| 24890 | +/***/ "../node_modules/core-js/modules/_fails-is-regexp.js": | |
| 24891 | +/*!***********************************************************!*\ | |
| 24892 | + !*** ../node_modules/core-js/modules/_fails-is-regexp.js ***! | |
| 24893 | + \***********************************************************/ | |
| 24894 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 24895 | + | |
| 24896 | +var MATCH = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js")('match'); | |
| 24897 | +module.exports = function (KEY) { | |
| 24898 | + var re = /./; | |
| 24899 | + try { | |
| 24900 | + '/./'[KEY](re); | |
| 24901 | + } catch (e) { | |
| 1385 | 24902 | try { |
| 1386 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 1387 | - if (Object(t) !== t) return; | |
| 1388 | - f = !1; | |
| 1389 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 1390 | - } catch (r) { | |
| 1391 | - o = !0, n = r; | |
| 1392 | - } finally { | |
| 1393 | - try { | |
| 1394 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 1395 | - } finally { | |
| 1396 | - if (o) throw n; | |
| 24903 | + re[MATCH] = false; | |
| 24904 | + return !'/./'[KEY](re); | |
| 24905 | + } catch (f) { /* empty */ } | |
| 24906 | + } return true; | |
| 24907 | +}; | |
| 24908 | + | |
| 24909 | + | |
| 24910 | +/***/ }), | |
| 24911 | + | |
| 24912 | +/***/ "../node_modules/core-js/modules/_fails.js": | |
| 24913 | +/*!*************************************************!*\ | |
| 24914 | + !*** ../node_modules/core-js/modules/_fails.js ***! | |
| 24915 | + \*************************************************/ | |
| 24916 | +/***/ ((module) => { | |
| 24917 | + | |
| 24918 | +module.exports = function (exec) { | |
| 24919 | + try { | |
| 24920 | + return !!exec(); | |
| 24921 | + } catch (e) { | |
| 24922 | + return true; | |
| 24923 | + } | |
| 24924 | +}; | |
| 24925 | + | |
| 24926 | + | |
| 24927 | +/***/ }), | |
| 24928 | + | |
| 24929 | +/***/ "../node_modules/core-js/modules/_fix-re-wks.js": | |
| 24930 | +/*!******************************************************!*\ | |
| 24931 | + !*** ../node_modules/core-js/modules/_fix-re-wks.js ***! | |
| 24932 | + \******************************************************/ | |
| 24933 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 24934 | + | |
| 24935 | +"use strict"; | |
| 24936 | + | |
| 24937 | +__webpack_require__(/*! ./es6.regexp.exec */ "../node_modules/core-js/modules/es6.regexp.exec.js"); | |
| 24938 | +var redefine = __webpack_require__(/*! ./_redefine */ "../node_modules/core-js/modules/_redefine.js"); | |
| 24939 | +var hide = __webpack_require__(/*! ./_hide */ "../node_modules/core-js/modules/_hide.js"); | |
| 24940 | +var fails = __webpack_require__(/*! ./_fails */ "../node_modules/core-js/modules/_fails.js"); | |
| 24941 | +var defined = __webpack_require__(/*! ./_defined */ "../node_modules/core-js/modules/_defined.js"); | |
| 24942 | +var wks = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js"); | |
| 24943 | +var regexpExec = __webpack_require__(/*! ./_regexp-exec */ "../node_modules/core-js/modules/_regexp-exec.js"); | |
| 24944 | + | |
| 24945 | +var SPECIES = wks('species'); | |
| 24946 | + | |
| 24947 | +var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { | |
| 24948 | + // #replace needs built-in support for named groups. | |
| 24949 | + // #match works fine because it just return the exec results, even if it has | |
| 24950 | + // a "grops" property. | |
| 24951 | + var re = /./; | |
| 24952 | + re.exec = function () { | |
| 24953 | + var result = []; | |
| 24954 | + result.groups = { a: '7' }; | |
| 24955 | + return result; | |
| 24956 | + }; | |
| 24957 | + return ''.replace(re, '$<a>') !== '7'; | |
| 24958 | +}); | |
| 24959 | + | |
| 24960 | +var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () { | |
| 24961 | + // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec | |
| 24962 | + var re = /(?:)/; | |
| 24963 | + var originalExec = re.exec; | |
| 24964 | + re.exec = function () { return originalExec.apply(this, arguments); }; | |
| 24965 | + var result = 'ab'.split(re); | |
| 24966 | + return result.length === 2 && result[0] === 'a' && result[1] === 'b'; | |
| 24967 | +})(); | |
| 24968 | + | |
| 24969 | +module.exports = function (KEY, length, exec) { | |
| 24970 | + var SYMBOL = wks(KEY); | |
| 24971 | + | |
| 24972 | + var DELEGATES_TO_SYMBOL = !fails(function () { | |
| 24973 | + // String methods call symbol-named RegEp methods | |
| 24974 | + var O = {}; | |
| 24975 | + O[SYMBOL] = function () { return 7; }; | |
| 24976 | + return ''[KEY](O) != 7; | |
| 24977 | + }); | |
| 24978 | + | |
| 24979 | + var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () { | |
| 24980 | + // Symbol-named RegExp methods call .exec | |
| 24981 | + var execCalled = false; | |
| 24982 | + var re = /a/; | |
| 24983 | + re.exec = function () { execCalled = true; return null; }; | |
| 24984 | + if (KEY === 'split') { | |
| 24985 | + // RegExp[@@split] doesn't call the regex's exec method, but first creates | |
| 24986 | + // a new one. We need to return the patched regex when creating the new one. | |
| 24987 | + re.constructor = {}; | |
| 24988 | + re.constructor[SPECIES] = function () { return re; }; | |
| 24989 | + } | |
| 24990 | + re[SYMBOL](''); | |
| 24991 | + return !execCalled; | |
| 24992 | + }) : undefined; | |
| 24993 | + | |
| 24994 | + if ( | |
| 24995 | + !DELEGATES_TO_SYMBOL || | |
| 24996 | + !DELEGATES_TO_EXEC || | |
| 24997 | + (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) || | |
| 24998 | + (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) | |
| 24999 | + ) { | |
| 25000 | + var nativeRegExpMethod = /./[SYMBOL]; | |
| 25001 | + var fns = exec( | |
| 25002 | + defined, | |
| 25003 | + SYMBOL, | |
| 25004 | + ''[KEY], | |
| 25005 | + function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) { | |
| 25006 | + if (regexp.exec === regexpExec) { | |
| 25007 | + if (DELEGATES_TO_SYMBOL && !forceStringMethod) { | |
| 25008 | + // The native String method already delegates to @@method (this | |
| 25009 | + // polyfilled function), leasing to infinite recursion. | |
| 25010 | + // We avoid it by directly calling the native @@method method. | |
| 25011 | + return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) }; | |
| 25012 | + } | |
| 25013 | + return { done: true, value: nativeMethod.call(str, regexp, arg2) }; | |
| 25014 | + } | |
| 25015 | + return { done: false }; | |
| 1397 | 25016 | } |
| 25017 | + ); | |
| 25018 | + var strfn = fns[0]; | |
| 25019 | + var rxfn = fns[1]; | |
| 25020 | + | |
| 25021 | + redefine(String.prototype, KEY, strfn); | |
| 25022 | + hide(RegExp.prototype, SYMBOL, length == 2 | |
| 25023 | + // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) | |
| 25024 | + // 21.2.5.11 RegExp.prototype[@@split](string, limit) | |
| 25025 | + ? function (string, arg) { return rxfn.call(string, this, arg); } | |
| 25026 | + // 21.2.5.6 RegExp.prototype[@@match](string) | |
| 25027 | + // 21.2.5.9 RegExp.prototype[@@search](string) | |
| 25028 | + : function (string) { return rxfn.call(string, this); } | |
| 25029 | + ); | |
| 25030 | + } | |
| 25031 | +}; | |
| 25032 | + | |
| 25033 | + | |
| 25034 | +/***/ }), | |
| 25035 | + | |
| 25036 | +/***/ "../node_modules/core-js/modules/_flags.js": | |
| 25037 | +/*!*************************************************!*\ | |
| 25038 | + !*** ../node_modules/core-js/modules/_flags.js ***! | |
| 25039 | + \*************************************************/ | |
| 25040 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25041 | + | |
| 25042 | +"use strict"; | |
| 25043 | + | |
| 25044 | +// 21.2.5.3 get RegExp.prototype.flags | |
| 25045 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/modules/_an-object.js"); | |
| 25046 | +module.exports = function () { | |
| 25047 | + var that = anObject(this); | |
| 25048 | + var result = ''; | |
| 25049 | + if (that.global) result += 'g'; | |
| 25050 | + if (that.ignoreCase) result += 'i'; | |
| 25051 | + if (that.multiline) result += 'm'; | |
| 25052 | + if (that.unicode) result += 'u'; | |
| 25053 | + if (that.sticky) result += 'y'; | |
| 25054 | + return result; | |
| 25055 | +}; | |
| 25056 | + | |
| 25057 | + | |
| 25058 | +/***/ }), | |
| 25059 | + | |
| 25060 | +/***/ "../node_modules/core-js/modules/_function-to-string.js": | |
| 25061 | +/*!**************************************************************!*\ | |
| 25062 | + !*** ../node_modules/core-js/modules/_function-to-string.js ***! | |
| 25063 | + \**************************************************************/ | |
| 25064 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25065 | + | |
| 25066 | +module.exports = __webpack_require__(/*! ./_shared */ "../node_modules/core-js/modules/_shared.js")('native-function-to-string', Function.toString); | |
| 25067 | + | |
| 25068 | + | |
| 25069 | +/***/ }), | |
| 25070 | + | |
| 25071 | +/***/ "../node_modules/core-js/modules/_global.js": | |
| 25072 | +/*!**************************************************!*\ | |
| 25073 | + !*** ../node_modules/core-js/modules/_global.js ***! | |
| 25074 | + \**************************************************/ | |
| 25075 | +/***/ ((module) => { | |
| 25076 | + | |
| 25077 | +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | |
| 25078 | +var global = module.exports = typeof window != 'undefined' && window.Math == Math | |
| 25079 | + ? window : typeof self != 'undefined' && self.Math == Math ? self | |
| 25080 | + // eslint-disable-next-line no-new-func | |
| 25081 | + : Function('return this')(); | |
| 25082 | +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef | |
| 25083 | + | |
| 25084 | + | |
| 25085 | +/***/ }), | |
| 25086 | + | |
| 25087 | +/***/ "../node_modules/core-js/modules/_has.js": | |
| 25088 | +/*!***********************************************!*\ | |
| 25089 | + !*** ../node_modules/core-js/modules/_has.js ***! | |
| 25090 | + \***********************************************/ | |
| 25091 | +/***/ ((module) => { | |
| 25092 | + | |
| 25093 | +var hasOwnProperty = {}.hasOwnProperty; | |
| 25094 | +module.exports = function (it, key) { | |
| 25095 | + return hasOwnProperty.call(it, key); | |
| 25096 | +}; | |
| 25097 | + | |
| 25098 | + | |
| 25099 | +/***/ }), | |
| 25100 | + | |
| 25101 | +/***/ "../node_modules/core-js/modules/_hide.js": | |
| 25102 | +/*!************************************************!*\ | |
| 25103 | + !*** ../node_modules/core-js/modules/_hide.js ***! | |
| 25104 | + \************************************************/ | |
| 25105 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25106 | + | |
| 25107 | +var dP = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/modules/_object-dp.js"); | |
| 25108 | +var createDesc = __webpack_require__(/*! ./_property-desc */ "../node_modules/core-js/modules/_property-desc.js"); | |
| 25109 | +module.exports = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/modules/_descriptors.js") ? function (object, key, value) { | |
| 25110 | + return dP.f(object, key, createDesc(1, value)); | |
| 25111 | +} : function (object, key, value) { | |
| 25112 | + object[key] = value; | |
| 25113 | + return object; | |
| 25114 | +}; | |
| 25115 | + | |
| 25116 | + | |
| 25117 | +/***/ }), | |
| 25118 | + | |
| 25119 | +/***/ "../node_modules/core-js/modules/_html.js": | |
| 25120 | +/*!************************************************!*\ | |
| 25121 | + !*** ../node_modules/core-js/modules/_html.js ***! | |
| 25122 | + \************************************************/ | |
| 25123 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25124 | + | |
| 25125 | +var document = __webpack_require__(/*! ./_global */ "../node_modules/core-js/modules/_global.js").document; | |
| 25126 | +module.exports = document && document.documentElement; | |
| 25127 | + | |
| 25128 | + | |
| 25129 | +/***/ }), | |
| 25130 | + | |
| 25131 | +/***/ "../node_modules/core-js/modules/_ie8-dom-define.js": | |
| 25132 | +/*!**********************************************************!*\ | |
| 25133 | + !*** ../node_modules/core-js/modules/_ie8-dom-define.js ***! | |
| 25134 | + \**********************************************************/ | |
| 25135 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25136 | + | |
| 25137 | +module.exports = !__webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/modules/_descriptors.js") && !__webpack_require__(/*! ./_fails */ "../node_modules/core-js/modules/_fails.js")(function () { | |
| 25138 | + return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ "../node_modules/core-js/modules/_dom-create.js")('div'), 'a', { get: function () { return 7; } }).a != 7; | |
| 25139 | +}); | |
| 25140 | + | |
| 25141 | + | |
| 25142 | +/***/ }), | |
| 25143 | + | |
| 25144 | +/***/ "../node_modules/core-js/modules/_inherit-if-required.js": | |
| 25145 | +/*!***************************************************************!*\ | |
| 25146 | + !*** ../node_modules/core-js/modules/_inherit-if-required.js ***! | |
| 25147 | + \***************************************************************/ | |
| 25148 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25149 | + | |
| 25150 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/modules/_is-object.js"); | |
| 25151 | +var setPrototypeOf = __webpack_require__(/*! ./_set-proto */ "../node_modules/core-js/modules/_set-proto.js").set; | |
| 25152 | +module.exports = function (that, target, C) { | |
| 25153 | + var S = target.constructor; | |
| 25154 | + var P; | |
| 25155 | + if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { | |
| 25156 | + setPrototypeOf(that, P); | |
| 25157 | + } return that; | |
| 25158 | +}; | |
| 25159 | + | |
| 25160 | + | |
| 25161 | +/***/ }), | |
| 25162 | + | |
| 25163 | +/***/ "../node_modules/core-js/modules/_iobject.js": | |
| 25164 | +/*!***************************************************!*\ | |
| 25165 | + !*** ../node_modules/core-js/modules/_iobject.js ***! | |
| 25166 | + \***************************************************/ | |
| 25167 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25168 | + | |
| 25169 | +// fallback for non-array-like ES3 and non-enumerable old V8 strings | |
| 25170 | +var cof = __webpack_require__(/*! ./_cof */ "../node_modules/core-js/modules/_cof.js"); | |
| 25171 | +// eslint-disable-next-line no-prototype-builtins | |
| 25172 | +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { | |
| 25173 | + return cof(it) == 'String' ? it.split('') : Object(it); | |
| 25174 | +}; | |
| 25175 | + | |
| 25176 | + | |
| 25177 | +/***/ }), | |
| 25178 | + | |
| 25179 | +/***/ "../node_modules/core-js/modules/_is-array.js": | |
| 25180 | +/*!****************************************************!*\ | |
| 25181 | + !*** ../node_modules/core-js/modules/_is-array.js ***! | |
| 25182 | + \****************************************************/ | |
| 25183 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25184 | + | |
| 25185 | +// 7.2.2 IsArray(argument) | |
| 25186 | +var cof = __webpack_require__(/*! ./_cof */ "../node_modules/core-js/modules/_cof.js"); | |
| 25187 | +module.exports = Array.isArray || function isArray(arg) { | |
| 25188 | + return cof(arg) == 'Array'; | |
| 25189 | +}; | |
| 25190 | + | |
| 25191 | + | |
| 25192 | +/***/ }), | |
| 25193 | + | |
| 25194 | +/***/ "../node_modules/core-js/modules/_is-object.js": | |
| 25195 | +/*!*****************************************************!*\ | |
| 25196 | + !*** ../node_modules/core-js/modules/_is-object.js ***! | |
| 25197 | + \*****************************************************/ | |
| 25198 | +/***/ ((module) => { | |
| 25199 | + | |
| 25200 | +module.exports = function (it) { | |
| 25201 | + return typeof it === 'object' ? it !== null : typeof it === 'function'; | |
| 25202 | +}; | |
| 25203 | + | |
| 25204 | + | |
| 25205 | +/***/ }), | |
| 25206 | + | |
| 25207 | +/***/ "../node_modules/core-js/modules/_is-regexp.js": | |
| 25208 | +/*!*****************************************************!*\ | |
| 25209 | + !*** ../node_modules/core-js/modules/_is-regexp.js ***! | |
| 25210 | + \*****************************************************/ | |
| 25211 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25212 | + | |
| 25213 | +// 7.2.8 IsRegExp(argument) | |
| 25214 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/modules/_is-object.js"); | |
| 25215 | +var cof = __webpack_require__(/*! ./_cof */ "../node_modules/core-js/modules/_cof.js"); | |
| 25216 | +var MATCH = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js")('match'); | |
| 25217 | +module.exports = function (it) { | |
| 25218 | + var isRegExp; | |
| 25219 | + return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); | |
| 25220 | +}; | |
| 25221 | + | |
| 25222 | + | |
| 25223 | +/***/ }), | |
| 25224 | + | |
| 25225 | +/***/ "../node_modules/core-js/modules/_iter-create.js": | |
| 25226 | +/*!*******************************************************!*\ | |
| 25227 | + !*** ../node_modules/core-js/modules/_iter-create.js ***! | |
| 25228 | + \*******************************************************/ | |
| 25229 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25230 | + | |
| 25231 | +"use strict"; | |
| 25232 | + | |
| 25233 | +var create = __webpack_require__(/*! ./_object-create */ "../node_modules/core-js/modules/_object-create.js"); | |
| 25234 | +var descriptor = __webpack_require__(/*! ./_property-desc */ "../node_modules/core-js/modules/_property-desc.js"); | |
| 25235 | +var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "../node_modules/core-js/modules/_set-to-string-tag.js"); | |
| 25236 | +var IteratorPrototype = {}; | |
| 25237 | + | |
| 25238 | +// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() | |
| 25239 | +__webpack_require__(/*! ./_hide */ "../node_modules/core-js/modules/_hide.js")(IteratorPrototype, __webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js")('iterator'), function () { return this; }); | |
| 25240 | + | |
| 25241 | +module.exports = function (Constructor, NAME, next) { | |
| 25242 | + Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); | |
| 25243 | + setToStringTag(Constructor, NAME + ' Iterator'); | |
| 25244 | +}; | |
| 25245 | + | |
| 25246 | + | |
| 25247 | +/***/ }), | |
| 25248 | + | |
| 25249 | +/***/ "../node_modules/core-js/modules/_iter-define.js": | |
| 25250 | +/*!*******************************************************!*\ | |
| 25251 | + !*** ../node_modules/core-js/modules/_iter-define.js ***! | |
| 25252 | + \*******************************************************/ | |
| 25253 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25254 | + | |
| 25255 | +"use strict"; | |
| 25256 | + | |
| 25257 | +var LIBRARY = __webpack_require__(/*! ./_library */ "../node_modules/core-js/modules/_library.js"); | |
| 25258 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/modules/_export.js"); | |
| 25259 | +var redefine = __webpack_require__(/*! ./_redefine */ "../node_modules/core-js/modules/_redefine.js"); | |
| 25260 | +var hide = __webpack_require__(/*! ./_hide */ "../node_modules/core-js/modules/_hide.js"); | |
| 25261 | +var Iterators = __webpack_require__(/*! ./_iterators */ "../node_modules/core-js/modules/_iterators.js"); | |
| 25262 | +var $iterCreate = __webpack_require__(/*! ./_iter-create */ "../node_modules/core-js/modules/_iter-create.js"); | |
| 25263 | +var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "../node_modules/core-js/modules/_set-to-string-tag.js"); | |
| 25264 | +var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "../node_modules/core-js/modules/_object-gpo.js"); | |
| 25265 | +var ITERATOR = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js")('iterator'); | |
| 25266 | +var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` | |
| 25267 | +var FF_ITERATOR = '@@iterator'; | |
| 25268 | +var KEYS = 'keys'; | |
| 25269 | +var VALUES = 'values'; | |
| 25270 | + | |
| 25271 | +var returnThis = function () { return this; }; | |
| 25272 | + | |
| 25273 | +module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { | |
| 25274 | + $iterCreate(Constructor, NAME, next); | |
| 25275 | + var getMethod = function (kind) { | |
| 25276 | + if (!BUGGY && kind in proto) return proto[kind]; | |
| 25277 | + switch (kind) { | |
| 25278 | + case KEYS: return function keys() { return new Constructor(this, kind); }; | |
| 25279 | + case VALUES: return function values() { return new Constructor(this, kind); }; | |
| 25280 | + } return function entries() { return new Constructor(this, kind); }; | |
| 25281 | + }; | |
| 25282 | + var TAG = NAME + ' Iterator'; | |
| 25283 | + var DEF_VALUES = DEFAULT == VALUES; | |
| 25284 | + var VALUES_BUG = false; | |
| 25285 | + var proto = Base.prototype; | |
| 25286 | + var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; | |
| 25287 | + var $default = $native || getMethod(DEFAULT); | |
| 25288 | + var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; | |
| 25289 | + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; | |
| 25290 | + var methods, key, IteratorPrototype; | |
| 25291 | + // Fix native | |
| 25292 | + if ($anyNative) { | |
| 25293 | + IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); | |
| 25294 | + if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { | |
| 25295 | + // Set @@toStringTag to native iterators | |
| 25296 | + setToStringTag(IteratorPrototype, TAG, true); | |
| 25297 | + // fix for some old engines | |
| 25298 | + if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); | |
| 1398 | 25299 | } |
| 1399 | - return a; | |
| 1400 | 25300 | } |
| 1401 | -} | |
| 1402 | -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 25301 | + // fix Array#{values, @@iterator}.name in V8 / FF | |
| 25302 | + if (DEF_VALUES && $native && $native.name !== VALUES) { | |
| 25303 | + VALUES_BUG = true; | |
| 25304 | + $default = function values() { return $native.call(this); }; | |
| 25305 | + } | |
| 25306 | + // Define iterator | |
| 25307 | + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { | |
| 25308 | + hide(proto, ITERATOR, $default); | |
| 25309 | + } | |
| 25310 | + // Plug for library | |
| 25311 | + Iterators[NAME] = $default; | |
| 25312 | + Iterators[TAG] = returnThis; | |
| 25313 | + if (DEFAULT) { | |
| 25314 | + methods = { | |
| 25315 | + values: DEF_VALUES ? $default : getMethod(VALUES), | |
| 25316 | + keys: IS_SET ? $default : getMethod(KEYS), | |
| 25317 | + entries: $entries | |
| 25318 | + }; | |
| 25319 | + if (FORCED) for (key in methods) { | |
| 25320 | + if (!(key in proto)) redefine(proto, key, methods[key]); | |
| 25321 | + } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); | |
| 25322 | + } | |
| 25323 | + return methods; | |
| 25324 | +}; | |
| 1403 | 25325 | |
| 25326 | + | |
| 1404 | 25327 | /***/ }), |
| 1405 | 25328 | |
| 1406 | -/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 1407 | -/*!*****************************************************************!*\ | |
| 1408 | - !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 1409 | - \*****************************************************************/ | |
| 25329 | +/***/ "../node_modules/core-js/modules/_iter-step.js": | |
| 25330 | +/*!*****************************************************!*\ | |
| 25331 | + !*** ../node_modules/core-js/modules/_iter-step.js ***! | |
| 25332 | + \*****************************************************/ | |
| 1410 | 25333 | /***/ ((module) => { |
| 1411 | 25334 | |
| 1412 | -function _nonIterableRest() { | |
| 1413 | - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 1414 | -} | |
| 1415 | -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 25335 | +module.exports = function (done, value) { | |
| 25336 | + return { value: value, done: !!done }; | |
| 25337 | +}; | |
| 1416 | 25338 | |
| 25339 | + | |
| 1417 | 25340 | /***/ }), |
| 1418 | 25341 | |
| 1419 | -/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": | |
| 1420 | -/*!***************************************************************************!*\ | |
| 1421 | - !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! | |
| 1422 | - \***************************************************************************/ | |
| 25342 | +/***/ "../node_modules/core-js/modules/_iterators.js": | |
| 25343 | +/*!*****************************************************!*\ | |
| 25344 | + !*** ../node_modules/core-js/modules/_iterators.js ***! | |
| 25345 | + \*****************************************************/ | |
| 25346 | +/***/ ((module) => { | |
| 25347 | + | |
| 25348 | +module.exports = {}; | |
| 25349 | + | |
| 25350 | + | |
| 25351 | +/***/ }), | |
| 25352 | + | |
| 25353 | +/***/ "../node_modules/core-js/modules/_library.js": | |
| 25354 | +/*!***************************************************!*\ | |
| 25355 | + !*** ../node_modules/core-js/modules/_library.js ***! | |
| 25356 | + \***************************************************/ | |
| 25357 | +/***/ ((module) => { | |
| 25358 | + | |
| 25359 | +module.exports = false; | |
| 25360 | + | |
| 25361 | + | |
| 25362 | +/***/ }), | |
| 25363 | + | |
| 25364 | +/***/ "../node_modules/core-js/modules/_object-create.js": | |
| 25365 | +/*!*********************************************************!*\ | |
| 25366 | + !*** ../node_modules/core-js/modules/_object-create.js ***! | |
| 25367 | + \*********************************************************/ | |
| 1423 | 25368 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1424 | 25369 | |
| 1425 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 1426 | -var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); | |
| 1427 | -function _possibleConstructorReturn(t, e) { | |
| 1428 | - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 1429 | - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 1430 | - return assertThisInitialized(t); | |
| 1431 | -} | |
| 1432 | -module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 25370 | +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | |
| 25371 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/modules/_an-object.js"); | |
| 25372 | +var dPs = __webpack_require__(/*! ./_object-dps */ "../node_modules/core-js/modules/_object-dps.js"); | |
| 25373 | +var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "../node_modules/core-js/modules/_enum-bug-keys.js"); | |
| 25374 | +var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "../node_modules/core-js/modules/_shared-key.js")('IE_PROTO'); | |
| 25375 | +var Empty = function () { /* empty */ }; | |
| 25376 | +var PROTOTYPE = 'prototype'; | |
| 1433 | 25377 | |
| 25378 | +// Create object with fake `null` prototype: use iframe Object with cleared prototype | |
| 25379 | +var createDict = function () { | |
| 25380 | + // Thrash, waste and sodomy: IE GC bug | |
| 25381 | + var iframe = __webpack_require__(/*! ./_dom-create */ "../node_modules/core-js/modules/_dom-create.js")('iframe'); | |
| 25382 | + var i = enumBugKeys.length; | |
| 25383 | + var lt = '<'; | |
| 25384 | + var gt = '>'; | |
| 25385 | + var iframeDocument; | |
| 25386 | + iframe.style.display = 'none'; | |
| 25387 | + __webpack_require__(/*! ./_html */ "../node_modules/core-js/modules/_html.js").appendChild(iframe); | |
| 25388 | + iframe.src = 'javascript:'; // eslint-disable-line no-script-url | |
| 25389 | + // createDict = iframe.contentWindow.Object; | |
| 25390 | + // html.removeChild(iframe); | |
| 25391 | + iframeDocument = iframe.contentWindow.document; | |
| 25392 | + iframeDocument.open(); | |
| 25393 | + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); | |
| 25394 | + iframeDocument.close(); | |
| 25395 | + createDict = iframeDocument.F; | |
| 25396 | + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; | |
| 25397 | + return createDict(); | |
| 25398 | +}; | |
| 25399 | + | |
| 25400 | +module.exports = Object.create || function create(O, Properties) { | |
| 25401 | + var result; | |
| 25402 | + if (O !== null) { | |
| 25403 | + Empty[PROTOTYPE] = anObject(O); | |
| 25404 | + result = new Empty(); | |
| 25405 | + Empty[PROTOTYPE] = null; | |
| 25406 | + // add "__proto__" for Object.getPrototypeOf polyfill | |
| 25407 | + result[IE_PROTO] = O; | |
| 25408 | + } else result = createDict(); | |
| 25409 | + return Properties === undefined ? result : dPs(result, Properties); | |
| 25410 | +}; | |
| 25411 | + | |
| 25412 | + | |
| 1434 | 25413 | /***/ }), |
| 1435 | 25414 | |
| 1436 | -/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": | |
| 25415 | +/***/ "../node_modules/core-js/modules/_object-dp.js": | |
| 25416 | +/*!*****************************************************!*\ | |
| 25417 | + !*** ../node_modules/core-js/modules/_object-dp.js ***! | |
| 25418 | + \*****************************************************/ | |
| 25419 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 25420 | + | |
| 25421 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/modules/_an-object.js"); | |
| 25422 | +var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "../node_modules/core-js/modules/_ie8-dom-define.js"); | |
| 25423 | +var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "../node_modules/core-js/modules/_to-primitive.js"); | |
| 25424 | +var dP = Object.defineProperty; | |
| 25425 | + | |
| 25426 | +exports.f = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/modules/_descriptors.js") ? Object.defineProperty : function defineProperty(O, P, Attributes) { | |
| 25427 | + anObject(O); | |
| 25428 | + P = toPrimitive(P, true); | |
| 25429 | + anObject(Attributes); | |
| 25430 | + if (IE8_DOM_DEFINE) try { | |
| 25431 | + return dP(O, P, Attributes); | |
| 25432 | + } catch (e) { /* empty */ } | |
| 25433 | + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); | |
| 25434 | + if ('value' in Attributes) O[P] = Attributes.value; | |
| 25435 | + return O; | |
| 25436 | +}; | |
| 25437 | + | |
| 25438 | + | |
| 25439 | +/***/ }), | |
| 25440 | + | |
| 25441 | +/***/ "../node_modules/core-js/modules/_object-dps.js": | |
| 25442 | +/*!******************************************************!*\ | |
| 25443 | + !*** ../node_modules/core-js/modules/_object-dps.js ***! | |
| 25444 | + \******************************************************/ | |
| 25445 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25446 | + | |
| 25447 | +var dP = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/modules/_object-dp.js"); | |
| 25448 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/modules/_an-object.js"); | |
| 25449 | +var getKeys = __webpack_require__(/*! ./_object-keys */ "../node_modules/core-js/modules/_object-keys.js"); | |
| 25450 | + | |
| 25451 | +module.exports = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/modules/_descriptors.js") ? Object.defineProperties : function defineProperties(O, Properties) { | |
| 25452 | + anObject(O); | |
| 25453 | + var keys = getKeys(Properties); | |
| 25454 | + var length = keys.length; | |
| 25455 | + var i = 0; | |
| 25456 | + var P; | |
| 25457 | + while (length > i) dP.f(O, P = keys[i++], Properties[P]); | |
| 25458 | + return O; | |
| 25459 | +}; | |
| 25460 | + | |
| 25461 | + | |
| 25462 | +/***/ }), | |
| 25463 | + | |
| 25464 | +/***/ "../node_modules/core-js/modules/_object-gopd.js": | |
| 25465 | +/*!*******************************************************!*\ | |
| 25466 | + !*** ../node_modules/core-js/modules/_object-gopd.js ***! | |
| 25467 | + \*******************************************************/ | |
| 25468 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 25469 | + | |
| 25470 | +var pIE = __webpack_require__(/*! ./_object-pie */ "../node_modules/core-js/modules/_object-pie.js"); | |
| 25471 | +var createDesc = __webpack_require__(/*! ./_property-desc */ "../node_modules/core-js/modules/_property-desc.js"); | |
| 25472 | +var toIObject = __webpack_require__(/*! ./_to-iobject */ "../node_modules/core-js/modules/_to-iobject.js"); | |
| 25473 | +var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "../node_modules/core-js/modules/_to-primitive.js"); | |
| 25474 | +var has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/modules/_has.js"); | |
| 25475 | +var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "../node_modules/core-js/modules/_ie8-dom-define.js"); | |
| 25476 | +var gOPD = Object.getOwnPropertyDescriptor; | |
| 25477 | + | |
| 25478 | +exports.f = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/modules/_descriptors.js") ? gOPD : function getOwnPropertyDescriptor(O, P) { | |
| 25479 | + O = toIObject(O); | |
| 25480 | + P = toPrimitive(P, true); | |
| 25481 | + if (IE8_DOM_DEFINE) try { | |
| 25482 | + return gOPD(O, P); | |
| 25483 | + } catch (e) { /* empty */ } | |
| 25484 | + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); | |
| 25485 | +}; | |
| 25486 | + | |
| 25487 | + | |
| 25488 | +/***/ }), | |
| 25489 | + | |
| 25490 | +/***/ "../node_modules/core-js/modules/_object-gopn.js": | |
| 25491 | +/*!*******************************************************!*\ | |
| 25492 | + !*** ../node_modules/core-js/modules/_object-gopn.js ***! | |
| 25493 | + \*******************************************************/ | |
| 25494 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 25495 | + | |
| 25496 | +// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) | |
| 25497 | +var $keys = __webpack_require__(/*! ./_object-keys-internal */ "../node_modules/core-js/modules/_object-keys-internal.js"); | |
| 25498 | +var hiddenKeys = __webpack_require__(/*! ./_enum-bug-keys */ "../node_modules/core-js/modules/_enum-bug-keys.js").concat('length', 'prototype'); | |
| 25499 | + | |
| 25500 | +exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { | |
| 25501 | + return $keys(O, hiddenKeys); | |
| 25502 | +}; | |
| 25503 | + | |
| 25504 | + | |
| 25505 | +/***/ }), | |
| 25506 | + | |
| 25507 | +/***/ "../node_modules/core-js/modules/_object-gpo.js": | |
| 25508 | +/*!******************************************************!*\ | |
| 25509 | + !*** ../node_modules/core-js/modules/_object-gpo.js ***! | |
| 25510 | + \******************************************************/ | |
| 25511 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25512 | + | |
| 25513 | +// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) | |
| 25514 | +var has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/modules/_has.js"); | |
| 25515 | +var toObject = __webpack_require__(/*! ./_to-object */ "../node_modules/core-js/modules/_to-object.js"); | |
| 25516 | +var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "../node_modules/core-js/modules/_shared-key.js")('IE_PROTO'); | |
| 25517 | +var ObjectProto = Object.prototype; | |
| 25518 | + | |
| 25519 | +module.exports = Object.getPrototypeOf || function (O) { | |
| 25520 | + O = toObject(O); | |
| 25521 | + if (has(O, IE_PROTO)) return O[IE_PROTO]; | |
| 25522 | + if (typeof O.constructor == 'function' && O instanceof O.constructor) { | |
| 25523 | + return O.constructor.prototype; | |
| 25524 | + } return O instanceof Object ? ObjectProto : null; | |
| 25525 | +}; | |
| 25526 | + | |
| 25527 | + | |
| 25528 | +/***/ }), | |
| 25529 | + | |
| 25530 | +/***/ "../node_modules/core-js/modules/_object-keys-internal.js": | |
| 1437 | 25531 | /*!****************************************************************!*\ |
| 1438 | - !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! | |
| 25532 | + !*** ../node_modules/core-js/modules/_object-keys-internal.js ***! | |
| 1439 | 25533 | \****************************************************************/ |
| 25534 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25535 | + | |
| 25536 | +var has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/modules/_has.js"); | |
| 25537 | +var toIObject = __webpack_require__(/*! ./_to-iobject */ "../node_modules/core-js/modules/_to-iobject.js"); | |
| 25538 | +var arrayIndexOf = __webpack_require__(/*! ./_array-includes */ "../node_modules/core-js/modules/_array-includes.js")(false); | |
| 25539 | +var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "../node_modules/core-js/modules/_shared-key.js")('IE_PROTO'); | |
| 25540 | + | |
| 25541 | +module.exports = function (object, names) { | |
| 25542 | + var O = toIObject(object); | |
| 25543 | + var i = 0; | |
| 25544 | + var result = []; | |
| 25545 | + var key; | |
| 25546 | + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); | |
| 25547 | + // Don't enum bug & hidden keys | |
| 25548 | + while (names.length > i) if (has(O, key = names[i++])) { | |
| 25549 | + ~arrayIndexOf(result, key) || result.push(key); | |
| 25550 | + } | |
| 25551 | + return result; | |
| 25552 | +}; | |
| 25553 | + | |
| 25554 | + | |
| 25555 | +/***/ }), | |
| 25556 | + | |
| 25557 | +/***/ "../node_modules/core-js/modules/_object-keys.js": | |
| 25558 | +/*!*******************************************************!*\ | |
| 25559 | + !*** ../node_modules/core-js/modules/_object-keys.js ***! | |
| 25560 | + \*******************************************************/ | |
| 25561 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25562 | + | |
| 25563 | +// 19.1.2.14 / 15.2.3.14 Object.keys(O) | |
| 25564 | +var $keys = __webpack_require__(/*! ./_object-keys-internal */ "../node_modules/core-js/modules/_object-keys-internal.js"); | |
| 25565 | +var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "../node_modules/core-js/modules/_enum-bug-keys.js"); | |
| 25566 | + | |
| 25567 | +module.exports = Object.keys || function keys(O) { | |
| 25568 | + return $keys(O, enumBugKeys); | |
| 25569 | +}; | |
| 25570 | + | |
| 25571 | + | |
| 25572 | +/***/ }), | |
| 25573 | + | |
| 25574 | +/***/ "../node_modules/core-js/modules/_object-pie.js": | |
| 25575 | +/*!******************************************************!*\ | |
| 25576 | + !*** ../node_modules/core-js/modules/_object-pie.js ***! | |
| 25577 | + \******************************************************/ | |
| 25578 | +/***/ ((__unused_webpack_module, exports) => { | |
| 25579 | + | |
| 25580 | +exports.f = {}.propertyIsEnumerable; | |
| 25581 | + | |
| 25582 | + | |
| 25583 | +/***/ }), | |
| 25584 | + | |
| 25585 | +/***/ "../node_modules/core-js/modules/_property-desc.js": | |
| 25586 | +/*!*********************************************************!*\ | |
| 25587 | + !*** ../node_modules/core-js/modules/_property-desc.js ***! | |
| 25588 | + \*********************************************************/ | |
| 1440 | 25589 | /***/ ((module) => { |
| 1441 | 25590 | |
| 1442 | -function _setPrototypeOf(t, e) { | |
| 1443 | - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | |
| 1444 | - return t.__proto__ = e, t; | |
| 1445 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); | |
| 25591 | +module.exports = function (bitmap, value) { | |
| 25592 | + return { | |
| 25593 | + enumerable: !(bitmap & 1), | |
| 25594 | + configurable: !(bitmap & 2), | |
| 25595 | + writable: !(bitmap & 4), | |
| 25596 | + value: value | |
| 25597 | + }; | |
| 25598 | +}; | |
| 25599 | + | |
| 25600 | + | |
| 25601 | +/***/ }), | |
| 25602 | + | |
| 25603 | +/***/ "../node_modules/core-js/modules/_redefine.js": | |
| 25604 | +/*!****************************************************!*\ | |
| 25605 | + !*** ../node_modules/core-js/modules/_redefine.js ***! | |
| 25606 | + \****************************************************/ | |
| 25607 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25608 | + | |
| 25609 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/modules/_global.js"); | |
| 25610 | +var hide = __webpack_require__(/*! ./_hide */ "../node_modules/core-js/modules/_hide.js"); | |
| 25611 | +var has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/modules/_has.js"); | |
| 25612 | +var SRC = __webpack_require__(/*! ./_uid */ "../node_modules/core-js/modules/_uid.js")('src'); | |
| 25613 | +var $toString = __webpack_require__(/*! ./_function-to-string */ "../node_modules/core-js/modules/_function-to-string.js"); | |
| 25614 | +var TO_STRING = 'toString'; | |
| 25615 | +var TPL = ('' + $toString).split(TO_STRING); | |
| 25616 | + | |
| 25617 | +__webpack_require__(/*! ./_core */ "../node_modules/core-js/modules/_core.js").inspectSource = function (it) { | |
| 25618 | + return $toString.call(it); | |
| 25619 | +}; | |
| 25620 | + | |
| 25621 | +(module.exports = function (O, key, val, safe) { | |
| 25622 | + var isFunction = typeof val == 'function'; | |
| 25623 | + if (isFunction) has(val, 'name') || hide(val, 'name', key); | |
| 25624 | + if (O[key] === val) return; | |
| 25625 | + if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); | |
| 25626 | + if (O === global) { | |
| 25627 | + O[key] = val; | |
| 25628 | + } else if (!safe) { | |
| 25629 | + delete O[key]; | |
| 25630 | + hide(O, key, val); | |
| 25631 | + } else if (O[key]) { | |
| 25632 | + O[key] = val; | |
| 25633 | + } else { | |
| 25634 | + hide(O, key, val); | |
| 25635 | + } | |
| 25636 | +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative | |
| 25637 | +})(Function.prototype, TO_STRING, function toString() { | |
| 25638 | + return typeof this == 'function' && this[SRC] || $toString.call(this); | |
| 25639 | +}); | |
| 25640 | + | |
| 25641 | + | |
| 25642 | +/***/ }), | |
| 25643 | + | |
| 25644 | +/***/ "../node_modules/core-js/modules/_regexp-exec-abstract.js": | |
| 25645 | +/*!****************************************************************!*\ | |
| 25646 | + !*** ../node_modules/core-js/modules/_regexp-exec-abstract.js ***! | |
| 25647 | + \****************************************************************/ | |
| 25648 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25649 | + | |
| 25650 | +"use strict"; | |
| 25651 | + | |
| 25652 | + | |
| 25653 | +var classof = __webpack_require__(/*! ./_classof */ "../node_modules/core-js/modules/_classof.js"); | |
| 25654 | +var builtinExec = RegExp.prototype.exec; | |
| 25655 | + | |
| 25656 | + // `RegExpExec` abstract operation | |
| 25657 | +// https://tc39.github.io/ecma262/#sec-regexpexec | |
| 25658 | +module.exports = function (R, S) { | |
| 25659 | + var exec = R.exec; | |
| 25660 | + if (typeof exec === 'function') { | |
| 25661 | + var result = exec.call(R, S); | |
| 25662 | + if (typeof result !== 'object') { | |
| 25663 | + throw new TypeError('RegExp exec method returned something other than an Object or null'); | |
| 25664 | + } | |
| 25665 | + return result; | |
| 25666 | + } | |
| 25667 | + if (classof(R) !== 'RegExp') { | |
| 25668 | + throw new TypeError('RegExp#exec called on incompatible receiver'); | |
| 25669 | + } | |
| 25670 | + return builtinExec.call(R, S); | |
| 25671 | +}; | |
| 25672 | + | |
| 25673 | + | |
| 25674 | +/***/ }), | |
| 25675 | + | |
| 25676 | +/***/ "../node_modules/core-js/modules/_regexp-exec.js": | |
| 25677 | +/*!*******************************************************!*\ | |
| 25678 | + !*** ../node_modules/core-js/modules/_regexp-exec.js ***! | |
| 25679 | + \*******************************************************/ | |
| 25680 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25681 | + | |
| 25682 | +"use strict"; | |
| 25683 | + | |
| 25684 | + | |
| 25685 | +var regexpFlags = __webpack_require__(/*! ./_flags */ "../node_modules/core-js/modules/_flags.js"); | |
| 25686 | + | |
| 25687 | +var nativeExec = RegExp.prototype.exec; | |
| 25688 | +// This always refers to the native implementation, because the | |
| 25689 | +// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js, | |
| 25690 | +// which loads this file before patching the method. | |
| 25691 | +var nativeReplace = String.prototype.replace; | |
| 25692 | + | |
| 25693 | +var patchedExec = nativeExec; | |
| 25694 | + | |
| 25695 | +var LAST_INDEX = 'lastIndex'; | |
| 25696 | + | |
| 25697 | +var UPDATES_LAST_INDEX_WRONG = (function () { | |
| 25698 | + var re1 = /a/, | |
| 25699 | + re2 = /b*/g; | |
| 25700 | + nativeExec.call(re1, 'a'); | |
| 25701 | + nativeExec.call(re2, 'a'); | |
| 25702 | + return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0; | |
| 25703 | +})(); | |
| 25704 | + | |
| 25705 | +// nonparticipating capturing group, copied from es5-shim's String#split patch. | |
| 25706 | +var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; | |
| 25707 | + | |
| 25708 | +var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED; | |
| 25709 | + | |
| 25710 | +if (PATCH) { | |
| 25711 | + patchedExec = function exec(str) { | |
| 25712 | + var re = this; | |
| 25713 | + var lastIndex, reCopy, match, i; | |
| 25714 | + | |
| 25715 | + if (NPCG_INCLUDED) { | |
| 25716 | + reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re)); | |
| 25717 | + } | |
| 25718 | + if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX]; | |
| 25719 | + | |
| 25720 | + match = nativeExec.call(re, str); | |
| 25721 | + | |
| 25722 | + if (UPDATES_LAST_INDEX_WRONG && match) { | |
| 25723 | + re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex; | |
| 25724 | + } | |
| 25725 | + if (NPCG_INCLUDED && match && match.length > 1) { | |
| 25726 | + // Fix browsers whose `exec` methods don't consistently return `undefined` | |
| 25727 | + // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/ | |
| 25728 | + // eslint-disable-next-line no-loop-func | |
| 25729 | + nativeReplace.call(match[0], reCopy, function () { | |
| 25730 | + for (i = 1; i < arguments.length - 2; i++) { | |
| 25731 | + if (arguments[i] === undefined) match[i] = undefined; | |
| 25732 | + } | |
| 25733 | + }); | |
| 25734 | + } | |
| 25735 | + | |
| 25736 | + return match; | |
| 25737 | + }; | |
| 1446 | 25738 | } |
| 1447 | -module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1448 | 25739 | |
| 25740 | +module.exports = patchedExec; | |
| 25741 | + | |
| 25742 | + | |
| 1449 | 25743 | /***/ }), |
| 1450 | 25744 | |
| 1451 | -/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": | |
| 25745 | +/***/ "../node_modules/core-js/modules/_set-proto.js": | |
| 25746 | +/*!*****************************************************!*\ | |
| 25747 | + !*** ../node_modules/core-js/modules/_set-proto.js ***! | |
| 25748 | + \*****************************************************/ | |
| 25749 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25750 | + | |
| 25751 | +// Works with __proto__ only. Old v8 can't work with null proto objects. | |
| 25752 | +/* eslint-disable no-proto */ | |
| 25753 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/modules/_is-object.js"); | |
| 25754 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/modules/_an-object.js"); | |
| 25755 | +var check = function (O, proto) { | |
| 25756 | + anObject(O); | |
| 25757 | + if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); | |
| 25758 | +}; | |
| 25759 | +module.exports = { | |
| 25760 | + set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line | |
| 25761 | + function (test, buggy, set) { | |
| 25762 | + try { | |
| 25763 | + set = __webpack_require__(/*! ./_ctx */ "../node_modules/core-js/modules/_ctx.js")(Function.call, __webpack_require__(/*! ./_object-gopd */ "../node_modules/core-js/modules/_object-gopd.js").f(Object.prototype, '__proto__').set, 2); | |
| 25764 | + set(test, []); | |
| 25765 | + buggy = !(test instanceof Array); | |
| 25766 | + } catch (e) { buggy = true; } | |
| 25767 | + return function setPrototypeOf(O, proto) { | |
| 25768 | + check(O, proto); | |
| 25769 | + if (buggy) O.__proto__ = proto; | |
| 25770 | + else set(O, proto); | |
| 25771 | + return O; | |
| 25772 | + }; | |
| 25773 | + }({}, false) : undefined), | |
| 25774 | + check: check | |
| 25775 | +}; | |
| 25776 | + | |
| 25777 | + | |
| 25778 | +/***/ }), | |
| 25779 | + | |
| 25780 | +/***/ "../node_modules/core-js/modules/_set-species.js": | |
| 25781 | +/*!*******************************************************!*\ | |
| 25782 | + !*** ../node_modules/core-js/modules/_set-species.js ***! | |
| 25783 | + \*******************************************************/ | |
| 25784 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25785 | + | |
| 25786 | +"use strict"; | |
| 25787 | + | |
| 25788 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/modules/_global.js"); | |
| 25789 | +var dP = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/modules/_object-dp.js"); | |
| 25790 | +var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/modules/_descriptors.js"); | |
| 25791 | +var SPECIES = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js")('species'); | |
| 25792 | + | |
| 25793 | +module.exports = function (KEY) { | |
| 25794 | + var C = global[KEY]; | |
| 25795 | + if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { | |
| 25796 | + configurable: true, | |
| 25797 | + get: function () { return this; } | |
| 25798 | + }); | |
| 25799 | +}; | |
| 25800 | + | |
| 25801 | + | |
| 25802 | +/***/ }), | |
| 25803 | + | |
| 25804 | +/***/ "../node_modules/core-js/modules/_set-to-string-tag.js": | |
| 25805 | +/*!*************************************************************!*\ | |
| 25806 | + !*** ../node_modules/core-js/modules/_set-to-string-tag.js ***! | |
| 25807 | + \*************************************************************/ | |
| 25808 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25809 | + | |
| 25810 | +var def = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/modules/_object-dp.js").f; | |
| 25811 | +var has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/modules/_has.js"); | |
| 25812 | +var TAG = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js")('toStringTag'); | |
| 25813 | + | |
| 25814 | +module.exports = function (it, tag, stat) { | |
| 25815 | + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); | |
| 25816 | +}; | |
| 25817 | + | |
| 25818 | + | |
| 25819 | +/***/ }), | |
| 25820 | + | |
| 25821 | +/***/ "../node_modules/core-js/modules/_shared-key.js": | |
| 25822 | +/*!******************************************************!*\ | |
| 25823 | + !*** ../node_modules/core-js/modules/_shared-key.js ***! | |
| 25824 | + \******************************************************/ | |
| 25825 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25826 | + | |
| 25827 | +var shared = __webpack_require__(/*! ./_shared */ "../node_modules/core-js/modules/_shared.js")('keys'); | |
| 25828 | +var uid = __webpack_require__(/*! ./_uid */ "../node_modules/core-js/modules/_uid.js"); | |
| 25829 | +module.exports = function (key) { | |
| 25830 | + return shared[key] || (shared[key] = uid(key)); | |
| 25831 | +}; | |
| 25832 | + | |
| 25833 | + | |
| 25834 | +/***/ }), | |
| 25835 | + | |
| 25836 | +/***/ "../node_modules/core-js/modules/_shared.js": | |
| 25837 | +/*!**************************************************!*\ | |
| 25838 | + !*** ../node_modules/core-js/modules/_shared.js ***! | |
| 25839 | + \**************************************************/ | |
| 25840 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25841 | + | |
| 25842 | +var core = __webpack_require__(/*! ./_core */ "../node_modules/core-js/modules/_core.js"); | |
| 25843 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/modules/_global.js"); | |
| 25844 | +var SHARED = '__core-js_shared__'; | |
| 25845 | +var store = global[SHARED] || (global[SHARED] = {}); | |
| 25846 | + | |
| 25847 | +(module.exports = function (key, value) { | |
| 25848 | + return store[key] || (store[key] = value !== undefined ? value : {}); | |
| 25849 | +})('versions', []).push({ | |
| 25850 | + version: core.version, | |
| 25851 | + mode: __webpack_require__(/*! ./_library */ "../node_modules/core-js/modules/_library.js") ? 'pure' : 'global', | |
| 25852 | + copyright: '© 2020 Denis Pushkarev (zloirock.ru)' | |
| 25853 | +}); | |
| 25854 | + | |
| 25855 | + | |
| 25856 | +/***/ }), | |
| 25857 | + | |
| 25858 | +/***/ "../node_modules/core-js/modules/_species-constructor.js": | |
| 1452 | 25859 | /*!***************************************************************!*\ |
| 1453 | - !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! | |
| 25860 | + !*** ../node_modules/core-js/modules/_species-constructor.js ***! | |
| 1454 | 25861 | \***************************************************************/ |
| 1455 | 25862 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1456 | 25863 | |
| 1457 | -var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); | |
| 1458 | -var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); | |
| 1459 | -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 1460 | -var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); | |
| 1461 | -function _slicedToArray(r, e) { | |
| 1462 | - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 25864 | +// 7.3.20 SpeciesConstructor(O, defaultConstructor) | |
| 25865 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/modules/_an-object.js"); | |
| 25866 | +var aFunction = __webpack_require__(/*! ./_a-function */ "../node_modules/core-js/modules/_a-function.js"); | |
| 25867 | +var SPECIES = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js")('species'); | |
| 25868 | +module.exports = function (O, D) { | |
| 25869 | + var C = anObject(O).constructor; | |
| 25870 | + var S; | |
| 25871 | + return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); | |
| 25872 | +}; | |
| 25873 | + | |
| 25874 | + | |
| 25875 | +/***/ }), | |
| 25876 | + | |
| 25877 | +/***/ "../node_modules/core-js/modules/_strict-method.js": | |
| 25878 | +/*!*********************************************************!*\ | |
| 25879 | + !*** ../node_modules/core-js/modules/_strict-method.js ***! | |
| 25880 | + \*********************************************************/ | |
| 25881 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25882 | + | |
| 25883 | +"use strict"; | |
| 25884 | + | |
| 25885 | +var fails = __webpack_require__(/*! ./_fails */ "../node_modules/core-js/modules/_fails.js"); | |
| 25886 | + | |
| 25887 | +module.exports = function (method, arg) { | |
| 25888 | + return !!method && fails(function () { | |
| 25889 | + // eslint-disable-next-line no-useless-call | |
| 25890 | + arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null); | |
| 25891 | + }); | |
| 25892 | +}; | |
| 25893 | + | |
| 25894 | + | |
| 25895 | +/***/ }), | |
| 25896 | + | |
| 25897 | +/***/ "../node_modules/core-js/modules/_string-at.js": | |
| 25898 | +/*!*****************************************************!*\ | |
| 25899 | + !*** ../node_modules/core-js/modules/_string-at.js ***! | |
| 25900 | + \*****************************************************/ | |
| 25901 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25902 | + | |
| 25903 | +var toInteger = __webpack_require__(/*! ./_to-integer */ "../node_modules/core-js/modules/_to-integer.js"); | |
| 25904 | +var defined = __webpack_require__(/*! ./_defined */ "../node_modules/core-js/modules/_defined.js"); | |
| 25905 | +// true -> String#at | |
| 25906 | +// false -> String#codePointAt | |
| 25907 | +module.exports = function (TO_STRING) { | |
| 25908 | + return function (that, pos) { | |
| 25909 | + var s = String(defined(that)); | |
| 25910 | + var i = toInteger(pos); | |
| 25911 | + var l = s.length; | |
| 25912 | + var a, b; | |
| 25913 | + if (i < 0 || i >= l) return TO_STRING ? '' : undefined; | |
| 25914 | + a = s.charCodeAt(i); | |
| 25915 | + return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff | |
| 25916 | + ? TO_STRING ? s.charAt(i) : a | |
| 25917 | + : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; | |
| 25918 | + }; | |
| 25919 | +}; | |
| 25920 | + | |
| 25921 | + | |
| 25922 | +/***/ }), | |
| 25923 | + | |
| 25924 | +/***/ "../node_modules/core-js/modules/_string-context.js": | |
| 25925 | +/*!**********************************************************!*\ | |
| 25926 | + !*** ../node_modules/core-js/modules/_string-context.js ***! | |
| 25927 | + \**********************************************************/ | |
| 25928 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25929 | + | |
| 25930 | +// helper for String#{startsWith, endsWith, includes} | |
| 25931 | +var isRegExp = __webpack_require__(/*! ./_is-regexp */ "../node_modules/core-js/modules/_is-regexp.js"); | |
| 25932 | +var defined = __webpack_require__(/*! ./_defined */ "../node_modules/core-js/modules/_defined.js"); | |
| 25933 | + | |
| 25934 | +module.exports = function (that, searchString, NAME) { | |
| 25935 | + if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!"); | |
| 25936 | + return String(defined(that)); | |
| 25937 | +}; | |
| 25938 | + | |
| 25939 | + | |
| 25940 | +/***/ }), | |
| 25941 | + | |
| 25942 | +/***/ "../node_modules/core-js/modules/_string-trim.js": | |
| 25943 | +/*!*******************************************************!*\ | |
| 25944 | + !*** ../node_modules/core-js/modules/_string-trim.js ***! | |
| 25945 | + \*******************************************************/ | |
| 25946 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25947 | + | |
| 25948 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/modules/_export.js"); | |
| 25949 | +var defined = __webpack_require__(/*! ./_defined */ "../node_modules/core-js/modules/_defined.js"); | |
| 25950 | +var fails = __webpack_require__(/*! ./_fails */ "../node_modules/core-js/modules/_fails.js"); | |
| 25951 | +var spaces = __webpack_require__(/*! ./_string-ws */ "../node_modules/core-js/modules/_string-ws.js"); | |
| 25952 | +var space = '[' + spaces + ']'; | |
| 25953 | +var non = '\u200b\u0085'; | |
| 25954 | +var ltrim = RegExp('^' + space + space + '*'); | |
| 25955 | +var rtrim = RegExp(space + space + '*$'); | |
| 25956 | + | |
| 25957 | +var exporter = function (KEY, exec, ALIAS) { | |
| 25958 | + var exp = {}; | |
| 25959 | + var FORCE = fails(function () { | |
| 25960 | + return !!spaces[KEY]() || non[KEY]() != non; | |
| 25961 | + }); | |
| 25962 | + var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; | |
| 25963 | + if (ALIAS) exp[ALIAS] = fn; | |
| 25964 | + $export($export.P + $export.F * FORCE, 'String', exp); | |
| 25965 | +}; | |
| 25966 | + | |
| 25967 | +// 1 -> String#trimLeft | |
| 25968 | +// 2 -> String#trimRight | |
| 25969 | +// 3 -> String#trim | |
| 25970 | +var trim = exporter.trim = function (string, TYPE) { | |
| 25971 | + string = String(defined(string)); | |
| 25972 | + if (TYPE & 1) string = string.replace(ltrim, ''); | |
| 25973 | + if (TYPE & 2) string = string.replace(rtrim, ''); | |
| 25974 | + return string; | |
| 25975 | +}; | |
| 25976 | + | |
| 25977 | +module.exports = exporter; | |
| 25978 | + | |
| 25979 | + | |
| 25980 | +/***/ }), | |
| 25981 | + | |
| 25982 | +/***/ "../node_modules/core-js/modules/_string-ws.js": | |
| 25983 | +/*!*****************************************************!*\ | |
| 25984 | + !*** ../node_modules/core-js/modules/_string-ws.js ***! | |
| 25985 | + \*****************************************************/ | |
| 25986 | +/***/ ((module) => { | |
| 25987 | + | |
| 25988 | +module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + | |
| 25989 | + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; | |
| 25990 | + | |
| 25991 | + | |
| 25992 | +/***/ }), | |
| 25993 | + | |
| 25994 | +/***/ "../node_modules/core-js/modules/_to-absolute-index.js": | |
| 25995 | +/*!*************************************************************!*\ | |
| 25996 | + !*** ../node_modules/core-js/modules/_to-absolute-index.js ***! | |
| 25997 | + \*************************************************************/ | |
| 25998 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 25999 | + | |
| 26000 | +var toInteger = __webpack_require__(/*! ./_to-integer */ "../node_modules/core-js/modules/_to-integer.js"); | |
| 26001 | +var max = Math.max; | |
| 26002 | +var min = Math.min; | |
| 26003 | +module.exports = function (index, length) { | |
| 26004 | + index = toInteger(index); | |
| 26005 | + return index < 0 ? max(index + length, 0) : min(index, length); | |
| 26006 | +}; | |
| 26007 | + | |
| 26008 | + | |
| 26009 | +/***/ }), | |
| 26010 | + | |
| 26011 | +/***/ "../node_modules/core-js/modules/_to-integer.js": | |
| 26012 | +/*!******************************************************!*\ | |
| 26013 | + !*** ../node_modules/core-js/modules/_to-integer.js ***! | |
| 26014 | + \******************************************************/ | |
| 26015 | +/***/ ((module) => { | |
| 26016 | + | |
| 26017 | +// 7.1.4 ToInteger | |
| 26018 | +var ceil = Math.ceil; | |
| 26019 | +var floor = Math.floor; | |
| 26020 | +module.exports = function (it) { | |
| 26021 | + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); | |
| 26022 | +}; | |
| 26023 | + | |
| 26024 | + | |
| 26025 | +/***/ }), | |
| 26026 | + | |
| 26027 | +/***/ "../node_modules/core-js/modules/_to-iobject.js": | |
| 26028 | +/*!******************************************************!*\ | |
| 26029 | + !*** ../node_modules/core-js/modules/_to-iobject.js ***! | |
| 26030 | + \******************************************************/ | |
| 26031 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 26032 | + | |
| 26033 | +// to indexed object, toObject with fallback for non-array-like ES3 strings | |
| 26034 | +var IObject = __webpack_require__(/*! ./_iobject */ "../node_modules/core-js/modules/_iobject.js"); | |
| 26035 | +var defined = __webpack_require__(/*! ./_defined */ "../node_modules/core-js/modules/_defined.js"); | |
| 26036 | +module.exports = function (it) { | |
| 26037 | + return IObject(defined(it)); | |
| 26038 | +}; | |
| 26039 | + | |
| 26040 | + | |
| 26041 | +/***/ }), | |
| 26042 | + | |
| 26043 | +/***/ "../node_modules/core-js/modules/_to-length.js": | |
| 26044 | +/*!*****************************************************!*\ | |
| 26045 | + !*** ../node_modules/core-js/modules/_to-length.js ***! | |
| 26046 | + \*****************************************************/ | |
| 26047 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 26048 | + | |
| 26049 | +// 7.1.15 ToLength | |
| 26050 | +var toInteger = __webpack_require__(/*! ./_to-integer */ "../node_modules/core-js/modules/_to-integer.js"); | |
| 26051 | +var min = Math.min; | |
| 26052 | +module.exports = function (it) { | |
| 26053 | + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 | |
| 26054 | +}; | |
| 26055 | + | |
| 26056 | + | |
| 26057 | +/***/ }), | |
| 26058 | + | |
| 26059 | +/***/ "../node_modules/core-js/modules/_to-object.js": | |
| 26060 | +/*!*****************************************************!*\ | |
| 26061 | + !*** ../node_modules/core-js/modules/_to-object.js ***! | |
| 26062 | + \*****************************************************/ | |
| 26063 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 26064 | + | |
| 26065 | +// 7.1.13 ToObject(argument) | |
| 26066 | +var defined = __webpack_require__(/*! ./_defined */ "../node_modules/core-js/modules/_defined.js"); | |
| 26067 | +module.exports = function (it) { | |
| 26068 | + return Object(defined(it)); | |
| 26069 | +}; | |
| 26070 | + | |
| 26071 | + | |
| 26072 | +/***/ }), | |
| 26073 | + | |
| 26074 | +/***/ "../node_modules/core-js/modules/_to-primitive.js": | |
| 26075 | +/*!********************************************************!*\ | |
| 26076 | + !*** ../node_modules/core-js/modules/_to-primitive.js ***! | |
| 26077 | + \********************************************************/ | |
| 26078 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 26079 | + | |
| 26080 | +// 7.1.1 ToPrimitive(input [, PreferredType]) | |
| 26081 | +var isObject = __webpack_require__(/*! ./_is-object */ "../node_modules/core-js/modules/_is-object.js"); | |
| 26082 | +// instead of the ES6 spec version, we didn't implement @@toPrimitive case | |
| 26083 | +// and the second argument - flag - preferred type is a string | |
| 26084 | +module.exports = function (it, S) { | |
| 26085 | + if (!isObject(it)) return it; | |
| 26086 | + var fn, val; | |
| 26087 | + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 26088 | + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 26089 | + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 26090 | + throw TypeError("Can't convert object to primitive value"); | |
| 26091 | +}; | |
| 26092 | + | |
| 26093 | + | |
| 26094 | +/***/ }), | |
| 26095 | + | |
| 26096 | +/***/ "../node_modules/core-js/modules/_uid.js": | |
| 26097 | +/*!***********************************************!*\ | |
| 26098 | + !*** ../node_modules/core-js/modules/_uid.js ***! | |
| 26099 | + \***********************************************/ | |
| 26100 | +/***/ ((module) => { | |
| 26101 | + | |
| 26102 | +var id = 0; | |
| 26103 | +var px = Math.random(); | |
| 26104 | +module.exports = function (key) { | |
| 26105 | + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); | |
| 26106 | +}; | |
| 26107 | + | |
| 26108 | + | |
| 26109 | +/***/ }), | |
| 26110 | + | |
| 26111 | +/***/ "../node_modules/core-js/modules/_wks.js": | |
| 26112 | +/*!***********************************************!*\ | |
| 26113 | + !*** ../node_modules/core-js/modules/_wks.js ***! | |
| 26114 | + \***********************************************/ | |
| 26115 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 26116 | + | |
| 26117 | +var store = __webpack_require__(/*! ./_shared */ "../node_modules/core-js/modules/_shared.js")('wks'); | |
| 26118 | +var uid = __webpack_require__(/*! ./_uid */ "../node_modules/core-js/modules/_uid.js"); | |
| 26119 | +var Symbol = __webpack_require__(/*! ./_global */ "../node_modules/core-js/modules/_global.js").Symbol; | |
| 26120 | +var USE_SYMBOL = typeof Symbol == 'function'; | |
| 26121 | + | |
| 26122 | +var $exports = module.exports = function (name) { | |
| 26123 | + return store[name] || (store[name] = | |
| 26124 | + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); | |
| 26125 | +}; | |
| 26126 | + | |
| 26127 | +$exports.store = store; | |
| 26128 | + | |
| 26129 | + | |
| 26130 | +/***/ }), | |
| 26131 | + | |
| 26132 | +/***/ "../node_modules/core-js/modules/es6.array.filter.js": | |
| 26133 | +/*!***********************************************************!*\ | |
| 26134 | + !*** ../node_modules/core-js/modules/es6.array.filter.js ***! | |
| 26135 | + \***********************************************************/ | |
| 26136 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 26137 | + | |
| 26138 | +"use strict"; | |
| 26139 | + | |
| 26140 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/modules/_export.js"); | |
| 26141 | +var $filter = __webpack_require__(/*! ./_array-methods */ "../node_modules/core-js/modules/_array-methods.js")(2); | |
| 26142 | + | |
| 26143 | +$export($export.P + $export.F * !__webpack_require__(/*! ./_strict-method */ "../node_modules/core-js/modules/_strict-method.js")([].filter, true), 'Array', { | |
| 26144 | + // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg]) | |
| 26145 | + filter: function filter(callbackfn /* , thisArg */) { | |
| 26146 | + return $filter(this, callbackfn, arguments[1]); | |
| 26147 | + } | |
| 26148 | +}); | |
| 26149 | + | |
| 26150 | + | |
| 26151 | +/***/ }), | |
| 26152 | + | |
| 26153 | +/***/ "../node_modules/core-js/modules/es6.array.find-index.js": | |
| 26154 | +/*!***************************************************************!*\ | |
| 26155 | + !*** ../node_modules/core-js/modules/es6.array.find-index.js ***! | |
| 26156 | + \***************************************************************/ | |
| 26157 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 26158 | + | |
| 26159 | +"use strict"; | |
| 26160 | + | |
| 26161 | +// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined) | |
| 26162 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/modules/_export.js"); | |
| 26163 | +var $find = __webpack_require__(/*! ./_array-methods */ "../node_modules/core-js/modules/_array-methods.js")(6); | |
| 26164 | +var KEY = 'findIndex'; | |
| 26165 | +var forced = true; | |
| 26166 | +// Shouldn't skip holes | |
| 26167 | +if (KEY in []) Array(1)[KEY](function () { forced = false; }); | |
| 26168 | +$export($export.P + $export.F * forced, 'Array', { | |
| 26169 | + findIndex: function findIndex(callbackfn /* , that = undefined */) { | |
| 26170 | + return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); | |
| 26171 | + } | |
| 26172 | +}); | |
| 26173 | +__webpack_require__(/*! ./_add-to-unscopables */ "../node_modules/core-js/modules/_add-to-unscopables.js")(KEY); | |
| 26174 | + | |
| 26175 | + | |
| 26176 | +/***/ }), | |
| 26177 | + | |
| 26178 | +/***/ "../node_modules/core-js/modules/es6.array.find.js": | |
| 26179 | +/*!*********************************************************!*\ | |
| 26180 | + !*** ../node_modules/core-js/modules/es6.array.find.js ***! | |
| 26181 | + \*********************************************************/ | |
| 26182 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 26183 | + | |
| 26184 | +"use strict"; | |
| 26185 | + | |
| 26186 | +// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined) | |
| 26187 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/modules/_export.js"); | |
| 26188 | +var $find = __webpack_require__(/*! ./_array-methods */ "../node_modules/core-js/modules/_array-methods.js")(5); | |
| 26189 | +var KEY = 'find'; | |
| 26190 | +var forced = true; | |
| 26191 | +// Shouldn't skip holes | |
| 26192 | +if (KEY in []) Array(1)[KEY](function () { forced = false; }); | |
| 26193 | +$export($export.P + $export.F * forced, 'Array', { | |
| 26194 | + find: function find(callbackfn /* , that = undefined */) { | |
| 26195 | + return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); | |
| 26196 | + } | |
| 26197 | +}); | |
| 26198 | +__webpack_require__(/*! ./_add-to-unscopables */ "../node_modules/core-js/modules/_add-to-unscopables.js")(KEY); | |
| 26199 | + | |
| 26200 | + | |
| 26201 | +/***/ }), | |
| 26202 | + | |
| 26203 | +/***/ "../node_modules/core-js/modules/es6.array.iterator.js": | |
| 26204 | +/*!*************************************************************!*\ | |
| 26205 | + !*** ../node_modules/core-js/modules/es6.array.iterator.js ***! | |
| 26206 | + \*************************************************************/ | |
| 26207 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 26208 | + | |
| 26209 | +"use strict"; | |
| 26210 | + | |
| 26211 | +var addToUnscopables = __webpack_require__(/*! ./_add-to-unscopables */ "../node_modules/core-js/modules/_add-to-unscopables.js"); | |
| 26212 | +var step = __webpack_require__(/*! ./_iter-step */ "../node_modules/core-js/modules/_iter-step.js"); | |
| 26213 | +var Iterators = __webpack_require__(/*! ./_iterators */ "../node_modules/core-js/modules/_iterators.js"); | |
| 26214 | +var toIObject = __webpack_require__(/*! ./_to-iobject */ "../node_modules/core-js/modules/_to-iobject.js"); | |
| 26215 | + | |
| 26216 | +// 22.1.3.4 Array.prototype.entries() | |
| 26217 | +// 22.1.3.13 Array.prototype.keys() | |
| 26218 | +// 22.1.3.29 Array.prototype.values() | |
| 26219 | +// 22.1.3.30 Array.prototype[@@iterator]() | |
| 26220 | +module.exports = __webpack_require__(/*! ./_iter-define */ "../node_modules/core-js/modules/_iter-define.js")(Array, 'Array', function (iterated, kind) { | |
| 26221 | + this._t = toIObject(iterated); // target | |
| 26222 | + this._i = 0; // next index | |
| 26223 | + this._k = kind; // kind | |
| 26224 | +// 22.1.5.2.1 %ArrayIteratorPrototype%.next() | |
| 26225 | +}, function () { | |
| 26226 | + var O = this._t; | |
| 26227 | + var kind = this._k; | |
| 26228 | + var index = this._i++; | |
| 26229 | + if (!O || index >= O.length) { | |
| 26230 | + this._t = undefined; | |
| 26231 | + return step(1); | |
| 26232 | + } | |
| 26233 | + if (kind == 'keys') return step(0, index); | |
| 26234 | + if (kind == 'values') return step(0, O[index]); | |
| 26235 | + return step(0, [index, O[index]]); | |
| 26236 | +}, 'values'); | |
| 26237 | + | |
| 26238 | +// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) | |
| 26239 | +Iterators.Arguments = Iterators.Array; | |
| 26240 | + | |
| 26241 | +addToUnscopables('keys'); | |
| 26242 | +addToUnscopables('values'); | |
| 26243 | +addToUnscopables('entries'); | |
| 26244 | + | |
| 26245 | + | |
| 26246 | +/***/ }), | |
| 26247 | + | |
| 26248 | +/***/ "../node_modules/core-js/modules/es6.array.map.js": | |
| 26249 | +/*!********************************************************!*\ | |
| 26250 | + !*** ../node_modules/core-js/modules/es6.array.map.js ***! | |
| 26251 | + \********************************************************/ | |
| 26252 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 26253 | + | |
| 26254 | +"use strict"; | |
| 26255 | + | |
| 26256 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/modules/_export.js"); | |
| 26257 | +var $map = __webpack_require__(/*! ./_array-methods */ "../node_modules/core-js/modules/_array-methods.js")(1); | |
| 26258 | + | |
| 26259 | +$export($export.P + $export.F * !__webpack_require__(/*! ./_strict-method */ "../node_modules/core-js/modules/_strict-method.js")([].map, true), 'Array', { | |
| 26260 | + // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg]) | |
| 26261 | + map: function map(callbackfn /* , thisArg */) { | |
| 26262 | + return $map(this, callbackfn, arguments[1]); | |
| 26263 | + } | |
| 26264 | +}); | |
| 26265 | + | |
| 26266 | + | |
| 26267 | +/***/ }), | |
| 26268 | + | |
| 26269 | +/***/ "../node_modules/core-js/modules/es6.function.name.js": | |
| 26270 | +/*!************************************************************!*\ | |
| 26271 | + !*** ../node_modules/core-js/modules/es6.function.name.js ***! | |
| 26272 | + \************************************************************/ | |
| 26273 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 26274 | + | |
| 26275 | +var dP = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/modules/_object-dp.js").f; | |
| 26276 | +var FProto = Function.prototype; | |
| 26277 | +var nameRE = /^\s*function ([^ (]*)/; | |
| 26278 | +var NAME = 'name'; | |
| 26279 | + | |
| 26280 | +// 19.2.4.2 name | |
| 26281 | +NAME in FProto || __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/modules/_descriptors.js") && dP(FProto, NAME, { | |
| 26282 | + configurable: true, | |
| 26283 | + get: function () { | |
| 26284 | + try { | |
| 26285 | + return ('' + this).match(nameRE)[1]; | |
| 26286 | + } catch (e) { | |
| 26287 | + return ''; | |
| 26288 | + } | |
| 26289 | + } | |
| 26290 | +}); | |
| 26291 | + | |
| 26292 | + | |
| 26293 | +/***/ }), | |
| 26294 | + | |
| 26295 | +/***/ "../node_modules/core-js/modules/es6.number.constructor.js": | |
| 26296 | +/*!*****************************************************************!*\ | |
| 26297 | + !*** ../node_modules/core-js/modules/es6.number.constructor.js ***! | |
| 26298 | + \*****************************************************************/ | |
| 26299 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 26300 | + | |
| 26301 | +"use strict"; | |
| 26302 | + | |
| 26303 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/modules/_global.js"); | |
| 26304 | +var has = __webpack_require__(/*! ./_has */ "../node_modules/core-js/modules/_has.js"); | |
| 26305 | +var cof = __webpack_require__(/*! ./_cof */ "../node_modules/core-js/modules/_cof.js"); | |
| 26306 | +var inheritIfRequired = __webpack_require__(/*! ./_inherit-if-required */ "../node_modules/core-js/modules/_inherit-if-required.js"); | |
| 26307 | +var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "../node_modules/core-js/modules/_to-primitive.js"); | |
| 26308 | +var fails = __webpack_require__(/*! ./_fails */ "../node_modules/core-js/modules/_fails.js"); | |
| 26309 | +var gOPN = __webpack_require__(/*! ./_object-gopn */ "../node_modules/core-js/modules/_object-gopn.js").f; | |
| 26310 | +var gOPD = __webpack_require__(/*! ./_object-gopd */ "../node_modules/core-js/modules/_object-gopd.js").f; | |
| 26311 | +var dP = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/modules/_object-dp.js").f; | |
| 26312 | +var $trim = __webpack_require__(/*! ./_string-trim */ "../node_modules/core-js/modules/_string-trim.js").trim; | |
| 26313 | +var NUMBER = 'Number'; | |
| 26314 | +var $Number = global[NUMBER]; | |
| 26315 | +var Base = $Number; | |
| 26316 | +var proto = $Number.prototype; | |
| 26317 | +// Opera ~12 has broken Object#toString | |
| 26318 | +var BROKEN_COF = cof(__webpack_require__(/*! ./_object-create */ "../node_modules/core-js/modules/_object-create.js")(proto)) == NUMBER; | |
| 26319 | +var TRIM = 'trim' in String.prototype; | |
| 26320 | + | |
| 26321 | +// 7.1.3 ToNumber(argument) | |
| 26322 | +var toNumber = function (argument) { | |
| 26323 | + var it = toPrimitive(argument, false); | |
| 26324 | + if (typeof it == 'string' && it.length > 2) { | |
| 26325 | + it = TRIM ? it.trim() : $trim(it, 3); | |
| 26326 | + var first = it.charCodeAt(0); | |
| 26327 | + var third, radix, maxCode; | |
| 26328 | + if (first === 43 || first === 45) { | |
| 26329 | + third = it.charCodeAt(2); | |
| 26330 | + if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix | |
| 26331 | + } else if (first === 48) { | |
| 26332 | + switch (it.charCodeAt(1)) { | |
| 26333 | + case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i | |
| 26334 | + case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i | |
| 26335 | + default: return +it; | |
| 26336 | + } | |
| 26337 | + for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { | |
| 26338 | + code = digits.charCodeAt(i); | |
| 26339 | + // parseInt parses a string to a first unavailable symbol | |
| 26340 | + // but ToNumber should return NaN if a string contains unavailable symbols | |
| 26341 | + if (code < 48 || code > maxCode) return NaN; | |
| 26342 | + } return parseInt(digits, radix); | |
| 26343 | + } | |
| 26344 | + } return +it; | |
| 26345 | +}; | |
| 26346 | + | |
| 26347 | +if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { | |
| 26348 | + $Number = function Number(value) { | |
| 26349 | + var it = arguments.length < 1 ? 0 : value; | |
| 26350 | + var that = this; | |
| 26351 | + return that instanceof $Number | |
| 26352 | + // check on 1..constructor(foo) case | |
| 26353 | + && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER) | |
| 26354 | + ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); | |
| 26355 | + }; | |
| 26356 | + for (var keys = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/modules/_descriptors.js") ? gOPN(Base) : ( | |
| 26357 | + // ES3: | |
| 26358 | + 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + | |
| 26359 | + // ES6 (in case, if modules with ES6 Number statics required before): | |
| 26360 | + 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + | |
| 26361 | + 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' | |
| 26362 | + ).split(','), j = 0, key; keys.length > j; j++) { | |
| 26363 | + if (has(Base, key = keys[j]) && !has($Number, key)) { | |
| 26364 | + dP($Number, key, gOPD(Base, key)); | |
| 26365 | + } | |
| 26366 | + } | |
| 26367 | + $Number.prototype = proto; | |
| 26368 | + proto.constructor = $Number; | |
| 26369 | + __webpack_require__(/*! ./_redefine */ "../node_modules/core-js/modules/_redefine.js")(global, NUMBER, $Number); | |
| 1463 | 26370 | } |
| 1464 | -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1465 | 26371 | |
| 26372 | + | |
| 1466 | 26373 | /***/ }), |
| 1467 | 26374 | |
| 1468 | -/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js": | |
| 26375 | +/***/ "../node_modules/core-js/modules/es6.object.to-string.js": | |
| 1469 | 26376 | /*!***************************************************************!*\ |
| 1470 | - !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***! | |
| 26377 | + !*** ../node_modules/core-js/modules/es6.object.to-string.js ***! | |
| 1471 | 26378 | \***************************************************************/ |
| 1472 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 26379 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 1473 | 26380 | |
| 1474 | -var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); | |
| 1475 | -function _superPropBase(t, o) { | |
| 1476 | - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); | |
| 1477 | - return t; | |
| 26381 | +"use strict"; | |
| 26382 | + | |
| 26383 | +// 19.1.3.6 Object.prototype.toString() | |
| 26384 | +var classof = __webpack_require__(/*! ./_classof */ "../node_modules/core-js/modules/_classof.js"); | |
| 26385 | +var test = {}; | |
| 26386 | +test[__webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js")('toStringTag')] = 'z'; | |
| 26387 | +if (test + '' != '[object z]') { | |
| 26388 | + __webpack_require__(/*! ./_redefine */ "../node_modules/core-js/modules/_redefine.js")(Object.prototype, 'toString', function toString() { | |
| 26389 | + return '[object ' + classof(this) + ']'; | |
| 26390 | + }, true); | |
| 1478 | 26391 | } |
| 1479 | -module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1480 | 26392 | |
| 26393 | + | |
| 1481 | 26394 | /***/ }), |
| 1482 | 26395 | |
| 1483 | -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 26396 | +/***/ "../node_modules/core-js/modules/es6.regexp.constructor.js": | |
| 26397 | +/*!*****************************************************************!*\ | |
| 26398 | + !*** ../node_modules/core-js/modules/es6.regexp.constructor.js ***! | |
| 26399 | + \*****************************************************************/ | |
| 26400 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 26401 | + | |
| 26402 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/modules/_global.js"); | |
| 26403 | +var inheritIfRequired = __webpack_require__(/*! ./_inherit-if-required */ "../node_modules/core-js/modules/_inherit-if-required.js"); | |
| 26404 | +var dP = __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/modules/_object-dp.js").f; | |
| 26405 | +var gOPN = __webpack_require__(/*! ./_object-gopn */ "../node_modules/core-js/modules/_object-gopn.js").f; | |
| 26406 | +var isRegExp = __webpack_require__(/*! ./_is-regexp */ "../node_modules/core-js/modules/_is-regexp.js"); | |
| 26407 | +var $flags = __webpack_require__(/*! ./_flags */ "../node_modules/core-js/modules/_flags.js"); | |
| 26408 | +var $RegExp = global.RegExp; | |
| 26409 | +var Base = $RegExp; | |
| 26410 | +var proto = $RegExp.prototype; | |
| 26411 | +var re1 = /a/g; | |
| 26412 | +var re2 = /a/g; | |
| 26413 | +// "new" creates a new object, old webkit buggy here | |
| 26414 | +var CORRECT_NEW = new $RegExp(re1) !== re1; | |
| 26415 | + | |
| 26416 | +if (__webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/modules/_descriptors.js") && (!CORRECT_NEW || __webpack_require__(/*! ./_fails */ "../node_modules/core-js/modules/_fails.js")(function () { | |
| 26417 | + re2[__webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js")('match')] = false; | |
| 26418 | + // RegExp constructor can alter flags and IsRegExp works correct with @@match | |
| 26419 | + return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i'; | |
| 26420 | +}))) { | |
| 26421 | + $RegExp = function RegExp(p, f) { | |
| 26422 | + var tiRE = this instanceof $RegExp; | |
| 26423 | + var piRE = isRegExp(p); | |
| 26424 | + var fiU = f === undefined; | |
| 26425 | + return !tiRE && piRE && p.constructor === $RegExp && fiU ? p | |
| 26426 | + : inheritIfRequired(CORRECT_NEW | |
| 26427 | + ? new Base(piRE && !fiU ? p.source : p, f) | |
| 26428 | + : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f) | |
| 26429 | + , tiRE ? this : proto, $RegExp); | |
| 26430 | + }; | |
| 26431 | + var proxy = function (key) { | |
| 26432 | + key in $RegExp || dP($RegExp, key, { | |
| 26433 | + configurable: true, | |
| 26434 | + get: function () { return Base[key]; }, | |
| 26435 | + set: function (it) { Base[key] = it; } | |
| 26436 | + }); | |
| 26437 | + }; | |
| 26438 | + for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]); | |
| 26439 | + proto.constructor = $RegExp; | |
| 26440 | + $RegExp.prototype = proto; | |
| 26441 | + __webpack_require__(/*! ./_redefine */ "../node_modules/core-js/modules/_redefine.js")(global, 'RegExp', $RegExp); | |
| 26442 | +} | |
| 26443 | + | |
| 26444 | +__webpack_require__(/*! ./_set-species */ "../node_modules/core-js/modules/_set-species.js")('RegExp'); | |
| 26445 | + | |
| 26446 | + | |
| 26447 | +/***/ }), | |
| 26448 | + | |
| 26449 | +/***/ "../node_modules/core-js/modules/es6.regexp.exec.js": | |
| 26450 | +/*!**********************************************************!*\ | |
| 26451 | + !*** ../node_modules/core-js/modules/es6.regexp.exec.js ***! | |
| 26452 | + \**********************************************************/ | |
| 26453 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 26454 | + | |
| 26455 | +"use strict"; | |
| 26456 | + | |
| 26457 | +var regexpExec = __webpack_require__(/*! ./_regexp-exec */ "../node_modules/core-js/modules/_regexp-exec.js"); | |
| 26458 | +__webpack_require__(/*! ./_export */ "../node_modules/core-js/modules/_export.js")({ | |
| 26459 | + target: 'RegExp', | |
| 26460 | + proto: true, | |
| 26461 | + forced: regexpExec !== /./.exec | |
| 26462 | +}, { | |
| 26463 | + exec: regexpExec | |
| 26464 | +}); | |
| 26465 | + | |
| 26466 | + | |
| 26467 | +/***/ }), | |
| 26468 | + | |
| 26469 | +/***/ "../node_modules/core-js/modules/es6.regexp.flags.js": | |
| 26470 | +/*!***********************************************************!*\ | |
| 26471 | + !*** ../node_modules/core-js/modules/es6.regexp.flags.js ***! | |
| 26472 | + \***********************************************************/ | |
| 26473 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 26474 | + | |
| 26475 | +// 21.2.5.3 get RegExp.prototype.flags() | |
| 26476 | +if (__webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/modules/_descriptors.js") && /./g.flags != 'g') __webpack_require__(/*! ./_object-dp */ "../node_modules/core-js/modules/_object-dp.js").f(RegExp.prototype, 'flags', { | |
| 26477 | + configurable: true, | |
| 26478 | + get: __webpack_require__(/*! ./_flags */ "../node_modules/core-js/modules/_flags.js") | |
| 26479 | +}); | |
| 26480 | + | |
| 26481 | + | |
| 26482 | +/***/ }), | |
| 26483 | + | |
| 26484 | +/***/ "../node_modules/core-js/modules/es6.regexp.match.js": | |
| 26485 | +/*!***********************************************************!*\ | |
| 26486 | + !*** ../node_modules/core-js/modules/es6.regexp.match.js ***! | |
| 26487 | + \***********************************************************/ | |
| 26488 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 26489 | + | |
| 26490 | +"use strict"; | |
| 26491 | + | |
| 26492 | + | |
| 26493 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/modules/_an-object.js"); | |
| 26494 | +var toLength = __webpack_require__(/*! ./_to-length */ "../node_modules/core-js/modules/_to-length.js"); | |
| 26495 | +var advanceStringIndex = __webpack_require__(/*! ./_advance-string-index */ "../node_modules/core-js/modules/_advance-string-index.js"); | |
| 26496 | +var regExpExec = __webpack_require__(/*! ./_regexp-exec-abstract */ "../node_modules/core-js/modules/_regexp-exec-abstract.js"); | |
| 26497 | + | |
| 26498 | +// @@match logic | |
| 26499 | +__webpack_require__(/*! ./_fix-re-wks */ "../node_modules/core-js/modules/_fix-re-wks.js")('match', 1, function (defined, MATCH, $match, maybeCallNative) { | |
| 26500 | + return [ | |
| 26501 | + // `String.prototype.match` method | |
| 26502 | + // https://tc39.github.io/ecma262/#sec-string.prototype.match | |
| 26503 | + function match(regexp) { | |
| 26504 | + var O = defined(this); | |
| 26505 | + var fn = regexp == undefined ? undefined : regexp[MATCH]; | |
| 26506 | + return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O)); | |
| 26507 | + }, | |
| 26508 | + // `RegExp.prototype[@@match]` method | |
| 26509 | + // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match | |
| 26510 | + function (regexp) { | |
| 26511 | + var res = maybeCallNative($match, regexp, this); | |
| 26512 | + if (res.done) return res.value; | |
| 26513 | + var rx = anObject(regexp); | |
| 26514 | + var S = String(this); | |
| 26515 | + if (!rx.global) return regExpExec(rx, S); | |
| 26516 | + var fullUnicode = rx.unicode; | |
| 26517 | + rx.lastIndex = 0; | |
| 26518 | + var A = []; | |
| 26519 | + var n = 0; | |
| 26520 | + var result; | |
| 26521 | + while ((result = regExpExec(rx, S)) !== null) { | |
| 26522 | + var matchStr = String(result[0]); | |
| 26523 | + A[n] = matchStr; | |
| 26524 | + if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); | |
| 26525 | + n++; | |
| 26526 | + } | |
| 26527 | + return n === 0 ? null : A; | |
| 26528 | + } | |
| 26529 | + ]; | |
| 26530 | +}); | |
| 26531 | + | |
| 26532 | + | |
| 26533 | +/***/ }), | |
| 26534 | + | |
| 26535 | +/***/ "../node_modules/core-js/modules/es6.regexp.replace.js": | |
| 1484 | 26536 | /*!*************************************************************!*\ |
| 1485 | - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 26537 | + !*** ../node_modules/core-js/modules/es6.regexp.replace.js ***! | |
| 1486 | 26538 | \*************************************************************/ |
| 1487 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 26539 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 1488 | 26540 | |
| 1489 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 1490 | -function toPrimitive(t, r) { | |
| 1491 | - if ("object" != _typeof(t) || !t) return t; | |
| 1492 | - var e = t[Symbol.toPrimitive]; | |
| 1493 | - if (void 0 !== e) { | |
| 1494 | - var i = e.call(t, r || "default"); | |
| 1495 | - if ("object" != _typeof(i)) return i; | |
| 1496 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 26541 | +"use strict"; | |
| 26542 | + | |
| 26543 | + | |
| 26544 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/modules/_an-object.js"); | |
| 26545 | +var toObject = __webpack_require__(/*! ./_to-object */ "../node_modules/core-js/modules/_to-object.js"); | |
| 26546 | +var toLength = __webpack_require__(/*! ./_to-length */ "../node_modules/core-js/modules/_to-length.js"); | |
| 26547 | +var toInteger = __webpack_require__(/*! ./_to-integer */ "../node_modules/core-js/modules/_to-integer.js"); | |
| 26548 | +var advanceStringIndex = __webpack_require__(/*! ./_advance-string-index */ "../node_modules/core-js/modules/_advance-string-index.js"); | |
| 26549 | +var regExpExec = __webpack_require__(/*! ./_regexp-exec-abstract */ "../node_modules/core-js/modules/_regexp-exec-abstract.js"); | |
| 26550 | +var max = Math.max; | |
| 26551 | +var min = Math.min; | |
| 26552 | +var floor = Math.floor; | |
| 26553 | +var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g; | |
| 26554 | +var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g; | |
| 26555 | + | |
| 26556 | +var maybeToString = function (it) { | |
| 26557 | + return it === undefined ? it : String(it); | |
| 26558 | +}; | |
| 26559 | + | |
| 26560 | +// @@replace logic | |
| 26561 | +__webpack_require__(/*! ./_fix-re-wks */ "../node_modules/core-js/modules/_fix-re-wks.js")('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) { | |
| 26562 | + return [ | |
| 26563 | + // `String.prototype.replace` method | |
| 26564 | + // https://tc39.github.io/ecma262/#sec-string.prototype.replace | |
| 26565 | + function replace(searchValue, replaceValue) { | |
| 26566 | + var O = defined(this); | |
| 26567 | + var fn = searchValue == undefined ? undefined : searchValue[REPLACE]; | |
| 26568 | + return fn !== undefined | |
| 26569 | + ? fn.call(searchValue, O, replaceValue) | |
| 26570 | + : $replace.call(String(O), searchValue, replaceValue); | |
| 26571 | + }, | |
| 26572 | + // `RegExp.prototype[@@replace]` method | |
| 26573 | + // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace | |
| 26574 | + function (regexp, replaceValue) { | |
| 26575 | + var res = maybeCallNative($replace, regexp, this, replaceValue); | |
| 26576 | + if (res.done) return res.value; | |
| 26577 | + | |
| 26578 | + var rx = anObject(regexp); | |
| 26579 | + var S = String(this); | |
| 26580 | + var functionalReplace = typeof replaceValue === 'function'; | |
| 26581 | + if (!functionalReplace) replaceValue = String(replaceValue); | |
| 26582 | + var global = rx.global; | |
| 26583 | + if (global) { | |
| 26584 | + var fullUnicode = rx.unicode; | |
| 26585 | + rx.lastIndex = 0; | |
| 26586 | + } | |
| 26587 | + var results = []; | |
| 26588 | + while (true) { | |
| 26589 | + var result = regExpExec(rx, S); | |
| 26590 | + if (result === null) break; | |
| 26591 | + results.push(result); | |
| 26592 | + if (!global) break; | |
| 26593 | + var matchStr = String(result[0]); | |
| 26594 | + if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); | |
| 26595 | + } | |
| 26596 | + var accumulatedResult = ''; | |
| 26597 | + var nextSourcePosition = 0; | |
| 26598 | + for (var i = 0; i < results.length; i++) { | |
| 26599 | + result = results[i]; | |
| 26600 | + var matched = String(result[0]); | |
| 26601 | + var position = max(min(toInteger(result.index), S.length), 0); | |
| 26602 | + var captures = []; | |
| 26603 | + // NOTE: This is equivalent to | |
| 26604 | + // captures = result.slice(1).map(maybeToString) | |
| 26605 | + // but for some reason `nativeSlice.call(result, 1, result.length)` (called in | |
| 26606 | + // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and | |
| 26607 | + // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. | |
| 26608 | + for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j])); | |
| 26609 | + var namedCaptures = result.groups; | |
| 26610 | + if (functionalReplace) { | |
| 26611 | + var replacerArgs = [matched].concat(captures, position, S); | |
| 26612 | + if (namedCaptures !== undefined) replacerArgs.push(namedCaptures); | |
| 26613 | + var replacement = String(replaceValue.apply(undefined, replacerArgs)); | |
| 26614 | + } else { | |
| 26615 | + replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); | |
| 26616 | + } | |
| 26617 | + if (position >= nextSourcePosition) { | |
| 26618 | + accumulatedResult += S.slice(nextSourcePosition, position) + replacement; | |
| 26619 | + nextSourcePosition = position + matched.length; | |
| 26620 | + } | |
| 26621 | + } | |
| 26622 | + return accumulatedResult + S.slice(nextSourcePosition); | |
| 26623 | + } | |
| 26624 | + ]; | |
| 26625 | + | |
| 26626 | + // https://tc39.github.io/ecma262/#sec-getsubstitution | |
| 26627 | + function getSubstitution(matched, str, position, captures, namedCaptures, replacement) { | |
| 26628 | + var tailPos = position + matched.length; | |
| 26629 | + var m = captures.length; | |
| 26630 | + var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; | |
| 26631 | + if (namedCaptures !== undefined) { | |
| 26632 | + namedCaptures = toObject(namedCaptures); | |
| 26633 | + symbols = SUBSTITUTION_SYMBOLS; | |
| 26634 | + } | |
| 26635 | + return $replace.call(replacement, symbols, function (match, ch) { | |
| 26636 | + var capture; | |
| 26637 | + switch (ch.charAt(0)) { | |
| 26638 | + case '$': return '$'; | |
| 26639 | + case '&': return matched; | |
| 26640 | + case '`': return str.slice(0, position); | |
| 26641 | + case "'": return str.slice(tailPos); | |
| 26642 | + case '<': | |
| 26643 | + capture = namedCaptures[ch.slice(1, -1)]; | |
| 26644 | + break; | |
| 26645 | + default: // \d\d? | |
| 26646 | + var n = +ch; | |
| 26647 | + if (n === 0) return match; | |
| 26648 | + if (n > m) { | |
| 26649 | + var f = floor(n / 10); | |
| 26650 | + if (f === 0) return match; | |
| 26651 | + if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1); | |
| 26652 | + return match; | |
| 26653 | + } | |
| 26654 | + capture = captures[n - 1]; | |
| 26655 | + } | |
| 26656 | + return capture === undefined ? '' : capture; | |
| 26657 | + }); | |
| 1497 | 26658 | } |
| 1498 | - return ("string" === r ? String : Number)(t); | |
| 1499 | -} | |
| 1500 | -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 26659 | +}); | |
| 1501 | 26660 | |
| 26661 | + | |
| 1502 | 26662 | /***/ }), |
| 1503 | 26663 | |
| 1504 | -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 26664 | +/***/ "../node_modules/core-js/modules/es6.regexp.split.js": | |
| 26665 | +/*!***********************************************************!*\ | |
| 26666 | + !*** ../node_modules/core-js/modules/es6.regexp.split.js ***! | |
| 26667 | + \***********************************************************/ | |
| 26668 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 26669 | + | |
| 26670 | +"use strict"; | |
| 26671 | + | |
| 26672 | + | |
| 26673 | +var isRegExp = __webpack_require__(/*! ./_is-regexp */ "../node_modules/core-js/modules/_is-regexp.js"); | |
| 26674 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/modules/_an-object.js"); | |
| 26675 | +var speciesConstructor = __webpack_require__(/*! ./_species-constructor */ "../node_modules/core-js/modules/_species-constructor.js"); | |
| 26676 | +var advanceStringIndex = __webpack_require__(/*! ./_advance-string-index */ "../node_modules/core-js/modules/_advance-string-index.js"); | |
| 26677 | +var toLength = __webpack_require__(/*! ./_to-length */ "../node_modules/core-js/modules/_to-length.js"); | |
| 26678 | +var callRegExpExec = __webpack_require__(/*! ./_regexp-exec-abstract */ "../node_modules/core-js/modules/_regexp-exec-abstract.js"); | |
| 26679 | +var regexpExec = __webpack_require__(/*! ./_regexp-exec */ "../node_modules/core-js/modules/_regexp-exec.js"); | |
| 26680 | +var fails = __webpack_require__(/*! ./_fails */ "../node_modules/core-js/modules/_fails.js"); | |
| 26681 | +var $min = Math.min; | |
| 26682 | +var $push = [].push; | |
| 26683 | +var $SPLIT = 'split'; | |
| 26684 | +var LENGTH = 'length'; | |
| 26685 | +var LAST_INDEX = 'lastIndex'; | |
| 26686 | +var MAX_UINT32 = 0xffffffff; | |
| 26687 | + | |
| 26688 | +// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError | |
| 26689 | +var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); }); | |
| 26690 | + | |
| 26691 | +// @@split logic | |
| 26692 | +__webpack_require__(/*! ./_fix-re-wks */ "../node_modules/core-js/modules/_fix-re-wks.js")('split', 2, function (defined, SPLIT, $split, maybeCallNative) { | |
| 26693 | + var internalSplit; | |
| 26694 | + if ( | |
| 26695 | + 'abbc'[$SPLIT](/(b)*/)[1] == 'c' || | |
| 26696 | + 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 || | |
| 26697 | + 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 || | |
| 26698 | + '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 || | |
| 26699 | + '.'[$SPLIT](/()()/)[LENGTH] > 1 || | |
| 26700 | + ''[$SPLIT](/.?/)[LENGTH] | |
| 26701 | + ) { | |
| 26702 | + // based on es5-shim implementation, need to rework it | |
| 26703 | + internalSplit = function (separator, limit) { | |
| 26704 | + var string = String(this); | |
| 26705 | + if (separator === undefined && limit === 0) return []; | |
| 26706 | + // If `separator` is not a regex, use native split | |
| 26707 | + if (!isRegExp(separator)) return $split.call(string, separator, limit); | |
| 26708 | + var output = []; | |
| 26709 | + var flags = (separator.ignoreCase ? 'i' : '') + | |
| 26710 | + (separator.multiline ? 'm' : '') + | |
| 26711 | + (separator.unicode ? 'u' : '') + | |
| 26712 | + (separator.sticky ? 'y' : ''); | |
| 26713 | + var lastLastIndex = 0; | |
| 26714 | + var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0; | |
| 26715 | + // Make `global` and avoid `lastIndex` issues by working with a copy | |
| 26716 | + var separatorCopy = new RegExp(separator.source, flags + 'g'); | |
| 26717 | + var match, lastIndex, lastLength; | |
| 26718 | + while (match = regexpExec.call(separatorCopy, string)) { | |
| 26719 | + lastIndex = separatorCopy[LAST_INDEX]; | |
| 26720 | + if (lastIndex > lastLastIndex) { | |
| 26721 | + output.push(string.slice(lastLastIndex, match.index)); | |
| 26722 | + if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1)); | |
| 26723 | + lastLength = match[0][LENGTH]; | |
| 26724 | + lastLastIndex = lastIndex; | |
| 26725 | + if (output[LENGTH] >= splitLimit) break; | |
| 26726 | + } | |
| 26727 | + if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop | |
| 26728 | + } | |
| 26729 | + if (lastLastIndex === string[LENGTH]) { | |
| 26730 | + if (lastLength || !separatorCopy.test('')) output.push(''); | |
| 26731 | + } else output.push(string.slice(lastLastIndex)); | |
| 26732 | + return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output; | |
| 26733 | + }; | |
| 26734 | + // Chakra, V8 | |
| 26735 | + } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) { | |
| 26736 | + internalSplit = function (separator, limit) { | |
| 26737 | + return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit); | |
| 26738 | + }; | |
| 26739 | + } else { | |
| 26740 | + internalSplit = $split; | |
| 26741 | + } | |
| 26742 | + | |
| 26743 | + return [ | |
| 26744 | + // `String.prototype.split` method | |
| 26745 | + // https://tc39.github.io/ecma262/#sec-string.prototype.split | |
| 26746 | + function split(separator, limit) { | |
| 26747 | + var O = defined(this); | |
| 26748 | + var splitter = separator == undefined ? undefined : separator[SPLIT]; | |
| 26749 | + return splitter !== undefined | |
| 26750 | + ? splitter.call(separator, O, limit) | |
| 26751 | + : internalSplit.call(String(O), separator, limit); | |
| 26752 | + }, | |
| 26753 | + // `RegExp.prototype[@@split]` method | |
| 26754 | + // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split | |
| 26755 | + // | |
| 26756 | + // NOTE: This cannot be properly polyfilled in engines that don't support | |
| 26757 | + // the 'y' flag. | |
| 26758 | + function (regexp, limit) { | |
| 26759 | + var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split); | |
| 26760 | + if (res.done) return res.value; | |
| 26761 | + | |
| 26762 | + var rx = anObject(regexp); | |
| 26763 | + var S = String(this); | |
| 26764 | + var C = speciesConstructor(rx, RegExp); | |
| 26765 | + | |
| 26766 | + var unicodeMatching = rx.unicode; | |
| 26767 | + var flags = (rx.ignoreCase ? 'i' : '') + | |
| 26768 | + (rx.multiline ? 'm' : '') + | |
| 26769 | + (rx.unicode ? 'u' : '') + | |
| 26770 | + (SUPPORTS_Y ? 'y' : 'g'); | |
| 26771 | + | |
| 26772 | + // ^(? + rx + ) is needed, in combination with some S slicing, to | |
| 26773 | + // simulate the 'y' flag. | |
| 26774 | + var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags); | |
| 26775 | + var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; | |
| 26776 | + if (lim === 0) return []; | |
| 26777 | + if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : []; | |
| 26778 | + var p = 0; | |
| 26779 | + var q = 0; | |
| 26780 | + var A = []; | |
| 26781 | + while (q < S.length) { | |
| 26782 | + splitter.lastIndex = SUPPORTS_Y ? q : 0; | |
| 26783 | + var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q)); | |
| 26784 | + var e; | |
| 26785 | + if ( | |
| 26786 | + z === null || | |
| 26787 | + (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p | |
| 26788 | + ) { | |
| 26789 | + q = advanceStringIndex(S, q, unicodeMatching); | |
| 26790 | + } else { | |
| 26791 | + A.push(S.slice(p, q)); | |
| 26792 | + if (A.length === lim) return A; | |
| 26793 | + for (var i = 1; i <= z.length - 1; i++) { | |
| 26794 | + A.push(z[i]); | |
| 26795 | + if (A.length === lim) return A; | |
| 26796 | + } | |
| 26797 | + q = p = e; | |
| 26798 | + } | |
| 26799 | + } | |
| 26800 | + A.push(S.slice(p)); | |
| 26801 | + return A; | |
| 26802 | + } | |
| 26803 | + ]; | |
| 26804 | +}); | |
| 26805 | + | |
| 26806 | + | |
| 26807 | +/***/ }), | |
| 26808 | + | |
| 26809 | +/***/ "../node_modules/core-js/modules/es6.regexp.to-string.js": | |
| 1505 | 26810 | /*!***************************************************************!*\ |
| 1506 | - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 26811 | + !*** ../node_modules/core-js/modules/es6.regexp.to-string.js ***! | |
| 1507 | 26812 | \***************************************************************/ |
| 1508 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 26813 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 1509 | 26814 | |
| 1510 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 1511 | -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 1512 | -function toPropertyKey(t) { | |
| 1513 | - var i = toPrimitive(t, "string"); | |
| 1514 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 26815 | +"use strict"; | |
| 26816 | + | |
| 26817 | +__webpack_require__(/*! ./es6.regexp.flags */ "../node_modules/core-js/modules/es6.regexp.flags.js"); | |
| 26818 | +var anObject = __webpack_require__(/*! ./_an-object */ "../node_modules/core-js/modules/_an-object.js"); | |
| 26819 | +var $flags = __webpack_require__(/*! ./_flags */ "../node_modules/core-js/modules/_flags.js"); | |
| 26820 | +var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "../node_modules/core-js/modules/_descriptors.js"); | |
| 26821 | +var TO_STRING = 'toString'; | |
| 26822 | +var $toString = /./[TO_STRING]; | |
| 26823 | + | |
| 26824 | +var define = function (fn) { | |
| 26825 | + __webpack_require__(/*! ./_redefine */ "../node_modules/core-js/modules/_redefine.js")(RegExp.prototype, TO_STRING, fn, true); | |
| 26826 | +}; | |
| 26827 | + | |
| 26828 | +// 21.2.5.14 RegExp.prototype.toString() | |
| 26829 | +if (__webpack_require__(/*! ./_fails */ "../node_modules/core-js/modules/_fails.js")(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) { | |
| 26830 | + define(function toString() { | |
| 26831 | + var R = anObject(this); | |
| 26832 | + return '/'.concat(R.source, '/', | |
| 26833 | + 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined); | |
| 26834 | + }); | |
| 26835 | +// FF44- RegExp#toString has a wrong name | |
| 26836 | +} else if ($toString.name != TO_STRING) { | |
| 26837 | + define(function toString() { | |
| 26838 | + return $toString.call(this); | |
| 26839 | + }); | |
| 1515 | 26840 | } |
| 1516 | -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1517 | 26841 | |
| 26842 | + | |
| 1518 | 26843 | /***/ }), |
| 1519 | 26844 | |
| 1520 | -/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 1521 | -/*!********************************************************!*\ | |
| 1522 | - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 1523 | - \********************************************************/ | |
| 26845 | +/***/ "../node_modules/core-js/modules/es6.string.includes.js": | |
| 26846 | +/*!**************************************************************!*\ | |
| 26847 | + !*** ../node_modules/core-js/modules/es6.string.includes.js ***! | |
| 26848 | + \**************************************************************/ | |
| 26849 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 26850 | + | |
| 26851 | +"use strict"; | |
| 26852 | +// 21.1.3.7 String.prototype.includes(searchString, position = 0) | |
| 26853 | + | |
| 26854 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/modules/_export.js"); | |
| 26855 | +var context = __webpack_require__(/*! ./_string-context */ "../node_modules/core-js/modules/_string-context.js"); | |
| 26856 | +var INCLUDES = 'includes'; | |
| 26857 | + | |
| 26858 | +$export($export.P + $export.F * __webpack_require__(/*! ./_fails-is-regexp */ "../node_modules/core-js/modules/_fails-is-regexp.js")(INCLUDES), 'String', { | |
| 26859 | + includes: function includes(searchString /* , position = 0 */) { | |
| 26860 | + return !!~context(this, searchString, INCLUDES) | |
| 26861 | + .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined); | |
| 26862 | + } | |
| 26863 | +}); | |
| 26864 | + | |
| 26865 | + | |
| 26866 | +/***/ }), | |
| 26867 | + | |
| 26868 | +/***/ "../node_modules/core-js/modules/es6.string.iterator.js": | |
| 26869 | +/*!**************************************************************!*\ | |
| 26870 | + !*** ../node_modules/core-js/modules/es6.string.iterator.js ***! | |
| 26871 | + \**************************************************************/ | |
| 26872 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 26873 | + | |
| 26874 | +"use strict"; | |
| 26875 | + | |
| 26876 | +var $at = __webpack_require__(/*! ./_string-at */ "../node_modules/core-js/modules/_string-at.js")(true); | |
| 26877 | + | |
| 26878 | +// 21.1.3.27 String.prototype[@@iterator]() | |
| 26879 | +__webpack_require__(/*! ./_iter-define */ "../node_modules/core-js/modules/_iter-define.js")(String, 'String', function (iterated) { | |
| 26880 | + this._t = String(iterated); // target | |
| 26881 | + this._i = 0; // next index | |
| 26882 | +// 21.1.5.2.1 %StringIteratorPrototype%.next() | |
| 26883 | +}, function () { | |
| 26884 | + var O = this._t; | |
| 26885 | + var index = this._i; | |
| 26886 | + var point; | |
| 26887 | + if (index >= O.length) return { value: undefined, done: true }; | |
| 26888 | + point = $at(O, index); | |
| 26889 | + this._i += point.length; | |
| 26890 | + return { value: point, done: false }; | |
| 26891 | +}); | |
| 26892 | + | |
| 26893 | + | |
| 26894 | +/***/ }), | |
| 26895 | + | |
| 26896 | +/***/ "../node_modules/core-js/modules/es7.array.includes.js": | |
| 26897 | +/*!*************************************************************!*\ | |
| 26898 | + !*** ../node_modules/core-js/modules/es7.array.includes.js ***! | |
| 26899 | + \*************************************************************/ | |
| 26900 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 26901 | + | |
| 26902 | +"use strict"; | |
| 26903 | + | |
| 26904 | +// https://github.com/tc39/Array.prototype.includes | |
| 26905 | +var $export = __webpack_require__(/*! ./_export */ "../node_modules/core-js/modules/_export.js"); | |
| 26906 | +var $includes = __webpack_require__(/*! ./_array-includes */ "../node_modules/core-js/modules/_array-includes.js")(true); | |
| 26907 | + | |
| 26908 | +$export($export.P, 'Array', { | |
| 26909 | + includes: function includes(el /* , fromIndex = 0 */) { | |
| 26910 | + return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); | |
| 26911 | + } | |
| 26912 | +}); | |
| 26913 | + | |
| 26914 | +__webpack_require__(/*! ./_add-to-unscopables */ "../node_modules/core-js/modules/_add-to-unscopables.js")('includes'); | |
| 26915 | + | |
| 26916 | + | |
| 26917 | +/***/ }), | |
| 26918 | + | |
| 26919 | +/***/ "../node_modules/core-js/modules/web.dom.iterable.js": | |
| 26920 | +/*!***********************************************************!*\ | |
| 26921 | + !*** ../node_modules/core-js/modules/web.dom.iterable.js ***! | |
| 26922 | + \***********************************************************/ | |
| 26923 | +/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 26924 | + | |
| 26925 | +var $iterators = __webpack_require__(/*! ./es6.array.iterator */ "../node_modules/core-js/modules/es6.array.iterator.js"); | |
| 26926 | +var getKeys = __webpack_require__(/*! ./_object-keys */ "../node_modules/core-js/modules/_object-keys.js"); | |
| 26927 | +var redefine = __webpack_require__(/*! ./_redefine */ "../node_modules/core-js/modules/_redefine.js"); | |
| 26928 | +var global = __webpack_require__(/*! ./_global */ "../node_modules/core-js/modules/_global.js"); | |
| 26929 | +var hide = __webpack_require__(/*! ./_hide */ "../node_modules/core-js/modules/_hide.js"); | |
| 26930 | +var Iterators = __webpack_require__(/*! ./_iterators */ "../node_modules/core-js/modules/_iterators.js"); | |
| 26931 | +var wks = __webpack_require__(/*! ./_wks */ "../node_modules/core-js/modules/_wks.js"); | |
| 26932 | +var ITERATOR = wks('iterator'); | |
| 26933 | +var TO_STRING_TAG = wks('toStringTag'); | |
| 26934 | +var ArrayValues = Iterators.Array; | |
| 26935 | + | |
| 26936 | +var DOMIterables = { | |
| 26937 | + CSSRuleList: true, // TODO: Not spec compliant, should be false. | |
| 26938 | + CSSStyleDeclaration: false, | |
| 26939 | + CSSValueList: false, | |
| 26940 | + ClientRectList: false, | |
| 26941 | + DOMRectList: false, | |
| 26942 | + DOMStringList: false, | |
| 26943 | + DOMTokenList: true, | |
| 26944 | + DataTransferItemList: false, | |
| 26945 | + FileList: false, | |
| 26946 | + HTMLAllCollection: false, | |
| 26947 | + HTMLCollection: false, | |
| 26948 | + HTMLFormElement: false, | |
| 26949 | + HTMLSelectElement: false, | |
| 26950 | + MediaList: true, // TODO: Not spec compliant, should be false. | |
| 26951 | + MimeTypeArray: false, | |
| 26952 | + NamedNodeMap: false, | |
| 26953 | + NodeList: true, | |
| 26954 | + PaintRequestList: false, | |
| 26955 | + Plugin: false, | |
| 26956 | + PluginArray: false, | |
| 26957 | + SVGLengthList: false, | |
| 26958 | + SVGNumberList: false, | |
| 26959 | + SVGPathSegList: false, | |
| 26960 | + SVGPointList: false, | |
| 26961 | + SVGStringList: false, | |
| 26962 | + SVGTransformList: false, | |
| 26963 | + SourceBufferList: false, | |
| 26964 | + StyleSheetList: true, // TODO: Not spec compliant, should be false. | |
| 26965 | + TextTrackCueList: false, | |
| 26966 | + TextTrackList: false, | |
| 26967 | + TouchList: false | |
| 26968 | +}; | |
| 26969 | + | |
| 26970 | +for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) { | |
| 26971 | + var NAME = collections[i]; | |
| 26972 | + var explicit = DOMIterables[NAME]; | |
| 26973 | + var Collection = global[NAME]; | |
| 26974 | + var proto = Collection && Collection.prototype; | |
| 26975 | + var key; | |
| 26976 | + if (proto) { | |
| 26977 | + if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); | |
| 26978 | + if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); | |
| 26979 | + Iterators[NAME] = ArrayValues; | |
| 26980 | + if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); | |
| 26981 | + } | |
| 26982 | +} | |
| 26983 | + | |
| 26984 | + | |
| 26985 | +/***/ }), | |
| 26986 | + | |
| 26987 | +/***/ "../node_modules/immer/dist/immer.esm.js": | |
| 26988 | +/*!***********************************************!*\ | |
| 26989 | + !*** ../node_modules/immer/dist/immer.esm.js ***! | |
| 26990 | + \***********************************************/ | |
| 26991 | +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 26992 | + | |
| 26993 | +"use strict"; | |
| 26994 | +__webpack_require__.r(__webpack_exports__); | |
| 26995 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 26996 | +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), | |
| 26997 | +/* harmony export */ "Immer": () => (/* binding */ un), | |
| 26998 | +/* harmony export */ "applyPatches": () => (/* binding */ pn), | |
| 26999 | +/* harmony export */ "castDraft": () => (/* binding */ K), | |
| 27000 | +/* harmony export */ "castImmutable": () => (/* binding */ $), | |
| 27001 | +/* harmony export */ "createDraft": () => (/* binding */ ln), | |
| 27002 | +/* harmony export */ "current": () => (/* binding */ D), | |
| 27003 | +/* harmony export */ "enableAllPlugins": () => (/* binding */ J), | |
| 27004 | +/* harmony export */ "enableES5": () => (/* binding */ N), | |
| 27005 | +/* harmony export */ "enableMapSet": () => (/* binding */ C), | |
| 27006 | +/* harmony export */ "enablePatches": () => (/* binding */ T), | |
| 27007 | +/* harmony export */ "finishDraft": () => (/* binding */ dn), | |
| 27008 | +/* harmony export */ "freeze": () => (/* binding */ d), | |
| 27009 | +/* harmony export */ "immerable": () => (/* binding */ L), | |
| 27010 | +/* harmony export */ "isDraft": () => (/* binding */ t), | |
| 27011 | +/* harmony export */ "isDraftable": () => (/* binding */ r), | |
| 27012 | +/* harmony export */ "nothing": () => (/* binding */ H), | |
| 27013 | +/* harmony export */ "original": () => (/* binding */ e), | |
| 27014 | +/* harmony export */ "produce": () => (/* binding */ fn), | |
| 27015 | +/* harmony export */ "produceWithPatches": () => (/* binding */ cn), | |
| 27016 | +/* harmony export */ "setAutoFreeze": () => (/* binding */ sn), | |
| 27017 | +/* harmony export */ "setUseProxies": () => (/* binding */ vn) | |
| 27018 | +/* harmony export */ }); | |
| 27019 | +function n(n){for(var t=arguments.length,r=Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];if(true){var i=Y[n],o=i?"function"==typeof i?i.apply(null,r):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+n+(r.length?" "+r.map((function(n){return"'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function t(n){return!!n&&!!n[Q]}function r(n){return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var t=Object.getPrototypeOf(n);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Z}(n)||Array.isArray(n)||!!n[L]||!!n.constructor[L]||s(n)||v(n))}function e(r){return t(r)||n(23,r),r[Q].t}function i(n,t,r){void 0===r&&(r=!1),0===o(n)?(r?Object.keys:nn)(n).forEach((function(e){r&&"symbol"==typeof e||t(e,n[e],n)})):n.forEach((function(r,e){return t(e,r,n)}))}function o(n){var t=n[Q];return t?t.i>3?t.i-4:t.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,t){return 2===o(n)?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function a(n,t){return 2===o(n)?n.get(t):n[t]}function f(n,t,r){var e=o(n);2===e?n.set(t,r):3===e?(n.delete(t),n.add(r)):n[t]=r}function c(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var t=tn(n);delete t[Q];for(var r=nn(t),e=0;e<r.length;e++){var i=r[e],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]})}return Object.create(Object.getPrototypeOf(n),t)}function d(n,e){return void 0===e&&(e=!1),y(n)||t(n)||!r(n)?n:(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,t){return d(t,!0)}),!0),n)}function h(){n(2)}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(t){var r=rn[t];return r||n(18,t),r}function m(n,t){rn[n]||(rn[n]=t)}function _(){return false||U||n(0),U}function j(n,t){t&&(b("Patches"),n.u=[],n.s=[],n.v=t)}function O(n){g(n),n.p.forEach(S),n.p=null}function g(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var t=n[Q];0===t.i||1===t.i?t.j():t.O=!0}function P(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.g||b("ES5").S(e,t,o),o?(i[Q].P&&(O(e),n(4)),r(t)&&(t=M(e,t),e.l||x(e,t)),e.u&&b("Patches").M(i[Q],t,e.u,e.s)):t=M(e,i,[]),O(e),e.u&&e.v(e.u,e.s),t!==H?t:void 0}function M(n,t,r){if(y(t))return t;var e=t[Q];if(!e)return i(t,(function(i,o){return A(n,e,t,i,o,r)}),!0),t;if(e.A!==n)return t;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o;i(3===e.i?new Set(o):o,(function(t,i){return A(n,e,o,t,i,r)})),x(n,o,!1),r&&n.u&&b("Patches").R(e,r,n.u,n.s)}return e.o}function A(e,i,o,a,c,s){if( true&&c===o&&n(5),t(c)){var v=M(e,c,s&&i&&3!==i.i&&!u(i.D,a)?s.concat(a):void 0);if(f(o,a,v),!t(v))return;e.m=!1}if(r(c)&&!y(c)){if(!e.h.F&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,t,r){void 0===r&&(r=!1),n.h.F&&n.m&&d(t,r)}function z(n,t){var r=n[Q];return(r?p(r):n)[t]}function I(n,t){if(t in n)for(var r=Object.getPrototypeOf(n);r;){var e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function R(n,t,r){var e=s(t)?b("MapSet").N(t,r):v(t)?b("MapSet").T(t,r):n.g?function(n,t){var r=Array.isArray(n),e={i:r?1:0,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;r&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(t,r):b("ES5").J(t,r);return(r?r.A:_()).p.push(e),e}function D(e){return t(e)||n(22,e),function n(t){if(!r(t))return t;var e,u=t[Q],c=o(t);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=F(t,c),u.I=!1}else e=F(t,c);return i(e,(function(t,r){u&&a(u.t,t)===r||f(e,t,n(r))})),3===c?new Set(e):e}(e)}function F(n,t){switch(t){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function N(){function r(n,t){var r=s[n];return r?r.enumerable=t:s[n]=r={configurable:!0,enumerable:t,get:function(){var t=this[Q];return true&&f(t),en.get(t,n)},set:function(t){var r=this[Q]; true&&f(r),en.set(r,n,t)}},r}function e(n){for(var t=n.length-1;t>=0;t--){var r=n[t][Q];if(!r.P)switch(r.i){case 5:a(r)&&k(r);break;case 4:o(r)&&k(r)}}}function o(n){for(var t=n.t,r=n.k,e=nn(r),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=t[o];if(void 0===a&&!u(t,o))return!0;var f=r[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!t[Q];return e.length!==nn(t).length+(v?0:1)}function a(n){var t=n.k;if(t.length!==n.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!r||r.get)}function f(t){t.O&&n(3,JSON.stringify(p(t)))}var s={};m("ES5",{J:function(n,t){var e=Array.isArray(n),i=function(n,t){if(n){for(var e=Array(t.length),i=0;i<t.length;i++)Object.defineProperty(e,""+i,r(i,!0));return e}var o=tn(t);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=r(f,n||!!o[f].enumerable)}return Object.create(Object.getPrototypeOf(t),o)}(e,n),o={i:e?5:4,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:n,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,r,o){o?t(r)&&r[Q].A===n&&e(n.p):(n.u&&function n(t){if(t&&"object"==typeof t){var r=t[Q];if(r){var e=r.t,o=r.k,f=r.D,c=r.i;if(4===c)i(o,(function(t){t!==Q&&(void 0!==e[t]||u(e,t)?f[t]||n(o[t]):(f[t]=!0,k(r)))})),i(e,(function(n){void 0!==o[n]||u(o,n)||(f[n]=!1,k(r))}));else if(5===c){if(a(r)&&(k(r),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)void 0===f[l]&&n(o[l])}}}}(n.p[0]),e(n.p))},K:function(n){return 4===n.i?o(n):a(n)}})}function T(){function e(n){if(!r(n))return n;if(Array.isArray(n))return n.map(e);if(s(n))return new Map(Array.from(n.entries()).map((function(n){return[n[0],e(n[1])]})));if(v(n))return new Set(Array.from(n).map(e));var t=Object.create(Object.getPrototypeOf(n));for(var i in n)t[i]=e(n[i]);return u(n,L)&&(t[L]=n[L]),t}function f(n){return t(n)?e(n):n}var c="add";m("Patches",{$:function(t,r){return r.forEach((function(r){for(var i=r.path,u=r.op,f=t,s=0;s<i.length-1;s++){var v=o(f),p=""+i[s];0!==v&&1!==v||"__proto__"!==p&&"constructor"!==p||n(24),"function"==typeof f&&"prototype"===p&&n(24),"object"!=typeof(f=a(f,p))&&n(15,i.join("/"))}var l=o(f),d=e(r.value),h=i[i.length-1];switch(u){case"replace":switch(l){case 2:return f.set(h,d);case 3:n(16);default:return f[h]=d}case c:switch(l){case 1:return"-"===h?f.push(d):f.splice(h,0,d);case 2:return f.set(h,d);case 3:return f.add(d);default:return f[h]=d}case"remove":switch(l){case 1:return f.splice(h,1);case 2:return f.delete(h);case 3:return f.delete(r.value);default:return delete f[h]}default:n(17,u)}})),t},R:function(n,t,r,e){switch(n.i){case 0:case 4:case 2:return function(n,t,r,e){var o=n.t,s=n.o;i(n.D,(function(n,i){var v=a(o,n),p=a(s,n),l=i?u(o,n)?"replace":c:"remove";if(v!==p||"replace"!==l){var d=t.concat(n);r.push("remove"===l?{op:l,path:d}:{op:l,path:d,value:p}),e.push(l===c?{op:"remove",path:d}:"remove"===l?{op:c,path:d,value:f(v)}:{op:"replace",path:d,value:f(v)})}}))}(n,t,r,e);case 5:case 1:return function(n,t,r,e){var i=n.t,o=n.D,u=n.o;if(u.length<i.length){var a=[u,i];i=a[0],u=a[1];var s=[e,r];r=s[0],e=s[1]}for(var v=0;v<i.length;v++)if(o[v]&&u[v]!==i[v]){var p=t.concat([v]);r.push({op:"replace",path:p,value:f(u[v])}),e.push({op:"replace",path:p,value:f(i[v])})}for(var l=i.length;l<u.length;l++){var d=t.concat([l]);r.push({op:c,path:d,value:f(u[l])})}i.length<u.length&&e.push({op:"replace",path:t.concat(["length"]),value:i.length})}(n,t,r,e);case 3:return function(n,t,r,e){var i=n.t,o=n.o,u=0;i.forEach((function(n){if(!o.has(n)){var i=t.concat([u]);r.push({op:"remove",path:i,value:n}),e.unshift({op:c,path:i,value:n})}u++})),u=0,o.forEach((function(n){if(!i.has(n)){var o=t.concat([u]);r.push({op:c,path:o,value:n}),e.unshift({op:"remove",path:o,value:n})}u++}))}(n,t,r,e)}},M:function(n,t,r,e){r.push({op:"replace",path:[],value:t===H?void 0:t}),e.push({op:"replace",path:[],value:n.t})}})}function C(){function t(n,t){function r(){this.constructor=n}a(n,t),n.prototype=(r.prototype=t.prototype,new r)}function e(n){n.o||(n.D=new Map,n.o=new Map(n.t))}function o(n){n.o||(n.o=new Set,n.t.forEach((function(t){if(r(t)){var e=R(n.A.h,t,n);n.p.set(t,e),n.o.add(e)}else n.o.add(t)})))}function u(t){t.O&&n(3,JSON.stringify(p(t)))}var a=function(n,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)},f=function(){function n(n,t){return this[Q]={i:2,l:t,A:t?t.A:_(),P:!1,I:!1,o:void 0,D:void 0,t:n,k:this,C:!1,O:!1},this}t(n,Map);var o=n.prototype;return Object.defineProperty(o,"size",{get:function(){return p(this[Q]).size}}),o.has=function(n){return p(this[Q]).has(n)},o.set=function(n,t){var r=this[Q];return u(r),p(r).has(n)&&p(r).get(n)===t||(e(r),k(r),r.D.set(n,!0),r.o.set(n,t),r.D.set(n,!0)),this},o.delete=function(n){if(!this.has(n))return!1;var t=this[Q];return u(t),e(t),k(t),t.D.set(n,!1),t.o.delete(n),!0},o.clear=function(){var n=this[Q];u(n),p(n).size&&(e(n),k(n),n.D=new Map,i(n.t,(function(t){n.D.set(t,!1)})),n.o.clear())},o.forEach=function(n,t){var r=this;p(this[Q]).forEach((function(e,i){n.call(t,r.get(i),i,r)}))},o.get=function(n){var t=this[Q];u(t);var i=p(t).get(n);if(t.I||!r(i))return i;if(i!==t.t.get(n))return i;var o=R(t.A.h,i,t);return e(t),t.o.set(n,o),o},o.keys=function(){return p(this[Q]).keys()},o.values=function(){var n,t=this,r=this.keys();return(n={})[V]=function(){return t.values()},n.next=function(){var n=r.next();return n.done?n:{done:!1,value:t.get(n.value)}},n},o.entries=function(){var n,t=this,r=this.keys();return(n={})[V]=function(){return t.entries()},n.next=function(){var n=r.next();if(n.done)return n;var e=t.get(n.value);return{done:!1,value:[n.value,e]}},n},o[V]=function(){return this.entries()},n}(),c=function(){function n(n,t){return this[Q]={i:3,l:t,A:t?t.A:_(),P:!1,I:!1,o:void 0,t:n,k:this,p:new Map,O:!1,C:!1},this}t(n,Set);var r=n.prototype;return Object.defineProperty(r,"size",{get:function(){return p(this[Q]).size}}),r.has=function(n){var t=this[Q];return u(t),t.o?!!t.o.has(n)||!(!t.p.has(n)||!t.o.has(t.p.get(n))):t.t.has(n)},r.add=function(n){var t=this[Q];return u(t),this.has(n)||(o(t),k(t),t.o.add(n)),this},r.delete=function(n){if(!this.has(n))return!1;var t=this[Q];return u(t),o(t),k(t),t.o.delete(n)||!!t.p.has(n)&&t.o.delete(t.p.get(n))},r.clear=function(){var n=this[Q];u(n),p(n).size&&(o(n),k(n),n.o.clear())},r.values=function(){var n=this[Q];return u(n),o(n),n.o.values()},r.entries=function(){var n=this[Q];return u(n),o(n),n.o.entries()},r.keys=function(){return this.values()},r[V]=function(){return this.values()},r.forEach=function(n,t){for(var r=this.values(),e=r.next();!e.done;)n.call(t,e.value,e.value,this),e=r.next()},n}();m("MapSet",{N:function(n,t){return new f(n,t)},T:function(n,t){return new c(n,t)}})}function J(){N(),C(),T()}function K(n){return n}function $(n){return n}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",V="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return"Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return"Unsupported patch operation: "+n},18:function(n){return"The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return"'current' expects a draft, got: "+n},23:function(n){return"'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,tn=Object.getOwnPropertyDescriptors||function(n){var t={};return nn(n).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(n,r)})),t},rn={},en={get:function(n,t){if(t===Q)return n;var e=p(n);if(!u(e,t))return function(n,t,r){var e,i=I(t,r);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,t);var i=e[t];return n.I||!r(i)?i:i===z(n.t,t)?(E(n),n.o[t]=R(n.A.h,i,n)):i},has:function(n,t){return t in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,t,r){var e=I(p(n),t);if(null==e?void 0:e.set)return e.set.call(n.k,r),!0;if(!n.P){var i=z(p(n),t),o=null==i?void 0:i[Q];if(o&&o.t===r)return n.o[t]=r,n.D[t]=!1,!0;if(c(r,i)&&(void 0!==r||u(n.t,t)))return!0;E(n),k(n)}return n.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in n.o)||(n.o[t]=r,n.D[t]=!0,!0)},deleteProperty:function(n,t){return void 0!==z(n.t,t)||t in n.t?(n.D[t]=!1,E(n),k(n)):delete n.D[t],n.o&&delete n.o[t],!0},getOwnPropertyDescriptor:function(n,t){var r=p(n),e=Reflect.getOwnPropertyDescriptor(r,t);return e?{writable:!0,configurable:1!==n.i||"length"!==t,enumerable:e.enumerable,value:r[t]}:e},defineProperty:function(){n(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12)}},on={};i(en,(function(n,t){on[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),on.deleteProperty=function(t,r){return true&&isNaN(parseInt(r))&&n(13),en.deleteProperty.call(this,t[0],r)},on.set=function(t,r,e){return true&&"length"!==r&&isNaN(parseInt(r))&&n(14),en.set.call(this,t[0],r,e,t[0])};var un=function(){function e(t){var e=this;this.g=B,this.F=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var u=i;i=t;var a=e;return function(n){var t=this;void 0===n&&(n=u);for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var r;return(r=i).call.apply(r,[t,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),r(t)){var c=w(e),s=R(e,t,void 0),v=!0;try{f=i(s),v=!1}finally{v?O(c):g(c)}return"undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw O(c),n})):(j(c,o),P(f,c))}if(!t||"object"!=typeof t){if((f=i(t))===H)return;return void 0===f&&(f=t),e.F&&d(f,!0),f}n(21,t)},this.produceWithPatches=function(n,t){return"function"==typeof n?function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.produceWithPatches(t,(function(t){return n.apply(void 0,[t].concat(i))}))}:[e.produce(n,t,(function(n,t){r=n,i=t})),r,i];var r,i},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var i=e.prototype;return i.createDraft=function(e){r(e)||n(8),t(e)&&(e=D(e));var i=w(this),o=R(this,e,void 0);return o[Q].C=!0,g(i),o},i.finishDraft=function(t,r){var e=t&&t[Q]; true&&(e&&e.C||n(9),e.I&&n(10));var i=e.A;return j(i,r),P(void 0,i)},i.setAutoFreeze=function(n){this.F=n},i.setUseProxies=function(t){t&&!B&&n(20),this.g=t},i.applyPatches=function(n,r){var e;for(e=r.length-1;e>=0;e--){var i=r[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(r=r.slice(e+1));var o=b("Patches").$;return t(n)?o(n,r):this.produce(n,(function(n){return o(n,r)}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (fn); | |
| 27020 | +//# sourceMappingURL=immer.esm.js.map | |
| 27021 | + | |
| 27022 | + | |
| 27023 | +/***/ }), | |
| 27024 | + | |
| 27025 | +/***/ "../node_modules/redux-thunk/es/index.js": | |
| 27026 | +/*!***********************************************!*\ | |
| 27027 | + !*** ../node_modules/redux-thunk/es/index.js ***! | |
| 27028 | + \***********************************************/ | |
| 27029 | +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 27030 | + | |
| 27031 | +"use strict"; | |
| 27032 | +__webpack_require__.r(__webpack_exports__); | |
| 27033 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 27034 | +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) | |
| 27035 | +/* harmony export */ }); | |
| 27036 | +/** A function that accepts a potential "extra argument" value to be injected later, | |
| 27037 | + * and returns an instance of the thunk middleware that uses that value | |
| 27038 | + */ | |
| 27039 | +function createThunkMiddleware(extraArgument) { | |
| 27040 | + // Standard Redux middleware definition pattern: | |
| 27041 | + // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware | |
| 27042 | + var middleware = function middleware(_ref) { | |
| 27043 | + var dispatch = _ref.dispatch, | |
| 27044 | + getState = _ref.getState; | |
| 27045 | + return function (next) { | |
| 27046 | + return function (action) { | |
| 27047 | + // The thunk middleware looks for any functions that were passed to `store.dispatch`. | |
| 27048 | + // If this "action" is really a function, call it and return the result. | |
| 27049 | + if (typeof action === 'function') { | |
| 27050 | + // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg" | |
| 27051 | + return action(dispatch, getState, extraArgument); | |
| 27052 | + } // Otherwise, pass the action down the middleware chain as usual | |
| 27053 | + | |
| 27054 | + | |
| 27055 | + return next(action); | |
| 27056 | + }; | |
| 27057 | + }; | |
| 27058 | + }; | |
| 27059 | + | |
| 27060 | + return middleware; | |
| 27061 | +} | |
| 27062 | + | |
| 27063 | +var thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version | |
| 27064 | +// with whatever "extra arg" they want to inject into their thunks | |
| 27065 | + | |
| 27066 | +thunk.withExtraArgument = createThunkMiddleware; | |
| 27067 | +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (thunk); | |
| 27068 | + | |
| 27069 | +/***/ }), | |
| 27070 | + | |
| 27071 | +/***/ "../node_modules/redux/es/redux.js": | |
| 27072 | +/*!*****************************************!*\ | |
| 27073 | + !*** ../node_modules/redux/es/redux.js ***! | |
| 27074 | + \*****************************************/ | |
| 27075 | +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 27076 | + | |
| 27077 | +"use strict"; | |
| 27078 | +__webpack_require__.r(__webpack_exports__); | |
| 27079 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 27080 | +/* harmony export */ "__DO_NOT_USE__ActionTypes": () => (/* binding */ ActionTypes), | |
| 27081 | +/* harmony export */ "applyMiddleware": () => (/* binding */ applyMiddleware), | |
| 27082 | +/* harmony export */ "bindActionCreators": () => (/* binding */ bindActionCreators), | |
| 27083 | +/* harmony export */ "combineReducers": () => (/* binding */ combineReducers), | |
| 27084 | +/* harmony export */ "compose": () => (/* binding */ compose), | |
| 27085 | +/* harmony export */ "createStore": () => (/* binding */ createStore) | |
| 27086 | +/* harmony export */ }); | |
| 27087 | +/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js"); | |
| 27088 | + | |
| 27089 | + | |
| 27090 | +/** | |
| 27091 | + * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js | |
| 27092 | + * | |
| 27093 | + * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes | |
| 27094 | + * during build. | |
| 27095 | + * @param {number} code | |
| 27096 | + */ | |
| 27097 | +function formatProdErrorMessage(code) { | |
| 27098 | + return "Minified Redux error #" + code + "; visit https://redux.js.org/Errors?code=" + code + " for the full message or " + 'use the non-minified dev environment for full errors. '; | |
| 27099 | +} | |
| 27100 | + | |
| 27101 | +// Inlined version of the `symbol-observable` polyfill | |
| 27102 | +var $$observable = (function () { | |
| 27103 | + return typeof Symbol === 'function' && Symbol.observable || '@@observable'; | |
| 27104 | +})(); | |
| 27105 | + | |
| 27106 | +/** | |
| 27107 | + * These are private action types reserved by Redux. | |
| 27108 | + * For any unknown actions, you must return the current state. | |
| 27109 | + * If the current state is undefined, you must return the initial state. | |
| 27110 | + * Do not reference these action types directly in your code. | |
| 27111 | + */ | |
| 27112 | +var randomString = function randomString() { | |
| 27113 | + return Math.random().toString(36).substring(7).split('').join('.'); | |
| 27114 | +}; | |
| 27115 | + | |
| 27116 | +var ActionTypes = { | |
| 27117 | + INIT: "@@redux/INIT" + randomString(), | |
| 27118 | + REPLACE: "@@redux/REPLACE" + randomString(), | |
| 27119 | + PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() { | |
| 27120 | + return "@@redux/PROBE_UNKNOWN_ACTION" + randomString(); | |
| 27121 | + } | |
| 27122 | +}; | |
| 27123 | + | |
| 27124 | +/** | |
| 27125 | + * @param {any} obj The object to inspect. | |
| 27126 | + * @returns {boolean} True if the argument appears to be a plain object. | |
| 27127 | + */ | |
| 27128 | +function isPlainObject(obj) { | |
| 27129 | + if (typeof obj !== 'object' || obj === null) return false; | |
| 27130 | + var proto = obj; | |
| 27131 | + | |
| 27132 | + while (Object.getPrototypeOf(proto) !== null) { | |
| 27133 | + proto = Object.getPrototypeOf(proto); | |
| 27134 | + } | |
| 27135 | + | |
| 27136 | + return Object.getPrototypeOf(obj) === proto; | |
| 27137 | +} | |
| 27138 | + | |
| 27139 | +// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of | |
| 27140 | +function miniKindOf(val) { | |
| 27141 | + if (val === void 0) return 'undefined'; | |
| 27142 | + if (val === null) return 'null'; | |
| 27143 | + var type = typeof val; | |
| 27144 | + | |
| 27145 | + switch (type) { | |
| 27146 | + case 'boolean': | |
| 27147 | + case 'string': | |
| 27148 | + case 'number': | |
| 27149 | + case 'symbol': | |
| 27150 | + case 'function': | |
| 27151 | + { | |
| 27152 | + return type; | |
| 27153 | + } | |
| 27154 | + } | |
| 27155 | + | |
| 27156 | + if (Array.isArray(val)) return 'array'; | |
| 27157 | + if (isDate(val)) return 'date'; | |
| 27158 | + if (isError(val)) return 'error'; | |
| 27159 | + var constructorName = ctorName(val); | |
| 27160 | + | |
| 27161 | + switch (constructorName) { | |
| 27162 | + case 'Symbol': | |
| 27163 | + case 'Promise': | |
| 27164 | + case 'WeakMap': | |
| 27165 | + case 'WeakSet': | |
| 27166 | + case 'Map': | |
| 27167 | + case 'Set': | |
| 27168 | + return constructorName; | |
| 27169 | + } // other | |
| 27170 | + | |
| 27171 | + | |
| 27172 | + return type.slice(8, -1).toLowerCase().replace(/\s/g, ''); | |
| 27173 | +} | |
| 27174 | + | |
| 27175 | +function ctorName(val) { | |
| 27176 | + return typeof val.constructor === 'function' ? val.constructor.name : null; | |
| 27177 | +} | |
| 27178 | + | |
| 27179 | +function isError(val) { | |
| 27180 | + return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number'; | |
| 27181 | +} | |
| 27182 | + | |
| 27183 | +function isDate(val) { | |
| 27184 | + if (val instanceof Date) return true; | |
| 27185 | + return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function'; | |
| 27186 | +} | |
| 27187 | + | |
| 27188 | +function kindOf(val) { | |
| 27189 | + var typeOfVal = typeof val; | |
| 27190 | + | |
| 27191 | + if (true) { | |
| 27192 | + typeOfVal = miniKindOf(val); | |
| 27193 | + } | |
| 27194 | + | |
| 27195 | + return typeOfVal; | |
| 27196 | +} | |
| 27197 | + | |
| 27198 | +/** | |
| 27199 | + * Creates a Redux store that holds the state tree. | |
| 27200 | + * The only way to change the data in the store is to call `dispatch()` on it. | |
| 27201 | + * | |
| 27202 | + * There should only be a single store in your app. To specify how different | |
| 27203 | + * parts of the state tree respond to actions, you may combine several reducers | |
| 27204 | + * into a single reducer function by using `combineReducers`. | |
| 27205 | + * | |
| 27206 | + * @param {Function} reducer A function that returns the next state tree, given | |
| 27207 | + * the current state tree and the action to handle. | |
| 27208 | + * | |
| 27209 | + * @param {any} [preloadedState] The initial state. You may optionally specify it | |
| 27210 | + * to hydrate the state from the server in universal apps, or to restore a | |
| 27211 | + * previously serialized user session. | |
| 27212 | + * If you use `combineReducers` to produce the root reducer function, this must be | |
| 27213 | + * an object with the same shape as `combineReducers` keys. | |
| 27214 | + * | |
| 27215 | + * @param {Function} [enhancer] The store enhancer. You may optionally specify it | |
| 27216 | + * to enhance the store with third-party capabilities such as middleware, | |
| 27217 | + * time travel, persistence, etc. The only store enhancer that ships with Redux | |
| 27218 | + * is `applyMiddleware()`. | |
| 27219 | + * | |
| 27220 | + * @returns {Store} A Redux store that lets you read the state, dispatch actions | |
| 27221 | + * and subscribe to changes. | |
| 27222 | + */ | |
| 27223 | + | |
| 27224 | +function createStore(reducer, preloadedState, enhancer) { | |
| 27225 | + var _ref2; | |
| 27226 | + | |
| 27227 | + if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') { | |
| 27228 | + throw new Error( false ? 0 : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.'); | |
| 27229 | + } | |
| 27230 | + | |
| 27231 | + if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') { | |
| 27232 | + enhancer = preloadedState; | |
| 27233 | + preloadedState = undefined; | |
| 27234 | + } | |
| 27235 | + | |
| 27236 | + if (typeof enhancer !== 'undefined') { | |
| 27237 | + if (typeof enhancer !== 'function') { | |
| 27238 | + throw new Error( false ? 0 : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'"); | |
| 27239 | + } | |
| 27240 | + | |
| 27241 | + return enhancer(createStore)(reducer, preloadedState); | |
| 27242 | + } | |
| 27243 | + | |
| 27244 | + if (typeof reducer !== 'function') { | |
| 27245 | + throw new Error( false ? 0 : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'"); | |
| 27246 | + } | |
| 27247 | + | |
| 27248 | + var currentReducer = reducer; | |
| 27249 | + var currentState = preloadedState; | |
| 27250 | + var currentListeners = []; | |
| 27251 | + var nextListeners = currentListeners; | |
| 27252 | + var isDispatching = false; | |
| 27253 | + /** | |
| 27254 | + * This makes a shallow copy of currentListeners so we can use | |
| 27255 | + * nextListeners as a temporary list while dispatching. | |
| 27256 | + * | |
| 27257 | + * This prevents any bugs around consumers calling | |
| 27258 | + * subscribe/unsubscribe in the middle of a dispatch. | |
| 27259 | + */ | |
| 27260 | + | |
| 27261 | + function ensureCanMutateNextListeners() { | |
| 27262 | + if (nextListeners === currentListeners) { | |
| 27263 | + nextListeners = currentListeners.slice(); | |
| 27264 | + } | |
| 27265 | + } | |
| 27266 | + /** | |
| 27267 | + * Reads the state tree managed by the store. | |
| 27268 | + * | |
| 27269 | + * @returns {any} The current state tree of your application. | |
| 27270 | + */ | |
| 27271 | + | |
| 27272 | + | |
| 27273 | + function getState() { | |
| 27274 | + if (isDispatching) { | |
| 27275 | + throw new Error( false ? 0 : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.'); | |
| 27276 | + } | |
| 27277 | + | |
| 27278 | + return currentState; | |
| 27279 | + } | |
| 27280 | + /** | |
| 27281 | + * Adds a change listener. It will be called any time an action is dispatched, | |
| 27282 | + * and some part of the state tree may potentially have changed. You may then | |
| 27283 | + * call `getState()` to read the current state tree inside the callback. | |
| 27284 | + * | |
| 27285 | + * You may call `dispatch()` from a change listener, with the following | |
| 27286 | + * caveats: | |
| 27287 | + * | |
| 27288 | + * 1. The subscriptions are snapshotted just before every `dispatch()` call. | |
| 27289 | + * If you subscribe or unsubscribe while the listeners are being invoked, this | |
| 27290 | + * will not have any effect on the `dispatch()` that is currently in progress. | |
| 27291 | + * However, the next `dispatch()` call, whether nested or not, will use a more | |
| 27292 | + * recent snapshot of the subscription list. | |
| 27293 | + * | |
| 27294 | + * 2. The listener should not expect to see all state changes, as the state | |
| 27295 | + * might have been updated multiple times during a nested `dispatch()` before | |
| 27296 | + * the listener is called. It is, however, guaranteed that all subscribers | |
| 27297 | + * registered before the `dispatch()` started will be called with the latest | |
| 27298 | + * state by the time it exits. | |
| 27299 | + * | |
| 27300 | + * @param {Function} listener A callback to be invoked on every dispatch. | |
| 27301 | + * @returns {Function} A function to remove this change listener. | |
| 27302 | + */ | |
| 27303 | + | |
| 27304 | + | |
| 27305 | + function subscribe(listener) { | |
| 27306 | + if (typeof listener !== 'function') { | |
| 27307 | + throw new Error( false ? 0 : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'"); | |
| 27308 | + } | |
| 27309 | + | |
| 27310 | + if (isDispatching) { | |
| 27311 | + throw new Error( false ? 0 : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.'); | |
| 27312 | + } | |
| 27313 | + | |
| 27314 | + var isSubscribed = true; | |
| 27315 | + ensureCanMutateNextListeners(); | |
| 27316 | + nextListeners.push(listener); | |
| 27317 | + return function unsubscribe() { | |
| 27318 | + if (!isSubscribed) { | |
| 27319 | + return; | |
| 27320 | + } | |
| 27321 | + | |
| 27322 | + if (isDispatching) { | |
| 27323 | + throw new Error( false ? 0 : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.'); | |
| 27324 | + } | |
| 27325 | + | |
| 27326 | + isSubscribed = false; | |
| 27327 | + ensureCanMutateNextListeners(); | |
| 27328 | + var index = nextListeners.indexOf(listener); | |
| 27329 | + nextListeners.splice(index, 1); | |
| 27330 | + currentListeners = null; | |
| 27331 | + }; | |
| 27332 | + } | |
| 27333 | + /** | |
| 27334 | + * Dispatches an action. It is the only way to trigger a state change. | |
| 27335 | + * | |
| 27336 | + * The `reducer` function, used to create the store, will be called with the | |
| 27337 | + * current state tree and the given `action`. Its return value will | |
| 27338 | + * be considered the **next** state of the tree, and the change listeners | |
| 27339 | + * will be notified. | |
| 27340 | + * | |
| 27341 | + * The base implementation only supports plain object actions. If you want to | |
| 27342 | + * dispatch a Promise, an Observable, a thunk, or something else, you need to | |
| 27343 | + * wrap your store creating function into the corresponding middleware. For | |
| 27344 | + * example, see the documentation for the `redux-thunk` package. Even the | |
| 27345 | + * middleware will eventually dispatch plain object actions using this method. | |
| 27346 | + * | |
| 27347 | + * @param {Object} action A plain object representing “what changed”. It is | |
| 27348 | + * a good idea to keep actions serializable so you can record and replay user | |
| 27349 | + * sessions, or use the time travelling `redux-devtools`. An action must have | |
| 27350 | + * a `type` property which may not be `undefined`. It is a good idea to use | |
| 27351 | + * string constants for action types. | |
| 27352 | + * | |
| 27353 | + * @returns {Object} For convenience, the same action object you dispatched. | |
| 27354 | + * | |
| 27355 | + * Note that, if you use a custom middleware, it may wrap `dispatch()` to | |
| 27356 | + * return something else (for example, a Promise you can await). | |
| 27357 | + */ | |
| 27358 | + | |
| 27359 | + | |
| 27360 | + function dispatch(action) { | |
| 27361 | + if (!isPlainObject(action)) { | |
| 27362 | + throw new Error( false ? 0 : "Actions must be plain objects. Instead, the actual type was: '" + kindOf(action) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples."); | |
| 27363 | + } | |
| 27364 | + | |
| 27365 | + if (typeof action.type === 'undefined') { | |
| 27366 | + throw new Error( false ? 0 : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.'); | |
| 27367 | + } | |
| 27368 | + | |
| 27369 | + if (isDispatching) { | |
| 27370 | + throw new Error( false ? 0 : 'Reducers may not dispatch actions.'); | |
| 27371 | + } | |
| 27372 | + | |
| 27373 | + try { | |
| 27374 | + isDispatching = true; | |
| 27375 | + currentState = currentReducer(currentState, action); | |
| 27376 | + } finally { | |
| 27377 | + isDispatching = false; | |
| 27378 | + } | |
| 27379 | + | |
| 27380 | + var listeners = currentListeners = nextListeners; | |
| 27381 | + | |
| 27382 | + for (var i = 0; i < listeners.length; i++) { | |
| 27383 | + var listener = listeners[i]; | |
| 27384 | + listener(); | |
| 27385 | + } | |
| 27386 | + | |
| 27387 | + return action; | |
| 27388 | + } | |
| 27389 | + /** | |
| 27390 | + * Replaces the reducer currently used by the store to calculate the state. | |
| 27391 | + * | |
| 27392 | + * You might need this if your app implements code splitting and you want to | |
| 27393 | + * load some of the reducers dynamically. You might also need this if you | |
| 27394 | + * implement a hot reloading mechanism for Redux. | |
| 27395 | + * | |
| 27396 | + * @param {Function} nextReducer The reducer for the store to use instead. | |
| 27397 | + * @returns {void} | |
| 27398 | + */ | |
| 27399 | + | |
| 27400 | + | |
| 27401 | + function replaceReducer(nextReducer) { | |
| 27402 | + if (typeof nextReducer !== 'function') { | |
| 27403 | + throw new Error( false ? 0 : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer)); | |
| 27404 | + } | |
| 27405 | + | |
| 27406 | + currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT. | |
| 27407 | + // Any reducers that existed in both the new and old rootReducer | |
| 27408 | + // will receive the previous state. This effectively populates | |
| 27409 | + // the new state tree with any relevant data from the old one. | |
| 27410 | + | |
| 27411 | + dispatch({ | |
| 27412 | + type: ActionTypes.REPLACE | |
| 27413 | + }); | |
| 27414 | + } | |
| 27415 | + /** | |
| 27416 | + * Interoperability point for observable/reactive libraries. | |
| 27417 | + * @returns {observable} A minimal observable of state changes. | |
| 27418 | + * For more information, see the observable proposal: | |
| 27419 | + * https://github.com/tc39/proposal-observable | |
| 27420 | + */ | |
| 27421 | + | |
| 27422 | + | |
| 27423 | + function observable() { | |
| 27424 | + var _ref; | |
| 27425 | + | |
| 27426 | + var outerSubscribe = subscribe; | |
| 27427 | + return _ref = { | |
| 27428 | + /** | |
| 27429 | + * The minimal observable subscription method. | |
| 27430 | + * @param {Object} observer Any object that can be used as an observer. | |
| 27431 | + * The observer object should have a `next` method. | |
| 27432 | + * @returns {subscription} An object with an `unsubscribe` method that can | |
| 27433 | + * be used to unsubscribe the observable from the store, and prevent further | |
| 27434 | + * emission of values from the observable. | |
| 27435 | + */ | |
| 27436 | + subscribe: function subscribe(observer) { | |
| 27437 | + if (typeof observer !== 'object' || observer === null) { | |
| 27438 | + throw new Error( false ? 0 : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'"); | |
| 27439 | + } | |
| 27440 | + | |
| 27441 | + function observeState() { | |
| 27442 | + if (observer.next) { | |
| 27443 | + observer.next(getState()); | |
| 27444 | + } | |
| 27445 | + } | |
| 27446 | + | |
| 27447 | + observeState(); | |
| 27448 | + var unsubscribe = outerSubscribe(observeState); | |
| 27449 | + return { | |
| 27450 | + unsubscribe: unsubscribe | |
| 27451 | + }; | |
| 27452 | + } | |
| 27453 | + }, _ref[$$observable] = function () { | |
| 27454 | + return this; | |
| 27455 | + }, _ref; | |
| 27456 | + } // When a store is created, an "INIT" action is dispatched so that every | |
| 27457 | + // reducer returns their initial state. This effectively populates | |
| 27458 | + // the initial state tree. | |
| 27459 | + | |
| 27460 | + | |
| 27461 | + dispatch({ | |
| 27462 | + type: ActionTypes.INIT | |
| 27463 | + }); | |
| 27464 | + return _ref2 = { | |
| 27465 | + dispatch: dispatch, | |
| 27466 | + subscribe: subscribe, | |
| 27467 | + getState: getState, | |
| 27468 | + replaceReducer: replaceReducer | |
| 27469 | + }, _ref2[$$observable] = observable, _ref2; | |
| 27470 | +} | |
| 27471 | + | |
| 27472 | +/** | |
| 27473 | + * Prints a warning in the console if it exists. | |
| 27474 | + * | |
| 27475 | + * @param {String} message The warning message. | |
| 27476 | + * @returns {void} | |
| 27477 | + */ | |
| 27478 | +function warning(message) { | |
| 27479 | + /* eslint-disable no-console */ | |
| 27480 | + if (typeof console !== 'undefined' && typeof console.error === 'function') { | |
| 27481 | + console.error(message); | |
| 27482 | + } | |
| 27483 | + /* eslint-enable no-console */ | |
| 27484 | + | |
| 27485 | + | |
| 27486 | + try { | |
| 27487 | + // This error was thrown as a convenience so that if you enable | |
| 27488 | + // "break on all exceptions" in your console, | |
| 27489 | + // it would pause the execution at this line. | |
| 27490 | + throw new Error(message); | |
| 27491 | + } catch (e) {} // eslint-disable-line no-empty | |
| 27492 | + | |
| 27493 | +} | |
| 27494 | + | |
| 27495 | +function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) { | |
| 27496 | + var reducerKeys = Object.keys(reducers); | |
| 27497 | + var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer'; | |
| 27498 | + | |
| 27499 | + if (reducerKeys.length === 0) { | |
| 27500 | + return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.'; | |
| 27501 | + } | |
| 27502 | + | |
| 27503 | + if (!isPlainObject(inputState)) { | |
| 27504 | + return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\""); | |
| 27505 | + } | |
| 27506 | + | |
| 27507 | + var unexpectedKeys = Object.keys(inputState).filter(function (key) { | |
| 27508 | + return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key]; | |
| 27509 | + }); | |
| 27510 | + unexpectedKeys.forEach(function (key) { | |
| 27511 | + unexpectedKeyCache[key] = true; | |
| 27512 | + }); | |
| 27513 | + if (action && action.type === ActionTypes.REPLACE) return; | |
| 27514 | + | |
| 27515 | + if (unexpectedKeys.length > 0) { | |
| 27516 | + return "Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored."); | |
| 27517 | + } | |
| 27518 | +} | |
| 27519 | + | |
| 27520 | +function assertReducerShape(reducers) { | |
| 27521 | + Object.keys(reducers).forEach(function (key) { | |
| 27522 | + var reducer = reducers[key]; | |
| 27523 | + var initialState = reducer(undefined, { | |
| 27524 | + type: ActionTypes.INIT | |
| 27525 | + }); | |
| 27526 | + | |
| 27527 | + if (typeof initialState === 'undefined') { | |
| 27528 | + throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined."); | |
| 27529 | + } | |
| 27530 | + | |
| 27531 | + if (typeof reducer(undefined, { | |
| 27532 | + type: ActionTypes.PROBE_UNKNOWN_ACTION() | |
| 27533 | + }) === 'undefined') { | |
| 27534 | + throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle '" + ActionTypes.INIT + "' or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null."); | |
| 27535 | + } | |
| 27536 | + }); | |
| 27537 | +} | |
| 27538 | +/** | |
| 27539 | + * Turns an object whose values are different reducer functions, into a single | |
| 27540 | + * reducer function. It will call every child reducer, and gather their results | |
| 27541 | + * into a single state object, whose keys correspond to the keys of the passed | |
| 27542 | + * reducer functions. | |
| 27543 | + * | |
| 27544 | + * @param {Object} reducers An object whose values correspond to different | |
| 27545 | + * reducer functions that need to be combined into one. One handy way to obtain | |
| 27546 | + * it is to use ES6 `import * as reducers` syntax. The reducers may never return | |
| 27547 | + * undefined for any action. Instead, they should return their initial state | |
| 27548 | + * if the state passed to them was undefined, and the current state for any | |
| 27549 | + * unrecognized action. | |
| 27550 | + * | |
| 27551 | + * @returns {Function} A reducer function that invokes every reducer inside the | |
| 27552 | + * passed object, and builds a state object with the same shape. | |
| 27553 | + */ | |
| 27554 | + | |
| 27555 | + | |
| 27556 | +function combineReducers(reducers) { | |
| 27557 | + var reducerKeys = Object.keys(reducers); | |
| 27558 | + var finalReducers = {}; | |
| 27559 | + | |
| 27560 | + for (var i = 0; i < reducerKeys.length; i++) { | |
| 27561 | + var key = reducerKeys[i]; | |
| 27562 | + | |
| 27563 | + if (true) { | |
| 27564 | + if (typeof reducers[key] === 'undefined') { | |
| 27565 | + warning("No reducer provided for key \"" + key + "\""); | |
| 27566 | + } | |
| 27567 | + } | |
| 27568 | + | |
| 27569 | + if (typeof reducers[key] === 'function') { | |
| 27570 | + finalReducers[key] = reducers[key]; | |
| 27571 | + } | |
| 27572 | + } | |
| 27573 | + | |
| 27574 | + var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same | |
| 27575 | + // keys multiple times. | |
| 27576 | + | |
| 27577 | + var unexpectedKeyCache; | |
| 27578 | + | |
| 27579 | + if (true) { | |
| 27580 | + unexpectedKeyCache = {}; | |
| 27581 | + } | |
| 27582 | + | |
| 27583 | + var shapeAssertionError; | |
| 27584 | + | |
| 27585 | + try { | |
| 27586 | + assertReducerShape(finalReducers); | |
| 27587 | + } catch (e) { | |
| 27588 | + shapeAssertionError = e; | |
| 27589 | + } | |
| 27590 | + | |
| 27591 | + return function combination(state, action) { | |
| 27592 | + if (state === void 0) { | |
| 27593 | + state = {}; | |
| 27594 | + } | |
| 27595 | + | |
| 27596 | + if (shapeAssertionError) { | |
| 27597 | + throw shapeAssertionError; | |
| 27598 | + } | |
| 27599 | + | |
| 27600 | + if (true) { | |
| 27601 | + var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache); | |
| 27602 | + | |
| 27603 | + if (warningMessage) { | |
| 27604 | + warning(warningMessage); | |
| 27605 | + } | |
| 27606 | + } | |
| 27607 | + | |
| 27608 | + var hasChanged = false; | |
| 27609 | + var nextState = {}; | |
| 27610 | + | |
| 27611 | + for (var _i = 0; _i < finalReducerKeys.length; _i++) { | |
| 27612 | + var _key = finalReducerKeys[_i]; | |
| 27613 | + var reducer = finalReducers[_key]; | |
| 27614 | + var previousStateForKey = state[_key]; | |
| 27615 | + var nextStateForKey = reducer(previousStateForKey, action); | |
| 27616 | + | |
| 27617 | + if (typeof nextStateForKey === 'undefined') { | |
| 27618 | + var actionType = action && action.type; | |
| 27619 | + throw new Error( false ? 0 : "When called with an action of type " + (actionType ? "\"" + String(actionType) + "\"" : '(unknown type)') + ", the slice reducer for key \"" + _key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined."); | |
| 27620 | + } | |
| 27621 | + | |
| 27622 | + nextState[_key] = nextStateForKey; | |
| 27623 | + hasChanged = hasChanged || nextStateForKey !== previousStateForKey; | |
| 27624 | + } | |
| 27625 | + | |
| 27626 | + hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length; | |
| 27627 | + return hasChanged ? nextState : state; | |
| 27628 | + }; | |
| 27629 | +} | |
| 27630 | + | |
| 27631 | +function bindActionCreator(actionCreator, dispatch) { | |
| 27632 | + return function () { | |
| 27633 | + return dispatch(actionCreator.apply(this, arguments)); | |
| 27634 | + }; | |
| 27635 | +} | |
| 27636 | +/** | |
| 27637 | + * Turns an object whose values are action creators, into an object with the | |
| 27638 | + * same keys, but with every function wrapped into a `dispatch` call so they | |
| 27639 | + * may be invoked directly. This is just a convenience method, as you can call | |
| 27640 | + * `store.dispatch(MyActionCreators.doSomething())` yourself just fine. | |
| 27641 | + * | |
| 27642 | + * For convenience, you can also pass an action creator as the first argument, | |
| 27643 | + * and get a dispatch wrapped function in return. | |
| 27644 | + * | |
| 27645 | + * @param {Function|Object} actionCreators An object whose values are action | |
| 27646 | + * creator functions. One handy way to obtain it is to use ES6 `import * as` | |
| 27647 | + * syntax. You may also pass a single function. | |
| 27648 | + * | |
| 27649 | + * @param {Function} dispatch The `dispatch` function available on your Redux | |
| 27650 | + * store. | |
| 27651 | + * | |
| 27652 | + * @returns {Function|Object} The object mimicking the original object, but with | |
| 27653 | + * every action creator wrapped into the `dispatch` call. If you passed a | |
| 27654 | + * function as `actionCreators`, the return value will also be a single | |
| 27655 | + * function. | |
| 27656 | + */ | |
| 27657 | + | |
| 27658 | + | |
| 27659 | +function bindActionCreators(actionCreators, dispatch) { | |
| 27660 | + if (typeof actionCreators === 'function') { | |
| 27661 | + return bindActionCreator(actionCreators, dispatch); | |
| 27662 | + } | |
| 27663 | + | |
| 27664 | + if (typeof actionCreators !== 'object' || actionCreators === null) { | |
| 27665 | + throw new Error( false ? 0 : "bindActionCreators expected an object or a function, but instead received: '" + kindOf(actionCreators) + "'. " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?"); | |
| 27666 | + } | |
| 27667 | + | |
| 27668 | + var boundActionCreators = {}; | |
| 27669 | + | |
| 27670 | + for (var key in actionCreators) { | |
| 27671 | + var actionCreator = actionCreators[key]; | |
| 27672 | + | |
| 27673 | + if (typeof actionCreator === 'function') { | |
| 27674 | + boundActionCreators[key] = bindActionCreator(actionCreator, dispatch); | |
| 27675 | + } | |
| 27676 | + } | |
| 27677 | + | |
| 27678 | + return boundActionCreators; | |
| 27679 | +} | |
| 27680 | + | |
| 27681 | +/** | |
| 27682 | + * Composes single-argument functions from right to left. The rightmost | |
| 27683 | + * function can take multiple arguments as it provides the signature for | |
| 27684 | + * the resulting composite function. | |
| 27685 | + * | |
| 27686 | + * @param {...Function} funcs The functions to compose. | |
| 27687 | + * @returns {Function} A function obtained by composing the argument functions | |
| 27688 | + * from right to left. For example, compose(f, g, h) is identical to doing | |
| 27689 | + * (...args) => f(g(h(...args))). | |
| 27690 | + */ | |
| 27691 | +function compose() { | |
| 27692 | + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 27693 | + funcs[_key] = arguments[_key]; | |
| 27694 | + } | |
| 27695 | + | |
| 27696 | + if (funcs.length === 0) { | |
| 27697 | + return function (arg) { | |
| 27698 | + return arg; | |
| 27699 | + }; | |
| 27700 | + } | |
| 27701 | + | |
| 27702 | + if (funcs.length === 1) { | |
| 27703 | + return funcs[0]; | |
| 27704 | + } | |
| 27705 | + | |
| 27706 | + return funcs.reduce(function (a, b) { | |
| 27707 | + return function () { | |
| 27708 | + return a(b.apply(void 0, arguments)); | |
| 27709 | + }; | |
| 27710 | + }); | |
| 27711 | +} | |
| 27712 | + | |
| 27713 | +/** | |
| 27714 | + * Creates a store enhancer that applies middleware to the dispatch method | |
| 27715 | + * of the Redux store. This is handy for a variety of tasks, such as expressing | |
| 27716 | + * asynchronous actions in a concise manner, or logging every action payload. | |
| 27717 | + * | |
| 27718 | + * See `redux-thunk` package as an example of the Redux middleware. | |
| 27719 | + * | |
| 27720 | + * Because middleware is potentially asynchronous, this should be the first | |
| 27721 | + * store enhancer in the composition chain. | |
| 27722 | + * | |
| 27723 | + * Note that each middleware will be given the `dispatch` and `getState` functions | |
| 27724 | + * as named arguments. | |
| 27725 | + * | |
| 27726 | + * @param {...Function} middlewares The middleware chain to be applied. | |
| 27727 | + * @returns {Function} A store enhancer applying the middleware. | |
| 27728 | + */ | |
| 27729 | + | |
| 27730 | +function applyMiddleware() { | |
| 27731 | + for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 27732 | + middlewares[_key] = arguments[_key]; | |
| 27733 | + } | |
| 27734 | + | |
| 27735 | + return function (createStore) { | |
| 27736 | + return function () { | |
| 27737 | + var store = createStore.apply(void 0, arguments); | |
| 27738 | + | |
| 27739 | + var _dispatch = function dispatch() { | |
| 27740 | + throw new Error( false ? 0 : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.'); | |
| 27741 | + }; | |
| 27742 | + | |
| 27743 | + var middlewareAPI = { | |
| 27744 | + getState: store.getState, | |
| 27745 | + dispatch: function dispatch() { | |
| 27746 | + return _dispatch.apply(void 0, arguments); | |
| 27747 | + } | |
| 27748 | + }; | |
| 27749 | + var chain = middlewares.map(function (middleware) { | |
| 27750 | + return middleware(middlewareAPI); | |
| 27751 | + }); | |
| 27752 | + _dispatch = compose.apply(void 0, chain)(store.dispatch); | |
| 27753 | + return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, store), {}, { | |
| 27754 | + dispatch: _dispatch | |
| 27755 | + }); | |
| 27756 | + }; | |
| 27757 | + }; | |
| 27758 | +} | |
| 27759 | + | |
| 27760 | +/* | |
| 27761 | + * This is a dummy function to check if the function name has been altered by minification. | |
| 27762 | + * If the function has been minified and NODE_ENV !== 'production', warn the user. | |
| 27763 | + */ | |
| 27764 | + | |
| 27765 | +function isCrushed() {} | |
| 27766 | + | |
| 27767 | +if ( true && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') { | |
| 27768 | + warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.'); | |
| 27769 | +} | |
| 27770 | + | |
| 27771 | + | |
| 27772 | + | |
| 27773 | + | |
| 27774 | +/***/ }), | |
| 27775 | + | |
| 27776 | +/***/ "../node_modules/regenerator-runtime/runtime.js": | |
| 27777 | +/*!******************************************************!*\ | |
| 27778 | + !*** ../node_modules/regenerator-runtime/runtime.js ***! | |
| 27779 | + \******************************************************/ | |
| 1524 | 27780 | /***/ ((module) => { |
| 1525 | 27781 | |
| 1526 | -function _typeof(o) { | |
| 1527 | - "@babel/helpers - typeof"; | |
| 27782 | +/** | |
| 27783 | + * Copyright (c) 2014-present, Facebook, Inc. | |
| 27784 | + * | |
| 27785 | + * This source code is licensed under the MIT license found in the | |
| 27786 | + * LICENSE file in the root directory of this source tree. | |
| 27787 | + */ | |
| 1528 | 27788 | |
| 1529 | - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 1530 | - return typeof o; | |
| 1531 | - } : function (o) { | |
| 1532 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 1533 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 27789 | +var runtime = (function (exports) { | |
| 27790 | + "use strict"; | |
| 27791 | + | |
| 27792 | + var Op = Object.prototype; | |
| 27793 | + var hasOwn = Op.hasOwnProperty; | |
| 27794 | + var undefined; // More compressible than void 0. | |
| 27795 | + var $Symbol = typeof Symbol === "function" ? Symbol : {}; | |
| 27796 | + var iteratorSymbol = $Symbol.iterator || "@@iterator"; | |
| 27797 | + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; | |
| 27798 | + var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; | |
| 27799 | + | |
| 27800 | + function define(obj, key, value) { | |
| 27801 | + Object.defineProperty(obj, key, { | |
| 27802 | + value: value, | |
| 27803 | + enumerable: true, | |
| 27804 | + configurable: true, | |
| 27805 | + writable: true | |
| 27806 | + }); | |
| 27807 | + return obj[key]; | |
| 27808 | + } | |
| 27809 | + try { | |
| 27810 | + // IE 8 has a broken Object.defineProperty that only works on DOM objects. | |
| 27811 | + define({}, ""); | |
| 27812 | + } catch (err) { | |
| 27813 | + define = function(obj, key, value) { | |
| 27814 | + return obj[key] = value; | |
| 27815 | + }; | |
| 27816 | + } | |
| 27817 | + | |
| 27818 | + function wrap(innerFn, outerFn, self, tryLocsList) { | |
| 27819 | + // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. | |
| 27820 | + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; | |
| 27821 | + var generator = Object.create(protoGenerator.prototype); | |
| 27822 | + var context = new Context(tryLocsList || []); | |
| 27823 | + | |
| 27824 | + // The ._invoke method unifies the implementations of the .next, | |
| 27825 | + // .throw, and .return methods. | |
| 27826 | + generator._invoke = makeInvokeMethod(innerFn, self, context); | |
| 27827 | + | |
| 27828 | + return generator; | |
| 27829 | + } | |
| 27830 | + exports.wrap = wrap; | |
| 27831 | + | |
| 27832 | + // Try/catch helper to minimize deoptimizations. Returns a completion | |
| 27833 | + // record like context.tryEntries[i].completion. This interface could | |
| 27834 | + // have been (and was previously) designed to take a closure to be | |
| 27835 | + // invoked without arguments, but in all the cases we care about we | |
| 27836 | + // already have an existing method we want to call, so there's no need | |
| 27837 | + // to create a new function object. We can even get away with assuming | |
| 27838 | + // the method takes exactly one argument, since that happens to be true | |
| 27839 | + // in every case, so we don't have to touch the arguments object. The | |
| 27840 | + // only additional allocation required is the completion record, which | |
| 27841 | + // has a stable shape and so hopefully should be cheap to allocate. | |
| 27842 | + function tryCatch(fn, obj, arg) { | |
| 27843 | + try { | |
| 27844 | + return { type: "normal", arg: fn.call(obj, arg) }; | |
| 27845 | + } catch (err) { | |
| 27846 | + return { type: "throw", arg: err }; | |
| 27847 | + } | |
| 27848 | + } | |
| 27849 | + | |
| 27850 | + var GenStateSuspendedStart = "suspendedStart"; | |
| 27851 | + var GenStateSuspendedYield = "suspendedYield"; | |
| 27852 | + var GenStateExecuting = "executing"; | |
| 27853 | + var GenStateCompleted = "completed"; | |
| 27854 | + | |
| 27855 | + // Returning this object from the innerFn has the same effect as | |
| 27856 | + // breaking out of the dispatch switch statement. | |
| 27857 | + var ContinueSentinel = {}; | |
| 27858 | + | |
| 27859 | + // Dummy constructor functions that we use as the .constructor and | |
| 27860 | + // .constructor.prototype properties for functions that return Generator | |
| 27861 | + // objects. For full spec compliance, you may wish to configure your | |
| 27862 | + // minifier not to mangle the names of these two functions. | |
| 27863 | + function Generator() {} | |
| 27864 | + function GeneratorFunction() {} | |
| 27865 | + function GeneratorFunctionPrototype() {} | |
| 27866 | + | |
| 27867 | + // This is a polyfill for %IteratorPrototype% for environments that | |
| 27868 | + // don't natively support it. | |
| 27869 | + var IteratorPrototype = {}; | |
| 27870 | + define(IteratorPrototype, iteratorSymbol, function () { | |
| 27871 | + return this; | |
| 27872 | + }); | |
| 27873 | + | |
| 27874 | + var getProto = Object.getPrototypeOf; | |
| 27875 | + var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); | |
| 27876 | + if (NativeIteratorPrototype && | |
| 27877 | + NativeIteratorPrototype !== Op && | |
| 27878 | + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { | |
| 27879 | + // This environment has a native %IteratorPrototype%; use it instead | |
| 27880 | + // of the polyfill. | |
| 27881 | + IteratorPrototype = NativeIteratorPrototype; | |
| 27882 | + } | |
| 27883 | + | |
| 27884 | + var Gp = GeneratorFunctionPrototype.prototype = | |
| 27885 | + Generator.prototype = Object.create(IteratorPrototype); | |
| 27886 | + GeneratorFunction.prototype = GeneratorFunctionPrototype; | |
| 27887 | + define(Gp, "constructor", GeneratorFunctionPrototype); | |
| 27888 | + define(GeneratorFunctionPrototype, "constructor", GeneratorFunction); | |
| 27889 | + GeneratorFunction.displayName = define( | |
| 27890 | + GeneratorFunctionPrototype, | |
| 27891 | + toStringTagSymbol, | |
| 27892 | + "GeneratorFunction" | |
| 27893 | + ); | |
| 27894 | + | |
| 27895 | + // Helper for defining the .next, .throw, and .return methods of the | |
| 27896 | + // Iterator interface in terms of a single ._invoke method. | |
| 27897 | + function defineIteratorMethods(prototype) { | |
| 27898 | + ["next", "throw", "return"].forEach(function(method) { | |
| 27899 | + define(prototype, method, function(arg) { | |
| 27900 | + return this._invoke(method, arg); | |
| 27901 | + }); | |
| 27902 | + }); | |
| 27903 | + } | |
| 27904 | + | |
| 27905 | + exports.isGeneratorFunction = function(genFun) { | |
| 27906 | + var ctor = typeof genFun === "function" && genFun.constructor; | |
| 27907 | + return ctor | |
| 27908 | + ? ctor === GeneratorFunction || | |
| 27909 | + // For the native GeneratorFunction constructor, the best we can | |
| 27910 | + // do is to check its .name property. | |
| 27911 | + (ctor.displayName || ctor.name) === "GeneratorFunction" | |
| 27912 | + : false; | |
| 27913 | + }; | |
| 27914 | + | |
| 27915 | + exports.mark = function(genFun) { | |
| 27916 | + if (Object.setPrototypeOf) { | |
| 27917 | + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); | |
| 27918 | + } else { | |
| 27919 | + genFun.__proto__ = GeneratorFunctionPrototype; | |
| 27920 | + define(genFun, toStringTagSymbol, "GeneratorFunction"); | |
| 27921 | + } | |
| 27922 | + genFun.prototype = Object.create(Gp); | |
| 27923 | + return genFun; | |
| 27924 | + }; | |
| 27925 | + | |
| 27926 | + // Within the body of any async function, `await x` is transformed to | |
| 27927 | + // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test | |
| 27928 | + // `hasOwn.call(value, "__await")` to determine if the yielded value is | |
| 27929 | + // meant to be awaited. | |
| 27930 | + exports.awrap = function(arg) { | |
| 27931 | + return { __await: arg }; | |
| 27932 | + }; | |
| 27933 | + | |
| 27934 | + function AsyncIterator(generator, PromiseImpl) { | |
| 27935 | + function invoke(method, arg, resolve, reject) { | |
| 27936 | + var record = tryCatch(generator[method], generator, arg); | |
| 27937 | + if (record.type === "throw") { | |
| 27938 | + reject(record.arg); | |
| 27939 | + } else { | |
| 27940 | + var result = record.arg; | |
| 27941 | + var value = result.value; | |
| 27942 | + if (value && | |
| 27943 | + typeof value === "object" && | |
| 27944 | + hasOwn.call(value, "__await")) { | |
| 27945 | + return PromiseImpl.resolve(value.__await).then(function(value) { | |
| 27946 | + invoke("next", value, resolve, reject); | |
| 27947 | + }, function(err) { | |
| 27948 | + invoke("throw", err, resolve, reject); | |
| 27949 | + }); | |
| 27950 | + } | |
| 27951 | + | |
| 27952 | + return PromiseImpl.resolve(value).then(function(unwrapped) { | |
| 27953 | + // When a yielded Promise is resolved, its final value becomes | |
| 27954 | + // the .value of the Promise<{value,done}> result for the | |
| 27955 | + // current iteration. | |
| 27956 | + result.value = unwrapped; | |
| 27957 | + resolve(result); | |
| 27958 | + }, function(error) { | |
| 27959 | + // If a rejected Promise was yielded, throw the rejection back | |
| 27960 | + // into the async generator function so it can be handled there. | |
| 27961 | + return invoke("throw", error, resolve, reject); | |
| 27962 | + }); | |
| 27963 | + } | |
| 27964 | + } | |
| 27965 | + | |
| 27966 | + var previousPromise; | |
| 27967 | + | |
| 27968 | + function enqueue(method, arg) { | |
| 27969 | + function callInvokeWithMethodAndArg() { | |
| 27970 | + return new PromiseImpl(function(resolve, reject) { | |
| 27971 | + invoke(method, arg, resolve, reject); | |
| 27972 | + }); | |
| 27973 | + } | |
| 27974 | + | |
| 27975 | + return previousPromise = | |
| 27976 | + // If enqueue has been called before, then we want to wait until | |
| 27977 | + // all previous Promises have been resolved before calling invoke, | |
| 27978 | + // so that results are always delivered in the correct order. If | |
| 27979 | + // enqueue has not been called before, then it is important to | |
| 27980 | + // call invoke immediately, without waiting on a callback to fire, | |
| 27981 | + // so that the async generator function has the opportunity to do | |
| 27982 | + // any necessary setup in a predictable way. This predictability | |
| 27983 | + // is why the Promise constructor synchronously invokes its | |
| 27984 | + // executor callback, and why async functions synchronously | |
| 27985 | + // execute code before the first await. Since we implement simple | |
| 27986 | + // async functions in terms of async generators, it is especially | |
| 27987 | + // important to get this right, even though it requires care. | |
| 27988 | + previousPromise ? previousPromise.then( | |
| 27989 | + callInvokeWithMethodAndArg, | |
| 27990 | + // Avoid propagating failures to Promises returned by later | |
| 27991 | + // invocations of the iterator. | |
| 27992 | + callInvokeWithMethodAndArg | |
| 27993 | + ) : callInvokeWithMethodAndArg(); | |
| 27994 | + } | |
| 27995 | + | |
| 27996 | + // Define the unified helper method that is used to implement .next, | |
| 27997 | + // .throw, and .return (see defineIteratorMethods). | |
| 27998 | + this._invoke = enqueue; | |
| 27999 | + } | |
| 28000 | + | |
| 28001 | + defineIteratorMethods(AsyncIterator.prototype); | |
| 28002 | + define(AsyncIterator.prototype, asyncIteratorSymbol, function () { | |
| 28003 | + return this; | |
| 28004 | + }); | |
| 28005 | + exports.AsyncIterator = AsyncIterator; | |
| 28006 | + | |
| 28007 | + // Note that simple async functions are implemented on top of | |
| 28008 | + // AsyncIterator objects; they just return a Promise for the value of | |
| 28009 | + // the final result produced by the iterator. | |
| 28010 | + exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) { | |
| 28011 | + if (PromiseImpl === void 0) PromiseImpl = Promise; | |
| 28012 | + | |
| 28013 | + var iter = new AsyncIterator( | |
| 28014 | + wrap(innerFn, outerFn, self, tryLocsList), | |
| 28015 | + PromiseImpl | |
| 28016 | + ); | |
| 28017 | + | |
| 28018 | + return exports.isGeneratorFunction(outerFn) | |
| 28019 | + ? iter // If outerFn is a generator, return the full iterator. | |
| 28020 | + : iter.next().then(function(result) { | |
| 28021 | + return result.done ? result.value : iter.next(); | |
| 28022 | + }); | |
| 28023 | + }; | |
| 28024 | + | |
| 28025 | + function makeInvokeMethod(innerFn, self, context) { | |
| 28026 | + var state = GenStateSuspendedStart; | |
| 28027 | + | |
| 28028 | + return function invoke(method, arg) { | |
| 28029 | + if (state === GenStateExecuting) { | |
| 28030 | + throw new Error("Generator is already running"); | |
| 28031 | + } | |
| 28032 | + | |
| 28033 | + if (state === GenStateCompleted) { | |
| 28034 | + if (method === "throw") { | |
| 28035 | + throw arg; | |
| 28036 | + } | |
| 28037 | + | |
| 28038 | + // Be forgiving, per 25.3.3.3.3 of the spec: | |
| 28039 | + // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume | |
| 28040 | + return doneResult(); | |
| 28041 | + } | |
| 28042 | + | |
| 28043 | + context.method = method; | |
| 28044 | + context.arg = arg; | |
| 28045 | + | |
| 28046 | + while (true) { | |
| 28047 | + var delegate = context.delegate; | |
| 28048 | + if (delegate) { | |
| 28049 | + var delegateResult = maybeInvokeDelegate(delegate, context); | |
| 28050 | + if (delegateResult) { | |
| 28051 | + if (delegateResult === ContinueSentinel) continue; | |
| 28052 | + return delegateResult; | |
| 28053 | + } | |
| 28054 | + } | |
| 28055 | + | |
| 28056 | + if (context.method === "next") { | |
| 28057 | + // Setting context._sent for legacy support of Babel's | |
| 28058 | + // function.sent implementation. | |
| 28059 | + context.sent = context._sent = context.arg; | |
| 28060 | + | |
| 28061 | + } else if (context.method === "throw") { | |
| 28062 | + if (state === GenStateSuspendedStart) { | |
| 28063 | + state = GenStateCompleted; | |
| 28064 | + throw context.arg; | |
| 28065 | + } | |
| 28066 | + | |
| 28067 | + context.dispatchException(context.arg); | |
| 28068 | + | |
| 28069 | + } else if (context.method === "return") { | |
| 28070 | + context.abrupt("return", context.arg); | |
| 28071 | + } | |
| 28072 | + | |
| 28073 | + state = GenStateExecuting; | |
| 28074 | + | |
| 28075 | + var record = tryCatch(innerFn, self, context); | |
| 28076 | + if (record.type === "normal") { | |
| 28077 | + // If an exception is thrown from innerFn, we leave state === | |
| 28078 | + // GenStateExecuting and loop back for another invocation. | |
| 28079 | + state = context.done | |
| 28080 | + ? GenStateCompleted | |
| 28081 | + : GenStateSuspendedYield; | |
| 28082 | + | |
| 28083 | + if (record.arg === ContinueSentinel) { | |
| 28084 | + continue; | |
| 28085 | + } | |
| 28086 | + | |
| 28087 | + return { | |
| 28088 | + value: record.arg, | |
| 28089 | + done: context.done | |
| 28090 | + }; | |
| 28091 | + | |
| 28092 | + } else if (record.type === "throw") { | |
| 28093 | + state = GenStateCompleted; | |
| 28094 | + // Dispatch the exception by looping back around to the | |
| 28095 | + // context.dispatchException(context.arg) call above. | |
| 28096 | + context.method = "throw"; | |
| 28097 | + context.arg = record.arg; | |
| 28098 | + } | |
| 28099 | + } | |
| 28100 | + }; | |
| 28101 | + } | |
| 28102 | + | |
| 28103 | + // Call delegate.iterator[context.method](context.arg) and handle the | |
| 28104 | + // result, either by returning a { value, done } result from the | |
| 28105 | + // delegate iterator, or by modifying context.method and context.arg, | |
| 28106 | + // setting context.delegate to null, and returning the ContinueSentinel. | |
| 28107 | + function maybeInvokeDelegate(delegate, context) { | |
| 28108 | + var method = delegate.iterator[context.method]; | |
| 28109 | + if (method === undefined) { | |
| 28110 | + // A .throw or .return when the delegate iterator has no .throw | |
| 28111 | + // method always terminates the yield* loop. | |
| 28112 | + context.delegate = null; | |
| 28113 | + | |
| 28114 | + if (context.method === "throw") { | |
| 28115 | + // Note: ["return"] must be used for ES3 parsing compatibility. | |
| 28116 | + if (delegate.iterator["return"]) { | |
| 28117 | + // If the delegate iterator has a return method, give it a | |
| 28118 | + // chance to clean up. | |
| 28119 | + context.method = "return"; | |
| 28120 | + context.arg = undefined; | |
| 28121 | + maybeInvokeDelegate(delegate, context); | |
| 28122 | + | |
| 28123 | + if (context.method === "throw") { | |
| 28124 | + // If maybeInvokeDelegate(context) changed context.method from | |
| 28125 | + // "return" to "throw", let that override the TypeError below. | |
| 28126 | + return ContinueSentinel; | |
| 28127 | + } | |
| 28128 | + } | |
| 28129 | + | |
| 28130 | + context.method = "throw"; | |
| 28131 | + context.arg = new TypeError( | |
| 28132 | + "The iterator does not provide a 'throw' method"); | |
| 28133 | + } | |
| 28134 | + | |
| 28135 | + return ContinueSentinel; | |
| 28136 | + } | |
| 28137 | + | |
| 28138 | + var record = tryCatch(method, delegate.iterator, context.arg); | |
| 28139 | + | |
| 28140 | + if (record.type === "throw") { | |
| 28141 | + context.method = "throw"; | |
| 28142 | + context.arg = record.arg; | |
| 28143 | + context.delegate = null; | |
| 28144 | + return ContinueSentinel; | |
| 28145 | + } | |
| 28146 | + | |
| 28147 | + var info = record.arg; | |
| 28148 | + | |
| 28149 | + if (! info) { | |
| 28150 | + context.method = "throw"; | |
| 28151 | + context.arg = new TypeError("iterator result is not an object"); | |
| 28152 | + context.delegate = null; | |
| 28153 | + return ContinueSentinel; | |
| 28154 | + } | |
| 28155 | + | |
| 28156 | + if (info.done) { | |
| 28157 | + // Assign the result of the finished delegate to the temporary | |
| 28158 | + // variable specified by delegate.resultName (see delegateYield). | |
| 28159 | + context[delegate.resultName] = info.value; | |
| 28160 | + | |
| 28161 | + // Resume execution at the desired location (see delegateYield). | |
| 28162 | + context.next = delegate.nextLoc; | |
| 28163 | + | |
| 28164 | + // If context.method was "throw" but the delegate handled the | |
| 28165 | + // exception, let the outer generator proceed normally. If | |
| 28166 | + // context.method was "next", forget context.arg since it has been | |
| 28167 | + // "consumed" by the delegate iterator. If context.method was | |
| 28168 | + // "return", allow the original .return call to continue in the | |
| 28169 | + // outer generator. | |
| 28170 | + if (context.method !== "return") { | |
| 28171 | + context.method = "next"; | |
| 28172 | + context.arg = undefined; | |
| 28173 | + } | |
| 28174 | + | |
| 28175 | + } else { | |
| 28176 | + // Re-yield the result returned by the delegate method. | |
| 28177 | + return info; | |
| 28178 | + } | |
| 28179 | + | |
| 28180 | + // The delegate iterator is finished, so forget it and continue with | |
| 28181 | + // the outer generator. | |
| 28182 | + context.delegate = null; | |
| 28183 | + return ContinueSentinel; | |
| 28184 | + } | |
| 28185 | + | |
| 28186 | + // Define Generator.prototype.{next,throw,return} in terms of the | |
| 28187 | + // unified ._invoke helper method. | |
| 28188 | + defineIteratorMethods(Gp); | |
| 28189 | + | |
| 28190 | + define(Gp, toStringTagSymbol, "Generator"); | |
| 28191 | + | |
| 28192 | + // A Generator should always return itself as the iterator object when the | |
| 28193 | + // @@iterator function is called on it. Some browsers' implementations of the | |
| 28194 | + // iterator prototype chain incorrectly implement this, causing the Generator | |
| 28195 | + // object to not be returned from this call. This ensures that doesn't happen. | |
| 28196 | + // See https://github.com/facebook/regenerator/issues/274 for more details. | |
| 28197 | + define(Gp, iteratorSymbol, function() { | |
| 28198 | + return this; | |
| 28199 | + }); | |
| 28200 | + | |
| 28201 | + define(Gp, "toString", function() { | |
| 28202 | + return "[object Generator]"; | |
| 28203 | + }); | |
| 28204 | + | |
| 28205 | + function pushTryEntry(locs) { | |
| 28206 | + var entry = { tryLoc: locs[0] }; | |
| 28207 | + | |
| 28208 | + if (1 in locs) { | |
| 28209 | + entry.catchLoc = locs[1]; | |
| 28210 | + } | |
| 28211 | + | |
| 28212 | + if (2 in locs) { | |
| 28213 | + entry.finallyLoc = locs[2]; | |
| 28214 | + entry.afterLoc = locs[3]; | |
| 28215 | + } | |
| 28216 | + | |
| 28217 | + this.tryEntries.push(entry); | |
| 28218 | + } | |
| 28219 | + | |
| 28220 | + function resetTryEntry(entry) { | |
| 28221 | + var record = entry.completion || {}; | |
| 28222 | + record.type = "normal"; | |
| 28223 | + delete record.arg; | |
| 28224 | + entry.completion = record; | |
| 28225 | + } | |
| 28226 | + | |
| 28227 | + function Context(tryLocsList) { | |
| 28228 | + // The root entry object (effectively a try statement without a catch | |
| 28229 | + // or a finally block) gives us a place to store values thrown from | |
| 28230 | + // locations where there is no enclosing try statement. | |
| 28231 | + this.tryEntries = [{ tryLoc: "root" }]; | |
| 28232 | + tryLocsList.forEach(pushTryEntry, this); | |
| 28233 | + this.reset(true); | |
| 28234 | + } | |
| 28235 | + | |
| 28236 | + exports.keys = function(object) { | |
| 28237 | + var keys = []; | |
| 28238 | + for (var key in object) { | |
| 28239 | + keys.push(key); | |
| 28240 | + } | |
| 28241 | + keys.reverse(); | |
| 28242 | + | |
| 28243 | + // Rather than returning an object with a next method, we keep | |
| 28244 | + // things simple and return the next function itself. | |
| 28245 | + return function next() { | |
| 28246 | + while (keys.length) { | |
| 28247 | + var key = keys.pop(); | |
| 28248 | + if (key in object) { | |
| 28249 | + next.value = key; | |
| 28250 | + next.done = false; | |
| 28251 | + return next; | |
| 28252 | + } | |
| 28253 | + } | |
| 28254 | + | |
| 28255 | + // To avoid creating an additional object, we just hang the .value | |
| 28256 | + // and .done properties off the next function object itself. This | |
| 28257 | + // also ensures that the minifier will not anonymize the function. | |
| 28258 | + next.done = true; | |
| 28259 | + return next; | |
| 28260 | + }; | |
| 28261 | + }; | |
| 28262 | + | |
| 28263 | + function values(iterable) { | |
| 28264 | + if (iterable) { | |
| 28265 | + var iteratorMethod = iterable[iteratorSymbol]; | |
| 28266 | + if (iteratorMethod) { | |
| 28267 | + return iteratorMethod.call(iterable); | |
| 28268 | + } | |
| 28269 | + | |
| 28270 | + if (typeof iterable.next === "function") { | |
| 28271 | + return iterable; | |
| 28272 | + } | |
| 28273 | + | |
| 28274 | + if (!isNaN(iterable.length)) { | |
| 28275 | + var i = -1, next = function next() { | |
| 28276 | + while (++i < iterable.length) { | |
| 28277 | + if (hasOwn.call(iterable, i)) { | |
| 28278 | + next.value = iterable[i]; | |
| 28279 | + next.done = false; | |
| 28280 | + return next; | |
| 28281 | + } | |
| 28282 | + } | |
| 28283 | + | |
| 28284 | + next.value = undefined; | |
| 28285 | + next.done = true; | |
| 28286 | + | |
| 28287 | + return next; | |
| 28288 | + }; | |
| 28289 | + | |
| 28290 | + return next.next = next; | |
| 28291 | + } | |
| 28292 | + } | |
| 28293 | + | |
| 28294 | + // Return an iterator with no values. | |
| 28295 | + return { next: doneResult }; | |
| 28296 | + } | |
| 28297 | + exports.values = values; | |
| 28298 | + | |
| 28299 | + function doneResult() { | |
| 28300 | + return { value: undefined, done: true }; | |
| 28301 | + } | |
| 28302 | + | |
| 28303 | + Context.prototype = { | |
| 28304 | + constructor: Context, | |
| 28305 | + | |
| 28306 | + reset: function(skipTempReset) { | |
| 28307 | + this.prev = 0; | |
| 28308 | + this.next = 0; | |
| 28309 | + // Resetting context._sent for legacy support of Babel's | |
| 28310 | + // function.sent implementation. | |
| 28311 | + this.sent = this._sent = undefined; | |
| 28312 | + this.done = false; | |
| 28313 | + this.delegate = null; | |
| 28314 | + | |
| 28315 | + this.method = "next"; | |
| 28316 | + this.arg = undefined; | |
| 28317 | + | |
| 28318 | + this.tryEntries.forEach(resetTryEntry); | |
| 28319 | + | |
| 28320 | + if (!skipTempReset) { | |
| 28321 | + for (var name in this) { | |
| 28322 | + // Not sure about the optimal order of these conditions: | |
| 28323 | + if (name.charAt(0) === "t" && | |
| 28324 | + hasOwn.call(this, name) && | |
| 28325 | + !isNaN(+name.slice(1))) { | |
| 28326 | + this[name] = undefined; | |
| 28327 | + } | |
| 28328 | + } | |
| 28329 | + } | |
| 28330 | + }, | |
| 28331 | + | |
| 28332 | + stop: function() { | |
| 28333 | + this.done = true; | |
| 28334 | + | |
| 28335 | + var rootEntry = this.tryEntries[0]; | |
| 28336 | + var rootRecord = rootEntry.completion; | |
| 28337 | + if (rootRecord.type === "throw") { | |
| 28338 | + throw rootRecord.arg; | |
| 28339 | + } | |
| 28340 | + | |
| 28341 | + return this.rval; | |
| 28342 | + }, | |
| 28343 | + | |
| 28344 | + dispatchException: function(exception) { | |
| 28345 | + if (this.done) { | |
| 28346 | + throw exception; | |
| 28347 | + } | |
| 28348 | + | |
| 28349 | + var context = this; | |
| 28350 | + function handle(loc, caught) { | |
| 28351 | + record.type = "throw"; | |
| 28352 | + record.arg = exception; | |
| 28353 | + context.next = loc; | |
| 28354 | + | |
| 28355 | + if (caught) { | |
| 28356 | + // If the dispatched exception was caught by a catch block, | |
| 28357 | + // then let that catch block handle the exception normally. | |
| 28358 | + context.method = "next"; | |
| 28359 | + context.arg = undefined; | |
| 28360 | + } | |
| 28361 | + | |
| 28362 | + return !! caught; | |
| 28363 | + } | |
| 28364 | + | |
| 28365 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 28366 | + var entry = this.tryEntries[i]; | |
| 28367 | + var record = entry.completion; | |
| 28368 | + | |
| 28369 | + if (entry.tryLoc === "root") { | |
| 28370 | + // Exception thrown outside of any try block that could handle | |
| 28371 | + // it, so set the completion value of the entire function to | |
| 28372 | + // throw the exception. | |
| 28373 | + return handle("end"); | |
| 28374 | + } | |
| 28375 | + | |
| 28376 | + if (entry.tryLoc <= this.prev) { | |
| 28377 | + var hasCatch = hasOwn.call(entry, "catchLoc"); | |
| 28378 | + var hasFinally = hasOwn.call(entry, "finallyLoc"); | |
| 28379 | + | |
| 28380 | + if (hasCatch && hasFinally) { | |
| 28381 | + if (this.prev < entry.catchLoc) { | |
| 28382 | + return handle(entry.catchLoc, true); | |
| 28383 | + } else if (this.prev < entry.finallyLoc) { | |
| 28384 | + return handle(entry.finallyLoc); | |
| 28385 | + } | |
| 28386 | + | |
| 28387 | + } else if (hasCatch) { | |
| 28388 | + if (this.prev < entry.catchLoc) { | |
| 28389 | + return handle(entry.catchLoc, true); | |
| 28390 | + } | |
| 28391 | + | |
| 28392 | + } else if (hasFinally) { | |
| 28393 | + if (this.prev < entry.finallyLoc) { | |
| 28394 | + return handle(entry.finallyLoc); | |
| 28395 | + } | |
| 28396 | + | |
| 28397 | + } else { | |
| 28398 | + throw new Error("try statement without catch or finally"); | |
| 28399 | + } | |
| 28400 | + } | |
| 28401 | + } | |
| 28402 | + }, | |
| 28403 | + | |
| 28404 | + abrupt: function(type, arg) { | |
| 28405 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 28406 | + var entry = this.tryEntries[i]; | |
| 28407 | + if (entry.tryLoc <= this.prev && | |
| 28408 | + hasOwn.call(entry, "finallyLoc") && | |
| 28409 | + this.prev < entry.finallyLoc) { | |
| 28410 | + var finallyEntry = entry; | |
| 28411 | + break; | |
| 28412 | + } | |
| 28413 | + } | |
| 28414 | + | |
| 28415 | + if (finallyEntry && | |
| 28416 | + (type === "break" || | |
| 28417 | + type === "continue") && | |
| 28418 | + finallyEntry.tryLoc <= arg && | |
| 28419 | + arg <= finallyEntry.finallyLoc) { | |
| 28420 | + // Ignore the finally entry if control is not jumping to a | |
| 28421 | + // location outside the try/catch block. | |
| 28422 | + finallyEntry = null; | |
| 28423 | + } | |
| 28424 | + | |
| 28425 | + var record = finallyEntry ? finallyEntry.completion : {}; | |
| 28426 | + record.type = type; | |
| 28427 | + record.arg = arg; | |
| 28428 | + | |
| 28429 | + if (finallyEntry) { | |
| 28430 | + this.method = "next"; | |
| 28431 | + this.next = finallyEntry.finallyLoc; | |
| 28432 | + return ContinueSentinel; | |
| 28433 | + } | |
| 28434 | + | |
| 28435 | + return this.complete(record); | |
| 28436 | + }, | |
| 28437 | + | |
| 28438 | + complete: function(record, afterLoc) { | |
| 28439 | + if (record.type === "throw") { | |
| 28440 | + throw record.arg; | |
| 28441 | + } | |
| 28442 | + | |
| 28443 | + if (record.type === "break" || | |
| 28444 | + record.type === "continue") { | |
| 28445 | + this.next = record.arg; | |
| 28446 | + } else if (record.type === "return") { | |
| 28447 | + this.rval = this.arg = record.arg; | |
| 28448 | + this.method = "return"; | |
| 28449 | + this.next = "end"; | |
| 28450 | + } else if (record.type === "normal" && afterLoc) { | |
| 28451 | + this.next = afterLoc; | |
| 28452 | + } | |
| 28453 | + | |
| 28454 | + return ContinueSentinel; | |
| 28455 | + }, | |
| 28456 | + | |
| 28457 | + finish: function(finallyLoc) { | |
| 28458 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 28459 | + var entry = this.tryEntries[i]; | |
| 28460 | + if (entry.finallyLoc === finallyLoc) { | |
| 28461 | + this.complete(entry.completion, entry.afterLoc); | |
| 28462 | + resetTryEntry(entry); | |
| 28463 | + return ContinueSentinel; | |
| 28464 | + } | |
| 28465 | + } | |
| 28466 | + }, | |
| 28467 | + | |
| 28468 | + "catch": function(tryLoc) { | |
| 28469 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 28470 | + var entry = this.tryEntries[i]; | |
| 28471 | + if (entry.tryLoc === tryLoc) { | |
| 28472 | + var record = entry.completion; | |
| 28473 | + if (record.type === "throw") { | |
| 28474 | + var thrown = record.arg; | |
| 28475 | + resetTryEntry(entry); | |
| 28476 | + } | |
| 28477 | + return thrown; | |
| 28478 | + } | |
| 28479 | + } | |
| 28480 | + | |
| 28481 | + // The context.catch method must only be called with a location | |
| 28482 | + // argument that corresponds to a known catch block. | |
| 28483 | + throw new Error("illegal catch attempt"); | |
| 28484 | + }, | |
| 28485 | + | |
| 28486 | + delegateYield: function(iterable, resultName, nextLoc) { | |
| 28487 | + this.delegate = { | |
| 28488 | + iterator: values(iterable), | |
| 28489 | + resultName: resultName, | |
| 28490 | + nextLoc: nextLoc | |
| 28491 | + }; | |
| 28492 | + | |
| 28493 | + if (this.method === "next") { | |
| 28494 | + // Deliberately forget the last sent value so that we don't | |
| 28495 | + // accidentally pass it on to the delegate. | |
| 28496 | + this.arg = undefined; | |
| 28497 | + } | |
| 28498 | + | |
| 28499 | + return ContinueSentinel; | |
| 28500 | + } | |
| 28501 | + }; | |
| 28502 | + | |
| 28503 | + // Regardless of whether this script is executing as a CommonJS module | |
| 28504 | + // or not, return the runtime object so that we can declare the variable | |
| 28505 | + // regeneratorRuntime in the outer scope, which allows this module to be | |
| 28506 | + // injected easily by `bin/regenerator --include-runtime script.js`. | |
| 28507 | + return exports; | |
| 28508 | + | |
| 28509 | +}( | |
| 28510 | + // If this script is executing as a CommonJS module, use module.exports | |
| 28511 | + // as the regeneratorRuntime namespace. Otherwise create a new empty | |
| 28512 | + // object. Either way, the resulting object will be used to initialize | |
| 28513 | + // the regeneratorRuntime variable at the top of this file. | |
| 28514 | + true ? module.exports : 0 | |
| 28515 | +)); | |
| 28516 | + | |
| 28517 | +try { | |
| 28518 | + regeneratorRuntime = runtime; | |
| 28519 | +} catch (accidentalStrictMode) { | |
| 28520 | + // This module should not be running in strict mode, so the above | |
| 28521 | + // assignment should always work unless something is misconfigured. Just | |
| 28522 | + // in case runtime.js accidentally runs in strict mode, in modern engines | |
| 28523 | + // we can explicitly access globalThis. In older engines we can escape | |
| 28524 | + // strict mode using a global Function call. This could conceivably fail | |
| 28525 | + // if a Content Security Policy forbids using Function, but in that case | |
| 28526 | + // the proper solution is to fix the accidental strict mode problem. If | |
| 28527 | + // you've misconfigured your bundler to force strict mode and applied a | |
| 28528 | + // CSP to forbid Function, and you're not willing to fix either of those | |
| 28529 | + // problems, please detail your unique predicament in a GitHub issue. | |
| 28530 | + if (typeof globalThis === "object") { | |
| 28531 | + globalThis.regeneratorRuntime = runtime; | |
| 28532 | + } else { | |
| 28533 | + Function("r", "regeneratorRuntime = r")(runtime); | |
| 28534 | + } | |
| 1534 | 28535 | } |
| 1535 | -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1536 | 28536 | |
| 28537 | + | |
| 1537 | 28538 | /***/ }), |
| 1538 | 28539 | |
| 1539 | -/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": | |
| 1540 | -/*!****************************************************************************!*\ | |
| 1541 | - !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! | |
| 1542 | - \****************************************************************************/ | |
| 1543 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 28540 | +/***/ "../node_modules/reselect/es/defaultMemoize.js": | |
| 28541 | +/*!*****************************************************!*\ | |
| 28542 | + !*** ../node_modules/reselect/es/defaultMemoize.js ***! | |
| 28543 | + \*****************************************************/ | |
| 28544 | +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 1544 | 28545 | |
| 1545 | -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 1546 | -function _unsupportedIterableToArray(r, a) { | |
| 1547 | - if (r) { | |
| 1548 | - if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 1549 | - var t = {}.toString.call(r).slice(8, -1); | |
| 1550 | - 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; | |
| 28546 | +"use strict"; | |
| 28547 | +__webpack_require__.r(__webpack_exports__); | |
| 28548 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 28549 | +/* harmony export */ "defaultEqualityCheck": () => (/* binding */ defaultEqualityCheck), | |
| 28550 | +/* harmony export */ "createCacheKeyComparator": () => (/* binding */ createCacheKeyComparator), | |
| 28551 | +/* harmony export */ "defaultMemoize": () => (/* binding */ defaultMemoize) | |
| 28552 | +/* harmony export */ }); | |
| 28553 | +// Cache implementation based on Erik Rasmussen's `lru-memoize`: | |
| 28554 | +// https://github.com/erikras/lru-memoize | |
| 28555 | +var NOT_FOUND = 'NOT_FOUND'; | |
| 28556 | + | |
| 28557 | +function createSingletonCache(equals) { | |
| 28558 | + var entry; | |
| 28559 | + return { | |
| 28560 | + get: function get(key) { | |
| 28561 | + if (entry && equals(entry.key, key)) { | |
| 28562 | + return entry.value; | |
| 28563 | + } | |
| 28564 | + | |
| 28565 | + return NOT_FOUND; | |
| 28566 | + }, | |
| 28567 | + put: function put(key, value) { | |
| 28568 | + entry = { | |
| 28569 | + key: key, | |
| 28570 | + value: value | |
| 28571 | + }; | |
| 28572 | + }, | |
| 28573 | + getEntries: function getEntries() { | |
| 28574 | + return entry ? [entry] : []; | |
| 28575 | + }, | |
| 28576 | + clear: function clear() { | |
| 28577 | + entry = undefined; | |
| 28578 | + } | |
| 28579 | + }; | |
| 28580 | +} | |
| 28581 | + | |
| 28582 | +function createLruCache(maxSize, equals) { | |
| 28583 | + var entries = []; | |
| 28584 | + | |
| 28585 | + function get(key) { | |
| 28586 | + var cacheIndex = entries.findIndex(function (entry) { | |
| 28587 | + return equals(key, entry.key); | |
| 28588 | + }); // We found a cached entry | |
| 28589 | + | |
| 28590 | + if (cacheIndex > -1) { | |
| 28591 | + var entry = entries[cacheIndex]; // Cached entry not at top of cache, move it to the top | |
| 28592 | + | |
| 28593 | + if (cacheIndex > 0) { | |
| 28594 | + entries.splice(cacheIndex, 1); | |
| 28595 | + entries.unshift(entry); | |
| 28596 | + } | |
| 28597 | + | |
| 28598 | + return entry.value; | |
| 28599 | + } // No entry found in cache, return sentinel | |
| 28600 | + | |
| 28601 | + | |
| 28602 | + return NOT_FOUND; | |
| 1551 | 28603 | } |
| 28604 | + | |
| 28605 | + function put(key, value) { | |
| 28606 | + if (get(key) === NOT_FOUND) { | |
| 28607 | + // TODO Is unshift slow? | |
| 28608 | + entries.unshift({ | |
| 28609 | + key: key, | |
| 28610 | + value: value | |
| 28611 | + }); | |
| 28612 | + | |
| 28613 | + if (entries.length > maxSize) { | |
| 28614 | + entries.pop(); | |
| 28615 | + } | |
| 28616 | + } | |
| 28617 | + } | |
| 28618 | + | |
| 28619 | + function getEntries() { | |
| 28620 | + return entries; | |
| 28621 | + } | |
| 28622 | + | |
| 28623 | + function clear() { | |
| 28624 | + entries = []; | |
| 28625 | + } | |
| 28626 | + | |
| 28627 | + return { | |
| 28628 | + get: get, | |
| 28629 | + put: put, | |
| 28630 | + getEntries: getEntries, | |
| 28631 | + clear: clear | |
| 28632 | + }; | |
| 1552 | 28633 | } |
| 1553 | -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1554 | 28634 | |
| 28635 | +var defaultEqualityCheck = function defaultEqualityCheck(a, b) { | |
| 28636 | + return a === b; | |
| 28637 | +}; | |
| 28638 | +function createCacheKeyComparator(equalityCheck) { | |
| 28639 | + return function areArgumentsShallowlyEqual(prev, next) { | |
| 28640 | + if (prev === null || next === null || prev.length !== next.length) { | |
| 28641 | + return false; | |
| 28642 | + } // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible. | |
| 28643 | + | |
| 28644 | + | |
| 28645 | + var length = prev.length; | |
| 28646 | + | |
| 28647 | + for (var i = 0; i < length; i++) { | |
| 28648 | + if (!equalityCheck(prev[i], next[i])) { | |
| 28649 | + return false; | |
| 28650 | + } | |
| 28651 | + } | |
| 28652 | + | |
| 28653 | + return true; | |
| 28654 | + }; | |
| 28655 | +} | |
| 28656 | +// defaultMemoize now supports a configurable cache size with LRU behavior, | |
| 28657 | +// and optional comparison of the result value with existing values | |
| 28658 | +function defaultMemoize(func, equalityCheckOrOptions) { | |
| 28659 | + var providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : { | |
| 28660 | + equalityCheck: equalityCheckOrOptions | |
| 28661 | + }; | |
| 28662 | + var _providedOptions$equa = providedOptions.equalityCheck, | |
| 28663 | + equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa, | |
| 28664 | + _providedOptions$maxS = providedOptions.maxSize, | |
| 28665 | + maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS, | |
| 28666 | + resultEqualityCheck = providedOptions.resultEqualityCheck; | |
| 28667 | + var comparator = createCacheKeyComparator(equalityCheck); | |
| 28668 | + var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator); // we reference arguments instead of spreading them for performance reasons | |
| 28669 | + | |
| 28670 | + function memoized() { | |
| 28671 | + var value = cache.get(arguments); | |
| 28672 | + | |
| 28673 | + if (value === NOT_FOUND) { | |
| 28674 | + // @ts-ignore | |
| 28675 | + value = func.apply(null, arguments); | |
| 28676 | + | |
| 28677 | + if (resultEqualityCheck) { | |
| 28678 | + var entries = cache.getEntries(); | |
| 28679 | + var matchingEntry = entries.find(function (entry) { | |
| 28680 | + return resultEqualityCheck(entry.value, value); | |
| 28681 | + }); | |
| 28682 | + | |
| 28683 | + if (matchingEntry) { | |
| 28684 | + value = matchingEntry.value; | |
| 28685 | + } | |
| 28686 | + } | |
| 28687 | + | |
| 28688 | + cache.put(arguments, value); | |
| 28689 | + } | |
| 28690 | + | |
| 28691 | + return value; | |
| 28692 | + } | |
| 28693 | + | |
| 28694 | + memoized.clearCache = function () { | |
| 28695 | + return cache.clear(); | |
| 28696 | + }; | |
| 28697 | + | |
| 28698 | + return memoized; | |
| 28699 | +} | |
| 28700 | + | |
| 28701 | +/***/ }), | |
| 28702 | + | |
| 28703 | +/***/ "../node_modules/reselect/es/index.js": | |
| 28704 | +/*!********************************************!*\ | |
| 28705 | + !*** ../node_modules/reselect/es/index.js ***! | |
| 28706 | + \********************************************/ | |
| 28707 | +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 28708 | + | |
| 28709 | +"use strict"; | |
| 28710 | +__webpack_require__.r(__webpack_exports__); | |
| 28711 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 28712 | +/* harmony export */ "defaultMemoize": () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize), | |
| 28713 | +/* harmony export */ "defaultEqualityCheck": () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultEqualityCheck), | |
| 28714 | +/* harmony export */ "createSelectorCreator": () => (/* binding */ createSelectorCreator), | |
| 28715 | +/* harmony export */ "createSelector": () => (/* binding */ createSelector), | |
| 28716 | +/* harmony export */ "createStructuredSelector": () => (/* binding */ createStructuredSelector) | |
| 28717 | +/* harmony export */ }); | |
| 28718 | +/* harmony import */ var _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultMemoize */ "../node_modules/reselect/es/defaultMemoize.js"); | |
| 28719 | + | |
| 28720 | + | |
| 28721 | + | |
| 28722 | +function getDependencies(funcs) { | |
| 28723 | + var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs; | |
| 28724 | + | |
| 28725 | + if (!dependencies.every(function (dep) { | |
| 28726 | + return typeof dep === 'function'; | |
| 28727 | + })) { | |
| 28728 | + var dependencyTypes = dependencies.map(function (dep) { | |
| 28729 | + return typeof dep === 'function' ? "function " + (dep.name || 'unnamed') + "()" : typeof dep; | |
| 28730 | + }).join(', '); | |
| 28731 | + throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]"); | |
| 28732 | + } | |
| 28733 | + | |
| 28734 | + return dependencies; | |
| 28735 | +} | |
| 28736 | + | |
| 28737 | +function createSelectorCreator(memoize) { | |
| 28738 | + for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | |
| 28739 | + memoizeOptionsFromArgs[_key - 1] = arguments[_key]; | |
| 28740 | + } | |
| 28741 | + | |
| 28742 | + var createSelector = function createSelector() { | |
| 28743 | + for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | |
| 28744 | + funcs[_key2] = arguments[_key2]; | |
| 28745 | + } | |
| 28746 | + | |
| 28747 | + var _recomputations = 0; | |
| 28748 | + | |
| 28749 | + var _lastResult; // Due to the intricacies of rest params, we can't do an optional arg after `...funcs`. | |
| 28750 | + // So, start by declaring the default value here. | |
| 28751 | + // (And yes, the words 'memoize' and 'options' appear too many times in this next sequence.) | |
| 28752 | + | |
| 28753 | + | |
| 28754 | + var directlyPassedOptions = { | |
| 28755 | + memoizeOptions: undefined | |
| 28756 | + }; // Normally, the result func or "output selector" is the last arg | |
| 28757 | + | |
| 28758 | + var resultFunc = funcs.pop(); // If the result func is actually an _object_, assume it's our options object | |
| 28759 | + | |
| 28760 | + if (typeof resultFunc === 'object') { | |
| 28761 | + directlyPassedOptions = resultFunc; // and pop the real result func off | |
| 28762 | + | |
| 28763 | + resultFunc = funcs.pop(); | |
| 28764 | + } | |
| 28765 | + | |
| 28766 | + if (typeof resultFunc !== 'function') { | |
| 28767 | + throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof resultFunc + "]"); | |
| 28768 | + } // Determine which set of options we're using. Prefer options passed directly, | |
| 28769 | + // but fall back to options given to createSelectorCreator. | |
| 28770 | + | |
| 28771 | + | |
| 28772 | + var _directlyPassedOption = directlyPassedOptions, | |
| 28773 | + _directlyPassedOption2 = _directlyPassedOption.memoizeOptions, | |
| 28774 | + memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2; // Simplifying assumption: it's unlikely that the first options arg of the provided memoizer | |
| 28775 | + // is an array. In most libs I've looked at, it's an equality function or options object. | |
| 28776 | + // Based on that, if `memoizeOptions` _is_ an array, we assume it's a full | |
| 28777 | + // user-provided array of options. Otherwise, it must be just the _first_ arg, and so | |
| 28778 | + // we wrap it in an array so we can apply it. | |
| 28779 | + | |
| 28780 | + var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions]; | |
| 28781 | + var dependencies = getDependencies(funcs); | |
| 28782 | + var memoizedResultFunc = memoize.apply(void 0, [function () { | |
| 28783 | + _recomputations++; // apply arguments instead of spreading for performance. | |
| 28784 | + | |
| 28785 | + return resultFunc.apply(null, arguments); | |
| 28786 | + }].concat(finalMemoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again. | |
| 28787 | + | |
| 28788 | + var selector = memoize(function () { | |
| 28789 | + var params = []; | |
| 28790 | + var length = dependencies.length; | |
| 28791 | + | |
| 28792 | + for (var i = 0; i < length; i++) { | |
| 28793 | + // apply arguments instead of spreading and mutate a local list of params for performance. | |
| 28794 | + // @ts-ignore | |
| 28795 | + params.push(dependencies[i].apply(null, arguments)); | |
| 28796 | + } // apply arguments instead of spreading for performance. | |
| 28797 | + | |
| 28798 | + | |
| 28799 | + _lastResult = memoizedResultFunc.apply(null, params); | |
| 28800 | + return _lastResult; | |
| 28801 | + }); | |
| 28802 | + Object.assign(selector, { | |
| 28803 | + resultFunc: resultFunc, | |
| 28804 | + memoizedResultFunc: memoizedResultFunc, | |
| 28805 | + dependencies: dependencies, | |
| 28806 | + lastResult: function lastResult() { | |
| 28807 | + return _lastResult; | |
| 28808 | + }, | |
| 28809 | + recomputations: function recomputations() { | |
| 28810 | + return _recomputations; | |
| 28811 | + }, | |
| 28812 | + resetRecomputations: function resetRecomputations() { | |
| 28813 | + return _recomputations = 0; | |
| 28814 | + } | |
| 28815 | + }); | |
| 28816 | + return selector; | |
| 28817 | + }; // @ts-ignore | |
| 28818 | + | |
| 28819 | + | |
| 28820 | + return createSelector; | |
| 28821 | +} | |
| 28822 | +var createSelector = /* #__PURE__ */createSelectorCreator(_defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize); | |
| 28823 | +// Manual definition of state and output arguments | |
| 28824 | +var createStructuredSelector = function createStructuredSelector(selectors, selectorCreator) { | |
| 28825 | + if (selectorCreator === void 0) { | |
| 28826 | + selectorCreator = createSelector; | |
| 28827 | + } | |
| 28828 | + | |
| 28829 | + if (typeof selectors !== 'object') { | |
| 28830 | + throw new Error('createStructuredSelector expects first argument to be an object ' + ("where each property is a selector, instead received a " + typeof selectors)); | |
| 28831 | + } | |
| 28832 | + | |
| 28833 | + var objectKeys = Object.keys(selectors); | |
| 28834 | + var resultSelector = selectorCreator( // @ts-ignore | |
| 28835 | + objectKeys.map(function (key) { | |
| 28836 | + return selectors[key]; | |
| 28837 | + }), function () { | |
| 28838 | + for (var _len3 = arguments.length, values = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { | |
| 28839 | + values[_key3] = arguments[_key3]; | |
| 28840 | + } | |
| 28841 | + | |
| 28842 | + return values.reduce(function (composition, value, index) { | |
| 28843 | + composition[objectKeys[index]] = value; | |
| 28844 | + return composition; | |
| 28845 | + }, {}); | |
| 28846 | + }); | |
| 28847 | + return resultSelector; | |
| 28848 | +}; | |
| 28849 | + | |
| 28850 | +/***/ }), | |
| 28851 | + | |
| 28852 | +/***/ "@wordpress/i18n": | |
| 28853 | +/*!**************************!*\ | |
| 28854 | + !*** external "wp.i18n" ***! | |
| 28855 | + \**************************/ | |
| 28856 | +/***/ ((module) => { | |
| 28857 | + | |
| 28858 | +"use strict"; | |
| 28859 | +module.exports = wp.i18n; | |
| 28860 | + | |
| 28861 | +/***/ }), | |
| 28862 | + | |
| 28863 | +/***/ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js": | |
| 28864 | +/*!********************************************************************!*\ | |
| 28865 | + !*** ../node_modules/@babel/runtime/helpers/esm/defineProperty.js ***! | |
| 28866 | + \********************************************************************/ | |
| 28867 | +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 28868 | + | |
| 28869 | +"use strict"; | |
| 28870 | +__webpack_require__.r(__webpack_exports__); | |
| 28871 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 28872 | +/* harmony export */ "default": () => (/* binding */ _defineProperty) | |
| 28873 | +/* harmony export */ }); | |
| 28874 | +function _defineProperty(obj, key, value) { | |
| 28875 | + if (key in obj) { | |
| 28876 | + Object.defineProperty(obj, key, { | |
| 28877 | + value: value, | |
| 28878 | + enumerable: true, | |
| 28879 | + configurable: true, | |
| 28880 | + writable: true | |
| 28881 | + }); | |
| 28882 | + } else { | |
| 28883 | + obj[key] = value; | |
| 28884 | + } | |
| 28885 | + | |
| 28886 | + return obj; | |
| 28887 | +} | |
| 28888 | + | |
| 28889 | +/***/ }), | |
| 28890 | + | |
| 28891 | +/***/ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js": | |
| 28892 | +/*!*******************************************************************!*\ | |
| 28893 | + !*** ../node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***! | |
| 28894 | + \*******************************************************************/ | |
| 28895 | +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 28896 | + | |
| 28897 | +"use strict"; | |
| 28898 | +__webpack_require__.r(__webpack_exports__); | |
| 28899 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 28900 | +/* harmony export */ "default": () => (/* binding */ _objectSpread2) | |
| 28901 | +/* harmony export */ }); | |
| 28902 | +/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js"); | |
| 28903 | + | |
| 28904 | + | |
| 28905 | +function ownKeys(object, enumerableOnly) { | |
| 28906 | + var keys = Object.keys(object); | |
| 28907 | + | |
| 28908 | + if (Object.getOwnPropertySymbols) { | |
| 28909 | + var symbols = Object.getOwnPropertySymbols(object); | |
| 28910 | + | |
| 28911 | + if (enumerableOnly) { | |
| 28912 | + symbols = symbols.filter(function (sym) { | |
| 28913 | + return Object.getOwnPropertyDescriptor(object, sym).enumerable; | |
| 28914 | + }); | |
| 28915 | + } | |
| 28916 | + | |
| 28917 | + keys.push.apply(keys, symbols); | |
| 28918 | + } | |
| 28919 | + | |
| 28920 | + return keys; | |
| 28921 | +} | |
| 28922 | + | |
| 28923 | +function _objectSpread2(target) { | |
| 28924 | + for (var i = 1; i < arguments.length; i++) { | |
| 28925 | + var source = arguments[i] != null ? arguments[i] : {}; | |
| 28926 | + | |
| 28927 | + if (i % 2) { | |
| 28928 | + ownKeys(Object(source), true).forEach(function (key) { | |
| 28929 | + (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); | |
| 28930 | + }); | |
| 28931 | + } else if (Object.getOwnPropertyDescriptors) { | |
| 28932 | + Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | |
| 28933 | + } else { | |
| 28934 | + ownKeys(Object(source)).forEach(function (key) { | |
| 28935 | + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | |
| 28936 | + }); | |
| 28937 | + } | |
| 28938 | + } | |
| 28939 | + | |
| 28940 | + return target; | |
| 28941 | +} | |
| 28942 | + | |
| 1555 | 28943 | /***/ }) |
| 1556 | 28944 | |
| 1557 | 28945 | /******/ }); |
| 1558 | 28946 | /************************************************************************/ |
| @@ -1580,10 +28968,39 @@ | ||
| 1580 | 28968 | /******/ return module.exports; |
| 1581 | 28969 | /******/ } |
| 1582 | 28970 | /******/ |
| 1583 | 28971 | /************************************************************************/ |
| 28972 | +/******/ /* webpack/runtime/define property getters */ | |
| 28973 | +/******/ (() => { | |
| 28974 | +/******/ // define getter functions for harmony exports | |
| 28975 | +/******/ __webpack_require__.d = (exports, definition) => { | |
| 28976 | +/******/ for(var key in definition) { | |
| 28977 | +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { | |
| 28978 | +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); | |
| 28979 | +/******/ } | |
| 28980 | +/******/ } | |
| 28981 | +/******/ }; | |
| 28982 | +/******/ })(); | |
| 28983 | +/******/ | |
| 28984 | +/******/ /* webpack/runtime/hasOwnProperty shorthand */ | |
| 28985 | +/******/ (() => { | |
| 28986 | +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) | |
| 28987 | +/******/ })(); | |
| 28988 | +/******/ | |
| 28989 | +/******/ /* webpack/runtime/make namespace object */ | |
| 28990 | +/******/ (() => { | |
| 28991 | +/******/ // define __esModule on exports | |
| 28992 | +/******/ __webpack_require__.r = (exports) => { | |
| 28993 | +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | |
| 28994 | +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | |
| 28995 | +/******/ } | |
| 28996 | +/******/ Object.defineProperty(exports, '__esModule', { value: true }); | |
| 28997 | +/******/ }; | |
| 28998 | +/******/ })(); | |
| 28999 | +/******/ | |
| 29000 | +/************************************************************************/ | |
| 1584 | 29001 | var __webpack_exports__ = {}; |
| 1585 | -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. | |
| 29002 | +// This entry need to be wrapped in an IIFE because it need to be in strict mode. | |
| 1586 | 29003 | (() => { |
| 1587 | 29004 | "use strict"; |
| 1588 | 29005 | /*!**************************************************!*\ |
| 1589 | 29006 | !*** ../assets/dev/js/editor/editor-document.js ***! |
| @@ -1589,40 +29006,23 @@ | ||
| 1589 | 29006 | !*** ../assets/dev/js/editor/editor-document.js ***! |
| 1590 | 29007 | \**************************************************/ |
| 1591 | 29008 | |
| 1592 | 29009 | |
| 1593 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1594 | -var _commandContainerBase = _interopRequireDefault(__webpack_require__(/*! ./command-bases/command-container-base */ "../assets/dev/js/editor/command-bases/command-container-base.js")); | |
| 1595 | -var _commandContainerInternalBase = _interopRequireDefault(__webpack_require__(/*! ./command-bases/command-container-internal-base */ "../assets/dev/js/editor/command-bases/command-container-internal-base.js")); | |
| 1596 | -var _commandHistoryBase = _interopRequireDefault(__webpack_require__(/*! elementor-document/command-bases/command-history-base */ "../assets/dev/js/editor/document/command-bases/command-history-base.js")); | |
| 1597 | -var _commandHistoryDebounceBase = _interopRequireDefault(__webpack_require__(/*! elementor-document/command-bases/command-history-debounce-base */ "../assets/dev/js/editor/document/command-bases/command-history-debounce-base.js")); | |
| 1598 | -$e.modules.editor = { | |
| 1599 | - CommandContainerBase: _commandContainerBase.default, | |
| 1600 | - CommandContainerInternalBase: _commandContainerInternalBase.default, | |
| 1601 | - document: { | |
| 1602 | - CommandHistoryBase: _commandHistoryBase.default, | |
| 1603 | - CommandHistoryDebounceBase: _commandHistoryDebounceBase.default | |
| 1604 | - } | |
| 1605 | -}; | |
| 29010 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); | |
| 1606 | 29011 | |
| 1607 | -// TODO: Remove, BC. | |
| 1608 | -$e.modules.document = { | |
| 1609 | - /** | |
| 1610 | - * @deprecated since 3.7.0, use `$e.modules.editor.document.CommandHistoryBase` instead. | |
| 1611 | - */ | |
| 1612 | - get CommandHistory() { | |
| 1613 | - elementorDevTools.deprecation.deprecated('$e.modules.document.CommandHistory', '3.7.0', '$e.modules.editor.document.CommandHistoryBase'); | |
| 1614 | - return $e.modules.editor.document.CommandHistoryBase; | |
| 1615 | - }, | |
| 1616 | - /** | |
| 1617 | - * @deprecated since 3.7.0, use `$e.modules.editor.document.CommandHistoryDebounceBase` instead. | |
| 1618 | - */ | |
| 1619 | - get CommandHistoryDebounce() { | |
| 1620 | - elementorDevTools.deprecation.deprecated('$e.modules.CommandHistoryDebounce', '3.7.0', '$e.modules.editor.document.CommandHistoryDebounceBase'); | |
| 1621 | - return $e.modules.editor.document.CommandHistoryDebounceBase; | |
| 1622 | - } | |
| 1623 | -}; | |
| 29012 | +var _component = _interopRequireDefault(__webpack_require__(/*! ./document/component */ "../assets/dev/js/editor/document/component.js")); | |
| 29013 | + | |
| 29014 | +var _component2 = _interopRequireDefault(__webpack_require__(/*! ./data/globals/component */ "../assets/dev/js/editor/data/globals/component.js")); | |
| 29015 | + | |
| 29016 | +elementorCommon.elements.$window.on('elementor:init-components', function () { | |
| 29017 | + // TODO: Move to elementor:init-data-components | |
| 29018 | + $e.components.register(new _component2.default()); | |
| 29019 | + $e.components.register(new _component.default()); // TODO: Remove, BC Since 2.9.0. | |
| 29020 | + | |
| 29021 | + elementor.saver = $e.components.get('document/save'); | |
| 29022 | +}); | |
| 29023 | +$e.modules.document = _component.default.getModules(); | |
| 1624 | 29024 | })(); |
| 1625 | 29025 | |
| 1626 | 29026 | /******/ })() |
| 1627 | 29027 | ; |
| 1628 | 29028 | //# sourceMappingURL=editor-document.js.map |