| @@ -683,62 +683,8 @@ | ||
| 683 | 683 | }; |
| 684 | 684 | } |
| 685 | 685 | 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); |
| 686 | 686 | } |
| 687 | - }, { | |
| 688 | - key: "createWpDashPayload", | |
| 689 | - value: function createWpDashPayload() { | |
| 690 | - var _config$appTypes$wpDa, _config$appTypes5, _config$locations11; | |
| 691 | - var overrides = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 692 | - var config = this.getConfig(); | |
| 693 | - return this.createBasePayload(_objectSpread({ | |
| 694 | - 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', | |
| 695 | - target_location: this.toLowerSnake(config === null || config === void 0 || (_config$locations11 = config.locations) === null || _config$locations11 === void 0 ? void 0 : _config$locations11.wpDashAdmin), | |
| 696 | - location_l2: '' | |
| 697 | - }, overrides)); | |
| 698 | - } | |
| 699 | - }, { | |
| 700 | - key: "sendWpDashElementorMenuClick", | |
| 701 | - value: function sendWpDashElementorMenuClick() { | |
| 702 | - var _config$names10, _config$triggers10, _config$targetTypes11, _config$interactionRe13, _config$secondaryLoca11; | |
| 703 | - var config = this.getConfig(); | |
| 704 | - 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({ | |
| 705 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers10 = config.triggers) === null || _config$triggers10 === void 0 ? void 0 : _config$triggers10.click), | |
| 706 | - target_type: config === null || config === void 0 || (_config$targetTypes11 = config.targetTypes) === null || _config$targetTypes11 === void 0 ? void 0 : _config$targetTypes11.wpDashAdminMenuItem, | |
| 707 | - target_name: 'elementor_menu_item', | |
| 708 | - interaction_result: config === null || config === void 0 || (_config$interactionRe13 = config.interactionResults) === null || _config$interactionRe13 === void 0 ? void 0 : _config$interactionRe13.elementorSideMenuOpened, | |
| 709 | - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca11 = config.secondaryLocations) === null || _config$secondaryLoca11 === void 0 ? void 0 : _config$secondaryLoca11.wpDashElementorCoreMenu), | |
| 710 | - interaction_description: 'core_user_clicked_elementor_menu_item' | |
| 711 | - })); | |
| 712 | - } | |
| 713 | - }, { | |
| 714 | - key: "sendWpDashEditorSubMenuHover", | |
| 715 | - value: function sendWpDashEditorSubMenuHover() { | |
| 716 | - var _config$names11, _config$triggers11, _config$targetTypes12, _config$interactionRe14, _config$secondaryLoca12; | |
| 717 | - var config = this.getConfig(); | |
| 718 | - 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({ | |
| 719 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers11 = config.triggers) === null || _config$triggers11 === void 0 ? void 0 : _config$triggers11.hover), | |
| 720 | - target_type: config === null || config === void 0 || (_config$targetTypes12 = config.targetTypes) === null || _config$targetTypes12 === void 0 ? void 0 : _config$targetTypes12.wpDashEditorMenu, | |
| 721 | - target_name: 'wpdash_editor_sub_menu', | |
| 722 | - interaction_result: config === null || config === void 0 || (_config$interactionRe14 = config.interactionResults) === null || _config$interactionRe14 === void 0 ? void 0 : _config$interactionRe14.editorSubMenuOpened, | |
| 723 | - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca12 = config.secondaryLocations) === null || _config$secondaryLoca12 === void 0 ? void 0 : _config$secondaryLoca12.wpDashElementorCoreSubMenu), | |
| 724 | - interaction_description: 'core_user_hovered_sub_menu' | |
| 725 | - })); | |
| 726 | - } | |
| 727 | - }, { | |
| 728 | - key: "sendWpDashThemeBuilderClick", | |
| 729 | - value: function sendWpDashThemeBuilderClick() { | |
| 730 | - var _config$names12, _config$triggers12, _config$targetTypes13, _config$interactionRe15, _config$secondaryLoca13; | |
| 731 | - var config = this.getConfig(); | |
| 732 | - 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({ | |
| 733 | - interaction_type: this.toLowerSnake(config === null || config === void 0 || (_config$triggers12 = config.triggers) === null || _config$triggers12 === void 0 ? void 0 : _config$triggers12.click), | |
| 734 | - target_type: config === null || config === void 0 || (_config$targetTypes13 = config.targetTypes) === null || _config$targetTypes13 === void 0 ? void 0 : _config$targetTypes13.wpDashSubMenuItem, | |
| 735 | - target_name: 'theme_builder_menu_item', | |
| 736 | - interaction_result: config === null || config === void 0 || (_config$interactionRe15 = config.interactionResults) === null || _config$interactionRe15 === void 0 ? void 0 : _config$interactionRe15.themeBuilderPromotionWindow, | |
| 737 | - location_l1: this.toLowerSnake(config === null || config === void 0 || (_config$secondaryLoca13 = config.secondaryLocations) === null || _config$secondaryLoca13 === void 0 ? void 0 : _config$secondaryLoca13.wpDashThemeBuilder), | |
| 738 | - interaction_description: 'core_user_clicked_theme_builder_menu_item' | |
| 739 | - })); | |
| 740 | - } | |
| 741 | 687 | }]); |
| 742 | 688 | }(); |
| 743 | 689 | var createDebouncedFinderSearch = exports.createDebouncedFinderSearch = function createDebouncedFinderSearch() { |
| 744 | 690 | var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 300; |
| @@ -934,10 +880,9 @@ | ||
| 934 | 880 | id: id, |
| 935 | 881 | settings: (_element$settings = element.settings) !== null && _element$settings !== void 0 ? _element$settings : {}, |
| 936 | 882 | elements: elements, |
| 937 | 883 | isLocked: element.isLocked || false, |
| 938 | - editor_settings: element.editor_settings || {}, | |
| 939 | - meta: element.meta || {} | |
| 884 | + editor_settings: element.editor_settings || {} | |
| 940 | 885 | }; |
| 941 | 886 | } |
| 942 | 887 | }]); |
| 943 | 888 | }(elementor.modules.elements.models.Element); |