| @@ -1,1747 +1,8 @@ | ||
| 1 | +/*! elementor - v3.30.0 - 10-06-2025 */ | |
| 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 | -}; | |
| 436 | -var MenuPromotionTracking = /*#__PURE__*/function (_BaseTracking) { | |
| 437 | - function MenuPromotionTracking() { | |
| 438 | - (0, _classCallCheck2.default)(this, MenuPromotionTracking); | |
| 439 | - return _callSuper(this, MenuPromotionTracking, arguments); | |
| 440 | - } | |
| 441 | - (0, _inherits2.default)(MenuPromotionTracking, _BaseTracking); | |
| 442 | - return (0, _createClass2.default)(MenuPromotionTracking, null, [{ | |
| 443 | - key: "init", | |
| 444 | - value: function init() { | |
| 445 | - this.attachDelegatedTracking(); | |
| 446 | - } | |
| 447 | - }, { | |
| 448 | - key: "attachDelegatedTracking", | |
| 449 | - value: function attachDelegatedTracking() { | |
| 450 | - var _this = this; | |
| 451 | - this.addEventListenerTracked(document, 'click', function (event) { | |
| 452 | - var target = event.target; | |
| 453 | - if (!target) { | |
| 454 | - return; | |
| 455 | - } | |
| 456 | - var link = target.closest('a'); | |
| 457 | - if (!link) { | |
| 458 | - return; | |
| 459 | - } | |
| 460 | - var href = link.getAttribute('href'); | |
| 461 | - if (!href) { | |
| 462 | - return; | |
| 463 | - } | |
| 464 | - var menuItemKey = _this.extractPromoMenuKey(href); | |
| 465 | - if (!menuItemKey) { | |
| 466 | - return; | |
| 467 | - } | |
| 468 | - _this.handleMenuPromoClick(link, menuItemKey); | |
| 469 | - }, { | |
| 470 | - capture: true | |
| 471 | - }); | |
| 472 | - } | |
| 473 | - }, { | |
| 474 | - key: "extractPromoMenuKey", | |
| 475 | - value: function extractPromoMenuKey(href) { | |
| 476 | - for (var _i = 0, _Object$keys = Object.keys(PROMO_MENU_ITEMS); _i < _Object$keys.length; _i++) { | |
| 477 | - var menuItemKey = _Object$keys[_i]; | |
| 478 | - if (href.includes("page=".concat(menuItemKey))) { | |
| 479 | - return menuItemKey; | |
| 480 | - } | |
| 481 | - } | |
| 482 | - return null; | |
| 483 | - } | |
| 484 | - }, { | |
| 485 | - key: "handleMenuPromoClick", | |
| 486 | - value: function handleMenuPromoClick(menuItem, menuItemKey) { | |
| 487 | - var destination = menuItem.getAttribute('href'); | |
| 488 | - var promoName = PROMO_MENU_ITEMS[menuItemKey]; | |
| 489 | - var path = menuItemKey.replace('elementor_', '').replace(/_/g, '/'); | |
| 490 | - _wpDashboardTracking.default.trackPromoClicked(promoName, destination, path); | |
| 491 | - } | |
| 492 | - }]); | |
| 493 | -}(_baseTracking.default); | |
| 494 | -var _default = exports["default"] = MenuPromotionTracking; | |
| 495 | - | |
| 496 | -/***/ }), | |
| 497 | - | |
| 498 | -/***/ "../app/assets/js/event-track/dashboard/navigation.js": | |
| 499 | -/*!************************************************************!*\ | |
| 500 | - !*** ../app/assets/js/event-track/dashboard/navigation.js ***! | |
| 501 | - \************************************************************/ | |
| 502 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 503 | - | |
| 504 | -"use strict"; | |
| 505 | - | |
| 506 | - | |
| 507 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 508 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 509 | -Object.defineProperty(exports, "__esModule", ({ | |
| 510 | - value: true | |
| 511 | -})); | |
| 512 | -exports["default"] = void 0; | |
| 513 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 514 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 515 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 516 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 517 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 518 | -var _wpDashboardTracking = _interopRequireWildcard(__webpack_require__(/*! ../wp-dashboard-tracking */ "../app/assets/js/event-track/wp-dashboard-tracking.js")); | |
| 519 | -var _baseTracking = _interopRequireDefault(__webpack_require__(/*! ./base-tracking */ "../app/assets/js/event-track/dashboard/base-tracking.js")); | |
| 520 | -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); } | |
| 521 | -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)); } | |
| 522 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 523 | -var ELEMENTOR_MENU_SELECTORS = { | |
| 524 | - ELEMENTOR_TOP_LEVEL: 'li#toplevel_page_elementor', | |
| 525 | - TEMPLATES_TOP_LEVEL: 'li#menu-posts-elementor_library', | |
| 526 | - ELEMENTOR_HOME_TOP_LEVEL: 'li#toplevel_page_elementor-home', | |
| 527 | - ADMIN_MENU: '#adminmenu', | |
| 528 | - TOP_LEVEL_LINK: '.wp-menu-name', | |
| 529 | - SUBMENU_CONTAINER: '.wp-submenu', | |
| 530 | - SUBMENU_ITEM: '.wp-submenu li a', | |
| 531 | - SUBMENU_ITEM_TOP_LEVEL: '.wp-has-submenu', | |
| 532 | - SIDEBAR_NAVIGATION: '#editor-one-sidebar-navigation' | |
| 533 | -}; | |
| 534 | -var NavigationTracking = /*#__PURE__*/function (_BaseTracking) { | |
| 535 | - function NavigationTracking() { | |
| 536 | - (0, _classCallCheck2.default)(this, NavigationTracking); | |
| 537 | - return _callSuper(this, NavigationTracking, arguments); | |
| 538 | - } | |
| 539 | - (0, _inherits2.default)(NavigationTracking, _BaseTracking); | |
| 540 | - return (0, _createClass2.default)(NavigationTracking, null, [{ | |
| 541 | - key: "init", | |
| 542 | - value: function init() { | |
| 543 | - if (_wpDashboardTracking.default.isEditorOneActive()) { | |
| 544 | - this.attachSidebarNavigationTracking(); | |
| 545 | - this.attachElementorHomeMenuTracking(); | |
| 546 | - } else { | |
| 547 | - this.attachElementorMenuTracking(); | |
| 548 | - this.attachTemplatesMenuTracking(); | |
| 549 | - } | |
| 550 | - } | |
| 551 | - }, { | |
| 552 | - key: "attachTemplatesMenuTracking", | |
| 553 | - value: function attachTemplatesMenuTracking() { | |
| 554 | - var templatesMenu = document.querySelector(ELEMENTOR_MENU_SELECTORS.TEMPLATES_TOP_LEVEL); | |
| 555 | - if (!templatesMenu) { | |
| 556 | - return; | |
| 557 | - } | |
| 558 | - this.attachMenuTracking(templatesMenu, 'Templates'); | |
| 559 | - } | |
| 560 | - }, { | |
| 561 | - key: "attachElementorHomeMenuTracking", | |
| 562 | - value: function attachElementorHomeMenuTracking() { | |
| 563 | - var elementorHomeMenu = document.querySelector(ELEMENTOR_MENU_SELECTORS.ELEMENTOR_HOME_TOP_LEVEL); | |
| 564 | - if (!elementorHomeMenu) { | |
| 565 | - return; | |
| 566 | - } | |
| 567 | - this.attachMenuTracking(elementorHomeMenu, 'Elementor'); | |
| 568 | - } | |
| 569 | - }, { | |
| 570 | - key: "attachElementorMenuTracking", | |
| 571 | - value: function attachElementorMenuTracking() { | |
| 572 | - var elementorMenu = document.querySelector(ELEMENTOR_MENU_SELECTORS.ELEMENTOR_TOP_LEVEL); | |
| 573 | - if (!elementorMenu) { | |
| 574 | - return; | |
| 575 | - } | |
| 576 | - this.attachMenuTracking(elementorMenu, 'Elementor'); | |
| 577 | - } | |
| 578 | - }, { | |
| 579 | - key: "attachSidebarNavigationTracking", | |
| 580 | - value: function attachSidebarNavigationTracking() { | |
| 581 | - var sidebar = document.querySelector(ELEMENTOR_MENU_SELECTORS.SIDEBAR_NAVIGATION); | |
| 582 | - if (sidebar) { | |
| 583 | - this.attachSidebarClickListener(sidebar); | |
| 584 | - } | |
| 585 | - } | |
| 586 | - }, { | |
| 587 | - key: "attachSidebarClickListener", | |
| 588 | - value: function attachSidebarClickListener(sidebar) { | |
| 589 | - var _this = this; | |
| 590 | - this.addEventListenerTracked(sidebar, 'click', function (event) { | |
| 591 | - _this.handleSidebarClick(event); | |
| 592 | - }, { | |
| 593 | - capture: true | |
| 594 | - }); | |
| 595 | - } | |
| 596 | - }, { | |
| 597 | - key: "attachMenuTracking", | |
| 598 | - value: function attachMenuTracking(menuElement, menuName) { | |
| 599 | - var _this2 = this; | |
| 600 | - this.addEventListenerTracked(menuElement, 'click', function (event) { | |
| 601 | - _this2.handleMenuClick(event, menuName); | |
| 602 | - }); | |
| 603 | - } | |
| 604 | - }, { | |
| 605 | - key: "handleMenuClick", | |
| 606 | - value: function handleMenuClick(event, menuName) { | |
| 607 | - var link = event.target.closest('a'); | |
| 608 | - if (!link) { | |
| 609 | - return; | |
| 610 | - } | |
| 611 | - var isTopLevel = link.classList.contains('menu-top'); | |
| 612 | - var itemId = this.extractItemId(link); | |
| 613 | - var area = this.determineNavArea(link); | |
| 614 | - _wpDashboardTracking.default.trackNavClicked(itemId, isTopLevel ? null : menuName, area); | |
| 615 | - } | |
| 616 | - }, { | |
| 617 | - key: "handleSidebarClick", | |
| 618 | - value: function handleSidebarClick(event) { | |
| 619 | - var clickedElement = event.target.closest('a, button, [role="button"]'); | |
| 620 | - if (!clickedElement) { | |
| 621 | - return; | |
| 622 | - } | |
| 623 | - var itemId = this.extractSidebarItemId(clickedElement); | |
| 624 | - _wpDashboardTracking.default.trackNavClicked(itemId, null, _wpDashboardTracking.NAV_AREAS.SIDEBAR_MENU); | |
| 625 | - } | |
| 626 | - }, { | |
| 627 | - key: "extractSidebarItemId", | |
| 628 | - value: function extractSidebarItemId(element) { | |
| 629 | - var paragraph = element.querySelector('p'); | |
| 630 | - if (paragraph) { | |
| 631 | - return paragraph.textContent.trim(); | |
| 632 | - } | |
| 633 | - var textContent = element.textContent.trim(); | |
| 634 | - if (textContent) { | |
| 635 | - return textContent; | |
| 636 | - } | |
| 637 | - return 'unknown'; | |
| 638 | - } | |
| 639 | - }, { | |
| 640 | - key: "extractPageFromUrl", | |
| 641 | - value: function extractPageFromUrl(href) { | |
| 642 | - var urlParams = new URLSearchParams(href.split('?')[1] || ''); | |
| 643 | - var page = urlParams.get('page'); | |
| 644 | - if (page) { | |
| 645 | - return page; | |
| 646 | - } | |
| 647 | - var postType = urlParams.get('post_type'); | |
| 648 | - if (postType) { | |
| 649 | - return postType; | |
| 650 | - } | |
| 651 | - return 'unknown'; | |
| 652 | - } | |
| 653 | - }, { | |
| 654 | - key: "extractItemId", | |
| 655 | - value: function extractItemId(link) { | |
| 656 | - var textContent = link.textContent.trim(); | |
| 657 | - if (textContent) { | |
| 658 | - return textContent; | |
| 659 | - } | |
| 660 | - var href = link.getAttribute('href'); | |
| 661 | - if (href) { | |
| 662 | - return this.extractPageFromUrl(href); | |
| 663 | - } | |
| 664 | - var linkId = link.getAttribute('id'); | |
| 665 | - if (linkId) { | |
| 666 | - return linkId; | |
| 667 | - } | |
| 668 | - return 'unknown'; | |
| 669 | - } | |
| 670 | - }, { | |
| 671 | - key: "determineNavArea", | |
| 672 | - value: function determineNavArea(link) { | |
| 673 | - var parentMenu = link.closest('li.menu-top'); | |
| 674 | - if (parentMenu) { | |
| 675 | - var isSubmenuItem = link.closest(ELEMENTOR_MENU_SELECTORS.SUBMENU_CONTAINER); | |
| 676 | - if (isSubmenuItem) { | |
| 677 | - var submenuElement = link.closest(ELEMENTOR_MENU_SELECTORS.SUBMENU_ITEM_TOP_LEVEL); | |
| 678 | - if (submenuElement.classList.contains('wp-not-current-submenu')) { | |
| 679 | - return _wpDashboardTracking.NAV_AREAS.HOVER_MENU; | |
| 680 | - } | |
| 681 | - return _wpDashboardTracking.NAV_AREAS.SUBMENU; | |
| 682 | - } | |
| 683 | - return _wpDashboardTracking.NAV_AREAS.LEFT_MENU; | |
| 684 | - } | |
| 685 | - return _wpDashboardTracking.NAV_AREAS.LEFT_MENU; | |
| 686 | - } | |
| 687 | - }]); | |
| 688 | -}(_baseTracking.default); | |
| 689 | -var _default = exports["default"] = NavigationTracking; | |
| 690 | - | |
| 691 | -/***/ }), | |
| 692 | - | |
| 693 | -/***/ "../app/assets/js/event-track/dashboard/plugin-actions.js": | |
| 694 | -/*!****************************************************************!*\ | |
| 695 | - !*** ../app/assets/js/event-track/dashboard/plugin-actions.js ***! | |
| 696 | - \****************************************************************/ | |
| 697 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 698 | - | |
| 699 | -"use strict"; | |
| 700 | - | |
| 701 | - | |
| 702 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 703 | -Object.defineProperty(exports, "__esModule", ({ | |
| 704 | - value: true | |
| 705 | -})); | |
| 706 | -exports["default"] = void 0; | |
| 707 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 708 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 709 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 710 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 711 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 712 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 713 | -var _wpDashboardTracking = _interopRequireDefault(__webpack_require__(/*! ../wp-dashboard-tracking */ "../app/assets/js/event-track/wp-dashboard-tracking.js")); | |
| 714 | -var _baseTracking = _interopRequireDefault(__webpack_require__(/*! ./base-tracking */ "../app/assets/js/event-track/dashboard/base-tracking.js")); | |
| 715 | -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)); } | |
| 716 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 717 | -var PLUGIN_TYPE = { | |
| 718 | - ELEMENTOR: 'core', | |
| 719 | - ELEMENTOR_PRO: 'pro' | |
| 720 | -}; | |
| 721 | -var PluginActions = /*#__PURE__*/function (_BaseTracking) { | |
| 722 | - function PluginActions() { | |
| 723 | - (0, _classCallCheck2.default)(this, PluginActions); | |
| 724 | - return _callSuper(this, PluginActions, arguments); | |
| 725 | - } | |
| 726 | - (0, _inherits2.default)(PluginActions, _BaseTracking); | |
| 727 | - return (0, _createClass2.default)(PluginActions, null, [{ | |
| 728 | - key: "init", | |
| 729 | - value: function init() { | |
| 730 | - this.attachCoreDeactivationTracking(); | |
| 731 | - this.attachProDeactivationTracking(); | |
| 732 | - this.attachProDeletionTracking(); | |
| 733 | - } | |
| 734 | - }, { | |
| 735 | - key: "attachCoreDeactivationTracking", | |
| 736 | - value: function attachCoreDeactivationTracking() { | |
| 737 | - var _this = this; | |
| 738 | - var dialogForm = document.querySelector('#elementor-deactivate-feedback-dialog-form'); | |
| 739 | - if (!dialogForm) { | |
| 740 | - return; | |
| 741 | - } | |
| 742 | - this.addEventListenerTracked(dialogForm, 'change', function (event) { | |
| 743 | - var target = event.target; | |
| 744 | - if (target.classList.contains('elementor-deactivate-feedback-dialog-input')) { | |
| 745 | - _this.selectedReason = target.value; | |
| 746 | - } | |
| 747 | - }); | |
| 748 | - this.observeModalButtons(); | |
| 749 | - } | |
| 750 | - }, { | |
| 751 | - key: "attachProDeactivationTracking", | |
| 752 | - value: function attachProDeactivationTracking() { | |
| 753 | - var _this2 = this; | |
| 754 | - var pluginsTable = document.querySelector('.plugins'); | |
| 755 | - if (!pluginsTable) { | |
| 756 | - return; | |
| 757 | - } | |
| 758 | - this.addEventListenerTracked(pluginsTable, 'click', function (event) { | |
| 759 | - var link = event.target.closest('a'); | |
| 760 | - if (link && 'deactivate-elementor-pro' === link.id) { | |
| 761 | - _this2.trackProDeactivation(); | |
| 762 | - } | |
| 763 | - }, { | |
| 764 | - capture: true | |
| 765 | - }); | |
| 766 | - } | |
| 767 | - }, { | |
| 768 | - key: "observeModalButtons", | |
| 769 | - value: function observeModalButtons() { | |
| 770 | - var _this3 = this; | |
| 771 | - var checkAndAttachDelegation = function checkAndAttachDelegation() { | |
| 772 | - var modal = document.querySelector('#elementor-deactivate-feedback-modal'); | |
| 773 | - if (!modal) { | |
| 774 | - return false; | |
| 775 | - } | |
| 776 | - _this3.addEventListenerTracked(modal, 'click', function (event) { | |
| 777 | - var submitButton = event.target.closest('.dialog-submit'); | |
| 778 | - var skipButton = event.target.closest('.dialog-skip'); | |
| 779 | - if (submitButton) { | |
| 780 | - _this3.trackCoreDeactivation('submit&deactivate'); | |
| 781 | - } else if (skipButton) { | |
| 782 | - _this3.trackCoreDeactivation('skip&deactivate'); | |
| 783 | - } | |
| 784 | - }, { | |
| 785 | - capture: true | |
| 786 | - }); | |
| 787 | - return true; | |
| 788 | - }; | |
| 789 | - if (checkAndAttachDelegation()) { | |
| 790 | - return; | |
| 791 | - } | |
| 792 | - this.addObserver(document.body, { | |
| 793 | - childList: true, | |
| 794 | - subtree: true | |
| 795 | - }, function (mutations, observer) { | |
| 796 | - if (checkAndAttachDelegation()) { | |
| 797 | - observer.disconnect(); | |
| 798 | - } | |
| 799 | - }); | |
| 800 | - } | |
| 801 | - }, { | |
| 802 | - key: "getUserInput", | |
| 803 | - value: function getUserInput() { | |
| 804 | - var reasonsWithInput = ['found_a_better_plugin', 'other']; | |
| 805 | - if (!this.selectedReason || !reasonsWithInput.includes(this.selectedReason)) { | |
| 806 | - return null; | |
| 807 | - } | |
| 808 | - var inputField = document.querySelector("input[name=\"reason_".concat(this.selectedReason, "\"]")); | |
| 809 | - if (inputField && inputField.value) { | |
| 810 | - return inputField.value; | |
| 811 | - } | |
| 812 | - return null; | |
| 813 | - } | |
| 814 | - }, { | |
| 815 | - key: "trackCoreDeactivation", | |
| 816 | - value: function trackCoreDeactivation(action) { | |
| 817 | - var properties = { | |
| 818 | - deactivate_form_submit: action, | |
| 819 | - deactivate_plugin_type: PLUGIN_TYPE.ELEMENTOR | |
| 820 | - }; | |
| 821 | - if (this.selectedReason) { | |
| 822 | - properties.deactivate_feedback_reason = this.selectedReason; | |
| 823 | - } | |
| 824 | - var userInput = this.getUserInput(); | |
| 825 | - if (userInput) { | |
| 826 | - properties.deactivate_feedback_reason += "/".concat(userInput); | |
| 827 | - } | |
| 828 | - _wpDashboardTracking.default.dispatchEvent('wpdash_deactivate_plugin', properties, { | |
| 829 | - send_immediately: true | |
| 830 | - }); | |
| 831 | - } | |
| 832 | - }, { | |
| 833 | - key: "trackProDeactivation", | |
| 834 | - value: function trackProDeactivation() { | |
| 835 | - this.trackProAction('deactivate'); | |
| 836 | - } | |
| 837 | - }, { | |
| 838 | - key: "attachProDeletionTracking", | |
| 839 | - value: function attachProDeletionTracking() { | |
| 840 | - var _this4 = this; | |
| 841 | - if ('undefined' === typeof jQuery) { | |
| 842 | - return; | |
| 843 | - } | |
| 844 | - jQuery(document).on('wp-plugin-deleting', function (event, args) { | |
| 845 | - if ('elementor-pro' === (args === null || args === void 0 ? void 0 : args.slug)) { | |
| 846 | - _this4.trackProAction('delete'); | |
| 847 | - } | |
| 848 | - }); | |
| 849 | - } | |
| 850 | - }, { | |
| 851 | - key: "destroy", | |
| 852 | - value: function destroy() { | |
| 853 | - if ('undefined' !== typeof jQuery) { | |
| 854 | - jQuery(document).off('wp-plugin-deleting'); | |
| 855 | - } | |
| 856 | - _baseTracking.default.destroy.call(this); | |
| 857 | - } | |
| 858 | - }, { | |
| 859 | - key: "trackProAction", | |
| 860 | - value: function trackProAction(action) { | |
| 861 | - var eventMap = { | |
| 862 | - deactivate: { | |
| 863 | - eventName: 'wpdash_deactivate_plugin', | |
| 864 | - propertyKey: 'deactivate_plugin_type' | |
| 865 | - }, | |
| 866 | - delete: { | |
| 867 | - eventName: 'wpdash_delete_plugin', | |
| 868 | - propertyKey: 'plugin_delete' | |
| 869 | - } | |
| 870 | - }; | |
| 871 | - var config = eventMap[action]; | |
| 872 | - if (!config) { | |
| 873 | - return; | |
| 874 | - } | |
| 875 | - var properties = (0, _defineProperty2.default)({}, config.propertyKey, PLUGIN_TYPE.ELEMENTOR_PRO); | |
| 876 | - _wpDashboardTracking.default.dispatchEvent(config.eventName, properties, { | |
| 877 | - send_immediately: true | |
| 878 | - }); | |
| 879 | - } | |
| 880 | - }]); | |
| 881 | -}(_baseTracking.default); | |
| 882 | -(0, _defineProperty2.default)(PluginActions, "selectedReason", null); | |
| 883 | -var _default = exports["default"] = PluginActions; | |
| 884 | - | |
| 885 | -/***/ }), | |
| 886 | - | |
| 887 | -/***/ "../app/assets/js/event-track/dashboard/promotion.js": | |
| 888 | -/*!***********************************************************!*\ | |
| 889 | - !*** ../app/assets/js/event-track/dashboard/promotion.js ***! | |
| 890 | - \***********************************************************/ | |
| 891 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 892 | - | |
| 893 | -"use strict"; | |
| 894 | - | |
| 895 | - | |
| 896 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 897 | -Object.defineProperty(exports, "__esModule", ({ | |
| 898 | - value: true | |
| 899 | -})); | |
| 900 | -exports["default"] = void 0; | |
| 901 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 902 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 903 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 904 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 905 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 906 | -var _wpDashboardTracking = _interopRequireDefault(__webpack_require__(/*! ../wp-dashboard-tracking */ "../app/assets/js/event-track/wp-dashboard-tracking.js")); | |
| 907 | -var _baseTracking = _interopRequireDefault(__webpack_require__(/*! ./base-tracking */ "../app/assets/js/event-track/dashboard/base-tracking.js")); | |
| 908 | -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)); } | |
| 909 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 910 | -var PROMO_SELECTORS = { | |
| 911 | - PROMO_PAGE: '.e-feature-promotion, .elementor-settings-form-page, #elementor-element-manager-wrap', | |
| 912 | - PROMO_BLANK_STATE: '.elementor-blank_state', | |
| 913 | - CTA_BUTTON: '.go-pro', | |
| 914 | - TITLE: 'h3' | |
| 915 | -}; | |
| 916 | -var PromotionTracking = /*#__PURE__*/function (_BaseTracking) { | |
| 917 | - function PromotionTracking() { | |
| 918 | - (0, _classCallCheck2.default)(this, PromotionTracking); | |
| 919 | - return _callSuper(this, PromotionTracking, arguments); | |
| 920 | - } | |
| 921 | - (0, _inherits2.default)(PromotionTracking, _BaseTracking); | |
| 922 | - return (0, _createClass2.default)(PromotionTracking, null, [{ | |
| 923 | - key: "init", | |
| 924 | - value: function init() { | |
| 925 | - this.attachDelegatedTracking(); | |
| 926 | - } | |
| 927 | - }, { | |
| 928 | - key: "attachDelegatedTracking", | |
| 929 | - value: function attachDelegatedTracking() { | |
| 930 | - var _this = this; | |
| 931 | - this.addEventListenerTracked(document, 'click', function (event) { | |
| 932 | - var target = event.target; | |
| 933 | - if (!target) { | |
| 934 | - return; | |
| 935 | - } | |
| 936 | - var button = target.closest("a".concat(PROMO_SELECTORS.CTA_BUTTON)); | |
| 937 | - if (!button) { | |
| 938 | - return; | |
| 939 | - } | |
| 940 | - var promoPage = button.closest("".concat(PROMO_SELECTORS.PROMO_PAGE, ", ").concat(PROMO_SELECTORS.PROMO_BLANK_STATE)); | |
| 941 | - if (!promoPage) { | |
| 942 | - return; | |
| 943 | - } | |
| 944 | - _this.handlePromoClick(button, promoPage); | |
| 945 | - }, { | |
| 946 | - capture: true | |
| 947 | - }); | |
| 948 | - } | |
| 949 | - }, { | |
| 950 | - key: "handlePromoClick", | |
| 951 | - value: function handlePromoClick(button, promoPage) { | |
| 952 | - var promoTitle = this.extractPromoTitle(promoPage, button); | |
| 953 | - var destination = button.getAttribute('href'); | |
| 954 | - var path = this.extractPromoPath(); | |
| 955 | - _wpDashboardTracking.default.trackPromoClicked(promoTitle, destination, path); | |
| 956 | - } | |
| 957 | - }, { | |
| 958 | - key: "extractPromoTitle", | |
| 959 | - value: function extractPromoTitle(promoPage, button) { | |
| 960 | - var titleElement = promoPage.querySelector(PROMO_SELECTORS.TITLE); | |
| 961 | - return titleElement ? titleElement.textContent.trim() : button.textContent.trim(); | |
| 962 | - } | |
| 963 | - }, { | |
| 964 | - key: "extractPromoPath", | |
| 965 | - value: function extractPromoPath() { | |
| 966 | - var urlParams = new URLSearchParams(window.location.search); | |
| 967 | - var page = urlParams.get('page'); | |
| 968 | - if (!page) { | |
| 969 | - return 'elementor'; | |
| 970 | - } | |
| 971 | - return page.replace('elementor_', '').replace(/_/g, '/'); | |
| 972 | - } | |
| 973 | - }]); | |
| 974 | -}(_baseTracking.default); | |
| 975 | -var _default = exports["default"] = PromotionTracking; | |
| 976 | - | |
| 977 | -/***/ }), | |
| 978 | - | |
| 979 | -/***/ "../app/assets/js/event-track/dashboard/screen-view.js": | |
| 980 | -/*!*************************************************************!*\ | |
| 981 | - !*** ../app/assets/js/event-track/dashboard/screen-view.js ***! | |
| 982 | - \*************************************************************/ | |
| 983 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 984 | - | |
| 985 | -"use strict"; | |
| 986 | - | |
| 987 | - | |
| 988 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 989 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 990 | -Object.defineProperty(exports, "__esModule", ({ | |
| 991 | - value: true | |
| 992 | -})); | |
| 993 | -exports["default"] = void 0; | |
| 994 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 995 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 996 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 997 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 998 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 999 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1000 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 1001 | -var _wpDashboardTracking = _interopRequireWildcard(__webpack_require__(/*! ../wp-dashboard-tracking */ "../app/assets/js/event-track/wp-dashboard-tracking.js")); | |
| 1002 | -var _utils = __webpack_require__(/*! ./utils */ "../app/assets/js/event-track/dashboard/utils.js"); | |
| 1003 | -var _baseTracking = _interopRequireDefault(__webpack_require__(/*! ./base-tracking */ "../app/assets/js/event-track/dashboard/base-tracking.js")); | |
| 1004 | -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); } | |
| 1005 | -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; } } }; } | |
| 1006 | -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; } } | |
| 1007 | -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; } | |
| 1008 | -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)); } | |
| 1009 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1010 | -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; } | |
| 1011 | -var SCREEN_SELECTORS = { | |
| 1012 | - NAV_TAB_WRAPPER: '.nav-tab-wrapper', | |
| 1013 | - NAV_TAB: '.nav-tab', | |
| 1014 | - NAV_TAB_ACTIVE: '.nav-tab-active', | |
| 1015 | - SETTINGS_FORM_PAGE: '.elementor-settings-form-page', | |
| 1016 | - SETTINGS_FORM_PAGE_ACTIVE: '.elementor-settings-form-page.elementor-active', | |
| 1017 | - FLOATING_ELEMENTS_MODAL: '#elementor-new-floating-elements-modal', | |
| 1018 | - TEMPLATE_DIALOG_MODAL: '#elementor-new-template-dialog-content' | |
| 1019 | -}; | |
| 1020 | -var TRACKED_MODALS = [SCREEN_SELECTORS.FLOATING_ELEMENTS_MODAL, SCREEN_SELECTORS.TEMPLATE_DIALOG_MODAL]; | |
| 1021 | -var ScreenViewTracking = /*#__PURE__*/function (_BaseTracking) { | |
| 1022 | - function ScreenViewTracking() { | |
| 1023 | - (0, _classCallCheck2.default)(this, ScreenViewTracking); | |
| 1024 | - return _callSuper(this, ScreenViewTracking, arguments); | |
| 1025 | - } | |
| 1026 | - (0, _inherits2.default)(ScreenViewTracking, _BaseTracking); | |
| 1027 | - return (0, _createClass2.default)(ScreenViewTracking, null, [{ | |
| 1028 | - key: "init", | |
| 1029 | - value: function init() { | |
| 1030 | - if (!_utils.DashboardUtils.isElementorPage()) { | |
| 1031 | - return; | |
| 1032 | - } | |
| 1033 | - this.attachTabChangeTracking(); | |
| 1034 | - } | |
| 1035 | - }, { | |
| 1036 | - key: "destroy", | |
| 1037 | - value: function destroy() { | |
| 1038 | - _superPropGet(ScreenViewTracking, "destroy", this, 2)([]); | |
| 1039 | - this.trackedScreens.clear(); | |
| 1040 | - } | |
| 1041 | - }, { | |
| 1042 | - key: "getScreenData", | |
| 1043 | - value: function getScreenData() { | |
| 1044 | - var urlParams = new URLSearchParams(window.location.search); | |
| 1045 | - var page = urlParams.get('page'); | |
| 1046 | - var postType = urlParams.get('post_type'); | |
| 1047 | - var hash = window.location.hash; | |
| 1048 | - var screenId = ''; | |
| 1049 | - var screenType = ''; | |
| 1050 | - if (page) { | |
| 1051 | - screenId = page; | |
| 1052 | - } else if (postType) { | |
| 1053 | - screenId = postType; | |
| 1054 | - } else { | |
| 1055 | - screenId = this.getScreenIdFromBody(); | |
| 1056 | - } | |
| 1057 | - if (this.isElementorAppPage()) { | |
| 1058 | - var appScreenData = this.getAppScreenData(hash); | |
| 1059 | - if (appScreenData) { | |
| 1060 | - return appScreenData; | |
| 1061 | - } | |
| 1062 | - } | |
| 1063 | - var hasNavTabs = document.querySelector(SCREEN_SELECTORS.NAV_TAB_WRAPPER); | |
| 1064 | - var hasSettingsTabs = document.querySelectorAll(SCREEN_SELECTORS.SETTINGS_FORM_PAGE).length > 1; | |
| 1065 | - if (hasNavTabs || hasSettingsTabs || hash && !this.isElementorAppPage()) { | |
| 1066 | - screenType = _wpDashboardTracking.SCREEN_TYPES.TAB; | |
| 1067 | - if (hash) { | |
| 1068 | - var tabId = hash.replace(/^#(tab-)?/, ''); | |
| 1069 | - screenId = "".concat(screenId, "-").concat(tabId); | |
| 1070 | - } else if (hasNavTabs) { | |
| 1071 | - var activeTab = document.querySelector(SCREEN_SELECTORS.NAV_TAB_ACTIVE); | |
| 1072 | - if (activeTab) { | |
| 1073 | - var tabText = activeTab.textContent.trim(); | |
| 1074 | - var tabHref = activeTab.getAttribute('href'); | |
| 1075 | - if (tabText) { | |
| 1076 | - screenId = "".concat(screenId, "-").concat(this.sanitizeScreenId(tabText)); | |
| 1077 | - } else if (tabHref && tabHref.includes('#')) { | |
| 1078 | - var _tabId = tabHref.split('#')[1]; | |
| 1079 | - screenId = "".concat(screenId, "-").concat(_tabId); | |
| 1080 | - } | |
| 1081 | - } | |
| 1082 | - } else if (hasSettingsTabs) { | |
| 1083 | - var activeSettingsTab = document.querySelector(SCREEN_SELECTORS.SETTINGS_FORM_PAGE_ACTIVE); | |
| 1084 | - if (activeSettingsTab) { | |
| 1085 | - var _tabId2 = activeSettingsTab.id; | |
| 1086 | - if (_tabId2) { | |
| 1087 | - screenId = "".concat(screenId, "-").concat(_tabId2); | |
| 1088 | - } | |
| 1089 | - } | |
| 1090 | - } | |
| 1091 | - } | |
| 1092 | - return { | |
| 1093 | - screenId: screenId, | |
| 1094 | - screenType: screenType | |
| 1095 | - }; | |
| 1096 | - } | |
| 1097 | - }, { | |
| 1098 | - key: "isElementorAppPage", | |
| 1099 | - value: function isElementorAppPage() { | |
| 1100 | - var urlParams = new URLSearchParams(window.location.search); | |
| 1101 | - return 'elementor-app' === urlParams.get('page'); | |
| 1102 | - } | |
| 1103 | - }, { | |
| 1104 | - key: "getAppScreenData", | |
| 1105 | - value: function getAppScreenData(hash) { | |
| 1106 | - if (!hash) { | |
| 1107 | - return null; | |
| 1108 | - } | |
| 1109 | - var cleanHash = hash.replace(/^#/, ''); | |
| 1110 | - if (!cleanHash.startsWith('/')) { | |
| 1111 | - return null; | |
| 1112 | - } | |
| 1113 | - var pathParts = cleanHash.split('/').filter(Boolean); | |
| 1114 | - if (0 === pathParts.length) { | |
| 1115 | - return null; | |
| 1116 | - } | |
| 1117 | - var screenId = pathParts.join('/'); | |
| 1118 | - var screenType = _wpDashboardTracking.SCREEN_TYPES.APP_SCREEN; | |
| 1119 | - return { | |
| 1120 | - screenId: screenId, | |
| 1121 | - screenType: screenType | |
| 1122 | - }; | |
| 1123 | - } | |
| 1124 | - }, { | |
| 1125 | - key: "getScreenIdFromBody", | |
| 1126 | - value: function getScreenIdFromBody() { | |
| 1127 | - var body = document.body; | |
| 1128 | - var bodyClasses = body.className.split(' '); | |
| 1129 | - var _iterator = _createForOfIteratorHelper(bodyClasses), | |
| 1130 | - _step; | |
| 1131 | - try { | |
| 1132 | - for (_iterator.s(); !(_step = _iterator.n()).done;) { | |
| 1133 | - var cls = _step.value; | |
| 1134 | - if (cls.startsWith('elementor') && (cls.includes('page') || cls.includes('post-type'))) { | |
| 1135 | - return cls; | |
| 1136 | - } | |
| 1137 | - } | |
| 1138 | - } catch (err) { | |
| 1139 | - _iterator.e(err); | |
| 1140 | - } finally { | |
| 1141 | - _iterator.f(); | |
| 1142 | - } | |
| 1143 | - return 'elementor-unknown'; | |
| 1144 | - } | |
| 1145 | - }, { | |
| 1146 | - key: "sanitizeScreenId", | |
| 1147 | - value: function sanitizeScreenId(text) { | |
| 1148 | - return text.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, ''); | |
| 1149 | - } | |
| 1150 | - }, { | |
| 1151 | - key: "attachTabChangeTracking", | |
| 1152 | - value: function attachTabChangeTracking() { | |
| 1153 | - this.attachNavTabTracking(); | |
| 1154 | - this.attachHashChangeTracking(); | |
| 1155 | - this.attachSettingsTabTracking(); | |
| 1156 | - this.attachModalTracking(); | |
| 1157 | - } | |
| 1158 | - }, { | |
| 1159 | - key: "attachNavTabTracking", | |
| 1160 | - value: function attachNavTabTracking() { | |
| 1161 | - var _this = this; | |
| 1162 | - var wrapper = document.querySelector(SCREEN_SELECTORS.NAV_TAB_WRAPPER); | |
| 1163 | - if (!wrapper) { | |
| 1164 | - return; | |
| 1165 | - } | |
| 1166 | - this.addEventListenerTracked(wrapper, 'click', function (event) { | |
| 1167 | - var navTab = event.target.closest(SCREEN_SELECTORS.NAV_TAB); | |
| 1168 | - if (navTab && !navTab.classList.contains('nav-tab-active')) { | |
| 1169 | - var screenData = _this.getScreenData(); | |
| 1170 | - if (screenData) { | |
| 1171 | - _this.trackScreen(screenData.screenId, screenData.screenType); | |
| 1172 | - } | |
| 1173 | - } | |
| 1174 | - }); | |
| 1175 | - } | |
| 1176 | - }, { | |
| 1177 | - key: "attachHashChangeTracking", | |
| 1178 | - value: function attachHashChangeTracking() { | |
| 1179 | - var _this2 = this; | |
| 1180 | - this.addEventListenerTracked(window, 'hashchange', function () { | |
| 1181 | - var screenData = _this2.getScreenData(); | |
| 1182 | - if (screenData) { | |
| 1183 | - _this2.trackScreen(screenData.screenId, screenData.screenType); | |
| 1184 | - } | |
| 1185 | - }); | |
| 1186 | - } | |
| 1187 | - }, { | |
| 1188 | - key: "attachSettingsTabTracking", | |
| 1189 | - value: function attachSettingsTabTracking() { | |
| 1190 | - var _this3 = this; | |
| 1191 | - var settingsPages = document.querySelectorAll(SCREEN_SELECTORS.SETTINGS_FORM_PAGE); | |
| 1192 | - if (0 === settingsPages.length) { | |
| 1193 | - return; | |
| 1194 | - } | |
| 1195 | - settingsPages.forEach(function (page) { | |
| 1196 | - _this3.addObserver(page, { | |
| 1197 | - attributes: true, | |
| 1198 | - attributeFilter: ['class'] | |
| 1199 | - }, function () { | |
| 1200 | - var screenData = _this3.getScreenData(); | |
| 1201 | - if (screenData) { | |
| 1202 | - _this3.trackScreen(screenData.screenId, screenData.screenType); | |
| 1203 | - } | |
| 1204 | - }); | |
| 1205 | - }); | |
| 1206 | - } | |
| 1207 | - }, { | |
| 1208 | - key: "attachModalTracking", | |
| 1209 | - value: function attachModalTracking() { | |
| 1210 | - var _this4 = this; | |
| 1211 | - this.addObserver(document.body, { | |
| 1212 | - childList: true, | |
| 1213 | - subtree: true | |
| 1214 | - }, function (mutations) { | |
| 1215 | - var _iterator2 = _createForOfIteratorHelper(mutations), | |
| 1216 | - _step2; | |
| 1217 | - try { | |
| 1218 | - for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { | |
| 1219 | - var mutation = _step2.value; | |
| 1220 | - if ('childList' === mutation.type) { | |
| 1221 | - TRACKED_MODALS.forEach(function (modalSelector) { | |
| 1222 | - var modal = document.querySelector(modalSelector); | |
| 1223 | - if (modal && _this4.isModalVisible(modal)) { | |
| 1224 | - var modalId = modalSelector.replace('#', ''); | |
| 1225 | - _this4.trackScreen(modalId, _wpDashboardTracking.SCREEN_TYPES.POPUP); | |
| 1226 | - } | |
| 1227 | - }); | |
| 1228 | - } | |
| 1229 | - } | |
| 1230 | - } catch (err) { | |
| 1231 | - _iterator2.e(err); | |
| 1232 | - } finally { | |
| 1233 | - _iterator2.f(); | |
| 1234 | - } | |
| 1235 | - }); | |
| 1236 | - } | |
| 1237 | - }, { | |
| 1238 | - key: "isModalVisible", | |
| 1239 | - value: function isModalVisible(element) { | |
| 1240 | - if (!element) { | |
| 1241 | - return false; | |
| 1242 | - } | |
| 1243 | - var style = window.getComputedStyle(element); | |
| 1244 | - return 'none' !== style.display && 0 !== parseFloat(style.opacity); | |
| 1245 | - } | |
| 1246 | - }, { | |
| 1247 | - key: "trackScreen", | |
| 1248 | - value: function trackScreen(screenId) { | |
| 1249 | - var screenType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _wpDashboardTracking.SCREEN_TYPES.TOP_LEVEL_PAGE; | |
| 1250 | - var trackingKey = "".concat(screenId, "-").concat(screenType); | |
| 1251 | - if (this.trackedScreens.has(trackingKey)) { | |
| 1252 | - return; | |
| 1253 | - } | |
| 1254 | - this.trackedScreens.add(trackingKey); | |
| 1255 | - _wpDashboardTracking.default.trackScreenViewed(screenId, screenType); | |
| 1256 | - } | |
| 1257 | - }]); | |
| 1258 | -}(_baseTracking.default); | |
| 1259 | -(0, _defineProperty2.default)(ScreenViewTracking, "trackedScreens", new Set()); | |
| 1260 | -var _default = exports["default"] = ScreenViewTracking; | |
| 1261 | - | |
| 1262 | -/***/ }), | |
| 1263 | - | |
| 1264 | -/***/ "../app/assets/js/event-track/dashboard/utils.js": | |
| 1265 | -/*!*******************************************************!*\ | |
| 1266 | - !*** ../app/assets/js/event-track/dashboard/utils.js ***! | |
| 1267 | - \*******************************************************/ | |
| 1268 | -/***/ ((__unused_webpack_module, exports) => { | |
| 1269 | - | |
| 1270 | -"use strict"; | |
| 1271 | - | |
| 1272 | - | |
| 1273 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1274 | - value: true | |
| 1275 | -})); | |
| 1276 | -exports.DashboardUtils = void 0; | |
| 1277 | -var DashboardUtils = exports.DashboardUtils = { | |
| 1278 | - isElementorPage: function isElementorPage() { | |
| 1279 | - var urlParams = new URLSearchParams(window.location.search); | |
| 1280 | - var page = urlParams.get('page'); | |
| 1281 | - if (page && (page.startsWith('elementor') || page.includes('elementor'))) { | |
| 1282 | - return true; | |
| 1283 | - } | |
| 1284 | - var postType = urlParams.get('post_type'); | |
| 1285 | - if ('elementor_library' === postType || 'e-floating-buttons' === postType) { | |
| 1286 | - return true; | |
| 1287 | - } | |
| 1288 | - var body = document.body; | |
| 1289 | - var bodyClasses = body.className.split(' '); | |
| 1290 | - return bodyClasses.some(function (cls) { | |
| 1291 | - return cls.includes('elementor') && (cls.includes('page') || cls.includes('post-type')); | |
| 1292 | - }); | |
| 1293 | - } | |
| 1294 | -}; | |
| 1295 | - | |
| 1296 | -/***/ }), | |
| 1297 | - | |
| 1298 | -/***/ "../app/assets/js/event-track/wp-dashboard-tracking.js": | |
| 1299 | -/*!*************************************************************!*\ | |
| 1300 | - !*** ../app/assets/js/event-track/wp-dashboard-tracking.js ***! | |
| 1301 | - \*************************************************************/ | |
| 1302 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1303 | - | |
| 1304 | -"use strict"; | |
| 1305 | - | |
| 1306 | - | |
| 1307 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1308 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1309 | - value: true | |
| 1310 | -})); | |
| 1311 | -exports["default"] = exports.SCREEN_TYPES = exports.NAV_AREAS = exports.CONTROL_TYPES = void 0; | |
| 1312 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1313 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1314 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 1315 | -var _navigation = _interopRequireDefault(__webpack_require__(/*! ./dashboard/navigation */ "../app/assets/js/event-track/dashboard/navigation.js")); | |
| 1316 | -var _pluginActions = _interopRequireDefault(__webpack_require__(/*! ./dashboard/plugin-actions */ "../app/assets/js/event-track/dashboard/plugin-actions.js")); | |
| 1317 | -var _promotion = _interopRequireDefault(__webpack_require__(/*! ./dashboard/promotion */ "../app/assets/js/event-track/dashboard/promotion.js")); | |
| 1318 | -var _screenView = _interopRequireDefault(__webpack_require__(/*! ./dashboard/screen-view */ "../app/assets/js/event-track/dashboard/screen-view.js")); | |
| 1319 | -var _menuPromotion = _interopRequireDefault(__webpack_require__(/*! ./dashboard/menu-promotion */ "../app/assets/js/event-track/dashboard/menu-promotion.js")); | |
| 1320 | -var _actionControls = _interopRequireDefault(__webpack_require__(/*! ./dashboard/action-controls */ "../app/assets/js/event-track/dashboard/action-controls.js")); | |
| 1321 | -var SESSION_TIMEOUT_MINUTES = 30; | |
| 1322 | -var MINUTE_MS = 60 * 1000; | |
| 1323 | -var SESSION_TIMEOUT = SESSION_TIMEOUT_MINUTES * MINUTE_MS; | |
| 1324 | -var ACTIVITY_CHECK_INTERVAL = 1 * MINUTE_MS; | |
| 1325 | -var SESSION_STORAGE_KEY = 'elementor_wpdash_session'; | |
| 1326 | -var PENDING_NAV_CLICK_KEY = 'elementor_wpdash_pending_nav'; | |
| 1327 | -var CONTROL_TYPES = exports.CONTROL_TYPES = { | |
| 1328 | - BUTTON: 'button', | |
| 1329 | - CHECKBOX: 'checkbox', | |
| 1330 | - RADIO: 'radio', | |
| 1331 | - LINK: 'link', | |
| 1332 | - SELECT: 'select', | |
| 1333 | - TOGGLE: 'toggle', | |
| 1334 | - FILTER: 'filter' | |
| 1335 | -}; | |
| 1336 | -var NAV_AREAS = exports.NAV_AREAS = { | |
| 1337 | - LEFT_MENU: 'left_menu', | |
| 1338 | - SUBMENU: 'submenu', | |
| 1339 | - HOVER_MENU: 'hover_menu', | |
| 1340 | - TOP_BAR: 'top_bar', | |
| 1341 | - SIDEBAR_MENU: 'sidebar' | |
| 1342 | -}; | |
| 1343 | -var SCREEN_TYPES = exports.SCREEN_TYPES = { | |
| 1344 | - TAB: 'tab', | |
| 1345 | - POPUP: 'popup', | |
| 1346 | - APP_SCREEN: 'app_screen' | |
| 1347 | -}; | |
| 1348 | -var WpDashboardTracking = exports["default"] = /*#__PURE__*/function () { | |
| 1349 | - function WpDashboardTracking() { | |
| 1350 | - (0, _classCallCheck2.default)(this, WpDashboardTracking); | |
| 1351 | - } | |
| 1352 | - return (0, _createClass2.default)(WpDashboardTracking, null, [{ | |
| 1353 | - key: "getElementorCommon", | |
| 1354 | - value: function getElementorCommon() { | |
| 1355 | - return window.elementorCommon; | |
| 1356 | - } | |
| 1357 | - }, { | |
| 1358 | - key: "init", | |
| 1359 | - value: function init() { | |
| 1360 | - if (this.initialized) { | |
| 1361 | - return; | |
| 1362 | - } | |
| 1363 | - this.restoreOrCreateSession(); | |
| 1364 | - if (this.isEventsManagerAvailable()) { | |
| 1365 | - this.startSessionMonitoring(); | |
| 1366 | - this.attachActivityListeners(); | |
| 1367 | - this.attachNavigationListener(); | |
| 1368 | - this.initialized = true; | |
| 1369 | - } | |
| 1370 | - } | |
| 1371 | - }, { | |
| 1372 | - key: "restoreOrCreateSession", | |
| 1373 | - value: function restoreOrCreateSession() { | |
| 1374 | - var storedSession = this.getStoredSession(); | |
| 1375 | - if (storedSession) { | |
| 1376 | - this.sessionStartTime = storedSession.sessionStartTime; | |
| 1377 | - this.navItemsVisited = new Set(storedSession.navItemsVisited); | |
| 1378 | - this.lastActivityTime = Date.now(); | |
| 1379 | - this.sessionEnded = false; | |
| 1380 | - } else { | |
| 1381 | - this.sessionStartTime = Date.now(); | |
| 1382 | - this.lastActivityTime = Date.now(); | |
| 1383 | - this.sessionEnded = false; | |
| 1384 | - this.navItemsVisited = new Set(); | |
| 1385 | - } | |
| 1386 | - this.processPendingNavClick(); | |
| 1387 | - this.saveSessionToStorage(); | |
| 1388 | - } | |
| 1389 | - }, { | |
| 1390 | - key: "isEditorOneActive", | |
| 1391 | - value: function isEditorOneActive() { | |
| 1392 | - var _elementorCommon$conf, _elementorCommon$conf2; | |
| 1393 | - var elementorCommon = this.getElementorCommon(); | |
| 1394 | - 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; | |
| 1395 | - } | |
| 1396 | - }, { | |
| 1397 | - key: "processPendingNavClick", | |
| 1398 | - value: function processPendingNavClick() { | |
| 1399 | - try { | |
| 1400 | - var pendingNav = sessionStorage.getItem(PENDING_NAV_CLICK_KEY); | |
| 1401 | - if (pendingNav) { | |
| 1402 | - var _JSON$parse = JSON.parse(pendingNav), | |
| 1403 | - itemId = _JSON$parse.itemId, | |
| 1404 | - rootItem = _JSON$parse.rootItem, | |
| 1405 | - area = _JSON$parse.area; | |
| 1406 | - this.navItemsVisited.add(itemId); | |
| 1407 | - var properties = { | |
| 1408 | - wpdash_nav_item_id: itemId, | |
| 1409 | - wpdash_nav_area: area | |
| 1410 | - }; | |
| 1411 | - if (rootItem) { | |
| 1412 | - properties.wpdash_nav_item_root = rootItem; | |
| 1413 | - } | |
| 1414 | - this.dispatchEvent('wpdash_nav_clicked', properties, { | |
| 1415 | - send_immediately: true | |
| 1416 | - }); | |
| 1417 | - sessionStorage.removeItem(PENDING_NAV_CLICK_KEY); | |
| 1418 | - } | |
| 1419 | - } catch (error) { | |
| 1420 | - sessionStorage.removeItem(PENDING_NAV_CLICK_KEY); | |
| 1421 | - } | |
| 1422 | - } | |
| 1423 | - }, { | |
| 1424 | - key: "getStoredSession", | |
| 1425 | - value: function getStoredSession() { | |
| 1426 | - try { | |
| 1427 | - var stored = sessionStorage.getItem(SESSION_STORAGE_KEY); | |
| 1428 | - return stored ? JSON.parse(stored) : null; | |
| 1429 | - } catch (error) { | |
| 1430 | - return null; | |
| 1431 | - } | |
| 1432 | - } | |
| 1433 | - }, { | |
| 1434 | - key: "saveSessionToStorage", | |
| 1435 | - value: function saveSessionToStorage() { | |
| 1436 | - var sessionData = { | |
| 1437 | - sessionStartTime: this.sessionStartTime, | |
| 1438 | - navItemsVisited: Array.from(this.navItemsVisited) | |
| 1439 | - }; | |
| 1440 | - sessionStorage.setItem(SESSION_STORAGE_KEY, JSON.stringify(sessionData)); | |
| 1441 | - } | |
| 1442 | - }, { | |
| 1443 | - key: "clearStoredSession", | |
| 1444 | - value: function clearStoredSession() { | |
| 1445 | - sessionStorage.removeItem(SESSION_STORAGE_KEY); | |
| 1446 | - } | |
| 1447 | - }, { | |
| 1448 | - key: "isEventsManagerAvailable", | |
| 1449 | - value: function isEventsManagerAvailable() { | |
| 1450 | - var elementorCommon = this.getElementorCommon(); | |
| 1451 | - return (elementorCommon === null || elementorCommon === void 0 ? void 0 : elementorCommon.eventsManager) && 'function' === typeof elementorCommon.eventsManager.dispatchEvent; | |
| 1452 | - } | |
| 1453 | - }, { | |
| 1454 | - key: "canSendEvents", | |
| 1455 | - value: function canSendEvents() { | |
| 1456 | - var _elementorCommon$conf3, _elementorCommon$conf4; | |
| 1457 | - var elementorCommon = this.getElementorCommon(); | |
| 1458 | - 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; | |
| 1459 | - } | |
| 1460 | - }, { | |
| 1461 | - key: "dispatchEvent", | |
| 1462 | - value: function dispatchEvent(eventName) { | |
| 1463 | - var _elementorCommon$even; | |
| 1464 | - var properties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | |
| 1465 | - var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | |
| 1466 | - if (!this.isEventsManagerAvailable() || !this.canSendEvents()) { | |
| 1467 | - return; | |
| 1468 | - } | |
| 1469 | - var elementorCommon = this.getElementorCommon(); | |
| 1470 | - elementorCommon === null || elementorCommon === void 0 || (_elementorCommon$even = elementorCommon.eventsManager) === null || _elementorCommon$even === void 0 || _elementorCommon$even.dispatchEvent(eventName, properties, options); | |
| 1471 | - } | |
| 1472 | - }, { | |
| 1473 | - key: "updateActivity", | |
| 1474 | - value: function updateActivity() { | |
| 1475 | - this.lastActivityTime = Date.now(); | |
| 1476 | - } | |
| 1477 | - }, { | |
| 1478 | - key: "startSessionMonitoring", | |
| 1479 | - value: function startSessionMonitoring() { | |
| 1480 | - var _this = this; | |
| 1481 | - this.activityCheckInterval = setInterval(function () { | |
| 1482 | - _this.checkSessionTimeout(); | |
| 1483 | - }, ACTIVITY_CHECK_INTERVAL); | |
| 1484 | - window.addEventListener('beforeunload', function () { | |
| 1485 | - if (!_this.sessionEnded && !_this.isNavigatingToElementor) { | |
| 1486 | - _this.trackSessionEnd('tab_closed'); | |
| 1487 | - } | |
| 1488 | - }); | |
| 1489 | - document.addEventListener('visibilitychange', function () { | |
| 1490 | - if (!_this.sessionEnded && document.hidden) { | |
| 1491 | - var timeSinceLastActivity = Date.now() - _this.lastActivityTime; | |
| 1492 | - if (timeSinceLastActivity > SESSION_TIMEOUT) { | |
| 1493 | - _this.trackSessionEnd('tab_inactive'); | |
| 1494 | - } | |
| 1495 | - } | |
| 1496 | - }); | |
| 1497 | - } | |
| 1498 | - }, { | |
| 1499 | - key: "isElementorPage", | |
| 1500 | - value: function isElementorPage(url) { | |
| 1501 | - try { | |
| 1502 | - var urlObj = new URL(url, window.location.origin); | |
| 1503 | - var params = urlObj.searchParams; | |
| 1504 | - var page = params.get('page'); | |
| 1505 | - var postType = params.get('post_type'); | |
| 1506 | - var action = params.get('action'); | |
| 1507 | - var elementorPages = ['elementor-home', 'e-form-submissions']; | |
| 1508 | - var elementorPostTypes = ['elementor_library', 'e-floating-buttons']; | |
| 1509 | - return page && elementorPages.some(function (p) { | |
| 1510 | - return page.includes(p); | |
| 1511 | - }) || postType && elementorPostTypes.includes(postType) || action && action.includes('elementor'); | |
| 1512 | - } catch (error) { | |
| 1513 | - return false; | |
| 1514 | - } | |
| 1515 | - } | |
| 1516 | - }, { | |
| 1517 | - key: "isPluginsPage", | |
| 1518 | - value: function isPluginsPage(url) { | |
| 1519 | - try { | |
| 1520 | - var urlObj = new URL(url, window.location.origin); | |
| 1521 | - return urlObj.pathname.includes('plugins.php'); | |
| 1522 | - } catch (error) { | |
| 1523 | - return false; | |
| 1524 | - } | |
| 1525 | - } | |
| 1526 | - }, { | |
| 1527 | - key: "isNavigatingAwayFromElementor", | |
| 1528 | - value: function isNavigatingAwayFromElementor(targetUrl) { | |
| 1529 | - if (!targetUrl) { | |
| 1530 | - return false; | |
| 1531 | - } | |
| 1532 | - if (targetUrl.startsWith('#')) { | |
| 1533 | - return false; | |
| 1534 | - } | |
| 1535 | - return !this.isElementorPage(targetUrl); | |
| 1536 | - } | |
| 1537 | - }, { | |
| 1538 | - key: "isLinkOpeningInNewTab", | |
| 1539 | - value: function isLinkOpeningInNewTab(link) { | |
| 1540 | - var target = link.getAttribute('target'); | |
| 1541 | - return '_blank' === target || '_new' === target; | |
| 1542 | - } | |
| 1543 | - }, { | |
| 1544 | - key: "attachNavigationListener", | |
| 1545 | - value: function attachNavigationListener() { | |
| 1546 | - var _this2 = this; | |
| 1547 | - var handleLinkClick = function handleLinkClick(event) { | |
| 1548 | - var link = event.target.closest('a'); | |
| 1549 | - if (link && link.href) { | |
| 1550 | - if (_this2.isLinkOpeningInNewTab(link)) { | |
| 1551 | - return; | |
| 1552 | - } | |
| 1553 | - if (!_this2.sessionEnded && _this2.isNavigatingAwayFromElementor(link.href)) { | |
| 1554 | - _this2.trackSessionEnd('navigate_away'); | |
| 1555 | - } else if (_this2.isElementorPage(link.href)) { | |
| 1556 | - _this2.isNavigatingToElementor = true; | |
| 1557 | - } | |
| 1558 | - } | |
| 1559 | - var isSidebar = event.target.closest('#editor-one-sidebar-navigation'); | |
| 1560 | - if (isSidebar) { | |
| 1561 | - _this2.isNavigatingToElementor = true; | |
| 1562 | - } | |
| 1563 | - }; | |
| 1564 | - var handleFormSubmit = function handleFormSubmit(event) { | |
| 1565 | - var form = event.target; | |
| 1566 | - if (form.action) { | |
| 1567 | - if (!_this2.sessionEnded && _this2.isNavigatingAwayFromElementor(form.action)) { | |
| 1568 | - _this2.trackSessionEnd('navigate_away'); | |
| 1569 | - } else if (_this2.isElementorPage(form.action)) { | |
| 1570 | - _this2.isNavigatingToElementor = true; | |
| 1571 | - } | |
| 1572 | - } | |
| 1573 | - }; | |
| 1574 | - document.addEventListener('click', handleLinkClick, true); | |
| 1575 | - document.addEventListener('submit', handleFormSubmit, true); | |
| 1576 | - this.navigationListeners.push({ | |
| 1577 | - type: 'click', | |
| 1578 | - handler: handleLinkClick | |
| 1579 | - }, { | |
| 1580 | - type: 'submit', | |
| 1581 | - handler: handleFormSubmit | |
| 1582 | - }); | |
| 1583 | - } | |
| 1584 | - }, { | |
| 1585 | - key: "checkSessionTimeout", | |
| 1586 | - value: function checkSessionTimeout() { | |
| 1587 | - var timeSinceLastActivity = Date.now() - this.lastActivityTime; | |
| 1588 | - if (timeSinceLastActivity > SESSION_TIMEOUT && !this.sessionEnded) { | |
| 1589 | - this.trackSessionEnd('timeout'); | |
| 1590 | - } | |
| 1591 | - } | |
| 1592 | - }, { | |
| 1593 | - key: "attachActivityListeners", | |
| 1594 | - value: function attachActivityListeners() { | |
| 1595 | - var _this3 = this; | |
| 1596 | - var events = ['mousedown', 'keydown', 'scroll', 'touchstart', 'click']; | |
| 1597 | - events.forEach(function (event) { | |
| 1598 | - document.addEventListener(event, function () { | |
| 1599 | - _this3.updateActivity(); | |
| 1600 | - }, { | |
| 1601 | - capture: true, | |
| 1602 | - passive: true | |
| 1603 | - }); | |
| 1604 | - }); | |
| 1605 | - } | |
| 1606 | - }, { | |
| 1607 | - key: "formatDuration", | |
| 1608 | - value: function formatDuration(milliseconds) { | |
| 1609 | - var totalSeconds = Math.floor(milliseconds / 1000); | |
| 1610 | - return Number(totalSeconds.toFixed(2)); | |
| 1611 | - } | |
| 1612 | - }, { | |
| 1613 | - key: "trackNavClicked", | |
| 1614 | - value: function trackNavClicked(itemId) { | |
| 1615 | - var rootItem = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | |
| 1616 | - var area = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : NAV_AREAS.LEFT_MENU; | |
| 1617 | - if (!this.initialized) { | |
| 1618 | - var pendingNav = { | |
| 1619 | - itemId: itemId, | |
| 1620 | - rootItem: rootItem, | |
| 1621 | - area: area | |
| 1622 | - }; | |
| 1623 | - sessionStorage.setItem(PENDING_NAV_CLICK_KEY, JSON.stringify(pendingNav)); | |
| 1624 | - return; | |
| 1625 | - } | |
| 1626 | - this.updateActivity(); | |
| 1627 | - this.navItemsVisited.add(itemId); | |
| 1628 | - this.saveSessionToStorage(); | |
| 1629 | - var properties = { | |
| 1630 | - wpdash_nav_item_id: itemId, | |
| 1631 | - wpdash_nav_area: area | |
| 1632 | - }; | |
| 1633 | - if (rootItem) { | |
| 1634 | - properties.wpdash_nav_item_root = rootItem; | |
| 1635 | - } | |
| 1636 | - this.dispatchEvent('wpdash_nav_clicked', properties); | |
| 1637 | - } | |
| 1638 | - }, { | |
| 1639 | - key: "trackScreenViewed", | |
| 1640 | - value: function trackScreenViewed(screenId) { | |
| 1641 | - var screenType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : SCREEN_TYPES.TAB; | |
| 1642 | - this.updateActivity(); | |
| 1643 | - var properties = { | |
| 1644 | - wpdash_screen_id: screenId, | |
| 1645 | - wpdash_screen_type: screenType | |
| 1646 | - }; | |
| 1647 | - this.dispatchEvent('wpdash_screen_viewed', properties); | |
| 1648 | - } | |
| 1649 | - }, { | |
| 1650 | - key: "trackActionControl", | |
| 1651 | - value: function trackActionControl(controlIdentifier, controlType) { | |
| 1652 | - this.updateActivity(); | |
| 1653 | - var properties = { | |
| 1654 | - wpdash_action_control_interacted: controlIdentifier, | |
| 1655 | - wpdash_control_type: controlType | |
| 1656 | - }; | |
| 1657 | - this.dispatchEvent('wpdash_action_control', properties); | |
| 1658 | - } | |
| 1659 | - }, { | |
| 1660 | - key: "trackPromoClicked", | |
| 1661 | - value: function trackPromoClicked(promoName, destination, clickPath) { | |
| 1662 | - this.updateActivity(); | |
| 1663 | - var properties = { | |
| 1664 | - wpdash_promo_name: promoName, | |
| 1665 | - wpdash_promo_destination: destination, | |
| 1666 | - wpdash_promo_clicked_path: clickPath | |
| 1667 | - }; | |
| 1668 | - this.dispatchEvent('wpdash_promo_clicked', properties); | |
| 1669 | - } | |
| 1670 | - }, { | |
| 1671 | - key: "trackSessionEnd", | |
| 1672 | - value: function trackSessionEnd() { | |
| 1673 | - var reason = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'timeout'; | |
| 1674 | - if (this.sessionEnded) { | |
| 1675 | - return; | |
| 1676 | - } | |
| 1677 | - this.sessionEnded = true; | |
| 1678 | - if (this.activityCheckInterval) { | |
| 1679 | - clearInterval(this.activityCheckInterval); | |
| 1680 | - this.activityCheckInterval = null; | |
| 1681 | - } | |
| 1682 | - var duration = Date.now() - this.sessionStartTime; | |
| 1683 | - var properties = { | |
| 1684 | - wpdash_endstate_nav_summary: Array.from(this.navItemsVisited), | |
| 1685 | - wpdash_endstate_nav_count: this.navItemsVisited.size, | |
| 1686 | - wpdash_endstate_duration: this.formatDuration(duration), | |
| 1687 | - reason: reason | |
| 1688 | - }; | |
| 1689 | - this.dispatchEvent('wpdash_session_end_state', properties); | |
| 1690 | - this.clearStoredSession(); | |
| 1691 | - } | |
| 1692 | - }, { | |
| 1693 | - key: "destroy", | |
| 1694 | - value: function destroy() { | |
| 1695 | - if (this.activityCheckInterval) { | |
| 1696 | - clearInterval(this.activityCheckInterval); | |
| 1697 | - } | |
| 1698 | - this.navigationListeners.forEach(function (_ref) { | |
| 1699 | - var type = _ref.type, | |
| 1700 | - handler = _ref.handler; | |
| 1701 | - document.removeEventListener(type, handler, true); | |
| 1702 | - }); | |
| 1703 | - this.navigationListeners = []; | |
| 1704 | - _screenView.default.destroy(); | |
| 1705 | - _promotion.default.destroy(); | |
| 1706 | - _menuPromotion.default.destroy(); | |
| 1707 | - _actionControls.default.destroy(); | |
| 1708 | - this.initialized = false; | |
| 1709 | - } | |
| 1710 | - }]); | |
| 1711 | -}(); | |
| 1712 | -(0, _defineProperty2.default)(WpDashboardTracking, "sessionStartTime", Date.now()); | |
| 1713 | -(0, _defineProperty2.default)(WpDashboardTracking, "lastActivityTime", Date.now()); | |
| 1714 | -(0, _defineProperty2.default)(WpDashboardTracking, "sessionEnded", false); | |
| 1715 | -(0, _defineProperty2.default)(WpDashboardTracking, "navItemsVisited", new Set()); | |
| 1716 | -(0, _defineProperty2.default)(WpDashboardTracking, "activityCheckInterval", null); | |
| 1717 | -(0, _defineProperty2.default)(WpDashboardTracking, "initialized", false); | |
| 1718 | -(0, _defineProperty2.default)(WpDashboardTracking, "navigationListeners", []); | |
| 1719 | -(0, _defineProperty2.default)(WpDashboardTracking, "isNavigatingToElementor", false); | |
| 1720 | -window.addEventListener('elementor/admin/init', function () { | |
| 1721 | - var currentUrl = window.location.href; | |
| 1722 | - var isPluginsPage = WpDashboardTracking.isPluginsPage(currentUrl); | |
| 1723 | - var isElementorPage = WpDashboardTracking.isElementorPage(currentUrl); | |
| 1724 | - if (isPluginsPage) { | |
| 1725 | - _pluginActions.default.init(); | |
| 1726 | - } | |
| 1727 | - _navigation.default.init(); | |
| 1728 | - if (isElementorPage) { | |
| 1729 | - WpDashboardTracking.init(); | |
| 1730 | - _screenView.default.init(); | |
| 1731 | - _promotion.default.init(); | |
| 1732 | - _menuPromotion.default.init(); | |
| 1733 | - _actionControls.default.init(); | |
| 1734 | - } | |
| 1735 | -}); | |
| 1736 | -window.addEventListener('beforeunload', function () { | |
| 1737 | - _navigation.default.destroy(); | |
| 1738 | - _pluginActions.default.destroy(); | |
| 1739 | - WpDashboardTracking.destroy(); | |
| 1740 | -}); | |
| 1741 | - | |
| 1742 | -/***/ }), | |
| 1743 | - | |
| 1744 | 5 | /***/ "../assets/dev/js/utils/react.js": |
| 1745 | 6 | /*!***************************************!*\ |
| 1746 | 7 | !*** ../assets/dev/js/utils/react.js ***! |
| 1747 | 8 | \***************************************/ |
| @@ -1757,9 +18,10 @@ | ||
| 1757 | 18 | exports["default"] = void 0; |
| 1758 | 19 | var React = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); |
| 1759 | 20 | var ReactDOM = _interopRequireWildcard(__webpack_require__(/*! react-dom */ "react-dom")); |
| 1760 | 21 | var _client = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js"); |
| 1761 | -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); } | |
| 22 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 23 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 1762 | 24 | /** |
| 1763 | 25 | * Support conditional rendering of a React App to the DOM, based on the React version. |
| 1764 | 26 | * We use `createRoot` when available, but fallback to `ReactDOM.render` for older versions. |
| 1765 | 27 | * |
| @@ -1793,8 +55,118 @@ | ||
| 1793 | 55 | }; |
| 1794 | 56 | |
| 1795 | 57 | /***/ }), |
| 1796 | 58 | |
| 59 | +/***/ "../modules/home/assets/js/components/addons-section.js": | |
| 60 | +/*!**************************************************************!*\ | |
| 61 | + !*** ../modules/home/assets/js/components/addons-section.js ***! | |
| 62 | + \**************************************************************/ | |
| 63 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 64 | + | |
| 65 | +"use strict"; | |
| 66 | +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 67 | + | |
| 68 | + | |
| 69 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 70 | +Object.defineProperty(exports, "__esModule", ({ | |
| 71 | + value: true | |
| 72 | +})); | |
| 73 | +exports["default"] = void 0; | |
| 74 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 75 | +var _objectDestructuringEmpty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectDestructuringEmpty */ "../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js")); | |
| 76 | +var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 77 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 78 | +var _List = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/List */ "@elementor/ui/List")); | |
| 79 | +var _Link = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Link */ "@elementor/ui/Link")); | |
| 80 | +var _Button = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Button */ "@elementor/ui/Button")); | |
| 81 | +var _Card = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Card */ "@elementor/ui/Card")); | |
| 82 | +var _CardActions = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/CardActions */ "@elementor/ui/CardActions")); | |
| 83 | +var _CardContent = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/CardContent */ "@elementor/ui/CardContent")); | |
| 84 | +var _CardMedia = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/CardMedia */ "@elementor/ui/CardMedia")); | |
| 85 | +var Addons = function Addons(_ref) { | |
| 86 | + var props = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(_ref), _ref)); | |
| 87 | + var domain = props.adminUrl.replace('wp-admin/', ''); | |
| 88 | + var addonsArray = props.addonsData.repeater; | |
| 89 | + var cardsPerRow = 3 === addonsArray.length ? 3 : 2; | |
| 90 | + return /*#__PURE__*/_react.default.createElement(_ui.Paper, { | |
| 91 | + elevation: 0, | |
| 92 | + sx: { | |
| 93 | + p: 3, | |
| 94 | + display: 'flex', | |
| 95 | + flexDirection: 'column', | |
| 96 | + gap: 2 | |
| 97 | + } | |
| 98 | + }, /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 99 | + variant: "h6" | |
| 100 | + }, props.addonsData.header.title), /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 101 | + variant: "body2", | |
| 102 | + color: "text.secondary" | |
| 103 | + }, props.addonsData.header.description)), /*#__PURE__*/_react.default.createElement(_List.default, { | |
| 104 | + sx: { | |
| 105 | + display: 'grid', | |
| 106 | + gridTemplateColumns: { | |
| 107 | + md: "repeat(".concat(cardsPerRow, ", 1fr)"), | |
| 108 | + xs: 'repeat(1, 1fr)' | |
| 109 | + }, | |
| 110 | + gap: 2 | |
| 111 | + } | |
| 112 | + }, addonsArray.map(function (item) { | |
| 113 | + var linkTarget = item.hasOwnProperty('target') ? item.target : '_blank'; | |
| 114 | + return /*#__PURE__*/_react.default.createElement(_Card.default, { | |
| 115 | + key: item.title, | |
| 116 | + elevation: 0, | |
| 117 | + sx: { | |
| 118 | + display: 'flex', | |
| 119 | + border: 1, | |
| 120 | + borderRadius: 1, | |
| 121 | + borderColor: 'action.focus' | |
| 122 | + } | |
| 123 | + }, /*#__PURE__*/_react.default.createElement(_CardContent.default, { | |
| 124 | + sx: { | |
| 125 | + display: 'flex', | |
| 126 | + flexDirection: 'column', | |
| 127 | + justifyContent: 'space-between', | |
| 128 | + gap: 3, | |
| 129 | + p: 3 | |
| 130 | + } | |
| 131 | + }, /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_CardMedia.default, { | |
| 132 | + image: item.image, | |
| 133 | + sx: { | |
| 134 | + height: '58px', | |
| 135 | + width: '58px', | |
| 136 | + mb: 2 | |
| 137 | + } | |
| 138 | + }), /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 139 | + variant: "subtitle2" | |
| 140 | + }, item.title), /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 141 | + variant: "body2", | |
| 142 | + color: "text.secondary" | |
| 143 | + }, item.description))), /*#__PURE__*/_react.default.createElement(_CardActions.default, { | |
| 144 | + sx: { | |
| 145 | + p: 0 | |
| 146 | + } | |
| 147 | + }, /*#__PURE__*/_react.default.createElement(_Button.default, { | |
| 148 | + variant: "outlined", | |
| 149 | + size: "small", | |
| 150 | + color: "promotion", | |
| 151 | + href: item.url, | |
| 152 | + target: linkTarget | |
| 153 | + }, item.button_label)))); | |
| 154 | + })), /*#__PURE__*/_react.default.createElement(_Link.default, { | |
| 155 | + variant: "body2", | |
| 156 | + color: "info.main", | |
| 157 | + underline: "none", | |
| 158 | + href: "".concat(domain).concat(props.addonsData.footer.file_path) | |
| 159 | + }, props.addonsData.footer.label)); | |
| 160 | +}; | |
| 161 | +var _default = exports["default"] = Addons; | |
| 162 | +Addons.propTypes = { | |
| 163 | + addonsData: PropTypes.object.isRequired, | |
| 164 | + adminUrl: PropTypes.string.isRequired | |
| 165 | +}; | |
| 166 | + | |
| 167 | +/***/ }), | |
| 168 | + | |
| 1797 | 169 | /***/ "../modules/home/assets/js/components/create-new-page-dialog.js": |
| 1798 | 170 | /*!**********************************************************************!*\ |
| 1799 | 171 | !*** ../modules/home/assets/js/components/create-new-page-dialog.js ***! |
| 1800 | 172 | \**********************************************************************/ |
| @@ -1821,9 +193,10 @@ | ||
| 1821 | 193 | var _TextField = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/TextField */ "@elementor/ui/TextField")); |
| 1822 | 194 | var _DialogActions = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/DialogActions */ "@elementor/ui/DialogActions")); |
| 1823 | 195 | var _Button = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Button */ "@elementor/ui/Button")); |
| 1824 | 196 | var _Dialog = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Dialog */ "@elementor/ui/Dialog")); |
| 1825 | -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); } | |
| 197 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 198 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 1826 | 199 | var CreateNewPageDialog = function CreateNewPageDialog(_ref) { |
| 1827 | 200 | var url = _ref.url, |
| 1828 | 201 | isOpen = _ref.isOpen, |
| 1829 | 202 | closedDialogCallback = _ref.closedDialogCallback; |
| @@ -1903,10 +276,10 @@ | ||
| 1903 | 276 | var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); |
| 1904 | 277 | var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); |
| 1905 | 278 | var _Typography = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Typography */ "@elementor/ui/Typography")); |
| 1906 | 279 | var _Button = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Button */ "@elementor/ui/Button")); |
| 1907 | -var _promoTracking = __webpack_require__(/*! ../utils/promo-tracking */ "../modules/home/assets/js/utils/promo-tracking.js"); | |
| 1908 | -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); } | |
| 280 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 281 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 1909 | 282 | var CreateWithAIBanner = function CreateWithAIBanner(_ref) { |
| 1910 | 283 | var props = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(_ref), _ref)); |
| 1911 | 284 | var createWithAIData = props.createWithAIData; |
| 1912 | 285 | var _useState = (0, _react.useState)(''), |
| @@ -1942,11 +315,9 @@ | ||
| 1942 | 315 | var handleNavigation = function handleNavigation() { |
| 1943 | 316 | if (!inputValue) { |
| 1944 | 317 | return; |
| 1945 | 318 | } |
| 1946 | - var destination = getButtonHref(); | |
| 1947 | - (0, _promoTracking.trackPromoClick)(title, destination, (0, _promoTracking.getHomeScreenPath)('ai_banner')); | |
| 1948 | - window.open(destination, '_blank'); | |
| 319 | + window.open(getButtonHref(), '_blank'); | |
| 1949 | 320 | setInputValue(''); |
| 1950 | 321 | }; |
| 1951 | 322 | var handleKeyDown = function handleKeyDown(event) { |
| 1952 | 323 | if ('Enter' === event.key) { |
| @@ -1959,19 +330,14 @@ | ||
| 1959 | 330 | sx: { |
| 1960 | 331 | display: 'flex', |
| 1961 | 332 | flexDirection: 'column', |
| 1962 | 333 | py: 3, |
| 1963 | - px: { | |
| 1964 | - xs: 3, | |
| 1965 | - md: 4 | |
| 1966 | - }, | |
| 334 | + px: 4, | |
| 1967 | 335 | gap: 2, |
| 1968 | 336 | backgroundImage: "url(".concat(backgroundImage, ")"), |
| 1969 | 337 | backgroundSize: 'cover', |
| 1970 | 338 | backgroundPosition: 'right center', |
| 1971 | - backgroundRepeat: 'no-repeat', | |
| 1972 | - borderRadius: 1, | |
| 1973 | - border: '1px solid rgba(0, 0, 0, 0.12)' | |
| 339 | + backgroundRepeat: 'no-repeat' | |
| 1974 | 340 | } |
| 1975 | 341 | }, /*#__PURE__*/_react.default.createElement(_ui.Stack, { |
| 1976 | 342 | gap: 1, |
| 1977 | 343 | justifyContent: "center" |
| @@ -2040,39 +406,19 @@ | ||
| 2040 | 406 | var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); |
| 2041 | 407 | var _List = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/List */ "@elementor/ui/List")); |
| 2042 | 408 | var _ListItemButton = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/ListItemButton */ "@elementor/ui/ListItemButton")); |
| 2043 | 409 | var _ListItemText = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/ListItemText */ "@elementor/ui/ListItemText")); |
| 410 | +var _Divider = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Divider */ "@elementor/ui/Divider")); | |
| 2044 | 411 | var ExternalLinksSection = function ExternalLinksSection(_ref) { |
| 2045 | 412 | var props = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(_ref), _ref)); |
| 2046 | 413 | return /*#__PURE__*/_react.default.createElement(_ui.Paper, { |
| 2047 | 414 | elevation: 0, |
| 2048 | 415 | sx: { |
| 2049 | - py: 3, | |
| 2050 | - px: { | |
| 2051 | - xs: 3, | |
| 2052 | - md: 4 | |
| 2053 | - }, | |
| 2054 | - borderRadius: 1, | |
| 2055 | - border: '1px solid rgba(0, 0, 0, 0.12)' | |
| 416 | + px: 3 | |
| 2056 | 417 | } |
| 2057 | - }, /*#__PURE__*/_react.default.createElement(_List.default, { | |
| 2058 | - sx: { | |
| 2059 | - display: 'flex', | |
| 2060 | - flexDirection: { | |
| 2061 | - xs: 'column', | |
| 2062 | - sm: 'row' | |
| 2063 | - }, | |
| 2064 | - rowGap: 2, | |
| 2065 | - columnGap: 7.5, | |
| 2066 | - flexWrap: 'wrap' | |
| 2067 | - } | |
| 2068 | - }, props.externalLinksData.map(function (item) { | |
| 418 | + }, /*#__PURE__*/_react.default.createElement(_List.default, null, props.externalLinksData.map(function (item, index) { | |
| 2069 | 419 | return /*#__PURE__*/_react.default.createElement(_ui.Box, { |
| 2070 | - key: item.label, | |
| 2071 | - sx: { | |
| 2072 | - display: 'flex', | |
| 2073 | - alignItems: 'center' | |
| 2074 | - } | |
| 420 | + key: item.label | |
| 2075 | 421 | }, /*#__PURE__*/_react.default.createElement(_ListItemButton.default, { |
| 2076 | 422 | href: item.url, |
| 2077 | 423 | target: "_blank", |
| 2078 | 424 | sx: { |
| @@ -2080,9 +426,9 @@ | ||
| 2080 | 426 | backgroundColor: 'initial' |
| 2081 | 427 | }, |
| 2082 | 428 | gap: 2, |
| 2083 | 429 | px: 0, |
| 2084 | - py: 0 | |
| 430 | + py: 2 | |
| 2085 | 431 | } |
| 2086 | 432 | }, /*#__PURE__*/_react.default.createElement(_ui.Box, { |
| 2087 | 433 | component: "img", |
| 2088 | 434 | src: item.image, |
| @@ -2093,9 +439,9 @@ | ||
| 2093 | 439 | sx: { |
| 2094 | 440 | color: 'text.secondary' |
| 2095 | 441 | }, |
| 2096 | 442 | primary: item.label |
| 2097 | - }))); | |
| 443 | + })), index < props.externalLinksData.length - 1 && /*#__PURE__*/_react.default.createElement(_Divider.default, null)); | |
| 2098 | 444 | }))); |
| 2099 | 445 | }; |
| 2100 | 446 | var _default = exports["default"] = ExternalLinksSection; |
| 2101 | 447 | ExternalLinksSection.propTypes = { |
| @@ -2197,8 +543,9 @@ | ||
| 2197 | 543 | \*******************************************************************/ |
| 2198 | 544 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 2199 | 545 | |
| 2200 | 546 | "use strict"; |
| 547 | +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2201 | 548 | |
| 2202 | 549 | |
| 2203 | 550 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 2204 | 551 | Object.defineProperty(exports, "__esModule", ({ |
| @@ -2209,27 +556,18 @@ | ||
| 2209 | 556 | var _objectDestructuringEmpty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectDestructuringEmpty */ "../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js")); |
| 2210 | 557 | var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); |
| 2211 | 558 | var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); |
| 2212 | 559 | var _List = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/List */ "@elementor/ui/List")); |
| 2213 | -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js")); | |
| 2214 | 560 | var _getStartedListItem = _interopRequireDefault(__webpack_require__(/*! ./get-started-list-item */ "../modules/home/assets/js/components/get-started-list-item.js")); |
| 2215 | 561 | var GetStarted = function GetStarted(_ref) { |
| 2216 | 562 | var props = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(_ref), _ref)); |
| 2217 | - var hasSidebarPromotion = props.homeScreenData.hasOwnProperty('sidebar_promotion_variants'); | |
| 2218 | - var mdGridColumns = hasSidebarPromotion ? 'repeat(3, 1fr)' : 'repeat(4, 1fr)'; | |
| 2219 | 563 | return /*#__PURE__*/_react.default.createElement(_ui.Paper, { |
| 2220 | 564 | elevation: 0, |
| 2221 | 565 | sx: { |
| 2222 | - py: 3, | |
| 2223 | - px: { | |
| 2224 | - xs: 3, | |
| 2225 | - md: 4 | |
| 2226 | - }, | |
| 566 | + p: 3, | |
| 2227 | 567 | display: 'flex', |
| 2228 | 568 | flexDirection: 'column', |
| 2229 | - gap: 2, | |
| 2230 | - borderRadius: 1, | |
| 2231 | - border: '1px solid rgba(0, 0, 0, 0.12)' | |
| 569 | + gap: 2 | |
| 2232 | 570 | } |
| 2233 | 571 | }, /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.Typography, { |
| 2234 | 572 | variant: "h6" |
| 2235 | 573 | }, props.getStartedData.header.title), /*#__PURE__*/_react.default.createElement(_ui.Typography, { |
| @@ -2238,10 +576,9 @@ | ||
| 2238 | 576 | }, props.getStartedData.header.description)), /*#__PURE__*/_react.default.createElement(_List.default, { |
| 2239 | 577 | sx: { |
| 2240 | 578 | display: 'grid', |
| 2241 | 579 | gridTemplateColumns: { |
| 2242 | - xl: 'repeat(4, 1fr)', | |
| 2243 | - md: mdGridColumns, | |
| 580 | + md: 'repeat(4, 1fr)', | |
| 2244 | 581 | xs: 'repeat(2, 1fr)' |
| 2245 | 582 | }, |
| 2246 | 583 | columnGap: { |
| 2247 | 584 | md: 9, |
| @@ -2259,63 +596,14 @@ | ||
| 2259 | 596 | }))); |
| 2260 | 597 | }; |
| 2261 | 598 | var _default = exports["default"] = GetStarted; |
| 2262 | 599 | GetStarted.propTypes = { |
| 2263 | - getStartedData: _propTypes.default.object.isRequired, | |
| 2264 | - adminUrl: _propTypes.default.string.isRequired, | |
| 2265 | - homeScreenData: _propTypes.default.object.isRequired | |
| 600 | + getStartedData: PropTypes.object.isRequired, | |
| 601 | + adminUrl: PropTypes.string.isRequired | |
| 2266 | 602 | }; |
| 2267 | 603 | |
| 2268 | 604 | /***/ }), |
| 2269 | 605 | |
| 2270 | -/***/ "../modules/home/assets/js/components/header-section.js": | |
| 2271 | -/*!**************************************************************!*\ | |
| 2272 | - !*** ../modules/home/assets/js/components/header-section.js ***! | |
| 2273 | - \**************************************************************/ | |
| 2274 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2275 | - | |
| 2276 | -"use strict"; | |
| 2277 | - | |
| 2278 | - | |
| 2279 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2280 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2281 | - value: true | |
| 2282 | -})); | |
| 2283 | -exports["default"] = void 0; | |
| 2284 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2285 | -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 2286 | -var _Typography = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Typography */ "@elementor/ui/Typography")); | |
| 2287 | -var _Button = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Button */ "@elementor/ui/Button")); | |
| 2288 | -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js")); | |
| 2289 | -var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); | |
| 2290 | -var HeaderSection = function HeaderSection(props) { | |
| 2291 | - return /*#__PURE__*/_react.default.createElement(_ui.Paper, { | |
| 2292 | - elevation: 0, | |
| 2293 | - sx: { | |
| 2294 | - display: 'flex', | |
| 2295 | - flexDirection: 'row', | |
| 2296 | - justifyContent: 'space-between', | |
| 2297 | - alignItems: 'center', | |
| 2298 | - pt: 2.5 | |
| 2299 | - } | |
| 2300 | - }, /*#__PURE__*/_react.default.createElement(_Typography.default, { | |
| 2301 | - variant: "h5" | |
| 2302 | - }, (0, _i18n.__)('Quick Start', 'elementor')), /*#__PURE__*/_react.default.createElement(_Button.default, { | |
| 2303 | - variant: "contained", | |
| 2304 | - size: "medium", | |
| 2305 | - color: "primary", | |
| 2306 | - href: props.editWebsiteUrl, | |
| 2307 | - target: "_blank", | |
| 2308 | - rel: "noopener noreferrer" | |
| 2309 | - }, (0, _i18n.__)('Edit site', 'elementor'))); | |
| 2310 | -}; | |
| 2311 | -HeaderSection.propTypes = { | |
| 2312 | - editWebsiteUrl: _propTypes.default.string.isRequired | |
| 2313 | -}; | |
| 2314 | -var _default = exports["default"] = HeaderSection; | |
| 2315 | - | |
| 2316 | -/***/ }), | |
| 2317 | - | |
| 2318 | 606 | /***/ "../modules/home/assets/js/components/home-screen.js": |
| 2319 | 607 | /*!***********************************************************!*\ |
| 2320 | 608 | !*** ../modules/home/assets/js/components/home-screen.js ***! |
| 2321 | 609 | \***********************************************************/ |
| @@ -2331,36 +619,37 @@ | ||
| 2331 | 619 | })); |
| 2332 | 620 | exports["default"] = void 0; |
| 2333 | 621 | var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); |
| 2334 | 622 | var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); |
| 2335 | -var _headerSection = _interopRequireDefault(__webpack_require__(/*! ./header-section */ "../modules/home/assets/js/components/header-section.js")); | |
| 2336 | 623 | var _topSection = _interopRequireDefault(__webpack_require__(/*! ./top-section */ "../modules/home/assets/js/components/top-section.js")); |
| 2337 | 624 | var _sidebarPromotion = _interopRequireDefault(__webpack_require__(/*! ./sidebar-promotion */ "../modules/home/assets/js/components/sidebar-promotion.js")); |
| 625 | +var _addonsSection = _interopRequireDefault(__webpack_require__(/*! ./addons-section */ "../modules/home/assets/js/components/addons-section.js")); | |
| 2338 | 626 | var _externalLinksSection = _interopRequireDefault(__webpack_require__(/*! ./external-links-section */ "../modules/home/assets/js/components/external-links-section.js")); |
| 2339 | 627 | var _getStartedSection = _interopRequireDefault(__webpack_require__(/*! ./get-started-section */ "../modules/home/assets/js/components/get-started-section.js")); |
| 2340 | 628 | var _createWithAiBanner = _interopRequireDefault(__webpack_require__(/*! ./create-with-ai-banner */ "../modules/home/assets/js/components/create-with-ai-banner.js")); |
| 2341 | -var _loadFallbackMessage = _interopRequireDefault(__webpack_require__(/*! ./load-fallback-message */ "../modules/home/assets/js/components/load-fallback-message.js")); | |
| 2342 | -var EditorScreen = function EditorScreen(props) { | |
| 2343 | - var _props$homeScreenData; | |
| 2344 | - if (!((_props$homeScreenData = props.homeScreenData) !== null && _props$homeScreenData !== void 0 && _props$homeScreenData.get_started)) { | |
| 2345 | - return /*#__PURE__*/_react.default.createElement(_loadFallbackMessage.default, null); | |
| 2346 | - } | |
| 629 | +var HomeScreen = function HomeScreen(props) { | |
| 2347 | 630 | var hasSidebarPromotion = props.homeScreenData.hasOwnProperty('sidebar_promotion_variants'); |
| 2348 | - return /*#__PURE__*/ /* Box wrapper around the Container is needed to neutralize wp-content area left-padding */_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.Container, { | |
| 631 | + return /*#__PURE__*/ /* Box wrapper around the Container is needed to neutralize wp-content area left-padding */_react.default.createElement(_ui.Box, { | |
| 632 | + sx: { | |
| 633 | + pr: 1 | |
| 634 | + } | |
| 635 | + }, /*#__PURE__*/_react.default.createElement(_ui.Container, { | |
| 2349 | 636 | disableGutters: true, |
| 2350 | 637 | maxWidth: "lg", |
| 2351 | 638 | sx: { |
| 2352 | 639 | display: 'flex', |
| 2353 | 640 | flexDirection: 'column', |
| 2354 | - gap: 2.5, | |
| 2355 | - px: { | |
| 2356 | - xs: 1.5, | |
| 2357 | - md: 4 | |
| 2358 | - } | |
| 641 | + gap: { | |
| 642 | + xs: 1, | |
| 643 | + md: 3 | |
| 644 | + }, | |
| 645 | + pt: { | |
| 646 | + xs: 2, | |
| 647 | + md: 6 | |
| 648 | + }, | |
| 649 | + pb: 2 | |
| 2359 | 650 | } |
| 2360 | - }, /*#__PURE__*/_react.default.createElement(_headerSection.default, { | |
| 2361 | - editWebsiteUrl: props.homeScreenData.edit_website_url | |
| 2362 | - }), props.homeScreenData.top_with_licences && /*#__PURE__*/_react.default.createElement(_topSection.default, { | |
| 651 | + }, props.homeScreenData.top_with_licences && /*#__PURE__*/_react.default.createElement(_topSection.default, { | |
| 2363 | 652 | topData: props.homeScreenData.top_with_licences, |
| 2364 | 653 | buttonCtaUrl: props.homeScreenData.button_cta_url |
| 2365 | 654 | }), /*#__PURE__*/_react.default.createElement(_ui.Box, { |
| 2366 | 655 | sx: { |
| @@ -2369,24 +658,24 @@ | ||
| 2369 | 658 | xs: 'column', |
| 2370 | 659 | sm: 'row' |
| 2371 | 660 | }, |
| 2372 | 661 | justifyContent: 'space-between', |
| 2373 | - gap: 2.5 | |
| 662 | + gap: 3 | |
| 2374 | 663 | } |
| 2375 | 664 | }, /*#__PURE__*/_react.default.createElement(_ui.Stack, { |
| 2376 | 665 | sx: { |
| 2377 | 666 | flex: 1, |
| 2378 | - gap: 2.5 | |
| 667 | + gap: 3 | |
| 2379 | 668 | } |
| 2380 | 669 | }, props.homeScreenData.create_with_ai && /*#__PURE__*/_react.default.createElement(_createWithAiBanner.default, { |
| 2381 | 670 | createWithAIData: props.homeScreenData.create_with_ai |
| 2382 | 671 | }), /*#__PURE__*/_react.default.createElement(_getStartedSection.default, { |
| 2383 | 672 | getStartedData: props.homeScreenData.get_started, |
| 2384 | - adminUrl: props.adminUrl, | |
| 2385 | - homeScreenData: props.homeScreenData | |
| 2386 | - }), /*#__PURE__*/_react.default.createElement(_externalLinksSection.default, { | |
| 2387 | - externalLinksData: props.homeScreenData.external_links | |
| 2388 | - })), hasSidebarPromotion && /*#__PURE__*/_react.default.createElement(_ui.Container, { | |
| 673 | + adminUrl: props.adminUrl | |
| 674 | + }), /*#__PURE__*/_react.default.createElement(_addonsSection.default, { | |
| 675 | + addonsData: props.homeScreenData.add_ons, | |
| 676 | + adminUrl: props.adminUrl | |
| 677 | + })), /*#__PURE__*/_react.default.createElement(_ui.Container, { | |
| 2389 | 678 | maxWidth: "xs", |
| 2390 | 679 | disableGutters: true, |
| 2391 | 680 | sx: { |
| 2392 | 681 | width: { |
| @@ -2393,66 +682,24 @@ | ||
| 2393 | 682 | sm: '305px' |
| 2394 | 683 | }, |
| 2395 | 684 | display: 'flex', |
| 2396 | 685 | flexDirection: 'column', |
| 2397 | - gap: 2.5 | |
| 686 | + gap: 3 | |
| 2398 | 687 | } |
| 2399 | - }, /*#__PURE__*/_react.default.createElement(_sidebarPromotion.default, { | |
| 688 | + }, hasSidebarPromotion && /*#__PURE__*/_react.default.createElement(_sidebarPromotion.default, { | |
| 2400 | 689 | sideData: props.homeScreenData.sidebar_promotion_variants |
| 690 | + }), /*#__PURE__*/_react.default.createElement(_externalLinksSection.default, { | |
| 691 | + externalLinksData: props.homeScreenData.external_links | |
| 2401 | 692 | }))))); |
| 2402 | 693 | }; |
| 2403 | -EditorScreen.propTypes = { | |
| 694 | +HomeScreen.propTypes = { | |
| 2404 | 695 | homeScreenData: PropTypes.object, |
| 2405 | 696 | adminUrl: PropTypes.string |
| 2406 | 697 | }; |
| 2407 | -var _default = exports["default"] = EditorScreen; | |
| 698 | +var _default = exports["default"] = HomeScreen; | |
| 2408 | 699 | |
| 2409 | 700 | /***/ }), |
| 2410 | 701 | |
| 2411 | -/***/ "../modules/home/assets/js/components/load-fallback-message.js": | |
| 2412 | -/*!*********************************************************************!*\ | |
| 2413 | - !*** ../modules/home/assets/js/components/load-fallback-message.js ***! | |
| 2414 | - \*********************************************************************/ | |
| 2415 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2416 | - | |
| 2417 | -"use strict"; | |
| 2418 | - | |
| 2419 | - | |
| 2420 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2421 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2422 | - value: true | |
| 2423 | -})); | |
| 2424 | -exports["default"] = void 0; | |
| 2425 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2426 | -var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 2427 | -var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); | |
| 2428 | -var LoadFallbackMessage = function LoadFallbackMessage() { | |
| 2429 | - return /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.Container, { | |
| 2430 | - disableGutters: true, | |
| 2431 | - maxWidth: "lg", | |
| 2432 | - sx: { | |
| 2433 | - px: 4, | |
| 2434 | - pt: 4 | |
| 2435 | - } | |
| 2436 | - }, /*#__PURE__*/_react.default.createElement(_ui.Paper, { | |
| 2437 | - elevation: 0, | |
| 2438 | - sx: { | |
| 2439 | - py: 4, | |
| 2440 | - px: 4, | |
| 2441 | - borderRadius: 1, | |
| 2442 | - border: 1, | |
| 2443 | - borderColor: 'divider', | |
| 2444 | - textAlign: 'center' | |
| 2445 | - } | |
| 2446 | - }, /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 2447 | - variant: "body1", | |
| 2448 | - color: "text.secondary" | |
| 2449 | - }, (0, _i18n.__)("We couldn't load this content right now. Please try again later.", 'elementor'))))); | |
| 2450 | -}; | |
| 2451 | -var _default = exports["default"] = LoadFallbackMessage; | |
| 2452 | - | |
| 2453 | -/***/ }), | |
| 2454 | - | |
| 2455 | 702 | /***/ "../modules/home/assets/js/components/promotions/sidebar-banner.js": |
| 2456 | 703 | /*!*************************************************************************!*\ |
| 2457 | 704 | !*** ../modules/home/assets/js/components/promotions/sidebar-banner.js ***! |
| 2458 | 705 | \*************************************************************************/ |
| @@ -2469,25 +716,19 @@ | ||
| 2469 | 716 | exports["default"] = void 0; |
| 2470 | 717 | var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); |
| 2471 | 718 | var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); |
| 2472 | 719 | var _Link = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Link */ "@elementor/ui/Link")); |
| 2473 | -var _promoTracking = __webpack_require__(/*! ../../utils/promo-tracking */ "../modules/home/assets/js/utils/promo-tracking.js"); | |
| 2474 | 720 | var SidebarBanner = function SidebarBanner(_ref) { |
| 2475 | 721 | var image = _ref.image, |
| 2476 | 722 | link = _ref.link; |
| 2477 | - var handleClick = function handleClick() { | |
| 2478 | - (0, _promoTracking.trackPromoClick)('Sidebar Banner', link, (0, _promoTracking.getHomeScreenPath)('sidebar')); | |
| 2479 | - }; | |
| 2480 | 723 | return /*#__PURE__*/_react.default.createElement(_ui.Paper, { |
| 2481 | 724 | elevation: 0, |
| 2482 | 725 | sx: { |
| 2483 | - overflow: 'hidden', | |
| 2484 | - borderRadius: 1 | |
| 726 | + overflow: 'hidden' | |
| 2485 | 727 | } |
| 2486 | 728 | }, /*#__PURE__*/_react.default.createElement(_Link.default, { |
| 2487 | 729 | target: "_blank", |
| 2488 | 730 | href: link, |
| 2489 | - onClick: handleClick, | |
| 2490 | 731 | sx: { |
| 2491 | 732 | lineHeight: 0, |
| 2492 | 733 | display: 'block', |
| 2493 | 734 | width: '100%', |
| @@ -2538,21 +779,16 @@ | ||
| 2538 | 779 | var _List = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/List */ "@elementor/ui/List")); |
| 2539 | 780 | var _ListItem = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/ListItem */ "@elementor/ui/ListItem")); |
| 2540 | 781 | var _sideBarCheckIcon = _interopRequireDefault(__webpack_require__(/*! ../../icons/side-bar-check-icon */ "../modules/home/assets/js/icons/side-bar-check-icon.js")); |
| 2541 | 782 | var _ListItemText = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/ListItemText */ "@elementor/ui/ListItemText")); |
| 2542 | -var _promoTracking = __webpack_require__(/*! ../../utils/promo-tracking */ "../modules/home/assets/js/utils/promo-tracking.js"); | |
| 2543 | 783 | var SidebarDefault = function SidebarDefault(_ref) { |
| 2544 | 784 | var header = _ref.header, |
| 2545 | 785 | cta = _ref.cta, |
| 2546 | 786 | repeater = _ref.repeater; |
| 2547 | - var handleCtaClick = function handleCtaClick() { | |
| 2548 | - (0, _promoTracking.trackPromoClick)(header.title, cta.url, (0, _promoTracking.getHomeScreenPath)('sidebar')); | |
| 2549 | - }; | |
| 2550 | 787 | return /*#__PURE__*/_react.default.createElement(_ui.Paper, { |
| 2551 | 788 | elevation: 0, |
| 2552 | 789 | sx: { |
| 2553 | - p: 3, | |
| 2554 | - borderRadius: 1 | |
| 790 | + p: 3 | |
| 2555 | 791 | } |
| 2556 | 792 | }, /*#__PURE__*/_react.default.createElement(_ui.Stack, { |
| 2557 | 793 | gap: 1.5, |
| 2558 | 794 | alignItems: "center", |
| @@ -2572,9 +808,8 @@ | ||
| 2572 | 808 | variant: "contained", |
| 2573 | 809 | size: "medium", |
| 2574 | 810 | color: "promotion", |
| 2575 | 811 | href: cta.url, |
| 2576 | - onClick: handleCtaClick, | |
| 2577 | 812 | startIcon: /*#__PURE__*/_react.default.createElement(_ui.Box, { |
| 2578 | 813 | component: "img", |
| 2579 | 814 | src: cta.image, |
| 2580 | 815 | sx: { |
| @@ -2666,9 +901,8 @@ | ||
| 2666 | 901 | var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); |
| 2667 | 902 | var _Typography = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Typography */ "@elementor/ui/Typography")); |
| 2668 | 903 | var _Button = _interopRequireDefault(__webpack_require__(/*! @elementor/ui/Button */ "@elementor/ui/Button")); |
| 2669 | 904 | var _youtubeIcon = _interopRequireDefault(__webpack_require__(/*! ../icons/youtube-icon */ "../modules/home/assets/js/icons/youtube-icon.js")); |
| 2670 | -var _promoTracking = __webpack_require__(/*! ../utils/promo-tracking */ "../modules/home/assets/js/utils/promo-tracking.js"); | |
| 2671 | 905 | var TopSection = function TopSection(_ref) { |
| 2672 | 906 | var props = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(_ref), _ref)); |
| 2673 | 907 | var topData = props.topData, |
| 2674 | 908 | buttonCtaUrl = props.buttonCtaUrl; |
| @@ -2682,14 +916,8 @@ | ||
| 2682 | 916 | youtubeEmbeddedId = topData.youtube_embed_id, |
| 2683 | 917 | buttonWatchURL = topData.button_watch_url, |
| 2684 | 918 | buttonWatchTitle = topData.button_watch_title; |
| 2685 | 919 | var ctaButtonTitle = buttonCtaTitle !== null && buttonCtaTitle !== void 0 ? buttonCtaTitle : buttonCreatePageTitle; |
| 2686 | - var handleCtaClick = function handleCtaClick() { | |
| 2687 | - (0, _promoTracking.trackPromoClick)(ctaButtonTitle, buttonCtaUrl, (0, _promoTracking.getHomeScreenPath)('top_section')); | |
| 2688 | - }; | |
| 2689 | - var handleWatchClick = function handleWatchClick() { | |
| 2690 | - (0, _promoTracking.trackPromoClick)(buttonWatchTitle, buttonWatchURL, (0, _promoTracking.getHomeScreenPath)('top_section')); | |
| 2691 | - }; | |
| 2692 | 920 | return /*#__PURE__*/_react.default.createElement(_ui.Paper, { |
| 2693 | 921 | elevation: 0, |
| 2694 | 922 | sx: { |
| 2695 | 923 | display: 'flex', |
| @@ -2697,9 +925,12 @@ | ||
| 2697 | 925 | xs: 'column', |
| 2698 | 926 | sm: 'row' |
| 2699 | 927 | }, |
| 2700 | 928 | justifyContent: 'space-between', |
| 2701 | - py: 3, | |
| 929 | + py: { | |
| 930 | + xs: 3, | |
| 931 | + md: 3 | |
| 932 | + }, | |
| 2702 | 933 | px: { |
| 2703 | 934 | xs: 3, |
| 2704 | 935 | md: 4 |
| 2705 | 936 | }, |
| @@ -2705,13 +936,10 @@ | ||
| 2705 | 936 | }, |
| 2706 | 937 | gap: { |
| 2707 | 938 | xs: 2, |
| 2708 | 939 | sm: 3, |
| 2709 | - lg: 10, | |
| 2710 | - xl: 22 | |
| 2711 | - }, | |
| 2712 | - borderRadius: 1, | |
| 2713 | - border: '1px solid rgba(0, 0, 0, 0.12)' | |
| 940 | + lg: 22 | |
| 941 | + } | |
| 2714 | 942 | } |
| 2715 | 943 | }, /*#__PURE__*/_react.default.createElement(_ui.Stack, { |
| 2716 | 944 | gap: 3, |
| 2717 | 945 | justifyContent: "center" |
| @@ -2729,10 +957,9 @@ | ||
| 2729 | 957 | "data-testid": "e-create-button", |
| 2730 | 958 | variant: "contained", |
| 2731 | 959 | size: "small", |
| 2732 | 960 | href: buttonCtaUrl, |
| 2733 | - target: "_blank", | |
| 2734 | - onClick: handleCtaClick | |
| 961 | + target: "_blank" | |
| 2735 | 962 | }, ctaButtonTitle), /*#__PURE__*/_react.default.createElement(_Button.default, { |
| 2736 | 963 | variant: "outlined", |
| 2737 | 964 | color: "secondary", |
| 2738 | 965 | size: "small", |
| @@ -2737,10 +964,9 @@ | ||
| 2737 | 964 | color: "secondary", |
| 2738 | 965 | size: "small", |
| 2739 | 966 | startIcon: /*#__PURE__*/_react.default.createElement(_youtubeIcon.default, null), |
| 2740 | 967 | href: buttonWatchURL, |
| 2741 | - target: "_blank", | |
| 2742 | - onClick: handleWatchClick | |
| 968 | + target: "_blank" | |
| 2743 | 969 | }, buttonWatchTitle))), /*#__PURE__*/_react.default.createElement(_ui.Box, { |
| 2744 | 970 | component: "iframe", |
| 2745 | 971 | src: "https://www.youtube.com/embed/".concat(youtubeEmbeddedId), |
| 2746 | 972 | title: "YouTube video player", |
| @@ -2781,9 +1007,10 @@ | ||
| 2781 | 1007 | exports["default"] = void 0; |
| 2782 | 1008 | var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); |
| 2783 | 1009 | var React = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); |
| 2784 | 1010 | var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); |
| 2785 | -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); } | |
| 1011 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 1012 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 2786 | 1013 | var SideBarCheckIcon = function SideBarCheckIcon(props) { |
| 2787 | 1014 | return /*#__PURE__*/React.createElement(_ui.SvgIcon, (0, _extends2.default)({ |
| 2788 | 1015 | viewBox: "0 0 24 24" |
| 2789 | 1016 | }, props), /*#__PURE__*/React.createElement("path", { |
| @@ -2819,9 +1046,10 @@ | ||
| 2819 | 1046 | exports["default"] = void 0; |
| 2820 | 1047 | var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); |
| 2821 | 1048 | var React = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); |
| 2822 | 1049 | var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); |
| 2823 | -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); } | |
| 1050 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 1051 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 2824 | 1052 | var YoutubeIcon = function YoutubeIcon(props) { |
| 2825 | 1053 | return /*#__PURE__*/React.createElement(_ui.SvgIcon, (0, _extends2.default)({ |
| 2826 | 1054 | viewBox: "0 0 24 24" |
| 2827 | 1055 | }, props), /*#__PURE__*/React.createElement("path", { |
| @@ -2833,423 +1061,8 @@ | ||
| 2833 | 1061 | var _default = exports["default"] = YoutubeIcon; |
| 2834 | 1062 | |
| 2835 | 1063 | /***/ }), |
| 2836 | 1064 | |
| 2837 | -/***/ "../modules/home/assets/js/utils/promo-tracking.js": | |
| 2838 | -/*!*********************************************************!*\ | |
| 2839 | - !*** ../modules/home/assets/js/utils/promo-tracking.js ***! | |
| 2840 | - \*********************************************************/ | |
| 2841 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2842 | - | |
| 2843 | -"use strict"; | |
| 2844 | - | |
| 2845 | - | |
| 2846 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2847 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2848 | - value: true | |
| 2849 | -})); | |
| 2850 | -exports.trackPromoClick = exports.getHomeScreenPath = void 0; | |
| 2851 | -var _wpDashboardTracking = _interopRequireDefault(__webpack_require__(/*! ../../../../../app/assets/js/event-track/wp-dashboard-tracking */ "../app/assets/js/event-track/wp-dashboard-tracking.js")); | |
| 2852 | -var trackPromoClick = exports.trackPromoClick = function trackPromoClick(promoName, destination, path) { | |
| 2853 | - if (_wpDashboardTracking.default && 'function' === typeof _wpDashboardTracking.default.trackPromoClicked) { | |
| 2854 | - _wpDashboardTracking.default.trackPromoClicked(promoName, destination, path); | |
| 2855 | - } | |
| 2856 | -}; | |
| 2857 | -var getHomeScreenPath = exports.getHomeScreenPath = function getHomeScreenPath(section) { | |
| 2858 | - return ['home', section]; | |
| 2859 | -}; | |
| 2860 | - | |
| 2861 | -/***/ }), | |
| 2862 | - | |
| 2863 | -/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 2864 | -/*!******************************************************************!*\ | |
| 2865 | - !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 2866 | - \******************************************************************/ | |
| 2867 | -/***/ ((module) => { | |
| 2868 | - | |
| 2869 | -function _arrayLikeToArray(r, a) { | |
| 2870 | - (null == a || a > r.length) && (a = r.length); | |
| 2871 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 2872 | - return n; | |
| 2873 | -} | |
| 2874 | -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2875 | - | |
| 2876 | -/***/ }), | |
| 2877 | - | |
| 2878 | -/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 2879 | -/*!****************************************************************!*\ | |
| 2880 | - !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 2881 | - \****************************************************************/ | |
| 2882 | -/***/ ((module) => { | |
| 2883 | - | |
| 2884 | -function _arrayWithHoles(r) { | |
| 2885 | - if (Array.isArray(r)) return r; | |
| 2886 | -} | |
| 2887 | -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2888 | - | |
| 2889 | -/***/ }), | |
| 2890 | - | |
| 2891 | -/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": | |
| 2892 | -/*!***********************************************************************!*\ | |
| 2893 | - !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! | |
| 2894 | - \***********************************************************************/ | |
| 2895 | -/***/ ((module) => { | |
| 2896 | - | |
| 2897 | -function _assertThisInitialized(e) { | |
| 2898 | - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 2899 | - return e; | |
| 2900 | -} | |
| 2901 | -module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2902 | - | |
| 2903 | -/***/ }), | |
| 2904 | - | |
| 2905 | -/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": | |
| 2906 | -/*!****************************************************************!*\ | |
| 2907 | - !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! | |
| 2908 | - \****************************************************************/ | |
| 2909 | -/***/ ((module) => { | |
| 2910 | - | |
| 2911 | -function _classCallCheck(a, n) { | |
| 2912 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 2913 | -} | |
| 2914 | -module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2915 | - | |
| 2916 | -/***/ }), | |
| 2917 | - | |
| 2918 | -/***/ "../node_modules/@babel/runtime/helpers/createClass.js": | |
| 2919 | -/*!*************************************************************!*\ | |
| 2920 | - !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! | |
| 2921 | - \*************************************************************/ | |
| 2922 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2923 | - | |
| 2924 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 2925 | -function _defineProperties(e, r) { | |
| 2926 | - for (var t = 0; t < r.length; t++) { | |
| 2927 | - var o = r[t]; | |
| 2928 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 2929 | - } | |
| 2930 | -} | |
| 2931 | -function _createClass(e, r, t) { | |
| 2932 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | |
| 2933 | - writable: !1 | |
| 2934 | - }), e; | |
| 2935 | -} | |
| 2936 | -module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2937 | - | |
| 2938 | -/***/ }), | |
| 2939 | - | |
| 2940 | -/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": | |
| 2941 | -/*!****************************************************************!*\ | |
| 2942 | - !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! | |
| 2943 | - \****************************************************************/ | |
| 2944 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2945 | - | |
| 2946 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 2947 | -function _defineProperty(e, r, t) { | |
| 2948 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 2949 | - value: t, | |
| 2950 | - enumerable: !0, | |
| 2951 | - configurable: !0, | |
| 2952 | - writable: !0 | |
| 2953 | - }) : e[r] = t, e; | |
| 2954 | -} | |
| 2955 | -module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2956 | - | |
| 2957 | -/***/ }), | |
| 2958 | - | |
| 2959 | -/***/ "../node_modules/@babel/runtime/helpers/extends.js": | |
| 2960 | -/*!*********************************************************!*\ | |
| 2961 | - !*** ../node_modules/@babel/runtime/helpers/extends.js ***! | |
| 2962 | - \*********************************************************/ | |
| 2963 | -/***/ ((module) => { | |
| 2964 | - | |
| 2965 | -function _extends() { | |
| 2966 | - return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) { | |
| 2967 | - for (var e = 1; e < arguments.length; e++) { | |
| 2968 | - var t = arguments[e]; | |
| 2969 | - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | |
| 2970 | - } | |
| 2971 | - return n; | |
| 2972 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments); | |
| 2973 | -} | |
| 2974 | -module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2975 | - | |
| 2976 | -/***/ }), | |
| 2977 | - | |
| 2978 | -/***/ "../node_modules/@babel/runtime/helpers/get.js": | |
| 2979 | -/*!*****************************************************!*\ | |
| 2980 | - !*** ../node_modules/@babel/runtime/helpers/get.js ***! | |
| 2981 | - \*****************************************************/ | |
| 2982 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2983 | - | |
| 2984 | -var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); | |
| 2985 | -function _get() { | |
| 2986 | - return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { | |
| 2987 | - var p = superPropBase(e, t); | |
| 2988 | - if (p) { | |
| 2989 | - var n = Object.getOwnPropertyDescriptor(p, t); | |
| 2990 | - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; | |
| 2991 | - } | |
| 2992 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments); | |
| 2993 | -} | |
| 2994 | -module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2995 | - | |
| 2996 | -/***/ }), | |
| 2997 | - | |
| 2998 | -/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": | |
| 2999 | -/*!****************************************************************!*\ | |
| 3000 | - !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! | |
| 3001 | - \****************************************************************/ | |
| 3002 | -/***/ ((module) => { | |
| 3003 | - | |
| 3004 | -function _getPrototypeOf(t) { | |
| 3005 | - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | |
| 3006 | - return t.__proto__ || Object.getPrototypeOf(t); | |
| 3007 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); | |
| 3008 | -} | |
| 3009 | -module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3010 | - | |
| 3011 | -/***/ }), | |
| 3012 | - | |
| 3013 | -/***/ "../node_modules/@babel/runtime/helpers/inherits.js": | |
| 3014 | -/*!**********************************************************!*\ | |
| 3015 | - !*** ../node_modules/@babel/runtime/helpers/inherits.js ***! | |
| 3016 | - \**********************************************************/ | |
| 3017 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3018 | - | |
| 3019 | -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 3020 | -function _inherits(t, e) { | |
| 3021 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 3022 | - t.prototype = Object.create(e && e.prototype, { | |
| 3023 | - constructor: { | |
| 3024 | - value: t, | |
| 3025 | - writable: !0, | |
| 3026 | - configurable: !0 | |
| 3027 | - } | |
| 3028 | - }), Object.defineProperty(t, "prototype", { | |
| 3029 | - writable: !1 | |
| 3030 | - }), e && setPrototypeOf(t, e); | |
| 3031 | -} | |
| 3032 | -module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3033 | - | |
| 3034 | -/***/ }), | |
| 3035 | - | |
| 3036 | -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 3037 | -/*!***********************************************************************!*\ | |
| 3038 | - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 3039 | - \***********************************************************************/ | |
| 3040 | -/***/ ((module) => { | |
| 3041 | - | |
| 3042 | -function _interopRequireDefault(e) { | |
| 3043 | - return e && e.__esModule ? e : { | |
| 3044 | - "default": e | |
| 3045 | - }; | |
| 3046 | -} | |
| 3047 | -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3048 | - | |
| 3049 | -/***/ }), | |
| 3050 | - | |
| 3051 | -/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": | |
| 3052 | -/*!**********************************************************************!*\ | |
| 3053 | - !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! | |
| 3054 | - \**********************************************************************/ | |
| 3055 | -/***/ ((module) => { | |
| 3056 | - | |
| 3057 | -function _iterableToArrayLimit(r, l) { | |
| 3058 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 3059 | - if (null != t) { | |
| 3060 | - var e, | |
| 3061 | - n, | |
| 3062 | - i, | |
| 3063 | - u, | |
| 3064 | - a = [], | |
| 3065 | - f = !0, | |
| 3066 | - o = !1; | |
| 3067 | - try { | |
| 3068 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 3069 | - if (Object(t) !== t) return; | |
| 3070 | - f = !1; | |
| 3071 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 3072 | - } catch (r) { | |
| 3073 | - o = !0, n = r; | |
| 3074 | - } finally { | |
| 3075 | - try { | |
| 3076 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 3077 | - } finally { | |
| 3078 | - if (o) throw n; | |
| 3079 | - } | |
| 3080 | - } | |
| 3081 | - return a; | |
| 3082 | - } | |
| 3083 | -} | |
| 3084 | -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3085 | - | |
| 3086 | -/***/ }), | |
| 3087 | - | |
| 3088 | -/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 3089 | -/*!*****************************************************************!*\ | |
| 3090 | - !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 3091 | - \*****************************************************************/ | |
| 3092 | -/***/ ((module) => { | |
| 3093 | - | |
| 3094 | -function _nonIterableRest() { | |
| 3095 | - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 3096 | -} | |
| 3097 | -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3098 | - | |
| 3099 | -/***/ }), | |
| 3100 | - | |
| 3101 | -/***/ "../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js": | |
| 3102 | -/*!**************************************************************************!*\ | |
| 3103 | - !*** ../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js ***! | |
| 3104 | - \**************************************************************************/ | |
| 3105 | -/***/ ((module) => { | |
| 3106 | - | |
| 3107 | -function _objectDestructuringEmpty(t) { | |
| 3108 | - if (null == t) throw new TypeError("Cannot destructure " + t); | |
| 3109 | -} | |
| 3110 | -module.exports = _objectDestructuringEmpty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3111 | - | |
| 3112 | -/***/ }), | |
| 3113 | - | |
| 3114 | -/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": | |
| 3115 | -/*!***************************************************************************!*\ | |
| 3116 | - !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! | |
| 3117 | - \***************************************************************************/ | |
| 3118 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3119 | - | |
| 3120 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 3121 | -var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); | |
| 3122 | -function _possibleConstructorReturn(t, e) { | |
| 3123 | - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 3124 | - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 3125 | - return assertThisInitialized(t); | |
| 3126 | -} | |
| 3127 | -module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3128 | - | |
| 3129 | -/***/ }), | |
| 3130 | - | |
| 3131 | -/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": | |
| 3132 | -/*!****************************************************************!*\ | |
| 3133 | - !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! | |
| 3134 | - \****************************************************************/ | |
| 3135 | -/***/ ((module) => { | |
| 3136 | - | |
| 3137 | -function _setPrototypeOf(t, e) { | |
| 3138 | - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | |
| 3139 | - return t.__proto__ = e, t; | |
| 3140 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); | |
| 3141 | -} | |
| 3142 | -module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3143 | - | |
| 3144 | -/***/ }), | |
| 3145 | - | |
| 3146 | -/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": | |
| 3147 | -/*!***************************************************************!*\ | |
| 3148 | - !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! | |
| 3149 | - \***************************************************************/ | |
| 3150 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3151 | - | |
| 3152 | -var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); | |
| 3153 | -var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); | |
| 3154 | -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 3155 | -var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); | |
| 3156 | -function _slicedToArray(r, e) { | |
| 3157 | - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 3158 | -} | |
| 3159 | -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3160 | - | |
| 3161 | -/***/ }), | |
| 3162 | - | |
| 3163 | -/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js": | |
| 3164 | -/*!***************************************************************!*\ | |
| 3165 | - !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***! | |
| 3166 | - \***************************************************************/ | |
| 3167 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3168 | - | |
| 3169 | -var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); | |
| 3170 | -function _superPropBase(t, o) { | |
| 3171 | - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); | |
| 3172 | - return t; | |
| 3173 | -} | |
| 3174 | -module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3175 | - | |
| 3176 | -/***/ }), | |
| 3177 | - | |
| 3178 | -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 3179 | -/*!*************************************************************!*\ | |
| 3180 | - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 3181 | - \*************************************************************/ | |
| 3182 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3183 | - | |
| 3184 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 3185 | -function toPrimitive(t, r) { | |
| 3186 | - if ("object" != _typeof(t) || !t) return t; | |
| 3187 | - var e = t[Symbol.toPrimitive]; | |
| 3188 | - if (void 0 !== e) { | |
| 3189 | - var i = e.call(t, r || "default"); | |
| 3190 | - if ("object" != _typeof(i)) return i; | |
| 3191 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 3192 | - } | |
| 3193 | - return ("string" === r ? String : Number)(t); | |
| 3194 | -} | |
| 3195 | -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3196 | - | |
| 3197 | -/***/ }), | |
| 3198 | - | |
| 3199 | -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 3200 | -/*!***************************************************************!*\ | |
| 3201 | - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 3202 | - \***************************************************************/ | |
| 3203 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3204 | - | |
| 3205 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 3206 | -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 3207 | -function toPropertyKey(t) { | |
| 3208 | - var i = toPrimitive(t, "string"); | |
| 3209 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 3210 | -} | |
| 3211 | -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3212 | - | |
| 3213 | -/***/ }), | |
| 3214 | - | |
| 3215 | -/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 3216 | -/*!********************************************************!*\ | |
| 3217 | - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 3218 | - \********************************************************/ | |
| 3219 | -/***/ ((module) => { | |
| 3220 | - | |
| 3221 | -function _typeof(o) { | |
| 3222 | - "@babel/helpers - typeof"; | |
| 3223 | - | |
| 3224 | - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 3225 | - return typeof o; | |
| 3226 | - } : function (o) { | |
| 3227 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 3228 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 3229 | -} | |
| 3230 | -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3231 | - | |
| 3232 | -/***/ }), | |
| 3233 | - | |
| 3234 | -/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": | |
| 3235 | -/*!****************************************************************************!*\ | |
| 3236 | - !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! | |
| 3237 | - \****************************************************************************/ | |
| 3238 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3239 | - | |
| 3240 | -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 3241 | -function _unsupportedIterableToArray(r, a) { | |
| 3242 | - if (r) { | |
| 3243 | - if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 3244 | - var t = {}.toString.call(r).slice(8, -1); | |
| 3245 | - 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; | |
| 3246 | - } | |
| 3247 | -} | |
| 3248 | -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3249 | - | |
| 3250 | -/***/ }), | |
| 3251 | - | |
| 3252 | 1065 | /***/ "../node_modules/object-assign/index.js": |
| 3253 | 1066 | /*!**********************************************!*\ |
| 3254 | 1067 | !*** ../node_modules/object-assign/index.js ***! |
| 3255 | 1068 | \**********************************************/ |
| @@ -4104,10 +1917,9 @@ | ||
| 4104 | 1917 | // By explicitly using `prop-types` you are opting into new development behavior. |
| 4105 | 1918 | // http://fb.me/prop-types-in-prod |
| 4106 | 1919 | var throwOnDirectAccess = true; |
| 4107 | 1920 | module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess); |
| 4108 | -} else // removed by dead control flow | |
| 4109 | -{} | |
| 1921 | +} else {} | |
| 4110 | 1922 | |
| 4111 | 1923 | |
| 4112 | 1924 | /***/ }), |
| 4113 | 1925 | |
| @@ -4345,10 +2157,9 @@ | ||
| 4345 | 2157 | |
| 4346 | 2158 | "use strict"; |
| 4347 | 2159 | |
| 4348 | 2160 | |
| 4349 | -if (false) // removed by dead control flow | |
| 4350 | -{} else { | |
| 2161 | +if (false) {} else { | |
| 4351 | 2162 | module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"); |
| 4352 | 2163 | } |
| 4353 | 2164 | |
| 4354 | 2165 | |
| @@ -4363,10 +2174,9 @@ | ||
| 4363 | 2174 | "use strict"; |
| 4364 | 2175 | |
| 4365 | 2176 | |
| 4366 | 2177 | var m = __webpack_require__(/*! react-dom */ "react-dom"); |
| 4367 | -if (false) // removed by dead control flow | |
| 4368 | -{} else { | |
| 2178 | +if (false) {} else { | |
| 4369 | 2179 | var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; |
| 4370 | 2180 | exports.createRoot = function(c, o) { |
| 4371 | 2181 | i.usingClientEntryPoint = true; |
| 4372 | 2182 | try { |
| @@ -4387,8 +2197,30 @@ | ||
| 4387 | 2197 | |
| 4388 | 2198 | |
| 4389 | 2199 | /***/ }), |
| 4390 | 2200 | |
| 2201 | +/***/ "react": | |
| 2202 | +/*!************************!*\ | |
| 2203 | + !*** external "React" ***! | |
| 2204 | + \************************/ | |
| 2205 | +/***/ ((module) => { | |
| 2206 | + | |
| 2207 | +"use strict"; | |
| 2208 | +module.exports = React; | |
| 2209 | + | |
| 2210 | +/***/ }), | |
| 2211 | + | |
| 2212 | +/***/ "react-dom": | |
| 2213 | +/*!***************************!*\ | |
| 2214 | + !*** external "ReactDOM" ***! | |
| 2215 | + \***************************/ | |
| 2216 | +/***/ ((module) => { | |
| 2217 | + | |
| 2218 | +"use strict"; | |
| 2219 | +module.exports = ReactDOM; | |
| 2220 | + | |
| 2221 | +/***/ }), | |
| 2222 | + | |
| 4391 | 2223 | /***/ "@elementor/ui": |
| 4392 | 2224 | /*!*********************************!*\ |
| 4393 | 2225 | !*** external "elementorV2.ui" ***! |
| 4394 | 2226 | \*********************************/ |
| @@ -4420,8 +2252,52 @@ | ||
| 4420 | 2252 | module.exports = elementorV2.ui['Button']; |
| 4421 | 2253 | |
| 4422 | 2254 | /***/ }), |
| 4423 | 2255 | |
| 2256 | +/***/ "@elementor/ui/Card": | |
| 2257 | +/*!*****************************************!*\ | |
| 2258 | + !*** external "elementorV2.ui['Card']" ***! | |
| 2259 | + \*****************************************/ | |
| 2260 | +/***/ ((module) => { | |
| 2261 | + | |
| 2262 | +"use strict"; | |
| 2263 | +module.exports = elementorV2.ui['Card']; | |
| 2264 | + | |
| 2265 | +/***/ }), | |
| 2266 | + | |
| 2267 | +/***/ "@elementor/ui/CardActions": | |
| 2268 | +/*!************************************************!*\ | |
| 2269 | + !*** external "elementorV2.ui['CardActions']" ***! | |
| 2270 | + \************************************************/ | |
| 2271 | +/***/ ((module) => { | |
| 2272 | + | |
| 2273 | +"use strict"; | |
| 2274 | +module.exports = elementorV2.ui['CardActions']; | |
| 2275 | + | |
| 2276 | +/***/ }), | |
| 2277 | + | |
| 2278 | +/***/ "@elementor/ui/CardContent": | |
| 2279 | +/*!************************************************!*\ | |
| 2280 | + !*** external "elementorV2.ui['CardContent']" ***! | |
| 2281 | + \************************************************/ | |
| 2282 | +/***/ ((module) => { | |
| 2283 | + | |
| 2284 | +"use strict"; | |
| 2285 | +module.exports = elementorV2.ui['CardContent']; | |
| 2286 | + | |
| 2287 | +/***/ }), | |
| 2288 | + | |
| 2289 | +/***/ "@elementor/ui/CardMedia": | |
| 2290 | +/*!**********************************************!*\ | |
| 2291 | + !*** external "elementorV2.ui['CardMedia']" ***! | |
| 2292 | + \**********************************************/ | |
| 2293 | +/***/ ((module) => { | |
| 2294 | + | |
| 2295 | +"use strict"; | |
| 2296 | +module.exports = elementorV2.ui['CardMedia']; | |
| 2297 | + | |
| 2298 | +/***/ }), | |
| 2299 | + | |
| 4424 | 2300 | /***/ "@elementor/ui/Dialog": |
| 4425 | 2301 | /*!*******************************************!*\ |
| 4426 | 2302 | !*** external "elementorV2.ui['Dialog']" ***! |
| 4427 | 2303 | \*******************************************/ |
| @@ -4497,8 +2373,19 @@ | ||
| 4497 | 2373 | module.exports = elementorV2.ui['DialogTitle']; |
| 4498 | 2374 | |
| 4499 | 2375 | /***/ }), |
| 4500 | 2376 | |
| 2377 | +/***/ "@elementor/ui/Divider": | |
| 2378 | +/*!********************************************!*\ | |
| 2379 | + !*** external "elementorV2.ui['Divider']" ***! | |
| 2380 | + \********************************************/ | |
| 2381 | +/***/ ((module) => { | |
| 2382 | + | |
| 2383 | +"use strict"; | |
| 2384 | +module.exports = elementorV2.ui['Divider']; | |
| 2385 | + | |
| 2386 | +/***/ }), | |
| 2387 | + | |
| 4501 | 2388 | /***/ "@elementor/ui/Link": |
| 4502 | 2389 | /*!*****************************************!*\ |
| 4503 | 2390 | !*** external "elementorV2.ui['Link']" ***! |
| 4504 | 2391 | \*****************************************/ |
| @@ -4585,27 +2472,184 @@ | ||
| 4585 | 2472 | module.exports = wp.i18n; |
| 4586 | 2473 | |
| 4587 | 2474 | /***/ }), |
| 4588 | 2475 | |
| 4589 | -/***/ "react": | |
| 4590 | -/*!************************!*\ | |
| 4591 | - !*** external "React" ***! | |
| 4592 | - \************************/ | |
| 2476 | +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 2477 | +/*!******************************************************************!*\ | |
| 2478 | + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 2479 | + \******************************************************************/ | |
| 4593 | 2480 | /***/ ((module) => { |
| 4594 | 2481 | |
| 4595 | -"use strict"; | |
| 4596 | -module.exports = React; | |
| 2482 | +function _arrayLikeToArray(r, a) { | |
| 2483 | + (null == a || a > r.length) && (a = r.length); | |
| 2484 | + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 2485 | + return n; | |
| 2486 | +} | |
| 2487 | +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4597 | 2488 | |
| 4598 | 2489 | /***/ }), |
| 4599 | 2490 | |
| 4600 | -/***/ "react-dom": | |
| 4601 | -/*!***************************!*\ | |
| 4602 | - !*** external "ReactDOM" ***! | |
| 4603 | - \***************************/ | |
| 2491 | +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 2492 | +/*!****************************************************************!*\ | |
| 2493 | + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 2494 | + \****************************************************************/ | |
| 4604 | 2495 | /***/ ((module) => { |
| 4605 | 2496 | |
| 4606 | -"use strict"; | |
| 4607 | -module.exports = ReactDOM; | |
| 2497 | +function _arrayWithHoles(r) { | |
| 2498 | + if (Array.isArray(r)) return r; | |
| 2499 | +} | |
| 2500 | +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2501 | + | |
| 2502 | +/***/ }), | |
| 2503 | + | |
| 2504 | +/***/ "../node_modules/@babel/runtime/helpers/extends.js": | |
| 2505 | +/*!*********************************************************!*\ | |
| 2506 | + !*** ../node_modules/@babel/runtime/helpers/extends.js ***! | |
| 2507 | + \*********************************************************/ | |
| 2508 | +/***/ ((module) => { | |
| 2509 | + | |
| 2510 | +function _extends() { | |
| 2511 | + return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) { | |
| 2512 | + for (var e = 1; e < arguments.length; e++) { | |
| 2513 | + var t = arguments[e]; | |
| 2514 | + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | |
| 2515 | + } | |
| 2516 | + return n; | |
| 2517 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments); | |
| 2518 | +} | |
| 2519 | +module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2520 | + | |
| 2521 | +/***/ }), | |
| 2522 | + | |
| 2523 | +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 2524 | +/*!***********************************************************************!*\ | |
| 2525 | + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 2526 | + \***********************************************************************/ | |
| 2527 | +/***/ ((module) => { | |
| 2528 | + | |
| 2529 | +function _interopRequireDefault(e) { | |
| 2530 | + return e && e.__esModule ? e : { | |
| 2531 | + "default": e | |
| 2532 | + }; | |
| 2533 | +} | |
| 2534 | +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2535 | + | |
| 2536 | +/***/ }), | |
| 2537 | + | |
| 2538 | +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": | |
| 2539 | +/*!**********************************************************************!*\ | |
| 2540 | + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! | |
| 2541 | + \**********************************************************************/ | |
| 2542 | +/***/ ((module) => { | |
| 2543 | + | |
| 2544 | +function _iterableToArrayLimit(r, l) { | |
| 2545 | + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 2546 | + if (null != t) { | |
| 2547 | + var e, | |
| 2548 | + n, | |
| 2549 | + i, | |
| 2550 | + u, | |
| 2551 | + a = [], | |
| 2552 | + f = !0, | |
| 2553 | + o = !1; | |
| 2554 | + try { | |
| 2555 | + if (i = (t = t.call(r)).next, 0 === l) { | |
| 2556 | + if (Object(t) !== t) return; | |
| 2557 | + f = !1; | |
| 2558 | + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 2559 | + } catch (r) { | |
| 2560 | + o = !0, n = r; | |
| 2561 | + } finally { | |
| 2562 | + try { | |
| 2563 | + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 2564 | + } finally { | |
| 2565 | + if (o) throw n; | |
| 2566 | + } | |
| 2567 | + } | |
| 2568 | + return a; | |
| 2569 | + } | |
| 2570 | +} | |
| 2571 | +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2572 | + | |
| 2573 | +/***/ }), | |
| 2574 | + | |
| 2575 | +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 2576 | +/*!*****************************************************************!*\ | |
| 2577 | + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 2578 | + \*****************************************************************/ | |
| 2579 | +/***/ ((module) => { | |
| 2580 | + | |
| 2581 | +function _nonIterableRest() { | |
| 2582 | + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 2583 | +} | |
| 2584 | +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2585 | + | |
| 2586 | +/***/ }), | |
| 2587 | + | |
| 2588 | +/***/ "../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js": | |
| 2589 | +/*!**************************************************************************!*\ | |
| 2590 | + !*** ../node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js ***! | |
| 2591 | + \**************************************************************************/ | |
| 2592 | +/***/ ((module) => { | |
| 2593 | + | |
| 2594 | +function _objectDestructuringEmpty(t) { | |
| 2595 | + if (null == t) throw new TypeError("Cannot destructure " + t); | |
| 2596 | +} | |
| 2597 | +module.exports = _objectDestructuringEmpty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2598 | + | |
| 2599 | +/***/ }), | |
| 2600 | + | |
| 2601 | +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": | |
| 2602 | +/*!***************************************************************!*\ | |
| 2603 | + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! | |
| 2604 | + \***************************************************************/ | |
| 2605 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2606 | + | |
| 2607 | +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); | |
| 2608 | +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); | |
| 2609 | +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 2610 | +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); | |
| 2611 | +function _slicedToArray(r, e) { | |
| 2612 | + return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 2613 | +} | |
| 2614 | +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2615 | + | |
| 2616 | +/***/ }), | |
| 2617 | + | |
| 2618 | +/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 2619 | +/*!********************************************************!*\ | |
| 2620 | + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 2621 | + \********************************************************/ | |
| 2622 | +/***/ ((module) => { | |
| 2623 | + | |
| 2624 | +function _typeof(o) { | |
| 2625 | + "@babel/helpers - typeof"; | |
| 2626 | + | |
| 2627 | + return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 2628 | + return typeof o; | |
| 2629 | + } : function (o) { | |
| 2630 | + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 2631 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 2632 | +} | |
| 2633 | +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2634 | + | |
| 2635 | +/***/ }), | |
| 2636 | + | |
| 2637 | +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": | |
| 2638 | +/*!****************************************************************************!*\ | |
| 2639 | + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! | |
| 2640 | + \****************************************************************************/ | |
| 2641 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2642 | + | |
| 2643 | +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 2644 | +function _unsupportedIterableToArray(r, a) { | |
| 2645 | + if (r) { | |
| 2646 | + if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 2647 | + var t = {}.toString.call(r).slice(8, -1); | |
| 2648 | + 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; | |
| 2649 | + } | |
| 2650 | +} | |
| 2651 | +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4608 | 2652 | |
| 4609 | 2653 | /***/ }) |
| 4610 | 2654 | |
| 4611 | 2655 | /******/ }); |