__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/*!**************************************************************!*\
!*** ../modules/pro-install/assets/js/pro-install-events.js ***!
\**************************************************************/
function getDispatchEvent() {
var _window$elementorComm, _window$elementorComm2, _eventsManager$dispat;
var isEnabled = (_window$elementorComm = window.elementorCommon) === null || _window$elementorComm === void 0 || (_window$elementorComm = _window$elementorComm.config) === null || _window$elementorComm === void 0 || (_window$elementorComm = _window$elementorComm.experimentalFeatures) === null || _window$elementorComm === void 0 ? void 0 : _window$elementorComm.editor_events;
if (!isEnabled) {
return null;
}
var eventsManager = (_window$elementorComm2 = window.elementorCommon) === null || _window$elementorComm2 === void 0 ? void 0 : _window$elementorComm2.eventsManager;
return (eventsManager === null || eventsManager === void 0 || (_eventsManager$dispat = eventsManager.dispatchEvent) === null || _eventsManager$dispat === void 0 ? void 0 : _eventsManager$dispat.bind(eventsManager)) || null;
}
function trackEditorEvent(eventName, eventData) {
var dispatchEvent = getDispatchEvent();
if (!dispatchEvent) {
return;
}
dispatchEvent(eventName, eventData);
}
window.trackUpgradeNowClickEvent = function () {
trackEditorEvent('upgrade_subscription', {
app_type: 'editor',
location: 'Elementor WP-admin pages',
secondaryLocation: 'Connect account page',
trigger: 'click'
});
};
window.trackConnectAccountEvent = function () {
Promise.resolve(trackEditorEvent('connect_account', {
app_type: 'editor',
location: 'Elementor WP-admin pages',
secondaryLocation: 'Connect account page',
trigger: 'click'
})).catch(function () {});
};
window.trackOpenConnectPageEvent = function () {
trackEditorEvent('open_connect_page', {
app_type: 'editor',
location: 'Elementor WP-admin pages',
secondaryLocation: 'Connect account page',
trigger: 'page_load'
});
};
window.trackProInstallEvent = function () {
trackEditorEvent('pro_install', {
app_type: 'editor',
location: 'Elementor WP-admin pages',
secondaryLocation: 'Connect account page',
trigger: 'click'
});
};
// Attach events on DOM ready
document.addEventListener('DOMContentLoaded', function () {
window.trackOpenConnectPageEvent();
var upgradeButton = document.querySelector('.elementor-pro-connect-promotion .elementor-box-action .button-upgrade');
if (upgradeButton) {
upgradeButton.addEventListener('click', window.trackUpgradeNowClickEvent);
}
var connectButton = document.querySelector('#elementor-connect-license');
if (connectButton) {
connectButton.addEventListener('click', window.trackConnectAccountEvent);
}
var proInstallButton = document.querySelector('#elementor-connect-install-pro');
if (proInstallButton) {
proInstallButton.addEventListener('click', window.trackProInstallEvent);
}
});
/******/ })()
;
//# sourceMappingURL=pro-install-events.js.map