PluginProbe
Elementor Website Builder – more than just a page builder / 3.6.7
Elementor Website Builder – more than just a page builder v3.6.7
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 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | assets/js/editor-modules.js +1234 -1371 4.1.0-dev23.6.7 View file →
@@ -1,7 +1,524 @@
1 +/*! elementor - v3.6.7 - 03-07-2022 */
1 2 /******/ (() => { // webpackBootstrap
2 3 /******/ var __webpack_modules__ = ({
3 4
5 +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
6 +/*!******************************************************************!*\
7 + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
8 + \******************************************************************/
9 +/***/ ((module) => {
10 +
11 +function _arrayLikeToArray(arr, len) {
12 + if (len == null || len > arr.length) len = arr.length;
13 +
14 + for (var i = 0, arr2 = new Array(len); i < len; i++) {
15 + arr2[i] = arr[i];
16 + }
17 +
18 + return arr2;
19 +}
20 +
21 +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
22 +
23 +/***/ }),
24 +
25 +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
26 +/*!****************************************************************!*\
27 + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
28 + \****************************************************************/
29 +/***/ ((module) => {
30 +
31 +function _arrayWithHoles(arr) {
32 + if (Array.isArray(arr)) return arr;
33 +}
34 +
35 +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
36 +
37 +/***/ }),
38 +
39 +/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js":
40 +/*!***********************************************************************!*\
41 + !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
42 + \***********************************************************************/
43 +/***/ ((module) => {
44 +
45 +function _assertThisInitialized(self) {
46 + if (self === void 0) {
47 + throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
48 + }
49 +
50 + return self;
51 +}
52 +
53 +module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
54 +
55 +/***/ }),
56 +
57 +/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
58 +/*!****************************************************************!*\
59 + !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
60 + \****************************************************************/
61 +/***/ ((module) => {
62 +
63 +function _classCallCheck(instance, Constructor) {
64 + if (!(instance instanceof Constructor)) {
65 + throw new TypeError("Cannot call a class as a function");
66 + }
67 +}
68 +
69 +module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
70 +
71 +/***/ }),
72 +
73 +/***/ "../node_modules/@babel/runtime/helpers/construct.js":
74 +/*!***********************************************************!*\
75 + !*** ../node_modules/@babel/runtime/helpers/construct.js ***!
76 + \***********************************************************/
77 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
78 +
79 +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
80 +
81 +var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js");
82 +
83 +function _construct(Parent, args, Class) {
84 + if (isNativeReflectConstruct()) {
85 + module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
86 + } else {
87 + module.exports = _construct = function _construct(Parent, args, Class) {
88 + var a = [null];
89 + a.push.apply(a, args);
90 + var Constructor = Function.bind.apply(Parent, a);
91 + var instance = new Constructor();
92 + if (Class) setPrototypeOf(instance, Class.prototype);
93 + return instance;
94 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
95 + }
96 +
97 + return _construct.apply(null, arguments);
98 +}
99 +
100 +module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
101 +
102 +/***/ }),
103 +
104 +/***/ "../node_modules/@babel/runtime/helpers/createClass.js":
105 +/*!*************************************************************!*\
106 + !*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
107 + \*************************************************************/
108 +/***/ ((module) => {
109 +
110 +function _defineProperties(target, props) {
111 + for (var i = 0; i < props.length; i++) {
112 + var descriptor = props[i];
113 + descriptor.enumerable = descriptor.enumerable || false;
114 + descriptor.configurable = true;
115 + if ("value" in descriptor) descriptor.writable = true;
116 + Object.defineProperty(target, descriptor.key, descriptor);
117 + }
118 +}
119 +
120 +function _createClass(Constructor, protoProps, staticProps) {
121 + if (protoProps) _defineProperties(Constructor.prototype, protoProps);
122 + if (staticProps) _defineProperties(Constructor, staticProps);
123 + Object.defineProperty(Constructor, "prototype", {
124 + writable: false
125 + });
126 + return Constructor;
127 +}
128 +
129 +module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
130 +
131 +/***/ }),
132 +
133 +/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
134 +/*!****************************************************************!*\
135 + !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
136 + \****************************************************************/
137 +/***/ ((module) => {
138 +
139 +function _defineProperty(obj, key, value) {
140 + if (key in obj) {
141 + Object.defineProperty(obj, key, {
142 + value: value,
143 + enumerable: true,
144 + configurable: true,
145 + writable: true
146 + });
147 + } else {
148 + obj[key] = value;
149 + }
150 +
151 + return obj;
152 +}
153 +
154 +module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
155 +
156 +/***/ }),
157 +
158 +/***/ "../node_modules/@babel/runtime/helpers/get.js":
159 +/*!*****************************************************!*\
160 + !*** ../node_modules/@babel/runtime/helpers/get.js ***!
161 + \*****************************************************/
162 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
163 +
164 +var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js");
165 +
166 +function _get() {
167 + if (typeof Reflect !== "undefined" && Reflect.get) {
168 + module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
169 + } else {
170 + module.exports = _get = function _get(target, property, receiver) {
171 + var base = superPropBase(target, property);
172 + if (!base) return;
173 + var desc = Object.getOwnPropertyDescriptor(base, property);
174 +
175 + if (desc.get) {
176 + return desc.get.call(arguments.length < 3 ? target : receiver);
177 + }
178 +
179 + return desc.value;
180 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
181 + }
182 +
183 + return _get.apply(this, arguments);
184 +}
185 +
186 +module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
187 +
188 +/***/ }),
189 +
190 +/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js":
191 +/*!****************************************************************!*\
192 + !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
193 + \****************************************************************/
194 +/***/ ((module) => {
195 +
196 +function _getPrototypeOf(o) {
197 + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
198 + return o.__proto__ || Object.getPrototypeOf(o);
199 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
200 + return _getPrototypeOf(o);
201 +}
202 +
203 +module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
204 +
205 +/***/ }),
206 +
207 +/***/ "../node_modules/@babel/runtime/helpers/inherits.js":
208 +/*!**********************************************************!*\
209 + !*** ../node_modules/@babel/runtime/helpers/inherits.js ***!
210 + \**********************************************************/
211 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
212 +
213 +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
214 +
215 +function _inherits(subClass, superClass) {
216 + if (typeof superClass !== "function" && superClass !== null) {
217 + throw new TypeError("Super expression must either be null or a function");
218 + }
219 +
220 + subClass.prototype = Object.create(superClass && superClass.prototype, {
221 + constructor: {
222 + value: subClass,
223 + writable: true,
224 + configurable: true
225 + }
226 + });
227 + Object.defineProperty(subClass, "prototype", {
228 + writable: false
229 + });
230 + if (superClass) setPrototypeOf(subClass, superClass);
231 +}
232 +
233 +module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
234 +
235 +/***/ }),
236 +
237 +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
238 +/*!***********************************************************************!*\
239 + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
240 + \***********************************************************************/
241 +/***/ ((module) => {
242 +
243 +function _interopRequireDefault(obj) {
244 + return obj && obj.__esModule ? obj : {
245 + "default": obj
246 + };
247 +}
248 +
249 +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
250 +
251 +/***/ }),
252 +
253 +/***/ "../node_modules/@babel/runtime/helpers/isNativeFunction.js":
254 +/*!******************************************************************!*\
255 + !*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
256 + \******************************************************************/
257 +/***/ ((module) => {
258 +
259 +function _isNativeFunction(fn) {
260 + return Function.toString.call(fn).indexOf("[native code]") !== -1;
261 +}
262 +
263 +module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
264 +
265 +/***/ }),
266 +
267 +/***/ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js":
268 +/*!**************************************************************************!*\
269 + !*** ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
270 + \**************************************************************************/
271 +/***/ ((module) => {
272 +
273 +function _isNativeReflectConstruct() {
274 + if (typeof Reflect === "undefined" || !Reflect.construct) return false;
275 + if (Reflect.construct.sham) return false;
276 + if (typeof Proxy === "function") return true;
277 +
278 + try {
279 + Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
280 + return true;
281 + } catch (e) {
282 + return false;
283 + }
284 +}
285 +
286 +module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
287 +
288 +/***/ }),
289 +
290 +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
291 +/*!**********************************************************************!*\
292 + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
293 + \**********************************************************************/
294 +/***/ ((module) => {
295 +
296 +function _iterableToArrayLimit(arr, i) {
297 + var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
298 +
299 + if (_i == null) return;
300 + var _arr = [];
301 + var _n = true;
302 + var _d = false;
303 +
304 + var _s, _e;
305 +
306 + try {
307 + for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
308 + _arr.push(_s.value);
309 +
310 + if (i && _arr.length === i) break;
311 + }
312 + } catch (err) {
313 + _d = true;
314 + _e = err;
315 + } finally {
316 + try {
317 + if (!_n && _i["return"] != null) _i["return"]();
318 + } finally {
319 + if (_d) throw _e;
320 + }
321 + }
322 +
323 + return _arr;
324 +}
325 +
326 +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
327 +
328 +/***/ }),
329 +
330 +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
331 +/*!*****************************************************************!*\
332 + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
333 + \*****************************************************************/
334 +/***/ ((module) => {
335 +
336 +function _nonIterableRest() {
337 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
338 +}
339 +
340 +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
341 +
342 +/***/ }),
343 +
344 +/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
345 +/*!***************************************************************************!*\
346 + !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
347 + \***************************************************************************/
348 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
349 +
350 +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
351 +
352 +var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js");
353 +
354 +function _possibleConstructorReturn(self, call) {
355 + if (call && (_typeof(call) === "object" || typeof call === "function")) {
356 + return call;
357 + } else if (call !== void 0) {
358 + throw new TypeError("Derived constructors may only return object or undefined");
359 + }
360 +
361 + return assertThisInitialized(self);
362 +}
363 +
364 +module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
365 +
366 +/***/ }),
367 +
368 +/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js":
369 +/*!****************************************************************!*\
370 + !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
371 + \****************************************************************/
372 +/***/ ((module) => {
373 +
374 +function _setPrototypeOf(o, p) {
375 + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
376 + o.__proto__ = p;
377 + return o;
378 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
379 + return _setPrototypeOf(o, p);
380 +}
381 +
382 +module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
383 +
384 +/***/ }),
385 +
386 +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
387 +/*!***************************************************************!*\
388 + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
389 + \***************************************************************/
390 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
391 +
392 +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
393 +
394 +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
395 +
396 +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
397 +
398 +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
399 +
400 +function _slicedToArray(arr, i) {
401 + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
402 +}
403 +
404 +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
405 +
406 +/***/ }),
407 +
408 +/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js":
409 +/*!***************************************************************!*\
410 + !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***!
411 + \***************************************************************/
412 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
413 +
414 +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
415 +
416 +function _superPropBase(object, property) {
417 + while (!Object.prototype.hasOwnProperty.call(object, property)) {
418 + object = getPrototypeOf(object);
419 + if (object === null) break;
420 + }
421 +
422 + return object;
423 +}
424 +
425 +module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
426 +
427 +/***/ }),
428 +
429 +/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
430 +/*!********************************************************!*\
431 + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
432 + \********************************************************/
433 +/***/ ((module) => {
434 +
435 +function _typeof(obj) {
436 + "@babel/helpers - typeof";
437 +
438 + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
439 + return typeof obj;
440 + } : function (obj) {
441 + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
442 + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
443 +}
444 +
445 +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
446 +
447 +/***/ }),
448 +
449 +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
450 +/*!****************************************************************************!*\
451 + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
452 + \****************************************************************************/
453 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
454 +
455 +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
456 +
457 +function _unsupportedIterableToArray(o, minLen) {
458 + if (!o) return;
459 + if (typeof o === "string") return arrayLikeToArray(o, minLen);
460 + var n = Object.prototype.toString.call(o).slice(8, -1);
461 + if (n === "Object" && o.constructor) n = o.constructor.name;
462 + if (n === "Map" || n === "Set") return Array.from(o);
463 + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
464 +}
465 +
466 +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
467 +
468 +/***/ }),
469 +
470 +/***/ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js":
471 +/*!*****************************************************************!*\
472 + !*** ../node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
473 + \*****************************************************************/
474 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
475 +
476 +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
477 +
478 +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
479 +
480 +var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime/helpers/isNativeFunction.js");
481 +
482 +var construct = __webpack_require__(/*! ./construct.js */ "../node_modules/@babel/runtime/helpers/construct.js");
483 +
484 +function _wrapNativeSuper(Class) {
485 + var _cache = typeof Map === "function" ? new Map() : undefined;
486 +
487 + module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
488 + if (Class === null || !isNativeFunction(Class)) return Class;
489 +
490 + if (typeof Class !== "function") {
491 + throw new TypeError("Super expression must either be null or a function");
492 + }
493 +
494 + if (typeof _cache !== "undefined") {
495 + if (_cache.has(Class)) return _cache.get(Class);
496 +
497 + _cache.set(Class, Wrapper);
498 + }
499 +
500 + function Wrapper() {
501 + return construct(Class, arguments, getPrototypeOf(this).constructor);
502 + }
503 +
504 + Wrapper.prototype = Object.create(Class.prototype, {
505 + constructor: {
506 + value: Wrapper,
507 + enumerable: false,
508 + writable: true,
509 + configurable: true
510 + }
511 + });
512 + return setPrototypeOf(Wrapper, Class);
513 + }, module.exports.__esModule = true, module.exports["default"] = module.exports;
514 + return _wrapNativeSuper(Class);
515 +}
516 +
517 +module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
518 +
519 +/***/ }),
520 +
4 521 /***/ "../assets/dev/js/editor/container/container.js":
5 522 /*!******************************************************!*\
6 523 !*** ../assets/dev/js/editor/container/container.js ***!
7 524 \******************************************************/
@@ -11,41 +528,171 @@
11 528 /* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
12 529
13 530
14 531 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
532 +
15 533 Object.defineProperty(exports, "__esModule", ({
16 534 value: true
17 535 }));
18 536 exports["default"] = void 0;
19 -var _readOnlyError2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/readOnlyError */ "../node_modules/@babel/runtime/helpers/readOnlyError.js"));
537 +
20 538 var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
539 +
21 540 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
541 +
22 542 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
543 +
23 544 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
545 +
546 +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"));
547 +
548 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
549 +
24 550 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
551 +
25 552 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
26 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
553 +
27 554 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
555 +
28 556 var _argsObject = _interopRequireDefault(__webpack_require__(/*! ../../modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js"));
557 +
29 558 var _panel = _interopRequireDefault(__webpack_require__(/*! ./panel */ "../assets/dev/js/editor/container/panel.js"));
559 +
30 560 var _childrenArray = _interopRequireDefault(__webpack_require__(/*! ./model/children-array */ "../assets/dev/js/editor/container/model/children-array.js"));
31 -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
32 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
561 +
562 +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); }; }
563 +
564 +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; } }
565 +
33 566 /**
34 567 * @typedef {import('../../../../lib/backbone/backbone.marionette')} Backbone
568 + */
569 +
570 +/**
35 571 * @typedef {import('../../../../lib/backbone/backbone.marionette')} Marionette
572 + */
573 +
574 +/**
36 575 * @typedef {import('../elements/views/base')} BaseElementView
576 + */
577 +
578 +/**
37 579 * @typedef {import('../elements/views/section')} SectionView
580 + */
581 +
582 +/**
38 583 * @typedef {import('../views/base-container')} BaseContainer
39 - * @typedef {import('../elements/models/base-element-model')} BaseElementModel
40 584 */
585 +
41 586 /**
42 587 * TODO: ViewsOptions
43 588 *
44 589 * @typedef {(Marionette.View|Marionette.CompositeView|BaseElementView|SectionView|BaseContainer)} ViewsOptions
45 590 */
46 -var Container = exports["default"] = /*#__PURE__*/function (_ArgsObject) {
591 +var Container = /*#__PURE__*/function (_ArgsObject) {
592 + (0, _inherits2.default)(Container, _ArgsObject);
593 +
594 + var _super = _createSuper(Container);
595 +
596 + // TODO: Swap those backwards compatibility is required.
597 +
47 598 /**
599 + * Container type.
600 + *
601 + * @type {string}
602 + */
603 +
604 + /**
605 + * Container id.
606 + *
607 + * @type {string}
608 + */
609 +
610 + /**
611 + * Document Object.
612 + *
613 + * @type {{}}
614 + */
615 +
616 + /**
617 + * Container model.
618 + *
619 + * @type {Backbone.Model}
620 + */
621 +
622 + /**
623 + * Container settings.
624 + *
625 + * @type {Backbone.Model}
626 + */
627 +
628 + /**
629 + * Container view.
630 + *
631 + * @type {ViewsOptions}
632 + */
633 +
634 + /**
635 + * Container parent.
636 + *
637 + * @type {Container}
638 + */
639 +
640 + /**
641 + * Container children(s).
642 + *
643 + * @type {ChildrenArray}
644 + */
645 +
646 + /**
647 + * Container dynamic.
648 + *
649 + * @type {Backbone.Model}
650 + */
651 +
652 + /**
653 + * Container globals.
654 + *
655 + * @type {Backbone.Model}
656 + */
657 +
658 + /**
659 + * Container label.
660 + *
661 + * @type {string}
662 + */
663 +
664 + /**
665 + * Container controls.
666 + *
667 + * @type {{}}
668 + */
669 +
670 + /**
671 + * Repeaters containers
672 + *
673 + * @type {{}}
674 + */
675 +
676 + /**
677 + * Container renderer (The one who render).
678 + *
679 + * @type {Container}
680 + */
681 +
682 + /**
683 + * Container panel.
684 + *
685 + * @type {Panel}
686 + */
687 +
688 + /**
689 + * Controls placeholders.
690 + *
691 + * @type {{}}
692 + */
693 +
694 + /**
48 695 * Function constructor().
49 696 *
50 697 * Create container.
51 698 *
@@ -54,137 +701,64 @@
54 701 * @throws {Error}
55 702 */
56 703 function Container(args) {
57 704 var _this;
705 +
58 706 (0, _classCallCheck2.default)(this, Container);
59 - _this = _callSuper(this, Container, [args]);
707 + _this = _super.call(this, args); // Validate args.
60 708
61 - // Validate args.
62 - /**
63 - * Container type.
64 - *
65 - * @type {string}
66 - */
67 - (0, _defineProperty2.default)(_this, "type", void 0);
68 - /**
69 - * Container id.
70 - *
71 - * @type {string}
72 - */
73 - (0, _defineProperty2.default)(_this, "id", void 0);
74 - /**
75 - * Document Object.
76 - *
77 - * @type {{}}
78 - */
79 - (0, _defineProperty2.default)(_this, "document", void 0);
80 - /**
81 - * Container model.
82 - *
83 - * @type {(Backbone.Model|BaseElementModel)}
84 - */
85 - (0, _defineProperty2.default)(_this, "model", void 0);
86 - /**
87 - * Container settings.
88 - *
89 - * @type {Backbone.Model}
90 - */
91 - (0, _defineProperty2.default)(_this, "settings", void 0);
92 - /**
93 - * Container view.
94 - *
95 - * @type {ViewsOptions}
96 - */
97 - (0, _defineProperty2.default)(_this, "view", void 0);
98 - /**
99 - * Container parent.
100 - *
101 - * @type {Container}
102 - */
103 - (0, _defineProperty2.default)(_this, "parent", void 0);
104 - /**
105 - * Container children(s).
106 - *
107 - * @type {ChildrenArray}
108 - */
109 - (0, _defineProperty2.default)(_this, "children", new _childrenArray.default());
110 - /**
111 - * Container dynamic.
112 - *
113 - * @type {Backbone.Model}
114 - */
115 - (0, _defineProperty2.default)(_this, "dynamic", void 0);
116 - /**
117 - * Container globals.
118 - *
119 - * @type {Backbone.Model}
120 - */
121 - (0, _defineProperty2.default)(_this, "globals", void 0);
122 - /**
123 - * Container label.
124 - *
125 - * @type {string}
126 - */
127 - (0, _defineProperty2.default)(_this, "label", void 0);
128 - /**
129 - * Container controls.
130 - *
131 - * @type {{}}
132 - */
133 - (0, _defineProperty2.default)(_this, "controls", {});
134 - /**
135 - * Repeaters containers
136 - *
137 - * @type {{}}
138 - */
139 - (0, _defineProperty2.default)(_this, "repeaters", {});
140 - /**
141 - * Container renderer (The one who render).
142 - *
143 - * @type {Container}
144 - */
145 - (0, _defineProperty2.default)(_this, "renderer", void 0);
146 - /**
147 - * Container panel.
148 - *
149 - * @type {Panel}
150 - */
151 - (0, _defineProperty2.default)(_this, "panel", void 0);
152 - /**
153 - * Controls placeholders.
154 - *
155 - * @type {{}}
156 - */
157 - (0, _defineProperty2.default)(_this, "placeholders", {});
709 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "type", void 0);
710 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "id", void 0);
711 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "document", void 0);
712 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "model", void 0);
713 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "settings", void 0);
714 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "view", void 0);
715 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "parent", void 0);
716 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "children", new _childrenArray.default());
717 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "dynamic", void 0);
718 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "globals", void 0);
719 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "label", void 0);
720 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "controls", {});
721 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "repeaters", {});
722 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderer", void 0);
723 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "panel", void 0);
724 + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "placeholders", {});
725 +
158 726 _this.validateArgs(args);
159 - args = Object.entries(args);
160 727
161 - // If empty.
728 + args = Object.entries(args); // If empty.
729 +
162 730 if (0 === args.length) {
163 731 throw Error('Container cannot be empty.');
164 - }
732 + } // Set properties, if not defined - keep the defaults.
165 733
166 - // Set properties, if not defined - keep the defaults.
734 +
167 735 args.forEach(function (_ref) {
168 736 var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
169 - key = _ref2[0],
170 - value = _ref2[1];
737 + key = _ref2[0],
738 + value = _ref2[1];
739 +
171 740 _this[key] = 'undefined' === typeof value ? _this[key] : value;
172 741 });
742 +
173 743 if ('undefined' === typeof _this.renderer) {
174 - _this.renderer = _this;
744 + _this.renderer = (0, _assertThisInitialized2.default)(_this);
175 745 }
746 +
176 747 if (!_this.document) {
177 748 _this.document = elementor.documents.getCurrent();
178 749 }
750 +
179 751 _this.dynamic = new Backbone.Model(_this.settings.get('__dynamic__'));
180 752 _this.globals = new Backbone.Model(_this.settings.get('__globals__'));
181 - _this.panel = new _panel.default(_this);
753 + _this.panel = new _panel.default((0, _assertThisInitialized2.default)(_this));
754 +
182 755 _this.initialize();
756 +
183 757 return _this;
184 758 }
185 - (0, _inherits2.default)(Container, _ArgsObject);
186 - return (0, _createClass2.default)(Container, [{
759 +
760 + (0, _createClass2.default)(Container, [{
187 761 key: "initialize",
188 762 value: function initialize() {
189 763 if (this.isViewElement()) {
190 764 this.addToParent();
@@ -190,8 +764,9 @@
190 764 this.addToParent();
191 765 this.handleChildrenRecursive();
192 766 this.view.on('destroy', this.removeFromParent.bind(this));
193 767 }
768 +
194 769 this.handleRepeaterChildren();
195 770 }
196 771 }, {
197 772 key: "validateArgs",
@@ -199,15 +774,9 @@
199 774 this.requireArgumentType('type', 'string', args);
200 775 this.requireArgumentType('id', 'string', args);
201 776 this.requireArgumentInstance('settings', Backbone.Model, args);
202 777 this.requireArgumentInstance('model', Backbone.Model, args);
203 -
204 - // Require it, unless it's forced to be `false`.
205 - if (false !== args.parent) {
206 - this.requireArgumentInstance('parent', elementorModules.editor.Container, args);
207 - }
208 778 }
209 -
210 779 /**
211 780 * Function getGroupRelatedControls().
212 781 *
213 782 * Example:
@@ -218,20 +787,24 @@
218 787 * @param {{}} settings
219 788 *
220 789 * @return {{}} result
221 790 */
791 +
222 792 }, {
223 793 key: "getGroupRelatedControls",
224 794 value: function getGroupRelatedControls(settings) {
225 795 var _this2 = this;
796 +
226 797 var result = {};
227 798 Object.keys(settings).forEach(function (settingKey) {
228 799 Object.values(_this2.controls).forEach(function (control) {
229 800 var _this2$controls$setti;
801 +
230 802 if (settingKey === control.name) {
231 803 result[control.name] = control;
232 804 } else if ((_this2$controls$setti = _this2.controls[settingKey]) !== null && _this2$controls$setti !== void 0 && _this2$controls$setti.groupPrefix) {
233 805 var groupPrefix = _this2.controls[settingKey].groupPrefix;
806 +
234 807 if (control.name.toString().startsWith(groupPrefix)) {
235 808 result[control.name] = control;
236 809 }
237 810 }
@@ -238,27 +811,31 @@
238 811 });
239 812 });
240 813 return result;
241 814 }
242 -
243 815 /**
244 816 * Function getAffectingControls().
245 817 *
246 - * @return {{}} All controls that effecting the container.
818 + * Should return all controls that effecting the container.
247 819 */
820 +
248 821 }, {
249 822 key: "getAffectingControls",
250 823 value: function getAffectingControls() {
251 824 var _this3 = this;
825 +
252 826 var result = {},
253 - activeControls = this.settings.getActiveControls();
827 + activeControls = this.settings.getActiveControls();
254 828 Object.entries(activeControls).forEach(function (_ref3) {
255 829 var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
256 - controlName = _ref4[0],
257 - control = _ref4[1];
830 + controlName = _ref4[0],
831 + control = _ref4[1];
832 +
258 833 var controlValue = _this3.settings.get(control.name);
834 +
259 835 if (control.global && !(controlValue !== null && controlValue !== void 0 && controlValue.length)) {
260 836 var _this3$globals$get;
837 +
261 838 if ((_this3$globals$get = _this3.globals.get(control.name)) !== null && _this3$globals$get !== void 0 && _this3$globals$get.length || _this3.getGlobalDefault(controlName).length) {
262 839 control.global.utilized = true;
263 840 result[controlName] = control;
264 841 return;
@@ -263,8 +840,9 @@
263 840 result[controlName] = control;
264 841 return;
265 842 }
266 843 }
844 +
267 845 if (control.dynamic) {
268 846 if (_this3.dynamic.get(controlName)) {
269 847 control.dynamic.utilized = true;
270 848 result[controlName] = control;
@@ -270,55 +848,42 @@
270 848 result[controlName] = control;
271 849 return;
272 850 }
273 851 }
852 +
274 853 if (controlValue === control.default) {
275 854 return;
276 855 }
856 +
277 857 if (!controlValue) {
278 858 return;
279 859 }
860 +
280 861 if ('object' === (0, _typeof2.default)(controlValue) && Object.values(controlValue).join() === Object.values(control.default).join()) {
281 862 return;
282 863 }
864 +
283 865 result[controlName] = control;
284 866 });
285 867 return result;
286 868 }
287 -
288 - /**
289 - * Function getParentAncestry().
290 - *
291 - * Recursively run over all parents from current container till the top
292 - *
293 - * @return {Array.<Container>} All parent as flat array.
294 - */
295 869 }, {
296 - key: "getParentAncestry",
297 - value: function getParentAncestry() {
298 - var result = [];
299 - var parent = this;
300 - while (parent) {
301 - result.push(parent);
302 - parent = parent.parent;
303 - }
304 - return result;
305 - }
306 - }, {
307 870 key: "handleChildrenRecursive",
308 871 value: function handleChildrenRecursive() {
309 872 var _this$view$children;
873 +
310 874 if ((_this$view$children = this.view.children) !== null && _this$view$children !== void 0 && _this$view$children.length) {
311 875 Object.values(this.view.children._views).forEach(function (view) {
312 876 if (!view.container) {
313 877 return;
314 878 }
315 - var container = view.container;
316 879
317 - // Since the way 'global-widget' rendered, it does not have parent sometimes.
880 + var container = view.container; // Since the way 'global-widget' rendered, it does not have parent sometimes.
881 +
318 882 if (container.parent.children) {
319 883 container.parent.children[view._index] = container;
320 884 }
885 +
321 886 container.handleChildrenRecursive();
322 887 });
323 888 } else {
324 889 this.children.clear();
@@ -328,11 +893,11 @@
328 893 key: "addToParent",
329 894 value: function addToParent() {
330 895 if (!this.parent.children || this.isRepeaterItem()) {
331 896 return;
332 - }
897 + } // On create container tell the parent where it was created.
333 898
334 - // On create container tell the parent where it was created.
899 +
335 900 this.parent.children.splice(this.view._index, 0, this);
336 901 }
337 902 }, {
338 903 key: "removeFromParent",
@@ -337,13 +902,14 @@
337 902 }, {
338 903 key: "removeFromParent",
339 904 value: function removeFromParent() {
340 905 var _this4 = this;
906 +
341 907 if (!this.parent.children || this.isRepeater()) {
342 908 return;
343 - }
909 + } // When delete container its should notify its parent, that his children is dead.
344 910
345 - // When delete container its should notify its parent, that his children is dead.
911 +
346 912 this.parent.children = this.parent.children.filter(function (filtered) {
347 913 return filtered.id !== _this4.id;
348 914 });
349 915 }
@@ -350,12 +916,14 @@
350 916 }, {
351 917 key: "handleRepeaterChildren",
352 918 value: function handleRepeaterChildren() {
353 919 var _this5 = this;
920 +
354 921 Object.values(this.controls).forEach(function (control) {
355 922 if (!control.is_repeater) {
356 923 return;
357 924 }
925 +
358 926 var model = new Backbone.Model({
359 927 name: control.name
360 928 });
361 929 _this5.repeaters[control.name] = new elementorModules.editor.Container({
@@ -368,23 +936,24 @@
368 936 label: control.label || control.name,
369 937 controls: {},
370 938 renderer: _this5.renderer
371 939 });
940 +
372 941 _this5.settings.get(control.name).forEach(function (rowModel, index) {
373 942 _this5.addRepeaterItem(control.name, rowModel, index);
374 943 });
375 - });
944 + }); // Backwards Compatibility: if there is only one repeater (type=repeater), set it's children as current children.
945 + // Since 3.0.0.
376 946
377 - // Backwards Compatibility: if there is only one repeater (type=repeater), set it's children as current children.
378 - // Since 3.0.0.
379 947 if (['widget', 'document'].includes(this.type)) {
380 948 var repeaters = Object.values(this.controls).filter(function (control) {
381 949 return 'repeater' === control.type;
382 950 });
383 - if (!this.model.get('supportRepeaterChildren') && 1 === repeaters.length) {
951 +
952 + if (1 === repeaters.length) {
384 953 Object.defineProperty(this, 'children', {
385 954 get: function get() {
386 - elementorDevTools.deprecation.deprecated('children', '3.0.0', 'container.repeaters[ repeaterName ].children');
955 + elementorCommon.helpers.softDeprecated('children', '3.0.0', 'container.repeaters[ repeaterName ].children');
387 956 return this.repeaters[repeaters[0].name].children;
388 957 }
389 958 });
390 959 }
@@ -389,9 +958,8 @@
389 958 });
390 959 }
391 960 }
392 961 }
393 -
394 962 /**
395 963 * Function addRepeaterItem().
396 964 *
397 965 * The method add repeater item, find the repeater control by it name, and create new container for the item.
@@ -401,18 +969,19 @@
401 969 * @param {number} index
402 970 *
403 971 * @return {Container} container
404 972 */
973 +
405 974 }, {
406 975 key: "addRepeaterItem",
407 976 value: function addRepeaterItem(repeaterName, rowSettingsModel, index) {
408 - var rowId = rowSettingsModel.get('_id');
977 + var rowId = rowSettingsModel.get('_id'); // TODO: Temp backwards compatibility. since 2.8.0.
409 978
410 - // TODO: Temp backwards compatibility. since 2.8.0.
411 979 if (!rowId) {
412 980 rowId = 'bc-' + elementorCommon.helpers.getUniqueId();
413 981 rowSettingsModel.set('_id', rowId);
414 982 }
983 +
415 984 this.repeaters[repeaterName].children.splice(index, 0, new elementorModules.editor.Container({
416 985 type: Container.TYPE_REPEATER_ITEM,
417 986 id: rowSettingsModel.get('_id'),
418 987 model: new Backbone.Model({
@@ -426,9 +995,8 @@
426 995 renderer: this.renderer
427 996 }));
428 997 return this.repeaters[repeaterName];
429 998 }
430 -
431 999 /**
432 1000 * Function lookup().
433 1001 *
434 1002 * If the view were destroyed, try to find it again if it exists.
@@ -436,19 +1004,24 @@
436 1004 * TODO: Refactor.
437 1005 *
438 1006 * @return {Container} container
439 1007 */
1008 +
440 1009 }, {
441 1010 key: "lookup",
442 1011 value: function lookup() {
443 1012 var _this$renderer$view;
1013 +
444 1014 var result = this;
1015 +
445 1016 if (!this.renderer) {
446 1017 return this;
447 1018 }
1019 +
448 1020 if (this !== this.renderer && (_this$renderer$view = this.renderer.view) !== null && _this$renderer$view !== void 0 && _this$renderer$view.isDisconnected && this.renderer.view.isDisconnected()) {
449 1021 this.renderer = this.renderer.lookup();
450 1022 }
1023 +
451 1024 if (undefined === this.view || !this.view.lookup || !this.view.isDisconnected()) {
452 1025 // Hack For repeater item the result is the parent container.
453 1026 if (Container.TYPE_REPEATER_ITEM === this.type) {
454 1027 this.settings = this.parent.parent.settings.get(this.model.get('name')).findWhere({
@@ -454,52 +1027,44 @@
454 1027 this.settings = this.parent.parent.settings.get(this.model.get('name')).findWhere({
455 1028 _id: this.id
456 1029 });
457 1030 }
1031 +
458 1032 return result;
459 1033 }
1034 +
460 1035 var lookup = this.view.lookup();
1036 +
461 1037 if (lookup) {
462 - result = lookup.getContainer();
1038 + result = lookup.getContainer(); // Hack For repeater item the result is the parent container.
463 1039
464 - // Hack For repeater item the result is the parent container.
465 1040 if (Container.REPEATER === this.type) {
466 1041 this.settings = result.settings.get(this.model.get('name')).findWhere({
467 1042 _id: this.id
468 1043 });
469 1044 return this;
470 - }
1045 + } // If lookup were done, new container were created and parent does not know about it.
471 1046
472 - // If lookup were done, new container were created and parent does not know about it.
1047 +
473 1048 if (result.parent.children) {
474 1049 result.parent.children[result.view._index] = result;
475 1050 }
476 1051 }
1052 +
477 1053 return result;
478 1054 }
479 -
480 - /**
481 - * @param {Function} callback - A callback function.
482 - * @deprecated since 3.5.0, use `container.children.findRecursive( callback )` instead.
483 - */
484 1055 }, {
485 1056 key: "findChildrenRecursive",
486 1057 value: function findChildrenRecursive(callback) {
487 - elementorDevTools.deprecation.deprecated('container.findChildrenRecursive( callback )', '3.5.0', 'container.children.findRecursive( callback )');
1058 + elementorCommon.helpers.softDeprecated('container.findChildrenRecursive( callback )', '3.5.0', 'container.children.findRecursive( callback )');
488 1059 return this.children.findRecursive(callback);
489 1060 }
490 -
491 - /**
492 - * @param {Function} callback - A callback function.
493 - * @deprecated since 3.5.0, use `container.children.forEachRecursive( callback )` instead.
494 - */
495 1061 }, {
496 1062 key: "forEachChildrenRecursive",
497 1063 value: function forEachChildrenRecursive(callback) {
498 - elementorDevTools.deprecation.deprecated('container.forEachChildrenRecursive( callback )', '3.5.0', 'container.children.forEachRecursive( callback )');
1064 + elementorCommon.helpers.softDeprecated('container.forEachChildrenRecursive( callback )', '3.5.0', 'container.children.forEachRecursive( callback )');
499 1065 return this.children.forEachRecursive(callback);
500 1066 }
501 -
502 1067 /**
503 1068 * Function render().
504 1069 *
505 1070 * Call view render.
@@ -507,16 +1072,17 @@
507 1072 * Run's `this.renderer.view.renderOnChange( this.settings ) `.
508 1073 * When `this.renderer` exist.
509 1074 *
510 1075 */
1076 +
511 1077 }, {
512 1078 key: "render",
513 1079 value: function render() {
514 - var _this$view;
515 1080 if (!this.renderer) {
516 1081 return;
517 1082 }
518 - this.renderer.view.renderOnChange(this.settings, (_this$view = this.view) === null || _this$view === void 0 ? void 0 : _this$view.$el);
1083 +
1084 + this.renderer.view.renderOnChange(this.settings);
519 1085 }
520 1086 }, {
521 1087 key: "renderUI",
522 1088 value: function renderUI() {
@@ -522,15 +1088,15 @@
522 1088 value: function renderUI() {
523 1089 if (!this.renderer) {
524 1090 return;
525 1091 }
1092 +
526 1093 this.renderer.view.renderUI();
527 1094 }
528 1095 }, {
529 1096 key: "isEditable",
530 1097 value: function isEditable() {
531 - var _this$model, _this$model$get, _this$model$get$get;
532 - return 'edit' === elementor.channels.dataEditMode.request('activeMode') && 'open' === this.document.editor.status && !((_this$model = this.model) !== null && _this$model !== void 0 && (_this$model$get = _this$model.get) !== null && _this$model$get !== void 0 && (_this$model$get = _this$model$get.call(_this$model, 'editSettings')) !== null && _this$model$get !== void 0 && (_this$model$get$get = _this$model$get.get) !== null && _this$model$get$get !== void 0 && _this$model$get$get.call(_this$model$get, 'inactive'));
1098 + return 'edit' === elementor.channels.dataEditMode.request('activeMode') && 'open' === this.document.editor.status;
533 1099 }
534 1100 }, {
535 1101 key: "isDesignable",
536 1102 value: function isDesignable() {
@@ -536,22 +1102,8 @@
536 1102 value: function isDesignable() {
537 1103 return elementor.userCan('design') && this.isEditable();
538 1104 }
539 1105 }, {
540 - key: "isGridContainer",
541 - value: function isGridContainer() {
542 - return 'grid' === this.parent.settings.get('container_type');
543 - }
544 -
545 - /**
546 - * @return {boolean}
547 - */
548 - }, {
549 - key: "isLocked",
550 - value: function isLocked() {
551 - return this.model.get('isLocked');
552 - }
553 - }, {
554 1106 key: "isRepeater",
555 1107 value: function isRepeater() {
556 1108 return Container.TYPE_REPEATER === this.type;
557 1109 }
@@ -569,17 +1121,20 @@
569 1121 key: "getSetting",
570 1122 value: function getSetting(name) {
571 1123 var localOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
572 1124 var localValue = this.settings.get(name);
1125 +
573 1126 if (localOnly) {
574 1127 return localValue;
575 - }
1128 + } // Try to get the value in the order: Global, Local, Global default.
576 1129
577 - // Try to get the value in the order: Global, Local, Global default.
1130 +
578 1131 var globalValue;
1132 +
579 1133 if (this.getGlobalKey(name)) {
580 1134 globalValue = this.getGlobalValue(name);
581 1135 }
1136 +
582 1137 return globalValue || localValue || this.getGlobalDefault(name);
583 1138 }
584 1139 }, {
585 1140 key: "getGlobalKey",
@@ -589,27 +1144,31 @@
589 1144 }, {
590 1145 key: "getGlobalValue",
591 1146 value: function getGlobalValue(name) {
592 1147 var control = this.controls[name],
593 - globalKey = this.getGlobalKey(name),
594 - globalArgs = $e.data.commandExtractArgs(globalKey),
595 - data = $e.data.getCache($e.components.get('globals'), globalArgs.command, globalArgs.args.query);
1148 + globalKey = this.getGlobalKey(name),
1149 + globalArgs = $e.data.commandExtractArgs(globalKey),
1150 + data = $e.data.getCache($e.components.get('globals'), globalArgs.command, globalArgs.args.query);
1151 +
596 1152 if (!(data !== null && data !== void 0 && data.value)) {
597 1153 return;
598 1154 }
1155 +
599 1156 var id = data.id;
600 - var value;
1157 + var value; // it's a global settings with additional controls in group.
601 1158
602 - // It's a global settings with additional controls in group.
603 1159 if (control.groupType) {
604 1160 // A regex containing all of the active breakpoints' prefixes ('_mobile', '_tablet' etc.).
605 1161 var responsivePrefixRegex = elementor.breakpoints.getActiveMatchRegex();
606 1162 var propertyName = control.name.replace(control.groupPrefix, '').replace(responsivePrefixRegex, '');
1163 +
607 1164 if (!data.value[elementor.config.kit_config.typography_prefix + propertyName]) {
608 1165 return;
609 1166 }
1167 +
610 1168 propertyName = propertyName.replace('_', '-');
611 1169 value = "var( --e-global-".concat(control.groupType, "-").concat(id, "-").concat(propertyName, " )");
1170 +
612 1171 if (elementor.config.ui.defaultGenericFonts && control.groupPrefix + 'font_family' === control.name) {
613 1172 value += ", ".concat(elementor.config.ui.defaultGenericFonts);
614 1173 }
615 1174 } else {
@@ -614,11 +1173,11 @@
614 1173 }
615 1174 } else {
616 1175 value = "var( --e-global-".concat(control.type, "-").concat(id, " )");
617 1176 }
1177 +
618 1178 return value;
619 1179 }
620 -
621 1180 /**
622 1181 * Determine if a control's global value is applied.
623 1182 * It actually checks if the local value is different than the global value.
624 1183 *
@@ -624,8 +1183,9 @@
624 1183 *
625 1184 * @param {string} controlName - Control name
626 1185 * @return {boolean} true if a control's global value is applied
627 1186 */
1187 +
628 1188 }, {
629 1189 key: "isGlobalApplied",
630 1190 value: function isGlobalApplied(controlName) {
631 1191 return this.getSetting(controlName) !== this.settings.get(controlName);
@@ -633,34 +1193,41 @@
633 1193 }, {
634 1194 key: "getGlobalDefault",
635 1195 value: function getGlobalDefault(controlName) {
636 1196 var _this$controls$contro;
1197 +
637 1198 var controlGlobalArgs = (_this$controls$contro = this.controls[controlName]) === null || _this$controls$contro === void 0 ? void 0 : _this$controls$contro.global;
1199 +
638 1200 if (controlGlobalArgs !== null && controlGlobalArgs !== void 0 && controlGlobalArgs.default) {
639 1201 // Temp fix.
640 1202 var controlType = this.controls[controlName].type;
1203 +
641 1204 if ('color' === controlType) {
642 1205 controlType = 'colors';
643 - }
644 - // End temp fix
1206 + } // End temp fix
1207 + // If the control is a color/typography control and default colors/typography are disabled, don't return the global value.
645 1208
646 - // If the control is a color/typography control and default colors/typography are disabled, don't return the global value.
1209 +
647 1210 if (!elementor.config.globals.defaults_enabled[controlType]) {
648 1211 return '';
649 1212 }
1213 +
650 1214 var _$e$data$commandExtra = $e.data.commandExtractArgs(controlGlobalArgs.default),
651 - command = _$e$data$commandExtra.command,
652 - args = _$e$data$commandExtra.args,
653 - result = $e.data.getCache($e.components.get('globals'), command, args.query);
1215 + command = _$e$data$commandExtra.command,
1216 + args = _$e$data$commandExtra.args,
1217 + result = $e.data.getCache($e.components.get('globals'), command, args.query);
1218 +
654 1219 return result === null || result === void 0 ? void 0 : result.value;
655 - }
1220 + } // No global default.
656 1221
657 - // No global default.
1222 +
658 1223 return '';
659 1224 }
660 1225 }]);
1226 + return Container;
661 1227 }(_argsObject.default);
662 -// TODO: Swap those backwards compatibility is required.
1228 +
1229 +exports["default"] = Container;
663 1230 (0, _defineProperty2.default)(Container, "TYPE_REPEATER", 'repeater-control');
664 1231 (0, _defineProperty2.default)(Container, "TYPE_REPEATER_ITEM", 'repeater');
665 1232
666 1233 /***/ }),
@@ -674,38 +1241,54 @@
674 1241 "use strict";
675 1242
676 1243
677 1244 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1245 +
678 1246 Object.defineProperty(exports, "__esModule", ({
679 1247 value: true
680 1248 }));
681 1249 exports["default"] = void 0;
1250 +
682 1251 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1252 +
683 1253 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1254 +
1255 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1256 +
684 1257 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1258 +
685 1259 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
686 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1260 +
687 1261 var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js"));
688 -function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
689 -function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
690 -function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
691 -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
692 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1262 +
1263 +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; } } }; }
1264 +
1265 +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); }
1266 +
1267 +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; }
1268 +
1269 +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); }; }
1270 +
1271 +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; } }
1272 +
693 1273 /**
694 1274 * @typedef {import('../container')} Container
695 1275 */
696 -var ChildrenArray = exports["default"] = /*#__PURE__*/function (_Array) {
1276 +var ChildrenArray = /*#__PURE__*/function (_Array) {
1277 + (0, _inherits2.default)(ChildrenArray, _Array);
1278 +
1279 + var _super = _createSuper(ChildrenArray);
1280 +
697 1281 function ChildrenArray() {
698 1282 (0, _classCallCheck2.default)(this, ChildrenArray);
699 - return _callSuper(this, ChildrenArray, arguments);
1283 + return _super.apply(this, arguments);
700 1284 }
701 - (0, _inherits2.default)(ChildrenArray, _Array);
702 - return (0, _createClass2.default)(ChildrenArray, [{
1285 +
1286 + (0, _createClass2.default)(ChildrenArray, [{
703 1287 key: "clear",
704 1288 value: function clear() {
705 1289 this.length = 0;
706 1290 }
707 -
708 1291 /**
709 1292 * Function findRecursive().
710 1293 *
711 1294 * Will run over children recursively and pass the children to the callback till the callback returns positive value.
@@ -713,21 +1296,26 @@
713 1296 * @param {function(Container) : *} callback
714 1297 *
715 1298 * @return {Container|false} child
716 1299 */
1300 +
717 1301 }, {
718 1302 key: "findRecursive",
719 1303 value: function findRecursive(callback) {
720 1304 var _iterator = _createForOfIteratorHelper(this),
721 - _step;
1305 + _step;
1306 +
722 1307 try {
723 1308 for (_iterator.s(); !(_step = _iterator.n()).done;) {
724 1309 var container = _step.value;
1310 +
725 1311 if (callback(container)) {
726 1312 return container;
727 1313 }
1314 +
728 1315 if (container.children.length) {
729 1316 var foundChildren = container.children.findRecursive(callback);
1317 +
730 1318 if (foundChildren) {
731 1319 return foundChildren;
732 1320 }
733 1321 }
@@ -736,11 +1324,11 @@
736 1324 _iterator.e(err);
737 1325 } finally {
738 1326 _iterator.f();
739 1327 }
1328 +
740 1329 return false;
741 1330 }
742 -
743 1331 /**
744 1332 * Function forEachRecursive().
745 1333 *
746 1334 * Will run over children recursively.
@@ -748,17 +1336,20 @@
748 1336 * @param {function(Container) : *} callback
749 1337 *
750 1338 * @return {void}
751 1339 */
1340 +
752 1341 }, {
753 1342 key: "forEachRecursive",
754 1343 value: function forEachRecursive(callback) {
755 1344 var _iterator2 = _createForOfIteratorHelper(this),
756 - _step2;
1345 + _step2;
1346 +
757 1347 try {
758 1348 for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
759 1349 var container = _step2.value;
760 1350 callback(container);
1351 +
761 1352 if (container.children.length) {
762 1353 container.children.forEachRecursive(callback);
763 1354 }
764 1355 }
@@ -767,9 +1358,8 @@
767 1358 } finally {
768 1359 _iterator2.f();
769 1360 }
770 1361 }
771 -
772 1362 /**
773 1363 * Function someRecursive().
774 1364 *
775 1365 * Will run over children recursively, breaks if the callback return true.
@@ -774,21 +1364,27 @@
774 1364 *
775 1365 * Will run over children recursively, breaks if the callback return true.
776 1366 *
777 1367 * @param {function(Container) : *} callback
1368 + *
778 1369 */
1370 +
779 1371 }, {
780 1372 key: "someRecursive",
781 1373 value: function someRecursive(callback) {
782 1374 var _iterator3 = _createForOfIteratorHelper(this),
783 - _step3;
1375 + _step3;
1376 +
784 1377 try {
785 1378 for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
786 1379 var _container$children;
1380 +
787 1381 var container = _step3.value;
1382 +
788 1383 if (callback(container)) {
789 1384 return true;
790 1385 }
1386 +
791 1387 if ((_container$children = container.children) !== null && _container$children !== void 0 && _container$children.length) {
792 1388 if (container.children.someRecursive(callback)) {
793 1389 return true;
794 1390 }
@@ -798,13 +1394,17 @@
798 1394 _iterator3.e(err);
799 1395 } finally {
800 1396 _iterator3.f();
801 1397 }
1398 +
802 1399 return false;
803 1400 }
804 1401 }]);
805 -}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Array));
1402 + return ChildrenArray;
1403 +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Array));
806 1404
1405 +exports["default"] = ChildrenArray;
1406 +
807 1407 /***/ }),
808 1408
809 1409 /***/ "../assets/dev/js/editor/container/panel.js":
810 1410 /*!**************************************************!*\
@@ -815,18 +1415,22 @@
815 1415 "use strict";
816 1416
817 1417
818 1418 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1419 +
819 1420 Object.defineProperty(exports, "__esModule", ({
820 1421 value: true
821 1422 }));
822 1423 exports["default"] = void 0;
1424 +
823 1425 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1426 +
824 1427 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1428 +
825 1429 /**
826 1430 * @typedef {import('./container')} Container
827 1431 */
828 -var Panel = exports["default"] = /*#__PURE__*/function () {
1432 +var Panel = /*#__PURE__*/function () {
829 1433 /**
830 1434 * Function constructor().
831 1435 *
832 1436 * Create constructor panel.
@@ -836,15 +1440,16 @@
836 1440 function Panel(container) {
837 1441 (0, _classCallCheck2.default)(this, Panel);
838 1442 this.container = container;
839 1443 }
840 -
841 1444 /**
842 1445 * Function refresh().
843 1446 *
844 1447 * Refresh the panel.
845 1448 */
846 - return (0, _createClass2.default)(Panel, [{
1449 +
1450 +
1451 + (0, _createClass2.default)(Panel, [{
847 1452 key: "refresh",
848 1453 value: function refresh() {
849 1454 if ($e.routes.isPartOf('panel/editor')) {
850 1455 $e.routes.refreshContainer('panel');
@@ -849,14 +1454,14 @@
849 1454 if ($e.routes.isPartOf('panel/editor')) {
850 1455 $e.routes.refreshContainer('panel');
851 1456 }
852 1457 }
853 -
854 1458 /**
855 1459 * Function closeEditor().
856 1460 *
857 1461 * Route to `panel/elements/categories`
858 1462 */
1463 +
859 1464 }, {
860 1465 key: "closeEditor",
861 1466 value: function closeEditor() {
862 1467 $e.route('panel/elements/categories');
@@ -875,10 +1480,13 @@
875 1480 name: name
876 1481 });
877 1482 }
878 1483 }]);
1484 + return Panel;
879 1485 }();
880 1486
1487 +exports["default"] = Panel;
1488 +
881 1489 /***/ }),
882 1490
883 1491 /***/ "../assets/dev/js/editor/elements/models/base-settings.js":
884 1492 /*!****************************************************************!*\
@@ -889,88 +1497,93 @@
889 1497 "use strict";
890 1498
891 1499
892 1500 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1501 +
893 1502 var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
1503 +
894 1504 var BaseSettingsModel;
895 -
896 -/**
897 - * @name BaseSettingsModel
898 - */
899 1505 BaseSettingsModel = Backbone.Model.extend({
900 1506 options: {},
901 1507 initialize: function initialize(data, options) {
902 - var self = this;
1508 + var self = this; // Keep the options for cloning
903 1509
904 - // Keep the options for cloning
905 1510 self.options = options;
906 1511 self.controls = elementor.mergeControlsSettings(options.controls);
907 1512 self.validators = {};
1513 +
908 1514 if (!self.controls) {
909 1515 return;
910 1516 }
1517 +
911 1518 var attrs = data || {},
912 - defaults = {};
1519 + defaults = {};
1520 +
913 1521 _.each(self.controls, function (control) {
914 1522 // Check features since they does not exist in tests.
915 1523 var isUIControl = control.features && -1 !== control.features.indexOf('ui');
1524 +
916 1525 if (isUIControl) {
917 1526 return;
918 1527 }
1528 +
919 1529 var controlName = control.name;
1530 +
920 1531 if ('object' === (0, _typeof2.default)(control.default)) {
921 - defaults[controlName] = structuredClone(control.default);
1532 + defaults[controlName] = elementorCommon.helpers.cloneObject(control.default);
922 1533 } else {
923 1534 defaults[controlName] = control.default;
924 1535 }
1536 +
925 1537 var isDynamicControl = control.dynamic && control.dynamic.active,
926 - hasDynamicSettings = isDynamicControl && attrs.__dynamic__ && attrs.__dynamic__[controlName];
1538 + hasDynamicSettings = isDynamicControl && attrs.__dynamic__ && attrs.__dynamic__[controlName];
1539 +
927 1540 if (isDynamicControl && !hasDynamicSettings && control.dynamic.default) {
928 1541 if (!attrs.__dynamic__) {
929 1542 attrs.__dynamic__ = {};
930 1543 }
1544 +
931 1545 attrs.__dynamic__[controlName] = control.dynamic.default;
932 1546 hasDynamicSettings = true;
933 - }
1547 + } // Check if the value is a plain object ( and not an array )
934 1548
935 - // Check if the value is a plain object ( and not an array )
1549 +
936 1550 var isMultipleControl = jQuery.isPlainObject(control.default);
1551 +
937 1552 if (undefined !== attrs[controlName] && isMultipleControl && !_.isObject(attrs[controlName]) && !hasDynamicSettings) {
938 1553 elementorCommon.debug.addCustomError(new TypeError('An invalid argument supplied as multiple control value'), 'InvalidElementData', 'Element `' + (self.get('widgetType') || self.get('elType')) + '` got <' + attrs[controlName] + '> as `' + controlName + '` value. Expected array or object.');
939 1554 delete attrs[controlName];
940 1555 }
1556 +
941 1557 if (undefined === attrs[controlName]) {
942 1558 attrs[controlName] = defaults[controlName];
943 1559 }
944 1560 });
1561 +
945 1562 self.defaults = defaults;
946 1563 self.handleRepeaterData(attrs);
947 1564 self.set(attrs);
948 1565 },
949 - convertRepeaterValueToCollection: function convertRepeaterValueToCollection(attrs, repeaterControl) {
950 - return new Backbone.Collection(attrs[repeaterControl.name], {
951 - model: function model(attributes, options) {
952 - options = options || {};
953 - options.controls = {};
954 - Object.values(repeaterControl.fields).forEach(function (item) {
955 - options.controls[item.name] = item;
956 - });
957 -
958 - // TODO: Cannot be deleted, since it handle repeater items after repeater widget creation.
959 - if (!attributes._id) {
960 - attributes._id = elementorCommon.helpers.getUniqueId();
961 - }
962 - return new BaseSettingsModel(attributes, options);
963 - }
964 - });
965 - },
966 1566 handleRepeaterData: function handleRepeaterData(attrs) {
967 - var self = this;
968 1567 _.each(this.controls, function (field) {
969 1568 if (field.is_repeater) {
970 1569 // TODO: Apply defaults on each field in repeater fields
971 1570 if (!(attrs[field.name] instanceof Backbone.Collection)) {
972 - attrs[field.name] = self.convertRepeaterValueToCollection(attrs, field);
1571 + attrs[field.name] = new Backbone.Collection(attrs[field.name], {
1572 + model: function model(attributes, options) {
1573 + options = options || {};
1574 + options.controls = {};
1575 + Object.values(field.fields).forEach(function (item) {
1576 + options.controls[item.name] = item;
1577 + }); // TODO: Cannot be deleted, since it handle repeater items after repeater widget creation.
1578 +
1579 + if (!attributes._id) {
1580 + attributes._id = elementorCommon.helpers.getUniqueId();
1581 + }
1582 +
1583 + return new BaseSettingsModel(attributes, options);
1584 + }
1585 + });
973 1586 }
974 1587 }
975 1588 });
976 1589 },
@@ -986,25 +1599,25 @@
986 1599 });
987 1600 },
988 1601 getStyleControls: function getStyleControls(controls, attributes) {
989 1602 var self = this;
990 - controls = structuredClone(self.getActiveControls(controls, attributes));
1603 + controls = elementorCommon.helpers.cloneObject(self.getActiveControls(controls, attributes));
991 1604 var styleControls = [];
992 1605 jQuery.each(controls, function () {
993 1606 var _control$dynamic;
1607 +
994 1608 var control = this,
995 - controlDefaultSettings = elementor.config.controls[control.type];
1609 + controlDefaultSettings = elementor.config.controls[control.type];
996 1610 control = jQuery.extend({}, controlDefaultSettings, control);
1611 +
997 1612 if (control.fields) {
998 1613 var styleFields = [];
999 - if (!(self.attributes[control.name] instanceof Backbone.Collection)) {
1000 - self.attributes[control.name] = self.convertRepeaterValueToCollection(self.attributes, control);
1001 - }
1002 1614 self.attributes[control.name].each(function (item) {
1003 1615 styleFields.push(self.getStyleControls(control.fields, item.attributes));
1004 1616 });
1005 1617 control.styleFields = styleFields;
1006 1618 }
1619 +
1007 1620 if (control.fields || (_control$dynamic = control.dynamic) !== null && _control$dynamic !== void 0 && _control$dynamic.active || self.isGlobalControl(control, controls) || self.isStyleControl(control.name, controls)) {
1008 1621 styleControls.push(control);
1009 1622 }
1010 1623 });
@@ -1011,24 +1624,31 @@
1011 1624 return styleControls;
1012 1625 },
1013 1626 isGlobalControl: function isGlobalControl(control, controls) {
1014 1627 var _globalControl$global, _this$attributes$__gl;
1628 +
1015 1629 var controlGlobalKey = control.name;
1630 +
1016 1631 if (control.groupType) {
1017 1632 controlGlobalKey = control.groupPrefix + control.groupType;
1018 1633 }
1634 +
1019 1635 var globalControl = controls[controlGlobalKey];
1020 - if (!(globalControl !== null && globalControl !== void 0 && (_globalControl$global = globalControl.global) !== null && _globalControl$global !== void 0 && _globalControl$global.active)) {
1636 +
1637 + if (!((_globalControl$global = globalControl.global) !== null && _globalControl$global !== void 0 && _globalControl$global.active)) {
1021 1638 return false;
1022 1639 }
1640 +
1023 1641 var globalValue = (_this$attributes$__gl = this.attributes.__globals__) === null || _this$attributes$__gl === void 0 ? void 0 : _this$attributes$__gl[controlGlobalKey];
1024 1642 return !!globalValue;
1025 1643 },
1026 1644 isStyleControl: function isStyleControl(attribute, controls) {
1027 1645 controls = controls || this.controls;
1646 +
1028 1647 var currentControl = _.find(controls, function (control) {
1029 1648 return attribute === control.name;
1030 1649 });
1650 +
1031 1651 return currentControl && !_.isEmpty(currentControl.selectors);
1032 1652 },
1033 1653 getClassControls: function getClassControls(controls) {
1034 1654 controls = controls || this.controls;
@@ -1039,8 +1659,9 @@
1039 1659 isClassControl: function isClassControl(attribute) {
1040 1660 var currentControl = _.find(this.controls, function (control) {
1041 1661 return attribute === control.name;
1042 1662 });
1663 +
1043 1664 return currentControl && !_.isUndefined(currentControl.prefix_class);
1044 1665 },
1045 1666 getControl: function getControl(id) {
1046 1667 return _.find(this.controls, function (control) {
@@ -1048,14 +1669,17 @@
1048 1669 });
1049 1670 },
1050 1671 getActiveControls: function getActiveControls(controls, attributes) {
1051 1672 var activeControls = {};
1673 +
1052 1674 if (!controls) {
1053 1675 controls = this.controls;
1054 1676 }
1677 +
1055 1678 if (!attributes) {
1056 1679 attributes = this.attributes;
1057 1680 }
1681 +
1058 1682 attributes = this.parseGlobalSettings(attributes, controls);
1059 1683 jQuery.each(controls, function (controlKey, control) {
1060 1684 if (elementor.helpers.isActiveControl(control, attributes, controls)) {
1061 1685 activeControls[controlKey] = control;
@@ -1067,9 +1691,10 @@
1067 1691 return new BaseSettingsModel(elementorCommon.helpers.cloneObject(this.attributes), elementorCommon.helpers.cloneObject(this.options));
1068 1692 },
1069 1693 setExternalChange: function setExternalChange(key, value) {
1070 1694 var self = this,
1071 - settingsToChange;
1695 + settingsToChange;
1696 +
1072 1697 if ('object' === (0, _typeof2.default)(key)) {
1073 1698 settingsToChange = key;
1074 1699 } else {
1075 1700 settingsToChange = {};
@@ -1074,8 +1699,9 @@
1074 1699 } else {
1075 1700 settingsToChange = {};
1076 1701 settingsToChange[key] = value;
1077 1702 }
1703 +
1078 1704 self.set(settingsToChange);
1079 1705 jQuery.each(settingsToChange, function (changedKey, changedValue) {
1080 1706 self.trigger('change:external:' + changedKey, changedValue);
1081 1707 });
@@ -1086,9 +1712,10 @@
1086 1712 options = options || {};
1087 1713 controls = controls || this.controls;
1088 1714 jQuery.each(controls, function () {
1089 1715 var control = this,
1090 - valueToParse;
1716 + valueToParse;
1717 +
1091 1718 if (control.is_repeater) {
1092 1719 valueToParse = settings[control.name];
1093 1720 valueToParse.forEach(function (value, key) {
1094 1721 valueToParse[key] = self.parseDynamicSettings(value, options, control.fields);
@@ -1094,20 +1721,27 @@
1094 1721 valueToParse[key] = self.parseDynamicSettings(value, options, control.fields);
1095 1722 });
1096 1723 return;
1097 1724 }
1725 +
1098 1726 valueToParse = settings.__dynamic__ && settings.__dynamic__[control.name];
1727 +
1099 1728 if (!valueToParse) {
1100 1729 return;
1101 1730 }
1731 +
1102 1732 var dynamicSettings = control.dynamic;
1733 +
1103 1734 if (undefined === dynamicSettings) {
1104 1735 dynamicSettings = elementor.config.controls[control.type].dynamic;
1105 1736 }
1737 +
1106 1738 if (!dynamicSettings || !dynamicSettings.active) {
1107 1739 return;
1108 1740 }
1741 +
1109 1742 var dynamicValue;
1743 +
1110 1744 try {
1111 1745 dynamicValue = elementor.dynamicTags.parseTagsText(valueToParse, dynamicSettings, elementor.dynamicTags.getTagDataContent);
1112 1746 } catch (error) {
1113 1747 if (elementor.dynamicTags.CACHE_KEY_NOT_FOUND_ERROR !== error.message) {
@@ -1112,12 +1746,15 @@
1112 1746 } catch (error) {
1113 1747 if (elementor.dynamicTags.CACHE_KEY_NOT_FOUND_ERROR !== error.message) {
1114 1748 throw error;
1115 1749 }
1750 +
1116 1751 dynamicValue = '';
1752 +
1117 1753 if (options.onServerRequestStart) {
1118 1754 options.onServerRequestStart();
1119 1755 }
1756 +
1120 1757 elementor.dynamicTags.refreshCacheFromServer(function () {
1121 1758 if (options.onServerRequestEnd) {
1122 1759 options.onServerRequestEnd();
1123 1760 }
@@ -1122,8 +1759,9 @@
1122 1759 options.onServerRequestEnd();
1123 1760 }
1124 1761 });
1125 1762 }
1763 +
1126 1764 if (dynamicSettings.property) {
1127 1765 settings[control.name][dynamicSettings.property] = dynamicValue;
1128 1766 } else {
1129 1767 settings[control.name] = dynamicValue;
@@ -1132,13 +1770,16 @@
1132 1770 return settings;
1133 1771 },
1134 1772 parseGlobalSettings: function parseGlobalSettings(settings, controls) {
1135 1773 var _this = this;
1774 +
1136 1775 settings = elementorCommon.helpers.cloneObject(settings);
1137 1776 controls = controls || this.controls;
1138 1777 jQuery.each(controls, function (index, control) {
1139 1778 var _settings$__globals__, _globalSettings;
1779 +
1140 1780 var valueToParse;
1781 +
1141 1782 if (control.is_repeater) {
1142 1783 valueToParse = settings[control.name];
1143 1784 valueToParse.forEach(function (value, key) {
1144 1785 valueToParse[key] = _this.parseGlobalSettings(value, control.fields);
@@ -1144,23 +1785,30 @@
1144 1785 valueToParse[key] = _this.parseGlobalSettings(value, control.fields);
1145 1786 });
1146 1787 return;
1147 1788 }
1789 +
1148 1790 valueToParse = (_settings$__globals__ = settings.__globals__) === null || _settings$__globals__ === void 0 ? void 0 : _settings$__globals__[control.name];
1791 +
1149 1792 if (!valueToParse) {
1150 1793 return;
1151 1794 }
1795 +
1152 1796 var globalSettings = control.global;
1797 +
1153 1798 if (undefined === globalSettings) {
1154 1799 globalSettings = elementor.config.controls[control.type].global;
1155 1800 }
1801 +
1156 1802 if (!((_globalSettings = globalSettings) !== null && _globalSettings !== void 0 && _globalSettings.active)) {
1157 1803 return;
1158 1804 }
1805 +
1159 1806 var _$e$data$commandExtra = $e.data.commandExtractArgs(valueToParse),
1160 - command = _$e$data$commandExtra.command,
1161 - args = _$e$data$commandExtra.args,
1162 - globalValue = $e.data.getCache($e.components.get('globals'), command, args.query);
1807 + command = _$e$data$commandExtra.command,
1808 + args = _$e$data$commandExtra.args,
1809 + globalValue = $e.data.getCache($e.components.get('globals'), command, args.query);
1810 +
1163 1811 if (control.groupType) {
1164 1812 settings[control.name] = 'custom';
1165 1813 } else {
1166 1814 settings[control.name] = globalValue;
@@ -1169,18 +1817,21 @@
1169 1817 return settings;
1170 1818 },
1171 1819 removeDataDefaults: function removeDataDefaults(data, controls) {
1172 1820 var _this2 = this;
1821 +
1173 1822 jQuery.each(data, function (key) {
1174 1823 var control = controls[key];
1824 +
1175 1825 if (!control) {
1176 1826 return;
1177 - }
1827 + } // TODO: use `save_default` in text|textarea controls.
1178 1828
1179 - // TODO: use `save_default` in text|textarea controls.
1829 +
1180 1830 if (control.save_default || ('text' === control.type || 'textarea' === control.type) && data[key]) {
1181 1831 return;
1182 1832 }
1833 +
1183 1834 if (control.is_repeater) {
1184 1835 data[key].forEach(function (repeaterRow) {
1185 1836 _this2.removeDataDefaults(repeaterRow, control.fields);
1186 1837 });
@@ -1185,8 +1836,9 @@
1185 1836 _this2.removeDataDefaults(repeaterRow, control.fields);
1186 1837 });
1187 1838 return;
1188 1839 }
1840 +
1189 1841 if (_.isEqual(data[key], control.default)) {
1190 1842 delete data[key];
1191 1843 }
1192 1844 });
@@ -1196,23 +1848,22 @@
1196 1848 options = options || {};
1197 1849 delete data.widgetType;
1198 1850 delete data.elType;
1199 1851 delete data.isInner;
1852 +
1200 1853 _.each(data, function (attribute, key) {
1201 1854 if (attribute && attribute.toJSON) {
1202 1855 data[key] = attribute.toJSON();
1203 1856 }
1204 1857 });
1858 +
1205 1859 if (options.remove && -1 !== options.remove.indexOf('default')) {
1206 1860 this.removeDataDefaults(data, this.controls);
1207 1861 }
1208 - return structuredClone(data);
1862 +
1863 + return elementorCommon.helpers.cloneObject(data);
1209 1864 }
1210 1865 });
1211 -
1212 -/**
1213 - * @name BaseSettingsModel
1214 - */
1215 1866 module.exports = BaseSettingsModel;
1216 1867
1217 1868 /***/ }),
1218 1869
@@ -1230,25 +1881,29 @@
1230 1881 onRenderCollection: function onRenderCollection() {
1231 1882 this.handleInnerTabs(this.view);
1232 1883 },
1233 1884 handleInnerTabs: function handleInnerTabs(parent) {
1234 - var closedClass = 'e-tab-close',
1235 - activeClass = 'e-tab-active',
1236 - tabsWrappers = parent.children.filter(function (view) {
1237 - return 'tabs' === view.model.get('type');
1238 - });
1885 + var closedClass = 'elementor-tab-close',
1886 + activeClass = 'elementor-tab-active',
1887 + tabsWrappers = parent.children.filter(function (view) {
1888 + return 'tabs' === view.model.get('type');
1889 + });
1890 +
1239 1891 _.each(tabsWrappers, function (view) {
1240 1892 view.$el.find('.elementor-control-content').remove();
1241 1893 var tabsId = view.model.get('name'),
1242 - tabs = parent.children.filter(function (childView) {
1243 - return 'tab' === childView.model.get('type') && childView.model.get('tabs_wrapper') === tabsId;
1244 - });
1894 + tabs = parent.children.filter(function (childView) {
1895 + return 'tab' === childView.model.get('type') && childView.model.get('tabs_wrapper') === tabsId;
1896 + });
1897 +
1245 1898 _.each(tabs, function (childView, index) {
1246 1899 view._addChildView(childView);
1900 +
1247 1901 var tabId = childView.model.get('name'),
1248 - controlsUnderTab = parent.children.filter(function (controlView) {
1249 - return tabId === controlView.model.get('inner_tab');
1250 - });
1902 + controlsUnderTab = parent.children.filter(function (controlView) {
1903 + return tabId === controlView.model.get('inner_tab');
1904 + });
1905 +
1251 1906 if (0 === index) {
1252 1907 childView.$el.addClass(activeClass);
1253 1908 } else {
1254 1909 _.each(controlsUnderTab, function (controlView) {
@@ -1258,21 +1913,24 @@
1258 1913 });
1259 1914 });
1260 1915 },
1261 1916 onChildviewControlTabClicked: function onChildviewControlTabClicked(childView) {
1262 - var closedClass = 'e-tab-close',
1263 - activeClass = 'e-tab-active',
1264 - tabClicked = childView.model.get('name'),
1265 - childrenUnderTab = this.view.children.filter(function (view) {
1266 - return 'tab' !== view.model.get('type') && childView.model.get('tabs_wrapper') === view.model.get('tabs_wrapper');
1267 - }),
1268 - siblingTabs = this.view.children.filter(function (view) {
1269 - return 'tab' === view.model.get('type') && childView.model.get('tabs_wrapper') === view.model.get('tabs_wrapper');
1270 - });
1917 + var closedClass = 'elementor-tab-close',
1918 + activeClass = 'elementor-tab-active',
1919 + tabClicked = childView.model.get('name'),
1920 + childrenUnderTab = this.view.children.filter(function (view) {
1921 + return 'tab' !== view.model.get('type') && childView.model.get('tabs_wrapper') === view.model.get('tabs_wrapper');
1922 + }),
1923 + siblingTabs = this.view.children.filter(function (view) {
1924 + return 'tab' === view.model.get('type') && childView.model.get('tabs_wrapper') === view.model.get('tabs_wrapper');
1925 + });
1926 +
1271 1927 _.each(siblingTabs, function (view) {
1272 1928 view.$el.removeClass(activeClass);
1273 1929 });
1930 +
1274 1931 childView.$el.addClass(activeClass);
1932 +
1275 1933 _.each(childrenUnderTab, function (view) {
1276 1934 if (view.model.get('inner_tab') === tabClicked) {
1277 1935 view.$el.removeClass(closedClass);
1278 1936 } else {
@@ -1278,8 +1936,9 @@
1278 1936 } else {
1279 1937 view.$el.addClass(closedClass);
1280 1938 }
1281 1939 });
1940 +
1282 1941 elementor.getPanelView().updateScrollbar();
1283 1942 }
1284 1943 });
1285 1944 module.exports = InnerTabsBehavior;
@@ -1285,8 +1944,131 @@
1285 1944 module.exports = InnerTabsBehavior;
1286 1945
1287 1946 /***/ }),
1288 1947
1948 +/***/ "../assets/dev/js/editor/utils/introduction.js":
1949 +/*!*****************************************************!*\
1950 + !*** ../assets/dev/js/editor/utils/introduction.js ***!
1951 + \*****************************************************/
1952 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1953 +
1954 +"use strict";
1955 +
1956 +
1957 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1958 +
1959 +Object.defineProperty(exports, "__esModule", ({
1960 + value: true
1961 +}));
1962 +exports["default"] = void 0;
1963 +
1964 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1965 +
1966 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1967 +
1968 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1969 +
1970 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1971 +
1972 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1973 +
1974 +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); }; }
1975 +
1976 +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; } }
1977 +
1978 +var _default = /*#__PURE__*/function (_elementorModules$Mod) {
1979 + (0, _inherits2.default)(_default, _elementorModules$Mod);
1980 +
1981 + var _super = _createSuper(_default);
1982 +
1983 + function _default() {
1984 + var _this;
1985 +
1986 + (0, _classCallCheck2.default)(this, _default);
1987 +
1988 + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1989 + args[_key] = arguments[_key];
1990 + }
1991 +
1992 + _this = _super.call.apply(_super, [this].concat(args));
1993 +
1994 + _this.initDialog();
1995 +
1996 + return _this;
1997 + }
1998 +
1999 + (0, _createClass2.default)(_default, [{
2000 + key: "getDefaultSettings",
2001 + value: function getDefaultSettings() {
2002 + return {
2003 + dialogType: 'buttons',
2004 + dialogOptions: {
2005 + effects: {
2006 + hide: 'hide',
2007 + show: 'show'
2008 + },
2009 + hide: {
2010 + onBackgroundClick: false
2011 + }
2012 + }
2013 + };
2014 + }
2015 + }, {
2016 + key: "initDialog",
2017 + value: function initDialog() {
2018 + var _this2 = this;
2019 +
2020 + var dialog;
2021 +
2022 + this.getDialog = function () {
2023 + if (!dialog) {
2024 + var settings = _this2.getSettings();
2025 +
2026 + dialog = elementorCommon.dialogsManager.createWidget(settings.dialogType, settings.dialogOptions);
2027 +
2028 + if (settings.onDialogInitCallback) {
2029 + settings.onDialogInitCallback.call(_this2, dialog);
2030 + }
2031 + }
2032 +
2033 + return dialog;
2034 + };
2035 + }
2036 + }, {
2037 + key: "show",
2038 + value: function show(target) {
2039 + if (this.introductionViewed) {
2040 + return;
2041 + }
2042 +
2043 + var dialog = this.getDialog();
2044 +
2045 + if (target) {
2046 + dialog.setSettings('position', {
2047 + of: target
2048 + });
2049 + }
2050 +
2051 + dialog.show();
2052 + }
2053 + }, {
2054 + key: "setViewed",
2055 + value: function setViewed() {
2056 + this.introductionViewed = true;
2057 + elementorCommon.ajax.addRequest('introduction_viewed', {
2058 + data: {
2059 + introductionKey: this.getSettings('introductionKey')
2060 + }
2061 + });
2062 + }
2063 + }]);
2064 + return _default;
2065 +}(elementorModules.Module);
2066 +
2067 +exports["default"] = _default;
2068 +
2069 +/***/ }),
2070 +
1289 2071 /***/ "../assets/dev/js/editor/utils/is-instanceof.js":
1290 2072 /*!******************************************************!*\
1291 2073 !*** ../assets/dev/js/editor/utils/is-instanceof.js ***!
1292 2074 \******************************************************/
@@ -1298,11 +2080,15 @@
1298 2080 Object.defineProperty(exports, "__esModule", ({
1299 2081 value: true
1300 2082 }));
1301 2083 exports["default"] = void 0;
1302 -function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
1303 -function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
1304 -function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
2084 +
2085 +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; } } }; }
2086 +
2087 +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); }
2088 +
2089 +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; }
2090 +
1305 2091 /**
1306 2092 * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved
1307 2093 * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can
1308 2094 * check whether it's instanceof by using the objects constructor and prototype names.
@@ -1310,16 +2096,19 @@
1310 2096 * @param object
1311 2097 * @param constructors
1312 2098 * @return {boolean}
1313 2099 */
1314 -var _default = exports["default"] = function _default(object, constructors) {
2100 +var _default = function _default(object, constructors) {
1315 2101 constructors = Array.isArray(constructors) ? constructors : [constructors];
2102 +
1316 2103 var _iterator = _createForOfIteratorHelper(constructors),
1317 - _step;
2104 + _step;
2105 +
1318 2106 try {
1319 2107 for (_iterator.s(); !(_step = _iterator.n()).done;) {
1320 - var constructor = _step.value;
1321 - if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) {
2108 + var _constructor = _step.value;
2109 +
2110 + if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) {
1322 2111 return true;
1323 2112 }
1324 2113 }
1325 2114 } catch (err) {
@@ -1326,11 +2115,14 @@
1326 2115 _iterator.e(err);
1327 2116 } finally {
1328 2117 _iterator.f();
1329 2118 }
2119 +
1330 2120 return false;
1331 2121 };
1332 2122
2123 +exports["default"] = _default;
2124 +
1333 2125 /***/ }),
1334 2126
1335 2127 /***/ "../assets/dev/js/editor/utils/module.js":
1336 2128 /*!***********************************************!*\
@@ -1343,12 +2135,14 @@
1343 2135
1344 2136 var EditorModule = elementorModules.Module.extend({
1345 2137 onInit: function onInit() {
1346 2138 var _this = this;
2139 +
1347 2140 var $window = jQuery(window);
1348 2141 $window.on('elementor:init-components', this.onElementorInitComponents.bind(this));
1349 2142 $window.on('elementor:loaded', function () {
1350 2143 _this.onElementorLoaded();
2144 +
1351 2145 elementor.on('document:loaded', _this.onDocumentLoaded.bind(_this));
1352 2146 });
1353 2147 $window.on('elementor:init', this.onElementorReady);
1354 2148 },
@@ -1353,11 +2147,10 @@
1353 2147 $window.on('elementor:init', this.onElementorReady);
1354 2148 },
1355 2149 // TODO: Delete as soon as possible.
1356 2150 getEditorControlView: function getEditorControlView(name) {
1357 - var _this$getEditorContro;
1358 2151 var editor = elementor.getPanelView().getCurrentPageView();
1359 - return editor.children.findByModelCid((_this$getEditorContro = this.getEditorControlModel(name)) === null || _this$getEditorContro === void 0 ? void 0 : _this$getEditorContro.cid);
2152 + return editor.children.findByModelCid(this.getEditorControlModel(name).cid);
1360 2153 },
1361 2154 // TODO: Delete as soon as possible.
1362 2155 getEditorControlModel: function getEditorControlModel(name) {
1363 2156 var editor = elementor.getPanelView().getCurrentPageView();
@@ -1369,14 +2162,21 @@
1369 2162 this.onElementorInit();
1370 2163 elementor.on('frontend:init', this.onElementorFrontendInit.bind(this)).on('preview:loaded', this.onElementorPreviewLoaded.bind(this));
1371 2164 }
1372 2165 });
2166 +
1373 2167 EditorModule.prototype.onElementorLoaded = function () {};
2168 +
1374 2169 EditorModule.prototype.onElementorInit = function () {};
2170 +
1375 2171 EditorModule.prototype.onElementorPreviewLoaded = function () {};
2172 +
1376 2173 EditorModule.prototype.onDocumentLoaded = function () {};
2174 +
1377 2175 EditorModule.prototype.onElementorFrontendInit = function () {};
2176 +
1378 2177 EditorModule.prototype.onElementorInitComponents = function () {};
2178 +
1379 2179 module.exports = EditorModule;
1380 2180
1381 2181 /***/ }),
1382 2182
@@ -1390,16 +2190,21 @@
1390 2190 /* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
1391 2191
1392 2192
1393 2193 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2194 +
1394 2195 Object.defineProperty(exports, "__esModule", ({
1395 2196 value: true
1396 2197 }));
1397 2198 exports["default"] = void 0;
2199 +
1398 2200 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
2201 +
1399 2202 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2203 +
1400 2204 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1401 -var ControlsPopover = exports["default"] = /*#__PURE__*/function () {
2205 +
2206 +var ControlsPopover = /*#__PURE__*/function () {
1402 2207 function ControlsPopover(child) {
1403 2208 (0, _classCallCheck2.default)(this, ControlsPopover);
1404 2209 this.child = child;
1405 2210 this.$popover = jQuery('<div>', {
@@ -1406,16 +2211,16 @@
1406 2211 class: 'elementor-controls-popover'
1407 2212 });
1408 2213 child.$el.before(this.$popover);
1409 2214 this.$popover.append(child.$el);
1410 - this.popoverToggleView = child._parent.children.findByIndex(child._index - 1);
2215 + this.popoverToggleView = child._parent.children.findByIndex(child._index - 1); // Add the "Typography" header to the popover
1411 2216
1412 - // Add the "Typography" header to the popover
1413 2217 if ('typography' === this.child.model.attributes.groupType) {
1414 2218 this.createPopoverHeader();
1415 2219 }
1416 2220 }
1417 - return (0, _createClass2.default)(ControlsPopover, [{
2221 +
2222 + (0, _createClass2.default)(ControlsPopover, [{
1418 2223 key: "addChild",
1419 2224 value: function addChild(child) {
1420 2225 this.$popover.append(child.$el);
1421 2226 }
@@ -1422,30 +2227,31 @@
1422 2227 }, {
1423 2228 key: "createPopoverHeader",
1424 2229 value: function createPopoverHeader() {
1425 2230 var _this = this;
2231 +
1426 2232 var $popoverToggleControl = this.$popover.prev(),
1427 - // Get the existing reset button.
1428 - $resetLabel = $popoverToggleControl.find('.elementor-control-popover-toggle-reset-label');
2233 + // Get the existing reset button.
2234 + $resetLabel = $popoverToggleControl.find('.elementor-control-popover-toggle-reset-label');
1429 2235 this.$popoverHeader = jQuery('<div>', {
1430 2236 class: 'e-group-control-header'
1431 2237 }).html('<span>' + __('Typography', 'elementor') + '</span>');
1432 2238 this.$headerControlsWrapper = jQuery('<div>', {
1433 2239 class: 'e-control-tools'
1434 - });
2240 + }); // Give the reset button the control tool styling, and add a click event so clicking on it closes the popover.
1435 2241
1436 - // Give the reset button the control tool styling, and add a click event so clicking on it closes the popover.
1437 2242 $resetLabel.addClass('e-control-tool').on('click', function () {
1438 2243 return _this.onResetButtonClick();
1439 - });
2244 + }); // Move the popover toggle reset button into the popover header.
1440 2245
1441 - // Move the popover toggle reset button into the popover header.
1442 2246 this.$headerControlsWrapper.append($resetLabel);
1443 2247 this.$popoverHeader.append(this.$headerControlsWrapper);
1444 2248 var globalConfig = this.popoverToggleView.model.get('global');
2249 +
1445 2250 if (globalConfig !== null && globalConfig !== void 0 && globalConfig.active) {
1446 2251 this.createAddButton();
1447 2252 }
2253 +
1448 2254 this.$popover.prepend(this.$popoverHeader).addClass('e-controls-popover--typography');
1449 2255 }
1450 2256 }, {
1451 2257 key: "onResetButtonClick",
@@ -1450,14 +2256,14 @@
1450 2256 }, {
1451 2257 key: "onResetButtonClick",
1452 2258 value: function onResetButtonClick() {
1453 2259 this.$popover.hide();
1454 - this.$popover.trigger('hide');
1455 2260 var groupControlName = this.child.model.get('groupPrefix') + 'typography',
1456 - args = {
1457 - container: this.child.options.container,
1458 - settings: (0, _defineProperty2.default)({}, groupControlName, '')
1459 - };
2261 + args = {
2262 + container: this.child.options.container,
2263 + settings: (0, _defineProperty2.default)({}, groupControlName, '')
2264 + };
2265 +
1460 2266 if (this.child.options.container.globals.get(groupControlName)) {
1461 2267 // The Disable Globals command applies global settings locally,
1462 2268 // so disabling the global shouldn't actually change the appearance of the widget.
1463 2269 $e.run('document/globals/disable', args);
@@ -1473,8 +2279,9 @@
1473 2279 }, {
1474 2280 key: "createAddButton",
1475 2281 value: function createAddButton() {
1476 2282 var _this2 = this;
2283 +
1477 2284 this.$addButton = jQuery('<button>', {
1478 2285 class: 'e-control-tool'
1479 2286 }).html(jQuery('<i>', {
1480 2287 class: 'eicon-plus'
@@ -1497,10 +2304,13 @@
1497 2304 value: function destroy() {
1498 2305 this.$popover.remove();
1499 2306 }
1500 2307 }]);
2308 + return ControlsPopover;
1501 2309 }();
1502 2310
2311 +exports["default"] = ControlsPopover;
2312 +
1503 2313 /***/ }),
1504 2314
1505 2315 /***/ "../assets/dev/js/editor/views/controls-stack.js":
1506 2316 /*!*******************************************************!*\
@@ -1505,19 +2315,17 @@
1505 2315 /***/ "../assets/dev/js/editor/views/controls-stack.js":
1506 2316 /*!*******************************************************!*\
1507 2317 !*** ../assets/dev/js/editor/views/controls-stack.js ***!
1508 2318 \*******************************************************/
1509 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2319 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1510 2320
1511 2321 "use strict";
1512 2322
1513 2323
1514 2324 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1515 -Object.defineProperty(exports, "__esModule", ({
1516 - value: true
1517 -}));
1518 -exports["default"] = void 0;
2325 +
1519 2326 var _controlsPopover = _interopRequireDefault(__webpack_require__(/*! ./controls-popover */ "../assets/dev/js/editor/views/controls-popover.js"));
2327 +
1520 2328 var ControlsStack;
1521 2329 ControlsStack = Marionette.CompositeView.extend({
1522 2330 classes: {
1523 2331 popover: 'elementor-controls-popover'
@@ -1558,17 +2366,16 @@
1558 2366 }
1559 2367 },
1560 2368 initialize: function initialize(options) {
1561 2369 this.initCollection();
2370 +
1562 2371 if (options.tab) {
1563 2372 this.activeTab = options.tab;
1564 2373 this.activateFirstSection();
1565 2374 }
2375 +
1566 2376 this.listenTo(elementor.channels.deviceMode, 'change', this.onDeviceModeChange);
1567 2377 },
1568 - onDestroy: function onDestroy() {
1569 - this.stopListening(elementor.channels.deviceMode, 'change', this.onDeviceModeChange);
1570 - },
1571 2378 initCollection: function initCollection() {
1572 2379 this.collection = new Backbone.Collection(_.values(elementor.mergeControlsSettings(this.getOption('controls'))));
1573 2380 },
1574 2381 filter: function filter(controlModel) {
@@ -1574,11 +2381,13 @@
1574 2381 filter: function filter(controlModel) {
1575 2382 if (controlModel.get('tab') !== this.activeTab) {
1576 2383 return false;
1577 2384 }
2385 +
1578 2386 if ('section' === controlModel.get('type')) {
1579 2387 return true;
1580 2388 }
2389 +
1581 2390 var section = controlModel.get('section');
1582 2391 return !section || section === this.activeSection;
1583 2392 },
1584 2393 getControlViewByModel: function getControlViewByModel(model) {
@@ -1597,9 +2406,11 @@
1597 2406 },
1598 2407 activateTab: function activateTab(tab) {
1599 2408 this.activeTab = tab;
1600 2409 this.activateFirstSection();
2410 +
1601 2411 this._renderChildren();
2412 +
1602 2413 return this;
1603 2414 },
1604 2415 activateSection: function activateSection(sectionName) {
1605 2416 this.activeSection = sectionName;
@@ -1610,8 +2421,9 @@
1610 2421 var sectionControls = self.collection.filter(function (controlModel) {
1611 2422 return 'section' === controlModel.get('type') && self.isVisibleSectionControl(controlModel);
1612 2423 });
1613 2424 var sectionToActivate;
2425 +
1614 2426 if (!sectionControls[0]) {
1615 2427 self.activeSection = null;
1616 2428 sectionToActivate = null;
1617 2429 } else {
@@ -1616,14 +2428,17 @@
1616 2428 sectionToActivate = null;
1617 2429 } else {
1618 2430 sectionToActivate = sectionControls[0].get('name');
1619 2431 }
2432 +
1620 2433 var preActivatedSection = sectionControls.filter(function (controlModel) {
1621 2434 return self.activeSection === controlModel.get('name');
1622 2435 });
2436 +
1623 2437 if (preActivatedSection[0]) {
1624 2438 return;
1625 2439 }
2440 +
1626 2441 self.activateSection(sectionToActivate);
1627 2442 return this;
1628 2443 },
1629 2444 getChildView: function getChildView(item) {
@@ -1634,13 +2449,14 @@
1634 2449 return [elementor.getPanelView().getCurrentPageName()];
1635 2450 },
1636 2451 openActiveSection: function openActiveSection() {
1637 2452 var activeSection = this.activeSection,
1638 - activeSectionView = this.children.filter(function (view) {
1639 - return activeSection === view.model.get('name');
1640 - });
2453 + activeSectionView = this.children.filter(function (view) {
2454 + return activeSection === view.model.get('name');
2455 + });
2456 +
1641 2457 if (activeSectionView[0]) {
1642 - activeSectionView[0].$el.addClass('e-open');
2458 + activeSectionView[0].$el.addClass('elementor-open');
1643 2459 var eventNamespace = this.getNamespaceArray();
1644 2460 eventNamespace.push(activeSection, 'activated');
1645 2461 elementor.channels.editor.trigger(eventNamespace.join(':'), this);
1646 2462 }
@@ -1660,10 +2476,11 @@
1660 2476 this.$el.removeClass('elementor-responsive-switchers-open');
1661 2477 }
1662 2478 },
1663 2479 onChildviewControlSectionClicked: function onChildviewControlSectionClicked(childView) {
1664 - var isSectionOpen = childView.$el.hasClass('e-open');
2480 + var isSectionOpen = childView.$el.hasClass('elementor-open');
1665 2481 this.activateSection(isSectionOpen ? null : childView.model.get('name'));
2482 +
1666 2483 this._renderChildren();
1667 2484 },
1668 2485 onChildviewResponsiveSwitcherClick: function onChildviewResponsiveSwitcherClick(childView, device) {
1669 2486 if ('desktop' === device) {
@@ -1672,22 +2489,26 @@
1672 2489 }
1673 2490 }, {
1674 2491 handlePopovers: function handlePopovers(view) {
1675 2492 var popover;
2493 + view.popovers = [];
1676 2494 this.removePopovers(view);
1677 - view.popovers = [];
1678 2495 view.children.each(function (control) {
1679 2496 if (popover) {
1680 2497 popover.addChild(control);
1681 2498 }
2499 +
1682 2500 var popoverData = control.model.get('popover');
2501 +
1683 2502 if (!popoverData) {
1684 2503 return;
1685 2504 }
2505 +
1686 2506 if (popoverData.start) {
1687 2507 popover = new _controlsPopover.default(control);
1688 2508 view.popovers.push(popover);
1689 2509 }
2510 +
1690 2511 if (popoverData.end) {
1691 2512 popover = null;
1692 2513 }
1693 2514 });
@@ -1692,15 +2513,14 @@
1692 2513 }
1693 2514 });
1694 2515 },
1695 2516 removePopovers: function removePopovers(view) {
1696 - var _view$popovers;
1697 - (_view$popovers = view.popovers) === null || _view$popovers === void 0 || _view$popovers.forEach(function (popover) {
2517 + view.popovers.forEach(function (popover) {
1698 2518 return popover.destroy();
1699 2519 });
1700 2520 }
1701 2521 });
1702 -var _default = exports["default"] = ControlsStack;
2522 +module.exports = ControlsStack;
1703 2523
1704 2524 /***/ }),
1705 2525
1706 2526 /***/ "../assets/dev/js/modules/imports/args-object.js":
@@ -1712,23 +2532,39 @@
1712 2532 "use strict";
1713 2533
1714 2534
1715 2535 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2536 +
1716 2537 Object.defineProperty(exports, "__esModule", ({
1717 2538 value: true
1718 2539 }));
1719 2540 exports["default"] = void 0;
2541 +
1720 2542 var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
2543 +
1721 2544 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2545 +
1722 2546 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2547 +
2548 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2549 +
1723 2550 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
2551 +
1724 2552 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1725 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
2553 +
1726 2554 var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js"));
2555 +
1727 2556 var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js"));
1728 -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
1729 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1730 -var ArgsObject = exports["default"] = /*#__PURE__*/function (_InstanceType) {
2557 +
2558 +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); }; }
2559 +
2560 +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; } }
2561 +
2562 +var ArgsObject = /*#__PURE__*/function (_InstanceType) {
2563 + (0, _inherits2.default)(ArgsObject, _InstanceType);
2564 +
2565 + var _super = _createSuper(ArgsObject);
2566 +
1731 2567 /**
1732 2568 * Function constructor().
1733 2569 *
1734 2570 * Create ArgsObject.
@@ -1736,14 +2572,14 @@
1736 2572 * @param {{}} args
1737 2573 */
1738 2574 function ArgsObject(args) {
1739 2575 var _this;
2576 +
1740 2577 (0, _classCallCheck2.default)(this, ArgsObject);
1741 - _this = _callSuper(this, ArgsObject);
2578 + _this = _super.call(this);
1742 2579 _this.args = args;
1743 2580 return _this;
1744 2581 }
1745 -
1746 2582 /**
1747 2583 * Function requireArgument().
1748 2584 *
1749 2585 * Validate property in args.
@@ -1751,19 +2587,21 @@
1751 2587 * @param {string} property
1752 2588 * @param {{}} args
1753 2589 *
1754 2590 * @throws {Error}
2591 + *
1755 2592 */
1756 - (0, _inherits2.default)(ArgsObject, _InstanceType);
1757 - return (0, _createClass2.default)(ArgsObject, [{
2593 +
2594 +
2595 + (0, _createClass2.default)(ArgsObject, [{
1758 2596 key: "requireArgument",
1759 2597 value: function requireArgument(property) {
1760 2598 var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args;
1761 - if (!Object.prototype.hasOwnProperty.call(args, property)) {
2599 +
2600 + if (!args.hasOwnProperty(property)) {
1762 2601 throw Error("".concat(property, " is required."));
1763 2602 }
1764 2603 }
1765 -
1766 2604 /**
1767 2605 * Function requireArgumentType().
1768 2606 *
1769 2607 * Validate property in args using `type === typeof(args.whatever)`.
@@ -1772,19 +2610,21 @@
1772 2610 * @param {string} type
1773 2611 * @param {{}} args
1774 2612 *
1775 2613 * @throws {Error}
2614 + *
1776 2615 */
2616 +
1777 2617 }, {
1778 2618 key: "requireArgumentType",
1779 2619 value: function requireArgumentType(property, type) {
1780 2620 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
1781 2621 this.requireArgument(property, args);
2622 +
1782 2623 if ((0, _typeof2.default)(args[property]) !== type) {
1783 2624 throw Error("".concat(property, " invalid type: ").concat(type, "."));
1784 2625 }
1785 2626 }
1786 -
1787 2627 /**
1788 2628 * Function requireArgumentInstance().
1789 2629 *
1790 2630 * Validate property in args using `args.whatever instanceof instance`.
@@ -1793,19 +2633,21 @@
1793 2633 * @param {*} instance
1794 2634 * @param {{}} args
1795 2635 *
1796 2636 * @throws {Error}
2637 + *
1797 2638 */
2639 +
1798 2640 }, {
1799 2641 key: "requireArgumentInstance",
1800 2642 value: function requireArgumentInstance(property, instance) {
1801 2643 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
1802 2644 this.requireArgument(property, args);
2645 +
1803 2646 if (!(args[property] instanceof instance) && !(0, _isInstanceof.default)(args[property], instance)) {
1804 2647 throw Error("".concat(property, " invalid instance."));
1805 2648 }
1806 2649 }
1807 -
1808 2650 /**
1809 2651 * Function requireArgumentConstructor().
1810 2652 *
1811 2653 * Validate property in args using `type === args.whatever.constructor`.
@@ -1814,17 +2656,18 @@
1814 2656 * @param {*} type
1815 2657 * @param {{}} args
1816 2658 *
1817 2659 * @throws {Error}
2660 + *
1818 2661 */
2662 +
1819 2663 }, {
1820 2664 key: "requireArgumentConstructor",
1821 2665 value: function requireArgumentConstructor(property, type) {
1822 2666 var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
1823 - this.requireArgument(property, args);
2667 + this.requireArgument(property, args); // Note: Converting the constructor to string in order to avoid equation issues
2668 + // due to different memory addresses between iframes (window.Object !== window.top.Object).
1824 2669
1825 - // Note: Converting the constructor to string in order to avoid equation issues
1826 - // due to different memory addresses between iframes (window.Object !== window.top.Object).
1827 2670 if (args[property].constructor.toString() !== type.prototype.constructor.toString()) {
1828 2671 throw Error("".concat(property, " invalid constructor type."));
1829 2672 }
1830 2673 }
@@ -1833,10 +2676,13 @@
1833 2676 value: function getInstanceType() {
1834 2677 return 'ArgsObject';
1835 2678 }
1836 2679 }]);
2680 + return ArgsObject;
1837 2681 }(_instanceType.default);
1838 2682
2683 +exports["default"] = ArgsObject;
2684 +
1839 2685 /***/ }),
1840 2686
1841 2687 /***/ "../assets/dev/js/modules/imports/instance-type.js":
1842 2688 /*!*********************************************************!*\
@@ -1847,34 +2693,43 @@
1847 2693 "use strict";
1848 2694
1849 2695
1850 2696 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2697 +
1851 2698 Object.defineProperty(exports, "__esModule", ({
1852 2699 value: true
1853 2700 }));
1854 2701 exports["default"] = void 0;
2702 +
1855 2703 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
2704 +
1856 2705 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
2706 +
2707 +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
2708 +
1857 2709 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1858 -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
1859 -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
1860 -var InstanceType = exports["default"] = /*#__PURE__*/function () {
2710 +
2711 +var InstanceType = /*#__PURE__*/function (_Symbol$hasInstance) {
1861 2712 function InstanceType() {
1862 2713 var _this = this;
2714 +
1863 2715 (0, _classCallCheck2.default)(this, InstanceType);
1864 2716 // Since anonymous classes sometimes do not get validated by babel, do it manually.
1865 2717 var target = this instanceof InstanceType ? this.constructor : void 0;
1866 2718 var prototypes = [];
2719 +
1867 2720 while (target.__proto__ && target.__proto__.name) {
1868 2721 prototypes.push(target.__proto__);
1869 2722 target = target.__proto__;
1870 2723 }
2724 +
1871 2725 prototypes.reverse().forEach(function (proto) {
1872 2726 return _this instanceof proto;
1873 2727 });
1874 2728 }
1875 - return (0, _createClass2.default)(InstanceType, null, [{
1876 - key: Symbol.hasInstance,
2729 +
2730 + (0, _createClass2.default)(InstanceType, null, [{
2731 + key: _Symbol$hasInstance,
1877 2732 value: function value(target) {
1878 2733 /**
1879 2734 * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
1880 2735 * its give's opportunity to mange capabilities of instanceOf operator.
@@ -1879,34 +2734,39 @@
1879 2734 * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
1880 2735 * its give's opportunity to mange capabilities of instanceOf operator.
1881 2736 * saving current class each time will give option later to handle instanceOf manually.
1882 2737 */
1883 - var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]);
2738 + 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.
1884 2739
1885 - // Act normal when validate a class, which does not have instance type.
1886 2740 if (target && !target.constructor.getInstanceType) {
1887 2741 return result;
1888 2742 }
2743 +
1889 2744 if (target) {
1890 2745 if (!target.instanceTypes) {
1891 2746 target.instanceTypes = [];
1892 2747 }
2748 +
1893 2749 if (!result) {
1894 2750 if (this.getInstanceType() === target.constructor.getInstanceType()) {
1895 2751 result = true;
1896 2752 }
1897 2753 }
2754 +
1898 2755 if (result) {
1899 2756 var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType();
2757 +
1900 2758 if (-1 === target.instanceTypes.indexOf(name)) {
1901 2759 target.instanceTypes.push(name);
1902 2760 }
1903 2761 }
1904 2762 }
2763 +
1905 2764 if (!result && target) {
1906 2765 // Check if the given 'target', is instance of known types.
1907 2766 result = target.instanceTypes && Array.isArray(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType());
1908 2767 }
2768 +
1909 2769 return result;
1910 2770 }
1911 2771 }, {
1912 2772 key: "getInstanceType",
@@ -1913,1018 +2773,15 @@
1913 2773 value: function getInstanceType() {
1914 2774 elementorModules.ForceMethodImplementation();
1915 2775 }
1916 2776 }]);
1917 -}();
2777 + return InstanceType;
2778 +}(Symbol.hasInstance);
1918 2779
1919 -/***/ }),
2780 +exports["default"] = InstanceType;
1920 2781
1921 -/***/ "../assets/dev/js/utils/introduction.js":
1922 -/*!**********************************************!*\
1923 - !*** ../assets/dev/js/utils/introduction.js ***!
1924 - \**********************************************/
1925 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1926 -
1927 -"use strict";
1928 -
1929 -
1930 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1931 -Object.defineProperty(exports, "__esModule", ({
1932 - value: true
1933 -}));
1934 -exports["default"] = void 0;
1935 -var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js"));
1936 -var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
1937 -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1938 -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1939 -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1940 -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1941 -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1942 -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
1943 -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
1944 -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1945 -var _default = exports["default"] = /*#__PURE__*/function (_elementorModules$Mod) {
1946 - function _default() {
1947 - var _this;
1948 - (0, _classCallCheck2.default)(this, _default);
1949 - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1950 - args[_key] = arguments[_key];
1951 - }
1952 - _this = _callSuper(this, _default, [].concat(args));
1953 - (0, _defineProperty2.default)(_this, "introductionMap", null);
1954 - _this.initDialog();
1955 - return _this;
1956 - }
1957 - (0, _inherits2.default)(_default, _elementorModules$Mod);
1958 - return (0, _createClass2.default)(_default, [{
1959 - key: "setIntroductionMap",
1960 - value: function setIntroductionMap(map) {
1961 - this.introductionMap = map;
1962 - }
1963 - }, {
1964 - key: "getIntroductionMap",
1965 - value: function getIntroductionMap() {
1966 - return this.introductionMap || elementor.config.user.introduction;
1967 - }
1968 - }, {
1969 - key: "getDefaultSettings",
1970 - value: function getDefaultSettings() {
1971 - return {
1972 - dialogType: 'buttons',
1973 - dialogOptions: {
1974 - effects: {
1975 - hide: 'hide',
1976 - show: 'show'
1977 - },
1978 - hide: {
1979 - onBackgroundClick: false
1980 - }
1981 - }
1982 - };
1983 - }
1984 - }, {
1985 - key: "initDialog",
1986 - value: function initDialog() {
1987 - var _this2 = this;
1988 - var dialog;
1989 - this.getDialog = function () {
1990 - if (!dialog) {
1991 - var settings = _this2.getSettings();
1992 - dialog = elementorCommon.dialogsManager.createWidget(settings.dialogType, settings.dialogOptions);
1993 - if (settings.onDialogInitCallback) {
1994 - settings.onDialogInitCallback.call(_this2, dialog);
1995 - }
1996 - }
1997 - return dialog;
1998 - };
1999 - }
2000 - }, {
2001 - key: "show",
2002 - value: function show(target) {
2003 - if (this.introductionViewed) {
2004 - return;
2005 - }
2006 - var dialog = this.getDialog();
2007 - if (target) {
2008 - dialog.setSettings('position', {
2009 - of: target
2010 - });
2011 - }
2012 - dialog.show();
2013 - }
2014 - }, {
2015 - key: "introductionViewed",
2016 - get: function get() {
2017 - var introductionKey = this.getSettings('introductionKey');
2018 - return this.getIntroductionMap()[introductionKey];
2019 - },
2020 - set: function set(isViewed) {
2021 - var introductionKey = this.getSettings('introductionKey');
2022 - this.getIntroductionMap()[introductionKey] = isViewed;
2023 - }
2024 - }, {
2025 - key: "setViewed",
2026 - value: function () {
2027 - var _setViewed = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
2028 - var _this3 = this;
2029 - return _regenerator.default.wrap(function (_context) {
2030 - while (1) switch (_context.prev = _context.next) {
2031 - case 0:
2032 - this.introductionViewed = true;
2033 - return _context.abrupt("return", new Promise(function (resolve, reject) {
2034 - elementorCommon.ajax.addRequest('introduction_viewed', {
2035 - data: {
2036 - introductionKey: _this3.getSettings('introductionKey')
2037 - },
2038 - success: resolve,
2039 - error: reject
2040 - });
2041 - }));
2042 - case 1:
2043 - case "end":
2044 - return _context.stop();
2045 - }
2046 - }, _callee, this);
2047 - }));
2048 - function setViewed() {
2049 - return _setViewed.apply(this, arguments);
2050 - }
2051 - return setViewed;
2052 - }()
2053 - }]);
2054 -}(elementorModules.Module);
2055 -
2056 2782 /***/ }),
2057 2783
2058 -/***/ "../node_modules/@babel/runtime/helpers/OverloadYield.js":
2059 -/*!***************************************************************!*\
2060 - !*** ../node_modules/@babel/runtime/helpers/OverloadYield.js ***!
2061 - \***************************************************************/
2062 -/***/ ((module) => {
2063 -
2064 -function _OverloadYield(e, d) {
2065 - this.v = e, this.k = d;
2066 -}
2067 -module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports;
2068 -
2069 -/***/ }),
2070 -
2071 -/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
2072 -/*!******************************************************************!*\
2073 - !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
2074 - \******************************************************************/
2075 -/***/ ((module) => {
2076 -
2077 -function _arrayLikeToArray(r, a) {
2078 - (null == a || a > r.length) && (a = r.length);
2079 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
2080 - return n;
2081 -}
2082 -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2083 -
2084 -/***/ }),
2085 -
2086 -/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
2087 -/*!****************************************************************!*\
2088 - !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
2089 - \****************************************************************/
2090 -/***/ ((module) => {
2091 -
2092 -function _arrayWithHoles(r) {
2093 - if (Array.isArray(r)) return r;
2094 -}
2095 -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
2096 -
2097 -/***/ }),
2098 -
2099 -/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js":
2100 -/*!***********************************************************************!*\
2101 - !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
2102 - \***********************************************************************/
2103 -/***/ ((module) => {
2104 -
2105 -function _assertThisInitialized(e) {
2106 - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2107 - return e;
2108 -}
2109 -module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
2110 -
2111 -/***/ }),
2112 -
2113 -/***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js":
2114 -/*!******************************************************************!*\
2115 - !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
2116 - \******************************************************************/
2117 -/***/ ((module) => {
2118 -
2119 -function asyncGeneratorStep(n, t, e, r, o, a, c) {
2120 - try {
2121 - var i = n[a](c),
2122 - u = i.value;
2123 - } catch (n) {
2124 - return void e(n);
2125 - }
2126 - i.done ? t(u) : Promise.resolve(u).then(r, o);
2127 -}
2128 -function _asyncToGenerator(n) {
2129 - return function () {
2130 - var t = this,
2131 - e = arguments;
2132 - return new Promise(function (r, o) {
2133 - var a = n.apply(t, e);
2134 - function _next(n) {
2135 - asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
2136 - }
2137 - function _throw(n) {
2138 - asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
2139 - }
2140 - _next(void 0);
2141 - });
2142 - };
2143 -}
2144 -module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
2145 -
2146 -/***/ }),
2147 -
2148 -/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
2149 -/*!****************************************************************!*\
2150 - !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
2151 - \****************************************************************/
2152 -/***/ ((module) => {
2153 -
2154 -function _classCallCheck(a, n) {
2155 - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
2156 -}
2157 -module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
2158 -
2159 -/***/ }),
2160 -
2161 -/***/ "../node_modules/@babel/runtime/helpers/construct.js":
2162 -/*!***********************************************************!*\
2163 - !*** ../node_modules/@babel/runtime/helpers/construct.js ***!
2164 - \***********************************************************/
2165 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2166 -
2167 -var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js");
2168 -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2169 -function _construct(t, e, r) {
2170 - if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
2171 - var o = [null];
2172 - o.push.apply(o, e);
2173 - var p = new (t.bind.apply(t, o))();
2174 - return r && setPrototypeOf(p, r.prototype), p;
2175 -}
2176 -module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
2177 -
2178 -/***/ }),
2179 -
2180 -/***/ "../node_modules/@babel/runtime/helpers/createClass.js":
2181 -/*!*************************************************************!*\
2182 - !*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
2183 - \*************************************************************/
2184 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2185 -
2186 -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2187 -function _defineProperties(e, r) {
2188 - for (var t = 0; t < r.length; t++) {
2189 - var o = r[t];
2190 - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
2191 - }
2192 -}
2193 -function _createClass(e, r, t) {
2194 - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
2195 - writable: !1
2196 - }), e;
2197 -}
2198 -module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
2199 -
2200 -/***/ }),
2201 -
2202 -/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
2203 -/*!****************************************************************!*\
2204 - !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
2205 - \****************************************************************/
2206 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2207 -
2208 -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2209 -function _defineProperty(e, r, t) {
2210 - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
2211 - value: t,
2212 - enumerable: !0,
2213 - configurable: !0,
2214 - writable: !0
2215 - }) : e[r] = t, e;
2216 -}
2217 -module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
2218 -
2219 -/***/ }),
2220 -
2221 -/***/ "../node_modules/@babel/runtime/helpers/get.js":
2222 -/*!*****************************************************!*\
2223 - !*** ../node_modules/@babel/runtime/helpers/get.js ***!
2224 - \*****************************************************/
2225 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2226 -
2227 -var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js");
2228 -function _get() {
2229 - return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
2230 - var p = superPropBase(e, t);
2231 - if (p) {
2232 - var n = Object.getOwnPropertyDescriptor(p, t);
2233 - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
2234 - }
2235 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments);
2236 -}
2237 -module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
2238 -
2239 -/***/ }),
2240 -
2241 -/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js":
2242 -/*!****************************************************************!*\
2243 - !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
2244 - \****************************************************************/
2245 -/***/ ((module) => {
2246 -
2247 -function _getPrototypeOf(t) {
2248 - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
2249 - return t.__proto__ || Object.getPrototypeOf(t);
2250 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
2251 -}
2252 -module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2253 -
2254 -/***/ }),
2255 -
2256 -/***/ "../node_modules/@babel/runtime/helpers/inherits.js":
2257 -/*!**********************************************************!*\
2258 - !*** ../node_modules/@babel/runtime/helpers/inherits.js ***!
2259 - \**********************************************************/
2260 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2261 -
2262 -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2263 -function _inherits(t, e) {
2264 - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
2265 - t.prototype = Object.create(e && e.prototype, {
2266 - constructor: {
2267 - value: t,
2268 - writable: !0,
2269 - configurable: !0
2270 - }
2271 - }), Object.defineProperty(t, "prototype", {
2272 - writable: !1
2273 - }), e && setPrototypeOf(t, e);
2274 -}
2275 -module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
2276 -
2277 -/***/ }),
2278 -
2279 -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
2280 -/*!***********************************************************************!*\
2281 - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
2282 - \***********************************************************************/
2283 -/***/ ((module) => {
2284 -
2285 -function _interopRequireDefault(e) {
2286 - return e && e.__esModule ? e : {
2287 - "default": e
2288 - };
2289 -}
2290 -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
2291 -
2292 -/***/ }),
2293 -
2294 -/***/ "../node_modules/@babel/runtime/helpers/isNativeFunction.js":
2295 -/*!******************************************************************!*\
2296 - !*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
2297 - \******************************************************************/
2298 -/***/ ((module) => {
2299 -
2300 -function _isNativeFunction(t) {
2301 - try {
2302 - return -1 !== Function.toString.call(t).indexOf("[native code]");
2303 - } catch (n) {
2304 - return "function" == typeof t;
2305 - }
2306 -}
2307 -module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
2308 -
2309 -/***/ }),
2310 -
2311 -/***/ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js":
2312 -/*!**************************************************************************!*\
2313 - !*** ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
2314 - \**************************************************************************/
2315 -/***/ ((module) => {
2316 -
2317 -function _isNativeReflectConstruct() {
2318 - try {
2319 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
2320 - } catch (t) {}
2321 - return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
2322 - return !!t;
2323 - }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
2324 -}
2325 -module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
2326 -
2327 -/***/ }),
2328 -
2329 -/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
2330 -/*!**********************************************************************!*\
2331 - !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
2332 - \**********************************************************************/
2333 -/***/ ((module) => {
2334 -
2335 -function _iterableToArrayLimit(r, l) {
2336 - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2337 - if (null != t) {
2338 - var e,
2339 - n,
2340 - i,
2341 - u,
2342 - a = [],
2343 - f = !0,
2344 - o = !1;
2345 - try {
2346 - if (i = (t = t.call(r)).next, 0 === l) {
2347 - if (Object(t) !== t) return;
2348 - f = !1;
2349 - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
2350 - } catch (r) {
2351 - o = !0, n = r;
2352 - } finally {
2353 - try {
2354 - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
2355 - } finally {
2356 - if (o) throw n;
2357 - }
2358 - }
2359 - return a;
2360 - }
2361 -}
2362 -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
2363 -
2364 -/***/ }),
2365 -
2366 -/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
2367 -/*!*****************************************************************!*\
2368 - !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
2369 - \*****************************************************************/
2370 -/***/ ((module) => {
2371 -
2372 -function _nonIterableRest() {
2373 - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2374 -}
2375 -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
2376 -
2377 -/***/ }),
2378 -
2379 -/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
2380 -/*!***************************************************************************!*\
2381 - !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
2382 - \***************************************************************************/
2383 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2384 -
2385 -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2386 -var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js");
2387 -function _possibleConstructorReturn(t, e) {
2388 - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
2389 - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
2390 - return assertThisInitialized(t);
2391 -}
2392 -module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
2393 -
2394 -/***/ }),
2395 -
2396 -/***/ "../node_modules/@babel/runtime/helpers/readOnlyError.js":
2397 -/*!***************************************************************!*\
2398 - !*** ../node_modules/@babel/runtime/helpers/readOnlyError.js ***!
2399 - \***************************************************************/
2400 -/***/ ((module) => {
2401 -
2402 -function _readOnlyError(r) {
2403 - throw new TypeError('"' + r + '" is read-only');
2404 -}
2405 -module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports;
2406 -
2407 -/***/ }),
2408 -
2409 -/***/ "../node_modules/@babel/runtime/helpers/regenerator.js":
2410 -/*!*************************************************************!*\
2411 - !*** ../node_modules/@babel/runtime/helpers/regenerator.js ***!
2412 - \*************************************************************/
2413 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2414 -
2415 -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js");
2416 -function _regenerator() {
2417 - /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
2418 - var e,
2419 - t,
2420 - r = "function" == typeof Symbol ? Symbol : {},
2421 - n = r.iterator || "@@iterator",
2422 - o = r.toStringTag || "@@toStringTag";
2423 - function i(r, n, o, i) {
2424 - var c = n && n.prototype instanceof Generator ? n : Generator,
2425 - u = Object.create(c.prototype);
2426 - return regeneratorDefine(u, "_invoke", function (r, n, o) {
2427 - var i,
2428 - c,
2429 - u,
2430 - f = 0,
2431 - p = o || [],
2432 - y = !1,
2433 - G = {
2434 - p: 0,
2435 - n: 0,
2436 - v: e,
2437 - a: d,
2438 - f: d.bind(e, 4),
2439 - d: function d(t, r) {
2440 - return i = t, c = 0, u = e, G.n = r, a;
2441 - }
2442 - };
2443 - function d(r, n) {
2444 - for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
2445 - var o,
2446 - i = p[t],
2447 - d = G.p,
2448 - l = i[2];
2449 - r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
2450 - }
2451 - if (o || r > 1) return a;
2452 - throw y = !0, n;
2453 - }
2454 - return function (o, p, l) {
2455 - if (f > 1) throw TypeError("Generator is already running");
2456 - for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
2457 - i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
2458 - try {
2459 - if (f = 2, i) {
2460 - if (c || (o = "next"), t = i[o]) {
2461 - if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
2462 - if (!t.done) return t;
2463 - u = t.value, c < 2 && (c = 0);
2464 - } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
2465 - i = e;
2466 - } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
2467 - } catch (t) {
2468 - i = e, c = 1, u = t;
2469 - } finally {
2470 - f = 1;
2471 - }
2472 - }
2473 - return {
2474 - value: t,
2475 - done: y
2476 - };
2477 - };
2478 - }(r, o, i), !0), u;
2479 - }
2480 - var a = {};
2481 - function Generator() {}
2482 - function GeneratorFunction() {}
2483 - function GeneratorFunctionPrototype() {}
2484 - t = Object.getPrototypeOf;
2485 - var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () {
2486 - return this;
2487 - }), t),
2488 - u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
2489 - function f(e) {
2490 - return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
2491 - }
2492 - return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function () {
2493 - return this;
2494 - }), regeneratorDefine(u, "toString", function () {
2495 - return "[object Generator]";
2496 - }), (module.exports = _regenerator = function _regenerator() {
2497 - return {
2498 - w: i,
2499 - m: f
2500 - };
2501 - }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
2502 -}
2503 -module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
2504 -
2505 -/***/ }),
2506 -
2507 -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js":
2508 -/*!******************************************************************!*\
2509 - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsync.js ***!
2510 - \******************************************************************/
2511 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2512 -
2513 -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js");
2514 -function _regeneratorAsync(n, e, r, t, o) {
2515 - var a = regeneratorAsyncGen(n, e, r, t, o);
2516 - return a.next().then(function (n) {
2517 - return n.done ? n.value : a.next();
2518 - });
2519 -}
2520 -module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports;
2521 -
2522 -/***/ }),
2523 -
2524 -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js":
2525 -/*!*********************************************************************!*\
2526 - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js ***!
2527 - \*********************************************************************/
2528 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2529 -
2530 -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js");
2531 -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js");
2532 -function _regeneratorAsyncGen(r, e, t, o, n) {
2533 - return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise);
2534 -}
2535 -module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports;
2536 -
2537 -/***/ }),
2538 -
2539 -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js":
2540 -/*!**************************************************************************!*\
2541 - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js ***!
2542 - \**************************************************************************/
2543 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2544 -
2545 -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js");
2546 -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js");
2547 -function AsyncIterator(t, e) {
2548 - function n(r, o, i, f) {
2549 - try {
2550 - var c = t[r](o),
2551 - u = c.value;
2552 - return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) {
2553 - n("next", t, i, f);
2554 - }, function (t) {
2555 - n("throw", t, i, f);
2556 - }) : e.resolve(u).then(function (t) {
2557 - c.value = t, i(c);
2558 - }, function (t) {
2559 - return n("throw", t, i, f);
2560 - });
2561 - } catch (t) {
2562 - f(t);
2563 - }
2564 - }
2565 - var r;
2566 - this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
2567 - return this;
2568 - })), regeneratorDefine(this, "_invoke", function (t, o, i) {
2569 - function f() {
2570 - return new e(function (e, r) {
2571 - n(t, i, e, r);
2572 - });
2573 - }
2574 - return r = r ? r.then(f, f) : f();
2575 - }, !0);
2576 -}
2577 -module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports;
2578 -
2579 -/***/ }),
2580 -
2581 -/***/ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js":
2582 -/*!*******************************************************************!*\
2583 - !*** ../node_modules/@babel/runtime/helpers/regeneratorDefine.js ***!
2584 - \*******************************************************************/
2585 -/***/ ((module) => {
2586 -
2587 -function _regeneratorDefine(e, r, n, t) {
2588 - var i = Object.defineProperty;
2589 - try {
2590 - i({}, "", {});
2591 - } catch (e) {
2592 - i = 0;
2593 - }
2594 - module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) {
2595 - function o(r, n) {
2596 - _regeneratorDefine(e, r, function (e) {
2597 - return this._invoke(r, n, e);
2598 - });
2599 - }
2600 - r ? i ? i(e, r, {
2601 - value: n,
2602 - enumerable: !t,
2603 - configurable: !t,
2604 - writable: !t
2605 - }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
2606 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t);
2607 -}
2608 -module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports;
2609 -
2610 -/***/ }),
2611 -
2612 -/***/ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js":
2613 -/*!*****************************************************************!*\
2614 - !*** ../node_modules/@babel/runtime/helpers/regeneratorKeys.js ***!
2615 - \*****************************************************************/
2616 -/***/ ((module) => {
2617 -
2618 -function _regeneratorKeys(e) {
2619 - var n = Object(e),
2620 - r = [];
2621 - for (var t in n) r.unshift(t);
2622 - return function e() {
2623 - for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e;
2624 - return e.done = !0, e;
2625 - };
2626 -}
2627 -module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports;
2628 -
2629 -/***/ }),
2630 -
2631 -/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js":
2632 -/*!********************************************************************!*\
2633 - !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
2634 - \********************************************************************/
2635 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2636 -
2637 -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js");
2638 -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js");
2639 -var regeneratorAsync = __webpack_require__(/*! ./regeneratorAsync.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js");
2640 -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js");
2641 -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js");
2642 -var regeneratorKeys = __webpack_require__(/*! ./regeneratorKeys.js */ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js");
2643 -var regeneratorValues = __webpack_require__(/*! ./regeneratorValues.js */ "../node_modules/@babel/runtime/helpers/regeneratorValues.js");
2644 -function _regeneratorRuntime() {
2645 - "use strict";
2646 -
2647 - var r = regenerator(),
2648 - e = r.m(_regeneratorRuntime),
2649 - t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
2650 - function n(r) {
2651 - var e = "function" == typeof r && r.constructor;
2652 - return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
2653 - }
2654 - var o = {
2655 - "throw": 1,
2656 - "return": 2,
2657 - "break": 3,
2658 - "continue": 3
2659 - };
2660 - function a(r) {
2661 - var e, t;
2662 - return function (n) {
2663 - e || (e = {
2664 - stop: function stop() {
2665 - return t(n.a, 2);
2666 - },
2667 - "catch": function _catch() {
2668 - return n.v;
2669 - },
2670 - abrupt: function abrupt(r, e) {
2671 - return t(n.a, o[r], e);
2672 - },
2673 - delegateYield: function delegateYield(r, o, a) {
2674 - return e.resultName = o, t(n.d, regeneratorValues(r), a);
2675 - },
2676 - finish: function finish(r) {
2677 - return t(n.f, r);
2678 - }
2679 - }, t = function t(r, _t, o) {
2680 - n.p = e.prev, n.n = e.next;
2681 - try {
2682 - return r(_t, o);
2683 - } finally {
2684 - e.next = n.n;
2685 - }
2686 - }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
2687 - try {
2688 - return r.call(this, e);
2689 - } finally {
2690 - n.p = e.prev, n.n = e.next;
2691 - }
2692 - };
2693 - }
2694 - return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
2695 - return {
2696 - wrap: function wrap(e, t, n, o) {
2697 - return r.w(a(e), t, n, o && o.reverse());
2698 - },
2699 - isGeneratorFunction: n,
2700 - mark: r.m,
2701 - awrap: function awrap(r, e) {
2702 - return new OverloadYield(r, e);
2703 - },
2704 - AsyncIterator: regeneratorAsyncIterator,
2705 - async: function async(r, e, t, o, u) {
2706 - return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u);
2707 - },
2708 - keys: regeneratorKeys,
2709 - values: regeneratorValues
2710 - };
2711 - }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
2712 -}
2713 -module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
2714 -
2715 -/***/ }),
2716 -
2717 -/***/ "../node_modules/@babel/runtime/helpers/regeneratorValues.js":
2718 -/*!*******************************************************************!*\
2719 - !*** ../node_modules/@babel/runtime/helpers/regeneratorValues.js ***!
2720 - \*******************************************************************/
2721 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2722 -
2723 -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2724 -function _regeneratorValues(e) {
2725 - if (null != e) {
2726 - var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
2727 - r = 0;
2728 - if (t) return t.call(e);
2729 - if ("function" == typeof e.next) return e;
2730 - if (!isNaN(e.length)) return {
2731 - next: function next() {
2732 - return e && r >= e.length && (e = void 0), {
2733 - value: e && e[r++],
2734 - done: !e
2735 - };
2736 - }
2737 - };
2738 - }
2739 - throw new TypeError(_typeof(e) + " is not iterable");
2740 -}
2741 -module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports;
2742 -
2743 -/***/ }),
2744 -
2745 -/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js":
2746 -/*!****************************************************************!*\
2747 - !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
2748 - \****************************************************************/
2749 -/***/ ((module) => {
2750 -
2751 -function _setPrototypeOf(t, e) {
2752 - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
2753 - return t.__proto__ = e, t;
2754 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
2755 -}
2756 -module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2757 -
2758 -/***/ }),
2759 -
2760 -/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
2761 -/*!***************************************************************!*\
2762 - !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
2763 - \***************************************************************/
2764 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2765 -
2766 -var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
2767 -var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
2768 -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
2769 -var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
2770 -function _slicedToArray(r, e) {
2771 - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
2772 -}
2773 -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2774 -
2775 -/***/ }),
2776 -
2777 -/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js":
2778 -/*!***************************************************************!*\
2779 - !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***!
2780 - \***************************************************************/
2781 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2782 -
2783 -var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
2784 -function _superPropBase(t, o) {
2785 - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t)););
2786 - return t;
2787 -}
2788 -module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
2789 -
2790 -/***/ }),
2791 -
2792 -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
2793 -/*!*************************************************************!*\
2794 - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
2795 - \*************************************************************/
2796 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2797 -
2798 -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2799 -function toPrimitive(t, r) {
2800 - if ("object" != _typeof(t) || !t) return t;
2801 - var e = t[Symbol.toPrimitive];
2802 - if (void 0 !== e) {
2803 - var i = e.call(t, r || "default");
2804 - if ("object" != _typeof(i)) return i;
2805 - throw new TypeError("@@toPrimitive must return a primitive value.");
2806 - }
2807 - return ("string" === r ? String : Number)(t);
2808 -}
2809 -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
2810 -
2811 -/***/ }),
2812 -
2813 -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
2814 -/*!***************************************************************!*\
2815 - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
2816 - \***************************************************************/
2817 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2818 -
2819 -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2820 -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
2821 -function toPropertyKey(t) {
2822 - var i = toPrimitive(t, "string");
2823 - return "symbol" == _typeof(i) ? i : i + "";
2824 -}
2825 -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
2826 -
2827 -/***/ }),
2828 -
2829 -/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
2830 -/*!********************************************************!*\
2831 - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
2832 - \********************************************************/
2833 -/***/ ((module) => {
2834 -
2835 -function _typeof(o) {
2836 - "@babel/helpers - typeof";
2837 -
2838 - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
2839 - return typeof o;
2840 - } : function (o) {
2841 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
2842 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
2843 -}
2844 -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
2845 -
2846 -/***/ }),
2847 -
2848 -/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
2849 -/*!****************************************************************************!*\
2850 - !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
2851 - \****************************************************************************/
2852 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2853 -
2854 -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
2855 -function _unsupportedIterableToArray(r, a) {
2856 - if (r) {
2857 - if ("string" == typeof r) return arrayLikeToArray(r, a);
2858 - var t = {}.toString.call(r).slice(8, -1);
2859 - 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;
2860 - }
2861 -}
2862 -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2863 -
2864 -/***/ }),
2865 -
2866 -/***/ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js":
2867 -/*!*****************************************************************!*\
2868 - !*** ../node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
2869 - \*****************************************************************/
2870 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2871 -
2872 -var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
2873 -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2874 -var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime/helpers/isNativeFunction.js");
2875 -var construct = __webpack_require__(/*! ./construct.js */ "../node_modules/@babel/runtime/helpers/construct.js");
2876 -function _wrapNativeSuper(t) {
2877 - var r = "function" == typeof Map ? new Map() : void 0;
2878 - return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) {
2879 - if (null === t || !isNativeFunction(t)) return t;
2880 - if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
2881 - if (void 0 !== r) {
2882 - if (r.has(t)) return r.get(t);
2883 - r.set(t, Wrapper);
2884 - }
2885 - function Wrapper() {
2886 - return construct(t, arguments, getPrototypeOf(this).constructor);
2887 - }
2888 - return Wrapper.prototype = Object.create(t.prototype, {
2889 - constructor: {
2890 - value: Wrapper,
2891 - enumerable: !1,
2892 - writable: !0,
2893 - configurable: !0
2894 - }
2895 - }), setPrototypeOf(Wrapper, t);
2896 - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t);
2897 -}
2898 -module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
2899 -
2900 -/***/ }),
2901 -
2902 -/***/ "../node_modules/@babel/runtime/regenerator/index.js":
2903 -/*!***********************************************************!*\
2904 - !*** ../node_modules/@babel/runtime/regenerator/index.js ***!
2905 - \***********************************************************/
2906 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2907 -
2908 -// TODO(Babel 8): Remove this file.
2909 -
2910 -var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();
2911 -module.exports = runtime;
2912 -
2913 -// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
2914 -try {
2915 - regeneratorRuntime = runtime;
2916 -} catch (accidentalStrictMode) {
2917 - if (typeof globalThis === "object") {
2918 - globalThis.regeneratorRuntime = runtime;
2919 - } else {
2920 - Function("r", "regeneratorRuntime = r")(runtime);
2921 - }
2922 -}
2923 -
2924 -
2925 -/***/ }),
2926 -
2927 2784 /***/ "@wordpress/i18n":
2928 2785 /*!**************************!*\
2929 2786 !*** external "wp.i18n" ***!
2930 2787 \**************************/
@@ -2962,9 +2819,9 @@
2962 2819 /******/ }
2963 2820 /******/
2964 2821 /************************************************************************/
2965 2822 var __webpack_exports__ = {};
2966 -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
2823 +// This entry need to be wrapped in an IIFE because it need to be in strict mode.
2967 2824 (() => {
2968 2825 "use strict";
2969 2826 /*!******************************************!*\
2970 2827 !*** ../assets/dev/js/editor/modules.js ***!
@@ -2971,13 +2828,19 @@
2971 2828 \******************************************/
2972 2829
2973 2830
2974 2831 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
2832 +
2975 2833 var _module = _interopRequireDefault(__webpack_require__(/*! ./utils/module */ "../assets/dev/js/editor/utils/module.js"));
2976 -var _introduction = _interopRequireDefault(__webpack_require__(/*! ../utils/introduction */ "../assets/dev/js/utils/introduction.js"));
2834 +
2835 +var _introduction = _interopRequireDefault(__webpack_require__(/*! ./utils/introduction */ "../assets/dev/js/editor/utils/introduction.js"));
2836 +
2977 2837 var _controlsStack = _interopRequireDefault(__webpack_require__(/*! ./views/controls-stack */ "../assets/dev/js/editor/views/controls-stack.js"));
2838 +
2978 2839 var _baseSettings = _interopRequireDefault(__webpack_require__(/*! ./elements/models/base-settings */ "../assets/dev/js/editor/elements/models/base-settings.js"));
2840 +
2979 2841 var _container = _interopRequireDefault(__webpack_require__(/*! ./container/container */ "../assets/dev/js/editor/container/container.js"));
2842 +
2980 2843 elementorModules.editor = {
2981 2844 elements: {
2982 2845 models: {
2983 2846 BaseSettings: _baseSettings.default