File: //home/sportpoint-hotel.ru/public_html/wp-content/plugins/elementor/assets/js/editor-modules.min.js
/*! elementor - v2.5.14 - 16-04-2019 */
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=203)}({12:function(e,t,n){"use strict";var o;o=Marionette.Behavior.extend({onRenderCollection:function(){this.handleInnerTabs(this.view)},handleInnerTabs:function(e){var t=e.children.filter(function(e){return"tabs"===e.model.get("type")});_.each(t,function(t){t.$el.find(".elementor-control-content").remove();var n=t.model.get("name"),o=e.children.filter(function(e){return"tab"===e.model.get("type")&&e.model.get("tabs_wrapper")===n});_.each(o,function(n,o){t._addChildView(n);var i=n.model.get("name"),r=e.children.filter(function(e){return i===e.model.get("inner_tab")});0===o?n.$el.addClass("elementor-tab-active"):_.each(r,function(e){e.$el.addClass("elementor-tab-close")})})})},onChildviewControlTabClicked:function(e){var t=e.model.get("name"),n=this.view.children.filter(function(t){return"tab"!==t.model.get("type")&&e.model.get("tabs_wrapper")===t.model.get("tabs_wrapper")}),o=this.view.children.filter(function(t){return"tab"===t.model.get("type")&&e.model.get("tabs_wrapper")===t.model.get("tabs_wrapper")});_.each(o,function(e){e.$el.removeClass("elementor-tab-active")}),e.$el.addClass("elementor-tab-active"),_.each(n,function(e){e.model.get("inner_tab")===t?e.$el.removeClass("elementor-tab-close"):e.$el.addClass("elementor-tab-close")}),elementor.getPanelView().updateScrollbar()}}),e.exports=o},203:function(e,t,n){"use strict";var o=l(n(204)),i=l(n(205)),r=l(n(206)),a=l(n(207));function l(e){return e&&e.__esModule?e:{default:e}}elementorModules.editor={elements:{models:{BaseSettings:a.default}},utils:{Module:o.default,Introduction:i.default},views:{ControlsStack:r.default}}},204:function(e,t,n){"use strict";var o=elementorModules.Module.extend({onInit:function(){jQuery(window).on("elementor:init",this.onElementorReady)},getEditorControlView:function(e){return elementor.getPanelView().getCurrentPageView().children.findByModelCid(this.getEditorControlModel(e).cid)},getEditorControlModel:function(e){return elementor.getPanelView().getCurrentPageView().collection.findWhere({name:e})},onElementorReady:function(){this.onElementorInit(),elementor.on("frontend:init",this.onElementorFrontendInit.bind(this)).on("preview:loaded",this.onElementorPreviewLoaded.bind(this))}});o.prototype.onElementorInit=function(){},o.prototype.onElementorPreviewLoaded=function(){},o.prototype.onElementorFrontendInit=function(){},e.exports=o},205:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();var i=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o)));return r.initDialog(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,elementorModules.Module),o(t,[{key:"getDefaultSettings",value:function(){return{dialogType:"buttons",dialogOptions:{effects:{hide:"hide",show:"show"},hide:{onBackgroundClick:!1}}}}},{key:"initDialog",value:function(){var e=this,t=void 0;this.getDialog=function(){if(!t){var n=e.getSettings();t=elementorCommon.dialogsManager.createWidget(n.dialogType,n.dialogOptions),n.onDialogInitCallback&&n.onDialogInitCallback.call(e,t)}return t}}},{key:"show",value:function(e){if(!this.introductionViewed){var t=this.getDialog();e&&t.setSettings("position",{of:e}),t.show()}}},{key:"setViewed",value:function(){this.introductionViewed=!0,elementorCommon.ajax.addRequest("introduction_viewed",{data:{introductionKey:this.getSettings("introductionKey")}})}}]),t}();t.default=i},206:function(e,t,n){"use strict";var o;o=Marionette.CompositeView.extend({classes:{popover:"elementor-controls-popover"},activeTab:null,activeSection:null,className:function(){return"elementor-controls-stack"},templateHelpers:function(){return{elementData:elementor.getElementData(this.model)}},childViewOptions:function(){return{elementSettingsModel:this.model}},ui:function(){return{tabs:".elementor-panel-navigation-tab",reloadButton:".elementor-update-preview-button"}},events:function(){return{"click @ui.tabs":"onClickTabControl","click @ui.reloadButton":"onReloadButtonClick"}},modelEvents:{destroy:"onModelDestroy"},behaviors:{HandleInnerTabs:{behaviorClass:n(12)}},initialize:function(){this.initCollection(),this.listenTo(elementor.channels.deviceMode,"change",this.onDeviceModeChange)},initCollection:function(){this.collection=new Backbone.Collection(_.values(elementor.mergeControlsSettings(this.getOption("controls"))))},filter:function(e){if(e.get("tab")!==this.activeTab)return!1;if("section"===e.get("type"))return!0;var t=e.get("section");return!t||t===this.activeSection},getControlViewByModel:function(e){return this.children.findByModelCid(e.cid)},getControlViewByName:function(e){return this.getControlViewByModel(this.getControlModel(e))},getControlModel:function(e){return this.collection.findWhere({name:e})},isVisibleSectionControl:function(e){return this.activeTab===e.get("tab")},activateTab:function(e){this.activeTab=e,this.ui.tabs.removeClass("elementor-active").filter('[data-tab="'+e+'"]').addClass("elementor-active"),this.activateFirstSection()},activateSection:function(e){this.activeSection=e},activateFirstSection:function(){var e=this,t=e.collection.filter(function(t){return"section"===t.get("type")&&e.isVisibleSectionControl(t)});t[0]&&(t.filter(function(t){return e.activeSection===t.get("name")})[0]||e.activateSection(t[0].get("name")))},getChildView:function(e){var t=e.get("type");return elementor.getControlView(t)},handlePopovers:function(){var e,t=this,n=!1;t.removePopovers(),t.children.each(function(o){n&&e.append(o.$el);var i=o.model.get("popover");i&&(i.start&&(n=!0,e=jQuery("<div>",{class:t.classes.popover}),o.$el.before(e),e.append(o.$el)),i.end&&(n=!1))})},removePopovers:function(){this.$el.find("."+this.classes.popover).remove()},getNamespaceArray:function(){return[elementor.getPanelView().getCurrentPageName()]},openActiveSection:function(){var e=this.activeSection,t=this.children.filter(function(t){return e===t.model.get("name")});if(t[0]){t[0].$el.addClass("elementor-open");var n=this.getNamespaceArray();n.push(e,"activated"),elementor.channels.editor.trigger(n.join(":"),this)}},onRenderCollection:function(){this.openActiveSection(),this.handlePopovers()},onRenderTemplate:function(){this.activateTab(this.activeTab||this.ui.tabs.eq(0).data("tab"))},onModelDestroy:function(){this.destroy()},onClickTabControl:function(e){e.preventDefault();var t=this.$(e.currentTarget).data("tab");this.activeTab!==t&&(this.activateTab(t),this._renderChildren())},onReloadButtonClick:function(){elementor.reloadPreview()},onDeviceModeChange:function(){"desktop"===elementor.channels.deviceMode.request("currentMode")&&this.$el.removeClass("elementor-responsive-switchers-open")},onChildviewControlSectionClicked:function(e){var t=e.$el.hasClass("elementor-open");this.activateSection(t?null:e.model.get("name")),this._renderChildren()},onChildviewResponsiveSwitcherClick:function(e,t){"desktop"===t&&this.$el.toggleClass("elementor-responsive-switchers-open")}}),e.exports=o},207:function(e,t,n){"use strict";var o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o=Backbone.Model.extend({options:{},initialize:function(e,t){var n=this;if(n.options=t,n.controls=elementor.mergeControlsSettings(t.controls),n.validators={},n.controls){var o=e||{},r={};_.each(n.controls,function(e){if(!(-1!==e.features.indexOf("ui"))){var t=e.name;"object"===i(e.default)?r[t]=elementorCommon.helpers.cloneObject(e.default):r[t]=e.default;var a=e.dynamic&&e.dynamic.active,l=a&&o.__dynamic__&&o.__dynamic__[t];a&&!l&&e.dynamic.default&&(o.__dynamic__||(o.__dynamic__={}),o.__dynamic__[t]=e.dynamic.default,l=!0);var c=jQuery.isPlainObject(e.default);void 0===o[t]||!c||_.isObject(o[t])||l||(elementor.debug.addCustomError(new TypeError("An invalid argument supplied as multiple control value"),"InvalidElementData","Element `"+(n.get("widgetType")||n.get("elType"))+"` got <"+o[t]+"> as `"+t+"` value. Expected array or object."),delete o[t]),void 0===o[t]&&(o[t]=r[t])}}),n.defaults=r,n.handleRepeaterData(o),n.set(o)}},handleRepeaterData:function(e){_.each(this.controls,function(t){t.is_repeater&&(e[t.name]instanceof Backbone.Collection||(e[t.name]=new Backbone.Collection(e[t.name],{model:function(e,n){return(n=n||{}).controls=t.fields,e._id||(e._id=elementor.helpers.getUniqueID()),new o(e,n)}})))})},getFontControls:function(){return _.filter(this.getActiveControls(),function(e){return"font"===e.type})},getStyleControls:function(e,t){var n=this;e=elementorCommon.helpers.cloneObject(n.getActiveControls(e,t));var o=[];return jQuery.each(e,function(){var t=this,i=elementor.config.controls[t.type];if((t=jQuery.extend({},i,t)).fields){var r=[];n.attributes[t.name].each(function(e){r.push(n.getStyleControls(t.fields,e.attributes))}),t.styleFields=r}(t.fields||t.dynamic&&t.dynamic.active||n.isStyleControl(t.name,e))&&o.push(t)}),o},isStyleControl:function(e,t){t=t||this.controls;var n=_.find(t,function(t){return e===t.name});return n&&!_.isEmpty(n.selectors)},getClassControls:function(e){return e=e||this.controls,_.filter(e,function(e){return!_.isUndefined(e.prefix_class)})},isClassControl:function(e){var t=_.find(this.controls,function(t){return e===t.name});return t&&!_.isUndefined(t.prefix_class)},getControl:function(e){return _.find(this.controls,function(t){return e===t.name})},getActiveControls:function(e,t){var n={};return e||(e=this.controls),t||(t=this.attributes),_.each(e,function(e,o){elementor.helpers.isActiveControl(e,t)&&(n[o]=e)}),n},clone:function(){return new o(elementorCommon.helpers.cloneObject(this.attributes),elementorCommon.helpers.cloneObject(this.options))},setExternalChange:function(e,t){var n,o=this;"object"===(void 0===e?"undefined":i(e))?n=e:(n={})[e]=t,o.set(n),jQuery.each(n,function(e,t){o.trigger("change:external:"+e,t)})},parseDynamicSettings:function(e,t,n){var o=this;return e=elementorCommon.helpers.cloneObject(e||o.attributes),t=t||{},n=n||this.controls,jQuery.each(n,function(){var n,i=this;if("repeater"!==i.type){if(n=e.__dynamic__&&e.__dynamic__[i.name]){var r=i.dynamic;if(void 0===r&&(r=elementor.config.controls[i.type].dynamic),r&&r.active){var a;try{a=elementor.dynamicTags.parseTagsText(n,r,elementor.dynamicTags.getTagDataContent)}catch(e){if(elementor.dynamicTags.CACHE_KEY_NOT_FOUND_ERROR!==e.message)throw e;a="",t.onServerRequestStart&&t.onServerRequestStart(),elementor.dynamicTags.refreshCacheFromServer(function(){t.onServerRequestEnd&&t.onServerRequestEnd()})}r.property?e[i.name][r.property]=a:e[i.name]=a}}}else(n=e[i.name]).forEach(function(e,r){n[r]=o.parseDynamicSettings(e,t,i.fields)})}),e},toJSON:function(e){var t=Backbone.Model.prototype.toJSON.call(this);if(e=e||{},delete t.widgetType,delete t.elType,delete t.isInner,_.each(t,function(e,n){e&&e.toJSON&&(t[n]=e.toJSON())}),e.remove&&-1!==e.remove.indexOf("default")||e.removeDefault){var n=this.controls;_.each(t,function(e,o){var i=n[o];i&&(i.save_default||("text"===i.type||"textarea"===i.type)&&t[o]||_.isEqual(t[o],i.default)&&delete t[o])})}return elementorCommon.helpers.cloneObject(t)}}),e.exports=o}});