PluginProbe
Elementor Website Builder – more than just a page builder / 3.8.1
Elementor Website Builder – more than just a page builder v3.8.1
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | assets/js/common-modules.js +6713 -2557 4.3.0-beta3 → 3.8.1 View file →
@@ -1,2621 +1,6777 @@
1 -(function(_reduxjs_toolkit) {
1 +/*! elementor - v3.8.1 - 13-11-2022 */
2 +/******/ (() => { // webpackBootstrap
3 +/******/ var __webpack_modules__ = ({
2 4
3 -//#region \0rolldown/runtime.js
4 - var __create = Object.create;
5 - var __defProp = Object.defineProperty;
6 - var __name = (target, value) => __defProp(target, "name", {
7 - value,
8 - configurable: true
9 - });
10 - var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11 - var __getOwnPropNames = Object.getOwnPropertyNames;
12 - var __getProtoOf = Object.getPrototypeOf;
13 - var __hasOwnProp = Object.prototype.hasOwnProperty;
14 - var __esmMin = (fn, res, err) => () => {
15 - if (err) throw err[0];
16 - try {
17 - return fn && (res = fn(fn = 0)), res;
18 - } catch (e) {
19 - throw err = [e], e;
20 - }
21 - };
22 - var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
23 - var __exportAll = (all, no_symbols) => {
24 - let target = {};
25 - for (var name in all) {
26 - __defProp(target, name, {
27 - get: all[name],
28 - enumerable: true
29 - });
30 - }
31 - if (!no_symbols) {
32 - __defProp(target, Symbol.toStringTag, { value: "Module" });
33 - }
34 - return target;
35 - };
36 - var __copyProps = (to, from, except, desc) => {
37 - if (from && typeof from === "object" || typeof from === "function") {
38 - for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
39 - key = keys[i];
40 - if (!__hasOwnProp.call(to, key) && key !== except) {
41 - __defProp(to, key, {
42 - get: ((k) => from[k]).bind(null, key),
43 - enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
44 - });
45 - }
46 - }
47 - }
48 - return to;
49 - };
50 - var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
51 - value: mod,
52 - enumerable: true
53 - }) : target, mod));
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__) => {
54 10
55 -//#endregion
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 */ "TaskAbortError": () => (/* binding */ TaskAbortError),
16 +/* harmony export */ "__DO_NOT_USE__ActionTypes": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.__DO_NOT_USE__ActionTypes),
17 +/* harmony export */ "addListener": () => (/* binding */ addListener),
18 +/* harmony export */ "applyMiddleware": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware),
19 +/* harmony export */ "bindActionCreators": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.bindActionCreators),
20 +/* harmony export */ "clearAllListeners": () => (/* binding */ clearAllListeners),
21 +/* harmony export */ "combineReducers": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers),
22 +/* harmony export */ "compose": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.compose),
23 +/* harmony export */ "configureStore": () => (/* binding */ configureStore),
24 +/* harmony export */ "createAction": () => (/* binding */ createAction),
25 +/* harmony export */ "createAsyncThunk": () => (/* binding */ createAsyncThunk),
26 +/* harmony export */ "createDraftSafeSelector": () => (/* binding */ createDraftSafeSelector),
27 +/* harmony export */ "createEntityAdapter": () => (/* binding */ createEntityAdapter),
28 +/* harmony export */ "createImmutableStateInvariantMiddleware": () => (/* binding */ createImmutableStateInvariantMiddleware),
29 +/* harmony export */ "createListenerMiddleware": () => (/* binding */ createListenerMiddleware),
30 +/* harmony export */ "createNextState": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__["default"]),
31 +/* harmony export */ "createReducer": () => (/* binding */ createReducer),
32 +/* harmony export */ "createSelector": () => (/* reexport safe */ reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector),
33 +/* harmony export */ "createSerializableStateInvariantMiddleware": () => (/* binding */ createSerializableStateInvariantMiddleware),
34 +/* harmony export */ "createSlice": () => (/* binding */ createSlice),
35 +/* harmony export */ "createStore": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.createStore),
36 +/* harmony export */ "current": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.current),
37 +/* harmony export */ "findNonSerializableValue": () => (/* binding */ findNonSerializableValue),
38 +/* harmony export */ "freeze": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.freeze),
39 +/* harmony export */ "getDefaultMiddleware": () => (/* binding */ getDefaultMiddleware),
40 +/* harmony export */ "getType": () => (/* binding */ getType),
41 +/* harmony export */ "isAllOf": () => (/* binding */ isAllOf),
42 +/* harmony export */ "isAnyOf": () => (/* binding */ isAnyOf),
43 +/* harmony export */ "isAsyncThunkAction": () => (/* binding */ isAsyncThunkAction),
44 +/* harmony export */ "isDraft": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.isDraft),
45 +/* harmony export */ "isFulfilled": () => (/* binding */ isFulfilled),
46 +/* harmony export */ "isImmutableDefault": () => (/* binding */ isImmutableDefault),
47 +/* harmony export */ "isPending": () => (/* binding */ isPending),
48 +/* harmony export */ "isPlain": () => (/* binding */ isPlain),
49 +/* harmony export */ "isPlainObject": () => (/* binding */ isPlainObject),
50 +/* harmony export */ "isRejected": () => (/* binding */ isRejected),
51 +/* harmony export */ "isRejectedWithValue": () => (/* binding */ isRejectedWithValue),
52 +/* harmony export */ "legacy_createStore": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.legacy_createStore),
53 +/* harmony export */ "miniSerializeError": () => (/* binding */ miniSerializeError),
54 +/* harmony export */ "nanoid": () => (/* binding */ nanoid),
55 +/* harmony export */ "original": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.original),
56 +/* harmony export */ "removeListener": () => (/* binding */ removeListener),
57 +/* harmony export */ "unwrapResult": () => (/* binding */ unwrapResult)
58 +/* harmony export */ });
59 +/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! immer */ "../node_modules/immer/dist/immer.esm.mjs");
60 +/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "../node_modules/redux/es/redux.js");
61 +/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reselect */ "../node_modules/reselect/es/index.js");
62 +/* harmony import */ var redux_thunk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux-thunk */ "../node_modules/redux-thunk/es/index.js");
63 +var __extends = (undefined && undefined.__extends) || (function () {
64 + var extendStatics = function (d, b) {
65 + extendStatics = Object.setPrototypeOf ||
66 + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
67 + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
68 + return extendStatics(d, b);
69 + };
70 + return function (d, b) {
71 + if (typeof b !== "function" && b !== null)
72 + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
73 + extendStatics(d, b);
74 + function __() { this.constructor = d; }
75 + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
76 + };
77 +})();
78 +var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
79 + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
80 + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
81 + function verb(n) { return function (v) { return step([n, v]); }; }
82 + function step(op) {
83 + if (f) throw new TypeError("Generator is already executing.");
84 + while (_) try {
85 + 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;
86 + if (y = 0, t) op = [op[0] & 2, t.value];
87 + switch (op[0]) {
88 + case 0: case 1: t = op; break;
89 + case 4: _.label++; return { value: op[1], done: false };
90 + case 5: _.label++; y = op[1]; op = [0]; continue;
91 + case 7: op = _.ops.pop(); _.trys.pop(); continue;
92 + default:
93 + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
94 + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
95 + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
96 + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
97 + if (t[2]) _.ops.pop();
98 + _.trys.pop(); continue;
99 + }
100 + op = body.call(thisArg, _);
101 + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
102 + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
103 + }
104 +};
105 +var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) {
106 + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
107 + to[j] = from[i];
108 + return to;
109 +};
110 +var __defProp = Object.defineProperty;
111 +var __defProps = Object.defineProperties;
112 +var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
113 +var __getOwnPropSymbols = Object.getOwnPropertySymbols;
114 +var __hasOwnProp = Object.prototype.hasOwnProperty;
115 +var __propIsEnum = Object.prototype.propertyIsEnumerable;
116 +var __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; };
117 +var __spreadValues = function (a, b) {
118 + for (var prop in b || (b = {}))
119 + if (__hasOwnProp.call(b, prop))
120 + __defNormalProp(a, prop, b[prop]);
121 + if (__getOwnPropSymbols)
122 + for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {
123 + var prop = _c[_i];
124 + if (__propIsEnum.call(b, prop))
125 + __defNormalProp(a, prop, b[prop]);
126 + }
127 + return a;
128 +};
129 +var __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); };
130 +var __async = function (__this, __arguments, generator) {
131 + return new Promise(function (resolve, reject) {
132 + var fulfilled = function (value) {
133 + try {
134 + step(generator.next(value));
135 + }
136 + catch (e) {
137 + reject(e);
138 + }
139 + };
140 + var rejected = function (value) {
141 + try {
142 + step(generator.throw(value));
143 + }
144 + catch (e) {
145 + reject(e);
146 + }
147 + };
148 + var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); };
149 + step((generator = generator.apply(__this, __arguments)).next());
150 + });
151 +};
152 +// src/index.ts
153 +
154 +
155 +
156 +
157 +// src/createDraftSafeSelector.ts
158 +
159 +
160 +var createDraftSafeSelector = function () {
161 + var args = [];
162 + for (var _i = 0; _i < arguments.length; _i++) {
163 + args[_i] = arguments[_i];
164 + }
165 + var selector = reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector.apply(void 0, args);
166 + var wrappedSelector = function (value) {
167 + var rest = [];
168 + for (var _i = 1; _i < arguments.length; _i++) {
169 + rest[_i - 1] = arguments[_i];
170 + }
171 + return selector.apply(void 0, __spreadArray([(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(value) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__.current)(value) : value], rest));
172 + };
173 + return wrappedSelector;
174 +};
175 +// src/configureStore.ts
176 +
177 +// src/devtoolsExtension.ts
178 +
179 +var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () {
180 + if (arguments.length === 0)
181 + return void 0;
182 + if (typeof arguments[0] === "object")
183 + return redux__WEBPACK_IMPORTED_MODULE_0__.compose;
184 + return redux__WEBPACK_IMPORTED_MODULE_0__.compose.apply(null, arguments);
185 +};
186 +var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () {
187 + return function (noop2) {
188 + return noop2;
189 + };
190 +};
191 +// src/isPlainObject.ts
192 +function isPlainObject(value) {
193 + if (typeof value !== "object" || value === null)
194 + return false;
195 + var proto = Object.getPrototypeOf(value);
196 + if (proto === null)
197 + return true;
198 + var baseProto = proto;
199 + while (Object.getPrototypeOf(baseProto) !== null) {
200 + baseProto = Object.getPrototypeOf(baseProto);
201 + }
202 + return proto === baseProto;
203 +}
204 +// src/getDefaultMiddleware.ts
205 +
206 +// src/utils.ts
207 +
208 +function getTimeMeasureUtils(maxDelay, fnName) {
209 + var elapsed = 0;
210 + return {
211 + measureTime: function (fn) {
212 + var started = Date.now();
213 + try {
214 + return fn();
215 + }
216 + finally {
217 + var finished = Date.now();
218 + elapsed += finished - started;
219 + }
220 + },
221 + warnIfExceeded: function () {
222 + if (elapsed > maxDelay) {
223 + 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.");
224 + }
225 + }
226 + };
227 +}
228 +var MiddlewareArray = /** @class */ (function (_super) {
229 + __extends(MiddlewareArray, _super);
230 + function MiddlewareArray() {
231 + var args = [];
232 + for (var _i = 0; _i < arguments.length; _i++) {
233 + args[_i] = arguments[_i];
234 + }
235 + var _this = _super.apply(this, args) || this;
236 + Object.setPrototypeOf(_this, MiddlewareArray.prototype);
237 + return _this;
238 + }
239 + Object.defineProperty(MiddlewareArray, Symbol.species, {
240 + get: function () {
241 + return MiddlewareArray;
242 + },
243 + enumerable: false,
244 + configurable: true
245 + });
246 + MiddlewareArray.prototype.concat = function () {
247 + var arr = [];
248 + for (var _i = 0; _i < arguments.length; _i++) {
249 + arr[_i] = arguments[_i];
250 + }
251 + return _super.prototype.concat.apply(this, arr);
252 + };
253 + MiddlewareArray.prototype.prepend = function () {
254 + var arr = [];
255 + for (var _i = 0; _i < arguments.length; _i++) {
256 + arr[_i] = arguments[_i];
257 + }
258 + if (arr.length === 1 && Array.isArray(arr[0])) {
259 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))();
260 + }
261 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))();
262 + };
263 + return MiddlewareArray;
264 +}(Array));
265 +function freezeDraftable(val) {
266 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(val) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(val, function () {
267 + }) : val;
268 +}
269 +// src/immutableStateInvariantMiddleware.ts
270 +var isProduction = "development" === "production";
271 +var prefix = "Invariant failed";
272 +function invariant(condition, message) {
273 + if (condition) {
274 + return;
275 + }
276 + if (isProduction) {
277 + throw new Error(prefix);
278 + }
279 + throw new Error(prefix + ": " + (message || ""));
280 +}
281 +function stringify(obj, serializer, indent, decycler) {
282 + return JSON.stringify(obj, getSerialize(serializer, decycler), indent);
283 +}
284 +function getSerialize(serializer, decycler) {
285 + var stack = [], keys = [];
286 + if (!decycler)
287 + decycler = function (_, value) {
288 + if (stack[0] === value)
289 + return "[Circular ~]";
290 + return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
291 + };
292 + return function (key, value) {
293 + if (stack.length > 0) {
294 + var thisPos = stack.indexOf(this);
295 + ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
296 + ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
297 + if (~stack.indexOf(value))
298 + value = decycler.call(this, key, value);
299 + }
300 + else
301 + stack.push(value);
302 + return serializer == null ? value : serializer.call(this, key, value);
303 + };
304 +}
305 +function isImmutableDefault(value) {
306 + return typeof value !== "object" || value === null || typeof value === "undefined" || Object.isFrozen(value);
307 +}
308 +function trackForMutations(isImmutable, ignorePaths, obj) {
309 + var trackedProperties = trackProperties(isImmutable, ignorePaths, obj);
310 + return {
311 + detectMutations: function () {
312 + return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);
313 + }
314 + };
315 +}
316 +function trackProperties(isImmutable, ignorePaths, obj, path) {
317 + if (ignorePaths === void 0) { ignorePaths = []; }
318 + if (path === void 0) { path = ""; }
319 + var tracked = { value: obj };
320 + if (!isImmutable(obj)) {
321 + tracked.children = {};
322 + for (var key in obj) {
323 + var childPath = path ? path + "." + key : key;
324 + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {
325 + continue;
326 + }
327 + tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);
328 + }
329 + }
330 + return tracked;
331 +}
332 +function detectMutations(isImmutable, ignorePaths, trackedProperty, obj, sameParentRef, path) {
333 + if (ignorePaths === void 0) { ignorePaths = []; }
334 + if (sameParentRef === void 0) { sameParentRef = false; }
335 + if (path === void 0) { path = ""; }
336 + var prevObj = trackedProperty ? trackedProperty.value : void 0;
337 + var sameRef = prevObj === obj;
338 + if (sameParentRef && !sameRef && !Number.isNaN(obj)) {
339 + return { wasMutated: true, path: path };
340 + }
341 + if (isImmutable(prevObj) || isImmutable(obj)) {
342 + return { wasMutated: false };
343 + }
344 + var keysToDetect = {};
345 + for (var key in trackedProperty.children) {
346 + keysToDetect[key] = true;
347 + }
348 + for (var key in obj) {
349 + keysToDetect[key] = true;
350 + }
351 + for (var key in keysToDetect) {
352 + var childPath = path ? path + "." + key : key;
353 + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {
354 + continue;
355 + }
356 + var result = detectMutations(isImmutable, ignorePaths, trackedProperty.children[key], obj[key], sameRef, childPath);
357 + if (result.wasMutated) {
358 + return result;
359 + }
360 + }
361 + return { wasMutated: false };
362 +}
363 +function createImmutableStateInvariantMiddleware(options) {
364 + if (options === void 0) { options = {}; }
365 + if (false) {}
366 + 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;
367 + ignoredPaths = ignoredPaths || ignore;
368 + var track = trackForMutations.bind(null, isImmutable, ignoredPaths);
369 + return function (_c) {
370 + var getState = _c.getState;
371 + var state = getState();
372 + var tracker = track(state);
373 + var result;
374 + return function (next) { return function (action) {
375 + var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware");
376 + measureUtils.measureTime(function () {
377 + state = getState();
378 + result = tracker.detectMutations();
379 + tracker = track(state);
380 + 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)");
381 + });
382 + var dispatchedAction = next(action);
383 + measureUtils.measureTime(function () {
384 + state = getState();
385 + result = tracker.detectMutations();
386 + tracker = track(state);
387 + 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)");
388 + });
389 + measureUtils.warnIfExceeded();
390 + return dispatchedAction;
391 + }; };
392 + };
393 +}
394 +// src/serializableStateInvariantMiddleware.ts
395 +function isPlain(val) {
396 + var type = typeof val;
397 + return type === "undefined" || val === null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val);
398 +}
399 +function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths) {
400 + if (path === void 0) { path = ""; }
401 + if (isSerializable === void 0) { isSerializable = isPlain; }
402 + if (ignoredPaths === void 0) { ignoredPaths = []; }
403 + var foundNestedSerializable;
404 + if (!isSerializable(value)) {
405 + return {
406 + keyPath: path || "<root>",
407 + value: value
408 + };
409 + }
410 + if (typeof value !== "object" || value === null) {
411 + return false;
412 + }
413 + var entries = getEntries != null ? getEntries(value) : Object.entries(value);
414 + var hasIgnoredPaths = ignoredPaths.length > 0;
415 + for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
416 + var _c = entries_1[_i], key = _c[0], nestedValue = _c[1];
417 + var nestedPath = path ? path + "." + key : key;
418 + if (hasIgnoredPaths && ignoredPaths.indexOf(nestedPath) >= 0) {
419 + continue;
420 + }
421 + if (!isSerializable(nestedValue)) {
422 + return {
423 + keyPath: nestedPath,
424 + value: nestedValue
425 + };
426 + }
427 + if (typeof nestedValue === "object") {
428 + foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths);
429 + if (foundNestedSerializable) {
430 + return foundNestedSerializable;
431 + }
432 + }
433 + }
434 + return false;
435 +}
436 +function createSerializableStateInvariantMiddleware(options) {
437 + if (options === void 0) { options = {}; }
438 + if (false) {}
439 + 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;
440 + return function (storeAPI) { return function (next) { return function (action) {
441 + var result = next(action);
442 + var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware");
443 + if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) {
444 + measureUtils.measureTime(function () {
445 + var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths);
446 + if (foundActionNonSerializableValue) {
447 + var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value;
448 + 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)");
449 + }
450 + });
451 + }
452 + if (!ignoreState) {
453 + measureUtils.measureTime(function () {
454 + var state = storeAPI.getState();
455 + var foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths);
456 + if (foundStateNonSerializableValue) {
457 + var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value;
458 + 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)");
459 + }
460 + });
461 + measureUtils.warnIfExceeded();
462 + }
463 + return result;
464 + }; }; };
465 +}
466 +// src/getDefaultMiddleware.ts
467 +function isBoolean(x) {
468 + return typeof x === "boolean";
469 +}
470 +function curryGetDefaultMiddleware() {
471 + return function curriedGetDefaultMiddleware(options) {
472 + return getDefaultMiddleware(options);
473 + };
474 +}
475 +function getDefaultMiddleware(options) {
476 + if (options === void 0) { options = {}; }
477 + 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;
478 + var middlewareArray = new MiddlewareArray();
479 + if (thunk) {
480 + if (isBoolean(thunk)) {
481 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"]);
482 + }
483 + else {
484 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"].withExtraArgument(thunk.extraArgument));
485 + }
486 + }
487 + if (true) {
488 + if (immutableCheck) {
489 + var immutableOptions = {};
490 + if (!isBoolean(immutableCheck)) {
491 + immutableOptions = immutableCheck;
492 + }
493 + middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions));
494 + }
495 + if (serializableCheck) {
496 + var serializableOptions = {};
497 + if (!isBoolean(serializableCheck)) {
498 + serializableOptions = serializableCheck;
499 + }
500 + middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions));
501 + }
502 + }
503 + return middlewareArray;
504 +}
505 +// src/configureStore.ts
506 +var IS_PRODUCTION = "development" === "production";
507 +function configureStore(options) {
508 + var curriedGetDefaultMiddleware = curryGetDefaultMiddleware();
509 + 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;
510 + var rootReducer;
511 + if (typeof reducer === "function") {
512 + rootReducer = reducer;
513 + }
514 + else if (isPlainObject(reducer)) {
515 + rootReducer = (0,redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers)(reducer);
516 + }
517 + else {
518 + throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');
519 + }
520 + var finalMiddleware = middleware;
521 + if (typeof finalMiddleware === "function") {
522 + finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware);
523 + if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) {
524 + throw new Error("when using a middleware builder function, an array of middleware must be returned");
525 + }
526 + }
527 + if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== "function"; })) {
528 + throw new Error("each middleware provided to configureStore must be a function");
529 + }
530 + var middlewareEnhancer = redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware.apply(void 0, finalMiddleware);
531 + var finalCompose = redux__WEBPACK_IMPORTED_MODULE_0__.compose;
532 + if (devTools) {
533 + finalCompose = composeWithDevTools(__spreadValues({
534 + trace: !IS_PRODUCTION
535 + }, typeof devTools === "object" && devTools));
536 + }
537 + var storeEnhancers = [middlewareEnhancer];
538 + if (Array.isArray(enhancers)) {
539 + storeEnhancers = __spreadArray([middlewareEnhancer], enhancers);
540 + }
541 + else if (typeof enhancers === "function") {
542 + storeEnhancers = enhancers(storeEnhancers);
543 + }
544 + var composedEnhancer = finalCompose.apply(void 0, storeEnhancers);
545 + return (0,redux__WEBPACK_IMPORTED_MODULE_0__.createStore)(rootReducer, preloadedState, composedEnhancer);
546 +}
547 +// src/createAction.ts
548 +function createAction(type, prepareAction) {
549 + function actionCreator() {
550 + var args = [];
551 + for (var _i = 0; _i < arguments.length; _i++) {
552 + args[_i] = arguments[_i];
553 + }
554 + if (prepareAction) {
555 + var prepared = prepareAction.apply(void 0, args);
556 + if (!prepared) {
557 + throw new Error("prepareAction did not return an object");
558 + }
559 + return __spreadValues(__spreadValues({
560 + type: type,
561 + payload: prepared.payload
562 + }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error });
563 + }
564 + return { type: type, payload: args[0] };
565 + }
566 + actionCreator.toString = function () { return "" + type; };
567 + actionCreator.type = type;
568 + actionCreator.match = function (action) { return action.type === type; };
569 + return actionCreator;
570 +}
571 +function isFSA(action) {
572 + return isPlainObject(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey);
573 +}
574 +function isValidKey(key) {
575 + return ["type", "payload", "error", "meta"].indexOf(key) > -1;
576 +}
577 +function getType(actionCreator) {
578 + return "" + actionCreator;
579 +}
580 +// src/createReducer.ts
581 +
582 +// src/mapBuilders.ts
583 +function executeReducerBuilderCallback(builderCallback) {
584 + var actionsMap = {};
585 + var actionMatchers = [];
586 + var defaultCaseReducer;
587 + var builder = {
588 + addCase: function (typeOrActionCreator, reducer) {
589 + if (true) {
590 + if (actionMatchers.length > 0) {
591 + throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");
592 + }
593 + if (defaultCaseReducer) {
594 + throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");
595 + }
596 + }
597 + var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
598 + if (type in actionsMap) {
599 + throw new Error("addCase cannot be called with two reducers for the same action type");
600 + }
601 + actionsMap[type] = reducer;
602 + return builder;
603 + },
604 + addMatcher: function (matcher, reducer) {
605 + if (true) {
606 + if (defaultCaseReducer) {
607 + throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
608 + }
609 + }
610 + actionMatchers.push({ matcher: matcher, reducer: reducer });
611 + return builder;
612 + },
613 + addDefaultCase: function (reducer) {
614 + if (true) {
615 + if (defaultCaseReducer) {
616 + throw new Error("`builder.addDefaultCase` can only be called once");
617 + }
618 + }
619 + defaultCaseReducer = reducer;
620 + return builder;
621 + }
622 + };
623 + builderCallback(builder);
624 + return [actionsMap, actionMatchers, defaultCaseReducer];
625 +}
626 +// src/createReducer.ts
627 +function isStateFunction(x) {
628 + return typeof x === "function";
629 +}
630 +function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) {
631 + if (actionMatchers === void 0) { actionMatchers = []; }
632 + var _c = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2];
633 + var getInitialState;
634 + if (isStateFunction(initialState)) {
635 + getInitialState = function () { return freezeDraftable(initialState()); };
636 + }
637 + else {
638 + var frozenInitialState_1 = freezeDraftable(initialState);
639 + getInitialState = function () { return frozenInitialState_1; };
640 + }
641 + function reducer(state, action) {
642 + if (state === void 0) { state = getInitialState(); }
643 + var caseReducers = __spreadArray([
644 + actionsMap[action.type]
645 + ], finalActionMatchers.filter(function (_c) {
646 + var matcher = _c.matcher;
647 + return matcher(action);
648 + }).map(function (_c) {
649 + var reducer2 = _c.reducer;
650 + return reducer2;
651 + }));
652 + if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) {
653 + caseReducers = [finalDefaultCaseReducer];
654 + }
655 + return caseReducers.reduce(function (previousState, caseReducer) {
656 + if (caseReducer) {
657 + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(previousState)) {
658 + var draft = previousState;
659 + var result = caseReducer(draft, action);
660 + if (typeof result === "undefined") {
661 + return previousState;
662 + }
663 + return result;
664 + }
665 + else if (!(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(previousState)) {
666 + var result = caseReducer(previousState, action);
667 + if (typeof result === "undefined") {
668 + if (previousState === null) {
669 + return previousState;
670 + }
671 + throw Error("A case reducer on a non-draftable value must not return undefined");
672 + }
673 + return result;
674 + }
675 + else {
676 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(previousState, function (draft) {
677 + return caseReducer(draft, action);
678 + });
679 + }
680 + }
681 + return previousState;
682 + }, state);
683 + }
684 + reducer.getInitialState = getInitialState;
685 + return reducer;
686 +}
687 +// src/createSlice.ts
688 +function getType2(slice, actionKey) {
689 + return slice + "/" + actionKey;
690 +}
691 +function createSlice(options) {
692 + var name = options.name;
693 + if (!name) {
694 + throw new Error("`name` is a required option for createSlice");
695 + }
696 + if (typeof process !== "undefined" && "development" === "development") {
697 + if (options.initialState === void 0) {
698 + console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
699 + }
700 + }
701 + var initialState = typeof options.initialState == "function" ? options.initialState : freezeDraftable(options.initialState);
702 + var reducers = options.reducers || {};
703 + var reducerNames = Object.keys(reducers);
704 + var sliceCaseReducersByName = {};
705 + var sliceCaseReducersByType = {};
706 + var actionCreators = {};
707 + reducerNames.forEach(function (reducerName) {
708 + var maybeReducerWithPrepare = reducers[reducerName];
709 + var type = getType2(name, reducerName);
710 + var caseReducer;
711 + var prepareCallback;
712 + if ("reducer" in maybeReducerWithPrepare) {
713 + caseReducer = maybeReducerWithPrepare.reducer;
714 + prepareCallback = maybeReducerWithPrepare.prepare;
715 + }
716 + else {
717 + caseReducer = maybeReducerWithPrepare;
718 + }
719 + sliceCaseReducersByName[reducerName] = caseReducer;
720 + sliceCaseReducersByType[type] = caseReducer;
721 + actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);
722 + });
723 + function buildReducer() {
724 + 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;
725 + var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType);
726 + return createReducer(initialState, finalCaseReducers, actionMatchers, defaultCaseReducer);
727 + }
728 + var _reducer;
729 + return {
730 + name: name,
731 + reducer: function (state, action) {
732 + if (!_reducer)
733 + _reducer = buildReducer();
734 + return _reducer(state, action);
735 + },
736 + actions: actionCreators,
737 + caseReducers: sliceCaseReducersByName,
738 + getInitialState: function () {
739 + if (!_reducer)
740 + _reducer = buildReducer();
741 + return _reducer.getInitialState();
742 + }
743 + };
744 +}
745 +// src/entities/entity_state.ts
746 +function getInitialEntityState() {
747 + return {
748 + ids: [],
749 + entities: {}
750 + };
751 +}
752 +function createInitialStateFactory() {
753 + function getInitialState(additionalState) {
754 + if (additionalState === void 0) { additionalState = {}; }
755 + return Object.assign(getInitialEntityState(), additionalState);
756 + }
757 + return { getInitialState: getInitialState };
758 +}
759 +// src/entities/state_selectors.ts
760 +function createSelectorsFactory() {
761 + function getSelectors(selectState) {
762 + var selectIds = function (state) { return state.ids; };
763 + var selectEntities = function (state) { return state.entities; };
764 + var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); });
765 + var selectId = function (_, id) { return id; };
766 + var selectById = function (entities, id) { return entities[id]; };
767 + var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; });
768 + if (!selectState) {
769 + return {
770 + selectIds: selectIds,
771 + selectEntities: selectEntities,
772 + selectAll: selectAll,
773 + selectTotal: selectTotal,
774 + selectById: createDraftSafeSelector(selectEntities, selectId, selectById)
775 + };
776 + }
777 + var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities);
778 + return {
779 + selectIds: createDraftSafeSelector(selectState, selectIds),
780 + selectEntities: selectGlobalizedEntities,
781 + selectAll: createDraftSafeSelector(selectState, selectAll),
782 + selectTotal: createDraftSafeSelector(selectState, selectTotal),
783 + selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById)
784 + };
785 + }
786 + return { getSelectors: getSelectors };
787 +}
788 +// src/entities/state_adapter.ts
789 +
790 +function createSingleArgumentStateOperator(mutator) {
791 + var operator = createStateOperator(function (_, state) { return mutator(state); });
792 + return function operation(state) {
793 + return operator(state, void 0);
794 + };
795 +}
796 +function createStateOperator(mutator) {
797 + return function operation(state, arg) {
798 + function isPayloadActionArgument(arg2) {
799 + return isFSA(arg2);
800 + }
801 + var runMutator = function (draft) {
802 + if (isPayloadActionArgument(arg)) {
803 + mutator(arg.payload, draft);
804 + }
805 + else {
806 + mutator(arg, draft);
807 + }
808 + };
809 + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(state)) {
810 + runMutator(state);
811 + return state;
812 + }
813 + else {
814 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(state, runMutator);
815 + }
816 + };
817 +}
818 +// src/entities/utils.ts
819 +function selectIdValue(entity, selectId) {
820 + var key = selectId(entity);
821 + if ( true && key === void 0) {
822 + 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());
823 + }
824 + return key;
825 +}
826 +function ensureEntitiesArray(entities) {
827 + if (!Array.isArray(entities)) {
828 + entities = Object.values(entities);
829 + }
830 + return entities;
831 +}
832 +function splitAddedUpdatedEntities(newEntities, selectId, state) {
833 + newEntities = ensureEntitiesArray(newEntities);
834 + var added = [];
835 + var updated = [];
836 + for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) {
837 + var entity = newEntities_1[_i];
838 + var id = selectIdValue(entity, selectId);
839 + if (id in state.entities) {
840 + updated.push({ id: id, changes: entity });
841 + }
842 + else {
843 + added.push(entity);
844 + }
845 + }
846 + return [added, updated];
847 +}
848 +// src/entities/unsorted_state_adapter.ts
849 +function createUnsortedStateAdapter(selectId) {
850 + function addOneMutably(entity, state) {
851 + var key = selectIdValue(entity, selectId);
852 + if (key in state.entities) {
853 + return;
854 + }
855 + state.ids.push(key);
856 + state.entities[key] = entity;
857 + }
858 + function addManyMutably(newEntities, state) {
859 + newEntities = ensureEntitiesArray(newEntities);
860 + for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) {
861 + var entity = newEntities_2[_i];
862 + addOneMutably(entity, state);
863 + }
864 + }
865 + function setOneMutably(entity, state) {
866 + var key = selectIdValue(entity, selectId);
867 + if (!(key in state.entities)) {
868 + state.ids.push(key);
869 + }
870 + state.entities[key] = entity;
871 + }
872 + function setManyMutably(newEntities, state) {
873 + newEntities = ensureEntitiesArray(newEntities);
874 + for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) {
875 + var entity = newEntities_3[_i];
876 + setOneMutably(entity, state);
877 + }
878 + }
879 + function setAllMutably(newEntities, state) {
880 + newEntities = ensureEntitiesArray(newEntities);
881 + state.ids = [];
882 + state.entities = {};
883 + addManyMutably(newEntities, state);
884 + }
885 + function removeOneMutably(key, state) {
886 + return removeManyMutably([key], state);
887 + }
888 + function removeManyMutably(keys, state) {
889 + var didMutate = false;
890 + keys.forEach(function (key) {
891 + if (key in state.entities) {
892 + delete state.entities[key];
893 + didMutate = true;
894 + }
895 + });
896 + if (didMutate) {
897 + state.ids = state.ids.filter(function (id) { return id in state.entities; });
898 + }
899 + }
900 + function removeAllMutably(state) {
901 + Object.assign(state, {
902 + ids: [],
903 + entities: {}
904 + });
905 + }
906 + function takeNewKey(keys, update, state) {
907 + var original2 = state.entities[update.id];
908 + var updated = Object.assign({}, original2, update.changes);
909 + var newKey = selectIdValue(updated, selectId);
910 + var hasNewKey = newKey !== update.id;
911 + if (hasNewKey) {
912 + keys[update.id] = newKey;
913 + delete state.entities[update.id];
914 + }
915 + state.entities[newKey] = updated;
916 + return hasNewKey;
917 + }
918 + function updateOneMutably(update, state) {
919 + return updateManyMutably([update], state);
920 + }
921 + function updateManyMutably(updates, state) {
922 + var newKeys = {};
923 + var updatesPerEntity = {};
924 + updates.forEach(function (update) {
925 + if (update.id in state.entities) {
926 + updatesPerEntity[update.id] = {
927 + id: update.id,
928 + changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes)
929 + };
930 + }
931 + });
932 + updates = Object.values(updatesPerEntity);
933 + var didMutateEntities = updates.length > 0;
934 + if (didMutateEntities) {
935 + var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0;
936 + if (didMutateIds) {
937 + state.ids = state.ids.map(function (id) { return newKeys[id] || id; });
938 + }
939 + }
940 + }
941 + function upsertOneMutably(entity, state) {
942 + return upsertManyMutably([entity], state);
943 + }
944 + function upsertManyMutably(newEntities, state) {
945 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
946 + updateManyMutably(updated, state);
947 + addManyMutably(added, state);
948 + }
949 + return {
950 + removeAll: createSingleArgumentStateOperator(removeAllMutably),
951 + addOne: createStateOperator(addOneMutably),
952 + addMany: createStateOperator(addManyMutably),
953 + setOne: createStateOperator(setOneMutably),
954 + setMany: createStateOperator(setManyMutably),
955 + setAll: createStateOperator(setAllMutably),
956 + updateOne: createStateOperator(updateOneMutably),
957 + updateMany: createStateOperator(updateManyMutably),
958 + upsertOne: createStateOperator(upsertOneMutably),
959 + upsertMany: createStateOperator(upsertManyMutably),
960 + removeOne: createStateOperator(removeOneMutably),
961 + removeMany: createStateOperator(removeManyMutably)
962 + };
963 +}
964 +// src/entities/sorted_state_adapter.ts
965 +function createSortedStateAdapter(selectId, sort) {
966 + var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll;
967 + function addOneMutably(entity, state) {
968 + return addManyMutably([entity], state);
969 + }
970 + function addManyMutably(newEntities, state) {
971 + newEntities = ensureEntitiesArray(newEntities);
972 + var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); });
973 + if (models.length !== 0) {
974 + merge(models, state);
975 + }
976 + }
977 + function setOneMutably(entity, state) {
978 + return setManyMutably([entity], state);
979 + }
980 + function setManyMutably(newEntities, state) {
981 + newEntities = ensureEntitiesArray(newEntities);
982 + if (newEntities.length !== 0) {
983 + merge(newEntities, state);
984 + }
985 + }
986 + function setAllMutably(newEntities, state) {
987 + newEntities = ensureEntitiesArray(newEntities);
988 + state.entities = {};
989 + state.ids = [];
990 + addManyMutably(newEntities, state);
991 + }
992 + function updateOneMutably(update, state) {
993 + return updateManyMutably([update], state);
994 + }
995 + function updateManyMutably(updates, state) {
996 + var appliedUpdates = false;
997 + for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) {
998 + var update = updates_1[_i];
999 + var entity = state.entities[update.id];
1000 + if (!entity) {
1001 + continue;
1002 + }
1003 + appliedUpdates = true;
1004 + Object.assign(entity, update.changes);
1005 + var newId = selectId(entity);
1006 + if (update.id !== newId) {
1007 + delete state.entities[update.id];
1008 + state.entities[newId] = entity;
1009 + }
1010 + }
1011 + if (appliedUpdates) {
1012 + resortEntities(state);
1013 + }
1014 + }
1015 + function upsertOneMutably(entity, state) {
1016 + return upsertManyMutably([entity], state);
1017 + }
1018 + function upsertManyMutably(newEntities, state) {
1019 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
1020 + updateManyMutably(updated, state);
1021 + addManyMutably(added, state);
1022 + }
1023 + function areArraysEqual(a, b) {
1024 + if (a.length !== b.length) {
1025 + return false;
1026 + }
1027 + for (var i = 0; i < a.length && i < b.length; i++) {
1028 + if (a[i] === b[i]) {
1029 + continue;
1030 + }
1031 + return false;
1032 + }
1033 + return true;
1034 + }
1035 + function merge(models, state) {
1036 + models.forEach(function (model) {
1037 + state.entities[selectId(model)] = model;
1038 + });
1039 + resortEntities(state);
1040 + }
1041 + function resortEntities(state) {
1042 + var allEntities = Object.values(state.entities);
1043 + allEntities.sort(sort);
1044 + var newSortedIds = allEntities.map(selectId);
1045 + var ids = state.ids;
1046 + if (!areArraysEqual(ids, newSortedIds)) {
1047 + state.ids = newSortedIds;
1048 + }
1049 + }
1050 + return {
1051 + removeOne: removeOne,
1052 + removeMany: removeMany,
1053 + removeAll: removeAll,
1054 + addOne: createStateOperator(addOneMutably),
1055 + updateOne: createStateOperator(updateOneMutably),
1056 + upsertOne: createStateOperator(upsertOneMutably),
1057 + setOne: createStateOperator(setOneMutably),
1058 + setMany: createStateOperator(setManyMutably),
1059 + setAll: createStateOperator(setAllMutably),
1060 + addMany: createStateOperator(addManyMutably),
1061 + updateMany: createStateOperator(updateManyMutably),
1062 + upsertMany: createStateOperator(upsertManyMutably)
1063 + };
1064 +}
1065 +// src/entities/create_adapter.ts
1066 +function createEntityAdapter(options) {
1067 + if (options === void 0) { options = {}; }
1068 + var _c = __spreadValues({
1069 + sortComparer: false,
1070 + selectId: function (instance) { return instance.id; }
1071 + }, options), selectId = _c.selectId, sortComparer = _c.sortComparer;
1072 + var stateFactory = createInitialStateFactory();
1073 + var selectorsFactory = createSelectorsFactory();
1074 + var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);
1075 + return __spreadValues(__spreadValues(__spreadValues({
1076 + selectId: selectId,
1077 + sortComparer: sortComparer
1078 + }, stateFactory), selectorsFactory), stateAdapter);
1079 +}
1080 +// src/nanoid.ts
1081 +var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
1082 +var nanoid = function (size) {
1083 + if (size === void 0) { size = 21; }
1084 + var id = "";
1085 + var i = size;
1086 + while (i--) {
1087 + id += urlAlphabet[Math.random() * 64 | 0];
1088 + }
1089 + return id;
1090 +};
1091 +// src/createAsyncThunk.ts
1092 +var commonProperties = [
1093 + "name",
1094 + "message",
1095 + "stack",
1096 + "code"
1097 +];
1098 +var RejectWithValue = /** @class */ (function () {
1099 + function RejectWithValue(payload, meta) {
1100 + this.payload = payload;
1101 + this.meta = meta;
1102 + }
1103 + return RejectWithValue;
1104 +}());
1105 +var FulfillWithMeta = /** @class */ (function () {
1106 + function FulfillWithMeta(payload, meta) {
1107 + this.payload = payload;
1108 + this.meta = meta;
1109 + }
1110 + return FulfillWithMeta;
1111 +}());
1112 +var miniSerializeError = function (value) {
1113 + if (typeof value === "object" && value !== null) {
1114 + var simpleError = {};
1115 + for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) {
1116 + var property = commonProperties_1[_i];
1117 + if (typeof value[property] === "string") {
1118 + simpleError[property] = value[property];
1119 + }
1120 + }
1121 + return simpleError;
1122 + }
1123 + return { message: String(value) };
1124 +};
1125 +function createAsyncThunk(typePrefix, payloadCreator, options) {
1126 + var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) { return ({
1127 + payload: payload,
1128 + meta: __spreadProps(__spreadValues({}, meta || {}), {
1129 + arg: arg,
1130 + requestId: requestId,
1131 + requestStatus: "fulfilled"
1132 + })
1133 + }); });
1134 + var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) { return ({
1135 + payload: void 0,
1136 + meta: __spreadProps(__spreadValues({}, meta || {}), {
1137 + arg: arg,
1138 + requestId: requestId,
1139 + requestStatus: "pending"
1140 + })
1141 + }); });
1142 + var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) { return ({
1143 + payload: payload,
1144 + error: (options && options.serializeError || miniSerializeError)(error || "Rejected"),
1145 + meta: __spreadProps(__spreadValues({}, meta || {}), {
1146 + arg: arg,
1147 + requestId: requestId,
1148 + rejectedWithValue: !!payload,
1149 + requestStatus: "rejected",
1150 + aborted: (error == null ? void 0 : error.name) === "AbortError",
1151 + condition: (error == null ? void 0 : error.name) === "ConditionError"
1152 + })
1153 + }); });
1154 + var displayedWarning = false;
1155 + var AC = typeof AbortController !== "undefined" ? AbortController : /** @class */ (function () {
1156 + function class_1() {
1157 + this.signal = {
1158 + aborted: false,
1159 + addEventListener: function () {
1160 + },
1161 + dispatchEvent: function () {
1162 + return false;
1163 + },
1164 + onabort: function () {
1165 + },
1166 + removeEventListener: function () {
1167 + },
1168 + reason: void 0,
1169 + throwIfAborted: function () {
1170 + }
1171 + };
1172 + }
1173 + class_1.prototype.abort = function () {
1174 + if (true) {
1175 + if (!displayedWarning) {
1176 + displayedWarning = true;
1177 + 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'.");
1178 + }
1179 + }
1180 + };
1181 + return class_1;
1182 + }());
1183 + function actionCreator(arg) {
1184 + return function (dispatch, getState, extra) {
1185 + var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();
1186 + var abortController = new AC();
1187 + var abortReason;
1188 + var abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({ name: "AbortError", message: abortReason || "Aborted" }); }); });
1189 + var started = false;
1190 + function abort(reason) {
1191 + if (started) {
1192 + abortReason = reason;
1193 + abortController.abort();
1194 + }
1195 + }
1196 + var promise = function () {
1197 + return __async(this, null, function () {
1198 + var _a, _b, finalAction, conditionResult, err_1, skipDispatch;
1199 + return __generator(this, function (_c) {
1200 + switch (_c.label) {
1201 + case 0:
1202 + _c.trys.push([0, 4, , 5]);
1203 + conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra });
1204 + if (!isThenable(conditionResult)) return [3 /*break*/, 2];
1205 + return [4 /*yield*/, conditionResult];
1206 + case 1:
1207 + conditionResult = _c.sent();
1208 + _c.label = 2;
1209 + case 2:
1210 + if (conditionResult === false) {
1211 + throw {
1212 + name: "ConditionError",
1213 + message: "Aborted due to condition callback returning false."
1214 + };
1215 + }
1216 + started = true;
1217 + 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 })));
1218 + return [4 /*yield*/, Promise.race([
1219 + abortedPromise,
1220 + Promise.resolve(payloadCreator(arg, {
1221 + dispatch: dispatch,
1222 + getState: getState,
1223 + extra: extra,
1224 + requestId: requestId,
1225 + signal: abortController.signal,
1226 + rejectWithValue: function (value, meta) {
1227 + return new RejectWithValue(value, meta);
1228 + },
1229 + fulfillWithValue: function (value, meta) {
1230 + return new FulfillWithMeta(value, meta);
1231 + }
1232 + })).then(function (result) {
1233 + if (result instanceof RejectWithValue) {
1234 + throw result;
1235 + }
1236 + if (result instanceof FulfillWithMeta) {
1237 + return fulfilled(result.payload, requestId, arg, result.meta);
1238 + }
1239 + return fulfilled(result, requestId, arg);
1240 + })
1241 + ])];
1242 + case 3:
1243 + finalAction = _c.sent();
1244 + return [3 /*break*/, 5];
1245 + case 4:
1246 + err_1 = _c.sent();
1247 + finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg);
1248 + return [3 /*break*/, 5];
1249 + case 5:
1250 + skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;
1251 + if (!skipDispatch) {
1252 + dispatch(finalAction);
1253 + }
1254 + return [2 /*return*/, finalAction];
1255 + }
1256 + });
1257 + });
1258 + }();
1259 + return Object.assign(promise, {
1260 + abort: abort,
1261 + requestId: requestId,
1262 + arg: arg,
1263 + unwrap: function () {
1264 + return promise.then(unwrapResult);
1265 + }
1266 + });
1267 + };
1268 + }
1269 + return Object.assign(actionCreator, {
1270 + pending: pending,
1271 + rejected: rejected,
1272 + fulfilled: fulfilled,
1273 + typePrefix: typePrefix
1274 + });
1275 +}
1276 +function unwrapResult(action) {
1277 + if (action.meta && action.meta.rejectedWithValue) {
1278 + throw action.payload;
1279 + }
1280 + if (action.error) {
1281 + throw action.error;
1282 + }
1283 + return action.payload;
1284 +}
1285 +function isThenable(value) {
1286 + return value !== null && typeof value === "object" && typeof value.then === "function";
1287 +}
1288 +// src/tsHelpers.ts
1289 +var hasMatchFunction = function (v) {
1290 + return v && typeof v.match === "function";
1291 +};
1292 +// src/matchers.ts
1293 +var matches = function (matcher, action) {
1294 + if (hasMatchFunction(matcher)) {
1295 + return matcher.match(action);
1296 + }
1297 + else {
1298 + return matcher(action);
1299 + }
1300 +};
1301 +function isAnyOf() {
1302 + var matchers = [];
1303 + for (var _i = 0; _i < arguments.length; _i++) {
1304 + matchers[_i] = arguments[_i];
1305 + }
1306 + return function (action) {
1307 + return matchers.some(function (matcher) { return matches(matcher, action); });
1308 + };
1309 +}
1310 +function isAllOf() {
1311 + var matchers = [];
1312 + for (var _i = 0; _i < arguments.length; _i++) {
1313 + matchers[_i] = arguments[_i];
1314 + }
1315 + return function (action) {
1316 + return matchers.every(function (matcher) { return matches(matcher, action); });
1317 + };
1318 +}
1319 +function hasExpectedRequestMetadata(action, validStatus) {
1320 + if (!action || !action.meta)
1321 + return false;
1322 + var hasValidRequestId = typeof action.meta.requestId === "string";
1323 + var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
1324 + return hasValidRequestId && hasValidRequestStatus;
1325 +}
1326 +function isAsyncThunkArray(a) {
1327 + return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0];
1328 +}
1329 +function isPending() {
1330 + var asyncThunks = [];
1331 + for (var _i = 0; _i < arguments.length; _i++) {
1332 + asyncThunks[_i] = arguments[_i];
1333 + }
1334 + if (asyncThunks.length === 0) {
1335 + return function (action) { return hasExpectedRequestMetadata(action, ["pending"]); };
1336 + }
1337 + if (!isAsyncThunkArray(asyncThunks)) {
1338 + return isPending()(asyncThunks[0]);
1339 + }
1340 + return function (action) {
1341 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; });
1342 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
1343 + return combinedMatcher(action);
1344 + };
1345 +}
1346 +function isRejected() {
1347 + var asyncThunks = [];
1348 + for (var _i = 0; _i < arguments.length; _i++) {
1349 + asyncThunks[_i] = arguments[_i];
1350 + }
1351 + if (asyncThunks.length === 0) {
1352 + return function (action) { return hasExpectedRequestMetadata(action, ["rejected"]); };
1353 + }
1354 + if (!isAsyncThunkArray(asyncThunks)) {
1355 + return isRejected()(asyncThunks[0]);
1356 + }
1357 + return function (action) {
1358 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; });
1359 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
1360 + return combinedMatcher(action);
1361 + };
1362 +}
1363 +function isRejectedWithValue() {
1364 + var asyncThunks = [];
1365 + for (var _i = 0; _i < arguments.length; _i++) {
1366 + asyncThunks[_i] = arguments[_i];
1367 + }
1368 + var hasFlag = function (action) {
1369 + return action && action.meta && action.meta.rejectedWithValue;
1370 + };
1371 + if (asyncThunks.length === 0) {
1372 + return function (action) {
1373 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
1374 + return combinedMatcher(action);
1375 + };
1376 + }
1377 + if (!isAsyncThunkArray(asyncThunks)) {
1378 + return isRejectedWithValue()(asyncThunks[0]);
1379 + }
1380 + return function (action) {
1381 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
1382 + return combinedMatcher(action);
1383 + };
1384 +}
1385 +function isFulfilled() {
1386 + var asyncThunks = [];
1387 + for (var _i = 0; _i < arguments.length; _i++) {
1388 + asyncThunks[_i] = arguments[_i];
1389 + }
1390 + if (asyncThunks.length === 0) {
1391 + return function (action) { return hasExpectedRequestMetadata(action, ["fulfilled"]); };
1392 + }
1393 + if (!isAsyncThunkArray(asyncThunks)) {
1394 + return isFulfilled()(asyncThunks[0]);
1395 + }
1396 + return function (action) {
1397 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; });
1398 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
1399 + return combinedMatcher(action);
1400 + };
1401 +}
1402 +function isAsyncThunkAction() {
1403 + var asyncThunks = [];
1404 + for (var _i = 0; _i < arguments.length; _i++) {
1405 + asyncThunks[_i] = arguments[_i];
1406 + }
1407 + if (asyncThunks.length === 0) {
1408 + return function (action) { return hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]); };
1409 + }
1410 + if (!isAsyncThunkArray(asyncThunks)) {
1411 + return isAsyncThunkAction()(asyncThunks[0]);
1412 + }
1413 + return function (action) {
1414 + var matchers = [];
1415 + for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) {
1416 + var asyncThunk = asyncThunks_1[_i];
1417 + matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled);
1418 + }
1419 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
1420 + return combinedMatcher(action);
1421 + };
1422 +}
1423 +// src/listenerMiddleware/utils.ts
1424 +var assertFunction = function (func, expected) {
1425 + if (typeof func !== "function") {
1426 + throw new TypeError(expected + " is not a function");
1427 + }
1428 +};
1429 +var noop = function () {
1430 +};
1431 +var catchRejection = function (promise, onError) {
1432 + if (onError === void 0) { onError = noop; }
1433 + promise.catch(onError);
1434 + return promise;
1435 +};
1436 +var addAbortSignalListener = function (abortSignal, callback) {
1437 + abortSignal.addEventListener("abort", callback, { once: true });
1438 +};
1439 +var abortControllerWithReason = function (abortController, reason) {
1440 + var signal = abortController.signal;
1441 + if (signal.aborted) {
1442 + return;
1443 + }
1444 + if (!("reason" in signal)) {
1445 + Object.defineProperty(signal, "reason", {
1446 + enumerable: true,
1447 + value: reason,
1448 + configurable: true,
1449 + writable: true
1450 + });
1451 + }
1452 + ;
1453 + abortController.abort(reason);
1454 +};
1455 +// src/listenerMiddleware/exceptions.ts
1456 +var task = "task";
1457 +var listener = "listener";
1458 +var completed = "completed";
1459 +var cancelled = "cancelled";
1460 +var taskCancelled = "task-" + cancelled;
1461 +var taskCompleted = "task-" + completed;
1462 +var listenerCancelled = listener + "-" + cancelled;
1463 +var listenerCompleted = listener + "-" + completed;
1464 +var TaskAbortError = /** @class */ (function () {
1465 + function TaskAbortError(code) {
1466 + this.code = code;
1467 + this.name = "TaskAbortError";
1468 + this.message = task + " " + cancelled + " (reason: " + code + ")";
1469 + }
1470 + return TaskAbortError;
1471 +}());
1472 +// src/listenerMiddleware/task.ts
1473 +var validateActive = function (signal) {
1474 + if (signal.aborted) {
1475 + throw new TaskAbortError(signal.reason);
1476 + }
1477 +};
1478 +var promisifyAbortSignal = function (signal) {
1479 + return catchRejection(new Promise(function (_, reject) {
1480 + var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); };
1481 + if (signal.aborted) {
1482 + notifyRejection();
1483 + }
1484 + else {
1485 + addAbortSignalListener(signal, notifyRejection);
1486 + }
1487 + }));
1488 +};
1489 +var runTask = function (task2, cleanUp) { return __async(void 0, null, function () {
1490 + var value, error_1;
1491 + return __generator(this, function (_c) {
1492 + switch (_c.label) {
1493 + case 0:
1494 + _c.trys.push([0, 3, 4, 5]);
1495 + return [4 /*yield*/, Promise.resolve()];
1496 + case 1:
1497 + _c.sent();
1498 + return [4 /*yield*/, task2()];
1499 + case 2:
1500 + value = _c.sent();
1501 + return [2 /*return*/, {
1502 + status: "ok",
1503 + value: value
1504 + }];
1505 + case 3:
1506 + error_1 = _c.sent();
1507 + return [2 /*return*/, {
1508 + status: error_1 instanceof TaskAbortError ? "cancelled" : "rejected",
1509 + error: error_1
1510 + }];
1511 + case 4:
1512 + cleanUp == null ? void 0 : cleanUp();
1513 + return [7 /*endfinally*/];
1514 + case 5: return [2 /*return*/];
1515 + }
1516 + });
1517 +}); };
1518 +var createPause = function (signal) {
1519 + return function (promise) {
1520 + return catchRejection(Promise.race([promisifyAbortSignal(signal), promise]).then(function (output) {
1521 + validateActive(signal);
1522 + return output;
1523 + }));
1524 + };
1525 +};
1526 +var createDelay = function (signal) {
1527 + var pause = createPause(signal);
1528 + return function (timeoutMs) {
1529 + return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); }));
1530 + };
1531 +};
1532 +// src/listenerMiddleware/index.ts
1533 +var assign = Object.assign;
1534 +var INTERNAL_NIL_TOKEN = {};
1535 +var alm = "listenerMiddleware";
1536 +var createFork = function (parentAbortSignal) {
1537 + var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); };
1538 + return function (taskExecutor) {
1539 + assertFunction(taskExecutor, "taskExecutor");
1540 + var childAbortController = new AbortController();
1541 + linkControllers(childAbortController);
1542 + var result = runTask(function () { return __async(void 0, null, function () {
1543 + var result2;
1544 + return __generator(this, function (_c) {
1545 + switch (_c.label) {
1546 + case 0:
1547 + validateActive(parentAbortSignal);
1548 + validateActive(childAbortController.signal);
1549 + return [4 /*yield*/, taskExecutor({
1550 + pause: createPause(childAbortController.signal),
1551 + delay: createDelay(childAbortController.signal),
1552 + signal: childAbortController.signal
1553 + })];
1554 + case 1:
1555 + result2 = _c.sent();
1556 + validateActive(childAbortController.signal);
1557 + return [2 /*return*/, result2];
1558 + }
1559 + });
1560 + }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); });
1561 + return {
1562 + result: createPause(parentAbortSignal)(result),
1563 + cancel: function () {
1564 + abortControllerWithReason(childAbortController, taskCancelled);
1565 + }
1566 + };
1567 + };
1568 +};
1569 +var createTakePattern = function (startListening, signal) {
1570 + var take = function (predicate, timeout) { return __async(void 0, null, function () {
1571 + var unsubscribe, tuplePromise, promises, output;
1572 + return __generator(this, function (_c) {
1573 + switch (_c.label) {
1574 + case 0:
1575 + validateActive(signal);
1576 + unsubscribe = function () {
1577 + };
1578 + tuplePromise = new Promise(function (resolve) {
1579 + unsubscribe = startListening({
1580 + predicate: predicate,
1581 + effect: function (action, listenerApi) {
1582 + listenerApi.unsubscribe();
1583 + resolve([
1584 + action,
1585 + listenerApi.getState(),
1586 + listenerApi.getOriginalState()
1587 + ]);
1588 + }
1589 + });
1590 + });
1591 + promises = [
1592 + promisifyAbortSignal(signal),
1593 + tuplePromise
1594 + ];
1595 + if (timeout != null) {
1596 + promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); }));
1597 + }
1598 + _c.label = 1;
1599 + case 1:
1600 + _c.trys.push([1, , 3, 4]);
1601 + return [4 /*yield*/, Promise.race(promises)];
1602 + case 2:
1603 + output = _c.sent();
1604 + validateActive(signal);
1605 + return [2 /*return*/, output];
1606 + case 3:
1607 + unsubscribe();
1608 + return [7 /*endfinally*/];
1609 + case 4: return [2 /*return*/];
1610 + }
1611 + });
1612 + }); };
1613 + return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); };
1614 +};
1615 +var getListenerEntryPropsFrom = function (options) {
1616 + var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect;
1617 + if (type) {
1618 + predicate = createAction(type).match;
1619 + }
1620 + else if (actionCreator) {
1621 + type = actionCreator.type;
1622 + predicate = actionCreator.match;
1623 + }
1624 + else if (matcher) {
1625 + predicate = matcher;
1626 + }
1627 + else if (predicate) {
1628 + }
1629 + else {
1630 + throw new Error("Creating or removing a listener requires one of the known fields for matching an action");
1631 + }
1632 + assertFunction(effect, "options.listener");
1633 + return { predicate: predicate, type: type, effect: effect };
1634 +};
1635 +var createListenerEntry = function (options) {
1636 + var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect;
1637 + var id = nanoid();
1638 + var entry = {
1639 + id: id,
1640 + effect: effect,
1641 + type: type,
1642 + predicate: predicate,
1643 + pending: new Set(),
1644 + unsubscribe: function () {
1645 + throw new Error("Unsubscribe not initialized");
1646 + }
1647 + };
1648 + return entry;
1649 +};
1650 +var createClearListenerMiddleware = function (listenerMap) {
1651 + return function () {
1652 + listenerMap.forEach(cancelActiveListeners);
1653 + listenerMap.clear();
1654 + };
1655 +};
1656 +var safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) {
1657 + try {
1658 + errorHandler(errorToNotify, errorInfo);
1659 + }
1660 + catch (errorHandlerError) {
1661 + setTimeout(function () {
1662 + throw errorHandlerError;
1663 + }, 0);
1664 + }
1665 +};
1666 +var addListener = createAction(alm + "/add");
1667 +var clearAllListeners = createAction(alm + "/removeAll");
1668 +var removeListener = createAction(alm + "/remove");
1669 +var defaultErrorHandler = function () {
1670 + var args = [];
1671 + for (var _i = 0; _i < arguments.length; _i++) {
1672 + args[_i] = arguments[_i];
1673 + }
1674 + console.error.apply(console, __spreadArray([alm + "/error"], args));
1675 +};
1676 +var cancelActiveListeners = function (entry) {
1677 + entry.pending.forEach(function (controller) {
1678 + abortControllerWithReason(controller, listenerCancelled);
1679 + });
1680 +};
1681 +function createListenerMiddleware(middlewareOptions) {
1682 + var _this = this;
1683 + if (middlewareOptions === void 0) { middlewareOptions = {}; }
1684 + var listenerMap = new Map();
1685 + var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c;
1686 + assertFunction(onError, "onError");
1687 + var insertEntry = function (entry) {
1688 + entry.unsubscribe = function () { return listenerMap.delete(entry.id); };
1689 + listenerMap.set(entry.id, entry);
1690 + return function (cancelOptions) {
1691 + entry.unsubscribe();
1692 + if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) {
1693 + cancelActiveListeners(entry);
1694 + }
1695 + };
1696 + };
1697 + var findListenerEntry = function (comparator) {
1698 + for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) {
1699 + var entry = _c[_i];
1700 + if (comparator(entry)) {
1701 + return entry;
1702 + }
1703 + }
1704 + return void 0;
1705 + };
1706 + var startListening = function (options) {
1707 + var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; });
1708 + if (!entry) {
1709 + entry = createListenerEntry(options);
1710 + }
1711 + return insertEntry(entry);
1712 + };
1713 + var stopListening = function (options) {
1714 + var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate;
1715 + var entry = findListenerEntry(function (entry2) {
1716 + var matchPredicateOrType = typeof type === "string" ? entry2.type === type : entry2.predicate === predicate;
1717 + return matchPredicateOrType && entry2.effect === effect;
1718 + });
1719 + if (entry) {
1720 + entry.unsubscribe();
1721 + if (options.cancelActive) {
1722 + cancelActiveListeners(entry);
1723 + }
1724 + }
1725 + return !!entry;
1726 + };
1727 + var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () {
1728 + var internalTaskController, take, listenerError_1;
1729 + return __generator(this, function (_c) {
1730 + switch (_c.label) {
1731 + case 0:
1732 + internalTaskController = new AbortController();
1733 + take = createTakePattern(startListening, internalTaskController.signal);
1734 + _c.label = 1;
1735 + case 1:
1736 + _c.trys.push([1, 3, 4, 5]);
1737 + entry.pending.add(internalTaskController);
1738 + return [4 /*yield*/, Promise.resolve(entry.effect(action, assign({}, api, {
1739 + getOriginalState: getOriginalState,
1740 + condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); },
1741 + take: take,
1742 + delay: createDelay(internalTaskController.signal),
1743 + pause: createPause(internalTaskController.signal),
1744 + extra: extra,
1745 + signal: internalTaskController.signal,
1746 + fork: createFork(internalTaskController.signal),
1747 + unsubscribe: entry.unsubscribe,
1748 + subscribe: function () {
1749 + listenerMap.set(entry.id, entry);
1750 + },
1751 + cancelActiveListeners: function () {
1752 + entry.pending.forEach(function (controller, _, set) {
1753 + if (controller !== internalTaskController) {
1754 + abortControllerWithReason(controller, listenerCancelled);
1755 + set.delete(controller);
1756 + }
1757 + });
1758 + }
1759 + })))];
1760 + case 2:
1761 + _c.sent();
1762 + return [3 /*break*/, 5];
1763 + case 3:
1764 + listenerError_1 = _c.sent();
1765 + if (!(listenerError_1 instanceof TaskAbortError)) {
1766 + safelyNotifyError(onError, listenerError_1, {
1767 + raisedBy: "effect"
1768 + });
1769 + }
1770 + return [3 /*break*/, 5];
1771 + case 4:
1772 + abortControllerWithReason(internalTaskController, listenerCompleted);
1773 + entry.pending.delete(internalTaskController);
1774 + return [7 /*endfinally*/];
1775 + case 5: return [2 /*return*/];
1776 + }
1777 + });
1778 + }); };
1779 + var clearListenerMiddleware = createClearListenerMiddleware(listenerMap);
1780 + var middleware = function (api) { return function (next) { return function (action) {
1781 + if (addListener.match(action)) {
1782 + return startListening(action.payload);
1783 + }
1784 + if (clearAllListeners.match(action)) {
1785 + clearListenerMiddleware();
1786 + return;
1787 + }
1788 + if (removeListener.match(action)) {
1789 + return stopListening(action.payload);
1790 + }
1791 + var originalState = api.getState();
1792 + var getOriginalState = function () {
1793 + if (originalState === INTERNAL_NIL_TOKEN) {
1794 + throw new Error(alm + ": getOriginalState can only be called synchronously");
1795 + }
1796 + return originalState;
1797 + };
1798 + var result;
1799 + try {
1800 + result = next(action);
1801 + if (listenerMap.size > 0) {
1802 + var currentState = api.getState();
1803 + var listenerEntries = Array.from(listenerMap.values());
1804 + for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) {
1805 + var entry = listenerEntries_1[_i];
1806 + var runListener = false;
1807 + try {
1808 + runListener = entry.predicate(action, currentState, originalState);
1809 + }
1810 + catch (predicateError) {
1811 + runListener = false;
1812 + safelyNotifyError(onError, predicateError, {
1813 + raisedBy: "predicate"
1814 + });
1815 + }
1816 + if (!runListener) {
1817 + continue;
1818 + }
1819 + notifyListener(entry, action, api, getOriginalState);
1820 + }
1821 + }
1822 + }
1823 + finally {
1824 + originalState = INTERNAL_NIL_TOKEN;
1825 + }
1826 + return result;
1827 + }; }; };
1828 + return {
1829 + middleware: middleware,
1830 + startListening: startListening,
1831 + stopListening: stopListening,
1832 + clearListeners: clearListenerMiddleware
1833 + };
1834 +}
1835 +// src/index.ts
1836 +(0,immer__WEBPACK_IMPORTED_MODULE_2__.enableES5)();
1837 +
1838 +//# sourceMappingURL=redux-toolkit.esm.js.map
56 1839
57 -//#region node_modules/@babel/runtime/helpers/esm/typeof.js
58 - function _typeof(o) {
59 - "@babel/helpers - typeof";
60 - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
61 - return typeof o;
62 - } : function(o) {
63 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
64 - }, _typeof(o);
65 - }
66 - var init_typeof = __esmMin((() => {}));
1840 +/***/ }),
67 1841
68 -//#endregion
69 -//#region assets/dev/js/modules/imports/module.js
70 - var require_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
71 - init_typeof();
72 - var Module = function Module() {
73 - var $ = jQuery;
74 - var instanceParams = arguments;
75 - var self = this;
76 - var events = {};
77 - var settings;
78 - var ensureClosureMethods = function ensureClosureMethods() {
79 - $.each(self, function(methodName) {
80 - var oldMethod = self[methodName];
81 - if ("function" !== typeof oldMethod) return;
82 - self[methodName] = function() {
83 - return oldMethod.apply(self, arguments);
84 - };
85 - });
86 - };
87 - var initSettings = function initSettings() {
88 - settings = self.getDefaultSettings();
89 - var instanceSettings = instanceParams[0];
90 - if (instanceSettings) $.extend(true, settings, instanceSettings);
91 - };
92 - var init = function init() {
93 - self.__construct.apply(self, instanceParams);
94 - ensureClosureMethods();
95 - initSettings();
96 - self.trigger("init");
97 - };
98 - this.getItems = function(items, itemKey) {
99 - if (itemKey) {
100 - var keyStack = itemKey.split(".");
101 - var currentKey = keyStack.splice(0, 1);
102 - if (!keyStack.length) return items[currentKey];
103 - if (!items[currentKey]) return;
104 - return this.getItems(items[currentKey], keyStack.join("."));
105 - }
106 - return items;
107 - };
108 - this.getSettings = function(setting) {
109 - return this.getItems(settings, setting);
110 - };
111 - this.setSettings = function(settingKey, value, settingsContainer) {
112 - if (!settingsContainer) settingsContainer = settings;
113 - if ("object" === _typeof(settingKey)) {
114 - $.extend(settingsContainer, settingKey);
115 - return self;
116 - }
117 - var keyStack = settingKey.split(".");
118 - var currentKey = keyStack.splice(0, 1);
119 - if (!keyStack.length) {
120 - settingsContainer[currentKey] = value;
121 - return self;
122 - }
123 - if (!settingsContainer[currentKey]) settingsContainer[currentKey] = {};
124 - return self.setSettings(keyStack.join("."), value, settingsContainer[currentKey]);
125 - };
126 - this.getErrorMessage = function(type, functionName) {
127 - var message;
128 - switch (type) {
129 - case "forceMethodImplementation":
130 - message = "The method '".concat(functionName, "' must to be implemented in the inheritor child.");
131 - break;
132 - default: message = "An error occurs";
133 - }
134 - return message;
135 - };
136 - this.forceMethodImplementation = function(functionName) {
137 - throw new Error(this.getErrorMessage("forceMethodImplementation", functionName));
138 - };
139 - this.on = function(eventName, callback) {
140 - if ("object" === _typeof(eventName)) {
141 - $.each(eventName, function(singleEventName) {
142 - self.on(singleEventName, this);
143 - });
144 - return self;
145 - }
146 - eventName.split(" ").forEach(function(singleEventName) {
147 - if (!events[singleEventName]) events[singleEventName] = [];
148 - events[singleEventName].push(callback);
149 - });
150 - return self;
151 - };
152 - this.off = function(eventName, callback) {
153 - if (!events[eventName]) return self;
154 - if (!callback) {
155 - delete events[eventName];
156 - return self;
157 - }
158 - var callbackIndex = events[eventName].indexOf(callback);
159 - if (-1 !== callbackIndex) {
160 - delete events[eventName][callbackIndex];
161 - events[eventName] = events[eventName].filter(function(val) {
162 - return val;
163 - });
164 - }
165 - return self;
166 - };
167 - this.trigger = function(eventName) {
168 - var methodName = "on" + eventName[0].toUpperCase() + eventName.slice(1);
169 - var params = Array.prototype.slice.call(arguments, 1);
170 - if (self[methodName]) self[methodName].apply(self, params);
171 - var callbacks = events[eventName];
172 - if (!callbacks) return self;
173 - $.each(callbacks, function(index, callback) {
174 - callback.apply(self, params);
175 - });
176 - return self;
177 - };
178 - init();
179 - };
180 - Module.prototype.__construct = function() {};
181 - Module.prototype.getDefaultSettings = function() {
182 - return {};
183 - };
184 - Module.prototype.getConstructorID = function() {
185 - return this.constructor.name;
186 - };
187 - Module.extend = function(properties) {
188 - var $ = jQuery;
189 - var parent = this;
190 - var child = function child() {
191 - return parent.apply(this, arguments);
192 - };
193 - $.extend(child, parent);
194 - child.prototype = Object.create($.extend({}, parent.prototype, properties));
195 - child.prototype.constructor = child;
196 - child.__super__ = parent.prototype;
197 - return child;
198 - };
199 - module.exports = Module;
200 - }));
1842 +/***/ "../assets/dev/js/editor/utils/is-instanceof.js":
1843 +/*!******************************************************!*\
1844 + !*** ../assets/dev/js/editor/utils/is-instanceof.js ***!
1845 + \******************************************************/
1846 +/***/ ((__unused_webpack_module, exports) => {
201 1847
202 -//#endregion
203 -//#region assets/dev/js/modules/imports/view-module.js
204 - var import_module = /* @__PURE__ */ __toESM(require_module());
205 - var view_module_default = import_module.default.extend({
206 - elements: null,
207 - getDefaultElements: function getDefaultElements() {
208 - return {};
209 - },
210 - bindEvents: function bindEvents() {},
211 - onInit: function onInit() {
212 - this.initElements();
213 - this.bindEvents();
214 - },
215 - initElements: function initElements() {
216 - this.elements = this.getDefaultElements();
217 - }
218 - });
1848 +"use strict";
219 1849
220 -//#endregion
221 -//#region node_modules/@babel/runtime/helpers/esm/classCallCheck.js
222 - function _classCallCheck(a, n) {
223 - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
224 - }
225 1850
226 -//#endregion
227 -//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js
228 - init_typeof();
229 - function toPrimitive(t, r) {
230 - if ("object" != _typeof(t) || !t) return t;
231 - var e = t[Symbol.toPrimitive];
232 - if (void 0 !== e) {
233 - var i = e.call(t, r || "default");
234 - if ("object" != _typeof(i)) return i;
235 - throw new TypeError("@@toPrimitive must return a primitive value.");
236 - }
237 - return ("string" === r ? String : Number)(t);
238 - }
1851 +Object.defineProperty(exports, "__esModule", ({
1852 + value: true
1853 +}));
1854 +exports["default"] = void 0;
239 1855
240 -//#endregion
241 -//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
242 - init_typeof();
243 - function toPropertyKey(t) {
244 - var i = toPrimitive(t, "string");
245 - return "symbol" == _typeof(i) ? i : i + "";
246 - }
1856 +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; } } }; }
247 1857
248 -//#endregion
249 -//#region node_modules/@babel/runtime/helpers/esm/createClass.js
250 - function _defineProperties(e, r) {
251 - for (var t = 0; t < r.length; t++) {
252 - var o = r[t];
253 - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
254 - }
255 - }
256 - function _createClass(e, r, t) {
257 - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
258 - }
1858 +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); }
259 1859
260 -//#endregion
261 -//#region node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
262 - function _assertThisInitialized(e) {
263 - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
264 - return e;
265 - }
1860 +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; }
266 1861
267 -//#endregion
268 -//#region node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
269 - init_typeof();
270 - function _possibleConstructorReturn(t, e) {
271 - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
272 - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
273 - return _assertThisInitialized(t);
274 - }
1862 +/**
1863 + * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved
1864 + * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can
1865 + * check whether it's instanceof by using the objects constructor and prototype names.
1866 + *
1867 + * @param object
1868 + * @param constructors
1869 + * @return {boolean}
1870 + */
1871 +var _default = function _default(object, constructors) {
1872 + constructors = Array.isArray(constructors) ? constructors : [constructors];
275 1873
276 -//#endregion
277 -//#region node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
278 - function _getPrototypeOf(t) {
279 - return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
280 - return t.__proto__ || Object.getPrototypeOf(t);
281 - }, _getPrototypeOf(t);
282 - }
1874 + var _iterator = _createForOfIteratorHelper(constructors),
1875 + _step;
283 1876
284 -//#endregion
285 -//#region node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
286 - function _setPrototypeOf(t, e) {
287 - return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
288 - return t.__proto__ = e, t;
289 - }, _setPrototypeOf(t, e);
290 - }
1877 + try {
1878 + for (_iterator.s(); !(_step = _iterator.n()).done;) {
1879 + var _constructor = _step.value;
291 1880
292 -//#endregion
293 -//#region node_modules/@babel/runtime/helpers/esm/inherits.js
294 - function _inherits(t, e) {
295 - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
296 - t.prototype = Object.create(e && e.prototype, { constructor: {
297 - value: t,
298 - writable: !0,
299 - configurable: !0
300 - } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e);
301 - }
1881 + if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) {
1882 + return true;
1883 + }
1884 + }
1885 + } catch (err) {
1886 + _iterator.e(err);
1887 + } finally {
1888 + _iterator.f();
1889 + }
302 1890
303 -//#endregion
304 -//#region node_modules/@babel/runtime/helpers/esm/superPropBase.js
305 - function _superPropBase(t, o) {
306 - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
307 - return t;
308 - }
1891 + return false;
1892 +};
309 1893
310 -//#endregion
311 -//#region node_modules/@babel/runtime/helpers/esm/get.js
312 - function _get() {
313 - return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function(e, t, r) {
314 - var p = _superPropBase(e, t);
315 - if (p) {
316 - var n = Object.getOwnPropertyDescriptor(p, t);
317 - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
318 - }
319 - }, _get.apply(null, arguments);
320 - }
1894 +exports["default"] = _default;
321 1895
322 -//#endregion
323 -//#region assets/dev/js/modules/imports/instance-type.js
324 - function _superPropGet$1(t, o, e, r) {
325 - var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e);
326 - return 2 & r && "function" == typeof p ? function(t) {
327 - return p.apply(e, t);
328 - } : p;
329 - }
330 - __name(_superPropGet$1, "_superPropGet");
331 - var InstanceType = /*#__PURE__*/ function() {
332 - function InstanceType() {
333 - var _this = this;
334 - _classCallCheck(this, InstanceType);
335 - var target = this instanceof InstanceType ? this.constructor : void 0;
336 - var prototypes = [];
337 - while (target.__proto__ && target.__proto__.name) {
338 - prototypes.push(target.__proto__);
339 - target = target.__proto__;
340 - }
341 - prototypes.reverse().forEach(function(proto) {
342 - return _this instanceof proto;
343 - });
344 - }
345 - return _createClass(InstanceType, null, [{
346 - key: Symbol.hasInstance,
347 - value: function value(target) {
348 - /**
349 - * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
350 - * its give's opportunity to mange capabilities of instanceOf operator.
351 - * saving current class each time will give option later to handle instanceOf manually.
352 - */
353 - var result = _superPropGet$1(InstanceType, Symbol.hasInstance, this, 2)([target]);
354 - if (target && !target.constructor.getInstanceType) return result;
355 - if (target) {
356 - if (!target.instanceTypes) target.instanceTypes = [];
357 - if (!result) {
358 - if (this.getInstanceType() === target.constructor.getInstanceType()) result = true;
359 - }
360 - if (result) {
361 - var name = this.getInstanceType === InstanceType.getInstanceType ? "BaseInstanceType" : this.getInstanceType();
362 - if (-1 === target.instanceTypes.indexOf(name)) target.instanceTypes.push(name);
363 - }
364 - }
365 - if (!result && target) result = target.instanceTypes && Array.isArray(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType());
366 - return result;
367 - }
368 - }, {
369 - key: "getInstanceType",
370 - value: function getInstanceType() {
371 - elementorModules.ForceMethodImplementation();
372 - }
373 - }]);
374 - }();
1896 +/***/ }),
375 1897
376 -//#endregion
377 -//#region assets/dev/js/editor/utils/is-instanceof.js
378 - function _createForOfIteratorHelper(r, e) {
379 - var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
380 - if (!t) {
381 - if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e && r && "number" == typeof r.length) {
382 - t && (r = t);
383 - var _n = 0;
384 - var F = function F() {};
385 - return {
386 - s: F,
387 - n: function n() {
388 - return _n >= r.length ? { done: !0 } : {
389 - done: !1,
390 - value: r[_n++]
391 - };
392 - },
393 - e: function e(r) {
394 - throw r;
395 - },
396 - f: F
397 - };
398 - }
399 - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
400 - }
401 - var o;
402 - var a = !0;
403 - var u = !1;
404 - return {
405 - s: function s() {
406 - t = t.call(r);
407 - },
408 - n: function n() {
409 - var r = t.next();
410 - return a = r.done, r;
411 - },
412 - e: function e(r) {
413 - u = !0, o = r;
414 - },
415 - f: function f() {
416 - try {
417 - a || null == t.return || t.return();
418 - } finally {
419 - if (u) throw o;
420 - }
421 - }
422 - };
423 - }
424 - function _unsupportedIterableToArray$1(r, a) {
425 - if (r) {
426 - if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
427 - var t = {}.toString.call(r).slice(8, -1);
428 - 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$1(r, a) : void 0;
429 - }
430 - }
431 - __name(_unsupportedIterableToArray$1, "_unsupportedIterableToArray");
432 - function _arrayLikeToArray$1(r, a) {
433 - (null == a || a > r.length) && (a = r.length);
434 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
435 - return n;
436 - }
437 - __name(_arrayLikeToArray$1, "_arrayLikeToArray");
438 - /**
439 - * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved
440 - * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can
441 - * check whether it's instanceof by using the objects constructor and prototype names.
442 - *
443 - * @param object
444 - * @param constructors
445 - * @return {boolean}
446 - */
447 - var is_instanceof_default = /* @__PURE__ */ __name((function(object, constructors) {
448 - constructors = Array.isArray(constructors) ? constructors : [constructors];
449 - var _iterator = _createForOfIteratorHelper(constructors);
450 - var _step;
451 - try {
452 - for (_iterator.s(); !(_step = _iterator.n()).done;) {
453 - var constructor = _step.value;
454 - if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) return true;
455 - }
456 - } catch (err) {
457 - _iterator.e(err);
458 - } finally {
459 - _iterator.f();
460 - }
461 - return false;
462 - }), "default");
1898 +/***/ "../assets/dev/js/modules/imports/args-object.js":
1899 +/*!*******************************************************!*\
1900 + !*** ../assets/dev/js/modules/imports/args-object.js ***!
1901 + \*******************************************************/
1902 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
463 1903
464 -//#endregion
465 -//#region assets/dev/js/modules/imports/args-object.js
466 - init_typeof();
467 - function _callSuper$15(t, o, e) {
468 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$16() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
469 - }
470 - __name(_callSuper$15, "_callSuper");
471 - function _isNativeReflectConstruct$16() {
472 - try {
473 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
474 - } catch (t) {}
475 - return (_isNativeReflectConstruct$16 = function _isNativeReflectConstruct() {
476 - return !!t;
477 - })();
478 - }
479 - __name(_isNativeReflectConstruct$16, "_isNativeReflectConstruct");
480 - var ArgsObject = /*#__PURE__*/ function(_InstanceType) {
481 - /**
482 - * Function constructor().
483 - *
484 - * Create ArgsObject.
485 - *
486 - * @param {{}} args
487 - */
488 - function ArgsObject(args) {
489 - var _this;
490 - _classCallCheck(this, ArgsObject);
491 - _this = _callSuper$15(this, ArgsObject);
492 - _this.args = args;
493 - return _this;
494 - }
495 - /**
496 - * Function requireArgument().
497 - *
498 - * Validate property in args.
499 - *
500 - * @param {string} property
501 - * @param {{}} args
502 - *
503 - * @throws {Error}
504 - */
505 - _inherits(ArgsObject, _InstanceType);
506 - return _createClass(ArgsObject, [
507 - {
508 - key: "requireArgument",
509 - value: function requireArgument(property) {
510 - var args = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.args;
511 - if (!Object.prototype.hasOwnProperty.call(args, property)) throw Error("".concat(property, " is required."));
512 - }
513 - },
514 - {
515 - key: "requireArgumentType",
516 - value: function requireArgumentType(property, type) {
517 - var args = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.args;
518 - this.requireArgument(property, args);
519 - if (_typeof(args[property]) !== type) throw Error("".concat(property, " invalid type: ").concat(type, "."));
520 - }
521 - },
522 - {
523 - key: "requireArgumentInstance",
524 - value: function requireArgumentInstance(property, instance) {
525 - var args = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.args;
526 - this.requireArgument(property, args);
527 - if (!(args[property] instanceof instance) && !is_instanceof_default(args[property], instance)) throw Error("".concat(property, " invalid instance."));
528 - }
529 - },
530 - {
531 - key: "requireArgumentConstructor",
532 - value: function requireArgumentConstructor(property, type) {
533 - var args = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.args;
534 - this.requireArgument(property, args);
535 - if (args[property].constructor.toString() !== type.prototype.constructor.toString()) throw Error("".concat(property, " invalid constructor type."));
536 - }
537 - }
538 - ], [{
539 - key: "getInstanceType",
540 - value: function getInstanceType() {
541 - return "ArgsObject";
542 - }
543 - }]);
544 - }(InstanceType);
1904 +"use strict";
545 1905
546 -//#endregion
547 -//#region assets/dev/js/modules/imports/utils/masonry.js
548 - var masonry_default = view_module_default.extend({
549 - getDefaultSettings: function getDefaultSettings() {
550 - return {
551 - container: null,
552 - items: null,
553 - columnsCount: 3,
554 - verticalSpaceBetween: 30
555 - };
556 - },
557 - getDefaultElements: function getDefaultElements() {
558 - return {
559 - $container: jQuery(this.getSettings("container")),
560 - $items: jQuery(this.getSettings("items"))
561 - };
562 - },
563 - run: function run() {
564 - var heights = [];
565 - var distanceFromTop = this.elements.$container.position().top;
566 - var settings = this.getSettings();
567 - var columnsCount = settings.columnsCount;
568 - distanceFromTop += parseInt(this.elements.$container.css("margin-top"), 10);
569 - this.elements.$items.each(function(index) {
570 - var row = Math.floor(index / columnsCount);
571 - var $item = jQuery(this);
572 - var itemHeight = $item[0].getBoundingClientRect().height + settings.verticalSpaceBetween;
573 - if (row) {
574 - var itemPosition = $item.position();
575 - var indexAtRow = index % columnsCount;
576 - var pullHeight = itemPosition.top - distanceFromTop - heights[indexAtRow];
577 - pullHeight -= parseInt($item.css("margin-top"), 10);
578 - pullHeight *= -1;
579 - $item.css("margin-top", pullHeight + "px");
580 - heights[indexAtRow] += itemHeight;
581 - } else heights.push(itemHeight);
582 - });
583 - }
584 - });
585 1906
586 -//#endregion
587 -//#region assets/dev/js/modules/imports/utils/scroll.js
588 - var Scroll = /*#__PURE__*/ function() {
589 - function Scroll() {
590 - _classCallCheck(this, Scroll);
591 - }
592 - return _createClass(Scroll, null, [
593 - {
594 - key: "scrollObserver",
595 - value: function scrollObserver(obj) {
596 - var lastScrollY = 0;
597 - var options = {
598 - root: obj.root || null,
599 - rootMargin: obj.offset || "0px",
600 - threshold: function buildThresholds() {
601 - var sensitivityPercentage = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
602 - var thresholds = [];
603 - if (sensitivityPercentage > 0 && sensitivityPercentage <= 100) {
604 - var increment = 100 / sensitivityPercentage;
605 - for (var i = 0; i <= 100; i += increment) thresholds.push(i / 100);
606 - } else thresholds.push(0);
607 - return thresholds;
608 - }(obj.sensitivity)
609 - };
610 - function handleIntersect(entries) {
611 - var currentScrollY = entries[0].boundingClientRect.y;
612 - var isInViewport = entries[0].isIntersecting;
613 - var intersectionScrollDirection = currentScrollY < lastScrollY ? "down" : "up";
614 - var scrollPercentage = Math.abs(parseFloat((entries[0].intersectionRatio * 100).toFixed(2)));
615 - obj.callback({
616 - sensitivity: obj.sensitivity,
617 - isInViewport,
618 - scrollPercentage,
619 - intersectionScrollDirection
620 - });
621 - lastScrollY = currentScrollY;
622 - }
623 - return new IntersectionObserver(handleIntersect, options);
624 - }
625 - },
626 - {
627 - key: "getElementViewportPercentage",
628 - value: function getElementViewportPercentage($element) {
629 - var offsetObj = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
630 - var elementOffset = $element[0].getBoundingClientRect();
631 - var offsetStart = offsetObj.start || 0;
632 - var offsetEnd = offsetObj.end || 0;
633 - var windowStartOffset = window.innerHeight * offsetStart / 100;
634 - var windowEndOffset = window.innerHeight * offsetEnd / 100;
635 - var y1 = elementOffset.top - window.innerHeight;
636 - var y2 = elementOffset.top + windowStartOffset + $element.height();
637 - var startPosition = 0 - y1 + windowStartOffset;
638 - var endPosition = y2 - y1 + windowEndOffset;
639 - var percent = Math.max(0, Math.min(startPosition / endPosition, 1));
640 - return parseFloat((percent * 100).toFixed(2));
641 - }
642 - },
643 - {
644 - key: "getPageScrollPercentage",
645 - value: function getPageScrollPercentage() {
646 - var offsetObj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
647 - var limitPageHeight = arguments.length > 1 ? arguments[1] : void 0;
648 - var offsetStart = offsetObj.start || 0;
649 - var offsetEnd = offsetObj.end || 0;
650 - var initialPageHeight = limitPageHeight || document.documentElement.scrollHeight - document.documentElement.clientHeight;
651 - var heightOffset = initialPageHeight * offsetStart / 100;
652 - var pageRange = initialPageHeight + heightOffset + initialPageHeight * offsetEnd / 100;
653 - return (document.documentElement.scrollTop + document.body.scrollTop + heightOffset) / pageRange * 100;
654 - }
655 - }
656 - ]);
657 - }();
1907 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
658 1908
659 -//#endregion
660 -//#region node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
661 - function _isNativeFunction(t) {
662 - try {
663 - return -1 !== Function.toString.call(t).indexOf("[native code]");
664 - } catch (n) {
665 - return "function" == typeof t;
666 - }
667 - }
1909 +Object.defineProperty(exports, "__esModule", ({
1910 + value: true
1911 +}));
1912 +exports["default"] = void 0;
668 1913
669 -//#endregion
670 -//#region node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
671 - function _isNativeReflectConstruct$15() {
672 - try {
673 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
674 - } catch (t) {}
675 - return (_isNativeReflectConstruct$15 = function _isNativeReflectConstruct() {
676 - return !!t;
677 - })();
678 - }
679 - __name(_isNativeReflectConstruct$15, "_isNativeReflectConstruct");
1914 +var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
680 1915
681 -//#endregion
682 -//#region node_modules/@babel/runtime/helpers/esm/construct.js
683 - function _construct(t, e, r) {
684 - if (_isNativeReflectConstruct$15()) return Reflect.construct.apply(null, arguments);
685 - var o = [null];
686 - o.push.apply(o, e);
687 - var p = new (t.bind.apply(t, o))();
688 - return r && _setPrototypeOf(p, r.prototype), p;
689 - }
1916 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
690 1917
691 -//#endregion
692 -//#region node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
693 - function _wrapNativeSuper(t) {
694 - var r = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
695 - return _wrapNativeSuper = function _wrapNativeSuper(t) {
696 - if (null === t || !_isNativeFunction(t)) return t;
697 - if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
698 - if (void 0 !== r) {
699 - if (r.has(t)) return r.get(t);
700 - r.set(t, Wrapper);
701 - }
702 - function Wrapper() {
703 - return _construct(t, arguments, _getPrototypeOf(this).constructor);
704 - }
705 - return Wrapper.prototype = Object.create(t.prototype, { constructor: {
706 - value: Wrapper,
707 - enumerable: !1,
708 - writable: !0,
709 - configurable: !0
710 - } }), _setPrototypeOf(Wrapper, t);
711 - }, _wrapNativeSuper(t);
712 - }
1918 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
713 1919
714 -//#endregion
715 -//#region assets/dev/js/modules/imports/force-method-implementation.js
716 - function _callSuper$14(t, o, e) {
717 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$14() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
718 - }
719 - __name(_callSuper$14, "_callSuper");
720 - function _isNativeReflectConstruct$14() {
721 - try {
722 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
723 - } catch (t) {}
724 - return (_isNativeReflectConstruct$14 = function _isNativeReflectConstruct() {
725 - return !!t;
726 - })();
727 - }
728 - __name(_isNativeReflectConstruct$14, "_isNativeReflectConstruct");
729 - var ForceMethodImplementation$1 = /*#__PURE__*/ function(_Error) {
730 - function ForceMethodImplementation() {
731 - var _this;
732 - var info = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
733 - var args = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
734 - _classCallCheck(this, ForceMethodImplementation);
735 - _this = _callSuper$14(this, ForceMethodImplementation, ["".concat(info.isStatic ? "static " : "").concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality."), args]);
736 - if (Object.keys(args).length) console.error(args);
737 - Error.captureStackTrace(_this, ForceMethodImplementation);
738 - return _this;
739 - }
740 - _inherits(ForceMethodImplementation, _Error);
741 - return _createClass(ForceMethodImplementation);
742 - }(/*#__PURE__*/ _wrapNativeSuper(Error));
743 - var force_method_implementation_default$1 = /* @__PURE__ */ __name((function(args) {
744 - var caller = Error().stack.split("\n")[2].trim();
745 - var callerName = caller.startsWith("at new") ? "constructor" : caller.split(" ")[1];
746 - var info = {};
747 - info.functionName = callerName;
748 - info.fullName = callerName;
749 - if (info.functionName.includes(".")) {
750 - var parts = info.functionName.split(".");
751 - info.className = parts[0];
752 - info.functionName = parts[1];
753 - } else info.isStatic = true;
754 - throw new ForceMethodImplementation$1(info, args);
755 - }), "default");
1920 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
756 1921
757 -//#endregion
758 -//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js
759 - function _defineProperty(e, r, t) {
760 - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
761 - value: t,
762 - enumerable: !0,
763 - configurable: !0,
764 - writable: !0
765 - }) : e[r] = t, e;
766 - }
1922 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
767 1923
768 -//#endregion
769 -//#region app/modules/import-export-customization/assets/js/shared/utils/template-registry-helpers.js
770 - function ownKeys$2(e, r) {
771 - var t = Object.keys(e);
772 - if (Object.getOwnPropertySymbols) {
773 - var o = Object.getOwnPropertySymbols(e);
774 - r && (o = o.filter(function(r) {
775 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
776 - })), t.push.apply(t, o);
777 - }
778 - return t;
779 - }
780 - __name(ownKeys$2, "ownKeys");
781 - function _objectSpread$2(e) {
782 - for (var r = 1; r < arguments.length; r++) {
783 - var t = null != arguments[r] ? arguments[r] : {};
784 - r % 2 ? ownKeys$2(Object(t), !0).forEach(function(r) {
785 - _defineProperty(e, r, t[r]);
786 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function(r) {
787 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
788 - });
789 - }
790 - return e;
791 - }
792 - __name(_objectSpread$2, "_objectSpread");
793 - function createGetInitialState(exportGroup) {
794 - var additionalProps = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
795 - return function(data, parentInitialState) {
796 - var isEnabled = parentInitialState;
797 - if (data.hasOwnProperty("uploadedData")) {
798 - var _elementorAppConfig;
799 - isEnabled = false;
800 - var templates = data.uploadedData.manifest.templates;
801 - var exportGroups = ((_elementorAppConfig = elementorAppConfig) === null || _elementorAppConfig === void 0 || (_elementorAppConfig = _elementorAppConfig["import-export-customization"]) === null || _elementorAppConfig === void 0 ? void 0 : _elementorAppConfig.exportGroups) || {};
802 - for (var templateId in templates) if (exportGroups[templates[templateId].doc_type] === exportGroup) {
803 - isEnabled = true;
804 - break;
805 - }
806 - }
807 - return _objectSpread$2({ enabled: isEnabled }, additionalProps);
808 - };
809 - }
1924 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
810 1925
811 -//#endregion
812 -//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
813 - function _arrayLikeToArray(r, a) {
814 - (null == a || a > r.length) && (a = r.length);
815 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
816 - return n;
817 - }
1926 +var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js"));
818 1927
819 -//#endregion
820 -//#region node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
821 - function _arrayWithoutHoles(r) {
822 - if (Array.isArray(r)) return _arrayLikeToArray(r);
823 - }
1928 +var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js"));
824 1929
825 -//#endregion
826 -//#region node_modules/@babel/runtime/helpers/esm/iterableToArray.js
827 - function _iterableToArray(r) {
828 - if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
829 - }
1930 +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); }; }
830 1931
831 -//#endregion
832 -//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
833 - function _unsupportedIterableToArray(r, a) {
834 - if (r) {
835 - if ("string" == typeof r) return _arrayLikeToArray(r, a);
836 - var t = {}.toString.call(r).slice(8, -1);
837 - 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;
838 - }
839 - }
1932 +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; } }
840 1933
841 -//#endregion
842 -//#region node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
843 - function _nonIterableSpread() {
844 - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
845 - }
1934 +var ArgsObject = /*#__PURE__*/function (_InstanceType) {
1935 + (0, _inherits2.default)(ArgsObject, _InstanceType);
846 1936
847 -//#endregion
848 -//#region node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
849 - function _toConsumableArray(r) {
850 - return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
851 - }
1937 + var _super = _createSuper(ArgsObject);
852 1938
853 -//#endregion
854 -//#region node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
855 - function _objectWithoutPropertiesLoose(r, e) {
856 - if (null == r) return {};
857 - var t = {};
858 - for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
859 - if (-1 !== e.indexOf(n)) continue;
860 - t[n] = r[n];
861 - }
862 - return t;
863 - }
1939 + /**
1940 + * Function constructor().
1941 + *
1942 + * Create ArgsObject.
1943 + *
1944 + * @param {{}} args
1945 + */
1946 + function ArgsObject(args) {
1947 + var _this;
864 1948
865 -//#endregion
866 -//#region node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
867 - function _objectWithoutProperties(e, t) {
868 - if (null == e) return {};
869 - var o;
870 - var r;
871 - var i = _objectWithoutPropertiesLoose(e, t);
872 - if (Object.getOwnPropertySymbols) {
873 - var n = Object.getOwnPropertySymbols(e);
874 - for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
875 - }
876 - return i;
877 - }
1949 + (0, _classCallCheck2.default)(this, ArgsObject);
1950 + _this = _super.call(this);
1951 + _this.args = args;
1952 + return _this;
1953 + }
1954 + /**
1955 + * Function requireArgument().
1956 + *
1957 + * Validate property in args.
1958 + *
1959 + * @param {string} property
1960 + * @param {{}} args
1961 + *
1962 + * @throws {Error}
1963 + *
1964 + */
878 1965
879 -//#endregion
880 -//#region app/modules/import-export-customization/assets/js/shared/registry/base.js
881 - var _excluded = ["children"];
882 - function ownKeys$1(e, r) {
883 - var t = Object.keys(e);
884 - if (Object.getOwnPropertySymbols) {
885 - var o = Object.getOwnPropertySymbols(e);
886 - r && (o = o.filter(function(r) {
887 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
888 - })), t.push.apply(t, o);
889 - }
890 - return t;
891 - }
892 - __name(ownKeys$1, "ownKeys");
893 - function _objectSpread$1(e) {
894 - for (var r = 1; r < arguments.length; r++) {
895 - var t = null != arguments[r] ? arguments[r] : {};
896 - r % 2 ? ownKeys$1(Object(t), !0).forEach(function(r) {
897 - _defineProperty(e, r, t[r]);
898 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r) {
899 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
900 - });
901 - }
902 - return e;
903 - }
904 - __name(_objectSpread$1, "_objectSpread");
905 - var BaseRegistry = /*#__PURE__*/ function() {
906 - function BaseRegistry() {
907 - _classCallCheck(this, BaseRegistry);
908 - this.sections = /* @__PURE__ */ new Map();
909 - }
910 - return _createClass(BaseRegistry, [
911 - {
912 - key: "register",
913 - value: function register(section) {
914 - var _this = this;
915 - if (!section.key || !section.title) throw new Error("Template type must have key and title");
916 - var formattedSection = this.get(section.key) || this.formatSection(section);
917 - if (section.children) if (formattedSection.children) {
918 - var existingChildrenMap = new Map(formattedSection.children.map(function(child) {
919 - return [child.key, child];
920 - }));
921 - section.children.forEach(function(childSection) {
922 - var formattedChild = _this.formatSection(childSection);
923 - existingChildrenMap.set(childSection.key, formattedChild);
924 - });
925 - formattedSection.children = Array.from(existingChildrenMap.values());
926 - } else formattedSection.children = section.children.map(function(childSection) {
927 - return _this.formatSection(childSection);
928 - });
929 - this.sections.set(section.key, formattedSection);
930 - }
931 - },
932 - {
933 - key: "formatSection",
934 - value: function formatSection(_ref) {
935 - _ref.children;
936 - var section = _objectWithoutProperties(_ref, _excluded);
937 - return _objectSpread$1({
938 - key: section.key,
939 - title: section.title,
940 - description: section.description || "",
941 - useParentDefault: section.useParentDefault !== false,
942 - getInitialState: section.getInitialState || null,
943 - component: section.component || null,
944 - order: section.order || 10,
945 - isAvailable: section.isAvailable || function() {
946 - return true;
947 - }
948 - }, section);
949 - }
950 - },
951 - {
952 - key: "getAll",
953 - value: function getAll() {
954 - return Array.from(this.sections.values()).filter(function(type) {
955 - return type.isAvailable();
956 - }).map(function(type) {
957 - if (type.children) return _objectSpread$1(_objectSpread$1({}, type), {}, { children: _toConsumableArray(type.children).sort(function(a, b) {
958 - return a.order - b.order;
959 - }) });
960 - return type;
961 - }).sort(function(a, b) {
962 - return a.order - b.order;
963 - });
964 - }
965 - },
966 - {
967 - key: "get",
968 - value: function get(key) {
969 - return this.sections.get(key);
970 - }
971 - }
972 - ]);
973 - }();
974 1966
975 -//#endregion
976 -//#region app/modules/import-export-customization/assets/js/shared/registry/customization-dialogs.js
977 - var customizationDialogsRegistry = new BaseRegistry();
1967 + (0, _createClass2.default)(ArgsObject, [{
1968 + key: "requireArgument",
1969 + value: function requireArgument(property) {
1970 + var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args;
978 1971
979 -//#endregion
980 -//#region assets/dev/js/modules/modules.js
981 - var baseModules = {
982 - Module: import_module.default,
983 - ViewModule: view_module_default,
984 - ArgsObject,
985 - ForceMethodImplementation: force_method_implementation_default$1,
986 - utils: {
987 - Masonry: masonry_default,
988 - Scroll
989 - },
990 - importExport: {
991 - createGetInitialState,
992 - customizationDialogsRegistry
993 - }
994 - };
995 - if (!window.elementorModules) window.elementorModules = baseModules;
996 - else Object.assign(window.elementorModules, baseModules);
997 - var modules_default = window.elementorModules;
1972 + if (!Object.prototype.hasOwnProperty.call(args, property)) {
1973 + throw Error("".concat(property, " is required."));
1974 + }
1975 + }
1976 + /**
1977 + * Function requireArgumentType().
1978 + *
1979 + * Validate property in args using `type === typeof(args.whatever)`.
1980 + *
1981 + * @param {string} property
1982 + * @param {string} type
1983 + * @param {{}} args
1984 + *
1985 + * @throws {Error}
1986 + *
1987 + */
998 1988
999 -//#endregion
1000 -//#region core/common/assets/js/views/modal/header.js
1001 - function _callSuper$13(t, o, e) {
1002 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$13() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1003 - }
1004 - __name(_callSuper$13, "_callSuper");
1005 - function _isNativeReflectConstruct$13() {
1006 - try {
1007 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1008 - } catch (t) {}
1009 - return (_isNativeReflectConstruct$13 = function _isNativeReflectConstruct() {
1010 - return !!t;
1011 - })();
1012 - }
1013 - __name(_isNativeReflectConstruct$13, "_isNativeReflectConstruct");
1014 - var _default$3 = /*#__PURE__*/ function(_Marionette$LayoutVie) {
1015 - function _default() {
1016 - _classCallCheck(this, _default);
1017 - return _callSuper$13(this, _default, arguments);
1018 - }
1019 - _inherits(_default, _Marionette$LayoutVie);
1020 - return _createClass(_default, [
1021 - {
1022 - key: "tagName",
1023 - value: function tagName() {
1024 - return "header";
1025 - }
1026 - },
1027 - {
1028 - key: "className",
1029 - value: function className() {
1030 - return "elementor-templates-modal__header";
1031 - }
1032 - },
1033 - {
1034 - key: "getTemplate",
1035 - value: function getTemplate() {
1036 - return "#tmpl-elementor-templates-modal__header";
1037 - }
1038 - },
1039 - {
1040 - key: "regions",
1041 - value: function regions() {
1042 - return {
1043 - logoArea: ".elementor-templates-modal__header__logo-area",
1044 - tools: "#elementor-template-library-header-tools",
1045 - menuArea: ".elementor-templates-modal__header__menu-area"
1046 - };
1047 - }
1048 - },
1049 - {
1050 - key: "ui",
1051 - value: function ui() {
1052 - return { closeModal: ".elementor-templates-modal__header__close" };
1053 - }
1054 - },
1055 - {
1056 - key: "events",
1057 - value: function events() {
1058 - return { "click @ui.closeModal": "onCloseModalClick" };
1059 - }
1060 - },
1061 - {
1062 - key: "onRender",
1063 - value: function onRender() {
1064 - this.bindEscapeKey();
1065 - }
1066 - },
1067 - {
1068 - key: "bindEscapeKey",
1069 - value: function bindEscapeKey() {
1070 - var _this = this;
1071 - this.onDocumentKeyDown = function(event) {
1072 - if ("Escape" === event.key) _this.onCloseModalClick();
1073 - };
1074 - document.addEventListener("keydown", this.onDocumentKeyDown);
1075 - }
1076 - },
1077 - {
1078 - key: "onDestroy",
1079 - value: function onDestroy() {
1080 - if (this.onDocumentKeyDown) document.removeEventListener("keydown", this.onDocumentKeyDown);
1081 - }
1082 - },
1083 - {
1084 - key: "templateHelpers",
1085 - value: function templateHelpers() {
1086 - return { closeType: this.getOption("closeType") };
1087 - }
1088 - },
1089 - {
1090 - key: "onCloseModalClick",
1091 - value: function onCloseModalClick() {
1092 - this._parent._parent._parent.hideModal();
1093 - var documentType = this.getDocumentType();
1094 - var customEvent = new CustomEvent("core/modal/close/".concat(documentType));
1095 - window.dispatchEvent(customEvent);
1096 - if (this.isFloatingButtonLibraryClose()) {
1097 - $e.internal("document/save/set-is-modified", { status: false });
1098 - window.location.href = elementor.config.admin_floating_button_admin_url;
1099 - }
1100 - }
1101 - },
1102 - {
1103 - key: "getDocumentType",
1104 - value: function getDocumentType() {
1105 - var _elementor$config$doc;
1106 - var _elementor;
1107 - var DEFAULT_TYPE = "default";
1108 - if ("undefined" === typeof window.elementor) return DEFAULT_TYPE;
1109 - return (_elementor$config$doc = (_elementor = elementor) === null || _elementor === void 0 || (_elementor = _elementor.config) === null || _elementor === void 0 || (_elementor = _elementor.document) === null || _elementor === void 0 ? void 0 : _elementor.type) !== null && _elementor$config$doc !== void 0 ? _elementor$config$doc : DEFAULT_TYPE;
1110 - }
1111 - },
1112 - {
1113 - key: "isFloatingButtonLibraryClose",
1114 - value: function isFloatingButtonLibraryClose() {
1115 - var _elementor$config;
1116 - var _elementor$config2;
1117 - return window.elementor && ((_elementor$config = elementor.config) === null || _elementor$config === void 0 ? void 0 : _elementor$config.admin_floating_button_admin_url) && "floating-buttons" === ((_elementor$config2 = elementor.config) === null || _elementor$config2 === void 0 || (_elementor$config2 = _elementor$config2.document) === null || _elementor$config2 === void 0 ? void 0 : _elementor$config2.type) && (this.$el.closest(".dialog-lightbox-widget-content").find(".elementor-template-library-template-floating_button").length || this.$el.closest(".dialog-lightbox-widget-content").find("#elementor-template-library-preview").length || this.$el.closest(".dialog-lightbox-widget-content").find("#elementor-template-library-templates-empty").length);
1118 - }
1119 - }
1120 - ]);
1121 - }(Marionette.LayoutView);
1989 + }, {
1990 + key: "requireArgumentType",
1991 + value: function requireArgumentType(property, type) {
1992 + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
1993 + this.requireArgument(property, args);
1122 1994
1123 -//#endregion
1124 -//#region core/common/assets/js/views/modal/logo.js
1125 - function _callSuper$12(t, o, e) {
1126 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$12() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1127 - }
1128 - __name(_callSuper$12, "_callSuper");
1129 - function _isNativeReflectConstruct$12() {
1130 - try {
1131 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1132 - } catch (t) {}
1133 - return (_isNativeReflectConstruct$12 = function _isNativeReflectConstruct() {
1134 - return !!t;
1135 - })();
1136 - }
1137 - __name(_isNativeReflectConstruct$12, "_isNativeReflectConstruct");
1138 - var _default$2 = /*#__PURE__*/ function(_Marionette$ItemView) {
1139 - function _default() {
1140 - _classCallCheck(this, _default);
1141 - return _callSuper$12(this, _default, arguments);
1142 - }
1143 - _inherits(_default, _Marionette$ItemView);
1144 - return _createClass(_default, [
1145 - {
1146 - key: "getTemplate",
1147 - value: function getTemplate() {
1148 - return "#tmpl-elementor-templates-modal__header__logo";
1149 - }
1150 - },
1151 - {
1152 - key: "className",
1153 - value: function className() {
1154 - return "elementor-templates-modal__header__logo";
1155 - }
1156 - },
1157 - {
1158 - key: "events",
1159 - value: function events() {
1160 - return { click: "onClick" };
1161 - }
1162 - },
1163 - {
1164 - key: "templateHelpers",
1165 - value: function templateHelpers() {
1166 - return { title: this.getOption("title") };
1167 - }
1168 - },
1169 - {
1170 - key: "onClick",
1171 - value: function onClick() {
1172 - var clickCallback = this.getOption("click");
1173 - if (clickCallback) clickCallback();
1174 - }
1175 - }
1176 - ]);
1177 - }(Marionette.ItemView);
1995 + if ((0, _typeof2.default)(args[property]) !== type) {
1996 + throw Error("".concat(property, " invalid type: ").concat(type, "."));
1997 + }
1998 + }
1999 + /**
2000 + * Function requireArgumentInstance().
2001 + *
2002 + * Validate property in args using `args.whatever instanceof instance`.
2003 + *
2004 + * @param {string} property
2005 + * @param {*} instance
2006 + * @param {{}} args
2007 + *
2008 + * @throws {Error}
2009 + *
2010 + */
1178 2011
1179 -//#endregion
1180 -//#region core/common/assets/js/views/modal/loading.js
1181 - function _callSuper$11(t, o, e) {
1182 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$11() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1183 - }
1184 - __name(_callSuper$11, "_callSuper");
1185 - function _isNativeReflectConstruct$11() {
1186 - try {
1187 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1188 - } catch (t) {}
1189 - return (_isNativeReflectConstruct$11 = function _isNativeReflectConstruct() {
1190 - return !!t;
1191 - })();
1192 - }
1193 - __name(_isNativeReflectConstruct$11, "_isNativeReflectConstruct");
1194 - var _default$1 = /*#__PURE__*/ function(_Marionette$ItemView) {
1195 - function _default() {
1196 - _classCallCheck(this, _default);
1197 - return _callSuper$11(this, _default, arguments);
1198 - }
1199 - _inherits(_default, _Marionette$ItemView);
1200 - return _createClass(_default, [{
1201 - key: "id",
1202 - value: function id() {
1203 - return "elementor-template-library-loading";
1204 - }
1205 - }, {
1206 - key: "getTemplate",
1207 - value: function getTemplate() {
1208 - return "#tmpl-elementor-template-library-loading";
1209 - }
1210 - }]);
1211 - }(Marionette.ItemView);
2012 + }, {
2013 + key: "requireArgumentInstance",
2014 + value: function requireArgumentInstance(property, instance) {
2015 + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
2016 + this.requireArgument(property, args);
1212 2017
1213 -//#endregion
1214 -//#region core/common/assets/js/views/modal/layout.js
1215 - function _callSuper$10(t, o, e) {
1216 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$10() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1217 - }
1218 - __name(_callSuper$10, "_callSuper");
1219 - function _isNativeReflectConstruct$10() {
1220 - try {
1221 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1222 - } catch (t) {}
1223 - return (_isNativeReflectConstruct$10 = function _isNativeReflectConstruct() {
1224 - return !!t;
1225 - })();
1226 - }
1227 - __name(_isNativeReflectConstruct$10, "_isNativeReflectConstruct");
1228 - var _default = /*#__PURE__*/ function(_Marionette$LayoutVie) {
1229 - function _default() {
1230 - _classCallCheck(this, _default);
1231 - return _callSuper$10(this, _default, arguments);
1232 - }
1233 - _inherits(_default, _Marionette$LayoutVie);
1234 - return _createClass(_default, [
1235 - {
1236 - key: "el",
1237 - value: function el() {
1238 - return this.getModal().getElements("widget");
1239 - }
1240 - },
1241 - {
1242 - key: "regions",
1243 - value: function regions() {
1244 - return {
1245 - modalHeader: ".dialog-header",
1246 - modalContent: ".dialog-lightbox-content",
1247 - modalLoading: ".dialog-lightbox-loading"
1248 - };
1249 - }
1250 - },
1251 - {
1252 - key: "initialize",
1253 - value: function initialize() {
1254 - this.modalHeader.show(new _default$3(this.getHeaderOptions()));
1255 - }
1256 - },
1257 - {
1258 - key: "getModal",
1259 - value: function getModal() {
1260 - if (!this.modal) this.initModal();
1261 - return this.modal;
1262 - }
1263 - },
1264 - {
1265 - key: "initModal",
1266 - value: function initModal() {
1267 - var modalOptions = {
1268 - className: "elementor-templates-modal",
1269 - closeButton: false,
1270 - draggable: false,
1271 - hide: {
1272 - onOutsideClick: false,
1273 - onEscKeyPress: false
1274 - }
1275 - };
1276 - jQuery.extend(true, modalOptions, this.getModalOptions());
1277 - this.modal = elementorCommon.dialogsManager.createWidget("lightbox", modalOptions);
1278 - this.modal.getElements("message").append(this.modal.addElement("content"), this.modal.addElement("loading"));
1279 - if (modalOptions.draggable) this.draggableModal();
1280 - }
1281 - },
1282 - {
1283 - key: "showModal",
1284 - value: function showModal() {
1285 - this.getModal().show();
1286 - }
1287 - },
1288 - {
1289 - key: "hideModal",
1290 - value: function hideModal() {
1291 - this.getModal().hide();
1292 - }
1293 - },
1294 - {
1295 - key: "draggableModal",
1296 - value: function draggableModal() {
1297 - var $modalWidgetContent = this.getModal().getElements("widgetContent");
1298 - $modalWidgetContent.draggable({
1299 - containment: "parent",
1300 - stop: function stop() {
1301 - $modalWidgetContent.height("");
1302 - }
1303 - });
1304 - $modalWidgetContent.css("position", "absolute");
1305 - }
1306 - },
1307 - {
1308 - key: "getModalOptions",
1309 - value: function getModalOptions() {
1310 - return {};
1311 - }
1312 - },
1313 - {
1314 - key: "getLogoOptions",
1315 - value: function getLogoOptions() {
1316 - return {};
1317 - }
1318 - },
1319 - {
1320 - key: "getHeaderOptions",
1321 - value: function getHeaderOptions() {
1322 - return { closeType: "normal" };
1323 - }
1324 - },
1325 - {
1326 - key: "getHeaderView",
1327 - value: function getHeaderView() {
1328 - return this.modalHeader.currentView;
1329 - }
1330 - },
1331 - {
1332 - key: "showLoadingView",
1333 - value: function showLoadingView() {
1334 - this.modalLoading.show(new _default$1());
1335 - this.modalLoading.$el.show();
1336 - this.modalContent.$el.hide();
1337 - }
1338 - },
1339 - {
1340 - key: "hideLoadingView",
1341 - value: function hideLoadingView() {
1342 - this.modalContent.$el.show();
1343 - this.modalLoading.$el.hide();
1344 - }
1345 - },
1346 - {
1347 - key: "showLogo",
1348 - value: function showLogo() {
1349 - this.getHeaderView().logoArea.show(new _default$2(this.getLogoOptions()));
1350 - }
1351 - }
1352 - ]);
1353 - }(Marionette.LayoutView);
2018 + if (!(args[property] instanceof instance) && !(0, _isInstanceof.default)(args[property], instance)) {
2019 + throw Error("".concat(property, " invalid instance."));
2020 + }
2021 + }
2022 + /**
2023 + * Function requireArgumentConstructor().
2024 + *
2025 + * Validate property in args using `type === args.whatever.constructor`.
2026 + *
2027 + * @param {string} property
2028 + * @param {*} type
2029 + * @param {{}} args
2030 + *
2031 + * @throws {Error}
2032 + *
2033 + */
1354 2034
1355 -//#endregion
1356 -//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
1357 - function _arrayWithHoles(r) {
1358 - if (Array.isArray(r)) return r;
1359 - }
2035 + }, {
2036 + key: "requireArgumentConstructor",
2037 + value: function requireArgumentConstructor(property, type) {
2038 + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
2039 + this.requireArgument(property, args); // Note: Converting the constructor to string in order to avoid equation issues
2040 + // due to different memory addresses between iframes (window.Object !== window.top.Object).
1360 2041
1361 -//#endregion
1362 -//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
1363 - function _iterableToArrayLimit(r, l) {
1364 - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1365 - if (null != t) {
1366 - var e;
1367 - var n;
1368 - var i;
1369 - var u;
1370 - var a = [];
1371 - var f = !0;
1372 - var o = !1;
1373 - try {
1374 - if (i = (t = t.call(r)).next, 0 === l) {
1375 - if (Object(t) !== t) return;
1376 - f = !1;
1377 - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
1378 - } catch (r) {
1379 - o = !0, n = r;
1380 - } finally {
1381 - try {
1382 - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
1383 - } finally {
1384 - if (o) throw n;
1385 - }
1386 - }
1387 - return a;
1388 - }
1389 - }
2042 + if (args[property].constructor.toString() !== type.prototype.constructor.toString()) {
2043 + throw Error("".concat(property, " invalid constructor type."));
2044 + }
2045 + }
2046 + }], [{
2047 + key: "getInstanceType",
2048 + value: function getInstanceType() {
2049 + return 'ArgsObject';
2050 + }
2051 + }]);
2052 + return ArgsObject;
2053 +}(_instanceType.default);
1390 2054
1391 -//#endregion
1392 -//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
1393 - function _nonIterableRest() {
1394 - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1395 - }
2055 +exports["default"] = ArgsObject;
1396 2056
1397 -//#endregion
1398 -//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js
1399 - function _slicedToArray(r, e) {
1400 - return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
1401 - }
2057 +/***/ }),
1402 2058
1403 -//#endregion
1404 -//#region modules/web-cli/assets/js/utils/console.js
1405 - var Console = /*#__PURE__*/ function() {
1406 - function Console() {
1407 - _classCallCheck(this, Console);
1408 - }
1409 - return _createClass(Console, null, [{
1410 - key: "error",
1411 - value: function error(message) {
1412 - if ($e.devTools) $e.devTools.log.error(message);
1413 - if (!(message instanceof $e.modules.HookBreak)) console.error(message);
1414 - }
1415 - }, {
1416 - key: "warn",
1417 - value: function warn() {
1418 - var _console;
1419 - var style = "font-size: 12px; background-image: url(\"".concat(elementorWebCliConfig.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;");
1420 - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
1421 - args.unshift("%c %c", style, "");
1422 - (_console = console).warn.apply(_console, args);
1423 - }
1424 - }]);
1425 - }();
2059 +/***/ "../assets/dev/js/modules/imports/force-method-implementation.js":
2060 +/*!***********************************************************************!*\
2061 + !*** ../assets/dev/js/modules/imports/force-method-implementation.js ***!
2062 + \***********************************************************************/
2063 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1426 2064
1427 -//#endregion
1428 -//#region modules/web-cli/assets/js/utils/deprecation.js
2065 +"use strict";
2066 +
2067 +
2068 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2069 +
2070 +Object.defineProperty(exports, "__esModule", ({
2071 + value: true
2072 +}));
2073 +exports["default"] = exports.ForceMethodImplementation = void 0;
2074 +
2075 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2076 +
2077 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2078 +
2079 +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"));
2080 +
2081 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2082 +
2083 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2084 +
2085 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
2086 +
2087 +var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js"));
2088 +
2089 +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); }; }
2090 +
2091 +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; } }
2092 +
2093 +// TODO: Wrong location used as `elementorModules.ForceMethodImplementation(); should be` `elementorUtils.forceMethodImplementation()`;
2094 +var ForceMethodImplementation = /*#__PURE__*/function (_Error) {
2095 + (0, _inherits2.default)(ForceMethodImplementation, _Error);
2096 +
2097 + var _super = _createSuper(ForceMethodImplementation);
2098 +
2099 + function ForceMethodImplementation() {
2100 + var _this;
2101 +
2102 + var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2103 + var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2104 + (0, _classCallCheck2.default)(this, ForceMethodImplementation);
2105 + _this = _super.call(this, "".concat(info.isStatic ? 'static ' : '').concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality."), args); // Allow to pass custom properties to the error.
2106 +
2107 + if (Object.keys(args).length) {
2108 + // eslint-disable-next-line no-console
2109 + console.error(args);
2110 + }
2111 +
2112 + Error.captureStackTrace((0, _assertThisInitialized2.default)(_this), ForceMethodImplementation);
2113 + return _this;
2114 + }
2115 +
2116 + return (0, _createClass2.default)(ForceMethodImplementation);
2117 +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
2118 +
2119 +exports.ForceMethodImplementation = ForceMethodImplementation;
2120 +
2121 +var _default = function _default(args) {
2122 + var stack = Error().stack,
2123 + caller = stack.split('\n')[2].trim(),
2124 + callerName = caller.startsWith('at new') ? 'constructor' : caller.split(' ')[1],
2125 + info = {};
2126 + info.functionName = callerName;
2127 + info.fullName = callerName;
2128 +
2129 + if (info.functionName.includes('.')) {
2130 + var parts = info.functionName.split('.');
2131 + info.className = parts[0];
2132 + info.functionName = parts[1];
2133 + } else {
2134 + info.isStatic = true;
2135 + }
2136 +
2137 + throw new ForceMethodImplementation(info, args);
2138 +};
2139 +
2140 +exports["default"] = _default;
2141 +
2142 +/***/ }),
2143 +
2144 +/***/ "../assets/dev/js/modules/imports/instance-type.js":
2145 +/*!*********************************************************!*\
2146 + !*** ../assets/dev/js/modules/imports/instance-type.js ***!
2147 + \*********************************************************/
2148 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2149 +
2150 +"use strict";
2151 +
2152 +
2153 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2154 +
2155 +Object.defineProperty(exports, "__esModule", ({
2156 + value: true
2157 +}));
2158 +exports["default"] = void 0;
2159 +
2160 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2161 +
2162 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2163 +
2164 +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
2165 +
2166 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
2167 +
2168 +var InstanceType = /*#__PURE__*/function (_Symbol$hasInstance) {
2169 + function InstanceType() {
2170 + var _this = this;
2171 +
2172 + (0, _classCallCheck2.default)(this, InstanceType);
2173 + // Since anonymous classes sometimes do not get validated by babel, do it manually.
2174 + var target = this instanceof InstanceType ? this.constructor : void 0;
2175 + var prototypes = [];
2176 +
2177 + while (target.__proto__ && target.__proto__.name) {
2178 + prototypes.push(target.__proto__);
2179 + target = target.__proto__;
2180 + }
2181 +
2182 + prototypes.reverse().forEach(function (proto) {
2183 + return _this instanceof proto;
2184 + });
2185 + }
2186 +
2187 + (0, _createClass2.default)(InstanceType, null, [{
2188 + key: _Symbol$hasInstance,
2189 + value: function value(target) {
2190 + /**
2191 + * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
2192 + * its give's opportunity to mange capabilities of instanceOf operator.
2193 + * saving current class each time will give option later to handle instanceOf manually.
2194 + */
2195 + var result = (0, _get2.default)((0, _getPrototypeOf2.default)(InstanceType), Symbol.hasInstance, this).call(this, target); // Act normal when validate a class, which does not have instance type.
2196 +
2197 + if (target && !target.constructor.getInstanceType) {
2198 + return result;
2199 + }
2200 +
2201 + if (target) {
2202 + if (!target.instanceTypes) {
2203 + target.instanceTypes = [];
2204 + }
2205 +
2206 + if (!result) {
2207 + if (this.getInstanceType() === target.constructor.getInstanceType()) {
2208 + result = true;
2209 + }
2210 + }
2211 +
2212 + if (result) {
2213 + var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType();
2214 +
2215 + if (-1 === target.instanceTypes.indexOf(name)) {
2216 + target.instanceTypes.push(name);
2217 + }
2218 + }
2219 + }
2220 +
2221 + if (!result && target) {
2222 + // Check if the given 'target', is instance of known types.
2223 + result = target.instanceTypes && Array.isArray(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType());
2224 + }
2225 +
2226 + return result;
2227 + }
2228 + }, {
2229 + key: "getInstanceType",
2230 + value: function getInstanceType() {
2231 + elementorModules.ForceMethodImplementation();
2232 + }
2233 + }]);
2234 + return InstanceType;
2235 +}(Symbol.hasInstance);
2236 +
2237 +exports["default"] = InstanceType;
2238 +
2239 +/***/ }),
2240 +
2241 +/***/ "../assets/dev/js/modules/imports/module.js":
2242 +/*!**************************************************!*\
2243 + !*** ../assets/dev/js/modules/imports/module.js ***!
2244 + \**************************************************/
2245 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2246 +
2247 +"use strict";
2248 +
2249 +
2250 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2251 +
2252 +var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
2253 +
2254 +var Module = function Module() {
2255 + var $ = jQuery,
2256 + instanceParams = arguments,
2257 + self = this,
2258 + events = {};
2259 + var settings;
2260 +
2261 + var ensureClosureMethods = function ensureClosureMethods() {
2262 + $.each(self, function (methodName) {
2263 + var oldMethod = self[methodName];
2264 +
2265 + if ('function' !== typeof oldMethod) {
2266 + return;
2267 + }
2268 +
2269 + self[methodName] = function () {
2270 + return oldMethod.apply(self, arguments);
2271 + };
2272 + });
2273 + };
2274 +
2275 + var initSettings = function initSettings() {
2276 + settings = self.getDefaultSettings();
2277 + var instanceSettings = instanceParams[0];
2278 +
2279 + if (instanceSettings) {
2280 + $.extend(true, settings, instanceSettings);
2281 + }
2282 + };
2283 +
2284 + var init = function init() {
2285 + self.__construct.apply(self, instanceParams);
2286 +
2287 + ensureClosureMethods();
2288 + initSettings();
2289 + self.trigger('init');
2290 + };
2291 +
2292 + this.getItems = function (items, itemKey) {
2293 + if (itemKey) {
2294 + var keyStack = itemKey.split('.'),
2295 + currentKey = keyStack.splice(0, 1);
2296 +
2297 + if (!keyStack.length) {
2298 + return items[currentKey];
2299 + }
2300 +
2301 + if (!items[currentKey]) {
2302 + return;
2303 + }
2304 +
2305 + return this.getItems(items[currentKey], keyStack.join('.'));
2306 + }
2307 +
2308 + return items;
2309 + };
2310 +
2311 + this.getSettings = function (setting) {
2312 + return this.getItems(settings, setting);
2313 + };
2314 +
2315 + this.setSettings = function (settingKey, value, settingsContainer) {
2316 + if (!settingsContainer) {
2317 + settingsContainer = settings;
2318 + }
2319 +
2320 + if ('object' === (0, _typeof2.default)(settingKey)) {
2321 + $.extend(settingsContainer, settingKey);
2322 + return self;
2323 + }
2324 +
2325 + var keyStack = settingKey.split('.'),
2326 + currentKey = keyStack.splice(0, 1);
2327 +
2328 + if (!keyStack.length) {
2329 + settingsContainer[currentKey] = value;
2330 + return self;
2331 + }
2332 +
2333 + if (!settingsContainer[currentKey]) {
2334 + settingsContainer[currentKey] = {};
2335 + }
2336 +
2337 + return self.setSettings(keyStack.join('.'), value, settingsContainer[currentKey]);
2338 + };
2339 +
2340 + this.getErrorMessage = function (type, functionName) {
2341 + var message;
2342 +
2343 + switch (type) {
2344 + case 'forceMethodImplementation':
2345 + message = "The method '".concat(functionName, "' must to be implemented in the inheritor child.");
2346 + break;
2347 +
2348 + default:
2349 + message = 'An error occurs';
2350 + }
2351 +
2352 + return message;
2353 + }; // TODO: This function should be deleted ?.
2354 +
2355 +
2356 + this.forceMethodImplementation = function (functionName) {
2357 + throw new Error(this.getErrorMessage('forceMethodImplementation', functionName));
2358 + };
2359 +
2360 + this.on = function (eventName, callback) {
2361 + if ('object' === (0, _typeof2.default)(eventName)) {
2362 + $.each(eventName, function (singleEventName) {
2363 + self.on(singleEventName, this);
2364 + });
2365 + return self;
2366 + }
2367 +
2368 + var eventNames = eventName.split(' ');
2369 + eventNames.forEach(function (singleEventName) {
2370 + if (!events[singleEventName]) {
2371 + events[singleEventName] = [];
2372 + }
2373 +
2374 + events[singleEventName].push(callback);
2375 + });
2376 + return self;
2377 + };
2378 +
2379 + this.off = function (eventName, callback) {
2380 + if (!events[eventName]) {
2381 + return self;
2382 + }
2383 +
2384 + if (!callback) {
2385 + delete events[eventName];
2386 + return self;
2387 + }
2388 +
2389 + var callbackIndex = events[eventName].indexOf(callback);
2390 +
2391 + if (-1 !== callbackIndex) {
2392 + delete events[eventName][callbackIndex]; // Reset array index (for next off on same event).
2393 +
2394 + events[eventName] = events[eventName].filter(function (val) {
2395 + return val;
2396 + });
2397 + }
2398 +
2399 + return self;
2400 + };
2401 +
2402 + this.trigger = function (eventName) {
2403 + var methodName = 'on' + eventName[0].toUpperCase() + eventName.slice(1),
2404 + params = Array.prototype.slice.call(arguments, 1);
2405 +
2406 + if (self[methodName]) {
2407 + self[methodName].apply(self, params);
2408 + }
2409 +
2410 + var callbacks = events[eventName];
2411 +
2412 + if (!callbacks) {
2413 + return self;
2414 + }
2415 +
2416 + $.each(callbacks, function (index, callback) {
2417 + callback.apply(self, params);
2418 + });
2419 + return self;
2420 + };
2421 +
2422 + init();
2423 +};
2424 +
2425 +Module.prototype.__construct = function () {};
2426 +
2427 +Module.prototype.getDefaultSettings = function () {
2428 + return {};
2429 +};
2430 +
2431 +Module.prototype.getConstructorID = function () {
2432 + return this.constructor.name;
2433 +};
2434 +
2435 +Module.extend = function (properties) {
2436 + var $ = jQuery,
2437 + parent = this;
2438 +
2439 + var child = function child() {
2440 + return parent.apply(this, arguments);
2441 + };
2442 +
2443 + $.extend(child, parent);
2444 + child.prototype = Object.create($.extend({}, parent.prototype, properties));
2445 + child.prototype.constructor = child;
2446 + child.__super__ = parent.prototype;
2447 + return child;
2448 +};
2449 +
2450 +module.exports = Module;
2451 +
2452 +/***/ }),
2453 +
2454 +/***/ "../assets/dev/js/modules/imports/utils/masonry.js":
2455 +/*!*********************************************************!*\
2456 + !*** ../assets/dev/js/modules/imports/utils/masonry.js ***!
2457 + \*********************************************************/
2458 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2459 +
2460 +"use strict";
2461 +
2462 +
2463 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2464 +
2465 +Object.defineProperty(exports, "__esModule", ({
2466 + value: true
2467 +}));
2468 +exports["default"] = void 0;
2469 +
2470 +var _viewModule = _interopRequireDefault(__webpack_require__(/*! ../view-module */ "../assets/dev/js/modules/imports/view-module.js"));
2471 +
2472 +var _default = _viewModule.default.extend({
2473 + getDefaultSettings: function getDefaultSettings() {
2474 + return {
2475 + container: null,
2476 + items: null,
2477 + columnsCount: 3,
2478 + verticalSpaceBetween: 30
2479 + };
2480 + },
2481 + getDefaultElements: function getDefaultElements() {
2482 + return {
2483 + $container: jQuery(this.getSettings('container')),
2484 + $items: jQuery(this.getSettings('items'))
2485 + };
2486 + },
2487 + run: function run() {
2488 + var heights = [],
2489 + distanceFromTop = this.elements.$container.position().top,
2490 + settings = this.getSettings(),
2491 + columnsCount = settings.columnsCount;
2492 + distanceFromTop += parseInt(this.elements.$container.css('margin-top'), 10);
2493 + this.elements.$items.each(function (index) {
2494 + var row = Math.floor(index / columnsCount),
2495 + $item = jQuery(this),
2496 + itemHeight = $item[0].getBoundingClientRect().height + settings.verticalSpaceBetween;
2497 +
2498 + if (row) {
2499 + var itemPosition = $item.position(),
2500 + indexAtRow = index % columnsCount,
2501 + pullHeight = itemPosition.top - distanceFromTop - heights[indexAtRow];
2502 + pullHeight -= parseInt($item.css('margin-top'), 10);
2503 + pullHeight *= -1;
2504 + $item.css('margin-top', pullHeight + 'px');
2505 + heights[indexAtRow] += itemHeight;
2506 + } else {
2507 + heights.push(itemHeight);
2508 + }
2509 + });
2510 + }
2511 +});
2512 +
2513 +exports["default"] = _default;
2514 +
2515 +/***/ }),
2516 +
2517 +/***/ "../assets/dev/js/modules/imports/utils/scroll.js":
2518 +/*!********************************************************!*\
2519 + !*** ../assets/dev/js/modules/imports/utils/scroll.js ***!
2520 + \********************************************************/
2521 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2522 +
2523 +"use strict";
2524 +
2525 +
2526 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2527 +
2528 +Object.defineProperty(exports, "__esModule", ({
2529 + value: true
2530 +}));
2531 +exports["default"] = void 0;
2532 +
2533 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2534 +
2535 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2536 +
2537 +// Moved from elementor pro: 'assets/dev/js/frontend/utils'
2538 +var Scroll = /*#__PURE__*/function () {
2539 + function Scroll() {
2540 + (0, _classCallCheck2.default)(this, Scroll);
2541 + }
2542 +
2543 + (0, _createClass2.default)(Scroll, null, [{
2544 + key: "scrollObserver",
2545 + value:
2546 + /**
2547 + * @param {Object} obj
2548 + * @param {number} obj.sensitivity - Value between 0-100 - Will determine the intersection trigger points on the element
2549 + * @param {Function} obj.callback - Will be triggered on each intersection point between the element and the viewport top/bottom
2550 + * @param {string} obj.offset - Offset between the element intersection points and the viewport, written like in CSS: '-50% 0 -25%'
2551 + * @param {HTMLElement} obj.root - The element that the events will be relative to, if 'null' will be relative to the viewport
2552 + */
2553 + function scrollObserver(obj) {
2554 + var lastScrollY = 0; // Generating threshholds points along the animation height
2555 + // More threshholds points = more trigger points of the callback
2556 +
2557 + var buildThreshholds = function buildThreshholds() {
2558 + var sensitivityPercentage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
2559 + var threshholds = [];
2560 +
2561 + if (sensitivityPercentage > 0 && sensitivityPercentage <= 100) {
2562 + var increment = 100 / sensitivityPercentage;
2563 +
2564 + for (var i = 0; i <= 100; i += increment) {
2565 + threshholds.push(i / 100);
2566 + }
2567 + } else {
2568 + threshholds.push(0);
2569 + }
2570 +
2571 + return threshholds;
2572 + };
2573 +
2574 + var options = {
2575 + root: obj.root || null,
2576 + rootMargin: obj.offset || '0px',
2577 + threshold: buildThreshholds(obj.sensitivity)
2578 + };
2579 +
2580 + function handleIntersect(entries) {
2581 + var currentScrollY = entries[0].boundingClientRect.y,
2582 + isInViewport = entries[0].isIntersecting,
2583 + intersectionScrollDirection = currentScrollY < lastScrollY ? 'down' : 'up',
2584 + scrollPercentage = Math.abs(parseFloat((entries[0].intersectionRatio * 100).toFixed(2)));
2585 + obj.callback({
2586 + sensitivity: obj.sensitivity,
2587 + isInViewport: isInViewport,
2588 + scrollPercentage: scrollPercentage,
2589 + intersectionScrollDirection: intersectionScrollDirection
2590 + });
2591 + lastScrollY = currentScrollY;
2592 + }
2593 +
2594 + return new IntersectionObserver(handleIntersect, options);
2595 + }
2596 + /**
2597 + * @param {jQuery.Element} $element
2598 + * @param {Object} offsetObj
2599 + * @param {number} offsetObj.start - Offset start value in percentages
2600 + * @param {number} offsetObj.end - Offset end value in percentages
2601 + */
2602 +
2603 + }, {
2604 + key: "getElementViewportPercentage",
2605 + value: function getElementViewportPercentage($element) {
2606 + var offsetObj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2607 + var elementOffset = $element[0].getBoundingClientRect(),
2608 + offsetStart = offsetObj.start || 0,
2609 + offsetEnd = offsetObj.end || 0,
2610 + windowStartOffset = window.innerHeight * offsetStart / 100,
2611 + windowEndOffset = window.innerHeight * offsetEnd / 100,
2612 + y1 = elementOffset.top - window.innerHeight,
2613 + y2 = elementOffset.top + windowStartOffset + $element.height(),
2614 + startPosition = 0 - y1 + windowStartOffset,
2615 + endPosition = y2 - y1 + windowEndOffset,
2616 + percent = Math.max(0, Math.min(startPosition / endPosition, 1));
2617 + return parseFloat((percent * 100).toFixed(2));
2618 + }
2619 + /**
2620 + * @param {Object} offsetObj
2621 + * @param {number} offsetObj.start - Offset start value in percentages
2622 + * @param {number} offsetObj.end - Offset end value in percentages
2623 + * @param {number} limitPageHeight - Will limit the page height calculation
2624 + */
2625 +
2626 + }, {
2627 + key: "getPageScrollPercentage",
2628 + value: function getPageScrollPercentage() {
2629 + var offsetObj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2630 + var limitPageHeight = arguments.length > 1 ? arguments[1] : undefined;
2631 + var offsetStart = offsetObj.start || 0,
2632 + offsetEnd = offsetObj.end || 0,
2633 + initialPageHeight = limitPageHeight || document.documentElement.scrollHeight - document.documentElement.clientHeight,
2634 + heightOffset = initialPageHeight * offsetStart / 100,
2635 + pageRange = initialPageHeight + heightOffset + initialPageHeight * offsetEnd / 100,
2636 + scrollPos = document.documentElement.scrollTop + document.body.scrollTop + heightOffset;
2637 + return scrollPos / pageRange * 100;
2638 + }
2639 + }]);
2640 + return Scroll;
2641 +}();
2642 +
2643 +exports["default"] = Scroll;
2644 +
2645 +/***/ }),
2646 +
2647 +/***/ "../assets/dev/js/modules/imports/view-module.js":
2648 +/*!*******************************************************!*\
2649 + !*** ../assets/dev/js/modules/imports/view-module.js ***!
2650 + \*******************************************************/
2651 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2652 +
2653 +"use strict";
2654 +
2655 +
2656 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2657 +
2658 +Object.defineProperty(exports, "__esModule", ({
2659 + value: true
2660 +}));
2661 +exports["default"] = void 0;
2662 +
2663 +var _module = _interopRequireDefault(__webpack_require__(/*! ./module */ "../assets/dev/js/modules/imports/module.js"));
2664 +
2665 +var _default = _module.default.extend({
2666 + elements: null,
2667 + getDefaultElements: function getDefaultElements() {
2668 + return {};
2669 + },
2670 + bindEvents: function bindEvents() {},
2671 + onInit: function onInit() {
2672 + this.initElements();
2673 + this.bindEvents();
2674 + },
2675 + initElements: function initElements() {
2676 + this.elements = this.getDefaultElements();
2677 + }
2678 +});
2679 +
2680 +exports["default"] = _default;
2681 +
2682 +/***/ }),
2683 +
2684 +/***/ "../assets/dev/js/modules/modules.js":
2685 +/*!*******************************************!*\
2686 + !*** ../assets/dev/js/modules/modules.js ***!
2687 + \*******************************************/
2688 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2689 +
2690 +"use strict";
2691 +
2692 +
2693 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2694 +
2695 +Object.defineProperty(exports, "__esModule", ({
2696 + value: true
2697 +}));
2698 +exports["default"] = void 0;
2699 +
2700 +var _module = _interopRequireDefault(__webpack_require__(/*! ./imports/module */ "../assets/dev/js/modules/imports/module.js"));
2701 +
2702 +var _viewModule = _interopRequireDefault(__webpack_require__(/*! ./imports/view-module */ "../assets/dev/js/modules/imports/view-module.js"));
2703 +
2704 +var _argsObject = _interopRequireDefault(__webpack_require__(/*! ./imports/args-object */ "../assets/dev/js/modules/imports/args-object.js"));
2705 +
2706 +var _masonry = _interopRequireDefault(__webpack_require__(/*! ./imports/utils/masonry */ "../assets/dev/js/modules/imports/utils/masonry.js"));
2707 +
2708 +var _scroll = _interopRequireDefault(__webpack_require__(/*! ./imports/utils/scroll */ "../assets/dev/js/modules/imports/utils/scroll.js"));
2709 +
2710 +var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ./imports/force-method-implementation */ "../assets/dev/js/modules/imports/force-method-implementation.js"));
2711 +
2712 +var _default = window.elementorModules = {
2713 + Module: _module.default,
2714 + ViewModule: _viewModule.default,
2715 + ArgsObject: _argsObject.default,
2716 + ForceMethodImplementation: _forceMethodImplementation.default,
2717 + utils: {
2718 + Masonry: _masonry.default,
2719 + Scroll: _scroll.default
2720 + }
2721 +};
2722 +
2723 +exports["default"] = _default;
2724 +
2725 +/***/ }),
2726 +
2727 +/***/ "../core/common/assets/js/views/modal/header.js":
2728 +/*!******************************************************!*\
2729 + !*** ../core/common/assets/js/views/modal/header.js ***!
2730 + \******************************************************/
2731 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2732 +
2733 +"use strict";
2734 +
2735 +
2736 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2737 +
2738 +Object.defineProperty(exports, "__esModule", ({
2739 + value: true
2740 +}));
2741 +exports["default"] = void 0;
2742 +
2743 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2744 +
2745 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2746 +
2747 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2748 +
2749 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2750 +
2751 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
2752 +
2753 +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); }; }
2754 +
2755 +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; } }
2756 +
2757 +var _default = /*#__PURE__*/function (_Marionette$LayoutVie) {
2758 + (0, _inherits2.default)(_default, _Marionette$LayoutVie);
2759 +
2760 + var _super = _createSuper(_default);
2761 +
2762 + function _default() {
2763 + (0, _classCallCheck2.default)(this, _default);
2764 + return _super.apply(this, arguments);
2765 + }
2766 +
2767 + (0, _createClass2.default)(_default, [{
2768 + key: "className",
2769 + value: function className() {
2770 + return 'elementor-templates-modal__header';
2771 + }
2772 + }, {
2773 + key: "getTemplate",
2774 + value: function getTemplate() {
2775 + return '#tmpl-elementor-templates-modal__header';
2776 + }
2777 + }, {
2778 + key: "regions",
2779 + value: function regions() {
2780 + return {
2781 + logoArea: '.elementor-templates-modal__header__logo-area',
2782 + tools: '#elementor-template-library-header-tools',
2783 + menuArea: '.elementor-templates-modal__header__menu-area'
2784 + };
2785 + }
2786 + }, {
2787 + key: "ui",
2788 + value: function ui() {
2789 + return {
2790 + closeModal: '.elementor-templates-modal__header__close'
2791 + };
2792 + }
2793 + }, {
2794 + key: "events",
2795 + value: function events() {
2796 + return {
2797 + 'click @ui.closeModal': 'onCloseModalClick'
2798 + };
2799 + }
2800 + }, {
2801 + key: "templateHelpers",
2802 + value: function templateHelpers() {
2803 + return {
2804 + closeType: this.getOption('closeType')
2805 + };
2806 + }
2807 + }, {
2808 + key: "onCloseModalClick",
2809 + value: function onCloseModalClick() {
2810 + this._parent._parent._parent.hideModal();
2811 + }
2812 + }]);
2813 + return _default;
2814 +}(Marionette.LayoutView);
2815 +
2816 +exports["default"] = _default;
2817 +
2818 +/***/ }),
2819 +
2820 +/***/ "../core/common/assets/js/views/modal/layout.js":
2821 +/*!******************************************************!*\
2822 + !*** ../core/common/assets/js/views/modal/layout.js ***!
2823 + \******************************************************/
2824 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2825 +
2826 +"use strict";
2827 +
2828 +
2829 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2830 +
2831 +Object.defineProperty(exports, "__esModule", ({
2832 + value: true
2833 +}));
2834 +exports["default"] = void 0;
2835 +
2836 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2837 +
2838 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2839 +
2840 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2841 +
2842 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2843 +
2844 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
2845 +
2846 +var _header = _interopRequireDefault(__webpack_require__(/*! ./header */ "../core/common/assets/js/views/modal/header.js"));
2847 +
2848 +var _logo = _interopRequireDefault(__webpack_require__(/*! ./logo */ "../core/common/assets/js/views/modal/logo.js"));
2849 +
2850 +var _loading = _interopRequireDefault(__webpack_require__(/*! ./loading */ "../core/common/assets/js/views/modal/loading.js"));
2851 +
2852 +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); }; }
2853 +
2854 +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; } }
2855 +
2856 +var _default = /*#__PURE__*/function (_Marionette$LayoutVie) {
2857 + (0, _inherits2.default)(_default, _Marionette$LayoutVie);
2858 +
2859 + var _super = _createSuper(_default);
2860 +
2861 + function _default() {
2862 + (0, _classCallCheck2.default)(this, _default);
2863 + return _super.apply(this, arguments);
2864 + }
2865 +
2866 + (0, _createClass2.default)(_default, [{
2867 + key: "el",
2868 + value: function el() {
2869 + return this.getModal().getElements('widget');
2870 + }
2871 + }, {
2872 + key: "regions",
2873 + value: function regions() {
2874 + return {
2875 + modalHeader: '.dialog-header',
2876 + modalContent: '.dialog-lightbox-content',
2877 + modalLoading: '.dialog-lightbox-loading'
2878 + };
2879 + }
2880 + }, {
2881 + key: "initialize",
2882 + value: function initialize() {
2883 + this.modalHeader.show(new _header.default(this.getHeaderOptions()));
2884 + }
2885 + }, {
2886 + key: "getModal",
2887 + value: function getModal() {
2888 + if (!this.modal) {
2889 + this.initModal();
2890 + }
2891 +
2892 + return this.modal;
2893 + }
2894 + }, {
2895 + key: "initModal",
2896 + value: function initModal() {
2897 + var modalOptions = {
2898 + className: 'elementor-templates-modal',
2899 + closeButton: false,
2900 + draggable: false,
2901 + hide: {
2902 + onOutsideClick: false,
2903 + onEscKeyPress: false
2904 + }
2905 + };
2906 + jQuery.extend(true, modalOptions, this.getModalOptions());
2907 + this.modal = elementorCommon.dialogsManager.createWidget('lightbox', modalOptions);
2908 + this.modal.getElements('message').append(this.modal.addElement('content'), this.modal.addElement('loading'));
2909 +
2910 + if (modalOptions.draggable) {
2911 + this.draggableModal();
2912 + }
2913 + }
2914 + }, {
2915 + key: "showModal",
2916 + value: function showModal() {
2917 + this.getModal().show();
2918 + }
2919 + }, {
2920 + key: "hideModal",
2921 + value: function hideModal() {
2922 + this.getModal().hide();
2923 + }
2924 + }, {
2925 + key: "draggableModal",
2926 + value: function draggableModal() {
2927 + var $modalWidgetContent = this.getModal().getElements('widgetContent');
2928 + $modalWidgetContent.draggable({
2929 + containment: 'parent',
2930 + stop: function stop() {
2931 + $modalWidgetContent.height('');
2932 + }
2933 + });
2934 + $modalWidgetContent.css('position', 'absolute');
2935 + }
2936 + }, {
2937 + key: "getModalOptions",
2938 + value: function getModalOptions() {
2939 + return {};
2940 + }
2941 + }, {
2942 + key: "getLogoOptions",
2943 + value: function getLogoOptions() {
2944 + return {};
2945 + }
2946 + }, {
2947 + key: "getHeaderOptions",
2948 + value: function getHeaderOptions() {
2949 + return {
2950 + closeType: 'normal'
2951 + };
2952 + }
2953 + }, {
2954 + key: "getHeaderView",
2955 + value: function getHeaderView() {
2956 + return this.modalHeader.currentView;
2957 + }
2958 + }, {
2959 + key: "showLoadingView",
2960 + value: function showLoadingView() {
2961 + this.modalLoading.show(new _loading.default());
2962 + this.modalLoading.$el.show();
2963 + this.modalContent.$el.hide();
2964 + }
2965 + }, {
2966 + key: "hideLoadingView",
2967 + value: function hideLoadingView() {
2968 + this.modalContent.$el.show();
2969 + this.modalLoading.$el.hide();
2970 + }
2971 + }, {
2972 + key: "showLogo",
2973 + value: function showLogo() {
2974 + this.getHeaderView().logoArea.show(new _logo.default(this.getLogoOptions()));
2975 + }
2976 + }]);
2977 + return _default;
2978 +}(Marionette.LayoutView);
2979 +
2980 +exports["default"] = _default;
2981 +
2982 +/***/ }),
2983 +
2984 +/***/ "../core/common/assets/js/views/modal/loading.js":
2985 +/*!*******************************************************!*\
2986 + !*** ../core/common/assets/js/views/modal/loading.js ***!
2987 + \*******************************************************/
2988 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2989 +
2990 +"use strict";
2991 +
2992 +
2993 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2994 +
2995 +Object.defineProperty(exports, "__esModule", ({
2996 + value: true
2997 +}));
2998 +exports["default"] = void 0;
2999 +
3000 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3001 +
3002 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
3003 +
3004 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
3005 +
3006 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
3007 +
3008 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
3009 +
3010 +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); }; }
3011 +
3012 +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; } }
3013 +
3014 +var _default = /*#__PURE__*/function (_Marionette$ItemView) {
3015 + (0, _inherits2.default)(_default, _Marionette$ItemView);
3016 +
3017 + var _super = _createSuper(_default);
3018 +
3019 + function _default() {
3020 + (0, _classCallCheck2.default)(this, _default);
3021 + return _super.apply(this, arguments);
3022 + }
3023 +
3024 + (0, _createClass2.default)(_default, [{
3025 + key: "id",
3026 + value: function id() {
3027 + return 'elementor-template-library-loading';
3028 + }
3029 + }, {
3030 + key: "getTemplate",
3031 + value: function getTemplate() {
3032 + return '#tmpl-elementor-template-library-loading';
3033 + }
3034 + }]);
3035 + return _default;
3036 +}(Marionette.ItemView);
3037 +
3038 +exports["default"] = _default;
3039 +
3040 +/***/ }),
3041 +
3042 +/***/ "../core/common/assets/js/views/modal/logo.js":
3043 +/*!****************************************************!*\
3044 + !*** ../core/common/assets/js/views/modal/logo.js ***!
3045 + \****************************************************/
3046 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
3047 +
3048 +"use strict";
3049 +
3050 +
3051 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3052 +
3053 +Object.defineProperty(exports, "__esModule", ({
3054 + value: true
3055 +}));
3056 +exports["default"] = void 0;
3057 +
3058 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3059 +
3060 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
3061 +
3062 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
3063 +
3064 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
3065 +
3066 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
3067 +
3068 +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); }; }
3069 +
3070 +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; } }
3071 +
3072 +var _default = /*#__PURE__*/function (_Marionette$ItemView) {
3073 + (0, _inherits2.default)(_default, _Marionette$ItemView);
3074 +
3075 + var _super = _createSuper(_default);
3076 +
3077 + function _default() {
3078 + (0, _classCallCheck2.default)(this, _default);
3079 + return _super.apply(this, arguments);
3080 + }
3081 +
3082 + (0, _createClass2.default)(_default, [{
3083 + key: "getTemplate",
3084 + value: function getTemplate() {
3085 + return '#tmpl-elementor-templates-modal__header__logo';
3086 + }
3087 + }, {
3088 + key: "className",
3089 + value: function className() {
3090 + return 'elementor-templates-modal__header__logo';
3091 + }
3092 + }, {
3093 + key: "events",
3094 + value: function events() {
3095 + return {
3096 + click: 'onClick'
3097 + };
3098 + }
3099 + }, {
3100 + key: "templateHelpers",
3101 + value: function templateHelpers() {
3102 + return {
3103 + title: this.getOption('title')
3104 + };
3105 + }
3106 + }, {
3107 + key: "onClick",
3108 + value: function onClick() {
3109 + var clickCallback = this.getOption('click');
3110 +
3111 + if (clickCallback) {
3112 + clickCallback();
3113 + }
3114 + }
3115 + }]);
3116 + return _default;
3117 +}(Marionette.ItemView);
3118 +
3119 +exports["default"] = _default;
3120 +
3121 +/***/ }),
3122 +
3123 +/***/ "../modules/web-cli/assets/js/modules/command-base.js":
3124 +/*!************************************************************!*\
3125 + !*** ../modules/web-cli/assets/js/modules/command-base.js ***!
3126 + \************************************************************/
3127 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
3128 +
3129 +"use strict";
3130 +
3131 +
3132 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3133 +
3134 +Object.defineProperty(exports, "__esModule", ({
3135 + value: true
3136 +}));
3137 +exports["default"] = void 0;
3138 +
3139 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3140 +
3141 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
3142 +
3143 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
3144 +
3145 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
3146 +
3147 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
3148 +
3149 +var _commandInfra = _interopRequireDefault(__webpack_require__(/*! ./command-infra */ "../modules/web-cli/assets/js/modules/command-infra.js"));
3150 +
3151 +var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
3152 +
3153 +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); }; }
3154 +
3155 +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; } }
3156 +
1429 3157 /**
1430 - * @typedef {Object} Version
1431 - * @property {number} major1 The first number
1432 - * @property {number} major2 The second number
1433 - * @property {number} minor The third number
1434 - * @property {string} build The fourth number
1435 - */
1436 - var softDeprecated = function softDeprecated(name, version, replacement) {
1437 - if (elementorWebCliConfig.isDebug) deprecatedMessage("soft", name, version, replacement);
1438 - };
1439 - var hardDeprecated = function hardDeprecated(name, version, replacement) {
1440 - deprecatedMessage("hard", name, version, replacement);
1441 - };
1442 - var deprecatedMessage = function deprecatedMessage(type, name, version, replacement) {
1443 - var message = "`".concat(name, "` is ").concat(type, " deprecated since ").concat(version);
1444 - if (replacement) message += " - Use `".concat(replacement, "` instead");
1445 - Console.warn(message);
1446 - };
1447 - var Deprecation = /*#__PURE__*/ function() {
1448 - function Deprecation() {
1449 - _classCallCheck(this, Deprecation);
1450 - }
1451 - return _createClass(Deprecation, null, [
1452 - {
1453 - key: "deprecated",
1454 - value: function deprecated(name, version, replacement) {
1455 - if (this.isHardDeprecated(version)) hardDeprecated(name, version, replacement);
1456 - else softDeprecated(name, version, replacement);
1457 - }
1458 - },
1459 - {
1460 - key: "parseVersion",
1461 - value: function parseVersion(version) {
1462 - var versionParts = version.split(".");
1463 - if (versionParts.length < 3 || versionParts.length > 4) throw new RangeError("Invalid Semantic Version string provided");
1464 - var _versionParts = _slicedToArray(versionParts, 4);
1465 - var major1 = _versionParts[0];
1466 - var major2 = _versionParts[1];
1467 - var minor = _versionParts[2];
1468 - var _versionParts$ = _versionParts[3];
1469 - return {
1470 - major1: parseInt(major1),
1471 - major2: parseInt(major2),
1472 - minor: parseInt(minor),
1473 - build: _versionParts$ === void 0 ? "" : _versionParts$
1474 - };
1475 - }
1476 - },
1477 - {
1478 - key: "getTotalMajor",
1479 - value: function getTotalMajor(versionObj) {
1480 - var total = parseInt("".concat(versionObj.major1).concat(versionObj.major2, "0"));
1481 - total = Number((total / 10).toFixed(0));
1482 - if (versionObj.major2 > 9) total = versionObj.major2 - 9;
1483 - return total;
1484 - }
1485 - },
1486 - {
1487 - key: "compareVersion",
1488 - value: function compareVersion(version1, version2) {
1489 - var _this = this;
1490 - return [this.parseVersion(version1), this.parseVersion(version2)].map(function(versionObj) {
1491 - return _this.getTotalMajor(versionObj);
1492 - }).reduce(function(acc, major) {
1493 - return acc - major;
1494 - });
1495 - }
1496 - },
1497 - {
1498 - key: "isSoftDeprecated",
1499 - value: function isSoftDeprecated(version) {
1500 - return this.compareVersion(version, elementorWebCliConfig.version) <= 4;
1501 - }
1502 - },
1503 - {
1504 - key: "isHardDeprecated",
1505 - value: function isHardDeprecated(version) {
1506 - var total = this.compareVersion(version, elementorWebCliConfig.version);
1507 - return total < 0 || total >= 8;
1508 - }
1509 - }
1510 - ]);
1511 - }();
3158 + * @name $e.modules.CommandBase
3159 + */
3160 +var CommandBase = /*#__PURE__*/function (_CommandInfra) {
3161 + (0, _inherits2.default)(CommandBase, _CommandInfra);
1512 3162
1513 -//#endregion
1514 -//#region modules/web-cli/assets/js/modules/command-infra.js
1515 - function _callSuper$9(t, o, e) {
1516 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$9() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1517 - }
1518 - __name(_callSuper$9, "_callSuper");
1519 - function _isNativeReflectConstruct$9() {
1520 - try {
1521 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1522 - } catch (t) {}
1523 - return (_isNativeReflectConstruct$9 = function _isNativeReflectConstruct() {
1524 - return !!t;
1525 - })();
1526 - }
1527 - __name(_isNativeReflectConstruct$9, "_isNativeReflectConstruct");
1528 - /**
1529 - * @typedef {import('../modules/component-base')} ComponentBase
1530 - */
1531 - var CommandInfra = /*#__PURE__*/ function(_ArgsObject) {
1532 - /**
1533 - * Function constructor().
1534 - *
1535 - * Create Commands Base.
1536 - *
1537 - * @param {{}} args
1538 - */
1539 - function CommandInfra() {
1540 - var _this;
1541 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1542 - _classCallCheck(this, CommandInfra);
1543 - _this = _callSuper$9(this, CommandInfra, [args]);
1544 - if (!_this.constructor.registerConfig) throw RangeError("Doing it wrong: Each command type should have `registerConfig`.");
1545 - _this.command = _this.constructor.getCommand();
1546 - _this.component = _this.constructor.getComponent();
1547 - _this.initialize(args);
1548 - args = _this.args;
1549 - _this.validateArgs(args);
1550 - return _this;
1551 - }
1552 - /**
1553 - * Function initialize().
1554 - *
1555 - * Initialize command, called after construction.
1556 - *
1557 - * @param {{}} args
1558 - */
1559 - _inherits(CommandInfra, _ArgsObject);
1560 - return _createClass(CommandInfra, [
1561 - {
1562 - key: "currentCommand",
1563 - get: function get() {
1564 - Deprecation.deprecated("this.currentCommand", "3.7.0", "this.command");
1565 - return this.command;
1566 - }
1567 - },
1568 - {
1569 - key: "initialize",
1570 - value: function initialize() {
1571 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
1572 - }
1573 - },
1574 - {
1575 - key: "validateArgs",
1576 - value: function validateArgs() {
1577 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
1578 - }
1579 - },
1580 - {
1581 - key: "apply",
1582 - value: function apply() {
1583 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
1584 - elementorModules.ForceMethodImplementation();
1585 - }
1586 - },
1587 - {
1588 - key: "run",
1589 - value: function run() {
1590 - return this.apply(this.args);
1591 - }
1592 - },
1593 - {
1594 - key: "onBeforeRun",
1595 - value: function onBeforeRun() {
1596 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
1597 - }
1598 - },
1599 - {
1600 - key: "onAfterRun",
1601 - value: function onAfterRun() {
1602 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
1603 - arguments.length > 1 && arguments[1];
1604 - }
1605 - },
1606 - {
1607 - key: "onBeforeApply",
1608 - value: function onBeforeApply() {
1609 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
1610 - }
1611 - },
1612 - {
1613 - key: "onAfterApply",
1614 - value: function onAfterApply() {
1615 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
1616 - arguments.length > 1 && arguments[1];
1617 - }
1618 - },
1619 - {
1620 - key: "onCatchApply",
1621 - value: function onCatchApply(e) {}
1622 - }
1623 - ], [
1624 - {
1625 - key: "getInstanceType",
1626 - value: function getInstanceType() {
1627 - return "CommandInfra";
1628 - }
1629 - },
1630 - {
1631 - key: "getInfo",
1632 - value: function getInfo() {
1633 - return {};
1634 - }
1635 - },
1636 - {
1637 - key: "getCommand",
1638 - value: function getCommand() {
1639 - return this.registerConfig.command;
1640 - }
1641 - },
1642 - {
1643 - key: "getComponent",
1644 - value: function getComponent() {
1645 - return this.registerConfig.component;
1646 - }
1647 - },
1648 - {
1649 - key: "setRegisterConfig",
1650 - value: function setRegisterConfig(config) {
1651 - this.registerConfig = Object.freeze(config);
1652 - }
1653 - }
1654 - ]);
1655 - }(ArgsObject);
1656 - /**
1657 - * @type {Object}
1658 - */
1659 - _defineProperty(CommandInfra, "registerConfig", null);
3163 + var _super = _createSuper(CommandBase);
1660 3164
1661 -//#endregion
1662 -//#region modules/web-cli/assets/js/modules/command-base.js
1663 - function _callSuper$8(t, o, e) {
1664 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$8() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1665 - }
1666 - __name(_callSuper$8, "_callSuper");
1667 - function _isNativeReflectConstruct$8() {
1668 - try {
1669 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1670 - } catch (t) {}
1671 - return (_isNativeReflectConstruct$8 = function _isNativeReflectConstruct() {
1672 - return !!t;
1673 - })();
1674 - }
1675 - __name(_isNativeReflectConstruct$8, "_isNativeReflectConstruct");
1676 - /**
1677 - * @name $e.modules.CommandBase
1678 - */
1679 - var CommandBase = /*#__PURE__*/ function(_CommandInfra) {
1680 - function CommandBase() {
1681 - _classCallCheck(this, CommandBase);
1682 - return _callSuper$8(this, CommandBase, arguments);
1683 - }
1684 - _inherits(CommandBase, _CommandInfra);
1685 - return _createClass(CommandBase, [
1686 - {
1687 - key: "onBeforeRun",
1688 - value: function onBeforeRun() {
1689 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1690 - $e.hooks.runUIBefore(this.command, args);
1691 - }
1692 - },
1693 - {
1694 - key: "onAfterRun",
1695 - value: function onAfterRun() {
1696 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1697 - var result = arguments.length > 1 ? arguments[1] : void 0;
1698 - $e.hooks.runUIAfter(this.command, args, result);
1699 - }
1700 - },
1701 - {
1702 - key: "onBeforeApply",
1703 - value: function onBeforeApply() {
1704 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1705 - $e.hooks.runDataDependency(this.command, args);
1706 - }
1707 - },
1708 - {
1709 - key: "onAfterApply",
1710 - value: function onAfterApply() {
1711 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1712 - var result = arguments.length > 1 ? arguments[1] : void 0;
1713 - return $e.hooks.runDataAfter(this.command, args, result);
1714 - }
1715 - },
1716 - {
1717 - key: "onCatchApply",
1718 - value: function onCatchApply(e) {
1719 - this.runCatchHooks(e);
1720 - }
1721 - },
1722 - {
1723 - key: "runCatchHooks",
1724 - value: function runCatchHooks(e) {
1725 - $e.hooks.runDataCatch(this.command, this.args, e);
1726 - $e.hooks.runUICatch(this.command, this.args, e);
1727 - }
1728 - },
1729 - {
1730 - key: "requireContainer",
1731 - value: function requireContainer() {
1732 - var _this = this;
1733 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.args;
1734 - Deprecation.deprecated("requireContainer()", "3.7.0", "Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`");
1735 - if (!args.container && !args.containers) throw Error("container or containers are required.");
1736 - if (args.container && args.containers) throw Error("container and containers cannot go together please select one of them.");
1737 - (args.containers || [args.container]).forEach(function(container) {
1738 - _this.requireArgumentInstance("container", elementorModules.editor.Container, { container });
1739 - });
1740 - }
1741 - }
1742 - ], [{
1743 - key: "getInstanceType",
1744 - value: function getInstanceType() {
1745 - return "CommandBase";
1746 - }
1747 - }]);
1748 - }(CommandInfra);
3165 + function CommandBase() {
3166 + (0, _classCallCheck2.default)(this, CommandBase);
3167 + return _super.apply(this, arguments);
3168 + }
1749 3169
1750 -//#endregion
1751 -//#region modules/web-cli/assets/js/modules/command-callback-base.js
1752 - function _callSuper$7(t, o, e) {
1753 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$7() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1754 - }
1755 - __name(_callSuper$7, "_callSuper");
1756 - function _isNativeReflectConstruct$7() {
1757 - try {
1758 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1759 - } catch (t) {}
1760 - return (_isNativeReflectConstruct$7 = function _isNativeReflectConstruct() {
1761 - return !!t;
1762 - })();
1763 - }
1764 - __name(_isNativeReflectConstruct$7, "_isNativeReflectConstruct");
1765 - /**
1766 - * To support pure callbacks in the API(commands.js), to ensure they have registered with the proper context.
1767 - */
1768 - var CommandCallbackBase = /*#__PURE__*/ function(_CommandBase) {
1769 - function CommandCallbackBase() {
1770 - _classCallCheck(this, CommandCallbackBase);
1771 - return _callSuper$7(this, CommandCallbackBase, arguments);
1772 - }
1773 - _inherits(CommandCallbackBase, _CommandBase);
1774 - return _createClass(CommandCallbackBase, [{
1775 - key: "apply",
1776 - value: function apply() {
1777 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1778 - return this.constructor.getCallback()(args);
1779 - }
1780 - }], [{
1781 - key: "getInstanceType",
1782 - value: function getInstanceType() {
1783 - return "CommandCallbackBase";
1784 - }
1785 - }, {
1786 - key: "getCallback",
1787 - value: function getCallback() {
1788 - return this.registerConfig.callback;
1789 - }
1790 - }]);
1791 - }(CommandBase);
3170 + (0, _createClass2.default)(CommandBase, [{
3171 + key: "onBeforeRun",
3172 + value: function onBeforeRun() {
3173 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3174 + $e.hooks.runUIBefore(this.command, args);
3175 + }
3176 + }, {
3177 + key: "onAfterRun",
3178 + value: function onAfterRun() {
3179 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3180 + var result = arguments.length > 1 ? arguments[1] : undefined;
3181 + $e.hooks.runUIAfter(this.command, args, result);
3182 + }
3183 + }, {
3184 + key: "onBeforeApply",
3185 + value: function onBeforeApply() {
3186 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3187 + $e.hooks.runDataDependency(this.command, args);
3188 + }
3189 + }, {
3190 + key: "onAfterApply",
3191 + value: function onAfterApply() {
3192 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3193 + var result = arguments.length > 1 ? arguments[1] : undefined;
3194 + $e.hooks.runDataAfter(this.command, args, result);
3195 + }
3196 + }, {
3197 + key: "onCatchApply",
3198 + value: function onCatchApply(e) {
3199 + this.runCatchHooks(e);
3200 + }
3201 + /**
3202 + * Run all the catch hooks.
3203 + *
3204 + * @param {Error} e
3205 + */
1792 3206
1793 -//#endregion
1794 -//#region modules/web-cli/assets/js/utils/force-method-implementation.js
1795 - function _callSuper$6(t, o, e) {
1796 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$6() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1797 - }
1798 - __name(_callSuper$6, "_callSuper");
1799 - function _isNativeReflectConstruct$6() {
1800 - try {
1801 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1802 - } catch (t) {}
1803 - return (_isNativeReflectConstruct$6 = function _isNativeReflectConstruct() {
1804 - return !!t;
1805 - })();
1806 - }
1807 - __name(_isNativeReflectConstruct$6, "_isNativeReflectConstruct");
1808 - var ForceMethodImplementation = /*#__PURE__*/ function(_Error) {
1809 - function ForceMethodImplementation() {
1810 - var _this;
1811 - var info = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1812 - _classCallCheck(this, ForceMethodImplementation);
1813 - _this = _callSuper$6(this, ForceMethodImplementation, ["".concat(info.isStatic ? "static " : "").concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality.")]);
1814 - Error.captureStackTrace(_this, ForceMethodImplementation);
1815 - return _this;
1816 - }
1817 - _inherits(ForceMethodImplementation, _Error);
1818 - return _createClass(ForceMethodImplementation);
1819 - }(/*#__PURE__*/ _wrapNativeSuper(Error));
1820 - var force_method_implementation_default = /* @__PURE__ */ __name((function() {
1821 - var caller = Error().stack.split("\n")[2].trim();
1822 - var callerName = caller.startsWith("at new") ? "constructor" : caller.split(" ")[1];
1823 - var info = {};
1824 - info.functionName = callerName;
1825 - info.fullName = callerName;
1826 - if (info.functionName.includes(".")) {
1827 - var parts = info.functionName.split(".");
1828 - info.className = parts[0];
1829 - info.functionName = parts[1];
1830 - } else info.isStatic = true;
1831 - throw new ForceMethodImplementation(info);
1832 - }), "default");
3207 + }, {
3208 + key: "runCatchHooks",
3209 + value: function runCatchHooks(e) {
3210 + $e.hooks.runDataCatch(this.command, this.args, e);
3211 + $e.hooks.runUICatch(this.command, this.args, e);
3212 + }
3213 + /**
3214 + * TODO - Remove - Backwards compatibility.
3215 + *
3216 + * Function requireContainer().
3217 + *
3218 + * Validate `arg.container` & `arg.containers`.
3219 + *
3220 + * @param {{}} args
3221 + *
3222 + * @throws {Error}
3223 + */
1833 3224
1834 -//#endregion
1835 -//#region modules/web-cli/assets/js/modules/component-base.js
1836 - function ownKeys(e, r) {
1837 - var t = Object.keys(e);
1838 - if (Object.getOwnPropertySymbols) {
1839 - var o = Object.getOwnPropertySymbols(e);
1840 - r && (o = o.filter(function(r) {
1841 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
1842 - })), t.push.apply(t, o);
1843 - }
1844 - return t;
1845 - }
1846 - function _objectSpread(e) {
1847 - for (var r = 1; r < arguments.length; r++) {
1848 - var t = null != arguments[r] ? arguments[r] : {};
1849 - r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
1850 - _defineProperty(e, r, t[r]);
1851 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
1852 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
1853 - });
1854 - }
1855 - return e;
1856 - }
1857 - function _callSuper$5(t, o, e) {
1858 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$5() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1859 - }
1860 - __name(_callSuper$5, "_callSuper");
1861 - function _isNativeReflectConstruct$5() {
1862 - try {
1863 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1864 - } catch (t) {}
1865 - return (_isNativeReflectConstruct$5 = function _isNativeReflectConstruct() {
1866 - return !!t;
1867 - })();
1868 - }
1869 - __name(_isNativeReflectConstruct$5, "_isNativeReflectConstruct");
1870 - /**
1871 - * @typedef {import('./command-infra')} CommandInfra
1872 - * @typedef {import('./hook-base')} HookBase
1873 - * @typedef {import('../core/states/ui-state-base')} UiStateBase
1874 - */
1875 - var ComponentBase = /*#__PURE__*/ function(_Module) {
1876 - function ComponentBase() {
1877 - _classCallCheck(this, ComponentBase);
1878 - return _callSuper$5(this, ComponentBase, arguments);
1879 - }
1880 - _inherits(ComponentBase, _Module);
1881 - return _createClass(ComponentBase, [
1882 - {
1883 - key: "__construct",
1884 - value: function __construct() {
1885 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1886 - if (args.manager) this.manager = args.manager;
1887 - this.commands = this.defaultCommands();
1888 - this.commandsInternal = this.defaultCommandsInternal();
1889 - this.hooks = this.defaultHooks();
1890 - this.routes = this.defaultRoutes();
1891 - this.tabs = this.defaultTabs();
1892 - this.shortcuts = this.defaultShortcuts();
1893 - this.utils = this.defaultUtils();
1894 - this.data = this.defaultData();
1895 - this.uiStates = this.defaultUiStates();
1896 - this.states = this.defaultStates();
1897 - this.defaultRoute = "";
1898 - this.currentTab = "";
1899 - }
1900 - },
1901 - {
1902 - key: "registerAPI",
1903 - value: function registerAPI() {
1904 - var _this = this;
1905 - Object.entries(this.getTabs()).forEach(function(tab) {
1906 - return _this.registerTabRoute(tab[0]);
1907 - });
1908 - Object.entries(this.getRoutes()).forEach(function(_ref) {
1909 - var _ref2 = _slicedToArray(_ref, 2);
1910 - var route = _ref2[0];
1911 - var callback = _ref2[1];
1912 - return _this.registerRoute(route, callback);
1913 - });
1914 - Object.entries(this.getCommands()).forEach(function(_ref3) {
1915 - var _ref4 = _slicedToArray(_ref3, 2);
1916 - var command = _ref4[0];
1917 - var callback = _ref4[1];
1918 - return _this.registerCommand(command, callback);
1919 - });
1920 - Object.entries(this.getCommandsInternal()).forEach(function(_ref5) {
1921 - var _ref6 = _slicedToArray(_ref5, 2);
1922 - var command = _ref6[0];
1923 - var callback = _ref6[1];
1924 - return _this.registerCommandInternal(command, callback);
1925 - });
1926 - Object.values(this.getHooks()).forEach(function(instance) {
1927 - return _this.registerHook(instance);
1928 - });
1929 - Object.entries(this.getData()).forEach(function(_ref7) {
1930 - var _ref8 = _slicedToArray(_ref7, 2);
1931 - var command = _ref8[0];
1932 - var callback = _ref8[1];
1933 - return _this.registerData(command, callback);
1934 - });
1935 - Object.values(this.getUiStates()).forEach(function(instance) {
1936 - return _this.registerUiState(instance);
1937 - });
1938 - Object.entries(this.getStates()).forEach(function(_ref9) {
1939 - var _ref0 = _slicedToArray(_ref9, 2);
1940 - var id = _ref0[0];
1941 - var state = _ref0[1];
1942 - return _this.registerState(id, state);
1943 - });
1944 - }
1945 - },
1946 - {
1947 - key: "getNamespace",
1948 - value: function getNamespace() {
1949 - force_method_implementation_default();
1950 - }
1951 - },
1952 - {
1953 - key: "getRootContainer",
1954 - value: function getRootContainer() {
1955 - Deprecation.deprecated("getRootContainer()", "3.7.0", "getServiceName()");
1956 - return this.getServiceName();
1957 - }
1958 - },
1959 - {
1960 - key: "getServiceName",
1961 - value: function getServiceName() {
1962 - return this.getNamespace().split("/")[0];
1963 - }
1964 - },
1965 - {
1966 - key: "store",
1967 - get: function get() {
1968 - return $e.store.get(this.getNamespace());
1969 - }
1970 - },
1971 - {
1972 - key: "defaultTabs",
1973 - value: function defaultTabs() {
1974 - return {};
1975 - }
1976 - },
1977 - {
1978 - key: "defaultRoutes",
1979 - value: function defaultRoutes() {
1980 - return {};
1981 - }
1982 - },
1983 - {
1984 - key: "defaultCommands",
1985 - value: function defaultCommands() {
1986 - return {};
1987 - }
1988 - },
1989 - {
1990 - key: "defaultCommandsInternal",
1991 - value: function defaultCommandsInternal() {
1992 - return {};
1993 - }
1994 - },
1995 - {
1996 - key: "defaultHooks",
1997 - value: function defaultHooks() {
1998 - return {};
1999 - }
2000 - },
2001 - {
2002 - key: "defaultUiStates",
2003 - value: function defaultUiStates() {
2004 - return {};
2005 - }
2006 - },
2007 - {
2008 - key: "defaultStates",
2009 - value: function defaultStates() {
2010 - return {};
2011 - }
2012 - },
2013 - {
2014 - key: "defaultShortcuts",
2015 - value: function defaultShortcuts() {
2016 - return {};
2017 - }
2018 - },
2019 - {
2020 - key: "defaultUtils",
2021 - value: function defaultUtils() {
2022 - return {};
2023 - }
2024 - },
2025 - {
2026 - key: "defaultData",
2027 - value: function defaultData() {
2028 - return {};
2029 - }
2030 - },
2031 - {
2032 - key: "getCommands",
2033 - value: function getCommands() {
2034 - return this.commands;
2035 - }
2036 - },
2037 - {
2038 - key: "getCommandsInternal",
2039 - value: function getCommandsInternal() {
2040 - return this.commandsInternal;
2041 - }
2042 - },
2043 - {
2044 - key: "getHooks",
2045 - value: function getHooks() {
2046 - return this.hooks;
2047 - }
2048 - },
2049 - {
2050 - key: "getUiStates",
2051 - value: function getUiStates() {
2052 - return this.uiStates;
2053 - }
2054 - },
2055 - {
2056 - key: "getStates",
2057 - value: function getStates() {
2058 - return this.states;
2059 - }
2060 - },
2061 - {
2062 - key: "getRoutes",
2063 - value: function getRoutes() {
2064 - return this.routes;
2065 - }
2066 - },
2067 - {
2068 - key: "getTabs",
2069 - value: function getTabs() {
2070 - return this.tabs;
2071 - }
2072 - },
2073 - {
2074 - key: "getShortcuts",
2075 - value: function getShortcuts() {
2076 - return this.shortcuts;
2077 - }
2078 - },
2079 - {
2080 - key: "getData",
2081 - value: function getData() {
2082 - return this.data;
2083 - }
2084 - },
2085 - {
2086 - key: "registerCommand",
2087 - value: function registerCommand(command, context) {
2088 - var commandsType = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "default";
2089 - var commandsManager;
2090 - switch (commandsType) {
2091 - case "default":
2092 - commandsManager = $e.commands;
2093 - break;
2094 - case "internal":
2095 - commandsManager = $e.commandsInternal;
2096 - break;
2097 - case "data":
2098 - commandsManager = $e.data;
2099 - break;
2100 - default: throw new Error("Invalid commands type: '".concat(command, "'"));
2101 - }
2102 - var fullCommand = this.getNamespace() + "/" + command;
2103 - var instanceType = context.getInstanceType ? context.getInstanceType() : false;
2104 - var registerConfig = {
2105 - command: fullCommand,
2106 - component: this
2107 - };
2108 - if (!instanceType) {
2109 - if ($e.devTools) $e.devTools.log.warn("Attach command-callback-base, on command: '".concat(fullCommand, "', context is unknown type."));
2110 - registerConfig.callback = context;
2111 - context = /*#__PURE__*/ function(_CommandCallbackBase) {
2112 - function context() {
2113 - _classCallCheck(this, context);
2114 - return _callSuper$5(this, context, arguments);
2115 - }
2116 - _inherits(context, _CommandCallbackBase);
2117 - return _createClass(context);
2118 - }(CommandCallbackBase);
2119 - }
2120 - context.setRegisterConfig(registerConfig);
2121 - commandsManager.register(this, command, context);
2122 - }
2123 - },
2124 - {
2125 - key: "registerHook",
2126 - value: function registerHook(instance) {
2127 - return instance.register();
2128 - }
2129 - },
2130 - {
2131 - key: "registerCommandInternal",
2132 - value: function registerCommandInternal(command, context) {
2133 - this.registerCommand(command, context, "internal");
2134 - }
2135 - },
2136 - {
2137 - key: "registerUiState",
2138 - value: function registerUiState(instance) {
2139 - $e.uiStates.register(instance);
2140 - }
2141 - },
2142 - {
2143 - key: "registerState",
2144 - value: function registerState(id, stateConfig) {
2145 - id = this.getNamespace() + (id ? "/".concat(id) : "");
2146 - var slice = (0, _reduxjs_toolkit.createSlice)(_objectSpread(_objectSpread({}, stateConfig), {}, { name: id }));
2147 - $e.store.register(id, slice);
2148 - }
2149 - },
2150 - {
2151 - key: "registerRoute",
2152 - value: function registerRoute(route, callback) {
2153 - $e.routes.register(this, route, callback);
2154 - }
2155 - },
2156 - {
2157 - key: "registerData",
2158 - value: function registerData(command, context) {
2159 - this.registerCommand(command, context, "data");
2160 - }
2161 - },
2162 - {
2163 - key: "unregisterRoute",
2164 - value: function unregisterRoute(route) {
2165 - $e.routes.unregister(this, route);
2166 - }
2167 - },
2168 - {
2169 - key: "registerTabRoute",
2170 - value: function registerTabRoute(tab) {
2171 - var _this2 = this;
2172 - this.registerRoute(tab, function(args) {
2173 - return _this2.activateTab(tab, args);
2174 - });
2175 - }
2176 - },
2177 - {
2178 - key: "dependency",
2179 - value: function dependency() {
2180 - return true;
2181 - }
2182 - },
2183 - {
2184 - key: "open",
2185 - value: function open() {
2186 - return true;
2187 - }
2188 - },
2189 - {
2190 - key: "close",
2191 - value: function close() {
2192 - if (!this.isOpen) return false;
2193 - this.isOpen = false;
2194 - this.inactivate();
2195 - $e.routes.clearCurrent(this.getNamespace());
2196 - $e.routes.clearHistory(this.getServiceName());
2197 - return true;
2198 - }
2199 - },
2200 - {
2201 - key: "activate",
2202 - value: function activate() {
2203 - $e.components.activate(this.getNamespace());
2204 - }
2205 - },
2206 - {
2207 - key: "inactivate",
2208 - value: function inactivate() {
2209 - $e.components.inactivate(this.getNamespace());
2210 - }
2211 - },
2212 - {
2213 - key: "isActive",
2214 - value: function isActive() {
2215 - return $e.components.isActive(this.getNamespace());
2216 - }
2217 - },
2218 - {
2219 - key: "onRoute",
2220 - value: function onRoute(route) {
2221 - this.toggleRouteClass(route, true);
2222 - this.toggleHistoryClass();
2223 - this.activate();
2224 - this.trigger("route/open", route);
2225 - }
2226 - },
2227 - {
2228 - key: "onCloseRoute",
2229 - value: function onCloseRoute(route) {
2230 - this.toggleRouteClass(route, false);
2231 - this.inactivate();
2232 - this.trigger("route/close", route);
2233 - }
2234 - },
2235 - {
2236 - key: "setDefaultRoute",
2237 - value: function setDefaultRoute(route) {
2238 - this.defaultRoute = this.getNamespace() + "/" + route;
2239 - }
2240 - },
2241 - {
2242 - key: "getDefaultRoute",
2243 - value: function getDefaultRoute() {
2244 - return this.defaultRoute;
2245 - }
2246 - },
2247 - {
2248 - key: "removeTab",
2249 - value: function removeTab(tab) {
2250 - delete this.tabs[tab];
2251 - this.unregisterRoute(tab);
2252 - }
2253 - },
2254 - {
2255 - key: "hasTab",
2256 - value: function hasTab(tab) {
2257 - return !!this.tabs[tab];
2258 - }
2259 - },
2260 - {
2261 - key: "addTab",
2262 - value: function addTab(tab, args, position) {
2263 - var _this3 = this;
2264 - this.tabs[tab] = args;
2265 - if ("undefined" !== typeof position) {
2266 - var newTabs = {};
2267 - var ids = Object.keys(this.tabs);
2268 - ids.pop();
2269 - ids.splice(position, 0, tab);
2270 - ids.forEach(function(id) {
2271 - newTabs[id] = _this3.tabs[id];
2272 - });
2273 - this.tabs = newTabs;
2274 - }
2275 - this.registerTabRoute(tab);
2276 - }
2277 - },
2278 - {
2279 - key: "getTabsWrapperSelector",
2280 - value: function getTabsWrapperSelector() {
2281 - return "";
2282 - }
2283 - },
2284 - {
2285 - key: "getTabRoute",
2286 - value: function getTabRoute(tab) {
2287 - return this.getNamespace() + "/" + tab;
2288 - }
2289 - },
2290 - {
2291 - key: "renderTab",
2292 - value: function renderTab(tab) {}
2293 - },
2294 - {
2295 - key: "activateTab",
2296 - value: function activateTab(tab, args) {
2297 - var _this4 = this;
2298 - this.renderTab(tab, args);
2299 - jQuery(this.getTabsWrapperSelector() + " .elementor-component-tab").off("click").on("click", function(event) {
2300 - $e.route(_this4.getTabRoute(event.currentTarget.dataset.tab), args);
2301 - }).removeClass("elementor-active").filter("[data-tab=\"" + tab + "\"]").addClass("elementor-active");
2302 - }
2303 - },
2304 - {
2305 - key: "getActiveTabConfig",
2306 - value: function getActiveTabConfig() {
2307 - return this.tabs[this.currentTab] || {};
2308 - }
2309 - },
2310 - {
2311 - key: "getBodyClass",
2312 - value: function getBodyClass(route) {
2313 - return "e-route-" + route.replace(/\//g, "-");
2314 - }
2315 - },
2316 - {
2317 - key: "normalizeCommandName",
2318 - value: function normalizeCommandName(commandName) {
2319 - return commandName.replace(/[A-Z]/g, function(match, offset) {
2320 - return (offset > 0 ? "-" : "") + match.toLowerCase();
2321 - });
2322 - }
2323 - },
2324 - {
2325 - key: "importCommands",
2326 - value: function importCommands(commandsFromImport) {
2327 - var _this5 = this;
2328 - var commands = {};
2329 - Object.entries(commandsFromImport).forEach(function(_ref1) {
2330 - var _ref10 = _slicedToArray(_ref1, 2);
2331 - var className = _ref10[0];
2332 - var Class = _ref10[1];
2333 - var command = _this5.normalizeCommandName(className);
2334 - commands[command] = Class;
2335 - });
2336 - return commands;
2337 - }
2338 - },
2339 - {
2340 - key: "importHooks",
2341 - value: function importHooks(hooksFromImport) {
2342 - var hooks = {};
2343 - for (var key in hooksFromImport) {
2344 - var hook = new hooksFromImport[key]();
2345 - hooks[hook.getId()] = hook;
2346 - }
2347 - return hooks;
2348 - }
2349 - },
2350 - {
2351 - key: "importUiStates",
2352 - value: function importUiStates(statesFromImport) {
2353 - var _this6 = this;
2354 - var uiStates = {};
2355 - Object.values(statesFromImport).forEach(function(className) {
2356 - var uiState = new className(_this6);
2357 - uiStates[uiState.getId()] = uiState;
2358 - });
2359 - return uiStates;
2360 - }
2361 - },
2362 - {
2363 - key: "setUiState",
2364 - value: function setUiState(state, value) {
2365 - $e.uiStates.set("".concat(this.getNamespace(), "/").concat(state), value);
2366 - }
2367 - },
2368 - {
2369 - key: "toggleRouteClass",
2370 - value: function toggleRouteClass(route, state) {
2371 - document.body.classList.toggle(this.getBodyClass(route), state);
2372 - }
2373 - },
2374 - {
2375 - key: "toggleHistoryClass",
2376 - value: function toggleHistoryClass() {
2377 - document.body.classList.toggle("e-routes-has-history", !!$e.routes.getHistory(this.getServiceName()).length);
2378 - }
2379 - }
2380 - ]);
2381 - }(import_module.default);
3225 + }, {
3226 + key: "requireContainer",
3227 + value: function requireContainer() {
3228 + var _this = this;
2382 3229
2383 -//#endregion
2384 -//#region modules/web-cli/assets/js/modules/commands/close.js
2385 - function _callSuper$4(t, o, e) {
2386 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$4() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
2387 - }
2388 - __name(_callSuper$4, "_callSuper");
2389 - function _isNativeReflectConstruct$4() {
2390 - try {
2391 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
2392 - } catch (t) {}
2393 - return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() {
2394 - return !!t;
2395 - })();
2396 - }
2397 - __name(_isNativeReflectConstruct$4, "_isNativeReflectConstruct");
2398 - var Close = /*#__PURE__*/ function(_CommandBase) {
2399 - function Close() {
2400 - _classCallCheck(this, Close);
2401 - return _callSuper$4(this, Close, arguments);
2402 - }
2403 - _inherits(Close, _CommandBase);
2404 - return _createClass(Close, [{
2405 - key: "apply",
2406 - value: function apply() {
2407 - this.component.close();
2408 - }
2409 - }]);
2410 - }(CommandBase);
3230 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args;
2411 3231
2412 -//#endregion
2413 -//#region modules/web-cli/assets/js/modules/commands/open.js
2414 - function _callSuper$3(t, o, e) {
2415 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$3() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
2416 - }
2417 - __name(_callSuper$3, "_callSuper");
2418 - function _isNativeReflectConstruct$3() {
2419 - try {
2420 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
2421 - } catch (t) {}
2422 - return (_isNativeReflectConstruct$3 = function _isNativeReflectConstruct() {
2423 - return !!t;
2424 - })();
2425 - }
2426 - __name(_isNativeReflectConstruct$3, "_isNativeReflectConstruct");
2427 - var Open = /*#__PURE__*/ function(_CommandBase) {
2428 - function Open() {
2429 - _classCallCheck(this, Open);
2430 - return _callSuper$3(this, Open, arguments);
2431 - }
2432 - _inherits(Open, _CommandBase);
2433 - return _createClass(Open, [{
2434 - key: "apply",
2435 - value: function apply() {
2436 - $e.route(this.component.getNamespace());
2437 - }
2438 - }]);
2439 - }(CommandBase);
3232 + _deprecation.default.deprecated('requireContainer', '3.7.0', 'Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`');
2440 3233
2441 -//#endregion
2442 -//#region modules/web-cli/assets/js/modules/commands/toggle.js
2443 - function _callSuper$2(t, o, e) {
2444 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
2445 - }
2446 - __name(_callSuper$2, "_callSuper");
2447 - function _isNativeReflectConstruct$2() {
2448 - try {
2449 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
2450 - } catch (t) {}
2451 - return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() {
2452 - return !!t;
2453 - })();
2454 - }
2455 - __name(_isNativeReflectConstruct$2, "_isNativeReflectConstruct");
2456 - var Toggle = /*#__PURE__*/ function(_CommandBase) {
2457 - function Toggle() {
2458 - _classCallCheck(this, Toggle);
2459 - return _callSuper$2(this, Toggle, arguments);
2460 - }
2461 - _inherits(Toggle, _CommandBase);
2462 - return _createClass(Toggle, [{
2463 - key: "apply",
2464 - value: function apply() {
2465 - if (this.component.isOpen) this.component.close();
2466 - else $e.route(this.component.getNamespace());
2467 - }
2468 - }]);
2469 - }(CommandBase);
3234 + if (!args.container && !args.containers) {
3235 + throw Error('container or containers are required.');
3236 + }
2470 3237
2471 -//#endregion
2472 -//#region modules/web-cli/assets/js/modules/commands/index.js
2473 - var commands_exports = /* @__PURE__ */ __exportAll({
2474 - Close: () => Close,
2475 - Open: () => Open,
2476 - Toggle: () => Toggle
2477 - });
3238 + if (args.container && args.containers) {
3239 + throw Error('container and containers cannot go together please select one of them.');
3240 + }
2478 3241
2479 -//#endregion
2480 -//#region modules/web-cli/assets/js/modules/component-modal-base.js
2481 - function _callSuper$1(t, o, e) {
2482 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
2483 - }
2484 - __name(_callSuper$1, "_callSuper");
2485 - function _isNativeReflectConstruct$1() {
2486 - try {
2487 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
2488 - } catch (t) {}
2489 - return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() {
2490 - return !!t;
2491 - })();
2492 - }
2493 - __name(_isNativeReflectConstruct$1, "_isNativeReflectConstruct");
2494 - function _superPropGet(t, o, e, r) {
2495 - var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e);
2496 - return 2 & r && "function" == typeof p ? function(t) {
2497 - return p.apply(e, t);
2498 - } : p;
2499 - }
2500 - var ComponentModalBase = /*#__PURE__*/ function(_ComponentBase) {
2501 - function ComponentModalBase() {
2502 - _classCallCheck(this, ComponentModalBase);
2503 - return _callSuper$1(this, ComponentModalBase, arguments);
2504 - }
2505 - _inherits(ComponentModalBase, _ComponentBase);
2506 - return _createClass(ComponentModalBase, [
2507 - {
2508 - key: "registerAPI",
2509 - value: function registerAPI() {
2510 - var _this = this;
2511 - _superPropGet(ComponentModalBase, "registerAPI", this, 3)([]);
2512 - $e.shortcuts.register("esc", {
2513 - scopes: [this.getNamespace()],
2514 - callback: function callback() {
2515 - return _this.close();
2516 - }
2517 - });
2518 - }
2519 - },
2520 - {
2521 - key: "defaultCommands",
2522 - value: function defaultCommands() {
2523 - return this.importCommands(commands_exports);
2524 - }
2525 - },
2526 - {
2527 - key: "defaultRoutes",
2528 - value: function defaultRoutes() {
2529 - return { "": function _() {} };
2530 - }
2531 - },
2532 - {
2533 - key: "open",
2534 - value: function open() {
2535 - var _this2 = this;
2536 - if (!this.layout) {
2537 - var layout = this.getModalLayout();
2538 - this.layout = new layout({ component: this });
2539 - this.layout.getModal().on("hide", function() {
2540 - return _this2.close();
2541 - });
2542 - }
2543 - this.layout.showModal();
2544 - return true;
2545 - }
2546 - },
2547 - {
2548 - key: "close",
2549 - value: function close() {
2550 - if (!_superPropGet(ComponentModalBase, "close", this, 3)([])) return false;
2551 - elementor.hooks.applyFilters("component/modal/close", this.layout.getModal().hide.bind(this.layout.getModal()), this)();
2552 - return true;
2553 - }
2554 - },
2555 - {
2556 - key: "getModalLayout",
2557 - value: function getModalLayout() {
2558 - force_method_implementation_default();
2559 - }
2560 - }
2561 - ]);
2562 - }(ComponentBase);
3242 + var containers = args.containers || [args.container];
3243 + containers.forEach(function (container) {
3244 + _this.requireArgumentInstance('container', elementorModules.editor.Container, {
3245 + container: container
3246 + });
3247 + });
3248 + }
3249 + }], [{
3250 + key: "getInstanceType",
3251 + value: function getInstanceType() {
3252 + return 'CommandBase';
3253 + }
3254 + }]);
3255 + return CommandBase;
3256 +}(_commandInfra.default);
2563 3257
2564 -//#endregion
2565 -//#region modules/web-cli/assets/js/modules/hook-break.js
2566 - function _callSuper(t, o, e) {
2567 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
2568 - }
2569 - function _isNativeReflectConstruct() {
2570 - try {
2571 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
2572 - } catch (t) {}
2573 - return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
2574 - return !!t;
2575 - })();
2576 - }
2577 - var HookBreak = /*#__PURE__*/ function(_Error) {
2578 - function HookBreak() {
2579 - _classCallCheck(this, HookBreak);
2580 - return _callSuper(this, HookBreak, ["HookBreak"]);
2581 - }
2582 - _inherits(HookBreak, _Error);
2583 - return _createClass(HookBreak);
2584 - }(/*#__PURE__*/ _wrapNativeSuper(Error));
3258 +exports["default"] = CommandBase;
2585 3259
2586 -//#endregion
2587 -//#region core/common/assets/js/modules.js
2588 - modules_default.common = {
2589 - /**
2590 - * @deprecated since 2.9.0, use `$e.modules.ComponentBase` instead.
2591 - */
2592 - get Component() {
2593 - setTimeout(function() {
2594 - elementorDevTools.deprecation.deprecated("elementorModules.common.Component", "2.9.0", "$e.modules.ComponentBase");
2595 - }, 2e3);
2596 - return ComponentBase;
2597 - },
2598 - /**
2599 - * @deprecated since 2.9.0, use `$e.modules.ComponentModalBase` instead.
2600 - */
2601 - get ComponentModal() {
2602 - setTimeout(function() {
2603 - elementorDevTools.deprecation.deprecated("elementorModules.common.ComponentModal", "2.9.0", "$e.modules.ComponentModalBase");
2604 - }, 2e3);
2605 - return ComponentModalBase;
2606 - },
2607 - /**
2608 - * @deprecated since 2.9.0, use `$e.modules.HookBreak` instead.
2609 - */
2610 - get HookBreak() {
2611 - setTimeout(function() {
2612 - elementorDevTools.deprecation.deprecated("elementorModules.common.HookBreak", "2.9.0", "$e.modules.HookBreak");
2613 - }, 2e3);
2614 - return HookBreak;
2615 - },
2616 - views: { modal: { Layout: _default } }
2617 - };
3260 +/***/ }),
2618 3261
2619 -//#endregion
2620 -})(elementorVendors.reduxToolkit);
3262 +/***/ "../modules/web-cli/assets/js/modules/command-callback-base.js":
3263 +/*!*********************************************************************!*\
3264 + !*** ../modules/web-cli/assets/js/modules/command-callback-base.js ***!
3265 + \*********************************************************************/
3266 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
3267 +
3268 +"use strict";
3269 +
3270 +
3271 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3272 +
3273 +Object.defineProperty(exports, "__esModule", ({
3274 + value: true
3275 +}));
3276 +exports["default"] = void 0;
3277 +
3278 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3279 +
3280 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
3281 +
3282 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
3283 +
3284 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
3285 +
3286 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
3287 +
3288 +var _commandBase = _interopRequireDefault(__webpack_require__(/*! ./command-base */ "../modules/web-cli/assets/js/modules/command-base.js"));
3289 +
3290 +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); }; }
3291 +
3292 +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; } }
3293 +
3294 +/**
3295 + * To support pure callbacks in the API(commands.js), to ensure they have registered with the proper context.
3296 + */
3297 +var CommandCallbackBase = /*#__PURE__*/function (_CommandBase) {
3298 + (0, _inherits2.default)(CommandCallbackBase, _CommandBase);
3299 +
3300 + var _super = _createSuper(CommandCallbackBase);
3301 +
3302 + function CommandCallbackBase() {
3303 + (0, _classCallCheck2.default)(this, CommandCallbackBase);
3304 + return _super.apply(this, arguments);
3305 + }
3306 +
3307 + (0, _createClass2.default)(CommandCallbackBase, [{
3308 + key: "apply",
3309 + value: function apply() {
3310 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3311 + return this.constructor.getCallback()(args);
3312 + }
3313 + }], [{
3314 + key: "getInstanceType",
3315 + value: function getInstanceType() {
3316 + return 'CommandCallbackBase';
3317 + }
3318 + /**
3319 + * Get original callback of the command.
3320 + *
3321 + * Support pure callbacks ( Non command-base ).
3322 + *
3323 + * @return {()=>{}} Command Results.
3324 + */
3325 +
3326 + }, {
3327 + key: "getCallback",
3328 + value: function getCallback() {
3329 + return this.registerConfig.callback;
3330 + }
3331 + }]);
3332 + return CommandCallbackBase;
3333 +}(_commandBase.default);
3334 +
3335 +exports["default"] = CommandCallbackBase;
3336 +
3337 +/***/ }),
3338 +
3339 +/***/ "../modules/web-cli/assets/js/modules/command-infra.js":
3340 +/*!*************************************************************!*\
3341 + !*** ../modules/web-cli/assets/js/modules/command-infra.js ***!
3342 + \*************************************************************/
3343 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
3344 +
3345 +"use strict";
3346 +
3347 +
3348 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3349 +
3350 +Object.defineProperty(exports, "__esModule", ({
3351 + value: true
3352 +}));
3353 +exports["default"] = void 0;
3354 +
3355 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3356 +
3357 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
3358 +
3359 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
3360 +
3361 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
3362 +
3363 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
3364 +
3365 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
3366 +
3367 +var _argsObject = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js"));
3368 +
3369 +var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
3370 +
3371 +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); }; }
3372 +
3373 +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; } }
3374 +
3375 +/**
3376 + * @typedef {import('../modules/component-base')} ComponentBase
3377 + */
3378 +var CommandInfra = /*#__PURE__*/function (_ArgsObject) {
3379 + (0, _inherits2.default)(CommandInfra, _ArgsObject);
3380 +
3381 + var _super = _createSuper(CommandInfra);
3382 +
3383 + /**
3384 + * Function constructor().
3385 + *
3386 + * Create Commands Base.
3387 + *
3388 + * @param {{}} args
3389 + */
3390 + function CommandInfra() {
3391 + var _this;
3392 +
3393 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3394 + (0, _classCallCheck2.default)(this, CommandInfra);
3395 + _this = _super.call(this, args);
3396 +
3397 + if (!_this.constructor.registerConfig) {
3398 + throw RangeError('Doing it wrong: Each command type should have `registerConfig`.');
3399 + } // Acknowledge self about which command it run.
3400 +
3401 +
3402 + _this.command = _this.constructor.getCommand(); // Assign instance of current component.
3403 +
3404 + _this.component = _this.constructor.getComponent(); // Who ever need do something before without `super` the constructor can use `initialize` method.
3405 +
3406 + _this.initialize(args); // Refresh args, maybe the changed via `initialize`.
3407 +
3408 +
3409 + args = _this.args; // Validate args before run.
3410 +
3411 + _this.validateArgs(args);
3412 +
3413 + return _this;
3414 + }
3415 + /**
3416 + * Function initialize().
3417 + *
3418 + * Initialize command, called after construction.
3419 + *
3420 + * @param {{}} args
3421 + */
3422 +
3423 +
3424 + (0, _createClass2.default)(CommandInfra, [{
3425 + key: "currentCommand",
3426 + get: // TODO - Remove backwards compatibility.
3427 + function get() {
3428 + _deprecation.default.deprecated('this.currentCommand', '3.7.0', 'this.command');
3429 +
3430 + return this.command;
3431 + }
3432 + }, {
3433 + key: "initialize",
3434 + value: function initialize() {
3435 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3436 + } // eslint-disable-line no-unused-vars
3437 +
3438 + /**
3439 + * Function validateArgs().
3440 + *
3441 + * Validate command arguments.
3442 + *
3443 + * @param {{}} args
3444 + */
3445 +
3446 + }, {
3447 + key: "validateArgs",
3448 + value: function validateArgs() {
3449 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3450 + } // eslint-disable-line no-unused-vars
3451 + // eslint-disable-next-line jsdoc/require-returns-check
3452 +
3453 + /**
3454 + * Function apply().
3455 + *
3456 + * Do the actual command.
3457 + *
3458 + * @param {{}} args
3459 + *
3460 + * @return {*} Command results.
3461 + */
3462 +
3463 + }, {
3464 + key: "apply",
3465 + value: function apply() {
3466 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3467 + // eslint-disable-line no-unused-vars
3468 + elementorModules.ForceMethodImplementation();
3469 + }
3470 + /**
3471 + * Function run().
3472 + *
3473 + * Run command with history & hooks.
3474 + *
3475 + * @return {*} Command results.
3476 + */
3477 +
3478 + }, {
3479 + key: "run",
3480 + value: function run() {
3481 + return this.apply(this.args);
3482 + }
3483 + /**
3484 + * Function onBeforeRun.
3485 + *
3486 + * Called before run().
3487 + *
3488 + * @param {{}} args
3489 + */
3490 +
3491 + }, {
3492 + key: "onBeforeRun",
3493 + value: function onBeforeRun() {
3494 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3495 + } // eslint-disable-line no-unused-vars
3496 +
3497 + /**
3498 + * Function onAfterRun.
3499 + *
3500 + * Called after run().
3501 + *
3502 + * @param {{}} args
3503 + * @param {*} result
3504 + */
3505 +
3506 + }, {
3507 + key: "onAfterRun",
3508 + value: function onAfterRun() {
3509 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3510 + var result = arguments.length > 1 ? arguments[1] : undefined;
3511 + } // eslint-disable-line no-unused-vars
3512 +
3513 + /**
3514 + * Function onBeforeApply.
3515 + *
3516 + * Called before apply().
3517 + *
3518 + * @param {{}} args
3519 + */
3520 +
3521 + }, {
3522 + key: "onBeforeApply",
3523 + value: function onBeforeApply() {
3524 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3525 + } // eslint-disable-line no-unused-vars
3526 +
3527 + /**
3528 + * Function onAfterApply.
3529 + *
3530 + * Called after apply().
3531 + *
3532 + * @param {{}} args
3533 + * @param {*} result
3534 + */
3535 +
3536 + }, {
3537 + key: "onAfterApply",
3538 + value: function onAfterApply() {
3539 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3540 + var result = arguments.length > 1 ? arguments[1] : undefined;
3541 + } // eslint-disable-line no-unused-vars
3542 +
3543 + /**
3544 + * Function onCatchApply.
3545 + *
3546 + * Called after apply() failed.
3547 + *
3548 + * @param {Error} e
3549 + */
3550 +
3551 + }, {
3552 + key: "onCatchApply",
3553 + value: function onCatchApply(e) {} // eslint-disable-line no-unused-vars
3554 +
3555 + }], [{
3556 + key: "getInstanceType",
3557 + value:
3558 + /**
3559 + * @type {Object}
3560 + */
3561 + function getInstanceType() {
3562 + return 'CommandInfra';
3563 + }
3564 + /**
3565 + * Get info of command.
3566 + *
3567 + * @return {Object} Extra information about the command.
3568 + */
3569 +
3570 + }, {
3571 + key: "getInfo",
3572 + value: function getInfo() {
3573 + return {};
3574 + }
3575 + /**
3576 + * @return {string} Self command name.
3577 + */
3578 +
3579 + }, {
3580 + key: "getCommand",
3581 + value: function getCommand() {
3582 + return this.registerConfig.command;
3583 + }
3584 + /**
3585 + * @return {ComponentBase} Self component
3586 + */
3587 +
3588 + }, {
3589 + key: "getComponent",
3590 + value: function getComponent() {
3591 + return this.registerConfig.component;
3592 + }
3593 + }, {
3594 + key: "setRegisterConfig",
3595 + value: function setRegisterConfig(config) {
3596 + this.registerConfig = Object.freeze(config);
3597 + }
3598 + }]);
3599 + return CommandInfra;
3600 +}(_argsObject.default);
3601 +
3602 +exports["default"] = CommandInfra;
3603 +(0, _defineProperty2.default)(CommandInfra, "registerConfig", null);
3604 +
3605 +/***/ }),
3606 +
3607 +/***/ "../modules/web-cli/assets/js/modules/commands/close.js":
3608 +/*!**************************************************************!*\
3609 + !*** ../modules/web-cli/assets/js/modules/commands/close.js ***!
3610 + \**************************************************************/
3611 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
3612 +
3613 +"use strict";
3614 +
3615 +
3616 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3617 +
3618 +Object.defineProperty(exports, "__esModule", ({
3619 + value: true
3620 +}));
3621 +exports["default"] = exports.Close = void 0;
3622 +
3623 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3624 +
3625 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
3626 +
3627 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
3628 +
3629 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
3630 +
3631 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
3632 +
3633 +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js"));
3634 +
3635 +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); }; }
3636 +
3637 +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; } }
3638 +
3639 +var Close = /*#__PURE__*/function (_CommandBase) {
3640 + (0, _inherits2.default)(Close, _CommandBase);
3641 +
3642 + var _super = _createSuper(Close);
3643 +
3644 + function Close() {
3645 + (0, _classCallCheck2.default)(this, Close);
3646 + return _super.apply(this, arguments);
3647 + }
3648 +
3649 + (0, _createClass2.default)(Close, [{
3650 + key: "apply",
3651 + value: function apply() {
3652 + this.component.close();
3653 + }
3654 + }]);
3655 + return Close;
3656 +}(_commandBase.default);
3657 +
3658 +exports.Close = Close;
3659 +var _default = Close;
3660 +exports["default"] = _default;
3661 +
3662 +/***/ }),
3663 +
3664 +/***/ "../modules/web-cli/assets/js/modules/commands/index.js":
3665 +/*!**************************************************************!*\
3666 + !*** ../modules/web-cli/assets/js/modules/commands/index.js ***!
3667 + \**************************************************************/
3668 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
3669 +
3670 +"use strict";
3671 +
3672 +
3673 +Object.defineProperty(exports, "__esModule", ({
3674 + value: true
3675 +}));
3676 +Object.defineProperty(exports, "Close", ({
3677 + enumerable: true,
3678 + get: function get() {
3679 + return _close.Close;
3680 + }
3681 +}));
3682 +Object.defineProperty(exports, "Open", ({
3683 + enumerable: true,
3684 + get: function get() {
3685 + return _open.Open;
3686 + }
3687 +}));
3688 +Object.defineProperty(exports, "Toggle", ({
3689 + enumerable: true,
3690 + get: function get() {
3691 + return _toggle.Toggle;
3692 + }
3693 +}));
3694 +
3695 +var _close = __webpack_require__(/*! ./close */ "../modules/web-cli/assets/js/modules/commands/close.js");
3696 +
3697 +var _open = __webpack_require__(/*! ./open */ "../modules/web-cli/assets/js/modules/commands/open.js");
3698 +
3699 +var _toggle = __webpack_require__(/*! ./toggle */ "../modules/web-cli/assets/js/modules/commands/toggle.js");
3700 +
3701 +/***/ }),
3702 +
3703 +/***/ "../modules/web-cli/assets/js/modules/commands/open.js":
3704 +/*!*************************************************************!*\
3705 + !*** ../modules/web-cli/assets/js/modules/commands/open.js ***!
3706 + \*************************************************************/
3707 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
3708 +
3709 +"use strict";
3710 +
3711 +
3712 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3713 +
3714 +Object.defineProperty(exports, "__esModule", ({
3715 + value: true
3716 +}));
3717 +exports["default"] = exports.Open = void 0;
3718 +
3719 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3720 +
3721 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
3722 +
3723 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
3724 +
3725 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
3726 +
3727 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
3728 +
3729 +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js"));
3730 +
3731 +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); }; }
3732 +
3733 +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; } }
3734 +
3735 +var Open = /*#__PURE__*/function (_CommandBase) {
3736 + (0, _inherits2.default)(Open, _CommandBase);
3737 +
3738 + var _super = _createSuper(Open);
3739 +
3740 + function Open() {
3741 + (0, _classCallCheck2.default)(this, Open);
3742 + return _super.apply(this, arguments);
3743 + }
3744 +
3745 + (0, _createClass2.default)(Open, [{
3746 + key: "apply",
3747 + value: function apply() {
3748 + $e.route(this.component.getNamespace());
3749 + }
3750 + }]);
3751 + return Open;
3752 +}(_commandBase.default);
3753 +
3754 +exports.Open = Open;
3755 +var _default = Open;
3756 +exports["default"] = _default;
3757 +
3758 +/***/ }),
3759 +
3760 +/***/ "../modules/web-cli/assets/js/modules/commands/toggle.js":
3761 +/*!***************************************************************!*\
3762 + !*** ../modules/web-cli/assets/js/modules/commands/toggle.js ***!
3763 + \***************************************************************/
3764 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
3765 +
3766 +"use strict";
3767 +
3768 +
3769 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3770 +
3771 +Object.defineProperty(exports, "__esModule", ({
3772 + value: true
3773 +}));
3774 +exports["default"] = exports.Toggle = void 0;
3775 +
3776 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3777 +
3778 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
3779 +
3780 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
3781 +
3782 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
3783 +
3784 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
3785 +
3786 +var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js"));
3787 +
3788 +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); }; }
3789 +
3790 +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; } }
3791 +
3792 +var Toggle = /*#__PURE__*/function (_CommandBase) {
3793 + (0, _inherits2.default)(Toggle, _CommandBase);
3794 +
3795 + var _super = _createSuper(Toggle);
3796 +
3797 + function Toggle() {
3798 + (0, _classCallCheck2.default)(this, Toggle);
3799 + return _super.apply(this, arguments);
3800 + }
3801 +
3802 + (0, _createClass2.default)(Toggle, [{
3803 + key: "apply",
3804 + value: function apply() {
3805 + if (this.component.isOpen) {
3806 + this.component.close();
3807 + } else {
3808 + $e.route(this.component.getNamespace());
3809 + }
3810 + }
3811 + }]);
3812 + return Toggle;
3813 +}(_commandBase.default);
3814 +
3815 +exports.Toggle = Toggle;
3816 +var _default = Toggle;
3817 +exports["default"] = _default;
3818 +
3819 +/***/ }),
3820 +
3821 +/***/ "../modules/web-cli/assets/js/modules/component-base.js":
3822 +/*!**************************************************************!*\
3823 + !*** ../modules/web-cli/assets/js/modules/component-base.js ***!
3824 + \**************************************************************/
3825 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
3826 +
3827 +"use strict";
3828 +
3829 +
3830 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
3831 +
3832 +Object.defineProperty(exports, "__esModule", ({
3833 + value: true
3834 +}));
3835 +exports["default"] = void 0;
3836 +
3837 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
3838 +
3839 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
3840 +
3841 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
3842 +
3843 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
3844 +
3845 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
3846 +
3847 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
3848 +
3849 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
3850 +
3851 +var _commandCallbackBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-callback-base */ "../modules/web-cli/assets/js/modules/command-callback-base.js"));
3852 +
3853 +var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js");
3854 +
3855 +var _module = _interopRequireDefault(__webpack_require__(/*! elementor/assets/dev/js/modules/imports/module.js */ "../assets/dev/js/modules/imports/module.js"));
3856 +
3857 +var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js"));
3858 +
3859 +var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
3860 +
3861 +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; }
3862 +
3863 +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; }
3864 +
3865 +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); }; }
3866 +
3867 +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; } }
3868 +
3869 +/**
3870 + * @typedef {import('./command-infra')} CommandInfra
3871 + * @typedef {import('./hook-base')} HookBase
3872 + * @typedef {import('../core/states/ui-state-base')} UiStateBase
3873 + */
3874 +var ComponentBase = /*#__PURE__*/function (_Module) {
3875 + (0, _inherits2.default)(ComponentBase, _Module);
3876 +
3877 + var _super = _createSuper(ComponentBase);
3878 +
3879 + function ComponentBase() {
3880 + (0, _classCallCheck2.default)(this, ComponentBase);
3881 + return _super.apply(this, arguments);
3882 + }
3883 +
3884 + (0, _createClass2.default)(ComponentBase, [{
3885 + key: "__construct",
3886 + value: function __construct() {
3887 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3888 +
3889 + if (args.manager) {
3890 + this.manager = args.manager;
3891 + }
3892 +
3893 + this.commands = this.defaultCommands();
3894 + this.commandsInternal = this.defaultCommandsInternal();
3895 + this.hooks = this.defaultHooks();
3896 + this.routes = this.defaultRoutes();
3897 + this.tabs = this.defaultTabs();
3898 + this.shortcuts = this.defaultShortcuts();
3899 + this.utils = this.defaultUtils();
3900 + this.data = this.defaultData();
3901 + this.uiStates = this.defaultUiStates();
3902 + this.states = this.defaultStates();
3903 + this.defaultRoute = '';
3904 + this.currentTab = '';
3905 + }
3906 + }, {
3907 + key: "registerAPI",
3908 + value: function registerAPI() {
3909 + var _this = this;
3910 +
3911 + Object.entries(this.getTabs()).forEach(function (tab) {
3912 + return _this.registerTabRoute(tab[0]);
3913 + });
3914 + Object.entries(this.getRoutes()).forEach(function (_ref) {
3915 + var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
3916 + route = _ref2[0],
3917 + callback = _ref2[1];
3918 +
3919 + return _this.registerRoute(route, callback);
3920 + });
3921 + Object.entries(this.getCommands()).forEach(function (_ref3) {
3922 + var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
3923 + command = _ref4[0],
3924 + callback = _ref4[1];
3925 +
3926 + return _this.registerCommand(command, callback);
3927 + });
3928 + Object.entries(this.getCommandsInternal()).forEach(function (_ref5) {
3929 + var _ref6 = (0, _slicedToArray2.default)(_ref5, 2),
3930 + command = _ref6[0],
3931 + callback = _ref6[1];
3932 +
3933 + return _this.registerCommandInternal(command, callback);
3934 + });
3935 + Object.values(this.getHooks()).forEach(function (instance) {
3936 + return _this.registerHook(instance);
3937 + });
3938 + Object.entries(this.getData()).forEach(function (_ref7) {
3939 + var _ref8 = (0, _slicedToArray2.default)(_ref7, 2),
3940 + command = _ref8[0],
3941 + callback = _ref8[1];
3942 +
3943 + return _this.registerData(command, callback);
3944 + });
3945 + Object.values(this.getUiStates()).forEach(function (instance) {
3946 + return _this.registerUiState(instance);
3947 + });
3948 + Object.entries(this.getStates()).forEach(function (_ref9) {
3949 + var _ref10 = (0, _slicedToArray2.default)(_ref9, 2),
3950 + id = _ref10[0],
3951 + state = _ref10[1];
3952 +
3953 + return _this.registerState(id, state);
3954 + });
3955 + } // eslint-disable-next-line jsdoc/require-returns-check
3956 +
3957 + /**
3958 + * @return {string} namespace
3959 + */
3960 +
3961 + }, {
3962 + key: "getNamespace",
3963 + value: function getNamespace() {
3964 + (0, _forceMethodImplementation.default)();
3965 + }
3966 + }, {
3967 + key: "getRootContainer",
3968 + value: function getRootContainer() {
3969 + _deprecation.default.deprecated('getRootContainer()', '3.7.0', 'getServiceName()');
3970 +
3971 + return this.getServiceName();
3972 + }
3973 + }, {
3974 + key: "getServiceName",
3975 + value: function getServiceName() {
3976 + return this.getNamespace().split('/')[0];
3977 + }
3978 + }, {
3979 + key: "store",
3980 + get: function get() {
3981 + return $e.store.get(this.getNamespace());
3982 + }
3983 + }, {
3984 + key: "defaultTabs",
3985 + value: function defaultTabs() {
3986 + return {};
3987 + }
3988 + }, {
3989 + key: "defaultRoutes",
3990 + value: function defaultRoutes() {
3991 + return {};
3992 + }
3993 + }, {
3994 + key: "defaultCommands",
3995 + value: function defaultCommands() {
3996 + return {};
3997 + }
3998 + }, {
3999 + key: "defaultCommandsInternal",
4000 + value: function defaultCommandsInternal() {
4001 + return {};
4002 + }
4003 + }, {
4004 + key: "defaultHooks",
4005 + value: function defaultHooks() {
4006 + return {};
4007 + }
4008 + /**
4009 + * Get the component's default UI states.
4010 + *
4011 + * @return {Object} default UI states
4012 + */
4013 +
4014 + }, {
4015 + key: "defaultUiStates",
4016 + value: function defaultUiStates() {
4017 + return {};
4018 + }
4019 + /**
4020 + * Get the component's Redux slice settings.
4021 + *
4022 + * @return {Object} Redux slice settings
4023 + */
4024 +
4025 + }, {
4026 + key: "defaultStates",
4027 + value: function defaultStates() {
4028 + return {};
4029 + }
4030 + }, {
4031 + key: "defaultShortcuts",
4032 + value: function defaultShortcuts() {
4033 + return {};
4034 + }
4035 + }, {
4036 + key: "defaultUtils",
4037 + value: function defaultUtils() {
4038 + return {};
4039 + }
4040 + }, {
4041 + key: "defaultData",
4042 + value: function defaultData() {
4043 + return {};
4044 + }
4045 + }, {
4046 + key: "getCommands",
4047 + value: function getCommands() {
4048 + return this.commands;
4049 + }
4050 + }, {
4051 + key: "getCommandsInternal",
4052 + value: function getCommandsInternal() {
4053 + return this.commandsInternal;
4054 + }
4055 + }, {
4056 + key: "getHooks",
4057 + value: function getHooks() {
4058 + return this.hooks;
4059 + }
4060 + /**
4061 + * Retrieve the component's UI states.
4062 + *
4063 + * @return {Object} UI states
4064 + */
4065 +
4066 + }, {
4067 + key: "getUiStates",
4068 + value: function getUiStates() {
4069 + return this.uiStates;
4070 + }
4071 + /**
4072 + * Retrieve the component's Redux Slice.
4073 + *
4074 + * @return {Object} Redux Slice
4075 + */
4076 +
4077 + }, {
4078 + key: "getStates",
4079 + value: function getStates() {
4080 + return this.states;
4081 + }
4082 + }, {
4083 + key: "getRoutes",
4084 + value: function getRoutes() {
4085 + return this.routes;
4086 + }
4087 + }, {
4088 + key: "getTabs",
4089 + value: function getTabs() {
4090 + return this.tabs;
4091 + }
4092 + }, {
4093 + key: "getShortcuts",
4094 + value: function getShortcuts() {
4095 + return this.shortcuts;
4096 + }
4097 + }, {
4098 + key: "getData",
4099 + value: function getData() {
4100 + return this.data;
4101 + }
4102 + /**
4103 + * @param {string} command
4104 + * @param {(()=>{}|CommandInfra)} context
4105 + * @param {'default'|'internal'|'data'} commandsType
4106 + */
4107 +
4108 + }, {
4109 + key: "registerCommand",
4110 + value: function registerCommand(command, context) {
4111 + var commandsType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'default';
4112 + var commandsManager;
4113 +
4114 + switch (commandsType) {
4115 + case 'default':
4116 + commandsManager = $e.commands;
4117 + break;
4118 +
4119 + case 'internal':
4120 + commandsManager = $e.commandsInternal;
4121 + break;
4122 +
4123 + case 'data':
4124 + commandsManager = $e.data;
4125 + break;
4126 +
4127 + default:
4128 + throw new Error("Invalid commands type: '".concat(command, "'"));
4129 + }
4130 +
4131 + var fullCommand = this.getNamespace() + '/' + command,
4132 + instanceType = context.getInstanceType ? context.getInstanceType() : false,
4133 + registerConfig = {
4134 + command: fullCommand,
4135 + component: this
4136 + }; // Support pure callback.
4137 +
4138 + if (!instanceType) {
4139 + if ($e.devTools) {
4140 + $e.devTools.log.warn("Attach command-callback-base, on command: '".concat(fullCommand, "', context is unknown type."));
4141 + }
4142 +
4143 + registerConfig.callback = context; // Unique class.
4144 +
4145 + context = /*#__PURE__*/function (_CommandCallbackBase) {
4146 + (0, _inherits2.default)(context, _CommandCallbackBase);
4147 +
4148 + var _super2 = _createSuper(context);
4149 +
4150 + function context() {
4151 + (0, _classCallCheck2.default)(this, context);
4152 + return _super2.apply(this, arguments);
4153 + }
4154 +
4155 + return (0, _createClass2.default)(context);
4156 + }(_commandCallbackBase.default);
4157 + }
4158 +
4159 + context.setRegisterConfig(registerConfig);
4160 + commandsManager.register(this, command, context);
4161 + }
4162 + /**
4163 + * @param {HookBase} instance
4164 + */
4165 +
4166 + }, {
4167 + key: "registerHook",
4168 + value: function registerHook(instance) {
4169 + return instance.register();
4170 + }
4171 + }, {
4172 + key: "registerCommandInternal",
4173 + value: function registerCommandInternal(command, context) {
4174 + this.registerCommand(command, context, 'internal');
4175 + }
4176 + /**
4177 + * Register a UI state.
4178 + *
4179 + * @param {UiStateBase} instance - UI state instance.
4180 + *
4181 + * @return {void}
4182 + */
4183 +
4184 + }, {
4185 + key: "registerUiState",
4186 + value: function registerUiState(instance) {
4187 + $e.uiStates.register(instance);
4188 + }
4189 + /**
4190 + * Register a Redux Slice.
4191 + *
4192 + * @param {string} id - State id.
4193 + * @param {Object} stateConfig - The state config.
4194 + *
4195 + * @return {void}
4196 + */
4197 +
4198 + }, {
4199 + key: "registerState",
4200 + value: function registerState(id, stateConfig) {
4201 + id = this.getNamespace() + (id ? "/".concat(id) : '');
4202 + var slice = (0, _toolkit.createSlice)(_objectSpread(_objectSpread({}, stateConfig), {}, {
4203 + name: id
4204 + }));
4205 + $e.store.register(id, slice);
4206 + }
4207 + }, {
4208 + key: "registerRoute",
4209 + value: function registerRoute(route, callback) {
4210 + $e.routes.register(this, route, callback);
4211 + }
4212 + }, {
4213 + key: "registerData",
4214 + value: function registerData(command, context) {
4215 + this.registerCommand(command, context, 'data');
4216 + }
4217 + }, {
4218 + key: "unregisterRoute",
4219 + value: function unregisterRoute(route) {
4220 + $e.routes.unregister(this, route);
4221 + }
4222 + }, {
4223 + key: "registerTabRoute",
4224 + value: function registerTabRoute(tab) {
4225 + var _this2 = this;
4226 +
4227 + this.registerRoute(tab, function (args) {
4228 + return _this2.activateTab(tab, args);
4229 + });
4230 + }
4231 + }, {
4232 + key: "dependency",
4233 + value: function dependency() {
4234 + return true;
4235 + }
4236 + }, {
4237 + key: "open",
4238 + value: function open() {
4239 + return true;
4240 + }
4241 + }, {
4242 + key: "close",
4243 + value: function close() {
4244 + if (!this.isOpen) {
4245 + return false;
4246 + }
4247 +
4248 + this.isOpen = false;
4249 + this.inactivate();
4250 + $e.routes.clearCurrent(this.getNamespace());
4251 + $e.routes.clearHistory(this.getServiceName());
4252 + return true;
4253 + }
4254 + }, {
4255 + key: "activate",
4256 + value: function activate() {
4257 + $e.components.activate(this.getNamespace());
4258 + }
4259 + }, {
4260 + key: "inactivate",
4261 + value: function inactivate() {
4262 + $e.components.inactivate(this.getNamespace());
4263 + }
4264 + }, {
4265 + key: "isActive",
4266 + value: function isActive() {
4267 + return $e.components.isActive(this.getNamespace());
4268 + }
4269 + }, {
4270 + key: "onRoute",
4271 + value: function onRoute(route) {
4272 + this.toggleRouteClass(route, true);
4273 + this.toggleHistoryClass();
4274 + this.activate();
4275 + this.trigger('route/open', route);
4276 + }
4277 + }, {
4278 + key: "onCloseRoute",
4279 + value: function onCloseRoute(route) {
4280 + this.toggleRouteClass(route, false);
4281 + this.inactivate();
4282 + this.trigger('route/close', route);
4283 + }
4284 + }, {
4285 + key: "setDefaultRoute",
4286 + value: function setDefaultRoute(route) {
4287 + this.defaultRoute = this.getNamespace() + '/' + route;
4288 + }
4289 + }, {
4290 + key: "getDefaultRoute",
4291 + value: function getDefaultRoute() {
4292 + return this.defaultRoute;
4293 + }
4294 + }, {
4295 + key: "removeTab",
4296 + value: function removeTab(tab) {
4297 + delete this.tabs[tab];
4298 + this.unregisterRoute(tab);
4299 + }
4300 + }, {
4301 + key: "hasTab",
4302 + value: function hasTab(tab) {
4303 + return !!this.tabs[tab];
4304 + }
4305 + }, {
4306 + key: "addTab",
4307 + value: function addTab(tab, args, position) {
4308 + var _this3 = this;
4309 +
4310 + this.tabs[tab] = args; // It can be 0.
4311 +
4312 + if ('undefined' !== typeof position) {
4313 + var newTabs = {};
4314 + var ids = Object.keys(this.tabs); // Remove new tab
4315 +
4316 + ids.pop(); // Add it to position.
4317 +
4318 + ids.splice(position, 0, tab);
4319 + ids.forEach(function (id) {
4320 + newTabs[id] = _this3.tabs[id];
4321 + });
4322 + this.tabs = newTabs;
4323 + }
4324 +
4325 + this.registerTabRoute(tab);
4326 + }
4327 + }, {
4328 + key: "getTabsWrapperSelector",
4329 + value: function getTabsWrapperSelector() {
4330 + return '';
4331 + }
4332 + }, {
4333 + key: "getTabRoute",
4334 + value: function getTabRoute(tab) {
4335 + return this.getNamespace() + '/' + tab;
4336 + }
4337 + }, {
4338 + key: "renderTab",
4339 + value: function renderTab(tab) {} // eslint-disable-line
4340 +
4341 + }, {
4342 + key: "activateTab",
4343 + value: function activateTab(tab, args) {
4344 + var _this4 = this;
4345 +
4346 + this.currentTab = tab;
4347 + this.renderTab(tab, args);
4348 + jQuery(this.getTabsWrapperSelector() + ' .elementor-component-tab').off('click').on('click', function (event) {
4349 + $e.route(_this4.getTabRoute(event.currentTarget.dataset.tab), args);
4350 + }).removeClass('elementor-active').filter('[data-tab="' + tab + '"]').addClass('elementor-active');
4351 + }
4352 + }, {
4353 + key: "getActiveTabConfig",
4354 + value: function getActiveTabConfig() {
4355 + return this.tabs[this.currentTab] || {};
4356 + }
4357 + }, {
4358 + key: "getBodyClass",
4359 + value: function getBodyClass(route) {
4360 + return 'e-route-' + route.replace(/\//g, '-');
4361 + }
4362 + /**
4363 + * If command includes uppercase character convert it to lowercase and add `-`.
4364 + * e.g: `CopyAll` is converted to `copy-all`.
4365 + *
4366 + * @param {string} commandName
4367 + */
4368 +
4369 + }, {
4370 + key: "normalizeCommandName",
4371 + value: function normalizeCommandName(commandName) {
4372 + return commandName.replace(/[A-Z]/g, function (match, offset) {
4373 + return (offset > 0 ? '-' : '') + match.toLowerCase();
4374 + });
4375 + }
4376 + /**
4377 + * @param {{}} commandsFromImport
4378 + * @return {{}} imported commands
4379 + */
4380 +
4381 + }, {
4382 + key: "importCommands",
4383 + value: function importCommands(commandsFromImport) {
4384 + var _this5 = this;
4385 +
4386 + var commands = {}; // Convert `Commands` to `ComponentBase` workable format.
4387 +
4388 + Object.entries(commandsFromImport).forEach(function (_ref11) {
4389 + var _ref12 = (0, _slicedToArray2.default)(_ref11, 2),
4390 + className = _ref12[0],
4391 + Class = _ref12[1];
4392 +
4393 + var command = _this5.normalizeCommandName(className);
4394 +
4395 + commands[command] = Class;
4396 + });
4397 + return commands;
4398 + }
4399 + }, {
4400 + key: "importHooks",
4401 + value: function importHooks(hooksFromImport) {
4402 + var hooks = {};
4403 +
4404 + for (var key in hooksFromImport) {
4405 + var hook = new hooksFromImport[key]();
4406 + hooks[hook.getId()] = hook;
4407 + }
4408 +
4409 + return hooks;
4410 + }
4411 + /**
4412 + * Import & initialize the component's UI states.
4413 + * Should be used inside `defaultUiState()`.
4414 + *
4415 + * @param {Object} statesFromImport - UI states from import.
4416 + *
4417 + * @return {Object} UI States
4418 + */
4419 +
4420 + }, {
4421 + key: "importUiStates",
4422 + value: function importUiStates(statesFromImport) {
4423 + var _this6 = this;
4424 +
4425 + var uiStates = {};
4426 + Object.values(statesFromImport).forEach(function (className) {
4427 + var uiState = new className(_this6);
4428 + uiStates[uiState.getId()] = uiState;
4429 + });
4430 + return uiStates;
4431 + }
4432 + /**
4433 + * Set a UI state value.
4434 + * TODO: Should we provide such function? Maybe the developer should implicitly pass the full state ID?
4435 + *
4436 + * @param {string} state - Non-prefixed state ID.
4437 + * @param {*} value - New state value.
4438 + *
4439 + * @return {void}
4440 + */
4441 +
4442 + }, {
4443 + key: "setUiState",
4444 + value: function setUiState(state, value) {
4445 + $e.uiStates.set("".concat(this.getNamespace(), "/").concat(state), value);
4446 + }
4447 + }, {
4448 + key: "toggleRouteClass",
4449 + value: function toggleRouteClass(route, state) {
4450 + document.body.classList.toggle(this.getBodyClass(route), state);
4451 + }
4452 + }, {
4453 + key: "toggleHistoryClass",
4454 + value: function toggleHistoryClass() {
4455 + document.body.classList.toggle('e-routes-has-history', !!$e.routes.getHistory(this.getServiceName()).length);
4456 + }
4457 + }]);
4458 + return ComponentBase;
4459 +}(_module.default);
4460 +
4461 +exports["default"] = ComponentBase;
4462 +
4463 +/***/ }),
4464 +
4465 +/***/ "../modules/web-cli/assets/js/modules/component-modal-base.js":
4466 +/*!********************************************************************!*\
4467 + !*** ../modules/web-cli/assets/js/modules/component-modal-base.js ***!
4468 + \********************************************************************/
4469 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
4470 +
4471 +"use strict";
4472 +
4473 +
4474 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
4475 +
4476 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
4477 +
4478 +Object.defineProperty(exports, "__esModule", ({
4479 + value: true
4480 +}));
4481 +exports["default"] = void 0;
4482 +
4483 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
4484 +
4485 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
4486 +
4487 +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
4488 +
4489 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
4490 +
4491 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
4492 +
4493 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
4494 +
4495 +var _componentBase = _interopRequireDefault(__webpack_require__(/*! ./component-base */ "../modules/web-cli/assets/js/modules/component-base.js"));
4496 +
4497 +var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../modules/web-cli/assets/js/modules/commands/index.js"));
4498 +
4499 +var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js"));
4500 +
4501 +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); }
4502 +
4503 +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; }
4504 +
4505 +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); }; }
4506 +
4507 +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; } }
4508 +
4509 +var ComponentModalBase = /*#__PURE__*/function (_ComponentBase) {
4510 + (0, _inherits2.default)(ComponentModalBase, _ComponentBase);
4511 +
4512 + var _super = _createSuper(ComponentModalBase);
4513 +
4514 + function ComponentModalBase() {
4515 + (0, _classCallCheck2.default)(this, ComponentModalBase);
4516 + return _super.apply(this, arguments);
4517 + }
4518 +
4519 + (0, _createClass2.default)(ComponentModalBase, [{
4520 + key: "registerAPI",
4521 + value: function registerAPI() {
4522 + var _this = this;
4523 +
4524 + (0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "registerAPI", this).call(this);
4525 + $e.shortcuts.register('esc', {
4526 + scopes: [this.getNamespace()],
4527 + callback: function callback() {
4528 + return _this.close();
4529 + }
4530 + });
4531 + }
4532 + }, {
4533 + key: "defaultCommands",
4534 + value: function defaultCommands() {
4535 + return this.importCommands(commands);
4536 + }
4537 + }, {
4538 + key: "defaultRoutes",
4539 + value: function defaultRoutes() {
4540 + return {
4541 + '': function _() {
4542 + /* Nothing to do, it's already rendered. */
4543 + }
4544 + };
4545 + }
4546 + }, {
4547 + key: "open",
4548 + value: function open() {
4549 + var _this2 = this;
4550 +
4551 + if (!this.layout) {
4552 + var layout = this.getModalLayout();
4553 + this.layout = new layout({
4554 + component: this
4555 + });
4556 + this.layout.getModal().on('hide', function () {
4557 + return _this2.close();
4558 + });
4559 + }
4560 +
4561 + this.layout.showModal();
4562 + return true;
4563 + }
4564 + }, {
4565 + key: "close",
4566 + value: function close() {
4567 + if (!(0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "close", this).call(this)) {
4568 + return false;
4569 + }
4570 +
4571 + this.layout.getModal().hide();
4572 + return true;
4573 + }
4574 + }, {
4575 + key: "getModalLayout",
4576 + value: function getModalLayout() {
4577 + (0, _forceMethodImplementation.default)();
4578 + }
4579 + }]);
4580 + return ComponentModalBase;
4581 +}(_componentBase.default);
4582 +
4583 +exports["default"] = ComponentModalBase;
4584 +
4585 +/***/ }),
4586 +
4587 +/***/ "../modules/web-cli/assets/js/modules/hook-break.js":
4588 +/*!**********************************************************!*\
4589 + !*** ../modules/web-cli/assets/js/modules/hook-break.js ***!
4590 + \**********************************************************/
4591 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
4592 +
4593 +"use strict";
4594 +
4595 +
4596 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
4597 +
4598 +Object.defineProperty(exports, "__esModule", ({
4599 + value: true
4600 +}));
4601 +exports["default"] = void 0;
4602 +
4603 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
4604 +
4605 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
4606 +
4607 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
4608 +
4609 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
4610 +
4611 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
4612 +
4613 +var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js"));
4614 +
4615 +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); }; }
4616 +
4617 +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; } }
4618 +
4619 +var HookBreak = /*#__PURE__*/function (_Error) {
4620 + (0, _inherits2.default)(HookBreak, _Error);
4621 +
4622 + var _super = _createSuper(HookBreak);
4623 +
4624 + function HookBreak() {
4625 + (0, _classCallCheck2.default)(this, HookBreak);
4626 + return _super.call(this, 'HookBreak');
4627 + }
4628 +
4629 + return (0, _createClass2.default)(HookBreak);
4630 +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
4631 +
4632 +exports["default"] = HookBreak;
4633 +
4634 +/***/ }),
4635 +
4636 +/***/ "../modules/web-cli/assets/js/utils/console.js":
4637 +/*!*****************************************************!*\
4638 + !*** ../modules/web-cli/assets/js/utils/console.js ***!
4639 + \*****************************************************/
4640 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
4641 +
4642 +"use strict";
4643 +
4644 +
4645 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
4646 +
4647 +Object.defineProperty(exports, "__esModule", ({
4648 + value: true
4649 +}));
4650 +exports["default"] = void 0;
4651 +
4652 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
4653 +
4654 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
4655 +
4656 +var Console = /*#__PURE__*/function () {
4657 + function Console() {
4658 + (0, _classCallCheck2.default)(this, Console);
4659 + }
4660 +
4661 + (0, _createClass2.default)(Console, null, [{
4662 + key: "error",
4663 + value: function error(message) {
4664 + // Show an error if devTools is available.
4665 + if ($e.devTools) {
4666 + $e.devTools.log.error(message);
4667 + } // If not a 'Hook-Break' then show error.
4668 +
4669 +
4670 + if (!(message instanceof $e.modules.HookBreak)) {
4671 + // eslint-disable-next-line no-console
4672 + console.error(message);
4673 + }
4674 + }
4675 + }, {
4676 + key: "warn",
4677 + value: function warn() {
4678 + var _console;
4679 +
4680 + var style = "font-size: 12px; background-image: url(\"".concat(elementorWebCliConfig.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;");
4681 +
4682 + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4683 + args[_key] = arguments[_key];
4684 + }
4685 +
4686 + args.unshift('%c %c', style, '');
4687 +
4688 + (_console = console).warn.apply(_console, args); // eslint-disable-line no-console
4689 +
4690 + }
4691 + }]);
4692 + return Console;
4693 +}();
4694 +
4695 +exports["default"] = Console;
4696 +
4697 +/***/ }),
4698 +
4699 +/***/ "../modules/web-cli/assets/js/utils/deprecation.js":
4700 +/*!*********************************************************!*\
4701 + !*** ../modules/web-cli/assets/js/utils/deprecation.js ***!
4702 + \*********************************************************/
4703 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
4704 +
4705 +"use strict";
4706 +
4707 +
4708 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
4709 +
4710 +Object.defineProperty(exports, "__esModule", ({
4711 + value: true
4712 +}));
4713 +exports["default"] = void 0;
4714 +
4715 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
4716 +
4717 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
4718 +
4719 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
4720 +
4721 +var _console = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/console */ "../modules/web-cli/assets/js/utils/console.js"));
4722 +
4723 +// Copied from `modules/dev-tools/assets/js/deprecation.js`
4724 +
4725 +/**
4726 + * @typedef {Object} Version
4727 + * @property {number} major1 The first number
4728 + * @property {number} major2 The second number
4729 + * @property {number} minor The third number
4730 + * @property {string} build The fourth number
4731 + */
4732 +var softDeprecated = function softDeprecated(name, version, replacement) {
4733 + if (elementorWebCliConfig.isDebug) {
4734 + deprecatedMessage('soft', name, version, replacement);
4735 + }
4736 +};
4737 +
4738 +var hardDeprecated = function hardDeprecated(name, version, replacement) {
4739 + deprecatedMessage('hard', name, version, replacement);
4740 +};
4741 +
4742 +var deprecatedMessage = function deprecatedMessage(type, name, version, replacement) {
4743 + var message = "`".concat(name, "` is ").concat(type, " deprecated since ").concat(version);
4744 +
4745 + if (replacement) {
4746 + message += " - Use `".concat(replacement, "` instead");
4747 + }
4748 +
4749 + _console.default.warn(message);
4750 +};
4751 +
4752 +var Deprecation = /*#__PURE__*/function () {
4753 + function Deprecation() {
4754 + (0, _classCallCheck2.default)(this, Deprecation);
4755 + }
4756 +
4757 + (0, _createClass2.default)(Deprecation, null, [{
4758 + key: "deprecated",
4759 + value: function deprecated(name, version, replacement) {
4760 + if (this.isHardDeprecated(version)) {
4761 + hardDeprecated(name, version, replacement);
4762 + } else {
4763 + softDeprecated(name, version, replacement);
4764 + }
4765 + }
4766 + /**
4767 + * @param {string} version
4768 + *
4769 + * @return {Version}
4770 + */
4771 +
4772 + }, {
4773 + key: "parseVersion",
4774 + value: function parseVersion(version) {
4775 + var versionParts = version.split('.');
4776 +
4777 + if (versionParts.length < 3 || versionParts.length > 4) {
4778 + throw new RangeError('Invalid Semantic Version string provided');
4779 + }
4780 +
4781 + var _versionParts = (0, _slicedToArray2.default)(versionParts, 4),
4782 + major1 = _versionParts[0],
4783 + major2 = _versionParts[1],
4784 + minor = _versionParts[2],
4785 + _versionParts$ = _versionParts[3],
4786 + build = _versionParts$ === void 0 ? '' : _versionParts$;
4787 +
4788 + return {
4789 + major1: parseInt(major1),
4790 + major2: parseInt(major2),
4791 + minor: parseInt(minor),
4792 + build: build
4793 + };
4794 + }
4795 + /**
4796 + * Get total of major.
4797 + *
4798 + * Since `get_total_major` cannot determine how much really versions between 2.9.0 and 3.3.0 if there is 2.10.0 version for example,
4799 + * versions with major2 more then 9 will be added to total.
4800 + *
4801 + * @param {Version} versionObj
4802 + *
4803 + * @return {number}
4804 + */
4805 +
4806 + }, {
4807 + key: "getTotalMajor",
4808 + value: function getTotalMajor(versionObj) {
4809 + var total = parseInt("".concat(versionObj.major1).concat(versionObj.major2, "0"));
4810 + total = Number((total / 10).toFixed(0));
4811 +
4812 + if (versionObj.major2 > 9) {
4813 + total = versionObj.major2 - 9;
4814 + }
4815 +
4816 + return total;
4817 + }
4818 + /**
4819 + * @param {string} version1
4820 + * @param {string} version2
4821 + *
4822 + * @return {number}
4823 + */
4824 +
4825 + }, {
4826 + key: "compareVersion",
4827 + value: function compareVersion(version1, version2) {
4828 + var _this = this;
4829 +
4830 + return [this.parseVersion(version1), this.parseVersion(version2)].map(function (versionObj) {
4831 + return _this.getTotalMajor(versionObj);
4832 + }).reduce(function (acc, major) {
4833 + return acc - major;
4834 + });
4835 + }
4836 + /**
4837 + * @param {string} version
4838 + *
4839 + * @return {boolean}
4840 + */
4841 +
4842 + }, {
4843 + key: "isSoftDeprecated",
4844 + value: function isSoftDeprecated(version) {
4845 + var total = this.compareVersion(version, elementorWebCliConfig.version);
4846 + return total <= 4;
4847 + }
4848 + /**
4849 + * @param {string} version
4850 + * @return {boolean}
4851 + */
4852 +
4853 + }, {
4854 + key: "isHardDeprecated",
4855 + value: function isHardDeprecated(version) {
4856 + var total = this.compareVersion(version, elementorWebCliConfig.version);
4857 + return total < 0 || total >= 8;
4858 + }
4859 + }]);
4860 + return Deprecation;
4861 +}();
4862 +
4863 +exports["default"] = Deprecation;
4864 +
4865 +/***/ }),
4866 +
4867 +/***/ "../modules/web-cli/assets/js/utils/force-method-implementation.js":
4868 +/*!*************************************************************************!*\
4869 + !*** ../modules/web-cli/assets/js/utils/force-method-implementation.js ***!
4870 + \*************************************************************************/
4871 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
4872 +
4873 +"use strict";
4874 +
4875 +
4876 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
4877 +
4878 +Object.defineProperty(exports, "__esModule", ({
4879 + value: true
4880 +}));
4881 +exports["default"] = exports.ForceMethodImplementation = void 0;
4882 +
4883 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
4884 +
4885 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
4886 +
4887 +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"));
4888 +
4889 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
4890 +
4891 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
4892 +
4893 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
4894 +
4895 +var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js"));
4896 +
4897 +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); }; }
4898 +
4899 +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; } }
4900 +
4901 +// TODO: Copied from `assets/dev/js/modules/imports/force-method-implementation.js`;
4902 +var ForceMethodImplementation = /*#__PURE__*/function (_Error) {
4903 + (0, _inherits2.default)(ForceMethodImplementation, _Error);
4904 +
4905 + var _super = _createSuper(ForceMethodImplementation);
4906 +
4907 + function ForceMethodImplementation() {
4908 + var _this;
4909 +
4910 + var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
4911 + (0, _classCallCheck2.default)(this, ForceMethodImplementation);
4912 + _this = _super.call(this, "".concat(info.isStatic ? 'static ' : '').concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality."));
4913 + Error.captureStackTrace((0, _assertThisInitialized2.default)(_this), ForceMethodImplementation);
4914 + return _this;
4915 + }
4916 +
4917 + return (0, _createClass2.default)(ForceMethodImplementation);
4918 +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
4919 +
4920 +exports.ForceMethodImplementation = ForceMethodImplementation;
4921 +
4922 +var _default = function _default() {
4923 + var stack = Error().stack,
4924 + caller = stack.split('\n')[2].trim(),
4925 + callerName = caller.startsWith('at new') ? 'constructor' : caller.split(' ')[1],
4926 + info = {};
4927 + info.functionName = callerName;
4928 + info.fullName = callerName;
4929 +
4930 + if (info.functionName.includes('.')) {
4931 + var parts = info.functionName.split('.');
4932 + info.className = parts[0];
4933 + info.functionName = parts[1];
4934 + } else {
4935 + info.isStatic = true;
4936 + }
4937 +
4938 + throw new ForceMethodImplementation(info);
4939 +};
4940 +
4941 +exports["default"] = _default;
4942 +
4943 +/***/ }),
4944 +
4945 +/***/ "../node_modules/redux-thunk/es/index.js":
4946 +/*!***********************************************!*\
4947 + !*** ../node_modules/redux-thunk/es/index.js ***!
4948 + \***********************************************/
4949 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4950 +
4951 +"use strict";
4952 +__webpack_require__.r(__webpack_exports__);
4953 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4954 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4955 +/* harmony export */ });
4956 +/** A function that accepts a potential "extra argument" value to be injected later,
4957 + * and returns an instance of the thunk middleware that uses that value
4958 + */
4959 +function createThunkMiddleware(extraArgument) {
4960 + // Standard Redux middleware definition pattern:
4961 + // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware
4962 + var middleware = function middleware(_ref) {
4963 + var dispatch = _ref.dispatch,
4964 + getState = _ref.getState;
4965 + return function (next) {
4966 + return function (action) {
4967 + // The thunk middleware looks for any functions that were passed to `store.dispatch`.
4968 + // If this "action" is really a function, call it and return the result.
4969 + if (typeof action === 'function') {
4970 + // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg"
4971 + return action(dispatch, getState, extraArgument);
4972 + } // Otherwise, pass the action down the middleware chain as usual
4973 +
4974 +
4975 + return next(action);
4976 + };
4977 + };
4978 + };
4979 +
4980 + return middleware;
4981 +}
4982 +
4983 +var thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version
4984 +// with whatever "extra arg" they want to inject into their thunks
4985 +
4986 +thunk.withExtraArgument = createThunkMiddleware;
4987 +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (thunk);
4988 +
4989 +/***/ }),
4990 +
4991 +/***/ "../node_modules/redux/es/redux.js":
4992 +/*!*****************************************!*\
4993 + !*** ../node_modules/redux/es/redux.js ***!
4994 + \*****************************************/
4995 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4996 +
4997 +"use strict";
4998 +__webpack_require__.r(__webpack_exports__);
4999 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5000 +/* harmony export */ "__DO_NOT_USE__ActionTypes": () => (/* binding */ ActionTypes),
5001 +/* harmony export */ "applyMiddleware": () => (/* binding */ applyMiddleware),
5002 +/* harmony export */ "bindActionCreators": () => (/* binding */ bindActionCreators),
5003 +/* harmony export */ "combineReducers": () => (/* binding */ combineReducers),
5004 +/* harmony export */ "compose": () => (/* binding */ compose),
5005 +/* harmony export */ "createStore": () => (/* binding */ createStore),
5006 +/* harmony export */ "legacy_createStore": () => (/* binding */ legacy_createStore)
5007 +/* harmony export */ });
5008 +/* 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");
5009 +
5010 +
5011 +/**
5012 + * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
5013 + *
5014 + * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
5015 + * during build.
5016 + * @param {number} code
5017 + */
5018 +function formatProdErrorMessage(code) {
5019 + 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. ';
5020 +}
5021 +
5022 +// Inlined version of the `symbol-observable` polyfill
5023 +var $$observable = (function () {
5024 + return typeof Symbol === 'function' && Symbol.observable || '@@observable';
5025 +})();
5026 +
5027 +/**
5028 + * These are private action types reserved by Redux.
5029 + * For any unknown actions, you must return the current state.
5030 + * If the current state is undefined, you must return the initial state.
5031 + * Do not reference these action types directly in your code.
5032 + */
5033 +var randomString = function randomString() {
5034 + return Math.random().toString(36).substring(7).split('').join('.');
5035 +};
5036 +
5037 +var ActionTypes = {
5038 + INIT: "@@redux/INIT" + randomString(),
5039 + REPLACE: "@@redux/REPLACE" + randomString(),
5040 + PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
5041 + return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
5042 + }
5043 +};
5044 +
5045 +/**
5046 + * @param {any} obj The object to inspect.
5047 + * @returns {boolean} True if the argument appears to be a plain object.
5048 + */
5049 +function isPlainObject(obj) {
5050 + if (typeof obj !== 'object' || obj === null) return false;
5051 + var proto = obj;
5052 +
5053 + while (Object.getPrototypeOf(proto) !== null) {
5054 + proto = Object.getPrototypeOf(proto);
5055 + }
5056 +
5057 + return Object.getPrototypeOf(obj) === proto;
5058 +}
5059 +
5060 +// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
5061 +function miniKindOf(val) {
5062 + if (val === void 0) return 'undefined';
5063 + if (val === null) return 'null';
5064 + var type = typeof val;
5065 +
5066 + switch (type) {
5067 + case 'boolean':
5068 + case 'string':
5069 + case 'number':
5070 + case 'symbol':
5071 + case 'function':
5072 + {
5073 + return type;
5074 + }
5075 + }
5076 +
5077 + if (Array.isArray(val)) return 'array';
5078 + if (isDate(val)) return 'date';
5079 + if (isError(val)) return 'error';
5080 + var constructorName = ctorName(val);
5081 +
5082 + switch (constructorName) {
5083 + case 'Symbol':
5084 + case 'Promise':
5085 + case 'WeakMap':
5086 + case 'WeakSet':
5087 + case 'Map':
5088 + case 'Set':
5089 + return constructorName;
5090 + } // other
5091 +
5092 +
5093 + return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
5094 +}
5095 +
5096 +function ctorName(val) {
5097 + return typeof val.constructor === 'function' ? val.constructor.name : null;
5098 +}
5099 +
5100 +function isError(val) {
5101 + return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
5102 +}
5103 +
5104 +function isDate(val) {
5105 + if (val instanceof Date) return true;
5106 + return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
5107 +}
5108 +
5109 +function kindOf(val) {
5110 + var typeOfVal = typeof val;
5111 +
5112 + if (true) {
5113 + typeOfVal = miniKindOf(val);
5114 + }
5115 +
5116 + return typeOfVal;
5117 +}
5118 +
5119 +/**
5120 + * @deprecated
5121 + *
5122 + * **We recommend using the `configureStore` method
5123 + * of the `@reduxjs/toolkit` package**, which replaces `createStore`.
5124 + *
5125 + * Redux Toolkit is our recommended approach for writing Redux logic today,
5126 + * including store setup, reducers, data fetching, and more.
5127 + *
5128 + * **For more details, please read this Redux docs page:**
5129 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
5130 + *
5131 + * `configureStore` from Redux Toolkit is an improved version of `createStore` that
5132 + * simplifies setup and helps avoid common bugs.
5133 + *
5134 + * You should not be using the `redux` core package by itself today, except for learning purposes.
5135 + * The `createStore` method from the core `redux` package will not be removed, but we encourage
5136 + * all users to migrate to using Redux Toolkit for all Redux code.
5137 + *
5138 + * If you want to use `createStore` without this visual deprecation warning, use
5139 + * the `legacy_createStore` import instead:
5140 + *
5141 + * `import { legacy_createStore as createStore} from 'redux'`
5142 + *
5143 + */
5144 +
5145 +function createStore(reducer, preloadedState, enhancer) {
5146 + var _ref2;
5147 +
5148 + if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
5149 + 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.');
5150 + }
5151 +
5152 + if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
5153 + enhancer = preloadedState;
5154 + preloadedState = undefined;
5155 + }
5156 +
5157 + if (typeof enhancer !== 'undefined') {
5158 + if (typeof enhancer !== 'function') {
5159 + throw new Error( false ? 0 : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'");
5160 + }
5161 +
5162 + return enhancer(createStore)(reducer, preloadedState);
5163 + }
5164 +
5165 + if (typeof reducer !== 'function') {
5166 + throw new Error( false ? 0 : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'");
5167 + }
5168 +
5169 + var currentReducer = reducer;
5170 + var currentState = preloadedState;
5171 + var currentListeners = [];
5172 + var nextListeners = currentListeners;
5173 + var isDispatching = false;
5174 + /**
5175 + * This makes a shallow copy of currentListeners so we can use
5176 + * nextListeners as a temporary list while dispatching.
5177 + *
5178 + * This prevents any bugs around consumers calling
5179 + * subscribe/unsubscribe in the middle of a dispatch.
5180 + */
5181 +
5182 + function ensureCanMutateNextListeners() {
5183 + if (nextListeners === currentListeners) {
5184 + nextListeners = currentListeners.slice();
5185 + }
5186 + }
5187 + /**
5188 + * Reads the state tree managed by the store.
5189 + *
5190 + * @returns {any} The current state tree of your application.
5191 + */
5192 +
5193 +
5194 + function getState() {
5195 + if (isDispatching) {
5196 + 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.');
5197 + }
5198 +
5199 + return currentState;
5200 + }
5201 + /**
5202 + * Adds a change listener. It will be called any time an action is dispatched,
5203 + * and some part of the state tree may potentially have changed. You may then
5204 + * call `getState()` to read the current state tree inside the callback.
5205 + *
5206 + * You may call `dispatch()` from a change listener, with the following
5207 + * caveats:
5208 + *
5209 + * 1. The subscriptions are snapshotted just before every `dispatch()` call.
5210 + * If you subscribe or unsubscribe while the listeners are being invoked, this
5211 + * will not have any effect on the `dispatch()` that is currently in progress.
5212 + * However, the next `dispatch()` call, whether nested or not, will use a more
5213 + * recent snapshot of the subscription list.
5214 + *
5215 + * 2. The listener should not expect to see all state changes, as the state
5216 + * might have been updated multiple times during a nested `dispatch()` before
5217 + * the listener is called. It is, however, guaranteed that all subscribers
5218 + * registered before the `dispatch()` started will be called with the latest
5219 + * state by the time it exits.
5220 + *
5221 + * @param {Function} listener A callback to be invoked on every dispatch.
5222 + * @returns {Function} A function to remove this change listener.
5223 + */
5224 +
5225 +
5226 + function subscribe(listener) {
5227 + if (typeof listener !== 'function') {
5228 + throw new Error( false ? 0 : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'");
5229 + }
5230 +
5231 + if (isDispatching) {
5232 + 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.');
5233 + }
5234 +
5235 + var isSubscribed = true;
5236 + ensureCanMutateNextListeners();
5237 + nextListeners.push(listener);
5238 + return function unsubscribe() {
5239 + if (!isSubscribed) {
5240 + return;
5241 + }
5242 +
5243 + if (isDispatching) {
5244 + 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.');
5245 + }
5246 +
5247 + isSubscribed = false;
5248 + ensureCanMutateNextListeners();
5249 + var index = nextListeners.indexOf(listener);
5250 + nextListeners.splice(index, 1);
5251 + currentListeners = null;
5252 + };
5253 + }
5254 + /**
5255 + * Dispatches an action. It is the only way to trigger a state change.
5256 + *
5257 + * The `reducer` function, used to create the store, will be called with the
5258 + * current state tree and the given `action`. Its return value will
5259 + * be considered the **next** state of the tree, and the change listeners
5260 + * will be notified.
5261 + *
5262 + * The base implementation only supports plain object actions. If you want to
5263 + * dispatch a Promise, an Observable, a thunk, or something else, you need to
5264 + * wrap your store creating function into the corresponding middleware. For
5265 + * example, see the documentation for the `redux-thunk` package. Even the
5266 + * middleware will eventually dispatch plain object actions using this method.
5267 + *
5268 + * @param {Object} action A plain object representing “what changed”. It is
5269 + * a good idea to keep actions serializable so you can record and replay user
5270 + * sessions, or use the time travelling `redux-devtools`. An action must have
5271 + * a `type` property which may not be `undefined`. It is a good idea to use
5272 + * string constants for action types.
5273 + *
5274 + * @returns {Object} For convenience, the same action object you dispatched.
5275 + *
5276 + * Note that, if you use a custom middleware, it may wrap `dispatch()` to
5277 + * return something else (for example, a Promise you can await).
5278 + */
5279 +
5280 +
5281 + function dispatch(action) {
5282 + if (!isPlainObject(action)) {
5283 + 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.");
5284 + }
5285 +
5286 + if (typeof action.type === 'undefined') {
5287 + throw new Error( false ? 0 : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
5288 + }
5289 +
5290 + if (isDispatching) {
5291 + throw new Error( false ? 0 : 'Reducers may not dispatch actions.');
5292 + }
5293 +
5294 + try {
5295 + isDispatching = true;
5296 + currentState = currentReducer(currentState, action);
5297 + } finally {
5298 + isDispatching = false;
5299 + }
5300 +
5301 + var listeners = currentListeners = nextListeners;
5302 +
5303 + for (var i = 0; i < listeners.length; i++) {
5304 + var listener = listeners[i];
5305 + listener();
5306 + }
5307 +
5308 + return action;
5309 + }
5310 + /**
5311 + * Replaces the reducer currently used by the store to calculate the state.
5312 + *
5313 + * You might need this if your app implements code splitting and you want to
5314 + * load some of the reducers dynamically. You might also need this if you
5315 + * implement a hot reloading mechanism for Redux.
5316 + *
5317 + * @param {Function} nextReducer The reducer for the store to use instead.
5318 + * @returns {void}
5319 + */
5320 +
5321 +
5322 + function replaceReducer(nextReducer) {
5323 + if (typeof nextReducer !== 'function') {
5324 + throw new Error( false ? 0 : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer));
5325 + }
5326 +
5327 + currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
5328 + // Any reducers that existed in both the new and old rootReducer
5329 + // will receive the previous state. This effectively populates
5330 + // the new state tree with any relevant data from the old one.
5331 +
5332 + dispatch({
5333 + type: ActionTypes.REPLACE
5334 + });
5335 + }
5336 + /**
5337 + * Interoperability point for observable/reactive libraries.
5338 + * @returns {observable} A minimal observable of state changes.
5339 + * For more information, see the observable proposal:
5340 + * https://github.com/tc39/proposal-observable
5341 + */
5342 +
5343 +
5344 + function observable() {
5345 + var _ref;
5346 +
5347 + var outerSubscribe = subscribe;
5348 + return _ref = {
5349 + /**
5350 + * The minimal observable subscription method.
5351 + * @param {Object} observer Any object that can be used as an observer.
5352 + * The observer object should have a `next` method.
5353 + * @returns {subscription} An object with an `unsubscribe` method that can
5354 + * be used to unsubscribe the observable from the store, and prevent further
5355 + * emission of values from the observable.
5356 + */
5357 + subscribe: function subscribe(observer) {
5358 + if (typeof observer !== 'object' || observer === null) {
5359 + throw new Error( false ? 0 : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'");
5360 + }
5361 +
5362 + function observeState() {
5363 + if (observer.next) {
5364 + observer.next(getState());
5365 + }
5366 + }
5367 +
5368 + observeState();
5369 + var unsubscribe = outerSubscribe(observeState);
5370 + return {
5371 + unsubscribe: unsubscribe
5372 + };
5373 + }
5374 + }, _ref[$$observable] = function () {
5375 + return this;
5376 + }, _ref;
5377 + } // When a store is created, an "INIT" action is dispatched so that every
5378 + // reducer returns their initial state. This effectively populates
5379 + // the initial state tree.
5380 +
5381 +
5382 + dispatch({
5383 + type: ActionTypes.INIT
5384 + });
5385 + return _ref2 = {
5386 + dispatch: dispatch,
5387 + subscribe: subscribe,
5388 + getState: getState,
5389 + replaceReducer: replaceReducer
5390 + }, _ref2[$$observable] = observable, _ref2;
5391 +}
5392 +/**
5393 + * Creates a Redux store that holds the state tree.
5394 + *
5395 + * **We recommend using `configureStore` from the
5396 + * `@reduxjs/toolkit` package**, which replaces `createStore`:
5397 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
5398 + *
5399 + * The only way to change the data in the store is to call `dispatch()` on it.
5400 + *
5401 + * There should only be a single store in your app. To specify how different
5402 + * parts of the state tree respond to actions, you may combine several reducers
5403 + * into a single reducer function by using `combineReducers`.
5404 + *
5405 + * @param {Function} reducer A function that returns the next state tree, given
5406 + * the current state tree and the action to handle.
5407 + *
5408 + * @param {any} [preloadedState] The initial state. You may optionally specify it
5409 + * to hydrate the state from the server in universal apps, or to restore a
5410 + * previously serialized user session.
5411 + * If you use `combineReducers` to produce the root reducer function, this must be
5412 + * an object with the same shape as `combineReducers` keys.
5413 + *
5414 + * @param {Function} [enhancer] The store enhancer. You may optionally specify it
5415 + * to enhance the store with third-party capabilities such as middleware,
5416 + * time travel, persistence, etc. The only store enhancer that ships with Redux
5417 + * is `applyMiddleware()`.
5418 + *
5419 + * @returns {Store} A Redux store that lets you read the state, dispatch actions
5420 + * and subscribe to changes.
5421 + */
5422 +
5423 +var legacy_createStore = createStore;
5424 +
5425 +/**
5426 + * Prints a warning in the console if it exists.
5427 + *
5428 + * @param {String} message The warning message.
5429 + * @returns {void}
5430 + */
5431 +function warning(message) {
5432 + /* eslint-disable no-console */
5433 + if (typeof console !== 'undefined' && typeof console.error === 'function') {
5434 + console.error(message);
5435 + }
5436 + /* eslint-enable no-console */
5437 +
5438 +
5439 + try {
5440 + // This error was thrown as a convenience so that if you enable
5441 + // "break on all exceptions" in your console,
5442 + // it would pause the execution at this line.
5443 + throw new Error(message);
5444 + } catch (e) {} // eslint-disable-line no-empty
5445 +
5446 +}
5447 +
5448 +function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
5449 + var reducerKeys = Object.keys(reducers);
5450 + var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
5451 +
5452 + if (reducerKeys.length === 0) {
5453 + return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
5454 + }
5455 +
5456 + if (!isPlainObject(inputState)) {
5457 + return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
5458 + }
5459 +
5460 + var unexpectedKeys = Object.keys(inputState).filter(function (key) {
5461 + return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
5462 + });
5463 + unexpectedKeys.forEach(function (key) {
5464 + unexpectedKeyCache[key] = true;
5465 + });
5466 + if (action && action.type === ActionTypes.REPLACE) return;
5467 +
5468 + if (unexpectedKeys.length > 0) {
5469 + 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.");
5470 + }
5471 +}
5472 +
5473 +function assertReducerShape(reducers) {
5474 + Object.keys(reducers).forEach(function (key) {
5475 + var reducer = reducers[key];
5476 + var initialState = reducer(undefined, {
5477 + type: ActionTypes.INIT
5478 + });
5479 +
5480 + if (typeof initialState === 'undefined') {
5481 + 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.");
5482 + }
5483 +
5484 + if (typeof reducer(undefined, {
5485 + type: ActionTypes.PROBE_UNKNOWN_ACTION()
5486 + }) === 'undefined') {
5487 + 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.");
5488 + }
5489 + });
5490 +}
5491 +/**
5492 + * Turns an object whose values are different reducer functions, into a single
5493 + * reducer function. It will call every child reducer, and gather their results
5494 + * into a single state object, whose keys correspond to the keys of the passed
5495 + * reducer functions.
5496 + *
5497 + * @param {Object} reducers An object whose values correspond to different
5498 + * reducer functions that need to be combined into one. One handy way to obtain
5499 + * it is to use ES6 `import * as reducers` syntax. The reducers may never return
5500 + * undefined for any action. Instead, they should return their initial state
5501 + * if the state passed to them was undefined, and the current state for any
5502 + * unrecognized action.
5503 + *
5504 + * @returns {Function} A reducer function that invokes every reducer inside the
5505 + * passed object, and builds a state object with the same shape.
5506 + */
5507 +
5508 +
5509 +function combineReducers(reducers) {
5510 + var reducerKeys = Object.keys(reducers);
5511 + var finalReducers = {};
5512 +
5513 + for (var i = 0; i < reducerKeys.length; i++) {
5514 + var key = reducerKeys[i];
5515 +
5516 + if (true) {
5517 + if (typeof reducers[key] === 'undefined') {
5518 + warning("No reducer provided for key \"" + key + "\"");
5519 + }
5520 + }
5521 +
5522 + if (typeof reducers[key] === 'function') {
5523 + finalReducers[key] = reducers[key];
5524 + }
5525 + }
5526 +
5527 + var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same
5528 + // keys multiple times.
5529 +
5530 + var unexpectedKeyCache;
5531 +
5532 + if (true) {
5533 + unexpectedKeyCache = {};
5534 + }
5535 +
5536 + var shapeAssertionError;
5537 +
5538 + try {
5539 + assertReducerShape(finalReducers);
5540 + } catch (e) {
5541 + shapeAssertionError = e;
5542 + }
5543 +
5544 + return function combination(state, action) {
5545 + if (state === void 0) {
5546 + state = {};
5547 + }
5548 +
5549 + if (shapeAssertionError) {
5550 + throw shapeAssertionError;
5551 + }
5552 +
5553 + if (true) {
5554 + var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
5555 +
5556 + if (warningMessage) {
5557 + warning(warningMessage);
5558 + }
5559 + }
5560 +
5561 + var hasChanged = false;
5562 + var nextState = {};
5563 +
5564 + for (var _i = 0; _i < finalReducerKeys.length; _i++) {
5565 + var _key = finalReducerKeys[_i];
5566 + var reducer = finalReducers[_key];
5567 + var previousStateForKey = state[_key];
5568 + var nextStateForKey = reducer(previousStateForKey, action);
5569 +
5570 + if (typeof nextStateForKey === 'undefined') {
5571 + var actionType = action && action.type;
5572 + 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.");
5573 + }
5574 +
5575 + nextState[_key] = nextStateForKey;
5576 + hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
5577 + }
5578 +
5579 + hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
5580 + return hasChanged ? nextState : state;
5581 + };
5582 +}
5583 +
5584 +function bindActionCreator(actionCreator, dispatch) {
5585 + return function () {
5586 + return dispatch(actionCreator.apply(this, arguments));
5587 + };
5588 +}
5589 +/**
5590 + * Turns an object whose values are action creators, into an object with the
5591 + * same keys, but with every function wrapped into a `dispatch` call so they
5592 + * may be invoked directly. This is just a convenience method, as you can call
5593 + * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
5594 + *
5595 + * For convenience, you can also pass an action creator as the first argument,
5596 + * and get a dispatch wrapped function in return.
5597 + *
5598 + * @param {Function|Object} actionCreators An object whose values are action
5599 + * creator functions. One handy way to obtain it is to use ES6 `import * as`
5600 + * syntax. You may also pass a single function.
5601 + *
5602 + * @param {Function} dispatch The `dispatch` function available on your Redux
5603 + * store.
5604 + *
5605 + * @returns {Function|Object} The object mimicking the original object, but with
5606 + * every action creator wrapped into the `dispatch` call. If you passed a
5607 + * function as `actionCreators`, the return value will also be a single
5608 + * function.
5609 + */
5610 +
5611 +
5612 +function bindActionCreators(actionCreators, dispatch) {
5613 + if (typeof actionCreators === 'function') {
5614 + return bindActionCreator(actionCreators, dispatch);
5615 + }
5616 +
5617 + if (typeof actionCreators !== 'object' || actionCreators === null) {
5618 + 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\"?");
5619 + }
5620 +
5621 + var boundActionCreators = {};
5622 +
5623 + for (var key in actionCreators) {
5624 + var actionCreator = actionCreators[key];
5625 +
5626 + if (typeof actionCreator === 'function') {
5627 + boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
5628 + }
5629 + }
5630 +
5631 + return boundActionCreators;
5632 +}
5633 +
5634 +/**
5635 + * Composes single-argument functions from right to left. The rightmost
5636 + * function can take multiple arguments as it provides the signature for
5637 + * the resulting composite function.
5638 + *
5639 + * @param {...Function} funcs The functions to compose.
5640 + * @returns {Function} A function obtained by composing the argument functions
5641 + * from right to left. For example, compose(f, g, h) is identical to doing
5642 + * (...args) => f(g(h(...args))).
5643 + */
5644 +function compose() {
5645 + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
5646 + funcs[_key] = arguments[_key];
5647 + }
5648 +
5649 + if (funcs.length === 0) {
5650 + return function (arg) {
5651 + return arg;
5652 + };
5653 + }
5654 +
5655 + if (funcs.length === 1) {
5656 + return funcs[0];
5657 + }
5658 +
5659 + return funcs.reduce(function (a, b) {
5660 + return function () {
5661 + return a(b.apply(void 0, arguments));
5662 + };
5663 + });
5664 +}
5665 +
5666 +/**
5667 + * Creates a store enhancer that applies middleware to the dispatch method
5668 + * of the Redux store. This is handy for a variety of tasks, such as expressing
5669 + * asynchronous actions in a concise manner, or logging every action payload.
5670 + *
5671 + * See `redux-thunk` package as an example of the Redux middleware.
5672 + *
5673 + * Because middleware is potentially asynchronous, this should be the first
5674 + * store enhancer in the composition chain.
5675 + *
5676 + * Note that each middleware will be given the `dispatch` and `getState` functions
5677 + * as named arguments.
5678 + *
5679 + * @param {...Function} middlewares The middleware chain to be applied.
5680 + * @returns {Function} A store enhancer applying the middleware.
5681 + */
5682 +
5683 +function applyMiddleware() {
5684 + for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
5685 + middlewares[_key] = arguments[_key];
5686 + }
5687 +
5688 + return function (createStore) {
5689 + return function () {
5690 + var store = createStore.apply(void 0, arguments);
5691 +
5692 + var _dispatch = function dispatch() {
5693 + throw new Error( false ? 0 : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
5694 + };
5695 +
5696 + var middlewareAPI = {
5697 + getState: store.getState,
5698 + dispatch: function dispatch() {
5699 + return _dispatch.apply(void 0, arguments);
5700 + }
5701 + };
5702 + var chain = middlewares.map(function (middleware) {
5703 + return middleware(middlewareAPI);
5704 + });
5705 + _dispatch = compose.apply(void 0, chain)(store.dispatch);
5706 + return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, store), {}, {
5707 + dispatch: _dispatch
5708 + });
5709 + };
5710 + };
5711 +}
5712 +
5713 +/*
5714 + * This is a dummy function to check if the function name has been altered by minification.
5715 + * If the function has been minified and NODE_ENV !== 'production', warn the user.
5716 + */
5717 +
5718 +function isCrushed() {}
5719 +
5720 +if ( true && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
5721 + 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.');
5722 +}
5723 +
5724 +
5725 +
5726 +
5727 +/***/ }),
5728 +
5729 +/***/ "../node_modules/reselect/es/defaultMemoize.js":
5730 +/*!*****************************************************!*\
5731 + !*** ../node_modules/reselect/es/defaultMemoize.js ***!
5732 + \*****************************************************/
5733 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5734 +
5735 +"use strict";
5736 +__webpack_require__.r(__webpack_exports__);
5737 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5738 +/* harmony export */ "createCacheKeyComparator": () => (/* binding */ createCacheKeyComparator),
5739 +/* harmony export */ "defaultEqualityCheck": () => (/* binding */ defaultEqualityCheck),
5740 +/* harmony export */ "defaultMemoize": () => (/* binding */ defaultMemoize)
5741 +/* harmony export */ });
5742 +// Cache implementation based on Erik Rasmussen's `lru-memoize`:
5743 +// https://github.com/erikras/lru-memoize
5744 +var NOT_FOUND = 'NOT_FOUND';
5745 +
5746 +function createSingletonCache(equals) {
5747 + var entry;
5748 + return {
5749 + get: function get(key) {
5750 + if (entry && equals(entry.key, key)) {
5751 + return entry.value;
5752 + }
5753 +
5754 + return NOT_FOUND;
5755 + },
5756 + put: function put(key, value) {
5757 + entry = {
5758 + key: key,
5759 + value: value
5760 + };
5761 + },
5762 + getEntries: function getEntries() {
5763 + return entry ? [entry] : [];
5764 + },
5765 + clear: function clear() {
5766 + entry = undefined;
5767 + }
5768 + };
5769 +}
5770 +
5771 +function createLruCache(maxSize, equals) {
5772 + var entries = [];
5773 +
5774 + function get(key) {
5775 + var cacheIndex = entries.findIndex(function (entry) {
5776 + return equals(key, entry.key);
5777 + }); // We found a cached entry
5778 +
5779 + if (cacheIndex > -1) {
5780 + var entry = entries[cacheIndex]; // Cached entry not at top of cache, move it to the top
5781 +
5782 + if (cacheIndex > 0) {
5783 + entries.splice(cacheIndex, 1);
5784 + entries.unshift(entry);
5785 + }
5786 +
5787 + return entry.value;
5788 + } // No entry found in cache, return sentinel
5789 +
5790 +
5791 + return NOT_FOUND;
5792 + }
5793 +
5794 + function put(key, value) {
5795 + if (get(key) === NOT_FOUND) {
5796 + // TODO Is unshift slow?
5797 + entries.unshift({
5798 + key: key,
5799 + value: value
5800 + });
5801 +
5802 + if (entries.length > maxSize) {
5803 + entries.pop();
5804 + }
5805 + }
5806 + }
5807 +
5808 + function getEntries() {
5809 + return entries;
5810 + }
5811 +
5812 + function clear() {
5813 + entries = [];
5814 + }
5815 +
5816 + return {
5817 + get: get,
5818 + put: put,
5819 + getEntries: getEntries,
5820 + clear: clear
5821 + };
5822 +}
5823 +
5824 +var defaultEqualityCheck = function defaultEqualityCheck(a, b) {
5825 + return a === b;
5826 +};
5827 +function createCacheKeyComparator(equalityCheck) {
5828 + return function areArgumentsShallowlyEqual(prev, next) {
5829 + if (prev === null || next === null || prev.length !== next.length) {
5830 + return false;
5831 + } // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
5832 +
5833 +
5834 + var length = prev.length;
5835 +
5836 + for (var i = 0; i < length; i++) {
5837 + if (!equalityCheck(prev[i], next[i])) {
5838 + return false;
5839 + }
5840 + }
5841 +
5842 + return true;
5843 + };
5844 +}
5845 +// defaultMemoize now supports a configurable cache size with LRU behavior,
5846 +// and optional comparison of the result value with existing values
5847 +function defaultMemoize(func, equalityCheckOrOptions) {
5848 + var providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : {
5849 + equalityCheck: equalityCheckOrOptions
5850 + };
5851 + var _providedOptions$equa = providedOptions.equalityCheck,
5852 + equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa,
5853 + _providedOptions$maxS = providedOptions.maxSize,
5854 + maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS,
5855 + resultEqualityCheck = providedOptions.resultEqualityCheck;
5856 + var comparator = createCacheKeyComparator(equalityCheck);
5857 + var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator); // we reference arguments instead of spreading them for performance reasons
5858 +
5859 + function memoized() {
5860 + var value = cache.get(arguments);
5861 +
5862 + if (value === NOT_FOUND) {
5863 + // @ts-ignore
5864 + value = func.apply(null, arguments);
5865 +
5866 + if (resultEqualityCheck) {
5867 + var entries = cache.getEntries();
5868 + var matchingEntry = entries.find(function (entry) {
5869 + return resultEqualityCheck(entry.value, value);
5870 + });
5871 +
5872 + if (matchingEntry) {
5873 + value = matchingEntry.value;
5874 + }
5875 + }
5876 +
5877 + cache.put(arguments, value);
5878 + }
5879 +
5880 + return value;
5881 + }
5882 +
5883 + memoized.clearCache = function () {
5884 + return cache.clear();
5885 + };
5886 +
5887 + return memoized;
5888 +}
5889 +
5890 +/***/ }),
5891 +
5892 +/***/ "../node_modules/reselect/es/index.js":
5893 +/*!********************************************!*\
5894 + !*** ../node_modules/reselect/es/index.js ***!
5895 + \********************************************/
5896 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5897 +
5898 +"use strict";
5899 +__webpack_require__.r(__webpack_exports__);
5900 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5901 +/* harmony export */ "createSelector": () => (/* binding */ createSelector),
5902 +/* harmony export */ "createSelectorCreator": () => (/* binding */ createSelectorCreator),
5903 +/* harmony export */ "createStructuredSelector": () => (/* binding */ createStructuredSelector),
5904 +/* harmony export */ "defaultEqualityCheck": () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultEqualityCheck),
5905 +/* harmony export */ "defaultMemoize": () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize)
5906 +/* harmony export */ });
5907 +/* harmony import */ var _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultMemoize */ "../node_modules/reselect/es/defaultMemoize.js");
5908 +
5909 +
5910 +
5911 +function getDependencies(funcs) {
5912 + var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;
5913 +
5914 + if (!dependencies.every(function (dep) {
5915 + return typeof dep === 'function';
5916 + })) {
5917 + var dependencyTypes = dependencies.map(function (dep) {
5918 + return typeof dep === 'function' ? "function " + (dep.name || 'unnamed') + "()" : typeof dep;
5919 + }).join(', ');
5920 + throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]");
5921 + }
5922 +
5923 + return dependencies;
5924 +}
5925 +
5926 +function createSelectorCreator(memoize) {
5927 + for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
5928 + memoizeOptionsFromArgs[_key - 1] = arguments[_key];
5929 + }
5930 +
5931 + var createSelector = function createSelector() {
5932 + for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
5933 + funcs[_key2] = arguments[_key2];
5934 + }
5935 +
5936 + var _recomputations = 0;
5937 +
5938 + var _lastResult; // Due to the intricacies of rest params, we can't do an optional arg after `...funcs`.
5939 + // So, start by declaring the default value here.
5940 + // (And yes, the words 'memoize' and 'options' appear too many times in this next sequence.)
5941 +
5942 +
5943 + var directlyPassedOptions = {
5944 + memoizeOptions: undefined
5945 + }; // Normally, the result func or "output selector" is the last arg
5946 +
5947 + var resultFunc = funcs.pop(); // If the result func is actually an _object_, assume it's our options object
5948 +
5949 + if (typeof resultFunc === 'object') {
5950 + directlyPassedOptions = resultFunc; // and pop the real result func off
5951 +
5952 + resultFunc = funcs.pop();
5953 + }
5954 +
5955 + if (typeof resultFunc !== 'function') {
5956 + throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof resultFunc + "]");
5957 + } // Determine which set of options we're using. Prefer options passed directly,
5958 + // but fall back to options given to createSelectorCreator.
5959 +
5960 +
5961 + var _directlyPassedOption = directlyPassedOptions,
5962 + _directlyPassedOption2 = _directlyPassedOption.memoizeOptions,
5963 + memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2; // Simplifying assumption: it's unlikely that the first options arg of the provided memoizer
5964 + // is an array. In most libs I've looked at, it's an equality function or options object.
5965 + // Based on that, if `memoizeOptions` _is_ an array, we assume it's a full
5966 + // user-provided array of options. Otherwise, it must be just the _first_ arg, and so
5967 + // we wrap it in an array so we can apply it.
5968 +
5969 + var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions];
5970 + var dependencies = getDependencies(funcs);
5971 + var memoizedResultFunc = memoize.apply(void 0, [function recomputationWrapper() {
5972 + _recomputations++; // apply arguments instead of spreading for performance.
5973 +
5974 + return resultFunc.apply(null, arguments);
5975 + }].concat(finalMemoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.
5976 +
5977 + var selector = memoize(function dependenciesChecker() {
5978 + var params = [];
5979 + var length = dependencies.length;
5980 +
5981 + for (var i = 0; i < length; i++) {
5982 + // apply arguments instead of spreading and mutate a local list of params for performance.
5983 + // @ts-ignore
5984 + params.push(dependencies[i].apply(null, arguments));
5985 + } // apply arguments instead of spreading for performance.
5986 +
5987 +
5988 + _lastResult = memoizedResultFunc.apply(null, params);
5989 + return _lastResult;
5990 + });
5991 + Object.assign(selector, {
5992 + resultFunc: resultFunc,
5993 + memoizedResultFunc: memoizedResultFunc,
5994 + dependencies: dependencies,
5995 + lastResult: function lastResult() {
5996 + return _lastResult;
5997 + },
5998 + recomputations: function recomputations() {
5999 + return _recomputations;
6000 + },
6001 + resetRecomputations: function resetRecomputations() {
6002 + return _recomputations = 0;
6003 + }
6004 + });
6005 + return selector;
6006 + }; // @ts-ignore
6007 +
6008 +
6009 + return createSelector;
6010 +}
6011 +var createSelector = /* #__PURE__ */createSelectorCreator(_defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize);
6012 +// Manual definition of state and output arguments
6013 +var createStructuredSelector = function createStructuredSelector(selectors, selectorCreator) {
6014 + if (selectorCreator === void 0) {
6015 + selectorCreator = createSelector;
6016 + }
6017 +
6018 + if (typeof selectors !== 'object') {
6019 + throw new Error('createStructuredSelector expects first argument to be an object ' + ("where each property is a selector, instead received a " + typeof selectors));
6020 + }
6021 +
6022 + var objectKeys = Object.keys(selectors);
6023 + var resultSelector = selectorCreator( // @ts-ignore
6024 + objectKeys.map(function (key) {
6025 + return selectors[key];
6026 + }), function () {
6027 + for (var _len3 = arguments.length, values = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
6028 + values[_key3] = arguments[_key3];
6029 + }
6030 +
6031 + return values.reduce(function (composition, value, index) {
6032 + composition[objectKeys[index]] = value;
6033 + return composition;
6034 + }, {});
6035 + });
6036 + return resultSelector;
6037 +};
6038 +
6039 +/***/ }),
6040 +
6041 +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
6042 +/*!******************************************************************!*\
6043 + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
6044 + \******************************************************************/
6045 +/***/ ((module) => {
6046 +
6047 +function _arrayLikeToArray(arr, len) {
6048 + if (len == null || len > arr.length) len = arr.length;
6049 +
6050 + for (var i = 0, arr2 = new Array(len); i < len; i++) {
6051 + arr2[i] = arr[i];
6052 + }
6053 +
6054 + return arr2;
6055 +}
6056 +
6057 +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
6058 +
6059 +/***/ }),
6060 +
6061 +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
6062 +/*!****************************************************************!*\
6063 + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
6064 + \****************************************************************/
6065 +/***/ ((module) => {
6066 +
6067 +function _arrayWithHoles(arr) {
6068 + if (Array.isArray(arr)) return arr;
6069 +}
6070 +
6071 +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
6072 +
6073 +/***/ }),
6074 +
6075 +/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js":
6076 +/*!***********************************************************************!*\
6077 + !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
6078 + \***********************************************************************/
6079 +/***/ ((module) => {
6080 +
6081 +function _assertThisInitialized(self) {
6082 + if (self === void 0) {
6083 + throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6084 + }
6085 +
6086 + return self;
6087 +}
6088 +
6089 +module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
6090 +
6091 +/***/ }),
6092 +
6093 +/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
6094 +/*!****************************************************************!*\
6095 + !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
6096 + \****************************************************************/
6097 +/***/ ((module) => {
6098 +
6099 +function _classCallCheck(instance, Constructor) {
6100 + if (!(instance instanceof Constructor)) {
6101 + throw new TypeError("Cannot call a class as a function");
6102 + }
6103 +}
6104 +
6105 +module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
6106 +
6107 +/***/ }),
6108 +
6109 +/***/ "../node_modules/@babel/runtime/helpers/construct.js":
6110 +/*!***********************************************************!*\
6111 + !*** ../node_modules/@babel/runtime/helpers/construct.js ***!
6112 + \***********************************************************/
6113 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6114 +
6115 +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
6116 +
6117 +var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js");
6118 +
6119 +function _construct(Parent, args, Class) {
6120 + if (isNativeReflectConstruct()) {
6121 + module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
6122 + } else {
6123 + module.exports = _construct = function _construct(Parent, args, Class) {
6124 + var a = [null];
6125 + a.push.apply(a, args);
6126 + var Constructor = Function.bind.apply(Parent, a);
6127 + var instance = new Constructor();
6128 + if (Class) setPrototypeOf(instance, Class.prototype);
6129 + return instance;
6130 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
6131 + }
6132 +
6133 + return _construct.apply(null, arguments);
6134 +}
6135 +
6136 +module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
6137 +
6138 +/***/ }),
6139 +
6140 +/***/ "../node_modules/@babel/runtime/helpers/createClass.js":
6141 +/*!*************************************************************!*\
6142 + !*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
6143 + \*************************************************************/
6144 +/***/ ((module) => {
6145 +
6146 +function _defineProperties(target, props) {
6147 + for (var i = 0; i < props.length; i++) {
6148 + var descriptor = props[i];
6149 + descriptor.enumerable = descriptor.enumerable || false;
6150 + descriptor.configurable = true;
6151 + if ("value" in descriptor) descriptor.writable = true;
6152 + Object.defineProperty(target, descriptor.key, descriptor);
6153 + }
6154 +}
6155 +
6156 +function _createClass(Constructor, protoProps, staticProps) {
6157 + if (protoProps) _defineProperties(Constructor.prototype, protoProps);
6158 + if (staticProps) _defineProperties(Constructor, staticProps);
6159 + Object.defineProperty(Constructor, "prototype", {
6160 + writable: false
6161 + });
6162 + return Constructor;
6163 +}
6164 +
6165 +module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
6166 +
6167 +/***/ }),
6168 +
6169 +/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
6170 +/*!****************************************************************!*\
6171 + !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
6172 + \****************************************************************/
6173 +/***/ ((module) => {
6174 +
6175 +function _defineProperty(obj, key, value) {
6176 + if (key in obj) {
6177 + Object.defineProperty(obj, key, {
6178 + value: value,
6179 + enumerable: true,
6180 + configurable: true,
6181 + writable: true
6182 + });
6183 + } else {
6184 + obj[key] = value;
6185 + }
6186 +
6187 + return obj;
6188 +}
6189 +
6190 +module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
6191 +
6192 +/***/ }),
6193 +
6194 +/***/ "../node_modules/@babel/runtime/helpers/get.js":
6195 +/*!*****************************************************!*\
6196 + !*** ../node_modules/@babel/runtime/helpers/get.js ***!
6197 + \*****************************************************/
6198 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6199 +
6200 +var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js");
6201 +
6202 +function _get() {
6203 + if (typeof Reflect !== "undefined" && Reflect.get) {
6204 + module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
6205 + } else {
6206 + module.exports = _get = function _get(target, property, receiver) {
6207 + var base = superPropBase(target, property);
6208 + if (!base) return;
6209 + var desc = Object.getOwnPropertyDescriptor(base, property);
6210 +
6211 + if (desc.get) {
6212 + return desc.get.call(arguments.length < 3 ? target : receiver);
6213 + }
6214 +
6215 + return desc.value;
6216 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
6217 + }
6218 +
6219 + return _get.apply(this, arguments);
6220 +}
6221 +
6222 +module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
6223 +
6224 +/***/ }),
6225 +
6226 +/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js":
6227 +/*!****************************************************************!*\
6228 + !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
6229 + \****************************************************************/
6230 +/***/ ((module) => {
6231 +
6232 +function _getPrototypeOf(o) {
6233 + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
6234 + return o.__proto__ || Object.getPrototypeOf(o);
6235 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
6236 + return _getPrototypeOf(o);
6237 +}
6238 +
6239 +module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
6240 +
6241 +/***/ }),
6242 +
6243 +/***/ "../node_modules/@babel/runtime/helpers/inherits.js":
6244 +/*!**********************************************************!*\
6245 + !*** ../node_modules/@babel/runtime/helpers/inherits.js ***!
6246 + \**********************************************************/
6247 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6248 +
6249 +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
6250 +
6251 +function _inherits(subClass, superClass) {
6252 + if (typeof superClass !== "function" && superClass !== null) {
6253 + throw new TypeError("Super expression must either be null or a function");
6254 + }
6255 +
6256 + subClass.prototype = Object.create(superClass && superClass.prototype, {
6257 + constructor: {
6258 + value: subClass,
6259 + writable: true,
6260 + configurable: true
6261 + }
6262 + });
6263 + Object.defineProperty(subClass, "prototype", {
6264 + writable: false
6265 + });
6266 + if (superClass) setPrototypeOf(subClass, superClass);
6267 +}
6268 +
6269 +module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
6270 +
6271 +/***/ }),
6272 +
6273 +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
6274 +/*!***********************************************************************!*\
6275 + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
6276 + \***********************************************************************/
6277 +/***/ ((module) => {
6278 +
6279 +function _interopRequireDefault(obj) {
6280 + return obj && obj.__esModule ? obj : {
6281 + "default": obj
6282 + };
6283 +}
6284 +
6285 +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
6286 +
6287 +/***/ }),
6288 +
6289 +/***/ "../node_modules/@babel/runtime/helpers/isNativeFunction.js":
6290 +/*!******************************************************************!*\
6291 + !*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
6292 + \******************************************************************/
6293 +/***/ ((module) => {
6294 +
6295 +function _isNativeFunction(fn) {
6296 + return Function.toString.call(fn).indexOf("[native code]") !== -1;
6297 +}
6298 +
6299 +module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
6300 +
6301 +/***/ }),
6302 +
6303 +/***/ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js":
6304 +/*!**************************************************************************!*\
6305 + !*** ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
6306 + \**************************************************************************/
6307 +/***/ ((module) => {
6308 +
6309 +function _isNativeReflectConstruct() {
6310 + if (typeof Reflect === "undefined" || !Reflect.construct) return false;
6311 + if (Reflect.construct.sham) return false;
6312 + if (typeof Proxy === "function") return true;
6313 +
6314 + try {
6315 + Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
6316 + return true;
6317 + } catch (e) {
6318 + return false;
6319 + }
6320 +}
6321 +
6322 +module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
6323 +
6324 +/***/ }),
6325 +
6326 +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
6327 +/*!**********************************************************************!*\
6328 + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
6329 + \**********************************************************************/
6330 +/***/ ((module) => {
6331 +
6332 +function _iterableToArrayLimit(arr, i) {
6333 + var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
6334 +
6335 + if (_i == null) return;
6336 + var _arr = [];
6337 + var _n = true;
6338 + var _d = false;
6339 +
6340 + var _s, _e;
6341 +
6342 + try {
6343 + for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
6344 + _arr.push(_s.value);
6345 +
6346 + if (i && _arr.length === i) break;
6347 + }
6348 + } catch (err) {
6349 + _d = true;
6350 + _e = err;
6351 + } finally {
6352 + try {
6353 + if (!_n && _i["return"] != null) _i["return"]();
6354 + } finally {
6355 + if (_d) throw _e;
6356 + }
6357 + }
6358 +
6359 + return _arr;
6360 +}
6361 +
6362 +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
6363 +
6364 +/***/ }),
6365 +
6366 +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
6367 +/*!*****************************************************************!*\
6368 + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
6369 + \*****************************************************************/
6370 +/***/ ((module) => {
6371 +
6372 +function _nonIterableRest() {
6373 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6374 +}
6375 +
6376 +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
6377 +
6378 +/***/ }),
6379 +
6380 +/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
6381 +/*!***************************************************************************!*\
6382 + !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
6383 + \***************************************************************************/
6384 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6385 +
6386 +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
6387 +
6388 +var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js");
6389 +
6390 +function _possibleConstructorReturn(self, call) {
6391 + if (call && (_typeof(call) === "object" || typeof call === "function")) {
6392 + return call;
6393 + } else if (call !== void 0) {
6394 + throw new TypeError("Derived constructors may only return object or undefined");
6395 + }
6396 +
6397 + return assertThisInitialized(self);
6398 +}
6399 +
6400 +module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
6401 +
6402 +/***/ }),
6403 +
6404 +/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js":
6405 +/*!****************************************************************!*\
6406 + !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
6407 + \****************************************************************/
6408 +/***/ ((module) => {
6409 +
6410 +function _setPrototypeOf(o, p) {
6411 + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
6412 + o.__proto__ = p;
6413 + return o;
6414 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
6415 + return _setPrototypeOf(o, p);
6416 +}
6417 +
6418 +module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
6419 +
6420 +/***/ }),
6421 +
6422 +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
6423 +/*!***************************************************************!*\
6424 + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
6425 + \***************************************************************/
6426 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6427 +
6428 +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
6429 +
6430 +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
6431 +
6432 +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
6433 +
6434 +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
6435 +
6436 +function _slicedToArray(arr, i) {
6437 + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
6438 +}
6439 +
6440 +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
6441 +
6442 +/***/ }),
6443 +
6444 +/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js":
6445 +/*!***************************************************************!*\
6446 + !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***!
6447 + \***************************************************************/
6448 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6449 +
6450 +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
6451 +
6452 +function _superPropBase(object, property) {
6453 + while (!Object.prototype.hasOwnProperty.call(object, property)) {
6454 + object = getPrototypeOf(object);
6455 + if (object === null) break;
6456 + }
6457 +
6458 + return object;
6459 +}
6460 +
6461 +module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
6462 +
6463 +/***/ }),
6464 +
6465 +/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
6466 +/*!********************************************************!*\
6467 + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
6468 + \********************************************************/
6469 +/***/ ((module) => {
6470 +
6471 +function _typeof(obj) {
6472 + "@babel/helpers - typeof";
6473 +
6474 + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
6475 + return typeof obj;
6476 + } : function (obj) {
6477 + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
6478 + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
6479 +}
6480 +
6481 +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
6482 +
6483 +/***/ }),
6484 +
6485 +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
6486 +/*!****************************************************************************!*\
6487 + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
6488 + \****************************************************************************/
6489 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6490 +
6491 +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
6492 +
6493 +function _unsupportedIterableToArray(o, minLen) {
6494 + if (!o) return;
6495 + if (typeof o === "string") return arrayLikeToArray(o, minLen);
6496 + var n = Object.prototype.toString.call(o).slice(8, -1);
6497 + if (n === "Object" && o.constructor) n = o.constructor.name;
6498 + if (n === "Map" || n === "Set") return Array.from(o);
6499 + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
6500 +}
6501 +
6502 +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
6503 +
6504 +/***/ }),
6505 +
6506 +/***/ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js":
6507 +/*!*****************************************************************!*\
6508 + !*** ../node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
6509 + \*****************************************************************/
6510 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6511 +
6512 +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
6513 +
6514 +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
6515 +
6516 +var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime/helpers/isNativeFunction.js");
6517 +
6518 +var construct = __webpack_require__(/*! ./construct.js */ "../node_modules/@babel/runtime/helpers/construct.js");
6519 +
6520 +function _wrapNativeSuper(Class) {
6521 + var _cache = typeof Map === "function" ? new Map() : undefined;
6522 +
6523 + module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
6524 + if (Class === null || !isNativeFunction(Class)) return Class;
6525 +
6526 + if (typeof Class !== "function") {
6527 + throw new TypeError("Super expression must either be null or a function");
6528 + }
6529 +
6530 + if (typeof _cache !== "undefined") {
6531 + if (_cache.has(Class)) return _cache.get(Class);
6532 +
6533 + _cache.set(Class, Wrapper);
6534 + }
6535 +
6536 + function Wrapper() {
6537 + return construct(Class, arguments, getPrototypeOf(this).constructor);
6538 + }
6539 +
6540 + Wrapper.prototype = Object.create(Class.prototype, {
6541 + constructor: {
6542 + value: Wrapper,
6543 + enumerable: false,
6544 + writable: true,
6545 + configurable: true
6546 + }
6547 + });
6548 + return setPrototypeOf(Wrapper, Class);
6549 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
6550 + return _wrapNativeSuper(Class);
6551 +}
6552 +
6553 +module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
6554 +
6555 +/***/ }),
6556 +
6557 +/***/ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js":
6558 +/*!********************************************************************!*\
6559 + !*** ../node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
6560 + \********************************************************************/
6561 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
6562 +
6563 +"use strict";
6564 +__webpack_require__.r(__webpack_exports__);
6565 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
6566 +/* harmony export */ "default": () => (/* binding */ _defineProperty)
6567 +/* harmony export */ });
6568 +function _defineProperty(obj, key, value) {
6569 + if (key in obj) {
6570 + Object.defineProperty(obj, key, {
6571 + value: value,
6572 + enumerable: true,
6573 + configurable: true,
6574 + writable: true
6575 + });
6576 + } else {
6577 + obj[key] = value;
6578 + }
6579 +
6580 + return obj;
6581 +}
6582 +
6583 +/***/ }),
6584 +
6585 +/***/ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js":
6586 +/*!*******************************************************************!*\
6587 + !*** ../node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***!
6588 + \*******************************************************************/
6589 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
6590 +
6591 +"use strict";
6592 +__webpack_require__.r(__webpack_exports__);
6593 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
6594 +/* harmony export */ "default": () => (/* binding */ _objectSpread2)
6595 +/* harmony export */ });
6596 +/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js");
6597 +
6598 +
6599 +function ownKeys(object, enumerableOnly) {
6600 + var keys = Object.keys(object);
6601 +
6602 + if (Object.getOwnPropertySymbols) {
6603 + var symbols = Object.getOwnPropertySymbols(object);
6604 + enumerableOnly && (symbols = symbols.filter(function (sym) {
6605 + return Object.getOwnPropertyDescriptor(object, sym).enumerable;
6606 + })), keys.push.apply(keys, symbols);
6607 + }
6608 +
6609 + return keys;
6610 +}
6611 +
6612 +function _objectSpread2(target) {
6613 + for (var i = 1; i < arguments.length; i++) {
6614 + var source = null != arguments[i] ? arguments[i] : {};
6615 + i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
6616 + (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]);
6617 + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
6618 + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6619 + });
6620 + }
6621 +
6622 + return target;
6623 +}
6624 +
6625 +/***/ }),
6626 +
6627 +/***/ "../node_modules/immer/dist/immer.esm.mjs":
6628 +/*!************************************************!*\
6629 + !*** ../node_modules/immer/dist/immer.esm.mjs ***!
6630 + \************************************************/
6631 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
6632 +
6633 +"use strict";
6634 +__webpack_require__.r(__webpack_exports__);
6635 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
6636 +/* harmony export */ "Immer": () => (/* binding */ un),
6637 +/* harmony export */ "applyPatches": () => (/* binding */ pn),
6638 +/* harmony export */ "castDraft": () => (/* binding */ K),
6639 +/* harmony export */ "castImmutable": () => (/* binding */ $),
6640 +/* harmony export */ "createDraft": () => (/* binding */ ln),
6641 +/* harmony export */ "current": () => (/* binding */ D),
6642 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
6643 +/* harmony export */ "enableAllPlugins": () => (/* binding */ J),
6644 +/* harmony export */ "enableES5": () => (/* binding */ N),
6645 +/* harmony export */ "enableMapSet": () => (/* binding */ C),
6646 +/* harmony export */ "enablePatches": () => (/* binding */ T),
6647 +/* harmony export */ "finishDraft": () => (/* binding */ dn),
6648 +/* harmony export */ "freeze": () => (/* binding */ d),
6649 +/* harmony export */ "immerable": () => (/* binding */ L),
6650 +/* harmony export */ "isDraft": () => (/* binding */ r),
6651 +/* harmony export */ "isDraftable": () => (/* binding */ t),
6652 +/* harmony export */ "nothing": () => (/* binding */ H),
6653 +/* harmony export */ "original": () => (/* binding */ e),
6654 +/* harmony export */ "produce": () => (/* binding */ fn),
6655 +/* harmony export */ "produceWithPatches": () => (/* binding */ cn),
6656 +/* harmony export */ "setAutoFreeze": () => (/* binding */ sn),
6657 +/* harmony export */ "setUseProxies": () => (/* binding */ vn)
6658 +/* harmony export */ });
6659 +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){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]||!!n.constructor[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);
6660 +//# sourceMappingURL=immer.esm.js.map
6661 +
6662 +
6663 +/***/ })
6664 +
6665 +/******/ });
6666 +/************************************************************************/
6667 +/******/ // The module cache
6668 +/******/ var __webpack_module_cache__ = {};
6669 +/******/
6670 +/******/ // The require function
6671 +/******/ function __webpack_require__(moduleId) {
6672 +/******/ // Check if module is in cache
6673 +/******/ var cachedModule = __webpack_module_cache__[moduleId];
6674 +/******/ if (cachedModule !== undefined) {
6675 +/******/ return cachedModule.exports;
6676 +/******/ }
6677 +/******/ // Create a new module (and put it into the cache)
6678 +/******/ var module = __webpack_module_cache__[moduleId] = {
6679 +/******/ // no module.id needed
6680 +/******/ // no module.loaded needed
6681 +/******/ exports: {}
6682 +/******/ };
6683 +/******/
6684 +/******/ // Execute the module function
6685 +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
6686 +/******/
6687 +/******/ // Return the exports of the module
6688 +/******/ return module.exports;
6689 +/******/ }
6690 +/******/
6691 +/************************************************************************/
6692 +/******/ /* webpack/runtime/define property getters */
6693 +/******/ (() => {
6694 +/******/ // define getter functions for harmony exports
6695 +/******/ __webpack_require__.d = (exports, definition) => {
6696 +/******/ for(var key in definition) {
6697 +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
6698 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
6699 +/******/ }
6700 +/******/ }
6701 +/******/ };
6702 +/******/ })();
6703 +/******/
6704 +/******/ /* webpack/runtime/hasOwnProperty shorthand */
6705 +/******/ (() => {
6706 +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
6707 +/******/ })();
6708 +/******/
6709 +/******/ /* webpack/runtime/make namespace object */
6710 +/******/ (() => {
6711 +/******/ // define __esModule on exports
6712 +/******/ __webpack_require__.r = (exports) => {
6713 +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
6714 +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6715 +/******/ }
6716 +/******/ Object.defineProperty(exports, '__esModule', { value: true });
6717 +/******/ };
6718 +/******/ })();
6719 +/******/
6720 +/************************************************************************/
6721 +var __webpack_exports__ = {};
6722 +// This entry need to be wrapped in an IIFE because it need to be in strict mode.
6723 +(() => {
6724 +"use strict";
6725 +/*!*******************************************!*\
6726 + !*** ../core/common/assets/js/modules.js ***!
6727 + \*******************************************/
6728 +
6729 +
6730 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
6731 +
6732 +var _modules = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/modules */ "../assets/dev/js/modules/modules.js"));
6733 +
6734 +var _layout = _interopRequireDefault(__webpack_require__(/*! ./views/modal/layout */ "../core/common/assets/js/views/modal/layout.js"));
6735 +
6736 +var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../modules/web-cli/assets/js/modules/component-base.js"));
6737 +
6738 +var _componentModalBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-modal-base */ "../modules/web-cli/assets/js/modules/component-modal-base.js"));
6739 +
6740 +var _hookBreak = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hook-break */ "../modules/web-cli/assets/js/modules/hook-break.js"));
6741 +
6742 +_modules.default.common = {
6743 + get Component() {
6744 + // `elementorCommon` isn't available during it self initialize.
6745 + setTimeout(function () {
6746 + elementorDevTools.deprecation.deprecated('elementorModules.common.Component', '2.9.0', '$e.modules.ComponentBase');
6747 + }, 2000);
6748 + return _componentBase.default;
6749 + },
6750 +
6751 + get ComponentModal() {
6752 + // `elementorCommon` isn't available during it self initialize.
6753 + setTimeout(function () {
6754 + elementorDevTools.deprecation.deprecated('elementorModules.common.ComponentModal', '2.9.0', '$e.modules.ComponentModalBase');
6755 + }, 2000);
6756 + return _componentModalBase.default;
6757 + },
6758 +
6759 + get HookBreak() {
6760 + // `elementorCommon` isn't available during it self initialize.
6761 + setTimeout(function () {
6762 + elementorDevTools.deprecation.deprecated('elementorModules.common.HookBreak', '2.9.0', '$e.modules.HookBreak');
6763 + }, 2000);
6764 + return _hookBreak.default;
6765 + },
6766 +
6767 + views: {
6768 + modal: {
6769 + Layout: _layout.default
6770 + }
6771 + }
6772 +};
6773 +})();
6774 +
6775 +/******/ })()
6776 +;
2621 6777 //# sourceMappingURL=common-modules.js.map