PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.1
Elementor Website Builder – more than just a page builder v4.3.1
4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 All 455 releases
← All changes | assets/js/app-loader.min.js +4 -1 4.2.0-dev2 → 4.3.1 View file →
@@ -1 +1,4 @@
1 -(()=>{var t={641:(t,r,o)=>{"use strict";var a=o(96784)(o(10564)),u=function Module(){var t,r=jQuery,o=arguments,u=this,i={};this.getItems=function(t,r){if(r){var o=r.split("."),a=o.splice(0,1);if(!o.length)return t[a];if(!t[a])return;return this.getItems(t[a],o.join("."))}return t},this.getSettings=function(r){return this.getItems(t,r)},this.setSettings=function(o,i,c){if(c||(c=t),"object"===(0,a.default)(o))return r.extend(c,o),u;var l=o.split("."),p=l.splice(0,1);return l.length?(c[p]||(c[p]={}),u.setSettings(l.join("."),i,c[p])):(c[p]=i,u)},this.getErrorMessage=function(t,r){var o;if("forceMethodImplementation"===t)o="The method '".concat(r,"' must to be implemented in the inheritor child.");else o="An error occurs";return o},this.forceMethodImplementation=function(t){throw new Error(this.getErrorMessage("forceMethodImplementation",t))},this.on=function(t,o){return"object"===(0,a.default)(t)?(r.each(t,function(t){u.on(t,this)}),u):(t.split(" ").forEach(function(t){i[t]||(i[t]=[]),i[t].push(o)}),u)},this.off=function(t,r){if(!i[t])return u;if(!r)return delete i[t],u;var o=i[t].indexOf(r);return-1!==o&&(delete i[t][o],i[t]=i[t].filter(function(t){return t})),u},this.trigger=function(t){var o="on"+t[0].toUpperCase()+t.slice(1),a=Array.prototype.slice.call(arguments,1);u[o]&&u[o].apply(u,a);var c=i[t];return c?(r.each(c,function(t,r){r.apply(u,a)}),u):u},function init(){u.__construct.apply(u,o),function ensureClosureMethods(){r.each(u,function(t){var r=u[t];"function"==typeof r&&(u[t]=function(){return r.apply(u,arguments)})})}(),function initSettings(){t=u.getDefaultSettings();var a=o[0];a&&r.extend(!0,t,a)}(),u.trigger("init")}()};u.prototype.__construct=function(){},u.prototype.getDefaultSettings=function(){return{}},u.prototype.getConstructorID=function(){return this.constructor.name},u.extend=function(t){var r=jQuery,o=this,a=function child(){return o.apply(this,arguments)};return r.extend(a,o),(a.prototype=Object.create(r.extend({},o.prototype,t))).constructor=a,a.__super__=o.prototype,a},t.exports=u},7375:(t,r,o)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Close",{enumerable:!0,get:function get(){return a.Close}}),Object.defineProperty(r,"Load",{enumerable:!0,get:function get(){return u.Load}}),Object.defineProperty(r,"Open",{enumerable:!0,get:function get(){return i.Open}});var a=o(76535),u=o(30735),i=o(11843)},10564:t=>{function _typeof(r){return t.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,_typeof(r)}t.exports=_typeof,t.exports.__esModule=!0,t.exports.default=t.exports},11018:t=>{t.exports=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},11327:(t,r,o)=>{var a=o(10564).default;t.exports=function toPrimitive(t,r){if("object"!=a(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var u=o.call(t,r||"default");if("object"!=a(u))return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},11843:(t,r,o)=>{"use strict";var a=o(96784);Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Open=void 0;var u=a(o(39805)),i=a(o(40989)),c=a(o(15118)),l=a(o(29402)),p=a(o(87861));function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}var d=r.Open=function(t){function Open(){return(0,u.default)(this,Open),function _callSuper(t,r,o){return r=(0,l.default)(r),(0,c.default)(t,_isNativeReflectConstruct()?Reflect.construct(r,o||[],(0,l.default)(t).constructor):r.apply(t,o))}(this,Open,arguments)}return(0,p.default)(Open,t),(0,i.default)(Open,[{key:"apply",value:function apply(t){return $e.route("app",t),!0}}])}($e.modules.CommandBase);r.default=d},13452:(t,r,o)=>{"use strict";var a=o(96784);Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.ForceMethodImplementation=void 0;var u=a(o(40989)),i=a(o(39805)),c=a(o(15118)),l=a(o(29402)),p=a(o(87861)),d=a(o(22835));function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}var v=r.ForceMethodImplementation=function(t){function ForceMethodImplementation(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.default)(this,ForceMethodImplementation),t=function _callSuper(t,r,o){return r=(0,l.default)(r),(0,c.default)(t,_isNativeReflectConstruct()?Reflect.construct(r,o||[],(0,l.default)(t).constructor):r.apply(t,o))}(this,ForceMethodImplementation,["".concat(r.isStatic?"static ":"").concat(r.fullName,"() should be implemented, please provide '").concat(r.functionName||r.fullName,"' functionality.")]),Error.captureStackTrace(t,ForceMethodImplementation),t}return(0,p.default)(ForceMethodImplementation,t),(0,u.default)(ForceMethodImplementation)}((0,d.default)(Error));r.default=function _default(){var t=Error().stack.split("\n")[2].trim(),r=t.startsWith("at new")?"constructor":t.split(" ")[1],o={};if(o.functionName=r,o.fullName=r,o.functionName.includes(".")){var a=o.functionName.split(".");o.className=a[0],o.functionName=a[1]}else o.isStatic=!0;throw new v(o)}},14718:(t,r,o)=>{var a=o(29402);t.exports=function _superPropBase(t,r){for(;!{}.hasOwnProperty.call(t,r)&&null!==(t=a(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports},15118:(t,r,o)=>{var a=o(10564).default,u=o(36417);t.exports=function _possibleConstructorReturn(t,r){if(r&&("object"==a(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return u(t)},t.exports.__esModule=!0,t.exports.default=t.exports},15213:(t,r)=>{"use strict";function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var a=0,u=function F(){};return{s:u,n:function n(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function e(t){throw t},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,l=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();return c=t.done,t},e:function e(t){l=!0,i=t},f:function f(){try{c||null==o.return||o.return()}finally{if(l)throw i}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,a=Array(r);o<r;o++)a[o]=t[o];return a}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=function _default(t,r){var o,a=_createForOfIteratorHelper(r=Array.isArray(r)?r:[r]);try{for(a.s();!(o=a.n()).done;){var u=o.value;if(t.constructor.name===u.prototype[Symbol.toStringTag])return!0}}catch(t){a.e(t)}finally{a.f()}return!1}},18821:(t,r,o)=>{var a=o(70569),u=o(65474),i=o(37744),c=o(11018);t.exports=function _slicedToArray(t,r){return a(t)||u(t,r)||i(t,r)||c()},t.exports.__esModule=!0,t.exports.default=t.exports},22835:(t,r,o)=>{var a=o(29402),u=o(91270),i=o(65826),c=o(86060);function _wrapNativeSuper(r){var o="function"==typeof Map?new Map:void 0;return t.exports=_wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!i(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==o){if(o.has(t))return o.get(t);o.set(t,Wrapper)}function Wrapper(){return c(t,arguments,a(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),u(Wrapper,t)},t.exports.__esModule=!0,t.exports.default=t.exports,_wrapNativeSuper(r)}t.exports=_wrapNativeSuper,t.exports.__esModule=!0,t.exports.default=t.exports},29402:t=>{function _getPrototypeOf(r){return t.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,_getPrototypeOf(r)}t.exports=_getPrototypeOf,t.exports.__esModule=!0,t.exports.default=t.exports},30735:(t,r,o)=>{"use strict";var a=o(96784);Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Load=void 0;var u=a(o(39805)),i=a(o(40989)),c=a(o(15118)),l=a(o(29402)),p=a(o(87861));function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}var d=r.Load=function(t){function Load(){return(0,u.default)(this,Load),function _callSuper(t,r,o){return r=(0,l.default)(r),(0,c.default)(t,_isNativeReflectConstruct()?Reflect.construct(r,o||[],(0,l.default)(t).constructor):r.apply(t,o))}(this,Load,arguments)}return(0,p.default)(Load,t),(0,i.default)(Load,[{key:"apply",value:function apply(t){var r=this.component;r.iframe||(r.iframe=document.createElement("iframe"),r.iframe.className="elementor-app-iframe",r.iframe.style.cssText="display: none;width: 100%;height: 100%;position: fixed;top: 0;left: 0;z-index: 99999; /* Over WP Admin Bar */background-color: rgba(0, 0, 0, 0.8);",document.body.appendChild(r.iframe)),t.url!==r.iframe.src&&(r.iframe.src=t.url)}}])}($e.modules.CommandBase);r.default=d},33448:t=>{function _isNativeReflectConstruct(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(t.exports=_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!r},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=_isNativeReflectConstruct,t.exports.__esModule=!0,t.exports.default=t.exports},36417:t=>{t.exports=function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},37744:(t,r,o)=>{var a=o(78113);t.exports=function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return a(t,r);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?a(t,r):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},39805:t=>{t.exports=function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},40397:(t,r,o)=>{"use strict";var a=o(96784);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var u=a(o(85707)),i=a(o(18821)),c=a(o(39805)),l=a(o(40989)),p=a(o(15118)),d=a(o(29402)),v=a(o(87861)),y=a(o(41019)),m=o(58007),h=a(o(641)),g=a(o(13452)),b=a(o(92766));function ownKeys(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),o.push.apply(o,a)}return o}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(o),!0).forEach(function(r){(0,u.default)(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function _callSuper(t,r,o){return r=(0,d.default)(r),(0,p.default)(t,_isNativeReflectConstruct()?Reflect.construct(r,o||[],(0,d.default)(t).constructor):r.apply(t,o))}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}r.default=function(t){function ComponentBase(){return(0,c.default)(this,ComponentBase),_callSuper(this,ComponentBase,arguments)}return(0,v.default)(ComponentBase,t),(0,l.default)(ComponentBase,[{key:"__construct",value:function __construct(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.manager&&(this.manager=t.manager),this.commands=this.defaultCommands(),this.commandsInternal=this.defaultCommandsInternal(),this.hooks=this.defaultHooks(),this.routes=this.defaultRoutes(),this.tabs=this.defaultTabs(),this.shortcuts=this.defaultShortcuts(),this.utils=this.defaultUtils(),this.data=this.defaultData(),this.uiStates=this.defaultUiStates(),this.states=this.defaultStates(),this.defaultRoute="",this.currentTab=""}},{key:"registerAPI",value:function registerAPI(){var t=this;Object.entries(this.getTabs()).forEach(function(r){return t.registerTabRoute(r[0])}),Object.entries(this.getRoutes()).forEach(function(r){var o=(0,i.default)(r,2),a=o[0],u=o[1];return t.registerRoute(a,u)}),Object.entries(this.getCommands()).forEach(function(r){var o=(0,i.default)(r,2),a=o[0],u=o[1];return t.registerCommand(a,u)}),Object.entries(this.getCommandsInternal()).forEach(function(r){var o=(0,i.default)(r,2),a=o[0],u=o[1];return t.registerCommandInternal(a,u)}),Object.values(this.getHooks()).forEach(function(r){return t.registerHook(r)}),Object.entries(this.getData()).forEach(function(r){var o=(0,i.default)(r,2),a=o[0],u=o[1];return t.registerData(a,u)}),Object.values(this.getUiStates()).forEach(function(r){return t.registerUiState(r)}),Object.entries(this.getStates()).forEach(function(r){var o=(0,i.default)(r,2),a=o[0],u=o[1];return t.registerState(a,u)})}},{key:"getNamespace",value:function getNamespace(){(0,g.default)()}},{key:"getRootContainer",value:function getRootContainer(){return b.default.deprecated("getRootContainer()","3.7.0","getServiceName()"),this.getServiceName()}},{key:"getServiceName",value:function getServiceName(){return this.getNamespace().split("/")[0]}},{key:"store",get:function get(){return $e.store.get(this.getNamespace())}},{key:"defaultTabs",value:function defaultTabs(){return{}}},{key:"defaultRoutes",value:function defaultRoutes(){return{}}},{key:"defaultCommands",value:function defaultCommands(){return{}}},{key:"defaultCommandsInternal",value:function defaultCommandsInternal(){return{}}},{key:"defaultHooks",value:function defaultHooks(){return{}}},{key:"defaultUiStates",value:function defaultUiStates(){return{}}},{key:"defaultStates",value:function defaultStates(){return{}}},{key:"defaultShortcuts",value:function defaultShortcuts(){return{}}},{key:"defaultUtils",value:function defaultUtils(){return{}}},{key:"defaultData",value:function defaultData(){return{}}},{key:"getCommands",value:function getCommands(){return this.commands}},{key:"getCommandsInternal",value:function getCommandsInternal(){return this.commandsInternal}},{key:"getHooks",value:function getHooks(){return this.hooks}},{key:"getUiStates",value:function getUiStates(){return this.uiStates}},{key:"getStates",value:function getStates(){return this.states}},{key:"getRoutes",value:function getRoutes(){return this.routes}},{key:"getTabs",value:function getTabs(){return this.tabs}},{key:"getShortcuts",value:function getShortcuts(){return this.shortcuts}},{key:"getData",value:function getData(){return this.data}},{key:"registerCommand",value:function registerCommand(t,r){var o;switch(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default"){case"default":o=$e.commands;break;case"internal":o=$e.commandsInternal;break;case"data":o=$e.data;break;default:throw new Error("Invalid commands type: '".concat(t,"'"))}var a=this.getNamespace()+"/"+t,u={command:a,component:this};!!r.getInstanceType&&r.getInstanceType()||($e.devTools&&$e.devTools.log.warn("Attach command-callback-base, on command: '".concat(a,"', context is unknown type.")),u.callback=r,r=function(t){function context(){return(0,c.default)(this,context),_callSuper(this,context,arguments)}return(0,v.default)(context,t),(0,l.default)(context)}(y.default)),r.setRegisterConfig(u),o.register(this,t,r)}},{key:"registerHook",value:function registerHook(t){return t.register()}},{key:"registerCommandInternal",value:function registerCommandInternal(t,r){this.registerCommand(t,r,"internal")}},{key:"registerUiState",value:function registerUiState(t){$e.uiStates.register(t)}},{key:"registerState",value:function registerState(t,r){t=this.getNamespace()+(t?"/".concat(t):"");var o=(0,m.createSlice)(_objectSpread(_objectSpread({},r),{},{name:t}));$e.store.register(t,o)}},{key:"registerRoute",value:function registerRoute(t,r){$e.routes.register(this,t,r)}},{key:"registerData",value:function registerData(t,r){this.registerCommand(t,r,"data")}},{key:"unregisterRoute",value:function unregisterRoute(t){$e.routes.unregister(this,t)}},{key:"registerTabRoute",value:function registerTabRoute(t){var r=this;this.registerRoute(t,function(o){return r.activateTab(t,o)})}},{key:"dependency",value:function dependency(){return!0}},{key:"open",value:function open(){return!0}},{key:"close",value:function close(){return!!this.isOpen&&(this.isOpen=!1,this.inactivate(),$e.routes.clearCurrent(this.getNamespace()),$e.routes.clearHistory(this.getServiceName()),!0)}},{key:"activate",value:function activate(){$e.components.activate(this.getNamespace())}},{key:"inactivate",value:function inactivate(){$e.components.inactivate(this.getNamespace())}},{key:"isActive",value:function isActive(){return $e.components.isActive(this.getNamespace())}},{key:"onRoute",value:function onRoute(t){this.toggleRouteClass(t,!0),this.toggleHistoryClass(),this.activate(),this.trigger("route/open",t)}},{key:"onCloseRoute",value:function onCloseRoute(t){this.toggleRouteClass(t,!1),this.inactivate(),this.trigger("route/close",t)}},{key:"setDefaultRoute",value:function setDefaultRoute(t){this.defaultRoute=this.getNamespace()+"/"+t}},{key:"getDefaultRoute",value:function getDefaultRoute(){return this.defaultRoute}},{key:"removeTab",value:function removeTab(t){delete this.tabs[t],this.unregisterRoute(t)}},{key:"hasTab",value:function hasTab(t){return!!this.tabs[t]}},{key:"addTab",value:function addTab(t,r,o){var a=this;if(this.tabs[t]=r,void 0!==o){var u={},i=Object.keys(this.tabs);i.pop(),i.splice(o,0,t),i.forEach(function(t){u[t]=a.tabs[t]}),this.tabs=u}this.registerTabRoute(t)}},{key:"getTabsWrapperSelector",value:function getTabsWrapperSelector(){return""}},{key:"getTabRoute",value:function getTabRoute(t){return this.getNamespace()+"/"+t}},{key:"renderTab",value:function renderTab(t){}},{key:"activateTab",value:function activateTab(t,r){var o=this;this.renderTab(t,r),jQuery(this.getTabsWrapperSelector()+" .elementor-component-tab").off("click").on("click",function(t){$e.route(o.getTabRoute(t.currentTarget.dataset.tab),r)}).removeClass("elementor-active").filter('[data-tab="'+t+'"]').addClass("elementor-active")}},{key:"getActiveTabConfig",value:function getActiveTabConfig(){return this.tabs[this.currentTab]||{}}},{key:"getBodyClass",value:function getBodyClass(t){return"e-route-"+t.replace(/\//g,"-")}},{key:"normalizeCommandName",value:function normalizeCommandName(t){return t.replace(/[A-Z]/g,function(t,r){return(r>0?"-":"")+t.toLowerCase()})}},{key:"importCommands",value:function importCommands(t){var r=this,o={};return Object.entries(t).forEach(function(t){var a=(0,i.default)(t,2),u=a[0],c=a[1],l=r.normalizeCommandName(u);o[l]=c}),o}},{key:"importHooks",value:function importHooks(t){var r={};for(var o in t){var a=new t[o];r[a.getId()]=a}return r}},{key:"importUiStates",value:function importUiStates(t){var r=this,o={};return Object.values(t).forEach(function(t){var a=new t(r);o[a.getId()]=a}),o}},{key:"setUiState",value:function setUiState(t,r){$e.uiStates.set("".concat(this.getNamespace(),"/").concat(t),r)}},{key:"toggleRouteClass",value:function toggleRouteClass(t,r){document.body.classList.toggle(this.getBodyClass(t),r)}},{key:"toggleHistoryClass",value:function toggleHistoryClass(){document.body.classList.toggle("e-routes-has-history",!!$e.routes.getHistory(this.getServiceName()).length)}}])}(h.default)},40989:(t,r,o)=>{var a=o(45498);function _defineProperties(t,r){for(var o=0;o<r.length;o++){var u=r[o];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,a(u.key),u)}}t.exports=function _createClass(t,r,o){return r&&_defineProperties(t.prototype,r),o&&_defineProperties(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},41019:(t,r,o)=>{"use strict";var a=o(96784);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var u=a(o(39805)),i=a(o(40989)),c=a(o(15118)),l=a(o(29402)),p=a(o(87861)),d=a(o(83535));function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}r.default=function(t){function CommandCallbackBase(){return(0,u.default)(this,CommandCallbackBase),function _callSuper(t,r,o){return r=(0,l.default)(r),(0,c.default)(t,_isNativeReflectConstruct()?Reflect.construct(r,o||[],(0,l.default)(t).constructor):r.apply(t,o))}(this,CommandCallbackBase,arguments)}return(0,p.default)(CommandCallbackBase,t),(0,i.default)(CommandCallbackBase,[{key:"apply",value:function apply(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.constructor.getCallback()(t)}}],[{key:"getInstanceType",value:function getInstanceType(){return"CommandCallbackBase"}},{key:"getCallback",value:function getCallback(){return this.registerConfig.callback}}])}(d.default)},41621:(t,r,o)=>{var a=o(14718);function _get(){return t.exports=_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,r,o){var u=a(t,r);if(u){var i=Object.getOwnPropertyDescriptor(u,r);return i.get?i.get.call(arguments.length<3?t:o):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports,_get.apply(null,arguments)}t.exports=_get,t.exports.__esModule=!0,t.exports.default=t.exports},45498:(t,r,o)=>{var a=o(10564).default,u=o(11327);t.exports=function toPropertyKey(t){var r=u(t,"string");return"symbol"==a(r)?r:r+""},t.exports.__esModule=!0,t.exports.default=t.exports},49175:(t,r,o)=>{"use strict";var a=o(96784),u=o(10564);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=a(o(39805)),c=a(o(40989)),l=a(o(15118)),p=a(o(29402)),d=a(o(87861)),v=a(o(40397)),y=function _interopRequireWildcard(t,r){if("function"==typeof WeakMap)var o=new WeakMap,a=new WeakMap;return function _interopRequireWildcard(t,r){if(!r&&t&&t.__esModule)return t;var i,c,l={__proto__:null,default:t};if(null===t||"object"!=u(t)&&"function"!=typeof t)return l;if(i=r?a:o){if(i.has(t))return i.get(t);i.set(t,l)}for(var p in t)"default"!==p&&{}.hasOwnProperty.call(t,p)&&((c=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,p))&&(c.get||c.set)?i(l,p,c):l[p]=t[p]);return l}(t,r)}(o(7375));function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}r.default=function(t){function Component(){return(0,i.default)(this,Component),function _callSuper(t,r,o){return r=(0,p.default)(r),(0,l.default)(t,_isNativeReflectConstruct()?Reflect.construct(r,o||[],(0,p.default)(t).constructor):r.apply(t,o))}(this,Component,arguments)}return(0,d.default)(Component,t),(0,c.default)(Component,[{key:"getNamespace",value:function getNamespace(){return"app"}},{key:"defaultRoutes",value:function defaultRoutes(){var t=this;return{"":function _(r){r.url=r.url||elementorAppConfig.menu_url,$e.run("app/load",r),t.iframe.style.display="",document.body.style.overflow="hidden"}}}},{key:"defaultCommands",value:function defaultCommands(){return this.importCommands(y)}},{key:"defaultShortcuts",value:function defaultShortcuts(){return{"":{keys:"ctrl+shift+e"},close:{keys:"esc",scopes:[this.getNamespace()]}}}}])}(v.default)},58007:t=>{"use strict";t.exports=elementorVendors.reduxToolkit},65474:t=>{t.exports=function _iterableToArrayLimit(t,r){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var a,u,i,c,l=[],p=!0,d=!1;try{if(i=(o=o.call(t)).next,0===r){if(Object(o)!==o)return;p=!1}else for(;!(p=(a=i.call(o)).done)&&(l.push(a.value),l.length!==r);p=!0);}catch(t){d=!0,u=t}finally{try{if(!p&&null!=o.return&&(c=o.return(),Object(c)!==c))return}finally{if(d)throw u}}return l}},t.exports.__esModule=!0,t.exports.default=t.exports},65826:t=>{t.exports=function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(r){return"function"==typeof t}},t.exports.__esModule=!0,t.exports.default=t.exports},70569:t=>{t.exports=function _arrayWithHoles(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},70751:(t,r,o)=>{"use strict";var a=o(96784);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var u=a(o(39805)),i=a(o(40989)),c=a(o(29402)),l=a(o(41621));r.default=function(){function InstanceType(){var t=this;(0,u.default)(this,InstanceType);for(var r=this instanceof InstanceType?this.constructor:void 0,o=[];r.__proto__&&r.__proto__.name;)o.push(r.__proto__),r=r.__proto__;o.reverse().forEach(function(r){return t instanceof r})}return(0,i.default)(InstanceType,null,[{key:Symbol.hasInstance,value:function value(t){var r=function _superPropGet(t,r,o,a){var u=(0,l.default)((0,c.default)(1&a?t.prototype:t),r,o);return 2&a&&"function"==typeof u?function(t){return u.apply(o,t)}:u}(InstanceType,Symbol.hasInstance,this,2)([t]);if(t&&!t.constructor.getInstanceType)return r;if(t&&(t.instanceTypes||(t.instanceTypes=[]),r||this.getInstanceType()===t.constructor.getInstanceType()&&(r=!0),r)){var o=this.getInstanceType===InstanceType.getInstanceType?"BaseInstanceType":this.getInstanceType();-1===t.instanceTypes.indexOf(o)&&t.instanceTypes.push(o)}return!r&&t&&(r=t.instanceTypes&&Array.isArray(t.instanceTypes)&&-1!==t.instanceTypes.indexOf(this.getInstanceType())),r}},{key:"getInstanceType",value:function getInstanceType(){elementorModules.ForceMethodImplementation()}}])}()},76535:(t,r,o)=>{"use strict";var a=o(96784);Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Close=void 0;var u=a(o(39805)),i=a(o(40989)),c=a(o(15118)),l=a(o(29402)),p=a(o(87861));function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}var d=r.Close=function(t){function Close(){return(0,u.default)(this,Close),function _callSuper(t,r,o){return r=(0,l.default)(r),(0,c.default)(t,_isNativeReflectConstruct()?Reflect.construct(r,o||[],(0,l.default)(t).constructor):r.apply(t,o))}(this,Close,arguments)}return(0,p.default)(Close,t),(0,i.default)(Close,[{key:"apply",value:function apply(){return!!this.component.close()&&(this.component.iframe.remove(),this.component.iframe=null,!0)}}])}($e.modules.CommandBase);r.default=d},78113:t=>{t.exports=function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,a=Array(r);o<r;o++)a[o]=t[o];return a},t.exports.__esModule=!0,t.exports.default=t.exports},79958:(t,r,o)=>{"use strict";var a=o(96784);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var u=a(o(39805)),i=a(o(40989)),c=a(o(15118)),l=a(o(29402)),p=a(o(87861)),d=a(o(85707)),v=a(o(82946)),y=a(o(92766));function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}var m=r.default=function(t){function CommandInfra(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,u.default)(this,CommandInfra),!(t=function _callSuper(t,r,o){return r=(0,l.default)(r),(0,c.default)(t,_isNativeReflectConstruct()?Reflect.construct(r,o||[],(0,l.default)(t).constructor):r.apply(t,o))}(this,CommandInfra,[r])).constructor.registerConfig)throw RangeError("Doing it wrong: Each command type should have `registerConfig`.");return t.command=t.constructor.getCommand(),t.component=t.constructor.getComponent(),t.initialize(r),r=t.args,t.validateArgs(r),t}return(0,p.default)(CommandInfra,t),(0,i.default)(CommandInfra,[{key:"currentCommand",get:function get(){return y.default.deprecated("this.currentCommand","3.7.0","this.command"),this.command}},{key:"initialize",value:function initialize(){}},{key:"validateArgs",value:function validateArgs(){}},{key:"apply",value:function apply(){elementorModules.ForceMethodImplementation()}},{key:"run",value:function run(){return this.apply(this.args)}},{key:"onBeforeRun",value:function onBeforeRun(){}},{key:"onAfterRun",value:function onAfterRun(){}},{key:"onBeforeApply",value:function onBeforeApply(){}},{key:"onAfterApply",value:function onAfterApply(){}},{key:"onCatchApply",value:function onCatchApply(t){}}],[{key:"getInstanceType",value:function getInstanceType(){return"CommandInfra"}},{key:"getInfo",value:function getInfo(){return{}}},{key:"getCommand",value:function getCommand(){return this.registerConfig.command}},{key:"getComponent",value:function getComponent(){return this.registerConfig.component}},{key:"setRegisterConfig",value:function setRegisterConfig(t){this.registerConfig=Object.freeze(t)}}])}(v.default);(0,d.default)(m,"registerConfig",null)},82946:(t,r,o)=>{"use strict";var a=o(96784);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var u=a(o(10564)),i=a(o(39805)),c=a(o(40989)),l=a(o(15118)),p=a(o(29402)),d=a(o(87861)),v=a(o(70751)),y=a(o(15213));function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}r.default=function(t){function ArgsObject(t){var r;return(0,i.default)(this,ArgsObject),(r=function _callSuper(t,r,o){return r=(0,p.default)(r),(0,l.default)(t,_isNativeReflectConstruct()?Reflect.construct(r,o||[],(0,p.default)(t).constructor):r.apply(t,o))}(this,ArgsObject)).args=t,r}return(0,d.default)(ArgsObject,t),(0,c.default)(ArgsObject,[{key:"requireArgument",value:function requireArgument(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.args;if(!Object.prototype.hasOwnProperty.call(r,t))throw Error("".concat(t," is required."))}},{key:"requireArgumentType",value:function requireArgumentType(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.args;if(this.requireArgument(t,o),(0,u.default)(o[t])!==r)throw Error("".concat(t," invalid type: ").concat(r,"."))}},{key:"requireArgumentInstance",value:function requireArgumentInstance(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.args;if(this.requireArgument(t,o),!(o[t]instanceof r||(0,y.default)(o[t],r)))throw Error("".concat(t," invalid instance."))}},{key:"requireArgumentConstructor",value:function requireArgumentConstructor(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.args;if(this.requireArgument(t,o),o[t].constructor.toString()!==r.prototype.constructor.toString())throw Error("".concat(t," invalid constructor type."))}}],[{key:"getInstanceType",value:function getInstanceType(){return"ArgsObject"}}])}(v.default)},83535:(t,r,o)=>{"use strict";var a=o(96784);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var u=a(o(39805)),i=a(o(40989)),c=a(o(15118)),l=a(o(29402)),p=a(o(87861)),d=a(o(79958)),v=a(o(92766));function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}r.default=function(t){function CommandBase(){return(0,u.default)(this,CommandBase),function _callSuper(t,r,o){return r=(0,l.default)(r),(0,c.default)(t,_isNativeReflectConstruct()?Reflect.construct(r,o||[],(0,l.default)(t).constructor):r.apply(t,o))}(this,CommandBase,arguments)}return(0,p.default)(CommandBase,t),(0,i.default)(CommandBase,[{key:"onBeforeRun",value:function onBeforeRun(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};$e.hooks.runUIBefore(this.command,t)}},{key:"onAfterRun",value:function onAfterRun(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;$e.hooks.runUIAfter(this.command,t,r)}},{key:"onBeforeApply",value:function onBeforeApply(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};$e.hooks.runDataDependency(this.command,t)}},{key:"onAfterApply",value:function onAfterApply(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return $e.hooks.runDataAfter(this.command,t,r)}},{key:"onCatchApply",value:function onCatchApply(t){this.runCatchHooks(t)}},{key:"runCatchHooks",value:function runCatchHooks(t){$e.hooks.runDataCatch(this.command,this.args,t),$e.hooks.runUICatch(this.command,this.args,t)}},{key:"requireContainer",value:function requireContainer(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.args;if(v.default.deprecated("requireContainer()","3.7.0","Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`"),!r.container&&!r.containers)throw Error("container or containers are required.");if(r.container&&r.containers)throw Error("container and containers cannot go together please select one of them.");(r.containers||[r.container]).forEach(function(r){t.requireArgumentInstance("container",elementorModules.editor.Container,{container:r})})}}],[{key:"getInstanceType",value:function getInstanceType(){return"CommandBase"}}])}(d.default)},85707:(t,r,o)=>{var a=o(45498);t.exports=function _defineProperty(t,r,o){return(r=a(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t},t.exports.__esModule=!0,t.exports.default=t.exports},86060:(t,r,o)=>{var a=o(33448),u=o(91270);t.exports=function _construct(t,r,o){if(a())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,r);var c=new(t.bind.apply(t,i));return o&&u(c,o.prototype),c},t.exports.__esModule=!0,t.exports.default=t.exports},87861:(t,r,o)=>{var a=o(91270);t.exports=function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&a(t,r)},t.exports.__esModule=!0,t.exports.default=t.exports},88413:(t,r,o)=>{"use strict";var a=o(96784);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var u=a(o(39805)),i=a(o(40989));r.default=function(){return(0,i.default)(function Console(){(0,u.default)(this,Console)},null,[{key:"error",value:function error(t){$e.devTools&&$e.devTools.log.error(t),t instanceof $e.modules.HookBreak||console.error(t)}},{key:"warn",value:function warn(){for(var t,r='font-size: 12px; background-image: url("'.concat(elementorWebCliConfig.urls.assets,'images/logo-icon.png"); background-repeat: no-repeat; background-size: contain;'),o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];a.unshift("%c %c",r,""),(t=console).warn.apply(t,a)}}])}()},91270:t=>{function _setPrototypeOf(r,o){return t.exports=_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},t.exports.__esModule=!0,t.exports.default=t.exports,_setPrototypeOf(r,o)}t.exports=_setPrototypeOf,t.exports.__esModule=!0,t.exports.default=t.exports},92766:(t,r,o)=>{"use strict";var a=o(96784);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var u=a(o(18821)),i=a(o(39805)),c=a(o(40989)),l=a(o(88413)),p=function deprecatedMessage(t,r,o,a){var u="`".concat(r,"` is ").concat(t," deprecated since ").concat(o);a&&(u+=" - Use `".concat(a,"` instead")),l.default.warn(u)};r.default=function(){return(0,c.default)(function Deprecation(){(0,i.default)(this,Deprecation)},null,[{key:"deprecated",value:function deprecated(t,r,o){this.isHardDeprecated(r)?function hardDeprecated(t,r,o){p("hard",t,r,o)}(t,r,o):function softDeprecated(t,r,o){elementorWebCliConfig.isDebug&&p("soft",t,r,o)}(t,r,o)}},{key:"parseVersion",value:function parseVersion(t){var r=t.split(".");if(r.length<3||r.length>4)throw new RangeError("Invalid Semantic Version string provided");var o=(0,u.default)(r,4),a=o[0],i=o[1],c=o[2],l=o[3],p=void 0===l?"":l;return{major1:parseInt(a),major2:parseInt(i),minor:parseInt(c),build:p}}},{key:"getTotalMajor",value:function getTotalMajor(t){var r=parseInt("".concat(t.major1).concat(t.major2,"0"));return r=Number((r/10).toFixed(0)),t.major2>9&&(r=t.major2-9),r}},{key:"compareVersion",value:function compareVersion(t,r){var o=this;return[this.parseVersion(t),this.parseVersion(r)].map(function(t){return o.getTotalMajor(t)}).reduce(function(t,r){return t-r})}},{key:"isSoftDeprecated",value:function isSoftDeprecated(t){return this.compareVersion(t,elementorWebCliConfig.version)<=4}},{key:"isHardDeprecated",value:function isHardDeprecated(t){var r=this.compareVersion(t,elementorWebCliConfig.version);return r<0||r>=8}}])}()},96784:t=>{t.exports=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports}},r={};function __webpack_require__(o){var a=r[o];if(void 0!==a)return a.exports;var u=r[o]={exports:{}};return t[o](u,u.exports,__webpack_require__),u.exports}(()=>{"use strict";var t=__webpack_require__(96784),r=t(__webpack_require__(39805)),o=t(__webpack_require__(40989)),a=t(__webpack_require__(85707)),u=t(__webpack_require__(49175)),i=function(){return(0,o.default)(function AppLoader(){(0,r.default)(this,AppLoader),(0,a.default)(this,"selector","a.elementor-app-link, .elementor-app-link .ab-item"),$e.components.register(new u.default),window.addEventListener("DOMContentLoaded",this.onLoad.bind(this))},[{key:"onLoad",value:function onLoad(){var t=document.querySelectorAll(this.selector);t.length&&t.forEach(function(t){t.addEventListener("click",function(r){r.preventDefault(),$e.run("app/open",{url:t.href})}),t.addEventListener("mouseenter",function(){$e.run("app/load",{url:t.href})})})}}])}();window.elementorAppLoader=new i})()})();
1 +(function(t){var r=Object.create,i=Object.defineProperty,__name=(t,r)=>i(t,`name`,{value:r,configurable:!0}),a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,__esmMin=(t,r,i)=>()=>{if(i)throw i[0];try{return t&&(r=t(t=0)),r}catch(t){throw i=[t],t}},__commonJSMin=(t,r)=>()=>(r||(t((r={exports:{}}).exports,r),t=null),r.exports),__exportAll=(t,r)=>{let a={};for(var o in t)i(a,o,{get:t[o],enumerable:!0});return r||i(a,Symbol.toStringTag,{value:`Module`}),a},__copyProps=(t,r,c,u)=>{if(r&&typeof r==`object`||typeof r==`function`)for(var d=o(r),p=0,m=d.length,h;p<m;p++)h=d[p],!l.call(t,h)&&h!==c&&i(t,h,{get:(t=>r[t]).bind(null,h),enumerable:!(u=a(r,h))||u.enumerable});return t},__toESM=(t,a,o)=>(o=t==null?{}:r(c(t)),__copyProps(a||!t||!t.__esModule?i(o,`default`,{value:t,enumerable:!0}):o,t));function _classCallCheck(t,r){if(!(t instanceof r))throw TypeError(`Cannot call a class as a function`)}function _typeof(t){"@babel/helpers - typeof";return _typeof=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(t){return typeof t}:function(t){return t&&typeof Symbol==`function`&&t.constructor===Symbol&&t!==Symbol.prototype?`symbol`:typeof t},_typeof(t)}var u=__esmMin((()=>{}));u();function toPrimitive(t,r){if(_typeof(t)!=`object`||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var a=i.call(t,r||`default`);if(_typeof(a)!=`object`)return a;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(r===`string`?String:Number)(t)}u();function toPropertyKey(t){var r=toPrimitive(t,`string`);return _typeof(r)==`symbol`?r:r+``}function _defineProperties(t,r){for(var i=0;i<r.length;i++){var a=r[i];a.enumerable=a.enumerable||!1,a.configurable=!0,`value`in a&&(a.writable=!0),Object.defineProperty(t,toPropertyKey(a.key),a)}}function _createClass(t,r,i){return r&&_defineProperties(t.prototype,r),i&&_defineProperties(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function _defineProperty(t,r,i){return(r=toPropertyKey(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function _assertThisInitialized(t){if(t===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t}u();function _possibleConstructorReturn(t,r){if(r&&(_typeof(r)==`object`||typeof r==`function`))return r;if(r!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return _assertThisInitialized(t)}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}function _setPrototypeOf(t,r){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},_setPrototypeOf(t,r)}function _inherits(t,r){if(typeof r!=`function`&&r!==null)throw TypeError(`Super expression must either be null or a function`);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&_setPrototypeOf(t,r)}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _iterableToArrayLimit(t,r){var i=t==null?null:typeof Symbol<`u`&&t[Symbol.iterator]||t[`@@iterator`];if(i!=null){var a,o,c,l,u=[],d=!0,p=!1;try{if(c=(i=i.call(t)).next,r===0){if(Object(i)!==i)return;d=!1}else for(;!(d=(a=c.call(i)).done)&&(u.push(a.value),u.length!==r);d=!0);}catch(t){p=!0,o=t}finally{try{if(!d&&i.return!=null&&(l=i.return(),Object(l)!==l))return}finally{if(p)throw o}}return u}}function _arrayLikeToArray$1(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,a=Array(r);i<r;i++)a[i]=t[i];return a}__name(_arrayLikeToArray$1,`_arrayLikeToArray`);function _unsupportedIterableToArray$1(t,r){if(t){if(typeof t==`string`)return _arrayLikeToArray$1(t,r);var i={}.toString.call(t).slice(8,-1);return i===`Object`&&t.constructor&&(i=t.constructor.name),i===`Map`||i===`Set`?Array.from(t):i===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray$1(t,r):void 0}}__name(_unsupportedIterableToArray$1,`_unsupportedIterableToArray`);function _nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2 +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(t,r){return _arrayWithHoles(t)||_iterableToArrayLimit(t,r)||_unsupportedIterableToArray$1(t,r)||_nonIterableRest()}function _superPropBase(t,r){for(;!{}.hasOwnProperty.call(t,r)&&(t=_getPrototypeOf(t))!==null;);return t}function _get(){return _get=typeof Reflect<`u`&&Reflect.get?Reflect.get.bind():function(t,r,i){var a=_superPropBase(t,r);if(a){var o=Object.getOwnPropertyDescriptor(a,r);return o.get?o.get.call(arguments.length<3?t:i):o.value}},_get.apply(null,arguments)}function _superPropGet(t,r,i,a){var o=_get(_getPrototypeOf(1&a?t.prototype:t),r,i);return 2&a&&typeof o==`function`?function(t){return o.apply(i,t)}:o}var d=function(){function InstanceType(){var t=this;_classCallCheck(this,InstanceType);for(var r=this instanceof InstanceType?this.constructor:void 0,i=[];r.__proto__&&r.__proto__.name;)i.push(r.__proto__),r=r.__proto__;i.reverse().forEach(function(r){return t instanceof r})}return _createClass(InstanceType,null,[{key:Symbol.hasInstance,value:function value(t){var r=_superPropGet(InstanceType,Symbol.hasInstance,this,2)([t]);if(t&&!t.constructor.getInstanceType)return r;if(t&&(t.instanceTypes||(t.instanceTypes=[]),r||this.getInstanceType()===t.constructor.getInstanceType()&&(r=!0),r)){var i=this.getInstanceType===InstanceType.getInstanceType?`BaseInstanceType`:this.getInstanceType();t.instanceTypes.indexOf(i)===-1&&t.instanceTypes.push(i)}return!r&&t&&(r=t.instanceTypes&&Array.isArray(t.instanceTypes)&&t.instanceTypes.indexOf(this.getInstanceType())!==-1),r}},{key:`getInstanceType`,value:function getInstanceType(){elementorModules.ForceMethodImplementation()}}])}();function _createForOfIteratorHelper(t,r){var i=typeof Symbol<`u`&&t[Symbol.iterator]||t[`@@iterator`];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||r&&t&&typeof t.length==`number`){i&&(t=i);var a=0,o=function F(){};return{s:o,n:function n(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function e(t){throw t},f:o}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
3 +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c,l=!0,u=!1;return{s:function s(){i=i.call(t)},n:function n(){var t=i.next();return l=t.done,t},e:function e(t){u=!0,c=t},f:function f(){try{l||i.return==null||i.return()}finally{if(u)throw c}}}}function _unsupportedIterableToArray(t,r){if(t){if(typeof t==`string`)return _arrayLikeToArray(t,r);var i={}.toString.call(t).slice(8,-1);return i===`Object`&&t.constructor&&(i=t.constructor.name),i===`Map`||i===`Set`?Array.from(t):i===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,a=Array(r);i<r;i++)a[i]=t[i];return a}var p=__name((function(t,r){r=Array.isArray(r)?r:[r];var i=_createForOfIteratorHelper(r),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;if(t.constructor.name===o.prototype[Symbol.toStringTag])return!0}}catch(t){i.e(t)}finally{i.f()}return!1}),`default`);u();function _callSuper$9(t,r,i){return r=_getPrototypeOf(r),_possibleConstructorReturn(t,_isNativeReflectConstruct$10()?Reflect.construct(r,i||[],_getPrototypeOf(t).constructor):r.apply(t,i))}__name(_callSuper$9,`_callSuper`);function _isNativeReflectConstruct$10(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct$10=function _isNativeReflectConstruct(){return!!t})()}__name(_isNativeReflectConstruct$10,`_isNativeReflectConstruct`);var m=function(t){function ArgsObject(t){var r;return _classCallCheck(this,ArgsObject),r=_callSuper$9(this,ArgsObject),r.args=t,r}return _inherits(ArgsObject,t),_createClass(ArgsObject,[{key:`requireArgument`,value:function requireArgument(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.args;if(!Object.prototype.hasOwnProperty.call(r,t))throw Error(`${t} is required.`)}},{key:`requireArgumentType`,value:function requireArgumentType(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.args;if(this.requireArgument(t,i),_typeof(i[t])!==r)throw Error(`${t} invalid type: ${r}.`)}},{key:`requireArgumentInstance`,value:function requireArgumentInstance(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.args;if(this.requireArgument(t,i),!(i[t]instanceof r)&&!p(i[t],r))throw Error(`${t} invalid instance.`)}},{key:`requireArgumentConstructor`,value:function requireArgumentConstructor(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.args;if(this.requireArgument(t,i),i[t].constructor.toString()!==r.prototype.constructor.toString())throw Error(`${t} invalid constructor type.`)}}],[{key:`getInstanceType`,value:function getInstanceType(){return`ArgsObject`}}])}(d),h=function(){function Console(){_classCallCheck(this,Console)}return _createClass(Console,null,[{key:`error`,value:function error(t){$e.devTools&&$e.devTools.log.error(t),t instanceof $e.modules.HookBreak||console.error(t)}},{key:`warn`,value:function warn(){for(var t,r=`font-size: 12px; background-image: url("${elementorWebCliConfig.urls.assets}images/logo-icon.png"); background-repeat: no-repeat; background-size: contain;`,i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];a.unshift(`%c %c`,r,``),(t=console).warn.apply(t,a)}}])}(),g=function softDeprecated(t,r,i){elementorWebCliConfig.isDebug&&y(`soft`,t,r,i)},v=function hardDeprecated(t,r,i){y(`hard`,t,r,i)},y=function deprecatedMessage(t,r,i,a){var o=`\`${r}\` is ${t} deprecated since ${i}`;a&&(o+=` - Use \`${a}\` instead`),h.warn(o)},b=function(){function Deprecation(){_classCallCheck(this,Deprecation)}return _createClass(Deprecation,null,[{key:`deprecated`,value:function deprecated(t,r,i){this.isHardDeprecated(r)?v(t,r,i):g(t,r,i)}},{key:`parseVersion`,value:function parseVersion(t){var r=t.split(`.`);if(r.length<3||r.length>4)throw RangeError(`Invalid Semantic Version string provided`);var i=_slicedToArray(r,4),a=i[0],o=i[1],c=i[2],l=i[3];return{major1:parseInt(a),major2:parseInt(o),minor:parseInt(c),build:l===void 0?``:l}}},{key:`getTotalMajor`,value:function getTotalMajor(t){var r=parseInt(`${t.major1}${t.major2}0`);return r=Number((r/10).toFixed(0)),t.major2>9&&(r=t.major2-9),r}},{key:`compareVersion`,value:function compareVersion(t,r){var i=this;return[this.parseVersion(t),this.parseVersion(r)].map(function(t){return i.getTotalMajor(t)}).reduce(function(t,r){return t-r})}},{key:`isSoftDeprecated`,value:function isSoftDeprecated(t){return this.compareVersion(t,elementorWebCliConfig.version)<=4}},{key:`isHardDeprecated`,value:function isHardDeprecated(t){var r=this.compareVersion(t,elementorWebCliConfig.version);return r<0||r>=8}}])}();function _callSuper$8(t,r,i){return r=_getPrototypeOf(r),_possibleConstructorReturn(t,_isNativeReflectConstruct$9()?Reflect.construct(r,i||[],_getPrototypeOf(t).constructor):r.apply(t,i))}__name(_callSuper$8,`_callSuper`);function _isNativeReflectConstruct$9(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct$9=function _isNativeReflectConstruct(){return!!t})()}__name(_isNativeReflectConstruct$9,`_isNativeReflectConstruct`);var x=function(t){function CommandInfra(){var t,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(_classCallCheck(this,CommandInfra),t=_callSuper$8(this,CommandInfra,[r]),!t.constructor.registerConfig)throw RangeError("Doing it wrong: Each command type should have `registerConfig`.");return t.command=t.constructor.getCommand(),t.component=t.constructor.getComponent(),t.initialize(r),r=t.args,t.validateArgs(r),t}return _inherits(CommandInfra,t),_createClass(CommandInfra,[{key:`currentCommand`,get:function get(){return b.deprecated(`this.currentCommand`,`3.7.0`,`this.command`),this.command}},{key:`initialize`,value:function initialize(){arguments.length>0&&arguments[0]!==void 0&&arguments[0]}},{key:`validateArgs`,value:function validateArgs(){arguments.length>0&&arguments[0]!==void 0&&arguments[0]}},{key:`apply`,value:function apply(){arguments.length>0&&arguments[0]!==void 0&&arguments[0],elementorModules.ForceMethodImplementation()}},{key:`run`,value:function run(){return this.apply(this.args)}},{key:`onBeforeRun`,value:function onBeforeRun(){arguments.length>0&&arguments[0]!==void 0&&arguments[0]}},{key:`onAfterRun`,value:function onAfterRun(){arguments.length>0&&arguments[0]!==void 0&&arguments[0],arguments.length>1&&arguments[1]}},{key:`onBeforeApply`,value:function onBeforeApply(){arguments.length>0&&arguments[0]!==void 0&&arguments[0]}},{key:`onAfterApply`,value:function onAfterApply(){arguments.length>0&&arguments[0]!==void 0&&arguments[0],arguments.length>1&&arguments[1]}},{key:`onCatchApply`,value:function onCatchApply(t){}}],[{key:`getInstanceType`,value:function getInstanceType(){return`CommandInfra`}},{key:`getInfo`,value:function getInfo(){return{}}},{key:`getCommand`,value:function getCommand(){return this.registerConfig.command}},{key:`getComponent`,value:function getComponent(){return this.registerConfig.component}},{key:`setRegisterConfig`,value:function setRegisterConfig(t){this.registerConfig=Object.freeze(t)}}])}(m);_defineProperty(x,`registerConfig`,null);function _callSuper$7(t,r,i){return r=_getPrototypeOf(r),_possibleConstructorReturn(t,_isNativeReflectConstruct$8()?Reflect.construct(r,i||[],_getPrototypeOf(t).constructor):r.apply(t,i))}__name(_callSuper$7,`_callSuper`);function _isNativeReflectConstruct$8(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct$8=function _isNativeReflectConstruct(){return!!t})()}__name(_isNativeReflectConstruct$8,`_isNativeReflectConstruct`);var S=function(t){function CommandBase(){return _classCallCheck(this,CommandBase),_callSuper$7(this,CommandBase,arguments)}return _inherits(CommandBase,t),_createClass(CommandBase,[{key:`onBeforeRun`,value:function onBeforeRun(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$e.hooks.runUIBefore(this.command,t)}},{key:`onAfterRun`,value:function onAfterRun(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;$e.hooks.runUIAfter(this.command,t,r)}},{key:`onBeforeApply`,value:function onBeforeApply(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$e.hooks.runDataDependency(this.command,t)}},{key:`onAfterApply`,value:function onAfterApply(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return $e.hooks.runDataAfter(this.command,t,r)}},{key:`onCatchApply`,value:function onCatchApply(t){this.runCatchHooks(t)}},{key:`runCatchHooks`,value:function runCatchHooks(t){$e.hooks.runDataCatch(this.command,this.args,t),$e.hooks.runUICatch(this.command,this.args,t)}},{key:`requireContainer`,value:function requireContainer(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.args;if(b.deprecated(`requireContainer()`,`3.7.0`,"Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`"),!r.container&&!r.containers)throw Error(`container or containers are required.`);if(r.container&&r.containers)throw Error(`container and containers cannot go together please select one of them.`);(r.containers||[r.container]).forEach(function(r){t.requireArgumentInstance(`container`,elementorModules.editor.Container,{container:r})})}}],[{key:`getInstanceType`,value:function getInstanceType(){return`CommandBase`}}])}(x);function _callSuper$6(t,r,i){return r=_getPrototypeOf(r),_possibleConstructorReturn(t,_isNativeReflectConstruct$7()?Reflect.construct(r,i||[],_getPrototypeOf(t).constructor):r.apply(t,i))}__name(_callSuper$6,`_callSuper`);function _isNativeReflectConstruct$7(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct$7=function _isNativeReflectConstruct(){return!!t})()}__name(_isNativeReflectConstruct$7,`_isNativeReflectConstruct`);var C=function(t){function CommandCallbackBase(){return _classCallCheck(this,CommandCallbackBase),_callSuper$6(this,CommandCallbackBase,arguments)}return _inherits(CommandCallbackBase,t),_createClass(CommandCallbackBase,[{key:`apply`,value:function apply(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.constructor.getCallback()(t)}}],[{key:`getInstanceType`,value:function getInstanceType(){return`CommandCallbackBase`}},{key:`getCallback`,value:function getCallback(){return this.registerConfig.callback}}])}(S),w=__toESM(__commonJSMin(((t,r)=>{u();var i=function Module(){var t=jQuery,r=arguments,i=this,a={},o,c=function ensureClosureMethods(){t.each(i,function(t){var r=i[t];typeof r==`function`&&(i[t]=function(){return r.apply(i,arguments)})})},l=function initSettings(){o=i.getDefaultSettings();var a=r[0];a&&t.extend(!0,o,a)},u=function init(){i.__construct.apply(i,r),c(),l(),i.trigger(`init`)};this.getItems=function(t,r){if(r){var i=r.split(`.`),a=i.splice(0,1);return i.length?t[a]?this.getItems(t[a],i.join(`.`)):void 0:t[a]}return t},this.getSettings=function(t){return this.getItems(o,t)},this.setSettings=function(r,a,c){if(c||(c=o),_typeof(r)===`object`)return t.extend(c,r),i;var l=r.split(`.`),u=l.splice(0,1);return l.length?(c[u]||(c[u]={}),i.setSettings(l.join(`.`),a,c[u])):(c[u]=a,i)},this.getErrorMessage=function(t,r){var i;switch(t){case`forceMethodImplementation`:i=`The method '${r}' must to be implemented in the inheritor child.`;break;default:i=`An error occurs`}return i},this.forceMethodImplementation=function(t){throw Error(this.getErrorMessage(`forceMethodImplementation`,t))},this.on=function(r,o){return _typeof(r)===`object`?(t.each(r,function(t){i.on(t,this)}),i):(r.split(` `).forEach(function(t){a[t]||(a[t]=[]),a[t].push(o)}),i)},this.off=function(t,r){if(!a[t])return i;if(!r)return delete a[t],i;var o=a[t].indexOf(r);return o!==-1&&(delete a[t][o],a[t]=a[t].filter(function(t){return t})),i},this.trigger=function(r){var o=`on`+r[0].toUpperCase()+r.slice(1),c=Array.prototype.slice.call(arguments,1);i[o]&&i[o].apply(i,c);var l=a[r];return l&&t.each(l,function(t,r){r.apply(i,c)}),i},u()};i.prototype.__construct=function(){},i.prototype.getDefaultSettings=function(){return{}},i.prototype.getConstructorID=function(){return this.constructor.name},i.extend=function(t){var r=jQuery,i=this,a=function child(){return i.apply(this,arguments)};return r.extend(a,i),a.prototype=Object.create(r.extend({},i.prototype,t)),a.prototype.constructor=a,a.__super__=i.prototype,a},r.exports=i}))());function _isNativeFunction(t){try{return Function.toString.call(t).indexOf(`[native code]`)!==-1}catch(r){return typeof t==`function`}}function _isNativeReflectConstruct$6(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct$6=function _isNativeReflectConstruct(){return!!t})()}__name(_isNativeReflectConstruct$6,`_isNativeReflectConstruct`);function _construct(t,r,i){if(_isNativeReflectConstruct$6())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,r);var o=new(t.bind.apply(t,a));return i&&_setPrototypeOf(o,i.prototype),o}function _wrapNativeSuper(t){var r=typeof Map==`function`?new Map:void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(t===null||!_isNativeFunction(t))return t;if(typeof t!=`function`)throw TypeError(`Super expression must either be null or a function`);if(r!==void 0){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}function _callSuper$5(t,r,i){return r=_getPrototypeOf(r),_possibleConstructorReturn(t,_isNativeReflectConstruct$5()?Reflect.construct(r,i||[],_getPrototypeOf(t).constructor):r.apply(t,i))}__name(_callSuper$5,`_callSuper`);function _isNativeReflectConstruct$5(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct$5=function _isNativeReflectConstruct(){return!!t})()}__name(_isNativeReflectConstruct$5,`_isNativeReflectConstruct`);var T=function(t){function ForceMethodImplementation(){var t,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _classCallCheck(this,ForceMethodImplementation),t=_callSuper$5(this,ForceMethodImplementation,[`${r.isStatic?`static `:``}${r.fullName}() should be implemented, please provide '${r.functionName||r.fullName}' functionality.`]),Error.captureStackTrace(t,ForceMethodImplementation),t}return _inherits(ForceMethodImplementation,t),_createClass(ForceMethodImplementation)}(_wrapNativeSuper(Error)),E=__name((function(){var t=Error().stack.split(`
4 +`)[2].trim(),r=t.startsWith(`at new`)?`constructor`:t.split(` `)[1],i={};if(i.functionName=r,i.fullName=r,i.functionName.includes(`.`)){var a=i.functionName.split(`.`);i.className=a[0],i.functionName=a[1]}else i.isStatic=!0;throw new T(i)}),`default`);function ownKeys(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),i.push.apply(i,a)}return i}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]==null?{}:arguments[r];r%2?ownKeys(Object(i),!0).forEach(function(r){_defineProperty(t,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))})}return t}function _callSuper$4(t,r,i){return r=_getPrototypeOf(r),_possibleConstructorReturn(t,_isNativeReflectConstruct$4()?Reflect.construct(r,i||[],_getPrototypeOf(t).constructor):r.apply(t,i))}__name(_callSuper$4,`_callSuper`);function _isNativeReflectConstruct$4(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct$4=function _isNativeReflectConstruct(){return!!t})()}__name(_isNativeReflectConstruct$4,`_isNativeReflectConstruct`);var D=function(r){function ComponentBase(){return _classCallCheck(this,ComponentBase),_callSuper$4(this,ComponentBase,arguments)}return _inherits(ComponentBase,r),_createClass(ComponentBase,[{key:`__construct`,value:function __construct(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.manager&&(this.manager=t.manager),this.commands=this.defaultCommands(),this.commandsInternal=this.defaultCommandsInternal(),this.hooks=this.defaultHooks(),this.routes=this.defaultRoutes(),this.tabs=this.defaultTabs(),this.shortcuts=this.defaultShortcuts(),this.utils=this.defaultUtils(),this.data=this.defaultData(),this.uiStates=this.defaultUiStates(),this.states=this.defaultStates(),this.defaultRoute=``,this.currentTab=``}},{key:`registerAPI`,value:function registerAPI(){var t=this;Object.entries(this.getTabs()).forEach(function(r){return t.registerTabRoute(r[0])}),Object.entries(this.getRoutes()).forEach(function(r){var i=_slicedToArray(r,2),a=i[0],o=i[1];return t.registerRoute(a,o)}),Object.entries(this.getCommands()).forEach(function(r){var i=_slicedToArray(r,2),a=i[0],o=i[1];return t.registerCommand(a,o)}),Object.entries(this.getCommandsInternal()).forEach(function(r){var i=_slicedToArray(r,2),a=i[0],o=i[1];return t.registerCommandInternal(a,o)}),Object.values(this.getHooks()).forEach(function(r){return t.registerHook(r)}),Object.entries(this.getData()).forEach(function(r){var i=_slicedToArray(r,2),a=i[0],o=i[1];return t.registerData(a,o)}),Object.values(this.getUiStates()).forEach(function(r){return t.registerUiState(r)}),Object.entries(this.getStates()).forEach(function(r){var i=_slicedToArray(r,2),a=i[0],o=i[1];return t.registerState(a,o)})}},{key:`getNamespace`,value:function getNamespace(){E()}},{key:`getRootContainer`,value:function getRootContainer(){return b.deprecated(`getRootContainer()`,`3.7.0`,`getServiceName()`),this.getServiceName()}},{key:`getServiceName`,value:function getServiceName(){return this.getNamespace().split(`/`)[0]}},{key:`store`,get:function get(){return $e.store.get(this.getNamespace())}},{key:`defaultTabs`,value:function defaultTabs(){return{}}},{key:`defaultRoutes`,value:function defaultRoutes(){return{}}},{key:`defaultCommands`,value:function defaultCommands(){return{}}},{key:`defaultCommandsInternal`,value:function defaultCommandsInternal(){return{}}},{key:`defaultHooks`,value:function defaultHooks(){return{}}},{key:`defaultUiStates`,value:function defaultUiStates(){return{}}},{key:`defaultStates`,value:function defaultStates(){return{}}},{key:`defaultShortcuts`,value:function defaultShortcuts(){return{}}},{key:`defaultUtils`,value:function defaultUtils(){return{}}},{key:`defaultData`,value:function defaultData(){return{}}},{key:`getCommands`,value:function getCommands(){return this.commands}},{key:`getCommandsInternal`,value:function getCommandsInternal(){return this.commandsInternal}},{key:`getHooks`,value:function getHooks(){return this.hooks}},{key:`getUiStates`,value:function getUiStates(){return this.uiStates}},{key:`getStates`,value:function getStates(){return this.states}},{key:`getRoutes`,value:function getRoutes(){return this.routes}},{key:`getTabs`,value:function getTabs(){return this.tabs}},{key:`getShortcuts`,value:function getShortcuts(){return this.shortcuts}},{key:`getData`,value:function getData(){return this.data}},{key:`registerCommand`,value:function registerCommand(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`default`,a;switch(i){case`default`:a=$e.commands;break;case`internal`:a=$e.commandsInternal;break;case`data`:a=$e.data;break;default:throw Error(`Invalid commands type: '${t}'`)}var o=this.getNamespace()+`/`+t,c=r.getInstanceType?r.getInstanceType():!1,l={command:o,component:this};c||($e.devTools&&$e.devTools.log.warn(`Attach command-callback-base, on command: '${o}', context is unknown type.`),l.callback=r,r=function(t){function context(){return _classCallCheck(this,context),_callSuper$4(this,context,arguments)}return _inherits(context,t),_createClass(context)}(C)),r.setRegisterConfig(l),a.register(this,t,r)}},{key:`registerHook`,value:function registerHook(t){return t.register()}},{key:`registerCommandInternal`,value:function registerCommandInternal(t,r){this.registerCommand(t,r,`internal`)}},{key:`registerUiState`,value:function registerUiState(t){$e.uiStates.register(t)}},{key:`registerState`,value:function registerState(r,i){r=this.getNamespace()+(r?`/${r}`:``);var a=(0,t.createSlice)(_objectSpread(_objectSpread({},i),{},{name:r}));$e.store.register(r,a)}},{key:`registerRoute`,value:function registerRoute(t,r){$e.routes.register(this,t,r)}},{key:`registerData`,value:function registerData(t,r){this.registerCommand(t,r,`data`)}},{key:`unregisterRoute`,value:function unregisterRoute(t){$e.routes.unregister(this,t)}},{key:`registerTabRoute`,value:function registerTabRoute(t){var r=this;this.registerRoute(t,function(i){return r.activateTab(t,i)})}},{key:`dependency`,value:function dependency(){return!0}},{key:`open`,value:function open(){return!0}},{key:`close`,value:function close(){return this.isOpen?(this.isOpen=!1,this.inactivate(),$e.routes.clearCurrent(this.getNamespace()),$e.routes.clearHistory(this.getServiceName()),!0):!1}},{key:`activate`,value:function activate(){$e.components.activate(this.getNamespace())}},{key:`inactivate`,value:function inactivate(){$e.components.inactivate(this.getNamespace())}},{key:`isActive`,value:function isActive(){return $e.components.isActive(this.getNamespace())}},{key:`onRoute`,value:function onRoute(t){this.toggleRouteClass(t,!0),this.toggleHistoryClass(),this.activate(),this.trigger(`route/open`,t)}},{key:`onCloseRoute`,value:function onCloseRoute(t){this.toggleRouteClass(t,!1),this.inactivate(),this.trigger(`route/close`,t)}},{key:`setDefaultRoute`,value:function setDefaultRoute(t){this.defaultRoute=this.getNamespace()+`/`+t}},{key:`getDefaultRoute`,value:function getDefaultRoute(){return this.defaultRoute}},{key:`removeTab`,value:function removeTab(t){delete this.tabs[t],this.unregisterRoute(t)}},{key:`hasTab`,value:function hasTab(t){return!!this.tabs[t]}},{key:`addTab`,value:function addTab(t,r,i){var a=this;if(this.tabs[t]=r,i!==void 0){var o={},c=Object.keys(this.tabs);c.pop(),c.splice(i,0,t),c.forEach(function(t){o[t]=a.tabs[t]}),this.tabs=o}this.registerTabRoute(t)}},{key:`getTabsWrapperSelector`,value:function getTabsWrapperSelector(){return``}},{key:`getTabRoute`,value:function getTabRoute(t){return this.getNamespace()+`/`+t}},{key:`renderTab`,value:function renderTab(t){}},{key:`activateTab`,value:function activateTab(t,r){var i=this;this.renderTab(t,r),jQuery(this.getTabsWrapperSelector()+` .elementor-component-tab`).off(`click`).on(`click`,function(t){$e.route(i.getTabRoute(t.currentTarget.dataset.tab),r)}).removeClass(`elementor-active`).filter(`[data-tab="`+t+`"]`).addClass(`elementor-active`)}},{key:`getActiveTabConfig`,value:function getActiveTabConfig(){return this.tabs[this.currentTab]||{}}},{key:`getBodyClass`,value:function getBodyClass(t){return`e-route-`+t.replace(/\//g,`-`)}},{key:`normalizeCommandName`,value:function normalizeCommandName(t){return t.replace(/[A-Z]/g,function(t,r){return(r>0?`-`:``)+t.toLowerCase()})}},{key:`importCommands`,value:function importCommands(t){var r=this,i={};return Object.entries(t).forEach(function(t){var a=_slicedToArray(t,2),o=a[0],c=a[1],l=r.normalizeCommandName(o);i[l]=c}),i}},{key:`importHooks`,value:function importHooks(t){var r={};for(var i in t){var a=new t[i];r[a.getId()]=a}return r}},{key:`importUiStates`,value:function importUiStates(t){var r=this,i={};return Object.values(t).forEach(function(t){var a=new t(r);i[a.getId()]=a}),i}},{key:`setUiState`,value:function setUiState(t,r){$e.uiStates.set(`${this.getNamespace()}/${t}`,r)}},{key:`toggleRouteClass`,value:function toggleRouteClass(t,r){document.body.classList.toggle(this.getBodyClass(t),r)}},{key:`toggleHistoryClass`,value:function toggleHistoryClass(){document.body.classList.toggle(`e-routes-has-history`,!!$e.routes.getHistory(this.getServiceName()).length)}}])}(w.default);function _callSuper$3(t,r,i){return r=_getPrototypeOf(r),_possibleConstructorReturn(t,_isNativeReflectConstruct$3()?Reflect.construct(r,i||[],_getPrototypeOf(t).constructor):r.apply(t,i))}__name(_callSuper$3,`_callSuper`);function _isNativeReflectConstruct$3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct$3=function _isNativeReflectConstruct(){return!!t})()}__name(_isNativeReflectConstruct$3,`_isNativeReflectConstruct`);var O=function(t){function Close(){return _classCallCheck(this,Close),_callSuper$3(this,Close,arguments)}return _inherits(Close,t),_createClass(Close,[{key:`apply`,value:function apply(){return this.component.close()?(this.component.iframe.remove(),this.component.iframe=null,this.component.backdrop&&(this.component.backdrop.remove(),this.component.backdrop=null),document.body.style.overflow=``,!0):!1}}])}($e.modules.CommandBase);function _callSuper$2(t,r,i){return r=_getPrototypeOf(r),_possibleConstructorReturn(t,_isNativeReflectConstruct$2()?Reflect.construct(r,i||[],_getPrototypeOf(t).constructor):r.apply(t,i))}__name(_callSuper$2,`_callSuper`);function _isNativeReflectConstruct$2(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct$2=function _isNativeReflectConstruct(){return!!t})()}__name(_isNativeReflectConstruct$2,`_isNativeReflectConstruct`);var k=function(t){function Load(){return _classCallCheck(this,Load),_callSuper$2(this,Load,arguments)}return _inherits(Load,t),_createClass(Load,[{key:`apply`,value:function apply(t){var r=this.component;r.iframe||(r.backdrop=document.createElement(`div`),r.backdrop.className=`elementor-app-backdrop`,r.backdrop.style.display=`none`,r.backdrop.addEventListener(`click`,function(){$e.run(`app/close`)}),document.body.appendChild(r.backdrop),r.iframe=document.createElement(`iframe`),r.iframe.className=`elementor-app-iframe`,r.iframe.style.display=`none`,r.iframe.addEventListener(`load`,function(){r.iframe&&r.iframe.classList.add(`elementor-app-iframe--visible`),r.backdrop&&r.backdrop.classList.add(`elementor-app-backdrop--visible`)}),document.body.appendChild(r.iframe)),t.url!==r.iframe.src&&(r.iframe.src=t.url)}}])}($e.modules.CommandBase);function _callSuper$1(t,r,i){return r=_getPrototypeOf(r),_possibleConstructorReturn(t,_isNativeReflectConstruct$1()?Reflect.construct(r,i||[],_getPrototypeOf(t).constructor):r.apply(t,i))}__name(_callSuper$1,`_callSuper`);function _isNativeReflectConstruct$1(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct$1=function _isNativeReflectConstruct(){return!!t})()}__name(_isNativeReflectConstruct$1,`_isNativeReflectConstruct`);var A=function(t){function Open(){return _classCallCheck(this,Open),_callSuper$1(this,Open,arguments)}return _inherits(Open,t),_createClass(Open,[{key:`apply`,value:function apply(t){return $e.route(`app`,t),!0}}])}($e.modules.CommandBase),j=__exportAll({Close:()=>O,Load:()=>k,Open:()=>A});function _callSuper(t,r,i){return r=_getPrototypeOf(r),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(r,i||[],_getPrototypeOf(t).constructor):r.apply(t,i))}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}var M=function(t){function Component(){return _classCallCheck(this,Component),_callSuper(this,Component,arguments)}return _inherits(Component,t),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`app`}},{key:`defaultRoutes`,value:function defaultRoutes(){var t=this;return{"":function _(r){r.url=r.url||elementorAppConfig.menu_url,$e.run(`app/load`,r),t.iframe.style.display=``,t.backdrop&&(t.backdrop.style.display=``),document.body.style.overflow=`hidden`}}}},{key:`defaultCommands`,value:function defaultCommands(){return this.importCommands(j)}},{key:`defaultShortcuts`,value:function defaultShortcuts(){return{"":{keys:`ctrl+shift+e`},close:{keys:`esc`,scopes:[this.getNamespace()]}}}}])}(D);window.elementorAppLoader=new(function(){function AppLoader(){_classCallCheck(this,AppLoader),_defineProperty(this,`selector`,`a.elementor-app-link, .elementor-app-link .ab-item`),$e.components.register(new M),window.addEventListener(`DOMContentLoaded`,this.onLoad.bind(this))}return _createClass(AppLoader,[{key:`onLoad`,value:function onLoad(){var t=document.querySelectorAll(this.selector);t.length&&t.forEach(function(t){t.addEventListener(`click`,function(r){r.preventDefault(),$e.run(`app/open`,{url:t.href})}),t.addEventListener(`mouseenter`,function(){$e.run(`app/load`,{url:t.href})})})}}])}())})(elementorVendors.reduxToolkit);