PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.2
Elementor Website Builder – more than just a page builder v3.0.2
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.2, at assets/js/admin.js

1,771 lines 55.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! elementor - v3.0.2 - 26-08-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 = 708);
86 /******/ })
87 /************************************************************************/
88 /******/ ({
89
90 /***/ 102:
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 /***/ 105:
106 /***/ (function(module, exports, __webpack_require__) {
107
108 "use strict";
109
110 var at = __webpack_require__(142)(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 /***/ 106:
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__(18);
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 /***/ 109:
143 /***/ (function(module, exports, __webpack_require__) {
144
145 var isObject = __webpack_require__(30);
146 var document = __webpack_require__(17).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 /***/ 110:
157 /***/ (function(module, exports) {
158
159 module.exports = false;
160
161
162 /***/ }),
163
164 /***/ 113:
165 /***/ (function(module, exports, __webpack_require__) {
166
167 // getting tag from 19.1.3.6 Object.prototype.toString()
168 var cof = __webpack_require__(46);
169 var TAG = __webpack_require__(12)('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 /***/ 12:
195 /***/ (function(module, exports, __webpack_require__) {
196
197 var store = __webpack_require__(66)('wks');
198 var uid = __webpack_require__(67);
199 var Symbol = __webpack_require__(17).Symbol;
200 var USE_SYMBOL = typeof Symbol == 'function';
201
202 var $exports = module.exports = function (name) {
203 return store[name] || (store[name] =
204 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
205 };
206
207 $exports.store = store;
208
209
210 /***/ }),
211
212 /***/ 120:
213 /***/ (function(module, exports, __webpack_require__) {
214
215 // fallback for non-array-like ES3 and non-enumerable old V8 strings
216 var cof = __webpack_require__(46);
217 // eslint-disable-next-line no-prototype-builtins
218 module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
219 return cof(it) == 'String' ? it.split('') : Object(it);
220 };
221
222
223 /***/ }),
224
225 /***/ 122:
226 /***/ (function(module, exports, __webpack_require__) {
227
228 // 7.2.8 IsRegExp(argument)
229 var isObject = __webpack_require__(30);
230 var cof = __webpack_require__(46);
231 var MATCH = __webpack_require__(12)('match');
232 module.exports = function (it) {
233 var isRegExp;
234 return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
235 };
236
237
238 /***/ }),
239
240 /***/ 123:
241 /***/ (function(module, exports, __webpack_require__) {
242
243 // 7.1.1 ToPrimitive(input [, PreferredType])
244 var isObject = __webpack_require__(30);
245 // instead of the ES6 spec version, we didn't implement @@toPrimitive case
246 // and the second argument - flag - preferred type is a string
247 module.exports = function (it, S) {
248 if (!isObject(it)) return it;
249 var fn, val;
250 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
251 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
252 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
253 throw TypeError("Can't convert object to primitive value");
254 };
255
256
257 /***/ }),
258
259 /***/ 129:
260 /***/ (function(module, exports, __webpack_require__) {
261
262 module.exports = !__webpack_require__(27) && !__webpack_require__(33)(function () {
263 return Object.defineProperty(__webpack_require__(109)('div'), 'a', { get: function () { return 7; } }).a != 7;
264 });
265
266
267 /***/ }),
268
269 /***/ 142:
270 /***/ (function(module, exports, __webpack_require__) {
271
272 var toInteger = __webpack_require__(57);
273 var defined = __webpack_require__(42);
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 /***/ 143:
294 /***/ (function(module, exports, __webpack_require__) {
295
296 module.exports = __webpack_require__(66)('native-function-to-string', Function.toString);
297
298
299 /***/ }),
300
301 /***/ 154:
302 /***/ (function(module, exports, __webpack_require__) {
303
304 // 7.3.20 SpeciesConstructor(O, defaultConstructor)
305 var anObject = __webpack_require__(18);
306 var aFunction = __webpack_require__(91);
307 var SPECIES = __webpack_require__(12)('species');
308 module.exports = function (O, D) {
309 var C = anObject(O).constructor;
310 var S;
311 return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
312 };
313
314
315 /***/ }),
316
317 /***/ 17:
318 /***/ (function(module, exports) {
319
320 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
321 var global = module.exports = typeof window != 'undefined' && window.Math == Math
322 ? window : typeof self != 'undefined' && self.Math == Math ? self
323 // eslint-disable-next-line no-new-func
324 : Function('return this')();
325 if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
326
327
328 /***/ }),
329
330 /***/ 18:
331 /***/ (function(module, exports, __webpack_require__) {
332
333 var isObject = __webpack_require__(30);
334 module.exports = function (it) {
335 if (!isObject(it)) throw TypeError(it + ' is not an object!');
336 return it;
337 };
338
339
340 /***/ }),
341
342 /***/ 181:
343 /***/ (function(module, exports, __webpack_require__) {
344
345 // 0 -> Array#forEach
346 // 1 -> Array#map
347 // 2 -> Array#filter
348 // 3 -> Array#some
349 // 4 -> Array#every
350 // 5 -> Array#find
351 // 6 -> Array#findIndex
352 var ctx = __webpack_require__(73);
353 var IObject = __webpack_require__(120);
354 var toObject = __webpack_require__(96);
355 var toLength = __webpack_require__(43);
356 var asc = __webpack_require__(216);
357 module.exports = function (TYPE, $create) {
358 var IS_MAP = TYPE == 1;
359 var IS_FILTER = TYPE == 2;
360 var IS_SOME = TYPE == 3;
361 var IS_EVERY = TYPE == 4;
362 var IS_FIND_INDEX = TYPE == 6;
363 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
364 var create = $create || asc;
365 return function ($this, callbackfn, that) {
366 var O = toObject($this);
367 var self = IObject(O);
368 var f = ctx(callbackfn, that, 3);
369 var length = toLength(self.length);
370 var index = 0;
371 var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
372 var val, res;
373 for (;length > index; index++) if (NO_HOLES || index in self) {
374 val = self[index];
375 res = f(val, index, O);
376 if (TYPE) {
377 if (IS_MAP) result[index] = res; // map
378 else if (res) switch (TYPE) {
379 case 3: return true; // some
380 case 5: return val; // find
381 case 6: return index; // findIndex
382 case 2: result.push(val); // filter
383 } else if (IS_EVERY) return false; // every
384 }
385 }
386 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
387 };
388 };
389
390
391 /***/ }),
392
393 /***/ 190:
394 /***/ (function(module, exports, __webpack_require__) {
395
396 "use strict";
397
398 var regexpExec = __webpack_require__(88);
399 __webpack_require__(37)({
400 target: 'RegExp',
401 proto: true,
402 forced: regexpExec !== /./.exec
403 }, {
404 exec: regexpExec
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__(12)('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__(46);
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__(181)(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__(85)(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__(33)(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__(45);
495 var createDesc = __webpack_require__(102);
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 /***/ 33:
517 /***/ (function(module, exports) {
518
519 module.exports = function (exec) {
520 try {
521 return !!exec();
522 } catch (e) {
523 return true;
524 }
525 };
526
527
528 /***/ }),
529
530 /***/ 334:
531 /***/ (function(module, exports, __webpack_require__) {
532
533 "use strict";
534
535
536 var anObject = __webpack_require__(18);
537 var sameValue = __webpack_require__(385);
538 var regExpExec = __webpack_require__(94);
539
540 // @@search logic
541 __webpack_require__(95)('search', 1, function (defined, SEARCH, $search, maybeCallNative) {
542 return [
543 // `String.prototype.search` method
544 // https://tc39.github.io/ecma262/#sec-string.prototype.search
545 function search(regexp) {
546 var O = defined(this);
547 var fn = regexp == undefined ? undefined : regexp[SEARCH];
548 return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
549 },
550 // `RegExp.prototype[@@search]` method
551 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search
552 function (regexp) {
553 var res = maybeCallNative($search, regexp, this);
554 if (res.done) return res.value;
555 var rx = anObject(regexp);
556 var S = String(this);
557 var previousLastIndex = rx.lastIndex;
558 if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
559 var result = regExpExec(rx, S);
560 if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
561 return result === null ? -1 : result.index;
562 }
563 ];
564 });
565
566
567 /***/ }),
568
569 /***/ 35:
570 /***/ (function(module, exports, __webpack_require__) {
571
572 var global = __webpack_require__(17);
573 var hide = __webpack_require__(29);
574 var has = __webpack_require__(61);
575 var SRC = __webpack_require__(67)('src');
576 var $toString = __webpack_require__(143);
577 var TO_STRING = 'toString';
578 var TPL = ('' + $toString).split(TO_STRING);
579
580 __webpack_require__(55).inspectSource = function (it) {
581 return $toString.call(it);
582 };
583
584 (module.exports = function (O, key, val, safe) {
585 var isFunction = typeof val == 'function';
586 if (isFunction) has(val, 'name') || hide(val, 'name', key);
587 if (O[key] === val) return;
588 if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
589 if (O === global) {
590 O[key] = val;
591 } else if (!safe) {
592 delete O[key];
593 hide(O, key, val);
594 } else if (O[key]) {
595 O[key] = val;
596 } else {
597 hide(O, key, val);
598 }
599 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
600 })(Function.prototype, TO_STRING, function toString() {
601 return typeof this == 'function' && this[SRC] || $toString.call(this);
602 });
603
604
605 /***/ }),
606
607 /***/ 37:
608 /***/ (function(module, exports, __webpack_require__) {
609
610 var global = __webpack_require__(17);
611 var core = __webpack_require__(55);
612 var hide = __webpack_require__(29);
613 var redefine = __webpack_require__(35);
614 var ctx = __webpack_require__(73);
615 var PROTOTYPE = 'prototype';
616
617 var $export = function (type, name, source) {
618 var IS_FORCED = type & $export.F;
619 var IS_GLOBAL = type & $export.G;
620 var IS_STATIC = type & $export.S;
621 var IS_PROTO = type & $export.P;
622 var IS_BIND = type & $export.B;
623 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
624 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
625 var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
626 var key, own, out, exp;
627 if (IS_GLOBAL) source = name;
628 for (key in source) {
629 // contains in native
630 own = !IS_FORCED && target && target[key] !== undefined;
631 // export native or passed
632 out = (own ? target : source)[key];
633 // bind timers to global for call from export context
634 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
635 // extend global
636 if (target) redefine(target, key, out, type & $export.U);
637 // export
638 if (exports[key] != out) hide(exports, key, exp);
639 if (IS_PROTO && expProto[key] != out) expProto[key] = out;
640 }
641 };
642 global.core = core;
643 // type bitmap
644 $export.F = 1; // forced
645 $export.G = 2; // global
646 $export.S = 4; // static
647 $export.P = 8; // proto
648 $export.B = 16; // bind
649 $export.W = 32; // wrap
650 $export.U = 64; // safe
651 $export.R = 128; // real proto method for `library`
652 module.exports = $export;
653
654
655 /***/ }),
656
657 /***/ 385:
658 /***/ (function(module, exports) {
659
660 // 7.2.9 SameValue(x, y)
661 module.exports = Object.is || function is(x, y) {
662 // eslint-disable-next-line no-self-compare
663 return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
664 };
665
666
667 /***/ }),
668
669 /***/ 42:
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 /***/ 43:
682 /***/ (function(module, exports, __webpack_require__) {
683
684 // 7.1.15 ToLength
685 var toInteger = __webpack_require__(57);
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 /***/ 45:
695 /***/ (function(module, exports, __webpack_require__) {
696
697 var anObject = __webpack_require__(18);
698 var IE8_DOM_DEFINE = __webpack_require__(129);
699 var toPrimitive = __webpack_require__(123);
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 /***/ 46:
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 /***/ 55:
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 /***/ 57:
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 /***/ 58:
752 /***/ (function(module, exports, __webpack_require__) {
753
754 "use strict";
755
756
757 var anObject = __webpack_require__(18);
758 var toObject = __webpack_require__(96);
759 var toLength = __webpack_require__(43);
760 var toInteger = __webpack_require__(57);
761 var advanceStringIndex = __webpack_require__(105);
762 var regExpExec = __webpack_require__(94);
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__(95)('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 /***/ 61:
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 /***/ 66:
889 /***/ (function(module, exports, __webpack_require__) {
890
891 var core = __webpack_require__(55);
892 var global = __webpack_require__(17);
893 var SHARED = '__core-js_shared__';
894 var store = global[SHARED] || (global[SHARED] = {});
895
896 (module.exports = function (key, value) {
897 return store[key] || (store[key] = value !== undefined ? value : {});
898 })('versions', []).push({
899 version: core.version,
900 mode: __webpack_require__(110) ? 'pure' : 'global',
901 copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
902 });
903
904
905 /***/ }),
906
907 /***/ 67:
908 /***/ (function(module, exports) {
909
910 var id = 0;
911 var px = Math.random();
912 module.exports = function (key) {
913 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
914 };
915
916
917 /***/ }),
918
919 /***/ 708:
920 /***/ (function(module, exports, __webpack_require__) {
921
922 "use strict";
923
924
925 __webpack_require__(58);
926
927 __webpack_require__(334);
928
929 __webpack_require__(80);
930
931 __webpack_require__(26);
932
933 (function ($) {
934 var ElementorAdmin = elementorModules.ViewModule.extend({
935 maintenanceMode: null,
936 config: elementorAdminConfig,
937 getDefaultElements: function getDefaultElements() {
938 var elements = {
939 $switchMode: $('#elementor-switch-mode'),
940 $goToEditLink: $('#elementor-go-to-edit-page-link'),
941 $switchModeInput: $('#elementor-switch-mode-input'),
942 $switchModeButton: $('#elementor-switch-mode-button'),
943 $elementorLoader: $('.elementor-loader'),
944 $builderEditor: $('#elementor-editor'),
945 $importButton: $('#elementor-import-template-trigger'),
946 $importArea: $('#elementor-import-template-area'),
947 $settingsForm: $('#elementor-settings-form'),
948 $settingsTabsWrapper: $('#elementor-settings-tabs-wrapper'),
949 $menuGetHelpLink: $('a[href="admin.php?page=go_knowledge_base_site"]')
950 };
951 elements.$settingsFormPages = elements.$settingsForm.find('.elementor-settings-form-page');
952 elements.$activeSettingsPage = elements.$settingsFormPages.filter('.elementor-active');
953 elements.$settingsTabs = elements.$settingsTabsWrapper.children();
954 elements.$activeSettingsTab = elements.$settingsTabs.filter('.nav-tab-active');
955 return elements;
956 },
957 toggleStatus: function toggleStatus() {
958 var isElementorMode = this.isElementorMode();
959 elementorCommon.elements.$body.toggleClass('elementor-editor-active', isElementorMode).toggleClass('elementor-editor-inactive', !isElementorMode);
960 },
961 bindEvents: function bindEvents() {
962 var self = this;
963 self.elements.$switchModeButton.on('click', function (event) {
964 event.preventDefault();
965
966 if (self.isElementorMode()) {
967 elementorCommon.dialogsManager.createWidget('confirm', {
968 message: self.translate('back_to_wordpress_editor_message'),
969 headerMessage: self.translate('back_to_wordpress_editor_header'),
970 strings: {
971 confirm: self.translate('yes'),
972 cancel: self.translate('cancel')
973 },
974 defaultOption: 'confirm',
975 onConfirm: function onConfirm() {
976 self.elements.$switchModeInput.val('');
977 self.toggleStatus();
978 }
979 }).show();
980 } else {
981 self.elements.$switchModeInput.val(true);
982 var $wpTitle = $('#title');
983
984 if (!$wpTitle.val()) {
985 $wpTitle.val('Elementor #' + $('#post_ID').val());
986 }
987
988 if (wp.autosave) {
989 wp.autosave.server.triggerSave();
990 }
991
992 self.animateLoader();
993 $(document).on('heartbeat-tick.autosave', function () {
994 elementorCommon.elements.$window.off('beforeunload.edit-post');
995 location.href = self.elements.$goToEditLink.attr('href');
996 });
997 self.toggleStatus();
998 }
999 });
1000 self.elements.$goToEditLink.on('click', function () {
1001 self.animateLoader();
1002 });
1003 $('div.notice.elementor-message-dismissed').on('click', 'button.notice-dismiss, .elementor-button-notice-dismiss', function (event) {
1004 event.preventDefault();
1005 $.post(ajaxurl, {
1006 action: 'elementor_set_admin_notice_viewed',
1007 notice_id: $(this).closest('.elementor-message-dismissed').data('notice_id')
1008 });
1009 var $wrapperElm = $(this).closest('.elementor-message-dismissed');
1010 $wrapperElm.fadeTo(100, 0, function () {
1011 $wrapperElm.slideUp(100, function () {
1012 $wrapperElm.remove();
1013 });
1014 });
1015 });
1016 $('#elementor-clear-cache-button').on('click', function (event) {
1017 event.preventDefault();
1018 var $thisButton = $(this);
1019 $thisButton.removeClass('success').addClass('loading');
1020 $.post(ajaxurl, {
1021 action: 'elementor_clear_cache',
1022 _nonce: $thisButton.data('nonce')
1023 }).done(function () {
1024 $thisButton.removeClass('loading').addClass('success');
1025 });
1026 });
1027 $('#elementor-library-sync-button').on('click', function (event) {
1028 event.preventDefault();
1029 var $thisButton = $(this);
1030 $thisButton.removeClass('success').addClass('loading');
1031 $.post(ajaxurl, {
1032 action: 'elementor_reset_library',
1033 _nonce: $thisButton.data('nonce')
1034 }).done(function () {
1035 $thisButton.removeClass('loading').addClass('success');
1036 });
1037 });
1038 $('#elementor-replace-url-button').on('click', function (event) {
1039 event.preventDefault();
1040 var $this = $(this),
1041 $tr = $this.parents('tr'),
1042 $from = $tr.find('[name="from"]'),
1043 $to = $tr.find('[name="to"]');
1044 $this.removeClass('success').addClass('loading');
1045 $.post(ajaxurl, {
1046 action: 'elementor_replace_url',
1047 from: $from.val(),
1048 to: $to.val(),
1049 _nonce: $this.data('nonce')
1050 }).done(function (response) {
1051 $this.removeClass('loading');
1052
1053 if (response.success) {
1054 $this.addClass('success');
1055 }
1056
1057 elementorCommon.dialogsManager.createWidget('alert', {
1058 message: response.data
1059 }).show();
1060 });
1061 });
1062 $('#elementor_upgrade_fa_button').on('click', function (event) {
1063 event.preventDefault();
1064 var $updateButton = $(this);
1065 $updateButton.addClass('loading');
1066 elementorCommon.dialogsManager.createWidget('confirm', {
1067 id: 'confirm_fa_migration_admin_modal',
1068 message: self.translate('confirm_fa_migration_admin_modal_body'),
1069 headerMessage: self.translate('confirm_fa_migration_admin_modal_head'),
1070 strings: {
1071 confirm: self.translate('yes'),
1072 cancel: self.translate('cancel')
1073 },
1074 defaultOption: 'confirm',
1075 onConfirm: function onConfirm() {
1076 $updateButton.removeClass('error').addClass('loading');
1077 $.post(ajaxurl, $updateButton.data()).done(function (response) {
1078 $updateButton.removeClass('loading').addClass('success');
1079 $('#elementor_upgrade_fa_button').parent().append(response.data.message);
1080 var redirectTo = (location.search.split('redirect_to=')[1] || '').split('&')[0];
1081
1082 if (redirectTo) {
1083 location.href = decodeURIComponent(redirectTo);
1084 return;
1085 }
1086
1087 history.go(-1);
1088 }).fail(function () {
1089 $updateButton.removeClass('loading').addClass('error');
1090 });
1091 },
1092 onCancel: function onCancel() {
1093 $updateButton.removeClass('loading').addClass('error');
1094 }
1095 }).show();
1096 });
1097 self.elements.$settingsTabs.on({
1098 click: function click(event) {
1099 event.preventDefault();
1100 event.currentTarget.focus(); // Safari does not focus the tab automatically
1101 },
1102 focus: function focus() {
1103 // Using focus event to enable navigation by tab key
1104 var hrefWithoutHash = location.href.replace(/#.*/, '');
1105 history.pushState({}, '', hrefWithoutHash + this.hash);
1106 self.goToSettingsTabFromHash();
1107 }
1108 });
1109 $('select.elementor-rollback-select').on('change', function () {
1110 var $this = $(this),
1111 $rollbackButton = $this.next('.elementor-rollback-button'),
1112 placeholderText = $rollbackButton.data('placeholder-text'),
1113 placeholderUrl = $rollbackButton.data('placeholder-url');
1114 $rollbackButton.html(placeholderText.replace('{VERSION}', $this.val()));
1115 $rollbackButton.attr('href', placeholderUrl.replace('VERSION', $this.val()));
1116 }).trigger('change');
1117 $('.elementor-rollback-button').on('click', function (event) {
1118 event.preventDefault();
1119 var $this = $(this);
1120 elementorCommon.dialogsManager.createWidget('confirm', {
1121 headerMessage: self.translate('rollback_to_previous_version'),
1122 message: self.translate('rollback_confirm'),
1123 strings: {
1124 confirm: self.translate('yes'),
1125 cancel: self.translate('cancel')
1126 },
1127 onConfirm: function onConfirm() {
1128 $this.addClass('loading');
1129 location.href = $this.attr('href');
1130 }
1131 }).show();
1132 });
1133 $('.elementor_css_print_method select').on('change', function () {
1134 var $descriptions = $('.elementor-css-print-method-description');
1135 $descriptions.hide();
1136 $descriptions.filter('[data-value="' + $(this).val() + '"]').show();
1137 }).trigger('change');
1138 },
1139 onInit: function onInit() {
1140 elementorModules.ViewModule.prototype.onInit.apply(this, arguments);
1141 this.initTemplatesImport();
1142 this.initMaintenanceMode();
1143 this.goToSettingsTabFromHash();
1144 this.openGetHelpInNewTab();
1145 this.roleManager.init();
1146 },
1147 openGetHelpInNewTab: function openGetHelpInNewTab() {
1148 this.elements.$menuGetHelpLink.attr('target', '_blank');
1149 },
1150 initTemplatesImport: function initTemplatesImport() {
1151 if (!elementorCommon.elements.$body.hasClass('post-type-elementor_library')) {
1152 return;
1153 }
1154
1155 var self = this,
1156 $importButton = self.elements.$importButton,
1157 $importArea = self.elements.$importArea;
1158 self.elements.$formAnchor = $('h1');
1159 $('#wpbody-content').find('.page-title-action:last').after($importButton);
1160 self.elements.$formAnchor.after($importArea);
1161 $importButton.on('click', function () {
1162 $('#elementor-import-template-area').toggle();
1163 });
1164 },
1165 initMaintenanceMode: function initMaintenanceMode() {
1166 var MaintenanceMode = __webpack_require__(709);
1167
1168 this.maintenanceMode = new MaintenanceMode();
1169 },
1170 isElementorMode: function isElementorMode() {
1171 return !!this.elements.$switchModeInput.val();
1172 },
1173 animateLoader: function animateLoader() {
1174 this.elements.$goToEditLink.addClass('elementor-animate');
1175 },
1176 goToSettingsTabFromHash: function goToSettingsTabFromHash() {
1177 var hash = location.hash.slice(1);
1178
1179 if (hash) {
1180 this.goToSettingsTab(hash);
1181 }
1182 },
1183 goToSettingsTab: function goToSettingsTab(tabName) {
1184 var $pages = this.elements.$settingsFormPages;
1185
1186 if (!$pages.length) {
1187 return;
1188 }
1189
1190 var $activePage = $pages.filter('#' + tabName);
1191 this.elements.$activeSettingsPage.removeClass('elementor-active');
1192 this.elements.$activeSettingsTab.removeClass('nav-tab-active');
1193 var $activeTab = this.elements.$settingsTabs.filter('#elementor-settings-' + tabName);
1194 $activePage.addClass('elementor-active');
1195 $activeTab.addClass('nav-tab-active');
1196 this.elements.$settingsForm.attr('action', 'options.php#' + tabName);
1197 this.elements.$activeSettingsPage = $activePage;
1198 this.elements.$activeSettingsTab = $activeTab;
1199 },
1200 translate: function translate(stringKey, templateArgs) {
1201 return elementorCommon.translate(stringKey, null, templateArgs, this.config.i18n);
1202 },
1203 roleManager: {
1204 selectors: {
1205 body: 'elementor-role-manager',
1206 row: '.elementor-role-row',
1207 label: '.elementor-role-label',
1208 excludedIndicator: '.elementor-role-excluded-indicator',
1209 excludedField: 'input[name="elementor_exclude_user_roles[]"]',
1210 controlsContainer: '.elementor-role-controls',
1211 toggleHandle: '.elementor-role-toggle',
1212 arrowUp: 'dashicons-arrow-up',
1213 arrowDown: 'dashicons-arrow-down'
1214 },
1215 toggle: function toggle($trigger) {
1216 var self = this,
1217 $row = $trigger.closest(self.selectors.row),
1218 $toggleHandleIcon = $row.find(self.selectors.toggleHandle).find('.dashicons'),
1219 $controls = $row.find(self.selectors.controlsContainer);
1220 $controls.toggleClass('hidden');
1221
1222 if ($controls.hasClass('hidden')) {
1223 $toggleHandleIcon.removeClass(self.selectors.arrowUp).addClass(self.selectors.arrowDown);
1224 } else {
1225 $toggleHandleIcon.removeClass(self.selectors.arrowDown).addClass(self.selectors.arrowUp);
1226 }
1227
1228 self.updateLabel($row);
1229 },
1230 updateLabel: function updateLabel($row) {
1231 var self = this,
1232 $indicator = $row.find(self.selectors.excludedIndicator),
1233 excluded = $row.find(self.selectors.excludedField).is(':checked');
1234
1235 if (excluded) {
1236 $indicator.html($indicator.data('excluded-label'));
1237 } else {
1238 $indicator.html('');
1239 }
1240
1241 self.setAdvancedState($row, excluded);
1242 },
1243 setAdvancedState: function setAdvancedState($row, state) {
1244 var self = this,
1245 $controls = $row.find('input[type="checkbox"]').not(self.selectors.excludedField);
1246 $controls.each(function (index, input) {
1247 $(input).prop('disabled', state);
1248 });
1249 },
1250 bind: function bind() {
1251 var self = this;
1252 $(document).on('click', self.selectors.label + ',' + self.selectors.toggleHandle, function (event) {
1253 event.stopPropagation();
1254 event.preventDefault();
1255 self.toggle($(this));
1256 }).on('change', self.selectors.excludedField, function () {
1257 self.updateLabel($(this).closest(self.selectors.row));
1258 });
1259 },
1260 init: function init() {
1261 var self = this;
1262
1263 if (!$('body[class*="' + self.selectors.body + '"]').length) {
1264 return;
1265 }
1266
1267 self.bind();
1268 $(self.selectors.row).each(function (index, row) {
1269 self.updateLabel($(row));
1270 });
1271 }
1272 }
1273 });
1274 $(function () {
1275 window.elementorAdmin = new ElementorAdmin();
1276 elementorCommon.elements.$window.trigger('elementor/admin/init');
1277 });
1278 })(jQuery);
1279
1280 /***/ }),
1281
1282 /***/ 709:
1283 /***/ (function(module, exports, __webpack_require__) {
1284
1285 "use strict";
1286
1287
1288 __webpack_require__(26);
1289
1290 module.exports = elementorModules.ViewModule.extend({
1291 getDefaultSettings: function getDefaultSettings() {
1292 return {
1293 selectors: {
1294 modeSelect: '.elementor_maintenance_mode_mode select',
1295 maintenanceModeTable: '#tab-maintenance_mode table',
1296 maintenanceModeDescriptions: '.elementor-maintenance-mode-description',
1297 excludeModeSelect: '.elementor_maintenance_mode_exclude_mode select',
1298 excludeRolesArea: '.elementor_maintenance_mode_exclude_roles',
1299 templateSelect: '.elementor_maintenance_mode_template_id select',
1300 editTemplateButton: '.elementor-edit-template',
1301 maintenanceModeError: '.elementor-maintenance-mode-error'
1302 },
1303 classes: {
1304 isEnabled: 'elementor-maintenance-mode-is-enabled'
1305 }
1306 };
1307 },
1308 getDefaultElements: function getDefaultElements() {
1309 var elements = {},
1310 selectors = this.getSettings('selectors');
1311 elements.$modeSelect = jQuery(selectors.modeSelect);
1312 elements.$maintenanceModeTable = elements.$modeSelect.parents(selectors.maintenanceModeTable);
1313 elements.$excludeModeSelect = elements.$maintenanceModeTable.find(selectors.excludeModeSelect);
1314 elements.$excludeRolesArea = elements.$maintenanceModeTable.find(selectors.excludeRolesArea);
1315 elements.$templateSelect = elements.$maintenanceModeTable.find(selectors.templateSelect);
1316 elements.$editTemplateButton = elements.$maintenanceModeTable.find(selectors.editTemplateButton);
1317 elements.$maintenanceModeDescriptions = elements.$maintenanceModeTable.find(selectors.maintenanceModeDescriptions);
1318 elements.$maintenanceModeError = elements.$maintenanceModeTable.find(selectors.maintenanceModeError);
1319 return elements;
1320 },
1321 handleModeSelectChange: function handleModeSelectChange() {
1322 var settings = this.getSettings(),
1323 elements = this.elements;
1324 elements.$maintenanceModeTable.toggleClass(settings.classes.isEnabled, !!elements.$modeSelect.val());
1325 elements.$maintenanceModeDescriptions.hide();
1326 elements.$maintenanceModeDescriptions.filter('[data-value="' + elements.$modeSelect.val() + '"]').show();
1327 },
1328 handleExcludeModeSelectChange: function handleExcludeModeSelectChange() {
1329 var elements = this.elements;
1330 elements.$excludeRolesArea.toggle('custom' === elements.$excludeModeSelect.val());
1331 },
1332 handleTemplateSelectChange: function handleTemplateSelectChange() {
1333 var elements = this.elements;
1334 var templateID = elements.$templateSelect.val();
1335
1336 if (!templateID) {
1337 elements.$editTemplateButton.hide();
1338 elements.$maintenanceModeError.show();
1339 return;
1340 }
1341
1342 var editUrl = elementorAdmin.config.home_url + '?p=' + templateID + '&elementor';
1343 elements.$editTemplateButton.prop('href', editUrl).show();
1344 elements.$maintenanceModeError.hide();
1345 },
1346 bindEvents: function bindEvents() {
1347 var elements = this.elements;
1348 elements.$modeSelect.on('change', this.handleModeSelectChange.bind(this));
1349 elements.$excludeModeSelect.on('change', this.handleExcludeModeSelectChange.bind(this));
1350 elements.$templateSelect.on('change', this.handleTemplateSelectChange.bind(this));
1351 },
1352 onAdminInit: function onAdminInit() {
1353 this.handleModeSelectChange();
1354 this.handleExcludeModeSelectChange();
1355 this.handleTemplateSelectChange();
1356 },
1357 onInit: function onInit() {
1358 elementorModules.ViewModule.prototype.onInit.apply(this, arguments);
1359 elementorCommon.elements.$window.on('elementor/admin/init', this.onAdminInit);
1360 }
1361 });
1362
1363 /***/ }),
1364
1365 /***/ 73:
1366 /***/ (function(module, exports, __webpack_require__) {
1367
1368 // optional / simple context binding
1369 var aFunction = __webpack_require__(91);
1370 module.exports = function (fn, that, length) {
1371 aFunction(fn);
1372 if (that === undefined) return fn;
1373 switch (length) {
1374 case 1: return function (a) {
1375 return fn.call(that, a);
1376 };
1377 case 2: return function (a, b) {
1378 return fn.call(that, a, b);
1379 };
1380 case 3: return function (a, b, c) {
1381 return fn.call(that, a, b, c);
1382 };
1383 }
1384 return function (/* ...args */) {
1385 return fn.apply(that, arguments);
1386 };
1387 };
1388
1389
1390 /***/ }),
1391
1392 /***/ 80:
1393 /***/ (function(module, exports, __webpack_require__) {
1394
1395 "use strict";
1396
1397
1398 var isRegExp = __webpack_require__(122);
1399 var anObject = __webpack_require__(18);
1400 var speciesConstructor = __webpack_require__(154);
1401 var advanceStringIndex = __webpack_require__(105);
1402 var toLength = __webpack_require__(43);
1403 var callRegExpExec = __webpack_require__(94);
1404 var regexpExec = __webpack_require__(88);
1405 var fails = __webpack_require__(33);
1406 var $min = Math.min;
1407 var $push = [].push;
1408 var $SPLIT = 'split';
1409 var LENGTH = 'length';
1410 var LAST_INDEX = 'lastIndex';
1411 var MAX_UINT32 = 0xffffffff;
1412
1413 // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
1414 var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });
1415
1416 // @@split logic
1417 __webpack_require__(95)('split', 2, function (defined, SPLIT, $split, maybeCallNative) {
1418 var internalSplit;
1419 if (
1420 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
1421 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
1422 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
1423 '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
1424 '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
1425 ''[$SPLIT](/.?/)[LENGTH]
1426 ) {
1427 // based on es5-shim implementation, need to rework it
1428 internalSplit = function (separator, limit) {
1429 var string = String(this);
1430 if (separator === undefined && limit === 0) return [];
1431 // If `separator` is not a regex, use native split
1432 if (!isRegExp(separator)) return $split.call(string, separator, limit);
1433 var output = [];
1434 var flags = (separator.ignoreCase ? 'i' : '') +
1435 (separator.multiline ? 'm' : '') +
1436 (separator.unicode ? 'u' : '') +
1437 (separator.sticky ? 'y' : '');
1438 var lastLastIndex = 0;
1439 var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;
1440 // Make `global` and avoid `lastIndex` issues by working with a copy
1441 var separatorCopy = new RegExp(separator.source, flags + 'g');
1442 var match, lastIndex, lastLength;
1443 while (match = regexpExec.call(separatorCopy, string)) {
1444 lastIndex = separatorCopy[LAST_INDEX];
1445 if (lastIndex > lastLastIndex) {
1446 output.push(string.slice(lastLastIndex, match.index));
1447 if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
1448 lastLength = match[0][LENGTH];
1449 lastLastIndex = lastIndex;
1450 if (output[LENGTH] >= splitLimit) break;
1451 }
1452 if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
1453 }
1454 if (lastLastIndex === string[LENGTH]) {
1455 if (lastLength || !separatorCopy.test('')) output.push('');
1456 } else output.push(string.slice(lastLastIndex));
1457 return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
1458 };
1459 // Chakra, V8
1460 } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
1461 internalSplit = function (separator, limit) {
1462 return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);
1463 };
1464 } else {
1465 internalSplit = $split;
1466 }
1467
1468 return [
1469 // `String.prototype.split` method
1470 // https://tc39.github.io/ecma262/#sec-string.prototype.split
1471 function split(separator, limit) {
1472 var O = defined(this);
1473 var splitter = separator == undefined ? undefined : separator[SPLIT];
1474 return splitter !== undefined
1475 ? splitter.call(separator, O, limit)
1476 : internalSplit.call(String(O), separator, limit);
1477 },
1478 // `RegExp.prototype[@@split]` method
1479 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
1480 //
1481 // NOTE: This cannot be properly polyfilled in engines that don't support
1482 // the 'y' flag.
1483 function (regexp, limit) {
1484 var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);
1485 if (res.done) return res.value;
1486
1487 var rx = anObject(regexp);
1488 var S = String(this);
1489 var C = speciesConstructor(rx, RegExp);
1490
1491 var unicodeMatching = rx.unicode;
1492 var flags = (rx.ignoreCase ? 'i' : '') +
1493 (rx.multiline ? 'm' : '') +
1494 (rx.unicode ? 'u' : '') +
1495 (SUPPORTS_Y ? 'y' : 'g');
1496
1497 // ^(? + rx + ) is needed, in combination with some S slicing, to
1498 // simulate the 'y' flag.
1499 var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
1500 var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
1501 if (lim === 0) return [];
1502 if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
1503 var p = 0;
1504 var q = 0;
1505 var A = [];
1506 while (q < S.length) {
1507 splitter.lastIndex = SUPPORTS_Y ? q : 0;
1508 var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
1509 var e;
1510 if (
1511 z === null ||
1512 (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
1513 ) {
1514 q = advanceStringIndex(S, q, unicodeMatching);
1515 } else {
1516 A.push(S.slice(p, q));
1517 if (A.length === lim) return A;
1518 for (var i = 1; i <= z.length - 1; i++) {
1519 A.push(z[i]);
1520 if (A.length === lim) return A;
1521 }
1522 q = p = e;
1523 }
1524 }
1525 A.push(S.slice(p));
1526 return A;
1527 }
1528 ];
1529 });
1530
1531
1532 /***/ }),
1533
1534 /***/ 85:
1535 /***/ (function(module, exports, __webpack_require__) {
1536
1537 // 22.1.3.31 Array.prototype[@@unscopables]
1538 var UNSCOPABLES = __webpack_require__(12)('unscopables');
1539 var ArrayProto = Array.prototype;
1540 if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(29)(ArrayProto, UNSCOPABLES, {});
1541 module.exports = function (key) {
1542 ArrayProto[UNSCOPABLES][key] = true;
1543 };
1544
1545
1546 /***/ }),
1547
1548 /***/ 88:
1549 /***/ (function(module, exports, __webpack_require__) {
1550
1551 "use strict";
1552
1553
1554 var regexpFlags = __webpack_require__(106);
1555
1556 var nativeExec = RegExp.prototype.exec;
1557 // This always refers to the native implementation, because the
1558 // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
1559 // which loads this file before patching the method.
1560 var nativeReplace = String.prototype.replace;
1561
1562 var patchedExec = nativeExec;
1563
1564 var LAST_INDEX = 'lastIndex';
1565
1566 var UPDATES_LAST_INDEX_WRONG = (function () {
1567 var re1 = /a/,
1568 re2 = /b*/g;
1569 nativeExec.call(re1, 'a');
1570 nativeExec.call(re2, 'a');
1571 return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
1572 })();
1573
1574 // nonparticipating capturing group, copied from es5-shim's String#split patch.
1575 var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1576
1577 var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
1578
1579 if (PATCH) {
1580 patchedExec = function exec(str) {
1581 var re = this;
1582 var lastIndex, reCopy, match, i;
1583
1584 if (NPCG_INCLUDED) {
1585 reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
1586 }
1587 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
1588
1589 match = nativeExec.call(re, str);
1590
1591 if (UPDATES_LAST_INDEX_WRONG && match) {
1592 re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
1593 }
1594 if (NPCG_INCLUDED && match && match.length > 1) {
1595 // Fix browsers whose `exec` methods don't consistently return `undefined`
1596 // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
1597 // eslint-disable-next-line no-loop-func
1598 nativeReplace.call(match[0], reCopy, function () {
1599 for (i = 1; i < arguments.length - 2; i++) {
1600 if (arguments[i] === undefined) match[i] = undefined;
1601 }
1602 });
1603 }
1604
1605 return match;
1606 };
1607 }
1608
1609 module.exports = patchedExec;
1610
1611
1612 /***/ }),
1613
1614 /***/ 91:
1615 /***/ (function(module, exports) {
1616
1617 module.exports = function (it) {
1618 if (typeof it != 'function') throw TypeError(it + ' is not a function!');
1619 return it;
1620 };
1621
1622
1623 /***/ }),
1624
1625 /***/ 94:
1626 /***/ (function(module, exports, __webpack_require__) {
1627
1628 "use strict";
1629
1630
1631 var classof = __webpack_require__(113);
1632 var builtinExec = RegExp.prototype.exec;
1633
1634 // `RegExpExec` abstract operation
1635 // https://tc39.github.io/ecma262/#sec-regexpexec
1636 module.exports = function (R, S) {
1637 var exec = R.exec;
1638 if (typeof exec === 'function') {
1639 var result = exec.call(R, S);
1640 if (typeof result !== 'object') {
1641 throw new TypeError('RegExp exec method returned something other than an Object or null');
1642 }
1643 return result;
1644 }
1645 if (classof(R) !== 'RegExp') {
1646 throw new TypeError('RegExp#exec called on incompatible receiver');
1647 }
1648 return builtinExec.call(R, S);
1649 };
1650
1651
1652 /***/ }),
1653
1654 /***/ 95:
1655 /***/ (function(module, exports, __webpack_require__) {
1656
1657 "use strict";
1658
1659 __webpack_require__(190);
1660 var redefine = __webpack_require__(35);
1661 var hide = __webpack_require__(29);
1662 var fails = __webpack_require__(33);
1663 var defined = __webpack_require__(42);
1664 var wks = __webpack_require__(12);
1665 var regexpExec = __webpack_require__(88);
1666
1667 var SPECIES = wks('species');
1668
1669 var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1670 // #replace needs built-in support for named groups.
1671 // #match works fine because it just return the exec results, even if it has
1672 // a "grops" property.
1673 var re = /./;
1674 re.exec = function () {
1675 var result = [];
1676 result.groups = { a: '7' };
1677 return result;
1678 };
1679 return ''.replace(re, '$<a>') !== '7';
1680 });
1681
1682 var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
1683 // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
1684 var re = /(?:)/;
1685 var originalExec = re.exec;
1686 re.exec = function () { return originalExec.apply(this, arguments); };
1687 var result = 'ab'.split(re);
1688 return result.length === 2 && result[0] === 'a' && result[1] === 'b';
1689 })();
1690
1691 module.exports = function (KEY, length, exec) {
1692 var SYMBOL = wks(KEY);
1693
1694 var DELEGATES_TO_SYMBOL = !fails(function () {
1695 // String methods call symbol-named RegEp methods
1696 var O = {};
1697 O[SYMBOL] = function () { return 7; };
1698 return ''[KEY](O) != 7;
1699 });
1700
1701 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
1702 // Symbol-named RegExp methods call .exec
1703 var execCalled = false;
1704 var re = /a/;
1705 re.exec = function () { execCalled = true; return null; };
1706 if (KEY === 'split') {
1707 // RegExp[@@split] doesn't call the regex's exec method, but first creates
1708 // a new one. We need to return the patched regex when creating the new one.
1709 re.constructor = {};
1710 re.constructor[SPECIES] = function () { return re; };
1711 }
1712 re[SYMBOL]('');
1713 return !execCalled;
1714 }) : undefined;
1715
1716 if (
1717 !DELEGATES_TO_SYMBOL ||
1718 !DELEGATES_TO_EXEC ||
1719 (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
1720 (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1721 ) {
1722 var nativeRegExpMethod = /./[SYMBOL];
1723 var fns = exec(
1724 defined,
1725 SYMBOL,
1726 ''[KEY],
1727 function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
1728 if (regexp.exec === regexpExec) {
1729 if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1730 // The native String method already delegates to @@method (this
1731 // polyfilled function), leasing to infinite recursion.
1732 // We avoid it by directly calling the native @@method method.
1733 return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
1734 }
1735 return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1736 }
1737 return { done: false };
1738 }
1739 );
1740 var strfn = fns[0];
1741 var rxfn = fns[1];
1742
1743 redefine(String.prototype, KEY, strfn);
1744 hide(RegExp.prototype, SYMBOL, length == 2
1745 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
1746 // 21.2.5.11 RegExp.prototype[@@split](string, limit)
1747 ? function (string, arg) { return rxfn.call(string, this, arg); }
1748 // 21.2.5.6 RegExp.prototype[@@match](string)
1749 // 21.2.5.9 RegExp.prototype[@@search](string)
1750 : function (string) { return rxfn.call(string, this); }
1751 );
1752 }
1753 };
1754
1755
1756 /***/ }),
1757
1758 /***/ 96:
1759 /***/ (function(module, exports, __webpack_require__) {
1760
1761 // 7.1.13 ToObject(argument)
1762 var defined = __webpack_require__(42);
1763 module.exports = function (it) {
1764 return Object(defined(it));
1765 };
1766
1767
1768 /***/ })
1769
1770 /******/ });
1771 //# sourceMappingURL=admin.js.map