PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.0-beta1
Elementor Website Builder – more than just a page builder v4.0.0-beta1
4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 All 456 releases
← All changes | assets/js/editor-one-menu.js +0 -573 4.2.4 → 4.0.0-beta1 View file →
@@ -1,491 +1,7 @@
1 1 /******/ (() => { // webpackBootstrap
2 2 /******/ var __webpack_modules__ = ({
3 3
4 -/***/ "../assets/dev/js/editor/utils/editor-one-events.js":
5 -/*!**********************************************************!*\
6 - !*** ../assets/dev/js/editor/utils/editor-one-events.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 -Object.defineProperty(exports, "__esModule", ({
15 - value: true
16 -}));
17 -exports["default"] = exports.createDebouncedWidgetPanelSearch = exports.createDebouncedFinderSearch = exports.EditorOneEventManager = void 0;
18 -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
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 -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22 -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23 -var EditorOneEventManager = exports.EditorOneEventManager = /*#__PURE__*/function () {
24 - function EditorOneEventManager() {
25 - (0, _classCallCheck2.default)(this, EditorOneEventManager);
26 - }
27 - return (0, _createClass2.default)(EditorOneEventManager, null, [{
28 - key: "getEventsManager",
29 - value: function getEventsManager() {
30 - var _elementorCommon;
31 - return (_elementorCommon = elementorCommon) === null || _elementorCommon === void 0 ? void 0 : _elementorCommon.eventsManager;
32 - }
33 - }, {
34 - key: "getConfig",
35 - value: function getConfig() {
36 - var _this$getEventsManage;
37 - return (_this$getEventsManage = this.getEventsManager()) === null || _this$getEventsManage === void 0 ? void 0 : _this$getEventsManage.config;
38 - }
39 - }, {
40 - key: "canSendEvents",
41 - value: function canSendEvents() {
42 - var _elementorCommon2;
43 - return ((_elementorCommon2 = elementorCommon) === null || _elementorCommon2 === void 0 || (_elementorCommon2 = _elementorCommon2.config) === null || _elementorCommon2 === void 0 || (_elementorCommon2 = _elementorCommon2.editor_events) === null || _elementorCommon2 === void 0 ? void 0 : _elementorCommon2.can_send_events) || false;
44 - }
45 - }, {
46 - key: "isEventsManagerAvailable",
47 - value: function isEventsManagerAvailable() {
48 - var eventsManager = this.getEventsManager();
49 - return eventsManager && 'function' === typeof eventsManager.dispatchEvent;
50 - }
51 - }, {
52 - key: "dispatchEvent",
53 - value: function dispatchEvent(eventName, payload) {
54 - try {
55 - if (!this.isEventsManagerAvailable() || !this.canSendEvents()) {
56 - return false;
57 - }
58 - this.getEventsManager().dispatchEvent(eventName, payload);
59 - return true;
60 - } catch (error) {
61 - return false;
62 - }
63 - }
64 - }, {
65 - key: "toLowerSnake",
66 - value: function toLowerSnake(value) {
67 - if (!value || 'string' !== typeof value) {
68 - return value;
69 - }
70 - return value.replace(/\s+/g, '_').toLowerCase();
71 - }
72 - }, {
73 - key: "decodeHtmlEntities",
74 - value: function decodeHtmlEntities(text) {
75 - if (!text || 'string' !== typeof text) {
76 - return text;
77 - }
78 - var doc = new DOMParser().parseFromString(text, 'text/html');
79 - return doc.body.textContent || text;
80 - }
81 - }, {
82 - key: "isInEditorContext",
83 - value: function isInEditorContext() {
84 - var _window$elementor;
85 - return 'undefined' !== typeof window.elementor && !!((_window$elementor = window.elementor) !== null && _window$elementor !== void 0 && _window$elementor.documents);
86 - }
87 - }, {
88 - key: "getFinderContext",
89 - value: function getFinderContext() {
90 - var _config$appTypes, _config$appTypes2, _config$locations, _config$locations2;
91 - var config = this.getConfig();
92 - var isEditor = this.isInEditorContext();
93 - return {
94 - windowName: isEditor ? config === null || config === void 0 || (_config$appTypes = config.appTypes) === null || _config$appTypes === void 0 ? void 0 : _config$appTypes.editor : config === null || config === void 0 || (_config$appTypes2 = config.appTypes) === null || _config$appTypes2 === void 0 ? void 0 : _config$appTypes2.wpAdmin,
95 - targetLocation: this.toLowerSnake(isEditor ? config === null || config === void 0 || (_config$locations = config.locations) === null || _config$locations === void 0 ? void 0 : _config$locations.topBar : config === null || config === void 0 || (_config$locations2 = config.locations) === null || _config$locations2 === void 0 ? void 0 : _config$locations2.sidebar)
96 - };
97 - }
98 - }, {
99 - key: "createBasePayload",
100 - value: function createBasePayload() {
101 - var _config$appTypes$edit, _config$appTypes3, _config$appTypes$edit2, _config$appTypes4;
102 - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
103 - var config = this.getConfig();
104 - return _objectSpread({
105 - app_type: (_config$appTypes$edit = config === null || config === void 0 || (_config$appTypes3 = config.appTypes) === null || _config$appTypes3 === void 0 ? void 0 : _config$appTypes3.editor) !== null && _config$appTypes$edit !== void 0 ? _config$appTypes$edit : 'editor',
106 - window_name: (_config$appTypes$edit2 = config === null || config === void 0 || (_config$appTypes4 = config.appTypes) === null || _config$appTypes4 === void 0 ? void 0 : _config$appTypes4.editor) !== null && _config$appTypes$edit2 !== void 0 ? _config$appTypes$edit2 : 'editor'
107 - }, overrides);
108 - }
109 - }, {
110 - key: "sendTopBarPublishDropdown",
111 - value: function sendTopBarPublishDropdown(targetName) {
112 - var _config$names, _config$triggers, _config$targetTypes, _config$interactionRe, _config$locations3, _config$secondaryLoca, _config$targetTypes2;
113 - var config = this.getConfig();
114 - return this.dispatchEvent(config === null || config === void 0 || (_config$names = config.names) === null || _config$names === void 0 || (_config$names = _config$names.editorOne) === null || _config$names === void 0 ? void 0 : _config$names.topBarPublishDropdown, this.createBasePayload({
115 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers = config.triggers) === null || _config$triggers === void 0 ? void 0 : _config$triggers.click),
116 - target_type: config === null || config === void 0 || (_config$targetTypes = config.targetTypes) === null || _config$targetTypes === void 0 ? void 0 : _config$targetTypes.dropdownItem,
117 - target_name: targetName,
118 - interaction_result: config === null || config === void 0 || (_config$interactionRe = config.interactionResults) === null || _config$interactionRe === void 0 ? void 0 : _config$interactionRe.actionSelected,
119 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations3 = config.locations) === null || _config$locations3 === void 0 ? void 0 : _config$locations3.topBar),
120 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca = config.secondaryLocations) === null || _config$secondaryLoca === void 0 ? void 0 : _config$secondaryLoca.publishDropdown),
121 - location_l2: config === null || config === void 0 || (_config$targetTypes2 = config.targetTypes) === null || _config$targetTypes2 === void 0 ? void 0 : _config$targetTypes2.dropdownItem,
122 - interaction_description: 'User selected an action from the publish dropdown'
123 - }));
124 - }
125 - }, {
126 - key: "sendTopBarPageList",
127 - value: function sendTopBarPageList(targetName) {
128 - var _config$names2, _config$triggers2, _config$targetTypes3, _config$interactionRe2, _config$interactionRe3, _config$locations4, _config$secondaryLoca2, _config$targetTypes4;
129 - var isCreate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
130 - var config = this.getConfig();
131 - return this.dispatchEvent(config === null || config === void 0 || (_config$names2 = config.names) === null || _config$names2 === void 0 || (_config$names2 = _config$names2.editorOne) === null || _config$names2 === void 0 ? void 0 : _config$names2.topBarPageList, this.createBasePayload({
132 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers2 = config.triggers) === null || _config$triggers2 === void 0 ? void 0 : _config$triggers2.click),
133 - target_type: config === null || config === void 0 || (_config$targetTypes3 = config.targetTypes) === null || _config$targetTypes3 === void 0 ? void 0 : _config$targetTypes3.dropdownItem,
134 - target_name: targetName,
135 - interaction_result: isCreate ? config === null || config === void 0 || (_config$interactionRe2 = config.interactionResults) === null || _config$interactionRe2 === void 0 ? void 0 : _config$interactionRe2.create : config === null || config === void 0 || (_config$interactionRe3 = config.interactionResults) === null || _config$interactionRe3 === void 0 ? void 0 : _config$interactionRe3.navigate,
136 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations4 = config.locations) === null || _config$locations4 === void 0 ? void 0 : _config$locations4.topBar),
137 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca2 = config.secondaryLocations) === null || _config$secondaryLoca2 === void 0 ? void 0 : _config$secondaryLoca2.pageListDropdown),
138 - location_l2: config === null || config === void 0 || (_config$targetTypes4 = config.targetTypes) === null || _config$targetTypes4 === void 0 ? void 0 : _config$targetTypes4.dropdownItem,
139 - interaction_description: 'User selected an action from the page list dropdown'
140 - }));
141 - }
142 - }, {
143 - key: "sendSiteSettingsSession",
144 - value: function sendSiteSettingsSession(_ref) {
145 - var _config$names3, _config$triggers3, _config$interactionRe4, _config$locations5, _config$secondaryLoca3;
146 - var targetType = _ref.targetType,
147 - _ref$visitedItems = _ref.visitedItems,
148 - visitedItems = _ref$visitedItems === void 0 ? [] : _ref$visitedItems,
149 - _ref$savedItems = _ref.savedItems,
150 - savedItems = _ref$savedItems === void 0 ? [] : _ref$savedItems,
151 - state = _ref.state;
152 - var config = this.getConfig();
153 - return this.dispatchEvent(config === null || config === void 0 || (_config$names3 = config.names) === null || _config$names3 === void 0 || (_config$names3 = _config$names3.editorOne) === null || _config$names3 === void 0 ? void 0 : _config$names3.siteSettingsSession, this.createBasePayload({
154 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers3 = config.triggers) === null || _config$triggers3 === void 0 ? void 0 : _config$triggers3.click),
155 - target_type: targetType,
156 - target_name: 'site_settings',
157 - interaction_result: config === null || config === void 0 || (_config$interactionRe4 = config.interactionResults) === null || _config$interactionRe4 === void 0 ? void 0 : _config$interactionRe4.sessionEnd,
158 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations5 = config.locations) === null || _config$locations5 === void 0 ? void 0 : _config$locations5.leftPanel),
159 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca3 = config.secondaryLocations) === null || _config$secondaryLoca3 === void 0 ? void 0 : _config$secondaryLoca3.siteSettings),
160 - interaction_description: 'Records areas visited as part of the site setting session',
161 - metadata: {
162 - visited_items: visitedItems,
163 - saved_items: savedItems
164 - },
165 - state: state
166 - }));
167 - }
168 - }, {
169 - key: "sendELibraryNav",
170 - value: function sendELibraryNav(tabName) {
171 - var _config$names4, _config$triggers4, _config$targetTypes5, _config$interactionRe5, _config$locations6, _config$secondaryLoca4;
172 - var config = this.getConfig();
173 - return this.dispatchEvent(config === null || config === void 0 || (_config$names4 = config.names) === null || _config$names4 === void 0 || (_config$names4 = _config$names4.editorOne) === null || _config$names4 === void 0 ? void 0 : _config$names4.eLibraryNav, this.createBasePayload({
174 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers4 = config.triggers) === null || _config$triggers4 === void 0 ? void 0 : _config$triggers4.tabSelect),
175 - target_type: config === null || config === void 0 || (_config$targetTypes5 = config.targetTypes) === null || _config$targetTypes5 === void 0 ? void 0 : _config$targetTypes5.tab,
176 - target_name: this.toLowerSnake(tabName),
177 - interaction_result: config === null || config === void 0 || (_config$interactionRe5 = config.interactionResults) === null || _config$interactionRe5 === void 0 ? void 0 : _config$interactionRe5.tabChanged,
178 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations6 = config.locations) === null || _config$locations6 === void 0 ? void 0 : _config$locations6.elementorLibrary),
179 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca4 = config.secondaryLocations) === null || _config$secondaryLoca4 === void 0 ? void 0 : _config$secondaryLoca4.libraryTabs),
180 - interaction_description: 'User navigates within elementor library'
181 - }));
182 - }
183 - }, {
184 - key: "sendELibraryInsert",
185 - value: function sendELibraryInsert(_ref2) {
186 - var _config$triggers5, _config$targetTypes6, _config$interactionRe6, _config$locations7, _config$secondaryLoca5, _config$names5;
187 - var assetId = _ref2.assetId,
188 - assetName = _ref2.assetName,
189 - libraryType = _ref2.libraryType,
190 - _ref2$proRequired = _ref2.proRequired,
191 - proRequired = _ref2$proRequired === void 0 ? false : _ref2$proRequired;
192 - var config = this.getConfig();
193 - var payload = this.createBasePayload({
194 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers5 = config.triggers) === null || _config$triggers5 === void 0 ? void 0 : _config$triggers5.insert),
195 - target_type: config === null || config === void 0 || (_config$targetTypes6 = config.targetTypes) === null || _config$targetTypes6 === void 0 ? void 0 : _config$targetTypes6.button,
196 - target_name: String(assetId),
197 - interaction_result: config === null || config === void 0 || (_config$interactionRe6 = config.interactionResults) === null || _config$interactionRe6 === void 0 ? void 0 : _config$interactionRe6.assetInserted,
198 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations7 = config.locations) === null || _config$locations7 === void 0 ? void 0 : _config$locations7.elementorLibrary),
199 - location_l1: this.toLowerSnake(libraryType),
200 - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca5 = config.secondaryLocations) === null || _config$secondaryLoca5 === void 0 ? void 0 : _config$secondaryLoca5.assetCard),
201 - interaction_description: 'User inserts block/pages from elementor library',
202 - metadata: {
203 - template_id: String(assetId),
204 - template_name: this.decodeHtmlEntities(assetName) || ''
205 - }
206 - });
207 - if (proRequired) {
208 - payload.state = 'pro_plan_required';
209 - }
210 - return this.dispatchEvent(config === null || config === void 0 || (_config$names5 = config.names) === null || _config$names5 === void 0 || (_config$names5 = _config$names5.editorOne) === null || _config$names5 === void 0 ? void 0 : _config$names5.eLibraryInsert, payload);
211 - }
212 - }, {
213 - key: "sendELibraryFavorite",
214 - value: function sendELibraryFavorite(_ref3) {
215 - var _config$triggers6, _config$targetTypes7, _config$interactionRe7, _config$locations8, _config$secondaryLoca6, _config$names6;
216 - var assetId = _ref3.assetId,
217 - assetName = _ref3.assetName,
218 - libraryType = _ref3.libraryType,
219 - isFavorite = _ref3.isFavorite,
220 - _ref3$proRequired = _ref3.proRequired,
221 - proRequired = _ref3$proRequired === void 0 ? false : _ref3$proRequired;
222 - var config = this.getConfig();
223 - var payload = this.createBasePayload({
224 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers6 = config.triggers) === null || _config$triggers6 === void 0 ? void 0 : _config$triggers6.click),
225 - target_type: config === null || config === void 0 || (_config$targetTypes7 = config.targetTypes) === null || _config$targetTypes7 === void 0 ? void 0 : _config$targetTypes7.toggle,
226 - target_name: String(assetId),
227 - interaction_result: config === null || config === void 0 || (_config$interactionRe7 = config.interactionResults) === null || _config$interactionRe7 === void 0 ? void 0 : _config$interactionRe7.assetFavorite,
228 - target_value: Boolean(isFavorite),
229 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations8 = config.locations) === null || _config$locations8 === void 0 ? void 0 : _config$locations8.elementorLibrary),
230 - location_l1: this.toLowerSnake(libraryType),
231 - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca6 = config.secondaryLocations) === null || _config$secondaryLoca6 === void 0 ? void 0 : _config$secondaryLoca6.assetCard),
232 - interaction_description: 'User favorite block/pages from elementor library',
233 - metadata: {
234 - template_id: String(assetId),
235 - template_name: this.decodeHtmlEntities(assetName) || ''
236 - }
237 - });
238 - if (proRequired) {
239 - payload.state = 'pro_plan_required';
240 - }
241 - return this.dispatchEvent(config === null || config === void 0 || (_config$names6 = config.names) === null || _config$names6 === void 0 || (_config$names6 = _config$names6.editorOne) === null || _config$names6 === void 0 ? void 0 : _config$names6.eLibraryFavorite, payload);
242 - }
243 - }, {
244 - key: "sendELibraryGenerateAi",
245 - value: function sendELibraryGenerateAi(_ref4) {
246 - var _config$names7, _config$triggers7, _config$targetTypes8, _config$interactionRe8, _config$locations9, _config$secondaryLoca7;
247 - var assetId = _ref4.assetId,
248 - assetName = _ref4.assetName,
249 - libraryType = _ref4.libraryType;
250 - var config = this.getConfig();
251 - return this.dispatchEvent(config === null || config === void 0 || (_config$names7 = config.names) === null || _config$names7 === void 0 || (_config$names7 = _config$names7.editorOne) === null || _config$names7 === void 0 ? void 0 : _config$names7.eLibraryGenerateAi, this.createBasePayload({
252 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers7 = config.triggers) === null || _config$triggers7 === void 0 ? void 0 : _config$triggers7.click),
253 - target_type: config === null || config === void 0 || (_config$targetTypes8 = config.targetTypes) === null || _config$targetTypes8 === void 0 ? void 0 : _config$targetTypes8.button,
254 - target_name: String(assetId),
255 - interaction_result: config === null || config === void 0 || (_config$interactionRe8 = config.interactionResults) === null || _config$interactionRe8 === void 0 ? void 0 : _config$interactionRe8.aiGenerate,
256 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations9 = config.locations) === null || _config$locations9 === void 0 ? void 0 : _config$locations9.elementorLibrary),
257 - location_l1: this.toLowerSnake(libraryType),
258 - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca7 = config.secondaryLocations) === null || _config$secondaryLoca7 === void 0 ? void 0 : _config$secondaryLoca7.assetCard),
259 - interaction_description: 'User generated block/page based on a library asset',
260 - metadata: {
261 - template_id: String(assetId),
262 - template_name: this.decodeHtmlEntities(assetName) || ''
263 - }
264 - }));
265 - }
266 - }, {
267 - key: "sendFinderSearchInput",
268 - value: function sendFinderSearchInput(_ref5) {
269 - var _config$triggers8, _config$targetTypes9, _config$interactionRe9, _config$interactionRe0, _config$secondaryLoca8, _config$names8;
270 - var resultsCount = _ref5.resultsCount,
271 - _ref5$searchTerm = _ref5.searchTerm,
272 - searchTerm = _ref5$searchTerm === void 0 ? null : _ref5$searchTerm;
273 - var config = this.getConfig();
274 - var hasResults = resultsCount > 0;
275 - var finderContext = this.getFinderContext();
276 - var payload = this.createBasePayload({
277 - window_name: finderContext.windowName,
278 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers8 = config.triggers) === null || _config$triggers8 === void 0 ? void 0 : _config$triggers8.typing),
279 - target_type: config === null || config === void 0 || (_config$targetTypes9 = config.targetTypes) === null || _config$targetTypes9 === void 0 ? void 0 : _config$targetTypes9.searchInput,
280 - target_name: 'finder',
281 - interaction_result: hasResults ? config === null || config === void 0 || (_config$interactionRe9 = config.interactionResults) === null || _config$interactionRe9 === void 0 ? void 0 : _config$interactionRe9.resultsUpdated : config === null || config === void 0 || (_config$interactionRe0 = config.interactionResults) === null || _config$interactionRe0 === void 0 ? void 0 : _config$interactionRe0.noResults,
282 - target_location: finderContext.targetLocation,
283 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca8 = config.secondaryLocations) === null || _config$secondaryLoca8 === void 0 ? void 0 : _config$secondaryLoca8.finder),
284 - interaction_description: 'Finder search input, follows debounce behavior',
285 - metadata: {
286 - results_count: resultsCount
287 - }
288 - });
289 - if (!hasResults && searchTerm) {
290 - payload.metadata.search_term = searchTerm;
291 - }
292 - return this.dispatchEvent(config === null || config === void 0 || (_config$names8 = config.names) === null || _config$names8 === void 0 || (_config$names8 = _config$names8.editorOne) === null || _config$names8 === void 0 ? void 0 : _config$names8.finderSearchInput, payload);
293 - }
294 - }, {
295 - key: "sendFinderResultSelect",
296 - value: function sendFinderResultSelect(choice) {
297 - var _config$names9, _config$triggers9, _config$targetTypes0, _config$interactionRe1, _config$secondaryLoca9, _config$secondaryLoca0;
298 - var config = this.getConfig();
299 - var finderContext = this.getFinderContext();
300 - return this.dispatchEvent(config === null || config === void 0 || (_config$names9 = config.names) === null || _config$names9 === void 0 || (_config$names9 = _config$names9.editorOne) === null || _config$names9 === void 0 ? void 0 : _config$names9.finderResultSelect, this.createBasePayload({
301 - window_name: finderContext.windowName,
302 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers9 = config.triggers) === null || _config$triggers9 === void 0 ? void 0 : _config$triggers9.click),
303 - target_type: config === null || config === void 0 || (_config$targetTypes0 = config.targetTypes) === null || _config$targetTypes0 === void 0 ? void 0 : _config$targetTypes0.searchResult,
304 - target_name: choice,
305 - interaction_result: config === null || config === void 0 || (_config$interactionRe1 = config.interactionResults) === null || _config$interactionRe1 === void 0 ? void 0 : _config$interactionRe1.selected,
306 - target_location: finderContext.targetLocation,
307 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca9 = config.secondaryLocations) === null || _config$secondaryLoca9 === void 0 ? void 0 : _config$secondaryLoca9.finder),
308 - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca0 = config.secondaryLocations) === null || _config$secondaryLoca0 === void 0 ? void 0 : _config$secondaryLoca0.finderResults),
309 - interaction_description: 'Finder search results was selected'
310 - }));
311 - }
312 - }, {
313 - key: "sendCanvasEmptyBoxAction",
314 - value: function sendCanvasEmptyBoxAction(_ref6) {
315 - var _config$triggers0, _config$targetTypes1, _config$interactionRe10, _config$locations0, _config$secondaryLoca1, _config$names0;
316 - var targetName = _ref6.targetName,
317 - _ref6$metadata = _ref6.metadata,
318 - metadata = _ref6$metadata === void 0 ? {} : _ref6$metadata,
319 - _ref6$containerCreate = _ref6.containerCreated,
320 - containerCreated = _ref6$containerCreate === void 0 ? null : _ref6$containerCreate;
321 - var config = this.getConfig();
322 - var payload = this.createBasePayload({
323 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers0 = config.triggers) === null || _config$triggers0 === void 0 ? void 0 : _config$triggers0.click),
324 - target_type: config === null || config === void 0 || (_config$targetTypes1 = config.targetTypes) === null || _config$targetTypes1 === void 0 ? void 0 : _config$targetTypes1.buttons,
325 - target_name: targetName,
326 - interaction_result: config === null || config === void 0 || (_config$interactionRe10 = config.interactionResults) === null || _config$interactionRe10 === void 0 ? void 0 : _config$interactionRe10.selected,
327 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations0 = config.locations) === null || _config$locations0 === void 0 ? void 0 : _config$locations0.canvas),
328 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca1 = config.secondaryLocations) === null || _config$secondaryLoca1 === void 0 ? void 0 : _config$secondaryLoca1.emptyBox),
329 - interaction_description: 'Empty box on canvas actions'
330 - });
331 - if (Object.keys(metadata).length > 0) {
332 - payload.metadata = metadata;
333 - }
334 - if (containerCreated !== null) {
335 - payload.state = containerCreated;
336 - }
337 - return this.dispatchEvent(config === null || config === void 0 || (_config$names0 = config.names) === null || _config$names0 === void 0 || (_config$names0 = _config$names0.editorOne) === null || _config$names0 === void 0 ? void 0 : _config$names0.canvasEmptyBoxAction, payload);
338 - }
339 - }, {
340 - key: "sendWidgetPanelSearch",
341 - value: function sendWidgetPanelSearch(_ref7) {
342 - var _config$triggers1, _config$targetTypes10, _config$interactionRe11, _config$interactionRe12, _config$locations1, _config$locations10, _config$secondaryLoca10, _config$names1;
343 - var resultsCount = _ref7.resultsCount,
344 - _ref7$userInput = _ref7.userInput,
345 - userInput = _ref7$userInput === void 0 ? null : _ref7$userInput;
346 - var config = this.getConfig();
347 - var hasResults = resultsCount > 0;
348 - var payload = this.createBasePayload({
349 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers1 = config.triggers) === null || _config$triggers1 === void 0 ? void 0 : _config$triggers1.typing),
350 - target_type: config === null || config === void 0 || (_config$targetTypes10 = config.targetTypes) === null || _config$targetTypes10 === void 0 ? void 0 : _config$targetTypes10.searchWidget,
351 - target_name: 'search_widget',
352 - interaction_result: hasResults ? config === null || config === void 0 || (_config$interactionRe11 = config.interactionResults) === null || _config$interactionRe11 === void 0 ? void 0 : _config$interactionRe11.resultsUpdated : config === null || config === void 0 || (_config$interactionRe12 = config.interactionResults) === null || _config$interactionRe12 === void 0 ? void 0 : _config$interactionRe12.noResults,
353 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations1 = config.locations) === null || _config$locations1 === void 0 ? void 0 : _config$locations1.leftPanel),
354 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$locations10 = config.locations) === null || _config$locations10 === void 0 ? void 0 : _config$locations10.widgetPanel),
355 - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca10 = config.secondaryLocations) === null || _config$secondaryLoca10 === void 0 ? void 0 : _config$secondaryLoca10.searchBar),
356 - interaction_description: 'Widget search input, follows debounce behavior'
357 - });
358 - if (!hasResults && userInput) {
359 - payload.metadata = {
360 - user_input: userInput
361 - };
362 - }
363 - return this.dispatchEvent(config === null || config === void 0 || (_config$names1 = config.names) === null || _config$names1 === void 0 || (_config$names1 = _config$names1.editorOne) === null || _config$names1 === void 0 ? void 0 : _config$names1.widgetPanelSearch, payload);
364 - }
365 - }, {
366 - key: "createWpDashPayload",
367 - value: function createWpDashPayload() {
368 - var _config$appTypes$wpDa, _config$appTypes5, _config$locations11;
369 - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
370 - var config = this.getConfig();
371 - return this.createBasePayload(_objectSpread({
372 - window_name: (_config$appTypes$wpDa = config === null || config === void 0 || (_config$appTypes5 = config.appTypes) === null || _config$appTypes5 === void 0 ? void 0 : _config$appTypes5.wpDash) !== null && _config$appTypes$wpDa !== void 0 ? _config$appTypes$wpDa : 'wpdash',
373 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations11 = config.locations) === null || _config$locations11 === void 0 ? void 0 : _config$locations11.wpDashAdmin),
374 - location_l2: ''
375 - }, overrides));
376 - }
377 - }, {
378 - key: "sendWpDashElementorMenuClick",
379 - value: function sendWpDashElementorMenuClick() {
380 - var _config$names10, _config$triggers10, _config$targetTypes11, _config$interactionRe13, _config$secondaryLoca11;
381 - var config = this.getConfig();
382 - return this.dispatchEvent(config === null || config === void 0 || (_config$names10 = config.names) === null || _config$names10 === void 0 || (_config$names10 = _config$names10.editorOne) === null || _config$names10 === void 0 ? void 0 : _config$names10.wpDashElementorMenuClick, this.createWpDashPayload({
383 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers10 = config.triggers) === null || _config$triggers10 === void 0 ? void 0 : _config$triggers10.click),
384 - target_type: config === null || config === void 0 || (_config$targetTypes11 = config.targetTypes) === null || _config$targetTypes11 === void 0 ? void 0 : _config$targetTypes11.wpDashAdminMenuItem,
385 - target_name: 'elementor_menu_item',
386 - interaction_result: config === null || config === void 0 || (_config$interactionRe13 = config.interactionResults) === null || _config$interactionRe13 === void 0 ? void 0 : _config$interactionRe13.elementorSideMenuOpened,
387 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca11 = config.secondaryLocations) === null || _config$secondaryLoca11 === void 0 ? void 0 : _config$secondaryLoca11.wpDashElementorCoreMenu),
388 - interaction_description: 'core_user_clicked_elementor_menu_item'
389 - }));
390 - }
391 - }, {
392 - key: "sendWpDashEditorSubMenuHover",
393 - value: function sendWpDashEditorSubMenuHover() {
394 - var _config$names11, _config$triggers11, _config$targetTypes12, _config$interactionRe14, _config$secondaryLoca12;
395 - var config = this.getConfig();
396 - return this.dispatchEvent(config === null || config === void 0 || (_config$names11 = config.names) === null || _config$names11 === void 0 || (_config$names11 = _config$names11.editorOne) === null || _config$names11 === void 0 ? void 0 : _config$names11.wpDashEditorSubMenuHover, this.createWpDashPayload({
397 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers11 = config.triggers) === null || _config$triggers11 === void 0 ? void 0 : _config$triggers11.hover),
398 - target_type: config === null || config === void 0 || (_config$targetTypes12 = config.targetTypes) === null || _config$targetTypes12 === void 0 ? void 0 : _config$targetTypes12.wpDashEditorMenu,
399 - target_name: 'wpdash_editor_sub_menu',
400 - interaction_result: config === null || config === void 0 || (_config$interactionRe14 = config.interactionResults) === null || _config$interactionRe14 === void 0 ? void 0 : _config$interactionRe14.editorSubMenuOpened,
401 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca12 = config.secondaryLocations) === null || _config$secondaryLoca12 === void 0 ? void 0 : _config$secondaryLoca12.wpDashElementorCoreSubMenu),
402 - interaction_description: 'core_user_hovered_sub_menu'
403 - }));
404 - }
405 - }, {
406 - key: "sendWpDashThemeBuilderClick",
407 - value: function sendWpDashThemeBuilderClick() {
408 - var _config$names12, _config$triggers12, _config$targetTypes13, _config$interactionRe15, _config$secondaryLoca13;
409 - var config = this.getConfig();
410 - return this.dispatchEvent(config === null || config === void 0 || (_config$names12 = config.names) === null || _config$names12 === void 0 || (_config$names12 = _config$names12.editorOne) === null || _config$names12 === void 0 ? void 0 : _config$names12.wpDashThemeBuilderClick, this.createWpDashPayload({
411 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers12 = config.triggers) === null || _config$triggers12 === void 0 ? void 0 : _config$triggers12.click),
412 - target_type: config === null || config === void 0 || (_config$targetTypes13 = config.targetTypes) === null || _config$targetTypes13 === void 0 ? void 0 : _config$targetTypes13.wpDashSubMenuItem,
413 - target_name: 'theme_builder_menu_item',
414 - interaction_result: config === null || config === void 0 || (_config$interactionRe15 = config.interactionResults) === null || _config$interactionRe15 === void 0 ? void 0 : _config$interactionRe15.themeBuilderPromotionWindow,
415 - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca13 = config.secondaryLocations) === null || _config$secondaryLoca13 === void 0 ? void 0 : _config$secondaryLoca13.wpDashThemeBuilder),
416 - interaction_description: 'core_user_clicked_theme_builder_menu_item'
417 - }));
418 - }
419 - }, {
420 - key: "sendSidebarMenuItemClicked",
421 - value: function sendSidebarMenuItemClicked(_ref8) {
422 - var eventId = _ref8.eventId,
423 - groupEventId = _ref8.groupEventId;
424 - try {
425 - var _config$windowNames, _config$triggers13, _config$targetTypes14, _config$interactionRe16, _config$locations12, _config$names13;
426 - var config = this.getConfig();
427 - var payload = this.createBasePayload({
428 - window_name: config === null || config === void 0 || (_config$windowNames = config.windowNames) === null || _config$windowNames === void 0 ? void 0 : _config$windowNames.sidebarMenu,
429 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers13 = config.triggers) === null || _config$triggers13 === void 0 ? void 0 : _config$triggers13.click),
430 - target_type: config === null || config === void 0 || (_config$targetTypes14 = config.targetTypes) === null || _config$targetTypes14 === void 0 ? void 0 : _config$targetTypes14.link,
431 - target_name: eventId,
432 - interaction_result: config === null || config === void 0 || (_config$interactionRe16 = config.interactionResults) === null || _config$interactionRe16 === void 0 ? void 0 : _config$interactionRe16.pageOpened,
433 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations12 = config.locations) === null || _config$locations12 === void 0 ? void 0 : _config$locations12.sidebar)
434 - });
435 - if (groupEventId) {
436 - payload.location_l1 = groupEventId;
437 - }
438 - return this.dispatchEvent(config === null || config === void 0 || (_config$names13 = config.names) === null || _config$names13 === void 0 || (_config$names13 = _config$names13.editorOne) === null || _config$names13 === void 0 ? void 0 : _config$names13.sidebarMenuItemClicked, payload);
439 - } catch (error) {
440 - return false;
441 - }
442 - }
443 - }, {
444 - key: "sendSidebarMenuGroupToggled",
445 - value: function sendSidebarMenuGroupToggled(_ref9) {
446 - var eventId = _ref9.eventId,
447 - isExpanded = _ref9.isExpanded;
448 - try {
449 - var _config$interactionRe17, _config$interactionRe18, _config$names14, _config$windowNames2, _config$triggers14, _config$targetTypes15, _config$locations13;
450 - var config = this.getConfig();
451 - var interactionResult = isExpanded ? config === null || config === void 0 || (_config$interactionRe17 = config.interactionResults) === null || _config$interactionRe17 === void 0 ? void 0 : _config$interactionRe17.expanded : config === null || config === void 0 || (_config$interactionRe18 = config.interactionResults) === null || _config$interactionRe18 === void 0 ? void 0 : _config$interactionRe18.collapsed;
452 - return this.dispatchEvent(config === null || config === void 0 || (_config$names14 = config.names) === null || _config$names14 === void 0 || (_config$names14 = _config$names14.editorOne) === null || _config$names14 === void 0 ? void 0 : _config$names14.sidebarMenuGroupToggled, this.createBasePayload({
453 - window_name: config === null || config === void 0 || (_config$windowNames2 = config.windowNames) === null || _config$windowNames2 === void 0 ? void 0 : _config$windowNames2.sidebarMenu,
454 - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers14 = config.triggers) === null || _config$triggers14 === void 0 ? void 0 : _config$triggers14.click),
455 - target_type: config === null || config === void 0 || (_config$targetTypes15 = config.targetTypes) === null || _config$targetTypes15 === void 0 ? void 0 : _config$targetTypes15.toggle,
456 - target_name: eventId,
457 - interaction_result: interactionResult,
458 - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations13 = config.locations) === null || _config$locations13 === void 0 ? void 0 : _config$locations13.sidebar)
459 - }));
460 - } catch (error) {
461 - return false;
462 - }
463 - }
464 - }]);
465 -}();
466 -var createDebouncedFinderSearch = exports.createDebouncedFinderSearch = function createDebouncedFinderSearch() {
467 - var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 300;
468 - return _.debounce(function (resultsCount, searchTerm) {
469 - EditorOneEventManager.sendFinderSearchInput({
470 - resultsCount: resultsCount,
471 - searchTerm: searchTerm
472 - });
473 - }, delay);
474 -};
475 -var createDebouncedWidgetPanelSearch = exports.createDebouncedWidgetPanelSearch = function createDebouncedWidgetPanelSearch() {
476 - var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 2000;
477 - return _.debounce(function (resultsCount, userInput) {
478 - EditorOneEventManager.sendWidgetPanelSearch({
479 - resultsCount: resultsCount,
480 - userInput: userInput
481 - });
482 - }, delay);
483 -};
484 -var _default = exports["default"] = EditorOneEventManager;
485 -
486 -/***/ }),
487 -
488 4 /***/ "../modules/editor-one/assets/js/admin-menu/classes/flyout-interaction-handler.js":
489 5 /*!****************************************************************************************!*\
490 6 !*** ../modules/editor-one/assets/js/admin-menu/classes/flyout-interaction-handler.js ***!
491 7 \****************************************************************************************/
@@ -500,9 +16,8 @@
500 16 }));
501 17 exports.FlyoutInteractionHandler = void 0;
502 18 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
503 19 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
504 -var _menuEventsTracker = __webpack_require__(/*! ./menu-events-tracker */ "../modules/editor-one/assets/js/admin-menu/classes/menu-events-tracker.js");
505 20 var FlyoutInteractionHandler = exports.FlyoutInteractionHandler = /*#__PURE__*/function () {
506 21 function FlyoutInteractionHandler() {
507 22 (0, _classCallCheck2.default)(this, FlyoutInteractionHandler);
508 23 this.activeMenu = null;
@@ -594,9 +109,8 @@
594 109 }
595 110 }, {
596 111 key: "showFlyout",
597 112 value: function showFlyout(parentLi, flyoutMenu) {
598 - var wasAlreadyVisible = flyoutMenu.classList.contains('elementor-submenu-flyout-visible');
599 113 if (this.activeMenu && this.activeMenu !== flyoutMenu) {
600 114 this.hideFlyout(this.activeMenu);
601 115 }
602 116 this.exitPoint = null;
@@ -603,11 +117,8 @@
603 117 this.positionFlyout(parentLi, flyoutMenu);
604 118 flyoutMenu.classList.add('elementor-submenu-flyout-visible');
605 119 this.activeMenu = flyoutMenu;
606 120 this.activeParent = parentLi;
607 - if (!wasAlreadyVisible) {
608 - _menuEventsTracker.MenuEventsTracker.trackEditorSubMenuOpened();
609 - }
610 121 }
611 122 }, {
612 123 key: "hideFlyout",
613 124 value: function hideFlyout(flyoutMenu) {
@@ -907,9 +418,8 @@
907 418 editorFlyoutUl.appendChild(dividerLi);
908 419 }
909 420 var li = document.createElement('li');
910 421 li.setAttribute('data-group-id', item.group_id || '');
911 - li.setAttribute('data-slug', item.slug || '');
912 422 var a = document.createElement('a');
913 423 a.href = item.url;
914 424 a.textContent = item.label;
915 425 li.appendChild(a);
@@ -939,70 +449,8 @@
939 449 }();
940 450
941 451 /***/ }),
942 452
943 -/***/ "../modules/editor-one/assets/js/admin-menu/classes/menu-events-tracker.js":
944 -/*!*********************************************************************************!*\
945 - !*** ../modules/editor-one/assets/js/admin-menu/classes/menu-events-tracker.js ***!
946 - \*********************************************************************************/
947 -/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
948 -
949 -"use strict";
950 -
951 -
952 -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
953 -Object.defineProperty(exports, "__esModule", ({
954 - value: true
955 -}));
956 -exports.MenuEventsTracker = void 0;
957 -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
958 -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
959 -var _editorOneEvents = __webpack_require__(/*! elementor-editor-utils/editor-one-events */ "../assets/dev/js/editor/utils/editor-one-events.js");
960 -var SELECTORS = {
961 - elementorMenuLink: '#toplevel_page_elementor-home > a.menu-top',
962 - themeBuilderItem: '[data-slug="elementor-theme-builder"] a, .wp-submenu a[href*="page=elementor-theme-builder"]'
963 -};
964 -var MenuEventsTracker = exports.MenuEventsTracker = /*#__PURE__*/function () {
965 - function MenuEventsTracker() {
966 - (0, _classCallCheck2.default)(this, MenuEventsTracker);
967 - }
968 - return (0, _createClass2.default)(MenuEventsTracker, null, [{
969 - key: "attach",
970 - value: function attach() {
971 - this.attachElementorMenuClick();
972 - this.attachThemeBuilderClick();
973 - }
974 - }, {
975 - key: "attachElementorMenuClick",
976 - value: function attachElementorMenuClick() {
977 - var menuLink = document.querySelector(SELECTORS.elementorMenuLink);
978 - if (!menuLink) {
979 - return;
980 - }
981 - menuLink.addEventListener('click', function () {
982 - _editorOneEvents.EditorOneEventManager.sendWpDashElementorMenuClick();
983 - });
984 - }
985 - }, {
986 - key: "attachThemeBuilderClick",
987 - value: function attachThemeBuilderClick() {
988 - document.addEventListener('click', function (event) {
989 - var link = event.target.closest(SELECTORS.themeBuilderItem);
990 - if (link) {
991 - _editorOneEvents.EditorOneEventManager.sendWpDashThemeBuilderClick();
992 - }
993 - }, true);
994 - }
995 - }, {
996 - key: "trackEditorSubMenuOpened",
997 - value: function trackEditorSubMenuOpened() {
998 - _editorOneEvents.EditorOneEventManager.sendWpDashEditorSubMenuHover();
999 - }
1000 - }]);
1001 -}();
1002 -
1003 -/***/ }),
1004 -
1005 453 /***/ "../modules/editor-one/assets/js/admin-menu/classes/sidebar-menu-handler.js":
1006 454 /*!**********************************************************************************!*\
1007 455 !*** ../modules/editor-one/assets/js/admin-menu/classes/sidebar-menu-handler.js ***!
1008 456 \**********************************************************************************/
@@ -1129,27 +577,8 @@
1129 577 module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
1130 578
1131 579 /***/ }),
1132 580
1133 -/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
1134 -/*!****************************************************************!*\
1135 - !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
1136 - \****************************************************************/
1137 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1138 -
1139 -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
1140 -function _defineProperty(e, r, t) {
1141 - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
1142 - value: t,
1143 - enumerable: !0,
1144 - configurable: !0,
1145 - writable: !0
1146 - }) : e[r] = t, e;
1147 -}
1148 -module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
1149 -
1150 -/***/ }),
1151 -
1152 581 /***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
1153 582 /*!***********************************************************************!*\
1154 583 !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
1155 584 \***********************************************************************/
@@ -1261,9 +690,8 @@
1261 690 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1262 691 var _flyoutMenuRenderer = __webpack_require__(/*! ./classes/flyout-menu-renderer */ "../modules/editor-one/assets/js/admin-menu/classes/flyout-menu-renderer.js");
1263 692 var _sidebarMenuHandler = __webpack_require__(/*! ./classes/sidebar-menu-handler */ "../modules/editor-one/assets/js/admin-menu/classes/sidebar-menu-handler.js");
1264 693 var _flyoutInteractionHandler = __webpack_require__(/*! ./classes/flyout-interaction-handler */ "../modules/editor-one/assets/js/admin-menu/classes/flyout-interaction-handler.js");
1265 -var _menuEventsTracker = __webpack_require__(/*! ./classes/menu-events-tracker */ "../modules/editor-one/assets/js/admin-menu/classes/menu-events-tracker.js");
1266 694 var EditorOneMenu = /*#__PURE__*/function () {
1267 695 function EditorOneMenu() {
1268 696 var _window;
1269 697 (0, _classCallCheck2.default)(this, EditorOneMenu);
@@ -1271,9 +699,8 @@
1271 699 }
1272 700 return (0, _createClass2.default)(EditorOneMenu, [{
1273 701 key: "init",
1274 702 value: function init() {
1275 - _menuEventsTracker.MenuEventsTracker.attach();
1276 703 if (this.isSidebarNavigationActive()) {
1277 704 new _sidebarMenuHandler.SidebarMenuHandler();
1278 705 return;
1279 706 }