PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.1
Elementor Website Builder – more than just a page builder v3.0.1
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
elementor / assets / js / admin.js

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