| @@ -1,441 +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 | - if (!this.isEventsManagerAvailable() || !this.canSendEvents()) { | |
| 55 | - return false; | |
| 56 | - } | |
| 57 | - this.getEventsManager().dispatchEvent(eventName, payload); | |
| 58 | - } | |
| 59 | - }, { | |
| 60 | - key: "toLowerSnake", | |
| 61 | - value: function toLowerSnake(value) { | |
| 62 | - if (!value || 'string' !== typeof value) { | |
| 63 | - return value; | |
| 64 | - } | |
| 65 | - return value.replace(/\s+/g, '_').toLowerCase(); | |
| 66 | - } | |
| 67 | - }, { | |
| 68 | - key: "decodeHtmlEntities", | |
| 69 | - value: function decodeHtmlEntities(text) { | |
| 70 | - if (!text || 'string' !== typeof text) { | |
| 71 | - return text; | |
| 72 | - } | |
| 73 | - var doc = new DOMParser().parseFromString(text, 'text/html'); | |
| 74 | - return doc.body.textContent || text; | |
| 75 | - } | |
| 76 | - }, { | |
| 77 | - key: "isInEditorContext", | |
| 78 | - value: function isInEditorContext() { | |
| 79 | - var _window$elementor; | |
| 80 | - return 'undefined' !== typeof window.elementor && !!((_window$elementor = window.elementor) !== null && _window$elementor !== void 0 && _window$elementor.documents); | |
| 81 | - } | |
| 82 | - }, { | |
| 83 | - key: "getFinderContext", | |
| 84 | - value: function getFinderContext() { | |
| 85 | - var _config$appTypes, _config$appTypes2, _config$locations, _config$locations2; | |
| 86 | - var config = this.getConfig(); | |
| 87 | - var isEditor = this.isInEditorContext(); | |
| 88 | - return { | |
| 89 | - 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, | |
| 90 | - 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) | |
| 91 | - }; | |
| 92 | - } | |
| 93 | - }, { | |
| 94 | - key: "createBasePayload", | |
| 95 | - value: function createBasePayload() { | |
| 96 | - var _config$appTypes$edit, _config$appTypes3, _config$appTypes$edit2, _config$appTypes4; | |
| 97 | - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 98 | - var config = this.getConfig(); | |
| 99 | - return _objectSpread({ | |
| 100 | - 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', | |
| 101 | - 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' | |
| 102 | - }, overrides); | |
| 103 | - } | |
| 104 | - }, { | |
| 105 | - key: "sendTopBarPublishDropdown", | |
| 106 | - value: function sendTopBarPublishDropdown(targetName) { | |
| 107 | - var _config$names, _config$triggers, _config$targetTypes, _config$interactionRe, _config$locations3, _config$secondaryLoca, _config$targetTypes2; | |
| 108 | - var config = this.getConfig(); | |
| 109 | - 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({ | |
| 110 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers = config.triggers) === null || _config$triggers === void 0 ? void 0 : _config$triggers.click), | |
| 111 | - target_type: config === null || config === void 0 || (_config$targetTypes = config.targetTypes) === null || _config$targetTypes === void 0 ? void 0 : _config$targetTypes.dropdownItem, | |
| 112 | - target_name: targetName, | |
| 113 | - interaction_result: config === null || config === void 0 || (_config$interactionRe = config.interactionResults) === null || _config$interactionRe === void 0 ? void 0 : _config$interactionRe.actionSelected, | |
| 114 | - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations3 = config.locations) === null || _config$locations3 === void 0 ? void 0 : _config$locations3.topBar), | |
| 115 | - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca = config.secondaryLocations) === null || _config$secondaryLoca === void 0 ? void 0 : _config$secondaryLoca.publishDropdown), | |
| 116 | - location_l2: config === null || config === void 0 || (_config$targetTypes2 = config.targetTypes) === null || _config$targetTypes2 === void 0 ? void 0 : _config$targetTypes2.dropdownItem, | |
| 117 | - interaction_description: 'User selected an action from the publish dropdown' | |
| 118 | - })); | |
| 119 | - } | |
| 120 | - }, { | |
| 121 | - key: "sendTopBarPageList", | |
| 122 | - value: function sendTopBarPageList(targetName) { | |
| 123 | - var _config$names2, _config$triggers2, _config$targetTypes3, _config$interactionRe2, _config$interactionRe3, _config$locations4, _config$secondaryLoca2, _config$targetTypes4; | |
| 124 | - var isCreate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; | |
| 125 | - var config = this.getConfig(); | |
| 126 | - 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({ | |
| 127 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers2 = config.triggers) === null || _config$triggers2 === void 0 ? void 0 : _config$triggers2.click), | |
| 128 | - target_type: config === null || config === void 0 || (_config$targetTypes3 = config.targetTypes) === null || _config$targetTypes3 === void 0 ? void 0 : _config$targetTypes3.dropdownItem, | |
| 129 | - target_name: targetName, | |
| 130 | - 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, | |
| 131 | - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations4 = config.locations) === null || _config$locations4 === void 0 ? void 0 : _config$locations4.topBar), | |
| 132 | - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca2 = config.secondaryLocations) === null || _config$secondaryLoca2 === void 0 ? void 0 : _config$secondaryLoca2.pageListDropdown), | |
| 133 | - location_l2: config === null || config === void 0 || (_config$targetTypes4 = config.targetTypes) === null || _config$targetTypes4 === void 0 ? void 0 : _config$targetTypes4.dropdownItem, | |
| 134 | - interaction_description: 'User selected an action from the page list dropdown' | |
| 135 | - })); | |
| 136 | - } | |
| 137 | - }, { | |
| 138 | - key: "sendSiteSettingsSession", | |
| 139 | - value: function sendSiteSettingsSession(_ref) { | |
| 140 | - var _config$names3, _config$triggers3, _config$interactionRe4, _config$locations5, _config$secondaryLoca3; | |
| 141 | - var targetType = _ref.targetType, | |
| 142 | - _ref$visitedItems = _ref.visitedItems, | |
| 143 | - visitedItems = _ref$visitedItems === void 0 ? [] : _ref$visitedItems, | |
| 144 | - _ref$savedItems = _ref.savedItems, | |
| 145 | - savedItems = _ref$savedItems === void 0 ? [] : _ref$savedItems, | |
| 146 | - state = _ref.state; | |
| 147 | - var config = this.getConfig(); | |
| 148 | - 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({ | |
| 149 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers3 = config.triggers) === null || _config$triggers3 === void 0 ? void 0 : _config$triggers3.click), | |
| 150 | - target_type: targetType, | |
| 151 | - target_name: 'site_settings', | |
| 152 | - interaction_result: config === null || config === void 0 || (_config$interactionRe4 = config.interactionResults) === null || _config$interactionRe4 === void 0 ? void 0 : _config$interactionRe4.sessionEnd, | |
| 153 | - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations5 = config.locations) === null || _config$locations5 === void 0 ? void 0 : _config$locations5.leftPanel), | |
| 154 | - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca3 = config.secondaryLocations) === null || _config$secondaryLoca3 === void 0 ? void 0 : _config$secondaryLoca3.siteSettings), | |
| 155 | - interaction_description: 'Records areas visited as part of the site setting session', | |
| 156 | - metadata: { | |
| 157 | - visited_items: visitedItems, | |
| 158 | - saved_items: savedItems | |
| 159 | - }, | |
| 160 | - state: state | |
| 161 | - })); | |
| 162 | - } | |
| 163 | - }, { | |
| 164 | - key: "sendELibraryNav", | |
| 165 | - value: function sendELibraryNav(tabName) { | |
| 166 | - var _config$names4, _config$triggers4, _config$targetTypes5, _config$interactionRe5, _config$locations6, _config$secondaryLoca4; | |
| 167 | - var config = this.getConfig(); | |
| 168 | - 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({ | |
| 169 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers4 = config.triggers) === null || _config$triggers4 === void 0 ? void 0 : _config$triggers4.tabSelect), | |
| 170 | - target_type: config === null || config === void 0 || (_config$targetTypes5 = config.targetTypes) === null || _config$targetTypes5 === void 0 ? void 0 : _config$targetTypes5.tab, | |
| 171 | - target_name: this.toLowerSnake(tabName), | |
| 172 | - interaction_result: config === null || config === void 0 || (_config$interactionRe5 = config.interactionResults) === null || _config$interactionRe5 === void 0 ? void 0 : _config$interactionRe5.tabChanged, | |
| 173 | - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations6 = config.locations) === null || _config$locations6 === void 0 ? void 0 : _config$locations6.elementorLibrary), | |
| 174 | - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca4 = config.secondaryLocations) === null || _config$secondaryLoca4 === void 0 ? void 0 : _config$secondaryLoca4.libraryTabs), | |
| 175 | - interaction_description: 'User navigates within elementor library' | |
| 176 | - })); | |
| 177 | - } | |
| 178 | - }, { | |
| 179 | - key: "sendELibraryInsert", | |
| 180 | - value: function sendELibraryInsert(_ref2) { | |
| 181 | - var _config$triggers5, _config$targetTypes6, _config$interactionRe6, _config$locations7, _config$secondaryLoca5, _config$names5; | |
| 182 | - var assetId = _ref2.assetId, | |
| 183 | - assetName = _ref2.assetName, | |
| 184 | - libraryType = _ref2.libraryType, | |
| 185 | - _ref2$proRequired = _ref2.proRequired, | |
| 186 | - proRequired = _ref2$proRequired === void 0 ? false : _ref2$proRequired; | |
| 187 | - var config = this.getConfig(); | |
| 188 | - var payload = this.createBasePayload({ | |
| 189 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers5 = config.triggers) === null || _config$triggers5 === void 0 ? void 0 : _config$triggers5.insert), | |
| 190 | - target_type: config === null || config === void 0 || (_config$targetTypes6 = config.targetTypes) === null || _config$targetTypes6 === void 0 ? void 0 : _config$targetTypes6.button, | |
| 191 | - target_name: String(assetId), | |
| 192 | - interaction_result: config === null || config === void 0 || (_config$interactionRe6 = config.interactionResults) === null || _config$interactionRe6 === void 0 ? void 0 : _config$interactionRe6.assetInserted, | |
| 193 | - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations7 = config.locations) === null || _config$locations7 === void 0 ? void 0 : _config$locations7.elementorLibrary), | |
| 194 | - location_l1: this.toLowerSnake(libraryType), | |
| 195 | - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca5 = config.secondaryLocations) === null || _config$secondaryLoca5 === void 0 ? void 0 : _config$secondaryLoca5.assetCard), | |
| 196 | - interaction_description: 'User inserts block/pages from elementor library', | |
| 197 | - metadata: { | |
| 198 | - template_id: String(assetId), | |
| 199 | - template_name: this.decodeHtmlEntities(assetName) || '' | |
| 200 | - } | |
| 201 | - }); | |
| 202 | - if (proRequired) { | |
| 203 | - payload.state = 'pro_plan_required'; | |
| 204 | - } | |
| 205 | - 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); | |
| 206 | - } | |
| 207 | - }, { | |
| 208 | - key: "sendELibraryFavorite", | |
| 209 | - value: function sendELibraryFavorite(_ref3) { | |
| 210 | - var _config$triggers6, _config$targetTypes7, _config$interactionRe7, _config$locations8, _config$secondaryLoca6, _config$names6; | |
| 211 | - var assetId = _ref3.assetId, | |
| 212 | - assetName = _ref3.assetName, | |
| 213 | - libraryType = _ref3.libraryType, | |
| 214 | - isFavorite = _ref3.isFavorite, | |
| 215 | - _ref3$proRequired = _ref3.proRequired, | |
| 216 | - proRequired = _ref3$proRequired === void 0 ? false : _ref3$proRequired; | |
| 217 | - var config = this.getConfig(); | |
| 218 | - var payload = this.createBasePayload({ | |
| 219 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers6 = config.triggers) === null || _config$triggers6 === void 0 ? void 0 : _config$triggers6.click), | |
| 220 | - target_type: config === null || config === void 0 || (_config$targetTypes7 = config.targetTypes) === null || _config$targetTypes7 === void 0 ? void 0 : _config$targetTypes7.toggle, | |
| 221 | - target_name: String(assetId), | |
| 222 | - interaction_result: config === null || config === void 0 || (_config$interactionRe7 = config.interactionResults) === null || _config$interactionRe7 === void 0 ? void 0 : _config$interactionRe7.assetFavorite, | |
| 223 | - target_value: Boolean(isFavorite), | |
| 224 | - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations8 = config.locations) === null || _config$locations8 === void 0 ? void 0 : _config$locations8.elementorLibrary), | |
| 225 | - location_l1: this.toLowerSnake(libraryType), | |
| 226 | - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca6 = config.secondaryLocations) === null || _config$secondaryLoca6 === void 0 ? void 0 : _config$secondaryLoca6.assetCard), | |
| 227 | - interaction_description: 'User favorite block/pages from elementor library', | |
| 228 | - metadata: { | |
| 229 | - template_id: String(assetId), | |
| 230 | - template_name: this.decodeHtmlEntities(assetName) || '' | |
| 231 | - } | |
| 232 | - }); | |
| 233 | - if (proRequired) { | |
| 234 | - payload.state = 'pro_plan_required'; | |
| 235 | - } | |
| 236 | - 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); | |
| 237 | - } | |
| 238 | - }, { | |
| 239 | - key: "sendELibraryGenerateAi", | |
| 240 | - value: function sendELibraryGenerateAi(_ref4) { | |
| 241 | - var _config$names7, _config$triggers7, _config$targetTypes8, _config$interactionRe8, _config$locations9, _config$secondaryLoca7; | |
| 242 | - var assetId = _ref4.assetId, | |
| 243 | - assetName = _ref4.assetName, | |
| 244 | - libraryType = _ref4.libraryType; | |
| 245 | - var config = this.getConfig(); | |
| 246 | - 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({ | |
| 247 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers7 = config.triggers) === null || _config$triggers7 === void 0 ? void 0 : _config$triggers7.click), | |
| 248 | - target_type: config === null || config === void 0 || (_config$targetTypes8 = config.targetTypes) === null || _config$targetTypes8 === void 0 ? void 0 : _config$targetTypes8.button, | |
| 249 | - target_name: String(assetId), | |
| 250 | - interaction_result: config === null || config === void 0 || (_config$interactionRe8 = config.interactionResults) === null || _config$interactionRe8 === void 0 ? void 0 : _config$interactionRe8.aiGenerate, | |
| 251 | - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations9 = config.locations) === null || _config$locations9 === void 0 ? void 0 : _config$locations9.elementorLibrary), | |
| 252 | - location_l1: this.toLowerSnake(libraryType), | |
| 253 | - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca7 = config.secondaryLocations) === null || _config$secondaryLoca7 === void 0 ? void 0 : _config$secondaryLoca7.assetCard), | |
| 254 | - interaction_description: 'User generated block/page based on a library asset', | |
| 255 | - metadata: { | |
| 256 | - template_id: String(assetId), | |
| 257 | - template_name: this.decodeHtmlEntities(assetName) || '' | |
| 258 | - } | |
| 259 | - })); | |
| 260 | - } | |
| 261 | - }, { | |
| 262 | - key: "sendFinderSearchInput", | |
| 263 | - value: function sendFinderSearchInput(_ref5) { | |
| 264 | - var _config$triggers8, _config$targetTypes9, _config$interactionRe9, _config$interactionRe0, _config$secondaryLoca8, _config$names8; | |
| 265 | - var resultsCount = _ref5.resultsCount, | |
| 266 | - _ref5$searchTerm = _ref5.searchTerm, | |
| 267 | - searchTerm = _ref5$searchTerm === void 0 ? null : _ref5$searchTerm; | |
| 268 | - var config = this.getConfig(); | |
| 269 | - var hasResults = resultsCount > 0; | |
| 270 | - var finderContext = this.getFinderContext(); | |
| 271 | - var payload = this.createBasePayload({ | |
| 272 | - window_name: finderContext.windowName, | |
| 273 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers8 = config.triggers) === null || _config$triggers8 === void 0 ? void 0 : _config$triggers8.typing), | |
| 274 | - target_type: config === null || config === void 0 || (_config$targetTypes9 = config.targetTypes) === null || _config$targetTypes9 === void 0 ? void 0 : _config$targetTypes9.searchInput, | |
| 275 | - target_name: 'finder', | |
| 276 | - 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, | |
| 277 | - target_location: finderContext.targetLocation, | |
| 278 | - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca8 = config.secondaryLocations) === null || _config$secondaryLoca8 === void 0 ? void 0 : _config$secondaryLoca8.finder), | |
| 279 | - interaction_description: 'Finder search input, follows debounce behavior', | |
| 280 | - metadata: { | |
| 281 | - results_count: resultsCount | |
| 282 | - } | |
| 283 | - }); | |
| 284 | - if (!hasResults && searchTerm) { | |
| 285 | - payload.metadata.search_term = searchTerm; | |
| 286 | - } | |
| 287 | - 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); | |
| 288 | - } | |
| 289 | - }, { | |
| 290 | - key: "sendFinderResultSelect", | |
| 291 | - value: function sendFinderResultSelect(choice) { | |
| 292 | - var _config$names9, _config$triggers9, _config$targetTypes0, _config$interactionRe1, _config$secondaryLoca9, _config$secondaryLoca0; | |
| 293 | - var config = this.getConfig(); | |
| 294 | - var finderContext = this.getFinderContext(); | |
| 295 | - 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({ | |
| 296 | - window_name: finderContext.windowName, | |
| 297 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers9 = config.triggers) === null || _config$triggers9 === void 0 ? void 0 : _config$triggers9.click), | |
| 298 | - target_type: config === null || config === void 0 || (_config$targetTypes0 = config.targetTypes) === null || _config$targetTypes0 === void 0 ? void 0 : _config$targetTypes0.searchResult, | |
| 299 | - target_name: choice, | |
| 300 | - interaction_result: config === null || config === void 0 || (_config$interactionRe1 = config.interactionResults) === null || _config$interactionRe1 === void 0 ? void 0 : _config$interactionRe1.selected, | |
| 301 | - target_location: finderContext.targetLocation, | |
| 302 | - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca9 = config.secondaryLocations) === null || _config$secondaryLoca9 === void 0 ? void 0 : _config$secondaryLoca9.finder), | |
| 303 | - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca0 = config.secondaryLocations) === null || _config$secondaryLoca0 === void 0 ? void 0 : _config$secondaryLoca0.finderResults), | |
| 304 | - interaction_description: 'Finder search results was selected' | |
| 305 | - })); | |
| 306 | - } | |
| 307 | - }, { | |
| 308 | - key: "sendCanvasEmptyBoxAction", | |
| 309 | - value: function sendCanvasEmptyBoxAction(_ref6) { | |
| 310 | - var _config$triggers0, _config$targetTypes1, _config$interactionRe10, _config$locations0, _config$secondaryLoca1, _config$names0; | |
| 311 | - var targetName = _ref6.targetName, | |
| 312 | - _ref6$metadata = _ref6.metadata, | |
| 313 | - metadata = _ref6$metadata === void 0 ? {} : _ref6$metadata, | |
| 314 | - _ref6$containerCreate = _ref6.containerCreated, | |
| 315 | - containerCreated = _ref6$containerCreate === void 0 ? null : _ref6$containerCreate; | |
| 316 | - var config = this.getConfig(); | |
| 317 | - var payload = this.createBasePayload({ | |
| 318 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers0 = config.triggers) === null || _config$triggers0 === void 0 ? void 0 : _config$triggers0.click), | |
| 319 | - target_type: config === null || config === void 0 || (_config$targetTypes1 = config.targetTypes) === null || _config$targetTypes1 === void 0 ? void 0 : _config$targetTypes1.buttons, | |
| 320 | - target_name: targetName, | |
| 321 | - interaction_result: config === null || config === void 0 || (_config$interactionRe10 = config.interactionResults) === null || _config$interactionRe10 === void 0 ? void 0 : _config$interactionRe10.selected, | |
| 322 | - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations0 = config.locations) === null || _config$locations0 === void 0 ? void 0 : _config$locations0.canvas), | |
| 323 | - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca1 = config.secondaryLocations) === null || _config$secondaryLoca1 === void 0 ? void 0 : _config$secondaryLoca1.emptyBox), | |
| 324 | - interaction_description: 'Empty box on canvas actions' | |
| 325 | - }); | |
| 326 | - if (Object.keys(metadata).length > 0) { | |
| 327 | - payload.metadata = metadata; | |
| 328 | - } | |
| 329 | - if (containerCreated !== null) { | |
| 330 | - payload.state = containerCreated; | |
| 331 | - } | |
| 332 | - 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); | |
| 333 | - } | |
| 334 | - }, { | |
| 335 | - key: "sendWidgetPanelSearch", | |
| 336 | - value: function sendWidgetPanelSearch(_ref7) { | |
| 337 | - var _config$triggers1, _config$targetTypes10, _config$interactionRe11, _config$interactionRe12, _config$locations1, _config$locations10, _config$secondaryLoca10, _config$names1; | |
| 338 | - var resultsCount = _ref7.resultsCount, | |
| 339 | - _ref7$userInput = _ref7.userInput, | |
| 340 | - userInput = _ref7$userInput === void 0 ? null : _ref7$userInput; | |
| 341 | - var config = this.getConfig(); | |
| 342 | - var hasResults = resultsCount > 0; | |
| 343 | - var payload = this.createBasePayload({ | |
| 344 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers1 = config.triggers) === null || _config$triggers1 === void 0 ? void 0 : _config$triggers1.typing), | |
| 345 | - target_type: config === null || config === void 0 || (_config$targetTypes10 = config.targetTypes) === null || _config$targetTypes10 === void 0 ? void 0 : _config$targetTypes10.searchWidget, | |
| 346 | - target_name: 'search_widget', | |
| 347 | - 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, | |
| 348 | - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations1 = config.locations) === null || _config$locations1 === void 0 ? void 0 : _config$locations1.leftPanel), | |
| 349 | - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$locations10 = config.locations) === null || _config$locations10 === void 0 ? void 0 : _config$locations10.widgetPanel), | |
| 350 | - location_l2: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca10 = config.secondaryLocations) === null || _config$secondaryLoca10 === void 0 ? void 0 : _config$secondaryLoca10.searchBar), | |
| 351 | - interaction_description: 'Widget search input, follows debounce behavior' | |
| 352 | - }); | |
| 353 | - if (!hasResults && userInput) { | |
| 354 | - payload.metadata = { | |
| 355 | - user_input: userInput | |
| 356 | - }; | |
| 357 | - } | |
| 358 | - 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); | |
| 359 | - } | |
| 360 | - }, { | |
| 361 | - key: "createWpDashPayload", | |
| 362 | - value: function createWpDashPayload() { | |
| 363 | - var _config$appTypes$wpDa, _config$appTypes5, _config$locations11; | |
| 364 | - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 365 | - var config = this.getConfig(); | |
| 366 | - return this.createBasePayload(_objectSpread({ | |
| 367 | - 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', | |
| 368 | - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations11 = config.locations) === null || _config$locations11 === void 0 ? void 0 : _config$locations11.wpDashAdmin), | |
| 369 | - location_l2: '' | |
| 370 | - }, overrides)); | |
| 371 | - } | |
| 372 | - }, { | |
| 373 | - key: "sendWpDashElementorMenuClick", | |
| 374 | - value: function sendWpDashElementorMenuClick() { | |
| 375 | - var _config$names10, _config$triggers10, _config$targetTypes11, _config$interactionRe13, _config$secondaryLoca11; | |
| 376 | - var config = this.getConfig(); | |
| 377 | - 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({ | |
| 378 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers10 = config.triggers) === null || _config$triggers10 === void 0 ? void 0 : _config$triggers10.click), | |
| 379 | - target_type: config === null || config === void 0 || (_config$targetTypes11 = config.targetTypes) === null || _config$targetTypes11 === void 0 ? void 0 : _config$targetTypes11.wpDashAdminMenuItem, | |
| 380 | - target_name: 'elementor_menu_item', | |
| 381 | - interaction_result: config === null || config === void 0 || (_config$interactionRe13 = config.interactionResults) === null || _config$interactionRe13 === void 0 ? void 0 : _config$interactionRe13.elementorSideMenuOpened, | |
| 382 | - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca11 = config.secondaryLocations) === null || _config$secondaryLoca11 === void 0 ? void 0 : _config$secondaryLoca11.wpDashElementorCoreMenu), | |
| 383 | - interaction_description: 'core_user_clicked_elementor_menu_item' | |
| 384 | - })); | |
| 385 | - } | |
| 386 | - }, { | |
| 387 | - key: "sendWpDashEditorSubMenuHover", | |
| 388 | - value: function sendWpDashEditorSubMenuHover() { | |
| 389 | - var _config$names11, _config$triggers11, _config$targetTypes12, _config$interactionRe14, _config$secondaryLoca12; | |
| 390 | - var config = this.getConfig(); | |
| 391 | - 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({ | |
| 392 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers11 = config.triggers) === null || _config$triggers11 === void 0 ? void 0 : _config$triggers11.hover), | |
| 393 | - target_type: config === null || config === void 0 || (_config$targetTypes12 = config.targetTypes) === null || _config$targetTypes12 === void 0 ? void 0 : _config$targetTypes12.wpDashEditorMenu, | |
| 394 | - target_name: 'wpdash_editor_sub_menu', | |
| 395 | - interaction_result: config === null || config === void 0 || (_config$interactionRe14 = config.interactionResults) === null || _config$interactionRe14 === void 0 ? void 0 : _config$interactionRe14.editorSubMenuOpened, | |
| 396 | - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca12 = config.secondaryLocations) === null || _config$secondaryLoca12 === void 0 ? void 0 : _config$secondaryLoca12.wpDashElementorCoreSubMenu), | |
| 397 | - interaction_description: 'core_user_hovered_sub_menu' | |
| 398 | - })); | |
| 399 | - } | |
| 400 | - }, { | |
| 401 | - key: "sendWpDashThemeBuilderClick", | |
| 402 | - value: function sendWpDashThemeBuilderClick() { | |
| 403 | - var _config$names12, _config$triggers12, _config$targetTypes13, _config$interactionRe15, _config$secondaryLoca13; | |
| 404 | - var config = this.getConfig(); | |
| 405 | - 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({ | |
| 406 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers12 = config.triggers) === null || _config$triggers12 === void 0 ? void 0 : _config$triggers12.click), | |
| 407 | - target_type: config === null || config === void 0 || (_config$targetTypes13 = config.targetTypes) === null || _config$targetTypes13 === void 0 ? void 0 : _config$targetTypes13.wpDashSubMenuItem, | |
| 408 | - target_name: 'theme_builder_menu_item', | |
| 409 | - interaction_result: config === null || config === void 0 || (_config$interactionRe15 = config.interactionResults) === null || _config$interactionRe15 === void 0 ? void 0 : _config$interactionRe15.themeBuilderPromotionWindow, | |
| 410 | - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca13 = config.secondaryLocations) === null || _config$secondaryLoca13 === void 0 ? void 0 : _config$secondaryLoca13.wpDashThemeBuilder), | |
| 411 | - interaction_description: 'core_user_clicked_theme_builder_menu_item' | |
| 412 | - })); | |
| 413 | - } | |
| 414 | - }]); | |
| 415 | -}(); | |
| 416 | -var createDebouncedFinderSearch = exports.createDebouncedFinderSearch = function createDebouncedFinderSearch() { | |
| 417 | - var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 300; | |
| 418 | - return _.debounce(function (resultsCount, searchTerm) { | |
| 419 | - EditorOneEventManager.sendFinderSearchInput({ | |
| 420 | - resultsCount: resultsCount, | |
| 421 | - searchTerm: searchTerm | |
| 422 | - }); | |
| 423 | - }, delay); | |
| 424 | -}; | |
| 425 | -var createDebouncedWidgetPanelSearch = exports.createDebouncedWidgetPanelSearch = function createDebouncedWidgetPanelSearch() { | |
| 426 | - var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 2000; | |
| 427 | - return _.debounce(function (resultsCount, userInput) { | |
| 428 | - EditorOneEventManager.sendWidgetPanelSearch({ | |
| 429 | - resultsCount: resultsCount, | |
| 430 | - userInput: userInput | |
| 431 | - }); | |
| 432 | - }, delay); | |
| 433 | -}; | |
| 434 | -var _default = exports["default"] = EditorOneEventManager; | |
| 435 | - | |
| 436 | -/***/ }), | |
| 437 | - | |
| 438 | 4 | /***/ "../modules/editor-one/assets/js/admin-menu/classes/flyout-interaction-handler.js": |
| 439 | 5 | /*!****************************************************************************************!*\ |
| 440 | 6 | !*** ../modules/editor-one/assets/js/admin-menu/classes/flyout-interaction-handler.js ***! |
| 441 | 7 | \****************************************************************************************/ |
| @@ -450,9 +16,8 @@ | ||
| 450 | 16 | })); |
| 451 | 17 | exports.FlyoutInteractionHandler = void 0; |
| 452 | 18 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 453 | 19 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 454 | -var _menuEventsTracker = __webpack_require__(/*! ./menu-events-tracker */ "../modules/editor-one/assets/js/admin-menu/classes/menu-events-tracker.js"); | |
| 455 | 20 | var FlyoutInteractionHandler = exports.FlyoutInteractionHandler = /*#__PURE__*/function () { |
| 456 | 21 | function FlyoutInteractionHandler() { |
| 457 | 22 | (0, _classCallCheck2.default)(this, FlyoutInteractionHandler); |
| 458 | 23 | this.activeMenu = null; |
| @@ -544,9 +109,8 @@ | ||
| 544 | 109 | } |
| 545 | 110 | }, { |
| 546 | 111 | key: "showFlyout", |
| 547 | 112 | value: function showFlyout(parentLi, flyoutMenu) { |
| 548 | - var wasAlreadyVisible = flyoutMenu.classList.contains('elementor-submenu-flyout-visible'); | |
| 549 | 113 | if (this.activeMenu && this.activeMenu !== flyoutMenu) { |
| 550 | 114 | this.hideFlyout(this.activeMenu); |
| 551 | 115 | } |
| 552 | 116 | this.exitPoint = null; |
| @@ -553,11 +117,8 @@ | ||
| 553 | 117 | this.positionFlyout(parentLi, flyoutMenu); |
| 554 | 118 | flyoutMenu.classList.add('elementor-submenu-flyout-visible'); |
| 555 | 119 | this.activeMenu = flyoutMenu; |
| 556 | 120 | this.activeParent = parentLi; |
| 557 | - if (!wasAlreadyVisible) { | |
| 558 | - _menuEventsTracker.MenuEventsTracker.trackEditorSubMenuOpened(); | |
| 559 | - } | |
| 560 | 121 | } |
| 561 | 122 | }, { |
| 562 | 123 | key: "hideFlyout", |
| 563 | 124 | value: function hideFlyout(flyoutMenu) { |
| @@ -857,9 +418,8 @@ | ||
| 857 | 418 | editorFlyoutUl.appendChild(dividerLi); |
| 858 | 419 | } |
| 859 | 420 | var li = document.createElement('li'); |
| 860 | 421 | li.setAttribute('data-group-id', item.group_id || ''); |
| 861 | - li.setAttribute('data-slug', item.slug || ''); | |
| 862 | 422 | var a = document.createElement('a'); |
| 863 | 423 | a.href = item.url; |
| 864 | 424 | a.textContent = item.label; |
| 865 | 425 | li.appendChild(a); |
| @@ -889,70 +449,8 @@ | ||
| 889 | 449 | }(); |
| 890 | 450 | |
| 891 | 451 | /***/ }), |
| 892 | 452 | |
| 893 | -/***/ "../modules/editor-one/assets/js/admin-menu/classes/menu-events-tracker.js": | |
| 894 | -/*!*********************************************************************************!*\ | |
| 895 | - !*** ../modules/editor-one/assets/js/admin-menu/classes/menu-events-tracker.js ***! | |
| 896 | - \*********************************************************************************/ | |
| 897 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 898 | - | |
| 899 | -"use strict"; | |
| 900 | - | |
| 901 | - | |
| 902 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 903 | -Object.defineProperty(exports, "__esModule", ({ | |
| 904 | - value: true | |
| 905 | -})); | |
| 906 | -exports.MenuEventsTracker = void 0; | |
| 907 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 908 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 909 | -var _editorOneEvents = __webpack_require__(/*! elementor-editor-utils/editor-one-events */ "../assets/dev/js/editor/utils/editor-one-events.js"); | |
| 910 | -var SELECTORS = { | |
| 911 | - elementorMenuLink: '#toplevel_page_elementor-home > a.menu-top', | |
| 912 | - themeBuilderItem: '[data-slug="elementor-theme-builder"] a, .wp-submenu a[href*="page=elementor-theme-builder"]' | |
| 913 | -}; | |
| 914 | -var MenuEventsTracker = exports.MenuEventsTracker = /*#__PURE__*/function () { | |
| 915 | - function MenuEventsTracker() { | |
| 916 | - (0, _classCallCheck2.default)(this, MenuEventsTracker); | |
| 917 | - } | |
| 918 | - return (0, _createClass2.default)(MenuEventsTracker, null, [{ | |
| 919 | - key: "attach", | |
| 920 | - value: function attach() { | |
| 921 | - this.attachElementorMenuClick(); | |
| 922 | - this.attachThemeBuilderClick(); | |
| 923 | - } | |
| 924 | - }, { | |
| 925 | - key: "attachElementorMenuClick", | |
| 926 | - value: function attachElementorMenuClick() { | |
| 927 | - var menuLink = document.querySelector(SELECTORS.elementorMenuLink); | |
| 928 | - if (!menuLink) { | |
| 929 | - return; | |
| 930 | - } | |
| 931 | - menuLink.addEventListener('click', function () { | |
| 932 | - _editorOneEvents.EditorOneEventManager.sendWpDashElementorMenuClick(); | |
| 933 | - }); | |
| 934 | - } | |
| 935 | - }, { | |
| 936 | - key: "attachThemeBuilderClick", | |
| 937 | - value: function attachThemeBuilderClick() { | |
| 938 | - document.addEventListener('click', function (event) { | |
| 939 | - var link = event.target.closest(SELECTORS.themeBuilderItem); | |
| 940 | - if (link) { | |
| 941 | - _editorOneEvents.EditorOneEventManager.sendWpDashThemeBuilderClick(); | |
| 942 | - } | |
| 943 | - }, true); | |
| 944 | - } | |
| 945 | - }, { | |
| 946 | - key: "trackEditorSubMenuOpened", | |
| 947 | - value: function trackEditorSubMenuOpened() { | |
| 948 | - _editorOneEvents.EditorOneEventManager.sendWpDashEditorSubMenuHover(); | |
| 949 | - } | |
| 950 | - }]); | |
| 951 | -}(); | |
| 952 | - | |
| 953 | -/***/ }), | |
| 954 | - | |
| 955 | 453 | /***/ "../modules/editor-one/assets/js/admin-menu/classes/sidebar-menu-handler.js": |
| 956 | 454 | /*!**********************************************************************************!*\ |
| 957 | 455 | !*** ../modules/editor-one/assets/js/admin-menu/classes/sidebar-menu-handler.js ***! |
| 958 | 456 | \**********************************************************************************/ |
| @@ -1079,27 +577,8 @@ | ||
| 1079 | 577 | module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 1080 | 578 | |
| 1081 | 579 | /***/ }), |
| 1082 | 580 | |
| 1083 | -/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": | |
| 1084 | -/*!****************************************************************!*\ | |
| 1085 | - !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! | |
| 1086 | - \****************************************************************/ | |
| 1087 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1088 | - | |
| 1089 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 1090 | -function _defineProperty(e, r, t) { | |
| 1091 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 1092 | - value: t, | |
| 1093 | - enumerable: !0, | |
| 1094 | - configurable: !0, | |
| 1095 | - writable: !0 | |
| 1096 | - }) : e[r] = t, e; | |
| 1097 | -} | |
| 1098 | -module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1099 | - | |
| 1100 | -/***/ }), | |
| 1101 | - | |
| 1102 | 581 | /***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": |
| 1103 | 582 | /*!***********************************************************************!*\ |
| 1104 | 583 | !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! |
| 1105 | 584 | \***********************************************************************/ |
| @@ -1211,9 +690,8 @@ | ||
| 1211 | 690 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 1212 | 691 | var _flyoutMenuRenderer = __webpack_require__(/*! ./classes/flyout-menu-renderer */ "../modules/editor-one/assets/js/admin-menu/classes/flyout-menu-renderer.js"); |
| 1213 | 692 | var _sidebarMenuHandler = __webpack_require__(/*! ./classes/sidebar-menu-handler */ "../modules/editor-one/assets/js/admin-menu/classes/sidebar-menu-handler.js"); |
| 1214 | 693 | var _flyoutInteractionHandler = __webpack_require__(/*! ./classes/flyout-interaction-handler */ "../modules/editor-one/assets/js/admin-menu/classes/flyout-interaction-handler.js"); |
| 1215 | -var _menuEventsTracker = __webpack_require__(/*! ./classes/menu-events-tracker */ "../modules/editor-one/assets/js/admin-menu/classes/menu-events-tracker.js"); | |
| 1216 | 694 | var EditorOneMenu = /*#__PURE__*/function () { |
| 1217 | 695 | function EditorOneMenu() { |
| 1218 | 696 | var _window; |
| 1219 | 697 | (0, _classCallCheck2.default)(this, EditorOneMenu); |
| @@ -1221,9 +699,8 @@ | ||
| 1221 | 699 | } |
| 1222 | 700 | return (0, _createClass2.default)(EditorOneMenu, [{ |
| 1223 | 701 | key: "init", |
| 1224 | 702 | value: function init() { |
| 1225 | - _menuEventsTracker.MenuEventsTracker.attach(); | |
| 1226 | 703 | if (this.isSidebarNavigationActive()) { |
| 1227 | 704 | new _sidebarMenuHandler.SidebarMenuHandler(); |
| 1228 | 705 | return; |
| 1229 | 706 | } |