JezK
Edit File: editor-modules.min.js
(function(r){var c=Object.create,l=Object.defineProperty,__name=(r,c)=>l(r,`name`,{value:c,configurable:!0}),u=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,m=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,__esmMin=(r,c,l)=>()=>{if(l)throw l[0];try{return r&&(c=r(r=0)),c}catch(r){throw l=[r],r}},__commonJSMin=(r,c)=>()=>(c||(r((c={exports:{}}).exports,c),r=null),c.exports),__copyProps=(r,c,m,g)=>{if(c&&typeof c==`object`||typeof c==`function`)for(var v=p(c),y=0,b=v.length,x;y<b;y++)x=v[y],!h.call(r,x)&&x!==m&&l(r,x,{get:(r=>c[r]).bind(null,x),enumerable:!(g=u(c,x))||g.enumerable});return r},__toESM=(r,u,p)=>(p=r==null?{}:c(m(r)),__copyProps(u||!r||!r.__esModule?l(p,`default`,{value:r,enumerable:!0}):p,r)),g=__toESM(__commonJSMin(((r,c)=>{var l=elementorModules.Module.extend({onInit:function onInit(){var r=this,c=jQuery(window);c.on(`elementor:init-components`,this.onElementorInitComponents.bind(this)),c.on(`elementor:loaded`,function(){r.onElementorLoaded(),elementor.on(`document:loaded`,r.onDocumentLoaded.bind(r))}),c.on(`elementor:init`,this.onElementorReady)},getEditorControlView:function getEditorControlView(r){var c;return elementor.getPanelView().getCurrentPageView().children.findByModelCid((c=this.getEditorControlModel(r))==null?void 0:c.cid)},getEditorControlModel:function getEditorControlModel(r){return elementor.getPanelView().getCurrentPageView().collection.findWhere({name:r})},onElementorReady:function onElementorReady(){this.onElementorInit(),elementor.on(`frontend:init`,this.onElementorFrontendInit.bind(this)).on(`preview:loaded`,this.onElementorPreviewLoaded.bind(this))}});l.prototype.onElementorLoaded=function(){},l.prototype.onElementorInit=function(){},l.prototype.onElementorPreviewLoaded=function(){},l.prototype.onDocumentLoaded=function(){},l.prototype.onElementorFrontendInit=function(){},l.prototype.onElementorInitComponents=function(){},c.exports=l}))());function asyncGeneratorStep(r,c,l,u,p,m,h){try{var g=r[m](h),v=g.value}catch(r){l(r);return}g.done?c(v):Promise.resolve(v).then(u,p)}function _asyncToGenerator(r){return function(){var c=this,l=arguments;return new Promise(function(u,p){var m=r.apply(c,l);function _next(r){asyncGeneratorStep(m,u,p,_next,_throw,`next`,r)}function _throw(r){asyncGeneratorStep(m,u,p,_next,_throw,`throw`,r)}_next(void 0)})}}function _classCallCheck(r,c){if(!(r instanceof c))throw TypeError(`Cannot call a class as a function`)}function _typeof(r){"@babel/helpers - typeof";return _typeof=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(r){return typeof r}:function(r){return r&&typeof Symbol==`function`&&r.constructor===Symbol&&r!==Symbol.prototype?`symbol`:typeof r},_typeof(r)}var v=__esmMin((()=>{}));v();function toPrimitive(r,c){if(_typeof(r)!=`object`||!r)return r;var l=r[Symbol.toPrimitive];if(l!==void 0){var u=l.call(r,c||`default`);if(_typeof(u)!=`object`)return u;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(c===`string`?String:Number)(r)}v();function toPropertyKey(r){var c=toPrimitive(r,`string`);return _typeof(c)==`symbol`?c:c+``}function _defineProperties(r,c){for(var l=0;l<c.length;l++){var u=c[l];u.enumerable=u.enumerable||!1,u.configurable=!0,`value`in u&&(u.writable=!0),Object.defineProperty(r,toPropertyKey(u.key),u)}}function _createClass(r,c,l){return c&&_defineProperties(r.prototype,c),l&&_defineProperties(r,l),Object.defineProperty(r,"prototype",{writable:!1}),r}function _assertThisInitialized(r){if(r===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return r}v();function _possibleConstructorReturn(r,c){if(c&&(_typeof(c)==`object`||typeof c==`function`))return c;if(c!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return _assertThisInitialized(r)}function _getPrototypeOf(r){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_getPrototypeOf(r)}function _setPrototypeOf(r,c){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,c){return r.__proto__=c,r},_setPrototypeOf(r,c)}function _inherits(r,c){if(typeof c!=`function`&&c!==null)throw TypeError(`Super expression must either be null or a function`);r.prototype=Object.create(c&&c.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),c&&_setPrototypeOf(r,c)}function _defineProperty(r,c,l){return(c=toPropertyKey(c))in r?Object.defineProperty(r,c,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[c]=l,r}var y=__commonJSMin(((r,c)=>{function _OverloadYield(r,c){this.v=r,this.k=c}c.exports=_OverloadYield,c.exports.__esModule=!0,c.exports.default=c.exports})),b=__commonJSMin(((r,c)=>{function _regeneratorDefine(r,l,u,p){var m=Object.defineProperty;try{m({},``,{})}catch(r){m=0}c.exports=_regeneratorDefine=function regeneratorDefine(r,c,l,u){function o(c,l){_regeneratorDefine(r,c,function(r){return this._invoke(c,l,r)})}c?m?m(r,c,{value:l,enumerable:!u,configurable:!u,writable:!u}):r[c]=l:(o(`next`,0),o(`throw`,1),o(`return`,2))},c.exports.__esModule=!0,c.exports.default=c.exports,_regeneratorDefine(r,l,u,p)}c.exports=_regeneratorDefine,c.exports.__esModule=!0,c.exports.default=c.exports})),x=__commonJSMin(((r,c)=>{var l=b();function _regenerator(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var r,u,p=typeof Symbol==`function`?Symbol:{},m=p.iterator||`@@iterator`,h=p.toStringTag||`@@toStringTag`;function i(c,p,m,h){var v=p&&p.prototype instanceof Generator?p:Generator,y=Object.create(v.prototype);return l(y,`_invoke`,function(c,l,p){var m,h,v,y=0,b=p||[],x=!1,S={p:0,n:0,v:r,a:d,f:d.bind(r,4),d:function d(c,l){return m=c,h=0,v=r,S.n=l,g}};function d(c,l){for(h=c,v=l,u=0;!x&&y&&!p&&u<b.length;u++){var p,m=b[u],C=S.p,w=m[2];c>3?(p=w===l)&&(v=m[(h=m[4])?5:(h=3,3)],m[4]=m[5]=r):m[0]<=C&&((p=c<2&&C<m[1])?(h=0,S.v=l,S.n=m[1]):C<w&&(p=c<3||m[0]>l||l>w)&&(m[4]=c,m[5]=l,S.n=w,h=0))}if(p||c>1)return g;throw x=!0,l}return function(p,b,C){if(y>1)throw TypeError(`Generator is already running`);for(x&&b===1&&d(b,C),h=b,v=C;(u=h<2?r:v)||!x;){m||(h?h<3?(h>1&&(S.n=-1),d(h,v)):S.n=v:S.v=v);try{if(y=2,m){if(h||(p=`next`),u=m[p]){if(!(u=u.call(m,v)))throw TypeError(`iterator result is not an object`);if(!u.done)return u;v=u.value,h<2&&(h=0)}else h===1&&(u=m.return)&&u.call(m),h<2&&(v=TypeError(`The iterator does not provide a '`+p+`' method`),h=1);m=r}else if((u=(x=S.n<0)?v:c.call(l,S))!==g)break}catch(c){m=r,h=1,v=c}finally{y=1}}return{value:u,done:x}}}(c,m,h),!0),y}var g={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}u=Object.getPrototypeOf;var v=[][m]?u(u([][m]())):(l(u={},m,function(){return this}),u),y=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(v);function f(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,GeneratorFunctionPrototype):(r.__proto__=GeneratorFunctionPrototype,l(r,h,`GeneratorFunction`)),r.prototype=Object.create(y),r}return GeneratorFunction.prototype=GeneratorFunctionPrototype,l(y,`constructor`,GeneratorFunctionPrototype),l(GeneratorFunctionPrototype,`constructor`,GeneratorFunction),GeneratorFunction.displayName=`GeneratorFunction`,l(GeneratorFunctionPrototype,h,`GeneratorFunction`),l(y),l(y,h,`Generator`),l(y,m,function(){return this}),l(y,`toString`,function(){return`[object Generator]`}),(c.exports=_regenerator=function _regenerator(){return{w:i,m:f}},c.exports.__esModule=!0,c.exports.default=c.exports)()}c.exports=_regenerator,c.exports.__esModule=!0,c.exports.default=c.exports})),S=__commonJSMin(((r,c)=>{var l=y(),u=b();function AsyncIterator(r,c){function n(u,p,m,h){try{var g=r[u](p),v=g.value;return v instanceof l?c.resolve(v.v).then(function(r){n(`next`,r,m,h)},function(r){n(`throw`,r,m,h)}):c.resolve(v).then(function(r){g.value=r,m(g)},function(r){return n(`throw`,r,m,h)})}catch(r){h(r)}}var p;this.next||(u(AsyncIterator.prototype),u(AsyncIterator.prototype,typeof Symbol==`function`&&Symbol.asyncIterator||`@asyncIterator`,function(){return this})),u(this,`_invoke`,function(r,l,u){function f(){return new c(function(c,l){n(r,u,c,l)})}return p=p?p.then(f,f):f()},!0)}c.exports=AsyncIterator,c.exports.__esModule=!0,c.exports.default=c.exports})),C=__commonJSMin(((r,c)=>{var l=x(),u=S();function _regeneratorAsyncGen(r,c,p,m,h){return new u(l().w(r,c,p,m),h||Promise)}c.exports=_regeneratorAsyncGen,c.exports.__esModule=!0,c.exports.default=c.exports})),w=__commonJSMin(((r,c)=>{var l=C();function _regeneratorAsync(r,c,u,p,m){var h=l(r,c,u,p,m);return h.next().then(function(r){return r.done?r.value:h.next()})}c.exports=_regeneratorAsync,c.exports.__esModule=!0,c.exports.default=c.exports})),T=__commonJSMin(((r,c)=>{function _regeneratorKeys(r){var c=Object(r),l=[];for(var u in c)l.unshift(u);return function e(){for(;l.length;)if((u=l.pop())in c)return e.value=u,e.done=!1,e;return e.done=!0,e}}c.exports=_regeneratorKeys,c.exports.__esModule=!0,c.exports.default=c.exports})),E=__commonJSMin(((r,c)=>{function _typeof(r){"@babel/helpers - typeof";return c.exports=_typeof=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(r){return typeof r}:function(r){return r&&typeof Symbol==`function`&&r.constructor===Symbol&&r!==Symbol.prototype?`symbol`:typeof r},c.exports.__esModule=!0,c.exports.default=c.exports,_typeof(r)}c.exports=_typeof,c.exports.__esModule=!0,c.exports.default=c.exports})),D=__commonJSMin(((r,c)=>{var l=E().default;function _regeneratorValues(r){if(r!=null){var c=r[typeof Symbol==`function`&&Symbol.iterator||`@@iterator`],u=0;if(c)return c.call(r);if(typeof r.next==`function`)return r;if(!isNaN(r.length))return{next:function next(){return r&&u>=r.length&&(r=void 0),{value:r&&r[u++],done:!r}}}}throw TypeError(l(r)+` is not iterable`)}c.exports=_regeneratorValues,c.exports.__esModule=!0,c.exports.default=c.exports})),O=__commonJSMin(((r,c)=>{var l=y(),u=x(),p=w(),m=C(),h=S(),g=T(),v=D();function _regeneratorRuntime(){"use strict";var r=u(),y=r.m(_regeneratorRuntime),b=(Object.getPrototypeOf?Object.getPrototypeOf(y):y.__proto__).constructor;function n(r){var c=typeof r==`function`&&r.constructor;return!!c&&(c===b||(c.displayName||c.name)===`GeneratorFunction`)}var x={throw:1,return:2,break:3,continue:3};function a(r){var c,l;return function(u){c||(c={stop:function stop(){return l(u.a,2)},catch:function _catch(){return u.v},abrupt:function abrupt(r,c){return l(u.a,x[r],c)},delegateYield:function delegateYield(r,p,m){return c.resultName=p,l(u.d,v(r),m)},finish:function finish(r){return l(u.f,r)}},l=function t(r,l,p){u.p=c.prev,u.n=c.next;try{return r(l,p)}finally{c.next=u.n}}),c.resultName&&(c[c.resultName]=u.v,c.resultName=void 0),c.sent=u.v,c.next=u.n;try{return r.call(this,c)}finally{u.p=c.prev,u.n=c.next}}}return(c.exports=_regeneratorRuntime=function _regeneratorRuntime(){return{wrap:function wrap(c,l,u,p){return r.w(a(c),l,u,p&&p.reverse())},isGeneratorFunction:n,mark:r.m,awrap:function awrap(r,c){return new l(r,c)},AsyncIterator:h,async:function async(r,c,l,u,h){return(n(c)?m:p)(a(r),c,l,u,h)},keys:g,values:v}},c.exports.__esModule=!0,c.exports.default=c.exports)()}c.exports=_regeneratorRuntime,c.exports.__esModule=!0,c.exports.default=c.exports})),k=__toESM(__commonJSMin(((r,c)=>{var l=O()();c.exports=l;try{regeneratorRuntime=l}catch(r){typeof globalThis==`object`?globalThis.regeneratorRuntime=l:Function(`r`,`regeneratorRuntime = r`)(l)}}))());function _callSuper$3(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$4()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$3,`_callSuper`);function _isNativeReflectConstruct$4(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$4=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$4,`_isNativeReflectConstruct`);var A=function(r){function _default(){var r;_classCallCheck(this,_default);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper$3(this,_default,[].concat(l)),_defineProperty(r,`introductionMap`,null),r.initDialog(),r}return _inherits(_default,r),_createClass(_default,[{key:`setIntroductionMap`,value:function setIntroductionMap(r){this.introductionMap=r}},{key:`getIntroductionMap`,value:function getIntroductionMap(){return this.introductionMap||elementor.config.user.introduction}},{key:`getDefaultSettings`,value:function getDefaultSettings(){return{dialogType:`buttons`,dialogOptions:{effects:{hide:`hide`,show:`show`},hide:{onBackgroundClick:!1}}}}},{key:`initDialog`,value:function initDialog(){var r=this,c;this.getDialog=function(){if(!c){var l=r.getSettings();c=elementorCommon.dialogsManager.createWidget(l.dialogType,l.dialogOptions),l.onDialogInitCallback&&l.onDialogInitCallback.call(r,c)}return c}}},{key:`show`,value:function show(r){if(!this.introductionViewed){var c=this.getDialog();r&&c.setSettings(`position`,{of:r}),c.show()}}},{key:`introductionViewed`,get:function get(){var r=this.getSettings(`introductionKey`);return this.getIntroductionMap()[r]},set:function set(r){var c=this.getSettings(`introductionKey`);this.getIntroductionMap()[c]=r}},{key:`setViewed`,value:function(){var r=_asyncToGenerator(k.default.mark(function _callee(){var r=this;return k.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.introductionViewed=!0,c.abrupt(`return`,new Promise(function(c,l){elementorCommon.ajax.addRequest(`introduction_viewed`,{data:{introductionKey:r.getSettings(`introductionKey`)},success:c,error:l})}));case 1:case`end`:return c.stop()}},_callee,this)}));function setViewed(){return r.apply(this,arguments)}return setViewed}()}])}(elementorModules.Module),j=function(){function ControlsPopover(r){_classCallCheck(this,ControlsPopover),this.child=r,this.$popover=jQuery(`<div>`,{class:`elementor-controls-popover`}),r.$el.before(this.$popover),this.$popover.append(r.$el),this.popoverToggleView=r._parent.children.findByIndex(r._index-1),this.child.model.attributes.groupType===`typography`&&this.createPopoverHeader()}return _createClass(ControlsPopover,[{key:`addChild`,value:function addChild(r){this.$popover.append(r.$el)}},{key:`createPopoverHeader`,value:function createPopoverHeader(){var c=this,l=this.$popover.prev().find(`.elementor-control-popover-toggle-reset-label`);this.$popoverHeader=jQuery(`<div>`,{class:`e-group-control-header`}).html(`<span>`+(0,r.__)(`Typography`,`elementor`)+`</span>`),this.$headerControlsWrapper=jQuery(`<div>`,{class:`e-control-tools`}),l.addClass(`e-control-tool`).on(`click`,function(){return c.onResetButtonClick()}),this.$headerControlsWrapper.append(l),this.$popoverHeader.append(this.$headerControlsWrapper);var u=this.popoverToggleView.model.get(`global`);u!=null&&u.active&&this.createAddButton(),this.$popover.prepend(this.$popoverHeader).addClass(`e-controls-popover--typography`)}},{key:`onResetButtonClick`,value:function onResetButtonClick(){this.$popover.hide(),this.$popover.trigger(`hide`);var r=this.child.model.get(`groupPrefix`)+`typography`,c={container:this.child.options.container,settings:_defineProperty({},r,``)};this.child.options.container.globals.get(r)?$e.run(`document/globals/disable`,c):$e.run(`document/elements/settings`,c)}},{key:`onAddButtonClick`,value:function onAddButtonClick(){this.popoverToggleView.onAddGlobalButtonClick()}},{key:`createAddButton`,value:function createAddButton(){var c=this;this.$addButton=jQuery(`<button>`,{class:`e-control-tool`}).html(jQuery(`<i>`,{class:`eicon-plus`})),this.$headerControlsWrapper.append(this.$addButton),this.$addButton.on(`click`,function(){return c.onAddButtonClick()}),this.$addButton.tipsy({title:function title(){return(0,r.__)(`Create New Global Font`,`elementor`)},gravity:function gravity(){return`s`}})}},{key:`destroy`,value:function destroy(){this.$popover.remove()}}])}(),M=__commonJSMin(((r,c)=>{c.exports=Marionette.Behavior.extend({onRenderCollection:function onRenderCollection(){this.handleInnerTabs(this.view)},handleInnerTabs:function handleInnerTabs(r){var c=r.children.filter(function(r){return r.model.get(`type`)===`tabs`});_.each(c,function(c){c.$el.find(`.elementor-control-content`).remove();var l=c.model.get(`name`),u=r.children.filter(function(r){return r.model.get(`type`)===`tab`&&r.model.get(`tabs_wrapper`)===l});_.each(u,function(l,u){c._addChildView(l);var p=l.model.get(`name`),m=r.children.filter(function(r){return p===r.model.get(`inner_tab`)});u===0?l.$el.addClass(`e-tab-active`):_.each(m,function(r){r.$el.addClass(`e-tab-close`)})})})},onChildviewControlTabClicked:function onChildviewControlTabClicked(r){var c=`e-tab-close`,l=`e-tab-active`,u=r.model.get(`name`),p=this.view.children.filter(function(c){return c.model.get(`type`)!==`tab`&&r.model.get(`tabs_wrapper`)===c.model.get(`tabs_wrapper`)}),m=this.view.children.filter(function(c){return c.model.get(`type`)===`tab`&&r.model.get(`tabs_wrapper`)===c.model.get(`tabs_wrapper`)});_.each(m,function(r){r.$el.removeClass(l)}),r.$el.addClass(l),_.each(p,function(r){r.model.get(`inner_tab`)===u?r.$el.removeClass(c):r.$el.addClass(c)}),elementor.getPanelView().updateScrollbar()}})})),N=Marionette.CompositeView.extend({classes:{popover:`elementor-controls-popover`},activeTab:null,activeSection:null,className:function className(){return`elementor-controls-stack`},templateHelpers:function templateHelpers(){return{elementData:elementor.getElementData(this.model)}},childViewOptions:function childViewOptions(){return{elementSettingsModel:this.model}},ui:function ui(){return{tabs:`.elementor-panel-navigation-tab`,reloadButton:`.elementor-update-preview-button`}},events:function events(){return{"click @ui.reloadButton":`onReloadButtonClick`}},modelEvents:{destroy:`onModelDestroy`},behaviors:{HandleInnerTabs:{behaviorClass:M()}},initialize:function initialize(r){this.initCollection(),r.tab&&(this.activeTab=r.tab,this.activateFirstSection()),this.listenTo(elementor.channels.deviceMode,`change`,this.onDeviceModeChange)},onDestroy:function onDestroy(){this.stopListening(elementor.channels.deviceMode,`change`,this.onDeviceModeChange)},initCollection:function initCollection(){this.collection=new Backbone.Collection(_.values(elementor.mergeControlsSettings(this.getOption(`controls`))))},filter:function filter(r){if(r.get(`tab`)!==this.activeTab)return!1;if(r.get(`type`)===`section`)return!0;var c=r.get(`section`);return!c||c===this.activeSection},getControlViewByModel:function getControlViewByModel(r){return this.children.findByModelCid(r.cid)},getControlViewByName:function getControlViewByName(r){return this.getControlViewByModel(this.getControlModel(r))},getControlModel:function getControlModel(r){return this.collection.findWhere({name:r})},isVisibleSectionControl:function isVisibleSectionControl(r){return this.activeTab===r.get(`tab`)},activateTab:function activateTab(r){return this.activeTab=r,this.activateFirstSection(),this._renderChildren(),this},activateSection:function activateSection(r){return this.activeSection=r,this},activateFirstSection:function activateFirstSection(){var r=this,c=r.collection.filter(function(c){return c.get(`type`)===`section`&&r.isVisibleSectionControl(c)}),l;if(c[0]?l=c[0].get(`name`):(r.activeSection=null,l=null),!c.filter(function(c){return r.activeSection===c.get(`name`)})[0])return r.activateSection(l),this},getChildView:function getChildView(r){var c=r.get(`type`);return elementor.getControlView(c)},getNamespaceArray:function getNamespaceArray(){return[elementor.getPanelView().getCurrentPageName()]},openActiveSection:function openActiveSection(){var r=this.activeSection,c=this.children.filter(function(c){return r===c.model.get(`name`)});if(c[0]){c[0].$el.addClass(`e-open`);var l=this.getNamespaceArray();l.push(r,`activated`),elementor.channels.editor.trigger(l.join(`:`),this)}},onRenderCollection:function onRenderCollection(){this.openActiveSection(),N.handlePopovers(this)},onModelDestroy:function onModelDestroy(){this.destroy()},onReloadButtonClick:function onReloadButtonClick(){elementor.reloadPreview()},onDeviceModeChange:function onDeviceModeChange(){elementor.channels.deviceMode.request(`currentMode`)===`desktop`&&this.$el.removeClass(`elementor-responsive-switchers-open`)},onChildviewControlSectionClicked:function onChildviewControlSectionClicked(r){var c=r.$el.hasClass(`e-open`);this.activateSection(c?null:r.model.get(`name`)),this._renderChildren()},onChildviewResponsiveSwitcherClick:function onChildviewResponsiveSwitcherClick(r,c){c===`desktop`&&this.$el.toggleClass(`elementor-responsive-switchers-open`)}},{handlePopovers:function handlePopovers(r){var c;this.removePopovers(r),r.popovers=[],r.children.each(function(l){c&&c.addChild(l);var u=l.model.get(`popover`);u&&(u.start&&(c=new j(l),r.popovers.push(c)),u.end&&(c=null))})},removePopovers:function removePopovers(r){var c;(c=r.popovers)==null||c.forEach(function(r){return r.destroy()})}}),P=__toESM(__commonJSMin(((r,c)=>{v();var l=Backbone.Model.extend({options:{},initialize:function initialize(r,c){var l=this;if(l.options=c,l.controls=elementor.mergeControlsSettings(c.controls),l.validators={},l.controls){var u=r||{},p={};_.each(l.controls,function(r){if(!(r.features&&r.features.indexOf(`ui`)!==-1)){var c=r.name;_typeof(r.default)===`object`?p[c]=structuredClone(r.default):p[c]=r.default;var m=r.dynamic&&r.dynamic.active,h=m&&u.__dynamic__&&u.__dynamic__[c];m&&!h&&r.dynamic.default&&(u.__dynamic__||(u.__dynamic__={}),u.__dynamic__[c]=r.dynamic.default,h=!0);var g=jQuery.isPlainObject(r.default);u[c]!==void 0&&g&&!_.isObject(u[c])&&!h&&(elementorCommon.debug.addCustomError(TypeError(`An invalid argument supplied as multiple control value`),`InvalidElementData`,"Element `"+(l.get(`widgetType`)||l.get(`elType`))+"` got <"+u[c]+"> as `"+c+"` value. Expected array or object."),delete u[c]),u[c]===void 0&&(u[c]=p[c])}}),l.defaults=p,l.handleRepeaterData(u),l.set(u)}},convertRepeaterValueToCollection:function convertRepeaterValueToCollection(r,c){return new Backbone.Collection(r[c.name],{model:function model(r,u){return u=u||{},u.controls={},Object.values(c.fields).forEach(function(r){u.controls[r.name]=r}),r._id||(r._id=elementorCommon.helpers.getUniqueId()),new l(r,u)}})},handleRepeaterData:function handleRepeaterData(r){var c=this;_.each(this.controls,function(l){l.is_repeater&&(r[l.name]instanceof Backbone.Collection||(r[l.name]=c.convertRepeaterValueToCollection(r,l)))})},getFontControls:function getFontControls(){return this.getControlsByType(`font`)},getIconsControls:function getIconsControls(){return this.getControlsByType(`icons`)},getControlsByType:function getControlsByType(r){return _.filter(this.getActiveControls(),function(c){return r===c.type})},getStyleControls:function getStyleControls(r,c){var l=this;r=structuredClone(l.getActiveControls(r,c));var u=[];return jQuery.each(r,function(){var c,p=this,m=elementor.config.controls[p.type];if(p=jQuery.extend({},m,p),p.fields){var h=[];l.attributes[p.name]instanceof Backbone.Collection||(l.attributes[p.name]=l.convertRepeaterValueToCollection(l.attributes,p)),l.attributes[p.name].each(function(r){h.push(l.getStyleControls(p.fields,r.attributes))}),p.styleFields=h}(p.fields||(c=p.dynamic)!=null&&c.active||l.isGlobalControl(p,r)||l.isStyleControl(p.name,r))&&u.push(p)}),u},isGlobalControl:function isGlobalControl(r,c){var l,u,p=r.name;r.groupType&&(p=r.groupPrefix+r.groupType);var m=c[p];return m!=null&&(l=m.global)!=null&&l.active?!!((u=this.attributes.__globals__)!=null&&u[p]):!1},isStyleControl:function isStyleControl(r,c){c=c||this.controls;var l=_.find(c,function(c){return r===c.name});return l&&!_.isEmpty(l.selectors)},getClassControls:function getClassControls(r){return r=r||this.controls,_.filter(r,function(r){return!_.isUndefined(r.prefix_class)})},isClassControl:function isClassControl(r){var c=_.find(this.controls,function(c){return r===c.name});return c&&!_.isUndefined(c.prefix_class)},getControl:function getControl(r){return _.find(this.controls,function(c){return r===c.name})},getActiveControls:function getActiveControls(r,c){var l={};return r||(r=this.controls),c||(c=this.attributes),c=this.parseGlobalSettings(c,r),jQuery.each(r,function(u,p){elementor.helpers.isActiveControl(p,c,r)&&(l[u]=p)}),l},clone:function clone(){return new l(elementorCommon.helpers.cloneObject(this.attributes),elementorCommon.helpers.cloneObject(this.options))},setExternalChange:function setExternalChange(r,c){var l=this,u;_typeof(r)===`object`?u=r:(u={},u[r]=c),l.set(u),jQuery.each(u,function(r,c){l.trigger(`change:external:`+r,c)})},parseDynamicSettings:function parseDynamicSettings(r,c,l){var u=this;return r=elementorCommon.helpers.cloneObject(r||u.attributes),c=c||{},l=l||this.controls,jQuery.each(l,function(){var l=this,p;if(l.is_repeater){p=r[l.name],p.forEach(function(r,m){p[m]=u.parseDynamicSettings(r,c,l.fields)});return}if(p=r.__dynamic__&&r.__dynamic__[l.name],p){var m=l.dynamic;if(m===void 0&&(m=elementor.config.controls[l.type].dynamic),!(!m||!m.active)){var h;try{h=elementor.dynamicTags.parseTagsText(p,m,elementor.dynamicTags.getTagDataContent)}catch(r){if(elementor.dynamicTags.CACHE_KEY_NOT_FOUND_ERROR!==r.message)throw r;h=``,c.onServerRequestStart&&c.onServerRequestStart(),elementor.dynamicTags.refreshCacheFromServer(function(){c.onServerRequestEnd&&c.onServerRequestEnd()})}m.property?r[l.name][m.property]=h:r[l.name]=h}}}),r},parseGlobalSettings:function parseGlobalSettings(r,c){var l=this;return r=elementorCommon.helpers.cloneObject(r),c=c||this.controls,jQuery.each(c,function(c,u){var p,m,h;if(u.is_repeater){h=r[u.name],h.forEach(function(r,c){h[c]=l.parseGlobalSettings(r,u.fields)});return}if(h=(p=r.__globals__)==null?void 0:p[u.name],h){var g=u.global;if(g===void 0&&(g=elementor.config.controls[u.type].global),(m=g)!=null&&m.active){var v=$e.data.commandExtractArgs(h),y=v.command,b=v.args,x=$e.data.getCache($e.components.get(`globals`),y,b.query);u.groupType?r[u.name]=`custom`:r[u.name]=x}}}),r},removeDataDefaults:function removeDataDefaults(r,c){var l=this;jQuery.each(r,function(u){var p=c[u];if(p&&!(p.save_default||(p.type===`text`||p.type===`textarea`)&&r[u])){if(p.is_repeater){r[u].forEach(function(r){l.removeDataDefaults(r,p.fields)});return}_.isEqual(r[u],p.default)&&delete r[u]}})},toJSON:function toJSON(r){var c=Backbone.Model.prototype.toJSON.call(this);return r=r||{},delete c.widgetType,delete c.elType,delete c.isInner,_.each(c,function(r,l){r&&r.toJSON&&(c[l]=r.toJSON())}),r.remove&&r.remove.indexOf(`default`)!==-1&&this.removeDataDefaults(c,this.controls),structuredClone(c)}});c.exports=l}))());function _arrayWithHoles(r){if(Array.isArray(r))return r}function _iterableToArrayLimit(r,c){var l=r==null?null:typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(l!=null){var u,p,m,h,g=[],v=!0,y=!1;try{if(m=(l=l.call(r)).next,c===0){if(Object(l)!==l)return;v=!1}else for(;!(v=(u=m.call(l)).done)&&(g.push(u.value),g.length!==c);v=!0);}catch(r){y=!0,p=r}finally{try{if(!v&&l.return!=null&&(h=l.return(),Object(h)!==h))return}finally{if(y)throw p}}return g}}function _arrayLikeToArray$2(r,c){(c==null||c>r.length)&&(c=r.length);for(var l=0,u=Array(c);l<c;l++)u[l]=r[l];return u}__name(_arrayLikeToArray$2,`_arrayLikeToArray`);function _unsupportedIterableToArray$2(r,c){if(r){if(typeof r==`string`)return _arrayLikeToArray$2(r,c);var l={}.toString.call(r).slice(8,-1);return l===`Object`&&r.constructor&&(l=r.constructor.name),l===`Map`||l===`Set`?Array.from(r):l===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?_arrayLikeToArray$2(r,c):void 0}}__name(_unsupportedIterableToArray$2,`_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(r,c){return _arrayWithHoles(r)||_iterableToArrayLimit(r,c)||_unsupportedIterableToArray$2(r,c)||_nonIterableRest()}function _superPropBase(r,c){for(;!{}.hasOwnProperty.call(r,c)&&(r=_getPrototypeOf(r))!==null;);return r}function _get(){return _get=typeof Reflect<`u`&&Reflect.get?Reflect.get.bind():function(r,c,l){var u=_superPropBase(r,c);if(u){var p=Object.getOwnPropertyDescriptor(u,c);return p.get?p.get.call(arguments.length<3?r:l):p.value}},_get.apply(null,arguments)}function _superPropGet(r,c,l,u){var p=_get(_getPrototypeOf(1&u?r.prototype:r),c,l);return 2&u&&typeof p==`function`?function(r){return p.apply(l,r)}:p}var I=function(){function InstanceType(){var r=this;_classCallCheck(this,InstanceType);for(var c=this instanceof InstanceType?this.constructor:void 0,l=[];c.__proto__&&c.__proto__.name;)l.push(c.__proto__),c=c.__proto__;l.reverse().forEach(function(c){return r instanceof c})}return _createClass(InstanceType,null,[{key:Symbol.hasInstance,value:function value(r){var c=_superPropGet(InstanceType,Symbol.hasInstance,this,2)([r]);if(r&&!r.constructor.getInstanceType)return c;if(r&&(r.instanceTypes||(r.instanceTypes=[]),c||this.getInstanceType()===r.constructor.getInstanceType()&&(c=!0),c)){var l=this.getInstanceType===InstanceType.getInstanceType?`BaseInstanceType`:this.getInstanceType();r.instanceTypes.indexOf(l)===-1&&r.instanceTypes.push(l)}return!c&&r&&(c=r.instanceTypes&&Array.isArray(r.instanceTypes)&&r.instanceTypes.indexOf(this.getInstanceType())!==-1),c}},{key:`getInstanceType`,value:function getInstanceType(){elementorModules.ForceMethodImplementation()}}])}();function _createForOfIteratorHelper$1(r,c){var l=typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(!l){if(Array.isArray(r)||(l=_unsupportedIterableToArray$1(r))||c&&r&&typeof r.length==`number`){l&&(r=l);var u=0,p=function F(){};return{s:p,n:function n(){return u>=r.length?{done:!0}:{done:!1,value:r[u++]}},e:function e(r){throw r},f:p}}throw TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m,h=!0,g=!1;return{s:function s(){l=l.call(r)},n:function n(){var r=l.next();return h=r.done,r},e:function e(r){g=!0,m=r},f:function f(){try{h||l.return==null||l.return()}finally{if(g)throw m}}}}__name(_createForOfIteratorHelper$1,`_createForOfIteratorHelper`);function _unsupportedIterableToArray$1(r,c){if(r){if(typeof r==`string`)return _arrayLikeToArray$1(r,c);var l={}.toString.call(r).slice(8,-1);return l===`Object`&&r.constructor&&(l=r.constructor.name),l===`Map`||l===`Set`?Array.from(r):l===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?_arrayLikeToArray$1(r,c):void 0}}__name(_unsupportedIterableToArray$1,`_unsupportedIterableToArray`);function _arrayLikeToArray$1(r,c){(c==null||c>r.length)&&(c=r.length);for(var l=0,u=Array(c);l<c;l++)u[l]=r[l];return u}__name(_arrayLikeToArray$1,`_arrayLikeToArray`);var L=__name((function(r,c){c=Array.isArray(c)?c:[c];var l=_createForOfIteratorHelper$1(c),u;try{for(l.s();!(u=l.n()).done;){var p=u.value;if(r.constructor.name===p.prototype[Symbol.toStringTag])return!0}}catch(r){l.e(r)}finally{l.f()}return!1}),`default`);v();function _callSuper$2(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$3()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$2,`_callSuper`);function _isNativeReflectConstruct$3(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$3=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$3,`_isNativeReflectConstruct`);var R=function(r){function ArgsObject(r){var c;return _classCallCheck(this,ArgsObject),c=_callSuper$2(this,ArgsObject),c.args=r,c}return _inherits(ArgsObject,r),_createClass(ArgsObject,[{key:`requireArgument`,value:function requireArgument(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.args;if(!Object.prototype.hasOwnProperty.call(c,r))throw Error(`${r} is required.`)}},{key:`requireArgumentType`,value:function requireArgumentType(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.args;if(this.requireArgument(r,l),_typeof(l[r])!==c)throw Error(`${r} invalid type: ${c}.`)}},{key:`requireArgumentInstance`,value:function requireArgumentInstance(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.args;if(this.requireArgument(r,l),!(l[r]instanceof c)&&!L(l[r],c))throw Error(`${r} invalid instance.`)}},{key:`requireArgumentConstructor`,value:function requireArgumentConstructor(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.args;if(this.requireArgument(r,l),l[r].constructor.toString()!==c.prototype.constructor.toString())throw Error(`${r} invalid constructor type.`)}}],[{key:`getInstanceType`,value:function getInstanceType(){return`ArgsObject`}}])}(I),z=function(){function Panel(r){_classCallCheck(this,Panel),this.container=r}return _createClass(Panel,[{key:`refresh`,value:function refresh(){$e.routes.isPartOf(`panel/editor`)&&$e.routes.refreshContainer(`panel`)}},{key:`closeEditor`,value:function closeEditor(){$e.route(`panel/elements/categories`)}},{key:`getControlView`,value:function getControlView(r){return elementor.getPanelView().getCurrentPageView().children.findByModelCid(this.getControlModel(r).cid)}},{key:`getControlModel`,value:function getControlModel(r){return elementor.getPanelView().getCurrentPageView().collection.findWhere({name:r})}}])}();function _isNativeFunction(r){try{return Function.toString.call(r).indexOf(`[native code]`)!==-1}catch(c){return typeof r==`function`}}function _isNativeReflectConstruct$2(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$2=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$2,`_isNativeReflectConstruct`);function _construct(r,c,l){if(_isNativeReflectConstruct$2())return Reflect.construct.apply(null,arguments);var u=[null];u.push.apply(u,c);var p=new(r.bind.apply(r,u));return l&&_setPrototypeOf(p,l.prototype),p}function _wrapNativeSuper(r){var c=typeof Map==`function`?new Map:void 0;return _wrapNativeSuper=function _wrapNativeSuper(r){if(r===null||!_isNativeFunction(r))return r;if(typeof r!=`function`)throw TypeError(`Super expression must either be null or a function`);if(c!==void 0){if(c.has(r))return c.get(r);c.set(r,Wrapper)}function Wrapper(){return _construct(r,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(r.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,r)},_wrapNativeSuper(r)}function _createForOfIteratorHelper(r,c){var l=typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(!l){if(Array.isArray(r)||(l=_unsupportedIterableToArray(r))||c&&r&&typeof r.length==`number`){l&&(r=l);var u=0,p=function F(){};return{s:p,n:function n(){return u>=r.length?{done:!0}:{done:!1,value:r[u++]}},e:function e(r){throw r},f:p}}throw TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m,h=!0,g=!1;return{s:function s(){l=l.call(r)},n:function n(){var r=l.next();return h=r.done,r},e:function e(r){g=!0,m=r},f:function f(){try{h||l.return==null||l.return()}finally{if(g)throw m}}}}function _unsupportedIterableToArray(r,c){if(r){if(typeof r==`string`)return _arrayLikeToArray(r,c);var l={}.toString.call(r).slice(8,-1);return l===`Object`&&r.constructor&&(l=r.constructor.name),l===`Map`||l===`Set`?Array.from(r):l===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?_arrayLikeToArray(r,c):void 0}}function _arrayLikeToArray(r,c){(c==null||c>r.length)&&(c=r.length);for(var l=0,u=Array(c);l<c;l++)u[l]=r[l];return u}function _callSuper$1(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$1()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$1,`_callSuper`);function _isNativeReflectConstruct$1(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$1=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$1,`_isNativeReflectConstruct`);var B=function(r){function ChildrenArray(){return _classCallCheck(this,ChildrenArray),_callSuper$1(this,ChildrenArray,arguments)}return _inherits(ChildrenArray,r),_createClass(ChildrenArray,[{key:`clear`,value:function clear(){this.length=0}},{key:`findRecursive`,value:function findRecursive(r){var c=_createForOfIteratorHelper(this),l;try{for(c.s();!(l=c.n()).done;){var u=l.value;if(r(u))return u;if(u.children.length){var p=u.children.findRecursive(r);if(p)return p}}}catch(r){c.e(r)}finally{c.f()}return!1}},{key:`forEachRecursive`,value:function forEachRecursive(r){var c=_createForOfIteratorHelper(this),l;try{for(c.s();!(l=c.n()).done;){var u=l.value;r(u),u.children.length&&u.children.forEachRecursive(r)}}catch(r){c.e(r)}finally{c.f()}}},{key:`someRecursive`,value:function someRecursive(r){var c=_createForOfIteratorHelper(this),l;try{for(c.s();!(l=c.n()).done;){var u,p=l.value;if(r(p)||(u=p.children)!=null&&u.length&&p.children.someRecursive(r))return!0}}catch(r){c.e(r)}finally{c.f()}return!1}}])}(_wrapNativeSuper(Array));v();function _callSuper(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!r})()}var V=function(c){function Container(r){var c;if(_classCallCheck(this,Container),c=_callSuper(this,Container,[r]),_defineProperty(c,`type`,void 0),_defineProperty(c,`id`,void 0),_defineProperty(c,`document`,void 0),_defineProperty(c,`model`,void 0),_defineProperty(c,`settings`,void 0),_defineProperty(c,`view`,void 0),_defineProperty(c,`parent`,void 0),_defineProperty(c,`children`,new B),_defineProperty(c,`dynamic`,void 0),_defineProperty(c,`globals`,void 0),_defineProperty(c,`label`,void 0),_defineProperty(c,`controls`,{}),_defineProperty(c,`repeaters`,{}),_defineProperty(c,`renderer`,void 0),_defineProperty(c,`panel`,void 0),_defineProperty(c,`placeholders`,{}),c.validateArgs(r),r=Object.entries(r),r.length===0)throw Error(`Container cannot be empty.`);return r.forEach(function(r){var l=_slicedToArray(r,2),u=l[0],p=l[1];c[u]=p===void 0?c[u]:p}),c.renderer===void 0&&(c.renderer=c),c.document||(c.document=elementor.documents.getCurrent()),c.dynamic=new Backbone.Model(c.settings.get(`__dynamic__`)),c.globals=new Backbone.Model(c.settings.get(`__globals__`)),c.panel=new z(c),c.initialize(),c}return _inherits(Container,c),_createClass(Container,[{key:`initialize`,value:function initialize(){this.isViewElement()&&(this.addToParent(),this.handleChildrenRecursive(),this.view.on(`destroy`,this.removeFromParent.bind(this))),this.handleRepeaterChildren()}},{key:`validateArgs`,value:function validateArgs(r){this.requireArgumentType(`type`,`string`,r),this.requireArgumentType(`id`,`string`,r),this.requireArgumentInstance(`settings`,Backbone.Model,r),this.requireArgumentInstance(`model`,Backbone.Model,r),!1!==r.parent&&this.requireArgumentInstance(`parent`,elementorModules.editor.Container,r)}},{key:`getGroupRelatedControls`,value:function getGroupRelatedControls(r){var c=this,l={};return Object.keys(r).forEach(function(r){Object.values(c.controls).forEach(function(u){var p;if(r===u.name)l[u.name]=u;else if((p=c.controls[r])!=null&&p.groupPrefix){var m=c.controls[r].groupPrefix;u.name.toString().startsWith(m)&&(l[u.name]=u)}})}),l}},{key:`getAffectingControls`,value:function getAffectingControls(){var r=this,c={},l=this.settings.getActiveControls();return Object.entries(l).forEach(function(l){var u=_slicedToArray(l,2),p=u[0],m=u[1],h=r.settings.get(m.name);if(m.global&&!(h!=null&&h.length)){var g;if((g=r.globals.get(m.name))!=null&&g.length||r.getGlobalDefault(p).length){m.global.utilized=!0,c[p]=m;return}}if(m.dynamic&&r.dynamic.get(p)){m.dynamic.utilized=!0,c[p]=m;return}h!==m.default&&h&&(_typeof(h)!==`object`||Object.values(h).join()!==Object.values(m.default).join())&&(c[p]=m)}),c}},{key:`getParentAncestry`,value:function getParentAncestry(){for(var r=[],c=this;c;)r.push(c),c=c.parent;return r}},{key:`handleChildrenRecursive`,value:function handleChildrenRecursive(){var r;(r=this.view.children)!=null&&r.length?Object.values(this.view.children._views).forEach(function(r){if(r.container){var c=r.container;c.parent.children&&(c.parent.children[r._index]=c),c.handleChildrenRecursive()}}):this.children.clear()}},{key:`addToParent`,value:function addToParent(){!this.parent.children||this.isRepeaterItem()||this.parent.children.splice(this.view._index,0,this)}},{key:`removeFromParent`,value:function removeFromParent(){var r=this;!this.parent.children||this.isRepeater()||(this.parent.children=this.parent.children.filter(function(c){return c.id!==r.id}))}},{key:`handleRepeaterChildren`,value:function handleRepeaterChildren(){var r=this;if(Object.values(this.controls).forEach(function(c){if(c.is_repeater){var l=new Backbone.Model({name:c.name});r.repeaters[c.name]=new elementorModules.editor.Container({type:Container.TYPE_REPEATER,id:c.name,model:l,settings:l,view:r.view,parent:r,label:c.label||c.name,controls:{},renderer:r.renderer}),r.settings.get(c.name).forEach(function(l,u){r.addRepeaterItem(c.name,l,u)})}}),[`widget`,`document`].includes(this.type)){var c=Object.values(this.controls).filter(function(r){return r.type===`repeater`});!this.model.get(`supportRepeaterChildren`)&&c.length===1&&Object.defineProperty(this,"children",{get:function get(){return elementorDevTools.deprecation.deprecated(`children`,`3.0.0`,`container.repeaters[ repeaterName ].children`),this.repeaters[c[0].name].children}})}}},{key:`addRepeaterItem`,value:function addRepeaterItem(c,l,u){var p=l.get(`_id`);return p||(p=`bc-`+elementorCommon.helpers.getUniqueId(),l.set(`_id`,p)),this.repeaters[c].children.splice(u,0,new elementorModules.editor.Container({type:Container.TYPE_REPEATER_ITEM,id:l.get(`_id`),model:new Backbone.Model({name:c}),settings:l,view:this.view,parent:this.repeaters[c],label:this.label+` `+(0,r.__)(`Item`,`elementor`),controls:l.options.controls,renderer:this.renderer})),this.repeaters[c]}},{key:`lookup`,value:function lookup(){var r,c=this;if(!this.renderer)return this;if(this!==this.renderer&&(r=this.renderer.view)!=null&&r.isDisconnected&&this.renderer.view.isDisconnected()&&(this.renderer=this.renderer.lookup()),this.view===void 0||!this.view.lookup||!this.view.isDisconnected())return Container.TYPE_REPEATER_ITEM===this.type&&(this.settings=this.parent.parent.settings.get(this.model.get(`name`)).findWhere({_id:this.id})),c;var l=this.view.lookup();if(l){if(c=l.getContainer(),Container.REPEATER===this.type)return this.settings=c.settings.get(this.model.get(`name`)).findWhere({_id:this.id}),this;c.parent.children&&(c.parent.children[c.view._index]=c)}return c}},{key:`findChildrenRecursive`,value:function findChildrenRecursive(r){return elementorDevTools.deprecation.deprecated(`container.findChildrenRecursive( callback )`,`3.5.0`,`container.children.findRecursive( callback )`),this.children.findRecursive(r)}},{key:`forEachChildrenRecursive`,value:function forEachChildrenRecursive(r){return elementorDevTools.deprecation.deprecated(`container.forEachChildrenRecursive( callback )`,`3.5.0`,`container.children.forEachRecursive( callback )`),this.children.forEachRecursive(r)}},{key:`render`,value:function render(){var r;this.renderer&&this.renderer.view.renderOnChange(this.settings,(r=this.view)==null?void 0:r.$el)}},{key:`renderUI`,value:function renderUI(){this.renderer&&this.renderer.view.renderUI()}},{key:`isEditable`,value:function isEditable(){var r,c,l;return elementor.channels.dataEditMode.request(`activeMode`)===`edit`&&this.document.editor.status===`open`&&!((r=this.model)!=null&&(c=r.get)!=null&&(c=c.call(r,`editSettings`))!=null&&(l=c.get)!=null&&l.call(c,`inactive`))}},{key:`isDesignable`,value:function isDesignable(){return elementor.userCan(`design`)&&this.isEditable()}},{key:`isGridContainer`,value:function isGridContainer(){return this.parent.settings.get(`container_type`)===`grid`}},{key:`isLocked`,value:function isLocked(){return this.model.get(`isLocked`)}},{key:`isRepeater`,value:function isRepeater(){return Container.TYPE_REPEATER===this.type}},{key:`isRepeaterItem`,value:function isRepeaterItem(){return Container.TYPE_REPEATER_ITEM===this.type}},{key:`isViewElement`,value:function isViewElement(){return this.view&&this.model.get(`elType`)}},{key:`getSetting`,value:function getSetting(r){var c=arguments.length>1&&arguments[1]!==void 0&&arguments[1],l=this.settings.get(r);if(c)return l;var u;return this.getGlobalKey(r)&&(u=this.getGlobalValue(r)),u||l||this.getGlobalDefault(r)}},{key:`getGlobalKey`,value:function getGlobalKey(r){return this.globals.get(r)}},{key:`getGlobalValue`,value:function getGlobalValue(r){var c=this.controls[r],l=this.getGlobalKey(r),u=$e.data.commandExtractArgs(l),p=$e.data.getCache($e.components.get(`globals`),u.command,u.args.query);if(p!=null&&p.value){var m=p.id,h;if(c.groupType){var g=elementor.breakpoints.getActiveMatchRegex(),v=c.name.replace(c.groupPrefix,``).replace(g,``);if(!p.value[elementor.config.kit_config.typography_prefix+v])return;v=v.replace(`_`,`-`),h=`var( --e-global-${c.groupType}-${m}-${v} )`,elementor.config.ui.defaultGenericFonts&&c.groupPrefix+`font_family`===c.name&&(h+=`, ${elementor.config.ui.defaultGenericFonts}`)}else h=`var( --e-global-${c.type}-${m} )`;return h}}},{key:`isGlobalApplied`,value:function isGlobalApplied(r){return this.getSetting(r)!==this.settings.get(r)}},{key:`getGlobalDefault`,value:function getGlobalDefault(r){var c,l=(c=this.controls[r])==null?void 0:c.global;if(l!=null&&l.default){var u=this.controls[r].type;if(u===`color`&&(u=`colors`),!elementor.config.globals.defaults_enabled[u])return``;var p=$e.data.commandExtractArgs(l.default),m=p.command,h=p.args,g=$e.data.getCache($e.components.get(`globals`),m,h.query);return g==null?void 0:g.value}return``}}])}(R);_defineProperty(V,`TYPE_REPEATER`,`repeater-control`),_defineProperty(V,`TYPE_REPEATER_ITEM`,`repeater`),elementorModules.editor={elements:{models:{BaseSettings:P.default}},utils:{Module:g.default,Introduction:A},views:{ControlsStack:N},Container:V}})(wp.i18n);