first commit

This commit is contained in:
2026-05-25 14:34:29 +02:00
commit 64f5e06629
4236 changed files with 1314148 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* This file is generated by Webpack, do not edit it directly.
*/
return [
'handle' => 'elementor-v2-events',
'deps' => [
],
];

View File

@@ -0,0 +1,3 @@
/*! For license information please see events.js.LICENSE.txt */
!function(){"use strict";var n={"./packages/packages/libs/events/src/use-mixpanel.ts":function(n,e,i){i.r(e),i.d(e,{canSendEvents:function(){return canSendEvents},enableTracking:function(){return enableTracking},getMixpanel:function(){return getMixpanel},initializeAndEnableTracking:function(){return initializeAndEnableTracking},initializeMixpanel:function(){return initializeMixpanel},isMixpanelReady:function(){return isMixpanelReady},isTrackingEnabled:function(){return isTrackingEnabled},setCanSendEvents:function(){return setCanSendEvents},trackEvent:function(){return trackEvent},useMixpanel:function(){return useMixpanel}});const getMixpanel=()=>{const n=window.elementorCommon?.eventsManager||{};return{dispatchEvent:n.dispatchEvent?.bind(n),config:n.config,canSendEvents:n.canSendEvents?.bind(n),initializeMixpanel:n.initializeMixpanel?.bind(n),enableTracking:n.enableTracking?.bind(n),isMixpanelReady:n.isMixpanelReady?.bind(n),trackingEnabled:n.trackingEnabled??!1,getMixpanelInstance:n.getMixpanelInstance?.bind(n)}},useMixpanel=()=>{const{dispatchEvent:n,config:e}=getMixpanel();return{dispatchEvent:n,config:e}},trackEvent=n=>{const{dispatchEvent:e}=getMixpanel();e?.(n.eventName,n)},canSendEvents=()=>getMixpanel().canSendEvents?.()??!1,setCanSendEvents=n=>{const e=window.elementorCommon?.config?.editor_events;e&&(e.can_send_events=n)},isMixpanelReady=()=>getMixpanel().isMixpanelReady?.()??!1,isTrackingEnabled=()=>getMixpanel().trackingEnabled,enableTracking=()=>getMixpanel().enableTracking?.(),initializeMixpanel=n=>getMixpanel().initializeMixpanel?.(n??(()=>{}));function initializeAndEnableTracking(n){const e=getMixpanel();if(e.dispatchEvent){if(!e.trackingEnabled)return e.isMixpanelReady?.()?(e.enableTracking?.(),void n?.(e.getMixpanelInstance?.())):void e.initializeMixpanel?.(i=>{e.enableTracking?.(),n?.(i)});n?.(e.getMixpanelInstance?.())}}}},e={};function __webpack_require__(i){var t=e[i];if(void 0!==t)return t.exports;var a=e[i]={exports:{}};return n[i](a,a.exports,__webpack_require__),a.exports}__webpack_require__.d=function(n,e){for(var i in e)__webpack_require__.o(e,i)&&!__webpack_require__.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:e[i]})},__webpack_require__.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},__webpack_require__.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var i={};!function(){__webpack_require__.r(i),__webpack_require__.d(i,{canSendEvents:function(){return n.canSendEvents},enableTracking:function(){return n.enableTracking},getMixpanel:function(){return n.getMixpanel},initializeAndEnableTracking:function(){return n.initializeAndEnableTracking},initializeMixpanel:function(){return n.initializeMixpanel},isMixpanelReady:function(){return n.isMixpanelReady},isTrackingEnabled:function(){return n.isTrackingEnabled},setCanSendEvents:function(){return n.setCanSendEvents},trackEvent:function(){return n.trackEvent},useMixpanel:function(){return n.useMixpanel}});var n=__webpack_require__("./packages/packages/libs/events/src/use-mixpanel.ts")}(),(window.elementorV2=window.elementorV2||{}).events=i}(),window.elementorV2.events?.init?.();
//# sourceMappingURL=events.js.map

View File

@@ -0,0 +1,9 @@
/*! ./use-mixpanel */
/*!****************************************************!*\
!*** ./packages/packages/libs/events/src/index.ts ***!
\****************************************************/
/*!***********************************************************!*\
!*** ./packages/packages/libs/events/src/use-mixpanel.ts ***!
\***********************************************************/

View File

@@ -0,0 +1 @@
!function(){"use strict";var n={d:function(e,i){for(var t in i)n.o(i,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:i[t]})},o:function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},r:function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})}},e={};n.r(e),n.d(e,{canSendEvents:function(){return r},enableTracking:function(){return d},getMixpanel:function(){return i},initializeAndEnableTracking:function(){return u},initializeMixpanel:function(){return s},isMixpanelReady:function(){return c},isTrackingEnabled:function(){return l},setCanSendEvents:function(){return o},trackEvent:function(){return a},useMixpanel:function(){return t}});const i=()=>{const n=window.elementorCommon?.eventsManager||{};return{dispatchEvent:n.dispatchEvent?.bind(n),config:n.config,canSendEvents:n.canSendEvents?.bind(n),initializeMixpanel:n.initializeMixpanel?.bind(n),enableTracking:n.enableTracking?.bind(n),isMixpanelReady:n.isMixpanelReady?.bind(n),trackingEnabled:n.trackingEnabled??!1,getMixpanelInstance:n.getMixpanelInstance?.bind(n)}},t=()=>{const{dispatchEvent:n,config:e}=i();return{dispatchEvent:n,config:e}},a=n=>{const{dispatchEvent:e}=i();e?.(n.eventName,n)},r=()=>i().canSendEvents?.()??!1,o=n=>{const e=window.elementorCommon?.config?.editor_events;e&&(e.can_send_events=n)},c=()=>i().isMixpanelReady?.()??!1,l=()=>i().trackingEnabled,d=()=>i().enableTracking?.(),s=n=>i().initializeMixpanel?.(n??(()=>{}));function u(n){const e=i();if(e.dispatchEvent){if(!e.trackingEnabled)return e.isMixpanelReady?.()?(e.enableTracking?.(),void n?.(e.getMixpanelInstance?.())):void e.initializeMixpanel?.(i=>{e.enableTracking?.(),n?.(i)});n?.(e.getMixpanelInstance?.())}}(window.elementorV2=window.elementorV2||{}).events=e}(),window.elementorV2.events?.init?.();