| Server IP : 10.19.1.101 / Your IP : 216.73.216.158 Web Server : Apache System : Linux web1f13.kinghost.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64 User : schererimoveisrs ( 170628) PHP Version : 7.4.33 Disable Function : apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/schererimoveisrs/www/wp-content/plugins/elementor/assets/js/ |
Upload File : |
/******/ (() => { // 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