| @@ -1,1759 +1,8 @@ | ||
| 1 | +/*! elementor - v3.24.0 - 28-10-2024 */ | |
| 1 | 2 | /******/ (() => { // webpackBootstrap |
| 2 | 3 | /******/ var __webpack_modules__ = ({ |
| 3 | 4 | |
| 4 | -/***/ "../app/assets/js/event-track/dashboard/action-controls.js": | |
| 5 | -/*!*****************************************************************!*\ | |
| 6 | - !*** ../app/assets/js/event-track/dashboard/action-controls.js ***! | |
| 7 | - \*****************************************************************/ | |
| 8 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9 | - | |
| 10 | -"use strict"; | |
| 11 | - | |
| 12 | - | |
| 13 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 14 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 15 | -Object.defineProperty(exports, "__esModule", ({ | |
| 16 | - value: true | |
| 17 | -})); | |
| 18 | -exports["default"] = void 0; | |
| 19 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 20 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 21 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 22 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 23 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 24 | -var _wpDashboardTracking = _interopRequireWildcard(__webpack_require__(/*! ../wp-dashboard-tracking */ "../app/assets/js/event-track/wp-dashboard-tracking.js")); | |
| 25 | -var _utils = __webpack_require__(/*! ./utils */ "../app/assets/js/event-track/dashboard/utils.js"); | |
| 26 | -var _baseTracking = _interopRequireDefault(__webpack_require__(/*! ./base-tracking */ "../app/assets/js/event-track/dashboard/base-tracking.js")); | |
| 27 | -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } | |
| 28 | -function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; } | |
| 29 | -function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } | |
| 30 | -function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } | |
| 31 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 32 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 33 | -var EXCLUDED_SELECTORS = { | |
| 34 | - ADMIN_MENU: '#adminmenu', | |
| 35 | - TOP_BAR: '.e-admin-top-bar', | |
| 36 | - TOP_BAR_EDITOR_ONE: '#editor-one-top-bar', | |
| 37 | - WP_ADMIN_BAR: '#wpadminbar', | |
| 38 | - SUBMENU: '.wp-submenu', | |
| 39 | - PROMO_PAGE: '.e-feature-promotion', | |
| 40 | - PROMO_BLANK_STATE: '.elementor-blank_state', | |
| 41 | - APP: '.e-app', | |
| 42 | - SIDEBAR_NAVIGATION: '#editor-one-sidebar-navigation', | |
| 43 | - FLYOUT_MENU: '.elementor-submenu-flyout' | |
| 44 | -}; | |
| 45 | -var ActionControlTracking = /*#__PURE__*/function (_BaseTracking) { | |
| 46 | - function ActionControlTracking() { | |
| 47 | - (0, _classCallCheck2.default)(this, ActionControlTracking); | |
| 48 | - return _callSuper(this, ActionControlTracking, arguments); | |
| 49 | - } | |
| 50 | - (0, _inherits2.default)(ActionControlTracking, _BaseTracking); | |
| 51 | - return (0, _createClass2.default)(ActionControlTracking, null, [{ | |
| 52 | - key: "init", | |
| 53 | - value: function init() { | |
| 54 | - if (!_utils.DashboardUtils.isElementorPage()) { | |
| 55 | - return; | |
| 56 | - } | |
| 57 | - this.attachDelegatedHandlers(); | |
| 58 | - this.addTrackingAttributesToFilterButtons(); | |
| 59 | - this.initializeLinkDataIds(); | |
| 60 | - } | |
| 61 | - }, { | |
| 62 | - key: "initializeLinkDataIds", | |
| 63 | - value: function initializeLinkDataIds() { | |
| 64 | - var _this = this; | |
| 65 | - var initializeLinks = function initializeLinks() { | |
| 66 | - var links = document.querySelectorAll('a[href]'); | |
| 67 | - links.forEach(function (link) { | |
| 68 | - if (_this.isExcludedElement(link) || _this.isNavigationLink(link) || link.hasAttribute('data-id')) { | |
| 69 | - return; | |
| 70 | - } | |
| 71 | - var href = link.getAttribute('href'); | |
| 72 | - if (!href) { | |
| 73 | - return; | |
| 74 | - } | |
| 75 | - var cleanedHref = _this.removeNonceFromUrl(href); | |
| 76 | - if (cleanedHref) { | |
| 77 | - link.setAttribute('data-id', cleanedHref); | |
| 78 | - } | |
| 79 | - }); | |
| 80 | - }; | |
| 81 | - if ('loading' === document.readyState) { | |
| 82 | - document.addEventListener('DOMContentLoaded', initializeLinks); | |
| 83 | - } else { | |
| 84 | - initializeLinks(); | |
| 85 | - } | |
| 86 | - } | |
| 87 | - }, { | |
| 88 | - key: "addTrackingAttributesToFilterButtons", | |
| 89 | - value: function addTrackingAttributesToFilterButtons() { | |
| 90 | - var body = document.body; | |
| 91 | - if (!body) { | |
| 92 | - return; | |
| 93 | - } | |
| 94 | - var screenPrefix = ''; | |
| 95 | - switch (true) { | |
| 96 | - case body.classList.contains('post-type-elementor_library'): | |
| 97 | - screenPrefix = 'elementor_library-library'; | |
| 98 | - break; | |
| 99 | - case body.classList.contains('post-type-e-floating-buttons'): | |
| 100 | - screenPrefix = 'e-floating-buttons'; | |
| 101 | - break; | |
| 102 | - default: | |
| 103 | - return; | |
| 104 | - } | |
| 105 | - var addDataIdToListTableButtons = function addDataIdToListTableButtons() { | |
| 106 | - var buttonConfigs = [{ | |
| 107 | - id: 'post-query-submit', | |
| 108 | - suffix: 'filter' | |
| 109 | - }, { | |
| 110 | - id: 'search-submit', | |
| 111 | - suffix: 'search' | |
| 112 | - }, { | |
| 113 | - id: 'doaction', | |
| 114 | - suffix: 'apply' | |
| 115 | - }, { | |
| 116 | - id: 'doaction2', | |
| 117 | - suffix: 'apply-bottom' | |
| 118 | - }]; | |
| 119 | - buttonConfigs.forEach(function (config) { | |
| 120 | - var button = document.getElementById(config.id); | |
| 121 | - if (!button || button.hasAttribute('data-id')) { | |
| 122 | - return; | |
| 123 | - } | |
| 124 | - button.setAttribute('data-id', "".concat(screenPrefix, "-button-").concat(config.suffix)); | |
| 125 | - }); | |
| 126 | - }; | |
| 127 | - if ('loading' === document.readyState) { | |
| 128 | - document.addEventListener('DOMContentLoaded', addDataIdToListTableButtons); | |
| 129 | - } else { | |
| 130 | - addDataIdToListTableButtons(); | |
| 131 | - } | |
| 132 | - } | |
| 133 | - }, { | |
| 134 | - key: "isExcludedElement", | |
| 135 | - value: function isExcludedElement(element) { | |
| 136 | - for (var _i = 0, _Object$values = Object.values(EXCLUDED_SELECTORS); _i < _Object$values.length; _i++) { | |
| 137 | - var selector = _Object$values[_i]; | |
| 138 | - if (element.closest(selector)) { | |
| 139 | - return true; | |
| 140 | - } | |
| 141 | - } | |
| 142 | - if (element.classList.contains('go-pro')) { | |
| 143 | - return true; | |
| 144 | - } | |
| 145 | - return false; | |
| 146 | - } | |
| 147 | - }, { | |
| 148 | - key: "attachDelegatedHandlers", | |
| 149 | - value: function attachDelegatedHandlers() { | |
| 150 | - var _this2 = this; | |
| 151 | - var FILTER_BUTTON_IDS = ['search-submit', 'post-query-submit']; | |
| 152 | - this.addEventListenerTracked(document, 'click', function (event) { | |
| 153 | - var _event$target; | |
| 154 | - var base = event.target && 1 === event.target.nodeType ? event.target : (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.parentElement; | |
| 155 | - if (!base) { | |
| 156 | - return; | |
| 157 | - } | |
| 158 | - var toggle = base.closest('.elementor-role-toggle'); | |
| 159 | - if (toggle && !_this2.isExcludedElement(toggle)) { | |
| 160 | - _this2.trackControl(toggle, _wpDashboardTracking.CONTROL_TYPES.TOGGLE); | |
| 161 | - return; | |
| 162 | - } | |
| 163 | - var button = base.closest('button, input[type="submit"], input[type="button"], .button, .e-btn'); | |
| 164 | - if (button && !_this2.isExcludedElement(button)) { | |
| 165 | - if (FILTER_BUTTON_IDS.includes(button.id)) { | |
| 166 | - _this2.trackControl(button, _wpDashboardTracking.CONTROL_TYPES.FILTER); | |
| 167 | - return; | |
| 168 | - } | |
| 169 | - _this2.trackControl(button, _wpDashboardTracking.CONTROL_TYPES.BUTTON); | |
| 170 | - return; | |
| 171 | - } | |
| 172 | - var link = base.closest('a'); | |
| 173 | - if (link && !_this2.isExcludedElement(link) && !_this2.isNavigationLink(link)) { | |
| 174 | - _this2.trackControl(link, _wpDashboardTracking.CONTROL_TYPES.LINK); | |
| 175 | - } | |
| 176 | - }, { | |
| 177 | - capture: false | |
| 178 | - }); | |
| 179 | - this.addEventListenerTracked(document, 'change', function (event) { | |
| 180 | - var _event$target2; | |
| 181 | - var base = event.target && 1 === event.target.nodeType ? event.target : (_event$target2 = event.target) === null || _event$target2 === void 0 ? void 0 : _event$target2.parentElement; | |
| 182 | - if (!base) { | |
| 183 | - return; | |
| 184 | - } | |
| 185 | - var toggle = null; | |
| 186 | - if (_wpDashboardTracking.default.isEditorOneActive()) { | |
| 187 | - toggle = base.closest('.MuiSwitch-switchBase'); | |
| 188 | - } else { | |
| 189 | - toggle = base.closest('.components-toggle-control'); | |
| 190 | - } | |
| 191 | - if (toggle && !_this2.isExcludedElement(toggle)) { | |
| 192 | - _this2.trackControl(toggle, _wpDashboardTracking.CONTROL_TYPES.TOGGLE); | |
| 193 | - return; | |
| 194 | - } | |
| 195 | - var checkbox = base.closest('input[type="checkbox"]'); | |
| 196 | - if (checkbox && !_this2.isExcludedElement(checkbox)) { | |
| 197 | - _this2.trackControl(checkbox, _wpDashboardTracking.CONTROL_TYPES.CHECKBOX); | |
| 198 | - return; | |
| 199 | - } | |
| 200 | - var radio = base.closest('input[type="radio"]'); | |
| 201 | - if (radio && !_this2.isExcludedElement(radio)) { | |
| 202 | - _this2.trackControl(radio, _wpDashboardTracking.CONTROL_TYPES.RADIO); | |
| 203 | - return; | |
| 204 | - } | |
| 205 | - var select = base.closest('select'); | |
| 206 | - if (select && !_this2.isExcludedElement(select)) { | |
| 207 | - _this2.trackControl(select, _wpDashboardTracking.CONTROL_TYPES.SELECT); | |
| 208 | - } | |
| 209 | - }); | |
| 210 | - } | |
| 211 | - }, { | |
| 212 | - key: "isNavigationLink", | |
| 213 | - value: function isNavigationLink(link) { | |
| 214 | - var href = link.getAttribute('href'); | |
| 215 | - if (!href) { | |
| 216 | - return false; | |
| 217 | - } | |
| 218 | - if (href.startsWith('#') && href.includes('tab')) { | |
| 219 | - return true; | |
| 220 | - } | |
| 221 | - if (link.classList.contains('nav-tab')) { | |
| 222 | - return true; | |
| 223 | - } | |
| 224 | - var isInNavigation = link.closest('.wp-submenu, #adminmenu, .e-admin-top-bar, #wpadminbar'); | |
| 225 | - return !!isInNavigation; | |
| 226 | - } | |
| 227 | - }, { | |
| 228 | - key: "trackControl", | |
| 229 | - value: function trackControl(element, controlType) { | |
| 230 | - var controlIdentifier = this.extractControlIdentifier(element, controlType); | |
| 231 | - if (!controlIdentifier) { | |
| 232 | - return; | |
| 233 | - } | |
| 234 | - _wpDashboardTracking.default.trackActionControl(controlIdentifier, controlType); | |
| 235 | - } | |
| 236 | - }, { | |
| 237 | - key: "extractControlIdentifier", | |
| 238 | - value: function extractControlIdentifier(element, controlType) { | |
| 239 | - if (_wpDashboardTracking.CONTROL_TYPES.RADIO === controlType) { | |
| 240 | - var name = element.getAttribute('name'); | |
| 241 | - var value = element.value || element.getAttribute('value'); | |
| 242 | - if (name && value) { | |
| 243 | - return "".concat(name, "-").concat(value); | |
| 244 | - } | |
| 245 | - if (name) { | |
| 246 | - return name; | |
| 247 | - } | |
| 248 | - } | |
| 249 | - if (_wpDashboardTracking.CONTROL_TYPES.SELECT === controlType) { | |
| 250 | - var _name = element.getAttribute('name'); | |
| 251 | - if (_name) { | |
| 252 | - return _name; | |
| 253 | - } | |
| 254 | - } | |
| 255 | - if (_wpDashboardTracking.CONTROL_TYPES.CHECKBOX === controlType) { | |
| 256 | - var _name2 = element.getAttribute('name'); | |
| 257 | - if (_name2) { | |
| 258 | - var checkboxesWithSameName = document.querySelectorAll("input[type=\"checkbox\"][name=\"".concat(CSS.escape(_name2), "\"]")); | |
| 259 | - if (checkboxesWithSameName.length > 1) { | |
| 260 | - var _value = element.value || element.getAttribute('value'); | |
| 261 | - if (_value) { | |
| 262 | - return "".concat(_name2, "-").concat(_value); | |
| 263 | - } | |
| 264 | - } | |
| 265 | - return _name2; | |
| 266 | - } | |
| 267 | - } | |
| 268 | - if (_wpDashboardTracking.CONTROL_TYPES.LINK === controlType) { | |
| 269 | - var dataId = element.getAttribute('data-id'); | |
| 270 | - if (dataId) { | |
| 271 | - return dataId; | |
| 272 | - } | |
| 273 | - var href = element.getAttribute('href'); | |
| 274 | - if (href) { | |
| 275 | - return this.removeNonceFromUrl(href); | |
| 276 | - } | |
| 277 | - } | |
| 278 | - if (_wpDashboardTracking.CONTROL_TYPES.BUTTON === controlType || _wpDashboardTracking.CONTROL_TYPES.TOGGLE === controlType || _wpDashboardTracking.CONTROL_TYPES.FILTER === controlType) { | |
| 279 | - var _dataId = element.getAttribute('data-id'); | |
| 280 | - if (_dataId) { | |
| 281 | - return _dataId; | |
| 282 | - } | |
| 283 | - var classIdMatch = this.extractClassId(element); | |
| 284 | - if (classIdMatch) { | |
| 285 | - return classIdMatch; | |
| 286 | - } | |
| 287 | - } | |
| 288 | - return ''; | |
| 289 | - } | |
| 290 | - }, { | |
| 291 | - key: "extractClassId", | |
| 292 | - value: function extractClassId(element) { | |
| 293 | - var classes = element.className; | |
| 294 | - if (!classes || 'string' !== typeof classes) { | |
| 295 | - return ''; | |
| 296 | - } | |
| 297 | - var classList = classes.split(' '); | |
| 298 | - var _iterator = _createForOfIteratorHelper(classList), | |
| 299 | - _step; | |
| 300 | - try { | |
| 301 | - for (_iterator.s(); !(_step = _iterator.n()).done;) { | |
| 302 | - var cls = _step.value; | |
| 303 | - if (cls.startsWith('e-id-')) { | |
| 304 | - return cls.substring(5); | |
| 305 | - } | |
| 306 | - } | |
| 307 | - } catch (err) { | |
| 308 | - _iterator.e(err); | |
| 309 | - } finally { | |
| 310 | - _iterator.f(); | |
| 311 | - } | |
| 312 | - return ''; | |
| 313 | - } | |
| 314 | - }, { | |
| 315 | - key: "removeNonceFromUrl", | |
| 316 | - value: function removeNonceFromUrl(url) { | |
| 317 | - try { | |
| 318 | - var urlObj = new URL(url, window.location.origin); | |
| 319 | - urlObj.searchParams.delete('_wpnonce'); | |
| 320 | - var postParam = urlObj.searchParams.get('post'); | |
| 321 | - if (postParam !== null && /^[0-9]+$/.test(postParam)) { | |
| 322 | - urlObj.searchParams.delete('post'); | |
| 323 | - } | |
| 324 | - return urlObj.pathname + urlObj.search + urlObj.hash; | |
| 325 | - } catch (e) { | |
| 326 | - return url; | |
| 327 | - } | |
| 328 | - } | |
| 329 | - }]); | |
| 330 | -}(_baseTracking.default); | |
| 331 | -var _default = exports["default"] = ActionControlTracking; | |
| 332 | - | |
| 333 | -/***/ }), | |
| 334 | - | |
| 335 | -/***/ "../app/assets/js/event-track/dashboard/base-tracking.js": | |
| 336 | -/*!***************************************************************!*\ | |
| 337 | - !*** ../app/assets/js/event-track/dashboard/base-tracking.js ***! | |
| 338 | - \***************************************************************/ | |
| 339 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 340 | - | |
| 341 | -"use strict"; | |
| 342 | - | |
| 343 | - | |
| 344 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 345 | -Object.defineProperty(exports, "__esModule", ({ | |
| 346 | - value: true | |
| 347 | -})); | |
| 348 | -exports["default"] = void 0; | |
| 349 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 350 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 351 | -var BaseTracking = /*#__PURE__*/function () { | |
| 352 | - function BaseTracking() { | |
| 353 | - (0, _classCallCheck2.default)(this, BaseTracking); | |
| 354 | - } | |
| 355 | - return (0, _createClass2.default)(BaseTracking, null, [{ | |
| 356 | - key: "ensureOwnArrays", | |
| 357 | - value: function ensureOwnArrays() { | |
| 358 | - if (!Object.prototype.hasOwnProperty.call(this, 'observers')) { | |
| 359 | - this.observers = []; | |
| 360 | - } | |
| 361 | - if (!Object.prototype.hasOwnProperty.call(this, 'eventListeners')) { | |
| 362 | - this.eventListeners = []; | |
| 363 | - } | |
| 364 | - } | |
| 365 | - }, { | |
| 366 | - key: "destroy", | |
| 367 | - value: function destroy() { | |
| 368 | - this.ensureOwnArrays(); | |
| 369 | - this.observers.forEach(function (observer) { | |
| 370 | - return observer.disconnect(); | |
| 371 | - }); | |
| 372 | - this.observers = []; | |
| 373 | - this.eventListeners.forEach(function (_ref) { | |
| 374 | - var target = _ref.target, | |
| 375 | - type = _ref.type, | |
| 376 | - handler = _ref.handler, | |
| 377 | - options = _ref.options; | |
| 378 | - target.removeEventListener(type, handler, options); | |
| 379 | - }); | |
| 380 | - this.eventListeners = []; | |
| 381 | - } | |
| 382 | - }, { | |
| 383 | - key: "addObserver", | |
| 384 | - value: function addObserver(target, options, callback) { | |
| 385 | - this.ensureOwnArrays(); | |
| 386 | - var observer = new MutationObserver(callback); | |
| 387 | - observer.observe(target, options); | |
| 388 | - this.observers.push(observer); | |
| 389 | - return observer; | |
| 390 | - } | |
| 391 | - }, { | |
| 392 | - key: "addEventListenerTracked", | |
| 393 | - value: function addEventListenerTracked(target, type, handler) { | |
| 394 | - var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; | |
| 395 | - this.ensureOwnArrays(); | |
| 396 | - target.addEventListener(type, handler, options); | |
| 397 | - this.eventListeners.push({ | |
| 398 | - target: target, | |
| 399 | - type: type, | |
| 400 | - handler: handler, | |
| 401 | - options: options | |
| 402 | - }); | |
| 403 | - } | |
| 404 | - }]); | |
| 405 | -}(); | |
| 406 | -var _default = exports["default"] = BaseTracking; | |
| 407 | - | |
| 408 | -/***/ }), | |
| 409 | - | |
| 410 | -/***/ "../app/assets/js/event-track/dashboard/menu-promotion.js": | |
| 411 | -/*!****************************************************************!*\ | |
| 412 | - !*** ../app/assets/js/event-track/dashboard/menu-promotion.js ***! | |
| 413 | - \****************************************************************/ | |
| 414 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 415 | - | |
| 416 | -"use strict"; | |
| 417 | - | |
| 418 | - | |
| 419 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 420 | -Object.defineProperty(exports, "__esModule", ({ | |
| 421 | - value: true | |
| 422 | -})); | |
| 423 | -exports["default"] = void 0; | |
| 424 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 425 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 426 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 427 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 428 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 429 | -var _wpDashboardTracking = _interopRequireDefault(__webpack_require__(/*! ../wp-dashboard-tracking */ "../app/assets/js/event-track/wp-dashboard-tracking.js")); | |
| 430 | -var _baseTracking = _interopRequireDefault(__webpack_require__(/*! ./base-tracking */ "../app/assets/js/event-track/dashboard/base-tracking.js")); | |
| 431 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 432 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 433 | -var PROMO_MENU_ITEMS = { | |
| 434 | - go_elementor_pro: 'Upgrade', | |
| 435 | - 'elementor-one-upgrade': 'Upgrade' | |
| 436 | -}; | |
| 437 | -var MenuPromotionTracking = /*#__PURE__*/function (_BaseTracking) { | |
| 438 | - function MenuPromotionTracking() { | |
| 439 | - (0, _classCallCheck2.default)(this, MenuPromotionTracking); | |
| 440 | - return _callSuper(this, MenuPromotionTracking, arguments); | |
| 441 | - } | |
| 442 | - (0, _inherits2.default)(MenuPromotionTracking, _BaseTracking); | |
| 443 | - return (0, _createClass2.default)(MenuPromotionTracking, null, [{ | |
| 444 | - key: "init", | |
| 445 | - value: function init() { | |
| 446 | - this.attachDelegatedTracking(); | |
| 447 | - } | |
| 448 | - }, { | |
| 449 | - key: "attachDelegatedTracking", | |
| 450 | - value: function attachDelegatedTracking() { | |
| 451 | - var _this = this; | |
| 452 | - this.addEventListenerTracked(document, 'click', function (event) { | |
| 453 | - var target = event.target; | |
| 454 | - if (!target) { | |
| 455 | - return; | |
| 456 | - } | |
| 457 | - var link = target.closest('a'); | |
| 458 | - if (!link) { | |
| 459 | - return; | |
| 460 | - } | |
| 461 | - var href = link.getAttribute('href'); | |
| 462 | - if (!href) { | |
| 463 | - return; | |
| 464 | - } | |
| 465 | - var menuItemKey = _this.extractPromoMenuKey(href); | |
| 466 | - if (!menuItemKey) { | |
| 467 | - return; | |
| 468 | - } | |
| 469 | - _this.handleMenuPromoClick(link, menuItemKey); | |
| 470 | - }, { | |
| 471 | - capture: true | |
| 472 | - }); | |
| 473 | - } | |
| 474 | - }, { | |
| 475 | - key: "extractPromoMenuKey", | |
| 476 | - value: function extractPromoMenuKey(href) { | |
| 477 | - for (var _i = 0, _Object$keys = Object.keys(PROMO_MENU_ITEMS); _i < _Object$keys.length; _i++) { | |
| 478 | - var menuItemKey = _Object$keys[_i]; | |
| 479 | - if (href.includes("page=".concat(menuItemKey))) { | |
| 480 | - return menuItemKey; | |
| 481 | - } | |
| 482 | - } | |
| 483 | - return null; | |
| 484 | - } | |
| 485 | - }, { | |
| 486 | - key: "handleMenuPromoClick", | |
| 487 | - value: function handleMenuPromoClick(menuItem, menuItemKey) { | |
| 488 | - var destination = menuItem.getAttribute('href'); | |
| 489 | - var promoName = PROMO_MENU_ITEMS[menuItemKey]; | |
| 490 | - var path = menuItemKey.replace('elementor_', '').replace(/_/g, '/'); | |
| 491 | - _wpDashboardTracking.default.trackPromoClicked(promoName, destination, path); | |
| 492 | - } | |
| 493 | - }]); | |
| 494 | -}(_baseTracking.default); | |
| 495 | -var _default = exports["default"] = MenuPromotionTracking; | |
| 496 | - | |
| 497 | -/***/ }), | |
| 498 | - | |
| 499 | -/***/ "../app/assets/js/event-track/dashboard/navigation.js": | |
| 500 | -/*!************************************************************!*\ | |
| 501 | - !*** ../app/assets/js/event-track/dashboard/navigation.js ***! | |
| 502 | - \************************************************************/ | |
| 503 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 504 | - | |
| 505 | -"use strict"; | |
| 506 | - | |
| 507 | - | |
| 508 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 509 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 510 | -Object.defineProperty(exports, "__esModule", ({ | |
| 511 | - value: true | |
| 512 | -})); | |
| 513 | -exports["default"] = void 0; | |
| 514 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 515 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 516 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 517 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 518 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 519 | -var _wpDashboardTracking = _interopRequireWildcard(__webpack_require__(/*! ../wp-dashboard-tracking */ "../app/assets/js/event-track/wp-dashboard-tracking.js")); | |
| 520 | -var _baseTracking = _interopRequireDefault(__webpack_require__(/*! ./base-tracking */ "../app/assets/js/event-track/dashboard/base-tracking.js")); | |
| 521 | -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } | |
| 522 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 523 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 524 | -var ELEMENTOR_MENU_SELECTORS = { | |
| 525 | - ELEMENTOR_TOP_LEVEL: 'li#toplevel_page_elementor', | |
| 526 | - TEMPLATES_TOP_LEVEL: 'li#menu-posts-elementor_library', | |
| 527 | - ELEMENTOR_HOME_TOP_LEVEL: 'li#toplevel_page_elementor-home', | |
| 528 | - ADMIN_MENU: '#adminmenu', | |
| 529 | - TOP_LEVEL_LINK: '.wp-menu-name', | |
| 530 | - SUBMENU_CONTAINER: '.wp-submenu', | |
| 531 | - SUBMENU_ITEM: '.wp-submenu li a', | |
| 532 | - SUBMENU_ITEM_TOP_LEVEL: '.wp-has-submenu', | |
| 533 | - SIDEBAR_NAVIGATION: '#editor-one-sidebar-navigation' | |
| 534 | -}; | |
| 535 | -var NavigationTracking = /*#__PURE__*/function (_BaseTracking) { | |
| 536 | - function NavigationTracking() { | |
| 537 | - (0, _classCallCheck2.default)(this, NavigationTracking); | |
| 538 | - return _callSuper(this, NavigationTracking, arguments); | |
| 539 | - } | |
| 540 | - (0, _inherits2.default)(NavigationTracking, _BaseTracking); | |
| 541 | - return (0, _createClass2.default)(NavigationTracking, null, [{ | |
| 542 | - key: "init", | |
| 543 | - value: function init() { | |
| 544 | - if (_wpDashboardTracking.default.isEditorOneActive()) { | |
| 545 | - this.attachSidebarNavigationTracking(); | |
| 546 | - this.attachElementorHomeMenuTracking(); | |
| 547 | - } else { | |
| 548 | - this.attachElementorMenuTracking(); | |
| 549 | - this.attachTemplatesMenuTracking(); | |
| 550 | - } | |
| 551 | - } | |
| 552 | - }, { | |
| 553 | - key: "attachTemplatesMenuTracking", | |
| 554 | - value: function attachTemplatesMenuTracking() { | |
| 555 | - var templatesMenu = document.querySelector(ELEMENTOR_MENU_SELECTORS.TEMPLATES_TOP_LEVEL); | |
| 556 | - if (!templatesMenu) { | |
| 557 | - return; | |
| 558 | - } | |
| 559 | - this.attachMenuTracking(templatesMenu, 'Templates'); | |
| 560 | - } | |
| 561 | - }, { | |
| 562 | - key: "attachElementorHomeMenuTracking", | |
| 563 | - value: function attachElementorHomeMenuTracking() { | |
| 564 | - var elementorHomeMenu = document.querySelector(ELEMENTOR_MENU_SELECTORS.ELEMENTOR_HOME_TOP_LEVEL); | |
| 565 | - if (!elementorHomeMenu) { | |
| 566 | - return; | |
| 567 | - } | |
| 568 | - this.attachMenuTracking(elementorHomeMenu, 'Elementor'); | |
| 569 | - } | |
| 570 | - }, { | |
| 571 | - key: "attachElementorMenuTracking", | |
| 572 | - value: function attachElementorMenuTracking() { | |
| 573 | - var elementorMenu = document.querySelector(ELEMENTOR_MENU_SELECTORS.ELEMENTOR_TOP_LEVEL); | |
| 574 | - if (!elementorMenu) { | |
| 575 | - return; | |
| 576 | - } | |
| 577 | - this.attachMenuTracking(elementorMenu, 'Elementor'); | |
| 578 | - } | |
| 579 | - }, { | |
| 580 | - key: "attachSidebarNavigationTracking", | |
| 581 | - value: function attachSidebarNavigationTracking() { | |
| 582 | - var sidebar = document.querySelector(ELEMENTOR_MENU_SELECTORS.SIDEBAR_NAVIGATION); | |
| 583 | - if (sidebar) { | |
| 584 | - this.attachSidebarClickListener(sidebar); | |
| 585 | - } | |
| 586 | - } | |
| 587 | - }, { | |
| 588 | - key: "attachSidebarClickListener", | |
| 589 | - value: function attachSidebarClickListener(sidebar) { | |
| 590 | - var _this = this; | |
| 591 | - this.addEventListenerTracked(sidebar, 'click', function (event) { | |
| 592 | - _this.handleSidebarClick(event); | |
| 593 | - }, { | |
| 594 | - capture: true | |
| 595 | - }); | |
| 596 | - } | |
| 597 | - }, { | |
| 598 | - key: "attachMenuTracking", | |
| 599 | - value: function attachMenuTracking(menuElement, menuName) { | |
| 600 | - var _this2 = this; | |
| 601 | - this.addEventListenerTracked(menuElement, 'click', function (event) { | |
| 602 | - _this2.handleMenuClick(event, menuName); | |
| 603 | - }); | |
| 604 | - } | |
| 605 | - }, { | |
| 606 | - key: "handleMenuClick", | |
| 607 | - value: function handleMenuClick(event, menuName) { | |
| 608 | - var link = event.target.closest('a'); | |
| 609 | - if (!link) { | |
| 610 | - return; | |
| 611 | - } | |
| 612 | - var isTopLevel = link.classList.contains('menu-top'); | |
| 613 | - var itemId = this.extractItemId(link); | |
| 614 | - var area = this.determineNavArea(link); | |
| 615 | - _wpDashboardTracking.default.trackNavClicked(itemId, isTopLevel ? null : menuName, area); | |
| 616 | - } | |
| 617 | - }, { | |
| 618 | - key: "handleSidebarClick", | |
| 619 | - value: function handleSidebarClick(event) { | |
| 620 | - var clickedElement = event.target.closest('a, button, [role="button"]'); | |
| 621 | - if (!clickedElement) { | |
| 622 | - return; | |
| 623 | - } | |
| 624 | - var itemId = this.extractSidebarItemId(clickedElement); | |
| 625 | - _wpDashboardTracking.default.trackNavClicked(itemId, null, _wpDashboardTracking.NAV_AREAS.SIDEBAR_MENU); | |
| 626 | - } | |
| 627 | - }, { | |
| 628 | - key: "extractSidebarItemId", | |
| 629 | - value: function extractSidebarItemId(element) { | |
| 630 | - var paragraph = element.querySelector('p'); | |
| 631 | - if (paragraph) { | |
| 632 | - return paragraph.textContent.trim(); | |
| 633 | - } | |
| 634 | - var textContent = element.textContent.trim(); | |
| 635 | - if (textContent) { | |
| 636 | - return textContent; | |
| 637 | - } | |
| 638 | - return 'unknown'; | |
| 639 | - } | |
| 640 | - }, { | |
| 641 | - key: "extractPageFromUrl", | |
| 642 | - value: function extractPageFromUrl(href) { | |
| 643 | - var urlParams = new URLSearchParams(href.split('?')[1] || ''); | |
| 644 | - var page = urlParams.get('page'); | |
| 645 | - if (page) { | |
| 646 | - return page; | |
| 647 | - } | |
| 648 | - var postType = urlParams.get('post_type'); | |
| 649 | - if (postType) { | |
| 650 | - return postType; | |
| 651 | - } | |
| 652 | - return 'unknown'; | |
| 653 | - } | |
| 654 | - }, { | |
| 655 | - key: "extractItemId", | |
| 656 | - value: function extractItemId(link) { | |
| 657 | - var textContent = link.textContent.trim(); | |
| 658 | - if (textContent) { | |
| 659 | - return textContent; | |
| 660 | - } | |
| 661 | - var href = link.getAttribute('href'); | |
| 662 | - if (href) { | |
| 663 | - return this.extractPageFromUrl(href); | |
| 664 | - } | |
| 665 | - var linkId = link.getAttribute('id'); | |
| 666 | - if (linkId) { | |
| 667 | - return linkId; | |
| 668 | - } | |
| 669 | - return 'unknown'; | |
| 670 | - } | |
| 671 | - }, { | |
| 672 | - key: "determineNavArea", | |
| 673 | - value: function determineNavArea(link) { | |
| 674 | - var parentMenu = link.closest('li.menu-top'); | |
| 675 | - if (parentMenu) { | |
| 676 | - var isSubmenuItem = link.closest(ELEMENTOR_MENU_SELECTORS.SUBMENU_CONTAINER); | |
| 677 | - if (isSubmenuItem) { | |
| 678 | - var submenuElement = link.closest(ELEMENTOR_MENU_SELECTORS.SUBMENU_ITEM_TOP_LEVEL); | |
| 679 | - if (submenuElement.classList.contains('wp-not-current-submenu')) { | |
| 680 | - return _wpDashboardTracking.NAV_AREAS.HOVER_MENU; | |
| 681 | - } | |
| 682 | - return _wpDashboardTracking.NAV_AREAS.SUBMENU; | |
| 683 | - } | |
| 684 | - return _wpDashboardTracking.NAV_AREAS.LEFT_MENU; | |
| 685 | - } | |
| 686 | - return _wpDashboardTracking.NAV_AREAS.LEFT_MENU; | |
| 687 | - } | |
| 688 | - }]); | |
| 689 | -}(_baseTracking.default); | |
| 690 | -var _default = exports["default"] = NavigationTracking; | |
| 691 | - | |
| 692 | -/***/ }), | |
| 693 | - | |
| 694 | -/***/ "../app/assets/js/event-track/dashboard/plugin-actions.js": | |
| 695 | -/*!****************************************************************!*\ | |
| 696 | - !*** ../app/assets/js/event-track/dashboard/plugin-actions.js ***! | |
| 697 | - \****************************************************************/ | |
| 698 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 699 | - | |
| 700 | -"use strict"; | |
| 701 | - | |
| 702 | - | |
| 703 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 704 | -Object.defineProperty(exports, "__esModule", ({ | |
| 705 | - value: true | |
| 706 | -})); | |
| 707 | -exports["default"] = void 0; | |
| 708 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 709 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 710 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 711 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 712 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 713 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 714 | -var _wpDashboardTracking = _interopRequireDefault(__webpack_require__(/*! ../wp-dashboard-tracking */ "../app/assets/js/event-track/wp-dashboard-tracking.js")); | |
| 715 | -var _baseTracking = _interopRequireDefault(__webpack_require__(/*! ./base-tracking */ "../app/assets/js/event-track/dashboard/base-tracking.js")); | |
| 716 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 717 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 718 | -var PLUGIN_TYPE = { | |
| 719 | - ELEMENTOR: 'core', | |
| 720 | - ELEMENTOR_PRO: 'pro' | |
| 721 | -}; | |
| 722 | -var PluginActions = /*#__PURE__*/function (_BaseTracking) { | |
| 723 | - function PluginActions() { | |
| 724 | - (0, _classCallCheck2.default)(this, PluginActions); | |
| 725 | - return _callSuper(this, PluginActions, arguments); | |
| 726 | - } | |
| 727 | - (0, _inherits2.default)(PluginActions, _BaseTracking); | |
| 728 | - return (0, _createClass2.default)(PluginActions, null, [{ | |
| 729 | - key: "init", | |
| 730 | - value: function init() { | |
| 731 | - this.attachCoreDeactivationTracking(); | |
| 732 | - this.attachProDeactivationTracking(); | |
| 733 | - this.attachProDeletionTracking(); | |
| 734 | - } | |
| 735 | - }, { | |
| 736 | - key: "attachCoreDeactivationTracking", | |
| 737 | - value: function attachCoreDeactivationTracking() { | |
| 738 | - var _this = this; | |
| 739 | - var dialogForm = document.querySelector('#elementor-deactivate-feedback-dialog-form'); | |
| 740 | - if (!dialogForm) { | |
| 741 | - return; | |
| 742 | - } | |
| 743 | - this.addEventListenerTracked(dialogForm, 'change', function (event) { | |
| 744 | - var target = event.target; | |
| 745 | - if (target.classList.contains('elementor-deactivate-feedback-dialog-input')) { | |
| 746 | - _this.selectedReason = target.value; | |
| 747 | - } | |
| 748 | - }); | |
| 749 | - this.observeModalButtons(); | |
| 750 | - } | |
| 751 | - }, { | |
| 752 | - key: "attachProDeactivationTracking", | |
| 753 | - value: function attachProDeactivationTracking() { | |
| 754 | - var _this2 = this; | |
| 755 | - var pluginsTable = document.querySelector('.plugins'); | |
| 756 | - if (!pluginsTable) { | |
| 757 | - return; | |
| 758 | - } | |
| 759 | - this.addEventListenerTracked(pluginsTable, 'click', function (event) { | |
| 760 | - var link = event.target.closest('a'); | |
| 761 | - if (link && 'deactivate-elementor-pro' === link.id) { | |
| 762 | - _this2.trackProDeactivation(); | |
| 763 | - } | |
| 764 | - }, { | |
| 765 | - capture: true | |
| 766 | - }); | |
| 767 | - } | |
| 768 | - }, { | |
| 769 | - key: "observeModalButtons", | |
| 770 | - value: function observeModalButtons() { | |
| 771 | - var _this3 = this; | |
| 772 | - var checkAndAttachDelegation = function checkAndAttachDelegation() { | |
| 773 | - var modal = document.querySelector('#elementor-deactivate-feedback-modal'); | |
| 774 | - if (!modal) { | |
| 775 | - return false; | |
| 776 | - } | |
| 777 | - _this3.addEventListenerTracked(modal, 'click', function (event) { | |
| 778 | - var submitButton = event.target.closest('.dialog-submit'); | |
| 779 | - var skipButton = event.target.closest('.dialog-skip'); | |
| 780 | - if (submitButton) { | |
| 781 | - _this3.trackCoreDeactivation('submit&deactivate'); | |
| 782 | - } else if (skipButton) { | |
| 783 | - _this3.trackCoreDeactivation('skip&deactivate'); | |
| 784 | - } | |
| 785 | - }, { | |
| 786 | - capture: true | |
| 787 | - }); | |
| 788 | - return true; | |
| 789 | - }; | |
| 790 | - if (checkAndAttachDelegation()) { | |
| 791 | - return; | |
| 792 | - } | |
| 793 | - this.addObserver(document.body, { | |
| 794 | - childList: true, | |
| 795 | - subtree: true | |
| 796 | - }, function (mutations, observer) { | |
| 797 | - if (checkAndAttachDelegation()) { | |
| 798 | - observer.disconnect(); | |
| 799 | - } | |
| 800 | - }); | |
| 801 | - } | |
| 802 | - }, { | |
| 803 | - key: "getUserInput", | |
| 804 | - value: function getUserInput() { | |
| 805 | - var reasonsWithInput = ['found_a_better_plugin', 'other']; | |
| 806 | - if (!this.selectedReason || !reasonsWithInput.includes(this.selectedReason)) { | |
| 807 | - return null; | |
| 808 | - } | |
| 809 | - var inputField = document.querySelector("input[name=\"reason_".concat(this.selectedReason, "\"]")); | |
| 810 | - if (inputField && inputField.value) { | |
| 811 | - return inputField.value; | |
| 812 | - } | |
| 813 | - return null; | |
| 814 | - } | |
| 815 | - }, { | |
| 816 | - key: "trackCoreDeactivation", | |
| 817 | - value: function trackCoreDeactivation(action) { | |
| 818 | - var properties = { | |
| 819 | - deactivate_form_submit: action, | |
| 820 | - deactivate_plugin_type: PLUGIN_TYPE.ELEMENTOR | |
| 821 | - }; | |
| 822 | - if (this.selectedReason) { | |
| 823 | - properties.deactivate_feedback_reason = this.selectedReason; | |
| 824 | - } | |
| 825 | - var userInput = this.getUserInput(); | |
| 826 | - if (userInput) { | |
| 827 | - properties.deactivate_feedback_reason += "/".concat(userInput); | |
| 828 | - } | |
| 829 | - _wpDashboardTracking.default.dispatchEvent('wpdash_deactivate_plugin', properties, { | |
| 830 | - send_immediately: true | |
| 831 | - }); | |
| 832 | - } | |
| 833 | - }, { | |
| 834 | - key: "trackProDeactivation", | |
| 835 | - value: function trackProDeactivation() { | |
| 836 | - this.trackProAction('deactivate'); | |
| 837 | - } | |
| 838 | - }, { | |
| 839 | - key: "attachProDeletionTracking", | |
| 840 | - value: function attachProDeletionTracking() { | |
| 841 | - var _this4 = this; | |
| 842 | - if ('undefined' === typeof jQuery) { | |
| 843 | - return; | |
| 844 | - } | |
| 845 | - jQuery(document).on('wp-plugin-deleting', function (event, args) { | |
| 846 | - if ('elementor-pro' === (args === null || args === void 0 ? void 0 : args.slug)) { | |
| 847 | - _this4.trackProAction('delete'); | |
| 848 | - } | |
| 849 | - }); | |
| 850 | - } | |
| 851 | - }, { | |
| 852 | - key: "destroy", | |
| 853 | - value: function destroy() { | |
| 854 | - if ('undefined' !== typeof jQuery) { | |
| 855 | - jQuery(document).off('wp-plugin-deleting'); | |
| 856 | - } | |
| 857 | - _baseTracking.default.destroy.call(this); | |
| 858 | - } | |
| 859 | - }, { | |
| 860 | - key: "trackProAction", | |
| 861 | - value: function trackProAction(action) { | |
| 862 | - var eventMap = { | |
| 863 | - deactivate: { | |
| 864 | - eventName: 'wpdash_deactivate_plugin', | |
| 865 | - propertyKey: 'deactivate_plugin_type' | |
| 866 | - }, | |
| 867 | - delete: { | |
| 868 | - eventName: 'wpdash_delete_plugin', | |
| 869 | - propertyKey: 'plugin_delete' | |
| 870 | - } | |
| 871 | - }; | |
| 872 | - var config = eventMap[action]; | |
| 873 | - if (!config) { | |
| 874 | - return; | |
| 875 | - } | |
| 876 | - var properties = (0, _defineProperty2.default)({}, config.propertyKey, PLUGIN_TYPE.ELEMENTOR_PRO); | |
| 877 | - _wpDashboardTracking.default.dispatchEvent(config.eventName, properties, { | |
| 878 | - send_immediately: true | |
| 879 | - }); | |
| 880 | - } | |
| 881 | - }]); | |
| 882 | -}(_baseTracking.default); | |
| 883 | -(0, _defineProperty2.default)(PluginActions, "selectedReason", null); | |
| 884 | -var _default = exports["default"] = PluginActions; | |
| 885 | - | |
| 886 | -/***/ }), | |
| 887 | - | |
| 888 | -/***/ "../app/assets/js/event-track/dashboard/promotion.js": | |
| 889 | -/*!***********************************************************!*\ | |
| 890 | - !*** ../app/assets/js/event-track/dashboard/promotion.js ***! | |
| 891 | - \***********************************************************/ | |
| 892 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 893 | - | |
| 894 | -"use strict"; | |
| 895 | - | |
| 896 | - | |
| 897 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 898 | -Object.defineProperty(exports, "__esModule", ({ | |
| 899 | - value: true | |
| 900 | -})); | |
| 901 | -exports["default"] = void 0; | |
| 902 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 903 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 904 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 905 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 906 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 907 | -var _wpDashboardTracking = _interopRequireDefault(__webpack_require__(/*! ../wp-dashboard-tracking */ "../app/assets/js/event-track/wp-dashboard-tracking.js")); | |
| 908 | -var _baseTracking = _interopRequireDefault(__webpack_require__(/*! ./base-tracking */ "../app/assets/js/event-track/dashboard/base-tracking.js")); | |
| 909 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 910 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 911 | -var PROMO_SELECTORS = { | |
| 912 | - PROMO_PAGE: '.e-feature-promotion, .elementor-settings-form-page, #elementor-element-manager-wrap', | |
| 913 | - PROMO_BLANK_STATE: '.elementor-blank_state', | |
| 914 | - CTA_BUTTON: '.go-pro', | |
| 915 | - TITLE: 'h3' | |
| 916 | -}; | |
| 917 | -var PromotionTracking = /*#__PURE__*/function (_BaseTracking) { | |
| 918 | - function PromotionTracking() { | |
| 919 | - (0, _classCallCheck2.default)(this, PromotionTracking); | |
| 920 | - return _callSuper(this, PromotionTracking, arguments); | |
| 921 | - } | |
| 922 | - (0, _inherits2.default)(PromotionTracking, _BaseTracking); | |
| 923 | - return (0, _createClass2.default)(PromotionTracking, null, [{ | |
| 924 | - key: "init", | |
| 925 | - value: function init() { | |
| 926 | - this.attachDelegatedTracking(); | |
| 927 | - } | |
| 928 | - }, { | |
| 929 | - key: "attachDelegatedTracking", | |
| 930 | - value: function attachDelegatedTracking() { | |
| 931 | - var _this = this; | |
| 932 | - this.addEventListenerTracked(document, 'click', function (event) { | |
| 933 | - var target = event.target; | |
| 934 | - if (!target) { | |
| 935 | - return; | |
| 936 | - } | |
| 937 | - var button = target.closest("a".concat(PROMO_SELECTORS.CTA_BUTTON)); | |
| 938 | - if (!button) { | |
| 939 | - return; | |
| 940 | - } | |
| 941 | - var promoPage = button.closest("".concat(PROMO_SELECTORS.PROMO_PAGE, ", ").concat(PROMO_SELECTORS.PROMO_BLANK_STATE)); | |
| 942 | - if (!promoPage) { | |
| 943 | - return; | |
| 944 | - } | |
| 945 | - _this.handlePromoClick(button, promoPage); | |
| 946 | - }, { | |
| 947 | - capture: true | |
| 948 | - }); | |
| 949 | - } | |
| 950 | - }, { | |
| 951 | - key: "handlePromoClick", | |
| 952 | - value: function handlePromoClick(button, promoPage) { | |
| 953 | - var promoTitle = this.extractPromoTitle(promoPage, button); | |
| 954 | - var destination = button.getAttribute('href'); | |
| 955 | - var path = this.extractPromoPath(); | |
| 956 | - _wpDashboardTracking.default.trackPromoClicked(promoTitle, destination, path); | |
| 957 | - } | |
| 958 | - }, { | |
| 959 | - key: "extractPromoTitle", | |
| 960 | - value: function extractPromoTitle(promoPage, button) { | |
| 961 | - var titleElement = promoPage.querySelector(PROMO_SELECTORS.TITLE); | |
| 962 | - return titleElement ? titleElement.textContent.trim() : button.textContent.trim(); | |
| 963 | - } | |
| 964 | - }, { | |
| 965 | - key: "extractPromoPath", | |
| 966 | - value: function extractPromoPath() { | |
| 967 | - var urlParams = new URLSearchParams(window.location.search); | |
| 968 | - var page = urlParams.get('page'); | |
| 969 | - if (!page) { | |
| 970 | - return 'elementor'; | |
| 971 | - } | |
| 972 | - return page.replace('elementor_', '').replace(/_/g, '/'); | |
| 973 | - } | |
| 974 | - }]); | |
| 975 | -}(_baseTracking.default); | |
| 976 | -var _default = exports["default"] = PromotionTracking; | |
| 977 | - | |
| 978 | -/***/ }), | |
| 979 | - | |
| 980 | -/***/ "../app/assets/js/event-track/dashboard/screen-view.js": | |
| 981 | -/*!*************************************************************!*\ | |
| 982 | - !*** ../app/assets/js/event-track/dashboard/screen-view.js ***! | |
| 983 | - \*************************************************************/ | |
| 984 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 985 | - | |
| 986 | -"use strict"; | |
| 987 | - | |
| 988 | - | |
| 989 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 990 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 991 | -Object.defineProperty(exports, "__esModule", ({ | |
| 992 | - value: true | |
| 993 | -})); | |
| 994 | -exports["default"] = void 0; | |
| 995 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 996 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 997 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 998 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 999 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 1000 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1001 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 1002 | -var _wpDashboardTracking = _interopRequireWildcard(__webpack_require__(/*! ../wp-dashboard-tracking */ "../app/assets/js/event-track/wp-dashboard-tracking.js")); | |
| 1003 | -var _utils = __webpack_require__(/*! ./utils */ "../app/assets/js/event-track/dashboard/utils.js"); | |
| 1004 | -var _baseTracking = _interopRequireDefault(__webpack_require__(/*! ./base-tracking */ "../app/assets/js/event-track/dashboard/base-tracking.js")); | |
| 1005 | -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } | |
| 1006 | -function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; } | |
| 1007 | -function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } | |
| 1008 | -function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } | |
| 1009 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1010 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1011 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 1012 | -var SCREEN_SELECTORS = { | |
| 1013 | - NAV_TAB_WRAPPER: '.nav-tab-wrapper', | |
| 1014 | - NAV_TAB: '.nav-tab', | |
| 1015 | - NAV_TAB_ACTIVE: '.nav-tab-active', | |
| 1016 | - SETTINGS_FORM_PAGE: '.elementor-settings-form-page', | |
| 1017 | - SETTINGS_FORM_PAGE_ACTIVE: '.elementor-settings-form-page.elementor-active', | |
| 1018 | - FLOATING_ELEMENTS_MODAL: '#elementor-new-floating-elements-modal', | |
| 1019 | - TEMPLATE_DIALOG_MODAL: '#elementor-new-template-dialog-content' | |
| 1020 | -}; | |
| 1021 | -var TRACKED_MODALS = [SCREEN_SELECTORS.FLOATING_ELEMENTS_MODAL, SCREEN_SELECTORS.TEMPLATE_DIALOG_MODAL]; | |
| 1022 | -var ScreenViewTracking = /*#__PURE__*/function (_BaseTracking) { | |
| 1023 | - function ScreenViewTracking() { | |
| 1024 | - (0, _classCallCheck2.default)(this, ScreenViewTracking); | |
| 1025 | - return _callSuper(this, ScreenViewTracking, arguments); | |
| 1026 | - } | |
| 1027 | - (0, _inherits2.default)(ScreenViewTracking, _BaseTracking); | |
| 1028 | - return (0, _createClass2.default)(ScreenViewTracking, null, [{ | |
| 1029 | - key: "init", | |
| 1030 | - value: function init() { | |
| 1031 | - if (!_utils.DashboardUtils.isElementorPage()) { | |
| 1032 | - return; | |
| 1033 | - } | |
| 1034 | - var screenData = this.getScreenData(); | |
| 1035 | - if (screenData) { | |
| 1036 | - this.trackScreen(screenData.screenId, screenData.screenType); | |
| 1037 | - } | |
| 1038 | - this.attachTabChangeTracking(); | |
| 1039 | - } | |
| 1040 | - }, { | |
| 1041 | - key: "destroy", | |
| 1042 | - value: function destroy() { | |
| 1043 | - _superPropGet(ScreenViewTracking, "destroy", this, 2)([]); | |
| 1044 | - this.trackedScreens.clear(); | |
| 1045 | - } | |
| 1046 | - }, { | |
| 1047 | - key: "getScreenData", | |
| 1048 | - value: function getScreenData() { | |
| 1049 | - var urlParams = new URLSearchParams(window.location.search); | |
| 1050 | - var page = urlParams.get('page'); | |
| 1051 | - var postType = urlParams.get('post_type'); | |
| 1052 | - var hash = window.location.hash; | |
| 1053 | - var screenId = ''; | |
| 1054 | - var screenType = ''; | |
| 1055 | - if (page) { | |
| 1056 | - screenId = page; | |
| 1057 | - } else if (postType) { | |
| 1058 | - screenId = postType; | |
| 1059 | - } else { | |
| 1060 | - screenId = this.getScreenIdFromBody(); | |
| 1061 | - } | |
| 1062 | - if (this.isElementorAppPage()) { | |
| 1063 | - var appScreenData = this.getAppScreenData(hash); | |
| 1064 | - if (appScreenData) { | |
| 1065 | - return appScreenData; | |
| 1066 | - } | |
| 1067 | - } | |
| 1068 | - var hasNavTabs = document.querySelector(SCREEN_SELECTORS.NAV_TAB_WRAPPER); | |
| 1069 | - var hasSettingsTabs = document.querySelectorAll(SCREEN_SELECTORS.SETTINGS_FORM_PAGE).length > 1; | |
| 1070 | - if (hasNavTabs || hasSettingsTabs || hash && !this.isElementorAppPage()) { | |
| 1071 | - screenType = _wpDashboardTracking.SCREEN_TYPES.TAB; | |
| 1072 | - if (hash) { | |
| 1073 | - var tabId = hash.replace(/^#(tab-)?/, ''); | |
| 1074 | - screenId = "".concat(screenId, "-").concat(tabId); | |
| 1075 | - } else if (hasNavTabs) { | |
| 1076 | - var activeTab = document.querySelector(SCREEN_SELECTORS.NAV_TAB_ACTIVE); | |
| 1077 | - if (activeTab) { | |
| 1078 | - var tabText = activeTab.textContent.trim(); | |
| 1079 | - var tabHref = activeTab.getAttribute('href'); | |
| 1080 | - if (tabText) { | |
| 1081 | - screenId = "".concat(screenId, "-").concat(this.sanitizeScreenId(tabText)); | |
| 1082 | - } else if (tabHref && tabHref.includes('#')) { | |
| 1083 | - var _tabId = tabHref.split('#')[1]; | |
| 1084 | - screenId = "".concat(screenId, "-").concat(_tabId); | |
| 1085 | - } | |
| 1086 | - } | |
| 1087 | - } else if (hasSettingsTabs) { | |
| 1088 | - var activeSettingsTab = document.querySelector(SCREEN_SELECTORS.SETTINGS_FORM_PAGE_ACTIVE); | |
| 1089 | - if (activeSettingsTab) { | |
| 1090 | - var _tabId2 = activeSettingsTab.id; | |
| 1091 | - if (_tabId2) { | |
| 1092 | - screenId = "".concat(screenId, "-").concat(_tabId2); | |
| 1093 | - } | |
| 1094 | - } | |
| 1095 | - } | |
| 1096 | - } | |
| 1097 | - return { | |
| 1098 | - screenId: screenId, | |
| 1099 | - screenType: screenType | |
| 1100 | - }; | |
| 1101 | - } | |
| 1102 | - }, { | |
| 1103 | - key: "isElementorAppPage", | |
| 1104 | - value: function isElementorAppPage() { | |
| 1105 | - var urlParams = new URLSearchParams(window.location.search); | |
| 1106 | - return 'elementor-app' === urlParams.get('page'); | |
| 1107 | - } | |
| 1108 | - }, { | |
| 1109 | - key: "getAppScreenData", | |
| 1110 | - value: function getAppScreenData(hash) { | |
| 1111 | - if (!hash) { | |
| 1112 | - return null; | |
| 1113 | - } | |
| 1114 | - var cleanHash = hash.replace(/^#/, ''); | |
| 1115 | - if (!cleanHash.startsWith('/')) { | |
| 1116 | - return null; | |
| 1117 | - } | |
| 1118 | - var pathParts = cleanHash.split('/').filter(Boolean); | |
| 1119 | - if (0 === pathParts.length) { | |
| 1120 | - return null; | |
| 1121 | - } | |
| 1122 | - var screenId = pathParts.join('/'); | |
| 1123 | - var screenType = _wpDashboardTracking.SCREEN_TYPES.APP_SCREEN; | |
| 1124 | - return { | |
| 1125 | - screenId: screenId, | |
| 1126 | - screenType: screenType | |
| 1127 | - }; | |
| 1128 | - } | |
| 1129 | - }, { | |
| 1130 | - key: "getScreenIdFromBody", | |
| 1131 | - value: function getScreenIdFromBody() { | |
| 1132 | - var body = document.body; | |
| 1133 | - var bodyClasses = body.className.split(' '); | |
| 1134 | - var _iterator = _createForOfIteratorHelper(bodyClasses), | |
| 1135 | - _step; | |
| 1136 | - try { | |
| 1137 | - for (_iterator.s(); !(_step = _iterator.n()).done;) { | |
| 1138 | - var cls = _step.value; | |
| 1139 | - if (cls.startsWith('elementor') && (cls.includes('page') || cls.includes('post-type'))) { | |
| 1140 | - return cls; | |
| 1141 | - } | |
| 1142 | - } | |
| 1143 | - } catch (err) { | |
| 1144 | - _iterator.e(err); | |
| 1145 | - } finally { | |
| 1146 | - _iterator.f(); | |
| 1147 | - } | |
| 1148 | - return 'elementor-unknown'; | |
| 1149 | - } | |
| 1150 | - }, { | |
| 1151 | - key: "sanitizeScreenId", | |
| 1152 | - value: function sanitizeScreenId(text) { | |
| 1153 | - return text.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, ''); | |
| 1154 | - } | |
| 1155 | - }, { | |
| 1156 | - key: "attachTabChangeTracking", | |
| 1157 | - value: function attachTabChangeTracking() { | |
| 1158 | - this.attachNavTabTracking(); | |
| 1159 | - this.attachHashChangeTracking(); | |
| 1160 | - this.attachSettingsTabTracking(); | |
| 1161 | - this.attachModalTracking(); | |
| 1162 | - } | |
| 1163 | - }, { | |
| 1164 | - key: "attachNavTabTracking", | |
| 1165 | - value: function attachNavTabTracking() { | |
| 1166 | - var _this = this; | |
| 1167 | - var wrapper = document.querySelector(SCREEN_SELECTORS.NAV_TAB_WRAPPER); | |
| 1168 | - if (!wrapper) { | |
| 1169 | - return; | |
| 1170 | - } | |
| 1171 | - this.addEventListenerTracked(wrapper, 'click', function (event) { | |
| 1172 | - var navTab = event.target.closest(SCREEN_SELECTORS.NAV_TAB); | |
| 1173 | - if (navTab && !navTab.classList.contains('nav-tab-active')) { | |
| 1174 | - var screenData = _this.getScreenData(); | |
| 1175 | - if (screenData) { | |
| 1176 | - _this.trackScreen(screenData.screenId, screenData.screenType); | |
| 1177 | - } | |
| 1178 | - } | |
| 1179 | - }); | |
| 1180 | - } | |
| 1181 | - }, { | |
| 1182 | - key: "attachHashChangeTracking", | |
| 1183 | - value: function attachHashChangeTracking() { | |
| 1184 | - var _this2 = this; | |
| 1185 | - this.addEventListenerTracked(window, 'hashchange', function () { | |
| 1186 | - var screenData = _this2.getScreenData(); | |
| 1187 | - if (screenData) { | |
| 1188 | - _this2.trackScreen(screenData.screenId, screenData.screenType); | |
| 1189 | - } | |
| 1190 | - }); | |
| 1191 | - } | |
| 1192 | - }, { | |
| 1193 | - key: "attachSettingsTabTracking", | |
| 1194 | - value: function attachSettingsTabTracking() { | |
| 1195 | - var _this3 = this; | |
| 1196 | - var settingsPages = document.querySelectorAll(SCREEN_SELECTORS.SETTINGS_FORM_PAGE); | |
| 1197 | - if (0 === settingsPages.length) { | |
| 1198 | - return; | |
| 1199 | - } | |
| 1200 | - settingsPages.forEach(function (page) { | |
| 1201 | - _this3.addObserver(page, { | |
| 1202 | - attributes: true, | |
| 1203 | - attributeFilter: ['class'] | |
| 1204 | - }, function () { | |
| 1205 | - var screenData = _this3.getScreenData(); | |
| 1206 | - if (screenData) { | |
| 1207 | - _this3.trackScreen(screenData.screenId, screenData.screenType); | |
| 1208 | - } | |
| 1209 | - }); | |
| 1210 | - }); | |
| 1211 | - } | |
| 1212 | - }, { | |
| 1213 | - key: "attachModalTracking", | |
| 1214 | - value: function attachModalTracking() { | |
| 1215 | - var _this4 = this; | |
| 1216 | - this.addObserver(document.body, { | |
| 1217 | - childList: true, | |
| 1218 | - subtree: true | |
| 1219 | - }, function (mutations) { | |
| 1220 | - var _iterator2 = _createForOfIteratorHelper(mutations), | |
| 1221 | - _step2; | |
| 1222 | - try { | |
| 1223 | - for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { | |
| 1224 | - var mutation = _step2.value; | |
| 1225 | - if ('childList' === mutation.type) { | |
| 1226 | - TRACKED_MODALS.forEach(function (modalSelector) { | |
| 1227 | - var modal = document.querySelector(modalSelector); | |
| 1228 | - if (modal && _this4.isModalVisible(modal)) { | |
| 1229 | - var modalId = modalSelector.replace('#', ''); | |
| 1230 | - _this4.trackScreen(modalId, _wpDashboardTracking.SCREEN_TYPES.POPUP); | |
| 1231 | - } | |
| 1232 | - }); | |
| 1233 | - } | |
| 1234 | - } | |
| 1235 | - } catch (err) { | |
| 1236 | - _iterator2.e(err); | |
| 1237 | - } finally { | |
| 1238 | - _iterator2.f(); | |
| 1239 | - } | |
| 1240 | - }); | |
| 1241 | - } | |
| 1242 | - }, { | |
| 1243 | - key: "isModalVisible", | |
| 1244 | - value: function isModalVisible(element) { | |
| 1245 | - if (!element) { | |
| 1246 | - return false; | |
| 1247 | - } | |
| 1248 | - var style = window.getComputedStyle(element); | |
| 1249 | - return 'none' !== style.display && 0 !== parseFloat(style.opacity); | |
| 1250 | - } | |
| 1251 | - }, { | |
| 1252 | - key: "trackScreen", | |
| 1253 | - value: function trackScreen(screenId) { | |
| 1254 | - var screenType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _wpDashboardTracking.SCREEN_TYPES.TOP_LEVEL_PAGE; | |
| 1255 | - var trackingKey = "".concat(screenId, "-").concat(screenType); | |
| 1256 | - if (this.trackedScreens.has(trackingKey)) { | |
| 1257 | - return; | |
| 1258 | - } | |
| 1259 | - this.trackedScreens.add(trackingKey); | |
| 1260 | - _wpDashboardTracking.default.trackScreenViewed(screenId, screenType); | |
| 1261 | - } | |
| 1262 | - }]); | |
| 1263 | -}(_baseTracking.default); | |
| 1264 | -(0, _defineProperty2.default)(ScreenViewTracking, "trackedScreens", new Set()); | |
| 1265 | -var _default = exports["default"] = ScreenViewTracking; | |
| 1266 | - | |
| 1267 | -/***/ }), | |
| 1268 | - | |
| 1269 | -/***/ "../app/assets/js/event-track/dashboard/utils.js": | |
| 1270 | -/*!*******************************************************!*\ | |
| 1271 | - !*** ../app/assets/js/event-track/dashboard/utils.js ***! | |
| 1272 | - \*******************************************************/ | |
| 1273 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1274 | - | |
| 1275 | -"use strict"; | |
| 1276 | - | |
| 1277 | - | |
| 1278 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1279 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1280 | - value: true | |
| 1281 | -})); | |
| 1282 | -exports.DashboardUtils = void 0; | |
| 1283 | -var _wpDashboardTracking = _interopRequireDefault(__webpack_require__(/*! ../wp-dashboard-tracking */ "../app/assets/js/event-track/wp-dashboard-tracking.js")); | |
| 1284 | -var DashboardUtils = exports.DashboardUtils = { | |
| 1285 | - isElementorPage: function isElementorPage() { | |
| 1286 | - var urlParams = new URLSearchParams(window.location.search); | |
| 1287 | - var page = urlParams.get('page'); | |
| 1288 | - if (page && _wpDashboardTracking.default.elementorPages.some(function (p) { | |
| 1289 | - return page.includes(p); | |
| 1290 | - })) { | |
| 1291 | - return true; | |
| 1292 | - } | |
| 1293 | - var postType = urlParams.get('post_type'); | |
| 1294 | - if (_wpDashboardTracking.default.elementorPostTypes.includes(postType)) { | |
| 1295 | - return true; | |
| 1296 | - } | |
| 1297 | - var body = document.body; | |
| 1298 | - var bodyClasses = body.className.split(' '); | |
| 1299 | - return bodyClasses.some(function (cls) { | |
| 1300 | - return cls.includes('elementor') && (cls.includes('page') || cls.includes('post-type')); | |
| 1301 | - }); | |
| 1302 | - } | |
| 1303 | -}; | |
| 1304 | - | |
| 1305 | -/***/ }), | |
| 1306 | - | |
| 1307 | -/***/ "../app/assets/js/event-track/wp-dashboard-tracking.js": | |
| 1308 | -/*!*************************************************************!*\ | |
| 1309 | - !*** ../app/assets/js/event-track/wp-dashboard-tracking.js ***! | |
| 1310 | - \*************************************************************/ | |
| 1311 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1312 | - | |
| 1313 | -"use strict"; | |
| 1314 | - | |
| 1315 | - | |
| 1316 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1317 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1318 | - value: true | |
| 1319 | -})); | |
| 1320 | -exports["default"] = exports.SCREEN_TYPES = exports.NAV_AREAS = exports.CONTROL_TYPES = void 0; | |
| 1321 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1322 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1323 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 1324 | -var _navigation = _interopRequireDefault(__webpack_require__(/*! ./dashboard/navigation */ "../app/assets/js/event-track/dashboard/navigation.js")); | |
| 1325 | -var _pluginActions = _interopRequireDefault(__webpack_require__(/*! ./dashboard/plugin-actions */ "../app/assets/js/event-track/dashboard/plugin-actions.js")); | |
| 1326 | -var _promotion = _interopRequireDefault(__webpack_require__(/*! ./dashboard/promotion */ "../app/assets/js/event-track/dashboard/promotion.js")); | |
| 1327 | -var _screenView = _interopRequireDefault(__webpack_require__(/*! ./dashboard/screen-view */ "../app/assets/js/event-track/dashboard/screen-view.js")); | |
| 1328 | -var _menuPromotion = _interopRequireDefault(__webpack_require__(/*! ./dashboard/menu-promotion */ "../app/assets/js/event-track/dashboard/menu-promotion.js")); | |
| 1329 | -var _actionControls = _interopRequireDefault(__webpack_require__(/*! ./dashboard/action-controls */ "../app/assets/js/event-track/dashboard/action-controls.js")); | |
| 1330 | -var _WpDashboardTracking; | |
| 1331 | -var SESSION_TIMEOUT_MINUTES = 30; | |
| 1332 | -var MINUTE_MS = 60 * 1000; | |
| 1333 | -var SESSION_TIMEOUT = SESSION_TIMEOUT_MINUTES * MINUTE_MS; | |
| 1334 | -var ACTIVITY_CHECK_INTERVAL = 1 * MINUTE_MS; | |
| 1335 | -var SESSION_STORAGE_KEY = 'elementor_wpdash_session'; | |
| 1336 | -var PENDING_NAV_CLICK_KEY = 'elementor_wpdash_pending_nav'; | |
| 1337 | -var CONTROL_TYPES = exports.CONTROL_TYPES = { | |
| 1338 | - BUTTON: 'button', | |
| 1339 | - CHECKBOX: 'checkbox', | |
| 1340 | - RADIO: 'radio', | |
| 1341 | - LINK: 'link', | |
| 1342 | - SELECT: 'select', | |
| 1343 | - TOGGLE: 'toggle', | |
| 1344 | - FILTER: 'filter' | |
| 1345 | -}; | |
| 1346 | -var NAV_AREAS = exports.NAV_AREAS = { | |
| 1347 | - LEFT_MENU: 'left_menu', | |
| 1348 | - SUBMENU: 'submenu', | |
| 1349 | - HOVER_MENU: 'hover_menu', | |
| 1350 | - TOP_BAR: 'top_bar', | |
| 1351 | - SIDEBAR_MENU: 'sidebar' | |
| 1352 | -}; | |
| 1353 | -var SCREEN_TYPES = exports.SCREEN_TYPES = { | |
| 1354 | - TAB: 'tab', | |
| 1355 | - POPUP: 'popup', | |
| 1356 | - APP_SCREEN: 'app_screen' | |
| 1357 | -}; | |
| 1358 | -var WpDashboardTracking = exports["default"] = /*#__PURE__*/function () { | |
| 1359 | - function WpDashboardTracking() { | |
| 1360 | - (0, _classCallCheck2.default)(this, WpDashboardTracking); | |
| 1361 | - } | |
| 1362 | - return (0, _createClass2.default)(WpDashboardTracking, null, [{ | |
| 1363 | - key: "getElementorCommon", | |
| 1364 | - value: function getElementorCommon() { | |
| 1365 | - return window.elementorCommon; | |
| 1366 | - } | |
| 1367 | - }, { | |
| 1368 | - key: "init", | |
| 1369 | - value: function init() { | |
| 1370 | - if (this.initialized) { | |
| 1371 | - return; | |
| 1372 | - } | |
| 1373 | - this.restoreOrCreateSession(); | |
| 1374 | - if (this.isEventsManagerAvailable()) { | |
| 1375 | - this.startSessionMonitoring(); | |
| 1376 | - this.attachActivityListeners(); | |
| 1377 | - this.attachNavigationListener(); | |
| 1378 | - this.initialized = true; | |
| 1379 | - } | |
| 1380 | - } | |
| 1381 | - }, { | |
| 1382 | - key: "restoreOrCreateSession", | |
| 1383 | - value: function restoreOrCreateSession() { | |
| 1384 | - var storedSession = this.getStoredSession(); | |
| 1385 | - if (storedSession) { | |
| 1386 | - this.sessionStartTime = storedSession.sessionStartTime; | |
| 1387 | - this.navItemsVisited = new Set(storedSession.navItemsVisited); | |
| 1388 | - this.lastActivityTime = Date.now(); | |
| 1389 | - this.sessionEnded = false; | |
| 1390 | - } else { | |
| 1391 | - this.sessionStartTime = Date.now(); | |
| 1392 | - this.lastActivityTime = Date.now(); | |
| 1393 | - this.sessionEnded = false; | |
| 1394 | - this.navItemsVisited = new Set(); | |
| 1395 | - } | |
| 1396 | - this.processPendingNavClick(); | |
| 1397 | - this.saveSessionToStorage(); | |
| 1398 | - } | |
| 1399 | - }, { | |
| 1400 | - key: "isEditorOneActive", | |
| 1401 | - value: function isEditorOneActive() { | |
| 1402 | - var _elementorCommon$conf, _elementorCommon$conf2; | |
| 1403 | - var elementorCommon = this.getElementorCommon(); | |
| 1404 | - return (_elementorCommon$conf = elementorCommon === null || elementorCommon === void 0 || (_elementorCommon$conf2 = elementorCommon.config) === null || _elementorCommon$conf2 === void 0 || (_elementorCommon$conf2 = _elementorCommon$conf2.editor_events) === null || _elementorCommon$conf2 === void 0 ? void 0 : _elementorCommon$conf2.isEditorOneActive) !== null && _elementorCommon$conf !== void 0 ? _elementorCommon$conf : false; | |
| 1405 | - } | |
| 1406 | - }, { | |
| 1407 | - key: "processPendingNavClick", | |
| 1408 | - value: function processPendingNavClick() { | |
| 1409 | - try { | |
| 1410 | - var pendingNav = sessionStorage.getItem(PENDING_NAV_CLICK_KEY); | |
| 1411 | - if (pendingNav) { | |
| 1412 | - var _JSON$parse = JSON.parse(pendingNav), | |
| 1413 | - itemId = _JSON$parse.itemId, | |
| 1414 | - rootItem = _JSON$parse.rootItem, | |
| 1415 | - area = _JSON$parse.area; | |
| 1416 | - this.navItemsVisited.add(itemId); | |
| 1417 | - var properties = { | |
| 1418 | - wpdash_nav_item_id: itemId, | |
| 1419 | - wpdash_nav_area: area | |
| 1420 | - }; | |
| 1421 | - if (rootItem) { | |
| 1422 | - properties.wpdash_nav_item_root = rootItem; | |
| 1423 | - } | |
| 1424 | - this.dispatchEvent('wpdash_nav_clicked', properties, { | |
| 1425 | - send_immediately: true | |
| 1426 | - }); | |
| 1427 | - sessionStorage.removeItem(PENDING_NAV_CLICK_KEY); | |
| 1428 | - } | |
| 1429 | - } catch (error) { | |
| 1430 | - sessionStorage.removeItem(PENDING_NAV_CLICK_KEY); | |
| 1431 | - } | |
| 1432 | - } | |
| 1433 | - }, { | |
| 1434 | - key: "getStoredSession", | |
| 1435 | - value: function getStoredSession() { | |
| 1436 | - try { | |
| 1437 | - var stored = sessionStorage.getItem(SESSION_STORAGE_KEY); | |
| 1438 | - return stored ? JSON.parse(stored) : null; | |
| 1439 | - } catch (error) { | |
| 1440 | - return null; | |
| 1441 | - } | |
| 1442 | - } | |
| 1443 | - }, { | |
| 1444 | - key: "saveSessionToStorage", | |
| 1445 | - value: function saveSessionToStorage() { | |
| 1446 | - var sessionData = { | |
| 1447 | - sessionStartTime: this.sessionStartTime, | |
| 1448 | - navItemsVisited: Array.from(this.navItemsVisited) | |
| 1449 | - }; | |
| 1450 | - sessionStorage.setItem(SESSION_STORAGE_KEY, JSON.stringify(sessionData)); | |
| 1451 | - } | |
| 1452 | - }, { | |
| 1453 | - key: "clearStoredSession", | |
| 1454 | - value: function clearStoredSession() { | |
| 1455 | - sessionStorage.removeItem(SESSION_STORAGE_KEY); | |
| 1456 | - } | |
| 1457 | - }, { | |
| 1458 | - key: "isEventsManagerAvailable", | |
| 1459 | - value: function isEventsManagerAvailable() { | |
| 1460 | - var elementorCommon = this.getElementorCommon(); | |
| 1461 | - return (elementorCommon === null || elementorCommon === void 0 ? void 0 : elementorCommon.eventsManager) && 'function' === typeof elementorCommon.eventsManager.dispatchEvent; | |
| 1462 | - } | |
| 1463 | - }, { | |
| 1464 | - key: "canSendEvents", | |
| 1465 | - value: function canSendEvents() { | |
| 1466 | - var _elementorCommon$conf3, _elementorCommon$conf4; | |
| 1467 | - var elementorCommon = this.getElementorCommon(); | |
| 1468 | - return (_elementorCommon$conf3 = elementorCommon === null || elementorCommon === void 0 || (_elementorCommon$conf4 = elementorCommon.config) === null || _elementorCommon$conf4 === void 0 || (_elementorCommon$conf4 = _elementorCommon$conf4.editor_events) === null || _elementorCommon$conf4 === void 0 ? void 0 : _elementorCommon$conf4.can_send_events) !== null && _elementorCommon$conf3 !== void 0 ? _elementorCommon$conf3 : false; | |
| 1469 | - } | |
| 1470 | - }, { | |
| 1471 | - key: "dispatchEvent", | |
| 1472 | - value: function dispatchEvent(eventName) { | |
| 1473 | - var _elementorCommon$even; | |
| 1474 | - var properties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | |
| 1475 | - var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | |
| 1476 | - if (!this.isEventsManagerAvailable() || !this.canSendEvents()) { | |
| 1477 | - return; | |
| 1478 | - } | |
| 1479 | - var elementorCommon = this.getElementorCommon(); | |
| 1480 | - elementorCommon === null || elementorCommon === void 0 || (_elementorCommon$even = elementorCommon.eventsManager) === null || _elementorCommon$even === void 0 || _elementorCommon$even.dispatchEvent(eventName, properties, options); | |
| 1481 | - } | |
| 1482 | - }, { | |
| 1483 | - key: "updateActivity", | |
| 1484 | - value: function updateActivity() { | |
| 1485 | - this.lastActivityTime = Date.now(); | |
| 1486 | - } | |
| 1487 | - }, { | |
| 1488 | - key: "startSessionMonitoring", | |
| 1489 | - value: function startSessionMonitoring() { | |
| 1490 | - var _this = this; | |
| 1491 | - this.activityCheckInterval = setInterval(function () { | |
| 1492 | - _this.checkSessionTimeout(); | |
| 1493 | - }, ACTIVITY_CHECK_INTERVAL); | |
| 1494 | - window.addEventListener('beforeunload', function () { | |
| 1495 | - if (!_this.sessionEnded && !_this.isNavigatingToElementor) { | |
| 1496 | - _this.trackSessionEnd('tab_closed'); | |
| 1497 | - } | |
| 1498 | - }); | |
| 1499 | - document.addEventListener('visibilitychange', function () { | |
| 1500 | - if (!_this.sessionEnded && document.hidden) { | |
| 1501 | - var timeSinceLastActivity = Date.now() - _this.lastActivityTime; | |
| 1502 | - if (timeSinceLastActivity > SESSION_TIMEOUT) { | |
| 1503 | - _this.trackSessionEnd('tab_inactive'); | |
| 1504 | - } | |
| 1505 | - } | |
| 1506 | - }); | |
| 1507 | - } | |
| 1508 | - }, { | |
| 1509 | - key: "isElementorPage", | |
| 1510 | - value: function isElementorPage(url) { | |
| 1511 | - try { | |
| 1512 | - var urlObj = new URL(url, window.location.origin); | |
| 1513 | - var params = urlObj.searchParams; | |
| 1514 | - var page = params.get('page'); | |
| 1515 | - var postType = params.get('post_type'); | |
| 1516 | - var action = params.get('action'); | |
| 1517 | - return !!(page && this.elementorPages.some(function (p) { | |
| 1518 | - return page.includes(p); | |
| 1519 | - }) || postType && this.elementorPostTypes.includes(postType) || action && action.includes(this.anyPageWithElementorString)); | |
| 1520 | - } catch (error) { | |
| 1521 | - return false; | |
| 1522 | - } | |
| 1523 | - } | |
| 1524 | - }, { | |
| 1525 | - key: "isPluginsPage", | |
| 1526 | - value: function isPluginsPage(url) { | |
| 1527 | - try { | |
| 1528 | - var urlObj = new URL(url, window.location.origin); | |
| 1529 | - return urlObj.pathname.includes('plugins.php'); | |
| 1530 | - } catch (error) { | |
| 1531 | - return false; | |
| 1532 | - } | |
| 1533 | - } | |
| 1534 | - }, { | |
| 1535 | - key: "isNavigatingAwayFromElementor", | |
| 1536 | - value: function isNavigatingAwayFromElementor(targetUrl) { | |
| 1537 | - if (!targetUrl) { | |
| 1538 | - return false; | |
| 1539 | - } | |
| 1540 | - if (targetUrl.startsWith('#')) { | |
| 1541 | - return false; | |
| 1542 | - } | |
| 1543 | - return !this.isElementorPage(targetUrl); | |
| 1544 | - } | |
| 1545 | - }, { | |
| 1546 | - key: "isLinkOpeningInNewTab", | |
| 1547 | - value: function isLinkOpeningInNewTab(link) { | |
| 1548 | - var target = link.getAttribute('target'); | |
| 1549 | - return '_blank' === target || '_new' === target; | |
| 1550 | - } | |
| 1551 | - }, { | |
| 1552 | - key: "attachNavigationListener", | |
| 1553 | - value: function attachNavigationListener() { | |
| 1554 | - var _this2 = this; | |
| 1555 | - var handleLinkClick = function handleLinkClick(event) { | |
| 1556 | - var link = event.target.closest('a'); | |
| 1557 | - if (link && link.href) { | |
| 1558 | - if (_this2.isLinkOpeningInNewTab(link)) { | |
| 1559 | - return; | |
| 1560 | - } | |
| 1561 | - if (!_this2.sessionEnded && _this2.isNavigatingAwayFromElementor(link.href)) { | |
| 1562 | - _this2.trackSessionEnd('navigate_away'); | |
| 1563 | - } else if (_this2.isElementorPage(link.href)) { | |
| 1564 | - _this2.isNavigatingToElementor = true; | |
| 1565 | - } | |
| 1566 | - } | |
| 1567 | - var isSidebar = event.target.closest('#editor-one-sidebar-navigation'); | |
| 1568 | - if (isSidebar) { | |
| 1569 | - _this2.isNavigatingToElementor = true; | |
| 1570 | - } | |
| 1571 | - }; | |
| 1572 | - var handleFormSubmit = function handleFormSubmit(event) { | |
| 1573 | - var form = event.target; | |
| 1574 | - if (form.action) { | |
| 1575 | - if (!_this2.sessionEnded && _this2.isNavigatingAwayFromElementor(form.action)) { | |
| 1576 | - _this2.trackSessionEnd('navigate_away'); | |
| 1577 | - } else if (_this2.isElementorPage(form.action)) { | |
| 1578 | - _this2.isNavigatingToElementor = true; | |
| 1579 | - } | |
| 1580 | - } | |
| 1581 | - }; | |
| 1582 | - document.addEventListener('click', handleLinkClick, true); | |
| 1583 | - document.addEventListener('submit', handleFormSubmit, true); | |
| 1584 | - this.navigationListeners.push({ | |
| 1585 | - type: 'click', | |
| 1586 | - handler: handleLinkClick | |
| 1587 | - }, { | |
| 1588 | - type: 'submit', | |
| 1589 | - handler: handleFormSubmit | |
| 1590 | - }); | |
| 1591 | - } | |
| 1592 | - }, { | |
| 1593 | - key: "checkSessionTimeout", | |
| 1594 | - value: function checkSessionTimeout() { | |
| 1595 | - var timeSinceLastActivity = Date.now() - this.lastActivityTime; | |
| 1596 | - if (timeSinceLastActivity > SESSION_TIMEOUT && !this.sessionEnded) { | |
| 1597 | - this.trackSessionEnd('timeout'); | |
| 1598 | - } | |
| 1599 | - } | |
| 1600 | - }, { | |
| 1601 | - key: "attachActivityListeners", | |
| 1602 | - value: function attachActivityListeners() { | |
| 1603 | - var _this3 = this; | |
| 1604 | - var events = ['mousedown', 'keydown', 'scroll', 'touchstart', 'click']; | |
| 1605 | - events.forEach(function (event) { | |
| 1606 | - document.addEventListener(event, function () { | |
| 1607 | - _this3.updateActivity(); | |
| 1608 | - }, { | |
| 1609 | - capture: true, | |
| 1610 | - passive: true | |
| 1611 | - }); | |
| 1612 | - }); | |
| 1613 | - } | |
| 1614 | - }, { | |
| 1615 | - key: "formatDuration", | |
| 1616 | - value: function formatDuration(milliseconds) { | |
| 1617 | - var totalSeconds = Math.floor(milliseconds / 1000); | |
| 1618 | - return Number(totalSeconds.toFixed(2)); | |
| 1619 | - } | |
| 1620 | - }, { | |
| 1621 | - key: "trackNavClicked", | |
| 1622 | - value: function trackNavClicked(itemId) { | |
| 1623 | - var rootItem = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | |
| 1624 | - var area = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : NAV_AREAS.LEFT_MENU; | |
| 1625 | - if (!this.initialized) { | |
| 1626 | - var pendingNav = { | |
| 1627 | - itemId: itemId, | |
| 1628 | - rootItem: rootItem, | |
| 1629 | - area: area | |
| 1630 | - }; | |
| 1631 | - sessionStorage.setItem(PENDING_NAV_CLICK_KEY, JSON.stringify(pendingNav)); | |
| 1632 | - return; | |
| 1633 | - } | |
| 1634 | - this.updateActivity(); | |
| 1635 | - this.navItemsVisited.add(itemId); | |
| 1636 | - this.saveSessionToStorage(); | |
| 1637 | - var properties = { | |
| 1638 | - wpdash_nav_item_id: itemId, | |
| 1639 | - wpdash_nav_area: area | |
| 1640 | - }; | |
| 1641 | - if (rootItem) { | |
| 1642 | - properties.wpdash_nav_item_root = rootItem; | |
| 1643 | - } | |
| 1644 | - this.dispatchEvent('wpdash_nav_clicked', properties); | |
| 1645 | - } | |
| 1646 | - }, { | |
| 1647 | - key: "trackScreenViewed", | |
| 1648 | - value: function trackScreenViewed(screenId) { | |
| 1649 | - var screenType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : SCREEN_TYPES.TAB; | |
| 1650 | - this.updateActivity(); | |
| 1651 | - var properties = { | |
| 1652 | - wpdash_screen_id: screenId, | |
| 1653 | - wpdash_screen_type: screenType | |
| 1654 | - }; | |
| 1655 | - this.dispatchEvent('wpdash_screen_viewed', properties); | |
| 1656 | - } | |
| 1657 | - }, { | |
| 1658 | - key: "trackActionControl", | |
| 1659 | - value: function trackActionControl(controlIdentifier, controlType) { | |
| 1660 | - this.updateActivity(); | |
| 1661 | - var properties = { | |
| 1662 | - wpdash_action_control_interacted: controlIdentifier, | |
| 1663 | - wpdash_control_type: controlType | |
| 1664 | - }; | |
| 1665 | - this.dispatchEvent('wpdash_action_control', properties); | |
| 1666 | - } | |
| 1667 | - }, { | |
| 1668 | - key: "trackPromoClicked", | |
| 1669 | - value: function trackPromoClicked(promoName, destination, clickPath) { | |
| 1670 | - this.updateActivity(); | |
| 1671 | - var properties = { | |
| 1672 | - wpdash_promo_name: promoName, | |
| 1673 | - wpdash_promo_destination: destination, | |
| 1674 | - wpdash_promo_clicked_path: clickPath | |
| 1675 | - }; | |
| 1676 | - this.dispatchEvent('wpdash_promo_clicked', properties); | |
| 1677 | - } | |
| 1678 | - }, { | |
| 1679 | - key: "trackSessionEnd", | |
| 1680 | - value: function trackSessionEnd() { | |
| 1681 | - var reason = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'timeout'; | |
| 1682 | - if (this.sessionEnded) { | |
| 1683 | - return; | |
| 1684 | - } | |
| 1685 | - this.sessionEnded = true; | |
| 1686 | - if (this.activityCheckInterval) { | |
| 1687 | - clearInterval(this.activityCheckInterval); | |
| 1688 | - this.activityCheckInterval = null; | |
| 1689 | - } | |
| 1690 | - var duration = Date.now() - this.sessionStartTime; | |
| 1691 | - var properties = { | |
| 1692 | - wpdash_endstate_nav_summary: Array.from(this.navItemsVisited), | |
| 1693 | - wpdash_endstate_nav_count: this.navItemsVisited.size, | |
| 1694 | - wpdash_endstate_duration: this.formatDuration(duration), | |
| 1695 | - reason: reason | |
| 1696 | - }; | |
| 1697 | - this.dispatchEvent('wpdash_session_end_state', properties); | |
| 1698 | - this.clearStoredSession(); | |
| 1699 | - } | |
| 1700 | - }, { | |
| 1701 | - key: "destroy", | |
| 1702 | - value: function destroy() { | |
| 1703 | - if (this.activityCheckInterval) { | |
| 1704 | - clearInterval(this.activityCheckInterval); | |
| 1705 | - } | |
| 1706 | - this.navigationListeners.forEach(function (_ref) { | |
| 1707 | - var type = _ref.type, | |
| 1708 | - handler = _ref.handler; | |
| 1709 | - document.removeEventListener(type, handler, true); | |
| 1710 | - }); | |
| 1711 | - this.navigationListeners = []; | |
| 1712 | - _screenView.default.destroy(); | |
| 1713 | - _promotion.default.destroy(); | |
| 1714 | - _menuPromotion.default.destroy(); | |
| 1715 | - _actionControls.default.destroy(); | |
| 1716 | - this.initialized = false; | |
| 1717 | - } | |
| 1718 | - }]); | |
| 1719 | -}(); | |
| 1720 | -_WpDashboardTracking = WpDashboardTracking; | |
| 1721 | -(0, _defineProperty2.default)(WpDashboardTracking, "anyPageWithElementorString", 'elementor'); | |
| 1722 | -(0, _defineProperty2.default)(WpDashboardTracking, "elementorPages", [_WpDashboardTracking.anyPageWithElementorString, 'e-form-submissions', 'popup_templates']); | |
| 1723 | -(0, _defineProperty2.default)(WpDashboardTracking, "elementorPostTypes", ['elementor_library', 'e-floating-buttons', 'elementor_snippet', 'elementor_font', 'elementor_icons']); | |
| 1724 | -(0, _defineProperty2.default)(WpDashboardTracking, "sessionStartTime", Date.now()); | |
| 1725 | -(0, _defineProperty2.default)(WpDashboardTracking, "lastActivityTime", Date.now()); | |
| 1726 | -(0, _defineProperty2.default)(WpDashboardTracking, "sessionEnded", false); | |
| 1727 | -(0, _defineProperty2.default)(WpDashboardTracking, "navItemsVisited", new Set()); | |
| 1728 | -(0, _defineProperty2.default)(WpDashboardTracking, "activityCheckInterval", null); | |
| 1729 | -(0, _defineProperty2.default)(WpDashboardTracking, "initialized", false); | |
| 1730 | -(0, _defineProperty2.default)(WpDashboardTracking, "navigationListeners", []); | |
| 1731 | -(0, _defineProperty2.default)(WpDashboardTracking, "isNavigatingToElementor", false); | |
| 1732 | -window.addEventListener('elementor/admin/init', function () { | |
| 1733 | - var currentUrl = window.location.href; | |
| 1734 | - var isPluginsPage = WpDashboardTracking.isPluginsPage(currentUrl); | |
| 1735 | - var isElementorPage = WpDashboardTracking.isElementorPage(currentUrl); | |
| 1736 | - if (isPluginsPage) { | |
| 1737 | - _pluginActions.default.init(); | |
| 1738 | - } | |
| 1739 | - _navigation.default.init(); | |
| 1740 | - if (isElementorPage) { | |
| 1741 | - WpDashboardTracking.init(); | |
| 1742 | - _screenView.default.init(); | |
| 1743 | - _promotion.default.init(); | |
| 1744 | - _menuPromotion.default.init(); | |
| 1745 | - _actionControls.default.init(); | |
| 1746 | - } | |
| 1747 | -}); | |
| 1748 | -window.addEventListener('beforeunload', function () { | |
| 1749 | - _navigation.default.destroy(); | |
| 1750 | - _pluginActions.default.destroy(); | |
| 1751 | - WpDashboardTracking.destroy(); | |
| 1752 | -}); | |
| 1753 | - | |
| 1754 | -/***/ }), | |
| 1755 | - | |
| 1756 | 5 | /***/ "../assets/dev/js/admin/maintenance-mode.js": |
| 1757 | 6 | /*!**************************************************!*\ |
| 1758 | 7 | !*** ../assets/dev/js/admin/maintenance-mode.js ***! |
| 1759 | 8 | \**************************************************/ |
| @@ -1850,22 +99,22 @@ | ||
| 1850 | 99 | })); |
| 1851 | 100 | exports["default"] = void 0; |
| 1852 | 101 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1853 | 102 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 103 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 104 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1854 | 105 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 1855 | 106 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1856 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 1857 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1858 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1859 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1860 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 1861 | -var MenuHandler = exports["default"] = /*#__PURE__*/function (_elementorModules$Vie) { | |
| 107 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 108 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 109 | +var MenuHandler = /*#__PURE__*/function (_elementorModules$Vie) { | |
| 110 | + (0, _inherits2.default)(MenuHandler, _elementorModules$Vie); | |
| 111 | + var _super = _createSuper(MenuHandler); | |
| 1862 | 112 | function MenuHandler() { |
| 1863 | 113 | (0, _classCallCheck2.default)(this, MenuHandler); |
| 1864 | - return _callSuper(this, MenuHandler, arguments); | |
| 114 | + return _super.apply(this, arguments); | |
| 1865 | 115 | } |
| 1866 | - (0, _inherits2.default)(MenuHandler, _elementorModules$Vie); | |
| 1867 | - return (0, _createClass2.default)(MenuHandler, [{ | |
| 116 | + (0, _createClass2.default)(MenuHandler, [{ | |
| 1868 | 117 | key: "getDefaultSettings", |
| 1869 | 118 | value: function getDefaultSettings() { |
| 1870 | 119 | return { |
| 1871 | 120 | selectors: { |
| @@ -1911,9 +160,9 @@ | ||
| 1911 | 160 | } |
| 1912 | 161 | }, { |
| 1913 | 162 | key: "onInit", |
| 1914 | 163 | value: function onInit() { |
| 1915 | - _superPropGet(MenuHandler, "onInit", this, 3)([]); | |
| 164 | + (0, _get2.default)((0, _getPrototypeOf2.default)(MenuHandler.prototype), "onInit", this).call(this); | |
| 1916 | 165 | var settings = this.getSettings(); |
| 1917 | 166 | if (window.location.href.includes(settings.path)) { |
| 1918 | 167 | this.highlightSubMenuItem(); |
| 1919 | 168 | } |
| @@ -1918,9 +167,11 @@ | ||
| 1918 | 167 | this.highlightSubMenuItem(); |
| 1919 | 168 | } |
| 1920 | 169 | } |
| 1921 | 170 | }]); |
| 171 | + return MenuHandler; | |
| 1922 | 172 | }(elementorModules.ViewModule); |
| 173 | +exports["default"] = MenuHandler; | |
| 1923 | 174 | |
| 1924 | 175 | /***/ }), |
| 1925 | 176 | |
| 1926 | 177 | /***/ "../assets/dev/js/admin/new-template/template-controls.js": |
| @@ -1939,13 +190,13 @@ | ||
| 1939 | 190 | exports["default"] = void 0; |
| 1940 | 191 | var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 1941 | 192 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1942 | 193 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 1943 | -var TemplateControls = exports["default"] = /*#__PURE__*/function () { | |
| 194 | +var TemplateControls = /*#__PURE__*/function () { | |
| 1944 | 195 | function TemplateControls() { |
| 1945 | 196 | (0, _classCallCheck2.default)(this, TemplateControls); |
| 1946 | 197 | } |
| 1947 | - return (0, _createClass2.default)(TemplateControls, [{ | |
| 198 | + (0, _createClass2.default)(TemplateControls, [{ | |
| 1948 | 199 | key: "setDynamicControlsVisibility", |
| 1949 | 200 | value: function setDynamicControlsVisibility(lookupControlIdPrefix, controls) { |
| 1950 | 201 | if (undefined === controls) { |
| 1951 | 202 | return; |
| @@ -1978,9 +229,11 @@ | ||
| 1978 | 229 | var lookupControl = document.getElementById(lookupControlIdPrefix + conditionKey); |
| 1979 | 230 | targetControlWrapper.classList.toggle('elementor-hidden', !lookupControl || conditionValue !== lookupControl.value); |
| 1980 | 231 | } |
| 1981 | 232 | }]); |
| 233 | + return TemplateControls; | |
| 1982 | 234 | }(); |
| 235 | +exports["default"] = TemplateControls; | |
| 1983 | 236 | |
| 1984 | 237 | /***/ }), |
| 1985 | 238 | |
| 1986 | 239 | /***/ "../assets/dev/js/editor/utils/files-upload-handler.js": |
| @@ -1999,13 +252,13 @@ | ||
| 1999 | 252 | })); |
| 2000 | 253 | exports["default"] = void 0; |
| 2001 | 254 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2002 | 255 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2003 | -var FilesUploadHandler = exports["default"] = /*#__PURE__*/function () { | |
| 256 | +var FilesUploadHandler = /*#__PURE__*/function () { | |
| 2004 | 257 | function FilesUploadHandler() { |
| 2005 | 258 | (0, _classCallCheck2.default)(this, FilesUploadHandler); |
| 2006 | 259 | } |
| 2007 | - return (0, _createClass2.default)(FilesUploadHandler, null, [{ | |
| 260 | + (0, _createClass2.default)(FilesUploadHandler, null, [{ | |
| 2008 | 261 | key: "isUploadEnabled", |
| 2009 | 262 | value: function isUploadEnabled(mediaType) { |
| 2010 | 263 | var unfilteredFilesTypes = ['svg', 'application/json']; |
| 2011 | 264 | if (!unfilteredFilesTypes.includes(mediaType)) { |
| @@ -2076,9 +329,11 @@ | ||
| 2076 | 329 | } |
| 2077 | 330 | }); |
| 2078 | 331 | } |
| 2079 | 332 | }]); |
| 333 | + return FilesUploadHandler; | |
| 2080 | 334 | }(); |
| 335 | +exports["default"] = FilesUploadHandler; | |
| 2081 | 336 | |
| 2082 | 337 | /***/ }), |
| 2083 | 338 | |
| 2084 | 339 | /***/ "../assets/dev/js/utils/events.js": |
| @@ -2096,13 +351,13 @@ | ||
| 2096 | 351 | })); |
| 2097 | 352 | exports["default"] = exports.Events = void 0; |
| 2098 | 353 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2099 | 354 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2100 | -var Events = exports.Events = /*#__PURE__*/function () { | |
| 355 | +var Events = /*#__PURE__*/function () { | |
| 2101 | 356 | function Events() { |
| 2102 | 357 | (0, _classCallCheck2.default)(this, Events); |
| 2103 | 358 | } |
| 2104 | - return (0, _createClass2.default)(Events, null, [{ | |
| 359 | + (0, _createClass2.default)(Events, null, [{ | |
| 2105 | 360 | key: "dispatch", |
| 2106 | 361 | value: |
| 2107 | 362 | /** |
| 2108 | 363 | * Dispatch an Elementor event. |
| @@ -2136,10 +391,13 @@ | ||
| 2136 | 391 | detail: data |
| 2137 | 392 | })); |
| 2138 | 393 | } |
| 2139 | 394 | }]); |
| 395 | + return Events; | |
| 2140 | 396 | }(); |
| 2141 | -var _default = exports["default"] = Events; | |
| 397 | +exports.Events = Events; | |
| 398 | +var _default = Events; | |
| 399 | +exports["default"] = _default; | |
| 2142 | 400 | |
| 2143 | 401 | /***/ }), |
| 2144 | 402 | |
| 2145 | 403 | /***/ "../assets/dev/js/utils/json-upload-warning-message.js": |
| @@ -2181,33 +439,33 @@ | ||
| 2181 | 439 | dialog.onHide = function () { |
| 2182 | 440 | // When closing the dialog (esc, click on background, etc.) we need to reject the promise. |
| 2183 | 441 | reject(); |
| 2184 | 442 | }; |
| 2185 | - dialog.onConfirm = /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 2186 | - return _regenerator.default.wrap(function (_context) { | |
| 443 | + dialog.onConfirm = /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 444 | + return _regenerator.default.wrap(function _callee$(_context) { | |
| 2187 | 445 | while (1) switch (_context.prev = _context.next) { |
| 2188 | 446 | case 0: |
| 2189 | 447 | if (!dialog.getElements('checkbox-dont-show-again').prop('checked')) { |
| 2190 | - _context.next = 3; | |
| 448 | + _context.next = 7; | |
| 2191 | 449 | break; |
| 2192 | 450 | } |
| 2193 | 451 | if (!waitForSetViewed) { |
| 2194 | - _context.next = 2; | |
| 452 | + _context.next = 6; | |
| 2195 | 453 | break; |
| 2196 | 454 | } |
| 2197 | - _context.next = 1; | |
| 455 | + _context.next = 4; | |
| 2198 | 456 | return genericWarningModal.setViewed(); |
| 2199 | - case 1: | |
| 2200 | - _context.next = 3; | |
| 457 | + case 4: | |
| 458 | + _context.next = 7; | |
| 2201 | 459 | break; |
| 2202 | - case 2: | |
| 460 | + case 6: | |
| 2203 | 461 | genericWarningModal.setViewed(); |
| 2204 | - case 3: | |
| 462 | + case 7: | |
| 2205 | 463 | // Hack: we need to resolve the promise and then hide it manually, to avoid rejecting the promise. |
| 2206 | 464 | // this because when closing the dialog (esc, click on background, etc.) it does not trigger `onCancel` method. |
| 2207 | 465 | resolve(); |
| 2208 | 466 | dialog.hide(); |
| 2209 | - case 4: | |
| 467 | + case 9: | |
| 2210 | 468 | case "end": |
| 2211 | 469 | return _context.stop(); |
| 2212 | 470 | } |
| 2213 | 471 | }, _callee); |
| @@ -2251,9 +509,9 @@ | ||
| 2251 | 509 | var _createCheckboxAndLab = createCheckboxAndLabel(dialogId), |
| 2252 | 510 | checkbox = _createCheckboxAndLab.checkbox, |
| 2253 | 511 | label = _createCheckboxAndLab.label; |
| 2254 | 512 | introduction.getDialog().addElement('checkbox-dont-show-again', checkbox); |
| 2255 | - (_introduction$getDial = introduction.getDialog().getElements('message')) === null || _introduction$getDial === void 0 || (_introduction$getDial2 = _introduction$getDial.append) === null || _introduction$getDial2 === void 0 || _introduction$getDial2.call(_introduction$getDial, label); // `getElements` return JQuery object. | |
| 513 | + (_introduction$getDial = introduction.getDialog().getElements('message')) === null || _introduction$getDial === void 0 ? void 0 : (_introduction$getDial2 = _introduction$getDial.append) === null || _introduction$getDial2 === void 0 ? void 0 : _introduction$getDial2.call(_introduction$getDial, label); // `getElements` return JQuery object. | |
| 2256 | 514 | |
| 2257 | 515 | return introduction; |
| 2258 | 516 | } |
| 2259 | 517 | function createCheckboxAndLabel(dialogId) { |
| @@ -2304,9 +562,9 @@ | ||
| 2304 | 562 | isSafari = /^((?!chrome|android).)*safari/i.test(userAgent) || /constructor/i.test(window.HTMLElement) || function (p) { |
| 2305 | 563 | return '[object SafariRemoteNotification]' === p.toString(); |
| 2306 | 564 | }(!window.safari || typeof safari !== 'undefined' && safari.pushNotification), |
| 2307 | 565 | // Internet Explorer 6-11 |
| 2308 | - isIE = /Trident|MSIE/.test(userAgent) && (/* @cc_on!@*/ false || !!document.documentMode), | |
| 566 | + isIE = /Trident|MSIE/.test(userAgent) && ( /* @cc_on!@*/ false || !!document.documentMode), | |
| 2309 | 567 | // Edge 20+ |
| 2310 | 568 | isEdge = !isIE && !!window.StyleMedia || matchUserAgent('Edg'), |
| 2311 | 569 | // Google Chrome (Not accurate) |
| 2312 | 570 | isChrome = !!window.chrome && matchUserAgent('Chrome') && !(isEdge || isOpera), |
| @@ -2327,9 +585,10 @@ | ||
| 2327 | 585 | opera: isOpera, |
| 2328 | 586 | safari: isSafari, |
| 2329 | 587 | webkit: matchUserAgent('AppleWebKit') |
| 2330 | 588 | }; |
| 2331 | -var _default = exports["default"] = environment; | |
| 589 | +var _default = environment; | |
| 590 | +exports["default"] = _default; | |
| 2332 | 591 | |
| 2333 | 592 | /***/ }), |
| 2334 | 593 | |
| 2335 | 594 | /***/ "../core/experiments/assets/js/admin/behaviors/experiments-messages.js": |
| @@ -2353,9 +612,9 @@ | ||
| 2353 | 612 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 2354 | 613 | var STATE_ACTIVE = 'active'; |
| 2355 | 614 | var STATE_INACTIVE = 'inactive'; |
| 2356 | 615 | var STATE_DEFAULT = 'default'; |
| 2357 | -var ExperimentsMessages = exports["default"] = /*#__PURE__*/function () { | |
| 616 | +var ExperimentsMessages = /*#__PURE__*/function () { | |
| 2358 | 617 | function ExperimentsMessages(_ref) { |
| 2359 | 618 | var selects = _ref.selects, |
| 2360 | 619 | submit = _ref.submit; |
| 2361 | 620 | (0, _classCallCheck2.default)(this, ExperimentsMessages); |
| @@ -2370,9 +629,9 @@ | ||
| 2370 | 629 | */ |
| 2371 | 630 | submit: submit |
| 2372 | 631 | }; |
| 2373 | 632 | } |
| 2374 | - return (0, _createClass2.default)(ExperimentsMessages, [{ | |
| 633 | + (0, _createClass2.default)(ExperimentsMessages, [{ | |
| 2375 | 634 | key: "bindEvents", |
| 2376 | 635 | value: function bindEvents() { |
| 2377 | 636 | var _this = this; |
| 2378 | 637 | this.elements.selects.forEach(function (select) { |
| @@ -2584,9 +843,11 @@ | ||
| 2584 | 843 | var _this$getExperimentDa; |
| 2585 | 844 | return (_this$getExperimentDa = this.getExperimentData(experimentId)) === null || _this$getExperimentDa === void 0 ? void 0 : _this$getExperimentDa.messages[messageId]; |
| 2586 | 845 | } |
| 2587 | 846 | }]); |
| 847 | + return ExperimentsMessages; | |
| 2588 | 848 | }(); |
| 849 | +exports["default"] = ExperimentsMessages; | |
| 2589 | 850 | |
| 2590 | 851 | /***/ }), |
| 2591 | 852 | |
| 2592 | 853 | /***/ "../core/experiments/assets/js/admin/module.js": |
| @@ -2604,23 +865,23 @@ | ||
| 2604 | 865 | })); |
| 2605 | 866 | exports["default"] = void 0; |
| 2606 | 867 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2607 | 868 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 869 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 870 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2608 | 871 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 2609 | 872 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 2610 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 2611 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2612 | 873 | var _experimentsMessages = _interopRequireDefault(__webpack_require__(/*! ./behaviors/experiments-messages */ "../core/experiments/assets/js/admin/behaviors/experiments-messages.js")); |
| 2613 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 2614 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2615 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 2616 | -var ExperimentsModule = exports["default"] = /*#__PURE__*/function (_elementorModules$Vie) { | |
| 874 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 875 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 876 | +var ExperimentsModule = /*#__PURE__*/function (_elementorModules$Vie) { | |
| 877 | + (0, _inherits2.default)(ExperimentsModule, _elementorModules$Vie); | |
| 878 | + var _super = _createSuper(ExperimentsModule); | |
| 2617 | 879 | function ExperimentsModule() { |
| 2618 | 880 | (0, _classCallCheck2.default)(this, ExperimentsModule); |
| 2619 | - return _callSuper(this, ExperimentsModule, arguments); | |
| 881 | + return _super.apply(this, arguments); | |
| 2620 | 882 | } |
| 2621 | - (0, _inherits2.default)(ExperimentsModule, _elementorModules$Vie); | |
| 2622 | - return (0, _createClass2.default)(ExperimentsModule, [{ | |
| 883 | + (0, _createClass2.default)(ExperimentsModule, [{ | |
| 2623 | 884 | key: "getDefaultSettings", |
| 2624 | 885 | value: function getDefaultSettings() { |
| 2625 | 886 | return { |
| 2626 | 887 | selectors: { |
| @@ -2680,9 +941,9 @@ | ||
| 2680 | 941 | }, { |
| 2681 | 942 | key: "onInit", |
| 2682 | 943 | value: function onInit() { |
| 2683 | 944 | var _this3 = this; |
| 2684 | - _superPropGet(ExperimentsModule, "onInit", this, 3)([]); | |
| 945 | + (0, _get2.default)((0, _getPrototypeOf2.default)(ExperimentsModule.prototype), "onInit", this).call(this); | |
| 2685 | 946 | this.experimentsDependency = new _experimentsMessages.default({ |
| 2686 | 947 | selects: this.elements.$experimentSelects.toArray(), |
| 2687 | 948 | submit: this.elements.$experimentForm.find('#submit').get(0) |
| 2688 | 949 | }); |
| @@ -2687,15 +948,17 @@ | ||
| 2687 | 948 | submit: this.elements.$experimentForm.find('#submit').get(0) |
| 2688 | 949 | }); |
| 2689 | 950 | this.experimentsDependency.bindEvents(); |
| 2690 | 951 | if (this.elements.$experimentIndicators.length) { |
| 2691 | - import(/* webpackIgnore: true */"".concat(elementorCommon.config.urls.assets, "lib/tipsy/tipsy.min.js?ver=1.0.0")).then(function () { | |
| 952 | + import( /* webpackIgnore: true */"".concat(elementorCommon.config.urls.assets, "lib/tipsy/tipsy.min.js?ver=1.0.0")).then(function () { | |
| 2692 | 953 | return _this3.addIndicatorsTooltips(); |
| 2693 | 954 | }); |
| 2694 | 955 | } |
| 2695 | 956 | } |
| 2696 | 957 | }]); |
| 958 | + return ExperimentsModule; | |
| 2697 | 959 | }(elementorModules.ViewModule); |
| 960 | +exports["default"] = ExperimentsModule; | |
| 2698 | 961 | |
| 2699 | 962 | /***/ }), |
| 2700 | 963 | |
| 2701 | 964 | /***/ "../modules/floating-buttons/assets/js/floating-buttons/admin/floating-buttons.js": |
| @@ -2713,23 +976,23 @@ | ||
| 2713 | 976 | })); |
| 2714 | 977 | exports["default"] = void 0; |
| 2715 | 978 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2716 | 979 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 980 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 981 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2717 | 982 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 2718 | 983 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 2719 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 2720 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2721 | 984 | var _menuHandler = _interopRequireDefault(__webpack_require__(/*! elementor-admin/menu-handler */ "../assets/dev/js/admin/menu-handler.js")); |
| 2722 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 2723 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2724 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 2725 | -var FloatingButtonsHandler = exports["default"] = /*#__PURE__*/function (_AdminMenuHandler) { | |
| 985 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 986 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 987 | +var FloatingButtonsHandler = /*#__PURE__*/function (_AdminMenuHandler) { | |
| 988 | + (0, _inherits2.default)(FloatingButtonsHandler, _AdminMenuHandler); | |
| 989 | + var _super = _createSuper(FloatingButtonsHandler); | |
| 2726 | 990 | function FloatingButtonsHandler() { |
| 2727 | 991 | (0, _classCallCheck2.default)(this, FloatingButtonsHandler); |
| 2728 | - return _callSuper(this, FloatingButtonsHandler, arguments); | |
| 992 | + return _super.apply(this, arguments); | |
| 2729 | 993 | } |
| 2730 | - (0, _inherits2.default)(FloatingButtonsHandler, _AdminMenuHandler); | |
| 2731 | - return (0, _createClass2.default)(FloatingButtonsHandler, [{ | |
| 994 | + (0, _createClass2.default)(FloatingButtonsHandler, [{ | |
| 2732 | 995 | key: "getDefaultSettings", |
| 2733 | 996 | value: function getDefaultSettings() { |
| 2734 | 997 | var pageName = 'e-floating-buttons', |
| 2735 | 998 | adminMenuSelectors = { |
| @@ -2748,9 +1011,9 @@ | ||
| 2748 | 1011 | }, { |
| 2749 | 1012 | key: "getDefaultElements", |
| 2750 | 1013 | value: function getDefaultElements() { |
| 2751 | 1014 | var selectors = this.getSettings('selectors'), |
| 2752 | - elements = _superPropGet(FloatingButtonsHandler, "getDefaultElements", this, 3)([]); | |
| 1015 | + elements = (0, _get2.default)((0, _getPrototypeOf2.default)(FloatingButtonsHandler.prototype), "getDefaultElements", this).call(this); | |
| 2753 | 1016 | elements.$templatesMenuItem = jQuery(selectors.templatesMenuItem); |
| 2754 | 1017 | elements.$contactPagesMenuItem = jQuery(selectors.contactPagesMenuItem); |
| 2755 | 1018 | return elements; |
| 2756 | 1019 | } |
| @@ -2757,9 +1020,9 @@ | ||
| 2757 | 1020 | }, { |
| 2758 | 1021 | key: "onInit", |
| 2759 | 1022 | value: function onInit() { |
| 2760 | 1023 | var _elementorAdminConfig; |
| 2761 | - _superPropGet(FloatingButtonsHandler, "onInit", this, 3)([]); | |
| 1024 | + (0, _get2.default)((0, _getPrototypeOf2.default)(FloatingButtonsHandler.prototype), "onInit", this).call(this); | |
| 2762 | 1025 | var settings = this.getSettings(), |
| 2763 | 1026 | isContactPagesTablePage = !!window.location.href.includes(settings.paths.contactPagesTablePage), |
| 2764 | 1027 | isContactPagesTrashPage = !!window.location.href.includes(settings.paths.contactPagesTrashPage), |
| 2765 | 1028 | isLContactPagesCreateYourFirstPage = !!window.location.href.includes(settings.paths.contactPagesAddNewPage); |
| @@ -2775,9 +1038,11 @@ | ||
| 2775 | 1038 | jQuery(settings.selectors.addButton).attr('href', elementorAdminConfig.urls.addNewLinkUrlContact); |
| 2776 | 1039 | } |
| 2777 | 1040 | } |
| 2778 | 1041 | }]); |
| 1042 | + return FloatingButtonsHandler; | |
| 2779 | 1043 | }(_menuHandler.default); |
| 1044 | +exports["default"] = FloatingButtonsHandler; | |
| 2780 | 1045 | |
| 2781 | 1046 | /***/ }), |
| 2782 | 1047 | |
| 2783 | 1048 | /***/ "../modules/floating-buttons/assets/js/floating-buttons/admin/module.js": |
| @@ -2795,26 +1060,27 @@ | ||
| 2795 | 1060 | })); |
| 2796 | 1061 | exports["default"] = void 0; |
| 2797 | 1062 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2798 | 1063 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 1064 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2799 | 1065 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 2800 | 1066 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 2801 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2802 | 1067 | var _floatingButtons = _interopRequireDefault(__webpack_require__(/*! ./floating-buttons */ "../modules/floating-buttons/assets/js/floating-buttons/admin/floating-buttons.js")); |
| 2803 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 2804 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2805 | -var _default = exports["default"] = /*#__PURE__*/function (_elementorModules$Mod) { | |
| 1068 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 1069 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 1070 | +var _default = /*#__PURE__*/function (_elementorModules$Mod) { | |
| 1071 | + (0, _inherits2.default)(_default, _elementorModules$Mod); | |
| 1072 | + var _super = _createSuper(_default); | |
| 2806 | 1073 | function _default() { |
| 2807 | 1074 | var _this; |
| 2808 | 1075 | (0, _classCallCheck2.default)(this, _default); |
| 2809 | - _this = _callSuper(this, _default); | |
| 1076 | + _this = _super.call(this); | |
| 2810 | 1077 | elementorCommon.elements.$window.on('elementor/admin/init', function () { |
| 2811 | 1078 | _this.runHandler(); |
| 2812 | 1079 | }); |
| 2813 | 1080 | return _this; |
| 2814 | 1081 | } |
| 2815 | - (0, _inherits2.default)(_default, _elementorModules$Mod); | |
| 2816 | - return (0, _createClass2.default)(_default, [{ | |
| 1082 | + (0, _createClass2.default)(_default, [{ | |
| 2817 | 1083 | key: "runHandler", |
| 2818 | 1084 | value: function runHandler() { |
| 2819 | 1085 | var pageNameContact = 'e-floating-buttons', |
| 2820 | 1086 | paths = { |
| @@ -2830,9 +1096,11 @@ | ||
| 2830 | 1096 | // and could not be modified in the backend. |
| 2831 | 1097 | new _floatingButtons.default(args); |
| 2832 | 1098 | } |
| 2833 | 1099 | }]); |
| 1100 | + return _default; | |
| 2834 | 1101 | }(elementorModules.Module); |
| 1102 | +exports["default"] = _default; | |
| 2835 | 1103 | |
| 2836 | 1104 | /***/ }), |
| 2837 | 1105 | |
| 2838 | 1106 | /***/ "../modules/landing-pages/assets/js/admin/landing-pages.js": |
| @@ -2850,23 +1118,23 @@ | ||
| 2850 | 1118 | })); |
| 2851 | 1119 | exports["default"] = void 0; |
| 2852 | 1120 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2853 | 1121 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 1122 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 1123 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2854 | 1124 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 2855 | 1125 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 2856 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 2857 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2858 | 1126 | var _menuHandler = _interopRequireDefault(__webpack_require__(/*! elementor-admin/menu-handler */ "../assets/dev/js/admin/menu-handler.js")); |
| 2859 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 2860 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2861 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 2862 | -var LandingPagesHandler = exports["default"] = /*#__PURE__*/function (_AdminMenuHandler) { | |
| 1127 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 1128 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 1129 | +var LandingPagesHandler = /*#__PURE__*/function (_AdminMenuHandler) { | |
| 1130 | + (0, _inherits2.default)(LandingPagesHandler, _AdminMenuHandler); | |
| 1131 | + var _super = _createSuper(LandingPagesHandler); | |
| 2863 | 1132 | function LandingPagesHandler() { |
| 2864 | 1133 | (0, _classCallCheck2.default)(this, LandingPagesHandler); |
| 2865 | - return _callSuper(this, LandingPagesHandler, arguments); | |
| 1134 | + return _super.apply(this, arguments); | |
| 2866 | 1135 | } |
| 2867 | - (0, _inherits2.default)(LandingPagesHandler, _AdminMenuHandler); | |
| 2868 | - return (0, _createClass2.default)(LandingPagesHandler, [{ | |
| 1136 | + (0, _createClass2.default)(LandingPagesHandler, [{ | |
| 2869 | 1137 | key: "getDefaultSettings", |
| 2870 | 1138 | value: function getDefaultSettings() { |
| 2871 | 1139 | var pageName = 'e-landing-page', |
| 2872 | 1140 | adminMenuSelectors = { |
| @@ -2886,9 +1154,9 @@ | ||
| 2886 | 1154 | }, { |
| 2887 | 1155 | key: "getDefaultElements", |
| 2888 | 1156 | value: function getDefaultElements() { |
| 2889 | 1157 | var selectors = this.getSettings('selectors'), |
| 2890 | - elements = _superPropGet(LandingPagesHandler, "getDefaultElements", this, 3)([]); | |
| 1158 | + elements = (0, _get2.default)((0, _getPrototypeOf2.default)(LandingPagesHandler.prototype), "getDefaultElements", this).call(this); | |
| 2891 | 1159 | elements.$landingPagesMenuItem = jQuery(selectors.landingPagesMenuItem); |
| 2892 | 1160 | elements.$templatesMenuItem = jQuery(selectors.templatesMenuItem); |
| 2893 | 1161 | elements.$pagesMenuItemAndLink = jQuery(selectors.pagesMenuItemAndLink); |
| 2894 | 1162 | return elements; |
| @@ -2895,9 +1163,9 @@ | ||
| 2895 | 1163 | } |
| 2896 | 1164 | }, { |
| 2897 | 1165 | key: "onInit", |
| 2898 | 1166 | value: function onInit() { |
| 2899 | - _superPropGet(LandingPagesHandler, "onInit", this, 3)([]); | |
| 1167 | + (0, _get2.default)((0, _getPrototypeOf2.default)(LandingPagesHandler.prototype), "onInit", this).call(this); | |
| 2900 | 1168 | var settings = this.getSettings(), |
| 2901 | 1169 | isLandingPagesTablePage = !!window.location.href.includes(settings.paths.landingPagesTablePage), |
| 2902 | 1170 | isLandingPagesTrashPage = !!window.location.href.includes(settings.paths.landingPagesTrashPage), |
| 2903 | 1171 | isLandingPagesCreateYourFirstPage = !!window.location.href.includes(settings.paths.landingPagesAddNewPage); |
| @@ -2913,9 +1181,11 @@ | ||
| 2913 | 1181 | jQuery(settings.selectors.addButton).attr('href', elementorAdminConfig.urls.addNewLandingPageUrl); |
| 2914 | 1182 | } |
| 2915 | 1183 | } |
| 2916 | 1184 | }]); |
| 1185 | + return LandingPagesHandler; | |
| 2917 | 1186 | }(_menuHandler.default); |
| 1187 | +exports["default"] = LandingPagesHandler; | |
| 2918 | 1188 | |
| 2919 | 1189 | /***/ }), |
| 2920 | 1190 | |
| 2921 | 1191 | /***/ "../modules/landing-pages/assets/js/admin/module.js": |
| @@ -2933,26 +1203,27 @@ | ||
| 2933 | 1203 | })); |
| 2934 | 1204 | exports["default"] = void 0; |
| 2935 | 1205 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2936 | 1206 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 1207 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2937 | 1208 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 2938 | 1209 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 2939 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2940 | 1210 | var _landingPages = _interopRequireDefault(__webpack_require__(/*! ./landing-pages */ "../modules/landing-pages/assets/js/admin/landing-pages.js")); |
| 2941 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 2942 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2943 | -var _default = exports["default"] = /*#__PURE__*/function (_elementorModules$Mod) { | |
| 1211 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 1212 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 1213 | +var _default = /*#__PURE__*/function (_elementorModules$Mod) { | |
| 1214 | + (0, _inherits2.default)(_default, _elementorModules$Mod); | |
| 1215 | + var _super = _createSuper(_default); | |
| 2944 | 1216 | function _default() { |
| 2945 | 1217 | var _this; |
| 2946 | 1218 | (0, _classCallCheck2.default)(this, _default); |
| 2947 | - _this = _callSuper(this, _default); | |
| 1219 | + _this = _super.call(this); | |
| 2948 | 1220 | elementorCommon.elements.$window.on('elementor/admin/init', function () { |
| 2949 | 1221 | _this.runHandler(); |
| 2950 | 1222 | }); |
| 2951 | 1223 | return _this; |
| 2952 | 1224 | } |
| 2953 | - (0, _inherits2.default)(_default, _elementorModules$Mod); | |
| 2954 | - return (0, _createClass2.default)(_default, [{ | |
| 1225 | + (0, _createClass2.default)(_default, [{ | |
| 2955 | 1226 | key: "runHandler", |
| 2956 | 1227 | value: function runHandler() { |
| 2957 | 1228 | var _elementorAdmin$confi, _elementorAdmin$confi2; |
| 2958 | 1229 | var pageName = 'e-landing-page', |
| @@ -2971,22 +1242,22 @@ | ||
| 2971 | 1242 | // and could not be modified in the backend. |
| 2972 | 1243 | new _landingPages.default(args); |
| 2973 | 1244 | } |
| 2974 | 1245 | }]); |
| 1246 | + return _default; | |
| 2975 | 1247 | }(elementorModules.Module); |
| 1248 | +exports["default"] = _default; | |
| 2976 | 1249 | |
| 2977 | 1250 | /***/ }), |
| 2978 | 1251 | |
| 2979 | -/***/ "../node_modules/@babel/runtime/helpers/OverloadYield.js": | |
| 2980 | -/*!***************************************************************!*\ | |
| 2981 | - !*** ../node_modules/@babel/runtime/helpers/OverloadYield.js ***! | |
| 2982 | - \***************************************************************/ | |
| 1252 | +/***/ "@wordpress/i18n": | |
| 1253 | +/*!**************************!*\ | |
| 1254 | + !*** external "wp.i18n" ***! | |
| 1255 | + \**************************/ | |
| 2983 | 1256 | /***/ ((module) => { |
| 2984 | 1257 | |
| 2985 | -function _OverloadYield(e, d) { | |
| 2986 | - this.v = e, this.k = d; | |
| 2987 | -} | |
| 2988 | -module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1258 | +"use strict"; | |
| 1259 | +module.exports = wp.i18n; | |
| 2989 | 1260 | |
| 2990 | 1261 | /***/ }), |
| 2991 | 1262 | |
| 2992 | 1263 | /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": |
| @@ -2994,12 +1265,12 @@ | ||
| 2994 | 1265 | !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! |
| 2995 | 1266 | \******************************************************************/ |
| 2996 | 1267 | /***/ ((module) => { |
| 2997 | 1268 | |
| 2998 | -function _arrayLikeToArray(r, a) { | |
| 2999 | - (null == a || a > r.length) && (a = r.length); | |
| 3000 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 3001 | - return n; | |
| 1269 | +function _arrayLikeToArray(arr, len) { | |
| 1270 | + if (len == null || len > arr.length) len = arr.length; | |
| 1271 | + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; | |
| 1272 | + return arr2; | |
| 3002 | 1273 | } |
| 3003 | 1274 | module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3004 | 1275 | |
| 3005 | 1276 | /***/ }), |
| @@ -3009,10 +1280,10 @@ | ||
| 3009 | 1280 | !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! |
| 3010 | 1281 | \****************************************************************/ |
| 3011 | 1282 | /***/ ((module) => { |
| 3012 | 1283 | |
| 3013 | -function _arrayWithHoles(r) { | |
| 3014 | - if (Array.isArray(r)) return r; | |
| 1284 | +function _arrayWithHoles(arr) { | |
| 1285 | + if (Array.isArray(arr)) return arr; | |
| 3015 | 1286 | } |
| 3016 | 1287 | module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3017 | 1288 | |
| 3018 | 1289 | /***/ }), |
| @@ -3022,11 +1293,13 @@ | ||
| 3022 | 1293 | !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! |
| 3023 | 1294 | \***********************************************************************/ |
| 3024 | 1295 | /***/ ((module) => { |
| 3025 | 1296 | |
| 3026 | -function _assertThisInitialized(e) { | |
| 3027 | - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 3028 | - return e; | |
| 1297 | +function _assertThisInitialized(self) { | |
| 1298 | + if (self === void 0) { | |
| 1299 | + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 1300 | + } | |
| 1301 | + return self; | |
| 3029 | 1302 | } |
| 3030 | 1303 | module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3031 | 1304 | |
| 3032 | 1305 | /***/ }), |
| @@ -3036,30 +1309,35 @@ | ||
| 3036 | 1309 | !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***! |
| 3037 | 1310 | \******************************************************************/ |
| 3038 | 1311 | /***/ ((module) => { |
| 3039 | 1312 | |
| 3040 | -function asyncGeneratorStep(n, t, e, r, o, a, c) { | |
| 1313 | +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | |
| 3041 | 1314 | try { |
| 3042 | - var i = n[a](c), | |
| 3043 | - u = i.value; | |
| 3044 | - } catch (n) { | |
| 3045 | - return void e(n); | |
| 1315 | + var info = gen[key](arg); | |
| 1316 | + var value = info.value; | |
| 1317 | + } catch (error) { | |
| 1318 | + reject(error); | |
| 1319 | + return; | |
| 3046 | 1320 | } |
| 3047 | - i.done ? t(u) : Promise.resolve(u).then(r, o); | |
| 1321 | + if (info.done) { | |
| 1322 | + resolve(value); | |
| 1323 | + } else { | |
| 1324 | + Promise.resolve(value).then(_next, _throw); | |
| 1325 | + } | |
| 3048 | 1326 | } |
| 3049 | -function _asyncToGenerator(n) { | |
| 1327 | +function _asyncToGenerator(fn) { | |
| 3050 | 1328 | return function () { |
| 3051 | - var t = this, | |
| 3052 | - e = arguments; | |
| 3053 | - return new Promise(function (r, o) { | |
| 3054 | - var a = n.apply(t, e); | |
| 3055 | - function _next(n) { | |
| 3056 | - asyncGeneratorStep(a, r, o, _next, _throw, "next", n); | |
| 1329 | + var self = this, | |
| 1330 | + args = arguments; | |
| 1331 | + return new Promise(function (resolve, reject) { | |
| 1332 | + var gen = fn.apply(self, args); | |
| 1333 | + function _next(value) { | |
| 1334 | + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | |
| 3057 | 1335 | } |
| 3058 | - function _throw(n) { | |
| 3059 | - asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | |
| 1336 | + function _throw(err) { | |
| 1337 | + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | |
| 3060 | 1338 | } |
| 3061 | - _next(void 0); | |
| 1339 | + _next(undefined); | |
| 3062 | 1340 | }); |
| 3063 | 1341 | }; |
| 3064 | 1342 | } |
| 3065 | 1343 | module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| @@ -3071,10 +1349,12 @@ | ||
| 3071 | 1349 | !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! |
| 3072 | 1350 | \****************************************************************/ |
| 3073 | 1351 | /***/ ((module) => { |
| 3074 | 1352 | |
| 3075 | -function _classCallCheck(a, n) { | |
| 3076 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 1353 | +function _classCallCheck(instance, Constructor) { | |
| 1354 | + if (!(instance instanceof Constructor)) { | |
| 1355 | + throw new TypeError("Cannot call a class as a function"); | |
| 1356 | + } | |
| 3077 | 1357 | } |
| 3078 | 1358 | module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3079 | 1359 | |
| 3080 | 1360 | /***/ }), |
| @@ -3085,18 +1365,24 @@ | ||
| 3085 | 1365 | \*************************************************************/ |
| 3086 | 1366 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3087 | 1367 | |
| 3088 | 1368 | var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); |
| 3089 | -function _defineProperties(e, r) { | |
| 3090 | - for (var t = 0; t < r.length; t++) { | |
| 3091 | - var o = r[t]; | |
| 3092 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 1369 | +function _defineProperties(target, props) { | |
| 1370 | + for (var i = 0; i < props.length; i++) { | |
| 1371 | + var descriptor = props[i]; | |
| 1372 | + descriptor.enumerable = descriptor.enumerable || false; | |
| 1373 | + descriptor.configurable = true; | |
| 1374 | + if ("value" in descriptor) descriptor.writable = true; | |
| 1375 | + Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); | |
| 3093 | 1376 | } |
| 3094 | 1377 | } |
| 3095 | -function _createClass(e, r, t) { | |
| 3096 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | |
| 3097 | - writable: !1 | |
| 3098 | - }), e; | |
| 1378 | +function _createClass(Constructor, protoProps, staticProps) { | |
| 1379 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); | |
| 1380 | + if (staticProps) _defineProperties(Constructor, staticProps); | |
| 1381 | + Object.defineProperty(Constructor, "prototype", { | |
| 1382 | + writable: false | |
| 1383 | + }); | |
| 1384 | + return Constructor; | |
| 3099 | 1385 | } |
| 3100 | 1386 | module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3101 | 1387 | |
| 3102 | 1388 | /***/ }), |
| @@ -3107,15 +1393,21 @@ | ||
| 3107 | 1393 | \****************************************************************/ |
| 3108 | 1394 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3109 | 1395 | |
| 3110 | 1396 | var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); |
| 3111 | -function _defineProperty(e, r, t) { | |
| 3112 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 3113 | - value: t, | |
| 3114 | - enumerable: !0, | |
| 3115 | - configurable: !0, | |
| 3116 | - writable: !0 | |
| 3117 | - }) : e[r] = t, e; | |
| 1397 | +function _defineProperty(obj, key, value) { | |
| 1398 | + key = toPropertyKey(key); | |
| 1399 | + if (key in obj) { | |
| 1400 | + Object.defineProperty(obj, key, { | |
| 1401 | + value: value, | |
| 1402 | + enumerable: true, | |
| 1403 | + configurable: true, | |
| 1404 | + writable: true | |
| 1405 | + }); | |
| 1406 | + } else { | |
| 1407 | + obj[key] = value; | |
| 1408 | + } | |
| 1409 | + return obj; | |
| 3118 | 1410 | } |
| 3119 | 1411 | module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3120 | 1412 | |
| 3121 | 1413 | /***/ }), |
| @@ -3127,15 +1419,22 @@ | ||
| 3127 | 1419 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3128 | 1420 | |
| 3129 | 1421 | var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); |
| 3130 | 1422 | function _get() { |
| 3131 | - return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { | |
| 3132 | - var p = superPropBase(e, t); | |
| 3133 | - if (p) { | |
| 3134 | - var n = Object.getOwnPropertyDescriptor(p, t); | |
| 3135 | - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; | |
| 3136 | - } | |
| 3137 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments); | |
| 1423 | + if (typeof Reflect !== "undefined" && Reflect.get) { | |
| 1424 | + module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1425 | + } else { | |
| 1426 | + module.exports = _get = function _get(target, property, receiver) { | |
| 1427 | + var base = superPropBase(target, property); | |
| 1428 | + if (!base) return; | |
| 1429 | + var desc = Object.getOwnPropertyDescriptor(base, property); | |
| 1430 | + if (desc.get) { | |
| 1431 | + return desc.get.call(arguments.length < 3 ? target : receiver); | |
| 1432 | + } | |
| 1433 | + return desc.value; | |
| 1434 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1435 | + } | |
| 1436 | + return _get.apply(this, arguments); | |
| 3138 | 1437 | } |
| 3139 | 1438 | module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3140 | 1439 | |
| 3141 | 1440 | /***/ }), |
| @@ -3145,12 +1444,13 @@ | ||
| 3145 | 1444 | !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! |
| 3146 | 1445 | \****************************************************************/ |
| 3147 | 1446 | /***/ ((module) => { |
| 3148 | 1447 | |
| 3149 | -function _getPrototypeOf(t) { | |
| 3150 | - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | |
| 3151 | - return t.__proto__ || Object.getPrototypeOf(t); | |
| 3152 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); | |
| 1448 | +function _getPrototypeOf(o) { | |
| 1449 | + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { | |
| 1450 | + return o.__proto__ || Object.getPrototypeOf(o); | |
| 1451 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1452 | + return _getPrototypeOf(o); | |
| 3153 | 1453 | } |
| 3154 | 1454 | module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3155 | 1455 | |
| 3156 | 1456 | /***/ }), |
| @@ -3161,19 +1461,23 @@ | ||
| 3161 | 1461 | \**********************************************************/ |
| 3162 | 1462 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3163 | 1463 | |
| 3164 | 1464 | var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); |
| 3165 | -function _inherits(t, e) { | |
| 3166 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 3167 | - t.prototype = Object.create(e && e.prototype, { | |
| 1465 | +function _inherits(subClass, superClass) { | |
| 1466 | + if (typeof superClass !== "function" && superClass !== null) { | |
| 1467 | + throw new TypeError("Super expression must either be null or a function"); | |
| 1468 | + } | |
| 1469 | + subClass.prototype = Object.create(superClass && superClass.prototype, { | |
| 3168 | 1470 | constructor: { |
| 3169 | - value: t, | |
| 3170 | - writable: !0, | |
| 3171 | - configurable: !0 | |
| 1471 | + value: subClass, | |
| 1472 | + writable: true, | |
| 1473 | + configurable: true | |
| 3172 | 1474 | } |
| 3173 | - }), Object.defineProperty(t, "prototype", { | |
| 3174 | - writable: !1 | |
| 3175 | - }), e && setPrototypeOf(t, e); | |
| 1475 | + }); | |
| 1476 | + Object.defineProperty(subClass, "prototype", { | |
| 1477 | + writable: false | |
| 1478 | + }); | |
| 1479 | + if (superClass) setPrototypeOf(subClass, superClass); | |
| 3176 | 1480 | } |
| 3177 | 1481 | module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3178 | 1482 | |
| 3179 | 1483 | /***/ }), |
| @@ -3183,11 +1487,11 @@ | ||
| 3183 | 1487 | !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! |
| 3184 | 1488 | \***********************************************************************/ |
| 3185 | 1489 | /***/ ((module) => { |
| 3186 | 1490 | |
| 3187 | -function _interopRequireDefault(e) { | |
| 3188 | - return e && e.__esModule ? e : { | |
| 3189 | - "default": e | |
| 1491 | +function _interopRequireDefault(obj) { | |
| 1492 | + return obj && obj.__esModule ? obj : { | |
| 1493 | + "default": obj | |
| 3190 | 1494 | }; |
| 3191 | 1495 | } |
| 3192 | 1496 | module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3193 | 1497 | |
| @@ -3250,350 +1554,330 @@ | ||
| 3250 | 1554 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3251 | 1555 | |
| 3252 | 1556 | var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 3253 | 1557 | var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); |
| 3254 | -function _possibleConstructorReturn(t, e) { | |
| 3255 | - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 3256 | - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 3257 | - return assertThisInitialized(t); | |
| 1558 | +function _possibleConstructorReturn(self, call) { | |
| 1559 | + if (call && (_typeof(call) === "object" || typeof call === "function")) { | |
| 1560 | + return call; | |
| 1561 | + } else if (call !== void 0) { | |
| 1562 | + throw new TypeError("Derived constructors may only return object or undefined"); | |
| 1563 | + } | |
| 1564 | + return assertThisInitialized(self); | |
| 3258 | 1565 | } |
| 3259 | 1566 | module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3260 | 1567 | |
| 3261 | 1568 | /***/ }), |
| 3262 | 1569 | |
| 3263 | -/***/ "../node_modules/@babel/runtime/helpers/regenerator.js": | |
| 3264 | -/*!*************************************************************!*\ | |
| 3265 | - !*** ../node_modules/@babel/runtime/helpers/regenerator.js ***! | |
| 3266 | - \*************************************************************/ | |
| 1570 | +/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js": | |
| 1571 | +/*!********************************************************************!*\ | |
| 1572 | + !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! | |
| 1573 | + \********************************************************************/ | |
| 3267 | 1574 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3268 | 1575 | |
| 3269 | -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 3270 | -function _regenerator() { | |
| 3271 | - /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ | |
| 3272 | - var e, | |
| 3273 | - t, | |
| 3274 | - r = "function" == typeof Symbol ? Symbol : {}, | |
| 3275 | - n = r.iterator || "@@iterator", | |
| 3276 | - o = r.toStringTag || "@@toStringTag"; | |
| 3277 | - function i(r, n, o, i) { | |
| 3278 | - var c = n && n.prototype instanceof Generator ? n : Generator, | |
| 3279 | - u = Object.create(c.prototype); | |
| 3280 | - return regeneratorDefine(u, "_invoke", function (r, n, o) { | |
| 3281 | - var i, | |
| 3282 | - c, | |
| 3283 | - u, | |
| 3284 | - f = 0, | |
| 3285 | - p = o || [], | |
| 3286 | - y = !1, | |
| 3287 | - G = { | |
| 3288 | - p: 0, | |
| 3289 | - n: 0, | |
| 3290 | - v: e, | |
| 3291 | - a: d, | |
| 3292 | - f: d.bind(e, 4), | |
| 3293 | - d: function d(t, r) { | |
| 3294 | - return i = t, c = 0, u = e, G.n = r, a; | |
| 3295 | - } | |
| 3296 | - }; | |
| 3297 | - function d(r, n) { | |
| 3298 | - for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { | |
| 3299 | - var o, | |
| 3300 | - i = p[t], | |
| 3301 | - d = G.p, | |
| 3302 | - l = i[2]; | |
| 3303 | - r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); | |
| 3304 | - } | |
| 3305 | - if (o || r > 1) return a; | |
| 3306 | - throw y = !0, n; | |
| 3307 | - } | |
| 3308 | - return function (o, p, l) { | |
| 3309 | - if (f > 1) throw TypeError("Generator is already running"); | |
| 3310 | - for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { | |
| 3311 | - i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); | |
| 3312 | - try { | |
| 3313 | - if (f = 2, i) { | |
| 3314 | - if (c || (o = "next"), t = i[o]) { | |
| 3315 | - if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); | |
| 3316 | - if (!t.done) return t; | |
| 3317 | - u = t.value, c < 2 && (c = 0); | |
| 3318 | - } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); | |
| 3319 | - i = e; | |
| 3320 | - } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; | |
| 3321 | - } catch (t) { | |
| 3322 | - i = e, c = 1, u = t; | |
| 3323 | - } finally { | |
| 3324 | - f = 1; | |
| 3325 | - } | |
| 3326 | - } | |
| 3327 | - return { | |
| 3328 | - value: t, | |
| 3329 | - done: y | |
| 3330 | - }; | |
| 1576 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 1577 | +function _regeneratorRuntime() { | |
| 1578 | + "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ | |
| 1579 | + module.exports = _regeneratorRuntime = function _regeneratorRuntime() { | |
| 1580 | + return e; | |
| 1581 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1582 | + var t, | |
| 1583 | + e = {}, | |
| 1584 | + r = Object.prototype, | |
| 1585 | + n = r.hasOwnProperty, | |
| 1586 | + o = Object.defineProperty || function (t, e, r) { | |
| 1587 | + t[e] = r.value; | |
| 1588 | + }, | |
| 1589 | + i = "function" == typeof Symbol ? Symbol : {}, | |
| 1590 | + a = i.iterator || "@@iterator", | |
| 1591 | + c = i.asyncIterator || "@@asyncIterator", | |
| 1592 | + u = i.toStringTag || "@@toStringTag"; | |
| 1593 | + function define(t, e, r) { | |
| 1594 | + return Object.defineProperty(t, e, { | |
| 1595 | + value: r, | |
| 1596 | + enumerable: !0, | |
| 1597 | + configurable: !0, | |
| 1598 | + writable: !0 | |
| 1599 | + }), t[e]; | |
| 1600 | + } | |
| 1601 | + try { | |
| 1602 | + define({}, ""); | |
| 1603 | + } catch (t) { | |
| 1604 | + define = function define(t, e, r) { | |
| 1605 | + return t[e] = r; | |
| 1606 | + }; | |
| 1607 | + } | |
| 1608 | + function wrap(t, e, r, n) { | |
| 1609 | + var i = e && e.prototype instanceof Generator ? e : Generator, | |
| 1610 | + a = Object.create(i.prototype), | |
| 1611 | + c = new Context(n || []); | |
| 1612 | + return o(a, "_invoke", { | |
| 1613 | + value: makeInvokeMethod(t, r, c) | |
| 1614 | + }), a; | |
| 1615 | + } | |
| 1616 | + function tryCatch(t, e, r) { | |
| 1617 | + try { | |
| 1618 | + return { | |
| 1619 | + type: "normal", | |
| 1620 | + arg: t.call(e, r) | |
| 3331 | 1621 | }; |
| 3332 | - }(r, o, i), !0), u; | |
| 1622 | + } catch (t) { | |
| 1623 | + return { | |
| 1624 | + type: "throw", | |
| 1625 | + arg: t | |
| 1626 | + }; | |
| 1627 | + } | |
| 3333 | 1628 | } |
| 3334 | - var a = {}; | |
| 1629 | + e.wrap = wrap; | |
| 1630 | + var h = "suspendedStart", | |
| 1631 | + l = "suspendedYield", | |
| 1632 | + f = "executing", | |
| 1633 | + s = "completed", | |
| 1634 | + y = {}; | |
| 3335 | 1635 | function Generator() {} |
| 3336 | 1636 | function GeneratorFunction() {} |
| 3337 | 1637 | function GeneratorFunctionPrototype() {} |
| 3338 | - t = Object.getPrototypeOf; | |
| 3339 | - var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () { | |
| 3340 | - return this; | |
| 3341 | - }), t), | |
| 3342 | - u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); | |
| 3343 | - function f(e) { | |
| 3344 | - return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; | |
| 3345 | - } | |
| 3346 | - return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function () { | |
| 1638 | + var p = {}; | |
| 1639 | + define(p, a, function () { | |
| 3347 | 1640 | return this; |
| 3348 | - }), regeneratorDefine(u, "toString", function () { | |
| 3349 | - return "[object Generator]"; | |
| 3350 | - }), (module.exports = _regenerator = function _regenerator() { | |
| 3351 | - return { | |
| 3352 | - w: i, | |
| 3353 | - m: f | |
| 3354 | - }; | |
| 3355 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 3356 | -} | |
| 3357 | -module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3358 | - | |
| 3359 | -/***/ }), | |
| 3360 | - | |
| 3361 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js": | |
| 3362 | -/*!******************************************************************!*\ | |
| 3363 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsync.js ***! | |
| 3364 | - \******************************************************************/ | |
| 3365 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3366 | - | |
| 3367 | -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 3368 | -function _regeneratorAsync(n, e, r, t, o) { | |
| 3369 | - var a = regeneratorAsyncGen(n, e, r, t, o); | |
| 3370 | - return a.next().then(function (n) { | |
| 3371 | - return n.done ? n.value : a.next(); | |
| 3372 | 1641 | }); |
| 3373 | -} | |
| 3374 | -module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3375 | - | |
| 3376 | -/***/ }), | |
| 3377 | - | |
| 3378 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js": | |
| 3379 | -/*!*********************************************************************!*\ | |
| 3380 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js ***! | |
| 3381 | - \*********************************************************************/ | |
| 3382 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3383 | - | |
| 3384 | -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 3385 | -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 3386 | -function _regeneratorAsyncGen(r, e, t, o, n) { | |
| 3387 | - return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise); | |
| 3388 | -} | |
| 3389 | -module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3390 | - | |
| 3391 | -/***/ }), | |
| 3392 | - | |
| 3393 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js": | |
| 3394 | -/*!**************************************************************************!*\ | |
| 3395 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js ***! | |
| 3396 | - \**************************************************************************/ | |
| 3397 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3398 | - | |
| 3399 | -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 3400 | -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 3401 | -function AsyncIterator(t, e) { | |
| 3402 | - function n(r, o, i, f) { | |
| 3403 | - try { | |
| 3404 | - var c = t[r](o), | |
| 3405 | - u = c.value; | |
| 3406 | - return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) { | |
| 3407 | - n("next", t, i, f); | |
| 3408 | - }, function (t) { | |
| 3409 | - n("throw", t, i, f); | |
| 3410 | - }) : e.resolve(u).then(function (t) { | |
| 3411 | - c.value = t, i(c); | |
| 3412 | - }, function (t) { | |
| 3413 | - return n("throw", t, i, f); | |
| 1642 | + var d = Object.getPrototypeOf, | |
| 1643 | + v = d && d(d(values([]))); | |
| 1644 | + v && v !== r && n.call(v, a) && (p = v); | |
| 1645 | + var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); | |
| 1646 | + function defineIteratorMethods(t) { | |
| 1647 | + ["next", "throw", "return"].forEach(function (e) { | |
| 1648 | + define(t, e, function (t) { | |
| 1649 | + return this._invoke(e, t); | |
| 3414 | 1650 | }); |
| 3415 | - } catch (t) { | |
| 3416 | - f(t); | |
| 3417 | - } | |
| 1651 | + }); | |
| 3418 | 1652 | } |
| 3419 | - var r; | |
| 3420 | - this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { | |
| 3421 | - return this; | |
| 3422 | - })), regeneratorDefine(this, "_invoke", function (t, o, i) { | |
| 3423 | - function f() { | |
| 3424 | - return new e(function (e, r) { | |
| 3425 | - n(t, i, e, r); | |
| 3426 | - }); | |
| 1653 | + function AsyncIterator(t, e) { | |
| 1654 | + function invoke(r, o, i, a) { | |
| 1655 | + var c = tryCatch(t[r], t, o); | |
| 1656 | + if ("throw" !== c.type) { | |
| 1657 | + var u = c.arg, | |
| 1658 | + h = u.value; | |
| 1659 | + return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { | |
| 1660 | + invoke("next", t, i, a); | |
| 1661 | + }, function (t) { | |
| 1662 | + invoke("throw", t, i, a); | |
| 1663 | + }) : e.resolve(h).then(function (t) { | |
| 1664 | + u.value = t, i(u); | |
| 1665 | + }, function (t) { | |
| 1666 | + return invoke("throw", t, i, a); | |
| 1667 | + }); | |
| 1668 | + } | |
| 1669 | + a(c.arg); | |
| 3427 | 1670 | } |
| 3428 | - return r = r ? r.then(f, f) : f(); | |
| 3429 | - }, !0); | |
| 3430 | -} | |
| 3431 | -module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3432 | - | |
| 3433 | -/***/ }), | |
| 3434 | - | |
| 3435 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js": | |
| 3436 | -/*!*******************************************************************!*\ | |
| 3437 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorDefine.js ***! | |
| 3438 | - \*******************************************************************/ | |
| 3439 | -/***/ ((module) => { | |
| 3440 | - | |
| 3441 | -function _regeneratorDefine(e, r, n, t) { | |
| 3442 | - var i = Object.defineProperty; | |
| 3443 | - try { | |
| 3444 | - i({}, "", {}); | |
| 3445 | - } catch (e) { | |
| 3446 | - i = 0; | |
| 1671 | + var r; | |
| 1672 | + o(this, "_invoke", { | |
| 1673 | + value: function value(t, n) { | |
| 1674 | + function callInvokeWithMethodAndArg() { | |
| 1675 | + return new e(function (e, r) { | |
| 1676 | + invoke(t, n, e, r); | |
| 1677 | + }); | |
| 1678 | + } | |
| 1679 | + return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); | |
| 1680 | + } | |
| 1681 | + }); | |
| 3447 | 1682 | } |
| 3448 | - module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) { | |
| 3449 | - function o(r, n) { | |
| 3450 | - _regeneratorDefine(e, r, function (e) { | |
| 3451 | - return this._invoke(r, n, e); | |
| 3452 | - }); | |
| 3453 | - } | |
| 3454 | - r ? i ? i(e, r, { | |
| 3455 | - value: n, | |
| 3456 | - enumerable: !t, | |
| 3457 | - configurable: !t, | |
| 3458 | - writable: !t | |
| 3459 | - }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); | |
| 3460 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t); | |
| 3461 | -} | |
| 3462 | -module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3463 | - | |
| 3464 | -/***/ }), | |
| 3465 | - | |
| 3466 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js": | |
| 3467 | -/*!*****************************************************************!*\ | |
| 3468 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorKeys.js ***! | |
| 3469 | - \*****************************************************************/ | |
| 3470 | -/***/ ((module) => { | |
| 3471 | - | |
| 3472 | -function _regeneratorKeys(e) { | |
| 3473 | - var n = Object(e), | |
| 3474 | - r = []; | |
| 3475 | - for (var t in n) r.unshift(t); | |
| 3476 | - return function e() { | |
| 3477 | - for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; | |
| 3478 | - return e.done = !0, e; | |
| 3479 | - }; | |
| 3480 | -} | |
| 3481 | -module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3482 | - | |
| 3483 | -/***/ }), | |
| 3484 | - | |
| 3485 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js": | |
| 3486 | -/*!********************************************************************!*\ | |
| 3487 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! | |
| 3488 | - \********************************************************************/ | |
| 3489 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3490 | - | |
| 3491 | -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 3492 | -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 3493 | -var regeneratorAsync = __webpack_require__(/*! ./regeneratorAsync.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js"); | |
| 3494 | -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 3495 | -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 3496 | -var regeneratorKeys = __webpack_require__(/*! ./regeneratorKeys.js */ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js"); | |
| 3497 | -var regeneratorValues = __webpack_require__(/*! ./regeneratorValues.js */ "../node_modules/@babel/runtime/helpers/regeneratorValues.js"); | |
| 3498 | -function _regeneratorRuntime() { | |
| 3499 | - "use strict"; | |
| 3500 | - | |
| 3501 | - var r = regenerator(), | |
| 3502 | - e = r.m(_regeneratorRuntime), | |
| 3503 | - t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; | |
| 3504 | - function n(r) { | |
| 3505 | - var e = "function" == typeof r && r.constructor; | |
| 3506 | - return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); | |
| 3507 | - } | |
| 3508 | - var o = { | |
| 3509 | - "throw": 1, | |
| 3510 | - "return": 2, | |
| 3511 | - "break": 3, | |
| 3512 | - "continue": 3 | |
| 3513 | - }; | |
| 3514 | - function a(r) { | |
| 3515 | - var e, t; | |
| 3516 | - return function (n) { | |
| 3517 | - e || (e = { | |
| 3518 | - stop: function stop() { | |
| 3519 | - return t(n.a, 2); | |
| 3520 | - }, | |
| 3521 | - "catch": function _catch() { | |
| 3522 | - return n.v; | |
| 3523 | - }, | |
| 3524 | - abrupt: function abrupt(r, e) { | |
| 3525 | - return t(n.a, o[r], e); | |
| 3526 | - }, | |
| 3527 | - delegateYield: function delegateYield(r, o, a) { | |
| 3528 | - return e.resultName = o, t(n.d, regeneratorValues(r), a); | |
| 3529 | - }, | |
| 3530 | - finish: function finish(r) { | |
| 3531 | - return t(n.f, r); | |
| 1683 | + function makeInvokeMethod(e, r, n) { | |
| 1684 | + var o = h; | |
| 1685 | + return function (i, a) { | |
| 1686 | + if (o === f) throw new Error("Generator is already running"); | |
| 1687 | + if (o === s) { | |
| 1688 | + if ("throw" === i) throw a; | |
| 1689 | + return { | |
| 1690 | + value: t, | |
| 1691 | + done: !0 | |
| 1692 | + }; | |
| 1693 | + } | |
| 1694 | + for (n.method = i, n.arg = a;;) { | |
| 1695 | + var c = n.delegate; | |
| 1696 | + if (c) { | |
| 1697 | + var u = maybeInvokeDelegate(c, n); | |
| 1698 | + if (u) { | |
| 1699 | + if (u === y) continue; | |
| 1700 | + return u; | |
| 1701 | + } | |
| 3532 | 1702 | } |
| 3533 | - }, t = function t(r, _t, o) { | |
| 3534 | - n.p = e.prev, n.n = e.next; | |
| 3535 | - try { | |
| 3536 | - return r(_t, o); | |
| 3537 | - } finally { | |
| 3538 | - e.next = n.n; | |
| 1703 | + if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { | |
| 1704 | + if (o === h) throw o = s, n.arg; | |
| 1705 | + n.dispatchException(n.arg); | |
| 1706 | + } else "return" === n.method && n.abrupt("return", n.arg); | |
| 1707 | + o = f; | |
| 1708 | + var p = tryCatch(e, r, n); | |
| 1709 | + if ("normal" === p.type) { | |
| 1710 | + if (o = n.done ? s : l, p.arg === y) continue; | |
| 1711 | + return { | |
| 1712 | + value: p.arg, | |
| 1713 | + done: n.done | |
| 1714 | + }; | |
| 3539 | 1715 | } |
| 3540 | - }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; | |
| 3541 | - try { | |
| 3542 | - return r.call(this, e); | |
| 3543 | - } finally { | |
| 3544 | - n.p = e.prev, n.n = e.next; | |
| 1716 | + "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); | |
| 3545 | 1717 | } |
| 3546 | 1718 | }; |
| 3547 | 1719 | } |
| 3548 | - return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() { | |
| 1720 | + function maybeInvokeDelegate(e, r) { | |
| 1721 | + var n = r.method, | |
| 1722 | + o = e.iterator[n]; | |
| 1723 | + if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; | |
| 1724 | + var i = tryCatch(o, e.iterator, r.arg); | |
| 1725 | + if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; | |
| 1726 | + var a = i.arg; | |
| 1727 | + return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); | |
| 1728 | + } | |
| 1729 | + function pushTryEntry(t) { | |
| 1730 | + var e = { | |
| 1731 | + tryLoc: t[0] | |
| 1732 | + }; | |
| 1733 | + 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); | |
| 1734 | + } | |
| 1735 | + function resetTryEntry(t) { | |
| 1736 | + var e = t.completion || {}; | |
| 1737 | + e.type = "normal", delete e.arg, t.completion = e; | |
| 1738 | + } | |
| 1739 | + function Context(t) { | |
| 1740 | + this.tryEntries = [{ | |
| 1741 | + tryLoc: "root" | |
| 1742 | + }], t.forEach(pushTryEntry, this), this.reset(!0); | |
| 1743 | + } | |
| 1744 | + function values(e) { | |
| 1745 | + if (e || "" === e) { | |
| 1746 | + var r = e[a]; | |
| 1747 | + if (r) return r.call(e); | |
| 1748 | + if ("function" == typeof e.next) return e; | |
| 1749 | + if (!isNaN(e.length)) { | |
| 1750 | + var o = -1, | |
| 1751 | + i = function next() { | |
| 1752 | + for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; | |
| 1753 | + return next.value = t, next.done = !0, next; | |
| 1754 | + }; | |
| 1755 | + return i.next = i; | |
| 1756 | + } | |
| 1757 | + } | |
| 1758 | + throw new TypeError(_typeof(e) + " is not iterable"); | |
| 1759 | + } | |
| 1760 | + return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { | |
| 1761 | + value: GeneratorFunctionPrototype, | |
| 1762 | + configurable: !0 | |
| 1763 | + }), o(GeneratorFunctionPrototype, "constructor", { | |
| 1764 | + value: GeneratorFunction, | |
| 1765 | + configurable: !0 | |
| 1766 | + }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { | |
| 1767 | + var e = "function" == typeof t && t.constructor; | |
| 1768 | + return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); | |
| 1769 | + }, e.mark = function (t) { | |
| 1770 | + return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; | |
| 1771 | + }, e.awrap = function (t) { | |
| 3549 | 1772 | return { |
| 3550 | - wrap: function wrap(e, t, n, o) { | |
| 3551 | - return r.w(a(e), t, n, o && o.reverse()); | |
| 3552 | - }, | |
| 3553 | - isGeneratorFunction: n, | |
| 3554 | - mark: r.m, | |
| 3555 | - awrap: function awrap(r, e) { | |
| 3556 | - return new OverloadYield(r, e); | |
| 3557 | - }, | |
| 3558 | - AsyncIterator: regeneratorAsyncIterator, | |
| 3559 | - async: function async(r, e, t, o, u) { | |
| 3560 | - return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u); | |
| 3561 | - }, | |
| 3562 | - keys: regeneratorKeys, | |
| 3563 | - values: regeneratorValues | |
| 1773 | + __await: t | |
| 3564 | 1774 | }; |
| 3565 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 3566 | -} | |
| 3567 | -module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3568 | - | |
| 3569 | -/***/ }), | |
| 3570 | - | |
| 3571 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorValues.js": | |
| 3572 | -/*!*******************************************************************!*\ | |
| 3573 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorValues.js ***! | |
| 3574 | - \*******************************************************************/ | |
| 3575 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3576 | - | |
| 3577 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 3578 | -function _regeneratorValues(e) { | |
| 3579 | - if (null != e) { | |
| 3580 | - var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], | |
| 3581 | - r = 0; | |
| 3582 | - if (t) return t.call(e); | |
| 3583 | - if ("function" == typeof e.next) return e; | |
| 3584 | - if (!isNaN(e.length)) return { | |
| 3585 | - next: function next() { | |
| 3586 | - return e && r >= e.length && (e = void 0), { | |
| 3587 | - value: e && e[r++], | |
| 3588 | - done: !e | |
| 3589 | - }; | |
| 1775 | + }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { | |
| 1776 | + return this; | |
| 1777 | + }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { | |
| 1778 | + void 0 === i && (i = Promise); | |
| 1779 | + var a = new AsyncIterator(wrap(t, r, n, o), i); | |
| 1780 | + return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { | |
| 1781 | + return t.done ? t.value : a.next(); | |
| 1782 | + }); | |
| 1783 | + }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { | |
| 1784 | + return this; | |
| 1785 | + }), define(g, "toString", function () { | |
| 1786 | + return "[object Generator]"; | |
| 1787 | + }), e.keys = function (t) { | |
| 1788 | + var e = Object(t), | |
| 1789 | + r = []; | |
| 1790 | + for (var n in e) r.push(n); | |
| 1791 | + return r.reverse(), function next() { | |
| 1792 | + for (; r.length;) { | |
| 1793 | + var t = r.pop(); | |
| 1794 | + if (t in e) return next.value = t, next.done = !1, next; | |
| 3590 | 1795 | } |
| 1796 | + return next.done = !0, next; | |
| 3591 | 1797 | }; |
| 3592 | - } | |
| 3593 | - throw new TypeError(_typeof(e) + " is not iterable"); | |
| 1798 | + }, e.values = values, Context.prototype = { | |
| 1799 | + constructor: Context, | |
| 1800 | + reset: function reset(e) { | |
| 1801 | + if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); | |
| 1802 | + }, | |
| 1803 | + stop: function stop() { | |
| 1804 | + this.done = !0; | |
| 1805 | + var t = this.tryEntries[0].completion; | |
| 1806 | + if ("throw" === t.type) throw t.arg; | |
| 1807 | + return this.rval; | |
| 1808 | + }, | |
| 1809 | + dispatchException: function dispatchException(e) { | |
| 1810 | + if (this.done) throw e; | |
| 1811 | + var r = this; | |
| 1812 | + function handle(n, o) { | |
| 1813 | + return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; | |
| 1814 | + } | |
| 1815 | + for (var o = this.tryEntries.length - 1; o >= 0; --o) { | |
| 1816 | + var i = this.tryEntries[o], | |
| 1817 | + a = i.completion; | |
| 1818 | + if ("root" === i.tryLoc) return handle("end"); | |
| 1819 | + if (i.tryLoc <= this.prev) { | |
| 1820 | + var c = n.call(i, "catchLoc"), | |
| 1821 | + u = n.call(i, "finallyLoc"); | |
| 1822 | + if (c && u) { | |
| 1823 | + if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); | |
| 1824 | + if (this.prev < i.finallyLoc) return handle(i.finallyLoc); | |
| 1825 | + } else if (c) { | |
| 1826 | + if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); | |
| 1827 | + } else { | |
| 1828 | + if (!u) throw new Error("try statement without catch or finally"); | |
| 1829 | + if (this.prev < i.finallyLoc) return handle(i.finallyLoc); | |
| 1830 | + } | |
| 1831 | + } | |
| 1832 | + } | |
| 1833 | + }, | |
| 1834 | + abrupt: function abrupt(t, e) { | |
| 1835 | + for (var r = this.tryEntries.length - 1; r >= 0; --r) { | |
| 1836 | + var o = this.tryEntries[r]; | |
| 1837 | + if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { | |
| 1838 | + var i = o; | |
| 1839 | + break; | |
| 1840 | + } | |
| 1841 | + } | |
| 1842 | + i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); | |
| 1843 | + var a = i ? i.completion : {}; | |
| 1844 | + return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); | |
| 1845 | + }, | |
| 1846 | + complete: function complete(t, e) { | |
| 1847 | + if ("throw" === t.type) throw t.arg; | |
| 1848 | + return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; | |
| 1849 | + }, | |
| 1850 | + finish: function finish(t) { | |
| 1851 | + for (var e = this.tryEntries.length - 1; e >= 0; --e) { | |
| 1852 | + var r = this.tryEntries[e]; | |
| 1853 | + if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; | |
| 1854 | + } | |
| 1855 | + }, | |
| 1856 | + "catch": function _catch(t) { | |
| 1857 | + for (var e = this.tryEntries.length - 1; e >= 0; --e) { | |
| 1858 | + var r = this.tryEntries[e]; | |
| 1859 | + if (r.tryLoc === t) { | |
| 1860 | + var n = r.completion; | |
| 1861 | + if ("throw" === n.type) { | |
| 1862 | + var o = n.arg; | |
| 1863 | + resetTryEntry(r); | |
| 1864 | + } | |
| 1865 | + return o; | |
| 1866 | + } | |
| 1867 | + } | |
| 1868 | + throw new Error("illegal catch attempt"); | |
| 1869 | + }, | |
| 1870 | + delegateYield: function delegateYield(e, r, n) { | |
| 1871 | + return this.delegate = { | |
| 1872 | + iterator: values(e), | |
| 1873 | + resultName: r, | |
| 1874 | + nextLoc: n | |
| 1875 | + }, "next" === this.method && (this.arg = t), y; | |
| 1876 | + } | |
| 1877 | + }, e; | |
| 3594 | 1878 | } |
| 3595 | -module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1879 | +module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3596 | 1880 | |
| 3597 | 1881 | /***/ }), |
| 3598 | 1882 | |
| 3599 | 1883 | /***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": |
| @@ -3601,12 +1885,14 @@ | ||
| 3601 | 1885 | !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! |
| 3602 | 1886 | \****************************************************************/ |
| 3603 | 1887 | /***/ ((module) => { |
| 3604 | 1888 | |
| 3605 | -function _setPrototypeOf(t, e) { | |
| 3606 | - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | |
| 3607 | - return t.__proto__ = e, t; | |
| 3608 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); | |
| 1889 | +function _setPrototypeOf(o, p) { | |
| 1890 | + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | |
| 1891 | + o.__proto__ = p; | |
| 1892 | + return o; | |
| 1893 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1894 | + return _setPrototypeOf(o, p); | |
| 3609 | 1895 | } |
| 3610 | 1896 | module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3611 | 1897 | |
| 3612 | 1898 | /***/ }), |
| @@ -3620,10 +1906,10 @@ | ||
| 3620 | 1906 | var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); |
| 3621 | 1907 | var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); |
| 3622 | 1908 | var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); |
| 3623 | 1909 | var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); |
| 3624 | -function _slicedToArray(r, e) { | |
| 3625 | - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 1910 | +function _slicedToArray(arr, i) { | |
| 1911 | + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | |
| 3626 | 1912 | } |
| 3627 | 1913 | module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3628 | 1914 | |
| 3629 | 1915 | /***/ }), |
| @@ -3634,11 +1920,14 @@ | ||
| 3634 | 1920 | \***************************************************************/ |
| 3635 | 1921 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3636 | 1922 | |
| 3637 | 1923 | var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); |
| 3638 | -function _superPropBase(t, o) { | |
| 3639 | - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); | |
| 3640 | - return t; | |
| 1924 | +function _superPropBase(object, property) { | |
| 1925 | + while (!Object.prototype.hasOwnProperty.call(object, property)) { | |
| 1926 | + object = getPrototypeOf(object); | |
| 1927 | + if (object === null) break; | |
| 1928 | + } | |
| 1929 | + return object; | |
| 3641 | 1930 | } |
| 3642 | 1931 | module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3643 | 1932 | |
| 3644 | 1933 | /***/ }), |
| @@ -3673,9 +1962,9 @@ | ||
| 3673 | 1962 | var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 3674 | 1963 | var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); |
| 3675 | 1964 | function toPropertyKey(t) { |
| 3676 | 1965 | var i = toPrimitive(t, "string"); |
| 3677 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 1966 | + return "symbol" == _typeof(i) ? i : String(i); | |
| 3678 | 1967 | } |
| 3679 | 1968 | module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3680 | 1969 | |
| 3681 | 1970 | /***/ }), |
| @@ -3688,13 +1977,13 @@ | ||
| 3688 | 1977 | |
| 3689 | 1978 | function _typeof(o) { |
| 3690 | 1979 | "@babel/helpers - typeof"; |
| 3691 | 1980 | |
| 3692 | - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 1981 | + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 3693 | 1982 | return typeof o; |
| 3694 | 1983 | } : function (o) { |
| 3695 | 1984 | return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; |
| 3696 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 1985 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o); | |
| 3697 | 1986 | } |
| 3698 | 1987 | module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3699 | 1988 | |
| 3700 | 1989 | /***/ }), |
| @@ -3705,14 +1994,15 @@ | ||
| 3705 | 1994 | \****************************************************************************/ |
| 3706 | 1995 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3707 | 1996 | |
| 3708 | 1997 | var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); |
| 3709 | -function _unsupportedIterableToArray(r, a) { | |
| 3710 | - if (r) { | |
| 3711 | - if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 3712 | - var t = {}.toString.call(r).slice(8, -1); | |
| 3713 | - return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0; | |
| 3714 | - } | |
| 1998 | +function _unsupportedIterableToArray(o, minLen) { | |
| 1999 | + if (!o) return; | |
| 2000 | + if (typeof o === "string") return arrayLikeToArray(o, minLen); | |
| 2001 | + var n = Object.prototype.toString.call(o).slice(8, -1); | |
| 2002 | + if (n === "Object" && o.constructor) n = o.constructor.name; | |
| 2003 | + if (n === "Map" || n === "Set") return Array.from(o); | |
| 2004 | + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); | |
| 3715 | 2005 | } |
| 3716 | 2006 | module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 3717 | 2007 | |
| 3718 | 2008 | /***/ }), |
| @@ -3739,19 +2029,8 @@ | ||
| 3739 | 2029 | } |
| 3740 | 2030 | } |
| 3741 | 2031 | |
| 3742 | 2032 | |
| 3743 | -/***/ }), | |
| 3744 | - | |
| 3745 | -/***/ "@wordpress/i18n": | |
| 3746 | -/*!**************************!*\ | |
| 3747 | - !*** external "wp.i18n" ***! | |
| 3748 | - \**************************/ | |
| 3749 | -/***/ ((module) => { | |
| 3750 | - | |
| 3751 | -"use strict"; | |
| 3752 | -module.exports = wp.i18n; | |
| 3753 | - | |
| 3754 | 2033 | /***/ }) |
| 3755 | 2034 | |
| 3756 | 2035 | /******/ }); |
| 3757 | 2036 | /************************************************************************/ |
| @@ -3780,9 +2059,9 @@ | ||
| 3780 | 2059 | /******/ } |
| 3781 | 2060 | /******/ |
| 3782 | 2061 | /************************************************************************/ |
| 3783 | 2062 | var __webpack_exports__ = {}; |
| 3784 | -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. | |
| 2063 | +// This entry need to be wrapped in an IIFE because it need to be in strict mode. | |
| 3785 | 2064 | (() => { |
| 3786 | 2065 | "use strict"; |
| 3787 | 2066 | /*!***************************************!*\ |
| 3788 | 2067 | !*** ../assets/dev/js/admin/admin.js ***! |
| @@ -3801,9 +2080,8 @@ | ||
| 3801 | 2080 | var _filesUploadHandler = _interopRequireDefault(__webpack_require__(/*! ../editor/utils/files-upload-handler */ "../assets/dev/js/editor/utils/files-upload-handler.js")); |
| 3802 | 2081 | var _templateControls = _interopRequireDefault(__webpack_require__(/*! ./new-template/template-controls.js */ "../assets/dev/js/admin/new-template/template-controls.js")); |
| 3803 | 2082 | var _jsonUploadWarningMessage = __webpack_require__(/*! elementor-utils/json-upload-warning-message */ "../assets/dev/js/utils/json-upload-warning-message.js"); |
| 3804 | 2083 | var _module3 = _interopRequireDefault(__webpack_require__(/*! elementor/modules/floating-buttons/assets/js/floating-buttons/admin/module */ "../modules/floating-buttons/assets/js/floating-buttons/admin/module.js")); |
| 3805 | -__webpack_require__(/*! elementor-app/event-track/wp-dashboard-tracking */ "../app/assets/js/event-track/wp-dashboard-tracking.js"); | |
| 3806 | 2084 | (function ($) { |
| 3807 | 2085 | var ElementorAdmin = elementorModules.ViewModule.extend({ |
| 3808 | 2086 | maintenanceMode: null, |
| 3809 | 2087 | config: elementorAdminConfig, |
| @@ -3821,9 +2099,10 @@ | ||
| 3821 | 2099 | $importForm: $('#elementor-import-template-form'), |
| 3822 | 2100 | $importFormFileInput: $('#elementor-import-template-form input[type="file"]'), |
| 3823 | 2101 | $settingsForm: $('#elementor-settings-form'), |
| 3824 | 2102 | $settingsTabsWrapper: $('#elementor-settings-tabs-wrapper'), |
| 3825 | - $menuGoProLink: $('a[href="admin.php?page=go_elementor_pro"], a[href*="admin.php?page=elementor-one-upgrade"]'), | |
| 2103 | + $menuGetHelpLink: $('a[href="admin.php?page=go_knowledge_base_site"]'), | |
| 2104 | + $menuGoProLink: $('a[href="admin.php?page=go_elementor_pro"]'), | |
| 3826 | 2105 | $reMigrateGlobalsButton: $('.elementor-re-migrate-globals-button') |
| 3827 | 2106 | }; |
| 3828 | 2107 | elements.$settingsFormPages = elements.$settingsForm.find('.elementor-settings-form-page'); |
| 3829 | 2108 | elements.$activeSettingsPage = elements.$settingsFormPages.filter('.elementor-active'); |
| @@ -3877,10 +2156,9 @@ | ||
| 3877 | 2156 | event.preventDefault(); |
| 3878 | 2157 | var $wrapperElm = $(this).closest('.e-notice--dismissible'); |
| 3879 | 2158 | $.post(ajaxurl, { |
| 3880 | 2159 | action: 'elementor_set_admin_notice_viewed', |
| 3881 | - notice_id: $wrapperElm.data('notice_id'), | |
| 3882 | - _wpnonce: $wrapperElm.data('nonce') | |
| 2160 | + notice_id: $wrapperElm.data('notice_id') | |
| 3883 | 2161 | }); |
| 3884 | 2162 | $wrapperElm.fadeTo(100, 0, function () { |
| 3885 | 2163 | $wrapperElm.slideUp(100, function () { |
| 3886 | 2164 | $wrapperElm.remove(); |
| @@ -3886,31 +2164,19 @@ | ||
| 3886 | 2164 | $wrapperElm.remove(); |
| 3887 | 2165 | }); |
| 3888 | 2166 | }); |
| 3889 | 2167 | }); |
| 3890 | - var campaignNotices = { | |
| 3891 | - plugin_image_optimization: 'elementor_image_optimization_campaign', | |
| 3892 | - site_mailer_promotion: 'elementor_core_site_mailer_campaign' | |
| 3893 | - }; | |
| 3894 | - Object.keys(campaignNotices).forEach(function (noticeId) { | |
| 3895 | - $(".e-notice--cta.e-notice--dismissible[data-notice_id=\"".concat(noticeId, "\"] a.e-button--cta")).on('click', function () { | |
| 3896 | - var $button = $(this); | |
| 3897 | - elementorCommon.ajax.addRequest(campaignNotices[noticeId], { | |
| 3898 | - data: { | |
| 3899 | - campaign: ($button === null || $button === void 0 ? void 0 : $button.data('campaign')) || '', | |
| 3900 | - source: ($button === null || $button === void 0 ? void 0 : $button.data('source')) || '', | |
| 3901 | - medium: ($button === null || $button === void 0 ? void 0 : $button.data('medium')) || '' | |
| 3902 | - } | |
| 3903 | - }); | |
| 2168 | + $('.e-notice--cta.e-notice--dismissible[data-notice_id="plugin_image_optimization"] a.e-button--cta').on('click', function () { | |
| 2169 | + elementorCommon.ajax.addRequest('elementor_image_optimization_campaign', { | |
| 2170 | + data: { | |
| 2171 | + source: 'io-wp-media-library-install' | |
| 2172 | + } | |
| 3904 | 2173 | }); |
| 3905 | 2174 | }); |
| 3906 | 2175 | $('.e-a-apps .e-a-item[data-plugin="image-optimization/image-optimization.php"] a.e-btn').on('click', function () { |
| 3907 | - var $button = $(this); | |
| 3908 | 2176 | elementorCommon.ajax.addRequest('elementor_image_optimization_campaign', { |
| 3909 | 2177 | data: { |
| 3910 | - campaign: ($button === null || $button === void 0 ? void 0 : $button.data('campaign')) || '', | |
| 3911 | - source: ($button === null || $button === void 0 ? void 0 : $button.data('source')) || '', | |
| 3912 | - medium: ($button === null || $button === void 0 ? void 0 : $button.data('medium')) || '' | |
| 2178 | + source: 'io-esetting-addons-install' | |
| 3913 | 2179 | } |
| 3914 | 2180 | }); |
| 3915 | 2181 | }); |
| 3916 | 2182 | $('#elementor-clear-cache-button').on('click', function (event) { |
| @@ -4033,9 +2299,9 @@ | ||
| 4033 | 2299 | $rollbackButton = $this.next('.elementor-rollback-button'), |
| 4034 | 2300 | placeholderText = $rollbackButton.data('placeholder-text'), |
| 4035 | 2301 | placeholderUrl = $rollbackButton.data('placeholder-url'); |
| 4036 | 2302 | $rollbackButton.html(placeholderText.replace('{VERSION}', $this.val())); |
| 4037 | - $rollbackButton.data('href', placeholderUrl.replace('VERSION', $this.val())); | |
| 2303 | + $rollbackButton.attr('href', placeholderUrl.replace('VERSION', $this.val())); | |
| 4038 | 2304 | }).trigger('change'); |
| 4039 | 2305 | $('.elementor-rollback-button').on('click', function (event) { |
| 4040 | 2306 | event.preventDefault(); |
| 4041 | 2307 | var $this = $(this); |
| @@ -4047,9 +2313,9 @@ | ||
| 4047 | 2313 | cancel: __('Cancel', 'elementor') |
| 4048 | 2314 | }, |
| 4049 | 2315 | onConfirm: function onConfirm() { |
| 4050 | 2316 | $this.addClass('loading'); |
| 4051 | - location.href = $this.data('href'); | |
| 2317 | + location.href = $this.attr('href'); | |
| 4052 | 2318 | } |
| 4053 | 2319 | }).show(); |
| 4054 | 2320 | }); |
| 4055 | 2321 | self.elements.$reMigrateGlobalsButton.on('click', function (event) { |
| @@ -4113,9 +2379,9 @@ | ||
| 4113 | 2379 | * |
| 4114 | 2380 | * @since 3.6.0 |
| 4115 | 2381 | */ |
| 4116 | 2382 | openLinksInNewTab: function openLinksInNewTab() { |
| 4117 | - var elements = [this.elements.$menuGoProLink]; | |
| 2383 | + var elements = [this.elements.$menuGetHelpLink, this.elements.$menuGoProLink]; | |
| 4118 | 2384 | elements.forEach(function ($element) { |
| 4119 | 2385 | // Only add the attribute if the element is found. |
| 4120 | 2386 | if ($element.length) { |
| 4121 | 2387 | $element.attr('target', '_blank'); |
| @@ -4127,11 +2393,8 @@ | ||
| 4127 | 2393 | var canImport = elementorAdminConfig.user.is_administrator || ((_elementorAdminConfig = (_elementorAdminConfig2 = elementorAdminConfig.user.restrictions) === null || _elementorAdminConfig2 === void 0 ? void 0 : _elementorAdminConfig2.includes('json-upload')) !== null && _elementorAdminConfig !== void 0 ? _elementorAdminConfig : false); |
| 4128 | 2394 | if (!canImport || !elementorCommon.elements.$body.hasClass('post-type-elementor_library')) { |
| 4129 | 2395 | return; |
| 4130 | 2396 | } |
| 4131 | - if (0 === this.elements.$importNowButton.length) { | |
| 4132 | - return; | |
| 4133 | - } | |
| 4134 | 2397 | var self = this, |
| 4135 | 2398 | $importForm = self.elements.$importForm, |
| 4136 | 2399 | $importButton = self.elements.$importButton, |
| 4137 | 2400 | $importArea = self.elements.$importArea, |
| @@ -4137,9 +2400,9 @@ | ||
| 4137 | 2400 | $importArea = self.elements.$importArea, |
| 4138 | 2401 | $importNowButton = self.elements.$importNowButton, |
| 4139 | 2402 | $importFormFileInput = self.elements.$importFormFileInput; |
| 4140 | 2403 | self.elements.$formAnchor = $('.wp-header-end'); |
| 4141 | - $('#wpbody-content').find('.page-title-action').first().before($importButton); | |
| 2404 | + $('#wpbody-content').find('.page-title-action').last().after($importButton); | |
| 4142 | 2405 | self.elements.$formAnchor.after($importArea); |
| 4143 | 2406 | $importButton.on('click', function () { |
| 4144 | 2407 | $('#elementor-import-template-area').toggle(); |
| 4145 | 2408 | }); |
| @@ -4152,44 +2415,44 @@ | ||
| 4152 | 2415 | } |
| 4153 | 2416 | }; |
| 4154 | 2417 | var originalButtonValue = $importNowButton[0].value; |
| 4155 | 2418 | $importForm.on('submit', /*#__PURE__*/function () { |
| 4156 | - var _ref4 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(event) { | |
| 4157 | - var hasImportedFiles, areUnfilteredFilesEnabled, enableUnfilteredFilesModal, _t; | |
| 4158 | - return _regenerator.default.wrap(function (_context) { | |
| 2419 | + var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(event) { | |
| 2420 | + var hasImportedFiles, areUnfilteredFilesEnabled, enableUnfilteredFilesModal; | |
| 2421 | + return _regenerator.default.wrap(function _callee$(_context) { | |
| 4159 | 2422 | while (1) switch (_context.prev = _context.next) { |
| 4160 | 2423 | case 0: |
| 4161 | 2424 | $importNowButton[0].disabled = true; |
| 4162 | 2425 | $importNowButton[0].value = __('Importing...', 'elementor'); |
| 4163 | 2426 | if (messages.jsonUploadWarning.shown) { |
| 4164 | - _context.next = 5; | |
| 2427 | + _context.next = 16; | |
| 4165 | 2428 | break; |
| 4166 | 2429 | } |
| 4167 | 2430 | event.preventDefault(); |
| 4168 | - _context.prev = 1; | |
| 4169 | - _context.next = 2; | |
| 2431 | + _context.prev = 4; | |
| 2432 | + _context.next = 7; | |
| 4170 | 2433 | return (0, _jsonUploadWarningMessage.showJsonUploadWarningMessageIfNeeded)({ |
| 4171 | 2434 | IntroductionClass: window.elementorModules.admin.utils.Introduction, |
| 4172 | 2435 | introductionMap: window.elementorAdmin.config.user.introduction, |
| 4173 | 2436 | waitForSetViewed: true |
| 4174 | 2437 | }); |
| 4175 | - case 2: | |
| 2438 | + case 7: | |
| 4176 | 2439 | messages.jsonUploadWarning.shown = true; |
| 4177 | 2440 | $importForm.trigger('submit'); |
| 4178 | - _context.next = 4; | |
| 2441 | + _context.next = 15; | |
| 4179 | 2442 | break; |
| 4180 | - case 3: | |
| 4181 | - _context.prev = 3; | |
| 4182 | - _t = _context["catch"](1); | |
| 2443 | + case 11: | |
| 2444 | + _context.prev = 11; | |
| 2445 | + _context.t0 = _context["catch"](4); | |
| 4183 | 2446 | $importNowButton[0].disabled = false; |
| 4184 | 2447 | $importNowButton[0].value = originalButtonValue; |
| 4185 | - case 4: | |
| 2448 | + case 15: | |
| 4186 | 2449 | return _context.abrupt("return"); |
| 4187 | - case 5: | |
| 2450 | + case 16: | |
| 4188 | 2451 | hasImportedFiles = $importFormFileInput[0].files.length; |
| 4189 | 2452 | areUnfilteredFilesEnabled = elementorCommon.config.filesUpload.unfilteredFiles; |
| 4190 | 2453 | if (!(hasImportedFiles && !areUnfilteredFilesEnabled && !messages.enableUnfilteredFiles.shown)) { |
| 4191 | - _context.next = 6; | |
| 2454 | + _context.next = 23; | |
| 4192 | 2455 | break; |
| 4193 | 2456 | } |
| 4194 | 2457 | event.preventDefault(); |
| 4195 | 2458 | enableUnfilteredFilesModal = _filesUploadHandler.default.getUnfilteredFilesNotEnabledImportTemplateDialog(function () { |
| @@ -4197,16 +2460,16 @@ | ||
| 4197 | 2460 | $importForm.trigger('submit'); |
| 4198 | 2461 | }); |
| 4199 | 2462 | enableUnfilteredFilesModal.show(); |
| 4200 | 2463 | return _context.abrupt("return"); |
| 4201 | - case 6: | |
| 2464 | + case 23: | |
| 4202 | 2465 | messages.jsonUploadWarning.shown = false; |
| 4203 | 2466 | messages.enableUnfilteredFiles.shown = false; |
| 4204 | - case 7: | |
| 2467 | + case 25: | |
| 4205 | 2468 | case "end": |
| 4206 | 2469 | return _context.stop(); |
| 4207 | 2470 | } |
| 4208 | - }, _callee, null, [[1, 3]]); | |
| 2471 | + }, _callee, null, [[4, 11]]); | |
| 4209 | 2472 | })); |
| 4210 | 2473 | return function (_x) { |
| 4211 | 2474 | return _ref4.apply(this, arguments); |
| 4212 | 2475 | }; |