/*! elementor - v3.18.0 - 20-12-2023 */ /*! For license information please see editor.min.js.LICENSE.txt */ (()=>{var C={71177:(C,T,B)=>{"use strict";function n(C){for(var T=arguments.length,B=Array(T>1?T-1:0),V=1;V3?T.i-4:T.i:Array.isArray(C)?1:s(C)?2:v(C)?3:0}function u(C,T){return 2===o(C)?C.has(T):Object.prototype.hasOwnProperty.call(C,T)}function a(C,T){return 2===o(C)?C.get(T):C[T]}function f(C,T,B){var V=o(C);2===V?C.set(T,B):3===V?C.add(B):C[T]=B}function c(C,T){return C===T?0!==C||1/C==1/T:C!=C&&T!=T}function s(C){return q&&C instanceof Map}function v(C){return W&&C instanceof Set}function p(C){return C.o||C.t}function l(C){if(Array.isArray(C))return Array.prototype.slice.call(C);var T=X(C);delete T[K];for(var B=J(T),V=0;V1&&(C.set=C.add=C.clear=C.delete=h),Object.freeze(C),T&&i(C,(function(C,T){return d(T,!0)}),!0)),C}function h(){n(2)}function y(C){return null==C||"object"!=typeof C||Object.isFrozen(C)}function b(C){var T=Y[C];return T||n(18,C),T}function m(C,T){Y[C]||(Y[C]=T)}function _(){return $}function j(C,T){T&&(b("Patches"),C.u=[],C.s=[],C.v=T)}function g(C){O(C),C.p.forEach(S),C.p=null}function O(C){C===$&&($=C.l)}function w(C){return $={p:[],l:$,h:C,m:!0,_:0}}function S(C){var T=C[K];0===T.i||1===T.i?T.j():T.g=!0}function P(C,T){T._=T.p.length;var B=T.p[0],V=void 0!==C&&C!==B;return T.h.O||b("ES5").S(T,C,V),V?(B[K].P&&(g(T),n(4)),t(C)&&(C=M(T,C),T.l||x(T,C)),T.u&&b("Patches").M(B[K].t,C,T.u,T.s)):C=M(T,B,[]),g(T),T.u&&T.v(T.u,T.s),C!==H?C:void 0}function M(C,T,B){if(y(T))return T;var V=T[K];if(!V)return i(T,(function($,L){return A(C,V,T,$,L,B)}),!0),T;if(V.A!==C)return T;if(!V.P)return x(C,V.t,!0),V.t;if(!V.I){V.I=!0,V.A._--;var $=4===V.i||5===V.i?V.o=l(V.k):V.o,L=$,q=!1;3===V.i&&(L=new Set($),$.clear(),q=!0),i(L,(function(T,L){return A(C,V,$,T,L,B,q)})),x(C,$,!1),B&&C.u&&b("Patches").N(V,B,C.u,C.s)}return V.o}function A(C,T,B,V,$,L,q){if(r($)){var W=M(C,$,L&&T&&3!==T.i&&!u(T.R,V)?L.concat(V):void 0);if(f(B,V,W),!r(W))return;C.m=!1}else q&&B.add($);if(t($)&&!y($)){if(!C.h.D&&C._<1)return;M(C,$),T&&T.A.l||x(C,$)}}function x(C,T,B){void 0===B&&(B=!1),!C.l&&C.h.D&&C.m&&d(T,B)}function z(C,T){var B=C[K];return(B?p(B):C)[T]}function I(C,T){if(T in C)for(var B=Object.getPrototypeOf(C);B;){var V=Object.getOwnPropertyDescriptor(B,T);if(V)return V;B=Object.getPrototypeOf(B)}}function k(C){C.P||(C.P=!0,C.l&&k(C.l))}function E(C){C.o||(C.o=l(C.t))}function N(C,T,B){var V=s(T)?b("MapSet").F(T,B):v(T)?b("MapSet").T(T,B):C.O?function(C,T){var B=Array.isArray(C),V={i:B?1:0,A:T?T.A:_(),P:!1,I:!1,R:{},l:T,t:C,k:null,o:null,j:null,C:!1},$=V,L=Z;B&&($=[V],L=ee);var q=Proxy.revocable($,L),W=q.revoke,U=q.proxy;return V.k=U,V.j=W,U}(T,B):b("ES5").J(T,B);return(B?B.A:_()).p.push(V),V}function R(C){return r(C)||n(22,C),function n(C){if(!t(C))return C;var T,B=C[K],V=o(C);if(B){if(!B.P&&(B.i<4||!b("ES5").K(B)))return B.t;B.I=!0,T=D(C,V),B.I=!1}else T=D(C,V);return i(T,(function(C,V){B&&a(B.t,C)===V||f(T,C,n(V))})),3===V?new Set(T):T}(C)}function D(C,T){switch(T){case 2:return new Map(C);case 3:return Array.from(C)}return l(C)}function F(){function t(T,B){var V=C[T];return V?V.enumerable=B:C[T]=V={configurable:!0,enumerable:B,get:function(){var C=this[K];return Z.get(C,T)},set:function(C){var B=this[K];Z.set(B,T,C)}},V}function e(C){for(var T=C.length-1;T>=0;T--){var B=C[T][K];if(!B.P)switch(B.i){case 5:a(B)&&k(B);break;case 4:o(B)&&k(B)}}}function o(C){for(var T=C.t,B=C.k,V=J(B),$=V.length-1;$>=0;$--){var L=V[$];if(L!==K){var q=T[L];if(void 0===q&&!u(T,L))return!0;var W=B[L],U=W&&W[K];if(U?U.t!==q:!c(W,q))return!0}}var H=!!T[K];return V.length!==J(T).length+(H?0:1)}function a(C){var T=C.k;if(T.length!==C.t.length)return!0;var B=Object.getOwnPropertyDescriptor(T,T.length-1);if(B&&!B.get)return!0;for(var V=0;VSe,MiddlewareArray:()=>ke,SHOULD_AUTOBATCH:()=>Ue,TaskAbortError:()=>Ve,__DO_NOT_USE__ActionTypes:()=>le,addListener:()=>Fe,applyMiddleware:()=>applyMiddleware,autoBatchEnhancer:()=>autoBatchEnhancer,bindActionCreators:()=>bindActionCreators,clearAllListeners:()=>ze,combineReducers:()=>combineReducers,compose:()=>compose,configureStore:()=>configureStore,createAction:()=>createAction,createActionCreatorInvariantMiddleware:()=>createActionCreatorInvariantMiddleware,createAsyncThunk:()=>Me,createDraftSafeSelector:()=>createDraftSafeSelector,createEntityAdapter:()=>createEntityAdapter,createImmutableStateInvariantMiddleware:()=>createImmutableStateInvariantMiddleware,createListenerMiddleware:()=>createListenerMiddleware,createNextState:()=>oe,createReducer:()=>createReducer,createSelector:()=>de,createSerializableStateInvariantMiddleware:()=>createSerializableStateInvariantMiddleware,createSlice:()=>createSlice,createStore:()=>createStore,current:()=>R,findNonSerializableValue:()=>findNonSerializableValue,freeze:()=>d,getDefaultMiddleware:()=>getDefaultMiddleware,getType:()=>getType,isAction:()=>isAction,isActionCreator:()=>isActionCreator,isAllOf:()=>isAllOf,isAnyOf:()=>isAnyOf,isAsyncThunkAction:()=>isAsyncThunkAction,isDraft:()=>r,isFluxStandardAction:()=>isFSA,isFulfilled:()=>isFulfilled,isImmutableDefault:()=>isImmutableDefault,isPending:()=>isPending,isPlain:()=>isPlain,isPlainObject:()=>redux_toolkit_esm_isPlainObject,isRejected:()=>isRejected,isRejectedWithValue:()=>isRejectedWithValue,legacy_createStore:()=>ue,miniSerializeError:()=>miniSerializeError,nanoid:()=>nanoid,original:()=>e,prepareAutoBatched:()=>prepareAutoBatched,removeListener:()=>qe,unwrapResult:()=>unwrapResult});var V,$,L="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),q="undefined"!=typeof Map,W="undefined"!=typeof Set,U="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=L?Symbol.for("immer-nothing"):((V={})["immer-nothing"]=!0,V),G=L?Symbol.for("immer-draftable"):"__$immer_draftable",K=L?Symbol.for("immer-state"):"__$immer_state",Q=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),J="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(C){return Object.getOwnPropertyNames(C).concat(Object.getOwnPropertySymbols(C))}:Object.getOwnPropertyNames,X=Object.getOwnPropertyDescriptors||function(C){var T={};return J(C).forEach((function(B){T[B]=Object.getOwnPropertyDescriptor(C,B)})),T},Y={},Z={get:function(C,T){if(T===K)return C;var B=p(C);if(!u(B,T))return function(C,T,B){var V,$=I(T,B);return $?"value"in $?$.value:null===(V=$.get)||void 0===V?void 0:V.call(C.k):void 0}(C,B,T);var V=B[T];return C.I||!t(V)?V:V===z(C.t,T)?(E(C),C.o[T]=N(C.A.h,V,C)):V},has:function(C,T){return T in p(C)},ownKeys:function(C){return Reflect.ownKeys(p(C))},set:function(C,T,B){var V=I(p(C),T);if(null==V?void 0:V.set)return V.set.call(C.k,B),!0;if(!C.P){var $=z(p(C),T),L=null==$?void 0:$[K];if(L&&L.t===B)return C.o[T]=B,C.R[T]=!1,!0;if(c(B,$)&&(void 0!==B||u(C.t,T)))return!0;E(C),k(C)}return C.o[T]===B&&(void 0!==B||T in C.o)||Number.isNaN(B)&&Number.isNaN(C.o[T])||(C.o[T]=B,C.R[T]=!0),!0},deleteProperty:function(C,T){return void 0!==z(C.t,T)||T in C.t?(C.R[T]=!1,E(C),k(C)):delete C.R[T],C.o&&delete C.o[T],!0},getOwnPropertyDescriptor:function(C,T){var B=p(C),V=Reflect.getOwnPropertyDescriptor(B,T);return V?{writable:!0,configurable:1!==C.i||"length"!==T,enumerable:V.enumerable,value:B[T]}:V},defineProperty:function(){n(11)},getPrototypeOf:function(C){return Object.getPrototypeOf(C.t)},setPrototypeOf:function(){n(12)}},ee={};i(Z,(function(C,T){ee[C]=function(){return arguments[0]=arguments[0][0],T.apply(this,arguments)}})),ee.deleteProperty=function(C,T){return ee.set.call(this,C,T,void 0)},ee.set=function(C,T,B){return Z.set.call(this,C[0],T,B,C[0])};var te=function(){function e(C){var T=this;this.O=U,this.D=!0,this.produce=function(C,B,V){if("function"==typeof C&&"function"!=typeof B){var $=B;B=C;var L=T;return function(C){var T=this;void 0===C&&(C=$);for(var V=arguments.length,q=Array(V>1?V-1:0),W=1;W1?V-1:0),L=1;L=0;B--){var V=T[B];if(0===V.path.length&&"replace"===V.op){C=V.value;break}}B>-1&&(T=T.slice(B+1));var $=b("Patches").$;return r(C)?$(C,T):this.produce(C,(function(C){return $(C,T)}))},e}(),ne=new te,re=ne.produce;ne.produceWithPatches.bind(ne),ne.setAutoFreeze.bind(ne),ne.setUseProxies.bind(ne),ne.applyPatches.bind(ne),ne.createDraft.bind(ne),ne.finishDraft.bind(ne);const oe=re;function _typeof(C){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(C){return typeof C}:function(C){return C&&"function"==typeof Symbol&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_typeof(C)}function _toPropertyKey(C){var T=function _toPrimitive(C,T){if("object"!==_typeof(C)||null===C)return C;var B=C[Symbol.toPrimitive];if(void 0!==B){var V=B.call(C,T||"default");if("object"!==_typeof(V))return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===T?String:Number)(C)}(C,"string");return"symbol"===_typeof(T)?T:String(T)}function ownKeys(C,T){var B=Object.keys(C);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(C);T&&(V=V.filter((function(T){return Object.getOwnPropertyDescriptor(C,T).enumerable}))),B.push.apply(B,V)}return B}function _objectSpread2(C){for(var T=1;T-1){var $=B[V];return V>0&&(B.splice(V,1),B.unshift($)),$.value}return ce}return{get,put:function put(T,V){get(T)===ce&&(B.unshift({key:T,value:V}),B.length>C&&B.pop())},getEntries:function getEntries(){return B},clear:function clear(){B=[]}}}(q,U);function memoized(){var T=H.get(arguments);if(T===ce){if(T=C.apply(null,arguments),W){var B=H.getEntries().find((function(C){return W(C.value,T)}));B&&(T=B.value)}H.put(arguments,T)}return T}return memoized.clearCache=function(){return H.clear()},memoized}function createSelectorCreator(C){for(var T=arguments.length,B=new Array(T>1?T-1:0),V=1;V0&&$[$.length-1])||6!==L[0]&&2!==L[0])){q=0;continue}if(3===L[0]&&(!$||L[1]>$[0]&&L[1]<$[3])){q.label=L[1];break}if(6===L[0]&&q.label<$[1]){q.label=$[1],$=L;break}if($&&q.label<$[2]){q.label=$[2],q.ops.push(L);break}$[2]&&q.ops.pop(),q.trys.pop();continue}L=T.call(C,q)}catch(C){L=[6,C],V=0}finally{B=$=0}if(5&L[0])throw L[1];return{value:L[0]?L[1]:void 0,done:!0}}([L,W])}}},__spreadArray=function(C,T){for(var B=0,V=T.length,$=C.length;B-1}function getType(C){return""+C}function createActionCreatorInvariantMiddleware(C){return void 0===C&&(C={}),function(){return function(C){return function(T){return C(T)}}}}var ke=function(C){function MiddlewareArray(){for(var T=[],B=0;B",value:C};if("object"!=typeof C||null===C)return!1;if(null==L?void 0:L.has(C))return!1;for(var W=null!=V?V(C):Object.entries(C),U=$.length>0,_loop_2=function(C,W){var H=T?T+"."+C:C;if(U&&$.some((function(C){return C instanceof RegExp?C.test(H):H===C})))return"continue";return B(W)?"object"==typeof W&&(q=findNonSerializableValue(W,H,B,V,$,L))?{value:q}:void 0:{value:{keyPath:H,value:W}}},H=0,G=W;H0){var L=T.filter((function(T){return function takeNewKey(T,B,V){var $=V.entities[B.id],L=Object.assign({},$,B.changes),q=selectIdValue(L,C),W=q!==B.id;return W&&(T[B.id]=q,delete V.entities[B.id]),V.entities[q]=L,W}(V,T,B)})).length>0;L&&(B.ids=Object.keys(B.entities))}}function upsertManyMutably(T,B){var V=splitAddedUpdatedEntities(T,C,B),$=V[0];updateManyMutably(V[1],B),addManyMutably($,B)}return{removeAll:(T=function removeAllMutably(C){Object.assign(C,{ids:[],entities:{}})},B=createStateOperator((function(C,B){return T(B)})),function operation(C){return B(C,void 0)}),addOne:createStateOperator(addOneMutably),addMany:createStateOperator(addManyMutably),setOne:createStateOperator(setOneMutably),setMany:createStateOperator((function setManyMutably(C,T){for(var B=0,V=C=ensureEntitiesArray(C);B-1;return B&&V}function isAsyncThunkArray(C){return"function"==typeof C[0]&&"pending"in C[0]&&"fulfilled"in C[0]&&"rejected"in C[0]}function isPending(){for(var C=[],T=0;T0)for(var U=C.getState(),H=Array.from(B.values()),G=0,K=H;G{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.stringToRemValues=T.rgbToHex=T.pxToRem=T.isOneOf=T.arrayToObjectByKey=T.arrayToClassName=void 0;var $=V(B(7501)),L=function pxToRem(C){if(C)return"string"!=typeof C&&(C=C.toString()),C.split(" ").map((function(C){return"".concat(.0625*C,"rem")})).join(" ")};T.pxToRem=L;T.arrayToClassName=function arrayToClassName(C,T){return C.filter((function(C){return"object"===(0,$.default)(C)?Object.entries(C)[0][1]:C})).map((function(C){var B="object"===(0,$.default)(C)?Object.entries(C)[0][0]:C;return T?T(B):B})).join(" ")};T.stringToRemValues=function stringToRemValues(C){return C.split(" ").map((function(C){return L(C)})).join(" ")};T.rgbToHex=function rgbToHex(C,T,B){return"#"+[C,T,B].map((function(C){var T=C.toString(16);return 1===T.length?"0"+T:T})).join("")};T.isOneOf=function isOneOf(C,T){return T.some((function(T){return C.includes(T)}))};T.arrayToObjectByKey=function arrayToObjectByKey(C,T){var B={};return C.forEach((function(C){return B[C[T]]=C})),B}},8074:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var H=function(C){(0,q.default)(CommandContainerBase,C);var T=_createSuper(CommandContainerBase);function CommandContainerBase(){return(0,$.default)(this,CommandContainerBase),T.apply(this,arguments)}return(0,L.default)(CommandContainerBase,[{key:"requireContainer",value:function requireContainer(){var C=this,T=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.args;if(!T.container&&!T.containers)throw Error("container or containers are required.");if(T.container&&T.containers)throw Error("container and containers cannot go together please select one of them.");(T.containers||[T.container]).forEach((function(T){C.requireArgumentInstance("container",elementorModules.editor.Container,{container:T})}))}}],[{key:"getInstanceType",value:function getInstanceType(){return"CommandContainerBase"}}]),CommandContainerBase}(V(B(83024)).default);T.default=H},75238:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910)),H=V(B(19263));V(B(27108)),V(B(53005));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var G=function(C){(0,q.default)(ComponentBase,C);var T=_createSuper(ComponentBase);function ComponentBase(){return(0,$.default)(this,ComponentBase),T.apply(this,arguments)}return(0,L.default)(ComponentBase,[{key:"activateControl",value:function activateControl(C){var T;if(C){var B=elementor.getPanelView().getCurrentPageView(),V=B.content?B.content.currentView:B,$=this.getControlViewByPath(V,C);null===(T=$.activate)||void 0===T||T.call($)}}},{key:"getControlViewByPath",value:function getControlViewByPath(C,T){var B=T.split("/"),V=C.getControlViewByName(B[0]);return B.slice(1).forEach((function(C){var T,B;V=null===(T=(B=V).getChildControlView)||void 0===T?void 0:T.call(B,C)})),V}}]),ComponentBase}(H.default);T.default=G},20324:(C,T,B)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(T,"Validate",{enumerable:!0,get:function get(){return V.Validate}});var V=B(20569)},20569:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=T.Validate=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var H=function(C){(0,q.default)(Validate,C);var T=_createSuper(Validate);function Validate(){return(0,$.default)(this,Validate),T.apply(this,arguments)}return(0,L.default)(Validate,[{key:"apply",value:function apply(C){var T=C.input,B=C.options,V=void 0===B?{}:B;return this.component.manager.createSession(T,elementor.getPreviewContainer(),V).then((function(C){return C.validate()}))}}]),Validate}($e.modules.CommandBase);T.Validate=H;var G=H;T.default=G},3768:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=T.Import=void 0;var $=V(B(50824)),L=V(B(10029)),q=V(B(78983)),W=V(B(42081)),U=V(B(58724)),H=V(B(71173)),G=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,G.default)(C);if(T){var $=(0,G.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,H.default)(this,B)}}var K=function(C){(0,U.default)(Import,C);var T=_createSuper(Import);function Import(){return(0,q.default)(this,Import),T.apply(this,arguments)}return(0,W.default)(Import,[{key:"validateArgs",value:function validateArgs(){this.requireArgumentInstance("target",elementorModules.editor.Container)}},{key:"apply",value:function apply(C){var T=this,B=C.targets,V=void 0===B?[C.target]:B,q=C.input,W=C.options,U=void 0===W?{}:W,H=[];return V.forEach((function(C){H.push(T.component.manager.createSession(q,C,U).then(function(){var C=(0,L.default)($.default.mark((function _callee(C){return $.default.wrap((function _callee$(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,C.validate();case 2:if(!T.sent){T.next=4;break}C.apply();case 4:case"end":return T.stop()}}),_callee)})));return function(T){return C.apply(this,arguments)}}()))})),Promise.all(H)}}]),Import}($e.modules.CommandBase);T.Import=K;var Q=K;T.default=Q},80208:(C,T,B)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(T,"Import",{enumerable:!0,get:function get(){return V.Import}});var V=B(3768)},50133:(C,T,B)=>{"use strict";var V=B(73203),$=B(7501);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var L=V(B(78983)),q=V(B(42081)),W=V(B(58724)),U=V(B(71173)),H=V(B(74910)),G=_interopRequireWildcard(B(80208)),K=_interopRequireWildcard(B(20324));function _getRequireWildcardCache(C){if("function"!=typeof WeakMap)return null;var T=new WeakMap,B=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(C){return C?B:T})(C)}function _interopRequireWildcard(C,T){if(!T&&C&&C.__esModule)return C;if(null===C||"object"!==$(C)&&"function"!=typeof C)return{default:C};var B=_getRequireWildcardCache(T);if(B&&B.has(C))return B.get(C);var V={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in C)if("default"!==q&&Object.prototype.hasOwnProperty.call(C,q)){var W=L?Object.getOwnPropertyDescriptor(C,q):null;W&&(W.get||W.set)?Object.defineProperty(V,q,W):V[q]=C[q]}return V.default=C,B&&B.set(C,V),V}function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,H.default)(C);if(T){var $=(0,H.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,U.default)(this,B)}}var Q=function(C){(0,W.default)(Component,C);var T=_createSuper(Component);function Component(){return(0,L.default)(this,Component),T.apply(this,arguments)}return(0,q.default)(Component,[{key:"getNamespace",value:function getNamespace(){return"editor/browser-import"}},{key:"defaultCommands",value:function defaultCommands(){return this.importCommands(G)}},{key:"defaultCommandsInternal",value:function defaultCommandsInternal(){return this.importCommands(K)}}]),Component}($e.modules.ComponentBase);T.default=Q},74499:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(39841));function _createForOfIteratorHelper(C,T){var B="undefined"!=typeof Symbol&&C[Symbol.iterator]||C["@@iterator"];if(!B){if(Array.isArray(C)||(B=function _unsupportedIterableToArray(C,T){if(!C)return;if("string"==typeof C)return _arrayLikeToArray(C,T);var B=Object.prototype.toString.call(C).slice(8,-1);"Object"===B&&C.constructor&&(B=C.constructor.name);if("Map"===B||"Set"===B)return Array.from(C);if("Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return _arrayLikeToArray(C,T)}(C))||T&&C&&"number"==typeof C.length){B&&(C=B);var V=0,$=function F(){};return{s:$,n:function n(){return V>=C.length?{done:!0}:{done:!1,value:C[V++]}},e:function e(C){throw C},f:$}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var L,q=!0,W=!1;return{s:function s(){B=B.call(C)},n:function n(){var C=B.next();return q=C.done,C},e:function e(C){W=!0,L=C},f:function f(){try{q||null==B.return||B.return()}finally{if(W)throw L}}}}function _arrayLikeToArray(C,T){(null==T||T>C.length)&&(T=C.length);for(var B=0,V=new Array(T);B{"use strict";var V=B(73203),$=B(7501);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var L=V(B(7501)),q=_interopRequireWildcard(B(74983)),W=_interopRequireWildcard(B(31058));function _getRequireWildcardCache(C){if("function"!=typeof WeakMap)return null;var T=new WeakMap,B=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(C){return C?B:T})(C)}function _interopRequireWildcard(C,T){if(!T&&C&&C.__esModule)return C;if(null===C||"object"!==$(C)&&"function"!=typeof C)return{default:C};var B=_getRequireWildcardCache(T);if(B&&B.has(C))return B.get(C);var V={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in C)if("default"!==q&&Object.prototype.hasOwnProperty.call(C,q)){var W=L?Object.getOwnPropertyDescriptor(C,q):null;W&&(W.get||W.set)?Object.defineProperty(V,q,W):V[q]=C[q]}return V.default=C,B&&B.set(C,V),V}var U=function recursiveValues(C){return Object.values(C).map((function(C){return"object"===(0,L.default)(C)?Object.values(C):C}))},H={readers:U(q),parsers:U(W).flat()};T.default=H},20060:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(50824)),L=V(B(10029)),q=V(B(78983)),W=V(B(42081)),U=V(B(93231)),H=function(){function FileParserBase(C){(0,q.default)(this,FileParserBase),(0,U.default)(this,"reader",void 0),(0,U.default)(this,"tasks",[]),this.reader=C}var C,T;return(0,W.default)(FileParserBase,[{key:"parse",value:(T=(0,L.default)($.default.mark((function _callee(){return $.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:case"end":return C.stop()}}),_callee)}))),function parse(){return T.apply(this,arguments)})}],[{key:"getName",value:function getName(){return""}},{key:"getReaders",value:function getReaders(){return[]}},{key:"validate",value:(C=(0,L.default)($.default.mark((function _callee2(C){return $.default.wrap((function _callee2$(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",!1);case 1:case"end":return C.stop()}}),_callee2)}))),function validate(T){return C.apply(this,arguments)})}]),FileParserBase}();T.default=H},12165:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(50824)),L=V(B(10029)),q=V(B(78983)),W=V(B(42081)),U=V(B(93231)),H=function(){function FileReaderBase(C){(0,q.default)(this,FileReaderBase),(0,U.default)(this,"file",void 0),this.file=C}var C,T,B,V;return(0,W.default)(FileReaderBase,[{key:"getFile",value:function getFile(){return this.file}},{key:"getContent",value:(V=(0,L.default)($.default.mark((function _callee(){var C,T;return $.default.wrap((function _callee$(B){for(;;)switch(B.prev=B.next){case 0:return C=new FileReader,T=new Promise((function(T){C.onloadend=function(){return T(C.result)}})),C.readAsText(this.getFile()),B.abrupt("return",T);case 3:case"end":return B.stop()}}),_callee,this)}))),function getContent(){return V.apply(this,arguments)})},{key:"getDataUrl",value:(B=(0,L.default)($.default.mark((function _callee2(){var C,T;return $.default.wrap((function _callee2$(B){for(;;)switch(B.prev=B.next){case 0:return C=new FileReader,T=new Promise((function(T){C.onloadend=function(){return T(C.result)}})),C.readAsDataURL(this.getFile()),B.abrupt("return",T);case 3:case"end":return B.stop()}}),_callee2,this)}))),function getDataUrl(){return B.apply(this,arguments)})}],[{key:"getName",value:function getName(){return""}},{key:"mimeTypes",get:function get(){return[]}},{key:"resolve",value:(T=(0,L.default)($.default.mark((function _callee3(C){return $.default.wrap((function _callee3$(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",!1);case 1:case"end":return C.stop()}}),_callee3)}))),function resolve(C){return T.apply(this,arguments)})},{key:"validate",value:(C=(0,L.default)($.default.mark((function _callee4(C){return $.default.wrap((function _callee4$(T){for(;;)switch(T.prev=T.next){case 0:return this.validator||(this.validator=new RegExp(this.mimeTypes.join("|"),"i")),T.abrupt("return",this.validator.test(C.type));case 2:case"end":return T.stop()}}),_callee4,this)}))),function validate(T){return C.apply(this,arguments)})}]),FileReaderBase}();T.default=H},56192:(C,T,B)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(T,"MediaParser",{enumerable:!0,get:function get(){return V.MediaParser}});var V=B(88927)},88927:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.MediaParser=void 0;var $=V(B(93231)),L=V(B(78983)),q=V(B(42081)),W=V(B(58724)),U=V(B(71173)),H=V(B(74910));function ownKeys(C,T){var B=Object.keys(C);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(C);T&&(V=V.filter((function(T){return Object.getOwnPropertyDescriptor(C,T).enumerable}))),B.push.apply(B,V)}return B}function _objectSpread(C){for(var T=1;T1&&void 0!==arguments[1]?arguments[1]:{};return $e.data.run("create","wp/media",{file:C,options:_objectSpread({progress:!0},T)}).catch((function(C){return elementor.notifications.showToast({message:C.message}),Promise.reject(C)}))}}]),MediaParser}(V(B(20060)).default);T.MediaParser=G},22136:(C,T,B)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(T,"Widget",{enumerable:!0,get:function get(){return V.Widget}});var V=B(50723)},50723:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.Widget=void 0;var $=V(B(50824)),L=V(B(10029)),q=V(B(78983)),W=V(B(42081)),U=V(B(58724)),H=V(B(71173)),G=V(B(74910)),K=V(B(74499));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,G.default)(C);if(T){var $=(0,G.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,H.default)(this,B)}}var Q=function(C){(0,U.default)(Widget,C);var T,B,V=_createSuper(Widget);function Widget(){return(0,q.default)(this,Widget),V.apply(this,arguments)}return(0,W.default)(Widget,[{key:"parse",value:(B=(0,L.default)($.default.mark((function _callee(){var C,T;return $.default.wrap((function _callee$(B){for(;;)switch(B.prev=B.next){case 0:return C=this.reader.getFile(),B.t0=K.default,B.next=4,this.reader.getDataUrl();case 4:return B.t1=B.sent,B.t2=C.name.split(".")[0],B.t3={url:B.t1,alt:B.t2,source:"library"},B.t4={image:B.t3},B.t5={widgetType:"image",settings:B.t4},T=B.t0.createElementContainer.call(B.t0,B.t5),this.upload(C).then((function(C){var B=C.data;$e.internal("document/elements/set-settings",{container:elementor.getContainer(T.id),settings:{image:{url:B.source_url,id:B.id}}})})).catch((function(){elementor.documents.getCurrent().history.setActive(!1),$e.run("document/elements/reset-settings",{container:elementor.getContainer(T.id),options:{external:!0}}),elementor.documents.getCurrent().history.setActive(!0)})),B.abrupt("return",T);case 12:case"end":return B.stop()}}),_callee,this)}))),function parse(){return B.apply(this,arguments)})}],[{key:"getName",value:function getName(){return"widget"}},{key:"getReaders",value:function getReaders(){return["image"]}},{key:"validate",value:(T=(0,L.default)($.default.mark((function _callee2(){return $.default.wrap((function _callee2$(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",!0);case 1:case"end":return C.stop()}}),_callee2)}))),function validate(){return T.apply(this,arguments)})}]),Widget}(B(56192).MediaParser);T.Widget=Q},31058:(C,T,B)=>{"use strict";var V=B(7501);Object.defineProperty(T,"__esModule",{value:!0}),T.video=T.json=T.image=T.base=void 0;var $=_interopRequireWildcard(B(56192));T.base=$;var L=_interopRequireWildcard(B(22136));T.image=L;var q=_interopRequireWildcard(B(46483));T.json=q;var W=_interopRequireWildcard(B(4321));function _getRequireWildcardCache(C){if("function"!=typeof WeakMap)return null;var T=new WeakMap,B=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(C){return C?B:T})(C)}function _interopRequireWildcard(C,T){if(!T&&C&&C.__esModule)return C;if(null===C||"object"!==V(C)&&"function"!=typeof C)return{default:C};var B=_getRequireWildcardCache(T);if(B&&B.has(C))return B.get(C);var $={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in C)if("default"!==q&&Object.prototype.hasOwnProperty.call(C,q)){var W=L?Object.getOwnPropertyDescriptor(C,q):null;W&&(W.get||W.set)?Object.defineProperty($,q,W):$[q]=C[q]}return $.default=C,B&&B.set(C,$),$}T.video=W},5519:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.Elements=void 0;var $=V(B(50824)),L=V(B(10029)),q=V(B(78983)),W=V(B(42081)),U=V(B(58724)),H=V(B(71173)),G=V(B(74910)),K=V(B(20060)),Q=V(B(74499));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,G.default)(C);if(T){var $=(0,G.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,H.default)(this,B)}}var J=function(C){(0,U.default)(Elements,C);var T,B,V=_createSuper(Elements);function Elements(){return(0,q.default)(this,Elements),V.apply(this,arguments)}return(0,W.default)(Elements,[{key:"parse",value:(B=(0,L.default)($.default.mark((function _callee(){return $.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,this.reader.getData();case 2:return C.abrupt("return",C.sent.content.map((function(C){return Q.default.createElementContainer(C)})));case 3:case"end":return C.stop()}}),_callee,this)}))),function parse(){return B.apply(this,arguments)})}],[{key:"getName",value:function getName(){return"elements"}},{key:"getReaders",value:function getReaders(){return["json"]}},{key:"validate",value:(T=(0,L.default)($.default.mark((function _callee2(C){var T;return $.default.wrap((function _callee2$(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,C.getData();case 2:return T=B.sent,B.abrupt("return",T.version&&T.type&&Array.isArray(T.content));case 4:case"end":return B.stop()}}),_callee2)}))),function validate(C){return T.apply(this,arguments)})}]),Elements}(K.default);T.Elements=J},46483:(C,T,B)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(T,"Elements",{enumerable:!0,get:function get(){return V.Elements}});var V=B(5519)},4321:(C,T,B)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(T,"Widget",{enumerable:!0,get:function get(){return V.Widget}});var V=B(35334)},35334:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.Widget=void 0;var $=V(B(50824)),L=V(B(10029)),q=V(B(78983)),W=V(B(42081)),U=V(B(58724)),H=V(B(71173)),G=V(B(74910)),K=V(B(74499));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,G.default)(C);if(T){var $=(0,G.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,H.default)(this,B)}}var Q=function(C){(0,U.default)(Widget,C);var T,B,V=_createSuper(Widget);function Widget(){return(0,q.default)(this,Widget),V.apply(this,arguments)}return(0,W.default)(Widget,[{key:"parse",value:(B=(0,L.default)($.default.mark((function _callee(){var C,T;return $.default.wrap((function _callee$(B){for(;;)switch(B.prev=B.next){case 0:return C=this.reader.getFile(),B.t0=K.default,B.next=4,this.reader.getDataUrl();case 4:return B.t1=B.sent,B.t2=C.name.split(".")[0],B.t3={url:B.t1,alt:B.t2,source:"library"},B.t4={video_type:"hosted",hosted_url:B.t3},B.t5={widgetType:"video",settings:B.t4},T=B.t0.createElementContainer.call(B.t0,B.t5),this.upload(C).then((function(C){var B=C.data;$e.internal("document/elements/set-settings",{container:elementor.getContainer(T.id),settings:{hosted_url:{url:B.source_url,id:B.id}}})})).catch((function(){elementor.documents.getCurrent().history.setActive(!1),$e.run("document/elements/reset-settings",{container:elementor.getContainer(T.id),options:{external:!0}}),elementor.documents.getCurrent().history.setActive(!0)})),B.abrupt("return",T);case 12:case"end":return B.stop()}}),_callee,this)}))),function parse(){return B.apply(this,arguments)})}],[{key:"getName",value:function getName(){return"widget"}},{key:"getReaders",value:function getReaders(){return["video"]}},{key:"validate",value:(T=(0,L.default)($.default.mark((function _callee2(){return $.default.wrap((function _callee2$(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",!0);case 1:case"end":return C.stop()}}),_callee2)}))),function validate(){return T.apply(this,arguments)})}]),Widget}(B(56192).MediaParser);T.Widget=Q},20953:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.Image=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var H=function(C){(0,q.default)(Image,C);var T=_createSuper(Image);function Image(){return(0,$.default)(this,Image),T.apply(this,arguments)}return(0,L.default)(Image,null,[{key:"getName",value:function getName(){return"image"}},{key:"mimeTypes",get:function get(){return["image\\/\\w+"]}}]),Image}(V(B(12165)).default);T.Image=H},74983:(C,T,B)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(T,"Image",{enumerable:!0,get:function get(){return V.Image}}),Object.defineProperty(T,"Json",{enumerable:!0,get:function get(){return L.Json}}),Object.defineProperty(T,"Video",{enumerable:!0,get:function get(){return $.Video}});var V=B(20953),$=B(93509),L=B(28763)},28763:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.Json=void 0;var $=V(B(50824)),L=V(B(10029)),q=V(B(78983)),W=V(B(42081)),U=V(B(58724)),H=V(B(71173)),G=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,G.default)(C);if(T){var $=(0,G.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,H.default)(this,B)}}var K=function(C){(0,U.default)(Json,C);var T,B,V=_createSuper(Json);function Json(){return(0,q.default)(this,Json),V.apply(this,arguments)}return(0,W.default)(Json,[{key:"getData",value:(B=(0,L.default)($.default.mark((function _callee(){return $.default.wrap((function _callee$(C){for(;;)switch(C.prev=C.next){case 0:if(this._data){C.next=4;break}return C.next=3,this.getContent().then((function(C){return JSON.parse(C)}));case 3:this._data=C.sent;case 4:return C.abrupt("return",this._data);case 5:case"end":return C.stop()}}),_callee,this)}))),function getData(){return B.apply(this,arguments)})}],[{key:"getName",value:function getName(){return"json"}},{key:"mimeTypes",get:function get(){return["application/json"]}},{key:"resolve",value:(T=(0,L.default)($.default.mark((function _callee2(C){return $.default.wrap((function _callee2$(T){for(;;)switch(T.prev=T.next){case 0:return T.prev=0,JSON.parse(C),T.abrupt("return","application/json");case 5:return T.prev=5,T.t0=T.catch(0),T.abrupt("return",!1);case 8:case"end":return T.stop()}}),_callee2,null,[[0,5]])}))),function resolve(C){return T.apply(this,arguments)})}]),Json}(V(B(12165)).default);T.Json=K},93509:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.Video=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var H=function(C){(0,q.default)(Video,C);var T=_createSuper(Video);function Video(){return(0,$.default)(this,Video),T.apply(this,arguments)}return(0,L.default)(Video,null,[{key:"getName",value:function getName(){return"video"}},{key:"mimeTypes",get:function get(){return["video\\/\\w+"]}}]),Video}(V(B(12165)).default);T.Video=H},83571:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(93231)),W=V(B(67209));function _createForOfIteratorHelper(C,T){var B="undefined"!=typeof Symbol&&C[Symbol.iterator]||C["@@iterator"];if(!B){if(Array.isArray(C)||(B=function _unsupportedIterableToArray(C,T){if(!C)return;if("string"==typeof C)return _arrayLikeToArray(C,T);var B=Object.prototype.toString.call(C).slice(8,-1);"Object"===B&&C.constructor&&(B=C.constructor.name);if("Map"===B||"Set"===B)return Array.from(C);if("Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return _arrayLikeToArray(C,T)}(C))||T&&C&&"number"==typeof C.length){B&&(C=B);var V=0,$=function F(){};return{s:$,n:function n(){return V>=C.length?{done:!0}:{done:!1,value:C[V++]}},e:function e(C){throw C},f:$}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var L,q=!0,W=!1;return{s:function s(){B=B.call(C)},n:function n(){var C=B.next();return q=C.done,C},e:function e(C){W=!0,L=C},f:function f(){try{q||null==B.return||B.return()}finally{if(W)throw L}}}}function _arrayLikeToArray(C,T){(null==T||T>C.length)&&(T=C.length);for(var B=0,V=new Array(T);B0&&void 0!==arguments[0]?arguments[0]:[];(0,$.default)(this,ItemCollection),(0,q.default)(this,"items",void 0),this.setItems(C)}return(0,L.default)(ItemCollection,[{key:"setItems",value:function setItems(){var C,T=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],B=_createForOfIteratorHelper(T);try{for(B.s();!(C=B.n()).done;){if(!(C.value instanceof W.default))throw new Error("ItemCollection can only contain Item objects")}}catch(C){B.e(C)}finally{B.f()}this.items=T}},{key:"getItems",value:function getItems(){return this.items}},{key:"getFiles",value:function getFiles(){return this.items.map((function(C){return C.getFile()}))}}]),ItemCollection}();T.default=U},67209:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(93231)),W=V(B(90381)),U=V(B(9879)),H=function(){function Item(C){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,$.default)(this,Item),(0,q.default)(this,"file",void 0),(0,q.default)(this,"options",{}),this.file=this.toFile(C),this.options=T}return(0,L.default)(Item,[{key:"toFile",value:function toFile(C){if(!(0,W.default)(C,File)){var T=this.options,B=T.fileName,V={type:T.type||C.type};C=new File(Array.isArray(C)?C:[C],B||this.constructor.createFileName(V),V)}return C}},{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(C){this.options.reader=C}},{key:"setParser",value:function setParser(C){this.options.parser=C}}],[{key:"createFileName",value:function createFileName(C){return[elementorCommon.helpers.getUniqueId(),U.default.getExtension(C.type)].join(".")}}]),Item}();T.default=H},46558:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(50824)),L=V(B(10029)),q=V(B(78983)),W=V(B(42081)),U=V(B(77266)),H=V(B(58724)),G=V(B(71173)),K=V(B(74910)),Q=V(B(93231)),J=V(B(50133)),X=V(B(17878)),Y=V(B(83571)),Z=V(B(36788)),ee=V(B(86036));function _createForOfIteratorHelper(C,T){var B="undefined"!=typeof Symbol&&C[Symbol.iterator]||C["@@iterator"];if(!B){if(Array.isArray(C)||(B=function _unsupportedIterableToArray(C,T){if(!C)return;if("string"==typeof C)return _arrayLikeToArray(C,T);var B=Object.prototype.toString.call(C).slice(8,-1);"Object"===B&&C.constructor&&(B=C.constructor.name);if("Map"===B||"Set"===B)return Array.from(C);if("Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return _arrayLikeToArray(C,T)}(C))||T&&C&&"number"==typeof C.length){B&&(C=B);var V=0,$=function F(){};return{s:$,n:function n(){return V>=C.length?{done:!0}:{done:!1,value:C[V++]}},e:function e(C){throw C},f:$}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var L,q=!0,W=!1;return{s:function s(){B=B.call(C)},n:function n(){var C=B.next();return q=C.done,C},e:function e(C){W=!0,L=C},f:function f(){try{q||null==B.return||B.return()}finally{if(W)throw L}}}}function _arrayLikeToArray(C,T){(null==T||T>C.length)&&(T=C.length);for(var B=0,V=new Array(T);B0&&void 0!==arguments[0]?arguments[0]:{},B=_createForOfIteratorHelper(T.readers||{});try{for(B.s();!(C=B.n()).done;){var V=C.value;this.registerFileReader(V)}}catch(C){B.e(C)}finally{B.f()}var $,L=_createForOfIteratorHelper(T.parsers||{});try{for(L.s();!($=L.n()).done;){var q=$.value;this.registerFileParser(q)}}catch(C){L.e(C)}finally{L.f()}}},{key:"createSession",value:(G=(0,L.default)($.default.mark((function _callee(C,T){var B,V=arguments;return $.default.wrap((function _callee$($){for(;;)switch($.prev=$.next){case 0:if(B=V.length>2&&void 0!==V[2]?V[2]:{},C instanceof Y.default){$.next=5;break}return $.next=4,this.getNormalizer().normalize(C);case 4:C=$.sent;case 5:return $.abrupt("return",new ee.default(this,C,T,B));case 6:case"end":return $.stop()}}),_callee,this)}))),function createSession(C,T){return G.apply(this,arguments)})},{key:"registerFileReader",value:function registerFileReader(C){this.readers[C.getName()]=C}},{key:"registerFileParser",value:function registerFileParser(C){var T,B=_createForOfIteratorHelper(C.getReaders());try{for(B.s();!(T=B.n()).done;){var V=T.value;if(!this.readers[V])throw new Error("Reader ".concat(V," is not registered."));this.parsers[V]||(this.parsers[V]={}),this.parsers[V][C.getName()]=C}}catch(C){B.e(C)}finally{B.f()}}},{key:"getReaderOf",value:(V=(0,L.default)($.default.mark((function _callee2(C){var T,B,V,L,q,W,U,H=arguments;return $.default.wrap((function _callee2$($){for(;;)switch($.prev=$.next){case 0:T=H.length>1&&void 0!==H[1]&&H[1],B=C.getFile(),V=C.getReader(),L=this.getReaders(V),q=0,W=Object.values(L);case 3:if(!(q1&&void 0!==H[1]&&H[1],$.next=3,this.getReaderOf(C,!0);case 3:if(B=$.sent,V=C.getParser(),!B){$.next=18;break}L=this.getParsers(B.constructor.getName(),V),q=0,W=Object.values(L);case 8:if(!(q0&&void 0!==arguments[0]?arguments[0]:[];return(T=Array.isArray(T)?T:[T]).length?Object.fromEntries(T.filter((function(T){return T in C.readers})).map((function(T){return[T,C.readers[T]]}))):this.readers}},{key:"getParsers",value:function getParsers(C){var T=this,B=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(B=Array.isArray(B)?B:[B]).length?Object.fromEntries(B.filter((function(B){return B in T.parsers[C]})).map((function(B){return[B,T.parsers[C][B]]}))):this.parsers[C]||{}}}]),Manager}(elementorModules.editor.utils.Module);T.default=te},36788:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(50824)),L=V(B(10029)),q=V(B(78983)),W=V(B(42081)),U=V(B(90381)),H=V(B(67209)),G=V(B(83571)),K=function(){function Normalizer(C){(0,q.default)(this,Normalizer),this.manager=C}var C,T,B;return(0,W.default)(Normalizer,[{key:"normalize",value:(B=(0,L.default)($.default.mark((function _callee(C){return $.default.wrap((function _callee$(T){for(;;)switch(T.prev=T.next){case 0:return C instanceof G.default||(C=this.toItemCollection(C)),T.abrupt("return",C);case 2:case"end":return T.stop()}}),_callee,this)}))),function normalize(C){return B.apply(this,arguments)})},{key:"toItemCollection",value:(T=(0,L.default)($.default.mark((function _callee2(C){var T=this;return $.default.wrap((function _callee2$(B){for(;;)switch(B.prev=B.next){case 0:return Array.isArray(C)||(C=(0,U.default)(C,FileList)||(0,U.default)(C,DataTransferItemList)?Array.from(C):[C]),B.abrupt("return",Promise.all(C.map((function(C){return C instanceof H.default||(C=T.toItem(C)),C}))).then((function(C){return new G.default(C)})));case 2:case"end":return B.stop()}}),_callee2)}))),function toItemCollection(C){return T.apply(this,arguments)})},{key:"toItem",value:(C=(0,L.default)($.default.mark((function _callee3(C){var T;return $.default.wrap((function _callee3$(B){for(;;)switch(B.prev=B.next){case 0:if((0,U.default)(C,[Blob,File,DataTransferItem])){B.next=18;break}B.prev=1,window.atob(C.split(",")[1]),B.next=15;break;case 5:return B.prev=5,B.t0=B.catch(1),B.next=9,this.manager.getMimeTypeOf(C);case 9:if(!(T=B.sent)){B.next=14;break}C=this.constructor.createDataUrl(C,T),B.next=15;break;case 14:throw new Error("The input provided cannot be resolved");case 15:return B.next=17,fetch(C).then((function(C){return C.blob()}));case 17:C=B.sent;case 18:return B.abrupt("return",new H.default(C));case 19:case"end":return B.stop()}}),_callee3,this,[[1,5]])}))),function toItem(T){return C.apply(this,arguments)})}],[{key:"createDataUrl",value:function createDataUrl(C){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&(C="base64,".concat(btoa(C))),T&&(T+=";"),"data:".concat(T||"").concat(C)}}]),Normalizer}();T.default=K},86036:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(50824)),L=V(B(10029)),q=V(B(78983)),W=V(B(42081)),U=V(B(93231));function _createForOfIteratorHelper(C,T){var B="undefined"!=typeof Symbol&&C[Symbol.iterator]||C["@@iterator"];if(!B){if(Array.isArray(C)||(B=function _unsupportedIterableToArray(C,T){if(!C)return;if("string"==typeof C)return _arrayLikeToArray(C,T);var B=Object.prototype.toString.call(C).slice(8,-1);"Object"===B&&C.constructor&&(B=C.constructor.name);if("Map"===B||"Set"===B)return Array.from(C);if("Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return _arrayLikeToArray(C,T)}(C))||T&&C&&"number"==typeof C.length){B&&(C=B);var V=0,$=function F(){};return{s:$,n:function n(){return V>=C.length?{done:!0}:{done:!1,value:C[V++]}},e:function e(C){throw C},f:$}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var L,q=!0,W=!1;return{s:function s(){B=B.call(C)},n:function n(){var C=B.next();return q=C.done,C},e:function e(C){W=!0,L=C},f:function f(){try{q||null==B.return||B.return()}finally{if(W)throw L}}}}function _arrayLikeToArray(C,T){(null==T||T>C.length)&&(T=C.length);for(var B=0,V=new Array(T);B1&&void 0!==arguments[1]?arguments[1]:null,B=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,V=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,q.default)(this,Session),(0,U.default)(this,"manager",void 0),(0,U.default)(this,"itemCollection",void 0),(0,U.default)(this,"target",void 0),(0,U.default)(this,"options",{target:{}}),this.manager=C,this.itemCollection=T,this.target=B,Object.assign(this.options,V)}var C,T;return(0,W.default)(Session,[{key:"validate",value:(T=(0,L.default)($.default.mark((function _callee(){var C,T,B;return $.default.wrap((function _callee$(V){for(;;)switch(V.prev=V.next){case 0:C=_createForOfIteratorHelper(this.itemCollection.getItems()),V.prev=1,C.s();case 3:if((T=C.n()).done){V.next=11;break}return B=T.value,V.next=7,this.manager.getReaderOf(B);case 7:if(V.sent){V.next=9;break}return V.abrupt("return",!1);case 9:V.next=3;break;case 11:V.next=16;break;case 13:V.prev=13,V.t0=V.catch(1),C.e(V.t0);case 16:return V.prev=16,C.f(),V.finish(16);case 19:return V.abrupt("return",!0);case 20:case"end":return V.stop()}}),_callee,this,[[1,13,16,19]])}))),function validate(){return T.apply(this,arguments)})},{key:"apply",value:(C=(0,L.default)($.default.mark((function _callee2(){var C,T,B,V,L,q=this;return $.default.wrap((function _callee2$($){for(;;)switch($.prev=$.next){case 0:C=[],T=_createForOfIteratorHelper(this.itemCollection.getItems()),$.prev=2,T.s();case 4:if((B=T.n()).done){$.next=16;break}return V=B.value,$.next=8,this.manager.getParserOf(V,!0);case 8:if(!(L=$.sent)){$.next=13;break}C.push(L.parse()),$.next=14;break;case 13:throw new Error("An error occurred when trying to parse the input");case 14:$.next=4;break;case 16:$.next=21;break;case 18:$.prev=18,$.t0=$.catch(2),T.e($.t0);case 21:return $.prev=21,T.f(),$.finish(21);case 24:return $.abrupt("return",Promise.all(C).then((function(C){return q.resolve(C.flat())})));case 25:case"end":return $.stop()}}),_callee2,this,[[2,18,21,24]])}))),function apply(){return C.apply(this,arguments)})},{key:"resolve",value:function resolve(C){var T=this;return Object.values(C).some((function(C){return"section"===C.model.get("elType")}))&&(this.target=elementor.getPreviewContainer()),C.map((function(B){switch(B.type){case"container":case"section":case"column":case"widget":return T.target.view.createElementFromModel(B.model,Object.assign(T.options.target,{event:T.options.event,scrollIntoView:0===C.indexOf(B)}))}}))}}]),Session}();T.default=H},68076:(C,T,B)=>{"use strict";var V=B(38003).__,$=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=T.Close=void 0;var L=$(B(50824)),q=$(B(10029)),W=$(B(78983)),U=$(B(42081)),H=$(B(58724)),G=$(B(71173)),K=$(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,K.default)(C);if(T){var $=(0,K.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,G.default)(this,B)}}var Q=function(C){(0,H.default)(Close,C);var T,B=_createSuper(Close);function Close(){return(0,W.default)(this,Close),B.apply(this,arguments)}return(0,U.default)(Close,[{key:"validateArgs",value:function validateArgs(C){this.requireArgument("id",C)}},{key:"apply",value:(T=(0,q.default)(L.default.mark((function _callee(C){var T,B,V,$,q;return L.default.wrap((function _callee$(L){for(;;)switch(L.prev=L.next){case 0:if(T=C.id,B=C.mode,V=C.onClose,"closed"!==($=elementor.documents.get(T)).editor.status){L.next=3;break}return L.abrupt("return",jQuery.Deferred().resolve());case 3:if(B||!$.editor.isChanged&&!$.isDraft()){L.next=7;break}return q=jQuery.Deferred(),this.getConfirmDialog(q).show(),L.abrupt("return",q.promise());case 7:L.t0=B,L.next="autosave"===L.t0?10:"save"===L.t0?13:"discard"===L.t0?16:19;break;case 10:return L.next=12,$e.run("document/save/auto");case 12:case 15:case 18:return L.abrupt("break",19);case 13:return L.next=15,$e.run("document/save/update");case 16:return L.next=18,$e.run("document/save/discard",{document:$});case 19:return L.next=21,$e.internal("editor/documents/unload",{document:$});case 21:if(!V){L.next=24;break}return L.next=24,V($);case 24:return L.abrupt("return",jQuery.Deferred().resolve());case 25:case"end":return L.stop()}}),_callee,this)}))),function apply(C){return T.apply(this,arguments)})},{key:"getConfirmDialog",value:function getConfirmDialog(C){var T=this;return this.confirmDialog||(this.confirmDialog=elementorCommon.dialogsManager.createWidget("confirm",{id:"elementor-document-save-on-close",headerMessage:V("Save Changes","elementor"),message:V("Would you like to save the changes you've made?","elementor"),position:{my:"center center",at:"center center"},strings:{confirm:V("Save","elementor"),cancel:V("Discard","elementor")},onHide:function onHide(){_.defer((function(){T.args.mode||C.reject("Close document has been canceled.")}))},onConfirm:function onConfirm(){T.args.mode="save",$e.run("editor/documents/close",T.args).then((function(){C.resolve()}))},onCancel:function onCancel(){T.args.mode="discard",$e.run("editor/documents/close",T.args).then((function(){C.resolve()}))}})),this.confirmDialog}}]),Close}($e.modules.CommandBase);T.Close=Q;var J=Q;T.default=J},11175:(C,T,B)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(T,"Close",{enumerable:!0,get:function get(){return V.Close}}),Object.defineProperty(T,"Open",{enumerable:!0,get:function get(){return $.Open}}),Object.defineProperty(T,"Preview",{enumerable:!0,get:function get(){return L.Preview}}),Object.defineProperty(T,"Switch",{enumerable:!0,get:function get(){return q.Switch}});var V=B(68076),$=B(60994),L=B(72995),q=B(25256)},40729:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=T.AttachPreview=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var H=function(C){(0,q.default)(AttachPreview,C);var T=_createSuper(AttachPreview);function AttachPreview(){return(0,$.default)(this,AttachPreview),T.apply(this,arguments)}return(0,L.default)(AttachPreview,[{key:"validateArgs",value:function validateArgs(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(C.selector&&(this.requireArgumentType("selector","string"),0===elementor.$previewContents.find(C.selector).length))throw new Error("Invalid argument. The `selector` argument must be existed selector.")}},{key:"apply",value:function apply(C){var T=this,B=elementor.documents.getCurrent();return $e.data.get("globals/index").then((function(){return elementor.trigger("globals:loaded"),T.attachDocumentToPreview(B,C)})).then((function(){return elementor.toggleDocumentCssFiles(B,!1),elementor.onEditModeSwitched(),elementor.checkPageStatus(),elementor.trigger("document:loaded",B),$e.internal("panel/open-default",{refresh:!0})}))}},{key:"attachDocumentToPreview",value:function attachDocumentToPreview(C,T){var B=T.selector,V=void 0===B?".elementor-"+C.id:B,$=T.shouldScroll,L=void 0===$||$;return new Promise((function(T,B){if(!C)return B("Can't attach preview, there is no open document.");if(!C.config.elements)return T();C.$element=elementor.$previewContents.find(V);var $=C.id===elementor.config.initial_document.id;if(!C.$element.length)return $&&elementor.onPreviewElNotFound(),B("Can't attach preview to document '".concat(C.id,"', element '").concat(V,"' was not found."));C.$element.addClass("elementor-edit-area elementor-edit-mode"),$||elementor.$previewElementorEl.addClass("elementor-embedded-editor"),elementor.initElements(),elementor.initPreviewView(C),C.container.view=elementor.getPreviewView(),C.container.model.attributes.elements=elementor.elements,L&&elementor.helpers.scrollToView(C.$element),C.$element.addClass("elementor-edit-area-active").removeClass("elementor-editor-preview"),T()}))}}]),AttachPreview}($e.modules.CommandInternalBase);T.AttachPreview=H;var G=H;T.default=G},28950:(C,T,B)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(T,"AttachPreview",{enumerable:!0,get:function get(){return V.AttachPreview}}),Object.defineProperty(T,"Load",{enumerable:!0,get:function get(){return $.Load}}),Object.defineProperty(T,"Unload",{enumerable:!0,get:function get(){return L.Unload}});var V=B(40729),$=B(10664),L=B(84805)},10664:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=T.Load=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910)),H=V(B(13159)),G=V(B(38984));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var K=function(C){(0,q.default)(Load,C);var T=_createSuper(Load);function Load(){return(0,$.default)(this,Load),T.apply(this,arguments)}return(0,L.default)(Load,[{key:"validateArgs",value:function validateArgs(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.requireArgument("config",C)}},{key:"apply",value:function apply(C){var T=C.config,B=C.setAsInitial,V=void 0!==B&&B,$=C.shouldScroll,L=void 0===$||$;elementorCommon.config.experimentalFeatures.additional_custom_breakpoints&&(T.settings.controls=elementor.generateResponsiveControls(T.settings.controls)),elementor.config.document=T,elementor.setAjax(),elementor.addWidgetsCache(T.widgets),elementor.templates.init();var q=new H.default(T);elementor.documents.add(q),elementor.documents.setCurrent(q),V&&elementor.documents.setInitialById(q.id),elementor.settings.page=new elementor.settings.modules.page(T.settings),q.container=elementor.settings.page.getEditedView().getContainer(),q.container.document=q,elementor.heartbeat=new G.default(q);var W=elementor.config.document.version&&elementor.helpers.compareVersions(elementor.config.document.version,"2.5.0","<");return!elementor.config.user.introduction.flexbox&&W&&elementor.showFlexBoxAttentionDialog(),elementor.loaded?$e.data.get("globals/index").then((function(){return V?(elementor.reloadPreview(),Promise.resolve()):$e.internal("editor/documents/attach-preview",{shouldScroll:L,selector:C.selector})})):Promise.resolve(q)}}]),Load}($e.modules.CommandInternalBase);T.Load=K;var Q=K;T.default=Q},84805:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=T.Unload=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910)),H=V(B(13159));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var G=function(C){(0,q.default)(Unload,C);var T=_createSuper(Unload);function Unload(){return(0,$.default)(this,Unload),T.apply(this,arguments)}return(0,L.default)(Unload,[{key:"validateArgs",value:function validateArgs(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.requireArgumentConstructor("document",H.default,C)}},{key:"apply",value:function apply(C){return new Promise((function(T,B){var V=C.document;V.id!==elementor.config.document.id&&B(),elementor.elements=[],elementor.saver.stopAutoSave(V),elementor.channels.dataEditMode.trigger("switch","preview"),V.$element&&V.$element.removeClass("elementor-edit-area-active elementor-edit-mode").addClass("elementor-editor-preview"),elementorCommon.elements.$body.removeClass("elementor-editor-".concat(V.config.type)),elementor.settings.page.destroy(),elementor.heartbeat.destroy(),V.editor.status="closed",elementor.config.document={},elementor.documents.unsetCurrent(),elementor.trigger("document:unloaded",V),T()}))}}]),Unload}($e.modules.CommandInternalBase);T.Unload=G;var K=G;T.default=K},60994:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=T.Open=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var H=function(C){(0,q.default)(Open,C);var T=_createSuper(Open);function Open(){return(0,$.default)(this,Open),T.apply(this,arguments)}return(0,L.default)(Open,[{key:"validateArgs",value:function validateArgs(C){this.requireArgument("id",C)}},{key:"apply",value:function apply(C){var T=C.id,B=C.selector,V=C.shouldScroll,$=void 0===V||V,L=C.setAsInitial,q=void 0!==L&&L,W=elementor.documents.getCurrent();return W&&T===W.id?jQuery.Deferred().resolve():(elementor.loaded&&elementor.$previewContents.find(".elementor-".concat(T)).addClass("loading"),q&&(elementorCommon.ajax.addRequestConstant("initial_document_id",T),elementor.documents.invalidateCache()),elementor.documents.request(T).then((function(C){return elementorCommon.elements.$body.addClass("elementor-editor-".concat(C.type)),$e.internal("editor/documents/load",{config:C,selector:B,setAsInitial:q,shouldScroll:$})})).always((function(){elementor.loaded&&elementor.$previewContents.find(".elementor-".concat(T)).removeClass("loading")})))}}]),Open}($e.modules.CommandBase);T.Open=H;var G=H;T.default=G},72995:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=T.Preview=void 0;var $=V(B(50824)),L=V(B(10029)),q=V(B(78983)),W=V(B(42081)),U=V(B(58724)),H=V(B(71173)),G=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,G.default)(C);if(T){var $=(0,G.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,H.default)(this,B)}}var K=function(C){(0,U.default)(Preview,C);var T,B=_createSuper(Preview);function Preview(){return(0,q.default)(this,Preview),B.apply(this,arguments)}return(0,W.default)(Preview,[{key:"validateArgs",value:function validateArgs(C){this.requireArgument("id",C)}},{key:"apply",value:(T=(0,L.default)($.default.mark((function _callee(C){var T,B,V,L;return $.default.wrap((function _callee$($){for(;;)switch($.prev=$.next){case 0:if(T=C.id,B=$e.components.get("document/save"),V=B.footerSaver,!(L=elementor.documents.get(T)).editor.isChanged){$.next=4;break}return $.next=4,$e.run("document/save/auto",{force:!0});case 4:V.previewWindow=open(L.config.urls.wp_preview,"wp-preview-".concat(L.id));case 5:case"end":return $.stop()}}),_callee)}))),function apply(C){return T.apply(this,arguments)})}]),Preview}($e.modules.CommandBase);T.Preview=K;var Q=K;T.default=Q},25256:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=T.Switch=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var H=function(C){(0,q.default)(Switch,C);var T=_createSuper(Switch);function Switch(){return(0,$.default)(this,Switch),T.apply(this,arguments)}return(0,L.default)(Switch,[{key:"validateArgs",value:function validateArgs(C){this.requireArgument("id",C)}},{key:"apply",value:function apply(C){var T=C.id,B=C.mode,V=C.onClose,$=C.shouldScroll,L=void 0===$||$,q=C.setAsInitial,W=void 0!==q&&q;return W&&jQuery("#elementor-preview-loading").show(),$e.run("editor/documents/close",{id:elementor.documents.getCurrentId(),mode:B,onClose:V,selector:C.selector}).then((function(){return $e.run("editor/documents/open",{id:T,shouldScroll:L,selector:C.selector,setAsInitial:W})})).then((function(){elementor.getPanelView().getPages("menu").view.addExitItem()}))}}]),Switch}($e.modules.CommandBase);T.Switch=H;var G=H;T.default=G},22777:(C,T,B)=>{"use strict";var V=B(38003).__,$=B(73203),L=B(7501);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var q=$(B(78983)),W=$(B(42081)),U=$(B(51121)),H=$(B(58724)),G=$(B(71173)),K=$(B(74910)),Q=$(B(19263)),J=$(B(13159)),X=_interopRequireWildcard(B(11175)),Y=_interopRequireWildcard(B(28950)),Z=_interopRequireWildcard(B(13020));function _getRequireWildcardCache(C){if("function"!=typeof WeakMap)return null;var T=new WeakMap,B=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(C){return C?B:T})(C)}function _interopRequireWildcard(C,T){if(!T&&C&&C.__esModule)return C;if(null===C||"object"!==L(C)&&"function"!=typeof C)return{default:C};var B=_getRequireWildcardCache(T);if(B&&B.has(C))return B.get(C);var V={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in C)if("default"!==q&&Object.prototype.hasOwnProperty.call(C,q)){var W=$?Object.getOwnPropertyDescriptor(C,q):null;W&&(W.get||W.set)?Object.defineProperty(V,q,W):V[q]=C[q]}return V.default=C,B&&B.set(C,V),V}function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,K.default)(C);if(T){var $=(0,K.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,G.default)(this,B)}}var ee=function(C){(0,H.default)(Component,C);var T=_createSuper(Component);function Component(){return(0,q.default)(this,Component),T.apply(this,arguments)}return(0,W.default)(Component,[{key:"__construct",value:function __construct(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,U.default)((0,K.default)(Component.prototype),"__construct",this).call(this,C),this.documents={},this.currentDocument=null,this.saveInitialDocumentToCache()}},{key:"getNamespace",value:function getNamespace(){return"editor/documents"}},{key:"defaultCommands",value:function defaultCommands(){return this.importCommands(X)}},{key:"defaultHooks",value:function defaultHooks(){return this.importHooks(Z)}},{key:"defaultCommandsInternal",value:function defaultCommandsInternal(){return this.importCommands(Y)}},{key:"add",value:function add(C){var T=C.id;return this.documents[T]=C,C}},{key:"addDocumentByConfig",value:function addDocumentByConfig(C){return this.add(new J.default(C))}},{key:"get",value:function get(C){return void 0!==this.documents[C]&&this.documents[C]}},{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(C){var T=this.get(C);T&&(elementor.config.initial_document=T.config,elementorCommon.ajax.addRequestConstant("initial_document_id",T.id))}},{key:"setCurrent",value:function setCurrent(C){if(void 0===this.documents[C.id])throw Error("The document with id: '".concat(C.id,"' does not exist/loaded"));this.currentDocument&&(this.currentDocument.editor.status="closed"),this.currentDocument=this.documents[C.id],this.currentDocument.editor.status="open",elementorCommon.ajax.addRequestConstant("editor_post_id",C.id)}},{key:"isCurrent",value:function isCurrent(C){return parseInt(C)===this.currentDocument.id}},{key:"unsetCurrent",value:function unsetCurrent(){this.currentDocument=null,elementorCommon.ajax.addRequestConstant("editor_post_id",null)}},{key:"request",value:function request(C){return elementorCommon.ajax.load(this.getRequestArgs(C),!0)}},{key:"invalidateCache",value:function invalidateCache(){var C=this,T=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;T?elementorCommon.ajax.invalidateCache(this.getRequestArgs(T)):Object.keys(this.documents).forEach((function(T){elementorCommon.ajax.invalidateCache(C.getRequestArgs(T))}))}},{key:"getRequestArgs",value:function getRequestArgs(C){return C=parseInt(C),{action:"get_document_config",unique_id:"document-".concat(C),data:{id:C},success:function success(C){return C},error:function error(C){var T;_.isString(C)?T=C:C.statusText?(T=elementor.createAjaxErrorMessage(C),0===C.readyState&&(T+=" "+V("Cannot load editor","elementor"))):C[0]&&C[0].code&&(T=V("Server Error","elementor")+" "+C[0].code),alert(T)}}}},{key:"saveInitialDocumentToCache",value:function saveInitialDocumentToCache(){var C=elementor.config.initial_document;elementorCommon.ajax.addRequestCache(this.getRequestArgs(C.id),C)}}]),Component}(Q.default);T.default=ee},13159:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(93231)),W=V(B(48673)),U=V(B(11666)),H=V(B(91693)),G=function(){function Document(C){(0,$.default)(this,Document),(0,q.default)(this,"id",null),(0,q.default)(this,"history",null),(0,q.default)(this,"revisions",null),(0,q.default)(this,"container",null),(0,q.default)(this,"editor",new H.default),this.config=C,this.id=C.id,this.history=new W.default(this),this.revisions=new U.default(this)}return(0,L.default)(Document,[{key:"isDraft",value:function isDraft(){return this.config.revisions.current_id!==this.config.id}}]),Document}();T.default=G},13020:(C,T,B)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(T,"RemoveActiveDocumentQueryParam",{enumerable:!0,get:function get(){return V.RemoveActiveDocumentQueryParam}}),Object.defineProperty(T,"SetActiveDocumentQueryParam",{enumerable:!0,get:function get(){return $.SetActiveDocumentQueryParam}}),Object.defineProperty(T,"SwitchToActiveDocument",{enumerable:!0,get:function get(){return L.SwitchToActiveDocument}});var V=B(92756),$=B(45263),L=B(37178)},37178:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=T.SwitchToActiveDocument=void 0;var $=V(B(50824)),L=V(B(10029)),q=V(B(78983)),W=V(B(42081)),U=V(B(58724)),H=V(B(71173)),G=V(B(74910)),K=V(B(93231)),Q=B(92093);function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,G.default)(C);if(T){var $=(0,G.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,H.default)(this,B)}}var J=function(C){(0,U.default)(SwitchToActiveDocument,C);var T,B=_createSuper(SwitchToActiveDocument);function SwitchToActiveDocument(){return(0,q.default)(this,SwitchToActiveDocument),B.apply(this,arguments)}return(0,W.default)(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:(T=(0,L.default)($.default.mark((function _callee(){var C,T;return $.default.wrap((function _callee$(B){for(;;)switch(B.prev=B.next){case 0:if(this.constructor.calledOnce=!0,C=parseInt((0,Q.getQueryParam)("active-document")),T=C===elementor.documents.getCurrentId(),!isNaN(C)&&!T){B.next=4;break}return B.abrupt("return");case 4:return B.prev=4,B.next=7,$e.run("editor/documents/switch",{id:C,mode:"autosave"});case 7:B.next=13;break;case 9:B.prev=9,B.t0=B.catch(4),$e.run("editor/documents/switch",{id:elementor.config.initial_document.id,mode:"autosave"}),(0,Q.removeQueryParam)("active-document");case 13:case"end":return B.stop()}}),_callee,this,[[4,9]])}))),function apply(){return T.apply(this,arguments)})}]),SwitchToActiveDocument}($e.modules.hookUI.After);T.SwitchToActiveDocument=J,(0,K.default)(J,"calledOnce",!1);var X=J;T.default=X},92756:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=T.RemoveActiveDocumentQueryParam=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910)),H=B(92093);function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var G=function(C){(0,q.default)(RemoveActiveDocumentQueryParam,C);var T=_createSuper(RemoveActiveDocumentQueryParam);function RemoveActiveDocumentQueryParam(){return(0,$.default)(this,RemoveActiveDocumentQueryParam),T.apply(this,arguments)}return(0,L.default)(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(C){parseInt((0,H.getQueryParam)("active-document"))===parseInt(C.id)&&(0,H.removeQueryParam)("active-document")}}]),RemoveActiveDocumentQueryParam}($e.modules.hookUI.After);T.RemoveActiveDocumentQueryParam=G;var K=G;T.default=K},45263:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=T.SetActiveDocumentQueryParam=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910)),H=B(92093);function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var G=function(C){(0,q.default)(SetActiveDocumentQueryParam,C);var T=_createSuper(SetActiveDocumentQueryParam);function SetActiveDocumentQueryParam(){return(0,$.default)(this,SetActiveDocumentQueryParam),T.apply(this,arguments)}return(0,L.default)(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(C){return parseInt(C.id)!==parseInt(elementor.config.initial_document.id)}},{key:"apply",value:function apply(C){var T=parseInt(C.id);isNaN(T)||(0,H.setQueryParam)("active-document",C.id)}}]),SetActiveDocumentQueryParam}($e.modules.hookUI.After);T.SetActiveDocumentQueryParam=G;var K=G;T.default=K},91693:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(42081)),L=V(B(78983)),q=V(B(93231)),W=(0,$.default)((function Editor(){(0,L.default)(this,Editor),(0,q.default)(this,"status","closed"),(0,q.default)(this,"isSaving",!1),(0,q.default)(this,"isChanged",!1),(0,q.default)(this,"isChangedDuringSave",!1),(0,q.default)(this,"isSaved",!0),(0,q.default)(this,"lastSaveHistoryId",0)}));T.default=W},85422:(C,T,B)=>{"use strict";var V=B(38003).__,$=B(73203)(B(93231)),L=B(12406);C.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 C=elementor.helpers.hasPro()&&!elementor.helpers.hasProAndNotConnected(),T=this.getOption("tags").length>0;return!C||T},renderTools:function renderTools(){var C=this;if(this.shouldRenderTools()){var T=jQuery(Marionette.Renderer.render("#tmpl-elementor-control-dynamic-switcher"));T.on("click",(function(T){return C.onDynamicSwitcherClick(T)})),this.$el.find(".elementor-control-dynamic-switcher-wrapper").append(T),this.ui.dynamicSwitcher=T,"color"===this.view.model.get("type")&&(this.view.colorPicker?this.moveDynamicSwitcherToColorPicker():setTimeout((function(){return C.moveDynamicSwitcherToColorPicker()}))),this.ui.dynamicSwitcher.tipsy({title:function title(){return this.getAttribute("data-tooltip")},gravity:"s"})}},moveDynamicSwitcherToColorPicker:function moveDynamicSwitcherToColorPicker(){var C=this.view.colorPicker.$pickerToolsContainer;this.ui.dynamicSwitcher.removeClass("elementor-control-unit-1").addClass("e-control-tool");var T=C.find(".elementor-control-element-color-picker");T.length?this.ui.dynamicSwitcher.insertBefore(T):C.append(this.ui.dynamicSwitcher)},toggleDynamicClass:function toggleDynamicClass(){this.$el.toggleClass("elementor-control-dynamic-value",this.isDynamicMode())},isDynamicMode:function isDynamicMode(){var C=this.view.container.settings.get("__dynamic__");return!(!C||!C[this.view.model.get("name")])},createTagsList:function createTagsList(){var C=_.groupBy(this.getOption("tags"),"group"),T=elementor.dynamicTags.getConfig("groups"),B=this.ui.tagsList=jQuery("
",{class:"elementor-tags-list"}),V=jQuery("
",{class:"elementor-tags-list__inner"});if(B.append(V),jQuery.each(T,(function(T){var B=C[T];if(B){var $=jQuery("
",{class:"elementor-tags-list__group-title"}).text(this.title);V.append($),B.forEach((function(C){var T=jQuery("
",{class:"elementor-tags-list__item"});T.text(C.title).attr("data-tag-name",C.name),V.append(T)}))}})),!elementor.helpers.hasPro()&&Object.keys(C).length){var $=Marionette.Renderer.render("#tmpl-elementor-dynamic-tags-promo",{promotionUrl:elementor.config.dynamicPromotionURL.replace("%s",this.view.model.get("name"))});V.append($)}V.on("click",".elementor-tags-list__item",this.onTagsListItemClick.bind(this)),elementorCommon.elements.$body.append(B)},getTagsList:function getTagsList(){return this.ui.tagsList||this.createTagsList(),this.ui.tagsList},toggleTagsList:function toggleTagsList(){var C=this.getTagsList();if(C.is(":visible"))C.hide();else{var T=elementorCommon.config.isRTL?"left":"right";C.show().position({my:"".concat(T," top"),at:"".concat(T," bottom+5"),of:this.ui.dynamicSwitcher})}},setTagView:function setTagView(C,T,B){this.tagView&&this.tagView.destroy();var V=this.tagView=new L({id:C,name:T,settings:B,controlName:this.view.model.get("name"),dynamicSettings:this.getOption("dynamicSettings")}),$=this.view.options.container,q=$.controls[V.options.controlName].label;V.options.container=new elementorModules.editor.Container({type:"dynamic",id:C,model:V.model,settings:V.model,view:V,parent:$,label:$.label+" "+q,controls:V.model.options.controls,renderer:$}),V.render(),this.$el.find(".elementor-control-tag-area").after(V.el),this.listenTo(V,"remove",this.onTagViewRemove.bind(this))},setDefaultTagView:function setDefaultTagView(){var C=elementor.dynamicTags.tagTextToTagData(this.getDynamicValue());this.setTagView(C.id,C.name,C.settings)},tagViewToTagText:function tagViewToTagText(){var C=this.tagView;return elementor.dynamicTags.tagDataToTagText(C.getOption("id"),C.getOption("name"),C.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(),T={title:V("Dynamic Content","elementor"),content:V("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:V(C?"Connect & Activate":"Upgrade","elementor")}};elementor.promotion.showDialog(T)},onRender:function onRender(){this.$el.addClass("elementor-control-dynamic"),this.renderTools(),this.toggleDynamicClass(),this.isDynamicMode()&&this.setDefaultTagView()},onDynamicSwitcherClick:function onDynamicSwitcherClick(C){C.stopPropagation(),this.getOption("tags").length?this.toggleTagsList():this.showPromotion()},onTagsListItemClick:function onTagsListItemClick(C){var T=jQuery(C.currentTarget);this.setTagView(elementorCommon.helpers.getUniqueId(),T.data("tagName"),{}),this.view.getGlobalKey()&&this.view.triggerMethod("unset:global:value"),this.isDynamicMode()?$e.run("document/dynamic/settings",{container:this.view.options.container,settings:(0,$.default)({},this.view.model.get("name"),this.tagViewToTagText())}):$e.run("document/dynamic/enable",{container:this.view.options.container,settings:(0,$.default)({},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:(0,$.default)({},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()}})},41972:(C,T,B)=>{"use strict";var V=B(73203)(B(93231));function ownKeys(C,T){var B=Object.keys(C);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(C);T&&(V=V.filter((function(T){return Object.getOwnPropertyDescriptor(C,T).enumerable}))),B.push.apply(B,V)}return B}function _objectSpread(C){for(var T=1;T{"use strict";C.exports=Marionette.ItemView.extend({className:"elementor-tag-controls-stack-empty",template:"#tmpl-elementor-tag-controls-stack-empty"})},52099:(C,T,B)=>{"use strict";var V=B(8061);C.exports=elementorModules.editor.views.ControlsStack.extend({activeTab:"content",template:_.noop,emptyView:V,isEmpty:function isEmpty(){return this.collection.length<2},childViewOptions:function childViewOptions(){return{container:this.options.container}},getNamespaceArray:function getNamespaceArray(){var C=elementor.getPanelView().getCurrentPageView(),T=C.getNamespaceArray();return T.push(C.activeSection),T.push(this.getOption("controlName")),T.push(this.getOption("name")),T},onRenderTemplate:function onRenderTemplate(){this.activateFirstSection()}})},12406:(C,T,B)=>{"use strict";var V=B(52099);C.exports=Marionette.ItemView.extend({className:"elementor-dynamic-cover e-input-style",tagControlsStack:null,templateHelpers:function templateHelpers(){var C={};return this.model&&(C.controls=this.model.options.controls),C},ui:{remove:".elementor-dynamic-cover__remove"},events:function events(){var events={"click @ui.remove":"onRemoveClick"};return this.hasSettings()&&(events.click="onClick"),events},getTemplate:function getTemplate(){var C=this.getTagConfig(),T=Marionette.TemplateCache.get("#tmpl-elementor-control-dynamic-cover"),B=Marionette.Renderer.render(T,{hasSettings:this.hasSettings(),isRemovable:!this.getOption("dynamicSettings").default,title:C.title,content:C.panel_template});return Marionette.TemplateCache.prototype.compileTemplate(B.trim())},getTagConfig:function getTagConfig(){return elementor.dynamicTags.getConfig("tags."+this.getOption("name"))},initSettingsPopup:function initSettingsPopup(){var C={className:"elementor-tag-settings-popup",position:{my:"left top+5",at:"left bottom",of:this.$el,autoRefresh:!0},hide:{ignore:".select2-container"}},T=elementorCommon.dialogsManager.createWidget("buttons",C);this.getSettingsPopup=function(){return T}},hasSettings:function hasSettings(){return!!Object.values(this.getTagConfig().controls).length},showSettingsPopup:function showSettingsPopup(){this.tagControlsStack||this.initTagControlsStack();var C=this.getSettingsPopup();C.isVisible()||C.show()},initTagControlsStack:function initTagControlsStack(){this.tagControlsStack=new V({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(C){C.stopPropagation(),this.destroy(),this.trigger("remove")},onDestroy:function onDestroy(){this.hasSettings()&&this.getSettingsPopup().destroy(),this.tagControlsStack&&this.tagControlsStack.destroy()}})},52927:C=>{"use strict";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")},initialize:function initialize(){try{this.getTemplate()}catch(C){this.hasTemplate=!1}},getConfig:function getConfig(C){var T=elementor.dynamicTags.getConfig("tags."+this.getOption("name"));return C?T[C]:T},getContent:function getContent(){var C,T=this.getConfig("content_type");if(!this.hasTemplate&&void 0===(C=elementor.dynamicTags.loadTagDataFromCache(this)))throw new Error(elementor.dynamicTags.CACHE_KEY_NOT_FOUND_ERROR);if("ui"===T){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")}})},55920:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910)),H=V(B(19076)),G=V(B(26886));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var K=function(C){(0,q.default)(Component,C);var T=_createSuper(Component);function Component(){return(0,$.default)(this,Component),T.apply(this,arguments)}return(0,L.default)(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 G.default}}]),Component}(H.default);T.default=K},10136:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910)),H=V(B(55920));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var G=function(C){(0,q.default)(_default,C);var T=_createSuper(_default);function _default(){return(0,$.default)(this,_default),T.apply(this,arguments)}return(0,L.default)(_default,[{key:"onInit",value:function onInit(){$e.components.register(new H.default({manager:this}))}}]),_default}(elementorModules.Module);T.default=G},27734:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910)),H=V(B(73308));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var G=function(C){(0,q.default)(_default,C);var T=_createSuper(_default);function _default(){return(0,$.default)(this,_default),T.apply(this,arguments)}return(0,L.default)(_default,[{key:"id",value:function id(){return"elementor-hotkeys"}},{key:"templateHelpers",value:function templateHelpers(){return{environment:H.default}}},{key:"getTemplate",value:function getTemplate(){return"#tmpl-elementor-hotkeys"}}]),_default}(Marionette.LayoutView);T.default=G},26886:(C,T,B)=>{"use strict";var V=B(38003).__,$=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var L=$(B(78983)),q=$(B(42081)),W=$(B(51121)),U=$(B(58724)),H=$(B(71173)),G=$(B(74910)),K=$(B(27734));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,G.default)(C);if(T){var $=(0,G.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,H.default)(this,B)}}var Q=function(C){(0,U.default)(_default,C);var T=_createSuper(_default);function _default(){return(0,L.default)(this,_default),T.apply(this,arguments)}return(0,q.default)(_default,[{key:"getModalOptions",value:function getModalOptions(){return{id:"elementor-hotkeys__modal"}}},{key:"getLogoOptions",value:function getLogoOptions(){return{title:V("Keyboard Shortcuts","elementor")}}},{key:"initialize",value:function initialize(){for(var C,T=arguments.length,B=new Array(T),V=0;V{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(7501)),L=V(B(78983)),q=V(B(42081)),W=V(B(93231)),U=function(){function _default(){var C=this;(0,L.default)(this,_default),(0,W.default)(this,"loaded",{}),(0,W.default)(this,"notifyCallback",null),(0,W.default)(this,"fetchIcons",(function(T){fetch(T.fetchJson,{mode:"cors"}).then((function(C){return C.json()})).then((function(B){return T.icons=B.icons,C.normalizeIconList(T)}))})),(0,W.default)(this,"runCallback",(function(T){return"function"!=typeof C.notifyCallback?T:C.notifyCallback(T)})),(0,W.default)(this,"initIconType",(function(T,B){C.notifyCallback=B;var V=elementor.iconManager.store;if(C.loaded[T.name])return T.icons=V.getIcons(T),C.runCallback(T);if(T.enqueue&&T.enqueue.forEach((function(C){elementor.helpers.enqueueEditorStylesheet(C)})),T.url&&elementor.helpers.enqueueEditorStylesheet(T.url),V.isValid(T)){var $=V.get(V.getKey(T));return C.normalizeIconList($)}return T.icons&&T.icons.length?C.normalizeIconList(T):T.fetchJson?C.fetchIcons(T):void 0}))}return(0,q.default)(_default,[{key:"normalizeIconList",value:function normalizeIconList(C){var T,B={};jQuery.each(C.icons,(function(V,L){T=L,"object"===(0,$.default)(T)&&(T=Object.entries(T)[0][0]),T&&(B[T]={prefix:C.prefix,selector:C.prefix+T.trim(":"),name:elementorCommon.helpers.upperCaseWords(T).trim(":").split("-").join(" "),filter:T.trim(":"),displayPrefix:C.displayPrefix||C.prefix.replace("-","")})})),Object.keys(B).length&&(C.icons=B,this.loaded[C.name]=!0,elementor.iconManager.store.save(C),this.runCallback(C))}}]),_default}();T.default=U},26801:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=function(){function Store(){(0,$.default)(this,Store)}return(0,L.default)(Store,[{key:"save",value:function save(C){elementorCommon.storage.set(Store.getKey(C),C)}},{key:"getIcons",value:function getIcons(C){var T=this.get(Store.getKey(C));return!(!T||!T.icons)&&T.icons}},{key:"get",value:function get(C){return elementorCommon.storage.get(C)}},{key:"isValid",value:function isValid(C){var T=this.get(Store.getKey(C));return!!T&&(T.ver===C.ver&&(T.icons&&T.icons.length))}}],[{key:"getKey",value:function getKey(C){var T=C.name?C.name:C;return"elementor_".concat(T,"_icons")}}]),Store}();T.default=q},60443:(C,T,B)=>{"use strict";var V=B(73203),$=B(7501);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var L=V(B(78983)),q=V(B(42081)),W=V(B(77266)),U=V(B(58724)),H=V(B(71173)),G=V(B(74910)),K=V(B(93231)),Q=V(B(23615)),J=function _interopRequireWildcard(C,T){if(!T&&C&&C.__esModule)return C;if(null===C||"object"!==$(C)&&"function"!=typeof C)return{default:C};var B=_getRequireWildcardCache(T);if(B&&B.has(C))return B.get(C);var V={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in C)if("default"!==q&&Object.prototype.hasOwnProperty.call(C,q)){var W=L?Object.getOwnPropertyDescriptor(C,q):null;W&&(W.get||W.set)?Object.defineProperty(V,q,W):V[q]=C[q]}V.default=C,B&&B.set(C,V);return V}(B(87363));function _getRequireWildcardCache(C){if("function"!=typeof WeakMap)return null;var T=new WeakMap,B=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(C){return C?B:T})(C)}function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,G.default)(C);if(T){var $=(0,G.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,H.default)(this,B)}}var X=function(C){(0,U.default)(LazyIconList,C);var T=_createSuper(LazyIconList);function LazyIconList(){var C;(0,L.default)(this,LazyIconList);for(var B=arguments.length,V=new Array(B),$=0;$W&&(U=W),$>W-U&&($=W-U);var H=W-$-U,G=$*q,K=($+U)*q-1,Q=L.slice(G,K+1),X={height:"".concat($*B.height,"px")},Y={height:"".concat(H*B.height,"px")};return J.default.createElement(J.Fragment,null,J.default.createElement("div",{className:"elementor-icons-manager__tab__content__offset",style:X}),J.default.createElement("div",{id:"elementor-icons-manager__tab__content"},Q),J.default.createElement("div",{className:"elementor-icons-manager__tab__content__tail",style:Y}))})),C}return(0,q.default)(LazyIconList,[{key:"componentDidMount",value:function componentDidMount(){this.attachScrollListener(),this.maybeMeasureItem()}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.clearDebounceScrollCallback();var C=document.getElementById(this.selectors.wrapper);C&&C.removeEventListener("scroll",this.handleScroll)}},{key:"clearDebounceScrollCallback",value:function clearDebounceScrollCallback(){clearTimeout(this._debounce)}},{key:"renderFirstElementForMeasurement",value:function renderFirstElementForMeasurement(){return J.default.createElement("div",{id:"elementor-icons-manager__tab__content"},this.props.items[0])}},{key:"hasSelected",value:function hasSelected(){return-1!==this.props.selectedIndex}}]),LazyIconList}(J.Component),Y=X;T.default=Y,X.propTypes={items:Q.default.array,selectedIndex:Q.default.number,parentRef:Q.default.any}},8731:(C,T,B)=>{"use strict";var V=B(38003).__,$=B(73203),L=B(7501);Object.defineProperty(T,"__esModule",{value:!0}),T.renderIconManager=T.default=void 0;var q=function _interopRequireWildcard(C,T){if(!T&&C&&C.__esModule)return C;if(null===C||"object"!==L(C)&&"function"!=typeof C)return{default:C};var B=_getRequireWildcardCache(T);if(B&&B.has(C))return B.get(C);var V={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in C)if("default"!==q&&Object.prototype.hasOwnProperty.call(C,q)){var W=$?Object.getOwnPropertyDescriptor(C,q):null;W&&(W.get||W.set)?Object.defineProperty(V,q,W):V[q]=C[q]}V.default=C,B&&B.set(C,V);return V}(B(87363)),W=$(B(73119)),U=$(B(78983)),H=$(B(42081)),G=$(B(77266)),K=$(B(58724)),Q=$(B(71173)),J=$(B(74910)),X=$(B(93231)),Y=$(B(23615)),Z=B(61533),ee=$(B(71656)),te=$(B(51829));function _getRequireWildcardCache(C){if("function"!=typeof WeakMap)return null;var T=new WeakMap,B=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(C){return C?B:T})(C)}function ownKeys(C,T){var B=Object.keys(C);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(C);T&&(V=V.filter((function(T){return Object.getOwnPropertyDescriptor(C,T).enumerable}))),B.push.apply(B,V)}return B}function _objectSpread(C){for(var T=1;T0&&void 0!==arguments[0])||arguments[0];return C.props.icons.map((function(B){if(T^C.isNativeTab(B))return"";var V=B.name===C.state.activeTab,$="elementor-icons-manager__tab-link";return V&&($+=" elementor-active"),q.default.createElement("div",{className:$,key:B.name,onClick:function onClick(){V||C.setState({activeTab:B.name})}},q.default.createElement("i",{className:B.labelIcon}),B.label)}))})),(0,X.default)((0,G.default)(C),"getActiveTabIcons",(function(T){if(T.name)return C.getActiveTabIcons(T.name);if(C.cache[T])return C.cache[T].icons;if("recommended"===T)return C.state.iconTabs[0].icons;if("all"===T)return C.getAllIcons();if(!C.state.loaded[T]){var B=C.props.icons.filter((function(C){return T===C.name}));return elementor.iconManager.library.initIconType(_objectSpread({},B[0]),(function(T){C.cache[T.name]=T,C.updateLoaded(T.name)}))}return elementor.iconManager.store.getIcons(T)})),(0,X.default)((0,G.default)(C),"getAllIcons",(function(){if(C.cache.all)return C.cache.all.icons;var T={};return C.props.icons.forEach((function(B){"all"!==B.name&&"recommended"!==B.name&&(T[B.name]=C.getActiveTabIcons(B.name))})),C.cache.all={icons:T},T})),(0,X.default)((0,G.default)(C),"handleSearch",(function(T){var B=T.target.value;if(B&&""!==B){if(B=B.toLocaleLowerCase(),C.state.filter===B)return}else B="";C.setState({filter:B})})),(0,X.default)((0,G.default)(C),"setSelected",(function(T){elementor.iconManager.setSettings("selectedIcon",T),C.setState({selected:T})})),(0,X.default)((0,G.default)(C),"getSelected",(function(){var T=C.state.selected;return""===T.value&&C.props.selected&&C.props.selected.value&&(T={value:C.props.selected.value,library:C.props.selected.library}),T})),(0,X.default)((0,G.default)(C),"render",(function(){var T=C.getActiveTab(),B=T.name?T.name:T,V=C.props.showSearch,$=void 0===V||V,L=C.state.filter;if("GoPro"!==T){if(!B||!C.state.loaded[B])return"Loading";T&&(T.icons=C.getActiveTabIcons(T))}var U=C.getSelected();return q.default.createElement(q.Fragment,null,q.default.createElement("div",{id:"elementor-icons-manager__sidebar",className:"elementor-templates-modal__sidebar"},q.default.createElement("div",{id:"elementor-icons-manager__tab-links"},C.getIconTabsLinks(),C.getUploadCustomButton(),C.getIconTabsLinks(!1))),q.default.createElement("div",{id:"elementor-icons-manager__main",className:"elementor-templates-modal__content"},"GoPro"===B?q.default.createElement(te.default,null):q.default.createElement(q.Fragment,null,$?C.getSearchHTML():"",q.default.createElement("div",{id:"elementor-icons-manager__tab__wrapper",ref:C.scrollViewRef},q.default.createElement("div",{id:"elementor-icons-manager__tab__title"},T.label),q.default.createElement("div",{id:"elementor-icons-manager__tab__content_wrapper"},q.default.createElement("input",{type:"hidden",name:"icon_value",id:"icon_value",value:U.value}),q.default.createElement("input",{type:"hidden",name:"icon_type",id:"icon_type",value:U.library}),C.state.loaded[T.name]?q.default.createElement(ee.default,(0,W.default)({setSelected:C.setSelected,selected:U,filter:L,key:T.name,parentRef:C.scrollViewRef},T)):"Loading")))))})),C}return(0,H.default)(IconsManager,[{key:"updateLoaded",value:function updateLoaded(C){var T=this.state.loaded;T[C]=!0,this.setState({loaded:T})}},{key:"isNativeTab",value:function isNativeTab(C){return("all"===C.name||"recommended"===C.name||"fa-"===C.name.substr(0,3))&&C.native}},{key:"getUploadCustomButton",value:function getUploadCustomButton(){var C=this,T=function onClick(){"GoPro"!==C.state.activeTab&&C.setState({activeTab:"GoPro"})};return this.props.customIconsURL&&(T=function onClick(){window.open(C.props.customIconsURL,"_blank")}),q.default.createElement("div",{id:"elementor-icons-manager__upload"},q.default.createElement("div",{id:"elementor-icons-manager__upload__title"},V("My Libraries","elementor")),q.default.createElement("button",{id:"elementor-icons-manager__upload__button",className:"elementor-button",onClick:T},V("Upload","elementor")))}},{key:"getSearchHTML",value:function getSearchHTML(){return q.default.createElement("div",{id:"elementor-icons-manager__search"},q.default.createElement("input",{placeholder:"Filter by name...",onInput:this.handleSearch}),q.default.createElement("i",{className:"eicon-search"}))}}]),IconsManager}(q.Component),re=ne;T.default=re;T.renderIconManager=function renderIconManager(C){var T=document.querySelector("#elementor-icons-manager-modal .dialog-content");return(0,Z.render)(q.default.createElement(ne,(0,W.default)({},C,{containerElement:T})),T)},ne.propTypes={activeTab:Y.default.any,customIconsURL:Y.default.string,icons:Y.default.any,loaded:Y.default.any,modalView:Y.default.any,recommended:Y.default.oneOfType([Y.default.bool,Y.default.object]),selected:Y.default.any,showSearch:Y.default.bool}},48478:(C,T,B)=>{"use strict";var V=B(73203),$=B(7501);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var L=function _interopRequireWildcard(C,T){if(!T&&C&&C.__esModule)return C;if(null===C||"object"!==$(C)&&"function"!=typeof C)return{default:C};var B=_getRequireWildcardCache(T);if(B&&B.has(C))return B.get(C);var V={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in C)if("default"!==q&&Object.prototype.hasOwnProperty.call(C,q)){var W=L?Object.getOwnPropertyDescriptor(C,q):null;W&&(W.get||W.set)?Object.defineProperty(V,q,W):V[q]=C[q]}V.default=C,B&&B.set(C,V);return V}(B(87363)),q=V(B(42081)),W=V(B(78983)),U=V(B(77266)),H=V(B(58724)),G=V(B(71173)),K=V(B(74910)),Q=V(B(93231)),J=V(B(23615));function _getRequireWildcardCache(C){if("function"!=typeof WeakMap)return null;var T=new WeakMap,B=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(C){return C?B:T})(C)}function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,K.default)(C);if(T){var $=(0,K.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,G.default)(this,B)}}var X=function(C){(0,H.default)(Icon,C);var T=_createSuper(Icon);function Icon(){var C;(0,W.default)(this,Icon);for(var B=arguments.length,V=new Array(B),$=0;${"use strict";var V=B(38003).__,$=B(73203),L=B(7501);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var q=function _interopRequireWildcard(C,T){if(!T&&C&&C.__esModule)return C;if(null===C||"object"!==L(C)&&"function"!=typeof C)return{default:C};var B=_getRequireWildcardCache(T);if(B&&B.has(C))return B.get(C);var V={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in C)if("default"!==q&&Object.prototype.hasOwnProperty.call(C,q)){var W=$?Object.getOwnPropertyDescriptor(C,q):null;W&&(W.get||W.set)?Object.defineProperty(V,q,W):V[q]=C[q]}V.default=C,B&&B.set(C,V);return V}(B(87363)),W=$(B(42081)),U=$(B(78983)),H=$(B(77266)),G=$(B(58724)),K=$(B(71173)),Q=$(B(74910)),J=$(B(93231));function _getRequireWildcardCache(C){if("function"!=typeof WeakMap)return null;var T=new WeakMap,B=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(C){return C?B:T})(C)}function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,Q.default)(C);if(T){var $=(0,Q.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,K.default)(this,B)}}var X=function(C){(0,G.default)(IconsGoPro,C);var T=_createSuper(IconsGoPro);function IconsGoPro(){var C;(0,U.default)(this,IconsGoPro);for(var B=arguments.length,$=new Array(B),L=0;L{"use strict";var V=B(73203),$=B(7501);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var L=function _interopRequireWildcard(C,T){if(!T&&C&&C.__esModule)return C;if(null===C||"object"!==$(C)&&"function"!=typeof C)return{default:C};var B=_getRequireWildcardCache(T);if(B&&B.has(C))return B.get(C);var V={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in C)if("default"!==q&&Object.prototype.hasOwnProperty.call(C,q)){var W=L?Object.getOwnPropertyDescriptor(C,q):null;W&&(W.get||W.set)?Object.defineProperty(V,q,W):V[q]=C[q]}V.default=C,B&&B.set(C,V);return V}(B(87363)),q=V(B(40131)),W=V(B(9833)),U=V(B(78983)),H=V(B(42081)),G=V(B(77266)),K=V(B(58724)),Q=V(B(71173)),J=V(B(74910)),X=V(B(93231)),Y=V(B(23615)),Z=V(B(60443)),ee=V(B(48478));function _getRequireWildcardCache(C){if("function"!=typeof WeakMap)return null;var T=new WeakMap,B=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(C){return C?B:T})(C)}function _createForOfIteratorHelper(C,T){var B="undefined"!=typeof Symbol&&C[Symbol.iterator]||C["@@iterator"];if(!B){if(Array.isArray(C)||(B=function _unsupportedIterableToArray(C,T){if(!C)return;if("string"==typeof C)return _arrayLikeToArray(C,T);var B=Object.prototype.toString.call(C).slice(8,-1);"Object"===B&&C.constructor&&(B=C.constructor.name);if("Map"===B||"Set"===B)return Array.from(C);if("Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return _arrayLikeToArray(C,T)}(C))||T&&C&&"number"==typeof C.length){B&&(C=B);var V=0,$=function F(){};return{s:$,n:function n(){return V>=C.length?{done:!0}:{done:!1,value:C[V++]}},e:function e(C){throw C},f:$}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var L,q=!0,W=!1;return{s:function s(){B=B.call(C)},n:function n(){var C=B.next();return q=C.done,C},e:function e(C){W=!0,L=C},f:function f(){try{q||null==B.return||B.return()}finally{if(W)throw L}}}}function _arrayLikeToArray(C,T){(null==T||T>C.length)&&(T=C.length);for(var B=0,V=new Array(T);BT.filter)||-1}))})),(0,X.default)((0,G.default)(C),"getLibrary",(function(C){return elementor.config.icons.libraries.filter((function(T){return C===T.name}))})),(0,X.default)((0,G.default)(C),"handleRecommendedList",(function(){var T=[];return Object.entries(C.props.icons).forEach((function(B){var V=C.getLibrary(B[0])[0].icons,$={};B[1].forEach((function(C){V[C]&&($[C]=V[C])})),T=[].concat((0,W.default)(T),(0,W.default)(C.getIconsOfType(B[0],$)))})),T})),(0,X.default)((0,G.default)(C),"getIconsComponentList",(function(){var T=[],B=C.props,V=B.name,$=B.icons,L=B.filter;switch(V){case"all":T=C.handleFullIconList();break;case"recommended":T=C.handleRecommendedList();break;default:T=C.getIconsOfType(V,$)}return L&&(T=Object.values(T).filter((function(C){return C.props.data.name.toLowerCase().indexOf(L)>-1}))),T})),(0,X.default)((0,G.default)(C),"render",(function(){var T,B=C.getIconsComponentList(),V=-1,$=_createForOfIteratorHelper(B.entries());try{for($.s();!(T=$.n()).done;){var W=(0,q.default)(T.value,2),U=W[0];if(W[1].props.containerClass.includes("elementor-selected")){V=U;break}}}catch(C){$.e(C)}finally{$.f()}return L.default.createElement(Z.default,{selectedIndex:V,items:B,parentRef:C.props.parentRef})})),C}return(0,H.default)(Tab,[{key:"getIconsOfType",value:function getIconsOfType(C,T){var B=this,V=this.props,$=V.selected,q=V.filter;return Object.entries(T).map((function(T){var V=T[1],W=T[0],U=V.displayPrefix+" "+V.selector,H="elementor-icons-manager__tab__item";$.value===U&&(H+=" elementor-selected");var G=H+C+"-"+W+q;return L.default.createElement(ee.default,{key:G,library:C,keyID:W,containerClass:H,className:U,setSelectedHandler:B.props.setSelected,data:V})}))}}]),Tab}(L.Component);te.propTypes={data:Y.default.any,filter:Y.default.any,icons:Y.default.object,name:Y.default.string,selected:Y.default.object,setSelected:Y.default.func,parentRef:Y.default.any};var ne=te;T.default=ne},56903:(C,T,B)=>{"use strict";var V=B(38003).__,$=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var L=$(B(78983)),q=$(B(42081)),W=$(B(58724)),U=$(B(71173)),H=$(B(74910)),G=$(B(41864)),K=B(8731),Q=$(B(4982)),J=$(B(26801)),X=B(61533);function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,H.default)(C);if(T){var $=(0,H.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,U.default)(this,B)}}var Y=function(C){(0,W.default)(_default,C);var T=_createSuper(_default);function _default(){return(0,L.default)(this,_default),T.apply(this,arguments)}return(0,q.default)(_default,[{key:"onInit",value:function onInit(){this.library=new Q.default,this.store=new J.default,elementor.helpers.fetchFa4ToFa5Mapping(),this.cache={}}},{key:"getLayout",value:function getLayout(){var C=this;if(!this.layout){this.layout=new G.default;var T=this.layout.getModal();T.addButton({name:"insert_icon",text:V("Insert","elementor"),classes:"elementor-button e-primary",callback:function callback(){C.updateControlValue(),C.unMountIconManager()}}),T.on("show",this.onPickerShow.bind(this)).on("hide",this.unMountIconManager)}return this.layout}},{key:"getDefaultSettings",value:function getDefaultSettings(){return{selectedIcon:{}}}},{key:"unMountIconManager",value:function unMountIconManager(){var C=document.querySelector("#elementor-icons-manager-modal .dialog-content");(0,X.unmountComponentAtNode)(C)}},{key:"loadIconLibraries",value:function loadIconLibraries(){this.cache.loaded||(elementor.config.icons.libraries.forEach((function(C){"all"!==C.name&&elementor.iconManager.library.initIconType(C)})),this.cache.loaded=!0)}},{key:"onPickerShow",value:function onPickerShow(){var C=this.getSettings("controlView"),T={GoPro:!0},B={recommended:C.model.get("recommended")||!1},V=C.getControlValue(),$=elementor.config.icons.libraries;if(V.library&&V.value||(V={value:"",library:""}),B.selected=V,this.setSettings("selectedIcon",V),B.recommended){var L=!1;$.forEach((function(C,T){"recommended"===C.name&&(L=!0,$[T].icons=B.recommended)})),L||$.unshift({name:"recommended",label:"Recommended",icons:B.recommended,labelIcon:"eicon-star-o",native:!0})}else $=$.filter((function(C){return"recommended"!==C.name}));$.forEach((function(C,B){-1===["all","recommended"].indexOf(C.name)&&elementor.iconManager.library.initIconType(C,(function(C){$[B]=C})),T[C.name]=!0})),B.loaded=T,B.icons=$;var q=V.library||$[0].name;if("svg"===V.library&&(q=$[0].name),Object.keys($).some((function(C){return C===q}))||(q=$[0].name),B.recommended&&""!==V.library&&""!==V.value&&Object.prototype.hasOwnProperty.call(B.recommended,V.library)){var W=$.filter((function(C){return V.library===C.name})),U=V.value.replace(W[0].displayPrefix+" "+W[0].prefix,"");B.recommended[V.library].some((function(C){return-1{"use strict";var V=B(38003).__,$=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var L=$(B(78983)),q=$(B(42081)),W=$(B(51121)),U=$(B(58724)),H=$(B(71173)),G=$(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,G.default)(C);if(T){var $=(0,G.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,H.default)(this,B)}}var K=function(C){(0,U.default)(_default,C);var T=_createSuper(_default);function _default(){return(0,L.default)(this,_default),T.apply(this,arguments)}return(0,q.default)(_default,[{key:"getModalOptions",value:function getModalOptions(){return{id:"elementor-icons-manager-modal"}}},{key:"getLogoOptions",value:function getLogoOptions(){return{title:V("Icon Library","elementor")}}},{key:"initialize",value:function initialize(){for(var C,T=arguments.length,B=new Array(T),V=0;V{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.Drop=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var H=function(C){(0,q.default)(Drop,C);var T=_createSuper(Drop);function Drop(){return(0,$.default)(this,Drop),T.apply(this,arguments)}return(0,L.default)(Drop,[{key:"validateArgs",value:function validateArgs(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.requireContainer(C),this.requireArgumentType("model","object",C)}},{key:"apply",value:function apply(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},T=C.containers,B=void 0===T?[C.container]:T,V=C.options,$=void 0===V?{}:V,L=[];return B.forEach((function(T){L.push(T.view.createElementFromModel(C.model,$))})),1===B.length?L[0]:L}}]),Drop}($e.modules.CommandBase);T.Drop=H},17085:(C,T,B)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(T,"Drop",{enumerable:!0,get:function get(){return V.Drop}}),Object.defineProperty(T,"Reload",{enumerable:!0,get:function get(){return $.Reload}});var V=B(32447),$=B(59657)},59657:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.Reload=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var H=function(C){(0,q.default)(Reload,C);var T=_createSuper(Reload);function Reload(){return(0,$.default)(this,Reload),T.apply(this,arguments)}return(0,L.default)(Reload,[{key:"apply",value:function apply(){elementor.reloadPreview()}}]),Reload}($e.modules.CommandBase);T.Reload=H},8916:(C,T,B)=>{"use strict";var V=B(73203),$=B(7501);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var L=V(B(78983)),q=V(B(42081)),W=V(B(58724)),U=V(B(71173)),H=V(B(74910)),G=function _interopRequireWildcard(C,T){if(!T&&C&&C.__esModule)return C;if(null===C||"object"!==$(C)&&"function"!=typeof C)return{default:C};var B=_getRequireWildcardCache(T);if(B&&B.has(C))return B.get(C);var V={},L=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in C)if("default"!==q&&Object.prototype.hasOwnProperty.call(C,q)){var W=L?Object.getOwnPropertyDescriptor(C,q):null;W&&(W.get||W.set)?Object.defineProperty(V,q,W):V[q]=C[q]}V.default=C,B&&B.set(C,V);return V}(B(17085));function _getRequireWildcardCache(C){if("function"!=typeof WeakMap)return null;var T=new WeakMap,B=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(C){return C?B:T})(C)}function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,H.default)(C);if(T){var $=(0,H.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,U.default)(this,B)}}var K=function(C){(0,W.default)(Component,C);var T=_createSuper(Component);function Component(){return(0,L.default)(this,Component),T.apply(this,arguments)}return(0,q.default)(Component,[{key:"getNamespace",value:function getNamespace(){return"preview"}},{key:"defaultCommands",value:function defaultCommands(){return this.importCommands(G)}}]),Component}($e.modules.ComponentBase);T.default=K},76602:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(77266)),W=V(B(58724)),U=V(B(71173)),H=V(B(74910)),G=V(B(93231));function _createForOfIteratorHelper(C,T){var B="undefined"!=typeof Symbol&&C[Symbol.iterator]||C["@@iterator"];if(!B){if(Array.isArray(C)||(B=function _unsupportedIterableToArray(C,T){if(!C)return;if("string"==typeof C)return _arrayLikeToArray(C,T);var B=Object.prototype.toString.call(C).slice(8,-1);"Object"===B&&C.constructor&&(B=C.constructor.name);if("Map"===B||"Set"===B)return Array.from(C);if("Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return _arrayLikeToArray(C,T)}(C))||T&&C&&"number"==typeof C.length){B&&(C=B);var V=0,$=function F(){};return{s:$,n:function n(){return V>=C.length?{done:!0}:{done:!1,value:C[V++]}},e:function e(C){throw C},f:$}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var L,q=!0,W=!1;return{s:function s(){B=B.call(C)},n:function n(){var C=B.next();return q=C.done,C},e:function e(C){W=!0,L=C},f:function f(){try{q||null==B.return||B.return()}finally{if(W)throw L}}}}function _arrayLikeToArray(C,T){(null==T||T>C.length)&&(T=C.length);for(var B=0,V=new Array(T);B0&&void 0!==arguments[0]?arguments[0]:null,T=Object.values(this.elements);return!T.length&&C&&(T=Array.isArray(C)?C:[C]),T}},{key:"add",value:function add(C){var T=arguments.length>1&&void 0!==arguments[1]&&arguments[1];C=Array.isArray(C)?C:[C],T||this.remove([],!0);var B,V=_createForOfIteratorHelper(C);try{for(V.s();!(B=V.n()).done;){var $=B.value;this.elements[$.id]=$,$.view.select()}}catch(C){V.e(C)}finally{V.f()}}},{key:"remove",value:function remove(C){var T=arguments.length>1&&void 0!==arguments[1]&&arguments[1];C=Array.isArray(C)?C:[C],T&&(C=this.getElements());var B,V=_createForOfIteratorHelper(C);try{for(V.s();!(B=V.n()).done;){var $=B.value;delete this.elements[$.id],$.view.deselect()}}catch(C){V.e(C)}finally{V.f()}}},{key:"has",value:function has(C){return this.getElements().includes(C)}},{key:"updateType",value:function updateType(){var C=this.getElements();this.type=Boolean(C.length)&&C.reduce((function(C,T){return C===T.type&&T.type}),C[0].type)}},{key:"updateSortable",value:function updateSortable(){elementor.toggleSortableState(!this.isMultiple())}},{key:"updatePanelPage",value:function updatePanelPage(){var C=this.getElements();1===C.length?$e.run("panel/editor/open",{model:C[0].model,view:C[0].view}):$e.internal("panel/open-default",{autoFocusSearch:!1})}},{key:"updateNavigator",value:function updateNavigator(){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||Boolean(this.type)}}]),Manager}(elementorModules.editor.utils.Module);T.default=K},66915:(C,T,B)=>{"use strict";var V=B(73203),$=V(B(50824)),L=V(B(10029)),q=B(99292);C.exports=elementorModules.ViewModule.extend({model:null,hasChange:!1,changeCallbacks:{},addChangeCallback:function addChangeCallback(C,T){this.changeCallbacks[C]=T},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 C=this.getSettings("name");elementor.getPanelView().addPage(C+"_settings",{view:elementor.settings.panelPages[C]||elementor.settings.panelPages.base,title:this.getSettings("panelPage.title"),options:{editedView:this.getEditedView(),model:this.model,controls:this.model.controls,name:C}})},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 C=elementor.elementsManager.getElementTypeClass("document").getModel(),T=this.getContainerType(),B=new C({id:T,elType:T,settings:this.model}),V=new elementorModules.editor.Container({type:T,id:T,model:B,settings:B.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 V},getEditModel:function getEditModel(){return B},model:B,container:V}},getDocument:function getDocument(){return!1},updateStylesheet:function updateStylesheet(C){var T=this.getControlsCSS();C||T.stylesheet.empty(),this.model.handleRepeaterData(this.model.attributes),T.addStyleRules(this.model.getStyleControls(),this.model.attributes,this.model.controls,[/{{WRAPPER}}/g],[this.getSettings("cssWrapperSelector")]),T.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 C;this.destroyControlsCSS=function(){C.removeStyleFromDocument()},this.getControlsCSS=function(){return C||(C=new q({id:this.getStyleId(),settingsModel:this.model,context:this.getEditedView()})),C}},getDataToSave:function getDataToSave(C){return C},save:function save(C){var T=this;return(0,L.default)($.default.mark((function _callee(){var B,V,L;return $.default.wrap((function _callee$($){for(;;)switch($.prev=$.next){case 0:if((B=T).hasChange){$.next=3;break}return $.abrupt("return");case 3:return V=T.model.toJSON({remove:["default"]}),L=T.getDataToSave({data:V}),NProgress.start(),$.abrupt("return",elementorCommon.ajax.addRequest("save_"+T.getSettings("name")+"_settings",{data:L,success:function success(){NProgress.done(),B.setSettings("settings",V),B.hasChange=!1,C&&C.apply(B,arguments)},error:function error(){alert("An error occurred.")}}));case 6:case"end":return $.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 C=this.getSettings("panelPage.menu");if(C){var T="panel/"+this.getSettings("name")+"-settings",B={icon:C.icon,title:this.getSettings("panelPage.title"),type:"page",pageName:this.getSettings("name")+"_settings",callback:function callback(){return $e.route("".concat(T,"/settings"))}};$e.bc.ensureTab(T,"settings",B.pageName),elementor.modules.layouts.panel.pages.menu.Menu.addItem(B,"settings",C.beforeItem)}},onModelChange:function onModelChange(C){var T=this;T.hasChange=!0,this.getControlsCSS().stylesheet.empty(),_.each(C.changed,(function(C,B){T.changeCallbacks[B]&&T.changeCallbacks[B].call(T,C)})),T.updateStylesheet(!0),T.debounceSave()},onElementorDocumentLoaded:function onElementorDocumentLoaded(){this.updateStylesheet(),this.addPanelPage()},destroy:function destroy(){this.unbindEvents(),this.model.destroy()}})},12767:C=>{"use strict";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()}}})},36551:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var H=function(C){(0,q.default)(_default,C);var T=_createSuper(_default);function _default(){var C;(0,$.default)(this,_default);for(var B=arguments.length,V=new Array(B),L=0;L{"use strict";var V=B(38003).__,$=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var L=$(B(78983)),q=$(B(42081)),W=$(B(58724)),U=$(B(71173)),H=$(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,H.default)(C);if(T){var $=(0,H.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,U.default)(this,B)}}var G=function(C){(0,W.default)(Component,C);var T=_createSuper(Component);function Component(){return(0,L.default)(this,Component),T.apply(this,arguments)}return(0,q.default)(Component,[{key:"getNamespace",value:function getNamespace(){return"panel/page-settings"}},{key:"defaultTabs",value:function defaultTabs(){return{settings:{title:V("Settings","elementor")},style:{title:V("Style","elementor")},advanced:{title:V("Advanced","elementor")}}}},{key:"renderTab",value:function renderTab(C,T){var B=T.activeControl,V=T.refresh,$=void 0!==V&&V;(this.shouldRenderPage(C)||$)&&elementor.getPanelView().setPage("page_settings").activateTab(C),this.activateControl(B)}},{key:"shouldRenderPage",value:function shouldRenderPage(C){var T,B=elementor.getPanelView(),V="page_settings"===B.getCurrentPageName(),$=C===(null===(T=B.getCurrentPageView())||void 0===T?void 0:T.activeTab);return!V||!$}},{key:"getTabsWrapperSelector",value:function getTabsWrapperSelector(){return".elementor-panel-navigation"}}]),Component}($(B(75238)).default);T.default=G},40427:(C,T,B)=>{"use strict";var V=B(73203),$=V(B(76824)),L=V(B(9833)),q=V(B(34991)),W=V(B(40871)),U=B(66915);C.exports=U.extend({getStyleId:function getStyleId(){return this.getSettings("name")+"-"+elementor.documents.getCurrent().id},onInit:function onInit(){U.prototype.onInit.apply(this),$e.components.register(new q.default({manager:this}))},save:function save(){},getDataToSave:function getDataToSave(C){return C.id=elementor.config.document.id,C},getEditedView:function getEditedView(){var C=this;if(this.editedView)return this.editedView;var T=elementor.elementsManager.getElementTypeClass("document").getModel(),B=this.getContainerType(),V=new T({id:B,elType:B,settings:this.model,elements:elementor.elements}),q=new elementorModules.editor.Container({type:B,id:V.id,model:V,settings:V.get("settings"),label:elementor.config.document.panel.title,controls:this.model.controls,children:(0,$.default)(W.default,(0,L.default)(elementor.elements||[])),parent:!1,renderer:{view:{lookup:function lookup(){return q},renderOnChange:function renderOnChange(){return C.updateStylesheet()},renderUI:function renderUI(){return C.updateStylesheet()}}}});return this.editedView={getContainer:function getContainer(){return q},getEditModel:function getEditModel(){return V},model:V,container:q},this.editedView},getContainerType:function getContainerType(){return"document"},getContainerId:function getContainerId(){return elementorDevTools.deprecation.deprecated("getContainerId()","3.7.0","getContainerType()"),this.getContainerType()}})},50235:(C,T,B)=>{"use strict";var V=B(73203)(B(36551));C.exports=elementorModules.Module.extend({modules:{base:B(66915),page:B(40427),editorPreferences:V.default},panelPages:{base:B(12767)},onInit:function onInit(){this.initSettings()},initSettings:function initSettings(){var C=this;_.each(elementor.config.settings,(function(T,B){var V=C.modules[B]||C.modules.base;C[B]=new V(T)}))}})},56284:C=>{"use strict";var T;T=Marionette.Behavior.extend({ui:{insertButton:".elementor-template-library-template-insert"},events:{"click @ui.insertButton":"onInsertButtonClick"},onInsertButtonClick:function onInsertButtonClick(){var C={model:this.view.model};this.ui.insertButton.addClass("elementor-disabled"),"remote"!==C.model.get("source")||elementor.config.library_connect.is_connected?$e.run("library/insert-template",C):$e.route("library/connect",C)}}),C.exports=T},24599:(C,T,B)=>{"use strict";var V,$=B(384);V=Backbone.Collection.extend({model:$}),C.exports=V},57304:(C,T,B)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(T,"Templates",{enumerable:!0,get:function get(){return V.Templates}});var V=B(61129)},61129:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=T.Templates=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var H=function(C){(0,q.default)(Templates,C);var T=_createSuper(Templates);function Templates(){return(0,$.default)(this,Templates),T.apply(this,arguments)}return(0,L.default)(Templates,null,[{key:"getEndpointFormat",value:function getEndpointFormat(){return"template-library/templates"}}]),Templates}($e.modules.CommandData);T.Templates=H;var G=H;T.default=G},57466:(C,T,B)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),Object.defineProperty(T,"InsertTemplate",{enumerable:!0,get:function get(){return V.InsertTemplate}}),Object.defineProperty(T,"Open",{enumerable:!0,get:function get(){return $.Open}});var V=B(36702),$=B(48132)},36702:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=T.InsertTemplate=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var H=function(C){(0,q.default)(InsertTemplate,C);var T=_createSuper(InsertTemplate);function InsertTemplate(){return(0,$.default)(this,InsertTemplate),T.apply(this,arguments)}return(0,L.default)(InsertTemplate,[{key:"apply",value:function apply(C){return this.component.insertTemplate(C)}}]),InsertTemplate}($e.modules.CommandBase);T.InsertTemplate=H;var G=H;T.default=G},48132:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=T.Open=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var H=function(C){(0,q.default)(Open,C);var T=_createSuper(Open);function Open(){return(0,$.default)(this,Open),T.apply(this,arguments)}return(0,L.default)(Open,[{key:"apply",value:function apply(C){return this.component.show(C)}}]),Open}($e.modules.CommandBase);T.Open=H;var G=H;T.default=G},61830:(C,T,B)=>{"use strict";var V=B(38003).__,$=B(73203),L=B(7501);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var q=$(B(93231)),W=$(B(78983)),U=$(B(42081)),H=$(B(51121)),G=$(B(58724)),K=$(B(71173)),Q=$(B(74910)),J=$(B(19076)),X=_interopRequireWildcard(B(57466)),Y=_interopRequireWildcard(B(57304));function _getRequireWildcardCache(C){if("function"!=typeof WeakMap)return null;var T=new WeakMap,B=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(C){return C?B:T})(C)}function _interopRequireWildcard(C,T){if(!T&&C&&C.__esModule)return C;if(null===C||"object"!==L(C)&&"function"!=typeof C)return{default:C};var B=_getRequireWildcardCache(T);if(B&&B.has(C))return B.get(C);var V={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in C)if("default"!==q&&Object.prototype.hasOwnProperty.call(C,q)){var W=$?Object.getOwnPropertyDescriptor(C,q):null;W&&(W.get||W.set)?Object.defineProperty(V,q,W):V[q]=C[q]}return V.default=C,B&&B.set(C,V),V}function ownKeys(C,T){var B=Object.keys(C);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(C);T&&(V=V.filter((function(T){return Object.getOwnPropertyDescriptor(C,T).enumerable}))),B.push.apply(B,V)}return B}function _objectSpread(C){for(var T=1;T{"use strict";var V,$=B(38003).__,L=B(38003).sprintf,q=B(73203),W=q(B(7501)),U=q(B(93231)),H=q(B(61830)),G=B(24599);V=function TemplateLibraryManager(){this.modalConfig={};var C,T,B,V=this,q={},K={},Q={};this.init=function(){!function registerDefaultTemplateTypes(){var C={saveDialog:{description:$("Your designs will be available for export and reuse on any page or website","elementor")},ajaxParams:{success:function success(C){$e.route("library/templates/my-templates",{onBefore:function onBefore(){B&&(B.findWhere({template_id:C.template_id})||B.add(C))}})},error:function error(C){V.showErrorDialog(C)}}},T=(0,U.default)({page:$("Page","elementor"),section:$("Section","elementor"),container:$("Container","elementor")},elementor.config.document.type,elementor.config.document.panel.title);jQuery.each(T,(function(T,B){var q=jQuery.extend(!0,{},C,{saveDialog:{title:L($("Save Your %s to Library","elementor"),B)}});V.registerTemplateType(T,q)}))}(),function registerDefaultFilterTerms(){Q={text:{callback:function callback(C){return C=C.toLowerCase(),this.get("title").toLowerCase().indexOf(C)>=0||_.any(this.get("tags"),(function(T){return T.toLowerCase().indexOf(C)>=0}))}},type:{},subtype:{},favorite:{}}}(),this.component=$e.components.register(new H.default({manager:this})),elementor.addBackgroundClickListener("libraryToggleMore",{element:".elementor-template-library-template-more"})},this.getTemplateTypes=function(C){return C?q[C]:q},this.registerTemplateType=function(C,T){q[C]=T},this.deleteTemplate=function(C,T){var $=V.getDeleteDialog();$.onConfirm=function(){T.onConfirm&&T.onConfirm(),elementorCommon.ajax.addRequest("delete_template",{data:{source:C.get("source"),template_id:C.get("template_id")},success:function success(V){B.remove(C,{silent:!0}),T.onSuccess&&T.onSuccess(V)}})},$.show()},this.importTemplate=function(C){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};elementorDevTools.deprecation.deprecated("importTemplate","2.8.0","$e.run( 'library/insert-template' )"),T.model=C,$e.run("library/insert-template",T)},this.saveTemplate=function(C,T){var B=q[C];_.extend(T,{source:"local",type:C}),B.prepareSavedData&&(T=B.prepareSavedData(T)),T.content=JSON.stringify(T.content);var V={data:T};B.ajaxParams&&_.extend(V,B.ajaxParams),elementorCommon.ajax.addRequest("save_template",V)},this.requestTemplateContent=function(C,T,B){var V={unique_id:T,data:{source:C,edit_mode:!0,display:!0,template_id:T}};return B&&jQuery.extend(!0,V,B),elementorCommon.ajax.addRequest("get_template_data",V)},this.markAsFavorite=function(C,T){var B={data:{source:C.get("source"),template_id:C.get("template_id"),favorite:T}};return elementorCommon.ajax.addRequest("mark_template_as_favorite",B)},this.getDeleteDialog=function(){return C||(C=elementorCommon.dialogsManager.createWidget("confirm",{id:"elementor-template-library-delete-dialog",headerMessage:$("Delete Template","elementor"),message:$("Are you sure you want to delete this template?","elementor"),strings:{confirm:$("Delete","elementor")}})),C},this.getErrorDialog=function(){return T||(T=elementorCommon.dialogsManager.createWidget("alert",{id:"elementor-template-library-error-dialog",headerMessage:$("An error occurred.","elementor")})),T},this.getTemplatesCollection=function(){return B},this.getConfig=function(C){return C?K[C]?K[C]:{}:K},this.requestLibraryData=function(C){if(!B||C.forceUpdate){C.onBeforeUpdate&&C.onBeforeUpdate();var T={data:{},success:function success(T){B=new G(T.templates),T.config&&(K=T.config),C.onUpdate&&C.onUpdate()}};C.forceSync&&(T.data.sync=!0),elementorCommon.ajax.addRequest("get_library_data",T)}else C.onUpdate&&C.onUpdate()},this.getFilter=function(C){return elementor.channels.templates.request("filter:"+C)},this.setFilter=function(C,T,B){elementor.channels.templates.reply("filter:"+C,T),B||elementor.channels.templates.trigger("filter:change")},this.getFilterTerms=function(C){return C?Q[C]:Q},this.setScreen=function(C){elementor.channels.templates.stopReplying(),V.setFilter("source",C.source,!0),V.setFilter("type",C.type,!0),V.setFilter("subtype",C.subtype,!0),V.showTemplates()},this.loadTemplates=function(C){V.layout.showLoadingView();var T={source:this.getFilter("source")},$={};"local"===T.source&&($.refresh=!0),$e.data.get("library/templates",T,$).then((function(T){B=new G(T.data.templates),T.data.config&&(K=T.data.config),V.layout.hideLoadingView(),C&&C()}))},this.showTemplates=function(){V.layout.setHeaderDefaultParts(),V.loadTemplates((function(){var C=V.filterTemplates();V.layout.showTemplatesView(new G(C))}))},this.filterTemplates=function(){var C=V.getFilter("source");return B.filter((function(T){if(C!==T.get("source"))return!1;var B=q[T.get("type")];return!B||!1!==B.showInLibrary}))},this.showErrorDialog=function(C){if("object"===(0,W.default)(C)){var T="";_.each(C,(function(C){null!=C&&C.message&&(T+="
"+C.message+".
")})),C=T}else C&&(C+=".");C=C?$("The following error(s) occurred while processing the request:","elementor")+'
'+C+"
":$("Please try again.","elementor"),V.getErrorDialog().setMessage(C).show()}},C.exports=new V},384:C=>{"use strict";C.exports=Backbone.Model.extend({defaults:{template_id:0,title:"",source:"",type:"",subtype:"",author:"",thumbnail:"",url:"",export_link:"",tags:[]}})},7329:(C,T,B)=>{"use strict";var V=B(38003).__,$=B(40055),L=B(82830),q=B(17555),W=B(220),U=B(15307),H=B(89482),G=B(46831),K=B(35333),Q=B(58489);C.exports=elementorModules.common.views.modal.Layout.extend({getModalOptions:function getModalOptions(){return{id:"elementor-template-library-modal"}},getLogoOptions:function getLogoOptions(){return{title:V("Library","elementor"),click:function click(){$e.run("library/open",{toDefault:!0})}}},getTemplateActionButton:function getTemplateActionButton(C){var T=elementor.config.library_connect.subscription_plans,B=elementor.config.library_connect.base_access_tier,V=C.accessTier,$="#tmpl-elementor-template-library-"+(B!==V?"upgrade-plan-button":"insert-button");$=elementor.hooks.applyFilters("elementor/editor/template-library/template/action-button",$,C);var L=Marionette.TemplateCache.get($),q=T[V],W=elementorAppConfig.hasPro?"Upgrade":"Go ".concat(q.label);return Marionette.Renderer.render(L,{promotionText:W,promotionLink:q.promotion_url})},setHeaderDefaultParts:function setHeaderDefaultParts(){var C=this.getHeaderView();C.tools.show(new $),C.menuArea.show(new L),this.showLogo()},showTemplatesView:function showTemplatesView(C){this.modalContent.show(new U({collection:C}))},showImportView:function showImportView(){var C=this.getHeaderView();C.menuArea.reset(),this.modalContent.show(new G),C.logoArea.show(new W)},showConnectView:function showConnectView(C){this.getHeaderView().menuArea.reset(),this.modalContent.show(new K(C))},showSaveTemplateView:function showSaveTemplateView(C){this.getHeaderView().menuArea.reset(),this.modalContent.show(new H({model:C}))},showPreviewView:function showPreviewView(C){this.modalContent.show(new Q({url:C.get("url")}));var T=this.getHeaderView();T.menuArea.reset(),T.tools.show(new q({model:C})),T.logoArea.show(new W)}})},35333:(C,T,B)=>{"use strict";var V=B(38003).__;C.exports=Marionette.ItemView.extend({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;this.ui.connect.elementorConnect({parseUrl:function parseUrl(T){return T.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:V("Connected successfully.","elementor")}))},error:function error(){elementor.config.library_connect.is_connected=!1}})}})},40055:C=>{"use strict";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 i",sync:"#elementor-template-library-header-sync i",save:"#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")},onSyncClick:function onSyncClick(){var C=this;C.ui.sync.addClass("eicon-animation-spin"),elementor.templates.requestLibraryData({onUpdate:function onUpdate(){C.ui.sync.removeClass("eicon-animation-spin"),$e.routes.refreshContainer("library")},forceUpdate:!0,forceSync:!0})},onSaveClick:function onSaveClick(){$e.route("library/save-template")}})},220:C=>{"use strict";C.exports=Marionette.ItemView.extend({template:"#tmpl-elementor-template-library-header-back",id:"elementor-template-library-header-preview-back",events:{click:"onClick"},onClick:function onClick(){$e.routes.restoreState("library")}})},82830:C=>{"use strict";C.exports=Marionette.ItemView.extend({template:"#tmpl-elementor-template-library-header-menu",id:"elementor-template-library-header-menu",templateHelpers:function templateHelpers(){return{tabs:$e.components.get("library").getTabs()}}})},17555:(C,T,B)=>{"use strict";var V=B(56284);C.exports=Marionette.ItemView.extend({template:"#tmpl-elementor-template-library-header-preview",id:"elementor-template-library-header-preview",behaviors:{insertTemplate:{behaviorClass:V}}})},46831:(C,T,B)=>{"use strict";var V,$=B(73203),L=$(B(50824)),q=$(B(10029)),W=$(B(40548)),U=B(67010);V=Marionette.ItemView.extend({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"},events:{"change @ui.fileInput":"onFileInputChange"},droppedFiles:null,submitForm:function submitForm(){var C,T=this;this.droppedFiles?(C=this.droppedFiles[0],this.droppedFiles=null):(C=this.ui.fileInput[0].files[0],this.ui.uploadForm[0].reset());var B=new FileReader;B.onload=function(B){return T.importTemplate(C.name,B.target.result.replace(/^[^,]+,/,""))},B.readAsDataURL(C)},importTemplate:function importTemplate(C,T){var B=this;return(0,q.default)(L.default.mark((function _callee(){var V;return L.default.wrap((function _callee$($){for(;;)switch($.prev=$.next){case 0:return V=elementor.templates.layout,B.options={data:{fileName:C,fileData:T},success:function success(C){elementor.templates.getTemplatesCollection().add(C),$e.route("library/templates/my-templates")},error:function error(C){elementor.templates.showErrorDialog(C),V.showImportView()},complete:function complete(){V.hideLoadingView()}},$.next=4,(0,U.showJsonUploadWarningMessageIfNeeded)({introductionMap:window.elementor.config.user.introduction,IntroductionClass:window.elementorModules.editor.utils.Introduction});case 4:elementorCommon.config.filesUpload.unfilteredFiles?B.sendImportRequest():W.default.getUnfilteredFilesNotEnabledImportTemplateDialog((function(){return B.sendImportRequest()})).show();case 5:case"end":return $.stop()}}),_callee)})))()},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)})},onFormActions:function onFormActions(C){C.preventDefault(),C.stopPropagation()},onFormDragEnter:function onFormDragEnter(){this.ui.uploadForm.addClass("elementor-drag-over")},onFormDragLeave:function onFormDragLeave(C){jQuery(C.relatedTarget).closest(this.ui.uploadForm).length||this.ui.uploadForm.removeClass("elementor-drag-over")},onFormDrop:function onFormDrop(C){this.droppedFiles=C.originalEvent.dataTransfer.files,this.submitForm()},onFileInputChange:function onFileInputChange(){this.submitForm()}}),C.exports=V},58489:C=>{"use strict";var T;T=Marionette.ItemView.extend({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"))}}),C.exports=T},89482:C=>{"use strict";var T;T=Marionette.ItemView.extend({id:"elementor-template-library-save-template",template:"#tmpl-elementor-template-library-save-template",ui:{form:"#elementor-template-library-save-template-form",submitButton:"#elementor-template-library-save-template-submit"},events:{"submit @ui.form":"onFormSubmit"},getSaveType:function getSaveType(){return 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 C=this.getSaveType();return elementor.templates.getTemplateTypes(C).saveDialog},onFormSubmit:function onFormSubmit(C){C.preventDefault();var T=this.ui.form.elementorSerializeObject(),B=this.getSaveType(),V={remove:["default"]};T.content=this.model?[this.model.toJSON(V)]:elementor.elements.toJSON(V),this.ui.submitButton.addClass("elementor-button-state"),elementor.templates.saveTemplate(B,T)}}),C.exports=T},75403:(C,T,B)=>{"use strict";var V,$=B(38003).__;V=Marionette.ItemView.extend({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"},modesStrings:{empty:{title:$("Haven’t Saved Templates Yet?","elementor"),message:$("This is where your templates should be. Design it. Save it. Reuse it.","elementor")},noResults:{title:$("No Results Found","elementor"),message:$("Please make sure your search is spelled correctly or try a different words.","elementor")},noFavorites:{title:$("No Favorite Templates","elementor"),message:$("You can mark any pre-designed template as a favorite.","elementor")}},getCurrentMode:function getCurrentMode(){return elementor.templates.getFilter("text")?"noResults":elementor.templates.getFilter("favorite")?"noFavorites":"empty"},onRender:function onRender(){var C=this.modesStrings[this.getCurrentMode()];this.ui.title.html(C.title),this.ui.message.html(C.message)}}),C.exports=V},15307:(C,T,B)=>{"use strict";var V,$=B(38003).__,L=B(73203)(B(91795)),q=B(70078),W=B(79032);V=Marionette.CompositeView.extend({template:"#tmpl-elementor-template-library-templates",id:"elementor-template-library-templates",childViewContainer:"#elementor-template-library-templates-container",reorderOnSort:!0,emptyView:function emptyView(){return new(B(75403))},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"},events:{"input @ui.textFilter":"onTextFilterInput","change @ui.selectFilter":"onSelectFilterChange","change @ui.myFavoritesFilter":"onMyFavoritesFilterChange","mousedown @ui.orderLabels":"onOrderLabelsClick"},comparators:{title:function title(C){return C.get("title").toLowerCase()},popularityIndex:function popularityIndex(C){var popularityIndex=C.get("popularityIndex");return popularityIndex||(popularityIndex=C.get("date")),-popularityIndex},trendIndex:function trendIndex(C){var trendIndex=C.get("trendIndex");return trendIndex||(trendIndex=C.get("date")),-trendIndex}},getChildView:function getChildView(C){return"remote"===C.get("source")?W:q},initialize:function initialize(){this.listenTo(elementor.channels.templates,"filter:change",this._renderChildren)},filter:function filter(C){var T=elementor.templates.getFilterTerms(),B=!0;return jQuery.each(T,(function(T){var V=elementor.templates.getFilter(T);if(V){if(this.callback){var $=this.callback.call(C,V);return $||(B=!1),$}var L=V===C.get(T);return L||(B=!1),L}})),B},order:function order(C,T){var B=this.comparators[C]||C;T&&(B=this.reverseOrder(B)),this.collection.comparator=B,this.collection.sort()},reverseOrder:function reverseOrder(C){if("function"!=typeof C){var T=C;C=function comparator(C){return C.get(T)}}return function(T,B){var V=C(T);if(void 0===V)return-1;var $=C(B);return void 0===$||V<$?1:V>$?-1:0}},addSourceData:function addSourceData(){var C=this.children.isEmpty();this.$el.attr("data-template-source",C?"empty":elementor.templates.getFilter("source"))},setFiltersUI:function setFiltersUI(){if(!this.select2Instance){var C=this.$(this.ui.selectFilter),T={placeholder:$("Category","elementor"),allowClear:!0,width:150,dropdownParent:this.$el};this.select2Instance=new L.default({$element:C,options:T})}},setMasonrySkin:function setMasonrySkin(){var C=new elementorModules.utils.Masonry({container:this.$childViewContainer,items:this.$childViewContainer.children()});this.$childViewContainer.imagesLoaded(C.run.bind(C))},toggleFilterClass:function toggleFilterClass(){this.$el.toggleClass("elementor-templates-filter-active",!(!elementor.templates.getFilter("text")&&!elementor.templates.getFilter("favorite")))},isPageOrLandingPageTemplates:function isPageOrLandingPageTemplates(){var C=elementor.templates.getFilter("type");return"page"===C||"lp"===C},onRender:function onRender(){"remote"===elementor.templates.getFilter("source")&&"page"!==elementor.templates.getFilter("type")&&"lb"!==elementor.templates.getFilter("type")&&this.setFiltersUI()},onRenderCollection:function onRenderCollection(){this.addSourceData(),this.toggleFilterClass(),"remote"!==elementor.templates.getFilter("source")||this.isPageOrLandingPageTemplates()||this.setMasonrySkin()},onBeforeRenderEmpty:function onBeforeRenderEmpty(){this.addSourceData()},onTextFilterInput:function onTextFilterInput(){elementor.templates.setFilter("text",this.ui.textFilter.val())},onSelectFilterChange:function onSelectFilterChange(C){var T=jQuery(C.currentTarget),B=T.data("elementor-filter");elementor.templates.setFilter(B,T.val())},onMyFavoritesFilterChange:function onMyFavoritesFilterChange(){elementor.templates.setFilter("favorite",this.ui.myFavoritesFilter[0].checked)},onOrderLabelsClick:function onOrderLabelsClick(C){var T,B=jQuery(C.currentTarget.control);B[0].checked||(T="asc"!==B.data("default-ordering-direction")),B.toggleClass("elementor-template-library-order-reverse",T),this.order(B.val(),B.hasClass("elementor-template-library-order-reverse"))}}),C.exports=V},93746:(C,T,B)=>{"use strict";var V,$=B(56284),L=B(56827),q=L.isTierAtLeast,W=L.TIERS;V=Marionette.ItemView.extend({className:function className(){var C="elementor-template-library-template",T=this.model.get("source");return C+=" elementor-template-library-template-"+T,"remote"===T&&(C+=" elementor-template-library-template-"+this.model.get("type")),elementor.config.library_connect.base_access_tier!==this.model.get("accessTier")&&(C+=" elementor-template-library-pro-template"),C},attributes:function attributes(){var C=elementor.config.library_connect.current_access_tier,T=this.model.get("accessTier");if(q(C,T))return{};var B=elementor.config.library_connect.subscription_plans,V=B[T];return C===W.free&&(V=B.essential),V?{style:'--elementor-template-library-subscription-plan-label: "'.concat(V.label,'";--elementor-template-library-subscription-plan-color: ').concat(V.color,";")}:{}},ui:function ui(){return{previewButton:".elementor-template-library-template-preview"}},events:function events(){return{"click @ui.previewButton":"onPreviewButtonClick"}},behaviors:{insertTemplate:{behaviorClass:$}}}),C.exports=V},70078:(C,T,B)=>{"use strict";var V,$=B(93746);V=$.extend({template:"#tmpl-elementor-template-library-template-local",ui:function ui(){return _.extend($.prototype.ui.apply(this,arguments),{deleteButton:".elementor-template-library-template-delete",morePopup:".elementor-template-library-template-more",toggleMore:".elementor-template-library-template-more-toggle",toggleMoreIcon:".elementor-template-library-template-more-toggle i"})},events:function events(){return _.extend($.prototype.events.apply(this,arguments),{"click @ui.deleteButton":"onDeleteButtonClick","click @ui.toggleMore":"onToggleMoreClick"})},onDeleteButtonClick:function onDeleteButtonClick(){var C=this.ui.toggleMoreIcon;elementor.templates.deleteTemplate(this.model,{onConfirm:function onConfirm(){C.removeClass("eicon-ellipsis-h").addClass("eicon-loading eicon-animation-spin")},onSuccess:function onSuccess(){elementor.templates.showTemplates()}})},onToggleMoreClick:function onToggleMoreClick(){this.ui.morePopup.show()},onPreviewButtonClick:function onPreviewButtonClick(){open(this.model.get("url"),"_blank")}}),C.exports=V},79032:(C,T,B)=>{"use strict";var V,$=B(93746);V=$.extend({template:"#tmpl-elementor-template-library-template-remote",ui:function ui(){return jQuery.extend($.prototype.ui.apply(this,arguments),{favoriteCheckbox:".elementor-template-library-template-favorite-input"})},events:function events(){return jQuery.extend($.prototype.events.apply(this,arguments),{"change @ui.favoriteCheckbox":"onFavoriteCheckboxChange"})},onPreviewButtonClick:function onPreviewButtonClick(){$e.route("library/preview",{model:this.model})},onFavoriteCheckboxChange:function onFavoriteCheckboxChange(){var C=this.ui.favoriteCheckbox[0].checked;this.model.set("favorite",C),elementor.templates.markAsFavorite(this.model,C),!C&&elementor.templates.getFilter("favorite")&&elementor.channels.templates.trigger("filter:change")}}),C.exports=V},96731:C=>{"use strict";C.exports=elementorModules.Module.extend({errors:[],__construct:function __construct(C){var T=C.customValidationMethod;T&&(this.validationMethod=T)},getDefaultSettings:function getDefaultSettings(){return{validationTerms:{}}},isValid:function isValid(){var C=this.validationMethod.apply(this,arguments);return!C.length||(this.errors=C,!1)},validationMethod:function validationMethod(C){var T=[];return this.getSettings("validationTerms").required&&((""+C).length||T.push("Required value is empty")),T}})},33273:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,U.default)(C);if(T){var $=(0,U.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,W.default)(this,B)}}var H=B(12161),G=function(C){(0,q.default)(BreakpointValidator,C);var T=_createSuper(BreakpointValidator);function BreakpointValidator(){return(0,$.default)(this,BreakpointValidator),T.apply(this,arguments)}return(0,L.default)(BreakpointValidator,[{key:"getDefaultSettings",value:function getDefaultSettings(){return{validationTerms:{max:5120}}}},{key:"getPanelActiveBreakpoints",value:function getPanelActiveBreakpoints(){var C=elementor.documents.currentDocument.config.settings.settings.active_breakpoints.map((function(C){return C.replace("viewport_","")})),T={};return C.forEach((function(C){T[C]=elementorFrontend.config.responsive.breakpoints[C]})),T}},{key:"initBreakpointProperties",value:function initBreakpointProperties(){var C,T,B=this.getSettings("validationTerms"),V=this.getPanelActiveBreakpoints(),$=Object.keys(V);this.breakpointIndex=$.indexOf(B.breakpointName),this.topBreakpoint=null===(C=V[$[this.breakpointIndex+1]])||void 0===C?void 0:C.value,this.bottomBreakpoint=null===(T=V[$[this.breakpointIndex-1]])||void 0===T?void 0:T.value}},{key:"validationMethod",value:function validationMethod(C){var T=this.getSettings("validationTerms"),B=H.prototype.validationMethod.call(this,C);return(_.isFinite(C)||""===C)&&(this.validateMinMaxForBreakpoint(C,T)||B.push("Value is not between the breakpoints above or under the edited breakpoint")),B}},{key:"validateMinMaxForBreakpoint",value:function validateMinMaxForBreakpoint(C,T){var B=elementorFrontend.config.responsive.breakpoints[T.breakpointName].default_value,V=!0;return this.initBreakpointProperties(),"mobile"===T.breakpointName&&320===this.bottomBreakpoint&&(this.bottomBreakpoint-=1),this.bottomBreakpoint&&(""!==C&&C<=this.bottomBreakpoint&&(V=!1),""===C&&B<=this.bottomBreakpoint&&(V=!1)),this.topBreakpoint&&(""!==C&&C>=this.topBreakpoint&&(V=!1),""===C&&B>=this.topBreakpoint&&(V=!1)),V}}]),BreakpointValidator}(H);T.default=G},12161:(C,T,B)=>{"use strict";var V=B(96731);C.exports=V.extend({validationMethod:function validationMethod(C){var T=this.getSettings("validationTerms"),B=[];return _.isFinite(C)&&(void 0!==T.min&&CT.max&&B.push("Value is greater than maximum")),B}})},40871:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(58724)),W=V(B(71173)),U=V(B(74910));function _createForOfIteratorHelper(C,T){var B="undefined"!=typeof Symbol&&C[Symbol.iterator]||C["@@iterator"];if(!B){if(Array.isArray(C)||(B=function _unsupportedIterableToArray(C,T){if(!C)return;if("string"==typeof C)return _arrayLikeToArray(C,T);var B=Object.prototype.toString.call(C).slice(8,-1);"Object"===B&&C.constructor&&(B=C.constructor.name);if("Map"===B||"Set"===B)return Array.from(C);if("Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return _arrayLikeToArray(C,T)}(C))||T&&C&&"number"==typeof C.length){B&&(C=B);var V=0,$=function F(){};return{s:$,n:function n(){return V>=C.length?{done:!0}:{done:!1,value:C[V++]}},e:function e(C){throw C},f:$}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var L,q=!0,W=!1;return{s:function s(){B=B.call(C)},n:function n(){var C=B.next();return q=C.done,C},e:function e(C){W=!0,L=C},f:function f(){try{q||null==B.return||B.return()}finally{if(W)throw L}}}}function _arrayLikeToArray(C,T){(null==T||T>C.length)&&(T=C.length);for(var B=0,V=new Array(T);B{"use strict";var V=B(73203),$=V(B(40131)),L=V(B(93231)),q=V(B(33273));function _createForOfIteratorHelper(C,T){var B="undefined"!=typeof Symbol&&C[Symbol.iterator]||C["@@iterator"];if(!B){if(Array.isArray(C)||(B=function _unsupportedIterableToArray(C,T){if(!C)return;if("string"==typeof C)return _arrayLikeToArray(C,T);var B=Object.prototype.toString.call(C).slice(8,-1);"Object"===B&&C.constructor&&(B=C.constructor.name);if("Map"===B||"Set"===B)return Array.from(C);if("Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return _arrayLikeToArray(C,T)}(C))||T&&C&&"number"==typeof C.length){B&&(C=B);var V=0,$=function F(){};return{s:$,n:function n(){return V>=C.length?{done:!0}:{done:!1,value:C[V++]}},e:function e(C){throw C},f:$}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var L,q=!0,W=!1;return{s:function s(){B=B.call(C)},n:function n(){var C=B.next();return q=C.done,C},e:function e(C){W=!0,L=C},f:function f(){try{q||null==B.return||B.return()}finally{if(W)throw L}}}}function _arrayLikeToArray(C,T){(null==T||T>C.length)&&(T=C.length);for(var B=0,V=new Array(T);B{"use strict";var V,$=B(73203),L=$(B(7501)),q=$(B(40131));V=B(53005).extend({applySavedValue:function applySavedValue(){var C=this.getControlValue(),T=this.$("[data-setting]"),B=this;_.each(C,(function(C,V){var $=T.filter((function(){return V===this.dataset.setting}));B.setInputValue($,C)}))},getControlValue:function getControlValue(C){var T=this.container.settings.get(this.model.get("name"));if(!jQuery.isPlainObject(T))return{};if(C){var B=T[C];return void 0===B&&(B=""),B}return elementorCommon.helpers.cloneObject(T)},getCleanControlValue:function getCleanControlValue(C){var T=this,B=Object.fromEntries(Object.entries(this.getControlValue()).filter((function(C){var B=(0,q.default)(C,2),V=B[0],$=B[1];return $&&T.model.get("default")[V]!==$})));return C?null==B?void 0:B[C]:Object.keys(B).length?B:void 0},setValue:function setValue(C,T){var B=this.getControlValue();"object"===(0,L.default)(C)?_.each(C,(function(C,T){B[T]=C})):B[C]=T,this.setSettingsModel(B)},updateElementModel:function updateElementModel(C,T){var B=T.dataset.setting;this.setValue(B,C)}},{getStyleValue:function getStyleValue(C,T){return _.isObject(T)?T[C.toLowerCase()]:""}}),C.exports=V},26804:(C,T,B)=>{"use strict";function _createForOfIteratorHelper(C,T){var B="undefined"!=typeof Symbol&&C[Symbol.iterator]||C["@@iterator"];if(!B){if(Array.isArray(C)||(B=function _unsupportedIterableToArray(C,T){if(!C)return;if("string"==typeof C)return _arrayLikeToArray(C,T);var B=Object.prototype.toString.call(C).slice(8,-1);"Object"===B&&C.constructor&&(B=C.constructor.name);if("Map"===B||"Set"===B)return Array.from(C);if("Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return _arrayLikeToArray(C,T)}(C))||T&&C&&"number"==typeof C.length){B&&(C=B);var V=0,$=function F(){};return{s:$,n:function n(){return V>=C.length?{done:!0}:{done:!1,value:C[V++]}},e:function e(C){throw C},f:$}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var L,q=!0,W=!1;return{s:function s(){B=B.call(C)},n:function n(){var C=B.next();return q=C.done,C},e:function e(C){W=!0,L=C},f:function f(){try{q||null==B.return||B.return()}finally{if(W)throw L}}}}function _arrayLikeToArray(C,T){(null==T||T>C.length)&&(T=C.length);for(var B=0,V=new Array(T);Binput",unitSwitcher:".e-units-switcher",unitChoices:".e-units-choices"})},events:function events(){return Object.assign($.prototype.events.apply(this,arguments),{"change @ui.units":"onUnitChange","click @ui.units":"onUnitClick","click @ui.unitSwitcher":"onUnitLabelClick"})},updatePlaceholder:function updatePlaceholder(){var C,T=null===(C=this.getControlPlaceholder())||void 0===C?void 0:C.unit;this.ui.units.removeClass("e-units-placeholder"),T!==this.getControlValue("unit")&&this.ui.units.filter('[value="'.concat(T,'"]')).addClass("e-units-placeholder")},recursiveUnitChange:function recursiveUnitChange(){var C=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],T=this.getResponsiveParentView();if(T&&C){var B=T.getControlValue("unit"),V=Object.keys(this.getCleanControlValue()||{});V.splice(V.indexOf("unit"),1),B&&!V.length&&(this.setValue("unit",B),this.render())}var $,L=_createForOfIteratorHelper(this.getResponsiveChildrenViews());try{for(L.s();!($=L.n()).done;){$.value.recursiveUnitChange()}}catch(C){L.e(C)}finally{L.f()}},onRender:function onRender(){$.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(C){this.ui.unitChoices.toggleClass("e-units-choices-open",C)},updateUnitChoices:function updateUnitChoices(){var C=this.getControlValue("unit");this.ui.unitSwitcher.attr("data-selected",C).find("span").html(C),this.$el.toggleClass("e-units-custom",this.isCustomUnit())},onUnitClick:function onUnitClick(){this.toggleUnitChoices(!1)},onUnitLabelClick:function onUnitLabelClick(C){C.preventDefault(),this.toggleUnitChoices()},getCurrentRange:function getCurrentRange(){return this.getUnitRange(this.getControlValue("unit"))},getUnitRange:function getUnitRange(C){var T=this.model.get("range");return!!T&&(T[C]||(T[C]=Object.values(T)[0]),T[C])},isCustomUnit:function isCustomUnit(){return"custom"===this.getControlValue("unit")}},{getStyleValue:function getStyleValue(C,T){var B=$.getStyleValue(C,T);return"UNIT"===C&&"custom"===B&&(B="__EMPTY__"),B}}),C.exports=V},15584:(C,T,B)=>{"use strict";var V,$=B(73203)(B(93231));function ownKeys(C,T){var B=Object.keys(C);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(C);T&&(V=V.filter((function(T){return Object.getOwnPropertyDescriptor(C,T).enumerable}))),B.push.apply(B,V)}return B}function _objectSpread(C){for(var T=1;T{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(77266)),W=V(B(58724)),U=V(B(71173)),H=V(B(74910)),G=V(B(93231)),K=B(79188);function ownKeys(C,T){var B=Object.keys(C);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(C);T&&(V=V.filter((function(T){return Object.getOwnPropertyDescriptor(C,T).enumerable}))),B.push.apply(B,V)}return B}function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,H.default)(C);if(T){var $=(0,H.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,U.default)(this,B)}}var Q="UPDATE-VALUE",J="UPDATE-VALUE-ENHANCED",X="SKIP-UPDATE-VALUE",Y=function(C){(0,W.default)(Scrubbing,C);var T=_createSuper(Scrubbing);function Scrubbing(){var C;(0,$.default)(this,Scrubbing);for(var B=arguments.length,V=new Array(B),L=0;L{"use strict";var V,$=B(73203)(B(65863)),L=B(87474);V=L.extend({ui:function ui(){var ui=L.prototype.ui.apply(this,arguments);return ui.sliders=".elementor-slider",ui.colorPickerPlaceholder=".elementor-color-picker-placeholder",ui},initSliders:function initSliders(){var C=this,T=this.getControlValue();this.ui.sliders.each((function(B,V){var $=jQuery(V).next(".elementor-slider-input").find("input"),L=noUiSlider.create(V,{start:[T[V.dataset.input]],step:1,range:{min:+$.attr("min"),max:+$.attr("max")},format:{to:function to(C){return+C.toFixed(1)},from:function from(C){return+C}}});L.on("slide",(function(T){var B=L.target.dataset.input;$.val(T[0]),C.setValue(B,T[0])}))}))},initColors:function initColors(){var C=this;this.colorPicker=new $.default({picker:{el:this.ui.colorPickerPlaceholder[0],default:this.getControlValue("color")},onChange:function onChange(){C.setValue("color",C.colorPicker.getColor())},onClear:function onClear(){C.setValue("color","")}})},onInputChange:function onInputChange(C){var T=C.currentTarget.dataset.setting;this.ui.sliders.filter('[data-input="'+T+'"]')[0].noUiSlider.set(this.getControlValue(T))},onReady:function onReady(){this.initSliders(),this.initColors()},onBeforeDestroy:function onBeforeDestroy(){this.colorPicker.destroy()}}),C.exports=V},73309:(C,T,B)=>{"use strict";var V=B(15584);C.exports=V.extend({ui:function ui(){var ui=V.prototype.ui.apply(this,arguments);return ui.button="button",ui},events:{"click @ui.button":"onButtonClick"},onButtonClick:function onButtonClick(){var C=this.model.get("event");elementor.channels.editor.trigger(C,this)}})},11292:(C,T,B)=>{"use strict";var V,$=B(53005);V=$.extend({ui:function ui(){var ui=$.prototype.ui.apply(this,arguments);return ui.inputs='[type="radio"]',ui},events:function events(){return _.extend($.prototype.events.apply(this,arguments),{"mousedown label":"onMouseDownLabel","click @ui.inputs":"onClickInput","change @ui.inputs":"onBaseInputChange"})},updatePlaceholder:function updatePlaceholder(){var C=this.getControlPlaceholder();!this.getControlValue()&&C?this.ui.inputs.filter('[value="'.concat(this.getControlPlaceholder(),'"]')).addClass("e-choose-placeholder"):this.ui.inputs.removeClass("e-choose-placeholder")},onReady:function onReady(){this.updatePlaceholder()},applySavedValue:function applySavedValue(){var C=this.getControlValue();C?this.ui.inputs.filter('[value="'+C+'"]').prop("checked",!0):this.ui.inputs.filter(":checked").prop("checked",!1)},onMouseDownLabel:function onMouseDownLabel(C){var T=this.$(C.currentTarget),B=this.$("#"+T.attr("for"));B.data("checked",B.prop("checked"))},onClickInput:function onClickInput(C){if(this.model.get("toggle")){var T=this.$(C.currentTarget);T.data("checked")&&T.prop("checked",!1).trigger("change")}},onBaseInputChange:function onBaseInputChange(){$.prototype.onBaseInputChange.apply(this,arguments),this.updatePlaceholder()}},{onPasteStyle:function onPasteStyle(C,T){return""===T||void 0!==C.options[T]}}),C.exports=V},16543:(C,T,B)=>{"use strict";var V,$=B(53005);V=$.extend({ui:function ui(){var ui=$.prototype.ui.apply(this,arguments);return ui.editor=".elementor-code-editor",ui},onReady:function onReady(){var C=this;if("undefined"!=typeof ace){var T=ace.require("ace/ext/language_tools"),B=elementor.settings.editorPreferences.model.get("ui_theme"),V=matchMedia("(prefers-color-scheme: dark)").matches;if(C.editor=ace.edit(this.ui.editor[0]),jQuery(C.editor.container).addClass("e-input-style elementor-code-editor elementor-control-tag-area"),C.editor.setOptions({mode:"ace/mode/"+C.model.attributes.language,minLines:10,maxLines:1/0,showGutter:!0,useWorker:!0,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0}),("dark"===B||"auto"===B&&V)&&C.editor.setTheme("ace/theme/merbivore_soft"),C.editor.getSession().setUseWrapMode(!0),elementor.panel.$el.on("resize.aceEditor",C.onResize.bind(this)),"css"===C.model.attributes.language){T.addCompleter({getCompletions:function getCompletions(C,T,B,V,$){var L=[],q=T.getTokenAt(B.row,B.column);0C.length&&$.setAnnotations(C)}))}}},onResize:function onResize(){this.editor.resize()},onDestroy:function onDestroy(){elementor.panel.$el.off("resize.aceEditor")}}),C.exports=V},12031:(C,T,B)=>{"use strict";var V=B(38003).__,$=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var L=$(B(50824)),q=$(B(10029)),W=$(B(9833)),U=$(B(78983)),H=$(B(42081)),G=$(B(51121)),K=$(B(58724)),Q=$(B(71173)),J=$(B(74910)),X=$(B(53005)),Y=$(B(65863));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,J.default)(C);if(T){var $=(0,J.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,Q.default)(this,B)}}var Z=function(C){(0,K.default)(_default,C);var T,B=_createSuper(_default);function _default(){return(0,U.default)(this,_default),B.apply(this,arguments)}return(0,H.default)(_default,[{key:"ui",value:function ui(){var ui=(0,G.default)((0,J.default)(_default.prototype),"ui",this).call(this);return ui.pickerContainer=".elementor-color-picker-placeholder",ui}},{key:"applySavedValue",value:function applySavedValue(){var C=this.getCurrentValue();if(this.colorPicker)if(C){var T,B=this.colorPicker.picker._parseLocalColor(C);(T=this.colorPicker.picker).setHSVA.apply(T,(0,W.default)(B.values).concat([!1]))}else this.colorPicker.picker._clearColor(!0);else this.initPicker();this.$el.toggleClass("e-control-color--no-value",!C)}},{key:"initPicker",value:function initPicker(){var C,T=this,B={picker:{el:this.ui.pickerContainer[0],default:this.getCurrentValue(),components:{opacity:this.model.get("alpha")},defaultRepresentation:"HEX"},addButton:null===(C=this.model.get("global"))||void 0===C?void 0:C.active,onChange:function onChange(){return T.onPickerChange()},onClear:function onClear(){return T.onPickerClear()},onAddButtonClick:function onAddButtonClick(){return T.onAddGlobalButtonClick()},onPickerShow:function onPickerShow(){return T.reRoute(!0)},onPickerHide:function onPickerHide(){return T.reRoute(!1)}};this.colorPicker=new Y.default(B),this.hidePickerOnPreviewClick(),this.$pickerButton=jQuery(this.colorPicker.picker.getRoot().button),this.addTipsyToPickerButton(),this.addEyedropper(),this.$pickerButton.on("click",(function(){return T.onPickerButtonClick()})),jQuery(this.colorPicker.picker.getRoot().root).addClass("elementor-control-unit-1 elementor-control-tag-area")}},{key:"hidePickerOnPreviewClick",value:function hidePickerOnPreviewClick(){var C=this.colorPicker.picker,T=C.constructor.utils;C._eventBindings.push(T.on(elementorFrontend.elements.window.document,["touchstart","pointerdown"],(function(){C.isOpen()&&C.hide()})))}},{key:"addTipsyToPickerButton",value:function addTipsyToPickerButton(){var C=this;this.$pickerButton.tipsy({title:function title(){var T=C.getCurrentValue();return C.getGlobalKey()&&!T&&(T="".concat(V("Invalid Global Color","elementor"))),T||""},offset:4,gravity:function gravity(){return"s"}})}},{key:"addEyedropper",value:function addEyedropper(){var C=this,T=jQuery(Marionette.Renderer.render("#tmpl-elementor-control-element-color-picker")),B=this.colorPicker.$pickerToolsContainer,$=this.getOption("container"),L=null;"kit"===$.document.config.type&&(L=$.document),T.tipsy({title:function title(){return V("Color Sampler","elementor")},gravity:"s"}),T.on("click",(function(){$e.run("elements-color-picker/start",{container:$,kit:L,control:C.model.get("name"),trigger:T[0]})})),B.append(T)}},{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' '+V("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 V("Are you sure you want to create a new Global Color?","elementor")}},{key:"getAddGlobalConfirmMessage",value:function getAddGlobalConfirmMessage(C){for(var T,B=V("New Global Color","elementor"),$=this.getCurrentValue(),L=jQuery("
",{class:"e-global__confirm-message"}),q=jQuery("
",{class:"e-global__confirm-message-text"}),W=jQuery("
",{class:"e-global__confirm-input-wrapper"}),U=this.createColorPreviewBox($),H=jQuery("",{type:"text",name:"global-name",placeholder:B}).val(B),G=0,K=Object.values(C);G",{class:"e-global__preview-item e-global__color","data-global-id":C.id}),B=this.createColorPreviewBox(C.value),V=jQuery("",{class:"e-global__color-title"}).html(C.title),$=jQuery("",{class:"e-global__color-hex"}).html(C.value);return T.append(B,V,$),T}},{key:"createColorPreviewBox",value:function createColorPreviewBox(C){var T=jQuery("
",{class:"e-global__color-preview-container"}),B=jQuery("
",{class:"e-global__color-preview-color",style:"background-color: "+C}),V=jQuery("
",{class:"e-global__color-preview-transparent-bg"});return T.append(V,B),T}},{key:"getGlobalsList",value:(T=(0,q.default)(L.default.mark((function _callee(){var C;return L.default.wrap((function _callee$(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,$e.data.get(this.getGlobalCommand());case 2:return C=T.sent,T.abrupt("return",C.data);case 4:case"end":return T.stop()}}),_callee,this)}))),function getGlobalsList(){return T.apply(this,arguments)})},{key:"buildGlobalsList",value:function buildGlobalsList(C,T){var B=this;Object.values(C).forEach((function(C){if(C.value){var V=B.createGlobalItemMarkup(C);T.append(V)}}))}},{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 C=this;this.getGlobalsList().then((function(T){C.globalsList=T,C.triggerMethod("add:global:to:list",C.getAddGlobalConfirmMessage(T))}))}},{key:"activate",value:function activate(){this.colorPicker.picker.show()}},{key:"onBeforeDestroy",value:function onBeforeDestroy(){this.colorPicker&&this.colorPicker.destroy()}}]),_default}(X.default);T.default=Z},91238:(C,T,B)=>{"use strict";var V=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var $=V(B(78983)),L=V(B(42081)),q=V(B(51121)),W=V(B(58724)),U=V(B(71173)),H=V(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,H.default)(C);if(T){var $=(0,H.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,U.default)(this,B)}}var G=function(C){(0,W.default)(_default,C);var T=_createSuper(_default);function _default(){return(0,$.default)(this,_default),T.apply(this,arguments)}return(0,L.default)(_default,[{key:"onReady",value:function onReady(){var C=_.extend({enableTime:!0,minuteIncrement:1},this.model.get("picker_options"));this.ui.input.flatpickr(C)}},{key:"onBaseInputChange",value:function onBaseInputChange(){var C;(0,q.default)((0,H.default)(_default.prototype),"onBaseInputChange",this).apply(this,arguments),null!==(C=this.model.get("validation"))&&void 0!==C&&C.date_time&&this.validateDateTime()}},{key:"validateDateTime",value:function validateDateTime(){var C=this.model.get("validation").date_time,T=C.control_name,B=C.operator,V=this.options.container.settings.get(T),$=this.ui.input.val();if(V&&$){var L=new Date(V).getTime(),q=new Date($).getTime();elementor.conditions.compare(L,q,B)&&this.ui.input.val("")}}},{key:"onBeforeDestroy",value:function onBeforeDestroy(){this.ui.input.flatpickr().destroy()}}]),_default}(B(53005));T.default=G},53261:(C,T,B)=>{"use strict";var V=B(73203),$=V(B(93231)),L=V(B(54249));function ownKeys(C,T){var B=Object.keys(C);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(C);T&&(V=V.filter((function(T){return Object.getOwnPropertyDescriptor(C,T).enumerable}))),B.push.apply(B,V)}return B}function _objectSpread(C){for(var T=1;T{"use strict";var V=B(76772);C.exports=V.extend({$previewContainer:null,getSelect2Options:function getSelect2Options(){return{dir:elementorCommon.config.isRTL?"rtl":"ltr",templateSelection:this.fontPreviewTemplate,templateResult:this.fontPreviewTemplate}},onReady:function onReady(){var C=this;this.ui.select.select2(this.getSelect2Options()),this.ui.select.on("select2:open",(function(){C.$previewContainer=jQuery('.select2-results__options[role="tree"]:visible'),setTimeout((function(){C.enqueueFontsInView()}),100),jQuery("input.select2-search__field:visible").on("keyup",(function(){C.typeStopDetection.action.apply(C)})),C.$previewContainer.on("scroll",(function(){C.scrollStopDetection.onScroll.apply(C)}))}))},typeStopDetection:{idle:350,timeOut:null,action:function action(){var C=this,T=this.typeStopDetection;clearTimeout(T.timeOut),T.timeOut=setTimeout((function(){C.enqueueFontsInView()}),T.idle)}},scrollStopDetection:{idle:350,timeOut:null,onScroll:function onScroll(){var C=this,T=this.scrollStopDetection;clearTimeout(T.timeOut),T.timeOut=setTimeout((function(){C.enqueueFontsInView()}),T.idle)}},enqueueFontsInView:function enqueueFontsInView(){var C=this.$previewContainer.offset().top,T=C+this.$previewContainer.innerHeight(),B=[];this.$previewContainer.children().find("li:visible").each((function(V,$){var L=jQuery($),q=L.offset();q&&q.top>C&&q.top",{text:C.text,css:{"font-family":C.element.value.toString()}}):C.text},templateHelpers:function templateHelpers(){var C=V.prototype.templateHelpers.apply(this,arguments),T=this.model.get("options");return C.getFontsByGroups=function(C){var B={};return _.each(T,(function(T,V){(_.isArray(C)&&_.contains(C,T)||T===C)&&(B[V]=V)})),B},C}})},13607:(C,T,B)=>{"use strict";var V,$=B(38003).sprintf,L=B(38003).__,q=B(73203)(B(40548)),W=B(53005);V=W.extend({ui:function ui(){var ui=W.prototype.ui.apply(this,arguments);return ui.addImages=".elementor-control-gallery-add",ui.clearGallery=".elementor-control-gallery-clear",ui.galleryThumbnails=".elementor-control-gallery-thumbnails",ui.status=".elementor-control-gallery-status-title",ui},events:function events(){return _.extend(W.prototype.events.apply(this,arguments),{"click @ui.addImages":"onAddImagesClick","click @ui.clearGallery":"onClearGalleryClick","click @ui.galleryThumbnails":"onGalleryThumbnailsClick","keyup @ui.galleryThumbnails":"onGalleryThumbnailsKeyPress"})},onReady:function onReady(){this.initRemoveDialog()},applySavedValue:function applySavedValue(){var C=this.getControlValue().length,T=!!C;this.$el.toggleClass("elementor-gallery-has-images",T).toggleClass("elementor-gallery-empty",!T);var B=this.ui.galleryThumbnails;B.empty(),this.ui.status.text(T?$(L("%s Images Selected","elementor"),C):L("No Images Selected","elementor")),T&&this.getControlValue().forEach((function(C){var T=jQuery("
",{class:"elementor-control-gallery-thumbnail"});T.css("background-image","url("+C.url+")"),B.append(T)}))},hasImages:function hasImages(){return!!this.getControlValue().length},openFrame:function openFrame(C){this.initFrame(C),this.frame.open(),q.default.isUploadEnabled("svg")&&q.default.setUploadTypeCaller(this.frame)},initFrame:function initFrame(C){var T={frame:"post",multiple:!0,state:{create:"gallery",add:"gallery-library",edit:"gallery-edit"}[C],button:{text:L("Insert Media","elementor")}};this.hasImages()&&(T.selection=this.fetchSelection()),this.frame=wp.media(T),this.addSvgMimeType(),this.frame.on({update:this.select,"menu:render:default":this.menuRender,"content:render:browse":this.gallerySettings},this)},addSvgMimeType:function addSvgMimeType(){if(q.default.isUploadEnabled("svg")){var C=_wpPluploadSettings.defaults.filters.mime_types[0].extensions;this.frame.on("ready",(function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=C+",svg"})),this.frame.on("close",(function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=C}))}},menuRender:function menuRender(C){C.unset("insert"),C.unset("featured-image")},gallerySettings:function gallerySettings(C){C.sidebar.on("ready",(function(){C.sidebar.unset("gallery")}))},fetchSelection:function fetchSelection(){var C=wp.media.query({orderby:"post__in",order:"ASC",type:"image",perPage:-1,post__in:_.pluck(this.getControlValue(),"id")});return new wp.media.model.Selection(C.models,{props:C.props.toJSON(),multiple:!0})},select:function select(C){var T=[];C.each((function(C){T.push({id:C.get("id"),url:C.get("url")})})),this.setValue(T),this.applySavedValue()},onBeforeDestroy:function onBeforeDestroy(){this.frame&&this.frame.off(),this.$el.remove()},clearGallery:function clearGallery(){this.setValue([]),this.applySavedValue()},initRemoveDialog:function initRemoveDialog(){var C;this.getRemoveDialog=function(){return C||(C=elementorCommon.dialogsManager.createWidget("confirm",{message:L("Are you sure you want to clear this gallery?","elementor"),headerMessage:L("Clear gallery","elementor"),strings:{confirm:L("Clear","elementor"),cancel:L("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(C){13!==C.which&&32!==C.which||this.onGalleryThumbnailsClick(C)}}),C.exports=V},97465:(C,T,B)=>{"use strict";var V,$=B(73203)(B(7501)),L=B(53261);V=L.extend({ui:function ui(){var ui=L.prototype.ui.apply(this,arguments);return ui.controls=".elementor-control-gap > input:enabled",ui.link="button.elementor-link-gaps",ui},getPossibleDimensions:function getPossibleDimensions(){return["row","column"]},setValue:function setValue(C,T){var B=this.getControlValue();"object"===(0,$.default)(C)?_.each(C,(function(C,T){B[T]=C})):B[C]=T;var V=this.model.get("conversion_map");V&&V.old_key&&V.new_key&&(B[V.old_key]=parseInt(B[V.new_key])),this.setSettingsModel(B)},getControlValue:function getControlValue(C){var T=L.prototype.getControlValue.apply(this,arguments);return this.shouldUpdateGapsValues(T)&&(T.column=""+T.size,T.row=""+T.size,T.isLinked=!0),T},shouldUpdateGapsValues:function shouldUpdateGapsValues(C){return!!C.hasOwnProperty("size")&&""!==C.size&&!C.hasOwnProperty("column")}}),C.exports=V},14553:(C,T,B)=>{"use strict";var V=B(73203)(B(53005));C.exports=V.default.extend({},{onPasteStyle:function onPasteStyle(){return!1}})},30750:(C,T,B)=>{"use strict";var V,$=B(76772);V=$.extend({initialize:function initialize(){$.prototype.initialize.apply(this,arguments),this.filterIcons()},filterIcons:function filterIcons(){var C=this.model.get("options"),T=this.model.get("include");if(T){var B={};return _.each(T,(function(T){B[T]=C[T]})),void this.model.set("options",B)}var V=this.model.get("exclude");V&&_.each(V,(function(T){delete C[T]}))},iconsList:function iconsList(C){return C.id?jQuery(' '+C.text+""):C.text},getSelect2Options:function getSelect2Options(){return{allowClear:!0,templateResult:this.iconsList.bind(this),templateSelection:this.iconsList.bind(this)}}}),C.exports=V},20911:(C,T,B)=>{"use strict";var V=B(38003).__,$=B(73203),L=$(B(78983)),q=$(B(42081)),W=$(B(51121)),U=$(B(58724)),H=$(B(71173)),G=$(B(74910)),K=$(B(40548));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,G.default)(C);if(T){var $=(0,G.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,H.default)(this,B)}}var Q=B(87474),J=function(C){(0,U.default)(ControlIconsView,C);var T=_createSuper(ControlIconsView);function ControlIconsView(){var C;(0,L.default)(this,ControlIconsView);for(var B=arguments.length,V=new Array(B),$=0;$'+V("Learn More","elementor")+"",V("Update","elementor"),(function onConfirm(){var C;window.location.href=elementor.config.tools_page_link+"&redirect_to_document="+(null===(C=elementor.documents.getCurrent())||void 0===C?void 0:C.id)+"&_wpnonce="+elementor.config.tools_page_nonce+"#tab-fontawesome4_migration"})).show(),!1}),!0);var T=this.model.get("name");this.cache.migratedFlag[T]&&(this.setControlAsMigrated(T),setTimeout((function(){C.setValue(C.cache.migratedFlag[T])}),10))}},{key:"onRender",value:function onRender(){(0,W.default)((0,G.default)(ControlIconsView.prototype),"onRender",this).call(this),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:V("Insert Media","elementor")},library:{type:["image/svg+xml"]},states:[new wp.media.controller.Library({title:V("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(C,T){var B=_wpPluploadSettings.defaults.filters.mime_types[0].extensions;C.on("ready",(function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=T})),this.frame.on("close",(function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=B}))}},{key:"selectSvg",value:function selectSvg(){this.trigger("before:select");var C=this.frame.state().get("selection").first().toJSON();C.url&&(this.setValue({value:{url:C.url,id:C.id},library:"svg"}),this.applySavedValue()),this.trigger("after:select")}},{key:"openFrame",value:function openFrame(){var C=this;if(!K.default.isUploadEnabled("svg"))return K.default.getUnfilteredFilesNotEnabledDialog((function(){return C.openFrame()})).show(),!1;this.frame||this.initFrame(),this.frame.open(),K.default.setUploadTypeCaller(this.frame);var T=this.getControlValue("id");T&&this.frame.state().get("selection").add(wp.media.attachment(T))}},{key:"openPicker",value:function openPicker(){elementor.iconManager.show({view:this})}},{key:"applySavedValue",value:function applySavedValue(){var C=this,T=this.getControlValue(),B=this.model.get("skin"),V="inline"===B?this.ui.inlineDisplayedIcon:this.ui.previewPlaceholder,$=this.model.get("disable_initial_active_state"),L=this.model.get("default"),q=T.value,W=T.library;if(this.isMigrationAllowed()||q||!this.getValueToMigrate()||(q=this.getControlValue(),W=""),"media"===B&&this.ui.controlMedia.toggleClass("e-media-empty",!q),("inline"===B&&!$||W)&&this.markChecked(W),!q)return"inline"===B?void this.setDefaultIconLibraryLabel(L,V):void this.ui.previewPlaceholder.html("");if("svg"===W&&"inline"!==B)return elementor.helpers.fetchInlineSvg(q.url,(function(T){C.ui.previewPlaceholder.html(T)}));if("media"===B||"svg"!==W){var U='';V.html(U)}this.enqueueIconFonts(W)}},{key:"setDefaultIconLibraryLabel",value:function setDefaultIconLibraryLabel(C,T){if(""!==C.value&&"svg"!==C.library)T.html('');else{var B=this.model.get("skin_settings");T.html('')}}},{key:"markChecked",value:function markChecked(C){if(this.ui.radioInputs.filter(":checked").prop("checked",!1),!C)return this.ui.radioInputs.filter('[value="none"]').prop("checked",!0);"svg"!==C&&(C="icon"),this.ui.radioInputs.filter('[value="'+C+'"]').prop("checked",!0)}},{key:"onClickInput",value:function onClickInput(){this.markChecked(this.getControlValue().library)}},{key:"deleteIcon",value:function deleteIcon(C){C.stopPropagation(),this.setValue({value:"",library:""}),this.applySavedValue()}},{key:"onBeforeDestroy",value:function onBeforeDestroy(){this.$el.remove()}}]),ControlIconsView}(Q);C.exports=J},53736:(C,T,B)=>{"use strict";var V=B(73203),$=V(B(93231)),L=V(B(54249));function ownKeys(C,T){var B=Object.keys(C);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(C);T&&(V=V.filter((function(T){return Object.getOwnPropertyDescriptor(C,T).enumerable}))),B.push.apply(B,V)}return B}function _objectSpread(C){for(var T=1;T{"use strict";var V=B(38003).__,$=B(73203),L=$(B(50824)),q=$(B(93231)),W=$(B(10029)),U=$(B(40548)),H=B(67010);function ownKeys(C,T){var B=Object.keys(C);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(C);T&&(V=V.filter((function(T){return Object.getOwnPropertyDescriptor(C,T).enumerable}))),B.push.apply(B,V)}return B}function _objectSpread(C){for(var T=1;T1&&void 0!==T[1]?T[1]:null,W=(null==C||null===(V=C.target)||void 0===V||null===($=V.dataset)||void 0===$?void 0:$.mediaType)||B.getMediaType(),B.mediaType=W,W){L.next=5;break}return L.abrupt("return");case 5:if(U.default.isUploadEnabled(W)){L.next=8;break}return U.default.getUnfilteredFilesNotEnabledDialog((function(){return B.openFrame(C,"filter-popup")})).show(),L.abrupt("return",!1);case 8:if("filter-popup"===q||!["application/json","json"].includes(W)){L.next=11;break}return L.next=11,(0,H.showJsonUploadWarningMessageIfNeeded)({introductionMap:window.elementor.config.user.introduction,IntroductionClass:window.elementorModules.editor.utils.Introduction});case 11:if(B.frame&&B.getLibraryType(W)===B.currentLibraryType||B.initFrame(),B.frame.open(),U.default.setUploadTypeCaller(B.frame),G=B.getControlValue("id")){L.next=17;break}return L.abrupt("return");case 17:B.frame.state().get("selection").add(wp.media.attachment(G));case 18:case"end":return L.stop()}}),_callee)})))()},deleteImage:function deleteImage(C){C.stopPropagation(),this.setValue({url:"",id:""}),this.applySavedValue()},onMediaInputImageSizeChange:function onMediaInputImageSizeChange(){var C=this;if(this.model.get("has_sizes")){var T=this.getControlValue(),B=this.getControlPlaceholder(),V=""!==(null==T?void 0:T.id),$=null==B?void 0:B.id;if(V||$){var L;if($&&!V)return this.setValue(_objectSpread(_objectSpread({},B),{},{size:T.size})),this.model.get("responsive")?this.renderWithChildren():this.applySavedValue(),void this.onMediaInputImageSizeChange();elementor.channels.editor.once("imagesManager:detailsReceived",(function(B){var V;(L=null===(V=B[T.id])||void 0===V?void 0:V[T.size])&&(T.url=L,C.setValue(T))})),(L=elementor.imagesManager.getImageUrl({id:T.id,url:T.url,size:T.size}))&&(T.url=L,this.setValue(T))}}},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:V("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","'".concat(V("Insert Media","elementor"),"'")),C.addClass("e-wp-media-elements-removed"),"url"===this.getControlValue("source")?(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(C,T){var B=_wpPluploadSettings.defaults.filters.mime_types[0].extensions;C.on("ready",(function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions="application/json"===T?"json":B+",svg"})),this.frame.on("close",(function(){_wpPluploadSettings.defaults.filters.mime_types[0].extensions=B}))},select:function select(){this.trigger("before:select");var C,T=this.frame.state();"embed"===T.get("id")?C={url:T.props.get("url"),id:"",alt:T.props.get("alt"),source:"url"}:(C=this.frame.state().get("selection").first().toJSON()).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()}}),C.exports=G},19598:(C,T,B)=>{"use strict";var V=B(73203),$=V(B(93231)),L=V(B(54249));function ownKeys(C,T){var B=Object.keys(C);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(C);T&&(V=V.filter((function(T){return Object.getOwnPropertyDescriptor(C,T).enumerable}))),B.push.apply(B,V)}return B}function _objectSpread(C){for(var T=1;T{"use strict";var V=B(38003).__,$=B(73203);Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var L=$(B(50824)),q=$(B(10029)),W=$(B(40131)),U=$(B(78983)),H=$(B(42081)),G=$(B(58724)),K=$(B(71173)),Q=$(B(74910));function _createSuper(C){var T=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(C){return!1}}();return function _createSuperInternal(){var B,V=(0,Q.default)(C);if(T){var $=(0,Q.default)(this).constructor;B=Reflect.construct(V,arguments,$)}else B=V.apply(this,arguments);return(0,K.default)(this,B)}}var J=B(11292),X=function(C){(0,G.default)(ControlPopoverStarterView,C);var T,B=_createSuper(ControlPopoverStarterView);function ControlPopoverStarterView(){return(0,U.default)(this,ControlPopoverStarterView),B.apply(this,arguments)}return(0,H.default)(ControlPopoverStarterView,[{key:"ui",value:function ui(){var ui=J.prototype.ui.apply(this,arguments);return ui.popoverToggle=".elementor-control-popover-toggle-toggle",ui.resetInput=".elementor-control-popover-toggle-reset",ui}},{key:"events",value:function events(){return _.extend(J.prototype.events.apply(this,arguments),{"click @ui.popoverToggle":"onPopoverToggleClick","click @ui.resetInput":"onResetInputClick"})}},{key:"onShow",value:function onShow(){var C=this,T=this.$el.next(".elementor-controls-popover");T.length&&(T[0].dataset.popoverToggle="elementor-control-default-".concat(this.model.cid),T.on("hide",(function(){return C.onPopoverHide()})),T.attr("data-on-hide",!0))}},{key:"onPopoverHide",value:function onPopoverHide(){this.reRoute(!1)}},{key:"onResetInputClick",value:function onResetInputClick(){var C=this.model.get("global");null!=C&&C.active&&this.triggerMethod("value:type:change")}},{key:"onInputChange",value:function onInputChange(C){C.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 C=this;this.isGlobalActive()&&!this.getControlValue()&&!this.getGlobalKey()&&this.getGlobalDefault()&&this.triggerMethod("unlink:global:default");var T=this.$el.next(".elementor-controls-popover");T.attr("data-on-hide")||(T.attr("data-on-hide",!0),T.on("hide",(function(){return C.onPopoverHide()}))),T.is(":visible")?(T.hide(),T.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(C){var T={};return Object.entries(C).forEach((function(C){var B=(0,W.default)(C,2),V=B[0],$=B[1];if($&&""!==$.size)if(V.startsWith("typography_")&&(V=V.replace("typography_","")),"font_family"===V&&elementor.helpers.enqueueFont($,"editor"),"font_size"===V){var L="custom"===$.unit?$.size:"".concat($.size).concat($.unit);T.fontSize="min(".concat(L,", 28px)")}else V.includes("_")&&(V=V.replace(/([_][a-z])/g,(function(C){return C.toUpperCase().replace("_","")}))),T[V]=$})),T}},{key:"createGlobalItemMarkup",value:function createGlobalItemMarkup(C){var T=jQuery("
",{class:"e-global__preview-item e-global__typography","data-global-id":C.id,title:C.title});return T.html(C.title).css(this.buildPreviewItemCSS(C.value)),T}},{key:"getGlobalMeta",value:function getGlobalMeta(){return{commandName:this.getGlobalCommand(),key:this.model.get("name"),title:V("New Typography Setting","elementor"),controlType:"typography",route:"panel/global/global-typography"}}},{key:"getAddGlobalConfirmMessage",value:function getAddGlobalConfirmMessage(){var C=this.getGlobalMeta(),T=jQuery("
",{class:"e-global__confirm-message"}),B=jQuery("
").html(V("Are you sure you want to create a new Global Font setting?","elementor")),$=jQuery("
",{class:"e-global__confirm-input-wrapper"}),L=jQuery("",{type:"text",name:"global-name",placeholder:C.title}).val(C.title);return $.append(L),T.append(B,$),T}},{key:"getGlobalsList",value:(T=(0,q.default)(L.default.mark((function _callee(){var C;return L.default.wrap((function _callee$(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,$e.data.get(this.getGlobalCommand());case 2:return C=T.sent,T.abrupt("return",C.data);case 4:case"end":return T.stop()}}),_callee,this)}))),function getGlobalsList(){return T.apply(this,arguments)})},{key:"buildGlobalsList",value:function buildGlobalsList(C,T){var B=this;Object.values(C).forEach((function(C){if(C){var V=B.createGlobalItemMarkup(C);T.append(V)}}))}},{key:"onAddGlobalButtonClick",value:function onAddGlobalButtonClick(){this.triggerMethod("add:global:to:list",this.getAddGlobalConfirmMessage())}}]),ControlPopoverStarterView}(J);T.default=X,X.onPasteStyle=function(C,T){return!T||T===C.return_value}},98550:(C,T,B)=>{"use strict";var V=B(38003).sprintf,$=B(38003).__,L=B(73203)(B(99533));C.exports=Marionette.CompositeView.extend({template:Marionette.TemplateCache.get("#tmpl-elementor-repeater-row"),className:"elementor-repeater-fields",ui:function ui(){return{duplicateButton:".elementor-repeater-tool-duplicate",editButton:".elementor-repeater-tool-edit",removeButton:".elementor-repeater-tool-remove",itemTitle:".elementor-repeater-row-item-title"}},behaviors:{HandleInnerTabs:{behaviorClass:B(10367)}},triggers:{"click @ui.removeButton":"click:remove","click @ui.duplicateButton":"click:duplicate","click @ui.itemTitle":"click:edit"},modelEvents:{change:"onModelChange"},templateHelpers:function templateHelpers(){return{itemIndex:this.getOption("itemIndex"),itemActions:this.getOption("itemActions")}},childViewContainer:".elementor-repeater-row-controls",getChildView:function getChildView(C){var T=C.get("type");return elementor.getControlView(T)},getChildControlView:function getChildControlView(C){return this.getControlViewByModel(this.getControlModel(C))},getControlViewByModel:function getControlViewByModel(C){return this.children.findByModelCid(C.cid)},getControlModel:function getControlModel(C){return this.collection.findWhere({name:C})},childViewOptions:function childViewOptions(){return{container:this.options.container}},updateIndex:function updateIndex(C){this.itemIndex=C},setTitle:function setTitle(){var C=this.getOption("titleField"),T="";C&&(T=Marionette.TemplateCache.prototype.compileTemplate(C)(this.model.parseDynamicSettings())),T||(T=V($("Item #%s","elementor"),this.getOption("itemIndex"))),this.ui.itemTitle.html(T)},toggleSort:function toggleSort(C){this.$el.toggleClass("elementor-repeater-row--disable-sort",!C)},initialize:function initialize(C){this.itemIndex=0,this.collection=new Backbone.Collection(_.values(elementor.mergeControlsSettings(C.controlFields)))},onRender:function onRender(){this.setTitle(),L.default.handlePopovers(this)},onModelChange:function onModelChange(){this.getOption("titleField")&&this.setTitle()},onChildviewResponsiveSwitcherClick:function onChildviewResponsiveSwitcherClick(C,T){"desktop"===T&&elementor.getPanelView().getCurrentPageView().$el.toggleClass("elementor-responsive-switchers-open")}})},1142:(C,T,B)=>{"use strict";var V,$=B(53005),L=B(98550);V=$.extend({ui:{btnAddRow:".elementor-repeater-add",fieldContainer:".elementor-repeater-fields-wrapper"},events:function events(){return{"click @ui.btnAddRow":"onButtonAddRowClick","sortstart @ui.fieldContainer":"onSortStart","sortupdate @ui.fieldContainer":"onSortUpdate","sortstop @ui.fieldContainer":"onSortStop"}},childView:L,childViewContainer:".elementor-repeater-fields-wrapper",templateHelpers:function templateHelpers(){return{itemActions:this.model.get("item_actions"),data:_.extend({},this.model.toJSON(),{controlValue:[]})}},childViewOptions:function childViewOptions(C,T){return{container:this.getOption("container").repeaters[this.model.get("name")].children[T],controlFields:this.model.get("fields"),titleField:this.model.get("title_field"),itemActions:this.model.get("item_actions")}},createItemModel:function createItemModel(C,T,B){return T.controls=B.model.get("fields"),new elementorModules.editor.elements.models.BaseSettings(C,T)},fillCollection:function fillCollection(){var C=this.container?this.container.settings:this.elementSettingsModel,T=this.model.get("name");this.collection=C.get(T),this.collection instanceof Backbone.Collection||(this.collection=new Backbone.Collection(this.collection,{model:_.partial(this.createItemModel,_,_,this)}),C.set(T,this.collection,{silent:!0}))},initialize:function initialize(){$.prototype.initialize.apply(this,arguments),this.fillCollection(),this.listenTo(this.collection,"reset",this.resetContainer.bind(this)),this.listenTo(this.collection,"add",this.updateContainer.bind(this))},editRow:function editRow(C){if(this.currentEditableChild){var T=this.currentEditableChild.getChildViewContainer(this.currentEditableChild);T.removeClass("editable"),T.find(".elementor-wp-editor").each((function(){tinymce.get(this.id).fire("hide")}))}this.currentEditableChild!==C?(C.getChildViewContainer(C).addClass("editable"),this.currentEditableChild=C,this.updateActiveRow()):delete this.currentEditableChild},toggleMinRowsClass:function toggleMinRowsClass(){this.model.get("prevent_empty")&&this.$el.toggleClass("elementor-repeater-has-minimum-rows",1>=this.collection.length)},updateActiveRow:function updateActiveRow(){var C=1;this.currentEditableChild&&(C=this.currentEditableChild.itemIndex),this.setEditSetting("activeItemIndex",C)},updateChildIndexes:function updateChildIndexes(){var C=this.collection;this.children.each((function(T){T.updateIndex(C.indexOf(T.model)+1),T.setTitle()}))},getSortableParams:function getSortableParams(){return{axis:"y",handle:".elementor-repeater-row-tools",items:" > :not(.elementor-repeater-row--disable-sort)",cancel:""}},onRender:function onRender(){$.prototype.onRender.apply(this,arguments),this.model.get("item_actions").sort&&this.ui.fieldContainer.sortable(this.getSortableParams()),this.toggleMinRowsClass()},onSortStart:function onSortStart(C,T){T.item.data("oldIndex",T.item.index())},onSortStop:function onSortStop(C,T){var B=this;if(-1!==T.item.index()){var V=B.children.findByIndex(T.item.index()),$=V.children._views;jQuery.each($,(function(){if("wysiwyg"===this.model.get("type"))return V.render(),delete B.currentEditableChild,!1}))}},onSortUpdate:function onSortUpdate(C,T){var B=T.item.data("oldIndex"),V=T.item.index();$e.run("document/repeater/move",{container:this.options.container,name:this.model.get("name"),sourceIndex:B,targetIndex:V})},onAddChild:function onAddChild(){this.updateChildIndexes(),this.updateActiveRow()},updateContainer:function updateContainer(C){this.options.container.repeaters[this.model.get("name")].children.filter((function(T){return T.id===C.get("_id")})).length||(elementorDevTools.deprecation.deprecated("Don't add models directly to the repeater.","3.0.0","$e.run( 'document/repeater/insert' )"),this.options.container.addRepeaterItem(this.model.get("name"),C,C.collection.indexOf(C)))},resetContainer:function resetContainer(){elementorDevTools.deprecation.deprecated("Don't reset repeater collection directly.","3.0.0","$e.run( 'document/repeater/remove' )"),this.options.container.repeaters[this.model.get("name")].children=[]},getDefaults:function getDefaults(){var C={};return _.each(this.model.get("fields"),(function(T){C[T.name]=T.default})),C},getChildControlView:function getChildControlView(C){return this.getControlViewByModel(this.getControlModel(C))},getControlViewByModel:function getControlViewByModel(C){return this.children.findByModelCid(C.cid)},getControlModel:function getControlModel(C){return this.collection.findWhere({_id:C})},onButtonAddRowClick:function onButtonAddRowClick(){var C=$e.run("document/repeater/insert",{container:this.options.container,name:this.model.get("name"),model:this.getDefaults()}),T=this.children.findByModel(C);this.editRow(T),this.toggleMinRowsClass()},onChildviewClickRemove:function onChildviewClickRemove(C){C===this.currentEditableChild&&delete this.currentEditableChild,$e.run("document/repeater/remove",{container:this.options.container,name:this.model.get("name"),index:C._index}),this.updateActiveRow(),this.updateChildIndexes(),this.toggleMinRowsClass()},onChildviewClickDuplicate:function onChildviewClickDuplicate(C){$e.run("document/repeater/duplicate",{container:this.options.container,name:this.model.get("name"),index:C._index}),this.toggleMinRowsClass()},onChildviewClickEdit:function onChildviewClickEdit(C){this.editRow(C)},onAfterExternalChange:function onAfterExternalChange(){this.fillCollection(),$.prototype.onAfterExternalChange.apply(this,arguments)}}),C.exports=V},37199:(C,T,B)=>{"use strict";var V,$=B(15584);V=$.extend({ui:function ui(){var ui=$.prototype.ui.apply(this,arguments);return ui.heading=".elementor-panel-heading",ui},triggers:{click:"control:section:clicked"}}),C.exports=V},88402:(C,T,B)=>{"use strict";var V,$=B(53005);V=$.extend({updatePlaceholder:function updatePlaceholder(){var C=this.ui.select;if(C){var T=C.find("option:selected");""!==T.val()||T.hasClass("e-option-placeholder")||(T=C.find(".e-option-placeholder")).prop("selected",!0),T.hasClass("e-option-placeholder")?C.addClass("e-select-placeholder"):C.removeClass("e-select-placeholder")}},onReady:function onReady(){var C=this.getControlPlaceholder();C&&jQuery("