PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.8
Elementor Website Builder – more than just a page builder v3.0.8
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 4.0.7 All 451 releases
elementor / assets / js / admin.js

admin.js in Elementor Website Builder – more than just a page builder 3.0.8, at assets/js/admin.js

1,792 lines 56.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! elementor - v3.0.8 - 14-09-2020 */
2 /******/ (function(modules) { // webpackBootstrap
3 /******/ // The module cache
4 /******/ var installedModules = {};
5 /******/
6 /******/ // The require function
7 /******/ function __webpack_require__(moduleId) {
8 /******/
9 /******/ // Check if module is in cache
10 /******/ if(installedModules[moduleId]) {
11 /******/ return installedModules[moduleId].exports;
12 /******/ }
13 /******/ // Create a new module (and put it into the cache)
14 /******/ var module = installedModules[moduleId] = {
15 /******/ i: moduleId,
16 /******/ l: false,
17 /******/ exports: {}
18 /******/ };
19 /******/
20 /******/ // Execute the module function
21 /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22 /******/
23 /******/ // Flag the module as loaded
24 /******/ module.l = true;
25 /******/
26 /******/ // Return the exports of the module
27 /******/ return module.exports;
28 /******/ }
29 /******/
30 /******/
31 /******/ // expose the modules object (__webpack_modules__)
32 /******/ __webpack_require__.m = modules;
33 /******/
34 /******/ // expose the module cache
35 /******/ __webpack_require__.c = installedModules;
36 /******/
37 /******/ // define getter function for harmony exports
38 /******/ __webpack_require__.d = function(exports, name, getter) {
39 /******/ if(!__webpack_require__.o(exports, name)) {
40 /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41 /******/ }
42 /******/ };
43 /******/
44 /******/ // define __esModule on exports
45 /******/ __webpack_require__.r = function(exports) {
46 /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48 /******/ }
49 /******/ Object.defineProperty(exports, '__esModule', { value: true });
50 /******/ };
51 /******/
52 /******/ // create a fake namespace object
53 /******/ // mode & 1: value is a module id, require it
54 /******/ // mode & 2: merge all properties of value into the ns
55 /******/ // mode & 4: return value when already ns object
56 /******/ // mode & 8|1: behave like require
57 /******/ __webpack_require__.t = function(value, mode) {
58 /******/ if(mode & 1) value = __webpack_require__(value);
59 /******/ if(mode & 8) return value;
60 /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61 /******/ var ns = Object.create(null);
62 /******/ __webpack_require__.r(ns);
63 /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64 /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65 /******/ return ns;
66 /******/ };
67 /******/
68 /******/ // getDefaultExport function for compatibility with non-harmony modules
69 /******/ __webpack_require__.n = function(module) {
70 /******/ var getter = module && module.__esModule ?
71 /******/ function getDefault() { return module['default']; } :
72 /******/ function getModuleExports() { return module; };
73 /******/ __webpack_require__.d(getter, 'a', getter);
74 /******/ return getter;
75 /******/ };
76 /******/
77 /******/ // Object.prototype.hasOwnProperty.call
78 /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79 /******/
80 /******/ // __webpack_public_path__
81 /******/ __webpack_require__.p = "";
82 /******/
83 /******/
84 /******/ // Load entry module and return exports
85 /******/ return __webpack_require__(__webpack_require__.s = 712);
86 /******/ })
87 /************************************************************************/
88 /******/ ({
89
90 /***/ 106:
91 /***/ (function(module, exports) {
92
93 module.exports = function (bitmap, value) {
94 return {
95 enumerable: !(bitmap & 1),
96 configurable: !(bitmap & 2),
97 writable: !(bitmap & 4),
98 value: value
99 };
100 };
101
102
103 /***/ }),
104
105 /***/ 108:
106 /***/ (function(module, exports, __webpack_require__) {
107
108 "use strict";
109
110 var at = __webpack_require__(146)(true);
111
112 // `AdvanceStringIndex` abstract operation
113 // https://tc39.github.io/ecma262/#sec-advancestringindex
114 module.exports = function (S, index, unicode) {
115 return index + (unicode ? at(S, index).length : 1);
116 };
117
118
119 /***/ }),
120
121 /***/ 109:
122 /***/ (function(module, exports, __webpack_require__) {
123
124 "use strict";
125
126 // 21.2.5.3 get RegExp.prototype.flags
127 var anObject = __webpack_require__(20);
128 module.exports = function () {
129 var that = anObject(this);
130 var result = '';
131 if (that.global) result += 'g';
132 if (that.ignoreCase) result += 'i';
133 if (that.multiline) result += 'm';
134 if (that.unicode) result += 'u';
135 if (that.sticky) result += 'y';
136 return result;
137 };
138
139
140 /***/ }),
141
142 /***/ 113:
143 /***/ (function(module, exports, __webpack_require__) {
144
145 var isObject = __webpack_require__(30);
146 var document = __webpack_require__(18).document;
147 // typeof document.createElement is 'object' in old IE
148 var is = isObject(document) && isObject(document.createElement);
149 module.exports = function (it) {
150 return is ? document.createElement(it) : {};
151 };
152
153
154 /***/ }),
155
156 /***/ 114:
157 /***/ (function(module, exports) {
158
159 module.exports = false;
160
161
162 /***/ }),
163
164 /***/ 116:
165 /***/ (function(module, exports, __webpack_require__) {
166
167 // getting tag from 19.1.3.6 Object.prototype.toString()
168 var cof = __webpack_require__(50);
169 var TAG = __webpack_require__(13)('toStringTag');
170 // ES3 wrong here
171 var ARG = cof(function () { return arguments; }()) == 'Arguments';
172
173 // fallback for IE11 Script Access Denied error
174 var tryGet = function (it, key) {
175 try {
176 return it[key];
177 } catch (e) { /* empty */ }
178 };
179
180 module.exports = function (it) {
181 var O, T, B;
182 return it === undefined ? 'Undefined' : it === null ? 'Null'
183 // @@toStringTag case
184 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
185 // builtinTag case
186 : ARG ? cof(O)
187 // ES3 arguments fallback
188 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
189 };
190
191
192 /***/ }),
193
194 /***/ 121:
195 /***/ (function(module, exports, __webpack_require__) {
196
197 // fallback for non-array-like ES3 and non-enumerable old V8 strings
198 var cof = __webpack_require__(50);
199 // eslint-disable-next-line no-prototype-builtins
200 module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
201 return cof(it) == 'String' ? it.split('') : Object(it);
202 };
203
204
205 /***/ }),
206
207 /***/ 123:
208 /***/ (function(module, exports, __webpack_require__) {
209
210 // 7.2.8 IsRegExp(argument)
211 var isObject = __webpack_require__(30);
212 var cof = __webpack_require__(50);
213 var MATCH = __webpack_require__(13)('match');
214 module.exports = function (it) {
215 var isRegExp;
216 return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
217 };
218
219
220 /***/ }),
221
222 /***/ 124:
223 /***/ (function(module, exports, __webpack_require__) {
224
225 // 7.1.1 ToPrimitive(input [, PreferredType])
226 var isObject = __webpack_require__(30);
227 // instead of the ES6 spec version, we didn't implement @@toPrimitive case
228 // and the second argument - flag - preferred type is a string
229 module.exports = function (it, S) {
230 if (!isObject(it)) return it;
231 var fn, val;
232 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
233 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
234 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
235 throw TypeError("Can't convert object to primitive value");
236 };
237
238
239 /***/ }),
240
241 /***/ 13:
242 /***/ (function(module, exports, __webpack_require__) {
243
244 var store = __webpack_require__(76)('wks');
245 var uid = __webpack_require__(77);
246 var Symbol = __webpack_require__(18).Symbol;
247 var USE_SYMBOL = typeof Symbol == 'function';
248
249 var $exports = module.exports = function (name) {
250 return store[name] || (store[name] =
251 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
252 };
253
254 $exports.store = store;
255
256
257 /***/ }),
258
259 /***/ 131:
260 /***/ (function(module, exports, __webpack_require__) {
261
262 module.exports = !__webpack_require__(27) && !__webpack_require__(35)(function () {
263 return Object.defineProperty(__webpack_require__(113)('div'), 'a', { get: function () { return 7; } }).a != 7;
264 });
265
266
267 /***/ }),
268
269 /***/ 146:
270 /***/ (function(module, exports, __webpack_require__) {
271
272 var toInteger = __webpack_require__(59);
273 var defined = __webpack_require__(43);
274 // true -> String#at
275 // false -> String#codePointAt
276 module.exports = function (TO_STRING) {
277 return function (that, pos) {
278 var s = String(defined(that));
279 var i = toInteger(pos);
280 var l = s.length;
281 var a, b;
282 if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
283 a = s.charCodeAt(i);
284 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
285 ? TO_STRING ? s.charAt(i) : a
286 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
287 };
288 };
289
290
291 /***/ }),
292
293 /***/ 147:
294 /***/ (function(module, exports, __webpack_require__) {
295
296 module.exports = __webpack_require__(76)('native-function-to-string', Function.toString);
297
298
299 /***/ }),
300
301 /***/ 18:
302 /***/ (function(module, exports) {
303
304 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
305 var global = module.exports = typeof window != 'undefined' && window.Math == Math
306 ? window : typeof self != 'undefined' && self.Math == Math ? self
307 // eslint-disable-next-line no-new-func
308 : Function('return this')();
309 if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
310
311
312 /***/ }),
313
314 /***/ 180:
315 /***/ (function(module, exports, __webpack_require__) {
316
317 // 7.3.20 SpeciesConstructor(O, defaultConstructor)
318 var anObject = __webpack_require__(20);
319 var aFunction = __webpack_require__(95);
320 var SPECIES = __webpack_require__(13)('species');
321 module.exports = function (O, D) {
322 var C = anObject(O).constructor;
323 var S;
324 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
325 };
326
327
328 /***/ }),
329
330 /***/ 189:
331 /***/ (function(module, exports, __webpack_require__) {
332
333 // 0 -> Array#forEach
334 // 1 -> Array#map
335 // 2 -> Array#filter
336 // 3 -> Array#some
337 // 4 -> Array#every
338 // 5 -> Array#find
339 // 6 -> Array#findIndex
340 var ctx = __webpack_require__(80);
341 var IObject = __webpack_require__(121);
342 var toObject = __webpack_require__(99);
343 var toLength = __webpack_require__(45);
344 var asc = __webpack_require__(216);
345 module.exports = function (TYPE, $create) {
346 var IS_MAP = TYPE == 1;
347 var IS_FILTER = TYPE == 2;
348 var IS_SOME = TYPE == 3;
349 var IS_EVERY = TYPE == 4;
350 var IS_FIND_INDEX = TYPE == 6;
351 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
352 var create = $create || asc;
353 return function ($this, callbackfn, that) {
354 var O = toObject($this);
355 var self = IObject(O);
356 var f = ctx(callbackfn, that, 3);
357 var length = toLength(self.length);
358 var index = 0;
359 var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
360 var val, res;
361 for (;length > index; index++) if (NO_HOLES || index in self) {
362 val = self[index];
363 res = f(val, index, O);
364 if (TYPE) {
365 if (IS_MAP) result[index] = res; // map
366 else if (res) switch (TYPE) {
367 case 3: return true; // some
368 case 5: return val; // find
369 case 6: return index; // findIndex
370 case 2: result.push(val); // filter
371 } else if (IS_EVERY) return false; // every
372 }
373 }
374 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
375 };
376 };
377
378
379 /***/ }),
380
381 /***/ 196:
382 /***/ (function(module, exports, __webpack_require__) {
383
384 "use strict";
385
386 var regexpExec = __webpack_require__(92);
387 __webpack_require__(37)({
388 target: 'RegExp',
389 proto: true,
390 forced: regexpExec !== /./.exec
391 }, {
392 exec: regexpExec
393 });
394
395
396 /***/ }),
397
398 /***/ 20:
399 /***/ (function(module, exports, __webpack_require__) {
400
401 var isObject = __webpack_require__(30);
402 module.exports = function (it) {
403 if (!isObject(it)) throw TypeError(it + ' is not an object!');
404 return it;
405 };
406
407
408 /***/ }),
409
410 /***/ 216:
411 /***/ (function(module, exports, __webpack_require__) {
412
413 // 9.4.2.3 ArraySpeciesCreate(originalArray, length)
414 var speciesConstructor = __webpack_require__(217);
415
416 module.exports = function (original, length) {
417 return new (speciesConstructor(original))(length);
418 };
419
420
421 /***/ }),
422
423 /***/ 217:
424 /***/ (function(module, exports, __webpack_require__) {
425
426 var isObject = __webpack_require__(30);
427 var isArray = __webpack_require__(218);
428 var SPECIES = __webpack_require__(13)('species');
429
430 module.exports = function (original) {
431 var C;
432 if (isArray(original)) {
433 C = original.constructor;
434 // cross-realm fallback
435 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
436 if (isObject(C)) {
437 C = C[SPECIES];
438 if (C === null) C = undefined;
439 }
440 } return C === undefined ? Array : C;
441 };
442
443
444 /***/ }),
445
446 /***/ 218:
447 /***/ (function(module, exports, __webpack_require__) {
448
449 // 7.2.2 IsArray(argument)
450 var cof = __webpack_require__(50);
451 module.exports = Array.isArray || function isArray(arg) {
452 return cof(arg) == 'Array';
453 };
454
455
456 /***/ }),
457
458 /***/ 26:
459 /***/ (function(module, exports, __webpack_require__) {
460
461 "use strict";
462
463 // 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
464 var $export = __webpack_require__(37);
465 var $find = __webpack_require__(189)(5);
466 var KEY = 'find';
467 var forced = true;
468 // Shouldn't skip holes
469 if (KEY in []) Array(1)[KEY](function () { forced = false; });
470 $export($export.P + $export.F * forced, 'Array', {
471 find: function find(callbackfn /* , that = undefined */) {
472 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
473 }
474 });
475 __webpack_require__(89)(KEY);
476
477
478 /***/ }),
479
480 /***/ 27:
481 /***/ (function(module, exports, __webpack_require__) {
482
483 // Thank's IE8 for his funny defineProperty
484 module.exports = !__webpack_require__(35)(function () {
485 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
486 });
487
488
489 /***/ }),
490
491 /***/ 29:
492 /***/ (function(module, exports, __webpack_require__) {
493
494 var dP = __webpack_require__(49);
495 var createDesc = __webpack_require__(106);
496 module.exports = __webpack_require__(27) ? function (object, key, value) {
497 return dP.f(object, key, createDesc(1, value));
498 } : function (object, key, value) {
499 object[key] = value;
500 return object;
501 };
502
503
504 /***/ }),
505
506 /***/ 30:
507 /***/ (function(module, exports) {
508
509 module.exports = function (it) {
510 return typeof it === 'object' ? it !== null : typeof it === 'function';
511 };
512
513
514 /***/ }),
515
516 /***/ 334:
517 /***/ (function(module, exports, __webpack_require__) {
518
519 "use strict";
520
521
522 var anObject = __webpack_require__(20);
523 var sameValue = __webpack_require__(386);
524 var regExpExec = __webpack_require__(97);
525
526 // @@search logic
527 __webpack_require__(98)('search', 1, function (defined, SEARCH, $search, maybeCallNative) {
528 return [
529 // `String.prototype.search` method
530 // https://tc39.github.io/ecma262/#sec-string.prototype.search
531 function search(regexp) {
532 var O = defined(this);
533 var fn = regexp == undefined ? undefined : regexp[SEARCH];
534 return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
535 },
536 // `RegExp.prototype[@@search]` method
537 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search
538 function (regexp) {
539 var res = maybeCallNative($search, regexp, this);
540 if (res.done) return res.value;
541 var rx = anObject(regexp);
542 var S = String(this);
543 var previousLastIndex = rx.lastIndex;
544 if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
545 var result = regExpExec(rx, S);
546 if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
547 return result === null ? -1 : result.index;
548 }
549 ];
550 });
551
552
553 /***/ }),
554
555 /***/ 35:
556 /***/ (function(module, exports) {
557
558 module.exports = function (exec) {
559 try {
560 return !!exec();
561 } catch (e) {
562 return true;
563 }
564 };
565
566
567 /***/ }),
568
569 /***/ 37:
570 /***/ (function(module, exports, __webpack_require__) {
571
572 var global = __webpack_require__(18);
573 var core = __webpack_require__(57);
574 var hide = __webpack_require__(29);
575 var redefine = __webpack_require__(39);
576 var ctx = __webpack_require__(80);
577 var PROTOTYPE = 'prototype';
578
579 var $export = function (type, name, source) {
580 var IS_FORCED = type & $export.F;
581 var IS_GLOBAL = type & $export.G;
582 var IS_STATIC = type & $export.S;
583 var IS_PROTO = type & $export.P;
584 var IS_BIND = type & $export.B;
585 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
586 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
587 var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
588 var key, own, out, exp;
589 if (IS_GLOBAL) source = name;
590 for (key in source) {
591 // contains in native
592 own = !IS_FORCED && target && target[key] !== undefined;
593 // export native or passed
594 out = (own ? target : source)[key];
595 // bind timers to global for call from export context
596 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
597 // extend global
598 if (target) redefine(target, key, out, type & $export.U);
599 // export
600 if (exports[key] != out) hide(exports, key, exp);
601 if (IS_PROTO && expProto[key] != out) expProto[key] = out;
602 }
603 };
604 global.core = core;
605 // type bitmap
606 $export.F = 1; // forced
607 $export.G = 2; // global
608 $export.S = 4; // static
609 $export.P = 8; // proto
610 $export.B = 16; // bind
611 $export.W = 32; // wrap
612 $export.U = 64; // safe
613 $export.R = 128; // real proto method for `library`
614 module.exports = $export;
615
616
617 /***/ }),
618
619 /***/ 386:
620 /***/ (function(module, exports) {
621
622 // 7.2.9 SameValue(x, y)
623 module.exports = Object.is || function is(x, y) {
624 // eslint-disable-next-line no-self-compare
625 return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
626 };
627
628
629 /***/ }),
630
631 /***/ 39:
632 /***/ (function(module, exports, __webpack_require__) {
633
634 var global = __webpack_require__(18);
635 var hide = __webpack_require__(29);
636 var has = __webpack_require__(64);
637 var SRC = __webpack_require__(77)('src');
638 var $toString = __webpack_require__(147);
639 var TO_STRING = 'toString';
640 var TPL = ('' + $toString).split(TO_STRING);
641
642 __webpack_require__(57).inspectSource = function (it) {
643 return $toString.call(it);
644 };
645
646 (module.exports = function (O, key, val, safe) {
647 var isFunction = typeof val == 'function';
648 if (isFunction) has(val, 'name') || hide(val, 'name', key);
649 if (O[key] === val) return;
650 if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
651 if (O === global) {
652 O[key] = val;
653 } else if (!safe) {
654 delete O[key];
655 hide(O, key, val);
656 } else if (O[key]) {
657 O[key] = val;
658 } else {
659 hide(O, key, val);
660 }
661 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
662 })(Function.prototype, TO_STRING, function toString() {
663 return typeof this == 'function' && this[SRC] || $toString.call(this);
664 });
665
666
667 /***/ }),
668
669 /***/ 43:
670 /***/ (function(module, exports) {
671
672 // 7.2.1 RequireObjectCoercible(argument)
673 module.exports = function (it) {
674 if (it == undefined) throw TypeError("Can't call method on " + it);
675 return it;
676 };
677
678
679 /***/ }),
680
681 /***/ 45:
682 /***/ (function(module, exports, __webpack_require__) {
683
684 // 7.1.15 ToLength
685 var toInteger = __webpack_require__(59);
686 var min = Math.min;
687 module.exports = function (it) {
688 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
689 };
690
691
692 /***/ }),
693
694 /***/ 49:
695 /***/ (function(module, exports, __webpack_require__) {
696
697 var anObject = __webpack_require__(20);
698 var IE8_DOM_DEFINE = __webpack_require__(131);
699 var toPrimitive = __webpack_require__(124);
700 var dP = Object.defineProperty;
701
702 exports.f = __webpack_require__(27) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
703 anObject(O);
704 P = toPrimitive(P, true);
705 anObject(Attributes);
706 if (IE8_DOM_DEFINE) try {
707 return dP(O, P, Attributes);
708 } catch (e) { /* empty */ }
709 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
710 if ('value' in Attributes) O[P] = Attributes.value;
711 return O;
712 };
713
714
715 /***/ }),
716
717 /***/ 50:
718 /***/ (function(module, exports) {
719
720 var toString = {}.toString;
721
722 module.exports = function (it) {
723 return toString.call(it).slice(8, -1);
724 };
725
726
727 /***/ }),
728
729 /***/ 57:
730 /***/ (function(module, exports) {
731
732 var core = module.exports = { version: '2.6.11' };
733 if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
734
735
736 /***/ }),
737
738 /***/ 59:
739 /***/ (function(module, exports) {
740
741 // 7.1.4 ToInteger
742 var ceil = Math.ceil;
743 var floor = Math.floor;
744 module.exports = function (it) {
745 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
746 };
747
748
749 /***/ }),
750
751 /***/ 60:
752 /***/ (function(module, exports, __webpack_require__) {
753
754 "use strict";
755
756
757 var anObject = __webpack_require__(20);
758 var toObject = __webpack_require__(99);
759 var toLength = __webpack_require__(45);
760 var toInteger = __webpack_require__(59);
761 var advanceStringIndex = __webpack_require__(108);
762 var regExpExec = __webpack_require__(97);
763 var max = Math.max;
764 var min = Math.min;
765 var floor = Math.floor;
766 var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g;
767 var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g;
768
769 var maybeToString = function (it) {
770 return it === undefined ? it : String(it);
771 };
772
773 // @@replace logic
774 __webpack_require__(98)('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {
775 return [
776 // `String.prototype.replace` method
777 // https://tc39.github.io/ecma262/#sec-string.prototype.replace
778 function replace(searchValue, replaceValue) {
779 var O = defined(this);
780 var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
781 return fn !== undefined
782 ? fn.call(searchValue, O, replaceValue)
783 : $replace.call(String(O), searchValue, replaceValue);
784 },
785 // `RegExp.prototype[@@replace]` method
786 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
787 function (regexp, replaceValue) {
788 var res = maybeCallNative($replace, regexp, this, replaceValue);
789 if (res.done) return res.value;
790
791 var rx = anObject(regexp);
792 var S = String(this);
793 var functionalReplace = typeof replaceValue === 'function';
794 if (!functionalReplace) replaceValue = String(replaceValue);
795 var global = rx.global;
796 if (global) {
797 var fullUnicode = rx.unicode;
798 rx.lastIndex = 0;
799 }
800 var results = [];
801 while (true) {
802 var result = regExpExec(rx, S);
803 if (result === null) break;
804 results.push(result);
805 if (!global) break;
806 var matchStr = String(result[0]);
807 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
808 }
809 var accumulatedResult = '';
810 var nextSourcePosition = 0;
811 for (var i = 0; i < results.length; i++) {
812 result = results[i];
813 var matched = String(result[0]);
814 var position = max(min(toInteger(result.index), S.length), 0);
815 var captures = [];
816 // NOTE: This is equivalent to
817 // captures = result.slice(1).map(maybeToString)
818 // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
819 // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
820 // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
821 for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
822 var namedCaptures = result.groups;
823 if (functionalReplace) {
824 var replacerArgs = [matched].concat(captures, position, S);
825 if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
826 var replacement = String(replaceValue.apply(undefined, replacerArgs));
827 } else {
828 replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
829 }
830 if (position >= nextSourcePosition) {
831 accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
832 nextSourcePosition = position + matched.length;
833 }
834 }
835 return accumulatedResult + S.slice(nextSourcePosition);
836 }
837 ];
838
839 // https://tc39.github.io/ecma262/#sec-getsubstitution
840 function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
841 var tailPos = position + matched.length;
842 var m = captures.length;
843 var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
844 if (namedCaptures !== undefined) {
845 namedCaptures = toObject(namedCaptures);
846 symbols = SUBSTITUTION_SYMBOLS;
847 }
848 return $replace.call(replacement, symbols, function (match, ch) {
849 var capture;
850 switch (ch.charAt(0)) {
851 case '$': return '$';
852 case '&': return matched;
853 case '`': return str.slice(0, position);
854 case "'": return str.slice(tailPos);
855 case '<':
856 capture = namedCaptures[ch.slice(1, -1)];
857 break;
858 default: // \d\d?
859 var n = +ch;
860 if (n === 0) return match;
861 if (n > m) {
862 var f = floor(n / 10);
863 if (f === 0) return match;
864 if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
865 return match;
866 }
867 capture = captures[n - 1];
868 }
869 return capture === undefined ? '' : capture;
870 });
871 }
872 });
873
874
875 /***/ }),
876
877 /***/ 64:
878 /***/ (function(module, exports) {
879
880 var hasOwnProperty = {}.hasOwnProperty;
881 module.exports = function (it, key) {
882 return hasOwnProperty.call(it, key);
883 };
884
885
886 /***/ }),
887
888 /***/ 712:
889 /***/ (function(module, exports, __webpack_require__) {
890
891 "use strict";
892
893
894 __webpack_require__(60);
895
896 __webpack_require__(334);
897
898 __webpack_require__(81);
899
900 __webpack_require__(26);
901
902 (function ($) {
903 var ElementorAdmin = elementorModules.ViewModule.extend({
904 maintenanceMode: null,
905 config: elementorAdminConfig,
906 getDefaultElements: function getDefaultElements() {
907 var elements = {
908 $switchMode: $('#elementor-switch-mode'),
909 $goToEditLink: $('#elementor-go-to-edit-page-link'),
910 $switchModeInput: $('#elementor-switch-mode-input'),
911 $switchModeButton: $('#elementor-switch-mode-button'),
912 $elementorLoader: $('.elementor-loader'),
913 $builderEditor: $('#elementor-editor'),
914 $importButton: $('#elementor-import-template-trigger'),
915 $importArea: $('#elementor-import-template-area'),
916 $settingsForm: $('#elementor-settings-form'),
917 $settingsTabsWrapper: $('#elementor-settings-tabs-wrapper'),
918 $menuGetHelpLink: $('a[href="admin.php?page=go_knowledge_base_site"]'),
919 $reMigrateGlobalsButton: $('.elementor-re-migrate-globals-button')
920 };
921 elements.$settingsFormPages = elements.$settingsForm.find('.elementor-settings-form-page');
922 elements.$activeSettingsPage = elements.$settingsFormPages.filter('.elementor-active');
923 elements.$settingsTabs = elements.$settingsTabsWrapper.children();
924 elements.$activeSettingsTab = elements.$settingsTabs.filter('.nav-tab-active');
925 return elements;
926 },
927 toggleStatus: function toggleStatus() {
928 var isElementorMode = this.isElementorMode();
929 elementorCommon.elements.$body.toggleClass('elementor-editor-active', isElementorMode).toggleClass('elementor-editor-inactive', !isElementorMode);
930 },
931 bindEvents: function bindEvents() {
932 var self = this;
933 self.elements.$switchModeButton.on('click', function (event) {
934 event.preventDefault();
935
936 if (self.isElementorMode()) {
937 elementorCommon.dialogsManager.createWidget('confirm', {
938 message: self.translate('back_to_wordpress_editor_message'),
939 headerMessage: self.translate('back_to_wordpress_editor_header'),
940 strings: {
941 confirm: self.translate('yes'),
942 cancel: self.translate('cancel')
943 },
944 defaultOption: 'confirm',
945 onConfirm: function onConfirm() {
946 self.elements.$switchModeInput.val('');
947 self.toggleStatus();
948 }
949 }).show();
950 } else {
951 self.elements.$switchModeInput.val(true);
952 var $wpTitle = $('#title');
953
954 if (!$wpTitle.val()) {
955 $wpTitle.val('Elementor #' + $('#post_ID').val());
956 }
957
958 if (wp.autosave) {
959 wp.autosave.server.triggerSave();
960 }
961
962 self.animateLoader();
963 $(document).on('heartbeat-tick.autosave', function () {
964 elementorCommon.elements.$window.off('beforeunload.edit-post');
965 location.href = self.elements.$goToEditLink.attr('href');
966 });
967 self.toggleStatus();
968 }
969 });
970 self.elements.$goToEditLink.on('click', function () {
971 self.animateLoader();
972 });
973 $('div.notice.elementor-message-dismissed').on('click', 'button.notice-dismiss, .elementor-button-notice-dismiss', function (event) {
974 event.preventDefault();
975 $.post(ajaxurl, {
976 action: 'elementor_set_admin_notice_viewed',
977 notice_id: $(this).closest('.elementor-message-dismissed').data('notice_id')
978 });
979 var $wrapperElm = $(this).closest('.elementor-message-dismissed');
980 $wrapperElm.fadeTo(100, 0, function () {
981 $wrapperElm.slideUp(100, function () {
982 $wrapperElm.remove();
983 });
984 });
985 });
986 $('#elementor-clear-cache-button').on('click', function (event) {
987 event.preventDefault();
988 var $thisButton = $(this);
989 $thisButton.removeClass('success').addClass('loading');
990 $.post(ajaxurl, {
991 action: 'elementor_clear_cache',
992 _nonce: $thisButton.data('nonce')
993 }).done(function () {
994 $thisButton.removeClass('loading').addClass('success');
995 });
996 });
997 $('#elementor-library-sync-button').on('click', function (event) {
998 event.preventDefault();
999 var $thisButton = $(this);
1000 $thisButton.removeClass('success').addClass('loading');
1001 $.post(ajaxurl, {
1002 action: 'elementor_reset_library',
1003 _nonce: $thisButton.data('nonce')
1004 }).done(function () {
1005 $thisButton.removeClass('loading').addClass('success');
1006 });
1007 });
1008 $('#elementor-replace-url-button').on('click', function (event) {
1009 event.preventDefault();
1010 var $this = $(this),
1011 $tr = $this.parents('tr'),
1012 $from = $tr.find('[name="from"]'),
1013 $to = $tr.find('[name="to"]');
1014 $this.removeClass('success').addClass('loading');
1015 $.post(ajaxurl, {
1016 action: 'elementor_replace_url',
1017 from: $from.val(),
1018 to: $to.val(),
1019 _nonce: $this.data('nonce')
1020 }).done(function (response) {
1021 $this.removeClass('loading');
1022
1023 if (response.success) {
1024 $this.addClass('success');
1025 }
1026
1027 elementorCommon.dialogsManager.createWidget('alert', {
1028 message: response.data
1029 }).show();
1030 });
1031 });
1032 $('#elementor_upgrade_fa_button').on('click', function (event) {
1033 event.preventDefault();
1034 var $updateButton = $(this);
1035 $updateButton.addClass('loading');
1036 elementorCommon.dialogsManager.createWidget('confirm', {
1037 id: 'confirm_fa_migration_admin_modal',
1038 message: self.translate('confirm_fa_migration_admin_modal_body'),
1039 headerMessage: self.translate('confirm_fa_migration_admin_modal_head'),
1040 strings: {
1041 confirm: self.translate('yes'),
1042 cancel: self.translate('cancel')
1043 },
1044 defaultOption: 'confirm',
1045 onConfirm: function onConfirm() {
1046 $updateButton.removeClass('error').addClass('loading');
1047 $.post(ajaxurl, $updateButton.data()).done(function (response) {
1048 $updateButton.removeClass('loading').addClass('success');
1049 $('#elementor_upgrade_fa_button').parent().append(response.data.message);
1050 var redirectTo = (location.search.split('redirect_to=')[1] || '').split('&')[0];
1051
1052 if (redirectTo) {
1053 location.href = decodeURIComponent(redirectTo);
1054 return;
1055 }
1056
1057 history.go(-1);
1058 }).fail(function () {
1059 $updateButton.removeClass('loading').addClass('error');
1060 });
1061 },
1062 onCancel: function onCancel() {
1063 $updateButton.removeClass('loading').addClass('error');
1064 }
1065 }).show();
1066 });
1067 self.elements.$settingsTabs.on({
1068 click: function click(event) {
1069 event.preventDefault();
1070 event.currentTarget.focus(); // Safari does not focus the tab automatically
1071 },
1072 focus: function focus() {
1073 // Using focus event to enable navigation by tab key
1074 var hrefWithoutHash = location.href.replace(/#.*/, '');
1075 history.pushState({}, '', hrefWithoutHash + this.hash);
1076 self.goToSettingsTabFromHash();
1077 }
1078 });
1079 $('select.elementor-rollback-select').on('change', function () {
1080 var $this = $(this),
1081 $rollbackButton = $this.next('.elementor-rollback-button'),
1082 placeholderText = $rollbackButton.data('placeholder-text'),
1083 placeholderUrl = $rollbackButton.data('placeholder-url');
1084 $rollbackButton.html(placeholderText.replace('{VERSION}', $this.val()));
1085 $rollbackButton.attr('href', placeholderUrl.replace('VERSION', $this.val()));
1086 }).trigger('change');
1087 $('.elementor-rollback-button').on('click', function (event) {
1088 event.preventDefault();
1089 var $this = $(this);
1090 elementorCommon.dialogsManager.createWidget('confirm', {
1091 headerMessage: self.translate('rollback_to_previous_version'),
1092 message: self.translate('rollback_confirm'),
1093 strings: {
1094 confirm: self.translate('yes'),
1095 cancel: self.translate('cancel')
1096 },
1097 onConfirm: function onConfirm() {
1098 $this.addClass('loading');
1099 location.href = $this.attr('href');
1100 }
1101 }).show();
1102 });
1103 self.elements.$reMigrateGlobalsButton.on('click', function (event) {
1104 event.preventDefault();
1105 var $this = $(event.currentTarget);
1106 elementorCommon.dialogsManager.createWidget('confirm', {
1107 headerMessage: self.translate('re_migrate_globals'),
1108 message: self.translate('re_migrate_globals_confirm'),
1109 strings: {
1110 confirm: self.translate('yes'),
1111 cancel: self.translate('cancel')
1112 },
1113 onConfirm: function onConfirm() {
1114 $this.removeClass('success').addClass('loading');
1115 elementorCommon.ajax.addRequest('re_migrate_globals', {
1116 success: function success() {
1117 return $this.removeClass('loading').addClass('success');
1118 }
1119 });
1120 }
1121 }).show();
1122 });
1123 $('.elementor_css_print_method select').on('change', function () {
1124 var $descriptions = $('.elementor-css-print-method-description');
1125 $descriptions.hide();
1126 $descriptions.filter('[data-value="' + $(this).val() + '"]').show();
1127 }).trigger('change');
1128 },
1129 onInit: function onInit() {
1130 elementorModules.ViewModule.prototype.onInit.apply(this, arguments);
1131 this.initTemplatesImport();
1132 this.initMaintenanceMode();
1133 this.goToSettingsTabFromHash();
1134 this.openGetHelpInNewTab();
1135 this.roleManager.init();
1136 },
1137 openGetHelpInNewTab: function openGetHelpInNewTab() {
1138 this.elements.$menuGetHelpLink.attr('target', '_blank');
1139 },
1140 initTemplatesImport: function initTemplatesImport() {
1141 if (!elementorCommon.elements.$body.hasClass('post-type-elementor_library')) {
1142 return;
1143 }
1144
1145 var self = this,
1146 $importButton = self.elements.$importButton,
1147 $importArea = self.elements.$importArea;
1148 self.elements.$formAnchor = $('h1');
1149 $('#wpbody-content').find('.page-title-action:last').after($importButton);
1150 self.elements.$formAnchor.after($importArea);
1151 $importButton.on('click', function () {
1152 $('#elementor-import-template-area').toggle();
1153 });
1154 },
1155 initMaintenanceMode: function initMaintenanceMode() {
1156 var MaintenanceMode = __webpack_require__(713);
1157
1158 this.maintenanceMode = new MaintenanceMode();
1159 },
1160 isElementorMode: function isElementorMode() {
1161 return !!this.elements.$switchModeInput.val();
1162 },
1163 animateLoader: function animateLoader() {
1164 this.elements.$goToEditLink.addClass('elementor-animate');
1165 },
1166 goToSettingsTabFromHash: function goToSettingsTabFromHash() {
1167 var hash = location.hash.slice(1);
1168
1169 if (hash) {
1170 this.goToSettingsTab(hash);
1171 }
1172 },
1173 goToSettingsTab: function goToSettingsTab(tabName) {
1174 var $pages = this.elements.$settingsFormPages;
1175
1176 if (!$pages.length) {
1177 return;
1178 }
1179
1180 var $activePage = $pages.filter('#' + tabName);
1181 this.elements.$activeSettingsPage.removeClass('elementor-active');
1182 this.elements.$activeSettingsTab.removeClass('nav-tab-active');
1183 var $activeTab = this.elements.$settingsTabs.filter('#elementor-settings-' + tabName);
1184 $activePage.addClass('elementor-active');
1185 $activeTab.addClass('nav-tab-active');
1186 this.elements.$settingsForm.attr('action', 'options.php#' + tabName);
1187 this.elements.$activeSettingsPage = $activePage;
1188 this.elements.$activeSettingsTab = $activeTab;
1189 },
1190 translate: function translate(stringKey, templateArgs) {
1191 return elementorCommon.translate(stringKey, null, templateArgs, this.config.i18n);
1192 },
1193 roleManager: {
1194 selectors: {
1195 body: 'elementor-role-manager',
1196 row: '.elementor-role-row',
1197 label: '.elementor-role-label',
1198 excludedIndicator: '.elementor-role-excluded-indicator',
1199 excludedField: 'input[name="elementor_exclude_user_roles[]"]',
1200 controlsContainer: '.elementor-role-controls',
1201 toggleHandle: '.elementor-role-toggle',
1202 arrowUp: 'dashicons-arrow-up',
1203 arrowDown: 'dashicons-arrow-down'
1204 },
1205 toggle: function toggle($trigger) {
1206 var self = this,
1207 $row = $trigger.closest(self.selectors.row),
1208 $toggleHandleIcon = $row.find(self.selectors.toggleHandle).find('.dashicons'),
1209 $controls = $row.find(self.selectors.controlsContainer);
1210 $controls.toggleClass('hidden');
1211
1212 if ($controls.hasClass('hidden')) {
1213 $toggleHandleIcon.removeClass(self.selectors.arrowUp).addClass(self.selectors.arrowDown);
1214 } else {
1215 $toggleHandleIcon.removeClass(self.selectors.arrowDown).addClass(self.selectors.arrowUp);
1216 }
1217
1218 self.updateLabel($row);
1219 },
1220 updateLabel: function updateLabel($row) {
1221 var self = this,
1222 $indicator = $row.find(self.selectors.excludedIndicator),
1223 excluded = $row.find(self.selectors.excludedField).is(':checked');
1224
1225 if (excluded) {
1226 $indicator.html($indicator.data('excluded-label'));
1227 } else {
1228 $indicator.html('');
1229 }
1230
1231 self.setAdvancedState($row, excluded);
1232 },
1233 setAdvancedState: function setAdvancedState($row, state) {
1234 var self = this,
1235 $controls = $row.find('input[type="checkbox"]').not(self.selectors.excludedField);
1236 $controls.each(function (index, input) {
1237 $(input).prop('disabled', state);
1238 });
1239 },
1240 bind: function bind() {
1241 var self = this;
1242 $(document).on('click', self.selectors.label + ',' + self.selectors.toggleHandle, function (event) {
1243 event.stopPropagation();
1244 event.preventDefault();
1245 self.toggle($(this));
1246 }).on('change', self.selectors.excludedField, function () {
1247 self.updateLabel($(this).closest(self.selectors.row));
1248 });
1249 },
1250 init: function init() {
1251 var self = this;
1252
1253 if (!$('body[class*="' + self.selectors.body + '"]').length) {
1254 return;
1255 }
1256
1257 self.bind();
1258 $(self.selectors.row).each(function (index, row) {
1259 self.updateLabel($(row));
1260 });
1261 }
1262 }
1263 });
1264 $(function () {
1265 window.elementorAdmin = new ElementorAdmin();
1266 elementorCommon.elements.$window.trigger('elementor/admin/init');
1267 });
1268 })(jQuery);
1269
1270 /***/ }),
1271
1272 /***/ 713:
1273 /***/ (function(module, exports, __webpack_require__) {
1274
1275 "use strict";
1276
1277
1278 __webpack_require__(26);
1279
1280 module.exports = elementorModules.ViewModule.extend({
1281 getDefaultSettings: function getDefaultSettings() {
1282 return {
1283 selectors: {
1284 modeSelect: '.elementor_maintenance_mode_mode select',
1285 maintenanceModeTable: '#tab-maintenance_mode table',
1286 maintenanceModeDescriptions: '.elementor-maintenance-mode-description',
1287 excludeModeSelect: '.elementor_maintenance_mode_exclude_mode select',
1288 excludeRolesArea: '.elementor_maintenance_mode_exclude_roles',
1289 templateSelect: '.elementor_maintenance_mode_template_id select',
1290 editTemplateButton: '.elementor-edit-template',
1291 maintenanceModeError: '.elementor-maintenance-mode-error'
1292 },
1293 classes: {
1294 isEnabled: 'elementor-maintenance-mode-is-enabled'
1295 }
1296 };
1297 },
1298 getDefaultElements: function getDefaultElements() {
1299 var elements = {},
1300 selectors = this.getSettings('selectors');
1301 elements.$modeSelect = jQuery(selectors.modeSelect);
1302 elements.$maintenanceModeTable = elements.$modeSelect.parents(selectors.maintenanceModeTable);
1303 elements.$excludeModeSelect = elements.$maintenanceModeTable.find(selectors.excludeModeSelect);
1304 elements.$excludeRolesArea = elements.$maintenanceModeTable.find(selectors.excludeRolesArea);
1305 elements.$templateSelect = elements.$maintenanceModeTable.find(selectors.templateSelect);
1306 elements.$editTemplateButton = elements.$maintenanceModeTable.find(selectors.editTemplateButton);
1307 elements.$maintenanceModeDescriptions = elements.$maintenanceModeTable.find(selectors.maintenanceModeDescriptions);
1308 elements.$maintenanceModeError = elements.$maintenanceModeTable.find(selectors.maintenanceModeError);
1309 return elements;
1310 },
1311 handleModeSelectChange: function handleModeSelectChange() {
1312 var settings = this.getSettings(),
1313 elements = this.elements;
1314 elements.$maintenanceModeTable.toggleClass(settings.classes.isEnabled, !!elements.$modeSelect.val());
1315 elements.$maintenanceModeDescriptions.hide();
1316 elements.$maintenanceModeDescriptions.filter('[data-value="' + elements.$modeSelect.val() + '"]').show();
1317 },
1318 handleExcludeModeSelectChange: function handleExcludeModeSelectChange() {
1319 var elements = this.elements;
1320 elements.$excludeRolesArea.toggle('custom' === elements.$excludeModeSelect.val());
1321 },
1322 handleTemplateSelectChange: function handleTemplateSelectChange() {
1323 var elements = this.elements;
1324 var templateID = elements.$templateSelect.val();
1325
1326 if (!templateID) {
1327 elements.$editTemplateButton.hide();
1328 elements.$maintenanceModeError.show();
1329 return;
1330 }
1331
1332 var editUrl = elementorAdmin.config.home_url + '?p=' + templateID + '&elementor';
1333 elements.$editTemplateButton.prop('href', editUrl).show();
1334 elements.$maintenanceModeError.hide();
1335 },
1336 bindEvents: function bindEvents() {
1337 var elements = this.elements;
1338 elements.$modeSelect.on('change', this.handleModeSelectChange.bind(this));
1339 elements.$excludeModeSelect.on('change', this.handleExcludeModeSelectChange.bind(this));
1340 elements.$templateSelect.on('change', this.handleTemplateSelectChange.bind(this));
1341 },
1342 onAdminInit: function onAdminInit() {
1343 this.handleModeSelectChange();
1344 this.handleExcludeModeSelectChange();
1345 this.handleTemplateSelectChange();
1346 },
1347 onInit: function onInit() {
1348 elementorModules.ViewModule.prototype.onInit.apply(this, arguments);
1349 elementorCommon.elements.$window.on('elementor/admin/init', this.onAdminInit);
1350 }
1351 });
1352
1353 /***/ }),
1354
1355 /***/ 76:
1356 /***/ (function(module, exports, __webpack_require__) {
1357
1358 var core = __webpack_require__(57);
1359 var global = __webpack_require__(18);
1360 var SHARED = '__core-js_shared__';
1361 var store = global[SHARED] || (global[SHARED] = {});
1362
1363 (module.exports = function (key, value) {
1364 return store[key] || (store[key] = value !== undefined ? value : {});
1365 })('versions', []).push({
1366 version: core.version,
1367 mode: __webpack_require__(114) ? 'pure' : 'global',
1368 copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
1369 });
1370
1371
1372 /***/ }),
1373
1374 /***/ 77:
1375 /***/ (function(module, exports) {
1376
1377 var id = 0;
1378 var px = Math.random();
1379 module.exports = function (key) {
1380 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1381 };
1382
1383
1384 /***/ }),
1385
1386 /***/ 80:
1387 /***/ (function(module, exports, __webpack_require__) {
1388
1389 // optional / simple context binding
1390 var aFunction = __webpack_require__(95);
1391 module.exports = function (fn, that, length) {
1392 aFunction(fn);
1393 if (that === undefined) return fn;
1394 switch (length) {
1395 case 1: return function (a) {
1396 return fn.call(that, a);
1397 };
1398 case 2: return function (a, b) {
1399 return fn.call(that, a, b);
1400 };
1401 case 3: return function (a, b, c) {
1402 return fn.call(that, a, b, c);
1403 };
1404 }
1405 return function (/* ...args */) {
1406 return fn.apply(that, arguments);
1407 };
1408 };
1409
1410
1411 /***/ }),
1412
1413 /***/ 81:
1414 /***/ (function(module, exports, __webpack_require__) {
1415
1416 "use strict";
1417
1418
1419 var isRegExp = __webpack_require__(123);
1420 var anObject = __webpack_require__(20);
1421 var speciesConstructor = __webpack_require__(180);
1422 var advanceStringIndex = __webpack_require__(108);
1423 var toLength = __webpack_require__(45);
1424 var callRegExpExec = __webpack_require__(97);
1425 var regexpExec = __webpack_require__(92);
1426 var fails = __webpack_require__(35);
1427 var $min = Math.min;
1428 var $push = [].push;
1429 var $SPLIT = 'split';
1430 var LENGTH = 'length';
1431 var LAST_INDEX = 'lastIndex';
1432 var MAX_UINT32 = 0xffffffff;
1433
1434 // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
1435 var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });
1436
1437 // @@split logic
1438 __webpack_require__(98)('split', 2, function (defined, SPLIT, $split, maybeCallNative) {
1439 var internalSplit;
1440 if (
1441 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
1442 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
1443 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
1444 '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
1445 '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
1446 ''[$SPLIT](/.?/)[LENGTH]
1447 ) {
1448 // based on es5-shim implementation, need to rework it
1449 internalSplit = function (separator, limit) {
1450 var string = String(this);
1451 if (separator === undefined && limit === 0) return [];
1452 // If `separator` is not a regex, use native split
1453 if (!isRegExp(separator)) return $split.call(string, separator, limit);
1454 var output = [];
1455 var flags = (separator.ignoreCase ? 'i' : '') +
1456 (separator.multiline ? 'm' : '') +
1457 (separator.unicode ? 'u' : '') +
1458 (separator.sticky ? 'y' : '');
1459 var lastLastIndex = 0;
1460 var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;
1461 // Make `global` and avoid `lastIndex` issues by working with a copy
1462 var separatorCopy = new RegExp(separator.source, flags + 'g');
1463 var match, lastIndex, lastLength;
1464 while (match = regexpExec.call(separatorCopy, string)) {
1465 lastIndex = separatorCopy[LAST_INDEX];
1466 if (lastIndex > lastLastIndex) {
1467 output.push(string.slice(lastLastIndex, match.index));
1468 if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
1469 lastLength = match[0][LENGTH];
1470 lastLastIndex = lastIndex;
1471 if (output[LENGTH] >= splitLimit) break;
1472 }
1473 if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
1474 }
1475 if (lastLastIndex === string[LENGTH]) {
1476 if (lastLength || !separatorCopy.test('')) output.push('');
1477 } else output.push(string.slice(lastLastIndex));
1478 return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
1479 };
1480 // Chakra, V8
1481 } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
1482 internalSplit = function (separator, limit) {
1483 return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);
1484 };
1485 } else {
1486 internalSplit = $split;
1487 }
1488
1489 return [
1490 // `String.prototype.split` method
1491 // https://tc39.github.io/ecma262/#sec-string.prototype.split
1492 function split(separator, limit) {
1493 var O = defined(this);
1494 var splitter = separator == undefined ? undefined : separator[SPLIT];
1495 return splitter !== undefined
1496 ? splitter.call(separator, O, limit)
1497 : internalSplit.call(String(O), separator, limit);
1498 },
1499 // `RegExp.prototype[@@split]` method
1500 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
1501 //
1502 // NOTE: This cannot be properly polyfilled in engines that don't support
1503 // the 'y' flag.
1504 function (regexp, limit) {
1505 var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);
1506 if (res.done) return res.value;
1507
1508 var rx = anObject(regexp);
1509 var S = String(this);
1510 var C = speciesConstructor(rx, RegExp);
1511
1512 var unicodeMatching = rx.unicode;
1513 var flags = (rx.ignoreCase ? 'i' : '') +
1514 (rx.multiline ? 'm' : '') +
1515 (rx.unicode ? 'u' : '') +
1516 (SUPPORTS_Y ? 'y' : 'g');
1517
1518 // ^(? + rx + ) is needed, in combination with some S slicing, to
1519 // simulate the 'y' flag.
1520 var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
1521 var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
1522 if (lim === 0) return [];
1523 if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
1524 var p = 0;
1525 var q = 0;
1526 var A = [];
1527 while (q < S.length) {
1528 splitter.lastIndex = SUPPORTS_Y ? q : 0;
1529 var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
1530 var e;
1531 if (
1532 z === null ||
1533 (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
1534 ) {
1535 q = advanceStringIndex(S, q, unicodeMatching);
1536 } else {
1537 A.push(S.slice(p, q));
1538 if (A.length === lim) return A;
1539 for (var i = 1; i <= z.length - 1; i++) {
1540 A.push(z[i]);
1541 if (A.length === lim) return A;
1542 }
1543 q = p = e;
1544 }
1545 }
1546 A.push(S.slice(p));
1547 return A;
1548 }
1549 ];
1550 });
1551
1552
1553 /***/ }),
1554
1555 /***/ 89:
1556 /***/ (function(module, exports, __webpack_require__) {
1557
1558 // 22.1.3.31 Array.prototype[@@unscopables]
1559 var UNSCOPABLES = __webpack_require__(13)('unscopables');
1560 var ArrayProto = Array.prototype;
1561 if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(29)(ArrayProto, UNSCOPABLES, {});
1562 module.exports = function (key) {
1563 ArrayProto[UNSCOPABLES][key] = true;
1564 };
1565
1566
1567 /***/ }),
1568
1569 /***/ 92:
1570 /***/ (function(module, exports, __webpack_require__) {
1571
1572 "use strict";
1573
1574
1575 var regexpFlags = __webpack_require__(109);
1576
1577 var nativeExec = RegExp.prototype.exec;
1578 // This always refers to the native implementation, because the
1579 // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
1580 // which loads this file before patching the method.
1581 var nativeReplace = String.prototype.replace;
1582
1583 var patchedExec = nativeExec;
1584
1585 var LAST_INDEX = 'lastIndex';
1586
1587 var UPDATES_LAST_INDEX_WRONG = (function () {
1588 var re1 = /a/,
1589 re2 = /b*/g;
1590 nativeExec.call(re1, 'a');
1591 nativeExec.call(re2, 'a');
1592 return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
1593 })();
1594
1595 // nonparticipating capturing group, copied from es5-shim's String#split patch.
1596 var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1597
1598 var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
1599
1600 if (PATCH) {
1601 patchedExec = function exec(str) {
1602 var re = this;
1603 var lastIndex, reCopy, match, i;
1604
1605 if (NPCG_INCLUDED) {
1606 reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
1607 }
1608 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
1609
1610 match = nativeExec.call(re, str);
1611
1612 if (UPDATES_LAST_INDEX_WRONG && match) {
1613 re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
1614 }
1615 if (NPCG_INCLUDED && match && match.length > 1) {
1616 // Fix browsers whose `exec` methods don't consistently return `undefined`
1617 // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
1618 // eslint-disable-next-line no-loop-func
1619 nativeReplace.call(match[0], reCopy, function () {
1620 for (i = 1; i < arguments.length - 2; i++) {
1621 if (arguments[i] === undefined) match[i] = undefined;
1622 }
1623 });
1624 }
1625
1626 return match;
1627 };
1628 }
1629
1630 module.exports = patchedExec;
1631
1632
1633 /***/ }),
1634
1635 /***/ 95:
1636 /***/ (function(module, exports) {
1637
1638 module.exports = function (it) {
1639 if (typeof it != 'function') throw TypeError(it + ' is not a function!');
1640 return it;
1641 };
1642
1643
1644 /***/ }),
1645
1646 /***/ 97:
1647 /***/ (function(module, exports, __webpack_require__) {
1648
1649 "use strict";
1650
1651
1652 var classof = __webpack_require__(116);
1653 var builtinExec = RegExp.prototype.exec;
1654
1655 // `RegExpExec` abstract operation
1656 // https://tc39.github.io/ecma262/#sec-regexpexec
1657 module.exports = function (R, S) {
1658 var exec = R.exec;
1659 if (typeof exec === 'function') {
1660 var result = exec.call(R, S);
1661 if (typeof result !== 'object') {
1662 throw new TypeError('RegExp exec method returned something other than an Object or null');
1663 }
1664 return result;
1665 }
1666 if (classof(R) !== 'RegExp') {
1667 throw new TypeError('RegExp#exec called on incompatible receiver');
1668 }
1669 return builtinExec.call(R, S);
1670 };
1671
1672
1673 /***/ }),
1674
1675 /***/ 98:
1676 /***/ (function(module, exports, __webpack_require__) {
1677
1678 "use strict";
1679
1680 __webpack_require__(196);
1681 var redefine = __webpack_require__(39);
1682 var hide = __webpack_require__(29);
1683 var fails = __webpack_require__(35);
1684 var defined = __webpack_require__(43);
1685 var wks = __webpack_require__(13);
1686 var regexpExec = __webpack_require__(92);
1687
1688 var SPECIES = wks('species');
1689
1690 var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1691 // #replace needs built-in support for named groups.
1692 // #match works fine because it just return the exec results, even if it has
1693 // a "grops" property.
1694 var re = /./;
1695 re.exec = function () {
1696 var result = [];
1697 result.groups = { a: '7' };
1698 return result;
1699 };
1700 return ''.replace(re, '$<a>') !== '7';
1701 });
1702
1703 var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
1704 // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
1705 var re = /(?:)/;
1706 var originalExec = re.exec;
1707 re.exec = function () { return originalExec.apply(this, arguments); };
1708 var result = 'ab'.split(re);
1709 return result.length === 2 && result[0] === 'a' && result[1] === 'b';
1710 })();
1711
1712 module.exports = function (KEY, length, exec) {
1713 var SYMBOL = wks(KEY);
1714
1715 var DELEGATES_TO_SYMBOL = !fails(function () {
1716 // String methods call symbol-named RegEp methods
1717 var O = {};
1718 O[SYMBOL] = function () { return 7; };
1719 return ''[KEY](O) != 7;
1720 });
1721
1722 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
1723 // Symbol-named RegExp methods call .exec
1724 var execCalled = false;
1725 var re = /a/;
1726 re.exec = function () { execCalled = true; return null; };
1727 if (KEY === 'split') {
1728 // RegExp[@@split] doesn't call the regex's exec method, but first creates
1729 // a new one. We need to return the patched regex when creating the new one.
1730 re.constructor = {};
1731 re.constructor[SPECIES] = function () { return re; };
1732 }
1733 re[SYMBOL]('');
1734 return !execCalled;
1735 }) : undefined;
1736
1737 if (
1738 !DELEGATES_TO_SYMBOL ||
1739 !DELEGATES_TO_EXEC ||
1740 (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
1741 (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1742 ) {
1743 var nativeRegExpMethod = /./[SYMBOL];
1744 var fns = exec(
1745 defined,
1746 SYMBOL,
1747 ''[KEY],
1748 function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
1749 if (regexp.exec === regexpExec) {
1750 if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1751 // The native String method already delegates to @@method (this
1752 // polyfilled function), leasing to infinite recursion.
1753 // We avoid it by directly calling the native @@method method.
1754 return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
1755 }
1756 return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1757 }
1758 return { done: false };
1759 }
1760 );
1761 var strfn = fns[0];
1762 var rxfn = fns[1];
1763
1764 redefine(String.prototype, KEY, strfn);
1765 hide(RegExp.prototype, SYMBOL, length == 2
1766 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
1767 // 21.2.5.11 RegExp.prototype[@@split](string, limit)
1768 ? function (string, arg) { return rxfn.call(string, this, arg); }
1769 // 21.2.5.6 RegExp.prototype[@@match](string)
1770 // 21.2.5.9 RegExp.prototype[@@search](string)
1771 : function (string) { return rxfn.call(string, this); }
1772 );
1773 }
1774 };
1775
1776
1777 /***/ }),
1778
1779 /***/ 99:
1780 /***/ (function(module, exports, __webpack_require__) {
1781
1782 // 7.1.13 ToObject(argument)
1783 var defined = __webpack_require__(43);
1784 module.exports = function (it) {
1785 return Object(defined(it));
1786 };
1787
1788
1789 /***/ })
1790
1791 /******/ });
1792 //# sourceMappingURL=admin.js.map