|
1
|
|
-(function(e,t){var n=Object.create,r=Object.defineProperty,__name=(e,t)=>r(e,`name`,{value:t,configurable:!0}),i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,__esmMin=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},__commonJSMin=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),__exportAll=(e,t)=>{let n={};for(var i in e)r(n,i,{get:e[i],enumerable:!0});return t||r(n,Symbol.toStringTag,{value:`Module`}),n},__copyProps=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e},__toESM=(e,t,i)=>(i=e==null?{}:n(o(e)),__copyProps(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e));t=__toESM(t);function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var c=__esmMin((()=>{}));function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_typeof(e)}var l=__esmMin((()=>{}));function toPrimitive(e,t){if(_typeof(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(_typeof(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var u=__esmMin((()=>{l()}));function toPropertyKey(e){var t=toPrimitive(e,`string`);return _typeof(t)==`symbol`?t:t+``}var d=__esmMin((()=>{l(),u()}));function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var f=__esmMin((()=>{d()}));c(),f();var p=function(){function Events(){_classCallCheck(this,Events)}return _createClass(Events,null,[{key:`dispatch`,value:function dispatch(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;e=e instanceof jQuery?e[0]:e,r&&e.dispatchEvent(new CustomEvent(r,{detail:n})),e.dispatchEvent(new CustomEvent(t,{detail:n}))}}])}(),m=function preload(e,t,n){let r=Promise.resolve();function handlePreloadError(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&handlePreloadError(e.reason);return e().catch(handlePreloadError)})};function _assertThisInitialized(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}var h=__esmMin((()=>{}));function _possibleConstructorReturn(e,t){if(t&&(_typeof(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return _assertThisInitialized(e)}var g=__esmMin((()=>{l(),h()}));function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}var _=__esmMin((()=>{}));function _superPropBase(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=_getPrototypeOf(e))!==null;);return e}var ee=__esmMin((()=>{_()}));function _get(){return _get=typeof Reflect<`u`&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=_superPropBase(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},_get.apply(null,arguments)}var v=__esmMin((()=>{ee()}));function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}var te=__esmMin((()=>{}));function _inherits(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}var y=__esmMin((()=>{te()}));function _defineProperty(e,t,n){return(t=toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=__esmMin((()=>{d()}));function extractNestedItemTitle(t,n){var r=t.view.model.config.defaults.elements_title;return(0,e.sprintf)(r,n)}function isWidgetSupportNesting(e){var t=elementor.widgetsCache[e];return t?t.support_nesting:!1}function isWidgetSupportAtomicRepeaters(e){var t=elementor.widgetsCache[e];return t?t.support_improved_repeaters:!1}function findChildContainerOrFail(e,t){var n=e.view.children.findByIndex(t);if(!n)throw Error(`Child container was not found for the current repeater item.`);return n.getContainer()}function shouldUseAtomicRepeaters(e){return isWidgetSupportNesting(e)&&isWidgetSupportAtomicRepeaters(e)}function sortViewsByModels(e){var t=e.model.get(`elements`).models,n=e.view.children,r={};return t.forEach(function(e,t){var i=n.findByModel(e);i._index=t,r[i.cid]=i}),r}var x=__esmMin((()=>{}));function _callSuper$12(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct$12()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _isNativeReflectConstruct$12(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct$12=function _isNativeReflectConstruct(){return!!e})()}function _superPropGet$7(e,t,n,r){var i=_get(_getPrototypeOf(1&r?e.prototype:e),t,n);return 2&r&&typeof i==`function`?function(e){return i.apply(n,e)}:i}var S,ne=__esmMin((()=>{c(),f(),g(),_(),v(),y(),x(),__name(_callSuper$12,`_callSuper`),__name(_isNativeReflectConstruct$12,`_isNativeReflectConstruct`),__name(_superPropGet$7,`_superPropGet`),S=function(e){function NestedModelBase(){return _classCallCheck(this,NestedModelBase),_callSuper$12(this,NestedModelBase,arguments)}return _inherits(NestedModelBase,e),_createClass(NestedModelBase,[{key:`initialize`,value:function initialize(e){this.config=elementor.widgetsCache[e.widgetType],this.set(`supportRepeaterChildren`,!0),this.get(`elements`).length===0&&$e.commands.currentTrace.includes(`document/elements/create`)&&this.onElementCreate(),_superPropGet$7(NestedModelBase,`initialize`,this,3)([e])}},{key:`isValidChild`,value:function isValidChild(e){var t=this.get(`elType`);return e.get(`elType`)===`container`&&t===`widget`&&isWidgetSupportNesting(this.get(`widgetType`))&&e.get(`isLocked`)}},{key:`getDefaultChildren`,value:function getDefaultChildren(){var e=this.config.defaults,t=[];return e.elements.forEach(function(e){e.id=elementorCommon.helpers.getUniqueId(),e.settings=e.settings||{},e.elements=e.elements||[],e.isLocked=!0,t.push(e)}),t}},{key:`onElementCreate`,value:function onElementCreate(){this.set(`elements`,this.getDefaultChildren())}}])}(elementor.modules.elements.models.Element)}));function _callSuper$11(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct$11()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _isNativeReflectConstruct$11(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct$11=function _isNativeReflectConstruct(){return!!e})()}function _superPropGet$6(e,t,n,r){var i=_get(_getPrototypeOf(1&r?e.prototype:e),t,n);return 2&r&&typeof i==`function`?function(e){return i.apply(n,e)}:i}var C,re=__esmMin((()=>{c(),f(),g(),_(),v(),y(),__name(_callSuper$11,`_callSuper`),__name(_isNativeReflectConstruct$11,`_isNativeReflectConstruct`),__name(_superPropGet$6,`_superPropGet`),C=function(e){function NestedViewBase(){return _classCallCheck(this,NestedViewBase),_callSuper$11(this,NestedViewBase,arguments)}return _inherits(NestedViewBase,e),_createClass(NestedViewBase,[{key:`getChildViewContainer`,value:function getChildViewContainer(e,t){var n=this.model.config.defaults,r=n.elements_placeholder_selector,i=n.child_container_placeholder_selector;return t!==void 0&&t._index!==void 0&&i?e.$el.find(`${i}:nth-child(${t._index+1})`):r?e.$el.find(this.model.config.defaults.elements_placeholder_selector):_superPropGet$6(NestedViewBase,`getChildViewContainer`,this,3)([e,t])}},{key:`getChildType`,value:function getChildType(){return[`container`]}},{key:`onRender`,value:function onRender(){_superPropGet$6(NestedViewBase,`onRender`,this,3)([]),this.normalizeAttributes()}}])}(elementor.modules.elements.views.BaseWidget)}));function _callSuper$10(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct$10()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _isNativeReflectConstruct$10(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct$10=function _isNativeReflectConstruct(){return!!e})()}function _superPropGet$5(e,t,n,r){var i=_get(_getPrototypeOf(1&r?e.prototype:e),t,n);return 2&r&&typeof i==`function`?function(e){return i.apply(n,e)}:i}var w,ie=__esmMin((()=>{b(),c(),f(),g(),_(),v(),y(),x(),__name(_callSuper$10,`_callSuper`),__name(_isNativeReflectConstruct$10,`_isNativeReflectConstruct`),__name(_superPropGet$5,`_superPropGet`),w=function(e){function Repeater(){return _classCallCheck(this,Repeater),_callSuper$10(this,Repeater,arguments)}return _inherits(Repeater,e),_createClass(Repeater,[{key:`className`,value:function className(){return _superPropGet$5(Repeater,`className`,this,3)([]).replace(`nested-elements-repeater`,`repeater`)}},{key:`getDefaults`,value:function getDefaults(){var e=this.options.container,t=e.model.config.defaults,n=e.children.length+1;return _defineProperty({_id:``},t.repeater_title_setting,extractNestedItemTitle(e,n))}},{key:`onChildviewClickDuplicate`,value:function onChildviewClickDuplicate(e){$e.run(`document/repeater/duplicate`,{container:this.options.container,name:this.model.get(`name`),index:e._index}),this.toggleMinRowsClass()}},{key:`updateActiveRow`,value:function updateActiveRow(){this.currentEditableChild&&$e.run(`document/repeater/select`,{container:this.container,index:this.currentEditableChild.itemIndex,options:{useHistory:!1}})}}])}(elementor.modules.controls.Repeater)}));function _callSuper$9(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct$9()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _isNativeReflectConstruct$9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct$9=function _isNativeReflectConstruct(){return!!e})()}var T,E=__esmMin((()=>{c(),f(),g(),_(),y(),x(),__name(_callSuper$9,`_callSuper`),__name(_isNativeReflectConstruct$9,`_isNativeReflectConstruct`),T=function(e){function Base(){return _classCallCheck(this,Base),_callSuper$9(this,Base,arguments)}return _inherits(Base,e),_createClass(Base,[{key:`getContainerType`,value:function getContainerType(){return`widget`}},{key:`getConditions`,value:function getConditions(e){return isWidgetSupportNesting(e.container.model.get(`widgetType`))}}])}($e.modules.hookData.After)}));function _callSuper$8(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct$8()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _isNativeReflectConstruct$8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct$8=function _isNativeReflectConstruct(){return!!e})()}function _superPropGet$4(e,t,n,r){var i=_get(_getPrototypeOf(1&r?e.prototype:e),t,n);return 2&r&&typeof i==`function`?function(e){return i.apply(n,e)}:i}var D,O=__esmMin((()=>{c(),f(),g(),_(),v(),y(),E(),x(),__name(_callSuper$8,`_callSuper`),__name(_isNativeReflectConstruct$8,`_isNativeReflectConstruct`),__name(_superPropGet$4,`_superPropGet`),D=function(e){function NestedRepeaterCreateContainer(){return _classCallCheck(this,NestedRepeaterCreateContainer),_callSuper$8(this,NestedRepeaterCreateContainer,arguments)}return _inherits(NestedRepeaterCreateContainer,e),_createClass(NestedRepeaterCreateContainer,[{key:`getId`,value:function getId(){return`document/repeater/insert--nested-repeater-create-container`}},{key:`getCommand`,value:function getCommand(){return`document/repeater/insert`}},{key:`getConditions`,value:function getConditions(e){var t=$e.commands.isCurrentFirstTrace(this.getCommand());return _superPropGet$4(NestedRepeaterCreateContainer,`getConditions`,this,3)([e])&&t}},{key:`apply`,value:function apply(e){var t=e.container,n=e.name,r=t.repeaters[n].children.length;$e.run(`document/elements/create`,{container:t,model:{elType:`container`,isLocked:!0,_title:extractNestedItemTitle(t,r)},options:{edit:!1}}),shouldUseAtomicRepeaters(t.settings.get(`widgetType`))&&elementor.$preview[0].contentWindow.dispatchEvent(new CustomEvent(`elementor/nested-container/atomic-repeater`,{detail:{container:t,action:{type:`create`}}}))}}])}(T)}));function _callSuper$7(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct$7()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _isNativeReflectConstruct$7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct$7=function _isNativeReflectConstruct(){return!!e})()}function _superPropGet$3(e,t,n,r){var i=_get(_getPrototypeOf(1&r?e.prototype:e),t,n);return 2&r&&typeof i==`function`?function(e){return i.apply(n,e)}:i}var k,A=__esmMin((()=>{c(),f(),g(),_(),v(),y(),E(),x(),__name(_callSuper$7,`_callSuper`),__name(_isNativeReflectConstruct$7,`_isNativeReflectConstruct`),__name(_superPropGet$3,`_superPropGet`),k=function(e){function NestedRepeaterRemoveContainer(){return _classCallCheck(this,NestedRepeaterRemoveContainer),_callSuper$7(this,NestedRepeaterRemoveContainer,arguments)}return _inherits(NestedRepeaterRemoveContainer,e),_createClass(NestedRepeaterRemoveContainer,[{key:`getId`,value:function getId(){return`document/repeater/remove--nested-elements-remove-container`}},{key:`getCommand`,value:function getCommand(){return`document/repeater/remove`}},{key:`getConditions`,value:function getConditions(e){var t=$e.commands.isCurrentFirstTrace(this.getCommand());return _superPropGet$3(NestedRepeaterRemoveContainer,`getConditions`,this,3)([e])&&t}},{key:`apply`,value:function apply(e){var t=e.container,n=e.index;$e.run(`document/elements/delete`,{container:findChildContainerOrFail(t,n),force:!0}),shouldUseAtomicRepeaters(t.settings.get(`widgetType`))&&elementor.$preview[0].contentWindow.dispatchEvent(new CustomEvent(`elementor/nested-container/atomic-repeater`,{detail:{container:t,action:{type:`remove`}}}))}}])}(T)}));function _callSuper$6(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct$6()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _isNativeReflectConstruct$6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct$6=function _isNativeReflectConstruct(){return!!e})()}var j,M=__esmMin((()=>{c(),f(),g(),_(),y(),E(),x(),__name(_callSuper$6,`_callSuper`),__name(_isNativeReflectConstruct$6,`_isNativeReflectConstruct`),j=function(e){function NestedRepeaterMoveContainer(){return _classCallCheck(this,NestedRepeaterMoveContainer),_callSuper$6(this,NestedRepeaterMoveContainer,arguments)}return _inherits(NestedRepeaterMoveContainer,e),_createClass(NestedRepeaterMoveContainer,[{key:`getId`,value:function getId(){return`document/repeater/move--nested-repeater-move-container`}},{key:`getCommand`,value:function getCommand(){return`document/repeater/move`}},{key:`apply`,value:function apply(e){var t=e.container,n=e.sourceIndex,r=e.targetIndex,i=$e.run(`document/elements/move`,{container:findChildContainerOrFail(t,n),target:t,options:{at:r,edit:!1}});shouldUseAtomicRepeaters(t.settings.get(`widgetType`))&&(t.view.children._views=sortViewsByModels(t),elementor.$preview[0].contentWindow.dispatchEvent(new CustomEvent(`elementor/nested-container/atomic-repeater`,{detail:{container:t,targetContainer:i,index:r,action:{type:`move`}}})))}}])}(T)}));function _callSuper$5(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct$5()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _isNativeReflectConstruct$5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct$5=function _isNativeReflectConstruct(){return!!e})()}var N,P=__esmMin((()=>{c(),f(),g(),_(),y(),E(),x(),__name(_callSuper$5,`_callSuper`),__name(_isNativeReflectConstruct$5,`_isNativeReflectConstruct`),N=function(e){function NestedRepeaterDuplicateContainer(){return _classCallCheck(this,NestedRepeaterDuplicateContainer),_callSuper$5(this,NestedRepeaterDuplicateContainer,arguments)}return _inherits(NestedRepeaterDuplicateContainer,e),_createClass(NestedRepeaterDuplicateContainer,[{key:`getId`,value:function getId(){return`document/repeater/duplicate--nested-repeater-duplicate-container`}},{key:`getCommand`,value:function getCommand(){return`document/repeater/duplicate`}},{key:`apply`,value:function apply(e){var t=e.container,n=e.index,r=$e.run(`document/elements/duplicate`,{container:findChildContainerOrFail(t,n),options:{edit:!1}});shouldUseAtomicRepeaters(t.settings.get(`widgetType`))?(t.view.children._views=sortViewsByModels(t),elementor.$preview[0].contentWindow.dispatchEvent(new CustomEvent(`elementor/nested-container/atomic-repeater`,{detail:{container:t,targetContainer:r,index:n,action:{type:`duplicate`}}}))):t.render()}}])}(T)}));function _callSuper$4(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct$4()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _isNativeReflectConstruct$4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct$4=function _isNativeReflectConstruct(){return!!e})()}var F,I,ae=__esmMin((()=>{c(),f(),g(),_(),y(),x(),__name(_callSuper$4,`_callSuper`),__name(_isNativeReflectConstruct$4,`_isNativeReflectConstruct`),F=250,I=function(e){function NestedRepeaterFocusCurrentEditedContainer(){return _classCallCheck(this,NestedRepeaterFocusCurrentEditedContainer),_callSuper$4(this,NestedRepeaterFocusCurrentEditedContainer,arguments)}return _inherits(NestedRepeaterFocusCurrentEditedContainer,e),_createClass(NestedRepeaterFocusCurrentEditedContainer,[{key:`getCommand`,value:function getCommand(){return`panel/editor/open`}},{key:`getId`,value:function getId(){return`nested-repeater-focus-current-edited-container`}},{key:`getConditions`,value:function getConditions(e){var t;if($e.commands.isCurrentFirstTrace(`document/elements/create`))return!1;var n=e.view.container.getParentAncestry();return n.some(function(e){return isWidgetSupportNesting(e.model.get(`widgetType`))})&&(this.navigationMap=this.getNavigationMapForContainers(n.filter(function(e){return e.type===`container`&&e.parent.type===`widget`})).filter(function(e){return e.index!==e.current})),(t=this.navigationMap)==null?void 0:t.length}},{key:`apply`,value:function apply(){var e=1;this.navigationMap.forEach(function(t){var n=t.container,r=t.index;setTimeout(function(){$e.run(`document/repeater/select`,{container:n,index:r++,options:{useHistory:!1}})},F*e),++e})}},{key:`getNavigationMapForContainers`,value:function getNavigationMapForContainers(e){return e.map(function(e){return{current:e.parent.model.get(`editSettings`).get(`activeItemIndex`),container:e.parent,index:e.parent.children.indexOf(e)+1}}).reverse()}}])}($e.modules.hookUI.After)})),oe=__exportAll({NestedRepeaterCreateContainer:()=>D,NestedRepeaterDuplicateContainer:()=>N,NestedRepeaterFocusCurrentEditedContainer:()=>I,NestedRepeaterMoveContainer:()=>j,NestedRepeaterRemoveContainer:()=>k}),se=__esmMin((()=>{O(),A(),M(),P(),ae()}));function _callSuper$3(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct$3()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _isNativeReflectConstruct$3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct$3=function _isNativeReflectConstruct(){return!!e})()}function _superPropGet$2(e,t,n,r){var i=_get(_getPrototypeOf(1&r?e.prototype:e),t,n);return 2&r&&typeof i==`function`?function(e){return i.apply(n,e)}:i}var L,R=__esmMin((()=>{c(),f(),g(),_(),v(),y(),b(),ne(),re(),ie(),se(),__name(_callSuper$3,`_callSuper`),__name(_isNativeReflectConstruct$3,`_isNativeReflectConstruct`),__name(_superPropGet$2,`_superPropGet`),L=function(e){function Component(){var e;_classCallCheck(this,Component);for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=_callSuper$3(this,Component,[].concat(n)),_defineProperty(e,`exports`,{NestedModelBase:S,NestedViewBase:C}),e}return _inherits(Component,e),_createClass(Component,[{key:`registerAPI`,value:function registerAPI(){_superPropGet$2(Component,`registerAPI`,this,3)([]),elementor.addControlView(`nested-elements-repeater`,w)}},{key:`getNamespace`,value:function getNamespace(){return`nested-elements/nested-repeater`}},{key:`defaultHooks`,value:function defaultHooks(){return this.importHooks(oe)}}])}($e.modules.ComponentBase)}));function _callSuper$2(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct$2()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _isNativeReflectConstruct$2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct$2=function _isNativeReflectConstruct(){return!!e})()}function _superPropGet$1(e,t,n,r){var i=_get(_getPrototypeOf(1&r?e.prototype:e),t,n);return 2&r&&typeof i==`function`?function(e){return i.apply(n,e)}:i}var z,B=__esmMin((()=>{c(),f(),g(),_(),v(),y(),R(),__name(_callSuper$2,`_callSuper`),__name(_isNativeReflectConstruct$2,`_isNativeReflectConstruct`),__name(_superPropGet$1,`_superPropGet`),z=function(e){function Component(){return _classCallCheck(this,Component),_callSuper$2(this,Component,arguments)}return _inherits(Component,e),_createClass(Component,[{key:`getNamespace`,value:function getNamespace(){return`nested-elements`}},{key:`registerAPI`,value:function registerAPI(){$e.components.register(new L),_superPropGet$1(Component,`registerAPI`,this,3)([])}}])}($e.modules.ComponentBase)})),V=__exportAll({default:()=>H}),H,U=__esmMin((()=>{f(),c(),B(),H=_createClass(function NestedElementsModule(){_classCallCheck(this,NestedElementsModule),this.component=$e.components.register(new z)})})),W=__exportAll({View:()=>G,default:()=>G});function _callSuper$1(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct$1()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _isNativeReflectConstruct$1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct$1=function _isNativeReflectConstruct(){return!!e})()}function _superPropGet(e,t,n,r){var i=_get(_getPrototypeOf(1&r?e.prototype:e),t,n);return 2&r&&typeof i==`function`?function(e){return i.apply(n,e)}:i}var G,K=__esmMin((()=>{c(),f(),g(),_(),v(),y(),__name(_callSuper$1,`_callSuper`),__name(_isNativeReflectConstruct$1,`_isNativeReflectConstruct`),G=function(e){function View(){return _classCallCheck(this,View),_callSuper$1(this,View,arguments)}return _inherits(View,e),_createClass(View,[{key:`events`,value:function events(){var e=this,t=_superPropGet(View,`events`,this,3)([]);return t.click=function(t){if(elementor.documents.currentDocument.id.toString()===t.target.closest(`.elementor`).dataset.elementorId){var n=t.target.closest(`.elementor-element`),r=null;if([`container`,`widget`].includes(n==null?void 0:n.dataset.element_type)){var i=elementor.getContainer(n.dataset.id);if(i.view.isEmpty())return!0;r=i}t.stopPropagation(),$e.run(`document/elements/select`,{container:r||e.getContainer()})}},t}},{key:`renderHTML`,value:function renderHTML(){var e=this.getTemplateType(),t=this.getEditModel();e===`js`?(t.setHtmlCache(),this.render()):t.renderRemoteServer()}}])}($e.components.get(`nested-elements/nested-repeater`).exports.NestedViewBase)})),ce=__commonJSMin(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),le=__commonJSMin(((e,t)=>{var n=ce();function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,t.exports=function(){function shim(e,t,r,i,a,o){if(o!==n){var s=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 s.name=`Invariant Violation`,s}}shim.isRequired=shim;function getShim(){return shim}var e={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 e.PropTypes=e,e}})),q=__commonJSMin(((e,t)=>{t.exports=le()()}));function _arrayWithHoles(e){if(Array.isArray(e))return e}var ue=__esmMin((()=>{}));function _iterableToArrayLimit(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}var de=__esmMin((()=>{}));function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var fe=__esmMin((()=>{}));function _unsupportedIterableToArray(e,t){if(e){if(typeof e==`string`)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}var pe=__esmMin((()=>{fe()}));function _nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance. |
|
2
|
|
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var me=__esmMin((()=>{}));function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}var he=__esmMin((()=>{ue(),de(),pe(),me()}));function AddSectionArea(n){var r=(0,t.useRef)(),i=elementor.helpers.container;return(0,t.useEffect)(function(){var e=jQuery(r.current),t=n.container.view.getDroppableOptions();return t.placeholder=!1,t.items=`> .elementor-add-section-inner`,t.hasDraggingOnChildClass=`elementor-dragging-on-child`,e.html5Droppable(t),function(){e.html5Droppable(`destroy`)}},[]),t.default.createElement(`div`,{className:`elementor-add-section`,onClick:function onClick(){return i.openEditMode(n.container)},ref:r,role:`button`,tabIndex:`0`},t.default.createElement(`div`,{className:`elementor-add-section-inner`},t.default.createElement(`div`,{className:`e-view elementor-add-new-section`},t.default.createElement(`button`,{type:`button`,className:`elementor-add-section-area-button elementor-add-section-button`,"aria-label":(0,e.__)(`Add new container`,`elementor`),onClick:function handleAddContainerClick(){n.setIsRenderPresets(!0)}},t.default.createElement(`i`,{className:`eicon-plus`,"aria-hidden":`true`})),t.default.createElement(`div`,{className:`elementor-add-section-drag-title`},(0,e.__)(`Drag widget here`,`elementor`)))))}var J,Y=__esmMin((()=>{J=__toESM(q()),AddSectionArea.propTypes={container:J.default.object.isRequired,setIsRenderPresets:J.default.func.isRequired}}));function ownKeys$1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ownKeys$1(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var X,ge=__esmMin((()=>{b(),c(),f(),__name(ownKeys$1,`ownKeys`),__name(_objectSpread$1,`_objectSpread`),X=function(){function EditorOneEventManager(){_classCallCheck(this,EditorOneEventManager)}return _createClass(EditorOneEventManager,null,[{key:`getEventsManager`,value:function getEventsManager(){var e;return(e=elementorCommon)==null?void 0:e.eventsManager}},{key:`getConfig`,value:function getConfig(){var e;return(e=this.getEventsManager())==null?void 0:e.config}},{key:`canSendEvents`,value:function canSendEvents(){var e;return((e=elementorCommon)==null||(e=e.config)==null||(e=e.editor_events)==null?void 0:e.can_send_events)||!1}},{key:`isEventsManagerAvailable`,value:function isEventsManagerAvailable(){var e=this.getEventsManager();return e&&typeof e.dispatchEvent==`function`}},{key:`dispatchEvent`,value:function dispatchEvent(e,t){try{return!this.isEventsManagerAvailable()||!this.canSendEvents()?!1:(this.getEventsManager().dispatchEvent(e,t),!0)}catch(e){return!1}}},{key:`toLowerSnake`,value:function toLowerSnake(e){return!e||typeof e!=`string`?e:e.replace(/\s+/g,`_`).toLowerCase()}},{key:`decodeHtmlEntities`,value:function decodeHtmlEntities(e){return!e||typeof e!=`string`?e:new DOMParser().parseFromString(e,`text/html`).body.textContent||e}},{key:`isInEditorContext`,value:function isInEditorContext(){var e;return window.elementor!==void 0&&!!((e=window.elementor)!=null&&e.documents)}},{key:`getFinderContext`,value:function getFinderContext(){var e,t,n,r,i=this.getConfig(),a=this.isInEditorContext();return{windowName:a?i==null||(e=i.appTypes)==null?void 0:e.editor:i==null||(t=i.appTypes)==null?void 0:t.wpAdmin,targetLocation:this.toLowerSnake(a?i==null||(n=i.locations)==null?void 0:n.topBar:i==null||(r=i.locations)==null?void 0:r.sidebar)}}},{key:`createBasePayload`,value:function createBasePayload(){var e,t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=this.getConfig();return _objectSpread$1({window_name:(e=r==null||(t=r.appTypes)==null?void 0:t.editor)==null?`editor`:e},n)}},{key:`sendTopBarPublishDropdown`,value:function sendTopBarPublishDropdown(e){var t,n,r,i,a,o,s,c=this.getConfig();return this.dispatchEvent(c==null||(t=c.names)==null||(t=t.editorOne)==null?void 0:t.topBarPublishDropdown,this.createBasePayload({interaction_type:this.toLowerSnake(c==null||(n=c.triggers)==null?void 0:n.click),target_type:c==null||(r=c.targetTypes)==null?void 0:r.dropdownItem,target_name:e,interaction_result:c==null||(i=c.interactionResults)==null?void 0:i.actionSelected,target_location:this.toLowerSnake(c==null||(a=c.locations)==null?void 0:a.topBar),location_l1:this.toLowerSnake(c==null||(o=c.secondaryLocations)==null?void 0:o.publishDropdown),location_l2:c==null||(s=c.targetTypes)==null?void 0:s.dropdownItem,interaction_description:`User selected an action from the publish dropdown`}))}},{key:`sendTopBarPageList`,value:function sendTopBarPageList(e){var t,n,r,i,a,o,s,c,l=arguments.length>1&&arguments[1]!==void 0&&arguments[1],u=this.getConfig();return this.dispatchEvent(u==null||(t=u.names)==null||(t=t.editorOne)==null?void 0:t.topBarPageList,this.createBasePayload({interaction_type:this.toLowerSnake(u==null||(n=u.triggers)==null?void 0:n.click),target_type:u==null||(r=u.targetTypes)==null?void 0:r.dropdownItem,target_name:e,interaction_result:l?u==null||(i=u.interactionResults)==null?void 0:i.create:u==null||(a=u.interactionResults)==null?void 0:a.navigate,target_location:this.toLowerSnake(u==null||(o=u.locations)==null?void 0:o.topBar),location_l1:this.toLowerSnake(u==null||(s=u.secondaryLocations)==null?void 0:s.pageListDropdown),location_l2:u==null||(c=u.targetTypes)==null?void 0:c.dropdownItem,interaction_description:`User selected an action from the page list dropdown`}))}},{key:`sendSiteSettingsSession`,value:function sendSiteSettingsSession(e){var t,n,r,i,a,o=e.targetType,s=e.visitedItems,c=s===void 0?[]:s,l=e.savedItems,u=l===void 0?[]:l,d=e.state,f=this.getConfig();return this.dispatchEvent(f==null||(t=f.names)==null||(t=t.editorOne)==null?void 0:t.siteSettingsSession,this.createBasePayload({interaction_type:this.toLowerSnake(f==null||(n=f.triggers)==null?void 0:n.click),target_type:o,target_name:`site_settings`,interaction_result:f==null||(r=f.interactionResults)==null?void 0:r.sessionEnd,target_location:this.toLowerSnake(f==null||(i=f.locations)==null?void 0:i.leftPanel),location_l1:this.toLowerSnake(f==null||(a=f.secondaryLocations)==null?void 0:a.siteSettings),interaction_description:`Records areas visited as part of the site setting session`,metadata:{visited_items:c,saved_items:u},state:d}))}},{key:`sendELibraryNav`,value:function sendELibraryNav(e){var t,n,r,i,a,o,s=this.getConfig();return this.dispatchEvent(s==null||(t=s.names)==null||(t=t.editorOne)==null?void 0:t.eLibraryNav,this.createBasePayload({interaction_type:this.toLowerSnake(s==null||(n=s.triggers)==null?void 0:n.tabSelect),target_type:s==null||(r=s.targetTypes)==null?void 0:r.tab,target_name:this.toLowerSnake(e),interaction_result:s==null||(i=s.interactionResults)==null?void 0:i.tabChanged,target_location:this.toLowerSnake(s==null||(a=s.locations)==null?void 0:a.elementorLibrary),location_l1:this.toLowerSnake(s==null||(o=s.secondaryLocations)==null?void 0:o.libraryTabs),interaction_description:`User navigates within elementor library`}))}},{key:`sendELibraryInsert`,value:function sendELibraryInsert(e){var t,n,r,i,a,o,s=e.assetId,c=e.assetName,l=e.libraryType,u=e.proRequired,d=u!==void 0&&u,f=this.getConfig(),p=this.createBasePayload({interaction_type:this.toLowerSnake(f==null||(t=f.triggers)==null?void 0:t.insert),target_type:f==null||(n=f.targetTypes)==null?void 0:n.button,target_name:String(s),interaction_result:f==null||(r=f.interactionResults)==null?void 0:r.assetInserted,target_location:this.toLowerSnake(f==null||(i=f.locations)==null?void 0:i.elementorLibrary),location_l1:this.toLowerSnake(l),location_l2:this.toLowerSnake(f==null||(a=f.secondaryLocations)==null?void 0:a.assetCard),interaction_description:`User inserts block/pages from elementor library`,metadata:{template_id:String(s),template_name:this.decodeHtmlEntities(c)||``}});return d&&(p.state=`pro_plan_required`),this.dispatchEvent(f==null||(o=f.names)==null||(o=o.editorOne)==null?void 0:o.eLibraryInsert,p)}},{key:`sendELibraryFavorite`,value:function sendELibraryFavorite(e){var t,n,r,i,a,o,s=e.assetId,c=e.assetName,l=e.libraryType,u=e.isFavorite,d=e.proRequired,f=d!==void 0&&d,p=this.getConfig(),m=this.createBasePayload({interaction_type:this.toLowerSnake(p==null||(t=p.triggers)==null?void 0:t.click),target_type:p==null||(n=p.targetTypes)==null?void 0:n.toggle,target_name:String(s),interaction_result:p==null||(r=p.interactionResults)==null?void 0:r.assetFavorite,target_value:!!u,target_location:this.toLowerSnake(p==null||(i=p.locations)==null?void 0:i.elementorLibrary),location_l1:this.toLowerSnake(l),location_l2:this.toLowerSnake(p==null||(a=p.secondaryLocations)==null?void 0:a.assetCard),interaction_description:`User favorite block/pages from elementor library`,metadata:{template_id:String(s),template_name:this.decodeHtmlEntities(c)||``}});return f&&(m.state=`pro_plan_required`),this.dispatchEvent(p==null||(o=p.names)==null||(o=o.editorOne)==null?void 0:o.eLibraryFavorite,m)}},{key:`sendELibraryGenerateAi`,value:function sendELibraryGenerateAi(e){var t,n,r,i,a,o,s=e.assetId,c=e.assetName,l=e.libraryType,u=this.getConfig();return this.dispatchEvent(u==null||(t=u.names)==null||(t=t.editorOne)==null?void 0:t.eLibraryGenerateAi,this.createBasePayload({interaction_type:this.toLowerSnake(u==null||(n=u.triggers)==null?void 0:n.click),target_type:u==null||(r=u.targetTypes)==null?void 0:r.button,target_name:String(s),interaction_result:u==null||(i=u.interactionResults)==null?void 0:i.aiGenerate,target_location:this.toLowerSnake(u==null||(a=u.locations)==null?void 0:a.elementorLibrary),location_l1:this.toLowerSnake(l),location_l2:this.toLowerSnake(u==null||(o=u.secondaryLocations)==null?void 0:o.assetCard),interaction_description:`User generated block/page based on a library asset`,metadata:{template_id:String(s),template_name:this.decodeHtmlEntities(c)||``}}))}},{key:`sendFinderSearchInput`,value:function sendFinderSearchInput(e){var t,n,r,i,a,o,s=e.resultsCount,c=e.searchTerm,l=c===void 0?null:c,u=this.getConfig(),d=s>0,f=this.getFinderContext(),p=this.createBasePayload({window_name:f.windowName,interaction_type:this.toLowerSnake(u==null||(t=u.triggers)==null?void 0:t.typing),target_type:u==null||(n=u.targetTypes)==null?void 0:n.searchInput,target_name:`finder`,interaction_result:d?u==null||(r=u.interactionResults)==null?void 0:r.resultsUpdated:u==null||(i=u.interactionResults)==null?void 0:i.noResults,target_location:f.targetLocation,location_l1:this.toLowerSnake(u==null||(a=u.secondaryLocations)==null?void 0:a.finder),interaction_description:`Finder search input, follows debounce behavior`,metadata:{results_count:s}});return!d&&l&&(p.metadata.search_term=l),this.dispatchEvent(u==null||(o=u.names)==null||(o=o.editorOne)==null?void 0:o.finderSearchInput,p)}},{key:`sendFinderResultSelect`,value:function sendFinderResultSelect(e){var t,n,r,i,a,o,s=this.getConfig(),c=this.getFinderContext();return this.dispatchEvent(s==null||(t=s.names)==null||(t=t.editorOne)==null?void 0:t.finderResultSelect,this.createBasePayload({window_name:c.windowName,interaction_type:this.toLowerSnake(s==null||(n=s.triggers)==null?void 0:n.click),target_type:s==null||(r=s.targetTypes)==null?void 0:r.searchResult,target_name:e,interaction_result:s==null||(i=s.interactionResults)==null?void 0:i.selected,target_location:c.targetLocation,location_l1:this.toLowerSnake(s==null||(a=s.secondaryLocations)==null?void 0:a.finder),location_l2:this.toLowerSnake(s==null||(o=s.secondaryLocations)==null?void 0:o.finderResults),interaction_description:`Finder search results was selected`}))}},{key:`sendCanvasEmptyBoxAction`,value:function sendCanvasEmptyBoxAction(e){var t,n,r,i,a,o,s=e.targetName,c=e.metadata,l=c===void 0?{}:c,u=e.containerCreated,d=u===void 0?null:u,f=this.getConfig(),p=this.createBasePayload({interaction_type:this.toLowerSnake(f==null||(t=f.triggers)==null?void 0:t.click),target_type:f==null||(n=f.targetTypes)==null?void 0:n.buttons,target_name:s,interaction_result:f==null||(r=f.interactionResults)==null?void 0:r.selected,target_location:this.toLowerSnake(f==null||(i=f.locations)==null?void 0:i.canvas),location_l1:this.toLowerSnake(f==null||(a=f.secondaryLocations)==null?void 0:a.emptyBox),interaction_description:`Empty box on canvas actions`});return Object.keys(l).length>0&&(p.metadata=l),d!==null&&(p.state=d),this.dispatchEvent(f==null||(o=f.names)==null||(o=o.editorOne)==null?void 0:o.canvasEmptyBoxAction,p)}},{key:`sendWidgetPanelSearch`,value:function sendWidgetPanelSearch(e){var t,n,r,i,a,o,s,c,l=e.resultsCount,u=e.userInput,d=u===void 0?null:u,f=this.getConfig(),p=l>0,m=this.createBasePayload({interaction_type:this.toLowerSnake(f==null||(t=f.triggers)==null?void 0:t.typing),target_type:f==null||(n=f.targetTypes)==null?void 0:n.searchWidget,target_name:`search_widget`,interaction_result:p?f==null||(r=f.interactionResults)==null?void 0:r.resultsUpdated:f==null||(i=f.interactionResults)==null?void 0:i.noResults,target_location:this.toLowerSnake(f==null||(a=f.locations)==null?void 0:a.leftPanel),location_l1:this.toLowerSnake(f==null||(o=f.locations)==null?void 0:o.widgetPanel),location_l2:this.toLowerSnake(f==null||(s=f.secondaryLocations)==null?void 0:s.searchBar),interaction_description:`Widget search input, follows debounce behavior`});return!p&&d&&(m.metadata={user_input:d}),this.dispatchEvent(f==null||(c=f.names)==null||(c=c.editorOne)==null?void 0:c.widgetPanelSearch,m)}},{key:`createWpDashPayload`,value:function createWpDashPayload(){var e,t,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=this.getConfig();return this.createBasePayload(_objectSpread$1({window_name:(e=i==null||(t=i.appTypes)==null?void 0:t.wpDash)==null?`wpdash`:e,target_location:this.toLowerSnake(i==null||(n=i.locations)==null?void 0:n.wpDashAdmin),location_l2:``},r))}},{key:`sendWpDashElementorMenuClick`,value:function sendWpDashElementorMenuClick(){var e,t,n,r,i,a=this.getConfig();return this.dispatchEvent(a==null||(e=a.names)==null||(e=e.editorOne)==null?void 0:e.wpDashElementorMenuClick,this.createWpDashPayload({interaction_type:this.toLowerSnake(a==null||(t=a.triggers)==null?void 0:t.click),target_type:a==null||(n=a.targetTypes)==null?void 0:n.wpDashAdminMenuItem,target_name:`elementor_menu_item`,interaction_result:a==null||(r=a.interactionResults)==null?void 0:r.elementorSideMenuOpened,location_l1:this.toLowerSnake(a==null||(i=a.secondaryLocations)==null?void 0:i.wpDashElementorCoreMenu),interaction_description:`core_user_clicked_elementor_menu_item`}))}},{key:`sendWpDashEditorSubMenuHover`,value:function sendWpDashEditorSubMenuHover(){var e,t,n,r,i,a=this.getConfig();return this.dispatchEvent(a==null||(e=a.names)==null||(e=e.editorOne)==null?void 0:e.wpDashEditorSubMenuHover,this.createWpDashPayload({interaction_type:this.toLowerSnake(a==null||(t=a.triggers)==null?void 0:t.hover),target_type:a==null||(n=a.targetTypes)==null?void 0:n.wpDashEditorMenu,target_name:`wpdash_editor_sub_menu`,interaction_result:a==null||(r=a.interactionResults)==null?void 0:r.editorSubMenuOpened,location_l1:this.toLowerSnake(a==null||(i=a.secondaryLocations)==null?void 0:i.wpDashElementorCoreSubMenu),interaction_description:`core_user_hovered_sub_menu`}))}},{key:`sendWpDashThemeBuilderClick`,value:function sendWpDashThemeBuilderClick(){var e,t,n,r,i,a=this.getConfig();return this.dispatchEvent(a==null||(e=a.names)==null||(e=e.editorOne)==null?void 0:e.wpDashThemeBuilderClick,this.createWpDashPayload({interaction_type:this.toLowerSnake(a==null||(t=a.triggers)==null?void 0:t.click),target_type:a==null||(n=a.targetTypes)==null?void 0:n.wpDashSubMenuItem,target_name:`theme_builder_menu_item`,interaction_result:a==null||(r=a.interactionResults)==null?void 0:r.themeBuilderPromotionWindow,location_l1:this.toLowerSnake(a==null||(i=a.secondaryLocations)==null?void 0:i.wpDashThemeBuilder),interaction_description:`core_user_clicked_theme_builder_menu_item`}))}},{key:`sendSidebarMenuItemClicked`,value:function sendSidebarMenuItemClicked(e){var t=e.eventId,n=e.groupEventId;try{var r,i,a,o,s,c,l=this.getConfig(),u=this.createBasePayload({window_name:l==null||(r=l.windowNames)==null?void 0:r.sidebarMenu,interaction_type:this.toLowerSnake(l==null||(i=l.triggers)==null?void 0:i.click),target_type:l==null||(a=l.targetTypes)==null?void 0:a.link,target_name:t,interaction_result:l==null||(o=l.interactionResults)==null?void 0:o.pageOpened,target_location:this.toLowerSnake(l==null||(s=l.locations)==null?void 0:s.sidebar)});return n&&(u.location_l1=n),this.dispatchEvent(l==null||(c=l.names)==null||(c=c.editorOne)==null?void 0:c.sidebarMenuItemClicked,u)}catch(e){return!1}}},{key:`sendSidebarMenuGroupToggled`,value:function sendSidebarMenuGroupToggled(e){var t=e.eventId,n=e.isExpanded;try{var r,i,a,o,s,c,l,u=this.getConfig(),d=n?u==null||(r=u.interactionResults)==null?void 0:r.expanded:u==null||(i=u.interactionResults)==null?void 0:i.collapsed;return this.dispatchEvent(u==null||(a=u.names)==null||(a=a.editorOne)==null?void 0:a.sidebarMenuGroupToggled,this.createBasePayload({window_name:u==null||(o=u.windowNames)==null?void 0:o.sidebarMenu,interaction_type:this.toLowerSnake(u==null||(s=u.triggers)==null?void 0:s.click),target_type:u==null||(c=u.targetTypes)==null?void 0:c.toggle,target_name:t,interaction_result:d,target_location:this.toLowerSnake(u==null||(l=u.locations)==null?void 0:l.sidebar)}))}catch(e){return!1}}}])}()}));function SelectPreset(n){var r=elementor.helpers.container,i=function onPresetSelected(e,t){X.sendCanvasEmptyBoxAction({targetName:`add_container`,metadata:{container_type:`flexbox`,structure_type:e},containerCreated:!0}),r.createContainerFromPreset(e,t,{createWrapper:!1})};return t.default.createElement(t.default.Fragment,null,t.default.createElement(`button`,{type:`button`,className:`elementor-add-section-close`,"aria-label":(0,e.__)(`Close`,`elementor`),onClick:function handleClose(){X.sendCanvasEmptyBoxAction({targetName:`close`,containerCreated:!1}),n.setIsRenderPresets(!1)}},t.default.createElement(`i`,{className:`eicon-close`,"aria-hidden":`true`})),t.default.createElement(`div`,{className:`e-view e-con-select-preset`},t.default.createElement(`div`,{className:`e-con-select-preset__title`},(0,e.__)(`Select your Structure`,`elementor`)),t.default.createElement(`div`,{className:`e-con-select-preset__list`},elementor.presetsFactory.getContainerPresets().map(function(e){return t.default.createElement(`button`,{type:`button`,className:`e-con-preset`,"data-preset":e,key:e,onClick:function onClick(){return i(e,n.container)},dangerouslySetInnerHTML:{__html:elementor.presetsFactory.generateContainerPreset(e)}})}))))}var Z,_e=__esmMin((()=>{Z=__toESM(q()),ge(),SelectPreset.propTypes={container:Z.default.object.isRequired,setIsRenderPresets:Z.default.func.isRequired}}));function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Empty(e){var n=_slicedToArray((0,t.useState)(!1),2),r=n[0],i=n[1];return e=_objectSpread(_objectSpread({},e),{},{setIsRenderPresets:i}),r?t.default.createElement(SelectPreset,e):t.default.createElement(AddSectionArea,e)}var Q,ve=__esmMin((()=>{Q=__toESM(q()),b(),he(),Y(),_e(),Empty.propTypes={container:Q.default.object.isRequired}})),ye=__exportAll({NestedElementTypesBase:()=>$,default:()=>$});function _callSuper(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!e})()}var $,be=__esmMin((()=>{c(),f(),g(),_(),y(),K(),ve(),$=function(e){function NestedElementTypesBase(){return _classCallCheck(this,NestedElementTypesBase),_callSuper(this,NestedElementTypesBase,arguments)}return _inherits(NestedElementTypesBase,e),_createClass(NestedElementTypesBase,[{key:`getType`,value:function getType(){elementorModules.ForceMethodImplementation()}},{key:`getView`,value:function getView(){return G}},{key:`getEmptyView`,value:function getEmptyView(){return Empty}},{key:`getModel`,value:function getModel(){return $e.components.get(`nested-elements/nested-repeater`).exports.NestedModelBase}}])}(elementor.modules.elements.types.Base)}));elementorCommon.elements.$window.on(`elementor:init-components`,function(){elementor.modules.nestedElements=m(()=>Promise.resolve().then(()=>(U(),V)),void 0),elementor.modules.nestedElements.then(function(e){elementor.modules.nestedElements=new e.default,elementor.modules.elements.types.NestedElementBase=m(()=>Promise.resolve().then(()=>(be(),ye)),void 0),elementor.modules.elements.types.NestedElementBase.then(function(e){elementor.modules.elements.types.NestedElementBase=e.default,m(()=>Promise.resolve().then(()=>(K(),W)).then(function(e){$e.components.get(`nested-elements`).exports={NestedView:e.default}}),void 0).then(function(){p.dispatch(elementorCommon.elements.$window,`elementor/nested-element-type-loaded`)})})})})})(wp.i18n,React); |
|
2
|
+(()=>{var e,t,r={36404:(e,t,r)=>{"use strict";var n=r(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Events=void 0;var o=n(r(78983)),_=n(r(42081)),i=function(){function Events(){(0,o.default)(this,Events)}return(0,_.default)(Events,null,[{key:"dispatch",value:function dispatch(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e instanceof jQuery?e[0]:e,n&&e.dispatchEvent(new CustomEvent(n,{detail:r})),e.dispatchEvent(new CustomEvent(t,{detail:r}))}}]),Events}();t.Events=i;var u=i;t.default=u},87363:e=>{"use strict";e.exports=React},38003:e=>{"use strict";e.exports=wp.i18n},78983:e=>{e.exports=function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},42081:(e,t,r)=>{var n=r(74040);function _defineProperties(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}e.exports=function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},73203:e=>{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},56027:(e,t,r)=>{var n=r(7501).default;e.exports=function _toPrimitive(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},74040:(e,t,r)=>{var n=r(7501).default,o=r(56027);e.exports=function _toPropertyKey(e){var t=o(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},7501:e=>{function _typeof(t){return e.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,_typeof(t)}e.exports=_typeof,e.exports.__esModule=!0,e.exports.default=e.exports}},n={};function __webpack_require__(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,__webpack_require__),o.exports}__webpack_require__.m=r,__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,r)=>(__webpack_require__.f[r](e,t),t)),[])),__webpack_require__.u=e=>648===e?"adadcfdaada40ff3919c.bundle.min.js":16===e?"7fada1a61d72da6d46ab.bundle.min.js":145===e?"be69c0d71c69e96d6a96.bundle.min.js":void 0,__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="elementor:",__webpack_require__.l=(r,n,o,_)=>{if(e[r])e[r].push(n);else{var i,u;if(void 0!==o)for(var a=document.getElementsByTagName("script"),s=0;s<a.length;s++){var l=a[s];if(l.getAttribute("src")==r||l.getAttribute("data-webpack")==t+o){i=l;break}}i||(u=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var onScriptComplete=(t,n)=>{i.onerror=i.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=onScriptComplete.bind(null,i.onerror),i.onload=onScriptComplete.bind(null,i.onload),u&&document.head.appendChild(i)}},(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={593:0};__webpack_require__.f.j=(t,r)=>{var n=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var _=__webpack_require__.p+__webpack_require__.u(t),i=new Error;__webpack_require__.l(_,(r=>{if(__webpack_require__.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),_=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+_+")",i.name="ChunkLoadError",i.type=o,i.request=_,n[1](i)}}),"chunk-"+t,t)}};var webpackJsonpCallback=(t,r)=>{var n,o,[_,i,u]=r,a=0;if(_.some((t=>0!==e[t]))){for(n in i)__webpack_require__.o(i,n)&&(__webpack_require__.m[n]=i[n]);if(u)u(__webpack_require__)}for(t&&t(r);a<_.length;a++)o=_[a],__webpack_require__.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunkelementor=self.webpackChunkelementor||[];t.forEach(webpackJsonpCallback.bind(null,0)),t.push=webpackJsonpCallback.bind(null,t.push.bind(t))})(),(()=>{"use strict";var e=__webpack_require__(73203)(__webpack_require__(36404));elementorCommon.elements.$window.on("elementor:init-components",(function(){elementor.modules.nestedElements=__webpack_require__.e(648).then(__webpack_require__.bind(__webpack_require__,9648)),elementor.modules.nestedElements.then((function(t){elementor.modules.nestedElements=new t.default,elementor.modules.elements.types.NestedElementBase=__webpack_require__.e(16).then(__webpack_require__.bind(__webpack_require__,93016)),elementor.modules.elements.types.NestedElementBase.then((function(t){elementor.modules.elements.types.NestedElementBase=t.default,__webpack_require__.e(145).then(__webpack_require__.bind(__webpack_require__,67145)).then((function(e){$e.components.get("nested-elements").exports={NestedView:e.default}})).then((function(){e.default.dispatch(elementorCommon.elements.$window,"elementor/nested-element-type-loaded")}))}))}))}))})()})(); |