PluginProbe
Elementor Website Builder – more than just a page builder / 4.1.0-beta1
Elementor Website Builder – more than just a page builder v4.1.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-sidebar-navigation.js +7 -539 4.2.4 → 4.1.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 /***/ "../assets/dev/js/utils/react.js":
489 5 /*!***************************************!*\
490 6 !*** ../assets/dev/js/utils/react.js ***!
491 7 \***************************************/
@@ -611,9 +127,8 @@
611 127 }));
612 128 exports["default"] = void 0;
613 129 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
614 130 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
615 -var _editorOneEvents = __webpack_require__(/*! elementor-editor-utils/editor-one-events */ "../assets/dev/js/editor/utils/editor-one-events.js");
616 131 var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
617 132 var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
618 133 var CollapsedMenuItemPopover = function CollapsedMenuItemPopover(_ref) {
619 134 var item = _ref.item,
@@ -625,14 +140,8 @@
625 140 IconComponent = _ref.IconComponent,
626 141 isActive = _ref.isActive,
627 142 onMouseEnter = _ref.onMouseEnter,
628 143 anchorRef = _ref.anchorRef;
629 - var handleChildClick = function handleChildClick(childItem) {
630 - _editorOneEvents.EditorOneEventManager.sendSidebarMenuItemClicked({
631 - eventId: childItem.event_id,
632 - groupEventId: item.event_id
633 - });
634 - };
635 144 return /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
636 145 disablePadding: true,
637 146 dense: true,
638 147 disableGutters: true,
@@ -676,11 +185,8 @@
676 185 }
677 186 }, /*#__PURE__*/_react.default.createElement(_shared.PopoverListItemButton, {
678 187 component: "a",
679 188 href: childItem.url,
680 - onClick: function onClick() {
681 - return handleChildClick(childItem);
682 - },
683 189 selected: childItem.slug === activeChildSlug
684 190 }, /*#__PURE__*/_react.default.createElement(_ui.ListItemText, {
685 191 primary: childItem.label,
686 192 primaryTypographyProps: {
@@ -804,9 +310,8 @@
804 310 exports["default"] = void 0;
805 311 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
806 312 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
807 313 var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
808 -var _editorOneEvents = __webpack_require__(/*! elementor-editor-utils/editor-one-events */ "../assets/dev/js/editor/utils/editor-one-events.js");
809 314 var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
810 315 var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
811 316 var _collapsedMenuItemPopover = _interopRequireDefault(__webpack_require__(/*! ./collapsed-menu-item-popover */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-popover.js"));
812 317 var _collapsedMenuItemTooltip = _interopRequireDefault(__webpack_require__(/*! ./collapsed-menu-item-tooltip */ "../modules/editor-one/assets/js/sidebar-navigation/components/collapsed-menu/collapsed-menu-item-tooltip.js"));
@@ -833,11 +338,8 @@
833 338 }
834 339 };
835 340 var handleClick = function handleClick() {
836 341 if (!hasChildren) {
837 - _editorOneEvents.EditorOneEventManager.sendSidebarMenuItemClicked({
838 - eventId: item.event_id
839 - });
840 342 window.location.href = item.url;
841 343 }
842 344 };
843 345 return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, hasChildren ? /*#__PURE__*/_react.default.createElement(_collapsedMenuItemPopover.default, {
@@ -1590,9 +1092,8 @@
1590 1092 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1591 1093 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
1592 1094 var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
1593 1095 var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
1594 -var _editorOneEvents = __webpack_require__(/*! elementor-editor-utils/editor-one-events */ "../assets/dev/js/editor/utils/editor-one-events.js");
1595 1096 var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"));
1596 1097 var _shared = __webpack_require__(/*! ../shared */ "../modules/editor-one/assets/js/sidebar-navigation/components/shared/index.js");
1597 1098 var STORAGE_KEY_PREFIX = 'elementor_sidebar_menu_expanded_v2_';
1598 1099 var SidebarMenuItem = function SidebarMenuItem(_ref) {
@@ -1624,28 +1125,17 @@
1624 1125 isExpanded = _useState2[0],
1625 1126 setIsExpanded = _useState2[1];
1626 1127 var handleClick = (0, _element.useCallback)(function () {
1627 1128 if (hasChildren) {
1628 - var newState = !isExpanded;
1629 - setIsExpanded(newState);
1630 - localStorage.setItem("".concat(STORAGE_KEY_PREFIX).concat(item.slug), String(newState));
1631 - _editorOneEvents.EditorOneEventManager.sendSidebarMenuGroupToggled({
1632 - eventId: item.event_id,
1633 - isExpanded: newState
1129 + setIsExpanded(function (prev) {
1130 + var newState = !prev;
1131 + localStorage.setItem("".concat(STORAGE_KEY_PREFIX).concat(item.slug), String(newState));
1132 + return newState;
1634 1133 });
1635 - return;
1134 + } else {
1135 + window.location.href = item.url;
1636 1136 }
1637 - _editorOneEvents.EditorOneEventManager.sendSidebarMenuItemClicked({
1638 - eventId: item.event_id
1639 - });
1640 - window.location.href = item.url;
1641 - }, [hasChildren, isExpanded, item.event_id, item.slug, item.url]);
1642 - var handleChildClick = (0, _element.useCallback)(function (childItem) {
1643 - _editorOneEvents.EditorOneEventManager.sendSidebarMenuItemClicked({
1644 - eventId: childItem.event_id,
1645 - groupEventId: item.event_id
1646 - });
1647 - }, [item.event_id]);
1137 + }, [hasChildren, item.slug, item.url]);
1648 1138 return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.ListItem, {
1649 1139 disablePadding: true,
1650 1140 dense: true,
1651 1141 disableGutters: true
@@ -1673,11 +1163,8 @@
1673 1163 disableGutters: true
1674 1164 }, /*#__PURE__*/_react.default.createElement(_shared.ChildMenuItemButton, {
1675 1165 component: "a",
1676 1166 href: childItem.url,
1677 - onClick: function onClick() {
1678 - return handleChildClick(childItem);
1679 - },
1680 1167 selected: childItem.slug === activeChildSlug
1681 1168 }, /*#__PURE__*/_react.default.createElement(_ui.ListItemText, {
1682 1169 primary: childItem.label,
1683 1170 primaryTypographyProps: {
@@ -2194,27 +1681,8 @@
2194 1681 writable: !1
2195 1682 }), e;
2196 1683 }
2197 1684 module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
2198 -
2199 -/***/ }),
2200 -
2201 -/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
2202 -/*!****************************************************************!*\
2203 - !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
2204 - \****************************************************************/
2205 -/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2206 -
2207 -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2208 -function _defineProperty(e, r, t) {
2209 - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
2210 - value: t,
2211 - enumerable: !0,
2212 - configurable: !0,
2213 - writable: !0
2214 - }) : e[r] = t, e;
2215 -}
2216 -module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
2217 1685
2218 1686 /***/ }),
2219 1687
2220 1688 /***/ "../node_modules/@babel/runtime/helpers/extends.js":