| @@ -1,7 +1,1950 @@ | ||
| 1 | +/*! elementor - v3.8.0 - 08-11-2022 */ | |
| 1 | 2 | /******/ (() => { // webpackBootstrap |
| 2 | 3 | /******/ var __webpack_modules__ = ({ |
| 3 | 4 | |
| 5 | +/***/ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js": | |
| 6 | +/*!******************************************************************!*\ | |
| 7 | + !*** ../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js ***! | |
| 8 | + \******************************************************************/ | |
| 9 | +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 10 | + | |
| 11 | +"use strict"; | |
| 12 | +__webpack_require__.r(__webpack_exports__); | |
| 13 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 14 | +/* harmony export */ "MiddlewareArray": () => (/* binding */ MiddlewareArray), | |
| 15 | +/* harmony export */ "SHOULD_AUTOBATCH": () => (/* binding */ SHOULD_AUTOBATCH), | |
| 16 | +/* harmony export */ "TaskAbortError": () => (/* binding */ TaskAbortError), | |
| 17 | +/* harmony export */ "__DO_NOT_USE__ActionTypes": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.__DO_NOT_USE__ActionTypes), | |
| 18 | +/* harmony export */ "addListener": () => (/* binding */ addListener), | |
| 19 | +/* harmony export */ "applyMiddleware": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware), | |
| 20 | +/* harmony export */ "autoBatchEnhancer": () => (/* binding */ autoBatchEnhancer), | |
| 21 | +/* harmony export */ "bindActionCreators": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.bindActionCreators), | |
| 22 | +/* harmony export */ "clearAllListeners": () => (/* binding */ clearAllListeners), | |
| 23 | +/* harmony export */ "combineReducers": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers), | |
| 24 | +/* harmony export */ "compose": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.compose), | |
| 25 | +/* harmony export */ "configureStore": () => (/* binding */ configureStore), | |
| 26 | +/* harmony export */ "createAction": () => (/* binding */ createAction), | |
| 27 | +/* harmony export */ "createAsyncThunk": () => (/* binding */ createAsyncThunk), | |
| 28 | +/* harmony export */ "createDraftSafeSelector": () => (/* binding */ createDraftSafeSelector), | |
| 29 | +/* harmony export */ "createEntityAdapter": () => (/* binding */ createEntityAdapter), | |
| 30 | +/* harmony export */ "createImmutableStateInvariantMiddleware": () => (/* binding */ createImmutableStateInvariantMiddleware), | |
| 31 | +/* harmony export */ "createListenerMiddleware": () => (/* binding */ createListenerMiddleware), | |
| 32 | +/* harmony export */ "createNextState": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__["default"]), | |
| 33 | +/* harmony export */ "createReducer": () => (/* binding */ createReducer), | |
| 34 | +/* harmony export */ "createSelector": () => (/* reexport safe */ reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector), | |
| 35 | +/* harmony export */ "createSerializableStateInvariantMiddleware": () => (/* binding */ createSerializableStateInvariantMiddleware), | |
| 36 | +/* harmony export */ "createSlice": () => (/* binding */ createSlice), | |
| 37 | +/* harmony export */ "createStore": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.createStore), | |
| 38 | +/* harmony export */ "current": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.current), | |
| 39 | +/* harmony export */ "findNonSerializableValue": () => (/* binding */ findNonSerializableValue), | |
| 40 | +/* harmony export */ "freeze": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.freeze), | |
| 41 | +/* harmony export */ "getDefaultMiddleware": () => (/* binding */ getDefaultMiddleware), | |
| 42 | +/* harmony export */ "getType": () => (/* binding */ getType), | |
| 43 | +/* harmony export */ "isAllOf": () => (/* binding */ isAllOf), | |
| 44 | +/* harmony export */ "isAnyOf": () => (/* binding */ isAnyOf), | |
| 45 | +/* harmony export */ "isAsyncThunkAction": () => (/* binding */ isAsyncThunkAction), | |
| 46 | +/* harmony export */ "isDraft": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.isDraft), | |
| 47 | +/* harmony export */ "isFulfilled": () => (/* binding */ isFulfilled), | |
| 48 | +/* harmony export */ "isImmutableDefault": () => (/* binding */ isImmutableDefault), | |
| 49 | +/* harmony export */ "isPending": () => (/* binding */ isPending), | |
| 50 | +/* harmony export */ "isPlain": () => (/* binding */ isPlain), | |
| 51 | +/* harmony export */ "isPlainObject": () => (/* binding */ isPlainObject), | |
| 52 | +/* harmony export */ "isRejected": () => (/* binding */ isRejected), | |
| 53 | +/* harmony export */ "isRejectedWithValue": () => (/* binding */ isRejectedWithValue), | |
| 54 | +/* harmony export */ "legacy_createStore": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.legacy_createStore), | |
| 55 | +/* harmony export */ "miniSerializeError": () => (/* binding */ miniSerializeError), | |
| 56 | +/* harmony export */ "nanoid": () => (/* binding */ nanoid), | |
| 57 | +/* harmony export */ "original": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.original), | |
| 58 | +/* harmony export */ "prepareAutoBatched": () => (/* binding */ prepareAutoBatched), | |
| 59 | +/* harmony export */ "removeListener": () => (/* binding */ removeListener), | |
| 60 | +/* harmony export */ "unwrapResult": () => (/* binding */ unwrapResult) | |
| 61 | +/* harmony export */ }); | |
| 62 | +/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! immer */ "../node_modules/immer/dist/immer.esm.mjs"); | |
| 63 | +/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "../node_modules/redux/es/redux.js"); | |
| 64 | +/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reselect */ "../node_modules/reselect/es/index.js"); | |
| 65 | +/* harmony import */ var redux_thunk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux-thunk */ "../node_modules/redux-thunk/es/index.js"); | |
| 66 | +var __extends = (undefined && undefined.__extends) || (function () { | |
| 67 | + var extendStatics = function (d, b) { | |
| 68 | + extendStatics = Object.setPrototypeOf || | |
| 69 | + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | |
| 70 | + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | |
| 71 | + return extendStatics(d, b); | |
| 72 | + }; | |
| 73 | + return function (d, b) { | |
| 74 | + if (typeof b !== "function" && b !== null) | |
| 75 | + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | |
| 76 | + extendStatics(d, b); | |
| 77 | + function __() { this.constructor = d; } | |
| 78 | + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | |
| 79 | + }; | |
| 80 | +})(); | |
| 81 | +var __generator = (undefined && undefined.__generator) || function (thisArg, body) { | |
| 82 | + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | |
| 83 | + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | |
| 84 | + function verb(n) { return function (v) { return step([n, v]); }; } | |
| 85 | + function step(op) { | |
| 86 | + if (f) throw new TypeError("Generator is already executing."); | |
| 87 | + while (_) try { | |
| 88 | + 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; | |
| 89 | + if (y = 0, t) op = [op[0] & 2, t.value]; | |
| 90 | + switch (op[0]) { | |
| 91 | + case 0: case 1: t = op; break; | |
| 92 | + case 4: _.label++; return { value: op[1], done: false }; | |
| 93 | + case 5: _.label++; y = op[1]; op = [0]; continue; | |
| 94 | + case 7: op = _.ops.pop(); _.trys.pop(); continue; | |
| 95 | + default: | |
| 96 | + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | |
| 97 | + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | |
| 98 | + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | |
| 99 | + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | |
| 100 | + if (t[2]) _.ops.pop(); | |
| 101 | + _.trys.pop(); continue; | |
| 102 | + } | |
| 103 | + op = body.call(thisArg, _); | |
| 104 | + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | |
| 105 | + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | |
| 106 | + } | |
| 107 | +}; | |
| 108 | +var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) { | |
| 109 | + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | |
| 110 | + to[j] = from[i]; | |
| 111 | + return to; | |
| 112 | +}; | |
| 113 | +var __defProp = Object.defineProperty; | |
| 114 | +var __defProps = Object.defineProperties; | |
| 115 | +var __getOwnPropDescs = Object.getOwnPropertyDescriptors; | |
| 116 | +var __getOwnPropSymbols = Object.getOwnPropertySymbols; | |
| 117 | +var __hasOwnProp = Object.prototype.hasOwnProperty; | |
| 118 | +var __propIsEnum = Object.prototype.propertyIsEnumerable; | |
| 119 | +var __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; }; | |
| 120 | +var __spreadValues = function (a, b) { | |
| 121 | + for (var prop in b || (b = {})) | |
| 122 | + if (__hasOwnProp.call(b, prop)) | |
| 123 | + __defNormalProp(a, prop, b[prop]); | |
| 124 | + if (__getOwnPropSymbols) | |
| 125 | + for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) { | |
| 126 | + var prop = _c[_i]; | |
| 127 | + if (__propIsEnum.call(b, prop)) | |
| 128 | + __defNormalProp(a, prop, b[prop]); | |
| 129 | + } | |
| 130 | + return a; | |
| 131 | +}; | |
| 132 | +var __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); }; | |
| 133 | +var __async = function (__this, __arguments, generator) { | |
| 134 | + return new Promise(function (resolve, reject) { | |
| 135 | + var fulfilled = function (value) { | |
| 136 | + try { | |
| 137 | + step(generator.next(value)); | |
| 138 | + } | |
| 139 | + catch (e) { | |
| 140 | + reject(e); | |
| 141 | + } | |
| 142 | + }; | |
| 143 | + var rejected = function (value) { | |
| 144 | + try { | |
| 145 | + step(generator.throw(value)); | |
| 146 | + } | |
| 147 | + catch (e) { | |
| 148 | + reject(e); | |
| 149 | + } | |
| 150 | + }; | |
| 151 | + var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); }; | |
| 152 | + step((generator = generator.apply(__this, __arguments)).next()); | |
| 153 | + }); | |
| 154 | +}; | |
| 155 | +// src/index.ts | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | +// src/createDraftSafeSelector.ts | |
| 161 | + | |
| 162 | + | |
| 163 | +var createDraftSafeSelector = function () { | |
| 164 | + var args = []; | |
| 165 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 166 | + args[_i] = arguments[_i]; | |
| 167 | + } | |
| 168 | + var selector = reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector.apply(void 0, args); | |
| 169 | + var wrappedSelector = function (value) { | |
| 170 | + var rest = []; | |
| 171 | + for (var _i = 1; _i < arguments.length; _i++) { | |
| 172 | + rest[_i - 1] = arguments[_i]; | |
| 173 | + } | |
| 174 | + return selector.apply(void 0, __spreadArray([(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(value) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__.current)(value) : value], rest)); | |
| 175 | + }; | |
| 176 | + return wrappedSelector; | |
| 177 | +}; | |
| 178 | +// src/configureStore.ts | |
| 179 | + | |
| 180 | +// src/devtoolsExtension.ts | |
| 181 | + | |
| 182 | +var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () { | |
| 183 | + if (arguments.length === 0) | |
| 184 | + return void 0; | |
| 185 | + if (typeof arguments[0] === "object") | |
| 186 | + return redux__WEBPACK_IMPORTED_MODULE_0__.compose; | |
| 187 | + return redux__WEBPACK_IMPORTED_MODULE_0__.compose.apply(null, arguments); | |
| 188 | +}; | |
| 189 | +var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () { | |
| 190 | + return function (noop2) { | |
| 191 | + return noop2; | |
| 192 | + }; | |
| 193 | +}; | |
| 194 | +// src/isPlainObject.ts | |
| 195 | +function isPlainObject(value) { | |
| 196 | + if (typeof value !== "object" || value === null) | |
| 197 | + return false; | |
| 198 | + var proto = Object.getPrototypeOf(value); | |
| 199 | + if (proto === null) | |
| 200 | + return true; | |
| 201 | + var baseProto = proto; | |
| 202 | + while (Object.getPrototypeOf(baseProto) !== null) { | |
| 203 | + baseProto = Object.getPrototypeOf(baseProto); | |
| 204 | + } | |
| 205 | + return proto === baseProto; | |
| 206 | +} | |
| 207 | +// src/getDefaultMiddleware.ts | |
| 208 | + | |
| 209 | +// src/utils.ts | |
| 210 | + | |
| 211 | +function getTimeMeasureUtils(maxDelay, fnName) { | |
| 212 | + var elapsed = 0; | |
| 213 | + return { | |
| 214 | + measureTime: function (fn) { | |
| 215 | + var started = Date.now(); | |
| 216 | + try { | |
| 217 | + return fn(); | |
| 218 | + } | |
| 219 | + finally { | |
| 220 | + var finished = Date.now(); | |
| 221 | + elapsed += finished - started; | |
| 222 | + } | |
| 223 | + }, | |
| 224 | + warnIfExceeded: function () { | |
| 225 | + if (elapsed > maxDelay) { | |
| 226 | + 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."); | |
| 227 | + } | |
| 228 | + } | |
| 229 | + }; | |
| 230 | +} | |
| 231 | +var MiddlewareArray = /** @class */ (function (_super) { | |
| 232 | + __extends(MiddlewareArray, _super); | |
| 233 | + function MiddlewareArray() { | |
| 234 | + var args = []; | |
| 235 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 236 | + args[_i] = arguments[_i]; | |
| 237 | + } | |
| 238 | + var _this = _super.apply(this, args) || this; | |
| 239 | + Object.setPrototypeOf(_this, MiddlewareArray.prototype); | |
| 240 | + return _this; | |
| 241 | + } | |
| 242 | + Object.defineProperty(MiddlewareArray, Symbol.species, { | |
| 243 | + get: function () { | |
| 244 | + return MiddlewareArray; | |
| 245 | + }, | |
| 246 | + enumerable: false, | |
| 247 | + configurable: true | |
| 248 | + }); | |
| 249 | + MiddlewareArray.prototype.concat = function () { | |
| 250 | + var arr = []; | |
| 251 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 252 | + arr[_i] = arguments[_i]; | |
| 253 | + } | |
| 254 | + return _super.prototype.concat.apply(this, arr); | |
| 255 | + }; | |
| 256 | + MiddlewareArray.prototype.prepend = function () { | |
| 257 | + var arr = []; | |
| 258 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 259 | + arr[_i] = arguments[_i]; | |
| 260 | + } | |
| 261 | + if (arr.length === 1 && Array.isArray(arr[0])) { | |
| 262 | + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))(); | |
| 263 | + } | |
| 264 | + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))(); | |
| 265 | + }; | |
| 266 | + return MiddlewareArray; | |
| 267 | +}(Array)); | |
| 268 | +function freezeDraftable(val) { | |
| 269 | + return (0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(val) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(val, function () { | |
| 270 | + }) : val; | |
| 271 | +} | |
| 272 | +// src/immutableStateInvariantMiddleware.ts | |
| 273 | +var isProduction = "development" === "production"; | |
| 274 | +var prefix = "Invariant failed"; | |
| 275 | +function invariant(condition, message) { | |
| 276 | + if (condition) { | |
| 277 | + return; | |
| 278 | + } | |
| 279 | + if (isProduction) { | |
| 280 | + throw new Error(prefix); | |
| 281 | + } | |
| 282 | + throw new Error(prefix + ": " + (message || "")); | |
| 283 | +} | |
| 284 | +function stringify(obj, serializer, indent, decycler) { | |
| 285 | + return JSON.stringify(obj, getSerialize(serializer, decycler), indent); | |
| 286 | +} | |
| 287 | +function getSerialize(serializer, decycler) { | |
| 288 | + var stack = [], keys = []; | |
| 289 | + if (!decycler) | |
| 290 | + decycler = function (_, value) { | |
| 291 | + if (stack[0] === value) | |
| 292 | + return "[Circular ~]"; | |
| 293 | + return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]"; | |
| 294 | + }; | |
| 295 | + return function (key, value) { | |
| 296 | + if (stack.length > 0) { | |
| 297 | + var thisPos = stack.indexOf(this); | |
| 298 | + ~thisPos ? stack.splice(thisPos + 1) : stack.push(this); | |
| 299 | + ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key); | |
| 300 | + if (~stack.indexOf(value)) | |
| 301 | + value = decycler.call(this, key, value); | |
| 302 | + } | |
| 303 | + else | |
| 304 | + stack.push(value); | |
| 305 | + return serializer == null ? value : serializer.call(this, key, value); | |
| 306 | + }; | |
| 307 | +} | |
| 308 | +function isImmutableDefault(value) { | |
| 309 | + return typeof value !== "object" || value == null || Object.isFrozen(value); | |
| 310 | +} | |
| 311 | +function trackForMutations(isImmutable, ignorePaths, obj) { | |
| 312 | + var trackedProperties = trackProperties(isImmutable, ignorePaths, obj); | |
| 313 | + return { | |
| 314 | + detectMutations: function () { | |
| 315 | + return detectMutations(isImmutable, ignorePaths, trackedProperties, obj); | |
| 316 | + } | |
| 317 | + }; | |
| 318 | +} | |
| 319 | +function trackProperties(isImmutable, ignorePaths, obj, path) { | |
| 320 | + if (ignorePaths === void 0) { ignorePaths = []; } | |
| 321 | + if (path === void 0) { path = ""; } | |
| 322 | + var tracked = { value: obj }; | |
| 323 | + if (!isImmutable(obj)) { | |
| 324 | + tracked.children = {}; | |
| 325 | + for (var key in obj) { | |
| 326 | + var childPath = path ? path + "." + key : key; | |
| 327 | + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) { | |
| 328 | + continue; | |
| 329 | + } | |
| 330 | + tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath); | |
| 331 | + } | |
| 332 | + } | |
| 333 | + return tracked; | |
| 334 | +} | |
| 335 | +function detectMutations(isImmutable, ignorePaths, trackedProperty, obj, sameParentRef, path) { | |
| 336 | + if (ignorePaths === void 0) { ignorePaths = []; } | |
| 337 | + if (sameParentRef === void 0) { sameParentRef = false; } | |
| 338 | + if (path === void 0) { path = ""; } | |
| 339 | + var prevObj = trackedProperty ? trackedProperty.value : void 0; | |
| 340 | + var sameRef = prevObj === obj; | |
| 341 | + if (sameParentRef && !sameRef && !Number.isNaN(obj)) { | |
| 342 | + return { wasMutated: true, path: path }; | |
| 343 | + } | |
| 344 | + if (isImmutable(prevObj) || isImmutable(obj)) { | |
| 345 | + return { wasMutated: false }; | |
| 346 | + } | |
| 347 | + var keysToDetect = {}; | |
| 348 | + for (var key in trackedProperty.children) { | |
| 349 | + keysToDetect[key] = true; | |
| 350 | + } | |
| 351 | + for (var key in obj) { | |
| 352 | + keysToDetect[key] = true; | |
| 353 | + } | |
| 354 | + for (var key in keysToDetect) { | |
| 355 | + var childPath = path ? path + "." + key : key; | |
| 356 | + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) { | |
| 357 | + continue; | |
| 358 | + } | |
| 359 | + var result = detectMutations(isImmutable, ignorePaths, trackedProperty.children[key], obj[key], sameRef, childPath); | |
| 360 | + if (result.wasMutated) { | |
| 361 | + return result; | |
| 362 | + } | |
| 363 | + } | |
| 364 | + return { wasMutated: false }; | |
| 365 | +} | |
| 366 | +function createImmutableStateInvariantMiddleware(options) { | |
| 367 | + if (options === void 0) { options = {}; } | |
| 368 | + if (false) {} | |
| 369 | + var _c = options.isImmutable, isImmutable = _c === void 0 ? isImmutableDefault : _c, ignoredPaths = options.ignoredPaths, _d = options.warnAfter, warnAfter = _d === void 0 ? 32 : _d, ignore = options.ignore; | |
| 370 | + ignoredPaths = ignoredPaths || ignore; | |
| 371 | + var track = trackForMutations.bind(null, isImmutable, ignoredPaths); | |
| 372 | + return function (_c) { | |
| 373 | + var getState = _c.getState; | |
| 374 | + var state = getState(); | |
| 375 | + var tracker = track(state); | |
| 376 | + var result; | |
| 377 | + return function (next) { return function (action) { | |
| 378 | + var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware"); | |
| 379 | + measureUtils.measureTime(function () { | |
| 380 | + state = getState(); | |
| 381 | + result = tracker.detectMutations(); | |
| 382 | + tracker = track(state); | |
| 383 | + 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)"); | |
| 384 | + }); | |
| 385 | + var dispatchedAction = next(action); | |
| 386 | + measureUtils.measureTime(function () { | |
| 387 | + state = getState(); | |
| 388 | + result = tracker.detectMutations(); | |
| 389 | + tracker = track(state); | |
| 390 | + 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)"); | |
| 391 | + }); | |
| 392 | + measureUtils.warnIfExceeded(); | |
| 393 | + return dispatchedAction; | |
| 394 | + }; }; | |
| 395 | + }; | |
| 396 | +} | |
| 397 | +// src/serializableStateInvariantMiddleware.ts | |
| 398 | +function isPlain(val) { | |
| 399 | + var type = typeof val; | |
| 400 | + return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val); | |
| 401 | +} | |
| 402 | +function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths) { | |
| 403 | + if (path === void 0) { path = ""; } | |
| 404 | + if (isSerializable === void 0) { isSerializable = isPlain; } | |
| 405 | + if (ignoredPaths === void 0) { ignoredPaths = []; } | |
| 406 | + var foundNestedSerializable; | |
| 407 | + if (!isSerializable(value)) { | |
| 408 | + return { | |
| 409 | + keyPath: path || "<root>", | |
| 410 | + value: value | |
| 411 | + }; | |
| 412 | + } | |
| 413 | + if (typeof value !== "object" || value === null) { | |
| 414 | + return false; | |
| 415 | + } | |
| 416 | + var entries = getEntries != null ? getEntries(value) : Object.entries(value); | |
| 417 | + var hasIgnoredPaths = ignoredPaths.length > 0; | |
| 418 | + for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) { | |
| 419 | + var _c = entries_1[_i], key = _c[0], nestedValue = _c[1]; | |
| 420 | + var nestedPath = path ? path + "." + key : key; | |
| 421 | + if (hasIgnoredPaths && ignoredPaths.indexOf(nestedPath) >= 0) { | |
| 422 | + continue; | |
| 423 | + } | |
| 424 | + if (!isSerializable(nestedValue)) { | |
| 425 | + return { | |
| 426 | + keyPath: nestedPath, | |
| 427 | + value: nestedValue | |
| 428 | + }; | |
| 429 | + } | |
| 430 | + if (typeof nestedValue === "object") { | |
| 431 | + foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths); | |
| 432 | + if (foundNestedSerializable) { | |
| 433 | + return foundNestedSerializable; | |
| 434 | + } | |
| 435 | + } | |
| 436 | + } | |
| 437 | + return false; | |
| 438 | +} | |
| 439 | +function createSerializableStateInvariantMiddleware(options) { | |
| 440 | + if (options === void 0) { options = {}; } | |
| 441 | + if (false) {} | |
| 442 | + var _c = options.isSerializable, isSerializable = _c === void 0 ? isPlain : _c, getEntries = options.getEntries, _d = options.ignoredActions, ignoredActions = _d === void 0 ? [] : _d, _e = options.ignoredActionPaths, ignoredActionPaths = _e === void 0 ? ["meta.arg", "meta.baseQueryMeta"] : _e, _f = options.ignoredPaths, ignoredPaths = _f === void 0 ? [] : _f, _g = options.warnAfter, warnAfter = _g === void 0 ? 32 : _g, _h = options.ignoreState, ignoreState = _h === void 0 ? false : _h, _j = options.ignoreActions, ignoreActions = _j === void 0 ? false : _j; | |
| 443 | + return function (storeAPI) { return function (next) { return function (action) { | |
| 444 | + var result = next(action); | |
| 445 | + var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware"); | |
| 446 | + if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) { | |
| 447 | + measureUtils.measureTime(function () { | |
| 448 | + var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths); | |
| 449 | + if (foundActionNonSerializableValue) { | |
| 450 | + var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value; | |
| 451 | + 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)"); | |
| 452 | + } | |
| 453 | + }); | |
| 454 | + } | |
| 455 | + if (!ignoreState) { | |
| 456 | + measureUtils.measureTime(function () { | |
| 457 | + var state = storeAPI.getState(); | |
| 458 | + var foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths); | |
| 459 | + if (foundStateNonSerializableValue) { | |
| 460 | + var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value; | |
| 461 | + 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)"); | |
| 462 | + } | |
| 463 | + }); | |
| 464 | + measureUtils.warnIfExceeded(); | |
| 465 | + } | |
| 466 | + return result; | |
| 467 | + }; }; }; | |
| 468 | +} | |
| 469 | +// src/getDefaultMiddleware.ts | |
| 470 | +function isBoolean(x) { | |
| 471 | + return typeof x === "boolean"; | |
| 472 | +} | |
| 473 | +function curryGetDefaultMiddleware() { | |
| 474 | + return function curriedGetDefaultMiddleware(options) { | |
| 475 | + return getDefaultMiddleware(options); | |
| 476 | + }; | |
| 477 | +} | |
| 478 | +function getDefaultMiddleware(options) { | |
| 479 | + if (options === void 0) { options = {}; } | |
| 480 | + var _c = options.thunk, thunk = _c === void 0 ? true : _c, _d = options.immutableCheck, immutableCheck = _d === void 0 ? true : _d, _e = options.serializableCheck, serializableCheck = _e === void 0 ? true : _e; | |
| 481 | + var middlewareArray = new MiddlewareArray(); | |
| 482 | + if (thunk) { | |
| 483 | + if (isBoolean(thunk)) { | |
| 484 | + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"]); | |
| 485 | + } | |
| 486 | + else { | |
| 487 | + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"].withExtraArgument(thunk.extraArgument)); | |
| 488 | + } | |
| 489 | + } | |
| 490 | + if (true) { | |
| 491 | + if (immutableCheck) { | |
| 492 | + var immutableOptions = {}; | |
| 493 | + if (!isBoolean(immutableCheck)) { | |
| 494 | + immutableOptions = immutableCheck; | |
| 495 | + } | |
| 496 | + middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions)); | |
| 497 | + } | |
| 498 | + if (serializableCheck) { | |
| 499 | + var serializableOptions = {}; | |
| 500 | + if (!isBoolean(serializableCheck)) { | |
| 501 | + serializableOptions = serializableCheck; | |
| 502 | + } | |
| 503 | + middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions)); | |
| 504 | + } | |
| 505 | + } | |
| 506 | + return middlewareArray; | |
| 507 | +} | |
| 508 | +// src/configureStore.ts | |
| 509 | +var IS_PRODUCTION = "development" === "production"; | |
| 510 | +function configureStore(options) { | |
| 511 | + var curriedGetDefaultMiddleware = curryGetDefaultMiddleware(); | |
| 512 | + var _c = options || {}, _d = _c.reducer, reducer = _d === void 0 ? void 0 : _d, _e = _c.middleware, middleware = _e === void 0 ? curriedGetDefaultMiddleware() : _e, _f = _c.devTools, devTools = _f === void 0 ? true : _f, _g = _c.preloadedState, preloadedState = _g === void 0 ? void 0 : _g, _h = _c.enhancers, enhancers = _h === void 0 ? void 0 : _h; | |
| 513 | + var rootReducer; | |
| 514 | + if (typeof reducer === "function") { | |
| 515 | + rootReducer = reducer; | |
| 516 | + } | |
| 517 | + else if (isPlainObject(reducer)) { | |
| 518 | + rootReducer = (0,redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers)(reducer); | |
| 519 | + } | |
| 520 | + else { | |
| 521 | + throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers'); | |
| 522 | + } | |
| 523 | + var finalMiddleware = middleware; | |
| 524 | + if (typeof finalMiddleware === "function") { | |
| 525 | + finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware); | |
| 526 | + if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) { | |
| 527 | + throw new Error("when using a middleware builder function, an array of middleware must be returned"); | |
| 528 | + } | |
| 529 | + } | |
| 530 | + if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== "function"; })) { | |
| 531 | + throw new Error("each middleware provided to configureStore must be a function"); | |
| 532 | + } | |
| 533 | + var middlewareEnhancer = redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware.apply(void 0, finalMiddleware); | |
| 534 | + var finalCompose = redux__WEBPACK_IMPORTED_MODULE_0__.compose; | |
| 535 | + if (devTools) { | |
| 536 | + finalCompose = composeWithDevTools(__spreadValues({ | |
| 537 | + trace: !IS_PRODUCTION | |
| 538 | + }, typeof devTools === "object" && devTools)); | |
| 539 | + } | |
| 540 | + var storeEnhancers = [middlewareEnhancer]; | |
| 541 | + if (Array.isArray(enhancers)) { | |
| 542 | + storeEnhancers = __spreadArray([middlewareEnhancer], enhancers); | |
| 543 | + } | |
| 544 | + else if (typeof enhancers === "function") { | |
| 545 | + storeEnhancers = enhancers(storeEnhancers); | |
| 546 | + } | |
| 547 | + var composedEnhancer = finalCompose.apply(void 0, storeEnhancers); | |
| 548 | + return (0,redux__WEBPACK_IMPORTED_MODULE_0__.createStore)(rootReducer, preloadedState, composedEnhancer); | |
| 549 | +} | |
| 550 | +// src/createAction.ts | |
| 551 | +function createAction(type, prepareAction) { | |
| 552 | + function actionCreator() { | |
| 553 | + var args = []; | |
| 554 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 555 | + args[_i] = arguments[_i]; | |
| 556 | + } | |
| 557 | + if (prepareAction) { | |
| 558 | + var prepared = prepareAction.apply(void 0, args); | |
| 559 | + if (!prepared) { | |
| 560 | + throw new Error("prepareAction did not return an object"); | |
| 561 | + } | |
| 562 | + return __spreadValues(__spreadValues({ | |
| 563 | + type: type, | |
| 564 | + payload: prepared.payload | |
| 565 | + }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error }); | |
| 566 | + } | |
| 567 | + return { type: type, payload: args[0] }; | |
| 568 | + } | |
| 569 | + actionCreator.toString = function () { return "" + type; }; | |
| 570 | + actionCreator.type = type; | |
| 571 | + actionCreator.match = function (action) { return action.type === type; }; | |
| 572 | + return actionCreator; | |
| 573 | +} | |
| 574 | +function isFSA(action) { | |
| 575 | + return isPlainObject(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey); | |
| 576 | +} | |
| 577 | +function isValidKey(key) { | |
| 578 | + return ["type", "payload", "error", "meta"].indexOf(key) > -1; | |
| 579 | +} | |
| 580 | +function getType(actionCreator) { | |
| 581 | + return "" + actionCreator; | |
| 582 | +} | |
| 583 | +// src/createReducer.ts | |
| 584 | + | |
| 585 | +// src/mapBuilders.ts | |
| 586 | +function executeReducerBuilderCallback(builderCallback) { | |
| 587 | + var actionsMap = {}; | |
| 588 | + var actionMatchers = []; | |
| 589 | + var defaultCaseReducer; | |
| 590 | + var builder = { | |
| 591 | + addCase: function (typeOrActionCreator, reducer) { | |
| 592 | + if (true) { | |
| 593 | + if (actionMatchers.length > 0) { | |
| 594 | + throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`"); | |
| 595 | + } | |
| 596 | + if (defaultCaseReducer) { | |
| 597 | + throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`"); | |
| 598 | + } | |
| 599 | + } | |
| 600 | + var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type; | |
| 601 | + if (type in actionsMap) { | |
| 602 | + throw new Error("addCase cannot be called with two reducers for the same action type"); | |
| 603 | + } | |
| 604 | + actionsMap[type] = reducer; | |
| 605 | + return builder; | |
| 606 | + }, | |
| 607 | + addMatcher: function (matcher, reducer) { | |
| 608 | + if (true) { | |
| 609 | + if (defaultCaseReducer) { | |
| 610 | + throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`"); | |
| 611 | + } | |
| 612 | + } | |
| 613 | + actionMatchers.push({ matcher: matcher, reducer: reducer }); | |
| 614 | + return builder; | |
| 615 | + }, | |
| 616 | + addDefaultCase: function (reducer) { | |
| 617 | + if (true) { | |
| 618 | + if (defaultCaseReducer) { | |
| 619 | + throw new Error("`builder.addDefaultCase` can only be called once"); | |
| 620 | + } | |
| 621 | + } | |
| 622 | + defaultCaseReducer = reducer; | |
| 623 | + return builder; | |
| 624 | + } | |
| 625 | + }; | |
| 626 | + builderCallback(builder); | |
| 627 | + return [actionsMap, actionMatchers, defaultCaseReducer]; | |
| 628 | +} | |
| 629 | +// src/createReducer.ts | |
| 630 | +function isStateFunction(x) { | |
| 631 | + return typeof x === "function"; | |
| 632 | +} | |
| 633 | +var hasWarnedAboutObjectNotation = false; | |
| 634 | +function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) { | |
| 635 | + if (actionMatchers === void 0) { actionMatchers = []; } | |
| 636 | + if (true) { | |
| 637 | + if (typeof mapOrBuilderCallback === "object") { | |
| 638 | + if (!hasWarnedAboutObjectNotation) { | |
| 639 | + hasWarnedAboutObjectNotation = true; | |
| 640 | + console.warn("The object notation for `createReducer` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer"); | |
| 641 | + } | |
| 642 | + } | |
| 643 | + } | |
| 644 | + var _c = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2]; | |
| 645 | + var getInitialState; | |
| 646 | + if (isStateFunction(initialState)) { | |
| 647 | + getInitialState = function () { return freezeDraftable(initialState()); }; | |
| 648 | + } | |
| 649 | + else { | |
| 650 | + var frozenInitialState_1 = freezeDraftable(initialState); | |
| 651 | + getInitialState = function () { return frozenInitialState_1; }; | |
| 652 | + } | |
| 653 | + function reducer(state, action) { | |
| 654 | + if (state === void 0) { state = getInitialState(); } | |
| 655 | + var caseReducers = __spreadArray([ | |
| 656 | + actionsMap[action.type] | |
| 657 | + ], finalActionMatchers.filter(function (_c) { | |
| 658 | + var matcher = _c.matcher; | |
| 659 | + return matcher(action); | |
| 660 | + }).map(function (_c) { | |
| 661 | + var reducer2 = _c.reducer; | |
| 662 | + return reducer2; | |
| 663 | + })); | |
| 664 | + if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) { | |
| 665 | + caseReducers = [finalDefaultCaseReducer]; | |
| 666 | + } | |
| 667 | + return caseReducers.reduce(function (previousState, caseReducer) { | |
| 668 | + if (caseReducer) { | |
| 669 | + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(previousState)) { | |
| 670 | + var draft = previousState; | |
| 671 | + var result = caseReducer(draft, action); | |
| 672 | + if (result === void 0) { | |
| 673 | + return previousState; | |
| 674 | + } | |
| 675 | + return result; | |
| 676 | + } | |
| 677 | + else if (!(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(previousState)) { | |
| 678 | + var result = caseReducer(previousState, action); | |
| 679 | + if (result === void 0) { | |
| 680 | + if (previousState === null) { | |
| 681 | + return previousState; | |
| 682 | + } | |
| 683 | + throw Error("A case reducer on a non-draftable value must not return undefined"); | |
| 684 | + } | |
| 685 | + return result; | |
| 686 | + } | |
| 687 | + else { | |
| 688 | + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(previousState, function (draft) { | |
| 689 | + return caseReducer(draft, action); | |
| 690 | + }); | |
| 691 | + } | |
| 692 | + } | |
| 693 | + return previousState; | |
| 694 | + }, state); | |
| 695 | + } | |
| 696 | + reducer.getInitialState = getInitialState; | |
| 697 | + return reducer; | |
| 698 | +} | |
| 699 | +// src/createSlice.ts | |
| 700 | +var hasWarnedAboutObjectNotation2 = false; | |
| 701 | +function getType2(slice, actionKey) { | |
| 702 | + return slice + "/" + actionKey; | |
| 703 | +} | |
| 704 | +function createSlice(options) { | |
| 705 | + var name = options.name; | |
| 706 | + if (!name) { | |
| 707 | + throw new Error("`name` is a required option for createSlice"); | |
| 708 | + } | |
| 709 | + if (typeof process !== "undefined" && "development" === "development") { | |
| 710 | + if (options.initialState === void 0) { | |
| 711 | + console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`"); | |
| 712 | + } | |
| 713 | + } | |
| 714 | + var initialState = typeof options.initialState == "function" ? options.initialState : freezeDraftable(options.initialState); | |
| 715 | + var reducers = options.reducers || {}; | |
| 716 | + var reducerNames = Object.keys(reducers); | |
| 717 | + var sliceCaseReducersByName = {}; | |
| 718 | + var sliceCaseReducersByType = {}; | |
| 719 | + var actionCreators = {}; | |
| 720 | + reducerNames.forEach(function (reducerName) { | |
| 721 | + var maybeReducerWithPrepare = reducers[reducerName]; | |
| 722 | + var type = getType2(name, reducerName); | |
| 723 | + var caseReducer; | |
| 724 | + var prepareCallback; | |
| 725 | + if ("reducer" in maybeReducerWithPrepare) { | |
| 726 | + caseReducer = maybeReducerWithPrepare.reducer; | |
| 727 | + prepareCallback = maybeReducerWithPrepare.prepare; | |
| 728 | + } | |
| 729 | + else { | |
| 730 | + caseReducer = maybeReducerWithPrepare; | |
| 731 | + } | |
| 732 | + sliceCaseReducersByName[reducerName] = caseReducer; | |
| 733 | + sliceCaseReducersByType[type] = caseReducer; | |
| 734 | + actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type); | |
| 735 | + }); | |
| 736 | + function buildReducer() { | |
| 737 | + if (true) { | |
| 738 | + if (typeof options.extraReducers === "object") { | |
| 739 | + if (!hasWarnedAboutObjectNotation2) { | |
| 740 | + hasWarnedAboutObjectNotation2 = true; | |
| 741 | + console.warn("The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice"); | |
| 742 | + } | |
| 743 | + } | |
| 744 | + } | |
| 745 | + var _c = typeof options.extraReducers === "function" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers], _d = _c[0], extraReducers = _d === void 0 ? {} : _d, _e = _c[1], actionMatchers = _e === void 0 ? [] : _e, _f = _c[2], defaultCaseReducer = _f === void 0 ? void 0 : _f; | |
| 746 | + var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType); | |
| 747 | + return createReducer(initialState, function (builder) { | |
| 748 | + for (var key in finalCaseReducers) { | |
| 749 | + builder.addCase(key, finalCaseReducers[key]); | |
| 750 | + } | |
| 751 | + for (var _i = 0, actionMatchers_1 = actionMatchers; _i < actionMatchers_1.length; _i++) { | |
| 752 | + var m = actionMatchers_1[_i]; | |
| 753 | + builder.addMatcher(m.matcher, m.reducer); | |
| 754 | + } | |
| 755 | + if (defaultCaseReducer) { | |
| 756 | + builder.addDefaultCase(defaultCaseReducer); | |
| 757 | + } | |
| 758 | + }); | |
| 759 | + } | |
| 760 | + var _reducer; | |
| 761 | + return { | |
| 762 | + name: name, | |
| 763 | + reducer: function (state, action) { | |
| 764 | + if (!_reducer) | |
| 765 | + _reducer = buildReducer(); | |
| 766 | + return _reducer(state, action); | |
| 767 | + }, | |
| 768 | + actions: actionCreators, | |
| 769 | + caseReducers: sliceCaseReducersByName, | |
| 770 | + getInitialState: function () { | |
| 771 | + if (!_reducer) | |
| 772 | + _reducer = buildReducer(); | |
| 773 | + return _reducer.getInitialState(); | |
| 774 | + } | |
| 775 | + }; | |
| 776 | +} | |
| 777 | +// src/entities/entity_state.ts | |
| 778 | +function getInitialEntityState() { | |
| 779 | + return { | |
| 780 | + ids: [], | |
| 781 | + entities: {} | |
| 782 | + }; | |
| 783 | +} | |
| 784 | +function createInitialStateFactory() { | |
| 785 | + function getInitialState(additionalState) { | |
| 786 | + if (additionalState === void 0) { additionalState = {}; } | |
| 787 | + return Object.assign(getInitialEntityState(), additionalState); | |
| 788 | + } | |
| 789 | + return { getInitialState: getInitialState }; | |
| 790 | +} | |
| 791 | +// src/entities/state_selectors.ts | |
| 792 | +function createSelectorsFactory() { | |
| 793 | + function getSelectors(selectState) { | |
| 794 | + var selectIds = function (state) { return state.ids; }; | |
| 795 | + var selectEntities = function (state) { return state.entities; }; | |
| 796 | + var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); }); | |
| 797 | + var selectId = function (_, id) { return id; }; | |
| 798 | + var selectById = function (entities, id) { return entities[id]; }; | |
| 799 | + var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; }); | |
| 800 | + if (!selectState) { | |
| 801 | + return { | |
| 802 | + selectIds: selectIds, | |
| 803 | + selectEntities: selectEntities, | |
| 804 | + selectAll: selectAll, | |
| 805 | + selectTotal: selectTotal, | |
| 806 | + selectById: createDraftSafeSelector(selectEntities, selectId, selectById) | |
| 807 | + }; | |
| 808 | + } | |
| 809 | + var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities); | |
| 810 | + return { | |
| 811 | + selectIds: createDraftSafeSelector(selectState, selectIds), | |
| 812 | + selectEntities: selectGlobalizedEntities, | |
| 813 | + selectAll: createDraftSafeSelector(selectState, selectAll), | |
| 814 | + selectTotal: createDraftSafeSelector(selectState, selectTotal), | |
| 815 | + selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById) | |
| 816 | + }; | |
| 817 | + } | |
| 818 | + return { getSelectors: getSelectors }; | |
| 819 | +} | |
| 820 | +// src/entities/state_adapter.ts | |
| 821 | + | |
| 822 | +function createSingleArgumentStateOperator(mutator) { | |
| 823 | + var operator = createStateOperator(function (_, state) { return mutator(state); }); | |
| 824 | + return function operation(state) { | |
| 825 | + return operator(state, void 0); | |
| 826 | + }; | |
| 827 | +} | |
| 828 | +function createStateOperator(mutator) { | |
| 829 | + return function operation(state, arg) { | |
| 830 | + function isPayloadActionArgument(arg2) { | |
| 831 | + return isFSA(arg2); | |
| 832 | + } | |
| 833 | + var runMutator = function (draft) { | |
| 834 | + if (isPayloadActionArgument(arg)) { | |
| 835 | + mutator(arg.payload, draft); | |
| 836 | + } | |
| 837 | + else { | |
| 838 | + mutator(arg, draft); | |
| 839 | + } | |
| 840 | + }; | |
| 841 | + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(state)) { | |
| 842 | + runMutator(state); | |
| 843 | + return state; | |
| 844 | + } | |
| 845 | + else { | |
| 846 | + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(state, runMutator); | |
| 847 | + } | |
| 848 | + }; | |
| 849 | +} | |
| 850 | +// src/entities/utils.ts | |
| 851 | +function selectIdValue(entity, selectId) { | |
| 852 | + var key = selectId(entity); | |
| 853 | + if ( true && key === void 0) { | |
| 854 | + 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()); | |
| 855 | + } | |
| 856 | + return key; | |
| 857 | +} | |
| 858 | +function ensureEntitiesArray(entities) { | |
| 859 | + if (!Array.isArray(entities)) { | |
| 860 | + entities = Object.values(entities); | |
| 861 | + } | |
| 862 | + return entities; | |
| 863 | +} | |
| 864 | +function splitAddedUpdatedEntities(newEntities, selectId, state) { | |
| 865 | + newEntities = ensureEntitiesArray(newEntities); | |
| 866 | + var added = []; | |
| 867 | + var updated = []; | |
| 868 | + for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) { | |
| 869 | + var entity = newEntities_1[_i]; | |
| 870 | + var id = selectIdValue(entity, selectId); | |
| 871 | + if (id in state.entities) { | |
| 872 | + updated.push({ id: id, changes: entity }); | |
| 873 | + } | |
| 874 | + else { | |
| 875 | + added.push(entity); | |
| 876 | + } | |
| 877 | + } | |
| 878 | + return [added, updated]; | |
| 879 | +} | |
| 880 | +// src/entities/unsorted_state_adapter.ts | |
| 881 | +function createUnsortedStateAdapter(selectId) { | |
| 882 | + function addOneMutably(entity, state) { | |
| 883 | + var key = selectIdValue(entity, selectId); | |
| 884 | + if (key in state.entities) { | |
| 885 | + return; | |
| 886 | + } | |
| 887 | + state.ids.push(key); | |
| 888 | + state.entities[key] = entity; | |
| 889 | + } | |
| 890 | + function addManyMutably(newEntities, state) { | |
| 891 | + newEntities = ensureEntitiesArray(newEntities); | |
| 892 | + for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) { | |
| 893 | + var entity = newEntities_2[_i]; | |
| 894 | + addOneMutably(entity, state); | |
| 895 | + } | |
| 896 | + } | |
| 897 | + function setOneMutably(entity, state) { | |
| 898 | + var key = selectIdValue(entity, selectId); | |
| 899 | + if (!(key in state.entities)) { | |
| 900 | + state.ids.push(key); | |
| 901 | + } | |
| 902 | + state.entities[key] = entity; | |
| 903 | + } | |
| 904 | + function setManyMutably(newEntities, state) { | |
| 905 | + newEntities = ensureEntitiesArray(newEntities); | |
| 906 | + for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) { | |
| 907 | + var entity = newEntities_3[_i]; | |
| 908 | + setOneMutably(entity, state); | |
| 909 | + } | |
| 910 | + } | |
| 911 | + function setAllMutably(newEntities, state) { | |
| 912 | + newEntities = ensureEntitiesArray(newEntities); | |
| 913 | + state.ids = []; | |
| 914 | + state.entities = {}; | |
| 915 | + addManyMutably(newEntities, state); | |
| 916 | + } | |
| 917 | + function removeOneMutably(key, state) { | |
| 918 | + return removeManyMutably([key], state); | |
| 919 | + } | |
| 920 | + function removeManyMutably(keys, state) { | |
| 921 | + var didMutate = false; | |
| 922 | + keys.forEach(function (key) { | |
| 923 | + if (key in state.entities) { | |
| 924 | + delete state.entities[key]; | |
| 925 | + didMutate = true; | |
| 926 | + } | |
| 927 | + }); | |
| 928 | + if (didMutate) { | |
| 929 | + state.ids = state.ids.filter(function (id) { return id in state.entities; }); | |
| 930 | + } | |
| 931 | + } | |
| 932 | + function removeAllMutably(state) { | |
| 933 | + Object.assign(state, { | |
| 934 | + ids: [], | |
| 935 | + entities: {} | |
| 936 | + }); | |
| 937 | + } | |
| 938 | + function takeNewKey(keys, update, state) { | |
| 939 | + var original2 = state.entities[update.id]; | |
| 940 | + var updated = Object.assign({}, original2, update.changes); | |
| 941 | + var newKey = selectIdValue(updated, selectId); | |
| 942 | + var hasNewKey = newKey !== update.id; | |
| 943 | + if (hasNewKey) { | |
| 944 | + keys[update.id] = newKey; | |
| 945 | + delete state.entities[update.id]; | |
| 946 | + } | |
| 947 | + state.entities[newKey] = updated; | |
| 948 | + return hasNewKey; | |
| 949 | + } | |
| 950 | + function updateOneMutably(update, state) { | |
| 951 | + return updateManyMutably([update], state); | |
| 952 | + } | |
| 953 | + function updateManyMutably(updates, state) { | |
| 954 | + var newKeys = {}; | |
| 955 | + var updatesPerEntity = {}; | |
| 956 | + updates.forEach(function (update) { | |
| 957 | + if (update.id in state.entities) { | |
| 958 | + updatesPerEntity[update.id] = { | |
| 959 | + id: update.id, | |
| 960 | + changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes) | |
| 961 | + }; | |
| 962 | + } | |
| 963 | + }); | |
| 964 | + updates = Object.values(updatesPerEntity); | |
| 965 | + var didMutateEntities = updates.length > 0; | |
| 966 | + if (didMutateEntities) { | |
| 967 | + var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0; | |
| 968 | + if (didMutateIds) { | |
| 969 | + state.ids = Object.keys(state.entities); | |
| 970 | + } | |
| 971 | + } | |
| 972 | + } | |
| 973 | + function upsertOneMutably(entity, state) { | |
| 974 | + return upsertManyMutably([entity], state); | |
| 975 | + } | |
| 976 | + function upsertManyMutably(newEntities, state) { | |
| 977 | + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1]; | |
| 978 | + updateManyMutably(updated, state); | |
| 979 | + addManyMutably(added, state); | |
| 980 | + } | |
| 981 | + return { | |
| 982 | + removeAll: createSingleArgumentStateOperator(removeAllMutably), | |
| 983 | + addOne: createStateOperator(addOneMutably), | |
| 984 | + addMany: createStateOperator(addManyMutably), | |
| 985 | + setOne: createStateOperator(setOneMutably), | |
| 986 | + setMany: createStateOperator(setManyMutably), | |
| 987 | + setAll: createStateOperator(setAllMutably), | |
| 988 | + updateOne: createStateOperator(updateOneMutably), | |
| 989 | + updateMany: createStateOperator(updateManyMutably), | |
| 990 | + upsertOne: createStateOperator(upsertOneMutably), | |
| 991 | + upsertMany: createStateOperator(upsertManyMutably), | |
| 992 | + removeOne: createStateOperator(removeOneMutably), | |
| 993 | + removeMany: createStateOperator(removeManyMutably) | |
| 994 | + }; | |
| 995 | +} | |
| 996 | +// src/entities/sorted_state_adapter.ts | |
| 997 | +function createSortedStateAdapter(selectId, sort) { | |
| 998 | + var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll; | |
| 999 | + function addOneMutably(entity, state) { | |
| 1000 | + return addManyMutably([entity], state); | |
| 1001 | + } | |
| 1002 | + function addManyMutably(newEntities, state) { | |
| 1003 | + newEntities = ensureEntitiesArray(newEntities); | |
| 1004 | + var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); }); | |
| 1005 | + if (models.length !== 0) { | |
| 1006 | + merge(models, state); | |
| 1007 | + } | |
| 1008 | + } | |
| 1009 | + function setOneMutably(entity, state) { | |
| 1010 | + return setManyMutably([entity], state); | |
| 1011 | + } | |
| 1012 | + function setManyMutably(newEntities, state) { | |
| 1013 | + newEntities = ensureEntitiesArray(newEntities); | |
| 1014 | + if (newEntities.length !== 0) { | |
| 1015 | + merge(newEntities, state); | |
| 1016 | + } | |
| 1017 | + } | |
| 1018 | + function setAllMutably(newEntities, state) { | |
| 1019 | + newEntities = ensureEntitiesArray(newEntities); | |
| 1020 | + state.entities = {}; | |
| 1021 | + state.ids = []; | |
| 1022 | + addManyMutably(newEntities, state); | |
| 1023 | + } | |
| 1024 | + function updateOneMutably(update, state) { | |
| 1025 | + return updateManyMutably([update], state); | |
| 1026 | + } | |
| 1027 | + function updateManyMutably(updates, state) { | |
| 1028 | + var appliedUpdates = false; | |
| 1029 | + for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) { | |
| 1030 | + var update = updates_1[_i]; | |
| 1031 | + var entity = state.entities[update.id]; | |
| 1032 | + if (!entity) { | |
| 1033 | + continue; | |
| 1034 | + } | |
| 1035 | + appliedUpdates = true; | |
| 1036 | + Object.assign(entity, update.changes); | |
| 1037 | + var newId = selectId(entity); | |
| 1038 | + if (update.id !== newId) { | |
| 1039 | + delete state.entities[update.id]; | |
| 1040 | + state.entities[newId] = entity; | |
| 1041 | + } | |
| 1042 | + } | |
| 1043 | + if (appliedUpdates) { | |
| 1044 | + resortEntities(state); | |
| 1045 | + } | |
| 1046 | + } | |
| 1047 | + function upsertOneMutably(entity, state) { | |
| 1048 | + return upsertManyMutably([entity], state); | |
| 1049 | + } | |
| 1050 | + function upsertManyMutably(newEntities, state) { | |
| 1051 | + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1]; | |
| 1052 | + updateManyMutably(updated, state); | |
| 1053 | + addManyMutably(added, state); | |
| 1054 | + } | |
| 1055 | + function areArraysEqual(a, b) { | |
| 1056 | + if (a.length !== b.length) { | |
| 1057 | + return false; | |
| 1058 | + } | |
| 1059 | + for (var i = 0; i < a.length && i < b.length; i++) { | |
| 1060 | + if (a[i] === b[i]) { | |
| 1061 | + continue; | |
| 1062 | + } | |
| 1063 | + return false; | |
| 1064 | + } | |
| 1065 | + return true; | |
| 1066 | + } | |
| 1067 | + function merge(models, state) { | |
| 1068 | + models.forEach(function (model) { | |
| 1069 | + state.entities[selectId(model)] = model; | |
| 1070 | + }); | |
| 1071 | + resortEntities(state); | |
| 1072 | + } | |
| 1073 | + function resortEntities(state) { | |
| 1074 | + var allEntities = Object.values(state.entities); | |
| 1075 | + allEntities.sort(sort); | |
| 1076 | + var newSortedIds = allEntities.map(selectId); | |
| 1077 | + var ids = state.ids; | |
| 1078 | + if (!areArraysEqual(ids, newSortedIds)) { | |
| 1079 | + state.ids = newSortedIds; | |
| 1080 | + } | |
| 1081 | + } | |
| 1082 | + return { | |
| 1083 | + removeOne: removeOne, | |
| 1084 | + removeMany: removeMany, | |
| 1085 | + removeAll: removeAll, | |
| 1086 | + addOne: createStateOperator(addOneMutably), | |
| 1087 | + updateOne: createStateOperator(updateOneMutably), | |
| 1088 | + upsertOne: createStateOperator(upsertOneMutably), | |
| 1089 | + setOne: createStateOperator(setOneMutably), | |
| 1090 | + setMany: createStateOperator(setManyMutably), | |
| 1091 | + setAll: createStateOperator(setAllMutably), | |
| 1092 | + addMany: createStateOperator(addManyMutably), | |
| 1093 | + updateMany: createStateOperator(updateManyMutably), | |
| 1094 | + upsertMany: createStateOperator(upsertManyMutably) | |
| 1095 | + }; | |
| 1096 | +} | |
| 1097 | +// src/entities/create_adapter.ts | |
| 1098 | +function createEntityAdapter(options) { | |
| 1099 | + if (options === void 0) { options = {}; } | |
| 1100 | + var _c = __spreadValues({ | |
| 1101 | + sortComparer: false, | |
| 1102 | + selectId: function (instance) { return instance.id; } | |
| 1103 | + }, options), selectId = _c.selectId, sortComparer = _c.sortComparer; | |
| 1104 | + var stateFactory = createInitialStateFactory(); | |
| 1105 | + var selectorsFactory = createSelectorsFactory(); | |
| 1106 | + var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId); | |
| 1107 | + return __spreadValues(__spreadValues(__spreadValues({ | |
| 1108 | + selectId: selectId, | |
| 1109 | + sortComparer: sortComparer | |
| 1110 | + }, stateFactory), selectorsFactory), stateAdapter); | |
| 1111 | +} | |
| 1112 | +// src/nanoid.ts | |
| 1113 | +var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"; | |
| 1114 | +var nanoid = function (size) { | |
| 1115 | + if (size === void 0) { size = 21; } | |
| 1116 | + var id = ""; | |
| 1117 | + var i = size; | |
| 1118 | + while (i--) { | |
| 1119 | + id += urlAlphabet[Math.random() * 64 | 0]; | |
| 1120 | + } | |
| 1121 | + return id; | |
| 1122 | +}; | |
| 1123 | +// src/createAsyncThunk.ts | |
| 1124 | +var commonProperties = [ | |
| 1125 | + "name", | |
| 1126 | + "message", | |
| 1127 | + "stack", | |
| 1128 | + "code" | |
| 1129 | +]; | |
| 1130 | +var RejectWithValue = /** @class */ (function () { | |
| 1131 | + function RejectWithValue(payload, meta) { | |
| 1132 | + this.payload = payload; | |
| 1133 | + this.meta = meta; | |
| 1134 | + } | |
| 1135 | + return RejectWithValue; | |
| 1136 | +}()); | |
| 1137 | +var FulfillWithMeta = /** @class */ (function () { | |
| 1138 | + function FulfillWithMeta(payload, meta) { | |
| 1139 | + this.payload = payload; | |
| 1140 | + this.meta = meta; | |
| 1141 | + } | |
| 1142 | + return FulfillWithMeta; | |
| 1143 | +}()); | |
| 1144 | +var miniSerializeError = function (value) { | |
| 1145 | + if (typeof value === "object" && value !== null) { | |
| 1146 | + var simpleError = {}; | |
| 1147 | + for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) { | |
| 1148 | + var property = commonProperties_1[_i]; | |
| 1149 | + if (typeof value[property] === "string") { | |
| 1150 | + simpleError[property] = value[property]; | |
| 1151 | + } | |
| 1152 | + } | |
| 1153 | + return simpleError; | |
| 1154 | + } | |
| 1155 | + return { message: String(value) }; | |
| 1156 | +}; | |
| 1157 | +var createAsyncThunk = (function () { | |
| 1158 | + function createAsyncThunk2(typePrefix, payloadCreator, options) { | |
| 1159 | + var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) { return ({ | |
| 1160 | + payload: payload, | |
| 1161 | + meta: __spreadProps(__spreadValues({}, meta || {}), { | |
| 1162 | + arg: arg, | |
| 1163 | + requestId: requestId, | |
| 1164 | + requestStatus: "fulfilled" | |
| 1165 | + }) | |
| 1166 | + }); }); | |
| 1167 | + var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) { return ({ | |
| 1168 | + payload: void 0, | |
| 1169 | + meta: __spreadProps(__spreadValues({}, meta || {}), { | |
| 1170 | + arg: arg, | |
| 1171 | + requestId: requestId, | |
| 1172 | + requestStatus: "pending" | |
| 1173 | + }) | |
| 1174 | + }); }); | |
| 1175 | + var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) { return ({ | |
| 1176 | + payload: payload, | |
| 1177 | + error: (options && options.serializeError || miniSerializeError)(error || "Rejected"), | |
| 1178 | + meta: __spreadProps(__spreadValues({}, meta || {}), { | |
| 1179 | + arg: arg, | |
| 1180 | + requestId: requestId, | |
| 1181 | + rejectedWithValue: !!payload, | |
| 1182 | + requestStatus: "rejected", | |
| 1183 | + aborted: (error == null ? void 0 : error.name) === "AbortError", | |
| 1184 | + condition: (error == null ? void 0 : error.name) === "ConditionError" | |
| 1185 | + }) | |
| 1186 | + }); }); | |
| 1187 | + var displayedWarning = false; | |
| 1188 | + var AC = typeof AbortController !== "undefined" ? AbortController : /** @class */ (function () { | |
| 1189 | + function class_1() { | |
| 1190 | + this.signal = { | |
| 1191 | + aborted: false, | |
| 1192 | + addEventListener: function () { | |
| 1193 | + }, | |
| 1194 | + dispatchEvent: function () { | |
| 1195 | + return false; | |
| 1196 | + }, | |
| 1197 | + onabort: function () { | |
| 1198 | + }, | |
| 1199 | + removeEventListener: function () { | |
| 1200 | + }, | |
| 1201 | + reason: void 0, | |
| 1202 | + throwIfAborted: function () { | |
| 1203 | + } | |
| 1204 | + }; | |
| 1205 | + } | |
| 1206 | + class_1.prototype.abort = function () { | |
| 1207 | + if (true) { | |
| 1208 | + if (!displayedWarning) { | |
| 1209 | + displayedWarning = true; | |
| 1210 | + 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'."); | |
| 1211 | + } | |
| 1212 | + } | |
| 1213 | + }; | |
| 1214 | + return class_1; | |
| 1215 | + }()); | |
| 1216 | + function actionCreator(arg) { | |
| 1217 | + return function (dispatch, getState, extra) { | |
| 1218 | + var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid(); | |
| 1219 | + var abortController = new AC(); | |
| 1220 | + var abortReason; | |
| 1221 | + var abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({ name: "AbortError", message: abortReason || "Aborted" }); }); }); | |
| 1222 | + var started = false; | |
| 1223 | + function abort(reason) { | |
| 1224 | + if (started) { | |
| 1225 | + abortReason = reason; | |
| 1226 | + abortController.abort(); | |
| 1227 | + } | |
| 1228 | + } | |
| 1229 | + var promise2 = function () { | |
| 1230 | + return __async(this, null, function () { | |
| 1231 | + var _a, _b, finalAction, conditionResult, err_1, skipDispatch; | |
| 1232 | + return __generator(this, function (_c) { | |
| 1233 | + switch (_c.label) { | |
| 1234 | + case 0: | |
| 1235 | + _c.trys.push([0, 4, , 5]); | |
| 1236 | + conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra }); | |
| 1237 | + if (!isThenable(conditionResult)) return [3 /*break*/, 2]; | |
| 1238 | + return [4 /*yield*/, conditionResult]; | |
| 1239 | + case 1: | |
| 1240 | + conditionResult = _c.sent(); | |
| 1241 | + _c.label = 2; | |
| 1242 | + case 2: | |
| 1243 | + if (conditionResult === false) { | |
| 1244 | + throw { | |
| 1245 | + name: "ConditionError", | |
| 1246 | + message: "Aborted due to condition callback returning false." | |
| 1247 | + }; | |
| 1248 | + } | |
| 1249 | + started = true; | |
| 1250 | + dispatch(pending(requestId, arg, (_b = options == null ? void 0 : options.getPendingMeta) == null ? void 0 : _b.call(options, { requestId: requestId, arg: arg }, { getState: getState, extra: extra }))); | |
| 1251 | + return [4 /*yield*/, Promise.race([ | |
| 1252 | + abortedPromise, | |
| 1253 | + Promise.resolve(payloadCreator(arg, { | |
| 1254 | + dispatch: dispatch, | |
| 1255 | + getState: getState, | |
| 1256 | + extra: extra, | |
| 1257 | + requestId: requestId, | |
| 1258 | + signal: abortController.signal, | |
| 1259 | + abort: abort, | |
| 1260 | + rejectWithValue: function (value, meta) { | |
| 1261 | + return new RejectWithValue(value, meta); | |
| 1262 | + }, | |
| 1263 | + fulfillWithValue: function (value, meta) { | |
| 1264 | + return new FulfillWithMeta(value, meta); | |
| 1265 | + } | |
| 1266 | + })).then(function (result) { | |
| 1267 | + if (result instanceof RejectWithValue) { | |
| 1268 | + throw result; | |
| 1269 | + } | |
| 1270 | + if (result instanceof FulfillWithMeta) { | |
| 1271 | + return fulfilled(result.payload, requestId, arg, result.meta); | |
| 1272 | + } | |
| 1273 | + return fulfilled(result, requestId, arg); | |
| 1274 | + }) | |
| 1275 | + ])]; | |
| 1276 | + case 3: | |
| 1277 | + finalAction = _c.sent(); | |
| 1278 | + return [3 /*break*/, 5]; | |
| 1279 | + case 4: | |
| 1280 | + err_1 = _c.sent(); | |
| 1281 | + finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg); | |
| 1282 | + return [3 /*break*/, 5]; | |
| 1283 | + case 5: | |
| 1284 | + skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition; | |
| 1285 | + if (!skipDispatch) { | |
| 1286 | + dispatch(finalAction); | |
| 1287 | + } | |
| 1288 | + return [2 /*return*/, finalAction]; | |
| 1289 | + } | |
| 1290 | + }); | |
| 1291 | + }); | |
| 1292 | + }(); | |
| 1293 | + return Object.assign(promise2, { | |
| 1294 | + abort: abort, | |
| 1295 | + requestId: requestId, | |
| 1296 | + arg: arg, | |
| 1297 | + unwrap: function () { | |
| 1298 | + return promise2.then(unwrapResult); | |
| 1299 | + } | |
| 1300 | + }); | |
| 1301 | + }; | |
| 1302 | + } | |
| 1303 | + return Object.assign(actionCreator, { | |
| 1304 | + pending: pending, | |
| 1305 | + rejected: rejected, | |
| 1306 | + fulfilled: fulfilled, | |
| 1307 | + typePrefix: typePrefix | |
| 1308 | + }); | |
| 1309 | + } | |
| 1310 | + createAsyncThunk2.withTypes = createAsyncThunk2; | |
| 1311 | + return createAsyncThunk2; | |
| 1312 | +})(); | |
| 1313 | +function unwrapResult(action) { | |
| 1314 | + if (action.meta && action.meta.rejectedWithValue) { | |
| 1315 | + throw action.payload; | |
| 1316 | + } | |
| 1317 | + if (action.error) { | |
| 1318 | + throw action.error; | |
| 1319 | + } | |
| 1320 | + return action.payload; | |
| 1321 | +} | |
| 1322 | +function isThenable(value) { | |
| 1323 | + return value !== null && typeof value === "object" && typeof value.then === "function"; | |
| 1324 | +} | |
| 1325 | +// src/tsHelpers.ts | |
| 1326 | +var hasMatchFunction = function (v) { | |
| 1327 | + return v && typeof v.match === "function"; | |
| 1328 | +}; | |
| 1329 | +// src/matchers.ts | |
| 1330 | +var matches = function (matcher, action) { | |
| 1331 | + if (hasMatchFunction(matcher)) { | |
| 1332 | + return matcher.match(action); | |
| 1333 | + } | |
| 1334 | + else { | |
| 1335 | + return matcher(action); | |
| 1336 | + } | |
| 1337 | +}; | |
| 1338 | +function isAnyOf() { | |
| 1339 | + var matchers = []; | |
| 1340 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1341 | + matchers[_i] = arguments[_i]; | |
| 1342 | + } | |
| 1343 | + return function (action) { | |
| 1344 | + return matchers.some(function (matcher) { return matches(matcher, action); }); | |
| 1345 | + }; | |
| 1346 | +} | |
| 1347 | +function isAllOf() { | |
| 1348 | + var matchers = []; | |
| 1349 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1350 | + matchers[_i] = arguments[_i]; | |
| 1351 | + } | |
| 1352 | + return function (action) { | |
| 1353 | + return matchers.every(function (matcher) { return matches(matcher, action); }); | |
| 1354 | + }; | |
| 1355 | +} | |
| 1356 | +function hasExpectedRequestMetadata(action, validStatus) { | |
| 1357 | + if (!action || !action.meta) | |
| 1358 | + return false; | |
| 1359 | + var hasValidRequestId = typeof action.meta.requestId === "string"; | |
| 1360 | + var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1; | |
| 1361 | + return hasValidRequestId && hasValidRequestStatus; | |
| 1362 | +} | |
| 1363 | +function isAsyncThunkArray(a) { | |
| 1364 | + return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0]; | |
| 1365 | +} | |
| 1366 | +function isPending() { | |
| 1367 | + var asyncThunks = []; | |
| 1368 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1369 | + asyncThunks[_i] = arguments[_i]; | |
| 1370 | + } | |
| 1371 | + if (asyncThunks.length === 0) { | |
| 1372 | + return function (action) { return hasExpectedRequestMetadata(action, ["pending"]); }; | |
| 1373 | + } | |
| 1374 | + if (!isAsyncThunkArray(asyncThunks)) { | |
| 1375 | + return isPending()(asyncThunks[0]); | |
| 1376 | + } | |
| 1377 | + return function (action) { | |
| 1378 | + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; }); | |
| 1379 | + var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 1380 | + return combinedMatcher(action); | |
| 1381 | + }; | |
| 1382 | +} | |
| 1383 | +function isRejected() { | |
| 1384 | + var asyncThunks = []; | |
| 1385 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1386 | + asyncThunks[_i] = arguments[_i]; | |
| 1387 | + } | |
| 1388 | + if (asyncThunks.length === 0) { | |
| 1389 | + return function (action) { return hasExpectedRequestMetadata(action, ["rejected"]); }; | |
| 1390 | + } | |
| 1391 | + if (!isAsyncThunkArray(asyncThunks)) { | |
| 1392 | + return isRejected()(asyncThunks[0]); | |
| 1393 | + } | |
| 1394 | + return function (action) { | |
| 1395 | + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; }); | |
| 1396 | + var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 1397 | + return combinedMatcher(action); | |
| 1398 | + }; | |
| 1399 | +} | |
| 1400 | +function isRejectedWithValue() { | |
| 1401 | + var asyncThunks = []; | |
| 1402 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1403 | + asyncThunks[_i] = arguments[_i]; | |
| 1404 | + } | |
| 1405 | + var hasFlag = function (action) { | |
| 1406 | + return action && action.meta && action.meta.rejectedWithValue; | |
| 1407 | + }; | |
| 1408 | + if (asyncThunks.length === 0) { | |
| 1409 | + return function (action) { | |
| 1410 | + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag); | |
| 1411 | + return combinedMatcher(action); | |
| 1412 | + }; | |
| 1413 | + } | |
| 1414 | + if (!isAsyncThunkArray(asyncThunks)) { | |
| 1415 | + return isRejectedWithValue()(asyncThunks[0]); | |
| 1416 | + } | |
| 1417 | + return function (action) { | |
| 1418 | + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag); | |
| 1419 | + return combinedMatcher(action); | |
| 1420 | + }; | |
| 1421 | +} | |
| 1422 | +function isFulfilled() { | |
| 1423 | + var asyncThunks = []; | |
| 1424 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1425 | + asyncThunks[_i] = arguments[_i]; | |
| 1426 | + } | |
| 1427 | + if (asyncThunks.length === 0) { | |
| 1428 | + return function (action) { return hasExpectedRequestMetadata(action, ["fulfilled"]); }; | |
| 1429 | + } | |
| 1430 | + if (!isAsyncThunkArray(asyncThunks)) { | |
| 1431 | + return isFulfilled()(asyncThunks[0]); | |
| 1432 | + } | |
| 1433 | + return function (action) { | |
| 1434 | + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; }); | |
| 1435 | + var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 1436 | + return combinedMatcher(action); | |
| 1437 | + }; | |
| 1438 | +} | |
| 1439 | +function isAsyncThunkAction() { | |
| 1440 | + var asyncThunks = []; | |
| 1441 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1442 | + asyncThunks[_i] = arguments[_i]; | |
| 1443 | + } | |
| 1444 | + if (asyncThunks.length === 0) { | |
| 1445 | + return function (action) { return hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]); }; | |
| 1446 | + } | |
| 1447 | + if (!isAsyncThunkArray(asyncThunks)) { | |
| 1448 | + return isAsyncThunkAction()(asyncThunks[0]); | |
| 1449 | + } | |
| 1450 | + return function (action) { | |
| 1451 | + var matchers = []; | |
| 1452 | + for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) { | |
| 1453 | + var asyncThunk = asyncThunks_1[_i]; | |
| 1454 | + matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled); | |
| 1455 | + } | |
| 1456 | + var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 1457 | + return combinedMatcher(action); | |
| 1458 | + }; | |
| 1459 | +} | |
| 1460 | +// src/listenerMiddleware/utils.ts | |
| 1461 | +var assertFunction = function (func, expected) { | |
| 1462 | + if (typeof func !== "function") { | |
| 1463 | + throw new TypeError(expected + " is not a function"); | |
| 1464 | + } | |
| 1465 | +}; | |
| 1466 | +var noop = function () { | |
| 1467 | +}; | |
| 1468 | +var catchRejection = function (promise2, onError) { | |
| 1469 | + if (onError === void 0) { onError = noop; } | |
| 1470 | + promise2.catch(onError); | |
| 1471 | + return promise2; | |
| 1472 | +}; | |
| 1473 | +var addAbortSignalListener = function (abortSignal, callback) { | |
| 1474 | + abortSignal.addEventListener("abort", callback, { once: true }); | |
| 1475 | +}; | |
| 1476 | +var abortControllerWithReason = function (abortController, reason) { | |
| 1477 | + var signal = abortController.signal; | |
| 1478 | + if (signal.aborted) { | |
| 1479 | + return; | |
| 1480 | + } | |
| 1481 | + if (!("reason" in signal)) { | |
| 1482 | + Object.defineProperty(signal, "reason", { | |
| 1483 | + enumerable: true, | |
| 1484 | + value: reason, | |
| 1485 | + configurable: true, | |
| 1486 | + writable: true | |
| 1487 | + }); | |
| 1488 | + } | |
| 1489 | + ; | |
| 1490 | + abortController.abort(reason); | |
| 1491 | +}; | |
| 1492 | +// src/listenerMiddleware/exceptions.ts | |
| 1493 | +var task = "task"; | |
| 1494 | +var listener = "listener"; | |
| 1495 | +var completed = "completed"; | |
| 1496 | +var cancelled = "cancelled"; | |
| 1497 | +var taskCancelled = "task-" + cancelled; | |
| 1498 | +var taskCompleted = "task-" + completed; | |
| 1499 | +var listenerCancelled = listener + "-" + cancelled; | |
| 1500 | +var listenerCompleted = listener + "-" + completed; | |
| 1501 | +var TaskAbortError = /** @class */ (function () { | |
| 1502 | + function TaskAbortError(code) { | |
| 1503 | + this.code = code; | |
| 1504 | + this.name = "TaskAbortError"; | |
| 1505 | + this.message = task + " " + cancelled + " (reason: " + code + ")"; | |
| 1506 | + } | |
| 1507 | + return TaskAbortError; | |
| 1508 | +}()); | |
| 1509 | +// src/listenerMiddleware/task.ts | |
| 1510 | +var validateActive = function (signal) { | |
| 1511 | + if (signal.aborted) { | |
| 1512 | + throw new TaskAbortError(signal.reason); | |
| 1513 | + } | |
| 1514 | +}; | |
| 1515 | +var promisifyAbortSignal = function (signal) { | |
| 1516 | + return catchRejection(new Promise(function (_, reject) { | |
| 1517 | + var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); }; | |
| 1518 | + if (signal.aborted) { | |
| 1519 | + notifyRejection(); | |
| 1520 | + } | |
| 1521 | + else { | |
| 1522 | + addAbortSignalListener(signal, notifyRejection); | |
| 1523 | + } | |
| 1524 | + })); | |
| 1525 | +}; | |
| 1526 | +var runTask = function (task2, cleanUp) { return __async(void 0, null, function () { | |
| 1527 | + var value, error_1; | |
| 1528 | + return __generator(this, function (_c) { | |
| 1529 | + switch (_c.label) { | |
| 1530 | + case 0: | |
| 1531 | + _c.trys.push([0, 3, 4, 5]); | |
| 1532 | + return [4 /*yield*/, Promise.resolve()]; | |
| 1533 | + case 1: | |
| 1534 | + _c.sent(); | |
| 1535 | + return [4 /*yield*/, task2()]; | |
| 1536 | + case 2: | |
| 1537 | + value = _c.sent(); | |
| 1538 | + return [2 /*return*/, { | |
| 1539 | + status: "ok", | |
| 1540 | + value: value | |
| 1541 | + }]; | |
| 1542 | + case 3: | |
| 1543 | + error_1 = _c.sent(); | |
| 1544 | + return [2 /*return*/, { | |
| 1545 | + status: error_1 instanceof TaskAbortError ? "cancelled" : "rejected", | |
| 1546 | + error: error_1 | |
| 1547 | + }]; | |
| 1548 | + case 4: | |
| 1549 | + cleanUp == null ? void 0 : cleanUp(); | |
| 1550 | + return [7 /*endfinally*/]; | |
| 1551 | + case 5: return [2 /*return*/]; | |
| 1552 | + } | |
| 1553 | + }); | |
| 1554 | +}); }; | |
| 1555 | +var createPause = function (signal) { | |
| 1556 | + return function (promise2) { | |
| 1557 | + return catchRejection(Promise.race([promisifyAbortSignal(signal), promise2]).then(function (output) { | |
| 1558 | + validateActive(signal); | |
| 1559 | + return output; | |
| 1560 | + })); | |
| 1561 | + }; | |
| 1562 | +}; | |
| 1563 | +var createDelay = function (signal) { | |
| 1564 | + var pause = createPause(signal); | |
| 1565 | + return function (timeoutMs) { | |
| 1566 | + return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); })); | |
| 1567 | + }; | |
| 1568 | +}; | |
| 1569 | +// src/listenerMiddleware/index.ts | |
| 1570 | +var assign = Object.assign; | |
| 1571 | +var INTERNAL_NIL_TOKEN = {}; | |
| 1572 | +var alm = "listenerMiddleware"; | |
| 1573 | +var createFork = function (parentAbortSignal) { | |
| 1574 | + var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); }; | |
| 1575 | + return function (taskExecutor) { | |
| 1576 | + assertFunction(taskExecutor, "taskExecutor"); | |
| 1577 | + var childAbortController = new AbortController(); | |
| 1578 | + linkControllers(childAbortController); | |
| 1579 | + var result = runTask(function () { return __async(void 0, null, function () { | |
| 1580 | + var result2; | |
| 1581 | + return __generator(this, function (_c) { | |
| 1582 | + switch (_c.label) { | |
| 1583 | + case 0: | |
| 1584 | + validateActive(parentAbortSignal); | |
| 1585 | + validateActive(childAbortController.signal); | |
| 1586 | + return [4 /*yield*/, taskExecutor({ | |
| 1587 | + pause: createPause(childAbortController.signal), | |
| 1588 | + delay: createDelay(childAbortController.signal), | |
| 1589 | + signal: childAbortController.signal | |
| 1590 | + })]; | |
| 1591 | + case 1: | |
| 1592 | + result2 = _c.sent(); | |
| 1593 | + validateActive(childAbortController.signal); | |
| 1594 | + return [2 /*return*/, result2]; | |
| 1595 | + } | |
| 1596 | + }); | |
| 1597 | + }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); }); | |
| 1598 | + return { | |
| 1599 | + result: createPause(parentAbortSignal)(result), | |
| 1600 | + cancel: function () { | |
| 1601 | + abortControllerWithReason(childAbortController, taskCancelled); | |
| 1602 | + } | |
| 1603 | + }; | |
| 1604 | + }; | |
| 1605 | +}; | |
| 1606 | +var createTakePattern = function (startListening, signal) { | |
| 1607 | + var take = function (predicate, timeout) { return __async(void 0, null, function () { | |
| 1608 | + var unsubscribe, tuplePromise, promises, output; | |
| 1609 | + return __generator(this, function (_c) { | |
| 1610 | + switch (_c.label) { | |
| 1611 | + case 0: | |
| 1612 | + validateActive(signal); | |
| 1613 | + unsubscribe = function () { | |
| 1614 | + }; | |
| 1615 | + tuplePromise = new Promise(function (resolve) { | |
| 1616 | + unsubscribe = startListening({ | |
| 1617 | + predicate: predicate, | |
| 1618 | + effect: function (action, listenerApi) { | |
| 1619 | + listenerApi.unsubscribe(); | |
| 1620 | + resolve([ | |
| 1621 | + action, | |
| 1622 | + listenerApi.getState(), | |
| 1623 | + listenerApi.getOriginalState() | |
| 1624 | + ]); | |
| 1625 | + } | |
| 1626 | + }); | |
| 1627 | + }); | |
| 1628 | + promises = [ | |
| 1629 | + promisifyAbortSignal(signal), | |
| 1630 | + tuplePromise | |
| 1631 | + ]; | |
| 1632 | + if (timeout != null) { | |
| 1633 | + promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); })); | |
| 1634 | + } | |
| 1635 | + _c.label = 1; | |
| 1636 | + case 1: | |
| 1637 | + _c.trys.push([1, , 3, 4]); | |
| 1638 | + return [4 /*yield*/, Promise.race(promises)]; | |
| 1639 | + case 2: | |
| 1640 | + output = _c.sent(); | |
| 1641 | + validateActive(signal); | |
| 1642 | + return [2 /*return*/, output]; | |
| 1643 | + case 3: | |
| 1644 | + unsubscribe(); | |
| 1645 | + return [7 /*endfinally*/]; | |
| 1646 | + case 4: return [2 /*return*/]; | |
| 1647 | + } | |
| 1648 | + }); | |
| 1649 | + }); }; | |
| 1650 | + return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); }; | |
| 1651 | +}; | |
| 1652 | +var getListenerEntryPropsFrom = function (options) { | |
| 1653 | + var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect; | |
| 1654 | + if (type) { | |
| 1655 | + predicate = createAction(type).match; | |
| 1656 | + } | |
| 1657 | + else if (actionCreator) { | |
| 1658 | + type = actionCreator.type; | |
| 1659 | + predicate = actionCreator.match; | |
| 1660 | + } | |
| 1661 | + else if (matcher) { | |
| 1662 | + predicate = matcher; | |
| 1663 | + } | |
| 1664 | + else if (predicate) { | |
| 1665 | + } | |
| 1666 | + else { | |
| 1667 | + throw new Error("Creating or removing a listener requires one of the known fields for matching an action"); | |
| 1668 | + } | |
| 1669 | + assertFunction(effect, "options.listener"); | |
| 1670 | + return { predicate: predicate, type: type, effect: effect }; | |
| 1671 | +}; | |
| 1672 | +var createListenerEntry = function (options) { | |
| 1673 | + var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect; | |
| 1674 | + var id = nanoid(); | |
| 1675 | + var entry = { | |
| 1676 | + id: id, | |
| 1677 | + effect: effect, | |
| 1678 | + type: type, | |
| 1679 | + predicate: predicate, | |
| 1680 | + pending: new Set(), | |
| 1681 | + unsubscribe: function () { | |
| 1682 | + throw new Error("Unsubscribe not initialized"); | |
| 1683 | + } | |
| 1684 | + }; | |
| 1685 | + return entry; | |
| 1686 | +}; | |
| 1687 | +var createClearListenerMiddleware = function (listenerMap) { | |
| 1688 | + return function () { | |
| 1689 | + listenerMap.forEach(cancelActiveListeners); | |
| 1690 | + listenerMap.clear(); | |
| 1691 | + }; | |
| 1692 | +}; | |
| 1693 | +var safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) { | |
| 1694 | + try { | |
| 1695 | + errorHandler(errorToNotify, errorInfo); | |
| 1696 | + } | |
| 1697 | + catch (errorHandlerError) { | |
| 1698 | + setTimeout(function () { | |
| 1699 | + throw errorHandlerError; | |
| 1700 | + }, 0); | |
| 1701 | + } | |
| 1702 | +}; | |
| 1703 | +var addListener = createAction(alm + "/add"); | |
| 1704 | +var clearAllListeners = createAction(alm + "/removeAll"); | |
| 1705 | +var removeListener = createAction(alm + "/remove"); | |
| 1706 | +var defaultErrorHandler = function () { | |
| 1707 | + var args = []; | |
| 1708 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1709 | + args[_i] = arguments[_i]; | |
| 1710 | + } | |
| 1711 | + console.error.apply(console, __spreadArray([alm + "/error"], args)); | |
| 1712 | +}; | |
| 1713 | +var cancelActiveListeners = function (entry) { | |
| 1714 | + entry.pending.forEach(function (controller) { | |
| 1715 | + abortControllerWithReason(controller, listenerCancelled); | |
| 1716 | + }); | |
| 1717 | +}; | |
| 1718 | +function createListenerMiddleware(middlewareOptions) { | |
| 1719 | + var _this = this; | |
| 1720 | + if (middlewareOptions === void 0) { middlewareOptions = {}; } | |
| 1721 | + var listenerMap = new Map(); | |
| 1722 | + var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c; | |
| 1723 | + assertFunction(onError, "onError"); | |
| 1724 | + var insertEntry = function (entry) { | |
| 1725 | + entry.unsubscribe = function () { return listenerMap.delete(entry.id); }; | |
| 1726 | + listenerMap.set(entry.id, entry); | |
| 1727 | + return function (cancelOptions) { | |
| 1728 | + entry.unsubscribe(); | |
| 1729 | + if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) { | |
| 1730 | + cancelActiveListeners(entry); | |
| 1731 | + } | |
| 1732 | + }; | |
| 1733 | + }; | |
| 1734 | + var findListenerEntry = function (comparator) { | |
| 1735 | + for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) { | |
| 1736 | + var entry = _c[_i]; | |
| 1737 | + if (comparator(entry)) { | |
| 1738 | + return entry; | |
| 1739 | + } | |
| 1740 | + } | |
| 1741 | + return void 0; | |
| 1742 | + }; | |
| 1743 | + var startListening = function (options) { | |
| 1744 | + var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; }); | |
| 1745 | + if (!entry) { | |
| 1746 | + entry = createListenerEntry(options); | |
| 1747 | + } | |
| 1748 | + return insertEntry(entry); | |
| 1749 | + }; | |
| 1750 | + var stopListening = function (options) { | |
| 1751 | + var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate; | |
| 1752 | + var entry = findListenerEntry(function (entry2) { | |
| 1753 | + var matchPredicateOrType = typeof type === "string" ? entry2.type === type : entry2.predicate === predicate; | |
| 1754 | + return matchPredicateOrType && entry2.effect === effect; | |
| 1755 | + }); | |
| 1756 | + if (entry) { | |
| 1757 | + entry.unsubscribe(); | |
| 1758 | + if (options.cancelActive) { | |
| 1759 | + cancelActiveListeners(entry); | |
| 1760 | + } | |
| 1761 | + } | |
| 1762 | + return !!entry; | |
| 1763 | + }; | |
| 1764 | + var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () { | |
| 1765 | + var internalTaskController, take, listenerError_1; | |
| 1766 | + return __generator(this, function (_c) { | |
| 1767 | + switch (_c.label) { | |
| 1768 | + case 0: | |
| 1769 | + internalTaskController = new AbortController(); | |
| 1770 | + take = createTakePattern(startListening, internalTaskController.signal); | |
| 1771 | + _c.label = 1; | |
| 1772 | + case 1: | |
| 1773 | + _c.trys.push([1, 3, 4, 5]); | |
| 1774 | + entry.pending.add(internalTaskController); | |
| 1775 | + return [4 /*yield*/, Promise.resolve(entry.effect(action, assign({}, api, { | |
| 1776 | + getOriginalState: getOriginalState, | |
| 1777 | + condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); }, | |
| 1778 | + take: take, | |
| 1779 | + delay: createDelay(internalTaskController.signal), | |
| 1780 | + pause: createPause(internalTaskController.signal), | |
| 1781 | + extra: extra, | |
| 1782 | + signal: internalTaskController.signal, | |
| 1783 | + fork: createFork(internalTaskController.signal), | |
| 1784 | + unsubscribe: entry.unsubscribe, | |
| 1785 | + subscribe: function () { | |
| 1786 | + listenerMap.set(entry.id, entry); | |
| 1787 | + }, | |
| 1788 | + cancelActiveListeners: function () { | |
| 1789 | + entry.pending.forEach(function (controller, _, set) { | |
| 1790 | + if (controller !== internalTaskController) { | |
| 1791 | + abortControllerWithReason(controller, listenerCancelled); | |
| 1792 | + set.delete(controller); | |
| 1793 | + } | |
| 1794 | + }); | |
| 1795 | + } | |
| 1796 | + })))]; | |
| 1797 | + case 2: | |
| 1798 | + _c.sent(); | |
| 1799 | + return [3 /*break*/, 5]; | |
| 1800 | + case 3: | |
| 1801 | + listenerError_1 = _c.sent(); | |
| 1802 | + if (!(listenerError_1 instanceof TaskAbortError)) { | |
| 1803 | + safelyNotifyError(onError, listenerError_1, { | |
| 1804 | + raisedBy: "effect" | |
| 1805 | + }); | |
| 1806 | + } | |
| 1807 | + return [3 /*break*/, 5]; | |
| 1808 | + case 4: | |
| 1809 | + abortControllerWithReason(internalTaskController, listenerCompleted); | |
| 1810 | + entry.pending.delete(internalTaskController); | |
| 1811 | + return [7 /*endfinally*/]; | |
| 1812 | + case 5: return [2 /*return*/]; | |
| 1813 | + } | |
| 1814 | + }); | |
| 1815 | + }); }; | |
| 1816 | + var clearListenerMiddleware = createClearListenerMiddleware(listenerMap); | |
| 1817 | + var middleware = function (api) { return function (next) { return function (action) { | |
| 1818 | + if (addListener.match(action)) { | |
| 1819 | + return startListening(action.payload); | |
| 1820 | + } | |
| 1821 | + if (clearAllListeners.match(action)) { | |
| 1822 | + clearListenerMiddleware(); | |
| 1823 | + return; | |
| 1824 | + } | |
| 1825 | + if (removeListener.match(action)) { | |
| 1826 | + return stopListening(action.payload); | |
| 1827 | + } | |
| 1828 | + var originalState = api.getState(); | |
| 1829 | + var getOriginalState = function () { | |
| 1830 | + if (originalState === INTERNAL_NIL_TOKEN) { | |
| 1831 | + throw new Error(alm + ": getOriginalState can only be called synchronously"); | |
| 1832 | + } | |
| 1833 | + return originalState; | |
| 1834 | + }; | |
| 1835 | + var result; | |
| 1836 | + try { | |
| 1837 | + result = next(action); | |
| 1838 | + if (listenerMap.size > 0) { | |
| 1839 | + var currentState = api.getState(); | |
| 1840 | + var listenerEntries = Array.from(listenerMap.values()); | |
| 1841 | + for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) { | |
| 1842 | + var entry = listenerEntries_1[_i]; | |
| 1843 | + var runListener = false; | |
| 1844 | + try { | |
| 1845 | + runListener = entry.predicate(action, currentState, originalState); | |
| 1846 | + } | |
| 1847 | + catch (predicateError) { | |
| 1848 | + runListener = false; | |
| 1849 | + safelyNotifyError(onError, predicateError, { | |
| 1850 | + raisedBy: "predicate" | |
| 1851 | + }); | |
| 1852 | + } | |
| 1853 | + if (!runListener) { | |
| 1854 | + continue; | |
| 1855 | + } | |
| 1856 | + notifyListener(entry, action, api, getOriginalState); | |
| 1857 | + } | |
| 1858 | + } | |
| 1859 | + } | |
| 1860 | + finally { | |
| 1861 | + originalState = INTERNAL_NIL_TOKEN; | |
| 1862 | + } | |
| 1863 | + return result; | |
| 1864 | + }; }; }; | |
| 1865 | + return { | |
| 1866 | + middleware: middleware, | |
| 1867 | + startListening: startListening, | |
| 1868 | + stopListening: stopListening, | |
| 1869 | + clearListeners: clearListenerMiddleware | |
| 1870 | + }; | |
| 1871 | +} | |
| 1872 | +// src/autoBatchEnhancer.ts | |
| 1873 | +var SHOULD_AUTOBATCH = "RTK_autoBatch"; | |
| 1874 | +var prepareAutoBatched = function () { return function (payload) { | |
| 1875 | + var _c; | |
| 1876 | + return ({ | |
| 1877 | + payload: payload, | |
| 1878 | + meta: (_c = {}, _c[SHOULD_AUTOBATCH] = true, _c) | |
| 1879 | + }); | |
| 1880 | +}; }; | |
| 1881 | +var promise; | |
| 1882 | +var queueMicrotaskShim = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : __webpack_require__.g) : function (cb) { return (promise || (promise = Promise.resolve())).then(cb).catch(function (err) { return setTimeout(function () { | |
| 1883 | + throw err; | |
| 1884 | +}, 0); }); }; | |
| 1885 | +var createQueueWithTimer = function (timeout) { | |
| 1886 | + return function (notify) { | |
| 1887 | + setTimeout(notify, timeout); | |
| 1888 | + }; | |
| 1889 | +}; | |
| 1890 | +var autoBatchEnhancer = function (options) { | |
| 1891 | + if (options === void 0) { options = { type: "raf" }; } | |
| 1892 | + return function (next) { return function () { | |
| 1893 | + var args = []; | |
| 1894 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1895 | + args[_i] = arguments[_i]; | |
| 1896 | + } | |
| 1897 | + var store = next.apply(void 0, args); | |
| 1898 | + var notifying = true; | |
| 1899 | + var shouldNotifyAtEndOfTick = false; | |
| 1900 | + var notificationQueued = false; | |
| 1901 | + var listeners = new Set(); | |
| 1902 | + var queueCallback = options.type === "tick" ? queueMicrotaskShim : options.type === "raf" ? requestAnimationFrame : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout); | |
| 1903 | + var notifyListeners = function () { | |
| 1904 | + notificationQueued = false; | |
| 1905 | + if (shouldNotifyAtEndOfTick) { | |
| 1906 | + shouldNotifyAtEndOfTick = false; | |
| 1907 | + listeners.forEach(function (l) { return l(); }); | |
| 1908 | + } | |
| 1909 | + }; | |
| 1910 | + return Object.assign({}, store, { | |
| 1911 | + subscribe: function (listener2) { | |
| 1912 | + var wrappedListener = function () { return notifying && listener2(); }; | |
| 1913 | + var unsubscribe = store.subscribe(wrappedListener); | |
| 1914 | + listeners.add(listener2); | |
| 1915 | + return function () { | |
| 1916 | + unsubscribe(); | |
| 1917 | + listeners.delete(listener2); | |
| 1918 | + }; | |
| 1919 | + }, | |
| 1920 | + dispatch: function (action) { | |
| 1921 | + var _a; | |
| 1922 | + try { | |
| 1923 | + notifying = !((_a = action == null ? void 0 : action.meta) == null ? void 0 : _a[SHOULD_AUTOBATCH]); | |
| 1924 | + shouldNotifyAtEndOfTick = !notifying; | |
| 1925 | + if (shouldNotifyAtEndOfTick) { | |
| 1926 | + if (!notificationQueued) { | |
| 1927 | + notificationQueued = true; | |
| 1928 | + queueCallback(notifyListeners); | |
| 1929 | + } | |
| 1930 | + } | |
| 1931 | + return store.dispatch(action); | |
| 1932 | + } | |
| 1933 | + finally { | |
| 1934 | + notifying = true; | |
| 1935 | + } | |
| 1936 | + } | |
| 1937 | + }); | |
| 1938 | + }; }; | |
| 1939 | +}; | |
| 1940 | +// src/index.ts | |
| 1941 | +(0,immer__WEBPACK_IMPORTED_MODULE_2__.enableES5)(); | |
| 1942 | + | |
| 1943 | +//# sourceMappingURL=redux-toolkit.esm.js.map | |
| 1944 | + | |
| 1945 | +/***/ }), | |
| 1946 | + | |
| 4 | 1947 | /***/ "../assets/dev/js/editor/utils/is-instanceof.js": |
| 5 | 1948 | /*!******************************************************!*\ |
| 6 | 1949 | !*** ../assets/dev/js/editor/utils/is-instanceof.js ***! |
| 7 | 1950 | \******************************************************/ |
| @@ -13,11 +1956,11 @@ | ||
| 13 | 1956 | Object.defineProperty(exports, "__esModule", ({ |
| 14 | 1957 | value: true |
| 15 | 1958 | })); |
| 16 | 1959 | exports["default"] = void 0; |
| 17 | -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; } } }; } | |
| 18 | -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; } } | |
| 19 | -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; } | |
| 1960 | +function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } | |
| 1961 | +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | |
| 1962 | +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | |
| 20 | 1963 | /** |
| 21 | 1964 | * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved |
| 22 | 1965 | * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can |
| 23 | 1966 | * check whether it's instanceof by using the objects constructor and prototype names. |
| @@ -25,16 +1968,16 @@ | ||
| 25 | 1968 | * @param object |
| 26 | 1969 | * @param constructors |
| 27 | 1970 | * @return {boolean} |
| 28 | 1971 | */ |
| 29 | -var _default = exports["default"] = function _default(object, constructors) { | |
| 1972 | +var _default = function _default(object, constructors) { | |
| 30 | 1973 | constructors = Array.isArray(constructors) ? constructors : [constructors]; |
| 31 | 1974 | var _iterator = _createForOfIteratorHelper(constructors), |
| 32 | 1975 | _step; |
| 33 | 1976 | try { |
| 34 | 1977 | for (_iterator.s(); !(_step = _iterator.n()).done;) { |
| 35 | - var constructor = _step.value; | |
| 36 | - if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) { | |
| 1978 | + var _constructor = _step.value; | |
| 1979 | + if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) { | |
| 37 | 1980 | return true; |
| 38 | 1981 | } |
| 39 | 1982 | } |
| 40 | 1983 | } catch (err) { |
| @@ -43,8 +1986,9 @@ | ||
| 43 | 1986 | _iterator.f(); |
| 44 | 1987 | } |
| 45 | 1988 | return false; |
| 46 | 1989 | }; |
| 1990 | +exports["default"] = _default; | |
| 47 | 1991 | |
| 48 | 1992 | /***/ }), |
| 49 | 1993 | |
| 50 | 1994 | /***/ "../assets/dev/js/modules/imports/args-object.js": |
| @@ -63,16 +2007,18 @@ | ||
| 63 | 2007 | exports["default"] = void 0; |
| 64 | 2008 | var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); |
| 65 | 2009 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 66 | 2010 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2011 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 67 | 2012 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 68 | 2013 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 69 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 70 | 2014 | var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js")); |
| 71 | 2015 | var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js")); |
| 72 | -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)); } | |
| 73 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 74 | -var ArgsObject = exports["default"] = /*#__PURE__*/function (_InstanceType) { | |
| 2016 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 2017 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 2018 | +var ArgsObject = /*#__PURE__*/function (_InstanceType) { | |
| 2019 | + (0, _inherits2.default)(ArgsObject, _InstanceType); | |
| 2020 | + var _super = _createSuper(ArgsObject); | |
| 75 | 2021 | /** |
| 76 | 2022 | * Function constructor(). |
| 77 | 2023 | * |
| 78 | 2024 | * Create ArgsObject. |
| @@ -81,9 +2027,9 @@ | ||
| 81 | 2027 | */ |
| 82 | 2028 | function ArgsObject(args) { |
| 83 | 2029 | var _this; |
| 84 | 2030 | (0, _classCallCheck2.default)(this, ArgsObject); |
| 85 | - _this = _callSuper(this, ArgsObject); | |
| 2031 | + _this = _super.call(this); | |
| 86 | 2032 | _this.args = args; |
| 87 | 2033 | return _this; |
| 88 | 2034 | } |
| 89 | 2035 | |
| @@ -95,11 +2041,11 @@ | ||
| 95 | 2041 | * @param {string} property |
| 96 | 2042 | * @param {{}} args |
| 97 | 2043 | * |
| 98 | 2044 | * @throws {Error} |
| 2045 | + * | |
| 99 | 2046 | */ |
| 100 | - (0, _inherits2.default)(ArgsObject, _InstanceType); | |
| 101 | - return (0, _createClass2.default)(ArgsObject, [{ | |
| 2047 | + (0, _createClass2.default)(ArgsObject, [{ | |
| 102 | 2048 | key: "requireArgument", |
| 103 | 2049 | value: function requireArgument(property) { |
| 104 | 2050 | var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args; |
| 105 | 2051 | if (!Object.prototype.hasOwnProperty.call(args, property)) { |
| @@ -116,8 +2062,9 @@ | ||
| 116 | 2062 | * @param {string} type |
| 117 | 2063 | * @param {{}} args |
| 118 | 2064 | * |
| 119 | 2065 | * @throws {Error} |
| 2066 | + * | |
| 120 | 2067 | */ |
| 121 | 2068 | }, { |
| 122 | 2069 | key: "requireArgumentType", |
| 123 | 2070 | value: function requireArgumentType(property, type) { |
| @@ -137,8 +2084,9 @@ | ||
| 137 | 2084 | * @param {*} instance |
| 138 | 2085 | * @param {{}} args |
| 139 | 2086 | * |
| 140 | 2087 | * @throws {Error} |
| 2088 | + * | |
| 141 | 2089 | */ |
| 142 | 2090 | }, { |
| 143 | 2091 | key: "requireArgumentInstance", |
| 144 | 2092 | value: function requireArgumentInstance(property, instance) { |
| @@ -158,8 +2106,9 @@ | ||
| 158 | 2106 | * @param {*} type |
| 159 | 2107 | * @param {{}} args |
| 160 | 2108 | * |
| 161 | 2109 | * @throws {Error} |
| 2110 | + * | |
| 162 | 2111 | */ |
| 163 | 2112 | }, { |
| 164 | 2113 | key: "requireArgumentConstructor", |
| 165 | 2114 | value: function requireArgumentConstructor(property, type) { |
| @@ -177,9 +2126,11 @@ | ||
| 177 | 2126 | value: function getInstanceType() { |
| 178 | 2127 | return 'ArgsObject'; |
| 179 | 2128 | } |
| 180 | 2129 | }]); |
| 2130 | + return ArgsObject; | |
| 181 | 2131 | }(_instanceType.default); |
| 2132 | +exports["default"] = ArgsObject; | |
| 182 | 2133 | |
| 183 | 2134 | /***/ }), |
| 184 | 2135 | |
| 185 | 2136 | /***/ "../assets/dev/js/modules/imports/instance-type.js": |
| @@ -197,12 +2148,11 @@ | ||
| 197 | 2148 | })); |
| 198 | 2149 | exports["default"] = void 0; |
| 199 | 2150 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 200 | 2151 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2152 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 201 | 2153 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 202 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 203 | -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; } | |
| 204 | -var InstanceType = exports["default"] = /*#__PURE__*/function () { | |
| 2154 | +var InstanceType = /*#__PURE__*/function (_Symbol$hasInstance) { | |
| 205 | 2155 | function InstanceType() { |
| 206 | 2156 | var _this = this; |
| 207 | 2157 | (0, _classCallCheck2.default)(this, InstanceType); |
| 208 | 2158 | // Since anonymous classes sometimes do not get validated by babel, do it manually. |
| @@ -215,10 +2165,10 @@ | ||
| 215 | 2165 | prototypes.reverse().forEach(function (proto) { |
| 216 | 2166 | return _this instanceof proto; |
| 217 | 2167 | }); |
| 218 | 2168 | } |
| 219 | - return (0, _createClass2.default)(InstanceType, null, [{ | |
| 220 | - key: Symbol.hasInstance, | |
| 2169 | + (0, _createClass2.default)(InstanceType, null, [{ | |
| 2170 | + key: _Symbol$hasInstance, | |
| 221 | 2171 | value: function value(target) { |
| 222 | 2172 | /** |
| 223 | 2173 | * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class |
| 224 | 2174 | * its give's opportunity to mange capabilities of instanceOf operator. |
| @@ -223,9 +2173,9 @@ | ||
| 223 | 2173 | * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class |
| 224 | 2174 | * its give's opportunity to mange capabilities of instanceOf operator. |
| 225 | 2175 | * saving current class each time will give option later to handle instanceOf manually. |
| 226 | 2176 | */ |
| 227 | - var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]); | |
| 2177 | + var result = (0, _get2.default)((0, _getPrototypeOf2.default)(InstanceType), Symbol.hasInstance, this).call(this, target); | |
| 228 | 2178 | |
| 229 | 2179 | // Act normal when validate a class, which does not have instance type. |
| 230 | 2180 | if (target && !target.constructor.getInstanceType) { |
| 231 | 2181 | return result; |
| @@ -257,9 +2207,11 @@ | ||
| 257 | 2207 | value: function getInstanceType() { |
| 258 | 2208 | elementorModules.ForceMethodImplementation(); |
| 259 | 2209 | } |
| 260 | 2210 | }]); |
| 261 | -}(); | |
| 2211 | + return InstanceType; | |
| 2212 | +}(Symbol.hasInstance); | |
| 2213 | +exports["default"] = InstanceType; | |
| 262 | 2214 | |
| 263 | 2215 | /***/ }), |
| 264 | 2216 | |
| 265 | 2217 | /***/ "../assets/dev/js/modules/imports/module.js": |
| @@ -465,11 +2417,12 @@ | ||
| 465 | 2417 | var _store = _interopRequireDefault(__webpack_require__(/*! ./core/store */ "../modules/web-cli/assets/js/core/store.js")); |
| 466 | 2418 | var _uiStates = _interopRequireDefault(__webpack_require__(/*! ./core/ui-states */ "../modules/web-cli/assets/js/core/ui-states.js")); |
| 467 | 2419 | var hookData = _interopRequireWildcard(__webpack_require__(/*! ./modules/hooks/data/ */ "../modules/web-cli/assets/js/modules/hooks/data/index.js")); |
| 468 | 2420 | var hookUI = _interopRequireWildcard(__webpack_require__(/*! ./modules/hooks/ui */ "../modules/web-cli/assets/js/modules/hooks/ui/index.js")); |
| 469 | -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } | |
| 2421 | +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | |
| 2422 | +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | |
| 470 | 2423 | /* Alphabetical order */ |
| 471 | -var API = exports["default"] = /*#__PURE__*/function () { | |
| 2424 | +var API = /*#__PURE__*/function () { | |
| 472 | 2425 | /** |
| 473 | 2426 | * Function constructor(). |
| 474 | 2427 | * |
| 475 | 2428 | * Create's 'elementor' api. |
| @@ -512,9 +2465,9 @@ | ||
| 512 | 2465 | * @param {*} [args={}] |
| 513 | 2466 | * |
| 514 | 2467 | * @return {*} result |
| 515 | 2468 | */ |
| 516 | - return (0, _createClass2.default)(API, [{ | |
| 2469 | + (0, _createClass2.default)(API, [{ | |
| 517 | 2470 | key: "run", |
| 518 | 2471 | value: function run(command) { |
| 519 | 2472 | var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; |
| 520 | 2473 | return $e.commands.run(command, args); |
| @@ -543,23 +2496,21 @@ | ||
| 543 | 2496 | * Alias of `$e.routes.to()`. |
| 544 | 2497 | * |
| 545 | 2498 | * @param {string} route |
| 546 | 2499 | * @param {*} [args={}] |
| 547 | - * @param {Object} [options] | |
| 548 | 2500 | */ |
| 549 | 2501 | }, { |
| 550 | 2502 | key: "route", |
| 551 | 2503 | value: function route(_route) { |
| 552 | 2504 | var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; |
| 553 | - var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : { | |
| 554 | - history: true | |
| 555 | - }; | |
| 556 | - return $e.routes.to(_route, args, options); | |
| 2505 | + return $e.routes.to(_route, args); | |
| 557 | 2506 | } |
| 558 | 2507 | |
| 559 | 2508 | // TODO: shortcut(); |
| 560 | 2509 | }]); |
| 2510 | + return API; | |
| 561 | 2511 | }(); |
| 2512 | +exports["default"] = API; | |
| 562 | 2513 | |
| 563 | 2514 | /***/ }), |
| 564 | 2515 | |
| 565 | 2516 | /***/ "../modules/web-cli/assets/js/core/backwards-compatibility.js": |
| @@ -575,21 +2526,21 @@ | ||
| 575 | 2526 | Object.defineProperty(exports, "__esModule", ({ |
| 576 | 2527 | value: true |
| 577 | 2528 | })); |
| 578 | 2529 | exports["default"] = void 0; |
| 2530 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 579 | 2531 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 580 | 2532 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 581 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 582 | 2533 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 583 | 2534 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 584 | 2535 | var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../modules/web-cli/assets/js/modules/component-base.js")); |
| 585 | -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)); } | |
| 586 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 587 | -var BackwardsCompatibility = exports["default"] = /*#__PURE__*/function () { | |
| 2536 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 2537 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 2538 | +var BackwardsCompatibility = /*#__PURE__*/function () { | |
| 588 | 2539 | function BackwardsCompatibility() { |
| 589 | 2540 | (0, _classCallCheck2.default)(this, BackwardsCompatibility); |
| 590 | 2541 | } |
| 591 | - return (0, _createClass2.default)(BackwardsCompatibility, [{ | |
| 2542 | + (0, _createClass2.default)(BackwardsCompatibility, [{ | |
| 592 | 2543 | key: "ensureTab", |
| 593 | 2544 | value: function ensureTab(namespace, tabSlug) { |
| 594 | 2545 | var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ''; |
| 595 | 2546 | var component = $e.components.get(namespace); |
| @@ -594,14 +2545,15 @@ | ||
| 594 | 2545 | var page = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ''; |
| 595 | 2546 | var component = $e.components.get(namespace); |
| 596 | 2547 | if (!component) { |
| 597 | 2548 | var Component = /*#__PURE__*/function (_ComponentBase) { |
| 2549 | + (0, _inherits2.default)(Component, _ComponentBase); | |
| 2550 | + var _super = _createSuper(Component); | |
| 598 | 2551 | function Component() { |
| 599 | 2552 | (0, _classCallCheck2.default)(this, Component); |
| 600 | - return _callSuper(this, Component, arguments); | |
| 2553 | + return _super.apply(this, arguments); | |
| 601 | 2554 | } |
| 602 | - (0, _inherits2.default)(Component, _ComponentBase); | |
| 603 | - return (0, _createClass2.default)(Component, [{ | |
| 2555 | + (0, _createClass2.default)(Component, [{ | |
| 604 | 2556 | key: "getNamespace", |
| 605 | 2557 | value: function getNamespace() { |
| 606 | 2558 | return namespace; |
| 607 | 2559 | } |
| @@ -610,8 +2562,9 @@ | ||
| 610 | 2562 | value: function renderTab(tab) { |
| 611 | 2563 | elementor.getPanelView().setPage(page).activateTab(tab); |
| 612 | 2564 | } |
| 613 | 2565 | }]); |
| 2566 | + return Component; | |
| 614 | 2567 | }(_componentBase.default); |
| 615 | 2568 | component = $e.components.register(new Component()); |
| 616 | 2569 | } |
| 617 | 2570 | if (!component.hasTab(tabSlug) && elementor.config.tabs[tabSlug]) { |
| @@ -620,9 +2573,11 @@ | ||
| 620 | 2573 | }); |
| 621 | 2574 | } |
| 622 | 2575 | } |
| 623 | 2576 | }]); |
| 2577 | + return BackwardsCompatibility; | |
| 624 | 2578 | }(); |
| 2579 | +exports["default"] = BackwardsCompatibility; | |
| 625 | 2580 | |
| 626 | 2581 | /***/ }), |
| 627 | 2582 | |
| 628 | 2583 | /***/ "../modules/web-cli/assets/js/core/backwards-compatibility/commands.js": |
| @@ -640,17 +2595,20 @@ | ||
| 640 | 2595 | })); |
| 641 | 2596 | exports["default"] = void 0; |
| 642 | 2597 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 643 | 2598 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2599 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js")); | |
| 2600 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 644 | 2601 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 645 | 2602 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 646 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 647 | 2603 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 648 | 2604 | var _module = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/module.js */ "../assets/dev/js/modules/imports/module.js")); |
| 649 | 2605 | var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); |
| 650 | -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)); } | |
| 651 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 652 | -var CommandsBackwardsCompatibility = exports["default"] = /*#__PURE__*/function (_Module) { | |
| 2606 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 2607 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 2608 | +var CommandsBackwardsCompatibility = /*#__PURE__*/function (_Module) { | |
| 2609 | + (0, _inherits2.default)(CommandsBackwardsCompatibility, _Module); | |
| 2610 | + var _super = _createSuper(CommandsBackwardsCompatibility); | |
| 653 | 2611 | function CommandsBackwardsCompatibility() { |
| 654 | 2612 | var _this; |
| 655 | 2613 | (0, _classCallCheck2.default)(this, CommandsBackwardsCompatibility); |
| 656 | 2614 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| @@ -655,10 +2613,10 @@ | ||
| 655 | 2613 | (0, _classCallCheck2.default)(this, CommandsBackwardsCompatibility); |
| 656 | 2614 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| 657 | 2615 | args[_key] = arguments[_key]; |
| 658 | 2616 | } |
| 659 | - _this = _callSuper(this, CommandsBackwardsCompatibility, [].concat(args)); | |
| 660 | - (0, _defineProperty2.default)(_this, "on", function (eventName, callback) { | |
| 2617 | + _this = _super.call.apply(_super, [this].concat(args)); | |
| 2618 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "on", function (eventName, callback) { | |
| 661 | 2619 | if ('run' === eventName) { |
| 662 | 2620 | var componentName = _this.getConstructorID(); |
| 663 | 2621 | |
| 664 | 2622 | // Regex takes the first letter and convert it to lower case. |
| @@ -672,16 +2630,17 @@ | ||
| 672 | 2630 | _this.onOrig(eventName, callback); |
| 673 | 2631 | }); |
| 674 | 2632 | return _this; |
| 675 | 2633 | } |
| 676 | - (0, _inherits2.default)(CommandsBackwardsCompatibility, _Module); | |
| 677 | - return (0, _createClass2.default)(CommandsBackwardsCompatibility, [{ | |
| 2634 | + (0, _createClass2.default)(CommandsBackwardsCompatibility, [{ | |
| 678 | 2635 | key: "__construct", |
| 679 | 2636 | value: function __construct() { |
| 680 | 2637 | this.onOrig = this.on; |
| 681 | 2638 | } |
| 682 | 2639 | }]); |
| 2640 | + return CommandsBackwardsCompatibility; | |
| 683 | 2641 | }(_module.default); |
| 2642 | +exports["default"] = CommandsBackwardsCompatibility; | |
| 684 | 2643 | |
| 685 | 2644 | /***/ }), |
| 686 | 2645 | |
| 687 | 2646 | /***/ "../modules/web-cli/assets/js/core/commands-internal.js": |
| @@ -699,27 +2658,30 @@ | ||
| 699 | 2658 | })); |
| 700 | 2659 | exports["default"] = void 0; |
| 701 | 2660 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 702 | 2661 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2662 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 703 | 2663 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 704 | 2664 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 705 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 706 | 2665 | var _commands = _interopRequireDefault(__webpack_require__(/*! ./commands.js */ "../modules/web-cli/assets/js/core/commands.js")); |
| 707 | -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)); } | |
| 708 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 709 | -var CommandsInternal = exports["default"] = /*#__PURE__*/function (_Commands) { | |
| 2666 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 2667 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 2668 | +var CommandsInternal = /*#__PURE__*/function (_Commands) { | |
| 2669 | + (0, _inherits2.default)(CommandsInternal, _Commands); | |
| 2670 | + var _super = _createSuper(CommandsInternal); | |
| 710 | 2671 | function CommandsInternal() { |
| 711 | 2672 | (0, _classCallCheck2.default)(this, CommandsInternal); |
| 712 | - return _callSuper(this, CommandsInternal, arguments); | |
| 2673 | + return _super.apply(this, arguments); | |
| 713 | 2674 | } |
| 714 | - (0, _inherits2.default)(CommandsInternal, _Commands); | |
| 715 | - return (0, _createClass2.default)(CommandsInternal, [{ | |
| 2675 | + (0, _createClass2.default)(CommandsInternal, [{ | |
| 716 | 2676 | key: "error", |
| 717 | 2677 | value: function error(message) { |
| 718 | 2678 | throw Error('Commands internal: ' + message); |
| 719 | 2679 | } |
| 720 | 2680 | }]); |
| 2681 | + return CommandsInternal; | |
| 721 | 2682 | }(_commands.default); |
| 2683 | +exports["default"] = CommandsInternal; | |
| 722 | 2684 | |
| 723 | 2685 | /***/ }), |
| 724 | 2686 | |
| 725 | 2687 | /***/ "../modules/web-cli/assets/js/core/commands.js": |
| @@ -740,20 +2702,21 @@ | ||
| 740 | 2702 | var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); |
| 741 | 2703 | var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); |
| 742 | 2704 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 743 | 2705 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2706 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js")); | |
| 2707 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 744 | 2708 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 745 | 2709 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 746 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 747 | 2710 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 748 | 2711 | var _commands = _interopRequireDefault(__webpack_require__(/*! ./backwards-compatibility/commands */ "../modules/web-cli/assets/js/core/backwards-compatibility/commands.js")); |
| 749 | 2712 | var _commandBase = _interopRequireDefault(__webpack_require__(/*! ../modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); |
| 750 | 2713 | var _console = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/console */ "../modules/web-cli/assets/js/utils/console.js")); |
| 751 | 2714 | var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); |
| 752 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 753 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 754 | -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)); } | |
| 755 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2715 | +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | |
| 2716 | +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | |
| 2717 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 2718 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 756 | 2719 | /** |
| 757 | 2720 | * @typedef {import('../modules/component-base')} ComponentBase |
| 758 | 2721 | */ |
| 759 | 2722 | /** |
| @@ -761,9 +2724,11 @@ | ||
| 761 | 2724 | */ |
| 762 | 2725 | /** |
| 763 | 2726 | * @typedef {{}} Component |
| 764 | 2727 | */ |
| 765 | -var Commands = exports["default"] = /*#__PURE__*/function (_CommandsBackwardsCom) { | |
| 2728 | +var Commands = /*#__PURE__*/function (_CommandsBackwardsCom) { | |
| 2729 | + (0, _inherits2.default)(Commands, _CommandsBackwardsCom); | |
| 2730 | + var _super = _createSuper(Commands); | |
| 766 | 2731 | /** |
| 767 | 2732 | * Function constructor(). |
| 768 | 2733 | * |
| 769 | 2734 | * Create `$e.commands` API. |
| @@ -775,15 +2740,15 @@ | ||
| 775 | 2740 | (0, _classCallCheck2.default)(this, Commands); |
| 776 | 2741 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| 777 | 2742 | args[_key] = arguments[_key]; |
| 778 | 2743 | } |
| 779 | - _this = _callSuper(this, Commands, [].concat(args)); | |
| 2744 | + _this = _super.call.apply(_super, [this].concat(args)); | |
| 780 | 2745 | _this.current = {}; |
| 781 | 2746 | _this.currentArgs = {}; |
| 782 | 2747 | _this.currentTrace = []; |
| 783 | 2748 | _this.commands = {}; |
| 784 | 2749 | _this.components = {}; |
| 785 | - Object.defineProperty(_this, 'classes', { | |
| 2750 | + Object.defineProperty((0, _assertThisInitialized2.default)(_this), 'classes', { | |
| 786 | 2751 | get: function get() { |
| 787 | 2752 | _deprecation.default.deprecated('$e.commands.classes', '3.7.0', '$e.commands.getCommandClass(), $e.commandsInternal.getCommandClass(), $e.data.getCommandClass(), $e.routes.getCommandClass() according to the requested command infra-structure,'); |
| 788 | 2753 | return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, $e.commands.commands), $e.commandsInternal.commands), $e.data.commands), $e.routes.commands); |
| 789 | 2754 | } |
| @@ -794,10 +2759,9 @@ | ||
| 794 | 2759 | /** |
| 795 | 2760 | * @param {string} id |
| 796 | 2761 | * @return {CommandBase} command class |
| 797 | 2762 | */ |
| 798 | - (0, _inherits2.default)(Commands, _CommandsBackwardsCom); | |
| 799 | - return (0, _createClass2.default)(Commands, [{ | |
| 2763 | + (0, _createClass2.default)(Commands, [{ | |
| 800 | 2764 | key: "getCommandClass", |
| 801 | 2765 | value: function getCommandClass(id) { |
| 802 | 2766 | return this.commands[id]; |
| 803 | 2767 | } |
| @@ -1041,14 +3005,8 @@ | ||
| 1041 | 3005 | if (args.onBefore) { |
| 1042 | 3006 | args.onBefore.apply(component, [args]); |
| 1043 | 3007 | } |
| 1044 | 3008 | this.trigger('run:before', component, command, args); |
| 1045 | - window.dispatchEvent(new CustomEvent('elementor/commands/run/before', { | |
| 1046 | - detail: { | |
| 1047 | - command: command, | |
| 1048 | - args: args | |
| 1049 | - } | |
| 1050 | - })); | |
| 1051 | 3009 | } |
| 1052 | 3010 | |
| 1053 | 3011 | /** |
| 1054 | 3012 | * Function validateRun(). |
| @@ -1160,11 +3118,12 @@ | ||
| 1160 | 3118 | _result.fail(function (e) { |
| 1161 | 3119 | _this3.catchApply(e, instance); |
| 1162 | 3120 | _this3.afterRun(instance.command, instance.args, e); |
| 1163 | 3121 | }); |
| 1164 | - return _result.done(function (__result) { | |
| 1165 | - return _this3.applyRunAfterAsyncResult(instance, __result); | |
| 3122 | + _result.done(function (__result) { | |
| 3123 | + _this3.applyRunAfterSync(instance, __result); | |
| 1166 | 3124 | }); |
| 3125 | + return _result; | |
| 1167 | 3126 | }; |
| 1168 | 3127 | return handleJQueryDeferred(result); |
| 1169 | 3128 | } else if (result instanceof Promise) { |
| 1170 | 3129 | return this.applyRunAfterAsync(instance, result); |
| @@ -1206,27 +3165,29 @@ | ||
| 1206 | 3165 | key: "applyRunAfterAsync", |
| 1207 | 3166 | value: function applyRunAfterAsync(instance, result) { |
| 1208 | 3167 | var _this4 = this; |
| 1209 | 3168 | // Override initial result ( promise ) to await onAfter promises, first!. |
| 1210 | - return (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 1211 | - return _regenerator.default.wrap(function (_context) { | |
| 1212 | - while (1) switch (_context.prev = _context.next) { | |
| 1213 | - case 0: | |
| 1214 | - _context.next = 1; | |
| 1215 | - return result.catch(function (e) { | |
| 1216 | - _this4.catchApply(e, instance); | |
| 1217 | - _this4.afterRun(instance.command, instance.args, e); | |
| 1218 | - }); | |
| 1219 | - case 1: | |
| 1220 | - _context.next = 2; | |
| 1221 | - return result.then(function (_result) { | |
| 1222 | - return _this4.applyRunAfterAsyncResult(instance, _result); | |
| 1223 | - }); | |
| 1224 | - case 2: | |
| 1225 | - return _context.abrupt("return", result); | |
| 1226 | - case 3: | |
| 1227 | - case "end": | |
| 1228 | - return _context.stop(); | |
| 3169 | + return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 3170 | + return _regenerator.default.wrap(function _callee$(_context) { | |
| 3171 | + while (1) { | |
| 3172 | + switch (_context.prev = _context.next) { | |
| 3173 | + case 0: | |
| 3174 | + _context.next = 2; | |
| 3175 | + return result.catch(function (e) { | |
| 3176 | + _this4.catchApply(e, instance); | |
| 3177 | + _this4.afterRun(instance.command, instance.args, e); | |
| 3178 | + }); | |
| 3179 | + case 2: | |
| 3180 | + _context.next = 4; | |
| 3181 | + return result.then(function (_result) { | |
| 3182 | + return _this4.applyRunAfterAsyncResult(instance, _result); | |
| 3183 | + }); | |
| 3184 | + case 4: | |
| 3185 | + return _context.abrupt("return", result); | |
| 3186 | + case 5: | |
| 3187 | + case "end": | |
| 3188 | + return _context.stop(); | |
| 3189 | + } | |
| 1229 | 3190 | } |
| 1230 | 3191 | }, _callee); |
| 1231 | 3192 | }))(); |
| 1232 | 3193 | } |
| @@ -1242,31 +3203,33 @@ | ||
| 1242 | 3203 | * @param {*} result |
| 1243 | 3204 | */ |
| 1244 | 3205 | }, { |
| 1245 | 3206 | key: "applyRunAfterAsyncResult", |
| 1246 | - value: (function () { | |
| 1247 | - var _applyRunAfterAsyncResult = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(instance, result) { | |
| 3207 | + value: function () { | |
| 3208 | + var _applyRunAfterAsyncResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(instance, result) { | |
| 1248 | 3209 | var results, promises; |
| 1249 | - return _regenerator.default.wrap(function (_context2) { | |
| 1250 | - while (1) switch (_context2.prev = _context2.next) { | |
| 1251 | - case 0: | |
| 1252 | - // Run Data hooks. | |
| 1253 | - results = instance.onAfterApply(instance.args, result), promises = Array.isArray(results) ? results.flat().filter(function (filtered) { | |
| 1254 | - return filtered instanceof Promise; | |
| 1255 | - }) : []; | |
| 1256 | - if (!promises.length) { | |
| 1257 | - _context2.next = 1; | |
| 1258 | - break; | |
| 1259 | - } | |
| 1260 | - _context2.next = 1; | |
| 1261 | - return Promise.all(promises); | |
| 1262 | - case 1: | |
| 1263 | - // For UI hooks. | |
| 1264 | - instance.onAfterRun(instance.args, result); | |
| 1265 | - this.afterRun(instance.command, instance.args, result); | |
| 1266 | - case 2: | |
| 1267 | - case "end": | |
| 1268 | - return _context2.stop(); | |
| 3210 | + return _regenerator.default.wrap(function _callee2$(_context2) { | |
| 3211 | + while (1) { | |
| 3212 | + switch (_context2.prev = _context2.next) { | |
| 3213 | + case 0: | |
| 3214 | + // Run Data hooks. | |
| 3215 | + results = instance.onAfterApply(instance.args, result), promises = Array.isArray(results) ? results.flat().filter(function (filtered) { | |
| 3216 | + return filtered instanceof Promise; | |
| 3217 | + }) : []; | |
| 3218 | + if (!promises.length) { | |
| 3219 | + _context2.next = 4; | |
| 3220 | + break; | |
| 3221 | + } | |
| 3222 | + _context2.next = 4; | |
| 3223 | + return Promise.all(promises); | |
| 3224 | + case 4: | |
| 3225 | + // For UI hooks. | |
| 3226 | + instance.onAfterRun(instance.args, result); | |
| 3227 | + this.afterRun(instance.command, instance.args, result); | |
| 3228 | + case 6: | |
| 3229 | + case "end": | |
| 3230 | + return _context2.stop(); | |
| 3231 | + } | |
| 1269 | 3232 | } |
| 1270 | 3233 | }, _callee2, this); |
| 1271 | 3234 | })); |
| 1272 | 3235 | function applyRunAfterAsyncResult(_x, _x2) { |
| @@ -1284,9 +3247,8 @@ | ||
| 1284 | 3247 | * @param {{}} args |
| 1285 | 3248 | * @param {*} results |
| 1286 | 3249 | * @param {boolean} [removeTrace=true] |
| 1287 | 3250 | */ |
| 1288 | - ) | |
| 1289 | 3251 | }, { |
| 1290 | 3252 | key: "afterRun", |
| 1291 | 3253 | value: function afterRun(command, args) { |
| 1292 | 3254 | var results = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; |
| @@ -1295,14 +3257,8 @@ | ||
| 1295 | 3257 | if (args.onAfter) { |
| 1296 | 3258 | args.onAfter.apply(component, [args, results]); |
| 1297 | 3259 | } |
| 1298 | 3260 | this.trigger('run:after', component, command, args, results); |
| 1299 | - window.dispatchEvent(new CustomEvent('elementor/commands/run/after', { | |
| 1300 | - detail: { | |
| 1301 | - command: command, | |
| 1302 | - args: args | |
| 1303 | - } | |
| 1304 | - })); | |
| 1305 | 3261 | if (removeTrace) { |
| 1306 | 3262 | this.removeCurrentTrace(component); |
| 1307 | 3263 | } |
| 1308 | 3264 | } |
| @@ -1393,9 +3349,11 @@ | ||
| 1393 | 3349 | value: function error(message) { |
| 1394 | 3350 | throw Error("Commands: ".concat(message)); |
| 1395 | 3351 | } |
| 1396 | 3352 | }]); |
| 3353 | + return Commands; | |
| 1397 | 3354 | }(_commands.default); |
| 3355 | +exports["default"] = Commands; | |
| 1398 | 3356 | (0, _defineProperty2.default)(Commands, "trace", []); |
| 1399 | 3357 | |
| 1400 | 3358 | /***/ }), |
| 1401 | 3359 | |
| @@ -1414,18 +3372,20 @@ | ||
| 1414 | 3372 | })); |
| 1415 | 3373 | exports["default"] = void 0; |
| 1416 | 3374 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1417 | 3375 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 3376 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1418 | 3377 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 1419 | 3378 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1420 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1421 | 3379 | var _module = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/module.js */ "../assets/dev/js/modules/imports/module.js")); |
| 1422 | -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)); } | |
| 1423 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 3380 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 3381 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 1424 | 3382 | /** |
| 1425 | 3383 | * @typedef {{}} Component |
| 1426 | 3384 | */ |
| 1427 | -var _default = exports["default"] = /*#__PURE__*/function (_Module) { | |
| 3385 | +var _default = /*#__PURE__*/function (_Module) { | |
| 3386 | + (0, _inherits2.default)(_default, _Module); | |
| 3387 | + var _super = _createSuper(_default); | |
| 1428 | 3388 | function _default() { |
| 1429 | 3389 | var _this; |
| 1430 | 3390 | (0, _classCallCheck2.default)(this, _default); |
| 1431 | 3391 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| @@ -1430,15 +3390,14 @@ | ||
| 1430 | 3390 | (0, _classCallCheck2.default)(this, _default); |
| 1431 | 3391 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| 1432 | 3392 | args[_key] = arguments[_key]; |
| 1433 | 3393 | } |
| 1434 | - _this = _callSuper(this, _default, [].concat(args)); | |
| 3394 | + _this = _super.call.apply(_super, [this].concat(args)); | |
| 1435 | 3395 | _this.components = {}; |
| 1436 | 3396 | _this.activeComponents = {}; |
| 1437 | 3397 | return _this; |
| 1438 | 3398 | } |
| 1439 | - (0, _inherits2.default)(_default, _Module); | |
| 1440 | - return (0, _createClass2.default)(_default, [{ | |
| 3399 | + (0, _createClass2.default)(_default, [{ | |
| 1441 | 3400 | key: "getAll", |
| 1442 | 3401 | value: function getAll() { |
| 1443 | 3402 | return Object.keys(this.components).sort(); |
| 1444 | 3403 | } |
| @@ -1484,9 +3443,11 @@ | ||
| 1484 | 3443 | value: function isActive(namespace) { |
| 1485 | 3444 | return !!this.activeComponents[namespace]; |
| 1486 | 3445 | } |
| 1487 | 3446 | }]); |
| 3447 | + return _default; | |
| 1488 | 3448 | }(_module.default); |
| 3449 | +exports["default"] = _default; | |
| 1489 | 3450 | |
| 1490 | 3451 | /***/ }), |
| 1491 | 3452 | |
| 1492 | 3453 | /***/ "../modules/web-cli/assets/js/core/data.js": |
| @@ -1507,18 +3468,18 @@ | ||
| 1507 | 3468 | var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); |
| 1508 | 3469 | var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 1509 | 3470 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1510 | 3471 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 3472 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js")); | |
| 3473 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 3474 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1511 | 3475 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 1512 | 3476 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1513 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 1514 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1515 | 3477 | var _argsObject = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js")); |
| 1516 | 3478 | var _commands = _interopRequireDefault(__webpack_require__(/*! ./commands.js */ "../modules/web-cli/assets/js/core/commands.js")); |
| 1517 | 3479 | var _cache = _interopRequireDefault(__webpack_require__(/*! ./data/cache */ "../modules/web-cli/assets/js/core/data/cache.js")); |
| 1518 | -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)); } | |
| 1519 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1520 | -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; } | |
| 3480 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 3481 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 1521 | 3482 | /** |
| 1522 | 3483 | * @typedef {('create'|'delete'|'get'|'update'|'options')} DataTypes |
| 1523 | 3484 | */ |
| 1524 | 3485 | /** |
| @@ -1549,25 +3510,32 @@ | ||
| 1549 | 3510 | * @property {Object} args arguments |
| 1550 | 3511 | */ |
| 1551 | 3512 | |
| 1552 | 3513 | // TODO: Return it from the server. Original at WP_REST_Server. |
| 1553 | -var READABLE = exports.READABLE = ['GET'], | |
| 1554 | - CREATABLE = exports.CREATABLE = ['POST'], | |
| 1555 | - EDITABLE = exports.EDITABLE = ['POST', 'PUT', 'PATCH'], | |
| 1556 | - DELETABLE = exports.DELETABLE = ['DELETE'], | |
| 1557 | - ALLMETHODS = exports.ALLMETHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE']; | |
| 1558 | -var Data = exports["default"] = /*#__PURE__*/function (_Commands) { | |
| 3514 | +var READABLE = ['GET'], | |
| 3515 | + CREATABLE = ['POST'], | |
| 3516 | + EDITABLE = ['POST', 'PUT', 'PATCH'], | |
| 3517 | + DELETABLE = ['DELETE'], | |
| 3518 | + ALLMETHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE']; | |
| 3519 | +exports.ALLMETHODS = ALLMETHODS; | |
| 3520 | +exports.DELETABLE = DELETABLE; | |
| 3521 | +exports.EDITABLE = EDITABLE; | |
| 3522 | +exports.CREATABLE = CREATABLE; | |
| 3523 | +exports.READABLE = READABLE; | |
| 3524 | +var Data = /*#__PURE__*/function (_Commands) { | |
| 3525 | + (0, _inherits2.default)(Data, _Commands); | |
| 3526 | + var _super = _createSuper(Data); | |
| 1559 | 3527 | function Data() { |
| 1560 | 3528 | var _this; |
| 1561 | 3529 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 1562 | 3530 | (0, _classCallCheck2.default)(this, Data); |
| 1563 | - _this = _callSuper(this, Data, [args]); | |
| 3531 | + _this = _super.call(this, args); | |
| 1564 | 3532 | _this.args = Object.assign(args, { |
| 1565 | 3533 | namespace: 'elementor', |
| 1566 | 3534 | version: '1', |
| 1567 | 3535 | baseEndpointURL: elementorWebCliConfig.urls.rest |
| 1568 | 3536 | }); |
| 1569 | - _this.cache = new _cache.default(_this); | |
| 3537 | + _this.cache = new _cache.default((0, _assertThisInitialized2.default)(_this)); | |
| 1570 | 3538 | _this.validatedRequests = {}; |
| 1571 | 3539 | _this.commandFormats = {}; |
| 1572 | 3540 | return _this; |
| 1573 | 3541 | } |
| @@ -1580,10 +3548,9 @@ | ||
| 1580 | 3548 | * @param {DataTypes} type |
| 1581 | 3549 | * |
| 1582 | 3550 | * @return {string|boolean} HTTP Method |
| 1583 | 3551 | */ |
| 1584 | - (0, _inherits2.default)(Data, _Commands); | |
| 1585 | - return (0, _createClass2.default)(Data, [{ | |
| 3552 | + (0, _createClass2.default)(Data, [{ | |
| 1586 | 3553 | key: "getHTTPMethod", |
| 1587 | 3554 | value: function getHTTPMethod(type) { |
| 1588 | 3555 | switch (type) { |
| 1589 | 3556 | case 'create': |
| @@ -1812,13 +3779,13 @@ | ||
| 1812 | 3779 | */ |
| 1813 | 3780 | }, { |
| 1814 | 3781 | key: "prepareHeaders", |
| 1815 | 3782 | value: function prepareHeaders(requestData) { |
| 1816 | - var _requestData$args; | |
| 3783 | + var _requestData$args, _requestData$args$opt; | |
| 1817 | 3784 | var type = requestData.type, |
| 1818 | 3785 | nonce = elementorWebCliConfig.nonce, |
| 1819 | 3786 | params = { |
| 1820 | - signal: (_requestData$args = requestData.args) === null || _requestData$args === void 0 || (_requestData$args = _requestData$args.options) === null || _requestData$args === void 0 ? void 0 : _requestData$args.signal, | |
| 3787 | + signal: (_requestData$args = requestData.args) === null || _requestData$args === void 0 ? void 0 : (_requestData$args$opt = _requestData$args.options) === null || _requestData$args$opt === void 0 ? void 0 : _requestData$args$opt.signal, | |
| 1821 | 3788 | credentials: 'include' // Cookies is required for wp reset. |
| 1822 | 3789 | }, |
| 1823 | 3790 | headers = { |
| 1824 | 3791 | 'X-WP-Nonce': nonce |
| @@ -1891,13 +3858,13 @@ | ||
| 1891 | 3858 | */ |
| 1892 | 3859 | }, { |
| 1893 | 3860 | key: "fetch", |
| 1894 | 3861 | value: function fetch(requestData) { |
| 1895 | - var _requestData$args$opt, | |
| 3862 | + var _requestData$args$opt2, | |
| 1896 | 3863 | _this2 = this; |
| 1897 | 3864 | var fetchAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.fetch; |
| 1898 | 3865 | requestData.cache = 'miss'; |
| 1899 | - var refresh = (_requestData$args$opt = requestData.args.options) === null || _requestData$args$opt === void 0 ? void 0 : _requestData$args$opt.refresh, | |
| 3866 | + var refresh = (_requestData$args$opt2 = requestData.args.options) === null || _requestData$args$opt2 === void 0 ? void 0 : _requestData$args$opt2.refresh, | |
| 1900 | 3867 | getCache = 'get' === requestData.type && !refresh, |
| 1901 | 3868 | saveCache = ['create', 'get'].includes(requestData.type) && !refresh; |
| 1902 | 3869 | if (getCache) { |
| 1903 | 3870 | var cachePromise = this.cache.getAsync(requestData); |
| @@ -1906,68 +3873,72 @@ | ||
| 1906 | 3873 | } |
| 1907 | 3874 | } |
| 1908 | 3875 | var params = this.prepareHeaders(requestData); |
| 1909 | 3876 | // eslint-disable-next-line no-async-promise-executor |
| 1910 | - return new Promise(/*#__PURE__*/function () { | |
| 1911 | - var _ref9 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(resolve, reject) { | |
| 1912 | - var endpoint, request, response, _t; | |
| 1913 | - return _regenerator.default.wrap(function (_context2) { | |
| 1914 | - while (1) switch (_context2.prev = _context2.next) { | |
| 1915 | - case 0: | |
| 1916 | - _context2.prev = 0; | |
| 1917 | - endpoint = _this2.prepareEndpoint(requestData); | |
| 1918 | - request = fetchAPI(endpoint, params); | |
| 1919 | - _context2.next = 1; | |
| 1920 | - return request.then(/*#__PURE__*/function () { | |
| 1921 | - var _ref0 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(_response) { | |
| 1922 | - return _regenerator.default.wrap(function (_context) { | |
| 1923 | - while (1) switch (_context.prev = _context.next) { | |
| 1924 | - case 0: | |
| 1925 | - if (_response.ok) { | |
| 1926 | - _context.next = 3; | |
| 1927 | - break; | |
| 3877 | + return new Promise( /*#__PURE__*/function () { | |
| 3878 | + var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(resolve, reject) { | |
| 3879 | + var endpoint, request, response; | |
| 3880 | + return _regenerator.default.wrap(function _callee2$(_context2) { | |
| 3881 | + while (1) { | |
| 3882 | + switch (_context2.prev = _context2.next) { | |
| 3883 | + case 0: | |
| 3884 | + _context2.prev = 0; | |
| 3885 | + endpoint = _this2.prepareEndpoint(requestData); | |
| 3886 | + request = fetchAPI(endpoint, params); | |
| 3887 | + _context2.next = 5; | |
| 3888 | + return request.then( /*#__PURE__*/function () { | |
| 3889 | + var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_response) { | |
| 3890 | + return _regenerator.default.wrap(function _callee$(_context) { | |
| 3891 | + while (1) { | |
| 3892 | + switch (_context.prev = _context.next) { | |
| 3893 | + case 0: | |
| 3894 | + if (_response.ok) { | |
| 3895 | + _context.next = 6; | |
| 3896 | + break; | |
| 3897 | + } | |
| 3898 | + if (!_response.headers.get('content-type').includes('application/json')) { | |
| 3899 | + _context.next = 5; | |
| 3900 | + break; | |
| 3901 | + } | |
| 3902 | + _context.next = 4; | |
| 3903 | + return _response.json(); | |
| 3904 | + case 4: | |
| 3905 | + _response = _context.sent; | |
| 3906 | + case 5: | |
| 3907 | + throw _response; | |
| 3908 | + case 6: | |
| 3909 | + return _context.abrupt("return", _response.json()); | |
| 3910 | + case 7: | |
| 3911 | + case "end": | |
| 3912 | + return _context.stop(); | |
| 1928 | 3913 | } |
| 1929 | - if (!_response.headers.get('content-type').includes('application/json')) { | |
| 1930 | - _context.next = 2; | |
| 1931 | - break; | |
| 1932 | - } | |
| 1933 | - _context.next = 1; | |
| 1934 | - return _response.json(); | |
| 1935 | - case 1: | |
| 1936 | - _response = _context.sent; | |
| 1937 | - case 2: | |
| 1938 | - throw _response; | |
| 1939 | - case 3: | |
| 1940 | - return _context.abrupt("return", _response.json()); | |
| 1941 | - case 4: | |
| 1942 | - case "end": | |
| 1943 | - return _context.stop(); | |
| 1944 | - } | |
| 1945 | - }, _callee); | |
| 1946 | - })); | |
| 1947 | - return function (_x3) { | |
| 1948 | - return _ref0.apply(this, arguments); | |
| 1949 | - }; | |
| 1950 | - }()); | |
| 1951 | - case 1: | |
| 1952 | - response = _context2.sent; | |
| 1953 | - // At this point, it got the resolved response from remote. | |
| 1954 | - // So load cache, and resolve it. | |
| 1955 | - if (saveCache) { | |
| 1956 | - _this2.cache.set(requestData, response); | |
| 1957 | - } | |
| 1958 | - resolve(response); | |
| 1959 | - _context2.next = 3; | |
| 1960 | - break; | |
| 1961 | - case 2: | |
| 1962 | - _context2.prev = 2; | |
| 1963 | - _t = _context2["catch"](0); | |
| 1964 | - reject(_t); | |
| 1965 | - case 3: | |
| 1966 | - case "end": | |
| 1967 | - return _context2.stop(); | |
| 3914 | + } | |
| 3915 | + }, _callee); | |
| 3916 | + })); | |
| 3917 | + return function (_x3) { | |
| 3918 | + return _ref10.apply(this, arguments); | |
| 3919 | + }; | |
| 3920 | + }()); | |
| 3921 | + case 5: | |
| 3922 | + response = _context2.sent; | |
| 3923 | + // At this point, it got the resolved response from remote. | |
| 3924 | + // So load cache, and resolve it. | |
| 3925 | + if (saveCache) { | |
| 3926 | + _this2.cache.set(requestData, response); | |
| 3927 | + } | |
| 3928 | + resolve(response); | |
| 3929 | + _context2.next = 13; | |
| 3930 | + break; | |
| 3931 | + case 10: | |
| 3932 | + _context2.prev = 10; | |
| 3933 | + _context2.t0 = _context2["catch"](0); | |
| 3934 | + reject(_context2.t0); | |
| 3935 | + case 13: | |
| 3936 | + case "end": | |
| 3937 | + return _context2.stop(); | |
| 3938 | + } | |
| 1968 | 3939 | } |
| 1969 | - }, _callee2, null, [[0, 2]]); | |
| 3940 | + }, _callee2, null, [[0, 10]]); | |
| 1970 | 3941 | })); |
| 1971 | 3942 | return function (_x, _x2) { |
| 1972 | 3943 | return _ref9.apply(this, arguments); |
| 1973 | 3944 | }; |
| @@ -2196,9 +4167,9 @@ | ||
| 2196 | 4167 | } |
| 2197 | 4168 | }, { |
| 2198 | 4169 | key: "register", |
| 2199 | 4170 | value: function register(component, command, callback) { |
| 2200 | - _superPropGet(Data, "register", this, 3)([component, command, callback]); | |
| 4171 | + (0, _get2.default)((0, _getPrototypeOf2.default)(Data.prototype), "register", this).call(this, component, command, callback); | |
| 2201 | 4172 | var fullCommandName = component.getNamespace() + '/' + command, |
| 2202 | 4173 | commandInstance = $e.data.getCommandClass(fullCommandName), |
| 2203 | 4174 | format = commandInstance !== null && commandInstance !== void 0 && commandInstance.getEndpointFormat ? commandInstance.getEndpointFormat() : false; |
| 2204 | 4175 | if (format) { |
| @@ -2222,9 +4193,9 @@ | ||
| 2222 | 4193 | args.options.type = type; |
| 2223 | 4194 | var _this$commandExtractA = this.commandExtractArgs(command, args); |
| 2224 | 4195 | command = _this$commandExtractA.command; |
| 2225 | 4196 | args = _this$commandExtractA.args; |
| 2226 | - return _superPropGet(Data, "run", this, 3)([command, args]); | |
| 4197 | + return (0, _get2.default)((0, _getPrototypeOf2.default)(Data.prototype), "run", this).call(this, command, args); | |
| 2227 | 4198 | } |
| 2228 | 4199 | }, { |
| 2229 | 4200 | key: "error", |
| 2230 | 4201 | value: function error(message) { |
| @@ -2230,9 +4201,11 @@ | ||
| 2230 | 4201 | value: function error(message) { |
| 2231 | 4202 | throw Error('Data commands: ' + message); |
| 2232 | 4203 | } |
| 2233 | 4204 | }]); |
| 4205 | + return Data; | |
| 2234 | 4206 | }(_commands.default); |
| 4207 | +exports["default"] = Data; | |
| 2235 | 4208 | |
| 2236 | 4209 | /***/ }), |
| 2237 | 4210 | |
| 2238 | 4211 | /***/ "../modules/web-cli/assets/js/core/data/cache.js": |
| @@ -2262,9 +4235,9 @@ | ||
| 2262 | 4235 | */ |
| 2263 | 4236 | /** |
| 2264 | 4237 | * TODO: Search common logic, create functions to reduce code size. |
| 2265 | 4238 | */ |
| 2266 | -var Cache = exports["default"] = /*#__PURE__*/function () { | |
| 4239 | +var Cache = /*#__PURE__*/function () { | |
| 2267 | 4240 | /** |
| 2268 | 4241 | * Function constructor(). |
| 2269 | 4242 | * |
| 2270 | 4243 | * Create cache. |
| @@ -2286,9 +4259,9 @@ | ||
| 2286 | 4259 | * @param {RequestData} requestData |
| 2287 | 4260 | * |
| 2288 | 4261 | * @return {(Promise|boolean)} request data |
| 2289 | 4262 | */ |
| 2290 | - return (0, _createClass2.default)(Cache, [{ | |
| 4263 | + (0, _createClass2.default)(Cache, [{ | |
| 2291 | 4264 | key: "getAsync", |
| 2292 | 4265 | value: function getAsync(requestData) { |
| 2293 | 4266 | var data = this.get(requestData); |
| 2294 | 4267 | if (null !== data) { |
| @@ -2466,13 +4439,13 @@ | ||
| 2466 | 4439 | } |
| 2467 | 4440 | return accumulator[pureEndpointPart]; |
| 2468 | 4441 | }, newData); |
| 2469 | 4442 | if (Object.keys(oldData).length) { |
| 2470 | - var _deleteKeys = function deleteKeys(target, nullsObject) { | |
| 4443 | + var deleteKeys = function deleteKeys(target, nullsObject) { | |
| 2471 | 4444 | if (nullsObject) { |
| 2472 | 4445 | Object.keys(nullsObject).forEach(function (key) { |
| 2473 | 4446 | if (nullsObject[key] && 'object' === (0, _typeof2.default)(nullsObject[key])) { |
| 2474 | - _deleteKeys(target[key], nullsObject[key]); | |
| 4447 | + deleteKeys(target[key], nullsObject[key]); | |
| 2475 | 4448 | } else if (null === nullsObject[key]) { |
| 2476 | 4449 | delete target[key]; |
| 2477 | 4450 | result = true; |
| 2478 | 4451 | } |
| @@ -2484,9 +4457,9 @@ | ||
| 2484 | 4457 | }); |
| 2485 | 4458 | } |
| 2486 | 4459 | return target; |
| 2487 | 4460 | }; |
| 2488 | - this.storage.setItem(componentName, _deleteKeys(oldData, newData)); | |
| 4461 | + this.storage.setItem(componentName, deleteKeys(oldData, newData)); | |
| 2489 | 4462 | } |
| 2490 | 4463 | } else { |
| 2491 | 4464 | for (var key in this.storage.getAll()) { |
| 2492 | 4465 | if (key === requestData.endpoint) { |
| @@ -2498,9 +4471,11 @@ | ||
| 2498 | 4471 | } |
| 2499 | 4472 | return result; |
| 2500 | 4473 | } |
| 2501 | 4474 | }]); |
| 4475 | + return Cache; | |
| 2502 | 4476 | }(); |
| 4477 | +exports["default"] = Cache; | |
| 2503 | 4478 | |
| 2504 | 4479 | /***/ }), |
| 2505 | 4480 | |
| 2506 | 4481 | /***/ "../modules/web-cli/assets/js/core/data/errors/base-error.js": |
| @@ -2518,20 +4493,23 @@ | ||
| 2518 | 4493 | })); |
| 2519 | 4494 | exports["default"] = void 0; |
| 2520 | 4495 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2521 | 4496 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 4497 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js")); | |
| 4498 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2522 | 4499 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 2523 | 4500 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 2524 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2525 | 4501 | var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js")); |
| 2526 | 4502 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 2527 | 4503 | var _console = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/console */ "../modules/web-cli/assets/js/utils/console.js")); |
| 2528 | 4504 | var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../../../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js")); |
| 2529 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 2530 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 2531 | -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)); } | |
| 2532 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2533 | -var BaseError = exports["default"] = /*#__PURE__*/function (_Error) { | |
| 4505 | +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | |
| 4506 | +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | |
| 4507 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 4508 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 4509 | +var BaseError = /*#__PURE__*/function (_Error) { | |
| 4510 | + (0, _inherits2.default)(BaseError, _Error); | |
| 4511 | + var _super = _createSuper(BaseError); | |
| 2534 | 4512 | /** |
| 2535 | 4513 | * Error constructor. |
| 2536 | 4514 | * |
| 2537 | 4515 | * @param {string} message |
| @@ -2543,21 +4521,11 @@ | ||
| 2543 | 4521 | var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; |
| 2544 | 4522 | var code = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; |
| 2545 | 4523 | var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; |
| 2546 | 4524 | (0, _classCallCheck2.default)(this, BaseError); |
| 2547 | - _this = _callSuper(this, BaseError, [message]); | |
| 2548 | - /** | |
| 2549 | - * The server error code. | |
| 2550 | - * | |
| 2551 | - * @type {string} | |
| 2552 | - */ | |
| 2553 | - (0, _defineProperty2.default)(_this, "code", ''); | |
| 2554 | - /** | |
| 2555 | - * Additional data about the current error. | |
| 2556 | - * | |
| 2557 | - * @type {*[]} | |
| 2558 | - */ | |
| 2559 | - (0, _defineProperty2.default)(_this, "data", []); | |
| 4525 | + _this = _super.call(this, message); | |
| 4526 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "code", ''); | |
| 4527 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "data", []); | |
| 2560 | 4528 | _this.code = code; |
| 2561 | 4529 | _this.data = data; |
| 2562 | 4530 | return _this; |
| 2563 | 4531 | } |
| @@ -2564,10 +4532,9 @@ | ||
| 2564 | 4532 | |
| 2565 | 4533 | /** |
| 2566 | 4534 | * Notify a message when the error occurs. |
| 2567 | 4535 | */ |
| 2568 | - (0, _inherits2.default)(BaseError, _Error); | |
| 2569 | - return (0, _createClass2.default)(BaseError, [{ | |
| 4536 | + (0, _createClass2.default)(BaseError, [{ | |
| 2570 | 4537 | key: "notify", |
| 2571 | 4538 | value: function notify() { |
| 2572 | 4539 | _console.default.error(_objectSpread({ |
| 2573 | 4540 | message: this.message |
| @@ -2576,8 +4543,20 @@ | ||
| 2576 | 4543 | }], [{ |
| 2577 | 4544 | key: "create", |
| 2578 | 4545 | value: |
| 2579 | 4546 | /** |
| 4547 | + * The server error code. | |
| 4548 | + * | |
| 4549 | + * @type {string} | |
| 4550 | + */ | |
| 4551 | + | |
| 4552 | + /** | |
| 4553 | + * Additional data about the current error. | |
| 4554 | + * | |
| 4555 | + * @type {*[]} | |
| 4556 | + */ | |
| 4557 | + | |
| 4558 | + /** | |
| 2580 | 4559 | * Static helper function to create the error. |
| 2581 | 4560 | * |
| 2582 | 4561 | * @param {string} message |
| 2583 | 4562 | * @param {string} code |
| @@ -2598,9 +4577,11 @@ | ||
| 2598 | 4577 | value: function getHTTPErrorCode() { |
| 2599 | 4578 | (0, _forceMethodImplementation.default)(); |
| 2600 | 4579 | } |
| 2601 | 4580 | }]); |
| 2602 | -}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 4581 | + return BaseError; | |
| 4582 | +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 4583 | +exports["default"] = BaseError; | |
| 2603 | 4584 | |
| 2604 | 4585 | /***/ }), |
| 2605 | 4586 | |
| 2606 | 4587 | /***/ "../modules/web-cli/assets/js/core/data/errors/default-error.js": |
| @@ -2618,28 +4599,32 @@ | ||
| 2618 | 4599 | })); |
| 2619 | 4600 | exports["default"] = exports.DefaultError = void 0; |
| 2620 | 4601 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2621 | 4602 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 4603 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2622 | 4604 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 2623 | 4605 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 2624 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2625 | 4606 | var _baseError = _interopRequireDefault(__webpack_require__(/*! ./base-error */ "../modules/web-cli/assets/js/core/data/errors/base-error.js")); |
| 2626 | -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)); } | |
| 2627 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2628 | -var DefaultError = exports.DefaultError = /*#__PURE__*/function (_BaseError) { | |
| 4607 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 4608 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 4609 | +var DefaultError = /*#__PURE__*/function (_BaseError) { | |
| 4610 | + (0, _inherits2.default)(DefaultError, _BaseError); | |
| 4611 | + var _super = _createSuper(DefaultError); | |
| 2629 | 4612 | function DefaultError() { |
| 2630 | 4613 | (0, _classCallCheck2.default)(this, DefaultError); |
| 2631 | - return _callSuper(this, DefaultError, arguments); | |
| 4614 | + return _super.apply(this, arguments); | |
| 2632 | 4615 | } |
| 2633 | - (0, _inherits2.default)(DefaultError, _BaseError); | |
| 2634 | - return (0, _createClass2.default)(DefaultError, null, [{ | |
| 4616 | + (0, _createClass2.default)(DefaultError, null, [{ | |
| 2635 | 4617 | key: "getHTTPErrorCode", |
| 2636 | 4618 | value: function getHTTPErrorCode() { |
| 2637 | 4619 | return 501; |
| 2638 | 4620 | } |
| 2639 | 4621 | }]); |
| 4622 | + return DefaultError; | |
| 2640 | 4623 | }(_baseError.default); |
| 2641 | -var _default = exports["default"] = DefaultError; | |
| 4624 | +exports.DefaultError = DefaultError; | |
| 4625 | +var _default = DefaultError; | |
| 4626 | +exports["default"] = _default; | |
| 2642 | 4627 | |
| 2643 | 4628 | /***/ }), |
| 2644 | 4629 | |
| 2645 | 4630 | /***/ "../modules/web-cli/assets/js/core/data/errors/error-404.js": |
| @@ -2657,22 +4642,23 @@ | ||
| 2657 | 4642 | })); |
| 2658 | 4643 | exports["default"] = exports.Error404 = void 0; |
| 2659 | 4644 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2660 | 4645 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 4646 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2661 | 4647 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 2662 | 4648 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 2663 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2664 | 4649 | var _baseError = _interopRequireDefault(__webpack_require__(/*! ./base-error */ "../modules/web-cli/assets/js/core/data/errors/base-error.js")); |
| 2665 | 4650 | var _console = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/console */ "../modules/web-cli/assets/js/utils/console.js")); |
| 2666 | -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)); } | |
| 2667 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2668 | -var Error404 = exports.Error404 = /*#__PURE__*/function (_BaseError) { | |
| 4651 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 4652 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 4653 | +var Error404 = /*#__PURE__*/function (_BaseError) { | |
| 4654 | + (0, _inherits2.default)(Error404, _BaseError); | |
| 4655 | + var _super = _createSuper(Error404); | |
| 2669 | 4656 | function Error404() { |
| 2670 | 4657 | (0, _classCallCheck2.default)(this, Error404); |
| 2671 | - return _callSuper(this, Error404, arguments); | |
| 4658 | + return _super.apply(this, arguments); | |
| 2672 | 4659 | } |
| 2673 | - (0, _inherits2.default)(Error404, _BaseError); | |
| 2674 | - return (0, _createClass2.default)(Error404, [{ | |
| 4660 | + (0, _createClass2.default)(Error404, [{ | |
| 2675 | 4661 | key: "notify", |
| 2676 | 4662 | value: function notify() { |
| 2677 | 4663 | _console.default.warn(this.message); |
| 2678 | 4664 | } |
| @@ -2681,10 +4667,13 @@ | ||
| 2681 | 4667 | value: function getHTTPErrorCode() { |
| 2682 | 4668 | return 404; |
| 2683 | 4669 | } |
| 2684 | 4670 | }]); |
| 4671 | + return Error404; | |
| 2685 | 4672 | }(_baseError.default); |
| 2686 | -var _default = exports["default"] = Error404; | |
| 4673 | +exports.Error404 = Error404; | |
| 4674 | +var _default = Error404; | |
| 4675 | +exports["default"] = _default; | |
| 2687 | 4676 | |
| 2688 | 4677 | /***/ }), |
| 2689 | 4678 | |
| 2690 | 4679 | /***/ "../modules/web-cli/assets/js/core/data/errors/index.js": |
| @@ -2731,24 +4720,24 @@ | ||
| 2731 | 4720 | })); |
| 2732 | 4721 | exports["default"] = void 0; |
| 2733 | 4722 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2734 | 4723 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 4724 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 4725 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2735 | 4726 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 2736 | 4727 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 2737 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 2738 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2739 | 4728 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 2740 | 4729 | var _baseStorage = _interopRequireDefault(__webpack_require__(/*! elementor-api/core/data/storages/base-storage */ "../modules/web-cli/assets/js/core/data/storages/base-storage.js")); |
| 2741 | -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)); } | |
| 2742 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2743 | -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; } | |
| 2744 | -var BasePrefixStorage = exports["default"] = /*#__PURE__*/function (_BaseStorage) { | |
| 4730 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 4731 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 4732 | +var BasePrefixStorage = /*#__PURE__*/function (_BaseStorage) { | |
| 4733 | + (0, _inherits2.default)(BasePrefixStorage, _BaseStorage); | |
| 4734 | + var _super = _createSuper(BasePrefixStorage); | |
| 2745 | 4735 | function BasePrefixStorage() { |
| 2746 | 4736 | (0, _classCallCheck2.default)(this, BasePrefixStorage); |
| 2747 | - return _callSuper(this, BasePrefixStorage, arguments); | |
| 4737 | + return _super.apply(this, arguments); | |
| 2748 | 4738 | } |
| 2749 | - (0, _inherits2.default)(BasePrefixStorage, _BaseStorage); | |
| 2750 | - return (0, _createClass2.default)(BasePrefixStorage, [{ | |
| 4739 | + (0, _createClass2.default)(BasePrefixStorage, [{ | |
| 2751 | 4740 | key: "clear", |
| 2752 | 4741 | value: function clear() { |
| 2753 | 4742 | var _this = this; |
| 2754 | 4743 | Object.keys(this.getAll()).forEach(function (key) { |
| @@ -2757,19 +4746,19 @@ | ||
| 2757 | 4746 | } |
| 2758 | 4747 | }, { |
| 2759 | 4748 | key: "getItem", |
| 2760 | 4749 | value: function getItem(key) { |
| 2761 | - return _superPropGet(BasePrefixStorage, "getItem", this, 3)([BasePrefixStorage.DEFAULT_KEY_PREFIX + key]); | |
| 4750 | + return (0, _get2.default)((0, _getPrototypeOf2.default)(BasePrefixStorage.prototype), "getItem", this).call(this, BasePrefixStorage.DEFAULT_KEY_PREFIX + key); | |
| 2762 | 4751 | } |
| 2763 | 4752 | }, { |
| 2764 | 4753 | key: "removeItem", |
| 2765 | 4754 | value: function removeItem(key) { |
| 2766 | - return _superPropGet(BasePrefixStorage, "removeItem", this, 3)([BasePrefixStorage.DEFAULT_KEY_PREFIX + key]); | |
| 4755 | + return (0, _get2.default)((0, _getPrototypeOf2.default)(BasePrefixStorage.prototype), "removeItem", this).call(this, BasePrefixStorage.DEFAULT_KEY_PREFIX + key); | |
| 2767 | 4756 | } |
| 2768 | 4757 | }, { |
| 2769 | 4758 | key: "setItem", |
| 2770 | 4759 | value: function setItem(key, value) { |
| 2771 | - return _superPropGet(BasePrefixStorage, "setItem", this, 3)([BasePrefixStorage.DEFAULT_KEY_PREFIX + key, value]); | |
| 4760 | + return (0, _get2.default)((0, _getPrototypeOf2.default)(BasePrefixStorage.prototype), "setItem", this).call(this, BasePrefixStorage.DEFAULT_KEY_PREFIX + key, value); | |
| 2772 | 4761 | } |
| 2773 | 4762 | }, { |
| 2774 | 4763 | key: "getAll", |
| 2775 | 4764 | value: function getAll() { |
| @@ -2785,9 +4774,11 @@ | ||
| 2785 | 4774 | }); |
| 2786 | 4775 | return result; |
| 2787 | 4776 | } |
| 2788 | 4777 | }]); |
| 4778 | + return BasePrefixStorage; | |
| 2789 | 4779 | }(_baseStorage.default); |
| 4780 | +exports["default"] = BasePrefixStorage; | |
| 2790 | 4781 | (0, _defineProperty2.default)(BasePrefixStorage, "DEFAULT_KEY_PREFIX", 'e_'); |
| 2791 | 4782 | |
| 2792 | 4783 | /***/ }), |
| 2793 | 4784 | |
| @@ -2812,9 +4803,9 @@ | ||
| 2812 | 4803 | * Using this technique give's the ability to use JSDOC from 'window.storage'. |
| 2813 | 4804 | * |
| 2814 | 4805 | * @implements {Storage} |
| 2815 | 4806 | */ |
| 2816 | -var BaseStorage = exports["default"] = /*#__PURE__*/function () { | |
| 4807 | +var BaseStorage = /*#__PURE__*/function () { | |
| 2817 | 4808 | /** |
| 2818 | 4809 | * Create storage wrapper. |
| 2819 | 4810 | * |
| 2820 | 4811 | * @param {Storage} provider |
| @@ -2825,9 +4816,9 @@ | ||
| 2825 | 4816 | throw new TypeError('Cannot construct BaseStorage instances directly'); |
| 2826 | 4817 | } |
| 2827 | 4818 | this.provider = provider; |
| 2828 | 4819 | } |
| 2829 | - return (0, _createClass2.default)(BaseStorage, [{ | |
| 4820 | + (0, _createClass2.default)(BaseStorage, [{ | |
| 2830 | 4821 | key: "clear", |
| 2831 | 4822 | value: function clear() { |
| 2832 | 4823 | return this.provider.clear(); |
| 2833 | 4824 | } |
| @@ -2866,9 +4857,11 @@ | ||
| 2866 | 4857 | }); |
| 2867 | 4858 | return result; |
| 2868 | 4859 | } |
| 2869 | 4860 | }]); |
| 4861 | + return BaseStorage; | |
| 2870 | 4862 | }(); |
| 4863 | +exports["default"] = BaseStorage; | |
| 2871 | 4864 | |
| 2872 | 4865 | /***/ }), |
| 2873 | 4866 | |
| 2874 | 4867 | /***/ "../modules/web-cli/assets/js/core/data/storages/local-storage.js": |
| @@ -2886,21 +4879,22 @@ | ||
| 2886 | 4879 | })); |
| 2887 | 4880 | exports["default"] = void 0; |
| 2888 | 4881 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2889 | 4882 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 4883 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2890 | 4884 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 2891 | 4885 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 2892 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2893 | 4886 | var _basePrefixStorage = _interopRequireDefault(__webpack_require__(/*! ./base-prefix-storage */ "../modules/web-cli/assets/js/core/data/storages/base-prefix-storage.js")); |
| 2894 | -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)); } | |
| 2895 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2896 | -var LocalStorage = exports["default"] = /*#__PURE__*/function (_BasePrefixStorage) { | |
| 4887 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 4888 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 4889 | +var LocalStorage = /*#__PURE__*/function (_BasePrefixStorage) { | |
| 4890 | + (0, _inherits2.default)(LocalStorage, _BasePrefixStorage); | |
| 4891 | + var _super = _createSuper(LocalStorage); | |
| 2897 | 4892 | function LocalStorage() { |
| 2898 | 4893 | (0, _classCallCheck2.default)(this, LocalStorage); |
| 2899 | - return _callSuper(this, LocalStorage, [localStorage]); | |
| 4894 | + return _super.call(this, localStorage); | |
| 2900 | 4895 | } |
| 2901 | - (0, _inherits2.default)(LocalStorage, _BasePrefixStorage); | |
| 2902 | - return (0, _createClass2.default)(LocalStorage, [{ | |
| 4896 | + (0, _createClass2.default)(LocalStorage, [{ | |
| 2903 | 4897 | key: "debug", |
| 2904 | 4898 | value: function debug() { |
| 2905 | 4899 | var entries = this.getAll(), |
| 2906 | 4900 | ordered = {}; |
| @@ -2910,9 +4904,11 @@ | ||
| 2910 | 4904 | }); |
| 2911 | 4905 | return ordered; |
| 2912 | 4906 | } |
| 2913 | 4907 | }]); |
| 4908 | + return LocalStorage; | |
| 2914 | 4909 | }(_basePrefixStorage.default); |
| 4910 | +exports["default"] = LocalStorage; | |
| 2915 | 4911 | |
| 2916 | 4912 | /***/ }), |
| 2917 | 4913 | |
| 2918 | 4914 | /***/ "../modules/web-cli/assets/js/core/hooks.js": |
| @@ -2936,15 +4932,15 @@ | ||
| 2936 | 4932 | var _ui = _interopRequireDefault(__webpack_require__(/*! ./hooks/ui.js */ "../modules/web-cli/assets/js/core/hooks/ui.js")); |
| 2937 | 4933 | /** |
| 2938 | 4934 | * @typedef {import('../modules/hook-base')} HookBase |
| 2939 | 4935 | */ |
| 2940 | -var Hooks = exports["default"] = /*#__PURE__*/function () { | |
| 4936 | +var Hooks = /*#__PURE__*/function () { | |
| 2941 | 4937 | function Hooks() { |
| 2942 | 4938 | (0, _classCallCheck2.default)(this, Hooks); |
| 2943 | 4939 | (0, _defineProperty2.default)(this, "data", new _data.default()); |
| 2944 | 4940 | (0, _defineProperty2.default)(this, "ui", new _ui.default()); |
| 2945 | 4941 | } |
| 2946 | - return (0, _createClass2.default)(Hooks, [{ | |
| 4942 | + (0, _createClass2.default)(Hooks, [{ | |
| 2947 | 4943 | key: "activate", |
| 2948 | 4944 | value: |
| 2949 | 4945 | /** |
| 2950 | 4946 | * Function activate(). |
| @@ -3218,9 +5214,11 @@ | ||
| 3218 | 5214 | value: function runUIBefore(command, args) { |
| 3219 | 5215 | return this.run('ui', 'before', command, args); |
| 3220 | 5216 | } |
| 3221 | 5217 | }]); |
| 5218 | + return Hooks; | |
| 3222 | 5219 | }(); |
| 5220 | +exports["default"] = Hooks; | |
| 3223 | 5221 | |
| 3224 | 5222 | /***/ }), |
| 3225 | 5223 | |
| 3226 | 5224 | /***/ "../modules/web-cli/assets/js/core/hooks/base.js": |
| @@ -3238,20 +5236,22 @@ | ||
| 3238 | 5236 | })); |
| 3239 | 5237 | exports["default"] = void 0; |
| 3240 | 5238 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 3241 | 5239 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 5240 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 3242 | 5241 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 3243 | 5242 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 3244 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 3245 | 5243 | var _console = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/console */ "../modules/web-cli/assets/js/utils/console.js")); |
| 3246 | 5244 | var _module = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/module.js */ "../assets/dev/js/modules/imports/module.js")); |
| 3247 | 5245 | var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js")); |
| 3248 | -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)); } | |
| 3249 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 5246 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 5247 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 3250 | 5248 | /** |
| 3251 | 5249 | * @typedef {import('../../modules/hook-base')} HookBase |
| 3252 | 5250 | */ |
| 3253 | -var HooksBase = exports["default"] = /*#__PURE__*/function (_Module) { | |
| 5251 | +var HooksBase = /*#__PURE__*/function (_Module) { | |
| 5252 | + (0, _inherits2.default)(HooksBase, _Module); | |
| 5253 | + var _super = _createSuper(HooksBase); | |
| 3254 | 5254 | /** |
| 3255 | 5255 | * Function constructor(). |
| 3256 | 5256 | * |
| 3257 | 5257 | * Create hooks base. |
| @@ -3263,9 +5263,9 @@ | ||
| 3263 | 5263 | (0, _classCallCheck2.default)(this, HooksBase); |
| 3264 | 5264 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| 3265 | 5265 | args[_key] = arguments[_key]; |
| 3266 | 5266 | } |
| 3267 | - _this = _callSuper(this, HooksBase, [].concat(args)); | |
| 5267 | + _this = _super.call.apply(_super, [this].concat(args)); | |
| 3268 | 5268 | |
| 3269 | 5269 | /** |
| 3270 | 5270 | * Current command. |
| 3271 | 5271 | * |
| @@ -3301,10 +5301,9 @@ | ||
| 3301 | 5301 | }; |
| 3302 | 5302 | _this.callbacksFlatList = {}; |
| 3303 | 5303 | return _this; |
| 3304 | 5304 | } |
| 3305 | - (0, _inherits2.default)(HooksBase, _Module); | |
| 3306 | - return (0, _createClass2.default)(HooksBase, [{ | |
| 5305 | + (0, _createClass2.default)(HooksBase, [{ | |
| 3307 | 5306 | key: "activate", |
| 3308 | 5307 | value: function activate() { |
| 3309 | 5308 | Object.values(this.getAll(true)).forEach(function (callback) { |
| 3310 | 5309 | callback.activate(); |
| @@ -3696,9 +5695,11 @@ | ||
| 3696 | 5695 | // eslint-disable-line no-unused-vars |
| 3697 | 5696 | (0, _forceMethodImplementation.default)(); |
| 3698 | 5697 | } |
| 3699 | 5698 | }]); |
| 5699 | + return HooksBase; | |
| 3700 | 5700 | }(_module.default); |
| 5701 | +exports["default"] = HooksBase; | |
| 3701 | 5702 | |
| 3702 | 5703 | /***/ }), |
| 3703 | 5704 | |
| 3704 | 5705 | /***/ "../modules/web-cli/assets/js/core/hooks/data.js": |
| @@ -3716,17 +5717,18 @@ | ||
| 3716 | 5717 | })); |
| 3717 | 5718 | exports["default"] = void 0; |
| 3718 | 5719 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 3719 | 5720 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 5721 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 5722 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 3720 | 5723 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 3721 | 5724 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 3722 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 3723 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 3724 | 5725 | var _base = _interopRequireDefault(__webpack_require__(/*! ./base.js */ "../modules/web-cli/assets/js/core/hooks/base.js")); |
| 3725 | -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)); } | |
| 3726 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 3727 | -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; } | |
| 3728 | -var Data = exports["default"] = /*#__PURE__*/function (_HooksBase) { | |
| 5726 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 5727 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 5728 | +var Data = /*#__PURE__*/function (_HooksBase) { | |
| 5729 | + (0, _inherits2.default)(Data, _HooksBase); | |
| 5730 | + var _super = _createSuper(Data); | |
| 3729 | 5731 | function Data() { |
| 3730 | 5732 | var _this; |
| 3731 | 5733 | (0, _classCallCheck2.default)(this, Data); |
| 3732 | 5734 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| @@ -3731,15 +5733,14 @@ | ||
| 3731 | 5733 | (0, _classCallCheck2.default)(this, Data); |
| 3732 | 5734 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| 3733 | 5735 | args[_key] = arguments[_key]; |
| 3734 | 5736 | } |
| 3735 | - _this = _callSuper(this, Data, [].concat(args)); | |
| 5737 | + _this = _super.call.apply(_super, [this].concat(args)); | |
| 3736 | 5738 | _this.callbacks.dependency = {}; |
| 3737 | 5739 | _this.depth.dependency = {}; |
| 3738 | 5740 | return _this; |
| 3739 | 5741 | } |
| 3740 | - (0, _inherits2.default)(Data, _HooksBase); | |
| 3741 | - return (0, _createClass2.default)(Data, [{ | |
| 5742 | + (0, _createClass2.default)(Data, [{ | |
| 3742 | 5743 | key: "getType", |
| 3743 | 5744 | value: function getType() { |
| 3744 | 5745 | return 'data'; |
| 3745 | 5746 | } |
| @@ -3773,9 +5774,9 @@ | ||
| 3773 | 5774 | } |
| 3774 | 5775 | }, { |
| 3775 | 5776 | key: "shouldRun", |
| 3776 | 5777 | value: function shouldRun(callbacks) { |
| 3777 | - return _superPropGet(Data, "shouldRun", this, 3)([callbacks]) && elementor.documents.getCurrent().history.getActive(); | |
| 5778 | + return (0, _get2.default)((0, _getPrototypeOf2.default)(Data.prototype), "shouldRun", this).call(this, callbacks) && elementor.documents.getCurrent().history.getActive(); | |
| 3778 | 5779 | } |
| 3779 | 5780 | }, { |
| 3780 | 5781 | key: "onRun", |
| 3781 | 5782 | value: function onRun(command, args, event) { |
| @@ -3792,9 +5793,11 @@ | ||
| 3792 | 5793 | } |
| 3793 | 5794 | $e.devTools.log.callbacks().callback(this.getType(), command, args, event, id); |
| 3794 | 5795 | } |
| 3795 | 5796 | }]); |
| 5797 | + return Data; | |
| 3796 | 5798 | }(_base.default); |
| 5799 | +exports["default"] = Data; | |
| 3797 | 5800 | |
| 3798 | 5801 | /***/ }), |
| 3799 | 5802 | |
| 3800 | 5803 | /***/ "../modules/web-cli/assets/js/core/hooks/ui.js": |
| @@ -3812,15 +5815,17 @@ | ||
| 3812 | 5815 | })); |
| 3813 | 5816 | exports["default"] = void 0; |
| 3814 | 5817 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 3815 | 5818 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 5819 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 3816 | 5820 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 3817 | 5821 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 3818 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 3819 | 5822 | var _base = _interopRequireDefault(__webpack_require__(/*! ./base */ "../modules/web-cli/assets/js/core/hooks/base.js")); |
| 3820 | -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)); } | |
| 3821 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 3822 | -var Ui = exports["default"] = /*#__PURE__*/function (_HooksBase) { | |
| 5823 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 5824 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 5825 | +var Ui = /*#__PURE__*/function (_HooksBase) { | |
| 5826 | + (0, _inherits2.default)(Ui, _HooksBase); | |
| 5827 | + var _super = _createSuper(Ui); | |
| 3823 | 5828 | function Ui() { |
| 3824 | 5829 | var _this; |
| 3825 | 5830 | (0, _classCallCheck2.default)(this, Ui); |
| 3826 | 5831 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| @@ -3825,15 +5830,14 @@ | ||
| 3825 | 5830 | (0, _classCallCheck2.default)(this, Ui); |
| 3826 | 5831 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| 3827 | 5832 | args[_key] = arguments[_key]; |
| 3828 | 5833 | } |
| 3829 | - _this = _callSuper(this, Ui, [].concat(args)); | |
| 5834 | + _this = _super.call.apply(_super, [this].concat(args)); | |
| 3830 | 5835 | _this.callbacks.before = {}; |
| 3831 | 5836 | _this.depth.before = {}; |
| 3832 | 5837 | return _this; |
| 3833 | 5838 | } |
| 3834 | - (0, _inherits2.default)(Ui, _HooksBase); | |
| 3835 | - return (0, _createClass2.default)(Ui, [{ | |
| 5839 | + (0, _createClass2.default)(Ui, [{ | |
| 3836 | 5840 | key: "getType", |
| 3837 | 5841 | value: function getType() { |
| 3838 | 5842 | return 'ui'; |
| 3839 | 5843 | } |
| @@ -3869,9 +5873,11 @@ | ||
| 3869 | 5873 | } |
| 3870 | 5874 | $e.devTools.log.callbacks().callback(this.getType(), command, args, event, id); |
| 3871 | 5875 | } |
| 3872 | 5876 | }]); |
| 5877 | + return Ui; | |
| 3873 | 5878 | }(_base.default); |
| 5879 | +exports["default"] = Ui; | |
| 3874 | 5880 | |
| 3875 | 5881 | /***/ }), |
| 3876 | 5882 | |
| 3877 | 5883 | /***/ "../modules/web-cli/assets/js/core/routes.js": |
| @@ -3889,17 +5895,18 @@ | ||
| 3889 | 5895 | })); |
| 3890 | 5896 | exports["default"] = void 0; |
| 3891 | 5897 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 3892 | 5898 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 5899 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 5900 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 3893 | 5901 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 3894 | 5902 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 3895 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 3896 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 3897 | 5903 | var _commands = _interopRequireDefault(__webpack_require__(/*! ./commands */ "../modules/web-cli/assets/js/core/commands.js")); |
| 3898 | -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)); } | |
| 3899 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 3900 | -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; } | |
| 3901 | -var Routes = exports["default"] = /*#__PURE__*/function (_Commands) { | |
| 5904 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 5905 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 5906 | +var Routes = /*#__PURE__*/function (_Commands) { | |
| 5907 | + (0, _inherits2.default)(Routes, _Commands); | |
| 5908 | + var _super = _createSuper(Routes); | |
| 3902 | 5909 | function Routes() { |
| 3903 | 5910 | var _this; |
| 3904 | 5911 | (0, _classCallCheck2.default)(this, Routes); |
| 3905 | 5912 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| @@ -3904,15 +5911,14 @@ | ||
| 3904 | 5911 | (0, _classCallCheck2.default)(this, Routes); |
| 3905 | 5912 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| 3906 | 5913 | args[_key] = arguments[_key]; |
| 3907 | 5914 | } |
| 3908 | - _this = _callSuper(this, Routes, [].concat(args)); | |
| 5915 | + _this = _super.call.apply(_super, [this].concat(args)); | |
| 3909 | 5916 | _this.savedStates = {}; |
| 3910 | 5917 | _this.historyPerComponent = {}; |
| 3911 | 5918 | return _this; |
| 3912 | 5919 | } |
| 3913 | - (0, _inherits2.default)(Routes, _Commands); | |
| 3914 | - return (0, _createClass2.default)(Routes, [{ | |
| 5920 | + (0, _createClass2.default)(Routes, [{ | |
| 3915 | 5921 | key: "refreshContainer", |
| 3916 | 5922 | value: function refreshContainer(container) { |
| 3917 | 5923 | var currentRoute = this.getCurrent(container), |
| 3918 | 5924 | currentArgs = this.getCurrentArgs(container); |
| @@ -3941,9 +5947,8 @@ | ||
| 3941 | 5947 | return; |
| 3942 | 5948 | } |
| 3943 | 5949 | this.detachCurrent(container); |
| 3944 | 5950 | this.getComponent(route).onCloseRoute(route); |
| 3945 | - this.dispatchOnClose(route); | |
| 3946 | 5951 | } |
| 3947 | 5952 | }, { |
| 3948 | 5953 | key: "clear", |
| 3949 | 5954 | value: function clear() { |
| @@ -3973,9 +5978,9 @@ | ||
| 3973 | 5978 | }, { |
| 3974 | 5979 | key: "validateRun", |
| 3975 | 5980 | value: function validateRun(route) { |
| 3976 | 5981 | var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; |
| 3977 | - if (!_superPropGet(Routes, "validateRun", this, 3)([route, args])) { | |
| 5982 | + if (!(0, _get2.default)((0, _getPrototypeOf2.default)(Routes.prototype), "validateRun", this).call(this, route, args)) { | |
| 3978 | 5983 | return false; |
| 3979 | 5984 | } |
| 3980 | 5985 | if (this.is(route, args) && !args.refresh) { |
| 3981 | 5986 | return false; |
| @@ -3999,34 +6004,23 @@ | ||
| 3999 | 6004 | if (oldRoute) { |
| 4000 | 6005 | this.getComponent(oldRoute).onCloseRoute(oldRoute); |
| 4001 | 6006 | } |
| 4002 | 6007 | _commands.default.trace.push(route); |
| 4003 | - _superPropGet(Routes, "beforeRun", this, 3)([route, args, false]); | |
| 6008 | + (0, _get2.default)((0, _getPrototypeOf2.default)(Routes.prototype), "beforeRun", this).call(this, route, args, false); | |
| 4004 | 6009 | this.attachCurrent(container, route, args); |
| 4005 | - | |
| 4006 | - // In the previous condition, `$e.routes.is()` resolves the old route as active (because the actual route | |
| 4007 | - // switching happens inside `this.attachCurrent()`), so we can't use it there. | |
| 4008 | - if (oldRoute) { | |
| 4009 | - this.dispatchOnClose(oldRoute); | |
| 4010 | - } | |
| 4011 | 6010 | } |
| 4012 | 6011 | }, { |
| 4013 | 6012 | key: "to", |
| 4014 | 6013 | value: function to(route, args) { |
| 4015 | - var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : { | |
| 4016 | - history: true | |
| 4017 | - }; | |
| 4018 | 6014 | this.run(route, args); |
| 4019 | 6015 | var namespaceRoot = this.getComponent(route).getServiceName(); |
| 4020 | - if (options.history) { | |
| 4021 | - if (!this.historyPerComponent[namespaceRoot]) { | |
| 4022 | - this.historyPerComponent[namespaceRoot] = []; | |
| 4023 | - } | |
| 4024 | - this.historyPerComponent[namespaceRoot].push({ | |
| 4025 | - route: route, | |
| 4026 | - args: args | |
| 4027 | - }); | |
| 6016 | + if (!this.historyPerComponent[namespaceRoot]) { | |
| 6017 | + this.historyPerComponent[namespaceRoot] = []; | |
| 4028 | 6018 | } |
| 6019 | + this.historyPerComponent[namespaceRoot].push({ | |
| 6020 | + route: route, | |
| 6021 | + args: args | |
| 6022 | + }); | |
| 4029 | 6023 | } |
| 4030 | 6024 | }, { |
| 4031 | 6025 | key: "back", |
| 4032 | 6026 | value: function back(namespaceRoot) { |
| @@ -4054,10 +6048,9 @@ | ||
| 4054 | 6048 | value: function afterRun(route, args) { |
| 4055 | 6049 | var results = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; |
| 4056 | 6050 | var component = this.getComponent(route); |
| 4057 | 6051 | component.onRoute(route, args); |
| 4058 | - this.dispatchOnOpen(route); | |
| 4059 | - _superPropGet(Routes, "afterRun", this, 3)([route, args, results, false]); | |
| 6052 | + (0, _get2.default)((0, _getPrototypeOf2.default)(Routes.prototype), "afterRun", this).call(this, route, args, results, false); | |
| 4060 | 6053 | _commands.default.trace.pop(); |
| 4061 | 6054 | } |
| 4062 | 6055 | }, { |
| 4063 | 6056 | key: "is", |
| @@ -4062,9 +6055,9 @@ | ||
| 4062 | 6055 | }, { |
| 4063 | 6056 | key: "is", |
| 4064 | 6057 | value: function is(route) { |
| 4065 | 6058 | var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; |
| 4066 | - if (!_superPropGet(Routes, "is", this, 3)([route])) { | |
| 6059 | + if (!(0, _get2.default)((0, _getPrototypeOf2.default)(Routes.prototype), "is", this).call(this, route)) { | |
| 4067 | 6060 | return false; |
| 4068 | 6061 | } |
| 4069 | 6062 | var container = this.getComponent(route).getServiceName(); |
| 4070 | 6063 | return _.isEqual(args, this.currentArgs[container]); |
| @@ -4094,28 +6087,12 @@ | ||
| 4094 | 6087 | key: "error", |
| 4095 | 6088 | value: function error(message) { |
| 4096 | 6089 | throw Error('Routes: ' + message); |
| 4097 | 6090 | } |
| 4098 | - }, { | |
| 4099 | - key: "dispatchOnOpen", | |
| 4100 | - value: function dispatchOnOpen(route) { | |
| 4101 | - window.dispatchEvent(new CustomEvent('elementor/routes/open', { | |
| 4102 | - detail: { | |
| 4103 | - route: route | |
| 4104 | - } | |
| 4105 | - })); | |
| 4106 | - } | |
| 4107 | - }, { | |
| 4108 | - key: "dispatchOnClose", | |
| 4109 | - value: function dispatchOnClose(route) { | |
| 4110 | - window.dispatchEvent(new CustomEvent('elementor/routes/close', { | |
| 4111 | - detail: { | |
| 4112 | - route: route | |
| 4113 | - } | |
| 4114 | - })); | |
| 4115 | - } | |
| 4116 | 6091 | }]); |
| 6092 | + return Routes; | |
| 4117 | 6093 | }(_commands.default); |
| 6094 | +exports["default"] = Routes; | |
| 4118 | 6095 | |
| 4119 | 6096 | /***/ }), |
| 4120 | 6097 | |
| 4121 | 6098 | /***/ "../modules/web-cli/assets/js/core/shortcuts.js": |
| @@ -4135,9 +6112,9 @@ | ||
| 4135 | 6112 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 4136 | 6113 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 4137 | 6114 | var _environment = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/environment */ "../modules/web-cli/assets/js/utils/environment.js")); |
| 4138 | 6115 | var _console = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/console */ "../modules/web-cli/assets/js/utils/console.js")); |
| 4139 | -var Shortcuts = exports["default"] = /*#__PURE__*/function () { | |
| 6116 | +var Shortcuts = /*#__PURE__*/function () { | |
| 4140 | 6117 | function Shortcuts($window) { |
| 4141 | 6118 | (0, _classCallCheck2.default)(this, Shortcuts); |
| 4142 | 6119 | this.specialKeys = { |
| 4143 | 6120 | 13: 'enter', |
| @@ -4150,9 +6127,9 @@ | ||
| 4150 | 6127 | this.component = ''; |
| 4151 | 6128 | this.handlers = {}; |
| 4152 | 6129 | this.bindListener($window); |
| 4153 | 6130 | } |
| 4154 | - return (0, _createClass2.default)(Shortcuts, [{ | |
| 6131 | + (0, _createClass2.default)(Shortcuts, [{ | |
| 4155 | 6132 | key: "bindListener", |
| 4156 | 6133 | value: function bindListener($window) { |
| 4157 | 6134 | var _this = this; |
| 4158 | 6135 | $window.on('keydown', function (event) { |
| @@ -4307,9 +6284,11 @@ | ||
| 4307 | 6284 | return noScope; |
| 4308 | 6285 | } |
| 4309 | 6286 | } |
| 4310 | 6287 | }]); |
| 6288 | + return Shortcuts; | |
| 4311 | 6289 | }(); |
| 6290 | +exports["default"] = Shortcuts; | |
| 4312 | 6291 | |
| 4313 | 6292 | /***/ }), |
| 4314 | 6293 | |
| 4315 | 6294 | /***/ "../modules/web-cli/assets/js/core/store.js": |
| @@ -4329,11 +6308,11 @@ | ||
| 4329 | 6308 | var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 4330 | 6309 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 4331 | 6310 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 4332 | 6311 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 4333 | -var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "@reduxjs/toolkit"); | |
| 4334 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 4335 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 6312 | +var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js"); | |
| 6313 | +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | |
| 6314 | +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | |
| 4336 | 6315 | /** |
| 4337 | 6316 | * @typedef {import('@reduxjs/toolkit').Slice} Slice |
| 4338 | 6317 | */ |
| 4339 | 6318 | /** |
| @@ -4344,10 +6323,18 @@ | ||
| 4344 | 6323 | */ |
| 4345 | 6324 | /** |
| 4346 | 6325 | * @typedef {import('@reduxjs/toolkit').ThunkMiddlewareFor} ThunkMiddlewareFor |
| 4347 | 6326 | */ |
| 4348 | -var Store = exports["default"] = /*#__PURE__*/function () { | |
| 6327 | +var Store = /*#__PURE__*/function () { | |
| 4349 | 6328 | /** |
| 6329 | + * @type {Object} | |
| 6330 | + */ | |
| 6331 | + | |
| 6332 | + /** | |
| 6333 | + * @type {EnhancedStore<{}, AnyAction, [ThunkMiddlewareFor<{}>]>} | |
| 6334 | + */ | |
| 6335 | + | |
| 6336 | + /** | |
| 4350 | 6337 | * Initialize the Store. |
| 4351 | 6338 | * |
| 4352 | 6339 | * @return {void} |
| 4353 | 6340 | */ |
| @@ -4352,15 +6339,9 @@ | ||
| 4352 | 6339 | * @return {void} |
| 4353 | 6340 | */ |
| 4354 | 6341 | function Store() { |
| 4355 | 6342 | (0, _classCallCheck2.default)(this, Store); |
| 4356 | - /** | |
| 4357 | - * @type {Object} | |
| 4358 | - */ | |
| 4359 | 6343 | (0, _defineProperty2.default)(this, "slices", {}); |
| 4360 | - /** | |
| 4361 | - * @type {EnhancedStore<{}, AnyAction, [ThunkMiddlewareFor<{}>]>} | |
| 4362 | - */ | |
| 4363 | 6344 | (0, _defineProperty2.default)(this, "reduxStore", void 0); |
| 4364 | 6345 | this.slices = {}; |
| 4365 | 6346 | this.reduxStore = this.createStore(); |
| 4366 | 6347 | } |
| @@ -4369,9 +6350,9 @@ | ||
| 4369 | 6350 | * Create a Redux Store object. |
| 4370 | 6351 | * |
| 4371 | 6352 | * @return {EnhancedStore<{}, AnyAction, [ThunkMiddlewareFor<{}>]>} store |
| 4372 | 6353 | */ |
| 4373 | - return (0, _createClass2.default)(Store, [{ | |
| 6354 | + (0, _createClass2.default)(Store, [{ | |
| 4374 | 6355 | key: "createStore", |
| 4375 | 6356 | value: function createStore() { |
| 4376 | 6357 | return (0, _toolkit.configureStore)({ |
| 4377 | 6358 | // Use an empty function instead of empty object since an empty object |
| @@ -4528,9 +6509,11 @@ | ||
| 4528 | 6509 | var _this$reduxStore3; |
| 4529 | 6510 | return (_this$reduxStore3 = this.reduxStore).subscribe.apply(_this$reduxStore3, arguments); |
| 4530 | 6511 | } |
| 4531 | 6512 | }]); |
| 6513 | + return Store; | |
| 4532 | 6514 | }(); |
| 6515 | +exports["default"] = Store; | |
| 4533 | 6516 | |
| 4534 | 6517 | /***/ }), |
| 4535 | 6518 | |
| 4536 | 6519 | /***/ "../modules/web-cli/assets/js/core/ui-states.js": |
| @@ -4552,9 +6535,9 @@ | ||
| 4552 | 6535 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 4553 | 6536 | /** |
| 4554 | 6537 | * @typedef {import('./states/ui-state-base')} UiStateBase |
| 4555 | 6538 | */ |
| 4556 | -var UiStates = exports["default"] = /*#__PURE__*/function () { | |
| 6539 | +var UiStates = /*#__PURE__*/function () { | |
| 4557 | 6540 | /** |
| 4558 | 6541 | * Initialize the State Manager. |
| 4559 | 6542 | * |
| 4560 | 6543 | * @return {void} |
| @@ -4568,9 +6551,9 @@ | ||
| 4568 | 6551 | * Register a new state. |
| 4569 | 6552 | * |
| 4570 | 6553 | * @param {UiStateBase} instance - State instance. |
| 4571 | 6554 | */ |
| 4572 | - return (0, _createClass2.default)(UiStates, [{ | |
| 6555 | + (0, _createClass2.default)(UiStates, [{ | |
| 4573 | 6556 | key: "register", |
| 4574 | 6557 | value: function register(instance) { |
| 4575 | 6558 | var stateId = instance.getPrefixedId(); |
| 4576 | 6559 | if (this.states[stateId]) { |
| @@ -4693,9 +6676,11 @@ | ||
| 4693 | 6676 | var _this$get; |
| 4694 | 6677 | return (_this$get = this.get(state)) === null || _this$get === void 0 ? void 0 : _this$get.getCurrent(); |
| 4695 | 6678 | } |
| 4696 | 6679 | }]); |
| 6680 | + return UiStates; | |
| 4697 | 6681 | }(); |
| 6682 | +exports["default"] = UiStates; | |
| 4698 | 6683 | |
| 4699 | 6684 | /***/ }), |
| 4700 | 6685 | |
| 4701 | 6686 | /***/ "../modules/web-cli/assets/js/extras/hash-commands.js": |
| @@ -4718,17 +6703,30 @@ | ||
| 4718 | 6703 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 4719 | 6704 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 4720 | 6705 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 4721 | 6706 | var _console = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/console */ "../modules/web-cli/assets/js/utils/console.js")); |
| 4722 | -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; } } }; } | |
| 4723 | -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; } } | |
| 4724 | -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; } | |
| 4725 | -var HashCommands = exports["default"] = /*#__PURE__*/function () { | |
| 6707 | +function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } | |
| 6708 | +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | |
| 6709 | +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | |
| 6710 | +var HashCommands = /*#__PURE__*/function () { | |
| 6711 | + /** | |
| 6712 | + * Cannot be static since it uses callback(s) that are available only after '$e' is initialized. | |
| 6713 | + */ | |
| 6714 | + | |
| 6715 | + /** | |
| 6716 | + * @typedef HashCommand | |
| 6717 | + * @property {string} method method | |
| 6718 | + * @property {string} command command | |
| 6719 | + * @property {Object} args arguments | |
| 6720 | + */ | |
| 6721 | + /** | |
| 6722 | + * List of current loaded hash commands. | |
| 6723 | + * | |
| 6724 | + * @type {Array.<HashCommand>} | |
| 6725 | + */ | |
| 6726 | + | |
| 4726 | 6727 | function HashCommands() { |
| 4727 | 6728 | (0, _classCallCheck2.default)(this, HashCommands); |
| 4728 | - /** | |
| 4729 | - * Cannot be static since it uses callback(s) that are available only after '$e' is initialized. | |
| 4730 | - */ | |
| 4731 | 6729 | (0, _defineProperty2.default)(this, "dispatchersList", { |
| 4732 | 6730 | 'e:run': { |
| 4733 | 6731 | runner: function runner() { |
| 4734 | 6732 | return $e.run; |
| @@ -4753,19 +6751,8 @@ | ||
| 4753 | 6751 | return false; |
| 4754 | 6752 | } |
| 4755 | 6753 | } |
| 4756 | 6754 | }); |
| 4757 | - /** | |
| 4758 | - * @typedef HashCommand | |
| 4759 | - * @property {string} method method | |
| 4760 | - * @property {string} command command | |
| 4761 | - * @property {Object} args arguments | |
| 4762 | - */ | |
| 4763 | - /** | |
| 4764 | - * List of current loaded hash commands. | |
| 4765 | - * | |
| 4766 | - * @type {Array.<HashCommand>} | |
| 4767 | - */ | |
| 4768 | 6755 | (0, _defineProperty2.default)(this, "commands", []); |
| 4769 | 6756 | this.commands = this.get(); |
| 4770 | 6757 | } |
| 4771 | 6758 | |
| @@ -4777,9 +6764,9 @@ | ||
| 4777 | 6764 | * @param {string} hash |
| 4778 | 6765 | * |
| 4779 | 6766 | * @return {Array.<HashCommand>} API requests |
| 4780 | 6767 | */ |
| 4781 | - return (0, _createClass2.default)(HashCommands, [{ | |
| 6768 | + (0, _createClass2.default)(HashCommands, [{ | |
| 4782 | 6769 | key: "get", |
| 4783 | 6770 | value: function get() { |
| 4784 | 6771 | var _this = this; |
| 4785 | 6772 | var hash = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : location.hash; |
| @@ -4821,10 +6808,10 @@ | ||
| 4821 | 6808 | * @param {Array.<HashCommand>} [commands=this.commands] |
| 4822 | 6809 | */ |
| 4823 | 6810 | }, { |
| 4824 | 6811 | key: "run", |
| 4825 | - value: (function () { | |
| 4826 | - var _run = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 6812 | + value: function () { | |
| 6813 | + var _run = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 4827 | 6814 | var commands, |
| 4828 | 6815 | _iterator, |
| 4829 | 6816 | _step, |
| 4830 | 6817 | hashCommand, |
| @@ -4832,84 +6819,84 @@ | ||
| 4832 | 6819 | _iterator2, |
| 4833 | 6820 | _step2, |
| 4834 | 6821 | _hashCommand, |
| 4835 | 6822 | _dispatcher, |
| 4836 | - _args = arguments, | |
| 4837 | - _t, | |
| 4838 | - _t2; | |
| 4839 | - return _regenerator.default.wrap(function (_context) { | |
| 4840 | - while (1) switch (_context.prev = _context.next) { | |
| 4841 | - case 0: | |
| 4842 | - commands = _args.length > 0 && _args[0] !== undefined ? _args[0] : this.commands; | |
| 4843 | - // To allow validate the run first. | |
| 4844 | - _iterator = _createForOfIteratorHelper(commands); | |
| 4845 | - _context.prev = 1; | |
| 4846 | - _iterator.s(); | |
| 4847 | - case 2: | |
| 4848 | - if ((_step = _iterator.n()).done) { | |
| 4849 | - _context.next = 5; | |
| 6823 | + _args = arguments; | |
| 6824 | + return _regenerator.default.wrap(function _callee$(_context) { | |
| 6825 | + while (1) { | |
| 6826 | + switch (_context.prev = _context.next) { | |
| 6827 | + case 0: | |
| 6828 | + commands = _args.length > 0 && _args[0] !== undefined ? _args[0] : this.commands; | |
| 6829 | + // To allow validate the run first. | |
| 6830 | + _iterator = _createForOfIteratorHelper(commands); | |
| 6831 | + _context.prev = 2; | |
| 6832 | + _iterator.s(); | |
| 6833 | + case 4: | |
| 6834 | + if ((_step = _iterator.n()).done) { | |
| 6835 | + _context.next = 13; | |
| 6836 | + break; | |
| 6837 | + } | |
| 6838 | + hashCommand = _step.value; | |
| 6839 | + dispatcher = this.dispatchersList[hashCommand.method]; | |
| 6840 | + if (dispatcher) { | |
| 6841 | + _context.next = 9; | |
| 6842 | + break; | |
| 6843 | + } | |
| 6844 | + return _context.abrupt("return", Promise.reject(new Error("No dispatcher found for the command: `".concat(hashCommand.command, "`.")))); | |
| 6845 | + case 9: | |
| 6846 | + if (dispatcher.isSafe(hashCommand.command)) { | |
| 6847 | + _context.next = 11; | |
| 6848 | + break; | |
| 6849 | + } | |
| 6850 | + return _context.abrupt("return", Promise.reject(new Error("Attempting to run unsafe or non exist command: `".concat(hashCommand.command, "`.")))); | |
| 6851 | + case 11: | |
| 6852 | + _context.next = 4; | |
| 4850 | 6853 | break; |
| 4851 | - } | |
| 4852 | - hashCommand = _step.value; | |
| 4853 | - dispatcher = this.dispatchersList[hashCommand.method]; | |
| 4854 | - if (dispatcher) { | |
| 4855 | - _context.next = 3; | |
| 6854 | + case 13: | |
| 6855 | + _context.next = 18; | |
| 4856 | 6856 | break; |
| 4857 | - } | |
| 4858 | - return _context.abrupt("return", Promise.reject(new Error("No dispatcher found for the command: `".concat(hashCommand.command, "`.")))); | |
| 4859 | - case 3: | |
| 4860 | - if (dispatcher.isSafe(hashCommand.command)) { | |
| 4861 | - _context.next = 4; | |
| 6857 | + case 15: | |
| 6858 | + _context.prev = 15; | |
| 6859 | + _context.t0 = _context["catch"](2); | |
| 6860 | + _iterator.e(_context.t0); | |
| 6861 | + case 18: | |
| 6862 | + _context.prev = 18; | |
| 6863 | + _iterator.f(); | |
| 6864 | + return _context.finish(18); | |
| 6865 | + case 21: | |
| 6866 | + // This logic will run the promises by sequence (will wait for dispatcher to finish, before run again). | |
| 6867 | + _iterator2 = _createForOfIteratorHelper(commands); | |
| 6868 | + _context.prev = 22; | |
| 6869 | + _iterator2.s(); | |
| 6870 | + case 24: | |
| 6871 | + if ((_step2 = _iterator2.n()).done) { | |
| 6872 | + _context.next = 31; | |
| 6873 | + break; | |
| 6874 | + } | |
| 6875 | + _hashCommand = _step2.value; | |
| 6876 | + _dispatcher = this.dispatchersList[_hashCommand.method]; | |
| 6877 | + _context.next = 29; | |
| 6878 | + return _dispatcher.runner()(_hashCommand.command, _dispatcher.isSafeWithArgs(_hashCommand.command) ? _hashCommand.args : undefined); | |
| 6879 | + case 29: | |
| 6880 | + _context.next = 24; | |
| 4862 | 6881 | break; |
| 4863 | - } | |
| 4864 | - return _context.abrupt("return", Promise.reject(new Error("Attempting to run unsafe or non exist command: `".concat(hashCommand.command, "`.")))); | |
| 4865 | - case 4: | |
| 4866 | - _context.next = 2; | |
| 4867 | - break; | |
| 4868 | - case 5: | |
| 4869 | - _context.next = 7; | |
| 4870 | - break; | |
| 4871 | - case 6: | |
| 4872 | - _context.prev = 6; | |
| 4873 | - _t = _context["catch"](1); | |
| 4874 | - _iterator.e(_t); | |
| 4875 | - case 7: | |
| 4876 | - _context.prev = 7; | |
| 4877 | - _iterator.f(); | |
| 4878 | - return _context.finish(7); | |
| 4879 | - case 8: | |
| 4880 | - // This logic will run the promises by sequence (will wait for dispatcher to finish, before run again). | |
| 4881 | - _iterator2 = _createForOfIteratorHelper(commands); | |
| 4882 | - _context.prev = 9; | |
| 4883 | - _iterator2.s(); | |
| 4884 | - case 10: | |
| 4885 | - if ((_step2 = _iterator2.n()).done) { | |
| 4886 | - _context.next = 12; | |
| 6882 | + case 31: | |
| 6883 | + _context.next = 36; | |
| 4887 | 6884 | break; |
| 4888 | - } | |
| 4889 | - _hashCommand = _step2.value; | |
| 4890 | - _dispatcher = this.dispatchersList[_hashCommand.method]; | |
| 4891 | - _context.next = 11; | |
| 4892 | - return _dispatcher.runner()(_hashCommand.command, _dispatcher.isSafeWithArgs(_hashCommand.command) ? _hashCommand.args : undefined); | |
| 4893 | - case 11: | |
| 4894 | - _context.next = 10; | |
| 4895 | - break; | |
| 4896 | - case 12: | |
| 4897 | - _context.next = 14; | |
| 4898 | - break; | |
| 4899 | - case 13: | |
| 4900 | - _context.prev = 13; | |
| 4901 | - _t2 = _context["catch"](9); | |
| 4902 | - _iterator2.e(_t2); | |
| 4903 | - case 14: | |
| 4904 | - _context.prev = 14; | |
| 4905 | - _iterator2.f(); | |
| 4906 | - return _context.finish(14); | |
| 4907 | - case 15: | |
| 4908 | - case "end": | |
| 4909 | - return _context.stop(); | |
| 6885 | + case 33: | |
| 6886 | + _context.prev = 33; | |
| 6887 | + _context.t1 = _context["catch"](22); | |
| 6888 | + _iterator2.e(_context.t1); | |
| 6889 | + case 36: | |
| 6890 | + _context.prev = 36; | |
| 6891 | + _iterator2.f(); | |
| 6892 | + return _context.finish(36); | |
| 6893 | + case 39: | |
| 6894 | + case "end": | |
| 6895 | + return _context.stop(); | |
| 6896 | + } | |
| 4910 | 6897 | } |
| 4911 | - }, _callee, this, [[1, 6, 7, 8], [9, 13, 14, 15]]); | |
| 6898 | + }, _callee, this, [[2, 15, 18, 21], [22, 33, 36, 39]]); | |
| 4912 | 6899 | })); |
| 4913 | 6900 | function run() { |
| 4914 | 6901 | return _run.apply(this, arguments); |
| 4915 | 6902 | } |
| @@ -4919,9 +6906,8 @@ | ||
| 4919 | 6906 | * Function runOnce(). |
| 4920 | 6907 | * |
| 4921 | 6908 | * Do same as `run` but clear `this.commands` before leaving. |
| 4922 | 6909 | */ |
| 4923 | - ) | |
| 4924 | 6910 | }, { |
| 4925 | 6911 | key: "runOnce", |
| 4926 | 6912 | value: function runOnce() { |
| 4927 | 6913 | var _this2 = this; |
| @@ -4946,9 +6932,11 @@ | ||
| 4946 | 6932 | return {}; |
| 4947 | 6933 | } |
| 4948 | 6934 | } |
| 4949 | 6935 | }]); |
| 6936 | + return HashCommands; | |
| 4950 | 6937 | }(); |
| 6938 | +exports["default"] = HashCommands; | |
| 4951 | 6939 | |
| 4952 | 6940 | /***/ }), |
| 4953 | 6941 | |
| 4954 | 6942 | /***/ "../modules/web-cli/assets/js/modules/command-base.js": |
| @@ -4966,25 +6954,26 @@ | ||
| 4966 | 6954 | })); |
| 4967 | 6955 | exports["default"] = void 0; |
| 4968 | 6956 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 4969 | 6957 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 6958 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 4970 | 6959 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 4971 | 6960 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 4972 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 4973 | 6961 | var _commandInfra = _interopRequireDefault(__webpack_require__(/*! ./command-infra */ "../modules/web-cli/assets/js/modules/command-infra.js")); |
| 4974 | 6962 | var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); |
| 4975 | -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)); } | |
| 4976 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 6963 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 6964 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 4977 | 6965 | /** |
| 4978 | 6966 | * @name $e.modules.CommandBase |
| 4979 | 6967 | */ |
| 4980 | -var CommandBase = exports["default"] = /*#__PURE__*/function (_CommandInfra) { | |
| 6968 | +var CommandBase = /*#__PURE__*/function (_CommandInfra) { | |
| 6969 | + (0, _inherits2.default)(CommandBase, _CommandInfra); | |
| 6970 | + var _super = _createSuper(CommandBase); | |
| 4981 | 6971 | function CommandBase() { |
| 4982 | 6972 | (0, _classCallCheck2.default)(this, CommandBase); |
| 4983 | - return _callSuper(this, CommandBase, arguments); | |
| 6973 | + return _super.apply(this, arguments); | |
| 4984 | 6974 | } |
| 4985 | - (0, _inherits2.default)(CommandBase, _CommandInfra); | |
| 4986 | - return (0, _createClass2.default)(CommandBase, [{ | |
| 6975 | + (0, _createClass2.default)(CommandBase, [{ | |
| 4987 | 6976 | key: "onBeforeRun", |
| 4988 | 6977 | value: function onBeforeRun() { |
| 4989 | 6978 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 4990 | 6979 | $e.hooks.runUIBefore(this.command, args); |
| @@ -5006,9 +6995,9 @@ | ||
| 5006 | 6995 | key: "onAfterApply", |
| 5007 | 6996 | value: function onAfterApply() { |
| 5008 | 6997 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 5009 | 6998 | var result = arguments.length > 1 ? arguments[1] : undefined; |
| 5010 | - return $e.hooks.runDataAfter(this.command, args, result); | |
| 6999 | + $e.hooks.runDataAfter(this.command, args, result); | |
| 5011 | 7000 | } |
| 5012 | 7001 | }, { |
| 5013 | 7002 | key: "onCatchApply", |
| 5014 | 7003 | value: function onCatchApply(e) { |
| @@ -5034,9 +7023,8 @@ | ||
| 5034 | 7023 | * |
| 5035 | 7024 | * Validate `arg.container` & `arg.containers`. |
| 5036 | 7025 | * |
| 5037 | 7026 | * @param {{}} args |
| 5038 | - * @deprecated since 3.7.0, extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase` instead. | |
| 5039 | 7027 | * |
| 5040 | 7028 | * @throws {Error} |
| 5041 | 7029 | */ |
| 5042 | 7030 | }, { |
| @@ -5043,9 +7031,9 @@ | ||
| 5043 | 7031 | key: "requireContainer", |
| 5044 | 7032 | value: function requireContainer() { |
| 5045 | 7033 | var _this = this; |
| 5046 | 7034 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args; |
| 5047 | - _deprecation.default.deprecated('requireContainer()', '3.7.0', 'Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`'); | |
| 7035 | + _deprecation.default.deprecated('requireContainer', '3.7.0', 'Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`'); | |
| 5048 | 7036 | if (!args.container && !args.containers) { |
| 5049 | 7037 | throw Error('container or containers are required.'); |
| 5050 | 7038 | } |
| 5051 | 7039 | if (args.container && args.containers) { |
| @@ -5063,9 +7051,11 @@ | ||
| 5063 | 7051 | value: function getInstanceType() { |
| 5064 | 7052 | return 'CommandBase'; |
| 5065 | 7053 | } |
| 5066 | 7054 | }]); |
| 7055 | + return CommandBase; | |
| 5067 | 7056 | }(_commandInfra.default); |
| 7057 | +exports["default"] = CommandBase; | |
| 5068 | 7058 | |
| 5069 | 7059 | /***/ }), |
| 5070 | 7060 | |
| 5071 | 7061 | /***/ "../modules/web-cli/assets/js/modules/command-callback-base.js": |
| @@ -5083,24 +7073,25 @@ | ||
| 5083 | 7073 | })); |
| 5084 | 7074 | exports["default"] = void 0; |
| 5085 | 7075 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 5086 | 7076 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 7077 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5087 | 7078 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 5088 | 7079 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 5089 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5090 | 7080 | var _commandBase = _interopRequireDefault(__webpack_require__(/*! ./command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); |
| 5091 | -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)); } | |
| 5092 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 7081 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 7082 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 5093 | 7083 | /** |
| 5094 | 7084 | * To support pure callbacks in the API(commands.js), to ensure they have registered with the proper context. |
| 5095 | 7085 | */ |
| 5096 | -var CommandCallbackBase = exports["default"] = /*#__PURE__*/function (_CommandBase) { | |
| 7086 | +var CommandCallbackBase = /*#__PURE__*/function (_CommandBase) { | |
| 7087 | + (0, _inherits2.default)(CommandCallbackBase, _CommandBase); | |
| 7088 | + var _super = _createSuper(CommandCallbackBase); | |
| 5097 | 7089 | function CommandCallbackBase() { |
| 5098 | 7090 | (0, _classCallCheck2.default)(this, CommandCallbackBase); |
| 5099 | - return _callSuper(this, CommandCallbackBase, arguments); | |
| 7091 | + return _super.apply(this, arguments); | |
| 5100 | 7092 | } |
| 5101 | - (0, _inherits2.default)(CommandCallbackBase, _CommandBase); | |
| 5102 | - return (0, _createClass2.default)(CommandCallbackBase, [{ | |
| 7093 | + (0, _createClass2.default)(CommandCallbackBase, [{ | |
| 5103 | 7094 | key: "apply", |
| 5104 | 7095 | value: function apply() { |
| 5105 | 7096 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 5106 | 7097 | return this.constructor.getCallback()(args); |
| @@ -5123,9 +7114,11 @@ | ||
| 5123 | 7114 | value: function getCallback() { |
| 5124 | 7115 | return this.registerConfig.callback; |
| 5125 | 7116 | } |
| 5126 | 7117 | }]); |
| 7118 | + return CommandCallbackBase; | |
| 5127 | 7119 | }(_commandBase.default); |
| 7120 | +exports["default"] = CommandCallbackBase; | |
| 5128 | 7121 | |
| 5129 | 7122 | /***/ }), |
| 5130 | 7123 | |
| 5131 | 7124 | /***/ "../modules/web-cli/assets/js/modules/command-data.js": |
| @@ -5144,17 +7137,19 @@ | ||
| 5144 | 7137 | })); |
| 5145 | 7138 | exports["default"] = void 0; |
| 5146 | 7139 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 5147 | 7140 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 7141 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js")); | |
| 7142 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5148 | 7143 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 5149 | 7144 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 5150 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5151 | 7145 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 5152 | 7146 | var _commandBase = _interopRequireDefault(__webpack_require__(/*! ./command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); |
| 5153 | 7147 | var errors = _interopRequireWildcard(__webpack_require__(/*! ../core/data/errors/ */ "../modules/web-cli/assets/js/core/data/errors/index.js")); |
| 5154 | -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } | |
| 5155 | -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)); } | |
| 5156 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 7148 | +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | |
| 7149 | +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | |
| 7150 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 7151 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 5157 | 7152 | /** |
| 5158 | 7153 | * @name $e.modules.CommandData |
| 5159 | 7154 | */ |
| 5160 | 7155 | /** |
| @@ -5165,27 +7160,19 @@ | ||
| 5165 | 7160 | */ |
| 5166 | 7161 | /** |
| 5167 | 7162 | * @typedef {import('../core/data/errors/base-error')} BaseError |
| 5168 | 7163 | */ |
| 5169 | -var CommandData = exports["default"] = /*#__PURE__*/function (_CommandBase) { | |
| 7164 | +var CommandData = /*#__PURE__*/function (_CommandBase) { | |
| 7165 | + (0, _inherits2.default)(CommandData, _CommandBase); | |
| 7166 | + var _super = _createSuper(CommandData); | |
| 5170 | 7167 | function CommandData(args) { |
| 5171 | 7168 | var _this$args$options; |
| 5172 | 7169 | var _this; |
| 5173 | 7170 | var commandsAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $e.data; |
| 5174 | 7171 | (0, _classCallCheck2.default)(this, CommandData); |
| 5175 | - _this = _callSuper(this, CommandData, [args, commandsAPI]); | |
| 5176 | - /** | |
| 5177 | - * Data returned from remote. | |
| 5178 | - * | |
| 5179 | - * @type {*} | |
| 5180 | - */ | |
| 5181 | - (0, _defineProperty2.default)(_this, "data", void 0); | |
| 5182 | - /** | |
| 5183 | - * Fetch type. | |
| 5184 | - * | |
| 5185 | - * @type {DataTypes} | |
| 5186 | - */ | |
| 5187 | - (0, _defineProperty2.default)(_this, "type", void 0); | |
| 7172 | + _this = _super.call(this, args, commandsAPI); | |
| 7173 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "data", void 0); | |
| 7174 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "type", void 0); | |
| 5188 | 7175 | if ((_this$args$options = _this.args.options) !== null && _this$args$options !== void 0 && _this$args$options.type) { |
| 5189 | 7176 | _this.type = _this.args.options.type; |
| 5190 | 7177 | } |
| 5191 | 7178 | return _this; |
| @@ -5195,10 +7182,9 @@ | ||
| 5195 | 7182 | * Function getEndpointFormat(). |
| 5196 | 7183 | * |
| 5197 | 7184 | * @return {null|string} endpoint format |
| 5198 | 7185 | */ |
| 5199 | - (0, _inherits2.default)(CommandData, _CommandBase); | |
| 5200 | - return (0, _createClass2.default)(CommandData, [{ | |
| 7186 | + (0, _createClass2.default)(CommandData, [{ | |
| 5201 | 7187 | key: "getApplyMethods", |
| 5202 | 7188 | value: |
| 5203 | 7189 | /** |
| 5204 | 7190 | * @param {DataTypes} type |
| @@ -5411,11 +7397,11 @@ | ||
| 5411 | 7397 | } |
| 5412 | 7398 | }, { |
| 5413 | 7399 | key: "onCatchApply", |
| 5414 | 7400 | value: function onCatchApply(e) { |
| 5415 | - var _e; | |
| 7401 | + var _e, _e$data; | |
| 5416 | 7402 | // TODO: If the errors that returns from the server is consistent remove the '?' from 'e' |
| 5417 | - var httpErrorCode = ((_e = e) === null || _e === void 0 || (_e = _e.data) === null || _e === void 0 ? void 0 : _e.status) || 501; | |
| 7403 | + 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; | |
| 5418 | 7404 | var dataError = Object.values(errors).find(function (error) { |
| 5419 | 7405 | return error.getHTTPErrorCode() === httpErrorCode; |
| 5420 | 7406 | }); |
| 5421 | 7407 | if (!dataError) { |
| @@ -5426,9 +7412,22 @@ | ||
| 5426 | 7412 | this.applyAfterCatch(e); |
| 5427 | 7413 | } |
| 5428 | 7414 | }], [{ |
| 5429 | 7415 | key: "getInstanceType", |
| 5430 | - value: function getInstanceType() { | |
| 7416 | + value: | |
| 7417 | + /** | |
| 7418 | + * Data returned from remote. | |
| 7419 | + * | |
| 7420 | + * @type {*} | |
| 7421 | + */ | |
| 7422 | + | |
| 7423 | + /** | |
| 7424 | + * Fetch type. | |
| 7425 | + * | |
| 7426 | + * @type {DataTypes} | |
| 7427 | + */ | |
| 7428 | + | |
| 7429 | + function getInstanceType() { | |
| 5431 | 7430 | return 'CommandData'; |
| 5432 | 7431 | } |
| 5433 | 7432 | }, { |
| 5434 | 7433 | key: "getEndpointFormat", |
| @@ -5435,9 +7434,11 @@ | ||
| 5435 | 7434 | value: function getEndpointFormat() { |
| 5436 | 7435 | return null; |
| 5437 | 7436 | } |
| 5438 | 7437 | }]); |
| 7438 | + return CommandData; | |
| 5439 | 7439 | }(_commandBase.default); |
| 7440 | +exports["default"] = CommandData; | |
| 5440 | 7441 | |
| 5441 | 7442 | /***/ }), |
| 5442 | 7443 | |
| 5443 | 7444 | /***/ "../modules/web-cli/assets/js/modules/command-infra.js": |
| @@ -5455,20 +7456,22 @@ | ||
| 5455 | 7456 | })); |
| 5456 | 7457 | exports["default"] = void 0; |
| 5457 | 7458 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 5458 | 7459 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 7460 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5459 | 7461 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 5460 | 7462 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 5461 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5462 | 7463 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 5463 | 7464 | var _argsObject = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js")); |
| 5464 | 7465 | var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); |
| 5465 | -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)); } | |
| 5466 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 7466 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 7467 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 5467 | 7468 | /** |
| 5468 | 7469 | * @typedef {import('../modules/component-base')} ComponentBase |
| 5469 | 7470 | */ |
| 5470 | -var CommandInfra = exports["default"] = /*#__PURE__*/function (_ArgsObject) { | |
| 7471 | +var CommandInfra = /*#__PURE__*/function (_ArgsObject) { | |
| 7472 | + (0, _inherits2.default)(CommandInfra, _ArgsObject); | |
| 7473 | + var _super = _createSuper(CommandInfra); | |
| 5471 | 7474 | /** |
| 5472 | 7475 | * Function constructor(). |
| 5473 | 7476 | * |
| 5474 | 7477 | * Create Commands Base. |
| @@ -5478,9 +7481,9 @@ | ||
| 5478 | 7481 | function CommandInfra() { |
| 5479 | 7482 | var _this; |
| 5480 | 7483 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 5481 | 7484 | (0, _classCallCheck2.default)(this, CommandInfra); |
| 5482 | - _this = _callSuper(this, CommandInfra, [args]); | |
| 7485 | + _this = _super.call(this, args); | |
| 5483 | 7486 | if (!_this.constructor.registerConfig) { |
| 5484 | 7487 | throw RangeError('Doing it wrong: Each command type should have `registerConfig`.'); |
| 5485 | 7488 | } |
| 5486 | 7489 | |
| @@ -5507,15 +7510,12 @@ | ||
| 5507 | 7510 | * Initialize command, called after construction. |
| 5508 | 7511 | * |
| 5509 | 7512 | * @param {{}} args |
| 5510 | 7513 | */ |
| 5511 | - (0, _inherits2.default)(CommandInfra, _ArgsObject); | |
| 5512 | - return (0, _createClass2.default)(CommandInfra, [{ | |
| 7514 | + (0, _createClass2.default)(CommandInfra, [{ | |
| 5513 | 7515 | key: "currentCommand", |
| 5514 | 7516 | get: |
| 5515 | - /** | |
| 5516 | - * @deprecated since 3.7.0, use `this.command` instead. | |
| 5517 | - */ | |
| 7517 | + // TODO - Remove backwards compatibility. | |
| 5518 | 7518 | function get() { |
| 5519 | 7519 | _deprecation.default.deprecated('this.currentCommand', '3.7.0', 'this.command'); |
| 5520 | 7520 | return this.command; |
| 5521 | 7521 | } |
| @@ -5636,9 +7636,14 @@ | ||
| 5636 | 7636 | key: "onCatchApply", |
| 5637 | 7637 | value: function onCatchApply(e) {} // eslint-disable-line no-unused-vars |
| 5638 | 7638 | }], [{ |
| 5639 | 7639 | key: "getInstanceType", |
| 5640 | - value: function getInstanceType() { | |
| 7640 | + value: | |
| 7641 | + /** | |
| 7642 | + * @type {Object} | |
| 7643 | + */ | |
| 7644 | + | |
| 7645 | + function getInstanceType() { | |
| 5641 | 7646 | return 'CommandInfra'; |
| 5642 | 7647 | } |
| 5643 | 7648 | |
| 5644 | 7649 | /** |
| @@ -5674,12 +7679,11 @@ | ||
| 5674 | 7679 | value: function setRegisterConfig(config) { |
| 5675 | 7680 | this.registerConfig = Object.freeze(config); |
| 5676 | 7681 | } |
| 5677 | 7682 | }]); |
| 7683 | + return CommandInfra; | |
| 5678 | 7684 | }(_argsObject.default); |
| 5679 | -/** | |
| 5680 | - * @type {Object} | |
| 5681 | - */ | |
| 7685 | +exports["default"] = CommandInfra; | |
| 5682 | 7686 | (0, _defineProperty2.default)(CommandInfra, "registerConfig", null); |
| 5683 | 7687 | |
| 5684 | 7688 | /***/ }), |
| 5685 | 7689 | |
| @@ -5698,31 +7702,34 @@ | ||
| 5698 | 7702 | })); |
| 5699 | 7703 | exports["default"] = void 0; |
| 5700 | 7704 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 5701 | 7705 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 7706 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5702 | 7707 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 5703 | 7708 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 5704 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5705 | 7709 | var _commandBase = _interopRequireDefault(__webpack_require__(/*! ./command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); |
| 5706 | -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)); } | |
| 5707 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 7710 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 7711 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 5708 | 7712 | /** |
| 5709 | 7713 | * @name $e.modules.CommandInternalBase |
| 5710 | 7714 | */ |
| 5711 | -var CommandInternalBase = exports["default"] = /*#__PURE__*/function (_CommandBase) { | |
| 7715 | +var CommandInternalBase = /*#__PURE__*/function (_CommandBase) { | |
| 7716 | + (0, _inherits2.default)(CommandInternalBase, _CommandBase); | |
| 7717 | + var _super = _createSuper(CommandInternalBase); | |
| 5712 | 7718 | function CommandInternalBase(args) { |
| 5713 | 7719 | var commandsAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $e.commandsInternal; |
| 5714 | 7720 | (0, _classCallCheck2.default)(this, CommandInternalBase); |
| 5715 | - return _callSuper(this, CommandInternalBase, [args, commandsAPI]); | |
| 7721 | + return _super.call(this, args, commandsAPI); | |
| 5716 | 7722 | } |
| 5717 | - (0, _inherits2.default)(CommandInternalBase, _CommandBase); | |
| 5718 | - return (0, _createClass2.default)(CommandInternalBase, null, [{ | |
| 7723 | + (0, _createClass2.default)(CommandInternalBase, null, [{ | |
| 5719 | 7724 | key: "getInstanceType", |
| 5720 | 7725 | value: function getInstanceType() { |
| 5721 | 7726 | return 'CommandInternalBase'; |
| 5722 | 7727 | } |
| 5723 | 7728 | }]); |
| 7729 | + return CommandInternalBase; | |
| 5724 | 7730 | }(_commandBase.default); |
| 7731 | +exports["default"] = CommandInternalBase; | |
| 5725 | 7732 | |
| 5726 | 7733 | /***/ }), |
| 5727 | 7734 | |
| 5728 | 7735 | /***/ "../modules/web-cli/assets/js/modules/commands/close.js": |
| @@ -5740,28 +7747,32 @@ | ||
| 5740 | 7747 | })); |
| 5741 | 7748 | exports["default"] = exports.Close = void 0; |
| 5742 | 7749 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 5743 | 7750 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 7751 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5744 | 7752 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 5745 | 7753 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 5746 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5747 | 7754 | var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); |
| 5748 | -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)); } | |
| 5749 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 5750 | -var Close = exports.Close = /*#__PURE__*/function (_CommandBase) { | |
| 7755 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 7756 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 7757 | +var Close = /*#__PURE__*/function (_CommandBase) { | |
| 7758 | + (0, _inherits2.default)(Close, _CommandBase); | |
| 7759 | + var _super = _createSuper(Close); | |
| 5751 | 7760 | function Close() { |
| 5752 | 7761 | (0, _classCallCheck2.default)(this, Close); |
| 5753 | - return _callSuper(this, Close, arguments); | |
| 7762 | + return _super.apply(this, arguments); | |
| 5754 | 7763 | } |
| 5755 | - (0, _inherits2.default)(Close, _CommandBase); | |
| 5756 | - return (0, _createClass2.default)(Close, [{ | |
| 7764 | + (0, _createClass2.default)(Close, [{ | |
| 5757 | 7765 | key: "apply", |
| 5758 | 7766 | value: function apply() { |
| 5759 | 7767 | this.component.close(); |
| 5760 | 7768 | } |
| 5761 | 7769 | }]); |
| 7770 | + return Close; | |
| 5762 | 7771 | }(_commandBase.default); |
| 5763 | -var _default = exports["default"] = Close; | |
| 7772 | +exports.Close = Close; | |
| 7773 | +var _default = Close; | |
| 7774 | +exports["default"] = _default; | |
| 5764 | 7775 | |
| 5765 | 7776 | /***/ }), |
| 5766 | 7777 | |
| 5767 | 7778 | /***/ "../modules/web-cli/assets/js/modules/commands/index.js": |
| @@ -5815,28 +7826,32 @@ | ||
| 5815 | 7826 | })); |
| 5816 | 7827 | exports["default"] = exports.Open = void 0; |
| 5817 | 7828 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 5818 | 7829 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 7830 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5819 | 7831 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 5820 | 7832 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 5821 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5822 | 7833 | var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); |
| 5823 | -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)); } | |
| 5824 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 5825 | -var Open = exports.Open = /*#__PURE__*/function (_CommandBase) { | |
| 7834 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 7835 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 7836 | +var Open = /*#__PURE__*/function (_CommandBase) { | |
| 7837 | + (0, _inherits2.default)(Open, _CommandBase); | |
| 7838 | + var _super = _createSuper(Open); | |
| 5826 | 7839 | function Open() { |
| 5827 | 7840 | (0, _classCallCheck2.default)(this, Open); |
| 5828 | - return _callSuper(this, Open, arguments); | |
| 7841 | + return _super.apply(this, arguments); | |
| 5829 | 7842 | } |
| 5830 | - (0, _inherits2.default)(Open, _CommandBase); | |
| 5831 | - return (0, _createClass2.default)(Open, [{ | |
| 7843 | + (0, _createClass2.default)(Open, [{ | |
| 5832 | 7844 | key: "apply", |
| 5833 | 7845 | value: function apply() { |
| 5834 | 7846 | $e.route(this.component.getNamespace()); |
| 5835 | 7847 | } |
| 5836 | 7848 | }]); |
| 7849 | + return Open; | |
| 5837 | 7850 | }(_commandBase.default); |
| 5838 | -var _default = exports["default"] = Open; | |
| 7851 | +exports.Open = Open; | |
| 7852 | +var _default = Open; | |
| 7853 | +exports["default"] = _default; | |
| 5839 | 7854 | |
| 5840 | 7855 | /***/ }), |
| 5841 | 7856 | |
| 5842 | 7857 | /***/ "../modules/web-cli/assets/js/modules/commands/toggle.js": |
| @@ -5854,21 +7869,22 @@ | ||
| 5854 | 7869 | })); |
| 5855 | 7870 | exports["default"] = exports.Toggle = void 0; |
| 5856 | 7871 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 5857 | 7872 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 7873 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5858 | 7874 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 5859 | 7875 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 5860 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5861 | 7876 | var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); |
| 5862 | -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)); } | |
| 5863 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 5864 | -var Toggle = exports.Toggle = /*#__PURE__*/function (_CommandBase) { | |
| 7877 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 7878 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 7879 | +var Toggle = /*#__PURE__*/function (_CommandBase) { | |
| 7880 | + (0, _inherits2.default)(Toggle, _CommandBase); | |
| 7881 | + var _super = _createSuper(Toggle); | |
| 5865 | 7882 | function Toggle() { |
| 5866 | 7883 | (0, _classCallCheck2.default)(this, Toggle); |
| 5867 | - return _callSuper(this, Toggle, arguments); | |
| 7884 | + return _super.apply(this, arguments); | |
| 5868 | 7885 | } |
| 5869 | - (0, _inherits2.default)(Toggle, _CommandBase); | |
| 5870 | - return (0, _createClass2.default)(Toggle, [{ | |
| 7886 | + (0, _createClass2.default)(Toggle, [{ | |
| 5871 | 7887 | key: "apply", |
| 5872 | 7888 | value: function apply() { |
| 5873 | 7889 | if (this.component.isOpen) { |
| 5874 | 7890 | this.component.close(); |
| @@ -5876,10 +7892,13 @@ | ||
| 5876 | 7892 | $e.route(this.component.getNamespace()); |
| 5877 | 7893 | } |
| 5878 | 7894 | } |
| 5879 | 7895 | }]); |
| 7896 | + return Toggle; | |
| 5880 | 7897 | }(_commandBase.default); |
| 5881 | -var _default = exports["default"] = Toggle; | |
| 7898 | +exports.Toggle = Toggle; | |
| 7899 | +var _default = Toggle; | |
| 7900 | +exports["default"] = _default; | |
| 5882 | 7901 | |
| 5883 | 7902 | /***/ }), |
| 5884 | 7903 | |
| 5885 | 7904 | /***/ "../modules/web-cli/assets/js/modules/component-base.js": |
| @@ -5899,32 +7918,33 @@ | ||
| 5899 | 7918 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 5900 | 7919 | var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 5901 | 7920 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 5902 | 7921 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 7922 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5903 | 7923 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 5904 | 7924 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 5905 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 5906 | 7925 | var _commandCallbackBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-callback-base */ "../modules/web-cli/assets/js/modules/command-callback-base.js")); |
| 5907 | -var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "@reduxjs/toolkit"); | |
| 7926 | +var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js"); | |
| 5908 | 7927 | var _module = _interopRequireDefault(__webpack_require__(/*! elementor/assets/dev/js/modules/imports/module.js */ "../assets/dev/js/modules/imports/module.js")); |
| 5909 | 7928 | var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js")); |
| 5910 | 7929 | var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); |
| 5911 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 5912 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 5913 | -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)); } | |
| 5914 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 7930 | +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | |
| 7931 | +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | |
| 7932 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 7933 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 5915 | 7934 | /** |
| 5916 | 7935 | * @typedef {import('./command-infra')} CommandInfra |
| 5917 | 7936 | * @typedef {import('./hook-base')} HookBase |
| 5918 | 7937 | * @typedef {import('../core/states/ui-state-base')} UiStateBase |
| 5919 | 7938 | */ |
| 5920 | -var ComponentBase = exports["default"] = /*#__PURE__*/function (_Module) { | |
| 7939 | +var ComponentBase = /*#__PURE__*/function (_Module) { | |
| 7940 | + (0, _inherits2.default)(ComponentBase, _Module); | |
| 7941 | + var _super = _createSuper(ComponentBase); | |
| 5921 | 7942 | function ComponentBase() { |
| 5922 | 7943 | (0, _classCallCheck2.default)(this, ComponentBase); |
| 5923 | - return _callSuper(this, ComponentBase, arguments); | |
| 7944 | + return _super.apply(this, arguments); | |
| 5924 | 7945 | } |
| 5925 | - (0, _inherits2.default)(ComponentBase, _Module); | |
| 5926 | - return (0, _createClass2.default)(ComponentBase, [{ | |
| 7946 | + (0, _createClass2.default)(ComponentBase, [{ | |
| 5927 | 7947 | key: "__construct", |
| 5928 | 7948 | value: function __construct() { |
| 5929 | 7949 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 5930 | 7950 | if (args.manager) { |
| @@ -5980,11 +8000,11 @@ | ||
| 5980 | 8000 | Object.values(this.getUiStates()).forEach(function (instance) { |
| 5981 | 8001 | return _this.registerUiState(instance); |
| 5982 | 8002 | }); |
| 5983 | 8003 | Object.entries(this.getStates()).forEach(function (_ref9) { |
| 5984 | - var _ref0 = (0, _slicedToArray2.default)(_ref9, 2), | |
| 5985 | - id = _ref0[0], | |
| 5986 | - state = _ref0[1]; | |
| 8004 | + var _ref10 = (0, _slicedToArray2.default)(_ref9, 2), | |
| 8005 | + id = _ref10[0], | |
| 8006 | + state = _ref10[1]; | |
| 5987 | 8007 | return _this.registerState(id, state); |
| 5988 | 8008 | }); |
| 5989 | 8009 | } |
| 5990 | 8010 | |
| @@ -5996,12 +8016,8 @@ | ||
| 5996 | 8016 | key: "getNamespace", |
| 5997 | 8017 | value: function getNamespace() { |
| 5998 | 8018 | (0, _forceMethodImplementation.default)(); |
| 5999 | 8019 | } |
| 6000 | - | |
| 6001 | - /** | |
| 6002 | - * @deprecated since 3.7.0, use `getServiceName()` instead. | |
| 6003 | - */ | |
| 6004 | 8020 | }, { |
| 6005 | 8021 | key: "getRootContainer", |
| 6006 | 8022 | value: function getRootContainer() { |
| 6007 | 8023 | _deprecation.default.deprecated('getRootContainer()', '3.7.0', 'getServiceName()'); |
| @@ -6175,13 +8191,14 @@ | ||
| 6175 | 8191 | registerConfig.callback = context; |
| 6176 | 8192 | |
| 6177 | 8193 | // Unique class. |
| 6178 | 8194 | context = /*#__PURE__*/function (_CommandCallbackBase) { |
| 8195 | + (0, _inherits2.default)(context, _CommandCallbackBase); | |
| 8196 | + var _super2 = _createSuper(context); | |
| 6179 | 8197 | function context() { |
| 6180 | 8198 | (0, _classCallCheck2.default)(this, context); |
| 6181 | - return _callSuper(this, context, arguments); | |
| 8199 | + return _super2.apply(this, arguments); | |
| 6182 | 8200 | } |
| 6183 | - (0, _inherits2.default)(context, _CommandCallbackBase); | |
| 6184 | 8201 | return (0, _createClass2.default)(context); |
| 6185 | 8202 | }(_commandCallbackBase.default); |
| 6186 | 8203 | } |
| 6187 | 8204 | context.setRegisterConfig(registerConfig); |
| @@ -6365,8 +8382,9 @@ | ||
| 6365 | 8382 | }, { |
| 6366 | 8383 | key: "activateTab", |
| 6367 | 8384 | value: function activateTab(tab, args) { |
| 6368 | 8385 | var _this4 = this; |
| 8386 | + this.currentTab = tab; | |
| 6369 | 8387 | this.renderTab(tab, args); |
| 6370 | 8388 | jQuery(this.getTabsWrapperSelector() + ' .elementor-component-tab').off('click').on('click', function (event) { |
| 6371 | 8389 | $e.route(_this4.getTabRoute(event.currentTarget.dataset.tab), args); |
| 6372 | 8390 | }).removeClass('elementor-active').filter('[data-tab="' + tab + '"]').addClass('elementor-active'); |
| @@ -6406,12 +8424,12 @@ | ||
| 6406 | 8424 | var _this5 = this; |
| 6407 | 8425 | var commands = {}; |
| 6408 | 8426 | |
| 6409 | 8427 | // Convert `Commands` to `ComponentBase` workable format. |
| 6410 | - Object.entries(commandsFromImport).forEach(function (_ref1) { | |
| 6411 | - var _ref10 = (0, _slicedToArray2.default)(_ref1, 2), | |
| 6412 | - className = _ref10[0], | |
| 6413 | - Class = _ref10[1]; | |
| 8428 | + Object.entries(commandsFromImport).forEach(function (_ref11) { | |
| 8429 | + var _ref12 = (0, _slicedToArray2.default)(_ref11, 2), | |
| 8430 | + className = _ref12[0], | |
| 8431 | + Class = _ref12[1]; | |
| 6414 | 8432 | var command = _this5.normalizeCommandName(className); |
| 6415 | 8433 | commands[command] = Class; |
| 6416 | 8434 | }); |
| 6417 | 8435 | return commands; |
| @@ -6471,9 +8489,11 @@ | ||
| 6471 | 8489 | value: function toggleHistoryClass() { |
| 6472 | 8490 | document.body.classList.toggle('e-routes-has-history', !!$e.routes.getHistory(this.getServiceName()).length); |
| 6473 | 8491 | } |
| 6474 | 8492 | }]); |
| 8493 | + return ComponentBase; | |
| 6475 | 8494 | }(_module.default); |
| 8495 | +exports["default"] = ComponentBase; | |
| 6476 | 8496 | |
| 6477 | 8497 | /***/ }), |
| 6478 | 8498 | |
| 6479 | 8499 | /***/ "../modules/web-cli/assets/js/modules/component-modal-base.js": |
| @@ -6490,33 +8510,33 @@ | ||
| 6490 | 8510 | Object.defineProperty(exports, "__esModule", ({ |
| 6491 | 8511 | value: true |
| 6492 | 8512 | })); |
| 6493 | 8513 | exports["default"] = void 0; |
| 6494 | -var _readOnlyError2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/readOnlyError */ "../node_modules/@babel/runtime/helpers/readOnlyError.js")); | |
| 6495 | 8514 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 6496 | 8515 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 8516 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 8517 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 6497 | 8518 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 6498 | 8519 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 6499 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 6500 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 6501 | 8520 | var _componentBase = _interopRequireDefault(__webpack_require__(/*! ./component-base */ "../modules/web-cli/assets/js/modules/component-base.js")); |
| 6502 | 8521 | var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../modules/web-cli/assets/js/modules/commands/index.js")); |
| 6503 | 8522 | var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js")); |
| 6504 | -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } | |
| 6505 | -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)); } | |
| 6506 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 6507 | -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; } | |
| 6508 | -var ComponentModalBase = exports["default"] = /*#__PURE__*/function (_ComponentBase) { | |
| 8523 | +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | |
| 8524 | +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | |
| 8525 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 8526 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 8527 | +var ComponentModalBase = /*#__PURE__*/function (_ComponentBase) { | |
| 8528 | + (0, _inherits2.default)(ComponentModalBase, _ComponentBase); | |
| 8529 | + var _super = _createSuper(ComponentModalBase); | |
| 6509 | 8530 | function ComponentModalBase() { |
| 6510 | 8531 | (0, _classCallCheck2.default)(this, ComponentModalBase); |
| 6511 | - return _callSuper(this, ComponentModalBase, arguments); | |
| 8532 | + return _super.apply(this, arguments); | |
| 6512 | 8533 | } |
| 6513 | - (0, _inherits2.default)(ComponentModalBase, _ComponentBase); | |
| 6514 | - return (0, _createClass2.default)(ComponentModalBase, [{ | |
| 8534 | + (0, _createClass2.default)(ComponentModalBase, [{ | |
| 6515 | 8535 | key: "registerAPI", |
| 6516 | 8536 | value: function registerAPI() { |
| 6517 | 8537 | var _this = this; |
| 6518 | - _superPropGet(ComponentModalBase, "registerAPI", this, 3)([]); | |
| 8538 | + (0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "registerAPI", this).call(this); | |
| 6519 | 8539 | $e.shortcuts.register('esc', { |
| 6520 | 8540 | scopes: [this.getNamespace()], |
| 6521 | 8541 | callback: function callback() { |
| 6522 | 8542 | return _this.close(); |
| @@ -6553,13 +8573,12 @@ | ||
| 6553 | 8573 | } |
| 6554 | 8574 | }, { |
| 6555 | 8575 | key: "close", |
| 6556 | 8576 | value: function close() { |
| 6557 | - if (!_superPropGet(ComponentModalBase, "close", this, 3)([])) { | |
| 8577 | + if (!(0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "close", this).call(this)) { | |
| 6558 | 8578 | return false; |
| 6559 | 8579 | } |
| 6560 | - var close = elementor.hooks.applyFilters('component/modal/close', this.layout.getModal().hide.bind(this.layout.getModal()), this); | |
| 6561 | - close(); | |
| 8580 | + this.layout.getModal().hide(); | |
| 6562 | 8581 | return true; |
| 6563 | 8582 | } |
| 6564 | 8583 | }, { |
| 6565 | 8584 | key: "getModalLayout", |
| @@ -6566,9 +8585,11 @@ | ||
| 6566 | 8585 | value: function getModalLayout() { |
| 6567 | 8586 | (0, _forceMethodImplementation.default)(); |
| 6568 | 8587 | } |
| 6569 | 8588 | }]); |
| 8589 | + return ComponentModalBase; | |
| 6570 | 8590 | }(_componentBase.default); |
| 8591 | +exports["default"] = ComponentModalBase; | |
| 6571 | 8592 | |
| 6572 | 8593 | /***/ }), |
| 6573 | 8594 | |
| 6574 | 8595 | /***/ "../modules/web-cli/assets/js/modules/hook-base.js": |
| @@ -6588,10 +8609,28 @@ | ||
| 6588 | 8609 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 6589 | 8610 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 6590 | 8611 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 6591 | 8612 | var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js")); |
| 6592 | -var HookBase = exports["default"] = /*#__PURE__*/function () { | |
| 8613 | +var HookBase = /*#__PURE__*/function () { | |
| 6593 | 8614 | /** |
| 8615 | + * Callback type, eg ( hook, event ). | |
| 8616 | + * | |
| 8617 | + * @type {string} | |
| 8618 | + */ | |
| 8619 | + | |
| 8620 | + /** | |
| 8621 | + * Full command address, that will hook the callback. | |
| 8622 | + * | |
| 8623 | + * @type {string} | |
| 8624 | + */ | |
| 8625 | + | |
| 8626 | + /** | |
| 8627 | + * Unique id of the callback. | |
| 8628 | + * | |
| 8629 | + * @type {string} | |
| 8630 | + */ | |
| 8631 | + | |
| 8632 | + /** | |
| 6594 | 8633 | * Function constructor(). |
| 6595 | 8634 | * |
| 6596 | 8635 | * Create callback base. |
| 6597 | 8636 | */ |
| @@ -6596,25 +8635,10 @@ | ||
| 6596 | 8635 | * Create callback base. |
| 6597 | 8636 | */ |
| 6598 | 8637 | function HookBase() { |
| 6599 | 8638 | (0, _classCallCheck2.default)(this, HookBase); |
| 6600 | - /** | |
| 6601 | - * Callback type, eg ( hook, event ). | |
| 6602 | - * | |
| 6603 | - * @type {string} | |
| 6604 | - */ | |
| 6605 | 8639 | (0, _defineProperty2.default)(this, "type", void 0); |
| 6606 | - /** | |
| 6607 | - * Full command address, that will hook the callback. | |
| 6608 | - * | |
| 6609 | - * @type {string} | |
| 6610 | - */ | |
| 6611 | 8640 | (0, _defineProperty2.default)(this, "command", void 0); |
| 6612 | - /** | |
| 6613 | - * Unique id of the callback. | |
| 6614 | - * | |
| 6615 | - * @type {string} | |
| 6616 | - */ | |
| 6617 | 8641 | (0, _defineProperty2.default)(this, "id", void 0); |
| 6618 | 8642 | this.initialize(); |
| 6619 | 8643 | this.type = this.getType(); |
| 6620 | 8644 | this.command = this.getCommand(); |
| @@ -6626,9 +8650,9 @@ | ||
| 6626 | 8650 | * |
| 6627 | 8651 | * Called after creation of the base, used for initialize extras. |
| 6628 | 8652 | * Without expending constructor. |
| 6629 | 8653 | */ |
| 6630 | - return (0, _createClass2.default)(HookBase, [{ | |
| 8654 | + (0, _createClass2.default)(HookBase, [{ | |
| 6631 | 8655 | key: "initialize", |
| 6632 | 8656 | value: function initialize() {} |
| 6633 | 8657 | |
| 6634 | 8658 | /** |
| @@ -6772,9 +8796,11 @@ | ||
| 6772 | 8796 | } |
| 6773 | 8797 | return true; |
| 6774 | 8798 | } |
| 6775 | 8799 | }]); |
| 8800 | + return HookBase; | |
| 6776 | 8801 | }(); |
| 8802 | +exports["default"] = HookBase; | |
| 6777 | 8803 | |
| 6778 | 8804 | /***/ }), |
| 6779 | 8805 | |
| 6780 | 8806 | /***/ "../modules/web-cli/assets/js/modules/hook-break.js": |
| @@ -6792,22 +8818,24 @@ | ||
| 6792 | 8818 | })); |
| 6793 | 8819 | exports["default"] = void 0; |
| 6794 | 8820 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 6795 | 8821 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 8822 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 6796 | 8823 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 6797 | 8824 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 6798 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 6799 | 8825 | var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js")); |
| 6800 | -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)); } | |
| 6801 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 6802 | -var HookBreak = exports["default"] = /*#__PURE__*/function (_Error) { | |
| 8826 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 8827 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 8828 | +var HookBreak = /*#__PURE__*/function (_Error) { | |
| 8829 | + (0, _inherits2.default)(HookBreak, _Error); | |
| 8830 | + var _super = _createSuper(HookBreak); | |
| 6803 | 8831 | function HookBreak() { |
| 6804 | 8832 | (0, _classCallCheck2.default)(this, HookBreak); |
| 6805 | - return _callSuper(this, HookBreak, ['HookBreak']); | |
| 8833 | + return _super.call(this, 'HookBreak'); | |
| 6806 | 8834 | } |
| 6807 | - (0, _inherits2.default)(HookBreak, _Error); | |
| 6808 | 8835 | return (0, _createClass2.default)(HookBreak); |
| 6809 | -}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 8836 | +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 8837 | +exports["default"] = HookBreak; | |
| 6810 | 8838 | |
| 6811 | 8839 | /***/ }), |
| 6812 | 8840 | |
| 6813 | 8841 | /***/ "../modules/web-cli/assets/js/modules/hooks/data/after.js": |
| @@ -6825,28 +8853,32 @@ | ||
| 6825 | 8853 | })); |
| 6826 | 8854 | exports["default"] = exports.After = void 0; |
| 6827 | 8855 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 6828 | 8856 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 8857 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 6829 | 8858 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 6830 | 8859 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 6831 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 6832 | 8860 | var _base = _interopRequireDefault(__webpack_require__(/*! ./base */ "../modules/web-cli/assets/js/modules/hooks/data/base.js")); |
| 6833 | -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)); } | |
| 6834 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 6835 | -var After = exports.After = /*#__PURE__*/function (_Base) { | |
| 8861 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 8862 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 8863 | +var After = /*#__PURE__*/function (_Base) { | |
| 8864 | + (0, _inherits2.default)(After, _Base); | |
| 8865 | + var _super = _createSuper(After); | |
| 6836 | 8866 | function After() { |
| 6837 | 8867 | (0, _classCallCheck2.default)(this, After); |
| 6838 | - return _callSuper(this, After, arguments); | |
| 8868 | + return _super.apply(this, arguments); | |
| 6839 | 8869 | } |
| 6840 | - (0, _inherits2.default)(After, _Base); | |
| 6841 | - return (0, _createClass2.default)(After, [{ | |
| 8870 | + (0, _createClass2.default)(After, [{ | |
| 6842 | 8871 | key: "register", |
| 6843 | 8872 | value: function register() { |
| 6844 | 8873 | $e.hooks.registerDataAfter(this); |
| 6845 | 8874 | } |
| 6846 | 8875 | }]); |
| 8876 | + return After; | |
| 6847 | 8877 | }(_base.default); |
| 6848 | -var _default = exports["default"] = After; | |
| 8878 | +exports.After = After; | |
| 8879 | +var _default = After; | |
| 8880 | +exports["default"] = _default; | |
| 6849 | 8881 | |
| 6850 | 8882 | /***/ }), |
| 6851 | 8883 | |
| 6852 | 8884 | /***/ "../modules/web-cli/assets/js/modules/hooks/data/base.js": |
| @@ -6864,28 +8896,32 @@ | ||
| 6864 | 8896 | })); |
| 6865 | 8897 | exports["default"] = exports.Base = void 0; |
| 6866 | 8898 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 6867 | 8899 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 8900 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 6868 | 8901 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 6869 | 8902 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 6870 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 6871 | 8903 | var _hookBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hook-base */ "../modules/web-cli/assets/js/modules/hook-base.js")); |
| 6872 | -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)); } | |
| 6873 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 6874 | -var Base = exports.Base = /*#__PURE__*/function (_HookBase) { | |
| 8904 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 8905 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 8906 | +var Base = /*#__PURE__*/function (_HookBase) { | |
| 8907 | + (0, _inherits2.default)(Base, _HookBase); | |
| 8908 | + var _super = _createSuper(Base); | |
| 6875 | 8909 | function Base() { |
| 6876 | 8910 | (0, _classCallCheck2.default)(this, Base); |
| 6877 | - return _callSuper(this, Base, arguments); | |
| 8911 | + return _super.apply(this, arguments); | |
| 6878 | 8912 | } |
| 6879 | - (0, _inherits2.default)(Base, _HookBase); | |
| 6880 | - return (0, _createClass2.default)(Base, [{ | |
| 8913 | + (0, _createClass2.default)(Base, [{ | |
| 6881 | 8914 | key: "getType", |
| 6882 | 8915 | value: function getType() { |
| 6883 | 8916 | return 'data'; |
| 6884 | 8917 | } |
| 6885 | 8918 | }]); |
| 8919 | + return Base; | |
| 6886 | 8920 | }(_hookBase.default); |
| 6887 | -var _default = exports["default"] = Base; | |
| 8921 | +exports.Base = Base; | |
| 8922 | +var _default = Base; | |
| 8923 | +exports["default"] = _default; | |
| 6888 | 8924 | |
| 6889 | 8925 | /***/ }), |
| 6890 | 8926 | |
| 6891 | 8927 | /***/ "../modules/web-cli/assets/js/modules/hooks/data/catch.js": |
| @@ -6903,28 +8939,32 @@ | ||
| 6903 | 8939 | })); |
| 6904 | 8940 | exports["default"] = exports.Catch = void 0; |
| 6905 | 8941 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 6906 | 8942 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 8943 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 6907 | 8944 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 6908 | 8945 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 6909 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 6910 | 8946 | var _base = _interopRequireDefault(__webpack_require__(/*! ./base */ "../modules/web-cli/assets/js/modules/hooks/data/base.js")); |
| 6911 | -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)); } | |
| 6912 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 6913 | -var Catch = exports.Catch = /*#__PURE__*/function (_Base) { | |
| 8947 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 8948 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 8949 | +var Catch = /*#__PURE__*/function (_Base) { | |
| 8950 | + (0, _inherits2.default)(Catch, _Base); | |
| 8951 | + var _super = _createSuper(Catch); | |
| 6914 | 8952 | function Catch() { |
| 6915 | 8953 | (0, _classCallCheck2.default)(this, Catch); |
| 6916 | - return _callSuper(this, Catch, arguments); | |
| 8954 | + return _super.apply(this, arguments); | |
| 6917 | 8955 | } |
| 6918 | - (0, _inherits2.default)(Catch, _Base); | |
| 6919 | - return (0, _createClass2.default)(Catch, [{ | |
| 8956 | + (0, _createClass2.default)(Catch, [{ | |
| 6920 | 8957 | key: "register", |
| 6921 | 8958 | value: function register() { |
| 6922 | 8959 | $e.hooks.registerDataCatch(this); |
| 6923 | 8960 | } |
| 6924 | 8961 | }]); |
| 8962 | + return Catch; | |
| 6925 | 8963 | }(_base.default); |
| 6926 | -var _default = exports["default"] = Catch; | |
| 8964 | +exports.Catch = Catch; | |
| 8965 | +var _default = Catch; | |
| 8966 | +exports["default"] = _default; | |
| 6927 | 8967 | |
| 6928 | 8968 | /***/ }), |
| 6929 | 8969 | |
| 6930 | 8970 | /***/ "../modules/web-cli/assets/js/modules/hooks/data/dependency.js": |
| @@ -6942,28 +8982,32 @@ | ||
| 6942 | 8982 | })); |
| 6943 | 8983 | exports["default"] = exports.Dependency = void 0; |
| 6944 | 8984 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 6945 | 8985 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 8986 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 6946 | 8987 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 6947 | 8988 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 6948 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 6949 | 8989 | var _base = _interopRequireDefault(__webpack_require__(/*! ./base */ "../modules/web-cli/assets/js/modules/hooks/data/base.js")); |
| 6950 | -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)); } | |
| 6951 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 6952 | -var Dependency = exports.Dependency = /*#__PURE__*/function (_Base) { | |
| 8990 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 8991 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 8992 | +var Dependency = /*#__PURE__*/function (_Base) { | |
| 8993 | + (0, _inherits2.default)(Dependency, _Base); | |
| 8994 | + var _super = _createSuper(Dependency); | |
| 6953 | 8995 | function Dependency() { |
| 6954 | 8996 | (0, _classCallCheck2.default)(this, Dependency); |
| 6955 | - return _callSuper(this, Dependency, arguments); | |
| 8997 | + return _super.apply(this, arguments); | |
| 6956 | 8998 | } |
| 6957 | - (0, _inherits2.default)(Dependency, _Base); | |
| 6958 | - return (0, _createClass2.default)(Dependency, [{ | |
| 8999 | + (0, _createClass2.default)(Dependency, [{ | |
| 6959 | 9000 | key: "register", |
| 6960 | 9001 | value: function register() { |
| 6961 | 9002 | $e.hooks.registerDataDependency(this); |
| 6962 | 9003 | } |
| 6963 | 9004 | }]); |
| 9005 | + return Dependency; | |
| 6964 | 9006 | }(_base.default); |
| 6965 | -var _default = exports["default"] = Dependency; | |
| 9007 | +exports.Dependency = Dependency; | |
| 9008 | +var _default = Dependency; | |
| 9009 | +exports["default"] = _default; | |
| 6966 | 9010 | |
| 6967 | 9011 | /***/ }), |
| 6968 | 9012 | |
| 6969 | 9013 | /***/ "../modules/web-cli/assets/js/modules/hooks/data/index.js": |
| @@ -7024,28 +9068,32 @@ | ||
| 7024 | 9068 | })); |
| 7025 | 9069 | exports["default"] = exports.After = void 0; |
| 7026 | 9070 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 7027 | 9071 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 9072 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 7028 | 9073 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 7029 | 9074 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 7030 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 7031 | 9075 | var _base = _interopRequireDefault(__webpack_require__(/*! ./base */ "../modules/web-cli/assets/js/modules/hooks/ui/base.js")); |
| 7032 | -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)); } | |
| 7033 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 7034 | -var After = exports.After = /*#__PURE__*/function (_Base) { | |
| 9076 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 9077 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 9078 | +var After = /*#__PURE__*/function (_Base) { | |
| 9079 | + (0, _inherits2.default)(After, _Base); | |
| 9080 | + var _super = _createSuper(After); | |
| 7035 | 9081 | function After() { |
| 7036 | 9082 | (0, _classCallCheck2.default)(this, After); |
| 7037 | - return _callSuper(this, After, arguments); | |
| 9083 | + return _super.apply(this, arguments); | |
| 7038 | 9084 | } |
| 7039 | - (0, _inherits2.default)(After, _Base); | |
| 7040 | - return (0, _createClass2.default)(After, [{ | |
| 9085 | + (0, _createClass2.default)(After, [{ | |
| 7041 | 9086 | key: "register", |
| 7042 | 9087 | value: function register() { |
| 7043 | 9088 | $e.hooks.registerUIAfter(this); |
| 7044 | 9089 | } |
| 7045 | 9090 | }]); |
| 9091 | + return After; | |
| 7046 | 9092 | }(_base.default); |
| 7047 | -var _default = exports["default"] = After; | |
| 9093 | +exports.After = After; | |
| 9094 | +var _default = After; | |
| 9095 | +exports["default"] = _default; | |
| 7048 | 9096 | |
| 7049 | 9097 | /***/ }), |
| 7050 | 9098 | |
| 7051 | 9099 | /***/ "../modules/web-cli/assets/js/modules/hooks/ui/base.js": |
| @@ -7063,28 +9111,32 @@ | ||
| 7063 | 9111 | })); |
| 7064 | 9112 | exports["default"] = exports.Base = void 0; |
| 7065 | 9113 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 7066 | 9114 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 9115 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 7067 | 9116 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 7068 | 9117 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 7069 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 7070 | 9118 | var _hookBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hook-base */ "../modules/web-cli/assets/js/modules/hook-base.js")); |
| 7071 | -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)); } | |
| 7072 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 7073 | -var Base = exports.Base = /*#__PURE__*/function (_HookBase) { | |
| 9119 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 9120 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 9121 | +var Base = /*#__PURE__*/function (_HookBase) { | |
| 9122 | + (0, _inherits2.default)(Base, _HookBase); | |
| 9123 | + var _super = _createSuper(Base); | |
| 7074 | 9124 | function Base() { |
| 7075 | 9125 | (0, _classCallCheck2.default)(this, Base); |
| 7076 | - return _callSuper(this, Base, arguments); | |
| 9126 | + return _super.apply(this, arguments); | |
| 7077 | 9127 | } |
| 7078 | - (0, _inherits2.default)(Base, _HookBase); | |
| 7079 | - return (0, _createClass2.default)(Base, [{ | |
| 9128 | + (0, _createClass2.default)(Base, [{ | |
| 7080 | 9129 | key: "getType", |
| 7081 | 9130 | value: function getType() { |
| 7082 | 9131 | return 'ui'; |
| 7083 | 9132 | } |
| 7084 | 9133 | }]); |
| 9134 | + return Base; | |
| 7085 | 9135 | }(_hookBase.default); |
| 7086 | -var _default = exports["default"] = Base; | |
| 9136 | +exports.Base = Base; | |
| 9137 | +var _default = Base; | |
| 9138 | +exports["default"] = _default; | |
| 7087 | 9139 | |
| 7088 | 9140 | /***/ }), |
| 7089 | 9141 | |
| 7090 | 9142 | /***/ "../modules/web-cli/assets/js/modules/hooks/ui/before.js": |
| @@ -7102,28 +9154,32 @@ | ||
| 7102 | 9154 | })); |
| 7103 | 9155 | exports["default"] = exports.Before = void 0; |
| 7104 | 9156 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 7105 | 9157 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 9158 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 7106 | 9159 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 7107 | 9160 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 7108 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 7109 | 9161 | var _base = _interopRequireDefault(__webpack_require__(/*! ./base */ "../modules/web-cli/assets/js/modules/hooks/ui/base.js")); |
| 7110 | -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)); } | |
| 7111 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 7112 | -var Before = exports.Before = /*#__PURE__*/function (_Base) { | |
| 9162 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 9163 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 9164 | +var Before = /*#__PURE__*/function (_Base) { | |
| 9165 | + (0, _inherits2.default)(Before, _Base); | |
| 9166 | + var _super = _createSuper(Before); | |
| 7113 | 9167 | function Before() { |
| 7114 | 9168 | (0, _classCallCheck2.default)(this, Before); |
| 7115 | - return _callSuper(this, Before, arguments); | |
| 9169 | + return _super.apply(this, arguments); | |
| 7116 | 9170 | } |
| 7117 | - (0, _inherits2.default)(Before, _Base); | |
| 7118 | - return (0, _createClass2.default)(Before, [{ | |
| 9171 | + (0, _createClass2.default)(Before, [{ | |
| 7119 | 9172 | key: "register", |
| 7120 | 9173 | value: function register() { |
| 7121 | 9174 | $e.hooks.registerUIBefore(this); |
| 7122 | 9175 | } |
| 7123 | 9176 | }]); |
| 9177 | + return Before; | |
| 7124 | 9178 | }(_base.default); |
| 7125 | -var _default = exports["default"] = Before; | |
| 9179 | +exports.Before = Before; | |
| 9180 | +var _default = Before; | |
| 9181 | +exports["default"] = _default; | |
| 7126 | 9182 | |
| 7127 | 9183 | /***/ }), |
| 7128 | 9184 | |
| 7129 | 9185 | /***/ "../modules/web-cli/assets/js/modules/hooks/ui/catch.js": |
| @@ -7141,28 +9197,32 @@ | ||
| 7141 | 9197 | })); |
| 7142 | 9198 | exports["default"] = exports.Catch = void 0; |
| 7143 | 9199 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 7144 | 9200 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 9201 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 7145 | 9202 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 7146 | 9203 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 7147 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 7148 | 9204 | var _base = _interopRequireDefault(__webpack_require__(/*! ./base */ "../modules/web-cli/assets/js/modules/hooks/ui/base.js")); |
| 7149 | -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)); } | |
| 7150 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 7151 | -var Catch = exports.Catch = /*#__PURE__*/function (_Base) { | |
| 9205 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 9206 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 9207 | +var Catch = /*#__PURE__*/function (_Base) { | |
| 9208 | + (0, _inherits2.default)(Catch, _Base); | |
| 9209 | + var _super = _createSuper(Catch); | |
| 7152 | 9210 | function Catch() { |
| 7153 | 9211 | (0, _classCallCheck2.default)(this, Catch); |
| 7154 | - return _callSuper(this, Catch, arguments); | |
| 9212 | + return _super.apply(this, arguments); | |
| 7155 | 9213 | } |
| 7156 | - (0, _inherits2.default)(Catch, _Base); | |
| 7157 | - return (0, _createClass2.default)(Catch, [{ | |
| 9214 | + (0, _createClass2.default)(Catch, [{ | |
| 7158 | 9215 | key: "register", |
| 7159 | 9216 | value: function register() { |
| 7160 | 9217 | $e.hooks.registerUICatch(this); |
| 7161 | 9218 | } |
| 7162 | 9219 | }]); |
| 9220 | + return Catch; | |
| 7163 | 9221 | }(_base.default); |
| 7164 | -var _default = exports["default"] = Catch; | |
| 9222 | +exports.Catch = Catch; | |
| 9223 | +var _default = Catch; | |
| 9224 | +exports["default"] = _default; | |
| 7165 | 9225 | |
| 7166 | 9226 | /***/ }), |
| 7167 | 9227 | |
| 7168 | 9228 | /***/ "../modules/web-cli/assets/js/modules/hooks/ui/index.js": |
| @@ -7223,13 +9283,13 @@ | ||
| 7223 | 9283 | })); |
| 7224 | 9284 | exports["default"] = void 0; |
| 7225 | 9285 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 7226 | 9286 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 7227 | -var Console = exports["default"] = /*#__PURE__*/function () { | |
| 9287 | +var Console = /*#__PURE__*/function () { | |
| 7228 | 9288 | function Console() { |
| 7229 | 9289 | (0, _classCallCheck2.default)(this, Console); |
| 7230 | 9290 | } |
| 7231 | - return (0, _createClass2.default)(Console, null, [{ | |
| 9291 | + (0, _createClass2.default)(Console, null, [{ | |
| 7232 | 9292 | key: "error", |
| 7233 | 9293 | value: function error(message) { |
| 7234 | 9294 | // Show an error if devTools is available. |
| 7235 | 9295 | if ($e.devTools) { |
| @@ -7253,9 +9313,11 @@ | ||
| 7253 | 9313 | args.unshift('%c %c', style, ''); |
| 7254 | 9314 | (_console = console).warn.apply(_console, args); // eslint-disable-line no-console |
| 7255 | 9315 | } |
| 7256 | 9316 | }]); |
| 9317 | + return Console; | |
| 7257 | 9318 | }(); |
| 9319 | +exports["default"] = Console; | |
| 7258 | 9320 | |
| 7259 | 9321 | /***/ }), |
| 7260 | 9322 | |
| 7261 | 9323 | /***/ "../modules/web-cli/assets/js/utils/deprecation.js": |
| @@ -7299,13 +9361,13 @@ | ||
| 7299 | 9361 | message += " - Use `".concat(replacement, "` instead"); |
| 7300 | 9362 | } |
| 7301 | 9363 | _console.default.warn(message); |
| 7302 | 9364 | }; |
| 7303 | -var Deprecation = exports["default"] = /*#__PURE__*/function () { | |
| 9365 | +var Deprecation = /*#__PURE__*/function () { | |
| 7304 | 9366 | function Deprecation() { |
| 7305 | 9367 | (0, _classCallCheck2.default)(this, Deprecation); |
| 7306 | 9368 | } |
| 7307 | - return (0, _createClass2.default)(Deprecation, null, [{ | |
| 9369 | + (0, _createClass2.default)(Deprecation, null, [{ | |
| 7308 | 9370 | key: "deprecated", |
| 7309 | 9371 | value: function deprecated(name, version, replacement) { |
| 7310 | 9372 | if (this.isHardDeprecated(version)) { |
| 7311 | 9373 | hardDeprecated(name, version, replacement); |
| @@ -7400,9 +9462,11 @@ | ||
| 7400 | 9462 | var total = this.compareVersion(version, elementorWebCliConfig.version); |
| 7401 | 9463 | return total < 0 || total >= 8; |
| 7402 | 9464 | } |
| 7403 | 9465 | }]); |
| 9466 | + return Deprecation; | |
| 7404 | 9467 | }(); |
| 9468 | +exports["default"] = Deprecation; | |
| 7405 | 9469 | |
| 7406 | 9470 | /***/ }), |
| 7407 | 9471 | |
| 7408 | 9472 | /***/ "../modules/web-cli/assets/js/utils/environment.js": |
| @@ -7433,9 +9497,9 @@ | ||
| 7433 | 9497 | isSafari = /^((?!chrome|android).)*safari/i.test(userAgent) || /constructor/i.test(window.HTMLElement) || function (p) { |
| 7434 | 9498 | return '[object SafariRemoteNotification]' === p.toString(); |
| 7435 | 9499 | }(!window.safari || typeof safari !== 'undefined' && safari.pushNotification), |
| 7436 | 9500 | // Internet Explorer 6-11 |
| 7437 | - isIE = /Trident|MSIE/.test(userAgent) && (/* @cc_on!@*/ false || !!document.documentMode), | |
| 9501 | + isIE = /Trident|MSIE/.test(userAgent) && ( /* @cc_on!@*/ false || !!document.documentMode), | |
| 7438 | 9502 | // Edge 20+ |
| 7439 | 9503 | isEdge = !isIE && !!window.StyleMedia || matchUserAgent('Edg'), |
| 7440 | 9504 | // Google Chrome (Not accurate) |
| 7441 | 9505 | isChrome = !!window.chrome && matchUserAgent('Chrome') && !(isEdge || isOpera), |
| @@ -7454,9 +9518,10 @@ | ||
| 7454 | 9518 | opera: isOpera, |
| 7455 | 9519 | safari: isSafari, |
| 7456 | 9520 | webkit: matchUserAgent('AppleWebKit') |
| 7457 | 9521 | }; |
| 7458 | -var _default = exports["default"] = environment; | |
| 9522 | +var _default = environment; | |
| 9523 | +exports["default"] = _default; | |
| 7459 | 9524 | |
| 7460 | 9525 | /***/ }), |
| 7461 | 9526 | |
| 7462 | 9527 | /***/ "../modules/web-cli/assets/js/utils/force-method-implementation.js": |
| @@ -7474,28 +9539,31 @@ | ||
| 7474 | 9539 | })); |
| 7475 | 9540 | exports["default"] = exports.ForceMethodImplementation = void 0; |
| 7476 | 9541 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 7477 | 9542 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 9543 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js")); | |
| 9544 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 7478 | 9545 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 7479 | 9546 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 7480 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 7481 | 9547 | var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js")); |
| 7482 | -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)); } | |
| 7483 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 9548 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 9549 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 7484 | 9550 | // TODO: Copied from `assets/dev/js/modules/imports/force-method-implementation.js`; |
| 7485 | -var ForceMethodImplementation = exports.ForceMethodImplementation = /*#__PURE__*/function (_Error) { | |
| 9551 | +var ForceMethodImplementation = /*#__PURE__*/function (_Error) { | |
| 9552 | + (0, _inherits2.default)(ForceMethodImplementation, _Error); | |
| 9553 | + var _super = _createSuper(ForceMethodImplementation); | |
| 7486 | 9554 | function ForceMethodImplementation() { |
| 7487 | 9555 | var _this; |
| 7488 | 9556 | var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 7489 | 9557 | (0, _classCallCheck2.default)(this, ForceMethodImplementation); |
| 7490 | - _this = _callSuper(this, ForceMethodImplementation, ["".concat(info.isStatic ? 'static ' : '').concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality.")]); | |
| 7491 | - Error.captureStackTrace(_this, ForceMethodImplementation); | |
| 9558 | + _this = _super.call(this, "".concat(info.isStatic ? 'static ' : '').concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality.")); | |
| 9559 | + Error.captureStackTrace((0, _assertThisInitialized2.default)(_this), ForceMethodImplementation); | |
| 7492 | 9560 | return _this; |
| 7493 | 9561 | } |
| 7494 | - (0, _inherits2.default)(ForceMethodImplementation, _Error); | |
| 7495 | 9562 | return (0, _createClass2.default)(ForceMethodImplementation); |
| 7496 | -}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 7497 | -var _default = exports["default"] = function _default() { | |
| 9563 | +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 9564 | +exports.ForceMethodImplementation = ForceMethodImplementation; | |
| 9565 | +var _default = function _default() { | |
| 7498 | 9566 | var stack = Error().stack, |
| 7499 | 9567 | caller = stack.split('\n')[2].trim(), |
| 7500 | 9568 | callerName = caller.startsWith('at new') ? 'constructor' : caller.split(' ')[1], |
| 7501 | 9569 | info = {}; |
| @@ -7509,24 +9577,1108 @@ | ||
| 7509 | 9577 | info.isStatic = true; |
| 7510 | 9578 | } |
| 7511 | 9579 | throw new ForceMethodImplementation(info); |
| 7512 | 9580 | }; |
| 9581 | +exports["default"] = _default; | |
| 7513 | 9582 | |
| 7514 | 9583 | /***/ }), |
| 7515 | 9584 | |
| 7516 | -/***/ "../node_modules/@babel/runtime/helpers/OverloadYield.js": | |
| 7517 | -/*!***************************************************************!*\ | |
| 7518 | - !*** ../node_modules/@babel/runtime/helpers/OverloadYield.js ***! | |
| 7519 | - \***************************************************************/ | |
| 7520 | -/***/ ((module) => { | |
| 9585 | +/***/ "../node_modules/redux-thunk/es/index.js": | |
| 9586 | +/*!***********************************************!*\ | |
| 9587 | + !*** ../node_modules/redux-thunk/es/index.js ***! | |
| 9588 | + \***********************************************/ | |
| 9589 | +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 7521 | 9590 | |
| 7522 | -function _OverloadYield(e, d) { | |
| 7523 | - this.v = e, this.k = d; | |
| 9591 | +"use strict"; | |
| 9592 | +__webpack_require__.r(__webpack_exports__); | |
| 9593 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 9594 | +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) | |
| 9595 | +/* harmony export */ }); | |
| 9596 | +/** A function that accepts a potential "extra argument" value to be injected later, | |
| 9597 | + * and returns an instance of the thunk middleware that uses that value | |
| 9598 | + */ | |
| 9599 | +function createThunkMiddleware(extraArgument) { | |
| 9600 | + // Standard Redux middleware definition pattern: | |
| 9601 | + // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware | |
| 9602 | + var middleware = function middleware(_ref) { | |
| 9603 | + var dispatch = _ref.dispatch, | |
| 9604 | + getState = _ref.getState; | |
| 9605 | + return function (next) { | |
| 9606 | + return function (action) { | |
| 9607 | + // The thunk middleware looks for any functions that were passed to `store.dispatch`. | |
| 9608 | + // If this "action" is really a function, call it and return the result. | |
| 9609 | + if (typeof action === 'function') { | |
| 9610 | + // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg" | |
| 9611 | + return action(dispatch, getState, extraArgument); | |
| 9612 | + } // Otherwise, pass the action down the middleware chain as usual | |
| 9613 | + | |
| 9614 | + | |
| 9615 | + return next(action); | |
| 9616 | + }; | |
| 9617 | + }; | |
| 9618 | + }; | |
| 9619 | + | |
| 9620 | + return middleware; | |
| 7524 | 9621 | } |
| 7525 | -module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7526 | 9622 | |
| 9623 | +var thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version | |
| 9624 | +// with whatever "extra arg" they want to inject into their thunks | |
| 9625 | + | |
| 9626 | +thunk.withExtraArgument = createThunkMiddleware; | |
| 9627 | +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (thunk); | |
| 9628 | + | |
| 7527 | 9629 | /***/ }), |
| 7528 | 9630 | |
| 9631 | +/***/ "../node_modules/redux/es/redux.js": | |
| 9632 | +/*!*****************************************!*\ | |
| 9633 | + !*** ../node_modules/redux/es/redux.js ***! | |
| 9634 | + \*****************************************/ | |
| 9635 | +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 9636 | + | |
| 9637 | +"use strict"; | |
| 9638 | +__webpack_require__.r(__webpack_exports__); | |
| 9639 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 9640 | +/* harmony export */ "__DO_NOT_USE__ActionTypes": () => (/* binding */ ActionTypes), | |
| 9641 | +/* harmony export */ "applyMiddleware": () => (/* binding */ applyMiddleware), | |
| 9642 | +/* harmony export */ "bindActionCreators": () => (/* binding */ bindActionCreators), | |
| 9643 | +/* harmony export */ "combineReducers": () => (/* binding */ combineReducers), | |
| 9644 | +/* harmony export */ "compose": () => (/* binding */ compose), | |
| 9645 | +/* harmony export */ "createStore": () => (/* binding */ createStore), | |
| 9646 | +/* harmony export */ "legacy_createStore": () => (/* binding */ legacy_createStore) | |
| 9647 | +/* harmony export */ }); | |
| 9648 | +/* 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"); | |
| 9649 | + | |
| 9650 | + | |
| 9651 | +/** | |
| 9652 | + * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js | |
| 9653 | + * | |
| 9654 | + * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes | |
| 9655 | + * during build. | |
| 9656 | + * @param {number} code | |
| 9657 | + */ | |
| 9658 | +function formatProdErrorMessage(code) { | |
| 9659 | + 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. '; | |
| 9660 | +} | |
| 9661 | + | |
| 9662 | +// Inlined version of the `symbol-observable` polyfill | |
| 9663 | +var $$observable = (function () { | |
| 9664 | + return typeof Symbol === 'function' && Symbol.observable || '@@observable'; | |
| 9665 | +})(); | |
| 9666 | + | |
| 9667 | +/** | |
| 9668 | + * These are private action types reserved by Redux. | |
| 9669 | + * For any unknown actions, you must return the current state. | |
| 9670 | + * If the current state is undefined, you must return the initial state. | |
| 9671 | + * Do not reference these action types directly in your code. | |
| 9672 | + */ | |
| 9673 | +var randomString = function randomString() { | |
| 9674 | + return Math.random().toString(36).substring(7).split('').join('.'); | |
| 9675 | +}; | |
| 9676 | + | |
| 9677 | +var ActionTypes = { | |
| 9678 | + INIT: "@@redux/INIT" + randomString(), | |
| 9679 | + REPLACE: "@@redux/REPLACE" + randomString(), | |
| 9680 | + PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() { | |
| 9681 | + return "@@redux/PROBE_UNKNOWN_ACTION" + randomString(); | |
| 9682 | + } | |
| 9683 | +}; | |
| 9684 | + | |
| 9685 | +/** | |
| 9686 | + * @param {any} obj The object to inspect. | |
| 9687 | + * @returns {boolean} True if the argument appears to be a plain object. | |
| 9688 | + */ | |
| 9689 | +function isPlainObject(obj) { | |
| 9690 | + if (typeof obj !== 'object' || obj === null) return false; | |
| 9691 | + var proto = obj; | |
| 9692 | + | |
| 9693 | + while (Object.getPrototypeOf(proto) !== null) { | |
| 9694 | + proto = Object.getPrototypeOf(proto); | |
| 9695 | + } | |
| 9696 | + | |
| 9697 | + return Object.getPrototypeOf(obj) === proto; | |
| 9698 | +} | |
| 9699 | + | |
| 9700 | +// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of | |
| 9701 | +function miniKindOf(val) { | |
| 9702 | + if (val === void 0) return 'undefined'; | |
| 9703 | + if (val === null) return 'null'; | |
| 9704 | + var type = typeof val; | |
| 9705 | + | |
| 9706 | + switch (type) { | |
| 9707 | + case 'boolean': | |
| 9708 | + case 'string': | |
| 9709 | + case 'number': | |
| 9710 | + case 'symbol': | |
| 9711 | + case 'function': | |
| 9712 | + { | |
| 9713 | + return type; | |
| 9714 | + } | |
| 9715 | + } | |
| 9716 | + | |
| 9717 | + if (Array.isArray(val)) return 'array'; | |
| 9718 | + if (isDate(val)) return 'date'; | |
| 9719 | + if (isError(val)) return 'error'; | |
| 9720 | + var constructorName = ctorName(val); | |
| 9721 | + | |
| 9722 | + switch (constructorName) { | |
| 9723 | + case 'Symbol': | |
| 9724 | + case 'Promise': | |
| 9725 | + case 'WeakMap': | |
| 9726 | + case 'WeakSet': | |
| 9727 | + case 'Map': | |
| 9728 | + case 'Set': | |
| 9729 | + return constructorName; | |
| 9730 | + } // other | |
| 9731 | + | |
| 9732 | + | |
| 9733 | + return type.slice(8, -1).toLowerCase().replace(/\s/g, ''); | |
| 9734 | +} | |
| 9735 | + | |
| 9736 | +function ctorName(val) { | |
| 9737 | + return typeof val.constructor === 'function' ? val.constructor.name : null; | |
| 9738 | +} | |
| 9739 | + | |
| 9740 | +function isError(val) { | |
| 9741 | + return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number'; | |
| 9742 | +} | |
| 9743 | + | |
| 9744 | +function isDate(val) { | |
| 9745 | + if (val instanceof Date) return true; | |
| 9746 | + return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function'; | |
| 9747 | +} | |
| 9748 | + | |
| 9749 | +function kindOf(val) { | |
| 9750 | + var typeOfVal = typeof val; | |
| 9751 | + | |
| 9752 | + if (true) { | |
| 9753 | + typeOfVal = miniKindOf(val); | |
| 9754 | + } | |
| 9755 | + | |
| 9756 | + return typeOfVal; | |
| 9757 | +} | |
| 9758 | + | |
| 9759 | +/** | |
| 9760 | + * @deprecated | |
| 9761 | + * | |
| 9762 | + * **We recommend using the `configureStore` method | |
| 9763 | + * of the `@reduxjs/toolkit` package**, which replaces `createStore`. | |
| 9764 | + * | |
| 9765 | + * Redux Toolkit is our recommended approach for writing Redux logic today, | |
| 9766 | + * including store setup, reducers, data fetching, and more. | |
| 9767 | + * | |
| 9768 | + * **For more details, please read this Redux docs page:** | |
| 9769 | + * **https://redux.js.org/introduction/why-rtk-is-redux-today** | |
| 9770 | + * | |
| 9771 | + * `configureStore` from Redux Toolkit is an improved version of `createStore` that | |
| 9772 | + * simplifies setup and helps avoid common bugs. | |
| 9773 | + * | |
| 9774 | + * You should not be using the `redux` core package by itself today, except for learning purposes. | |
| 9775 | + * The `createStore` method from the core `redux` package will not be removed, but we encourage | |
| 9776 | + * all users to migrate to using Redux Toolkit for all Redux code. | |
| 9777 | + * | |
| 9778 | + * If you want to use `createStore` without this visual deprecation warning, use | |
| 9779 | + * the `legacy_createStore` import instead: | |
| 9780 | + * | |
| 9781 | + * `import { legacy_createStore as createStore} from 'redux'` | |
| 9782 | + * | |
| 9783 | + */ | |
| 9784 | + | |
| 9785 | +function createStore(reducer, preloadedState, enhancer) { | |
| 9786 | + var _ref2; | |
| 9787 | + | |
| 9788 | + if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') { | |
| 9789 | + 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.'); | |
| 9790 | + } | |
| 9791 | + | |
| 9792 | + if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') { | |
| 9793 | + enhancer = preloadedState; | |
| 9794 | + preloadedState = undefined; | |
| 9795 | + } | |
| 9796 | + | |
| 9797 | + if (typeof enhancer !== 'undefined') { | |
| 9798 | + if (typeof enhancer !== 'function') { | |
| 9799 | + throw new Error( false ? 0 : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'"); | |
| 9800 | + } | |
| 9801 | + | |
| 9802 | + return enhancer(createStore)(reducer, preloadedState); | |
| 9803 | + } | |
| 9804 | + | |
| 9805 | + if (typeof reducer !== 'function') { | |
| 9806 | + throw new Error( false ? 0 : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'"); | |
| 9807 | + } | |
| 9808 | + | |
| 9809 | + var currentReducer = reducer; | |
| 9810 | + var currentState = preloadedState; | |
| 9811 | + var currentListeners = []; | |
| 9812 | + var nextListeners = currentListeners; | |
| 9813 | + var isDispatching = false; | |
| 9814 | + /** | |
| 9815 | + * This makes a shallow copy of currentListeners so we can use | |
| 9816 | + * nextListeners as a temporary list while dispatching. | |
| 9817 | + * | |
| 9818 | + * This prevents any bugs around consumers calling | |
| 9819 | + * subscribe/unsubscribe in the middle of a dispatch. | |
| 9820 | + */ | |
| 9821 | + | |
| 9822 | + function ensureCanMutateNextListeners() { | |
| 9823 | + if (nextListeners === currentListeners) { | |
| 9824 | + nextListeners = currentListeners.slice(); | |
| 9825 | + } | |
| 9826 | + } | |
| 9827 | + /** | |
| 9828 | + * Reads the state tree managed by the store. | |
| 9829 | + * | |
| 9830 | + * @returns {any} The current state tree of your application. | |
| 9831 | + */ | |
| 9832 | + | |
| 9833 | + | |
| 9834 | + function getState() { | |
| 9835 | + if (isDispatching) { | |
| 9836 | + 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.'); | |
| 9837 | + } | |
| 9838 | + | |
| 9839 | + return currentState; | |
| 9840 | + } | |
| 9841 | + /** | |
| 9842 | + * Adds a change listener. It will be called any time an action is dispatched, | |
| 9843 | + * and some part of the state tree may potentially have changed. You may then | |
| 9844 | + * call `getState()` to read the current state tree inside the callback. | |
| 9845 | + * | |
| 9846 | + * You may call `dispatch()` from a change listener, with the following | |
| 9847 | + * caveats: | |
| 9848 | + * | |
| 9849 | + * 1. The subscriptions are snapshotted just before every `dispatch()` call. | |
| 9850 | + * If you subscribe or unsubscribe while the listeners are being invoked, this | |
| 9851 | + * will not have any effect on the `dispatch()` that is currently in progress. | |
| 9852 | + * However, the next `dispatch()` call, whether nested or not, will use a more | |
| 9853 | + * recent snapshot of the subscription list. | |
| 9854 | + * | |
| 9855 | + * 2. The listener should not expect to see all state changes, as the state | |
| 9856 | + * might have been updated multiple times during a nested `dispatch()` before | |
| 9857 | + * the listener is called. It is, however, guaranteed that all subscribers | |
| 9858 | + * registered before the `dispatch()` started will be called with the latest | |
| 9859 | + * state by the time it exits. | |
| 9860 | + * | |
| 9861 | + * @param {Function} listener A callback to be invoked on every dispatch. | |
| 9862 | + * @returns {Function} A function to remove this change listener. | |
| 9863 | + */ | |
| 9864 | + | |
| 9865 | + | |
| 9866 | + function subscribe(listener) { | |
| 9867 | + if (typeof listener !== 'function') { | |
| 9868 | + throw new Error( false ? 0 : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'"); | |
| 9869 | + } | |
| 9870 | + | |
| 9871 | + if (isDispatching) { | |
| 9872 | + 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.'); | |
| 9873 | + } | |
| 9874 | + | |
| 9875 | + var isSubscribed = true; | |
| 9876 | + ensureCanMutateNextListeners(); | |
| 9877 | + nextListeners.push(listener); | |
| 9878 | + return function unsubscribe() { | |
| 9879 | + if (!isSubscribed) { | |
| 9880 | + return; | |
| 9881 | + } | |
| 9882 | + | |
| 9883 | + if (isDispatching) { | |
| 9884 | + 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.'); | |
| 9885 | + } | |
| 9886 | + | |
| 9887 | + isSubscribed = false; | |
| 9888 | + ensureCanMutateNextListeners(); | |
| 9889 | + var index = nextListeners.indexOf(listener); | |
| 9890 | + nextListeners.splice(index, 1); | |
| 9891 | + currentListeners = null; | |
| 9892 | + }; | |
| 9893 | + } | |
| 9894 | + /** | |
| 9895 | + * Dispatches an action. It is the only way to trigger a state change. | |
| 9896 | + * | |
| 9897 | + * The `reducer` function, used to create the store, will be called with the | |
| 9898 | + * current state tree and the given `action`. Its return value will | |
| 9899 | + * be considered the **next** state of the tree, and the change listeners | |
| 9900 | + * will be notified. | |
| 9901 | + * | |
| 9902 | + * The base implementation only supports plain object actions. If you want to | |
| 9903 | + * dispatch a Promise, an Observable, a thunk, or something else, you need to | |
| 9904 | + * wrap your store creating function into the corresponding middleware. For | |
| 9905 | + * example, see the documentation for the `redux-thunk` package. Even the | |
| 9906 | + * middleware will eventually dispatch plain object actions using this method. | |
| 9907 | + * | |
| 9908 | + * @param {Object} action A plain object representing “what changed”. It is | |
| 9909 | + * a good idea to keep actions serializable so you can record and replay user | |
| 9910 | + * sessions, or use the time travelling `redux-devtools`. An action must have | |
| 9911 | + * a `type` property which may not be `undefined`. It is a good idea to use | |
| 9912 | + * string constants for action types. | |
| 9913 | + * | |
| 9914 | + * @returns {Object} For convenience, the same action object you dispatched. | |
| 9915 | + * | |
| 9916 | + * Note that, if you use a custom middleware, it may wrap `dispatch()` to | |
| 9917 | + * return something else (for example, a Promise you can await). | |
| 9918 | + */ | |
| 9919 | + | |
| 9920 | + | |
| 9921 | + function dispatch(action) { | |
| 9922 | + if (!isPlainObject(action)) { | |
| 9923 | + 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."); | |
| 9924 | + } | |
| 9925 | + | |
| 9926 | + if (typeof action.type === 'undefined') { | |
| 9927 | + throw new Error( false ? 0 : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.'); | |
| 9928 | + } | |
| 9929 | + | |
| 9930 | + if (isDispatching) { | |
| 9931 | + throw new Error( false ? 0 : 'Reducers may not dispatch actions.'); | |
| 9932 | + } | |
| 9933 | + | |
| 9934 | + try { | |
| 9935 | + isDispatching = true; | |
| 9936 | + currentState = currentReducer(currentState, action); | |
| 9937 | + } finally { | |
| 9938 | + isDispatching = false; | |
| 9939 | + } | |
| 9940 | + | |
| 9941 | + var listeners = currentListeners = nextListeners; | |
| 9942 | + | |
| 9943 | + for (var i = 0; i < listeners.length; i++) { | |
| 9944 | + var listener = listeners[i]; | |
| 9945 | + listener(); | |
| 9946 | + } | |
| 9947 | + | |
| 9948 | + return action; | |
| 9949 | + } | |
| 9950 | + /** | |
| 9951 | + * Replaces the reducer currently used by the store to calculate the state. | |
| 9952 | + * | |
| 9953 | + * You might need this if your app implements code splitting and you want to | |
| 9954 | + * load some of the reducers dynamically. You might also need this if you | |
| 9955 | + * implement a hot reloading mechanism for Redux. | |
| 9956 | + * | |
| 9957 | + * @param {Function} nextReducer The reducer for the store to use instead. | |
| 9958 | + * @returns {void} | |
| 9959 | + */ | |
| 9960 | + | |
| 9961 | + | |
| 9962 | + function replaceReducer(nextReducer) { | |
| 9963 | + if (typeof nextReducer !== 'function') { | |
| 9964 | + throw new Error( false ? 0 : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer)); | |
| 9965 | + } | |
| 9966 | + | |
| 9967 | + currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT. | |
| 9968 | + // Any reducers that existed in both the new and old rootReducer | |
| 9969 | + // will receive the previous state. This effectively populates | |
| 9970 | + // the new state tree with any relevant data from the old one. | |
| 9971 | + | |
| 9972 | + dispatch({ | |
| 9973 | + type: ActionTypes.REPLACE | |
| 9974 | + }); | |
| 9975 | + } | |
| 9976 | + /** | |
| 9977 | + * Interoperability point for observable/reactive libraries. | |
| 9978 | + * @returns {observable} A minimal observable of state changes. | |
| 9979 | + * For more information, see the observable proposal: | |
| 9980 | + * https://github.com/tc39/proposal-observable | |
| 9981 | + */ | |
| 9982 | + | |
| 9983 | + | |
| 9984 | + function observable() { | |
| 9985 | + var _ref; | |
| 9986 | + | |
| 9987 | + var outerSubscribe = subscribe; | |
| 9988 | + return _ref = { | |
| 9989 | + /** | |
| 9990 | + * The minimal observable subscription method. | |
| 9991 | + * @param {Object} observer Any object that can be used as an observer. | |
| 9992 | + * The observer object should have a `next` method. | |
| 9993 | + * @returns {subscription} An object with an `unsubscribe` method that can | |
| 9994 | + * be used to unsubscribe the observable from the store, and prevent further | |
| 9995 | + * emission of values from the observable. | |
| 9996 | + */ | |
| 9997 | + subscribe: function subscribe(observer) { | |
| 9998 | + if (typeof observer !== 'object' || observer === null) { | |
| 9999 | + throw new Error( false ? 0 : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'"); | |
| 10000 | + } | |
| 10001 | + | |
| 10002 | + function observeState() { | |
| 10003 | + if (observer.next) { | |
| 10004 | + observer.next(getState()); | |
| 10005 | + } | |
| 10006 | + } | |
| 10007 | + | |
| 10008 | + observeState(); | |
| 10009 | + var unsubscribe = outerSubscribe(observeState); | |
| 10010 | + return { | |
| 10011 | + unsubscribe: unsubscribe | |
| 10012 | + }; | |
| 10013 | + } | |
| 10014 | + }, _ref[$$observable] = function () { | |
| 10015 | + return this; | |
| 10016 | + }, _ref; | |
| 10017 | + } // When a store is created, an "INIT" action is dispatched so that every | |
| 10018 | + // reducer returns their initial state. This effectively populates | |
| 10019 | + // the initial state tree. | |
| 10020 | + | |
| 10021 | + | |
| 10022 | + dispatch({ | |
| 10023 | + type: ActionTypes.INIT | |
| 10024 | + }); | |
| 10025 | + return _ref2 = { | |
| 10026 | + dispatch: dispatch, | |
| 10027 | + subscribe: subscribe, | |
| 10028 | + getState: getState, | |
| 10029 | + replaceReducer: replaceReducer | |
| 10030 | + }, _ref2[$$observable] = observable, _ref2; | |
| 10031 | +} | |
| 10032 | +/** | |
| 10033 | + * Creates a Redux store that holds the state tree. | |
| 10034 | + * | |
| 10035 | + * **We recommend using `configureStore` from the | |
| 10036 | + * `@reduxjs/toolkit` package**, which replaces `createStore`: | |
| 10037 | + * **https://redux.js.org/introduction/why-rtk-is-redux-today** | |
| 10038 | + * | |
| 10039 | + * The only way to change the data in the store is to call `dispatch()` on it. | |
| 10040 | + * | |
| 10041 | + * There should only be a single store in your app. To specify how different | |
| 10042 | + * parts of the state tree respond to actions, you may combine several reducers | |
| 10043 | + * into a single reducer function by using `combineReducers`. | |
| 10044 | + * | |
| 10045 | + * @param {Function} reducer A function that returns the next state tree, given | |
| 10046 | + * the current state tree and the action to handle. | |
| 10047 | + * | |
| 10048 | + * @param {any} [preloadedState] The initial state. You may optionally specify it | |
| 10049 | + * to hydrate the state from the server in universal apps, or to restore a | |
| 10050 | + * previously serialized user session. | |
| 10051 | + * If you use `combineReducers` to produce the root reducer function, this must be | |
| 10052 | + * an object with the same shape as `combineReducers` keys. | |
| 10053 | + * | |
| 10054 | + * @param {Function} [enhancer] The store enhancer. You may optionally specify it | |
| 10055 | + * to enhance the store with third-party capabilities such as middleware, | |
| 10056 | + * time travel, persistence, etc. The only store enhancer that ships with Redux | |
| 10057 | + * is `applyMiddleware()`. | |
| 10058 | + * | |
| 10059 | + * @returns {Store} A Redux store that lets you read the state, dispatch actions | |
| 10060 | + * and subscribe to changes. | |
| 10061 | + */ | |
| 10062 | + | |
| 10063 | +var legacy_createStore = createStore; | |
| 10064 | + | |
| 10065 | +/** | |
| 10066 | + * Prints a warning in the console if it exists. | |
| 10067 | + * | |
| 10068 | + * @param {String} message The warning message. | |
| 10069 | + * @returns {void} | |
| 10070 | + */ | |
| 10071 | +function warning(message) { | |
| 10072 | + /* eslint-disable no-console */ | |
| 10073 | + if (typeof console !== 'undefined' && typeof console.error === 'function') { | |
| 10074 | + console.error(message); | |
| 10075 | + } | |
| 10076 | + /* eslint-enable no-console */ | |
| 10077 | + | |
| 10078 | + | |
| 10079 | + try { | |
| 10080 | + // This error was thrown as a convenience so that if you enable | |
| 10081 | + // "break on all exceptions" in your console, | |
| 10082 | + // it would pause the execution at this line. | |
| 10083 | + throw new Error(message); | |
| 10084 | + } catch (e) {} // eslint-disable-line no-empty | |
| 10085 | + | |
| 10086 | +} | |
| 10087 | + | |
| 10088 | +function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) { | |
| 10089 | + var reducerKeys = Object.keys(reducers); | |
| 10090 | + var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer'; | |
| 10091 | + | |
| 10092 | + if (reducerKeys.length === 0) { | |
| 10093 | + return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.'; | |
| 10094 | + } | |
| 10095 | + | |
| 10096 | + if (!isPlainObject(inputState)) { | |
| 10097 | + return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\""); | |
| 10098 | + } | |
| 10099 | + | |
| 10100 | + var unexpectedKeys = Object.keys(inputState).filter(function (key) { | |
| 10101 | + return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key]; | |
| 10102 | + }); | |
| 10103 | + unexpectedKeys.forEach(function (key) { | |
| 10104 | + unexpectedKeyCache[key] = true; | |
| 10105 | + }); | |
| 10106 | + if (action && action.type === ActionTypes.REPLACE) return; | |
| 10107 | + | |
| 10108 | + if (unexpectedKeys.length > 0) { | |
| 10109 | + 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."); | |
| 10110 | + } | |
| 10111 | +} | |
| 10112 | + | |
| 10113 | +function assertReducerShape(reducers) { | |
| 10114 | + Object.keys(reducers).forEach(function (key) { | |
| 10115 | + var reducer = reducers[key]; | |
| 10116 | + var initialState = reducer(undefined, { | |
| 10117 | + type: ActionTypes.INIT | |
| 10118 | + }); | |
| 10119 | + | |
| 10120 | + if (typeof initialState === 'undefined') { | |
| 10121 | + 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."); | |
| 10122 | + } | |
| 10123 | + | |
| 10124 | + if (typeof reducer(undefined, { | |
| 10125 | + type: ActionTypes.PROBE_UNKNOWN_ACTION() | |
| 10126 | + }) === 'undefined') { | |
| 10127 | + 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."); | |
| 10128 | + } | |
| 10129 | + }); | |
| 10130 | +} | |
| 10131 | +/** | |
| 10132 | + * Turns an object whose values are different reducer functions, into a single | |
| 10133 | + * reducer function. It will call every child reducer, and gather their results | |
| 10134 | + * into a single state object, whose keys correspond to the keys of the passed | |
| 10135 | + * reducer functions. | |
| 10136 | + * | |
| 10137 | + * @param {Object} reducers An object whose values correspond to different | |
| 10138 | + * reducer functions that need to be combined into one. One handy way to obtain | |
| 10139 | + * it is to use ES6 `import * as reducers` syntax. The reducers may never return | |
| 10140 | + * undefined for any action. Instead, they should return their initial state | |
| 10141 | + * if the state passed to them was undefined, and the current state for any | |
| 10142 | + * unrecognized action. | |
| 10143 | + * | |
| 10144 | + * @returns {Function} A reducer function that invokes every reducer inside the | |
| 10145 | + * passed object, and builds a state object with the same shape. | |
| 10146 | + */ | |
| 10147 | + | |
| 10148 | + | |
| 10149 | +function combineReducers(reducers) { | |
| 10150 | + var reducerKeys = Object.keys(reducers); | |
| 10151 | + var finalReducers = {}; | |
| 10152 | + | |
| 10153 | + for (var i = 0; i < reducerKeys.length; i++) { | |
| 10154 | + var key = reducerKeys[i]; | |
| 10155 | + | |
| 10156 | + if (true) { | |
| 10157 | + if (typeof reducers[key] === 'undefined') { | |
| 10158 | + warning("No reducer provided for key \"" + key + "\""); | |
| 10159 | + } | |
| 10160 | + } | |
| 10161 | + | |
| 10162 | + if (typeof reducers[key] === 'function') { | |
| 10163 | + finalReducers[key] = reducers[key]; | |
| 10164 | + } | |
| 10165 | + } | |
| 10166 | + | |
| 10167 | + var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same | |
| 10168 | + // keys multiple times. | |
| 10169 | + | |
| 10170 | + var unexpectedKeyCache; | |
| 10171 | + | |
| 10172 | + if (true) { | |
| 10173 | + unexpectedKeyCache = {}; | |
| 10174 | + } | |
| 10175 | + | |
| 10176 | + var shapeAssertionError; | |
| 10177 | + | |
| 10178 | + try { | |
| 10179 | + assertReducerShape(finalReducers); | |
| 10180 | + } catch (e) { | |
| 10181 | + shapeAssertionError = e; | |
| 10182 | + } | |
| 10183 | + | |
| 10184 | + return function combination(state, action) { | |
| 10185 | + if (state === void 0) { | |
| 10186 | + state = {}; | |
| 10187 | + } | |
| 10188 | + | |
| 10189 | + if (shapeAssertionError) { | |
| 10190 | + throw shapeAssertionError; | |
| 10191 | + } | |
| 10192 | + | |
| 10193 | + if (true) { | |
| 10194 | + var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache); | |
| 10195 | + | |
| 10196 | + if (warningMessage) { | |
| 10197 | + warning(warningMessage); | |
| 10198 | + } | |
| 10199 | + } | |
| 10200 | + | |
| 10201 | + var hasChanged = false; | |
| 10202 | + var nextState = {}; | |
| 10203 | + | |
| 10204 | + for (var _i = 0; _i < finalReducerKeys.length; _i++) { | |
| 10205 | + var _key = finalReducerKeys[_i]; | |
| 10206 | + var reducer = finalReducers[_key]; | |
| 10207 | + var previousStateForKey = state[_key]; | |
| 10208 | + var nextStateForKey = reducer(previousStateForKey, action); | |
| 10209 | + | |
| 10210 | + if (typeof nextStateForKey === 'undefined') { | |
| 10211 | + var actionType = action && action.type; | |
| 10212 | + 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."); | |
| 10213 | + } | |
| 10214 | + | |
| 10215 | + nextState[_key] = nextStateForKey; | |
| 10216 | + hasChanged = hasChanged || nextStateForKey !== previousStateForKey; | |
| 10217 | + } | |
| 10218 | + | |
| 10219 | + hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length; | |
| 10220 | + return hasChanged ? nextState : state; | |
| 10221 | + }; | |
| 10222 | +} | |
| 10223 | + | |
| 10224 | +function bindActionCreator(actionCreator, dispatch) { | |
| 10225 | + return function () { | |
| 10226 | + return dispatch(actionCreator.apply(this, arguments)); | |
| 10227 | + }; | |
| 10228 | +} | |
| 10229 | +/** | |
| 10230 | + * Turns an object whose values are action creators, into an object with the | |
| 10231 | + * same keys, but with every function wrapped into a `dispatch` call so they | |
| 10232 | + * may be invoked directly. This is just a convenience method, as you can call | |
| 10233 | + * `store.dispatch(MyActionCreators.doSomething())` yourself just fine. | |
| 10234 | + * | |
| 10235 | + * For convenience, you can also pass an action creator as the first argument, | |
| 10236 | + * and get a dispatch wrapped function in return. | |
| 10237 | + * | |
| 10238 | + * @param {Function|Object} actionCreators An object whose values are action | |
| 10239 | + * creator functions. One handy way to obtain it is to use ES6 `import * as` | |
| 10240 | + * syntax. You may also pass a single function. | |
| 10241 | + * | |
| 10242 | + * @param {Function} dispatch The `dispatch` function available on your Redux | |
| 10243 | + * store. | |
| 10244 | + * | |
| 10245 | + * @returns {Function|Object} The object mimicking the original object, but with | |
| 10246 | + * every action creator wrapped into the `dispatch` call. If you passed a | |
| 10247 | + * function as `actionCreators`, the return value will also be a single | |
| 10248 | + * function. | |
| 10249 | + */ | |
| 10250 | + | |
| 10251 | + | |
| 10252 | +function bindActionCreators(actionCreators, dispatch) { | |
| 10253 | + if (typeof actionCreators === 'function') { | |
| 10254 | + return bindActionCreator(actionCreators, dispatch); | |
| 10255 | + } | |
| 10256 | + | |
| 10257 | + if (typeof actionCreators !== 'object' || actionCreators === null) { | |
| 10258 | + 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\"?"); | |
| 10259 | + } | |
| 10260 | + | |
| 10261 | + var boundActionCreators = {}; | |
| 10262 | + | |
| 10263 | + for (var key in actionCreators) { | |
| 10264 | + var actionCreator = actionCreators[key]; | |
| 10265 | + | |
| 10266 | + if (typeof actionCreator === 'function') { | |
| 10267 | + boundActionCreators[key] = bindActionCreator(actionCreator, dispatch); | |
| 10268 | + } | |
| 10269 | + } | |
| 10270 | + | |
| 10271 | + return boundActionCreators; | |
| 10272 | +} | |
| 10273 | + | |
| 10274 | +/** | |
| 10275 | + * Composes single-argument functions from right to left. The rightmost | |
| 10276 | + * function can take multiple arguments as it provides the signature for | |
| 10277 | + * the resulting composite function. | |
| 10278 | + * | |
| 10279 | + * @param {...Function} funcs The functions to compose. | |
| 10280 | + * @returns {Function} A function obtained by composing the argument functions | |
| 10281 | + * from right to left. For example, compose(f, g, h) is identical to doing | |
| 10282 | + * (...args) => f(g(h(...args))). | |
| 10283 | + */ | |
| 10284 | +function compose() { | |
| 10285 | + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 10286 | + funcs[_key] = arguments[_key]; | |
| 10287 | + } | |
| 10288 | + | |
| 10289 | + if (funcs.length === 0) { | |
| 10290 | + return function (arg) { | |
| 10291 | + return arg; | |
| 10292 | + }; | |
| 10293 | + } | |
| 10294 | + | |
| 10295 | + if (funcs.length === 1) { | |
| 10296 | + return funcs[0]; | |
| 10297 | + } | |
| 10298 | + | |
| 10299 | + return funcs.reduce(function (a, b) { | |
| 10300 | + return function () { | |
| 10301 | + return a(b.apply(void 0, arguments)); | |
| 10302 | + }; | |
| 10303 | + }); | |
| 10304 | +} | |
| 10305 | + | |
| 10306 | +/** | |
| 10307 | + * Creates a store enhancer that applies middleware to the dispatch method | |
| 10308 | + * of the Redux store. This is handy for a variety of tasks, such as expressing | |
| 10309 | + * asynchronous actions in a concise manner, or logging every action payload. | |
| 10310 | + * | |
| 10311 | + * See `redux-thunk` package as an example of the Redux middleware. | |
| 10312 | + * | |
| 10313 | + * Because middleware is potentially asynchronous, this should be the first | |
| 10314 | + * store enhancer in the composition chain. | |
| 10315 | + * | |
| 10316 | + * Note that each middleware will be given the `dispatch` and `getState` functions | |
| 10317 | + * as named arguments. | |
| 10318 | + * | |
| 10319 | + * @param {...Function} middlewares The middleware chain to be applied. | |
| 10320 | + * @returns {Function} A store enhancer applying the middleware. | |
| 10321 | + */ | |
| 10322 | + | |
| 10323 | +function applyMiddleware() { | |
| 10324 | + for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 10325 | + middlewares[_key] = arguments[_key]; | |
| 10326 | + } | |
| 10327 | + | |
| 10328 | + return function (createStore) { | |
| 10329 | + return function () { | |
| 10330 | + var store = createStore.apply(void 0, arguments); | |
| 10331 | + | |
| 10332 | + var _dispatch = function dispatch() { | |
| 10333 | + throw new Error( false ? 0 : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.'); | |
| 10334 | + }; | |
| 10335 | + | |
| 10336 | + var middlewareAPI = { | |
| 10337 | + getState: store.getState, | |
| 10338 | + dispatch: function dispatch() { | |
| 10339 | + return _dispatch.apply(void 0, arguments); | |
| 10340 | + } | |
| 10341 | + }; | |
| 10342 | + var chain = middlewares.map(function (middleware) { | |
| 10343 | + return middleware(middlewareAPI); | |
| 10344 | + }); | |
| 10345 | + _dispatch = compose.apply(void 0, chain)(store.dispatch); | |
| 10346 | + return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, store), {}, { | |
| 10347 | + dispatch: _dispatch | |
| 10348 | + }); | |
| 10349 | + }; | |
| 10350 | + }; | |
| 10351 | +} | |
| 10352 | + | |
| 10353 | +/* | |
| 10354 | + * This is a dummy function to check if the function name has been altered by minification. | |
| 10355 | + * If the function has been minified and NODE_ENV !== 'production', warn the user. | |
| 10356 | + */ | |
| 10357 | + | |
| 10358 | +function isCrushed() {} | |
| 10359 | + | |
| 10360 | +if ( true && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') { | |
| 10361 | + 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.'); | |
| 10362 | +} | |
| 10363 | + | |
| 10364 | + | |
| 10365 | + | |
| 10366 | + | |
| 10367 | +/***/ }), | |
| 10368 | + | |
| 10369 | +/***/ "../node_modules/reselect/es/defaultMemoize.js": | |
| 10370 | +/*!*****************************************************!*\ | |
| 10371 | + !*** ../node_modules/reselect/es/defaultMemoize.js ***! | |
| 10372 | + \*****************************************************/ | |
| 10373 | +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 10374 | + | |
| 10375 | +"use strict"; | |
| 10376 | +__webpack_require__.r(__webpack_exports__); | |
| 10377 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 10378 | +/* harmony export */ "createCacheKeyComparator": () => (/* binding */ createCacheKeyComparator), | |
| 10379 | +/* harmony export */ "defaultEqualityCheck": () => (/* binding */ defaultEqualityCheck), | |
| 10380 | +/* harmony export */ "defaultMemoize": () => (/* binding */ defaultMemoize) | |
| 10381 | +/* harmony export */ }); | |
| 10382 | +// Cache implementation based on Erik Rasmussen's `lru-memoize`: | |
| 10383 | +// https://github.com/erikras/lru-memoize | |
| 10384 | +var NOT_FOUND = 'NOT_FOUND'; | |
| 10385 | + | |
| 10386 | +function createSingletonCache(equals) { | |
| 10387 | + var entry; | |
| 10388 | + return { | |
| 10389 | + get: function get(key) { | |
| 10390 | + if (entry && equals(entry.key, key)) { | |
| 10391 | + return entry.value; | |
| 10392 | + } | |
| 10393 | + | |
| 10394 | + return NOT_FOUND; | |
| 10395 | + }, | |
| 10396 | + put: function put(key, value) { | |
| 10397 | + entry = { | |
| 10398 | + key: key, | |
| 10399 | + value: value | |
| 10400 | + }; | |
| 10401 | + }, | |
| 10402 | + getEntries: function getEntries() { | |
| 10403 | + return entry ? [entry] : []; | |
| 10404 | + }, | |
| 10405 | + clear: function clear() { | |
| 10406 | + entry = undefined; | |
| 10407 | + } | |
| 10408 | + }; | |
| 10409 | +} | |
| 10410 | + | |
| 10411 | +function createLruCache(maxSize, equals) { | |
| 10412 | + var entries = []; | |
| 10413 | + | |
| 10414 | + function get(key) { | |
| 10415 | + var cacheIndex = entries.findIndex(function (entry) { | |
| 10416 | + return equals(key, entry.key); | |
| 10417 | + }); // We found a cached entry | |
| 10418 | + | |
| 10419 | + if (cacheIndex > -1) { | |
| 10420 | + var entry = entries[cacheIndex]; // Cached entry not at top of cache, move it to the top | |
| 10421 | + | |
| 10422 | + if (cacheIndex > 0) { | |
| 10423 | + entries.splice(cacheIndex, 1); | |
| 10424 | + entries.unshift(entry); | |
| 10425 | + } | |
| 10426 | + | |
| 10427 | + return entry.value; | |
| 10428 | + } // No entry found in cache, return sentinel | |
| 10429 | + | |
| 10430 | + | |
| 10431 | + return NOT_FOUND; | |
| 10432 | + } | |
| 10433 | + | |
| 10434 | + function put(key, value) { | |
| 10435 | + if (get(key) === NOT_FOUND) { | |
| 10436 | + // TODO Is unshift slow? | |
| 10437 | + entries.unshift({ | |
| 10438 | + key: key, | |
| 10439 | + value: value | |
| 10440 | + }); | |
| 10441 | + | |
| 10442 | + if (entries.length > maxSize) { | |
| 10443 | + entries.pop(); | |
| 10444 | + } | |
| 10445 | + } | |
| 10446 | + } | |
| 10447 | + | |
| 10448 | + function getEntries() { | |
| 10449 | + return entries; | |
| 10450 | + } | |
| 10451 | + | |
| 10452 | + function clear() { | |
| 10453 | + entries = []; | |
| 10454 | + } | |
| 10455 | + | |
| 10456 | + return { | |
| 10457 | + get: get, | |
| 10458 | + put: put, | |
| 10459 | + getEntries: getEntries, | |
| 10460 | + clear: clear | |
| 10461 | + }; | |
| 10462 | +} | |
| 10463 | + | |
| 10464 | +var defaultEqualityCheck = function defaultEqualityCheck(a, b) { | |
| 10465 | + return a === b; | |
| 10466 | +}; | |
| 10467 | +function createCacheKeyComparator(equalityCheck) { | |
| 10468 | + return function areArgumentsShallowlyEqual(prev, next) { | |
| 10469 | + if (prev === null || next === null || prev.length !== next.length) { | |
| 10470 | + return false; | |
| 10471 | + } // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible. | |
| 10472 | + | |
| 10473 | + | |
| 10474 | + var length = prev.length; | |
| 10475 | + | |
| 10476 | + for (var i = 0; i < length; i++) { | |
| 10477 | + if (!equalityCheck(prev[i], next[i])) { | |
| 10478 | + return false; | |
| 10479 | + } | |
| 10480 | + } | |
| 10481 | + | |
| 10482 | + return true; | |
| 10483 | + }; | |
| 10484 | +} | |
| 10485 | +// defaultMemoize now supports a configurable cache size with LRU behavior, | |
| 10486 | +// and optional comparison of the result value with existing values | |
| 10487 | +function defaultMemoize(func, equalityCheckOrOptions) { | |
| 10488 | + var providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : { | |
| 10489 | + equalityCheck: equalityCheckOrOptions | |
| 10490 | + }; | |
| 10491 | + var _providedOptions$equa = providedOptions.equalityCheck, | |
| 10492 | + equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa, | |
| 10493 | + _providedOptions$maxS = providedOptions.maxSize, | |
| 10494 | + maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS, | |
| 10495 | + resultEqualityCheck = providedOptions.resultEqualityCheck; | |
| 10496 | + var comparator = createCacheKeyComparator(equalityCheck); | |
| 10497 | + var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator); // we reference arguments instead of spreading them for performance reasons | |
| 10498 | + | |
| 10499 | + function memoized() { | |
| 10500 | + var value = cache.get(arguments); | |
| 10501 | + | |
| 10502 | + if (value === NOT_FOUND) { | |
| 10503 | + // @ts-ignore | |
| 10504 | + value = func.apply(null, arguments); | |
| 10505 | + | |
| 10506 | + if (resultEqualityCheck) { | |
| 10507 | + var entries = cache.getEntries(); | |
| 10508 | + var matchingEntry = entries.find(function (entry) { | |
| 10509 | + return resultEqualityCheck(entry.value, value); | |
| 10510 | + }); | |
| 10511 | + | |
| 10512 | + if (matchingEntry) { | |
| 10513 | + value = matchingEntry.value; | |
| 10514 | + } | |
| 10515 | + } | |
| 10516 | + | |
| 10517 | + cache.put(arguments, value); | |
| 10518 | + } | |
| 10519 | + | |
| 10520 | + return value; | |
| 10521 | + } | |
| 10522 | + | |
| 10523 | + memoized.clearCache = function () { | |
| 10524 | + return cache.clear(); | |
| 10525 | + }; | |
| 10526 | + | |
| 10527 | + return memoized; | |
| 10528 | +} | |
| 10529 | + | |
| 10530 | +/***/ }), | |
| 10531 | + | |
| 10532 | +/***/ "../node_modules/reselect/es/index.js": | |
| 10533 | +/*!********************************************!*\ | |
| 10534 | + !*** ../node_modules/reselect/es/index.js ***! | |
| 10535 | + \********************************************/ | |
| 10536 | +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 10537 | + | |
| 10538 | +"use strict"; | |
| 10539 | +__webpack_require__.r(__webpack_exports__); | |
| 10540 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 10541 | +/* harmony export */ "createSelector": () => (/* binding */ createSelector), | |
| 10542 | +/* harmony export */ "createSelectorCreator": () => (/* binding */ createSelectorCreator), | |
| 10543 | +/* harmony export */ "createStructuredSelector": () => (/* binding */ createStructuredSelector), | |
| 10544 | +/* harmony export */ "defaultEqualityCheck": () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultEqualityCheck), | |
| 10545 | +/* harmony export */ "defaultMemoize": () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize) | |
| 10546 | +/* harmony export */ }); | |
| 10547 | +/* harmony import */ var _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultMemoize */ "../node_modules/reselect/es/defaultMemoize.js"); | |
| 10548 | + | |
| 10549 | + | |
| 10550 | + | |
| 10551 | +function getDependencies(funcs) { | |
| 10552 | + var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs; | |
| 10553 | + | |
| 10554 | + if (!dependencies.every(function (dep) { | |
| 10555 | + return typeof dep === 'function'; | |
| 10556 | + })) { | |
| 10557 | + var dependencyTypes = dependencies.map(function (dep) { | |
| 10558 | + return typeof dep === 'function' ? "function " + (dep.name || 'unnamed') + "()" : typeof dep; | |
| 10559 | + }).join(', '); | |
| 10560 | + throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]"); | |
| 10561 | + } | |
| 10562 | + | |
| 10563 | + return dependencies; | |
| 10564 | +} | |
| 10565 | + | |
| 10566 | +function createSelectorCreator(memoize) { | |
| 10567 | + for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | |
| 10568 | + memoizeOptionsFromArgs[_key - 1] = arguments[_key]; | |
| 10569 | + } | |
| 10570 | + | |
| 10571 | + var createSelector = function createSelector() { | |
| 10572 | + for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | |
| 10573 | + funcs[_key2] = arguments[_key2]; | |
| 10574 | + } | |
| 10575 | + | |
| 10576 | + var _recomputations = 0; | |
| 10577 | + | |
| 10578 | + var _lastResult; // Due to the intricacies of rest params, we can't do an optional arg after `...funcs`. | |
| 10579 | + // So, start by declaring the default value here. | |
| 10580 | + // (And yes, the words 'memoize' and 'options' appear too many times in this next sequence.) | |
| 10581 | + | |
| 10582 | + | |
| 10583 | + var directlyPassedOptions = { | |
| 10584 | + memoizeOptions: undefined | |
| 10585 | + }; // Normally, the result func or "output selector" is the last arg | |
| 10586 | + | |
| 10587 | + var resultFunc = funcs.pop(); // If the result func is actually an _object_, assume it's our options object | |
| 10588 | + | |
| 10589 | + if (typeof resultFunc === 'object') { | |
| 10590 | + directlyPassedOptions = resultFunc; // and pop the real result func off | |
| 10591 | + | |
| 10592 | + resultFunc = funcs.pop(); | |
| 10593 | + } | |
| 10594 | + | |
| 10595 | + if (typeof resultFunc !== 'function') { | |
| 10596 | + throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof resultFunc + "]"); | |
| 10597 | + } // Determine which set of options we're using. Prefer options passed directly, | |
| 10598 | + // but fall back to options given to createSelectorCreator. | |
| 10599 | + | |
| 10600 | + | |
| 10601 | + var _directlyPassedOption = directlyPassedOptions, | |
| 10602 | + _directlyPassedOption2 = _directlyPassedOption.memoizeOptions, | |
| 10603 | + memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2; // Simplifying assumption: it's unlikely that the first options arg of the provided memoizer | |
| 10604 | + // is an array. In most libs I've looked at, it's an equality function or options object. | |
| 10605 | + // Based on that, if `memoizeOptions` _is_ an array, we assume it's a full | |
| 10606 | + // user-provided array of options. Otherwise, it must be just the _first_ arg, and so | |
| 10607 | + // we wrap it in an array so we can apply it. | |
| 10608 | + | |
| 10609 | + var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions]; | |
| 10610 | + var dependencies = getDependencies(funcs); | |
| 10611 | + var memoizedResultFunc = memoize.apply(void 0, [function recomputationWrapper() { | |
| 10612 | + _recomputations++; // apply arguments instead of spreading for performance. | |
| 10613 | + | |
| 10614 | + return resultFunc.apply(null, arguments); | |
| 10615 | + }].concat(finalMemoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again. | |
| 10616 | + | |
| 10617 | + var selector = memoize(function dependenciesChecker() { | |
| 10618 | + var params = []; | |
| 10619 | + var length = dependencies.length; | |
| 10620 | + | |
| 10621 | + for (var i = 0; i < length; i++) { | |
| 10622 | + // apply arguments instead of spreading and mutate a local list of params for performance. | |
| 10623 | + // @ts-ignore | |
| 10624 | + params.push(dependencies[i].apply(null, arguments)); | |
| 10625 | + } // apply arguments instead of spreading for performance. | |
| 10626 | + | |
| 10627 | + | |
| 10628 | + _lastResult = memoizedResultFunc.apply(null, params); | |
| 10629 | + return _lastResult; | |
| 10630 | + }); | |
| 10631 | + Object.assign(selector, { | |
| 10632 | + resultFunc: resultFunc, | |
| 10633 | + memoizedResultFunc: memoizedResultFunc, | |
| 10634 | + dependencies: dependencies, | |
| 10635 | + lastResult: function lastResult() { | |
| 10636 | + return _lastResult; | |
| 10637 | + }, | |
| 10638 | + recomputations: function recomputations() { | |
| 10639 | + return _recomputations; | |
| 10640 | + }, | |
| 10641 | + resetRecomputations: function resetRecomputations() { | |
| 10642 | + return _recomputations = 0; | |
| 10643 | + } | |
| 10644 | + }); | |
| 10645 | + return selector; | |
| 10646 | + }; // @ts-ignore | |
| 10647 | + | |
| 10648 | + | |
| 10649 | + return createSelector; | |
| 10650 | +} | |
| 10651 | +var createSelector = /* #__PURE__ */createSelectorCreator(_defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize); | |
| 10652 | +// Manual definition of state and output arguments | |
| 10653 | +var createStructuredSelector = function createStructuredSelector(selectors, selectorCreator) { | |
| 10654 | + if (selectorCreator === void 0) { | |
| 10655 | + selectorCreator = createSelector; | |
| 10656 | + } | |
| 10657 | + | |
| 10658 | + if (typeof selectors !== 'object') { | |
| 10659 | + throw new Error('createStructuredSelector expects first argument to be an object ' + ("where each property is a selector, instead received a " + typeof selectors)); | |
| 10660 | + } | |
| 10661 | + | |
| 10662 | + var objectKeys = Object.keys(selectors); | |
| 10663 | + var resultSelector = selectorCreator( // @ts-ignore | |
| 10664 | + objectKeys.map(function (key) { | |
| 10665 | + return selectors[key]; | |
| 10666 | + }), function () { | |
| 10667 | + for (var _len3 = arguments.length, values = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { | |
| 10668 | + values[_key3] = arguments[_key3]; | |
| 10669 | + } | |
| 10670 | + | |
| 10671 | + return values.reduce(function (composition, value, index) { | |
| 10672 | + composition[objectKeys[index]] = value; | |
| 10673 | + return composition; | |
| 10674 | + }, {}); | |
| 10675 | + }); | |
| 10676 | + return resultSelector; | |
| 10677 | +}; | |
| 10678 | + | |
| 10679 | +/***/ }), | |
| 10680 | + | |
| 7529 | 10681 | /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": |
| 7530 | 10682 | /*!******************************************************************!*\ |
| 7531 | 10683 | !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! |
| 7532 | 10684 | \******************************************************************/ |
| @@ -7531,12 +10683,14 @@ | ||
| 7531 | 10683 | !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! |
| 7532 | 10684 | \******************************************************************/ |
| 7533 | 10685 | /***/ ((module) => { |
| 7534 | 10686 | |
| 7535 | -function _arrayLikeToArray(r, a) { | |
| 7536 | - (null == a || a > r.length) && (a = r.length); | |
| 7537 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 7538 | - return n; | |
| 10687 | +function _arrayLikeToArray(arr, len) { | |
| 10688 | + if (len == null || len > arr.length) len = arr.length; | |
| 10689 | + for (var i = 0, arr2 = new Array(len); i < len; i++) { | |
| 10690 | + arr2[i] = arr[i]; | |
| 10691 | + } | |
| 10692 | + return arr2; | |
| 7539 | 10693 | } |
| 7540 | 10694 | module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 7541 | 10695 | |
| 7542 | 10696 | /***/ }), |
| @@ -7546,10 +10700,10 @@ | ||
| 7546 | 10700 | !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! |
| 7547 | 10701 | \****************************************************************/ |
| 7548 | 10702 | /***/ ((module) => { |
| 7549 | 10703 | |
| 7550 | -function _arrayWithHoles(r) { | |
| 7551 | - if (Array.isArray(r)) return r; | |
| 10704 | +function _arrayWithHoles(arr) { | |
| 10705 | + if (Array.isArray(arr)) return arr; | |
| 7552 | 10706 | } |
| 7553 | 10707 | module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 7554 | 10708 | |
| 7555 | 10709 | /***/ }), |
| @@ -7559,11 +10713,13 @@ | ||
| 7559 | 10713 | !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! |
| 7560 | 10714 | \***********************************************************************/ |
| 7561 | 10715 | /***/ ((module) => { |
| 7562 | 10716 | |
| 7563 | -function _assertThisInitialized(e) { | |
| 7564 | - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 7565 | - return e; | |
| 10717 | +function _assertThisInitialized(self) { | |
| 10718 | + if (self === void 0) { | |
| 10719 | + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 10720 | + } | |
| 10721 | + return self; | |
| 7566 | 10722 | } |
| 7567 | 10723 | module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 7568 | 10724 | |
| 7569 | 10725 | /***/ }), |
| @@ -7573,30 +10729,35 @@ | ||
| 7573 | 10729 | !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***! |
| 7574 | 10730 | \******************************************************************/ |
| 7575 | 10731 | /***/ ((module) => { |
| 7576 | 10732 | |
| 7577 | -function asyncGeneratorStep(n, t, e, r, o, a, c) { | |
| 10733 | +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | |
| 7578 | 10734 | try { |
| 7579 | - var i = n[a](c), | |
| 7580 | - u = i.value; | |
| 7581 | - } catch (n) { | |
| 7582 | - return void e(n); | |
| 10735 | + var info = gen[key](arg); | |
| 10736 | + var value = info.value; | |
| 10737 | + } catch (error) { | |
| 10738 | + reject(error); | |
| 10739 | + return; | |
| 7583 | 10740 | } |
| 7584 | - i.done ? t(u) : Promise.resolve(u).then(r, o); | |
| 10741 | + if (info.done) { | |
| 10742 | + resolve(value); | |
| 10743 | + } else { | |
| 10744 | + Promise.resolve(value).then(_next, _throw); | |
| 10745 | + } | |
| 7585 | 10746 | } |
| 7586 | -function _asyncToGenerator(n) { | |
| 10747 | +function _asyncToGenerator(fn) { | |
| 7587 | 10748 | return function () { |
| 7588 | - var t = this, | |
| 7589 | - e = arguments; | |
| 7590 | - return new Promise(function (r, o) { | |
| 7591 | - var a = n.apply(t, e); | |
| 7592 | - function _next(n) { | |
| 7593 | - asyncGeneratorStep(a, r, o, _next, _throw, "next", n); | |
| 10749 | + var self = this, | |
| 10750 | + args = arguments; | |
| 10751 | + return new Promise(function (resolve, reject) { | |
| 10752 | + var gen = fn.apply(self, args); | |
| 10753 | + function _next(value) { | |
| 10754 | + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | |
| 7594 | 10755 | } |
| 7595 | - function _throw(n) { | |
| 7596 | - asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | |
| 10756 | + function _throw(err) { | |
| 10757 | + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | |
| 7597 | 10758 | } |
| 7598 | - _next(void 0); | |
| 10759 | + _next(undefined); | |
| 7599 | 10760 | }); |
| 7600 | 10761 | }; |
| 7601 | 10762 | } |
| 7602 | 10763 | module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| @@ -7608,10 +10769,12 @@ | ||
| 7608 | 10769 | !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! |
| 7609 | 10770 | \****************************************************************/ |
| 7610 | 10771 | /***/ ((module) => { |
| 7611 | 10772 | |
| 7612 | -function _classCallCheck(a, n) { | |
| 7613 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 10773 | +function _classCallCheck(instance, Constructor) { | |
| 10774 | + if (!(instance instanceof Constructor)) { | |
| 10775 | + throw new TypeError("Cannot call a class as a function"); | |
| 10776 | + } | |
| 7614 | 10777 | } |
| 7615 | 10778 | module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 7616 | 10779 | |
| 7617 | 10780 | /***/ }), |
| @@ -7621,16 +10784,24 @@ | ||
| 7621 | 10784 | !*** ../node_modules/@babel/runtime/helpers/construct.js ***! |
| 7622 | 10785 | \***********************************************************/ |
| 7623 | 10786 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 7624 | 10787 | |
| 10788 | +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 7625 | 10789 | var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js"); |
| 7626 | -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 7627 | -function _construct(t, e, r) { | |
| 7628 | - if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); | |
| 7629 | - var o = [null]; | |
| 7630 | - o.push.apply(o, e); | |
| 7631 | - var p = new (t.bind.apply(t, o))(); | |
| 7632 | - return r && setPrototypeOf(p, r.prototype), p; | |
| 10790 | +function _construct(Parent, args, Class) { | |
| 10791 | + if (isNativeReflectConstruct()) { | |
| 10792 | + module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 10793 | + } else { | |
| 10794 | + module.exports = _construct = function _construct(Parent, args, Class) { | |
| 10795 | + var a = [null]; | |
| 10796 | + a.push.apply(a, args); | |
| 10797 | + var Constructor = Function.bind.apply(Parent, a); | |
| 10798 | + var instance = new Constructor(); | |
| 10799 | + if (Class) setPrototypeOf(instance, Class.prototype); | |
| 10800 | + return instance; | |
| 10801 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 10802 | + } | |
| 10803 | + return _construct.apply(null, arguments); | |
| 7633 | 10804 | } |
| 7634 | 10805 | module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 7635 | 10806 | |
| 7636 | 10807 | /***/ }), |
| @@ -7638,21 +10809,26 @@ | ||
| 7638 | 10809 | /***/ "../node_modules/@babel/runtime/helpers/createClass.js": |
| 7639 | 10810 | /*!*************************************************************!*\ |
| 7640 | 10811 | !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! |
| 7641 | 10812 | \*************************************************************/ |
| 7642 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 10813 | +/***/ ((module) => { | |
| 7643 | 10814 | |
| 7644 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 7645 | -function _defineProperties(e, r) { | |
| 7646 | - for (var t = 0; t < r.length; t++) { | |
| 7647 | - var o = r[t]; | |
| 7648 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 10815 | +function _defineProperties(target, props) { | |
| 10816 | + for (var i = 0; i < props.length; i++) { | |
| 10817 | + var descriptor = props[i]; | |
| 10818 | + descriptor.enumerable = descriptor.enumerable || false; | |
| 10819 | + descriptor.configurable = true; | |
| 10820 | + if ("value" in descriptor) descriptor.writable = true; | |
| 10821 | + Object.defineProperty(target, descriptor.key, descriptor); | |
| 7649 | 10822 | } |
| 7650 | 10823 | } |
| 7651 | -function _createClass(e, r, t) { | |
| 7652 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | |
| 7653 | - writable: !1 | |
| 7654 | - }), e; | |
| 10824 | +function _createClass(Constructor, protoProps, staticProps) { | |
| 10825 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); | |
| 10826 | + if (staticProps) _defineProperties(Constructor, staticProps); | |
| 10827 | + Object.defineProperty(Constructor, "prototype", { | |
| 10828 | + writable: false | |
| 10829 | + }); | |
| 10830 | + return Constructor; | |
| 7655 | 10831 | } |
| 7656 | 10832 | module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 7657 | 10833 | |
| 7658 | 10834 | /***/ }), |
| @@ -7660,18 +10836,22 @@ | ||
| 7660 | 10836 | /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": |
| 7661 | 10837 | /*!****************************************************************!*\ |
| 7662 | 10838 | !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! |
| 7663 | 10839 | \****************************************************************/ |
| 7664 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 10840 | +/***/ ((module) => { | |
| 7665 | 10841 | |
| 7666 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 7667 | -function _defineProperty(e, r, t) { | |
| 7668 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 7669 | - value: t, | |
| 7670 | - enumerable: !0, | |
| 7671 | - configurable: !0, | |
| 7672 | - writable: !0 | |
| 7673 | - }) : e[r] = t, e; | |
| 10842 | +function _defineProperty(obj, key, value) { | |
| 10843 | + if (key in obj) { | |
| 10844 | + Object.defineProperty(obj, key, { | |
| 10845 | + value: value, | |
| 10846 | + enumerable: true, | |
| 10847 | + configurable: true, | |
| 10848 | + writable: true | |
| 10849 | + }); | |
| 10850 | + } else { | |
| 10851 | + obj[key] = value; | |
| 10852 | + } | |
| 10853 | + return obj; | |
| 7674 | 10854 | } |
| 7675 | 10855 | module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 7676 | 10856 | |
| 7677 | 10857 | /***/ }), |
| @@ -7683,15 +10863,22 @@ | ||
| 7683 | 10863 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 7684 | 10864 | |
| 7685 | 10865 | var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); |
| 7686 | 10866 | function _get() { |
| 7687 | - return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { | |
| 7688 | - var p = superPropBase(e, t); | |
| 7689 | - if (p) { | |
| 7690 | - var n = Object.getOwnPropertyDescriptor(p, t); | |
| 7691 | - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; | |
| 7692 | - } | |
| 7693 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments); | |
| 10867 | + if (typeof Reflect !== "undefined" && Reflect.get) { | |
| 10868 | + module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 10869 | + } else { | |
| 10870 | + module.exports = _get = function _get(target, property, receiver) { | |
| 10871 | + var base = superPropBase(target, property); | |
| 10872 | + if (!base) return; | |
| 10873 | + var desc = Object.getOwnPropertyDescriptor(base, property); | |
| 10874 | + if (desc.get) { | |
| 10875 | + return desc.get.call(arguments.length < 3 ? target : receiver); | |
| 10876 | + } | |
| 10877 | + return desc.value; | |
| 10878 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 10879 | + } | |
| 10880 | + return _get.apply(this, arguments); | |
| 7694 | 10881 | } |
| 7695 | 10882 | module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 7696 | 10883 | |
| 7697 | 10884 | /***/ }), |
| @@ -7701,12 +10888,13 @@ | ||
| 7701 | 10888 | !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! |
| 7702 | 10889 | \****************************************************************/ |
| 7703 | 10890 | /***/ ((module) => { |
| 7704 | 10891 | |
| 7705 | -function _getPrototypeOf(t) { | |
| 7706 | - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | |
| 7707 | - return t.__proto__ || Object.getPrototypeOf(t); | |
| 7708 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); | |
| 10892 | +function _getPrototypeOf(o) { | |
| 10893 | + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { | |
| 10894 | + return o.__proto__ || Object.getPrototypeOf(o); | |
| 10895 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 10896 | + return _getPrototypeOf(o); | |
| 7709 | 10897 | } |
| 7710 | 10898 | module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 7711 | 10899 | |
| 7712 | 10900 | /***/ }), |
| @@ -7717,19 +10905,23 @@ | ||
| 7717 | 10905 | \**********************************************************/ |
| 7718 | 10906 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 7719 | 10907 | |
| 7720 | 10908 | var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); |
| 7721 | -function _inherits(t, e) { | |
| 7722 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 7723 | - t.prototype = Object.create(e && e.prototype, { | |
| 10909 | +function _inherits(subClass, superClass) { | |
| 10910 | + if (typeof superClass !== "function" && superClass !== null) { | |
| 10911 | + throw new TypeError("Super expression must either be null or a function"); | |
| 10912 | + } | |
| 10913 | + subClass.prototype = Object.create(superClass && superClass.prototype, { | |
| 7724 | 10914 | constructor: { |
| 7725 | - value: t, | |
| 7726 | - writable: !0, | |
| 7727 | - configurable: !0 | |
| 10915 | + value: subClass, | |
| 10916 | + writable: true, | |
| 10917 | + configurable: true | |
| 7728 | 10918 | } |
| 7729 | - }), Object.defineProperty(t, "prototype", { | |
| 7730 | - writable: !1 | |
| 7731 | - }), e && setPrototypeOf(t, e); | |
| 10919 | + }); | |
| 10920 | + Object.defineProperty(subClass, "prototype", { | |
| 10921 | + writable: false | |
| 10922 | + }); | |
| 10923 | + if (superClass) setPrototypeOf(subClass, superClass); | |
| 7732 | 10924 | } |
| 7733 | 10925 | module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 7734 | 10926 | |
| 7735 | 10927 | /***/ }), |
| @@ -7739,11 +10931,11 @@ | ||
| 7739 | 10931 | !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! |
| 7740 | 10932 | \***********************************************************************/ |
| 7741 | 10933 | /***/ ((module) => { |
| 7742 | 10934 | |
| 7743 | -function _interopRequireDefault(e) { | |
| 7744 | - return e && e.__esModule ? e : { | |
| 7745 | - "default": e | |
| 10935 | +function _interopRequireDefault(obj) { | |
| 10936 | + return obj && obj.__esModule ? obj : { | |
| 10937 | + "default": obj | |
| 7746 | 10938 | }; |
| 7747 | 10939 | } |
| 7748 | 10940 | module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 7749 | 10941 | |
| @@ -7754,14 +10946,10 @@ | ||
| 7754 | 10946 | !*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***! |
| 7755 | 10947 | \******************************************************************/ |
| 7756 | 10948 | /***/ ((module) => { |
| 7757 | 10949 | |
| 7758 | -function _isNativeFunction(t) { | |
| 7759 | - try { | |
| 7760 | - return -1 !== Function.toString.call(t).indexOf("[native code]"); | |
| 7761 | - } catch (n) { | |
| 7762 | - return "function" == typeof t; | |
| 7763 | - } | |
| 10950 | +function _isNativeFunction(fn) { | |
| 10951 | + return Function.toString.call(fn).indexOf("[native code]") !== -1; | |
| 7764 | 10952 | } |
| 7765 | 10953 | module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 7766 | 10954 | |
| 7767 | 10955 | /***/ }), |
| @@ -7772,14 +10960,17 @@ | ||
| 7772 | 10960 | \**************************************************************************/ |
| 7773 | 10961 | /***/ ((module) => { |
| 7774 | 10962 | |
| 7775 | 10963 | function _isNativeReflectConstruct() { |
| 10964 | + if (typeof Reflect === "undefined" || !Reflect.construct) return false; | |
| 10965 | + if (Reflect.construct.sham) return false; | |
| 10966 | + if (typeof Proxy === "function") return true; | |
| 7776 | 10967 | try { |
| 7777 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | |
| 7778 | - } catch (t) {} | |
| 7779 | - return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() { | |
| 7780 | - return !!t; | |
| 7781 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 10968 | + Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | |
| 10969 | + return true; | |
| 10970 | + } catch (e) { | |
| 10971 | + return false; | |
| 10972 | + } | |
| 7782 | 10973 | } |
| 7783 | 10974 | module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 7784 | 10975 | |
| 7785 | 10976 | /***/ }), |
| @@ -7789,34 +10980,31 @@ | ||
| 7789 | 10980 | !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! |
| 7790 | 10981 | \**********************************************************************/ |
| 7791 | 10982 | /***/ ((module) => { |
| 7792 | 10983 | |
| 7793 | -function _iterableToArrayLimit(r, l) { | |
| 7794 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 7795 | - if (null != t) { | |
| 7796 | - var e, | |
| 7797 | - n, | |
| 7798 | - i, | |
| 7799 | - u, | |
| 7800 | - a = [], | |
| 7801 | - f = !0, | |
| 7802 | - o = !1; | |
| 10984 | +function _iterableToArrayLimit(arr, i) { | |
| 10985 | + var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; | |
| 10986 | + if (_i == null) return; | |
| 10987 | + var _arr = []; | |
| 10988 | + var _n = true; | |
| 10989 | + var _d = false; | |
| 10990 | + var _s, _e; | |
| 10991 | + try { | |
| 10992 | + for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { | |
| 10993 | + _arr.push(_s.value); | |
| 10994 | + if (i && _arr.length === i) break; | |
| 10995 | + } | |
| 10996 | + } catch (err) { | |
| 10997 | + _d = true; | |
| 10998 | + _e = err; | |
| 10999 | + } finally { | |
| 7803 | 11000 | try { |
| 7804 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 7805 | - if (Object(t) !== t) return; | |
| 7806 | - f = !1; | |
| 7807 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 7808 | - } catch (r) { | |
| 7809 | - o = !0, n = r; | |
| 11001 | + if (!_n && _i["return"] != null) _i["return"](); | |
| 7810 | 11002 | } finally { |
| 7811 | - try { | |
| 7812 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 7813 | - } finally { | |
| 7814 | - if (o) throw n; | |
| 7815 | - } | |
| 11003 | + if (_d) throw _e; | |
| 7816 | 11004 | } |
| 7817 | - return a; | |
| 7818 | 11005 | } |
| 11006 | + return _arr; | |
| 7819 | 11007 | } |
| 7820 | 11008 | module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 7821 | 11009 | |
| 7822 | 11010 | /***/ }), |
| @@ -7841,363 +11029,341 @@ | ||
| 7841 | 11029 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 7842 | 11030 | |
| 7843 | 11031 | var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 7844 | 11032 | var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); |
| 7845 | -function _possibleConstructorReturn(t, e) { | |
| 7846 | - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 7847 | - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 7848 | - return assertThisInitialized(t); | |
| 11033 | +function _possibleConstructorReturn(self, call) { | |
| 11034 | + if (call && (_typeof(call) === "object" || typeof call === "function")) { | |
| 11035 | + return call; | |
| 11036 | + } else if (call !== void 0) { | |
| 11037 | + throw new TypeError("Derived constructors may only return object or undefined"); | |
| 11038 | + } | |
| 11039 | + return assertThisInitialized(self); | |
| 7849 | 11040 | } |
| 7850 | 11041 | module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 7851 | 11042 | |
| 7852 | 11043 | /***/ }), |
| 7853 | 11044 | |
| 7854 | -/***/ "../node_modules/@babel/runtime/helpers/readOnlyError.js": | |
| 7855 | -/*!***************************************************************!*\ | |
| 7856 | - !*** ../node_modules/@babel/runtime/helpers/readOnlyError.js ***! | |
| 7857 | - \***************************************************************/ | |
| 7858 | -/***/ ((module) => { | |
| 7859 | - | |
| 7860 | -function _readOnlyError(r) { | |
| 7861 | - throw new TypeError('"' + r + '" is read-only'); | |
| 7862 | -} | |
| 7863 | -module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7864 | - | |
| 7865 | -/***/ }), | |
| 7866 | - | |
| 7867 | -/***/ "../node_modules/@babel/runtime/helpers/regenerator.js": | |
| 7868 | -/*!*************************************************************!*\ | |
| 7869 | - !*** ../node_modules/@babel/runtime/helpers/regenerator.js ***! | |
| 7870 | - \*************************************************************/ | |
| 11045 | +/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js": | |
| 11046 | +/*!********************************************************************!*\ | |
| 11047 | + !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! | |
| 11048 | + \********************************************************************/ | |
| 7871 | 11049 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 7872 | 11050 | |
| 7873 | -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 7874 | -function _regenerator() { | |
| 7875 | - /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ | |
| 7876 | - var e, | |
| 7877 | - t, | |
| 7878 | - r = "function" == typeof Symbol ? Symbol : {}, | |
| 7879 | - n = r.iterator || "@@iterator", | |
| 7880 | - o = r.toStringTag || "@@toStringTag"; | |
| 7881 | - function i(r, n, o, i) { | |
| 7882 | - var c = n && n.prototype instanceof Generator ? n : Generator, | |
| 7883 | - u = Object.create(c.prototype); | |
| 7884 | - return regeneratorDefine(u, "_invoke", function (r, n, o) { | |
| 7885 | - var i, | |
| 7886 | - c, | |
| 7887 | - u, | |
| 7888 | - f = 0, | |
| 7889 | - p = o || [], | |
| 7890 | - y = !1, | |
| 7891 | - G = { | |
| 7892 | - p: 0, | |
| 7893 | - n: 0, | |
| 7894 | - v: e, | |
| 7895 | - a: d, | |
| 7896 | - f: d.bind(e, 4), | |
| 7897 | - d: function d(t, r) { | |
| 7898 | - return i = t, c = 0, u = e, G.n = r, a; | |
| 7899 | - } | |
| 7900 | - }; | |
| 7901 | - function d(r, n) { | |
| 7902 | - for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { | |
| 7903 | - var o, | |
| 7904 | - i = p[t], | |
| 7905 | - d = G.p, | |
| 7906 | - l = i[2]; | |
| 7907 | - r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); | |
| 7908 | - } | |
| 7909 | - if (o || r > 1) return a; | |
| 7910 | - throw y = !0, n; | |
| 7911 | - } | |
| 7912 | - return function (o, p, l) { | |
| 7913 | - if (f > 1) throw TypeError("Generator is already running"); | |
| 7914 | - for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { | |
| 7915 | - i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); | |
| 7916 | - try { | |
| 7917 | - if (f = 2, i) { | |
| 7918 | - if (c || (o = "next"), t = i[o]) { | |
| 7919 | - if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); | |
| 7920 | - if (!t.done) return t; | |
| 7921 | - u = t.value, c < 2 && (c = 0); | |
| 7922 | - } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); | |
| 7923 | - i = e; | |
| 7924 | - } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; | |
| 7925 | - } catch (t) { | |
| 7926 | - i = e, c = 1, u = t; | |
| 7927 | - } finally { | |
| 7928 | - f = 1; | |
| 7929 | - } | |
| 7930 | - } | |
| 7931 | - return { | |
| 7932 | - value: t, | |
| 7933 | - done: y | |
| 7934 | - }; | |
| 11051 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 11052 | +function _regeneratorRuntime() { | |
| 11053 | + "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ | |
| 11054 | + module.exports = _regeneratorRuntime = function _regeneratorRuntime() { | |
| 11055 | + return exports; | |
| 11056 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 11057 | + var exports = {}, | |
| 11058 | + Op = Object.prototype, | |
| 11059 | + hasOwn = Op.hasOwnProperty, | |
| 11060 | + defineProperty = Object.defineProperty || function (obj, key, desc) { | |
| 11061 | + obj[key] = desc.value; | |
| 11062 | + }, | |
| 11063 | + $Symbol = "function" == typeof Symbol ? Symbol : {}, | |
| 11064 | + iteratorSymbol = $Symbol.iterator || "@@iterator", | |
| 11065 | + asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", | |
| 11066 | + toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; | |
| 11067 | + function define(obj, key, value) { | |
| 11068 | + return Object.defineProperty(obj, key, { | |
| 11069 | + value: value, | |
| 11070 | + enumerable: !0, | |
| 11071 | + configurable: !0, | |
| 11072 | + writable: !0 | |
| 11073 | + }), obj[key]; | |
| 11074 | + } | |
| 11075 | + try { | |
| 11076 | + define({}, ""); | |
| 11077 | + } catch (err) { | |
| 11078 | + define = function define(obj, key, value) { | |
| 11079 | + return obj[key] = value; | |
| 11080 | + }; | |
| 11081 | + } | |
| 11082 | + function wrap(innerFn, outerFn, self, tryLocsList) { | |
| 11083 | + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, | |
| 11084 | + generator = Object.create(protoGenerator.prototype), | |
| 11085 | + context = new Context(tryLocsList || []); | |
| 11086 | + return defineProperty(generator, "_invoke", { | |
| 11087 | + value: makeInvokeMethod(innerFn, self, context) | |
| 11088 | + }), generator; | |
| 11089 | + } | |
| 11090 | + function tryCatch(fn, obj, arg) { | |
| 11091 | + try { | |
| 11092 | + return { | |
| 11093 | + type: "normal", | |
| 11094 | + arg: fn.call(obj, arg) | |
| 7935 | 11095 | }; |
| 7936 | - }(r, o, i), !0), u; | |
| 11096 | + } catch (err) { | |
| 11097 | + return { | |
| 11098 | + type: "throw", | |
| 11099 | + arg: err | |
| 11100 | + }; | |
| 11101 | + } | |
| 7937 | 11102 | } |
| 7938 | - var a = {}; | |
| 11103 | + exports.wrap = wrap; | |
| 11104 | + var ContinueSentinel = {}; | |
| 7939 | 11105 | function Generator() {} |
| 7940 | 11106 | function GeneratorFunction() {} |
| 7941 | 11107 | function GeneratorFunctionPrototype() {} |
| 7942 | - t = Object.getPrototypeOf; | |
| 7943 | - var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () { | |
| 7944 | - return this; | |
| 7945 | - }), t), | |
| 7946 | - u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); | |
| 7947 | - function f(e) { | |
| 7948 | - return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; | |
| 7949 | - } | |
| 7950 | - return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function () { | |
| 11108 | + var IteratorPrototype = {}; | |
| 11109 | + define(IteratorPrototype, iteratorSymbol, function () { | |
| 7951 | 11110 | return this; |
| 7952 | - }), regeneratorDefine(u, "toString", function () { | |
| 7953 | - return "[object Generator]"; | |
| 7954 | - }), (module.exports = _regenerator = function _regenerator() { | |
| 7955 | - return { | |
| 7956 | - w: i, | |
| 7957 | - m: f | |
| 7958 | - }; | |
| 7959 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 7960 | -} | |
| 7961 | -module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7962 | - | |
| 7963 | -/***/ }), | |
| 7964 | - | |
| 7965 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js": | |
| 7966 | -/*!******************************************************************!*\ | |
| 7967 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsync.js ***! | |
| 7968 | - \******************************************************************/ | |
| 7969 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7970 | - | |
| 7971 | -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 7972 | -function _regeneratorAsync(n, e, r, t, o) { | |
| 7973 | - var a = regeneratorAsyncGen(n, e, r, t, o); | |
| 7974 | - return a.next().then(function (n) { | |
| 7975 | - return n.done ? n.value : a.next(); | |
| 7976 | 11111 | }); |
| 7977 | -} | |
| 7978 | -module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7979 | - | |
| 7980 | -/***/ }), | |
| 7981 | - | |
| 7982 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js": | |
| 7983 | -/*!*********************************************************************!*\ | |
| 7984 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js ***! | |
| 7985 | - \*********************************************************************/ | |
| 7986 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7987 | - | |
| 7988 | -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 7989 | -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 7990 | -function _regeneratorAsyncGen(r, e, t, o, n) { | |
| 7991 | - return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise); | |
| 7992 | -} | |
| 7993 | -module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7994 | - | |
| 7995 | -/***/ }), | |
| 7996 | - | |
| 7997 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js": | |
| 7998 | -/*!**************************************************************************!*\ | |
| 7999 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js ***! | |
| 8000 | - \**************************************************************************/ | |
| 8001 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8002 | - | |
| 8003 | -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 8004 | -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 8005 | -function AsyncIterator(t, e) { | |
| 8006 | - function n(r, o, i, f) { | |
| 8007 | - try { | |
| 8008 | - var c = t[r](o), | |
| 8009 | - u = c.value; | |
| 8010 | - return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) { | |
| 8011 | - n("next", t, i, f); | |
| 8012 | - }, function (t) { | |
| 8013 | - n("throw", t, i, f); | |
| 8014 | - }) : e.resolve(u).then(function (t) { | |
| 8015 | - c.value = t, i(c); | |
| 8016 | - }, function (t) { | |
| 8017 | - return n("throw", t, i, f); | |
| 11112 | + var getProto = Object.getPrototypeOf, | |
| 11113 | + NativeIteratorPrototype = getProto && getProto(getProto(values([]))); | |
| 11114 | + NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); | |
| 11115 | + var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); | |
| 11116 | + function defineIteratorMethods(prototype) { | |
| 11117 | + ["next", "throw", "return"].forEach(function (method) { | |
| 11118 | + define(prototype, method, function (arg) { | |
| 11119 | + return this._invoke(method, arg); | |
| 8018 | 11120 | }); |
| 8019 | - } catch (t) { | |
| 8020 | - f(t); | |
| 11121 | + }); | |
| 11122 | + } | |
| 11123 | + function AsyncIterator(generator, PromiseImpl) { | |
| 11124 | + function invoke(method, arg, resolve, reject) { | |
| 11125 | + var record = tryCatch(generator[method], generator, arg); | |
| 11126 | + if ("throw" !== record.type) { | |
| 11127 | + var result = record.arg, | |
| 11128 | + value = result.value; | |
| 11129 | + return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { | |
| 11130 | + invoke("next", value, resolve, reject); | |
| 11131 | + }, function (err) { | |
| 11132 | + invoke("throw", err, resolve, reject); | |
| 11133 | + }) : PromiseImpl.resolve(value).then(function (unwrapped) { | |
| 11134 | + result.value = unwrapped, resolve(result); | |
| 11135 | + }, function (error) { | |
| 11136 | + return invoke("throw", error, resolve, reject); | |
| 11137 | + }); | |
| 11138 | + } | |
| 11139 | + reject(record.arg); | |
| 8021 | 11140 | } |
| 11141 | + var previousPromise; | |
| 11142 | + defineProperty(this, "_invoke", { | |
| 11143 | + value: function value(method, arg) { | |
| 11144 | + function callInvokeWithMethodAndArg() { | |
| 11145 | + return new PromiseImpl(function (resolve, reject) { | |
| 11146 | + invoke(method, arg, resolve, reject); | |
| 11147 | + }); | |
| 11148 | + } | |
| 11149 | + return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); | |
| 11150 | + } | |
| 11151 | + }); | |
| 8022 | 11152 | } |
| 8023 | - var r; | |
| 8024 | - this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { | |
| 8025 | - return this; | |
| 8026 | - })), regeneratorDefine(this, "_invoke", function (t, o, i) { | |
| 8027 | - function f() { | |
| 8028 | - return new e(function (e, r) { | |
| 8029 | - n(t, i, e, r); | |
| 8030 | - }); | |
| 11153 | + function makeInvokeMethod(innerFn, self, context) { | |
| 11154 | + var state = "suspendedStart"; | |
| 11155 | + return function (method, arg) { | |
| 11156 | + if ("executing" === state) throw new Error("Generator is already running"); | |
| 11157 | + if ("completed" === state) { | |
| 11158 | + if ("throw" === method) throw arg; | |
| 11159 | + return doneResult(); | |
| 11160 | + } | |
| 11161 | + for (context.method = method, context.arg = arg;;) { | |
| 11162 | + var delegate = context.delegate; | |
| 11163 | + if (delegate) { | |
| 11164 | + var delegateResult = maybeInvokeDelegate(delegate, context); | |
| 11165 | + if (delegateResult) { | |
| 11166 | + if (delegateResult === ContinueSentinel) continue; | |
| 11167 | + return delegateResult; | |
| 11168 | + } | |
| 11169 | + } | |
| 11170 | + if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { | |
| 11171 | + if ("suspendedStart" === state) throw state = "completed", context.arg; | |
| 11172 | + context.dispatchException(context.arg); | |
| 11173 | + } else "return" === context.method && context.abrupt("return", context.arg); | |
| 11174 | + state = "executing"; | |
| 11175 | + var record = tryCatch(innerFn, self, context); | |
| 11176 | + if ("normal" === record.type) { | |
| 11177 | + if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; | |
| 11178 | + return { | |
| 11179 | + value: record.arg, | |
| 11180 | + done: context.done | |
| 11181 | + }; | |
| 11182 | + } | |
| 11183 | + "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); | |
| 11184 | + } | |
| 11185 | + }; | |
| 11186 | + } | |
| 11187 | + function maybeInvokeDelegate(delegate, context) { | |
| 11188 | + var method = delegate.iterator[context.method]; | |
| 11189 | + if (undefined === method) { | |
| 11190 | + if (context.delegate = null, "throw" === context.method) { | |
| 11191 | + if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; | |
| 11192 | + context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); | |
| 11193 | + } | |
| 11194 | + return ContinueSentinel; | |
| 8031 | 11195 | } |
| 8032 | - return r = r ? r.then(f, f) : f(); | |
| 8033 | - }, !0); | |
| 8034 | -} | |
| 8035 | -module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8036 | - | |
| 8037 | -/***/ }), | |
| 8038 | - | |
| 8039 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js": | |
| 8040 | -/*!*******************************************************************!*\ | |
| 8041 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorDefine.js ***! | |
| 8042 | - \*******************************************************************/ | |
| 8043 | -/***/ ((module) => { | |
| 8044 | - | |
| 8045 | -function _regeneratorDefine(e, r, n, t) { | |
| 8046 | - var i = Object.defineProperty; | |
| 8047 | - try { | |
| 8048 | - i({}, "", {}); | |
| 8049 | - } catch (e) { | |
| 8050 | - i = 0; | |
| 11196 | + var record = tryCatch(method, delegate.iterator, context.arg); | |
| 11197 | + if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; | |
| 11198 | + var info = record.arg; | |
| 11199 | + return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); | |
| 8051 | 11200 | } |
| 8052 | - module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) { | |
| 8053 | - function o(r, n) { | |
| 8054 | - _regeneratorDefine(e, r, function (e) { | |
| 8055 | - return this._invoke(r, n, e); | |
| 8056 | - }); | |
| 11201 | + function pushTryEntry(locs) { | |
| 11202 | + var entry = { | |
| 11203 | + tryLoc: locs[0] | |
| 11204 | + }; | |
| 11205 | + 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); | |
| 11206 | + } | |
| 11207 | + function resetTryEntry(entry) { | |
| 11208 | + var record = entry.completion || {}; | |
| 11209 | + record.type = "normal", delete record.arg, entry.completion = record; | |
| 11210 | + } | |
| 11211 | + function Context(tryLocsList) { | |
| 11212 | + this.tryEntries = [{ | |
| 11213 | + tryLoc: "root" | |
| 11214 | + }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); | |
| 11215 | + } | |
| 11216 | + function values(iterable) { | |
| 11217 | + if (iterable) { | |
| 11218 | + var iteratorMethod = iterable[iteratorSymbol]; | |
| 11219 | + if (iteratorMethod) return iteratorMethod.call(iterable); | |
| 11220 | + if ("function" == typeof iterable.next) return iterable; | |
| 11221 | + if (!isNaN(iterable.length)) { | |
| 11222 | + var i = -1, | |
| 11223 | + next = function next() { | |
| 11224 | + for (; ++i < iterable.length;) { | |
| 11225 | + if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; | |
| 11226 | + } | |
| 11227 | + return next.value = undefined, next.done = !0, next; | |
| 11228 | + }; | |
| 11229 | + return next.next = next; | |
| 11230 | + } | |
| 8057 | 11231 | } |
| 8058 | - r ? i ? i(e, r, { | |
| 8059 | - value: n, | |
| 8060 | - enumerable: !t, | |
| 8061 | - configurable: !t, | |
| 8062 | - writable: !t | |
| 8063 | - }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); | |
| 8064 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t); | |
| 8065 | -} | |
| 8066 | -module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8067 | - | |
| 8068 | -/***/ }), | |
| 8069 | - | |
| 8070 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js": | |
| 8071 | -/*!*****************************************************************!*\ | |
| 8072 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorKeys.js ***! | |
| 8073 | - \*****************************************************************/ | |
| 8074 | -/***/ ((module) => { | |
| 8075 | - | |
| 8076 | -function _regeneratorKeys(e) { | |
| 8077 | - var n = Object(e), | |
| 8078 | - r = []; | |
| 8079 | - for (var t in n) r.unshift(t); | |
| 8080 | - return function e() { | |
| 8081 | - for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; | |
| 8082 | - return e.done = !0, e; | |
| 8083 | - }; | |
| 8084 | -} | |
| 8085 | -module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8086 | - | |
| 8087 | -/***/ }), | |
| 8088 | - | |
| 8089 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js": | |
| 8090 | -/*!********************************************************************!*\ | |
| 8091 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! | |
| 8092 | - \********************************************************************/ | |
| 8093 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8094 | - | |
| 8095 | -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 8096 | -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 8097 | -var regeneratorAsync = __webpack_require__(/*! ./regeneratorAsync.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js"); | |
| 8098 | -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 8099 | -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 8100 | -var regeneratorKeys = __webpack_require__(/*! ./regeneratorKeys.js */ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js"); | |
| 8101 | -var regeneratorValues = __webpack_require__(/*! ./regeneratorValues.js */ "../node_modules/@babel/runtime/helpers/regeneratorValues.js"); | |
| 8102 | -function _regeneratorRuntime() { | |
| 8103 | - "use strict"; | |
| 8104 | - | |
| 8105 | - var r = regenerator(), | |
| 8106 | - e = r.m(_regeneratorRuntime), | |
| 8107 | - t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; | |
| 8108 | - function n(r) { | |
| 8109 | - var e = "function" == typeof r && r.constructor; | |
| 8110 | - return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); | |
| 11232 | + return { | |
| 11233 | + next: doneResult | |
| 11234 | + }; | |
| 8111 | 11235 | } |
| 8112 | - var o = { | |
| 8113 | - "throw": 1, | |
| 8114 | - "return": 2, | |
| 8115 | - "break": 3, | |
| 8116 | - "continue": 3 | |
| 8117 | - }; | |
| 8118 | - function a(r) { | |
| 8119 | - var e, t; | |
| 8120 | - return function (n) { | |
| 8121 | - e || (e = { | |
| 8122 | - stop: function stop() { | |
| 8123 | - return t(n.a, 2); | |
| 8124 | - }, | |
| 8125 | - "catch": function _catch() { | |
| 8126 | - return n.v; | |
| 8127 | - }, | |
| 8128 | - abrupt: function abrupt(r, e) { | |
| 8129 | - return t(n.a, o[r], e); | |
| 8130 | - }, | |
| 8131 | - delegateYield: function delegateYield(r, o, a) { | |
| 8132 | - return e.resultName = o, t(n.d, regeneratorValues(r), a); | |
| 8133 | - }, | |
| 8134 | - finish: function finish(r) { | |
| 8135 | - return t(n.f, r); | |
| 8136 | - } | |
| 8137 | - }, t = function t(r, _t, o) { | |
| 8138 | - n.p = e.prev, n.n = e.next; | |
| 8139 | - try { | |
| 8140 | - return r(_t, o); | |
| 8141 | - } finally { | |
| 8142 | - e.next = n.n; | |
| 8143 | - } | |
| 8144 | - }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; | |
| 8145 | - try { | |
| 8146 | - return r.call(this, e); | |
| 8147 | - } finally { | |
| 8148 | - n.p = e.prev, n.n = e.next; | |
| 8149 | - } | |
| 11236 | + function doneResult() { | |
| 11237 | + return { | |
| 11238 | + value: undefined, | |
| 11239 | + done: !0 | |
| 8150 | 11240 | }; |
| 8151 | 11241 | } |
| 8152 | - return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() { | |
| 11242 | + return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { | |
| 11243 | + value: GeneratorFunctionPrototype, | |
| 11244 | + configurable: !0 | |
| 11245 | + }), defineProperty(GeneratorFunctionPrototype, "constructor", { | |
| 11246 | + value: GeneratorFunction, | |
| 11247 | + configurable: !0 | |
| 11248 | + }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { | |
| 11249 | + var ctor = "function" == typeof genFun && genFun.constructor; | |
| 11250 | + return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); | |
| 11251 | + }, exports.mark = function (genFun) { | |
| 11252 | + return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; | |
| 11253 | + }, exports.awrap = function (arg) { | |
| 8153 | 11254 | return { |
| 8154 | - wrap: function wrap(e, t, n, o) { | |
| 8155 | - return r.w(a(e), t, n, o && o.reverse()); | |
| 8156 | - }, | |
| 8157 | - isGeneratorFunction: n, | |
| 8158 | - mark: r.m, | |
| 8159 | - awrap: function awrap(r, e) { | |
| 8160 | - return new OverloadYield(r, e); | |
| 8161 | - }, | |
| 8162 | - AsyncIterator: regeneratorAsyncIterator, | |
| 8163 | - async: function async(r, e, t, o, u) { | |
| 8164 | - return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u); | |
| 8165 | - }, | |
| 8166 | - keys: regeneratorKeys, | |
| 8167 | - values: regeneratorValues | |
| 11255 | + __await: arg | |
| 8168 | 11256 | }; |
| 8169 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 8170 | -} | |
| 8171 | -module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8172 | - | |
| 8173 | -/***/ }), | |
| 8174 | - | |
| 8175 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorValues.js": | |
| 8176 | -/*!*******************************************************************!*\ | |
| 8177 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorValues.js ***! | |
| 8178 | - \*******************************************************************/ | |
| 8179 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8180 | - | |
| 8181 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 8182 | -function _regeneratorValues(e) { | |
| 8183 | - if (null != e) { | |
| 8184 | - var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], | |
| 8185 | - r = 0; | |
| 8186 | - if (t) return t.call(e); | |
| 8187 | - if ("function" == typeof e.next) return e; | |
| 8188 | - if (!isNaN(e.length)) return { | |
| 8189 | - next: function next() { | |
| 8190 | - return e && r >= e.length && (e = void 0), { | |
| 8191 | - value: e && e[r++], | |
| 8192 | - done: !e | |
| 8193 | - }; | |
| 11257 | + }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { | |
| 11258 | + return this; | |
| 11259 | + }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { | |
| 11260 | + void 0 === PromiseImpl && (PromiseImpl = Promise); | |
| 11261 | + var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); | |
| 11262 | + return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { | |
| 11263 | + return result.done ? result.value : iter.next(); | |
| 11264 | + }); | |
| 11265 | + }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { | |
| 11266 | + return this; | |
| 11267 | + }), define(Gp, "toString", function () { | |
| 11268 | + return "[object Generator]"; | |
| 11269 | + }), exports.keys = function (val) { | |
| 11270 | + var object = Object(val), | |
| 11271 | + keys = []; | |
| 11272 | + for (var key in object) { | |
| 11273 | + keys.push(key); | |
| 11274 | + } | |
| 11275 | + return keys.reverse(), function next() { | |
| 11276 | + for (; keys.length;) { | |
| 11277 | + var key = keys.pop(); | |
| 11278 | + if (key in object) return next.value = key, next.done = !1, next; | |
| 8194 | 11279 | } |
| 11280 | + return next.done = !0, next; | |
| 8195 | 11281 | }; |
| 8196 | - } | |
| 8197 | - throw new TypeError(_typeof(e) + " is not iterable"); | |
| 11282 | + }, exports.values = values, Context.prototype = { | |
| 11283 | + constructor: Context, | |
| 11284 | + reset: function reset(skipTempReset) { | |
| 11285 | + if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { | |
| 11286 | + "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); | |
| 11287 | + } | |
| 11288 | + }, | |
| 11289 | + stop: function stop() { | |
| 11290 | + this.done = !0; | |
| 11291 | + var rootRecord = this.tryEntries[0].completion; | |
| 11292 | + if ("throw" === rootRecord.type) throw rootRecord.arg; | |
| 11293 | + return this.rval; | |
| 11294 | + }, | |
| 11295 | + dispatchException: function dispatchException(exception) { | |
| 11296 | + if (this.done) throw exception; | |
| 11297 | + var context = this; | |
| 11298 | + function handle(loc, caught) { | |
| 11299 | + return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; | |
| 11300 | + } | |
| 11301 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 11302 | + var entry = this.tryEntries[i], | |
| 11303 | + record = entry.completion; | |
| 11304 | + if ("root" === entry.tryLoc) return handle("end"); | |
| 11305 | + if (entry.tryLoc <= this.prev) { | |
| 11306 | + var hasCatch = hasOwn.call(entry, "catchLoc"), | |
| 11307 | + hasFinally = hasOwn.call(entry, "finallyLoc"); | |
| 11308 | + if (hasCatch && hasFinally) { | |
| 11309 | + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); | |
| 11310 | + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); | |
| 11311 | + } else if (hasCatch) { | |
| 11312 | + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); | |
| 11313 | + } else { | |
| 11314 | + if (!hasFinally) throw new Error("try statement without catch or finally"); | |
| 11315 | + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); | |
| 11316 | + } | |
| 11317 | + } | |
| 11318 | + } | |
| 11319 | + }, | |
| 11320 | + abrupt: function abrupt(type, arg) { | |
| 11321 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 11322 | + var entry = this.tryEntries[i]; | |
| 11323 | + if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { | |
| 11324 | + var finallyEntry = entry; | |
| 11325 | + break; | |
| 11326 | + } | |
| 11327 | + } | |
| 11328 | + finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); | |
| 11329 | + var record = finallyEntry ? finallyEntry.completion : {}; | |
| 11330 | + return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); | |
| 11331 | + }, | |
| 11332 | + complete: function complete(record, afterLoc) { | |
| 11333 | + if ("throw" === record.type) throw record.arg; | |
| 11334 | + return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; | |
| 11335 | + }, | |
| 11336 | + finish: function finish(finallyLoc) { | |
| 11337 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 11338 | + var entry = this.tryEntries[i]; | |
| 11339 | + if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; | |
| 11340 | + } | |
| 11341 | + }, | |
| 11342 | + "catch": function _catch(tryLoc) { | |
| 11343 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 11344 | + var entry = this.tryEntries[i]; | |
| 11345 | + if (entry.tryLoc === tryLoc) { | |
| 11346 | + var record = entry.completion; | |
| 11347 | + if ("throw" === record.type) { | |
| 11348 | + var thrown = record.arg; | |
| 11349 | + resetTryEntry(entry); | |
| 11350 | + } | |
| 11351 | + return thrown; | |
| 11352 | + } | |
| 11353 | + } | |
| 11354 | + throw new Error("illegal catch attempt"); | |
| 11355 | + }, | |
| 11356 | + delegateYield: function delegateYield(iterable, resultName, nextLoc) { | |
| 11357 | + return this.delegate = { | |
| 11358 | + iterator: values(iterable), | |
| 11359 | + resultName: resultName, | |
| 11360 | + nextLoc: nextLoc | |
| 11361 | + }, "next" === this.method && (this.arg = undefined), ContinueSentinel; | |
| 11362 | + } | |
| 11363 | + }, exports; | |
| 8198 | 11364 | } |
| 8199 | -module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 11365 | +module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8200 | 11366 | |
| 8201 | 11367 | /***/ }), |
| 8202 | 11368 | |
| 8203 | 11369 | /***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": |
| @@ -8205,12 +11371,14 @@ | ||
| 8205 | 11371 | !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! |
| 8206 | 11372 | \****************************************************************/ |
| 8207 | 11373 | /***/ ((module) => { |
| 8208 | 11374 | |
| 8209 | -function _setPrototypeOf(t, e) { | |
| 8210 | - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | |
| 8211 | - return t.__proto__ = e, t; | |
| 8212 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); | |
| 11375 | +function _setPrototypeOf(o, p) { | |
| 11376 | + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | |
| 11377 | + o.__proto__ = p; | |
| 11378 | + return o; | |
| 11379 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 11380 | + return _setPrototypeOf(o, p); | |
| 8213 | 11381 | } |
| 8214 | 11382 | module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 8215 | 11383 | |
| 8216 | 11384 | /***/ }), |
| @@ -8224,10 +11392,10 @@ | ||
| 8224 | 11392 | var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); |
| 8225 | 11393 | var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); |
| 8226 | 11394 | var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); |
| 8227 | 11395 | var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); |
| 8228 | -function _slicedToArray(r, e) { | |
| 8229 | - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 11396 | +function _slicedToArray(arr, i) { | |
| 11397 | + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | |
| 8230 | 11398 | } |
| 8231 | 11399 | module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 8232 | 11400 | |
| 8233 | 11401 | /***/ }), |
| @@ -8238,53 +11406,19 @@ | ||
| 8238 | 11406 | \***************************************************************/ |
| 8239 | 11407 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 8240 | 11408 | |
| 8241 | 11409 | var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); |
| 8242 | -function _superPropBase(t, o) { | |
| 8243 | - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); | |
| 8244 | - return t; | |
| 11410 | +function _superPropBase(object, property) { | |
| 11411 | + while (!Object.prototype.hasOwnProperty.call(object, property)) { | |
| 11412 | + object = getPrototypeOf(object); | |
| 11413 | + if (object === null) break; | |
| 11414 | + } | |
| 11415 | + return object; | |
| 8245 | 11416 | } |
| 8246 | 11417 | module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 8247 | 11418 | |
| 8248 | 11419 | /***/ }), |
| 8249 | 11420 | |
| 8250 | -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 8251 | -/*!*************************************************************!*\ | |
| 8252 | - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 8253 | - \*************************************************************/ | |
| 8254 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8255 | - | |
| 8256 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 8257 | -function toPrimitive(t, r) { | |
| 8258 | - if ("object" != _typeof(t) || !t) return t; | |
| 8259 | - var e = t[Symbol.toPrimitive]; | |
| 8260 | - if (void 0 !== e) { | |
| 8261 | - var i = e.call(t, r || "default"); | |
| 8262 | - if ("object" != _typeof(i)) return i; | |
| 8263 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 8264 | - } | |
| 8265 | - return ("string" === r ? String : Number)(t); | |
| 8266 | -} | |
| 8267 | -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8268 | - | |
| 8269 | -/***/ }), | |
| 8270 | - | |
| 8271 | -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 8272 | -/*!***************************************************************!*\ | |
| 8273 | - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 8274 | - \***************************************************************/ | |
| 8275 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8276 | - | |
| 8277 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 8278 | -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 8279 | -function toPropertyKey(t) { | |
| 8280 | - var i = toPrimitive(t, "string"); | |
| 8281 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 8282 | -} | |
| 8283 | -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8284 | - | |
| 8285 | -/***/ }), | |
| 8286 | - | |
| 8287 | 11421 | /***/ "../node_modules/@babel/runtime/helpers/typeof.js": |
| 8288 | 11422 | /*!********************************************************!*\ |
| 8289 | 11423 | !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! |
| 8290 | 11424 | \********************************************************/ |
| @@ -8289,16 +11423,16 @@ | ||
| 8289 | 11423 | !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! |
| 8290 | 11424 | \********************************************************/ |
| 8291 | 11425 | /***/ ((module) => { |
| 8292 | 11426 | |
| 8293 | -function _typeof(o) { | |
| 11427 | +function _typeof(obj) { | |
| 8294 | 11428 | "@babel/helpers - typeof"; |
| 8295 | 11429 | |
| 8296 | - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 8297 | - return typeof o; | |
| 8298 | - } : function (o) { | |
| 8299 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 8300 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 11430 | + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { | |
| 11431 | + return typeof obj; | |
| 11432 | + } : function (obj) { | |
| 11433 | + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | |
| 11434 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); | |
| 8301 | 11435 | } |
| 8302 | 11436 | module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 8303 | 11437 | |
| 8304 | 11438 | /***/ }), |
| @@ -8309,14 +11443,15 @@ | ||
| 8309 | 11443 | \****************************************************************************/ |
| 8310 | 11444 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 8311 | 11445 | |
| 8312 | 11446 | var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); |
| 8313 | -function _unsupportedIterableToArray(r, a) { | |
| 8314 | - if (r) { | |
| 8315 | - if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 8316 | - var t = {}.toString.call(r).slice(8, -1); | |
| 8317 | - 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; | |
| 8318 | - } | |
| 11447 | +function _unsupportedIterableToArray(o, minLen) { | |
| 11448 | + if (!o) return; | |
| 11449 | + if (typeof o === "string") return arrayLikeToArray(o, minLen); | |
| 11450 | + var n = Object.prototype.toString.call(o).slice(8, -1); | |
| 11451 | + if (n === "Object" && o.constructor) n = o.constructor.name; | |
| 11452 | + if (n === "Map" || n === "Set") return Array.from(o); | |
| 11453 | + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); | |
| 8319 | 11454 | } |
| 8320 | 11455 | module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 8321 | 11456 | |
| 8322 | 11457 | /***/ }), |
| @@ -8330,29 +11465,33 @@ | ||
| 8330 | 11465 | var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); |
| 8331 | 11466 | var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); |
| 8332 | 11467 | var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime/helpers/isNativeFunction.js"); |
| 8333 | 11468 | var construct = __webpack_require__(/*! ./construct.js */ "../node_modules/@babel/runtime/helpers/construct.js"); |
| 8334 | -function _wrapNativeSuper(t) { | |
| 8335 | - var r = "function" == typeof Map ? new Map() : void 0; | |
| 8336 | - return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) { | |
| 8337 | - if (null === t || !isNativeFunction(t)) return t; | |
| 8338 | - if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); | |
| 8339 | - if (void 0 !== r) { | |
| 8340 | - if (r.has(t)) return r.get(t); | |
| 8341 | - r.set(t, Wrapper); | |
| 11469 | +function _wrapNativeSuper(Class) { | |
| 11470 | + var _cache = typeof Map === "function" ? new Map() : undefined; | |
| 11471 | + module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { | |
| 11472 | + if (Class === null || !isNativeFunction(Class)) return Class; | |
| 11473 | + if (typeof Class !== "function") { | |
| 11474 | + throw new TypeError("Super expression must either be null or a function"); | |
| 8342 | 11475 | } |
| 11476 | + if (typeof _cache !== "undefined") { | |
| 11477 | + if (_cache.has(Class)) return _cache.get(Class); | |
| 11478 | + _cache.set(Class, Wrapper); | |
| 11479 | + } | |
| 8343 | 11480 | function Wrapper() { |
| 8344 | - return construct(t, arguments, getPrototypeOf(this).constructor); | |
| 11481 | + return construct(Class, arguments, getPrototypeOf(this).constructor); | |
| 8345 | 11482 | } |
| 8346 | - return Wrapper.prototype = Object.create(t.prototype, { | |
| 11483 | + Wrapper.prototype = Object.create(Class.prototype, { | |
| 8347 | 11484 | constructor: { |
| 8348 | 11485 | value: Wrapper, |
| 8349 | - enumerable: !1, | |
| 8350 | - writable: !0, | |
| 8351 | - configurable: !0 | |
| 11486 | + enumerable: false, | |
| 11487 | + writable: true, | |
| 11488 | + configurable: true | |
| 8352 | 11489 | } |
| 8353 | - }), setPrototypeOf(Wrapper, t); | |
| 8354 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t); | |
| 11490 | + }); | |
| 11491 | + return setPrototypeOf(Wrapper, Class); | |
| 11492 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 11493 | + return _wrapNativeSuper(Class); | |
| 8355 | 11494 | } |
| 8356 | 11495 | module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 8357 | 11496 | |
| 8358 | 11497 | /***/ }), |
| @@ -8381,17 +11520,108 @@ | ||
| 8381 | 11520 | |
| 8382 | 11521 | |
| 8383 | 11522 | /***/ }), |
| 8384 | 11523 | |
| 8385 | -/***/ "@reduxjs/toolkit": | |
| 11524 | +/***/ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js": | |
| 11525 | +/*!********************************************************************!*\ | |
| 11526 | + !*** ../node_modules/@babel/runtime/helpers/esm/defineProperty.js ***! | |
| 11527 | + \********************************************************************/ | |
| 11528 | +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 11529 | + | |
| 11530 | +"use strict"; | |
| 11531 | +__webpack_require__.r(__webpack_exports__); | |
| 11532 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 11533 | +/* harmony export */ "default": () => (/* binding */ _defineProperty) | |
| 11534 | +/* harmony export */ }); | |
| 11535 | +function _defineProperty(obj, key, value) { | |
| 11536 | + if (key in obj) { | |
| 11537 | + Object.defineProperty(obj, key, { | |
| 11538 | + value: value, | |
| 11539 | + enumerable: true, | |
| 11540 | + configurable: true, | |
| 11541 | + writable: true | |
| 11542 | + }); | |
| 11543 | + } else { | |
| 11544 | + obj[key] = value; | |
| 11545 | + } | |
| 11546 | + return obj; | |
| 11547 | +} | |
| 11548 | + | |
| 11549 | +/***/ }), | |
| 11550 | + | |
| 11551 | +/***/ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js": | |
| 11552 | +/*!*******************************************************************!*\ | |
| 11553 | + !*** ../node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***! | |
| 11554 | + \*******************************************************************/ | |
| 11555 | +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 11556 | + | |
| 11557 | +"use strict"; | |
| 11558 | +__webpack_require__.r(__webpack_exports__); | |
| 11559 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 11560 | +/* harmony export */ "default": () => (/* binding */ _objectSpread2) | |
| 11561 | +/* harmony export */ }); | |
| 11562 | +/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js"); | |
| 11563 | + | |
| 11564 | +function ownKeys(object, enumerableOnly) { | |
| 11565 | + var keys = Object.keys(object); | |
| 11566 | + if (Object.getOwnPropertySymbols) { | |
| 11567 | + var symbols = Object.getOwnPropertySymbols(object); | |
| 11568 | + enumerableOnly && (symbols = symbols.filter(function (sym) { | |
| 11569 | + return Object.getOwnPropertyDescriptor(object, sym).enumerable; | |
| 11570 | + })), keys.push.apply(keys, symbols); | |
| 11571 | + } | |
| 11572 | + return keys; | |
| 11573 | +} | |
| 11574 | +function _objectSpread2(target) { | |
| 11575 | + for (var i = 1; i < arguments.length; i++) { | |
| 11576 | + var source = null != arguments[i] ? arguments[i] : {}; | |
| 11577 | + i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { | |
| 11578 | + (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); | |
| 11579 | + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { | |
| 11580 | + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | |
| 11581 | + }); | |
| 11582 | + } | |
| 11583 | + return target; | |
| 11584 | +} | |
| 11585 | + | |
| 11586 | +/***/ }), | |
| 11587 | + | |
| 11588 | +/***/ "../node_modules/immer/dist/immer.esm.mjs": | |
| 8386 | 11589 | /*!************************************************!*\ |
| 8387 | - !*** external "elementorVendors.reduxToolkit" ***! | |
| 11590 | + !*** ../node_modules/immer/dist/immer.esm.mjs ***! | |
| 8388 | 11591 | \************************************************/ |
| 8389 | -/***/ ((module) => { | |
| 11592 | +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 8390 | 11593 | |
| 8391 | 11594 | "use strict"; |
| 8392 | -module.exports = elementorVendors.reduxToolkit; | |
| 11595 | +__webpack_require__.r(__webpack_exports__); | |
| 11596 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 11597 | +/* harmony export */ "Immer": () => (/* binding */ un), | |
| 11598 | +/* harmony export */ "applyPatches": () => (/* binding */ pn), | |
| 11599 | +/* harmony export */ "castDraft": () => (/* binding */ K), | |
| 11600 | +/* harmony export */ "castImmutable": () => (/* binding */ $), | |
| 11601 | +/* harmony export */ "createDraft": () => (/* binding */ ln), | |
| 11602 | +/* harmony export */ "current": () => (/* binding */ D), | |
| 11603 | +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), | |
| 11604 | +/* harmony export */ "enableAllPlugins": () => (/* binding */ J), | |
| 11605 | +/* harmony export */ "enableES5": () => (/* binding */ N), | |
| 11606 | +/* harmony export */ "enableMapSet": () => (/* binding */ C), | |
| 11607 | +/* harmony export */ "enablePatches": () => (/* binding */ T), | |
| 11608 | +/* harmony export */ "finishDraft": () => (/* binding */ dn), | |
| 11609 | +/* harmony export */ "freeze": () => (/* binding */ d), | |
| 11610 | +/* harmony export */ "immerable": () => (/* binding */ L), | |
| 11611 | +/* harmony export */ "isDraft": () => (/* binding */ r), | |
| 11612 | +/* harmony export */ "isDraftable": () => (/* binding */ t), | |
| 11613 | +/* harmony export */ "nothing": () => (/* binding */ H), | |
| 11614 | +/* harmony export */ "original": () => (/* binding */ e), | |
| 11615 | +/* harmony export */ "produce": () => (/* binding */ fn), | |
| 11616 | +/* harmony export */ "produceWithPatches": () => (/* binding */ cn), | |
| 11617 | +/* harmony export */ "setAutoFreeze": () => (/* binding */ sn), | |
| 11618 | +/* harmony export */ "setUseProxies": () => (/* binding */ vn) | |
| 11619 | +/* harmony export */ }); | |
| 11620 | +function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];if(true){var i=Y[n],o=i?"function"==typeof i?i.apply(null,t):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map((function(n){return"'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(n){return!!n&&!!n[Q]}function t(n){var r;return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var r=Object.getPrototypeOf(n);if(null===r)return!0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!(null===(r=n.constructor)||void 0===r?void 0:r[L])||s(n)||v(n))}function e(t){return r(t)||n(23,t),t[Q].t}function i(n,r,t){void 0===t&&(t=!1),0===o(n)?(t?Object.keys:nn)(n).forEach((function(e){t&&"symbol"==typeof e||r(e,n[e],n)})):n.forEach((function(t,e){return r(e,t,n)}))}function o(n){var r=n[Q];return r?r.i>3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?(n.delete(r),n.add(t)):n[r]=t}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}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 r=rn(n);delete r[Q];for(var t=nn(r),e=0;e<t.length;e++){var i=t[e],o=r[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]})}return Object.create(Object.getPrototypeOf(n),r)}function d(n,e){return void 0===e&&(e=!1),y(n)||r(n)||!t(n)?n:(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0),n)}function h(){n(2)}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r)}function _(){return false||U||n(0),U}function j(n,r){r&&(b("Patches"),n.u=[],n.s=[],n.v=r)}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 r=n[Q];0===r.i||1===r.i?r.j():r.O=!0}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.g||b("ES5").S(e,r,o),o?(i[Q].P&&(O(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b("Patches").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),O(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;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(r,i){return A(n,e,o,r,i,t)})),x(n,o,!1),t&&n.u&&b("Patches").R(e,t,n.u,n.s)}return e.o}function A(e,i,o,a,c,s){if( true&&c===o&&n(5),r(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),!r(v))return;e.m=!1}if(t(c)&&!y(c)){if(!e.h.F&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,r,t){void 0===t&&(t=!1),n.h.F&&n.m&&d(r,t)}function z(n,r){var t=n[Q];return(t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t)}}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,r,t){var e=s(r)?b("MapSet").N(r,t):v(r)?b("MapSet").T(r,t):n.g?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,D:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b("ES5").J(r,t);return(t?t.A:_()).p.push(e),e}function D(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=F(r,c),u.I=!1}else e=F(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t))})),3===c?new Set(e):e}(e)}function F(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function N(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return true&&f(r),en.get(r,n)},set:function(r){var t=this[Q]; true&&f(t),en.set(t,n,r)}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t)}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return!0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return!0;for(var e=0;e<r.length;e++)if(!r.hasOwnProperty(e))return!0;return!1}function f(r){r.O&&n(3,JSON.stringify(p(r)))}var s={};m("ES5",{J:function(n,r){var e=Array.isArray(n),i=function(n,r){if(n){for(var e=Array(r.length),i=0;i<r.length;i++)Object.defineProperty(e,""+i,t(i,!0));return e}var o=rn(r);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=t(f,n||!!o[f].enumerable)}return Object.create(Object.getPrototypeOf(r),o)}(e,n),o={i:e?5:4,A:r?r.A:_(),P:!1,I:!1,D:{},l:r,t:n,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,t,o){o?r(t)&&t[Q].A===n&&e(n.p):(n.u&&function n(r){if(r&&"object"==typeof r){var t=r[Q];if(t){var e=t.t,o=t.k,f=t.D,c=t.i;if(4===c)i(o,(function(r){r!==Q&&(void 0!==e[r]||u(e,r)?f[r]||n(o[r]):(f[r]=!0,k(t)))})),i(e,(function(n){void 0!==o[n]||u(o,n)||(f[n]=!1,k(t))}));else if(5===c){if(a(t)&&(k(t),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++)o.hasOwnProperty(l)||(f[l]=!0),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(!t(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 r=Object.create(Object.getPrototypeOf(n));for(var i in n)r[i]=e(n[i]);return u(n,L)&&(r[L]=n[L]),r}function f(n){return r(n)?e(n):n}var c="add";m("Patches",{$:function(r,t){return t.forEach((function(t){for(var i=t.path,u=t.op,f=r,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(t.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(t.value);default:return delete f[h]}default:n(17,u)}})),r},R:function(n,r,t,e){switch(n.i){case 0:case 4:case 2:return function(n,r,t,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=r.concat(n);t.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,r,t,e);case 5:case 1:return function(n,r,t,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,t];t=s[0],e=s[1]}for(var v=0;v<i.length;v++)if(o[v]&&u[v]!==i[v]){var p=r.concat([v]);t.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=r.concat([l]);t.push({op:c,path:d,value:f(u[l])})}i.length<u.length&&e.push({op:"replace",path:r.concat(["length"]),value:i.length})}(n,r,t,e);case 3:return function(n,r,t,e){var i=n.t,o=n.o,u=0;i.forEach((function(n){if(!o.has(n)){var i=r.concat([u]);t.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=r.concat([u]);t.push({op:c,path:o,value:n}),e.unshift({op:"remove",path:o,value:n})}u++}))}(n,r,t,e)}},M:function(n,r,t,e){t.push({op:"replace",path:[],value:r===H?void 0:r}),e.push({op:"replace",path:[],value:n})}})}function C(){function r(n,r){function t(){this.constructor=n}a(n,r),n.prototype=(t.prototype=r.prototype,new t)}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(r){if(t(r)){var e=R(n.A.h,r,n);n.p.set(r,e),n.o.add(e)}else n.o.add(r)})))}function u(r){r.O&&n(3,JSON.stringify(p(r)))}var a=function(n,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var t in r)r.hasOwnProperty(t)&&(n[t]=r[t])})(n,r)},f=function(){function n(n,r){return this[Q]={i:2,l:r,A:r?r.A:_(),P:!1,I:!1,o:void 0,D:void 0,t:n,k:this,C:!1,O:!1},this}r(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,r){var t=this[Q];return u(t),p(t).has(n)&&p(t).get(n)===r||(e(t),k(t),t.D.set(n,!0),t.o.set(n,r),t.D.set(n,!0)),this},o.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),e(r),k(r),r.t.has(n)?r.D.set(n,!1):r.D.delete(n),r.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(r){n.D.set(r,!1)})),n.o.clear())},o.forEach=function(n,r){var t=this;p(this[Q]).forEach((function(e,i){n.call(r,t.get(i),i,t)}))},o.get=function(n){var r=this[Q];u(r);var i=p(r).get(n);if(r.I||!t(i))return i;if(i!==r.t.get(n))return i;var o=R(r.A.h,i,r);return e(r),r.o.set(n,o),o},o.keys=function(){return p(this[Q]).keys()},o.values=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.values()},n.next=function(){var n=t.next();return n.done?n:{done:!1,value:r.get(n.value)}},n},o.entries=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.entries()},n.next=function(){var n=t.next();if(n.done)return n;var e=r.get(n.value);return{done:!1,value:[n.value,e]}},n},o[V]=function(){return this.entries()},n}(),c=function(){function n(n,r){return this[Q]={i:3,l:r,A:r?r.A:_(),P:!1,I:!1,o:void 0,t:n,k:this,p:new Map,O:!1,C:!1},this}r(n,Set);var t=n.prototype;return Object.defineProperty(t,"size",{get:function(){return p(this[Q]).size}}),t.has=function(n){var r=this[Q];return u(r),r.o?!!r.o.has(n)||!(!r.p.has(n)||!r.o.has(r.p.get(n))):r.t.has(n)},t.add=function(n){var r=this[Q];return u(r),this.has(n)||(o(r),k(r),r.o.add(n)),this},t.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),o(r),k(r),r.o.delete(n)||!!r.p.has(n)&&r.o.delete(r.p.get(n))},t.clear=function(){var n=this[Q];u(n),p(n).size&&(o(n),k(n),n.o.clear())},t.values=function(){var n=this[Q];return u(n),o(n),n.o.values()},t.entries=function(){var n=this[Q];return u(n),o(n),n.o.entries()},t.keys=function(){return this.values()},t[V]=function(){return this.values()},t.forEach=function(n,r){for(var t=this.values(),e=t.next();!e.done;)n.call(r,e.value,e.value,this),e=t.next()},n}();m("MapSet",{N:function(n,r){return new f(n,r)},T:function(n,r){return new c(n,r)}})}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,rn=Object.getOwnPropertyDescriptors||function(n){var r={};return nn(n).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(n,t)})),r},tn={},en={get:function(n,r){if(r===Q)return n;var e=p(n);if(!u(e,r))return function(n,r,t){var e,i=I(r,t);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,r);var i=e[r];return n.I||!t(i)?i:i===z(n.t,r)?(E(n),n.o[r]=R(n.A.h,i,n)):i},has:function(n,r){return r in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,r,t){var e=I(p(n),r);if(null==e?void 0:e.set)return e.set.call(n.k,t),!0;if(!n.P){var i=z(p(n),r),o=null==i?void 0:i[Q];if(o&&o.t===t)return n.o[r]=t,n.D[r]=!1,!0;if(c(t,i)&&(void 0!==t||u(n.t,r)))return!0;E(n),k(n)}return n.o[r]===t&&"number"!=typeof t&&(void 0!==t||r in n.o)||(n.o[r]=t,n.D[r]=!0,!0)},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.D[r]=!1,E(n),k(n)):delete n.D[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12)}},on={};i(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}})),on.deleteProperty=function(r,t){return true&&isNaN(parseInt(t))&&n(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return true&&"length"!==t&&isNaN(parseInt(t))&&n(14),en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.g=B,this.F=!0,this.produce=function(r,i,o){if("function"==typeof r&&"function"!=typeof i){var u=i;i=r;var a=e;return function(n){var r=this;void 0===n&&(n=u);for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var t;return(t=i).call.apply(t,[r,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),t(r)){var c=w(e),s=R(e,r,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(!r||"object"!=typeof r){if(void 0===(f=i(r))&&(f=r),f===H&&(f=void 0),e.F&&d(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l)}return f}n(21,r)},this.produceWithPatches=function(n,r){if("function"==typeof n)return function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))};var t,i,o=e.produce(n,r,(function(n,r){t=n,i=r}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(n){return[n,t,i]})):[o,t,i]},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze)}var i=e.prototype;return i.createDraft=function(e){t(e)||n(8),r(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(r,t){var e=r&&r[Q]; true&&(e&&e.C||n(9),e.I&&n(10));var i=e.A;return j(i,t),P(void 0,i)},i.setAutoFreeze=function(n){this.F=n},i.setUseProxies=function(r){r&&!B&&n(20),this.g=r},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b("Patches").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},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); | |
| 11621 | +//# sourceMappingURL=immer.esm.js.map | |
| 8393 | 11622 | |
| 11623 | + | |
| 8394 | 11624 | /***/ }) |
| 8395 | 11625 | |
| 8396 | 11626 | /******/ }); |
| 8397 | 11627 | /************************************************************************/ |
| @@ -8419,10 +11649,51 @@ | ||
| 8419 | 11649 | /******/ return module.exports; |
| 8420 | 11650 | /******/ } |
| 8421 | 11651 | /******/ |
| 8422 | 11652 | /************************************************************************/ |
| 11653 | +/******/ /* webpack/runtime/define property getters */ | |
| 11654 | +/******/ (() => { | |
| 11655 | +/******/ // define getter functions for harmony exports | |
| 11656 | +/******/ __webpack_require__.d = (exports, definition) => { | |
| 11657 | +/******/ for(var key in definition) { | |
| 11658 | +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { | |
| 11659 | +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); | |
| 11660 | +/******/ } | |
| 11661 | +/******/ } | |
| 11662 | +/******/ }; | |
| 11663 | +/******/ })(); | |
| 11664 | +/******/ | |
| 11665 | +/******/ /* webpack/runtime/global */ | |
| 11666 | +/******/ (() => { | |
| 11667 | +/******/ __webpack_require__.g = (function() { | |
| 11668 | +/******/ if (typeof globalThis === 'object') return globalThis; | |
| 11669 | +/******/ try { | |
| 11670 | +/******/ return this || new Function('return this')(); | |
| 11671 | +/******/ } catch (e) { | |
| 11672 | +/******/ if (typeof window === 'object') return window; | |
| 11673 | +/******/ } | |
| 11674 | +/******/ })(); | |
| 11675 | +/******/ })(); | |
| 11676 | +/******/ | |
| 11677 | +/******/ /* webpack/runtime/hasOwnProperty shorthand */ | |
| 11678 | +/******/ (() => { | |
| 11679 | +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) | |
| 11680 | +/******/ })(); | |
| 11681 | +/******/ | |
| 11682 | +/******/ /* webpack/runtime/make namespace object */ | |
| 11683 | +/******/ (() => { | |
| 11684 | +/******/ // define __esModule on exports | |
| 11685 | +/******/ __webpack_require__.r = (exports) => { | |
| 11686 | +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | |
| 11687 | +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | |
| 11688 | +/******/ } | |
| 11689 | +/******/ Object.defineProperty(exports, '__esModule', { value: true }); | |
| 11690 | +/******/ }; | |
| 11691 | +/******/ })(); | |
| 11692 | +/******/ | |
| 11693 | +/************************************************************************/ | |
| 8423 | 11694 | var __webpack_exports__ = {}; |
| 8424 | -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. | |
| 11695 | +// This entry need to be wrapped in an IIFE because it need to be in strict mode. | |
| 8425 | 11696 | (() => { |
| 8426 | 11697 | "use strict"; |
| 8427 | 11698 | /*!*********************************************!*\ |
| 8428 | 11699 | !*** ../modules/web-cli/assets/js/index.js ***! |