| @@ -50,14 +50,13 @@ | ||
| 50 | 50 | } |
| 51 | 51 | }, { |
| 52 | 52 | key: "dispatchEvent", |
| 53 | 53 | value: function dispatchEvent(eventName, payload) { |
| 54 | + if (!this.isEventsManagerAvailable() || !this.canSendEvents()) { | |
| 55 | + return false; | |
| 56 | + } | |
| 54 | 57 | try { |
| 55 | - if (!this.isEventsManagerAvailable() || !this.canSendEvents()) { | |
| 56 | - return false; | |
| 57 | - } | |
| 58 | - this.getEventsManager().dispatchEvent(eventName, payload); | |
| 59 | - return true; | |
| 58 | + return this.getEventsManager().dispatchEvent(eventName, payload); | |
| 60 | 59 | } catch (error) { |
| 61 | 60 | return false; |
| 62 | 61 | } |
| 63 | 62 | } |
| @@ -361,107 +360,8 @@ | ||
| 361 | 360 | }; |
| 362 | 361 | } |
| 363 | 362 | 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 | 363 | } |
| 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 | 364 | }]); |
| 465 | 365 | }(); |
| 466 | 366 | var createDebouncedFinderSearch = exports.createDebouncedFinderSearch = function createDebouncedFinderSearch() { |
| 467 | 367 | var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 300; |
| @@ -2974,9 +2874,9 @@ | ||
| 2974 | 2874 | sx: { |
| 2975 | 2875 | maxWidth: 520, |
| 2976 | 2876 | textAlign: 'center' |
| 2977 | 2877 | } |
| 2978 | - }, " ", (0, _i18n.__)('By clicking "Connect", I approve the ', 'elementor'), /*#__PURE__*/_react.default.createElement(_ui.Link, { | |
| 2878 | + }, (0, _i18n.__)('By clicking "Connect", I approve the ', 'elementor'), /*#__PURE__*/_react.default.createElement(_ui.Link, { | |
| 2979 | 2879 | href: "https://go.elementor.com/ai-terms/", |
| 2980 | 2880 | target: "_blank", |
| 2981 | 2881 | color: "info.main" |
| 2982 | 2882 | }, (0, _i18n.__)('Terms of Service', 'elementor')), ' & ', /*#__PURE__*/_react.default.createElement(_ui.Link, { |
| @@ -5682,9 +5582,9 @@ | ||
| 5682 | 5582 | maxWidth: 520 |
| 5683 | 5583 | }, |
| 5684 | 5584 | component: "label", |
| 5685 | 5585 | htmlFor: "e-ai-terms-approval" |
| 5686 | - }, " ", (0, _i18n.__)('I approve the ', 'elementor'), /*#__PURE__*/_react.default.createElement(_ui.Link, { | |
| 5586 | + }, (0, _i18n.__)('I approve the ', 'elementor'), /*#__PURE__*/_react.default.createElement(_ui.Link, { | |
| 5687 | 5587 | href: "https://go.elementor.com/ai-terms/", |
| 5688 | 5588 | target: "_blank", |
| 5689 | 5589 | color: "info.main" |
| 5690 | 5590 | }, (0, _i18n.__)('Terms of Service', 'elementor')), ' & ', /*#__PURE__*/_react.default.createElement(_ui.Link, { |