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

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