JezK
Edit File: app-loader.min.js
(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. 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. 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(` `)[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);