PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.13
Elementor Website Builder – more than just a page builder v3.0.13
4.3.1 4.3.0 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 All 454 releases
← All changes | assets/js/admin-feedback.js +761 -87 4.3.0-beta1 → 3.0.13 View file →
@@ -1,92 +1,766 @@
1 -(function(_wordpress_i18n) {
1 +/*! elementor - v3.0.13 - 04-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 = 719);
86 +/******/ })
87 +/************************************************************************/
88 +/******/ ({
2 89
3 -//#region \0rolldown/runtime.js
4 - var __defProp = Object.defineProperty;
5 - var __name = (target, value) => __defProp(target, "name", {
6 - value,
7 - configurable: true
8 - });
90 +/***/ 102:
91 +/***/ (function(module, exports, __webpack_require__) {
9 92
10 -//#endregion
93 +// 7.1.13 ToObject(argument)
94 +var defined = __webpack_require__(43);
95 +module.exports = function (it) {
96 + return Object(defined(it));
97 +};
11 98
12 -//#region assets/dev/js/admin/admin-feedback.js
13 - (function($) {
14 - "use strict";
15 - var ElementorAdminDialogApp = {
16 - cacheElements: function cacheElements() {
17 - this.cache = {
18 - $deactivateLink: $("#the-list").find("[data-slug=\"elementor\"] span.deactivate a"),
19 - $dialogHeader: $("#elementor-deactivate-feedback-dialog-header"),
20 - $dialogForm: $("#elementor-deactivate-feedback-dialog-form")
21 - };
22 - },
23 - bindEvents: function bindEvents() {
24 - var self = this;
25 - self.cache.$deactivateLink.on("click", function(event) {
26 - event.preventDefault();
27 - self.getModal().show();
28 - });
29 - },
30 - deactivate: function deactivate() {
31 - location.href = this.cache.$deactivateLink.attr("href");
32 - },
33 - initModal: function initModal() {
34 - var self = this;
35 - var modal;
36 - self.getModal = function() {
37 - if (!modal) modal = elementorCommon.dialogsManager.createWidget("lightbox", {
38 - id: "elementor-deactivate-feedback-modal",
39 - headerMessage: self.cache.$dialogHeader,
40 - message: self.cache.$dialogForm,
41 - hide: { onButtonClick: false },
42 - position: {
43 - my: "center",
44 - at: "center"
45 - },
46 - onReady: function onReady() {
47 - DialogsManager.getWidgetType("lightbox").prototype.onReady.apply(this, arguments);
48 - this.addButton({
49 - name: "submit",
50 - text: (0, _wordpress_i18n.__)("Submit & Deactivate", "elementor"),
51 - callback: self.sendFeedback.bind(self)
52 - });
53 - this.addButton({
54 - name: "skip",
55 - text: (0, _wordpress_i18n.__)("Skip & Deactivate", "elementor"),
56 - callback: function callback() {
57 - self.deactivate();
58 - }
59 - });
60 - },
61 - onShow: function onShow() {
62 - var $dialogModal = $("#elementor-deactivate-feedback-modal");
63 - var radioSelector = ".elementor-deactivate-feedback-dialog-input";
64 - $dialogModal.find(radioSelector).on("change", function() {
65 - $dialogModal.attr("data-feedback-selected", $(this).val());
66 - });
67 - $dialogModal.find(radioSelector + ":checked").trigger("change");
68 - }
69 - });
70 - return modal;
71 - };
72 - },
73 - sendFeedback: function sendFeedback() {
74 - var self = this;
75 - var formData = self.cache.$dialogForm.serialize();
76 - self.getModal().getElements("submit").text("").addClass("elementor-loading");
77 - $.post(ajaxurl, formData, this.deactivate.bind(this));
78 - },
79 - init: function init() {
80 - this.initModal();
81 - this.cacheElements();
82 - this.bindEvents();
83 - }
84 - };
85 - $(function() {
86 - ElementorAdminDialogApp.init();
87 - });
88 - })(jQuery);
89 99
90 -//#endregion
91 -})(wp.i18n);
100 +/***/ }),
101 +
102 +/***/ 106:
103 +/***/ (function(module, exports) {
104 +
105 +module.exports = function (bitmap, value) {
106 + return {
107 + enumerable: !(bitmap & 1),
108 + configurable: !(bitmap & 2),
109 + writable: !(bitmap & 4),
110 + value: value
111 + };
112 +};
113 +
114 +
115 +/***/ }),
116 +
117 +/***/ 114:
118 +/***/ (function(module, exports, __webpack_require__) {
119 +
120 +var isObject = __webpack_require__(31);
121 +var document = __webpack_require__(18).document;
122 +// typeof document.createElement is 'object' in old IE
123 +var is = isObject(document) && isObject(document.createElement);
124 +module.exports = function (it) {
125 + return is ? document.createElement(it) : {};
126 +};
127 +
128 +
129 +/***/ }),
130 +
131 +/***/ 115:
132 +/***/ (function(module, exports) {
133 +
134 +module.exports = false;
135 +
136 +
137 +/***/ }),
138 +
139 +/***/ 125:
140 +/***/ (function(module, exports, __webpack_require__) {
141 +
142 +// fallback for non-array-like ES3 and non-enumerable old V8 strings
143 +var cof = __webpack_require__(52);
144 +// eslint-disable-next-line no-prototype-builtins
145 +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
146 + return cof(it) == 'String' ? it.split('') : Object(it);
147 +};
148 +
149 +
150 +/***/ }),
151 +
152 +/***/ 127:
153 +/***/ (function(module, exports, __webpack_require__) {
154 +
155 +// 7.1.1 ToPrimitive(input [, PreferredType])
156 +var isObject = __webpack_require__(31);
157 +// instead of the ES6 spec version, we didn't implement @@toPrimitive case
158 +// and the second argument - flag - preferred type is a string
159 +module.exports = function (it, S) {
160 + if (!isObject(it)) return it;
161 + var fn, val;
162 + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
163 + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
164 + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
165 + throw TypeError("Can't convert object to primitive value");
166 +};
167 +
168 +
169 +/***/ }),
170 +
171 +/***/ 13:
172 +/***/ (function(module, exports, __webpack_require__) {
173 +
174 +var store = __webpack_require__(76)('wks');
175 +var uid = __webpack_require__(77);
176 +var Symbol = __webpack_require__(18).Symbol;
177 +var USE_SYMBOL = typeof Symbol == 'function';
178 +
179 +var $exports = module.exports = function (name) {
180 + return store[name] || (store[name] =
181 + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
182 +};
183 +
184 +$exports.store = store;
185 +
186 +
187 +/***/ }),
188 +
189 +/***/ 135:
190 +/***/ (function(module, exports, __webpack_require__) {
191 +
192 +module.exports = !__webpack_require__(28) && !__webpack_require__(36)(function () {
193 + return Object.defineProperty(__webpack_require__(114)('div'), 'a', { get: function () { return 7; } }).a != 7;
194 +});
195 +
196 +
197 +/***/ }),
198 +
199 +/***/ 147:
200 +/***/ (function(module, exports, __webpack_require__) {
201 +
202 +module.exports = __webpack_require__(76)('native-function-to-string', Function.toString);
203 +
204 +
205 +/***/ }),
206 +
207 +/***/ 18:
208 +/***/ (function(module, exports) {
209 +
210 +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
211 +var global = module.exports = typeof window != 'undefined' && window.Math == Math
212 + ? window : typeof self != 'undefined' && self.Math == Math ? self
213 + // eslint-disable-next-line no-new-func
214 + : Function('return this')();
215 +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
216 +
217 +
218 +/***/ }),
219 +
220 +/***/ 190:
221 +/***/ (function(module, exports, __webpack_require__) {
222 +
223 +// 0 -> Array#forEach
224 +// 1 -> Array#map
225 +// 2 -> Array#filter
226 +// 3 -> Array#some
227 +// 4 -> Array#every
228 +// 5 -> Array#find
229 +// 6 -> Array#findIndex
230 +var ctx = __webpack_require__(81);
231 +var IObject = __webpack_require__(125);
232 +var toObject = __webpack_require__(102);
233 +var toLength = __webpack_require__(46);
234 +var asc = __webpack_require__(216);
235 +module.exports = function (TYPE, $create) {
236 + var IS_MAP = TYPE == 1;
237 + var IS_FILTER = TYPE == 2;
238 + var IS_SOME = TYPE == 3;
239 + var IS_EVERY = TYPE == 4;
240 + var IS_FIND_INDEX = TYPE == 6;
241 + var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
242 + var create = $create || asc;
243 + return function ($this, callbackfn, that) {
244 + var O = toObject($this);
245 + var self = IObject(O);
246 + var f = ctx(callbackfn, that, 3);
247 + var length = toLength(self.length);
248 + var index = 0;
249 + var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
250 + var val, res;
251 + for (;length > index; index++) if (NO_HOLES || index in self) {
252 + val = self[index];
253 + res = f(val, index, O);
254 + if (TYPE) {
255 + if (IS_MAP) result[index] = res; // map
256 + else if (res) switch (TYPE) {
257 + case 3: return true; // some
258 + case 5: return val; // find
259 + case 6: return index; // findIndex
260 + case 2: result.push(val); // filter
261 + } else if (IS_EVERY) return false; // every
262 + }
263 + }
264 + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
265 + };
266 +};
267 +
268 +
269 +/***/ }),
270 +
271 +/***/ 20:
272 +/***/ (function(module, exports, __webpack_require__) {
273 +
274 +var isObject = __webpack_require__(31);
275 +module.exports = function (it) {
276 + if (!isObject(it)) throw TypeError(it + ' is not an object!');
277 + return it;
278 +};
279 +
280 +
281 +/***/ }),
282 +
283 +/***/ 216:
284 +/***/ (function(module, exports, __webpack_require__) {
285 +
286 +// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
287 +var speciesConstructor = __webpack_require__(217);
288 +
289 +module.exports = function (original, length) {
290 + return new (speciesConstructor(original))(length);
291 +};
292 +
293 +
294 +/***/ }),
295 +
296 +/***/ 217:
297 +/***/ (function(module, exports, __webpack_require__) {
298 +
299 +var isObject = __webpack_require__(31);
300 +var isArray = __webpack_require__(218);
301 +var SPECIES = __webpack_require__(13)('species');
302 +
303 +module.exports = function (original) {
304 + var C;
305 + if (isArray(original)) {
306 + C = original.constructor;
307 + // cross-realm fallback
308 + if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
309 + if (isObject(C)) {
310 + C = C[SPECIES];
311 + if (C === null) C = undefined;
312 + }
313 + } return C === undefined ? Array : C;
314 +};
315 +
316 +
317 +/***/ }),
318 +
319 +/***/ 218:
320 +/***/ (function(module, exports, __webpack_require__) {
321 +
322 +// 7.2.2 IsArray(argument)
323 +var cof = __webpack_require__(52);
324 +module.exports = Array.isArray || function isArray(arg) {
325 + return cof(arg) == 'Array';
326 +};
327 +
328 +
329 +/***/ }),
330 +
331 +/***/ 24:
332 +/***/ (function(module, exports, __webpack_require__) {
333 +
334 +"use strict";
335 +
336 +// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
337 +var $export = __webpack_require__(38);
338 +var $find = __webpack_require__(190)(5);
339 +var KEY = 'find';
340 +var forced = true;
341 +// Shouldn't skip holes
342 +if (KEY in []) Array(1)[KEY](function () { forced = false; });
343 +$export($export.P + $export.F * forced, 'Array', {
344 + find: function find(callbackfn /* , that = undefined */) {
345 + return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
346 + }
347 +});
348 +__webpack_require__(90)(KEY);
349 +
350 +
351 +/***/ }),
352 +
353 +/***/ 28:
354 +/***/ (function(module, exports, __webpack_require__) {
355 +
356 +// Thank's IE8 for his funny defineProperty
357 +module.exports = !__webpack_require__(36)(function () {
358 + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
359 +});
360 +
361 +
362 +/***/ }),
363 +
364 +/***/ 30:
365 +/***/ (function(module, exports, __webpack_require__) {
366 +
367 +var dP = __webpack_require__(51);
368 +var createDesc = __webpack_require__(106);
369 +module.exports = __webpack_require__(28) ? function (object, key, value) {
370 + return dP.f(object, key, createDesc(1, value));
371 +} : function (object, key, value) {
372 + object[key] = value;
373 + return object;
374 +};
375 +
376 +
377 +/***/ }),
378 +
379 +/***/ 31:
380 +/***/ (function(module, exports) {
381 +
382 +module.exports = function (it) {
383 + return typeof it === 'object' ? it !== null : typeof it === 'function';
384 +};
385 +
386 +
387 +/***/ }),
388 +
389 +/***/ 36:
390 +/***/ (function(module, exports) {
391 +
392 +module.exports = function (exec) {
393 + try {
394 + return !!exec();
395 + } catch (e) {
396 + return true;
397 + }
398 +};
399 +
400 +
401 +/***/ }),
402 +
403 +/***/ 38:
404 +/***/ (function(module, exports, __webpack_require__) {
405 +
406 +var global = __webpack_require__(18);
407 +var core = __webpack_require__(58);
408 +var hide = __webpack_require__(30);
409 +var redefine = __webpack_require__(39);
410 +var ctx = __webpack_require__(81);
411 +var PROTOTYPE = 'prototype';
412 +
413 +var $export = function (type, name, source) {
414 + var IS_FORCED = type & $export.F;
415 + var IS_GLOBAL = type & $export.G;
416 + var IS_STATIC = type & $export.S;
417 + var IS_PROTO = type & $export.P;
418 + var IS_BIND = type & $export.B;
419 + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
420 + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
421 + var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
422 + var key, own, out, exp;
423 + if (IS_GLOBAL) source = name;
424 + for (key in source) {
425 + // contains in native
426 + own = !IS_FORCED && target && target[key] !== undefined;
427 + // export native or passed
428 + out = (own ? target : source)[key];
429 + // bind timers to global for call from export context
430 + exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
431 + // extend global
432 + if (target) redefine(target, key, out, type & $export.U);
433 + // export
434 + if (exports[key] != out) hide(exports, key, exp);
435 + if (IS_PROTO && expProto[key] != out) expProto[key] = out;
436 + }
437 +};
438 +global.core = core;
439 +// type bitmap
440 +$export.F = 1; // forced
441 +$export.G = 2; // global
442 +$export.S = 4; // static
443 +$export.P = 8; // proto
444 +$export.B = 16; // bind
445 +$export.W = 32; // wrap
446 +$export.U = 64; // safe
447 +$export.R = 128; // real proto method for `library`
448 +module.exports = $export;
449 +
450 +
451 +/***/ }),
452 +
453 +/***/ 39:
454 +/***/ (function(module, exports, __webpack_require__) {
455 +
456 +var global = __webpack_require__(18);
457 +var hide = __webpack_require__(30);
458 +var has = __webpack_require__(64);
459 +var SRC = __webpack_require__(77)('src');
460 +var $toString = __webpack_require__(147);
461 +var TO_STRING = 'toString';
462 +var TPL = ('' + $toString).split(TO_STRING);
463 +
464 +__webpack_require__(58).inspectSource = function (it) {
465 + return $toString.call(it);
466 +};
467 +
468 +(module.exports = function (O, key, val, safe) {
469 + var isFunction = typeof val == 'function';
470 + if (isFunction) has(val, 'name') || hide(val, 'name', key);
471 + if (O[key] === val) return;
472 + if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
473 + if (O === global) {
474 + O[key] = val;
475 + } else if (!safe) {
476 + delete O[key];
477 + hide(O, key, val);
478 + } else if (O[key]) {
479 + O[key] = val;
480 + } else {
481 + hide(O, key, val);
482 + }
483 +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
484 +})(Function.prototype, TO_STRING, function toString() {
485 + return typeof this == 'function' && this[SRC] || $toString.call(this);
486 +});
487 +
488 +
489 +/***/ }),
490 +
491 +/***/ 43:
492 +/***/ (function(module, exports) {
493 +
494 +// 7.2.1 RequireObjectCoercible(argument)
495 +module.exports = function (it) {
496 + if (it == undefined) throw TypeError("Can't call method on " + it);
497 + return it;
498 +};
499 +
500 +
501 +/***/ }),
502 +
503 +/***/ 46:
504 +/***/ (function(module, exports, __webpack_require__) {
505 +
506 +// 7.1.15 ToLength
507 +var toInteger = __webpack_require__(60);
508 +var min = Math.min;
509 +module.exports = function (it) {
510 + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
511 +};
512 +
513 +
514 +/***/ }),
515 +
516 +/***/ 51:
517 +/***/ (function(module, exports, __webpack_require__) {
518 +
519 +var anObject = __webpack_require__(20);
520 +var IE8_DOM_DEFINE = __webpack_require__(135);
521 +var toPrimitive = __webpack_require__(127);
522 +var dP = Object.defineProperty;
523 +
524 +exports.f = __webpack_require__(28) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
525 + anObject(O);
526 + P = toPrimitive(P, true);
527 + anObject(Attributes);
528 + if (IE8_DOM_DEFINE) try {
529 + return dP(O, P, Attributes);
530 + } catch (e) { /* empty */ }
531 + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
532 + if ('value' in Attributes) O[P] = Attributes.value;
533 + return O;
534 +};
535 +
536 +
537 +/***/ }),
538 +
539 +/***/ 52:
540 +/***/ (function(module, exports) {
541 +
542 +var toString = {}.toString;
543 +
544 +module.exports = function (it) {
545 + return toString.call(it).slice(8, -1);
546 +};
547 +
548 +
549 +/***/ }),
550 +
551 +/***/ 58:
552 +/***/ (function(module, exports) {
553 +
554 +var core = module.exports = { version: '2.6.11' };
555 +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
556 +
557 +
558 +/***/ }),
559 +
560 +/***/ 60:
561 +/***/ (function(module, exports) {
562 +
563 +// 7.1.4 ToInteger
564 +var ceil = Math.ceil;
565 +var floor = Math.floor;
566 +module.exports = function (it) {
567 + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
568 +};
569 +
570 +
571 +/***/ }),
572 +
573 +/***/ 64:
574 +/***/ (function(module, exports) {
575 +
576 +var hasOwnProperty = {}.hasOwnProperty;
577 +module.exports = function (it, key) {
578 + return hasOwnProperty.call(it, key);
579 +};
580 +
581 +
582 +/***/ }),
583 +
584 +/***/ 719:
585 +/***/ (function(module, exports, __webpack_require__) {
586 +
587 +"use strict";
588 +
589 +
590 +__webpack_require__(24);
591 +
592 +/* global jQuery */
593 +(function ($) {
594 + 'use strict';
595 +
596 + var ElementorAdminDialogApp = {
597 + cacheElements: function cacheElements() {
598 + this.cache = {
599 + $deactivateLink: $('#the-list').find('[data-slug="elementor"] span.deactivate a'),
600 + $dialogHeader: $('#elementor-deactivate-feedback-dialog-header'),
601 + $dialogForm: $('#elementor-deactivate-feedback-dialog-form')
602 + };
603 + },
604 + bindEvents: function bindEvents() {
605 + var self = this;
606 + self.cache.$deactivateLink.on('click', function (event) {
607 + event.preventDefault();
608 + self.getModal().show();
609 + });
610 + },
611 + deactivate: function deactivate() {
612 + location.href = this.cache.$deactivateLink.attr('href');
613 + },
614 + initModal: function initModal() {
615 + var self = this,
616 + modal;
617 +
618 + self.getModal = function () {
619 + if (!modal) {
620 + modal = elementorCommon.dialogsManager.createWidget('lightbox', {
621 + id: 'elementor-deactivate-feedback-modal',
622 + headerMessage: self.cache.$dialogHeader,
623 + message: self.cache.$dialogForm,
624 + hide: {
625 + onButtonClick: false
626 + },
627 + position: {
628 + my: 'center',
629 + at: 'center'
630 + },
631 + onReady: function onReady() {
632 + DialogsManager.getWidgetType('lightbox').prototype.onReady.apply(this, arguments);
633 + this.addButton({
634 + name: 'submit',
635 + text: elementorAdmin.translate('submit_n_deactivate'),
636 + callback: self.sendFeedback.bind(self)
637 + });
638 +
639 + if (!elementorAdmin.config.feedback.is_tracker_opted_in) {
640 + this.addButton({
641 + name: 'skip',
642 + text: elementorAdmin.translate('skip_n_deactivate'),
643 + callback: function callback() {
644 + self.deactivate();
645 + }
646 + });
647 + }
648 + },
649 + onShow: function onShow() {
650 + var $dialogModal = $('#elementor-deactivate-feedback-modal'),
651 + radioSelector = '.elementor-deactivate-feedback-dialog-input';
652 + $dialogModal.find(radioSelector).on('change', function () {
653 + $dialogModal.attr('data-feedback-selected', $(this).val());
654 + });
655 + $dialogModal.find(radioSelector + ':checked').trigger('change');
656 + }
657 + });
658 + }
659 +
660 + return modal;
661 + };
662 + },
663 + sendFeedback: function sendFeedback() {
664 + var self = this,
665 + formData = self.cache.$dialogForm.serialize();
666 + self.getModal().getElements('submit').text('').addClass('elementor-loading');
667 + $.post(ajaxurl, formData, this.deactivate.bind(this));
668 + },
669 + init: function init() {
670 + this.initModal();
671 + this.cacheElements();
672 + this.bindEvents();
673 + }
674 + };
675 + $(function () {
676 + ElementorAdminDialogApp.init();
677 + });
678 +})(jQuery);
679 +
680 +/***/ }),
681 +
682 +/***/ 76:
683 +/***/ (function(module, exports, __webpack_require__) {
684 +
685 +var core = __webpack_require__(58);
686 +var global = __webpack_require__(18);
687 +var SHARED = '__core-js_shared__';
688 +var store = global[SHARED] || (global[SHARED] = {});
689 +
690 +(module.exports = function (key, value) {
691 + return store[key] || (store[key] = value !== undefined ? value : {});
692 +})('versions', []).push({
693 + version: core.version,
694 + mode: __webpack_require__(115) ? 'pure' : 'global',
695 + copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
696 +});
697 +
698 +
699 +/***/ }),
700 +
701 +/***/ 77:
702 +/***/ (function(module, exports) {
703 +
704 +var id = 0;
705 +var px = Math.random();
706 +module.exports = function (key) {
707 + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
708 +};
709 +
710 +
711 +/***/ }),
712 +
713 +/***/ 81:
714 +/***/ (function(module, exports, __webpack_require__) {
715 +
716 +// optional / simple context binding
717 +var aFunction = __webpack_require__(98);
718 +module.exports = function (fn, that, length) {
719 + aFunction(fn);
720 + if (that === undefined) return fn;
721 + switch (length) {
722 + case 1: return function (a) {
723 + return fn.call(that, a);
724 + };
725 + case 2: return function (a, b) {
726 + return fn.call(that, a, b);
727 + };
728 + case 3: return function (a, b, c) {
729 + return fn.call(that, a, b, c);
730 + };
731 + }
732 + return function (/* ...args */) {
733 + return fn.apply(that, arguments);
734 + };
735 +};
736 +
737 +
738 +/***/ }),
739 +
740 +/***/ 90:
741 +/***/ (function(module, exports, __webpack_require__) {
742 +
743 +// 22.1.3.31 Array.prototype[@@unscopables]
744 +var UNSCOPABLES = __webpack_require__(13)('unscopables');
745 +var ArrayProto = Array.prototype;
746 +if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(30)(ArrayProto, UNSCOPABLES, {});
747 +module.exports = function (key) {
748 + ArrayProto[UNSCOPABLES][key] = true;
749 +};
750 +
751 +
752 +/***/ }),
753 +
754 +/***/ 98:
755 +/***/ (function(module, exports) {
756 +
757 +module.exports = function (it) {
758 + if (typeof it != 'function') throw TypeError(it + ' is not a function!');
759 + return it;
760 +};
761 +
762 +
763 +/***/ })
764 +
765 +/******/ });
92 766 //# sourceMappingURL=admin-feedback.js.map