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