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.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 4.0.8 All 454 releases
← All changes | assets/js/editor.min.js +5 -5 4.3.0-beta1 → 4.3.1 View file →
@@ -4,9 +4,9 @@
4 4 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})),ce=__commonJSMin(((r,c)=>{var l=ae(),u=oe();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})),le=__commonJSMin(((r,c)=>{var l=se(),u=ce();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})),ue=__commonJSMin(((r,c)=>{var l=le();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})),I=__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})),de=__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})),L=__commonJSMin(((r,c)=>{var l=de().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})),fe=__commonJSMin(((r,c)=>{var l=ae(),u=se(),p=ue(),m=le(),h=ce(),g=I(),v=L();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})),R=__commonJSMin(((r,c)=>{var l=fe()();c.exports=l;try{regeneratorRuntime=l}catch(r){typeof globalThis==`object`?globalThis.regeneratorRuntime=l:Function(`r`,`regeneratorRuntime = r`)(l)}}));function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray$10(r)}var pe=__esmMin((()=>{re()}));function _iterableToArray(r){if(typeof Symbol<`u`&&r[Symbol.iterator]!=null||r[`@@iterator`]!=null)return Array.from(r)}var me=__esmMin((()=>{}));function _nonIterableSpread(){throw TypeError(`Invalid attempt to spread non-iterable instance.
5 5 In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var he=__esmMin((()=>{}));function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray$10(r)||_nonIterableSpread()}var ge=__esmMin((()=>{pe(),me(),ie(),he()})),_e=__commonJSMin(((r,c)=>{c.exports=elementorModules.Module.extend({errors:[],__construct:function __construct(r){var c=r.customValidationMethod;c&&(this.validationMethod=c)},getDefaultSettings:function getDefaultSettings(){return{validationTerms:{}}},isValid:function isValid(){var r=this.validationMethod.apply(this,arguments);return r.length?(this.errors=r,!1):!0},validationMethod:function validationMethod(r){var c=this.getSettings(`validationTerms`),l=[];return c.required&&((``+r).length||l.push(`Required value is empty`)),l}})})),ve=__commonJSMin(((r,c)=>{c.exports=_e().extend({validationMethod:function validationMethod(r){var c=this.getSettings(`validationTerms`),l=[];return _.isFinite(r)&&(c.min!==void 0&&r<c.min&&l.push(`Value is less than minimum`),c.max!==void 0&&r>c.max&&l.push(`Value is greater than maximum`)),l}})}));function _callSuper$321(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$322()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$322(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$322=function _isNativeReflectConstruct(){return!!r})()}var ye,be,xe=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$321,`_callSuper`),__name(_isNativeReflectConstruct$322,`_isNativeReflectConstruct`),ye=ve(),be=function(r){function BreakpointValidator(){return _classCallCheck(this,BreakpointValidator),_callSuper$321(this,BreakpointValidator,arguments)}return _inherits(BreakpointValidator,r),_createClass(BreakpointValidator,[{key:`getDefaultSettings`,value:function getDefaultSettings(){return{validationTerms:{max:5120}}}},{key:`getPanelActiveBreakpoints`,value:function getPanelActiveBreakpoints(){var r=elementor.documents.currentDocument.config.settings.settings.active_breakpoints.map(function(r){return r.replace(`viewport_`,``)}),c={};return r.forEach(function(r){c[r]=elementorFrontend.config.responsive.breakpoints[r]}),c}},{key:`initBreakpointProperties`,value:function initBreakpointProperties(){var r,c,l=this.getSettings(`validationTerms`),u=this.getPanelActiveBreakpoints(),p=Object.keys(u);this.breakpointIndex=p.indexOf(l.breakpointName),this.topBreakpoint=(r=u[p[this.breakpointIndex+1]])==null?void 0:r.value,this.bottomBreakpoint=(c=u[p[this.breakpointIndex-1]])==null?void 0:c.value}},{key:`validationMethod`,value:function validationMethod(r){var c=this.getSettings(`validationTerms`),l=ye.prototype.validationMethod.call(this,r);return(_.isFinite(r)||r===``)&&(this.validateMinMaxForBreakpoint(r,c)||l.push(`Value is not between the breakpoints above or under the edited breakpoint`)),l}},{key:`validateMinMaxForBreakpoint`,value:function validateMinMaxForBreakpoint(r,c){var l=elementorFrontend.config.responsive.breakpoints[c.breakpointName].default_value,u=!0;return this.initBreakpointProperties(),c.breakpointName===`mobile`&&this.bottomBreakpoint===320&&--this.bottomBreakpoint,this.bottomBreakpoint&&(r!==``&&r<=this.bottomBreakpoint&&(u=!1),r===``&&l<=this.bottomBreakpoint&&(u=!1)),this.topBreakpoint&&(r!==``&&r>=this.topBreakpoint&&(u=!1),r===``&&l>=this.topBreakpoint&&(u=!1)),u}}])}(ye)})),Se=__commonJSMin(((r,c)=>{P();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}c.exports=Marionette.CompositeView.extend({ui:function ui(){return{controlTitle:`.elementor-control-title`}},behaviors:function behaviors(){return elementor.hooks.applyFilters(`controls/base/behaviors`,{},this)},getBehavior:function getBehavior(r){return this._behaviors[Object.keys(this.behaviors()).indexOf(r)]},className:function className(){var r=`elementor-control elementor-control-`+this.model.get(`name`)+` elementor-control-type-`+this.model.get(`type`),c=this.model.get(`classes`),l=this.model.get(`responsive`);if(_.isEmpty(c)||(r+=` `+c),!_.isEmpty(l)){var u=l.max||l.min;r+=` elementor-control-responsive-`+u}return r},templateHelpers:function templateHelpers(){var r={_cid:this.model.cid};return{view:this,data:_.extend({},this.model.toJSON(),r)}},getTemplate:function getTemplate(){return Marionette.TemplateCache.get(`#tmpl-elementor-control-`+this.model.get(`type`)+`-content`)},initialize:function initialize(r){var c=this.model.get(`label`);Object.defineProperty(this,"container",{get:function get(){if(!r.container){var l=r.elementSettingsModel,u=$e.components.get(`document`).utils.findViewById(l.id);u&&u.getContainer?r.container=u.getContainer():(l.id||(l.id=`bc-`+elementorCommon.helpers.getUniqueId()),r.container=new elementorModules.editor.Container({type:`bc-container`,id:l.id,model:l,settings:l,label:c,view:!1,parent:!1,renderer:!1,controls:l.options.controls}))}return r.container}}),Object.defineProperty(this,"elementSettingsModel",{get:function get(){return elementorDevTools.deprecation.deprecated(`elementSettingsModel`,`2.8.0`,`container.settings`),r.container?r.container.settings:r.elementSettingsModel}});var l=this.model.get(`type`),u=jQuery.extend(!0,{},elementor.config.controls[l],this.model.attributes);this.model.set(u);var p=this.container?this.container.settings:this.elementSettingsModel;this.listenTo(p,`change`,this.onAfterChange),this.model.attributes.responsive&&(this.onDeviceModeChange=this.onDeviceModeChange.bind(this),elementor.listenTo(elementor.channels.deviceMode,`change`,this.onDeviceModeChange))},onDestroy:function onDestroy(){elementor.stopListening(elementor.channels.deviceMode,`change`,this.onDeviceModeChange)},onDeviceModeChange:function onDeviceModeChange(){this.toggleControlVisibility()},onAfterChange:function onAfterChange(){this.toggleControlVisibility()},toggleControlVisibility:function toggleControlVisibility(){var r=this.container?this.container.settings:this.elementSettingsModel,c=elementor.helpers.isActiveControl(this.model,r.attributes,r.controls);this.$el.toggleClass(`elementor-hidden-control`,!c),elementor.getPanelView().updateScrollbar()},onRender:function onRender(){var r=this.model.get(`label_block`)?`block`:`inline`,c=this.model.get(`show_label`),l=`elementor-label-`+r;l+=` elementor-control-separator-`+this.model.get(`separator`),c||(l+=` elementor-control-hidden-label`),this.$el.addClass(l),this.toggleControlVisibility()},reRoute:function reRoute(r){$e.route($e.routes.getCurrent(`panel`),this.getControlInRouteArgs(r?this.getControlPath():``),{history:!1})},getControlInRouteArgs:function getControlInRouteArgs(r){return _objectSpread(_objectSpread({},$e.routes.getCurrentArgs(`panel`)),{},{activeControl:r})},getControlPath:function getControlPath(){for(var r=this.model.get(`name`),c=this._parent;!c.$el.hasClass(`elementor-controls-stack`);)r=(c.model.get(`name`)||c.model.get(`_id`))+`/`+r,c=c._parent;return r}})})),Ce=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({className:`elementor-tag-controls-stack-empty`,template:`#tmpl-elementor-tag-controls-stack-empty`})})),we=__commonJSMin(((r,c)=>{var l=Ce();c.exports=elementorModules.editor.views.ControlsStack.extend({activeTab:`content`,template:_.noop,emptyView:l,isEmpty:function isEmpty(){return this.collection.length<2},childViewOptions:function childViewOptions(){return{container:this.options.container}},getNamespaceArray:function getNamespaceArray(){var r=elementor.getPanelView().getCurrentPageView(),c=r.getNamespaceArray();return c.push(r.activeSection),c.push(this.getOption(`controlName`)),c.push(this.getOption(`name`)),c},onRenderTemplate:function onRenderTemplate(){this.activateFirstSection()}})})),Te=__commonJSMin(((r,c)=>{var l=we();c.exports=Marionette.ItemView.extend({className:`elementor-dynamic-cover e-input-style`,tagControlsStack:null,templateHelpers:function templateHelpers(){var r={};return this.model&&(r.controls=this.model.options.controls),r},ui:{remove:`.elementor-dynamic-cover__remove`},events:function events(){var r={"click @ui.remove":`onRemoveClick`};return this.hasSettings()&&(r.click=`onClick`),r},getTemplate:function getTemplate(){var r=this.getTagConfig(),c=Marionette.TemplateCache.get(`#tmpl-elementor-control-dynamic-cover`),l=Marionette.Renderer.render(c,{hasSettings:this.hasSettings(),isRemovable:!this.getOption(`dynamicSettings`).default,title:r.title,content:r.panel_template});return Marionette.TemplateCache.prototype.compileTemplate(l.trim())},getTagConfig:function getTagConfig(){return elementor.dynamicTags.getConfig(`tags.`+this.getOption(`name`))},initSettingsPopup:function initSettingsPopup(){var r={className:`elementor-tag-settings-popup`,position:{my:`left top+5`,at:`left bottom`,of:this.$el,autoRefresh:!0},hide:{ignore:`.select2-container`}},c=elementorCommon.dialogsManager.createWidget(`buttons`,r);this.getSettingsPopup=function(){return c}},hasSettings:function hasSettings(){return!!Object.values(this.getTagConfig().controls).length},showSettingsPopup:function showSettingsPopup(){this.tagControlsStack||this.initTagControlsStack();var r=this.getSettingsPopup();r.isVisible()||r.show()},initTagControlsStack:function initTagControlsStack(){this.tagControlsStack=new l({model:this.model,controls:this.model.controls,name:this.options.name,controlName:this.options.controlName,container:this.options.container,el:this.getSettingsPopup().getElements(`message`)[0]}),this.tagControlsStack.render()},initModel:function initModel(){this.model=new elementorModules.editor.elements.models.BaseSettings(this.getOption(`settings`),{controls:this.getTagConfig().controls})},initialize:function initialize(){this.initModel(),this.hasSettings()&&(this.initSettingsPopup(),this.listenTo(this.model,`change`,this.render))},onClick:function onClick(){this.showSettingsPopup()},onRemoveClick:function onRemoveClick(r){r.stopPropagation(),this.destroy(),this.trigger(`remove`)},onDestroy:function onDestroy(){this.hasSettings()&&this.getSettingsPopup().destroy(),this.tagControlsStack&&this.tagControlsStack.destroy()}})})),Ee=__commonJSMin(((c,l)=>{P();var u=Te();l.exports=Marionette.Behavior.extend({tagView:null,listenerAttached:!1,initialize:function initialize(){this.listenerAttached||(this.listenTo(this.view.options.container.settings,`change:external:__dynamic__`,this.onAfterExternalChange),this.listenerAttached=!0)},shouldRenderTools:function shouldRenderTools(){if(this.getOption(`dynamicSettings`).default)return!1;var r=elementor.helpers.hasPro()&&!elementor.helpers.hasProAndNotConnected(),c=this.getOption(`tags`).length>0;return!r||c},renderTools:function renderTools(){var r=this;if(this.shouldRenderTools()){var c=jQuery(Marionette.Renderer.render(`#tmpl-elementor-control-dynamic-switcher`));c.on(`click`,function(c){return r.onDynamicSwitcherClick(c)}),this.$el.find(`.elementor-control-dynamic-switcher-wrapper`).append(c),this.ui.dynamicSwitcher=c,this.view.model.get(`type`)===`color`&&(this.view.colorPicker?this.moveDynamicSwitcherToColorPicker():setTimeout(function(){return r.moveDynamicSwitcherToColorPicker()})),this.ui.dynamicSwitcher.tipsy({title:function title(){return this.getAttribute(`data-tooltip`)},gravity:`s`})}},moveDynamicSwitcherToColorPicker:function moveDynamicSwitcherToColorPicker(){var r=this.view.colorPicker.$pickerToolsContainer;this.ui.dynamicSwitcher.removeClass(`elementor-control-unit-1`).addClass(`e-control-tool`);var c=r.find(`.elementor-control-element-color-picker`);c.length?this.ui.dynamicSwitcher.insertBefore(c):r.append(this.ui.dynamicSwitcher)},toggleDynamicClass:function toggleDynamicClass(){this.$el.toggleClass(`elementor-control-dynamic-value`,this.isDynamicMode())},isDynamicMode:function isDynamicMode(){var r=this.view.container.settings.get(`__dynamic__`);return!!(r&&r[this.view.model.get(`name`)])},createTagsList:function createTagsList(){var r=_.groupBy(this.getOption(`tags`),`group`),c=elementor.dynamicTags.getConfig(`groups`),l=this.ui.tagsList=jQuery(`<div>`,{class:`elementor-tags-list`}),u=jQuery(`<div>`,{class:`elementor-tags-list__inner`});if(l.append(u),jQuery.each(c,function(c){var l=r[c];if(l){var p=this,m=jQuery(`<div>`,{class:`elementor-tags-list__group-title`}).text(p.title);u.append(m),l.forEach(function(r){var c=jQuery(`<div>`,{class:`elementor-tags-list__item`});c.text(r.title).attr(`data-tag-name`,r.name),u.append(c)})}}),!elementor.helpers.hasPro()&&Object.keys(r).length){var p=Marionette.Renderer.render(`#tmpl-elementor-dynamic-tags-promo`,{promotionUrl:elementor.config.dynamicPromotionURL.replace(`%s`,this.view.model.get(`name`))});u.append(p)}u.on(`click`,`.elementor-tags-list__item`,this.onTagsListItemClick.bind(this)),elementorCommon.elements.$body.append(l)},getTagsList:function getTagsList(){return this.ui.tagsList||this.createTagsList(),this.ui.tagsList},toggleTagsList:function toggleTagsList(){var r=this.getTagsList();if(r.is(`:visible`)){r.hide();return}var c=elementorCommon.config.isRTL?`left`:`right`;r.show().position({my:`${c} top`,at:`${c} bottom+5`,of:this.ui.dynamicSwitcher})},setTagView:function setTagView(r,c,l){this.tagView&&this.tagView.destroy();var p=this.tagView=new u({id:r,name:c,settings:l,controlName:this.view.model.get(`name`),dynamicSettings:this.getOption(`dynamicSettings`)}),m=this.view.options.container,h=m.controls[p.options.controlName].label;p.options.container=new elementorModules.editor.Container({type:`dynamic`,id:r,model:p.model,settings:p.model,view:p,parent:m,label:m.label+` `+h,controls:p.model.options.controls,renderer:m}),p.render(),this.$el.find(`.elementor-control-tag-area`).after(p.el),this.listenTo(p,`remove`,this.onTagViewRemove.bind(this))},setDefaultTagView:function setDefaultTagView(){var r=elementor.dynamicTags.tagTextToTagData(this.getDynamicValue());this.setTagView(r.id,r.name,r.settings)},tagViewToTagText:function tagViewToTagText(){var r=this.tagView;return elementor.dynamicTags.tagDataToTagText(r.getOption(`id`),r.getOption(`name`),r.model)},getDynamicValue:function getDynamicValue(){return this.view.container.dynamic.get(this.view.model.get(`name`))},destroyTagView:function destroyTagView(){this.tagView&&(this.tagView.destroy(),this.tagView=null)},showPromotion:function showPromotion(){var c=elementor.helpers.hasProAndNotConnected(),l={title:(0,r.__)(`Dynamic Content`,`elementor`),content:(0,r.__)(`Create more personalized and dynamic sites by populating data from various sources with dozens of dynamic tags to choose from.`,`elementor`),targetElement:this.ui.dynamicSwitcher,position:{blockStart:`-10`},actionButton:{url:c?elementorProEditorConfig.urls.connect:elementor.config.dynamicPromotionURL.replace(`%s`,this.view.model.get(`name`)),text:c?(0,r.__)(`Connect & Activate`,`elementor`):(0,r.__)(`Upgrade`,`elementor`)}};elementor.promotion.showDialog(l)},onRender:function onRender(){this.$el.addClass(`elementor-control-dynamic`),this.renderTools(),this.toggleDynamicClass(),this.isDynamicMode()&&this.setDefaultTagView()},onDynamicSwitcherClick:function onDynamicSwitcherClick(r){r.stopPropagation(),this.getOption(`tags`).length?this.toggleTagsList():this.showPromotion()},onTagsListItemClick:function onTagsListItemClick(r){var c=jQuery(r.currentTarget);this.setTagView(elementorCommon.helpers.getUniqueId(),c.data(`tagName`),{}),this.view.getGlobalKey()&&this.view.triggerMethod(`unset:global:value`),this.isDynamicMode()?$e.run(`document/dynamic/settings`,{container:this.view.options.container,settings:_defineProperty({},this.view.model.get(`name`),this.tagViewToTagText())}):$e.run(`document/dynamic/enable`,{container:this.view.options.container,settings:_defineProperty({},this.view.model.get(`name`),this.tagViewToTagText())}),this.toggleDynamicClass(),this.toggleTagsList(),this.tagView.getTagConfig().settings_required&&this.tagView.showSettingsPopup()},onTagViewRemove:function onTagViewRemove(){$e.run(`document/dynamic/disable`,{container:this.view.options.container,settings:_defineProperty({},this.view.model.get(`name`),this.tagViewToTagText())}),this.toggleDynamicClass()},onAfterExternalChange:function onAfterExternalChange(){this.destroyTagView(),this.isDynamicMode()&&this.setDefaultTagView(),this.toggleDynamicClass()},onDestroy:function onDestroy(){this.destroyTagView(),this.ui.tagsList&&this.ui.tagsList.remove()}})})),z=__commonJSMin(((r,c)=>{M(),P(),xe();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.
6 6 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}var l=Se(),u=Ee(),p=_e(),m=ve();c.exports=l.extend({validatorTypes:{Base:p,Number:m,Breakpoint:be},ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return _.extend(r,{input:`input[data-setting][type!="checkbox"][type!="radio"]`,checkbox:`input[data-setting][type="checkbox"]`,radio:`input[data-setting][type="radio"]`,select:`select[data-setting]`,textarea:`textarea[data-setting]`,responsiveSwitchersSibling:`${r.controlTitle}[data-e-responsive-switcher-sibling!="false"]`,responsiveSwitchers:`.elementor-responsive-switcher`,contentEditable:`[contenteditable="true"]`}),r},templateHelpers:function templateHelpers(){var r=l.prototype.templateHelpers.apply(this,arguments);return r.data.controlValue=this.getControlValue(),r},events:function events(){return{"input @ui.input":`onBaseInputTextChange`,"change @ui.checkbox":`onBaseInputChange`,"change @ui.radio":`onBaseInputChange`,"input @ui.textarea":`onBaseInputTextChange`,"change @ui.select":`onBaseInputChange`,"input @ui.contentEditable":`onBaseInputTextChange`,"click @ui.responsiveSwitchers":`onResponsiveSwitchersClick`}},behaviors:function behaviors(){var r=l.prototype.behaviors.apply(this,arguments),c=this.options.model.get(`dynamic`);if(c&&c.active){var p=_.filter(elementor.dynamicTags.getConfig(`tags`),function(r){return r.editable&&_.intersection(r.categories,c.categories).length});(p.length||elementor.config.user.is_administrator)&&(r.tags={behaviorClass:u,tags:p,dynamicSettings:c})}return r},initialize:function initialize(){l.prototype.initialize.apply(this,arguments),this.registerValidators(),this.model.get(`responsive`)&&this.setPlaceholderFromParent(),this.model.get(`inherit_placeholders`)===void 0&&this.model.set(`inherit_placeholders`,!0);var r=this.container?this.container.settings:this.elementSettingsModel;this.listenTo(r,`change:external:`+this.model.get(`name`),this.onAfterExternalChange)},getControlValue:function getControlValue(){return this.container.settings.get(this.model.get(`name`))},getGlobalKey:function getGlobalKey(){return this.container.globals.get(this.model.get(`name`))},getGlobalValue:function getGlobalValue(){return this.globalValue},getGlobalDefault:function getGlobalDefault(){var r=this.model.get(`global`);if(r!=null&&r.default){if(!elementor.config.globals.defaults_enabled[this.getGlobalMeta().controlType])return``;var c=$e.data.commandExtractArgs(r.default),l=c.command,u=c.args,p=$e.data.getCache($e.components.get(`globals`),l,u.query);return p==null?void 0:p.value}return``},getCurrentValue:function getCurrentValue(){return this.getGlobalKey()&&!this.globalValue?``:this.globalValue?this.globalValue:this.getControlValue()||this.getGlobalDefault()},isGlobalActive:function isGlobalActive(){var r;return(r=this.options.model.get(`global`))==null?void 0:r.active},setValue:function setValue(r){this.setSettingsModel(r)},setSettingsModel:function setSettingsModel(r){var c=this.model.get(`name`);$e.run(`document/elements/settings`,{container:this.options.container,settings:_defineProperty({},c,r)}),this.triggerMethod(`settings:change`)},applySavedValue:function applySavedValue(){this.setInputValue(`[data-setting="`+this.model.get(`name`)+`"]`,this.getControlValue())},getEditSettings:function getEditSettings(r){var c=this.getOption(`elementEditSettings`).toJSON();return r?c[r]:c},setEditSetting:function setEditSetting(r,c){(this.getOption(`elementEditSettings`)||this.getOption(`container`).settings).set(r,c)},getControlPlaceholder:function getControlPlaceholder(){var r=this.model.get(`placeholder`);return this.model.get(`responsive`)&&this.model.get(`inherit_placeholders`)&&(r=r||this.container.placeholders[this.model.get(`name`)]),r},getResponsiveParentView:function getResponsiveParentView(){var r=this.model.get(`parent`);try{return r&&this.container.panel.getControlView(r)}catch(r){}},getResponsiveChildrenViews:function getResponsiveChildrenViews(){var r=this.model.get(`inheritors`),c=[];try{var l=_createForOfIteratorHelper(r),u;try{for(l.s();!(u=l.n()).done;){var p=u.value;c.push(this.container.panel.getControlView(p))}}catch(r){l.e(r)}finally{l.f()}}catch(r){}return c},setPlaceholderFromParent:function setPlaceholderFromParent(){var r=this.getResponsiveParentView();r&&(this.container.placeholders[this.model.get(`name`)]=r.preparePlaceholderForChildren())},preparePlaceholderForChildren:function preparePlaceholderForChildren(){var r,c=this.getCleanControlValue(),l=(r=this.getResponsiveParentView())==null?void 0:r.preparePlaceholderForChildren();return c instanceof Object?Object.assign({},l,c):c||l},propagatePlaceholder:function propagatePlaceholder(){var r=_createForOfIteratorHelper(this.getResponsiveChildrenViews()),c;try{for(r.s();!(c=r.n()).done;)c.value.renderWithChildren()}catch(c){r.e(c)}finally{r.f()}},renderWithChildren:function renderWithChildren(){this.render(),this.propagatePlaceholder()},getCleanControlValue:function getCleanControlValue(){var r=this.getControlValue();return r&&r!==this.model.get(`default`)?r:void 0},onAfterChange:function onAfterChange(r){Object.keys(r.changed).includes(this.model.get(`name`))&&this.propagatePlaceholder(),l.prototype.onAfterChange.apply(this,arguments)},getInputValue:function getInputValue(r){var c=this.$(r);if(c.is(`[contenteditable="true"]`))return c.html();var l=c.val(),u=c.attr(`type`);return[`radio`,`checkbox`].indexOf(u)===-1?u===`number`&&_.isFinite(l)?+l:(r.tagName===`SELECT`&&c.prop(`multiple`)&&l===null&&(l=[]),l):c.prop(`checked`)?l:``},setInputValue:function setInputValue(r,c){var l=this.$(r),u=l.attr(`type`);u===`checkbox`?l.prop(`checked`,!!c):u===`radio`?l.filter(`[value="`+c+`"]`).prop(`checked`,!0):l.val(c)},addValidator:function addValidator(r){this.validators.push(r)},registerValidators:function registerValidators(){var r=this;this.validators=[];var c={};this.model.get(`required`)&&(c.required=!0),jQuery.isEmptyObject(c)||this.addValidator(new this.validatorTypes.Base({validationTerms:c}));var l=this.model.get(`validators`);l&&Object.entries(l).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];r.addValidator(new r.validatorTypes[u]({validationTerms:p}))})},onBeforeRender:function onBeforeRender(){this.setPlaceholderFromParent()},onRender:function onRender(){l.prototype.onRender.apply(this,arguments),this.model.get(`responsive`)&&this.renderResponsiveSwitchers(),this.applySavedValue(),this.triggerMethod(`ready`),this.toggleControlVisibility(),this.addTooltip()},onBaseInputTextChange:function onBaseInputTextChange(r){this.onBaseInputChange(r)},onBaseInputChange:function onBaseInputChange(r){clearTimeout(this.correctionTimeout);var c=r.currentTarget,l=this.getInputValue(c),u=this.validators.slice(0),p=this.container.settings.validators[this.model.get(`name`)];if(p&&(u=u.concat(p)),u){var m=this.getControlValue(c.dataset.setting);if(!u.every(function(r){return r.isValid(l,m)})){this.correctionTimeout=setTimeout(this.setInputValue.bind(this,c,m),1200);return}}this.updateElementModel(l,c),this.triggerMethod(`input:change`,r)},onResponsiveSwitchersClick:function onResponsiveSwitchersClick(r){var c=jQuery(r.currentTarget),l=c.data(`device`),u=this.ui.responsiveSwitchersWrapper,p=c.index();u.toggleClass(`elementor-responsive-switchers-open`),u[0].style.setProperty(`--selected-option`,p),this.triggerMethod(`responsive:switcher:click`,l),elementor.changeDeviceMode(l)},renderResponsiveSwitchers:function renderResponsiveSwitchers(){var r=Marionette.Renderer.render(`#tmpl-elementor-control-responsive-switchers`,this.model.attributes);this.ui.responsiveSwitchersSibling.after(r),this.ui.responsiveSwitchersWrapper=this.$el.find(`.elementor-control-responsive-switchers`)},onAfterExternalChange:function onAfterExternalChange(){this.hideTooltip(),this.applySavedValue()},addTooltip:function addTooltip(){this.ui.tooltipTargets=this.$el.find(`.tooltip-target`),this.ui.tooltipTargets.length&&this.ui.tooltipTargets.tipsy({gravity:function gravity(){var r=jQuery(this).data(`tooltip-pos`);return r===void 0?`s`:r},title:function title(){return this.getAttribute(`data-tooltip`)}})},hideTooltip:function hideTooltip(){this.ui.tooltipTargets.length&&this.ui.tooltipTargets.tipsy(`hide`)},updateElementModel:function updateElementModel(r){this.setValue(r)}},{getStyleValue:function getStyleValue(r,c,l){return r===`DEFAULT`?l.default:c},onPasteStyle:function onPasteStyle(){return!0}})}));function _callSuper$320(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$321()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$321(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$321=function _isNativeReflectConstruct(){return!!r})()}var De,Oe=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$320,`_callSuper`),__name(_isNativeReflectConstruct$321,`_isNativeReflectConstruct`),De=function(c){function ColorPicker(){var r;_classCallCheck(this,ColorPicker);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper$320(this,ColorPicker,[].concat(l)),r.createPicker(),r}return _inherits(ColorPicker,c),_createClass(ColorPicker,[{key:`getDefaultSettings`,value:function getDefaultSettings(){return{picker:{theme:`monolith`,position:`bottom-middle`,components:{opacity:!0,hue:!0,interaction:{input:!0,hex:!0,rgba:!0,hsla:!0}}},classes:{active:`elementor-active`,pickerHeader:`elementor-color-picker__header`,pickerToolsContainer:`e-color-picker__tools`,pickerTool:`e-control-tool`,clearButton:`e-color-picker__clear`,plusIcon:`eicon-plus`}}}},{key:`createPicker`,value:function createPicker(){var r=this,c=this.getSettings(`picker`);c.default=c.default||null,this.picker=new Pickr(c),this.picker.setColor(c.default||`#020101`),this.color=this.processColor(),this.picker.on(`change`,function(){return r.onPickerChange()}).on(`clear`,function(){return r.onPickerClear()}).on(`show`,function(){return r.onPickerShow()}).on(`hide`,function(){return r.onPickerHide()}),this.$pickerAppContainer=jQuery(this.picker.getRoot().app),this.createPickerHeader()}},{key:`addTipsyToClearButton`,value:function addTipsyToClearButton(){this.$clearButton.tipsy({title:function title(){return(0,r.__)(`Clear`,`elementor`)},gravity:function gravity(){return`s`}})}},{key:`processColor`,value:function processColor(){var r=this.picker.getColor();return(r.a===1?r.toHEXA():r.toRGBA()).toString()}},{key:`getColor`,value:function getColor(){return this.color}},{key:`createPickerHeader`,value:function createPickerHeader(){var c=this.getSettings().classes,l=jQuery(`<div>`,{class:c.pickerHeader}).text((0,r.__)(`Color Picker`,`elementor`)),u=jQuery(`<div>`,{class:c.pickerToolsContainer}),p=this.getSettings(`addButton`);this.$pickerToolsContainer=u,p&&this.createAddButton(),this.createClearButton(),u.append(this.$clearButton,this.$addButton),l.append(u),this.$pickerAppContainer.prepend(l)}},{key:`createAddButton`,value:function createAddButton(){var c=this,l=this.getSettings().classes;this.$addButton=jQuery(`<button>`,{class:l.pickerTool}).html(jQuery(`<i>`,{class:l.plusIcon})),this.$addButton.on(`click`,function(){return c.onAddButtonClick()}),this.$addButton.tipsy({title:function title(){return(0,r.__)(`Create New Global Color`,`elementor`)},gravity:function gravity(){return`s`}})}},{key:`createClearButton`,value:function createClearButton(){var r=this,c=this.getSettings().classes;this.$clearButton=jQuery(`<button>`,{class:c.clearButton+` `+c.pickerTool}).html(`<i class="eicon-undo"></i>`),this.$clearButton.on(`click`,function(){return r.picker._clearColor()}),this.addTipsyToClearButton()}},{key:`destroy`,value:function destroy(){this.picker.destroyAndRemove()}},{key:`fixTipsyForFF`,value:function fixTipsyForFF(r){r.data(`tipsy`).hide()}},{key:`introductionViewed`,value:function introductionViewed(){return ColorPicker.droppingIntroductionViewed||elementor.config.user.introduction.colorPickerDropping}},{key:`toggleClearButtonState`,value:function toggleClearButtonState(r){this.$clearButton.toggleClass(`e-control-tool-disabled`,!r)}},{key:`onPickerChange`,value:function onPickerChange(){this.picker.applyColor();var r=this.processColor();if(r!==this.color){this.color=r;var c=this.getSettings(`onChange`);c&&c()}}},{key:`onPickerClear`,value:function onPickerClear(){this.color=``;var r=this.getSettings(`onClear`);r&&r()}},{key:`onPickerShow`,value:function onPickerShow(){var r=this.picker.getRoot().interaction.result,c=this.getSettings(`onPickerShow`);c&&c(),setTimeout(function(){r.select()},100)}},{key:`onPickerHide`,value:function onPickerHide(){var r=this.getSettings(`onPickerHide`);r&&r()}},{key:`onAddButtonClick`,value:function onAddButtonClick(){this.picker.hide();var r=this.getSettings(`onAddButtonClick`);r&&r(),this.fixTipsyForFF(this.$addButton)}}])}(elementorModules.Module)}));N(),ge(),b(),w(),E(),D(),k(),A();var B=__toESM(R()),ke=__toESM(z());Oe();function _callSuper$319(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$320()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$319,`_callSuper`);function _isNativeReflectConstruct$320(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$320=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$320,`_isNativeReflectConstruct`);function _superPropGet$37(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}__name(_superPropGet$37,`_superPropGet`);var Ae=function(c){function _default(){return _classCallCheck(this,_default),_callSuper$319(this,_default,arguments)}return _inherits(_default,c),_createClass(_default,[{key:`ui`,value:function ui(){var r=_superPropGet$37(_default,`ui`,this,3)([]);return r.pickerContainer=`.elementor-color-picker-placeholder`,r}},{key:`applySavedValue`,value:function applySavedValue(){var r=this.getCurrentValue();if(this.colorPicker)if(r){var c,l=this.colorPicker.picker._parseLocalColor(r);(c=this.colorPicker.picker).setHSVA.apply(c,_toConsumableArray(l.values).concat([!1]))}else this.colorPicker.picker._clearColor(!0);else this.initPicker();this.$el.toggleClass(`e-control-color--no-value`,!r)}},{key:`initPicker`,value:function initPicker(){var r,c=this,l={picker:{el:this.ui.pickerContainer[0],default:this.getCurrentValue(),components:{opacity:this.model.get(`alpha`)},defaultRepresentation:`HEX`},addButton:(r=this.model.get(`global`))==null?void 0:r.active,onChange:function onChange(){return c.onPickerChange()},onClear:function onClear(){return c.onPickerClear()},onAddButtonClick:function onAddButtonClick(){return c.onAddGlobalButtonClick()},onPickerShow:function onPickerShow(){return c.reRoute(!0)},onPickerHide:function onPickerHide(){return c.reRoute(!1)}};this.colorPicker=new De(l),this.hidePickerOnPreviewClick(),this.$pickerButton=jQuery(this.colorPicker.picker.getRoot().button),this.addTipsyToPickerButton(),this.addEyedropper(),this.$pickerButton.on(`click`,function(){return c.onPickerButtonClick()}),jQuery(this.colorPicker.picker.getRoot().root).addClass(`elementor-control-unit-1 elementor-control-tag-area`)}},{key:`hidePickerOnPreviewClick`,value:function hidePickerOnPreviewClick(){var r=this.colorPicker.picker,c=r.constructor.utils;r._eventBindings.push(c.on(elementorFrontend.elements.window.document,[`touchstart`,`pointerdown`],function(){r.isOpen()&&r.hide()}))}},{key:`addTipsyToPickerButton`,value:function addTipsyToPickerButton(){var c=this;this.$pickerButton.tipsy({title:function title(){var l=c.getCurrentValue();return c.getGlobalKey()&&!l&&(l=`${(0,r.__)(`Invalid Global Color`,`elementor`)}`),l||``},offset:4,gravity:function gravity(){return`s`}})}},{key:`addEyedropper`,value:function addEyedropper(){var c=this,l=jQuery(Marionette.Renderer.render(`#tmpl-elementor-control-element-color-picker`)),u=this.colorPicker.$pickerToolsContainer,p=this.getOption(`container`),m=null;p.document.config.type===`kit`&&(m=p.document),l.tipsy({title:function title(){return(0,r.__)(`Color Sampler`,`elementor`)},gravity:`s`}),l.on(`click`,function(){$e.run(`elements-color-picker/start`,{container:p,kit:m,control:c.model.get(`name`),trigger:l[0]})}),u.append(l)}},{key:`getGlobalMeta`,value:function getGlobalMeta(){return{commandName:this.getGlobalCommand(),key:this.model.get(`name`),controlType:`colors`,route:`panel/global/global-colors`}}},{key:`getNameAlreadyExistsMessage`,value:function getNameAlreadyExistsMessage(){return`<i class="eicon-info-circle"></i> `+(0,r.__)(`Please note that the same exact color already exists in your Global Colors list. Are you sure you want to create it?`,`elementor`)}},{key:`getConfirmTextMessage`,value:function getConfirmTextMessage(){return(0,r.__)(`Are you sure you want to create a new Global Color?`,`elementor`)}},{key:`getAddGlobalConfirmMessage`,value:function getAddGlobalConfirmMessage(c){for(var l=(0,r.__)(`New Global Color`,`elementor`),u=this.getCurrentValue(),p=jQuery(`<div>`,{class:`e-global__confirm-message`}),m=jQuery(`<div>`,{class:`e-global__confirm-message-text`}),h=jQuery(`<div>`,{class:`e-global__confirm-input-wrapper`}),g=this.createColorPreviewBox(u),v=jQuery(`<input>`,{type:`text`,name:`global-name`,placeholder:l}).val(l),y,b=0,x=Object.values(c);b<x.length;b++){var S=x[b];if(u===S.value){y=this.getNameAlreadyExistsMessage();break}else if(l===S.title){y=this.getConfirmTextMessage();break}else y=(0,r.__)(`Are you sure you want to create a new Global Color?`,`elementor`)}return m.html(y),h.append(g,v),p.append(m,h),p}},{key:`getGlobalCommand`,value:function getGlobalCommand(){return`globals/colors`}},{key:`createGlobalItemMarkup`,value:function createGlobalItemMarkup(r){var c=jQuery(`<div>`,{class:`e-global__preview-item e-global__color`,"data-global-id":r.id}),l=this.createColorPreviewBox(r.value),u=jQuery(`<span>`,{class:`e-global__color-title`}).html(_.escape(r.title)),p=jQuery(`<span>`,{class:`e-global__color-hex`}).text(r.value);return c.append(l,u,p),c}},{key:`createHeaderItemMarkup`,value:function createHeaderItemMarkup(r){return jQuery(`<div>`,{class:`e-global__group-header`}).text(r)}},{key:`createColorPreviewBox`,value:function createColorPreviewBox(r){var c=jQuery(`<div>`,{class:`e-global__color-preview-container`}),l=jQuery(`<div>`,{class:`e-global__color-preview-color`,style:`background-color: `+r}),u=jQuery(`<div>`,{class:`e-global__color-preview-transparent-bg`});return c.append(u,l),c}},{key:`getGlobalsList`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(){var r;return B.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=1,$e.data.get(this.getGlobalCommand());case 1:return r=c.sent,c.abrupt(`return`,r.data);case 2:case`end`:return c.stop()}},_callee,this)}));function getGlobalsList(){return r.apply(this,arguments)}return getGlobalsList}()},{key:`buildGlobalsList`,value:function buildGlobalsList(c,l){var u=this,p=[],m=[];Object.values(c).forEach(function(r){r.value&&(r.group===`v4`?p.push(r):m.push(r))}),p.length&&(l.append(this.createHeaderItemMarkup((0,r.__)(`Atomic Variables`,`elementor`))),p.forEach(function(r){l.append(u.createGlobalItemMarkup(r))}),l.append(this.createHeaderItemMarkup((0,r.__)(`Global Colors`,`elementor`)))),m.forEach(function(r){l.append(u.createGlobalItemMarkup(r))})}},{key:`onPickerChange`,value:function onPickerChange(){this.setValue(this.colorPicker.picker.getColor().toHEXA().toString()),this.isCustom||(this.triggerMethod(`value:type:change`),this.colorPicker.toggleClearButtonState(!0),this.$el.hasClass(`e-control-color--no-value`)&&this.$el.removeClass(`e-control-color--no-value`),this.isCustom=!0)}},{key:`onPickerClear`,value:function onPickerClear(){this.isCustom=!1,this.setValue(``),this.triggerMethod(`value:type:change`),this.applySavedValue(),this.colorPicker.toggleClearButtonState(!1)}},{key:`onPickerButtonClick`,value:function onPickerButtonClick(){this.getGlobalKey()?this.triggerMethod(`unset:global:value`):this.isGlobalActive()&&!this.getControlValue()&&this.getGlobalDefault()&&this.triggerMethod(`unlink:global:default`),this.colorPicker.toggleClearButtonState(!!this.getCurrentValue())}},{key:`onAddGlobalButtonClick`,value:function onAddGlobalButtonClick(){var r=this;this.getGlobalsList().then(function(c){r.globalsList=c,r.triggerMethod(`add:global:to:list`,r.getAddGlobalConfirmMessage(c))})}},{key:`activate`,value:function activate(){this.colorPicker.picker.show()}},{key:`onBeforeDestroy`,value:function onBeforeDestroy(){this.colorPicker&&this.colorPicker.destroy()}}])}(ke.default);b(),w(),E(),D(),k(),A();function _callSuper$318(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$319()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$318,`_callSuper`);function _isNativeReflectConstruct$319(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$319=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$319,`_isNativeReflectConstruct`);function _superPropGet$36(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}__name(_superPropGet$36,`_superPropGet`);var je=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$318(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`onReady`,value:function onReady(){var r=_.extend({enableTime:!0,minuteIncrement:1},this.model.get(`picker_options`));this.ui.input.flatpickr(r)}},{key:`onBaseInputChange`,value:function onBaseInputChange(){var r;_superPropGet$36(_default,`onBaseInputChange`,this,3)(arguments),(r=this.model.get(`validation`))!=null&&r.date_time&&this.validateDateTime()}},{key:`validateDateTime`,value:function validateDateTime(){var r=this.model.get(`validation`).date_time,c=r.control_name,l=r.operator,u=this.options.container.settings.get(c),p=this.ui.input.val();if(!(!u||!p)){var m=new Date(u).getTime(),h=new Date(p).getTime();elementor.conditions.compare(m,h,l)&&this.ui.input.val(``)}}},{key:`onBeforeDestroy`,value:function onBeforeDestroy(){this.ui.input.flatpickr().destroy()}}])}(z());function _superPropGet$35(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 Me,Ne=__esmMin((()=>{b(),w(),D(),k(),__name(_superPropGet$35,`_superPropGet`),Me=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$35(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$9(r,c){var l=typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(!l){if(Array.isArray(r)||(l=_unsupportedIterableToArray$9(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.
7 7 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$9(r,c){if(r){if(typeof r==`string`)return _arrayLikeToArray$9(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$9(r,c):void 0}}function _arrayLikeToArray$9(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}var Pe,Fe=__esmMin((()=>{__name(_createForOfIteratorHelper$9,`_createForOfIteratorHelper`),__name(_unsupportedIterableToArray$9,`_unsupportedIterableToArray`),__name(_arrayLikeToArray$9,`_arrayLikeToArray`),Pe=__name((function(r,c){c=Array.isArray(c)?c:[c];var l=_createForOfIteratorHelper$9(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`)}));function _callSuper$317(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$318()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$318(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$318=function _isNativeReflectConstruct(){return!!r})()}var Ie,Le=__esmMin((()=>{x(),b(),w(),E(),D(),A(),Ne(),Fe(),__name(_callSuper$317,`_callSuper`),__name(_isNativeReflectConstruct$318,`_isNativeReflectConstruct`),Ie=function(r){function ArgsObject(r){var c;return _classCallCheck(this,ArgsObject),c=_callSuper$317(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)&&!Pe(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`}}])}(Me)})),Re,ze=__esmMin((()=>{b(),w(),Re=function(){function Console(){_classCallCheck(this,Console)}return _createClass(Console,null,[{key:`error`,value:function error(r){$e.devTools&&$e.devTools.log.error(r),r instanceof $e.modules.HookBreak||console.error(r)}},{key:`warn`,value:function warn(){for(var r,c=`font-size: 12px; background-image: url("${elementorWebCliConfig.urls.assets}images/logo-icon.png"); background-repeat: no-repeat; background-size: contain;`,l=arguments.length,u=Array(l),p=0;p<l;p++)u[p]=arguments[p];u.unshift(`%c %c`,c,``),(r=console).warn.apply(r,u)}}])}()})),Be,Ve,He,Ue,We=__esmMin((()=>{M(),b(),w(),ze(),Be=function softDeprecated(r,c,l){elementorWebCliConfig.isDebug&&He(`soft`,r,c,l)},Ve=function hardDeprecated(r,c,l){He(`hard`,r,c,l)},He=function deprecatedMessage(r,c,l,u){var p=`\`${c}\` is ${r} deprecated since ${l}`;u&&(p+=` - Use \`${u}\` instead`),Re.warn(p)},Ue=function(){function Deprecation(){_classCallCheck(this,Deprecation)}return _createClass(Deprecation,null,[{key:`deprecated`,value:function deprecated(r,c,l){this.isHardDeprecated(c)?Ve(r,c,l):Be(r,c,l)}},{key:`parseVersion`,value:function parseVersion(r){var c=r.split(`.`);if(c.length<3||c.length>4)throw RangeError(`Invalid Semantic Version string provided`);var l=_slicedToArray(c,4),u=l[0],p=l[1],m=l[2],h=l[3];return{major1:parseInt(u),major2:parseInt(p),minor:parseInt(m),build:h===void 0?``:h}}},{key:`getTotalMajor`,value:function getTotalMajor(r){var c=parseInt(`${r.major1}${r.major2}0`);return c=Number((c/10).toFixed(0)),r.major2>9&&(c=r.major2-9),c}},{key:`compareVersion`,value:function compareVersion(r,c){var l=this;return[this.parseVersion(r),this.parseVersion(c)].map(function(r){return l.getTotalMajor(r)}).reduce(function(r,c){return r-c})}},{key:`isSoftDeprecated`,value:function isSoftDeprecated(r){return this.compareVersion(r,elementorWebCliConfig.version)<=4}},{key:`isHardDeprecated`,value:function isHardDeprecated(r){var c=this.compareVersion(r,elementorWebCliConfig.version);return c<0||c>=8}}])}()}));function _callSuper$316(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$317()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$317(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$317=function _isNativeReflectConstruct(){return!!r})()}var Ge,Ke=__esmMin((()=>{b(),w(),E(),D(),A(),P(),Le(),We(),__name(_callSuper$316,`_callSuper`),__name(_isNativeReflectConstruct$317,`_isNativeReflectConstruct`),Ge=function(r){function CommandInfra(){var r,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(_classCallCheck(this,CommandInfra),r=_callSuper$316(this,CommandInfra,[c]),!r.constructor.registerConfig)throw RangeError("Doing it wrong: Each command type should have `registerConfig`.");return r.command=r.constructor.getCommand(),r.component=r.constructor.getComponent(),r.initialize(c),c=r.args,r.validateArgs(c),r}return _inherits(CommandInfra,r),_createClass(CommandInfra,[{key:`currentCommand`,get:function get(){return Ue.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(r){}}],[{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(r){this.registerConfig=Object.freeze(r)}}])}(Ie),_defineProperty(Ge,`registerConfig`,null)}));function _callSuper$315(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$316()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$316(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$316=function _isNativeReflectConstruct(){return!!r})()}var qe,Je=__esmMin((()=>{b(),w(),E(),D(),A(),Ke(),We(),__name(_callSuper$315,`_callSuper`),__name(_isNativeReflectConstruct$316,`_isNativeReflectConstruct`),qe=function(r){function CommandBase(){return _classCallCheck(this,CommandBase),_callSuper$315(this,CommandBase,arguments)}return _inherits(CommandBase,r),_createClass(CommandBase,[{key:`onBeforeRun`,value:function onBeforeRun(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$e.hooks.runUIBefore(this.command,r)}},{key:`onAfterRun`,value:function onAfterRun(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;$e.hooks.runUIAfter(this.command,r,c)}},{key:`onBeforeApply`,value:function onBeforeApply(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$e.hooks.runDataDependency(this.command,r)}},{key:`onAfterApply`,value:function onAfterApply(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;return $e.hooks.runDataAfter(this.command,r,c)}},{key:`onCatchApply`,value:function onCatchApply(r){this.runCatchHooks(r)}},{key:`runCatchHooks`,value:function runCatchHooks(r){$e.hooks.runDataCatch(this.command,this.args,r),$e.hooks.runUICatch(this.command,this.args,r)}},{key:`requireContainer`,value:function requireContainer(){var r=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.args;if(Ue.deprecated(`requireContainer()`,`3.7.0`,"Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`"),!c.container&&!c.containers)throw Error(`container or containers are required.`);if(c.container&&c.containers)throw Error(`container and containers cannot go together please select one of them.`);(c.containers||[c.container]).forEach(function(c){r.requireArgumentInstance(`container`,elementorModules.editor.Container,{container:c})})}}],[{key:`getInstanceType`,value:function getInstanceType(){return`CommandBase`}}])}(Ge)}));function _callSuper$314(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$315()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$315(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$315=function _isNativeReflectConstruct(){return!!r})()}var V,Ye=__esmMin((()=>{b(),w(),E(),D(),A(),Je(),__name(_callSuper$314,`_callSuper`),__name(_isNativeReflectConstruct$315,`_isNativeReflectConstruct`),V=function(r){function CommandCallbackBase(){return _classCallCheck(this,CommandCallbackBase),_callSuper$314(this,CommandCallbackBase,arguments)}return _inherits(CommandCallbackBase,r),_createClass(CommandCallbackBase,[{key:`apply`,value:function apply(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.constructor.getCallback()(r)}}],[{key:`getInstanceType`,value:function getInstanceType(){return`CommandCallbackBase`}},{key:`getCallback`,value:function getCallback(){return this.registerConfig.callback}}])}(qe)})),Xe=__commonJSMin(((r,c)=>{x();var l=function Module(){var r=jQuery,c=arguments,l=this,u={},p,m=function ensureClosureMethods(){r.each(l,function(r){var c=l[r];typeof c==`function`&&(l[r]=function(){return c.apply(l,arguments)})})},h=function initSettings(){p=l.getDefaultSettings();var u=c[0];u&&r.extend(!0,p,u)},g=function init(){l.__construct.apply(l,c),m(),h(),l.trigger(`init`)};this.getItems=function(r,c){if(c){var l=c.split(`.`),u=l.splice(0,1);return l.length?r[u]?this.getItems(r[u],l.join(`.`)):void 0:r[u]}return r},this.getSettings=function(r){return this.getItems(p,r)},this.setSettings=function(c,u,m){if(m||(m=p),_typeof(c)===`object`)return r.extend(m,c),l;var h=c.split(`.`),g=h.splice(0,1);return h.length?(m[g]||(m[g]={}),l.setSettings(h.join(`.`),u,m[g])):(m[g]=u,l)},this.getErrorMessage=function(r,c){var l;switch(r){case`forceMethodImplementation`:l=`The method '${c}' must to be implemented in the inheritor child.`;break;default:l=`An error occurs`}return l},this.forceMethodImplementation=function(r){throw Error(this.getErrorMessage(`forceMethodImplementation`,r))},this.on=function(c,p){return _typeof(c)===`object`?(r.each(c,function(r){l.on(r,this)}),l):(c.split(` `).forEach(function(r){u[r]||(u[r]=[]),u[r].push(p)}),l)},this.off=function(r,c){if(!u[r])return l;if(!c)return delete u[r],l;var p=u[r].indexOf(c);return p!==-1&&(delete u[r][p],u[r]=u[r].filter(function(r){return r})),l},this.trigger=function(c){var p=`on`+c[0].toUpperCase()+c.slice(1),m=Array.prototype.slice.call(arguments,1);l[p]&&l[p].apply(l,m);var h=u[c];return h&&r.each(h,function(r,c){c.apply(l,m)}),l},g()};l.prototype.__construct=function(){},l.prototype.getDefaultSettings=function(){return{}},l.prototype.getConstructorID=function(){return this.constructor.name},l.extend=function(r){var c=jQuery,l=this,u=function child(){return l.apply(this,arguments)};return c.extend(u,l),u.prototype=Object.create(c.extend({},l.prototype,r)),u.prototype.constructor=u,u.__super__=l.prototype,u},c.exports=l}));function _isNativeFunction(r){try{return Function.toString.call(r).indexOf(`[native code]`)!==-1}catch(c){return typeof r==`function`}}var Ze=__esmMin((()=>{}));function _isNativeReflectConstruct$314(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$314=function _isNativeReflectConstruct(){return!!r})()}var Qe=__esmMin((()=>{__name(_isNativeReflectConstruct$314,`_isNativeReflectConstruct`)}));function _construct(r,c,l){if(_isNativeReflectConstruct$314())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}var et=__esmMin((()=>{Qe(),ee()}));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)}var tt=__esmMin((()=>{D(),ee(),Ze(),et()}));function _callSuper$313(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$313()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$313(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$313=function _isNativeReflectConstruct(){return!!r})()}var nt,H,rt=__esmMin((()=>{w(),b(),E(),D(),A(),tt(),__name(_callSuper$313,`_callSuper`),__name(_isNativeReflectConstruct$313,`_isNativeReflectConstruct`),nt=function(r){function ForceMethodImplementation(){var r,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _classCallCheck(this,ForceMethodImplementation),r=_callSuper$313(this,ForceMethodImplementation,[`${c.isStatic?`static `:``}${c.fullName}() should be implemented, please provide '${c.functionName||c.fullName}' functionality.`]),Error.captureStackTrace(r,ForceMethodImplementation),r}return _inherits(ForceMethodImplementation,r),_createClass(ForceMethodImplementation)}(_wrapNativeSuper(Error)),H=__name((function(){var r=Error().stack.split(`
8 -`)[2].trim(),c=r.startsWith(`at new`)?`constructor`:r.split(` `)[1],l={};if(l.functionName=c,l.fullName=c,l.functionName.includes(`.`)){var u=l.functionName.split(`.`);l.className=u[0],l.functionName=u[1]}else l.isStatic=!0;throw new nt(l)}),`default`)}));function ownKeys$22(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$22(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$22(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$22(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}function _callSuper$312(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$312()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$312(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$312=function _isNativeReflectConstruct(){return!!r})()}var it,U,W=__esmMin((()=>{P(),M(),b(),w(),E(),D(),A(),Ye(),it=__toESM(Xe()),rt(),We(),__name(ownKeys$22,`ownKeys`),__name(_objectSpread$22,`_objectSpread`),__name(_callSuper$312,`_callSuper`),__name(_isNativeReflectConstruct$312,`_isNativeReflectConstruct`),U=function(r){function ComponentBase(){return _classCallCheck(this,ComponentBase),_callSuper$312(this,ComponentBase,arguments)}return _inherits(ComponentBase,r),_createClass(ComponentBase,[{key:`__construct`,value:function __construct(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.manager&&(this.manager=r.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 r=this;Object.entries(this.getTabs()).forEach(function(c){return r.registerTabRoute(c[0])}),Object.entries(this.getRoutes()).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return r.registerRoute(u,p)}),Object.entries(this.getCommands()).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return r.registerCommand(u,p)}),Object.entries(this.getCommandsInternal()).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return r.registerCommandInternal(u,p)}),Object.values(this.getHooks()).forEach(function(c){return r.registerHook(c)}),Object.entries(this.getData()).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return r.registerData(u,p)}),Object.values(this.getUiStates()).forEach(function(c){return r.registerUiState(c)}),Object.entries(this.getStates()).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return r.registerState(u,p)})}},{key:`getNamespace`,value:function getNamespace(){H()}},{key:`getRootContainer`,value:function getRootContainer(){return Ue.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(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`default`,u;switch(l){case`default`:u=$e.commands;break;case`internal`:u=$e.commandsInternal;break;case`data`:u=$e.data;break;default:throw Error(`Invalid commands type: '${r}'`)}var p=this.getNamespace()+`/`+r,m=c.getInstanceType?c.getInstanceType():!1,h={command:p,component:this};m||($e.devTools&&$e.devTools.log.warn(`Attach command-callback-base, on command: '${p}', context is unknown type.`),h.callback=c,c=function(r){function context(){return _classCallCheck(this,context),_callSuper$312(this,context,arguments)}return _inherits(context,r),_createClass(context)}(V)),c.setRegisterConfig(h),u.register(this,r,c)}},{key:`registerHook`,value:function registerHook(r){return r.register()}},{key:`registerCommandInternal`,value:function registerCommandInternal(r,c){this.registerCommand(r,c,`internal`)}},{key:`registerUiState`,value:function registerUiState(r){$e.uiStates.register(r)}},{key:`registerState`,value:function registerState(r,l){r=this.getNamespace()+(r?`/${r}`:``);var u=(0,c.createSlice)(_objectSpread$22(_objectSpread$22({},l),{},{name:r}));$e.store.register(r,u)}},{key:`registerRoute`,value:function registerRoute(r,c){$e.routes.register(this,r,c)}},{key:`registerData`,value:function registerData(r,c){this.registerCommand(r,c,`data`)}},{key:`unregisterRoute`,value:function unregisterRoute(r){$e.routes.unregister(this,r)}},{key:`registerTabRoute`,value:function registerTabRoute(r){var c=this;this.registerRoute(r,function(l){return c.activateTab(r,l)})}},{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(r){this.toggleRouteClass(r,!0),this.toggleHistoryClass(),this.activate(),this.trigger(`route/open`,r)}},{key:`onCloseRoute`,value:function onCloseRoute(r){this.toggleRouteClass(r,!1),this.inactivate(),this.trigger(`route/close`,r)}},{key:`setDefaultRoute`,value:function setDefaultRoute(r){this.defaultRoute=this.getNamespace()+`/`+r}},{key:`getDefaultRoute`,value:function getDefaultRoute(){return this.defaultRoute}},{key:`removeTab`,value:function removeTab(r){delete this.tabs[r],this.unregisterRoute(r)}},{key:`hasTab`,value:function hasTab(r){return!!this.tabs[r]}},{key:`addTab`,value:function addTab(r,c,l){var u=this;if(this.tabs[r]=c,l!==void 0){var p={},m=Object.keys(this.tabs);m.pop(),m.splice(l,0,r),m.forEach(function(r){p[r]=u.tabs[r]}),this.tabs=p}this.registerTabRoute(r)}},{key:`getTabsWrapperSelector`,value:function getTabsWrapperSelector(){return``}},{key:`getTabRoute`,value:function getTabRoute(r){return this.getNamespace()+`/`+r}},{key:`renderTab`,value:function renderTab(r){}},{key:`activateTab`,value:function activateTab(r,c){var l=this;this.renderTab(r,c),jQuery(this.getTabsWrapperSelector()+` .elementor-component-tab`).off(`click`).on(`click`,function(r){$e.route(l.getTabRoute(r.currentTarget.dataset.tab),c)}).removeClass(`elementor-active`).filter(`[data-tab="`+r+`"]`).addClass(`elementor-active`)}},{key:`getActiveTabConfig`,value:function getActiveTabConfig(){return this.tabs[this.currentTab]||{}}},{key:`getBodyClass`,value:function getBodyClass(r){return`e-route-`+r.replace(/\//g,`-`)}},{key:`normalizeCommandName`,value:function normalizeCommandName(r){return r.replace(/[A-Z]/g,function(r,c){return(c>0?`-`:``)+r.toLowerCase()})}},{key:`importCommands`,value:function importCommands(r){var c=this,l={};return Object.entries(r).forEach(function(r){var u=_slicedToArray(r,2),p=u[0],m=u[1],h=c.normalizeCommandName(p);l[h]=m}),l}},{key:`importHooks`,value:function importHooks(r){var c={};for(var l in r){var u=new r[l];c[u.getId()]=u}return c}},{key:`importUiStates`,value:function importUiStates(r){var c=this,l={};return Object.values(r).forEach(function(r){var u=new r(c);l[u.getId()]=u}),l}},{key:`setUiState`,value:function setUiState(r,c){$e.uiStates.set(`${this.getNamespace()}/${r}`,c)}},{key:`toggleRouteClass`,value:function toggleRouteClass(r,c){document.body.classList.toggle(this.getBodyClass(r),c)}},{key:`toggleHistoryClass`,value:function toggleHistoryClass(){document.body.classList.toggle(`e-routes-has-history`,!!$e.routes.getHistory(this.getServiceName()).length)}}])}(it.default)})),at=__commonJSMin(((r,c)=>{c.exports=Backbone.Model.extend({defaults:{id:0,type:``,status:`not_applied`,title:``,subTitle:``,action:``,history:{}},initialize:function initialize(){this.set(`items`,new Backbone.Collection)}})}));W(),b(),w(),P();var ot=__toESM(at()),st=function(){function HistoryManager(c){_classCallCheck(this,HistoryManager),_defineProperty(this,`currentItemID`,null),_defineProperty(this,`items`,new Backbone.Collection([],{model:ot.default})),_defineProperty(this,`active`,!0),_defineProperty(this,`translations`,{add:(0,r.__)(`Added`,`elementor`),change:(0,r.__)(`Edited`,`elementor`),disable:(0,r.__)(`Disabled`,`elementor`),duplicate:(0,r.__)(`Duplicate`,`elementor`),enable:(0,r.__)(`Enabled`,`elementor`),import:(0,r.__)(`Imported`,`elementor`),move:(0,r.__)(`Moved`,`elementor`),paste:(0,r.__)(`Pasted`,`elementor`),paste_style:(0,r.__)(`Style Pasted`,`elementor`),remove:(0,r.__)(`Removed`,`elementor`),reset_settings:(0,r.__)(`Settings Reset`,`elementor`),reset_style:(0,r.__)(`Style Reset`,`elementor`),selected:(0,r.__)(`Selected`,`elementor`)}),this.document=c,this.currentItem=new Backbone.Model({id:0})}return _createClass(HistoryManager,[{key:`getActionLabel`,value:function getActionLabel(r){return this.translations[r.type]?this.translations[r.type]:r.type}},{key:`navigate`,value:function navigate(r){var c=this.items.find(function(r){return r.get(`status`)===`not_applied`}),l=this.items.indexOf(c),u=r?l-1:l+1;if(!(!r&&!c||u<0||u>=this.items.length))return this.doItem(u),r?this.items.at(u):this.items.at(u-1)}},{key:`setActive`,value:function setActive(r){this.active=r}},{key:`getActive`,value:function getActive(){return this.active}},{key:`getItems`,value:function getItems(){return this.items}},{key:`startItem`,value:function startItem(r){return this.currentItemID=this.addItem(r),this.currentItemID}},{key:`endItem`,value:function endItem(r){this.currentItemID===r&&(this.currentItemID=null)}},{key:`deleteItem`,value:function deleteItem(r){var c=this.items.findWhere({id:r});this.items.remove(c),this.currentItemID=null}},{key:`isItemStarted`,value:function isItemStarted(){return this.currentItemID!==null}},{key:`getCurrentId`,value:function getCurrentId(){return this.currentItemID}},{key:`addItem`,value:function addItem(c){if(this.getActive()){for(this.items.length||this.items.add({status:`not_applied`,title:(0,r.__)(`Editing Started`,`elementor`),subTitle:``,action:``,editing_started:!0});this.items.length&&this.items.first().get(`status`)===`applied`;)this.items.shift();var l=this.currentItemID?this.currentItemID:new Date().getTime(),u=this.items.findWhere({id:l});return u||(u=new ot.default({id:l,title:c.title,subTitle:c.subTitle,action:this.getActionLabel(c),type:c.type}),this.startItemTitle=``,this.startItemAction=``),u.get(`items`).add(c,{at:0}),this.items.add(u,{at:0}),this.updateCurrentItem(u),l}}},{key:`doItem`,value:function doItem(r){this.setActive(!1);var c=this.items.at(r);c.get(`status`)===`not_applied`?this.undoItem(r):this.redoItem(r),this.setActive(!0);var l=elementor.getPanelView().getCurrentPageView().getOption(`editedElementView`),u;if($e.routes.isPartOf(`panel/editor`)&&l)l.isDestroyed?$e.route(`panel/history/actions`):u=l;else if(c instanceof Backbone.Model&&c.get(`items`).length){var p=c.get(`items`).first();if(p.get(`restore`)){var m=p.get(`type`)===`sub-add`?p.get(`data`).containerToRestore:p.get(`container`)||p.get(`containers`);Array.isArray(m)&&(m=m[0]),m&&(u=m.lookup().view)}}$e.internal(`document/save/set-is-modified`,{status:c.get(`id`)!==this.document.editor.lastSaveHistoryId}),this.updateCurrentItem(c),u&&!elementor.helpers.isInViewport(u.$el[0],elementor.$previewContents.find(`html`)[0])&&elementor.helpers.scrollToView(u.$el)}},{key:`undoItem`,value:function undoItem(r){for(var c=0;c<r;c++){var l=this.items.at(c);l.get(`status`)===`not_applied`&&(l.get(`items`).each(function(r){var c=r.get(`restore`);c&&c(r)}),l.set(`status`,`applied`))}}},{key:`redoItem`,value:function redoItem(r){for(var c=this.items.length-1;c>=r;c--){var l=this.items.at(c);if(l.get(`status`)===`applied`){var u=_.toArray(l.get(`items`).models).reverse();_(u).each(function(r){var c=r.get(`restore`);c&&c(r,!0)}),l.set(`status`,`not_applied`)}}}},{key:`updateCurrentItem`,value:function updateCurrentItem(r){this.currentItem=r,this.updatePanelPageCurrentItem()}},{key:`updatePanelPageCurrentItem`,value:function updatePanelPageCurrentItem(){$e.routes.is(`panel/history/actions`)&&elementor.getPanelView().getCurrentPageView().getCurrentTab().updateCurrentItem()}}])}(),ct=__commonJSMin(((r,c)=>{var l=Backbone.Model.extend();l.prototype.sync=function(){return null},c.exports=l})),lt=__commonJSMin(((r,c)=>{var l=ct();c.exports=Backbone.Collection.extend({model:l,comparator:function comparator(r){return-r.get(`timestamp`)}})}));b(),w(),P();var ut=lt(),dt=function(){function RevisionsManager(r){_classCallCheck(this,RevisionsManager),_defineProperty(this,`document`,void 0),_defineProperty(this,`revisions`,void 0),this.document=r}return _createClass(RevisionsManager,[{key:`getItems`,value:function getItems(){return this.revisions}},{key:`requestRevisions`,value:function requestRevisions(r){var c=this;if(this.revisions){r(this.revisions);return}elementorCommon.ajax.addRequest(`get_revisions`,{success:function success(l){c.revisions=new ut(l),c.revisions.on(`update`,c.onRevisionsUpdate.bind(c)),r(c.revisions)}})}},{key:`setEditorData`,value:function setEditorData(r){elementor.getPreviewView().collection.reset(r)}},{key:`getRevisionDataAsync`,value:function getRevisionDataAsync(r,c){return _.extend(c,{data:{id:r}}),elementorCommon.ajax.addRequest(`get_revision_data`,c)}},{key:`addRevisions`,value:function addRevisions(r){var c=this;this.requestRevisions(function(){r.forEach(function(r){var l=c.revisions.findWhere({id:r.id});l&&c.revisions.remove(l,{silent:!0}),c.revisions.add(r,{silent:!0})}),c.revisions.trigger(`update`)})}},{key:`deleteRevision`,value:function deleteRevision(r,c){var l={data:{id:r.get(`id`)},success:function success(){c.success&&c.success(),r.destroy()}};c.error&&(l.error=c.error),elementorCommon.ajax.addRequest(`delete_revision`,l)}},{key:`onRevisionsUpdate`,value:function onRevisionsUpdate(){$e.routes.is(`panel/history/revisions`)&&$e.routes.refreshContainer(`panel`)}}])}();w(),b(),P();var ft=_createClass(function Editor(){_classCallCheck(this,Editor),_defineProperty(this,`status`,`closed`),_defineProperty(this,`isSaving`,!1),_defineProperty(this,`isChanged`,!1),_defineProperty(this,`isChangedDuringSave`,!1),_defineProperty(this,`isSaved`,!0),_defineProperty(this,`lastSaveHistoryId`,0)});b(),w(),P();var pt=function(){function Document(r){_classCallCheck(this,Document),_defineProperty(this,`id`,null),_defineProperty(this,`history`,null),_defineProperty(this,`revisions`,null),_defineProperty(this,`container`,null),_defineProperty(this,`editor`,new ft),this.config=r,this.id=r.id,this.history=new st(this),this.revisions=new dt(this)}return _createClass(Document,[{key:`isDraft`,value:function isDraft(){return this.config.revisions.current_id!==this.config.id}}])}();N(),b(),w(),E(),D(),A();function _callSuper$311(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$311()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$311,`_callSuper`);function _isNativeReflectConstruct$311(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$311=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$311,`_isNativeReflectConstruct`);var mt=function(c){function Close(){return _classCallCheck(this,Close),_callSuper$311(this,Close,arguments)}return _inherits(Close,c),_createClass(Close,[{key:`validateArgs`,value:function validateArgs(r){this.requireArgument(`id`,r)}},{key:`apply`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(r){var c,l,u,p,m,h;return B.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(c=r.id,l=r.mode,u=r.onClose,p=elementor.documents.get(c),p.editor.status!==`closed`){g.next=1;break}return g.abrupt(`return`,jQuery.Deferred().resolve());case 1:if(!(!l&&(p.editor.isChanged||p.isDraft()))){g.next=2;break}return m=jQuery.Deferred(),this.getConfirmDialog(m).show(),g.abrupt(`return`,m.promise());case 2:h=l,g.next=h===`autosave`?3:h===`save`?5:h===`discard`?7:9;break;case 3:return g.next=4,$e.run(`document/save/auto`);case 4:return g.abrupt(`continue`,9);case 5:return g.next=6,$e.run(`document/save/update`);case 6:return g.abrupt(`continue`,9);case 7:return g.next=8,$e.run(`document/save/discard`,{document:p});case 8:return g.abrupt(`continue`,9);case 9:return $e.run(`document/elements/deselect-all`),g.next=10,$e.internal(`editor/documents/unload`,{document:p});case 10:if(!u){g.next=11;break}return g.next=11,u(p);case 11:return g.abrupt(`return`,jQuery.Deferred().resolve());case 12:case`end`:return g.stop()}},_callee,this)}));function apply(c){return r.apply(this,arguments)}return apply}()},{key:`getConfirmDialog`,value:function getConfirmDialog(c){var l=this;return this.confirmDialog||(this.confirmDialog=elementorCommon.dialogsManager.createWidget(`confirm`,{id:`elementor-document-save-on-close`,headerMessage:(0,r.__)(`You are leaving to a separate site part.`,`elementor`),message:(0,r.__)(`Save your changes before moving on because the current document and the one you’re moving to are separate site parts.`,`elementor`),position:{my:`center center`,at:`center center`},strings:{confirm:(0,r.__)(`Save & leave`,`elementor`),cancel:(0,r.__)(`Don't leave`,`elementor`)},onHide:function onHide(){_.defer(function(){l.args.mode||c.reject(`Close document has been canceled.`)})},onCancel:function onCancel(){window.top.$e.internal(`panel/state-ready`),c.reject(`Close document has been canceled.`)},onConfirm:function onConfirm(){l.args.mode=`save`,$e.run(`editor/documents/close`,l.args).then(function(){c.resolve()})}})),this.confirmDialog}}])}($e.modules.CommandBase);b(),w(),E(),D(),A();function _callSuper$310(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$310()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$310,`_callSuper`);function _isNativeReflectConstruct$310(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$310=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$310,`_isNativeReflectConstruct`);var ht=function(r){function Open(){return _classCallCheck(this,Open),_callSuper$310(this,Open,arguments)}return _inherits(Open,r),_createClass(Open,[{key:`validateArgs`,value:function validateArgs(r){this.requireArgument(`id`,r)}},{key:`apply`,value:function apply(r){var c=r.id,l=r.selector,u=r.shouldScroll,p=u===void 0||u,m=r.shouldNavigateToDefaultRoute,h=m===void 0||m,g=r.setAsInitial,v=g!==void 0&&g,y=elementor.documents.getCurrent();return y&&c===y.id?jQuery.Deferred().resolve():(elementor.loaded&&elementor.$previewContents.find(`.elementor-${c}`).addClass(`loading`),v&&(elementorCommon.ajax.addRequestConstant(`initial_document_id`,c),elementor.documents.invalidateCache()),elementor.documents.request(c).then(function(r){return elementorCommon.elements.$body.addClass(`elementor-editor-${r.type}`),$e.internal(`editor/documents/load`,{config:r,selector:l,setAsInitial:v,shouldScroll:p,shouldNavigateToDefaultRoute:h})}).always(function(){elementor.loaded&&elementor.$previewContents.find(`.elementor-${c}`).removeClass(`loading`)}))}}])}($e.modules.CommandBase);N(),b(),w(),E(),D(),A();function _callSuper$309(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$309()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$309,`_callSuper`);function _isNativeReflectConstruct$309(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$309=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$309,`_isNativeReflectConstruct`);var gt=function(r){function Preview(){return _classCallCheck(this,Preview),_callSuper$309(this,Preview,arguments)}return _inherits(Preview,r),_createClass(Preview,[{key:`validateArgs`,value:function validateArgs(r){this.requireArgument(`id`,r)}},{key:`apply`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(r){var c,l,u,p;return B.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(c=r.id,l=$e.components.get(`document/save`),u=l.footerSaver,p=elementor.documents.get(c),!p.editor.isChanged){m.next=1;break}return m.next=1,$e.run(`document/save/auto`,{force:!0});case 1:u.previewWindow=open(p.config.urls.wp_preview,`wp-preview-${p.id}`);case 2:case`end`:return m.stop()}},_callee)}));function apply(c){return r.apply(this,arguments)}return apply}()}])}($e.modules.CommandBase);N(),b(),w(),E(),D(),A();function _callSuper$308(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$308()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$308,`_callSuper`);function _isNativeReflectConstruct$308(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$308=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$308,`_isNativeReflectConstruct`);var _t=function(r){function View(){return _classCallCheck(this,View),_callSuper$308(this,View,arguments)}return _inherits(View,r),_createClass(View,[{key:`validateArgs`,value:function validateArgs(r){this.requireArgument(`id`,r)}},{key:`apply`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(r){var c,l;return B.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:c=r.id,l=elementor.documents.get(c),open(l.config.urls.permalink,`wp-view-${l.id}`);case 1:case`end`:return u.stop()}},_callee)}));function apply(c){return r.apply(this,arguments)}return apply}()}])}($e.modules.CommandBase);b(),w(),E(),D(),A();function _callSuper$307(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$307()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$307,`_callSuper`);function _isNativeReflectConstruct$307(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$307=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$307,`_isNativeReflectConstruct`);var vt=function(r){function Switch(){return _classCallCheck(this,Switch),_callSuper$307(this,Switch,arguments)}return _inherits(Switch,r),_createClass(Switch,[{key:`validateArgs`,value:function validateArgs(r){this.requireArgument(`id`,r)}},{key:`apply`,value:function apply(r){var c=r.id,l=r.mode,u=r.onClose,p=r.shouldScroll,m=p===void 0||p,h=r.shouldNavigateToDefaultRoute,g=h===void 0||h,v=r.setAsInitial,y=v!==void 0&&v;return y&&jQuery(`#elementor-preview-loading`).show(),$e.run(`editor/documents/close`,{id:elementor.documents.getCurrentId(),mode:l,onClose:u,selector:r.selector}).then(function(){return $e.run(`editor/documents/open`,{id:c,shouldScroll:m,shouldNavigateToDefaultRoute:g,selector:r.selector,setAsInitial:y})}).then(function(){elementor.getPanelView().getPages(`menu`).view.addExitItem()})}}])}($e.modules.CommandBase),yt=__exportAll({Close:()=>mt,Open:()=>ht,Preview:()=>gt,Switch:()=>vt,View:()=>_t});function _objectWithoutPropertiesLoose(r,c){if(r==null)return{};var l={};for(var u in r)if({}.hasOwnProperty.call(r,u)){if(c.indexOf(u)!==-1)continue;l[u]=r[u]}return l}function _objectWithoutProperties(r,c){if(r==null)return{};var l,u,p=_objectWithoutPropertiesLoose(r,c);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(r);for(u=0;u<m.length;u++)l=m[u],c.indexOf(l)===-1&&{}.propertyIsEnumerable.call(r,l)&&(p[l]=r[l])}return p}b(),w(),E(),D(),A();var bt=[`shouldNavigateToDefaultRoute`];function _callSuper$306(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$306()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$306,`_callSuper`);function _isNativeReflectConstruct$306(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$306=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$306,`_isNativeReflectConstruct`);var xt=function(r){function AttachPreview(){return _classCallCheck(this,AttachPreview),_callSuper$306(this,AttachPreview,arguments)}return _inherits(AttachPreview,r),_createClass(AttachPreview,[{key:`validateArgs`,value:function validateArgs(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.selector&&(this.requireArgumentType(`selector`,`string`),elementor.$previewContents.find(r.selector).length===0))throw Error("Invalid argument. The `selector` argument must be existed selector.")}},{key:`apply`,value:function apply(){var r=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=c.shouldNavigateToDefaultRoute,u=l===void 0||l,p=_objectWithoutProperties(c,bt),m=elementor.documents.getCurrent();return $e.data.get(`globals/index`).then(function(){return elementor.trigger(`globals:loaded`),r.attachDocumentToPreview(m,p)}).then(function(){if(elementor.toggleDocumentCssFiles(m,!1),elementor.onEditModeSwitched(),elementor.checkPageStatus(),elementor.trigger(`document:loaded`,m),u)return $e.internal(`panel/open-default`,{refresh:!0})})}},{key:`attachDocumentToPreview`,value:function attachDocumentToPreview(r,c){var l=c.selector,u=l===void 0?`.elementor-`+r.id:l,p=c.shouldScroll,m=p===void 0||p;return new Promise(function(c,l){if(!r)return l(`Can't attach preview, there is no open document.`);if(!r.config.elements)return c();r.$element=elementor.$previewContents.find(u);var p=r.id===elementor.config.initial_document.id;if(!r.$element.length)return p&&elementor.onPreviewElNotFound(),l(`Can't attach preview to document '${r.id}', element '${u}' was not found.`);r.$element.addClass(`elementor-edit-area elementor-edit-mode`),p||elementor.documents.getCurrent().$element.addClass(`elementor-embedded-editor`),elementor.initElements(),elementor.initPreviewView(r),r.container.view=elementor.getPreviewView(),r.container.model.attributes.elements=elementor.elements,m&&elementor.helpers.scrollToView(r.$element),r.$element.addClass(`elementor-edit-area-active`).removeClass(`elementor-editor-preview`),c()})}}])}($e.modules.CommandInternalBase);b(),w(),P();function ownKeys$21(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}__name(ownKeys$21,`ownKeys`);function _objectSpread$21(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$21(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$21(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}__name(_objectSpread$21,`_objectSpread`);var St=function(){function Heartbeat(r){var c=this;_classCallCheck(this,Heartbeat),_defineProperty(this,`modal`,null),_defineProperty(this,`externalChangeModal`,null),_defineProperty(this,`document`,null),_defineProperty(this,`lastSyncedAt`,0),_defineProperty(this,`pendingSyncTime`,!0),_defineProperty(this,`lastStateOfDocumentChange`,!1),_defineProperty(this,`getModal`,function(){return c.modal||(c.modal=c.initModal()),c.modal}),this.document=r,this.lastStateOfDocumentChange=r.editor.isChanged,this.onSend=this.onSend.bind(this),this.onTick=this.onTick.bind(this),this.onRefreshNonce=this.onRefreshNonce.bind(this),this.onDocumentChanged=this.onDocumentChanged.bind(this),this.onDocumentLoaded=this.onDocumentLoaded.bind(this),this.bindEvents(),wp.heartbeat.connectNow()}return _createClass(Heartbeat,[{key:`initModal`,value:function initModal(){return elementorCommon.dialogsManager.createWidget(`confirm`,{headerMessage:(0,r.__)(`Take Over`,`elementor`),strings:{confirm:(0,r.__)(`Take Over`,`elementor`),cancel:(0,r.__)(`Go Back`,`elementor`)},defaultOption:`confirm`,onConfirm:function onConfirm(){wp.heartbeat.enqueue(`elementor_force_post_lock`,!0),wp.heartbeat.connectNow()},onCancel:function onCancel(){parent.history.go(-1)}})}},{key:`showLockMessage`,value:function showLockMessage(c){this.getModal().setMessage((0,r.sprintf)((0,r.__)(`%s has taken over and is currently editing. Do you want to take over this page editing?`,`elementor`),c)).show()}},{key:`onSend`,value:function onSend(r,c){c.elementor_post_lock={post_ID:this.document.id},c.elementor_has_unsaved=this.document.editor.isChanged?this.document.id:null}},{key:`onTick`,value:function onTick(r,c){var l;this.pendingSyncTime&&c.elementor_server_time&&(this.lastSyncedAt=c.elementor_server_time,this.pendingSyncTime=!1),c.locked_user?(this.document.editor.isChanged&&$e.run(`document/save/auto`,{document:this.document}),this.showLockMessage(c.locked_user)):this.getModal().hide();var u=(l=c.elementor_mcp_mutation)==null?void 0:l.mutated_at;u&&u>this.lastSyncedAt&&this.showExternalChangeModal(),elementorCommon.ajax.addRequestConstant(`_nonce`,c.elementorNonce)}},{key:`onRefreshNonce`,value:function onRefreshNonce(r,c){var l=c[`elementor-refresh-nonces`];l&&(l.heartbeatNonce&&elementorCommon.ajax.addRequestConstant(`_nonce`,l.elementorNonce),l.heartbeatNonce&&(window.heartbeatSettings.nonce=l.heartbeatNonce))}},{key:`onDocumentLoaded`,value:function onDocumentLoaded(){this.pendingSyncTime=!0}},{key:`reloadDocument`,value:function reloadDocument(){$e.internal(`document/save/set-is-modified`,{status:!1}),this._doReload()}},{key:`_doReload`,value:function _doReload(){window.location.reload()}},{key:`forceSave`,value:function forceSave(){this.pendingSyncTime=!0,$e.run(`document/save/save`,{document:this.document})}},{key:`showExternalChangeModal`,value:function showExternalChangeModal(){var c=this;if(!this.externalChangeModal){var l=this.document.editor.isChanged,u={headerMessage:(0,r.__)(`Page Updated by AI`,`elementor`),defaultOption:`confirm`,onConfirm:function onConfirm(){return c.reloadDocument()}},p=l?_objectSpread$21(_objectSpread$21({},u),{},{message:(0,r.__)(`This page was changed externally. Save your changes or reload to get the latest version.`,`elementor`),strings:{confirm:(0,r.__)(`Force Save`,`elementor`),cancel:(0,r.__)(`Reload`,`elementor`)},onConfirm:function onConfirm(){return c.forceSave()},onCancel:function onCancel(){return c.reloadDocument()}}):_objectSpread$21(_objectSpread$21({},u),{},{message:(0,r.__)(`This page was changed externally. Reload to get the latest version.`,`elementor`),strings:{confirm:(0,r.__)(`Reload`,`elementor`)}});this.externalChangeModal=elementorCommon.dialogsManager.createWidget(l?`confirm`:`alert`,_objectSpread$21(_objectSpread$21({},p),{},{closeButton:!1,hide:{onOutsideClick:!1,onEscKeyPress:!1,onBackgroundClick:!1}})),this.externalChangeModal.show()}}},{key:`onDocumentChanged`,value:function onDocumentChanged(){var r=this.document.editor.isChanged;r!==this.lastStateOfDocumentChange&&(r&&wp.heartbeat.connectNow(),this.lastStateOfDocumentChange=r)}},{key:`bindEvents`,value:function bindEvents(){jQuery(document).on({"heartbeat-send":this.onSend,"heartbeat-tick":this.onTick,"heartbeat-tick.wp-refresh-nonces":this.onRefreshNonce}),elementor.channels.editor.on(`status:change`,this.onDocumentChanged),elementor.on(`document:loaded`,this.onDocumentLoaded)}},{key:`destroy`,value:function destroy(){jQuery(document).off({"heartbeat-send":this.onSend,"heartbeat-tick":this.onTick,"heartbeat-tick.wp-refresh-nonces":this.onRefreshNonce}),elementor.channels.editor.off(`status:change`,this.onDocumentChanged),elementor.off(`document:loaded`,this.onDocumentLoaded)}}])}();b(),w(),E(),D(),A();function _callSuper$305(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$305()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$305,`_callSuper`);function _isNativeReflectConstruct$305(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$305=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$305,`_isNativeReflectConstruct`);var Ct=function(r){function Load(){return _classCallCheck(this,Load),_callSuper$305(this,Load,arguments)}return _inherits(Load,r),_createClass(Load,[{key:`validateArgs`,value:function validateArgs(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.requireArgument(`config`,r)}},{key:`apply`,value:function apply(r){var c=r.config,l=r.setAsInitial,u=l!==void 0&&l,p=r.shouldScroll,m=p===void 0||p,h=r.shouldNavigateToDefaultRoute,g=h===void 0||h;elementorCommon.config.experimentalFeatures.additional_custom_breakpoints&&(c.settings.controls=elementor.generateResponsiveControls(c.settings.controls)),elementor.config.document=c,elementor.setAjax(),elementor.addWidgetsCache(c.widgets),elementor.templates.init();var v=new pt(c);elementor.documents.add(v),elementor.documents.setCurrent(v),u&&elementor.documents.setInitialById(v.id),elementor.settings.page=new elementor.settings.modules.page(c.settings),v.container=elementor.settings.page.getEditedView().getContainer(),v.container.document=v,elementor.heartbeat=new St(v);var y=elementor.config.document.version&&elementor.helpers.compareVersions(elementor.config.document.version,`2.5.0`,`<`);return!elementor.config.user.introduction.flexbox&&y&&elementor.showFlexBoxAttentionDialog(),elementor.loaded?$e.data.get(`globals/index`).then(function(){return u?(elementor.reloadPreview(),Promise.resolve()):$e.internal(`editor/documents/attach-preview`,{shouldScroll:m,shouldNavigateToDefaultRoute:g,selector:r.selector})}):Promise.resolve(v)}}])}($e.modules.CommandInternalBase);b(),w(),E(),D(),A();function _callSuper$304(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$304()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$304,`_callSuper`);function _isNativeReflectConstruct$304(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$304=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$304,`_isNativeReflectConstruct`);var wt=function(r){function Unload(){return _classCallCheck(this,Unload),_callSuper$304(this,Unload,arguments)}return _inherits(Unload,r),_createClass(Unload,[{key:`validateArgs`,value:function validateArgs(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.requireArgumentConstructor(`document`,pt,r)}},{key:`apply`,value:function apply(r){return new Promise(function(c,l){var u=r.document;u.id!==elementor.config.document.id&&l(),elementor.elements=[],elementor.saver.stopAutoSave(u),elementor.channels.dataEditMode.trigger(`switch`,`preview`),u.$element&&u.$element.removeClass(`elementor-edit-area-active elementor-edit-mode`).addClass(`elementor-editor-preview`),elementorCommon.elements.$body.removeClass(`elementor-editor-${u.config.type}`),elementor.settings.page.destroy(),elementor.heartbeat.destroy(),u.editor.status=`closed`,elementor.config.document={},elementor.documents.unsetCurrent(),elementor.trigger(`document:unloaded`,u),c()})}}])}($e.modules.CommandInternalBase),Tt=__exportAll({AttachPreview:()=>xt,Load:()=>Ct,Unload:()=>wt});function getQueryParam(r){return new URLSearchParams(window.location.search).get(r)}function setQueryParam(r,c){var l=new URL(window.location.href);c===null?l.searchParams.delete(r):l.searchParams.set(r,c),history.replaceState({},``,l)}function removeQueryParam(r){setQueryParam(r,null)}b(),w(),E(),D(),A();function _callSuper$303(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$303()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$303,`_callSuper`);function _isNativeReflectConstruct$303(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$303=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$303,`_isNativeReflectConstruct`);var Et=function(r){function RemoveActiveDocumentQueryParam(){return _classCallCheck(this,RemoveActiveDocumentQueryParam),_callSuper$303(this,RemoveActiveDocumentQueryParam,arguments)}return _inherits(RemoveActiveDocumentQueryParam,r),_createClass(RemoveActiveDocumentQueryParam,[{key:`getCommand`,value:function getCommand(){return`editor/documents/close`}},{key:`getId`,value:function getId(){return`remove-active-document-query-param`}},{key:`apply`,value:function apply(r){var c=parseInt(getQueryParam(`active-document`));c===parseInt(r.id)&&removeQueryParam(`active-document`),r.previous_active_document_id=c}}])}($e.modules.hookUI.After);b(),w(),E(),D(),A();function _callSuper$302(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$302()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$302,`_callSuper`);function _isNativeReflectConstruct$302(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$302=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$302,`_isNativeReflectConstruct`);var Dt=function(r){function SetActiveDocumentQueryParam(){return _classCallCheck(this,SetActiveDocumentQueryParam),_callSuper$302(this,SetActiveDocumentQueryParam,arguments)}return _inherits(SetActiveDocumentQueryParam,r),_createClass(SetActiveDocumentQueryParam,[{key:`getCommand`,value:function getCommand(){return`editor/documents/open`}},{key:`getId`,value:function getId(){return`set-active-document-query-param`}},{key:`getConditions`,value:function getConditions(r){return parseInt(r.id)!==parseInt(elementor.config.initial_document.id)}},{key:`apply`,value:function apply(r){var c=parseInt(r.id);isNaN(c)||setQueryParam(`active-document`,r.id)}}])}($e.modules.hookUI.After);b(),w(),E(),D(),A();function _callSuper$301(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$301()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$301,`_callSuper`);function _isNativeReflectConstruct$301(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$301=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$301,`_isNativeReflectConstruct`);var Ot=function(r){function ClearDynamicTagsCache(){return _classCallCheck(this,ClearDynamicTagsCache),_callSuper$301(this,ClearDynamicTagsCache,arguments)}return _inherits(ClearDynamicTagsCache,r),_createClass(ClearDynamicTagsCache,[{key:`getCommand`,value:function getCommand(){return`editor/documents/open`}},{key:`getId`,value:function getId(){return`clear-dynamic-tags-cache-on-document-open`}},{key:`apply`,value:function apply(){elementor.dynamicTags.cleanCache()}}])}($e.modules.hookUI.Before);N(),b(),w(),E(),D(),A(),P();function _callSuper$300(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$300()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$300,`_callSuper`);function _isNativeReflectConstruct$300(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$300=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$300,`_isNativeReflectConstruct`);var kt=function(r){function SwitchToActiveDocument(){return _classCallCheck(this,SwitchToActiveDocument),_callSuper$300(this,SwitchToActiveDocument,arguments)}return _inherits(SwitchToActiveDocument,r),_createClass(SwitchToActiveDocument,[{key:`getCommand`,value:function getCommand(){return`editor/documents/attach-preview`}},{key:`getId`,value:function getId(){return`switch-to-active-document`}},{key:`getConditions`,value:function getConditions(){return!this.constructor.calledOnce&&elementor.documents.getCurrentId()===elementor.config.initial_document.id}},{key:`apply`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(){var r,c;return B.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(this.constructor.calledOnce=!0,r=parseInt(getQueryParam(`active-document`)),c=r===elementor.documents.getCurrentId(),!(isNaN(r)||c)){l.next=1;break}return l.abrupt(`return`);case 1:return l.prev=1,l.next=2,$e.run(`editor/documents/switch`,{id:r,mode:`autosave`});case 2:l.next=4;break;case 3:l.prev=3,l.catch(1),$e.run(`editor/documents/switch`,{id:elementor.config.initial_document.id,mode:`autosave`}),removeQueryParam(`active-document`);case 4:case`end`:return l.stop()}},_callee,this,[[1,3]])}));function apply(){return r.apply(this,arguments)}return apply}()}])}($e.modules.hookUI.After);_defineProperty(kt,`calledOnce`,!1),b(),w(),E(),D(),A(),P();function _callSuper$299(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$299()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$299,`_callSuper`);function _isNativeReflectConstruct$299(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$299=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$299,`_isNativeReflectConstruct`);var At=function(r){function SwitchToActiveTab(){return _classCallCheck(this,SwitchToActiveTab),_callSuper$299(this,SwitchToActiveTab,arguments)}return _inherits(SwitchToActiveTab,r),_createClass(SwitchToActiveTab,[{key:`getCommand`,value:function getCommand(){return`editor/documents/switch`}},{key:`getId`,value:function getId(){return`switch-to-active-tab`}},{key:`getConditions`,value:function getConditions(){return!this.constructor.calledOnce}},{key:`apply`,value:function apply(){this.constructor.calledOnce=!0;try{var r=getQueryParam(`active-tab`);r&&$e.route(`panel/global/`+r)}catch(r){removeQueryParam(`active-tab`)}}}])}($e.modules.hookUI.After);_defineProperty(At,`calledOnce`,!1),b(),w(),E(),D(),A();function _callSuper$298(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$298()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$298,`_callSuper`);function _isNativeReflectConstruct$298(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$298=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$298,`_isNativeReflectConstruct`);var jt=function(r){function RemoveActiveTabQueryParam(){return _classCallCheck(this,RemoveActiveTabQueryParam),_callSuper$298(this,RemoveActiveTabQueryParam,arguments)}return _inherits(RemoveActiveTabQueryParam,r),_createClass(RemoveActiveTabQueryParam,[{key:`getCommand`,value:function getCommand(){return`editor/documents/close`}},{key:`getId`,value:function getId(){return`remove-active-tab-query-param`}},{key:`apply`,value:function apply(r){var c=getQueryParam(`active-tab`);parseInt(r.previous_active_document_id)===parseInt(r.id)&&c&&removeQueryParam(`active-tab`)}}])}($e.modules.hookUI.After);b(),w(),E(),D(),A();function _callSuper$297(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$297()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$297,`_callSuper`);function _isNativeReflectConstruct$297(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$297=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$297,`_isNativeReflectConstruct`);var Mt=function(r){function RemoveActiveTabQueryParamBack(){return _classCallCheck(this,RemoveActiveTabQueryParamBack),_callSuper$297(this,RemoveActiveTabQueryParamBack,arguments)}return _inherits(RemoveActiveTabQueryParamBack,r),_createClass(RemoveActiveTabQueryParamBack,[{key:`getCommand`,value:function getCommand(){return`panel/global/back`}},{key:`getId`,value:function getId(){return`remove-active-tab-query-param-back`}},{key:`apply`,value:function apply(){getQueryParam(`active-tab`)&&removeQueryParam(`active-tab`)}}])}($e.modules.hookUI.After),Nt=__exportAll({ClearDynamicTagsCache:()=>Ot,RemoveActiveDocumentQueryParam:()=>Et,RemoveActiveTabQueryParam:()=>jt,RemoveActiveTabQueryParamBack:()=>Mt,SetActiveDocumentQueryParam:()=>Dt,SwitchToActiveDocument:()=>kt,SwitchToActiveTab:()=>At});b(),w(),E(),D(),k(),A();function _callSuper$296(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$296()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$296,`_callSuper`);function _isNativeReflectConstruct$296(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$296=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$296,`_isNativeReflectConstruct`);function _superPropGet$34(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}__name(_superPropGet$34,`_superPropGet`);var Pt=function(c){function Component(){return _classCallCheck(this,Component),_callSuper$296(this,Component,arguments)}return _inherits(Component,c),_createClass(Component,[{key:`__construct`,value:function __construct(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_superPropGet$34(Component,`__construct`,this,3)([r]),this.documents={},this.currentDocument=null,this.saveInitialDocumentToCache()}},{key:`getNamespace`,value:function getNamespace(){return`editor/documents`}},{key:`defaultCommands`,value:function defaultCommands(){return this.importCommands(yt)}},{key:`defaultHooks`,value:function defaultHooks(){return this.importHooks(Nt)}},{key:`defaultCommandsInternal`,value:function defaultCommandsInternal(){return this.importCommands(Tt)}},{key:`add`,value:function add(r){var c=r.id;return this.documents[c]=r,r}},{key:`addDocumentByConfig`,value:function addDocumentByConfig(r){return this.add(new pt(r))}},{key:`get`,value:function get(r){return this.documents[r]!==void 0&&this.documents[r]}},{key:`getCurrent`,value:function getCurrent(){return this.currentDocument}},{key:`getCurrentId`,value:function getCurrentId(){return this.currentDocument.id}},{key:`getInitialId`,value:function getInitialId(){return elementor.config.initial_document.id}},{key:`setInitialById`,value:function setInitialById(r){var c=this.get(r);c&&(elementor.config.initial_document=c.config,elementorCommon.ajax.addRequestConstant(`initial_document_id`,c.id))}},{key:`setCurrent`,value:function setCurrent(r){if(this.documents[r.id]===void 0)throw Error(`The document with id: '${r.id}' does not exist/loaded`);this.currentDocument&&(this.currentDocument.editor.status=`closed`),this.currentDocument=this.documents[r.id],this.currentDocument.editor.status=`open`,elementorCommon.ajax.addRequestConstant(`editor_post_id`,r.id)}},{key:`isCurrent`,value:function isCurrent(r){return parseInt(r)===this.currentDocument.id}},{key:`unsetCurrent`,value:function unsetCurrent(){this.currentDocument=null,elementorCommon.ajax.addRequestConstant(`editor_post_id`,null)}},{key:`request`,value:function request(r){return elementorCommon.ajax.load(this.getRequestArgs(r),!0)}},{key:`invalidateCache`,value:function invalidateCache(){var r=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(c){elementorCommon.ajax.invalidateCache(this.getRequestArgs(c));return}Object.keys(this.documents).forEach(function(c){elementorCommon.ajax.invalidateCache(r.getRequestArgs(c))})}},{key:`getRequestArgs`,value:function getRequestArgs(c){return c=parseInt(c),{action:`get_document_config`,unique_id:`document-${c}`,data:{id:c},success:function success(r){return r},error:function error(c){var l;_.isString(c)?l=c:c.statusText?(l=elementor.createAjaxErrorMessage(c),c.readyState===0&&(l+=` `+(0,r.__)(`Cannot load editor`,`elementor`))):c[0]&&c[0].code&&(l=(0,r.__)(`Server Error`,`elementor`)+` `+c[0].code),alert(l)}}}},{key:`saveInitialDocumentToCache`,value:function saveInitialDocumentToCache(){var r=elementor.config.initial_document;elementorCommon.ajax.addRequestCache(this.getRequestArgs(r.id),r)}}])}(U),Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt=__esmMin((()=>{Ft=function matchUserAgent(r){return It.indexOf(r)>=0},It=navigator.userAgent,Lt=!!window.opr&&!!opr.addons||!!window.opera||Ft(` OPR/`),Rt=Ft(`Firefox`),zt=/^((?!chrome|android).)*safari/i.test(It)||/constructor/i.test(window.HTMLElement)||function(r){return r.toString()===`[object SafariRemoteNotification]`}(!window.safari||typeof safari<`u`&&safari.pushNotification),Bt=/Trident|MSIE/.test(It)&&!!document.documentMode,Vt=!Bt&&!!window.StyleMedia||Ft(`Edg`),Ht=!!window.chrome&&Ft(`Chrome`)&&!(Vt||Lt),Ut=Ft(`Chrome`)&&!!window.CSS,Wt=Ft(`AppleWebKit`)&&!Ut,Gt={isTouchDevice:`ontouchstart`in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,appleWebkit:Wt,blink:Ut,chrome:Ht,edge:Vt,firefox:Rt,ie:Bt,mac:Ft(`Macintosh`),opera:Lt,safari:zt,webkit:Ft(`AppleWebKit`)}})),qt,Jt=__esmMin((()=>{b(),w(),qt=function(){function ElementBase(){_classCallCheck(this,ElementBase)}return _createClass(ElementBase,[{key:`getType`,value:function getType(){elementorModules.ForceMethodImplementation()}},{key:`getView`,value:function getView(){elementorModules.ForceMethodImplementation()}},{key:`getEmptyView`,value:function getEmptyView(){elementorModules.ForceMethodImplementation()}},{key:`getModel`,value:function getModel(){elementorModules.ForceMethodImplementation()}}])}()}));function _callSuper$295(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$295()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$295(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$295=function _isNativeReflectConstruct(){return!!r})()}var Yt,Xt=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$295,`_callSuper`),__name(_isNativeReflectConstruct$295,`_isNativeReflectConstruct`),Yt=function(r){function BaseElementModel(){return _classCallCheck(this,BaseElementModel),_callSuper$295(this,BaseElementModel,arguments)}return _inherits(BaseElementModel,r),_createClass(BaseElementModel,[{key:`isValidChild`,value:function isValidChild(r){elementorModules.ForceMethodImplementation({attributes:this.attributes})}}])}(Backbone.Model)})),Zt=__commonJSMin(((r,c)=>{c.exports=elementorModules.editor.elements.models.BaseSettings.extend({defaults:{_column_size:100}})}));function _callSuper$294(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$294()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$294(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$294=function _isNativeReflectConstruct(){return!!r})()}var Qt,$t=__esmMin((()=>{w(),b(),E(),D(),A(),tt(),__name(_callSuper$294,`_callSuper`),__name(_isNativeReflectConstruct$294,`_isNativeReflectConstruct`),Qt=function(r){function ElementTypeNotFound(r){return _classCallCheck(this,ElementTypeNotFound),_callSuper$294(this,ElementTypeNotFound,[`Element type not found: '${r}'`])}return _inherits(ElementTypeNotFound,r),_createClass(ElementTypeNotFound)}(_wrapNativeSuper(Error))})),en=__commonJSMin(((r,c)=>{$t();var l=Backbone.Collection.extend({add:function add(r,c,l){if((!c||!c.silent)&&!l)throw`Call Error: Adding model to element collection is allowed only by the dedicated addChildModel() method.`;return Backbone.Collection.prototype.add.call(this,r,c)},model:function model(r,c){var l=Backbone.Model;if(r.elType){var u=r.widgetType||r.elType,p=elementor.elementsManager.getElementTypeClass(u);if(!p)throw new Qt(u);l=elementor.hooks.applyFilters(`element/model`,p.getModel(),r)}return new l(r,c)},clone:function clone(){var r=Backbone.Collection.prototype.clone.apply(this,arguments),c=new l;return r.forEach(function(r){c.add(r.clone(),null,!0)}),c}});l.prototype.sync=l.prototype.fetch=l.prototype.save=_.noop,c.exports=l})),tn=__commonJSMin(((r,c)=>{x(),P(),Xt();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var l=Zt(),u=Yt.extend({defaults:{id:``,elType:``,isInner:!1,isLocked:!1,settings:{},defaultEditSettings:{defaultEditRoute:`content`},interactions:{}},remoteRender:!1,_htmlCache:null,_jqueryXhr:null,renderOnLeave:!1,initialize:function initialize(r){var c=this.get(`elType`),l=this.get(`elements`);if(l!==void 0){var u=en();this.set(`elements`,new u(l))}c===`widget`&&(this.remoteRender=!0,this.setHtmlCache(r.htmlCache||``)),delete r.htmlCache,this.renderRemoteServer=_.throttle(this.renderRemoteServer,1e3),this.initSettings(),this.initEditSettings(),this.on({destroy:this.onDestroy,"editor:close":this.onCloseEditor})},initSettings:function initSettings(){var r=this.get(`elType`),c=this.get(`settings`),u={column:l}[r]||elementorModules.editor.elements.models.BaseSettings;jQuery.isEmptyObject(c)&&(c=structuredClone(c)),r===`widget`&&(c.widgetType=this.get(`widgetType`)),c=_objectSpread(_objectSpread({},c),{},{elType:r}),c.isInner=this.get(`isInner`);var p=this.get(`_title`);p&&(c._title=p),c=new u(c,{controls:elementor.getElementControls(this)}),this.set(`settings`,c),elementorFrontend.config.elements.data[this.cid]=c},initEditSettings:function initEditSettings(){var r=new Backbone.Model(this.get(`defaultEditSettings`));this.set(`editSettings`,r),elementorFrontend.config.elements.editSettings[this.cid]=r},setSetting:function setSetting(r,c){var l=this.get(`settings`);if(_typeof(r)!==`object`){var u=r.split(`.`),p=u.length===3;r=u[0],p&&(l=l.get(r).models[u[1]],r=u[2])}l.setExternalChange(r,c)},getSetting:function getSetting(r){var c=r.split(`.`),l=c.length===3,u=this.get(`settings`);r=c[0];var p=u.get(r);return p===void 0?``:(l&&(p=p.models[c[1]].get(c[2])),p)},setHtmlCache:function setHtmlCache(r){this._htmlCache=r},getHtmlCache:function getHtmlCache(){return this._htmlCache},getDefaultTitle:function getDefaultTitle(){return elementor.getElementData(this).title},getTitle:function getTitle(){var r,c=this.get(`editor_settings`),l=(c==null?void 0:c.title)||this.getSetting(`_title`)||this.getSetting(`presetTitle`),u=this.get(`custom`);return!l&&(r=u==null?void 0:u.isPreset)!=null&&r?this.get(`title`)||l:(l||(l=this.getDefaultTitle()),l)},getVisibility:function getVisibility(){if(elementor.helpers.isAtomicWidget(this)){var r;return!!((r=this.get(`editor_settings`))!=null&&r.is_hidden)}return!!this.get(`hidden`)},setVisibility:function setVisibility(){var r=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(elementor.helpers.isAtomicWidget(this)){var c=this.get(`editor_settings`)||{};this.set(`editor_settings`,_objectSpread(_objectSpread({},c),{},{is_hidden:r}))}else this.set(`hidden`,r)},toggleVisibility:function toggleVisibility(){var r=this.getVisibility();this.setVisibility(!r)},getIcon:function getIcon(){var r,c=elementor.getElementData(this).icon,l=this.get(`custom`);if((r=l==null?void 0:l.isPreset)!=null&&r)return this.attributes.custom.preset_settings.presetIcon||c;var u=this.getSetting(`presetIcon`);return typeof u==`string`&&u.trim()!==``?u:c},createRemoteRenderRequest:function createRemoteRenderRequest(){var r=this.toJSON();return elementorCommon.ajax.addRequest(`render_widget`,{unique_id:this.cid,data:{data:r},success:this.onRemoteGetHtml.bind(this)},!0).jqXhr},renderRemoteServer:function renderRemoteServer(){this.remoteRender&&(this.renderOnLeave=!1,this.trigger(`before:remote:render`),this.isRemoteRequestActive()&&this._jqueryXhr.abort(),this._jqueryXhr=this.createRemoteRenderRequest())},isRemoteRequestActive:function isRemoteRequestActive(){return this._jqueryXhr&&this._jqueryXhr.readyState!==4},onRemoteGetHtml:function onRemoteGetHtml(r){this.setHtmlCache(r.render),this.trigger(`remote:render`)},clone:function clone(){var r=new this.constructor(elementorCommon.helpers.cloneObject(this.attributes));r.set(`id`,elementorCommon.helpers.getUniqueId()),r.setHtmlCache(this.getHtmlCache());var c=this.get(`elements`);return _.isEmpty(c)||r.set(`elements`,c.clone()),r},toJSON:function toJSON(r){r=r||{};var c=Backbone.Model.prototype.toJSON.call(this);return _.each(c,function(l,u){l&&l.toJSON&&(c[u]=l.toJSON(r))}),r.copyHtmlCache?c.htmlCache=this.getHtmlCache():delete c.htmlCache,r.remove&&r.remove.forEach(function(r){return delete c[r]}),c},onCloseEditor:function onCloseEditor(){this.renderOnLeave&&this.renderRemoteServer()},onDestroy:function onDestroy(){var r=this.get(`settings`),c=this.get(`elements`);c!==void 0&&_.each(_.clone(c.models),function(r){r.destroy()}),r.destroy()}});u.prototype.sync=u.prototype.fetch=u.prototype.save=_.noop,c.exports=u}));Kt(),Jt(),b(),w(),E(),D(),A();var nn=__toESM(tn());function _callSuper$293(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$293()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$293,`_callSuper`);function _isNativeReflectConstruct$293(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$293=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$293,`_isNativeReflectConstruct`);var rn=function(r){function Column(){return _classCallCheck(this,Column),_callSuper$293(this,Column,arguments)}return _inherits(Column,r),_createClass(Column,[{key:`isValidChild`,value:function isValidChild(r){var c=r.get(`elType`);return c===`section`&&r.get(`isInner`)?!0:[`widget`,`container`].includes(c)}}])}(nn.default);function buildModel(r,c,l){var u={id:elementorCommon.helpers.getUniqueId(),elType:r,elements:[]},p=c&&Object.keys(c).length>0,m=l&&Object.keys(l).length>0;if(!p&&!m)return u;var h=`e-${elementorCommon.helpers.getUniqueId()}`,g=[{meta:{breakpoint:`desktop`,state:null},props:c==null?{}:c,custom_css:null}];return m&&g.push({meta:{breakpoint:`mobile`,state:null},props:l,custom_css:null}),u.styles=_defineProperty({},h,{id:h,label:`local`,type:`class`,variants:g}),u.settings={classes:{$$type:`classes`,value:[h]}},u}function insertElementFromModel(r,c,l){var u,p=(u=elementorModules)==null||(u=u.editor)==null?void 0:u.Container,m=function getDocumentUtils(){var r,c;return(r=$e)==null||(r=r.components)==null||(c=r.get)==null||(c=c.call(r,`document`))==null?void 0:c.utils},h=function getContainerById(r){var c,l,u;return(c=(l=m())==null||(u=l.findContainerById)==null?void 0:u.call(l,r))==null?null:c},g=function isContainerInstance(r){var c,l;return!p||!r?!1:r instanceof p||((c=r.constructor)==null?void 0:c.name)===((l=p.prototype)==null?void 0:l[Symbol.toStringTag])},v=function resolveContainer(r){var c;if(!p||g(r))return r;var l=r==null||(c=r.lookup)==null?void 0:c.call(r);if(g(l))return l;var u=r!=null&&r.id?h(r.id):null;return g(u)?u:null},y=v(r);if(!y&&p&&r!=null&&r.id){var b,x;return(b=m())==null||(x=b.addModelToParent)==null||x.call(b,r.id,c,l),h(c.id)||{id:c.id,lookup:function lookup(){return h(c.id)}}}var S=$e.run(`document/elements/create`,{container:y==null?r:y,model:c,options:l}),C=v(S);return C||!p?C==null?S:C:{id:c.id,lookup:function lookup(){return h(c.id)}}}function runWithHistory(r,c){var l=$e.internal(`document/history/start-log`,{type:`add`,title:r}),u;try{u=c(),$e.internal(`document/history/end-log`,{id:l})}catch(r){$e.internal(`document/history/delete-log`,{id:l})}return u}var an=__esmMin((()=>{P()}));function ownKeys$20(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$20(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$20(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$20(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}function getPresetDefinition(r){return bn[r]?bn[r]:yn(r.split(`-`))}function buildTreeModel(r){var c=r.parent,l=r.parentMobile,u=r.children,p=u===void 0?[]:u,m=buildModel(on,c,l);return m.elements=p.map(function(r){return buildTreeModel(r)}),m}function buildNode(r,c,l,u){var p,m,h=r.parent,g=r.parentMobile,v=r.children,y=u&&!1===l.createWrapper?(p=c==null||(m=c.lookup)==null?void 0:m.call(c))==null?c:p:insertElementFromModel(c,buildModel(on,h,g),u?l:{edit:!1});return v.forEach(function(r){var c;if((c=r.children)!=null&&c.length){insertElementFromModel(y,buildTreeModel(r),{edit:!1});return}buildNode(r,y,l,!1)}),y}function createV4FlexboxFromPreset(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:elementor.getPreviewContainer(),u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return runWithHistory((0,r.__)(`Container`,`elementor`),function(){return buildNode(getPresetDefinition(c),l,u,!0)})}var on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn=__esmMin((()=>{P(),an(),__name(ownKeys$20,`ownKeys`),__name(_objectSpread$20,`_objectSpread`),on=`e-flexbox`,sn=`row`,cn=`column`,ln={33:`33.3333`,66:`66.6666`},un=function sizeProp(r){return{$$type:`size`,value:{size:r,unit:arguments.length>1&&arguments[1]!==void 0?arguments[1]:`px`}}},dn=function stringProp(r){return{$$type:`string`,value:r}},fn=function widthPercent(r){var c;return{width:un(Number((c=ln[r])==null?r:c),`%`)}},pn={width:un(100,`%`)},mn={"flex-direction":dn(sn)},hn={"flex-direction":dn(cn)},gn=_objectSpread$20(_objectSpread$20({},mn),{},{"flex-wrap":dn(`wrap`)}),_n=function widthChild(r){return{parent:_objectSpread$20(_objectSpread$20({},hn),fn(r)),parentMobile:pn,children:[]}},vn=function bareChild(){return{parent:hn,children:[]}},yn=function rowOfSizes(r){return{parent:r.reduce(function(r,c){return r+Number(c)},0)>100?gn:mn,children:r.map(_n)}},bn={c100:{parent:hn,children:[]},r100:{parent:mn,children:[]},"c100-c50-50":{parent:mn,children:[_n(`50`),{parent:_objectSpread$20(_objectSpread$20(_objectSpread$20({},hn),fn(`50`)),{},{padding:un(0,`px`)}),parentMobile:pn,children:[vn(),vn()]}]}}}));function getGridPresetProps(r){var c=elementor.presetsFactory.getParsedGridStructure(r);return{desktop:{"grid-template-columns":Cn(c.columns),"grid-template-rows":Cn(c.rows)},mobile:{"grid-template-columns":Cn(1),"grid-template-rows":Cn(c.rows)}}}function createV4GridFromPreset(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:elementor.getPreviewContainer(),u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return runWithHistory((0,r.__)(`Grid`,`elementor`),function(){var r=getGridPresetProps(c),p=r.desktop,m=r.mobile;return insertElementFromModel(l,buildModel(Sn,p,m),u)})}var Sn,Cn,wn=__esmMin((()=>{an(),Sn=`e-grid`,Cn=function gridTrackSizeProp(r){return{$$type:`grid-track-size`,value:{size:Number(r),unit:`fr`}}}}));function ownKeys$19(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$19(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$19(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$19(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var Tn,G,En=__esmMin((()=>{b(),w(),P(),xn(),wn(),__name(ownKeys$19,`ownKeys`),__name(_objectSpread$19,`_objectSpread`),G=function(){function ContainerHelper(){_classCallCheck(this,ContainerHelper)}return _createClass(ContainerHelper,null,[{key:`isV4OptIn`,value:function isV4OptIn(){var r;return!!((r=elementorCommon)!=null&&(r=r.config)!=null&&(r=r.experimentalFeatures)!=null&&r.e_opt_in_v4)}},{key:`createContainers`,value:function createContainers(r,c){for(var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=[],m=0;m<r;m++)p.push(this.createContainer(c,l,u));return p}},{key:`createContainer`,value:function createContainer(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return $e.run(`document/elements/create`,{container:c,model:_objectSpread$19({elType:`container`,settings:r},u),options:l})}},{key:`setContainerSettings`,value:function setContainerSettings(r,c){$e.run(`document/elements/settings`,{container:c,settings:r,options:{external:!0}})}},{key:`createContainerFromSizes`,value:function createContainerFromSizes(r,c){var l=this,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=u.createWrapper,m=p===void 0||p,h={33:`33.3333`,66:`66.6666`},g=r.reduce(function(r,c){return r+parseInt(c)},0)>100,v=_objectSpread$19(_objectSpread$19({flex_direction:this.DIRECTION_ROW},g?{flex_wrap:`wrap`}:{}),{},{flex_gap:{unit:`px`,size:0,column:`0`,row:`0`}}),y;return m?y=this.createContainer(v,c,u):($e.run(`document/elements/settings`,{container:c,settings:v}),y=c),r.forEach(function(r){r=h[r]||r,l.createContainer({flex_direction:l.DIRECTION_COLUMN,content_width:`full`,width:{unit:`%`,size:r}},y,{edit:!1})}),y}},{key:`createContainerFromGridPreset`,value:function createContainerFromGridPreset(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:elementor.getPreviewContainer(),u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(ContainerHelper.isV4OptIn())return createV4GridFromPreset(c,l,u);var m=elementor.presetsFactory.getParsedGridStructure(c);return ContainerHelper.createContainer({container_type:ContainerHelper.CONTAINER_TYPE_GRID,grid_columns_grid:{unit:`fr`,size:m.columns},grid_rows_grid:{unit:`fr`,size:m.rows},grid_rows_grid_mobile:{unit:`fr`,size:m.rows}},l,u,_objectSpread$19({title:(0,r.__)(`Grid`,`elementor`),custom:{isPreset:!0,preset_settings:{presetIcon:`eicon-container-grid`}}},p))}},{key:`createContainerFromPreset`,value:function createContainerFromPreset(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:elementor.getPreviewContainer(),u=arguments.length>2?arguments[2]:void 0;if(ContainerHelper.isV4OptIn())return createV4FlexboxFromPreset(c,l,u);var p=$e.internal(`document/history/start-log`,{type:`add`,title:(0,r.__)(`Container`,`elementor`)}),m=u.createWrapper,h=m===void 0||m,g,v;try{switch(c){case`c100`:g=ContainerHelper.createContainer({flex_direction:ContainerHelper.DIRECTION_COLUMN},l,u);break;case`r100`:g=ContainerHelper.createContainer({flex_direction:ContainerHelper.DIRECTION_ROW},l,u);break;case`c100-c50-50`:v={flex_direction:ContainerHelper.DIRECTION_ROW,flex_gap:{unit:`px`,size:0,column:`0`,row:`0`}},h?g=ContainerHelper.createContainer(v,l,u):($e.run(`document/elements/settings`,{container:l,settings:v}),g=l),v={content_width:`full`,width:{unit:`%`,size:`50`}},ContainerHelper.createContainer(v,g,{edit:!1});var y=ContainerHelper.createContainer(_objectSpread$19(_objectSpread$19({},v),{},{padding:{unit:`px`,top:0,right:0,bottom:0,left:0,isLinked:!0},flex_gap:{unit:`px`,size:0,column:`0`,row:`0`}}),g,{edit:!1});ContainerHelper.createContainers(2,{},y,{edit:!1});break;default:var b=c.split(`-`);g=ContainerHelper.createContainerFromSizes(b,l,u)}$e.internal(`document/history/end-log`,{id:p})}catch(r){$e.internal(`document/history/delete-log`,{id:p})}return g}},{key:`openEditMode`,value:function openEditMode(r){$e.run(`document/elements/select`,{container:r})}},{key:`createContainerFromModel`,value:function createContainerFromModel(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return $e.run(`document/elements/create`,_objectSpread$19({model:r,container:c},l))}}])}(),Tn=G,_defineProperty(G,`DIRECTION_ROW`,`row`),_defineProperty(G,`DIRECTION_COLUMN`,`column`),_defineProperty(G,`DIRECTION_ROW_REVERSED`,`row-reverse`),_defineProperty(G,`DIRECTION_COLUMN_REVERSED`,`column-reverse`),_defineProperty(G,`DIRECTION_DEFAULT`,Tn.DIRECTION_COLUMN),_defineProperty(G,`CONTAINER_TYPE_GRID`,`grid`),_defineProperty(G,`V4_DEFAULT_CONTAINER_TYPE`,`e-flexbox`)}));function ownKeys$18(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$18(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$18(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$18(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var Dn,On,kn=__esmMin((()=>{P(),b(),w(),__name(ownKeys$18,`ownKeys`),__name(_objectSpread$18,`_objectSpread`),Dn=function(){function EditorOneEventManager(){_classCallCheck(this,EditorOneEventManager)}return _createClass(EditorOneEventManager,null,[{key:`getEventsManager`,value:function getEventsManager(){var r;return(r=elementorCommon)==null?void 0:r.eventsManager}},{key:`getConfig`,value:function getConfig(){var r;return(r=this.getEventsManager())==null?void 0:r.config}},{key:`canSendEvents`,value:function canSendEvents(){var r;return((r=elementorCommon)==null||(r=r.config)==null||(r=r.editor_events)==null?void 0:r.can_send_events)||!1}},{key:`isEventsManagerAvailable`,value:function isEventsManagerAvailable(){var r=this.getEventsManager();return r&&typeof r.dispatchEvent==`function`}},{key:`dispatchEvent`,value:function dispatchEvent(r,c){try{return!this.isEventsManagerAvailable()||!this.canSendEvents()?!1:(this.getEventsManager().dispatchEvent(r,c),!0)}catch(r){return!1}}},{key:`toLowerSnake`,value:function toLowerSnake(r){return!r||typeof r!=`string`?r:r.replace(/\s+/g,`_`).toLowerCase()}},{key:`decodeHtmlEntities`,value:function decodeHtmlEntities(r){return!r||typeof r!=`string`?r:new DOMParser().parseFromString(r,`text/html`).body.textContent||r}},{key:`isInEditorContext`,value:function isInEditorContext(){var r;return window.elementor!==void 0&&!!((r=window.elementor)!=null&&r.documents)}},{key:`getFinderContext`,value:function getFinderContext(){var r,c,l,u,p=this.getConfig(),m=this.isInEditorContext();return{windowName:m?p==null||(r=p.appTypes)==null?void 0:r.editor:p==null||(c=p.appTypes)==null?void 0:c.wpAdmin,targetLocation:this.toLowerSnake(m?p==null||(l=p.locations)==null?void 0:l.topBar:p==null||(u=p.locations)==null?void 0:u.sidebar)}}},{key:`createBasePayload`,value:function createBasePayload(){var r,c,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=this.getConfig();return _objectSpread$18({window_name:(r=u==null||(c=u.appTypes)==null?void 0:c.editor)==null?`editor`:r},l)}},{key:`sendTopBarPublishDropdown`,value:function sendTopBarPublishDropdown(r){var c,l,u,p,m,h,g,v=this.getConfig();return this.dispatchEvent(v==null||(c=v.names)==null||(c=c.editorOne)==null?void 0:c.topBarPublishDropdown,this.createBasePayload({interaction_type:this.toLowerSnake(v==null||(l=v.triggers)==null?void 0:l.click),target_type:v==null||(u=v.targetTypes)==null?void 0:u.dropdownItem,target_name:r,interaction_result:v==null||(p=v.interactionResults)==null?void 0:p.actionSelected,target_location:this.toLowerSnake(v==null||(m=v.locations)==null?void 0:m.topBar),location_l1:this.toLowerSnake(v==null||(h=v.secondaryLocations)==null?void 0:h.publishDropdown),location_l2:v==null||(g=v.targetTypes)==null?void 0:g.dropdownItem,interaction_description:`User selected an action from the publish dropdown`}))}},{key:`sendTopBarPageList`,value:function sendTopBarPageList(r){var c,l,u,p,m,h,g,v,y=arguments.length>1&&arguments[1]!==void 0&&arguments[1],b=this.getConfig();return this.dispatchEvent(b==null||(c=b.names)==null||(c=c.editorOne)==null?void 0:c.topBarPageList,this.createBasePayload({interaction_type:this.toLowerSnake(b==null||(l=b.triggers)==null?void 0:l.click),target_type:b==null||(u=b.targetTypes)==null?void 0:u.dropdownItem,target_name:r,interaction_result:y?b==null||(p=b.interactionResults)==null?void 0:p.create:b==null||(m=b.interactionResults)==null?void 0:m.navigate,target_location:this.toLowerSnake(b==null||(h=b.locations)==null?void 0:h.topBar),location_l1:this.toLowerSnake(b==null||(g=b.secondaryLocations)==null?void 0:g.pageListDropdown),location_l2:b==null||(v=b.targetTypes)==null?void 0:v.dropdownItem,interaction_description:`User selected an action from the page list dropdown`}))}},{key:`sendSiteSettingsSession`,value:function sendSiteSettingsSession(r){var c,l,u,p,m,h=r.targetType,g=r.visitedItems,v=g===void 0?[]:g,y=r.savedItems,b=y===void 0?[]:y,x=r.state,S=this.getConfig();return this.dispatchEvent(S==null||(c=S.names)==null||(c=c.editorOne)==null?void 0:c.siteSettingsSession,this.createBasePayload({interaction_type:this.toLowerSnake(S==null||(l=S.triggers)==null?void 0:l.click),target_type:h,target_name:`site_settings`,interaction_result:S==null||(u=S.interactionResults)==null?void 0:u.sessionEnd,target_location:this.toLowerSnake(S==null||(p=S.locations)==null?void 0:p.leftPanel),location_l1:this.toLowerSnake(S==null||(m=S.secondaryLocations)==null?void 0:m.siteSettings),interaction_description:`Records areas visited as part of the site setting session`,metadata:{visited_items:v,saved_items:b},state:x}))}},{key:`sendELibraryNav`,value:function sendELibraryNav(r){var c,l,u,p,m,h,g=this.getConfig();return this.dispatchEvent(g==null||(c=g.names)==null||(c=c.editorOne)==null?void 0:c.eLibraryNav,this.createBasePayload({interaction_type:this.toLowerSnake(g==null||(l=g.triggers)==null?void 0:l.tabSelect),target_type:g==null||(u=g.targetTypes)==null?void 0:u.tab,target_name:this.toLowerSnake(r),interaction_result:g==null||(p=g.interactionResults)==null?void 0:p.tabChanged,target_location:this.toLowerSnake(g==null||(m=g.locations)==null?void 0:m.elementorLibrary),location_l1:this.toLowerSnake(g==null||(h=g.secondaryLocations)==null?void 0:h.libraryTabs),interaction_description:`User navigates within elementor library`}))}},{key:`sendELibraryInsert`,value:function sendELibraryInsert(r){var c,l,u,p,m,h,g=r.assetId,v=r.assetName,y=r.libraryType,b=r.proRequired,x=b!==void 0&&b,S=this.getConfig(),C=this.createBasePayload({interaction_type:this.toLowerSnake(S==null||(c=S.triggers)==null?void 0:c.insert),target_type:S==null||(l=S.targetTypes)==null?void 0:l.button,target_name:String(g),interaction_result:S==null||(u=S.interactionResults)==null?void 0:u.assetInserted,target_location:this.toLowerSnake(S==null||(p=S.locations)==null?void 0:p.elementorLibrary),location_l1:this.toLowerSnake(y),location_l2:this.toLowerSnake(S==null||(m=S.secondaryLocations)==null?void 0:m.assetCard),interaction_description:`User inserts block/pages from elementor library`,metadata:{template_id:String(g),template_name:this.decodeHtmlEntities(v)||``}});return x&&(C.state=`pro_plan_required`),this.dispatchEvent(S==null||(h=S.names)==null||(h=h.editorOne)==null?void 0:h.eLibraryInsert,C)}},{key:`sendELibraryFavorite`,value:function sendELibraryFavorite(r){var c,l,u,p,m,h,g=r.assetId,v=r.assetName,y=r.libraryType,b=r.isFavorite,x=r.proRequired,S=x!==void 0&&x,C=this.getConfig(),w=this.createBasePayload({interaction_type:this.toLowerSnake(C==null||(c=C.triggers)==null?void 0:c.click),target_type:C==null||(l=C.targetTypes)==null?void 0:l.toggle,target_name:String(g),interaction_result:C==null||(u=C.interactionResults)==null?void 0:u.assetFavorite,target_value:!!b,target_location:this.toLowerSnake(C==null||(p=C.locations)==null?void 0:p.elementorLibrary),location_l1:this.toLowerSnake(y),location_l2:this.toLowerSnake(C==null||(m=C.secondaryLocations)==null?void 0:m.assetCard),interaction_description:`User favorite block/pages from elementor library`,metadata:{template_id:String(g),template_name:this.decodeHtmlEntities(v)||``}});return S&&(w.state=`pro_plan_required`),this.dispatchEvent(C==null||(h=C.names)==null||(h=h.editorOne)==null?void 0:h.eLibraryFavorite,w)}},{key:`sendELibraryGenerateAi`,value:function sendELibraryGenerateAi(r){var c,l,u,p,m,h,g=r.assetId,v=r.assetName,y=r.libraryType,b=this.getConfig();return this.dispatchEvent(b==null||(c=b.names)==null||(c=c.editorOne)==null?void 0:c.eLibraryGenerateAi,this.createBasePayload({interaction_type:this.toLowerSnake(b==null||(l=b.triggers)==null?void 0:l.click),target_type:b==null||(u=b.targetTypes)==null?void 0:u.button,target_name:String(g),interaction_result:b==null||(p=b.interactionResults)==null?void 0:p.aiGenerate,target_location:this.toLowerSnake(b==null||(m=b.locations)==null?void 0:m.elementorLibrary),location_l1:this.toLowerSnake(y),location_l2:this.toLowerSnake(b==null||(h=b.secondaryLocations)==null?void 0:h.assetCard),interaction_description:`User generated block/page based on a library asset`,metadata:{template_id:String(g),template_name:this.decodeHtmlEntities(v)||``}}))}},{key:`sendFinderSearchInput`,value:function sendFinderSearchInput(r){var c,l,u,p,m,h,g=r.resultsCount,v=r.searchTerm,y=v===void 0?null:v,b=this.getConfig(),x=g>0,S=this.getFinderContext(),C=this.createBasePayload({window_name:S.windowName,interaction_type:this.toLowerSnake(b==null||(c=b.triggers)==null?void 0:c.typing),target_type:b==null||(l=b.targetTypes)==null?void 0:l.searchInput,target_name:`finder`,interaction_result:x?b==null||(u=b.interactionResults)==null?void 0:u.resultsUpdated:b==null||(p=b.interactionResults)==null?void 0:p.noResults,target_location:S.targetLocation,location_l1:this.toLowerSnake(b==null||(m=b.secondaryLocations)==null?void 0:m.finder),interaction_description:`Finder search input, follows debounce behavior`,metadata:{results_count:g}});return!x&&y&&(C.metadata.search_term=y),this.dispatchEvent(b==null||(h=b.names)==null||(h=h.editorOne)==null?void 0:h.finderSearchInput,C)}},{key:`sendFinderResultSelect`,value:function sendFinderResultSelect(r){var c,l,u,p,m,h,g=this.getConfig(),v=this.getFinderContext();return this.dispatchEvent(g==null||(c=g.names)==null||(c=c.editorOne)==null?void 0:c.finderResultSelect,this.createBasePayload({window_name:v.windowName,interaction_type:this.toLowerSnake(g==null||(l=g.triggers)==null?void 0:l.click),target_type:g==null||(u=g.targetTypes)==null?void 0:u.searchResult,target_name:r,interaction_result:g==null||(p=g.interactionResults)==null?void 0:p.selected,target_location:v.targetLocation,location_l1:this.toLowerSnake(g==null||(m=g.secondaryLocations)==null?void 0:m.finder),location_l2:this.toLowerSnake(g==null||(h=g.secondaryLocations)==null?void 0:h.finderResults),interaction_description:`Finder search results was selected`}))}},{key:`sendCanvasEmptyBoxAction`,value:function sendCanvasEmptyBoxAction(r){var c,l,u,p,m,h,g=r.targetName,v=r.metadata,y=v===void 0?{}:v,b=r.containerCreated,x=b===void 0?null:b,S=this.getConfig(),C=this.createBasePayload({interaction_type:this.toLowerSnake(S==null||(c=S.triggers)==null?void 0:c.click),target_type:S==null||(l=S.targetTypes)==null?void 0:l.buttons,target_name:g,interaction_result:S==null||(u=S.interactionResults)==null?void 0:u.selected,target_location:this.toLowerSnake(S==null||(p=S.locations)==null?void 0:p.canvas),location_l1:this.toLowerSnake(S==null||(m=S.secondaryLocations)==null?void 0:m.emptyBox),interaction_description:`Empty box on canvas actions`});return Object.keys(y).length>0&&(C.metadata=y),x!==null&&(C.state=x),this.dispatchEvent(S==null||(h=S.names)==null||(h=h.editorOne)==null?void 0:h.canvasEmptyBoxAction,C)}},{key:`sendWidgetPanelSearch`,value:function sendWidgetPanelSearch(r){var c,l,u,p,m,h,g,v,y=r.resultsCount,b=r.userInput,x=b===void 0?null:b,S=this.getConfig(),C=y>0,w=this.createBasePayload({interaction_type:this.toLowerSnake(S==null||(c=S.triggers)==null?void 0:c.typing),target_type:S==null||(l=S.targetTypes)==null?void 0:l.searchWidget,target_name:`search_widget`,interaction_result:C?S==null||(u=S.interactionResults)==null?void 0:u.resultsUpdated:S==null||(p=S.interactionResults)==null?void 0:p.noResults,target_location:this.toLowerSnake(S==null||(m=S.locations)==null?void 0:m.leftPanel),location_l1:this.toLowerSnake(S==null||(h=S.locations)==null?void 0:h.widgetPanel),location_l2:this.toLowerSnake(S==null||(g=S.secondaryLocations)==null?void 0:g.searchBar),interaction_description:`Widget search input, follows debounce behavior`});return!C&&x&&(w.metadata={user_input:x}),this.dispatchEvent(S==null||(v=S.names)==null||(v=v.editorOne)==null?void 0:v.widgetPanelSearch,w)}},{key:`createWpDashPayload`,value:function createWpDashPayload(){var r,c,l,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=this.getConfig();return this.createBasePayload(_objectSpread$18({window_name:(r=p==null||(c=p.appTypes)==null?void 0:c.wpDash)==null?`wpdash`:r,target_location:this.toLowerSnake(p==null||(l=p.locations)==null?void 0:l.wpDashAdmin),location_l2:``},u))}},{key:`sendWpDashElementorMenuClick`,value:function sendWpDashElementorMenuClick(){var r,c,l,u,p,m=this.getConfig();return this.dispatchEvent(m==null||(r=m.names)==null||(r=r.editorOne)==null?void 0:r.wpDashElementorMenuClick,this.createWpDashPayload({interaction_type:this.toLowerSnake(m==null||(c=m.triggers)==null?void 0:c.click),target_type:m==null||(l=m.targetTypes)==null?void 0:l.wpDashAdminMenuItem,target_name:`elementor_menu_item`,interaction_result:m==null||(u=m.interactionResults)==null?void 0:u.elementorSideMenuOpened,location_l1:this.toLowerSnake(m==null||(p=m.secondaryLocations)==null?void 0:p.wpDashElementorCoreMenu),interaction_description:`core_user_clicked_elementor_menu_item`}))}},{key:`sendWpDashEditorSubMenuHover`,value:function sendWpDashEditorSubMenuHover(){var r,c,l,u,p,m=this.getConfig();return this.dispatchEvent(m==null||(r=m.names)==null||(r=r.editorOne)==null?void 0:r.wpDashEditorSubMenuHover,this.createWpDashPayload({interaction_type:this.toLowerSnake(m==null||(c=m.triggers)==null?void 0:c.hover),target_type:m==null||(l=m.targetTypes)==null?void 0:l.wpDashEditorMenu,target_name:`wpdash_editor_sub_menu`,interaction_result:m==null||(u=m.interactionResults)==null?void 0:u.editorSubMenuOpened,location_l1:this.toLowerSnake(m==null||(p=m.secondaryLocations)==null?void 0:p.wpDashElementorCoreSubMenu),interaction_description:`core_user_hovered_sub_menu`}))}},{key:`sendWpDashThemeBuilderClick`,value:function sendWpDashThemeBuilderClick(){var r,c,l,u,p,m=this.getConfig();return this.dispatchEvent(m==null||(r=m.names)==null||(r=r.editorOne)==null?void 0:r.wpDashThemeBuilderClick,this.createWpDashPayload({interaction_type:this.toLowerSnake(m==null||(c=m.triggers)==null?void 0:c.click),target_type:m==null||(l=m.targetTypes)==null?void 0:l.wpDashSubMenuItem,target_name:`theme_builder_menu_item`,interaction_result:m==null||(u=m.interactionResults)==null?void 0:u.themeBuilderPromotionWindow,location_l1:this.toLowerSnake(m==null||(p=m.secondaryLocations)==null?void 0:p.wpDashThemeBuilder),interaction_description:`core_user_clicked_theme_builder_menu_item`}))}},{key:`sendSidebarMenuItemClicked`,value:function sendSidebarMenuItemClicked(r){var c=r.eventId,l=r.groupEventId;try{var u,p,m,h,g,v,y=this.getConfig(),b=this.createBasePayload({window_name:y==null||(u=y.windowNames)==null?void 0:u.sidebarMenu,interaction_type:this.toLowerSnake(y==null||(p=y.triggers)==null?void 0:p.click),target_type:y==null||(m=y.targetTypes)==null?void 0:m.link,target_name:c,interaction_result:y==null||(h=y.interactionResults)==null?void 0:h.pageOpened,target_location:this.toLowerSnake(y==null||(g=y.locations)==null?void 0:g.sidebar)});return l&&(b.location_l1=l),this.dispatchEvent(y==null||(v=y.names)==null||(v=v.editorOne)==null?void 0:v.sidebarMenuItemClicked,b)}catch(r){return!1}}},{key:`sendSidebarMenuGroupToggled`,value:function sendSidebarMenuGroupToggled(r){var c=r.eventId,l=r.isExpanded;try{var u,p,m,h,g,v,y,b=this.getConfig(),x=l?b==null||(u=b.interactionResults)==null?void 0:u.expanded:b==null||(p=b.interactionResults)==null?void 0:p.collapsed;return this.dispatchEvent(b==null||(m=b.names)==null||(m=m.editorOne)==null?void 0:m.sidebarMenuGroupToggled,this.createBasePayload({window_name:b==null||(h=b.windowNames)==null?void 0:h.sidebarMenu,interaction_type:this.toLowerSnake(b==null||(g=b.triggers)==null?void 0:g.click),target_type:b==null||(v=b.targetTypes)==null?void 0:v.toggle,target_name:c,interaction_result:x,target_location:this.toLowerSnake(b==null||(y=b.locations)==null?void 0:y.sidebar)}))}catch(r){return!1}}}])}(),On=function createDebouncedWidgetPanelSearch(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:2e3;return _.debounce(function(r,c){Dn.sendWidgetPanelSearch({resultsCount:r,userInput:c})},r)}})),An=__commonJSMin(((r,c)=>{c.exports=elementorModules.Module.extend({openMenuEvent:null,location:null,getDefaultSettings:function getDefaultSettings(){return{context:`preview`,actions:{},classes:{list:`elementor-context-menu-list`,group:`elementor-context-menu-list__group`,groupPrefix:`elementor-context-menu-list__group-`,item:`elementor-context-menu-list__item`,itemTypePrefix:`elementor-context-menu-list__item-`,itemTitle:`elementor-context-menu-list__item__title`,itemShortcut:`elementor-context-menu-list__item__shortcut`,iconShortcut:`elementor-context-menu-list__item__icon`,itemDisabled:`elementor-context-menu-list__item--disabled`,itemHasShortcutAction:`elementor-context-menu-list__item--has-shortcut-action`,divider:`elementor-context-menu-list__divider`,hidden:`elementor-hidden`,promotionLink:`elementor-context-menu-list__item__shortcut--link-fullwidth`}}},buildActionItem:function buildActionItem(r){var c=this,l=c.getSettings(`classes`),u=jQuery(`<div>`,{class:l.item+` `+l.itemTypePrefix+r.name,role:`menuitem`,tabindex:`0`}),p=jQuery(`<div>`,{class:l.itemTitle}).text(r.title),m=jQuery(`<div>`,{class:l.iconShortcut});if(r.icon&&m.html(jQuery(`<i>`,{class:r.icon})),u.append(m,p),r.shortcut){var h=jQuery(`<div>`,{class:l.itemShortcut}).html(r.shortcut);u.append(h)}return r.callback&&(u.on(`click`,function(){c.runAction(r)}),u.on(`keyup`,function(l){(l.keyCode===13||l.keyCode===32)&&c.runAction(r)})),r.$item=u,u},buildActionsList:function buildActionsList(){var r=this,c=r.getSettings(`classes`),l=r.getSettings(`groups`),u=jQuery(`<div>`,{class:c.list,role:`menu`});return l.forEach(function(l){var p=jQuery(`<div>`,{class:c.group+` `+c.groupPrefix+l.name,role:`group`});l.actions.forEach(function(c){p.append(r.buildActionItem(c))}),u.append(p),l.$item=p}),u},toggleGroupVisibility:function toggleGroupVisibility(r,c){r.$item.toggleClass(this.getSettings(`classes.hidden`),!c)},toggleActionVisibility:function toggleActionVisibility(r,c){r.$item.toggleClass(this.getSettings(`classes.hidden`),!c)},toggleActionUsability:function toggleActionUsability(r,c){this.maybeAddPromotionLink(r),r.$item.toggleClass(this.getSettings(`classes.itemDisabled`),!c),r.hasShortcutAction&&r.$item.toggleClass(this.getSettings(`classes.itemHasShortcutAction`),!c)},maybeAddPromotionLink:function maybeAddPromotionLink(r){this.shouldAddPromotionLink(r)&&r.$item.find(`div.elementor-context-menu-list__item__shortcut`)[0].insertAdjacentHTML(`beforeend`,`<a href='${r.promotionURL}' target="_blank" class="${this.getSettings(`classes.promotionLink`)}"></a>`)},shouldAddPromotionLink:function shouldAddPromotionLink(r){return!!(r.promotionURL&&!r.$item.find(`a.elementor-context-menu-list__item__shortcut--link-fullwidth`)[0]&&r.$item.find(`i.eicon-pro-icon`)[0])},updateActionTitle:function updateActionTitle(r){typeof r.title==`function`&&r.$item.find(`.`+this.getSettings(`classes`).itemTitle).text(r.title())},isActionEnabled:function isActionEnabled(r){return!r.callback&&!r.groups?!1:!r.isEnabled||r.isEnabled()},isActionVisible:function isActionVisible(r){return typeof r.isVisible==`function`?r.isVisible():!1!==r.isVisible},runAction:function runAction(r){!this.isActionEnabled(r)||!this.isActionVisible(r)||(r.callback(this.openMenuEvent,{location:this.location,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.contextMenu,trigger:elementorCommon.eventsManager.config.triggers.rightClick}),this.getModal().hide())},initModal:function initModal(){var r;this.getModal=function(){return r||(r=elementorCommon.dialogsManager.createWidget(`simple`,{className:`elementor-context-menu`,message:this.buildActionsList(),iframe:this.getSettings(`context`)===`preview`?elementor.$preview:null,effects:{hide:`hide`,show:`show`},hide:{onOutsideContextMenu:!0},position:{my:(elementorCommon.config.isRTL?`right`:`left`)+` top`,collision:`fit`}})),r}},show:function show(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=this,u=l.getModal();this.openMenuEvent=r,this.location=c.location,u.setSettings(`position`,{of:r}),l.getSettings(`groups`).forEach(function(r){var c=!1!==r.isVisible;l.toggleGroupVisibility(r,c),c&&r.actions.forEach(function(r){var c=l.isActionVisible(r);l.toggleActionVisibility(r,c),l.updateActionTitle(r),c&&l.toggleActionUsability(r,l.isActionEnabled(r))})}),u.show(),elementor.templates.eventManager.sendContextMenuExposureEvent()},destroy:function destroy(){this.getModal().destroy()},onInit:function onInit(){this.initModal()}})})),jn=__commonJSMin(((c,l)=>{Nn();var u=An();l.exports=Marionette.Behavior.extend({defaults:{context:`preview`,groups:[],eventTargets:[`el`]},events:function events(){var r={};return this.getOption(`eventTargets`).forEach(function(c){var l=`contextmenu`;c!==`el`&&(l+=` `+c),r[l]=`onContextMenu`}),r},initialize:function initialize(){this.listenTo(this.view.options.model,`request:contextmenu`,this.onRequestContextMenu)},initContextMenu:function initContextMenu(){var c=this,l=Gt.mac?`&#8984;`:`^`,p=this.getOption(`groups`),m=_.findWhere(p,{name:`delete`}),h=p.indexOf(m);h===-1&&(h=p.length),this.getOption(`context`)===`preview`&&$e.components.get(`document/elements`).utils.showNavigator()&&p.splice(h,0,{name:`tools`,actions:[{name:`navigator`,icon:`eicon-navigator`,title:(0,r.__)(`Structure`,`elementor`),shortcut:l+`+I`,callback:function callback(){return $e.route(`navigator`,{reOpen:!0,model:c.view.model})}}]}),this.contextMenu=new u({groups:p,context:this.getOption(`context`)}),this.contextMenu.getModal().on(`hide`,function(){return c.onContextMenuHide()})},getContextMenu:function getContextMenu(){var r,c;return this.contextMenu||this.initContextMenu(),this.getOption(`context`)===`preview`&&!elementor.selection.has((r=(c=this.view).getContainer)==null?void 0:r.call(c))&&$e.run(`document/elements/deselect-all`),this.contextMenu},onContextMenu:function onContextMenu(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!$e.shortcuts.isControlEvent(r)&&!(this.getOption(`context`)===`preview`&&!(this.view instanceof Mn)&&(!this.view.container||!this.view.container.isDesignable()))){r.preventDefault(),r.stopPropagation(),this.view._parent&&this.view._parent.triggerMethod(`toggleSortMode`,!1);var l=c.location||elementorCommon.eventsManager.config.locations.canvas;this.getContextMenu().show(r,{location:l}),elementor.channels.editor.reply(`contextMenu:targetView`,this.view)}},onRequestContextMenu:function onRequestContextMenu(r,c){var l=this.getContextMenu().getModal(),u=l.getSettings(`iframe`),p=_.findWhere(this.contextMenu.getSettings(`groups`),{name:`tools`});p.isVisible=!1,l.setSettings(`iframe`,null),this.onContextMenu(r,c),p.isVisible=!0,l.setSettings(`iframe`,u)},onContextMenuHide:function onContextMenuHide(){this.view._parent&&this.view._parent.triggerMethod(`toggleSortMode`,!0),elementor.channels.editor.reply(`contextMenu:targetView`,null)},onDestroy:function onDestroy(){this.contextMenu&&this.contextMenu.destroy()}})}));function ownKeys$17(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$17(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$17(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$17(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}function _callSuper$292(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$292()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$292(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$292=function _isNativeReflectConstruct(){return!!r})()}var Mn,Nn=__esmMin((()=>{b(),w(),E(),D(),A(),P(),En(),Kt(),kn(),__name(ownKeys$17,`ownKeys`),__name(_objectSpread$17,`_objectSpread`),__name(_callSuper$292,`_callSuper`),__name(_isNativeReflectConstruct$292,`_isNativeReflectConstruct`),Mn=function(c){function AddSectionBase(){return _classCallCheck(this,AddSectionBase),_callSuper$292(this,AddSectionBase,arguments)}return _inherits(AddSectionBase,c),_createClass(AddSectionBase,[{key:`template`,value:function template(){return Marionette.TemplateCache.get(`#tmpl-elementor-add-section`)}},{key:`attributes`,value:function attributes(){return{"aria-label":(0,r.__)(`Add new layout element`,`elementor`),"data-view":AddSectionBase.VIEW_CHOOSE_ACTION}}},{key:`ui`,value:function ui(){return{addNewSection:`.elementor-add-new-section`,closeButton:`.elementor-add-section-close`,backButton:`.elementor-add-section-back`,addSectionButton:`.elementor-add-section-button`,addTemplateButton:`.elementor-add-template-button`,selectPreset:`.elementor-select-preset`,presets:`.elementor-preset`,flexPresetButton:`.flex-preset-button`,gridPresetButton:`.grid-preset-button`,chooseFlexPreset:`.e-con-select-preset-flex .e-con-preset`,chooseGridPreset:`.e-con-select-preset-grid .e-con-preset`}}},{key:`events`,value:function events(){var r=this;return{"click @ui.addSectionButton":`onAddSectionButtonClick`,"click @ui.addTemplateButton":`onAddTemplateButtonClick`,"click @ui.closeButton":`onCloseButtonClick`,"click @ui.backButton":function click_UiBackButton(){return r.setView(AddSectionBase.getSelectType())},"click @ui.presets":`onPresetSelected`,"click @ui.flexPresetButton":function click_UiFlexPresetButton(){return r.setView(AddSectionBase.VIEW_CONTAINER_FLEX_PRESET)},"click @ui.gridPresetButton":function click_UiGridPresetButton(){return r.setView(AddSectionBase.VIEW_CONTAINER_GRID_PRESET)},"click @ui.chooseFlexPreset":`onFlexPresetSelected`,"click @ui.chooseGridPreset":`onGridPresetSelected`}}},{key:`behaviors`,value:function behaviors(){var r={contextMenu:{behaviorClass:jn(),groups:this.getContextMenuGroups(),eventTargets:[`.elementor-add-section-inner`]}};return elementor.hooks.applyFilters(`views/add-section/behaviors`,r,this)}},{key:`tagName`,value:function tagName(){return`section`}},{key:`className`,value:function className(){return`elementor-add-section elementor-visible-desktop`}},{key:`setView`,value:function setView(r){this.$el.attr(`data-view`,r)}},{key:`showSelectPresets`,value:function showSelectPresets(){this.setView(AddSectionBase.getSelectType())}},{key:`closeSelectPresets`,value:function closeSelectPresets(){this.setView(AddSectionBase.VIEW_CHOOSE_ACTION)}},{key:`getTemplatesModalOptions`,value:function getTemplatesModalOptions(){return{importOptions:{at:this.getOption(`at`)}}}},{key:`getContextMenuGroups`,value:function getContextMenuGroups(){var c=this,l=function hasContent(){return elementor.elements.length>0},u=Gt.mac?`&#8984;`:`^`;return[{name:`paste`,actions:[{name:`paste`,title:(0,r.__)(`Paste`,`elementor`),shortcut:u+`+V`,isEnabled:function isEnabled(){return $e.components.get(`document/elements`).utils.isPasteEnabled(elementor.getPreviewContainer())},callback:function callback(){return $e.run(`document/ui/paste`,{container:elementor.getPreviewContainer(),options:{at:c.getOption(`at`),rebuild:!0},onAfter:function onAfter(){return c.onAfterPaste()}})}},{name:`paste_area`,icon:`eicon-import-export`,title:(0,r.__)(`Paste from other site`,`elementor`),callback:function callback(){return $e.run(`document/elements/paste-area`,{container:elementor.getPreviewContainer(),options:{at:c.getOption(`at`),rebuild:!0}})}}]},{name:`content`,actions:[{name:`copy_all_content`,title:(0,r.__)(`Copy All Content`,`elementor`),isEnabled:l,callback:function callback(){return $e.run(`document/elements/copy-all`)}},{name:`delete_all_content`,title:(0,r.__)(`Delete All Content`,`elementor`),isEnabled:l,callback:function callback(){return $e.run(`document/elements/empty`)}}]}]}},{key:`onAddSectionButtonClick`,value:function onAddSectionButtonClick(){this.showSelectPresets()}},{key:`onAddTemplateButtonClick`,value:function onAddTemplateButtonClick(){Dn.sendCanvasEmptyBoxAction({targetName:`e_library`}),$e.run(`library/open`,this.getTemplatesModalOptions())}},{key:`onRender`,value:function onRender(){this.$el.html5Droppable(_objectSpread$17({axis:[`vertical`],groups:[`elementor-element`],placeholder:!1,currentElementClass:`elementor-html5dnd-current-element`,hasDraggingOnChildClass:`elementor-dragging-on-child`},this.getDroppableOptions()))}},{key:`getDroppableOptions`,value:function getDroppableOptions(){var r=this;return{isDroppingAllowed:function isDroppingAllowed(){var r;return!((r=elementor.channels.editor.request(`element:dragged`))!=null&&(r=r.el)!=null&&(r=r.dataset)!=null&&r.id)},onDropping:function onDropping(c,l){elementor.getPreviewView().onDrop(l,{side:c,at:r.getOption(`at`)})}}}},{key:`onGridPresetSelected`,value:function onGridPresetSelected(r){this.closeSelectPresets();var c=r.currentTarget.dataset.structure,l=!!this.options.at||this.options.at===0;Dn.sendCanvasEmptyBoxAction({targetName:`add_container`,metadata:{container_type:`grid`,structure_type:c},containerCreated:!0});var u=G.createContainerFromGridPreset(c,elementor.getPreviewContainer(),this.options);return l&&this.destroy(),u}},{key:`onPresetSelected`,value:function onPresetSelected(r){this.closeSelectPresets();var c=r.currentTarget.dataset.structure,l=elementor.presetsFactory.getParsedStructure(c);$e.run(`document/elements/create`,{model:{elType:`section`},container:elementor.getPreviewContainer(),columns:l.columnsCount,structure:c,options:Object.assign({},this.options)})}},{key:`onFlexPresetSelected`,value:function onFlexPresetSelected(r){this.closeSelectPresets();var c=r.currentTarget.dataset.preset;return Dn.sendCanvasEmptyBoxAction({targetName:`add_container`,metadata:{container_type:`flexbox`,structure_type:c},containerCreated:!0}),G.createContainerFromPreset(c,elementor.getPreviewContainer(),this.options)}},{key:`onDropping`,value:function onDropping(){elementor.getPreviewView().addElementFromPanel()}},{key:`onAfterPaste`,value:function onAfterPaste(){}}],[{key:`getSelectType`,value:function getSelectType(){return AddSectionBase.IS_CONTAINER_ACTIVE?AddSectionBase.getSelectTypePreset():`select-preset`}},{key:`getSelectTypePreset`,value:function getSelectTypePreset(){return AddSectionBase.IS_CONTAINER_ACTIVE?`select-type`:`select-container-preset`}}])}(Marionette.ItemView),_defineProperty(Mn,`IS_CONTAINER_ACTIVE`,!!elementorCommon.config.experimentalFeatures.container),_defineProperty(Mn,`VIEW_CHOOSE_ACTION`,`choose-action`),_defineProperty(Mn,`VIEW_CONTAINER_FLEX_PRESET`,`select-container-preset`),_defineProperty(Mn,`VIEW_CONTAINER_GRID_PRESET`,`select-container-preset-grid`)})),Pn=__exportAll({default:()=>Fn});function _callSuper$291(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$291()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$291(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$291=function _isNativeReflectConstruct(){return!!r})()}function _superPropGet$33(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 Fn,In=__esmMin((()=>{b(),w(),E(),D(),k(),A(),Nn(),kn(),__name(_callSuper$291,`_callSuper`),__name(_isNativeReflectConstruct$291,`_isNativeReflectConstruct`),__name(_superPropGet$33,`_superPropGet`),Fn=function(r){function AddSectionView(){return _classCallCheck(this,AddSectionView),_callSuper$291(this,AddSectionView,arguments)}return _inherits(AddSectionView,r),_createClass(AddSectionView,[{key:`className`,value:function className(){return _superPropGet$33(AddSectionView,`className`,this,3)([])+` elementor-add-section-inline`}},{key:`fadeToDeath`,value:function fadeToDeath(){var r=this;r.$el.slideUp(function(){r.destroy()})}},{key:`onAfterPaste`,value:function onAfterPaste(){_superPropGet$33(AddSectionView,`onAfterPaste`,this,3)([]),this.destroy()}},{key:`onCloseButtonClick`,value:function onCloseButtonClick(){Dn.sendCanvasEmptyBoxAction({targetName:`close`,containerCreated:!1}),this.fadeToDeath()}},{key:`onPresetSelected`,value:function onPresetSelected(r){_superPropGet$33(AddSectionView,`onPresetSelected`,this,3)([r]),this.destroy()}},{key:`onFlexPresetSelected`,value:function onFlexPresetSelected(r){_superPropGet$33(AddSectionView,`onFlexPresetSelected`,this,3)([r]),this.destroy()}},{key:`onAddTemplateButtonClick`,value:function onAddTemplateButtonClick(){_superPropGet$33(AddSectionView,`onAddTemplateButtonClick`,this,3)([]),this.destroy()}},{key:`getDroppableOptions`,value:function getDroppableOptions(){var r=this;return{onDropping:function onDropping(c,l){_superPropGet$33(AddSectionView,`getDroppableOptions`,r,3)([]).onDropping(c,l),r.destroy()}}}},{key:`onDropping`,value:function onDropping(){var r=this.getDroppableOptions();_superPropGet$33(AddSectionView,`onDropping`,this,3)([]),r.onDropping&&r.onDropping()}}])}(Mn)}));function _OverloadYield(r,c){this.v=r,this.k=c}var Ln=__esmMin((()=>{}));function _awaitAsyncGenerator(r){return new _OverloadYield(r,0)}var Rn=__esmMin((()=>{Ln()}));function _wrapAsyncGenerator(r){return function(){return new AsyncGenerator(r.apply(this,arguments))}}function AsyncGenerator(r){var c,l;function resume(c,l){try{var u=r[c](l),p=u.value,m=p instanceof _OverloadYield;Promise.resolve(m?p.v:p).then(function(l){if(m){var h=c===`return`?`return`:`next`;if(!p.k||l.done)return resume(h,l);l=r[h](l).value}settle(u.done?`return`:`normal`,l)},function(r){resume(`throw`,r)})}catch(r){settle(`throw`,r)}}function settle(r,u){switch(r){case`return`:c.resolve({value:u,done:!0});break;case`throw`:c.reject(u);break;default:c.resolve({value:u,done:!1})}(c=c.next)?resume(c.key,c.arg):l=null}this._invoke=function(r,u){return new Promise(function(p,m){var h={key:r,arg:u,resolve:p,reject:m,next:null};l?l=l.next=h:(c=l=h,resume(r,u))})},typeof r.return!=`function`&&(this.return=void 0)}var zn=__esmMin((()=>{Ln(),AsyncGenerator.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},AsyncGenerator.prototype.next=function(r){return this._invoke(`next`,r)},AsyncGenerator.prototype.throw=function(r){return this._invoke(`throw`,r)},AsyncGenerator.prototype.return=function(r){return this._invoke(`return`,r)}})),Bn=__commonJSMin(((r,c)=>{c.exports={getAllElementTypes:function getAllElementTypes(){return Object.keys(elementor.getConfig().elements)}}})),Vn=__commonJSMin(((r,c)=>{(function(r){var l=function Stylesheet(){var c=this,u={},p={},m={},h=function queryToHash(c){var l=[];return r.each(c,function(r){l.push(r+`_`+this)}),l.join(`-`)},g=function hashToQuery(r){var c={};return r=r.split(`-`).filter(String),r.forEach(function(r){var l=r.split(/_(.+)/),u=l[0],p=l[1];c[u]=u===`max`?m[p]:elementorFrontend.breakpoints.getDeviceMinBreakpoint(p)}),c},v=function addQueryHash(r){u[r]={};var c=Object.keys(u);if(!(c.length<2)){c.sort(function(r,c){var l,u;if(r===`all`)return-1;if(c===`all`)return 1;var p=g(r),m=g(c);if(p.max&&m.max)return m.max-p.max;if(p.min&&m.min)return m.min-p.min;var h=(l=p.max)==null?p.min:l;return((u=m.max)==null?m.min:u)-h});var l={};c.forEach(function(r){l[r]=u[r]}),u=l}},y=function getQueryHashStyleFormat(c){var l=g(c),u=[];return r.each(l,function(r){u.push(`(`+r+`-width:`+this+`px)`)}),`@media`+u.join(` and `)};this.addDevice=function(r,l){m[r]=l;var u=Object.keys(m);if(u.length<2)return c;u.sort(function(r,c){return m[r]-m[c]});var p={};return u.forEach(function(r){p[r]=m[r]}),m=p,c},this.addRawCSS=function(r,c){p[r]=c},this.addRules=function(l,p,m){var g=`all`;if(_.isEmpty(m)||(g=h(m)),u[g]||v(g),!p){var y=l.match(/[^{]+\{[^}]+}/g);r.each(y,function(){var r=this.match(/([^{]+)\{([^}]+)}/);r&&c.addRules(r[1].trim(),r[2].trim(),m)});return}if(u[g][l]||(u[g][l]={}),typeof p==`string`){p=p.split(`;`).filter(String);var b={};try{r.each(p,function(){var r=this.split(/:(.*)?/);b[r[0].trim()]=r[1].trim().replace(`;`,``)})}catch(r){return}p=b}return r.extend(u[g][l],p),c},this.getRules=function(){return u},this.empty=function(){u={},p={}},this.toString=function(){var c=``;return r.each(u,function(r){var u=l.parseRules(this);r!==`all`&&(u=y(r)+`{`+u+`}`),c+=u}),r.each(p,function(){c+=this}),c}};l.parseRules=function(c){var u=``;return r.each(c,function(r){var c=l.parseProperties(this);c&&(u+=r+`{`+c+`}`)}),u},l.parseProperties=function(c){var l=``;return r.each(c,function(r){this&&(l+=r+`:`+this+`;`)}),l},c.exports=l})(jQuery)})),Hn=__commonJSMin(((r,c)=>{M();var l=Vn();c.exports=elementorModules.ViewModule.extend({stylesheet:null,getDefaultSettings:function getDefaultSettings(){return{id:0,context:null,settingsModel:null,dynamicParsing:{}}},getDefaultElements:function getDefaultElements(){var r=`elementor-style-${this.getSettings(`id`)}`,c=elementor.$previewContents.find(`#${r}`);return c.length||(c=jQuery(`<style>`,{id:r})),{$stylesheetElement:c}},initStylesheet:function initStylesheet(){var r=this,c=elementorFrontend.config.responsive.activeBreakpoints;this.stylesheet=new l,Object.entries(c).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];r.stylesheet.addDevice(u,p.value)})},addStyleRules:function addStyleRules(r,c,l,u,p){var m=this,h=this.getSettings(`settingsModel`).parseDynamicSettings(c,this.getSettings(`dynamicParsing`),r);_.each(r,function(r){var g,v;if(r.styleFields&&r.styleFields.length&&m.addRepeaterControlsStyleRules(c[r.name],r.styleFields,r.fields,u,p),(g=r.dynamic)!=null&&g.active&&(v=c.__dynamic__)!=null&&v[r.name]&&m.addDynamicControlStyleRules(c.__dynamic__[r.name],r),r.selectors){var y=m.getSettings(`context`),b;y&&(b=y.model.get(`settings`).get(`__globals__`)),m.addControlStyleRules(r,h,l,u,p,b)}})},addControlStyleRules:function addControlStyleRules(r,c,l,u,p,m){var h=this,g;if(m){var v=r.name;r.groupType&&(v=r.groupPrefix+r.groupType),g=m[v]}var y;!g&&(y=this.getStyleControlValue(r,c),y===void 0)||_.each(r.selectors,function(m,v){var b;if(g){var x=h.getSelectorGlobalValue(r,g);x&&(r.type===`font`&&$e.data.get(g).then(function(r){elementor.helpers.enqueueFont(r.data.value.typography_font_family)}),b=m.replace(/(:)[^;]+(;?)/g,`$1`+x+`$2`))}else try{if(h.unitHasCustomSelector(r,y)&&(m=r.unit_selectors_dictionary[y.unit]),h.shouldDoUpgradeMap(r,y)){var S;(S=r.upgrade_conversion_map)==null||S.new_keys.forEach(function(c){y[c]=``+y[r.upgrade_conversion_map.old_key]})}b=m.replace(/{{(?:([^.}]+)\.)?([^}| ]*)(?: *\|\| *(?:([^.}]+)\.)?([^}| ]*) *)*}}/g,function(u,p,m,g,v){var b=p&&!l[p],x=``;if(b||(x=h.parsePropertyPlaceholder(r,y,l,c,m,p)),!x&&x!==0){if(v){x=v;var S=x.match(/^(['"])(.*)\1$/);if(S)x=S[2];else if(!isFinite(x)){if(g&&!l[g])return``;x=h.parsePropertyPlaceholder(r,y,l,c,v,g)}}if(!x&&x!==0){if(b)return``;throw``}}return r.type===`font`&&elementor.helpers.enqueueFont(x),x===`__EMPTY__`&&(x=``),x})}catch(r){return}if(!_.isEmpty(b)){var C=/^(?:\([^)]+\)){1,2}/,w=v.match(C),T={};if(w){w=w[0],v=v.replace(C,``);for(var E=/\(([^)]+)\)/g,D=[],O=E.exec(w);O;)D.push(O[1]),O=E.exec(w);_.each(D,function(r){if(r!==`desktop`){var c=r.replace(/\+$/,``),l=c===r?`max`:`min`;T[l]=c}})}_.each(u,function(r,c){var l=r.source?r.source:r,u=new RegExp(l,`g`);v=v.replace(u,p[c])}),!Object.keys(T).length&&r.responsive&&(T=_.pick(elementorCommon.helpers.cloneObject(r.responsive),[`min`,`max`]),T.max===`desktop`&&delete T.max),h.stylesheet.addRules(v,b,T)}})},unitHasCustomSelector:function unitHasCustomSelector(r,c){return r.unit_selectors_dictionary&&r.unit_selectors_dictionary[c.unit]!==void 0},shouldDoUpgradeMap:function shouldDoUpgradeMap(r,c){return r.upgrade_conversion_map&&!!c.hasOwnProperty(r.upgrade_conversion_map.old_key)&&c[r.upgrade_conversion_map.old_key]!==``&&!c.hasOwnProperty(r.upgrade_conversion_map.new_keys[0])},parsePropertyPlaceholder:function parsePropertyPlaceholder(r,c,l,u,p,m){if(m){if(r.responsive&&l[m]){var h,g=elementor.conditions.getResponsiveControlDeviceSuffix(r.responsive);r=(h=_.findWhere(l,{name:m+g}))==null?_.findWhere(l,{name:m}):h}else r=_.findWhere(l,{name:m});c=this.getStyleControlValue(r,u)}return elementor.getControlView(r.type).getStyleValue(p,c,r)},getStyleControlValue:function getStyleControlValue(r,c){var l,u,p,m=(l=this.getSettings())==null||(l=l.context)==null?void 0:l.container,h=m==null?void 0:m.isGlobalApplied(r.name),g=((u=c.__globals__)==null?void 0:u[r.name])||((p=r.global)==null?void 0:p.default);if(h&&g)return this.getSelectorGlobalValue(r,g);var v=c[r.name];if(r.selectors_dictionary&&(v=r.selectors_dictionary[v]||v),!(!_.isNumber(v)&&_.isEmpty(v)))return v},getSelectorGlobalValue:function getSelectorGlobalValue(r,c){var l=$e.data.commandExtractArgs(c),u=$e.data.getCache($e.components.get(`globals`),l.command,l.args.query);if(u!=null&&u.value){var p=u.id,m;if(r.groupType){var h=elementor.breakpoints.getActiveMatchRegex(),g=r.name.replace(r.groupPrefix,``).replace(h,``);if(!u.value[elementor.config.kit_config.typography_prefix+g])return;g=g.replace(`_`,`-`),m=`var( --e-global-${r.groupType}-${p}-${g} )`,elementor.config.ui.defaultGenericFonts&&r.groupPrefix+`font_family`===r.name&&(m+=`, ${elementor.config.ui.defaultGenericFonts}`)}else m=`var( --e-global-${r.type}-${p} )`;return m}},addRepeaterControlsStyleRules:function addRepeaterControlsStyleRules(r,c,l,u,p){var m=this;c.forEach(function(c,h){var g=r.models[h];m.addStyleRules(c,g.attributes,l,u.concat([`{{CURRENT_ITEM}}`]),p.concat([`.elementor-repeater-item-`+g.get(`_id`)]))})},addDynamicControlStyleRules:function addDynamicControlStyleRules(r,c){var l=this;elementor.dynamicTags.parseTagsText(r,c.dynamic,function(r,c,u){var p=elementor.dynamicTags.createTag(r,c,u);if(p){var m=p.model;m.getStyleControls().length&&l.addStyleRules(m.getStyleControls(),m.attributes,m.controls,[`{{WRAPPER}}`],[`#elementor-tag-`+r])}})},addStyleToDocument:function addStyleToDocument(r){var c=elementor.$previewContents.find(`head`),l=`append`,u=c;if(r){var p=c.children(r.of);p.length&&(l=r.at,u=p)}u[l](this.elements.$stylesheetElement);var m=elementor.hooks.applyFilters(`editor/style/styleText`,``,this.getSettings(`context`));this.elements.$stylesheetElement.text(this.stylesheet+m)},removeStyleFromDocument:function removeStyleFromDocument(){this.elements.$stylesheetElement.remove()},onInit:function onInit(){elementorModules.ViewModule.prototype.onInit.apply(this,arguments),this.initStylesheet()}})})),Un=__commonJSMin(((r,c)=>{M(),En(),c.exports=Marionette.CompositeView.extend({templateHelpers:function templateHelpers(){return{view:this}},getBehavior:function getBehavior(r){return this._behaviors[Object.keys(this.behaviors()).indexOf(r)]},initialize:function initialize(){this.collection=this.model.get(`elements`)},addChildModel:function addChildModel(r,c){return this.collection.add(r,c,!0)},findFirstViewAccepting:function findFirstViewAccepting(r){var c=null,l=null;return this.children.each(function(u){if(u!=null&&u.getChildType){if(u.getChildType().indexOf(r)!==-1){c||(c=u);return}!l&&u.findFirstViewAccepting&&(l=u.findFirstViewAccepting(r))}}),c||l},addElement:function addElement(r,c){if(!this.isCollectionFilled()){c=jQuery.extend({trigger:!1,edit:!0,onBeforeAdd:null,onAfterAdd:null},c);var l=this.getChildType(),u,p;if(r instanceof Backbone.Model?(u=r,p=u.get(`elType`)):(u={id:elementorCommon.helpers.getUniqueId(),elType:l[0],settings:{},elements:[]},r&&jQuery.extend(u,r),p=u.elType),l.indexOf(p)===-1)return(this.findFirstViewAccepting(p)||this.children.last()).addElement(u,c);c.clone&&(u=this.cloneItem(u)),c.trigger&&elementor.channels.data.trigger(c.trigger.beforeAdd,u),c.onBeforeAdd&&c.onBeforeAdd(),this.filterSettings&&this.filterSettings(u);var m=this.addChildModel(u,{at:c.at}),h=this.children.findByModel(m);return c.onAfterAdd&&c.onAfterAdd(m,h),c.trigger&&elementor.channels.data.trigger(c.trigger.afterAdd,u),c.edit&&elementor.documents.getCurrent().history.getActive()&&(h.getContainer(),h._openEditingPanel(c)),h}},_openEditingPanel:function _openEditingPanel(r){this.model.trigger(`request:edit`,{scrollIntoView:r.scrollIntoView})},createElementFromContainer:function createElementFromContainer(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.createElementFromModel(r.model,c)},createElementFromModel:function createElementFromModel(r){var c,l,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(r instanceof Backbone.Model&&(r=r.toJSON()),!elementor.helpers.maybeDisableWidget(r.widgetType)){r=Object.assign(r,r.custom),r.elType===`section`&&(r.isInner=!0),(c=(l=r)==null?void 0:l.isPreset)!=null&&c&&(r.settings=r.preset_settings);var p=u.useHistory,m=p===void 0||p,h;m&&(h=$e.internal(`document/history/start-log`,{type:this.getHistoryType(u.event),title:elementor.helpers.getModelLabel(r)}));var g=this.getContainer();u.shouldWrap&&(g=this.getWrappingContainer(g,r,u));var v=$e.run(`document/elements/create`,{container:g,model:r,options:u});return m&&$e.internal(`document/history/end-log`,{id:h}),v}},getWrappingContainer:function getWrappingContainer(r,c,l){var u,p=elementor.helpers.isAtomicWidget(c),m={at:l.at,scrollIntoView:l.scrollIntoView,useHistory:(u=l==null?void 0:l.useHistory)==null||u};return p?G.createContainerFromModel({elType:G.V4_DEFAULT_CONTAINER_TYPE},r,{options:m}):this.getV3Container(r,m)},getV3Container:function getV3Container(r,c){var l=elementorCommon.config.experimentalFeatures.container;return r=G.createContainerFromModel({elType:l?`container`:`section`},r,{columns:Number(!l),options:c}),l||(r=r.view.children.findByIndex(0).getContainer()),r},onDrop:function onDrop(r,c){var l,u,p=r.originalEvent.dataTransfer.files;if(p.length){$e.run(`editor/browser-import/import`,{input:p,target:this.getContainer(),options:{event:r,target:{at:c.at}}});return}var m={};if(m.model=Object.fromEntries(Object.entries((l=elementor.channels.panelElements.request(`element:selected`))==null?void 0:l.model.attributes).filter(function(r){var c=_slicedToArray(r,1)[0];return[`elType`,`widgetType`,`custom`,`editor_settings`].includes(c)})),m.container=this.getContainer(),m.options=c,$e.run(`preview/drop`,m),(u=elementorCommon)!=null&&(u=u.eventsManager)!=null&&u.dispatchEvent&&m!=null&&m.model){var h,g,v,y,b=(h=(g=m.model)==null?void 0:g.elType)==null?``:h,x=(v=(y=m.model)==null?void 0:y.widgetType)==null?``:v,S=b===`widget`?x:b;elementorCommon.eventsManager.dispatchEvent(`add_element`,{location:`editor_panel`,element_name:S,element_type:b,widget_type:x})}},getHistoryType:function getHistoryType(r){if(r)switch(r.originalEvent&&(r=r.originalEvent),r.constructor.name){case`DragEvent`:return`import`;case`ClipboardEvent`:return`paste`}return`add`},cloneItem:function cloneItem(r){var c=this;return r instanceof Backbone.Model?r.clone():(r.id=elementorCommon.helpers.getUniqueId(),r.settings._element_id=``,r.elements.forEach(function(l,u){r.elements[u]=c.cloneItem(l)}),r)},lookup:function lookup(){var r=this;return r.isDisconnected()&&(r=$e.components.get(`document`).utils.findViewById(r.model.id)),r},isDisconnected:function isDisconnected(){return this.isDestroyed||!this.el.isConnected},isCollectionFilled:function isCollectionFilled(){return!1}}),Marionette.CollectionView.prototype.buildChildView=function(r,c,l){var u=new c(_.extend({model:r},l));return u._parent=this,Marionette.MonitorDOMRefresh(u),u},Marionette.CompositeView.prototype.attachBuffer=function(r,c){var l,u,p=this.getChildViewContainer(r);if((l=this.model)!=null&&(l=l.config)!=null&&l.support_improved_repeaters&&(u=this.model)!=null&&(u=u.config)!=null&&u.is_interlaced){var m,h=p.find((m=this.model)==null||(m=m.config)==null||(m=m.defaults)==null?void 0:m.child_container_placeholder_selector);_.each(h,function(r){r.appendChild(c.childNodes[0]),c.appendChild(r)})}p.append(c)}})),Wn=__commonJSMin(((c,l)=>{M(),N(),x(),ge(),Rn(),zn();var u=__toESM(R());Kt(),$t();var p=Bn();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.
8 +`)[2].trim(),c=r.startsWith(`at new`)?`constructor`:r.split(` `)[1],l={};if(l.functionName=c,l.fullName=c,l.functionName.includes(`.`)){var u=l.functionName.split(`.`);l.className=u[0],l.functionName=u[1]}else l.isStatic=!0;throw new nt(l)}),`default`)}));function ownKeys$22(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$22(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$22(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$22(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}function _callSuper$312(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$312()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$312(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$312=function _isNativeReflectConstruct(){return!!r})()}var it,U,W=__esmMin((()=>{P(),M(),b(),w(),E(),D(),A(),Ye(),it=__toESM(Xe()),rt(),We(),__name(ownKeys$22,`ownKeys`),__name(_objectSpread$22,`_objectSpread`),__name(_callSuper$312,`_callSuper`),__name(_isNativeReflectConstruct$312,`_isNativeReflectConstruct`),U=function(r){function ComponentBase(){return _classCallCheck(this,ComponentBase),_callSuper$312(this,ComponentBase,arguments)}return _inherits(ComponentBase,r),_createClass(ComponentBase,[{key:`__construct`,value:function __construct(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.manager&&(this.manager=r.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 r=this;Object.entries(this.getTabs()).forEach(function(c){return r.registerTabRoute(c[0])}),Object.entries(this.getRoutes()).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return r.registerRoute(u,p)}),Object.entries(this.getCommands()).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return r.registerCommand(u,p)}),Object.entries(this.getCommandsInternal()).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return r.registerCommandInternal(u,p)}),Object.values(this.getHooks()).forEach(function(c){return r.registerHook(c)}),Object.entries(this.getData()).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return r.registerData(u,p)}),Object.values(this.getUiStates()).forEach(function(c){return r.registerUiState(c)}),Object.entries(this.getStates()).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return r.registerState(u,p)})}},{key:`getNamespace`,value:function getNamespace(){H()}},{key:`getRootContainer`,value:function getRootContainer(){return Ue.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(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`default`,u;switch(l){case`default`:u=$e.commands;break;case`internal`:u=$e.commandsInternal;break;case`data`:u=$e.data;break;default:throw Error(`Invalid commands type: '${r}'`)}var p=this.getNamespace()+`/`+r,m=c.getInstanceType?c.getInstanceType():!1,h={command:p,component:this};m||($e.devTools&&$e.devTools.log.warn(`Attach command-callback-base, on command: '${p}', context is unknown type.`),h.callback=c,c=function(r){function context(){return _classCallCheck(this,context),_callSuper$312(this,context,arguments)}return _inherits(context,r),_createClass(context)}(V)),c.setRegisterConfig(h),u.register(this,r,c)}},{key:`registerHook`,value:function registerHook(r){return r.register()}},{key:`registerCommandInternal`,value:function registerCommandInternal(r,c){this.registerCommand(r,c,`internal`)}},{key:`registerUiState`,value:function registerUiState(r){$e.uiStates.register(r)}},{key:`registerState`,value:function registerState(r,l){r=this.getNamespace()+(r?`/${r}`:``);var u=(0,c.createSlice)(_objectSpread$22(_objectSpread$22({},l),{},{name:r}));$e.store.register(r,u)}},{key:`registerRoute`,value:function registerRoute(r,c){$e.routes.register(this,r,c)}},{key:`registerData`,value:function registerData(r,c){this.registerCommand(r,c,`data`)}},{key:`unregisterRoute`,value:function unregisterRoute(r){$e.routes.unregister(this,r)}},{key:`registerTabRoute`,value:function registerTabRoute(r){var c=this;this.registerRoute(r,function(l){return c.activateTab(r,l)})}},{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(r){this.toggleRouteClass(r,!0),this.toggleHistoryClass(),this.activate(),this.trigger(`route/open`,r)}},{key:`onCloseRoute`,value:function onCloseRoute(r){this.toggleRouteClass(r,!1),this.inactivate(),this.trigger(`route/close`,r)}},{key:`setDefaultRoute`,value:function setDefaultRoute(r){this.defaultRoute=this.getNamespace()+`/`+r}},{key:`getDefaultRoute`,value:function getDefaultRoute(){return this.defaultRoute}},{key:`removeTab`,value:function removeTab(r){delete this.tabs[r],this.unregisterRoute(r)}},{key:`hasTab`,value:function hasTab(r){return!!this.tabs[r]}},{key:`addTab`,value:function addTab(r,c,l){var u=this;if(this.tabs[r]=c,l!==void 0){var p={},m=Object.keys(this.tabs);m.pop(),m.splice(l,0,r),m.forEach(function(r){p[r]=u.tabs[r]}),this.tabs=p}this.registerTabRoute(r)}},{key:`getTabsWrapperSelector`,value:function getTabsWrapperSelector(){return``}},{key:`getTabRoute`,value:function getTabRoute(r){return this.getNamespace()+`/`+r}},{key:`renderTab`,value:function renderTab(r){}},{key:`activateTab`,value:function activateTab(r,c){var l=this;this.renderTab(r,c),jQuery(this.getTabsWrapperSelector()+` .elementor-component-tab`).off(`click`).on(`click`,function(r){$e.route(l.getTabRoute(r.currentTarget.dataset.tab),c)}).removeClass(`elementor-active`).filter(`[data-tab="`+r+`"]`).addClass(`elementor-active`)}},{key:`getActiveTabConfig`,value:function getActiveTabConfig(){return this.tabs[this.currentTab]||{}}},{key:`getBodyClass`,value:function getBodyClass(r){return`e-route-`+r.replace(/\//g,`-`)}},{key:`normalizeCommandName`,value:function normalizeCommandName(r){return r.replace(/[A-Z]/g,function(r,c){return(c>0?`-`:``)+r.toLowerCase()})}},{key:`importCommands`,value:function importCommands(r){var c=this,l={};return Object.entries(r).forEach(function(r){var u=_slicedToArray(r,2),p=u[0],m=u[1],h=c.normalizeCommandName(p);l[h]=m}),l}},{key:`importHooks`,value:function importHooks(r){var c={};for(var l in r){var u=new r[l];c[u.getId()]=u}return c}},{key:`importUiStates`,value:function importUiStates(r){var c=this,l={};return Object.values(r).forEach(function(r){var u=new r(c);l[u.getId()]=u}),l}},{key:`setUiState`,value:function setUiState(r,c){$e.uiStates.set(`${this.getNamespace()}/${r}`,c)}},{key:`toggleRouteClass`,value:function toggleRouteClass(r,c){document.body.classList.toggle(this.getBodyClass(r),c)}},{key:`toggleHistoryClass`,value:function toggleHistoryClass(){document.body.classList.toggle(`e-routes-has-history`,!!$e.routes.getHistory(this.getServiceName()).length)}}])}(it.default)})),at=__commonJSMin(((r,c)=>{c.exports=Backbone.Model.extend({defaults:{id:0,type:``,status:`not_applied`,title:``,subTitle:``,action:``,history:{}},initialize:function initialize(){this.set(`items`,new Backbone.Collection)}})}));W(),b(),w(),P();var ot=__toESM(at()),st=function(){function HistoryManager(c){_classCallCheck(this,HistoryManager),_defineProperty(this,`currentItemID`,null),_defineProperty(this,`items`,new Backbone.Collection([],{model:ot.default})),_defineProperty(this,`active`,!0),_defineProperty(this,`translations`,{add:(0,r.__)(`Added`,`elementor`),change:(0,r.__)(`Edited`,`elementor`),disable:(0,r.__)(`Disabled`,`elementor`),duplicate:(0,r.__)(`Duplicate`,`elementor`),enable:(0,r.__)(`Enabled`,`elementor`),import:(0,r.__)(`Imported`,`elementor`),move:(0,r.__)(`Moved`,`elementor`),paste:(0,r.__)(`Pasted`,`elementor`),paste_style:(0,r.__)(`Style Pasted`,`elementor`),remove:(0,r.__)(`Removed`,`elementor`),reset_settings:(0,r.__)(`Settings Reset`,`elementor`),reset_style:(0,r.__)(`Style Reset`,`elementor`),selected:(0,r.__)(`Selected`,`elementor`)}),this.document=c,this.currentItem=new Backbone.Model({id:0})}return _createClass(HistoryManager,[{key:`getActionLabel`,value:function getActionLabel(r){return this.translations[r.type]?this.translations[r.type]:r.type}},{key:`navigate`,value:function navigate(r){var c=this.items.find(function(r){return r.get(`status`)===`not_applied`}),l=this.items.indexOf(c),u=r?l-1:l+1;if(!(!r&&!c||u<0||u>=this.items.length))return this.doItem(u),r?this.items.at(u):this.items.at(u-1)}},{key:`setActive`,value:function setActive(r){this.active=r}},{key:`getActive`,value:function getActive(){return this.active}},{key:`getItems`,value:function getItems(){return this.items}},{key:`startItem`,value:function startItem(r){return this.currentItemID=this.addItem(r),this.currentItemID}},{key:`endItem`,value:function endItem(r){this.currentItemID===r&&(this.currentItemID=null)}},{key:`deleteItem`,value:function deleteItem(r){var c=this.items.findWhere({id:r});this.items.remove(c),this.currentItemID=null}},{key:`isItemStarted`,value:function isItemStarted(){return this.currentItemID!==null}},{key:`getCurrentId`,value:function getCurrentId(){return this.currentItemID}},{key:`addItem`,value:function addItem(c){if(this.getActive()){for(this.items.length||this.items.add({status:`not_applied`,title:(0,r.__)(`Editing Started`,`elementor`),subTitle:``,action:``,editing_started:!0});this.items.length&&this.items.first().get(`status`)===`applied`;)this.items.shift();var l=this.currentItemID?this.currentItemID:new Date().getTime(),u=this.items.findWhere({id:l});return u||(u=new ot.default({id:l,title:c.title,subTitle:c.subTitle,action:this.getActionLabel(c),type:c.type}),this.startItemTitle=``,this.startItemAction=``),u.get(`items`).add(c,{at:0}),this.items.add(u,{at:0}),this.updateCurrentItem(u),l}}},{key:`doItem`,value:function doItem(r){this.setActive(!1);var c=this.items.at(r);c.get(`status`)===`not_applied`?this.undoItem(r):this.redoItem(r),this.setActive(!0);var l=elementor.getPanelView().getCurrentPageView().getOption(`editedElementView`),u;if($e.routes.isPartOf(`panel/editor`)&&l)l.isDestroyed?$e.route(`panel/history/actions`):u=l;else if(c instanceof Backbone.Model&&c.get(`items`).length){var p=c.get(`items`).first();if(p.get(`restore`)){var m=p.get(`type`)===`sub-add`?p.get(`data`).containerToRestore:p.get(`container`)||p.get(`containers`);Array.isArray(m)&&(m=m[0]),m&&(u=m.lookup().view)}}$e.internal(`document/save/set-is-modified`,{status:c.get(`id`)!==this.document.editor.lastSaveHistoryId}),this.updateCurrentItem(c),u&&!elementor.helpers.isInViewport(u.$el[0],elementor.$previewContents.find(`html`)[0])&&elementor.helpers.scrollToView(u.$el)}},{key:`undoItem`,value:function undoItem(r){for(var c=0;c<r;c++){var l=this.items.at(c);l.get(`status`)===`not_applied`&&(l.get(`items`).each(function(r){var c=r.get(`restore`);c&&c(r)}),l.set(`status`,`applied`))}}},{key:`redoItem`,value:function redoItem(r){for(var c=this.items.length-1;c>=r;c--){var l=this.items.at(c);if(l.get(`status`)===`applied`){var u=_.toArray(l.get(`items`).models).reverse();_(u).each(function(r){var c=r.get(`restore`);c&&c(r,!0)}),l.set(`status`,`not_applied`)}}}},{key:`updateCurrentItem`,value:function updateCurrentItem(r){this.currentItem=r,this.updatePanelPageCurrentItem()}},{key:`updatePanelPageCurrentItem`,value:function updatePanelPageCurrentItem(){$e.routes.is(`panel/history/actions`)&&elementor.getPanelView().getCurrentPageView().getCurrentTab().updateCurrentItem()}}])}(),ct=__commonJSMin(((r,c)=>{var l=Backbone.Model.extend();l.prototype.sync=function(){return null},c.exports=l})),lt=__commonJSMin(((r,c)=>{var l=ct();c.exports=Backbone.Collection.extend({model:l,comparator:function comparator(r){return-r.get(`timestamp`)}})}));b(),w(),P();var ut=lt(),dt=function(){function RevisionsManager(r){_classCallCheck(this,RevisionsManager),_defineProperty(this,`document`,void 0),_defineProperty(this,`revisions`,void 0),this.document=r}return _createClass(RevisionsManager,[{key:`getItems`,value:function getItems(){return this.revisions}},{key:`requestRevisions`,value:function requestRevisions(r){var c=this;if(this.revisions){r(this.revisions);return}elementorCommon.ajax.addRequest(`get_revisions`,{success:function success(l){c.revisions=new ut(l),c.revisions.on(`update`,c.onRevisionsUpdate.bind(c)),r(c.revisions)}})}},{key:`setEditorData`,value:function setEditorData(r){elementor.getPreviewView().collection.reset(r)}},{key:`getRevisionDataAsync`,value:function getRevisionDataAsync(r,c){return _.extend(c,{data:{id:r}}),elementorCommon.ajax.addRequest(`get_revision_data`,c)}},{key:`addRevisions`,value:function addRevisions(r){var c=this;this.requestRevisions(function(){r.forEach(function(r){var l=c.revisions.findWhere({id:r.id});l&&c.revisions.remove(l,{silent:!0}),c.revisions.add(r,{silent:!0})}),c.revisions.trigger(`update`)})}},{key:`deleteRevision`,value:function deleteRevision(r,c){var l={data:{id:r.get(`id`)},success:function success(){c.success&&c.success(),r.destroy()}};c.error&&(l.error=c.error),elementorCommon.ajax.addRequest(`delete_revision`,l)}},{key:`onRevisionsUpdate`,value:function onRevisionsUpdate(){$e.routes.is(`panel/history/revisions`)&&$e.routes.refreshContainer(`panel`)}}])}();w(),b(),P();var ft=_createClass(function Editor(){_classCallCheck(this,Editor),_defineProperty(this,`status`,`closed`),_defineProperty(this,`isSaving`,!1),_defineProperty(this,`isChanged`,!1),_defineProperty(this,`isChangedDuringSave`,!1),_defineProperty(this,`isSaved`,!0),_defineProperty(this,`lastSaveHistoryId`,0)});b(),w(),P();var pt=function(){function Document(r){_classCallCheck(this,Document),_defineProperty(this,`id`,null),_defineProperty(this,`history`,null),_defineProperty(this,`revisions`,null),_defineProperty(this,`container`,null),_defineProperty(this,`editor`,new ft),this.config=r,this.id=r.id,this.history=new st(this),this.revisions=new dt(this)}return _createClass(Document,[{key:`isDraft`,value:function isDraft(){return this.config.revisions.current_id!==this.config.id}}])}();N(),b(),w(),E(),D(),A();function _callSuper$311(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$311()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$311,`_callSuper`);function _isNativeReflectConstruct$311(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$311=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$311,`_isNativeReflectConstruct`);var mt=function(c){function Close(){return _classCallCheck(this,Close),_callSuper$311(this,Close,arguments)}return _inherits(Close,c),_createClass(Close,[{key:`validateArgs`,value:function validateArgs(r){this.requireArgument(`id`,r)}},{key:`apply`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(r){var c,l,u,p,m,h;return B.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(c=r.id,l=r.mode,u=r.onClose,p=elementor.documents.get(c),p.editor.status!==`closed`){g.next=1;break}return g.abrupt(`return`,jQuery.Deferred().resolve());case 1:if(!(!l&&(p.editor.isChanged||p.isDraft()))){g.next=2;break}return m=jQuery.Deferred(),this.getConfirmDialog(m).show(),g.abrupt(`return`,m.promise());case 2:h=l,g.next=h===`autosave`?3:h===`save`?5:h===`discard`?7:9;break;case 3:return g.next=4,$e.run(`document/save/auto`);case 4:return g.abrupt(`continue`,9);case 5:return g.next=6,$e.run(`document/save/update`);case 6:return g.abrupt(`continue`,9);case 7:return g.next=8,$e.run(`document/save/discard`,{document:p});case 8:return g.abrupt(`continue`,9);case 9:return $e.run(`document/elements/deselect-all`),g.next=10,$e.internal(`editor/documents/unload`,{document:p});case 10:if(!u){g.next=11;break}return g.next=11,u(p);case 11:return g.abrupt(`return`,jQuery.Deferred().resolve());case 12:case`end`:return g.stop()}},_callee,this)}));function apply(c){return r.apply(this,arguments)}return apply}()},{key:`getConfirmDialog`,value:function getConfirmDialog(c){var l=this;return this.confirmDialog||(this.confirmDialog=elementorCommon.dialogsManager.createWidget(`confirm`,{id:`elementor-document-save-on-close`,headerMessage:(0,r.__)(`You are leaving to a separate site part.`,`elementor`),message:(0,r.__)(`Save your changes before moving on because the current document and the one you’re moving to are separate site parts.`,`elementor`),position:{my:`center center`,at:`center center`},strings:{confirm:(0,r.__)(`Save & leave`,`elementor`),cancel:(0,r.__)(`Don't leave`,`elementor`)},onHide:function onHide(){_.defer(function(){l.args.mode||c.reject(`Close document has been canceled.`)})},onCancel:function onCancel(){window.top.$e.internal(`panel/state-ready`),c.reject(`Close document has been canceled.`)},onConfirm:function onConfirm(){l.args.mode=`save`,$e.run(`editor/documents/close`,l.args).then(function(){c.resolve()})}})),this.confirmDialog}}])}($e.modules.CommandBase);b(),w(),E(),D(),A();function _callSuper$310(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$310()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$310,`_callSuper`);function _isNativeReflectConstruct$310(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$310=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$310,`_isNativeReflectConstruct`);var ht=function(r){function Open(){return _classCallCheck(this,Open),_callSuper$310(this,Open,arguments)}return _inherits(Open,r),_createClass(Open,[{key:`validateArgs`,value:function validateArgs(r){this.requireArgument(`id`,r)}},{key:`apply`,value:function apply(r){var c=r.id,l=r.selector,u=r.shouldScroll,p=u===void 0||u,m=r.shouldNavigateToDefaultRoute,h=m===void 0||m,g=r.setAsInitial,v=g!==void 0&&g,y=elementor.documents.getCurrent();return y&&c===y.id?jQuery.Deferred().resolve():(elementor.loaded&&elementor.$previewContents.find(`.elementor-${c}`).addClass(`loading`),v&&(elementorCommon.ajax.addRequestConstant(`initial_document_id`,c),elementor.documents.invalidateCache()),elementor.documents.request(c).then(function(r){return elementorCommon.elements.$body.addClass(`elementor-editor-${r.type}`),$e.internal(`editor/documents/load`,{config:r,selector:l,setAsInitial:v,shouldScroll:p,shouldNavigateToDefaultRoute:h})}).always(function(){elementor.loaded&&elementor.$previewContents.find(`.elementor-${c}`).removeClass(`loading`)}))}}])}($e.modules.CommandBase);N(),b(),w(),E(),D(),A();function _callSuper$309(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$309()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$309,`_callSuper`);function _isNativeReflectConstruct$309(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$309=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$309,`_isNativeReflectConstruct`);var gt=function(r){function Preview(){return _classCallCheck(this,Preview),_callSuper$309(this,Preview,arguments)}return _inherits(Preview,r),_createClass(Preview,[{key:`validateArgs`,value:function validateArgs(r){this.requireArgument(`id`,r)}},{key:`apply`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(r){var c,l,u,p;return B.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(c=r.id,l=$e.components.get(`document/save`),u=l.footerSaver,p=elementor.documents.get(c),!p.editor.isChanged){m.next=1;break}return m.next=1,$e.run(`document/save/auto`,{force:!0});case 1:u.previewWindow=open(p.config.urls.wp_preview,`wp-preview-${p.id}`);case 2:case`end`:return m.stop()}},_callee)}));function apply(c){return r.apply(this,arguments)}return apply}()}])}($e.modules.CommandBase);N(),b(),w(),E(),D(),A();function _callSuper$308(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$308()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$308,`_callSuper`);function _isNativeReflectConstruct$308(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$308=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$308,`_isNativeReflectConstruct`);var _t=function(r){function View(){return _classCallCheck(this,View),_callSuper$308(this,View,arguments)}return _inherits(View,r),_createClass(View,[{key:`validateArgs`,value:function validateArgs(r){this.requireArgument(`id`,r)}},{key:`apply`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(r){var c,l;return B.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:c=r.id,l=elementor.documents.get(c),open(l.config.urls.permalink,`wp-view-${l.id}`);case 1:case`end`:return u.stop()}},_callee)}));function apply(c){return r.apply(this,arguments)}return apply}()}])}($e.modules.CommandBase);b(),w(),E(),D(),A();function _callSuper$307(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$307()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$307,`_callSuper`);function _isNativeReflectConstruct$307(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$307=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$307,`_isNativeReflectConstruct`);var vt=function(r){function Switch(){return _classCallCheck(this,Switch),_callSuper$307(this,Switch,arguments)}return _inherits(Switch,r),_createClass(Switch,[{key:`validateArgs`,value:function validateArgs(r){this.requireArgument(`id`,r)}},{key:`apply`,value:function apply(r){var c=r.id,l=r.mode,u=r.onClose,p=r.shouldScroll,m=p===void 0||p,h=r.shouldNavigateToDefaultRoute,g=h===void 0||h,v=r.setAsInitial,y=v!==void 0&&v;return y&&jQuery(`#elementor-preview-loading`).show(),$e.run(`editor/documents/close`,{id:elementor.documents.getCurrentId(),mode:l,onClose:u,selector:r.selector}).then(function(){return $e.run(`editor/documents/open`,{id:c,shouldScroll:m,shouldNavigateToDefaultRoute:g,selector:r.selector,setAsInitial:y})}).then(function(){elementor.getPanelView().getPages(`menu`).view.addExitItem()})}}])}($e.modules.CommandBase),yt=__exportAll({Close:()=>mt,Open:()=>ht,Preview:()=>gt,Switch:()=>vt,View:()=>_t});function _objectWithoutPropertiesLoose(r,c){if(r==null)return{};var l={};for(var u in r)if({}.hasOwnProperty.call(r,u)){if(c.indexOf(u)!==-1)continue;l[u]=r[u]}return l}function _objectWithoutProperties(r,c){if(r==null)return{};var l,u,p=_objectWithoutPropertiesLoose(r,c);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(r);for(u=0;u<m.length;u++)l=m[u],c.indexOf(l)===-1&&{}.propertyIsEnumerable.call(r,l)&&(p[l]=r[l])}return p}b(),w(),E(),D(),A();var bt=[`shouldNavigateToDefaultRoute`];function _callSuper$306(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$306()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$306,`_callSuper`);function _isNativeReflectConstruct$306(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$306=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$306,`_isNativeReflectConstruct`);var xt=function(r){function AttachPreview(){return _classCallCheck(this,AttachPreview),_callSuper$306(this,AttachPreview,arguments)}return _inherits(AttachPreview,r),_createClass(AttachPreview,[{key:`validateArgs`,value:function validateArgs(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.selector&&(this.requireArgumentType(`selector`,`string`),elementor.$previewContents.find(r.selector).length===0))throw Error("Invalid argument. The `selector` argument must be existed selector.")}},{key:`apply`,value:function apply(){var r=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=c.shouldNavigateToDefaultRoute,u=l===void 0||l,p=_objectWithoutProperties(c,bt),m=elementor.documents.getCurrent();return $e.data.get(`globals/index`).then(function(){return elementor.trigger(`globals:loaded`),r.attachDocumentToPreview(m,p)}).then(function(){if(elementor.toggleDocumentCssFiles(m,!1),elementor.onEditModeSwitched(),elementor.checkPageStatus(),elementor.trigger(`document:loaded`,m),u)return $e.internal(`panel/open-default`,{refresh:!0})})}},{key:`attachDocumentToPreview`,value:function attachDocumentToPreview(r,c){var l=c.selector,u=l===void 0?`.elementor-`+r.id:l,p=c.shouldScroll,m=p===void 0||p;return new Promise(function(c,l){if(!r)return l(`Can't attach preview, there is no open document.`);if(!r.config.elements)return c();r.$element=elementor.$previewContents.find(u);var p=r.id===elementor.config.initial_document.id;if(!r.$element.length)return p&&elementor.onPreviewElNotFound(),l(`Can't attach preview to document '${r.id}', element '${u}' was not found.`);r.$element.addClass(`elementor-edit-area elementor-edit-mode`),p||elementor.documents.getCurrent().$element.addClass(`elementor-embedded-editor`),elementor.initElements(),elementor.initPreviewView(r),r.container.view=elementor.getPreviewView(),r.container.model.attributes.elements=elementor.elements,m&&elementor.helpers.scrollToView(r.$element),r.$element.addClass(`elementor-edit-area-active`).removeClass(`elementor-editor-preview`),c()})}}])}($e.modules.CommandInternalBase);b(),w(),P();function ownKeys$21(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}__name(ownKeys$21,`ownKeys`);function _objectSpread$21(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$21(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$21(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}__name(_objectSpread$21,`_objectSpread`);var St=function(){function Heartbeat(r){var c=this;_classCallCheck(this,Heartbeat),_defineProperty(this,`modal`,null),_defineProperty(this,`externalChangeModal`,null),_defineProperty(this,`document`,null),_defineProperty(this,`lastSyncedAt`,0),_defineProperty(this,`pendingSyncTime`,!0),_defineProperty(this,`lastStateOfDocumentChange`,!1),_defineProperty(this,`getModal`,function(){return c.modal||(c.modal=c.initModal()),c.modal}),this.document=r,this.lastStateOfDocumentChange=r.editor.isChanged,this.onSend=this.onSend.bind(this),this.onTick=this.onTick.bind(this),this.onRefreshNonce=this.onRefreshNonce.bind(this),this.onDocumentChanged=this.onDocumentChanged.bind(this),this.onDocumentLoaded=this.onDocumentLoaded.bind(this),this.bindEvents(),wp.heartbeat.connectNow()}return _createClass(Heartbeat,[{key:`initModal`,value:function initModal(){return elementorCommon.dialogsManager.createWidget(`confirm`,{headerMessage:(0,r.__)(`Take Over`,`elementor`),strings:{confirm:(0,r.__)(`Take Over`,`elementor`),cancel:(0,r.__)(`Go Back`,`elementor`)},defaultOption:`confirm`,onConfirm:function onConfirm(){wp.heartbeat.enqueue(`elementor_force_post_lock`,!0),wp.heartbeat.connectNow()},onCancel:function onCancel(){parent.history.go(-1)}})}},{key:`showLockMessage`,value:function showLockMessage(c){this.getModal().setMessage((0,r.sprintf)((0,r.__)(`%s has taken over and is currently editing. Do you want to take over this page editing?`,`elementor`),c)).show()}},{key:`onSend`,value:function onSend(r,c){c.elementor_post_lock={post_ID:this.document.id},c.elementor_has_unsaved=this.document.editor.isChanged?this.document.id:null}},{key:`onTick`,value:function onTick(r,c){var l;this.pendingSyncTime&&c.elementor_server_time&&(this.lastSyncedAt=c.elementor_server_time,this.pendingSyncTime=!1),c.locked_user?(this.document.editor.isChanged&&$e.run(`document/save/auto`,{document:this.document}),this.showLockMessage(c.locked_user)):this.getModal().hide();var u=(l=c.elementor_mcp_mutation)==null?void 0:l.mutated_at;u&&u>this.lastSyncedAt&&this.showExternalChangeModal(),elementorCommon.ajax.addRequestConstant(`_nonce`,c.elementorNonce)}},{key:`onRefreshNonce`,value:function onRefreshNonce(r,c){var l=c[`elementor-refresh-nonces`];l&&(l.heartbeatNonce&&elementorCommon.ajax.addRequestConstant(`_nonce`,l.elementorNonce),l.heartbeatNonce&&(window.heartbeatSettings.nonce=l.heartbeatNonce))}},{key:`onDocumentLoaded`,value:function onDocumentLoaded(){this.pendingSyncTime=!0}},{key:`reloadDocument`,value:function reloadDocument(){$e.internal(`document/save/set-is-modified`,{status:!1}),this._doReload()}},{key:`_doReload`,value:function _doReload(){window.location.reload()}},{key:`forceSave`,value:function forceSave(){this.pendingSyncTime=!0,$e.run(`document/save/save`,{document:this.document})}},{key:`showExternalChangeModal`,value:function showExternalChangeModal(){var c=this;if(!this.externalChangeModal){var l=this.document.editor.isChanged,u={headerMessage:(0,r.__)(`Page Updated by AI`,`elementor`),defaultOption:`confirm`,onConfirm:function onConfirm(){return c.reloadDocument()}},p=l?_objectSpread$21(_objectSpread$21({},u),{},{message:(0,r.__)(`This page was changed externally. Save your changes or reload to get the latest version.`,`elementor`),strings:{confirm:(0,r.__)(`Force Save`,`elementor`),cancel:(0,r.__)(`Reload`,`elementor`)},onConfirm:function onConfirm(){return c.forceSave()},onCancel:function onCancel(){return c.reloadDocument()}}):_objectSpread$21(_objectSpread$21({},u),{},{message:(0,r.__)(`This page was changed externally. Reload to get the latest version.`,`elementor`),strings:{confirm:(0,r.__)(`Reload`,`elementor`)}});this.externalChangeModal=elementorCommon.dialogsManager.createWidget(l?`confirm`:`alert`,_objectSpread$21(_objectSpread$21({},p),{},{closeButton:!1,hide:{onOutsideClick:!1,onEscKeyPress:!1,onBackgroundClick:!1}})),this.externalChangeModal.show()}}},{key:`onDocumentChanged`,value:function onDocumentChanged(){var r=this.document.editor.isChanged;r!==this.lastStateOfDocumentChange&&(r&&wp.heartbeat.connectNow(),this.lastStateOfDocumentChange=r)}},{key:`bindEvents`,value:function bindEvents(){jQuery(document).on({"heartbeat-send":this.onSend,"heartbeat-tick":this.onTick,"heartbeat-tick.wp-refresh-nonces":this.onRefreshNonce}),elementor.channels.editor.on(`status:change`,this.onDocumentChanged),elementor.on(`document:loaded`,this.onDocumentLoaded)}},{key:`destroy`,value:function destroy(){jQuery(document).off({"heartbeat-send":this.onSend,"heartbeat-tick":this.onTick,"heartbeat-tick.wp-refresh-nonces":this.onRefreshNonce}),elementor.channels.editor.off(`status:change`,this.onDocumentChanged),elementor.off(`document:loaded`,this.onDocumentLoaded)}}])}();b(),w(),E(),D(),A();function _callSuper$305(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$305()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$305,`_callSuper`);function _isNativeReflectConstruct$305(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$305=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$305,`_isNativeReflectConstruct`);var Ct=function(r){function Load(){return _classCallCheck(this,Load),_callSuper$305(this,Load,arguments)}return _inherits(Load,r),_createClass(Load,[{key:`validateArgs`,value:function validateArgs(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.requireArgument(`config`,r)}},{key:`apply`,value:function apply(r){var c=r.config,l=r.setAsInitial,u=l!==void 0&&l,p=r.shouldScroll,m=p===void 0||p,h=r.shouldNavigateToDefaultRoute,g=h===void 0||h;elementorCommon.config.experimentalFeatures.additional_custom_breakpoints&&(c.settings.controls=elementor.generateResponsiveControls(c.settings.controls)),elementor.config.document=c,elementor.setAjax(),elementor.addWidgetsCache(c.widgets),elementor.templates.init();var v=new pt(c);elementor.documents.add(v),elementor.documents.setCurrent(v),u&&elementor.documents.setInitialById(v.id),elementor.settings.page=new elementor.settings.modules.page(c.settings),v.container=elementor.settings.page.getEditedView().getContainer(),v.container.document=v,elementor.heartbeat=new St(v);var y=elementor.config.document.version&&elementor.helpers.compareVersions(elementor.config.document.version,`2.5.0`,`<`);return!elementor.config.user.introduction.flexbox&&y&&elementor.showFlexBoxAttentionDialog(),elementor.loaded?$e.data.get(`globals/index`).then(function(){return u?(elementor.reloadPreview(),Promise.resolve()):$e.internal(`editor/documents/attach-preview`,{shouldScroll:m,shouldNavigateToDefaultRoute:g,selector:r.selector})}):Promise.resolve(v)}}])}($e.modules.CommandInternalBase);b(),w(),E(),D(),A();function _callSuper$304(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$304()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$304,`_callSuper`);function _isNativeReflectConstruct$304(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$304=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$304,`_isNativeReflectConstruct`);var wt=function(r){function Unload(){return _classCallCheck(this,Unload),_callSuper$304(this,Unload,arguments)}return _inherits(Unload,r),_createClass(Unload,[{key:`validateArgs`,value:function validateArgs(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.requireArgumentConstructor(`document`,pt,r)}},{key:`apply`,value:function apply(r){return new Promise(function(c,l){var u=r.document;u.id!==elementor.config.document.id&&l(),elementor.elements=[],elementor.saver.stopAutoSave(u),elementor.channels.dataEditMode.trigger(`switch`,`preview`),u.$element&&u.$element.removeClass(`elementor-edit-area-active elementor-edit-mode`).addClass(`elementor-editor-preview`),elementorCommon.elements.$body.removeClass(`elementor-editor-${u.config.type}`),elementor.settings.page.destroy(),elementor.heartbeat.destroy(),u.editor.status=`closed`,elementor.config.document={},elementor.documents.unsetCurrent(),elementor.trigger(`document:unloaded`,u),c()})}}])}($e.modules.CommandInternalBase),Tt=__exportAll({AttachPreview:()=>xt,Load:()=>Ct,Unload:()=>wt});function getQueryParam(r){return new URLSearchParams(window.location.search).get(r)}function setQueryParam(r,c){var l=new URL(window.location.href);c===null?l.searchParams.delete(r):l.searchParams.set(r,c),history.replaceState({},``,l)}function removeQueryParam(r){setQueryParam(r,null)}b(),w(),E(),D(),A();function _callSuper$303(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$303()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$303,`_callSuper`);function _isNativeReflectConstruct$303(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$303=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$303,`_isNativeReflectConstruct`);var Et=function(r){function RemoveActiveDocumentQueryParam(){return _classCallCheck(this,RemoveActiveDocumentQueryParam),_callSuper$303(this,RemoveActiveDocumentQueryParam,arguments)}return _inherits(RemoveActiveDocumentQueryParam,r),_createClass(RemoveActiveDocumentQueryParam,[{key:`getCommand`,value:function getCommand(){return`editor/documents/close`}},{key:`getId`,value:function getId(){return`remove-active-document-query-param`}},{key:`apply`,value:function apply(r){var c=parseInt(getQueryParam(`active-document`));c===parseInt(r.id)&&removeQueryParam(`active-document`),r.previous_active_document_id=c}}])}($e.modules.hookUI.After);b(),w(),E(),D(),A();function _callSuper$302(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$302()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$302,`_callSuper`);function _isNativeReflectConstruct$302(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$302=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$302,`_isNativeReflectConstruct`);var Dt=function(r){function SetActiveDocumentQueryParam(){return _classCallCheck(this,SetActiveDocumentQueryParam),_callSuper$302(this,SetActiveDocumentQueryParam,arguments)}return _inherits(SetActiveDocumentQueryParam,r),_createClass(SetActiveDocumentQueryParam,[{key:`getCommand`,value:function getCommand(){return`editor/documents/open`}},{key:`getId`,value:function getId(){return`set-active-document-query-param`}},{key:`getConditions`,value:function getConditions(r){return parseInt(r.id)!==parseInt(elementor.config.initial_document.id)}},{key:`apply`,value:function apply(r){var c=parseInt(r.id);isNaN(c)||setQueryParam(`active-document`,r.id)}}])}($e.modules.hookUI.After);b(),w(),E(),D(),A();function _callSuper$301(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$301()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$301,`_callSuper`);function _isNativeReflectConstruct$301(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$301=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$301,`_isNativeReflectConstruct`);var Ot=function(r){function ClearDynamicTagsCache(){return _classCallCheck(this,ClearDynamicTagsCache),_callSuper$301(this,ClearDynamicTagsCache,arguments)}return _inherits(ClearDynamicTagsCache,r),_createClass(ClearDynamicTagsCache,[{key:`getCommand`,value:function getCommand(){return`editor/documents/open`}},{key:`getId`,value:function getId(){return`clear-dynamic-tags-cache-on-document-open`}},{key:`apply`,value:function apply(){elementor.dynamicTags.cleanCache()}}])}($e.modules.hookUI.Before);N(),b(),w(),E(),D(),A(),P();function _callSuper$300(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$300()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$300,`_callSuper`);function _isNativeReflectConstruct$300(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$300=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$300,`_isNativeReflectConstruct`);var kt=function(r){function SwitchToActiveDocument(){return _classCallCheck(this,SwitchToActiveDocument),_callSuper$300(this,SwitchToActiveDocument,arguments)}return _inherits(SwitchToActiveDocument,r),_createClass(SwitchToActiveDocument,[{key:`getCommand`,value:function getCommand(){return`editor/documents/attach-preview`}},{key:`getId`,value:function getId(){return`switch-to-active-document`}},{key:`getConditions`,value:function getConditions(){return!this.constructor.calledOnce&&elementor.documents.getCurrentId()===elementor.config.initial_document.id}},{key:`apply`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(){var r,c;return B.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(this.constructor.calledOnce=!0,r=parseInt(getQueryParam(`active-document`)),c=r===elementor.documents.getCurrentId(),!(isNaN(r)||c)){l.next=1;break}return l.abrupt(`return`);case 1:return l.prev=1,l.next=2,$e.run(`editor/documents/switch`,{id:r,mode:`autosave`});case 2:l.next=4;break;case 3:l.prev=3,l.catch(1),$e.run(`editor/documents/switch`,{id:elementor.config.initial_document.id,mode:`autosave`}),removeQueryParam(`active-document`);case 4:case`end`:return l.stop()}},_callee,this,[[1,3]])}));function apply(){return r.apply(this,arguments)}return apply}()}])}($e.modules.hookUI.After);_defineProperty(kt,`calledOnce`,!1),b(),w(),E(),D(),A(),P();function _callSuper$299(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$299()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$299,`_callSuper`);function _isNativeReflectConstruct$299(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$299=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$299,`_isNativeReflectConstruct`);var At=function(r){function SwitchToActiveTab(){return _classCallCheck(this,SwitchToActiveTab),_callSuper$299(this,SwitchToActiveTab,arguments)}return _inherits(SwitchToActiveTab,r),_createClass(SwitchToActiveTab,[{key:`getCommand`,value:function getCommand(){return`editor/documents/switch`}},{key:`getId`,value:function getId(){return`switch-to-active-tab`}},{key:`getConditions`,value:function getConditions(){return!this.constructor.calledOnce}},{key:`apply`,value:function apply(){this.constructor.calledOnce=!0;try{var r=getQueryParam(`active-tab`);r&&$e.route(`panel/global/`+r)}catch(r){removeQueryParam(`active-tab`)}}}])}($e.modules.hookUI.After);_defineProperty(At,`calledOnce`,!1),b(),w(),E(),D(),A();function _callSuper$298(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$298()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$298,`_callSuper`);function _isNativeReflectConstruct$298(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$298=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$298,`_isNativeReflectConstruct`);var jt=function(r){function RemoveActiveTabQueryParam(){return _classCallCheck(this,RemoveActiveTabQueryParam),_callSuper$298(this,RemoveActiveTabQueryParam,arguments)}return _inherits(RemoveActiveTabQueryParam,r),_createClass(RemoveActiveTabQueryParam,[{key:`getCommand`,value:function getCommand(){return`editor/documents/close`}},{key:`getId`,value:function getId(){return`remove-active-tab-query-param`}},{key:`apply`,value:function apply(r){var c=getQueryParam(`active-tab`);parseInt(r.previous_active_document_id)===parseInt(r.id)&&c&&removeQueryParam(`active-tab`)}}])}($e.modules.hookUI.After);b(),w(),E(),D(),A();function _callSuper$297(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$297()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$297,`_callSuper`);function _isNativeReflectConstruct$297(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$297=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$297,`_isNativeReflectConstruct`);var Mt=function(r){function RemoveActiveTabQueryParamBack(){return _classCallCheck(this,RemoveActiveTabQueryParamBack),_callSuper$297(this,RemoveActiveTabQueryParamBack,arguments)}return _inherits(RemoveActiveTabQueryParamBack,r),_createClass(RemoveActiveTabQueryParamBack,[{key:`getCommand`,value:function getCommand(){return`panel/global/back`}},{key:`getId`,value:function getId(){return`remove-active-tab-query-param-back`}},{key:`apply`,value:function apply(){getQueryParam(`active-tab`)&&removeQueryParam(`active-tab`)}}])}($e.modules.hookUI.After),Nt=__exportAll({ClearDynamicTagsCache:()=>Ot,RemoveActiveDocumentQueryParam:()=>Et,RemoveActiveTabQueryParam:()=>jt,RemoveActiveTabQueryParamBack:()=>Mt,SetActiveDocumentQueryParam:()=>Dt,SwitchToActiveDocument:()=>kt,SwitchToActiveTab:()=>At});b(),w(),E(),D(),k(),A();function _callSuper$296(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$296()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$296,`_callSuper`);function _isNativeReflectConstruct$296(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$296=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$296,`_isNativeReflectConstruct`);function _superPropGet$34(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}__name(_superPropGet$34,`_superPropGet`);var Pt=function(c){function Component(){return _classCallCheck(this,Component),_callSuper$296(this,Component,arguments)}return _inherits(Component,c),_createClass(Component,[{key:`__construct`,value:function __construct(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_superPropGet$34(Component,`__construct`,this,3)([r]),this.documents={},this.currentDocument=null,this.saveInitialDocumentToCache()}},{key:`getNamespace`,value:function getNamespace(){return`editor/documents`}},{key:`defaultCommands`,value:function defaultCommands(){return this.importCommands(yt)}},{key:`defaultHooks`,value:function defaultHooks(){return this.importHooks(Nt)}},{key:`defaultCommandsInternal`,value:function defaultCommandsInternal(){return this.importCommands(Tt)}},{key:`add`,value:function add(r){var c=r.id;return this.documents[c]=r,r}},{key:`addDocumentByConfig`,value:function addDocumentByConfig(r){return this.add(new pt(r))}},{key:`get`,value:function get(r){return this.documents[r]!==void 0&&this.documents[r]}},{key:`getCurrent`,value:function getCurrent(){return this.currentDocument}},{key:`getCurrentId`,value:function getCurrentId(){return this.currentDocument.id}},{key:`getInitialId`,value:function getInitialId(){return elementor.config.initial_document.id}},{key:`setInitialById`,value:function setInitialById(r){var c=this.get(r);c&&(elementor.config.initial_document=c.config,elementorCommon.ajax.addRequestConstant(`initial_document_id`,c.id))}},{key:`setCurrent`,value:function setCurrent(r){if(this.documents[r.id]===void 0)throw Error(`The document with id: '${r.id}' does not exist/loaded`);this.currentDocument&&(this.currentDocument.editor.status=`closed`),this.currentDocument=this.documents[r.id],this.currentDocument.editor.status=`open`,elementorCommon.ajax.addRequestConstant(`editor_post_id`,r.id)}},{key:`isCurrent`,value:function isCurrent(r){return parseInt(r)===this.currentDocument.id}},{key:`unsetCurrent`,value:function unsetCurrent(){this.currentDocument=null,elementorCommon.ajax.addRequestConstant(`editor_post_id`,null)}},{key:`request`,value:function request(r){return elementorCommon.ajax.load(this.getRequestArgs(r),!0)}},{key:`invalidateCache`,value:function invalidateCache(){var r=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(c){elementorCommon.ajax.invalidateCache(this.getRequestArgs(c));return}Object.keys(this.documents).forEach(function(c){elementorCommon.ajax.invalidateCache(r.getRequestArgs(c))})}},{key:`getRequestArgs`,value:function getRequestArgs(c){return c=parseInt(c),{action:`get_document_config`,unique_id:`document-${c}`,data:{id:c},success:function success(r){return r},error:function error(c){var l;_.isString(c)?l=c:c.statusText?(l=elementor.createAjaxErrorMessage(c),c.readyState===0&&(l+=` `+(0,r.__)(`Cannot load editor`,`elementor`))):c[0]&&c[0].code&&(l=(0,r.__)(`Server Error`,`elementor`)+` `+c[0].code),alert(l)}}}},{key:`saveInitialDocumentToCache`,value:function saveInitialDocumentToCache(){var r=elementor.config.initial_document;elementorCommon.ajax.addRequestCache(this.getRequestArgs(r.id),r)}}])}(U),Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt=__esmMin((()=>{Ft=function matchUserAgent(r){return It.indexOf(r)>=0},It=navigator.userAgent,Lt=!!window.opr&&!!opr.addons||!!window.opera||Ft(` OPR/`),Rt=Ft(`Firefox`),zt=/^((?!chrome|android).)*safari/i.test(It)||/constructor/i.test(window.HTMLElement)||function(r){return r.toString()===`[object SafariRemoteNotification]`}(!window.safari||typeof safari<`u`&&safari.pushNotification),Bt=/Trident|MSIE/.test(It)&&!!document.documentMode,Vt=!Bt&&!!window.StyleMedia||Ft(`Edg`),Ht=!!window.chrome&&Ft(`Chrome`)&&!(Vt||Lt),Ut=Ft(`Chrome`)&&!!window.CSS,Wt=Ft(`AppleWebKit`)&&!Ut,Gt={isTouchDevice:`ontouchstart`in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,appleWebkit:Wt,blink:Ut,chrome:Ht,edge:Vt,firefox:Rt,ie:Bt,mac:Ft(`Macintosh`),opera:Lt,safari:zt,webkit:Ft(`AppleWebKit`)}})),qt,Jt=__esmMin((()=>{b(),w(),qt=function(){function ElementBase(){_classCallCheck(this,ElementBase)}return _createClass(ElementBase,[{key:`getType`,value:function getType(){elementorModules.ForceMethodImplementation()}},{key:`getView`,value:function getView(){elementorModules.ForceMethodImplementation()}},{key:`getEmptyView`,value:function getEmptyView(){elementorModules.ForceMethodImplementation()}},{key:`getModel`,value:function getModel(){elementorModules.ForceMethodImplementation()}}])}()}));function _callSuper$295(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$295()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$295(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$295=function _isNativeReflectConstruct(){return!!r})()}var Yt,Xt=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$295,`_callSuper`),__name(_isNativeReflectConstruct$295,`_isNativeReflectConstruct`),Yt=function(r){function BaseElementModel(){return _classCallCheck(this,BaseElementModel),_callSuper$295(this,BaseElementModel,arguments)}return _inherits(BaseElementModel,r),_createClass(BaseElementModel,[{key:`isValidChild`,value:function isValidChild(r){elementorModules.ForceMethodImplementation({attributes:this.attributes})}}])}(Backbone.Model)})),Zt=__commonJSMin(((r,c)=>{c.exports=elementorModules.editor.elements.models.BaseSettings.extend({defaults:{_column_size:100}})}));function _callSuper$294(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$294()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$294(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$294=function _isNativeReflectConstruct(){return!!r})()}var Qt,$t=__esmMin((()=>{w(),b(),E(),D(),A(),tt(),__name(_callSuper$294,`_callSuper`),__name(_isNativeReflectConstruct$294,`_isNativeReflectConstruct`),Qt=function(r){function ElementTypeNotFound(r){return _classCallCheck(this,ElementTypeNotFound),_callSuper$294(this,ElementTypeNotFound,[`Element type not found: '${r}'`])}return _inherits(ElementTypeNotFound,r),_createClass(ElementTypeNotFound)}(_wrapNativeSuper(Error))})),en=__commonJSMin(((r,c)=>{$t();var l=Backbone.Collection.extend({add:function add(r,c,l){if((!c||!c.silent)&&!l)throw`Call Error: Adding model to element collection is allowed only by the dedicated addChildModel() method.`;return Backbone.Collection.prototype.add.call(this,r,c)},model:function model(r,c){var l=Backbone.Model;if(r.elType){var u=r.widgetType||r.elType,p=elementor.elementsManager.getElementTypeClass(u);if(!p)throw new Qt(u);l=elementor.hooks.applyFilters(`element/model`,p.getModel(),r)}return new l(r,c)},clone:function clone(){var r=Backbone.Collection.prototype.clone.apply(this,arguments),c=new l;return r.forEach(function(r){c.add(r.clone(),null,!0)}),c}});l.prototype.sync=l.prototype.fetch=l.prototype.save=_.noop,c.exports=l})),tn=__commonJSMin(((r,c)=>{x(),P(),Xt();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var l=Zt(),u=Yt.extend({defaults:{id:``,elType:``,isInner:!1,isLocked:!1,settings:{},defaultEditSettings:{defaultEditRoute:`content`},interactions:{}},remoteRender:!1,_htmlCache:null,_jqueryXhr:null,renderOnLeave:!1,initialize:function initialize(r){var c=this.get(`elType`),l=this.get(`elements`);if(l!==void 0){var u=en();this.set(`elements`,new u(l))}c===`widget`&&(this.remoteRender=!0,this.setHtmlCache(r.htmlCache||``)),delete r.htmlCache,this.renderRemoteServer=_.throttle(this.renderRemoteServer,1e3),this.initSettings(),this.initEditSettings(),this.on({destroy:this.onDestroy,"editor:close":this.onCloseEditor})},initSettings:function initSettings(){var r=this.get(`elType`),c=this.get(`settings`),u={column:l}[r]||elementorModules.editor.elements.models.BaseSettings;jQuery.isEmptyObject(c)&&(c=structuredClone(c)),r===`widget`&&(c.widgetType=this.get(`widgetType`)),c=_objectSpread(_objectSpread({},c),{},{elType:r}),c.isInner=this.get(`isInner`);var p=this.get(`_title`);p&&(c._title=p),c=new u(c,{controls:elementor.getElementControls(this)}),this.set(`settings`,c),elementorFrontend.config.elements.data[this.cid]=c},initEditSettings:function initEditSettings(){var r=new Backbone.Model(this.get(`defaultEditSettings`));this.set(`editSettings`,r),elementorFrontend.config.elements.editSettings[this.cid]=r},setSetting:function setSetting(r,c){var l=this.get(`settings`);if(_typeof(r)!==`object`){var u=r.split(`.`),p=u.length===3;r=u[0],p&&(l=l.get(r).models[u[1]],r=u[2])}l.setExternalChange(r,c)},getSetting:function getSetting(r){var c=r.split(`.`),l=c.length===3,u=this.get(`settings`);r=c[0];var p=u.get(r);return p===void 0?``:(l&&(p=p.models[c[1]].get(c[2])),p)},setHtmlCache:function setHtmlCache(r){this._htmlCache=r},getHtmlCache:function getHtmlCache(){return this._htmlCache},getDefaultTitle:function getDefaultTitle(){return elementor.getElementData(this).title},getTitle:function getTitle(){var r,c=this.get(`editor_settings`),l=(c==null?void 0:c.title)||this.getSetting(`_title`)||this.getSetting(`presetTitle`),u=this.get(`custom`);return!l&&(r=u==null?void 0:u.isPreset)!=null&&r?this.get(`title`)||l:(l||(l=this.getDefaultTitle()),l)},getVisibility:function getVisibility(){if(elementor.helpers.isAtomicWidget(this)){var r;return!!((r=this.get(`editor_settings`))!=null&&r.is_hidden)}return!!this.get(`hidden`)},setVisibility:function setVisibility(){var r=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(elementor.helpers.isAtomicWidget(this)){var c=this.get(`editor_settings`)||{};this.set(`editor_settings`,_objectSpread(_objectSpread({},c),{},{is_hidden:r}))}else this.set(`hidden`,r)},toggleVisibility:function toggleVisibility(){var r=this.getVisibility();this.setVisibility(!r)},getIcon:function getIcon(){var r,c=elementor.getElementData(this).icon,l=this.get(`custom`);if((r=l==null?void 0:l.isPreset)!=null&&r)return this.attributes.custom.preset_settings.presetIcon||c;var u=this.getSetting(`presetIcon`);return typeof u==`string`&&u.trim()!==``?u:c},createRemoteRenderRequest:function createRemoteRenderRequest(){var r=this.toJSON();return elementorCommon.ajax.addRequest(`render_widget`,{unique_id:this.cid,data:{data:r},success:this.onRemoteGetHtml.bind(this)},!0).jqXhr},renderRemoteServer:function renderRemoteServer(){this.remoteRender&&(this.renderOnLeave=!1,this.trigger(`before:remote:render`),this.isRemoteRequestActive()&&this._jqueryXhr.abort(),this._jqueryXhr=this.createRemoteRenderRequest())},isRemoteRequestActive:function isRemoteRequestActive(){return this._jqueryXhr&&this._jqueryXhr.readyState!==4},onRemoteGetHtml:function onRemoteGetHtml(r){this.setHtmlCache(r.render),this.trigger(`remote:render`)},clone:function clone(){var r=new this.constructor(elementorCommon.helpers.cloneObject(this.attributes));r.set(`id`,elementorCommon.helpers.getUniqueId()),r.setHtmlCache(this.getHtmlCache());var c=this.get(`elements`);return _.isEmpty(c)||r.set(`elements`,c.clone()),r},toJSON:function toJSON(r){r=r||{};var c=Backbone.Model.prototype.toJSON.call(this);return _.each(c,function(l,u){l&&l.toJSON&&(c[u]=l.toJSON(r))}),r.copyHtmlCache?c.htmlCache=this.getHtmlCache():delete c.htmlCache,r.remove&&r.remove.forEach(function(r){return delete c[r]}),c},onCloseEditor:function onCloseEditor(){this.renderOnLeave&&this.renderRemoteServer()},onDestroy:function onDestroy(){var r=this.get(`settings`),c=this.get(`elements`);c!==void 0&&_.each(_.clone(c.models),function(r){r.destroy()}),r.destroy()}});u.prototype.sync=u.prototype.fetch=u.prototype.save=_.noop,c.exports=u}));Kt(),Jt(),b(),w(),E(),D(),A();var nn=__toESM(tn());function _callSuper$293(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$293()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$293,`_callSuper`);function _isNativeReflectConstruct$293(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$293=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$293,`_isNativeReflectConstruct`);var rn=function(r){function Column(){return _classCallCheck(this,Column),_callSuper$293(this,Column,arguments)}return _inherits(Column,r),_createClass(Column,[{key:`isValidChild`,value:function isValidChild(r){var c=r.get(`elType`);return c===`section`&&r.get(`isInner`)?!0:[`widget`,`container`].includes(c)}}])}(nn.default);function buildModel(r,c,l){var u={id:elementorCommon.helpers.getUniqueId(),elType:r,elements:[]},p=c&&Object.keys(c).length>0,m=l&&Object.keys(l).length>0;if(!p&&!m)return u;var h=`e-${elementorCommon.helpers.getUniqueId()}`,g=[{meta:{breakpoint:`desktop`,state:null},props:c==null?{}:c,custom_css:null}];return m&&g.push({meta:{breakpoint:`mobile`,state:null},props:l,custom_css:null}),u.styles=_defineProperty({},h,{id:h,label:`local`,type:`class`,variants:g}),u.settings={classes:{$$type:`classes`,value:[h]}},u}function insertElementFromModel(r,c,l){var u,p=(u=elementorModules)==null||(u=u.editor)==null?void 0:u.Container,m=function getDocumentUtils(){var r,c;return(r=$e)==null||(r=r.components)==null||(c=r.get)==null||(c=c.call(r,`document`))==null?void 0:c.utils},h=function getContainerById(r){var c,l,u;return(c=(l=m())==null||(u=l.findContainerById)==null?void 0:u.call(l,r))==null?null:c},g=function isContainerInstance(r){var c,l;return!p||!r?!1:r instanceof p||((c=r.constructor)==null?void 0:c.name)===((l=p.prototype)==null?void 0:l[Symbol.toStringTag])},v=function resolveContainer(r){var c;if(!p||g(r))return r;var l=r==null||(c=r.lookup)==null?void 0:c.call(r);if(g(l))return l;var u=r!=null&&r.id?h(r.id):null;return g(u)?u:null},y=v(r);if(!y&&p&&r!=null&&r.id){var b,x;return(b=m())==null||(x=b.addModelToParent)==null||x.call(b,r.id,c,l),h(c.id)||{id:c.id,lookup:function lookup(){return h(c.id)}}}var S=$e.run(`document/elements/create`,{container:y==null?r:y,model:c,options:l}),C=v(S);return C||!p?C==null?S:C:{id:c.id,lookup:function lookup(){return h(c.id)}}}function runWithHistory(r,c){var l=$e.internal(`document/history/start-log`,{type:`add`,title:r}),u;try{u=c(),$e.internal(`document/history/end-log`,{id:l})}catch(r){$e.internal(`document/history/delete-log`,{id:l})}return u}var an=__esmMin((()=>{P()}));function ownKeys$20(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$20(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$20(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$20(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}function getPresetDefinition(r){return bn[r]?bn[r]:yn(r.split(`-`))}function buildTreeModel(r){var c=r.parent,l=r.parentMobile,u=r.children,p=u===void 0?[]:u,m=buildModel(on,c,l);return m.elements=p.map(function(r){return buildTreeModel(r)}),m}function buildNode(r,c,l,u){var p,m,h=r.parent,g=r.parentMobile,v=r.children,y=u&&!1===l.createWrapper?(p=c==null||(m=c.lookup)==null?void 0:m.call(c))==null?c:p:insertElementFromModel(c,buildModel(on,h,g),u?l:{edit:!1});return v.forEach(function(r){var c;if((c=r.children)!=null&&c.length){insertElementFromModel(y,buildTreeModel(r),{edit:!1});return}buildNode(r,y,l,!1)}),y}function createV4FlexboxFromPreset(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:elementor.getPreviewContainer(),u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return runWithHistory((0,r.__)(`Container`,`elementor`),function(){return buildNode(getPresetDefinition(c),l,u,!0)})}var on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn=__esmMin((()=>{P(),an(),__name(ownKeys$20,`ownKeys`),__name(_objectSpread$20,`_objectSpread`),on=`e-flexbox`,sn=`row`,cn=`column`,ln={33:`33.3333`,66:`66.6666`},un=function sizeProp(r){return{$$type:`size`,value:{size:r,unit:arguments.length>1&&arguments[1]!==void 0?arguments[1]:`px`}}},dn=function stringProp(r){return{$$type:`string`,value:r}},fn=function widthPercent(r){var c;return{width:un(Number((c=ln[r])==null?r:c),`%`)}},pn={width:un(100,`%`)},mn={"flex-direction":dn(sn)},hn={"flex-direction":dn(cn)},gn=_objectSpread$20(_objectSpread$20({},mn),{},{"flex-wrap":dn(`wrap`)}),_n=function widthChild(r){return{parent:_objectSpread$20(_objectSpread$20({},hn),fn(r)),parentMobile:pn,children:[]}},vn=function bareChild(){return{parent:hn,children:[]}},yn=function rowOfSizes(r){return{parent:r.reduce(function(r,c){return r+Number(c)},0)>100?gn:mn,children:r.map(_n)}},bn={c100:{parent:hn,children:[]},r100:{parent:mn,children:[]},"c100-c50-50":{parent:mn,children:[_n(`50`),{parent:_objectSpread$20(_objectSpread$20(_objectSpread$20({},hn),fn(`50`)),{},{padding:un(0,`px`)}),parentMobile:pn,children:[vn(),vn()]}]}}}));function getGridPresetProps(r){var c=elementor.presetsFactory.getParsedGridStructure(r);return{desktop:{"grid-template-columns":Cn(c.columns),"grid-template-rows":Cn(c.rows)},mobile:{"grid-template-columns":Cn(1),"grid-template-rows":Cn(c.rows)}}}function createV4GridFromPreset(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:elementor.getPreviewContainer(),u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return runWithHistory((0,r.__)(`Grid`,`elementor`),function(){var r=getGridPresetProps(c),p=r.desktop,m=r.mobile;return insertElementFromModel(l,buildModel(Sn,p,m),u)})}var Sn,Cn,wn=__esmMin((()=>{an(),Sn=`e-grid`,Cn=function gridTrackSizeProp(r){return{$$type:`grid-track-size`,value:{size:Number(r),unit:`fr`}}}}));function ownKeys$19(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$19(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$19(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$19(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var Tn,G,En=__esmMin((()=>{b(),w(),P(),xn(),wn(),__name(ownKeys$19,`ownKeys`),__name(_objectSpread$19,`_objectSpread`),G=function(){function ContainerHelper(){_classCallCheck(this,ContainerHelper)}return _createClass(ContainerHelper,null,[{key:`isV4OptIn`,value:function isV4OptIn(){var r;return!!((r=elementorCommon)!=null&&(r=r.config)!=null&&(r=r.experimentalFeatures)!=null&&r.e_opt_in_v4)}},{key:`createContainers`,value:function createContainers(r,c){for(var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=[],m=0;m<r;m++)p.push(this.createContainer(c,l,u));return p}},{key:`createContainer`,value:function createContainer(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return $e.run(`document/elements/create`,{container:c,model:_objectSpread$19({elType:`container`,settings:r},u),options:l})}},{key:`setContainerSettings`,value:function setContainerSettings(r,c){$e.run(`document/elements/settings`,{container:c,settings:r,options:{external:!0}})}},{key:`createContainerFromSizes`,value:function createContainerFromSizes(r,c){var l=this,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=u.createWrapper,m=p===void 0||p,h={33:`33.3333`,66:`66.6666`},g=r.reduce(function(r,c){return r+parseInt(c)},0)>100,v=_objectSpread$19(_objectSpread$19({flex_direction:this.DIRECTION_ROW},g?{flex_wrap:`wrap`}:{}),{},{flex_gap:{unit:`px`,size:0,column:`0`,row:`0`}}),y;return m?y=this.createContainer(v,c,u):($e.run(`document/elements/settings`,{container:c,settings:v}),y=c),r.forEach(function(r){r=h[r]||r,l.createContainer({flex_direction:l.DIRECTION_COLUMN,content_width:`full`,width:{unit:`%`,size:r}},y,{edit:!1})}),y}},{key:`createContainerFromGridPreset`,value:function createContainerFromGridPreset(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:elementor.getPreviewContainer(),u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(ContainerHelper.isV4OptIn())return createV4GridFromPreset(c,l,u);var m=elementor.presetsFactory.getParsedGridStructure(c);return ContainerHelper.createContainer({container_type:ContainerHelper.CONTAINER_TYPE_GRID,grid_columns_grid:{unit:`fr`,size:m.columns},grid_rows_grid:{unit:`fr`,size:m.rows},grid_rows_grid_mobile:{unit:`fr`,size:m.rows}},l,u,_objectSpread$19({title:(0,r.__)(`Grid`,`elementor`),custom:{isPreset:!0,preset_settings:{presetIcon:`eicon-container-grid`}}},p))}},{key:`createContainerFromPreset`,value:function createContainerFromPreset(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:elementor.getPreviewContainer(),u=arguments.length>2?arguments[2]:void 0;if(ContainerHelper.isV4OptIn())return createV4FlexboxFromPreset(c,l,u);var p=$e.internal(`document/history/start-log`,{type:`add`,title:(0,r.__)(`Container`,`elementor`)}),m=u.createWrapper,h=m===void 0||m,g,v;try{switch(c){case`c100`:g=ContainerHelper.createContainer({flex_direction:ContainerHelper.DIRECTION_COLUMN},l,u);break;case`r100`:g=ContainerHelper.createContainer({flex_direction:ContainerHelper.DIRECTION_ROW},l,u);break;case`c100-c50-50`:v={flex_direction:ContainerHelper.DIRECTION_ROW,flex_gap:{unit:`px`,size:0,column:`0`,row:`0`}},h?g=ContainerHelper.createContainer(v,l,u):($e.run(`document/elements/settings`,{container:l,settings:v}),g=l),v={content_width:`full`,width:{unit:`%`,size:`50`}},ContainerHelper.createContainer(v,g,{edit:!1});var y=ContainerHelper.createContainer(_objectSpread$19(_objectSpread$19({},v),{},{padding:{unit:`px`,top:0,right:0,bottom:0,left:0,isLinked:!0},flex_gap:{unit:`px`,size:0,column:`0`,row:`0`}}),g,{edit:!1});ContainerHelper.createContainers(2,{},y,{edit:!1});break;default:var b=c.split(`-`);g=ContainerHelper.createContainerFromSizes(b,l,u)}$e.internal(`document/history/end-log`,{id:p})}catch(r){$e.internal(`document/history/delete-log`,{id:p})}return g}},{key:`openEditMode`,value:function openEditMode(r){$e.run(`document/elements/select`,{container:r})}},{key:`createContainerFromModel`,value:function createContainerFromModel(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return $e.run(`document/elements/create`,_objectSpread$19({model:r,container:c},l))}}])}(),Tn=G,_defineProperty(G,`DIRECTION_ROW`,`row`),_defineProperty(G,`DIRECTION_COLUMN`,`column`),_defineProperty(G,`DIRECTION_ROW_REVERSED`,`row-reverse`),_defineProperty(G,`DIRECTION_COLUMN_REVERSED`,`column-reverse`),_defineProperty(G,`DIRECTION_DEFAULT`,Tn.DIRECTION_COLUMN),_defineProperty(G,`CONTAINER_TYPE_GRID`,`grid`),_defineProperty(G,`V4_DEFAULT_CONTAINER_TYPE`,`e-flexbox`)}));function ownKeys$18(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$18(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$18(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$18(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var Dn,On,kn=__esmMin((()=>{P(),b(),w(),__name(ownKeys$18,`ownKeys`),__name(_objectSpread$18,`_objectSpread`),Dn=function(){function EditorOneEventManager(){_classCallCheck(this,EditorOneEventManager)}return _createClass(EditorOneEventManager,null,[{key:`getEventsManager`,value:function getEventsManager(){var r;return(r=elementorCommon)==null?void 0:r.eventsManager}},{key:`getConfig`,value:function getConfig(){var r;return(r=this.getEventsManager())==null?void 0:r.config}},{key:`canSendEvents`,value:function canSendEvents(){var r;return((r=elementorCommon)==null||(r=r.config)==null||(r=r.editor_events)==null?void 0:r.can_send_events)||!1}},{key:`isEventsManagerAvailable`,value:function isEventsManagerAvailable(){var r=this.getEventsManager();return r&&typeof r.dispatchEvent==`function`}},{key:`dispatchEvent`,value:function dispatchEvent(r,c){try{return!this.isEventsManagerAvailable()||!this.canSendEvents()?!1:(this.getEventsManager().dispatchEvent(r,c),!0)}catch(r){return!1}}},{key:`toLowerSnake`,value:function toLowerSnake(r){return!r||typeof r!=`string`?r:r.replace(/\s+/g,`_`).toLowerCase()}},{key:`decodeHtmlEntities`,value:function decodeHtmlEntities(r){return!r||typeof r!=`string`?r:new DOMParser().parseFromString(r,`text/html`).body.textContent||r}},{key:`isInEditorContext`,value:function isInEditorContext(){var r;return window.elementor!==void 0&&!!((r=window.elementor)!=null&&r.documents)}},{key:`getFinderContext`,value:function getFinderContext(){var r,c,l,u,p=this.getConfig(),m=this.isInEditorContext();return{windowName:m?p==null||(r=p.appTypes)==null?void 0:r.editor:p==null||(c=p.appTypes)==null?void 0:c.wpAdmin,targetLocation:this.toLowerSnake(m?p==null||(l=p.locations)==null?void 0:l.topBar:p==null||(u=p.locations)==null?void 0:u.sidebar)}}},{key:`createBasePayload`,value:function createBasePayload(){var r,c,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=this.getConfig();return _objectSpread$18({window_name:(r=u==null||(c=u.appTypes)==null?void 0:c.editor)==null?`editor`:r},l)}},{key:`sendTopBarPublishDropdown`,value:function sendTopBarPublishDropdown(r){var c,l,u,p,m,h,g,v=this.getConfig();return this.dispatchEvent(v==null||(c=v.names)==null||(c=c.editorOne)==null?void 0:c.topBarPublishDropdown,this.createBasePayload({interaction_type:this.toLowerSnake(v==null||(l=v.triggers)==null?void 0:l.click),target_type:v==null||(u=v.targetTypes)==null?void 0:u.dropdownItem,target_name:r,interaction_result:v==null||(p=v.interactionResults)==null?void 0:p.actionSelected,target_location:this.toLowerSnake(v==null||(m=v.locations)==null?void 0:m.topBar),location_l1:this.toLowerSnake(v==null||(h=v.secondaryLocations)==null?void 0:h.publishDropdown),location_l2:v==null||(g=v.targetTypes)==null?void 0:g.dropdownItem,interaction_description:`User selected an action from the publish dropdown`}))}},{key:`sendTopBarPageList`,value:function sendTopBarPageList(r){var c,l,u,p,m,h,g,v,y=arguments.length>1&&arguments[1]!==void 0&&arguments[1],b=this.getConfig();return this.dispatchEvent(b==null||(c=b.names)==null||(c=c.editorOne)==null?void 0:c.topBarPageList,this.createBasePayload({interaction_type:this.toLowerSnake(b==null||(l=b.triggers)==null?void 0:l.click),target_type:b==null||(u=b.targetTypes)==null?void 0:u.dropdownItem,target_name:r,interaction_result:y?b==null||(p=b.interactionResults)==null?void 0:p.create:b==null||(m=b.interactionResults)==null?void 0:m.navigate,target_location:this.toLowerSnake(b==null||(h=b.locations)==null?void 0:h.topBar),location_l1:this.toLowerSnake(b==null||(g=b.secondaryLocations)==null?void 0:g.pageListDropdown),location_l2:b==null||(v=b.targetTypes)==null?void 0:v.dropdownItem,interaction_description:`User selected an action from the page list dropdown`}))}},{key:`sendSiteSettingsSession`,value:function sendSiteSettingsSession(r){var c,l,u,p,m,h=r.targetType,g=r.visitedItems,v=g===void 0?[]:g,y=r.savedItems,b=y===void 0?[]:y,x=r.state,S=this.getConfig();return this.dispatchEvent(S==null||(c=S.names)==null||(c=c.editorOne)==null?void 0:c.siteSettingsSession,this.createBasePayload({interaction_type:this.toLowerSnake(S==null||(l=S.triggers)==null?void 0:l.click),target_type:h,target_name:`site_settings`,interaction_result:S==null||(u=S.interactionResults)==null?void 0:u.sessionEnd,target_location:this.toLowerSnake(S==null||(p=S.locations)==null?void 0:p.leftPanel),location_l1:this.toLowerSnake(S==null||(m=S.secondaryLocations)==null?void 0:m.siteSettings),interaction_description:`Records areas visited as part of the site setting session`,metadata:{visited_items:v,saved_items:b},state:x}))}},{key:`sendELibraryNav`,value:function sendELibraryNav(r){var c,l,u,p,m,h,g=this.getConfig();return this.dispatchEvent(g==null||(c=g.names)==null||(c=c.editorOne)==null?void 0:c.eLibraryNav,this.createBasePayload({interaction_type:this.toLowerSnake(g==null||(l=g.triggers)==null?void 0:l.tabSelect),target_type:g==null||(u=g.targetTypes)==null?void 0:u.tab,target_name:this.toLowerSnake(r),interaction_result:g==null||(p=g.interactionResults)==null?void 0:p.tabChanged,target_location:this.toLowerSnake(g==null||(m=g.locations)==null?void 0:m.elementorLibrary),location_l1:this.toLowerSnake(g==null||(h=g.secondaryLocations)==null?void 0:h.libraryTabs),interaction_description:`User navigates within elementor library`}))}},{key:`sendELibraryInsert`,value:function sendELibraryInsert(r){var c,l,u,p,m,h,g=r.assetId,v=r.assetName,y=r.libraryType,b=r.proRequired,x=b!==void 0&&b,S=this.getConfig(),C=this.createBasePayload({interaction_type:this.toLowerSnake(S==null||(c=S.triggers)==null?void 0:c.insert),target_type:S==null||(l=S.targetTypes)==null?void 0:l.button,target_name:String(g),interaction_result:S==null||(u=S.interactionResults)==null?void 0:u.assetInserted,target_location:this.toLowerSnake(S==null||(p=S.locations)==null?void 0:p.elementorLibrary),location_l1:this.toLowerSnake(y),location_l2:this.toLowerSnake(S==null||(m=S.secondaryLocations)==null?void 0:m.assetCard),interaction_description:`User inserts block/pages from elementor library`,metadata:{template_id:String(g),template_name:this.decodeHtmlEntities(v)||``}});return x&&(C.state=`pro_plan_required`),this.dispatchEvent(S==null||(h=S.names)==null||(h=h.editorOne)==null?void 0:h.eLibraryInsert,C)}},{key:`sendELibraryFavorite`,value:function sendELibraryFavorite(r){var c,l,u,p,m,h,g=r.assetId,v=r.assetName,y=r.libraryType,b=r.isFavorite,x=r.proRequired,S=x!==void 0&&x,C=this.getConfig(),w=this.createBasePayload({interaction_type:this.toLowerSnake(C==null||(c=C.triggers)==null?void 0:c.click),target_type:C==null||(l=C.targetTypes)==null?void 0:l.toggle,target_name:String(g),interaction_result:C==null||(u=C.interactionResults)==null?void 0:u.assetFavorite,target_value:!!b,target_location:this.toLowerSnake(C==null||(p=C.locations)==null?void 0:p.elementorLibrary),location_l1:this.toLowerSnake(y),location_l2:this.toLowerSnake(C==null||(m=C.secondaryLocations)==null?void 0:m.assetCard),interaction_description:`User favorite block/pages from elementor library`,metadata:{template_id:String(g),template_name:this.decodeHtmlEntities(v)||``}});return S&&(w.state=`pro_plan_required`),this.dispatchEvent(C==null||(h=C.names)==null||(h=h.editorOne)==null?void 0:h.eLibraryFavorite,w)}},{key:`sendELibraryGenerateAi`,value:function sendELibraryGenerateAi(r){var c,l,u,p,m,h,g=r.assetId,v=r.assetName,y=r.libraryType,b=this.getConfig();return this.dispatchEvent(b==null||(c=b.names)==null||(c=c.editorOne)==null?void 0:c.eLibraryGenerateAi,this.createBasePayload({interaction_type:this.toLowerSnake(b==null||(l=b.triggers)==null?void 0:l.click),target_type:b==null||(u=b.targetTypes)==null?void 0:u.button,target_name:String(g),interaction_result:b==null||(p=b.interactionResults)==null?void 0:p.aiGenerate,target_location:this.toLowerSnake(b==null||(m=b.locations)==null?void 0:m.elementorLibrary),location_l1:this.toLowerSnake(y),location_l2:this.toLowerSnake(b==null||(h=b.secondaryLocations)==null?void 0:h.assetCard),interaction_description:`User generated block/page based on a library asset`,metadata:{template_id:String(g),template_name:this.decodeHtmlEntities(v)||``}}))}},{key:`sendFinderSearchInput`,value:function sendFinderSearchInput(r){var c,l,u,p,m,h,g=r.resultsCount,v=r.searchTerm,y=v===void 0?null:v,b=this.getConfig(),x=g>0,S=this.getFinderContext(),C=this.createBasePayload({window_name:S.windowName,interaction_type:this.toLowerSnake(b==null||(c=b.triggers)==null?void 0:c.typing),target_type:b==null||(l=b.targetTypes)==null?void 0:l.searchInput,target_name:`finder`,interaction_result:x?b==null||(u=b.interactionResults)==null?void 0:u.resultsUpdated:b==null||(p=b.interactionResults)==null?void 0:p.noResults,target_location:S.targetLocation,location_l1:this.toLowerSnake(b==null||(m=b.secondaryLocations)==null?void 0:m.finder),interaction_description:`Finder search input, follows debounce behavior`,metadata:{results_count:g}});return!x&&y&&(C.metadata.search_term=y),this.dispatchEvent(b==null||(h=b.names)==null||(h=h.editorOne)==null?void 0:h.finderSearchInput,C)}},{key:`sendFinderResultSelect`,value:function sendFinderResultSelect(r){var c,l,u,p,m,h,g=this.getConfig(),v=this.getFinderContext();return this.dispatchEvent(g==null||(c=g.names)==null||(c=c.editorOne)==null?void 0:c.finderResultSelect,this.createBasePayload({window_name:v.windowName,interaction_type:this.toLowerSnake(g==null||(l=g.triggers)==null?void 0:l.click),target_type:g==null||(u=g.targetTypes)==null?void 0:u.searchResult,target_name:r,interaction_result:g==null||(p=g.interactionResults)==null?void 0:p.selected,target_location:v.targetLocation,location_l1:this.toLowerSnake(g==null||(m=g.secondaryLocations)==null?void 0:m.finder),location_l2:this.toLowerSnake(g==null||(h=g.secondaryLocations)==null?void 0:h.finderResults),interaction_description:`Finder search results was selected`}))}},{key:`sendCanvasEmptyBoxAction`,value:function sendCanvasEmptyBoxAction(r){var c,l,u,p,m,h,g=r.targetName,v=r.metadata,y=v===void 0?{}:v,b=r.containerCreated,x=b===void 0?null:b,S=this.getConfig(),C=this.createBasePayload({interaction_type:this.toLowerSnake(S==null||(c=S.triggers)==null?void 0:c.click),target_type:S==null||(l=S.targetTypes)==null?void 0:l.buttons,target_name:g,interaction_result:S==null||(u=S.interactionResults)==null?void 0:u.selected,target_location:this.toLowerSnake(S==null||(p=S.locations)==null?void 0:p.canvas),location_l1:this.toLowerSnake(S==null||(m=S.secondaryLocations)==null?void 0:m.emptyBox),interaction_description:`Empty box on canvas actions`});return Object.keys(y).length>0&&(C.metadata=y),x!==null&&(C.state=x),this.dispatchEvent(S==null||(h=S.names)==null||(h=h.editorOne)==null?void 0:h.canvasEmptyBoxAction,C)}},{key:`sendWidgetPanelSearch`,value:function sendWidgetPanelSearch(r){var c,l,u,p,m,h,g,v,y=r.resultsCount,b=r.userInput,x=b===void 0?null:b,S=this.getConfig(),C=y>0,w=this.createBasePayload({interaction_type:this.toLowerSnake(S==null||(c=S.triggers)==null?void 0:c.typing),target_type:S==null||(l=S.targetTypes)==null?void 0:l.searchWidget,target_name:`search_widget`,interaction_result:C?S==null||(u=S.interactionResults)==null?void 0:u.resultsUpdated:S==null||(p=S.interactionResults)==null?void 0:p.noResults,target_location:this.toLowerSnake(S==null||(m=S.locations)==null?void 0:m.leftPanel),location_l1:this.toLowerSnake(S==null||(h=S.locations)==null?void 0:h.widgetPanel),location_l2:this.toLowerSnake(S==null||(g=S.secondaryLocations)==null?void 0:g.searchBar),interaction_description:`Widget search input, follows debounce behavior`});return!C&&x&&(w.metadata={user_input:x}),this.dispatchEvent(S==null||(v=S.names)==null||(v=v.editorOne)==null?void 0:v.widgetPanelSearch,w)}},{key:`createWpDashPayload`,value:function createWpDashPayload(){var r,c,l,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=this.getConfig();return this.createBasePayload(_objectSpread$18({window_name:(r=p==null||(c=p.appTypes)==null?void 0:c.wpDash)==null?`wpdash`:r,target_location:this.toLowerSnake(p==null||(l=p.locations)==null?void 0:l.wpDashAdmin),location_l2:``},u))}},{key:`sendWpDashElementorMenuClick`,value:function sendWpDashElementorMenuClick(){var r,c,l,u,p,m=this.getConfig();return this.dispatchEvent(m==null||(r=m.names)==null||(r=r.editorOne)==null?void 0:r.wpDashElementorMenuClick,this.createWpDashPayload({interaction_type:this.toLowerSnake(m==null||(c=m.triggers)==null?void 0:c.click),target_type:m==null||(l=m.targetTypes)==null?void 0:l.wpDashAdminMenuItem,target_name:`elementor_menu_item`,interaction_result:m==null||(u=m.interactionResults)==null?void 0:u.elementorSideMenuOpened,location_l1:this.toLowerSnake(m==null||(p=m.secondaryLocations)==null?void 0:p.wpDashElementorCoreMenu),interaction_description:`core_user_clicked_elementor_menu_item`}))}},{key:`sendWpDashEditorSubMenuHover`,value:function sendWpDashEditorSubMenuHover(){var r,c,l,u,p,m=this.getConfig();return this.dispatchEvent(m==null||(r=m.names)==null||(r=r.editorOne)==null?void 0:r.wpDashEditorSubMenuHover,this.createWpDashPayload({interaction_type:this.toLowerSnake(m==null||(c=m.triggers)==null?void 0:c.hover),target_type:m==null||(l=m.targetTypes)==null?void 0:l.wpDashEditorMenu,target_name:`wpdash_editor_sub_menu`,interaction_result:m==null||(u=m.interactionResults)==null?void 0:u.editorSubMenuOpened,location_l1:this.toLowerSnake(m==null||(p=m.secondaryLocations)==null?void 0:p.wpDashElementorCoreSubMenu),interaction_description:`core_user_hovered_sub_menu`}))}},{key:`sendWpDashThemeBuilderClick`,value:function sendWpDashThemeBuilderClick(){var r,c,l,u,p,m=this.getConfig();return this.dispatchEvent(m==null||(r=m.names)==null||(r=r.editorOne)==null?void 0:r.wpDashThemeBuilderClick,this.createWpDashPayload({interaction_type:this.toLowerSnake(m==null||(c=m.triggers)==null?void 0:c.click),target_type:m==null||(l=m.targetTypes)==null?void 0:l.wpDashSubMenuItem,target_name:`theme_builder_menu_item`,interaction_result:m==null||(u=m.interactionResults)==null?void 0:u.themeBuilderPromotionWindow,location_l1:this.toLowerSnake(m==null||(p=m.secondaryLocations)==null?void 0:p.wpDashThemeBuilder),interaction_description:`core_user_clicked_theme_builder_menu_item`}))}},{key:`sendSidebarMenuItemClicked`,value:function sendSidebarMenuItemClicked(r){var c=r.eventId,l=r.groupEventId;try{var u,p,m,h,g,v,y=this.getConfig(),b=this.createBasePayload({window_name:y==null||(u=y.windowNames)==null?void 0:u.sidebarMenu,interaction_type:this.toLowerSnake(y==null||(p=y.triggers)==null?void 0:p.click),target_type:y==null||(m=y.targetTypes)==null?void 0:m.link,target_name:c,interaction_result:y==null||(h=y.interactionResults)==null?void 0:h.pageOpened,target_location:this.toLowerSnake(y==null||(g=y.locations)==null?void 0:g.sidebar)});return l&&(b.location_l1=l),this.dispatchEvent(y==null||(v=y.names)==null||(v=v.editorOne)==null?void 0:v.sidebarMenuItemClicked,b)}catch(r){return!1}}},{key:`sendSidebarMenuGroupToggled`,value:function sendSidebarMenuGroupToggled(r){var c=r.eventId,l=r.isExpanded;try{var u,p,m,h,g,v,y,b=this.getConfig(),x=l?b==null||(u=b.interactionResults)==null?void 0:u.expanded:b==null||(p=b.interactionResults)==null?void 0:p.collapsed;return this.dispatchEvent(b==null||(m=b.names)==null||(m=m.editorOne)==null?void 0:m.sidebarMenuGroupToggled,this.createBasePayload({window_name:b==null||(h=b.windowNames)==null?void 0:h.sidebarMenu,interaction_type:this.toLowerSnake(b==null||(g=b.triggers)==null?void 0:g.click),target_type:b==null||(v=b.targetTypes)==null?void 0:v.toggle,target_name:c,interaction_result:x,target_location:this.toLowerSnake(b==null||(y=b.locations)==null?void 0:y.sidebar)}))}catch(r){return!1}}}])}(),On=function createDebouncedWidgetPanelSearch(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:2e3;return _.debounce(function(r,c){Dn.sendWidgetPanelSearch({resultsCount:r,userInput:c})},r)}})),An=__commonJSMin(((r,c)=>{c.exports=elementorModules.Module.extend({openMenuEvent:null,location:null,getDefaultSettings:function getDefaultSettings(){return{context:`preview`,actions:{},classes:{list:`elementor-context-menu-list`,group:`elementor-context-menu-list__group`,groupPrefix:`elementor-context-menu-list__group-`,item:`elementor-context-menu-list__item`,itemTypePrefix:`elementor-context-menu-list__item-`,itemTitle:`elementor-context-menu-list__item__title`,itemShortcut:`elementor-context-menu-list__item__shortcut`,iconShortcut:`elementor-context-menu-list__item__icon`,itemDisabled:`elementor-context-menu-list__item--disabled`,itemHasShortcutAction:`elementor-context-menu-list__item--has-shortcut-action`,divider:`elementor-context-menu-list__divider`,hidden:`elementor-hidden`,promotionLink:`elementor-context-menu-list__item__shortcut--link-fullwidth`}}},buildActionItem:function buildActionItem(r){var c=this,l=c.getSettings(`classes`),u=jQuery(`<div>`,{class:l.item+` `+l.itemTypePrefix+r.name,role:`menuitem`,tabindex:`0`}),p=jQuery(`<div>`,{class:l.itemTitle}).text(r.title),m=jQuery(`<div>`,{class:l.iconShortcut});if(r.icon&&m.html(jQuery(`<i>`,{class:r.icon})),u.append(m,p),r.shortcut){var h=jQuery(`<div>`,{class:l.itemShortcut}).html(r.shortcut);u.append(h)}return r.callback&&(u.on(`click`,function(){c.runAction(r)}),u.on(`keyup`,function(l){(l.keyCode===13||l.keyCode===32)&&c.runAction(r)})),r.$item=u,u},buildActionsList:function buildActionsList(){var r=this,c=r.getSettings(`classes`),l=r.getSettings(`groups`),u=jQuery(`<div>`,{class:c.list,role:`menu`});return l.forEach(function(l){var p=jQuery(`<div>`,{class:c.group+` `+c.groupPrefix+l.name,role:`group`});l.actions.forEach(function(c){p.append(r.buildActionItem(c))}),u.append(p),l.$item=p}),u},toggleGroupVisibility:function toggleGroupVisibility(r,c){r.$item.toggleClass(this.getSettings(`classes.hidden`),!c)},toggleActionVisibility:function toggleActionVisibility(r,c){r.$item.toggleClass(this.getSettings(`classes.hidden`),!c)},toggleActionUsability:function toggleActionUsability(r,c){this.maybeAddPromotionLink(r),r.$item.toggleClass(this.getSettings(`classes.itemDisabled`),!c),r.hasShortcutAction&&r.$item.toggleClass(this.getSettings(`classes.itemHasShortcutAction`),!c)},maybeAddPromotionLink:function maybeAddPromotionLink(r){this.shouldAddPromotionLink(r)&&r.$item.find(`div.elementor-context-menu-list__item__shortcut`)[0].insertAdjacentHTML(`beforeend`,`<a href='${r.promotionURL}' target="_blank" class="${this.getSettings(`classes.promotionLink`)}"></a>`)},shouldAddPromotionLink:function shouldAddPromotionLink(r){return!!(r.promotionURL&&!r.$item.find(`a.elementor-context-menu-list__item__shortcut--link-fullwidth`)[0]&&r.$item.find(`i.eicon-pro-icon`)[0])},updateActionTitle:function updateActionTitle(r){typeof r.title==`function`&&r.$item.find(`.`+this.getSettings(`classes`).itemTitle).text(r.title())},isActionEnabled:function isActionEnabled(r){return!r.callback&&!r.groups?!1:!r.isEnabled||r.isEnabled()},isActionVisible:function isActionVisible(r){return typeof r.isVisible==`function`?r.isVisible():!1!==r.isVisible},runAction:function runAction(r){!this.isActionEnabled(r)||!this.isActionVisible(r)||(r.callback(this.openMenuEvent,{location:this.location,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.contextMenu,trigger:elementorCommon.eventsManager.config.triggers.rightClick}),this.getModal().hide())},initModal:function initModal(){var r;this.getModal=function(){return r||(r=elementorCommon.dialogsManager.createWidget(`simple`,{className:`elementor-context-menu`,message:this.buildActionsList(),iframe:this.getSettings(`context`)===`preview`?elementor.$preview:null,effects:{hide:`hide`,show:`show`},hide:{onOutsideContextMenu:!0},position:{my:(elementorCommon.config.isRTL?`right`:`left`)+` top`,collision:`fit`}})),r}},show:function show(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=this,u=l.getModal();this.openMenuEvent=r,this.location=c.location,u.setSettings(`position`,{of:r}),l.getSettings(`groups`).forEach(function(r){var c=!1!==r.isVisible;l.toggleGroupVisibility(r,c),c&&r.actions.forEach(function(r){var c=l.isActionVisible(r);l.toggleActionVisibility(r,c),l.updateActionTitle(r),c&&l.toggleActionUsability(r,l.isActionEnabled(r))})}),u.show(),elementor.templates.eventManager.sendContextMenuExposureEvent()},destroy:function destroy(){this.getModal().destroy()},onInit:function onInit(){this.initModal()}})})),jn=__commonJSMin(((c,l)=>{Nn();var u=An();l.exports=Marionette.Behavior.extend({defaults:{context:`preview`,groups:[],eventTargets:[`el`]},events:function events(){var r={};return this.getOption(`eventTargets`).forEach(function(c){var l=`contextmenu`;c!==`el`&&(l+=` `+c),r[l]=`onContextMenu`}),r},initialize:function initialize(){this.listenTo(this.view.options.model,`request:contextmenu`,this.onRequestContextMenu)},initContextMenu:function initContextMenu(){var c=this,l=Gt.mac?`&#8984;`:`^`,p=this.getOption(`groups`),m=_.findWhere(p,{name:`delete`}),h=p.indexOf(m);h===-1&&(h=p.length),this.getOption(`context`)===`preview`&&$e.components.get(`document/elements`).utils.showNavigator()&&p.splice(h,0,{name:`tools`,actions:[{name:`navigator`,icon:`eicon-navigator`,title:(0,r.__)(`Structure`,`elementor`),shortcut:l+`+I`,callback:function callback(){return $e.route(`navigator`,{reOpen:!0,model:c.view.model})}}]}),this.contextMenu=new u({groups:p,context:this.getOption(`context`)}),this.contextMenu.getModal().on(`hide`,function(){return c.onContextMenuHide()})},getContextMenu:function getContextMenu(){var r,c;return this.contextMenu||this.initContextMenu(),this.getOption(`context`)===`preview`&&!elementor.selection.has((r=(c=this.view).getContainer)==null?void 0:r.call(c))&&$e.run(`document/elements/deselect-all`),this.contextMenu},onContextMenu:function onContextMenu(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!$e.shortcuts.isControlEvent(r)&&!(this.getOption(`context`)===`preview`&&!(this.view instanceof Mn)&&(!this.view.container||!this.view.container.isDesignable()))){r.preventDefault(),r.stopPropagation(),this.view._parent&&this.view._parent.triggerMethod(`toggleSortMode`,!1);var l=c.location||elementorCommon.eventsManager.config.locations.canvas;this.getContextMenu().show(r,{location:l}),elementor.channels.editor.reply(`contextMenu:targetView`,this.view)}},onRequestContextMenu:function onRequestContextMenu(r,c){var l=this.getContextMenu().getModal(),u=l.getSettings(`iframe`),p=_.findWhere(this.contextMenu.getSettings(`groups`),{name:`tools`});p.isVisible=!1,l.setSettings(`iframe`,null),this.onContextMenu(r,c),p.isVisible=!0,l.setSettings(`iframe`,u)},onContextMenuHide:function onContextMenuHide(){this.view._parent&&this.view._parent.triggerMethod(`toggleSortMode`,!0),elementor.channels.editor.reply(`contextMenu:targetView`,null)},onDestroy:function onDestroy(){this.contextMenu&&this.contextMenu.destroy()}})}));function ownKeys$17(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$17(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$17(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$17(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}function _callSuper$292(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$292()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$292(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$292=function _isNativeReflectConstruct(){return!!r})()}var Mn,Nn=__esmMin((()=>{b(),w(),E(),D(),A(),P(),En(),Kt(),kn(),__name(ownKeys$17,`ownKeys`),__name(_objectSpread$17,`_objectSpread`),__name(_callSuper$292,`_callSuper`),__name(_isNativeReflectConstruct$292,`_isNativeReflectConstruct`),Mn=function(c){function AddSectionBase(){return _classCallCheck(this,AddSectionBase),_callSuper$292(this,AddSectionBase,arguments)}return _inherits(AddSectionBase,c),_createClass(AddSectionBase,[{key:`template`,value:function template(){return Marionette.TemplateCache.get(`#tmpl-elementor-add-section`)}},{key:`attributes`,value:function attributes(){return{"aria-label":(0,r.__)(`Add new layout element`,`elementor`),"data-view":AddSectionBase.VIEW_CHOOSE_ACTION}}},{key:`ui`,value:function ui(){return{addNewSection:`.elementor-add-new-section`,closeButton:`.elementor-add-section-close`,backButton:`.elementor-add-section-back`,addSectionButton:`.elementor-add-section-button`,addTemplateButton:`.elementor-add-template-button`,selectPreset:`.elementor-select-preset`,presets:`.elementor-preset`,flexPresetButton:`.flex-preset-button`,gridPresetButton:`.grid-preset-button`,chooseFlexPreset:`.e-con-select-preset-flex .e-con-preset`,chooseGridPreset:`.e-con-select-preset-grid .e-con-preset`}}},{key:`events`,value:function events(){var r=this;return{"click @ui.addSectionButton":`onAddSectionButtonClick`,"click @ui.addTemplateButton":`onAddTemplateButtonClick`,"click @ui.closeButton":`onCloseButtonClick`,"click @ui.backButton":function click_UiBackButton(){return r.setView(AddSectionBase.getSelectType())},"click @ui.presets":`onPresetSelected`,"click @ui.flexPresetButton":function click_UiFlexPresetButton(){return r.setView(AddSectionBase.VIEW_CONTAINER_FLEX_PRESET)},"click @ui.gridPresetButton":function click_UiGridPresetButton(){return r.setView(AddSectionBase.VIEW_CONTAINER_GRID_PRESET)},"click @ui.chooseFlexPreset":`onFlexPresetSelected`,"click @ui.chooseGridPreset":`onGridPresetSelected`}}},{key:`behaviors`,value:function behaviors(){var r={contextMenu:{behaviorClass:jn(),groups:this.getContextMenuGroups(),eventTargets:[`.elementor-add-section-inner`]}};return elementor.hooks.applyFilters(`views/add-section/behaviors`,r,this)}},{key:`tagName`,value:function tagName(){return`section`}},{key:`className`,value:function className(){return`elementor-add-section elementor-visible-desktop`}},{key:`setView`,value:function setView(r){this.$el.attr(`data-view`,r)}},{key:`showSelectPresets`,value:function showSelectPresets(){this.setView(AddSectionBase.getSelectType())}},{key:`closeSelectPresets`,value:function closeSelectPresets(){this.setView(AddSectionBase.VIEW_CHOOSE_ACTION)}},{key:`getTemplatesModalOptions`,value:function getTemplatesModalOptions(){return{importOptions:{at:this.getOption(`at`)}}}},{key:`getContextMenuGroups`,value:function getContextMenuGroups(){var c=this,l=function hasContent(){return elementor.elements.length>0},u=Gt.mac?`&#8984;`:`^`;return[{name:`paste`,actions:[{name:`paste`,title:(0,r.__)(`Paste`,`elementor`),shortcut:u+`+V`,isEnabled:function isEnabled(){return $e.components.get(`document/elements`).utils.isPasteEnabled(elementor.getPreviewContainer())},callback:function callback(){return $e.run(`document/ui/paste`,{container:elementor.getPreviewContainer(),options:{at:c.getOption(`at`),rebuild:!0},onAfter:function onAfter(){return c.onAfterPaste()}})}},{name:`paste_area`,icon:`eicon-import-export`,title:(0,r.__)(`Paste from other site`,`elementor`),callback:function callback(){return $e.run(`document/elements/paste-area`,{container:elementor.getPreviewContainer(),options:{at:c.getOption(`at`),rebuild:!0}})}}]},{name:`content`,actions:[{name:`copy_all_content`,title:(0,r.__)(`Copy All Content`,`elementor`),isEnabled:l,callback:function callback(){return $e.run(`document/elements/copy-all`)}},{name:`delete_all_content`,title:(0,r.__)(`Delete All Content`,`elementor`),isEnabled:l,callback:function callback(){return $e.run(`document/elements/empty`)}}]}]}},{key:`onAddSectionButtonClick`,value:function onAddSectionButtonClick(){this.showSelectPresets()}},{key:`onAddTemplateButtonClick`,value:function onAddTemplateButtonClick(){Dn.sendCanvasEmptyBoxAction({targetName:`e_library`}),$e.run(`library/open`,this.getTemplatesModalOptions())}},{key:`onRender`,value:function onRender(){this.$el.html5Droppable(_objectSpread$17({axis:[`vertical`],groups:[`elementor-element`],placeholder:!1,currentElementClass:`elementor-html5dnd-current-element`,hasDraggingOnChildClass:`elementor-dragging-on-child`},this.getDroppableOptions()))}},{key:`getDroppableOptions`,value:function getDroppableOptions(){var r=this;return{isDroppingAllowed:function isDroppingAllowed(){var r;return!((r=elementor.channels.editor.request(`element:dragged`))!=null&&(r=r.el)!=null&&(r=r.dataset)!=null&&r.id)},onDropping:function onDropping(c,l){elementor.getPreviewView().onDrop(l,{side:c,at:r.getOption(`at`)})}}}},{key:`onGridPresetSelected`,value:function onGridPresetSelected(r){this.closeSelectPresets();var c=r.currentTarget.dataset.structure,l=!!this.options.at||this.options.at===0;Dn.sendCanvasEmptyBoxAction({targetName:`add_container`,metadata:{container_type:`grid`,structure_type:c},containerCreated:!0});var u=G.createContainerFromGridPreset(c,elementor.getPreviewContainer(),this.options);return l&&this.destroy(),u}},{key:`onPresetSelected`,value:function onPresetSelected(r){this.closeSelectPresets();var c=r.currentTarget.dataset.structure,l=elementor.presetsFactory.getParsedStructure(c);$e.run(`document/elements/create`,{model:{elType:`section`},container:elementor.getPreviewContainer(),columns:l.columnsCount,structure:c,options:Object.assign({},this.options)})}},{key:`onFlexPresetSelected`,value:function onFlexPresetSelected(r){this.closeSelectPresets();var c=r.currentTarget.dataset.preset;return Dn.sendCanvasEmptyBoxAction({targetName:`add_container`,metadata:{container_type:`flexbox`,structure_type:c},containerCreated:!0}),G.createContainerFromPreset(c,elementor.getPreviewContainer(),this.options)}},{key:`onDropping`,value:function onDropping(){elementor.getPreviewView().addElementFromPanel()}},{key:`onAfterPaste`,value:function onAfterPaste(){}}],[{key:`getSelectType`,value:function getSelectType(){return AddSectionBase.IS_CONTAINER_ACTIVE?AddSectionBase.getSelectTypePreset():`select-preset`}},{key:`getSelectTypePreset`,value:function getSelectTypePreset(){return AddSectionBase.IS_CONTAINER_ACTIVE?`select-type`:`select-container-preset`}}])}(Marionette.ItemView),_defineProperty(Mn,`IS_CONTAINER_ACTIVE`,!!elementorCommon.config.experimentalFeatures.container),_defineProperty(Mn,`VIEW_CHOOSE_ACTION`,`choose-action`),_defineProperty(Mn,`VIEW_CONTAINER_FLEX_PRESET`,`select-container-preset`),_defineProperty(Mn,`VIEW_CONTAINER_GRID_PRESET`,`select-container-preset-grid`)})),Pn=__exportAll({default:()=>Fn});function _callSuper$291(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$291()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$291(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$291=function _isNativeReflectConstruct(){return!!r})()}function _superPropGet$33(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 Fn,In=__esmMin((()=>{b(),w(),E(),D(),k(),A(),Nn(),kn(),__name(_callSuper$291,`_callSuper`),__name(_isNativeReflectConstruct$291,`_isNativeReflectConstruct`),__name(_superPropGet$33,`_superPropGet`),Fn=function(r){function AddSectionView(){return _classCallCheck(this,AddSectionView),_callSuper$291(this,AddSectionView,arguments)}return _inherits(AddSectionView,r),_createClass(AddSectionView,[{key:`className`,value:function className(){return _superPropGet$33(AddSectionView,`className`,this,3)([])+` elementor-add-section-inline`}},{key:`fadeToDeath`,value:function fadeToDeath(){var r=this;r.$el.slideUp(function(){r.destroy()})}},{key:`onAfterPaste`,value:function onAfterPaste(){_superPropGet$33(AddSectionView,`onAfterPaste`,this,3)([]),this.destroy()}},{key:`onCloseButtonClick`,value:function onCloseButtonClick(){Dn.sendCanvasEmptyBoxAction({targetName:`close`,containerCreated:!1}),this.fadeToDeath()}},{key:`onPresetSelected`,value:function onPresetSelected(r){_superPropGet$33(AddSectionView,`onPresetSelected`,this,3)([r]),this.destroy()}},{key:`onFlexPresetSelected`,value:function onFlexPresetSelected(r){_superPropGet$33(AddSectionView,`onFlexPresetSelected`,this,3)([r]),this.destroy()}},{key:`onAddTemplateButtonClick`,value:function onAddTemplateButtonClick(){_superPropGet$33(AddSectionView,`onAddTemplateButtonClick`,this,3)([]),this.destroy()}},{key:`getDroppableOptions`,value:function getDroppableOptions(){var r=this;return{onDropping:function onDropping(c,l){_superPropGet$33(AddSectionView,`getDroppableOptions`,r,3)([]).onDropping(c,l),r.destroy()}}}},{key:`onDropping`,value:function onDropping(){var r=this.getDroppableOptions();_superPropGet$33(AddSectionView,`onDropping`,this,3)([]),r.onDropping&&r.onDropping()}}])}(Mn)}));function _OverloadYield(r,c){this.v=r,this.k=c}var Ln=__esmMin((()=>{}));function _awaitAsyncGenerator(r){return new _OverloadYield(r,0)}var Rn=__esmMin((()=>{Ln()}));function _wrapAsyncGenerator(r){return function(){return new AsyncGenerator(r.apply(this,arguments))}}function AsyncGenerator(r){var c,l;function resume(c,l){try{var u=r[c](l),p=u.value,m=p instanceof _OverloadYield;Promise.resolve(m?p.v:p).then(function(l){if(m){var h=c===`return`?`return`:`next`;if(!p.k||l.done)return resume(h,l);l=r[h](l).value}settle(u.done?`return`:`normal`,l)},function(r){resume(`throw`,r)})}catch(r){settle(`throw`,r)}}function settle(r,u){switch(r){case`return`:c.resolve({value:u,done:!0});break;case`throw`:c.reject(u);break;default:c.resolve({value:u,done:!1})}(c=c.next)?resume(c.key,c.arg):l=null}this._invoke=function(r,u){return new Promise(function(p,m){var h={key:r,arg:u,resolve:p,reject:m,next:null};l?l=l.next=h:(c=l=h,resume(r,u))})},typeof r.return!=`function`&&(this.return=void 0)}var zn=__esmMin((()=>{Ln(),AsyncGenerator.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},AsyncGenerator.prototype.next=function(r){return this._invoke(`next`,r)},AsyncGenerator.prototype.throw=function(r){return this._invoke(`throw`,r)},AsyncGenerator.prototype.return=function(r){return this._invoke(`return`,r)}})),Bn=__commonJSMin(((r,c)=>{c.exports={getAllElementTypes:function getAllElementTypes(){return Object.keys(elementor.getConfig().elements)},isCompoundAtomicType:function isCompoundAtomicType(r){var c;return!!((c=elementor.getConfig().elements[r])!=null&&(c=c.meta)!=null&&c.is_compound)}}})),Vn=__commonJSMin(((r,c)=>{(function(r){var l=function Stylesheet(){var c=this,u={},p={},m={},h=function queryToHash(c){var l=[];return r.each(c,function(r){l.push(r+`_`+this)}),l.join(`-`)},g=function hashToQuery(r){var c={};return r=r.split(`-`).filter(String),r.forEach(function(r){var l=r.split(/_(.+)/),u=l[0],p=l[1];c[u]=u===`max`?m[p]:elementorFrontend.breakpoints.getDeviceMinBreakpoint(p)}),c},v=function addQueryHash(r){u[r]={};var c=Object.keys(u);if(!(c.length<2)){c.sort(function(r,c){var l,u;if(r===`all`)return-1;if(c===`all`)return 1;var p=g(r),m=g(c);if(p.max&&m.max)return m.max-p.max;if(p.min&&m.min)return m.min-p.min;var h=(l=p.max)==null?p.min:l;return((u=m.max)==null?m.min:u)-h});var l={};c.forEach(function(r){l[r]=u[r]}),u=l}},y=function getQueryHashStyleFormat(c){var l=g(c),u=[];return r.each(l,function(r){u.push(`(`+r+`-width:`+this+`px)`)}),`@media`+u.join(` and `)};this.addDevice=function(r,l){m[r]=l;var u=Object.keys(m);if(u.length<2)return c;u.sort(function(r,c){return m[r]-m[c]});var p={};return u.forEach(function(r){p[r]=m[r]}),m=p,c},this.addRawCSS=function(r,c){p[r]=c},this.addRules=function(l,p,m){var g=`all`;if(_.isEmpty(m)||(g=h(m)),u[g]||v(g),!p){var y=l.match(/[^{]+\{[^}]+}/g);r.each(y,function(){var r=this.match(/([^{]+)\{([^}]+)}/);r&&c.addRules(r[1].trim(),r[2].trim(),m)});return}if(u[g][l]||(u[g][l]={}),typeof p==`string`){p=p.split(`;`).filter(String);var b={};try{r.each(p,function(){var r=this.split(/:(.*)?/);b[r[0].trim()]=r[1].trim().replace(`;`,``)})}catch(r){return}p=b}return r.extend(u[g][l],p),c},this.getRules=function(){return u},this.empty=function(){u={},p={}},this.toString=function(){var c=``;return r.each(u,function(r){var u=l.parseRules(this);r!==`all`&&(u=y(r)+`{`+u+`}`),c+=u}),r.each(p,function(){c+=this}),c}};l.parseRules=function(c){var u=``;return r.each(c,function(r){var c=l.parseProperties(this);c&&(u+=r+`{`+c+`}`)}),u},l.parseProperties=function(c){var l=``;return r.each(c,function(r){this&&(l+=r+`:`+this+`;`)}),l},c.exports=l})(jQuery)})),Hn=__commonJSMin(((r,c)=>{M();var l=Vn();c.exports=elementorModules.ViewModule.extend({stylesheet:null,getDefaultSettings:function getDefaultSettings(){return{id:0,context:null,settingsModel:null,dynamicParsing:{}}},getDefaultElements:function getDefaultElements(){var r=`elementor-style-${this.getSettings(`id`)}`,c=elementor.$previewContents.find(`#${r}`);return c.length||(c=jQuery(`<style>`,{id:r})),{$stylesheetElement:c}},initStylesheet:function initStylesheet(){var r=this,c=elementorFrontend.config.responsive.activeBreakpoints;this.stylesheet=new l,Object.entries(c).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];r.stylesheet.addDevice(u,p.value)})},addStyleRules:function addStyleRules(r,c,l,u,p){var m=this,h=this.getSettings(`settingsModel`).parseDynamicSettings(c,this.getSettings(`dynamicParsing`),r);_.each(r,function(r){var g,v;if(r.styleFields&&r.styleFields.length&&m.addRepeaterControlsStyleRules(c[r.name],r.styleFields,r.fields,u,p),(g=r.dynamic)!=null&&g.active&&(v=c.__dynamic__)!=null&&v[r.name]&&m.addDynamicControlStyleRules(c.__dynamic__[r.name],r),r.selectors){var y=m.getSettings(`context`),b;y&&(b=y.model.get(`settings`).get(`__globals__`)),m.addControlStyleRules(r,h,l,u,p,b)}})},addControlStyleRules:function addControlStyleRules(r,c,l,u,p,m){var h=this,g;if(m){var v=r.name;r.groupType&&(v=r.groupPrefix+r.groupType),g=m[v]}var y;!g&&(y=this.getStyleControlValue(r,c),y===void 0)||_.each(r.selectors,function(m,v){var b;if(g){var x=h.getSelectorGlobalValue(r,g);x&&(r.type===`font`&&$e.data.get(g).then(function(r){elementor.helpers.enqueueFont(r.data.value.typography_font_family)}),b=m.replace(/(:)[^;]+(;?)/g,`$1`+x+`$2`))}else try{if(h.unitHasCustomSelector(r,y)&&(m=r.unit_selectors_dictionary[y.unit]),h.shouldDoUpgradeMap(r,y)){var S;(S=r.upgrade_conversion_map)==null||S.new_keys.forEach(function(c){y[c]=``+y[r.upgrade_conversion_map.old_key]})}b=m.replace(/{{(?:([^.}]+)\.)?([^}| ]*)(?: *\|\| *(?:([^.}]+)\.)?([^}| ]*) *)*}}/g,function(u,p,m,g,v){var b=p&&!l[p],x=``;if(b||(x=h.parsePropertyPlaceholder(r,y,l,c,m,p)),!x&&x!==0){if(v){x=v;var S=x.match(/^(['"])(.*)\1$/);if(S)x=S[2];else if(!isFinite(x)){if(g&&!l[g])return``;x=h.parsePropertyPlaceholder(r,y,l,c,v,g)}}if(!x&&x!==0){if(b)return``;throw``}}return r.type===`font`&&elementor.helpers.enqueueFont(x),x===`__EMPTY__`&&(x=``),x})}catch(r){return}if(!_.isEmpty(b)){var C=/^(?:\([^)]+\)){1,2}/,w=v.match(C),T={};if(w){w=w[0],v=v.replace(C,``);for(var E=/\(([^)]+)\)/g,D=[],O=E.exec(w);O;)D.push(O[1]),O=E.exec(w);_.each(D,function(r){if(r!==`desktop`){var c=r.replace(/\+$/,``),l=c===r?`max`:`min`;T[l]=c}})}_.each(u,function(r,c){var l=r.source?r.source:r,u=new RegExp(l,`g`);v=v.replace(u,p[c])}),!Object.keys(T).length&&r.responsive&&(T=_.pick(elementorCommon.helpers.cloneObject(r.responsive),[`min`,`max`]),T.max===`desktop`&&delete T.max),h.stylesheet.addRules(v,b,T)}})},unitHasCustomSelector:function unitHasCustomSelector(r,c){return r.unit_selectors_dictionary&&r.unit_selectors_dictionary[c.unit]!==void 0},shouldDoUpgradeMap:function shouldDoUpgradeMap(r,c){return r.upgrade_conversion_map&&!!c.hasOwnProperty(r.upgrade_conversion_map.old_key)&&c[r.upgrade_conversion_map.old_key]!==``&&!c.hasOwnProperty(r.upgrade_conversion_map.new_keys[0])},parsePropertyPlaceholder:function parsePropertyPlaceholder(r,c,l,u,p,m){if(m){if(r.responsive&&l[m]){var h,g=elementor.conditions.getResponsiveControlDeviceSuffix(r.responsive);r=(h=_.findWhere(l,{name:m+g}))==null?_.findWhere(l,{name:m}):h}else r=_.findWhere(l,{name:m});c=this.getStyleControlValue(r,u)}return elementor.getControlView(r.type).getStyleValue(p,c,r)},getStyleControlValue:function getStyleControlValue(r,c){var l,u,p,m=(l=this.getSettings())==null||(l=l.context)==null?void 0:l.container,h=m==null?void 0:m.isGlobalApplied(r.name),g=((u=c.__globals__)==null?void 0:u[r.name])||((p=r.global)==null?void 0:p.default);if(h&&g)return this.getSelectorGlobalValue(r,g);var v=c[r.name];if(r.selectors_dictionary&&(v=r.selectors_dictionary[v]||v),!(!_.isNumber(v)&&_.isEmpty(v)))return v},getSelectorGlobalValue:function getSelectorGlobalValue(r,c){var l=$e.data.commandExtractArgs(c),u=$e.data.getCache($e.components.get(`globals`),l.command,l.args.query);if(u!=null&&u.value){var p=u.id,m;if(r.groupType){var h=elementor.breakpoints.getActiveMatchRegex(),g=r.name.replace(r.groupPrefix,``).replace(h,``);if(!u.value[elementor.config.kit_config.typography_prefix+g])return;g=g.replace(`_`,`-`),m=`var( --e-global-${r.groupType}-${p}-${g} )`,elementor.config.ui.defaultGenericFonts&&r.groupPrefix+`font_family`===r.name&&(m+=`, ${elementor.config.ui.defaultGenericFonts}`)}else m=`var( --e-global-${r.type}-${p} )`;return m}},addRepeaterControlsStyleRules:function addRepeaterControlsStyleRules(r,c,l,u,p){var m=this;c.forEach(function(c,h){var g=r.models[h];m.addStyleRules(c,g.attributes,l,u.concat([`{{CURRENT_ITEM}}`]),p.concat([`.elementor-repeater-item-`+g.get(`_id`)]))})},addDynamicControlStyleRules:function addDynamicControlStyleRules(r,c){var l=this;elementor.dynamicTags.parseTagsText(r,c.dynamic,function(r,c,u){var p=elementor.dynamicTags.createTag(r,c,u);if(p){var m=p.model;m.getStyleControls().length&&l.addStyleRules(m.getStyleControls(),m.attributes,m.controls,[`{{WRAPPER}}`],[`#elementor-tag-`+r])}})},addStyleToDocument:function addStyleToDocument(r){var c=elementor.$previewContents.find(`head`),l=`append`,u=c;if(r){var p=c.children(r.of);p.length&&(l=r.at,u=p)}u[l](this.elements.$stylesheetElement);var m=elementor.hooks.applyFilters(`editor/style/styleText`,``,this.getSettings(`context`));this.elements.$stylesheetElement.text(this.stylesheet+m)},removeStyleFromDocument:function removeStyleFromDocument(){this.elements.$stylesheetElement.remove()},onInit:function onInit(){elementorModules.ViewModule.prototype.onInit.apply(this,arguments),this.initStylesheet()}})})),Un=__commonJSMin(((r,c)=>{M(),En();var l=Bn();c.exports=Marionette.CompositeView.extend({templateHelpers:function templateHelpers(){return{view:this}},getBehavior:function getBehavior(r){return this._behaviors[Object.keys(this.behaviors()).indexOf(r)]},initialize:function initialize(){this.collection=this.model.get(`elements`)},addChildModel:function addChildModel(r,c){return this.collection.add(r,c,!0)},findFirstViewAccepting:function findFirstViewAccepting(r){var c=null,l=null;return this.children.each(function(u){if(u!=null&&u.getChildType){if(u.getChildType().indexOf(r)!==-1){c||(c=u);return}!l&&u.findFirstViewAccepting&&(l=u.findFirstViewAccepting(r))}}),c||l},addElement:function addElement(r,c){if(!this.isCollectionFilled()){c=jQuery.extend({trigger:!1,edit:!0,onBeforeAdd:null,onAfterAdd:null},c);var l=this.getChildType(),u,p;if(r instanceof Backbone.Model?(u=r,p=u.get(`elType`)):(u={id:elementorCommon.helpers.getUniqueId(),elType:l[0],settings:{},elements:[]},r&&jQuery.extend(u,r),p=u.elType),l.indexOf(p)===-1)return(this.findFirstViewAccepting(p)||this.children.last()).addElement(u,c);c.clone&&(u=this.cloneItem(u)),c.trigger&&elementor.channels.data.trigger(c.trigger.beforeAdd,u),c.onBeforeAdd&&c.onBeforeAdd(),this.filterSettings&&this.filterSettings(u);var m=this.addChildModel(u,{at:c.at}),h=this.children.findByModel(m);return c.onAfterAdd&&c.onAfterAdd(m,h),c.trigger&&elementor.channels.data.trigger(c.trigger.afterAdd,u),c.edit&&elementor.documents.getCurrent().history.getActive()&&(h.getContainer(),h._openEditingPanel(c)),h}},_openEditingPanel:function _openEditingPanel(r){this.model.trigger(`request:edit`,{scrollIntoView:r.scrollIntoView})},createElementFromContainer:function createElementFromContainer(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.createElementFromModel(r.model,c)},createElementFromModel:function createElementFromModel(r){var c,l,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(r instanceof Backbone.Model&&(r=r.toJSON()),!elementor.helpers.maybeDisableWidget(r.widgetType)){r=Object.assign(r,r.custom),r.elType===`section`&&(r.isInner=!0),(c=(l=r)==null?void 0:l.isPreset)!=null&&c&&(r.settings=r.preset_settings);var p=u.useHistory,m=p===void 0||p,h;m&&(h=$e.internal(`document/history/start-log`,{type:this.getHistoryType(u.event),title:elementor.helpers.getModelLabel(r)}));var g=this.getContainer();u.shouldWrap&&(g=this.getWrappingContainer(g,r,u));var v=$e.run(`document/elements/create`,{container:g,model:r,options:u});return m&&$e.internal(`document/history/end-log`,{id:h}),v}},getWrappingContainer:function getWrappingContainer(r,c,u){var p,m=elementor.helpers.isAtomicWidget(c)||(0,l.isCompoundAtomicType)(c.elType),h={at:u.at,scrollIntoView:u.scrollIntoView,useHistory:(p=u==null?void 0:u.useHistory)==null||p};return m?G.createContainerFromModel({elType:G.V4_DEFAULT_CONTAINER_TYPE},r,{options:h}):this.getV3Container(r,h)},getV3Container:function getV3Container(r,c){var l=elementorCommon.config.experimentalFeatures.container;return r=G.createContainerFromModel({elType:l?`container`:`section`},r,{columns:Number(!l),options:c}),l||(r=r.view.children.findByIndex(0).getContainer()),r},onDrop:function onDrop(r,c){var l,u,p=r.originalEvent.dataTransfer.files;if(p.length){$e.run(`editor/browser-import/import`,{input:p,target:this.getContainer(),options:{event:r,target:{at:c.at}}});return}var m={};if(m.model=Object.fromEntries(Object.entries((l=elementor.channels.panelElements.request(`element:selected`))==null?void 0:l.model.attributes).filter(function(r){var c=_slicedToArray(r,1)[0];return[`elType`,`widgetType`,`custom`,`editor_settings`].includes(c)})),m.container=this.getContainer(),m.options=c,$e.run(`preview/drop`,m),(u=elementorCommon)!=null&&(u=u.eventsManager)!=null&&u.dispatchEvent&&m!=null&&m.model){var h,g,v,y,b=(h=(g=m.model)==null?void 0:g.elType)==null?``:h,x=(v=(y=m.model)==null?void 0:y.widgetType)==null?``:v,S=b===`widget`?x:b;elementorCommon.eventsManager.dispatchEvent(`add_element`,{location:`editor_panel`,element_name:S,element_type:b,widget_type:x})}},getHistoryType:function getHistoryType(r){if(r)switch(r.originalEvent&&(r=r.originalEvent),r.constructor.name){case`DragEvent`:return`import`;case`ClipboardEvent`:return`paste`}return`add`},cloneItem:function cloneItem(r){var c=this;return r instanceof Backbone.Model?r.clone():(r.id=elementorCommon.helpers.getUniqueId(),r.settings._element_id=``,r.elements.forEach(function(l,u){r.elements[u]=c.cloneItem(l)}),r)},lookup:function lookup(){var r=this;return r.isDisconnected()&&(r=$e.components.get(`document`).utils.findViewById(r.model.id)),r},isDisconnected:function isDisconnected(){return this.isDestroyed||!this.el.isConnected},isCollectionFilled:function isCollectionFilled(){return!1}}),Marionette.CollectionView.prototype.buildChildView=function(r,c,l){var u=new c(_.extend({model:r},l));return u._parent=this,Marionette.MonitorDOMRefresh(u),u},Marionette.CompositeView.prototype.attachBuffer=function(r,c){var l,u,p=this.getChildViewContainer(r);if((l=this.model)!=null&&(l=l.config)!=null&&l.support_improved_repeaters&&(u=this.model)!=null&&(u=u.config)!=null&&u.is_interlaced){var m,h=p.find((m=this.model)==null||(m=m.config)==null||(m=m.defaults)==null?void 0:m.child_container_placeholder_selector);_.each(h,function(r){r.appendChild(c.childNodes[0]),c.appendChild(r)})}p.append(c)}})),Wn=__commonJSMin(((c,l)=>{M(),N(),x(),ge(),Rn(),zn();var u=__toESM(R());Kt(),$t();var p=Bn();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.
9 9 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 _asyncIterator(r){var c,l,u,p=2;for(typeof Symbol<`u`&&(l=Symbol.asyncIterator,u=Symbol.iterator);p--;){if(l&&(c=r[l])!=null)return c.call(r);if(u&&(c=r[u])!=null)return new AsyncFromSyncIterator(c.call(r));l=`@@asyncIterator`,u=`@@iterator`}throw TypeError(`Object is not async iterable`)}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(TypeError(r+` is not an object.`));var c=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:c}})}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments))},return:function _return(r){var c=this.s.return;return c===void 0?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(c.apply(this.s,arguments))},throw:function _throw(r){var c=this.s.return;return c===void 0?Promise.reject(r):AsyncFromSyncIteratorContinuation(c.apply(this.s,arguments))}},new AsyncFromSyncIterator(r)}var m=Hn(),h=_e(),g=Un();l.exports=g.extend({tagName:`div`,controlsCSSParser:null,allowRender:!0,toggleEditTools:!1,renderAttributes:{},isRendering:!1,className:function className(){var r=`elementor-element elementor-element-edit-mode `+this.getElementUniqueID();return this.toggleEditTools&&(r+=` elementor-element--toggle-edit-tools`),r},attributes:function attributes(){return{"data-id":this.getID(),"data-element_type":this.model.get(`elType`),"data-model-cid":this.model.cid}},ui:function ui(){return{tools:`> .elementor-element-overlay > .elementor-editor-element-settings`,editButton:`> .elementor-element-overlay .elementor-editor-element-edit`,duplicateButton:`> .elementor-element-overlay .elementor-editor-element-duplicate`,addButton:`> .elementor-element-overlay .elementor-editor-element-add`,removeButton:`> .elementor-element-overlay .elementor-editor-element-remove`}},behaviors:function behaviors(){var r=this.options.model.get(`elType`),c=elementor.hooks.applyFilters(`elements/${r}/contextMenuGroups`,this.getContextMenuGroups(),this),l={contextMenu:{behaviorClass:jn(),groups:c}};return elementor.hooks.applyFilters(`elements/base/behaviors`,l,this)},getBehavior:function getBehavior(r){return this._behaviors[Object.keys(this.behaviors()).indexOf(r)]},events:function events(){return{mousedown:`onMouseDown`,click:`handleAnchorClick`,"click @ui.editButton":`onEditButtonClick`,"click @ui.duplicateButton":`onDuplicateButtonClick`,"click @ui.addButton":`onAddButtonClick`,"click @ui.removeButton":`onRemoveButtonClick`}},getElementType:function getElementType(){return this.model.get(`elType`)},getIDInt:function getIDInt(){return parseInt(this.getID(),16)},getChildType:function getChildType(){return elementor.helpers.getElementChildType(this.getElementType())},getChildView:function getChildView(r){var c=r.get(`widgetType`)||r.get(`elType`),l=elementor.elementsManager.getElementTypeClass(c);if(!l)throw new Qt(c);return elementor.hooks.applyFilters(`element/view`,l.getView(),r,this)},getTemplateType:function getTemplateType(){return`js`},getEditModel:function getEditModel(){return this.model},getContainer:function getContainer(){if(!this.container){var r=this.model.get(`settings`);this.container=new elementorModules.editor.Container({type:this.model.get(`elType`),id:this.model.id,model:this.model,settings:r,view:this,parent:this._parent?this._parent.getContainer():!1,label:elementor.helpers.getModelLabel(this.model),controls:r.options.controls})}return this.container},getContextMenuGroups:function getContextMenuGroups(){var c=this,l=Gt.mac?`&#8984;`:`^`,u=[{name:`general`,actions:[{name:`edit`,icon:`eicon-edit`,title:function title(){return(0,r.sprintf)((0,r.__)(`Edit %s`,`elementor`),elementor.selection.isMultiple()?``:c.options.model.getTitle())},isEnabled:function isEnabled(){return!elementor.selection.isMultiple()},callback:function callback(){return $e.run(`document/elements/select`,{container:c.getContainer()})}},{name:`duplicate`,icon:`eicon-clone`,title:(0,r.__)(`Duplicate`,`elementor`),shortcut:l+`+D`,isEnabled:function isEnabled(){return elementor.selection.isSameType()&&!c.getContainer().isLocked()},callback:function callback(){return $e.run(`document/elements/duplicate`,{containers:elementor.selection.getElements(c.getContainer())})}}]},{name:`clipboard`,actions:[{name:`copy`,title:(0,r.__)(`Copy`,`elementor`),shortcut:l+`+C`,isEnabled:function isEnabled(){return elementor.selection.isSameType()&&!c.getContainer().isLocked()},callback:function callback(){return $e.run(`document/elements/copy`,{containers:elementor.selection.getElements(c.getContainer())})}},{name:`paste`,title:(0,r.__)(`Paste`,`elementor`),shortcut:l+`+V`,isEnabled:function isEnabled(){return $e.components.get(`document/elements`).utils.isPasteEnabled(c.getContainer())&&elementor.selection.isSameType()},callback:function callback(){return $e.run(`document/ui/paste`,{container:c.getContainer()})}},{name:`pasteStyle`,title:(0,r.__)(`Paste style`,`elementor`),shortcut:l+`+⇧+V`,isEnabled:function isEnabled(){return!!elementorCommon.storage.get(`clipboard`)},callback:function callback(){return $e.run(`document/elements/paste-style`,{containers:elementor.selection.getElements(c.getContainer())})}},{name:`pasteInteractions`,title:(0,r.__)(`Paste interactions`,`elementor`),isEnabled:function isEnabled(){if(!elementorCommon.storage.get(`clipboard`))return!1;var r=elementor.selection.getElements(c.getContainer());return r.length>0&&r.every(function(r){return elementor.helpers.isAtomicWidget(r.model)})},callback:function callback(){$e.run(`document/elements/paste-interactions`,{containers:elementor.selection.getElements(c.getContainer())})}},{name:`pasteArea`,icon:`eicon-import-export`,title:(0,r.__)(`Paste from other site`,`elementor`),callback:function callback(){return $e.run(`document/elements/paste-area`,{container:c.getContainer()})}},{name:`resetStyle`,title:(0,r.__)(`Reset style`,`elementor`),callback:function callback(){return $e.run(`document/elements/reset-style`,{containers:elementor.selection.getElements(c.getContainer())})}}]}],p=[];return p=elementor.hooks.applyFilters(`elements/context-menu/groups`,p,this.options.model.get(`elType`)),p.length&&(u=[].concat(_toConsumableArray(u),_toConsumableArray(p))),u.push({name:`delete`,actions:[{name:`delete`,icon:`eicon-trash`,title:function title(){return elementor.selection.isMultiple()?(0,r.sprintf)((0,r.__)(`Delete %d items`,`elementor`),elementor.selection.getElements().length):(0,r.__)(`Delete`,`elementor`)},shortcut:`⌦`,callback:function callback(){return $e.run(`document/elements/delete`,{containers:elementor.selection.getElements(c.getContainer()),callerName:`context_menu`})},isEnabled:function isEnabled(){return!c.getContainer().isLocked()}}]}),u},getEditButtons:function getEditButtons(){return{}},initialize:function initialize(){var r=this;g.prototype.initialize.apply(this,arguments);var c=this.getEditModel();this.collection&&this.onCollectionChanged&&(elementorDevTools.deprecation.deprecated(`onCollectionChanged`,`2.8.0`,`$e.hooks`),this.listenTo(this.collection,`add remove reset`,this.onCollectionChanged,this)),this.onSettingsChanged&&(elementorDevTools.deprecation.deprecated(`onSettingsChanged`,`2.8.0`,`$e.hooks`),this.listenTo(c.get(`settings`),`change`,this.onSettingsChanged)),this.listenTo(c.get(`editSettings`),`change`,this.onEditSettingsChanged).listenTo(this.model,`request:edit`,this.onEditRequest).listenTo(this.model,`request:toggleVisibility`,this.toggleVisibility),this.initControlsCSSParser(),this.onDynamicServerRequestEnd||(this.onDynamicServerRequestEnd=_.debounce(function(){r.render(),r.$el.removeClass(`elementor-loading`)},100))},getHandlesOverlay:function getHandlesOverlay(){var c=this.getElementType();if(!(!elementor.userCan(`design`)&&c!==`widget`)&&this.getContainer().isEditable()){var l=(0,p.getAllElementTypes)().includes(c),u=jQuery(`<div>`,{class:`elementor-element-overlay`}),m=jQuery(`<ul>`,{class:`elementor-editor-element-settings elementor-editor-${c}-settings ${l?`elementor-editor-element-overlay-settings`:``}`}),h=elementor.getPreferences(`edit_buttons`),g=elementor.getElementData(this.model),v=this.getEditButtons();return(h||c===`widget`)&&(v=elementor.hooks.applyFilters(`elements/edit-buttons`,v),v=elementor.hooks.applyFilters(`elements/edit-buttons/${c}`,v)),(c===`section`||h)&&(v.remove={title:(0,r.sprintf)((0,r.__)(`Delete %s`,`elementor`),g.title),icon:`close`}),jQuery.each(v,function(r,c){var l=jQuery(`<li>`,{class:`elementor-editor-element-setting elementor-editor-element-${r}`,title:c.title,"aria-label":c.title}),u=jQuery(`<i>`,{class:`eicon-${c.icon}`,"aria-hidden":!0});l.append(u),m.append(l)}),u.append(m),u}},attachElContent:function attachElContent(r){this.$el.empty().append(this.getHandlesOverlay(),r)},isStyleTransferControl:function isStyleTransferControl(r){return r.style_transfer===void 0?r.tab!==`content`||r.selectors||r.prefix_class:r.style_transfer},toggleVisibility:function toggleVisibility(){this.model.toggleVisibility(),this.toggleVisibilityClass()},toggleVisibilityClass:function toggleVisibilityClass(){var r=this.model.getVisibility();if(!elementor.helpers.isAtomicWidget(this.model)){this.$el.toggleClass(`elementor-edit-hidden`,r);return}var c=this.$el.parent().is(`div[data-type="hide-atomic-widget"]`);if(r){c||this.$el.wrap(`<div data-type="hide-atomic-widget" style="display: none" />`);return}c&&this.$el.unwrap()},addElementFromPanel:function addElementFromPanel(r){r=r||{};var c=elementor.channels.panelElements.request(`element:selected`),l={elType:c.model.get(`elType`)};if(!elementor.helpers.maybeDisableWidget()){if(l.elType===`widget`)l.widgetType=c.model.get(`widgetType`);else if(l.elType===`section`)l.isInner=!0;else if(l.elType!==`container`)return;if(!(l.elType===`section`&&this.isInner())){var u=c.model.get(`custom`);return u&&jQuery.extend(l,u),elementor.channels.panelElements.reply(`element:selected`,null),$e.run(`document/elements/create`,{container:this.getContainer(),model:l,options:r})}}},addControlValidator:function addControlValidator(r,c){c=c.bind(this);var l=new h({customValidationMethod:c}),u=this.getEditModel().get(`settings`).validators;u[r]||(u[r]=[]),u[r].push(l)},addRenderAttribute:function addRenderAttribute(r,c,l,u){var p=this;if(_typeof(r)===`object`)return jQuery.each(r,function(r,c){p.addRenderAttribute(r,c,null,u)}),p;if(_typeof(c)===`object`)return jQuery.each(c,function(c,l){p.addRenderAttribute(r,c,l,u)}),p;p.renderAttributes[r]||(p.renderAttributes[r]={}),p.renderAttributes[r][c]||(p.renderAttributes[r][c]=[]),Array.isArray(l)||(l=[l]),u?p.renderAttributes[r][c]=l:p.renderAttributes[r][c]=p.renderAttributes[r][c].concat(l)},getRenderAttributeString:function getRenderAttributeString(r){if(!this.renderAttributes[r])return``;var c=this.renderAttributes[r],l=[];return jQuery.each(c,function(r,c){l.push(r+`="`+_.escape(c.join(` `))+`"`)}),l.join(` `)},isInner:function isInner(){return!!this.model.get(`isInner`)},initControlsCSSParser:function initControlsCSSParser(){this.controlsCSSParser=new m({id:this.model.get(`id`),context:this,settingsModel:this.getEditModel().get(`settings`),dynamicParsing:this.getDynamicParsingSettings()})},enqueueFonts:function enqueueFonts(){var r=this.getEditModel(),c=r.get(`settings`);jQuery.each(c.getIconsControls(),function(c,l){var u=r.getSetting(l.name);!u||!u.library||elementor.helpers.enqueueIconFonts(u.library)})},renderStyles:function renderStyles(r){r||(r=this.getEditModel().get(`settings`)),this.controlsCSSParser.stylesheet.empty(),this.controlsCSSParser.addStyleRules(r.getStyleControls(),r.attributes,this.getEditModel().get(`settings`).controls,[/{{ID}}/g,/{{WRAPPER}}/g],[this.getID(),`.elementor-`+elementor.config.document.id+` .elementor-element.`+this.getElementUniqueID()]),this.controlsCSSParser.addStyleToDocument()},renderCustomClasses:function renderCustomClasses(){var r=this,c=r.getEditModel().get(`settings`),l=c.getClassControls();_.each(l,function(l){var u=c.previous(l.name);l.classes_dictionary&&l.classes_dictionary[u]!==void 0&&(u=l.classes_dictionary[u]),r.$el.removeClass(l.prefix_class+u)}),_.each(l,function(l){var u=c.attributes[l.name],p=u;l.classes_dictionary&&l.classes_dictionary[u]!==void 0&&(p=l.classes_dictionary[u]),elementor.helpers.isActiveControl(l,c.attributes,c.controls)&&(p||p===0)&&r.$el.addClass(l.prefix_class+p)}),r.$el.addClass(_.result(r,`className`)),r.toggleVisibilityClass()},renderCustomElementID:function renderCustomElementID(){var r=this.getEditModel().get(`settings`).get(`_element_id`);r&&this.$el.attr(`id`,r)},renderUI:function renderUI(){this.renderStyles(),this.renderCustomClasses(),this.renderCustomElementID(),this.enqueueFonts()},runReadyTrigger:function runReadyTrigger(){var r=this;_.defer(function(){elementorFrontend.elementsHandler.runReadyTrigger(r.el),elementorFrontend.isEditMode()&&r.$el.find(`.elementor-element.elementor-`+r.model.get(`elType`)+`:not(.elementor-element-edit-mode)`).each(function(){elementorFrontend.elementsHandler.runReadyTrigger(this)})})},getID:function getID(){return this.model.get(`id`)},getElementUniqueID:function getElementUniqueID(){return`elementor-element-`+this.getID()},renderHTML:function renderHTML(){var r=this.getTemplateType(),c=this.getEditModel();r===`js`?(this.getEditModel().setHtmlCache(),this.render(),c.renderOnLeave=!0):c.renderRemoteServer()},renderChanges:function renderChanges(r){if(r instanceof elementorModules.editor.elements.models.BaseSettings){var c=r.hasChanged(),l=!c,u=!c;if(_.each(r.changedAttributes(),function(c,p){if(p===`_column_size`){u=!0;return}var m=r.getControl(p);if(!m){u=!0,l=!0;return}m.render_type!==`none`&&(u=!0),[`none`,`ui`].indexOf(m.render_type)===-1&&(m.render_type===`template`||!r.isStyleControl(p)&&!r.isClassControl(p)&&p!==`_element_id`)&&(l=!0)}),!u)return;if(!l){this.renderUI();return}}this.renderHTML()},isAtomicDynamic:function isAtomicDynamic(r,c,l,u){return`__dynamic__`in r&&c.el.hasAttribute(`data-binding-dynamic`)&&(c.el.getAttribute(`data-binding-setting`)===l||this.isCssIdControl(l,u))},getDynamicValue:function getDynamicValue(r,c,l){var p=this;return _asyncToGenerator(u.default.mark(function _callee(){var m,h;return u.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(m={active:!0},h=p.getChangedData(r,c,l),h){u.next=1;break}return u.abrupt(`return`,r.attributes[c]);case 1:return u.next=2,p.getDataFromCacheOrBackend(h,m);case 2:return u.abrupt(`return`,u.sent);case 3:case`end`:return u.stop()}},_callee)}))()},findUniqueKey:function findUniqueKey(r,c){if(_typeof(r)!==`object`||_typeof(c)!==`object`)return!1;var l=Object.keys(r),u=Object.keys(c);return l.concat(u).filter(function(r,c,l){return l.indexOf(r)===l.lastIndexOf(r)})},linkDataBindings:function linkDataBindings(){var r=this;this.dataBindings=[];var c=this.$el.data(`id`);if(c){var l=this.$el.find(`[data-binding-type]`);l.length&&l.each(function(l,u){jQuery(u).closest(`.elementor-element`).data(`id`)===c&&u.dataset.bindingType&&r.dataBindings.push({el:u,dataset:u.dataset})})}},renderDataBindings:function renderDataBindings(r,c){var l,p=this;if(!((l=this.dataBindings)!=null&&l.length))return!1;var m=!1,h=function(){var c=_asyncToGenerator(u.default.mark(function _callee2(c){var l,m,h,g,v,y,b,x,S,C,w,T,E,D,O;return u.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:l=c.dataset,m=l.bindingSetting,h=l.bindingConfig,g=m.split(` `),v=JSON.parse(h),y=!1,b=!1,x=!1,u.prev=1,C=_asyncIterator(p.bindingChangesGenerator(r,g,v));case 2:return u.next=3,C.next();case 3:if(!(b=!(w=u.sent).done)){u.next=5;break}T=w.value,E=T.key,D=T.value,typeof D==`string`&&(p.renderDataBoundChange(D,c.el,v[E]),y=!0);case 4:b=!1,u.next=2;break;case 5:u.next=7;break;case 6:u.prev=6,O=u.catch(1),x=!0,S=O;case 7:if(u.prev=7,u.prev=8,!(b&&C.return!=null)){u.next=9;break}return u.next=9,C.return();case 9:if(u.prev=9,!x){u.next=10;break}throw S;case 10:return u.finish(9);case 11:return u.finish(7);case 12:return u.abrupt(`return`,y);case 13:case`end`:return u.stop()}},_callee2,null,[[1,6,7,12],[8,,9,11]])}));return function renderDataBinding(r){return c.apply(this,arguments)}}(),g=_createForOfIteratorHelper(c),v;try{for(g.s();!(v=g.n()).done;){var y=v.value;switch(y.dataset.bindingType){case`repeater-item`:var b,x=this.container.repeaters[y.dataset.bindingRepeaterName];if(!x)break;var S=x.children.find(function(c){return c.id===r.attributes._id});(S==null||(b=S.parent)==null?void 0:b.children.indexOf(S))+1===parseInt(y.dataset.bindingIndex)?m=h(y):c.indexOf(y)+1===this.getRepeaterItemActiveIndex()&&(m=this.tryHandleDynamicCoverSettings(y,r));break;case`content`:m=h(y);break}if(m)break}}catch(r){g.e(r)}finally{g.f()}return m},bindingChangesGenerator:function bindingChangesGenerator(r,c,l){var p=this;return _wrapAsyncGenerator(u.default.mark(function _callee3(){var m,h,g,v,y,b,x,S,C;return u.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:m=0,h=Object.entries(r.changed);case 1:if(!(m<h.length)){u.next=9;break}if(g=_slicedToArray(h[m],2),v=g[0],y=g[1],!(v!==`__dynamic__`&&!p.isHandledAsDatabinding(v,c,l))){u.next=2;break}return u.abrupt(`continue`,8);case 2:if(v===`__dynamic__`){u.next=4;break}return u.next=3,{key:v,value:y};case 3:return u.abrupt(`continue`,8);case 4:b=0,x=Object.keys(y);case 5:if(!(b<x.length)){u.next=8;break}if(S=x[b],!p.isHandledAsDatabinding(S,c,l)){u.next=7;break}return u.next=6,_awaitAsyncGenerator(p.getDynamicValue(r,S,S));case 6:return C=u.sent,u.next=7,{key:S,value:C};case 7:b++,u.next=5;break;case 8:m++,u.next=1;break;case 9:case`end`:return u.stop()}},_callee3)}))()},isHandledAsDatabinding:function isHandledAsDatabinding(r,c,l){return c.some(function(c){return c===r})||l[r]!==void 0},renderDataBoundChange:function renderDataBoundChange(r,c,l){switch(l==null?void 0:l.editType){case`attribute`:c.closest(l.selector).setAttribute(l.attr,r);break;case`text`:c.innerHTML=r;break;default:c.innerHTML=r}},renderOnChange:function renderOnChange(r){var c=this;if(this.allowRender){if(this.isRendering){this.isRendering=!1;return}var l=this.renderDataBindings(r,this.dataBindings);l instanceof Promise&&l.then(function(l){l||c.renderChanges(r)}),l||this.renderChanges(r)}},getDynamicParsingSettings:function getDynamicParsingSettings(){var r=this;return{onServerRequestStart:function onServerRequestStart(){r.$el.addClass(`elementor-loading`)},onServerRequestEnd:r.onDynamicServerRequestEnd}},serializeData:function serializeData(){var r=g.prototype.serializeData.apply(this,arguments);return r.settings=this.getEditModel().get(`settings`).parseDynamicSettings(r.settings,this.getDynamicParsingSettings()),r},save:function save(){elementor.templates.eventManager.sendNewSaveTemplateClickedEvent(),$e.route(`library/save-template`,{model:this.model})},onBeforeRender:function onBeforeRender(){this.renderAttributes={}},render:function render(){this.getContainer(),g.prototype.render.apply(this,arguments)},onRender:function onRender(){var r=this;if(this.linkDataBindings(),this.renderUI(),this.runReadyTrigger(),this.toggleEditTools){var c=this.ui.editButton;this.ui.tools&&this.ui.tools.hoverIntent(function(){c.addClass(`elementor-active`)},function(){c.removeClass(`elementor-active`)},{timeout:500})}setTimeout(function(){r.initDraggable(),r.dispatchElementLifeCycleEvent(`rendered`),elementorFrontend.elements.$window.on(`elementor/elements/link-data-bindings`,r.linkDataBindings.bind(r))})},dispatchElementLifeCycleEvent:function dispatchElementLifeCycleEvent(r){var c;switch(r){case`rendered`:c=`elementor/editor/element-rendered`;break;case`destroyed`:c=`elementor/editor/element-destroyed`;break}var l=new CustomEvent(c,{detail:{elementView:this}});elementor.$preview[0].contentWindow.dispatchEvent(l),window.top.dispatchEvent(l)},onEditSettingsChanged:function onEditSettingsChanged(r){elementor.channels.editor.trigger(`change:editSettings`,r,this)},onEditButtonClick:function onEditButtonClick(r){this.model.trigger(`request:edit`,{append:r.ctrlKey||r.metaKey})},onEditRequest:function onEditRequest(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this.container.isEditable()){var c=this.getEditModel(),l=elementor.getPanelView();$e.routes.isPartOf(`panel/editor`)&&l.getCurrentPageView().model===c||(r.scrollIntoView&&elementor.helpers.scrollToView(this.getDomElement(),200),$e.run(`document/elements/toggle-selection`,{container:this.getContainer(),append:r.append}))}},select:function select(){this.$el.addClass(`elementor-element-editable`)},deselect:function deselect(){this.$el.removeClass(`elementor-element-editable`)},onDuplicateButtonClick:function onDuplicateButtonClick(r){r.stopPropagation(),$e.run(`document/elements/duplicate`,{container:this.getContainer()})},onRemoveButtonClick:function onRemoveButtonClick(r){r.stopPropagation(),this.handleAnchorClick(r),$e.run(`document/elements/delete`,{container:this.getContainer(),callerName:`remove_button`})},handleAnchorClick:function handleAnchorClick(r){var c,l=r.target.closest(`a`),u=(l==null?void 0:l.getAttribute(`href`))||((c=this.model)==null||(c=c.get(`settings`))==null||(c=c.get(`link`))==null?void 0:c.url)||``;if(u&&u.startsWith(`#`)&&!u.includes(`elementor-action`)){var p,m=(p=r.target)==null?void 0:p.ownerDocument.querySelector(u);m&&m.scrollIntoView()}elementor.helpers.isElementAtomic(this.getContainer().id)&&r.preventDefault()},onMouseDown:function onMouseDown(r){jQuery(r.target).closest(`.elementor-inline-editing`).length||elementorFrontend.elements.window.document.activeElement.blur()},onDestroy:function onDestroy(){var r=this;this.dataBindings&&delete this.dataBindings,this.controlsCSSParser.removeStyleFromDocument(),this.getEditModel().get(`settings`).validators={},elementor.channels.data.trigger(`element:destroy`,this.model),setTimeout(function(){return r.dispatchElementLifeCycleEvent(`destroyed`)})},onDragStart:function onDragStart(){},onDragEnd:function onDragEnd(){},getDraggableHelper:function getDraggableHelper(){var r=this.getEditModel(),c=document.createElement(`div`);return c.classList.add(`elementor-sortable-helper`,`elementor-sortable-helper-${r.get(`elType`)}`),c.innerHTML=`
10 10 <div class="icon">
11 11 <i class="${r.getIcon()}"></i>
12 12 </div>
@@ -13,9 +13,9 @@
13 13 <div class="title-wrapper">
14 14 <div class="title">${r.getTitle()}</div>
15 15 </div>
16 16 `,c},getDomElement:function getDomElement(){return this.$el},initDraggable:function initDraggable(){var r=this;elementor.userCan(`design`)&&(!this.$el.hasClass(`.e-con`)&&!this.$el.parents(`.e-con`).length||this.getContainer().isEditable()&&this.getDomElement().html5Draggable({onDragStart:function onDragStart(c){var l;if(c.stopPropagation(),r.getContainer().isLocked()){c.originalEvent.preventDefault();return}if(!((l=r.options.draggable)!=null&&l.isActive)){var u=r.getDraggableHelper();r.$el[0].appendChild(u),c.originalEvent.dataTransfer.setDragImage(u,25,20),setTimeout(function(){u.remove()}),r.onDragStart(c),elementor.channels.editor.reply(`element:dragged`,r)}},onDragEnd:function onDragEnd(c){c.stopPropagation(),r.onDragEnd(c)},groups:[`elementor-element`]}))},getDataFromCacheOrBackend:function getDataFromCacheOrBackend(r,c){return _asyncToGenerator(u.default.mark(function _callee4(){return u.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.abrupt(`return`,elementor.dynamicTags.parseTagsText(r,c,elementor.dynamicTags.getTagDataContent));case 1:return l.prev=1,l.catch(0),l.next=2,new Promise(function(r){elementor.dynamicTags.refreshCacheFromServer(function(){r()})});case 2:return l.abrupt(`return`,!_.isEmpty(elementor.dynamicTags.cache)&&elementor.dynamicTags.parseTagsText(r,c,elementor.dynamicTags.getTagDataContent));case 3:case`end`:return l.stop()}},_callee4,null,[[0,1]])}))()},getChangedDynamicControlKey:function getChangedDynamicControlKey(r){var c,l;return this.findUniqueKey(r==null||(c=r.changed)==null?void 0:c.__dynamic__,r==null||(l=r._previousAttributes)==null?void 0:l.__dynamic__)[0]||(Object.keys(r.changed)[0]===`__dynamic__`?Object.keys(r.changed.__dynamic__)[0]:Object.keys(r.changed)[0])},getChangedDataForRemovedItem:function getChangedDataForRemovedItem(r,c,l){var u,p;return((u=r.attributes)==null||(u=u[c])==null?void 0:u[l])||((p=r.attributes)==null?void 0:p[c])},getChangedDataForAddedItem:function getChangedDataForAddedItem(r,c,l){var u,p;return((u=r.attributes)==null||(u=u.__dynamic__)==null||(u=u[c])==null?void 0:u[l])||((p=r.attributes)==null||(p=p.__dynamic__)==null?void 0:p[c])},getChangedData:function getChangedData(r,c,l){var u=this.getChangedDataForRemovedItem(r,c,l);return this.getChangedDataForAddedItem(r,c,l)||u},getTitleWithAdvancedValues:function getTitleWithAdvancedValues(r,c){var l=r.attributes,u=r._previousAttributes;if(this.compareSettings(l,u,`fallback`)&&(c=c.replace(new RegExp(u.fallback),``)),!c||l.fallback===c||(this.compareSettings(l,u,`before`)&&(c=c.replace(u.before,``)),this.compareSettings(l,u,`after`)&&(c=c.replace(RegExp(u.after+`$`),``)),!c))return l.fallback||``;var p=this.getNewSettingsValue(l,u,`before`),m=this.getNewSettingsValue(l,u,`after`);return c=p+c,c+=m,c},compareSettings:function compareSettings(r,c,l){return c[l]&&c[l]!==r[l]},getNewSettingsValue:function getNewSettingsValue(r,c,l){return c[l]===r[l]?``:r[l]||``},getRepeaterItemActiveIndex:function getRepeaterItemActiveIndex(){return this.getContainer().renderer.view.model.changed.editSettings.changed.activeItemIndex||this.getContainer().renderer.view.model.changed.editSettings.attributes.activeItemIndex},tryHandleDynamicCoverSettings:function tryHandleDynamicCoverSettings(r,c){return this.isAdvancedDynamicSettings(c.attributes)?(this.isRendering=!0,r.el.textContent=this.getTitleWithAdvancedValues(c,r.el.textContent),!0):!1},isAdvancedDynamicSettings:function isAdvancedDynamicSettings(r){return`before`in r&&`after`in r&&`fallback`in r}})})),Gn=__commonJSMin(((r,c)=>{P();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}c.exports=Marionette.Behavior.extend({defaults:{elChildType:`widget`},events:{sortstart:`onSortStart`,sortreceive:`onSortReceive`,sortupdate:`onSortUpdate`,sortover:`onSortOver`,sortout:`onSortOut`},initialize:function initialize(){this.listenTo(elementor.channels.dataEditMode,`switch`,this.onEditModeSwitched).listenTo(this.view.options.model,`request:sort:start`,this.startSort).listenTo(this.view.options.model,`request:sort:update`,this.updateSort).listenTo(this.view.options.model,`request:sort:receive`,this.receiveSort)},onEditModeSwitched:function onEditModeSwitched(r){this.onToggleSortMode(r===`edit`)},refresh:function refresh(){this.onEditModeSwitched(elementor.channels.dataEditMode.request(`activeMode`))},onRender:function onRender(){var r=this;this.view.collection.on(`update`,function(){return r.refresh()}),_.defer(function(){return r.refresh()})},onDestroy:function onDestroy(){this.deactivate()},createPlaceholder:function createPlaceholder(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;r.css(`display`,``);var u=r[0],p=u.clientWidth,m=u.clientHeight;l&&r.css(`display`,`none`),jQuery(`<div />`).css(_objectSpread(_objectSpread({},r.css([`flex-basis`,`flex-grow`,`flex-shrink`,`position`])),{},{width:p,height:m})).addClass(c).insertAfter(r)},getSwappableOptions:function getSwappableOptions(){var r=this,c=this.getChildViewContainer(),l=`e-swappable--item-placeholder`;return{start:function start(u,p){c.sortable(`refreshPositions`),r.createPlaceholder(p.item,l)},stop:function stop(){c.find(`.${l}`).remove()}}},onToggleSortMode:function onToggleSortMode(r){r?this.activate():this.deactivate()},applySortable:function applySortable(){if(elementor.userCan(`design`)){var r=this.getChildViewContainer(),c={placeholder:`elementor-sortable-placeholder elementor-`+this.getOption(`elChildType`)+`-placeholder`,cursorAt:{top:20,left:25},helper:this._getSortableHelper.bind(this),cancel:`input, textarea, button, select, option, .elementor-inline-editing, .elementor-tab-title`,start:function start(){r.sortable(`refreshPositions`)}},l=_.extend(c,this.view.getSortableOptions());this.isSwappable()&&(r.addClass(`e-swappable`),l=_.extend(l,this.getSwappableOptions())),!l.preventInit&&r.sortable(l)}},activate:function activate(){if(!this.getChildViewContainer().sortable(`instance`)){this.applySortable();return}this.getChildViewContainer().sortable(`enable`)},_getSortableHelper:function _getSortableHelper(r,c){var l=this.view.collection.get({cid:c.data(`model-cid`)});return`<div style="height: 84px; width: 125px;" class="elementor-sortable-helper elementor-sortable-helper-`+l.get(`elType`)+`"><div class="icon"><i class="`+l.getIcon()+`"></i></div><div class="title-wrapper"><div class="title">`+l.getTitle()+`</div></div></div>`},getChildViewContainer:function getChildViewContainer(){return this.view.getChildViewContainer(this.view)},getSortedElementNewIndex:function getSortedElementNewIndex(r){return Object.values(r.parent().find(`> .elementor-element`)).indexOf(r[0])},deactivate:function deactivate(){var r=this.getChildViewContainer();r.sortable(`instance`)&&r.sortable(`disable`)},isSwappable:function isSwappable(){return!!this.view.getSortableOptions().swappable},startSort:function startSort(r,c){r.stopPropagation();var l=elementor.getContainer(c.item.attr(`data-id`));elementor.channels.data.reply(`dragging:model`,l.model).reply(`dragging:view`,l.view).reply(`dragging:parent:view`,this.view).trigger(`drag:start`,l.model).trigger(l.model.get(`elType`)+`:drag:start`)},updateSort:function updateSort(r,c){c===void 0&&(c=r.item.index());var l=elementor.channels.data.request(`dragging:view`).getContainer();this.moveChild(l,c)||jQuery(r.sender).sortable(`cancel`)},receiveSort:function receiveSort(r,c,l){if(r.stopPropagation(),this.view.isCollectionFilled()){jQuery(c.sender).sortable(`cancel`);return}var u=elementor.channels.data.request(`dragging:model`),p=u.get(`elType`)===`section`&&u.get(`isInner`),m=this.view.getElementType()===`column`&&this.view.isInner();if(p&&m){jQuery(c.sender).sortable(`cancel`);return}l===void 0&&(l=c.item.index());var h=elementor.channels.data.request(`dragging:view`).getContainer();this.moveChild(h,l)||jQuery(c.sender).sortable(`cancel`)},onSortStart:function onSortStart(r,c){if(this.options.elChildType===`column`){var l=c.item.data(`sortableItem`).items,u=0;l.forEach(function(r){if(r.item[0]===c.item[0])return u=r.height,!1}),c.placeholder.height(u)}this.startSort(r,c)},onSortOver:function onSortOver(r){r.stopPropagation();var c=elementor.channels.data.request(`dragging:model`);jQuery(r.target).addClass(`elementor-draggable-over`).attr({"data-dragged-element":c.get(`elType`),"data-dragged-is-inner":c.get(`isInner`)}),this.$el.addClass(`elementor-dragging-on-child`)},onSortOut:function onSortOut(r){r.stopPropagation(),jQuery(r.target).removeClass(`elementor-draggable-over`).removeAttr(`data-dragged-element data-dragged-is-inner`),this.$el.removeClass(`elementor-dragging-on-child`)},onSortReceive:function onSortReceive(r,c){this.receiveSort(r,c,this.getSortedElementNewIndex(c.item))},onSortUpdate:function onSortUpdate(r,c){r.stopPropagation(),this.getChildViewContainer()[0]===c.item.parent()[0]&&this.updateSort(c,this.getSortedElementNewIndex(c.item))},onAddChild:function onAddChild(r){r.$el.attr(`data-model-cid`,r.model.cid)},moveChild:function moveChild(r,c){return $e.run(`document/elements/move`,{container:r,target:this.view.getContainer(),options:{at:c}})}})})),Kn=__commonJSMin(((c,l)=>{In();var u=Wn(),p=2,m=2,h=10;l.exports=u.extend({childViewContainer:function childViewContainer(){return`> .elementor-container`},template:Marionette.TemplateCache.get(`#tmpl-elementor-section-content`),addSectionView:null,_checkIsFull:function _checkIsFull(){this.toggleSectionIsFull(),elementorDevTools.deprecation.deprecated(`_checkIsFull()`,`2.9.0`,`toggleSectionIsFull()`)},toggleSectionIsFull:function toggleSectionIsFull(){this.$el.toggleClass(`elementor-section-filled`,this.isCollectionFilled())},addChildModel:function addChildModel(r){var c=r instanceof Backbone.Model,l=this.isInner();return c?r.set(`isInner`,l):r.isInner=l,u.prototype.addChildModel.apply(this,arguments)},className:function className(){var r=u.prototype.className.apply(this,arguments),c=this.isInner()?`inner`:`top`;return r+` elementor-section elementor-`+c+`-section`},tagName:function tagName(){return this.model.getSetting(`html_tag`)||`section`},behaviors:function behaviors(){var r=u.prototype.behaviors.apply(this,arguments);return _.extend(r,{Sortable:{behaviorClass:Gn(),elChildType:`column`}}),elementor.hooks.applyFilters(`elements/section/behaviors`,r,this)},initialize:function initialize(){u.prototype.initialize.apply(this,arguments),this.model.get(`editSettings`).set(`defaultEditRoute`,`layout`)},getEditButtons:function getEditButtons(){if(!$e.components.get(`document/elements`).utils.allowAddingWidgets())return{};var c=elementor.getElementData(this.model),l={};return this.isInner()||(l.add={title:(0,r.sprintf)((0,r.__)(`Add %s`,`elementor`),c.title),icon:`plus`}),l.edit={title:(0,r.sprintf)((0,r.__)(`Edit %s`,`elementor`),c.title),icon:`handle`},elementor.getPreferences(`edit_buttons`)&&(l.duplicate={title:(0,r.sprintf)((0,r.__)(`Duplicate %s`,`elementor`),c.title),icon:`clone`}),l},getContextMenuGroups:function getContextMenuGroups(){var c=u.prototype.getContextMenuGroups.apply(this,arguments),l=c.indexOf(_.findWhere(c,{name:`clipboard`}));return c.splice(l+1,0,{name:`save`,actions:[{name:`save`,title:(0,r.__)(`Save as a template`,`elementor`),shortcut:`<span class="elementor-context-menu-list__item__shortcut__new-badge">${(0,r.__)(`New`,`elementor`)}</span>`,isEnabled:function isEnabled(){return!elementor.selection.isMultiple()},callback:this.save.bind(this)}]}),c},getSortableOptions:function getSortableOptions(){return{connectWith:(this.isInner()?`.elementor-inner-section`:`.elementor-top-section`)+this.childViewContainer(),handle:`> .elementor-element-overlay .elementor-editor-element-edit`,items:`> .elementor-column`,forcePlaceholderSize:!0,tolerance:`pointer`}},getColumnPercentSize:function getColumnPercentSize(r,c){return+(c/r.parent().width()*100).toFixed(3)},getDefaultStructure:function getDefaultStructure(){return this.collection.length+`0`},getStructure:function getStructure(){return this.model.getSetting(`structure`)},getColumnAt:function getColumnAt(r){var c=this.collection.at(r);return c?this.children.findByModelCid(c.cid):null},getNextColumn:function getNextColumn(r){return this.getColumnAt(this.collection.indexOf(r.model)+1)},getPreviousColumn:function getPreviousColumn(r){return this.getColumnAt(this.collection.indexOf(r.model)-1)},getNeighborContainer:function getNeighborContainer(r){var c=r.parent.view,l=c.getNextColumn(r.view)||c.getPreviousColumn(r.view);return l?l.getContainer():!1},setStructure:function setStructure(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(+elementor.presetsFactory.getParsedStructure(r).columnsCount!==this.collection.length)throw TypeError(`The provided structure doesn't match the columns count.`);$e.run(`document/elements/settings`,{container:this.getContainer(),settings:{structure:r},options:{external:!0}}),c&&this.adjustColumns()},adjustColumns:function adjustColumns(){var r=elementor.presetsFactory.getPresetByStructure(this.getStructure());this.children.each(function(c,l){var u=c.getContainer();$e.run(`document/elements/settings`,{container:u,settings:{_column_size:r.preset[l],_inline_size:null}})})},resetLayout:function resetLayout(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.setStructure(this.getDefaultStructure(),r)},resetColumnsCustomSize:function resetColumnsCustomSize(){this.children.each(function(r){$e.run(`document/elements/settings`,{container:r.getContainer(),settings:{_inline_size:null},options:{external:!0}})})},isCollectionFilled:function isCollectionFilled(){return h<=this.collection.length},showChildrenPercentsTooltip:function showChildrenPercentsTooltip(r,c){r.ui.percentsTooltip.show(),r.ui.percentsTooltip.attr(`data-side`,elementorCommon.config.isRTL?`right`:`left`),c.ui.percentsTooltip.show(),c.ui.percentsTooltip.attr(`data-side`,elementorCommon.config.isRTL?`left`:`right`)},hideChildrenPercentsTooltip:function hideChildrenPercentsTooltip(r,c){r.ui.percentsTooltip.hide(),c.ui.percentsTooltip.hide()},destroyAddSectionView:function destroyAddSectionView(){this.addSectionView&&!this.addSectionView.isDestroyed&&this.addSectionView.destroy()},onRender:function onRender(){u.prototype.onRender.apply(this,arguments),this.toggleSectionIsFull()},onAddButtonClick:function onAddButtonClick(){if(this.addSectionView&&!this.addSectionView.isDestroyed){this.addSectionView.fadeToDeath();return}var r=new Fn({at:this.model.collection.indexOf(this.model)});r.render(),this.$el.before(r.$el),r.$el.hide(),setTimeout(function(){r.$el.slideDown(null,function(){jQuery(this).css(`display`,``)})}),this.addSectionView=r},onChildviewRequestResizeStart:function onChildviewRequestResizeStart(r){var c=this.getNextColumn(r);if(c){this.showChildrenPercentsTooltip(r,c);var l=r.$el.find(`iframe`).add(c.$el.find(`iframe`));elementor.helpers.disableElementEvents(l)}},onChildviewRequestResizeStop:function onChildviewRequestResizeStop(r){var c=this.getNextColumn(r);if(c){this.hideChildrenPercentsTooltip(r,c);var l=r.$el.find(`iframe`).add(c.$el.find(`iframe`));elementor.helpers.enableElementEvents(l)}},onChildviewRequestResize:function onChildviewRequestResize(r,c){c.element.css({width:``,left:`initial`}),$e.run(`document/elements/settings`,{container:r.getContainer(),settings:{_inline_size:this.getColumnPercentSize(c.element,c.size.width)}})},onDestroy:function onDestroy(){u.prototype.onDestroy.apply(this,arguments),this.destroyAddSectionView()}}),l.exports.DEFAULT_INNER_SECTION_COLUMNS=p,l.exports.DEFAULT_MIN_COLUMN_SIZE=m,l.exports.DEFAULT_MAX_COLUMNS=h})),qn=__commonJSMin(((c,l)=>{l.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-empty-preview`,className:`elementor-empty-view`,events:{click:`onClickAdd`},behaviors:function behaviors(){return{contextMenu:{behaviorClass:jn(),groups:this.getContextMenuGroups()}}},getContextMenuGroups:function getContextMenuGroups(){var c=this;return[{name:`general`,actions:[{name:`paste`,title:(0,r.__)(`Paste`,`elementor`),isEnabled:function isEnabled(){return $e.components.get(`document/elements`).utils.isPasteEnabled(c._parent.getContainer())},callback:function callback(){return $e.run(`document/ui/paste`,{container:c._parent.getContainer()})}}]}]},onClickAdd:function onClickAdd(){$e.route(`panel/elements/categories`)}})})),Jn=__commonJSMin(((r,c)=>{c.exports=Marionette.Behavior.extend({defaults:{handles:elementorCommon.config.isRTL?`w`:`e`},events:{resizestart:`onResizeStart`,resizestop:`onResizeStop`,resize:`onResize`},initialize:function initialize(){Marionette.Behavior.prototype.initialize.apply(this,arguments),this.listenTo(elementor.channels.dataEditMode,`switch`,this.onEditModeSwitched)},active:function active(){if(elementor.userCan(`design`)){this.deactivate();var r=_.clone(this.options);delete r.behaviorClass;var c=this.getChildViewContainer(),l=_.extend({},r);c.resizable(l)}},deactivate:function deactivate(){this.getChildViewContainer().resizable(`instance`)&&this.getChildViewContainer().resizable(`destroy`)},onEditModeSwitched:function onEditModeSwitched(r){r===`edit`?this.active():this.deactivate()},onRender:function onRender(){var r=this;_.defer(function(){r.onEditModeSwitched(elementor.channels.dataEditMode.request(`activeMode`))})},onDestroy:function onDestroy(){this.deactivate()},onResizeStart:function onResizeStart(r){r.stopPropagation(),this.view.$el.data(`originalWidth`,this.view.el.getBoundingClientRect().width),this.view.triggerMethod(`request:resize:start`,r)},onResizeStop:function onResizeStop(r){r.stopPropagation(),this.view.triggerMethod(`request:resize:stop`)},onResize:function onResize(r,c){r.stopPropagation(),this.view.triggerMethod(`request:resize`,c,r)},getChildViewContainer:function getChildViewContainer(){return this.$el}})})),Yn=__commonJSMin(((c,l)=>{var u=__toESM(Kn()),p=Wn(),m=qn();l.exports=p.extend({template:Marionette.TemplateCache.get(`#tmpl-elementor-column-content`),emptyView:m,childViewContainer:`> .elementor-widget-wrap`,toggleEditTools:!0,behaviors:function behaviors(){var r=p.prototype.behaviors.apply(this,arguments);return _.extend(r,{Sortable:{behaviorClass:Gn(),elChildType:`widget`},Resizable:{behaviorClass:Jn()}}),elementor.hooks.applyFilters(`elements/column/behaviors`,r,this)},className:function className(){var r=p.prototype.className.apply(this,arguments),c=this.isInner()?`inner`:`top`;return r+` elementor-column elementor-`+c+`-column`},tagName:function tagName(){return this.model.getSetting(`html_tag`)||`div`},ui:function ui(){var r=p.prototype.ui.apply(this,arguments);return r.columnInner=`> .elementor-widget-wrap`,r.percentsTooltip=`> .elementor-element-overlay .elementor-column-percents-tooltip`,r},getEditButtons:function getEditButtons(){var c=elementor.getElementData(this.model),l={};return l.edit={title:(0,r.sprintf)((0,r.__)(`Edit %s`,`elementor`),c.title),icon:`column`},elementor.getPreferences(`edit_buttons`)&&(l.duplicate={title:(0,r.sprintf)((0,r.__)(`Duplicate %s`,`elementor`),c.title),icon:`clone`},l.add={title:(0,r.sprintf)((0,r.__)(`Add %s`,`elementor`),c.title),icon:`plus`}),l},initialize:function initialize(){p.prototype.initialize.apply(this,arguments),this.model.get(`editSettings`).set(`defaultEditRoute`,`layout`)},attachElContent:function attachElContent(){p.prototype.attachElContent.apply(this,arguments);var r=jQuery(`<div>`,{class:`elementor-column-percents-tooltip`});this.$el.children(`.elementor-element-overlay`).append(r)},getContextMenuGroups:function getContextMenuGroups(){var c=this,l=p.prototype.getContextMenuGroups.apply(this,arguments),m=l.indexOf(_.findWhere(l,{name:`general`}));return l.splice(m+1,0,{name:`addNew`,actions:[{name:`addNew`,icon:`eicon-plus`,title:(0,r.__)(`Add New Column`,`elementor`),callback:this.addNewColumn.bind(this),isEnabled:function isEnabled(){return c.model.collection.length<u.DEFAULT_MAX_COLUMNS&&!elementor.selection.isMultiple()}}]}),l},isDroppingAllowed:function isDroppingAllowed(){if(!this.getContainer().isEditable())return!1;var r=elementor.channels.panelElements.request(`element:selected`);if(!r)return!1;var c=r.model.get(`elType`);return c===`container`?!0:c===`section`?!this.isInner():c===`widget`},getPercentsForDisplay:function getPercentsForDisplay(){return(+this.model.getSetting(`_inline_size`)||this.getPercentSize()).toFixed(1)+`%`},changeSizeUI:function changeSizeUI(){var r=this,c=r.model.getSetting(`_column_size`);r.$el.attr(`data-col`,c),_.defer(function(){r.ui.percentsTooltip&&r.ui.percentsTooltip.text(r.getPercentsForDisplay())})},getPercentSize:function getPercentSize(r){return r||(r=this.el.getBoundingClientRect().width),+(r/this.$el.parent().width()*100).toFixed(3)},getSortableOptions:function getSortableOptions(){return{connectWith:`.elementor-widget-wrap`,items:`> .elementor-element`}},changeChildContainerClasses:function changeChildContainerClasses(){var r=`elementor-element-empty`,c=`elementor-element-populated`;this.ui.columnInner&&(this.collection.isEmpty()?this.ui.columnInner.removeClass(c).addClass(r):this.ui.columnInner.removeClass(r).addClass(c))},addNewColumn:function addNewColumn(){$e.run(`document/elements/create`,{model:{elType:`column`},container:this.getContainer().parent,options:{at:this.$el.index()+1}})},onRender:function onRender(){var r=this,c=function getDropIndex(r,c){var l=jQuery(c.currentTarget).index();return r===`top`&&l--,l};p.prototype.onRender.apply(this,arguments),this.changeChildContainerClasses(),this.changeSizeUI(),this.$el.html5Droppable({items:` > .elementor-widget-wrap > .elementor-element, >.elementor-widget-wrap > .elementor-empty-view > .elementor-first-add`,axis:[`vertical`],groups:[`elementor-element`],isDroppingAllowed:this.isDroppingAllowed.bind(this),currentElementClass:`elementor-html5dnd-current-element`,placeholderClass:`elementor-sortable-placeholder elementor-widget-placeholder`,hasDraggingOnChildClass:`elementor-dragging-on-child`,onDropping:function onDropping(l,u){elementor.getPreviewView().onPanelElementDragEnd(),r.onDrop(u,{side:l,at:c(l,u)})}})},onAddButtonClick:function onAddButtonClick(r){r.stopPropagation(),this.addNewColumn()}})}));b(),w(),E(),D(),A();var Xn=__toESM(Yn());function _callSuper$290(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$290()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$290,`_callSuper`);function _isNativeReflectConstruct$290(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$290=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$290,`_isNativeReflectConstruct`);var Zn=function(r){function Column(){return _classCallCheck(this,Column),_callSuper$290(this,Column,arguments)}return _inherits(Column,r),_createClass(Column,[{key:`getType`,value:function getType(){return`column`}},{key:`getView`,value:function getView(){return Xn.default}},{key:`getModel`,value:function getModel(){return rn}}])}(qt);b(),w(),E(),D(),A(),Xt();var Qn=Bn();function _callSuper$289(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$289()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$289,`_callSuper`);function _isNativeReflectConstruct$289(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$289=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$289,`_isNativeReflectConstruct`);var $n=function(r){function Document(){return _classCallCheck(this,Document),_callSuper$289(this,Document,arguments)}return _inherits(Document,r),_createClass(Document,[{key:`isValidChild`,value:function isValidChild(r){var c=r.get(`elType`);return(0,Qn.getAllElementTypes)().includes(c)}}])}(Yt);b(),w(),E(),D(),A(),Jt();function _callSuper$288(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$288()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$288,`_callSuper`);function _isNativeReflectConstruct$288(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$288=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$288,`_isNativeReflectConstruct`);var er=function(r){function Document(){return _classCallCheck(this,Document),_callSuper$288(this,Document,arguments)}return _inherits(Document,r),_createClass(Document,[{key:`getType`,value:function getType(){return`document`}},{key:`getModel`,value:function getModel(){return $n}}])}(qt);b(),w(),E(),D(),A();function _callSuper$287(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$287()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$287,`_callSuper`);function _isNativeReflectConstruct$287(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$287=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$287,`_isNativeReflectConstruct`);var tr=function(r){function Section(){return _classCallCheck(this,Section),_callSuper$287(this,Section,arguments)}return _inherits(Section,r),_createClass(Section,[{key:`isValidChild`,value:function isValidChild(r){return r.get(`elType`)===`column`}}])}(nn.default);b(),w(),E(),D(),A(),Jt();var nr=__toESM(Kn());function _callSuper$286(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$286()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$286,`_callSuper`);function _isNativeReflectConstruct$286(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$286=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$286,`_isNativeReflectConstruct`);var rr=function(r){function Section(){return _classCallCheck(this,Section),_callSuper$286(this,Section,arguments)}return _inherits(Section,r),_createClass(Section,[{key:`getType`,value:function getType(){return`section`}},{key:`getView`,value:function getView(){return nr.default}},{key:`getModel`,value:function getModel(){return tr}}])}(qt);b(),w(),E(),D(),A();function _callSuper$285(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$285()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$285,`_callSuper`);function _isNativeReflectConstruct$285(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$285=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$285,`_isNativeReflectConstruct`);var ir=function(r){function InnerSection(){return _classCallCheck(this,InnerSection),_callSuper$285(this,InnerSection,arguments)}return _inherits(InnerSection,r),_createClass(InnerSection,[{key:`getType`,value:function getType(){return`inner-section`}}])}(rr);b(),w(),E(),D(),A();function _callSuper$284(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$284()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$284,`_callSuper`);function _isNativeReflectConstruct$284(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$284=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$284,`_isNativeReflectConstruct`);var ar=function(r){function Widget(){return _classCallCheck(this,Widget),_callSuper$284(this,Widget,arguments)}return _inherits(Widget,r),_createClass(Widget,[{key:`isValidChild`,value:function isValidChild(){return!1}}])}(nn.default);function _callSuper$283(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$283()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$283(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$283=function _isNativeReflectConstruct(){return!!r})()}function _superPropGet$32(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 or,sr=__esmMin((()=>{b(),w(),E(),D(),k(),A(),__name(_callSuper$283,`_callSuper`),__name(_isNativeReflectConstruct$283,`_isNativeReflectConstruct`),__name(_superPropGet$32,`_superPropGet`),or=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$283(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`events`,value:function events(){return{dragstart:`onDragStart`,dragstop:`onDragStop`}}},{key:`initialize`,value:function initialize(){_superPropGet$32(_default,`initialize`,this,3)([]),this.listenTo(elementor.channels.dataEditMode,`switch`,this.toggle),this.view.options.draggable=this,this.isActive=!1}},{key:`activate`,value:function activate(){this.isActive=!0,this.$el.draggable({addClasses:!1})}},{key:`deactivate`,value:function deactivate(){this.$el.draggable(`instance`)&&(this.isActive=!1,this.$el.draggable(`destroy`))}},{key:`toggle`,value:function toggle(){var r=this.view.getEditModel().getSetting(`_position`);this.deactivate(),r&&this.view.getContainer().isDesignable()&&this.activate()}},{key:`onRender`,value:function onRender(){var r=this;_.defer(function(){return r.toggle()})}},{key:`onDestroy`,value:function onDestroy(){this.deactivate()}},{key:`onDragStart`,value:function onDragStart(r){r.stopPropagation(),this.view.model.trigger(`request:edit`)}},{key:`onDragStop`,value:function onDragStop(r,c){var l=this;r.stopPropagation();var u=elementorFrontend.getCurrentDeviceMode(),p=u===`desktop`?``:`_`+u,m=this.view.getEditModel(),h=m.getSetting(`_offset_orientation_h`),g=m.getSetting(`_offset_orientation_v`),v={},y=elementorFrontend.config.is_rtl,b=this.$el.offsetParent().width(),x=this.$el.outerWidth(!0),S=c.position.left,C=b-S-x,w=y?C:S,T=c.position.top,E=`_offset_x`,D=`_offset_y`;h===`end`&&(w=b-w-x,E=`_offset_x_end`);var O=m.getSetting(E+p).unit;w=elementor.helpers.elementSizeToUnit(this.$el,w,O);var k=this.$el.offsetParent().height(),ee=this.$el.outerHeight(!0);g===`end`&&(T=k-T-ee,D=`_offset_y_end`);var A=m.getSetting(D+p).unit;T=elementor.helpers.elementSizeToUnit(this.$el,T,A),v[E+p]={size:w,unit:O},v[D+p]={size:T,unit:A},$e.run(`document/elements/settings`,{container:this.view.container,settings:v,options:{external:!0}}),setTimeout(function(){l.$el.css({top:``,left:``,right:``,bottom:``,width:``,height:``})},250)}}])}(Marionette.Behavior)}));function ownKeys$16(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$16(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$16(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$16(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}function _callSuper$282(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$282()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$282(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$282=function _isNativeReflectConstruct(){return!!r})()}function _superPropGet$31(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 cr,lr=__esmMin((()=>{P(),b(),w(),E(),D(),k(),A(),__name(ownKeys$16,`ownKeys`),__name(_objectSpread$16,`_objectSpread`),__name(_callSuper$282,`_callSuper`),__name(_isNativeReflectConstruct$282,`_isNativeReflectConstruct`),__name(_superPropGet$31,`_superPropGet`),cr=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$282(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`events`,value:function events(){return{resizestart:`onResizeStart`,resizestop:`onResizeStop`,resize:`onResize`}}},{key:`initialize`,value:function initialize(){_superPropGet$31(_default,`initialize`,this,3)([]),this.listenTo(elementor.channels.dataEditMode,`switch`,this.toggle),this.view.options.resizeable=this}},{key:`getOptions`,value:function getOptions(){var r=`e, w`;return this.isContainerItem()&&(r=elementorCommon.config.isRTL?`w`:`e`),{handles:r}}},{key:`activate`,value:function activate(){this.$el.resizable(this.getOptions())}},{key:`deactivate`,value:function deactivate(){this.$el.resizable(`instance`)&&this.$el.resizable(`destroy`)}},{key:`toggle`,value:function toggle(){this.deactivate(),this.view.container.isDesignable()&&!this.view.container.isGridContainer()&&this.activate()}},{key:`isContainer`,value:function isContainer(){return this.view.model.get(`elType`)===`container`}},{key:`isContainerItem`,value:function isContainerItem(){var r;return((r=this.view.getContainer().parent)==null||(r=r.model)==null?void 0:r.get(`elType`))===`container`}},{key:`isContainerActive`,value:function isContainerActive(){return!!elementorCommon.config.experimentalFeatures.container}},{key:`getWidthKey`,value:function getWidthKey(){return this.isContainer()?`width`:`_element_custom_width`}},{key:`getDeviceSetting`,value:function getDeviceSetting(r){var c=elementorFrontend.getCurrentDeviceMode();return r+(c===`desktop`?``:`_`+c)}},{key:`getSetting`,value:function getSetting(r){return this.view.getEditModel().getSetting(r)}},{key:`onRender`,value:function onRender(){var r=this;_.defer(function(){return r.toggle()})}},{key:`onDestroy`,value:function onDestroy(){this.deactivate()}},{key:`onResizeStart`,value:function onResizeStart(r){r.stopPropagation(),this.view.onResizeStart&&this.view.onResizeStart(r),this.isContainerItem()||this.view.model.trigger(`request:edit`)}},{key:`onResizeStop`,value:function onResizeStop(r,c){var l=this;r.stopPropagation(),this.view.onResizeStop&&this.view.onResizeStop(r,c);var u=this.getDeviceSetting(`_element_width`),p=this.getDeviceSetting(this.getWidthKey()),m=this.getSetting(p).unit,h=elementor.helpers.elementSizeToUnit(this.$el,c.size.width,m),g=_objectSpread$16(_objectSpread$16(_objectSpread$16({},this.isContainerActive()?{_flex_size:`none`}:{}),this.isContainer()?{content_width:`full`}:{}),{},_defineProperty(_defineProperty({},u,`initial`),p,{unit:m,size:h}));$e.run(`document/elements/settings`,{container:this.view.container,settings:g,options:{external:!0}}),setTimeout(function(){l.$el.css({width:``,height:``,left:``,"flex-shrink":``,"flex-grow":``,"flex-basis":``})})}},{key:`onResize`,value:function onResize(r,c){r.stopPropagation(),this.view.onResize&&this.view.onResize(r,c),this.isContainerItem()&&this.$el.css({left:``,right:``,"flex-shrink":0,"flex-grow":0})}}])}(Marionette.Behavior)})),ur=__commonJSMin(((c,l)=>{b(),w(),E(),D(),k(),A();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})()}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}l.exports=function(c){function BaseWidgetView(){return _classCallCheck(this,BaseWidgetView),_callSuper(this,BaseWidgetView,arguments)}return _inherits(BaseWidgetView,c),_createClass(BaseWidgetView,[{key:`initialize`,value:function initialize(r){var c=this;_superPropGet(BaseWidgetView,`initialize`,this,3)([r]);var l=this.getEditModel();l.on({"before:remote:render":this.onModelBeforeRemoteRender.bind(this),"remote:render":this.onModelRemoteRender.bind(this),"settings:loaded":function settingsLoaded(){return setTimeout(c.render.bind(c))}}),this.getTemplateType()===`remote`&&!this.getEditModel().getHtmlCache()&&l.renderRemoteServer();var u=this.onRender;this.render=_.throttle(this.render,300),this.onRender=function(){_.defer(u.bind(this))}}},{key:`className`,value:function className(){return _superPropGet(BaseWidgetView,`className`,this,3)([])+` elementor-widget `+elementor.getElementData(this.getEditModel()).html_wrapper_class}},{key:`normalizeAttributes`,value:function normalizeAttributes(){var r=this.getEditModel(),c=r.getSetting(`_skin`)||`default`;this.$el.attr(`data-widget_type`,r.get(`widgetType`)+`.`+c).removeClass(`elementor-widget-empty`).children(`.elementor-widget-empty-icon`).remove()}},{key:`getTemplate`,value:function getTemplate(){var r=this.getEditModel();return this.getTemplateType()===`remote`?_.template(``):Marionette.TemplateCache.get(`#tmpl-elementor-`+r.get(`widgetType`)+`-content`)}},{key:`getEditButtons`,value:function getEditButtons(){var c=elementor.getElementData(this.model),l={};return l.edit={title:(0,r.sprintf)((0,r.__)(`Edit %s`,`elementor`),c.title),icon:`edit`},elementor.getPreferences(`edit_buttons`)&&(l.duplicate={title:(0,r.sprintf)((0,r.__)(`Duplicate %s`,`elementor`),c.title),icon:`clone`}),l}},{key:`getRepeaterSettingKey`,value:function getRepeaterSettingKey(r,c,l){return[c,l,r].join(`.`)}},{key:`onModelBeforeRemoteRender`,value:function onModelBeforeRemoteRender(){this.$el.addClass(`elementor-loading`)}},{key:`onModelRemoteRender`,value:function onModelRemoteRender(){this.isDestroyed||(this.$el.removeClass(`elementor-loading`),this.getContainer().document.id===elementor.documents.getCurrent().id&&this.render())}},{key:`onBeforeDestroy`,value:function onBeforeDestroy(){elementor.$previewContents.find(`#elementor-style-`+this.model.get(`id`)).remove()}}])}(Wn())})),dr=__commonJSMin(((c,l)=>{P(),l.exports=Marionette.Behavior.extend({editing:!1,$currentEditingArea:null,ui:function ui(){return{inlineEditingArea:`.`+this.getOption(`inlineEditingClass`)}},events:function events(){return{"click @ui.inlineEditingArea":`onInlineEditingClick`,"input @ui.inlineEditingArea":`onInlineEditingUpdate`}},initialize:function initialize(){this.onInlineEditingBlur=this.onInlineEditingBlur.bind(this)},getEditingSettingKey:function getEditingSettingKey(){return this.$currentEditingArea.data().elementorSettingKey},startEditing:function startEditing(c){if(!(this.editing||!this.view.container.isEditable()||this.view.model.isRemoteRequestActive())){var l=c.data().elementorSettingKey,u=l,p=l.split(`.`),m=p.length===3,h=this.view.getEditModel().get(`settings`);m&&(h=h.get(p[0]).models[p[1]],u=p[2]);var g=h.get(`__dynamic__`);if(!(g&&g[u])){this.$currentEditingArea=c;var v=this.$currentEditingArea.data().elementorInlineEditingToolbar,y=v===`advanced`?`advanced`:`basic`,b=this.view.getEditModel(),x=elementor.config.inlineEditing,S=b.getSetting(this.getEditingSettingKey());y===`advanced`&&(S=wp.editor.autop(S)),this.$currentEditingArea.html(S);var C=elementorFrontend.elements.window.ElementorInlineEditor;this.editing=!0,this.view.allowRender=!1,this.view.model.setHtmlCache(``),this.editor=new C({linksInNewWindow:!0,stay:!1,editor:this.$currentEditingArea[0],mode:y,list:v===`none`?[]:x.toolbar[v||`basic`],cleanAttrs:[`id`,`class`,`name`],placeholder:(0,r.__)(`Type Here`,`elementor`)+`...`,toolbarIconsPrefix:`eicon-editor-`,toolbarIconsDictionary:{externalLink:{className:`eicon-editor-external-link`},list:{className:`eicon-editor-list-ul`},insertOrderedList:{className:`eicon-editor-list-ol`},insertUnorderedList:{className:`eicon-editor-list-ul`},createlink:{className:`eicon-editor-link`},unlink:{className:`eicon-editor-unlink`},blockquote:{className:`eicon-editor-quote`},p:{className:`eicon-editor-paragraph`},pre:{className:`eicon-editor-code`}}}),jQuery(this.editor._menu).children().on(`mousedown`,function(r){r.preventDefault()}),this.$currentEditingArea.on(`blur`,this.onInlineEditingBlur),elementorCommon.elements.$body.on(`mousedown`,this.onInlineEditingBlur)}}},stopEditing:function stopEditing(){this.editing=!1,this.$currentEditingArea.off(`blur`,this.onInlineEditingBlur),elementorCommon.elements.$body.off(`mousedown`,this.onInlineEditingBlur),this.editor.destroy(),this.view.allowRender=!0,this.$currentEditingArea.data().elementorInlineEditingToolbar===`advanced`&&this.view.getEditModel().renderRemoteServer()},onInlineEditingClick:function onInlineEditingClick(r){var c=this,l=jQuery(r.currentTarget);setTimeout(function(){c.startEditing(l)},30)},onInlineEditingBlur:function onInlineEditingBlur(r){var c=this;if(r.type===`mousedown`){this.stopEditing();return}setTimeout(function(){var r=elementorFrontend.elements.window.getSelection();jQuery(r.focusNode).closest(`.pen-input-wrapper`).length||c.stopEditing()},20)},onInlineEditingUpdate:function onInlineEditingUpdate(){var r=this.getEditingSettingKey(),c=this.view.getContainer(),l=r.split(`.`);if(l.length===3){var u=l[0],p=c.repeaters[u],m=l[1];c=p.children[m],r=l[2]}$e.run(`document/elements/settings`,{container:c,settings:_defineProperty({},r,this.editor.getContent()),options:{external:!0}})}})})),fr=__commonJSMin(((c,l)=>{sr(),lr();var u=__toESM(ur()),p=Wn();l.exports=u.default.extend({_templateType:null,toggleEditTools:!0,events:function events(){var r=u.default.prototype.events.apply(this,arguments);return r.click=`onClickEdit`,r},behaviors:function behaviors(){var r=u.default.prototype.behaviors.apply(this,arguments);return _.extend(r,{InlineEditing:{behaviorClass:dr(),inlineEditingClass:`elementor-inline-editing`},Draggable:{behaviorClass:or},Resizable:{behaviorClass:cr}}),elementor.hooks.applyFilters(`elements/widget/behaviors`,r,this)},getContextMenuGroups:function getContextMenuGroups(){var c=this,l=u.default.prototype.getContextMenuGroups.apply(this,arguments),p=l.indexOf(_.findWhere(l,{name:`clipboard`}));return l.splice(p+1,0,{name:`save`,actions:[{name:`save`,title:(0,r.__)(`Save as a global`,`elementor`),shortcut:jQuery(`<i>`,{class:`eicon-pro-icon`}),promotionURL:`https://go.elementor.com/go-pro-global-widget-context-menu/`,isEnabled:function isEnabled(){return c.options.model.get(`widgetType`)!==`global`&&!elementor.selection.isMultiple()}}]}),l},render:function render(){if(this.model.isRemoteRequestActive()){this.handleEmptyWidget(),this.$el.addClass(`elementor-element`);return}this.isDestroyed||p.prototype.render.apply(this,arguments)},handleEmptyWidget:function handleEmptyWidget(){this.$el.addClass(`elementor-widget-empty`).append(`<i class="elementor-widget-empty-icon `+this.getEditModel().getIcon()+`"></i>`)},getTemplateType:function getTemplateType(){if(this._templateType===null){var r=this.getEditModel(),c=jQuery(`#tmpl-elementor-`+r.get(`widgetType`)+`-content`);this._templateType=c.length?`js`:`remote`}return this._templateType},getHTMLContent:function getHTMLContent(r){return this.getEditModel().getHtmlCache()||r},attachElContent:function attachElContent(r){var c=this;return _.defer(function(){elementorFrontend.elements.window.jQuery(c.el).empty().append(c.getHandlesOverlay(),c.getHTMLContent(r)),c.bindUIElements()}),this},addInlineEditingAttributes:function addInlineEditingAttributes(r,c){this.addRenderAttribute(r,{class:`elementor-inline-editing`,"data-elementor-setting-key":r}),c&&this.addRenderAttribute(r,{"data-elementor-inline-editing-toolbar":c})},onRender:function onRender(){var r=this;u.default.prototype.onRender.apply(r,arguments),this.normalizeAttributes(),r.$el.imagesLoaded().always(function(){setTimeout(function(){var c=r.$el.children(`.elementor-widget-container`).length?r.$el.children(`.elementor-widget-container`):r.$el;r.shouldGetEmptyView(c)&&r.handleEmptyWidget()},200)})},shouldGetEmptyView:function shouldGetEmptyView(r){if(!r.is(`:visible`))return!1;var c=!r.outerHeight(),l=r.is(`:empty`);return c||l},onClickEdit:function onClickEdit(r){var c;(c=this.container)!=null&&c.isEditable()&&this.onEditButtonClick(r)}})}));b(),w(),E(),D(),A(),Jt();var pr=__toESM(fr());function _callSuper$281(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$281()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$281,`_callSuper`);function _isNativeReflectConstruct$281(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$281=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$281,`_isNativeReflectConstruct`);var mr=function(r){function Widget(){return _classCallCheck(this,Widget),_callSuper$281(this,Widget,arguments)}return _inherits(Widget,r),_createClass(Widget,[{key:`getType`,value:function getType(){return`widget`}},{key:`getView`,value:function getView(){return pr.default}},{key:`getModel`,value:function getModel(){return ar}}])}(qt),hr=__exportAll({Column:()=>Zn,Document:()=>er,InnerSection:()=>ir,Section:()=>rr,Widget:()=>mr}),gr=__commonJSMin(((r,c)=>{c.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),_r=__commonJSMin(((r,c)=>{var l=gr();function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,c.exports=function(){function shim(r,c,u,p,m,h){if(h!==l){var g=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name=`Invariant Violation`,g}}shim.isRequired=shim;function getShim(){return shim}var r={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return r.PropTypes=r,r}})),vr=__commonJSMin(((r,c)=>{c.exports=_r()()}));function EmptyComponent(){var r=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).container;return l.default.createElement(`div`,{className:`elementor-first-add`},l.default.createElement(`div`,{className:`elementor-icon eicon-plus`,onClick:function handleClick(){r&&$e.run(`document/elements/select`,{container:r}),Dn.sendCanvasEmptyBoxAction({targetName:`add_container`}),$e.route(`panel/elements/categories`)}}))}var yr,br=__esmMin((()=>{yr=__toESM(vr()),kn(),EmptyComponent.propTypes={container:yr.default.object}}));function _callSuper$280(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$280()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$280(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$280=function _isNativeReflectConstruct(){return!!r})()}var xr,Sr,Cr=__esmMin((()=>{b(),w(),E(),D(),A(),xr=__toESM(tn()),__name(_callSuper$280,`_callSuper`),__name(_isNativeReflectConstruct$280,`_isNativeReflectConstruct`),Sr=function(r){function Container(){return _classCallCheck(this,Container),_callSuper$280(this,Container,arguments)}return _inherits(Container,r),_createClass(Container,[{key:`isValidChild`,value:function isValidChild(r){var c=r.get(`elType`);return c!==`section`&&c!==`column`}}])}(xr.default)})),wr=__commonJSMin((r=>{var c=globalThis.ReactDOM;r.createRoot=c.createRoot,r.hydrateRoot=c.hydrateRoot}));function render(r,c){var l;try{var p=(0,Tr.createRoot)(c);p.render(r),l=function unmountFunction(){p.unmount()}}catch(p){u.render(r,c),l=function unmountFunction(){u.unmountComponentAtNode(c)}}return{unmount:l}}var Tr,Er,Dr=__esmMin((()=>{Tr=wr(),Er={render}}));function _callSuper$279(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$279()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$279(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$279=function _isNativeReflectConstruct(){return!!r})()}function _superPropGet$30(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 Or,kr=__esmMin((()=>{b(),w(),E(),D(),k(),A(),P(),Dr(),br(),__name(_callSuper$279,`_callSuper`),__name(_isNativeReflectConstruct$279,`_isNativeReflectConstruct`),__name(_superPropGet$30,`_superPropGet`),Or=function(r){function EmptyView(){var r;_classCallCheck(this,EmptyView);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper$279(this,EmptyView,[].concat(l)),_defineProperty(r,`template`,`<div></div>`),_defineProperty(r,`className`,`elementor-empty-view`),r}return _inherits(EmptyView,r),_createClass(EmptyView,[{key:`initialize`,value:function initialize(r){_superPropGet$30(EmptyView,`initialize`,this,3)([r]),this.ownerView=r.emptyViewOwner}},{key:`renderReactDefaultElement`,value:function renderReactDefaultElement(r){var c=r.parent,u;if(c.model.get(`elType`)===`widget`){var p=elementor.elementsManager.getElementTypeClass(c.model.get(`widgetType`));if(p){var m=p.getEmptyView();u=l.default.createElement(m,{container:r})}}else u=l.default.createElement(EmptyComponent,{container:r});var h=Er.render(u,this.el).unmount;this.unmount=h}},{key:`onRender`,value:function onRender(){this.$el.addClass(this.className),this.renderReactDefaultElement(this.ownerView.container)}},{key:`onDestroy`,value:function onDestroy(){this.unmount()}}])}(Marionette.ItemView)})),Ar,jr=__esmMin((()=>{b(),w(),P(),rt(),Ar=function(){function HookBase(){_classCallCheck(this,HookBase),_defineProperty(this,`type`,void 0),_defineProperty(this,`command`,void 0),_defineProperty(this,`id`,void 0),this.initialize(),this.type=this.getType(),this.command=this.getCommand(),this.id=this.getId()}return _createClass(HookBase,[{key:`initialize`,value:function initialize(){}},{key:`register`,value:function register(){H()}},{key:`getType`,value:function getType(){H()}},{key:`getCommand`,value:function getCommand(){H()}},{key:`getId`,value:function getId(){H()}},{key:`getContainerType`,value:function getContainerType(){}},{key:`getConditions`,value:function getConditions(){return arguments.length>0&&arguments[0]!==void 0&&arguments[0],arguments.length>1&&arguments[1],!0}},{key:`apply`,value:function apply(r){H()}},{key:`run`,value:function run(){var r=(arguments.length<=0?void 0:arguments[0]).options,c=r===void 0?{}:r;return c.callbacks&&!1===c.callbacks[this.id]?!0:this.getConditions.apply(this,arguments)?($e.devTools&&$e.devTools.log.callbacks().active(this.type,this.command,this.id),this.apply.apply(this,arguments)):!0}}])}()}));function _callSuper$278(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$278()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$278(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$278=function _isNativeReflectConstruct(){return!!r})()}var Mr,Nr=__esmMin((()=>{b(),w(),E(),D(),A(),jr(),__name(_callSuper$278,`_callSuper`),__name(_isNativeReflectConstruct$278,`_isNativeReflectConstruct`),Mr=function(r){function Base(){return _classCallCheck(this,Base),_callSuper$278(this,Base,arguments)}return _inherits(Base,r),_createClass(Base,[{key:`getType`,value:function getType(){return`data`}}])}(Ar)}));function _callSuper$277(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$277()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$277(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$277=function _isNativeReflectConstruct(){return!!r})()}var Pr,Fr=__esmMin((()=>{b(),w(),E(),D(),A(),Nr(),__name(_callSuper$277,`_callSuper`),__name(_isNativeReflectConstruct$277,`_isNativeReflectConstruct`),Pr=function(r){function After(){return _classCallCheck(this,After),_callSuper$277(this,After,arguments)}return _inherits(After,r),_createClass(After,[{key:`register`,value:function register(){$e.hooks.registerDataAfter(this)}}])}(Mr)}));function _callSuper$276(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$276()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$276(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$276=function _isNativeReflectConstruct(){return!!r})()}var Ir,Lr=__esmMin((()=>{b(),w(),E(),D(),A(),Fr(),__name(_callSuper$276,`_callSuper`),__name(_isNativeReflectConstruct$276,`_isNativeReflectConstruct`),Ir=function(r){function ResetLayoutBase(){return _classCallCheck(this,ResetLayoutBase),_callSuper$276(this,ResetLayoutBase,arguments)}return _inherits(ResetLayoutBase,r),_createClass(ResetLayoutBase,[{key:`getConditions`,value:function getConditions(){return!$e.commands.isCurrentFirstTrace(`document/elements/move`)}},{key:`apply`,value:function apply(r,c){Array.isArray(c)||(c=[c]),c.forEach(function(r){return r.parent.view.resetLayout(!1)})}}])}(Pr)}));function _callSuper$275(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$275()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$275(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$275=function _isNativeReflectConstruct(){return!!r})()}var Rr,zr=__esmMin((()=>{b(),w(),E(),D(),A(),Lr(),__name(_callSuper$275,`_callSuper`),__name(_isNativeReflectConstruct$275,`_isNativeReflectConstruct`),Rr=function(r){function CreateSectionColumnsResetLayout(){return _classCallCheck(this,CreateSectionColumnsResetLayout),_callSuper$275(this,CreateSectionColumnsResetLayout,arguments)}return _inherits(CreateSectionColumnsResetLayout,r),_createClass(CreateSectionColumnsResetLayout,[{key:`getCommand`,value:function getCommand(){return`document/elements/create`}},{key:`getId`,value:function getId(){return`section-columns-reset-layout--document/elements/create`}},{key:`getContainerType`,value:function getContainerType(){return`section`}}])}(Ir)}));function _callSuper$274(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$274()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$274(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$274=function _isNativeReflectConstruct(){return!!r})()}var Br,Vr=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$274,`_callSuper`),__name(_isNativeReflectConstruct$274,`_isNativeReflectConstruct`),Br=function(c){function Copy(){return _classCallCheck(this,Copy),_callSuper$274(this,Copy,arguments)}return _inherits(Copy,c),_createClass(Copy,[{key:`validateArgs`,value:function validateArgs(r){this.requireContainer(r)}},{key:`apply`,value:function apply(c){var l=c.storageKey,u=l===void 0?`clipboard`:l,p=c.containers,m=p===void 0?[c.container]:p;if(!elementor.selection.isSameType())return elementor.notifications.showToast({message:(0,r.__)(`That didn’t work. Try copying one kind of element at a time.`,`elementor`),buttons:[{name:`got_it`,text:(0,r.__)(`Got it`,`elementor`)}]}),!1;var h=elementor.getPreviewView().$el.find(`.elementor-element`),g=m.sort(function(r,c){return h.index(r.view.el)-h.index(c.view.el)}).map(function(r){return r.model.toJSON({copyHtmlCache:!0})}),v={type:`elementor`,siteurl:elementorCommon.config.urls.rest,elements:g};elementorCommon.storage.set(u,v);var y=document.createElement(`textarea`);y.value=JSON.stringify(v),document.body.appendChild(y),y.select(),document.execCommand(`copy`),document.body.removeChild(y)}}])}($e.modules.editor.CommandContainerBase)}));function _callSuper$273(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$273()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$273(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$273=function _isNativeReflectConstruct(){return!!r})()}var Hr,Ur=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$273,`_callSuper`),__name(_isNativeReflectConstruct$273,`_isNativeReflectConstruct`),Hr=function(r){function CopyAll(){return _classCallCheck(this,CopyAll),_callSuper$273(this,CopyAll,arguments)}return _inherits(CopyAll,r),_createClass(CopyAll,[{key:`apply`,value:function apply(){$e.run(`document/elements/copy`,{containers:Object.values(elementor.getPreviewView().children._views).map(function(r){return r.getContainer()})})}}])}($e.modules.CommandBase)}));function _callSuper$272(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$272()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$272(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$272=function _isNativeReflectConstruct(){return!!r})()}var Wr,Gr=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$272,`_callSuper`),__name(_isNativeReflectConstruct$272,`_isNativeReflectConstruct`),Wr=function(r){function Create(){return _classCallCheck(this,Create),_callSuper$272(this,Create,arguments)}return _inherits(Create,r),_createClass(Create,[{key:`validateArgs`,value:function validateArgs(r){this.requireContainer(r),this.requireArgumentConstructor(`model`,Object,r)}},{key:`getHistory`,value:function getHistory(r){var c=r.model,l=r.containers;return{containers:l===void 0?[r.container]:l,model:c,type:`add`,title:elementor.helpers.getModelLabel(c)}}},{key:`apply`,value:function apply(r){var c=this,l=r.model,u=r.options,p=u===void 0?{}:u,m=r.containers,h=m===void 0?[r.container]:m,g=[];return h.forEach(function(r){var u,m;if(r=r.lookup(),!((u=r)!=null&&u.view)||r.view.isDestroyed){var h;r=(h=$e.components.get(`document`).utils.findContainerById(r.id))==null?r:h}if(!((m=r)!=null&&m.view)||r.view.isDestroyed){$e.components.get(`document`).utils.addModelToParent(r.id,l,p);return}var v=r.view.addElement(l,p).getContainer();g.push(v),c.isHistoryActive()&&c.history&&$e.internal(`document/history/log-sub-item`,{container:r,type:`sub-add`,restore:c.constructor.restore,options:p,data:{containerToRestore:v,modelToRestore:v.model.toJSON()}})}),g.length===1&&(g=g[0]),g}}],[{key:`restore`,value:function restore(r,c){var l,u,p,m,h,g,v,y=r.get(`data`),b=r.get(`container`),x=r.get(`options`)||{};if(x.clone&&(x.clone=!1),c){$e.run(`document/elements/create`,{container:b,model:y.modelToRestore,options:x});return}if(!elementor.helpers.isAtomicWidget(y.modelToRestore)){$e.run(`document/elements/delete`,{container:y.containerToRestore});return}var S=(l=(u=y.containerToRestore)==null||(p=u.lookup)==null?void 0:p.call(u))==null?y.containerToRestore:l;if(S instanceof elementorModules.editor.Container){$e.run(`document/elements/delete`,{container:S});return}var C=(m=y.containerToRestore)==null||(m=m.parent)==null?void 0:m.id,w=(h=(g=y.containerToRestore)==null?void 0:g.id)==null?(v=y.modelToRestore)==null?void 0:v.id:h;C&&w&&$e.components.get(`document`).utils.removeModelFromParent(C,w)}}])}($e.modules.editor.document.CommandHistoryBase)}));function _callSuper$271(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$271()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$271(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$271=function _isNativeReflectConstruct(){return!!r})()}var Kr,qr=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$271,`_callSuper`),__name(_isNativeReflectConstruct$271,`_isNativeReflectConstruct`),Kr=function(r){function Delete(){return _classCallCheck(this,Delete),_callSuper$271(this,Delete,arguments)}return _inherits(Delete,r),_createClass(Delete,[{key:`validateArgs`,value:function validateArgs(r){this.requireContainer(r)}},{key:`getHistory`,value:function getHistory(r){var c=r.containers;return{containers:c===void 0?[r.container]:c,type:`remove`}}},{key:`apply`,value:function apply(r){var c=this,l=r.containers,u=l===void 0?[r.container]:l;return u.forEach(function(l){var u,p;if(l=l.lookup(),!((u=l)!=null&&u.view)||l.view.isDestroyed){var m;l=(m=$e.components.get(`document`).utils.findContainerById(l.id))==null?l:m}if(!((p=l)!=null&&p.view)||l.view.isDestroyed){var h;(h=l)!=null&&h.parent&&$e.components.get(`document`).utils.removeModelFromParent(l.parent.id,l.id);return}c.isHistoryActive()&&c.history&&$e.internal(`document/history/log-sub-item`,{container:l,type:`sub-remove`,restore:c.constructor.restore,data:{model:l.model.toJSON(),parent:l.parent,at:l.view._index}}),c.dispatchDeleteEvent(l,r.callerName),c.deselectRecursive(l.model.get(`id`)),l.model.destroy(),l.panel.refresh()}),u.length===1?u[0]:u}},{key:`dispatchDeleteEvent`,value:function dispatchDeleteEvent(r,c){var l,u,p,m,h,g;if((l=elementorCommon)!=null&&(l=l.eventsManager)!=null&&l.dispatchEvent){var v=(u=r.model.get(`elType`))==null?``:u,y=(p=r.model.get(`widgetType`))==null?``:p,b=v===`widget`?y:v,x=((m=(h=r.parent)==null||(h=h.model)==null?void 0:h.get(`widgetType`))==null?``:m)||((g=r.parent)==null?void 0:g.type)||``,S={window_name:`editor`,interaction_type:`click`,target_type:v,target_name:`delete`,interaction_result:`${v}_deleted`,target_location:`canvas`,location_l1:x,location_l2:b,interaction_description:`user_deleted_${b}_from_canvas`};c&&(S.trigger=c),elementorCommon.eventsManager.dispatchEvent(`delete_element`,S)}}},{key:`deselectRecursive`,value:function deselectRecursive(r){var c=this,l=elementor.getContainer(r);elementor.selection.has(l)&&$e.run(`document/elements/deselect`,{container:l}),l==null||l.model.get(`elements`).forEach(function(r){c.deselectRecursive(r.get(`id`))})}}],[{key:`restore`,value:function restore(r,c){var l=r.get(`container`),u=r.get(`data`);c?$e.run(`document/elements/delete`,{container:l}):$e.run(`document/elements/create`,{container:u.parent,model:u.model,options:{at:u.at}})}}])}($e.modules.editor.document.CommandHistoryBase)}));function _callSuper$270(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$270()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$270(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$270=function _isNativeReflectConstruct(){return!!r})()}var Jr,Yr=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$270,`_callSuper`),__name(_isNativeReflectConstruct$270,`_isNativeReflectConstruct`),Jr=function(r){function Deselect(){return _classCallCheck(this,Deselect),_callSuper$270(this,Deselect,arguments)}return _inherits(Deselect,r),_createClass(Deselect,[{key:`validateArgs`,value:function validateArgs(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.all||this.requireContainer(r)}},{key:`apply`,value:function apply(r){var c=r.containers,l=c===void 0?[r.container]:c,u=r.all,p=u!==void 0&&u;elementor.selection.remove(l,p)}}])}($e.modules.editor.CommandContainerBase)}));function _callSuper$269(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$269()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$269(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$269=function _isNativeReflectConstruct(){return!!r})()}var Xr,Zr=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$269,`_callSuper`),__name(_isNativeReflectConstruct$269,`_isNativeReflectConstruct`),Xr=function(r){function DeselectAll(){return _classCallCheck(this,DeselectAll),_callSuper$269(this,DeselectAll,arguments)}return _inherits(DeselectAll,r),_createClass(DeselectAll,[{key:`apply`,value:function apply(){elementor.selection.remove([],!0)}}])}($e.modules.CommandBase)}));function ownKeys$15(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$15(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$15(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$15(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}function _callSuper$268(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$268()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$268(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$268=function _isNativeReflectConstruct(){return!!r})()}var Qr,$r=__esmMin((()=>{P(),b(),w(),E(),D(),A(),__name(ownKeys$15,`ownKeys`),__name(_objectSpread$15,`_objectSpread`),__name(_callSuper$268,`_callSuper`),__name(_isNativeReflectConstruct$268,`_isNativeReflectConstruct`),Qr=function(c){function Duplicate(){return _classCallCheck(this,Duplicate),_callSuper$268(this,Duplicate,arguments)}return _inherits(Duplicate,c),_createClass(Duplicate,[{key:`validateArgs`,value:function validateArgs(r){this.requireContainer(r)}},{key:`getHistory`,value:function getHistory(r){var c=r.containers;return{containers:c===void 0?[r.container]:c,type:`duplicate`}}},{key:`apply`,value:function apply(c){var l=c.containers,u=l===void 0?[c.container]:l,p=c.options,m=p===void 0?{}:p,h=[],g=u[u.length-1].view._index;return elementor.selection.isSameType()?(u.forEach(function(r){var c=r.parent;h.push($e.run(`document/elements/create`,{container:c,model:r.model.toJSON(),options:_objectSpread$15(_objectSpread$15({},m),{},{at:++g,clone:!0})}))}),h.length===1?h[0]:h):(elementor.notifications.showToast({message:(0,r.__)(`That didn’t work. Try duplicating one kind of element at a time.`,`elementor`),buttons:[{name:`got_it`,text:(0,r.__)(`Got it`,`elementor`)}]}),!1)}}])}($e.modules.editor.document.CommandHistoryBase)}));function _callSuper$267(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$267()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$267(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$267=function _isNativeReflectConstruct(){return!!r})()}var ei,ti=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$267,`_callSuper`),__name(_isNativeReflectConstruct$267,`_isNativeReflectConstruct`),ei=function(c){function Empty(){return _classCallCheck(this,Empty),_callSuper$267(this,Empty,arguments)}return _inherits(Empty,c),_createClass(Empty,[{key:`getHistory`,value:function getHistory(c){return c.force?{type:`remove`,title:(0,r.__)(`All Content`,`elementor`),data:elementor.elements?elementor.elements.toJSON():null,restore:this.constructor.restore}:!1}},{key:`apply`,value:function apply(r){if(r.force&&elementor.elements){elementor.elements.reset(),elementor.getPreviewContainer().panel.closeEditor();return}elementor.getClearPageDialog().show()}},{key:`isDataChanged`,value:function isDataChanged(){return this.args.force}}],[{key:`restore`,value:function restore(r,c){if(c)$e.run(`document/elements/empty`,{force:!0});else{var l=r.get(`data`);l&&elementor.getPreviewView().addChildModel(l),$e.internal(`document/save/set-is-modified`,{status:!0})}}}])}($e.modules.editor.document.CommandHistoryBase)}));function _callSuper$266(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$266()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$266(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$266=function _isNativeReflectConstruct(){return!!r})()}var ni,ri=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$266,`_callSuper`),__name(_isNativeReflectConstruct$266,`_isNativeReflectConstruct`),ni=function(c){function Import(){return _classCallCheck(this,Import),_callSuper$266(this,Import,arguments)}return _inherits(Import,c),_createClass(Import,[{key:`validateArgs`,value:function validateArgs(r){if(this.requireArgumentInstance(`model`,Backbone.Model,r),this.requireArgumentConstructor(`data`,Object,r),r.containers)throw TypeError(`Multi containers are not supported`);r.container&&this.requireContainer()}},{key:`getHistory`,value:function getHistory(c){var l=c.model;return{type:`add`,title:(0,r.__)(`Template`,`elementor`),subTitle:l.get(`title`)}}},{key:`apply`,value:function apply(r){var c=r.data,l=r.options,u=l===void 0?r.options||{}:l,p=r.container,m=p===void 0?r.container||elementor.getPreviewContainer():p,h=[],g=isNaN(u.at)?m.view.collection.length:u.at;return Object.values(c.content).forEach(function(r){h.push($e.run(`document/elements/create`,{container:m,model:r,options:Object.assign(u,{at:g})})),g++}),u.withPageSettings&&$e.run(`document/elements/settings`,{container:elementor.settings.page.getEditedView().getContainer(),settings:c.page_settings,options:{external:!0}}),h}}])}($e.modules.editor.document.CommandHistoryBase)}));function _callSuper$265(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$265()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$265(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$265=function _isNativeReflectConstruct(){return!!r})()}var ii,ai,oi=__esmMin((()=>{N(),b(),w(),E(),D(),A(),ii=__toESM(R()),En(),__name(_callSuper$265,`_callSuper`),__name(_isNativeReflectConstruct$265,`_isNativeReflectConstruct`),ai=function(c){function Paste(){return _classCallCheck(this,Paste),_callSuper$265(this,Paste,arguments)}return _inherits(Paste,c),_createClass(Paste,[{key:`validateArgs`,value:function validateArgs(r){this.requireContainer(r)}},{key:`getHistory`,value:function getHistory(){return{type:`paste`,title:(0,r.__)(`Elements`,`elementor`)}}},{key:`getStorageData`,value:function getStorageData(r){var c=r.storageType,l=c===void 0?`localstorage`:c,u=r.storageKey,p=u===void 0?`clipboard`:u,m=r.data,h=m===void 0?``:m;if(l===`localstorage`)return elementorCommon.storage.get(p)||{};try{return JSON.parse(h)||{}}catch(r){return{}}}},{key:`apply`,value:function(){var r=_asyncToGenerator(ii.default.mark(function _callee(r){var c,l,u,p,m,h,g,v,y,b,x;return ii.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(l=r.at,u=r.rebuild,p=u!==void 0&&u,m=r.containers,h=m===void 0?[r.container]:m,g=r.options,v=g===void 0?{}:g,y=this.getStorageData(r),!(!y||!(y!=null&&(c=y.elements)!=null&&c.length)||(y==null?void 0:y.type)!==`elementor`)){S.next=1;break}return S.abrupt(`return`,!1);case 1:if(b=y.elements,y.siteurl===elementorCommon.config.urls.rest){S.next=5;break}return S.prev=2,S.next=3,new Promise(function(r,c){return elementorCommon.ajax.addRequest(`import_from_json`,{data:{elements:JSON.stringify(b)},success:r,error:c})});case 3:b=S.sent,S.next=5;break;case 4:return S.prev=4,S.catch(2),S.abrupt(`return`,!1);case 5:if(x=[],p?x=this.rebuild(h,b,l):(l!==void 0&&(v.at=l),x.push(this.pasteTo(h,b,v))),x.length!==1){S.next=6;break}return S.abrupt(`return`,x[0]);case 6:return S.abrupt(`return`,x);case 7:case`end`:return S.stop()}},_callee,this,[[2,4]])}));function apply(c){return r.apply(this,arguments)}return apply}()},{key:`rebuild`,value:function rebuild(r,c,l){var u=this,p=[];return r.forEach(function(r){var m=l===void 0,h=m?r.view.collection.length:l;c.forEach(function(c){switch(c.elType){case`container`:case`e-flexbox`:case`e-div-block`:case`e-grid`:p.push(u.pasteTo([r],[c],{at:m?++h:h}));break;case`section`:c.isInner&&(r=$e.run(`document/elements/create`,{container:r,model:{elType:`section`},columns:1,options:{at:h,edit:!1}}).view.children.findByIndex(0).getContainer()),p.push(u.pasteTo([r],[c],{at:h,edit:!1})),h++;break;case`column`:var l=$e.run(`document/elements/create`,{container:r,model:{elType:`section`},columns:0,options:{at:++h,edit:!1}});p.push(u.pasteTo([l],[c]));break;default:var g,v=elementor.helpers.isAtomicWidget(c);if(r.model.get(`elType`)===`section`)g=[r.view.children.findByIndex(0).getContainer()];else if(r.model.get(`elType`)===`container`)g=[r];else if(v){var y={at:m?++h:h,useHistory:!1};g=G.createContainerFromModel({elType:G.V4_DEFAULT_CONTAINER_TYPE},r,{options:y}),g=[g]}else elementorCommon.config.experimentalFeatures.container?(g=$e.run(`document/elements/create`,{container:r,model:{elType:`container`},options:{at:m?++h:h}}),g=[g]):g=[$e.run(`document/elements/create`,{container:r,model:{elType:`section`},columns:1,options:{at:m?++h:h}}).view.children.first().getContainer()];p.push(u.pasteTo(g,[c]))}})}),p}},{key:`pasteTo`,value:function pasteTo(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};l=Object.assign({at:null,clone:!0},l);var u=[];return c.forEach(function(c){u.push($e.run(`document/elements/create`,{containers:r,model:c,options:l})),l.at!==null&&l.at++}),u.length===1?u[0]:u}}])}($e.modules.editor.document.CommandHistoryBase)}));function _callSuper$264(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$264()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$264(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$264=function _isNativeReflectConstruct(){return!!r})()}var si,ci,li=__esmMin((()=>{N(),b(),w(),E(),D(),A(),P(),si=__toESM(R()),Kt(),__name(_callSuper$264,`_callSuper`),__name(_isNativeReflectConstruct$264,`_isNativeReflectConstruct`),ci=function(c){function PasteArea(){return _classCallCheck(this,PasteArea),_callSuper$264(this,PasteArea,arguments)}return _inherits(PasteArea,c),_createClass(PasteArea,[{key:`getHistory`,value:function getHistory(){return!1}},{key:`getDialog`,value:function getDialog(){var c=this;if(this.dialog)return this.dialog;var l=jQuery(`<div>`,{class:`e-dialog-description`}).html((0,r.__)(`To paste the element from your other site.`,`elementor`)),u=jQuery(`<input>`,{id:`elementor-paste-area-dialog__input`,type:`text`}).attr(`autocomplete`,`off`).on(`keypress`,function(r){r.preventDefault()}).on(`blur`,function(){_.defer(function(){return u.trigger(`focus`)})}).on(`paste`,function(){var r=_asyncToGenerator(si.default.mark(function _callee(r){var l,u;return si.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return r.preventDefault(),l=c.getDialog().getElements(`widgetContent`),l.addClass(`e-state-loading`),m.next=1,$e.run(`document/ui/paste`,{container:c.container,storageType:`rawdata`,data:r.originalEvent.clipboardData.getData(`text`),options:c.options});case 1:if(u=m.sent,l.removeClass(`e-state-loading`),!u){m.next=2;break}return c.dialog.hide(),m.abrupt(`return`);case 2:p.show();case 3:case`end`:return m.stop()}},_callee)}));return function(c){return r.apply(this,arguments)}}()),p=jQuery(`<div>`,{id:`elementor-paste-area-dialog__error`,style:`display: none`}).html((0,r.__)(`Make sure that both sites are updated to last version of Elementor and have enabled the features relevant to the copied element before trying again.`,`elementor`)),m=jQuery(`<i>`,{class:`eicon-loading eicon-animation-spin`});l.append(u).append(p).append(m);var h=Gt.mac?`&#8984;`:`Ctrl`;return this.dialog=elementorCommon.dialogsManager.createWidget(`lightbox`,{id:`elementor-paste-area-dialog`,headerMessage:`${h} + V`,message:l,position:{my:`center center`,at:`center center`},closeButton:!0,closeButtonOptions:{iconClass:`eicon-close`},onShow:function onShow(){u.trigger(`focus`),c.getDialog().getElements(`widgetContent`).on(`click`,function(){u.trigger(`focus`)})}}),this.dialog}},{key:`apply`,value:function apply(r){this.container=r.container,r.options&&(this.options=r.options),this.getDialog().show()}}])}($e.modules.editor.document.CommandHistoryBase),_defineProperty(ci,`dialog`,null),_defineProperty(ci,`container`,null),_defineProperty(ci,`options`,{})}));function _callSuper$263(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$263()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$263(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$263=function _isNativeReflectConstruct(){return!!r})()}var di,fi=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$263,`_callSuper`),__name(_isNativeReflectConstruct$263,`_isNativeReflectConstruct`),di=function(r){function PasteInteractions(){return _classCallCheck(this,PasteInteractions),_callSuper$263(this,PasteInteractions,arguments)}return _inherits(PasteInteractions,r),_createClass(PasteInteractions,[{key:`validateArgs`,value:function validateArgs(r){this.requireContainer(r);var c=r.storageKey,l=c===void 0?`clipboard`:c,u=elementorCommon.storage.get(l);this.requireArgumentType(`storageData`,`object`,{storageData:u})}},{key:`apply`,value:function apply(){}}])}($e.modules.editor.CommandContainerBase)}));function _callSuper$262(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$262()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$262(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$262=function _isNativeReflectConstruct(){return!!r})()}var pi,mi=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$262,`_callSuper`),__name(_isNativeReflectConstruct$262,`_isNativeReflectConstruct`),pi=function(r){function Move(){return _classCallCheck(this,Move),_callSuper$262(this,Move,arguments)}return _inherits(Move,r),_createClass(Move,[{key:`validateArgs`,value:function validateArgs(r){this.requireContainer(r),this.requireArgumentInstance(`target`,elementorModules.editor.Container,r)}},{key:`getHistory`,value:function getHistory(r){var c=r.containers;return{containers:c===void 0?[r.container]:c,type:`move`}}},{key:`apply`,value:function apply(r){var c=r.target,l=r.options,u=l===void 0?{}:l,p=r.containers,m=p===void 0?[r.container]:p,h=[];m.forEach(function(r){h.push(r.model.toJSON()),$e.run(`document/elements/delete`,{container:r})});var g=0,v=[];return h.forEach(function(r){Object.prototype.hasOwnProperty.call(u,`at`)&&h.length>1&&g!==0&&(u.at+=g);var l=$e.run(`document/elements/create`,{container:c,model:r,options:u});v.push(l),g++}),v.length===1?v[0]:v}}])}($e.modules.editor.document.CommandHistoryBase)}));function _callSuper$261(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$261()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$261(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$261=function _isNativeReflectConstruct(){return!!r})()}var hi,gi=__esmMin((()=>{M(),x(),b(),w(),E(),D(),A(),__name(_callSuper$261,`_callSuper`),__name(_isNativeReflectConstruct$261,`_isNativeReflectConstruct`),hi=function(r){function PasteStyle(){return _classCallCheck(this,PasteStyle),_callSuper$261(this,PasteStyle,arguments)}return _inherits(PasteStyle,r),_createClass(PasteStyle,[{key:`validateArgs`,value:function validateArgs(r){this.requireContainer(r);var c=r.storageKey,l=c===void 0?`clipboard`:c,u=elementorCommon.storage.get(l);this.requireArgumentType(`storageData`,`object`,{storageData:u})}},{key:`validateControls`,value:function validateControls(r,c){var l=!0;return(r===null||c===null||r===void 0||c===void 0||_typeof(r)===`object`^_typeof(c)===`object`)&&(l=!1),l}},{key:`getHistory`,value:function getHistory(r){var c=r.containers;return{containers:c===void 0?[r.container]:c,type:`paste_style`}}},{key:`apply`,value:function apply(r){var c,l=r.containers,u=l===void 0?[r.container]:l,p=r.storageKey,m=p===void 0?`clipboard`:p,h=elementorCommon.storage.get(m);if(!h||!(h!=null&&(c=h.elements)!=null&&c.length)||(h==null?void 0:h.type)!==`elementor`)return!1;this.applyPasteStyleData(u,h.elements)}},{key:`applyPasteStyleData`,value:function applyPasteStyleData(r,c){var l=this;r.forEach(function(r){var u=r.settings,p=u.attributes,m=u.controls,h={},g=function addExtraControls(c,l){c[l]&&Object.entries(c[l]).forEach(function(c){var u=_slicedToArray(c,2),p=u[0],g=u[1],v=m[p];r.view.isStyleTransferControl(v)&&(h[l]=h[l]||{},h[l][p]=g)})};c.forEach(function(c){var u=c.settings;g(u,`__globals__`),g(u,`__dynamic__`),Object.entries(m).forEach(function(c){var m=_slicedToArray(c,2),g=m[0],v=m[1];if(r.view.isStyleTransferControl(v)){var y=u[g],b=p[g];l.validateControls(y,b)&&(_typeof(y)===`object`&&Object.keys(y).some(function(r){if(y[r]!==b[r])return!1})||y===b||!elementor.getControlView(v.type).onPasteStyle(v,y)||(h[g]=y))}}),l.pasteStyle(r,h)})})}},{key:`pasteStyle`,value:function pasteStyle(r,c){var l=c.__globals__;l&&delete c.__globals__,$e.run(`document/elements/settings`,{container:r,settings:c,options:{external:!0,render:!1}}),l&&($e.run(`document/globals/settings`,{container:r,settings:l,options:{external:!0,render:!1}}),r.panel.refresh()),r.render()}}])}($e.modules.editor.document.CommandHistoryBase)}));function _callSuper$260(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$260()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$260(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$260=function _isNativeReflectConstruct(){return!!r})()}var _i,vi=__esmMin((()=>{M(),b(),w(),E(),D(),A(),__name(_callSuper$260,`_callSuper`),__name(_isNativeReflectConstruct$260,`_isNativeReflectConstruct`),_i=function(r){function ResetSettings(){return _classCallCheck(this,ResetSettings),_callSuper$260(this,ResetSettings,arguments)}return _inherits(ResetSettings,r),_createClass(ResetSettings,[{key:`validateArgs`,value:function validateArgs(r){this.requireContainer(r)}},{key:`getHistory`,value:function getHistory(r){var c=r.containers;return{containers:c===void 0?[r.container]:c,type:`reset_settings`}}},{key:`apply`,value:function apply(r){var c=r.containers,l=c===void 0?[r.container]:c,u=r.options,p=u===void 0?{}:u,m=r.settings,h=m===void 0?[]:m;l.forEach(function(r){var c=Object.entries(r.settings.controls),l={};c.forEach(function(r){var c=_slicedToArray(r,2),u=c[0],p=c[1];h&&h.length&&!h.find(function(r){return r===u})||(l[u]=p.default)}),l.__globals__={},$e.run(`document/elements/settings`,{container:r,options:p,settings:l}),r.render()})}}])}($e.modules.editor.document.CommandHistoryBase)}));function _callSuper$259(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$259()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$259(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$259=function _isNativeReflectConstruct(){return!!r})()}var yi,bi=__esmMin((()=>{M(),b(),w(),E(),D(),A(),__name(_callSuper$259,`_callSuper`),__name(_isNativeReflectConstruct$259,`_isNativeReflectConstruct`),yi=function(r){function ResetStyle(){return _classCallCheck(this,ResetStyle),_callSuper$259(this,ResetStyle,arguments)}return _inherits(ResetStyle,r),_createClass(ResetStyle,[{key:`validateArgs`,value:function validateArgs(r){this.requireContainer(r)}},{key:`getHistory`,value:function getHistory(r){var c=r.containers;return{containers:c===void 0?[r.container]:c,type:`reset_style`}}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){var c=r.settings.controls,l=[];r.view.allowRender=!1,Object.entries(c).forEach(function(c){var u=_slicedToArray(c,2),p=u[0],m=u[1];r.view.isStyleTransferControl(m)&&l.push(p)}),$e.run(`document/elements/reset-settings`,{container:r,settings:l,options:{external:!0}}),r.view.allowRender=!0,r.render()})}}])}($e.modules.editor.document.CommandHistoryBase)}));function _callSuper$258(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$258()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$258(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$258=function _isNativeReflectConstruct(){return!!r})()}var xi,Si=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$258,`_callSuper`),__name(_isNativeReflectConstruct$258,`_isNativeReflectConstruct`),xi=function(r){function Select(){return _classCallCheck(this,Select),_callSuper$258(this,Select,arguments)}return _inherits(Select,r),_createClass(Select,[{key:`validateArgs`,value:function validateArgs(r){this.requireContainer(r)}},{key:`apply`,value:function apply(r){var c=r.containers,l=c===void 0?[r.container]:c,u=r.append,p=u!==void 0&&u;elementor.selection.add(l,p)}}])}($e.modules.editor.CommandContainerBase)}));function _createForOfIteratorHelper$8(r,c){var l=typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(!l){if(Array.isArray(r)||(l=_unsupportedIterableToArray$8(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.
17 -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$8(r,c){if(r){if(typeof r==`string`)return _arrayLikeToArray$8(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$8(r,c):void 0}}function _arrayLikeToArray$8(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$257(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$257()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$257(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$257=function _isNativeReflectConstruct(){return!!r})()}var Ci,wi=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_createForOfIteratorHelper$8,`_createForOfIteratorHelper`),__name(_unsupportedIterableToArray$8,`_unsupportedIterableToArray`),__name(_arrayLikeToArray$8,`_arrayLikeToArray`),__name(_callSuper$257,`_callSuper`),__name(_isNativeReflectConstruct$257,`_isNativeReflectConstruct`),Ci=function(r){function SelectAll(){return _classCallCheck(this,SelectAll),_callSuper$257(this,SelectAll,arguments)}return _inherits(SelectAll,r),_createClass(SelectAll,[{key:`apply`,value:function apply(){elementor.selection.add(this.flattenContainersList(elementor.elementsModel.get(`elements`).map(function(r){return elementor.getContainer(r.id)})))}},{key:`flattenContainersList`,value:function flattenContainersList(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=[],l=_createForOfIteratorHelper$8(r),u;try{for(l.s();!(u=l.n()).done;){var p=u.value;c.push(p),p.children.length&&(c=c.concat(this.flattenContainersList(p.children)))}}catch(r){l.e(r)}finally{l.f()}return c}}])}($e.modules.CommandBase)}));function _callSuper$256(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$256()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$256(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$256=function _isNativeReflectConstruct(){return!!r})()}var Ti,Ei=__esmMin((()=>{P(),b(),w(),E(),D(),A(),__name(_callSuper$256,`_callSuper`),__name(_isNativeReflectConstruct$256,`_isNativeReflectConstruct`),Ti=function(r){function Settings(){return _classCallCheck(this,Settings),_callSuper$256(this,Settings,arguments)}return _inherits(Settings,r),_createClass(Settings,[{key:`addToHistory`,value:function addToHistory(r,c,l){var u=_defineProperty({},r.id,{old:l,new:c}),p={containers:[r],data:{changes:u},type:`change`,restore:Settings.restore};$e.internal(`document/history/add-transaction`,p)}},{key:`validateArgs`,value:function validateArgs(r){this.requireContainer(r),this.requireArgumentConstructor(`settings`,Object,r)}},{key:`getHistory`,value:function getHistory(r){var c=r.containers;return{containers:c===void 0?[r.container]:c,subTitle:this.constructor.getSubTitle(r),type:`change`}}},{key:`apply`,value:function apply(r){var c=this,l=r.containers,u=l===void 0?[r.container]:l,p=r.settings,m=p===void 0?{}:p,h=r.isMultiSettings,g=h!==void 0&&h,v=r.options,y=v===void 0?{}:v;u.forEach(function(r){r=r.lookup();var l=g?m[r.id]:m,u=r.settings.toJSON();r.oldValues={},Object.keys(l).forEach(function(c){r.oldValues[c]=u[c]}),c.isHistoryActive()&&c.addToHistory(r,l,r.oldValues),$e.internal(`document/elements/set-settings`,{container:r,options:y,settings:l})})}}],[{key:`getSubTitle`,value:function getSubTitle(r){var c=r.containers,l=c===void 0?[r.container]:c,u=r.settings,p=u===void 0?{}:u,m=r.isMultiSettings,h=Object.keys(p),g=l[0].controls,v=h[0],y=``;return!m&&h.length===1&&g&&g[v]&&(y=g[v].label),y}},{key:`restore`,value:function restore(r,c){var l=r.get(`data`);r.get(`containers`).forEach(function(r){var u=l.changes[r.id];$e.run(`document/elements/settings`,{container:r,settings:c?u.new:u.old,options:{external:!0}})})}}])}($e.modules.editor.document.CommandHistoryDebounceBase)}));function _callSuper$255(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$255()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$255(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$255=function _isNativeReflectConstruct(){return!!r})()}var Di,Oi=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$255,`_callSuper`),__name(_isNativeReflectConstruct$255,`_isNativeReflectConstruct`),Di=function(r){function ToggleSelection(){return _classCallCheck(this,ToggleSelection),_callSuper$255(this,ToggleSelection,arguments)}return _inherits(ToggleSelection,r),_createClass(ToggleSelection,[{key:`validateArgs`,value:function validateArgs(r){this.requireContainer(r)}},{key:`apply`,value:function apply(r){var c=r.containers,l=c===void 0?[r.container]:c,u=r.append,p=u!==void 0&&u;l.forEach(function(c){$e.run(elementor.selection.has(c)&&p?`document/elements/deselect`:`document/elements/select`,r)})}}])}($e.modules.editor.CommandContainerBase)})),ki=__exportAll({Copy:()=>Br,CopyAll:()=>Hr,Create:()=>Wr,Delete:()=>Kr,Deselect:()=>Jr,DeselectAll:()=>Xr,Duplicate:()=>Qr,Empty:()=>ei,Import:()=>ni,Move:()=>pi,Paste:()=>ai,PasteArea:()=>ci,PasteInteractions:()=>di,PasteStyle:()=>hi,ResetSettings:()=>_i,ResetStyle:()=>yi,Select:()=>xi,SelectAll:()=>Ci,Settings:()=>Ti,ToggleSelection:()=>Di}),Ai=__esmMin((()=>{Vr(),Ur(),Gr(),qr(),Yr(),Zr(),$r(),ti(),ri(),oi(),li(),fi(),mi(),gi(),vi(),bi(),Si(),wi(),Ei(),Oi()})),ji,Mi=__esmMin((()=>{b(),w(),Ai(),ji=function(){function Helper(){_classCallCheck(this,Helper)}return _createClass(Helper,null,[{key:`createSectionColumns`,value:function createSectionColumns(r,c,l){var u=arguments.length>3&&arguments[3]!==void 0&&arguments[3];r.forEach(function(r){for(var u=0;u<c;u++){var p={id:elementorCommon.helpers.getUniqueId(),elType:`column`,settings:{},elements:[]};r.view.addElement(p,{edit:!1}),$e.internal(`document/history/log-sub-item`,{container:r,type:`sub-add`,restore:Wr.restore,options:l,data:{containerToRestore:r,modelToRestore:p}})}}),u?r.forEach(function(r){r.view.setStructure(u,!1)}):c&&(r.forEach(function(r){return r.view.resetLayout()}),r[r.length-1].model.trigger(`request:edit`))}}])}()}));function _callSuper$254(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$254()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$254(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$254=function _isNativeReflectConstruct(){return!!r})()}var Ni,Pi,Fi=__esmMin((()=>{b(),w(),E(),D(),A(),Fr(),Mi(),Ni=__toESM(Kn()),__name(_callSuper$254,`_callSuper`),__name(_isNativeReflectConstruct$254,`_isNativeReflectConstruct`),Pi=function(r){function InnerSectionColumns(){return _classCallCheck(this,InnerSectionColumns),_callSuper$254(this,InnerSectionColumns,arguments)}return _inherits(InnerSectionColumns,r),_createClass(InnerSectionColumns,[{key:`getCommand`,value:function getCommand(){return`document/elements/create`}},{key:`getId`,value:function getId(){return`create-inner-section-columns`}},{key:`getContainerType`,value:function getContainerType(){return`column`}},{key:`getConditions`,value:function getConditions(r){return r.model.isInner&&!r.model.elements}},{key:`apply`,value:function apply(r,c){var l=r.structure,u=l===void 0?`20`:l,p=r.options,m=p===void 0?{}:p;Array.isArray(c)||(c=[c]),ji.createSectionColumns(c,Ni.DEFAULT_INNER_SECTION_COLUMNS,m,u)}}])}(Pr)}));function _callSuper$253(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$253()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$253(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$253=function _isNativeReflectConstruct(){return!!r})()}var Ii,Li=__esmMin((()=>{b(),w(),E(),D(),A(),Nr(),__name(_callSuper$253,`_callSuper`),__name(_isNativeReflectConstruct$253,`_isNativeReflectConstruct`),Ii=function(r){function Dependency(){return _classCallCheck(this,Dependency),_callSuper$253(this,Dependency,arguments)}return _inherits(Dependency,r),_createClass(Dependency,[{key:`register`,value:function register(){$e.hooks.registerDataDependency(this)}}])}(Mr)}));function _callSuper$252(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$252()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$252(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$252=function _isNativeReflectConstruct(){return!!r})()}var Ri,zi=__esmMin((()=>{b(),w(),E(),D(),A(),Li(),__name(_callSuper$252,`_callSuper`),__name(_isNativeReflectConstruct$252,`_isNativeReflectConstruct`),Ri=function(r){function IsValidChild(){return _classCallCheck(this,IsValidChild),_callSuper$252(this,IsValidChild,arguments)}return _inherits(IsValidChild,r),_createClass(IsValidChild,[{key:`getCommand`,value:function getCommand(){return`document/elements/create`}},{key:`getId`,value:function getId(){return`is-valid-child`}},{key:`apply`,value:function apply(r){var c=r.containers,l=c===void 0?[r.container]:c,u=r.model,p=u===void 0?{}:u,m=new Backbone.Model(p);return l.some(function(r){return r.model.isValidChild(m)})}}])}(Ii)}));function _callSuper$251(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$251()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$251(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$251=function _isNativeReflectConstruct(){return!!r})()}var Bi,Vi,Hi=__esmMin((()=>{b(),w(),E(),D(),A(),Fr(),Mi(),Bi=__toESM(Kn()),__name(_callSuper$251,`_callSuper`),__name(_isNativeReflectConstruct$251,`_isNativeReflectConstruct`),Vi=function(r){function SectionColumns(){return _classCallCheck(this,SectionColumns),_callSuper$251(this,SectionColumns,arguments)}return _inherits(SectionColumns,r),_createClass(SectionColumns,[{key:`getCommand`,value:function getCommand(){return`document/elements/create`}},{key:`getId`,value:function getId(){return`create-section-columns`}},{key:`getContainerType`,value:function getContainerType(){return`document`}},{key:`getConditions`,value:function getConditions(r){return!r.model.elements&&r.model.elType===`section`}},{key:`apply`,value:function apply(r,c){var l=r.structure,u=l!==void 0&&l,p=r.options,m=p===void 0?{}:p;Array.isArray(c)||(c=[c]);var h=r.columns,g=h===void 0?1:h;r.model.isInner&&g===1&&(g=Bi.DEFAULT_INNER_SECTION_COLUMNS),ji.createSectionColumns(c,g,m,u)}}])}(Pr)}));function _callSuper$250(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$250()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$250(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$250=function _isNativeReflectConstruct(){return!!r})()}var Ui,Wi=__esmMin((()=>{b(),w(),E(),D(),A(),Li(),__name(_callSuper$250,`_callSuper`),__name(_isNativeReflectConstruct$250,`_isNativeReflectConstruct`),Ui=function(r){function SectionColumnsLimit(){return _classCallCheck(this,SectionColumnsLimit),_callSuper$250(this,SectionColumnsLimit,arguments)}return _inherits(SectionColumnsLimit,r),_createClass(SectionColumnsLimit,[{key:`getCommand`,value:function getCommand(){return`document/elements/create`}},{key:`getId`,value:function getId(){return`section-columns-limit`}},{key:`getContainerType`,value:function getContainerType(){return`section`}},{key:`apply`,value:function apply(r){var c=r.containers;return!(c===void 0?[r.container]:c).some(function(r){return r.view.isCollectionFilled()})}}])}(Ii)})),Gi=__esmMin((()=>{zr(),Fi(),zi(),Hi(),Wi()}));function _callSuper$249(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$249()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$249(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$249=function _isNativeReflectConstruct(){return!!r})()}var Ki,qi=__esmMin((()=>{b(),w(),E(),D(),A(),Fr(),__name(_callSuper$249,`_callSuper`),__name(_isNativeReflectConstruct$249,`_isNativeReflectConstruct`),Ki=function(r){function CreateColumnForEmptySection(){return _classCallCheck(this,CreateColumnForEmptySection),_callSuper$249(this,CreateColumnForEmptySection,arguments)}return _inherits(CreateColumnForEmptySection,r),_createClass(CreateColumnForEmptySection,[{key:`getCommand`,value:function getCommand(){return`document/elements/delete`}},{key:`getId`,value:function getId(){return`create-column-for-empty-section--document/elements/delete`}},{key:`getContainerType`,value:function getContainerType(){return`column`}},{key:`getConditions`,value:function getConditions(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return r.parent.type===`section`&&r.parent.children.length===0})}},{key:`apply`,value:function apply(r,c){Array.isArray(c)||(c=[c]),c.forEach(function(r){var c=r.parent;c.children.length===0&&$e.run(`document/elements/create`,{container:c,model:{elType:`column`}})})}}])}(Pr)}));function _callSuper$248(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$248()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$248(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$248=function _isNativeReflectConstruct(){return!!r})()}var Ji,Yi=__esmMin((()=>{b(),w(),E(),D(),A(),Lr(),__name(_callSuper$248,`_callSuper`),__name(_isNativeReflectConstruct$248,`_isNativeReflectConstruct`),Ji=function(r){function DeleteColumnColumnsResetLayout(){return _classCallCheck(this,DeleteColumnColumnsResetLayout),_callSuper$248(this,DeleteColumnColumnsResetLayout,arguments)}return _inherits(DeleteColumnColumnsResetLayout,r),_createClass(DeleteColumnColumnsResetLayout,[{key:`getCommand`,value:function getCommand(){return`document/elements/delete`}},{key:`getId`,value:function getId(){return`section-columns-reset-layout--document/elements/delete`}},{key:`getContainerType`,value:function getContainerType(){return`column`}}])}(Ir)})),Xi=__esmMin((()=>{qi(),Yi()}));function _callSuper$247(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$247()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$247(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$247=function _isNativeReflectConstruct(){return!!r})()}var Zi,Qi=__esmMin((()=>{b(),w(),E(),D(),A(),Fr(),__name(_callSuper$247,`_callSuper`),__name(_isNativeReflectConstruct$247,`_isNativeReflectConstruct`),Zi=function(r){function SectionColumnsSetStructure(){return _classCallCheck(this,SectionColumnsSetStructure),_callSuper$247(this,SectionColumnsSetStructure,arguments)}return _inherits(SectionColumnsSetStructure,r),_createClass(SectionColumnsSetStructure,[{key:`getCommand`,value:function getCommand(){return`document/elements/move`}},{key:`getId`,value:function getId(){return`section-columns-set-structure`}},{key:`getContainerType`,value:function getContainerType(){return`column`}},{key:`getConditions`,value:function getConditions(r){var c=r.containers,l=c===void 0?[r.container]:c,u=r.target;return l.some(function(r){return r.parent!==u})}},{key:`apply`,value:function apply(r){var c=r.containers,l=c===void 0?[r.container]:c,u=r.target;return l.forEach(function(r){return r.parent.view.resetLayout()}),u.view.resetLayout(),!0}}])}(Pr)})),$i=__esmMin((()=>{Qi()}));function _callSuper$246(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$246()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$246(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$246=function _isNativeReflectConstruct(){return!!r})()}var ea,ta=__esmMin((()=>{b(),w(),E(),D(),A(),Li(),__name(_callSuper$246,`_callSuper`),__name(_isNativeReflectConstruct$246,`_isNativeReflectConstruct`),ea=function(r){function IsPasteEnabled(){return _classCallCheck(this,IsPasteEnabled),_callSuper$246(this,IsPasteEnabled,arguments)}return _inherits(IsPasteEnabled,r),_createClass(IsPasteEnabled,[{key:`getCommand`,value:function getCommand(){return`document/elements/paste`}},{key:`getId`,value:function getId(){return`is-paste-enabled`}},{key:`getConditions`,value:function getConditions(r){return!r.rebuild}},{key:`apply`,value:function apply(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return $e.components.get(`document/elements`).utils.isPasteEnabled(r)})}}])}(Ii)})),na=__esmMin((()=>{ta()}));function _callSuper$245(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$245()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$245(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$245=function _isNativeReflectConstruct(){return!!r})()}var ra,ia=__esmMin((()=>{P(),b(),w(),E(),D(),A(),Fr(),__name(_callSuper$245,`_callSuper`),__name(_isNativeReflectConstruct$245,`_isNativeReflectConstruct`),ra=function(r){function HandleDynamic(){return _classCallCheck(this,HandleDynamic),_callSuper$245(this,HandleDynamic,arguments)}return _inherits(HandleDynamic,r),_createClass(HandleDynamic,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`handle-dynamic`}},{key:`getContainerType`,value:function getContainerType(){return`dynamic`}},{key:`getConditions`,value:function getConditions(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return r.type===`dynamic`})}},{key:`apply`,value:function apply(r){var c=r.containers;return(c===void 0?[r.container]:c).forEach(function(r){if(r.type===`dynamic`){var c=elementor.dynamicTags.tagContainerToTagText(r),l={container:r.parent,settings:_defineProperty({},r.view.options.controlName,c)};$e.run(`document/dynamic/settings`,l)}}),!0}}])}(Pr)}));function _callSuper$244(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$244()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$244(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$244=function _isNativeReflectConstruct(){return!!r})()}var aa,oa=__esmMin((()=>{b(),w(),E(),D(),A(),Fr(),__name(_callSuper$244,`_callSuper`),__name(_isNativeReflectConstruct$244,`_isNativeReflectConstruct`),aa=function(r){function ResizeColumn(){return _classCallCheck(this,ResizeColumn),_callSuper$244(this,ResizeColumn,arguments)}return _inherits(ResizeColumn,r),_createClass(ResizeColumn,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`resize-column`}},{key:`getContainerType`,value:function getContainerType(){return`column`}},{key:`getConditions`,value:function getConditions(r){return r.settings._inline_size}},{key:`apply`,value:function apply(r){var c=this,l=r.containers;return(l===void 0?[r.container]:l).forEach(function(l){c.resizeColumn(l,r.settings._inline_size)}),!0}},{key:`resizeColumn`,value:function resizeColumn(r,c){var l=r.parent.view.getNeighborContainer(r);if(!l)return!1;var u=r.parent.view,p=r.view,m=null;if(r.oldValues===void 0||r.oldValues._inline_size===null)m=r.settings.get(`_column_size`);else{var h=u.$el.find(` > .elementor-container`)[0].getBoundingClientRect().width;m=+(r.oldValues._inline_size||p.el.getBoundingClientRect().width/h*100)}var g=l.view,v=g.$el,y=+g.model.getSetting(`_inline_size`)||r.parent.view.getColumnPercentSize(v,v[0].getBoundingClientRect().width),b=+(m+y-c).toFixed(3);return $e.run(`document/elements/settings`,{containers:[l],settings:{_inline_size:b},options:{callbacks:{"resize-column-limit":!1},history:{title:elementor.config.elements.column.controls._inline_size.label},external:!0,debounce:!0}}),!0}}])}(Pr)}));function _callSuper$243(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$243()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$243(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$243=function _isNativeReflectConstruct(){return!!r})()}var sa,ca,la=__esmMin((()=>{b(),w(),E(),D(),A(),Li(),sa=__toESM(Kn()),__name(_callSuper$243,`_callSuper`),__name(_isNativeReflectConstruct$243,`_isNativeReflectConstruct`),ca=function(r){function ResizeColumnLimit(){return _classCallCheck(this,ResizeColumnLimit),_callSuper$243(this,ResizeColumnLimit,arguments)}return _inherits(ResizeColumnLimit,r),_createClass(ResizeColumnLimit,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`resize-column-limit`}},{key:`getContainerType`,value:function getContainerType(){return`column`}},{key:`getConditions`,value:function getConditions(r){return r.settings._inline_size}},{key:`apply`,value:function apply(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(c){var l=c.parent.view,u=c.view,p=c.settings.get(`_inline_size`)||c.settings.get(`_column_size`),m=r.settings._inline_size,h=l.getNextColumn(u)||l.getPreviousColumn(u);if(!h)return $e.devTools&&$e.devTools.log.error(`There is not any next column`),!1;var g=h.$el;return+(p+(+h.model.getSetting(`_inline_size`)||l.getColumnPercentSize(g,g[0].getBoundingClientRect().width))-m).toFixed(3)<sa.DEFAULT_INNER_SECTION_COLUMNS?($e.devTools&&$e.devTools.log.error(`New column width is too large`),!1):m<sa.DEFAULT_INNER_SECTION_COLUMNS?($e.devTools&&$e.devTools.log.error(`New column width is too small`),!1):!0})}}])}(Ii)}));function _callSuper$242(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$242()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$242(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$242=function _isNativeReflectConstruct(){return!!r})()}var ua,da=__esmMin((()=>{b(),w(),E(),D(),A(),Fr(),__name(_callSuper$242,`_callSuper`),__name(_isNativeReflectConstruct$242,`_isNativeReflectConstruct`),ua=function(r){function SetStructure(){return _classCallCheck(this,SetStructure),_callSuper$242(this,SetStructure,arguments)}return _inherits(SetStructure,r),_createClass(SetStructure,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`set-structure`}},{key:`getContainerType`,value:function getContainerType(){return`section`}},{key:`getConditions`,value:function getConditions(r){return!!r.settings.structure}},{key:`apply`,value:function apply(r){var c=r.containers;return(c===void 0?[r.container]:c).forEach(function(r){r.view.adjustColumns()}),!0}}])}(Pr)})),fa=__esmMin((()=>{ia(),oa(),la(),da()})),pa=__esmMin((()=>{Gi(),Xi(),$i(),na(),fa()}));function _callSuper$241(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$241()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$241(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$241=function _isNativeReflectConstruct(){return!!r})()}var ma,ha=__esmMin((()=>{b(),w(),E(),D(),A(),jr(),__name(_callSuper$241,`_callSuper`),__name(_isNativeReflectConstruct$241,`_isNativeReflectConstruct`),ma=function(r){function Base(){return _classCallCheck(this,Base),_callSuper$241(this,Base,arguments)}return _inherits(Base,r),_createClass(Base,[{key:`getType`,value:function getType(){return`ui`}}])}(Ar)}));function _callSuper$240(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$240()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$240(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$240=function _isNativeReflectConstruct(){return!!r})()}var K,q=__esmMin((()=>{b(),w(),E(),D(),A(),ha(),__name(_callSuper$240,`_callSuper`),__name(_isNativeReflectConstruct$240,`_isNativeReflectConstruct`),K=function(r){function After(){return _classCallCheck(this,After),_callSuper$240(this,After,arguments)}return _inherits(After,r),_createClass(After,[{key:`register`,value:function register(){$e.hooks.registerUIAfter(this)}}])}(ma)}));function _callSuper$239(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$239()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$239(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$239=function _isNativeReflectConstruct(){return!!r})()}var ga,_a=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$239,`_callSuper`),__name(_isNativeReflectConstruct$239,`_isNativeReflectConstruct`),ga=function(r){function ColumnIsPopulated(){return _classCallCheck(this,ColumnIsPopulated),_callSuper$239(this,ColumnIsPopulated,arguments)}return _inherits(ColumnIsPopulated,r),_createClass(ColumnIsPopulated,[{key:`getCommand`,value:function getCommand(){return`document/elements/create`}},{key:`getId`,value:function getId(){return`column-is-populated`}},{key:`getConditions`,value:function getConditions(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return r.model.get(`elType`)===`column`})}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){r.model.get(`elType`)===`column`&&r.view.changeChildContainerClasses()})}}])}(K)}));function _callSuper$238(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$238()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$238(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$238=function _isNativeReflectConstruct(){return!!r})()}var va,ya=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$238,`_callSuper`),__name(_isNativeReflectConstruct$238,`_isNativeReflectConstruct`),va=function(r){function CreateSectionIsFull(){return _classCallCheck(this,CreateSectionIsFull),_callSuper$238(this,CreateSectionIsFull,arguments)}return _inherits(CreateSectionIsFull,r),_createClass(CreateSectionIsFull,[{key:`getCommand`,value:function getCommand(){return`document/elements/create`}},{key:`getId`,value:function getId(){return`create-section-is-full`}},{key:`getConditions`,value:function getConditions(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return r.model.get(`elType`)===`section`})}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){r.model.get(`elType`)===`section`&&r.view.toggleSectionIsFull()})}}])}(K)})),ba=__esmMin((()=>{_a(),ya()}));function _callSuper$237(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$237()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$237(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$237=function _isNativeReflectConstruct(){return!!r})()}var xa,Sa=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$237,`_callSuper`),__name(_isNativeReflectConstruct$237,`_isNativeReflectConstruct`),xa=function(r){function ColumnIsEmpty(){return _classCallCheck(this,ColumnIsEmpty),_callSuper$237(this,ColumnIsEmpty,arguments)}return _inherits(ColumnIsEmpty,r),_createClass(ColumnIsEmpty,[{key:`getCommand`,value:function getCommand(){return`document/elements/delete`}},{key:`getId`,value:function getId(){return`column-is-empty`}},{key:`getConditions`,value:function getConditions(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return r.parent.model.get(`elType`)===`column`})}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){r.parent.model.get(`elType`)===`column`&&r.parent.view.changeChildContainerClasses()})}}])}(K)}));function _callSuper$236(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$236()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$236(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$236=function _isNativeReflectConstruct(){return!!r})()}var Ca,wa=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$236,`_callSuper`),__name(_isNativeReflectConstruct$236,`_isNativeReflectConstruct`),Ca=function(r){function DeleteSectionIsFull(){return _classCallCheck(this,DeleteSectionIsFull),_callSuper$236(this,DeleteSectionIsFull,arguments)}return _inherits(DeleteSectionIsFull,r),_createClass(DeleteSectionIsFull,[{key:`getCommand`,value:function getCommand(){return`document/elements/delete`}},{key:`getId`,value:function getId(){return`delete-section-is-full`}},{key:`getConditions`,value:function getConditions(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return r.model.get(`elType`)===`column`})}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){r.model.get(`elType`)===`column`&&r.parent.view.toggleSectionIsFull()})}}])}(K)})),Ta=__esmMin((()=>{Sa(),wa()}));function _callSuper$235(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$235()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$235(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$235=function _isNativeReflectConstruct(){return!!r})()}var Ea,Da=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$235,`_callSuper`),__name(_isNativeReflectConstruct$235,`_isNativeReflectConstruct`),Ea=function(r){function MoveResizeableHandle(){return _classCallCheck(this,MoveResizeableHandle),_callSuper$235(this,MoveResizeableHandle,arguments)}return _inherits(MoveResizeableHandle,r),_createClass(MoveResizeableHandle,[{key:`getCommand`,value:function getCommand(){return`document/elements/create`}},{key:`getId`,value:function getId(){return`move-resizeable-handle`}},{key:`getConditions`,value:function getConditions(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return r.model.get(`elType`)===`container`})}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){var c=r.view.$el,l=c.find(`> .ui-resizable-handle`).first();l&&c.append(l)})}}])}(K)})),Oa=__esmMin((()=>{Da()}));function _callSuper$234(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$234()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$234(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$234=function _isNativeReflectConstruct(){return!!r})()}var ka,Aa=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$234,`_callSuper`),__name(_isNativeReflectConstruct$234,`_isNativeReflectConstruct`),ka=function(r){function ChangePostTitle(){return _classCallCheck(this,ChangePostTitle),_callSuper$234(this,ChangePostTitle,arguments)}return _inherits(ChangePostTitle,r),_createClass(ChangePostTitle,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`change-post-title`}},{key:`getContainerType`,value:function getContainerType(){return`document`}},{key:`getConditions`,value:function getConditions(r){return r.settings.post_title!==void 0}},{key:`apply`,value:function apply(r){elementorFrontend.elements.$document.find(elementor.config.page_title_selector).text(r.settings.post_title)}}])}(K)}));function _callSuper$233(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$233()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$233(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$233=function _isNativeReflectConstruct(){return!!r})()}var ja,Ma=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$233,`_callSuper`),__name(_isNativeReflectConstruct$233,`_isNativeReflectConstruct`),ja=function(r){function ColumnChangeSize(){return _classCallCheck(this,ColumnChangeSize),_callSuper$233(this,ColumnChangeSize,arguments)}return _inherits(ColumnChangeSize,r),_createClass(ColumnChangeSize,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`column-change-size`}},{key:`getConditions`,value:function getConditions(r){return r.settings._inline_size!==void 0||r.settings._column_size!==void 0}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){r.view.changeSizeUI()})}}])}(K)}));function _callSuper$232(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$232()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$232(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$232=function _isNativeReflectConstruct(){return!!r})()}var Na,Pa=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$232,`_callSuper`),__name(_isNativeReflectConstruct$232,`_isNativeReflectConstruct`),Na=function(r){function Draggable(){return _classCallCheck(this,Draggable),_callSuper$232(this,Draggable,arguments)}return _inherits(Draggable,r),_createClass(Draggable,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`draggable`}},{key:`getConditions`,value:function getConditions(r){return r.settings._position!==void 0}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){r.view.options.draggable&&r.view.options.draggable.toggle()})}}])}(K)}));function _callSuper$231(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$231()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$231(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$231=function _isNativeReflectConstruct(){return!!r})()}var Fa,Ia=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$231,`_callSuper`),__name(_isNativeReflectConstruct$231,`_isNativeReflectConstruct`),Fa=function(r){function ExitTo(){return _classCallCheck(this,ExitTo),_callSuper$231(this,ExitTo,arguments)}return _inherits(ExitTo,r),_createClass(ExitTo,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`exit-to`}},{key:`getContainerType`,value:function getContainerType(){return`editorPreferences_settings`}},{key:`getConditions`,value:function getConditions(r){return r.settings.exit_to!==void 0}},{key:`apply`,value:function apply(){elementor.getPanelView().getPages(`menu`).view.addExitItem()}}])}(K)}));function _callSuper$230(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$230()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$230(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$230=function _isNativeReflectConstruct(){return!!r})()}var La,Ra=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$230,`_callSuper`),__name(_isNativeReflectConstruct$230,`_isNativeReflectConstruct`),La=function(r){function Resizeable(){return _classCallCheck(this,Resizeable),_callSuper$230(this,Resizeable,arguments)}return _inherits(Resizeable,r),_createClass(Resizeable,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`resizeable`}},{key:`getConditions`,value:function getConditions(r){return r.settings._position!==void 0||r.settings._element_width!==void 0}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){r.view.options.resizeable&&r.view.options.resizeable.toggle()})}}])}(K)}));function _callSuper$229(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$229()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$229(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$229=function _isNativeReflectConstruct(){return!!r})()}var za,Ba=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$229,`_callSuper`),__name(_isNativeReflectConstruct$229,`_isNativeReflectConstruct`),za=function(r){function ReloadPreview(){return _classCallCheck(this,ReloadPreview),_callSuper$229(this,ReloadPreview,arguments)}return _inherits(ReloadPreview,r),_createClass(ReloadPreview,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`save-layout`}},{key:`getContainerType`,value:function getContainerType(){return`document`}},{key:`getConditions`,value:function getConditions(r){return!!r.settings.template}},{key:`apply`,value:function apply(){return $e.run(`document/save/auto`,{force:!0}).then(function(){elementor.reloadPreview(),elementor.once(`preview:loaded`,function(){$e.route(`panel/page-settings/settings`)})})}}])}(K)}));function _callSuper$228(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$228()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$228(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$228=function _isNativeReflectConstruct(){return!!r})()}var Va,Ha=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$228,`_callSuper`),__name(_isNativeReflectConstruct$228,`_isNativeReflectConstruct`),Va=function(r){function SetDirectionMode(){return _classCallCheck(this,SetDirectionMode),_callSuper$228(this,SetDirectionMode,arguments)}return _inherits(SetDirectionMode,r),_createClass(SetDirectionMode,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`set-direction-mode--document/elements/settings`}},{key:`hasUiStates`,value:function hasUiStates(r){var c;return!!((c=r.renderer)!=null&&(c=c.view)!=null&&c.getCurrentUiStates)}},{key:`getConditions`,value:function getConditions(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(r.container?[r.container]:r.containers).some(this.hasUiStates)}},{key:`apply`,value:function apply(r){(r.container?[r.container]:r.containers).filter(this.hasUiStates).forEach(function(r){return SetDirectionMode.set(r)})}}],[{key:`set`,value:function set(r){var c;r=$e.routes.getCurrent(`panel`)===`panel/editor/advanced`?r.parent:r;var l=r.renderer.view,u=(c=l.getCurrentUiStates)==null?void 0:c.call(l).directionMode;if(u){$e.uiStates.set(`document/direction-mode`,u);return}$e.uiStates.remove(`document/direction-mode`)}}])}(K)})),Ua=__esmMin((()=>{Aa(),Ma(),Pa(),Ia(),Ra(),Ba(),Ha()})),Wa=__esmMin((()=>{ba(),Ta(),Oa(),Ua()})),Ga=__exportAll({ChangePostTitle:()=>ka,ColumnChangeSize:()=>ja,ColumnIsEmpty:()=>xa,ColumnIsPopulated:()=>ga,CreateColumnForEmptySection:()=>Ki,CreateSectionColumnsResetLayout:()=>Rr,CreateSectionIsFull:()=>va,DeleteColumnColumnsResetLayout:()=>Ji,DeleteSectionIsFull:()=>Ca,Draggable:()=>Na,ExitTo:()=>Fa,HandleDynamic:()=>ra,InnerSectionColumns:()=>Pi,IsPasteEnabled:()=>ea,IsValidChild:()=>Ri,MoveResizeableHandle:()=>Ea,ReloadPreview:()=>za,ResizeColumn:()=>aa,ResizeColumnLimit:()=>ca,Resizeable:()=>La,SectionColumns:()=>Vi,SectionColumnsLimit:()=>Ui,SectionColumnsSetStructure:()=>Zi,SetDirectionMode:()=>Va,SetStructure:()=>ua}),Ka=__esmMin((()=>{pa(),Wa()}));function isWidgetSupportNesting(r){var c=elementor.widgetsCache[r];return c?c.support_nesting:!1}function isWidgetSupportAtomicRepeaters(r){var c=elementor.widgetsCache[r];return c?c.support_improved_repeaters:!1}function widgetNodes(r){var c=elementor.widgetsCache[r];return c?{targetContainer:c.target_container,node:c.node}:!1}function shouldUseAtomicRepeaters(r){return isWidgetSupportNesting(r)&&isWidgetSupportAtomicRepeaters(r)}var qa=__esmMin((()=>{})),Ja=__commonJSMin(((c,l)=>{P(),ge(),In(),lr(),En(),kr(),Ka(),qa();var u=Bn(),p=Wn();l.exports=p.extend({template:Marionette.TemplateCache.get(`#tmpl-elementor-container-content`),emptyView:Or,destroyEmptyView:function destroyEmptyView(){if(this.isFlexContainer())return Marionette.CompositeView.prototype.destroyEmptyView.apply(this,arguments)},getChildViewContainer:function getChildViewContainer(){return this.childViewContainer=this.isBoxedWidth()?`> .e-con-inner`:``,Marionette.CompositeView.prototype.getChildViewContainer.apply(this,arguments)},getChildType:function getChildType(){var r=(0,u.getAllElementTypes)().filter(function(r){return r!==`section`&&r!==`column`});return[].concat(_toConsumableArray(r),[`widget`])},className:function className(){var r=this.model.get(`isInner`)?`e-child`:`e-parent`;return`${p.prototype.className.apply(this)} e-con ${r}`},filterSettings:function filterSettings(r){if((0,u.getAllElementTypes)().includes(r.elType)){var c=this;(c.isBoxedWidth()||c.getNestingLevel()!==0)&&(r.settings.content_width=`full`)}},childViewOptions:function childViewOptions(){return{emptyViewOwner:this}},tagName:function tagName(){return this.model.getSetting(`html_tag`)||`div`},ui:function ui(){var r=p.prototype.ui.apply(this,arguments);return r.percentsTooltip=`> .elementor-element-overlay .elementor-column-percents-tooltip`,r},getCurrentUiStates:function getCurrentUiStates(){var r=elementor.channels.deviceMode.request(`currentMode`),c=r===`desktop`?``:`_`+r,l=this.getDirectionSettingKey()+c;return{directionMode:this.container.settings.get(l)||G.DIRECTION_DEFAULT}},onDeviceModeChange:function onDeviceModeChange(){Va.set(this.getContainer())},getDirectionSettingKey:function getDirectionSettingKey(){return this.container.settings.get(`container_type`)===`grid`?`grid_auto_flow`:`flex_direction`},behaviors:function behaviors(){var r=p.prototype.behaviors.apply(this,arguments);return _.extend(r,{Sortable:{behaviorClass:Gn(),elChildType:`widget`},Resizable:{behaviorClass:cr}}),elementor.hooks.applyFilters(`elements/container/behaviors`,r,this)},initialize:function initialize(){p.prototype.initialize.apply(this,arguments),this.model.get(`editSettings`).set(`defaultEditRoute`,`layout`),this.onDeviceModeChange=this.onDeviceModeChange.bind(this),elementor.listenTo(elementor.channels.deviceMode,`change`,this.onDeviceModeChange)},onDestroy:function onDestroy(){p.prototype.onDestroy.apply(this,arguments),elementor.stopListening(elementor.channels.deviceMode,`change`,this.onDeviceModeChange)},getSortableOptions:function getSortableOptions(){return{preventInit:!0}},getNestingLevel:function getNestingLevel(){if(this.nestingLevel)return this.nestingLevel;var r=this.container.parent;return r.type===`container`?r.view.getNestingLevel()+1:0},isNestedElementContentContainer:function isNestedElementContentContainer(){var r=this.container.parent.model.get(`widgetType`);return r&&r.trim()!==``&&isWidgetSupportNesting(r)},getDroppableAxis:function getDroppableAxis(){var r=G.DIRECTION_DEFAULT===G.DIRECTION_COLUMN,c=this.getContainer().settings.get(this.getDirectionSettingKey());return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},G.DIRECTION_COLUMN,`vertical`),G.DIRECTION_COLUMN_REVERSED,`vertical`),G.DIRECTION_ROW,`horizontal`),G.DIRECTION_ROW_REVERSED,`horizontal`),``,r?`vertical`:`horizontal`)[c]},getDroppableOptions:function getDroppableOptions(){var r=this,c=this.isBoxedWidth()?`> .elementor-widget, > .e-con-full, > .e-con > .e-con-inner, > .elementor-empty-view > .elementor-first-add`:`> .elementor-element, > .elementor-empty-view .elementor-first-add`;return{axis:this.getDroppableAxis(),items:c,groups:[`elementor-element`],horizontalThreshold:5,isDroppingAllowed:this.isDroppingAllowed.bind(this),currentElementClass:`elementor-html5dnd-current-element`,placeholderClass:`elementor-sortable-placeholder elementor-widget-placeholder`,hasDraggingOnChildClass:`e-dragging-over`,getDropContainer:function getDropContainer(){return r.getContainer()},onDropping:function onDropping(c,l){l.stopPropagation(),elementor.getPreviewView().onPanelElementDragEnd();var u=elementor.channels.editor.request(`element:dragged`),p=(u==null?void 0:u.parent)===r,m=jQuery(l.currentTarget).hasClass(`e-con-inner`),h=m?l.currentTarget.parentElement.parentElement:l.currentTarget.parentElement,g=jQuery(h).find(`> .elementor-element`);p&&(g=g.not(u.$el));var v=Object.values(g),y=m?v.indexOf(l.currentTarget.parentElement):v.indexOf(l.currentTarget);if(r.shouldIncrementIndex(c)&&y++,u){for(var b=u.getContainer().id,x=r.container;x;){if(x.id===b)return;x=x.parent}elementor.channels.editor.reply(`element:dragged`,null),$e.run(`document/elements/move`,{container:u.getContainer(),target:r.getContainer(),options:{at:y}});return}r.onDrop(l,{at:y})}}},saveAsTemplate:function saveAsTemplate(){elementor.templates.eventManager.sendNewSaveTemplateClickedEvent(),$e.route(`library/save-template`,{model:this.model})},addNewContainer:function addNewContainer(){var r=this.getContainer().getParentAncestry()[1].type===`container`?this.getContainer().parent:this.getContainer();$e.run(`document/elements/create`,{model:{elType:`container`,settings:{content_width:`full`}},container:r})},getContextMenuGroups:function getContextMenuGroups(){var c=this,l=p.prototype.getContextMenuGroups.apply(this,arguments),u=l.indexOf(_.findWhere(l,{name:`clipboard`})),m=l.indexOf(_.findWhere(l,{name:`general`}));return l.splice(u+1,0,{name:`save`,actions:[{name:`save`,title:(0,r.__)(`Save as a template`,`elementor`),shortcut:`<span class="elementor-context-menu-list__item__shortcut__new-badge">${(0,r.__)(`New`,`elementor`)}</span>`,callback:this.saveAsTemplate.bind(this),isEnabled:function isEnabled(){return!c.getContainer().isLocked()}}]}),l.splice(m+1,0,{name:`newContainerGroup`,actions:[{name:`newContainer`,icon:`eicon-plus`,title:(0,r.__)(`Add New Container`,`elementor`),callback:this.addNewContainer.bind(this)}]}),l},isDroppingAllowed:function isDroppingAllowed(){if(!this.getContainer().isEditable())return!1;var r=elementor.channels.panelElements.request(`element:selected`)||elementor.channels.editor.request(`element:dragged`);return r?[].concat(_toConsumableArray((0,u.getAllElementTypes)()),[`widget`]).includes(r.model.get(`elType`)):!1},isNested:function isNested(){return this.getContainer().parent.model.get(`elType`)!==`document`},getEditButtons:function getEditButtons(){var c=elementor.getElementData(this.model),l={};return $e.components.get(`document/elements`).utils.allowAddingWidgets()&&(l.add={title:(0,r.sprintf)((0,r.__)(`Add %s`,`elementor`),c.title),icon:`plus`},l.edit={title:(0,r.sprintf)((0,r.__)(`Edit %s`,`elementor`),c.title),icon:`handle`}),this.getContainer().isLocked()||(elementor.getPreferences(`edit_buttons`)&&$e.components.get(`document/elements`).utils.allowAddingWidgets()&&(l.duplicate={title:(0,r.sprintf)((0,r.__)(`Duplicate %s`,`elementor`),c.title),icon:`clone`}),l.remove={title:(0,r.sprintf)((0,r.__)(`Delete %s`,`elementor`),c.title),icon:`close`}),l},onAddButtonClick:function onAddButtonClick(){if(this.addSectionView&&!this.addSectionView.isDestroyed){this.addSectionView.fadeToDeath();return}var r=new Fn({at:this.model.collection.indexOf(this.model)});r.render(),this.$el.before(r.$el),r.$el.hide(),setTimeout(function(){r.$el.slideDown(null,function(){jQuery(this).css(`display`,``)})}),this.addSectionView=r},onRender:function onRender(){var r=this;p.prototype.onRender.apply(this,arguments),setTimeout(function(){r.nestingLevel=r.getNestingLevel(),r.$el[0].dataset.nestingLevel=r.nestingLevel,r.model.get(`isInner`)||r.model.set(`isInner`,r.isNestedElementContentContainer()||r.getNestingLevel()>0),r.isGridContainer()&&r.reInitEmptyView(),r.droppableInitialize(r.container.settings)})},onRenderEmpty:function onRenderEmpty(){this.$el.addClass(`e-empty`)},onAddChild:function onAddChild(){this.$el.removeClass(`e-empty`),this.isGridContainer()&&this.handleGridEmptyView()},renderOnChange:function renderOnChange(r){p.prototype.renderOnChange.apply(this,arguments),(r.changed.flex_direction||r.changed.content_width||r.changed.grid_auto_flow||r.changed.container_type)&&(this.isGridContainer()&&this.reInitEmptyView(),this.isFlexContainer()&&!this.isEmpty()&&this.getCorrectContainerElement().find(`> .elementor-empty-view`).remove(),this.droppableDestroy(),this.droppableInitialize(r)),r.changed.container_type&&this.updatePanelTitlesAndIcons()},updatePanelTitlesAndIcons:function updatePanelTitlesAndIcons(){var c=this.getPanelTitle(),l=this.getPanelIcon();this.model.set(`icon`,l),this.model.set(`title`,c),this.model.get(`settings`).set(`presetTitle`,c),this.model.get(`settings`).set(`presetIcon`,l),jQuery(`#elementor-panel-header-title`).html((0,r.sprintf)((0,r.__)(`Edit %s`,`elementor`),c)),this.updateNeedHelpLink()},getPanelTitle:function getPanelTitle(){return this.isFlexContainer()?(0,r.__)(`Container`,`elementor`):(0,r.__)(`Grid`,`elementor`)},getPanelIcon:function getPanelIcon(){return this.isFlexContainer()?`eicon-container`:`eicon-container-grid`},onDragStart:function onDragStart(){this.droppableDestroy()},onDragEnd:function onDragEnd(){this.droppableInitialize(this.container.settings)},attachElContent:function attachElContent(){p.prototype.attachElContent.apply(this,arguments);var r=jQuery(`<div>`,{class:`elementor-column-percents-tooltip`,"data-side":elementorCommon.config.isRTL?`right`:`left`});this.$el.children(`.elementor-element-overlay`).append(r)},getPercentSize:function getPercentSize(r){return r||(r=this.el.getBoundingClientRect().width),+(r/this.$el.parent().width()*100).toFixed(3)},getPercentsForDisplay:function getPercentsForDisplay(){return(+this.model.getSetting(`width`)||this.getPercentSize()).toFixed(1)+`%`},onResizeStart:function onResizeStart(){this.ui.percentsTooltip&&this.ui.percentsTooltip.show()},onResize:function onResize(){this.ui.percentsTooltip&&this.ui.percentsTooltip.text(this.getPercentsForDisplay())},onResizeStop:function onResizeStop(){this.ui.percentsTooltip&&this.ui.percentsTooltip.hide()},droppableDestroy:function droppableDestroy(){this.$el.html5Droppable(`destroy`),this.$el.find(`> .e-con-inner`).html5Droppable(`destroy`)},droppableInitialize:function droppableInitialize(r){r.get(`content_width`)===`boxed`?this.$el.find(`> .e-con-inner`).html5Droppable(this.getDroppableOptions()):this.$el.html5Droppable(this.getDroppableOptions())},handleGridEmptyView:function handleGridEmptyView(){var r=this.getCorrectContainerElement(),c=r.find(`> .elementor-empty-view`);this.moveElementToLastChild(r,c)},moveElementToLastChild:function moveElementToLastChild(r,c){var l=r.get(0),u=c.get(0);!l||!u||l.lastChild!==u&&l.appendChild(u)},getCorrectContainerElement:function getCorrectContainerElement(){return this.isBoxedWidth()?this.$el.find(`> .e-con-inner`):this.$el},shouldIncrementIndex:function shouldIncrementIndex(r){return this.draggingOnBottomOrRightSide(r)?!(this.isGridContainer()&&this.emptyViewIsCurrentlyBeingDraggedOver()):!1},draggingOnBottomOrRightSide:function draggingOnBottomOrRightSide(r){return[`bottom`,`right`].includes(r)},isGridContainer:function isGridContainer(){return this.getContainer().settings.get(`container_type`)===`grid`},isFlexContainer:function isFlexContainer(){return this.getContainer().settings.get(`container_type`)===`flex`},isBoxedWidth:function isBoxedWidth(){return this.getContainer().settings.get(`content_width`)===`boxed`},emptyViewIsCurrentlyBeingDraggedOver:function emptyViewIsCurrentlyBeingDraggedOver(){return this.getCorrectContainerElement().find(`> .elementor-empty-view > .elementor-first-add.elementor-html5dnd-current-element`).length>0},reInitEmptyView:function reInitEmptyView(){this.getCorrectContainerElement().find(`> .elementor-empty-view`).length||(delete this._showingEmptyView,this.showEmptyView(),this.handleGridEmptyView())},updateNeedHelpLink:function updateNeedHelpLink(){var r=jQuery(`#elementor-panel__editor__help__link`),c=this.isGridContainer()?`https://go.elementor.com/widget-container-grid`:`https://go.elementor.com/widget-container`;r&&r.attr(`href`,c)}})})),Ya=__exportAll({default:()=>Za});function _callSuper$227(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$227()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$227(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$227=function _isNativeReflectConstruct(){return!!r})()}var Xa,Za,Qa=__esmMin((()=>{b(),w(),E(),D(),A(),Jt(),br(),Cr(),Xa=__toESM(Ja()),__name(_callSuper$227,`_callSuper`),__name(_isNativeReflectConstruct$227,`_isNativeReflectConstruct`),Za=function(r){function Container(){return _classCallCheck(this,Container),_callSuper$227(this,Container,arguments)}return _inherits(Container,r),_createClass(Container,[{key:`getType`,value:function getType(){return`container`}},{key:`getView`,value:function getView(){return Xa.default}},{key:`getEmptyView`,value:function getEmptyView(){return EmptyComponent}},{key:`getModel`,value:function getModel(){return Sr}}])}(qt)}));b(),w(),P(),Jt();var $a=function(){function ElementsManager(){_classCallCheck(this,ElementsManager),_defineProperty(this,`elementTypes`,{}),this.registerElements()}return _createClass(ElementsManager,[{key:`getElementTypeClass`,value:function getElementTypeClass(r){var c=this.elementTypes[r];return!c&&elementor.widgetsCache[r]&&(c=this.elementTypes.widget),c}},{key:`registerElementType`,value:function registerElementType(r){if(!(r instanceof qt))throw TypeError(`The element argument must be an instance of ElementBase.`);var c=r.getType();if(this.elementTypes[c])throw Error(`Element type already registered`);this.elementTypes[c]=r}},{key:`registerElements`,value:function registerElements(){var r=this;if(Object.values(hr).forEach(function(c){var l=new c;r.registerElementType(l)}),elementorCommon.config.experimentalFeatures.container){var c=(Qa(),__toCommonJS(Ya)).default;this.registerElementType(new c)}}}])}();b(),w(),P();var eo=function(){function GlobalColorIntroduction(r){_classCallCheck(this,GlobalColorIntroduction),_defineProperty(this,`introductionKey`,void 0),this.introductionKey=r}return _createClass(GlobalColorIntroduction,[{key:`bindEvent`,value:function bindEvent(){var r=this;$e.routes.on(`run:after`,function(c,l,u){var p;if($e.routes.isPartOf(`panel/editor`)){var m=r.getControlView(u.activeControl);(m==null||(p=m.model)==null||(p=p.attributes)==null?void 0:p.type)===`color`&&(r.tooltip.show(m.el),r.tooltip.setViewed())}})}},{key:`getControlView`,value:function getControlView(r){if(!r)return null;var c=elementor.getPanelView().getCurrentPageView(),l=c.content?c.content.currentView:c;return $e.components.get(`panel`).getControlViewByPath(l,r)}},{key:`initTooltip`,value:function initTooltip(){var c=this;this.tooltip=new elementorModules.editor.utils.Introduction({introductionKey:this.introductionKey,dialogType:`tooltip`,dialogOptions:{headerMessage:(0,r.__)(`Check out Global Colors`,`elementor`),message:(0,r.sprintf)((0,r.__)(`Save time by applying Global Colors to change the style of multiple elements at once. Click %s to see what Global Colors you already have.`,`elementor`),`<i class='eicon-globe'></i>`),position:{my:(elementorCommon.config.isRTL?`left`:`right`)+`0 top0`,at:(elementorCommon.config.isRTL?`left`:`right`)+` top-10`},hide:{onOutsideClick:!1,onBackgroundClick:!1,onEscKeyPress:!1}}}),this.tooltip.getDialog().addButton({name:`action`,text:(0,r.__)(`Got it!`,`elementor`),classes:`elementor-button e-primary`,callback:function callback(){return c.tooltip.getDialog().hide()}})}}])}();b(),w(),P();var no=function(){function GlobalFontIntroduction(r){_classCallCheck(this,GlobalFontIntroduction),_defineProperty(this,`introductionKey`,void 0),this.introductionKey=r}return _createClass(GlobalFontIntroduction,[{key:`bindEvent`,value:function bindEvent(){var r=this;$e.routes.on(`run:after`,function(c,l,u){var p;if($e.routes.isPartOf(`panel/editor`)){var m=r.getControlView(u.activeControl);(m==null||(p=m.model)==null||(p=p.attributes)==null?void 0:p.type)===`popover_toggle`&&(r.tooltip.show(m.el),r.tooltip.setViewed())}})}},{key:`getControlView`,value:function getControlView(r){if(!r)return null;var c=elementor.getPanelView().getCurrentPageView(),l=c.content?c.content.currentView:c;return $e.components.get(`panel`).getControlViewByPath(l,r)}},{key:`initTooltip`,value:function initTooltip(){var c=this;this.tooltip=new elementorModules.editor.utils.Introduction({introductionKey:this.introductionKey,dialogType:`tooltip`,dialogOptions:{headerMessage:(0,r.__)(`Check out Global Fonts`,`elementor`),message:(0,r.sprintf)((0,r.__)(`Save time by applying Global Fonts to change the style of multiple elements at once. Click %s to see what Global Fonts you already have.`,`elementor`),`<i class='eicon-globe'></i>`),position:{my:(elementorCommon.config.isRTL?`left`:`right`)+`0 top0`,at:(elementorCommon.config.isRTL?`left`:`right`)+` top-10`},hide:{onOutsideClick:!1,onBackgroundClick:!1,onEscKeyPress:!1}}}),this.tooltip.getDialog().addButton({name:`action`,text:(0,r.__)(`Got it!`,`elementor`),classes:`elementor-button e-primary`,callback:function callback(){return c.tooltip.getDialog().hide()}})}}])}();b(),w();var ro=function(){function IntroductionTooltipsManager(){_classCallCheck(this,IntroductionTooltipsManager),this.registerTooltipWidget(),this.registerTooltips()}return _createClass(IntroductionTooltipsManager,[{key:`registerTooltipWidget`,value:function registerTooltipWidget(){DialogsManager.addWidgetType(`tooltip`,DialogsManager.getWidgetType(`buttons`).extend(`tooltip`,{buildWidget:function buildWidget(){var r=this;DialogsManager.getWidgetType(`buttons`).prototype.buildWidget.apply(this,arguments);var c=this.getElements();c.$title=jQuery(`<div>`,{class:`dialog-tooltip-widget__title`}),c.$closeButton=jQuery(`<i>`,{class:`eicon-close`}),c.$closeButton.on(`click`,function(){return r.hide()}),c.header.append(c.$title,c.$closeButton)}}))}},{key:`registerTooltips`,value:function registerTooltips(){[new eo(`globals_introduction`),new no(`globals_introduction`)].forEach(function(r){elementor.config.user.introduction[r.introductionKey]||(r.initTooltip(),r.bindEvent())})}}])}();b(),w(),E(),D(),A();function _callSuper$226(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$226()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$226,`_callSuper`);function _isNativeReflectConstruct$226(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$226=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$226,`_isNativeReflectConstruct`);var io=function(r){function CommandsBase(){return _classCallCheck(this,CommandsBase),_callSuper$226(this,CommandsBase,arguments)}return _inherits(CommandsBase,r),_createClass(CommandsBase,[{key:`validateArgs`,value:function validateArgs(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.requireArgumentType(`type`,`string`,r),this.requireArgumentType(`favorite`,`string`,r)}}])}($e.modules.CommandBase);b(),w(),E(),D(),A();function _callSuper$225(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$225()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$225,`_callSuper`);function _isNativeReflectConstruct$225(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$225=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$225,`_isNativeReflectConstruct`);var ao=function(r){function Create(){return _classCallCheck(this,Create),_callSuper$225(this,Create,arguments)}return _inherits(Create,r),_createClass(Create,[{key:`apply`,value:function apply(r){var c;return(c=this.component.manager.typeInstance(r.type))==null?void 0:c.create(r.favorite)}}])}(io);b(),w(),E(),D(),A();function _callSuper$224(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$224()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$224,`_callSuper`);function _isNativeReflectConstruct$224(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$224=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$224,`_isNativeReflectConstruct`);var oo=function(r){function Delete(){return _classCallCheck(this,Delete),_callSuper$224(this,Delete,arguments)}return _inherits(Delete,r),_createClass(Delete,[{key:`apply`,value:function apply(r){var c;return(c=this.component.manager.typeInstance(r.type))==null?void 0:c.delete(r.favorite)}}])}(io);b(),w(),E(),D(),A();function _callSuper$223(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$223()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$223,`_callSuper`);function _isNativeReflectConstruct$223(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$223=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$223,`_isNativeReflectConstruct`);var so=function(r){function Toggle(){return _classCallCheck(this,Toggle),_callSuper$223(this,Toggle,arguments)}return _inherits(Toggle,r),_createClass(Toggle,[{key:`apply`,value:function apply(r){var c;return(c=this.component.manager.typeInstance(r.type))==null?void 0:c.toggle(r.favorite)}}])}($e.modules.CommandBase),co=__exportAll({Create:()=>ao,Delete:()=>oo,Toggle:()=>so}),lo=__exportAll({Index:()=>uo});b(),w(),E(),D(),A();function _callSuper$222(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$222()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$222,`_callSuper`);function _isNativeReflectConstruct$222(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$222=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$222,`_isNativeReflectConstruct`);var uo=function(r){function Index(){return _classCallCheck(this,Index),_callSuper$222(this,Index,arguments)}return _inherits(Index,r),_createClass(Index,null,[{key:`getEndpointFormat`,value:function getEndpointFormat(){return`favorites/{type}`}}])}($e.modules.CommandData);b(),w(),E(),D(),A();function _callSuper$221(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$221()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$221,`_callSuper`);function _isNativeReflectConstruct$221(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$221=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$221,`_isNativeReflectConstruct`);var fo=function(r){function Component(){return _classCallCheck(this,Component),_callSuper$221(this,Component,arguments)}return _inherits(Component,r),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`favorites`}},{key:`defaultCommands`,value:function defaultCommands(){return this.importCommands(co)}},{key:`defaultData`,value:function defaultData(){return this.importCommands(lo)}}])}($e.modules.ComponentBase);b(),w();var po=function(){function FavoriteType(){_classCallCheck(this,FavoriteType)}return _createClass(FavoriteType,[{key:`getName`,value:function getName(){}},{key:`create`,value:function create(r){}},{key:`delete`,value:function _delete(r){}},{key:`toggle`,value:function toggle(r){}}])}();b(),w(),E(),D(),A();function _callSuper$220(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$220()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$220,`_callSuper`);function _isNativeReflectConstruct$220(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$220=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$220,`_isNativeReflectConstruct`);var mo=function(r){function PanelCategoryBehavior(){return _classCallCheck(this,PanelCategoryBehavior),_callSuper$220(this,PanelCategoryBehavior,arguments)}return _inherits(PanelCategoryBehavior,r),_createClass(PanelCategoryBehavior,[{key:`onRender`,value:function onRender(){this.isFavoritesCategory()&&(this.view.collection.length||this.$el.hide())}},{key:`isFavoritesCategory`,value:function isFavoritesCategory(){return this.view.options.model.get(`name`)===`favorites`}}])}(Marionette.Behavior);b(),w(),E(),D(),A();function _callSuper$219(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$219()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$219,`_callSuper`);function _isNativeReflectConstruct$219(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$219=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$219,`_isNativeReflectConstruct`);var ho=function(c){function Widgets(){var r;return _classCallCheck(this,Widgets),r=_callSuper$219(this,Widgets),elementor.hooks.addFilter(`panel/category/behaviors`,r.addCategoryBehavior.bind(r)),elementor.hooks.addFilter(`panel/element/contextMenuGroups`,r.addContextMenuGroups.bind(r)),r}return _inherits(Widgets,c),_createClass(Widgets,[{key:`getName`,value:function getName(){return`widgets`}},{key:`create`,value:function create(r){var c=this.getWidgetCache(r);if(c!==void 0){c.categories.push(this.getCategorySlug());var l=$e.data.create(`favorites/index`,{},{type:this.getName(),favorite:r});return this.refreshCategories(),l}return!1}},{key:`delete`,value:function _delete(r){var c=this.getWidgetCache(r);if(c!==void 0){c.categories.splice(c.categories.indexOf(this.getCategorySlug()),1);var l=$e.data.delete(`favorites/index`,{type:this.getName(),favorite:r});return this.refreshCategories(),l}return!1}},{key:`toggle`,value:function toggle(r){if(this.getWidgetCache(r)!==void 0){var c={type:this.getName(),favorite:r};return this.isFavorite(r)?$e.run(`favorites/delete`,c):$e.run(`favorites/create`,c)}return!1}},{key:`isFavorite`,value:function isFavorite(r){var c=this.getWidgetCache(r);return c!==void 0&&c.categories.includes(this.getCategorySlug())}},{key:`getCategorySlug`,value:function getCategorySlug(){return`favorites`}},{key:`addCategoryBehavior`,value:function addCategoryBehavior(r){return Object.assign({},r,{favoriteWidgets:{behaviorClass:mo}})}},{key:`addContextMenuGroups`,value:function addContextMenuGroups(c,l){var u=this,p=l.options.model.get(`widgetType`)||l.options.model.get(`elType`);return c.concat([{name:`favorite-toggle`,actions:[{name:`toggle`,icon:this.isFavorite(p)?`eicon-heart-o`:`eicon-heart`,title:this.isFavorite(p)?(0,r.__)(`Remove from Favorites`,`elementor`):(0,r.__)(`Add to Favorites`,`elementor`),callback:function callback(){u.toggle(p),u.isFavorite(p)&&elementor.notifications.showToast({message:(0,r.__)(`Added`,`elementor`)})}}]}])}},{key:`refreshCategories`,value:function refreshCategories(){var r=elementor.getPanelView().perfectScrollbar.element,c=r.scrollTop,l=r.scrollHeight;$e.route(`panel/elements/categories`,{refresh:!0,onAfter:function onAfter(){r.scrollTop=c+(r.scrollHeight-l)}})}},{key:`getWidgetCache`,value:function getWidgetCache(r){return elementor.widgetsCache[r]}}])}(po);b(),w(),E(),D(),A(),P();function _callSuper$218(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$218()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$218,`_callSuper`);function _isNativeReflectConstruct$218(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$218=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$218,`_isNativeReflectConstruct`);var go=function(r){function FavoritesModule(){var r;return _classCallCheck(this,FavoritesModule),r=_callSuper$218(this,FavoritesModule),_defineProperty(r,`types`,{}),[ho].forEach(function(c){return r.register(c)}),r}return _inherits(FavoritesModule,r),_createClass(FavoritesModule,[{key:`onElementorLoaded`,value:function onElementorLoaded(){this.component=$e.components.register(new fo({manager:this}))}},{key:`typeInstance`,value:function typeInstance(r){if(this.types[r]===void 0)throw Error(`Type '${r}' is not found`);return this.types[r]}},{key:`register`,value:function register(r){var c=new r;this.types[c.getName()]=c}}])}(elementorModules.editor.utils.Module);function _callSuper$217(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$217()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$217(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$217=function _isNativeReflectConstruct(){return!!r})()}var _o,vo=__esmMin((()=>{b(),w(),E(),D(),A(),W(),__name(_callSuper$217,`_callSuper`),__name(_isNativeReflectConstruct$217,`_isNativeReflectConstruct`),_o=function(c){function Component(){return _classCallCheck(this,Component),_callSuper$217(this,Component,arguments)}return _inherits(Component,c),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`panel/history`}},{key:`defaultTabs`,value:function defaultTabs(){return{actions:{title:(0,r.__)(`Actions`,`elementor`)},revisions:{title:(0,r.__)(`Revisions`,`elementor`)}}}},{key:`defaultShortcuts`,value:function defaultShortcuts(){return{actions:{keys:`ctrl+shift+h`,dependency:function dependency(){return elementor.channels.dataEditMode.request(`activeMode`)===`edit`}}}}},{key:`renderTab`,value:function renderTab(r){elementor.getPanelView().setPage(`historyPage`).showView(r)}},{key:`activate`,value:function activate(){$e.components.activate(this.getTabRoute(this.currentTab))}},{key:`getTabsWrapperSelector`,value:function getTabsWrapperSelector(){return`#elementor-panel-elements-navigation`}}])}(U)}));function _callSuper$216(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$216()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$216(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$216=function _isNativeReflectConstruct(){return!!r})()}var yo,bo=__esmMin((()=>{b(),w(),E(),D(),A(),W(),__name(_callSuper$216,`_callSuper`),__name(_isNativeReflectConstruct$216,`_isNativeReflectConstruct`),yo=function(r){function Component(){return _classCallCheck(this,Component),_callSuper$216(this,Component,arguments)}return _inherits(Component,r),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`panel/history/actions`}},{key:`defaultCommands`,value:function defaultCommands(){return{do:function _do(r){return $e.run(`document/history/do`,r)},undo:function undo(){return $e.run(`document/history/undo`)},redo:function redo(){return $e.run(`document/history/redo`)}}}},{key:`defaultShortcuts`,value:function defaultShortcuts(){return{undo:{keys:`ctrl+z`,exclude:[`input`],scopes:[`panel`,`navigator`]},redo:{keys:`ctrl+shift+z, ctrl+y`,exclude:[`input`],scopes:[`panel`,`navigator`]}}}}])}(U)}));function _callSuper$215(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$215()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$215(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$215=function _isNativeReflectConstruct(){return!!r})()}var xo,So=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$215,`_callSuper`),__name(_isNativeReflectConstruct$215,`_isNativeReflectConstruct`),xo=function(r){function Down(){return _classCallCheck(this,Down),_callSuper$215(this,Down,arguments)}return _inherits(Down,r),_createClass(Down,[{key:`apply`,value:function apply(){this.component.navigate()}}])}($e.modules.CommandBase)}));function _callSuper$214(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$214()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$214(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$214=function _isNativeReflectConstruct(){return!!r})()}var Co,wo=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$214,`_callSuper`),__name(_isNativeReflectConstruct$214,`_isNativeReflectConstruct`),Co=function(r){function Up(){return _classCallCheck(this,Up),_callSuper$214(this,Up,arguments)}return _inherits(Up,r),_createClass(Up,[{key:`apply`,value:function apply(){this.component.navigate(!0)}}])}($e.modules.CommandBase)})),To=__exportAll({Down:()=>xo,Up:()=>Co}),Eo=__esmMin((()=>{So(),wo()}));function _callSuper$213(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$213()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$213(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$213=function _isNativeReflectConstruct(){return!!r})()}var Oo,ko=__esmMin((()=>{b(),w(),E(),D(),A(),Fr(),__name(_callSuper$213,`_callSuper`),__name(_isNativeReflectConstruct$213,`_isNativeReflectConstruct`),Oo=function(r){function RevisionsAfterSave(){return _classCallCheck(this,RevisionsAfterSave),_callSuper$213(this,RevisionsAfterSave,arguments)}return _inherits(RevisionsAfterSave,r),_createClass(RevisionsAfterSave,[{key:`getCommand`,value:function getCommand(){return`document/save/save`}},{key:`getId`,value:function getId(){return`revisions-after-save`}},{key:`apply`,value:function apply(r,c){var l=c.data,u=elementor.documents.getCurrent().revisions;l.latest_revisions&&u.addRevisions(l.latest_revisions),u.requestRevisions(function(){if(l.revisions_ids){var r=u.revisions.filter(function(r){return l.revisions_ids.indexOf(r.get(`id`))!==-1});u.revisions.reset(r)}})}}])}(Pr)})),Ao=__exportAll({RevisionsAfterSave:()=>Oo}),jo=__esmMin((()=>{ko()}));function _callSuper$212(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$212()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$212(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$212=function _isNativeReflectConstruct(){return!!r})()}var Mo,No=__esmMin((()=>{b(),w(),E(),D(),A(),W(),Eo(),jo(),__name(_callSuper$212,`_callSuper`),__name(_isNativeReflectConstruct$212,`_isNativeReflectConstruct`),Mo=function(r){function Component(){return _classCallCheck(this,Component),_callSuper$212(this,Component,arguments)}return _inherits(Component,r),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`panel/history/revisions`}},{key:`defaultCommands`,value:function defaultCommands(){return this.importCommands(To)}},{key:`defaultHooks`,value:function defaultHooks(){return this.importHooks(Ao)}},{key:`defaultShortcuts`,value:function defaultShortcuts(){return{up:{keys:`up`,scopes:[this.getNamespace()]},down:{keys:`down`,scopes:[this.getNamespace()]}}}},{key:`navigate`,value:function navigate(r){elementor.documents.getCurrent().revisions.getItems().length>1&&elementor.getPanelView().getCurrentPageView().currentTab.navigate(r)}}])}(U)}));function _callSuper$211(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$211()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$211(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$211=function _isNativeReflectConstruct(){return!!r})()}var Po,Fo=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$211,`_callSuper`),__name(_isNativeReflectConstruct$211,`_isNativeReflectConstruct`),Po=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$211(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-panel-revisions-loading`}},{key:`id`,value:function id(){return`elementor-panel-revisions-loading`}},{key:`onRender`,value:function onRender(){this.options.document.revisions.requestRevisions(function(){setTimeout(function(){return $e.routes.refreshContainer(`panel`)})})}}])}(Marionette.ItemView)}));function ownKeys$14(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$14(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$14(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$14(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}function filterChildren(r){return r.reduce(function(r,c){var l,u;if(!c||!elementor.elementsManager.getElementTypeClass((l=c.widgetType)==null?c.elType:l))return r;var p=(u=c.elements)!=null&&u.length?_objectSpread$14(_objectSpread$14({},c),{},{elements:filterChildren(c.elements)}):c;return r.push(p),r},[])}var Io,Lo=__esmMin((()=>{P(),__name(ownKeys$14,`ownKeys`),__name(_objectSpread$14,`_objectSpread`),Io=function filterUnknownElements(r){var c;return r!=null&&(c=r.elements)!=null&&c.length?_objectSpread$14(_objectSpread$14({},r),{},{elements:filterChildren(r.elements)}):r}})),Ro=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-panel-revisions-revision-item`,className:`elementor-revision-item`,ui:{detailsArea:`.elementor-revision-item__details`},triggers:{"click @ui.detailsArea":`detailsArea:click`}})})),zo,Bo=__esmMin((()=>{Lo(),zo=Marionette.CompositeView.extend({id:`elementor-panel-revisions`,template:`#tmpl-elementor-panel-revisions`,childView:Ro(),childViewContainer:`#elementor-revisions-list`,ui:{discard:`.elementor-button.e-revision-discard`,apply:`.elementor-button.e-revision-save`},events:{"click @ui.discard":`onDiscardClick`,"click @ui.apply":`onApplyClick`},isRevisionApplied:!1,currentPreviewId:null,currentPreviewItem:null,document:null,initialize:function initialize(r){this.document=r.document,this.collection=this.document.revisions.getItems(),this.listenTo(elementor.channels.editor,`saved`,this.onEditorSaved),this.currentPreviewId=elementor.config.document.revisions.current_id},getRevisionViewData:function getRevisionViewData(r){var c=this;this.document.revisions.getRevisionDataAsync(r.model.get(`id`),{success:function success(l){var u=Io(l);c.document.config.panel.has_elements&&c.document.revisions.setEditorData(u.elements),elementor.settings.page.model.set(u.settings),c.setRevisionsButtonsActive(!0),r.$el.removeClass(`elementor-revision-item-loading`),c.enterReviewMode()},error:function error(l){r.$el.removeClass(`elementor-revision-item-loading`),c.currentPreviewItem=null,c.currentPreviewId=null,alert(l)}})},setRevisionsButtonsActive:function setRevisionsButtonsActive(r){this.isDestroyed||this.ui.apply.add(this.ui.discard).prop(`disabled`,!r)},deleteRevision:function deleteRevision(r){var c=this;r.$el.addClass(`elementor-revision-item-loading`),this.document.revisions.deleteRevision(r.model,{success:function success(){r.model.get(`id`)===c.currentPreviewId&&c.onDiscardClick(),c.currentPreviewId=null},error:function error(){r.$el.removeClass(`elementor-revision-item-loading`),alert(`An error occurred.`)}})},enterReviewMode:function enterReviewMode(){elementor.changeEditMode(`review`)},exitReviewMode:function exitReviewMode(){elementor.changeEditMode(`edit`)},navigate:function navigate(r){if(!(!this.currentPreviewId||!this.currentPreviewItem||this.children.length<=1)){var c=this.collection.indexOf(this.currentPreviewItem.model),l=r?c-1:c+1;l<0&&(l=this.collection.length-1),l>=this.collection.length&&(l=0),this.children.findByIndex(l).ui.detailsArea.trigger(`click`)}},onEditorSaved:function onEditorSaved(){this.exitReviewMode(),this.setRevisionsButtonsActive(!1),this.currentPreviewId=elementor.config.document.revisions.current_id},onApplyClick:function onApplyClick(){$e.internal(`document/save/set-is-modified`,{status:!0}),$e.run(`document/save/auto`,{force:!0}),this.isRevisionApplied=!0,this.currentPreviewId=null,this.document.history.getItems().reset()},onDiscardClick:function onDiscardClick(){this.document.config.panel.has_elements&&this.document.revisions.setEditorData(elementor.config.document.elements),$e.internal(`document/save/set-is-modified`,{status:this.isRevisionApplied}),this.isRevisionApplied=!1,this.setRevisionsButtonsActive(!1),this.currentPreviewId=null,this.exitReviewMode()},onDestroy:function onDestroy(){this.currentPreviewId&&this.currentPreviewId!==elementor.config.document.revisions.current_id&&this.onDiscardClick()},onRenderCollection:function onRenderCollection(){if(this.currentPreviewId){var r=this.collection.findWhere({id:this.currentPreviewId});r&&(this.currentPreviewItem=this.children.findByModelCid(r.cid),this.currentPreviewItem.$el.addClass(`elementor-revision-current-preview`))}},onChildviewDetailsAreaClick:function onChildviewDetailsAreaClick(r){var c=this,l=r.model.get(`id`);l!==this.currentPreviewId&&(this.currentPreviewItem&&this.currentPreviewItem.$el.removeClass(`elementor-revision-current-preview elementor-revision-item-loading`),r.$el.addClass(`elementor-revision-current-preview elementor-revision-item-loading`),(this.currentPreviewId===null||elementor.config.document.revisions.current_id===this.currentPreviewId)&&elementor.saver.isEditorChanged()?$e.internal(`document/save/save`,{status:`autosave`,onSuccess:function onSuccess(){c.getRevisionViewData(r)}}):this.getRevisionViewData(r),this.currentPreviewItem=r,this.currentPreviewId=l)}})})),Vo=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-panel-revisions-no-revisions`,id:`elementor-panel-revisions-no-revisions`,className:`elementor-nerd-box`})}));function _callSuper$210(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$210()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$210(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$210=function _isNativeReflectConstruct(){return!!r})()}var Ho,Uo=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$210,`_callSuper`),__name(_isNativeReflectConstruct$210,`_isNativeReflectConstruct`),Ho=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$210(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`tagName`,value:function tagName(){return`button`}},{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-panel-history-item`}},{key:`className`,value:function className(){return`elementor-history-item elementor-history-item-`+this.model.get(`status`)}},{key:`triggers`,value:function triggers(){return{click:`click`}}}])}(Marionette.ItemView)}));function _callSuper$209(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$209()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$209(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$209=function _isNativeReflectConstruct(){return!!r})()}var Wo,Go=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$209,`_callSuper`),__name(_isNativeReflectConstruct$209,`_isNativeReflectConstruct`),Wo=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$209(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-panel-history-no-items`}},{key:`id`,value:function id(){return`elementor-panel-history-no-items`}},{key:`onDestroy`,value:function onDestroy(){this._parent.$el.removeClass(`elementor-empty`)}}])}(Marionette.ItemView)})),Ko=__commonJSMin(((r,c)=>{Uo(),Go(),c.exports=Marionette.CompositeView.extend({id:`elementor-panel-history`,template:`#tmpl-elementor-panel-history-tab`,childView:Ho,childViewContainer:`#elementor-history-list`,emptyView:Wo,currentItem:null,updateCurrentItem:function updateCurrentItem(){var r=this;this.children.length<=1||_.defer(function(){var c=r.collection.find(function(r){return r.get(`status`)===`not_applied`}),l=r.children.findByModel(c);if(l){var u=`elementor-history-item-current`;r.currentItem&&r.currentItem.removeClass(u),r.currentItem=l.$el,r.currentItem.addClass(u)}})},onRender:function onRender(){this.updateCurrentItem()},onRenderEmpty:function onRenderEmpty(){this.$el.addClass(`elementor-empty`)},onChildviewClick:function onChildviewClick(r,c){if(r.$el!==this.currentItem){var l=c.model.collection.findIndex(c.model);$e.run(`panel/history/actions/do`,{index:l})}}})})),qo,Jo,Yo,Xo=__esmMin((()=>{Fo(),Bo(),qo=__toESM(Vo()),Jo=Ko(),Yo=Marionette.LayoutView.extend({template:`#tmpl-elementor-panel-history-page`,regions:{content:`#elementor-panel-history-content`},ui:{tabs:`.elementor-panel-navigation-tab`},regionViews:{},currentTab:null,document:null,initialize:function initialize(r){this.document=r.document||elementor.documents.getCurrent(),this.initRegionViews()},initRegionViews:function initRegionViews(){var r=this,c=this.document.history.getItems();this.regionViews={actions:{view:function view(){return Jo},options:{collection:c,history:this.document.history}},revisions:{view:function view(){var c=r.document.revisions.getItems();return c?c.length===1&&c.models[0].get(`type`)===`current`?qo.default:zo:Po},options:{document:this.document}}}},getCurrentTab:function getCurrentTab(){return this.currentTab},showView:function showView(r){var c=this.regionViews[r],l=c.options||{},u=c.view();this.currentTab&&this.currentTab.constructor===u||(this.currentTab=new u(l),this.content.show(this.currentTab))}})})),Zo=__exportAll({default:()=>Qo}),Qo,$o=__esmMin((()=>{b(),w(),vo(),bo(),No(),Xo(),Qo=function(){function Manager(){_classCallCheck(this,Manager),elementorCommon.elements.$window.on(`elementor:loaded`,this.init)}return _createClass(Manager,[{key:`init`,value:function init(){$e.components.register(new _o),$e.components.register(new yo),$e.components.register(new Mo),elementor.on(`panel:init`,function(){elementor.getPanelView().addPage(`historyPage`,{view:Yo,title:(0,r.__)(`History`,`elementor`)})})}},{key:`history`,get:function get(){return elementorDevTools.deprecation.deprecated(`elementor.history.history`,`2.9.0`,`elementor.documents.getCurrent().history`),elementor.documents.getCurrent().history}},{key:`revisions`,get:function get(){return elementorDevTools.deprecation.deprecated(`elementor.history.revisions`,`2.9.0`,`elementor.documents.getCurrent().revisions`),elementor.documents.getCurrent().revisions}}])}()}));function _callSuper$208(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$208()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$208(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$208=function _isNativeReflectConstruct(){return!!r})()}var es,ts=__esmMin((()=>{b(),w(),E(),D(),A(),Je(),__name(_callSuper$208,`_callSuper`),__name(_isNativeReflectConstruct$208,`_isNativeReflectConstruct`),es=function(r){function Close(){return _classCallCheck(this,Close),_callSuper$208(this,Close,arguments)}return _inherits(Close,r),_createClass(Close,[{key:`apply`,value:function apply(){this.component.close()}}])}(qe)}));function _callSuper$207(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$207()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$207(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$207=function _isNativeReflectConstruct(){return!!r})()}var ns,rs=__esmMin((()=>{b(),w(),E(),D(),A(),Je(),__name(_callSuper$207,`_callSuper`),__name(_isNativeReflectConstruct$207,`_isNativeReflectConstruct`),ns=function(r){function Open(){return _classCallCheck(this,Open),_callSuper$207(this,Open,arguments)}return _inherits(Open,r),_createClass(Open,[{key:`apply`,value:function apply(){$e.route(this.component.getNamespace())}}])}(qe)}));function _callSuper$206(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$206()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$206(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$206=function _isNativeReflectConstruct(){return!!r})()}var is,as=__esmMin((()=>{b(),w(),E(),D(),A(),Je(),__name(_callSuper$206,`_callSuper`),__name(_isNativeReflectConstruct$206,`_isNativeReflectConstruct`),is=function(r){function Toggle(){return _classCallCheck(this,Toggle),_callSuper$206(this,Toggle,arguments)}return _inherits(Toggle,r),_createClass(Toggle,[{key:`apply`,value:function apply(){this.component.isOpen?this.component.close():$e.route(this.component.getNamespace())}}])}(qe)})),os=__exportAll({Close:()=>es,Open:()=>ns,Toggle:()=>is}),ss=__esmMin((()=>{ts(),rs(),as()}));function _callSuper$205(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$205()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$205(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$205=function _isNativeReflectConstruct(){return!!r})()}function _superPropGet$29(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 cs,ls=__esmMin((()=>{b(),w(),E(),D(),k(),A(),W(),ss(),rt(),__name(_callSuper$205,`_callSuper`),__name(_isNativeReflectConstruct$205,`_isNativeReflectConstruct`),__name(_superPropGet$29,`_superPropGet`),cs=function(r){function ComponentModalBase(){return _classCallCheck(this,ComponentModalBase),_callSuper$205(this,ComponentModalBase,arguments)}return _inherits(ComponentModalBase,r),_createClass(ComponentModalBase,[{key:`registerAPI`,value:function registerAPI(){var r=this;_superPropGet$29(ComponentModalBase,`registerAPI`,this,3)([]),$e.shortcuts.register(`esc`,{scopes:[this.getNamespace()],callback:function callback(){return r.close()}})}},{key:`defaultCommands`,value:function defaultCommands(){return this.importCommands(os)}},{key:`defaultRoutes`,value:function defaultRoutes(){return{"":function _(){}}}},{key:`open`,value:function open(){var r=this;if(!this.layout){var c=this.getModalLayout();this.layout=new c({component:this}),this.layout.getModal().on(`hide`,function(){return r.close()})}return this.layout.showModal(),!0}},{key:`close`,value:function close(){return _superPropGet$29(ComponentModalBase,`close`,this,3)([])?(elementor.hooks.applyFilters(`component/modal/close`,this.layout.getModal().hide.bind(this.layout.getModal()),this)(),!0):!1}},{key:`getModalLayout`,value:function getModalLayout(){H()}}])}(U)}));$o(),ls(),b(),w(),E(),D(),A(),Kt();function _callSuper$204(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$204()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$204,`_callSuper`);function _isNativeReflectConstruct$204(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$204=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$204,`_isNativeReflectConstruct`);var us=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$204(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`id`,value:function id(){return`elementor-hotkeys`}},{key:`templateHelpers`,value:function templateHelpers(){return{environment:Gt}}},{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-hotkeys`}}])}(Marionette.LayoutView);b(),w(),E(),D(),k(),A();function _callSuper$203(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$203()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$203,`_callSuper`);function _isNativeReflectConstruct$203(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$203=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$203,`_isNativeReflectConstruct`);function _superPropGet$28(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}__name(_superPropGet$28,`_superPropGet`);var ds=function(c){function _default(){return _classCallCheck(this,_default),_callSuper$203(this,_default,arguments)}return _inherits(_default,c),_createClass(_default,[{key:`getModalOptions`,value:function getModalOptions(){return{id:`elementor-hotkeys__modal`}}},{key:`getLogoOptions`,value:function getLogoOptions(){return{title:(0,r.__)(`Keyboard Shortcuts`,`elementor`)}}},{key:`initialize`,value:function initialize(){for(var r=arguments.length,c=Array(r),l=0;l<r;l++)c[l]=arguments[l];_superPropGet$28(_default,`initialize`,this,3)(c),this.showLogo(),this.showContentView()}},{key:`showContentView`,value:function showContentView(){this.modalContent.show(new us)}}])}(elementorModules.common.views.modal.Layout);b(),w(),E(),D(),A();function _callSuper$202(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$202()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$202,`_callSuper`);function _isNativeReflectConstruct$202(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$202=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$202,`_isNativeReflectConstruct`);var fs=function(r){function Component(){return _classCallCheck(this,Component),_callSuper$202(this,Component,arguments)}return _inherits(Component,r),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`shortcuts`}},{key:`defaultShortcuts`,value:function defaultShortcuts(){return{"":{keys:`ctrl+?, shift+?`,exclude:[`input`]}}}},{key:`getModalLayout`,value:function getModalLayout(){return ds}}])}(cs);b(),w(),E(),D(),A();function _callSuper$201(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$201()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$201,`_callSuper`);function _isNativeReflectConstruct$201(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$201=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$201,`_isNativeReflectConstruct`);var ps=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$201(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`onInit`,value:function onInit(){$e.components.register(new fs({manager:this}))}}])}(elementorModules.Module);b(),w(),E(),D(),A();function _callSuper$200(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$200()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$200,`_callSuper`);function _isNativeReflectConstruct$200(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$200=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$200,`_isNativeReflectConstruct`);var ms=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$200(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`tagName`,value:function tagName(){return`header`}},{key:`className`,value:function className(){return`elementor-templates-modal__header`}},{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-templates-modal__header`}},{key:`regions`,value:function regions(){return{logoArea:`.elementor-templates-modal__header__logo-area`,tools:`#elementor-template-library-header-tools`,menuArea:`.elementor-templates-modal__header__menu-area`}}},{key:`ui`,value:function ui(){return{closeModal:`.elementor-templates-modal__header__close`}}},{key:`events`,value:function events(){return{"click @ui.closeModal":`onCloseModalClick`}}},{key:`onRender`,value:function onRender(){this.bindEscapeKey()}},{key:`bindEscapeKey`,value:function bindEscapeKey(){var r=this;this.onDocumentKeyDown=function(c){c.key===`Escape`&&r.onCloseModalClick()},document.addEventListener(`keydown`,this.onDocumentKeyDown)}},{key:`onDestroy`,value:function onDestroy(){this.onDocumentKeyDown&&document.removeEventListener(`keydown`,this.onDocumentKeyDown)}},{key:`templateHelpers`,value:function templateHelpers(){return{closeType:this.getOption(`closeType`)}}},{key:`onCloseModalClick`,value:function onCloseModalClick(){this._parent._parent._parent.hideModal();var r=this.getDocumentType(),c=new CustomEvent(`core/modal/close/${r}`);window.dispatchEvent(c),this.isFloatingButtonLibraryClose()&&($e.internal(`document/save/set-is-modified`,{status:!1}),window.location.href=elementor.config.admin_floating_button_admin_url)}},{key:`getDocumentType`,value:function getDocumentType(){var r,c;return window.elementor===void 0||(r=(c=elementor)==null||(c=c.config)==null||(c=c.document)==null?void 0:c.type)==null?`default`:r}},{key:`isFloatingButtonLibraryClose`,value:function isFloatingButtonLibraryClose(){var r,c;return window.elementor&&((r=elementor.config)==null?void 0:r.admin_floating_button_admin_url)&&((c=elementor.config)==null||(c=c.document)==null?void 0:c.type)===`floating-buttons`&&(this.$el.closest(`.dialog-lightbox-widget-content`).find(`.elementor-template-library-template-floating_button`).length||this.$el.closest(`.dialog-lightbox-widget-content`).find(`#elementor-template-library-preview`).length||this.$el.closest(`.dialog-lightbox-widget-content`).find(`#elementor-template-library-templates-empty`).length)}}])}(Marionette.LayoutView);b(),w(),E(),D(),A();function _callSuper$199(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$199()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$199,`_callSuper`);function _isNativeReflectConstruct$199(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$199=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$199,`_isNativeReflectConstruct`);var hs=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$199(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-templates-modal__header__logo`}},{key:`className`,value:function className(){return`elementor-templates-modal__header__logo`}},{key:`events`,value:function events(){return{click:`onClick`}}},{key:`templateHelpers`,value:function templateHelpers(){return{title:this.getOption(`title`)}}},{key:`onClick`,value:function onClick(){var r=this.getOption(`click`);r&&r()}}])}(Marionette.ItemView);b(),w(),E(),D(),A();function _callSuper$198(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$198()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$198,`_callSuper`);function _isNativeReflectConstruct$198(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$198=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$198,`_isNativeReflectConstruct`);var gs=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$198(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`id`,value:function id(){return`elementor-template-library-loading`}},{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-template-library-loading`}}])}(Marionette.ItemView);b(),w(),E(),D(),A();function _callSuper$197(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$197()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$197,`_callSuper`);function _isNativeReflectConstruct$197(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$197=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$197,`_isNativeReflectConstruct`);var _s=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$197(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`el`,value:function el(){return this.getModal().getElements(`widget`)}},{key:`regions`,value:function regions(){return{modalHeader:`.dialog-header`,modalContent:`.dialog-lightbox-content`,modalLoading:`.dialog-lightbox-loading`}}},{key:`initialize`,value:function initialize(){this.modalHeader.show(new ms(this.getHeaderOptions()))}},{key:`getModal`,value:function getModal(){return this.modal||this.initModal(),this.modal}},{key:`initModal`,value:function initModal(){var r={className:`elementor-templates-modal`,closeButton:!1,draggable:!1,hide:{onOutsideClick:!1,onEscKeyPress:!1}};jQuery.extend(!0,r,this.getModalOptions()),this.modal=elementorCommon.dialogsManager.createWidget(`lightbox`,r),this.modal.getElements(`message`).append(this.modal.addElement(`content`),this.modal.addElement(`loading`)),r.draggable&&this.draggableModal()}},{key:`showModal`,value:function showModal(){this.getModal().show()}},{key:`hideModal`,value:function hideModal(){this.getModal().hide()}},{key:`draggableModal`,value:function draggableModal(){var r=this.getModal().getElements(`widgetContent`);r.draggable({containment:`parent`,stop:function stop(){r.height(``)}}),r.css(`position`,`absolute`)}},{key:`getModalOptions`,value:function getModalOptions(){return{}}},{key:`getLogoOptions`,value:function getLogoOptions(){return{}}},{key:`getHeaderOptions`,value:function getHeaderOptions(){return{closeType:`normal`}}},{key:`getHeaderView`,value:function getHeaderView(){return this.modalHeader.currentView}},{key:`showLoadingView`,value:function showLoadingView(){this.modalLoading.show(new gs),this.modalLoading.$el.show(),this.modalContent.$el.hide()}},{key:`hideLoadingView`,value:function hideLoadingView(){this.modalContent.$el.show(),this.modalLoading.$el.hide()}},{key:`showLogo`,value:function showLogo(){this.getHeaderView().logoArea.show(new hs(this.getLogoOptions()))}}])}(Marionette.LayoutView);b(),w(),E(),D(),k(),A();function _callSuper$196(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$196()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$196,`_callSuper`);function _isNativeReflectConstruct$196(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$196=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$196,`_isNativeReflectConstruct`);function _superPropGet$27(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}__name(_superPropGet$27,`_superPropGet`);var vs=function(c){function _default(){return _classCallCheck(this,_default),_callSuper$196(this,_default,arguments)}return _inherits(_default,c),_createClass(_default,[{key:`getModalOptions`,value:function getModalOptions(){return{id:`elementor-icons-manager-modal`}}},{key:`getLogoOptions`,value:function getLogoOptions(){return{title:(0,r.__)(`Icon Library`,`elementor`)}}},{key:`initialize`,value:function initialize(){for(var r=arguments.length,c=Array(r),l=0;l<r;l++)c[l]=arguments[l];_superPropGet$27(_default,`initialize`,this,3)(c),this.showLogo()}}])}(_s);function _extends(){return _extends=Object.assign?Object.assign.bind():function(r){for(var c=1;c<arguments.length;c++){var l=arguments[c];for(var u in l)({}).hasOwnProperty.call(l,u)&&(r[u]=l[u])}return r},_extends.apply(null,arguments)}b(),w(),E(),D(),A(),P();var J=__toESM(vr());function _callSuper$195(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$195()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$195,`_callSuper`);function _isNativeReflectConstruct$195(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$195=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$195,`_isNativeReflectConstruct`);var ys=function(r){function LazyIconList(){var r;_classCallCheck(this,LazyIconList);for(var c=arguments.length,u=Array(c),p=0;p<c;p++)u[p]=arguments[p];return r=_callSuper$195(this,LazyIconList,[].concat(u)),_defineProperty(r,`state`,{itemSize:{width:0,height:0},wrapperSize:{width:0,height:0},firstRowInView:0}),_defineProperty(r,`selectors`,{item:`.elementor-icons-manager__tab__item`,wrapper:`elementor-icons-manager__tab__wrapper`}),_defineProperty(r,`attachScrollListener`,function(){var c=document.getElementById(r.selectors.wrapper);c&&c.addEventListener(`scroll`,r.handleScroll)}),_defineProperty(r,`maybeMeasureItem`,function(){if(!r.state.itemSize.width){var c=20,l=document.querySelector(r.selectors.item);if(l){var u=document.getElementById(r.selectors.wrapper),p={itemSize:{width:l.offsetWidth+c,height:l.offsetHeight+c},wrapperSize:{width:u.offsetWidth,height:u.clientHeight}};return r.setState(p,function(){r.maybeScrollToSelected()})}}}),_defineProperty(r,`maybeScrollToSelected`,function(){if(r.hasSelected()){var c=r.props.selectedIndex,l=r.state,u=l.wrapperSize,p=l.itemSize,m=Math.floor(u.width/p.width),h=(Math.ceil(c/m)-1)*p.height;setTimeout(function(){r.props.parentRef.current.scrollTo({top:h,left:0,behavior:`auto`})},0)}}),_defineProperty(r,`handleScroll`,function(){r.clearDebounceScrollCallback(),r._debounce=setTimeout(function(){var c=document.getElementById(r.selectors.wrapper),l=r.state.itemSize;r.setState({firstRowInView:Math.floor(c.scrollTop/l.height)})},10)}),_defineProperty(r,`render`,function(){var c=r.state,u=c.itemSize,p=c.wrapperSize,m=r.state.firstRowInView;if(!u.width)return r.renderFirstElementForMeasurement();var h=r.props.items,g=Math.floor(p.width/u.width),v=Math.ceil(h.length/g),y=Math.ceil(p.height/u.height)+4;y>v&&(y=v),m>v-y&&(m=v-y);var b=v-m-y,x=m*g,S=(m+y)*g-1,C=h.slice(x,S+1),w={height:`${m*u.height}px`},T={height:`${b*u.height}px`};return l.default.createElement(l.Fragment,null,l.default.createElement(`div`,{className:`elementor-icons-manager__tab__content__offset`,style:w}),l.default.createElement(`div`,{id:`elementor-icons-manager__tab__content`},C),l.default.createElement(`div`,{className:`elementor-icons-manager__tab__content__tail`,style:T}))}),r}return _inherits(LazyIconList,r),_createClass(LazyIconList,[{key:`componentDidMount`,value:function componentDidMount(){this.attachScrollListener(),this.maybeMeasureItem()}},{key:`componentWillUnmount`,value:function componentWillUnmount(){this.clearDebounceScrollCallback();var r=document.getElementById(this.selectors.wrapper);r&&r.removeEventListener(`scroll`,this.handleScroll)}},{key:`clearDebounceScrollCallback`,value:function clearDebounceScrollCallback(){clearTimeout(this._debounce)}},{key:`renderFirstElementForMeasurement`,value:function renderFirstElementForMeasurement(){return l.default.createElement(`div`,{id:`elementor-icons-manager__tab__content`},this.props.items[0])}},{key:`hasSelected`,value:function hasSelected(){return this.props.selectedIndex!==-1}}])}(l.Component);ys.propTypes={items:J.default.array,selectedIndex:J.default.number,parentRef:J.default.any},w(),b(),E(),D(),A(),P();function _callSuper$194(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$194()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$194,`_callSuper`);function _isNativeReflectConstruct$194(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$194=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$194,`_isNativeReflectConstruct`);var bs=function(r){function Icon(){var r;_classCallCheck(this,Icon);for(var c=arguments.length,u=Array(c),p=0;p<c;p++)u[p]=arguments[p];return r=_callSuper$194(this,Icon,[].concat(u)),_defineProperty(r,`setSelected`,function(){r.props.setSelectedHandler({value:r.props.data.displayPrefix+` `+r.props.data.selector,library:r.props.library})}),_defineProperty(r,`render`,function(){return l.default.createElement(`div`,{className:r.props.containerClass,key:r.props.keyID,onClick:r.setSelected,filter:r.props.data.filter},l.default.createElement(`div`,{className:`elementor-icons-manager__tab__item__content`},l.default.createElement(`i`,{className:`elementor-icons-manager__tab__item__icon `+r.props.className}),l.default.createElement(`div`,{className:`elementor-icons-manager__tab__item__name`,title:r.props.data.name},r.props.data.name)))}),r}return _inherits(Icon,r),_createClass(Icon)}(l.Component);bs.propTypes={className:J.default.string,containerClass:J.default.string,data:J.default.object,keyID:J.default.string,library:J.default.string,selector:J.default.string,setSelectedHandler:J.default.func},M(),ge(),b(),w(),E(),D(),A(),P();function _createForOfIteratorHelper$7(r,c){var l=typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(!l){if(Array.isArray(r)||(l=_unsupportedIterableToArray$7(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.
17 +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$8(r,c){if(r){if(typeof r==`string`)return _arrayLikeToArray$8(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$8(r,c):void 0}}function _arrayLikeToArray$8(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$257(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$257()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$257(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$257=function _isNativeReflectConstruct(){return!!r})()}var Ci,wi=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_createForOfIteratorHelper$8,`_createForOfIteratorHelper`),__name(_unsupportedIterableToArray$8,`_unsupportedIterableToArray`),__name(_arrayLikeToArray$8,`_arrayLikeToArray`),__name(_callSuper$257,`_callSuper`),__name(_isNativeReflectConstruct$257,`_isNativeReflectConstruct`),Ci=function(r){function SelectAll(){return _classCallCheck(this,SelectAll),_callSuper$257(this,SelectAll,arguments)}return _inherits(SelectAll,r),_createClass(SelectAll,[{key:`apply`,value:function apply(){elementor.selection.add(this.flattenContainersList(elementor.elementsModel.get(`elements`).map(function(r){return elementor.getContainer(r.id)})))}},{key:`flattenContainersList`,value:function flattenContainersList(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=[],l=_createForOfIteratorHelper$8(r),u;try{for(l.s();!(u=l.n()).done;){var p=u.value;c.push(p),p.children.length&&(c=c.concat(this.flattenContainersList(p.children)))}}catch(r){l.e(r)}finally{l.f()}return c}}])}($e.modules.CommandBase)}));function _callSuper$256(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$256()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$256(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$256=function _isNativeReflectConstruct(){return!!r})()}var Ti,Ei=__esmMin((()=>{P(),b(),w(),E(),D(),A(),__name(_callSuper$256,`_callSuper`),__name(_isNativeReflectConstruct$256,`_isNativeReflectConstruct`),Ti=function(r){function Settings(){return _classCallCheck(this,Settings),_callSuper$256(this,Settings,arguments)}return _inherits(Settings,r),_createClass(Settings,[{key:`addToHistory`,value:function addToHistory(r,c,l){var u=_defineProperty({},r.id,{old:l,new:c}),p={containers:[r],data:{changes:u},type:`change`,restore:Settings.restore};$e.internal(`document/history/add-transaction`,p)}},{key:`validateArgs`,value:function validateArgs(r){this.requireContainer(r),this.requireArgumentConstructor(`settings`,Object,r)}},{key:`getHistory`,value:function getHistory(r){var c=r.containers;return{containers:c===void 0?[r.container]:c,subTitle:this.constructor.getSubTitle(r),type:`change`}}},{key:`apply`,value:function apply(r){var c=this,l=r.containers,u=l===void 0?[r.container]:l,p=r.settings,m=p===void 0?{}:p,h=r.isMultiSettings,g=h!==void 0&&h,v=r.options,y=v===void 0?{}:v;u.forEach(function(r){r=r.lookup();var l=g?m[r.id]:m,u=r.settings.toJSON();r.oldValues={},Object.keys(l).forEach(function(c){r.oldValues[c]=u[c]}),c.isHistoryActive()&&c.addToHistory(r,l,r.oldValues),$e.internal(`document/elements/set-settings`,{container:r,options:y,settings:l})})}}],[{key:`getSubTitle`,value:function getSubTitle(r){var c=r.containers,l=c===void 0?[r.container]:c,u=r.settings,p=u===void 0?{}:u,m=r.isMultiSettings,h=Object.keys(p),g=l[0].controls,v=h[0],y=``;return!m&&h.length===1&&g&&g[v]&&(y=g[v].label),y}},{key:`restore`,value:function restore(r,c){var l=r.get(`data`);r.get(`containers`).forEach(function(r){var u=l.changes[r.id];$e.run(`document/elements/settings`,{container:r,settings:c?u.new:u.old,options:{external:!0}})})}}])}($e.modules.editor.document.CommandHistoryDebounceBase)}));function _callSuper$255(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$255()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$255(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$255=function _isNativeReflectConstruct(){return!!r})()}var Di,Oi=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$255,`_callSuper`),__name(_isNativeReflectConstruct$255,`_isNativeReflectConstruct`),Di=function(r){function ToggleSelection(){return _classCallCheck(this,ToggleSelection),_callSuper$255(this,ToggleSelection,arguments)}return _inherits(ToggleSelection,r),_createClass(ToggleSelection,[{key:`validateArgs`,value:function validateArgs(r){this.requireContainer(r)}},{key:`apply`,value:function apply(r){var c=r.containers,l=c===void 0?[r.container]:c,u=r.append,p=u!==void 0&&u;l.forEach(function(c){$e.run(elementor.selection.has(c)&&p?`document/elements/deselect`:`document/elements/select`,r)})}}])}($e.modules.editor.CommandContainerBase)})),ki=__exportAll({Copy:()=>Br,CopyAll:()=>Hr,Create:()=>Wr,Delete:()=>Kr,Deselect:()=>Jr,DeselectAll:()=>Xr,Duplicate:()=>Qr,Empty:()=>ei,Import:()=>ni,Move:()=>pi,Paste:()=>ai,PasteArea:()=>ci,PasteInteractions:()=>di,PasteStyle:()=>hi,ResetSettings:()=>_i,ResetStyle:()=>yi,Select:()=>xi,SelectAll:()=>Ci,Settings:()=>Ti,ToggleSelection:()=>Di}),Ai=__esmMin((()=>{Vr(),Ur(),Gr(),qr(),Yr(),Zr(),$r(),ti(),ri(),oi(),li(),fi(),mi(),gi(),vi(),bi(),Si(),wi(),Ei(),Oi()})),ji,Mi=__esmMin((()=>{b(),w(),Ai(),ji=function(){function Helper(){_classCallCheck(this,Helper)}return _createClass(Helper,null,[{key:`createSectionColumns`,value:function createSectionColumns(r,c,l){var u=arguments.length>3&&arguments[3]!==void 0&&arguments[3];r.forEach(function(r){for(var u=0;u<c;u++){var p={id:elementorCommon.helpers.getUniqueId(),elType:`column`,settings:{},elements:[]};r.view.addElement(p,{edit:!1}),$e.internal(`document/history/log-sub-item`,{container:r,type:`sub-add`,restore:Wr.restore,options:l,data:{containerToRestore:r,modelToRestore:p}})}}),u?r.forEach(function(r){r.view.setStructure(u,!1)}):c&&(r.forEach(function(r){return r.view.resetLayout()}),r[r.length-1].model.trigger(`request:edit`))}}])}()}));function _callSuper$254(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$254()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$254(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$254=function _isNativeReflectConstruct(){return!!r})()}var Ni,Pi,Fi=__esmMin((()=>{b(),w(),E(),D(),A(),Fr(),Mi(),Ni=__toESM(Kn()),__name(_callSuper$254,`_callSuper`),__name(_isNativeReflectConstruct$254,`_isNativeReflectConstruct`),Pi=function(r){function InnerSectionColumns(){return _classCallCheck(this,InnerSectionColumns),_callSuper$254(this,InnerSectionColumns,arguments)}return _inherits(InnerSectionColumns,r),_createClass(InnerSectionColumns,[{key:`getCommand`,value:function getCommand(){return`document/elements/create`}},{key:`getId`,value:function getId(){return`create-inner-section-columns`}},{key:`getContainerType`,value:function getContainerType(){return`column`}},{key:`getConditions`,value:function getConditions(r){return r.model.isInner&&!r.model.elements}},{key:`apply`,value:function apply(r,c){var l=r.structure,u=l===void 0?`20`:l,p=r.options,m=p===void 0?{}:p;Array.isArray(c)||(c=[c]),ji.createSectionColumns(c,Ni.DEFAULT_INNER_SECTION_COLUMNS,m,u)}}])}(Pr)}));function _callSuper$253(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$253()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$253(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$253=function _isNativeReflectConstruct(){return!!r})()}var Ii,Li=__esmMin((()=>{b(),w(),E(),D(),A(),Nr(),__name(_callSuper$253,`_callSuper`),__name(_isNativeReflectConstruct$253,`_isNativeReflectConstruct`),Ii=function(r){function Dependency(){return _classCallCheck(this,Dependency),_callSuper$253(this,Dependency,arguments)}return _inherits(Dependency,r),_createClass(Dependency,[{key:`register`,value:function register(){$e.hooks.registerDataDependency(this)}}])}(Mr)}));function _callSuper$252(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$252()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$252(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$252=function _isNativeReflectConstruct(){return!!r})()}var Ri,zi=__esmMin((()=>{b(),w(),E(),D(),A(),Li(),__name(_callSuper$252,`_callSuper`),__name(_isNativeReflectConstruct$252,`_isNativeReflectConstruct`),Ri=function(r){function IsValidChild(){return _classCallCheck(this,IsValidChild),_callSuper$252(this,IsValidChild,arguments)}return _inherits(IsValidChild,r),_createClass(IsValidChild,[{key:`getCommand`,value:function getCommand(){return`document/elements/create`}},{key:`getId`,value:function getId(){return`is-valid-child`}},{key:`apply`,value:function apply(r){var c=r.containers,l=c===void 0?[r.container]:c,u=r.model,p=u===void 0?{}:u,m=new Backbone.Model(p);return l.some(function(r){return r.model.isValidChild(m)})}}])}(Ii)}));function _callSuper$251(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$251()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$251(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$251=function _isNativeReflectConstruct(){return!!r})()}var Bi,Vi,Hi=__esmMin((()=>{b(),w(),E(),D(),A(),Fr(),Mi(),Bi=__toESM(Kn()),__name(_callSuper$251,`_callSuper`),__name(_isNativeReflectConstruct$251,`_isNativeReflectConstruct`),Vi=function(r){function SectionColumns(){return _classCallCheck(this,SectionColumns),_callSuper$251(this,SectionColumns,arguments)}return _inherits(SectionColumns,r),_createClass(SectionColumns,[{key:`getCommand`,value:function getCommand(){return`document/elements/create`}},{key:`getId`,value:function getId(){return`create-section-columns`}},{key:`getContainerType`,value:function getContainerType(){return`document`}},{key:`getConditions`,value:function getConditions(r){return!r.model.elements&&r.model.elType===`section`}},{key:`apply`,value:function apply(r,c){var l=r.structure,u=l!==void 0&&l,p=r.options,m=p===void 0?{}:p;Array.isArray(c)||(c=[c]);var h=r.columns,g=h===void 0?1:h;r.model.isInner&&g===1&&(g=Bi.DEFAULT_INNER_SECTION_COLUMNS),ji.createSectionColumns(c,g,m,u)}}])}(Pr)}));function _callSuper$250(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$250()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$250(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$250=function _isNativeReflectConstruct(){return!!r})()}var Ui,Wi=__esmMin((()=>{b(),w(),E(),D(),A(),Li(),__name(_callSuper$250,`_callSuper`),__name(_isNativeReflectConstruct$250,`_isNativeReflectConstruct`),Ui=function(r){function SectionColumnsLimit(){return _classCallCheck(this,SectionColumnsLimit),_callSuper$250(this,SectionColumnsLimit,arguments)}return _inherits(SectionColumnsLimit,r),_createClass(SectionColumnsLimit,[{key:`getCommand`,value:function getCommand(){return`document/elements/create`}},{key:`getId`,value:function getId(){return`section-columns-limit`}},{key:`getContainerType`,value:function getContainerType(){return`section`}},{key:`apply`,value:function apply(r){var c=r.containers;return!(c===void 0?[r.container]:c).some(function(r){return r.view.isCollectionFilled()})}}])}(Ii)})),Gi=__esmMin((()=>{zr(),Fi(),zi(),Hi(),Wi()}));function _callSuper$249(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$249()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$249(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$249=function _isNativeReflectConstruct(){return!!r})()}var Ki,qi=__esmMin((()=>{b(),w(),E(),D(),A(),Fr(),__name(_callSuper$249,`_callSuper`),__name(_isNativeReflectConstruct$249,`_isNativeReflectConstruct`),Ki=function(r){function CreateColumnForEmptySection(){return _classCallCheck(this,CreateColumnForEmptySection),_callSuper$249(this,CreateColumnForEmptySection,arguments)}return _inherits(CreateColumnForEmptySection,r),_createClass(CreateColumnForEmptySection,[{key:`getCommand`,value:function getCommand(){return`document/elements/delete`}},{key:`getId`,value:function getId(){return`create-column-for-empty-section--document/elements/delete`}},{key:`getContainerType`,value:function getContainerType(){return`column`}},{key:`getConditions`,value:function getConditions(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return r.parent.type===`section`&&r.parent.children.length===0})}},{key:`apply`,value:function apply(r,c){Array.isArray(c)||(c=[c]),c.forEach(function(r){var c=r.parent;c.children.length===0&&$e.run(`document/elements/create`,{container:c,model:{elType:`column`}})})}}])}(Pr)}));function _callSuper$248(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$248()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$248(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$248=function _isNativeReflectConstruct(){return!!r})()}var Ji,Yi=__esmMin((()=>{b(),w(),E(),D(),A(),Lr(),__name(_callSuper$248,`_callSuper`),__name(_isNativeReflectConstruct$248,`_isNativeReflectConstruct`),Ji=function(r){function DeleteColumnColumnsResetLayout(){return _classCallCheck(this,DeleteColumnColumnsResetLayout),_callSuper$248(this,DeleteColumnColumnsResetLayout,arguments)}return _inherits(DeleteColumnColumnsResetLayout,r),_createClass(DeleteColumnColumnsResetLayout,[{key:`getCommand`,value:function getCommand(){return`document/elements/delete`}},{key:`getId`,value:function getId(){return`section-columns-reset-layout--document/elements/delete`}},{key:`getContainerType`,value:function getContainerType(){return`column`}}])}(Ir)})),Xi=__esmMin((()=>{qi(),Yi()}));function _callSuper$247(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$247()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$247(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$247=function _isNativeReflectConstruct(){return!!r})()}var Zi,Qi=__esmMin((()=>{b(),w(),E(),D(),A(),Fr(),__name(_callSuper$247,`_callSuper`),__name(_isNativeReflectConstruct$247,`_isNativeReflectConstruct`),Zi=function(r){function SectionColumnsSetStructure(){return _classCallCheck(this,SectionColumnsSetStructure),_callSuper$247(this,SectionColumnsSetStructure,arguments)}return _inherits(SectionColumnsSetStructure,r),_createClass(SectionColumnsSetStructure,[{key:`getCommand`,value:function getCommand(){return`document/elements/move`}},{key:`getId`,value:function getId(){return`section-columns-set-structure`}},{key:`getContainerType`,value:function getContainerType(){return`column`}},{key:`getConditions`,value:function getConditions(r){var c=r.containers,l=c===void 0?[r.container]:c,u=r.target;return l.some(function(r){return r.parent!==u})}},{key:`apply`,value:function apply(r){var c=r.containers,l=c===void 0?[r.container]:c,u=r.target;return l.forEach(function(r){return r.parent.view.resetLayout()}),u.view.resetLayout(),!0}}])}(Pr)})),$i=__esmMin((()=>{Qi()}));function _callSuper$246(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$246()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$246(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$246=function _isNativeReflectConstruct(){return!!r})()}var ea,ta=__esmMin((()=>{b(),w(),E(),D(),A(),Li(),__name(_callSuper$246,`_callSuper`),__name(_isNativeReflectConstruct$246,`_isNativeReflectConstruct`),ea=function(r){function IsPasteEnabled(){return _classCallCheck(this,IsPasteEnabled),_callSuper$246(this,IsPasteEnabled,arguments)}return _inherits(IsPasteEnabled,r),_createClass(IsPasteEnabled,[{key:`getCommand`,value:function getCommand(){return`document/elements/paste`}},{key:`getId`,value:function getId(){return`is-paste-enabled`}},{key:`getConditions`,value:function getConditions(r){return!r.rebuild}},{key:`apply`,value:function apply(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return $e.components.get(`document/elements`).utils.isPasteEnabled(r)})}}])}(Ii)})),na=__esmMin((()=>{ta()}));function _callSuper$245(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$245()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$245(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$245=function _isNativeReflectConstruct(){return!!r})()}var ra,ia=__esmMin((()=>{P(),b(),w(),E(),D(),A(),Fr(),__name(_callSuper$245,`_callSuper`),__name(_isNativeReflectConstruct$245,`_isNativeReflectConstruct`),ra=function(r){function HandleDynamic(){return _classCallCheck(this,HandleDynamic),_callSuper$245(this,HandleDynamic,arguments)}return _inherits(HandleDynamic,r),_createClass(HandleDynamic,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`handle-dynamic`}},{key:`getContainerType`,value:function getContainerType(){return`dynamic`}},{key:`getConditions`,value:function getConditions(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return r.type===`dynamic`})}},{key:`apply`,value:function apply(r){var c=r.containers;return(c===void 0?[r.container]:c).forEach(function(r){if(r.type===`dynamic`){var c=elementor.dynamicTags.tagContainerToTagText(r),l={container:r.parent,settings:_defineProperty({},r.view.options.controlName,c)};$e.run(`document/dynamic/settings`,l)}}),!0}}])}(Pr)}));function _callSuper$244(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$244()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$244(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$244=function _isNativeReflectConstruct(){return!!r})()}var aa,oa=__esmMin((()=>{b(),w(),E(),D(),A(),Fr(),__name(_callSuper$244,`_callSuper`),__name(_isNativeReflectConstruct$244,`_isNativeReflectConstruct`),aa=function(r){function ResizeColumn(){return _classCallCheck(this,ResizeColumn),_callSuper$244(this,ResizeColumn,arguments)}return _inherits(ResizeColumn,r),_createClass(ResizeColumn,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`resize-column`}},{key:`getContainerType`,value:function getContainerType(){return`column`}},{key:`getConditions`,value:function getConditions(r){return r.settings._inline_size}},{key:`apply`,value:function apply(r){var c=this,l=r.containers;return(l===void 0?[r.container]:l).forEach(function(l){c.resizeColumn(l,r.settings._inline_size)}),!0}},{key:`resizeColumn`,value:function resizeColumn(r,c){var l=r.parent.view.getNeighborContainer(r);if(!l)return!1;var u=r.parent.view,p=r.view,m=null;if(r.oldValues===void 0||r.oldValues._inline_size===null)m=r.settings.get(`_column_size`);else{var h=u.$el.find(` > .elementor-container`)[0].getBoundingClientRect().width;m=+(r.oldValues._inline_size||p.el.getBoundingClientRect().width/h*100)}var g=l.view,v=g.$el,y=+g.model.getSetting(`_inline_size`)||r.parent.view.getColumnPercentSize(v,v[0].getBoundingClientRect().width),b=+(m+y-c).toFixed(3);return $e.run(`document/elements/settings`,{containers:[l],settings:{_inline_size:b},options:{callbacks:{"resize-column-limit":!1},history:{title:elementor.config.elements.column.controls._inline_size.label},external:!0,debounce:!0}}),!0}}])}(Pr)}));function _callSuper$243(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$243()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$243(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$243=function _isNativeReflectConstruct(){return!!r})()}var sa,ca,la=__esmMin((()=>{b(),w(),E(),D(),A(),Li(),sa=__toESM(Kn()),__name(_callSuper$243,`_callSuper`),__name(_isNativeReflectConstruct$243,`_isNativeReflectConstruct`),ca=function(r){function ResizeColumnLimit(){return _classCallCheck(this,ResizeColumnLimit),_callSuper$243(this,ResizeColumnLimit,arguments)}return _inherits(ResizeColumnLimit,r),_createClass(ResizeColumnLimit,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`resize-column-limit`}},{key:`getContainerType`,value:function getContainerType(){return`column`}},{key:`getConditions`,value:function getConditions(r){return r.settings._inline_size}},{key:`apply`,value:function apply(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(c){var l=c.parent.view,u=c.view,p=c.settings.get(`_inline_size`)||c.settings.get(`_column_size`),m=r.settings._inline_size,h=l.getNextColumn(u)||l.getPreviousColumn(u);if(!h)return $e.devTools&&$e.devTools.log.error(`There is not any next column`),!1;var g=h.$el;return+(p+(+h.model.getSetting(`_inline_size`)||l.getColumnPercentSize(g,g[0].getBoundingClientRect().width))-m).toFixed(3)<sa.DEFAULT_INNER_SECTION_COLUMNS?($e.devTools&&$e.devTools.log.error(`New column width is too large`),!1):m<sa.DEFAULT_INNER_SECTION_COLUMNS?($e.devTools&&$e.devTools.log.error(`New column width is too small`),!1):!0})}}])}(Ii)}));function _callSuper$242(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$242()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$242(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$242=function _isNativeReflectConstruct(){return!!r})()}var ua,da=__esmMin((()=>{b(),w(),E(),D(),A(),Fr(),__name(_callSuper$242,`_callSuper`),__name(_isNativeReflectConstruct$242,`_isNativeReflectConstruct`),ua=function(r){function SetStructure(){return _classCallCheck(this,SetStructure),_callSuper$242(this,SetStructure,arguments)}return _inherits(SetStructure,r),_createClass(SetStructure,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`set-structure`}},{key:`getContainerType`,value:function getContainerType(){return`section`}},{key:`getConditions`,value:function getConditions(r){return!!r.settings.structure}},{key:`apply`,value:function apply(r){var c=r.containers;return(c===void 0?[r.container]:c).forEach(function(r){r.view.adjustColumns()}),!0}}])}(Pr)})),fa=__esmMin((()=>{ia(),oa(),la(),da()})),pa=__esmMin((()=>{Gi(),Xi(),$i(),na(),fa()}));function _callSuper$241(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$241()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$241(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$241=function _isNativeReflectConstruct(){return!!r})()}var ma,ha=__esmMin((()=>{b(),w(),E(),D(),A(),jr(),__name(_callSuper$241,`_callSuper`),__name(_isNativeReflectConstruct$241,`_isNativeReflectConstruct`),ma=function(r){function Base(){return _classCallCheck(this,Base),_callSuper$241(this,Base,arguments)}return _inherits(Base,r),_createClass(Base,[{key:`getType`,value:function getType(){return`ui`}}])}(Ar)}));function _callSuper$240(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$240()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$240(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$240=function _isNativeReflectConstruct(){return!!r})()}var K,q=__esmMin((()=>{b(),w(),E(),D(),A(),ha(),__name(_callSuper$240,`_callSuper`),__name(_isNativeReflectConstruct$240,`_isNativeReflectConstruct`),K=function(r){function After(){return _classCallCheck(this,After),_callSuper$240(this,After,arguments)}return _inherits(After,r),_createClass(After,[{key:`register`,value:function register(){$e.hooks.registerUIAfter(this)}}])}(ma)}));function _callSuper$239(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$239()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$239(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$239=function _isNativeReflectConstruct(){return!!r})()}var ga,_a=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$239,`_callSuper`),__name(_isNativeReflectConstruct$239,`_isNativeReflectConstruct`),ga=function(r){function ColumnIsPopulated(){return _classCallCheck(this,ColumnIsPopulated),_callSuper$239(this,ColumnIsPopulated,arguments)}return _inherits(ColumnIsPopulated,r),_createClass(ColumnIsPopulated,[{key:`getCommand`,value:function getCommand(){return`document/elements/create`}},{key:`getId`,value:function getId(){return`column-is-populated`}},{key:`getConditions`,value:function getConditions(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return r.model.get(`elType`)===`column`})}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){r.model.get(`elType`)===`column`&&r.view.changeChildContainerClasses()})}}])}(K)}));function _callSuper$238(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$238()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$238(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$238=function _isNativeReflectConstruct(){return!!r})()}var va,ya=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$238,`_callSuper`),__name(_isNativeReflectConstruct$238,`_isNativeReflectConstruct`),va=function(r){function CreateSectionIsFull(){return _classCallCheck(this,CreateSectionIsFull),_callSuper$238(this,CreateSectionIsFull,arguments)}return _inherits(CreateSectionIsFull,r),_createClass(CreateSectionIsFull,[{key:`getCommand`,value:function getCommand(){return`document/elements/create`}},{key:`getId`,value:function getId(){return`create-section-is-full`}},{key:`getConditions`,value:function getConditions(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return r.model.get(`elType`)===`section`})}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){r.model.get(`elType`)===`section`&&r.view.toggleSectionIsFull()})}}])}(K)})),ba=__esmMin((()=>{_a(),ya()}));function _callSuper$237(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$237()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$237(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$237=function _isNativeReflectConstruct(){return!!r})()}var xa,Sa=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$237,`_callSuper`),__name(_isNativeReflectConstruct$237,`_isNativeReflectConstruct`),xa=function(r){function ColumnIsEmpty(){return _classCallCheck(this,ColumnIsEmpty),_callSuper$237(this,ColumnIsEmpty,arguments)}return _inherits(ColumnIsEmpty,r),_createClass(ColumnIsEmpty,[{key:`getCommand`,value:function getCommand(){return`document/elements/delete`}},{key:`getId`,value:function getId(){return`column-is-empty`}},{key:`getConditions`,value:function getConditions(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return r.parent.model.get(`elType`)===`column`})}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){r.parent.model.get(`elType`)===`column`&&r.parent.view.changeChildContainerClasses()})}}])}(K)}));function _callSuper$236(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$236()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$236(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$236=function _isNativeReflectConstruct(){return!!r})()}var Ca,wa=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$236,`_callSuper`),__name(_isNativeReflectConstruct$236,`_isNativeReflectConstruct`),Ca=function(r){function DeleteSectionIsFull(){return _classCallCheck(this,DeleteSectionIsFull),_callSuper$236(this,DeleteSectionIsFull,arguments)}return _inherits(DeleteSectionIsFull,r),_createClass(DeleteSectionIsFull,[{key:`getCommand`,value:function getCommand(){return`document/elements/delete`}},{key:`getId`,value:function getId(){return`delete-section-is-full`}},{key:`getConditions`,value:function getConditions(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return r.model.get(`elType`)===`column`})}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){r.model.get(`elType`)===`column`&&r.parent.view.toggleSectionIsFull()})}}])}(K)})),Ta=__esmMin((()=>{Sa(),wa()}));function _callSuper$235(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$235()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$235(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$235=function _isNativeReflectConstruct(){return!!r})()}var Ea,Da=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$235,`_callSuper`),__name(_isNativeReflectConstruct$235,`_isNativeReflectConstruct`),Ea=function(r){function MoveResizeableHandle(){return _classCallCheck(this,MoveResizeableHandle),_callSuper$235(this,MoveResizeableHandle,arguments)}return _inherits(MoveResizeableHandle,r),_createClass(MoveResizeableHandle,[{key:`getCommand`,value:function getCommand(){return`document/elements/create`}},{key:`getId`,value:function getId(){return`move-resizeable-handle`}},{key:`getConditions`,value:function getConditions(r){var c=r.containers;return(c===void 0?[r.container]:c).some(function(r){return r.model.get(`elType`)===`container`})}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){var c=r.view.$el,l=c.find(`> .ui-resizable-handle`).first();l&&c.append(l)})}}])}(K)})),Oa=__esmMin((()=>{Da()}));function _callSuper$234(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$234()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$234(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$234=function _isNativeReflectConstruct(){return!!r})()}var ka,Aa=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$234,`_callSuper`),__name(_isNativeReflectConstruct$234,`_isNativeReflectConstruct`),ka=function(r){function ChangePostTitle(){return _classCallCheck(this,ChangePostTitle),_callSuper$234(this,ChangePostTitle,arguments)}return _inherits(ChangePostTitle,r),_createClass(ChangePostTitle,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`change-post-title`}},{key:`getContainerType`,value:function getContainerType(){return`document`}},{key:`getConditions`,value:function getConditions(r){return r.settings.post_title!==void 0}},{key:`apply`,value:function apply(r){elementorFrontend.elements.$document.find(elementor.config.page_title_selector).text(r.settings.post_title)}}])}(K)}));function _callSuper$233(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$233()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$233(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$233=function _isNativeReflectConstruct(){return!!r})()}var ja,Ma=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$233,`_callSuper`),__name(_isNativeReflectConstruct$233,`_isNativeReflectConstruct`),ja=function(r){function ColumnChangeSize(){return _classCallCheck(this,ColumnChangeSize),_callSuper$233(this,ColumnChangeSize,arguments)}return _inherits(ColumnChangeSize,r),_createClass(ColumnChangeSize,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`column-change-size`}},{key:`getConditions`,value:function getConditions(r){return r.settings._inline_size!==void 0||r.settings._column_size!==void 0}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){r.view.changeSizeUI()})}}])}(K)}));function _callSuper$232(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$232()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$232(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$232=function _isNativeReflectConstruct(){return!!r})()}var Na,Pa=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$232,`_callSuper`),__name(_isNativeReflectConstruct$232,`_isNativeReflectConstruct`),Na=function(r){function Draggable(){return _classCallCheck(this,Draggable),_callSuper$232(this,Draggable,arguments)}return _inherits(Draggable,r),_createClass(Draggable,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`draggable`}},{key:`getConditions`,value:function getConditions(r){return r.settings._position!==void 0}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){r.view.options.draggable&&r.view.options.draggable.toggle()})}}])}(K)}));function _callSuper$231(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$231()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$231(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$231=function _isNativeReflectConstruct(){return!!r})()}var Fa,Ia=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$231,`_callSuper`),__name(_isNativeReflectConstruct$231,`_isNativeReflectConstruct`),Fa=function(r){function ExitTo(){return _classCallCheck(this,ExitTo),_callSuper$231(this,ExitTo,arguments)}return _inherits(ExitTo,r),_createClass(ExitTo,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`exit-to`}},{key:`getContainerType`,value:function getContainerType(){return`editorPreferences_settings`}},{key:`getConditions`,value:function getConditions(r){return r.settings.exit_to!==void 0}},{key:`apply`,value:function apply(){elementor.getPanelView().getPages(`menu`).view.addExitItem()}}])}(K)}));function _callSuper$230(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$230()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$230(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$230=function _isNativeReflectConstruct(){return!!r})()}var La,Ra=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$230,`_callSuper`),__name(_isNativeReflectConstruct$230,`_isNativeReflectConstruct`),La=function(r){function Resizeable(){return _classCallCheck(this,Resizeable),_callSuper$230(this,Resizeable,arguments)}return _inherits(Resizeable,r),_createClass(Resizeable,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`resizeable`}},{key:`getConditions`,value:function getConditions(r){return r.settings._position!==void 0||r.settings._element_width!==void 0}},{key:`apply`,value:function apply(r){var c=r.containers;(c===void 0?[r.container]:c).forEach(function(r){r.view.options.resizeable&&r.view.options.resizeable.toggle()})}}])}(K)}));function _callSuper$229(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$229()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$229(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$229=function _isNativeReflectConstruct(){return!!r})()}var za,Ba=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$229,`_callSuper`),__name(_isNativeReflectConstruct$229,`_isNativeReflectConstruct`),za=function(r){function ReloadPreview(){return _classCallCheck(this,ReloadPreview),_callSuper$229(this,ReloadPreview,arguments)}return _inherits(ReloadPreview,r),_createClass(ReloadPreview,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`save-layout`}},{key:`getContainerType`,value:function getContainerType(){return`document`}},{key:`getConditions`,value:function getConditions(r){return!!r.settings.template}},{key:`apply`,value:function apply(){return $e.run(`document/save/auto`,{force:!0}).then(function(){elementor.reloadPreview(),elementor.once(`preview:loaded`,function(){$e.route(`panel/page-settings/settings`)})})}}])}(K)}));function _callSuper$228(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$228()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$228(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$228=function _isNativeReflectConstruct(){return!!r})()}var Va,Ha=__esmMin((()=>{b(),w(),E(),D(),A(),q(),__name(_callSuper$228,`_callSuper`),__name(_isNativeReflectConstruct$228,`_isNativeReflectConstruct`),Va=function(r){function SetDirectionMode(){return _classCallCheck(this,SetDirectionMode),_callSuper$228(this,SetDirectionMode,arguments)}return _inherits(SetDirectionMode,r),_createClass(SetDirectionMode,[{key:`getCommand`,value:function getCommand(){return`document/elements/settings`}},{key:`getId`,value:function getId(){return`set-direction-mode--document/elements/settings`}},{key:`hasUiStates`,value:function hasUiStates(r){var c;return!!((c=r.renderer)!=null&&(c=c.view)!=null&&c.getCurrentUiStates)}},{key:`getConditions`,value:function getConditions(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(r.container?[r.container]:r.containers).some(this.hasUiStates)}},{key:`apply`,value:function apply(r){(r.container?[r.container]:r.containers).filter(this.hasUiStates).forEach(function(r){return SetDirectionMode.set(r)})}}],[{key:`set`,value:function set(r){var c;r=$e.routes.getCurrent(`panel`)===`panel/editor/advanced`?r.parent:r;var l=r.renderer.view,u=(c=l.getCurrentUiStates)==null?void 0:c.call(l).directionMode;if(u){$e.uiStates.set(`document/direction-mode`,u);return}$e.uiStates.remove(`document/direction-mode`)}}])}(K)})),Ua=__esmMin((()=>{Aa(),Ma(),Pa(),Ia(),Ra(),Ba(),Ha()})),Wa=__esmMin((()=>{ba(),Ta(),Oa(),Ua()})),Ga=__exportAll({ChangePostTitle:()=>ka,ColumnChangeSize:()=>ja,ColumnIsEmpty:()=>xa,ColumnIsPopulated:()=>ga,CreateColumnForEmptySection:()=>Ki,CreateSectionColumnsResetLayout:()=>Rr,CreateSectionIsFull:()=>va,DeleteColumnColumnsResetLayout:()=>Ji,DeleteSectionIsFull:()=>Ca,Draggable:()=>Na,ExitTo:()=>Fa,HandleDynamic:()=>ra,InnerSectionColumns:()=>Pi,IsPasteEnabled:()=>ea,IsValidChild:()=>Ri,MoveResizeableHandle:()=>Ea,ReloadPreview:()=>za,ResizeColumn:()=>aa,ResizeColumnLimit:()=>ca,Resizeable:()=>La,SectionColumns:()=>Vi,SectionColumnsLimit:()=>Ui,SectionColumnsSetStructure:()=>Zi,SetDirectionMode:()=>Va,SetStructure:()=>ua}),Ka=__esmMin((()=>{pa(),Wa()}));function isWidgetSupportNesting(r){var c=elementor.widgetsCache[r];return c?c.support_nesting:!1}function isWidgetSupportAtomicRepeaters(r){var c=elementor.widgetsCache[r];return c?c.support_improved_repeaters:!1}function widgetNodes(r){var c=elementor.widgetsCache[r];return c?{targetContainer:c.target_container,node:c.node}:!1}function shouldUseAtomicRepeaters(r){return isWidgetSupportNesting(r)&&isWidgetSupportAtomicRepeaters(r)}var qa=__esmMin((()=>{})),Ja=__commonJSMin(((c,l)=>{P(),ge(),In(),lr(),En(),kr(),Ka(),qa();var u=Bn(),p=Wn();l.exports=p.extend({template:Marionette.TemplateCache.get(`#tmpl-elementor-container-content`),emptyView:Or,destroyEmptyView:function destroyEmptyView(){if(this.isFlexContainer())return Marionette.CompositeView.prototype.destroyEmptyView.apply(this,arguments)},getChildViewContainer:function getChildViewContainer(){return this.childViewContainer=this.isBoxedWidth()?`> .e-con-inner`:``,Marionette.CompositeView.prototype.getChildViewContainer.apply(this,arguments)},getChildType:function getChildType(){var r=(0,u.getAllElementTypes)().filter(function(r){return r!==`section`&&r!==`column`});return[].concat(_toConsumableArray(r),[`widget`])},className:function className(){var r=this.model.get(`isInner`)?`e-child`:`e-parent`;return`${p.prototype.className.apply(this)} e-con ${r}`},filterSettings:function filterSettings(r){if((0,u.getAllElementTypes)().includes(r.elType)){var c=this;(c.isBoxedWidth()||c.getNestingLevel()!==0)&&(r.settings.content_width=`full`)}},childViewOptions:function childViewOptions(){return{emptyViewOwner:this}},tagName:function tagName(){return this.model.getSetting(`html_tag`)||`div`},ui:function ui(){var r=p.prototype.ui.apply(this,arguments);return r.percentsTooltip=`> .elementor-element-overlay .elementor-column-percents-tooltip`,r},getCurrentUiStates:function getCurrentUiStates(){var r=elementor.channels.deviceMode.request(`currentMode`),c=r===`desktop`?``:`_`+r,l=this.getDirectionSettingKey()+c;return{directionMode:this.container.settings.get(l)||G.DIRECTION_DEFAULT}},onDeviceModeChange:function onDeviceModeChange(){Va.set(this.getContainer())},getDirectionSettingKey:function getDirectionSettingKey(){return this.container.settings.get(`container_type`)===`grid`?`grid_auto_flow`:`flex_direction`},behaviors:function behaviors(){var r=p.prototype.behaviors.apply(this,arguments);return _.extend(r,{Sortable:{behaviorClass:Gn(),elChildType:`widget`},Resizable:{behaviorClass:cr}}),elementor.hooks.applyFilters(`elements/container/behaviors`,r,this)},initialize:function initialize(){p.prototype.initialize.apply(this,arguments),this.model.get(`editSettings`).set(`defaultEditRoute`,`layout`),this.onDeviceModeChange=this.onDeviceModeChange.bind(this),elementor.listenTo(elementor.channels.deviceMode,`change`,this.onDeviceModeChange)},onDestroy:function onDestroy(){p.prototype.onDestroy.apply(this,arguments),elementor.stopListening(elementor.channels.deviceMode,`change`,this.onDeviceModeChange)},getSortableOptions:function getSortableOptions(){return{preventInit:!0}},getNestingLevel:function getNestingLevel(){if(this.nestingLevel)return this.nestingLevel;var r=this.container.parent;return r.type===`container`?r.view.getNestingLevel()+1:0},isNestedElementContentContainer:function isNestedElementContentContainer(){var r=this.container.parent.model.get(`widgetType`);return r&&r.trim()!==``&&isWidgetSupportNesting(r)},getDroppableAxis:function getDroppableAxis(){var r=G.DIRECTION_DEFAULT===G.DIRECTION_COLUMN,c=this.getContainer().settings.get(this.getDirectionSettingKey());return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},G.DIRECTION_COLUMN,`vertical`),G.DIRECTION_COLUMN_REVERSED,`vertical`),G.DIRECTION_ROW,`horizontal`),G.DIRECTION_ROW_REVERSED,`horizontal`),``,r?`vertical`:`horizontal`)[c]},getDroppableOptions:function getDroppableOptions(){var r=this,c=this.isBoxedWidth()?`> .elementor-widget, > .e-con-full, > .e-con > .e-con-inner, > .elementor-empty-view > .elementor-first-add`:`> .elementor-element, > .elementor-empty-view .elementor-first-add`;return{axis:this.getDroppableAxis(),items:c,groups:[`elementor-element`],horizontalThreshold:5,isDroppingAllowed:this.isDroppingAllowed.bind(this),currentElementClass:`elementor-html5dnd-current-element`,placeholderClass:`elementor-sortable-placeholder elementor-widget-placeholder`,hasDraggingOnChildClass:`e-dragging-over`,getDropContainer:function getDropContainer(){return r.getContainer()},onDropping:function onDropping(c,l){l.stopPropagation(),elementor.getPreviewView().onPanelElementDragEnd();var u=elementor.channels.editor.request(`element:dragged`),p=(u==null?void 0:u.parent)===r,m=jQuery(l.currentTarget).hasClass(`e-con-inner`),h=m?l.currentTarget.parentElement.parentElement:l.currentTarget.parentElement,g=jQuery(h).find(`> .elementor-element`);p&&(g=g.not(u.$el));var v=Object.values(g),y=m?v.indexOf(l.currentTarget.parentElement):v.indexOf(l.currentTarget);if(r.shouldIncrementIndex(c)&&y++,u){for(var b=u.getContainer().id,x=r.container;x;){if(x.id===b)return;x=x.parent}elementor.channels.editor.reply(`element:dragged`,null),$e.run(`document/elements/move`,{container:u.getContainer(),target:r.getContainer(),options:{at:y}});return}r.onDrop(l,{at:y})}}},saveAsTemplate:function saveAsTemplate(){elementor.templates.eventManager.sendNewSaveTemplateClickedEvent(),$e.route(`library/save-template`,{model:this.model})},addNewContainer:function addNewContainer(){var r=this.getContainer().getParentAncestry()[1].type===`container`?this.getContainer().parent:this.getContainer();$e.run(`document/elements/create`,{model:{elType:`container`,settings:{content_width:`full`}},container:r})},getContextMenuGroups:function getContextMenuGroups(){var c=this,l=p.prototype.getContextMenuGroups.apply(this,arguments),u=l.indexOf(_.findWhere(l,{name:`clipboard`})),m=l.indexOf(_.findWhere(l,{name:`general`}));return l.splice(u+1,0,{name:`save`,actions:[{name:`save`,title:(0,r.__)(`Save as a template`,`elementor`),shortcut:`<span class="elementor-context-menu-list__item__shortcut__new-badge">${(0,r.__)(`New`,`elementor`)}</span>`,callback:this.saveAsTemplate.bind(this),isEnabled:function isEnabled(){return!c.getContainer().isLocked()}}]}),l.splice(m+1,0,{name:`newContainerGroup`,actions:[{name:`newContainer`,icon:`eicon-plus`,title:(0,r.__)(`Add New Container`,`elementor`),callback:this.addNewContainer.bind(this)}]}),l},isDroppingAllowed:function isDroppingAllowed(){if(!this.getContainer().isEditable())return!1;var r=elementor.channels.panelElements.request(`element:selected`)||elementor.channels.editor.request(`element:dragged`);return r?[].concat(_toConsumableArray((0,u.getAllElementTypes)()),[`widget`]).includes(r.model.get(`elType`)):!1},isNested:function isNested(){return this.getContainer().parent.model.get(`elType`)!==`document`},getEditButtons:function getEditButtons(){var c=elementor.getElementData(this.model),l={};return $e.components.get(`document/elements`).utils.allowAddingWidgets()&&(l.add={title:(0,r.sprintf)((0,r.__)(`Add %s`,`elementor`),c.title),icon:`plus`},l.edit={title:(0,r.sprintf)((0,r.__)(`Edit %s`,`elementor`),c.title),icon:`handle`}),this.getContainer().isLocked()||(elementor.getPreferences(`edit_buttons`)&&$e.components.get(`document/elements`).utils.allowAddingWidgets()&&(l.duplicate={title:(0,r.sprintf)((0,r.__)(`Duplicate %s`,`elementor`),c.title),icon:`clone`}),l.remove={title:(0,r.sprintf)((0,r.__)(`Delete %s`,`elementor`),c.title),icon:`close`}),l},onAddButtonClick:function onAddButtonClick(){if(this.addSectionView&&!this.addSectionView.isDestroyed){this.addSectionView.fadeToDeath();return}var r=new Fn({at:this.model.collection.indexOf(this.model)});r.render(),this.$el.before(r.$el),r.$el.hide(),setTimeout(function(){r.$el.slideDown(null,function(){jQuery(this).css(`display`,``)})}),this.addSectionView=r},onRender:function onRender(){var r=this;p.prototype.onRender.apply(this,arguments),setTimeout(function(){r.nestingLevel=r.getNestingLevel(),r.$el[0].dataset.nestingLevel=r.nestingLevel;var c=r.model.get(`isInner`)||r.isNestedElementContentContainer()||r.getNestingLevel()>0;r.model.set(`isInner`,c),r.$el.toggleClass(`e-child`,c).toggleClass(`e-parent`,!c),r.isGridContainer()&&r.reInitEmptyView(),r.droppableInitialize(r.container.settings)})},onRenderEmpty:function onRenderEmpty(){this.$el.addClass(`e-empty`)},onAddChild:function onAddChild(){this.$el.removeClass(`e-empty`),this.isGridContainer()&&this.handleGridEmptyView()},renderOnChange:function renderOnChange(r){p.prototype.renderOnChange.apply(this,arguments),(r.changed.flex_direction||r.changed.content_width||r.changed.grid_auto_flow||r.changed.container_type)&&(this.isGridContainer()&&this.reInitEmptyView(),this.isFlexContainer()&&!this.isEmpty()&&this.getCorrectContainerElement().find(`> .elementor-empty-view`).remove(),this.droppableDestroy(),this.droppableInitialize(r)),r.changed.container_type&&this.updatePanelTitlesAndIcons()},updatePanelTitlesAndIcons:function updatePanelTitlesAndIcons(){var c=this.getPanelTitle(),l=this.getPanelIcon();this.model.set(`icon`,l),this.model.set(`title`,c),this.model.get(`settings`).set(`presetTitle`,c),this.model.get(`settings`).set(`presetIcon`,l),jQuery(`#elementor-panel-header-title`).html((0,r.sprintf)((0,r.__)(`Edit %s`,`elementor`),c)),this.updateNeedHelpLink()},getPanelTitle:function getPanelTitle(){return this.isFlexContainer()?(0,r.__)(`Container`,`elementor`):(0,r.__)(`Grid`,`elementor`)},getPanelIcon:function getPanelIcon(){return this.isFlexContainer()?`eicon-container`:`eicon-container-grid`},onDragStart:function onDragStart(){this.droppableDestroy()},onDragEnd:function onDragEnd(){this.droppableInitialize(this.container.settings)},attachElContent:function attachElContent(){p.prototype.attachElContent.apply(this,arguments);var r=jQuery(`<div>`,{class:`elementor-column-percents-tooltip`,"data-side":elementorCommon.config.isRTL?`right`:`left`});this.$el.children(`.elementor-element-overlay`).append(r)},getPercentSize:function getPercentSize(r){return r||(r=this.el.getBoundingClientRect().width),+(r/this.$el.parent().width()*100).toFixed(3)},getPercentsForDisplay:function getPercentsForDisplay(){return(+this.model.getSetting(`width`)||this.getPercentSize()).toFixed(1)+`%`},onResizeStart:function onResizeStart(){this.ui.percentsTooltip&&this.ui.percentsTooltip.show()},onResize:function onResize(){this.ui.percentsTooltip&&this.ui.percentsTooltip.text(this.getPercentsForDisplay())},onResizeStop:function onResizeStop(){this.ui.percentsTooltip&&this.ui.percentsTooltip.hide()},droppableDestroy:function droppableDestroy(){this.$el.html5Droppable(`destroy`),this.$el.find(`> .e-con-inner`).html5Droppable(`destroy`)},droppableInitialize:function droppableInitialize(r){r.get(`content_width`)===`boxed`?this.$el.find(`> .e-con-inner`).html5Droppable(this.getDroppableOptions()):this.$el.html5Droppable(this.getDroppableOptions())},handleGridEmptyView:function handleGridEmptyView(){var r=this.getCorrectContainerElement(),c=r.find(`> .elementor-empty-view`);this.moveElementToLastChild(r,c)},moveElementToLastChild:function moveElementToLastChild(r,c){var l=r.get(0),u=c.get(0);!l||!u||l.lastChild!==u&&l.appendChild(u)},getCorrectContainerElement:function getCorrectContainerElement(){return this.isBoxedWidth()?this.$el.find(`> .e-con-inner`):this.$el},shouldIncrementIndex:function shouldIncrementIndex(r){return this.draggingOnBottomOrRightSide(r)?!(this.isGridContainer()&&this.emptyViewIsCurrentlyBeingDraggedOver()):!1},draggingOnBottomOrRightSide:function draggingOnBottomOrRightSide(r){return[`bottom`,`right`].includes(r)},isGridContainer:function isGridContainer(){return this.getContainer().settings.get(`container_type`)===`grid`},isFlexContainer:function isFlexContainer(){return this.getContainer().settings.get(`container_type`)===`flex`},isBoxedWidth:function isBoxedWidth(){return this.getContainer().settings.get(`content_width`)===`boxed`},emptyViewIsCurrentlyBeingDraggedOver:function emptyViewIsCurrentlyBeingDraggedOver(){return this.getCorrectContainerElement().find(`> .elementor-empty-view > .elementor-first-add.elementor-html5dnd-current-element`).length>0},reInitEmptyView:function reInitEmptyView(){this.getCorrectContainerElement().find(`> .elementor-empty-view`).length||(delete this._showingEmptyView,this.showEmptyView(),this.handleGridEmptyView())},updateNeedHelpLink:function updateNeedHelpLink(){var r=jQuery(`#elementor-panel__editor__help__link`),c=this.isGridContainer()?`https://go.elementor.com/widget-container-grid`:`https://go.elementor.com/widget-container`;r&&r.attr(`href`,c)}})})),Ya=__exportAll({default:()=>Za});function _callSuper$227(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$227()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$227(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$227=function _isNativeReflectConstruct(){return!!r})()}var Xa,Za,Qa=__esmMin((()=>{b(),w(),E(),D(),A(),Jt(),br(),Cr(),Xa=__toESM(Ja()),__name(_callSuper$227,`_callSuper`),__name(_isNativeReflectConstruct$227,`_isNativeReflectConstruct`),Za=function(r){function Container(){return _classCallCheck(this,Container),_callSuper$227(this,Container,arguments)}return _inherits(Container,r),_createClass(Container,[{key:`getType`,value:function getType(){return`container`}},{key:`getView`,value:function getView(){return Xa.default}},{key:`getEmptyView`,value:function getEmptyView(){return EmptyComponent}},{key:`getModel`,value:function getModel(){return Sr}}])}(qt)}));b(),w(),P(),Jt();var $a=function(){function ElementsManager(){_classCallCheck(this,ElementsManager),_defineProperty(this,`elementTypes`,{}),this.registerElements()}return _createClass(ElementsManager,[{key:`getElementTypeClass`,value:function getElementTypeClass(r){var c=this.elementTypes[r];return!c&&elementor.widgetsCache[r]&&(c=this.elementTypes.widget),c}},{key:`registerElementType`,value:function registerElementType(r){if(!(r instanceof qt))throw TypeError(`The element argument must be an instance of ElementBase.`);var c=r.getType();if(this.elementTypes[c])throw Error(`Element type already registered`);this.elementTypes[c]=r}},{key:`registerElements`,value:function registerElements(){var r=this;if(Object.values(hr).forEach(function(c){var l=new c;r.registerElementType(l)}),elementorCommon.config.experimentalFeatures.container){var c=(Qa(),__toCommonJS(Ya)).default;this.registerElementType(new c)}}}])}();b(),w(),P();var eo=function(){function GlobalColorIntroduction(r){_classCallCheck(this,GlobalColorIntroduction),_defineProperty(this,`introductionKey`,void 0),this.introductionKey=r}return _createClass(GlobalColorIntroduction,[{key:`bindEvent`,value:function bindEvent(){var r=this;$e.routes.on(`run:after`,function(c,l,u){var p;if($e.routes.isPartOf(`panel/editor`)){var m=r.getControlView(u.activeControl);(m==null||(p=m.model)==null||(p=p.attributes)==null?void 0:p.type)===`color`&&(r.tooltip.show(m.el),r.tooltip.setViewed())}})}},{key:`getControlView`,value:function getControlView(r){if(!r)return null;var c=elementor.getPanelView().getCurrentPageView(),l=c.content?c.content.currentView:c;return $e.components.get(`panel`).getControlViewByPath(l,r)}},{key:`initTooltip`,value:function initTooltip(){var c=this;this.tooltip=new elementorModules.editor.utils.Introduction({introductionKey:this.introductionKey,dialogType:`tooltip`,dialogOptions:{headerMessage:(0,r.__)(`Check out Global Colors`,`elementor`),message:(0,r.sprintf)((0,r.__)(`Save time by applying Global Colors to change the style of multiple elements at once. Click %s to see what Global Colors you already have.`,`elementor`),`<i class='eicon-globe'></i>`),position:{my:(elementorCommon.config.isRTL?`left`:`right`)+`0 top0`,at:(elementorCommon.config.isRTL?`left`:`right`)+` top-10`},hide:{onOutsideClick:!1,onBackgroundClick:!1,onEscKeyPress:!1}}}),this.tooltip.getDialog().addButton({name:`action`,text:(0,r.__)(`Got it!`,`elementor`),classes:`elementor-button e-primary`,callback:function callback(){return c.tooltip.getDialog().hide()}})}}])}();b(),w(),P();var no=function(){function GlobalFontIntroduction(r){_classCallCheck(this,GlobalFontIntroduction),_defineProperty(this,`introductionKey`,void 0),this.introductionKey=r}return _createClass(GlobalFontIntroduction,[{key:`bindEvent`,value:function bindEvent(){var r=this;$e.routes.on(`run:after`,function(c,l,u){var p;if($e.routes.isPartOf(`panel/editor`)){var m=r.getControlView(u.activeControl);(m==null||(p=m.model)==null||(p=p.attributes)==null?void 0:p.type)===`popover_toggle`&&(r.tooltip.show(m.el),r.tooltip.setViewed())}})}},{key:`getControlView`,value:function getControlView(r){if(!r)return null;var c=elementor.getPanelView().getCurrentPageView(),l=c.content?c.content.currentView:c;return $e.components.get(`panel`).getControlViewByPath(l,r)}},{key:`initTooltip`,value:function initTooltip(){var c=this;this.tooltip=new elementorModules.editor.utils.Introduction({introductionKey:this.introductionKey,dialogType:`tooltip`,dialogOptions:{headerMessage:(0,r.__)(`Check out Global Fonts`,`elementor`),message:(0,r.sprintf)((0,r.__)(`Save time by applying Global Fonts to change the style of multiple elements at once. Click %s to see what Global Fonts you already have.`,`elementor`),`<i class='eicon-globe'></i>`),position:{my:(elementorCommon.config.isRTL?`left`:`right`)+`0 top0`,at:(elementorCommon.config.isRTL?`left`:`right`)+` top-10`},hide:{onOutsideClick:!1,onBackgroundClick:!1,onEscKeyPress:!1}}}),this.tooltip.getDialog().addButton({name:`action`,text:(0,r.__)(`Got it!`,`elementor`),classes:`elementor-button e-primary`,callback:function callback(){return c.tooltip.getDialog().hide()}})}}])}();b(),w();var ro=function(){function IntroductionTooltipsManager(){_classCallCheck(this,IntroductionTooltipsManager),this.registerTooltipWidget(),this.registerTooltips()}return _createClass(IntroductionTooltipsManager,[{key:`registerTooltipWidget`,value:function registerTooltipWidget(){DialogsManager.addWidgetType(`tooltip`,DialogsManager.getWidgetType(`buttons`).extend(`tooltip`,{buildWidget:function buildWidget(){var r=this;DialogsManager.getWidgetType(`buttons`).prototype.buildWidget.apply(this,arguments);var c=this.getElements();c.$title=jQuery(`<div>`,{class:`dialog-tooltip-widget__title`}),c.$closeButton=jQuery(`<i>`,{class:`eicon-close`}),c.$closeButton.on(`click`,function(){return r.hide()}),c.header.append(c.$title,c.$closeButton)}}))}},{key:`registerTooltips`,value:function registerTooltips(){[new eo(`globals_introduction`),new no(`globals_introduction`)].forEach(function(r){elementor.config.user.introduction[r.introductionKey]||(r.initTooltip(),r.bindEvent())})}}])}();b(),w(),E(),D(),A();function _callSuper$226(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$226()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$226,`_callSuper`);function _isNativeReflectConstruct$226(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$226=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$226,`_isNativeReflectConstruct`);var io=function(r){function CommandsBase(){return _classCallCheck(this,CommandsBase),_callSuper$226(this,CommandsBase,arguments)}return _inherits(CommandsBase,r),_createClass(CommandsBase,[{key:`validateArgs`,value:function validateArgs(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.requireArgumentType(`type`,`string`,r),this.requireArgumentType(`favorite`,`string`,r)}}])}($e.modules.CommandBase);b(),w(),E(),D(),A();function _callSuper$225(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$225()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$225,`_callSuper`);function _isNativeReflectConstruct$225(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$225=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$225,`_isNativeReflectConstruct`);var ao=function(r){function Create(){return _classCallCheck(this,Create),_callSuper$225(this,Create,arguments)}return _inherits(Create,r),_createClass(Create,[{key:`apply`,value:function apply(r){var c;return(c=this.component.manager.typeInstance(r.type))==null?void 0:c.create(r.favorite)}}])}(io);b(),w(),E(),D(),A();function _callSuper$224(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$224()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$224,`_callSuper`);function _isNativeReflectConstruct$224(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$224=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$224,`_isNativeReflectConstruct`);var oo=function(r){function Delete(){return _classCallCheck(this,Delete),_callSuper$224(this,Delete,arguments)}return _inherits(Delete,r),_createClass(Delete,[{key:`apply`,value:function apply(r){var c;return(c=this.component.manager.typeInstance(r.type))==null?void 0:c.delete(r.favorite)}}])}(io);b(),w(),E(),D(),A();function _callSuper$223(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$223()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$223,`_callSuper`);function _isNativeReflectConstruct$223(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$223=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$223,`_isNativeReflectConstruct`);var so=function(r){function Toggle(){return _classCallCheck(this,Toggle),_callSuper$223(this,Toggle,arguments)}return _inherits(Toggle,r),_createClass(Toggle,[{key:`apply`,value:function apply(r){var c;return(c=this.component.manager.typeInstance(r.type))==null?void 0:c.toggle(r.favorite)}}])}($e.modules.CommandBase),co=__exportAll({Create:()=>ao,Delete:()=>oo,Toggle:()=>so}),lo=__exportAll({Index:()=>uo});b(),w(),E(),D(),A();function _callSuper$222(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$222()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$222,`_callSuper`);function _isNativeReflectConstruct$222(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$222=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$222,`_isNativeReflectConstruct`);var uo=function(r){function Index(){return _classCallCheck(this,Index),_callSuper$222(this,Index,arguments)}return _inherits(Index,r),_createClass(Index,null,[{key:`getEndpointFormat`,value:function getEndpointFormat(){return`favorites/{type}`}}])}($e.modules.CommandData);b(),w(),E(),D(),A();function _callSuper$221(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$221()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$221,`_callSuper`);function _isNativeReflectConstruct$221(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$221=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$221,`_isNativeReflectConstruct`);var fo=function(r){function Component(){return _classCallCheck(this,Component),_callSuper$221(this,Component,arguments)}return _inherits(Component,r),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`favorites`}},{key:`defaultCommands`,value:function defaultCommands(){return this.importCommands(co)}},{key:`defaultData`,value:function defaultData(){return this.importCommands(lo)}}])}($e.modules.ComponentBase);b(),w();var po=function(){function FavoriteType(){_classCallCheck(this,FavoriteType)}return _createClass(FavoriteType,[{key:`getName`,value:function getName(){}},{key:`create`,value:function create(r){}},{key:`delete`,value:function _delete(r){}},{key:`toggle`,value:function toggle(r){}}])}();b(),w(),E(),D(),A();function _callSuper$220(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$220()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$220,`_callSuper`);function _isNativeReflectConstruct$220(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$220=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$220,`_isNativeReflectConstruct`);var mo=function(r){function PanelCategoryBehavior(){return _classCallCheck(this,PanelCategoryBehavior),_callSuper$220(this,PanelCategoryBehavior,arguments)}return _inherits(PanelCategoryBehavior,r),_createClass(PanelCategoryBehavior,[{key:`onRender`,value:function onRender(){this.isFavoritesCategory()&&(this.view.collection.length||this.$el.hide())}},{key:`isFavoritesCategory`,value:function isFavoritesCategory(){return this.view.options.model.get(`name`)===`favorites`}}])}(Marionette.Behavior);b(),w(),E(),D(),A();function _callSuper$219(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$219()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$219,`_callSuper`);function _isNativeReflectConstruct$219(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$219=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$219,`_isNativeReflectConstruct`);var ho=function(c){function Widgets(){var r;return _classCallCheck(this,Widgets),r=_callSuper$219(this,Widgets),elementor.hooks.addFilter(`panel/category/behaviors`,r.addCategoryBehavior.bind(r)),elementor.hooks.addFilter(`panel/element/contextMenuGroups`,r.addContextMenuGroups.bind(r)),r}return _inherits(Widgets,c),_createClass(Widgets,[{key:`getName`,value:function getName(){return`widgets`}},{key:`create`,value:function create(r){var c=this.getWidgetCache(r);if(c!==void 0){c.categories.push(this.getCategorySlug());var l=$e.data.create(`favorites/index`,{},{type:this.getName(),favorite:r});return this.refreshCategories(),l}return!1}},{key:`delete`,value:function _delete(r){var c=this.getWidgetCache(r);if(c!==void 0){c.categories.splice(c.categories.indexOf(this.getCategorySlug()),1);var l=$e.data.delete(`favorites/index`,{type:this.getName(),favorite:r});return this.refreshCategories(),l}return!1}},{key:`toggle`,value:function toggle(r){if(this.getWidgetCache(r)!==void 0){var c={type:this.getName(),favorite:r};return this.isFavorite(r)?$e.run(`favorites/delete`,c):$e.run(`favorites/create`,c)}return!1}},{key:`isFavorite`,value:function isFavorite(r){var c=this.getWidgetCache(r);return c!==void 0&&c.categories.includes(this.getCategorySlug())}},{key:`getCategorySlug`,value:function getCategorySlug(){return`favorites`}},{key:`addCategoryBehavior`,value:function addCategoryBehavior(r){return Object.assign({},r,{favoriteWidgets:{behaviorClass:mo}})}},{key:`addContextMenuGroups`,value:function addContextMenuGroups(c,l){var u=this,p=l.options.model.get(`widgetType`)||l.options.model.get(`elType`);return c.concat([{name:`favorite-toggle`,actions:[{name:`toggle`,icon:this.isFavorite(p)?`eicon-heart-o`:`eicon-heart`,title:this.isFavorite(p)?(0,r.__)(`Remove from Favorites`,`elementor`):(0,r.__)(`Add to Favorites`,`elementor`),callback:function callback(){u.toggle(p),u.isFavorite(p)&&elementor.notifications.showToast({message:(0,r.__)(`Added`,`elementor`)})}}]}])}},{key:`refreshCategories`,value:function refreshCategories(){var r=elementor.getPanelView().perfectScrollbar.element,c=r.scrollTop,l=r.scrollHeight;$e.route(`panel/elements/categories`,{refresh:!0,onAfter:function onAfter(){r.scrollTop=c+(r.scrollHeight-l)}})}},{key:`getWidgetCache`,value:function getWidgetCache(r){return elementor.widgetsCache[r]}}])}(po);b(),w(),E(),D(),A(),P();function _callSuper$218(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$218()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$218,`_callSuper`);function _isNativeReflectConstruct$218(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$218=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$218,`_isNativeReflectConstruct`);var go=function(r){function FavoritesModule(){var r;return _classCallCheck(this,FavoritesModule),r=_callSuper$218(this,FavoritesModule),_defineProperty(r,`types`,{}),[ho].forEach(function(c){return r.register(c)}),r}return _inherits(FavoritesModule,r),_createClass(FavoritesModule,[{key:`onElementorLoaded`,value:function onElementorLoaded(){this.component=$e.components.register(new fo({manager:this}))}},{key:`typeInstance`,value:function typeInstance(r){if(this.types[r]===void 0)throw Error(`Type '${r}' is not found`);return this.types[r]}},{key:`register`,value:function register(r){var c=new r;this.types[c.getName()]=c}}])}(elementorModules.editor.utils.Module);function _callSuper$217(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$217()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$217(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$217=function _isNativeReflectConstruct(){return!!r})()}var _o,vo=__esmMin((()=>{b(),w(),E(),D(),A(),W(),__name(_callSuper$217,`_callSuper`),__name(_isNativeReflectConstruct$217,`_isNativeReflectConstruct`),_o=function(c){function Component(){return _classCallCheck(this,Component),_callSuper$217(this,Component,arguments)}return _inherits(Component,c),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`panel/history`}},{key:`defaultTabs`,value:function defaultTabs(){return{actions:{title:(0,r.__)(`Actions`,`elementor`)},revisions:{title:(0,r.__)(`Revisions`,`elementor`)}}}},{key:`defaultShortcuts`,value:function defaultShortcuts(){return{actions:{keys:`ctrl+shift+h`,dependency:function dependency(){return elementor.channels.dataEditMode.request(`activeMode`)===`edit`}}}}},{key:`renderTab`,value:function renderTab(r){elementor.getPanelView().setPage(`historyPage`).showView(r)}},{key:`activate`,value:function activate(){$e.components.activate(this.getTabRoute(this.currentTab))}},{key:`getTabsWrapperSelector`,value:function getTabsWrapperSelector(){return`#elementor-panel-elements-navigation`}}])}(U)}));function _callSuper$216(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$216()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$216(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$216=function _isNativeReflectConstruct(){return!!r})()}var yo,bo=__esmMin((()=>{b(),w(),E(),D(),A(),W(),__name(_callSuper$216,`_callSuper`),__name(_isNativeReflectConstruct$216,`_isNativeReflectConstruct`),yo=function(r){function Component(){return _classCallCheck(this,Component),_callSuper$216(this,Component,arguments)}return _inherits(Component,r),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`panel/history/actions`}},{key:`defaultCommands`,value:function defaultCommands(){return{do:function _do(r){return $e.run(`document/history/do`,r)},undo:function undo(){return $e.run(`document/history/undo`)},redo:function redo(){return $e.run(`document/history/redo`)}}}},{key:`defaultShortcuts`,value:function defaultShortcuts(){return{undo:{keys:`ctrl+z`,exclude:[`input`],scopes:[`panel`,`navigator`]},redo:{keys:`ctrl+shift+z, ctrl+y`,exclude:[`input`],scopes:[`panel`,`navigator`]}}}}])}(U)}));function _callSuper$215(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$215()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$215(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$215=function _isNativeReflectConstruct(){return!!r})()}var xo,So=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$215,`_callSuper`),__name(_isNativeReflectConstruct$215,`_isNativeReflectConstruct`),xo=function(r){function Down(){return _classCallCheck(this,Down),_callSuper$215(this,Down,arguments)}return _inherits(Down,r),_createClass(Down,[{key:`apply`,value:function apply(){this.component.navigate()}}])}($e.modules.CommandBase)}));function _callSuper$214(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$214()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$214(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$214=function _isNativeReflectConstruct(){return!!r})()}var Co,wo=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$214,`_callSuper`),__name(_isNativeReflectConstruct$214,`_isNativeReflectConstruct`),Co=function(r){function Up(){return _classCallCheck(this,Up),_callSuper$214(this,Up,arguments)}return _inherits(Up,r),_createClass(Up,[{key:`apply`,value:function apply(){this.component.navigate(!0)}}])}($e.modules.CommandBase)})),To=__exportAll({Down:()=>xo,Up:()=>Co}),Eo=__esmMin((()=>{So(),wo()}));function _callSuper$213(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$213()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$213(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$213=function _isNativeReflectConstruct(){return!!r})()}var Oo,ko=__esmMin((()=>{b(),w(),E(),D(),A(),Fr(),__name(_callSuper$213,`_callSuper`),__name(_isNativeReflectConstruct$213,`_isNativeReflectConstruct`),Oo=function(r){function RevisionsAfterSave(){return _classCallCheck(this,RevisionsAfterSave),_callSuper$213(this,RevisionsAfterSave,arguments)}return _inherits(RevisionsAfterSave,r),_createClass(RevisionsAfterSave,[{key:`getCommand`,value:function getCommand(){return`document/save/save`}},{key:`getId`,value:function getId(){return`revisions-after-save`}},{key:`apply`,value:function apply(r,c){var l=c.data,u=elementor.documents.getCurrent().revisions;l.latest_revisions&&u.addRevisions(l.latest_revisions),u.requestRevisions(function(){if(l.revisions_ids){var r=u.revisions.filter(function(r){return l.revisions_ids.indexOf(r.get(`id`))!==-1});u.revisions.reset(r)}})}}])}(Pr)})),Ao=__exportAll({RevisionsAfterSave:()=>Oo}),jo=__esmMin((()=>{ko()}));function _callSuper$212(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$212()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$212(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$212=function _isNativeReflectConstruct(){return!!r})()}var Mo,No=__esmMin((()=>{b(),w(),E(),D(),A(),W(),Eo(),jo(),__name(_callSuper$212,`_callSuper`),__name(_isNativeReflectConstruct$212,`_isNativeReflectConstruct`),Mo=function(r){function Component(){return _classCallCheck(this,Component),_callSuper$212(this,Component,arguments)}return _inherits(Component,r),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`panel/history/revisions`}},{key:`defaultCommands`,value:function defaultCommands(){return this.importCommands(To)}},{key:`defaultHooks`,value:function defaultHooks(){return this.importHooks(Ao)}},{key:`defaultShortcuts`,value:function defaultShortcuts(){return{up:{keys:`up`,scopes:[this.getNamespace()]},down:{keys:`down`,scopes:[this.getNamespace()]}}}},{key:`navigate`,value:function navigate(r){elementor.documents.getCurrent().revisions.getItems().length>1&&elementor.getPanelView().getCurrentPageView().currentTab.navigate(r)}}])}(U)}));function _callSuper$211(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$211()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$211(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$211=function _isNativeReflectConstruct(){return!!r})()}var Po,Fo=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$211,`_callSuper`),__name(_isNativeReflectConstruct$211,`_isNativeReflectConstruct`),Po=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$211(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-panel-revisions-loading`}},{key:`id`,value:function id(){return`elementor-panel-revisions-loading`}},{key:`onRender`,value:function onRender(){this.options.document.revisions.requestRevisions(function(){setTimeout(function(){return $e.routes.refreshContainer(`panel`)})})}}])}(Marionette.ItemView)}));function ownKeys$14(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$14(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$14(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$14(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}function filterChildren(r){return r.reduce(function(r,c){var l,u;if(!c||!elementor.elementsManager.getElementTypeClass((l=c.widgetType)==null?c.elType:l))return r;var p=(u=c.elements)!=null&&u.length?_objectSpread$14(_objectSpread$14({},c),{},{elements:filterChildren(c.elements)}):c;return r.push(p),r},[])}var Io,Lo=__esmMin((()=>{P(),__name(ownKeys$14,`ownKeys`),__name(_objectSpread$14,`_objectSpread`),Io=function filterUnknownElements(r){var c;return r!=null&&(c=r.elements)!=null&&c.length?_objectSpread$14(_objectSpread$14({},r),{},{elements:filterChildren(r.elements)}):r}})),Ro=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-panel-revisions-revision-item`,className:`elementor-revision-item`,ui:{detailsArea:`.elementor-revision-item__details`},triggers:{"click @ui.detailsArea":`detailsArea:click`}})})),zo,Bo=__esmMin((()=>{Lo(),zo=Marionette.CompositeView.extend({id:`elementor-panel-revisions`,template:`#tmpl-elementor-panel-revisions`,childView:Ro(),childViewContainer:`#elementor-revisions-list`,ui:{discard:`.elementor-button.e-revision-discard`,apply:`.elementor-button.e-revision-save`},events:{"click @ui.discard":`onDiscardClick`,"click @ui.apply":`onApplyClick`},isRevisionApplied:!1,currentPreviewId:null,currentPreviewItem:null,document:null,initialize:function initialize(r){this.document=r.document,this.collection=this.document.revisions.getItems(),this.listenTo(elementor.channels.editor,`saved`,this.onEditorSaved),this.currentPreviewId=elementor.config.document.revisions.current_id},getRevisionViewData:function getRevisionViewData(r){var c=this;this.document.revisions.getRevisionDataAsync(r.model.get(`id`),{success:function success(l){var u=Io(l);c.document.config.panel.has_elements&&c.document.revisions.setEditorData(u.elements),elementor.settings.page.model.set(u.settings),c.setRevisionsButtonsActive(!0),r.$el.removeClass(`elementor-revision-item-loading`),c.enterReviewMode()},error:function error(l){r.$el.removeClass(`elementor-revision-item-loading`),c.currentPreviewItem=null,c.currentPreviewId=null,alert(l)}})},setRevisionsButtonsActive:function setRevisionsButtonsActive(r){this.isDestroyed||this.ui.apply.add(this.ui.discard).prop(`disabled`,!r)},deleteRevision:function deleteRevision(r){var c=this;r.$el.addClass(`elementor-revision-item-loading`),this.document.revisions.deleteRevision(r.model,{success:function success(){r.model.get(`id`)===c.currentPreviewId&&c.onDiscardClick(),c.currentPreviewId=null},error:function error(){r.$el.removeClass(`elementor-revision-item-loading`),alert(`An error occurred.`)}})},enterReviewMode:function enterReviewMode(){elementor.changeEditMode(`review`)},exitReviewMode:function exitReviewMode(){elementor.changeEditMode(`edit`)},navigate:function navigate(r){if(!(!this.currentPreviewId||!this.currentPreviewItem||this.children.length<=1)){var c=this.collection.indexOf(this.currentPreviewItem.model),l=r?c-1:c+1;l<0&&(l=this.collection.length-1),l>=this.collection.length&&(l=0),this.children.findByIndex(l).ui.detailsArea.trigger(`click`)}},onEditorSaved:function onEditorSaved(){this.exitReviewMode(),this.setRevisionsButtonsActive(!1),this.currentPreviewId=elementor.config.document.revisions.current_id},onApplyClick:function onApplyClick(){$e.internal(`document/save/set-is-modified`,{status:!0}),$e.run(`document/save/auto`,{force:!0}),this.isRevisionApplied=!0,this.currentPreviewId=null,this.document.history.getItems().reset()},onDiscardClick:function onDiscardClick(){this.document.config.panel.has_elements&&this.document.revisions.setEditorData(elementor.config.document.elements),$e.internal(`document/save/set-is-modified`,{status:this.isRevisionApplied}),this.isRevisionApplied=!1,this.setRevisionsButtonsActive(!1),this.currentPreviewId=null,this.exitReviewMode()},onDestroy:function onDestroy(){this.currentPreviewId&&this.currentPreviewId!==elementor.config.document.revisions.current_id&&this.onDiscardClick()},onRenderCollection:function onRenderCollection(){if(this.currentPreviewId){var r=this.collection.findWhere({id:this.currentPreviewId});r&&(this.currentPreviewItem=this.children.findByModelCid(r.cid),this.currentPreviewItem.$el.addClass(`elementor-revision-current-preview`))}},onChildviewDetailsAreaClick:function onChildviewDetailsAreaClick(r){var c=this,l=r.model.get(`id`);l!==this.currentPreviewId&&(this.currentPreviewItem&&this.currentPreviewItem.$el.removeClass(`elementor-revision-current-preview elementor-revision-item-loading`),r.$el.addClass(`elementor-revision-current-preview elementor-revision-item-loading`),(this.currentPreviewId===null||elementor.config.document.revisions.current_id===this.currentPreviewId)&&elementor.saver.isEditorChanged()?$e.internal(`document/save/save`,{status:`autosave`,onSuccess:function onSuccess(){c.getRevisionViewData(r)}}):this.getRevisionViewData(r),this.currentPreviewItem=r,this.currentPreviewId=l)}})})),Vo=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-panel-revisions-no-revisions`,id:`elementor-panel-revisions-no-revisions`,className:`elementor-nerd-box`})}));function _callSuper$210(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$210()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$210(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$210=function _isNativeReflectConstruct(){return!!r})()}var Ho,Uo=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$210,`_callSuper`),__name(_isNativeReflectConstruct$210,`_isNativeReflectConstruct`),Ho=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$210(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`tagName`,value:function tagName(){return`button`}},{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-panel-history-item`}},{key:`className`,value:function className(){return`elementor-history-item elementor-history-item-`+this.model.get(`status`)}},{key:`triggers`,value:function triggers(){return{click:`click`}}}])}(Marionette.ItemView)}));function _callSuper$209(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$209()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$209(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$209=function _isNativeReflectConstruct(){return!!r})()}var Wo,Go=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$209,`_callSuper`),__name(_isNativeReflectConstruct$209,`_isNativeReflectConstruct`),Wo=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$209(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-panel-history-no-items`}},{key:`id`,value:function id(){return`elementor-panel-history-no-items`}},{key:`onDestroy`,value:function onDestroy(){this._parent.$el.removeClass(`elementor-empty`)}}])}(Marionette.ItemView)})),Ko=__commonJSMin(((r,c)=>{Uo(),Go(),c.exports=Marionette.CompositeView.extend({id:`elementor-panel-history`,template:`#tmpl-elementor-panel-history-tab`,childView:Ho,childViewContainer:`#elementor-history-list`,emptyView:Wo,currentItem:null,updateCurrentItem:function updateCurrentItem(){var r=this;this.children.length<=1||_.defer(function(){var c=r.collection.find(function(r){return r.get(`status`)===`not_applied`}),l=r.children.findByModel(c);if(l){var u=`elementor-history-item-current`;r.currentItem&&r.currentItem.removeClass(u),r.currentItem=l.$el,r.currentItem.addClass(u)}})},onRender:function onRender(){this.updateCurrentItem()},onRenderEmpty:function onRenderEmpty(){this.$el.addClass(`elementor-empty`)},onChildviewClick:function onChildviewClick(r,c){if(r.$el!==this.currentItem){var l=c.model.collection.findIndex(c.model);$e.run(`panel/history/actions/do`,{index:l})}}})})),qo,Jo,Yo,Xo=__esmMin((()=>{Fo(),Bo(),qo=__toESM(Vo()),Jo=Ko(),Yo=Marionette.LayoutView.extend({template:`#tmpl-elementor-panel-history-page`,regions:{content:`#elementor-panel-history-content`},ui:{tabs:`.elementor-panel-navigation-tab`},regionViews:{},currentTab:null,document:null,initialize:function initialize(r){this.document=r.document||elementor.documents.getCurrent(),this.initRegionViews()},initRegionViews:function initRegionViews(){var r=this,c=this.document.history.getItems();this.regionViews={actions:{view:function view(){return Jo},options:{collection:c,history:this.document.history}},revisions:{view:function view(){var c=r.document.revisions.getItems();return c?c.length===1&&c.models[0].get(`type`)===`current`?qo.default:zo:Po},options:{document:this.document}}}},getCurrentTab:function getCurrentTab(){return this.currentTab},showView:function showView(r){var c=this.regionViews[r],l=c.options||{},u=c.view();this.currentTab&&this.currentTab.constructor===u||(this.currentTab=new u(l),this.content.show(this.currentTab))}})})),Zo=__exportAll({default:()=>Qo}),Qo,$o=__esmMin((()=>{b(),w(),vo(),bo(),No(),Xo(),Qo=function(){function Manager(){_classCallCheck(this,Manager),elementorCommon.elements.$window.on(`elementor:loaded`,this.init)}return _createClass(Manager,[{key:`init`,value:function init(){$e.components.register(new _o),$e.components.register(new yo),$e.components.register(new Mo),elementor.on(`panel:init`,function(){elementor.getPanelView().addPage(`historyPage`,{view:Yo,title:(0,r.__)(`History`,`elementor`)})})}},{key:`history`,get:function get(){return elementorDevTools.deprecation.deprecated(`elementor.history.history`,`2.9.0`,`elementor.documents.getCurrent().history`),elementor.documents.getCurrent().history}},{key:`revisions`,get:function get(){return elementorDevTools.deprecation.deprecated(`elementor.history.revisions`,`2.9.0`,`elementor.documents.getCurrent().revisions`),elementor.documents.getCurrent().revisions}}])}()}));function _callSuper$208(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$208()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$208(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$208=function _isNativeReflectConstruct(){return!!r})()}var es,ts=__esmMin((()=>{b(),w(),E(),D(),A(),Je(),__name(_callSuper$208,`_callSuper`),__name(_isNativeReflectConstruct$208,`_isNativeReflectConstruct`),es=function(r){function Close(){return _classCallCheck(this,Close),_callSuper$208(this,Close,arguments)}return _inherits(Close,r),_createClass(Close,[{key:`apply`,value:function apply(){this.component.close()}}])}(qe)}));function _callSuper$207(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$207()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$207(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$207=function _isNativeReflectConstruct(){return!!r})()}var ns,rs=__esmMin((()=>{b(),w(),E(),D(),A(),Je(),__name(_callSuper$207,`_callSuper`),__name(_isNativeReflectConstruct$207,`_isNativeReflectConstruct`),ns=function(r){function Open(){return _classCallCheck(this,Open),_callSuper$207(this,Open,arguments)}return _inherits(Open,r),_createClass(Open,[{key:`apply`,value:function apply(){$e.route(this.component.getNamespace())}}])}(qe)}));function _callSuper$206(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$206()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$206(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$206=function _isNativeReflectConstruct(){return!!r})()}var is,as=__esmMin((()=>{b(),w(),E(),D(),A(),Je(),__name(_callSuper$206,`_callSuper`),__name(_isNativeReflectConstruct$206,`_isNativeReflectConstruct`),is=function(r){function Toggle(){return _classCallCheck(this,Toggle),_callSuper$206(this,Toggle,arguments)}return _inherits(Toggle,r),_createClass(Toggle,[{key:`apply`,value:function apply(){this.component.isOpen?this.component.close():$e.route(this.component.getNamespace())}}])}(qe)})),os=__exportAll({Close:()=>es,Open:()=>ns,Toggle:()=>is}),ss=__esmMin((()=>{ts(),rs(),as()}));function _callSuper$205(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$205()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$205(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$205=function _isNativeReflectConstruct(){return!!r})()}function _superPropGet$29(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 cs,ls=__esmMin((()=>{b(),w(),E(),D(),k(),A(),W(),ss(),rt(),__name(_callSuper$205,`_callSuper`),__name(_isNativeReflectConstruct$205,`_isNativeReflectConstruct`),__name(_superPropGet$29,`_superPropGet`),cs=function(r){function ComponentModalBase(){return _classCallCheck(this,ComponentModalBase),_callSuper$205(this,ComponentModalBase,arguments)}return _inherits(ComponentModalBase,r),_createClass(ComponentModalBase,[{key:`registerAPI`,value:function registerAPI(){var r=this;_superPropGet$29(ComponentModalBase,`registerAPI`,this,3)([]),$e.shortcuts.register(`esc`,{scopes:[this.getNamespace()],callback:function callback(){return r.close()}})}},{key:`defaultCommands`,value:function defaultCommands(){return this.importCommands(os)}},{key:`defaultRoutes`,value:function defaultRoutes(){return{"":function _(){}}}},{key:`open`,value:function open(){var r=this;if(!this.layout){var c=this.getModalLayout();this.layout=new c({component:this}),this.layout.getModal().on(`hide`,function(){return r.close()})}return this.layout.showModal(),!0}},{key:`close`,value:function close(){return _superPropGet$29(ComponentModalBase,`close`,this,3)([])?(elementor.hooks.applyFilters(`component/modal/close`,this.layout.getModal().hide.bind(this.layout.getModal()),this)(),!0):!1}},{key:`getModalLayout`,value:function getModalLayout(){H()}}])}(U)}));$o(),ls(),b(),w(),E(),D(),A(),Kt();function _callSuper$204(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$204()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$204,`_callSuper`);function _isNativeReflectConstruct$204(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$204=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$204,`_isNativeReflectConstruct`);var us=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$204(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`id`,value:function id(){return`elementor-hotkeys`}},{key:`templateHelpers`,value:function templateHelpers(){return{environment:Gt}}},{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-hotkeys`}}])}(Marionette.LayoutView);b(),w(),E(),D(),k(),A();function _callSuper$203(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$203()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$203,`_callSuper`);function _isNativeReflectConstruct$203(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$203=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$203,`_isNativeReflectConstruct`);function _superPropGet$28(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}__name(_superPropGet$28,`_superPropGet`);var ds=function(c){function _default(){return _classCallCheck(this,_default),_callSuper$203(this,_default,arguments)}return _inherits(_default,c),_createClass(_default,[{key:`getModalOptions`,value:function getModalOptions(){return{id:`elementor-hotkeys__modal`}}},{key:`getLogoOptions`,value:function getLogoOptions(){return{title:(0,r.__)(`Keyboard Shortcuts`,`elementor`)}}},{key:`initialize`,value:function initialize(){for(var r=arguments.length,c=Array(r),l=0;l<r;l++)c[l]=arguments[l];_superPropGet$28(_default,`initialize`,this,3)(c),this.showLogo(),this.showContentView()}},{key:`showContentView`,value:function showContentView(){this.modalContent.show(new us)}}])}(elementorModules.common.views.modal.Layout);b(),w(),E(),D(),A();function _callSuper$202(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$202()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$202,`_callSuper`);function _isNativeReflectConstruct$202(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$202=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$202,`_isNativeReflectConstruct`);var fs=function(r){function Component(){return _classCallCheck(this,Component),_callSuper$202(this,Component,arguments)}return _inherits(Component,r),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`shortcuts`}},{key:`defaultShortcuts`,value:function defaultShortcuts(){return{"":{keys:`ctrl+?, shift+?`,exclude:[`input`]}}}},{key:`getModalLayout`,value:function getModalLayout(){return ds}}])}(cs);b(),w(),E(),D(),A();function _callSuper$201(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$201()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$201,`_callSuper`);function _isNativeReflectConstruct$201(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$201=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$201,`_isNativeReflectConstruct`);var ps=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$201(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`onInit`,value:function onInit(){$e.components.register(new fs({manager:this}))}}])}(elementorModules.Module);b(),w(),E(),D(),A();function _callSuper$200(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$200()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$200,`_callSuper`);function _isNativeReflectConstruct$200(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$200=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$200,`_isNativeReflectConstruct`);var ms=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$200(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`tagName`,value:function tagName(){return`header`}},{key:`className`,value:function className(){return`elementor-templates-modal__header`}},{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-templates-modal__header`}},{key:`regions`,value:function regions(){return{logoArea:`.elementor-templates-modal__header__logo-area`,tools:`#elementor-template-library-header-tools`,menuArea:`.elementor-templates-modal__header__menu-area`}}},{key:`ui`,value:function ui(){return{closeModal:`.elementor-templates-modal__header__close`}}},{key:`events`,value:function events(){return{"click @ui.closeModal":`onCloseModalClick`}}},{key:`onRender`,value:function onRender(){this.bindEscapeKey()}},{key:`bindEscapeKey`,value:function bindEscapeKey(){var r=this;this.onDocumentKeyDown=function(c){c.key===`Escape`&&r.onCloseModalClick()},document.addEventListener(`keydown`,this.onDocumentKeyDown)}},{key:`onDestroy`,value:function onDestroy(){this.onDocumentKeyDown&&document.removeEventListener(`keydown`,this.onDocumentKeyDown)}},{key:`templateHelpers`,value:function templateHelpers(){return{closeType:this.getOption(`closeType`)}}},{key:`onCloseModalClick`,value:function onCloseModalClick(){this._parent._parent._parent.hideModal();var r=this.getDocumentType(),c=new CustomEvent(`core/modal/close/${r}`);window.dispatchEvent(c),this.isFloatingButtonLibraryClose()&&($e.internal(`document/save/set-is-modified`,{status:!1}),window.location.href=elementor.config.admin_floating_button_admin_url)}},{key:`getDocumentType`,value:function getDocumentType(){var r,c;return window.elementor===void 0||(r=(c=elementor)==null||(c=c.config)==null||(c=c.document)==null?void 0:c.type)==null?`default`:r}},{key:`isFloatingButtonLibraryClose`,value:function isFloatingButtonLibraryClose(){var r,c;return window.elementor&&((r=elementor.config)==null?void 0:r.admin_floating_button_admin_url)&&((c=elementor.config)==null||(c=c.document)==null?void 0:c.type)===`floating-buttons`&&(this.$el.closest(`.dialog-lightbox-widget-content`).find(`.elementor-template-library-template-floating_button`).length||this.$el.closest(`.dialog-lightbox-widget-content`).find(`#elementor-template-library-preview`).length||this.$el.closest(`.dialog-lightbox-widget-content`).find(`#elementor-template-library-templates-empty`).length)}}])}(Marionette.LayoutView);b(),w(),E(),D(),A();function _callSuper$199(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$199()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$199,`_callSuper`);function _isNativeReflectConstruct$199(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$199=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$199,`_isNativeReflectConstruct`);var hs=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$199(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-templates-modal__header__logo`}},{key:`className`,value:function className(){return`elementor-templates-modal__header__logo`}},{key:`events`,value:function events(){return{click:`onClick`}}},{key:`templateHelpers`,value:function templateHelpers(){return{title:this.getOption(`title`)}}},{key:`onClick`,value:function onClick(){var r=this.getOption(`click`);r&&r()}}])}(Marionette.ItemView);b(),w(),E(),D(),A();function _callSuper$198(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$198()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$198,`_callSuper`);function _isNativeReflectConstruct$198(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$198=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$198,`_isNativeReflectConstruct`);var gs=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$198(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`id`,value:function id(){return`elementor-template-library-loading`}},{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-template-library-loading`}}])}(Marionette.ItemView);b(),w(),E(),D(),A();function _callSuper$197(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$197()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$197,`_callSuper`);function _isNativeReflectConstruct$197(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$197=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$197,`_isNativeReflectConstruct`);var _s=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$197(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`el`,value:function el(){return this.getModal().getElements(`widget`)}},{key:`regions`,value:function regions(){return{modalHeader:`.dialog-header`,modalContent:`.dialog-lightbox-content`,modalLoading:`.dialog-lightbox-loading`}}},{key:`initialize`,value:function initialize(){this.modalHeader.show(new ms(this.getHeaderOptions()))}},{key:`getModal`,value:function getModal(){return this.modal||this.initModal(),this.modal}},{key:`initModal`,value:function initModal(){var r={className:`elementor-templates-modal`,closeButton:!1,draggable:!1,hide:{onOutsideClick:!1,onEscKeyPress:!1}};jQuery.extend(!0,r,this.getModalOptions()),this.modal=elementorCommon.dialogsManager.createWidget(`lightbox`,r),this.modal.getElements(`message`).append(this.modal.addElement(`content`),this.modal.addElement(`loading`)),r.draggable&&this.draggableModal()}},{key:`showModal`,value:function showModal(){this.getModal().show()}},{key:`hideModal`,value:function hideModal(){this.getModal().hide()}},{key:`draggableModal`,value:function draggableModal(){var r=this.getModal().getElements(`widgetContent`);r.draggable({containment:`parent`,stop:function stop(){r.height(``)}}),r.css(`position`,`absolute`)}},{key:`getModalOptions`,value:function getModalOptions(){return{}}},{key:`getLogoOptions`,value:function getLogoOptions(){return{}}},{key:`getHeaderOptions`,value:function getHeaderOptions(){return{closeType:`normal`}}},{key:`getHeaderView`,value:function getHeaderView(){return this.modalHeader.currentView}},{key:`showLoadingView`,value:function showLoadingView(){this.modalLoading.show(new gs),this.modalLoading.$el.show(),this.modalContent.$el.hide()}},{key:`hideLoadingView`,value:function hideLoadingView(){this.modalContent.$el.show(),this.modalLoading.$el.hide()}},{key:`showLogo`,value:function showLogo(){this.getHeaderView().logoArea.show(new hs(this.getLogoOptions()))}}])}(Marionette.LayoutView);b(),w(),E(),D(),k(),A();function _callSuper$196(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$196()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$196,`_callSuper`);function _isNativeReflectConstruct$196(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$196=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$196,`_isNativeReflectConstruct`);function _superPropGet$27(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}__name(_superPropGet$27,`_superPropGet`);var vs=function(c){function _default(){return _classCallCheck(this,_default),_callSuper$196(this,_default,arguments)}return _inherits(_default,c),_createClass(_default,[{key:`getModalOptions`,value:function getModalOptions(){return{id:`elementor-icons-manager-modal`}}},{key:`getLogoOptions`,value:function getLogoOptions(){return{title:(0,r.__)(`Icon Library`,`elementor`)}}},{key:`initialize`,value:function initialize(){for(var r=arguments.length,c=Array(r),l=0;l<r;l++)c[l]=arguments[l];_superPropGet$27(_default,`initialize`,this,3)(c),this.showLogo()}}])}(_s);function _extends(){return _extends=Object.assign?Object.assign.bind():function(r){for(var c=1;c<arguments.length;c++){var l=arguments[c];for(var u in l)({}).hasOwnProperty.call(l,u)&&(r[u]=l[u])}return r},_extends.apply(null,arguments)}b(),w(),E(),D(),A(),P();var J=__toESM(vr());function _callSuper$195(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$195()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$195,`_callSuper`);function _isNativeReflectConstruct$195(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$195=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$195,`_isNativeReflectConstruct`);var ys=function(r){function LazyIconList(){var r;_classCallCheck(this,LazyIconList);for(var c=arguments.length,u=Array(c),p=0;p<c;p++)u[p]=arguments[p];return r=_callSuper$195(this,LazyIconList,[].concat(u)),_defineProperty(r,`state`,{itemSize:{width:0,height:0},wrapperSize:{width:0,height:0},firstRowInView:0}),_defineProperty(r,`selectors`,{item:`.elementor-icons-manager__tab__item`,wrapper:`elementor-icons-manager__tab__wrapper`}),_defineProperty(r,`attachScrollListener`,function(){var c=document.getElementById(r.selectors.wrapper);c&&c.addEventListener(`scroll`,r.handleScroll)}),_defineProperty(r,`maybeMeasureItem`,function(){if(!r.state.itemSize.width){var c=20,l=document.querySelector(r.selectors.item);if(l){var u=document.getElementById(r.selectors.wrapper),p={itemSize:{width:l.offsetWidth+c,height:l.offsetHeight+c},wrapperSize:{width:u.offsetWidth,height:u.clientHeight}};return r.setState(p,function(){r.maybeScrollToSelected()})}}}),_defineProperty(r,`maybeScrollToSelected`,function(){if(r.hasSelected()){var c=r.props.selectedIndex,l=r.state,u=l.wrapperSize,p=l.itemSize,m=Math.floor(u.width/p.width),h=(Math.ceil(c/m)-1)*p.height;setTimeout(function(){r.props.parentRef.current.scrollTo({top:h,left:0,behavior:`auto`})},0)}}),_defineProperty(r,`handleScroll`,function(){r.clearDebounceScrollCallback(),r._debounce=setTimeout(function(){var c=document.getElementById(r.selectors.wrapper),l=r.state.itemSize;r.setState({firstRowInView:Math.floor(c.scrollTop/l.height)})},10)}),_defineProperty(r,`render`,function(){var c=r.state,u=c.itemSize,p=c.wrapperSize,m=r.state.firstRowInView;if(!u.width)return r.renderFirstElementForMeasurement();var h=r.props.items,g=Math.floor(p.width/u.width),v=Math.ceil(h.length/g),y=Math.ceil(p.height/u.height)+4;y>v&&(y=v),m>v-y&&(m=v-y);var b=v-m-y,x=m*g,S=(m+y)*g-1,C=h.slice(x,S+1),w={height:`${m*u.height}px`},T={height:`${b*u.height}px`};return l.default.createElement(l.Fragment,null,l.default.createElement(`div`,{className:`elementor-icons-manager__tab__content__offset`,style:w}),l.default.createElement(`div`,{id:`elementor-icons-manager__tab__content`},C),l.default.createElement(`div`,{className:`elementor-icons-manager__tab__content__tail`,style:T}))}),r}return _inherits(LazyIconList,r),_createClass(LazyIconList,[{key:`componentDidMount`,value:function componentDidMount(){this.attachScrollListener(),this.maybeMeasureItem()}},{key:`componentWillUnmount`,value:function componentWillUnmount(){this.clearDebounceScrollCallback();var r=document.getElementById(this.selectors.wrapper);r&&r.removeEventListener(`scroll`,this.handleScroll)}},{key:`clearDebounceScrollCallback`,value:function clearDebounceScrollCallback(){clearTimeout(this._debounce)}},{key:`renderFirstElementForMeasurement`,value:function renderFirstElementForMeasurement(){return l.default.createElement(`div`,{id:`elementor-icons-manager__tab__content`},this.props.items[0])}},{key:`hasSelected`,value:function hasSelected(){return this.props.selectedIndex!==-1}}])}(l.Component);ys.propTypes={items:J.default.array,selectedIndex:J.default.number,parentRef:J.default.any},w(),b(),E(),D(),A(),P();function _callSuper$194(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$194()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$194,`_callSuper`);function _isNativeReflectConstruct$194(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$194=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$194,`_isNativeReflectConstruct`);var bs=function(r){function Icon(){var r;_classCallCheck(this,Icon);for(var c=arguments.length,u=Array(c),p=0;p<c;p++)u[p]=arguments[p];return r=_callSuper$194(this,Icon,[].concat(u)),_defineProperty(r,`setSelected`,function(){r.props.setSelectedHandler({value:r.props.data.displayPrefix+` `+r.props.data.selector,library:r.props.library})}),_defineProperty(r,`render`,function(){return l.default.createElement(`div`,{className:r.props.containerClass,key:r.props.keyID,onClick:r.setSelected,filter:r.props.data.filter},l.default.createElement(`div`,{className:`elementor-icons-manager__tab__item__content`},l.default.createElement(`i`,{className:`elementor-icons-manager__tab__item__icon `+r.props.className}),l.default.createElement(`div`,{className:`elementor-icons-manager__tab__item__name`,title:r.props.data.name},r.props.data.name)))}),r}return _inherits(Icon,r),_createClass(Icon)}(l.Component);bs.propTypes={className:J.default.string,containerClass:J.default.string,data:J.default.object,keyID:J.default.string,library:J.default.string,selector:J.default.string,setSelectedHandler:J.default.func},M(),ge(),b(),w(),E(),D(),A(),P();function _createForOfIteratorHelper$7(r,c){var l=typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(!l){if(Array.isArray(r)||(l=_unsupportedIterableToArray$7(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.
18 18 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$7,`_createForOfIteratorHelper`);function _unsupportedIterableToArray$7(r,c){if(r){if(typeof r==`string`)return _arrayLikeToArray$7(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$7(r,c):void 0}}__name(_unsupportedIterableToArray$7,`_unsupportedIterableToArray`);function _arrayLikeToArray$7(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$7,`_arrayLikeToArray`);function _callSuper$193(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$193()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$193,`_callSuper`);function _isNativeReflectConstruct$193(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$193=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$193,`_isNativeReflectConstruct`);var xs=function(r){function Tab(){var r;_classCallCheck(this,Tab);for(var c=arguments.length,u=Array(c),p=0;p<c;p++)u[p]=arguments[p];return r=_callSuper$193(this,Tab,[].concat(u)),_defineProperty(r,`componentDidMount`,function(){r.props.selected&&r.props.selected.value&&setTimeout(function(){var r=document.querySelector(`.elementor-selected`);r&&r.scrollIntoView(!1)},0)}),_defineProperty(r,`handleFullIconList`,function(){var c=[];return Object.entries(r.props.icons).forEach(function(l){l[0]!==`recommended`&&(c=[].concat(_toConsumableArray(c),_toConsumableArray(r.getIconsOfType(l[0],l[1]))))}),c.sort(function(r,c){return r.filter===c.filter?0:+(r.filter>c.filter)||-1})}),_defineProperty(r,`getLibrary`,function(r){return elementor.config.icons.libraries.filter(function(c){return r===c.name})}),_defineProperty(r,`handleRecommendedList`,function(){var c=[];return Object.entries(r.props.icons).forEach(function(l){var u=r.getLibrary(l[0])[0].icons,p={};l[1].forEach(function(r){u[r]&&(p[r]=u[r])}),c=[].concat(_toConsumableArray(c),_toConsumableArray(r.getIconsOfType(l[0],p)))}),c}),_defineProperty(r,`getIconsComponentList`,function(){var c=[],l=r.props,u=l.name,p=l.icons,m=l.filter;switch(u){case`all`:c=r.handleFullIconList();break;case`recommended`:c=r.handleRecommendedList();break;default:c=r.getIconsOfType(u,p);break}return m&&(c=Object.values(c).filter(function(r){return r.props.data.name.toLowerCase().indexOf(m)>-1})),c}),_defineProperty(r,`render`,function(){var c=r.getIconsComponentList(),u=-1,p=_createForOfIteratorHelper$7(c.entries()),m;try{for(p.s();!(m=p.n()).done;){var h=_slicedToArray(m.value,2),g=h[0];if(h[1].props.containerClass.includes(`elementor-selected`)){u=g;break}}}catch(r){p.e(r)}finally{p.f()}return l.default.createElement(ys,{selectedIndex:u,items:c,parentRef:r.props.parentRef})}),r}return _inherits(Tab,r),_createClass(Tab,[{key:`getIconsOfType`,value:function getIconsOfType(r,c){var u=this,p=this.props,m=p.selected,h=p.filter;return Object.entries(c).map(function(c){var p=c[1],g=c[0],v=p.displayPrefix+` `+p.selector,y=`elementor-icons-manager__tab__item`;m.value===v&&(y+=` elementor-selected`);var b=y+r+`-`+g+h;return l.default.createElement(bs,{key:b,library:r,keyID:g,containerClass:y,className:v,setSelectedHandler:u.props.setSelected,data:p})})}}])}(l.Component);xs.propTypes={data:J.default.any,filter:J.default.any,icons:J.default.object,name:J.default.string,selected:J.default.object,setSelected:J.default.func,parentRef:J.default.any},w(),b(),E(),D(),A(),P();function _callSuper$192(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$192()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$192,`_callSuper`);function _isNativeReflectConstruct$192(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$192=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$192,`_isNativeReflectConstruct`);var Ss=function(c){function IconsGoPro(){var c;_classCallCheck(this,IconsGoPro);for(var u=arguments.length,p=Array(u),m=0;m<u;m++)p[m]=arguments[m];return c=_callSuper$192(this,IconsGoPro,[].concat(p)),_defineProperty(c,`render`,function(){return l.default.createElement(`div`,{id:`elementor-icons-manager__promotion`},l.default.createElement(`i`,{id:`elementor-icons-manager__promotion__icon`,className:`eicon-nerd`}),l.default.createElement(`div`,{id:`elementor-icons-manager__promotion__text`},(0,r.__)(`Become a Pro user to upload unlimited font icon folders to your website.`,`elementor`)),l.default.createElement(`a`,{href:elementor.config.icons.goProURL,id:`elementor-icons-manager__promotion__link`,className:`elementor-button go-pro`,target:`_blank`,rel:`noopener noreferrer`},(0,r.__)(`Upgrade Now`,`elementor`)))}),c}return _inherits(IconsGoPro,c),_createClass(IconsGoPro)}(l.Component);b(),w(),E(),D(),A(),P(),Dr();function ownKeys$13(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}__name(ownKeys$13,`ownKeys`);function _objectSpread$13(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$13(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$13(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}__name(_objectSpread$13,`_objectSpread`);function _callSuper$191(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$191()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$191,`_callSuper`);function _isNativeReflectConstruct$191(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$191=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$191,`_isNativeReflectConstruct`);var Cs=function(c){function IconsManager(){var r;_classCallCheck(this,IconsManager);for(var c=arguments.length,u=Array(c),p=0;p<c;p++)u[p]=arguments[p];return r=_callSuper$191(this,IconsManager,[].concat(u)),_defineProperty(r,`scrollViewRef`,(0,l.createRef)()),_defineProperty(r,`state`,{activeTab:r.props.activeTab,selected:{library:``,value:``},iconTabs:elementor.config.icons.libraries,loaded:r.props.loaded,filter:``}),_defineProperty(r,`cache`,{}),_defineProperty(r,`loadAllTabs`,function(){var c=r.state.loaded;r.props.icons.forEach(function(l){c[l.name]||-1<[`all`,`recommended`].indexOf(l.name)||elementor.iconManager.library.initIconType(_objectSpread$13({},l),function(u){r.cache[u.name]=u,c[l.name]=!0})}),c.all=!0,c.recommended=!0,r.setState({loaded:c})}),_defineProperty(r,`getActiveTab`,function(){var c=r.state.activeTab,l=r.state.loaded,u=r.props.icons;if(c||r.props.activeTab&&(c=r.props.activeTab),c===`GoPro`)return c;if(!l[c])return!1;var p=_objectSpread$13({},u.filter(function(r){return r.name===c})[0]);return l[c]?_objectSpread$13({},p):p.name===`all`&&!l.all?r.loadAllTabs():(elementor.iconManager.library.initIconType(_objectSpread$13({},p),function(c){r.cache[c.name]=c,r.updateLoaded(c.name)}),!1)}),_defineProperty(r,`getIconTabsLinks`,function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r.props.icons.map(function(u){if(c^r.isNativeTab(u))return``;var p=u.name===r.state.activeTab,m=`elementor-icons-manager__tab-link`;return p&&(m+=` elementor-active`),l.default.createElement(`div`,{className:m,key:u.name,onClick:function onClick(){p||r.setState({activeTab:u.name})}},l.default.createElement(`i`,{className:u.labelIcon}),u.label)})}),_defineProperty(r,`getActiveTabIcons`,function(c){if(c.name)return r.getActiveTabIcons(c.name);if(r.cache[c])return r.cache[c].icons;if(c===`recommended`)return r.state.iconTabs[0].icons;if(c===`all`)return r.getAllIcons();if(!r.state.loaded[c]){var l=r.props.icons.filter(function(r){return c===r.name});return elementor.iconManager.library.initIconType(_objectSpread$13({},l[0]),function(c){r.cache[c.name]=c,r.updateLoaded(c.name)})}return elementor.iconManager.store.getIcons(c)}),_defineProperty(r,`getAllIcons`,function(){if(r.cache.all)return r.cache.all.icons;var c={};return r.props.icons.forEach(function(l){l.name!==`all`&&l.name!==`recommended`&&(c[l.name]=r.getActiveTabIcons(l.name))}),r.cache.all={icons:c},c}),_defineProperty(r,`handleSearch`,function(c){var l=c.target.value;if(l&&l!==``){if(l=l.toLocaleLowerCase(),r.state.filter===l)return}else l=``;r.setState({filter:l})}),_defineProperty(r,`setSelected`,function(c){elementor.iconManager.setSettings(`selectedIcon`,c),r.setState({selected:c})}),_defineProperty(r,`getSelected`,function(){var c=r.state.selected;return c.value===``&&r.props.selected&&r.props.selected.value&&(c={value:r.props.selected.value,library:r.props.selected.library}),c}),_defineProperty(r,`render`,function(){var c=r.getActiveTab(),u=c.name?c.name:c,p=r.props.showSearch,m=p===void 0||p,h=r.state.filter;if(c!==`GoPro`){if(!u||!r.state.loaded[u])return`Loading`;c&&(c.icons=r.getActiveTabIcons(c))}var g=r.getSelected();return l.default.createElement(l.Fragment,null,l.default.createElement(`div`,{id:`elementor-icons-manager__sidebar`,className:`elementor-templates-modal__sidebar`},l.default.createElement(`div`,{id:`elementor-icons-manager__tab-links`},r.getIconTabsLinks(),r.getUploadCustomButton(),r.getIconTabsLinks(!1))),l.default.createElement(`div`,{id:`elementor-icons-manager__main`,className:`elementor-templates-modal__content`},u===`GoPro`?l.default.createElement(Ss,null):l.default.createElement(l.Fragment,null,m?r.getSearchHTML():``,l.default.createElement(`div`,{id:`elementor-icons-manager__tab__wrapper`,ref:r.scrollViewRef},l.default.createElement(`div`,{id:`elementor-icons-manager__tab__title`},c.label),l.default.createElement(`div`,{id:`elementor-icons-manager__tab__content_wrapper`},l.default.createElement(`input`,{type:`hidden`,name:`icon_value`,id:`icon_value`,value:g.value}),l.default.createElement(`input`,{type:`hidden`,name:`icon_type`,id:`icon_type`,value:g.library}),r.state.loaded[c.name]?l.default.createElement(xs,_extends({setSelected:r.setSelected,selected:g,filter:h,key:c.name,parentRef:r.scrollViewRef},c)):`Loading`)))))}),r}return _inherits(IconsManager,c),_createClass(IconsManager,[{key:`updateLoaded`,value:function updateLoaded(r){var c=this.state.loaded;c[r]=!0,this.setState({loaded:c})}},{key:`isNativeTab`,value:function isNativeTab(r){return(r.name===`all`||r.name===`recommended`||r.name.substr(0,3)===`fa-`)&&r.native}},{key:`getUploadCustomButton`,value:function getUploadCustomButton(){var c=this,u=function onClick(){c.state.activeTab!==`GoPro`&&c.setState({activeTab:`GoPro`})};return this.props.customIconsURL&&(u=function onClick(){window.open(c.props.customIconsURL,`_blank`)}),l.default.createElement(`div`,{id:`elementor-icons-manager__upload`},l.default.createElement(`div`,{id:`elementor-icons-manager__upload__title`},(0,r.__)(`My Libraries`,`elementor`)),l.default.createElement(`button`,{id:`elementor-icons-manager__upload__button`,className:`elementor-button`,onClick:u},(0,r.__)(`Upload`,`elementor`)))}},{key:`getSearchHTML`,value:function getSearchHTML(){return l.default.createElement(`div`,{id:`elementor-icons-manager__search`},l.default.createElement(`input`,{placeholder:`Filter by name...`,onInput:this.handleSearch}),l.default.createElement(`i`,{className:`eicon-search`}))}}])}(l.Component),ws=function renderIconManager(r){var c=document.querySelector(`#elementor-icons-manager-modal .dialog-content`);return Er.render(l.default.createElement(Cs,_extends({},r,{containerElement:c})),c)};Cs.propTypes={activeTab:J.default.any,customIconsURL:J.default.string,icons:J.default.any,loaded:J.default.any,modalView:J.default.any,recommended:J.default.oneOfType([J.default.bool,J.default.object]),selected:J.default.any,showSearch:J.default.bool},x(),b(),w(),P();var Ts=function(){function _default(){var r=this;_classCallCheck(this,_default),_defineProperty(this,`loaded`,{}),_defineProperty(this,`notifyCallback`,null),_defineProperty(this,`fetchIcons`,function(c){fetch(c.fetchJson,{mode:`cors`}).then(function(r){return r.json()}).then(function(l){return c.icons=l.icons,r.normalizeIconList(c)})}),_defineProperty(this,`runCallback`,function(c){return typeof r.notifyCallback==`function`?r.notifyCallback(c):c}),_defineProperty(this,`initIconType`,function(c,l){r.notifyCallback=l;var u=elementor.iconManager.store;if(r.loaded[c.name])return c.icons=u.getIcons(c),r.runCallback(c);if(c.enqueue&&c.enqueue.forEach(function(r){var l=`${r}${c!=null&&c.ver?`?ver=`+c.ver:``}`;elementor.helpers.enqueueEditorStylesheet(l)}),c.url){var p=`${c.url}${c!=null&&c.ver?`?ver=`+c.ver:``}`;elementor.helpers.enqueueEditorStylesheet(p)}if(u.isValid(c)){var m=u.get(u.getKey(c));return r.normalizeIconList(m)}if(c.icons&&c.icons.length)return r.normalizeIconList(c);if(c.fetchJson)return r.fetchIcons(c)})}return _createClass(_default,[{key:`normalizeIconList`,value:function normalizeIconList(r){var c={},l;jQuery.each(r.icons,function(u,p){l=p,_typeof(l)===`object`&&(l=Object.entries(l)[0][0]),l&&(c[l]={prefix:r.prefix,selector:r.prefix+l.trim(`:`),name:elementorCommon.helpers.upperCaseWords(l).trim(`:`).split(`-`).join(` `),filter:l.trim(`:`),displayPrefix:r.displayPrefix||r.prefix.replace(`-`,``)})}),Object.keys(c).length&&(r.icons=c,this.loaded[r.name]=!0,elementor.iconManager.store.save(r),this.runCallback(r))}}])}();b(),w();var Es=function(){function Store(){_classCallCheck(this,Store)}return _createClass(Store,[{key:`save`,value:function save(r){elementorCommon.storage.set(Es.getKey(r),r)}},{key:`getIcons`,value:function getIcons(r){var c=this.get(Es.getKey(r));return c&&c.icons?c.icons:!1}},{key:`get`,value:function get(r){return elementorCommon.storage.get(r)}},{key:`isValid`,value:function isValid(r){var c=this.get(Es.getKey(r));return!c||c.ver!==r.ver?!1:c.icons&&c.icons.length}}],[{key:`getKey`,value:function getKey(r){return`elementor_${r.name?r.name:r}_icons`}}])}();b(),w(),E(),D(),A();function _callSuper$190(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$190()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$190,`_callSuper`);function _isNativeReflectConstruct$190(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$190=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$190,`_isNativeReflectConstruct`);var Ds=function(c){function _default(){return _classCallCheck(this,_default),_callSuper$190(this,_default,arguments)}return _inherits(_default,c),_createClass(_default,[{key:`onInit`,value:function onInit(){this.library=new Ts,this.store=new Es,elementor.helpers.fetchFa4ToFa5Mapping(),this.cache={}}},{key:`getLayout`,value:function getLayout(){var c=this;if(!this.layout){this.layout=new vs;var l=this.layout.getModal();l.addButton({name:`insert_icon`,text:(0,r.__)(`Insert`,`elementor`),classes:`elementor-button e-primary`,callback:function callback(){c.updateControlValue(),c.unMountIconManager()}}),l.on(`show`,this.onPickerShow.bind(this)).on(`hide`,this.unMountIconManager.bind(this))}return this.layout}},{key:`getDefaultSettings`,value:function getDefaultSettings(){return{selectedIcon:{}}}},{key:`unMountIconManager`,value:function unMountIconManager(){this.unmount()}},{key:`loadIconLibraries`,value:function loadIconLibraries(){this.cache.loaded||(elementor.config.icons.libraries.forEach(function(r){r.name!==`all`&&elementor.iconManager.library.initIconType(r)}),this.cache.loaded=!0)}},{key:`onPickerShow`,value:function onPickerShow(){var r=this.getSettings(`controlView`),c={GoPro:!0},l={recommended:r.model.get(`recommended`)||!1},u=r.getControlValue(),p=elementor.config.icons.libraries;if((!u.library||!u.value)&&(u={value:``,library:``}),l.selected=u,this.setSettings(`selectedIcon`,u),l.recommended){var m=!1;p.forEach(function(r,c){r.name===`recommended`&&(m=!0,p[c].icons=l.recommended)}),m||p.unshift({name:`recommended`,label:`Recommended`,icons:l.recommended,labelIcon:`eicon-star-o`,native:!0})}else p=p.filter(function(r){return r.name!==`recommended`});p.forEach(function(r,l){[`all`,`recommended`].indexOf(r.name)===-1&&elementor.iconManager.library.initIconType(r,function(r){p[l]=r}),c[r.name]=!0}),l.loaded=c,l.icons=p;var h=u.library||p[0].name;if(u.library===`svg`&&(h=p[0].name),Object.keys(p).some(function(r){return r===h})||(h=p[0].name),l.recommended&&u.library!==``&&u.value!==``&&Object.prototype.hasOwnProperty.call(l.recommended,u.library)){var g=p.filter(function(r){return u.library===r.name}),v=u.value.replace(g[0].displayPrefix+` `+g[0].prefix,``);l.recommended[u.library].some(function(r){return-1<r.indexOf(v)})&&(h=p[0].name)}l.customIconsURL=elementor.config.customIconsURL,l.activeTab=h;var y=ws(l).unmount;this.unmount=y}},{key:`updateControlValue`,value:function updateControlValue(){var r=this.getSettings();r.controlView.setValue(r.selectedIcon),r.controlView.applySavedValue()}},{key:`show`,value:function show(r){this.setSettings(`controlView`,r.view),this.getLayout().showModal(r)}}])}(elementorModules.Module);N(),b(),w(),E(),D(),A();function _callSuper$189(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$189()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$189,`_callSuper`);function _isNativeReflectConstruct$189(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$189=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$189,`_isNativeReflectConstruct`);var Os=function(r){function Import(){return _classCallCheck(this,Import),_callSuper$189(this,Import,arguments)}return _inherits(Import,r),_createClass(Import,[{key:`validateArgs`,value:function validateArgs(){this.requireArgumentInstance(`target`,elementorModules.editor.Container)}},{key:`apply`,value:function apply(r){var c=this,l=r.targets,u=l===void 0?[r.target]:l,p=r.input,m=r.options,h=m===void 0?{}:m,g=[];return u.forEach(function(r){g.push(c.component.manager.createSession(p,r,h).then(function(){var r=_asyncToGenerator(B.default.mark(function _callee(r){return B.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=1,r.validate();case 1:if(!c.sent){c.next=2;break}r.apply();case 2:case`end`:return c.stop()}},_callee)}));return function(c){return r.apply(this,arguments)}}()))}),Promise.all(g)}}])}($e.modules.CommandBase),ks=__exportAll({Import:()=>Os});b(),w(),E(),D(),A();function _callSuper$188(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$188()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$188,`_callSuper`);function _isNativeReflectConstruct$188(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$188=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$188,`_isNativeReflectConstruct`);var As=function(r){function Validate(){return _classCallCheck(this,Validate),_callSuper$188(this,Validate,arguments)}return _inherits(Validate,r),_createClass(Validate,[{key:`apply`,value:function apply(r){var c=r.input,l=r.options,u=l===void 0?{}:l;return this.component.manager.createSession(c,elementor.getPreviewContainer(),u).then(function(r){return r.validate()})}}])}($e.modules.CommandBase),js=__exportAll({Validate:()=>As});b(),w(),E(),D(),A();function _callSuper$187(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$187()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$187,`_callSuper`);function _isNativeReflectConstruct$187(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$187=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$187,`_isNativeReflectConstruct`);var Ms=function(r){function Component(){return _classCallCheck(this,Component),_callSuper$187(this,Component,arguments)}return _inherits(Component,r),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`editor/browser-import`}},{key:`defaultCommands`,value:function defaultCommands(){return this.importCommands(ks)}},{key:`defaultCommandsInternal`,value:function defaultCommandsInternal(){return this.importCommands(js)}}])}($e.modules.ComponentBase);N(),b(),w(),P();var Ns=function(){function FileReaderBase(r){_classCallCheck(this,FileReaderBase),_defineProperty(this,`file`,void 0),this.file=r}return _createClass(FileReaderBase,[{key:`getFile`,value:function getFile(){return this.file}},{key:`getContent`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(){var r,c;return B.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return r=new FileReader,c=new Promise(function(c){r.onloadend=function(){return c(r.result)}}),r.readAsText(this.getFile()),l.abrupt(`return`,c);case 1:case`end`:return l.stop()}},_callee,this)}));function getContent(){return r.apply(this,arguments)}return getContent}()},{key:`getDataUrl`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee2(){var r,c;return B.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return r=new FileReader,c=new Promise(function(c){r.onloadend=function(){return c(r.result)}}),r.readAsDataURL(this.getFile()),l.abrupt(`return`,c);case 1:case`end`:return l.stop()}},_callee2,this)}));function getDataUrl(){return r.apply(this,arguments)}return getDataUrl}()}],[{key:`getName`,value:function getName(){return``}},{key:`isActive`,value:function isActive(){return!0}},{key:`mimeTypes`,get:function get(){return[]}},{key:`resolve`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee3(r){return B.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt(`return`,!1);case 1:case`end`:return r.stop()}},_callee3)}));function resolve(c){return r.apply(this,arguments)}return resolve}()},{key:`validate`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee4(r){return B.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.validator||(this.validator=new RegExp(this.mimeTypes.join(`|`),`i`)),c.abrupt(`return`,this.validator.test(r.type));case 1:case`end`:return c.stop()}},_callee4,this)}));function validate(c){return r.apply(this,arguments)}return validate}()}])}();b(),w(),E(),D(),A();function _callSuper$186(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$186()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$186,`_callSuper`);function _isNativeReflectConstruct$186(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$186=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$186,`_isNativeReflectConstruct`);var Ps=function(r){function Image(){return _classCallCheck(this,Image),_callSuper$186(this,Image,arguments)}return _inherits(Image,r),_createClass(Image,null,[{key:`getName`,value:function getName(){return`image`}},{key:`mimeTypes`,get:function get(){return[`image\\/\\w+`]}}])}(Ns);b(),w(),E(),D(),A();function _callSuper$185(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$185()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$185,`_callSuper`);function _isNativeReflectConstruct$185(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$185=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$185,`_isNativeReflectConstruct`);var Fs=function(r){function Video(){return _classCallCheck(this,Video),_callSuper$185(this,Video,arguments)}return _inherits(Video,r),_createClass(Video,null,[{key:`getName`,value:function getName(){return`video`}},{key:`mimeTypes`,get:function get(){return[`video\\/\\w+`]}}])}(Ns);N(),b(),w(),E(),D(),A();function _callSuper$184(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$184()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$184,`_callSuper`);function _isNativeReflectConstruct$184(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$184=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$184,`_isNativeReflectConstruct`);var Is=function(r){function Json(){return _classCallCheck(this,Json),_callSuper$184(this,Json,arguments)}return _inherits(Json,r),_createClass(Json,[{key:`getData`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(){return B.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(this._data){r.next=2;break}return r.next=1,this.getContent().then(function(r){return JSON.parse(r)});case 1:this._data=r.sent;case 2:return r.abrupt(`return`,this._data);case 3:case`end`:return r.stop()}},_callee,this)}));function getData(){return r.apply(this,arguments)}return getData}()}],[{key:`getName`,value:function getName(){return`json`}},{key:`isActive`,value:function isActive(){var r,c;return elementor.config.user.is_administrator||(r=(c=elementor.config.user.restrictions)==null?void 0:c.includes(`json-upload`))!=null&&r}},{key:`mimeTypes`,get:function get(){return[`application/json`]}},{key:`resolve`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee2(r){return B.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,JSON.parse(r),c.abrupt(`return`,`application/json`);case 1:return c.prev=1,c.catch(0),c.abrupt(`return`,!1);case 2:case`end`:return c.stop()}},_callee2,null,[[0,1]])}));function resolve(c){return r.apply(this,arguments)}return resolve}()}])}(Ns),Ls=__exportAll({Image:()=>Ps,Json:()=>Is,Video:()=>Fs});N(),b(),w(),P();var Rs=function(){function FileParserBase(r){_classCallCheck(this,FileParserBase),_defineProperty(this,`reader`,void 0),_defineProperty(this,`tasks`,[]),this.reader=r}return _createClass(FileParserBase,[{key:`parse`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(){return B.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:case`end`:return r.stop()}},_callee)}));function parse(){return r.apply(this,arguments)}return parse}()}],[{key:`getName`,value:function getName(){return``}},{key:`getReaders`,value:function getReaders(){return[]}},{key:`validate`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee2(r){return B.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt(`return`,!1);case 1:case`end`:return r.stop()}},_callee2)}));function validate(c){return r.apply(this,arguments)}return validate}()}])}();P(),b(),w(),E(),D(),A();function ownKeys$12(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}__name(ownKeys$12,`ownKeys`);function _objectSpread$12(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$12(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$12(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}__name(_objectSpread$12,`_objectSpread`);function _callSuper$183(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$183()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$183,`_callSuper`);function _isNativeReflectConstruct$183(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$183=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$183,`_isNativeReflectConstruct`);var zs=function(r){function MediaParser(){return _classCallCheck(this,MediaParser),_callSuper$183(this,MediaParser,arguments)}return _inherits(MediaParser,r),_createClass(MediaParser,[{key:`upload`,value:function upload(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $e.data.run(`create`,`wp/media`,{file:r,options:_objectSpread$12({progress:!0},c)}).catch(function(r){return elementor.notifications.showToast({message:r.message}),Promise.reject(r)})}}])}(Rs),Bs=__exportAll({MediaParser:()=>zs});b(),w();function _createForOfIteratorHelper$6(r,c){var l=typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(!l){if(Array.isArray(r)||(l=_unsupportedIterableToArray$6(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.
19 19 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$6,`_createForOfIteratorHelper`);function _unsupportedIterableToArray$6(r,c){if(r){if(typeof r==`string`)return _arrayLikeToArray$6(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$6(r,c):void 0}}__name(_unsupportedIterableToArray$6,`_unsupportedIterableToArray`);function _arrayLikeToArray$6(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$6,`_arrayLikeToArray`);var Vs=function(){function ContainerFactory(){_classCallCheck(this,ContainerFactory)}return _createClass(ContainerFactory,null,[{key:`createElementContainer`,value:function createElementContainer(r){var c=new nn.default(this.regenerateIds([Object.assign({elType:(r==null?void 0:r.elType)||`widget`},r)])[0]);return new elementorModules.editor.Container({id:c.get(`id`),type:c.get(`elType`),settings:c.get(`settings`),model:c,parent:!1})}},{key:`regenerateIds`,value:function regenerateIds(r){var c=_createForOfIteratorHelper$6(r),l;try{for(c.s();!(l=c.n()).done;){var u=l.value;u.id=elementorCommon.helpers.getUniqueId().toString(),u.elements&&this.regenerateIds(u.elements)}}catch(r){c.e(r)}finally{c.f()}return r}}])}();N(),b(),w(),E(),D(),A();function _callSuper$182(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$182()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$182,`_callSuper`);function _isNativeReflectConstruct$182(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$182=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$182,`_isNativeReflectConstruct`);var Hs=function(r){function Widget(){return _classCallCheck(this,Widget),_callSuper$182(this,Widget,arguments)}return _inherits(Widget,r),_createClass(Widget,[{key:`parse`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(){var r,c,l,u,p,m,h;return B.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return r=this.reader.getFile(),l=Vs,g.next=1,this.reader.getDataUrl();case 1:return u=g.sent,p=r.name.split(`.`)[0],m={url:u,alt:p,source:`library`},h={image:m},c=l.createElementContainer.call(l,{widgetType:`image`,settings:h}),this.upload(r).then(function(r){var l=r.data;$e.internal(`document/elements/set-settings`,{container:elementor.getContainer(c.id),settings:{image:{url:l.source_url,id:l.id}}})}).catch(function(){elementor.documents.getCurrent().history.setActive(!1),$e.run(`document/elements/reset-settings`,{container:elementor.getContainer(c.id),options:{external:!0}}),elementor.documents.getCurrent().history.setActive(!0)}),g.abrupt(`return`,c);case 2:case`end`:return g.stop()}},_callee,this)}));function parse(){return r.apply(this,arguments)}return parse}()}],[{key:`getName`,value:function getName(){return`widget`}},{key:`getReaders`,value:function getReaders(){return[`image`]}},{key:`validate`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee2(){return B.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt(`return`,!0);case 1:case`end`:return r.stop()}},_callee2)}));function validate(){return r.apply(this,arguments)}return validate}()}])}(zs),Us=__exportAll({Widget:()=>Hs}),Ws,Gs=__esmMin((()=>{b(),w(),Ws=function(){function FilesUploadHandler(){_classCallCheck(this,FilesUploadHandler)}return _createClass(FilesUploadHandler,null,[{key:`isUploadEnabled`,value:function isUploadEnabled(r){return![`svg`,`application/json`].includes(r)||elementorCommon.config.filesUpload.unfilteredFiles}},{key:`setUploadTypeCaller`,value:function setUploadTypeCaller(r){r.uploader.uploader.param(`uploadTypeCaller`,`elementor-wp-media-upload`)}},{key:`getUnfilteredFilesNonAdminDialog`,value:function getUnfilteredFilesNonAdminDialog(){return elementorCommon.dialogsManager.createWidget(`alert`,{id:`e-unfiltered-files-disabled-dialog`,headerMessage:(0,r.__)(`Sorry, you can't upload that file yet`,`elementor`),message:(0,r.__)(`This is because JSON files may pose a security risk.`,`elementor`)+`<br><br>`+(0,r.__)(`To upload them anyway, ask the site administrator to enable unfiltered file uploads.`,`elementor`),strings:{confirm:(0,r.__)(`Got it`,`elementor`)}})}},{key:`getUnfilteredFilesNotEnabledDialog`,value:function getUnfilteredFilesNotEnabledDialog(c){var l=window.elementorAdmin||window.elementor;return l.config.user.is_administrator?l.helpers.getSimpleDialog(`e-enable-unfiltered-files-dialog`,(0,r.__)(`Enable Unfiltered File Uploads`,`elementor`),(0,r.__)(`Before you enable unfiltered files upload, note that such files include a security risk. Elementor does run a process to remove possible malicious code, but there is still risk involved when using such files.`,`elementor`),(0,r.__)(`Enable`,`elementor`),function onConfirm(){elementorCommon.ajax.addRequest(`enable_unfiltered_files_upload`,{},!0),elementorCommon.config.filesUpload.unfilteredFiles=!0,c()}):this.getUnfilteredFilesNonAdminDialog()}},{key:`getUnfilteredFilesNotEnabledImportTemplateDialog`,value:function getUnfilteredFilesNotEnabledImportTemplateDialog(c){return(window.elementorAdmin||window.elementor).config.user.is_administrator?elementorCommon.dialogsManager.createWidget(`confirm`,{id:`e-enable-unfiltered-files-dialog-import-template`,headerMessage:(0,r.__)(`Enable Unfiltered File Uploads`,`elementor`),message:(0,r.__)(`Before you enable unfiltered files upload, note that such files include a security risk. Elementor does run a process to remove possible malicious code, but there is still risk involved when using such files.`,`elementor`)+`<br /><br />`+(0,r.__)(`If you do not enable uploading unfiltered files, any SVG or JSON (including lottie) files used in the uploaded template will not be imported.`,`elementor`),position:{my:`center center`,at:`center center`},strings:{confirm:(0,r.__)(`Enable and Import`,`elementor`),cancel:(0,r.__)(`Import Without Enabling`,`elementor`)},onConfirm:function onConfirm(){elementorCommon.ajax.addRequest(`enable_unfiltered_files_upload`,{success:function success(){elementorCommon.config.filesUpload.unfilteredFiles=!0,c()}},!0)},onCancel:function onCancel(){return c()}}):this.getUnfilteredFilesNonAdminDialog()}}])}()}));N(),b(),w(),E(),D(),A(),Gs();function _callSuper$181(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$181()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$181,`_callSuper`);function _isNativeReflectConstruct$181(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$181=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$181,`_isNativeReflectConstruct`);var Ks=function(r){function Elements(){return _classCallCheck(this,Elements),_callSuper$181(this,Elements,arguments)}return _inherits(Elements,r),_createClass(Elements,[{key:`parse`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(){return B.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=1,this.reader.getData();case 1:return r.abrupt(`return`,r.sent.content.map(function(r){return Vs.createElementContainer(r)}));case 2:case`end`:return r.stop()}},_callee,this)}));function parse(){return r.apply(this,arguments)}return parse}()}],[{key:`getName`,value:function getName(){return`elements`}},{key:`getReaders`,value:function getReaders(){return[`json`]}},{key:`validate`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee3(r){var c=this;return B.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(elementorCommon.config.filesUpload.unfilteredFiles){l.next=1;break}return l.abrupt(`return`,new Promise(function(l){Ws.getUnfilteredFilesNotEnabledImportTemplateDialog(_asyncToGenerator(B.default.mark(function _callee2(){var u;return B.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=1,c.validateData(r);case 1:u=p.sent,l(u);case 2:case`end`:return p.stop()}},_callee2)}))).show()}));case 1:return l.next=2,this.validateData(r);case 2:return l.abrupt(`return`,l.sent);case 3:case`end`:return l.stop()}},_callee3,this)}));function validate(c){return r.apply(this,arguments)}return validate}()},{key:`validateData`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee4(r){var c;return B.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=1,r.getData();case 1:return c=l.sent,l.abrupt(`return`,c.version&&c.type&&Array.isArray(c.content));case 2:case`end`:return l.stop()}},_callee4)}));function validateData(c){return r.apply(this,arguments)}return validateData}()}])}(Rs),qs=__exportAll({Elements:()=>Ks});N(),b(),w(),E(),D(),A();function _callSuper$180(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$180()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$180,`_callSuper`);function _isNativeReflectConstruct$180(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$180=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$180,`_isNativeReflectConstruct`);var Js=function(r){function Widget(){return _classCallCheck(this,Widget),_callSuper$180(this,Widget,arguments)}return _inherits(Widget,r),_createClass(Widget,[{key:`parse`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(){var r,c,l,u,p,m,h;return B.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return r=this.reader.getFile(),l=Vs,g.next=1,this.reader.getDataUrl();case 1:return u=g.sent,p=r.name.split(`.`)[0],m={url:u,alt:p,source:`library`},h={video_type:`hosted`,hosted_url:m},c=l.createElementContainer.call(l,{widgetType:`video`,settings:h}),this.upload(r).then(function(r){var l=r.data;$e.internal(`document/elements/set-settings`,{container:elementor.getContainer(c.id),settings:{hosted_url:{url:l.source_url,id:l.id}}})}).catch(function(){elementor.documents.getCurrent().history.setActive(!1),$e.run(`document/elements/reset-settings`,{container:elementor.getContainer(c.id),options:{external:!0}}),elementor.documents.getCurrent().history.setActive(!0)}),g.abrupt(`return`,c);case 2:case`end`:return g.stop()}},_callee,this)}));function parse(){return r.apply(this,arguments)}return parse}()}],[{key:`getName`,value:function getName(){return`widget`}},{key:`getReaders`,value:function getReaders(){return[`video`]}},{key:`validate`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee2(){return B.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt(`return`,!0);case 1:case`end`:return r.stop()}},_callee2)}));function validate(){return r.apply(this,arguments)}return validate}()}])}(zs),Ys=__exportAll({Widget:()=>Js}),Xs=__exportAll({base:()=>Bs,image:()=>Us,json:()=>qs,video:()=>Ys});x();var Zs=function recursiveValues(r){return Object.values(r).map(function(r){return _typeof(r)===`object`?Object.values(r):r})},Qs={readers:Zs(Ls),parsers:Zs(Xs).flat()},$s=__commonJSMin(((r,c)=>{function Mime(){this._types=Object.create(null),this._extensions=Object.create(null);for(let r=0;r<arguments.length;r++)this.define(arguments[r]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}Mime.prototype.define=function(r,c){for(let l in r){let u=r[l].map(function(r){return r.toLowerCase()});l=l.toLowerCase();for(let r=0;r<u.length;r++){let p=u[r];if(p[0]!==`*`){if(!c&&p in this._types)throw Error(`Attempt to change mapping for "`+p+`" extension from "`+this._types[p]+`" to "`+l+'". Pass `force=true` to allow this, otherwise remove "'+p+`" from the list of extensions for "`+l+`".`);this._types[p]=l}}if(c||!this._extensions[l]){let r=u[0];this._extensions[l]=r[0]===`*`?r.substr(1):r}}},Mime.prototype.getType=function(r){r=String(r);let c=r.replace(/^.*[/\\]/,``).toLowerCase(),l=c.replace(/^.*\./,``).toLowerCase(),u=c.length<r.length;return(l.length<c.length-1||!u)&&this._types[l]||null},Mime.prototype.getExtension=function(r){return r=/^\s*([^;\s]*)/.test(r)&&RegExp.$1,r&&this._extensions[r.toLowerCase()]||null},c.exports=Mime})),ec=__commonJSMin(((r,c)=>{c.exports={"application/andrew-inset":[`ez`],"application/applixware":[`aw`],"application/atom+xml":[`atom`],"application/atomcat+xml":[`atomcat`],"application/atomdeleted+xml":[`atomdeleted`],"application/atomsvc+xml":[`atomsvc`],"application/atsc-dwd+xml":[`dwd`],"application/atsc-held+xml":[`held`],"application/atsc-rsat+xml":[`rsat`],"application/bdoc":[`bdoc`],"application/calendar+xml":[`xcs`],"application/ccxml+xml":[`ccxml`],"application/cdfx+xml":[`cdfx`],"application/cdmi-capability":[`cdmia`],"application/cdmi-container":[`cdmic`],"application/cdmi-domain":[`cdmid`],"application/cdmi-object":[`cdmio`],"application/cdmi-queue":[`cdmiq`],"application/cu-seeme":[`cu`],"application/dash+xml":[`mpd`],"application/davmount+xml":[`davmount`],"application/docbook+xml":[`dbk`],"application/dssc+der":[`dssc`],"application/dssc+xml":[`xdssc`],"application/ecmascript":[`es`,`ecma`],"application/emma+xml":[`emma`],"application/emotionml+xml":[`emotionml`],"application/epub+zip":[`epub`],"application/exi":[`exi`],"application/express":[`exp`],"application/fdt+xml":[`fdt`],"application/font-tdpfr":[`pfr`],"application/geo+json":[`geojson`],"application/gml+xml":[`gml`],"application/gpx+xml":[`gpx`],"application/gxf":[`gxf`],"application/gzip":[`gz`],"application/hjson":[`hjson`],"application/hyperstudio":[`stk`],"application/inkml+xml":[`ink`,`inkml`],"application/ipfix":[`ipfix`],"application/its+xml":[`its`],"application/java-archive":[`jar`,`war`,`ear`],"application/java-serialized-object":[`ser`],"application/java-vm":[`class`],"application/javascript":[`js`,`mjs`],"application/json":[`json`,`map`],"application/json5":[`json5`],"application/jsonml+json":[`jsonml`],"application/ld+json":[`jsonld`],"application/lgr+xml":[`lgr`],"application/lost+xml":[`lostxml`],"application/mac-binhex40":[`hqx`],"application/mac-compactpro":[`cpt`],"application/mads+xml":[`mads`],"application/manifest+json":[`webmanifest`],"application/marc":[`mrc`],"application/marcxml+xml":[`mrcx`],"application/mathematica":[`ma`,`nb`,`mb`],"application/mathml+xml":[`mathml`],"application/mbox":[`mbox`],"application/mediaservercontrol+xml":[`mscml`],"application/metalink+xml":[`metalink`],"application/metalink4+xml":[`meta4`],"application/mets+xml":[`mets`],"application/mmt-aei+xml":[`maei`],"application/mmt-usd+xml":[`musd`],"application/mods+xml":[`mods`],"application/mp21":[`m21`,`mp21`],"application/mp4":[`mp4s`,`m4p`],"application/msword":[`doc`,`dot`],"application/mxf":[`mxf`],"application/n-quads":[`nq`],"application/n-triples":[`nt`],"application/node":[`cjs`],"application/octet-stream":[`bin`,`dms`,`lrf`,`mar`,`so`,`dist`,`distz`,`pkg`,`bpk`,`dump`,`elc`,`deploy`,`exe`,`dll`,`deb`,`dmg`,`iso`,`img`,`msi`,`msp`,`msm`,`buffer`],"application/oda":[`oda`],"application/oebps-package+xml":[`opf`],"application/ogg":[`ogx`],"application/omdoc+xml":[`omdoc`],"application/onenote":[`onetoc`,`onetoc2`,`onetmp`,`onepkg`],"application/oxps":[`oxps`],"application/p2p-overlay+xml":[`relo`],"application/patch-ops-error+xml":[`xer`],"application/pdf":[`pdf`],"application/pgp-encrypted":[`pgp`],"application/pgp-signature":[`asc`,`sig`],"application/pics-rules":[`prf`],"application/pkcs10":[`p10`],"application/pkcs7-mime":[`p7m`,`p7c`],"application/pkcs7-signature":[`p7s`],"application/pkcs8":[`p8`],"application/pkix-attr-cert":[`ac`],"application/pkix-cert":[`cer`],"application/pkix-crl":[`crl`],"application/pkix-pkipath":[`pkipath`],"application/pkixcmp":[`pki`],"application/pls+xml":[`pls`],"application/postscript":[`ai`,`eps`,`ps`],"application/provenance+xml":[`provx`],"application/pskc+xml":[`pskcxml`],"application/raml+yaml":[`raml`],"application/rdf+xml":[`rdf`,`owl`],"application/reginfo+xml":[`rif`],"application/relax-ng-compact-syntax":[`rnc`],"application/resource-lists+xml":[`rl`],"application/resource-lists-diff+xml":[`rld`],"application/rls-services+xml":[`rs`],"application/route-apd+xml":[`rapd`],"application/route-s-tsid+xml":[`sls`],"application/route-usd+xml":[`rusd`],"application/rpki-ghostbusters":[`gbr`],"application/rpki-manifest":[`mft`],"application/rpki-roa":[`roa`],"application/rsd+xml":[`rsd`],"application/rss+xml":[`rss`],"application/rtf":[`rtf`],"application/sbml+xml":[`sbml`],"application/scvp-cv-request":[`scq`],"application/scvp-cv-response":[`scs`],"application/scvp-vp-request":[`spq`],"application/scvp-vp-response":[`spp`],"application/sdp":[`sdp`],"application/senml+xml":[`senmlx`],"application/sensml+xml":[`sensmlx`],"application/set-payment-initiation":[`setpay`],"application/set-registration-initiation":[`setreg`],"application/shf+xml":[`shf`],"application/sieve":[`siv`,`sieve`],"application/smil+xml":[`smi`,`smil`],"application/sparql-query":[`rq`],"application/sparql-results+xml":[`srx`],"application/srgs":[`gram`],"application/srgs+xml":[`grxml`],"application/sru+xml":[`sru`],"application/ssdl+xml":[`ssdl`],"application/ssml+xml":[`ssml`],"application/swid+xml":[`swidtag`],"application/tei+xml":[`tei`,`teicorpus`],"application/thraud+xml":[`tfi`],"application/timestamped-data":[`tsd`],"application/toml":[`toml`],"application/trig":[`trig`],"application/ttml+xml":[`ttml`],"application/ubjson":[`ubj`],"application/urc-ressheet+xml":[`rsheet`],"application/urc-targetdesc+xml":[`td`],"application/voicexml+xml":[`vxml`],"application/wasm":[`wasm`],"application/widget":[`wgt`],"application/winhlp":[`hlp`],"application/wsdl+xml":[`wsdl`],"application/wspolicy+xml":[`wspolicy`],"application/xaml+xml":[`xaml`],"application/xcap-att+xml":[`xav`],"application/xcap-caps+xml":[`xca`],"application/xcap-diff+xml":[`xdf`],"application/xcap-el+xml":[`xel`],"application/xcap-ns+xml":[`xns`],"application/xenc+xml":[`xenc`],"application/xhtml+xml":[`xhtml`,`xht`],"application/xliff+xml":[`xlf`],"application/xml":[`xml`,`xsl`,`xsd`,`rng`],"application/xml-dtd":[`dtd`],"application/xop+xml":[`xop`],"application/xproc+xml":[`xpl`],"application/xslt+xml":[`*xsl`,`xslt`],"application/xspf+xml":[`xspf`],"application/xv+xml":[`mxml`,`xhvml`,`xvml`,`xvm`],"application/yang":[`yang`],"application/yin+xml":[`yin`],"application/zip":[`zip`],"audio/3gpp":[`*3gpp`],"audio/adpcm":[`adp`],"audio/amr":[`amr`],"audio/basic":[`au`,`snd`],"audio/midi":[`mid`,`midi`,`kar`,`rmi`],"audio/mobile-xmf":[`mxmf`],"audio/mp3":[`*mp3`],"audio/mp4":[`m4a`,`mp4a`],"audio/mpeg":[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`],"audio/ogg":[`oga`,`ogg`,`spx`,`opus`],"audio/s3m":[`s3m`],"audio/silk":[`sil`],"audio/wav":[`wav`],"audio/wave":[`*wav`],"audio/webm":[`weba`],"audio/xm":[`xm`],"font/collection":[`ttc`],"font/otf":[`otf`],"font/ttf":[`ttf`],"font/woff":[`woff`],"font/woff2":[`woff2`],"image/aces":[`exr`],"image/apng":[`apng`],"image/avif":[`avif`],"image/bmp":[`bmp`],"image/cgm":[`cgm`],"image/dicom-rle":[`drle`],"image/emf":[`emf`],"image/fits":[`fits`],"image/g3fax":[`g3`],"image/gif":[`gif`],"image/heic":[`heic`],"image/heic-sequence":[`heics`],"image/heif":[`heif`],"image/heif-sequence":[`heifs`],"image/hej2k":[`hej2`],"image/hsj2":[`hsj2`],"image/ief":[`ief`],"image/jls":[`jls`],"image/jp2":[`jp2`,`jpg2`],"image/jpeg":[`jpeg`,`jpg`,`jpe`],"image/jph":[`jph`],"image/jphc":[`jhc`],"image/jpm":[`jpm`],"image/jpx":[`jpx`,`jpf`],"image/jxr":[`jxr`],"image/jxra":[`jxra`],"image/jxrs":[`jxrs`],"image/jxs":[`jxs`],"image/jxsc":[`jxsc`],"image/jxsi":[`jxsi`],"image/jxss":[`jxss`],"image/ktx":[`ktx`],"image/ktx2":[`ktx2`],"image/png":[`png`],"image/sgi":[`sgi`],"image/svg+xml":[`svg`,`svgz`],"image/t38":[`t38`],"image/tiff":[`tif`,`tiff`],"image/tiff-fx":[`tfx`],"image/webp":[`webp`],"image/wmf":[`wmf`],"message/disposition-notification":[`disposition-notification`],"message/global":[`u8msg`],"message/global-delivery-status":[`u8dsn`],"message/global-disposition-notification":[`u8mdn`],"message/global-headers":[`u8hdr`],"message/rfc822":[`eml`,`mime`],"model/3mf":[`3mf`],"model/gltf+json":[`gltf`],"model/gltf-binary":[`glb`],"model/iges":[`igs`,`iges`],"model/mesh":[`msh`,`mesh`,`silo`],"model/mtl":[`mtl`],"model/obj":[`obj`],"model/step+xml":[`stpx`],"model/step+zip":[`stpz`],"model/step-xml+zip":[`stpxz`],"model/stl":[`stl`],"model/vrml":[`wrl`,`vrml`],"model/x3d+binary":[`*x3db`,`x3dbz`],"model/x3d+fastinfoset":[`x3db`],"model/x3d+vrml":[`*x3dv`,`x3dvz`],"model/x3d+xml":[`x3d`,`x3dz`],"model/x3d-vrml":[`x3dv`],"text/cache-manifest":[`appcache`,`manifest`],"text/calendar":[`ics`,`ifb`],"text/coffeescript":[`coffee`,`litcoffee`],"text/css":[`css`],"text/csv":[`csv`],"text/html":[`html`,`htm`,`shtml`],"text/jade":[`jade`],"text/jsx":[`jsx`],"text/less":[`less`],"text/markdown":[`markdown`,`md`],"text/mathml":[`mml`],"text/mdx":[`mdx`],"text/n3":[`n3`],"text/plain":[`txt`,`text`,`conf`,`def`,`list`,`log`,`in`,`ini`],"text/richtext":[`rtx`],"text/rtf":[`*rtf`],"text/sgml":[`sgml`,`sgm`],"text/shex":[`shex`],"text/slim":[`slim`,`slm`],"text/spdx":[`spdx`],"text/stylus":[`stylus`,`styl`],"text/tab-separated-values":[`tsv`],"text/troff":[`t`,`tr`,`roff`,`man`,`me`,`ms`],"text/turtle":[`ttl`],"text/uri-list":[`uri`,`uris`,`urls`],"text/vcard":[`vcard`],"text/vtt":[`vtt`],"text/xml":[`*xml`],"text/yaml":[`yaml`,`yml`],"video/3gpp":[`3gp`,`3gpp`],"video/3gpp2":[`3g2`],"video/h261":[`h261`],"video/h263":[`h263`],"video/h264":[`h264`],"video/iso.segment":[`m4s`],"video/jpeg":[`jpgv`],"video/jpm":[`*jpm`,`jpgm`],"video/mj2":[`mj2`,`mjp2`],"video/mp2t":[`ts`],"video/mp4":[`mp4`,`mp4v`,`mpg4`],"video/mpeg":[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`],"video/ogg":[`ogv`],"video/quicktime":[`qt`,`mov`],"video/webm":[`webm`]}})),tc=__commonJSMin(((r,c)=>{c.exports={"application/prs.cww":[`cww`],"application/vnd.1000minds.decision-model+xml":[`1km`],"application/vnd.3gpp.pic-bw-large":[`plb`],"application/vnd.3gpp.pic-bw-small":[`psb`],"application/vnd.3gpp.pic-bw-var":[`pvb`],"application/vnd.3gpp2.tcap":[`tcap`],"application/vnd.3m.post-it-notes":[`pwn`],"application/vnd.accpac.simply.aso":[`aso`],"application/vnd.accpac.simply.imp":[`imp`],"application/vnd.acucobol":[`acu`],"application/vnd.acucorp":[`atc`,`acutc`],"application/vnd.adobe.air-application-installer-package+zip":[`air`],"application/vnd.adobe.formscentral.fcdt":[`fcdt`],"application/vnd.adobe.fxp":[`fxp`,`fxpl`],"application/vnd.adobe.xdp+xml":[`xdp`],"application/vnd.adobe.xfdf":[`xfdf`],"application/vnd.ahead.space":[`ahead`],"application/vnd.airzip.filesecure.azf":[`azf`],"application/vnd.airzip.filesecure.azs":[`azs`],"application/vnd.amazon.ebook":[`azw`],"application/vnd.americandynamics.acc":[`acc`],"application/vnd.amiga.ami":[`ami`],"application/vnd.android.package-archive":[`apk`],"application/vnd.anser-web-certificate-issue-initiation":[`cii`],"application/vnd.anser-web-funds-transfer-initiation":[`fti`],"application/vnd.antix.game-component":[`atx`],"application/vnd.apple.installer+xml":[`mpkg`],"application/vnd.apple.keynote":[`key`],"application/vnd.apple.mpegurl":[`m3u8`],"application/vnd.apple.numbers":[`numbers`],"application/vnd.apple.pages":[`pages`],"application/vnd.apple.pkpass":[`pkpass`],"application/vnd.aristanetworks.swi":[`swi`],"application/vnd.astraea-software.iota":[`iota`],"application/vnd.audiograph":[`aep`],"application/vnd.balsamiq.bmml+xml":[`bmml`],"application/vnd.blueice.multipass":[`mpm`],"application/vnd.bmi":[`bmi`],"application/vnd.businessobjects":[`rep`],"application/vnd.chemdraw+xml":[`cdxml`],"application/vnd.chipnuts.karaoke-mmd":[`mmd`],"application/vnd.cinderella":[`cdy`],"application/vnd.citationstyles.style+xml":[`csl`],"application/vnd.claymore":[`cla`],"application/vnd.cloanto.rp9":[`rp9`],"application/vnd.clonk.c4group":[`c4g`,`c4d`,`c4f`,`c4p`,`c4u`],"application/vnd.cluetrust.cartomobile-config":[`c11amc`],"application/vnd.cluetrust.cartomobile-config-pkg":[`c11amz`],"application/vnd.commonspace":[`csp`],"application/vnd.contact.cmsg":[`cdbcmsg`],"application/vnd.cosmocaller":[`cmc`],"application/vnd.crick.clicker":[`clkx`],"application/vnd.crick.clicker.keyboard":[`clkk`],"application/vnd.crick.clicker.palette":[`clkp`],"application/vnd.crick.clicker.template":[`clkt`],"application/vnd.crick.clicker.wordbank":[`clkw`],"application/vnd.criticaltools.wbs+xml":[`wbs`],"application/vnd.ctc-posml":[`pml`],"application/vnd.cups-ppd":[`ppd`],"application/vnd.curl.car":[`car`],"application/vnd.curl.pcurl":[`pcurl`],"application/vnd.dart":[`dart`],"application/vnd.data-vision.rdz":[`rdz`],"application/vnd.dbf":[`dbf`],"application/vnd.dece.data":[`uvf`,`uvvf`,`uvd`,`uvvd`],"application/vnd.dece.ttml+xml":[`uvt`,`uvvt`],"application/vnd.dece.unspecified":[`uvx`,`uvvx`],"application/vnd.dece.zip":[`uvz`,`uvvz`],"application/vnd.denovo.fcselayout-link":[`fe_launch`],"application/vnd.dna":[`dna`],"application/vnd.dolby.mlp":[`mlp`],"application/vnd.dpgraph":[`dpg`],"application/vnd.dreamfactory":[`dfac`],"application/vnd.ds-keypoint":[`kpxx`],"application/vnd.dvb.ait":[`ait`],"application/vnd.dvb.service":[`svc`],"application/vnd.dynageo":[`geo`],"application/vnd.ecowin.chart":[`mag`],"application/vnd.enliven":[`nml`],"application/vnd.epson.esf":[`esf`],"application/vnd.epson.msf":[`msf`],"application/vnd.epson.quickanime":[`qam`],"application/vnd.epson.salt":[`slt`],"application/vnd.epson.ssf":[`ssf`],"application/vnd.eszigno3+xml":[`es3`,`et3`],"application/vnd.ezpix-album":[`ez2`],"application/vnd.ezpix-package":[`ez3`],"application/vnd.fdf":[`fdf`],"application/vnd.fdsn.mseed":[`mseed`],"application/vnd.fdsn.seed":[`seed`,`dataless`],"application/vnd.flographit":[`gph`],"application/vnd.fluxtime.clip":[`ftc`],"application/vnd.framemaker":[`fm`,`frame`,`maker`,`book`],"application/vnd.frogans.fnc":[`fnc`],"application/vnd.frogans.ltf":[`ltf`],"application/vnd.fsc.weblaunch":[`fsc`],"application/vnd.fujitsu.oasys":[`oas`],"application/vnd.fujitsu.oasys2":[`oa2`],"application/vnd.fujitsu.oasys3":[`oa3`],"application/vnd.fujitsu.oasysgp":[`fg5`],"application/vnd.fujitsu.oasysprs":[`bh2`],"application/vnd.fujixerox.ddd":[`ddd`],"application/vnd.fujixerox.docuworks":[`xdw`],"application/vnd.fujixerox.docuworks.binder":[`xbd`],"application/vnd.fuzzysheet":[`fzs`],"application/vnd.genomatix.tuxedo":[`txd`],"application/vnd.geogebra.file":[`ggb`],"application/vnd.geogebra.tool":[`ggt`],"application/vnd.geometry-explorer":[`gex`,`gre`],"application/vnd.geonext":[`gxt`],"application/vnd.geoplan":[`g2w`],"application/vnd.geospace":[`g3w`],"application/vnd.gmx":[`gmx`],"application/vnd.google-apps.document":[`gdoc`],"application/vnd.google-apps.presentation":[`gslides`],"application/vnd.google-apps.spreadsheet":[`gsheet`],"application/vnd.google-earth.kml+xml":[`kml`],"application/vnd.google-earth.kmz":[`kmz`],"application/vnd.grafeq":[`gqf`,`gqs`],"application/vnd.groove-account":[`gac`],"application/vnd.groove-help":[`ghf`],"application/vnd.groove-identity-message":[`gim`],"application/vnd.groove-injector":[`grv`],"application/vnd.groove-tool-message":[`gtm`],"application/vnd.groove-tool-template":[`tpl`],"application/vnd.groove-vcard":[`vcg`],"application/vnd.hal+xml":[`hal`],"application/vnd.handheld-entertainment+xml":[`zmm`],"application/vnd.hbci":[`hbci`],"application/vnd.hhe.lesson-player":[`les`],"application/vnd.hp-hpgl":[`hpgl`],"application/vnd.hp-hpid":[`hpid`],"application/vnd.hp-hps":[`hps`],"application/vnd.hp-jlyt":[`jlt`],"application/vnd.hp-pcl":[`pcl`],"application/vnd.hp-pclxl":[`pclxl`],"application/vnd.hydrostatix.sof-data":[`sfd-hdstx`],"application/vnd.ibm.minipay":[`mpy`],"application/vnd.ibm.modcap":[`afp`,`listafp`,`list3820`],"application/vnd.ibm.rights-management":[`irm`],"application/vnd.ibm.secure-container":[`sc`],"application/vnd.iccprofile":[`icc`,`icm`],"application/vnd.igloader":[`igl`],"application/vnd.immervision-ivp":[`ivp`],"application/vnd.immervision-ivu":[`ivu`],"application/vnd.insors.igm":[`igm`],"application/vnd.intercon.formnet":[`xpw`,`xpx`],"application/vnd.intergeo":[`i2g`],"application/vnd.intu.qbo":[`qbo`],"application/vnd.intu.qfx":[`qfx`],"application/vnd.ipunplugged.rcprofile":[`rcprofile`],"application/vnd.irepository.package+xml":[`irp`],"application/vnd.is-xpr":[`xpr`],"application/vnd.isac.fcs":[`fcs`],"application/vnd.jam":[`jam`],"application/vnd.jcp.javame.midlet-rms":[`rms`],"application/vnd.jisp":[`jisp`],"application/vnd.joost.joda-archive":[`joda`],"application/vnd.kahootz":[`ktz`,`ktr`],"application/vnd.kde.karbon":[`karbon`],"application/vnd.kde.kchart":[`chrt`],"application/vnd.kde.kformula":[`kfo`],"application/vnd.kde.kivio":[`flw`],"application/vnd.kde.kontour":[`kon`],"application/vnd.kde.kpresenter":[`kpr`,`kpt`],"application/vnd.kde.kspread":[`ksp`],"application/vnd.kde.kword":[`kwd`,`kwt`],"application/vnd.kenameaapp":[`htke`],"application/vnd.kidspiration":[`kia`],"application/vnd.kinar":[`kne`,`knp`],"application/vnd.koan":[`skp`,`skd`,`skt`,`skm`],"application/vnd.kodak-descriptor":[`sse`],"application/vnd.las.las+xml":[`lasxml`],"application/vnd.llamagraphics.life-balance.desktop":[`lbd`],"application/vnd.llamagraphics.life-balance.exchange+xml":[`lbe`],"application/vnd.lotus-1-2-3":[`123`],"application/vnd.lotus-approach":[`apr`],"application/vnd.lotus-freelance":[`pre`],"application/vnd.lotus-notes":[`nsf`],"application/vnd.lotus-organizer":[`org`],"application/vnd.lotus-screencam":[`scm`],"application/vnd.lotus-wordpro":[`lwp`],"application/vnd.macports.portpkg":[`portpkg`],"application/vnd.mapbox-vector-tile":[`mvt`],"application/vnd.mcd":[`mcd`],"application/vnd.medcalcdata":[`mc1`],"application/vnd.mediastation.cdkey":[`cdkey`],"application/vnd.mfer":[`mwf`],"application/vnd.mfmp":[`mfm`],"application/vnd.micrografx.flo":[`flo`],"application/vnd.micrografx.igx":[`igx`],"application/vnd.mif":[`mif`],"application/vnd.mobius.daf":[`daf`],"application/vnd.mobius.dis":[`dis`],"application/vnd.mobius.mbk":[`mbk`],"application/vnd.mobius.mqy":[`mqy`],"application/vnd.mobius.msl":[`msl`],"application/vnd.mobius.plc":[`plc`],"application/vnd.mobius.txf":[`txf`],"application/vnd.mophun.application":[`mpn`],"application/vnd.mophun.certificate":[`mpc`],"application/vnd.mozilla.xul+xml":[`xul`],"application/vnd.ms-artgalry":[`cil`],"application/vnd.ms-cab-compressed":[`cab`],"application/vnd.ms-excel":[`xls`,`xlm`,`xla`,`xlc`,`xlt`,`xlw`],"application/vnd.ms-excel.addin.macroenabled.12":[`xlam`],"application/vnd.ms-excel.sheet.binary.macroenabled.12":[`xlsb`],"application/vnd.ms-excel.sheet.macroenabled.12":[`xlsm`],"application/vnd.ms-excel.template.macroenabled.12":[`xltm`],"application/vnd.ms-fontobject":[`eot`],"application/vnd.ms-htmlhelp":[`chm`],"application/vnd.ms-ims":[`ims`],"application/vnd.ms-lrm":[`lrm`],"application/vnd.ms-officetheme":[`thmx`],"application/vnd.ms-outlook":[`msg`],"application/vnd.ms-pki.seccat":[`cat`],"application/vnd.ms-pki.stl":[`*stl`],"application/vnd.ms-powerpoint":[`ppt`,`pps`,`pot`],"application/vnd.ms-powerpoint.addin.macroenabled.12":[`ppam`],"application/vnd.ms-powerpoint.presentation.macroenabled.12":[`pptm`],"application/vnd.ms-powerpoint.slide.macroenabled.12":[`sldm`],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":[`ppsm`],"application/vnd.ms-powerpoint.template.macroenabled.12":[`potm`],"application/vnd.ms-project":[`mpp`,`mpt`],"application/vnd.ms-word.document.macroenabled.12":[`docm`],"application/vnd.ms-word.template.macroenabled.12":[`dotm`],"application/vnd.ms-works":[`wps`,`wks`,`wcm`,`wdb`],"application/vnd.ms-wpl":[`wpl`],"application/vnd.ms-xpsdocument":[`xps`],"application/vnd.mseq":[`mseq`],"application/vnd.musician":[`mus`],"application/vnd.muvee.style":[`msty`],"application/vnd.mynfc":[`taglet`],"application/vnd.neurolanguage.nlu":[`nlu`],"application/vnd.nitf":[`ntf`,`nitf`],"application/vnd.noblenet-directory":[`nnd`],"application/vnd.noblenet-sealer":[`nns`],"application/vnd.noblenet-web":[`nnw`],"application/vnd.nokia.n-gage.ac+xml":[`*ac`],"application/vnd.nokia.n-gage.data":[`ngdat`],"application/vnd.nokia.n-gage.symbian.install":[`n-gage`],"application/vnd.nokia.radio-preset":[`rpst`],"application/vnd.nokia.radio-presets":[`rpss`],"application/vnd.novadigm.edm":[`edm`],"application/vnd.novadigm.edx":[`edx`],"application/vnd.novadigm.ext":[`ext`],"application/vnd.oasis.opendocument.chart":[`odc`],"application/vnd.oasis.opendocument.chart-template":[`otc`],"application/vnd.oasis.opendocument.database":[`odb`],"application/vnd.oasis.opendocument.formula":[`odf`],"application/vnd.oasis.opendocument.formula-template":[`odft`],"application/vnd.oasis.opendocument.graphics":[`odg`],"application/vnd.oasis.opendocument.graphics-template":[`otg`],"application/vnd.oasis.opendocument.image":[`odi`],"application/vnd.oasis.opendocument.image-template":[`oti`],"application/vnd.oasis.opendocument.presentation":[`odp`],"application/vnd.oasis.opendocument.presentation-template":[`otp`],"application/vnd.oasis.opendocument.spreadsheet":[`ods`],"application/vnd.oasis.opendocument.spreadsheet-template":[`ots`],"application/vnd.oasis.opendocument.text":[`odt`],"application/vnd.oasis.opendocument.text-master":[`odm`],"application/vnd.oasis.opendocument.text-template":[`ott`],"application/vnd.oasis.opendocument.text-web":[`oth`],"application/vnd.olpc-sugar":[`xo`],"application/vnd.oma.dd2+xml":[`dd2`],"application/vnd.openblox.game+xml":[`obgx`],"application/vnd.openofficeorg.extension":[`oxt`],"application/vnd.openstreetmap.data+xml":[`osm`],"application/vnd.openxmlformats-officedocument.presentationml.presentation":[`pptx`],"application/vnd.openxmlformats-officedocument.presentationml.slide":[`sldx`],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":[`ppsx`],"application/vnd.openxmlformats-officedocument.presentationml.template":[`potx`],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":[`xlsx`],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":[`xltx`],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[`docx`],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":[`dotx`],"application/vnd.osgeo.mapguide.package":[`mgp`],"application/vnd.osgi.dp":[`dp`],"application/vnd.osgi.subsystem":[`esa`],"application/vnd.palm":[`pdb`,`pqa`,`oprc`],"application/vnd.pawaafile":[`paw`],"application/vnd.pg.format":[`str`],"application/vnd.pg.osasli":[`ei6`],"application/vnd.picsel":[`efif`],"application/vnd.pmi.widget":[`wg`],"application/vnd.pocketlearn":[`plf`],"application/vnd.powerbuilder6":[`pbd`],"application/vnd.previewsystems.box":[`box`],"application/vnd.proteus.magazine":[`mgz`],"application/vnd.publishare-delta-tree":[`qps`],"application/vnd.pvi.ptid1":[`ptid`],"application/vnd.quark.quarkxpress":[`qxd`,`qxt`,`qwd`,`qwt`,`qxl`,`qxb`],"application/vnd.rar":[`rar`],"application/vnd.realvnc.bed":[`bed`],"application/vnd.recordare.musicxml":[`mxl`],"application/vnd.recordare.musicxml+xml":[`musicxml`],"application/vnd.rig.cryptonote":[`cryptonote`],"application/vnd.rim.cod":[`cod`],"application/vnd.rn-realmedia":[`rm`],"application/vnd.rn-realmedia-vbr":[`rmvb`],"application/vnd.route66.link66+xml":[`link66`],"application/vnd.sailingtracker.track":[`st`],"application/vnd.seemail":[`see`],"application/vnd.sema":[`sema`],"application/vnd.semd":[`semd`],"application/vnd.semf":[`semf`],"application/vnd.shana.informed.formdata":[`ifm`],"application/vnd.shana.informed.formtemplate":[`itp`],"application/vnd.shana.informed.interchange":[`iif`],"application/vnd.shana.informed.package":[`ipk`],"application/vnd.simtech-mindmapper":[`twd`,`twds`],"application/vnd.smaf":[`mmf`],"application/vnd.smart.teacher":[`teacher`],"application/vnd.software602.filler.form+xml":[`fo`],"application/vnd.solent.sdkm+xml":[`sdkm`,`sdkd`],"application/vnd.spotfire.dxp":[`dxp`],"application/vnd.spotfire.sfs":[`sfs`],"application/vnd.stardivision.calc":[`sdc`],"application/vnd.stardivision.draw":[`sda`],"application/vnd.stardivision.impress":[`sdd`],"application/vnd.stardivision.math":[`smf`],"application/vnd.stardivision.writer":[`sdw`,`vor`],"application/vnd.stardivision.writer-global":[`sgl`],"application/vnd.stepmania.package":[`smzip`],"application/vnd.stepmania.stepchart":[`sm`],"application/vnd.sun.wadl+xml":[`wadl`],"application/vnd.sun.xml.calc":[`sxc`],"application/vnd.sun.xml.calc.template":[`stc`],"application/vnd.sun.xml.draw":[`sxd`],"application/vnd.sun.xml.draw.template":[`std`],"application/vnd.sun.xml.impress":[`sxi`],"application/vnd.sun.xml.impress.template":[`sti`],"application/vnd.sun.xml.math":[`sxm`],"application/vnd.sun.xml.writer":[`sxw`],"application/vnd.sun.xml.writer.global":[`sxg`],"application/vnd.sun.xml.writer.template":[`stw`],"application/vnd.sus-calendar":[`sus`,`susp`],"application/vnd.svd":[`svd`],"application/vnd.symbian.install":[`sis`,`sisx`],"application/vnd.syncml+xml":[`xsm`],"application/vnd.syncml.dm+wbxml":[`bdm`],"application/vnd.syncml.dm+xml":[`xdm`],"application/vnd.syncml.dmddf+xml":[`ddf`],"application/vnd.tao.intent-module-archive":[`tao`],"application/vnd.tcpdump.pcap":[`pcap`,`cap`,`dmp`],"application/vnd.tmobile-livetv":[`tmo`],"application/vnd.trid.tpt":[`tpt`],"application/vnd.triscape.mxs":[`mxs`],"application/vnd.trueapp":[`tra`],"application/vnd.ufdl":[`ufd`,`ufdl`],"application/vnd.uiq.theme":[`utz`],"application/vnd.umajin":[`umj`],"application/vnd.unity":[`unityweb`],"application/vnd.uoml+xml":[`uoml`],"application/vnd.vcx":[`vcx`],"application/vnd.visio":[`vsd`,`vst`,`vss`,`vsw`],"application/vnd.visionary":[`vis`],"application/vnd.vsf":[`vsf`],"application/vnd.wap.wbxml":[`wbxml`],"application/vnd.wap.wmlc":[`wmlc`],"application/vnd.wap.wmlscriptc":[`wmlsc`],"application/vnd.webturbo":[`wtb`],"application/vnd.wolfram.player":[`nbp`],"application/vnd.wordperfect":[`wpd`],"application/vnd.wqd":[`wqd`],"application/vnd.wt.stf":[`stf`],"application/vnd.xara":[`xar`],"application/vnd.xfdl":[`xfdl`],"application/vnd.yamaha.hv-dic":[`hvd`],"application/vnd.yamaha.hv-script":[`hvs`],"application/vnd.yamaha.hv-voice":[`hvp`],"application/vnd.yamaha.openscoreformat":[`osf`],"application/vnd.yamaha.openscoreformat.osfpvg+xml":[`osfpvg`],"application/vnd.yamaha.smaf-audio":[`saf`],"application/vnd.yamaha.smaf-phrase":[`spf`],"application/vnd.yellowriver-custom-menu":[`cmp`],"application/vnd.zul":[`zir`,`zirz`],"application/vnd.zzazz.deck+xml":[`zaz`],"application/x-7z-compressed":[`7z`],"application/x-abiword":[`abw`],"application/x-ace-compressed":[`ace`],"application/x-apple-diskimage":[`*dmg`],"application/x-arj":[`arj`],"application/x-authorware-bin":[`aab`,`x32`,`u32`,`vox`],"application/x-authorware-map":[`aam`],"application/x-authorware-seg":[`aas`],"application/x-bcpio":[`bcpio`],"application/x-bdoc":[`*bdoc`],"application/x-bittorrent":[`torrent`],"application/x-blorb":[`blb`,`blorb`],"application/x-bzip":[`bz`],"application/x-bzip2":[`bz2`,`boz`],"application/x-cbr":[`cbr`,`cba`,`cbt`,`cbz`,`cb7`],"application/x-cdlink":[`vcd`],"application/x-cfs-compressed":[`cfs`],"application/x-chat":[`chat`],"application/x-chess-pgn":[`pgn`],"application/x-chrome-extension":[`crx`],"application/x-cocoa":[`cco`],"application/x-conference":[`nsc`],"application/x-cpio":[`cpio`],"application/x-csh":[`csh`],"application/x-debian-package":[`*deb`,`udeb`],"application/x-dgc-compressed":[`dgc`],"application/x-director":[`dir`,`dcr`,`dxr`,`cst`,`cct`,`cxt`,`w3d`,`fgd`,`swa`],"application/x-doom":[`wad`],"application/x-dtbncx+xml":[`ncx`],"application/x-dtbook+xml":[`dtb`],"application/x-dtbresource+xml":[`res`],"application/x-dvi":[`dvi`],"application/x-envoy":[`evy`],"application/x-eva":[`eva`],"application/x-font-bdf":[`bdf`],"application/x-font-ghostscript":[`gsf`],"application/x-font-linux-psf":[`psf`],"application/x-font-pcf":[`pcf`],"application/x-font-snf":[`snf`],"application/x-font-type1":[`pfa`,`pfb`,`pfm`,`afm`],"application/x-freearc":[`arc`],"application/x-futuresplash":[`spl`],"application/x-gca-compressed":[`gca`],"application/x-glulx":[`ulx`],"application/x-gnumeric":[`gnumeric`],"application/x-gramps-xml":[`gramps`],"application/x-gtar":[`gtar`],"application/x-hdf":[`hdf`],"application/x-httpd-php":[`php`],"application/x-install-instructions":[`install`],"application/x-iso9660-image":[`*iso`],"application/x-iwork-keynote-sffkey":[`*key`],"application/x-iwork-numbers-sffnumbers":[`*numbers`],"application/x-iwork-pages-sffpages":[`*pages`],"application/x-java-archive-diff":[`jardiff`],"application/x-java-jnlp-file":[`jnlp`],"application/x-keepass2":[`kdbx`],"application/x-latex":[`latex`],"application/x-lua-bytecode":[`luac`],"application/x-lzh-compressed":[`lzh`,`lha`],"application/x-makeself":[`run`],"application/x-mie":[`mie`],"application/x-mobipocket-ebook":[`prc`,`mobi`],"application/x-ms-application":[`application`],"application/x-ms-shortcut":[`lnk`],"application/x-ms-wmd":[`wmd`],"application/x-ms-wmz":[`wmz`],"application/x-ms-xbap":[`xbap`],"application/x-msaccess":[`mdb`],"application/x-msbinder":[`obd`],"application/x-mscardfile":[`crd`],"application/x-msclip":[`clp`],"application/x-msdos-program":[`*exe`],"application/x-msdownload":[`*exe`,`*dll`,`com`,`bat`,`*msi`],"application/x-msmediaview":[`mvb`,`m13`,`m14`],"application/x-msmetafile":[`*wmf`,`*wmz`,`*emf`,`emz`],"application/x-msmoney":[`mny`],"application/x-mspublisher":[`pub`],"application/x-msschedule":[`scd`],"application/x-msterminal":[`trm`],"application/x-mswrite":[`wri`],"application/x-netcdf":[`nc`,`cdf`],"application/x-ns-proxy-autoconfig":[`pac`],"application/x-nzb":[`nzb`],"application/x-perl":[`pl`,`pm`],"application/x-pilot":[`*prc`,`*pdb`],"application/x-pkcs12":[`p12`,`pfx`],"application/x-pkcs7-certificates":[`p7b`,`spc`],"application/x-pkcs7-certreqresp":[`p7r`],"application/x-rar-compressed":[`*rar`],"application/x-redhat-package-manager":[`rpm`],"application/x-research-info-systems":[`ris`],"application/x-sea":[`sea`],"application/x-sh":[`sh`],"application/x-shar":[`shar`],"application/x-shockwave-flash":[`swf`],"application/x-silverlight-app":[`xap`],"application/x-sql":[`sql`],"application/x-stuffit":[`sit`],"application/x-stuffitx":[`sitx`],"application/x-subrip":[`srt`],"application/x-sv4cpio":[`sv4cpio`],"application/x-sv4crc":[`sv4crc`],"application/x-t3vm-image":[`t3`],"application/x-tads":[`gam`],"application/x-tar":[`tar`],"application/x-tcl":[`tcl`,`tk`],"application/x-tex":[`tex`],"application/x-tex-tfm":[`tfm`],"application/x-texinfo":[`texinfo`,`texi`],"application/x-tgif":[`*obj`],"application/x-ustar":[`ustar`],"application/x-virtualbox-hdd":[`hdd`],"application/x-virtualbox-ova":[`ova`],"application/x-virtualbox-ovf":[`ovf`],"application/x-virtualbox-vbox":[`vbox`],"application/x-virtualbox-vbox-extpack":[`vbox-extpack`],"application/x-virtualbox-vdi":[`vdi`],"application/x-virtualbox-vhd":[`vhd`],"application/x-virtualbox-vmdk":[`vmdk`],"application/x-wais-source":[`src`],"application/x-web-app-manifest+json":[`webapp`],"application/x-x509-ca-cert":[`der`,`crt`,`pem`],"application/x-xfig":[`fig`],"application/x-xliff+xml":[`*xlf`],"application/x-xpinstall":[`xpi`],"application/x-xz":[`xz`],"application/x-zmachine":[`z1`,`z2`,`z3`,`z4`,`z5`,`z6`,`z7`,`z8`],"audio/vnd.dece.audio":[`uva`,`uvva`],"audio/vnd.digital-winds":[`eol`],"audio/vnd.dra":[`dra`],"audio/vnd.dts":[`dts`],"audio/vnd.dts.hd":[`dtshd`],"audio/vnd.lucent.voice":[`lvp`],"audio/vnd.ms-playready.media.pya":[`pya`],"audio/vnd.nuera.ecelp4800":[`ecelp4800`],"audio/vnd.nuera.ecelp7470":[`ecelp7470`],"audio/vnd.nuera.ecelp9600":[`ecelp9600`],"audio/vnd.rip":[`rip`],"audio/x-aac":[`aac`],"audio/x-aiff":[`aif`,`aiff`,`aifc`],"audio/x-caf":[`caf`],"audio/x-flac":[`flac`],"audio/x-m4a":[`*m4a`],"audio/x-matroska":[`mka`],"audio/x-mpegurl":[`m3u`],"audio/x-ms-wax":[`wax`],"audio/x-ms-wma":[`wma`],"audio/x-pn-realaudio":[`ram`,`ra`],"audio/x-pn-realaudio-plugin":[`rmp`],"audio/x-realaudio":[`*ra`],"audio/x-wav":[`*wav`],"chemical/x-cdx":[`cdx`],"chemical/x-cif":[`cif`],"chemical/x-cmdf":[`cmdf`],"chemical/x-cml":[`cml`],"chemical/x-csml":[`csml`],"chemical/x-xyz":[`xyz`],"image/prs.btif":[`btif`],"image/prs.pti":[`pti`],"image/vnd.adobe.photoshop":[`psd`],"image/vnd.airzip.accelerator.azv":[`azv`],"image/vnd.dece.graphic":[`uvi`,`uvvi`,`uvg`,`uvvg`],"image/vnd.djvu":[`djvu`,`djv`],"image/vnd.dvb.subtitle":[`*sub`],"image/vnd.dwg":[`dwg`],"image/vnd.dxf":[`dxf`],"image/vnd.fastbidsheet":[`fbs`],"image/vnd.fpx":[`fpx`],"image/vnd.fst":[`fst`],"image/vnd.fujixerox.edmics-mmr":[`mmr`],"image/vnd.fujixerox.edmics-rlc":[`rlc`],"image/vnd.microsoft.icon":[`ico`],"image/vnd.ms-dds":[`dds`],"image/vnd.ms-modi":[`mdi`],"image/vnd.ms-photo":[`wdp`],"image/vnd.net-fpx":[`npx`],"image/vnd.pco.b16":[`b16`],"image/vnd.tencent.tap":[`tap`],"image/vnd.valve.source.texture":[`vtf`],"image/vnd.wap.wbmp":[`wbmp`],"image/vnd.xiff":[`xif`],"image/vnd.zbrush.pcx":[`pcx`],"image/x-3ds":[`3ds`],"image/x-cmu-raster":[`ras`],"image/x-cmx":[`cmx`],"image/x-freehand":[`fh`,`fhc`,`fh4`,`fh5`,`fh7`],"image/x-icon":[`*ico`],"image/x-jng":[`jng`],"image/x-mrsid-image":[`sid`],"image/x-ms-bmp":[`*bmp`],"image/x-pcx":[`*pcx`],"image/x-pict":[`pic`,`pct`],"image/x-portable-anymap":[`pnm`],"image/x-portable-bitmap":[`pbm`],"image/x-portable-graymap":[`pgm`],"image/x-portable-pixmap":[`ppm`],"image/x-rgb":[`rgb`],"image/x-tga":[`tga`],"image/x-xbitmap":[`xbm`],"image/x-xpixmap":[`xpm`],"image/x-xwindowdump":[`xwd`],"message/vnd.wfa.wsc":[`wsc`],"model/vnd.collada+xml":[`dae`],"model/vnd.dwf":[`dwf`],"model/vnd.gdl":[`gdl`],"model/vnd.gtw":[`gtw`],"model/vnd.mts":[`mts`],"model/vnd.opengex":[`ogex`],"model/vnd.parasolid.transmit.binary":[`x_b`],"model/vnd.parasolid.transmit.text":[`x_t`],"model/vnd.sap.vds":[`vds`],"model/vnd.usdz+zip":[`usdz`],"model/vnd.valve.source.compiled-map":[`bsp`],"model/vnd.vtu":[`vtu`],"text/prs.lines.tag":[`dsc`],"text/vnd.curl":[`curl`],"text/vnd.curl.dcurl":[`dcurl`],"text/vnd.curl.mcurl":[`mcurl`],"text/vnd.curl.scurl":[`scurl`],"text/vnd.dvb.subtitle":[`sub`],"text/vnd.fly":[`fly`],"text/vnd.fmi.flexstor":[`flx`],"text/vnd.graphviz":[`gv`],"text/vnd.in3d.3dml":[`3dml`],"text/vnd.in3d.spot":[`spot`],"text/vnd.sun.j2me.app-descriptor":[`jad`],"text/vnd.wap.wml":[`wml`],"text/vnd.wap.wmlscript":[`wmls`],"text/x-asm":[`s`,`asm`],"text/x-c":[`c`,`cc`,`cxx`,`cpp`,`h`,`hh`,`dic`],"text/x-component":[`htc`],"text/x-fortran":[`f`,`for`,`f77`,`f90`],"text/x-handlebars-template":[`hbs`],"text/x-java-source":[`java`],"text/x-lua":[`lua`],"text/x-markdown":[`mkd`],"text/x-nfo":[`nfo`],"text/x-opml":[`opml`],"text/x-org":[`*org`],"text/x-pascal":[`p`,`pas`],"text/x-processing":[`pde`],"text/x-sass":[`sass`],"text/x-scss":[`scss`],"text/x-setext":[`etx`],"text/x-sfv":[`sfv`],"text/x-suse-ymp":[`ymp`],"text/x-uuencode":[`uu`],"text/x-vcalendar":[`vcs`],"text/x-vcard":[`vcf`],"video/vnd.dece.hd":[`uvh`,`uvvh`],"video/vnd.dece.mobile":[`uvm`,`uvvm`],"video/vnd.dece.pd":[`uvp`,`uvvp`],"video/vnd.dece.sd":[`uvs`,`uvvs`],"video/vnd.dece.video":[`uvv`,`uvvv`],"video/vnd.dvb.file":[`dvb`],"video/vnd.fvt":[`fvt`],"video/vnd.mpegurl":[`mxu`,`m4u`],"video/vnd.ms-playready.media.pyv":[`pyv`],"video/vnd.uvvu.mp4":[`uvu`,`uvvu`],"video/vnd.vivo":[`viv`],"video/x-f4v":[`f4v`],"video/x-fli":[`fli`],"video/x-flv":[`flv`],"video/x-m4v":[`m4v`],"video/x-matroska":[`mkv`,`mk3d`,`mks`],"video/x-mng":[`mng`],"video/x-ms-asf":[`asf`,`asx`],"video/x-ms-vob":[`vob`],"video/x-ms-wm":[`wm`],"video/x-ms-wmv":[`wmv`],"video/x-ms-wmx":[`wmx`],"video/x-ms-wvx":[`wvx`],"video/x-msvideo":[`avi`],"video/x-sgi-movie":[`movie`],"video/x-smv":[`smv`],"x-conference/x-cooltalk":[`ice`]}})),nc=__commonJSMin(((r,c)=>{c.exports=new($s())(ec(),tc())}));b(),w(),P(),Fe();var rc=__toESM(nc()),ic=function(){function Item(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck(this,Item),_defineProperty(this,`file`,void 0),_defineProperty(this,`options`,{}),this.file=this.toFile(r),this.options=c}return _createClass(Item,[{key:`toFile`,value:function toFile(r){if(!Pe(r,File)){var c=this.options,l=c.fileName,u={type:c.type||r.type};r=new File(Array.isArray(r)?r:[r],l||this.constructor.createFileName(u),u)}return r}},{key:`getFile`,value:function getFile(){return this.file}},{key:`getReader`,value:function getReader(){return this.options.reader}},{key:`getParser`,value:function getParser(){return this.options.parser}},{key:`setReader`,value:function setReader(r){this.options.reader=r}},{key:`setParser`,value:function setParser(r){this.options.parser=r}}],[{key:`createFileName`,value:function createFileName(r){return[elementorCommon.helpers.getUniqueId(),rc.default.getExtension(r.type)].join(`.`)}}])}();b(),w(),P();function _createForOfIteratorHelper$5(r,c){var l=typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(!l){if(Array.isArray(r)||(l=_unsupportedIterableToArray$5(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.
20 20 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$5,`_createForOfIteratorHelper`);function _unsupportedIterableToArray$5(r,c){if(r){if(typeof r==`string`)return _arrayLikeToArray$5(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$5(r,c):void 0}}__name(_unsupportedIterableToArray$5,`_unsupportedIterableToArray`);function _arrayLikeToArray$5(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$5,`_arrayLikeToArray`);var ac=function(){function ItemCollection(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_classCallCheck(this,ItemCollection),_defineProperty(this,`items`,void 0),this.setItems(r)}return _createClass(ItemCollection,[{key:`setItems`,value:function setItems(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=_createForOfIteratorHelper$5(r),l;try{for(c.s();!(l=c.n()).done;)if(!(l.value instanceof ic))throw Error(`ItemCollection can only contain Item objects`)}catch(r){c.e(r)}finally{c.f()}this.items=r}},{key:`getItems`,value:function getItems(){return this.items}},{key:`getFiles`,value:function getFiles(){return this.items.map(function(r){return r.getFile()})}}])}();N(),b(),w(),Fe();var oc=function(){function Normalizer(r){_classCallCheck(this,Normalizer),this.manager=r}return _createClass(Normalizer,[{key:`normalize`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(r){return B.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return r instanceof ac||(r=this.toItemCollection(r)),c.abrupt(`return`,r);case 1:case`end`:return c.stop()}},_callee,this)}));function normalize(c){return r.apply(this,arguments)}return normalize}()},{key:`toItemCollection`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee2(r){var c=this;return B.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return Array.isArray(r)||(r=Pe(r,FileList)||Pe(r,DataTransferItemList)?Array.from(r):[r]),l.abrupt(`return`,Promise.all(r.map(function(r){return r instanceof ic||(r=c.toItem(r)),r})).then(function(r){return new ac(r)}));case 1:case`end`:return l.stop()}},_callee2)}));function toItemCollection(c){return r.apply(this,arguments)}return toItemCollection}()},{key:`toItem`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee3(r){var c;return B.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(Pe(r,[Blob,File,DataTransferItem])){l.next=7;break}l.prev=1,window.atob(r.split(`,`)[1]),l.next=5;break;case 2:return l.prev=2,l.catch(1),l.next=3,this.manager.getMimeTypeOf(r);case 3:if(c=l.sent,!c){l.next=4;break}r=this.constructor.createDataUrl(r,c),l.next=5;break;case 4:throw Error(`The input provided cannot be resolved`);case 5:return l.next=6,fetch(r).then(function(r){return r.blob()});case 6:r=l.sent;case 7:return l.abrupt(`return`,new ic(r));case 8:case`end`:return l.stop()}},_callee3,this,[[1,2]])}));function toItem(c){return r.apply(this,arguments)}return toItem}()}],[{key:`createDataUrl`,value:function createDataUrl(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])&&(r=`base64,${btoa(r)}`),c&&(c+=`;`),`data:${c||``}${r}`}}])}();N(),b(),w(),P();function _createForOfIteratorHelper$4(r,c){var l=typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(!l){if(Array.isArray(r)||(l=_unsupportedIterableToArray$4(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.
21 21 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$4,`_createForOfIteratorHelper`);function _unsupportedIterableToArray$4(r,c){if(r){if(typeof r==`string`)return _arrayLikeToArray$4(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$4(r,c):void 0}}__name(_unsupportedIterableToArray$4,`_unsupportedIterableToArray`);function _arrayLikeToArray$4(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$4,`_arrayLikeToArray`);var sc=function(){function Session(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};_classCallCheck(this,Session),_defineProperty(this,`manager`,void 0),_defineProperty(this,`itemCollection`,void 0),_defineProperty(this,`target`,void 0),_defineProperty(this,`options`,{target:{}}),this.manager=r,this.itemCollection=c,this.target=l,Object.assign(this.options,u)}return _createClass(Session,[{key:`validate`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(){var r,c,l,u;return B.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:r=_createForOfIteratorHelper$4(this.itemCollection.getItems()),p.prev=1,r.s();case 2:if((c=r.n()).done){p.next=5;break}return l=c.value,p.next=3,this.manager.getReaderOf(l);case 3:if(p.sent){p.next=4;break}return p.abrupt(`return`,!1);case 4:p.next=2;break;case 5:p.next=7;break;case 6:p.prev=6,u=p.catch(1),r.e(u);case 7:return p.prev=7,r.f(),p.finish(7);case 8:return p.abrupt(`return`,!0);case 9:case`end`:return p.stop()}},_callee,this,[[1,6,7,8]])}));function validate(){return r.apply(this,arguments)}return validate}()},{key:`apply`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee2(){var r=this,c,l,u,p,m,h;return B.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:c=[],l=_createForOfIteratorHelper$4(this.itemCollection.getItems()),g.prev=1,l.s();case 2:if((u=l.n()).done){g.next=6;break}return p=u.value,g.next=3,this.manager.getParserOf(p,!0);case 3:if(m=g.sent,!m){g.next=4;break}c.push(m.parse()),g.next=5;break;case 4:throw Error(`An error occurred when trying to parse the input`);case 5:g.next=2;break;case 6:g.next=8;break;case 7:g.prev=7,h=g.catch(1),l.e(h);case 8:return g.prev=8,l.f(),g.finish(8);case 9:return g.abrupt(`return`,Promise.all(c).then(function(c){return r.resolve(c.flat())}));case 10:case`end`:return g.stop()}},_callee2,this,[[1,7,8,9]])}));function apply(){return r.apply(this,arguments)}return apply}()},{key:`resolve`,value:function resolve(r){var c=this;return Object.values(r).some(function(r){return r.model.get(`elType`)===`section`})&&(this.target=elementor.getPreviewContainer()),r.map(function(l){switch(l.type){case`container`:case`section`:case`column`:case`e-div-block`:case`widget`:return c.target.view.createElementFromModel(l.model,Object.assign(c.options.target,{event:c.options.event,scrollIntoView:r.indexOf(l)===0}))}})}}])}();N(),b(),w(),E(),D(),A(),P();function _createForOfIteratorHelper$3(r,c){var l=typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(!l){if(Array.isArray(r)||(l=_unsupportedIterableToArray$3(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.
@@ -26,9 +26,9 @@
26 26 `,il=`
27 27 <button id="elementor-panel-header-kit-close" class="elementor-header-button" aria-label="{{ Close }}">
28 28 <i class="elementor-icon eicon-close tooltip-target" aria-hidden="true" data-tooltip="{{ Close }}"></i>
29 29 </button>
30 -`;b(),w(),E(),D(),A();function _callSuper$147(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$147()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$147,`_callSuper`);function _isNativeReflectConstruct$147(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$147=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$147,`_isNativeReflectConstruct`);var al=function(c){function _default(){return _classCallCheck(this,_default),_callSuper$147(this,_default,arguments)}return _inherits(_default,c),_createClass(_default,[{key:`ui`,value:function ui(){return{buttonClose:`#elementor-panel-header-kit-close`,buttonBack:`#elementor-panel-header-kit-back`}}},{key:`events`,value:function events(){return{"click @ui.buttonClose":`onClickClose`,"click @ui.buttonBack":`onClickBack`}}},{key:`onBeforeShow`,value:function onBeforeShow(){this.$el.prepend(elementor.compileTemplate(rl,{Back:(0,r.__)(`Back`,`elementor`)})),this.$el.append(elementor.compileTemplate(il,{Close:(0,r.__)(`Close`,`elementor`)}))}},{key:`onClickClose`,value:function onClickClose(){$e.run(`panel/global/close`)}},{key:`onClickBack`,value:function onClickBack(){$e.run(`panel/global/back`)}}])}(Marionette.Behavior);P(),b(),w(),E(),D(),A();function _callSuper$146(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$146()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$146,`_callSuper`);function _isNativeReflectConstruct$146(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$146=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$146,`_isNativeReflectConstruct`);var ol=function(c){function GlobalControlSelect(){return _classCallCheck(this,GlobalControlSelect),_callSuper$146(this,GlobalControlSelect,arguments)}return _inherits(GlobalControlSelect,c),_createClass(GlobalControlSelect,[{key:`getClassNames`,value:function getClassNames(){return{previewItemsContainer:`e-global__preview-items-container`,previewItem:`e-global__preview-item`,selectedPreviewItem:`e-global__preview-item--selected`,manageButton:`e-global__manage-button`,popover:`e-global__popover`,popoverToggle:`e-global__popover-toggle`,popoverToggleActive:`e-global__popover-toggle--active`,controlGlobal:`e-control-global`,globalPopoverContainer:`e-global__popover-container`,globalPopoverTitle:`e-global__popover-title`,globalPopoverTitleText:`e-global__popover-title-text`,globalPopoverInfo:`e-global__popover-info`,globalPopoverInfoTooltip:`e-global__popover-info-tooltip`,confirmAddNewGlobal:`e-global__confirm-add`,confirmMessageText:`.e-global__confirm-message-text`}}},{key:`registerUiElements`,value:function registerUiElements(){var r=this.popover.getElements(`widget`);this.ui.manageGlobalsButton=r.find(`.${this.getClassNames().manageButton}`)}},{key:`registerPreviewElements`,value:function registerPreviewElements(){var r=this.popover.getElements(`widget`),c=this.getClassNames();this.ui.globalPreviewItems=r.find(`.${c.previewItem}`)}},{key:`registerEvents`,value:function registerEvents(){var r=this;this.ui.globalPopoverToggle.on(`click`,function(c){return r.toggleGlobalPopover(c)}),this.ui.manageGlobalsButton.on(`click`,function(){var c=r.view.getGlobalMeta().route,l={route:$e.routes.getHistory(`panel`).reverse()[0].route,container:r.view.options.container};$e.run(`panel/global/open`,l).then(function(){return $e.route(c)}),r.popover.hide()})}},{key:`addPreviewItemsClickListener`,value:function addPreviewItemsClickListener(){var r=this;this.ui.$globalPreviewItemsContainer.on(`click`,`.${this.getClassNames().previewItem}`,function(c){return r.applySavedGlobalValue(c.currentTarget.dataset.globalId)})}},{key:`fetchGlobalValue`,value:function fetchGlobalValue(){var r=this;return $e.data.get(this.view.getGlobalKey()).then(function(c){return r.view.globalValue=c.data.value,r.onValueTypeChange(),elementor.kitManager.renderGlobalVariables(),r.view.applySavedValue(),c.data}).catch(function(c){var l;if((c==null||(l=c.data)==null?void 0:l.status)!==404)return Promise.reject(c);r.disableGlobalValue(!1)})}},{key:`setCurrentActivePreviewItem`,value:function setCurrentActivePreviewItem(){var r=this.getClassNames().selectedPreviewItem,c=elementor.config.globals.defaults_enabled[this.view.getGlobalMeta().controlType];this.activePreviewItem&&this.resetActivePreviewItem();var l=this.view.getGlobalKey();if(!l&&!this.view.getControlValue()&&c){var u;l=(u=this.view.model.get(`global`))==null?void 0:u.default}if(!l){this.activePreviewItem=null;return}var p=$e.data.commandExtractArgs(l).args.query.id,m=this.ui.globalPreviewItems.filter(`[data-global-id="${p}"]`);m&&(this.activePreviewItem=m,this.activePreviewItem.addClass(r))}},{key:`resetActivePreviewItem`,value:function resetActivePreviewItem(){this.activePreviewItem&&this.activePreviewItem.removeClass(this.getClassNames().selectedPreviewItem),this.activePreviewItem=null}},{key:`applySavedGlobalValue`,value:function applySavedGlobalValue(r){this.setGlobalValue(r),this.fetchGlobalValue(),this.popover.hide()}},{key:`onValueTypeChange`,value:function onValueTypeChange(){this.updateCurrentGlobalName()}},{key:`updateCurrentGlobalName`,value:function updateCurrentGlobalName(c){var l=this,u=this.getClassNames(),p=``;if(c)p=c;else{c=this.view.getControlValue();var m=this.view.getGlobalKey();if(!m&&!c&&elementor.config.globals.defaults_enabled[this.view.getGlobalMeta().controlType]){var h;m=(h=this.view.model.get(`global`))==null?void 0:h.default}if(m){$e.data.get(m).then(function(c){var u=``;u=c.data.title?c.data.title:(0,r.__)(`Default`,`elementor`),l.updateCurrentGlobalName(u)}),this.ui.globalPopoverToggle.addClass(u.popoverToggleActive);return}else p=c?(0,r.__)(`Custom`,`elementor`):(0,r.__)(`Default`,`elementor`);this.ui.globalPopoverToggle.removeClass(u.popoverToggleActive)}this.globalName=p}},{key:`onRender`,value:function onRender(){var r=this;this.printGlobalToggleButton(),this.initGlobalPopover(),this.view.getGlobalKey()?setTimeout(function(){return r.fetchGlobalValue()},50):this.onValueTypeChange(),this.$el.addClass(this.getClassNames().controlGlobal)}},{key:`toggleGlobalPopover`,value:function toggleGlobalPopover(){var r=this;this.popover.isVisible()?this.popover.hide():(this.ui.$globalPreviewItemsContainer&&this.ui.$globalPreviewItemsContainer.remove(),this.view.getGlobalsList().then(function(c){r.addGlobalsListToPopover(c),r.registerPreviewElements(),r.addPreviewItemsClickListener(),r.popover.show(),r.setCurrentActivePreviewItem()}))}},{key:`buildGlobalPopover`,value:function buildGlobalPopover(){var r=this,c=this.getClassNames(),l=jQuery(`<div>`,{class:c.globalPopoverContainer}),u=jQuery(`<div>`,{class:c.globalPopoverTitle}).html(`<div class="`+c.globalPopoverInfo+`"><i class="eicon-info-circle"></i></div><span class="`+c.globalPopoverTitleText+`">`+this.getOption(`popoverTitle`)+`</span>`),p=jQuery(`<div>`,{class:c.manageButton}).html(`<i class="eicon-cog"></i>`);return u.append(p),l.append(u),this.manageButtonTooltipText=this.getOption(`manageButtonText`),p.tipsy({title:function title(){return r.manageButtonTooltipText},offset:3,gravity:function gravity(){return`s`}}),l}},{key:`printGlobalToggleButton`,value:function printGlobalToggleButton(){var r=this,c=jQuery(`<div>`,{class:this.getClassNames().popoverToggle+` elementor-control-unit-1`}),l=jQuery(`<i>`,{class:`eicon-globe`}),u=jQuery(`<span>`,{class:`elementor-control-spinner`}).html(`<i class="eicon-spinner eicon-animation-spin"></i></span>`);c.append(l),this.$el.find(`.elementor-control-input-wrapper`).prepend(c),this.ui.globalPopoverToggle=c,this.ui.globalPopoverToggleIcon=l,this.ui.$globalsLoadingSpinner=u,this.ui.globalPopoverToggleIcon.tipsy({title:function title(){return r.globalName},offset:7,gravity:function gravity(){return`s`}}),c.before(u),this.ui.$globalsLoadingSpinner.hide()}},{key:`initGlobalPopover`,value:function initGlobalPopover(){this.popover=elementorCommon.dialogsManager.createWidget(`simple`,{className:this.getClassNames().popover,message:this.buildGlobalPopover(),effects:{show:`show`,hide:`hide`},hide:{onOutsideClick:!1},position:{my:`right top`,at:`right bottom+5`,of:this.ui.globalPopoverToggle,collision:`fit flip`,autoRefresh:!0}}),this.registerUiElementsAndEvents(),this.createGlobalInfoTooltip()}},{key:`addGlobalsListToPopover`,value:function addGlobalsListToPopover(r){var c=jQuery(`<div>`,{class:`e-global__preview-items-container`});this.view.buildGlobalsList(r,c),this.popover.getElements(`widget`).find(`.${this.getClassNames().globalPopoverTitle}`).after(c),this.ui.$globalPreviewItemsContainer=c}},{key:`registerUiElementsAndEvents`,value:function registerUiElementsAndEvents(){this.registerUiElements(),this.registerEvents()}},{key:`onAddGlobalToList`,value:function onAddGlobalToList(c){var l=this,u=this.getClassNames();this.confirmNewGlobalModal=elementorCommon.dialogsManager.createWidget(`confirm`,{className:u.confirmAddNewGlobal,headerMessage:this.getOption(`newGlobalConfirmTitle`),message:c,strings:{confirm:(0,r.__)(`Create`,`elementor`),cancel:(0,r.__)(`Cancel`,`elementor`)},hide:{onBackgroundClick:!1},onConfirm:function onConfirm(){return l.onConfirmNewGlobal()},onShow:function onShow(){var r=l.confirmNewGlobalModal.getElements(`widget`);l.ui.globalNameInput=r.find(`input`).focus(),l.ui.confirmMessageText=r.find(u.confirmMessageText),l.ui.globalNameInput.on(`input`,function(){return l.onAddGlobalConfirmInputChange()})}}),this.confirmNewGlobalModal.show()}},{key:`onAddGlobalConfirmInputChange`,value:function onAddGlobalConfirmInputChange(){if(this.view.globalsList){for(var r,c=0,l=Object.values(this.view.globalsList);c<l.length;c++){var u=l[c];if(this.ui.globalNameInput.val()===u.title){r=this.view.getNameAlreadyExistsMessage();break}else r=this.view.getConfirmTextMessage()}this.ui.confirmMessageText.html(r)}}},{key:`onConfirmNewGlobal`,value:function onConfirmNewGlobal(){var r=this.view.getGlobalMeta();r.title=this.ui.globalNameInput.val(),this.createNewGlobal(r)}},{key:`createNewGlobal`,value:function createNewGlobal(r){var c=this;this.ui.$globalsLoadingSpinner.show(),$e.run(r.commandName+`/create`,{container:this.view.container,setting:r.key,title:r.title}).then(function(r){c.applySavedGlobalValue(r.data.id),c.ui.$globalsLoadingSpinner.hide()})}},{key:`setGlobalValue`,value:function setGlobalValue(r){var c=``,l={};c=this.view.getGlobalKey()?`document/globals/settings`:`document/globals/enable`,l[this.view.model.get(`name`)]=this.view.getGlobalCommand()+`?id=`+r,$e.run(c,{container:this.view.options.container,settings:l})}},{key:`onUnsetGlobalValue`,value:function onUnsetGlobalValue(){this.disableGlobalValue()}},{key:`onUnlinkGlobalDefault`,value:function onUnlinkGlobalDefault(){var r=this,c=this.view.getGlobalMeta();$e.run(`document/globals/unlink`,{container:this.view.container,globalValue:this.view.model.get(`global`).default,setting:c.key,options:{external:!0}}).then(function(){r.onValueTypeChange(),r.view.globalValue=null,r.resetActivePreviewItem()})}},{key:`createGlobalInfoTooltip`,value:function createGlobalInfoTooltip(){var r=this,c=this.getClassNames(),l=this.popover.getElements(`widget`).find(`.${c.globalPopoverInfo}`);this.globalInfoTooltip=elementorCommon.dialogsManager.createWidget(`simple`,{className:c.globalPopoverInfoTooltip,message:this.getOption(`tooltipText`),effects:{show:`show`,hide:`hide`},position:{my:`left bottom`,at:`left top+9`,of:this.popover.getElements(`widget`),autoRefresh:!0}}),l.on({mouseenter:function mouseenter(){return r.globalInfoTooltip.show()},mouseleave:function mouseleave(){return r.globalInfoTooltip.hide()}})}},{key:`disableGlobalValue`,value:function disableGlobalValue(){var r=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,l=this.view.getGlobalMeta();return $e.run(`document/globals/disable`,{container:this.view.container,settings:_defineProperty({},l.key,``),options:{restore:c}}).then(function(){r.onValueTypeChange(),r.view.globalValue=null,r.resetActivePreviewItem()})}}])}(Marionette.Behavior);b(),w(),E(),D(),k(),A(),P();var sl=__toESM(Hn());function ownKeys$8(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}__name(ownKeys$8,`ownKeys`);function _objectSpread$8(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$8(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$8(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}__name(_objectSpread$8,`_objectSpread`);function _callSuper$145(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$145()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$145,`_callSuper`);function _isNativeReflectConstruct$145(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$145=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$145,`_isNativeReflectConstruct`);function _superPropGet$23(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}__name(_superPropGet$23,`_superPropGet`);var cl=`v4`,ll=function(c){function Manager(){var r;_classCallCheck(this,Manager);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper$145(this,Manager,[].concat(l)),_defineProperty(r,`loadingTriggers`,{preview:!1,globals:!1}),_defineProperty(r,`variablesCSS`,null),r}return _inherits(Manager,c),_createClass(Manager,[{key:`initialize`,value:function initialize(){var r=this;elementor.on(`preview:loaded`,function(){r.loadingTriggers.preview=!0,r.renderGlobalsDefaultCSS()}),elementor.on(`document:loaded`,function(){r.renderGlobalVariables()}),elementor.once(`globals:loaded`,function(){r.loadingTriggers.globals=!0,r.renderGlobalsDefaultCSS()}),elementor.hooks.addFilter(`controls/base/behaviors`,this.addGlobalsBehavior),elementor.config.user.can_edit_kit&&$e.components.register(new Qc({manager:this}))}},{key:`addPanelPages`,value:function addPanelPages(){elementor.getPanelView().addPage(`kit_settings`,{view:tl,title:(0,r.__)(`Site Settings`,`elementor`)}),elementor.getPanelView().addPage(`kit_menu`,{view:nl,title:(0,r.__)(`Site Settings`,`elementor`)})}},{key:`addPanelMenuItem`,value:function addPanelMenuItem(){var c=elementor.modules.layouts.panel.pages.menu.Menu;c.addItem({name:`global-settings`,icon:`eicon-global-settings`,title:(0,r.__)(`Site Settings`,`elementor`),type:`page`,callback:function callback(){$e.run(`panel/global/open`,{route:$e.routes.getHistory(`panel`).reverse()[0].route})}},`style`,`editor-preferences`),c.addItem({name:`site-editor`,icon:`eicon-theme-builder`,title:(0,r.__)(`Theme Builder`,`elementor`),type:`page`,callback:function callback(){return $e.run(`app/open`)}},`style`,`editor-preferences`)}},{key:`addHeaderBehavior`,value:function addHeaderBehavior(r){return r.kit={behaviorClass:al},r}},{key:`addGlobalsBehavior`,value:function addGlobalsBehavior(c,l){if(l.isGlobalActive){var u=l.isGlobalActive();return l.options.model.get(`type`)===`color`&&u&&(c.globals={behaviorClass:ol,popoverTitle:(0,r.__)(`Global Colors`,`elementor`),manageButtonText:(0,r.__)(`Manage Global Colors`,`elementor`),tooltipText:(0,r.__)(`Global Colors help you work smarter. Save a color, and use it anywhere throughout your site. Access and edit your global colors by clicking the Manage button.`,`elementor`),newGlobalConfirmTitle:(0,r.__)(`Create New Global Color`,`elementor`)}),l.options.model.get(`type`)===`popover_toggle`&&l.options.model.get(`groupType`)===`typography`&&u&&(c.globals={behaviorClass:ol,popoverTitle:(0,r.__)(`Global Fonts`,`elementor`),manageButtonText:(0,r.__)(`Manage Global Fonts`,`elementor`),tooltipText:(0,r.__)(`Global Fonts help you work smarter. Save a Typography, and use it anywhere throughout your site. Access and edit your Global Fonts by clicking the Manage button.`,`elementor`),newGlobalConfirmTitle:(0,r.__)(`Create New Global Font`,`elementor`)}),c}}},{key:`renderGlobalVariables`,value:function renderGlobalVariables(){var r=this;if(this.variablesCSS||(this.variablesCSS=new sl.default({id:`e-kit-variables`,settingsModel:new elementorModules.editor.elements.models.BaseSettings({},{})})),elementor.documents.getCurrent().config.type===`kit`){this.variablesCSS.removeStyleFromDocument();return}$e.data.get(`globals/index`).then(function(c){var l=c.data;l.colors&&Object.values(l.colors).forEach(function(c){if(c.group!==`v4`){var l=elementor.config.kit_config.design_system_controls.colors,u={_id:c.id,color:c.value};r.variablesCSS.addStyleRules(l,u,l,[`{{WRAPPER}}`],[`body`])}}),l.typography&&Object.values(l.typography).forEach(function(c){if(cl!==c.group){var l=elementor.config.kit_config.design_system_controls.typography,u=_objectSpread$8({_id:c.id},c.value);c.value.typography_font_family&&elementor.helpers.enqueueFont(c.value.typography_font_family),r.variablesCSS.addStyleRules(l,u,l,[`{{WRAPPER}}`],[`body`])}}),r.variablesCSS.addStyleToDocument()})}},{key:`renderGlobalsDefaultCSS`,value:function renderGlobalsDefaultCSS(){if(!(!this.loadingTriggers.preview||!this.loadingTriggers.globals)){var r=new sl.default({id:`e-global-style`}),c=elementor.config.globals.defaults_enabled.colors,l=elementor.config.globals.defaults_enabled.typography;!c&&!l||(Object.values(elementor.widgetsCache).forEach(function(u){if(u.controls){var p=[],m={};Object.values(u.controls).forEach(function(r){var h,g,v=r.type===`color`,y=r.groupType===`typography`;if(!(v&&!c||y&&!l)){var b=r;r.groupType&&(b=u.controls[r.groupPrefix+r.groupType]),(h=r.global)!=null&&h.default&&(m[r.name]=b.global.default),(g=b.global)!=null&&g.default&&p.push(r)}}),p.forEach(function(c){r.addControlStyleRules(c,u.controls,u.controls,[`{{WRAPPER}}`],[`.elementor-widget-`+u.widget_type],m)})}}),r.addStyleToDocument())}}},{key:`onInit`,value:function onInit(){var r=this;_superPropGet$23(Manager,`onInit`,this,3)([]),elementorCommon.elements.$window.on(`elementor:loaded`,function(){elementor.config.initial_document.panel.support_kit&&r.initialize()})}}])}(elementorModules.editor.utils.Module);b(),w(),E(),D(),A();function _callSuper$144(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$144()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$144,`_callSuper`);function _isNativeReflectConstruct$144(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$144=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$144,`_isNativeReflectConstruct`);var ul=function(r){function Close(){return _classCallCheck(this,Close),_callSuper$144(this,Close,arguments)}return _inherits(Close,r),_createClass(Close,[{key:`apply`,value:function apply(){return this.component.close()}}])}($e.modules.CommandBase);b(),w(),E(),D(),A();function _callSuper$143(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$143()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$143,`_callSuper`);function _isNativeReflectConstruct$143(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$143=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$143,`_isNativeReflectConstruct`);var dl=function(r){function ExpandAll(){return _classCallCheck(this,ExpandAll),_callSuper$143(this,ExpandAll,arguments)}return _inherits(ExpandAll,r),_createClass(ExpandAll,[{key:`apply`,value:function apply(){this.component.isOpen?this.expandAllElements():this.openNavigator()}},{key:`openNavigator`,value:function openNavigator(){$e.run(`navigator/open`,{expandAllElements:!0})}},{key:`expandAllElements`,value:function expandAllElements(){this.component.manager.currentView.elements.currentView.recursiveChildInvoke(`toggleList`,!0)}}])}($e.modules.CommandBase);b(),w(),E(),D(),A();function _callSuper$142(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$142()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$142,`_callSuper`);function _isNativeReflectConstruct$142(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$142=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$142,`_isNativeReflectConstruct`);var fl=function(r){function Open(){return _classCallCheck(this,Open),_callSuper$142(this,Open,arguments)}return _inherits(Open,r),_createClass(Open,[{key:`apply`,value:function apply(r){$e.route(this.component.getNamespace(),r)}}])}($e.modules.CommandBase);b(),w(),E(),D(),A();function _callSuper$141(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$141()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$141,`_callSuper`);function _isNativeReflectConstruct$141(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$141=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$141,`_isNativeReflectConstruct`);var pl=function(r){function Toggle(){return _classCallCheck(this,Toggle),_callSuper$141(this,Toggle,arguments)}return _inherits(Toggle,r),_createClass(Toggle,[{key:`apply`,value:function apply(){this.component.isOpen?$e.run(`navigator/close`):$e.run(`navigator/open`)}}])}($e.modules.CommandBase),ml=__exportAll({Close:()=>ul,ExpandAll:()=>dl,Open:()=>fl,Toggle:()=>pl});b(),w(),E(),D(),k(),A(),W();function _callSuper$140(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$140()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$140,`_callSuper`);function _isNativeReflectConstruct$140(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$140=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$140,`_isNativeReflectConstruct`);function _superPropGet$22(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}__name(_superPropGet$22,`_superPropGet`);var hl=function(r){function Component(){return _classCallCheck(this,Component),_callSuper$140(this,Component,arguments)}return _inherits(Component,r),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`navigator`}},{key:`defaultRoutes`,value:function defaultRoutes(){return{"":function _(){}}}},{key:`defaultCommands`,value:function defaultCommands(){return this.importCommands(ml)}},{key:`defaultShortcuts`,value:function defaultShortcuts(){return{toggle:{keys:`ctrl+i`,dependency:function dependency(){return elementor.getPreviewContainer().isEditable()}}}}},{key:`open`,value:function open(r){var c=r.model,l=c!==void 0&&c,u=r.expandAllElements,p=u!==void 0&&u;return this.manager.open(l,{expandAllElements:p}),!0}},{key:`close`,value:function close(r){return _superPropGet$22(Component,`close`,this,3)([])?(this.manager.close(r),!0):!1}}])}(U);b(),w(),E(),D(),A();function _callSuper$139(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$139()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$139,`_callSuper`);function _isNativeReflectConstruct$139(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$139=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$139,`_isNativeReflectConstruct`);var gl=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$139(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-navigator__elements--empty`}},{key:`className`,value:function className(){return`elementor-empty-view`}},{key:`onRender`,value:function onRender(){this.$el.css(`padding-inline-start`,this.getOption(`indent`)+`px`)}}])}(Marionette.ItemView);b(),w(),E(),D(),A();function _callSuper$138(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$138()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$138,`_callSuper`);function _isNativeReflectConstruct$138(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$138=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$138,`_isNativeReflectConstruct`);var _l=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$138(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-navigator__root--empty`}},{key:`className`,value:function className(){return`elementor-nerd-box`}}])}(Marionette.ItemView);P(),b(),w(),E(),D(),A();function ownKeys$7(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}__name(ownKeys$7,`ownKeys`);function _objectSpread$7(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$7(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$7(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}__name(_objectSpread$7,`_objectSpread`);function _callSuper$137(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$137()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$137,`_callSuper`);function _isNativeReflectConstruct$137(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$137=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$137,`_isNativeReflectConstruct`);var vl=`elementor-navigator__element-new-nestable`,yl=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$137(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-navigator__elements`}},{key:`ui`,value:function ui(){return{item:`> .elementor-navigator__item`,title:`> .elementor-navigator__item .elementor-navigator__element__title__text`,toggle:`> .elementor-navigator__item > .elementor-navigator__element__toggle`,toggleList:`> .elementor-navigator__item > .elementor-navigator__element__list-toggle`,indicators:`> .elementor-navigator__item > .elementor-navigator__element__indicators`,indicator:`> .elementor-navigator__item > .elementor-navigator__element__indicators > .elementor-navigator__element__indicator`,elements:`> .elementor-navigator__elements`,icon:`> .elementor-navigator__item .elementor-navigator__element__element-type`}}},{key:`events`,value:function events(){return{contextmenu:`onContextMenu`,"click @ui.item":`onItemClick`,"keydown @ui.item":`onItemPress`,"click @ui.toggle":`onToggleClick`,"click @ui.toggleList":`onToggleListClick`,"click @ui.indicator":`onIndicatorClick`,"dblclick @ui.title":`onTitleDoubleClick`,"keydown @ui.title":`onTitleKeyDown`,"paste @ui.title":`onTitlePaste`,"sortstart @ui.elements":`onSortStart`,"sortover @ui.elements":`onSortOver`,"sortout @ui.elements":`onSortOut`,"sortstop @ui.elements":`onSortStop`,"sortupdate @ui.elements":`onSortUpdate`,"sortreceive @ui.elements":`onSortReceive`}}},{key:`getEmptyView`,value:function getEmptyView(){return this.isNavigatorContainer()?_l:this.hasChildren()?gl:null}},{key:`childViewOptions`,value:function childViewOptions(){return{indent:this.getIndent()+10}}},{key:`className`,value:function className(){var r=`elementor-navigator__element`,c=this.model.get(`elType`);return this.isNavigatorContainer()||(r+=` elementor-navigator__element-`+c,this.isExcludedNestableElement()||(r+=` `+vl)),this.hasChildren()&&(r+=` elementor-navigator__element--has-children`),r}},{key:`getSortableClassName`,value:function getSortableClassName(){var r=this.model.get(`elType`);return this.isExcludedNestableElement()?`elementor-navigator__element-`+r:vl}},{key:`attributes`,value:function attributes(){return{"data-id":this.model.id,"data-model-cid":this.model.cid}}},{key:`templateHelpers`,value:function templateHelpers(){var r={};return this.isNavigatorContainer()||(r.title=this.model.getTitle(),r.icon=this.model.get(`elType`)===`section`?``:this.model.getIcon()),r}},{key:`isProPromotion`,value:function isProPromotion(){var r,c=this.model.get(`elType`);return!!((r=elementor.widgetsCache)!=null&&(r=r[c])!=null&&(r=r.meta)!=null&&r.is_pro_promotion)}},{key:`shouldShowChildrenInStructure`,value:function shouldShowChildrenInStructure(){return!this.isProPromotion()&&elementor.hooks.applyFilters(`navigator/element/show-children`,!0,this.model)}},{key:`initialize`,value:function initialize(){this.collection=this.isProPromotion()?new Backbone.Collection:this.model.get(`elements`),this.childViewContainer=`.elementor-navigator__elements`,this.listenTo(this.model,`change`,this.onModelChange).listenTo(this.model.get(`settings`),`change`,this.onModelSettingsChange),this.listenTo(this.model,`change:editor_settings`,this.onModelEditorSettingsChange),this.listenTo(this.model,`title_external_change`,this.onTitleExternalChange),this.listenTo(this.model,`navigator:add`,this.onNavigatorAdd),this._onRefreshChildrenRequest=this._onRefreshChildrenRequest.bind(this),window.addEventListener(`elementor/navigator/refresh-children`,this._onRefreshChildrenRequest)}},{key:`onDestroy`,value:function onDestroy(){window.removeEventListener(`elementor/navigator/refresh-children`,this._onRefreshChildrenRequest)}},{key:`_onRefreshChildrenRequest`,value:function _onRefreshChildrenRequest(r){var c,l=r==null||(c=r.detail)==null?void 0:c.elementId;l&&this.model.get(`id`)!==l||(this.render(),this.syncNavigatorStructureState(),this.updateSelection())}},{key:`addChild`,value:function addChild(r,c,l){if(this.shouldShowChildrenInStructure())return Marionette.CompositeView.prototype.addChild.call(this,r,c,l)}},{key:`onNavigatorAdd`,value:function onNavigatorAdd(r,c){this._onCollectionAdd(r,this.collection,c||{})}},{key:`onTitleExternalChange`,value:function onTitleExternalChange(){this.ui.title.text(this.model.getTitle())}},{key:`onModelEditorSettingsChange`,value:function onModelEditorSettingsChange(r,c){var l;((l=r.changed)==null||(l=l.editor_settings)==null?void 0:l.title)!==void 0&&this.ui.title.text(c.title),window.dispatchEvent(new CustomEvent(`elementor/element/update_editor_settings`,{detail:{element:r,editorSettings:c}}))}},{key:`getIndent`,value:function getIndent(){return this.getOption(`indent`)||0}},{key:`isExcludedNestableElement`,value:function isExcludedNestableElement(){return[`section`,`column`].includes(this.model.get(`elType`))}},{key:`isNavigatorContainer`,value:function isNavigatorContainer(){return!this.model.get(`elType`)}},{key:`hasChildren`,value:function hasChildren(){var r;return this.shouldShowChildrenInStructure()?((r=this.model.get(`elements`))==null?void 0:r.length)||this.model.get(`elType`)!==`widget`:!1}},{key:`toggleList`,value:function toggleList(r,c){if(!(!this.hasChildren()||this.isNavigatorContainer())&&this.ui.item.hasClass(`elementor-active`)!==r){this.ui.item.toggleClass(`elementor-active`,r);var l=`slideToggle`;r!==void 0&&(l=`slide`+(r?`Down`:`Up`)),this.ui.elements[l](300,c)}}},{key:`toggleHiddenClass`,value:function toggleHiddenClass(){this.$el.toggleClass(`elementor-navigator__element--hidden`,this.model.getVisibility())}},{key:`recursiveChildInvoke`,value:function recursiveChildInvoke(r){for(var c=arguments,l=this,u=arguments.length,p=Array(u>1?u-1:0),m=1;m<u;m++)p[m-1]=arguments[m];this[r].apply(this,p),this.children.each(function(r){r instanceof l.constructor&&r.recursiveChildInvoke.apply(r,c)})}},{key:`recursiveParentInvoke`,value:function recursiveParentInvoke(r){for(var c=arguments.length,l=Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];this._parent instanceof this.constructor&&(this._parent[r].apply(this._parent,l),this._parent.recursiveParentInvoke.apply(this._parent,arguments))}},{key:`recursiveChildAgreement`,value:function recursiveChildAgreement(r){for(var c=arguments.length,l=Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];if(!this[r].apply(this,l))return!1;for(var p=!0,m=0,h=Object.values(this.children._views);m<h.length;m++){var g=h[m];if(g instanceof this.constructor&&!g.recursiveChildAgreement.apply(g,arguments)){p=!1;break}}return p}},{key:`activateMouseInteraction`,value:function activateMouseInteraction(){this.$el.on({mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)})}},{key:`deactivateMouseInteraction`,value:function deactivateMouseInteraction(){this.$el.off(`mouseenter mouseleave`)}},{key:`dragShouldBeIgnored`,value:function dragShouldBeIgnored(r){return!this.model.isValidChild(r)}},{key:`addEditingClass`,value:function addEditingClass(){this.ui.item.addClass(`elementor-editing`)}},{key:`removeEditingClass`,value:function removeEditingClass(){this.ui.item.removeClass(`elementor-editing`)}},{key:`enterTitleEditing`,value:function enterTitleEditing(){this.ui.title.attr(`contenteditable`,!0).focus(),document.execCommand(`selectAll`),elementor.addBackgroundClickListener(`navigator`,{ignore:this.ui.title,callback:this.exitTitleEditing.bind(this)})}},{key:`exitTitleEditing`,value:function exitTitleEditing(){this.ui.title.attr(`contenteditable`,!1);var r=this.model.get(`settings`),c=r.get(`_title`),l=this.ui.title.text().trim();if(c||r.unset(`_title`,{silent:!0}),elementor.helpers.isAtomicWidget(this.model)){var u=this.model.get(`editor_settings`);this.model.set(`editor_settings`,_objectSpread$7(_objectSpread$7({},u),{},{title:l}))}else r.set(`_title`,l);$e.internal(`document/save/set-is-modified`,{status:!0}),elementor.removeBackgroundClickListener(`navigator`)}},{key:`activateSortable`,value:function activateSortable(){elementor.userCan(`design`)&&this.ui.elements.sortable({items:`> .elementor-navigator__element`,placeholder:`ui-sortable-placeholder`,axis:`y`,forcePlaceholderSize:!0,connectWith:`.`+this.getSortableClassName()+` > .elementor-navigator__elements`,cancel:`[contenteditable="true"], [data-locked="true"]`})}},{key:`renderIndicators`,value:function renderIndicators(){var r=this,c=this.model.get(`settings`).attributes;this.ui.indicators.empty(),jQuery.each(elementor.navigator.indicators,function(l,u){if(u.settingKeys.some(function(r){return c[r]})){var p=jQuery(`<div>`,{class:`elementor-navigator__element__indicator`,title:u.title}).attr(`data-section`,u.section).html(`<i class="eicon-${u.icon}"></i>`);r.ui.indicators.append(p),p.tipsy({delayIn:300,gravity:`s`})}})}},{key:`updateSelection`,value:function updateSelection(){Object.keys(elementor.selection.elements).includes(this.model.get(`id`))?this.select():this.deselect()}},{key:`select`,value:function select(){this.recursiveParentInvoke(`toggleList`,!0),this.addEditingClass(),elementor.helpers.scrollToView(this.$el,400,elementor.navigator.getLayout().elements.$el)}},{key:`deselect`,value:function deselect(){this.removeEditingClass()}},{key:`onRender`,value:function onRender(){this.activateSortable(),!this.isNavigatorContainer()&&(this.ui.item.css(`padding-inline-start`,this.getIndent()+`px`),this.toggleHiddenClass(),this.renderIndicators(),this.syncNavigatorStructureState())}},{key:`onModelChange`,value:function onModelChange(){var r;(this.model.changed.hidden!==void 0||((r=this.model.changed.editor_settings)==null?void 0:r.is_hidden)!==void 0)&&this.toggleHiddenClass()}},{key:`onModelSettingsChange`,value:function onModelSettingsChange(r){var c=this;r.changed._title!==void 0&&this.ui.title.text(this.model.getTitle()),r.changed.presetTitle!==void 0&&r._title===void 0&&this.ui.title.text(this.model.getTitle()),r.changed.presetIcon!==void 0&&this.ui.icon.html(`<i class="${this.model.attributes.icon}"></i>`),jQuery.each(elementor.navigator.indicators,function(l,u){if(Object.keys(r.changed).filter(function(r){return u.settingKeys.includes(r)}).length)return c.renderIndicators(),!1})}},{key:`syncNavigatorStructureState`,value:function syncNavigatorStructureState(){this.isNavigatorContainer()||this.$el.toggleClass(`elementor-navigator__element--has-children`,!!this.hasChildren())}},{key:`onItemPress`,value:function onItemPress(r){var c=13,l=32;if(c===r.keyCode){this.onItemClick(r);return}l===r.keyCode&&this.onToggleListClick(r)}},{key:`onItemClick`,value:function onItemClick(r){window.dispatchEvent(new CustomEvent(`elementor/navigator/item/click`,{detail:{id:this.model.get(`id`),type:this.model.get(`elType`)}})),this.model.trigger(`request:edit`,{append:r.ctrlKey||r.metaKey,scrollIntoView:!0})}},{key:`onToggleClick`,value:function onToggleClick(r){r.stopPropagation(),this.model.trigger(`request:toggleVisibility`)}},{key:`onTitleDoubleClick`,value:function onTitleDoubleClick(){this.enterTitleEditing()}},{key:`onTitleKeyDown`,value:function onTitleKeyDown(r){r.which===13&&(r.preventDefault(),this.exitTitleEditing())}},{key:`onTitlePaste`,value:function onTitlePaste(r){r.preventDefault(),document.execCommand(`insertHTML`,!1,r.originalEvent.clipboardData.getData(`text/plain`))}},{key:`onToggleListClick`,value:function onToggleListClick(r){r.stopPropagation(),this.toggleList()}},{key:`onSortStart`,value:function onSortStart(r,c){this.model.trigger(`request:sort:start`,r,c),jQuery(c.item).children(`.elementor-navigator__item`).trigger(`click`),elementor.navigator.getLayout().activateElementsMouseInteraction()}},{key:`onSortStop`,value:function onSortStop(){elementor.navigator.getLayout().deactivateElementsMouseInteraction()}},{key:`onSortOver`,value:function onSortOver(r){r.stopPropagation(),this.$el.addClass(`elementor-dragging-on-child`)}},{key:`onSortOut`,value:function onSortOut(r){r.stopPropagation(),this.$el.removeClass(`elementor-dragging-on-child`)}},{key:`onSortUpdate`,value:function onSortUpdate(r,c){r.stopPropagation(),this.ui.elements.is(c.item.parent())&&this.model.trigger(`request:sort:update`,c)}},{key:`onSortReceive`,value:function onSortReceive(r,c){this.model.trigger(`request:sort:receive`,r,c)}},{key:`onMouseEnter`,value:function onMouseEnter(r){var c=this;r.stopPropagation(),!this.recursiveChildAgreement(`dragShouldBeIgnored`,elementor.channels.data.request(`dragging:model`))&&(this.autoExpandTimeout=setTimeout(function(){c.toggleList(!0,function(){c.ui.elements.sortable(`refreshPositions`)})},500))}},{key:`onMouseLeave`,value:function onMouseLeave(r){r.stopPropagation(),clearTimeout(this.autoExpandTimeout)}},{key:`onContextMenu`,value:function onContextMenu(r){this.model.trigger(`request:contextmenu`,r,{location:elementorCommon.eventsManager.config.locations.structurePanel})}},{key:`onEditRequest`,value:function onEditRequest(){elementor.navigator.getLayout().elements.currentView.recursiveChildInvoke(`removeEditingClass`),this.select(!0)}},{key:`onIndicatorClick`,value:function onIndicatorClick(r){var c=r.currentTarget.dataset.section;setTimeout(function(){var r=elementor.getPanelView().currentPageView,l=r.getControlModel(c).get(`tab`);r.activateSection(c),r.activateTab(l),r.render()})}}])}(Marionette.CompositeView);b(),w(),E(),D(),A();function _callSuper$136(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$136()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$136,`_callSuper`);function _isNativeReflectConstruct$136(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$136=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$136,`_isNativeReflectConstruct`);var bl=function(c){function _default(){return _classCallCheck(this,_default),_callSuper$136(this,_default,arguments)}return _inherits(_default,c),_createClass(_default,[{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-navigator`}},{key:`id`,value:function id(){return`elementor-navigator__inner`}},{key:`ui`,value:function ui(){return{toggleButton:`#elementor-navigator__toggle-all`,toggleButtonIcon:`#elementor-navigator__toggle-all i`,toggleButtonA11yText:`#elementor-navigator__toggle-all span`,closeButton:`#elementor-navigator__close`}}},{key:`behaviors`,value:function behaviors(){return elementor.hooks.applyFilters(`navigator/layout/behaviors`,{},this)}},{key:`events`,value:function events(){return{"click @ui.toggleButton":`toggleElements`,"click @ui.closeButton":`onCloseButtonClick`,"keyup @ui.closeButton":`onCloseButtonKeyPress`}}},{key:`regions`,value:function regions(){return{elements:`#elementor-navigator__elements`}}},{key:`toggleElements`,value:function toggleElements(){var c=this.ui.toggleButton.data(`elementor-action`)===`expand`,l=c?(0,r.__)(`Collapse all elements`,`elementor`):(0,r.__)(`Expand all elements`,`elementor`),u=[`eicon-collapse`,`eicon-expand`];this.ui.toggleButton.data(`elementor-action`,c?`collapse`:`expand`),this.ui.toggleButtonIcon.removeClass(u[+c]).addClass(u[+!c]),this.ui.toggleButtonA11yText.text(l),this.elements.currentView.recursiveChildInvoke(`toggleList`,c)}},{key:`activateElementsMouseInteraction`,value:function activateElementsMouseInteraction(){this.elements.currentView.recursiveChildInvoke(`activateMouseInteraction`)}},{key:`deactivateElementsMouseInteraction`,value:function deactivateElementsMouseInteraction(){this.elements.currentView.recursiveChildInvoke(`deactivateMouseInteraction`)}},{key:`updateSelection`,value:function updateSelection(){this.elements.currentView.recursiveChildInvoke(`updateSelection`)}},{key:`onShow`,value:function onShow(){this.elements.show(new yl({model:elementor.elementsModel}))}},{key:`onCloseButtonClick`,value:function onCloseButtonClick(){$e.components.get(`navigator`).close()}},{key:`onCloseButtonKeyPress`,value:function onCloseButtonKeyPress(r){r.keyCode===13&&this.onCloseButtonClick()}}])}(Marionette.LayoutView),xl=__commonJSMin(((r,c)=>{c.exports=Marionette.Region.extend({storage:null,storageSizeKeys:null,constructor:function constructor(){Marionette.Region.prototype.constructor.apply(this,arguments);var r=elementorCommon.storage.get(this.getStorageKey());this.storage=r||this.getDefaultStorage(),this.storageSizeKeys=Object.keys(this.storage.size)},saveStorage:function saveStorage(r,c){this.storage[r]=c,elementorCommon.storage.set(this.getStorageKey(),this.storage)},saveSize:function saveSize(r){r||(r=elementor.helpers.getElementInlineStyle(this.$el,this.storageSizeKeys)),this.saveStorage(`size`,r)}})}));b(),w(),E(),D(),A();function _callSuper$135(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$135()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$135,`_callSuper`);function _isNativeReflectConstruct$135(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$135=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$135,`_isNativeReflectConstruct`);var Sl=function(c){function _default(c){var l;return _classCallCheck(this,_default),l=_callSuper$135(this,_default,[c]),l.component=$e.components.register(new hl({manager:l})),l.isDocked=!1,l.setSize(),l.indicators={customPosition:{title:(0,r.__)(`Custom Positioning`,`elementor`),icon:`cursor-move`,settingKeys:[`_position`],section:`_section_position`}},l.ensurePosition=l.ensurePosition.bind(l),l.listenTo(elementor.channels.dataEditMode,`switch`,l.onEditModeSwitched),elementor.on(`document:loaded`,l.onDocumentLoaded.bind(l)),elementor.on(`document:unloaded`,l.onDocumentUnloaded.bind(l)),l}return _inherits(_default,c),_createClass(_default,[{key:`getStorageKey`,value:function getStorageKey(){return`navigator`}},{key:`getDefaultStorage`,value:function getDefaultStorage(){return{visible:!0,size:{width:``,height:``,top:``,bottom:``,right:``,left:``}}}},{key:`getLayout`,value:function getLayout(){return this.currentView}},{key:`getDraggableOptions`,value:function getDraggableOptions(){return{iframeFix:!0,handle:`#elementor-navigator__header`,drag:this.onDrag.bind(this),stop:this.onDragStop.bind(this)}}},{key:`getResizableOptions`,value:function getResizableOptions(){var r=this;return{handles:`all`,containment:`document`,minWidth:150,maxWidth:500,minHeight:240,start:function start(){elementor.$previewWrapper.addClass(`ui-resizable-resizing`)},stop:function stop(){elementor.$previewWrapper.removeClass(`ui-resizable-resizing`),r.isDocked?(r.storage.size.width=elementor.helpers.getElementInlineStyle(r.$el,[`width`]).width,elementorCommon.storage.set(`navigator`,r.storage)):r.saveSize()},resize:function resize(c,l){r.setSize(l.size.width+`px`)}}}},{key:`initLayout`,value:function initLayout(){this.show(new bl),this.$el.draggable(this.getDraggableOptions()),this.$el.resizable(this.getResizableOptions())}},{key:`open`,value:function open(r,c){this.$el.show(),this.setSize(),this.storage.docked&&this.dock(),r&&r.trigger(`request:edit`),c!=null&&c.expandAllElements&&this.currentView.elements.currentView.recursiveChildInvoke(`toggleList`,!0),this.saveStorage(`visible`,!0),this.ensurePosition(),elementorCommon.elements.$window.on(`resize`,this.ensurePosition)}},{key:`close`,value:function close(r){this.$el.hide(),this.isDocked&&this.undock(!0),r||this.saveStorage(`visible`,!1),this.$el.resizable(`instance`)&&this.$el.resizable(`destroy`),elementorCommon.elements.$window.off(`resize`,this.ensurePosition)}},{key:`isOpen`,value:function isOpen(){return this.$el.is(`:visible`)}},{key:`dock`,value:function dock(){elementorCommon.elements.$body.addClass(`elementor-navigator-docked`),this.setSize();var r=this.getResizableOptions();this.$el.css({height:``,top:``,bottom:``,left:``,right:``}),this.$el.resizable(`instance`)&&this.$el.resizable(`destroy`),r.handles=elementorCommon.config.isRTL?`e`:`w`,this.$el.resizable(r),this.isDocked=!0,this.saveStorage(`docked`,!0)}},{key:`undock`,value:function undock(r){elementorCommon.elements.$body.removeClass(`elementor-navigator-docked`),this.setSize(),elementor.$previewWrapper.css(elementorCommon.config.isRTL?`left`:`right`,``),this.$el.resizable(`instance`)&&(this.$el.resizable(`destroy`),this.$el.resizable(this.getResizableOptions())),this.isDocked=!1,r||this.saveStorage(`docked`,!1)}},{key:`setSize`,value:function setSize(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;r?this.storage.size.width=r:this.storage.size.width=this.storage.size.width||elementorCommon.elements.$body.css(`--e-editor-navigator-width`),elementorCommon.elements.$body.css(`--e-editor-navigator-width`,this.storage.size.width),this.$el.css(`width`,``)}},{key:`ensurePosition`,value:function ensurePosition(){if(!this.isDocked){var r=this.$el.offset();r.left>innerWidth&&this.$el.css({left:``,right:``}),r.top>innerHeight&&this.$el.css({top:``,bottom:``})}}},{key:`onDrag`,value:function onDrag(r,c){if(this.isDocked){if(c.position.left===c.originalPosition.left){if(c.position.top!==c.originalPosition.top)return!1}else this.undock();return}0>c.position.top&&(c.position.top=0);var l=0>c.position.left,u=c.position.left+this.el.offsetWidth>innerWidth;elementorCommon.config.isRTL?u&&(c.position.left=innerWidth-this.el.offsetWidth):l&&(c.position.left=0),elementorCommon.elements.$body.toggleClass(`elementor-navigator--dock-hint`,elementorCommon.config.isRTL?l:u)}},{key:`onDragStop`,value:function onDragStop(r,c){if(!this.isDocked){this.saveSize();var l=c.position.left+this.el.offsetWidth;(0>c.position.left||l>innerWidth)&&this.dock(),elementorCommon.elements.$body.removeClass(`elementor-navigator--dock-hint`)}}},{key:`onEditModeSwitched`,value:function onEditModeSwitched(r){[`edit`,`picker`].includes(r)&&this.storage.visible?this.open():this.close(!0)}},{key:`onDocumentLoaded`,value:function onDocumentLoaded(r){r.config.panel.has_elements&&(this.initLayout(),!1!==this.storage.visible&&!elementor.config.starter&&$e.route(`navigator`))}},{key:`onDocumentUnloaded`,value:function onDocumentUnloaded(){this.component.isOpen&&this.component.close(!0)}}])}(xl());b(),w(),E(),D(),A();function _callSuper$134(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$134()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$134,`_callSuper`);function _isNativeReflectConstruct$134(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$134=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$134,`_isNativeReflectConstruct`);var Cl=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$134(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`getDefaultSettings`,value:function getDefaultSettings(){return{selectors:{notice:`#e-notice-bar`,close:`#e-notice-bar__close`}}}},{key:`getDefaultElements`,value:function getDefaultElements(){var r=this.getSettings();return{$notice:jQuery(r.selectors.notice),$close:jQuery(r.selectors.close)}}},{key:`bindEvents`,value:function bindEvents(){this.elements.$close.on(`click`,this.onCloseClick.bind(this))}},{key:`onCloseClick`,value:function onCloseClick(){this.elements.$notice.slideUp(),elementorCommon.ajax.addRequest(`notice_bar_dismiss`)}}])}(elementorModules.ViewModule);function _callSuper$133(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$133()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$133(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$133=function _isNativeReflectConstruct(){return!!r})()}var wl,Tl=__esmMin((()=>{b(),w(),E(),D(),A(),Nn(),kn(),__name(_callSuper$133,`_callSuper`),__name(_isNativeReflectConstruct$133,`_isNativeReflectConstruct`),wl=function(r){function AddSectionView(){return _classCallCheck(this,AddSectionView),_callSuper$133(this,AddSectionView,arguments)}return _inherits(AddSectionView,r),_createClass(AddSectionView,[{key:`id`,get:function get(){return`elementor-add-new-section`}},{key:`onCloseButtonClick`,value:function onCloseButtonClick(){Dn.sendCanvasEmptyBoxAction({targetName:`close`,containerCreated:!1}),this.closeSelectPresets()}}])}(Mn)})),El=__commonJSMin(((r,c)=>{var l=Un(),u,p=Bn().getAllElementTypes;u=l.extend({getChildView:function getChildView(r){var c=r.get(`elType`),l=elementor.elementsManager.getElementTypeClass(c);if(!l)throw Error(`Element type "${c}" is not registered.`);return l.getView()},behaviors:function behaviors(){var r={Sortable:{behaviorClass:Gn(),elChildType:`section`}};return elementor.hooks.applyFilters(`elements/base-section-container/behaviors`,r,this)},getSortableOptions:function getSortableOptions(){return{handle:`> .elementor-element-overlay .elementor-editor-element-edit`,items:`> .elementor-section, > .e-con`}},getChildType:function getChildType(){return p()},initialize:function initialize(){l.prototype.initialize.apply(this,arguments),this.listenTo(elementor.channels.panelElements,`element:drag:start`,this.onPanelElementDragStart).listenTo(elementor.channels.panelElements,`element:drag:end`,this.onPanelElementDragEnd)},onPanelElementDragStart:function onPanelElementDragStart(){this.$el.find(`.elementor-background-video-embed`).hide(),elementor.helpers.disableElementEvents(this.$el.find(`iframe`))},onPanelElementDragEnd:function onPanelElementDragEnd(){this.$el.find(`.elementor-background-video-embed`).show(),elementor.helpers.enableElementEvents(this.$el.find(`iframe`))}}),c.exports=u})),Dl=__commonJSMin(((c,l)=>{P(),Tl();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var u=El();l.exports=u.extend({initialize:function initialize(){this.$childViewContainer=jQuery(`<div>`,{class:`elementor-section-wrap`}),this.config={allowEdit:!0},u.prototype.initialize.apply(this,arguments)},setConfig:function setConfig(r){this.config=Object.assign(this.config,r)},getChildViewContainer:function getChildViewContainer(){return this.$childViewContainer},behaviors:function behaviors(){var r=u.prototype.behaviors.apply(this,arguments),c={contextMenu:{behaviorClass:jn(),groups:this.getContextMenuGroups()}};return jQuery.extend(r,c)},getContainer:function getContainer(){return elementor.settings.page.getEditedView().getContainer()},getContextMenuGroups:function getContextMenuGroups(){var c=this,l=function hasContent(){return elementor.elements.length>0};return[{name:`paste`,actions:[{name:`paste`,title:(0,r.__)(`Paste`,`elementor`),isEnabled:function isEnabled(){return $e.components.get(`document/elements`).utils.isPasteEnabled(c.getContainer())},callback:function callback(r){return $e.run(`document/ui/paste`,{container:c.getContainer(),options:{at:r,rebuild:!0}})}}]},{name:`content`,actions:[{name:`copy_all_content`,title:(0,r.__)(`Copy All Content`,`elementor`),isEnabled:l,callback:function callback(){return $e.run(`document/elements/copy-all`)}},{name:`delete_all_content`,title:(0,r.__)(`Delete All Content`,`elementor`),isEnabled:l,callback:function callback(){return $e.run(`document/elements/empty`)}}]}]},createElementFromModel:function createElementFromModel(r){var c,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return u.prototype.createElementFromModel.call(this,r,_objectSpread(_objectSpread({},l),{},{shouldWrap:[`widget`,`section`,`column`].includes(r.elType)&&!((c=r.widgetType)!=null&&c.startsWith(`e-form-`))}))},addElementFromPanel:function addElementFromPanel(r){if(!(!this.config.allowEdit||elementor.helpers.maybeDisableWidget())){var c=!!elementorCommon.config.experimentalFeatures.container,l=elementor.channels.panelElements.request(`element:selected`),u=$e.internal(`document/history/start-log`,{type:`add`,title:elementor.helpers.getModelLabel(l.model)}),p=$e.run(`document/elements/create`,{model:{elType:c?`container`:`section`},container:elementor.getPreviewContainer(),columns:1,options:_objectSpread({at:this.getOption(`at`)},r)});c?l.model.get(`elType`)!==`container`&&p.view.addElementFromPanel(r):p.view.children.findByIndex(0).addElementFromPanel(r),$e.internal(`document/history/end-log`,{id:u})}},shouldRenderAddNewSectionArea:function shouldRenderAddNewSectionArea(){return this.config.allowEdit&&elementor.userCan(`design`)},onRender:function onRender(){if(this.$el.html(this.$childViewContainer),this.shouldRenderAddNewSectionArea()){var r=new wl;r.render(),this.$el.append(r.$el)}}})})),Ol=__commonJSMin(((r,c)=>{var l=z();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.inputs=`[type="radio"]`,r},events:function events(){return _.extend(l.prototype.events.apply(this,arguments),{"mousedown label":`onMouseDownLabel`,"click @ui.inputs":`onClickInput`,"change @ui.inputs":`onBaseInputChange`})},updatePlaceholder:function updatePlaceholder(){var r=this.getControlPlaceholder();!this.getControlValue()&&r?this.ui.inputs.filter(`[value="${this.getControlPlaceholder()}"]`).addClass(`e-choose-placeholder`):this.ui.inputs.removeClass(`e-choose-placeholder`)},onReady:function onReady(){this.updatePlaceholder()},applySavedValue:function applySavedValue(){var r=this.getControlValue();r?this.ui.inputs.filter(`[value="`+r+`"]`).prop(`checked`,!0):this.ui.inputs.filter(`:checked`).prop(`checked`,!1)},onMouseDownLabel:function onMouseDownLabel(r){var c=this.$(r.currentTarget),l=this.$(`#`+c.attr(`for`));l.data(`checked`,l.prop(`checked`))},onClickInput:function onClickInput(r){if(this.model.get(`toggle`)){var c=this.$(r.currentTarget);c.data(`checked`)&&c.prop(`checked`,!1).trigger(`change`)}},onBaseInputChange:function onBaseInputChange(){l.prototype.onBaseInputChange.apply(this,arguments),this.updatePlaceholder()}},{onPasteStyle:function onPasteStyle(r,c){return c===``||r.options[c]!==void 0}})})),kl=__toESM(Dl());N(),M(),b(),w(),E(),D(),A();function _callSuper$132(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$132()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$132,`_callSuper`);function _isNativeReflectConstruct$132(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$132=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$132,`_isNativeReflectConstruct`);var Al=Ol(),jl=function(c){function ControlPopoverStarterView(){return _classCallCheck(this,ControlPopoverStarterView),_callSuper$132(this,ControlPopoverStarterView,arguments)}return _inherits(ControlPopoverStarterView,c),_createClass(ControlPopoverStarterView,[{key:`ui`,value:function ui(){var r=Al.prototype.ui.apply(this,arguments);return r.popoverToggle=`.elementor-control-popover-toggle-toggle`,r.resetInput=`.elementor-control-popover-toggle-reset`,r}},{key:`events`,value:function events(){return _.extend(Al.prototype.events.apply(this,arguments),{"click @ui.popoverToggle":`onPopoverToggleClick`,"click @ui.resetInput":`onResetInputClick`})}},{key:`onShow`,value:function onShow(){var r=this,c=this.$el.next(`.elementor-controls-popover`);c.length&&(c[0].dataset.popoverToggle=`elementor-control-default-${this.model.cid}`,c.on(`hide`,function(){return r.onPopoverHide()}),c.attr(`data-on-hide`,!0))}},{key:`onPopoverHide`,value:function onPopoverHide(){this.reRoute(!1)}},{key:`onResetInputClick`,value:function onResetInputClick(){var r=this.model.get(`global`);r!=null&&r.active&&this.triggerMethod(`value:type:change`)}},{key:`onInputChange`,value:function onInputChange(r){r.currentTarget===this.ui.popoverToggle[0]&&(this.getGlobalKey()?this.triggerMethod(`unset:global:value`):this.isGlobalActive()&&this.triggerMethod(`value:type:change`))}},{key:`onPopoverToggleClick`,value:function onPopoverToggleClick(){var r=this;this.isGlobalActive()&&!this.getControlValue()&&!this.getGlobalKey()&&this.getGlobalDefault()&&this.triggerMethod(`unlink:global:default`);var c=this.$el.next(`.elementor-controls-popover`);c.attr(`data-on-hide`)||(c.attr(`data-on-hide`,!0),c.on(`hide`,function(){return r.onPopoverHide()})),c.is(`:visible`)?(c.hide(),c.trigger(`hide`)):this.reRoute(!0)}},{key:`activate`,value:function activate(){this.$el.next(`.elementor-controls-popover`).show()}},{key:`getGlobalCommand`,value:function getGlobalCommand(){return`globals/typography`}},{key:`buildPreviewItemCSS`,value:function buildPreviewItemCSS(r){var c={};return Object.entries(r).forEach(function(r){var l=_slicedToArray(r,2),u=l[0],p=l[1];!p||p.size===``||(u.startsWith(`typography_`)&&(u=u.replace(`typography_`,``)),u===`font_family`&&elementor.helpers.enqueueFont(p,`editor`),u===`font_size`?c.fontSize=`min(${p.unit===`custom`?p.size:`${p.size}${p.unit}`}, 28px)`:(u.includes(`_`)&&(u=u.replace(/([_][a-z])/g,function(r){return r.toUpperCase().replace(`_`,``)})),c[u]=p))}),c}},{key:`createGlobalItemMarkup`,value:function createGlobalItemMarkup(r){var c=jQuery(`<div>`,{class:`e-global__preview-item e-global__typography`,"data-global-id":r.id,title:r.title});return c.html(_.escape(r.title)).css(this.buildPreviewItemCSS(r.value)),c}},{key:`getGlobalMeta`,value:function getGlobalMeta(){return{commandName:this.getGlobalCommand(),key:this.model.get(`name`),title:(0,r.__)(`New Typography Setting`,`elementor`),controlType:`typography`,route:`panel/global/global-typography`}}},{key:`getAddGlobalConfirmMessage`,value:function getAddGlobalConfirmMessage(){var c=this.getGlobalMeta(),l=jQuery(`<div>`,{class:`e-global__confirm-message`}),u=jQuery(`<div>`).html((0,r.__)(`Are you sure you want to create a new Global Font setting?`,`elementor`)),p=jQuery(`<div>`,{class:`e-global__confirm-input-wrapper`}),m=jQuery(`<input>`,{type:`text`,name:`global-name`,placeholder:c.title}).val(c.title);return p.append(m),l.append(u,p),l}},{key:`createHeaderItemMarkup`,value:function createHeaderItemMarkup(r){return jQuery(`<div>`,{class:`e-global__group-header`}).text(r)}},{key:`createDividerMarkup`,value:function createDividerMarkup(){return jQuery(`<div>`,{class:`e-global__group-divider`})}},{key:`getGlobalsList`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(){var r;return B.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=1,$e.data.get(this.getGlobalCommand());case 1:return r=c.sent,c.abrupt(`return`,r.data);case 2:case`end`:return c.stop()}},_callee,this)}));function getGlobalsList(){return r.apply(this,arguments)}return getGlobalsList}()},{key:`buildGlobalsList`,value:function buildGlobalsList(c,l){var u=this,p=[],m=[];Object.values(c).forEach(function(r){r&&(r.group===`v4`?p.push(r):m.push(r))}),p.length&&(l.append(this.createHeaderItemMarkup((0,r.__)(`Atomic Classes`,`elementor`))),p.forEach(function(r){l.append(u.createGlobalItemMarkup(r))}),m.length&&(l.append(this.createDividerMarkup()),l.append(this.createHeaderItemMarkup((0,r.__)(`Global Fonts`,`elementor`))))),m.forEach(function(r){l.append(u.createGlobalItemMarkup(r))})}},{key:`onAddGlobalButtonClick`,value:function onAddGlobalButtonClick(){this.triggerMethod(`add:global:to:list`,this.getAddGlobalConfirmMessage())}}])}(Al);jl.onPasteStyle=function(r,c){return!c||c===r.return_value},b(),w(),E(),D(),A(),P();function _createForOfIteratorHelper$2(r,c){var l=typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(!l){if(Array.isArray(r)||(l=_unsupportedIterableToArray$2(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.
30 +`;b(),w(),E(),D(),A();function _callSuper$147(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$147()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$147,`_callSuper`);function _isNativeReflectConstruct$147(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$147=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$147,`_isNativeReflectConstruct`);var al=function(c){function _default(){return _classCallCheck(this,_default),_callSuper$147(this,_default,arguments)}return _inherits(_default,c),_createClass(_default,[{key:`ui`,value:function ui(){return{buttonClose:`#elementor-panel-header-kit-close`,buttonBack:`#elementor-panel-header-kit-back`}}},{key:`events`,value:function events(){return{"click @ui.buttonClose":`onClickClose`,"click @ui.buttonBack":`onClickBack`}}},{key:`onBeforeShow`,value:function onBeforeShow(){this.$el.prepend(elementor.compileTemplate(rl,{Back:(0,r.__)(`Back`,`elementor`)})),this.$el.append(elementor.compileTemplate(il,{Close:(0,r.__)(`Close`,`elementor`)}))}},{key:`onClickClose`,value:function onClickClose(){$e.run(`panel/global/close`)}},{key:`onClickBack`,value:function onClickBack(){$e.run(`panel/global/back`)}}])}(Marionette.Behavior);P(),b(),w(),E(),D(),A();function _callSuper$146(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$146()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$146,`_callSuper`);function _isNativeReflectConstruct$146(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$146=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$146,`_isNativeReflectConstruct`);var ol=function(c){function GlobalControlSelect(){return _classCallCheck(this,GlobalControlSelect),_callSuper$146(this,GlobalControlSelect,arguments)}return _inherits(GlobalControlSelect,c),_createClass(GlobalControlSelect,[{key:`getClassNames`,value:function getClassNames(){return{previewItemsContainer:`e-global__preview-items-container`,previewItem:`e-global__preview-item`,selectedPreviewItem:`e-global__preview-item--selected`,manageButton:`e-global__manage-button`,popover:`e-global__popover`,popoverToggle:`e-global__popover-toggle`,popoverToggleActive:`e-global__popover-toggle--active`,controlGlobal:`e-control-global`,globalPopoverContainer:`e-global__popover-container`,globalPopoverTitle:`e-global__popover-title`,globalPopoverTitleText:`e-global__popover-title-text`,globalPopoverInfo:`e-global__popover-info`,globalPopoverInfoTooltip:`e-global__popover-info-tooltip`,confirmAddNewGlobal:`e-global__confirm-add`,confirmMessageText:`.e-global__confirm-message-text`}}},{key:`registerUiElements`,value:function registerUiElements(){var r=this.popover.getElements(`widget`);this.ui.manageGlobalsButton=r.find(`.${this.getClassNames().manageButton}`)}},{key:`registerPreviewElements`,value:function registerPreviewElements(){var r=this.popover.getElements(`widget`),c=this.getClassNames();this.ui.globalPreviewItems=r.find(`.${c.previewItem}`)}},{key:`registerEvents`,value:function registerEvents(){var r=this;this.ui.globalPopoverToggle.on(`click`,function(c){return r.toggleGlobalPopover(c)}),this.ui.manageGlobalsButton.on(`click`,function(){var c=r.view.getGlobalMeta().route,l={route:$e.routes.getHistory(`panel`).reverse()[0].route,container:r.view.options.container};$e.run(`panel/global/open`,l).then(function(){return $e.route(c)}),r.popover.hide()})}},{key:`addPreviewItemsClickListener`,value:function addPreviewItemsClickListener(){var r=this;this.ui.$globalPreviewItemsContainer.on(`click`,`.${this.getClassNames().previewItem}`,function(c){return r.applySavedGlobalValue(c.currentTarget.dataset.globalId)})}},{key:`fetchGlobalValue`,value:function fetchGlobalValue(){var r=this;return $e.data.get(this.view.getGlobalKey()).then(function(c){return r.view.globalValue=c.data.value,r.onValueTypeChange(),elementor.kitManager.renderGlobalVariables(),r.view.applySavedValue(),c.data}).catch(function(c){var l;if((c==null||(l=c.data)==null?void 0:l.status)!==404)return Promise.reject(c);r.disableGlobalValue(!1)})}},{key:`setCurrentActivePreviewItem`,value:function setCurrentActivePreviewItem(){var r=this.getClassNames().selectedPreviewItem,c=elementor.config.globals.defaults_enabled[this.view.getGlobalMeta().controlType];this.activePreviewItem&&this.resetActivePreviewItem();var l=this.view.getGlobalKey();if(!l&&!this.view.getControlValue()&&c){var u;l=(u=this.view.model.get(`global`))==null?void 0:u.default}if(!l){this.activePreviewItem=null;return}var p=$e.data.commandExtractArgs(l).args.query.id,m=this.ui.globalPreviewItems.filter(`[data-global-id="${p}"]`);m&&(this.activePreviewItem=m,this.activePreviewItem.addClass(r))}},{key:`resetActivePreviewItem`,value:function resetActivePreviewItem(){this.activePreviewItem&&this.activePreviewItem.removeClass(this.getClassNames().selectedPreviewItem),this.activePreviewItem=null}},{key:`applySavedGlobalValue`,value:function applySavedGlobalValue(r){this.setGlobalValue(r),this.fetchGlobalValue(),this.popover.hide()}},{key:`onValueTypeChange`,value:function onValueTypeChange(){this.updateCurrentGlobalName()}},{key:`updateCurrentGlobalName`,value:function updateCurrentGlobalName(c){var l=this,u=this.getClassNames(),p=``;if(c)p=c;else{c=this.view.getControlValue();var m=this.view.getGlobalKey();if(!m&&!c&&elementor.config.globals.defaults_enabled[this.view.getGlobalMeta().controlType]){var h;m=(h=this.view.model.get(`global`))==null?void 0:h.default}if(m){$e.data.get(m).then(function(c){var u=``;u=c.data.title?c.data.title:(0,r.__)(`Default`,`elementor`),l.updateCurrentGlobalName(u)}),this.ui.globalPopoverToggle.addClass(u.popoverToggleActive);return}else p=c?(0,r.__)(`Custom`,`elementor`):(0,r.__)(`Default`,`elementor`);this.ui.globalPopoverToggle.removeClass(u.popoverToggleActive)}this.globalName=p}},{key:`onRender`,value:function onRender(){var r=this;this.printGlobalToggleButton(),this.initGlobalPopover(),this.view.getGlobalKey()?setTimeout(function(){return r.fetchGlobalValue()},50):this.onValueTypeChange(),this.$el.addClass(this.getClassNames().controlGlobal)}},{key:`toggleGlobalPopover`,value:function toggleGlobalPopover(){var r=this;this.popover.isVisible()?this.popover.hide():(this.ui.$globalPreviewItemsContainer&&this.ui.$globalPreviewItemsContainer.remove(),this.view.getGlobalsList().then(function(c){r.addGlobalsListToPopover(c),r.registerPreviewElements(),r.addPreviewItemsClickListener(),r.popover.show(),r.setCurrentActivePreviewItem()}))}},{key:`buildGlobalPopover`,value:function buildGlobalPopover(){var r=this,c=this.getClassNames(),l=jQuery(`<div>`,{class:c.globalPopoverContainer}),u=jQuery(`<div>`,{class:c.globalPopoverTitle}).html(`<div class="`+c.globalPopoverInfo+`"><i class="eicon-info-circle"></i></div><span class="`+c.globalPopoverTitleText+`">`+this.getOption(`popoverTitle`)+`</span>`),p=jQuery(`<div>`,{class:c.manageButton}).html(`<i class="eicon-cog"></i>`);return u.append(p),l.append(u),this.manageButtonTooltipText=this.getOption(`manageButtonText`),p.tipsy({title:function title(){return r.manageButtonTooltipText},offset:3,gravity:function gravity(){return`s`}}),l}},{key:`printGlobalToggleButton`,value:function printGlobalToggleButton(){var r=this,c=jQuery(`<div>`,{class:this.getClassNames().popoverToggle+` elementor-control-unit-1`}),l=jQuery(`<i>`,{class:`eicon-globe`}),u=jQuery(`<span>`,{class:`elementor-control-spinner`}).html(`<i class="eicon-spinner eicon-animation-spin"></i></span>`);c.append(l),this.$el.find(`.elementor-control-input-wrapper`).prepend(c),this.ui.globalPopoverToggle=c,this.ui.globalPopoverToggleIcon=l,this.ui.$globalsLoadingSpinner=u,this.ui.globalPopoverToggleIcon.tipsy({title:function title(){return r.globalName},offset:7,gravity:function gravity(){return`s`}}),c.before(u),this.ui.$globalsLoadingSpinner.hide()}},{key:`initGlobalPopover`,value:function initGlobalPopover(){this.popover=elementorCommon.dialogsManager.createWidget(`simple`,{className:this.getClassNames().popover,message:this.buildGlobalPopover(),effects:{show:`show`,hide:`hide`},hide:{onOutsideClick:!1},position:{my:`right top`,at:`right bottom+5`,of:this.ui.globalPopoverToggle,collision:`fit flip`,autoRefresh:!0}}),this.registerUiElementsAndEvents(),this.createGlobalInfoTooltip()}},{key:`addGlobalsListToPopover`,value:function addGlobalsListToPopover(r){var c=jQuery(`<div>`,{class:`e-global__preview-items-container`});this.view.buildGlobalsList(r,c),this.popover.getElements(`widget`).find(`.${this.getClassNames().globalPopoverTitle}`).after(c),this.ui.$globalPreviewItemsContainer=c}},{key:`registerUiElementsAndEvents`,value:function registerUiElementsAndEvents(){this.registerUiElements(),this.registerEvents()}},{key:`onAddGlobalToList`,value:function onAddGlobalToList(c){var l=this,u=this.getClassNames();this.confirmNewGlobalModal=elementorCommon.dialogsManager.createWidget(`confirm`,{className:u.confirmAddNewGlobal,headerMessage:this.getOption(`newGlobalConfirmTitle`),message:c,strings:{confirm:(0,r.__)(`Create`,`elementor`),cancel:(0,r.__)(`Cancel`,`elementor`)},hide:{onBackgroundClick:!1},onConfirm:function onConfirm(){return l.onConfirmNewGlobal()},onShow:function onShow(){var r=l.confirmNewGlobalModal.getElements(`widget`);l.ui.globalNameInput=r.find(`input`).focus(),l.ui.confirmMessageText=r.find(u.confirmMessageText),l.ui.globalNameInput.on(`input`,function(){return l.onAddGlobalConfirmInputChange()})}}),this.confirmNewGlobalModal.show()}},{key:`onAddGlobalConfirmInputChange`,value:function onAddGlobalConfirmInputChange(){if(this.view.globalsList){for(var r,c=0,l=Object.values(this.view.globalsList);c<l.length;c++){var u=l[c];if(this.ui.globalNameInput.val()===u.title){r=this.view.getNameAlreadyExistsMessage();break}else r=this.view.getConfirmTextMessage()}this.ui.confirmMessageText.html(r)}}},{key:`onConfirmNewGlobal`,value:function onConfirmNewGlobal(){var r=this.view.getGlobalMeta();r.title=this.ui.globalNameInput.val(),this.createNewGlobal(r)}},{key:`createNewGlobal`,value:function createNewGlobal(r){var c=this;this.ui.$globalsLoadingSpinner.show(),$e.run(r.commandName+`/create`,{container:this.view.container,setting:r.key,title:r.title}).then(function(r){c.applySavedGlobalValue(r.data.id),c.ui.$globalsLoadingSpinner.hide()})}},{key:`setGlobalValue`,value:function setGlobalValue(r){var c=``,l={};c=this.view.getGlobalKey()?`document/globals/settings`:`document/globals/enable`,l[this.view.model.get(`name`)]=this.view.getGlobalCommand()+`?id=`+r,$e.run(c,{container:this.view.options.container,settings:l})}},{key:`onUnsetGlobalValue`,value:function onUnsetGlobalValue(){this.disableGlobalValue()}},{key:`onUnlinkGlobalDefault`,value:function onUnlinkGlobalDefault(){var r=this,c=this.view.getGlobalMeta();$e.run(`document/globals/unlink`,{container:this.view.container,globalValue:this.view.model.get(`global`).default,setting:c.key,options:{external:!0}}).then(function(){r.onValueTypeChange(),r.view.globalValue=null,r.resetActivePreviewItem()})}},{key:`createGlobalInfoTooltip`,value:function createGlobalInfoTooltip(){var r=this,c=this.getClassNames(),l=this.popover.getElements(`widget`).find(`.${c.globalPopoverInfo}`);this.globalInfoTooltip=elementorCommon.dialogsManager.createWidget(`simple`,{className:c.globalPopoverInfoTooltip,message:this.getOption(`tooltipText`),effects:{show:`show`,hide:`hide`},position:{my:`left bottom`,at:`left top+9`,of:this.popover.getElements(`widget`),autoRefresh:!0}}),l.on({mouseenter:function mouseenter(){return r.globalInfoTooltip.show()},mouseleave:function mouseleave(){return r.globalInfoTooltip.hide()}})}},{key:`disableGlobalValue`,value:function disableGlobalValue(){var r=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,l=this.view.getGlobalMeta();return $e.run(`document/globals/disable`,{container:this.view.container,settings:_defineProperty({},l.key,``),options:{restore:c}}).then(function(){r.onValueTypeChange(),r.view.globalValue=null,r.resetActivePreviewItem()})}}])}(Marionette.Behavior);b(),w(),E(),D(),k(),A(),P();var sl=__toESM(Hn());function ownKeys$8(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}__name(ownKeys$8,`ownKeys`);function _objectSpread$8(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$8(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$8(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}__name(_objectSpread$8,`_objectSpread`);function _callSuper$145(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$145()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$145,`_callSuper`);function _isNativeReflectConstruct$145(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$145=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$145,`_isNativeReflectConstruct`);function _superPropGet$23(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}__name(_superPropGet$23,`_superPropGet`);var cl=`v4`,ll=function(c){function Manager(){var r;_classCallCheck(this,Manager);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper$145(this,Manager,[].concat(l)),_defineProperty(r,`loadingTriggers`,{preview:!1,globals:!1}),_defineProperty(r,`variablesCSS`,null),r}return _inherits(Manager,c),_createClass(Manager,[{key:`initialize`,value:function initialize(){var r=this;elementor.on(`preview:loaded`,function(){r.loadingTriggers.preview=!0,r.renderGlobalsDefaultCSS()}),elementor.on(`document:loaded`,function(){r.renderGlobalVariables()}),elementor.once(`globals:loaded`,function(){r.loadingTriggers.globals=!0,r.renderGlobalsDefaultCSS()}),elementor.hooks.addFilter(`controls/base/behaviors`,this.addGlobalsBehavior),elementor.config.user.can_edit_kit&&$e.components.register(new Qc({manager:this}))}},{key:`addPanelPages`,value:function addPanelPages(){elementor.getPanelView().addPage(`kit_settings`,{view:tl,title:(0,r.__)(`Site Settings`,`elementor`)}),elementor.getPanelView().addPage(`kit_menu`,{view:nl,title:(0,r.__)(`Site Settings`,`elementor`)})}},{key:`addPanelMenuItem`,value:function addPanelMenuItem(){var c=elementor.modules.layouts.panel.pages.menu.Menu;c.addItem({name:`global-settings`,icon:`eicon-global-settings`,title:(0,r.__)(`Site Settings`,`elementor`),type:`page`,callback:function callback(){$e.run(`panel/global/open`,{route:$e.routes.getHistory(`panel`).reverse()[0].route})}},`style`,`editor-preferences`),c.addItem({name:`site-editor`,icon:`eicon-theme-builder`,title:(0,r.__)(`Theme Builder`,`elementor`),type:`page`,callback:function callback(){return $e.run(`app/open`)}},`style`,`editor-preferences`)}},{key:`addHeaderBehavior`,value:function addHeaderBehavior(r){return r.kit={behaviorClass:al},r}},{key:`addGlobalsBehavior`,value:function addGlobalsBehavior(c,l){if(l.isGlobalActive){var u=l.isGlobalActive();return l.options.model.get(`type`)===`color`&&u&&(c.globals={behaviorClass:ol,popoverTitle:(0,r.__)(`Global Colors`,`elementor`),manageButtonText:(0,r.__)(`Manage Global Colors`,`elementor`),tooltipText:(0,r.__)(`Global Colors help you work smarter. Save a color, and use it anywhere throughout your site. Access and edit your global colors by clicking the Manage button.`,`elementor`),newGlobalConfirmTitle:(0,r.__)(`Create New Global Color`,`elementor`)}),l.options.model.get(`type`)===`popover_toggle`&&l.options.model.get(`groupType`)===`typography`&&u&&(c.globals={behaviorClass:ol,popoverTitle:(0,r.__)(`Global Fonts`,`elementor`),manageButtonText:(0,r.__)(`Manage Global Fonts`,`elementor`),tooltipText:(0,r.__)(`Global Fonts help you work smarter. Save a Typography, and use it anywhere throughout your site. Access and edit your Global Fonts by clicking the Manage button.`,`elementor`),newGlobalConfirmTitle:(0,r.__)(`Create New Global Font`,`elementor`)}),c}}},{key:`renderGlobalVariables`,value:function renderGlobalVariables(){var r=this;if(this.variablesCSS||(this.variablesCSS=new sl.default({id:`e-kit-variables`,settingsModel:new elementorModules.editor.elements.models.BaseSettings({},{})})),elementor.documents.getCurrent().config.type===`kit`){this.variablesCSS.removeStyleFromDocument();return}$e.data.get(`globals/index`).then(function(c){var l=c.data;l.colors&&Object.values(l.colors).forEach(function(c){if(c.group!==`v4`){var l=elementor.config.kit_config.design_system_controls.colors,u={_id:c.id,color:c.value};r.variablesCSS.addStyleRules(l,u,l,[`{{WRAPPER}}`],[`body`])}}),l.typography&&Object.values(l.typography).forEach(function(c){if(cl!==c.group){var l=elementor.config.kit_config.design_system_controls.typography,u=_objectSpread$8({_id:c.id},c.value);c.value.typography_font_family&&elementor.helpers.enqueueFont(c.value.typography_font_family),r.variablesCSS.addStyleRules(l,u,l,[`{{WRAPPER}}`],[`body`])}}),r.variablesCSS.addStyleToDocument()})}},{key:`renderGlobalsDefaultCSS`,value:function renderGlobalsDefaultCSS(){if(!(!this.loadingTriggers.preview||!this.loadingTriggers.globals)){var r=new sl.default({id:`e-global-style`}),c=elementor.config.globals.defaults_enabled.colors,l=elementor.config.globals.defaults_enabled.typography;!c&&!l||(Object.values(elementor.widgetsCache).forEach(function(u){if(u.controls){var p=[],m={};Object.values(u.controls).forEach(function(r){var h,g,v=r.type===`color`,y=r.groupType===`typography`;if(!(v&&!c||y&&!l)){var b=r;r.groupType&&(b=u.controls[r.groupPrefix+r.groupType]),(h=r.global)!=null&&h.default&&(m[r.name]=b.global.default),(g=b.global)!=null&&g.default&&p.push(r)}}),p.forEach(function(c){r.addControlStyleRules(c,u.controls,u.controls,[`{{WRAPPER}}`],[`.elementor-widget-`+u.widget_type],m)})}}),r.addStyleToDocument())}}},{key:`onInit`,value:function onInit(){var r=this;_superPropGet$23(Manager,`onInit`,this,3)([]),elementorCommon.elements.$window.on(`elementor:loaded`,function(){elementor.config.initial_document.panel.support_kit&&r.initialize()})}}])}(elementorModules.editor.utils.Module);b(),w(),E(),D(),A();function _callSuper$144(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$144()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$144,`_callSuper`);function _isNativeReflectConstruct$144(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$144=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$144,`_isNativeReflectConstruct`);var ul=function(r){function Close(){return _classCallCheck(this,Close),_callSuper$144(this,Close,arguments)}return _inherits(Close,r),_createClass(Close,[{key:`apply`,value:function apply(){return this.component.close()}}])}($e.modules.CommandBase);b(),w(),E(),D(),A();function _callSuper$143(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$143()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$143,`_callSuper`);function _isNativeReflectConstruct$143(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$143=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$143,`_isNativeReflectConstruct`);var dl=function(r){function ExpandAll(){return _classCallCheck(this,ExpandAll),_callSuper$143(this,ExpandAll,arguments)}return _inherits(ExpandAll,r),_createClass(ExpandAll,[{key:`apply`,value:function apply(){this.component.isOpen?this.expandAllElements():this.openNavigator()}},{key:`openNavigator`,value:function openNavigator(){$e.run(`navigator/open`,{expandAllElements:!0})}},{key:`expandAllElements`,value:function expandAllElements(){this.component.manager.currentView.elements.currentView.recursiveChildInvoke(`toggleList`,!0)}}])}($e.modules.CommandBase);b(),w(),E(),D(),A();function _callSuper$142(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$142()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$142,`_callSuper`);function _isNativeReflectConstruct$142(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$142=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$142,`_isNativeReflectConstruct`);var fl=function(r){function Open(){return _classCallCheck(this,Open),_callSuper$142(this,Open,arguments)}return _inherits(Open,r),_createClass(Open,[{key:`apply`,value:function apply(r){$e.route(this.component.getNamespace(),r)}}])}($e.modules.CommandBase);b(),w(),E(),D(),A();function _callSuper$141(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$141()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$141,`_callSuper`);function _isNativeReflectConstruct$141(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$141=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$141,`_isNativeReflectConstruct`);var pl=function(r){function Toggle(){return _classCallCheck(this,Toggle),_callSuper$141(this,Toggle,arguments)}return _inherits(Toggle,r),_createClass(Toggle,[{key:`apply`,value:function apply(){this.component.isOpen?$e.run(`navigator/close`):$e.run(`navigator/open`)}}])}($e.modules.CommandBase),ml=__exportAll({Close:()=>ul,ExpandAll:()=>dl,Open:()=>fl,Toggle:()=>pl});b(),w(),E(),D(),k(),A(),W();function _callSuper$140(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$140()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$140,`_callSuper`);function _isNativeReflectConstruct$140(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$140=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$140,`_isNativeReflectConstruct`);function _superPropGet$22(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}__name(_superPropGet$22,`_superPropGet`);var hl=function(r){function Component(){return _classCallCheck(this,Component),_callSuper$140(this,Component,arguments)}return _inherits(Component,r),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`navigator`}},{key:`defaultRoutes`,value:function defaultRoutes(){return{"":function _(){}}}},{key:`defaultCommands`,value:function defaultCommands(){return this.importCommands(ml)}},{key:`defaultShortcuts`,value:function defaultShortcuts(){return{toggle:{keys:`ctrl+i`,dependency:function dependency(){return elementor.getPreviewContainer().isEditable()}}}}},{key:`open`,value:function open(r){var c=r.model,l=c!==void 0&&c,u=r.expandAllElements,p=u!==void 0&&u;return this.manager.open(l,{expandAllElements:p}),!0}},{key:`close`,value:function close(r){return _superPropGet$22(Component,`close`,this,3)([])?(this.manager.close(r),!0):!1}}])}(U);b(),w(),E(),D(),A();function _callSuper$139(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$139()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$139,`_callSuper`);function _isNativeReflectConstruct$139(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$139=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$139,`_isNativeReflectConstruct`);var gl=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$139(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-navigator__elements--empty`}},{key:`className`,value:function className(){return`elementor-empty-view`}},{key:`onRender`,value:function onRender(){this.$el.css(`padding-inline-start`,this.getOption(`indent`)+`px`)}}])}(Marionette.ItemView);b(),w(),E(),D(),A();function _callSuper$138(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$138()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$138,`_callSuper`);function _isNativeReflectConstruct$138(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$138=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$138,`_isNativeReflectConstruct`);var _l=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$138(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-navigator__root--empty`}},{key:`className`,value:function className(){return`elementor-nerd-box`}}])}(Marionette.ItemView);P(),b(),w(),E(),D(),A();function ownKeys$7(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}__name(ownKeys$7,`ownKeys`);function _objectSpread$7(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$7(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$7(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}__name(_objectSpread$7,`_objectSpread`);function _callSuper$137(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$137()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$137,`_callSuper`);function _isNativeReflectConstruct$137(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$137=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$137,`_isNativeReflectConstruct`);var vl=`elementor-navigator__element-new-nestable`,yl=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$137(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-navigator__elements`}},{key:`ui`,value:function ui(){return{item:`> .elementor-navigator__item`,title:`> .elementor-navigator__item .elementor-navigator__element__title__text`,toggle:`> .elementor-navigator__item > .elementor-navigator__element__toggle`,toggleList:`> .elementor-navigator__item > .elementor-navigator__element__list-toggle`,indicators:`> .elementor-navigator__item > .elementor-navigator__element__indicators`,indicator:`> .elementor-navigator__item > .elementor-navigator__element__indicators > .elementor-navigator__element__indicator`,elements:`> .elementor-navigator__elements`,icon:`> .elementor-navigator__item .elementor-navigator__element__element-type`}}},{key:`events`,value:function events(){return{contextmenu:`onContextMenu`,"click @ui.item":`onItemClick`,"keydown @ui.item":`onItemPress`,"click @ui.toggle":`onToggleClick`,"click @ui.toggleList":`onToggleListClick`,"click @ui.indicator":`onIndicatorClick`,"dblclick @ui.title":`onTitleDoubleClick`,"keydown @ui.title":`onTitleKeyDown`,"paste @ui.title":`onTitlePaste`,"sortstart @ui.elements":`onSortStart`,"sortover @ui.elements":`onSortOver`,"sortout @ui.elements":`onSortOut`,"sortstop @ui.elements":`onSortStop`,"sortupdate @ui.elements":`onSortUpdate`,"sortreceive @ui.elements":`onSortReceive`}}},{key:`getEmptyView`,value:function getEmptyView(){return this.isNavigatorContainer()?_l:this.hasChildren()?gl:null}},{key:`childViewOptions`,value:function childViewOptions(){return{indent:this.getIndent()+10}}},{key:`className`,value:function className(){var r=`elementor-navigator__element`,c=this.model.get(`elType`);return this.isNavigatorContainer()||(r+=` elementor-navigator__element-`+c,this.isExcludedNestableElement()||(r+=` `+vl)),this.hasChildren()&&(r+=` elementor-navigator__element--has-children`),r}},{key:`getSortableClassName`,value:function getSortableClassName(){var r=this.model.get(`elType`);return this.isExcludedNestableElement()?`elementor-navigator__element-`+r:vl}},{key:`attributes`,value:function attributes(){return{"data-id":this.model.id,"data-model-cid":this.model.cid}}},{key:`templateHelpers`,value:function templateHelpers(){var r={};return this.isNavigatorContainer()||(r.title=this.model.getTitle(),r.icon=this.model.get(`elType`)===`section`?``:this.model.getIcon()),r}},{key:`isProPromotion`,value:function isProPromotion(){var r,c=this.model.get(`elType`);return!!((r=elementor.widgetsCache)!=null&&(r=r[c])!=null&&(r=r.meta)!=null&&r.is_pro_promotion)}},{key:`shouldShowChildrenInStructure`,value:function shouldShowChildrenInStructure(){return!this.isProPromotion()&&elementor.hooks.applyFilters(`navigator/element/show-children`,!0,this.model)}},{key:`initialize`,value:function initialize(){this.collection=this.isProPromotion()?new Backbone.Collection:this.model.get(`elements`),this.childViewContainer=`.elementor-navigator__elements`,this.listenTo(this.model,`change`,this.onModelChange).listenTo(this.model.get(`settings`),`change`,this.onModelSettingsChange),this.listenTo(this.model,`change:editor_settings`,this.onModelEditorSettingsChange),this.listenTo(this.model,`title_external_change`,this.onTitleExternalChange),this.listenTo(this.model,`navigator:add`,this.onNavigatorAdd),this._onRefreshChildrenRequest=this._onRefreshChildrenRequest.bind(this),window.addEventListener(`elementor/navigator/refresh-children`,this._onRefreshChildrenRequest)}},{key:`onDestroy`,value:function onDestroy(){window.removeEventListener(`elementor/navigator/refresh-children`,this._onRefreshChildrenRequest)}},{key:`_onRefreshChildrenRequest`,value:function _onRefreshChildrenRequest(r){var c,l=r==null||(c=r.detail)==null?void 0:c.elementId;l&&this.model.get(`id`)!==l||(this.render(),this.syncNavigatorStructureState(),this.updateSelection())}},{key:`addChild`,value:function addChild(r,c,l){if(this.shouldShowChildrenInStructure())return Marionette.CompositeView.prototype.addChild.call(this,r,c,l)}},{key:`onNavigatorAdd`,value:function onNavigatorAdd(r,c){this._onCollectionAdd(r,this.collection,c||{})}},{key:`onTitleExternalChange`,value:function onTitleExternalChange(){this.ui.title.text(this.model.getTitle())}},{key:`onModelEditorSettingsChange`,value:function onModelEditorSettingsChange(r,c){var l;((l=r.changed)==null||(l=l.editor_settings)==null?void 0:l.title)!==void 0&&this.ui.title.text(c.title),window.dispatchEvent(new CustomEvent(`elementor/element/update_editor_settings`,{detail:{element:r,editorSettings:c}}))}},{key:`getIndent`,value:function getIndent(){return this.getOption(`indent`)||0}},{key:`isExcludedNestableElement`,value:function isExcludedNestableElement(){return[`section`,`column`].includes(this.model.get(`elType`))}},{key:`isNavigatorContainer`,value:function isNavigatorContainer(){return!this.model.get(`elType`)}},{key:`hasChildren`,value:function hasChildren(){var r;return this.shouldShowChildrenInStructure()?((r=this.model.get(`elements`))==null?void 0:r.length)||this.model.get(`elType`)!==`widget`:!1}},{key:`toggleList`,value:function toggleList(r,c){if(!(!this.hasChildren()||this.isNavigatorContainer())&&this.ui.item.hasClass(`elementor-active`)!==r){this.ui.item.toggleClass(`elementor-active`,r);var l=`slideToggle`;r!==void 0&&(l=`slide`+(r?`Down`:`Up`)),this.ui.elements[l](300,c)}}},{key:`toggleHiddenClass`,value:function toggleHiddenClass(){this.$el.toggleClass(`elementor-navigator__element--hidden`,this.model.getVisibility())}},{key:`recursiveChildInvoke`,value:function recursiveChildInvoke(r){for(var c=arguments,l=this,u=arguments.length,p=Array(u>1?u-1:0),m=1;m<u;m++)p[m-1]=arguments[m];this[r].apply(this,p),this.children.each(function(r){r instanceof l.constructor&&r.recursiveChildInvoke.apply(r,c)})}},{key:`recursiveParentInvoke`,value:function recursiveParentInvoke(r){for(var c=arguments.length,l=Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];this._parent instanceof this.constructor&&(this._parent[r].apply(this._parent,l),this._parent.recursiveParentInvoke.apply(this._parent,arguments))}},{key:`recursiveChildAgreement`,value:function recursiveChildAgreement(r){for(var c=arguments.length,l=Array(c>1?c-1:0),u=1;u<c;u++)l[u-1]=arguments[u];if(!this[r].apply(this,l))return!1;for(var p=!0,m=0,h=Object.values(this.children._views);m<h.length;m++){var g=h[m];if(g instanceof this.constructor&&!g.recursiveChildAgreement.apply(g,arguments)){p=!1;break}}return p}},{key:`activateMouseInteraction`,value:function activateMouseInteraction(){this.$el.on({mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)})}},{key:`deactivateMouseInteraction`,value:function deactivateMouseInteraction(){this.$el.off(`mouseenter mouseleave`)}},{key:`dragShouldBeIgnored`,value:function dragShouldBeIgnored(r){return!this.model.isValidChild(r)}},{key:`addEditingClass`,value:function addEditingClass(){this.ui.item.addClass(`elementor-editing`)}},{key:`removeEditingClass`,value:function removeEditingClass(){this.ui.item.removeClass(`elementor-editing`)}},{key:`enterTitleEditing`,value:function enterTitleEditing(){this.ui.title.attr(`contenteditable`,!0).focus(),document.execCommand(`selectAll`),elementor.addBackgroundClickListener(`navigator`,{ignore:this.ui.title,callback:this.exitTitleEditing.bind(this)})}},{key:`exitTitleEditing`,value:function exitTitleEditing(){this.ui.title.attr(`contenteditable`,!1);var r=this.model.get(`settings`),c=r.get(`_title`),l=this.ui.title.text().trim();if(c||r.unset(`_title`,{silent:!0}),elementor.helpers.isAtomicWidget(this.model)){var u=this.model.get(`editor_settings`);this.model.set(`editor_settings`,_objectSpread$7(_objectSpread$7({},u),{},{title:l}))}else r.set(`_title`,l);$e.internal(`document/save/set-is-modified`,{status:!0}),elementor.removeBackgroundClickListener(`navigator`)}},{key:`activateSortable`,value:function activateSortable(){elementor.userCan(`design`)&&this.ui.elements.sortable({items:`> .elementor-navigator__element`,placeholder:`ui-sortable-placeholder`,axis:`y`,forcePlaceholderSize:!0,connectWith:`.`+this.getSortableClassName()+` > .elementor-navigator__elements`,cancel:`[contenteditable="true"], [data-locked="true"]`})}},{key:`renderIndicators`,value:function renderIndicators(){var r=this,c=this.model.get(`settings`).attributes;this.ui.indicators.empty(),jQuery.each(elementor.navigator.indicators,function(l,u){if(u.settingKeys.some(function(r){return c[r]})){var p=jQuery(`<div>`,{class:`elementor-navigator__element__indicator`,title:u.title}).attr(`data-section`,u.section).html(`<i class="eicon-${u.icon}"></i>`);r.ui.indicators.append(p),p.tipsy({delayIn:300,gravity:`s`})}})}},{key:`updateSelection`,value:function updateSelection(){Object.keys(elementor.selection.elements).includes(this.model.get(`id`))?this.select():this.deselect()}},{key:`select`,value:function select(){this.recursiveParentInvoke(`toggleList`,!0),this.addEditingClass(),elementor.helpers.scrollToView(this.$el,400,elementor.navigator.getLayout().elements.$el)}},{key:`deselect`,value:function deselect(){this.removeEditingClass()}},{key:`onRender`,value:function onRender(){this.activateSortable(),!this.isNavigatorContainer()&&(this.ui.item.css(`padding-inline-start`,this.getIndent()+`px`),this.toggleHiddenClass(),this.renderIndicators(),this.syncNavigatorStructureState())}},{key:`onModelChange`,value:function onModelChange(){var r;(this.model.changed.hidden!==void 0||((r=this.model.changed.editor_settings)==null?void 0:r.is_hidden)!==void 0)&&this.toggleHiddenClass()}},{key:`onModelSettingsChange`,value:function onModelSettingsChange(r){var c=this;r.changed._title!==void 0&&this.ui.title.text(this.model.getTitle()),r.changed.presetTitle!==void 0&&r._title===void 0&&this.ui.title.text(this.model.getTitle()),r.changed.presetIcon!==void 0&&this.ui.icon.html(`<i class="${this.model.attributes.icon}"></i>`),jQuery.each(elementor.navigator.indicators,function(l,u){if(Object.keys(r.changed).filter(function(r){return u.settingKeys.includes(r)}).length)return c.renderIndicators(),!1})}},{key:`syncNavigatorStructureState`,value:function syncNavigatorStructureState(){this.isNavigatorContainer()||this.$el.toggleClass(`elementor-navigator__element--has-children`,!!this.hasChildren())}},{key:`onItemPress`,value:function onItemPress(r){var c=13,l=32;if(c===r.keyCode){this.onItemClick(r);return}l===r.keyCode&&this.onToggleListClick(r)}},{key:`onItemClick`,value:function onItemClick(r){window.dispatchEvent(new CustomEvent(`elementor/navigator/item/click`,{detail:{id:this.model.get(`id`),type:this.model.get(`elType`)}})),this.model.trigger(`request:edit`,{append:r.ctrlKey||r.metaKey,scrollIntoView:!0})}},{key:`onToggleClick`,value:function onToggleClick(r){r.stopPropagation(),this.model.trigger(`request:toggleVisibility`)}},{key:`onTitleDoubleClick`,value:function onTitleDoubleClick(){this.enterTitleEditing()}},{key:`onTitleKeyDown`,value:function onTitleKeyDown(r){r.which===13&&(r.preventDefault(),this.exitTitleEditing())}},{key:`onTitlePaste`,value:function onTitlePaste(r){r.preventDefault(),document.execCommand(`insertHTML`,!1,r.originalEvent.clipboardData.getData(`text/plain`))}},{key:`onToggleListClick`,value:function onToggleListClick(r){r.stopPropagation(),this.toggleList()}},{key:`onSortStart`,value:function onSortStart(r,c){this.model.trigger(`request:sort:start`,r,c),jQuery(c.item).children(`.elementor-navigator__item`).trigger(`click`),elementor.navigator.getLayout().activateElementsMouseInteraction()}},{key:`onSortStop`,value:function onSortStop(){elementor.navigator.getLayout().deactivateElementsMouseInteraction()}},{key:`onSortOver`,value:function onSortOver(r){r.stopPropagation(),this.$el.addClass(`elementor-dragging-on-child`)}},{key:`onSortOut`,value:function onSortOut(r){r.stopPropagation(),this.$el.removeClass(`elementor-dragging-on-child`)}},{key:`onSortUpdate`,value:function onSortUpdate(r,c){r.stopPropagation(),this.ui.elements.is(c.item.parent())&&this.model.trigger(`request:sort:update`,c)}},{key:`onSortReceive`,value:function onSortReceive(r,c){this.model.trigger(`request:sort:receive`,r,c)}},{key:`onMouseEnter`,value:function onMouseEnter(r){var c=this;r.stopPropagation(),!this.recursiveChildAgreement(`dragShouldBeIgnored`,elementor.channels.data.request(`dragging:model`))&&(this.autoExpandTimeout=setTimeout(function(){c.toggleList(!0,function(){c.ui.elements.sortable(`refreshPositions`)})},500))}},{key:`onMouseLeave`,value:function onMouseLeave(r){r.stopPropagation(),clearTimeout(this.autoExpandTimeout)}},{key:`onContextMenu`,value:function onContextMenu(r){this.model.trigger(`request:contextmenu`,r,{location:elementorCommon.eventsManager.config.locations.structurePanel})}},{key:`onEditRequest`,value:function onEditRequest(){elementor.navigator.getLayout().elements.currentView.recursiveChildInvoke(`removeEditingClass`),this.select(!0)}},{key:`onIndicatorClick`,value:function onIndicatorClick(r){var c=r.currentTarget.dataset.section;setTimeout(function(){var r=elementor.getPanelView().currentPageView,l=r.getControlModel(c).get(`tab`);r.activateSection(c),r.activateTab(l),r.render()})}}])}(Marionette.CompositeView);b(),w(),E(),D(),A();function _callSuper$136(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$136()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$136,`_callSuper`);function _isNativeReflectConstruct$136(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$136=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$136,`_isNativeReflectConstruct`);var bl=function(c){function _default(){return _classCallCheck(this,_default),_callSuper$136(this,_default,arguments)}return _inherits(_default,c),_createClass(_default,[{key:`getTemplate`,value:function getTemplate(){return`#tmpl-elementor-navigator`}},{key:`id`,value:function id(){return`elementor-navigator__inner`}},{key:`ui`,value:function ui(){return{toggleButton:`#elementor-navigator__toggle-all`,toggleButtonIcon:`#elementor-navigator__toggle-all i`,toggleButtonA11yText:`#elementor-navigator__toggle-all span`,closeButton:`#elementor-navigator__close`}}},{key:`behaviors`,value:function behaviors(){return elementor.hooks.applyFilters(`navigator/layout/behaviors`,{},this)}},{key:`events`,value:function events(){return{"click @ui.toggleButton":`toggleElements`,"click @ui.closeButton":`onCloseButtonClick`,"keyup @ui.closeButton":`onCloseButtonKeyPress`}}},{key:`regions`,value:function regions(){return{elements:`#elementor-navigator__elements`}}},{key:`toggleElements`,value:function toggleElements(){var c=this.ui.toggleButton.data(`elementor-action`)===`expand`,l=c?(0,r.__)(`Collapse all elements`,`elementor`):(0,r.__)(`Expand all elements`,`elementor`),u=[`eicon-collapse`,`eicon-expand`];this.ui.toggleButton.data(`elementor-action`,c?`collapse`:`expand`),this.ui.toggleButtonIcon.removeClass(u[+c]).addClass(u[+!c]),this.ui.toggleButtonA11yText.text(l),this.elements.currentView.recursiveChildInvoke(`toggleList`,c)}},{key:`activateElementsMouseInteraction`,value:function activateElementsMouseInteraction(){this.elements.currentView.recursiveChildInvoke(`activateMouseInteraction`)}},{key:`deactivateElementsMouseInteraction`,value:function deactivateElementsMouseInteraction(){this.elements.currentView.recursiveChildInvoke(`deactivateMouseInteraction`)}},{key:`updateSelection`,value:function updateSelection(){this.elements.currentView.recursiveChildInvoke(`updateSelection`)}},{key:`onShow`,value:function onShow(){this.elements.show(new yl({model:elementor.elementsModel}))}},{key:`onCloseButtonClick`,value:function onCloseButtonClick(){$e.components.get(`navigator`).close()}},{key:`onCloseButtonKeyPress`,value:function onCloseButtonKeyPress(r){r.keyCode===13&&this.onCloseButtonClick()}}])}(Marionette.LayoutView),xl=__commonJSMin(((r,c)=>{c.exports=Marionette.Region.extend({storage:null,storageSizeKeys:null,constructor:function constructor(){Marionette.Region.prototype.constructor.apply(this,arguments);var r=elementorCommon.storage.get(this.getStorageKey());this.storage=r||this.getDefaultStorage(),this.storageSizeKeys=Object.keys(this.storage.size)},saveStorage:function saveStorage(r,c){this.storage[r]=c,elementorCommon.storage.set(this.getStorageKey(),this.storage)},saveSize:function saveSize(r){r||(r=elementor.helpers.getElementInlineStyle(this.$el,this.storageSizeKeys)),this.saveStorage(`size`,r)}})}));b(),w(),E(),D(),A();function _callSuper$135(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$135()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$135,`_callSuper`);function _isNativeReflectConstruct$135(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$135=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$135,`_isNativeReflectConstruct`);var Sl=function(c){function _default(c){var l;return _classCallCheck(this,_default),l=_callSuper$135(this,_default,[c]),l.component=$e.components.register(new hl({manager:l})),l.isDocked=!1,l.setSize(),l.indicators={customPosition:{title:(0,r.__)(`Custom Positioning`,`elementor`),icon:`cursor-move`,settingKeys:[`_position`],section:`_section_position`}},l.ensurePosition=l.ensurePosition.bind(l),l.listenTo(elementor.channels.dataEditMode,`switch`,l.onEditModeSwitched),elementor.on(`document:loaded`,l.onDocumentLoaded.bind(l)),elementor.on(`document:unloaded`,l.onDocumentUnloaded.bind(l)),l}return _inherits(_default,c),_createClass(_default,[{key:`getStorageKey`,value:function getStorageKey(){return`navigator`}},{key:`getDefaultStorage`,value:function getDefaultStorage(){return{visible:!0,size:{width:``,height:``,top:``,bottom:``,right:``,left:``}}}},{key:`getLayout`,value:function getLayout(){return this.currentView}},{key:`getDraggableOptions`,value:function getDraggableOptions(){return{iframeFix:!0,handle:`#elementor-navigator__header`,drag:this.onDrag.bind(this),stop:this.onDragStop.bind(this)}}},{key:`getResizableOptions`,value:function getResizableOptions(){var r=this;return{handles:`all`,containment:`document`,minWidth:150,maxWidth:500,minHeight:240,start:function start(){elementor.$previewWrapper.addClass(`ui-resizable-resizing`)},stop:function stop(){elementor.$previewWrapper.removeClass(`ui-resizable-resizing`),r.isDocked?(r.storage.size.width=elementor.helpers.getElementInlineStyle(r.$el,[`width`]).width,elementorCommon.storage.set(`navigator`,r.storage)):r.saveSize()},resize:function resize(c,l){r.setSize(l.size.width+`px`)}}}},{key:`initLayout`,value:function initLayout(){this.show(new bl),this.$el.draggable(this.getDraggableOptions()),this.$el.resizable(this.getResizableOptions())}},{key:`open`,value:function open(r,c){this.$el.show(),this.setSize(),this.storage.docked&&this.dock(),r&&r.trigger(`request:edit`),c!=null&&c.expandAllElements&&this.currentView.elements.currentView.recursiveChildInvoke(`toggleList`,!0),this.saveStorage(`visible`,!0),this.ensurePosition(),elementorCommon.elements.$window.on(`resize`,this.ensurePosition)}},{key:`close`,value:function close(r){this.$el.hide(),this.isDocked&&this.undock(!0),r||this.saveStorage(`visible`,!1),this.$el.resizable(`instance`)&&this.$el.resizable(`destroy`),elementorCommon.elements.$window.off(`resize`,this.ensurePosition)}},{key:`isOpen`,value:function isOpen(){return this.$el.is(`:visible`)}},{key:`dock`,value:function dock(){elementorCommon.elements.$body.addClass(`elementor-navigator-docked`),this.setSize();var r=this.getResizableOptions();this.$el.css({height:``,top:``,bottom:``,left:``,right:``}),this.$el.resizable(`instance`)&&this.$el.resizable(`destroy`),r.handles=elementorCommon.config.isRTL?`e`:`w`,this.$el.resizable(r),this.isDocked=!0,this.saveStorage(`docked`,!0)}},{key:`undock`,value:function undock(r){elementorCommon.elements.$body.removeClass(`elementor-navigator-docked`),this.setSize(),elementor.$previewWrapper.css(elementorCommon.config.isRTL?`left`:`right`,``),this.$el.resizable(`instance`)&&(this.$el.resizable(`destroy`),this.$el.resizable(this.getResizableOptions())),this.isDocked=!1,r||this.saveStorage(`docked`,!1)}},{key:`setSize`,value:function setSize(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;r?this.storage.size.width=r:this.storage.size.width=this.storage.size.width||elementorCommon.elements.$body.css(`--e-editor-navigator-width`),elementorCommon.elements.$body.css(`--e-editor-navigator-width`,this.storage.size.width),this.$el.css(`width`,``)}},{key:`ensurePosition`,value:function ensurePosition(){if(!this.isDocked){var r=this.$el.offset();r.left>innerWidth&&this.$el.css({left:``,right:``}),r.top>innerHeight&&this.$el.css({top:``,bottom:``})}}},{key:`onDrag`,value:function onDrag(r,c){if(this.isDocked){if(c.position.left===c.originalPosition.left){if(c.position.top!==c.originalPosition.top)return!1}else this.undock();return}0>c.position.top&&(c.position.top=0);var l=0>c.position.left,u=c.position.left+this.el.offsetWidth>innerWidth;elementorCommon.config.isRTL?u&&(c.position.left=innerWidth-this.el.offsetWidth):l&&(c.position.left=0),elementorCommon.elements.$body.toggleClass(`elementor-navigator--dock-hint`,elementorCommon.config.isRTL?l:u)}},{key:`onDragStop`,value:function onDragStop(r,c){if(!this.isDocked){this.saveSize();var l=c.position.left+this.el.offsetWidth;(0>c.position.left||l>innerWidth)&&this.dock(),elementorCommon.elements.$body.removeClass(`elementor-navigator--dock-hint`)}}},{key:`onEditModeSwitched`,value:function onEditModeSwitched(r){[`edit`,`picker`].includes(r)&&this.storage.visible?this.open():this.close(!0)}},{key:`onDocumentLoaded`,value:function onDocumentLoaded(r){r.config.panel.has_elements&&(this.initLayout(),!1!==this.storage.visible&&!elementor.config.starter&&$e.route(`navigator`))}},{key:`onDocumentUnloaded`,value:function onDocumentUnloaded(){this.component.isOpen&&this.component.close(!0)}}])}(xl());b(),w(),E(),D(),A();function _callSuper$134(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$134()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$134,`_callSuper`);function _isNativeReflectConstruct$134(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$134=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$134,`_isNativeReflectConstruct`);var Cl=function(r){function _default(){return _classCallCheck(this,_default),_callSuper$134(this,_default,arguments)}return _inherits(_default,r),_createClass(_default,[{key:`getDefaultSettings`,value:function getDefaultSettings(){return{selectors:{notice:`#e-notice-bar`,close:`#e-notice-bar__close`}}}},{key:`getDefaultElements`,value:function getDefaultElements(){var r=this.getSettings();return{$notice:jQuery(r.selectors.notice),$close:jQuery(r.selectors.close)}}},{key:`bindEvents`,value:function bindEvents(){this.elements.$close.on(`click`,this.onCloseClick.bind(this))}},{key:`onCloseClick`,value:function onCloseClick(){this.elements.$notice.slideUp(),elementorCommon.ajax.addRequest(`notice_bar_dismiss`)}}])}(elementorModules.ViewModule);function _callSuper$133(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$133()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$133(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$133=function _isNativeReflectConstruct(){return!!r})()}var wl,Tl=__esmMin((()=>{b(),w(),E(),D(),A(),Nn(),kn(),__name(_callSuper$133,`_callSuper`),__name(_isNativeReflectConstruct$133,`_isNativeReflectConstruct`),wl=function(r){function AddSectionView(){return _classCallCheck(this,AddSectionView),_callSuper$133(this,AddSectionView,arguments)}return _inherits(AddSectionView,r),_createClass(AddSectionView,[{key:`id`,get:function get(){return`elementor-add-new-section`}},{key:`onCloseButtonClick`,value:function onCloseButtonClick(){Dn.sendCanvasEmptyBoxAction({targetName:`close`,containerCreated:!1}),this.closeSelectPresets()}}])}(Mn)})),El=__commonJSMin(((r,c)=>{var l=Un(),u,p=Bn().getAllElementTypes;u=l.extend({getChildView:function getChildView(r){var c=r.get(`elType`),l=elementor.elementsManager.getElementTypeClass(c);if(!l)throw Error(`Element type "${c}" is not registered.`);return l.getView()},behaviors:function behaviors(){var r={Sortable:{behaviorClass:Gn(),elChildType:`section`}};return elementor.hooks.applyFilters(`elements/base-section-container/behaviors`,r,this)},getSortableOptions:function getSortableOptions(){return{handle:`> .elementor-element-overlay .elementor-editor-element-edit`,items:`> .elementor-section, > .e-con`}},getChildType:function getChildType(){return p()},initialize:function initialize(){l.prototype.initialize.apply(this,arguments),this.listenTo(elementor.channels.panelElements,`element:drag:start`,this.onPanelElementDragStart).listenTo(elementor.channels.panelElements,`element:drag:end`,this.onPanelElementDragEnd)},onPanelElementDragStart:function onPanelElementDragStart(){this.$el.find(`.elementor-background-video-embed`).hide(),elementor.helpers.disableElementEvents(this.$el.find(`iframe`))},onPanelElementDragEnd:function onPanelElementDragEnd(){this.$el.find(`.elementor-background-video-embed`).show(),elementor.helpers.enableElementEvents(this.$el.find(`iframe`))}}),c.exports=u})),Dl=__commonJSMin(((c,l)=>{P(),Tl();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var u=El(),p=Bn().isCompoundAtomicType;l.exports=u.extend({initialize:function initialize(){this.$childViewContainer=jQuery(`<div>`,{class:`elementor-section-wrap`}),this.config={allowEdit:!0},u.prototype.initialize.apply(this,arguments)},setConfig:function setConfig(r){this.config=Object.assign(this.config,r)},getChildViewContainer:function getChildViewContainer(){return this.$childViewContainer},behaviors:function behaviors(){var r=u.prototype.behaviors.apply(this,arguments),c={contextMenu:{behaviorClass:jn(),groups:this.getContextMenuGroups()}};return jQuery.extend(r,c)},getContainer:function getContainer(){return elementor.settings.page.getEditedView().getContainer()},getContextMenuGroups:function getContextMenuGroups(){var c=this,l=function hasContent(){return elementor.elements.length>0};return[{name:`paste`,actions:[{name:`paste`,title:(0,r.__)(`Paste`,`elementor`),isEnabled:function isEnabled(){return $e.components.get(`document/elements`).utils.isPasteEnabled(c.getContainer())},callback:function callback(r){return $e.run(`document/ui/paste`,{container:c.getContainer(),options:{at:r,rebuild:!0}})}}]},{name:`content`,actions:[{name:`copy_all_content`,title:(0,r.__)(`Copy All Content`,`elementor`),isEnabled:l,callback:function callback(){return $e.run(`document/elements/copy-all`)}},{name:`delete_all_content`,title:(0,r.__)(`Delete All Content`,`elementor`),isEnabled:l,callback:function callback(){return $e.run(`document/elements/empty`)}}]}]},createElementFromModel:function createElementFromModel(r){var c,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return u.prototype.createElementFromModel.call(this,r,_objectSpread(_objectSpread({},l),{},{shouldWrap:([`widget`,`section`,`column`].includes(r.elType)||p(r.elType))&&!((c=r.widgetType)!=null&&c.startsWith(`e-form-`))}))},addElementFromPanel:function addElementFromPanel(r){if(!(!this.config.allowEdit||elementor.helpers.maybeDisableWidget())){var c=!!elementorCommon.config.experimentalFeatures.container,l=elementor.channels.panelElements.request(`element:selected`),u=$e.internal(`document/history/start-log`,{type:`add`,title:elementor.helpers.getModelLabel(l.model)}),p=$e.run(`document/elements/create`,{model:{elType:c?`container`:`section`},container:elementor.getPreviewContainer(),columns:1,options:_objectSpread({at:this.getOption(`at`)},r)});c?l.model.get(`elType`)!==`container`&&p.view.addElementFromPanel(r):p.view.children.findByIndex(0).addElementFromPanel(r),$e.internal(`document/history/end-log`,{id:u})}},shouldRenderAddNewSectionArea:function shouldRenderAddNewSectionArea(){return this.config.allowEdit&&elementor.userCan(`design`)},onRender:function onRender(){if(this.$el.html(this.$childViewContainer),this.shouldRenderAddNewSectionArea()){var r=new wl;r.render(),this.$el.append(r.$el)}}})})),Ol=__commonJSMin(((r,c)=>{var l=z();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.inputs=`[type="radio"]`,r},events:function events(){return _.extend(l.prototype.events.apply(this,arguments),{"mousedown label":`onMouseDownLabel`,"click @ui.inputs":`onClickInput`,"change @ui.inputs":`onBaseInputChange`})},updatePlaceholder:function updatePlaceholder(){var r=this.getControlPlaceholder();!this.getControlValue()&&r?this.ui.inputs.filter(`[value="${this.getControlPlaceholder()}"]`).addClass(`e-choose-placeholder`):this.ui.inputs.removeClass(`e-choose-placeholder`)},onReady:function onReady(){this.updatePlaceholder()},applySavedValue:function applySavedValue(){var r=this.getControlValue();r?this.ui.inputs.filter(`[value="`+r+`"]`).prop(`checked`,!0):this.ui.inputs.filter(`:checked`).prop(`checked`,!1)},onMouseDownLabel:function onMouseDownLabel(r){var c=this.$(r.currentTarget),l=this.$(`#`+c.attr(`for`));l.data(`checked`,l.prop(`checked`))},onClickInput:function onClickInput(r){if(this.model.get(`toggle`)){var c=this.$(r.currentTarget);c.data(`checked`)&&c.prop(`checked`,!1).trigger(`change`)}},onBaseInputChange:function onBaseInputChange(){l.prototype.onBaseInputChange.apply(this,arguments),this.updatePlaceholder()}},{onPasteStyle:function onPasteStyle(r,c){return c===``||r.options[c]!==void 0}})})),kl=__toESM(Dl());N(),M(),b(),w(),E(),D(),A();function _callSuper$132(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$132()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$132,`_callSuper`);function _isNativeReflectConstruct$132(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$132=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$132,`_isNativeReflectConstruct`);var Al=Ol(),jl=function(c){function ControlPopoverStarterView(){return _classCallCheck(this,ControlPopoverStarterView),_callSuper$132(this,ControlPopoverStarterView,arguments)}return _inherits(ControlPopoverStarterView,c),_createClass(ControlPopoverStarterView,[{key:`ui`,value:function ui(){var r=Al.prototype.ui.apply(this,arguments);return r.popoverToggle=`.elementor-control-popover-toggle-toggle`,r.resetInput=`.elementor-control-popover-toggle-reset`,r}},{key:`events`,value:function events(){return _.extend(Al.prototype.events.apply(this,arguments),{"click @ui.popoverToggle":`onPopoverToggleClick`,"click @ui.resetInput":`onResetInputClick`})}},{key:`onShow`,value:function onShow(){var r=this,c=this.$el.next(`.elementor-controls-popover`);c.length&&(c[0].dataset.popoverToggle=`elementor-control-default-${this.model.cid}`,c.on(`hide`,function(){return r.onPopoverHide()}),c.attr(`data-on-hide`,!0))}},{key:`onPopoverHide`,value:function onPopoverHide(){this.reRoute(!1)}},{key:`onResetInputClick`,value:function onResetInputClick(){var r=this.model.get(`global`);r!=null&&r.active&&this.triggerMethod(`value:type:change`)}},{key:`onInputChange`,value:function onInputChange(r){r.currentTarget===this.ui.popoverToggle[0]&&(this.getGlobalKey()?this.triggerMethod(`unset:global:value`):this.isGlobalActive()&&this.triggerMethod(`value:type:change`))}},{key:`onPopoverToggleClick`,value:function onPopoverToggleClick(){var r=this;this.isGlobalActive()&&!this.getControlValue()&&!this.getGlobalKey()&&this.getGlobalDefault()&&this.triggerMethod(`unlink:global:default`);var c=this.$el.next(`.elementor-controls-popover`);c.attr(`data-on-hide`)||(c.attr(`data-on-hide`,!0),c.on(`hide`,function(){return r.onPopoverHide()})),c.is(`:visible`)?(c.hide(),c.trigger(`hide`)):this.reRoute(!0)}},{key:`activate`,value:function activate(){this.$el.next(`.elementor-controls-popover`).show()}},{key:`getGlobalCommand`,value:function getGlobalCommand(){return`globals/typography`}},{key:`buildPreviewItemCSS`,value:function buildPreviewItemCSS(r){var c={};return Object.entries(r).forEach(function(r){var l=_slicedToArray(r,2),u=l[0],p=l[1];!p||p.size===``||(u.startsWith(`typography_`)&&(u=u.replace(`typography_`,``)),u===`font_family`&&elementor.helpers.enqueueFont(p,`editor`),u===`font_size`?c.fontSize=`min(${p.unit===`custom`?p.size:`${p.size}${p.unit}`}, 28px)`:(u.includes(`_`)&&(u=u.replace(/([_][a-z])/g,function(r){return r.toUpperCase().replace(`_`,``)})),c[u]=p))}),c}},{key:`createGlobalItemMarkup`,value:function createGlobalItemMarkup(r){var c=jQuery(`<div>`,{class:`e-global__preview-item e-global__typography`,"data-global-id":r.id,title:r.title});return c.html(_.escape(r.title)).css(this.buildPreviewItemCSS(r.value)),c}},{key:`getGlobalMeta`,value:function getGlobalMeta(){return{commandName:this.getGlobalCommand(),key:this.model.get(`name`),title:(0,r.__)(`New Typography Setting`,`elementor`),controlType:`typography`,route:`panel/global/global-typography`}}},{key:`getAddGlobalConfirmMessage`,value:function getAddGlobalConfirmMessage(){var c=this.getGlobalMeta(),l=jQuery(`<div>`,{class:`e-global__confirm-message`}),u=jQuery(`<div>`).html((0,r.__)(`Are you sure you want to create a new Global Font setting?`,`elementor`)),p=jQuery(`<div>`,{class:`e-global__confirm-input-wrapper`}),m=jQuery(`<input>`,{type:`text`,name:`global-name`,placeholder:c.title}).val(c.title);return p.append(m),l.append(u,p),l}},{key:`createHeaderItemMarkup`,value:function createHeaderItemMarkup(r){return jQuery(`<div>`,{class:`e-global__group-header`}).text(r)}},{key:`createDividerMarkup`,value:function createDividerMarkup(){return jQuery(`<div>`,{class:`e-global__group-divider`})}},{key:`getGlobalsList`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(){var r;return B.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=1,$e.data.get(this.getGlobalCommand());case 1:return r=c.sent,c.abrupt(`return`,r.data);case 2:case`end`:return c.stop()}},_callee,this)}));function getGlobalsList(){return r.apply(this,arguments)}return getGlobalsList}()},{key:`buildGlobalsList`,value:function buildGlobalsList(c,l){var u=this,p=[],m=[];Object.values(c).forEach(function(r){r&&(r.group===`v4`?p.push(r):m.push(r))}),p.length&&(l.append(this.createHeaderItemMarkup((0,r.__)(`Atomic Classes`,`elementor`))),p.forEach(function(r){l.append(u.createGlobalItemMarkup(r))}),m.length&&(l.append(this.createDividerMarkup()),l.append(this.createHeaderItemMarkup((0,r.__)(`Global Fonts`,`elementor`))))),m.forEach(function(r){l.append(u.createGlobalItemMarkup(r))})}},{key:`onAddGlobalButtonClick`,value:function onAddGlobalButtonClick(){this.triggerMethod(`add:global:to:list`,this.getAddGlobalConfirmMessage())}}])}(Al);jl.onPasteStyle=function(r,c){return!c||c===r.return_value},b(),w(),E(),D(),A(),P();function _createForOfIteratorHelper$2(r,c){var l=typeof Symbol<`u`&&r[Symbol.iterator]||r[`@@iterator`];if(!l){if(Array.isArray(r)||(l=_unsupportedIterableToArray$2(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.
31 31 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$2,`_createForOfIteratorHelper`);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 _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 _callSuper$131(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$131()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$131,`_callSuper`);function _isNativeReflectConstruct$131(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$131=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$131,`_isNativeReflectConstruct`);var Ml=function(r){function Manager(){var r;return _classCallCheck(this,Manager),r=_callSuper$131(this,Manager),_defineProperty(r,`elements`,{}),_defineProperty(r,`type`,!1),_possibleConstructorReturn(r,new Proxy(r,{get:function get(r,c){return[`add`,`remove`].includes(c)?function(){if(r.isAllowed()){var l=r[c].apply(r,arguments);return r.updateType(),r.updateSortable(),r.updatePanelPage(),r.updateNavigator(),l}}:Reflect.get.apply(Reflect,arguments)}}))}return _inherits(Manager,r),_createClass(Manager,[{key:`getElements`,value:function getElements(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,c=Object.values(this.elements);return!c.length&&r&&(c=Array.isArray(r)?r:[r]),c}},{key:`add`,value:function add(r){var c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(this.isAllowed()){r=Array.isArray(r)?r:[r],c||this.remove([],!0);var l=_createForOfIteratorHelper$2(r),u;try{for(l.s();!(u=l.n()).done;){var p=u.value;this.elements[p.id]=p,p.view.select()}}catch(r){l.e(r)}finally{l.f()}}}},{key:`remove`,value:function remove(r){var c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(this.isAllowed()){r=Array.isArray(r)?r:[r],c&&(r=this.getElements());var l=_createForOfIteratorHelper$2(r),u;try{for(l.s();!(u=l.n()).done;){var p=u.value;delete this.elements[p.id],p.view.deselect()}}catch(r){l.e(r)}finally{l.f()}}}},{key:`has`,value:function has(r){return this.getElements().includes(r)}},{key:`updateType`,value:function updateType(){var r=this.getElements();this.type=!!r.length&&r.reduce(function(r,c){return r===c.type&&c.type},r[0].type)}},{key:`updateSortable`,value:function updateSortable(){elementor.toggleSortableState(!this.isMultiple())}},{key:`updatePanelPage`,value:function updatePanelPage(){var r=this.getElements();r.length===1?$e.run(`panel/editor/open`,{model:r[0].model,view:r[0].view}):$e.internal(`panel/open-default`,{autoFocusSearch:!1})}},{key:`updateNavigator`,value:function updateNavigator(){$e.components.get(`document/elements`).utils.showNavigator()&&elementor.navigator.getLayout().elements.currentView.recursiveChildInvoke(`updateSelection`)}},{key:`isMultiple`,value:function isMultiple(){return this.getElements().length>1}},{key:`isSameType`,value:function isSameType(){return!this.getElements().length||!!this.type}},{key:`isAllowed`,value:function isAllowed(){return elementor.channels.dataEditMode.request(`activeMode`)===`edit`}}])}(elementorModules.editor.utils.Module);b(),w(),E(),D(),A();function _callSuper$130(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$130()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$130,`_callSuper`);function _isNativeReflectConstruct$130(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$130=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$130,`_isNativeReflectConstruct`);var Nl=function(c){function LandingPageAddLibraryTab(){return _classCallCheck(this,LandingPageAddLibraryTab),_callSuper$130(this,LandingPageAddLibraryTab,arguments)}return _inherits(LandingPageAddLibraryTab,c),_createClass(LandingPageAddLibraryTab,[{key:`getCommand`,value:function getCommand(){return`editor/documents/open`}},{key:`getId`,value:function getId(){return`elementor-landing-pages-add-library-tab`}},{key:`getConditions`,value:function getConditions(r){return elementor.documents.get(r.id).config.type===`landing-page`}},{key:`apply`,value:function apply(){$e.components.get(`library`).addTab(`templates/landing-pages`,{title:(0,r.__)(`Landing Pages`,`elementor`),filter:{source:`remote`,type:`lp`}},2),$e.components.get(`library`).removeTab(`templates/pages`)}}])}($e.modules.hookUI.After);b(),w(),E(),D(),A();function _callSuper$129(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$129()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$129,`_callSuper`);function _isNativeReflectConstruct$129(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$129=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$129,`_isNativeReflectConstruct`);var Pl=function(r){function LandingPageRemoveLibraryTab(){return _classCallCheck(this,LandingPageRemoveLibraryTab),_callSuper$129(this,LandingPageRemoveLibraryTab,arguments)}return _inherits(LandingPageRemoveLibraryTab,r),_createClass(LandingPageRemoveLibraryTab,[{key:`getCommand`,value:function getCommand(){return`editor/documents/unload`}},{key:`getId`,value:function getId(){return`elementor-landing-pages-remove-library-tab`}},{key:`getConditions`,value:function getConditions(r){return r.document.config.type===`landing-page`}},{key:`apply`,value:function apply(){$e.components.get(`library`).removeTab(`templates/landing-pages`),$e.components.get(`library`).addTab(`templates/pages`)}}])}($e.modules.hookUI.After),Fl=__exportAll({LandingPageAddLibraryTab:()=>Nl,LandingPageRemoveLibraryTab:()=>Pl});b(),w(),E(),D(),A();function _callSuper$128(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$128()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$128,`_callSuper`);function _isNativeReflectConstruct$128(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$128=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$128,`_isNativeReflectConstruct`);var Il=function(r){function LandingPageComponent(){return _classCallCheck(this,LandingPageComponent),_callSuper$128(this,LandingPageComponent,arguments)}return _inherits(LandingPageComponent,r),_createClass(LandingPageComponent,[{key:`getNamespace`,value:function getNamespace(){return`document/landing-page`}},{key:`defaultHooks`,value:function defaultHooks(){return this.importHooks(Fl)}}])}($e.modules.ComponentBase);b(),w(),E(),D(),A();function _callSuper$127(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$127()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$127,`_callSuper`);function _isNativeReflectConstruct$127(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$127=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$127,`_isNativeReflectConstruct`);var Ll=function(r){function LandingPageLibraryModule(){return _classCallCheck(this,LandingPageLibraryModule),_callSuper$127(this,LandingPageLibraryModule,arguments)}return _inherits(LandingPageLibraryModule,r),_createClass(LandingPageLibraryModule,[{key:`onElementorLoaded`,value:function onElementorLoaded(){this.component=$e.components.register(new Il({manager:this}))}}])}(elementorModules.editor.utils.Module);P(),b(),w(),E(),D(),A();function _callSuper$126(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$126()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$126,`_callSuper`);function _isNativeReflectConstruct$126(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$126=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$126,`_isNativeReflectConstruct`);var Rl=function(c){function Apply(){return _classCallCheck(this,Apply),_callSuper$126(this,Apply,arguments)}return _inherits(Apply,c),_createClass(Apply,[{key:`validateArgs`,value:function validateArgs(r){this.requireArgumentType(`value`,`string`,r)}},{key:`apply`,value:function apply(c){var l=c.value,u=c.trigger;if(this.setColor(l),u){var p=u.swatch.dataset.text;u.swatch.dataset.text=(0,r.__)(`Selected`,`elementor`),setTimeout(function(){u.swatch.dataset.text=p},1e3),u.palette.addEventListener(`mouseleave`,function handler(r){r.currentTarget.removeEventListener(`mouseleave`,handler),$e.run(`elements-color-picker/end`)})}else $e.run(`elements-color-picker/end`)}},{key:`setColor`,value:function setColor(r){$e.run(`document/elements/settings`,{container:this.component.currentPicker.container,settings:_defineProperty({},this.component.currentPicker.control,r),options:{external:!0}}),this.component.currentPicker.initialColor=r}}])}($e.modules.CommandBase);M();var zl=function addNamespaceHandler(r,c,l){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=_slicedToArray(c.split(`.`),1)[0];Symbol.iterator in Object(r)||(r=[r]),r.forEach(function(r){r.nsEvents||(r.nsEvents={}),r.addEventListener(p,l,u),r.nsEvents[c]=l})},Bl=function removeNamespaceHandler(r,c){var l=_slicedToArray(c.split(`.`),1)[0];Symbol.iterator in Object(r)||(r=[r]),r.forEach(function(r){var u,p;r.removeEventListener(l,(u=r.nsEvents)==null?void 0:u[c]),(p=r.nsEvents)==null||delete p[c]})};b(),w(),E(),D(),A();function _callSuper$125(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$125()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$125,`_callSuper`);function _isNativeReflectConstruct$125(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$125=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$125,`_isNativeReflectConstruct`);var Vl=function(r){function End(){return _classCallCheck(this,End),_callSuper$125(this,End,arguments)}return _inherits(End,r),_createClass(End,[{key:`apply`,value:function apply(){var r;this.component.inactivate(),elementor.$previewContents[0].querySelectorAll(`.e-element-color-picker`).forEach(function(r){jQuery(r).tipsy(`hide`),r.remove()}),Bl(elementor.$previewContents[0].querySelectorAll(`.elementor-element`),`click.color-picker`),Bl(elementor.$previewWrapper[0],`mouseleave.color-picker`),(r=this.component.currentPicker.trigger)==null||r.classList.remove(`e-control-tool-disabled`),this.component.resetPicker(),$e.uiStates.remove(`elements-color-picker/color-picking`)}}])}($e.modules.CommandBase);b(),w(),E(),D(),A();function _callSuper$124(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$124()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$124,`_callSuper`);function _isNativeReflectConstruct$124(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$124=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$124,`_isNativeReflectConstruct`);var Hl=function(r){function EnterPreview(){return _classCallCheck(this,EnterPreview),_callSuper$124(this,EnterPreview,arguments)}return _inherits(EnterPreview,r),_createClass(EnterPreview,[{key:`apply`,value:function apply(r){this.component.renderUI(r.value)}}])}($e.modules.CommandBase);b(),w(),E(),D(),A();function _callSuper$123(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$123()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$123,`_callSuper`);function _isNativeReflectConstruct$123(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$123=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$123,`_isNativeReflectConstruct`);var Ul=function(r){function ExitPreview(){return _classCallCheck(this,ExitPreview),_callSuper$123(this,ExitPreview,arguments)}return _inherits(ExitPreview,r),_createClass(ExitPreview,[{key:`apply`,value:function apply(){var r=this.component.currentPicker.initialColor;r!==null&&this.component.renderUI(r)}}])}($e.modules.CommandBase),Wl=function rgbToHex(r,c,l){return`#`+[r,c,l].map(function(r){var c=r.toString(16);return c.length===1?`0`+c:c}).join(``)};M(),b(),w(),E(),D(),A();function _callSuper$122(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$122()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}__name(_callSuper$122,`_callSuper`);function _isNativeReflectConstruct$122(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$122=function _isNativeReflectConstruct(){return!!r})()}__name(_isNativeReflectConstruct$122,`_isNativeReflectConstruct`);var Gl=function(c){function ShowSwatches(r){var c;return _classCallCheck(this,ShowSwatches),c=_callSuper$122(this,ShowSwatches,[r]),c.colors={},c.classes={picker:`e-element-color-picker`,tooltip:`e-element-color-picker__tooltip`,swatch:`e-element-color-picker__swatch`,hidden:`e-picker-hidden`},c.selectors={picker:`.${c.classes.picker}`,tooltip:`.${c.classes.tooltip}`},c.container=null,c.backgroundImages=[],c}return _inherits(ShowSwatches,c),_createClass(ShowSwatches,[{key:`validateArgs`,value:function validateArgs(r){this.requireArgument(`event`,r)}},{key:`apply`,value:function apply(r){var c=this,l=r.event,u=l.currentTarget.dataset.id,p=l.currentTarget.getBoundingClientRect(),m=Math.round(l.clientX-p.left)+`px`,h=Math.round(l.clientY-p.top)+`px`;this.container=elementor.getContainer(u);var g=elementor.$previewContents[0].querySelector(this.selectors.picker);g&&(this.removeTooltip(g),g.remove()),l.stopPropagation(),setTimeout(function(){l.target.tagName.toLowerCase()===`img`?c.extractColorsFromImage(l.target):(c.extractColorsFromSettings(),c.extractColorsFromRepeaters(),c.extractColorsFromImages()),c.initSwatch(m,h)},100)}},{key:`extractColorsFromSettings`,value:function extractColorsFromSettings(){var r=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.container;Object.keys(c.settings.attributes).map(function(l){var u;if(!r.reachedColorsLimit()&&l in c.controls){var p=((u=c.controls[l])==null?void 0:u.type)===`color`,m=l.includes(`background_image`);if(!(!p&&!m)&&function isActive(){return elementor.helpers.isActiveControl(c.controls[l],c.settings.attributes,c.settings.controls)}()){if(m){r.addTempBackgroundImage(c.getSetting(l));return}var h=c.getSetting(l),g=c.globals.get(l);if(g){var v=g.match(/id=(.+)/i);if(v){var y=`--e-global-color-${v[1]}`;h=getComputedStyle(c.view.$el[0]).getPropertyValue(y)}}h&&!Object.values(r.colors).includes(h)&&(r.colors[`${c.id} - ${l}`]=h)}}})}},{key:`extractColorsFromRepeaters`,value:function extractColorsFromRepeaters(){var r=this;Object.values(this.container.repeaters).forEach(function(c){c.children.forEach(function(c){r.extractColorsFromSettings(c)})})}},{key:`addTempBackgroundImage`,value:function addTempBackgroundImage(r){var c=r.url;if(c){var l=document.createElement(`img`);l.src=c,this.backgroundImages.push(l)}}},{key:`extractColorsFromImage`,value:function extractColorsFromImage(r){var c=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,u=new ColorThief,p;try{p=u.getPalette(r)}catch(r){return}p.forEach(function(r,u){if(!c.reachedColorsLimit()){var p=Wl(r[0],r[1],r[2]);Object.values(c.colors).includes(p)||(c.colors[`palette-${l}-${u}`]=p)}})}},{key:`extractColorsFromImages`,value:function extractColorsFromImages(){var r=this;this.backgroundImages.forEach(function(c,l){r.extractColorsFromImage(c,l)}),this.backgroundImages=[]}},{key:`addColorSwatches`,value:function addColorSwatches(r){var c=this;Object.entries(this.colors).forEach(function(l){var u=_slicedToArray(l,2)[1],p=document.createElement(`div`);p.classList.add(c.classes.swatch),p.style=`--color: ${u}`,p.dataset.text=u.replace(`#`,``),p.addEventListener(`mouseenter`,function(){$e.run(`elements-color-picker/enter-preview`,{value:u})}),p.addEventListener(`mouseleave`,function(){$e.run(`elements-color-picker/exit-preview`)}),p.addEventListener(`click`,function(c){$e.run(`elements-color-picker/apply`,{value:u,trigger:{palette:r,swatch:c.target}}),c.stopPropagation()}),r.append(p)})}},{key:`addTooltip`,value:function addTooltip(c){jQuery(c).tipsy({gravity:`s`,className:this.classes.tooltip,trigger:`manual`,title:function title(){return(0,r.__)(`Select a color from any image, or from an element whose color you've manually defined.`,`elementor`)}}).tipsy(`show`);var l=document.querySelector(this.selectors.tooltip);elementor.$previewWrapper[0].appendChild(l),l.style.pointerEvents=`none`}},{key:`removeTooltip`,value:function removeTooltip(r){jQuery(r).tipsy(`hide`)}},{key:`initSwatch`,value:function initSwatch(){var r=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=Object.entries(this.colors).length,p=document.createElement(`div`);p.dataset.count=u,p.classList.add(this.classes.picker,this.classes.hidden),p.style=`
32 32 --count: ${u};
33 33 --left: ${c};
34 34 --top: ${l};
@@ -170,9 +170,9 @@
170 170 <path d="M60.9419 45.4443L60.9419 1.56836" stroke="#515962" stroke-dasharray="3 3"/>
171 171 <path d="M30.9419 45.4443L30.9419 1.56836" stroke="#515962" stroke-dasharray="3 3"/>
172 172 </svg>
173 173 `}[r]},getContainerGridPresets:function getContainerGridPresets(){return[`1-2`,`2-1`,`1-3`,`3-1`,`2-2`,`2-3`]}}}));function _callSuper$28(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$28()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$28(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$28=function _isNativeReflectConstruct(){return!!r})()}var fp,pp=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$28,`_callSuper`),__name(_isNativeReflectConstruct$28,`_isNativeReflectConstruct`),fp=function(r){function InsertTemplate(){return _classCallCheck(this,InsertTemplate),_callSuper$28(this,InsertTemplate,arguments)}return _inherits(InsertTemplate,r),_createClass(InsertTemplate,[{key:`apply`,value:function apply(r){return this.component.insertTemplate(r)}}])}($e.modules.CommandBase)}));function _callSuper$27(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$27()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$27(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$27=function _isNativeReflectConstruct(){return!!r})()}var mp,hp=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$27,`_callSuper`),__name(_isNativeReflectConstruct$27,`_isNativeReflectConstruct`),mp=function(r){function Open(){return _classCallCheck(this,Open),_callSuper$27(this,Open,arguments)}return _inherits(Open,r),_createClass(Open,[{key:`apply`,value:function apply(r){return this.component.show(r)}}])}($e.modules.CommandBase)})),gp=__exportAll({InsertTemplate:()=>fp,Open:()=>mp}),_p=__esmMin((()=>{pp(),hp()}));function _callSuper$26(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$26()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$26(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$26=function _isNativeReflectConstruct(){return!!r})()}var vp,yp=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$26,`_callSuper`),__name(_isNativeReflectConstruct$26,`_isNativeReflectConstruct`),vp=function(r){function Templates(){return _classCallCheck(this,Templates),_callSuper$26(this,Templates,arguments)}return _inherits(Templates,r),_createClass(Templates,null,[{key:`getEndpointFormat`,value:function getEndpointFormat(){return`template-library/templates`}}])}($e.modules.CommandData)})),bp=__exportAll({Templates:()=>vp}),xp=__esmMin((()=>{yp()})),Q,Sp,Cp,Tp=__esmMin((()=>{Q=Object.freeze({SAVE:`save`,MOVE:`move`,COPY:`copy`,BULK_MOVE:`bulkMove`,BULK_COPY:`bulkCopy`}),Sp=Object.freeze({warning:(0,r.__)(`You've saved %1$d%% of the templates in your plan. To get more space `,`elementor`)+`<a href="https://go.elementor.com/go-pro-cloud-templates-usage-bar-80" target="_blank">`+(0,r.__)(`Upgrade now`,`elementor`)+`</a>`,alert:(0,r.__)(`You've saved %1$d%% of the templates in your plan. To get more space `,`elementor`)+`<a href="https://go.elementor.com/go-pro-cloud-templates-usage-bar-100" target="_blank">`+(0,r.__)(`Upgrade now`,`elementor`)+`</a>`}),Cp=Object.freeze({NORMAL:`normal`,WARNING:`warning`,ALERT:`alert`})}));function showGlobalStylesDialog(){return new Promise(function(r,c){var l=!1,u=elementorCommon.dialogsManager.createWidget(`lightbox`,{id:`elementor-global-styles-dialog`,headerMessage:``,message:wp.template(`elementor-global-styles-dialog`)(),position:{my:`center`,at:`center`},hide:{onBackgroundClick:!1},onShow:function onShow(){setupDialogEventListeners(u,function(c){l||(l=!0,r(c),u.hide())},function(r){l||(l=!0,c(r),u.hide())})},onHide:function onHide(){l||(l=!0,c(Error(`Dialog closed`)))}});u.show()})}function setupDialogEventListeners(r,c,l){var u=r.getElements(`message`),p=u.find(`#elementor-global-styles-match`),m=u.find(`#elementor-global-styles-keep`),h=u.find(`#elementor-global-styles-create`),g=u.find(`.elementor-global-styles-dialog__checkbox-container`),v=u.find(`#elementor-global-styles-insert`),y=u.find(`#elementor-global-styles-cancel`);p.off(`.elementorGlobalStyles`).on(`change.elementorGlobalStyles`,function(){g.hide()}),m.off(`.elementorGlobalStyles`).on(`change.elementorGlobalStyles`,function(){g.show()}),v.off(`.elementorGlobalStyles`).on(`click.elementorGlobalStyles`,function(){c({mode:p.is(`:checked`)?`match_site`:h.is(`:checked`)?`keep_create`:`keep_flatten`})}),y.off(`.elementorGlobalStyles`).on(`click.elementorGlobalStyles`,function(){l(Error(`User cancelled`))})}var Ep=__esmMin((()=>{})),Dp=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-template-library-header-actions`,id:`elementor-template-library-header-actions`,ui:{import:`#elementor-template-library-header-import`,importIcon:`#elementor-template-library-header-import i`,sync:`#elementor-template-library-header-sync`,syncIcon:`#elementor-template-library-header-sync i`,save:`#elementor-template-library-header-save`,saveIcon:`#elementor-template-library-header-save i`},events:{"click @ui.import":`onImportClick`,"click @ui.sync":`onSyncClick`,"click @ui.save":`onSaveClick`},onImportClick:function onImportClick(){$e.route(`library/import`)},onRender:function onRender(){var r,c=(r=$e.components.get(`library`).currentTab)==null?``:r;this.ui.import.toggleClass(`elementor-hidden`,c!==`templates/my-templates`)},onSyncClick:function onSyncClick(){var r=this;r.ui.syncIcon.addClass(`eicon-animation-spin`),elementor.templates.requestLibraryData({onUpdate:function onUpdate(){r.ui.syncIcon.removeClass(`eicon-animation-spin`),$e.routes.refreshContainer(`library`)},forceUpdate:!0,forceSync:!0})},onSaveClick:function onSaveClick(){$e.route(`library/save-template`)}})}));function rovingTabindex(r){var c=r.event,l=r.$items,u=r.orientation,p=u===void 0?`horizontal`:u,m=r.wrap,h=m===void 0||m,g=r.activateOnFocus,v=g!==void 0&&g,y=r.onActivate,b=r.homeEnd,x=b===void 0||b,S=l.index(c.currentTarget)===-1?c.target:c.currentTarget,C=l.index(S),w=C,T=p===`horizontal`||p===`both`,E=p===`vertical`||p===`both`;switch(c.key){case`ArrowLeft`:case`ArrowUp`:if(c.key===`ArrowLeft`&&!T||c.key===`ArrowUp`&&!E)return!1;c.preventDefault(),w=C>0?C-1:h?l.length-1:C;break;case`ArrowRight`:case`ArrowDown`:if(c.key===`ArrowRight`&&!T||c.key===`ArrowDown`&&!E)return!1;c.preventDefault(),w=C<l.length-1?C+1:h?0:C;break;case`Home`:if(!x)return!1;c.preventDefault(),w=0;break;case`End`:if(!x)return!1;c.preventDefault(),w=l.length-1;break;case`Enter`:case` `:return c.preventDefault(),y&&y(c,l.eq(C)),!0;default:return!1}return w!==C&&(l.attr(`tabindex`,`-1`),l.eq(w).attr(`tabindex`,`0`).trigger(`focus`),v&&l.eq(w).trigger(`click`)),!0}function suppressEscapeKeyUp(r){r.stopPropagation();var c=function handler(r){r.key===`Escape`&&r.stopImmediatePropagation(),window.removeEventListener(`keyup`,c,!0)};window.addEventListener(`keyup`,c,!0)}function isEditableTarget(r){return!r||typeof r.matches!=`function`?!1:r.matches(Op)||!!r.closest(kp)}function isInsideOverlay(r){return!r||typeof r.closest!=`function`?!1:!!r.closest(Ap)}function getRenderedAnchor(r){for(var c=r;c&&((l=c.ownerDocument.defaultView)==null?void 0:l.getComputedStyle(c).display)===`contents`;){var l;c=c.firstElementChild}return c}function getEscapeAnchor(r){var c=r.closest(kp);return getRenderedAnchor(r.closest(jp)||(c?c.parentElement:r.parentElement))}function findNextFocusableAfter(r,c){var l=c.ownerDocument.createTreeWalker(c,NodeFilter.SHOW_ELEMENT);l.currentNode=r;for(var u=l.nextNode();u;){if(!r.contains(u)&&u.matches(Mp))return u;u=l.nextNode()}return null}function parkFocusOnAnchor(r,c){var l=r.hasAttribute(`tabindex`);if(l||r.setAttribute(`tabindex`,`-1`),r.focus({preventScroll:!0}),r.ownerDocument.activeElement!==r){l||r.removeAttribute(`tabindex`);return}var u=function onKeyDown(l){if(!(l.key!==`Tab`||l.shiftKey||l.defaultPrevented||l.target!==r)){var u=findNextFocusableAfter(r,c);u&&(l.preventDefault(),u.focus())}},p=function onFocusOut(c){c.relatedTarget&&r.contains(c.relatedTarget)||(r.removeEventListener(`keydown`,u),r.removeEventListener(`focusout`,p),l||r.removeAttribute(`tabindex`))};r.addEventListener(`keydown`,u),r.addEventListener(`focusout`,p)}function escapeFromPanelField(r,c){var l=typeof r.isDefaultPrevented==`function`?r.isDefaultPrevented():r.defaultPrevented;if(r.key!==`Escape`||l)return!1;var u=c.ownerDocument.activeElement;if(!isEditableTarget(u)||!c.contains(u)||isInsideOverlay(u))return!1;r.preventDefault(),r.stopPropagation();var p=getEscapeAnchor(u);return u.blur(),p&&parkFocusOnAnchor(p,c),!0}var Op,kp,Ap,jp,Mp,Np=__esmMin((()=>{Op=[`input:not([type="hidden"]):not([disabled])`,`textarea:not([disabled])`,`select:not([disabled])`,`[contenteditable="true"]`].join(`, `),kp=`.monaco-editor`,Ap=[`.dialog-widget`,`[role="dialog"]`,`.MuiModal-root`,`.MuiPopover-root`,`.MuiAutocomplete-popper`,`.select2-container--open`].join(`, `),jp=`.elementor-control, [data-type="settings-field"], [role="group"]`,Mp=[`a[href]`,`button:not([disabled])`,`input:not([disabled]):not([type="hidden"])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `)})),Pp=__commonJSMin(((c,l)=>{Np(),l.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-template-library-header-menu`,id:`elementor-template-library-header-menu`,ui:{tabs:`[role="tab"]`},events:{"keydown @ui.tabs":`onTabKeyDown`},templateHelpers:function templateHelpers(){return{tabs:$e.components.get(`library`).getTabs()}},attributes:function attributes(){return{role:`tablist`,"aria-label":(0,r.__)(`Library sections`,`elementor`)}},onTabKeyDown:function onTabKeyDown(r){rovingTabindex({event:r,$items:this.ui.tabs,orientation:`horizontal`,onActivate:function onActivate(){}});var c=jQuery(r.currentTarget.ownerDocument.activeElement).data(`tab`);if(c){var l=$e.components.get(`library`);if(l)try{l.activateTab(c);var u=jQuery(`#elementor-template-library-header-menu [data-tab="${c}"]`);u.length&&u.trigger(`focus`)}catch(r){console.error(`Tab activation failed:`,r)}}}})})),Fp=__commonJSMin(((r,c)=>{c.exports=Marionette.Behavior.extend({ui:{insertButton:`.elementor-template-library-template-insert`},events:{"click @ui.insertButton":`onInsertButtonClick`},onRender:function onRender(){this.ui.insertButton.toggleClass(`disabled`,this.view.model.isLocked())},onInsertButtonClick:function onInsertButtonClick(r){if(this.view.model.get(`status`)===`locked`){r.preventDefault(),r.stopPropagation();return}var c={model:this.view.model};this.ui.insertButton.addClass(`elementor-disabled`);var l=c.model.get(`source`);if(elementor.hooks.applyFilters(`templates/source/is-remote`,l===`remote`,l)&&!elementor.config.library_connect.is_connected){$e.route(`library/connect`,c);return}$e.run(`library/insert-template`,c)}})})),Ip=__commonJSMin(((r,c)=>{var l=Fp();c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-template-library-header-preview`,id:`elementor-template-library-header-preview`,behaviors:{insertTemplate:{behaviorClass:l}}})})),Lp=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-template-library-header-back`,id:`elementor-template-library-header-preview-back`,events:{"click .elementor-template-library-header-back-button":`onClick`},onClick:function onClick(){$e.routes.restoreState(`library`)}})}));function _callSuper$25(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$25()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$25(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$25=function _isNativeReflectConstruct(){return!!r})()}function _superPropGet$5(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 Rp,zp=__esmMin((()=>{b(),w(),E(),D(),k(),A(),__name(_callSuper$25,`_callSuper`),__name(_isNativeReflectConstruct$25,`_isNativeReflectConstruct`),__name(_superPropGet$5,`_superPropGet`),Rp=function(r){function Select2(){return _classCallCheck(this,Select2),_callSuper$25(this,Select2,arguments)}return _inherits(Select2,r),_createClass(Select2,[{key:`getDefaultSettings`,value:function getDefaultSettings(){return{selectors:{plusButton:`.select2-selection__e-plus-button`,select2InlineSearch:`.select2-selection__rendered .select2-search--inline`},classes:{plusButton:`select2-selection__e-plus-button`,select2Choice:`select2-selection__choice`}}}},{key:`isAllSelected`,value:function isAllSelected(){var r=this,c=!1;return this.select2.dataAdapter.query({},function(l){var u=l.results.length;r.elements.$element.select2(`data`).length===u&&(c=!0)}),c}},{key:`addPlusButton`,value:function addPlusButton(){var r=this.getSettings(`classes`),c=r.plusButton,l=[r.select2Choice,c].join(` `);this.elements.$plusButton=jQuery(`<li>`,{class:l}).text(`+`),this.elements.$plusButton.insertBefore(this.elements.$inlineSearch)}},{key:`togglePlusButton`,value:function togglePlusButton(){this.isAllSelected()?this.elements.$plusButton&&this.elements.$plusButton.remove():this.addPlusButton()}},{key:`addSelect2Events`,value:function addSelect2Events(){var r=this;this.select2.on(`select`,function(){return r.onSelectionChange()}),this.select2.on(`unselect`,function(){return r.onSelectionChange()})}},{key:`onSelectionChange`,value:function onSelectionChange(){this.togglePlusButton()}},{key:`extendBaseFunctionality`,value:function extendBaseFunctionality(){var r=this.select2.options.options;r.multiple&&!r.ajax&&(this.togglePlusButton(),this.addSelect2Events())}},{key:`initSelect2Elements`,value:function initSelect2Elements(){var r=this.getSettings(`selectors.select2InlineSearch`);this.elements.$element=this.select2.$element,this.elements.$container=this.select2.$container,this.elements.$inlineSearch=this.elements.$container.find(r)}},{key:`destroy`,value:function destroy(){this.elements.$element.select2(`destroy`)}},{key:`onInit`,value:function onInit(){for(var r=arguments.length,c=Array(r),l=0;l<r;l++)c[l]=arguments[l];_superPropGet$5(Select2,`onInit`,this,3)(c);var u=this.getSettings(),p=u.$element,m=u.options;this.select2=p.select2(m).data(`select2`),this.initSelect2Elements(),this.extendBaseFunctionality()}}])}(elementorModules.ViewModule)})),Bp=__exportAll({TIERS:()=>Hp,TIERS_PRIORITY:()=>Vp,isTierAtLeast:()=>Wp}),Vp,Hp,Wp,Gp=__esmMin((()=>{Vp=Object.freeze([`free`,`essential`,`essential-oct2023`,`advanced`,`expert`,`agency`]),Hp=Object.freeze(Vp.reduce(function(r,c){return r[c]=c,r},{})),Wp=function isTierAtLeast(r,c){var l=Vp.indexOf(r),u=Vp.indexOf(c);return l===-1||u===-1?!1:l>=u}})),Kp=__commonJSMin(((r,c)=>{var l=Fp(),u=(Gp(),__toCommonJS(Bp)),p=u.isTierAtLeast,m=u.TIERS;c.exports=Marionette.ItemView.extend({className:function className(){var r=`elementor-template-library-template`,c=this.model.get(`source`);return r+=` elementor-template-library-template-`+c,c===`remote`&&(r+=` elementor-template-library-template-`+this.model.get(`type`)),elementor.config.library_connect.base_access_tier!==this.model.get(`accessTier`)&&(r+=` elementor-template-library-pro-template`),elementor.hooks.applyFilters(`elementor/editor/template-library/template/classes`,r,this)},attributes:function attributes(){var r=elementor.config.library_connect.current_access_tier,c=this.model.get(`accessTier`);if(p(r,c))return{};var l=elementor.config.library_connect.subscription_plans,u=l[c];return r===m.free&&(u=l.essential),u?{style:`--elementor-template-library-subscription-plan-label: "${u.label}";--elementor-template-library-subscription-plan-color: ${u.color};`}:{}},ui:function ui(){return{previewButton:`.elementor-template-library-template-preview`}},events:function events(){return{"click @ui.previewButton":`onPreviewButtonClick`}},behaviors:function behaviors(){var r={insertTemplate:{behaviorClass:l}};return elementor.hooks.applyFilters(`elementor/editor/template-library/template/behaviors`,r,this)}})})),qp=__commonJSMin(((c,l)=>{N();var u=__toESM(R());Tp(),Np();var p=Kp();l.exports=p.extend({template:`#tmpl-elementor-template-library-template-local`,ui:function ui(){return _.extend(p.prototype.ui.apply(this,arguments),{bulkSelectionItemCheckbox:`.bulk-selection-item-checkbox`,deleteButton:`.elementor-template-library-template-delete`,renameButton:`.elementor-template-library-template-rename`,moveButton:`.elementor-template-library-template-move`,copyButton:`.elementor-template-library-template-copy`,exportButton:`.elementor-template-library-template-export`,morePopup:`.elementor-template-library-template-more`,toggleMore:`.elementor-template-library-template-more-toggle`,toggleMoreIcon:`.elementor-template-library-template-more-toggle i`,titleCell:`.elementor-template-library-template-name span`,resourceIcon:`.elementor-template-library-template-name i`})},events:function events(){return _.extend(p.prototype.events.apply(this,arguments),{click:`handleItemClicked`,"change @ui.bulkSelectionItemCheckbox":`onSelectBulkSelectionItemCheckbox`,"click @ui.deleteButton":`onDeleteButtonClick`,"click @ui.toggleMore":`onToggleMoreClick`,"keydown @ui.toggleMore":`onToggleMoreKeyDown`,"keydown @ui.morePopup":`onMenuKeyDown`,"click @ui.renameButton":`onRenameClick`,"click @ui.moveButton":`onMoveClick`,"click @ui.copyButton":`onCopyClick`,"click @ui.exportButton":`onExportClick`})},modelEvents:{"change:title":`onTitleChange`},onRender:function onRender(){var r=this;this.ui.toggleMore.length&&this.ui.toggleMore.attr({"aria-haspopup":`menu`,"aria-expanded":`false`}),this.ui.bulkSelectionItemCheckbox.length&&this.updateRowSelectionAttributes(),this.ui.morePopup&&this.ui.morePopup.length&&(this._onDocumentClick=function(c){r.ui.toggleMore.attr(`aria-expanded`)===`true`&&!r.ui.toggleMore[0].contains(c.target)&&!r.ui.morePopup[0].contains(c.target)&&r.closeContextMenu()},jQuery(document).on(`click`,this._onDocumentClick),this.ui.morePopup.find(`button, a`).attr(`tabindex`,`-1`))},onBeforeDestroy:function onBeforeDestroy(){this._onDocumentClick&&jQuery(document).off(`click`,this._onDocumentClick)},openContextMenu:function openContextMenu(){this.handleLockedTemplate(),this.ui.toggleMore.attr(`aria-expanded`,`true`),this.ui.morePopup.show(),elementor.templates.eventManager.sendPageViewEvent({location:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.morePopup})},closeContextMenu:function closeContextMenu(){this.ui.toggleMore.attr(`aria-expanded`,`false`),this.ui.morePopup.hide()},getMenuItems:function getMenuItems(){return this.ui.morePopup.find(`button:visible, a:visible`)},onToggleMoreKeyDown:function onToggleMoreKeyDown(r){if(r.key===`Escape`){r.preventDefault(),this.ui.toggleMore.attr(`aria-expanded`)===`true`&&(this.closeContextMenu(),suppressEscapeKeyUp(r));return}if(r.key===`ArrowDown`||r.key===`Enter`||r.key===` `){r.preventDefault(),r.stopPropagation(),this.ui.toggleMore.attr(`aria-expanded`)!==`true`&&this.openContextMenu();var c=this.getMenuItems();c.length&&c.first().trigger(`focus`)}},onMenuKeyDown:function onMenuKeyDown(r){if(r.key===`Escape`){r.preventDefault(),this.closeContextMenu(),this.ui.toggleMore.trigger(`focus`),suppressEscapeKeyUp(r);return}if(r.key===`Tab`){this.handleMenuTab(r);return}rovingTabindex({event:r,$items:this.getMenuItems(),orientation:`vertical`,homeEnd:!0}),r.stopPropagation()},handleMenuTab:function handleMenuTab(r){var c=this.getMenuItems(),l=c.index(r.target);if(r.shiftKey){l<=0?(this.closeContextMenu(),this.ui.toggleMore.trigger(`focus`)):(r.preventDefault(),r.stopPropagation(),c.eq(l-1).trigger(`focus`));return}l<c.length-1?(r.preventDefault(),r.stopPropagation(),c.eq(l+1).trigger(`focus`)):(this.closeContextMenu(),this.ui.toggleMore.trigger(`focus`))},updateRowSelectionAttributes:function updateRowSelectionAttributes(){var r=this.ui.bulkSelectionItemCheckbox.prop(`checked`),c=this.$el.hasClass(`bulk-selected-item`);this.ui.bulkSelectionItemCheckbox.attr(`aria-checked`,r),c?this.$el.attr({"aria-selected":`true`,tabindex:`0`}):this.$el.attr({"aria-selected":`false`,tabindex:`-1`})},handleLockedTemplate:function handleLockedTemplate(){var r=this.model.isLocked();this.ui.renameButton.toggleClass(`disabled`,r),this.ui.moveButton.toggleClass(`disabled`,r),this.ui.copyButton.toggleClass(`disabled`,r),this.ui.exportButton.toggleClass(`disabled`,r)},onTitleChange:function onTitleChange(){var c=_.escape(this.model.get(`title`));if(this.ui.titleCell.text(c),this.ui.bulkSelectionItemCheckbox.length){var l=(0,r.__)(`Select template`,`elementor`)+` `+c;this.ui.bulkSelectionItemCheckbox.attr(`aria-label`,l)}},handleItemClicked:function handleItemClicked(r){var c=this;if(!r.target.closest(`.bulk-selection-item-checkbox`)){this._clickState||(this._clickState={timeoutId:null,delay:250});var l=this._clickState;l.timeoutId?(clearTimeout(l.timeoutId),l.timeoutId=null,this.handleItemDoubleClick()):l.timeoutId=setTimeout(function(){l.timeoutId=null,c.handleItemSingleClick()},l.delay)}},handleItemSingleClick:function handleItemSingleClick(){this.handleListViewItemSingleClick()},handleItemDoubleClick:function handleItemDoubleClick(){},handleListViewItemSingleClick:function handleListViewItemSingleClick(){var r=this.ui.bulkSelectionItemCheckbox,c=r.prop(`checked`);r.prop(`checked`,!c).trigger(`change`)},onDeleteButtonClick:function onDeleteButtonClick(r){r.stopPropagation(),this.closeContextMenu();var c=this.ui.toggleMoreIcon;elementor.templates.deleteTemplate(this.model,{onConfirm:function onConfirm(){c.removeClass(`eicon-ellipsis-h`).addClass(`eicon-loading eicon-animation-spin`)}})},onToggleMoreClick:function onToggleMoreClick(r){r.stopPropagation(),this.handleLockedTemplate();var c=this.ui.toggleMore.attr(`aria-expanded`)===`true`;if(this.ui.toggleMore.attr(`aria-expanded`,!c),c)this.ui.morePopup.hide();else{this.ui.morePopup.show();var l=this.getMenuItems();l.length&&l.first().trigger(`focus`)}elementor.templates.eventManager.sendPageViewEvent({location:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.morePopup})},onPreviewButtonClick:function onPreviewButtonClick(r){r.stopPropagation(),open(this.model.get(`url`),`_blank`)},onRenameClick:function onRenameClick(r){var c=this;return _asyncToGenerator(u.default.mark(function _callee(){return u.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(r.stopPropagation(),!c.model.isLocked()){l.next=1;break}return l.abrupt(`return`);case 1:return c.closeContextMenu(),l.prev=2,l.next=3,elementor.templates.renameTemplate(c.model,{onConfirm:function onConfirm(){return c.showToggleMoreLoader()}});case 3:return l.prev=3,c.hideToggleMoreLoader(),c.ui.toggleMore&&c.ui.toggleMore.length&&c.ui.toggleMore.trigger(`focus`),l.finish(3);case 4:case`end`:return l.stop()}},_callee,null,[[2,,3,4]])}))()},onMoveClick:function onMoveClick(){this.model.isLocked()||$e.route(`library/save-template`,{model:this.model,context:Q.MOVE})},onCopyClick:function onCopyClick(){this.model.isLocked()||$e.route(`library/save-template`,{model:this.model,context:Q.COPY})},onExportClick:function onExportClick(r){r.stopPropagation(),this.model.isLocked()&&r.preventDefault()},showToggleMoreLoader:function showToggleMoreLoader(){this.ui.toggleMoreIcon.removeClass(`eicon-ellipsis-h`).addClass(`eicon-loading eicon-animation-spin`)},hideToggleMoreLoader:function hideToggleMoreLoader(){this.ui.toggleMoreIcon.addClass(`eicon-ellipsis-h`).removeClass(`eicon-loading eicon-animation-spin`)},onSelectBulkSelectionItemCheckbox:function onSelectBulkSelectionItemCheckbox(r){var c;r.stopPropagation(),r!=null&&(c=r.target)!=null&&c.checked?(elementor.templates.addBulkSelectionItem(r.target.dataset.template_id,r.target.dataset.type),this.$el.addClass(`bulk-selected-item`)):(elementor.templates.removeBulkSelectionItem(r.target.dataset.template_id,r.target.dataset.type),this.$el.removeClass(`bulk-selected-item`)),this.updateRowSelectionAttributes(),elementor.templates.layout.handleBulkActionBarUi()}})})),Jp=__commonJSMin(((r,c)=>{kn();var l=Kp();c.exports=l.extend({template:`#tmpl-elementor-template-library-template-remote`,attributes:function attributes(){return jQuery.extend(l.prototype.attributes.apply(this,arguments),{tabindex:`0`,"aria-label":this.model.get(`title`)||``})},ui:function ui(){return jQuery.extend(l.prototype.ui.apply(this,arguments),{favoriteCheckbox:`.elementor-template-library-template-favorite-input`})},events:function events(){return jQuery.extend(l.prototype.events.apply(this,arguments),{"change @ui.favoriteCheckbox":`onFavoriteCheckboxChange`})},onPreviewButtonClick:function onPreviewButtonClick(r){r.stopPropagation(),$e.route(`library/preview`,{model:this.model})},onFavoriteCheckboxChange:function onFavoriteCheckboxChange(){var r,c=this.ui.favoriteCheckbox[0].checked;this.model.set(`favorite`,c),elementor.templates.markAsFavorite(this.model,c);var l=(r=elementor.config.library_connect)==null?void 0:r.base_access_tier,u=this.model.get(`accessTier`);Dn.sendELibraryFavorite({assetId:this.model.get(`template_id`),assetName:this.model.get(`title`),libraryType:this.model.get(`type`)||this.model.get(`source`),isFavorite:c,proRequired:l!==u}),!c&&elementor.templates.getFilter(`favorite`)&&elementor.channels.templates.trigger(`filter:change`)}})})),Yp=__commonJSMin(((r,c)=>{var l=qp();c.exports=l.extend({className:function className(){var r=elementor.templates.getViewSelection(),c=this.model.get(`subType`)===`FOLDER`?`folder`:`template`,u=l.prototype.className.apply(this,arguments);return u+=` elementor-template-library-template-view-`+r,u+=` elementor-template-library-template-type-`+c,u},attributes:function attributes(){if(elementor.templates.getViewSelection()===`grid`){var r=this.model.toJSON();return{"data-template_id":r.template_id,"data-type":r.type,"data-status":r.status,tabindex:`0`,"aria-label":r.title||``}}},ui:function ui(){return _.extend(l.prototype.ui.apply(this,arguments),{previewImg:`.elementor-template-library-template-thumbnail img`,insertButton:`.elementor-template-library-template-insert`})},events:function events(){return _.extend(l.prototype.events.apply(this,arguments),{keydown:`onGridCardKeyDown`})},modelEvents:_.extend({},l.prototype.modelEvents,{"change:preview_url":`onPreviewUrlChange`}),onGridCardKeyDown:function onGridCardKeyDown(r){elementor.templates.getViewSelection()===`grid`&&r.target===this.el&&(r.key===`Enter`||r.key===` `)&&(r.preventDefault(),this.model.get(`subType`)===`FOLDER`?$e.route(`library/view-folder`,{model:this.model,onAfter:function onAfter(){elementor.templates.resetBulkActionBar()}}):this.handleGridViewItemSingleClick())},onRender:function onRender(){var r=this.model.get(`preview_url`);this.shouldGeneratePreview()&&(this.iframe=elementor.templates.layout.createScreenshotIframe(this.model.get(`generate_preview_url`)),this.isGeneratingPreview=!0),r&&this.updatePreviewImgStyle()},onPreviewUrlChange:function onPreviewUrlChange(){var r=this.model.get(`preview_url`);this.isGeneratingPreview=!1,r&&(this.ui.previewImg.attr(`src`,r),this.updatePreviewImgStyle(),this.model.set(`generate_preview_url`,null),this.iframe.remove())},updatePreviewImgStyle:function updatePreviewImgStyle(){var r=this,c=this.ui.previewImg[0];if(c){var l=function applyObjectFit(){(c.naturalHeight>2e3?`cover`:`contain`)==`cover`&&(r.ui.previewImg.css(`object-fit`,`cover`),r.ui.previewImg.css(`object-position`,`top`))};c.complete&&c.naturalHeight>0?l():c.onload=l}},shouldGeneratePreview:function shouldGeneratePreview(){var r=elementor.templates.getViewSelection();return this.model.get(`subType`)!==`FOLDER`&&this.model.get(`generate_preview_url`)&&!this.model.get(`preview_url`)&&r===`grid`&&!this.isGeneratingPreview},onPreviewButtonClick:function onPreviewButtonClick(r){r.stopPropagation(),this.model.get(`subType`)===`FOLDER`&&$e.route(`library/view-folder`,{model:this.model,onAfter:function onAfter(){elementor.templates.resetBulkActionBar()}}),this.model.get(`subType`)===`TEMPLATE`&&this.handleGridViewItemSingleClick()},onDeleteButtonClick:function onDeleteButtonClick(r){if(r.stopPropagation(),this.model.get(`subType`)===`FOLDER`){this.handleDeleteFolderClick();return}l.prototype.onDeleteButtonClick.apply(this,arguments)},handleDeleteFolderClick:function handleDeleteFolderClick(){var r=this.ui.toggleMoreIcon;elementor.templates.deleteFolder(this.model,{onConfirm:function onConfirm(){r.removeClass(`eicon-ellipsis-h`).addClass(`eicon-loading eicon-animation-spin`)},onSuccess:function onSuccess(){$e.routes.refreshContainer(`library`)}})},handleItemSingleClick:function handleItemSingleClick(){elementor.templates.getViewSelection()===`grid`?this.handleGridViewItemSingleClick():this.handleListViewItemSingleClick()},handleItemDoubleClick:function handleItemDoubleClick(){this.model.get(`subType`)===`FOLDER`&&$e.route(`library/view-folder`,{model:this.model,onAfter:function onAfter(){elementor.templates.resetBulkActionBar()}})},handleGridViewItemSingleClick:function handleGridViewItemSingleClick(){this.$el.hasClass(`bulk-selected-item`)?elementor.templates.removeBulkSelectionItem(this.model.get(`template_id`),this.model.get(`type`)):elementor.templates.addBulkSelectionItem(this.model.get(`template_id`),this.model.get(`type`)),this.$el.toggleClass(`bulk-selected-item`),elementor.templates.layout.handleBulkActionBar()}})})),Xp=__commonJSMin(((c,l)=>{l.exports=Marionette.ItemView.extend({tagName:`main`,id:`elementor-template-library-templates-empty`,template:`#tmpl-elementor-template-library-templates-empty`,ui:{title:`.elementor-template-library-blank-title`,message:`.elementor-template-library-blank-message`,icon:`.elementor-template-library-blank-icon`,button:`.elementor-template-library-cloud-empty__button`,backToEditor:`.e-back-to-editor`},events:{"click @ui.backToEditor":`closeLibrary`},closeLibrary:function closeLibrary(r){r.preventDefault(),$e.run(`library/close`)},modesStrings:function modesStrings(){var c=this.getDefaultIcon();return{empty:{title:(0,r.__)(`Haven’t Saved Templates Yet?`,`elementor`),message:(0,r.__)(`This is where your templates should be. Design it. Save it. Reuse it.`,`elementor`),icon:c,button:``},noResults:{title:(0,r.__)(`No Results Found`,`elementor`),message:(0,r.__)(`Please make sure your search is spelled correctly or try a different words.`,`elementor`),icon:c,button:``},noFavorites:{title:(0,r.__)(`No Favorite Templates`,`elementor`),message:(0,r.__)(`You can mark any pre-designed template as a favorite.`,`elementor`),icon:c,button:``},cloudEmpty:{title:(0,r.__)(`No templates saved just yet`,`elementor`),message:(0,r.__)(`Once you save a template, it’ll show up here, ready for reuse across all of your Elementor sites—no extra work needed.`,`elementor`),icon:this.getCloudIcon(),button:`<a class="e-back-to-editor">${(0,r.__)(`Back to editor`,`elementor`)}</a>`},cloudFolderEmpty:{title:(0,r.__)(`No templates to show here, yet`,`elementor`),message:(0,r.__)(`Once you save some templates to this folder, you can use them on any website you’re working on.`,`elementor`),icon:this.getEmptyFolderIcon(),button:`<a class="e-back-to-editor">${(0,r.__)(`Back to editor`,`elementor`)}</a>`}}},getDefaultIcon:function getDefaultIcon(){return`<img src="${elementorCommon.config.urls.assets}images/no-search-results.svg" class="elementor-template-library-no-results" loading="lazy" />`},getCloudIcon:function getCloudIcon(){return`<i class="eicon-library-cloud-empty" aria-hidden="true" title="Empty Cloud Library"></i>`},getEmptyFolderIcon:function getEmptyFolderIcon(){return`<i class="eicon-library-folder-empty" aria-hidden="true" title="Empty folder"></i>`},getCurrentMode:function getCurrentMode(){return elementor.templates.getFilter(`text`)?`noResults`:elementor.templates.getFilter(`favorite`)?`noFavorites`:elementor.templates.getFilter(`source`)===`cloud`?elementor.templates.getFilter(`parent`)===null?`cloudEmpty`:`cloudFolderEmpty`:`empty`},onRender:function onRender(){var r=this.modesStrings()[this.getCurrentMode()];this.ui.title.html(r.title),this.ui.message.html(r.message),this.ui.button.html(r.button),this.ui.icon.html(r.icon)}})})),Zp=__commonJSMin(((c,l)=>{N();var u=__toESM(R());zp(),Np(),Tp();var p=qp(),m=Jp(),h=Yp();l.exports=Marionette.CompositeView.extend({tagName:`main`,template:`#tmpl-elementor-template-library-templates`,id:`elementor-template-library-templates`,childViewContainer:`#elementor-template-library-templates-container`,reorderOnSort:!0,emptyView:function emptyView(){return new(Xp())},ui:{textFilter:`#elementor-template-library-filter-text`,selectFilter:`.elementor-template-library-filter-select`,myFavoritesFilter:`#elementor-template-library-filter-my-favorites`,orderInputs:`.elementor-template-library-order-input`,orderLabels:`label.elementor-template-library-order-label`,searchInputIcon:`#elementor-template-library-filter-text-wrapper i`,loadMoreAnchor:`#elementor-template-library-load-more-anchor`,sourceFilterRadiogroup:`.elementor-template-library-filter-select-source`,selectSourceFilter:`.elementor-template-library-filter-select-source .source-option`,addNewFolder:`#elementor-template-library-add-new-folder`,addNewFolderDivider:`.elementor-template-library-filter-toolbar-side-actions .divider`,selectGridView:`#elementor-template-library-view-grid`,selectListView:`#elementor-template-library-view-list`,bulkSelectionActionBar:`.bulk-selection-action-bar`,bulkActionBarDelete:`.bulk-selection-action-bar .bulk-delete`,bulkSelectedCount:`.bulk-selection-action-bar .selected-count`,bulkSelectAllCheckbox:`#bulk-select-all`,clearBulkSelections:`.bulk-selection-action-bar .clear-bulk-selections`,bulkMove:`.bulk-selection-action-bar .bulk-move`,bulkCopy:`.bulk-selection-action-bar .bulk-copy`,quota:`.quota-progress-container .quota-progress-bar`,quotaFill:`.quota-progress-container .quota-progress-bar .quota-progress-bar-fill`,quotaValue:`.quota-progress-container .quota-progress-bar-value`,quotaWarning:`.quota-progress-container .progress-bar-container .quota-warning`,quotaUpgrade:`.quota-progress-container .progress-bar-container .quota-warning a`,quotaStatus:`#elementor-template-library-quota-status`,navigationContainer:`#elementor-template-library-navigation-container`,sourceOptionBadges:`.source-option-badge.variant-b-only`,cloudBadge:`.source-option-badge.cloud-badge`,siteBadge:`.source-option-badge.site-badge`,sortStatus:`#elementor-template-library-sort-status`,loadStatus:`#elementor-template-library-load-status`},events:{"input @ui.textFilter":`onTextFilterInput`,"change @ui.selectFilter":`onSelectFilterChange`,"change @ui.myFavoritesFilter":`onMyFavoritesFilterChange`,"mousedown @ui.orderLabels":`onOrderLabelsClick`,"click @ui.selectSourceFilter":`onSelectSourceFilterChange`,"keydown @ui.selectSourceFilter":`onSelectSourceFilterKeyDown`,"click @ui.addNewFolder":`onCreateNewFolderClick`,"click @ui.selectGridView":`onSelectGridViewClick`,"click @ui.selectListView":`onSelectListViewClick`,"change @ui.bulkSelectAllCheckbox":`onBulkSelectAllCheckbox`,"click @ui.clearBulkSelections":`onClearBulkSelections`,"mouseenter @ui.bulkMove":`onHoverBulkAction`,"mouseenter @ui.bulkCopy":`onHoverBulkAction`,"click @ui.bulkMove":`onClickBulkMove`,"click @ui.bulkActionBarDelete":`onBulkDeleteClick`,"click @ui.bulkCopy":`onClickBulkCopy`,"click @ui.quotaUpgrade":`onQuotaUpgradeClicked`,"mouseenter @ui.cloudBadge":`showCloudBadgeTooltip`,"mouseenter @ui.siteBadge":`showSiteBadgeTooltip`,"mouseleave @ui.cloudBadge":`hideCloudBadgeTooltip`,"mouseleave @ui.siteBadge":`hideSiteBadgeTooltip`},className:`no-bulk-selections`,resetQuotaBarStyles:function resetQuotaBarStyles(){this.ui.quota.removeClass([`quota-progress-bar-normal`,`quota-progress-bar-warning`,`quota-progress-bar-alert`]),this.ui.quotaFill.removeClass([`quota-progress-bar-fill-normal`,`quota-progress-bar-fill-warning`,`quota-progress-bar-fill-alert`])},setQuotaBarStyles:function setQuotaBarStyles(r){this.ui.quota.addClass(`quota-progress-bar-${r}`),this.ui.quotaFill.addClass(`quota-progress-bar-fill-${r}`)},handleQuotaWarning:function handleQuotaWarning(c,l){var u=Sp[c];u&&(this.ui.quotaWarning.html((0,r.sprintf)(u,l)),this.ui.quotaWarning.show())},handleQuotaBar:function handleQuotaBar(){var c,l,u,p=(c=elementorAppConfig)==null||(c=c[`cloud-library`])==null?void 0:c.quota,m=p?Math.round(p.currentUsage/p.threshold*100):0;this.ui.quotaFill.css(`width`,`${m}%`),this.ui.quotaValue.text(`${p==null||(l=p.currentUsage)==null?void 0:l.toLocaleString()}/${p==null||(u=p.threshold)==null?void 0:u.toLocaleString()}`),this.ui.quotaWarning.hide(),this.resetQuotaBarStyles();var h=this.resolveQuotaState(m);if(this.handleQuotaWarning(h,m),this.setQuotaBarStyles(h),this.ui.quota.length&&this.ui.quota.attr({"aria-valuenow":m}),p&&this.ui.quotaStatus.length){var g=(0,r.sprintf)((0,r.__)(`%1$s of %2$s templates used`,`elementor`),p.currentUsage.toLocaleString(),p.threshold.toLocaleString());this.ui.quotaStatus.text(g)}},resolveQuotaState:function resolveQuotaState(r){return r<80?Cp.NORMAL:r<100?Cp.WARNING:Cp.ALERT},onClearBulkSelections:function onClearBulkSelections(){elementor.templates.clearBulkSelectionItems(),elementor.templates.layout.handleBulkActionBar(),elementor.templates.layout.selectAllCheckboxNormal(),this.deselectAllBulkItems()},deselectAllBulkItems:function deselectAllBulkItems(){elementor.templates.getViewSelection()===`list`||elementor.templates.getFilter(`source`)===`local`?this.ui.bulkSelectAllCheckbox.prop(`checked`,!1).trigger(`change`):document.querySelectorAll(`.bulk-selected-item`).forEach(function(r){r.classList.remove(`bulk-selected-item`),r.setAttribute(`aria-selected`,`false`),r.setAttribute(`tabindex`,`-1`);var c=r.querySelector(`.bulk-selection-item-checkbox`);c&&(c.checked=!1,c.setAttribute(`aria-checked`,`false`))})},onBulkSelectAllCheckbox:function onBulkSelectAllCheckbox(){var r=this.$(`#bulk-select-all:checked`).length>0;r&&elementor.templates.layout.selectAllCheckboxNormal(),this.updateBulkSelectedItems(r),elementor.templates.layout.handleBulkActionBarUi()},updateBulkSelectedItems:function updateBulkSelectedItems(r){document.querySelectorAll(`.bulk-selection-item-checkbox`).forEach(function(c){c.checked=r,c.setAttribute(`aria-checked`,String(r));var l=c.dataset.template_id,u=c.dataset.type,p=c.closest(`.elementor-template-library-template`);r?(elementor.templates.addBulkSelectionItem(l,u),p==null||p.classList.add(`bulk-selected-item`)):(elementor.templates.removeBulkSelectionItem(l,u),p==null||p.classList.remove(`bulk-selected-item`)),p&&(p.setAttribute(`aria-selected`,String(r)),p.setAttribute(`tabindex`,r?`0`:`-1`))})},onBulkDeleteClick:function onBulkDeleteClick(){var r=this;this.ui.bulkActionBarDelete.toggleClass(`disabled`),elementor.templates.onBulkDeleteClick().finally(function(){r.ui.bulkActionBarDelete.toggleClass(`disabled`),elementor.templates.layout.handleBulkActionBar()})},comparators:{title:function title(r){return r.get(`title`).toLowerCase()},popularityIndex:function popularityIndex(r){var c=r.get(`popularityIndex`);return c||(c=r.get(`date`)),-c},trendIndex:function trendIndex(r){var c=r.get(`trendIndex`);return c||(c=r.get(`date`)),-c}},getChildView:function getChildView(r){var c={local:p,remote:m,cloud:h},l=r.get(`source`)?r.get(`source`):`local`;return elementor.hooks.applyFilters(`templates/source/is-remote`,l===`remote`,l)?m:c[l]||p},initialize:function initialize(){this.handleQuotaBar=this.handleQuotaBar.bind(this),this.handleQuotaUpdate=this.handleQuotaUpdate.bind(this),this.handleSourceFilterChange=this.handleSourceFilterChange.bind(this),this.listenTo(elementor.channels.templates,`filter:change`,this._renderChildren),this.listenTo(elementor.channels.templates,`filter:change`,this.handleSourceOptionBadges),this.listenTo(elementor.channels.templates,`filter:change`,this.handleSourceFilterChange),this.listenTo(elementor.channels.templates,`quota:updated`,this.handleQuotaUpdate),this.debouncedSearchTemplates=_.debounce(this.searchTemplates,300)},handleQuotaUpdate:function handleQuotaUpdate(){var r,c=this;((r=elementor.templates.getFilter(`source`))==null?`local`:r)===`cloud`&&$e.components.get(`cloud-library`).utils.getQuotaConfig().then(function(){c.handleQuotaBar()})},handleSourceFilterChange:function handleSourceFilterChange(r){if(r===`source`){var c,l=(c=elementor.templates.getFilter(`source`))==null?`local`:c;this.updateSourceFilterAriaAttributes(l)}},updateSourceFilterAriaAttributes:function updateSourceFilterAriaAttributes(r){this.ui.selectSourceFilter.length&&this.ui.selectSourceFilter.each(function(){var c=jQuery(this),l=c.data(`source`)===r;c.attr({"aria-checked":l?`true`:`false`,tabindex:l?`0`:`-1`})})},filter:function filter(r){if(elementor.templates.getFilter(`source`)===`cloud`)return!0;var c=elementor.templates.getFilterTerms(),l=!0;return jQuery.each(c,function(c){var u=elementor.templates.getFilter(c);if(u){if(this.callback){var p=this.callback.call(r,u);return p||(l=!1),p}var m=u===r.get(c);return m||(l=!1),m}}),l},order:function order(r,c){var l=this.comparators[r]||r;if(elementor.templates.getFilter(`source`)===`cloud`){this.handleCloudOrder(r,c);return}c&&(l=this.reverseOrder(l)),this.collection.comparator=l,this.collection.sort(),this.announceSortStatus(r,c)},announceSortStatus:function announceSortStatus(c,l){var u={title:(0,r.__)(`Name`,`elementor`),type:(0,r.__)(`Type`,`elementor`),author:(0,r.__)(`Created By`,`elementor`),date:(0,r.__)(`Creation Date`,`elementor`)},p=l?(0,r.__)(`descending`,`elementor`):(0,r.__)(`ascending`,`elementor`),m=u[c]||c,h=(0,r.__)(`Sorted by`,`elementor`)+` `+m+`, `+p;this.ui.sortStatus.length&&this.ui.sortStatus.text(h)},announceLoadStatus:function announceLoadStatus(c){var l=c+` `+(0,r.__)(`more templates loaded`,`elementor`);this.ui.loadStatus.length&&this.ui.loadStatus.text(l)},handleCloudOrder:function handleCloudOrder(r,c){var l=this;elementor.templates.setFilter(`orderby`,r),elementor.templates.setFilter(`order`,c?`desc`:`asc`),this.onClearBulkSelections(),this.collection.reset(),elementor.templates.layout.showLoadingView(),elementor.templates.loadMore({onUpdate:function onUpdate(){elementor.templates.layout.hideLoadingView(),l.announceSortStatus(r,c)},search:this.ui.textFilter.val(),refresh:!0})},reverseOrder:function reverseOrder(r){if(typeof r!=`function`){var c=r;r=function comparator(r){return r.get(c)}}return function(c,l){var u=r(c);if(u===void 0)return-1;var p=r(l);return p===void 0||u<p?1:u>p?-1:0}},addSourceData:function addSourceData(){var r=this.children.isEmpty();this.$el.attr(`data-template-source`,r?`empty`:elementor.templates.getFilter(`source`))},addViewData:function addViewData(){var r=elementor.templates.getViewSelection();this.$el.attr(`data-template-view`,r)},setFiltersUI:function setFiltersUI(){if(!this.select2Instance&&this.$(this.ui.selectFilter).length){var c=this.$(this.ui.selectFilter),l={placeholder:(0,r.__)(`Category`,`elementor`),allowClear:!0,width:150,dropdownParent:this.$el};this.select2Instance=new Rp({$element:c,options:l})}},setMasonrySkin:function setMasonrySkin(){var r=new elementorModules.utils.Masonry({container:this.$childViewContainer,items:this.$childViewContainer.children()});this.$childViewContainer.imagesLoaded(r.run.bind(r))},toggleFilterClass:function toggleFilterClass(){this.$el.toggleClass(`elementor-templates-filter-active`,!!(elementor.templates.getFilter(`text`)||elementor.templates.getFilter(`favorite`)))},isPageOrLandingPageTemplates:function isPageOrLandingPageTemplates(){var r=elementor.templates.getFilter(`type`);return r===`page`||r===`lp`},onDestroy:function onDestroy(){this.removeScrollListener&&this.removeScrollListener()},shouldShowVariantB:function shouldShowVariantB(){return _asyncToGenerator(u.default.mark(function _callee(){var r;return u.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=1,elementor.templates.eventManager.getSaveTemplateExperimentVariant();case 1:return r=c.sent,c.abrupt(`return`,r===`B`);case 2:case`end`:return c.stop()}},_callee)}))()},handleSourceOptionBadges:function handleSourceOptionBadges(){var r=this;return _asyncToGenerator(u.default.mark(function _callee2(){var c,l;return u.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=1,r.shouldShowVariantB();case 1:if(c=u.sent,c){u.next=2;break}return r.ui.sourceOptionBadges.hide(),u.abrupt(`return`);case 2:l=elementor.templates.getFilter(`source`),r.$(`.source-option-badge.site-badge`).toggle(l===`local`),r.$(`.source-option-badge.cloud-badge`).toggle(l===`cloud`);case 3:case`end`:return u.stop()}},_callee2)}))()},onRender:function onRender(){elementor.templates.clearBulkSelectionItems();var r=elementor.templates.getFilter(`source`),c=elementor.templates.getFilter(`type`);if(r===`remote`&&c!==`page`&&c!==`lb`&&this.setFiltersUI(),r===`cloud`){var l=elementor.templates.getFilter(`parentId`)?elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.cloudTabFolder:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.cloudTab;elementor.templates.eventManager.sendPageViewEvent({location:l}),this.handleQuotaBar()}r===`local`&&elementor.templates.eventManager.sendPageViewEvent({location:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.siteTab}),this.handleSourceOptionBadges()},onRenderCollection:function onRenderCollection(){this.addSourceData(),this.toggleFilterClass();var r=elementor.templates.getFilter(`source`);r===`remote`&&!this.isPageOrLandingPageTemplates()&&this.setMasonrySkin(),r===`cloud`&&(this.handleLoadMore(),this.addViewData(),this.handleQuotaUpdate()),this.handleSourceOptionBadges()},onBeforeRenderEmpty:function onBeforeRenderEmpty(){this.addSourceData()},onTextFilterInput:function onTextFilterInput(){var r=elementor.templates.getFilter(`source`);if([`cloud`,`local`].includes(r)&&(elementor.templates.clearBulkSelectionItems(),elementor.templates.layout.handleBulkActionBar()),r===`cloud`){this.debouncedSearchTemplates(r);return}elementor.templates.setFilter(`text`,this.ui.textFilter.val())},searchTemplates:function searchTemplates(r){var c=this;return _asyncToGenerator(u.default.mark(function _callee3(){return u.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return c.showLoadingSpinner(),l.prev=1,l.next=2,elementor.templates.searchTemplates({source:r,search:c.ui.textFilter.val()});case 2:return l.prev=2,c.showSearchIcon(),l.finish(2);case 3:case`end`:return l.stop()}},_callee3,null,[[1,,2,3]])}))()},showLoadingSpinner:function showLoadingSpinner(){this.ui.searchInputIcon.removeClass(`eicon-search`).addClass(`eicon-loading eicon-animation-spin`)},showSearchIcon:function showSearchIcon(){this.ui.searchInputIcon.removeClass(`eicon-loading eicon-animation-spin`).addClass(`eicon-search`)},onSelectFilterChange:function onSelectFilterChange(r){var c=jQuery(r.currentTarget),l=c.data(`elementor-filter`);elementor.templates.setFilter(l,c.val())},onSelectSourceFilterChange:function onSelectSourceFilterChange(r){elementor.templates.onSelectSourceFilterChange(r)},onSelectSourceFilterKeyDown:function onSelectSourceFilterKeyDown(r){var c=this;rovingTabindex({event:r,$items:this.ui.selectSourceFilter,orientation:`both`,activateOnFocus:!0,homeEnd:!1,onActivate:function onActivate(r,l){c._restoreFocusToSourceFilter=!0,l.trigger(`click`)}})&&(this._restoreFocusToSourceFilter=!0)},onSelectGridViewClick:function onSelectGridViewClick(){elementor.templates.onSelectViewChange(`grid`)},onSelectListViewClick:function onSelectListViewClick(){elementor.templates.onSelectViewChange(`list`)},onMyFavoritesFilterChange:function onMyFavoritesFilterChange(){elementor.templates.setFilter(`favorite`,this.ui.myFavoritesFilter[0].checked)},onOrderLabelsClick:function onOrderLabelsClick(r){var c=jQuery(r.currentTarget.control),l=c[0].checked?!c.hasClass(`elementor-template-library-order-reverse`):c.data(`default-ordering-direction`)!==`asc`;c.prop(`checked`,!0),c.toggleClass(`elementor-template-library-order-reverse`,l),this.order(c.val(),l)},handleLoadMore:function handleLoadMore(){var r,c=this;this.removeScrollListener&&this.removeScrollListener();var l=(r=elementor)==null||(r=r.templates)==null||(r=r.layout)==null?void 0:r.modal.getElements(`message`),u=function listener(){var r=l.scrollTop()/(l[0].scrollHeight-l.outerHeight())*100,u=elementor.templates.canLoadMore()&&!elementor.templates.isLoading();if(!(r<90||!u)){c.ui.loadMoreAnchor.toggleClass(`elementor-visibility-hidden`),elementor.templates.layout.selectAllCheckboxMinus();var p=c.collection.length;elementor.templates.loadMore({onUpdate:function onUpdate(){c.ui.loadMoreAnchor.toggleClass(`elementor-visibility-hidden`);var r=c.collection.length-p;r>0&&c.announceLoadStatus(r)},search:c.ui.textFilter.val()})}};l.on(`scroll`,u);var p=function focusListener(r){if(elementor.templates.canLoadMore()&&!elementor.templates.isLoading()&&!(!c.$childViewContainer||!c.$childViewContainer.length)){var l=c.$childViewContainer.children(),u=l.length;if(!(u<2)){var p=jQuery(r.target);if(l.index(p.closest(l))>=u-2){c.ui.loadMoreAnchor.toggleClass(`elementor-visibility-hidden`),elementor.templates.layout.selectAllCheckboxMinus();var m=c.collection.length;elementor.templates.loadMore({onUpdate:function onUpdate(){c.ui.loadMoreAnchor.toggleClass(`elementor-visibility-hidden`);var r=c.collection.length-m;r>0&&c.announceLoadStatus(r)},search:c.ui.textFilter.val()})}}}};l.on(`focusin`,p),this.removeScrollListener=function(){l.off(`scroll`,u),l.off(`focusin`,p)}},onCreateNewFolderClick:function onCreateNewFolderClick(){var r=elementor.templates.getFilter(`source`);r===`cloud`&&elementor.templates.createFolder({source:r},{onSuccess:function onSuccess(){$e.routes.refreshContainer(`library`)}})},onHoverBulkAction:function onHoverBulkAction(){this.hasFolderInBulkSelection()||this.hasLockedTemplatesInBulkSelection()?(this.ui.bulkMove.find(`i`).css(`cursor`,`not-allowed`),this.ui.bulkCopy.find(`i`).css(`cursor`,`not-allowed`)):(this.ui.bulkMove.find(`i`).css(`cursor`,`pointer`),this.ui.bulkCopy.find(`i`).css(`cursor`,`pointer`))},onClickBulkMove:function onClickBulkMove(){this.hasFolderInBulkSelection()||this.hasLockedTemplatesInBulkSelection()||$e.route(`library/save-template`,{model:this.model,context:Q.BULK_MOVE})},hasFolderInBulkSelection:function hasFolderInBulkSelection(){var r=elementor.templates.getBulkSelectionItems();return this.collection.some(function(c){var l=c.get(`template_id`),u=c.get(`type`);return r.has(l)&&u===`folder`})},hasLockedTemplatesInBulkSelection:function hasLockedTemplatesInBulkSelection(){var r=elementor.templates.getBulkSelectionItems();return this.collection.some(function(c){var l=c.get(`template_id`);return r.has(l)&&c.isLocked()})},onClickBulkCopy:function onClickBulkCopy(){this.hasFolderInBulkSelection()||this.hasLockedTemplatesInBulkSelection()||$e.route(`library/save-template`,{model:this.model,context:Q.BULK_COPY})},onQuotaUpgradeClicked:function onQuotaUpgradeClicked(){var r,c=(r=elementorAppConfig)==null||(r=r[`cloud-library`])==null?void 0:r.quota,l=c?Math.round(c.currentUsage/c.threshold*100):0;elementor.templates.eventManager.sendUpgradeClickedEvent({secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.quotaBar,upgrade_position:`quota bar ${l?l+`%`:``}`})},showCloudBadgeTooltip:function showCloudBadgeTooltip(){this.cloudBadgeDialog&&this.cloudBadgeDialog.hide();var c=elementor.config.library_connect.is_connected?elementor.config.library_connect.user_email:(0,r.__)(`connected`,`elementor`),l=(0,r.sprintf)((0,r.__)(`Only %s Elementor account can access Cloud Templates from any connected site.`,`elementor`),c);this.cloudBadgeDialog=elementor.dialogsManager.createWidget(`buttons`,{id:`elementor-library--cloud-upgrade__dialog`,effects:{show:`show`,hide:`hide`},position:{of:this.ui.cloudBadge,at:`top-50`}}).setMessage(l),this.cloudBadgeDialog.getElements(`widget`).addClass(`variant-b`),this.cloudBadgeDialog.getElements(`header`).remove(),this.cloudBadgeDialog.getElements(`buttonsWrapper`).remove(),this.cloudBadgeDialog.show()},hideCloudBadgeTooltip:function hideCloudBadgeTooltip(){this.cloudBadgeDialog&&this.cloudBadgeDialog.hide()},showSiteBadgeTooltip:function showSiteBadgeTooltip(){this.siteBadgeDialog&&this.siteBadgeDialog.hide();var c=(0,r.__)(`Authorized users on this site can access Site Templates.`,`elementor`);this.siteBadgeDialog=elementor.dialogsManager.createWidget(`buttons`,{id:`elementor-library--site-info__dialog`,effects:{show:`show`,hide:`hide`},position:{of:this.ui.siteBadge,at:`top-35`}}).setMessage(c),this.siteBadgeDialog.getElements(`widget`).addClass(`variant-b`),this.siteBadgeDialog.getElements(`header`).remove(),this.siteBadgeDialog.getElements(`buttonsWrapper`).remove(),this.siteBadgeDialog.show()},hideSiteBadgeTooltip:function hideSiteBadgeTooltip(){this.siteBadgeDialog&&this.siteBadgeDialog.hide()}})})),Qp=__commonJSMin(((r,c)=>{c.exports=Backbone.Model.extend({defaults:{template_id:0,title:``,source:``,type:``,subtype:``,author:``,thumbnail:``,url:``,export_link:``,status:null,preview_url:null,generate_preview_url:null,tags:[]},isLocked:function isLocked(){return this.get(`status`)===`locked`}})})),$p=__commonJSMin(((r,c)=>{var l=Qp();c.exports=Backbone.Collection.extend({model:l})})),em=__commonJSMin(((c,l)=>{l.exports=Marionette.ItemView.extend({tagName:`li`,className:`no-results`,template:_.template((0,r.sprintf)(`<i class="eicon-folder-plus" aria-hidden="true"></i><br><p>%1$s<br>%2$s</p>`,(0,r.__)(`Folders you create will appear here.`,`elementor`),(0,r.__)(`To create a new one, go to Cloud Templates.`,`elementor`)))})})),tm=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({tagName:`li`,template:_.template(`<i class="eicon-folder-o" aria-hidden="true"></i><%= title %>`),className:`folder-item`,attributes:function attributes(){var r=this.model.toJSON();return{"data-id":r.template_id,"data-value":r.title,role:`option`,tabindex:`-1`}},render:function render(){return this.$el.html(this.template(this.model.toJSON())),this}})})),nm=__commonJSMin(((r,c)=>{var l=em(),u=tm();c.exports=Marionette.CollectionView.extend({tagName:`ul`,className:`folder-list`,childView:u,emptyView:l,attributes:{role:`listbox`,"aria-label":`Folders`}})})),rm=__commonJSMin(((c,l)=>{P(),N();var u=__toESM(R());Tp(),Np();var p=Qp(),m=$p(),h=nm(),g=0;l.exports=Marionette.ItemView.extend({tagName:`main`,id:`elementor-template-library-save-template`,template:`#tmpl-elementor-template-library-save-template`,ui:function ui(){return{form:`#elementor-template-library-save-template-form`,submitButton:`#elementor-template-library-save-template-submit`,ellipsisIcon:`.cloud-library-form-inputs .ellipsis-container`,foldersList:`.cloud-folder-selection-dropdown ul`,foldersDropdown:`.cloud-folder-selection-dropdown`,foldersListContainer:`.cloud-folder-selection-dropdown-list`,removeFolderSelection:`.source-selections .selected-folder i`,selectedFolder:`.selected-folder`,selectedFolderText:`.selected-folder-text`,hiddenInputSelectedFolder:`#parentId`,templateNameInput:`#elementor-template-library-save-template-name`,localInput:`.source-selections-input.local`,cloudInput:`.source-selections-input.cloud`,sourceSelectionCheckboxes:`.source-selections-input input[type="checkbox"]`,infoIcon:`.source-selections-input.cloud .eicon-info`,connect:`#elementor-template-library-connect__badge`,connectBadge:`.source-selections-input.cloud .connect-badge`,cloudFormInputs:`.cloud-library-form-inputs`,upgradeBadge:`.source-selections-input.cloud .upgrade-badge`}},events:function events(){return{"submit @ui.form":`onFormSubmit`,"click @ui.ellipsisIcon":`onEllipsisIconClick`,"keydown @ui.ellipsisIcon":`onEllipsisIconKeyDown`,"click @ui.foldersList":`onFoldersListClick`,"keydown @ui.foldersListContainer":`onFoldersListKeyDown`,"click @ui.removeFolderSelection":`onRemoveFolderSelectionClick`,"click @ui.selectedFolderText":`onSelectedFolderTextClick`,"click @ui.upgradeBadge":`onUpgradeBadgeClicked`,"change @ui.sourceSelectionCheckboxes":`handleSourceSelectionChange`,"mouseenter @ui.infoIcon":`showInfoTip`,"mouseleave @ui.infoIcon":`hideInfoTip`,"mouseenter @ui.connectBadge":`showConnectInfoTip`,"mouseleave @ui.connectBadge":`hideConnectInfoTip`,"input @ui.templateNameInput":`onTemplateNameInputChange`}},onRender:function onRender(){var r,c,l=this;((r=elementorAppConfig[`cloud-library`])==null?void 0:r.quota)===void 0&&(c=this.templateHelpers())!=null&&c.canSaveToCloud?(elementor.templates.layout.showLoadingView(),$e.components.get(`cloud-library`).utils.setQuotaConfig().then(function(r){elementorAppConfig[`cloud-library`].quota=r}).catch(function(){delete elementorAppConfig[`cloud-library`].quota}).finally(function(){l.handleOnRender(),elementor.templates.layout.hideLoadingView()})):this.handleOnRender()},onDestroy:function onDestroy(){this.unbindDocumentClickHandler()},handleOnRender:function handleOnRender(){var r=this;setTimeout(function(){return r.ui.templateNameInput.trigger(`focus`)});var c=this.getOption(`context`);elementor.templates.eventManager.sendPageViewEvent({location:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary[`${c}Modal`]}),Q.SAVE===c&&this.handleSaveAction(),(Q.MOVE===c||Q.COPY===c)&&this.handleSingleActionContextUiState(),(Q.BULK_MOVE===c||Q.BULK_COPY===c)&&this.handleBulkActionContextUiState(),elementor.templates.hasCloudLibraryQuota()||this.handleCloudLibraryPromo(),this.cloudMaxCapacityReached()&&this.handleCloudLibraryPromo(`max-capacity`),elementor.config.library_connect.is_connected||this.handleElementorConnect(),this.bindDocumentClickHandler()},cloudMaxCapacityReached:function cloudMaxCapacityReached(){var r,c,l,u;return((r=elementorAppConfig[`cloud-library`])==null?void 0:r.quota)!==void 0&&0<((c=elementorAppConfig[`cloud-library`].quota)==null?void 0:c.threshold)&&((l=elementorAppConfig[`cloud-library`].quota)==null?void 0:l.currentUsage)>=((u=elementorAppConfig[`cloud-library`].quota)==null?void 0:u.threshold)},handleSaveAction:function handleSaveAction(){this.maybeEnableSaveButton()},handleSingleActionContextUiState:function handleSingleActionContextUiState(){var r=this.model.get(`title`);this.ui.templateNameInput.val(r),this.handleContextUiStateCheckboxes(),this.maybeEnableSaveButton()},maybeEnableSaveButton:function maybeEnableSaveButton(){var r;if((r=this.templateHelpers())!=null&&r.canSaveToCloud){var c=this.ui.sourceSelectionCheckboxes.is(`:checked`),l=this.ui.templateNameInput.val().trim(),u=!this.ui.templateNameInput.is(`:visible`)||elementor.templates.isTemplateTitleValid(l);this.updateSubmitButtonState(!c||!u)}},handleBulkActionContextUiState:function handleBulkActionContextUiState(){this.ui.templateNameInput.remove(),this.handleContextUiStateCheckboxes(),this.maybeEnableSaveButton()},handleContextUiStateCheckboxes:function handleContextUiStateCheckboxes(){elementor.templates.getFilter(`source`)===`local`&&(this.$(`.source-selections-input #cloud`).prop(`checked`,!0),this.ui.localInput.addClass(`disabled`))},handleCloudLibraryPromo:function handleCloudLibraryPromo(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`promotion`;Q.SAVE===this.getOption(`context`)?this.$(`.source-selections-input #local`).prop(`checked`,!0):this.$(`.source-selections-input #local, .source-selections-input.local label`).css(`pointer-events`,`none`),this.$(`.source-selections-input #cloud`).prop(`checked`,!1),this.$(`.source-selections-input #cloud`).prop(`disabled`,!0),this.ui.cloudFormInputs.addClass(r),elementor.templates.eventManager.sendPageViewEvent({location:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.saveModalSelectUpgrade})},getSaveType:function getSaveType(){return Q.MOVE===this.getOption(`context`)||Q.COPY===this.getOption(`context`)?this.model.get(`type`):this.model?this.model.get(`elType`):elementor.config.document.library&&elementor.config.document.library.save_as_same_type?elementor.config.document.type:`page`},templateHelpers:function templateHelpers(){var r=this.getSaveType();return elementor.templates.getTemplateTypes(r)[`${this.getOption(`context`)}Dialog`]},onEllipsisIconKeyDown:function onEllipsisIconKeyDown(r){if(r.key===`Escape`){r.preventDefault(),this.ui.foldersDropdown.is(`:visible`)&&(this.hideFoldersDropdown(),suppressEscapeKeyUp(r));return}(r.key===`Tab`&&!r.shiftKey||r.key===`ArrowDown`)&&this.ui.foldersDropdown.is(`:visible`)&&(r.preventDefault(),r.stopPropagation(),this.focusFirstFolderItem())},onFoldersListKeyDown:function onFoldersListKeyDown(r){if(r.key===`Escape`){r.preventDefault(),this.hideFoldersDropdown(),this.ui.ellipsisIcon.trigger(`focus`),suppressEscapeKeyUp(r);return}if(r.key===`Tab`){this.handleFolderTab(r);return}rovingTabindex({event:r,$items:this.getFolderItems(),orientation:`vertical`,homeEnd:!1,onActivate:function onActivate(r,c){r.stopPropagation(),c.trigger(`click`)}}),r.stopPropagation()},handleFolderTab:function handleFolderTab(r){var c=this.getFolderItems(),l=c.index(r.target);if(r.shiftKey){l<=0?(this.hideFoldersDropdown(),this.ui.ellipsisIcon.trigger(`focus`)):(r.preventDefault(),r.stopPropagation(),c.eq(l-1).trigger(`focus`));return}l<c.length-1?(r.preventDefault(),r.stopPropagation(),c.eq(l+1).trigger(`focus`)):(this.hideFoldersDropdown(),this.ui.ellipsisIcon.trigger(`focus`))},updateEllipsisAriaExpanded:function updateEllipsisAriaExpanded(r){this.ui.ellipsisIcon.attr(`aria-expanded`,r?`true`:`false`)},onFormSubmit:function onFormSubmit(r){var c=this;return _asyncToGenerator(u.default.mark(function _callee(){var l,p,m;return u.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(r.preventDefault(),p=c.ui.form.elementorSerializeObject(),m={remove:[`default`]},p.parentTitle=p.parentId?c.ui.selectedFolderText.html():``,p.content=c.model?[c.model.toJSON(m)]:elementor.elements.toJSON(m),c.updateSourceSelections(p),!(!(p!=null&&p.source)&&(l=c.templateHelpers())!=null&&l.canSaveToCloud)){u.next=1;break}return c.showEmptySourceErrorDialog(),u.abrupt(`return`);case 1:return c.ui.submitButton.addClass(`elementor-button-state`),c.updateSaveContext(p),c.updateToastConfig(p),c.updateSourceState(p),u.prev=2,u.next=3,$e.run(`document/save/auto`,{force:!0});case 3:u.next=5;break;case 4:u.prev=4,u.catch(2);case 5:return u.next=6,elementor.templates.syncGlobalStylesBeforeSave();case 6:elementor.templates.saveTemplate(c.getSaveType(),p);case 7:case`end`:return u.stop()}},_callee,null,[[2,4]])}))()},updateSourceSelections:function updateSourceSelections(r){var c=[`cloud`,`local`].filter(function(c){return r[c]});c.length&&(r.source=c,[`cloud`,`local`].forEach(function(c){return delete r[c]}))},showEmptySourceErrorDialog:function showEmptySourceErrorDialog(){elementorCommon.dialogsManager.createWidget(`alert`,{id:`elementor-template-library-error-dialog`,headerMessage:(0,r.__)(`An error occurred.`,`elementor`),message:(0,r.__)(`Please select at least one location.`,`elementor`)}).show()},updateSaveContext:function updateSaveContext(r){var c,l=(c=this.getOption(`context`))==null?Q.SAVE:c;r.save_context=l,[Q.MOVE,Q.BULK_MOVE,Q.COPY,Q.BULK_COPY].includes(l)&&(r.from_source=elementor.templates.getFilter(`source`),r.from_template_id=[Q.MOVE,Q.COPY].includes(l)?this.model.get(`template_id`):Array.from(elementor.templates.getBulkSelectionItems()))},updateToastConfig:function updateToastConfig(r){var c,l,u,p,m;if((c=r.source)!=null&&c.length){var h=r.source.at(-1),g=(l=this.getOption(`context`))==null?Q.SAVE:l,v=this.getToastMessage(h,g,r);if(v){var y=((u=r.source)==null?void 0:u.length)>1?null:this.getToastButtons(h,r==null||(p=r.parentId)==null?void 0:p.trim(),r==null||(m=r.parentTitle)==null?void 0:m.trim());elementor.templates.setToastConfig({show:!0,options:{message:v,buttons:y,position:{my:`right bottom`,at:`right-10 bottom-10`,of:`#elementor-template-library-modal .dialog-lightbox-widget-content`}}})}}},updateSourceState:function updateSourceState(r){var c,l;if((c=r.source)!=null&&c.length){var u=(l=this.getOption(`context`))==null?Q.SAVE:l;if(Q.SAVE===u){var p=r.source.at(-1);elementor.templates.setSourceSelection(p),elementor.templates.setFilter(`source`,p,!0)}}},getToastMessage:function getToastMessage(c,l,u){var p,m,h,g,v,y,b=`${c}_${l}`;return((p=u.source)==null?void 0:p.length)>1?(0,r.__)(`Template saved to your Site and Cloud Templates.`,`elementor`):(y=_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},`local_${Q.MOVE}`,this.getFormattedToastMessage(`moved to your Site Templates`,u.title)),`cloud_${Q.MOVE}`,this.getFormattedToastMessage(`moved to your Cloud Templates`,u.title)),`local_${Q.COPY}`,this.getFormattedToastMessage(`copied to your Site Templates`,u.title)),`cloud_${Q.COPY}`,this.getFormattedToastMessage(`copied to your Cloud Templates`,u.title)),`local_${Q.BULK_MOVE}`,this.getFormattedToastMessage(`moved to your Site Templates`,null,(m=u.from_template_id)==null?void 0:m.length)),`cloud_${Q.BULK_MOVE}`,this.getFormattedToastMessage(`moved to your Cloud Templates`,null,(h=u.from_template_id)==null?void 0:h.length)),`local_${Q.BULK_COPY}`,this.getFormattedToastMessage(`copied to your Site Templates`,null,(g=u.from_template_id)==null?void 0:g.length)),`cloud_${Q.BULK_COPY}`,this.getFormattedToastMessage(`copied to your Cloud Templates`,null,(v=u.from_template_id)==null?void 0:v.length))[b])!=null&&y},getFormattedToastMessage:function getFormattedToastMessage(c,l,u){return u===void 0?(0,r.sprintf)((0,r.__)(`%1$s %2$s.`,`elementor`),l?`"${l}"`:(0,r.__)(`Template`,`elementor`),c):(0,r.sprintf)((0,r.__)(`%1$d Template(s) %2$s.`,`elementor`),u,c)},getToastButtons:function getToastButtons(c,l,u){var p=this,m=parseInt(l,10)||null;return[{name:`template_after_save`,text:(0,r.__)(`View`,`elementor`),callback:function callback(){return p.navigateToSavedSource(c,m,u)}}]},navigateToSavedSource:function navigateToSavedSource(r,c,l){if(elementor.templates.setSourceSelection(r),elementor.templates.setFilter(`source`,r,!0),c){var u=new p({template_id:c,title:l});$e.route(`library/view-folder`,{model:u}),elementor.templates.layout.showTemplatesView(new m(elementor.templates.filterTemplates()));return}$e.routes.refreshContainer(`library`)},onSelectedFolderTextClick:function onSelectedFolderTextClick(){if(!this.folderCollectionView){this.onEllipsisIconClick();return}this.ui.foldersDropdown.is(`:visible`)?this.hideFoldersDropdown():this.ui.foldersDropdown.show()},onEllipsisIconClick:function onEllipsisIconClick(){var r=this;return _asyncToGenerator(u.default.mark(function _callee2(){return u.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!r.ui.foldersDropdown.is(`:visible`)){c.next=1;break}return r.hideFoldersDropdown(),r.updateEllipsisAriaExpanded(!1),c.abrupt(`return`);case 1:if(r.ui.foldersDropdown.show(),r.updateEllipsisAriaExpanded(!0),r.folderCollectionView){c.next=5;break}return r.folderCollectionView=new h({collection:new m}),r.addSpinner(),r.renderFolderDropdown(),c.prev=2,c.next=3,r.fetchFolders();case 3:return c.prev=3,r.removeSpinner(),r.disableSelectedFolder(),r.focusFirstFolderItem(),c.finish(3);case 4:c.next=6;break;case 5:r.focusFirstFolderItem();case 6:elementor.templates.eventManager.sendPageViewEvent({location:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.saveModalSelectFolder});case 7:case`end`:return c.stop()}},_callee2,null,[[2,,3,4]])}))()},getFolderItems:function getFolderItems(){return this.$(`.cloud-folder-selection-dropdown ul li:visible`)},focusFirstFolderItem:function focusFirstFolderItem(){var r=this.getFolderItems().first();r.length&&r.trigger(`focus`)},renderFolderDropdown:function renderFolderDropdown(){var r;this.ui.foldersListContainer.html((r=this.folderCollectionView.render())==null?void 0:r.el)},addSpinner:function addSpinner(){var r=new p({template_id:g,title:`<i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i>`});this.folderCollectionView.collection.add(r)},removeSpinner:function removeSpinner(){var r=this.folderCollectionView.collection.findWhere({template_id:g});r&&this.folderCollectionView.collection.remove(r)},fetchFolders:function fetchFolders(){var r=this;return new Promise(function(c){var l={data:{source:`cloud`,offset:r.folderCollectionView.collection.length-1},success:function success(l){r.folderCollectionView.collection.add(l==null?void 0:l.templates),r.shouldAddLoadMoreItem(l)&&r.addLoadMoreItem(),c(l)},error:function error(r){elementor.templates.showErrorDialog(r),c()}};elementorCommon.ajax.addRequest(`get_folders`,l)})},disableSelectedFolder:function disableSelectedFolder(){!Q.MOVE!==this.getOption(`context`)&&(!this.model||!Number.isInteger(this.model.get(`parentId`))||this.$(`.folder-list li[data-id="${this.model.get(`parentId`)}"]`).addClass(`disabled`))},onFoldersListClick:function onFoldersListClick(r){var c=r.target.dataset,l=c.id,u=c.value;if(!(!l||!u)){if(this.clickedOnLoadMore(l)){this.loadMoreFolders();return}this.handleFolderSelected(l,u)}},clickedOnLoadMore:function clickedOnLoadMore(r){return g===+r},handleFolderSelected:function handleFolderSelected(r,c){this.highlightSelectedFolder(r),this.hideFoldersDropdown(),this.ui.ellipsisIcon.hide(),this.ui.selectedFolderText.html(c),this.ui.selectedFolder.show(),this.ui.hiddenInputSelectedFolder.val(r),this.$(`.source-selections-input #cloud`).prop(`checked`,!0),this.maybeEnableSaveButton()},highlightSelectedFolder:function highlightSelectedFolder(r){this.clearSelectedFolder(),this.$(`.folder-list li[data-id="${r}"]`).addClass(`selected`)},clearSelectedFolder:function clearSelectedFolder(){this.$(`.folder-list li.selected`).removeClass(`selected`)},onRemoveFolderSelectionClick:function onRemoveFolderSelectionClick(){this.clearSelectedFolder(),this.ui.selectedFolderText.html(``),this.ui.selectedFolder.hide(),this.ui.ellipsisIcon.show(),this.ui.hiddenInputSelectedFolder.val(``),this.hideFoldersDropdown()},loadMoreFolders:function loadMoreFolders(){var r=this;return _asyncToGenerator(u.default.mark(function _callee3(){return u.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return r.removeLoadMoreItem(),r.addSpinner(),c.prev=1,c.next=2,r.fetchFolders();case 2:return c.prev=2,r.removeSpinner(),r.disableSelectedFolder(),c.finish(2);case 3:case`end`:return c.stop()}},_callee3,null,[[1,,2,3]])}))()},shouldAddLoadMoreItem:function shouldAddLoadMoreItem(r){return this.folderCollectionView.collection.length<(r==null?void 0:r.total)},addLoadMoreItem:function addLoadMoreItem(){this.folderCollectionView.collection.add({template_id:g,title:(0,r.__)(`Load More`,`elementor`)})},removeLoadMoreItem:function removeLoadMoreItem(){var r=this.folderCollectionView.collection.findWhere({template_id:g});r&&this.folderCollectionView.collection.remove(r)},handleSourceSelectionChange:function handleSourceSelectionChange(r){this.maybeAllowOnlyOneCheckboxToBeChecked(r),this.maybeEnableSaveButton()},maybeAllowOnlyOneCheckboxToBeChecked:function maybeAllowOnlyOneCheckboxToBeChecked(r){var c=this;if(!this.moreThanOneCheckboxCanBeChecked()){var l=r.currentTarget;this.ui.sourceSelectionCheckboxes.each(function(r,u){var p=c.$(u).closest(`.source-selections-input`);u!==l&&(l.checked?(p.addClass(`disabled`),u.checked=!1):p.removeClass(`disabled`))})}},moreThanOneCheckboxCanBeChecked:function moreThanOneCheckboxCanBeChecked(){return Q.SAVE===this.getOption(`context`)||elementor.templates.getFilter(`source`)!==`cloud`},showInfoTip:function showInfoTip(){var c=this;this.infoTipDialog&&this.infoTipDialog.hide();var l=elementor.templates.hasCloudLibraryQuota()?(0,r.__)(`Upgrade your subscription to get more space and reuse saved assets across all your sites.`,`elementor`):(0,r.__)(`Upgrade your subscription to access Cloud Templates and reuse saved assets across all your sites.`,`elementor`),u=elementor.templates.hasCloudLibraryQuota()?`https://go.elementor.com/go-pro-cloud-templates-save-to-100-usage-notice`:`https://go.elementor.com/go-pro-cloud-templates-save-to-free-tooltip/`;this.infoTipDialog=elementor.dialogsManager.createWidget(`buttons`,{id:`elementor-library--infotip__dialog`,effects:{show:`show`,hide:`hide`},position:{of:this.ui.infoIcon,at:`top-75`}}).setMessage(l).addButton({name:`learn_more`,text:(0,r.__)(`Upgrade Now`,`elementor`),classes:``,callback:function callback(){open(u,`_blank`),c.onUpgradeBadgeClicked()}}),this.infoTipDialog.getElements(`header`).remove(),this.infoTipDialog.show()},hideInfoTip:function hideInfoTip(){this.infoTipDialog&&this.infoTipDialog.hide()},getConnectInfoTipPosition:function getConnectInfoTipPosition(){return`top+80`},showConnectInfoTip:function showConnectInfoTip(){this.connectInfoTipDialog&&this.connectInfoTipDialog.hide(),this.connectInfoTipDialog=elementor.dialogsManager.createWidget(`buttons`,{id:`elementor-library--connect_infotip__dialog`,effects:{show:`show`,hide:`hide`},position:{of:this.ui.connectBadge,at:this.getConnectInfoTipPosition()}}).setMessage((0,r.__)(`To access the Cloud Templates Library you must have an active Elementor Pro subscription`,`elementor`)+` <i>`+(0,r.__)(`and`,`elementor`)+`</i> `+(0,r.__)(`connect your site.`,`elementor`)),this.connectInfoTipDialog.getElements(`header`).remove(),this.connectInfoTipDialog.getElements(`buttonsWrapper`).remove(),this.addVariantClass(this.connectInfoTipDialog.getElements(`widget`)),this.connectInfoTipDialog.show()},addVariantClass:function addVariantClass(){return``},hideConnectInfoTip:function hideConnectInfoTip(){this.connectInfoTipDialog&&this.connectInfoTipDialog.hide()},handleElementorConnect:function handleElementorConnect(){elementor.templates.eventManager.sendPageViewEvent({location:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.saveModalSelectConnect}),this.ui.connect.elementorConnect({success:function success(){elementor.config.library_connect.is_connected=!0,$e.run(`library/close`),elementor.notifications.showToast({message:(0,r.__)(`Connected successfully.`,`elementor`)})},error:function error(){elementor.config.library_connect.is_connected=!1}})},onTemplateNameInputChange:function onTemplateNameInputChange(){this.maybeEnableSaveButton()},updateSubmitButtonState:function updateSubmitButtonState(r){this.ui.submitButton.toggleClass(`e-primary`,!r),this.ui.submitButton.prop(`disabled`,r)},hideFoldersDropdown:function hideFoldersDropdown(){this.ui.foldersDropdown.hide(),this.updateEllipsisAriaExpanded(!1)},bindDocumentClickHandler:function bindDocumentClickHandler(){this.documentClickHandler=this.hideDropdownIfClickOutside.bind(this),elementor.templates.layout.modalContent.$el.on(`click`,this.documentClickHandler)},unbindDocumentClickHandler:function unbindDocumentClickHandler(){this.documentClickHandler&&(elementor.templates.layout.modalContent.$el.off(`click`,this.documentClickHandler),this.documentClickHandler=null)},hideDropdownIfClickOutside:function hideDropdownIfClickOutside(r){if(this.ui.foldersDropdown.is(`:visible`)){var c=jQuery(r.target),l=c.closest(this.ui.foldersDropdown).length>0,u=c.closest(this.ui.ellipsisIcon).length>0,p=c.closest(this.ui.selectedFolderText).length>0;!l&&!u&&!p&&this.hideFoldersDropdown()}},onUpgradeBadgeClicked:function onUpgradeBadgeClicked(){var r=elementor.templates.hasCloudLibraryQuota()?`save to-max`:`save to-free`;elementor.templates.eventManager.sendUpgradeClickedEvent({secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.saveModal,upgrade_position:r})}})})),im=__commonJSMin(((c,l)=>{var u=rm();l.exports=u.extend({id:`elementor-template-library-save-template-variant-b`,template:`#tmpl-elementor-template-library-save-template-variant-b`,ui:function ui(){return _.extend(u.prototype.ui.apply(this,arguments),{selectFolderLink:`.select-folder-link`,cloudAccountBadge:`.cloud-account-badge`,siteAccountBadge:`.site-account-badge`,connect:`#elementor-template-library-connect__badge-variant-b`})},events:function events(){return _.extend(u.prototype.events.apply(this,arguments),{"click @ui.selectFolderLink":`onEllipsisIconClick`,"mouseenter @ui.upgradeBadge":`showInfoTip`,"mouseenter @ui.cloudAccountBadge":`showCloudAccountBadgeTooltip`,"mouseenter @ui.siteAccountBadge":`showSiteAccountBadgeTooltip`,"mouseleave @ui.cloudAccountBadge":`hideCloudAccountBadgeTooltip`,"mouseleave @ui.siteAccountBadge":`hideSiteAccountBadgeTooltip`,"mouseleave @ui.upgradeBadge":`hideInfoTip`})},getConnectInfoTipPosition:function getConnectInfoTipPosition(){return`top-50`},addVariantClass:function addVariantClass(r){return r.addClass(`variant-b`)},showInfoTip:function showInfoTip(){this.infoTipDialog&&this.infoTipDialog.hide();var c=elementor.templates.hasCloudLibraryQuota()?(0,r.__)(`Upgrade your subscription to get more space and reuse saved assets across all your sites.`,`elementor`):(0,r.__)(`Upgrade your subscription to access Cloud Templates and reuse saved assets across all your sites.`,`elementor`);this.infoTipDialog=elementor.dialogsManager.createWidget(`buttons`,{id:`elementor-library--infotip__dialog`,effects:{show:`show`,hide:`hide`},position:{of:this.ui.upgradeBadge,at:`top-50`}}).setMessage(c),this.infoTipDialog.getElements(`header`).remove(),this.infoTipDialog.getElements(`buttonsWrapper`).remove(),this.infoTipDialog.getElements(`widget`).addClass(`variant-b`),this.infoTipDialog.show(),this.sendCTBadgeEvent(`cloud`)},showCloudAccountBadgeTooltip:function showCloudAccountBadgeTooltip(){this.cloudAccountBadgeDialog&&this.cloudAccountBadgeDialog.hide();var c=elementor.config.library_connect.is_connected?elementor.config.library_connect.user_email:(0,r.__)(`connected`,`elementor`),l=(0,r.sprintf)((0,r.__)(`Only %s Elementor account can access Cloud Templates from any connected site.`,`elementor`),c);this.cloudAccountBadgeDialog=elementor.dialogsManager.createWidget(`buttons`,{id:`elementor-library--cloud-upgrade__dialog`,effects:{show:`show`,hide:`hide`},position:{of:this.ui.cloudAccountBadge,at:`top-55`}}).setMessage(l),this.cloudAccountBadgeDialog.getElements(`widget`).addClass(`variant-b`),this.cloudAccountBadgeDialog.getElements(`header`).remove(),this.cloudAccountBadgeDialog.getElements(`buttonsWrapper`).remove(),this.cloudAccountBadgeDialog.show()},hideCloudAccountBadgeTooltip:function hideCloudAccountBadgeTooltip(){this.cloudAccountBadgeDialog&&this.cloudAccountBadgeDialog.hide()},showSiteAccountBadgeTooltip:function showSiteAccountBadgeTooltip(){this.siteAccountBadgeDialog&&this.siteAccountBadgeDialog.hide();var c=(0,r.__)(`Authorized users on this site can access Site Templates.`,`elementor`);this.siteAccountBadgeDialog=elementor.dialogsManager.createWidget(`buttons`,{id:`elementor-library--site-info__dialog`,effects:{show:`show`,hide:`hide`},position:{of:this.ui.siteAccountBadge,at:`top-35`}}).setMessage(c),this.siteAccountBadgeDialog.getElements(`widget`).addClass(`variant-b`),this.siteAccountBadgeDialog.getElements(`header`).remove(),this.siteAccountBadgeDialog.getElements(`buttonsWrapper`).remove(),this.siteAccountBadgeDialog.show(),this.sendCTBadgeEvent(`site`)},hideSiteAccountBadgeTooltip:function hideSiteAccountBadgeTooltip(){this.siteAccountBadgeDialog&&this.siteAccountBadgeDialog.hide()},sendCTBadgeEvent:function sendCTBadgeEvent(r){elementor.templates.eventManager.sendCTBadgeEvent({ct_badge_hover_position:this.getOption(`context`),ct_badge_type:r,ct_position_state:this.getPositionState()})},getPositionState:function getPositionState(){return elementor.config.library_connect.is_connected?!elementor.templates.hasCloudLibraryQuota()||this.cloudMaxCapacityReached()?`upgrade`:`eligible`:`connect`}})}));function showJsonUploadWarningMessageIfNeeded(r){var c=r.introductionMap,l=r.IntroductionClass,u=r.waitForSetViewed,p=u!==void 0&&u;if(sm||(sm=createGenericWarningModal(l)),sm.setIntroductionMap(c),sm.introductionViewed)return Promise.resolve();var m=sm.getDialog();return new Promise(function(r,c){m.onHide=function(){c()},m.onConfirm=_asyncToGenerator(am.default.mark(function _callee(){return am.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!m.getElements(`checkbox-dont-show-again`).prop(`checked`)){c.next=3;break}if(!p){c.next=2;break}return c.next=1,sm.setViewed();case 1:c.next=3;break;case 2:sm.setViewed();case 3:r(),m.hide();case 4:case`end`:return c.stop()}},_callee)})),m.onCancel=function(){m.hide()},sm.show()})}function createGenericWarningModal(c){var l,u,p=`e-generic-warning-modal-for-json-upload`,m=new c({introductionKey:om,dialogType:`confirm`,dialogOptions:{id:p,headerMessage:(0,r.__)(`Warning: JSON files may be unsafe`,`elementor`),message:(0,r.__)(`Uploading JSON files from unknown sources can be harmful and put your site at risk. For maximum safety, only install JSON files from trusted sources.`,`elementor`),effects:{show:`fadeIn`,hide:`fadeOut`},hide:{onBackgroundClick:!0,onButtonClick:!1},strings:{confirm:(0,r.__)(`Continue`,`elementor`),cancel:(0,r.__)(`Cancel`,`elementor`)}}}),h=createCheckboxAndLabel(p),g=h.checkbox,v=h.label;return m.getDialog().addElement(`checkbox-dont-show-again`,g),(l=m.getDialog().getElements(`message`))==null||(u=l.append)==null||u.call(l,v),m}function createCheckboxAndLabel(c){var l=`${c}-dont-show-again`,u=document.createElement(`input`);u.type=`checkbox`,u.name=l,u.id=l;var p=document.createElement(`label`);return p.htmlFor=l,p.textContent=(0,r.__)(`Do not show this message again`,`elementor`),p.style.display=`block`,p.style.marginTop=`20px`,p.style.marginBottom=`20px`,p.prepend(u),{checkbox:u,label:p}}var am,om,sm,cm=__esmMin((()=>{N(),am=__toESM(R()),om=`upload_json_warning_generic_message`,sm=null})),lm=__commonJSMin(((c,l)=>{N();var u=__toESM(R());Gs(),cm(),Ep(),l.exports=Marionette.ItemView.extend({tagName:`main`,template:`#tmpl-elementor-template-library-import`,id:`elementor-template-library-import`,ui:{uploadForm:`#elementor-template-library-import-form`,fileInput:`#elementor-template-library-import-form-input`,icon:`.elementor-template-library-blank-icon i`},events:{"change @ui.fileInput":`onFileInputChange`},droppedFiles:null,submitForm:function submitForm(){var r=this,c;this.droppedFiles?(c=this.droppedFiles[0],this.droppedFiles=null):(c=this.ui.fileInput[0].files[0],this.ui.uploadForm[0].reset());var l=new FileReader;l.onload=function(l){return r.importTemplate(c.name,l.target.result.replace(/^[^,]+,/,``))},l.readAsDataURL(c)},importTemplate:function importTemplate(c,l){var p=this;return _asyncToGenerator(u.default.mark(function _callee(){var m,h,g,v,y,b,x;return u.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return m=elementor.templates.layout,h=elementor.templates.getFilter(`source`),p.options={data:{fileName:c,fileData:l,source:h},success:function success(l){elementor.templates.clearLastRemovedItems(),elementor.templates.getTemplatesCollection().add(l),elementor.templates.setToastConfig({show:!0,options:{message:(0,r.sprintf)((0,r.__)(`You successfully imported %1$d template(s).`,`elementor`),l.length),position:{my:`right bottom`,at:`right-10 bottom-10`,of:`#elementor-template-library-modal .dialog-lightbox-widget-content`}}}),$e.route(`library/templates/my-templates`),elementor.templates.triggerQuotaUpdate(),elementor.templates.eventManager.sendTemplateImportEvent({library_type:h,file_type:c.split(`.`).pop(),template_count:l.length})},error:function error(r){elementor.templates.showErrorDialog(r),m.showImportView()},complete:function complete(){m.hideLoadingView()}},u.next=1,showJsonUploadWarningMessageIfNeeded({introductionMap:window.elementor.config.user.introduction,IntroductionClass:window.elementorModules.editor.utils.Introduction});case 1:if(!c.endsWith(`.json`)){u.next=8;break}if(u.prev=2,g=JSON.parse(atob(l)),!elementor.templates.hasGlobalStyles(g)){u.next=6;break}return u.prev=3,u.next=4,showGlobalStylesDialog();case 4:v=u.sent,y=v.mode,p.options.data.import_mode=y,u.next=6;break;case 5:return u.prev=5,u.catch(3),u.abrupt(`return`);case 6:u.next=8;break;case 7:u.prev=7,x=u.catch(2),console.warn(`Failed to parse template JSON for global styles check:`,x);case 8:elementorCommon.config.filesUpload.unfilteredFiles?p.sendImportRequest():(b=Ws.getUnfilteredFilesNotEnabledImportTemplateDialog(function(){return p.sendImportRequest()}),b.show());case 9:case`end`:return u.stop()}},_callee,null,[[2,7],[3,5]])}))()},sendImportRequest:function sendImportRequest(){elementorCommon.ajax.addRequest(`import_template`,this.options),elementor.templates.layout.showLoadingView()},onRender:function onRender(){this.ui.uploadForm.on({"drag dragstart dragend dragover dragenter dragleave drop":this.onFormActions.bind(this),dragenter:this.onFormDragEnter.bind(this),"dragleave drop":this.onFormDragLeave.bind(this),drop:this.onFormDrop.bind(this)}),this.resolveIcon(),elementor.templates.eventManager.sendPageViewEvent({location:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.importModal})},resolveIcon:function resolveIcon(){var r=(elementor.templates.getFilter(`source`)||`local`)===`local`?`eicon-library-upload`:`eicon-library-import`;this.ui.icon.removeClass().addClass(r)},onFormActions:function onFormActions(r){r.preventDefault(),r.stopPropagation()},onFormDragEnter:function onFormDragEnter(){this.ui.uploadForm.addClass(`elementor-drag-over`)},onFormDragLeave:function onFormDragLeave(r){jQuery(r.relatedTarget).closest(this.ui.uploadForm).length||this.ui.uploadForm.removeClass(`elementor-drag-over`)},onFormDrop:function onFormDrop(r){this.droppedFiles=r.originalEvent.dataTransfer.files,this.submitForm()},onFileInputChange:function onFileInputChange(){this.submitForm()}})})),um=__commonJSMin(((c,l)=>{l.exports=Marionette.ItemView.extend({tagName:`main`,template:`#tmpl-elementor-template-library-connect`,id:`elementor-template-library-connect`,ui:{connect:`#elementor-template-library-connect__button`,thumbnails:`#elementor-template-library-connect-thumbnails`},templateHelpers:function templateHelpers(){return this.getOption(`texts`)},onRender:function onRender(){var c=this;elementor.templates.eventManager.sendPageViewEvent({location:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.cloudTabConnect}),this.ui.connect.elementorConnect({parseUrl:function parseUrl(r){return r.replace(`%%template_type%%`,c.model.get(`type`))},success:function success(){elementor.config.library_connect.is_connected=!0,c.getOption(`model`)?$e.run(`library/insert-template`,{model:c.getOption(`model`)}):($e.run(`library/close`),elementor.notifications.showToast({message:(0,r.__)(`Connected successfully.`,`elementor`)}))},error:function error(){elementor.config.library_connect.is_connected=!1}})}})})),dm=__commonJSMin(((c,l)=>{N();var u=__toESM(R());l.exports=Marionette.ItemView.extend({tagName:`main`,template:`#tmpl-elementor-template-library-connect-states`,id:`elementor-template-library-connect-states`,ui:{selectSourceFilter:`.elementor-template-library-filter-select-source .source-option`,title:`.elementor-template-library-blank-title`,message:`.elementor-template-library-blank-message`,icon:`.elementor-template-library-blank-icon`,button:`.elementor-template-library-cloud-empty__button`,cloudBadge:`.elementor-template-library-connect-states-badge .source-option-badge.cloud-badge`},events:{"click @ui.selectSourceFilter":`onSelectSourceFilterChange`,"click @ui.button":`onButtonClick`},modesStrings:function modesStrings(){var c,l,u,p,m,h,g,v=this.getDefaultIcon();return{notConnected:{title:(c=(l=elementorAppConfig)==null||(l=l[`cloud-library`])==null?void 0:l.library_connect_title_copy)==null?(0,r.__)(`Connect to your Elementor account`,`elementor`):c,message:(u=(p=elementorAppConfig)==null||(p=p[`cloud-library`])==null?void 0:p.library_connect_sub_title_copy)==null?(0,r.__)(`Then you can find all your templates in one convenient library.`,`elementor`):u,icon:v,button:`<a class="elementor-button e-primary connect-button" href="${(m=elementorAppConfig)==null||(m=m[`cloud-library`])==null?void 0:m.library_connect_url}" target="_blank">${(h=(g=elementorAppConfig)==null||(g=g[`cloud-library`])==null?void 0:g.library_connect_button_copy)==null?(0,r.__)(`Connect`,`elementor`):h}</a>`},connectedNoQuota:{title:(0,r.__)(`It’s time to level up`,`elementor`),message:(0,r.__)(`Elementor Pro plans come with Cloud Templates.`,`elementor`)+`<br>`+(0,r.__)(`Upgrade now to re-use your templates on all the websites you’re working on.`,`elementor`),icon:`<i class="eicon-library-subscription-upgrade" aria-hidden="true" title="${(0,r.__)(`Upgrade now`,`elememntor`)}"></i>`,button:`<a class="elementor-button e-accent" href="https://go.elementor.com/go-pro-cloud-templates-cloud-tab" target="_blank">${(0,r.__)(`Upgrade now`,`elementor`)}</a>`},deactivated:{title:(0,r.__)(`Your library has been deactivated`,`elementor`),message:(0,r.__)(`This is because you don’t have an active subscription.`,`elementor`)+`<br>`+(0,r.__)(`Your templates are saved for 90 days from the day your subscription expires,`,`elementor`)+`<br>`+(0,r.__)(`then they’ll be gone forever.`,`elementor`),icon:`<i class="eicon-library-subscription-upgrade" aria-hidden="true" title="${(0,r.__)(`Renew my subscription`,`elememntor`)}"></i>`,button:`<a class="elementor-button e-accent" href="https://go.elementor.com/renew-license-cloud-templates-cloud-tab" target="_blank">${(0,r.__)(`Renew my subscription`,`elementor`)}</a>`}}},getDefaultIcon:function getDefaultIcon(){return`<i class="eicon-library-cloud-connect" aria-hidden="true" title="${(0,r.__)(`Empty folder`,`elememntor`)}"></i>`},getCurrentMode:function getCurrentMode(){return elementor.config.library_connect.is_connected?elementor.templates.cloudLibraryIsDeactivated()?`deactivated`:`connectedNoQuota`:`notConnected`},onRender:function onRender(){var r;this.updateTemplateMarkup(),this.handleElementorConnect(),this.handleCloudBadge(),(r=elementor.templates.layout.getHeaderView())==null||(r=r.tools)==null||(r=r.$el[0])==null||(r=r.classList)==null||r.add(`e-hidden-disabled`),elementor.templates.eventManager.sendPageViewEvent({location:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.cloudTabUpgrade})},handleCloudBadge:function handleCloudBadge(){var r=this;return _asyncToGenerator(u.default.mark(function _callee(){var c,l;return u.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if((c=r.ui.cloudBadge)!=null&&c.length){u.next=1;break}return u.abrupt(`return`);case 1:return u.next=2,elementor.templates.eventManager.getSaveTemplateExperimentVariant();case 2:l=u.sent,r.ui.cloudBadge.toggle(l===`B`);case 3:case`end`:return u.stop()}},_callee)}))()},updateTemplateMarkup:function updateTemplateMarkup(){var r=this.modesStrings()[this.getCurrentMode()];this.ui.title.html(r.title),this.ui.message.html(r.message),this.ui.button.html(r.button),this.ui.icon.html(r.icon)},handleElementorConnect:function handleElementorConnect(){var c=this.$el.find(`.connect-button`);c.length&&c.elementorConnect({popup:{width:726,height:534},success:function success(){elementor.config.library_connect.is_connected=!0,elementor.notifications.showToast({message:(0,r.__)(`Connected successfully.`,`elementor`)}),$e.routes.refreshContainer(`library`)},error:function error(){elementor.config.library_connect.is_connected=!1}})},onSelectSourceFilterChange:function onSelectSourceFilterChange(r){elementor.templates.onSelectSourceFilterChange(r)},onButtonClick:function onButtonClick(){elementor.templates.eventManager.sendUpgradeClickedEvent({secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.cloudTab,upgradePosition:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.cloudTab})},onDestroy:function onDestroy(){var r;(r=elementor.templates.layout.getHeaderView())==null||(r=r.tools)==null||(r=r.$el[0])==null||(r=r.classList)==null||r.remove(`e-hidden-disabled`)}})})),fm=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({tagName:`main`,template:`#tmpl-elementor-template-library-preview`,id:`elementor-template-library-preview`,ui:{iframe:`> iframe`},onRender:function onRender(){this.ui.iframe.attr(`src`,this.getOption(`url`))}})})),pm=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-template-library-navigation-container`,className:`elementor-template-library-navigation-container`,ui:{title:`.elementor-template-library-current-folder-title`,backButton:`.elementor-template-library-navigation-back-button`},events:{"click @ui.backButton":`onBackButtonClick`},render:function render(){return elementor.templates.getFilter(`parent`)===null?this:Marionette.ItemView.prototype.render.call(this)},onRender:function onRender(){var r;this.ui.title.text((r=elementor.templates.getFilter(`parent`))==null?void 0:r.title)},onBackButtonClick:function onBackButtonClick(){elementor.templates.setFilter(`parent`,null),$e.route(`library/templates/my-templates`)}})})),mm=__commonJSMin(((c,l)=>{N();var u=__toESM(R());Tp();var p=Dp(),m=Pp(),h=Ip(),g=Lp(),v=Zp(),y=rm(),b=im(),x=lm(),S=um(),C=dm(),w=fm(),T=pm();function resolveSaveTemplateByVariant(r){switch(r){case`B`:return b;default:return y}}l.exports=elementorModules.common.views.modal.Layout.extend({getModalOptions:function getModalOptions(){var r,c,l=(r=(c=window)==null||(c=c.elementor)==null||(c=c.config)==null||(c=c.document)==null||(c=c.panel)==null?void 0:c.allow_closing_remote_library)==null||r;return{id:`elementor-template-library-modal`,hide:{onOutsideClick:l,onBackgroundClick:l,onEscKeyPress:l,ignore:`.dialog-widget-content, .dialog-buttons-undo_bulk_delete, .dialog-buttons-template_after_save, #elementor-library--infotip__dialog, #elementor-template-library-rename-dialog, #elementor-template-library-delete-dialog`}}},initModal:function initModal(){var r=this;elementorModules.common.views.modal.Layout.prototype.initModal.call(this);var c=this.modal.getElements(`widget`);c.length&&c.attr(`aria-modal`)===`true`&&c.attr(`role`,`dialog`),this.modal.on(`show`,function(){var c=r.modal.getElements(`widget`);c.length&&c.trigger(`focus`)}),c.length&&c.on(`keydown`,function(r){if(r.key===`Tab`){var l=c.find(`a[href], button, input, select, textarea, [tabindex]`).filter(`:visible`).not(`[tabindex="-1"], [disabled]`);if(l.length){var u=l.first(),p=l.last();r.shiftKey?(u[0]===r.target||c[0]===r.target)&&(r.preventDefault(),p.trigger(`focus`)):p[0]===r.target&&(r.preventDefault(),u.trigger(`focus`))}}})},getLogoOptions:function getLogoOptions(){return{title:(0,r.__)(`Library`,`elementor`),click:function click(){$e.run(`library/open`,{toDefault:!0})}}},getTemplateActionButton:function getTemplateActionButton(r){var c=elementor.config.library_connect.subscription_plans,l=elementor.config.library_connect.base_access_tier,u=r.accessTier,p=`#tmpl-elementor-template-library-`+(l===u?`insert-button`:`upgrade-plan-button`);p=elementor.hooks.applyFilters(`elementor/editor/template-library/template/action-button`,p,r);var m=Marionette.TemplateCache.get(p),h=c[u],g=elementorAppConfig.hasPro?`Upgrade`:`Go ${h.label}`;try{var v=new URL(h.promotion_url),y=v.searchParams.toString(),b=elementor.hooks.applyFilters(`elementor/editor/template-library/template/promotion-link-search-params`,y,r);return Marionette.Renderer.render(m,{promotionText:g,promotionLink:`${v.origin}${v.pathname}?${b}`})}catch(r){return Marionette.Renderer.render(m,{promotionText:g,promotionLink:h.promotion_url})}},setHeaderDefaultParts:function setHeaderDefaultParts(){var r=this.getHeaderView();r.tools.show(new p),r.menuArea.show(new m),this.showLogo()},showTemplatesView:function showTemplatesView(r){var c=this.modalContent.currentView,l=c&&c._restoreFocusToSourceFilter,u=!c;if(this.modalContent.show(new v({collection:r})),this.syncTabpanelAriaLabelledby(),l){var p=this.modalContent.currentView;if(p&&p.ui.selectSourceFilter){var m=p.ui.selectSourceFilter.filter(`[aria-checked="true"]`);m.length&&m.trigger(`focus`)}}else u&&this.focusFirstElement()},syncTabpanelAriaLabelledby:function syncTabpanelAriaLabelledby(){var r,c,l=(r=$e.components.get(`library`))==null?void 0:r.currentTab,u=(c=this.modalContent.currentView)==null?void 0:c.$childViewContainer;l&&u!=null&&u.length&&u.attr(`aria-labelledby`,`tab-${l}`)},focusFirstElement:function focusFirstElement(){var r=this.modal.getElements(`widget`);if(r.length){var c=r.find(`button, a, input, select, [tabindex="0"]`).filter(`:visible`).first();c.length?c.trigger(`focus`):r.attr(`tabindex`,`-1`).trigger(`focus`)}},updateViewCollection:function updateViewCollection(r){var c;this.modalContent.currentView.collection.reset(r),this.modalContent.currentView.ui.navigationContainer.html((c=new T().render())==null?void 0:c.el);var l=this.modal.getElements(`widget`);l.length&&!l[0].contains(l[0].ownerDocument.activeElement)&&this.focusFirstElement()},addTemplates:function addTemplates(r){this.modalContent.currentView.collection.add(r,{merge:!0})},showImportView:function showImportView(){var r=this.getHeaderView();r.menuArea.reset(),this.modalContent.show(new x),r.logoArea.show(new g)},showConnectView:function showConnectView(r){this.getHeaderView().menuArea.reset(),this.modalContent.show(new S(r))},showCloudStateView:function showCloudStateView(){elementor.templates.layout.hideLoadingView(),this.modalContent.show(new C)},showSaveTemplateView:function showSaveTemplateView(r){var c=arguments,l=this;return _asyncToGenerator(u.default.mark(function _callee(){var p,m,h,v;return u.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return p=c.length>1&&c[1]!==void 0?c[1]:Q.SAVE,m=l.getHeaderView(),m.menuArea.reset(),Q.SAVE!==p&&m.logoArea.show(new g),u.next=1,elementor.templates.eventManager.getSaveTemplateExperimentVariant();case 1:h=u.sent,v=resolveSaveTemplateByVariant(h),elementor.templates.eventManager.startSaveTemplateExperiment(h),l.modalContent.show(new v({model:r,context:p}));case 2:case`end`:return u.stop()}},_callee)}))()},showPreviewView:function showPreviewView(r){this.modalContent.show(new w({url:r.get(`url`)}));var c=this.getHeaderView();c.menuArea.reset(),c.tools.show(new h({model:r})),c.logoArea.show(new g)},showFolderView:function showFolderView(r){return _asyncToGenerator(u.default.mark(function _callee2(){return u.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,elementor.templates.layout.showLoadingView(),c.next=1,elementor.templates.getFolderTemplates(r);case 1:return c.prev=1,elementor.templates.layout.hideLoadingView(),c.finish(1);case 2:case`end`:return c.stop()}},_callee2,null,[[0,,1,2]])}))()},createScreenshotIframe:function createScreenshotIframe(r){var c=document.createElement(`iframe`);return c.src=r,c.width=`1200`,c.height=`500`,c.style=`visibility: hidden;`,document.body.appendChild(c),c},handleBulkActionBarUi:function handleBulkActionBarUi(){this.modalContent.currentView.$(`.bulk-selection-item-checkbox:checked`).length===0?(this.modalContent.currentView.$el.addClass(`no-bulk-selections`),this.modalContent.currentView.$el.removeClass(`has-bulk-selections`)):(this.modalContent.currentView.$el.addClass(`has-bulk-selections`),this.modalContent.currentView.$el.removeClass(`no-bulk-selections`)),this.handleBulkActionBar()},handleBulkActionBar:function handleBulkActionBar(){var c,l=(c=elementor.templates.getBulkSelectionItems().size)==null?0:c,u=l===0?`none`:`flex`,p=`${l} Selected`,m=l===0?``:`${l} ${l===1?(0,r.__)(`template`,`elementor`):(0,r.__)(`templates`,`elementor`)} ${(0,r.__)(`selected. Bulk actions available.`,`elementor`)}`;this.modalContent.currentView.ui.bulkSelectedCount.html(p),m&&this.modalContent.currentView.ui.bulkSelectedCount.length&&this.modalContent.currentView.ui.bulkSelectedCount.attr(`aria-label`,m),this.modalContent.currentView.ui.bulkSelectionActionBar.css(`display`,u);var h=l===0?`flex`:`none`;this.modalContent.currentView.ui.navigationContainer.css(`display`,h)},selectAllCheckboxMinus:function selectAllCheckboxMinus(){this.isListView()&&this.modalContent.currentView.ui.bulkSelectAllCheckbox.addClass(`checkbox-minus`)},selectAllCheckboxNormal:function selectAllCheckboxNormal(){this.isListView()&&this.modalContent.currentView.ui.bulkSelectAllCheckbox.removeClass(`checkbox-minus`)},isListView:function isListView(){return elementor.templates.getViewSelection()===`list`},resetSortingUI:function resetSortingUI(){var r;Array.from(((r=this.modalContent.currentView.ui)==null?void 0:r.orderInputs)||[]).forEach(function(r){r.checked=!1})}})}));function ownKeys$3(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$3(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$3(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$3(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}function _callSuper$24(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$24()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$24(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$24=function _isNativeReflectConstruct(){return!!r})()}function _superPropGet$4(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 hm,gm,_m,vm=__esmMin((()=>{N(),P(),b(),w(),E(),D(),k(),A(),hm=__toESM(R()),ls(),_p(),xp(),Tp(),Ep(),kn(),__name(ownKeys$3,`ownKeys`),__name(_objectSpread$3,`_objectSpread`),__name(_callSuper$24,`_callSuper`),__name(_isNativeReflectConstruct$24,`_isNativeReflectConstruct`),__name(_superPropGet$4,`_superPropGet`),gm=mm(),_m=function(c){function Component(){return _classCallCheck(this,Component),_callSuper$24(this,Component,arguments)}return _inherits(Component,c),_createClass(Component,[{key:`__construct`,value:function __construct(r){_superPropGet$4(Component,`__construct`,this,3)([r]),elementor.on(`document:loaded`,this.onDocumentLoaded.bind(this)),$e.data.deleteCache(this,`library`),elementor.channels.templates.on(`quota:update`,function(){var r=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).force;$e.components.get(`cloud-library`).utils.setQuotaConfig(r)})}},{key:`getNamespace`,value:function getNamespace(){return`library`}},{key:`defaultTabs`,value:function defaultTabs(){return{"templates/blocks":{title:(0,r.__)(`Blocks`,`elementor`),getFilter:function getFilter(){return{source:`remote`,type:`block`,subtype:elementor.config.document.remoteLibrary.category}}},"templates/pages":{title:(0,r.__)(`Pages`,`elementor`),filter:{source:`remote`,type:`page`}},"templates/my-templates":{title:(0,r.__)(`Templates`,`elementor`),getFilter:function getFilter(){var r,c;return{source:(r=elementor.templates.getSourceSelection())==null?`local`:r,view:(c=elementor.templates.getViewSelection())==null?`list`:c}}}}}},{key:`defaultRoutes`,value:function defaultRoutes(){var c=this;return{import:function _import(){c.manager.layout.showImportView()},"save-template":function saveTemplate(r){var l;c.manager.layout.showSaveTemplateView(r.model,(l=r.context)==null?Q.SAVE:l)},preview:function preview(r){c.manager.layout.showPreviewView(r.model)},connect:function connect(l){l.texts={title:(0,r.__)(`Connect to Template Library`,`elementor`),message:(0,r.__)(`Access this template and our entire library by creating a free personal account`,`elementor`),button:(0,r.__)(`Get Started`,`elementor`)},c.manager.layout.showConnectView(l)},"view-folder":function viewFolder(r){c.manager.layout.showFolderView(r)}}}},{key:`defaultCommands`,value:function defaultCommands(){return _objectSpread$3(_objectSpread$3({},_superPropGet$4(Component,`defaultCommands`,this,3)([])),this.importCommands(gp))}},{key:`defaultData`,value:function defaultData(){return this.importCommands(bp)}},{key:`defaultShortcuts`,value:function defaultShortcuts(){return{open:{keys:`ctrl+shift+l`}}}},{key:`onDocumentLoaded`,value:function onDocumentLoaded(r){this.setDefaultRoute(r.config.remoteLibrary.default_route),this.maybeOpenLibrary()}},{key:`renderTab`,value:function renderTab(r){var c=this.tabs[r],l=c.getFilter?c.getFilter():c.filter;this.trackLibraryNavigation(r,c.title),this.currentTab=r,this.manager.setScreen(l)}},{key:`trackLibraryNavigation`,value:function trackLibraryNavigation(r,c){Dn.sendELibraryNav(c||r)}},{key:`activateTab`,value:function activateTab(r){var c;$e.routes.saveState(`library`),_superPropGet$4(Component,`activateTab`,this,3)([r]);var l=jQuery(this.getTabsWrapperSelector()).find(`[role="tab"]`),u=l.filter(`[data-tab="${r}"]`),p=(c=this.manager)==null||(c=c.layout)==null||(c=c.modalContent)==null||(c=c.currentView)==null?void 0:c.$childViewContainer;l.attr({"aria-selected":`false`,tabindex:`-1`}),u.attr({"aria-selected":`true`,tabindex:`0`}),p!=null&&p.length&&p.attr({role:`tabpanel`,"aria-labelledby":`tab-${r}`})}},{key:`open`,value:function open(){return _superPropGet$4(Component,`open`,this,3)([]),this.manager.layout||(this.manager.layout=this.layout),this.manager.layout.setHeaderDefaultParts(),!0}},{key:`close`,value:function close(){return _superPropGet$4(Component,`close`,this,3)([])?(this.manager.modalConfig={},!0):!1}},{key:`show`,value:function show(r){this.manager.modalConfig=r,(r.toDefault||!$e.routes.restoreState(`library`))&&$e.route(this.getDefaultRoute())}},{key:`insertTemplate`,value:function insertTemplate(r){var c=this;this.downloadTemplate(r,function(r,l){var u,p,m=l.model,h=(u=m.get(`source`))==null?`local`:u,g=m.get(`type`),v=m.get(`title`),y=m.get(`template_id`),b=(p=elementor.config.library_connect)==null?void 0:p.base_access_tier,x=m.get(`accessTier`);$e.run(`document/elements/import`,{model:m,data:r,options:l.importOptions,onAfter:function onAfter(){c.manager.eventManager.sendTemplateInsertedEvent({library_type:h}),Dn.sendELibraryInsert({assetId:y,assetName:v,libraryType:g||h,proRequired:b!==x})}})})}},{key:`downloadTemplate`,value:function downloadTemplate(r,c){var l=this,u=elementor.config.document.remoteLibrary.autoImportSettings,p=r.model,m=r.withPageSettings,h=m===void 0?null:m;u&&(h=!0),this.manager.layout.showLoadingView();var g=h===null?p.get(`hasPageSettings`):h;this.manager.requestTemplateContent(p.get(`source`),p.get(`template_id`),{data:{with_page_settings:g},success:function(){var r=_asyncToGenerator(hm.default.mark(function _callee(r){var u,m,g,v;return hm.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(l.manager.layout.hideLoadingView(),u=r,!l.manager.hasGlobalStyles(r)){y.next=4;break}return y.prev=1,y.next=2,l.processGlobalStylesImport(r);case 2:m=y.sent,u=m.data,h=m.withPageSettings,y.next=4;break;case 3:return y.prev=3,y.catch(1),y.abrupt(`return`);case 4:if(!l.manager.hasGlobalStyles(r)&&h===null&&(h=!1),g=jQuery.extend({},l.manager.modalConfig.importOptions),g.withPageSettings=h,!(h===null&&p.get(`hasPageSettings`))){y.next=5;break}return v=l.getImportSettingsDialog(),v.showImportDialogWithData(p,u,g,c),y.abrupt(`return`);case 5:l.manager.layout.hideModal(),l.showFlatteningWarningIfNeeded(u),c(u,{model:p,importOptions:g});case 6:case`end`:return y.stop()}},_callee,null,[[1,3]])}));function success(c){return r.apply(this,arguments)}return success}(),error:function error(r){l.manager.showErrorDialog(r)},complete:function complete(){l.manager.layout.hideLoadingView()}})}},{key:`processGlobalStylesImport`,value:function(){var r=_asyncToGenerator(hm.default.mark(function _callee2(r){var c,l,u,p,m;return hm.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=1,showGlobalStylesDialog();case 1:return c=h.sent,l=c.mode,this.manager.layout.showLoadingView(),h.prev=2,h.next=3,new Promise(function(c,u){elementorCommon.ajax.addRequest(`process_global_styles`,{data:{content:JSON.stringify(r.content),import_mode:l,global_classes:r.global_classes?JSON.stringify(r.global_classes):null,global_variables:r.global_variables?JSON.stringify(r.global_variables):null},success:c,error:u})});case 3:return u=h.sent,p=_objectSpread$3(_objectSpread$3({},r),{},{content:u.content,flattened_classes_count:u.flattened_classes_count||0,flattened_variables_count:u.flattened_variables_count||0}),(u.updated_global_classes||u.updated_global_variables)&&window.dispatchEvent(new CustomEvent(`elementor/global-styles/imported`,{detail:{global_classes:u.updated_global_classes,global_variables:u.updated_global_variables}})),h.abrupt(`return`,{data:p,withPageSettings:l===`match_site`});case 4:throw h.prev=4,m=h.catch(2),this.manager.showErrorDialog(m),m;case 5:return h.prev=5,this.manager.layout.hideLoadingView(),h.finish(5);case 6:case`end`:return h.stop()}},_callee2,this,[[2,4,5,6]])}));function processGlobalStylesImport(c){return r.apply(this,arguments)}return processGlobalStylesImport}()},{key:`getImportSettingsDialog`,value:function getImportSettingsDialog(){var c=this,l={dialog:null,showImportDialog:function showImportDialog(r){var c=l.getDialog(r);c.onConfirm=function(){$e.run(`library/insert-template`,{model:r,withPageSettings:!0,onAfter:function onAfter(){elementor.templates.eventManager.sendInsertApplySettingsEvent({apply_modal_result:`apply`,library_type:r.get(`source`)})}})},c.onCancel=function(){$e.run(`library/insert-template`,{model:r,withPageSettings:!1,onAfter:function onAfter(){elementor.templates.eventManager.sendInsertApplySettingsEvent({apply_modal_result:`don't apply`,library_type:r.get(`source`)})}})},c.show()},showImportDialogWithData:function showImportDialogWithData(r,u,p,m){var h=l.getDialog(r);h.onConfirm=function(){p.withPageSettings=!0,elementor.templates.eventManager.sendInsertApplySettingsEvent({apply_modal_result:`apply`,library_type:r.get(`source`)}),c.manager.layout.hideModal(),m(u,{model:r,importOptions:p})},h.onCancel=function(){p.withPageSettings=!1,elementor.templates.eventManager.sendInsertApplySettingsEvent({apply_modal_result:`don't apply`,library_type:r.get(`source`)}),c.manager.layout.hideModal(),m(u,{model:r,importOptions:p})},h.show()},initDialog:function initDialog(c){l.dialog=elementorCommon.dialogsManager.createWidget(`confirm`,{id:`elementor-insert-template-settings-dialog`,headerMessage:(0,r.__)(`Apply the settings of this %s too?`,`elementor`).replace(`%s`,elementor.translate(c.attributes.type)),message:(0,r.__)(`This will override the design, layout, and other settings of the %s you’re working on.`,`elementor`).replace(`%s`,elementor.documents.getCurrent().container.label),strings:{confirm:(0,r.__)(`Apply`,`elementor`),cancel:(0,r.__)(`Don’t apply`,`elementor`)}})},getDialog:function getDialog(r){return l.dialog||l.initDialog(r),l.dialog}};return l}},{key:`getTabsWrapperSelector`,value:function getTabsWrapperSelector(){return`#elementor-template-library-header-menu`}},{key:`getModalLayout`,value:function getModalLayout(){return gm}},{key:`maybeOpenLibrary`,value:function maybeOpenLibrary(){location.hash===`#library`&&($e.run(`library/open`),location.hash=``)}},{key:`showFlatteningWarningIfNeeded`,value:function showFlatteningWarningIfNeeded(c){var l=c.flattened_classes_count||0,u=c.flattened_variables_count||0;if(l!==0||u!==0){var p=l>0&&u>0?(0,r.__)(`Some styles were added as static values because the style limits were reached.`,`elementor`):l>0?(0,r.__)(`Some styles were added as static values because the class limit was reached.`,`elementor`):(0,r.__)(`Some styles were added as static values because the variable limit was reached.`,`elementor`);elementor.notifications.showToast({message:p})}}}])}(cs)})),ym,bm=__esmMin((()=>{b(),w(),ym=function(){function BaseStorage(r){if(_classCallCheck(this,BaseStorage),BaseStorage===(this instanceof BaseStorage?this.constructor:void 0))throw TypeError(`Cannot construct BaseStorage instances directly`);this.provider=r}return _createClass(BaseStorage,[{key:`clear`,value:function clear(){return this.provider.clear()}},{key:`getItem`,value:function getItem(r){var c=this.provider.getItem(r);return c===null?c:JSON.parse(c)}},{key:`key`,value:function key(r){return this.provider.key(r)}},{key:`removeItem`,value:function removeItem(r){return this.provider.removeItem(r)}},{key:`setItem`,value:function setItem(r,c){return this.provider.setItem(r,JSON.stringify(c))}},{key:`getAll`,value:function getAll(){var r=this,c=Object.keys(this.provider),l={};return c.forEach(function(c){l[c]=r.getItem(c)}),l}}])}()}));function _callSuper$23(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$23()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$23(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$23=function _isNativeReflectConstruct(){return!!r})()}function _superPropGet$3(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 xm,Sm=__esmMin((()=>{b(),w(),E(),D(),k(),A(),P(),bm(),__name(_callSuper$23,`_callSuper`),__name(_isNativeReflectConstruct$23,`_isNativeReflectConstruct`),__name(_superPropGet$3,`_superPropGet`),xm=function(r){function BasePrefixStorage(){return _classCallCheck(this,BasePrefixStorage),_callSuper$23(this,BasePrefixStorage,arguments)}return _inherits(BasePrefixStorage,r),_createClass(BasePrefixStorage,[{key:`clear`,value:function clear(){var r=this;Object.keys(this.getAll()).forEach(function(c){return r.removeItem(c)})}},{key:`getItem`,value:function getItem(r){return _superPropGet$3(BasePrefixStorage,`getItem`,this,3)([BasePrefixStorage.DEFAULT_KEY_PREFIX+r])}},{key:`removeItem`,value:function removeItem(r){return _superPropGet$3(BasePrefixStorage,`removeItem`,this,3)([BasePrefixStorage.DEFAULT_KEY_PREFIX+r])}},{key:`setItem`,value:function setItem(r,c){return _superPropGet$3(BasePrefixStorage,`setItem`,this,3)([BasePrefixStorage.DEFAULT_KEY_PREFIX+r,c])}},{key:`getAll`,value:function getAll(){var r=this,c=BasePrefixStorage.DEFAULT_KEY_PREFIX,l=Object.keys(this.provider),u={};return l.forEach(function(l){l.startsWith(c)&&(l=l.replace(c,``),u[l]=r.getItem(l))}),u}}])}(ym),_defineProperty(xm,`DEFAULT_KEY_PREFIX`,`e_`)}));function _callSuper$22(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$22()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$22(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$22=function _isNativeReflectConstruct(){return!!r})()}var Cm,wm=__esmMin((()=>{b(),w(),E(),D(),A(),Sm(),__name(_callSuper$22,`_callSuper`),__name(_isNativeReflectConstruct$22,`_isNativeReflectConstruct`),Cm=function(r){function LocalStorage(){return _classCallCheck(this,LocalStorage),_callSuper$22(this,LocalStorage,[localStorage])}return _inherits(LocalStorage,r),_createClass(LocalStorage,[{key:`debug`,value:function debug(){var r=this.getAll(),c={};return Object.keys(r).sort().forEach(function(l){c[l]=r[l]}),c}}])}(xm)}));function ownKeys$2(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$2(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$2(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$2(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var Tm,$,Em,Dm,Om=__esmMin((()=>{P(),N(),b(),w(),Tm=__toESM(R()),__name(ownKeys$2,`ownKeys`),__name(_objectSpread$2,`_objectSpread`),$={SAVE_TEMPLATE_CONTEXT_MENU_EXPOSURE:`save_template_context_menu_exposure`,NEW_SAVE_TEMPLATE_CLICKED:`new_save_template_clicked`,TEMPLATE_SAVED:`template_saved`,TEMPLATE_TRANSFER:`template_transfer`,ITEM_DELETED:`item_deleted`,TEMPLATE_IMPORT:`template_import`,TEMPLATE_RENAME:`template_rename`,TEMPLATE_INSERTED:`template_inserted`,BULK_ACTIONS_SUCCESS:`bulk_actions`,BULK_ACTIONS_FAILED:`bulk_actions`,FOLDER_CREATE:`folder_create`,QUOTA_BAR_CAPACITY:`quota_bar_capacity`,INSERT_APPLY_SETTINGS:`insert_apply_settings`,UPGRADE_CLICKED:`upgrade_clicked`,PAGE_VIEWED:`page_viewed`,DELETION_UNDO:`deletion_undo`,CT_BADGE_HOVER:`ct_badge_hover`},Em={SAVE_TEMPLATE:`save-template-cloud`},Dm=function(){function EventManager(){_classCallCheck(this,EventManager)}return _createClass(EventManager,[{key:`getExperimentVariant`,value:function(){var r=_asyncToGenerator(Tm.default.mark(function _callee(r){var c,l;return Tm.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if((c=elementorCommon)!=null&&c.eventsManager){u.next=1;break}return u.abrupt(`return`,`control`);case 1:return u.abrupt(`return`,((l=elementorCommon)==null||(l=l.eventsManager)==null?void 0:l.getExperimentVariant(r,`control`))||`control`);case 2:case`end`:return u.stop()}},_callee)}));function getExperimentVariant(c){return r.apply(this,arguments)}return getExperimentVariant}()},{key:`getSaveTemplateExperimentVariant`,value:function getSaveTemplateExperimentVariant(){return this.getExperimentVariant(Em.SAVE_TEMPLATE)}},{key:`startSaveTemplateExperiment`,value:function startSaveTemplateExperiment(r){var c,l;if((c=elementorCommon)!=null&&c.eventsManager)return(l=elementorCommon)==null||(l=l.eventsManager)==null?void 0:l.startExperiment(Em.SAVE_TEMPLATE,r)}},{key:`sendEvent`,value:function sendEvent(r,c){return elementorCommon.eventsManager.dispatchEvent(r,c)}},{key:`sendContextMenuExposureEvent`,value:function sendContextMenuExposureEvent(){return this.sendEvent($.SAVE_TEMPLATE_CONTEXT_MENU_EXPOSURE,{location:elementorCommon.eventsManager.config.locations.elementorEditor,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.contextMenu,trigger:elementorCommon.eventsManager.config.triggers.visible})}},{key:`sendNewSaveTemplateClickedEvent`,value:function sendNewSaveTemplateClickedEvent(){return this.sendEvent($.NEW_SAVE_TEMPLATE_CLICKED,{location:elementorCommon.eventsManager.config.locations.templatesLibrary.library,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.saveModal,trigger:elementorCommon.eventsManager.config.triggers.click})}},{key:`sendTemplateSavedEvent`,value:function sendTemplateSavedEvent(r){return this.sendEvent($.TEMPLATE_SAVED,_objectSpread$2({location:elementorCommon.eventsManager.config.locations.templatesLibrary.library,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.saveModal,trigger:elementorCommon.eventsManager.config.triggers.click},r))}},{key:`sendTemplateTransferEvent`,value:function sendTemplateTransferEvent(r){return this.sendEvent($.TEMPLATE_TRANSFER,_objectSpread$2({location:elementorCommon.eventsManager.config.locations.templatesLibrary.library,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.saveModal},r))}},{key:`sendItemDeletedEvent`,value:function sendItemDeletedEvent(r){return this.sendEvent($.ITEM_DELETED,_objectSpread$2({location:elementorCommon.eventsManager.config.locations.templatesLibrary.library,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.deleteDialog},r))}},{key:`sendTemplateImportEvent`,value:function sendTemplateImportEvent(r){return this.sendEvent($.TEMPLATE_IMPORT,_objectSpread$2({location:elementorCommon.eventsManager.config.locations.templatesLibrary.library,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.saveModal},r))}},{key:`sendTemplateRenameEvent`,value:function sendTemplateRenameEvent(r){return this.sendEvent($.TEMPLATE_RENAME,_objectSpread$2({location:elementorCommon.eventsManager.config.locations.templatesLibrary.library,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.renameDialog},r))}},{key:`sendTemplateInsertedEvent`,value:function sendTemplateInsertedEvent(r){return this.sendEvent($.TEMPLATE_INSERTED,_objectSpread$2({location:elementorCommon.eventsManager.config.locations.templatesLibrary.library},r))}},{key:`sendBulkActionsSuccessEvent`,value:function sendBulkActionsSuccessEvent(r){return this.sendEvent($.BULK_ACTIONS_SUCCESS,_objectSpread$2({bulk_status:`success`,location:elementorCommon.eventsManager.config.locations.templatesLibrary.library,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.saveModal},r))}},{key:`sendBulkActionsFailedEvent`,value:function sendBulkActionsFailedEvent(r){return this.sendEvent($.BULK_ACTIONS_FAILED,_objectSpread$2({bulk_status:`fail`,location:elementorCommon.eventsManager.config.locations.templatesLibrary.library,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.saveModal},r))}},{key:`sendFolderCreateEvent`,value:function sendFolderCreateEvent(){return this.sendEvent($.FOLDER_CREATE,{location:elementorCommon.eventsManager.config.locations.templatesLibrary.library,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.createFolderDialog})}},{key:`sendQuotaBarCapacityEvent`,value:function sendQuotaBarCapacityEvent(r){return this.sendEvent($.QUOTA_BAR_CAPACITY,_objectSpread$2({location:elementorCommon.eventsManager.config.locations.templatesLibrary.library},r))}},{key:`sendInsertApplySettingsEvent`,value:function sendInsertApplySettingsEvent(r){return this.sendEvent($.INSERT_APPLY_SETTINGS,_objectSpread$2({location:elementorCommon.eventsManager.config.locations.templatesLibrary.library,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.applySettingsDialog},r))}},{key:`sendUpgradeClickedEvent`,value:function sendUpgradeClickedEvent(r){var c;return this.sendEvent($.UPGRADE_CLICKED,_objectSpread$2({location:elementorCommon.eventsManager.config.locations.templatesLibrary.library,current_sub:(c=elementor)==null||(c=c.config)==null||(c=c.library_connect)==null?void 0:c.current_access_tier},r))}},{key:`sendPageViewEvent`,value:function sendPageViewEvent(r){return this.sendEvent($.PAGE_VIEWED,_objectSpread$2({page_loaded:r.location},r))}},{key:`sendDeletionUndoEvent`,value:function sendDeletionUndoEvent(r){return this.sendEvent($.DELETION_UNDO,_objectSpread$2({},r))}},{key:`sendCTBadgeEvent`,value:function sendCTBadgeEvent(r){return this.sendEvent($.CT_BADGE_HOVER,{ct_badge_hover_position:r.ct_badge_hover_position,ct_badge_type:r.ct_badge_type,ct_position_state:r.ct_position_state})}}])}()})),km=__commonJSMin(((c,l)=>{ge(),x(),N(),P(),M();var u=__toESM(R());vm(),wm(),Om(),Tp();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var p=$p();l.exports=new function TemplateLibraryManager(){var c=this;this.modalConfig={},this.eventManager=new Dm;var l=this,m={},h=new Cm,g=`my_templates_`,v=`source`,y=`view`,b=new Set,x=new Set,S={control:{saveBtnText:(0,r.__)(`Save`,`elementor`),saveDialogDescription:(0,r.sprintf)((0,r.__)(`You can save it to %1$sCloud Templates%2$s to reuse across any of your Elementor sites at any time%3$sor to %4$sSite Templates%5$s so it's always ready when editing this website.`,`elementor`),`<b>`,`</b>`,`<br>`,`<b>`,`</b>`)},B:{saveBtnText:(0,r.__)(`Save page`,`elementor`),saveDialogDescription:(0,r.sprintf)((0,r.__)(`Store your design in %1$sCloud Templates%2$s for future Elementor projects. Or save it to %3$sSite Templates%4$s, to reuse anywhere on this site.`,`elementor`),`<b>`,`</b>`,`<b>`,`</b>`)}},C,w,T,E={},D={},O=!1,k=0,ee={show:!1,options:{}},A=[],te=function registerDefaultTemplateTypes(){l.getDefaultTemplateTypeData().then(function(c){var u=Object.entries(elementor.getConfig().elements).reduce(function(r,c){var l=_slicedToArray(c,2),u=l[0],p=l[1];return p!=null&&p.atomic_props_schema&&(r[u]=p.title),r},{}),p=_objectSpread(_objectSpread({page:(0,r.__)(`Page`,`elementor`),section:(0,r.__)(`Section`,`elementor`),container:(0,r.__)(`Container`,`elementor`)},u),{},_defineProperty({},elementor.config.document.type,elementor.config.document.panel.title));jQuery.each(p,function(r,u){l.getDefaultTemplateTypeSafeData(u,r).then(function(u){var p=jQuery.extend(!0,{},c,u);l.registerTemplateType(r,p)})})})},ne=function registerDefaultFilterTerms(){D={text:{callback:function callback(r){return r=r.toLowerCase(),this.get(`title`).toLowerCase().indexOf(r)>=0||_.any(this.get(`tags`),function(c){return c.toLowerCase().indexOf(r)>=0})}},type:{},subtype:{},favorite:{}}};this.isLoading=function(){return O},this.canLoadMore=function(){return T?T.length<k:!1},this.init=function(){var r=this;te(),ne(),this.component=$e.components.register(new _m({manager:this})),elementor.addBackgroundClickListener(`libraryToggleMore`,{element:`.elementor-template-library-template-more`}),window.addEventListener(`message`,function(r){var c=r.data;if(!(!c.name||c.name!==`library/capture-screenshot-done`)){var l=T.models.find(function(r){return r.get(`template_id`)===parseInt(c.id)});if(!l)return null;l.set(`preview_url`,c.imageUrl)}}),this.handleKeydown=function(c){r.isSelectAllShortcut(c)&&r.isCloudGridView()&&r.isClickedInLibrary(c)&&(c.preventDefault(),r.selectAllTemplates()),r.isUndoShortCut(c)&&x.size&&r.restoreRemovedItems()},document.addEventListener(`keydown`,this.handleKeydown)},this.getDefaultTemplateTypeData=function(){return this.eventManager.getSaveTemplateExperimentVariant().then(function(c){var l;return{saveDialog:{icon:`<i class="eicon-library-upload" aria-hidden="true"></i>`,canSaveToCloud:!0,saveBtnText:(l=S[c])==null?void 0:l.saveBtnText},moveDialog:{description:(0,r.__)(`Alternatively, you can copy the template.`,`elementor`),icon:`<i class="eicon-library-move" aria-hidden="true"></i>`,canSaveToCloud:!0,saveBtnText:(0,r.__)(`Move`,`elementor`),nameLabel:``,namePlaceholder:``},copyDialog:{description:(0,r.__)(`Alternatively, you can move the template.`,`elementor`),icon:`<i class="eicon-library-copy" aria-hidden="true"></i>`,canSaveToCloud:!0,saveBtnText:(0,r.__)(`Copy`,`elementor`),nameLabel:``,namePlaceholder:``},bulkMoveDialog:{description:(0,r.__)(`Alternatively, you can copy the templates.`,`elementor`),title:(0,r.__)(`Move templates to a different location`,`elementor`),icon:`<i class="eicon-library-move" aria-hidden="true"></i>`,canSaveToCloud:!0,saveBtnText:(0,r.__)(`Move`,`elementor`),nameLabel:``,namePlaceholder:``},bulkCopyDialog:{description:(0,r.__)(`Alternatively, you can move the templates.`,`elementor`),title:(0,r.__)(`Copy templates to a different location`,`elementor`),icon:`<i class="eicon-library-copy" aria-hidden="true"></i>`,canSaveToCloud:!0,saveBtnText:(0,r.__)(`Copy`,`elementor`),nameLabel:``,namePlaceholder:``}}})},this.getDefaultTemplateTypeSafeData=function(c,l){return this.eventManager.getSaveTemplateExperimentVariant().then(function(u){var p,m=l===`page`,h=(0,r.sprintf)((0,r.__)(`%s name`,`elementor`),c),g=m?(0,r.__)(`Type the page name here`,`elementor`):(0,r.__)(`Give your template a name`,`elementor`);return{saveDialog:{description:((p=S[u])==null?void 0:p.saveDialogDescription)||``,title:(0,r.sprintf)((0,r.__)(`Save this %s to your library`,`elementor`),c),nameLabel:h,namePlaceholder:g,saveLocationLabel:(0,r.sprintf)((0,r.__)(`Where would you like to save this %s?`,`elementor`),c)},moveDialog:{title:(0,r.sprintf)((0,r.__)(`Move your %s to a different location`,`elementor`),c),saveLocationLabel:(0,r.sprintf)((0,r.__)(`Where would you like to move this %s?`,`elementor`),c),nameLabel:h,namePlaceholder:g},copyDialog:{title:(0,r.sprintf)((0,r.__)(`Copy your %s to a different location`,`elementor`),c),saveLocationLabel:(0,r.sprintf)((0,r.__)(`Where would you like to cppy this %s?`,`elementor`),c),nameLabel:h,namePlaceholder:g},bulkMoveDialog:{saveLocationLabel:(0,r.__)(`Where would you like to move selected templates?`,`elementor`)},bulkCopyDialog:{saveLocationLabel:(0,r.__)(`Where would you like to copy selected templates?`,`elementor`)}}})},this.isSelectAllShortcut=function(r){return(r.metaKey||r.ctrlKey)&&r.key===`a`},this.isUndoShortCut=function(r){return(r.metaKey||r.ctrlKey)&&r.key===`z`},this.isCloudGridView=function(){return this.getFilter(`source`)===`cloud`&&this.getViewSelection()===`grid`},this.isClickedInLibrary=function(r){if(r.target===document.body)return!0;var c=document.getElementById(`elementor-template-library-modal`);return c&&r.target===c},this.clearLastRemovedItems=function(){x.clear()},this.addLastRemovedItems=function(r){!Array.isArray(r)&&!r.length||r.forEach(function(r){return x.add(r)})},this.selectAllTemplates=function(){var r=this;document.querySelectorAll(`.elementor-template-library-template[data-template_id]`).forEach(function(c){var l=c.getAttribute(`data-template_id`),u=c.getAttribute(`data-type`);c.classList.add(`bulk-selected-item`),r.addBulkSelectionItem(l,u)}),this.layout.handleBulkActionBar()},this.restoreRemovedItems=function(){this.onUndoDelete(1<x.size)},this.getSourceSelection=function(){return h.getItem(g+v)},this.setSourceSelection=function(r){return h.setItem(g+v,r)},this.getViewSelection=function(){return h.getItem(g+y)},this.setViewSelection=function(r){return h.setItem(g+y,r)},this.getTemplateTypes=function(r){return r?m[r]:m},this.registerTemplateType=function(r,c){m.hasOwnProperty(r)||(m[r]=c)},this.deleteTemplate=function(c,u){this.clearLastRemovedItems();var p=l.getDeleteDialog(c);p.onConfirm=function(){u.onConfirm&&u.onConfirm();var p=c.get(`template_id`),m=c.get(`source`),h=c.get(`subType`);elementorCommon.ajax.addRequest(`delete_template`,{data:{source:m,template_id:p},success:function success(g){T.remove(c),m===`cloud`&&l.addLastRemovedItems([p]),u.onSuccess&&u.onSuccess(g),l.layout.updateViewCollection(l.filterTemplates());var v=m===`cloud`?[{name:`undo_bulk`,text:(0,r.__)(`Undo`,`elementor`),callback:function callback(){l.onUndoDelete()}}]:null;elementor.notifications.showToast({message:`1 item deleted successfully`,buttons:v}),l.triggerQuotaUpdate(),l.resetBulkActionBar(),l.eventManager.sendItemDeletedEvent({library_type:m,item_type:h})}})},p.show()},this.renameTemplate=function(r,l){var u=r.get(`title`);c.clearLastRemovedItems();var p=c.getRenameDialog(r);return new Promise(function(m){p.onConfirm=function(){l.onConfirm&&l.onConfirm();var p=r.get(`source`);elementorCommon.ajax.addRequest(`rename_template`,{data:{source:p,id:r.get(`template_id`),title:r.get(`title`)},success:function success(l){r.trigger(`change:title`),c.eventManager.sendTemplateRenameEvent({source:p}),m(l)},error:function error(l){c.showErrorDialog(l),r.set(`title`,u),m()}})},p.show()})},this.getRenameDialog=function(c){var u=(0,r.sprintf)((0,r.__)(`Rename "%1$s"`,`elementor`),c.get(`title`)),p=c.get(`title`),m=jQuery(`<input>`,{id:`elementor-rename-template-dialog__input`,type:`text`,value:c.get(`title`)}).attr(`autocomplete`,`off`),h=elementorCommon.dialogsManager.createWidget(`confirm`,{id:`elementor-template-library-rename-dialog`,headerMessage:u,message:m,strings:{confirm:(0,r.__)(`Rename`,`elementor`)},hide:{ignore:`#elementor-template-library-modal`},onCancel:function onCancel(){c.set(`title`,p)},onShow:function onShow(){elementor.templates.eventManager.sendPageViewEvent({location:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.renameDialog}),m.trigger(`focus`)}});return m.on(`input`,function(r){r.preventDefault();var u=r.target.value.trim();c.set(`title`,u,{silent:!0}),h.getElements(`ok`).prop(`disabled`,!l.isTemplateTitleValid(u))}),h},this.isTemplateTitleValid=function(r){return r.trim().length>0&&r.trim().length<=75},this.getFolderTemplates=function(r){c.clearLastRemovedItems();var u=r.model.get(`template_id`),m=r.model.get(`title`);return new Promise(function(r){O=!0;var h={data:{source:`cloud`,template_id:u},success:function success(h){c.setFilter(`orderby`,``,!0),c.setFilter(`order`,``,!0),c.setFilter(`parent`,{id:u,title:m}),T=new p(h.templates),elementor.templates.layout.hideLoadingView(),l.layout.updateViewCollection(T.models),l.layout.modalContent.currentView.ui.addNewFolder.remove(),l.layout.modalContent.currentView.ui.addNewFolderDivider.remove(),l.layout.resetSortingUI(),O=!1,r()},error:function error(r){O=!1,c.showErrorDialog(r)}};elementorCommon.ajax.addRequest(`get_item_children`,h)})},this.createFolder=function(c,l){var p=this;if(this.clearLastRemovedItems(),this.getFilter(`parent`)!==null){this.showErrorDialog((0,r.__)(`You can not create a folder inside another folder.`,`elementor`));return}var m=this.getCreateFolderDialog(c);return new Promise(function(r){m.onConfirm=_asyncToGenerator(u.default.mark(function _callee(){return u.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=1,elementorCommon.ajax.addRequest(`create_folder`,{data:{source:c.source,title:c.title},success:function success(c){r(c),l==null||l.onSuccess(),p.eventManager.sendFolderCreateEvent()},error:function error(c){p.showErrorDialog(c),r()}});case 1:case`end`:return u.stop()}},_callee)})),m.show()})},this.getCreateFolderDialog=function(c){var u=document.createElement(`p`);u.className=`elementor-create-folder-template-dialog__p`,u.textContent=(0,r.__)(`Save assets to reuse on any site in your account.`,`elementor`);var p=document.createElement(`input`);p.className=`elementor-create-folder-template-dialog__input`,p.type=`text`,p.value=``,p.placeholder=(0,r.__)(`Folder name`,`elementor`),p.autocomplete=`off`;var m=document.createDocumentFragment();m.appendChild(u),m.appendChild(p);var h=elementorCommon.dialogsManager.createWidget(`confirm`,{id:`elementor-template-library-create-new-folder-dialog`,headerMessage:(0,r.__)(`Create a new folder`,`elementor`),message:m,strings:{confirm:(0,r.__)(`Create`,`elementor`)},hide:{ignore:`#elementor-template-library-modal`},onShow:function onShow(){p.focus(),elementor.templates.eventManager.sendPageViewEvent({location:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.newFolderModal})}});return h.getElements(`ok`).prop(`disabled`,!0),p.addEventListener(`input`,function(r){r.preventDefault();var u=r.target.value.trim();c.title=u;var p=l.isTemplateTitleValid(u);h.getElements(`ok`).prop(`disabled`,!p)}),h},this.deleteFolder=function(r,c){var l=this;this.clearLastRemovedItems();var u={data:{source:`cloud`,template_id:r.get(`template_id`)},success:function success(u){return l.handleGetFolderDataSuccess(r,c,u)}};elementorCommon.ajax.addRequest(`get_item_children`,u)},this.handleGetFolderDataSuccess=function(r,c,l){var u=this,p=this.getDeleteFolderDialog(r,l);p.onConfirm=function(){var l;(l=c.onConfirm)==null||l.call(c),u.sendDeleteRequest(r,c)},p.show()},this.getDeleteFolderDialog=function(c,l){var u=elementorCommon.dialogsManager.createWidget(`confirm`,{id:`elementor-template-library-delete-dialog`,headerMessage:(0,r.__)(`Delete this folder?`,`elementor`),message:(0,r.sprintf)((0,r.__)(`This will permanently delete "%1$s" that contains %2$d templates.`,`elementor`),c.get(`title`),l.total),strings:{confirm:(0,r.__)(`Delete`,`elementor`)},onShow:function onShow(){elementor.templates.eventManager.sendPageViewEvent({location:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.deleteFolderDialog})}});return u.getElements(`ok`).addClass(`e-danger color-white`),u},this.getBulkDeleteDialog=function(){var c=elementorCommon.dialogsManager.createWidget(`confirm`,{id:`elementor-template-library-bulk-delete-dialog`,headerMessage:(0,r.__)(`Delete items?`,`elementor`),message:(0,r.sprintf)((0,r.__)(`This will permanently remove %1$s selected items.`,`elementor`),b.size),strings:{confirm:(0,r.__)(`Delete`,`elementor`)}});return c.getElements(`ok`).addClass(`e-danger color-white`),c},this.sendDeleteRequest=function(r,c){var u=this,p=r.get(`template_id`),m=r.get(`source`);elementorCommon.ajax.addRequest(`delete_template`,{data:{source:m,template_id:p},success:function success(h){var g;l.addLastRemovedItems([p]),T.remove(r,{silent:!0}),(g=c.onSuccess)==null||g.call(c,h),elementor.templates.eventManager.sendPageViewEvent({location:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.deleteFolderDialog}),elementor.templates.eventManager.sendItemDeletedEvent({library_type:m,item_type:`folder`}),u.triggerQuotaUpdate()}})},this.importTemplate=function(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.clearLastRemovedItems(),elementorDevTools.deprecation.deprecated(`importTemplate`,`2.8.0`,`$e.run( 'library/insert-template' )`),c.model=r,$e.run(`library/insert-template`,c)},this.saveTemplate=function(r,c){var u;this.clearLastRemovedItems();var p=m[r];_.extend(c,{source:(u=c.source)==null?`local`:u,type:r}),p.prepareSavedData&&(c=p.prepareSavedData(c)),c.content=JSON.stringify(c.content);var h={data:c,success:function success(r){$e.route(`library/templates/my-templates`,{onBefore:function onBefore(){l.triggerQuotaUpdate(),T&&(T.findWhere({template_id:r.template_id})||T.add(r)),l.sendOnSavedTemplateSuccessEvent(c)}})},error:function error(r){l.showErrorDialog(r),l.clearToastConfig(),l.sendOnSavedTemplateFailedEvent(c)}},g=_.extend(h,p.ajaxParams);elementorCommon.ajax.addRequest(this.getSaveAjaxAction(c.save_context),g)},this.sendOnSavedTemplateSuccessEvent=function(r){Q.SAVE===r.save_context?l.eventManager.sendTemplateSavedEvent({library_type:r.source,template_type:r.type}):[Q.COPY,Q.MOVE].includes(r.save_context)?l.eventManager.sendTemplateTransferEvent({transfer_method:r.save_context,template_type:r.type,template_origin:r.from_source,template_destination:r.source}):[Q.BULK_MOVE,Q.BULK_COPY].includes(r.save_context)&&l.eventManager.sendBulkActionsSuccessEvent({bulk_action:Q.BULK_MOVE===r.save_context?`move`:`copy`,library_type:r.source,bulk_count:r.from_template_id.length,template_origin:r.from_source,template_destination:r.source})},this.sendOnSavedTemplateFailedEvent=function(r){[Q.BULK_MOVE,Q.BULK_COPY].includes(r.save_context)&&l.eventManager.sendBulkActionsFailedEvent({bulk_action:Q.BULK_MOVE===r.save_context?`move`:`copy`,library_type:r.source,bulk_count:r.from_template_id.length,template_origin:r.from_source,template_destination:r.source})},this.getSaveAjaxAction=function(r){var c;return this.clearLastRemovedItems(),(c=_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},Q.SAVE,`save_template`),Q.MOVE,`move_template`),Q.COPY,`copy_template`),Q.BULK_MOVE,`bulk_move_templates`),Q.BULK_COPY,`bulk_copy_templates`)[r])==null?`save_template`:c},this.requestTemplateContent=function(r,c,l){this.clearLastRemovedItems();var u={unique_id:c,data:{source:r,edit_mode:!0,display:!0,template_id:c}};return l&&jQuery.extend(!0,u,l),elementorCommon.ajax.addRequest(`get_template_data`,u)},this.hasGlobalStyles=function(r){var c,l,u=((c=r.global_classes)==null?void 0:c.items)&&Object.keys(r.global_classes.items).length>0,p=((l=r.global_variables)==null?void 0:l.data)&&Object.keys(r.global_variables.data).length>0;return u||p},this.syncGlobalStylesBeforeSave=function(){var r=[],c=new CustomEvent(`elementor/global-styles/before-save`,{detail:{promises:r}});return window.dispatchEvent(c),Promise.allSettled(r)},this.markAsFavorite=function(r,c){this.clearLastRemovedItems();var l={data:{source:r.get(`source`),template_id:r.get(`template_id`),favorite:c}};return elementorCommon.ajax.addRequest(`mark_template_as_favorite`,l)},this.getDeleteDialog=function(c){return C||(C=elementorCommon.dialogsManager.createWidget(`confirm`,{id:`elementor-template-library-delete-dialog`,headerMessage:(0,r.__)(`Delete this template?`,`elementor`),message:(0,r.sprintf)((0,r.__)(`This will permanently remove "%1$s".`,`elementor`),c.get(`title`)),strings:{confirm:(0,r.__)(`Delete`,`elementor`)},onShow:function onShow(){elementor.templates.eventManager.sendPageViewEvent({location:elementorCommon.eventsManager.config.secondaryLocations.templateLibrary.deleteDialog})}}),C.getElements(`ok`).addClass(`e-danger color-white`)),C},this.getErrorDialog=function(){return w||(w=elementorCommon.dialogsManager.createWidget(`alert`,{id:`elementor-template-library-error-dialog`,headerMessage:(0,r.__)(`An error occurred.`,`elementor`)})),w},this.getTemplatesCollection=function(){return T},this.getConfig=function(r){return r?E[r]?E[r]:{}:E},this.requestLibraryData=function(r){if(T&&!r.forceUpdate){r.onUpdate&&r.onUpdate();return}r.onBeforeUpdate&&r.onBeforeUpdate();var c={data:{},success:function success(c){T=new p(c.templates),c.config&&(E=c.config),r.onUpdate&&r.onUpdate()}};r.forceSync&&(c.data.sync=!0),elementorCommon.ajax.addRequest(`get_library_data`,c)},this.getFilter=function(r){return elementor.channels.templates.request(`filter:`+r)},this.setFilter=function(r,c,l){this.clearLastRemovedItems(),elementor.channels.templates.reply(`filter:`+r,c),l||elementor.channels.templates.trigger(`filter:change`)},this.getFilterTerms=function(r){return r?D[r]:D},this.setScreen=function(r){this.clearLastRemovedItems(),elementor.channels.templates.stopReplying(),l.setFilter(`source`,r.source,!0),l.setFilter(`type`,r.type,!0),l.setFilter(`subtype`,r.subtype,!0),l.showTemplates()},this.loadTemplates=function(r){this.clearLastRemovedItems(),O=!0,k=0,l.layout.showLoadingView();var c={source:this.getFilter(`source`)},u={};(c.source===`local`||c.source===`cloud`)&&(u.refresh=!0),this.setFilter(`parent`,null,c);var m=function loadTemplatesData(){return $e.data.get(`library/templates`,c,u).then(function(u){var m;if(T=new p(c.source===`cloud`?u.data.templates.templates:u.data.templates),(m=u.data)!=null&&(m=m.templates)!=null&&m.total){var h;k=(h=u.data)==null||(h=h.templates)==null?void 0:h.total}u.data.config&&(E=u.data.config),l.layout.hideLoadingView(),r&&r()}).finally(function(){O=!1})};c.source===`cloud`?function handleCloudSource(){var r;if(((r=elementorAppConfig[`cloud-library`])==null?void 0:r.quota)===void 0)return $e.components.get(`cloud-library`).utils.getQuotaConfig(!0).then(function(){if(l.shouldShowCloudStateView()){l.layout.showCloudStateView();return}return m()}).catch(function(){l.layout.showCloudStateView(),O=!1});if(l.shouldShowCloudStateView()){l.layout.showCloudStateView();return}return m()}():m()},this.searchTemplates=function(r){return c.clearLastRemovedItems(),new Promise(function(u){c.setFilter(`parent`,null),O=!0;var m={data:r,success:function success(m){O=!1,T=new p(m.templates),k=m.total,l.layout.updateViewCollection(T.models),c.setFilter(`text`,r.search),u(m)},error:function error(r){O=!1,c.showErrorDialog(r),u()}};elementorCommon.ajax.addRequest(`search_templates`,m)})},this.loadMore=function(){var r,u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=u.onUpdate,h=u.search,g=h===void 0?``:h,v=u.refresh,y=v!==void 0&&v;O=!0,c.clearLastRemovedItems();var b=c.getFilter(`source`),x=(r=c.getFilter(`parent`))==null?void 0:r.id,S={data:{source:b,offset:y?0:T.length,search:g,parentId:x,orderby:elementor.templates.getFilter(`orderby`)||null,order:elementor.templates.getFilter(`order`)||null},success:function success(r){var c=new p(r.templates);y?(T.reset(c.models),l.layout.updateViewCollection(T.models)):(T.add(c.models,{merge:!0}),l.layout.addTemplates(c.models)),m&&m(),O=!1},error:function error(){O=!1}};elementorCommon.ajax.addRequest(`load_more_templates`,S)},this.showTemplates=function(){l.layout.setHeaderDefaultParts(),l.loadTemplates(function(){var r=l.filterTemplates();l.layout.showTemplatesView(new p(r)),l.handleToast()})},this.handleToast=function(){var r,c;(r=ee)!=null&&r.show&&(elementor.notifications.showToast((c=ee)==null?void 0:c.options),this.clearToastConfig())},this.setToastConfig=function(r){ee=r},this.clearToastConfig=function(){this.setToastConfig({show:!1,options:{}})},this.filterTemplates=function(){var r=l.getFilter(`source`);return T.filter(function(c){if(r!==c.get(`source`))return!1;var l=m[c.get(`type`)];return!l||!1!==l.showInLibrary})},this.showErrorDialog=function(c){if(_typeof(c)===`object`){var u=``;_.each(c,function(r){r!=null&&r.message&&(u+=`<div>`+r.message+`.</div>`)}),c=u}else c&&(c+=`.`);c=c?(0,r.__)(`The following error(s) occurred while processing the request:`,`elementor`)+`<div id="elementor-template-library-error-info">`+c+`</div>`:(0,r.__)(`Please try again.`,`elementor`),l.getErrorDialog().setMessage(c).show()},this.onSelectSourceFilterChange=function(r){var c,u,m=(c=r==null||(u=r.currentTarget)==null||(u=u.dataset)==null?void 0:u.source)==null?`local`:c;m!==l.getFilter(`source`)&&(l.setSourceSelection(m),l.setFilter(`source`,m,!0),l.clearBulkSelectionItems(),l.loadTemplates(function(){var r=l.filterTemplates();l.layout.showTemplatesView(new p(r))}))},this.onSelectViewChange=function(r){l.setViewSelection(r),l.setFilter(y,r,!0),l.layout.updateViewCollection(l.filterTemplates()),l.resetBulkActionBar()},this.resetBulkActionBar=function(){c.clearBulkSelectionItems(),c.layout.handleBulkActionBarUi()},this.shouldShowCloudStateView=function(){return!elementor.config.library_connect.is_connected||!this.hasCloudLibraryQuota()||this.cloudLibraryIsDeactivated()},this.cloudLibraryIsDeactivated=function(){var r,c=(r=elementorAppConfig[`cloud-library`])==null?void 0:r.quota;if(!c)return!1;var l=c.currentUsage,u=l===void 0?0:l,p=c.threshold,m=p===void 0?0:p,h=c.subscriptionId;return u>m&&(h===void 0?``:h)===``},this.hasCloudLibraryQuota=function(){var r,c;return((r=elementorAppConfig[`cloud-library`])==null?void 0:r.quota)!==void 0&&0<((c=elementorAppConfig[`cloud-library`].quota)==null?void 0:c.threshold)},this.addBulkSelectionItem=function(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`template`;A.push(c),b.add(parseInt(r))},this.removeBulkSelectionItem=function(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`template`,l=A.findIndex(function(r){return r===c});l!==-1&&A.splice(l,1),b.delete(parseInt(r))},this.clearBulkSelectionItems=function(){b.clear(),A=[]},this.getBulkSelectionItems=function(){return b},this.getUniqueBulkSelectionItemsTypesEventLabel=function(){var r=_toConsumableArray(new Set(A)),c=r.includes(`folder`),l=r.some(function(r){return r!==`folder`});return c&&l?`both`:c?`folder`:`template`},this.onBulkDeleteClick=function(){var c=this;return this.clearLastRemovedItems(),new Promise(function(u){var p=c.getBulkSelectionItems();if(p.size){var m=c.getBulkDeleteDialog(),h=c.getFilter(`source`),g=Array.from(p);m.onConfirm=function(){O=!0;var m={data:{source:h,template_ids:g},success:function success(){O=!1;var m=T.models.filter(function(r){return p.has(r.get(`template_id`))});h===`cloud`&&l.addLastRemovedItems(g),T.remove(m),l.layout.updateViewCollection(l.filterTemplates());var v=A;l.clearBulkSelectionItems(),A=v,l.eventManager.sendBulkActionsSuccessEvent({library_type:h,bulk_action:`delete`,bulk_count:g.length});var y=h===`cloud`?[{name:`undo_bulk_delete`,text:(0,r.__)(`Undo`,`elementor`),callback:function callback(){c.onUndoDelete(1<g.length)}}]:null;elementor.notifications.showToast({message:`${g.length} items deleted successfully`,buttons:y}),c.triggerQuotaUpdate(),u()},error:function error(r){O=!1,c.showErrorDialog(r),l.eventManager.sendBulkActionsFailedEvent({library_type:h,bulk_action:`delete`,bulk_count:g.length}),u()}};elementorCommon.ajax.addRequest(`bulk_delete_templates`,m)},m.onCancel=function(){u()},m.show()}})},this.onUndoDelete=function(){var r=this,c=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return new Promise(function(u){if(O=!0,!x.size)return u();var p={data:{source:r.getFilter(`source`),template_ids:Array.from(x)},success:function success(){O=!1,$e.routes.refreshContainer(`library`),r.clearLastRemovedItems(),r.triggerQuotaUpdate(),A=[],u()},error:function error(c){O=!1,r.clearLastRemovedItems(),r.showErrorDialog(c),u()}};elementorCommon.ajax.addRequest(`bulk_undo_delete_items`,p),l.eventManager.sendDeletionUndoEvent({is_bulk:c,item_type:r.getUniqueBulkSelectionItemsTypesEventLabel()})})},this.triggerQuotaUpdate=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;elementor.channels.templates.trigger(`quota:update`,{force:r})}}})),Am=__commonJSMin(((r,c)=>{zp();var l=z();c.exports=l.extend({getSelect2Placeholder:function getSelect2Placeholder(){return this.ui.select.find(`[value="${this.getControlPlaceholder()}"]`).text()||this.ui.select.children(`option:first[value=""]`).text()},getSelect2DefaultOptions:function getSelect2DefaultOptions(){var r={allowClear:!0,placeholder:this.getSelect2Placeholder(),dir:elementorCommon.config.isRTL?`rtl`:`ltr`},c=this.model.get(`lockedOptions`);return c&&(r.templateSelection=function(r,l){return c.includes(r.id)&&jQuery(l).addClass(`e-non-deletable`).find(`.select2-selection__choice__remove`).remove(),r.text}),r},getSelect2Options:function getSelect2Options(){return jQuery.extend(this.getSelect2DefaultOptions(),this.model.get(`select2options`))},updatePlaceholder:function updatePlaceholder(){this.getControlPlaceholder()&&this.select2Instance.elements.$container.find(`.select2-selection__placeholder`).addClass(`e-select2-placeholder`)},applySavedValue:function applySavedValue(){l.prototype.applySavedValue.apply(this,arguments),this.ui.select.data(`select2`)?this.ui.select.trigger(`change`):(this.select2Instance=new Rp({$element:this.ui.select,options:this.getSelect2Options()}),this.updatePlaceholder(),this.handleLockedOptions())},handleLockedOptions:function handleLockedOptions(){var r=this.model.get(`lockedOptions`);r&&this.ui.select.on(`select2:unselecting`,function(c){r.includes(c.params.args.data.id)&&c.preventDefault()})},onReady:function onReady(){elementorDevTools.deprecation.deprecated(`onReady()`,`3.0.0`)},getInputValue:function getInputValue(r){var c;return(c=l.prototype.getInputValue.apply(this,arguments))==null?``:c},onBaseInputChange:function onBaseInputChange(){l.prototype.onBaseInputChange.apply(this,arguments),this.updatePlaceholder()},onBeforeDestroy:function onBeforeDestroy(){this.select2Instance.destroy(),this.$el.remove()}})})),jm=__commonJSMin(((r,c)=>{x(),M(),c.exports=z().extend({applySavedValue:function applySavedValue(){var r=this.getControlValue(),c=this.$(`[data-setting]`),l=this;_.each(r,function(r,u){var p=c.filter(function(){return u===this.dataset.setting});l.setInputValue(p,r)})},getControlValue:function getControlValue(r){var c=this.container.settings.get(this.model.get(`name`));if(!jQuery.isPlainObject(c))return{};if(r){var l=c[r];return l===void 0&&(l=``),l}return elementorCommon.helpers.cloneObject(c)},getCleanControlValue:function getCleanControlValue(r){var c=this,l=Object.fromEntries(Object.entries(this.getControlValue()).filter(function(r){var l=_slicedToArray(r,2),u=l[0],p=l[1];return p&&c.model.get(`default`)[u]!==p}));return r?l==null?void 0:l[r]:Object.keys(l).length?l:void 0},setValue:function setValue(r,c){var l=this.getControlValue();_typeof(r)===`object`?_.each(r,function(r,c){l[c]=r}):l[r]=c,this.setSettingsModel(l)},updateElementModel:function updateElementModel(r,c){var l=c.dataset.setting;this.setValue(l,r)}},{getStyleValue:function getStyleValue(r,c){return _.isObject(c)?c[r.toLowerCase()]:``}})})),Mm=__commonJSMin(((r,c)=>{Oe();var l=jm();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.sliders=`.elementor-slider`,r.colorPickerPlaceholder=`.elementor-color-picker-placeholder`,r},initSliders:function initSliders(){var r=this,c=this.getControlValue();this.ui.sliders.each(function(l,u){var p=jQuery(u).next(`.elementor-slider-input`).find(`input`),m=noUiSlider.create(u,{start:[c[u.dataset.input]],step:1,range:{min:+p.attr(`min`),max:+p.attr(`max`)},format:{to:function to(r){return+r.toFixed(1)},from:function from(r){return+r}}});m.on(`slide`,function(c){var l=m.target.dataset.input;p.val(c[0]),r.setValue(l,c[0])})})},initColors:function initColors(){var r=this;this.colorPicker=new De({picker:{el:this.ui.colorPickerPlaceholder[0],default:this.getControlValue(`color`)},onChange:function onChange(){r.setValue(`color`,r.colorPicker.getColor())},onClear:function onClear(){r.setValue(`color`,``)}})},onInputChange:function onInputChange(r){var c=r.currentTarget.dataset.setting;this.ui.sliders.filter(`[data-input="`+c+`"]`)[0].noUiSlider.set(this.getControlValue(c))},onReady:function onReady(){this.initSliders(),this.initColors()},onBeforeDestroy:function onBeforeDestroy(){this.colorPicker.destroy()}})})),Nm=__commonJSMin(((r,c)=>{var l=Se();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.button=`button`,r},events:{"click @ui.button":`onButtonClick`},onButtonClick:function onButtonClick(){var r=this.model.get(`event`);elementor.channels.editor.trigger(r,this)}})})),Pm=__commonJSMin(((r,c)=>{var l=z();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.inputs=`[type="radio"]`,r},events:function events(){return _.extend(l.prototype.events.apply(this,arguments),{"mousedown label":`onMouseDownLabel`,"click @ui.inputs":`onClickInput`,"change @ui.inputs":`onBaseInputChange`})},updatePlaceholder:function updatePlaceholder(){var r=this.getControlPlaceholder();!this.getControlValue()&&r?this.ui.inputs.filter(`[value="${this.getControlPlaceholder()}"]`).addClass(`e-visual-choice-placeholder`):this.ui.inputs.removeClass(`e-visual-choice-placeholder`)},onReady:function onReady(){this.updatePlaceholder()},applySavedValue:function applySavedValue(){var r=this.getControlValue();r?this.ui.inputs.filter(`[value="`+r+`"]`).prop(`checked`,!0):this.ui.inputs.filter(`:checked`).prop(`checked`,!1)},onMouseDownLabel:function onMouseDownLabel(r){var c=this.$(r.currentTarget),l=this.$(`#`+c.attr(`for`));l.data(`checked`,l.prop(`checked`))},onClickInput:function onClickInput(r){if(this.model.get(`toggle`)){var c=this.$(r.currentTarget);c.data(`checked`)&&c.prop(`checked`,!1).trigger(`change`)}},onBaseInputChange:function onBaseInputChange(){l.prototype.onBaseInputChange.apply(this,arguments),this.updatePlaceholder()}},{onPasteStyle:function onPasteStyle(r,c){return c===``||r.options[c]!==void 0}})})),Fm=__commonJSMin(((r,c)=>{var l=z();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.editor=`.elementor-code-editor`,r},onReady:function onReady(){var r=this;if(!(typeof ace>`u`)){var c=ace.require(`ace/ext/language_tools`),l=elementor.settings.editorPreferences.model.get(`ui_theme`),u=matchMedia(`(prefers-color-scheme: dark)`).matches;if(r.editor=ace.edit(this.ui.editor[0]),jQuery(r.editor.container).addClass(`e-input-style elementor-code-editor elementor-control-tag-area`),r.editor.setOptions({mode:`ace/mode/`+r.model.attributes.language,minLines:10,maxLines:1/0,showGutter:!0,useWorker:!0,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0}),(l===`dark`||l===`auto`&&u)&&r.editor.setTheme(`ace/theme/merbivore_soft`),r.editor.getSession().setUseWrapMode(!0),elementor.panel.$el.on(`resize.aceEditor`,r.onResize.bind(this)),r.model.attributes.language===`css`&&c.addCompleter({getCompletions:function getCompletions(r,c,l,u,p){var m=[],h=c.getTokenAt(l.row,l.column);0<u.length&&`selector`.match(u)&&h.type===`constant`&&(m=[{name:`selector`,value:`selector`,score:1,meta:`Elementor`}]),p(null,m)}}),r.editor.setValue(r.getControlValue(),-1),this.isEditable()&&r.editor.on(`change`,function(){r.setValue(r.editor.getValue())}),r.model.attributes.language===`html`){var p=r.editor.getSession();p.on(`changeAnnotation`,function(){for(var r=p.getAnnotations()||[],c=r.length,l=r.length;l--;)/doctype first\. Expected/.test(r[l].text)&&r.splice(l,1);c>r.length&&p.setAnnotations(r)})}}},onResize:function onResize(){this.editor.resize()},onDestroy:function onDestroy(){elementor.panel.$el.off(`resize.aceEditor`)},isEditable:function isEditable(){var r=this.model.get(`is_editable`);return r===void 0||r}})}));function ownKeys$1(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread$1(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys$1(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys$1(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}function _callSuper$21(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$21()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$21(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$21=function _isNativeReflectConstruct(){return!!r})()}var Im,Lm,Rm,zm,Bm=__esmMin((()=>{b(),w(),E(),D(),A(),P(),Od(),__name(ownKeys$1,`ownKeys`),__name(_objectSpread$1,`_objectSpread`),__name(_callSuper$21,`_callSuper`),__name(_isNativeReflectConstruct$21,`_isNativeReflectConstruct`),Im=`UPDATE-VALUE`,Lm=`UPDATE-VALUE-ENHANCED`,Rm=`SKIP-UPDATE-VALUE`,zm=function(r){function Scrubbing(){var r;_classCallCheck(this,Scrubbing);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];r=_callSuper$21(this,Scrubbing,[].concat(l)),_defineProperty(r,`checkIntentTimeout`,null),_defineProperty(r,`skipperCount`,0);var p=r.getOption(`scrubSettings`)||{};return r.scrubSettings=_objectSpread$1({intentTime:600,skipperSteps:10,valueModifier:1,enhancedNumber:10,scrubbingActiveClass:`e-scrubbing--active`,scrubbingOverClass:`e-scrubbing-over`},p),r}return _inherits(Scrubbing,r),_createClass(Scrubbing,[{key:`ui`,value:function ui(){return{input:`input[type=number]`,label:`label[for^="elementor-control-"]`}}},{key:`events`,value:function events(){return{"mousedown @ui.input":`onMouseDownInput`,"mousedown @ui.label":`onMouseDownLabel`,"mouseenter @ui.label":`onMouseEnterLabel`,"mouseleave @ui.label":`onMouseLeaveLabel`}}},{key:`scrub`,value:function scrub(r,c){var l=this.getMovementType(c);if(Rm!==l){switch(l){case Im:r.value=this.getModifiedValue({value:r.value,change:c.movementX,modifier:this.scrubSettings.valueModifier});break;case Lm:r.value=this.getModifiedValue({value:r.value,change:c.movementX,modifier:this.scrubSettings.enhancedNumber});break;default:break}r.dispatchEvent(new Event(`input`,{bubbles:!0}))}}},{key:`getMovementType`,value:function getMovementType(r){return r.altKey?(this.skipperCount++,this.skipperCount<=this.scrubSettings.skipperSteps?Rm:(this.skipperCount=0,Im)):r.ctrlKey||r.metaKey?Lm:Im}},{key:`getModifiedValue`,value:function getModifiedValue(r){var c=r.value,l=r.change,u=r.modifier;typeof u==`function`&&(u=u());var p=+c+l*u;return parseFloat(p.toFixed(1))}},{key:`isInputValidForScrubbing`,value:function isInputValidForScrubbing(r){return r&&!r.disabled&&r.type===`number`}},{key:`setActive`,value:function setActive(r){var c=this;r.forEach(function(r){r.classList.add(c.scrubSettings.scrubbingActiveClass)})}},{key:`setInactive`,value:function setInactive(r){var c=this;r.forEach(function(r){r.classList.remove(c.scrubSettings.scrubbingActiveClass)})}},{key:`onMouseDownInput`,value:function onMouseDownInput(r){var c=this,l=r.target;if(this.isInputValidForScrubbing(l)){var u=function trackMovement(r){c.scrub(l,r)},p=setTimeout(function(){clearTimeout(p),document.addEventListener(`mousemove`,u),$e.uiStates.set(`document/scrubbing-mode`,Td.ON),c.setActive([l])},this.scrubSettings.intentTime);document.addEventListener(`mouseup`,function(){document.removeEventListener(`mousemove`,u),clearTimeout(p),$e.uiStates.remove(`document/scrubbing-mode`),c.setInactive([l])},{once:!0})}}},{key:`onMouseDownLabel`,value:function onMouseDownLabel(r){var c=this,l=r.target,u=r.target.control;if(this.isInputValidForScrubbing(u)){$e.uiStates.set(`document/scrubbing-mode`,Td.ON),this.setActive([u,l]);var p=function trackMovement(r){c.scrub(u,r)};document.addEventListener(`mousemove`,p),document.addEventListener(`mouseup`,function(){document.removeEventListener(`mousemove`,p),$e.uiStates.remove(`document/scrubbing-mode`),c.setInactive([u,l])},{once:!0})}}},{key:`onMouseEnterLabel`,value:function onMouseEnterLabel(r){var c=r.target.control;this.isInputValidForScrubbing(c)&&r.target.classList.add(this.scrubSettings.scrubbingOverClass)}},{key:`onMouseLeaveLabel`,value:function onMouseLeaveLabel(r){var c=r.target.control;this.isInputValidForScrubbing(c)&&r.target.classList.remove(this.scrubSettings.scrubbingOverClass)}}])}(Marionette.Behavior)})),Vm=__commonJSMin(((r,c)=>{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.
174 -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}var l=jm();c.exports=l.extend({ui:function ui(){return Object.assign(l.prototype.ui.apply(this,arguments),{units:`.e-units-choices>input`,unitSwitcher:`.e-units-switcher`,unitChoices:`.e-units-choices`})},events:function events(){return Object.assign(l.prototype.events.apply(this,arguments),{"change @ui.units":`onUnitChange`,"click @ui.units":`onUnitClick`,"click @ui.unitSwitcher":`onUnitLabelClick`})},updatePlaceholder:function updatePlaceholder(){var r,c=(r=this.getControlPlaceholder())==null?void 0:r.unit;this.ui.units.removeClass(`e-units-placeholder`),c!==this.getControlValue(`unit`)&&this.ui.units.filter(`[value="${c}"]`).addClass(`e-units-placeholder`)},recursiveUnitChange:function recursiveUnitChange(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,c=this.getResponsiveParentView();if(c&&r){var l=c.getControlValue(`unit`),u=Object.keys(this.getCleanControlValue()||{});u.splice(u.indexOf(`unit`),1),l&&!u.length&&(this.setValue(`unit`,l),this.render())}var p=_createForOfIteratorHelper(this.getResponsiveChildrenViews()),m;try{for(p.s();!(m=p.n()).done;)m.value.recursiveUnitChange()}catch(r){p.e(r)}finally{p.f()}},onRender:function onRender(){l.prototype.onRender.apply(this,arguments),this.updatePlaceholder(),this.updateUnitChoices()},onUnitChange:function onUnitChange(){this.toggleUnitChoices(!1),this.recursiveUnitChange(!1),this.updatePlaceholder(),this.updateUnitChoices()},toggleUnitChoices:function toggleUnitChoices(r){this.ui.unitChoices.toggleClass(`e-units-choices-open`,r)},updateUnitChoices:function updateUnitChoices(){var r=this.getControlValue(`unit`);this.ui.unitSwitcher.attr(`data-selected`,r).find(`span`).html(r),this.$el.toggleClass(`e-units-custom`,this.isCustomUnit())},onUnitClick:function onUnitClick(){this.toggleUnitChoices(!1)},onUnitLabelClick:function onUnitLabelClick(r){r.preventDefault(),this.toggleUnitChoices()},getCurrentRange:function getCurrentRange(){return this.getUnitRange(this.getControlValue(`unit`))},getUnitRange:function getUnitRange(r){var c=this.model.get(`range`);return c?(c[r]||(c[r]=Object.values(c)[0]),c[r]):!1},isCustomUnit:function isCustomUnit(){return this.getControlValue(`unit`)===`custom`}},{getStyleValue:function getStyleValue(r,c){var u=l.getStyleValue(r,c);return r===`UNIT`&&u===`custom`&&(u=`__EMPTY__`),u}})})),Hm=__commonJSMin(((r,c)=>{P(),Bm();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var l=Vm();c.exports=l.extend({behaviors:function behaviors(){var r=this;return _objectSpread(_objectSpread({},l.prototype.behaviors.apply(this)),{},{Scrubbing:{behaviorClass:zm,scrubSettings:{intentTime:800,valueModifier:function valueModifier(){var c=r.getControlValue(`unit`);return[`rem`,`em`].includes(c)?.1:1},enhancedNumber:function enhancedNumber(){var c=r.getControlValue(`unit`);return[`rem`,`em`].includes(c)?.5:10}}}})},ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.controls=`.elementor-control-dimension > input:enabled`,r.link=`button.elementor-link-dimensions`,r},events:function events(){return _.extend(l.prototype.events.apply(this,arguments),{"click @ui.link":`onLinkDimensionsClicked`})},defaultDimensionValue:0,initialize:function initialize(){l.prototype.initialize.apply(this,arguments),this.model.set(`allowed_dimensions`,this.filterDimensions(this.model.get(`allowed_dimensions`)))},getPossibleDimensions:function getPossibleDimensions(){return[`top`,`right`,`bottom`,`left`]},filterDimensions:function filterDimensions(r){r=r||`all`;var c=this.getPossibleDimensions();return r===`all`?c:(_.isArray(r)||(r===`horizontal`?r=[`right`,`left`]:r===`vertical`&&(r=[`top`,`bottom`])),r)},onReady:function onReady(){var r=this,c=r.getControlValue();r.isLinkedDimensions()||(r.ui.link.addClass(`unlinked`),r.ui.controls.each(function(l,u){var p=c[u.dataset.setting];_.isEmpty(p)&&(p=r.defaultDimensionValue),r.$(u).val(p)})),r.fillEmptyDimensions()},updateDimensionsValue:function updateDimensionsValue(){var r={},c=this.getPossibleDimensions(),l=this.ui.controls,u=this.defaultDimensionValue;c.forEach(function(c){var p=l.filter(`[data-setting="`+c+`"]`);r[c]=p.length?p.val():u}),this.setValue(r)},fillEmptyDimensions:function fillEmptyDimensions(){var r=this.ui.controls,c=this.defaultDimensionValue;if(!this.isLinkedDimensions()){var l=this.model.get(`allowed_dimensions`);this.getPossibleDimensions().forEach(function(u){var p=r.filter(`[data-setting="`+u+`"]`);_.indexOf(l,u)!==-1&&p.length&&_.isEmpty(p.val())&&p.val(c)})}},updateDimensions:function updateDimensions(){this.fillEmptyDimensions(),this.updateDimensionsValue()},resetDimensions:function resetDimensions(){this.ui.controls.val(``),this.updateDimensionsValue()},onInputChange:function onInputChange(r){var c,l=r.target.dataset.setting;if(l===`unit`&&this.resetDimensions(),_.contains(this.getPossibleDimensions(),l)&&!((r==null||(c=r.originalEvent)==null?void 0:c.data)===`-`&&!r.target.value)){if(this.isLinkedDimensions()){var u=this.$(r.target);this.ui.controls.val(u.val())}this.updateDimensions()}},onLinkDimensionsClicked:function onLinkDimensionsClicked(r){r.preventDefault(),r.stopPropagation(),this.ui.link.toggleClass(`unlinked`),this.setValue(`isLinked`,!this.ui.link.hasClass(`unlinked`)),this.isLinkedDimensions()&&this.ui.controls.val(this.ui.controls.eq(0).val()),this.updateDimensions()},isLinkedDimensions:function isLinkedDimensions(){return this.getControlValue(`isLinked`)},updateUnitChoices:function updateUnitChoices(){l.prototype.updateUnitChoices.apply(this,arguments);var r=`number`;this.isCustomUnit()&&(r=`text`),this.ui.controls.attr(`type`,r)}})})),Um=__commonJSMin(((r,c)=>{var l=Am();c.exports=l.extend({$previewContainer:null,getSelect2Options:function getSelect2Options(){return{dir:elementorCommon.config.isRTL?`rtl`:`ltr`,templateSelection:this.fontPreviewTemplate,templateResult:this.fontPreviewTemplate}},onReady:function onReady(){var r=this;this.ui.select.select2(this.getSelect2Options()),this.ui.select.on(`select2:open`,function(){r.$previewContainer=jQuery(`.select2-results__options[role="tree"]:visible`),setTimeout(function(){r.enqueueFontsInView()},100),jQuery(`input.select2-search__field:visible`).on(`keyup`,function(){r.typeStopDetection.action.apply(r)}),r.$previewContainer.on(`scroll`,function(){r.scrollStopDetection.onScroll.apply(r)})})},typeStopDetection:{idle:350,timeOut:null,action:function action(){var r=this,c=this.typeStopDetection;clearTimeout(c.timeOut),c.timeOut=setTimeout(function(){r.enqueueFontsInView()},c.idle)}},scrollStopDetection:{idle:350,timeOut:null,onScroll:function onScroll(){var r=this,c=this.scrollStopDetection;clearTimeout(c.timeOut),c.timeOut=setTimeout(function(){r.enqueueFontsInView()},c.idle)}},enqueueFontsInView:function enqueueFontsInView(){var r=this.$previewContainer.offset().top,c=r+this.$previewContainer.innerHeight(),l=[];this.$previewContainer.children().find(`li:visible`).each(function(u,p){var m=jQuery(p),h=m.offset();h&&h.top>r&&h.top<c&&l.push(m)}),l.forEach(function(r){var c=jQuery(r).find(`span`).html();elementor.helpers.enqueueFont(c,`editor`)})},fontPreviewTemplate:function fontPreviewTemplate(r){return r.id?jQuery(`<span>`,{text:r.text,css:{"font-family":r.element.value.toString()}}):r.text},templateHelpers:function templateHelpers(){var r=l.prototype.templateHelpers.apply(this,arguments),c=this.model.get(`options`);return r.getFontsByGroups=function(r){var l={};return _.each(c,function(c,u){(_.isArray(r)&&_.contains(r,c)||c===r)&&(l[u]=u)}),l},r}})})),Wm=__commonJSMin(((r,c)=>{x();var l=Hm();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.controls=`.elementor-control-gap > input:enabled`,r.link=`button.elementor-link-gaps`,r},getPossibleDimensions:function getPossibleDimensions(){return[`row`,`column`]},setValue:function setValue(r,c){var l=this.getControlValue();_typeof(r)===`object`?_.each(r,function(r,c){l[c]=r}):l[r]=c;var u=this.model.get(`conversion_map`);u&&u.old_key&&u.new_key&&(l[u.old_key]=parseInt(l[u.new_key])),this.setSettingsModel(l)},getControlValue:function getControlValue(){var r=l.prototype.getControlValue.apply(this,arguments);return this.shouldUpdateGapsValues(r)&&(r.column=``+r.size,r.row=``+r.size,r.isLinked=!0),r},shouldUpdateGapsValues:function shouldUpdateGapsValues(r){return!!r.hasOwnProperty(`size`)&&r.size!==``&&!r.hasOwnProperty(`column`)}})})),Gm=__commonJSMin(((c,l)=>{N();var u=__toESM(R());Gs();var p=z();l.exports=p.extend({ui:function ui(){var r=p.prototype.ui.apply(this,arguments);return r.addImages=`.elementor-control-gallery-add`,r.clearGallery=`.elementor-control-gallery-clear`,r.galleryThumbnails=`.elementor-control-gallery-thumbnails`,r.status=`.elementor-control-gallery-status-title`,r.promotions=`.elementor-control-media__promotions`,r.promotions_dismiss=`.elementor-control-media__promotions .elementor-control-notice-dismiss`,r.promotions_action=`.elementor-control-media__promotions .elementor-control-notice-main-actions button`,r},events:function events(){return _.extend(p.prototype.events.apply(this,arguments),{"click @ui.addImages":`onAddImagesClick`,"click @ui.clearGallery":`onClearGalleryClick`,"click @ui.galleryThumbnails":`onGalleryThumbnailsClick`,"click @ui.promotions_dismiss":`onPromotionDismiss`,"click @ui.promotions_action":`onPromotionAction`,"keyup @ui.galleryThumbnails":`onGalleryThumbnailsKeyPress`})},onReady:function onReady(){this.initRemoveDialog()},applySavedValue:function applySavedValue(){var c=this;return _asyncToGenerator(u.default.mark(function _callee(){var l,p,m,h,g,v,y,b;return u.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(l=c.getControlValue(),p=l.length,m=!!p,h=0,g=!1,v=c.ui.promotions.length&&!elementor.config.user.dismissed_editor_notices.includes(c.getDismissPromotionEventName()),c.$el.toggleClass(`elementor-gallery-has-images`,m).toggleClass(`elementor-gallery-empty`,!m),y=c.ui.galleryThumbnails,y.empty(),c.ui.status.text(m?(0,r.sprintf)((0,r.__)(`%s Images Selected`,`elementor`),p):(0,r.__)(`No Images Selected`,`elementor`)),v&&(g=c.ui.promotions.find(`.elementor-control-notice`).data(`display`)||!1),m){u.next=1;break}return u.abrupt(`return`);case 1:return b=[],c.getControlValue().forEach(function(r,l){var u=jQuery(`<img>`,{class:`elementor-control-gallery-thumbnail`,src:r.url,alt:`gallery-thumbnail-`+l});y.append(u),b.push(wp.media.attachment(r.id).fetch().then(function handleHints(r){c.imageHasAlt(r)||u.addClass(`unoptimized__image`),v&&c.imageNotOptimized(r)&&(h+=1)}))}),u.next=2,Promise.all(b).then(function(){if(v){var r=g||!!h;c.ui.promotions.toggle(r)}});case 2:case`end`:return u.stop()}},_callee)}))()},hasImages:function hasImages(){return!!this.getControlValue().length},imageHasAlt:function imageHasAlt(r){var c;return!!(r!=null&&(c=r.alt)!=null&&c.trim())},imageNotOptimized:function imageNotOptimized(r){var c={height:1080,width:1920,filesizeInBytes:1e5};return Object.keys(c).some(function(l){var u=r[l]||!1;return u&&u>c[l]})},openFrame:function openFrame(r){this.initFrame(r),this.frame.open(),Ws.isUploadEnabled(`svg`)&&Ws.setUploadTypeCaller(this.frame)},initFrame:function initFrame(c){var l={frame:`post`,multiple:!0,state:{create:`gallery`,add:`gallery-library`,edit:`gallery-edit`}[c],button:{text:(0,r.__)(`Insert Media`,`elementor`)}};this.hasImages()&&(l.selection=this.fetchSelection()),this.frame=wp.media(l),this.addSvgMimeType(),this.frame.on({update:this.select,"menu:render:default":this.menuRender,"content:render:browse":this.gallerySettings},this)},addSvgMimeType:function addSvgMimeType(){if(Ws.isUploadEnabled(`svg`)){var r=_wpPluploadSettings.defaults.filters.mime_types[0].extensions;this.frame.on(`ready`,function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=r+`,svg`}),this.frame.on(`close`,function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=r})}},menuRender:function menuRender(r){r.unset(`insert`),r.unset(`featured-image`)},gallerySettings:function gallerySettings(r){r.sidebar.on(`ready`,function(){r.sidebar.unset(`gallery`)})},fetchSelection:function fetchSelection(){var r=wp.media.query({orderby:`post__in`,order:`ASC`,type:`image`,perPage:-1,post__in:_.pluck(this.getControlValue(),`id`)});return new wp.media.model.Selection(r.models,{props:r.props.toJSON(),multiple:!0})},select:function select(r){var c=[];r.each(function(r){c.push({id:r.get(`id`),url:r.get(`url`)})}),this.setValue(c),this.applySavedValue()},onPromotionDismiss:function onPromotionDismiss(){this.dismissPromotion(this.getDismissPromotionEventName())},getDismissPromotionEventName:function getDismissPromotionEventName(){var r,c=this.ui.promotions.find(`.elementor-control-notice-dismiss`);return c.off(`click`),((r=c[0])==null||(r=r.dataset)==null?void 0:r.event)||!1},hidePromotion:function hidePromotion(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this.ui.promotions.hide(),r||(r=this.getDismissPromotionEventName()),elementor.config.user.dismissed_editor_notices.push(r)},onPromotionAction:function onPromotionAction(r){var c={};try{c=JSON.parse(r.target.closest(`button`).dataset.settings)}catch(r){}var l=c,u=l.action_url,p=u===void 0?null:u,m=l.source,h=m===void 0?`io-editor-gallery-install`:m;p&&window.open(p,`_blank`),elementorCommon.ajax.addRequest(`elementor_image_optimization_campaign`,{data:{source:h}}),this.hidePromotion()},dismissPromotion:function dismissPromotion(r){this.ui.promotions.hide(),r&&(elementorCommon.ajax.addRequest(`dismissed_editor_notices`,{data:{dismissId:r}}),elementor.config.user.dismissed_editor_notices.push(r))},onBeforeDestroy:function onBeforeDestroy(){this.frame&&this.frame.off(),this.$el.remove()},clearGallery:function clearGallery(){this.setValue([]),this.applySavedValue(),this.ui.promotions&&this.ui.promotions.hide()},initRemoveDialog:function initRemoveDialog(){var c;this.getRemoveDialog=function(){return c||(c=elementorCommon.dialogsManager.createWidget(`confirm`,{message:(0,r.__)(`Are you sure you want to clear this gallery?`,`elementor`),headerMessage:(0,r.__)(`Clear gallery`,`elementor`),strings:{confirm:(0,r.__)(`Clear`,`elementor`),cancel:(0,r.__)(`Cancel`,`elementor`)},defaultOption:`confirm`,onConfirm:this.clearGallery.bind(this)})),c}},onAddImagesClick:function onAddImagesClick(){this.openFrame(this.hasImages()?`add`:`create`)},onClearGalleryClick:function onClearGalleryClick(){this.getRemoveDialog().show()},onGalleryThumbnailsClick:function onGalleryThumbnailsClick(){this.openFrame(`edit`)},onGalleryThumbnailsKeyPress:function onGalleryThumbnailsKeyPress(r){(r.which===13||r.which===32)&&this.onGalleryThumbnailsClick(r)}})})),Km=__commonJSMin(((r,c)=>{c.exports=__toESM(z()).default.extend({},{onPasteStyle:function onPasteStyle(){return!1}})})),qm=__commonJSMin(((r,c)=>{var l=Am();c.exports=l.extend({initialize:function initialize(){l.prototype.initialize.apply(this,arguments),this.filterIcons()},filterIcons:function filterIcons(){var r=this.model.get(`options`),c=this.model.get(`include`);if(c){var l={};_.each(c,function(c){l[c]=r[c]}),this.model.set(`options`,l);return}var u=this.model.get(`exclude`);u&&_.each(u,function(c){delete r[c]})},iconsList:function iconsList(r){return r.id?jQuery(`<span><i class="`+r.id+`"></i> `+r.text+`</span>`):r.text},getSelect2Options:function getSelect2Options(){return{allowClear:!0,templateResult:this.iconsList.bind(this),templateSelection:this.iconsList.bind(this)}}})})),Jm=__commonJSMin(((c,l)=>{b(),w(),E(),D(),k(),A(),Gs();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})()}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 u=jm();l.exports=function(c){function ControlIconsView(){var r;_classCallCheck(this,ControlIconsView);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper(this,ControlIconsView,[].concat(l)),r.cache={loaded:!1,dialog:!1,enableClicked:!1,fa4Mapping:!1,migratedFlag:{}},r.dataKeys={migratedKey:`__fa4_migrated`,fa4MigrationFlag:`fa4compatibility`},r}return _inherits(ControlIconsView,c),_createClass(ControlIconsView,[{key:`enqueueIconFonts`,value:function enqueueIconFonts(r){var c=elementor.helpers.getIconLibrarySettings(r);if(!(!1===c||!this.isMigrationAllowed())&&(c.enqueue&&c.enqueue.forEach(function(r){var l=`${r}${c!=null&&c.ver?`?ver=`+c.ver:``}`;elementor.helpers.enqueueEditorStylesheet(l),elementor.helpers.enqueuePreviewStylesheet(l)}),c.url)){var l=`${c.url}${c!=null&&c.ver?`?ver=`+c.ver:``}`;elementor.helpers.enqueueEditorStylesheet(l),elementor.helpers.enqueuePreviewStylesheet(l)}}},{key:`ui`,value:function ui(){var r=_superPropGet(ControlIconsView,`ui`,this,3)([]),c=this.model.get(`skin`);return r.controlMedia=`.elementor-control-media`,r.svgUploader=c===`media`?`.elementor-control-svg-uploader`:`.elementor-control-icons--inline__svg`,r.iconPickers=c===`media`?`.elementor-control-icon-picker, .elementor-control-media__preview, .elementor-control-media-upload-button`:`.elementor-control-icons--inline__icon`,r.deleteButton=c===`media`?`.elementor-control-media__remove`:`.elementor-control-icons--inline__none`,r.previewPlaceholder=`.elementor-control-media__preview`,r.previewContainer=`.elementor-control-preview-area`,r.inlineIconContainer=`.elementor-control-inline-icon`,r.inlineDisplayedIcon=`.elementor-control-icons--inline__displayed-icon`,r.radioInputs=`[type="radio"]`,r}},{key:`events`,value:function events(){return jQuery.extend(u.prototype.events.apply(this,arguments),{"click @ui.iconPickers":`openPicker`,"click @ui.svgUploader":`openFrame`,"click @ui.radioInputs":`onClickInput`,"click @ui.deleteButton":`deleteIcon`})}},{key:`getControlValue`,value:function getControlValue(){var r=this.model,c=this.getValueToMigrate();if(!this.isMigrationAllowed())return c;var l=_superPropGet(ControlIconsView,`getControlValue`,this,3)([]);if(!c)return l;var u=r.get(`name`);if(this.cache.migratedFlag[u])return this.cache.migratedFlag[u];var p=this.elementSettingsModel.get(this.dataKeys.migratedKey);return p&&p[u]?l:this.migrateFa4toFa5(c)}},{key:`migrateFa4toFa5`,value:function migrateFa4toFa5(r){var c=elementor.helpers.mapFa4ToFa5(r);return this.cache.migratedFlag[this.model.get(`name`)]=c,this.enqueueIconFonts(c.library),c}},{key:`setControlAsMigrated`,value:function setControlAsMigrated(r){var c=this.elementSettingsModel.get(this.dataKeys.migratedKey)||{};c[r]=!0,this.elementSettingsModel.set(this.dataKeys.migratedKey,c,{silent:!0})}},{key:`isMigrationAllowed`,value:function isMigrationAllowed(){return!elementor.config.icons_update_needed}},{key:`getValueToMigrate`,value:function getValueToMigrate(){var r=this.model.get(this.dataKeys.fa4MigrationFlag);return r&&this.container.settings.get(r)||!1}},{key:`onReady`,value:function onReady(){var c=this;this.isMigrationAllowed()||(this.model.get(`skin`)===`media`?this.ui.previewContainer[0]:this.ui.inlineIconContainer[0]).addEventListener(`click`,function(c){return c.preventDefault(),c.stopPropagation(),elementor.helpers.getSimpleDialog(`elementor-enable-fa5-dialog`,(0,r.__)(`Elementor's New Icon Library`,`elementor`),(0,r.__)(`Elementor v2.6 includes an upgrade from Font Awesome 4 to 5. In order to continue using icons, be sure to click "Update".`,`elementor`)+` <a href="https://go.elementor.com/fontawesome-migration/" target="_blank">`+(0,r.__)(`Learn More`,`elementor`)+`</a>`,(0,r.__)(`Update`,`elementor`),function onConfirm(){var r;window.location.href=elementor.config.tools_page_link+`&redirect_to_document=`+((r=elementor.documents.getCurrent())==null?void 0:r.id)+`&_wpnonce=`+elementor.config.tools_page_nonce+`#tab-fontawesome4_migration`}).show(),!1},!0);var l=this.model.get(`name`);this.cache.migratedFlag[l]&&(this.setControlAsMigrated(l),setTimeout(function(){c.setValue(c.cache.migratedFlag[l])},10))}},{key:`onRender`,value:function onRender(){_superPropGet(ControlIconsView,`onRender`,this,3)([]),this.isMigrationAllowed()&&elementor.iconManager.loadIconLibraries()}},{key:`initFrame`,value:function initFrame(){var c=this;wp.media.view.settings.post.id=elementor.config.document.id,this.frame=wp.media({button:{text:(0,r.__)(`Insert Media`,`elementor`)},library:{type:[`image/svg+xml`]},states:[new wp.media.controller.Library({title:(0,r.__)(`Insert Media`,`elementor`),library:wp.media.query({type:[`image/svg+xml`]}),multiple:!1,date:!1})]}),this.frame.on(`insert select`,function handleSelect(){return c.selectSvg()}),this.setUploadMimeType(this.frame,`svg`)}},{key:`setUploadMimeType`,value:function setUploadMimeType(r,c){var l=_wpPluploadSettings.defaults.filters.mime_types[0].extensions;r.on(`ready`,function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=c}),this.frame.on(`close`,function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=l})}},{key:`selectSvg`,value:function selectSvg(){this.trigger(`before:select`);var r=this.frame.state().get(`selection`).first().toJSON();r.url&&(this.setValue({value:{url:r.url,id:r.id},library:`svg`}),this.applySavedValue()),this.trigger(`after:select`)}},{key:`openFrame`,value:function openFrame(){var r=this;if(!Ws.isUploadEnabled(`svg`))return Ws.getUnfilteredFilesNotEnabledDialog(function(){return r.openFrame()}).show(),!1;this.frame||this.initFrame(),this.frame.open(),Ws.setUploadTypeCaller(this.frame);var c=this.getControlValue(`id`);c&&this.frame.state().get(`selection`).add(wp.media.attachment(c))}},{key:`openPicker`,value:function openPicker(){elementor.iconManager.show({view:this})}},{key:`applySavedValue`,value:function applySavedValue(){var r=this,c=this.getControlValue(),l=this.model.get(`skin`),u=l===`inline`?this.ui.inlineDisplayedIcon:this.ui.previewPlaceholder,p=this.model.get(`disable_initial_active_state`),m=this.model.get(`default`),h=c.value,g=c.library;if(!this.isMigrationAllowed()&&!h&&this.getValueToMigrate()&&(h=this.getControlValue(),g=``),l===`media`&&this.ui.controlMedia.toggleClass(`e-media-empty`,!h),(l===`inline`&&!p||g)&&this.markChecked(g),!h){if(l===`inline`){this.setDefaultIconLibraryLabel(m,u);return}this.ui.previewPlaceholder.html(``);return}if(g===`svg`&&l!==`inline`)return elementor.helpers.fetchInlineSvg(h.url,function(c){r.ui.previewPlaceholder.html(c)});if(l===`media`||g!==`svg`){var v=`<i class="`+h+`"></i>`;u.html(v)}this.enqueueIconFonts(g)}},{key:`setDefaultIconLibraryLabel`,value:function setDefaultIconLibraryLabel(r,c){if(r.value!==``&&r.library!==`svg`)c.html(`<i class="`+r.value+`"></i>`);else{var l=this.model.get(`skin_settings`);c.html(`<i class="`+l.inline.icon.icon+`"></i>`)}}},{key:`markChecked`,value:function markChecked(r){if(this.ui.radioInputs.filter(`:checked`).prop(`checked`,!1),!r)return this.ui.radioInputs.filter(`[value="none"]`).prop(`checked`,!0);r!==`svg`&&(r=`icon`),this.ui.radioInputs.filter(`[value="`+r+`"]`).prop(`checked`,!0)}},{key:`onClickInput`,value:function onClickInput(){this.markChecked(this.getControlValue().library)}},{key:`deleteIcon`,value:function deleteIcon(r){r.stopPropagation(),this.setValue({value:``,library:``}),this.applySavedValue()}},{key:`onBeforeDestroy`,value:function onBeforeDestroy(){this.$el.remove()}}])}(u)})),Ym=__commonJSMin(((r,c)=>{P(),Bm();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var l=jm();c.exports=l.extend({behaviors:function behaviors(){return _objectSpread(_objectSpread({},l.prototype.behaviors.apply(this)),{},{Scrubbing:{behaviorClass:zm,scrubSettings:{intentTime:800}}})},ui:function ui(){return{inputWidth:`input[data-setting="width"]`,inputHeight:`input[data-setting="height"]`,btnApply:`button.elementor-image-dimensions-apply-button`}},events:function events(){return{"click @ui.btnApply":`onApplyClicked`,"keyup @ui.inputWidth":`onDimensionKeyUp`,"keyup @ui.inputHeight":`onDimensionKeyUp`}},onDimensionKeyUp:function onDimensionKeyUp(r){r.keyCode===13&&this.onApplyClicked(r)},onApplyClicked:function onApplyClicked(r){r.preventDefault(),this.setValue({width:this.ui.inputWidth.val(),height:this.ui.inputHeight.val()})}})})),Xm=__commonJSMin(((c,l)=>{P(),N();var u=__toESM(R());Gs(),cm();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var p=jm();l.exports=p.extend({ui:function ui(){var r=p.prototype.ui.apply(this,arguments);return r.controlMedia=`.elementor-control-media`,r.mediaImage=`.elementor-control-media__preview`,r.mediaVideo=`.elementor-control-media-video`,r.frameOpeners=`.elementor-control-preview-area`,r.removeButton=`.elementor-control-media__remove`,r.promotions=`.elementor-control-media__promotions`,r.promotions_dismiss=`.elementor-control-media__promotions .elementor-control-notice-dismiss`,r.promotions_action=`.elementor-control-media__promotions .elementor-control-notice-main-actions button`,r.fileName=`.elementor-control-media__file__content__info__name`,r.mediaInputImageSize=`.e-image-size-select`,r},events:function events(){return _.extend(p.prototype.events.apply(this,arguments),{"click @ui.frameOpeners":`openFrame`,"click @ui.removeButton":`deleteImage`,"change @ui.mediaInputImageSize":`onMediaInputImageSizeChange`,"click @ui.promotions_dismiss":`onPromotionDismiss`,"click @ui.promotions_action":`onPromotionAction`})},getMediaType:function getMediaType(){return this.mediaType||this.model.get(`media_type`)||this.model.get(`media_types`)[0]},getLibraryType:function getLibraryType(r){return r||(r=this.getMediaType()),r===`svg`?`image/svg+xml`:r},applySavedValue:function applySavedValue(){var r,c=this,l=this.getControlValue(`url`),u=l||((r=this.getControlPlaceholder())==null?void 0:r.url),p=this.getControlValue(`id`),m=!l&&u,h=this.getMediaType();if([`image`,`svg`].includes(h))this.ui.mediaImage.css(`background-image`,u?`url(`+u+`)`:``),m&&this.ui.mediaImage.css(`opacity`,.5);else if(h===`video`)this.ui.mediaVideo.attr(`src`,u);else{var g=u?u.split(`/`).pop():``;this.ui.fileName.text(g)}if(this.ui.mediaInputImageSize){var v=this.getControlValue(`size`);if(m){var y;v=(y=this.getControlPlaceholder())==null?void 0:y.size}this.ui.mediaInputImageSize.val(v).toggleClass(`e-select-placeholder`,m)}if(this.ui.controlMedia.toggleClass(`e-media-empty`,!l).toggleClass(`e-media-empty-placeholder`,!l&&!m),h===`image`&&(this.ui.promotions.length&&this.ui.promotions.hide(),p)){var b=this.getDismissPromotionEventName();wp.media.attachment(p).fetch().then(function handleHints(r){if(c.ui.promotions.length&&!elementor.config.user.dismissed_editor_notices.includes(b)){var l=c.ui.promotions.find(`.elementor-control-notice`).data(`display`)||c.imageNotOptimized(r);c.ui.promotions.toggle(l)}})}},openFrame:function openFrame(r){var c=arguments,l=this;return _asyncToGenerator(u.default.mark(function _callee(){var p,m,h,g;return u.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(m=c.length>1&&c[1]!==void 0?c[1]:null,h=(r==null||(p=r.target)==null||(p=p.dataset)==null?void 0:p.mediaType)||l.getMediaType(),l.mediaType=h,h){u.next=1;break}return u.abrupt(`return`);case 1:if(Ws.isUploadEnabled(h)){u.next=2;break}return Ws.getUnfilteredFilesNotEnabledDialog(function(){return l.openFrame(r,`filter-popup`)}).show(),u.abrupt(`return`,!1);case 2:if(!(m!==`filter-popup`&&[`application/json`,`json`].includes(h))){u.next=3;break}return u.next=3,showJsonUploadWarningMessageIfNeeded({introductionMap:window.elementor.config.user.introduction,IntroductionClass:window.elementorModules.editor.utils.Introduction});case 3:if((!l.frame||l.getLibraryType(h)!==l.currentLibraryType)&&l.initFrame(),l.frame.open(),Ws.setUploadTypeCaller(l.frame),g=l.getControlValue(`id`),g){u.next=4;break}return u.abrupt(`return`);case 4:l.frame.state().get(`selection`).add(wp.media.attachment(g));case 5:case`end`:return u.stop()}},_callee)}))()},deleteImage:function deleteImage(r){r.stopPropagation(),this.setValue({url:``,id:``}),this.applySavedValue()},imageHasAlt:function imageHasAlt(r){var c;return!!(r!=null&&(c=r.alt)!=null&&c.trim())},imageNotOptimized:function imageNotOptimized(r){var c={height:1080,width:1920,filesizeInBytes:1e5};return Object.keys(c).some(function(l){var u=r[l]||!1;return u&&u>c[l]})},getDismissPromotionEventName:function getDismissPromotionEventName(){var r,c=this.ui.promotions.find(`.elementor-control-notice-dismiss`);return c.off(`click`),((r=c[0])==null||(r=r.dataset)==null?void 0:r.event)||!1},onPromotionDismiss:function onPromotionDismiss(){this.dismissPromotion(this.getDismissPromotionEventName())},onPromotionAction:function onPromotionAction(r){var c={};try{c=JSON.parse(r.target.closest(`button`).dataset.settings)}catch(r){}var l=c,u=l.action_url,p=u===void 0?null:u,m=l.source,h=m===void 0?`io-editor-image-install`:m;p&&window.open(p,`_blank`),this.hidePromotion(null,h)},dismissPromotion:function dismissPromotion(r){this.hidePromotion(r),r&&elementorCommon.ajax.addRequest(`dismissed_editor_notices`,{data:{dismissId:r}})},hidePromotion:function hidePromotion(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`io-editor-image-install`;this.ui.promotions.hide(),r||(r=this.getDismissPromotionEventName()),elementorCommon.ajax.addRequest(`elementor_image_optimization_campaign`,{data:{source:c}}),elementor.config.user.dismissed_editor_notices.push(r)},onMediaInputImageSizeChange:function onMediaInputImageSizeChange(){var r=this;if(this.model.get(`has_sizes`)){var c=this.getControlValue(),l=this.getControlPlaceholder(),u=(c==null?void 0:c.id)!==``,p=l==null?void 0:l.id;if(u||p){if(p&&!u){this.setValue(_objectSpread(_objectSpread({},l),{},{size:c.size})),this.model.get(`responsive`)?this.renderWithChildren():this.applySavedValue(),this.onMediaInputImageSizeChange();return}var m;elementor.channels.editor.once(`imagesManager:detailsReceived`,function(l){var u;m=(u=l[c.id])==null?void 0:u[c.size],m&&(c.url=m,r.setValue(c))}),m=elementor.imagesManager.getImageUrl({id:c.id,url:c.url,size:c.size}),m&&(c.url=m,this.setValue(c))}}},initFrame:function initFrame(){var c=this.getMediaType();this.currentLibraryType=this.getLibraryType(c),wp.media.view.settings.post.id=elementor.config.document.id,this.frame=wp.media({frame:`post`,type:`image`,multiple:!1,states:[new wp.media.controller.Library({title:(0,r.__)(`Insert Media`,`elementor`),library:wp.media.query({type:this.currentLibraryType}),multiple:!1,date:!1})]}),this.frame.on(`ready open`,this.onFrameReady.bind(this)),this.frame.on(`insert select`,this.select.bind(this)),elementorCommon.config.filesUpload.unfilteredFiles&&this.setUploadMimeType(this.frame,c)},onFrameReady:function onFrameReady(){var c=this.frame.$el;c.find([`#menu-item-insert`,`#menu-item-gallery`,`#menu-item-playlist`,`#menu-item-video-playlist`,`.embed-link-settings`].join(`,`)).remove(),c.css(`--button-text`,`'${(0,r.__)(`Insert Media`,`elementor`)}'`),c.addClass(`e-wp-media-elements-removed`),this.getControlValue(`source`)===`url`?(c.find(`#menu-item-embed`).trigger(`click`),c.addClass(`hide-router`),this.frame.views.get(`.media-frame-content`)[0].url.model.set({url:this.getControlValue(`url`),alt:this.getControlValue(`alt`)})):c.find(`#menu-item-library`).trigger(`click`)},setUploadMimeType:function setUploadMimeType(r,c){var l=_wpPluploadSettings.defaults.filters.mime_types[0].extensions;r.on(`ready`,function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=c===`application/json`?`json`:l+`,svg`}),this.frame.on(`close`,function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=l})},select:function select(){this.trigger(`before:select`);var r=this.frame.state(),c;r.get(`id`)===`embed`?c={url:r.props.get(`url`),id:``,alt:r.props.get(`alt`),source:`url`}:(c=this.frame.state().get(`selection`).first().toJSON(),c.source=`library`),c.url&&(this.setValue({url:c.url,id:c.id,alt:c.alt,source:c.source,size:this.model.get(`default`).size}),this.model.get(`responsive`)?this.renderWithChildren():this.applySavedValue()),this.onMediaInputImageSizeChange(),this.trigger(`after:select`)},onBeforeDestroy:function onBeforeDestroy(){this.$el.remove()}})})),Zm=__commonJSMin(((r,c)=>{ge();var l=Se();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.button=`.elementor-control-notice-dismiss`,r},events:{"click @ui.button.e-btn-1":`onButton1Click`,"click @ui.button.e-btn-2":`onButton2Click`,"click @ui.button.elementor-control-notice-dismiss":`onDismissButtonClick`},onButton1Click:function onButton1Click(){var r=this.model.get(`event`);elementor.channels.editor.trigger(r,this)},onButton2Click:function onButton2Click(){var r=this.model.get(`event`);elementor.channels.editor.trigger(r,this)},getDismissId:function getDismissId(){var r,c,l,u=this.model.get(`name`);return`${((r=this.options)==null||(r=r.element)==null||(r=r.model)==null||(r=r.attributes)==null?void 0:r.elType)===`widget`?(c=this.options)==null||(c=c.element)==null||(c=c.model)==null||(c=c.attributes)==null?void 0:c.widgetType:(l=this.options)==null||(l=l.element)==null||(l=l.model)==null||(l=l.attributes)==null?void 0:l.elType}-${u}`},onDismissButtonClick:function onDismissButtonClick(){var r=this,c=this.getDismissId();elementorCommon.ajax.addRequest(`dismissed_editor_notices`,{data:{dismissId:c},success:function success(){var l;r.$el.remove();var u=(l=elementor)!=null&&(l=l.config)!=null&&(l=l.user)!=null&&l.dismissed_editor_notices?_toConsumableArray(elementor.config.user.dismissed_editor_notices):[];elementor.config.user.dismissed_editor_notices=[].concat(_toConsumableArray(u),[c])}})},templateHelpers:function templateHelpers(){var r,c=l.prototype.templateHelpers.apply(this,arguments),u=(r=elementor)!=null&&(r=r.config)!=null&&(r=r.user)!=null&&r.dismissed_editor_notices?_toConsumableArray(elementor.config.user.dismissed_editor_notices):[],p=this.getDismissId();return c.data.shouldRenderNotice=!u.includes(p),c}})})),Qm=__commonJSMin(((r,c)=>{P(),Bm();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var l=z();c.exports=l.extend({behaviors:function behaviors(){return _objectSpread(_objectSpread({},l.prototype.behaviors.apply(this)),{},{Scrubbing:{behaviorClass:zm,scrubSettings:{intentTime:800}}})},registerValidators:function registerValidators(){l.prototype.registerValidators.apply(this,arguments);var r={},c=this.model;[`min`,`max`].forEach(function(l){var u=c.get(l);_.isFinite(u)&&(r[l]=u)}),jQuery.isEmptyObject(r)||this.addValidator(new this.validatorTypes.Number({validationTerms:r}))}},{getStyleValue:function getStyleValue(r,c,l){if(r===`DEFAULT`)return l.default;if(c==null||c===``)return c;var u=Number(c);if(!isFinite(u)||isNaN(u)){var p;return(p=l.default)==null?``:p}return u}})})),$m=__commonJSMin(((r,c)=>{var l=Se();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.heading=`.elementor-panel-heading`,r},triggers:{click:`control:section:clicked`}})})),eh=__commonJSMin(((r,c)=>{var l=z().extend({updatePlaceholder:function updatePlaceholder(){var r=this.ui.select;if(r){var c=r.find(`option:selected`);c.val()===``&&!c.hasClass(`e-option-placeholder`)&&(c=r.find(`.e-option-placeholder`),c.prop(`selected`,!0)),c.hasClass(`e-option-placeholder`)?r.addClass(`e-select-placeholder`):r.removeClass(`e-select-placeholder`)}},onReady:function onReady(){var r=this.getControlPlaceholder();r&&jQuery(`<option>`).val(``).text(this.model.get(`options`)[r]).addClass(`e-option-placeholder`).prependTo(this.ui.select),this.updatePlaceholder()},onInputChange:function onInputChange(){this.updatePlaceholder()}},{onPasteStyle:function onPasteStyle(r,c){return r.groups?r.groups.some(function(r){return l.onPasteStyle(r,c)}):r.options[c]!==void 0}});c.exports=l})),th=__commonJSMin(((r,c)=>{var l=lp(),u=Vm();c.exports=u.extend({ui:function ui(){var r=u.prototype.ui.apply(this,arguments);return r.slider=`.elementor-slider`,r},templateHelpers:function templateHelpers(){var r=u.prototype.templateHelpers.apply(this,arguments);return r.isMultiple=this.isMultiple(),r},isMultiple:function isMultiple(){var r=this.getControlValue(`sizes`);return!jQuery.isEmptyObject(r)},initSlider:function initSlider(){if(this.ui.slider[0]&&!this.isCustomUnit()){this.destroySlider();var r=this.isMultiple(),c=elementorCommon.helpers.cloneObject(this.getCurrentRange()),l=c.step,u=this.getSize();r?u=Object.values(u):(u=[u],u[0]=parseFloat(u[0])||0,this.ui.input.attr(c)),delete c.step;var p,m=this;r&&(p=[],u.forEach(function(){return p.push({to:function to(r){return r+m.getControlValue(`unit`)}})})),noUiSlider.create(this.ui.slider[0],{start:u,range:c,step:l,tooltips:p,connect:r,format:{to:function to(r){return Math.round(r*1e3)/1e3},from:function from(r){return+r}}}).on(`slide`,this.onSlideChange.bind(this))}},applySavedValue:function applySavedValue(){u.prototype.applySavedValue.apply(this,arguments),this.isSliderInitialized()&&this.ui.slider[0].noUiSlider.set(this.getSize())},isSliderInitialized:function isSliderInitialized(){return this.ui.slider[0]&&this.ui.slider[0].noUiSlider},getSize:function getSize(){var r,c,l=this.isMultiple()?`sizes`:`size`;return this.getControlValue(l)||((r=this.getControlPlaceholder())==null?void 0:r[l])||((c=this.model.get(`default`))==null?void 0:c[l])},resetSize:function resetSize(){this.isMultiple()?this.setValue(`sizes`,{}):this.setValue(`size`,``),this.initSlider()},destroySlider:function destroySlider(){this.ui.slider[0]&&this.ui.slider[0].noUiSlider&&this.ui.slider[0].noUiSlider.destroy()},onReady:function onReady(){this.isMultiple()&&this.$el.addClass(`elementor-control-type-slider--multiple elementor-control-type-slider--handles-`+this.model.get(`handles`)),this.initSlider()},onSlideChange:function onSlideChange(r,c){if(this.isMultiple()){var l=elementorCommon.helpers.cloneObject(this.getSize()),u=Object.keys(l)[c];l[u]=r[c],this.setValue(`sizes`,l)}else this.setValue(`size`,r[0]),this.ui.input.val(r[0])},onInputChange:function onInputChange(r){var c=r.currentTarget.dataset.setting;c===`size`&&this.isSliderInitialized()?this.ui.slider[0].noUiSlider.set(this.getSize()):c===`unit`&&this.handleUnitChange()},handleUnitChange:function handleUnitChange(){this.isCustomUnit()||this.resetSize(),this.maybeDoFractionToCustomConversions()},updateUnitChoices:function updateUnitChoices(){u.prototype.updateUnitChoices.apply(this,arguments);var r=`number`;this.isCustomUnit()?(r=`text`,this.destroySlider()):this.initSlider(),this.isMultiple()||this.ui.input.attr(`type`,r)},maybeDoFractionToCustomConversions:function maybeDoFractionToCustomConversions(){var r,c;if(!this.isMultiple()){var u=this.model.get(`size_units`);if((u==null?void 0:u.length)===2&&u.includes(`fr`)&&u.includes(`custom`)){var p=this.getSize();if(!(typeof p==`string`&&p.includes(`fr`))){var m=this.isCustomUnit()?(0,l.convertSizeToFrString)(p):((r=this.getControlPlaceholder())==null?void 0:r.size)||((c=this.model.get(`default`))==null?void 0:c.size);this.setValue(`size`,m),this.render()}}}},onBeforeDestroy:function onBeforeDestroy(){this.destroySlider(),this.$el.remove()},onDeviceModeChange:function onDeviceModeChange(){var r=this,c=elementor.channels.deviceMode.request(`currentMode`)===`mobile`,l=this.model.get(`name`).includes(`_mobile`),u=this.model.get(`default`);c&&l&&u&&this.isCustomUnit()&&setTimeout(function(){r.maybeDoFractionToCustomConversions()})}})})),nh=__commonJSMin(((r,c)=>{var l=z();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.resetStructure=`.elementor-control-structure-reset`,r},events:function events(){return _.extend(l.prototype.events.apply(this,arguments),{"click @ui.resetStructure":`onResetStructureClick`})},templateHelpers:function templateHelpers(){var r=l.prototype.templateHelpers.apply(this,arguments);return r.getMorePresets=this.getMorePresets.bind(this),r},getCurrentEditedSection:function getCurrentEditedSection(){return elementor.getPanelView().getCurrentPageView().getOption(`editedElementView`)},getMorePresets:function getMorePresets(){var r=elementor.presetsFactory.getParsedStructure(this.getControlValue());return elementor.presetsFactory.getPresets(r.columnsCount)},onResetStructureClick:function onResetStructureClick(){this.getCurrentEditedSection().resetColumnsCustomSize()}})})),rh=__commonJSMin(((r,c)=>{c.exports=z().extend({setInputValue:function setInputValue(r,c){this.$(r).prop(`checked`,this.model.get(`return_value`)===c)}},{onPasteStyle:function onPasteStyle(r,c){return!c||c===r.return_value}})})),ih=__commonJSMin(((r,c)=>{c.exports=Se().extend({triggers:{click:{event:`control:tab:clicked`,stopPropagation:!1}}})})),ah=__commonJSMin(((r,c)=>{b(),w(),E(),D(),k(),A();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})()}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}c.exports=function(r){function URL(){return _classCallCheck(this,URL),_callSuper(this,URL,arguments)}return _inherits(URL,r),_createClass(URL,[{key:`ui`,value:function ui(){var r=_superPropGet(URL,`ui`,this,3)([]);return r.mainInput=`.elementor-input`,r.moreOptionsToggle=`.elementor-control-url-more`,r.moreOptions=`.elementor-control-url-more-options`,r}},{key:`events`,value:function events(){var r=_superPropGet(URL,`events`,this,3)([]);return r[`click @ui.moreOptionsToggle`]=`onMoreOptionsToggleClick`,r}},{key:`autoComplete`,value:function autoComplete(){var r=this,c=this.ui.mainInput,l=elementorCommon.config.isRTL?`right`:`left`,u,p;c.autocomplete({source:function source(l,m){if(r.options.model.attributes.autocomplete){if(u===l.term){m(p);return}if(/^https?:/.test(l.term)||l.term.indexOf(`.`)!==-1)return m();c.prev().show(),jQuery.post(window.ajaxurl,{editor:`elementor`,action:`wp-link-ajax`,page:1,search:l.term,_ajax_linking_nonce:jQuery(`#_ajax_linking_nonce`).val()},function(r){p=r,m(r)},`json`).always(function(){return c.prev().hide()}),u=l.term}},focus:function focus(r){r.preventDefault()},select:function select(l,u){return c.val(u.item.permalink),r.setValue(`url`,u.item.permalink),!1},open:function open(r){jQuery(r.target).data(`uiAutocomplete`).menu.activeMenu.addClass(`elementor-autocomplete-menu`)},minLength:2,position:{my:l+` top+2`,at:l+` bottom`}}),c.autocomplete(`instance`)._renderItem=function(r,c){var l=window.wpLinkL10n?window.wpLinkL10n.noTitle:``,u=c.title?c.title:l;return jQuery(`<li role="option" id="mce-wp-autocomplete-`+c.ID+`">`).append(`<span>`+u+`</span>&nbsp;<span class="elementor-autocomplete-item-info">`+c.info+`</span>`).appendTo(r)}}},{key:`onReady`,value:function onReady(){this.autoComplete()}},{key:`onMoreOptionsToggleClick`,value:function onMoreOptionsToggleClick(){this.ui.moreOptions.slideToggle()}},{key:`onBeforeDestroy`,value:function onBeforeDestroy(){this.ui.mainInput.data(`autocomplete`)&&this.ui.mainInput.autocomplete(`destroy`),this.$el.remove()}}])}(jm())})),oh=__commonJSMin(((r,c)=>{var l=z();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.form=`form`,r.loading=`.wp-widget-form-loading`,r},events:function events(){return{"keyup @ui.form :input":`onFormChanged`,"change @ui.form :input":`onFormChanged`}},onFormChanged:function onFormChanged(){var r=`widget-`+this.model.get(`id_base`),c=this.ui.form.elementorSerializeObject()[r].REPLACE_TO_ID;this.setValue(c)},onReady:function onReady(){var r=this;elementorCommon.ajax.addRequest(`editor_get_wp_widget_form`,{data:{id:r.model.cid,widget_type:r.model.get(`widget`),data:r.container.settings.toJSON()},success:function success(c){if(r.ui.form.html(c),wp.textWidgets){r.ui.form.addClass(`open`);var l=new jQuery.Event(`widget-added`);wp.textWidgets.handleWidgetAdded(l,r.ui.form),wp.mediaWidgets.handleWidgetAdded(l,r.ui.form),wp.customHtmlWidgets&&wp.customHtmlWidgets.handleWidgetAdded(l,r.ui.form)}var u=r.model.get(`widget`);elementor.hooks.doAction(`panel/widgets/${u}/controls/wp_widget/loaded`,r)}})}})})),sh=__commonJSMin(((r,c)=>{var l=z();c.exports=l.extend({editor:null,ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return jQuery.extend(r,{inputWrapper:`.elementor-control-input-wrapper`}),r},events:function events(){return _.extend(l.prototype.events.apply(this,arguments),{"keyup textarea.elementor-wp-editor":`onBaseInputChange`})},buttons:{addToBasic:{underline:`italic`},addToAdvanced:{},moveToAdvanced:{blockquote:`removeformat`,alignleft:`blockquote`,aligncenter:`alignleft`,alignright:`aligncenter`},moveToBasic:{},removeFromBasic:[`unlink`,`wp_more`],removeFromAdvanced:[]},initialize:function initialize(){l.prototype.initialize.apply(this,arguments);var r=this;if(r.editorID=`elementorwpeditor`+r.cid,_.defer(function(){r.isDestroyed||(quicktags({buttons:`strong,em,del,link,img,close`,id:r.editorID}),elementor.config.rich_editing_enabled&&switchEditors.go(r.editorID,`tmce`),delete QTags.instances[0])}),!elementor.config.rich_editing_enabled){r.$el.addClass(`elementor-rich-editing-disabled`);return}var c={id:r.editorID,selector:`#`+r.editorID,setup:function setup(c){r.editor=c}};tinyMCEPreInit.mceInit[r.editorID]=_.extend(_.clone(tinyMCEPreInit.mceInit.elementorwpeditor),c),elementor.config.tinymceHasCustomConfig||r.rearrangeButtons()},applySavedValue:function applySavedValue(){if(this.editor){var r=this.getControlValue();this.editor.setContent(r),jQuery(`#`+this.editorID).val(r)}},saveEditor:function saveEditor(){this.setValue(this.editor.getContent())},moveButtons:function moveButtons(r,c,l){l||(l=c,c=null),_.each(r,function(r,u){var p=l.indexOf(r);if(c){var m=c.indexOf(u);if(m===-1)throw ReferenceError("Trying to move non-existing button `"+u+"`");c.splice(m,1)}if(p===-1)throw ReferenceError("Trying to move button after non-existing button `"+r+"`");l.splice(p+1,0,u)})},rearrangeButtons:function rearrangeButtons(){var r=tinyMCEPreInit.mceInit[this.editorID],c=r.toolbar1.split(`,`),l=r.toolbar2.split(`,`);c=_.difference(c,this.buttons.removeFromBasic),l=_.difference(l,this.buttons.removeFromAdvanced),this.moveButtons(this.buttons.moveToBasic,l,c),this.moveButtons(this.buttons.moveToAdvanced,c,l),this.moveButtons(this.buttons.addToBasic,c),this.moveButtons(this.buttons.addToAdvanced,l),r.toolbar1=c.join(`,`),r.toolbar2=l.join(`,`)},onReady:function onReady(){var r=this,c=jQuery(elementor.config.wp_editor.replace(/elementorwpeditor/g,this.editorID).replace(`%%EDITORCONTENT%%`,``));c.find(`.wp-editor-area`).text(this.getControlValue()),c.find(`.wp-editor-tabs`).addClass(`elementor-control-dynamic-switcher-wrapper`),this.ui.inputWrapper.html(c),setTimeout(function(){!r.isDestroyed&&r.editor&&r.editor.on(`keyup change undo redo`,r.saveEditor.bind(r))},100)},onBeforeDestroy:function onBeforeDestroy(){delete QTags.instances[this.editorID],elementor.config.rich_editing_enabled&&(tinymce.EditorManager.execCommand(`mceRemoveEditor`,!0,this.editorID),delete tinyMCEPreInit.mceInit[this.editorID],delete tinyMCEPreInit.qtInit[this.editorID])}})})),ch=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-panel-global`,id:`elementor-panel-global`,initialize:function initialize(){elementor.getPanelView().getCurrentPageView().search.reset()}})})),lh=__commonJSMin(((c,l)=>{P(),M();var u=__toESM(jn());function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}l.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-element-library-element`,className:function className(){var r=`elementor-element-wrapper`;return!this.isEditable()&&!this.isAtomicWidgetPromotion()&&(r+=` elementor-element--promotion`),this.isIntegration()&&(r+=` elementor-element--integration`),r},events:function events(){var r={};return this.isEditable()||(r.mousedown=`onMouseDown`),r},ui:{element:`.elementor-element`},behaviors:function behaviors(){var r=elementor.hooks.applyFilters(`panel/element/contextMenuGroups`,[],this),c={};return r.length&&(c.contextMenu={behaviorClass:u.default,context:`panel`,groups:r}),elementor.hooks.applyFilters(`panel/element/behaviors`,c,this)},isEditable:function isEditable(){return!1!==this.model.get(`editable`)},isIntegration:function isIntegration(){return!!this.model.get(`integration`)},isAtomicWidgetPromotion:function isAtomicWidgetPromotion(){return!!this.model.get(`promotionType`)},onRender:function onRender(){var r=this;!elementor.userCan(`design`)||!this.isEditable()||(this.ui.element.on(`click`,function(){return r.addToPage()}),this.ui.element.html5Draggable({onDragStart:function onDragStart(){elementor.channels.editor.reply(`element:dragged`,null),elementor.channels.panelElements.reply(`element:selected`,r).trigger(`element:drag:start`)},onDragEnd:function onDragEnd(){elementor.channels.panelElements.trigger(`element:drag:end`)},groups:[`elementor-element`]}))},onMouseDown:function onMouseDown(c){if(c.stopPropagation(),this.isAtomicWidgetPromotion()){var l=this.model.get(`promotionType`);document.dispatchEvent(new CustomEvent(`${l}-promotion:open`,{detail:{target:this.el}}));return}var u=this.model.get(`title`),p=this.model.get(`name`)||this.model.get(`widgetType`),m=this.isIntegration(),h=elementor.config.promotion,g,v,y,b;if(m){var x,S=h==null||(x=h.integration)==null?void 0:x[p];g=S.action_button.url.toString().replaceAll(`&amp;`,`&`),v=S.action_button.text,y=(0,r.sprintf)(S.title,u),b=(0,r.sprintf)(S.content,u)}document.dispatchEvent(new CustomEvent(`widget-promotion:open`,{detail:{target:this.el,widgetType:p,widgetTitle:u,title:y,content:b,ctaUrl:g,ctaText:v,hideProTag:m}}))},addToPage:function addToPage(){var r,c,l,u=this.getSelectedElements();if(!(u.length>1)){var p=_slicedToArray(u,1)[0],m=Object.values({addToDocument:{check:function check(){return!p},getArgs:function getArgs(){return{view:elementor.getPreviewView(),options:{}}}},addToFirstColumn:{check:function check(){return p.model.get(`elType`)===`section`},getArgs:function getArgs(){var r;return{view:(r=p.view.children)==null?void 0:r.findByIndex(0),options:{}}}},addToParent:{check:function check(){return p.model.get(`elType`)===`widget`},getArgs:function getArgs(){var r=p.parent,c=p.model;return{view:r.view,options:{at:r.model.get(`elements`).findIndex(c)+1}}}},default:{check:function check(){return!0},getArgs:function getArgs(){return{view:p.view,options:{}}}}}).find(function(r){var c=r.check;return c()}).getArgs,h=m(),g=h.view,v=h.options,y=g.getContainer();if(!y)throw Error(`View doesn't support adding from panel`,g);(r=(c=this.model.attributes)==null||(c=c.custom)==null?void 0:c.isPreset)!=null&&r&&this.model.set(`settings`,this.model.get(`custom`).preset_settings);var b=this.model.toJSON();if($e.run(`preview/drop`,{container:y,options:_objectSpread(_objectSpread({},v),{},{scrollIntoView:!0}),model:b}),(l=elementorCommon)!=null&&(l=l.eventsManager)!=null&&l.dispatchEvent){var x,S,C=(x=b==null?void 0:b.elType)==null?``:x,w=(S=b==null?void 0:b.widgetType)==null?``:S,T=C===`widget`?w:C;elementorCommon.eventsManager.dispatchEvent(`add_element`,{location:`editor_panel`,element_name:T,element_type:C,widget_type:w})}}},getSelectedElements:function getSelectedElements(){return elementor.selection.getElements().filter(function(r){var c,l=r.view;return(c=elementor.documents.getCurrent().$element)==null?void 0:c[0].contains(l.$el[0])})}})})),uh=__commonJSMin(((r,c)=>{c.exports=Marionette.CollectionView.extend({childView:lh(),id:`elementor-panel-elements`,className:`elementor-responsive-panel`,initialize:function initialize(){this.listenTo(elementor.channels.panelElements,`filter:change`,this.onFilterChanged)},filter:function filter(r){var c=elementor.channels.panelElements.request(`filter:value`);if(!c)return!0;if(r.get(`hideOnSearch`))return!1;if(r.get(`title`).toLowerCase().indexOf(c.toLowerCase())!==-1)return!0;var l=elementor.channels.panelElements.request(`filter:localized`)||``;return _.any(r.get(`keywords`),function(r){r=r.toLowerCase();var u=r.indexOf(c.toLowerCase())!==-1,p=l&&r.indexOf(l.toLowerCase())!==-1;return u||p})},onFilterChanged:function onFilterChanged(){elementor.channels.panelElements.request(`filter:value`)||this.onFilterEmpty(),this._renderChildren(),this.triggerMethod(`children:render`)},onFilterEmpty:function onFilterEmpty(){$e.routes.refreshContainer(`panel`)}})})),dh=__commonJSMin(((r,c)=>{c.exports=function EventManager(){var r=Array.prototype.slice,c,l={actions:{},filters:{}};function _removeHook(r,c,u,p){var m,h,g;if(l[r][c])if(!u)l[r][c]=[];else if(m=l[r][c],p)for(g=m.length;g--;)h=m[g],h.callback===u&&h.context===p&&m.splice(g,1);else for(g=m.length;g--;)m[g].callback===u&&m.splice(g,1)}function _hookInsertSort(r){for(var c,l,u,p=1,m=r.length;p<m;p++){for(c=r[p],l=p;(u=r[l-1])&&u.priority>c.priority;)r[l]=r[l-1],--l;r[l]=c}return r}function _addHook(r,c,u,p,m){var h={callback:u,priority:p,context:m},g=l[r][c];if(g){var v=!1;if(jQuery.each(g,function(){if(this.callback===u)return v=!0,!1}),v)return;g.push(h),g=_hookInsertSort(g)}else g=[h];l[r][c]=g}function _runHook(r,c,u){var p=l[r][c],m,h;if(!p)return r===`filters`&&u[0];if(h=p.length,r===`filters`)for(m=0;m<h;m++)u[0]=p[m].callback.apply(p[m].context,u);else for(m=0;m<h;m++)p[m].callback.apply(p[m].context,u);return r!==`filters`||u[0]}function addAction(r,l,u,p){return typeof r==`string`&&typeof l==`function`&&(u=parseInt(u||10,10),_addHook(`actions`,r,l,u,p)),c}function doAction(){var l=r.call(arguments),u=l.shift();return typeof u==`string`&&_runHook(`actions`,u,l),c}function removeAction(r,l){return typeof r==`string`&&_removeHook(`actions`,r,l),c}function addFilter(r,l,u,p){return typeof r==`string`&&typeof l==`function`&&(u=parseInt(u||10,10),_addHook(`filters`,r,l,u,p)),c}function applyFilters(){var l=r.call(arguments),u=l.shift();return typeof u==`string`?_runHook(`filters`,u,l):c}function removeFilter(r,l){return typeof r==`string`&&_removeHook(`filters`,r,l),c}return c={removeFilter,applyFilters,addFilter,removeAction,doAction,addAction},c}})),fh=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({hasTemplate:!0,tagName:`span`,className:function className(){return`elementor-tag`},getTemplate:function getTemplate(){return this.hasTemplate?Marionette.TemplateCache.get(`#tmpl-elementor-tag-`+this.getOption(`name`)+`-content`):!1},initialize:function initialize(){try{this.getTemplate()}catch(r){this.hasTemplate=!1}},getConfig:function getConfig(r){var c=elementor.dynamicTags.getConfig(`tags.`+this.getOption(`name`));return r?c[r]:c},getContent:function getContent(){var r=this.getConfig(`content_type`),c;if(!this.hasTemplate&&(c=elementor.dynamicTags.loadTagDataFromCache(this),c===void 0))throw Error(elementor.dynamicTags.CACHE_KEY_NOT_FOUND_ERROR);if(r===`ui`){if(this.render(),this.hasTemplate)return this.el.outerHTML;this.getConfig(`wrapped_tag`)&&(c=jQuery(c).html()),this.$el.html(c)}return c},onRender:function onRender(){this.el.id=`elementor-tag-`+this.getOption(`id`)}})})),ph=__commonJSMin(((r,c)=>{P();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}c.exports=elementorModules.Module.extend({CACHE_KEY_NOT_FOUND_ERROR:`Cache key not found`,tags:{Base:fh()},cache:{},cacheRequests:{},cacheCallbacks:[],getTagRenderPostId:function getTagRenderPostId(r){var c;return(c=r.editorRenderPostId)==null?elementor.config.document.id:c},addCacheRequest:function addCacheRequest(r){var c=this.getTagRenderPostId(r),l=this.createCacheKey(r);this.cacheRequests[c]||(this.cacheRequests[c]={}),this.cacheRequests[c][l]=!0},createCacheKey:function createCacheKey(r){var c=this.getTagRenderPostId(r);return btoa(r.getOption(`name`))+`-`+btoa(encodeURIComponent(JSON.stringify(r.model)))+`-`+c},loadTagDataFromCache:function loadTagDataFromCache(r){var c=this.createCacheKey(r);if(this.cache[c]!==void 0)return this.cache[c];var l=this.getTagRenderPostId(r);(!this.cacheRequests[l]||!this.cacheRequests[l][c])&&this.addCacheRequest(r)},loadCacheRequests:function loadCacheRequests(){var r=this,c=this.cacheRequests,l=this.cacheCallbacks;this.cacheRequests={},this.cacheCallbacks=[];var u=Object.keys(c);if(u.length===0){l.forEach(function(r){r.callback()});return}var p=u.length,m=function onRequestComplete(){--p,p===0&&l.forEach(function(r){r.callback()})},h=u.length>1,g=h?elementorCommon.helpers.getUniqueId():null;u.forEach(function(l){elementorCommon.ajax.addRequest(`render_tags`,_objectSpread(_objectSpread({},h?{unique_id:`render_tags-${l}-${g}`}:{}),{},{data:{post_id:Number(l),tags:Object.keys(c[l])},success:function success(c){r.cache=_objectSpread(_objectSpread({},r.cache),c),m()}}))})},refreshCacheFromServer:function refreshCacheFromServer(r){this.cacheCallbacks.push({callback:r}),this.loadCacheRequests()},getConfig:function getConfig(r){return this.getItems(elementor.config.dynamicTags,r)},parseTagsText:function parseTagsText(r,c,l){var u=this;return c.returnType===`object`?u.parseTagText(r,c,l):r.replace(/\[elementor-tag[^\]]+]/g,function(r){return u.parseTagText(r,c,l)})},parseTagText:function parseTagText(r,c,l){var u=this.tagTextToTagData(r);return u?l(u.id,u.name,u.settings):c.returnType===`object`?{}:``},tagTextToTagData:function tagTextToTagData(r){var c=r.match(/id="(.*?(?="))"/),l=r.match(/name="(.*?(?="))"/),u=r.match(/settings="(.*?(?="]))/);return!c||!l||!u?!1:{id:c[1],name:l[1],settings:JSON.parse(decodeURIComponent(u[1]))}},createTag:function createTag(r,c,l){var u=this.getConfig(`tags.`+c);if(u)return new(this.tags[c]||this.tags.Base)({id:r,name:c,model:new elementorModules.editor.elements.models.BaseSettings(l,{controls:u.controls})})},getTagDataContent:function getTagDataContent(r,c,l){var u=this.createTag(r,c,l);if(u)return u.getContent()},tagDataToTagText:function tagDataToTagText(r,c,l){return l=encodeURIComponent(JSON.stringify(l&&l.toJSON({remove:[`default`]})||{})),`[elementor-tag id="`+r+`" name="`+c+`" settings="`+l+`"]`},tagContainerToTagText:function tagContainerToTagText(r){return elementor.dynamicTags.tagDataToTagText(r.view.getOption(`id`),r.view.getOption(`name`),r.view.model)},cleanCache:function cleanCache(){this.cache={}},onInit:function onInit(){this.loadCacheRequests=_.debounce(this.loadCacheRequests,300)}})})),mh=__commonJSMin(((r,c)=>{N();var l=__toESM(R()),u=Hn();c.exports=elementorModules.ViewModule.extend({model:null,hasChange:!1,changeCallbacks:{},addChangeCallback:function addChangeCallback(r,c){this.changeCallbacks[r]=c},bindEvents:function bindEvents(){elementor.on(`document:loaded`,this.onElementorDocumentLoaded),this.model.on(`change`,this.onModelChange)},unbindEvents:function unbindEvents(){elementor.off(`document:loaded`,this.onElementorDocumentLoaded)},addPanelPage:function addPanelPage(){var r=this.getSettings(`name`);elementor.getPanelView().addPage(r+`_settings`,{view:elementor.settings.panelPages[r]||elementor.settings.panelPages.base,title:this.getSettings(`panelPage.title`),options:{editedView:this.getEditedView(),model:this.model,controls:this.model.controls,name:r}})},getContainerType:function getContainerType(){return this.getSettings(`name`)+`_settings`},getContainerId:function getContainerId(){return elementorDevTools.deprecation.deprecated(`getContainerId()`,`3.7.0`,`getContainerType()`),this.getContainerType()},getEditedView:function getEditedView(){var r=elementor.elementsManager.getElementTypeClass(`document`).getModel(),c=this.getContainerType(),l=new r({id:c,elType:c,settings:this.model}),u=new elementorModules.editor.Container({type:c,id:c,model:l,settings:l.get(`settings`),view:!1,parent:!1,label:this.getSettings(`panelPage`).title,controls:this.model.controls,document:this.getDocument(),renderer:!1});return{getContainer:function getContainer(){return u},getEditModel:function getEditModel(){return l},model:l,container:u}},getDocument:function getDocument(){return!1},updateStylesheet:function updateStylesheet(r){var c=this.getControlsCSS();r||c.stylesheet.empty(),this.model.handleRepeaterData(this.model.attributes),c.addStyleRules(this.model.getStyleControls(),this.model.attributes,this.model.controls,[/{{WRAPPER}}/g],[this.getSettings(`cssWrapperSelector`)]),c.addStyleToDocument({at:`before`,of:`#elementor-style-e-global-style`})},initModel:function initModel(){this.model=new elementorModules.editor.elements.models.BaseSettings(this.getSettings(`settings`),{controls:this.getSettings(`controls`)})},getStyleId:function getStyleId(){return this.getSettings(`name`)},initControlsCSSParser:function initControlsCSSParser(){var r;this.destroyControlsCSS=function(){r.removeStyleFromDocument()},this.getControlsCSS=function(){return r||(r=new u({id:this.getStyleId(),settingsModel:this.model,context:this.getEditedView()})),r}},getDataToSave:function getDataToSave(r){return r},save:function save(r){var c=this;return _asyncToGenerator(l.default.mark(function _callee(){var u,p,m;return l.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(u=c,u.hasChange){l.next=1;break}return l.abrupt(`return`);case 1:return p=c.model.toJSON({remove:[`default`]}),m=c.getDataToSave({data:p}),NProgress.start(),l.abrupt(`return`,elementorCommon.ajax.addRequest(`save_`+c.getSettings(`name`)+`_settings`,{data:m,success:function success(){NProgress.done(),u.setSettings(`settings`,p),u.hasChange=!1,r&&r.apply(u,arguments)},error:function error(){alert(`An error occurred.`)}}));case 2:case`end`:return l.stop()}},_callee)}))()},onInit:function onInit(){this.initModel(),this.initControlsCSSParser(),this.addPanelMenuItem(),this.debounceSave=_.debounce(this.save,3e3),elementorModules.ViewModule.prototype.onInit.apply(this,arguments)},addPanelMenuItem:function addPanelMenuItem(){var r=this.getSettings(`panelPage.menu`);if(r){var c=`panel/`+this.getSettings(`name`)+`-settings`,l={icon:r.icon,title:this.getSettings(`panelPage.title`),type:`page`,pageName:this.getSettings(`name`)+`_settings`,callback:function callback(){return $e.route(`${c}/settings`)}};$e.bc.ensureTab(c,`settings`,l.pageName),elementor.modules.layouts.panel.pages.menu.Menu.addItem(l,`settings`,r.beforeItem)}},onModelChange:function onModelChange(r){var c=this;c.hasChange=!0,this.getControlsCSS().stylesheet.empty(),_.each(r.changed,function(r,l){c.changeCallbacks[l]&&c.changeCallbacks[l].call(c,r)}),c.updateStylesheet(!0),c.debounceSave()},onElementorDocumentLoaded:function onElementorDocumentLoaded(){this.updateStylesheet(),this.addPanelPage()},destroy:function destroy(){this.unbindEvents(),this.model.destroy()}})}));function _callSuper$20(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$20()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$20(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$20=function _isNativeReflectConstruct(){return!!r})()}var hh,gh,_h=__esmMin((()=>{b(),w(),E(),D(),A(),hh=__toESM(mh()),__name(_callSuper$20,`_callSuper`),__name(_isNativeReflectConstruct$20,`_isNativeReflectConstruct`),gh=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$20(this,_default,[].concat(l)),r.changeCallbacks={ui_theme:r.onUIThemeChanged,panel_width:r.onPanelWidthChanged,edit_buttons:r.onEditButtonsChanged,show_hidden_elements:r.onShowHiddenElementsChange,show_launchpad_checklist:r.toggleChecklistIconVisibility},r}return _inherits(_default,r),_createClass(_default,[{key:`getDefaultSettings`,value:function getDefaultSettings(){return{darkModeLinkID:`elementor-editor-dark-mode-css`}}},{key:`toggleChecklistIconVisibility`,value:function toggleChecklistIconVisibility(r){var c=r===`yes`;this.addMixpanelTrackingChecklist(c),$e.run(`checklist/toggle-icon`,c)}},{key:`onUIThemeChanged`,value:function onUIThemeChanged(r){var c=jQuery(`#e-theme-ui-light-css`),l=jQuery(`#e-theme-ui-dark-css`);if(r===`auto`){c.attr(`media`,`(prefers-color-scheme: light)`),l.attr(`media`,`(prefers-color-scheme: dark)`);return}r===`light`?(c.attr(`media`,`all`),l.attr(`media`,`none`)):(c.attr(`media`,`none`),l.attr(`media`,`all`))}},{key:`onPanelWidthChanged`,value:function onPanelWidthChanged(r){elementor.panel.saveSize({width:r.size+r.unit}),elementor.panel.setSize()}},{key:`onEditButtonsChanged`,value:function onEditButtonsChanged(){setTimeout(function(){return elementor.getPreviewView()._renderChildren()},300)}},{key:`onShowHiddenElementsChange`,value:function onShowHiddenElementsChange(){elementorFrontend.elements.$body.toggleClass(`e-preview--show-hidden-elements`)}},{key:`addMixpanelTrackingChecklist`,value:function addMixpanelTrackingChecklist(r){var c=r?`checklistShow`:`checklistHide`,l=elementor.getPreviewContainer().document.config.id,u=elementor.getPreviewContainer().model.attributes.settings.attributes.post_title,p=elementor.getPreviewContainer().document.config.post_type_title,m=elementor.getPreviewContainer().document.config.type;return elementorCommon.eventsManager.dispatchEvent(elementorCommon.eventsManager.config.names.elementorEditor.userPreferences[c],{location:elementorCommon.eventsManager.config.locations.elementorEditor,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.userPreferences,trigger:elementorCommon.eventsManager.config.triggers.toggleClick,element:elementorCommon.eventsManager.config.elements.toggle,postId:l,postTitle:u,postTypeTitle:p,documentType:m})}}])}(hh.default)}));function _callSuper$19(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$19()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$19(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$19=function _isNativeReflectConstruct(){return!!r})()}var vh,yh=__esmMin((()=>{b(),w(),E(),D(),A(),Zc(),__name(_callSuper$19,`_callSuper`),__name(_isNativeReflectConstruct$19,`_isNativeReflectConstruct`),vh=function(c){function Component(){return _classCallCheck(this,Component),_callSuper$19(this,Component,arguments)}return _inherits(Component,c),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`panel/page-settings`}},{key:`defaultTabs`,value:function defaultTabs(){return{settings:{title:(0,r.__)(`Settings`,`elementor`)},style:{title:(0,r.__)(`Style`,`elementor`)},advanced:{title:(0,r.__)(`Advanced`,`elementor`)}}}},{key:`renderTab`,value:function renderTab(r,c){var l=c.activeControl,u=c.refresh,p=u!==void 0&&u;(this.shouldRenderPage(r)||p)&&elementor.getPanelView().setPage(`page_settings`).activateTab(r),this.activateControl(l)}},{key:`shouldRenderPage`,value:function shouldRenderPage(r){var c,l=elementor.getPanelView(),u=l.getCurrentPageName()===`page_settings`,p=r===((c=l.getCurrentPageView())==null?void 0:c.activeTab);return!u||!p}},{key:`getTabsWrapperSelector`,value:function getTabsWrapperSelector(){return`.elementor-panel-navigation`}}])}(Xc)}));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.
174 +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}var l=jm();c.exports=l.extend({ui:function ui(){return Object.assign(l.prototype.ui.apply(this,arguments),{units:`.e-units-choices>input`,unitSwitcher:`.e-units-switcher`,unitChoices:`.e-units-choices`})},events:function events(){return Object.assign(l.prototype.events.apply(this,arguments),{"change @ui.units":`onUnitChange`,"click @ui.units":`onUnitClick`,"click @ui.unitSwitcher":`onUnitLabelClick`})},updatePlaceholder:function updatePlaceholder(){var r,c=(r=this.getControlPlaceholder())==null?void 0:r.unit;this.ui.units.removeClass(`e-units-placeholder`),c!==this.getControlValue(`unit`)&&this.ui.units.filter(`[value="${c}"]`).addClass(`e-units-placeholder`)},recursiveUnitChange:function recursiveUnitChange(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,c=this.getResponsiveParentView();if(c&&r){var l=c.getControlValue(`unit`),u=Object.keys(this.getCleanControlValue()||{});u.splice(u.indexOf(`unit`),1),l&&!u.length&&(this.setValue(`unit`,l),this.render())}var p=_createForOfIteratorHelper(this.getResponsiveChildrenViews()),m;try{for(p.s();!(m=p.n()).done;)m.value.recursiveUnitChange()}catch(r){p.e(r)}finally{p.f()}},onRender:function onRender(){l.prototype.onRender.apply(this,arguments),this.updatePlaceholder(),this.updateUnitChoices()},onUnitChange:function onUnitChange(){this.toggleUnitChoices(!1),this.recursiveUnitChange(!1),this.updatePlaceholder(),this.updateUnitChoices()},toggleUnitChoices:function toggleUnitChoices(r){this.ui.unitChoices.toggleClass(`e-units-choices-open`,r)},updateUnitChoices:function updateUnitChoices(){var r=this.getControlValue(`unit`);this.ui.unitSwitcher.attr(`data-selected`,r).find(`span`).html(r),this.$el.toggleClass(`e-units-custom`,this.isCustomUnit())},onUnitClick:function onUnitClick(){this.toggleUnitChoices(!1)},onUnitLabelClick:function onUnitLabelClick(r){r.preventDefault(),this.toggleUnitChoices()},getCurrentRange:function getCurrentRange(){return this.getUnitRange(this.getControlValue(`unit`))},getUnitRange:function getUnitRange(r){var c=this.model.get(`range`);return c?(c[r]||(c[r]=Object.values(c)[0]),c[r]):!1},isCustomUnit:function isCustomUnit(){return this.getControlValue(`unit`)===`custom`}},{getStyleValue:function getStyleValue(r,c){var u=l.getStyleValue(r,c);return r===`UNIT`&&u===`custom`&&(u=`__EMPTY__`),u}})})),Hm=__commonJSMin(((r,c)=>{P(),Bm();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var l=Vm();c.exports=l.extend({behaviors:function behaviors(){var r=this;return _objectSpread(_objectSpread({},l.prototype.behaviors.apply(this)),{},{Scrubbing:{behaviorClass:zm,scrubSettings:{intentTime:800,valueModifier:function valueModifier(){var c=r.getControlValue(`unit`);return[`rem`,`em`].includes(c)?.1:1},enhancedNumber:function enhancedNumber(){var c=r.getControlValue(`unit`);return[`rem`,`em`].includes(c)?.5:10}}}})},ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.controls=`.elementor-control-dimension > input:enabled`,r.link=`button.elementor-link-dimensions`,r},events:function events(){return _.extend(l.prototype.events.apply(this,arguments),{"click @ui.link":`onLinkDimensionsClicked`})},defaultDimensionValue:0,initialize:function initialize(){l.prototype.initialize.apply(this,arguments),this.model.set(`allowed_dimensions`,this.filterDimensions(this.model.get(`allowed_dimensions`)))},getPossibleDimensions:function getPossibleDimensions(){return[`top`,`right`,`bottom`,`left`]},filterDimensions:function filterDimensions(r){r=r||`all`;var c=this.getPossibleDimensions();return r===`all`?c:(_.isArray(r)||(r===`horizontal`?r=[`right`,`left`]:r===`vertical`&&(r=[`top`,`bottom`])),r)},onReady:function onReady(){var r=this,c=r.getControlValue();r.isLinkedDimensions()||(r.ui.link.addClass(`unlinked`),r.ui.controls.each(function(l,u){var p=c[u.dataset.setting];_.isEmpty(p)&&(p=r.defaultDimensionValue),r.$(u).val(p)})),r.fillEmptyDimensions()},updateDimensionsValue:function updateDimensionsValue(){var r={},c=this.getPossibleDimensions(),l=this.ui.controls,u=this.defaultDimensionValue;c.forEach(function(c){var p=l.filter(`[data-setting="`+c+`"]`);r[c]=p.length?p.val():u}),this.setValue(r)},fillEmptyDimensions:function fillEmptyDimensions(){var r=this.ui.controls,c=this.defaultDimensionValue;if(!this.isLinkedDimensions()){var l=this.model.get(`allowed_dimensions`);this.getPossibleDimensions().forEach(function(u){var p=r.filter(`[data-setting="`+u+`"]`);_.indexOf(l,u)!==-1&&p.length&&_.isEmpty(p.val())&&p.val(c)})}},updateDimensions:function updateDimensions(){this.fillEmptyDimensions(),this.updateDimensionsValue()},resetDimensions:function resetDimensions(){this.ui.controls.val(``),this.updateDimensionsValue()},onInputChange:function onInputChange(r){var c,l=r.target.dataset.setting;if(l===`unit`&&this.resetDimensions(),_.contains(this.getPossibleDimensions(),l)&&!((r==null||(c=r.originalEvent)==null?void 0:c.data)===`-`&&!r.target.value)){if(this.isLinkedDimensions()){var u=this.$(r.target);this.ui.controls.val(u.val())}this.updateDimensions()}},onLinkDimensionsClicked:function onLinkDimensionsClicked(r){r.preventDefault(),r.stopPropagation(),this.ui.link.toggleClass(`unlinked`),this.setValue(`isLinked`,!this.ui.link.hasClass(`unlinked`)),this.isLinkedDimensions()&&this.ui.controls.val(this.ui.controls.eq(0).val()),this.updateDimensions()},isLinkedDimensions:function isLinkedDimensions(){return this.getControlValue(`isLinked`)},updateUnitChoices:function updateUnitChoices(){l.prototype.updateUnitChoices.apply(this,arguments);var r=`number`;this.isCustomUnit()&&(r=`text`),this.ui.controls.attr(`type`,r)}})})),Um=__commonJSMin(((r,c)=>{var l=Am();c.exports=l.extend({$previewContainer:null,getSelect2Options:function getSelect2Options(){return{dir:elementorCommon.config.isRTL?`rtl`:`ltr`,templateSelection:this.fontPreviewTemplate,templateResult:this.fontPreviewTemplate}},onReady:function onReady(){var r=this;this.ui.select.select2(this.getSelect2Options()),this.ui.select.on(`select2:open`,function(){r.$previewContainer=jQuery(`.select2-results__options[role="tree"]:visible`),setTimeout(function(){r.enqueueFontsInView()},100),jQuery(`input.select2-search__field:visible`).on(`keyup`,function(){r.typeStopDetection.action.apply(r)}),r.$previewContainer.on(`scroll`,function(){r.scrollStopDetection.onScroll.apply(r)})})},typeStopDetection:{idle:350,timeOut:null,action:function action(){var r=this,c=this.typeStopDetection;clearTimeout(c.timeOut),c.timeOut=setTimeout(function(){r.enqueueFontsInView()},c.idle)}},scrollStopDetection:{idle:350,timeOut:null,onScroll:function onScroll(){var r=this,c=this.scrollStopDetection;clearTimeout(c.timeOut),c.timeOut=setTimeout(function(){r.enqueueFontsInView()},c.idle)}},enqueueFontsInView:function enqueueFontsInView(){var r=this.$previewContainer.offset().top,c=r+this.$previewContainer.innerHeight(),l=[];this.$previewContainer.children().find(`li:visible`).each(function(u,p){var m=jQuery(p),h=m.offset();h&&h.top>r&&h.top<c&&l.push(m)}),l.forEach(function(r){var c=jQuery(r).find(`span`).html();elementor.helpers.enqueueFont(c,`editor`)})},fontPreviewTemplate:function fontPreviewTemplate(r){return r.id?jQuery(`<span>`,{text:r.text,css:{"font-family":r.element.value.toString()}}):r.text},templateHelpers:function templateHelpers(){var r=l.prototype.templateHelpers.apply(this,arguments),c=this.model.get(`options`);return r.getFontsByGroups=function(r){var l={};return _.each(c,function(c,u){(_.isArray(r)&&_.contains(r,c)||c===r)&&(l[u]=u)}),l},r}})})),Wm=__commonJSMin(((r,c)=>{x();var l=Hm();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.controls=`.elementor-control-gap > input:enabled`,r.link=`button.elementor-link-gaps`,r},getPossibleDimensions:function getPossibleDimensions(){return[`row`,`column`]},setValue:function setValue(r,c){var l=this.getControlValue();_typeof(r)===`object`?_.each(r,function(r,c){l[c]=r}):l[r]=c;var u=this.model.get(`conversion_map`);u&&u.old_key&&u.new_key&&(l[u.old_key]=parseInt(l[u.new_key])),this.setSettingsModel(l)},getControlValue:function getControlValue(){var r=l.prototype.getControlValue.apply(this,arguments);return this.shouldUpdateGapsValues(r)&&(r.column=``+r.size,r.row=``+r.size,r.isLinked=!0),r},shouldUpdateGapsValues:function shouldUpdateGapsValues(r){return!!r.hasOwnProperty(`size`)&&r.size!==``&&!r.hasOwnProperty(`column`)}})})),Gm=__commonJSMin(((c,l)=>{N();var u=__toESM(R());Gs();var p=z();l.exports=p.extend({ui:function ui(){var r=p.prototype.ui.apply(this,arguments);return r.addImages=`.elementor-control-gallery-add`,r.clearGallery=`.elementor-control-gallery-clear`,r.galleryThumbnails=`.elementor-control-gallery-thumbnails`,r.status=`.elementor-control-gallery-status-title`,r.promotions=`.elementor-control-media__promotions`,r.promotions_dismiss=`.elementor-control-media__promotions .elementor-control-notice-dismiss`,r.promotions_action=`.elementor-control-media__promotions .elementor-control-notice-main-actions button`,r},events:function events(){return _.extend(p.prototype.events.apply(this,arguments),{"click @ui.addImages":`onAddImagesClick`,"click @ui.clearGallery":`onClearGalleryClick`,"click @ui.galleryThumbnails":`onGalleryThumbnailsClick`,"click @ui.promotions_dismiss":`onPromotionDismiss`,"click @ui.promotions_action":`onPromotionAction`,"keyup @ui.galleryThumbnails":`onGalleryThumbnailsKeyPress`})},onReady:function onReady(){this.initRemoveDialog()},applySavedValue:function applySavedValue(){var c=this;return _asyncToGenerator(u.default.mark(function _callee(){var l,p,m,h,g,v,y,b;return u.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(l=c.getControlValue(),p=l.length,m=!!p,h=0,g=!1,v=c.ui.promotions.length&&!elementor.config.user.dismissed_editor_notices.includes(c.getDismissPromotionEventName()),c.$el.toggleClass(`elementor-gallery-has-images`,m).toggleClass(`elementor-gallery-empty`,!m),y=c.ui.galleryThumbnails,y.empty(),c.ui.status.text(m?(0,r.sprintf)((0,r.__)(`%s Images Selected`,`elementor`),p):(0,r.__)(`No Images Selected`,`elementor`)),v&&(g=c.ui.promotions.find(`.elementor-control-notice`).data(`display`)||!1),m){u.next=1;break}return u.abrupt(`return`);case 1:return b=[],c.getControlValue().forEach(function(r,l){var u=jQuery(`<img>`,{class:`elementor-control-gallery-thumbnail`,src:r.url,alt:`gallery-thumbnail-`+l});y.append(u),b.push(wp.media.attachment(r.id).fetch().then(function handleHints(r){c.imageHasAlt(r)||u.addClass(`unoptimized__image`),v&&c.imageNotOptimized(r)&&(h+=1)}))}),u.next=2,Promise.all(b).then(function(){if(v){var r=g||!!h;c.ui.promotions.toggle(r)}});case 2:case`end`:return u.stop()}},_callee)}))()},hasImages:function hasImages(){return!!this.getControlValue().length},imageHasAlt:function imageHasAlt(r){var c;return!!(r!=null&&(c=r.alt)!=null&&c.trim())},imageNotOptimized:function imageNotOptimized(r){var c={height:1080,width:1920,filesizeInBytes:1e5};return Object.keys(c).some(function(l){var u=r[l]||!1;return u&&u>c[l]})},openFrame:function openFrame(r){this.initFrame(r),this.frame.open(),Ws.isUploadEnabled(`svg`)&&Ws.setUploadTypeCaller(this.frame)},initFrame:function initFrame(c){var l={frame:`post`,multiple:!0,state:{create:`gallery`,add:`gallery-library`,edit:`gallery-edit`}[c],button:{text:(0,r.__)(`Insert Media`,`elementor`)}};this.hasImages()&&(l.selection=this.fetchSelection()),this.frame=wp.media(l),this.addSvgMimeType(),this.frame.on({update:this.select,"menu:render:default":this.menuRender,"content:render:browse":this.gallerySettings},this)},addSvgMimeType:function addSvgMimeType(){if(Ws.isUploadEnabled(`svg`)){var r=_wpPluploadSettings.defaults.filters.mime_types[0].extensions;this.frame.on(`ready`,function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=r+`,svg`}),this.frame.on(`close`,function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=r})}},menuRender:function menuRender(r){r.unset(`insert`),r.unset(`featured-image`)},gallerySettings:function gallerySettings(r){r.sidebar.on(`ready`,function(){r.sidebar.unset(`gallery`)})},fetchSelection:function fetchSelection(){var r=wp.media.query({orderby:`post__in`,order:`ASC`,type:`image`,perPage:-1,post__in:_.pluck(this.getControlValue(),`id`)});return new wp.media.model.Selection(r.models,{props:r.props.toJSON(),multiple:!0})},select:function select(r){var c=[];r.each(function(r){c.push({id:r.get(`id`),url:r.get(`url`)})}),this.setValue(c),this.applySavedValue()},onPromotionDismiss:function onPromotionDismiss(){this.dismissPromotion(this.getDismissPromotionEventName())},getDismissPromotionEventName:function getDismissPromotionEventName(){var r,c=this.ui.promotions.find(`.elementor-control-notice-dismiss`);return c.off(`click`),((r=c[0])==null||(r=r.dataset)==null?void 0:r.event)||!1},hidePromotion:function hidePromotion(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this.ui.promotions.hide(),r||(r=this.getDismissPromotionEventName()),elementor.config.user.dismissed_editor_notices.push(r)},onPromotionAction:function onPromotionAction(r){var c={};try{c=JSON.parse(r.target.closest(`button`).dataset.settings)}catch(r){}var l=c,u=l.action_url,p=u===void 0?null:u,m=l.source,h=m===void 0?`io-editor-gallery-install`:m;p&&window.open(p,`_blank`),elementorCommon.ajax.addRequest(`elementor_image_optimization_campaign`,{data:{source:h}}),this.hidePromotion()},dismissPromotion:function dismissPromotion(r){this.ui.promotions.hide(),r&&(elementorCommon.ajax.addRequest(`dismissed_editor_notices`,{data:{dismissId:r}}),elementor.config.user.dismissed_editor_notices.push(r))},onBeforeDestroy:function onBeforeDestroy(){this.frame&&this.frame.off(),this.$el.remove()},clearGallery:function clearGallery(){this.setValue([]),this.applySavedValue(),this.ui.promotions&&this.ui.promotions.hide()},initRemoveDialog:function initRemoveDialog(){var c;this.getRemoveDialog=function(){return c||(c=elementorCommon.dialogsManager.createWidget(`confirm`,{message:(0,r.__)(`Are you sure you want to clear this gallery?`,`elementor`),headerMessage:(0,r.__)(`Clear gallery`,`elementor`),strings:{confirm:(0,r.__)(`Clear`,`elementor`),cancel:(0,r.__)(`Cancel`,`elementor`)},defaultOption:`confirm`,onConfirm:this.clearGallery.bind(this)})),c}},onAddImagesClick:function onAddImagesClick(){this.openFrame(this.hasImages()?`add`:`create`)},onClearGalleryClick:function onClearGalleryClick(){this.getRemoveDialog().show()},onGalleryThumbnailsClick:function onGalleryThumbnailsClick(){this.openFrame(`edit`)},onGalleryThumbnailsKeyPress:function onGalleryThumbnailsKeyPress(r){(r.which===13||r.which===32)&&this.onGalleryThumbnailsClick(r)}})})),Km=__commonJSMin(((r,c)=>{c.exports=__toESM(z()).default.extend({},{onPasteStyle:function onPasteStyle(){return!1}})})),qm=__commonJSMin(((r,c)=>{var l=Am();c.exports=l.extend({initialize:function initialize(){l.prototype.initialize.apply(this,arguments),this.filterIcons()},filterIcons:function filterIcons(){var r=this.model.get(`options`),c=this.model.get(`include`);if(c){var l={};_.each(c,function(c){l[c]=r[c]}),this.model.set(`options`,l);return}var u=this.model.get(`exclude`);u&&_.each(u,function(c){delete r[c]})},iconsList:function iconsList(r){return r.id?jQuery(`<span><i class="`+r.id+`"></i> `+r.text+`</span>`):r.text},getSelect2Options:function getSelect2Options(){return{allowClear:!0,templateResult:this.iconsList.bind(this),templateSelection:this.iconsList.bind(this)}}})})),Jm=__commonJSMin(((c,l)=>{b(),w(),E(),D(),k(),A(),Gs();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})()}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 u=jm();l.exports=function(c){function ControlIconsView(){var r;_classCallCheck(this,ControlIconsView);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper(this,ControlIconsView,[].concat(l)),r.cache={loaded:!1,dialog:!1,enableClicked:!1,fa4Mapping:!1,migratedFlag:{}},r.dataKeys={migratedKey:`__fa4_migrated`,fa4MigrationFlag:`fa4compatibility`},r}return _inherits(ControlIconsView,c),_createClass(ControlIconsView,[{key:`enqueueIconFonts`,value:function enqueueIconFonts(r){var c=elementor.helpers.getIconLibrarySettings(r);if(!(!1===c||!this.isMigrationAllowed())&&(c.enqueue&&c.enqueue.forEach(function(r){var l=`${r}${c!=null&&c.ver?`?ver=`+c.ver:``}`;elementor.helpers.enqueueEditorStylesheet(l),elementor.helpers.enqueuePreviewStylesheet(l)}),c.url)){var l=`${c.url}${c!=null&&c.ver?`?ver=`+c.ver:``}`;elementor.helpers.enqueueEditorStylesheet(l),elementor.helpers.enqueuePreviewStylesheet(l)}}},{key:`ui`,value:function ui(){var r=_superPropGet(ControlIconsView,`ui`,this,3)([]),c=this.model.get(`skin`);return r.controlMedia=`.elementor-control-media`,r.svgUploader=c===`media`?`.elementor-control-svg-uploader`:`.elementor-control-icons--inline__svg`,r.iconPickers=c===`media`?`.elementor-control-icon-picker, .elementor-control-media__preview, .elementor-control-media-upload-button`:`.elementor-control-icons--inline__icon`,r.deleteButton=c===`media`?`.elementor-control-media__remove`:`.elementor-control-icons--inline__none`,r.previewPlaceholder=`.elementor-control-media__preview`,r.previewContainer=`.elementor-control-preview-area`,r.inlineIconContainer=`.elementor-control-inline-icon`,r.inlineDisplayedIcon=`.elementor-control-icons--inline__displayed-icon`,r.radioInputs=`[type="radio"]`,r}},{key:`events`,value:function events(){return jQuery.extend(u.prototype.events.apply(this,arguments),{"click @ui.iconPickers":`openPicker`,"click @ui.svgUploader":`openFrame`,"click @ui.radioInputs":`onClickInput`,"click @ui.deleteButton":`deleteIcon`})}},{key:`getControlValue`,value:function getControlValue(){var r=this.model,c=this.getValueToMigrate();if(!this.isMigrationAllowed())return c;var l=_superPropGet(ControlIconsView,`getControlValue`,this,3)([]);if(!c)return l;var u=r.get(`name`);if(this.cache.migratedFlag[u])return this.cache.migratedFlag[u];var p=this.elementSettingsModel.get(this.dataKeys.migratedKey);return p&&p[u]?l:this.migrateFa4toFa5(c)}},{key:`migrateFa4toFa5`,value:function migrateFa4toFa5(r){var c=elementor.helpers.mapFa4ToFa5(r);return this.cache.migratedFlag[this.model.get(`name`)]=c,this.enqueueIconFonts(c.library),c}},{key:`setControlAsMigrated`,value:function setControlAsMigrated(r){var c=this.elementSettingsModel.get(this.dataKeys.migratedKey)||{};c[r]=!0,this.elementSettingsModel.set(this.dataKeys.migratedKey,c,{silent:!0})}},{key:`isMigrationAllowed`,value:function isMigrationAllowed(){return!elementor.config.icons_update_needed}},{key:`getValueToMigrate`,value:function getValueToMigrate(){var r=this.model.get(this.dataKeys.fa4MigrationFlag);return r&&this.container.settings.get(r)||!1}},{key:`onReady`,value:function onReady(){var c=this;this.isMigrationAllowed()||(this.model.get(`skin`)===`media`?this.ui.previewContainer[0]:this.ui.inlineIconContainer[0]).addEventListener(`click`,function(c){return c.preventDefault(),c.stopPropagation(),elementor.helpers.getSimpleDialog(`elementor-enable-fa5-dialog`,(0,r.__)(`Elementor's New Icon Library`,`elementor`),(0,r.__)(`Elementor v2.6 includes an upgrade from Font Awesome 4 to 5. In order to continue using icons, be sure to click "Update".`,`elementor`)+` <a href="https://go.elementor.com/fontawesome-migration/" target="_blank">`+(0,r.__)(`Learn More`,`elementor`)+`</a>`,(0,r.__)(`Update`,`elementor`),function onConfirm(){var r;window.location.href=elementor.config.tools_page_link+`&redirect_to_document=`+((r=elementor.documents.getCurrent())==null?void 0:r.id)+`&_wpnonce=`+elementor.config.tools_page_nonce+`#tab-fontawesome4_migration`}).show(),!1},!0);var l=this.model.get(`name`);this.cache.migratedFlag[l]&&(this.setControlAsMigrated(l),setTimeout(function(){c.setValue(c.cache.migratedFlag[l])},10))}},{key:`onRender`,value:function onRender(){_superPropGet(ControlIconsView,`onRender`,this,3)([]),this.isMigrationAllowed()&&elementor.iconManager.loadIconLibraries()}},{key:`initFrame`,value:function initFrame(){var c=this;wp.media.view.settings.post.id=elementor.config.document.id,this.frame=wp.media({button:{text:(0,r.__)(`Insert Media`,`elementor`)},library:{type:[`image/svg+xml`]},states:[new wp.media.controller.Library({title:(0,r.__)(`Insert Media`,`elementor`),library:wp.media.query({type:[`image/svg+xml`]}),multiple:!1,date:!1})]}),this.frame.on(`insert select`,function handleSelect(){return c.selectSvg()}),this.setUploadMimeType(this.frame,`svg`)}},{key:`setUploadMimeType`,value:function setUploadMimeType(r,c){var l=_wpPluploadSettings.defaults.filters.mime_types[0].extensions;r.on(`ready`,function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=c}),this.frame.on(`close`,function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=l})}},{key:`selectSvg`,value:function selectSvg(){this.trigger(`before:select`);var r=this.frame.state().get(`selection`).first().toJSON();r.url&&(this.setValue({value:{url:r.url,id:r.id},library:`svg`}),this.applySavedValue()),this.trigger(`after:select`)}},{key:`openFrame`,value:function openFrame(){var r=this;if(!Ws.isUploadEnabled(`svg`))return Ws.getUnfilteredFilesNotEnabledDialog(function(){return r.openFrame()}).show(),!1;this.frame||this.initFrame(),this.frame.open(),Ws.setUploadTypeCaller(this.frame);var c=this.getControlValue(`id`);c&&this.frame.state().get(`selection`).add(wp.media.attachment(c))}},{key:`openPicker`,value:function openPicker(){elementor.iconManager.show({view:this})}},{key:`applySavedValue`,value:function applySavedValue(){var r=this,c=this.getControlValue(),l=this.model.get(`skin`),u=l===`inline`?this.ui.inlineDisplayedIcon:this.ui.previewPlaceholder,p=this.model.get(`disable_initial_active_state`),m=this.model.get(`default`),h=c.value,g=c.library;if(!this.isMigrationAllowed()&&!h&&this.getValueToMigrate()&&(h=this.getControlValue(),g=``),l===`media`&&this.ui.controlMedia.toggleClass(`e-media-empty`,!h),(l===`inline`&&!p||g)&&this.markChecked(g),!h){if(l===`inline`){this.setDefaultIconLibraryLabel(m,u);return}this.ui.previewPlaceholder.html(``);return}if(g===`svg`&&l!==`inline`)return elementor.helpers.fetchInlineSvg(h.url,function(c){r.ui.previewPlaceholder.html(c)});if(l===`media`||g!==`svg`){var v=`<i class="`+h+`"></i>`;u.html(v)}this.enqueueIconFonts(g)}},{key:`setDefaultIconLibraryLabel`,value:function setDefaultIconLibraryLabel(r,c){if(r.value!==``&&r.library!==`svg`)c.html(`<i class="`+r.value+`"></i>`);else{var l=this.model.get(`skin_settings`);c.html(`<i class="`+l.inline.icon.icon+`"></i>`)}}},{key:`markChecked`,value:function markChecked(r){if(this.ui.radioInputs.filter(`:checked`).prop(`checked`,!1),!r)return this.ui.radioInputs.filter(`[value="none"]`).prop(`checked`,!0);r!==`svg`&&(r=`icon`),this.ui.radioInputs.filter(`[value="`+r+`"]`).prop(`checked`,!0)}},{key:`onClickInput`,value:function onClickInput(){this.markChecked(this.getControlValue().library)}},{key:`deleteIcon`,value:function deleteIcon(r){r.stopPropagation(),this.setValue({value:``,library:``}),this.applySavedValue()}},{key:`onBeforeDestroy`,value:function onBeforeDestroy(){this.$el.remove()}}])}(u)})),Ym=__commonJSMin(((r,c)=>{P(),Bm();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var l=jm();c.exports=l.extend({behaviors:function behaviors(){return _objectSpread(_objectSpread({},l.prototype.behaviors.apply(this)),{},{Scrubbing:{behaviorClass:zm,scrubSettings:{intentTime:800}}})},ui:function ui(){return{inputWidth:`input[data-setting="width"]`,inputHeight:`input[data-setting="height"]`,btnApply:`button.elementor-image-dimensions-apply-button`}},events:function events(){return{"click @ui.btnApply":`onApplyClicked`,"keyup @ui.inputWidth":`onDimensionKeyUp`,"keyup @ui.inputHeight":`onDimensionKeyUp`}},onDimensionKeyUp:function onDimensionKeyUp(r){r.keyCode===13&&this.onApplyClicked(r)},onApplyClicked:function onApplyClicked(r){r.preventDefault(),this.setValue({width:this.ui.inputWidth.val(),height:this.ui.inputHeight.val()})}})})),Xm=__commonJSMin(((c,l)=>{P(),N();var u=__toESM(R());Gs(),cm();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var p=jm();l.exports=p.extend({ui:function ui(){var r=p.prototype.ui.apply(this,arguments);return r.controlMedia=`.elementor-control-media`,r.mediaImage=`.elementor-control-media__preview`,r.mediaVideo=`.elementor-control-media-video`,r.frameOpeners=`.elementor-control-preview-area`,r.removeButton=`.elementor-control-media__remove`,r.promotions=`.elementor-control-media__promotions`,r.promotions_dismiss=`.elementor-control-media__promotions .elementor-control-notice-dismiss`,r.promotions_action=`.elementor-control-media__promotions .elementor-control-notice-main-actions button`,r.fileName=`.elementor-control-media__file__content__info__name`,r.mediaInputImageSize=`.e-image-size-select`,r},events:function events(){return _.extend(p.prototype.events.apply(this,arguments),{"click @ui.frameOpeners":`openFrame`,"click @ui.removeButton":`deleteImage`,"change @ui.mediaInputImageSize":`onMediaInputImageSizeChange`,"click @ui.promotions_dismiss":`onPromotionDismiss`,"click @ui.promotions_action":`onPromotionAction`})},getMediaType:function getMediaType(){return this.mediaType||this.model.get(`media_type`)||this.model.get(`media_types`)[0]},getLibraryType:function getLibraryType(r){return r||(r=this.getMediaType()),r===`svg`?`image/svg+xml`:r},applySavedValue:function applySavedValue(){var r,c=this,l=this.getControlValue(`url`),u=l||((r=this.getControlPlaceholder())==null?void 0:r.url),p=this.getControlValue(`id`),m=!l&&u,h=this.getMediaType();if([`image`,`svg`].includes(h))this.ui.mediaImage.css(`background-image`,u?`url(`+u+`)`:``),m&&this.ui.mediaImage.css(`opacity`,.5);else if(h===`video`)this.ui.mediaVideo.attr(`src`,u);else{var g=u?u.split(`/`).pop():``;this.ui.fileName.text(g)}if(this.ui.mediaInputImageSize){var v=this.getControlValue(`size`);if(m){var y;v=(y=this.getControlPlaceholder())==null?void 0:y.size}this.ui.mediaInputImageSize.val(v).toggleClass(`e-select-placeholder`,m)}if(this.ui.controlMedia.toggleClass(`e-media-empty`,!l).toggleClass(`e-media-empty-placeholder`,!l&&!m),h===`image`&&(this.ui.promotions.length&&this.ui.promotions.hide(),p)){var b=this.getDismissPromotionEventName();wp.media.attachment(p).fetch().then(function handleHints(r){if(c.ui.promotions.length&&!elementor.config.user.dismissed_editor_notices.includes(b)){var l=c.ui.promotions.find(`.elementor-control-notice`).data(`display`)||c.imageNotOptimized(r);c.ui.promotions.toggle(l)}})}},openFrame:function openFrame(r){var c=arguments,l=this;return _asyncToGenerator(u.default.mark(function _callee(){var p,m,h,g;return u.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(m=c.length>1&&c[1]!==void 0?c[1]:null,h=(r==null||(p=r.target)==null||(p=p.dataset)==null?void 0:p.mediaType)||l.getMediaType(),l.mediaType=h,h){u.next=1;break}return u.abrupt(`return`);case 1:if(Ws.isUploadEnabled(h)){u.next=2;break}return Ws.getUnfilteredFilesNotEnabledDialog(function(){return l.openFrame(r,`filter-popup`)}).show(),u.abrupt(`return`,!1);case 2:if(!(m!==`filter-popup`&&[`application/json`,`json`].includes(h))){u.next=3;break}return u.next=3,showJsonUploadWarningMessageIfNeeded({introductionMap:window.elementor.config.user.introduction,IntroductionClass:window.elementorModules.editor.utils.Introduction});case 3:if((!l.frame||l.getLibraryType(h)!==l.currentLibraryType)&&l.initFrame(),l.frame.open(),Ws.setUploadTypeCaller(l.frame),g=l.getControlValue(`id`),g){u.next=4;break}return u.abrupt(`return`);case 4:l.frame.state().get(`selection`).add(wp.media.attachment(g));case 5:case`end`:return u.stop()}},_callee)}))()},deleteImage:function deleteImage(r){r.stopPropagation(),this.setValue({url:``,id:``}),this.applySavedValue()},imageHasAlt:function imageHasAlt(r){var c;return!!(r!=null&&(c=r.alt)!=null&&c.trim())},imageNotOptimized:function imageNotOptimized(r){var c={height:1080,width:1920,filesizeInBytes:1e5};return Object.keys(c).some(function(l){var u=r[l]||!1;return u&&u>c[l]})},getDismissPromotionEventName:function getDismissPromotionEventName(){var r,c=this.ui.promotions.find(`.elementor-control-notice-dismiss`);return c.off(`click`),((r=c[0])==null||(r=r.dataset)==null?void 0:r.event)||!1},onPromotionDismiss:function onPromotionDismiss(){this.dismissPromotion(this.getDismissPromotionEventName())},onPromotionAction:function onPromotionAction(r){var c={};try{c=JSON.parse(r.target.closest(`button`).dataset.settings)}catch(r){}var l=c,u=l.action_url,p=u===void 0?null:u,m=l.source,h=m===void 0?`io-editor-image-install`:m;p&&window.open(p,`_blank`),this.hidePromotion(null,h)},dismissPromotion:function dismissPromotion(r){this.hidePromotion(r),r&&elementorCommon.ajax.addRequest(`dismissed_editor_notices`,{data:{dismissId:r}})},hidePromotion:function hidePromotion(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`io-editor-image-install`;this.ui.promotions.hide(),r||(r=this.getDismissPromotionEventName()),elementorCommon.ajax.addRequest(`elementor_image_optimization_campaign`,{data:{source:c}}),elementor.config.user.dismissed_editor_notices.push(r)},onMediaInputImageSizeChange:function onMediaInputImageSizeChange(){var r=this;if(this.model.get(`has_sizes`)){var c=this.getControlValue(),l=this.getControlPlaceholder(),u=(c==null?void 0:c.id)!==``,p=l==null?void 0:l.id;if(u||p){if(p&&!u){this.setValue(_objectSpread(_objectSpread({},l),{},{size:c.size})),this.model.get(`responsive`)?this.renderWithChildren():this.applySavedValue(),this.onMediaInputImageSizeChange();return}var m;elementor.channels.editor.once(`imagesManager:detailsReceived`,function(l){var u;m=(u=l[c.id])==null?void 0:u[c.size],m&&(c.url=m,r.setValue(c))}),m=elementor.imagesManager.getImageUrl({id:c.id,url:c.url,size:c.size}),m&&(c.url=m,this.setValue(c))}}},initFrame:function initFrame(){var c=this.getMediaType();this.currentLibraryType=this.getLibraryType(c),wp.media.view.settings.post.id=elementor.config.document.id,this.frame=wp.media({frame:`post`,type:`image`,multiple:!1,states:[new wp.media.controller.Library({title:(0,r.__)(`Insert Media`,`elementor`),library:wp.media.query({type:this.currentLibraryType}),multiple:!1,date:!1})]}),this.frame.on(`ready open`,this.onFrameReady.bind(this)),this.frame.on(`insert select`,this.select.bind(this)),elementorCommon.config.filesUpload.unfilteredFiles&&this.setUploadMimeType(this.frame,c)},onFrameReady:function onFrameReady(){var c=this.frame.$el;c.find([`#menu-item-insert`,`#menu-item-gallery`,`#menu-item-playlist`,`#menu-item-video-playlist`,`.embed-link-settings`].join(`,`)).remove(),c.css(`--button-text`,`'${(0,r.__)(`Insert Media`,`elementor`)}'`),c.addClass(`e-wp-media-elements-removed`),this.getControlValue(`source`)===`url`?(c.find(`#menu-item-embed`).trigger(`click`),c.addClass(`hide-router`),this.frame.views.get(`.media-frame-content`)[0].url.model.set({url:this.getControlValue(`url`),alt:this.getControlValue(`alt`)})):c.find(`#menu-item-library`).trigger(`click`)},setUploadMimeType:function setUploadMimeType(r,c){var l=_wpPluploadSettings.defaults.filters.mime_types[0].extensions;r.on(`ready`,function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=c===`application/json`?`json`:l+`,svg`}),this.frame.on(`close`,function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=l})},select:function select(){this.trigger(`before:select`);var r=this.frame.state(),c;r.get(`id`)===`embed`?c={url:r.props.get(`url`),id:``,alt:r.props.get(`alt`),source:`url`}:(c=this.frame.state().get(`selection`).first().toJSON(),c.source=`library`),c.url&&(this.setValue({url:c.url,id:c.id,alt:c.alt,source:c.source,size:this.model.get(`default`).size}),this.model.get(`responsive`)?this.renderWithChildren():this.applySavedValue()),this.onMediaInputImageSizeChange(),this.trigger(`after:select`)},onBeforeDestroy:function onBeforeDestroy(){this.$el.remove()}})})),Zm=__commonJSMin(((r,c)=>{ge();var l=Se();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.button=`.elementor-control-notice-dismiss`,r},events:{"click @ui.button.e-btn-1":`onButton1Click`,"click @ui.button.e-btn-2":`onButton2Click`,"click @ui.button.elementor-control-notice-dismiss":`onDismissButtonClick`},onButton1Click:function onButton1Click(){var r=this.model.get(`event`);elementor.channels.editor.trigger(r,this)},onButton2Click:function onButton2Click(){var r=this.model.get(`event`);elementor.channels.editor.trigger(r,this)},getDismissId:function getDismissId(){var r,c,l,u=this.model.get(`name`);return`${((r=this.options)==null||(r=r.element)==null||(r=r.model)==null||(r=r.attributes)==null?void 0:r.elType)===`widget`?(c=this.options)==null||(c=c.element)==null||(c=c.model)==null||(c=c.attributes)==null?void 0:c.widgetType:(l=this.options)==null||(l=l.element)==null||(l=l.model)==null||(l=l.attributes)==null?void 0:l.elType}-${u}`},onDismissButtonClick:function onDismissButtonClick(){var r=this,c=this.getDismissId();elementorCommon.ajax.addRequest(`dismissed_editor_notices`,{data:{dismissId:c},success:function success(){var l;r.$el.remove();var u=(l=elementor)!=null&&(l=l.config)!=null&&(l=l.user)!=null&&l.dismissed_editor_notices?_toConsumableArray(elementor.config.user.dismissed_editor_notices):[];elementor.config.user.dismissed_editor_notices=[].concat(_toConsumableArray(u),[c])}})},templateHelpers:function templateHelpers(){var r,c=l.prototype.templateHelpers.apply(this,arguments),u=(r=elementor)!=null&&(r=r.config)!=null&&(r=r.user)!=null&&r.dismissed_editor_notices?_toConsumableArray(elementor.config.user.dismissed_editor_notices):[],p=this.getDismissId();return c.data.shouldRenderNotice=!u.includes(p),c}})})),Qm=__commonJSMin(((r,c)=>{P(),Bm();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var l=z();c.exports=l.extend({behaviors:function behaviors(){return _objectSpread(_objectSpread({},l.prototype.behaviors.apply(this)),{},{Scrubbing:{behaviorClass:zm,scrubSettings:{intentTime:800}}})},registerValidators:function registerValidators(){l.prototype.registerValidators.apply(this,arguments);var r={},c=this.model;[`min`,`max`].forEach(function(l){var u=c.get(l);_.isFinite(u)&&(r[l]=u)}),jQuery.isEmptyObject(r)||this.addValidator(new this.validatorTypes.Number({validationTerms:r}))}},{getStyleValue:function getStyleValue(r,c,l){if(r===`DEFAULT`)return l.default;if(c==null||c===``)return c;var u=Number(c);if(!isFinite(u)||isNaN(u)){var p;return(p=l.default)==null?``:p}return u}})})),$m=__commonJSMin(((r,c)=>{var l=Se();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.heading=`.elementor-panel-heading`,r},triggers:{click:`control:section:clicked`}})})),eh=__commonJSMin(((r,c)=>{var l=z().extend({updatePlaceholder:function updatePlaceholder(){var r=this.ui.select;if(r){var c=r.find(`option:selected`);c.val()===``&&!c.hasClass(`e-option-placeholder`)&&(c=r.find(`.e-option-placeholder`),c.prop(`selected`,!0)),c.hasClass(`e-option-placeholder`)?r.addClass(`e-select-placeholder`):r.removeClass(`e-select-placeholder`)}},onReady:function onReady(){var r=this.getControlPlaceholder();r&&jQuery(`<option>`).val(``).text(this.model.get(`options`)[r]).addClass(`e-option-placeholder`).prependTo(this.ui.select),this.updatePlaceholder()},onInputChange:function onInputChange(){this.updatePlaceholder()}},{onPasteStyle:function onPasteStyle(r,c){return r.groups?r.groups.some(function(r){return l.onPasteStyle(r,c)}):r.options[c]!==void 0}});c.exports=l})),th=__commonJSMin(((r,c)=>{var l=lp(),u=Vm();c.exports=u.extend({ui:function ui(){var r=u.prototype.ui.apply(this,arguments);return r.slider=`.elementor-slider`,r},templateHelpers:function templateHelpers(){var r=u.prototype.templateHelpers.apply(this,arguments);return r.isMultiple=this.isMultiple(),r},isMultiple:function isMultiple(){var r=this.getControlValue(`sizes`);return!jQuery.isEmptyObject(r)},initSlider:function initSlider(){if(this.ui.slider[0]&&!this.isCustomUnit()){this.destroySlider();var r=this.isMultiple(),c=elementorCommon.helpers.cloneObject(this.getCurrentRange()),l=c.step,u=this.getSize();r?u=Object.values(u):(u=[u],u[0]=parseFloat(u[0])||0,this.ui.input.attr(c)),delete c.step;var p,m=this;r&&(p=[],u.forEach(function(){return p.push({to:function to(r){return r+m.getControlValue(`unit`)}})})),noUiSlider.create(this.ui.slider[0],{start:u,range:c,step:l,tooltips:p,connect:r,format:{to:function to(r){return Math.round(r*1e3)/1e3},from:function from(r){return+r}}}).on(`slide`,this.onSlideChange.bind(this))}},applySavedValue:function applySavedValue(){u.prototype.applySavedValue.apply(this,arguments),this.isSliderInitialized()&&this.ui.slider[0].noUiSlider.set(this.getSize())},isSliderInitialized:function isSliderInitialized(){return this.ui.slider[0]&&this.ui.slider[0].noUiSlider},getSize:function getSize(){var r,c,l=this.isMultiple()?`sizes`:`size`;return this.getControlValue(l)||((r=this.getControlPlaceholder())==null?void 0:r[l])||((c=this.model.get(`default`))==null?void 0:c[l])},resetSize:function resetSize(){this.isMultiple()?this.setValue(`sizes`,{}):this.setValue(`size`,``),this.initSlider()},destroySlider:function destroySlider(){this.ui.slider[0]&&this.ui.slider[0].noUiSlider&&this.ui.slider[0].noUiSlider.destroy()},onReady:function onReady(){this.isMultiple()&&this.$el.addClass(`elementor-control-type-slider--multiple elementor-control-type-slider--handles-`+this.model.get(`handles`)),this.initSlider()},onSlideChange:function onSlideChange(r,c){if(this.isMultiple()){var l=elementorCommon.helpers.cloneObject(this.getSize()),u=Object.keys(l)[c];l[u]=r[c],this.setValue(`sizes`,l)}else this.setValue(`size`,r[0]),this.ui.input.val(r[0])},onInputChange:function onInputChange(r){var c=r.currentTarget.dataset.setting;c===`size`&&this.isSliderInitialized()?this.ui.slider[0].noUiSlider.set(this.getSize()):c===`unit`&&this.handleUnitChange()},handleUnitChange:function handleUnitChange(){this.isCustomUnit()||this.resetSize(),this.maybeDoFractionToCustomConversions()},updateUnitChoices:function updateUnitChoices(){u.prototype.updateUnitChoices.apply(this,arguments);var r=`number`;this.isCustomUnit()?(r=`text`,this.destroySlider()):this.initSlider(),this.isMultiple()||this.ui.input.attr(`type`,r)},maybeDoFractionToCustomConversions:function maybeDoFractionToCustomConversions(){var r,c;if(!this.isMultiple()){var u=this.model.get(`size_units`);if((u==null?void 0:u.length)===2&&u.includes(`fr`)&&u.includes(`custom`)){var p=this.getSize();if(!(typeof p==`string`&&p.includes(`fr`))){var m=this.isCustomUnit()?(0,l.convertSizeToFrString)(p):((r=this.getControlPlaceholder())==null?void 0:r.size)||((c=this.model.get(`default`))==null?void 0:c.size);this.setValue(`size`,m),this.render()}}}},onBeforeDestroy:function onBeforeDestroy(){this.destroySlider(),this.$el.remove()},onDeviceModeChange:function onDeviceModeChange(){var r=this,c=elementor.channels.deviceMode.request(`currentMode`)===`mobile`,l=this.model.get(`name`).includes(`_mobile`),u=this.model.get(`default`);c&&l&&u&&this.isCustomUnit()&&setTimeout(function(){r.maybeDoFractionToCustomConversions()})}})})),nh=__commonJSMin(((r,c)=>{var l=z();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.resetStructure=`.elementor-control-structure-reset`,r},events:function events(){return _.extend(l.prototype.events.apply(this,arguments),{"click @ui.resetStructure":`onResetStructureClick`})},templateHelpers:function templateHelpers(){var r=l.prototype.templateHelpers.apply(this,arguments);return r.getMorePresets=this.getMorePresets.bind(this),r},getCurrentEditedSection:function getCurrentEditedSection(){return elementor.getPanelView().getCurrentPageView().getOption(`editedElementView`)},getMorePresets:function getMorePresets(){var r=elementor.presetsFactory.getParsedStructure(this.getControlValue());return elementor.presetsFactory.getPresets(r.columnsCount)},onResetStructureClick:function onResetStructureClick(){this.getCurrentEditedSection().resetColumnsCustomSize()}})})),rh=__commonJSMin(((r,c)=>{c.exports=z().extend({setInputValue:function setInputValue(r,c){this.$(r).prop(`checked`,this.model.get(`return_value`)===c)}},{onPasteStyle:function onPasteStyle(r,c){return!c||c===r.return_value}})})),ih=__commonJSMin(((r,c)=>{c.exports=Se().extend({triggers:{click:{event:`control:tab:clicked`,stopPropagation:!1}}})})),ah=__commonJSMin(((r,c)=>{b(),w(),E(),D(),k(),A();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})()}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}c.exports=function(r){function URL(){return _classCallCheck(this,URL),_callSuper(this,URL,arguments)}return _inherits(URL,r),_createClass(URL,[{key:`ui`,value:function ui(){var r=_superPropGet(URL,`ui`,this,3)([]);return r.mainInput=`.elementor-input`,r.moreOptionsToggle=`.elementor-control-url-more`,r.moreOptions=`.elementor-control-url-more-options`,r}},{key:`events`,value:function events(){var r=_superPropGet(URL,`events`,this,3)([]);return r[`click @ui.moreOptionsToggle`]=`onMoreOptionsToggleClick`,r}},{key:`autoComplete`,value:function autoComplete(){var r=this,c=this.ui.mainInput,l=elementorCommon.config.isRTL?`right`:`left`,u,p;c.autocomplete({source:function source(l,m){if(r.options.model.attributes.autocomplete){if(u===l.term){m(p);return}if(/^https?:/.test(l.term)||l.term.indexOf(`.`)!==-1)return m();c.prev().show(),jQuery.post(window.ajaxurl,{editor:`elementor`,action:`wp-link-ajax`,page:1,search:l.term,_ajax_linking_nonce:jQuery(`#_ajax_linking_nonce`).val()},function(r){p=r,m(r)},`json`).always(function(){return c.prev().hide()}),u=l.term}},focus:function focus(r){r.preventDefault()},select:function select(l,u){return c.val(u.item.permalink),r.setValue(`url`,u.item.permalink),!1},open:function open(r){jQuery(r.target).data(`uiAutocomplete`).menu.activeMenu.addClass(`elementor-autocomplete-menu`)},minLength:2,position:{my:l+` top+2`,at:l+` bottom`}}),c.autocomplete(`instance`)._renderItem=function(r,c){var l=window.wpLinkL10n?window.wpLinkL10n.noTitle:``,u=c.title?c.title:l;return jQuery(`<li role="option" id="mce-wp-autocomplete-`+c.ID+`">`).append(`<span>`+u+`</span>&nbsp;<span class="elementor-autocomplete-item-info">`+c.info+`</span>`).appendTo(r)}}},{key:`onReady`,value:function onReady(){this.autoComplete()}},{key:`onMoreOptionsToggleClick`,value:function onMoreOptionsToggleClick(){this.ui.moreOptions.slideToggle()}},{key:`onBeforeDestroy`,value:function onBeforeDestroy(){this.ui.mainInput.data(`autocomplete`)&&this.ui.mainInput.autocomplete(`destroy`),this.$el.remove()}}])}(jm())})),oh=__commonJSMin(((r,c)=>{var l=z();c.exports=l.extend({ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return r.form=`form`,r.loading=`.wp-widget-form-loading`,r},events:function events(){return{"keyup @ui.form :input":`onFormChanged`,"change @ui.form :input":`onFormChanged`}},onFormChanged:function onFormChanged(){var r=`widget-`+this.model.get(`id_base`),c=this.ui.form.elementorSerializeObject()[r].REPLACE_TO_ID;this.setValue(c)},onReady:function onReady(){var r=this;elementorCommon.ajax.addRequest(`editor_get_wp_widget_form`,{data:{id:r.model.cid,widget_type:r.model.get(`widget`),data:r.container.settings.toJSON()},success:function success(c){if(r.ui.form.html(c),wp.textWidgets){r.ui.form.addClass(`open`);var l=new jQuery.Event(`widget-added`);wp.textWidgets.handleWidgetAdded(l,r.ui.form),wp.mediaWidgets.handleWidgetAdded(l,r.ui.form),wp.customHtmlWidgets&&wp.customHtmlWidgets.handleWidgetAdded(l,r.ui.form)}var u=r.model.get(`widget`);elementor.hooks.doAction(`panel/widgets/${u}/controls/wp_widget/loaded`,r)}})}})})),sh=__commonJSMin(((r,c)=>{var l=z();c.exports=l.extend({editor:null,ui:function ui(){var r=l.prototype.ui.apply(this,arguments);return jQuery.extend(r,{inputWrapper:`.elementor-control-input-wrapper`}),r},events:function events(){return _.extend(l.prototype.events.apply(this,arguments),{"keyup textarea.elementor-wp-editor":`onBaseInputChange`})},buttons:{addToBasic:{underline:`italic`},addToAdvanced:{},moveToAdvanced:{blockquote:`removeformat`,alignleft:`blockquote`,aligncenter:`alignleft`,alignright:`aligncenter`},moveToBasic:{},removeFromBasic:[`unlink`,`wp_more`],removeFromAdvanced:[]},initialize:function initialize(){l.prototype.initialize.apply(this,arguments);var r=this;if(r.editorID=`elementorwpeditor`+r.cid,_.defer(function(){r.isDestroyed||(quicktags({buttons:`strong,em,del,link,img,close`,id:r.editorID}),elementor.config.rich_editing_enabled&&switchEditors.go(r.editorID,`tmce`),delete QTags.instances[0])}),!elementor.config.rich_editing_enabled){r.$el.addClass(`elementor-rich-editing-disabled`);return}var c={id:r.editorID,selector:`#`+r.editorID,setup:function setup(c){r.editor=c}};tinyMCEPreInit.mceInit[r.editorID]=_.extend(_.clone(tinyMCEPreInit.mceInit.elementorwpeditor),c),elementor.config.tinymceHasCustomConfig||r.rearrangeButtons()},applySavedValue:function applySavedValue(){if(this.editor){var r=this.getControlValue();this.editor.setContent(r),jQuery(`#`+this.editorID).val(r)}},saveEditor:function saveEditor(){this.setValue(this.editor.getContent())},moveButtons:function moveButtons(r,c,l){l||(l=c,c=null),_.each(r,function(r,u){var p=l.indexOf(r);if(c){var m=c.indexOf(u);if(m===-1)throw ReferenceError("Trying to move non-existing button `"+u+"`");c.splice(m,1)}if(p===-1)throw ReferenceError("Trying to move button after non-existing button `"+r+"`");l.splice(p+1,0,u)})},rearrangeButtons:function rearrangeButtons(){var r=tinyMCEPreInit.mceInit[this.editorID],c=r.toolbar1.split(`,`),l=r.toolbar2.split(`,`);c=_.difference(c,this.buttons.removeFromBasic),l=_.difference(l,this.buttons.removeFromAdvanced),this.moveButtons(this.buttons.moveToBasic,l,c),this.moveButtons(this.buttons.moveToAdvanced,c,l),this.moveButtons(this.buttons.addToBasic,c),this.moveButtons(this.buttons.addToAdvanced,l),r.toolbar1=c.join(`,`),r.toolbar2=l.join(`,`)},onReady:function onReady(){var r=this,c=jQuery(elementor.config.wp_editor.replace(/elementorwpeditor/g,this.editorID).replace(`%%EDITORCONTENT%%`,``));c.find(`.wp-editor-area`).text(this.getControlValue()),c.find(`.wp-editor-tabs`).addClass(`elementor-control-dynamic-switcher-wrapper`),this.ui.inputWrapper.html(c),setTimeout(function(){!r.isDestroyed&&r.editor&&r.editor.on(`keyup change undo redo`,r.saveEditor.bind(r))},100)},onBeforeDestroy:function onBeforeDestroy(){delete QTags.instances[this.editorID],elementor.config.rich_editing_enabled&&(tinymce.EditorManager.execCommand(`mceRemoveEditor`,!0,this.editorID),delete tinyMCEPreInit.mceInit[this.editorID],delete tinyMCEPreInit.qtInit[this.editorID])}})})),ch=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-panel-global`,id:`elementor-panel-global`,initialize:function initialize(){elementor.getPanelView().getCurrentPageView().search.reset()}})})),lh=__commonJSMin(((c,l)=>{P(),M();var u=__toESM(jn());function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}l.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-element-library-element`,className:function className(){var r=`elementor-element-wrapper`;return!this.isEditable()&&!this.isAtomicWidgetPromotion()&&(r+=` elementor-element--promotion`),this.isIntegration()&&(r+=` elementor-element--integration`),r},events:function events(){var r={};return this.isEditable()||(r.mousedown=`onMouseDown`),r},ui:{element:`.elementor-element`},behaviors:function behaviors(){var r=elementor.hooks.applyFilters(`panel/element/contextMenuGroups`,[],this),c={};return r.length&&(c.contextMenu={behaviorClass:u.default,context:`panel`,groups:r}),elementor.hooks.applyFilters(`panel/element/behaviors`,c,this)},isEditable:function isEditable(){return!1!==this.model.get(`editable`)},isIntegration:function isIntegration(){return!!this.model.get(`integration`)},isAtomicWidgetPromotion:function isAtomicWidgetPromotion(){return!!this.model.get(`promotionType`)},onRender:function onRender(){var r=this;!elementor.userCan(`design`)||!this.isEditable()||(this.ui.element.on(`click`,function(){return r.addToPage()}),this.ui.element.html5Draggable({onDragStart:function onDragStart(){elementor.channels.editor.reply(`element:dragged`,null),elementor.channels.panelElements.reply(`element:selected`,r).trigger(`element:drag:start`)},onDragEnd:function onDragEnd(){elementor.channels.panelElements.trigger(`element:drag:end`)},groups:[`elementor-element`]}))},onMouseDown:function onMouseDown(c){if(c.stopPropagation(),this.isAtomicWidgetPromotion()){var l=this.model.get(`promotionType`);document.dispatchEvent(new CustomEvent(`${l}-promotion:open`,{detail:{target:this.el}}));return}var u=this.model.get(`title`),p=this.model.get(`name`)||this.model.get(`widgetType`),m=this.isIntegration(),h=elementor.config.promotion,g,v,y,b;if(m){var x,S=h==null||(x=h.integration)==null?void 0:x[p];g=S.action_button.url.toString().replaceAll(`&amp;`,`&`),v=S.action_button.text,y=(0,r.sprintf)(S.title,u),b=(0,r.sprintf)(S.content,u)}document.dispatchEvent(new CustomEvent(`widget-promotion:open`,{detail:{target:this.el,widgetType:p,widgetTitle:u,title:y,content:b,ctaUrl:g,ctaText:v,hideProTag:m}}))},addToPage:function addToPage(){var r,c,l,u=this.getSelectedElements();if(!(u.length>1)){var p=_slicedToArray(u,1)[0],m=Object.values({addToDocument:{check:function check(){return!p},getArgs:function getArgs(){return{view:elementor.getPreviewView(),options:{}}}},addToFirstColumn:{check:function check(){return p.model.get(`elType`)===`section`},getArgs:function getArgs(){var r;return{view:(r=p.view.children)==null?void 0:r.findByIndex(0),options:{}}}},addToParent:{check:function check(){return p.model.get(`elType`)===`widget`},getArgs:function getArgs(){var r=p.parent,c=p.model;return{view:r.view,options:{at:r.model.get(`elements`).findIndex(c)+1}}}},default:{check:function check(){return!0},getArgs:function getArgs(){return{view:p.view,options:{}}}}}).find(function(r){var c=r.check;return c()}).getArgs,h=m(),g=h.view,v=h.options,y=g.getContainer();if(!y)throw Error(`View doesn't support adding from panel`,g);(r=(c=this.model.attributes)==null||(c=c.custom)==null?void 0:c.isPreset)!=null&&r&&this.model.set(`settings`,this.model.get(`custom`).preset_settings);var b=this.model.toJSON();if($e.run(`preview/drop`,{container:y,options:_objectSpread(_objectSpread({},v),{},{scrollIntoView:!0}),model:b}),(l=elementorCommon)!=null&&(l=l.eventsManager)!=null&&l.dispatchEvent){var x,S,C=(x=b==null?void 0:b.elType)==null?``:x,w=(S=b==null?void 0:b.widgetType)==null?``:S,T=C===`widget`?w:C;elementorCommon.eventsManager.dispatchEvent(`add_element`,{location:`editor_panel`,element_name:T,element_type:C,widget_type:w})}}},getSelectedElements:function getSelectedElements(){return elementor.selection.getElements().filter(function(r){var c,l=r.view;return(c=elementor.documents.getCurrent().$element)==null?void 0:c[0].contains(l.$el[0])})}})})),uh=__commonJSMin(((r,c)=>{c.exports=Marionette.CollectionView.extend({childView:lh(),id:`elementor-panel-elements`,className:`elementor-responsive-panel`,initialize:function initialize(){this.listenTo(elementor.channels.panelElements,`filter:change`,this.onFilterChanged),this._syncAtomicComparator()},_syncAtomicComparator:function _syncAtomicComparator(){var r;elementor.channels.panelElements.request(`filter:value`)&&(r=elementorCommon.config.experimentalFeatures)!=null&&r.e_atomic_elements?this.viewComparator=function(r,c){return r.get(`atomic`)&&!c.get(`atomic`)?-1:!r.get(`atomic`)&&c.get(`atomic`)?1:0}:this.viewComparator=null},filter:function filter(r){var c=elementor.channels.panelElements.request(`filter:value`);if(!c)return!0;if(r.get(`hideOnSearch`))return!1;if(r.get(`title`).toLowerCase().indexOf(c.toLowerCase())!==-1)return!0;var l=elementor.channels.panelElements.request(`filter:localized`)||``;return _.any(r.get(`keywords`),function(r){r=r.toLowerCase();var u=r.indexOf(c.toLowerCase())!==-1,p=l&&r.indexOf(l.toLowerCase())!==-1;return u||p})},onFilterChanged:function onFilterChanged(){var r=elementor.channels.panelElements.request(`filter:value`);this._syncAtomicComparator(),r||this.onFilterEmpty(),this._renderChildren(),this.triggerMethod(`children:render`)},onFilterEmpty:function onFilterEmpty(){$e.routes.refreshContainer(`panel`)}})})),dh=__commonJSMin(((r,c)=>{c.exports=function EventManager(){var r=Array.prototype.slice,c,l={actions:{},filters:{}};function _removeHook(r,c,u,p){var m,h,g;if(l[r][c])if(!u)l[r][c]=[];else if(m=l[r][c],p)for(g=m.length;g--;)h=m[g],h.callback===u&&h.context===p&&m.splice(g,1);else for(g=m.length;g--;)m[g].callback===u&&m.splice(g,1)}function _hookInsertSort(r){for(var c,l,u,p=1,m=r.length;p<m;p++){for(c=r[p],l=p;(u=r[l-1])&&u.priority>c.priority;)r[l]=r[l-1],--l;r[l]=c}return r}function _addHook(r,c,u,p,m){var h={callback:u,priority:p,context:m},g=l[r][c];if(g){var v=!1;if(jQuery.each(g,function(){if(this.callback===u)return v=!0,!1}),v)return;g.push(h),g=_hookInsertSort(g)}else g=[h];l[r][c]=g}function _runHook(r,c,u){var p=l[r][c],m,h;if(!p)return r===`filters`&&u[0];if(h=p.length,r===`filters`)for(m=0;m<h;m++)u[0]=p[m].callback.apply(p[m].context,u);else for(m=0;m<h;m++)p[m].callback.apply(p[m].context,u);return r!==`filters`||u[0]}function addAction(r,l,u,p){return typeof r==`string`&&typeof l==`function`&&(u=parseInt(u||10,10),_addHook(`actions`,r,l,u,p)),c}function doAction(){var l=r.call(arguments),u=l.shift();return typeof u==`string`&&_runHook(`actions`,u,l),c}function removeAction(r,l){return typeof r==`string`&&_removeHook(`actions`,r,l),c}function addFilter(r,l,u,p){return typeof r==`string`&&typeof l==`function`&&(u=parseInt(u||10,10),_addHook(`filters`,r,l,u,p)),c}function applyFilters(){var l=r.call(arguments),u=l.shift();return typeof u==`string`?_runHook(`filters`,u,l):c}function removeFilter(r,l){return typeof r==`string`&&_removeHook(`filters`,r,l),c}return c={removeFilter,applyFilters,addFilter,removeAction,doAction,addAction},c}})),fh=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({hasTemplate:!0,tagName:`span`,className:function className(){return`elementor-tag`},getTemplate:function getTemplate(){return this.hasTemplate?Marionette.TemplateCache.get(`#tmpl-elementor-tag-`+this.getOption(`name`)+`-content`):!1},initialize:function initialize(){try{this.getTemplate()}catch(r){this.hasTemplate=!1}},getConfig:function getConfig(r){var c=elementor.dynamicTags.getConfig(`tags.`+this.getOption(`name`));return r?c[r]:c},getContent:function getContent(){var r=this.getConfig(`content_type`),c;if(!this.hasTemplate&&(c=elementor.dynamicTags.loadTagDataFromCache(this),c===void 0))throw Error(elementor.dynamicTags.CACHE_KEY_NOT_FOUND_ERROR);if(r===`ui`){if(this.render(),this.hasTemplate)return this.el.outerHTML;this.getConfig(`wrapped_tag`)&&(c=jQuery(c).html()),this.$el.html(c)}return c},onRender:function onRender(){this.el.id=`elementor-tag-`+this.getOption(`id`)}})})),ph=__commonJSMin(((r,c)=>{P();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}c.exports=elementorModules.Module.extend({CACHE_KEY_NOT_FOUND_ERROR:`Cache key not found`,tags:{Base:fh()},cache:{},cacheRequests:{},cacheCallbacks:[],getTagRenderPostId:function getTagRenderPostId(r){var c;return(c=r.editorRenderPostId)==null?elementor.config.document.id:c},addCacheRequest:function addCacheRequest(r){var c=this.getTagRenderPostId(r),l=this.createCacheKey(r);this.cacheRequests[c]||(this.cacheRequests[c]={}),this.cacheRequests[c][l]=!0},createCacheKey:function createCacheKey(r){var c=this.getTagRenderPostId(r);return btoa(r.getOption(`name`))+`-`+btoa(encodeURIComponent(JSON.stringify(r.model)))+`-`+c},loadTagDataFromCache:function loadTagDataFromCache(r){var c=this.createCacheKey(r);if(this.cache[c]!==void 0)return this.cache[c];var l=this.getTagRenderPostId(r);(!this.cacheRequests[l]||!this.cacheRequests[l][c])&&this.addCacheRequest(r)},loadCacheRequests:function loadCacheRequests(){var r=this,c=this.cacheRequests,l=this.cacheCallbacks;this.cacheRequests={},this.cacheCallbacks=[];var u=Object.keys(c);if(u.length===0){l.forEach(function(r){r.callback()});return}var p=u.length,m=function onRequestComplete(){--p,p===0&&l.forEach(function(r){r.callback()})},h=u.length>1,g=h?elementorCommon.helpers.getUniqueId():null;u.forEach(function(l){elementorCommon.ajax.addRequest(`render_tags`,_objectSpread(_objectSpread({},h?{unique_id:`render_tags-${l}-${g}`}:{}),{},{data:{post_id:Number(l),tags:Object.keys(c[l])},success:function success(c){r.cache=_objectSpread(_objectSpread({},r.cache),c),m()}}))})},refreshCacheFromServer:function refreshCacheFromServer(r){this.cacheCallbacks.push({callback:r}),this.loadCacheRequests()},getConfig:function getConfig(r){return this.getItems(elementor.config.dynamicTags,r)},parseTagsText:function parseTagsText(r,c,l){var u=this;return c.returnType===`object`?u.parseTagText(r,c,l):r.replace(/\[elementor-tag[^\]]+]/g,function(r){return u.parseTagText(r,c,l)})},parseTagText:function parseTagText(r,c,l){var u=this.tagTextToTagData(r);return u?l(u.id,u.name,u.settings):c.returnType===`object`?{}:``},tagTextToTagData:function tagTextToTagData(r){var c=r.match(/id="(.*?(?="))"/),l=r.match(/name="(.*?(?="))"/),u=r.match(/settings="(.*?(?="]))/);return!c||!l||!u?!1:{id:c[1],name:l[1],settings:JSON.parse(decodeURIComponent(u[1]))}},createTag:function createTag(r,c,l){var u=this.getConfig(`tags.`+c);if(u)return new(this.tags[c]||this.tags.Base)({id:r,name:c,model:new elementorModules.editor.elements.models.BaseSettings(l,{controls:u.controls})})},getTagDataContent:function getTagDataContent(r,c,l){var u=this.createTag(r,c,l);if(u)return u.getContent()},tagDataToTagText:function tagDataToTagText(r,c,l){return l=encodeURIComponent(JSON.stringify(l&&l.toJSON({remove:[`default`]})||{})),`[elementor-tag id="`+r+`" name="`+c+`" settings="`+l+`"]`},tagContainerToTagText:function tagContainerToTagText(r){return elementor.dynamicTags.tagDataToTagText(r.view.getOption(`id`),r.view.getOption(`name`),r.view.model)},cleanCache:function cleanCache(){this.cache={}},onInit:function onInit(){this.loadCacheRequests=_.debounce(this.loadCacheRequests,300)}})})),mh=__commonJSMin(((r,c)=>{N();var l=__toESM(R()),u=Hn();c.exports=elementorModules.ViewModule.extend({model:null,hasChange:!1,changeCallbacks:{},addChangeCallback:function addChangeCallback(r,c){this.changeCallbacks[r]=c},bindEvents:function bindEvents(){elementor.on(`document:loaded`,this.onElementorDocumentLoaded),this.model.on(`change`,this.onModelChange)},unbindEvents:function unbindEvents(){elementor.off(`document:loaded`,this.onElementorDocumentLoaded)},addPanelPage:function addPanelPage(){var r=this.getSettings(`name`);elementor.getPanelView().addPage(r+`_settings`,{view:elementor.settings.panelPages[r]||elementor.settings.panelPages.base,title:this.getSettings(`panelPage.title`),options:{editedView:this.getEditedView(),model:this.model,controls:this.model.controls,name:r}})},getContainerType:function getContainerType(){return this.getSettings(`name`)+`_settings`},getContainerId:function getContainerId(){return elementorDevTools.deprecation.deprecated(`getContainerId()`,`3.7.0`,`getContainerType()`),this.getContainerType()},getEditedView:function getEditedView(){var r=elementor.elementsManager.getElementTypeClass(`document`).getModel(),c=this.getContainerType(),l=new r({id:c,elType:c,settings:this.model}),u=new elementorModules.editor.Container({type:c,id:c,model:l,settings:l.get(`settings`),view:!1,parent:!1,label:this.getSettings(`panelPage`).title,controls:this.model.controls,document:this.getDocument(),renderer:!1});return{getContainer:function getContainer(){return u},getEditModel:function getEditModel(){return l},model:l,container:u}},getDocument:function getDocument(){return!1},updateStylesheet:function updateStylesheet(r){var c=this.getControlsCSS();r||c.stylesheet.empty(),this.model.handleRepeaterData(this.model.attributes),c.addStyleRules(this.model.getStyleControls(),this.model.attributes,this.model.controls,[/{{WRAPPER}}/g],[this.getSettings(`cssWrapperSelector`)]),c.addStyleToDocument({at:`before`,of:`#elementor-style-e-global-style`})},initModel:function initModel(){this.model=new elementorModules.editor.elements.models.BaseSettings(this.getSettings(`settings`),{controls:this.getSettings(`controls`)})},getStyleId:function getStyleId(){return this.getSettings(`name`)},initControlsCSSParser:function initControlsCSSParser(){var r;this.destroyControlsCSS=function(){r.removeStyleFromDocument()},this.getControlsCSS=function(){return r||(r=new u({id:this.getStyleId(),settingsModel:this.model,context:this.getEditedView()})),r}},getDataToSave:function getDataToSave(r){return r},save:function save(r){var c=this;return _asyncToGenerator(l.default.mark(function _callee(){var u,p,m;return l.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(u=c,u.hasChange){l.next=1;break}return l.abrupt(`return`);case 1:return p=c.model.toJSON({remove:[`default`]}),m=c.getDataToSave({data:p}),NProgress.start(),l.abrupt(`return`,elementorCommon.ajax.addRequest(`save_`+c.getSettings(`name`)+`_settings`,{data:m,success:function success(){NProgress.done(),u.setSettings(`settings`,p),u.hasChange=!1,r&&r.apply(u,arguments)},error:function error(){alert(`An error occurred.`)}}));case 2:case`end`:return l.stop()}},_callee)}))()},onInit:function onInit(){this.initModel(),this.initControlsCSSParser(),this.addPanelMenuItem(),this.debounceSave=_.debounce(this.save,3e3),elementorModules.ViewModule.prototype.onInit.apply(this,arguments)},addPanelMenuItem:function addPanelMenuItem(){var r=this.getSettings(`panelPage.menu`);if(r){var c=`panel/`+this.getSettings(`name`)+`-settings`,l={icon:r.icon,title:this.getSettings(`panelPage.title`),type:`page`,pageName:this.getSettings(`name`)+`_settings`,callback:function callback(){return $e.route(`${c}/settings`)}};$e.bc.ensureTab(c,`settings`,l.pageName),elementor.modules.layouts.panel.pages.menu.Menu.addItem(l,`settings`,r.beforeItem)}},onModelChange:function onModelChange(r){var c=this;c.hasChange=!0,this.getControlsCSS().stylesheet.empty(),_.each(r.changed,function(r,l){c.changeCallbacks[l]&&c.changeCallbacks[l].call(c,r)}),c.updateStylesheet(!0),c.debounceSave()},onElementorDocumentLoaded:function onElementorDocumentLoaded(){this.updateStylesheet(),this.addPanelPage()},destroy:function destroy(){this.unbindEvents(),this.model.destroy()}})}));function _callSuper$20(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$20()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$20(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$20=function _isNativeReflectConstruct(){return!!r})()}var hh,gh,_h=__esmMin((()=>{b(),w(),E(),D(),A(),hh=__toESM(mh()),__name(_callSuper$20,`_callSuper`),__name(_isNativeReflectConstruct$20,`_isNativeReflectConstruct`),gh=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$20(this,_default,[].concat(l)),r.changeCallbacks={ui_theme:r.onUIThemeChanged,panel_width:r.onPanelWidthChanged,edit_buttons:r.onEditButtonsChanged,show_hidden_elements:r.onShowHiddenElementsChange,show_launchpad_checklist:r.toggleChecklistIconVisibility},r}return _inherits(_default,r),_createClass(_default,[{key:`getDefaultSettings`,value:function getDefaultSettings(){return{darkModeLinkID:`elementor-editor-dark-mode-css`}}},{key:`toggleChecklistIconVisibility`,value:function toggleChecklistIconVisibility(r){var c=r===`yes`;this.addMixpanelTrackingChecklist(c),$e.run(`checklist/toggle-icon`,c)}},{key:`onUIThemeChanged`,value:function onUIThemeChanged(r){var c=jQuery(`#e-theme-ui-light-css`),l=jQuery(`#e-theme-ui-dark-css`);if(r===`auto`){c.attr(`media`,`(prefers-color-scheme: light)`),l.attr(`media`,`(prefers-color-scheme: dark)`);return}r===`light`?(c.attr(`media`,`all`),l.attr(`media`,`none`)):(c.attr(`media`,`none`),l.attr(`media`,`all`))}},{key:`onPanelWidthChanged`,value:function onPanelWidthChanged(r){elementor.panel.saveSize({width:r.size+r.unit}),elementor.panel.setSize()}},{key:`onEditButtonsChanged`,value:function onEditButtonsChanged(){setTimeout(function(){return elementor.getPreviewView()._renderChildren()},300)}},{key:`onShowHiddenElementsChange`,value:function onShowHiddenElementsChange(){elementorFrontend.elements.$body.toggleClass(`e-preview--show-hidden-elements`)}},{key:`addMixpanelTrackingChecklist`,value:function addMixpanelTrackingChecklist(r){var c=r?`checklistShow`:`checklistHide`,l=elementor.getPreviewContainer().document.config.id,u=elementor.getPreviewContainer().model.attributes.settings.attributes.post_title,p=elementor.getPreviewContainer().document.config.post_type_title,m=elementor.getPreviewContainer().document.config.type;return elementorCommon.eventsManager.dispatchEvent(elementorCommon.eventsManager.config.names.elementorEditor.userPreferences[c],{location:elementorCommon.eventsManager.config.locations.elementorEditor,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations.userPreferences,trigger:elementorCommon.eventsManager.config.triggers.toggleClick,element:elementorCommon.eventsManager.config.elements.toggle,postId:l,postTitle:u,postTypeTitle:p,documentType:m})}}])}(hh.default)}));function _callSuper$19(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$19()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$19(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$19=function _isNativeReflectConstruct(){return!!r})()}var vh,yh=__esmMin((()=>{b(),w(),E(),D(),A(),Zc(),__name(_callSuper$19,`_callSuper`),__name(_isNativeReflectConstruct$19,`_isNativeReflectConstruct`),vh=function(c){function Component(){return _classCallCheck(this,Component),_callSuper$19(this,Component,arguments)}return _inherits(Component,c),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`panel/page-settings`}},{key:`defaultTabs`,value:function defaultTabs(){return{settings:{title:(0,r.__)(`Settings`,`elementor`)},style:{title:(0,r.__)(`Style`,`elementor`)},advanced:{title:(0,r.__)(`Advanced`,`elementor`)}}}},{key:`renderTab`,value:function renderTab(r,c){var l=c.activeControl,u=c.refresh,p=u!==void 0&&u;(this.shouldRenderPage(r)||p)&&elementor.getPanelView().setPage(`page_settings`).activateTab(r),this.activateControl(l)}},{key:`shouldRenderPage`,value:function shouldRenderPage(r){var c,l=elementor.getPanelView(),u=l.getCurrentPageName()===`page_settings`,p=r===((c=l.getCurrentPageView())==null?void 0:c.activeTab);return!u||!p}},{key:`getTabsWrapperSelector`,value:function getTabsWrapperSelector(){return`.elementor-panel-navigation`}}])}(Xc)}));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.
175 175 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$18(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$18()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$18(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$18=function _isNativeReflectConstruct(){return!!r})()}var bh,xh=__esmMin((()=>{b(),w(),E(),D(),A(),tt(),__name(_callSuper$18,`_callSuper`),__name(_isNativeReflectConstruct$18,`_isNativeReflectConstruct`),bh=function(r){function ChildrenArray(){return _classCallCheck(this,ChildrenArray),_callSuper$18(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))})),Sh=__commonJSMin(((r,c)=>{et(),ge(),yh(),xh();var l=mh();c.exports=l.extend({getStyleId:function getStyleId(){return this.getSettings(`name`)+`-`+elementor.documents.getCurrent().id},onInit:function onInit(){l.prototype.onInit.apply(this),$e.components.register(new vh({manager:this}))},save:function save(){},getDataToSave:function getDataToSave(r){return r.id=elementor.config.document.id,r},getEditedView:function getEditedView(){var r=this;if(this.editedView)return this.editedView;var c=elementor.elementsManager.getElementTypeClass(`document`).getModel(),l=this.getContainerType(),u=new c({id:l,elType:l,settings:this.model,elements:elementor.elements}),p=new elementorModules.editor.Container({type:l,id:u.id,model:u,settings:u.get(`settings`),label:elementor.config.document.panel.title,controls:this.model.controls,children:_construct(bh,_toConsumableArray(elementor.elements||[])),parent:!1,renderer:{view:{lookup:function lookup(){return p},renderOnChange:function renderOnChange(){return r.updateStylesheet()},renderUI:function renderUI(){return r.updateStylesheet()}}}});return this.editedView={getContainer:function getContainer(){return p},getEditModel:function getEditModel(){return u},model:u,container:p},this.editedView},getContainerType:function getContainerType(){return`document`},getContainerId:function getContainerId(){return elementorDevTools.deprecation.deprecated(`getContainerId()`,`3.7.0`,`getContainerType()`),this.getContainerType()}})})),Ch=__commonJSMin(((r,c)=>{c.exports=elementorModules.editor.views.ControlsStack.extend({id:function id(){return`elementor-panel-`+this.getOption(`name`)+`-settings`},getTemplate:function getTemplate(){return`#tmpl-elementor-panel-`+this.getOption(`name`)+`-settings`},childViewContainer:function childViewContainer(){return`#elementor-panel-`+this.getOption(`name`)+`-settings-controls`},childViewOptions:function childViewOptions(){return{container:this.getOption(`editedView`).getContainer()}}})})),wh=__commonJSMin(((r,c)=>{_h(),c.exports=elementorModules.Module.extend({modules:{base:mh(),page:Sh(),editorPreferences:gh},panelPages:{base:Ch()},onInit:function onInit(){this.initSettings()},initSettings:function initSettings(){var r=this;_.each(elementor.config.settings,function(c,l){r[l]=new(r.modules[l]||r.modules.base)(c)})}})})),Th=__commonJSMin(((r,c)=>{P();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}c.exports=elementorModules.Module.extend({initToast:function initToast(){var r=elementorCommon.dialogsManager.createWidget(`buttons`,{id:`elementor-toast`,position:{my:`center bottom`,at:`center bottom-10`,of:`#elementor-panel-inner`,autoRefresh:!0},hide:{onClick:!0,auto:!0,autoDelay:1e4},effects:{show:function show(){var c=r.getElements(`widget`);c.show(),r.refreshPosition();var l=parseInt(c.css(`top`),10);c.hide().css(`top`,l+100),c.animate({opacity:`show`,height:`show`,paddingBottom:`show`,paddingTop:`show`,top:l},{easing:`linear`,duration:300})},hide:function hide(){var c=r.getElements(`widget`),l=parseInt(c.css(`top`),10);c.animate({opacity:`hide`,height:`hide`,paddingBottom:`hide`,paddingTop:`hide`,top:l+100},{easing:`linear`,duration:300})}},button:{tag:`button`}});r.getElements(`widget`).attr({role:`status`,"aria-live":`polite`,"aria-atomic":`true`}),this.getToast=function(){return r}},showToast:function showToast(r){var c=this.getToast();c.setMessage(r.message),c.getElements(`buttonsWrapper`).empty(),c.focusedButton=null,c.buttons=[];var l=this.isPositionValid(r==null?void 0:r.position);return l||this.positionToWindow(),r!=null&&r.position&&l&&c.setSettings(`position`,r.position),r.buttons&&r.buttons.forEach(function(r){c.addButton(r)}),r.classes&&c.getElements(`widget`).addClass(r.classes),r.sticky&&c.setSettings({hide:{auto:!1,onClick:!1}}),c.show()},isPositionValid:function isPositionValid(r){var c,l=(c=r==null?void 0:r.of)==null?this.getToast().getSettings(`position`).of:c;return l?!!document.querySelector(l):!1},positionToWindow:function positionToWindow(){var r=this.getToast(),c=_objectSpread(_objectSpread({},r.getSettings(`position`)),{},{my:`right top`,at:`right-10 top+42`,of:``});r.setSettings(`position`,c),r.getElements(`widget`).addClass(`dialog-position-window`)},onInit:function onInit(){this.initToast()}})}));function _callSuper$17(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$17()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$17(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$17=function _isNativeReflectConstruct(){return!!r})()}var Eh,Dh=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$17,`_callSuper`),__name(_isNativeReflectConstruct$17,`_isNativeReflectConstruct`),Eh=function(r){function ChangeDeviceMode(){return _classCallCheck(this,ChangeDeviceMode),_callSuper$17(this,ChangeDeviceMode,arguments)}return _inherits(ChangeDeviceMode,r),_createClass(ChangeDeviceMode,[{key:`apply`,value:function apply(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=elementor.breakpoints.getActiveBreakpointsList({largeToSmall:!0,withDesktop:!0}),l=r.device;if(!l){var u=elementor.channels.deviceMode.request(`currentMode`),p=c.indexOf(u);p++,p>=c.length&&(p=0),l=c[p]}elementor.changeDeviceMode(l)}}])}($e.modules.CommandBase)}));function _callSuper$16(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$16()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$16(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$16=function _isNativeReflectConstruct(){return!!r})()}var Oh,kh=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$16,`_callSuper`),__name(_isNativeReflectConstruct$16,`_isNativeReflectConstruct`),Oh=function(r){function PageSettings(){return _classCallCheck(this,PageSettings),_callSuper$16(this,PageSettings,arguments)}return _inherits(PageSettings,r),_createClass(PageSettings,[{key:`apply`,value:function apply(){$e.route(`panel/page-settings/settings`)}}])}($e.modules.CommandBase)}));function _callSuper$15(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$15()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$15(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$15=function _isNativeReflectConstruct(){return!!r})()}var Ah,jh=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$15,`_callSuper`),__name(_isNativeReflectConstruct$15,`_isNativeReflectConstruct`),Ah=function(r){function EditorPreferences(){return _classCallCheck(this,EditorPreferences),_callSuper$15(this,EditorPreferences,arguments)}return _inherits(EditorPreferences,r),_createClass(EditorPreferences,[{key:`apply`,value:function apply(){$e.route(`panel/editor-preferences`)}}])}($e.modules.CommandBase)}));function _callSuper$14(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$14()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$14(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$14=function _isNativeReflectConstruct(){return!!r})()}var Mh,Nh=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$14,`_callSuper`),__name(_isNativeReflectConstruct$14,`_isNativeReflectConstruct`),Mh=function(r){function Close(){return _classCallCheck(this,Close),_callSuper$14(this,Close,arguments)}return _inherits(Close,r),_createClass(Close,[{key:`apply`,value:function apply(){elementor.changeEditMode(`preview`)}}])}($e.modules.CommandBase)}));function _callSuper$13(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$13()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$13(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$13=function _isNativeReflectConstruct(){return!!r})()}var Ph,Fh=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$13,`_callSuper`),__name(_isNativeReflectConstruct$13,`_isNativeReflectConstruct`),Ph=function(r){function Exit(){return _classCallCheck(this,Exit),_callSuper$13(this,Exit,arguments)}return _inherits(Exit,r),_createClass(Exit,[{key:`apply`,value:function apply(){$e.route(`panel/menu`)}}])}($e.modules.CommandBase)}));function _callSuper$12(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$12()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$12(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$12=function _isNativeReflectConstruct(){return!!r})()}var Ih,Lh=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$12,`_callSuper`),__name(_isNativeReflectConstruct$12,`_isNativeReflectConstruct`),Ih=function(r){function Open(){return _classCallCheck(this,Open),_callSuper$12(this,Open,arguments)}return _inherits(Open,r),_createClass(Open,[{key:`apply`,value:function apply(){elementor.changeEditMode(`edit`)}}])}($e.modules.CommandBase)}));function _callSuper$11(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$11()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$11(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$11=function _isNativeReflectConstruct(){return!!r})()}var Rh,zh=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$11,`_callSuper`),__name(_isNativeReflectConstruct$11,`_isNativeReflectConstruct`),Rh=function(r){function Publish(){return _classCallCheck(this,Publish),_callSuper$11(this,Publish,arguments)}return _inherits(Publish,r),_createClass(Publish,[{key:`apply`,value:function apply(){$e.run(`document/save/publish`)}}])}($e.modules.CommandBase)}));function _callSuper$10(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$10()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$10(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$10=function _isNativeReflectConstruct(){return!!r})()}var Bh,Vh=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$10,`_callSuper`),__name(_isNativeReflectConstruct$10,`_isNativeReflectConstruct`),Bh=function(r){function Save(){return _classCallCheck(this,Save),_callSuper$10(this,Save,arguments)}return _inherits(Save,r),_createClass(Save,[{key:`apply`,value:function apply(){$e.run(`document/save/draft`)}}])}($e.modules.CommandBase)}));function _callSuper$9(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$9()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$9(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$9=function _isNativeReflectConstruct(){return!!r})()}var Hh,Uh=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$9,`_callSuper`),__name(_isNativeReflectConstruct$9,`_isNativeReflectConstruct`),Hh=function(r){function Toggle(){return _classCallCheck(this,Toggle),_callSuper$9(this,Toggle,arguments)}return _inherits(Toggle,r),_createClass(Toggle,[{key:`apply`,value:function apply(){elementor.getPanelView().modeSwitcher.currentView.toggleMode()}}])}($e.modules.CommandBase)})),Wh=__exportAll({ChangeDeviceMode:()=>Eh,Close:()=>Mh,EditorPreferences:()=>Ah,Exit:()=>Ph,Open:()=>Ih,PageSettings:()=>Oh,Publish:()=>Rh,Save:()=>Bh,Toggle:()=>Hh}),Gh=__esmMin((()=>{Dh(),kh(),jh(),Nh(),Fh(),Lh(),zh(),Vh(),Uh()}));function _callSuper$8(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$8()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$8(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$8=function _isNativeReflectConstruct(){return!!r})()}var Kh,qh=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$8,`_callSuper`),__name(_isNativeReflectConstruct$8,`_isNativeReflectConstruct`),Kh=function(r){function OpenDefault(){return _classCallCheck(this,OpenDefault),_callSuper$8(this,OpenDefault,arguments)}return _inherits(OpenDefault,r),_createClass(OpenDefault,[{key:`apply`,value:function apply(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return $e.route(elementor.documents.getCurrent().config.panel.default_route,r),Promise.resolve()}}])}($e.modules.CommandInternalBase)}));function _callSuper$7(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$7()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$7(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$7=function _isNativeReflectConstruct(){return!!r})()}var Jh,Yh=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$7,`_callSuper`),__name(_isNativeReflectConstruct$7,`_isNativeReflectConstruct`),Jh=function(r){function StateLoading(){return _classCallCheck(this,StateLoading),_callSuper$7(this,StateLoading,arguments)}return _inherits(StateLoading,r),_createClass(StateLoading,[{key:`apply`,value:function apply(){elementorCommon.elements.$body.addClass(`elementor-panel-loading`)}}])}($e.modules.CommandInternalBase)}));function _callSuper$6(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$6()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$6(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$6=function _isNativeReflectConstruct(){return!!r})()}var Xh,Zh=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$6,`_callSuper`),__name(_isNativeReflectConstruct$6,`_isNativeReflectConstruct`),Xh=function(r){function StateReady(){return _classCallCheck(this,StateReady),_callSuper$6(this,StateReady,arguments)}return _inherits(StateReady,r),_createClass(StateReady,[{key:`apply`,value:function apply(){elementorCommon.elements.$body.removeClass(`elementor-panel-loading`),this.component.stateReadyOnce||(this.component.stateReadyOnce=!0,$e.extras.hashCommands.runOnce())}}])}($e.modules.CommandInternalBase)})),Qh=__exportAll({OpenDefault:()=>Kh,StateLoading:()=>Jh,StateReady:()=>Xh}),$h=__esmMin((()=>{qh(),Yh(),Zh()}));function _callSuper$5(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$5()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$5(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$5=function _isNativeReflectConstruct(){return!!r})()}function _classPrivateFieldInitSpec(r,c,l){_checkPrivateRedeclaration(r,c),c.set(r,l)}function _checkPrivateRedeclaration(r,c){if(c.has(r))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function _classPrivateFieldGet(r,c){return r.get(_assertClassBrand(r,c))}function _classPrivateFieldSet(r,c,l){return r.set(_assertClassBrand(r,c),l),l}function _assertClassBrand(r,c,l){if(typeof r==`function`?r===c:r.has(c))return arguments.length<3?c:l;throw TypeError(`Private element is not present on this object`)}function isEditMode(){return elementor.channels.dataEditMode.request(`activeMode`)===`edit`}var eg,tg,ng=__esmMin((()=>{b(),w(),E(),D(),A(),P(),Zc(),Gh(),$h(),__name(_callSuper$5,`_callSuper`),__name(_isNativeReflectConstruct$5,`_isNativeReflectConstruct`),eg=new WeakMap,tg=function(r){function Component(){var r;_classCallCheck(this,Component);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper$5(this,Component,[].concat(l)),_defineProperty(r,`stateReadyOnce`,!1),_classPrivateFieldInitSpec(r,eg,!1),r}return _inherits(Component,r),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`panel`}},{key:`defaultRoutes`,value:function defaultRoutes(){var r=this;return{menu:function menu(){return r.manager.setPage(`menu`)},"global-colors":function globalColors(){return r.manager.setPage(`colorScheme`)},"global-fonts":function globalFonts(){return r.manager.setPage(`typographyScheme`)},"editor-preferences":function editorPreferences(){return r.manager.setPage(`editorPreferences_settings`).activateTab(`settings`)}}}},{key:`defaultCommandsInternal`,value:function defaultCommandsInternal(){return this.importCommands(Qh)}},{key:`defaultCommands`,value:function defaultCommands(){return this.importCommands(Wh)}},{key:`defaultShortcuts`,value:function defaultShortcuts(){var r=this;return{toggle:{keys:`ctrl+p`,dependency:function dependency(){return!r.isUserInteractionsBlocked()}},save:{keys:`ctrl+s`},exit:{keys:`esc`,dependency:function dependency(){return!jQuery(`.dialog-widget:visible`).length&&isEditMode()},scopes:[`panel`,`preview`]},"change-device-mode":{keys:`ctrl+shift+m`},"page-settings":{keys:`ctrl+shift+y`,dependency:function dependency(){return isEditMode()}},"editor-preferences":{keys:`ctrl+shift+u`,dependency:function dependency(){return isEditMode()}}}}},{key:`blockUserInteractions`,value:function blockUserInteractions(){elementor.panel.$el.addClass(`e-panel-block-interactions`),_classPrivateFieldSet(eg,this,!0)}},{key:`unblockUserInteractions`,value:function unblockUserInteractions(){elementor.panel.$el.removeClass(`e-panel-block-interactions`),_classPrivateFieldSet(eg,this,!1)}},{key:`isUserInteractionsBlocked`,value:function isUserInteractionsBlocked(){return _classPrivateFieldGet(eg,this)}}])}(Xc)}));function _callSuper$4(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$4()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$4(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$4=function _isNativeReflectConstruct(){return!!r})()}function _superPropGet$2(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 rg,ig=__esmMin((()=>{b(),w(),E(),D(),k(),A(),W(),__name(_callSuper$4,`_callSuper`),__name(_isNativeReflectConstruct$4,`_isNativeReflectConstruct`),__name(_superPropGet$2,`_superPropGet`),rg=function(c){function Component(){return _classCallCheck(this,Component),_callSuper$4(this,Component,arguments)}return _inherits(Component,c),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`panel/elements`}},{key:`defaultTabs`,value:function defaultTabs(){return{categories:{title:(0,r.__)(`Elements`,`elementor`)},global:{title:(0,r.__)(`Global`,`elementor`)}}}},{key:`getTabsWrapperSelector`,value:function getTabsWrapperSelector(){return`#elementor-panel-elements-navigation`}},{key:`renderTab`,value:function renderTab(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.manager.setPage(`elements`,null,c).showView(r)}},{key:`activateTab`,value:function activateTab(r){_superPropGet$2(Component,`activateTab`,this,3)([r]),elementorCommon.eventsManager.dispatchEvent(elementorCommon.eventsManager.config.names.v1[r],{location:elementorCommon.eventsManager.config.locations.widgetPanel,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations[r],trigger:elementorCommon.eventsManager.config.triggers.click,element:elementorCommon.eventsManager.config.elements.accordionSection})}}])}(U)}));function _callSuper$3(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$3()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$3(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$3=function _isNativeReflectConstruct(){return!!r})()}var ag,og=__esmMin((()=>{b(),w(),E(),D(),A(),__name(_callSuper$3,`_callSuper`),__name(_isNativeReflectConstruct$3,`_isNativeReflectConstruct`),ag=function(r){function Open(){return _classCallCheck(this,Open),_callSuper$3(this,Open,arguments)}return _inherits(Open,r),_createClass(Open,[{key:`apply`,value:function apply(r){this.component.setDefaultTab(r)?$e.route(this.component.getDefaultRoute(),r):(elementorDevTools.deprecation.deprecated(`model.trigger( 'request:edit' )`,`2.9.0`,`editSettings.defaultEditRoute`),r.model.trigger(`request:edit`));var c=r.model.get(`elType`),l=r.model.get(`widgetType`);elementor.hooks.doAction(`panel/open_editor/${c}`,this.component.manager,r.model,r.view),elementor.hooks.doAction(`panel/open_editor/${c}/${l}`,this.component.manager,r.model,r.view)}}])}($e.modules.CommandBase)})),sg=__exportAll({Open:()=>ag}),cg=__esmMin((()=>{og()}));function _callSuper$2(r,c,l){return c=_getPrototypeOf(c),_possibleConstructorReturn(r,_isNativeReflectConstruct$2()?Reflect.construct(c,l||[],_getPrototypeOf(r).constructor):c.apply(r,l))}function _isNativeReflectConstruct$2(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(_isNativeReflectConstruct$2=function _isNativeReflectConstruct(){return!!r})()}function _superPropGet$1(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 lg,ug=__esmMin((()=>{b(),w(),E(),D(),k(),A(),Zc(),cg(),Ka(),__name(_callSuper$2,`_callSuper`),__name(_isNativeReflectConstruct$2,`_isNativeReflectConstruct`),__name(_superPropGet$1,`_superPropGet`),lg=function(c){function Component(){return _classCallCheck(this,Component),_callSuper$2(this,Component,arguments)}return _inherits(Component,c),_createClass(Component,[{key:`__construct`,value:function __construct(r){_superPropGet$1(Component,`__construct`,this,3)([r]),this.activeTabs={},this.activeModelId=null}},{key:`getNamespace`,value:function getNamespace(){return`panel/editor`}},{key:`defaultTabs`,value:function defaultTabs(){return{content:{title:(0,r.__)(`Content`,`elementor`)},style:{title:(0,r.__)(`Style`,`elementor`)},advanced:{title:(0,r.__)(`Advanced`,`elementor`)},layout:{title:(0,r.__)(`Layout`,`elementor`)}}}},{key:`defaultCommands`,value:function defaultCommands(){return this.importCommands(sg)}},{key:`getTabsWrapperSelector`,value:function getTabsWrapperSelector(){return`.elementor-panel-navigation`}},{key:`renderTab`,value:function renderTab(c,l){var u,p,m=l.model,h=l.view,g=l.activeControl,v=m!=null&&(u=m.attributes)!=null&&(u=u.custom)!=null&&u.isPreset||m!=null&&(p=m.changed)!=null&&p.title?m.attributes.title:elementor.getElementData(m).title;m.attributes.settings.attributes.presetTitle&&(v=m.attributes.settings.attributes.presetTitle);var y=(0,r.sprintf)((0,r.__)(`Edit %s`,`elementor`),v);this.shouldRenderPage(c,l.model.id)&&(this.activeModelId=l.model.id,this.activeTabs[l.model.id]=c,elementor.getPanelView().setPage(`editor`,y,{tab:c,model:m,controls:elementor.getElementControls(m),editedElementView:h})),this.activateControl(g)}},{key:`shouldRenderPage`,value:function shouldRenderPage(r,c){var l=elementor.getPanelView(),u=l.getCurrentPageName()===`editor`,p=r===l.getCurrentPageView().activeTab,m=c===this.activeModelId;return!u||!p||!m}},{key:`setDefaultTab`,value:function setDefaultTab(r){var c,l=r.model.get(`editSettings`);if(this.activeTabs[r.model.id]?c=this.activeTabs[r.model.id]:l&&l.get(`defaultEditRoute`)&&(c=l.get(`defaultEditRoute`)),c){var u=elementor.getElementData(r.model).tabs_controls;return u[c]||(c=Object.keys(u)[0]),this.setDefaultRoute(c),!0}return!1}},{key:`onRoute`,value:function onRoute(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_superPropGet$1(Component,`onRoute`,this,3)([r]);var l=c.view;l!=null&&l.getContainer()&&Va.set(l.getContainer())}},{key:`onCloseRoute`,value:function onCloseRoute(r){_superPropGet$1(Component,`onCloseRoute`,this,3)([r]),$e.uiStates.remove(`document/direction-mode`)}}])}(Xc)})),dg=__commonJSMin(((c,l)=>{Kt(),l.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-mode-switcher-content`,id:`elementor-mode-switcher-inner`,ui:{previewButton:`#elementor-mode-switcher-preview-input`,previewLabel:`#elementor-mode-switcher-preview`,previewLabelIcon:`#elementor-mode-switcher-preview i`,previewLabelA11yText:`#elementor-mode-switcher-preview .elementor-screen-only`},events:{"change @ui.previewButton":`onPreviewButtonChange`,"keyup @ui.previewLabelIcon":`onPreviewButtonKeyUp`},initialize:function initialize(){this.listenTo(elementor.channels.dataEditMode,`switch`,this.onEditModeChanged)},getCurrentMode:function getCurrentMode(){return this.ui.previewButton.is(`:checked`)?`preview`:`edit`},setMode:function setMode(r){this.ui.previewButton.prop(`checked`,r===`preview`).trigger(`change`)},toggleMode:function toggleMode(){this.setMode(this.ui.previewButton.prop(`checked`)?`edit`:`preview`)},onRender:function onRender(){this.onEditModeChanged()},onPreviewButtonKeyUp:function onPreviewButtonKeyUp(r){r.keyCode===13&&(this.toggleMode(),this.onPreviewButtonChange())},onPreviewButtonChange:function onPreviewButtonChange(){var r=this.getCurrentMode();if(r===`edit`)$e.run(`panel/open`);else if(r===`preview`)$e.run(`panel/close`);else throw Error(`Invalid mode: '${r}'`)},onEditModeChanged:function onEditModeChanged(c){var l=Gt.mac?`⌘`:`Ctrl`,u=c===`preview`?(0,r.__)(`Show Panel`,`elementor`):(0,r.__)(`Hide Panel`,`elementor`);u+=` (${l} + P)`,this.ui.previewLabel.attr(`title`,u),this.ui.previewLabelA11yText.text(u)}})}));function isWidgetNew(r,c){var l=r.new_until_version;if(!l)return!1;var u=_slicedToArray(c.split(`.`).map(Number),2),p=u[0],m=u[1],h=_slicedToArray(l.split(`.`).map(Number),2),g=h[0],v=h[1];return p<g||p===g&&m<=v}var fg=__esmMin((()=>{M()})),pg=__commonJSMin(((r,c)=>{c.exports=Backbone.Model.extend({defaults:{title:``,categories:[],keywords:[],icon:``,elType:`widget`,widgetType:``}})})),mg=__commonJSMin(((r,c)=>{var l=pg();c.exports=Backbone.Collection.extend({model:l})})),hg=__commonJSMin(((r,c)=>{var l=pg();c.exports=Backbone.Collection.extend({model:l})})),gg=__commonJSMin(((r,c)=>{var l,u={EMPTY_STATE:`#tmpl-elementor-panel-elements-widget-creation-empty-state`,SEARCH_FOOTER:`#tmpl-elementor-panel-elements-widget-creation-search-footer`},p=`Create a widget for me.
176 176 Goal: [What should this widget help me accomplish?]
177 177 Placement: [Where will I see it in the editor/UI?]
178 -How it should work: `;l=Marionette.ItemView.extend({getTemplate:function getTemplate(){return this.options.emptyResults?u.EMPTY_STATE:u.SEARCH_FOOTER},className:function className(){var r=`elementor-panel-elements-widget-creation`;return`${r} ${this.options.emptyResults?`${r}--empty-state`:`${r}--search-footer`}`},templateHelpers:function templateHelpers(){return{searchTerm:this.options.searchTerm||``}},hasTemplate:function hasTemplate(){return!!jQuery(this.getTemplate()).length},events:{"click .elementor-panel-elements-widget-creation__cta":`onCtaClick`},onCtaClick:function onCtaClick(){window.dispatchEvent(new CustomEvent(`elementor/editor/create-widget`,{detail:{prompt:p,entry_point:`search_widget`}}))}}),c.exports=l,c.exports.CREATE_WIDGET_PROMPT=p})),_g=__commonJSMin(((r,c)=>{var l=gg().CREATE_WIDGET_PROMPT,u=hg();c.exports=Marionette.CompositeView.extend({template:`#tmpl-elementor-panel-elements-category`,className:`elementor-panel-category`,ui:{title:`.elementor-panel-category-title`,items:`.elementor-panel-category-items`,chip:`.elementor-panel-heading-category-chip`},events:{"click @ui.title":`onTitleClick`,"click @ui.chip":`onChipClick`,"click .elementor-panel-custom-widgets__cta":`onCustomWidgetsCtaClick`,"click .elementor-panel-heading-promotion a":`onPromotionLinkClick`},id:function id(){return`elementor-panel-category-`+this.model.get(`name`)},childView:lh(),childViewContainer:`.elementor-panel-category-items`,initialize:function initialize(){var r=this.model.get(`items`)||[];switch(this.model.get(`sort`)){case`a-z`:r=r.sort(function(r,c){return r.get(`title`)>c.get(`title`)?1:-1});break}this.collection=new u(r)},behaviors:function behaviors(){return elementor.hooks.applyFilters(`panel/category/behaviors`,{},this)},onRender:function onRender(){var r=elementor.channels.panelElements.request(`category:`+this.model.get(`name`)+`:active`);r===void 0&&(r=this.model.get(`defaultActive`)),!this.collection.length&&this.model.get(`hideIfEmpty`)&&this.$el.css(`display`,`none`),r?this.$el.addClass(`elementor-active`):this.ui.items.css(`display`,`none`)},onTitleClick:function onTitleClick(){var r;this.toggle(),elementorCommon.eventsManager.dispatchEvent((r=elementorCommon.eventsManager.config.names[this.model.get(`name`)])==null?void 0:r.v1,{location:elementorCommon.eventsManager.config.locations.widgetPanel,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations[this.model.get(`name`)],trigger:elementorCommon.eventsManager.config.triggers.accordionClick,element:elementorCommon.eventsManager.config.elements.accordionSection})},toggle:function toggle(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,l=this.ui.items,u=`elementor-active`,p=r===void 0?this.$el.hasClass(u):!r,m=p?`hide`:`show`,h=p?`slideUp`:`slideDown`,g=function updateScrollbar(){return elementor.getPanelView().updateScrollbar()};elementor.channels.panelElements.reply(`category:`+this.model.get(`name`)+`:active`,!p),this.$el.toggleClass(u,!p),c?l[h](300,g):l[m](0,g)},onChipClick:function onChipClick(r){r.stopPropagation(),document.dispatchEvent(new CustomEvent(`alphachip:open`,{detail:{target:this.$el}}))},onCustomWidgetsCtaClick:function onCustomWidgetsCtaClick(r){r.stopPropagation(),window.dispatchEvent(new CustomEvent(`elementor/editor/create-widget`,{detail:{prompt:l,entry_point:`widgets_panel`}}))},onPromotionLinkClick:function onPromotionLinkClick(r){r.stopPropagation()}})})),vg=__commonJSMin(((r,c)=>{var l=_g();c.exports=Marionette.CompositeView.extend({template:`#tmpl-elementor-panel-categories`,childView:l,childViewContainer:`#elementor-panel-categories`,id:`elementor-panel-elements-categories`,initialize:function initialize(){this.listenTo(elementor.channels.panelElements,`filter:change`,this.onPanelElementsFilterChange)},onPanelElementsFilterChange:function onPanelElementsFilterChange(){elementor.channels.panelElements.request(`filter:value`)&&elementor.getPanelView().getCurrentPageView().showView(`elements`)}})})),yg,bg=__esmMin((()=>{b(),w(),yg=function(){function LocalizedValueStore(){_classCallCheck(this,LocalizedValueStore),this.store=[]}return _createClass(LocalizedValueStore,[{key:`appendAndParseLocalizedData`,value:function appendAndParseLocalizedData(r){return this.isPaste(r)?this.resetStore():this.isInputValueShorterThanStoreLength(r)?this.rebuildStore(r):(this.isLetter(r)||this.isSpace(r))&&this.addCharToStore(r),this.store.map(function(r){return r.localized}).join(``)}},{key:`resetStore`,value:function resetStore(){this.store=[]}},{key:`isPaste`,value:function isPaste(r){var c=`insertFromPaste`,l=`KeyV`,u=c===r.originalEvent.inputType,p=r.code===l&&r.ctrlKey;return u||p}},{key:`isInputValueShorterThanStoreLength`,value:function isInputValueShorterThanStoreLength(r){var c;return((c=r.target.value)==null?void 0:c.length)<this.store.length}},{key:`addCharToStore`,value:function addCharToStore(r){var c=String.fromCharCode(r.keyCode);this.localizationRequired(c,r)||(c=r.originalEvent.key),this.store.push({original:r.originalEvent.key,localized:c})}},{key:`localizationRequired`,value:function localizationRequired(r,c){return r.toLowerCase()!==c.originalEvent.key.toLowerCase()}},{key:`isSpace`,value:function isSpace(r){return r.keyCode===32||r.originalEvent.data===` `}},{key:`isLetter`,value:function isLetter(r){return r.keyCode>=65&&r.keyCode<=90}},{key:`rebuildStore`,value:function rebuildStore(r){var c=this,l=r.target.value.split(``);this.store=l.map(function(r){return c.buildLocalizationElement(r)})}},{key:`buildLocalizationElement`,value:function buildLocalizationElement(r){return{original:r,localized:this.store.find(function(c){return c.original===r}).localized}}}])}()})),xg=__commonJSMin(((r,c)=>{bg(),kn();var l=2e3;c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-panel-element-search`,localizedValue:``,localizedValueStore:new yg,debouncedTrackSearch:null,tagName:`search`,id:`elementor-panel-elements-search-wrapper`,ui:{input:`input`},events:{"keydown @ui.input":`onInputChanged`,"input @ui.input":`onInputChanged`},initialize:function initialize(){this.debouncedTrackSearch=On(l)},clearInput:function clearInput(){this.ui.input.val(``)},getVisibleWidgetsCount:function getVisibleWidgetsCount(){return jQuery(`#elementor-panel-elements`).find(`.elementor-element:visible`).length},trackWidgetSearch:function trackWidgetSearch(){var r=this,c=this.ui.input.val();c&&setTimeout(function(){var l=r.getVisibleWidgetsCount();r.debouncedTrackSearch(l,c)},100)},onInputChanged:function onInputChanged(r){r.keyCode===27&&this.clearInput(),this.localizedValue=this.localizedValueStore.appendAndParseLocalizedData(r),elementor.channels.panelElements.reply(`filter:localized`,this.localizedValue),this.triggerMethod(`search:change:input`),this.trackWidgetSearch()},onDestroy:function onDestroy(){var r;(r=this.debouncedTrackSearch)!=null&&r.cancel&&this.debouncedTrackSearch.cancel()}})})),Sg=__commonJSMin(((r,c)=>{x(),P(),M(),fg();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var l=mg(),u=hg(),p=vg(),m=elementor.modules.layouts.panel.pages.elements.views.Elements,h=ch(),g=xg(),v=gg(),y;function elementorIsAngieIframeInDocument(){return!!document.querySelector(`iframe[src*="angie/"]`)}y=Marionette.LayoutView.extend({template:`#tmpl-elementor-panel-elements`,id:`elementor-panel-page-elements`,options:{autoFocusSearch:!0},regions:{elements:`#elementor-panel-elements-wrapper`,widgetCreation:`#elementor-panel-elements-widget-creation-area`,search:`#elementor-panel-elements-search-area`,notice:`#elementor-panel-elements-notice-area`},regionViews:{},elementsCollection:null,categoriesCollection:null,initialize:function initialize(){this.listenTo(elementor.channels.panelElements,`element:selected`,this.destroy),this.initElementsCollection(),this.initCategoriesCollection(),this.initRegionViews()},initRegionViews:function initRegionViews(){var r={elements:{region:this.elements,view:m,options:{collection:this.elementsCollection}},categories:{region:this.elements,view:p,options:{collection:this.categoriesCollection}},search:{region:this.search,view:g},global:{region:this.elements,view:h}};this.regionViews=elementor.hooks.applyFilters(`panel/elements/regionViews`,r,{notice:this.notice,elements:this.elements,search:this.search})},initElementsCollection:function initElementsCollection(){var r=this,c=new u;if(Object.entries(elementor.widgetsCache).forEach(function(r){var c=_slicedToArray(r,2),l=c[0],u=c[1];u.deprecation&&elementor.widgetsCache[u.deprecation.replacement]&&(elementor.widgetsCache[l].show_in_panel=!1)}),_.each(elementor.widgetsCache,function(l){elementor.config.document.panel.widgets_settings[l.widget_type]&&(l=_.extend(l,elementor.config.document.panel.widgets_settings[l.widget_type])),r.shouldAddWidget(l)&&c.add(r.getCollectionItem(l))}),jQuery.each(elementor.config.promotionWidgets,function(r,l){c.add({name:l.name,title:l.title,icon:l.icon,categories:JSON.parse(l.categories),editable:!1})}),(elementor.config.atomicWidgetPromotions||[]).forEach(function(r){var l=r.type;(r.widgets||[]).forEach(function(r){c.add({name:r.name,title:r.title,icon:r.icon,categories:JSON.parse(r.categories),editable:!1,promotionType:l,widgetType:r.name})})}),elementor.config.integrationWidgets){var l=c.findIndex({widgetType:`image-carousel`})+1;jQuery.each(elementor.config.integrationWidgets,function(r,u){c.add({name:u.name,title:u.title,icon:u.icon,categories:JSON.parse(u.categories),editable:!1,integration:!0,keywords:u.keywords||[]},{at:l})})}elementorCommon.config.experimentalFeatures.container&&jQuery.each(elementor.config.elementsPresets,function(l,u){var p=elementor.widgetsCache[u.replacements.custom.originalWidget];if(p){var m=u.replacements,h=r.deepMerge(p,m);r.shouldAddWidget(h)&&c.add(r.getCollectionItem(h))}}),this.elementsCollection=c},isWidgetNew:__name(function isWidgetNew$1(r){return isWidgetNew(r,elementor.config.version)},`isWidgetNew`),getCollectionItem:function getCollectionItem(r){return{title:r.title,elType:r.elType,categories:r.categories,keywords:r.keywords,icon:r.icon,widgetType:r.widget_type,custom:r.custom,editable:r.editable,hideOnSearch:r.hide_on_search,isNew:this.isWidgetNew(r)}},initCategoriesCollection:function initCategoriesCollection(){var r={};this.elementsCollection.each(function(c){_.each(c.get(`categories`),function(l){r[l]||(r[l]=[]),r[l].push(c)})});var c=new l;_.each(elementor.config.document.panel.elements_categories,function(l,u){var p;l.active===void 0&&(l.active=!0),l.icon===void 0&&(l.icon=`font`),c.add({name:u,title:l.title,icon:l.icon,defaultActive:l.active,sort:l.sort,hideIfEmpty:l.hideIfEmpty===void 0||l.hideIfEmpty,items:r[u],promotion:(p=l.promotion)==null?null:p})}),this.categoriesCollection=c},shouldAddWidget:function shouldAddWidget(r){var c=elementorCommon.config.experimentalFeatures.container;return r.show_in_panel&&(r.name!==`inner-section`||!c)},deepMerge:function deepMerge(r,c){var l=_objectSpread({},r);for(var u in c)this.deepMergeKey(l,r,c,u);return l},deepMergeKey:function deepMergeKey(r,c,l,u){l.hasOwnProperty(u)&&(_typeof(l[u])===`object`&&l[u]!==null&&c.hasOwnProperty(u)&&_typeof(c[u])===`object`&&c[u]!==null?r[u]=this.deepMerge(c[u],l[u]):r[u]=l[u])},showView:function showView(r){if($e.components.get(`document/elements`).utils.allowAddingWidgets()){var c=this.regionViews[r],l=c.options||{};c.region.show(new c.view(l)),r===`elements`&&this.appendStickyPromotion()}},appendStickyPromotion:function appendStickyPromotion(){if(!this.$(`#elementor-panel-get-pro-elements-sticky`).length){var r=Marionette.Renderer.render(`#tmpl-elementor-panel-element-sticky-promotion`,{}).trim();r&&this.$el.append(r)}},clearSearchInput:function clearSearchInput(){this.getChildView(`search`).clearInput()},changeFilter:function changeFilter(r){elementor.channels.panelElements.reply(`filter:value`,r).trigger(`filter:change`)},clearFilters:function clearFilters(){this.changeFilter(null),this.clearSearchInput()},focusSearch:function focusSearch(){!elementor.userCan(`design`)||!this.search||!this.search.currentView||this.search.currentView.ui.input.trigger(`focus`)},onChildviewChildrenRender:function onChildviewChildrenRender(){this.updateWidgetCreation(),elementor.getPanelView().updateScrollbar()},onChildviewSearchChangeInput:function onChildviewSearchChangeInput(r){this.changeFilter(r.ui.input.val(),`search`)},updateWidgetCreation:function updateWidgetCreation(){var r=elementor.channels.panelElements.request(`filter:value`);if(!r){this.widgetCreation.empty();return}var c=elementorIsAngieIframeInDocument(),l=elementor.config.user.is_administrator;if(!c&&!l){this.widgetCreation.empty();return}var u=this.elements.currentView;if(!u||!(u instanceof m)){this.widgetCreation.empty();return}var p=new v({emptyResults:u.children.length===0,searchTerm:r});if(!p.hasTemplate()){this.widgetCreation.empty();return}this.widgetCreation.show(p)},onDestroy:function onDestroy(){elementor.channels.panelElements.reply(`filter:value`,null)},onShow:function onShow(){this.showView(`search`),this.options.autoFocusSearch&&setTimeout(this.focusSearch.bind(this))}}),c.exports=y})),Cg=__commonJSMin(((r,c)=>{var l=elementorModules.editor.views.ControlsStack;c.exports=l.extend({template:Marionette.TemplateCache.get(`#tmpl-editor-content`),id:`elementor-panel-page-editor`,childViewContainer:`#elementor-controls`,childViewOptions:function childViewOptions(){return{element:this.getOption(`editedElementView`),container:this.getOption(`editedElementView`).getContainer(),elementSettingsModel:this.model.get(`settings`),elementEditSettings:this.model.get(`editSettings`)}},getNamespaceArray:function getNamespaceArray(){var r=elementorModules.editor.views.ControlsStack.prototype.getNamespaceArray(),c=this.getOption(`editedElementView`).getEditModel(),l=c.get(`elType`);return r.push(l),l===`widget`&&r.push(c.get(`widgetType`)),r},initialize:function initialize(){l.prototype.initialize.apply(this,arguments);var r=this.model.get(`editSettings`);if(r){var c=r.get(`panel`);c&&(this.activeTab=c.activeTab,this.activeSection=c.activeSection)}},activateSection:function activateSection(){return l.prototype.activateSection.apply(this,arguments),this.model.get(`editSettings`).set(`panel`,{activeTab:this.activeTab,activeSection:this.activeSection}),this},openActiveSection:function openActiveSection(){l.prototype.openActiveSection.apply(this,arguments),elementor.channels.editor.trigger(`section:activated`,this.activeSection,this)},isVisibleSectionControl:function isVisibleSectionControl(r){return l.prototype.isVisibleSectionControl.apply(this,arguments)&&elementor.helpers.isActiveControl(r,this.model.get(`settings`).attributes,this.model.get(`settings`).controls)},scrollToEditedElement:function scrollToEditedElement(){elementor.helpers.scrollToView(this.getOption(`editedElementView`).$el)},onDestroy:function onDestroy(){this.model.trigger(`editor:close`),this.triggerMethod(`editor:destroy`)},onDeviceModeChange:function onDeviceModeChange(){l.prototype.onDeviceModeChange.apply(this,arguments),this.scrollToEditedElement()},onChildviewSettingsChange:function onChildviewSettingsChange(r){var c=this.getOption(`editedElementView`),l=c.model.get(`elType`);l===`widget`&&(l=c.model.get(`widgetType`)),elementor.channels.editor.trigger(`change`,r,c).trigger(`change:`+l,r,c).trigger(`change:`+l+`:`+r.model.get(`name`),r,c)}})})),wg=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-panel-header`,id:`elementor-panel-header`,ui:{menuButton:`#elementor-panel-header-menu-button`,menuIcon:`#elementor-panel-header-menu-button i`,title:`#elementor-panel-header-title`,addButton:`#elementor-panel-header-add-button`},events:{"click @ui.addButton":`onClickAdd`,"click @ui.menuButton":`onClickMenu`},behaviors:function behaviors(){return elementor.hooks.applyFilters(`panel/header/behaviors`,{},this)},setTitle:function setTitle(r){this.ui.title.html(r)},onClickAdd:function onClickAdd(){$e.route(`panel/elements/categories`)},onClickMenu:function onClickMenu(){$e.routes.is(`panel/menu`)?$e.route(`panel/elements/categories`):$e.route(`panel/menu`)}})})),Tg=__commonJSMin(((r,c)=>{var l=Marionette.Behavior.extend({ui:function ui(){return{buttonPreview:`.elementor-panel-footer-back-compat-preview`}},onRender:function onRender(){var r=this;this.ui.buttonPreview.tipsy||(this.ui.buttonPreview.tipsy=function(){return r.ui.buttonPreview})}});c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-panel-footer-back-compat`,className:`elementor-panel-footer-back-compat`,attributes:{"aria-hidden":`true`},ui:{},initialize:function initialize(){this.ui=this.ui||{}},behaviors:function behaviors(){return{saver:{behaviorClass:l}}},onRender:function onRender(){var r,c,l=Object.keys(this.behaviors()).indexOf(`saver`),u=(r=this._behaviors)==null?void 0:r[l];u!=null&&(c=u.ui)!=null&&(c=c.buttonPreview)!=null&&c.length&&!u.ui.buttonPreview.tipsy&&(u.ui.buttonPreview.tipsy=function(){return u.ui.buttonPreview})},addSubMenuItem:function addSubMenuItem(r,c){var l=jQuery(`<div>`,{id:`elementor-panel-footer-sub-menu-item-`+c.name,class:`elementor-panel-footer-sub-menu-item`});return c.callback&&l.on(`click`,c.callback),l},removeSubMenuItem:function removeSubMenuItem(r,c){return jQuery(`#elementor-panel-footer-sub-menu-item-`+c.name).remove()}})})),Eg=__commonJSMin(((r,c)=>{ng(),ig(),ug(),Np();var l=dg();c.exports=Marionette.LayoutView.extend({template:`#tmpl-elementor-panel`,id:`elementor-panel-inner`,regions:{content:`#elementor-panel-content-wrapper`,header:`#elementor-panel-header-wrapper`,footer:`#elementor-panel-footer`,modeSwitcher:`#elementor-mode-switcher`},pages:{},events:{keydown:`onKeyDown`},childEvents:{"click:add":function clickAdd(){$e.route(`panel/elements/categories`)},"editor:destroy":function editorDestroy(){$e.route(`panel/elements/categories`,{autoFocusSearch:!1})}},currentPageName:null,currentPageView:null,perfectScrollbar:null,initialize:function initialize(){$e.components.register(new tg({manager:this})),$e.internal(`panel/state-loading`),$e.components.register(new rg({manager:this})),$e.components.register(new lg({manager:this})),this.initPages()},buildPages:function buildPages(){return{elements:{view:Sg(),title:`<img src="`+elementorCommon.config.urls.assets+`images/logo-panel.svg">`},editor:{view:Cg()},menu:{view:elementor.modules.layouts.panel.pages.menu.Menu,title:`<img src="`+elementorCommon.config.urls.assets+`images/logo-panel.svg">`}}},initPages:function initPages(){var r;this.getPages=function(c){return r||(r=this.buildPages()),c?r[c]:r},this.addPage=function(c,l){r||(r=this.buildPages()),r[c]=l}},getHeaderView:function getHeaderView(){return this.getChildView(`header`)},getCurrentPageName:function getCurrentPageName(){return this.currentPageName},getCurrentPageView:function getCurrentPageView(){return this.currentPageView},setPage:function setPage(r,c,l){var u=this.getPages();r===`elements`&&!elementor.userCan(`design`)&&u.page_settings&&(r=`page_settings`);var p=u[r];if(!p)throw ReferenceError(`Elementor panel doesn't have page named '`+r+`'`);p.options&&(l=_.extend(p.options,l));var m=p.view;return p.getView&&(m=p.getView()),this.currentPageName=r,this.currentPageView=new m(l),this.showChildView(`content`,this.currentPageView),this.getHeaderView().setTitle(c||p.title),this.trigger(`set:page`,this.currentPageView).trigger(`set:page:`+r,this.currentPageView),elementor.promotion.dialog&&elementor.promotion.dialog.hide(),this.currentPageView},onKeyDown:function onKeyDown(r){escapeFromPanelField(r,this.el)},onBeforeShow:function onBeforeShow(){var r=wg(),c=Tg();this.showChildView(`modeSwitcher`,new l),this.showChildView(`header`,new r),this.showChildView(`footer`,new c),this.updateScrollbar=_.throttle(this.updateScrollbar,100),this.getRegion(`content`).on(`before:show`,this.onEditorBeforeShow.bind(this)).on(`empty`,this.onEditorEmpty.bind(this)).on(`show`,this.updateScrollbar.bind(this))},onEditorBeforeShow:function onEditorBeforeShow(){_.defer(this.updateScrollbar.bind(this))},onEditorEmpty:function onEditorEmpty(){this.updateScrollbar()},updateScrollbar:function updateScrollbar(){if(!this.perfectScrollbar){this.perfectScrollbar=new PerfectScrollbar(this.content.el,{suppressScrollX:!0}),this.perfectScrollbar.isRtl=!1;return}this.perfectScrollbar.update()}})})),Dg=__commonJSMin(((r,c)=>{var l=xl();c.exports=l.extend({el:`#elementor-panel`,getStorageKey:function getStorageKey(){return`panel`},getDefaultStorage:function getDefaultStorage(){return{size:{width:``}}},constructor:function constructor(){l.prototype.constructor.apply(this,arguments);var r=Eg();this.show(new r),this.resizable(),this.setSize(),this.listenTo(elementor.channels.dataEditMode,`switch`,this.onEditModeSwitched)},setSize:function setSize(){var r=this.storage.size.width;elementorCommon.elements.$body.css(`--e-editor-panel-width`,r)},resizable:function resizable(){var r=this;r.$el.resizable({handles:elementorCommon.config.isRTL?`w`:`e`,minWidth:250,maxWidth:680,start:function start(){elementor.$previewWrapper.addClass(`ui-resizable-resizing`)},stop:function stop(c,l){elementor.$previewWrapper.removeClass(`ui-resizable-resizing`),elementor.getPanelView().updateScrollbar(),r.saveSize({width:l.size.width+`px`})},resize:function resize(c,l){elementorCommon.elements.$body.css(`--e-editor-panel-width`,l.size.width+`px`),r.$el.css({width:``,left:``})}})},onEditModeSwitched:function onEditModeSwitched(r){r===`edit`&&this.setSize()}})}));M(),x(),N(),b(),w(),E(),D(),A(),P(),Kt(),Jt();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}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 Og=function(c){function EditorBase(){var r;_classCallCheck(this,EditorBase);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper$1(this,EditorBase,[].concat(l)),_defineProperty(r,`widgetsCache`,{}),_defineProperty(r,`config`,{}),_defineProperty(r,`loaded`,!1),_defineProperty(r,`previewLoadedOnce`,!1),_defineProperty(r,`activeBreakpointsUpdated`,!1),_defineProperty(r,`helpers`,lp()),_defineProperty(r,`imagesManager`,up()),_defineProperty(r,`presetsFactory`,dp()),_defineProperty(r,`templates`,km()),_defineProperty(r,`ajax`,elementorCommon.ajax),_defineProperty(r,`conditions`,new Ud),_defineProperty(r,`history`,($o(),__toCommonJS(Zo))),_defineProperty(r,`hints`,new lf),_defineProperty(r,`channels`,{editor:Backbone.Radio.channel(`ELEMENTOR:editor`),data:Backbone.Radio.channel(`ELEMENTOR:data`),panelElements:Backbone.Radio.channel(`ELEMENTOR:panelElements`),dataEditMode:Backbone.Radio.channel(`ELEMENTOR:editmode`),deviceMode:Backbone.Radio.channel(`ELEMENTOR:deviceMode`),templates:Backbone.Radio.channel(`ELEMENTOR:templates`),responsivePreview:Backbone.Radio.channel(`ELEMENTOR:responsivePreview`)}),_defineProperty(r,`backgroundClickListeners`,{tooltip:{element:`.dialog-tooltip-widget`,ignore:`.dialog-widget, .elementor-controls-popover, .pcr-selection`},popover:{element:`.elementor-controls-popover`,ignore:`.elementor-control-popover-toggle-toggle, .elementor-control-popover-toggle-toggle-label, .select2-container, .pcr-app, .dialog-tooltip-widget`},globalControlsSelect:{element:`.e-global__popover`,ignore:`.e-global__popover-toggle`},tagsList:{element:`.elementor-tags-list`,ignore:`.elementor-control-dynamic-switcher`},panelResponsiveSwitchers:{element:`.elementor-control-responsive-switchers`,callback:function callback(r){r.removeClass(`elementor-responsive-switchers-open`)}},panelUnitControlSwitchers:{element:`.e-units-choices`,callback:function callback(r){r.removeClass(`e-units-choices-open`)}},promotion:{ignore:`.elementor-responsive-panel`,callback:function callback(){var r=elementor.promotion.dialog;r&&r.hide()}}}),_defineProperty(r,`modules`,{get Module(){return elementorDevTools.deprecation.deprecated(`elementor.modules.Module`,`2.3.0`,`elementorModules.Module`),elementorModules.Module},components:{templateLibrary:{views:{get BaseModalLayout(){return elementorDevTools.deprecation.deprecated(`elementor.modules.components.templateLibrary.views.BaseModalLayout`,`2.4.0`,`elementorModules.common.views.modal.Layout`),elementorModules.common.views.modal.Layout}}},saver:{behaviors:{FooterSaver:ud()}}},saver:{get footerBehavior(){return elementorDevTools.deprecation.deprecated(`elementor.modules.saver.footerBehavior.`,`2.9.0`,`elementor.modules.components.saver.behaviors.FooterSaver`),elementor.modules.components.saver.behaviors.FooterSaver}},controls:{Animation:Am(),Base:Se(),BaseData:z(),BaseMultiple:jm(),Box_shadow:Mm(),Button:Nm(),Choose:Ol(),Visual_choice:Pm(),Code:Fm(),Color:Ae,Date_time:je,Dimensions:Hm(),Exit_animation:Am(),Font:Um(),Gaps:Wm(),Gallery:Gm(),Hidden:Km(),Hover_animation:Am(),Icon:qm(),Icons:Jm(),Image_dimensions:Ym(),Media:Xm(),Notice:Zm(),Number:Qm(),Popover_toggle:jl,Repeater:Gc(),RepeaterRow:Wc(),Section:$m(),Select:eh(),Select2:Am(),Slider:th(),Structure:nh(),Switcher:rh(),Tab:ih(),Text_shadow:Mm(),Url:ah(),Wp_widget:oh(),Wysiwyg:sh()},elements:{types:_objectSpread({Base:qt},hr),models:{get BaseSettings(){return elementorDevTools.deprecation.deprecated(`elementor.modules.elements.models.BaseSettings`,`2.4.0`,`elementorModules.editor.elements.models.BaseSettings`),elementorModules.editor.elements.models.BaseSettings},Element:tn()},views:{BaseElement:Wn(),BaseWidget:ur(),Widget:fr()},components:{AddSectionView:(In(),__toCommonJS(Pn)).default}},layouts:{panel:{pages:{elements:{views:{Global:ch(),Elements:uh()}},menu:{Menu:Y}}}},views:{get ControlsStack(){return elementorDevTools.deprecation.deprecated(`elementor.modules.views.ControlsStack`,`2.4.0`,`elementorModules.editor.views.ControlsStack`),elementorModules.editor.views.ControlsStack}}}),r}return _inherits(EditorBase,c),_createClass(EditorBase,[{key:`debug`,get:function get(){return elementorDevTools.deprecation.deprecated(`elementor.debug`,`3.0.0`,`elementorCommon.debug`),elementorCommon.debug}},{key:`userCan`,value:function userCan(r){return this.config.user.restrictions.indexOf(r)===-1}},{key:`addControlView`,value:function addControlView(r,c){this.modules.controls[elementorCommon.helpers.upperCaseWords(r)]=c}},{key:`checkEnvCompatibility`,value:function checkEnvCompatibility(){return Gt.firefox||Gt.webkit}},{key:`getElementData`,value:function getElementData(c){var l=c.get(`elType`);if(l===`widget`){var u=c.get(`widgetType`);if(!this.widgetsCache[u])return!1;if(!this.widgetsCache[u].commonMerged&&!this.widgetsCache[u].atomic_controls){var p,m=this.widgetsCache.common.controls;if(m=elementor.hooks.applyFilters(`elements/widget/controls/common/default`,m,u),jQuery.extend(this.widgetsCache[u].controls,m),!this.widgetsCache[u].has_widget_inner_wrapper&&elementorCommon.config.experimentalFeatures.e_optimized_markup){var h=this.widgetsCache[`common-optimized`].controls;h=elementor.hooks.applyFilters(`elements/widget/controls/common-optimized/default`,h,u),jQuery.extend(this.widgetsCache[u].controls,h)}if(this.widgetsCache[u].controls=elementor.hooks.applyFilters(`elements/widget/controls/common`,this.widgetsCache[u].controls,u,this.widgetsCache[u]),(p=this.widgetsCache[u].controls)!=null&&p._element_cache){var g,v=(0,r.__)(`The default cache status for this element:`,`elementor`);v+=` <strong>`,(g=this.widgetsCache[u])!=null&&g.is_dynamic_content?v+=(0,r.__)(`Inactive`,`elementor`):v+=(0,r.__)(`Active`,`elementor`),v+=`</strong><br />`,v+=(0,r.__)(`Activating cache improves loading times by storing a static version of this element.`,`elementor`),v+=` <a href="https://go.elementor.com/element-caching-help/" target="_blank">`+(0,r.__)(`Learn more`,`elementor`)+`</a>.`,this.widgetsCache[u].controls._element_cache.description=v}this.widgetsCache[u].commonMerged=!0}return this.widgetsCache[u]}if(!this.config.elements[l])return!1;var y=structuredClone(this.config.elements[l]);return l===`section`&&c.get(`isInner`)&&(y.title=(0,r.__)(`Inner Section`,`elementor`)),y}},{key:`getElementControls`,value:function getElementControls(r){var c=this.getElementData(r);if(!c)return!1;var l=r.get(`isInner`),u={};return _.each(c.controls,function(r,c){l&&r.hide_in_inner||!l&&r.hide_in_top||(u[c]=r)}),u}},{key:`mergeControlsSettings`,value:function mergeControlsSettings(r){var c=this;return _.each(r,function(l,u){r[u]=jQuery.extend(!0,{},c.config.controls[l.type],l)}),r}},{key:`getControlView`,value:function getControlView(r){var c=elementorCommon.helpers.upperCaseWords(r),l=this.modules.controls[c];if(!l){var u=this.config.controls[r],p=u&&u.features.indexOf(`ui`)!==-1;l=this.modules.controls[p?`Base`:`BaseData`]}return l}},{key:`getPanelView`,value:function getPanelView(){return this.panel.currentView}},{key:`getPreviewView`,value:function getPreviewView(){return this.previewView}},{key:`getPreviewContainer`,value:function getPreviewContainer(){var r;return(r=this.getPreviewView())==null?void 0:r.getContainer()}},{key:`getContainer`,value:function getContainer(r){return r===`document`?this.getPreviewContainer():$e.components.get(`document`).utils.findContainerById(r)}},{key:`getContainerByKeyValue`,value:function getContainerByKeyValue(r){var c,l,u=r.key,p=r.value,m=r.parent,h=m===void 0?this.getPreviewView():m;if(this.getPreviewContainer().model.get(u)===p)return this.getPreviewContainer();var g=$e.components.get(`document`).utils.findViewRecursive(h.children,u,p,!1);return(c=g==null||(l=g[0])==null?void 0:l.getContainer())==null?null:c}},{key:`initComponents`,value:function initComponents(){var r=dh(),c=ph(),l=wh(),u=Th();this.elementsManager=new $a,this.hooks=new r,this.selection=new Ml,this.settings=new l,this.dynamicTags=new c,this.initDialogsManager(),this.notifications=new u,this.kitManager=new ll,this.hotkeysScreen=new ps,this.iconManager=new Ds,this.noticeBar=new Cl,this.favorites=new go,this.history=new Qo,this.promotion=new _c,this.browserImport=new cc,this.introductionTooltips=new ro,this.editorEvents=elementorCommon.eventsManager,this.documents=$e.components.register(new Pt),elementorCommon.config.experimentalFeatures[`landing-pages`]&&(this.modules.landingLibraryPageModule=new Ll),elementorCommon.config.experimentalFeatures.container&&(this.modules.floatingButtonsLibraryModule=new rf),this.modules.linkInBioLibraryModule=new of,this.modules.floatingBarsLibraryModule=new af,this.modules.elementsColorPicker=new $l,this.modules.promotionModule=new Jd,this.modules.cloudLibraryModule=new cf,$e.components.register(new Vd),$e.components.register(new kd),$e.components.register(new fc),elementor.saver=$e.components.get(`document/save`),new uf,tu.dispatch(elementorCommon.elements.$window,`elementor/init-components`,null,`elementor:init-components`)}},{key:`toggleSortableState`,value:function toggleSortableState(){for(var r,c=this,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=[jQuery(`#elementor-navigator`),(r=elementor.documents.getCurrent())==null?void 0:r.$element],p=0,m=u;p<m.length;p++){var h=m[p];h&&h.find(`.ui-sortable`).each(function(){var r=jQuery(c);r.sortable(`instance`)&&r.sortable(l?`enable`:`disable`)})}}},{key:`initDialogsManager`,value:function initDialogsManager(){this.dialogsManager=elementorCommon.dialogsManager}},{key:`initElements`,value:function initElements(){var r=this.config.document.elements;this.elements&&this.elements.length&&this.config.document.id===this.config.initial_document.id&&(r=this.elements.toJSON()),this.elements=this.createBackboneElementsCollection(r),this.elementsModel=this.createBackboneElementsModel(this.elements)}},{key:`createBackboneElementsCollection`,value:function createBackboneElementsCollection(r){return new(en())(r)}},{key:`createBackboneElementsModel`,value:function createBackboneElementsModel(r){return new Backbone.Model({elements:r})}},{key:`initPreview`,value:function initPreview(){var c=jQuery,l=`elementor-preview-iframe`;this.$previewWrapper=c(`#elementor-preview`),this.$previewResponsiveWrapper=c(`#elementor-preview-responsive-wrapper`),this.$preview||(this.$preview=c(`<iframe>`,{id:l,src:this.config.initial_document.urls.preview,title:(0,r.__)(`Preview`,`elementor`),allowfullscreen:1}),this.$previewResponsiveWrapper.append(this.$preview)),this.$preview.on(`load`,this.onPreviewLoaded.bind(this))}},{key:`initPreviewView`,value:function initPreviewView(r){elementor.trigger(`document:before:preview`,r),this.previewView=this.createPreviewView(r.$element[0],elementor.elementsModel),this.renderPreview(this.previewView)}},{key:`createPreviewView`,value:function createPreviewView(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=new kl.default({el:r,model:c});return u.setConfig(l),u.$el.empty(),u}},{key:`renderPreview`,value:function renderPreview(r){r.isRendered=!0,r._renderChildren(),r.triggerMethod(`render`)}},{key:`initFrontend`,value:function initFrontend(){var r=this.$preview[0].contentWindow;window.elementorFrontend=r.elementorFrontend,r.elementor=this,r.elementorCommon=elementorCommon,elementorFrontend.init(),this.trigger(`frontend:init`)}},{key:`initClearPageDialog`,value:function initClearPageDialog(){var c;this.getClearPageDialog=function(){return c||(c=elementorCommon.dialogsManager.createWidget(`confirm`,{id:`elementor-clear-page-dialog`,headerMessage:(0,r.__)(`Delete All Content`,`elementor`),message:(0,r.__)(`Attention: We are going to DELETE ALL CONTENT from this page. Are you sure you want to do that?`,`elementor`),position:{my:`center center`,at:`center center`},strings:{confirm:(0,r.__)(`Delete`,`elementor`),cancel:(0,r.__)(`Cancel`,`elementor`)},onConfirm:function onConfirm(){return $e.run(`document/elements/empty`,{force:!0})}}),c)}}},{key:`getCurrentElement`,value:function getCurrentElement(){if([`BODY`,`IFRAME`].indexOf(document.activeElement.tagName)===-1||elementorFrontend.elements.window.document.activeElement.tagName!==`BODY`)return!1;var r=elementor.channels.editor.request(`contextMenu:targetView`);if(!r){var c=elementor.getPanelView();$e.routes.isPartOf(`panel/editor`)&&(r=c.getCurrentPageView().getOption(`editedElementView`))}return r||(r=elementor.getPreviewView()),r}},{key:`initPanel`,value:function initPanel(){this.addRegions({panel:Dg()}),window.dispatchEvent(new CustomEvent(`elementor/panel/init`)),this.trigger(`panel:init`)}},{key:`initNavigator`,value:function initNavigator(){$e.components.get(`document/elements`).utils.showNavigator()&&(this.addRegions({navigator:{el:`#elementor-navigator`,regionClass:Sl}}),this.trigger(`navigator:init`))}},{key:`setAjax`,value:function setAjax(){elementorCommon.ajax.addRequestConstant(`editor_post_id`,this.config.document.id),elementorCommon.ajax.addRequestConstant(`initial_document_id`,this.config.initial_document.id),elementorCommon.ajax.on(`request:unhandledError`,function(r){elementor.notifications.showToast({message:elementor.createAjaxErrorMessage(r)})})}},{key:`createAjaxErrorMessage`,value:function createAjaxErrorMessage(c){var l;return c.readyState===4?(l=(0,r.__)(`Server Error`,`elementor`),c.status!==200&&(l+=` (`+c.status+` `+c.statusText+`)`)):l=c.readyState===0?(0,r.__)(`Connection Lost`,`elementor`):(0,r.__)(`Unknown Error`,`elementor`),l+`.`}},{key:`activatePreviewResizable`,value:function activatePreviewResizable(){var r=this.$previewResponsiveWrapper;r.resizable(`instance`)||r.resizable({handles:`e, s, w`,stop:function stop(){r.css({width:``,height:``,left:``,right:``,top:``,bottom:``})},resize:function resize(c,l){r.css({right:`0`,left:`0`,top:`0`,bottom:`0`});var u=r[0].style;u.setProperty(`--e-editor-preview-width`,l.size.width+`px`),u.setProperty(`--e-editor-preview-height`,l.size.height+`px`)}})}},{key:`destroyPreviewResizable`,value:function destroyPreviewResizable(){this.$previewResponsiveWrapper.resizable(`instance`)&&this.$previewResponsiveWrapper.resizable(`destroy`)}},{key:`broadcastPreviewResize`,value:function broadcastPreviewResize(){this.channels.responsivePreview.reply(`size`,{width:this.$preview.innerWidth(),height:this.$preview.innerHeight()}).trigger(`resize`)}},{key:`getCurrentDeviceConstrains`,value:function getCurrentDeviceConstrains(){var r=elementor.channels.deviceMode.request(`currentMode`),c=elementorFrontend.config.responsive.activeBreakpoints[r],l=r===`widescreen`?9999:c.value,u=this.breakpoints.getDeviceMinBreakpoint(r);return u>c.value&&(u=c.value),{maxWidth:l,minWidth:u}}},{key:`getBreakpointResizeOptions`,value:function getBreakpointResizeOptions(r){var c=elementor.$previewWrapper.height(),l={mobile:{minHeight:480,height:736,width:360,maxHeight:896},mobile_extra:{minHeight:480,height:736,maxHeight:896},tablet:{minHeight:320,height:c,maxHeight:1024},tablet_extra:{minHeight:320,height:c,maxHeight:1024},laptop:{minHeight:320,height:c,maxHeight:1024},widescreen:{minHeight:320,height:c,maxHeight:1200}},u=this.getCurrentDeviceConstrains();return l[r]&&(u=_objectSpread(_objectSpread({},u),l[r])),u}},{key:`updatePreviewResizeOptions`,value:function updatePreviewResizeOptions(){var r=arguments.length>0&&arguments[0]!==void 0&&arguments[0],c=this.$previewResponsiveWrapper,l=elementor.channels.deviceMode.request(`currentMode`);if(l===`desktop`){this.destroyPreviewResizable();var u=c[0].style;u.setProperty(`--e-editor-preview-width`,``),u.setProperty(`--e-editor-preview-height`,``)}else{var p;this.activatePreviewResizable();var m=this.getBreakpointResizeOptions(l),h=(p=m.width)==null?m.minWidth:p;if(r){var g=elementor.channels.responsivePreview.request(`size`);g.width>m.maxWidth?h=m.maxWidth:g.width>=m.minWidth&&(h=g.width)}c.resizable(`option`,_objectSpread({},m));var v=c[0].style;v.setProperty(`--e-editor-preview-width`,h+`px`),v.setProperty(`--e-editor-preview-height`,m.height+`px`)}}},{key:`preventClicksInsideEditor`,value:function preventClicksInsideEditor(){this.$previewContents.on(`submit`,function(r){return r.preventDefault()}),this.$previewContents.on(`click`,function(r){var c,l=jQuery(r.target),u=!!l.closest(`.elementor-edit-area, .pen-menu`).length,p=this.contains(l[0]);l.closest(`a:not(.elementor-clickable)`).length&&r.preventDefault(),!(u&&elementor.getPreviewContainer().isEditable()||!p)&&!u&&(c=elementor.documents.getCurrent())!=null&&c.$element&&$e.run(`document/elements/deselect-all`)})}},{key:`addBackgroundClickArea`,value:function addBackgroundClickArea(r){r.addEventListener(`click`,this.onBackgroundClick.bind(this),!0)}},{key:`addBackgroundClickListener`,value:function addBackgroundClickListener(r,c){this.backgroundClickListeners[r]=c}},{key:`removeBackgroundClickListener`,value:function removeBackgroundClickListener(r){delete this.backgroundClickListeners[r]}},{key:`showFatalErrorDialog`,value:function showFatalErrorDialog(c){var l={id:`elementor-fatal-error-dialog`,headerMessage:``,message:``,position:{my:`center center`,at:`center center`},strings:{confirm:(0,r.__)(`Learn More`,`elementor`),cancel:(0,r.__)(`Go Back`,`elementor`)},onConfirm:null,onCancel:function onCancel(){return parent.history.go(-1)},hide:{onBackgroundClick:!1,onButtonClick:!1}};c=jQuery.extend(!0,l,c),elementorCommon.dialogsManager.createWidget(`confirm`,c).show()}},{key:`showFlexBoxAttentionDialog`,value:function showFlexBoxAttentionDialog(){var c=this,l=new elementorModules.editor.utils.Introduction({introductionKey:`flexbox`,dialogType:`confirm`,dialogOptions:{id:`elementor-flexbox-attention-dialog`,headerMessage:(0,r.__)(`Note: Flexbox Changes`,`elementor`),message:(0,r.__)(`Elementor 2.5 introduces key changes to the layout using CSS Flexbox. Your existing pages might have been affected, please review your page before publishing.`,`elementor`),position:{my:`center center`,at:`center center`},strings:{confirm:(0,r.__)(`Learn More`,`elementor`),cancel:(0,r.__)(`Got It`,`elementor`)},hide:{onButtonClick:!1},onCancel:function onCancel(){l.setViewed(),l.getDialog().hide()},onConfirm:function onConfirm(){return open(c.config.help_flexbox_bc_url,`_blank`)}}});l.show()}},{key:`checkPageStatus`,value:function checkPageStatus(){elementor.documents.getCurrent().isDraft()&&this.notifications.showToast({message:(0,r.__)(`This is just a draft. Play around and when you're done - click update.`,`elementor`),buttons:[{name:`view_revisions`,text:(0,r.__)(`View All Revisions`,`elementor`),callback:function callback(){return $e.route(`panel/history/revisions`)}}]})}},{key:`enterDeviceMode`,value:function enterDeviceMode(){var r=this;this.channels.responsivePreview.trigger(`open`),elementorCommon.elements.$body.addClass(`e-is-device-mode`),this.activatePreviewResizable(),this.resizeListenerThrottled=!1,this.broadcastPreviewResize(),elementorFrontend.elements.$window.on(`resize.deviceModeDesktop`,function(){r.resizeListenerThrottled||(r.resizeListenerThrottled=!0,r.broadcastPreviewResize(),setTimeout(function(){r.resizeListenerThrottled=!1,r.broadcastPreviewResize()},300))})}},{key:`exitDeviceMode`,value:function exitDeviceMode(){elementorCommon.elements.$body.removeClass(`e-is-device-mode`),this.destroyPreviewResizable(),elementorCommon.elements.$window.off(`resize.deviceModeDesktop`),this.channels.deviceMode.trigger(`close`)}},{key:`isDeviceModeActive`,value:function isDeviceModeActive(){return elementorCommon.elements.$body.hasClass(`e-is-device-mode`)}},{key:`updatePreviewSize`,value:function updatePreviewSize(r){var c=this.$previewResponsiveWrapper[0].style;c.setProperty(`--e-editor-preview-width`,r.width+`px`),c.setProperty(`--e-editor-preview-height`,r.height+`px`)}},{key:`enterPreviewMode`,value:function enterPreviewMode(r){var c=elementorFrontend.elements.$body;r&&(c=c.add(elementorCommon.elements.$body)),c.removeClass(`elementor-editor-active`).addClass(`elementor-editor-preview`);var l=this.documents.getCurrent().$element;l&&l.removeClass(`elementor-edit-area-active`)}},{key:`exitPreviewMode`,value:function exitPreviewMode(){elementorFrontend.elements.$body.add(elementorCommon.elements.$body).removeClass(`elementor-editor-preview`).addClass(`elementor-editor-active`),elementor.config.document.panel.has_elements&&this.documents.getCurrent().$element.addClass(`elementor-edit-area-active`)}},{key:`changeEditMode`,value:function changeEditMode(r){var c=elementor.channels.dataEditMode,l=c.request(`activeMode`);c.reply(`activeMode`,r),r!==l&&c.trigger(`switch`,r)}},{key:`reloadPreview`,value:function reloadPreview(){jQuery(`#elementor-preview-loading`).show(),this.$preview[0].src=this.config.initial_document.urls.preview}},{key:`changeDeviceMode`,value:function changeDeviceMode(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,l=this.channels.deviceMode.request(`currentMode`);l!==r&&(elementorCommon.elements.$body.removeClass(`elementor-device-`+l).addClass(`elementor-device-`+r),this.channels.deviceMode.reply(`previousMode`,l).reply(`currentMode`,r).trigger(`change`),this.isDeviceModeActive()&&c?r===`desktop`&&this.exitDeviceMode():r!==`desktop`&&this.enterDeviceMode(),dispatchEvent(new CustomEvent(`elementor/device-mode/change`,{detail:{activeMode:r}})))}},{key:`translate`,value:function translate(r,c,l){return l||(l=this.config.i18n),elementorCommon.translate(r,null,c,l)}},{key:`requestWidgetsConfig`,value:function requestWidgetsConfig(){var r=this,c={};jQuery.each(this.widgetsCache,function(r,l){l.controls&&(c[r]=!0)}),elementorCommon.ajax.addRequest(`get_widgets_config`,{data:{exclude:c},success:function success(c){r.addWidgetsCache(c),elementor.config.locale!==elementor.config.user.locale&&r.translateControlsDefaults(elementor.config.locale),r.loaded?(r.kitManager.renderGlobalsDefaultCSS(),$e.internal(`panel/state-ready`)):r.once(`panel:init`,function(){$e.internal(`panel/state-ready`)})}})}},{key:`refreshWidgets`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(){var r;return B.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=1,elementorCommon.ajax.addRequest(`refresh_widgets_config`);case 1:return r=c.sent,this.widgetsCache={},this.addWidgetsCache(r.widgets),elementor.config.document.panel.elements_categories=r.categories,elementor.config.locale!==elementor.config.user.locale&&this.translateControlsDefaults(elementor.config.locale),this.kitManager.renderGlobalsDefaultCSS(),elementor.hooks.doAction(`elementor/widgets/refreshed`),$e.routes.refreshContainer(`panel`),$e.run(`preview/reload`),c.abrupt(`return`,r);case 2:case`end`:return c.stop()}},_callee,this)}));function refreshWidgets(){return r.apply(this,arguments)}return refreshWidgets}()},{key:`translateControlsDefaults`,value:function translateControlsDefaults(r){var c=this;elementorCommon.ajax.addRequest(`get_widgets_default_value_translations`,{data:{locale:r},success:function success(r){c.addWidgetsCache(r)}},!0)}},{key:`getPreferences`,value:function getPreferences(r){var c=elementor.settings.editorPreferences.model.attributes;return r?c[r]:c}},{key:`getConfig`,value:function getConfig(){return ElementorConfig}},{key:`onStart`,value:function onStart(){var r=this;this.config=this.getConfig(),Backbone.Radio.DEBUG=!1,Backbone.Radio.tuneIn(`ELEMENTOR`),this.populateActiveBreakpointsConfig(),this.breakpoints=new eu(this.config.responsive),elementorCommon.config.experimentalFeatures.additional_custom_breakpoints&&this.generateResponsiveControlsForElements(),this.elementsManager=new $a,this.initComponents(),this.checkEnvCompatibility()||this.onEnvNotCompatible(),this.initPreview(),this.requestWidgetsConfig(),this.channels.dataEditMode.reply(`activeMode`,`edit`),this.listenTo(this.channels.dataEditMode,`switch`,this.onEditModeSwitched),this.listenTo(elementor.channels.deviceMode,`change`,this.updatePreviewResizeOptions),this.initClearPageDialog(),this.addBackgroundClickArea(document),this.addDeprecatedConfigProperties(),tu.dispatch(elementorCommon.elements.$window,`elementor/loaded`,null,`elementor:loaded`),$e.run(`editor/documents/open`,{id:this.config.initial_document.id}).then(function(){tu.dispatch(elementorCommon.elements.$window,`elementor/init`,null,`elementor:init`),r.initNavigator()})}},{key:`onPreviewLoaded`,value:function onPreviewLoaded(){if(!this.$preview[0].contentWindow.elementorFrontend){this.onPreviewLoadingError();return}if(!elementor.config.kit_id){this.kitNotExistsError();return}this.$previewContents=this.$preview.contents(),this.initFrontend(),this.preventClicksInsideEditor(),this.addBackgroundClickArea(elementorFrontend.elements.window.document),this.previewLoadedOnce||this.onFirstPreviewLoaded(),this.$previewContents.children().addClass(`elementor-html`);var r=elementorFrontend.elements.$body;r.addClass(`elementor-editor-active`),elementor.userCan(`design`)||r.addClass(`elementor-editor-content-only`),this.changeDeviceMode(`desktop`),_.defer(function(){elementorFrontend.elements.window.jQuery.holdReady(!1)}),$e.shortcuts.bindListener(elementorFrontend.elements.$window),this.trigger(`preview:loaded`,!this.loaded),$e.internal(`editor/documents/attach-preview`).then(function(){return jQuery(`#elementor-loading, #elementor-preview-loading`).fadeOut(600)}),this.loaded=!0}},{key:`onFirstPreviewLoaded`,value:function onFirstPreviewLoaded(){this.initPanel(),this.previewLoadedOnce=!0;var r=elementorCommon.eventsManager;if(r){var c;r.dispatchEvent((c=r.config)==null||(c=c.names)==null||(c=c.elementorEditor)==null?void 0:c.editorLoaded,{})}}},{key:`onEditModeSwitched`,value:function onEditModeSwitched(){var r=this.channels.dataEditMode.request(`activeMode`);dispatchEvent(new CustomEvent(`elementor/edit-mode/change`,{detail:{activeMode:r}})),r===`edit`?this.exitPreviewMode():this.enterPreviewMode(r===`preview`)}},{key:`onEnvNotCompatible`,value:function onEnvNotCompatible(){var c=this;this.showFatalErrorDialog({headerMessage:(0,r.__)(`Your browser isn't compatible`,`elementor`),message:(0,r.__)(`Your browser isn't compatible with all of Elementor's editing features. We recommend you switch to another browser like Chrome or Firefox.`,`elementor`),strings:{confirm:(0,r.__)(`Proceed Anyway`,`elementor`)},hide:{onButtonClick:!0},onConfirm:function onConfirm(){return c.hide()}})}},{key:`kitNotExistsError`,value:function kitNotExistsError(){this.showFatalErrorDialog({className:`elementor-preview-loading-error`,headerMessage:(0,r.__)(`Your site doesn't have a default kit`,`elementor`),message:(0,r.__)(`Seems like your kit was deleted, please create new one or try restore it from trash.`,`elementor`),strings:{confirm:(0,r.__)(`Recreate Kit`,`elementor`),cancel:(0,r.__)(`Go Back`,`elementor`)},onConfirm:function onConfirm(){return open(elementor.config.admin_tools_url,`_blank`)}})}},{key:`onPreviewLoadingError`,value:function onPreviewLoadingError(){var c=this,l=this.config.document.urls.preview+`&preview-debug`,u=(0,r.__)(`Click here for preview debug`,`elementor`),p=`<div id="elementor-preview-debug-link-text"><a href="`+l+`" target="_blank">`+u+`</a></div>`,m=elementor.config.preview.debug_data,h={className:`elementor-preview-loading-error`,headerMessage:m.header,message:m.message+p,onConfirm:function onConfirm(){return open(m.doc_url,`_blank`)}};if(m.error){this.showFatalErrorDialog(h);return}jQuery.get(l,function(){c.showFatalErrorDialog(h)}).fail(function(r){c.showFatalErrorDialog({className:`elementor-preview-loading-error`,headerMessage:m.header,message:r.statusText+` `+r.status+` `+p,onConfirm:function onConfirm(){var c=500<=r.status?elementor.config.preview.help_preview_http_error_500_url:elementor.config.preview.help_preview_http_error_url;open(c,`_blank`)}})})}},{key:`onPreviewElNotFound`,value:function onPreviewElNotFound(){var c=this.$preview[0].contentWindow.elementorPreviewErrorArgs;c||(c={headerMessage:(0,r.__)(`Sorry, the content area was not found in your page.`,`elementor`),message:(0,r.__)(`You must call 'the_content' function in the current template, in order for Elementor to work on this page.`,`elementor`),confirmURL:elementor.config.help_the_content_url}),c.onConfirm=function(){return open(c.confirmURL,`_blank`)},this.showFatalErrorDialog(c)}},{key:`onBackgroundClick`,value:function onBackgroundClick(r){jQuery.each(this.backgroundClickListeners,function(c,l){var u=jQuery(r.target);if(u[0].control&&(u=u.add(u[0].control)),!(l.ignore&&u.closest(l.ignore).length)){var p=u.closest(l.element),m=jQuery(l.element).not(p);if(l.callback){l.callback(m);return}m.each(function(r,c){var l=jQuery(c),u=l.is(`:visible`);l.hide(),u&&l.trigger(`hide`)})}})}},{key:`compileTemplate`,value:function compileTemplate(r,c){return Marionette.TemplateCache.prototype.compileTemplate(r)(c)}},{key:`addWidgetsCache`,value:function addWidgetsCache(r){var c=this;jQuery.each(r,function(r,l){elementorCommon.config.experimentalFeatures.additional_custom_breakpoints&&(l.controls=c.generateResponsiveControls(l.controls)),c.widgetsCache[r]=jQuery.extend(!0,{},c.widgetsCache[r],l)})}},{key:`generateResponsiveControls`,value:function generateResponsiveControls(r){var c=this,l=this.config.responsive.activeBreakpoints,u=this.breakpoints.getActiveBreakpointsList({largeToSmall:!0,withDesktop:!0}),p={},m=u[u.indexOf(`desktop`)+1];return u.unshift(u.splice(u.indexOf(`desktop`),1)[0]),jQuery.each(r,function(r,h){var g,v,y,b;if(_typeof(h.fields)===`object`&&(h.fields=c.generateResponsiveControls(h.fields)),!h.is_responsive){p[r]=h;return}(g=h.responsive)!=null&&g.devices&&(_typeof(h.responsive.devices)===`object`&&(h.responsive.devices=Object.values(h.responsive.devices)),b=u.filter(function(r){return h.responsive.devices.includes(r)}),delete h.responsive.devices);var x=(v=h.popover)==null?void 0:v.end;if(x){var S;(S=h.popover)==null||delete S.end}h.default&&(h.desktop_default=h.default);var C=c.config.controls[h.type].default_value,w=!0;C&&(h.default=C,w=!1);var T=b||u;T.forEach(function(c,u){var g,v=structuredClone(h);if(v.device_args&&(v.device_args[c]&&(v=_objectSpread(_objectSpread({},v),v.device_args[c])),delete v.device_args),v.prefix_class&&v.prefix_class.indexOf(`%s`)!==-1){var b=c===`desktop`?``:`-`+c;v.prefix_class=v.prefix_class.replace(`%s`,b)}Array.isArray(v.responsive)&&(v.responsive={});var S=`max`;if(v.parent=null,c!==`desktop`&&(S=l[c].direction,v.parent=c===m?r:y),v.responsive[S]=c,v.min_affected_device&&(v.min_affected_device[c]&&(v.responsive.min=v.min_affected_device[c]),delete v.min_affected_device),v[c+`_default`]?_typeof(v[c+`_default`])===`object`?v.default=_objectSpread(_objectSpread({},v.default),v[c+`_default`]):v.default=v[c+`_default`]:w&&(v.default=``),u!==0&&(g=v.popover)!=null&&g.start&&delete v.popover.start,u===T.length-1&&x&&(v.popover={end:!0}),T.forEach(function(r){delete v[r+`_default`]}),delete v.is_responsive,y=c===`desktop`?r:r+`_`+c,v.parent){var C=p[v.parent];C.inheritors||(C.inheritors=[]),C.inheritors.push(y)}v.name=y,p[y]=v})}),p}},{key:`generateResponsiveControlsForElements`,value:function generateResponsiveControlsForElements(){var r=this;Object.keys(this.config.elements).forEach(function(c){r.config.elements[c].controls=r.generateResponsiveControls(r.config.elements[c].controls)})}},{key:`populateActiveBreakpointsConfig`,value:function populateActiveBreakpointsConfig(){var r=this;this.config.responsive.activeBreakpoints={},Object.entries(this.config.responsive.breakpoints).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];p.is_enabled&&(r.config.responsive.activeBreakpoints[u]=p)})}},{key:`addDeprecatedConfigProperties`,value:function addDeprecatedConfigProperties(){var r=this;jQuery.each({data:{replacement:`elements`,value:function value(){return elementor.config.document.elements}},current_user_can_publish:{replacement:`user.can_publish`,value:function value(){return elementor.config.document.user.can_publish}},locked_user:{replacement:``,value:function value(){return elementor.config.document.user.locked}},revisions_enabled:{replacement:`revisions.enabled`,value:function value(){return elementor.config.document.revisions.enabled}},current_revision_id:{replacement:`revisions.current_id`,value:function value(){return elementor.config.document.revisions.current_id}}},function(c,l){Object.defineProperty(r.config,c,{get:function get(){var r=l.replacement?`elementor.config.document.`+l.replacement:``;return elementorDevTools.deprecation.deprecated(`elementor.config.`+c,`2.9.0`,r),l.value()},set:function set(){throw elementorDevTools.deprecation.deprecated(`elementor.config.`+c,`2.9.0`,`elementor.config.document.`+l.replacement),Error(`Deprecated`)}})}),Object.defineProperty(this.config.settings,"page",{get:function get(){return elementorDevTools.deprecation.deprecated(`elementor.config.settings.page`,`2.9.0`,`elementor.config.document.settings`),elementor.config.document.settings}}),Object.defineProperty(this.config,"widgets",{get:function get(){return elementorDevTools.deprecation.deprecated(`elementor.config.widgets`,`2.9.0`,`elementor.widgetsCache`),elementor.widgetsCache}}),Object.defineProperty(this,"$previewElementorEl",{get:function get(){return elementorDevTools.deprecation.deprecated(`elementor.$previewElementorEl`,`2.9.4`,`elementor.documents.getCurrent().$element`),elementor.documents.getCurrent().$element}})}},{key:`toggleDocumentCssFiles`,value:function toggleDocumentCssFiles(r,c){var l=[`#elementor-post-${r.config.id}-css`,`#elementor-preview-${r.config.revisions.current_id}`],u=this.$previewContents.find(l.join(`,`)),p=c?`text/css`:`elementor/disabled-css`;u.attr({type:p})}}])}(Marionette.Application);b(),w(),E(),D(),k(),A();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})()}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}window.elementor=new(function(r){function Editor(){return _classCallCheck(this,Editor),_callSuper(this,Editor,arguments)}return _inherits(Editor,r),_createClass(Editor,[{key:`onStart`,value:function onStart(r){NProgress.start(),NProgress.inc(.2),_superPropGet(Editor,`onStart`,this,3)([r])}},{key:`onPreviewLoaded`,value:function onPreviewLoaded(){NProgress.done(),_superPropGet(Editor,`onPreviewLoaded`,this,3)([])}}])}(Og))})(wp.i18n,elementorVendors.reduxToolkit,React,ReactDOM);
178 +How it should work: `;l=Marionette.ItemView.extend({getTemplate:function getTemplate(){return this.options.emptyResults?u.EMPTY_STATE:u.SEARCH_FOOTER},className:function className(){var r=`elementor-panel-elements-widget-creation`;return`${r} ${this.options.emptyResults?`${r}--empty-state`:`${r}--search-footer`}`},templateHelpers:function templateHelpers(){return{searchTerm:this.options.searchTerm||``}},hasTemplate:function hasTemplate(){return!!jQuery(this.getTemplate()).length},events:{"click .elementor-panel-elements-widget-creation__cta":`onCtaClick`},onCtaClick:function onCtaClick(){window.dispatchEvent(new CustomEvent(`elementor/editor/create-widget`,{detail:{prompt:p,entry_point:`search_widget`}}))}}),c.exports=l,c.exports.CREATE_WIDGET_PROMPT=p})),_g=__commonJSMin(((r,c)=>{var l=gg().CREATE_WIDGET_PROMPT,u=hg();c.exports=Marionette.CompositeView.extend({template:`#tmpl-elementor-panel-elements-category`,className:`elementor-panel-category`,ui:{title:`.elementor-panel-category-title`,items:`.elementor-panel-category-items`,chip:`.elementor-panel-heading-category-chip`},events:{"click @ui.title":`onTitleClick`,"click @ui.chip":`onChipClick`,"click .elementor-panel-custom-widgets__cta":`onCustomWidgetsCtaClick`,"click .elementor-panel-heading-promotion a":`onPromotionLinkClick`},id:function id(){return`elementor-panel-category-`+this.model.get(`name`)},childView:lh(),childViewContainer:`.elementor-panel-category-items`,initialize:function initialize(){var r=this.model.get(`items`)||[];switch(this.model.get(`sort`)){case`a-z`:r=r.sort(function(r,c){return r.get(`title`)>c.get(`title`)?1:-1});break}this.collection=new u(r)},behaviors:function behaviors(){return elementor.hooks.applyFilters(`panel/category/behaviors`,{},this)},onRender:function onRender(){var r=elementor.channels.panelElements.request(`category:`+this.model.get(`name`)+`:active`);r===void 0&&(r=this.model.get(`defaultActive`)),!this.collection.length&&this.model.get(`hideIfEmpty`)&&this.$el.css(`display`,`none`),r?this.$el.addClass(`elementor-active`):this.ui.items.css(`display`,`none`)},onTitleClick:function onTitleClick(){var r;this.toggle(),elementorCommon.eventsManager.dispatchEvent((r=elementorCommon.eventsManager.config.names[this.model.get(`name`)])==null?void 0:r.v1,{location:elementorCommon.eventsManager.config.locations.widgetPanel,secondaryLocation:elementorCommon.eventsManager.config.secondaryLocations[this.model.get(`name`)],trigger:elementorCommon.eventsManager.config.triggers.accordionClick,element:elementorCommon.eventsManager.config.elements.accordionSection})},toggle:function toggle(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,l=this.ui.items,u=`elementor-active`,p=r===void 0?this.$el.hasClass(u):!r,m=p?`hide`:`show`,h=p?`slideUp`:`slideDown`,g=function updateScrollbar(){return elementor.getPanelView().updateScrollbar()};elementor.channels.panelElements.reply(`category:`+this.model.get(`name`)+`:active`,!p),this.$el.toggleClass(u,!p),c?l[h](300,g):l[m](0,g)},onChipClick:function onChipClick(r){r.stopPropagation(),document.dispatchEvent(new CustomEvent(`alphachip:open`,{detail:{target:this.$el}}))},onCustomWidgetsCtaClick:function onCustomWidgetsCtaClick(r){r.stopPropagation(),window.dispatchEvent(new CustomEvent(`elementor/editor/create-widget`,{detail:{prompt:l,entry_point:`widgets_panel`}}))},onPromotionLinkClick:function onPromotionLinkClick(r){r.stopPropagation()}})})),vg=__commonJSMin(((r,c)=>{var l=_g();c.exports=Marionette.CompositeView.extend({template:`#tmpl-elementor-panel-categories`,childView:l,childViewContainer:`#elementor-panel-categories`,id:`elementor-panel-elements-categories`,initialize:function initialize(){this.listenTo(elementor.channels.panelElements,`filter:change`,this.onPanelElementsFilterChange)},onPanelElementsFilterChange:function onPanelElementsFilterChange(){elementor.channels.panelElements.request(`filter:value`)&&elementor.getPanelView().getCurrentPageView().showView(`elements`)}})})),yg,bg=__esmMin((()=>{b(),w(),yg=function(){function LocalizedValueStore(){_classCallCheck(this,LocalizedValueStore),this.store=[]}return _createClass(LocalizedValueStore,[{key:`appendAndParseLocalizedData`,value:function appendAndParseLocalizedData(r){return this.isPaste(r)?this.resetStore():this.isInputValueShorterThanStoreLength(r)?this.rebuildStore(r):(this.isLetter(r)||this.isSpace(r))&&this.addCharToStore(r),this.store.map(function(r){return r.localized}).join(``)}},{key:`resetStore`,value:function resetStore(){this.store=[]}},{key:`isPaste`,value:function isPaste(r){var c=`insertFromPaste`,l=`KeyV`,u=c===r.originalEvent.inputType,p=r.code===l&&r.ctrlKey;return u||p}},{key:`isInputValueShorterThanStoreLength`,value:function isInputValueShorterThanStoreLength(r){var c;return((c=r.target.value)==null?void 0:c.length)<this.store.length}},{key:`addCharToStore`,value:function addCharToStore(r){var c=String.fromCharCode(r.keyCode);this.localizationRequired(c,r)||(c=r.originalEvent.key),this.store.push({original:r.originalEvent.key,localized:c})}},{key:`localizationRequired`,value:function localizationRequired(r,c){return r.toLowerCase()!==c.originalEvent.key.toLowerCase()}},{key:`isSpace`,value:function isSpace(r){return r.keyCode===32||r.originalEvent.data===` `}},{key:`isLetter`,value:function isLetter(r){return r.keyCode>=65&&r.keyCode<=90}},{key:`rebuildStore`,value:function rebuildStore(r){var c=this,l=r.target.value.split(``);this.store=l.map(function(r){return c.buildLocalizationElement(r)})}},{key:`buildLocalizationElement`,value:function buildLocalizationElement(r){return{original:r,localized:this.store.find(function(c){return c.original===r}).localized}}}])}()})),xg=__commonJSMin(((r,c)=>{bg(),kn();var l=2e3;c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-panel-element-search`,localizedValue:``,localizedValueStore:new yg,debouncedTrackSearch:null,tagName:`search`,id:`elementor-panel-elements-search-wrapper`,ui:{input:`input`},events:{"keydown @ui.input":`onInputChanged`,"input @ui.input":`onInputChanged`},initialize:function initialize(){this.debouncedTrackSearch=On(l)},clearInput:function clearInput(){this.ui.input.val(``)},getVisibleWidgetsCount:function getVisibleWidgetsCount(){return jQuery(`#elementor-panel-elements`).find(`.elementor-element:visible`).length},trackWidgetSearch:function trackWidgetSearch(){var r=this,c=this.ui.input.val();c&&setTimeout(function(){var l=r.getVisibleWidgetsCount();r.debouncedTrackSearch(l,c)},100)},onInputChanged:function onInputChanged(r){r.keyCode===27&&this.clearInput(),this.localizedValue=this.localizedValueStore.appendAndParseLocalizedData(r),elementor.channels.panelElements.reply(`filter:localized`,this.localizedValue),this.triggerMethod(`search:change:input`),this.trackWidgetSearch()},onDestroy:function onDestroy(){var r;(r=this.debouncedTrackSearch)!=null&&r.cancel&&this.debouncedTrackSearch.cancel()}})})),Sg=__commonJSMin(((r,c)=>{x(),P(),M(),fg();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}var l=mg(),u=hg(),p=vg(),m=elementor.modules.layouts.panel.pages.elements.views.Elements,h=ch(),g=xg(),v=gg(),y;function elementorIsAngieIframeInDocument(){return!!document.querySelector(`iframe[src*="angie/"]`)}y=Marionette.LayoutView.extend({template:`#tmpl-elementor-panel-elements`,id:`elementor-panel-page-elements`,options:{autoFocusSearch:!0},regions:{elements:`#elementor-panel-elements-wrapper`,widgetCreation:`#elementor-panel-elements-widget-creation-area`,search:`#elementor-panel-elements-search-area`,notice:`#elementor-panel-elements-notice-area`},regionViews:{},elementsCollection:null,categoriesCollection:null,initialize:function initialize(){this.listenTo(elementor.channels.panelElements,`element:selected`,this.destroy),this.initElementsCollection(),this.initCategoriesCollection(),this.initRegionViews()},initRegionViews:function initRegionViews(){var r={elements:{region:this.elements,view:m,options:{collection:this.elementsCollection}},categories:{region:this.elements,view:p,options:{collection:this.categoriesCollection}},search:{region:this.search,view:g},global:{region:this.elements,view:h}};this.regionViews=elementor.hooks.applyFilters(`panel/elements/regionViews`,r,{notice:this.notice,elements:this.elements,search:this.search})},initElementsCollection:function initElementsCollection(){var r=this,c=new u;if(Object.entries(elementor.widgetsCache).forEach(function(r){var c=_slicedToArray(r,2),l=c[0],u=c[1];u.deprecation&&elementor.widgetsCache[u.deprecation.replacement]&&(elementor.widgetsCache[l].show_in_panel=!1)}),_.each(elementor.widgetsCache,function(l){elementor.config.document.panel.widgets_settings[l.widget_type]&&(l=_.extend(l,elementor.config.document.panel.widgets_settings[l.widget_type])),r.shouldAddWidget(l)&&c.add(r.getCollectionItem(l))}),jQuery.each(elementor.config.promotionWidgets,function(r,l){c.add({name:l.name,title:l.title,icon:l.icon,categories:JSON.parse(l.categories),editable:!1})}),(elementor.config.atomicWidgetPromotions||[]).forEach(function(r){var l=r.type;(r.widgets||[]).forEach(function(r){c.add({name:r.name,title:r.title,icon:r.icon,categories:JSON.parse(r.categories),editable:!1,promotionType:l,widgetType:r.name})})}),elementor.config.integrationWidgets){var l=c.findIndex({widgetType:`image-carousel`})+1;jQuery.each(elementor.config.integrationWidgets,function(r,u){c.add({name:u.name,title:u.title,icon:u.icon,categories:JSON.parse(u.categories),editable:!1,integration:!0,keywords:u.keywords||[]},{at:l})})}elementorCommon.config.experimentalFeatures.container&&jQuery.each(elementor.config.elementsPresets,function(l,u){var p=elementor.widgetsCache[u.replacements.custom.originalWidget];if(p){var m=u.replacements,h=r.deepMerge(p,m);r.shouldAddWidget(h)&&c.add(r.getCollectionItem(h))}}),this.elementsCollection=c},isWidgetNew:__name(function isWidgetNew$1(r){return isWidgetNew(r,elementor.config.version)},`isWidgetNew`),getCollectionItem:function getCollectionItem(r){return{title:r.title,elType:r.elType,categories:r.categories,keywords:r.keywords,icon:r.icon,widgetType:r.widget_type,custom:r.custom,editable:r.editable,hideOnSearch:r.hide_on_search,isNew:this.isWidgetNew(r),atomic:!!r.atomic}},initCategoriesCollection:function initCategoriesCollection(){var r={};this.elementsCollection.each(function(c){_.each(c.get(`categories`),function(l){r[l]||(r[l]=[]),r[l].push(c)})});var c=new l;_.each(elementor.config.document.panel.elements_categories,function(l,u){var p;l.active===void 0&&(l.active=!0),l.icon===void 0&&(l.icon=`font`),c.add({name:u,title:l.title,icon:l.icon,defaultActive:l.active,sort:l.sort,hideIfEmpty:l.hideIfEmpty===void 0||l.hideIfEmpty,items:r[u],promotion:(p=l.promotion)==null?null:p})}),this.categoriesCollection=c},shouldAddWidget:function shouldAddWidget(r){var c=elementorCommon.config.experimentalFeatures.container;return r.show_in_panel&&(r.name!==`inner-section`||!c)},deepMerge:function deepMerge(r,c){var l=_objectSpread({},r);for(var u in c)this.deepMergeKey(l,r,c,u);return l},deepMergeKey:function deepMergeKey(r,c,l,u){l.hasOwnProperty(u)&&(_typeof(l[u])===`object`&&l[u]!==null&&c.hasOwnProperty(u)&&_typeof(c[u])===`object`&&c[u]!==null?r[u]=this.deepMerge(c[u],l[u]):r[u]=l[u])},showView:function showView(r){if($e.components.get(`document/elements`).utils.allowAddingWidgets()){var c=this.regionViews[r],l=c.options||{};c.region.show(new c.view(l)),r===`elements`&&this.appendStickyPromotion()}},appendStickyPromotion:function appendStickyPromotion(){if(!this.$(`#elementor-panel-get-pro-elements-sticky`).length){var r=Marionette.Renderer.render(`#tmpl-elementor-panel-element-sticky-promotion`,{}).trim();r&&this.$el.append(r)}},clearSearchInput:function clearSearchInput(){this.getChildView(`search`).clearInput()},changeFilter:function changeFilter(r){elementor.channels.panelElements.reply(`filter:value`,r).trigger(`filter:change`)},clearFilters:function clearFilters(){this.changeFilter(null),this.clearSearchInput()},focusSearch:function focusSearch(){!elementor.userCan(`design`)||!this.search||!this.search.currentView||this.search.currentView.ui.input.trigger(`focus`)},onChildviewChildrenRender:function onChildviewChildrenRender(){this.updateWidgetCreation(),elementor.getPanelView().updateScrollbar()},onChildviewSearchChangeInput:function onChildviewSearchChangeInput(r){this.changeFilter(r.ui.input.val(),`search`)},updateWidgetCreation:function updateWidgetCreation(){var r=elementor.channels.panelElements.request(`filter:value`);if(!r){this.widgetCreation.empty();return}var c=elementorIsAngieIframeInDocument(),l=elementor.config.user.is_administrator;if(!c&&!l){this.widgetCreation.empty();return}var u=this.elements.currentView;if(!u||!(u instanceof m)){this.widgetCreation.empty();return}var p=new v({emptyResults:u.children.length===0,searchTerm:r});if(!p.hasTemplate()){this.widgetCreation.empty();return}this.widgetCreation.show(p)},onDestroy:function onDestroy(){elementor.channels.panelElements.reply(`filter:value`,null)},onShow:function onShow(){this.showView(`search`),this.options.autoFocusSearch&&setTimeout(this.focusSearch.bind(this))}}),c.exports=y})),Cg=__commonJSMin(((r,c)=>{var l=elementorModules.editor.views.ControlsStack;c.exports=l.extend({template:Marionette.TemplateCache.get(`#tmpl-editor-content`),id:`elementor-panel-page-editor`,childViewContainer:`#elementor-controls`,childViewOptions:function childViewOptions(){return{element:this.getOption(`editedElementView`),container:this.getOption(`editedElementView`).getContainer(),elementSettingsModel:this.model.get(`settings`),elementEditSettings:this.model.get(`editSettings`)}},getNamespaceArray:function getNamespaceArray(){var r=elementorModules.editor.views.ControlsStack.prototype.getNamespaceArray(),c=this.getOption(`editedElementView`).getEditModel(),l=c.get(`elType`);return r.push(l),l===`widget`&&r.push(c.get(`widgetType`)),r},initialize:function initialize(){l.prototype.initialize.apply(this,arguments);var r=this.model.get(`editSettings`);if(r){var c=r.get(`panel`);c&&(this.activeTab=c.activeTab,this.activeSection=c.activeSection)}},activateSection:function activateSection(){return l.prototype.activateSection.apply(this,arguments),this.model.get(`editSettings`).set(`panel`,{activeTab:this.activeTab,activeSection:this.activeSection}),this},openActiveSection:function openActiveSection(){l.prototype.openActiveSection.apply(this,arguments),elementor.channels.editor.trigger(`section:activated`,this.activeSection,this)},isVisibleSectionControl:function isVisibleSectionControl(r){return l.prototype.isVisibleSectionControl.apply(this,arguments)&&elementor.helpers.isActiveControl(r,this.model.get(`settings`).attributes,this.model.get(`settings`).controls)},scrollToEditedElement:function scrollToEditedElement(){elementor.helpers.scrollToView(this.getOption(`editedElementView`).$el)},onDestroy:function onDestroy(){this.model.trigger(`editor:close`),this.triggerMethod(`editor:destroy`)},onDeviceModeChange:function onDeviceModeChange(){l.prototype.onDeviceModeChange.apply(this,arguments),this.scrollToEditedElement()},onChildviewSettingsChange:function onChildviewSettingsChange(r){var c=this.getOption(`editedElementView`),l=c.model.get(`elType`);l===`widget`&&(l=c.model.get(`widgetType`)),elementor.channels.editor.trigger(`change`,r,c).trigger(`change:`+l,r,c).trigger(`change:`+l+`:`+r.model.get(`name`),r,c)}})})),wg=__commonJSMin(((r,c)=>{c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-panel-header`,id:`elementor-panel-header`,ui:{menuButton:`#elementor-panel-header-menu-button`,menuIcon:`#elementor-panel-header-menu-button i`,title:`#elementor-panel-header-title`,addButton:`#elementor-panel-header-add-button`},events:{"click @ui.addButton":`onClickAdd`,"click @ui.menuButton":`onClickMenu`},behaviors:function behaviors(){return elementor.hooks.applyFilters(`panel/header/behaviors`,{},this)},setTitle:function setTitle(r){this.ui.title.html(r)},onClickAdd:function onClickAdd(){$e.route(`panel/elements/categories`)},onClickMenu:function onClickMenu(){$e.routes.is(`panel/menu`)?$e.route(`panel/elements/categories`):$e.route(`panel/menu`)}})})),Tg=__commonJSMin(((r,c)=>{var l=Marionette.Behavior.extend({ui:function ui(){return{buttonPreview:`.elementor-panel-footer-back-compat-preview`}},onRender:function onRender(){var r=this;this.ui.buttonPreview.tipsy||(this.ui.buttonPreview.tipsy=function(){return r.ui.buttonPreview})}});c.exports=Marionette.ItemView.extend({template:`#tmpl-elementor-panel-footer-back-compat`,className:`elementor-panel-footer-back-compat`,attributes:{"aria-hidden":`true`},ui:{},initialize:function initialize(){this.ui=this.ui||{}},behaviors:function behaviors(){return{saver:{behaviorClass:l}}},onRender:function onRender(){var r,c,l=Object.keys(this.behaviors()).indexOf(`saver`),u=(r=this._behaviors)==null?void 0:r[l];u!=null&&(c=u.ui)!=null&&(c=c.buttonPreview)!=null&&c.length&&!u.ui.buttonPreview.tipsy&&(u.ui.buttonPreview.tipsy=function(){return u.ui.buttonPreview})},addSubMenuItem:function addSubMenuItem(r,c){var l=jQuery(`<div>`,{id:`elementor-panel-footer-sub-menu-item-`+c.name,class:`elementor-panel-footer-sub-menu-item`});return c.callback&&l.on(`click`,c.callback),l},removeSubMenuItem:function removeSubMenuItem(r,c){return jQuery(`#elementor-panel-footer-sub-menu-item-`+c.name).remove()}})})),Eg=__commonJSMin(((r,c)=>{ng(),ig(),ug(),Np();var l=dg();c.exports=Marionette.LayoutView.extend({template:`#tmpl-elementor-panel`,id:`elementor-panel-inner`,regions:{content:`#elementor-panel-content-wrapper`,header:`#elementor-panel-header-wrapper`,footer:`#elementor-panel-footer`,modeSwitcher:`#elementor-mode-switcher`},pages:{},events:{keydown:`onKeyDown`},childEvents:{"click:add":function clickAdd(){$e.route(`panel/elements/categories`)},"editor:destroy":function editorDestroy(){$e.route(`panel/elements/categories`,{autoFocusSearch:!1})}},currentPageName:null,currentPageView:null,perfectScrollbar:null,initialize:function initialize(){$e.components.register(new tg({manager:this})),$e.internal(`panel/state-loading`),$e.components.register(new rg({manager:this})),$e.components.register(new lg({manager:this})),this.initPages()},buildPages:function buildPages(){return{elements:{view:Sg(),title:`<img src="`+elementorCommon.config.urls.assets+`images/logo-panel.svg">`},editor:{view:Cg()},menu:{view:elementor.modules.layouts.panel.pages.menu.Menu,title:`<img src="`+elementorCommon.config.urls.assets+`images/logo-panel.svg">`}}},initPages:function initPages(){var r;this.getPages=function(c){return r||(r=this.buildPages()),c?r[c]:r},this.addPage=function(c,l){r||(r=this.buildPages()),r[c]=l}},getHeaderView:function getHeaderView(){return this.getChildView(`header`)},getCurrentPageName:function getCurrentPageName(){return this.currentPageName},getCurrentPageView:function getCurrentPageView(){return this.currentPageView},setPage:function setPage(r,c,l){var u=this.getPages();r===`elements`&&!elementor.userCan(`design`)&&u.page_settings&&(r=`page_settings`);var p=u[r];if(!p)throw ReferenceError(`Elementor panel doesn't have page named '`+r+`'`);p.options&&(l=_.extend(p.options,l));var m=p.view;return p.getView&&(m=p.getView()),this.currentPageName=r,this.currentPageView=new m(l),this.showChildView(`content`,this.currentPageView),this.getHeaderView().setTitle(c||p.title),this.trigger(`set:page`,this.currentPageView).trigger(`set:page:`+r,this.currentPageView),elementor.promotion.dialog&&elementor.promotion.dialog.hide(),this.currentPageView},onKeyDown:function onKeyDown(r){escapeFromPanelField(r,this.el)},onBeforeShow:function onBeforeShow(){var r=wg(),c=Tg();this.showChildView(`modeSwitcher`,new l),this.showChildView(`header`,new r),this.showChildView(`footer`,new c),this.updateScrollbar=_.throttle(this.updateScrollbar,100),this.getRegion(`content`).on(`before:show`,this.onEditorBeforeShow.bind(this)).on(`empty`,this.onEditorEmpty.bind(this)).on(`show`,this.updateScrollbar.bind(this))},onEditorBeforeShow:function onEditorBeforeShow(){_.defer(this.updateScrollbar.bind(this))},onEditorEmpty:function onEditorEmpty(){this.updateScrollbar()},updateScrollbar:function updateScrollbar(){if(!this.perfectScrollbar){this.perfectScrollbar=new PerfectScrollbar(this.content.el,{suppressScrollX:!0}),this.perfectScrollbar.isRtl=!1;return}this.perfectScrollbar.update()}})})),Dg=__commonJSMin(((r,c)=>{var l=xl();c.exports=l.extend({el:`#elementor-panel`,getStorageKey:function getStorageKey(){return`panel`},getDefaultStorage:function getDefaultStorage(){return{size:{width:``}}},constructor:function constructor(){l.prototype.constructor.apply(this,arguments);var r=Eg();this.show(new r),this.resizable(),this.setSize(),this.listenTo(elementor.channels.dataEditMode,`switch`,this.onEditModeSwitched)},setSize:function setSize(){var r=this.storage.size.width;elementorCommon.elements.$body.css(`--e-editor-panel-width`,r)},resizable:function resizable(){var r=this;r.$el.resizable({handles:elementorCommon.config.isRTL?`w`:`e`,minWidth:250,maxWidth:680,start:function start(){elementor.$previewWrapper.addClass(`ui-resizable-resizing`)},stop:function stop(c,l){elementor.$previewWrapper.removeClass(`ui-resizable-resizing`),elementor.getPanelView().updateScrollbar(),r.saveSize({width:l.size.width+`px`})},resize:function resize(c,l){elementorCommon.elements.$body.css(`--e-editor-panel-width`,l.size.width+`px`),r.$el.css({width:``,left:``})}})},onEditModeSwitched:function onEditModeSwitched(r){r===`edit`&&this.setSize()}})}));M(),x(),N(),b(),w(),E(),D(),A(),P(),Kt(),Jt();function ownKeys(r,c){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);c&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(r,c).enumerable})),l.push.apply(l,u)}return l}function _objectSpread(r){for(var c=1;c<arguments.length;c++){var l=arguments[c]==null?{}:arguments[c];c%2?ownKeys(Object(l),!0).forEach(function(c){_defineProperty(r,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):ownKeys(Object(l)).forEach(function(c){Object.defineProperty(r,c,Object.getOwnPropertyDescriptor(l,c))})}return r}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 Og=function(c){function EditorBase(){var r;_classCallCheck(this,EditorBase);for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return r=_callSuper$1(this,EditorBase,[].concat(l)),_defineProperty(r,`widgetsCache`,{}),_defineProperty(r,`config`,{}),_defineProperty(r,`loaded`,!1),_defineProperty(r,`previewLoadedOnce`,!1),_defineProperty(r,`activeBreakpointsUpdated`,!1),_defineProperty(r,`helpers`,lp()),_defineProperty(r,`imagesManager`,up()),_defineProperty(r,`presetsFactory`,dp()),_defineProperty(r,`templates`,km()),_defineProperty(r,`ajax`,elementorCommon.ajax),_defineProperty(r,`conditions`,new Ud),_defineProperty(r,`history`,($o(),__toCommonJS(Zo))),_defineProperty(r,`hints`,new lf),_defineProperty(r,`channels`,{editor:Backbone.Radio.channel(`ELEMENTOR:editor`),data:Backbone.Radio.channel(`ELEMENTOR:data`),panelElements:Backbone.Radio.channel(`ELEMENTOR:panelElements`),dataEditMode:Backbone.Radio.channel(`ELEMENTOR:editmode`),deviceMode:Backbone.Radio.channel(`ELEMENTOR:deviceMode`),templates:Backbone.Radio.channel(`ELEMENTOR:templates`),responsivePreview:Backbone.Radio.channel(`ELEMENTOR:responsivePreview`)}),_defineProperty(r,`backgroundClickListeners`,{tooltip:{element:`.dialog-tooltip-widget`,ignore:`.dialog-widget, .elementor-controls-popover, .pcr-selection`},popover:{element:`.elementor-controls-popover`,ignore:`.elementor-control-popover-toggle-toggle, .elementor-control-popover-toggle-toggle-label, .select2-container, .pcr-app, .dialog-tooltip-widget`},globalControlsSelect:{element:`.e-global__popover`,ignore:`.e-global__popover-toggle`},tagsList:{element:`.elementor-tags-list`,ignore:`.elementor-control-dynamic-switcher`},panelResponsiveSwitchers:{element:`.elementor-control-responsive-switchers`,callback:function callback(r){r.removeClass(`elementor-responsive-switchers-open`)}},panelUnitControlSwitchers:{element:`.e-units-choices`,callback:function callback(r){r.removeClass(`e-units-choices-open`)}},promotion:{ignore:`.elementor-responsive-panel`,callback:function callback(){var r=elementor.promotion.dialog;r&&r.hide()}}}),_defineProperty(r,`modules`,{get Module(){return elementorDevTools.deprecation.deprecated(`elementor.modules.Module`,`2.3.0`,`elementorModules.Module`),elementorModules.Module},components:{templateLibrary:{views:{get BaseModalLayout(){return elementorDevTools.deprecation.deprecated(`elementor.modules.components.templateLibrary.views.BaseModalLayout`,`2.4.0`,`elementorModules.common.views.modal.Layout`),elementorModules.common.views.modal.Layout}}},saver:{behaviors:{FooterSaver:ud()}}},saver:{get footerBehavior(){return elementorDevTools.deprecation.deprecated(`elementor.modules.saver.footerBehavior.`,`2.9.0`,`elementor.modules.components.saver.behaviors.FooterSaver`),elementor.modules.components.saver.behaviors.FooterSaver}},controls:{Animation:Am(),Base:Se(),BaseData:z(),BaseMultiple:jm(),Box_shadow:Mm(),Button:Nm(),Choose:Ol(),Visual_choice:Pm(),Code:Fm(),Color:Ae,Date_time:je,Dimensions:Hm(),Exit_animation:Am(),Font:Um(),Gaps:Wm(),Gallery:Gm(),Hidden:Km(),Hover_animation:Am(),Icon:qm(),Icons:Jm(),Image_dimensions:Ym(),Media:Xm(),Notice:Zm(),Number:Qm(),Popover_toggle:jl,Repeater:Gc(),RepeaterRow:Wc(),Section:$m(),Select:eh(),Select2:Am(),Slider:th(),Structure:nh(),Switcher:rh(),Tab:ih(),Text_shadow:Mm(),Url:ah(),Wp_widget:oh(),Wysiwyg:sh()},elements:{types:_objectSpread({Base:qt},hr),models:{get BaseSettings(){return elementorDevTools.deprecation.deprecated(`elementor.modules.elements.models.BaseSettings`,`2.4.0`,`elementorModules.editor.elements.models.BaseSettings`),elementorModules.editor.elements.models.BaseSettings},Element:tn()},views:{BaseElement:Wn(),BaseWidget:ur(),Widget:fr()},components:{AddSectionView:(In(),__toCommonJS(Pn)).default}},layouts:{panel:{pages:{elements:{views:{Global:ch(),Elements:uh()}},menu:{Menu:Y}}}},views:{get ControlsStack(){return elementorDevTools.deprecation.deprecated(`elementor.modules.views.ControlsStack`,`2.4.0`,`elementorModules.editor.views.ControlsStack`),elementorModules.editor.views.ControlsStack}}}),r}return _inherits(EditorBase,c),_createClass(EditorBase,[{key:`debug`,get:function get(){return elementorDevTools.deprecation.deprecated(`elementor.debug`,`3.0.0`,`elementorCommon.debug`),elementorCommon.debug}},{key:`userCan`,value:function userCan(r){return this.config.user.restrictions.indexOf(r)===-1}},{key:`addControlView`,value:function addControlView(r,c){this.modules.controls[elementorCommon.helpers.upperCaseWords(r)]=c}},{key:`checkEnvCompatibility`,value:function checkEnvCompatibility(){return Gt.firefox||Gt.webkit}},{key:`getElementData`,value:function getElementData(c){var l=c.get(`elType`);if(l===`widget`){var u=c.get(`widgetType`);if(!this.widgetsCache[u])return!1;if(!this.widgetsCache[u].commonMerged&&!this.widgetsCache[u].atomic_controls){var p,m=this.widgetsCache.common.controls;if(m=elementor.hooks.applyFilters(`elements/widget/controls/common/default`,m,u),jQuery.extend(this.widgetsCache[u].controls,m),!this.widgetsCache[u].has_widget_inner_wrapper&&elementorCommon.config.experimentalFeatures.e_optimized_markup){var h=this.widgetsCache[`common-optimized`].controls;h=elementor.hooks.applyFilters(`elements/widget/controls/common-optimized/default`,h,u),jQuery.extend(this.widgetsCache[u].controls,h)}if(this.widgetsCache[u].controls=elementor.hooks.applyFilters(`elements/widget/controls/common`,this.widgetsCache[u].controls,u,this.widgetsCache[u]),(p=this.widgetsCache[u].controls)!=null&&p._element_cache){var g,v=(0,r.__)(`The default cache status for this element:`,`elementor`);v+=` <strong>`,(g=this.widgetsCache[u])!=null&&g.is_dynamic_content?v+=(0,r.__)(`Inactive`,`elementor`):v+=(0,r.__)(`Active`,`elementor`),v+=`</strong><br />`,v+=(0,r.__)(`Activating cache improves loading times by storing a static version of this element.`,`elementor`),v+=` <a href="https://go.elementor.com/element-caching-help/" target="_blank">`+(0,r.__)(`Learn more`,`elementor`)+`</a>.`,this.widgetsCache[u].controls._element_cache.description=v}this.widgetsCache[u].commonMerged=!0}return this.widgetsCache[u]}if(!this.config.elements[l])return!1;var y=structuredClone(this.config.elements[l]);return l===`section`&&c.get(`isInner`)&&(y.title=(0,r.__)(`Inner Section`,`elementor`)),y}},{key:`getElementControls`,value:function getElementControls(r){var c=this.getElementData(r);if(!c)return!1;var l=r.get(`isInner`),u={};return _.each(c.controls,function(r,c){l&&r.hide_in_inner||!l&&r.hide_in_top||(u[c]=r)}),u}},{key:`mergeControlsSettings`,value:function mergeControlsSettings(r){var c=this;return _.each(r,function(l,u){r[u]=jQuery.extend(!0,{},c.config.controls[l.type],l)}),r}},{key:`getControlView`,value:function getControlView(r){var c=elementorCommon.helpers.upperCaseWords(r),l=this.modules.controls[c];if(!l){var u=this.config.controls[r],p=u&&u.features.indexOf(`ui`)!==-1;l=this.modules.controls[p?`Base`:`BaseData`]}return l}},{key:`getPanelView`,value:function getPanelView(){return this.panel.currentView}},{key:`getPreviewView`,value:function getPreviewView(){return this.previewView}},{key:`getPreviewContainer`,value:function getPreviewContainer(){var r;return(r=this.getPreviewView())==null?void 0:r.getContainer()}},{key:`getContainer`,value:function getContainer(r){return r===`document`?this.getPreviewContainer():$e.components.get(`document`).utils.findContainerById(r)}},{key:`getContainerByKeyValue`,value:function getContainerByKeyValue(r){var c,l,u=r.key,p=r.value,m=r.parent,h=m===void 0?this.getPreviewView():m;if(this.getPreviewContainer().model.get(u)===p)return this.getPreviewContainer();var g=$e.components.get(`document`).utils.findViewRecursive(h.children,u,p,!1);return(c=g==null||(l=g[0])==null?void 0:l.getContainer())==null?null:c}},{key:`initComponents`,value:function initComponents(){var r=dh(),c=ph(),l=wh(),u=Th();this.elementsManager=new $a,this.hooks=new r,this.selection=new Ml,this.settings=new l,this.dynamicTags=new c,this.initDialogsManager(),this.notifications=new u,this.kitManager=new ll,this.hotkeysScreen=new ps,this.iconManager=new Ds,this.noticeBar=new Cl,this.favorites=new go,this.history=new Qo,this.promotion=new _c,this.browserImport=new cc,this.introductionTooltips=new ro,this.editorEvents=elementorCommon.eventsManager,this.documents=$e.components.register(new Pt),elementorCommon.config.experimentalFeatures[`landing-pages`]&&(this.modules.landingLibraryPageModule=new Ll),elementorCommon.config.experimentalFeatures.container&&(this.modules.floatingButtonsLibraryModule=new rf),this.modules.linkInBioLibraryModule=new of,this.modules.floatingBarsLibraryModule=new af,this.modules.elementsColorPicker=new $l,this.modules.promotionModule=new Jd,this.modules.cloudLibraryModule=new cf,$e.components.register(new Vd),$e.components.register(new kd),$e.components.register(new fc),elementor.saver=$e.components.get(`document/save`),new uf,tu.dispatch(elementorCommon.elements.$window,`elementor/init-components`,null,`elementor:init-components`)}},{key:`toggleSortableState`,value:function toggleSortableState(){for(var r,c=this,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,u=[jQuery(`#elementor-navigator`),(r=elementor.documents.getCurrent())==null?void 0:r.$element],p=0,m=u;p<m.length;p++){var h=m[p];h&&h.find(`.ui-sortable`).each(function(){var r=jQuery(c);r.sortable(`instance`)&&r.sortable(l?`enable`:`disable`)})}}},{key:`initDialogsManager`,value:function initDialogsManager(){this.dialogsManager=elementorCommon.dialogsManager}},{key:`initElements`,value:function initElements(){var r=this.config.document.elements;this.elements&&this.elements.length&&this.config.document.id===this.config.initial_document.id&&(r=this.elements.toJSON()),this.elements=this.createBackboneElementsCollection(r),this.elementsModel=this.createBackboneElementsModel(this.elements)}},{key:`createBackboneElementsCollection`,value:function createBackboneElementsCollection(r){return new(en())(r)}},{key:`createBackboneElementsModel`,value:function createBackboneElementsModel(r){return new Backbone.Model({elements:r})}},{key:`initPreview`,value:function initPreview(){var c=jQuery,l=`elementor-preview-iframe`;this.$previewWrapper=c(`#elementor-preview`),this.$previewResponsiveWrapper=c(`#elementor-preview-responsive-wrapper`),this.$preview||(this.$preview=c(`<iframe>`,{id:l,src:this.config.initial_document.urls.preview,title:(0,r.__)(`Preview`,`elementor`),allowfullscreen:1}),this.$previewResponsiveWrapper.append(this.$preview)),this.$preview.on(`load`,this.onPreviewLoaded.bind(this))}},{key:`initPreviewView`,value:function initPreviewView(r){elementor.trigger(`document:before:preview`,r),this.previewView=this.createPreviewView(r.$element[0],elementor.elementsModel),this.renderPreview(this.previewView)}},{key:`createPreviewView`,value:function createPreviewView(r,c){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=new kl.default({el:r,model:c});return u.setConfig(l),u.$el.empty(),u}},{key:`renderPreview`,value:function renderPreview(r){r.isRendered=!0,r._renderChildren(),r.triggerMethod(`render`)}},{key:`initFrontend`,value:function initFrontend(){var r=this.$preview[0].contentWindow;window.elementorFrontend=r.elementorFrontend,r.elementor=this,r.elementorCommon=elementorCommon,elementorFrontend.init(),this.trigger(`frontend:init`)}},{key:`initClearPageDialog`,value:function initClearPageDialog(){var c;this.getClearPageDialog=function(){return c||(c=elementorCommon.dialogsManager.createWidget(`confirm`,{id:`elementor-clear-page-dialog`,headerMessage:(0,r.__)(`Delete All Content`,`elementor`),message:(0,r.__)(`Attention: We are going to DELETE ALL CONTENT from this page. Are you sure you want to do that?`,`elementor`),position:{my:`center center`,at:`center center`},strings:{confirm:(0,r.__)(`Delete`,`elementor`),cancel:(0,r.__)(`Cancel`,`elementor`)},onConfirm:function onConfirm(){return $e.run(`document/elements/empty`,{force:!0})}}),c)}}},{key:`getCurrentElement`,value:function getCurrentElement(){if([`BODY`,`IFRAME`].indexOf(document.activeElement.tagName)===-1||elementorFrontend.elements.window.document.activeElement.tagName!==`BODY`)return!1;var r=elementor.channels.editor.request(`contextMenu:targetView`);if(!r){var c=elementor.getPanelView();$e.routes.isPartOf(`panel/editor`)&&(r=c.getCurrentPageView().getOption(`editedElementView`))}return r||(r=elementor.getPreviewView()),r}},{key:`initPanel`,value:function initPanel(){this.addRegions({panel:Dg()}),window.dispatchEvent(new CustomEvent(`elementor/panel/init`)),this.trigger(`panel:init`)}},{key:`initNavigator`,value:function initNavigator(){$e.components.get(`document/elements`).utils.showNavigator()&&(this.addRegions({navigator:{el:`#elementor-navigator`,regionClass:Sl}}),this.trigger(`navigator:init`))}},{key:`setAjax`,value:function setAjax(){elementorCommon.ajax.addRequestConstant(`editor_post_id`,this.config.document.id),elementorCommon.ajax.addRequestConstant(`initial_document_id`,this.config.initial_document.id),elementorCommon.ajax.on(`request:unhandledError`,function(r){elementor.notifications.showToast({message:elementor.createAjaxErrorMessage(r)})})}},{key:`createAjaxErrorMessage`,value:function createAjaxErrorMessage(c){var l;return c.readyState===4?(l=(0,r.__)(`Server Error`,`elementor`),c.status!==200&&(l+=` (`+c.status+` `+c.statusText+`)`)):l=c.readyState===0?(0,r.__)(`Connection Lost`,`elementor`):(0,r.__)(`Unknown Error`,`elementor`),l+`.`}},{key:`activatePreviewResizable`,value:function activatePreviewResizable(){var r=this.$previewResponsiveWrapper;r.resizable(`instance`)||r.resizable({handles:`e, s, w`,stop:function stop(){r.css({width:``,height:``,left:``,right:``,top:``,bottom:``})},resize:function resize(c,l){r.css({right:`0`,left:`0`,top:`0`,bottom:`0`});var u=r[0].style;u.setProperty(`--e-editor-preview-width`,l.size.width+`px`),u.setProperty(`--e-editor-preview-height`,l.size.height+`px`)}})}},{key:`destroyPreviewResizable`,value:function destroyPreviewResizable(){this.$previewResponsiveWrapper.resizable(`instance`)&&this.$previewResponsiveWrapper.resizable(`destroy`)}},{key:`broadcastPreviewResize`,value:function broadcastPreviewResize(){this.channels.responsivePreview.reply(`size`,{width:this.$preview.innerWidth(),height:this.$preview.innerHeight()}).trigger(`resize`)}},{key:`getCurrentDeviceConstrains`,value:function getCurrentDeviceConstrains(){var r=elementor.channels.deviceMode.request(`currentMode`),c=elementorFrontend.config.responsive.activeBreakpoints[r],l=r===`widescreen`?9999:c.value,u=this.breakpoints.getDeviceMinBreakpoint(r);return u>c.value&&(u=c.value),{maxWidth:l,minWidth:u}}},{key:`getBreakpointResizeOptions`,value:function getBreakpointResizeOptions(r){var c=elementor.$previewWrapper.height(),l={mobile:{minHeight:480,height:736,width:360,maxHeight:896},mobile_extra:{minHeight:480,height:736,maxHeight:896},tablet:{minHeight:320,height:c,maxHeight:1024},tablet_extra:{minHeight:320,height:c,maxHeight:1024},laptop:{minHeight:320,height:c,maxHeight:1024},widescreen:{minHeight:320,height:c,maxHeight:1200}},u=this.getCurrentDeviceConstrains();return l[r]&&(u=_objectSpread(_objectSpread({},u),l[r])),u}},{key:`updatePreviewResizeOptions`,value:function updatePreviewResizeOptions(){var r=arguments.length>0&&arguments[0]!==void 0&&arguments[0],c=this.$previewResponsiveWrapper,l=elementor.channels.deviceMode.request(`currentMode`);if(l===`desktop`){this.destroyPreviewResizable();var u=c[0].style;u.setProperty(`--e-editor-preview-width`,``),u.setProperty(`--e-editor-preview-height`,``)}else{var p;this.activatePreviewResizable();var m=this.getBreakpointResizeOptions(l),h=(p=m.width)==null?m.minWidth:p;if(r){var g=elementor.channels.responsivePreview.request(`size`);g.width>m.maxWidth?h=m.maxWidth:g.width>=m.minWidth&&(h=g.width)}c.resizable(`option`,_objectSpread({},m));var v=c[0].style;v.setProperty(`--e-editor-preview-width`,h+`px`),v.setProperty(`--e-editor-preview-height`,m.height+`px`)}}},{key:`preventClicksInsideEditor`,value:function preventClicksInsideEditor(){this.$previewContents.on(`submit`,function(r){return r.preventDefault()}),this.$previewContents.on(`click`,function(r){var c,l=jQuery(r.target),u=!!l.closest(`.elementor-edit-area, .pen-menu`).length,p=this.contains(l[0]);l.closest(`a:not(.elementor-clickable)`).length&&r.preventDefault(),!(u&&elementor.getPreviewContainer().isEditable()||!p)&&!u&&(c=elementor.documents.getCurrent())!=null&&c.$element&&$e.run(`document/elements/deselect-all`)})}},{key:`addBackgroundClickArea`,value:function addBackgroundClickArea(r){r.addEventListener(`click`,this.onBackgroundClick.bind(this),!0)}},{key:`addBackgroundClickListener`,value:function addBackgroundClickListener(r,c){this.backgroundClickListeners[r]=c}},{key:`removeBackgroundClickListener`,value:function removeBackgroundClickListener(r){delete this.backgroundClickListeners[r]}},{key:`showFatalErrorDialog`,value:function showFatalErrorDialog(c){var l={id:`elementor-fatal-error-dialog`,headerMessage:``,message:``,position:{my:`center center`,at:`center center`},strings:{confirm:(0,r.__)(`Learn More`,`elementor`),cancel:(0,r.__)(`Go Back`,`elementor`)},onConfirm:null,onCancel:function onCancel(){return parent.history.go(-1)},hide:{onBackgroundClick:!1,onButtonClick:!1}};c=jQuery.extend(!0,l,c),elementorCommon.dialogsManager.createWidget(`confirm`,c).show()}},{key:`showFlexBoxAttentionDialog`,value:function showFlexBoxAttentionDialog(){var c=this,l=new elementorModules.editor.utils.Introduction({introductionKey:`flexbox`,dialogType:`confirm`,dialogOptions:{id:`elementor-flexbox-attention-dialog`,headerMessage:(0,r.__)(`Note: Flexbox Changes`,`elementor`),message:(0,r.__)(`Elementor 2.5 introduces key changes to the layout using CSS Flexbox. Your existing pages might have been affected, please review your page before publishing.`,`elementor`),position:{my:`center center`,at:`center center`},strings:{confirm:(0,r.__)(`Learn More`,`elementor`),cancel:(0,r.__)(`Got It`,`elementor`)},hide:{onButtonClick:!1},onCancel:function onCancel(){l.setViewed(),l.getDialog().hide()},onConfirm:function onConfirm(){return open(c.config.help_flexbox_bc_url,`_blank`)}}});l.show()}},{key:`checkPageStatus`,value:function checkPageStatus(){elementor.documents.getCurrent().isDraft()&&this.notifications.showToast({message:(0,r.__)(`This is just a draft. Play around and when you're done - click update.`,`elementor`),buttons:[{name:`view_revisions`,text:(0,r.__)(`View All Revisions`,`elementor`),callback:function callback(){return $e.route(`panel/history/revisions`)}}]})}},{key:`enterDeviceMode`,value:function enterDeviceMode(){var r=this;this.channels.responsivePreview.trigger(`open`),elementorCommon.elements.$body.addClass(`e-is-device-mode`),this.activatePreviewResizable(),this.resizeListenerThrottled=!1,this.broadcastPreviewResize(),elementorFrontend.elements.$window.on(`resize.deviceModeDesktop`,function(){r.resizeListenerThrottled||(r.resizeListenerThrottled=!0,r.broadcastPreviewResize(),setTimeout(function(){r.resizeListenerThrottled=!1,r.broadcastPreviewResize()},300))})}},{key:`exitDeviceMode`,value:function exitDeviceMode(){elementorCommon.elements.$body.removeClass(`e-is-device-mode`),this.destroyPreviewResizable(),elementorCommon.elements.$window.off(`resize.deviceModeDesktop`),this.channels.deviceMode.trigger(`close`)}},{key:`isDeviceModeActive`,value:function isDeviceModeActive(){return elementorCommon.elements.$body.hasClass(`e-is-device-mode`)}},{key:`updatePreviewSize`,value:function updatePreviewSize(r){var c=this.$previewResponsiveWrapper[0].style;c.setProperty(`--e-editor-preview-width`,r.width+`px`),c.setProperty(`--e-editor-preview-height`,r.height+`px`)}},{key:`enterPreviewMode`,value:function enterPreviewMode(r){var c=elementorFrontend.elements.$body;r&&(c=c.add(elementorCommon.elements.$body)),c.removeClass(`elementor-editor-active`).addClass(`elementor-editor-preview`);var l=this.documents.getCurrent().$element;l&&l.removeClass(`elementor-edit-area-active`)}},{key:`exitPreviewMode`,value:function exitPreviewMode(){elementorFrontend.elements.$body.add(elementorCommon.elements.$body).removeClass(`elementor-editor-preview`).addClass(`elementor-editor-active`),elementor.config.document.panel.has_elements&&this.documents.getCurrent().$element.addClass(`elementor-edit-area-active`)}},{key:`changeEditMode`,value:function changeEditMode(r){var c=elementor.channels.dataEditMode,l=c.request(`activeMode`);c.reply(`activeMode`,r),r!==l&&c.trigger(`switch`,r)}},{key:`reloadPreview`,value:function reloadPreview(){jQuery(`#elementor-preview-loading`).show(),this.$preview[0].src=this.config.initial_document.urls.preview}},{key:`changeDeviceMode`,value:function changeDeviceMode(r){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,l=this.channels.deviceMode.request(`currentMode`);l!==r&&(elementorCommon.elements.$body.removeClass(`elementor-device-`+l).addClass(`elementor-device-`+r),this.channels.deviceMode.reply(`previousMode`,l).reply(`currentMode`,r).trigger(`change`),this.isDeviceModeActive()&&c?r===`desktop`&&this.exitDeviceMode():r!==`desktop`&&this.enterDeviceMode(),dispatchEvent(new CustomEvent(`elementor/device-mode/change`,{detail:{activeMode:r}})))}},{key:`translate`,value:function translate(r,c,l){return l||(l=this.config.i18n),elementorCommon.translate(r,null,c,l)}},{key:`requestWidgetsConfig`,value:function requestWidgetsConfig(){var r=this,c={};jQuery.each(this.widgetsCache,function(r,l){l.controls&&(c[r]=!0)}),elementorCommon.ajax.addRequest(`get_widgets_config`,{data:{exclude:c},success:function success(c){r.addWidgetsCache(c),elementor.config.locale!==elementor.config.user.locale&&r.translateControlsDefaults(elementor.config.locale),r.loaded?(r.kitManager.renderGlobalsDefaultCSS(),$e.internal(`panel/state-ready`)):r.once(`panel:init`,function(){$e.internal(`panel/state-ready`)})}})}},{key:`refreshWidgets`,value:function(){var r=_asyncToGenerator(B.default.mark(function _callee(){var r;return B.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=1,elementorCommon.ajax.addRequest(`refresh_widgets_config`);case 1:return r=c.sent,this.widgetsCache={},this.addWidgetsCache(r.widgets),elementor.config.document.panel.elements_categories=r.categories,elementor.config.locale!==elementor.config.user.locale&&this.translateControlsDefaults(elementor.config.locale),this.kitManager.renderGlobalsDefaultCSS(),elementor.hooks.doAction(`elementor/widgets/refreshed`),$e.routes.refreshContainer(`panel`),$e.run(`preview/reload`),c.abrupt(`return`,r);case 2:case`end`:return c.stop()}},_callee,this)}));function refreshWidgets(){return r.apply(this,arguments)}return refreshWidgets}()},{key:`translateControlsDefaults`,value:function translateControlsDefaults(r){var c=this;elementorCommon.ajax.addRequest(`get_widgets_default_value_translations`,{data:{locale:r},success:function success(r){c.addWidgetsCache(r)}},!0)}},{key:`getPreferences`,value:function getPreferences(r){var c=elementor.settings.editorPreferences.model.attributes;return r?c[r]:c}},{key:`getConfig`,value:function getConfig(){return ElementorConfig}},{key:`onStart`,value:function onStart(){var r=this;this.config=this.getConfig(),Backbone.Radio.DEBUG=!1,Backbone.Radio.tuneIn(`ELEMENTOR`),this.populateActiveBreakpointsConfig(),this.breakpoints=new eu(this.config.responsive),elementorCommon.config.experimentalFeatures.additional_custom_breakpoints&&this.generateResponsiveControlsForElements(),this.elementsManager=new $a,this.initComponents(),this.checkEnvCompatibility()||this.onEnvNotCompatible(),this.initPreview(),this.requestWidgetsConfig(),this.channels.dataEditMode.reply(`activeMode`,`edit`),this.listenTo(this.channels.dataEditMode,`switch`,this.onEditModeSwitched),this.listenTo(elementor.channels.deviceMode,`change`,this.updatePreviewResizeOptions),this.initClearPageDialog(),this.addBackgroundClickArea(document),this.addDeprecatedConfigProperties(),tu.dispatch(elementorCommon.elements.$window,`elementor/loaded`,null,`elementor:loaded`),$e.run(`editor/documents/open`,{id:this.config.initial_document.id}).then(function(){tu.dispatch(elementorCommon.elements.$window,`elementor/init`,null,`elementor:init`),r.initNavigator()})}},{key:`onPreviewLoaded`,value:function onPreviewLoaded(){if(!this.$preview[0].contentWindow.elementorFrontend){this.onPreviewLoadingError();return}if(!elementor.config.kit_id){this.kitNotExistsError();return}this.$previewContents=this.$preview.contents(),this.initFrontend(),this.preventClicksInsideEditor(),this.addBackgroundClickArea(elementorFrontend.elements.window.document),this.previewLoadedOnce||this.onFirstPreviewLoaded(),this.$previewContents.children().addClass(`elementor-html`);var r=elementorFrontend.elements.$body;r.addClass(`elementor-editor-active`),elementor.userCan(`design`)||r.addClass(`elementor-editor-content-only`),this.changeDeviceMode(`desktop`),_.defer(function(){elementorFrontend.elements.window.jQuery.holdReady(!1)}),$e.shortcuts.bindListener(elementorFrontend.elements.$window),this.trigger(`preview:loaded`,!this.loaded),$e.internal(`editor/documents/attach-preview`).then(function(){return jQuery(`#elementor-loading, #elementor-preview-loading`).fadeOut(600)}),this.loaded=!0}},{key:`onFirstPreviewLoaded`,value:function onFirstPreviewLoaded(){this.initPanel(),this.previewLoadedOnce=!0;var r=elementorCommon.eventsManager;if(r){var c;r.dispatchEvent((c=r.config)==null||(c=c.names)==null||(c=c.elementorEditor)==null?void 0:c.editorLoaded,{})}}},{key:`onEditModeSwitched`,value:function onEditModeSwitched(){var r=this.channels.dataEditMode.request(`activeMode`);dispatchEvent(new CustomEvent(`elementor/edit-mode/change`,{detail:{activeMode:r}})),r===`edit`?this.exitPreviewMode():this.enterPreviewMode(r===`preview`)}},{key:`onEnvNotCompatible`,value:function onEnvNotCompatible(){var c=this;this.showFatalErrorDialog({headerMessage:(0,r.__)(`Your browser isn't compatible`,`elementor`),message:(0,r.__)(`Your browser isn't compatible with all of Elementor's editing features. We recommend you switch to another browser like Chrome or Firefox.`,`elementor`),strings:{confirm:(0,r.__)(`Proceed Anyway`,`elementor`)},hide:{onButtonClick:!0},onConfirm:function onConfirm(){return c.hide()}})}},{key:`kitNotExistsError`,value:function kitNotExistsError(){this.showFatalErrorDialog({className:`elementor-preview-loading-error`,headerMessage:(0,r.__)(`Your site doesn't have a default kit`,`elementor`),message:(0,r.__)(`Seems like your kit was deleted, please create new one or try restore it from trash.`,`elementor`),strings:{confirm:(0,r.__)(`Recreate Kit`,`elementor`),cancel:(0,r.__)(`Go Back`,`elementor`)},onConfirm:function onConfirm(){return open(elementor.config.admin_tools_url,`_blank`)}})}},{key:`onPreviewLoadingError`,value:function onPreviewLoadingError(){var c=this,l=this.config.document.urls.preview+`&preview-debug`,u=(0,r.__)(`Click here for preview debug`,`elementor`),p=`<div id="elementor-preview-debug-link-text"><a href="`+l+`" target="_blank">`+u+`</a></div>`,m=elementor.config.preview.debug_data,h={className:`elementor-preview-loading-error`,headerMessage:m.header,message:m.message+p,onConfirm:function onConfirm(){return open(m.doc_url,`_blank`)}};if(m.error){this.showFatalErrorDialog(h);return}jQuery.get(l,function(){c.showFatalErrorDialog(h)}).fail(function(r){c.showFatalErrorDialog({className:`elementor-preview-loading-error`,headerMessage:m.header,message:r.statusText+` `+r.status+` `+p,onConfirm:function onConfirm(){var c=500<=r.status?elementor.config.preview.help_preview_http_error_500_url:elementor.config.preview.help_preview_http_error_url;open(c,`_blank`)}})})}},{key:`onPreviewElNotFound`,value:function onPreviewElNotFound(){var c=this.$preview[0].contentWindow.elementorPreviewErrorArgs;c||(c={headerMessage:(0,r.__)(`Sorry, the content area was not found in your page.`,`elementor`),message:(0,r.__)(`You must call 'the_content' function in the current template, in order for Elementor to work on this page.`,`elementor`),confirmURL:elementor.config.help_the_content_url}),c.onConfirm=function(){return open(c.confirmURL,`_blank`)},this.showFatalErrorDialog(c)}},{key:`onBackgroundClick`,value:function onBackgroundClick(r){jQuery.each(this.backgroundClickListeners,function(c,l){var u=jQuery(r.target);if(u[0].control&&(u=u.add(u[0].control)),!(l.ignore&&u.closest(l.ignore).length)){var p=u.closest(l.element),m=jQuery(l.element).not(p);if(l.callback){l.callback(m);return}m.each(function(r,c){var l=jQuery(c),u=l.is(`:visible`);l.hide(),u&&l.trigger(`hide`)})}})}},{key:`compileTemplate`,value:function compileTemplate(r,c){return Marionette.TemplateCache.prototype.compileTemplate(r)(c)}},{key:`addWidgetsCache`,value:function addWidgetsCache(r){var c=this;jQuery.each(r,function(r,l){elementorCommon.config.experimentalFeatures.additional_custom_breakpoints&&(l.controls=c.generateResponsiveControls(l.controls)),c.widgetsCache[r]=jQuery.extend(!0,{},c.widgetsCache[r],l)})}},{key:`generateResponsiveControls`,value:function generateResponsiveControls(r){var c=this,l=this.config.responsive.activeBreakpoints,u=this.breakpoints.getActiveBreakpointsList({largeToSmall:!0,withDesktop:!0}),p={},m=u[u.indexOf(`desktop`)+1];return u.unshift(u.splice(u.indexOf(`desktop`),1)[0]),jQuery.each(r,function(r,h){var g,v,y,b;if(_typeof(h.fields)===`object`&&(h.fields=c.generateResponsiveControls(h.fields)),!h.is_responsive){p[r]=h;return}(g=h.responsive)!=null&&g.devices&&(_typeof(h.responsive.devices)===`object`&&(h.responsive.devices=Object.values(h.responsive.devices)),b=u.filter(function(r){return h.responsive.devices.includes(r)}),delete h.responsive.devices);var x=(v=h.popover)==null?void 0:v.end;if(x){var S;(S=h.popover)==null||delete S.end}h.default&&(h.desktop_default=h.default);var C=c.config.controls[h.type].default_value,w=!0;C&&(h.default=C,w=!1);var T=b||u;T.forEach(function(c,u){var g,v=structuredClone(h);if(v.device_args&&(v.device_args[c]&&(v=_objectSpread(_objectSpread({},v),v.device_args[c])),delete v.device_args),v.prefix_class&&v.prefix_class.indexOf(`%s`)!==-1){var b=c===`desktop`?``:`-`+c;v.prefix_class=v.prefix_class.replace(`%s`,b)}Array.isArray(v.responsive)&&(v.responsive={});var S=`max`;if(v.parent=null,c!==`desktop`&&(S=l[c].direction,v.parent=c===m?r:y),v.responsive[S]=c,v.min_affected_device&&(v.min_affected_device[c]&&(v.responsive.min=v.min_affected_device[c]),delete v.min_affected_device),v[c+`_default`]?_typeof(v[c+`_default`])===`object`?v.default=_objectSpread(_objectSpread({},v.default),v[c+`_default`]):v.default=v[c+`_default`]:w&&(v.default=``),u!==0&&(g=v.popover)!=null&&g.start&&delete v.popover.start,u===T.length-1&&x&&(v.popover={end:!0}),T.forEach(function(r){delete v[r+`_default`]}),delete v.is_responsive,y=c===`desktop`?r:r+`_`+c,v.parent){var C=p[v.parent];C.inheritors||(C.inheritors=[]),C.inheritors.push(y)}v.name=y,p[y]=v})}),p}},{key:`generateResponsiveControlsForElements`,value:function generateResponsiveControlsForElements(){var r=this;Object.keys(this.config.elements).forEach(function(c){r.config.elements[c].controls=r.generateResponsiveControls(r.config.elements[c].controls)})}},{key:`populateActiveBreakpointsConfig`,value:function populateActiveBreakpointsConfig(){var r=this;this.config.responsive.activeBreakpoints={},Object.entries(this.config.responsive.breakpoints).forEach(function(c){var l=_slicedToArray(c,2),u=l[0],p=l[1];p.is_enabled&&(r.config.responsive.activeBreakpoints[u]=p)})}},{key:`addDeprecatedConfigProperties`,value:function addDeprecatedConfigProperties(){var r=this;jQuery.each({data:{replacement:`elements`,value:function value(){return elementor.config.document.elements}},current_user_can_publish:{replacement:`user.can_publish`,value:function value(){return elementor.config.document.user.can_publish}},locked_user:{replacement:``,value:function value(){return elementor.config.document.user.locked}},revisions_enabled:{replacement:`revisions.enabled`,value:function value(){return elementor.config.document.revisions.enabled}},current_revision_id:{replacement:`revisions.current_id`,value:function value(){return elementor.config.document.revisions.current_id}}},function(c,l){Object.defineProperty(r.config,c,{get:function get(){var r=l.replacement?`elementor.config.document.`+l.replacement:``;return elementorDevTools.deprecation.deprecated(`elementor.config.`+c,`2.9.0`,r),l.value()},set:function set(){throw elementorDevTools.deprecation.deprecated(`elementor.config.`+c,`2.9.0`,`elementor.config.document.`+l.replacement),Error(`Deprecated`)}})}),Object.defineProperty(this.config.settings,"page",{get:function get(){return elementorDevTools.deprecation.deprecated(`elementor.config.settings.page`,`2.9.0`,`elementor.config.document.settings`),elementor.config.document.settings}}),Object.defineProperty(this.config,"widgets",{get:function get(){return elementorDevTools.deprecation.deprecated(`elementor.config.widgets`,`2.9.0`,`elementor.widgetsCache`),elementor.widgetsCache}}),Object.defineProperty(this,"$previewElementorEl",{get:function get(){return elementorDevTools.deprecation.deprecated(`elementor.$previewElementorEl`,`2.9.4`,`elementor.documents.getCurrent().$element`),elementor.documents.getCurrent().$element}})}},{key:`toggleDocumentCssFiles`,value:function toggleDocumentCssFiles(r,c){var l=[`#elementor-post-${r.config.id}-css`,`#elementor-preview-${r.config.revisions.current_id}`],u=this.$previewContents.find(l.join(`,`)),p=c?`text/css`:`elementor/disabled-css`;u.attr({type:p})}}])}(Marionette.Application);b(),w(),E(),D(),k(),A();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})()}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}window.elementor=new(function(r){function Editor(){return _classCallCheck(this,Editor),_callSuper(this,Editor,arguments)}return _inherits(Editor,r),_createClass(Editor,[{key:`onStart`,value:function onStart(r){NProgress.start(),NProgress.inc(.2),_superPropGet(Editor,`onStart`,this,3)([r])}},{key:`onPreviewLoaded`,value:function onPreviewLoaded(){NProgress.done(),_superPropGet(Editor,`onPreviewLoaded`,this,3)([])}}])}(Og))})(wp.i18n,elementorVendors.reduxToolkit,React,ReactDOM);