Elementor Page Builder - Version 0.2.2

Version Description

  • 08.06.2016 =
  • Tweak! - Minor change from the last release
Download this release

Release Info

Developer KingYes
Plugin Icon 128x128 Elementor Page Builder
Version 0.2.2
Comparing to
See all releases

Code changes from version 0.2.1 to 0.2.2

assets/admin/js/app.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! elementor - v0.2.1 - 08-06-2016 */
2
  !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){var d;d=Marionette.Application.extend({helpers:a("elementor-utils/helpers"),heartbeat:a("elementor-utils/heartbeat"),schemes:a("elementor-utils/schemes"),presetsFactory:a("elementor-utils/presets-factory"),modals:a("elementor-utils/modals"),editor:Backbone.Radio.channel("ELEMENTOR:editor"),data:Backbone.Radio.channel("ELEMENTOR:data"),filterState:Backbone.Radio.channel("ELEMENTOR:filterState"),elementLibrary:Backbone.Radio.channel("ELEMENTOR:elementLibrary"),panelElements:Backbone.Radio.channel("ELEMENTOR:panelElements"),dataEditMode:Backbone.Radio.channel("ELEMENTOR:editmode"),preview:Backbone.Radio.channel("ELEMENTOR:preview"),deviceMode:Backbone.Radio.channel("ELEMENTOR:deviceMode"),_controlsItemView:null,getElementData:function(a){var b=a.get("elType");if("widget"===b){var c=a.get("widgetType");return this.config.widgets[c]?this.config.widgets[c]:!1}return this.config.elements[b]?this.config.elements[b]:!1},getElementControls:function(a){var b=this.getElementData(a);if(!b)return!1;var c=a.get("elType"),d=a.get("isInner");return"widget"===c?b.controls:_.filter(b.controls,function(a){return!(d&&a.hide_in_inner||!d&&a.hide_in_top)})},getControlItemView:function(b){return null===this._controlsItemView&&(this._controlsItemView={color:a("elementor-views/controls/color"),dimensions:a("elementor-views/controls/dimensions"),media:a("elementor-views/controls/media"),slider:a("elementor-views/controls/slider"),wysiwyg:a("elementor-views/controls/wysiwyg"),choose:a("elementor-views/controls/choose"),url:a("elementor-views/controls/url"),font:a("elementor-views/controls/font"),section:a("elementor-views/controls/section"),repeater:a("elementor-views/controls/repeater"),wp_widget:a("elementor-views/controls/wp_widget"),icon:a("elementor-views/controls/icon"),gallery:a("elementor-views/controls/gallery"),select2:a("elementor-views/controls/select2"),structure:a("elementor-views/controls/structure")},this.editor.trigger("editor:controls:initialize")),this._controlsItemView[b]||a("elementor-views/controls/base")},getPanelView:function(){return this.getRegion("panel").currentView},initDialogsManager:function(){this.dialogsManager=new DialogsManager.Instance},onStart:function(){NProgress.start(),NProgress.inc(.2),this.config=ElementorConfig;var b=a("elementor-models/element");Backbone.Radio.DEBUG=!1,Backbone.Radio.tuneIn("ELEMENTOR"),this.initDialogsManager(),this.heartbeat.init(),this.modals.init(),elementorBindUI.setEditorMode(!0),this.elements=new b.Collection(this.config.data),this.$previewResponsiveWrapper=Backbone.$("#elementor-preview-responsive-wrapper");var c="elementor-preview-iframe";if(!Backbone.$("#"+c).length){var d=document.createElement("iframe");d.id=c,d.src=this.config.preview_link+"&"+(new Date).getTime(),this.$previewResponsiveWrapper.append(d)}this.$preview=Backbone.$("#"+c),this.$preview.on("load",_.bind(function(){this.$previewContents=this.$preview.contents(),elementorBindUI.setScopeWindow(this.$preview[0].contentWindow),this.triggerMethod("preview:loaded")},this)),this.listenTo(this.dataEditMode,"switch",this.onEditModeSwitched),this.setWorkSaver()},onPreviewLoaded:function(){var b=a("elementor-views/sections"),c=a("elementor-layouts/panel/panel"),d=new Marionette.Region({el:this.$previewContents.find("#elementor").get(0)});this.schemes.init().printSchemesStyle(),this.$previewContents.on("click",function(a){var b=Backbone.$(a.target),c=elementor.dataEditMode.request("get:active:mode"),d=!!b.closest("#elementor").length;d&&"preview"!==c||(b.closest("a").length&&a.preventDefault(),d||elementor.getPanelView().setPage("elements"))}),this.addRegions({sections:d,panel:"#elementor-panel",modal:"#elementor-modal-area"}),this.getRegion("sections").show(new b({collection:this.elements})),this.getRegion("panel").show(new c),this.$previewContents.children().addClass("elementor-html").children("body").addClass("elementor-editor-active"),Backbone.$("#elementor-loading").fadeOut(600),NProgress.done()},onEditModeSwitched:function(){var a=elementor.dataEditMode.request("get:active:mode");"preview"===a?this.enterPreviewMode():this.exitPreviewMode()},setFlagEditorChange:function(a){elementor.editor.reply("editor:changed",a),elementor.editor.trigger("editor:changed",a)},isEditorChanged:function(){return!0===elementor.editor.request("editor:changed")},setWorkSaver:function(){Backbone.$(window).on("beforeunload",function(){return elementor.isEditorChanged()?elementor.translate("before_unload_alert"):void 0})},enterPreviewMode:function(){this.$previewContents.find("body").add("body").removeClass("elementor-editor-active").addClass("elementor-editor-preview")},exitPreviewMode:function(){this.$previewContents.find("body").add("body").removeClass("elementor-editor-preview").addClass("elementor-editor-active")},saveBuilder:function(a){return a=_.extend({revision:"draft",onSuccess:null},a),NProgress.start(),Backbone.$.ajax({type:"POST",url:this.config.ajaxurl,data:{action:"elementor_save_builder",post_id:this.config.post_id,revision:a.revision,data:JSON.stringify(elementor.elements.toJSON())}}).done(function(b){NProgress.done(),elementor.setFlagEditorChange(!1),_.isFunction(a.onSuccess)&&a.onSuccess.call(this,b)})},translate:function(a,b){var c=this.config.i18n[a];return void 0===c&&(c=a),b&&(c=c.replace(/{(\d+)}/g,function(a,c){return void 0!==b[c]?b[c]:a})),c}}),b.exports=(window.elementor=new d).start()},{"elementor-layouts/panel/panel":30,"elementor-models/element":33,"elementor-utils/heartbeat":37,"elementor-utils/helpers":38,"elementor-utils/modals":39,"elementor-utils/presets-factory":40,"elementor-utils/schemes":41,"elementor-views/controls/base":46,"elementor-views/controls/choose":47,"elementor-views/controls/color":48,"elementor-views/controls/dimensions":49,"elementor-views/controls/font":50,"elementor-views/controls/gallery":51,"elementor-views/controls/icon":52,"elementor-views/controls/media":53,"elementor-views/controls/repeater":55,"elementor-views/controls/section":56,"elementor-views/controls/select2":57,"elementor-views/controls/slider":58,"elementor-views/controls/structure":59,"elementor-views/controls/url":60,"elementor-views/controls/wp_widget":61,"elementor-views/controls/wysiwyg":62,"elementor-views/sections":65}],2:[function(a,b,c){var d;d=Marionette.Behavior.extend({onChildviewClickNew:function(a){var b=a.$el.index()+1;this.addChild({at:b})},onRequestNew:function(){this.addChild()},addChild:function(a){if(!this.view.isCollectionFilled()){a=a||{};var b={id:elementor.helpers.getUniqueID(),elType:this.view.getChildType()[0],settings:{},elements:[]};this.view.addChildModel(b,a)}}}),b.exports=d},{}],3:[function(a,b,c){var d;d=Marionette.Behavior.extend({onRequestAdd:function(a,b){this._addChildElement(a,b)},_addChildElement:function(a,b){b=b||{};var c=this.view.getChildType();if(-1===c.indexOf(a.elType))return delete b.at,void this.view.children.last().triggerMethod("request:add",a,b);var d=this.view.addChildModel(a,b),e=this.view.children.findByModel(d);"section"===e.getElementType()&&e.isInner()&&e.addEmptyColumn(),e.triggerMethod("open:editor")}}),b.exports=d},{}],4:[function(a,b,c){var d;d=Marionette.Behavior.extend({onChildviewClickDuplicate:function(a){if(!this.view.isCollectionFilled()){var b=this.view.collection.indexOf(a.model),c=a.model.clone();this.view.addChildModel(c,{at:b})}}}),b.exports=d},{}],5:[function(a,b,c){var d;d=Marionette.Behavior.extend({initialize:function(){this.listenTo(elementor.dataEditMode,"switch",this.onEditModeSwitched)},onEditModeSwitched:function(){var a=elementor.dataEditMode.request("get:active:mode");this.view.$el.toggleClass("elementor-active-mode","preview"!==a)},onRender:function(){this.onEditModeSwitched()}}),b.exports=d},{}],6:[function(a,b,c){var d;d=Marionette.Behavior.extend({onClickEdit:function(){var a=elementor.dataEditMode.request("get:active:mode");"preview"!==a&&this.onOpenEditor()},onOpenEditor:function(){var a=elementor.getPanelView().getCurrentPageName();if("editor"===a){var b=elementor.getPanelView().getCurrentPageView(),c=b.model;if(c===this.view.model)return}var d=elementor.getElementData(this.view.model);elementor.getPanelView().setPage("editor",elementor.translate("edit_element",[d.title]),{model:this.view.model,editedElementView:this.view})}}),b.exports=d},{}],7:[function(a,b,c){var d;d=Marionette.Behavior.extend({defaults:{handles:elementor.config.is_rtl?"w":"e"},ui:{columnTitle:".column-title"},events:{resizestart:"onResizeStart",resizestop:"onResizeStop",resize:"onResize"},initialize:function(){Marionette.Behavior.prototype.initialize.apply(this,arguments),this.listenTo(elementor.dataEditMode,"switch",this.onEditModeSwitched)},active:function(){var a=_.clone(this.options);delete a.behaviorClass;var b=this.getChildViewContainer(),c={},d=_.extend(c,a);b.resizable(d)},deactivate:function(){this.getChildViewContainer().resizable("instance")&&this.getChildViewContainer().resizable("destroy")},onEditModeSwitched:function(){var a=elementor.dataEditMode.request("get:active:mode");"preview"!==a?this.active():this.deactivate()},onRender:function(){_.defer(_.bind(this.onEditModeSwitched,this))},onDestroy:function(){this.deactivate()},onResizeStart:function(a,b){},onResizeStop:function(a,b){},onResize:function(a,b){a.stopPropagation(),this.view.triggerMethod("request:resize",b)},getChildViewContainer:function(){return this.$el}}),b.exports=d},{}],8:[function(a,b,c){var d;d=Marionette.Behavior.extend({defaults:{elChildType:"widget"},events:{sortstart:"onSortStart",sortreceive:"onSortReceive",sortupdate:"onSortUpdate",sortstop:"onSortStop",sortover:"onSortOver",sortout:"onSortOut"},initialize:function(){this.listenTo(elementor.dataEditMode,"switch",this.onEditModeSwitched),this.listenTo(elementor.deviceMode,"change",this.onDeviceModeChange)},onEditModeSwitched:function(){var a=elementor.dataEditMode.request("get:active:mode");"preview"!==a?this.active():this.deactivate()},onDeviceModeChange:function(){var a=elementor.deviceMode.request("currentMode");"desktop"===a?this.active():this.deactivate()},onRender:function(){_.defer(_.bind(this.onEditModeSwitched,this))},onDestroy:function(){this.deactivate()},active:function(){if(!this.getChildViewContainer().sortable("instance")){var a=this.getChildViewContainer(),b={connectWith:a.selector,cursor:"move",placeholder:"elementor-sortable-placeholder",cursorAt:{top:20,left:25},helper:_.bind(this._getSortableHelper,this)},c=_.extend(b,this.view.getSortableOptions());a.sortable(c)}},_getSortableHelper:function(a,b){var c=this.view.collection.get({cid:b.data("model-cid")});return'<div style="height: 50px; width: 250px;" class="elementor-sortable-helper elementor-sortable-helper-'+c.get("elType")+'"><i class="fa fa-'+c.getIcon()+'"></i><div class="elementor-title">'+c.getTitle()+"</div></div>"},deactivate:function(){this.getChildViewContainer().sortable("instance")&&this.getChildViewContainer().sortable("destroy")},onSortStart:function(a,b){a.stopPropagation();var c=this.view.collection.get({cid:b.item.data("model-cid")});if("column"===this.options.elChildType){b.placeholder.addClass("elementor-column");var d=b.item.data("sortableItem"),e=d.items,f=0;e.forEach(function(a){return a.item[0]===b.item[0]?(f=a.height,!1):void 0}),b.placeholder.height(f)}elementor.data.trigger(c.get("elType")+":drag:start"),elementor.data.reply("cache:"+c.cid,c)},onSortOver:function(a,b){a.stopPropagation();var c=elementor.data.request("cache:"+b.item.data("model-cid"));Backbone.$(a.target).addClass("elementor-draggable-over").attr({"data-dragged-element":c.get("elType"),"data-dragged-is-inner":c.get("isInner")}),this.$el.addClass("elementor-dragging-on-child")},onSortOut:function(a){a.stopPropagation(),Backbone.$(a.target).removeClass("elementor-draggable-over").removeAttr("data-dragged-element data-dragged-is-inner"),this.$el.removeClass("elementor-dragging-on-child")},onSortReceive:function(a,b){if(a.stopPropagation(),this.view.isCollectionFilled())return void Backbone.$(b.sender).sortable("cancel");var c=elementor.data.request("cache:"+b.item.data("model-cid")),d=c.get("elType"),e="section"===d&&c.get("isInner"),f="column"===this.view.getElementType()&&this.view.isInner();if(e&&f)return void Backbone.$(b.sender).sortable("cancel");var g=b.item.parent().children().index(b.item),h=new this.view.collection.model(c.toJSON({copyHtmlCache:!0}));this.view.addChildModel(h,{at:g}),elementor.data.trigger(d+":drag:end"),c.destroy()},onSortUpdate:function(a,b){a.stopPropagation();var c=this.view.collection.get(b.item.attr("data-model-cid"));c&&elementor.data.trigger(c.get("elType")+":drag:end")},onSortStop:function(a,b){a.stopPropagation();var c=b.item,d=this.view.collection,e=d.get(c.attr("data-model-cid")),f=c.parent().children().index(c);if(this.getChildViewContainer()[0]===b.item.parent()[0]&&null===b.sender&&e){var g=d.indexOf(e);g!==f&&(d.remove(e,{silent:!0}),d.add(e,{silent:!0,at:f}),elementor.setFlagEditorChange(!0)),elementor.data.trigger(e.get("elType")+":drag:end")}},onAddChild:function(a){a.$el.attr("data-model-cid",a.model.cid)},getChildViewContainer:function(){return"function"==typeof this.view.getChildViewContainer?this.view.getChildViewContainer(this.view):this.$el}}),b.exports=d},{}],9:[function(a,b,c){var d;d=Marionette.ItemView.extend({template:"#tmpl-elementor-mode-switcher-content",id:"elementor-mode-switcher-inner",ui:{previewButton:"#elementor-mode-switcher-preview-input",previewLabel:"#elementor-mode-switcher-preview",previewLabelA11y:"#elementor-mode-switcher-preview .elementor-screen-only"},events:{"change @ui.previewButton":"onEditModeChange"},getCurrentMode:function(){return this.ui.previewButton.is(":checked")?"preview":"edit"},setMode:function(a){this.ui.previewButton.prop("checked","preview"===a)},onRender:function(){this.onEditModeChange()},onEditModeChange:function(){var a=elementor.dataEditMode.request("get:active:mode"),b=this.getCurrentMode();if(elementor.dataEditMode.reply("get:active:mode",b),b!==a){elementor.dataEditMode.trigger("switch");var c="preview"===b?"Back to Editor":"Preview";this.ui.previewLabel.attr("title",c),this.ui.previewLabelA11y.text(c)}}}),b.exports=d},{}],10:[function(a,b,c){var d;d=Marionette.ItemView.extend({template:"#tmpl-elementor-panel-footer-content",tagName:"nav",id:"elementor-panel-footer-tools",defaultDeviceMode:"desktop",currentDeviceMode:"",possibleRotateModes:["portrait","landscape"],ui:{menuButtons:".elementor-panel-footer-tool",deviceModeButtons:"#elementor-panel-footer-responsive .elementor-panel-footer-sub-menu-item",buttonSave:"#elementor-panel-footer-save",buttonSaveButton:"#elementor-panel-footer-save .elementor-button",buttonPublish:"#elementor-panel-footer-publish"},events:{"click @ui.deviceModeButtons":"onClickResponsiveButtons","click @ui.buttonSave":"onClickButtonSave","click @ui.buttonPublish":"onClickButtonPublish"},initialize:function(){this._initDialog(),Backbone.$(document).on("click",_.bind(this.onDocumentClick,this)),this.listenTo(elementor.editor,"editor:changed",this.onEditorChanged)},_initDialog:function(){var a;this.getDialog=function(){if(!a){var b=Backbone.$,c=b("<div>",{"class":"elementor-dialog-message"}),d=b("<i>",{"class":"fa fa-check-circle"}),e=b("<div>",{"class":"elementor-dialog-message-text"}).text(elementor.translate("saved"));c.append(d,e),a=elementor.dialogsManager.createWidget("popup",{hide:{delay:1500}}),a.setMessage(c)}return a}},_publishBuilder:function(){var a=this,b={revision:"publish",onSuccess:function(){a.getDialog().show(),a.ui.buttonSaveButton.removeClass("elementor-button-state")}};a.ui.buttonSaveButton.addClass("elementor-button-state"),elementor.saveBuilder(b)},_saveBuilderDraft:function(){elementor.saveBuilder()},onRender:function(){this.changeDeviceMode(this.defaultDeviceMode)},changeDeviceMode:function(a){this.currentDeviceMode!==a&&(this.getCurrentDeviceModeButton().removeClass("active"),elementor.$previewResponsiveWrapper.removeClass("elementor-device-"+this.currentDeviceMode).addClass("elementor-device-"+a),this.currentDeviceMode=a,this.getCurrentDeviceModeButton().addClass("active"),elementor.deviceMode.reply("currentMode",this.currentDeviceMode),elementor.deviceMode.trigger("change"))},getCurrentDeviceModeButton:function(){return this.ui.deviceModeButtons.filter('[data-device-mode="'+this.currentDeviceMode+'"]')},onDocumentClick:function(a){var b=Backbone.$(a.target),c=b.closest(".elementor-panel-footer-sub-menu-wrapper").length;if(!c){var d=b.closest(".elementor-panel-footer-tool"),e=d.length&&!d.hasClass("elementor-open");this.ui.menuButtons.removeClass("elementor-open"),e&&d.addClass("elementor-open")}},onEditorChanged:function(){this.ui.buttonSave.toggleClass("elementor-save-active",elementor.isEditorChanged())},onClickButtonSave:function(){this._publishBuilder()},onClickButtonPublish:function(a){a.stopPropagation(),this._publishBuilder()},onClickResponsiveButtons:function(a){var b=this.$(a.currentTarget),c=b.data("device-mode");this.changeDeviceMode(c)}}),b.exports=d},{}],11:[function(a,b,c){var d;d=Marionette.ItemView.extend({template:"#tmpl-elementor-panel-header",id:"elementor-panel-header",ui:{menuButton:"#elementor-panel-header-menu-button",title:"#elementor-panel-header-title",addButton:"#elementor-panel-header-add-button"},events:{"click @ui.addButton":"onClickAdd","click @ui.menuButton":"onClickMenu"},setTitle:function(a){this.ui.title.html(a)},onClickAdd:function(){elementor.getPanelView().setPage("elements")},onClickMenu:function(){var a=elementor.getPanelView(),b=a.getCurrentPageName(),c="menu"===b?"elements":"menu";a.setPage(c)}}),b.exports=d},{}],12:[function(a,b,c){var d;d=Marionette.CompositeView.extend({template:Marionette.TemplateCache.get("#tmpl-editor-content"),id:"elementor-panel-page-editor",templateHelpers:function(){return{elementData:elementor.getElementData(this.model)}},childViewContainer:"div.elementor-controls",modelEvents:{destroy:"onModelDestroy"},ui:{tabs:".elementor-tabs-controls li"},events:{"click @ui.tabs a":"onClickTabControl"},getChildView:function(a){var b=a.get("type");return elementor.getControlItemView(b)},childViewOptions:function(){return{elementSettingsModel:this.model.get("settings"),elementEditSettings:this.model.get("editSettings")}},onDestroy:function(){this.getOption("editedElementView").$el.removeClass("elementor-element-editable"),this.model.trigger("editor:close"),this.triggerMethod("editor:destroy")},onBeforeRender:function(){var a=elementor.getElementControls(this.model);if(!a)throw new Error("No found editor controls");this.collection=new Backbone.Collection(a)},onRender:function(){this.getOption("editedElementView").$el.addClass("elementor-element-editable"),this.ui.tabs.eq(0).find("a").trigger("click"),this.$(".tooltip-target").tipsy({gravity:function(){var a=Backbone.$(this).data("tooltip-pos");return void 0!==a?a:"n"},title:function(){return this.getAttribute("data-tooltip")}})},onModelDestroy:function(){this.destroy()},onClickTabControl:function(a){a.preventDefault();var b=this.$(a.target);this.ui.tabs.removeClass("active"),b.closest("li").addClass("active"),this.model.get("settings").trigger("control:switch:tab",b.data("tab")),this.openFirstSectionInCurrentTab(b.data("tab"))},openFirstSectionInCurrentTab:function(a){var b="elementor-open",c=this.children.filter(function(a){return!_.isEmpty(a.model.get("section"))}),d=this.children.filter(function(b){return"section"===b.model.get("type")&&a===b.model.get("tab")});_.isEmpty(d)||(d=d[0],d.ui.heading.addClass(b),_.each(c,function(a){return a.model.get("section")!==d.model.get("name")?void a.$el.removeClass(b):void a.$el.addClass(b)}))},onChildviewControlSectionClicked:function(a){var b="elementor-open",c=a.model.get("name"),d=a.ui.heading.hasClass(b),e=this.children.filter(function(a){return!_.isEmpty(a.model.get("section"))});this.$(".elementor-control.elementor-control-type-section .elementor-panel-heading").removeClass(b),d?c="":a.ui.heading.addClass(b),_.each(e,function(a){return a.model.get("section")!==c?void a.$el.removeClass(b):void a.$el.addClass(b)}),elementor.data.trigger("scrollbar:update")}}),b.exports=d},{}],13:[function(a,b,c){var d,e=a("../models/element");d=Backbone.Collection.extend({model:e}),b.exports=d},{"../models/element":16}],14:[function(a,b,c){var d,e=a("../models/element");d=Backbone.Collection.extend({model:e}),b.exports=d},{"../models/element":16}],15:[function(a,b,c){var d,e=a("./collections/categories"),f=a("./collections/elements"),g=a("./views/categories"),h=a("./views/elements"),i=a("./views/search");d=Marionette.LayoutView.extend({template:"#tmpl-elementor-panel-elements",regions:{elements:"#elementor-panel-elements-wrapper",search:"#elementor-panel-elements-search-area"},elementsCollection:null,categoriesCollection:null,initialize:function(){this.listenTo(elementor.panelElements,"element:selected",this.destroy)},initElementsCollection:function(){var a=new f,b=elementor.config.elements.section;a.add({title:elementor.translate("inner_section"),elType:"section",categories:b.categories,keywords:b.keywords,icon:b.icon}),_.each(elementor.config.widgets,function(b,c){a.add({title:b.title,elType:"widget",categories:b.categories,keywords:b.keywords,icon:b.icon,widgetType:c})}),this.elementsCollection=a},initCategoriesCollection:function(){var a={};this.elementsCollection.each(function(b){_.each(b.get("categories"),function(c){a[c]||(a[c]=[]),a[c].push(b)})});var b=new e;_.each(elementor.config.elements_categories,function(c,d){a[d]&&b.add({name:d,title:c.title,icon:c.icon,items:a[d]})}),this.categoriesCollection=b},showCategoriesView:function(){this.getRegion("elements").show(new g({collection:this.categoriesCollection}))},showElementsView:function(){this.getRegion("elements").show(new h({collection:this.elementsCollection}))},clearSearchInput:function(){this.getChildView("search").clearInput()},changeFilter:function(a){elementor.panelElements.reply("filter:value",a).trigger("change")},clearFilters:function(){this.changeFilter(null),this.clearSearchInput()},onChildviewDragStart:function(a){elementor.panelElements.reply("element:selected",a)},onChildviewChildrenRender:function(){this.updateElementsScrollbar()},onChildviewSearchChangeInput:function(a){var b=a.ui.input.val();if(_.isEmpty(b))this.showCategoriesView();else{var c=elementor.panelElements.request("filter:value");_.isEmpty(c)&&this.showElementsView()}this.changeFilter(b,"search")},onDestroy:function(){elementor.panelElements.reply("filter:value",null)},onShow:function(){var a=this.getRegion("search");this.initElementsCollection(),this.initCategoriesCollection(),this.showCategoriesView(),a.show(new i)},updateElementsScrollbar:function(){elementor.data.trigger("scrollbar:update")}}),b.exports=d},{"./collections/categories":13,"./collections/elements":14,"./views/categories":17,"./views/elements":20,"./views/search":21}],16:[function(a,b,c){var d;d=Backbone.Model.extend({defaults:{title:"",categories:[],keywords:[],icon:"",elType:"widget",widgetType:""}}),b.exports=d},{}],17:[function(a,b,c){var d,e=a("./category");d=Marionette.CollectionView.extend({childView:e,id:"elementor-panel-elements-categories"}),b.exports=d},{"./category":18}],18:[function(a,b,c){var d,e=a("./element"),f=a("../collections/elements");d=Marionette.CompositeView.extend({template:"#tmpl-elementor-panel-elements-category",className:"elementor-panel-category",childView:e,childViewContainer:".panel-elements-category-items",initialize:function(){this.collection=new f(this.model.get("items"))}}),b.exports=d},{"../collections/elements":14,"./element":19}],19:[function(a,b,c){var d;d=Marionette.ItemView.extend({template:"#tmpl-elementor-element-library-element",className:"elementor-element-wrapper",triggers:{dragend:"drag:end"},onRender:function(){this.$el.html5Draggable({onDragStart:_.bind(function(){this.triggerMethod("drag:start")},this),groups:["elementor-element"]})}}),b.exports=d},{}],20:[function(a,b,c){var d,e=a("./element");d=Marionette.CollectionView.extend({childView:e,id:"elementor-panel-elements",initialize:function(){this.listenTo(elementor.panelElements,"change",this.onFilterChanged)},filter:function(a){var b=elementor.panelElements.request("filter:value");return b?_.any(["title","keywords"],function(c){return-1!==a.get(c).toLowerCase().indexOf(b.toLowerCase())}):!0},onFilterChanged:function(){this._renderChildren(),this.triggerMethod("children:render")}}),b.exports=d},{"./element":19}],21:[function(a,b,c){var d;d=Marionette.ItemView.extend({template:"#tmpl-elementor-panel-element-search",id:"elementor-panel-elements-search-wrapper",ui:{input:"input"},events:{"keyup @ui.input":"onInputChanged"},onInputChanged:function(a){var b=27;b===a.keyCode&&this.clearInput(),this.triggerMethod("search:change:input")},clearInput:function(){this.ui.input.val("")}}),b.exports=d},{}],22:[function(a,b,c){var d,e=a("elementor-panel/pages/menu/views/item");d=Marionette.CollectionView.extend({id:"elementor-panel-page-menu",childView:e,initialize:function(){this.collection=new Backbone.Collection([{icon:"paint-brush",title:elementor.translate("colors"),type:"page",pageName:"colorsScheme"},{icon:"font",title:elementor.translate("fonts"),type:"page",pageName:"typographyScheme"},{icon:"file-text",title:elementor.translate("page_settings")+" <span>("+elementor.translate("soon")+")</span>"},{icon:"cog",title:elementor.translate("elementor_settings"),type:"link",link:elementor.config.settings_page_link},{icon:"history",title:elementor.translate("revisions_history")+" <span>("+elementor.translate("soon")+")</span>"},{icon:"info-circle",title:elementor.translate("about_elementor"),type:"link",link:elementor.config.elementor_site,newTab:!0}])},onChildviewClick:function(a){var b=a.model.get("type");switch(b){case"page":var c=a.model.get("pageName"),d=a.model.get("title");elementor.getPanelView().setPage(c,d);break;case"link":var e=a.model.get("link"),f=a.model.get("newTab");f?open(e,"_blank"):location.href=a.model.get("link")}}}),b.exports=d},{"elementor-panel/pages/menu/views/item":23}],23:[function(a,b,c){var d;d=Marionette.ItemView.extend({template:"#tmpl-elementor-panel-menu-item",className:"elementor-panel-menu-item",triggers:{click:"click"}}),b.exports=d},{}],24:[function(a,b,c){var d;d=Marionette.CompositeView.extend({id:function(){return"elementor-panel-scheme-"+this.getType()},className:"elementor-panel-scheme",ui:function(){return{saveButton:".elementor-panel-scheme-save .elementor-button",discardButton:".elementor-panel-scheme-discard .elementor-button",resetButton:".elementor-panel-scheme-reset .elementor-button"}},events:function(){return{"click @ui.saveButton":"saveScheme","click @ui.discardButton":"discardScheme","click @ui.resetButton":"setDefaultScheme"}},childViewContainer:".elementor-panel-scheme-items",templateHelpers:function(){return{getTitle:_.bind(this.getTitle,this)}},initialize:function(){this.model=new Backbone.Model,this.resetScheme()},getType:function(){},getTitle:function(){return this.getScheme().title},getScheme:function(){return elementor.schemes.getScheme(this.getType())},changeChildrenUIValues:function(a){var b=this;_.each(a,function(a,c){var d=b.collection.findWhere({key:c}),e=b.children.findByModelCid(d.cid);e.changeUIValue(a)})},discardScheme:function(){elementor.schemes.resetSchemes(this.getType()),this.ui.saveButton.prop("disabled",!0),this._renderChildren()},setSchemeValue:function(a,b){elementor.schemes.setSchemeValue(this.getType(),a,b)},saveScheme:function(){elementor.schemes.saveScheme(this.getType()),this.ui.saveButton.prop("disabled",!0),this.resetScheme(),this._renderChildren()},setDefaultScheme:function(){var a=elementor.config.default_schemes[this.getType()].items;this.changeChildrenUIValues(a)},resetItems:function(){this.model.set("items",this.getScheme().items)},resetCollection:function(){var a=this.model.get("items");this.collection=new Backbone.Collection,_.each(a,_.bind(function(a,b){a.type=this.getType(),a.key=b,this.collection.add(a)},this))},resetScheme:function(){this.resetItems(),this.resetCollection()},onChildviewValueChange:function(a,b){this.ui.saveButton.removeProp("disabled"),this.setSchemeValue(a.model.get("key"),b)}}),b.exports=d},{}],25:[function(a,b,c){var d,e=a("elementor-panel/pages/schemes/base");d=e.extend({template:"#tmpl-elementor-panel-schemes-colors",ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.systemSchemes=".elementor-panel-scheme-color-system-scheme",a},events:function(){var a=e.prototype.events.apply(this,arguments);return a["click @ui.systemSchemes"]="onSystemSchemeClick",a},getChildView:function(){return a("elementor-panel/pages/schemes/items/color")},getType:function(){return"color"},onSystemSchemeClick:function(a){var b=Backbone.$(a.currentTarget),c=b.data("schemeName"),d=elementor.config.system_schemes.color[c].items;this.changeChildrenUIValues(d)}}),b.exports=d},{"elementor-panel/pages/schemes/base":24,"elementor-panel/pages/schemes/items/color":27}],26:[function(a,b,c){var d;d=Marionette.ItemView.extend({getTemplate:function(){return Marionette.TemplateCache.get("#tmpl-elementor-panel-scheme-"+this.model.get("type")+"-item")},className:function(){return"elementor-panel-scheme-item"}}),b.exports=d},{}],27:[function(a,b,c){var d,e=a("elementor-panel/pages/schemes/items/base");d=e.extend({ui:{input:".elementor-panel-scheme-color-value"},changeUIValue:function(a){this.ui.input.wpColorPicker("color",a)},onBeforeDestroy:function(){this.ui.input.wpColorPicker("instance")&&this.ui.input.wpColorPicker("close")},onRender:function(){this.ui.input.wpColorPicker({change:_.bind(function(a,b){this.triggerMethod("value:change",b.color.toString())},this)})}}),b.exports=d},{"elementor-panel/pages/schemes/items/base":26}],28:[function(a,b,c){var d,e=a("elementor-panel/pages/schemes/items/base");d=e.extend({className:function(){var a=e.prototype.className.apply(this,arguments);return a+" elementor-panel-box"},ui:{heading:".elementor-panel-heading",allFields:".elementor-panel-scheme-typography-item-field",inputFields:"input.elementor-panel-scheme-typography-item-field",selectFields:"select.elementor-panel-scheme-typography-item-field",selectFamilyFields:'select.elementor-panel-scheme-typography-item-field[name="font_family"]'},events:{"input @ui.inputFields":"onFieldChange","change @ui.selectFields":"onFieldChange","click @ui.heading":"toggleVisibility"},onRender:function(){var a=this;this.ui.inputFields.add(this.ui.selectFields).each(function(){var b=Backbone.$(this),c=b.attr("name"),d=a.model.get("value")[c];b.val(d)}),this.ui.selectFamilyFields.select2({dir:elementor.config.is_rtl?"rtl":"ltr"})},toggleVisibility:function(){this.ui.heading.toggleClass("elementor-open")},changeUIValue:function(a){this.ui.allFields.each(function(){var b=Backbone.$(this),c=b.attr("name"),d=a[c];b.val(d).trigger("change")})},onFieldChange:function(a){var b=this.$(a.currentTarget),c=elementor.helpers.cloneObject(this.model.get("value")),d=b.attr("name");c[d]=b.val(),"font_family"!==d||_.isEmpty(c[d])||elementor.helpers.enqueueFont(c[d]),this.triggerMethod("value:change",c)}}),b.exports=d},{"elementor-panel/pages/schemes/items/base":26}],29:[function(a,b,c){var d,e=a("elementor-panel/pages/schemes/base");d=e.extend({template:"#tmpl-elementor-panel-schemes-typography",getChildView:function(){return a("elementor-panel/pages/schemes/items/typography")},getType:function(){return"typography"}}),b.exports=d},{"elementor-panel/pages/schemes/base":24,"elementor-panel/pages/schemes/items/typography":28}],30:[function(a,b,c){var d,e=a("elementor-layouts/edit-mode");
3
  d=Marionette.LayoutView.extend({template:"#tmpl-elementor-panel",className:"elementor-panel-inner",regions:{content:"#elementor-panel-content-wrapper",header:"#elementor-panel-header-wrapper",footer:"#elementor-panel-footer",modeSwitcher:"#elementor-mode-switcher"},pages:{elements:{view:a("elementor-panel/pages/elements/elements"),title:elementor.translate("elementor")},editor:{view:a("elementor-panel/pages/editor")},menu:{view:a("elementor-panel/pages/menu/menu"),title:elementor.translate("elementor")},colorsScheme:{view:a("elementor-panel/pages/schemes/colors")},typographyScheme:{view:a("elementor-panel/pages/schemes/typography")}},childEvents:{"click:add":function(){this.setPage("elements")},"editor:destroy":function(){this.setPage("elements")}},currentPageName:null,_isScrollbarInitialized:!1,getHeaderView:function(){return this.getChildView("header")},getCurrentPageName:function(){return this.currentPageName},getCurrentPageView:function(){return this.getChildView("content")},setPage:function(a,b,c){var d=this.pages[a];if(!d)throw new ReferenceError("Elementor panel doesn't have page named '"+a+"'");this.showChildView("content",new d.view(c)),this.getHeaderView().setTitle(b||d.title),this.currentPageName=a},onBeforeShow:function(){elementor.filterState.reply("get",{type:"parent",term:""});var b=a("elementor-layouts/panel/footer"),c=a("elementor-layouts/panel/header");this.showChildView("modeSwitcher",new e),this.showChildView("header",new c),this.showChildView("footer",new b),this.updateScrollbar=_.throttle(this.updateScrollbar,100),this.getRegion("content").on("before:show",_.bind(this.onEditorBeforeShow,this)).on("empty",_.bind(this.onEditorEmpty,this)).on("show",_.bind(this.updateScrollbar,this)),this.setPage("elements"),this.listenTo(elementor.data,"scrollbar:update",this.updateScrollbar)},onEditorBeforeShow:function(a,b,c){_.defer(this.updateScrollbar)},onEditorEmpty:function(a){this.updateScrollbar()},updateScrollbar:function(){var a=Backbone.$("#elementor-panel-content-wrapper");return this._isScrollbarInitialized?void a.perfectScrollbar("update"):(a.perfectScrollbar(),void(this._isScrollbarInitialized=!0))}}),b.exports=d},{"elementor-layouts/edit-mode":9,"elementor-layouts/panel/footer":10,"elementor-layouts/panel/header":11,"elementor-panel/pages/editor":12,"elementor-panel/pages/elements/elements":15,"elementor-panel/pages/menu/menu":22,"elementor-panel/pages/schemes/colors":25,"elementor-panel/pages/schemes/typography":29}],31:[function(a,b,c){var d;d=Backbone.Model.extend({initialize:function(a){if(this.controls=elementor.getElementControls(this),this.controls){var b=a||{},c={};_.each(this.controls,function(a){var b=elementor.config.controls[a.type];_.isObject(b.default_value)?c[a.name]=_.extend({},b.default_value,a["default"]||{}):c[a.name]=a["default"]||b.default_value}),this.defaults=c,b=_.defaults({},b,c),_.each(this.controls,function(a){"repeater"===a.type&&(b[a.name]=new Backbone.Collection(b[a.name],{model:d}))}),this.set(b)}},getFontControls:function(){return _.filter(this.controls,_.bind(function(a){return"font"===a.type},this))},getStyleControls:function(){return _.filter(this.controls,_.bind(function(a){return this.isStyleControl(a.name)},this))},isStyleControl:function(a){var b=_.find(this.controls,function(b){return a===b.name});return _.isUndefined(b)?!1:!_.isEmpty(b.selectors)},getClassControls:function(){return _.filter(this.controls,_.bind(function(a){return this.isClassControl(a.name)},this))},isClassControl:function(a){var b=_.find(this.controls,function(b){return a===b.name});return b&&!_.isUndefined(b.prefix_class)},getControl:function(a){return _.find(this.controls,function(b){return a===b.name})},clone:function(){return new d(elementor.helpers.cloneObject(this.attributes))},toJSON:function(){var a=Backbone.Model.prototype.toJSON.call(this);return delete a.widgetType,delete a.elType,_.each(a,function(b,c){b&&b.toJSON&&(a[c]=b.toJSON())}),a}}),b.exports=d},{}],32:[function(a,b,c){var d,e=a("elementor-models/base-settings");d=e.extend({defaults:{_inline_size:"",_column_size:100}}),b.exports=d},{"elementor-models/base-settings":31}],33:[function(a,b,c){var d,e,f=a("elementor-models/base-settings"),g=a("elementor-models/widget-settings"),h=a("elementor-models/column-settings"),i=a("elementor-models/row-settings"),j=a("elementor-models/section-settings");d=Backbone.Model.extend({defaults:{id:"",elType:"",isInner:!1,settings:{},defaultEditSettings:{}},remoteRender:!1,_htmlCache:null,_jqueryXhr:null,initialize:function(a){var b,c=this.get("elements"),d=this.get("elType"),k={widget:g,column:h,row:i,section:j},l=k[d]||f;b=this.get("settings"),"widget"===d&&(b.widgetType=this.get("widgetType")),b.elType=d,b=new l(b),this.set("settings",b),this.initEditSettings(),void 0!==c&&this.set("elements",new e(c)),"widget"===this.get("elType")&&(this.remoteRender=!0,this.setHtmlCache(a.htmlCache||"")),delete a.htmlCache,this.renderRemoteServer=_.throttle(this.renderRemoteServer,1e3),this.on("destroy",this.onDestroy),this.on("editor:close",this.onCloseEditor)},initEditSettings:function(){this.set("editSettings",new Backbone.Model(this.get("defaultEditSettings")))},onDestroy:function(){var a=this.get("settings"),b=this.get("elements");void 0!==b&&_.each(_.clone(b.models),function(a){a.destroy()}),a.destroy()},onCloseEditor:function(){this.initEditSettings(),this.renderRemoteServer()},setSetting:function(a,b,c){c=c||!1;var d=this.get("settings");d.set(a,b),this.set("settings",d),c&&(this.trigger("change",this),this.trigger("change:settings",this),this.trigger("change:settings:"+a,this))},getSetting:function(a){var b=this.get("settings");return void 0===b.get(a)?"":b.get(a)},setHtmlCache:function(a){this._htmlCache=a},getHtmlCache:function(){return this._htmlCache},getTitle:function(){var a=elementor.getElementData(this);return a?a.title:"Unknown"},getIcon:function(){var a=elementor.getElementData(this);return a?a.icon:"unknown"},renderRemoteServer:function(){if(this.remoteRender){this.trigger("before:remote:render"),this._jqueryXhr&&4!==this._jqueryXhr&&this._jqueryXhr.abort();var a=this.toJSON();this._jqueryXhr=Backbone.$.ajax({type:"POST",url:elementor.config.ajaxurl,data:{action:"elementor_render_widget",post_id:elementor.config.post_id,data:JSON.stringify(a)},dataType:"json"}).done(_.bind(this.onRemoteGetHtml,this))}},onRemoteGetHtml:function(a){this.setHtmlCache(a.data.render),this.trigger("remote:render")},clone:function(){var a=Backbone.Model.prototype.clone.apply(this,arguments);a.set("id",elementor.helpers.getUniqueID()),a.setHtmlCache(this.getHtmlCache());var b=this.get("elements"),c=this.get("settings");return _.isEmpty(b)||a.set("elements",b.clone()),a.set("settings",c.clone()),a},toJSON:function(a){a=_.extend({copyHtmlCache:!1},a);var b=Backbone.Model.prototype.toJSON.call(this);return _.each(b,function(c,d){c&&c.toJSON&&(b[d]=c.toJSON(a))}),a.copyHtmlCache?b.htmlCache=this.getHtmlCache():delete b.htmlCache,b}}),e=Backbone.Collection.extend({add:function(a,b,c){if(!(b&&b.silent||c))throw"Call Error: Adding model to element collection is allowed only by the dedicated addChildModel() method.";return Backbone.Collection.prototype.add.call(this,a,b)},model:function(a,b){return a.elType?new d(a,b):new Backbone.Model(a,b)},clone:function(){var a=Backbone.Collection.prototype.clone.apply(this,arguments),b=new e;return a.forEach(function(a){b.add(a.clone(),null,!0)}),b}}),e.prototype.sync=function(){return null},e.prototype.fetch=function(){return null},e.prototype.save=function(){return null},d.prototype.sync=function(){return null},d.prototype.fetch=function(){return null},d.prototype.save=function(){return null},b.exports={Model:d,Collection:e}},{"elementor-models/base-settings":31,"elementor-models/column-settings":32,"elementor-models/row-settings":34,"elementor-models/section-settings":35,"elementor-models/widget-settings":36}],34:[function(a,b,c){var d,e=a("elementor-models/base-settings");d=e.extend({defaults:{}}),b.exports=d},{"elementor-models/base-settings":31}],35:[function(a,b,c){var d,e=a("elementor-models/base-settings");d=e.extend({defaults:{}}),b.exports=d},{"elementor-models/base-settings":31}],36:[function(a,b,c){var d,e=a("elementor-models/base-settings");d=e.extend({}),b.exports=d},{"elementor-models/base-settings":31}],37:[function(a,b,c){var d;d={init:function(){var a;this.getModal=function(){return a||(a=this.initModal()),a},Backbone.$(document).on({"heartbeat-send":function(a,b){b.elementor_post_lock={post_ID:elementor.config.post_id}},"heartbeat-tick":function(a,b){b.locked_user?d.showLockMessage(b.locked_user):d.getModal().hide()}}),elementor.config.locked_user&&d.showLockMessage(elementor.config.locked_user)},initModal:function(){var a=elementor.dialogsManager.createWidget("options",{headerMessage:elementor.translate("take_over")});return a.addButton({name:"go_back",text:elementor.translate("go_back"),callback:function(){parent.history.go(-1)}}),a.addButton({name:"take_over",text:elementor.translate("take_over"),callback:function(){wp.heartbeat.enqueue("elementor_force_post_lock",!0),wp.heartbeat.connectNow()}}),a},showLockMessage:function(a){var b=d.getModal();b.setMessage(elementor.translate("dialog_user_taken_over",[a])).show()}},b.exports=d},{}],38:[function(a,b,c){var d;d={_enqueuedFonts:[],elementsHierarchy:{section:{column:{widget:null,section:null}}},enqueueFont:function(a){if(-1===this._enqueuedFonts.indexOf(a)){var b,c=elementor.config.controls.font.fonts[a];switch(c){case"googlefonts":b="https://fonts.googleapis.com/css?family="+a+":100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic";break;case"earlyaccess":var d=a.replace(/\s+/g,"").toLowerCase();b="https://fonts.googleapis.com/earlyaccess/"+d+".css"}_.isEmpty(b)||elementor.$previewContents.find("link:last").after('<link href="'+b+'" rel="stylesheet" type="text/css">'),this._enqueuedFonts.push(a)}},getElementChildType:function(a,b){if(b||(b=this.elementsHierarchy),void 0!==b[a])return Backbone.$.isPlainObject(b[a])?Object.keys(b[a]):null;for(var c in b)if(b.hasOwnProperty(c)&&Backbone.$.isPlainObject(b[c])){var d=this.getElementChildType(a,b[c]);if(d)return d}return null},getUniqueID:function(){var a;return a=Math.random().toString(36).substr(2,7)},stringReplaceAll:function(a,b){var c=new RegExp(Object.keys(b).join("|"),"gi");return a.replace(c,function(a){return b[a]})},isControlVisible:function(a,b){var c;if(c=_.isFunction(a.get)?a.get("condition"):a.condition,_.isEmpty(c))return!0;var d=_.filter(c,function(a,c){var d=c.match(/([a-z_0-9]+)(?:\[([a-z_]+)])?(!?)$/i),e=d[1],f=d[2],g=!!d[3],h=b.get(e);f&&(h=h[f]);var i=_.isArray(a)?_.contains(a,h):a===h;return g?i:!i});return _.isEmpty(d)},cloneObject:function(a){return JSON.parse(JSON.stringify(a))},getYoutubeIDFromURL:function(a){var b=a.match(/^.*(?:youtu.be\/|v\/|e\/|u\/\w+\/|embed\/|v=)([^#\&\?]*).*/);return b&&b[1]}},b.exports=d},{}],39:[function(a,b,c){var d;d={init:function(){this.initModalWidgetType()},initModalWidgetType:function(){var a={getDefaultSettings:function(){var a=DialogsManager.getWidgetType("options").prototype.getDefaultSettings.apply(this,arguments);return _.extend(a,{position:{my:"center",at:"center"},contentWidth:"auto",contentHeight:"auto"})},buildWidget:function(){DialogsManager.getWidgetType("options").prototype.buildWidget.apply(this,arguments);var a=this.addComponent("closeButton",'<div><i class="fa fa-times"></i></div>');this.getComponents("widgetContent").prepend(a)},attachEvents:function(){this.getComponents("closeButton").on("click",this.hide)},onReady:function(){DialogsManager.getWidgetType("options").prototype.onReady.apply(this,arguments);var a=this.getComponents(),b=this.getSettings();"auto"!==b.contentWidth&&a.$message.width(b.contentWidth),"auto"!==b.contentHeight&&a.$message.height(b.contentHeight)}};DialogsManager.addWidgetType("elementor-modal",DialogsManager.getWidgetType("options").extend("elementor-modal",a))},createModal:function(a){return elementor.dialogsManager.createWidget("elementor-modal",a)}},b.exports=d},{}],40:[function(a,b,c){var d;d={getPresetsDictionary:function(){return{11:100/9,12:12.5,14:100/7,16:100/6,33:100/3,66:2/3*100,83:5/6*100}},getAbsolutePresetValues:function(a){var b=elementor.helpers.cloneObject(a),c=this.getPresetsDictionary();return _.each(b,function(a,d){c[a]&&(b[d]=c[a])}),b},getPresets:function(a,b){var c=elementor.helpers.cloneObject(elementor.config.elements.section.presets);return a&&(c=c[a]),b&&(c=c[b]),c},getPresetByStructure:function(a){var b=this.getParsedStructure(a);return this.getPresets(b.columnsCount,b.presetIndex)},getParsedStructure:function(a){return a+="",{columnsCount:a.slice(0,-1),presetIndex:a.substr(-1)}},getPresetSVG:function(a,b,c,d){b=b||100,c=c||50,d=d||2;var e=this.getAbsolutePresetValues(a),f=this._generatePresetSVGPath(e,b,c,d);return this._createSVGPreset(f,b,c)},_createSVGPreset:function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),d.setAttribute("viewBox","0 0 "+b+" "+c);var e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",a),d.appendChild(e),d},_generatePresetSVGPath:function(a,b,c,d){for(var e=b-d*(a.length-1),f=0,g="",h=0;h<a.length;h++){h&&(g+=" ");var i=a[h]/100*e;f+=i,g+="M"+ +f.toFixed(4)+",0",g+="V"+c,g+="H"+ +(f-i).toFixed(4),g+="V0Z",f+=d}return g}},b.exports=d},{}],41:[function(a,b,c){var d;d=function(){var a=this,b={},c={},d={selectorWrapperPrefix:".elementor-widget-"},e={},f=function(){e.$previewHead.append(e.$style)},g=function(){e.$style=Backbone.$("<style>",{id:"elementor-style-scheme"}),e.$previewHead=elementor.$previewContents.find("head")},h=function(a,c){b[a]||(b[a]=[]),b[a].push(c)},i=function(b,c){_.each(b.selectors,function(e,f){var g,i,j=a.getSchemeValue(b.scheme.type,b.scheme.value,b.scheme.key);_.isEmpty(j)||(g=f.replace(/\{\{WRAPPER\}\}/g,d.selectorWrapperPrefix+c),i=elementor.getControlItemView().replaceStyleValues(e,j.value),h(g,i))})},j=function(b,c){var d=a.getWidgetSchemeControls(b);_.each(d,function(a){i(a,c)})},k=function(){_.each(elementor.config.widgets,function(a,b){j(a,b)})},l=function(){var a="";return _.each(b,function(b,c){a+=c+"{"+b.join("")+"}"}),a},m=function(){b={}};this.init=function(){return g(),f(),a.resetSchemes(),a},this.getWidgetSchemeControls=function(a){return _.filter(a.controls,function(a){return _.isObject(a.scheme)})},this.getSchemes=function(){return c},this.getScheme=function(a){return c[a]},this.getSchemeValue=function(b,c,d){var e=a.getScheme(b),f=e.items[c];if(d&&_.isObject(f)){var g=elementor.helpers.cloneObject(f);return g.value=f.value[d],g}return f},this.printSchemesStyle=function(){m(),k(),e.$style.text(l())},this.resetSchemes=function(a){a?c[a]=elementor.helpers.cloneObject(elementor.config.schemes[a]):c=elementor.helpers.cloneObject(elementor.config.schemes),this.onSchemeChange()},this.saveScheme=function(a){elementor.config.schemes[a].items=elementor.helpers.cloneObject(c[a].items),NProgress.start(),Backbone.$.ajax({type:"POST",url:elementor.config.ajaxurl,data:{action:"elementor_apply_scheme",scheme_name:a,data:JSON.stringify(c[a].items)}}).done(function(a){NProgress.done()})},this.setSchemeValue=function(a,b,d){c[a].items[b].value=d,this.onSchemeChange()},this.onSchemeChange=function(){this.printSchemesStyle()}},b.exports=new d},{}],42:[function(a,b,c){var d;d=Marionette.CompositeView.extend({tagName:"div",id:function(){return this.getElementUniqueClass()},attributes:function(){var a=this.model.get("elType");return"widget"===a&&(a=this.model.get("widgetType")),{"data-element_type":a}},modelEvents:{},baseEvents:{},elementEvents:{},getElementType:function(){return this.model.get("elType")},getChildType:function(){return elementor.helpers.getElementChildType(this.getElementType())},events:function(){return _.extend({},this.baseEvents,this.elementEvents)},initialize:function(){this.collection=this.model.get("elements"),this.collection&&this.listenTo(this.collection,"add remove reset",this.onCollectionChanged,this),this.listenTo(this.model.get("settings"),"change",this.onSettingsChanged,this),this.listenTo(this.model.get("editSettings"),"change",this.onSettingsChanged,this),this.on("render",this.enqueueFonts),this.on("render",this.renderStyles),this.on("render",this.renderCustomClasses),this.on("render",this.runReadyTrigger),this.initRemoveDialog()},addChildModel:function(a,b){return this.collection.add(a,b,!0)},isCollectionFilled:function(){return!1},isInner:function(){return!!this.model.get("isInner")},initRemoveDialog:function(){var a;this.getRemoveDialog=function(){return a||(a=elementor.dialogsManager.createWidget("confirm",{message:elementor.translate("dialog_confirm_delete"),headerMessage:elementor.translate("delete_element"),strings:{confirm:elementor.translate("delete"),cancel:elementor.translate("cancel")},defaultOption:"confirm",onConfirm:_.bind(function(){this.model.destroy()},this)})),a}},enqueueFonts:function(){_.each(this.model.get("settings").getFontControls(),_.bind(function(a){var b=this.model.getSetting(a.name);if(!_.isEmpty(b)){var c=elementor.helpers.isControlVisible(a,this.model.get("settings"));c&&elementor.helpers.enqueueFont(b)}},this))},renderStyles:function(){var a="",b=elementor.$previewContents.find("#elementor-style-"+this.model.cid),c=this.model.get("settings").getStyleControls();if(_.each(c,_.bind(function(b){var c=this.model.getSetting(b.name);if(_.isNumber(c)||!_.isEmpty(c)){var d=elementor.helpers.isControlVisible(b,this.model.get("settings"));d&&_.each(b.selectors,_.bind(function(d,e){var f=e.replace(/\{\{WRAPPER\}\}/g,"#"+this.getElementUniqueClass()),g=elementor.getControlItemView(b.type).replaceStyleValues(d,c);_.isEmpty(g)||(a+=f+"{"+g+"}")},this))}},this)),"column"===this.model.get("elType")){var d=this.model.getSetting("_inline_size");_.isEmpty(d)||(a+="@media (min-width: 768px) {#"+this.getElementUniqueClass()+"{width:"+d+"%;}")}0===b.length&&(elementor.$previewContents.find("head").append('<style type="text/css" id="elementor-style-'+this.model.cid+'"></style>'),b=elementor.$previewContents.find("#elementor-style-"+this.model.cid)),b.html(a)},renderCustomClasses:function(){this.$el.addClass("elementor-element");var a=this.model.get("settings");_.each(a.attributes,_.bind(function(b,c){if(a.isClassControl(c)){var d=a.getControl(c);this.$el.removeClass(d.prefix_class+a.previous(c));var e=elementor.helpers.isControlVisible(d,this.model.get("settings"));e&&!_.isEmpty(a.get(c))&&(this.$el.addClass(d.prefix_class+a.get(c)),this.$el.addClass(_.result(this,"className")))}},this))},runReadyTrigger:function(){elementorBindUI.runReadyTrigger(this.$el)},getElementUniqueClass:function(){return"elementor-element-"+this.model.get("id")},onCollectionChanged:function(){elementor.setFlagEditorChange(!0)},onSettingsChanged:function(a){elementor.setFlagEditorChange(!0),this.renderStyles(),this.renderCustomClasses()},onClickRemove:function(a){a.preventDefault(),a.stopPropagation(),this.getRemoveDialog().show()}}),b.exports=d},{}],43:[function(a,b,c){var d,e=a("elementor-views/base-element"),f=a("elementor-views/element-empty"),g=a("elementor-views/widget");d=e.extend({template:Marionette.TemplateCache.get("#tmpl-elementor-element-column-content"),elementEvents:{"click > .elementor-element-overlay .elementor-editor-column-settings-list .elementor-editor-element-remove":"onClickRemove","click @ui.listTriggers":"onClickTrigger"},getChildView:function(b){return"section"===b.get("elType")?a("elementor-views/section"):g},emptyView:f,className:function(){var a="elementor-column",b=this.isInner()?"inner":"top";return a+=" elementor-"+b+"-column"},childViewContainer:"> .elementor-column-wrap > .elementor-widget-wrap",triggers:{"click > .elementor-element-overlay .elementor-editor-column-settings-list .elementor-editor-element-add":"click:new","click > .elementor-element-overlay .elementor-editor-column-settings-list .elementor-editor-element-edit":"click:edit","click > .elementor-element-overlay .elementor-editor-column-settings-list .elementor-editor-element-trigger":"click:edit","click > .elementor-element-overlay .elementor-editor-column-settings-list .elementor-editor-element-duplicate":"click:duplicate"},ui:{columnTitle:".column-title",columnInner:"> .elementor-column-wrap",listTriggers:"> .elementor-element-overlay .elementor-editor-element-trigger"},behaviors:{Sortable:{behaviorClass:a("elementor-behaviors/sortable"),elChildType:"widget"},Resizable:{behaviorClass:a("elementor-behaviors/resizable")},HandleDuplicate:{behaviorClass:a("elementor-behaviors/handle-duplicate")},HandleEditor:{behaviorClass:a("elementor-behaviors/handle-editor")},HandleEditMode:{behaviorClass:a("elementor-behaviors/handle-edit-mode")},HandleAddMode:{behaviorClass:a("elementor-behaviors/duplicate")},HandleElementsRelation:{behaviorClass:a("elementor-behaviors/elements-relation")}},initialize:function(){e.prototype.initialize.apply(this,arguments),this.listenTo(elementor.data,"widget:drag:start",this.onWidgetDragStart),this.listenTo(elementor.data,"widget:drag:end",this.onWidgetDragEnd)},isDroppingAllowed:function(a,b){var c=elementor.panelElements.request("element:selected"),d=c.model.get("elType");return"section"===d?!this.isInner():"widget"===d},changeSizeUI:function(){var a=this.model.getSetting("_column_size"),b=this.model.getSetting("_inline_size"),c=parseFloat(b||a).toFixed(1)+"%";this.$el.attr("data-col",a),this.ui.columnTitle.html(c)},getSortableOptions:function(){return{connectWith:".elementor-widget-wrap",items:"> .elementor-element"}},onCollectionChanged:function(){e.prototype.onCollectionChanged.apply(this,arguments),this.changeChildContainerClasses()},changeChildContainerClasses:function(){var a="elementor-element-empty",b="elementor-element-populated";this.collection.isEmpty()?this.ui.columnInner.removeClass(b).addClass(a):this.ui.columnInner.removeClass(a).addClass(b)},onRender:function(){var a=this;a.changeChildContainerClasses(),a.changeSizeUI(),a.$el.html5Droppable({items:" > .elementor-column-wrap > .elementor-widget-wrap > .elementor-element, >.elementor-column-wrap > .elementor-widget-wrap > .elementor-empty-view > .elementor-first-add",axis:["vertical"],groups:["elementor-element"],isDroppingAllowed:_.bind(a.isDroppingAllowed,a),onDragging:function(b,c){c.stopPropagation(),a.$el.addClass("elementor-dragging-on-child"),this.dataset.side!==b&&Backbone.$(this).attr("data-side",b)},onDragLeave:function(){a.$el.removeClass("elementor-dragging-on-child"),Backbone.$(this).removeAttr("data-side")},onDropping:function(b,c){c.stopPropagation();var d=elementor.panelElements.request("element:selected"),e=Backbone.$(this).index();"bottom"===b&&e++;var f={id:elementor.helpers.getUniqueID(),elType:d.model.get("elType")};if("widget"===f.elType)f.widgetType=d.model.get("widgetType");else{if("section"!==f.elType)return;f.elements=[],f.isInner=!0}a.triggerMethod("request:add",f,{at:e})}})},onClickTrigger:function(a){a.preventDefault();var b=this.$(a.currentTarget),c=b.hasClass("elementor-active");this.ui.listTriggers.removeClass("elementor-active"),c||b.addClass("elementor-active")},onWidgetDragStart:function(){this.$el.addClass("elementor-dragging")},onWidgetDragEnd:function(){this.$el.removeClass("elementor-dragging")}}),b.exports=d},{"elementor-behaviors/duplicate":2,"elementor-behaviors/elements-relation":3,"elementor-behaviors/handle-duplicate":4,"elementor-behaviors/handle-edit-mode":5,"elementor-behaviors/handle-editor":6,"elementor-behaviors/resizable":7,"elementor-behaviors/sortable":8,"elementor-views/base-element":42,"elementor-views/element-empty":63,"elementor-views/section":64,"elementor-views/widget":66}],44:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({applySavedValue:function(){var a=this.getControlValue(),b=this.$("[data-setting]"),c=this;_.each(a,function(a,d){var e=b.filter(function(){return d===this.dataset.setting});c.setInputValue(e,a)})},getControlValue:function(a){var b=this.elementSettingsModel.get(this.model.get("name"));return Backbone.$.isPlainObject(b)?a?b[a]||"":elementor.helpers.cloneObject(b):{}},setValue:function(a,b){var c=this.getControlValue();"object"==typeof a?_.each(a,function(a,b){c[b]=a}):c[a]=b,this.setSettingsModel(c)},updateElementModel:function(a){var b=this.getInputValue(a.currentTarget),c=a.currentTarget.dataset.setting;this.setValue(c,b)}},{replaceStyleValues:function(a,b){if(!_.isObject(b))return"";try{return a.replace(/\{\{([A-Z]+)}}/g,function(a,c){var d=b[c.toLowerCase()];if(""===d)throw"";return d})}catch(c){return""}}}),b.exports=d},{"elementor-views/controls/base":46}],45:[function(a,b,c){var d,e=a("elementor-views/controls/base-multiple");d=e.extend({getCurrentRange:function(){return this.getUnitRange(this.getControlValue("unit"))},getUnitRange:function(a){var b=this.model.get("range");return b&&b[a]?b[a]:!1}}),b.exports=d},{"elementor-views/controls/base-multiple":44}],46:[function(a,b,c){var d;d=Marionette.CompositeView.extend({ui:function(){return{input:'input[data-setting][type!="checkbox"][type!="radio"]',checkbox:'input[data-setting][type="checkbox"]',radio:'input[data-setting][type="radio"]',select:"select[data-setting]",textarea:"textarea[data-setting]"}},className:function(){var a="elementor-control elementor-control-"+this.model.get("name")+" elementor-control-type-"+this.model.get("type"),b=this.model.get("classes");return _.isEmpty(b)||(a+=" "+b),_.isEmpty(this.model.get("section"))||(a+=" elementor-control-under-section"),a},getTemplate:function(){return Marionette.TemplateCache.get("#tmpl-elementor-control-"+this.model.get("type")+"-content")},templateHelpers:function(){var a={controlValue:this.getControlValue(),_cid:this.model.cid};return{data:_.extend({},this.model.toJSON(),a)}},baseEvents:{"input @ui.input":"onBaseInputChange","change @ui.checkbox":"onBaseInputChange","change @ui.radio":"onBaseInputChange","input @ui.textarea":"onBaseInputChange","change @ui.select":"onBaseInputChange"},childEvents:{},events:function(){return _.extend({},this.baseEvents,this.childEvents)},initialize:function(a){this.elementSettingsModel=a.elementSettingsModel;var b=this.model.get("type"),c=Backbone.$.extend(!0,{},elementor.config.controls[b],this.model.attributes);this.model.set(c),this.listenTo(this.elementSettingsModel,"change",this.toggleControlVisibility),this.listenTo(this.elementSettingsModel,"control:switch:tab",this.onControlSwitchTab)},getControlValue:function(){return this.elementSettingsModel.get(this.model.get("name"))},isValidValue:function(a){return!0},setValue:function(a){this.setSettingsModel(a)},setSettingsModel:function(a){return!0!==this.isValidValue(a)?void this.triggerMethod("settings:error"):(this.elementSettingsModel.set(this.model.get("name"),a),void this.triggerMethod("settings:change"))},applySavedValue:function(){this.setInputValue('[data-setting="'+this.model.get("name")+'"]',this.getControlValue())},getEditSettings:function(a){var b=this.getOption("elementEditSettings").toJSON();return a?b[a]:b},setEditSetting:function(a,b){var c=this.getOption("elementEditSettings");c.set(a,b)},getInputValue:function(a){var b=this.$(a),c=b.val(),d=b.attr("type");return"checkbox"===d?b.prop("checked"):"radio"===d?b.prop("checked")?c:"":c},setInputValue:function(a,b){var c=this.$(a),d=c.attr("type");"checkbox"===d?c.prop("checked",!!b):"radio"===d?c.filter('[value="'+b+'"]').prop("checked",!0):c.val(b)},onSettingsError:function(){this.$el.addClass("elementor-error")},onSettingsChange:function(){this.$el.removeClass("elementor-error")},onRender:function(){this.applySavedValue();var a=this.model.get("label_block")?"block":"inline",b=this.model.get("show_label"),c="elementor-label-"+a;c+=" elementor-control-separator-"+this.model.get("separator"),b||(c+=" elementor-control-hidden-label"),this.$el.addClass(c),this.triggerMethod("ready"),this.toggleControlVisibility()},onBaseInputChange:function(a){this.updateElementModel(a),this.triggerMethod("input:change",a)},toggleControlVisibility:function(){var a=elementor.helpers.isControlVisible(this.model,this.elementSettingsModel);this.$el.toggleClass("elementor-hidden-control",!a),elementor.data.trigger("scrollbar:update")},onControlSwitchTab:function(a){this.$el.toggleClass("elementor-active-tab",a===this.model.get("tab")),elementor.data.trigger("scrollbar:update")},onReady:function(){},updateElementModel:function(a){this.setValue(this.getInputValue(a.currentTarget))}},{replaceStyleValues:function(a,b){var c={"{{VALUE}}":b};return elementor.helpers.stringReplaceAll(a,c)}}),b.exports=d},{}],47:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.inputs="[type=radio]",a},childEvents:{"mousedown label":"onMouseDownLabel","click @ui.inputs":"onClickInput","change @ui.inputs":"updateElementModel"},onMouseDownLabel:function(a){var b=this.$(a.currentTarget),c=this.$("#"+b.attr("for"));c.data("checked",c.prop("checked"))},onClickInput:function(a){if(this.model.get("toggle")){var b=this.$(a.currentTarget);b.data("checked")&&b.prop("checked",!1).trigger("change")}},onRender:function(){e.prototype.onRender.apply(this,arguments);var a=this.getControlValue();a?this.ui.inputs.filter("[value="+a+"]").prop("checked",!0):this.model.get("toggle")||this.ui.inputs.first().prop("checked",!0).trigger("change")}}),b.exports=d},{"elementor-views/controls/base":46}],48:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.picker=".color-picker-hex",a},onReady:function(){this.ui.picker.wpColorPicker({change:_.bind(function(){this.setValue(this.ui.picker.wpColorPicker("color"))},this),clear:_.bind(function(){this.setValue("")},this),width:251})},onBeforeDestroy:function(){this.ui.picker.wpColorPicker("instance")&&this.ui.picker.wpColorPicker("close"),this.$el.remove()}}),b.exports=d},{"elementor-views/controls/base":46}],49:[function(a,b,c){var d,e=a("elementor-views/controls/base-units");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.controls=".elementor-control-dimension > input:enabled",a.link="button.elementor-link-dimensions",a},childEvents:{"click @ui.link":"onLinkDimensionsClicked"},defaultDimensionValue:0,initialize:function(){e.prototype.initialize.apply(this,arguments),this.model.set("allowed_dimensions",this.filterDimensions(this.model.get("allowed_dimensions")))},getPossibleDimensions:function(){return["top","right","bottom","left"]},filterDimensions:function(a){a=a||"all";var b=this.getPossibleDimensions();return"all"===a?b:(_.isArray(a)||("horizontal"===a?a=["right","left"]:"vertical"===a&&(a=["top","bottom"])),a)},onReady:function(){var a=this.getControlValue();this.isLinkedDimensions()||(this.ui.link.addClass("unlinked"),this.ui.controls.each(_.bind(function(b,c){var d=a[c.dataset.setting];_.isEmpty(d)&&(d=this.defaultDimensionValue),this.$(c).val(d)},this))),this.fillEmptyDimensions()},updateDimensionsValue:function(){var a={},b=this.getPossibleDimensions(),c=this.ui.controls;b.forEach(_.bind(function(b){var d=c.filter('[data-setting="'+b+'"]');a[b]=d.length?d.val():this.defaultDimensionValue},this)),this.setValue(a)},fillEmptyDimensions:function(){var a=this.getPossibleDimensions(),b=this.model.get("allowed_dimensions"),c=this.ui.controls;this.isLinkedDimensions()||a.forEach(_.bind(function(a){var d=c.filter('[data-setting="'+a+'"]'),e=-1!==_.indexOf(b,a);e&&d.length&&_.isEmpty(d.val())&&d.val(this.defaultDimensionValue)},this))},updateDimensions:function(){this.fillEmptyDimensions(),this.updateDimensionsValue()},resetDimensions:function(){this.ui.controls.val(""),this.updateDimensionsValue()},onInputChange:function(a){var b=a.target.dataset.setting;if("unit"===b&&this.resetDimensions(),_.contains(this.getPossibleDimensions(),b)){
4
  if(this.isLinkedDimensions()){var c=this.$(a.target);this.ui.controls.val(c.val())}this.updateDimensions()}},onLinkDimensionsClicked:function(a){a.preventDefault(),a.stopPropagation(),this.ui.link.toggleClass("unlinked"),this.setValue("isLinked",!this.ui.link.hasClass("unlinked")),this.isLinkedDimensions()&&this.ui.controls.val(this.ui.controls.eq(0).val()),this.updateDimensions()},isLinkedDimensions:function(){return this.getControlValue("isLinked")}}),b.exports=d},{"elementor-views/controls/base-units":45}],50:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.fontSelect=".elementor-control-font-family",a},onReady:function(){this.ui.fontSelect.select2({dir:elementor.config.is_rtl?"rtl":"ltr"})},onBeforeDestroy:function(){this.ui.fontSelect.data("select2")&&this.ui.fontSelect.select2("destroy"),this.$el.remove()},templateHelpers:function(){var a=e.prototype.templateHelpers.apply(this,arguments);return a.getFontsByGroups=_.bind(function(a){return _.pick(this.model.get("fonts"),function(b){return _.isArray(a)?_.contains(a,b):b===a})},this),a}}),b.exports=d},{"elementor-views/controls/base":46}],51:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.controlMedia=".elementor-control-media",a.frameOpeners=".elementor-control-media-upload-button, .elementor-control-media-image",a.deleteButton=".elementor-control-media-delete",a},childEvents:{"click @ui.frameOpeners":"openFrame","click @ui.deleteButton":"deleteImage"},onReady:function(){_.isEmpty(this.getControlValue())&&this.ui.controlMedia.addClass("media-empty")},openFrame:function(){this.initFrame(),this.frame.open()},deleteImage:function(){this.setValue(""),this.render()},initFrame:function(){var a,b=this.getControlValue();a={frame:"post",multiple:!0,button:{text:"Insert Media"},state:"gallery"},0<b.length&&(a.selection=this.fetchSelection(b),a.state="gallery-edit"),this.frame=wp.media(a),this.frame.on("update",_.bind(this.select,this)),this.frame.on("menu:render:default",_.bind(this.menuRender,this)),this.frame.on("content:render:browse",_.bind(this.gallerySettings,this))},menuRender:function(a){a.unset("insert"),a.unset("featured-image")},gallerySettings:function(a){a.sidebar.on("ready",function(){a.sidebar.unset("gallery")})},fetchSelection:function(a){var b=a.split(","),c={orderby:"post__in",order:"ASC",type:"image",perPage:-1,post__in:b},d=wp.media.query(c),e=new wp.media.model.Selection(d.models,{props:d.props.toJSON(),multiple:!0});return e},select:function(a){var b=a.pluck("id");this.setValue(b.toString()),this.render()},onBeforeDestroy:function(){this.frame&&(this.frame.off("update"),this.frame.off("menu:render:default"),this.frame.off("content:render:browse")),this.$el.remove()}}),b.exports=d},{"elementor-views/controls/base":46}],52:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.iconSelect=".elementor-control-icon",a},onReady:function(){this.ui.iconSelect.select2({allowClear:!0,templateResult:_.bind(this.iconsList,this),templateSelection:_.bind(this.iconsList,this)})},iconsList:function(a){return a.id?Backbone.$('<span><i class="'+a.id+'"></i> '+a.text+"</span>"):a.text},onBeforeDestroy:function(){this.ui.iconSelect.data("select2")&&this.ui.iconSelect.select2("destroy"),this.$el.remove()}}),b.exports=d},{"elementor-views/controls/base":46}],53:[function(a,b,c){var d,e=a("elementor-views/controls/base-multiple");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.controlMedia=".elementor-control-media",a.frameOpeners=".elementor-control-media-upload-button, .elementor-control-media-image",a.deleteButton=".elementor-control-media-delete",a},childEvents:{"click @ui.frameOpeners":"openFrame","click @ui.deleteButton":"deleteImage"},onReady:function(){_.isEmpty(this.getControlValue("url"))&&this.ui.controlMedia.addClass("media-empty")},openFrame:function(){this.frame||this.initFrame(),this.frame.open()},deleteImage:function(){this.setValue({url:"",id:""}),this.render()},initFrame:function(){this.frame=wp.media({button:{text:"Insert Media"},states:[new wp.media.controller.Library({title:"Insert Media",library:wp.media.query({type:"image"}),multiple:!1,date:!1})]}),this.frame.on("insert select",_.bind(this.select,this))},select:function(){var a=this.frame.state().get("selection").first().toJSON();a.url&&(this.setValue({url:a.url,id:a.id}),this.render())},onBeforeDestroy:function(){this.$el.remove()}}),b.exports=d},{"elementor-views/controls/base-multiple":44}],54:[function(a,b,c){var d;d=Marionette.CompositeView.extend({template:Marionette.TemplateCache.get("#tmpl-elementor-repeater-row"),className:"repeater-fields",ui:{duplicateButton:".elementor-repeater-tool-duplicate",editButton:".elementor-repeater-tool-edit",removeButton:".elementor-repeater-tool-remove",itemNumber:".elementor-repeater-row-item-number"},triggers:{"click @ui.removeButton":"click:remove","click @ui.duplicateButton":"click:duplicate","click @ui.itemNumber":"click:edit"},templateHelpers:function(){return{itemIndex:this.getOption("itemIndex")}},childViewContainer:".elementor-repeater-row-controls",getChildView:function(a){var b=a.get("type");return elementor.getControlItemView(b)},childViewOptions:function(){return{elementSettingsModel:this.model}},updateIndex:function(a){this.itemIndex=a,this.render()},initialize:function(a){this.elementSettingsModel=a.elementSettingsModel,this.itemIndex=0,this.collection=new Backbone.Collection(a.controlFields)}}),b.exports=d},{}],55:[function(a,b,c){var d,e=a("elementor-views/controls/base"),f=a("elementor-views/controls/repeater-row");d=e.extend({ui:{btnAddRow:".elementor-repeater-add",fieldContainer:".elementor-repeater-fields"},events:{"click @ui.btnAddRow":"onButtonAddRowClick","sortstart @ui.fieldContainer":"onSortStart","sortupdate @ui.fieldContainer":"onSortUpdate"},childView:f,childViewContainer:".elementor-repeater-fields",templateHelpers:function(){return{data:_.extend({},this.model.toJSON(),{controlValue:[]})}},childViewOptions:function(a){return{controlFields:this.model.get("fields")}},initialize:function(a){e.prototype.initialize.apply(this,arguments),this.collection=this.elementSettingsModel.get(this.model.get("name")),this.listenTo(this.collection,"change add remove reset",this.onCollectionChanged,this)},editRow:function(a){return this.currentEditableChild&&this.currentEditableChild.getChildViewContainer(this.currentEditableChild).removeClass("editable"),this.currentEditableChild===a?void delete this.currentEditableChild:(a.getChildViewContainer(a).addClass("editable"),this.currentEditableChild=a,void this.updateActiveRow())},toggleMinRowsClass:function(){this.model.get("prevent_empty")&&this.$el.toggleClass("elementor-repeater-has-minimum-rows",1>=this.collection.length)},updateActiveRow:function(){var a=0;this.currentEditableChild&&(a=this.currentEditableChild.itemIndex),this.setEditSetting("activeItemIndex",a)},updateChildIndexes:function(){this.children.each(_.bind(function(a){a.updateIndex(this.collection.indexOf(a.model)+1)},this))},onRender:function(){this.ui.fieldContainer.sortable({axis:"y"}),this.toggleMinRowsClass()},onSortStart:function(a,b){b.item.data("oldIndex",b.item.index())},onSortUpdate:function(a,b){var c=b.item.data("oldIndex"),d=this.collection.at(c),e=b.item.index();this.collection.remove(d),this.collection.add(d,{at:e})},onAddChild:function(){this.updateChildIndexes(),this.updateActiveRow()},onRemoveChild:function(a){a===this.currentEditableChild&&delete this.currentEditableChild,this.updateChildIndexes(),this.updateActiveRow()},onCollectionChanged:function(){this.elementSettingsModel.trigger("change"),this.toggleMinRowsClass()},onButtonAddRowClick:function(){var a={};_.each(this.model.get("fields"),function(b){a[b.name]=b["default"]});var b=this.collection.add(a),c=this.children.findByModel(b);this.editRow(c)},onChildviewClickRemove:function(a){a.model.destroy()},onChildviewClickDuplicate:function(a){this.collection.add(a.model.clone(),{at:a.itemIndex})},onChildviewClickEdit:function(a){this.editRow(a)}}),b.exports=d},{"elementor-views/controls/base":46,"elementor-views/controls/repeater-row":54}],56:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.heading=".elementor-panel-heading",a},triggers:{click:"control:section:clicked"}}),b.exports=d},{"elementor-views/controls/base":46}],57:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.select=".elementor-select2",a},onReady:function(){var a={allowClear:!0};this.ui.select.select2(a)},onBeforeDestroy:function(){this.ui.select.data("select2")&&this.ui.select.select2("destroy"),this.$el.remove()}}),b.exports=d},{"elementor-views/controls/base":46}],58:[function(a,b,c){var d,e=a("elementor-views/controls/base-units");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.slider=".elementor-control-slider",a},childEvents:{"slide @ui.slider":"onSlideChange"},initSlider:function(){var a=this.getControlValue("size"),b=this.getCurrentRange();this.ui.input.attr(b).val(a),this.ui.slider.slider(_.extend({},b,{value:a}))},resetSize:function(){this.setValue("size",""),this.initSlider()},onReady:function(){this.initSlider()},onSlideChange:function(a,b){this.setValue("size",b.value),this.ui.input.val(b.value)},onInputChange:function(a){var b=a.currentTarget.dataset.setting;"size"===b?this.ui.slider.slider("value",this.getControlValue("size")):"unit"===b&&this.resetSize()},onBeforeDestroy:function(){this.ui.slider.slider("destroy"),this.$el.remove()}}),b.exports=d},{"elementor-views/controls/base-units":45}],59:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.resetStructure=".elementor-control-structure-reset",a},childEvents:{"click @ui.resetStructure":"onResetStructureClick"},templateHelpers:function(){var a=e.prototype.templateHelpers.apply(this,arguments);return a.getMorePresets=_.bind(this.getMorePresets,this),a},getCurrentEditedSection:function(){var a=elementor.getPanelView().getCurrentPageView();return a.getOption("editedElementView")},getMorePresets:function(){var a=elementor.presetsFactory.getParsedStructure(this.getControlValue());return elementor.presetsFactory.getPresets(a.columnsCount)},onInputChange:function(){this.getCurrentEditedSection().redefineLayout(),this.render()},onResetStructureClick:function(){this.getCurrentEditedSection().resetColumnsCustomSize()}}),b.exports=d},{"elementor-views/controls/base":46}],60:[function(a,b,c){var d,e=a("elementor-views/controls/base-multiple");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.btnExternal="button.elementor-control-url-target",a},childEvents:{"click @ui.btnExternal":"onExternalClicked"},onReady:function(){var a=this.getControlValue();a.is_external&&this.ui.btnExternal.addClass("active"),a.url&&this.ui.input.val(a.url)},onExternalClicked:function(a){a.preventDefault(),this.ui.btnExternal.toggleClass("active"),this.setValue("is_external",this.isExternal())},isExternal:function(){return this.ui.btnExternal.hasClass("active")}}),b.exports=d},{"elementor-views/controls/base-multiple":44}],61:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.form="form",a.loading=".wp-widget-form-loading",a},events:{"keyup @ui.form :input":"onFormChanged","change @ui.form :input":"onFormChanged"},onFormChanged:function(){var a="widget-"+this.model.get("id_base"),b=this.ui.form.elementorSerializeObject()[a].REPLACE_TO_ID;this.setValue(b)},onReady:function(){Backbone.$.ajax({type:"POST",url:elementor.config.ajaxurl,data:{action:"elementor_editor_get_wp_widget_form",widget_type:this.model.get("widget"),data:JSON.stringify(this.elementSettingsModel.toJSON())}}).done(_.bind(function(a){this.ui.form.html(a)},this))}}),b.exports=d},{"elementor-views/controls/base":46}],62:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({childEvents:{"keyup textarea.elementor-wp-editor":"updateElementModel"},buttons:{keepInBasic:["bold","italic","link","unlink","wp_adv","fullscreen"],moveToBasic:{underline:"italic"}},initialize:function(){e.prototype.initialize.apply(this,arguments);var a=this;this.editorID="elementorwpeditor"+this.cid;var b={id:this.editorID,selector:"#"+this.editorID,setup:function(b){b.on("keyup change",function(){b.save(),a.setValue(b.getContent())})}};tinyMCEPreInit.mceInit[this.editorID]=_.extend(_.clone(tinyMCEPreInit.mceInit.elementorwpeditor),b),this.rearrangeButtons(),this.$el.addClass("elementor-loading-editor"),_.defer(function(){quicktags({buttons:"strong,em,del,link,img,close",id:a.editorID}),switchEditors.go(a.editorID,"tmce"),_.defer(function(){delete QTags.instances[0]})})},attachElContent:function(){var a=elementor.config.wp_editor.replace(/elementorwpeditor/g,this.editorID).replace("%%EDITORCONTENT%%",this.getControlValue());return this.$el.html(a),this},rearrangeButtons:function(){var a=tinyMCEPreInit.mceInit[this.editorID],b=a.toolbar1.split(","),c=a.toolbar2.split(","),d=Array.prototype.slice.call(this.buttons.keepInBasic),e=_.difference(b,d),f=_.difference(c,Object.keys(this.buttons.moveToBasic));_.each(this.buttons.moveToBasic,function(a,b){var c=d.indexOf(a);-1!==c&&d.splice(c+1,0,b)}),a.toolbar1=d.join(","),a.toolbar2=e+","+f},onBeforeDestroy:function(){tinymce.EditorManager.execCommand("mceRemoveEditor",!0,this.editorID),delete QTags.instances[this.editorID],delete tinyMCEPreInit.mceInit[this.editorID],delete tinyMCEPreInit.qtInit[this.editorID]}}),b.exports=d},{"elementor-views/controls/base":46}],63:[function(a,b,c){var d;d=Marionette.ItemView.extend({template:"#tmpl-elementor-empty-preview",className:"elementor-empty-view",events:{click:"onClickAdd"},onClickAdd:function(){elementor.getPanelView().setPage("elements")}}),b.exports=d},{}],64:[function(a,b,c){var d,e=a("elementor-views/base-element"),f=a("elementor-views/column");d=e.extend({template:Marionette.TemplateCache.get("#tmpl-elementor-element-section-content"),childView:f,className:function(){var a="elementor-section",b=this.isInner()?"inner":"top";return a+=" elementor-"+b+"-section"},tagName:"section",childViewContainer:"> .elementor-container > .elementor-row",triggers:{"click .elementor-editor-section-settings-list .elementor-editor-element-edit":"click:edit","click .elementor-editor-section-settings-list .elementor-editor-element-trigger":"click:edit","click .elementor-editor-section-settings-list .elementor-editor-element-duplicate":"click:duplicate"},elementEvents:{"click .elementor-editor-section-settings-list .elementor-editor-element-remove":"onClickRemove"},behaviors:{Sortable:{behaviorClass:a("elementor-behaviors/sortable"),elChildType:"column"},HandleDuplicate:{behaviorClass:a("elementor-behaviors/handle-duplicate")},HandleEditor:{behaviorClass:a("elementor-behaviors/handle-editor")},HandleEditMode:{behaviorClass:a("elementor-behaviors/handle-edit-mode")},HandleAddMode:{behaviorClass:a("elementor-behaviors/duplicate")},HandleElementsRelation:{behaviorClass:a("elementor-behaviors/elements-relation")}},initialize:function(){e.prototype.initialize.apply(this,arguments),this.listenTo(this.collection,"add remove reset",this._checkIsFull),this.listenTo(this.collection,"remove",this.onCollectionRemove),this.listenTo(this.model,"change:settings:structure",this.onStructureChanged)},addEmptyColumn:function(){this.addChildModel({id:elementor.helpers.getUniqueID(),elType:"column",settings:{},elements:[]})},addChildModel:function(a,b){var c=a instanceof Backbone.Model,d=this.isInner();return c?a.set("isInner",d):a.isInner=d,e.prototype.addChildModel.apply(this,arguments)},getSortableOptions:function(){var a=this.isInner()?".elementor-inner-section":".elementor-top-section";return{connectWith:a+" > .elementor-container > .elementor-row",handle:"> .elementor-element-overlay .elementor-editor-column-settings-list .elementor-editor-element-trigger",items:"> .elementor-column"}},getColumnPercentSize:function(a,b){return b/a.parent().width()*100},getDefaultStructure:function(){return this.collection.length+"0"},getStructure:function(){return this.model.getSetting("structure")},setStructure:function(a){var b=elementor.presetsFactory.getParsedStructure(a);if(+b.columnsCount!==this.collection.length)throw new TypeError("The provided structure doesn't match the columns count.");this.model.setSetting("structure",a,!0)},redefineLayout:function(){var a=elementor.presetsFactory.getPresetByStructure(this.getStructure());this.collection.each(function(b,c){b.setSetting("_column_size",a.preset[c]),b.setSetting("_inline_size",null)}),this.children.invoke("changeSizeUI")},resetLayout:function(){this.setStructure(this.getDefaultStructure())},resetColumnsCustomSize:function(){this.collection.each(function(a){a.setSetting("_inline_size",null)}),this.children.invoke("changeSizeUI")},isCollectionFilled:function(){var a=10,b=this.collection.length;return b>=a},_checkIsFull:function(){this.$el.toggleClass("elementor-section-filled",this.isCollectionFilled())},_checkIsEmpty:function(){this.collection.length||this.addEmptyColumn()},onBeforeRender:function(){this._checkIsEmpty()},onRender:function(){this._checkIsFull()},onAddChild:function(){this.isBuffering||this.resetLayout()},onCollectionRemove:function(){this._checkIsEmpty(),this.resetLayout()},onChildviewRequestResize:function(a,b){var c=a.model.getSetting("_inline_size");c||(c=this.getColumnPercentSize(b.element,b.originalSize.width));var d=this.getColumnPercentSize(b.element,b.size.width),e=d-c;b.element.css({width:"",left:"initial"});var f=this.collection.indexOf(a.model),g=this.collection.at(f+1),h=this.children.findByModelCid(g.cid);if(h){var i=h.$el,j=this.getColumnPercentSize(i,i.width()),k=j-e;10>d||d>100||!e||10>k||k>100||(a.model.setSetting("_inline_size",d.toFixed(3)),a.changeSizeUI(),h.model.setSetting("_inline_size",k.toFixed(3)),h.changeSizeUI())}},onSettingsChanged:function(){e.prototype.onSettingsChanged.apply(this,arguments),this.render()},onStructureChanged:function(){this.redefineLayout()}}),b.exports=d},{"elementor-behaviors/duplicate":2,"elementor-behaviors/elements-relation":3,"elementor-behaviors/handle-duplicate":4,"elementor-behaviors/handle-edit-mode":5,"elementor-behaviors/handle-editor":6,"elementor-behaviors/sortable":8,"elementor-views/base-element":42,"elementor-views/column":43}],65:[function(a,b,c){var d,e=a("elementor-views/section");d=Marionette.CompositeView.extend({template:Marionette.TemplateCache.get("#tmpl-elementor-preview"),id:"elementor-inner",childViewContainer:"#elementor-section-wrap",childView:e,ui:{addSectionArea:"#elementor-add-section",addNewSection:"#elementor-add-new-section",closePresetsIcon:"#elementor-select-preset-close",addIcon:"#elementor-add-section-button",selectPreset:"#elementor-select-preset",presets:".elementor-preset"},events:{"click @ui.addIcon":"showSelectPresets","click @ui.closePresetsIcon":"closeSelectPresets","click @ui.presets":"onPresetSelected"},behaviors:{Sortable:{behaviorClass:a("elementor-behaviors/sortable"),elChildType:"section"},HandleDuplicate:{behaviorClass:a("elementor-behaviors/handle-duplicate")},HandleAdd:{behaviorClass:a("elementor-behaviors/duplicate")},HandleElementsRelation:{behaviorClass:a("elementor-behaviors/elements-relation")}},getSortableOptions:function(){return{handle:"> .elementor-container > .elementor-row > .elementor-column > .elementor-element-overlay .elementor-editor-section-settings-list .elementor-editor-element-trigger",items:"> .elementor-section"}},getChildType:function(){return["section"]},isCollectionFilled:function(){return!1},initialize:function(){1>this.collection.length&&this.addChildModel({id:elementor.helpers.getUniqueID(),elType:"section",settings:{},elements:[]})},addChildModel:function(a,b){return this.collection.add(a,b,!0)},addSection:function(a){var b={id:elementor.helpers.getUniqueID(),elType:"section",settings:{},elements:[]};a&&_.extend(b,a);var c=this.addChildModel(b);return this.children.findByModelCid(c.cid)},showSelectPresets:function(){this.ui.addNewSection.hide(),this.ui.selectPreset.show()},closeSelectPresets:function(){this.ui.addNewSection.show(),this.ui.selectPreset.hide()},onRender:function(){var a=this;a.ui.addSectionArea.html5Droppable({axis:["vertical"],groups:["elementor-element"],onDragging:function(b){a.ui.addSectionArea.data("side")!==b&&a.ui.addSectionArea.attr("data-side",b)},onDragLeave:function(){a.ui.addSectionArea.removeAttr("data-side")},onDropping:function(){var b=elementor.panelElements.request("element:selected"),c=a.addSection(),d={id:elementor.helpers.getUniqueID(),elType:"widget",widgetType:b.model.get("widgetType")};c.triggerMethod("request:add",d)}})},onPresetSelected:function(a){this.closeSelectPresets();var b,c=a.currentTarget.dataset.structure,d=elementor.presetsFactory.getParsedStructure(c),e=[];for(b=0;b<d.columnsCount;b++)e.push({id:elementor.helpers.getUniqueID(),elType:"column",settings:{},elements:[]});var f=this.addSection({elements:e});f.setStructure(c),f.redefineLayout()}}),b.exports=d},{"elementor-behaviors/duplicate":2,"elementor-behaviors/elements-relation":3,"elementor-behaviors/handle-duplicate":4,"elementor-behaviors/sortable":8,"elementor-views/section":64}],66:[function(a,b,c){var d,e=a("elementor-views/base-element"),f=a("elementor-models/base-settings");d=e.extend({_templateType:null,getTemplate:function(){return"remote"!==this.getTemplateType()?Marionette.TemplateCache.get("#tmpl-elementor-widget-"+this.model.get("widgetType")+"-content"):_.template("")},className:function(){return"elementor-widget elementor-widget-"+this.model.get("widgetType")},modelEvents:{"before:remote:render":"onModelBeforeRemoteRender","remote:render":"onModelRemoteRender"},triggers:{"click > .elementor-element-overlay":{event:"click:edit",stopPropagation:!1},"click > .elementor-element-overlay .elementor-editor-add-element":"click:add","click > .elementor-element-overlay .elementor-editor-element-duplicate":"click:duplicate"},ui:{settings:"> .elementor-element-overlay .elementor-editor-widget-settings"},elementEvents:{click:"showSettings","mouseleave @ui.settings":"hideSettings","click > .elementor-element-overlay .elementor-editor-element-remove":"onClickRemove"},behaviors:{HandleEditor:{behaviorClass:a("elementor-behaviors/handle-editor")},HandleEditMode:{behaviorClass:a("elementor-behaviors/handle-edit-mode")}},initialize:function(){e.prototype.initialize.apply(this,arguments),this.model.getHtmlCache()||this.model.renderRemoteServer()},getTemplateType:function(){if(null===this.getOption("_templateType")){var a=Backbone.$("#tmpl-elementor-widget-"+this.model.get("widgetType")+"-content");0===a.length?this._templateType="remote":this._templateType="js"}return this.getOption("_templateType")},onModelBeforeRemoteRender:function(){this.$el.addClass("elementor-loading")},onBeforeDestroy:function(){elementor.$previewContents.find("#elementor-style-"+this.model.cid).remove()},onModelRemoteRender:function(){this.isDestroyed||(this.$el.removeClass("elementor-loading"),this.render())},onSettingsChanged:function(a){if(e.prototype.onSettingsChanged.apply(this,arguments),a instanceof f){var b=!1;if(_.each(a.changedAttributes(),function(c,d){a.isStyleControl(d)||a.isClassControl(d)||(b=!0)}),!b)return}switch(this.getTemplateType()){case"js":this.model.setHtmlCache(),this.render();break;default:this.model.renderRemoteServer()}},attachElContent:function(a){var b=this.model.getHtmlCache();return b&&(a=b),this.$el.html(a),this},onRender:function(){this.$el.removeClass("elementor-widget-empty").find("> .elementor-element-overlay .elementor-widget-empty-icon").remove(),this.$el.imagesLoaded().always(_.bind(function(){1>this.$el.height()&&(this.$el.addClass("elementor-widget-empty"),this.$("> .elementor-element-overlay").append('<i class="elementor-widget-empty-icon fa fa-'+this.model.getIcon()+'"></i>'))},this))},showSettings:function(a){var b={my:elementor.config.is_rtl?"right+15 center":"left-15 center",of:a,collision:"fit",within:this.$el};this.ui.settings.addClass("elementor-open").position(b)},hideSettings:function(){this.ui.settings.removeClass("elementor-open")}}),b.exports=d},{"elementor-behaviors/handle-edit-mode":5,"elementor-behaviors/handle-editor":6,"elementor-models/base-settings":31,"elementor-views/base-element":42}]},{},[1]);
1
+ /*! elementor - v0.2.2 - 08-06-2016 */
2
  !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){var d;d=Marionette.Application.extend({helpers:a("elementor-utils/helpers"),heartbeat:a("elementor-utils/heartbeat"),schemes:a("elementor-utils/schemes"),presetsFactory:a("elementor-utils/presets-factory"),modals:a("elementor-utils/modals"),editor:Backbone.Radio.channel("ELEMENTOR:editor"),data:Backbone.Radio.channel("ELEMENTOR:data"),filterState:Backbone.Radio.channel("ELEMENTOR:filterState"),elementLibrary:Backbone.Radio.channel("ELEMENTOR:elementLibrary"),panelElements:Backbone.Radio.channel("ELEMENTOR:panelElements"),dataEditMode:Backbone.Radio.channel("ELEMENTOR:editmode"),preview:Backbone.Radio.channel("ELEMENTOR:preview"),deviceMode:Backbone.Radio.channel("ELEMENTOR:deviceMode"),_controlsItemView:null,getElementData:function(a){var b=a.get("elType");if("widget"===b){var c=a.get("widgetType");return this.config.widgets[c]?this.config.widgets[c]:!1}return this.config.elements[b]?this.config.elements[b]:!1},getElementControls:function(a){var b=this.getElementData(a);if(!b)return!1;var c=a.get("elType"),d=a.get("isInner");return"widget"===c?b.controls:_.filter(b.controls,function(a){return!(d&&a.hide_in_inner||!d&&a.hide_in_top)})},getControlItemView:function(b){return null===this._controlsItemView&&(this._controlsItemView={color:a("elementor-views/controls/color"),dimensions:a("elementor-views/controls/dimensions"),media:a("elementor-views/controls/media"),slider:a("elementor-views/controls/slider"),wysiwyg:a("elementor-views/controls/wysiwyg"),choose:a("elementor-views/controls/choose"),url:a("elementor-views/controls/url"),font:a("elementor-views/controls/font"),section:a("elementor-views/controls/section"),repeater:a("elementor-views/controls/repeater"),wp_widget:a("elementor-views/controls/wp_widget"),icon:a("elementor-views/controls/icon"),gallery:a("elementor-views/controls/gallery"),select2:a("elementor-views/controls/select2"),structure:a("elementor-views/controls/structure")},this.editor.trigger("editor:controls:initialize")),this._controlsItemView[b]||a("elementor-views/controls/base")},getPanelView:function(){return this.getRegion("panel").currentView},initDialogsManager:function(){this.dialogsManager=new DialogsManager.Instance},onStart:function(){NProgress.start(),NProgress.inc(.2),this.config=ElementorConfig;var b=a("elementor-models/element");Backbone.Radio.DEBUG=!1,Backbone.Radio.tuneIn("ELEMENTOR"),this.initDialogsManager(),this.heartbeat.init(),this.modals.init(),elementorBindUI.setEditorMode(!0),this.elements=new b.Collection(this.config.data),this.$previewResponsiveWrapper=Backbone.$("#elementor-preview-responsive-wrapper");var c="elementor-preview-iframe";if(!Backbone.$("#"+c).length){var d=document.createElement("iframe");d.id=c,d.src=this.config.preview_link+"&"+(new Date).getTime(),this.$previewResponsiveWrapper.append(d)}this.$preview=Backbone.$("#"+c),this.$preview.on("load",_.bind(function(){this.$previewContents=this.$preview.contents(),elementorBindUI.setScopeWindow(this.$preview[0].contentWindow),this.triggerMethod("preview:loaded")},this)),this.listenTo(this.dataEditMode,"switch",this.onEditModeSwitched),this.setWorkSaver()},onPreviewLoaded:function(){var b=a("elementor-views/sections"),c=a("elementor-layouts/panel/panel"),d=new Marionette.Region({el:this.$previewContents.find("#elementor").get(0)});this.schemes.init().printSchemesStyle(),this.$previewContents.on("click",function(a){var b=Backbone.$(a.target),c=elementor.dataEditMode.request("get:active:mode"),d=!!b.closest("#elementor").length;d&&"preview"!==c||(b.closest("a").length&&a.preventDefault(),d||elementor.getPanelView().setPage("elements"))}),this.addRegions({sections:d,panel:"#elementor-panel",modal:"#elementor-modal-area"}),this.getRegion("sections").show(new b({collection:this.elements})),this.getRegion("panel").show(new c),this.$previewContents.children().addClass("elementor-html").children("body").addClass("elementor-editor-active"),Backbone.$("#elementor-loading").fadeOut(600),NProgress.done()},onEditModeSwitched:function(){var a=elementor.dataEditMode.request("get:active:mode");"preview"===a?this.enterPreviewMode():this.exitPreviewMode()},setFlagEditorChange:function(a){elementor.editor.reply("editor:changed",a),elementor.editor.trigger("editor:changed",a)},isEditorChanged:function(){return!0===elementor.editor.request("editor:changed")},setWorkSaver:function(){Backbone.$(window).on("beforeunload",function(){return elementor.isEditorChanged()?elementor.translate("before_unload_alert"):void 0})},enterPreviewMode:function(){this.$previewContents.find("body").add("body").removeClass("elementor-editor-active").addClass("elementor-editor-preview")},exitPreviewMode:function(){this.$previewContents.find("body").add("body").removeClass("elementor-editor-preview").addClass("elementor-editor-active")},saveBuilder:function(a){return a=_.extend({revision:"draft",onSuccess:null},a),NProgress.start(),Backbone.$.ajax({type:"POST",url:this.config.ajaxurl,data:{action:"elementor_save_builder",post_id:this.config.post_id,revision:a.revision,data:JSON.stringify(elementor.elements.toJSON())}}).done(function(b){NProgress.done(),elementor.setFlagEditorChange(!1),_.isFunction(a.onSuccess)&&a.onSuccess.call(this,b)})},translate:function(a,b){var c=this.config.i18n[a];return void 0===c&&(c=a),b&&(c=c.replace(/{(\d+)}/g,function(a,c){return void 0!==b[c]?b[c]:a})),c}}),b.exports=(window.elementor=new d).start()},{"elementor-layouts/panel/panel":30,"elementor-models/element":33,"elementor-utils/heartbeat":37,"elementor-utils/helpers":38,"elementor-utils/modals":39,"elementor-utils/presets-factory":40,"elementor-utils/schemes":41,"elementor-views/controls/base":46,"elementor-views/controls/choose":47,"elementor-views/controls/color":48,"elementor-views/controls/dimensions":49,"elementor-views/controls/font":50,"elementor-views/controls/gallery":51,"elementor-views/controls/icon":52,"elementor-views/controls/media":53,"elementor-views/controls/repeater":55,"elementor-views/controls/section":56,"elementor-views/controls/select2":57,"elementor-views/controls/slider":58,"elementor-views/controls/structure":59,"elementor-views/controls/url":60,"elementor-views/controls/wp_widget":61,"elementor-views/controls/wysiwyg":62,"elementor-views/sections":65}],2:[function(a,b,c){var d;d=Marionette.Behavior.extend({onChildviewClickNew:function(a){var b=a.$el.index()+1;this.addChild({at:b})},onRequestNew:function(){this.addChild()},addChild:function(a){if(!this.view.isCollectionFilled()){a=a||{};var b={id:elementor.helpers.getUniqueID(),elType:this.view.getChildType()[0],settings:{},elements:[]};this.view.addChildModel(b,a)}}}),b.exports=d},{}],3:[function(a,b,c){var d;d=Marionette.Behavior.extend({onRequestAdd:function(a,b){this._addChildElement(a,b)},_addChildElement:function(a,b){b=b||{};var c=this.view.getChildType();if(-1===c.indexOf(a.elType))return delete b.at,void this.view.children.last().triggerMethod("request:add",a,b);var d=this.view.addChildModel(a,b),e=this.view.children.findByModel(d);"section"===e.getElementType()&&e.isInner()&&e.addEmptyColumn(),e.triggerMethod("open:editor")}}),b.exports=d},{}],4:[function(a,b,c){var d;d=Marionette.Behavior.extend({onChildviewClickDuplicate:function(a){if(!this.view.isCollectionFilled()){var b=this.view.collection.indexOf(a.model),c=a.model.clone();this.view.addChildModel(c,{at:b})}}}),b.exports=d},{}],5:[function(a,b,c){var d;d=Marionette.Behavior.extend({initialize:function(){this.listenTo(elementor.dataEditMode,"switch",this.onEditModeSwitched)},onEditModeSwitched:function(){var a=elementor.dataEditMode.request("get:active:mode");this.view.$el.toggleClass("elementor-active-mode","preview"!==a)},onRender:function(){this.onEditModeSwitched()}}),b.exports=d},{}],6:[function(a,b,c){var d;d=Marionette.Behavior.extend({onClickEdit:function(){var a=elementor.dataEditMode.request("get:active:mode");"preview"!==a&&this.onOpenEditor()},onOpenEditor:function(){var a=elementor.getPanelView().getCurrentPageName();if("editor"===a){var b=elementor.getPanelView().getCurrentPageView(),c=b.model;if(c===this.view.model)return}var d=elementor.getElementData(this.view.model);elementor.getPanelView().setPage("editor",elementor.translate("edit_element",[d.title]),{model:this.view.model,editedElementView:this.view})}}),b.exports=d},{}],7:[function(a,b,c){var d;d=Marionette.Behavior.extend({defaults:{handles:elementor.config.is_rtl?"w":"e"},ui:{columnTitle:".column-title"},events:{resizestart:"onResizeStart",resizestop:"onResizeStop",resize:"onResize"},initialize:function(){Marionette.Behavior.prototype.initialize.apply(this,arguments),this.listenTo(elementor.dataEditMode,"switch",this.onEditModeSwitched)},active:function(){var a=_.clone(this.options);delete a.behaviorClass;var b=this.getChildViewContainer(),c={},d=_.extend(c,a);b.resizable(d)},deactivate:function(){this.getChildViewContainer().resizable("instance")&&this.getChildViewContainer().resizable("destroy")},onEditModeSwitched:function(){var a=elementor.dataEditMode.request("get:active:mode");"preview"!==a?this.active():this.deactivate()},onRender:function(){_.defer(_.bind(this.onEditModeSwitched,this))},onDestroy:function(){this.deactivate()},onResizeStart:function(a,b){},onResizeStop:function(a,b){},onResize:function(a,b){a.stopPropagation(),this.view.triggerMethod("request:resize",b)},getChildViewContainer:function(){return this.$el}}),b.exports=d},{}],8:[function(a,b,c){var d;d=Marionette.Behavior.extend({defaults:{elChildType:"widget"},events:{sortstart:"onSortStart",sortreceive:"onSortReceive",sortupdate:"onSortUpdate",sortstop:"onSortStop",sortover:"onSortOver",sortout:"onSortOut"},initialize:function(){this.listenTo(elementor.dataEditMode,"switch",this.onEditModeSwitched),this.listenTo(elementor.deviceMode,"change",this.onDeviceModeChange)},onEditModeSwitched:function(){var a=elementor.dataEditMode.request("get:active:mode");"preview"!==a?this.active():this.deactivate()},onDeviceModeChange:function(){var a=elementor.deviceMode.request("currentMode");"desktop"===a?this.active():this.deactivate()},onRender:function(){_.defer(_.bind(this.onEditModeSwitched,this))},onDestroy:function(){this.deactivate()},active:function(){if(!this.getChildViewContainer().sortable("instance")){var a=this.getChildViewContainer(),b={connectWith:a.selector,cursor:"move",placeholder:"elementor-sortable-placeholder",cursorAt:{top:20,left:25},helper:_.bind(this._getSortableHelper,this)},c=_.extend(b,this.view.getSortableOptions());a.sortable(c)}},_getSortableHelper:function(a,b){var c=this.view.collection.get({cid:b.data("model-cid")});return'<div style="height: 50px; width: 250px;" class="elementor-sortable-helper elementor-sortable-helper-'+c.get("elType")+'"><i class="fa fa-'+c.getIcon()+'"></i><div class="elementor-title">'+c.getTitle()+"</div></div>"},deactivate:function(){this.getChildViewContainer().sortable("instance")&&this.getChildViewContainer().sortable("destroy")},onSortStart:function(a,b){a.stopPropagation();var c=this.view.collection.get({cid:b.item.data("model-cid")});if("column"===this.options.elChildType){b.placeholder.addClass("elementor-column");var d=b.item.data("sortableItem"),e=d.items,f=0;e.forEach(function(a){return a.item[0]===b.item[0]?(f=a.height,!1):void 0}),b.placeholder.height(f)}elementor.data.trigger(c.get("elType")+":drag:start"),elementor.data.reply("cache:"+c.cid,c)},onSortOver:function(a,b){a.stopPropagation();var c=elementor.data.request("cache:"+b.item.data("model-cid"));Backbone.$(a.target).addClass("elementor-draggable-over").attr({"data-dragged-element":c.get("elType"),"data-dragged-is-inner":c.get("isInner")}),this.$el.addClass("elementor-dragging-on-child")},onSortOut:function(a){a.stopPropagation(),Backbone.$(a.target).removeClass("elementor-draggable-over").removeAttr("data-dragged-element data-dragged-is-inner"),this.$el.removeClass("elementor-dragging-on-child")},onSortReceive:function(a,b){if(a.stopPropagation(),this.view.isCollectionFilled())return void Backbone.$(b.sender).sortable("cancel");var c=elementor.data.request("cache:"+b.item.data("model-cid")),d=c.get("elType"),e="section"===d&&c.get("isInner"),f="column"===this.view.getElementType()&&this.view.isInner();if(e&&f)return void Backbone.$(b.sender).sortable("cancel");var g=b.item.parent().children().index(b.item),h=new this.view.collection.model(c.toJSON({copyHtmlCache:!0}));this.view.addChildModel(h,{at:g}),elementor.data.trigger(d+":drag:end"),c.destroy()},onSortUpdate:function(a,b){a.stopPropagation();var c=this.view.collection.get(b.item.attr("data-model-cid"));c&&elementor.data.trigger(c.get("elType")+":drag:end")},onSortStop:function(a,b){a.stopPropagation();var c=b.item,d=this.view.collection,e=d.get(c.attr("data-model-cid")),f=c.parent().children().index(c);if(this.getChildViewContainer()[0]===b.item.parent()[0]&&null===b.sender&&e){var g=d.indexOf(e);g!==f&&(d.remove(e,{silent:!0}),d.add(e,{silent:!0,at:f}),elementor.setFlagEditorChange(!0)),elementor.data.trigger(e.get("elType")+":drag:end")}},onAddChild:function(a){a.$el.attr("data-model-cid",a.model.cid)},getChildViewContainer:function(){return"function"==typeof this.view.getChildViewContainer?this.view.getChildViewContainer(this.view):this.$el}}),b.exports=d},{}],9:[function(a,b,c){var d;d=Marionette.ItemView.extend({template:"#tmpl-elementor-mode-switcher-content",id:"elementor-mode-switcher-inner",ui:{previewButton:"#elementor-mode-switcher-preview-input",previewLabel:"#elementor-mode-switcher-preview",previewLabelA11y:"#elementor-mode-switcher-preview .elementor-screen-only"},events:{"change @ui.previewButton":"onEditModeChange"},getCurrentMode:function(){return this.ui.previewButton.is(":checked")?"preview":"edit"},setMode:function(a){this.ui.previewButton.prop("checked","preview"===a)},onRender:function(){this.onEditModeChange()},onEditModeChange:function(){var a=elementor.dataEditMode.request("get:active:mode"),b=this.getCurrentMode();if(elementor.dataEditMode.reply("get:active:mode",b),b!==a){elementor.dataEditMode.trigger("switch");var c="preview"===b?"Back to Editor":"Preview";this.ui.previewLabel.attr("title",c),this.ui.previewLabelA11y.text(c)}}}),b.exports=d},{}],10:[function(a,b,c){var d;d=Marionette.ItemView.extend({template:"#tmpl-elementor-panel-footer-content",tagName:"nav",id:"elementor-panel-footer-tools",defaultDeviceMode:"desktop",currentDeviceMode:"",possibleRotateModes:["portrait","landscape"],ui:{menuButtons:".elementor-panel-footer-tool",deviceModeButtons:"#elementor-panel-footer-responsive .elementor-panel-footer-sub-menu-item",buttonSave:"#elementor-panel-footer-save",buttonSaveButton:"#elementor-panel-footer-save .elementor-button",buttonPublish:"#elementor-panel-footer-publish"},events:{"click @ui.deviceModeButtons":"onClickResponsiveButtons","click @ui.buttonSave":"onClickButtonSave","click @ui.buttonPublish":"onClickButtonPublish"},initialize:function(){this._initDialog(),Backbone.$(document).on("click",_.bind(this.onDocumentClick,this)),this.listenTo(elementor.editor,"editor:changed",this.onEditorChanged)},_initDialog:function(){var a;this.getDialog=function(){if(!a){var b=Backbone.$,c=b("<div>",{"class":"elementor-dialog-message"}),d=b("<i>",{"class":"fa fa-check-circle"}),e=b("<div>",{"class":"elementor-dialog-message-text"}).text(elementor.translate("saved"));c.append(d,e),a=elementor.dialogsManager.createWidget("popup",{hide:{delay:1500}}),a.setMessage(c)}return a}},_publishBuilder:function(){var a=this,b={revision:"publish",onSuccess:function(){a.getDialog().show(),a.ui.buttonSaveButton.removeClass("elementor-button-state")}};a.ui.buttonSaveButton.addClass("elementor-button-state"),elementor.saveBuilder(b)},_saveBuilderDraft:function(){elementor.saveBuilder()},onRender:function(){this.changeDeviceMode(this.defaultDeviceMode)},changeDeviceMode:function(a){this.currentDeviceMode!==a&&(this.getCurrentDeviceModeButton().removeClass("active"),elementor.$previewResponsiveWrapper.removeClass("elementor-device-"+this.currentDeviceMode).addClass("elementor-device-"+a),this.currentDeviceMode=a,this.getCurrentDeviceModeButton().addClass("active"),elementor.deviceMode.reply("currentMode",this.currentDeviceMode),elementor.deviceMode.trigger("change"))},getCurrentDeviceModeButton:function(){return this.ui.deviceModeButtons.filter('[data-device-mode="'+this.currentDeviceMode+'"]')},onDocumentClick:function(a){var b=Backbone.$(a.target),c=b.closest(".elementor-panel-footer-sub-menu-wrapper").length;if(!c){var d=b.closest(".elementor-panel-footer-tool"),e=d.length&&!d.hasClass("elementor-open");this.ui.menuButtons.removeClass("elementor-open"),e&&d.addClass("elementor-open")}},onEditorChanged:function(){this.ui.buttonSave.toggleClass("elementor-save-active",elementor.isEditorChanged())},onClickButtonSave:function(){this._publishBuilder()},onClickButtonPublish:function(a){a.stopPropagation(),this._publishBuilder()},onClickResponsiveButtons:function(a){var b=this.$(a.currentTarget),c=b.data("device-mode");this.changeDeviceMode(c)}}),b.exports=d},{}],11:[function(a,b,c){var d;d=Marionette.ItemView.extend({template:"#tmpl-elementor-panel-header",id:"elementor-panel-header",ui:{menuButton:"#elementor-panel-header-menu-button",title:"#elementor-panel-header-title",addButton:"#elementor-panel-header-add-button"},events:{"click @ui.addButton":"onClickAdd","click @ui.menuButton":"onClickMenu"},setTitle:function(a){this.ui.title.html(a)},onClickAdd:function(){elementor.getPanelView().setPage("elements")},onClickMenu:function(){var a=elementor.getPanelView(),b=a.getCurrentPageName(),c="menu"===b?"elements":"menu";a.setPage(c)}}),b.exports=d},{}],12:[function(a,b,c){var d;d=Marionette.CompositeView.extend({template:Marionette.TemplateCache.get("#tmpl-editor-content"),id:"elementor-panel-page-editor",templateHelpers:function(){return{elementData:elementor.getElementData(this.model)}},childViewContainer:"div.elementor-controls",modelEvents:{destroy:"onModelDestroy"},ui:{tabs:".elementor-tabs-controls li"},events:{"click @ui.tabs a":"onClickTabControl"},getChildView:function(a){var b=a.get("type");return elementor.getControlItemView(b)},childViewOptions:function(){return{elementSettingsModel:this.model.get("settings"),elementEditSettings:this.model.get("editSettings")}},onDestroy:function(){this.getOption("editedElementView").$el.removeClass("elementor-element-editable"),this.model.trigger("editor:close"),this.triggerMethod("editor:destroy")},onBeforeRender:function(){var a=elementor.getElementControls(this.model);if(!a)throw new Error("No found editor controls");this.collection=new Backbone.Collection(a)},onRender:function(){this.getOption("editedElementView").$el.addClass("elementor-element-editable"),this.ui.tabs.eq(0).find("a").trigger("click"),this.$(".tooltip-target").tipsy({gravity:function(){var a=Backbone.$(this).data("tooltip-pos");return void 0!==a?a:"n"},title:function(){return this.getAttribute("data-tooltip")}})},onModelDestroy:function(){this.destroy()},onClickTabControl:function(a){a.preventDefault();var b=this.$(a.target);this.ui.tabs.removeClass("active"),b.closest("li").addClass("active"),this.model.get("settings").trigger("control:switch:tab",b.data("tab")),this.openFirstSectionInCurrentTab(b.data("tab"))},openFirstSectionInCurrentTab:function(a){var b="elementor-open",c=this.children.filter(function(a){return!_.isEmpty(a.model.get("section"))}),d=this.children.filter(function(b){return"section"===b.model.get("type")&&a===b.model.get("tab")});_.isEmpty(d)||(d=d[0],d.ui.heading.addClass(b),_.each(c,function(a){return a.model.get("section")!==d.model.get("name")?void a.$el.removeClass(b):void a.$el.addClass(b)}))},onChildviewControlSectionClicked:function(a){var b="elementor-open",c=a.model.get("name"),d=a.ui.heading.hasClass(b),e=this.children.filter(function(a){return!_.isEmpty(a.model.get("section"))});this.$(".elementor-control.elementor-control-type-section .elementor-panel-heading").removeClass(b),d?c="":a.ui.heading.addClass(b),_.each(e,function(a){return a.model.get("section")!==c?void a.$el.removeClass(b):void a.$el.addClass(b)}),elementor.data.trigger("scrollbar:update")}}),b.exports=d},{}],13:[function(a,b,c){var d,e=a("../models/element");d=Backbone.Collection.extend({model:e}),b.exports=d},{"../models/element":16}],14:[function(a,b,c){var d,e=a("../models/element");d=Backbone.Collection.extend({model:e}),b.exports=d},{"../models/element":16}],15:[function(a,b,c){var d,e=a("./collections/categories"),f=a("./collections/elements"),g=a("./views/categories"),h=a("./views/elements"),i=a("./views/search");d=Marionette.LayoutView.extend({template:"#tmpl-elementor-panel-elements",regions:{elements:"#elementor-panel-elements-wrapper",search:"#elementor-panel-elements-search-area"},elementsCollection:null,categoriesCollection:null,initialize:function(){this.listenTo(elementor.panelElements,"element:selected",this.destroy)},initElementsCollection:function(){var a=new f,b=elementor.config.elements.section;a.add({title:elementor.translate("inner_section"),elType:"section",categories:b.categories,keywords:b.keywords,icon:b.icon}),_.each(elementor.config.widgets,function(b,c){a.add({title:b.title,elType:"widget",categories:b.categories,keywords:b.keywords,icon:b.icon,widgetType:c})}),this.elementsCollection=a},initCategoriesCollection:function(){var a={};this.elementsCollection.each(function(b){_.each(b.get("categories"),function(c){a[c]||(a[c]=[]),a[c].push(b)})});var b=new e;_.each(elementor.config.elements_categories,function(c,d){a[d]&&b.add({name:d,title:c.title,icon:c.icon,items:a[d]})}),this.categoriesCollection=b},showCategoriesView:function(){this.getRegion("elements").show(new g({collection:this.categoriesCollection}))},showElementsView:function(){this.getRegion("elements").show(new h({collection:this.elementsCollection}))},clearSearchInput:function(){this.getChildView("search").clearInput()},changeFilter:function(a){elementor.panelElements.reply("filter:value",a).trigger("change")},clearFilters:function(){this.changeFilter(null),this.clearSearchInput()},onChildviewDragStart:function(a){elementor.panelElements.reply("element:selected",a)},onChildviewChildrenRender:function(){this.updateElementsScrollbar()},onChildviewSearchChangeInput:function(a){var b=a.ui.input.val();if(_.isEmpty(b))this.showCategoriesView();else{var c=elementor.panelElements.request("filter:value");_.isEmpty(c)&&this.showElementsView()}this.changeFilter(b,"search")},onDestroy:function(){elementor.panelElements.reply("filter:value",null)},onShow:function(){var a=this.getRegion("search");this.initElementsCollection(),this.initCategoriesCollection(),this.showCategoriesView(),a.show(new i)},updateElementsScrollbar:function(){elementor.data.trigger("scrollbar:update")}}),b.exports=d},{"./collections/categories":13,"./collections/elements":14,"./views/categories":17,"./views/elements":20,"./views/search":21}],16:[function(a,b,c){var d;d=Backbone.Model.extend({defaults:{title:"",categories:[],keywords:[],icon:"",elType:"widget",widgetType:""}}),b.exports=d},{}],17:[function(a,b,c){var d,e=a("./category");d=Marionette.CollectionView.extend({childView:e,id:"elementor-panel-elements-categories"}),b.exports=d},{"./category":18}],18:[function(a,b,c){var d,e=a("./element"),f=a("../collections/elements");d=Marionette.CompositeView.extend({template:"#tmpl-elementor-panel-elements-category",className:"elementor-panel-category",childView:e,childViewContainer:".panel-elements-category-items",initialize:function(){this.collection=new f(this.model.get("items"))}}),b.exports=d},{"../collections/elements":14,"./element":19}],19:[function(a,b,c){var d;d=Marionette.ItemView.extend({template:"#tmpl-elementor-element-library-element",className:"elementor-element-wrapper",triggers:{dragend:"drag:end"},onRender:function(){this.$el.html5Draggable({onDragStart:_.bind(function(){this.triggerMethod("drag:start")},this),groups:["elementor-element"]})}}),b.exports=d},{}],20:[function(a,b,c){var d,e=a("./element");d=Marionette.CollectionView.extend({childView:e,id:"elementor-panel-elements",initialize:function(){this.listenTo(elementor.panelElements,"change",this.onFilterChanged)},filter:function(a){var b=elementor.panelElements.request("filter:value");return b?_.any(["title","keywords"],function(c){return-1!==a.get(c).toLowerCase().indexOf(b.toLowerCase())}):!0},onFilterChanged:function(){this._renderChildren(),this.triggerMethod("children:render")}}),b.exports=d},{"./element":19}],21:[function(a,b,c){var d;d=Marionette.ItemView.extend({template:"#tmpl-elementor-panel-element-search",id:"elementor-panel-elements-search-wrapper",ui:{input:"input"},events:{"keyup @ui.input":"onInputChanged"},onInputChanged:function(a){var b=27;b===a.keyCode&&this.clearInput(),this.triggerMethod("search:change:input")},clearInput:function(){this.ui.input.val("")}}),b.exports=d},{}],22:[function(a,b,c){var d,e=a("elementor-panel/pages/menu/views/item");d=Marionette.CollectionView.extend({id:"elementor-panel-page-menu",childView:e,initialize:function(){this.collection=new Backbone.Collection([{icon:"paint-brush",title:elementor.translate("colors"),type:"page",pageName:"colorsScheme"},{icon:"font",title:elementor.translate("fonts"),type:"page",pageName:"typographyScheme"},{icon:"file-text",title:elementor.translate("page_settings")+" <span>("+elementor.translate("soon")+")</span>"},{icon:"cog",title:elementor.translate("elementor_settings"),type:"link",link:elementor.config.settings_page_link},{icon:"history",title:elementor.translate("revisions_history")+" <span>("+elementor.translate("soon")+")</span>"},{icon:"info-circle",title:elementor.translate("about_elementor"),type:"link",link:elementor.config.elementor_site,newTab:!0}])},onChildviewClick:function(a){var b=a.model.get("type");switch(b){case"page":var c=a.model.get("pageName"),d=a.model.get("title");elementor.getPanelView().setPage(c,d);break;case"link":var e=a.model.get("link"),f=a.model.get("newTab");f?open(e,"_blank"):location.href=a.model.get("link")}}}),b.exports=d},{"elementor-panel/pages/menu/views/item":23}],23:[function(a,b,c){var d;d=Marionette.ItemView.extend({template:"#tmpl-elementor-panel-menu-item",className:"elementor-panel-menu-item",triggers:{click:"click"}}),b.exports=d},{}],24:[function(a,b,c){var d;d=Marionette.CompositeView.extend({id:function(){return"elementor-panel-scheme-"+this.getType()},className:"elementor-panel-scheme",ui:function(){return{saveButton:".elementor-panel-scheme-save .elementor-button",discardButton:".elementor-panel-scheme-discard .elementor-button",resetButton:".elementor-panel-scheme-reset .elementor-button"}},events:function(){return{"click @ui.saveButton":"saveScheme","click @ui.discardButton":"discardScheme","click @ui.resetButton":"setDefaultScheme"}},childViewContainer:".elementor-panel-scheme-items",templateHelpers:function(){return{getTitle:_.bind(this.getTitle,this)}},initialize:function(){this.model=new Backbone.Model,this.resetScheme()},getType:function(){},getTitle:function(){return this.getScheme().title},getScheme:function(){return elementor.schemes.getScheme(this.getType())},changeChildrenUIValues:function(a){var b=this;_.each(a,function(a,c){var d=b.collection.findWhere({key:c}),e=b.children.findByModelCid(d.cid);e.changeUIValue(a)})},discardScheme:function(){elementor.schemes.resetSchemes(this.getType()),this.ui.saveButton.prop("disabled",!0),this._renderChildren()},setSchemeValue:function(a,b){elementor.schemes.setSchemeValue(this.getType(),a,b)},saveScheme:function(){elementor.schemes.saveScheme(this.getType()),this.ui.saveButton.prop("disabled",!0),this.resetScheme(),this._renderChildren()},setDefaultScheme:function(){var a=elementor.config.default_schemes[this.getType()].items;this.changeChildrenUIValues(a)},resetItems:function(){this.model.set("items",this.getScheme().items)},resetCollection:function(){var a=this.model.get("items");this.collection=new Backbone.Collection,_.each(a,_.bind(function(a,b){a.type=this.getType(),a.key=b,this.collection.add(a)},this))},resetScheme:function(){this.resetItems(),this.resetCollection()},onChildviewValueChange:function(a,b){this.ui.saveButton.removeProp("disabled"),this.setSchemeValue(a.model.get("key"),b)}}),b.exports=d},{}],25:[function(a,b,c){var d,e=a("elementor-panel/pages/schemes/base");d=e.extend({template:"#tmpl-elementor-panel-schemes-colors",ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.systemSchemes=".elementor-panel-scheme-color-system-scheme",a},events:function(){var a=e.prototype.events.apply(this,arguments);return a["click @ui.systemSchemes"]="onSystemSchemeClick",a},getChildView:function(){return a("elementor-panel/pages/schemes/items/color")},getType:function(){return"color"},onSystemSchemeClick:function(a){var b=Backbone.$(a.currentTarget),c=b.data("schemeName"),d=elementor.config.system_schemes.color[c].items;this.changeChildrenUIValues(d)}}),b.exports=d},{"elementor-panel/pages/schemes/base":24,"elementor-panel/pages/schemes/items/color":27}],26:[function(a,b,c){var d;d=Marionette.ItemView.extend({getTemplate:function(){return Marionette.TemplateCache.get("#tmpl-elementor-panel-scheme-"+this.model.get("type")+"-item")},className:function(){return"elementor-panel-scheme-item"}}),b.exports=d},{}],27:[function(a,b,c){var d,e=a("elementor-panel/pages/schemes/items/base");d=e.extend({ui:{input:".elementor-panel-scheme-color-value"},changeUIValue:function(a){this.ui.input.wpColorPicker("color",a)},onBeforeDestroy:function(){this.ui.input.wpColorPicker("instance")&&this.ui.input.wpColorPicker("close")},onRender:function(){this.ui.input.wpColorPicker({change:_.bind(function(a,b){this.triggerMethod("value:change",b.color.toString())},this)})}}),b.exports=d},{"elementor-panel/pages/schemes/items/base":26}],28:[function(a,b,c){var d,e=a("elementor-panel/pages/schemes/items/base");d=e.extend({className:function(){var a=e.prototype.className.apply(this,arguments);return a+" elementor-panel-box"},ui:{heading:".elementor-panel-heading",allFields:".elementor-panel-scheme-typography-item-field",inputFields:"input.elementor-panel-scheme-typography-item-field",selectFields:"select.elementor-panel-scheme-typography-item-field",selectFamilyFields:'select.elementor-panel-scheme-typography-item-field[name="font_family"]'},events:{"input @ui.inputFields":"onFieldChange","change @ui.selectFields":"onFieldChange","click @ui.heading":"toggleVisibility"},onRender:function(){var a=this;this.ui.inputFields.add(this.ui.selectFields).each(function(){var b=Backbone.$(this),c=b.attr("name"),d=a.model.get("value")[c];b.val(d)}),this.ui.selectFamilyFields.select2({dir:elementor.config.is_rtl?"rtl":"ltr"})},toggleVisibility:function(){this.ui.heading.toggleClass("elementor-open")},changeUIValue:function(a){this.ui.allFields.each(function(){var b=Backbone.$(this),c=b.attr("name"),d=a[c];b.val(d).trigger("change")})},onFieldChange:function(a){var b=this.$(a.currentTarget),c=elementor.helpers.cloneObject(this.model.get("value")),d=b.attr("name");c[d]=b.val(),"font_family"!==d||_.isEmpty(c[d])||elementor.helpers.enqueueFont(c[d]),this.triggerMethod("value:change",c)}}),b.exports=d},{"elementor-panel/pages/schemes/items/base":26}],29:[function(a,b,c){var d,e=a("elementor-panel/pages/schemes/base");d=e.extend({template:"#tmpl-elementor-panel-schemes-typography",getChildView:function(){return a("elementor-panel/pages/schemes/items/typography")},getType:function(){return"typography"}}),b.exports=d},{"elementor-panel/pages/schemes/base":24,"elementor-panel/pages/schemes/items/typography":28}],30:[function(a,b,c){var d,e=a("elementor-layouts/edit-mode");
3
  d=Marionette.LayoutView.extend({template:"#tmpl-elementor-panel",className:"elementor-panel-inner",regions:{content:"#elementor-panel-content-wrapper",header:"#elementor-panel-header-wrapper",footer:"#elementor-panel-footer",modeSwitcher:"#elementor-mode-switcher"},pages:{elements:{view:a("elementor-panel/pages/elements/elements"),title:elementor.translate("elementor")},editor:{view:a("elementor-panel/pages/editor")},menu:{view:a("elementor-panel/pages/menu/menu"),title:elementor.translate("elementor")},colorsScheme:{view:a("elementor-panel/pages/schemes/colors")},typographyScheme:{view:a("elementor-panel/pages/schemes/typography")}},childEvents:{"click:add":function(){this.setPage("elements")},"editor:destroy":function(){this.setPage("elements")}},currentPageName:null,_isScrollbarInitialized:!1,getHeaderView:function(){return this.getChildView("header")},getCurrentPageName:function(){return this.currentPageName},getCurrentPageView:function(){return this.getChildView("content")},setPage:function(a,b,c){var d=this.pages[a];if(!d)throw new ReferenceError("Elementor panel doesn't have page named '"+a+"'");this.showChildView("content",new d.view(c)),this.getHeaderView().setTitle(b||d.title),this.currentPageName=a},onBeforeShow:function(){elementor.filterState.reply("get",{type:"parent",term:""});var b=a("elementor-layouts/panel/footer"),c=a("elementor-layouts/panel/header");this.showChildView("modeSwitcher",new e),this.showChildView("header",new c),this.showChildView("footer",new b),this.updateScrollbar=_.throttle(this.updateScrollbar,100),this.getRegion("content").on("before:show",_.bind(this.onEditorBeforeShow,this)).on("empty",_.bind(this.onEditorEmpty,this)).on("show",_.bind(this.updateScrollbar,this)),this.setPage("elements"),this.listenTo(elementor.data,"scrollbar:update",this.updateScrollbar)},onEditorBeforeShow:function(a,b,c){_.defer(this.updateScrollbar)},onEditorEmpty:function(a){this.updateScrollbar()},updateScrollbar:function(){var a=Backbone.$("#elementor-panel-content-wrapper");return this._isScrollbarInitialized?void a.perfectScrollbar("update"):(a.perfectScrollbar(),void(this._isScrollbarInitialized=!0))}}),b.exports=d},{"elementor-layouts/edit-mode":9,"elementor-layouts/panel/footer":10,"elementor-layouts/panel/header":11,"elementor-panel/pages/editor":12,"elementor-panel/pages/elements/elements":15,"elementor-panel/pages/menu/menu":22,"elementor-panel/pages/schemes/colors":25,"elementor-panel/pages/schemes/typography":29}],31:[function(a,b,c){var d;d=Backbone.Model.extend({initialize:function(a){if(this.controls=elementor.getElementControls(this),this.controls){var b=a||{},c={};_.each(this.controls,function(a){var b=elementor.config.controls[a.type];_.isObject(b.default_value)?c[a.name]=_.extend({},b.default_value,a["default"]||{}):c[a.name]=a["default"]||b.default_value}),this.defaults=c,b=_.defaults({},b,c),_.each(this.controls,function(a){"repeater"===a.type&&(b[a.name]=new Backbone.Collection(b[a.name],{model:d}))}),this.set(b)}},getFontControls:function(){return _.filter(this.controls,_.bind(function(a){return"font"===a.type},this))},getStyleControls:function(){return _.filter(this.controls,_.bind(function(a){return this.isStyleControl(a.name)},this))},isStyleControl:function(a){var b=_.find(this.controls,function(b){return a===b.name});return _.isUndefined(b)?!1:!_.isEmpty(b.selectors)},getClassControls:function(){return _.filter(this.controls,_.bind(function(a){return this.isClassControl(a.name)},this))},isClassControl:function(a){var b=_.find(this.controls,function(b){return a===b.name});return b&&!_.isUndefined(b.prefix_class)},getControl:function(a){return _.find(this.controls,function(b){return a===b.name})},clone:function(){return new d(elementor.helpers.cloneObject(this.attributes))},toJSON:function(){var a=Backbone.Model.prototype.toJSON.call(this);return delete a.widgetType,delete a.elType,_.each(a,function(b,c){b&&b.toJSON&&(a[c]=b.toJSON())}),a}}),b.exports=d},{}],32:[function(a,b,c){var d,e=a("elementor-models/base-settings");d=e.extend({defaults:{_inline_size:"",_column_size:100}}),b.exports=d},{"elementor-models/base-settings":31}],33:[function(a,b,c){var d,e,f=a("elementor-models/base-settings"),g=a("elementor-models/widget-settings"),h=a("elementor-models/column-settings"),i=a("elementor-models/row-settings"),j=a("elementor-models/section-settings");d=Backbone.Model.extend({defaults:{id:"",elType:"",isInner:!1,settings:{},defaultEditSettings:{}},remoteRender:!1,_htmlCache:null,_jqueryXhr:null,initialize:function(a){var b,c=this.get("elements"),d=this.get("elType"),k={widget:g,column:h,row:i,section:j},l=k[d]||f;b=this.get("settings"),"widget"===d&&(b.widgetType=this.get("widgetType")),b.elType=d,b=new l(b),this.set("settings",b),this.initEditSettings(),void 0!==c&&this.set("elements",new e(c)),"widget"===this.get("elType")&&(this.remoteRender=!0,this.setHtmlCache(a.htmlCache||"")),delete a.htmlCache,this.renderRemoteServer=_.throttle(this.renderRemoteServer,1e3),this.on("destroy",this.onDestroy),this.on("editor:close",this.onCloseEditor)},initEditSettings:function(){this.set("editSettings",new Backbone.Model(this.get("defaultEditSettings")))},onDestroy:function(){var a=this.get("settings"),b=this.get("elements");void 0!==b&&_.each(_.clone(b.models),function(a){a.destroy()}),a.destroy()},onCloseEditor:function(){this.initEditSettings(),this.renderRemoteServer()},setSetting:function(a,b,c){c=c||!1;var d=this.get("settings");d.set(a,b),this.set("settings",d),c&&(this.trigger("change",this),this.trigger("change:settings",this),this.trigger("change:settings:"+a,this))},getSetting:function(a){var b=this.get("settings");return void 0===b.get(a)?"":b.get(a)},setHtmlCache:function(a){this._htmlCache=a},getHtmlCache:function(){return this._htmlCache},getTitle:function(){var a=elementor.getElementData(this);return a?a.title:"Unknown"},getIcon:function(){var a=elementor.getElementData(this);return a?a.icon:"unknown"},renderRemoteServer:function(){if(this.remoteRender){this.trigger("before:remote:render"),this._jqueryXhr&&4!==this._jqueryXhr&&this._jqueryXhr.abort();var a=this.toJSON();this._jqueryXhr=Backbone.$.ajax({type:"POST",url:elementor.config.ajaxurl,data:{action:"elementor_render_widget",post_id:elementor.config.post_id,data:JSON.stringify(a)},dataType:"json"}).done(_.bind(this.onRemoteGetHtml,this))}},onRemoteGetHtml:function(a){this.setHtmlCache(a.data.render),this.trigger("remote:render")},clone:function(){var a=Backbone.Model.prototype.clone.apply(this,arguments);a.set("id",elementor.helpers.getUniqueID()),a.setHtmlCache(this.getHtmlCache());var b=this.get("elements"),c=this.get("settings");return _.isEmpty(b)||a.set("elements",b.clone()),a.set("settings",c.clone()),a},toJSON:function(a){a=_.extend({copyHtmlCache:!1},a);var b=Backbone.Model.prototype.toJSON.call(this);return _.each(b,function(c,d){c&&c.toJSON&&(b[d]=c.toJSON(a))}),a.copyHtmlCache?b.htmlCache=this.getHtmlCache():delete b.htmlCache,b}}),e=Backbone.Collection.extend({add:function(a,b,c){if(!(b&&b.silent||c))throw"Call Error: Adding model to element collection is allowed only by the dedicated addChildModel() method.";return Backbone.Collection.prototype.add.call(this,a,b)},model:function(a,b){return a.elType?new d(a,b):new Backbone.Model(a,b)},clone:function(){var a=Backbone.Collection.prototype.clone.apply(this,arguments),b=new e;return a.forEach(function(a){b.add(a.clone(),null,!0)}),b}}),e.prototype.sync=function(){return null},e.prototype.fetch=function(){return null},e.prototype.save=function(){return null},d.prototype.sync=function(){return null},d.prototype.fetch=function(){return null},d.prototype.save=function(){return null},b.exports={Model:d,Collection:e}},{"elementor-models/base-settings":31,"elementor-models/column-settings":32,"elementor-models/row-settings":34,"elementor-models/section-settings":35,"elementor-models/widget-settings":36}],34:[function(a,b,c){var d,e=a("elementor-models/base-settings");d=e.extend({defaults:{}}),b.exports=d},{"elementor-models/base-settings":31}],35:[function(a,b,c){var d,e=a("elementor-models/base-settings");d=e.extend({defaults:{}}),b.exports=d},{"elementor-models/base-settings":31}],36:[function(a,b,c){var d,e=a("elementor-models/base-settings");d=e.extend({}),b.exports=d},{"elementor-models/base-settings":31}],37:[function(a,b,c){var d;d={init:function(){var a;this.getModal=function(){return a||(a=this.initModal()),a},Backbone.$(document).on({"heartbeat-send":function(a,b){b.elementor_post_lock={post_ID:elementor.config.post_id}},"heartbeat-tick":function(a,b){b.locked_user?d.showLockMessage(b.locked_user):d.getModal().hide()}}),elementor.config.locked_user&&d.showLockMessage(elementor.config.locked_user)},initModal:function(){var a=elementor.dialogsManager.createWidget("options",{headerMessage:elementor.translate("take_over")});return a.addButton({name:"go_back",text:elementor.translate("go_back"),callback:function(){parent.history.go(-1)}}),a.addButton({name:"take_over",text:elementor.translate("take_over"),callback:function(){wp.heartbeat.enqueue("elementor_force_post_lock",!0),wp.heartbeat.connectNow()}}),a},showLockMessage:function(a){var b=d.getModal();b.setMessage(elementor.translate("dialog_user_taken_over",[a])).show()}},b.exports=d},{}],38:[function(a,b,c){var d;d={_enqueuedFonts:[],elementsHierarchy:{section:{column:{widget:null,section:null}}},enqueueFont:function(a){if(-1===this._enqueuedFonts.indexOf(a)){var b,c=elementor.config.controls.font.fonts[a];switch(c){case"googlefonts":b="https://fonts.googleapis.com/css?family="+a+":100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic";break;case"earlyaccess":var d=a.replace(/\s+/g,"").toLowerCase();b="https://fonts.googleapis.com/earlyaccess/"+d+".css"}_.isEmpty(b)||elementor.$previewContents.find("link:last").after('<link href="'+b+'" rel="stylesheet" type="text/css">'),this._enqueuedFonts.push(a)}},getElementChildType:function(a,b){if(b||(b=this.elementsHierarchy),void 0!==b[a])return Backbone.$.isPlainObject(b[a])?Object.keys(b[a]):null;for(var c in b)if(b.hasOwnProperty(c)&&Backbone.$.isPlainObject(b[c])){var d=this.getElementChildType(a,b[c]);if(d)return d}return null},getUniqueID:function(){var a;return a=Math.random().toString(36).substr(2,7)},stringReplaceAll:function(a,b){var c=new RegExp(Object.keys(b).join("|"),"gi");return a.replace(c,function(a){return b[a]})},isControlVisible:function(a,b){var c;if(c=_.isFunction(a.get)?a.get("condition"):a.condition,_.isEmpty(c))return!0;var d=_.filter(c,function(a,c){var d=c.match(/([a-z_0-9]+)(?:\[([a-z_]+)])?(!?)$/i),e=d[1],f=d[2],g=!!d[3],h=b.get(e);f&&(h=h[f]);var i=_.isArray(a)?_.contains(a,h):a===h;return g?i:!i});return _.isEmpty(d)},cloneObject:function(a){return JSON.parse(JSON.stringify(a))},getYoutubeIDFromURL:function(a){var b=a.match(/^.*(?:youtu.be\/|v\/|e\/|u\/\w+\/|embed\/|v=)([^#\&\?]*).*/);return b&&b[1]}},b.exports=d},{}],39:[function(a,b,c){var d;d={init:function(){this.initModalWidgetType()},initModalWidgetType:function(){var a={getDefaultSettings:function(){var a=DialogsManager.getWidgetType("options").prototype.getDefaultSettings.apply(this,arguments);return _.extend(a,{position:{my:"center",at:"center"},contentWidth:"auto",contentHeight:"auto"})},buildWidget:function(){DialogsManager.getWidgetType("options").prototype.buildWidget.apply(this,arguments);var a=this.addComponent("closeButton",'<div><i class="fa fa-times"></i></div>');this.getComponents("widgetContent").prepend(a)},attachEvents:function(){this.getComponents("closeButton").on("click",this.hide)},onReady:function(){DialogsManager.getWidgetType("options").prototype.onReady.apply(this,arguments);var a=this.getComponents(),b=this.getSettings();"auto"!==b.contentWidth&&a.$message.width(b.contentWidth),"auto"!==b.contentHeight&&a.$message.height(b.contentHeight)}};DialogsManager.addWidgetType("elementor-modal",DialogsManager.getWidgetType("options").extend("elementor-modal",a))},createModal:function(a){return elementor.dialogsManager.createWidget("elementor-modal",a)}},b.exports=d},{}],40:[function(a,b,c){var d;d={getPresetsDictionary:function(){return{11:100/9,12:12.5,14:100/7,16:100/6,33:100/3,66:2/3*100,83:5/6*100}},getAbsolutePresetValues:function(a){var b=elementor.helpers.cloneObject(a),c=this.getPresetsDictionary();return _.each(b,function(a,d){c[a]&&(b[d]=c[a])}),b},getPresets:function(a,b){var c=elementor.helpers.cloneObject(elementor.config.elements.section.presets);return a&&(c=c[a]),b&&(c=c[b]),c},getPresetByStructure:function(a){var b=this.getParsedStructure(a);return this.getPresets(b.columnsCount,b.presetIndex)},getParsedStructure:function(a){return a+="",{columnsCount:a.slice(0,-1),presetIndex:a.substr(-1)}},getPresetSVG:function(a,b,c,d){b=b||100,c=c||50,d=d||2;var e=this.getAbsolutePresetValues(a),f=this._generatePresetSVGPath(e,b,c,d);return this._createSVGPreset(f,b,c)},_createSVGPreset:function(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),d.setAttribute("viewBox","0 0 "+b+" "+c);var e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",a),d.appendChild(e),d},_generatePresetSVGPath:function(a,b,c,d){for(var e=b-d*(a.length-1),f=0,g="",h=0;h<a.length;h++){h&&(g+=" ");var i=a[h]/100*e;f+=i,g+="M"+ +f.toFixed(4)+",0",g+="V"+c,g+="H"+ +(f-i).toFixed(4),g+="V0Z",f+=d}return g}},b.exports=d},{}],41:[function(a,b,c){var d;d=function(){var a=this,b={},c={},d={selectorWrapperPrefix:".elementor-widget-"},e={},f=function(){e.$previewHead.append(e.$style)},g=function(){e.$style=Backbone.$("<style>",{id:"elementor-style-scheme"}),e.$previewHead=elementor.$previewContents.find("head")},h=function(a,c){b[a]||(b[a]=[]),b[a].push(c)},i=function(b,c){_.each(b.selectors,function(e,f){var g,i,j=a.getSchemeValue(b.scheme.type,b.scheme.value,b.scheme.key);_.isEmpty(j)||(g=f.replace(/\{\{WRAPPER\}\}/g,d.selectorWrapperPrefix+c),i=elementor.getControlItemView().replaceStyleValues(e,j.value),h(g,i))})},j=function(b,c){var d=a.getWidgetSchemeControls(b);_.each(d,function(a){i(a,c)})},k=function(){_.each(elementor.config.widgets,function(a,b){j(a,b)})},l=function(){var a="";return _.each(b,function(b,c){a+=c+"{"+b.join("")+"}"}),a},m=function(){b={}};this.init=function(){return g(),f(),a.resetSchemes(),a},this.getWidgetSchemeControls=function(a){return _.filter(a.controls,function(a){return _.isObject(a.scheme)})},this.getSchemes=function(){return c},this.getScheme=function(a){return c[a]},this.getSchemeValue=function(b,c,d){var e=a.getScheme(b),f=e.items[c];if(d&&_.isObject(f)){var g=elementor.helpers.cloneObject(f);return g.value=f.value[d],g}return f},this.printSchemesStyle=function(){m(),k(),e.$style.text(l())},this.resetSchemes=function(a){a?c[a]=elementor.helpers.cloneObject(elementor.config.schemes[a]):c=elementor.helpers.cloneObject(elementor.config.schemes),this.onSchemeChange()},this.saveScheme=function(a){elementor.config.schemes[a].items=elementor.helpers.cloneObject(c[a].items),NProgress.start(),Backbone.$.ajax({type:"POST",url:elementor.config.ajaxurl,data:{action:"elementor_apply_scheme",scheme_name:a,data:JSON.stringify(c[a].items)}}).done(function(a){NProgress.done()})},this.setSchemeValue=function(a,b,d){c[a].items[b].value=d,this.onSchemeChange()},this.onSchemeChange=function(){this.printSchemesStyle()}},b.exports=new d},{}],42:[function(a,b,c){var d;d=Marionette.CompositeView.extend({tagName:"div",id:function(){return this.getElementUniqueClass()},attributes:function(){var a=this.model.get("elType");return"widget"===a&&(a=this.model.get("widgetType")),{"data-element_type":a}},modelEvents:{},baseEvents:{},elementEvents:{},getElementType:function(){return this.model.get("elType")},getChildType:function(){return elementor.helpers.getElementChildType(this.getElementType())},events:function(){return _.extend({},this.baseEvents,this.elementEvents)},initialize:function(){this.collection=this.model.get("elements"),this.collection&&this.listenTo(this.collection,"add remove reset",this.onCollectionChanged,this),this.listenTo(this.model.get("settings"),"change",this.onSettingsChanged,this),this.listenTo(this.model.get("editSettings"),"change",this.onSettingsChanged,this),this.on("render",this.enqueueFonts),this.on("render",this.renderStyles),this.on("render",this.renderCustomClasses),this.on("render",this.runReadyTrigger),this.initRemoveDialog()},addChildModel:function(a,b){return this.collection.add(a,b,!0)},isCollectionFilled:function(){return!1},isInner:function(){return!!this.model.get("isInner")},initRemoveDialog:function(){var a;this.getRemoveDialog=function(){return a||(a=elementor.dialogsManager.createWidget("confirm",{message:elementor.translate("dialog_confirm_delete"),headerMessage:elementor.translate("delete_element"),strings:{confirm:elementor.translate("delete"),cancel:elementor.translate("cancel")},defaultOption:"confirm",onConfirm:_.bind(function(){this.model.destroy()},this)})),a}},enqueueFonts:function(){_.each(this.model.get("settings").getFontControls(),_.bind(function(a){var b=this.model.getSetting(a.name);if(!_.isEmpty(b)){var c=elementor.helpers.isControlVisible(a,this.model.get("settings"));c&&elementor.helpers.enqueueFont(b)}},this))},renderStyles:function(){var a="",b=elementor.$previewContents.find("#elementor-style-"+this.model.cid),c=this.model.get("settings").getStyleControls();if(_.each(c,_.bind(function(b){var c=this.model.getSetting(b.name);if(_.isNumber(c)||!_.isEmpty(c)){var d=elementor.helpers.isControlVisible(b,this.model.get("settings"));d&&_.each(b.selectors,_.bind(function(d,e){var f=e.replace(/\{\{WRAPPER\}\}/g,"#"+this.getElementUniqueClass()),g=elementor.getControlItemView(b.type).replaceStyleValues(d,c);_.isEmpty(g)||(a+=f+"{"+g+"}")},this))}},this)),"column"===this.model.get("elType")){var d=this.model.getSetting("_inline_size");_.isEmpty(d)||(a+="@media (min-width: 768px) {#"+this.getElementUniqueClass()+"{width:"+d+"%;}")}0===b.length&&(elementor.$previewContents.find("head").append('<style type="text/css" id="elementor-style-'+this.model.cid+'"></style>'),b=elementor.$previewContents.find("#elementor-style-"+this.model.cid)),b.html(a)},renderCustomClasses:function(){this.$el.addClass("elementor-element");var a=this.model.get("settings");_.each(a.attributes,_.bind(function(b,c){if(a.isClassControl(c)){var d=a.getControl(c);this.$el.removeClass(d.prefix_class+a.previous(c));var e=elementor.helpers.isControlVisible(d,this.model.get("settings"));e&&!_.isEmpty(a.get(c))&&(this.$el.addClass(d.prefix_class+a.get(c)),this.$el.addClass(_.result(this,"className")))}},this))},runReadyTrigger:function(){elementorBindUI.runReadyTrigger(this.$el)},getElementUniqueClass:function(){return"elementor-element-"+this.model.get("id")},onCollectionChanged:function(){elementor.setFlagEditorChange(!0)},onSettingsChanged:function(a){elementor.setFlagEditorChange(!0),this.renderStyles(),this.renderCustomClasses()},onClickRemove:function(a){a.preventDefault(),a.stopPropagation(),this.getRemoveDialog().show()}}),b.exports=d},{}],43:[function(a,b,c){var d,e=a("elementor-views/base-element"),f=a("elementor-views/element-empty"),g=a("elementor-views/widget");d=e.extend({template:Marionette.TemplateCache.get("#tmpl-elementor-element-column-content"),elementEvents:{"click > .elementor-element-overlay .elementor-editor-column-settings-list .elementor-editor-element-remove":"onClickRemove","click @ui.listTriggers":"onClickTrigger"},getChildView:function(b){return"section"===b.get("elType")?a("elementor-views/section"):g},emptyView:f,className:function(){var a="elementor-column",b=this.isInner()?"inner":"top";return a+=" elementor-"+b+"-column"},childViewContainer:"> .elementor-column-wrap > .elementor-widget-wrap",triggers:{"click > .elementor-element-overlay .elementor-editor-column-settings-list .elementor-editor-element-add":"click:new","click > .elementor-element-overlay .elementor-editor-column-settings-list .elementor-editor-element-edit":"click:edit","click > .elementor-element-overlay .elementor-editor-column-settings-list .elementor-editor-element-trigger":"click:edit","click > .elementor-element-overlay .elementor-editor-column-settings-list .elementor-editor-element-duplicate":"click:duplicate"},ui:{columnTitle:".column-title",columnInner:"> .elementor-column-wrap",listTriggers:"> .elementor-element-overlay .elementor-editor-element-trigger"},behaviors:{Sortable:{behaviorClass:a("elementor-behaviors/sortable"),elChildType:"widget"},Resizable:{behaviorClass:a("elementor-behaviors/resizable")},HandleDuplicate:{behaviorClass:a("elementor-behaviors/handle-duplicate")},HandleEditor:{behaviorClass:a("elementor-behaviors/handle-editor")},HandleEditMode:{behaviorClass:a("elementor-behaviors/handle-edit-mode")},HandleAddMode:{behaviorClass:a("elementor-behaviors/duplicate")},HandleElementsRelation:{behaviorClass:a("elementor-behaviors/elements-relation")}},initialize:function(){e.prototype.initialize.apply(this,arguments),this.listenTo(elementor.data,"widget:drag:start",this.onWidgetDragStart),this.listenTo(elementor.data,"widget:drag:end",this.onWidgetDragEnd)},isDroppingAllowed:function(a,b){var c=elementor.panelElements.request("element:selected"),d=c.model.get("elType");return"section"===d?!this.isInner():"widget"===d},changeSizeUI:function(){var a=this.model.getSetting("_column_size"),b=this.model.getSetting("_inline_size"),c=parseFloat(b||a).toFixed(1)+"%";this.$el.attr("data-col",a),this.ui.columnTitle.html(c)},getSortableOptions:function(){return{connectWith:".elementor-widget-wrap",items:"> .elementor-element"}},onCollectionChanged:function(){e.prototype.onCollectionChanged.apply(this,arguments),this.changeChildContainerClasses()},changeChildContainerClasses:function(){var a="elementor-element-empty",b="elementor-element-populated";this.collection.isEmpty()?this.ui.columnInner.removeClass(b).addClass(a):this.ui.columnInner.removeClass(a).addClass(b)},onRender:function(){var a=this;a.changeChildContainerClasses(),a.changeSizeUI(),a.$el.html5Droppable({items:" > .elementor-column-wrap > .elementor-widget-wrap > .elementor-element, >.elementor-column-wrap > .elementor-widget-wrap > .elementor-empty-view > .elementor-first-add",axis:["vertical"],groups:["elementor-element"],isDroppingAllowed:_.bind(a.isDroppingAllowed,a),onDragging:function(b,c){c.stopPropagation(),a.$el.addClass("elementor-dragging-on-child"),this.dataset.side!==b&&Backbone.$(this).attr("data-side",b)},onDragLeave:function(){a.$el.removeClass("elementor-dragging-on-child"),Backbone.$(this).removeAttr("data-side")},onDropping:function(b,c){c.stopPropagation();var d=elementor.panelElements.request("element:selected"),e=Backbone.$(this).index();"bottom"===b&&e++;var f={id:elementor.helpers.getUniqueID(),elType:d.model.get("elType")};if("widget"===f.elType)f.widgetType=d.model.get("widgetType");else{if("section"!==f.elType)return;f.elements=[],f.isInner=!0}a.triggerMethod("request:add",f,{at:e})}})},onClickTrigger:function(a){a.preventDefault();var b=this.$(a.currentTarget),c=b.hasClass("elementor-active");this.ui.listTriggers.removeClass("elementor-active"),c||b.addClass("elementor-active")},onWidgetDragStart:function(){this.$el.addClass("elementor-dragging")},onWidgetDragEnd:function(){this.$el.removeClass("elementor-dragging")}}),b.exports=d},{"elementor-behaviors/duplicate":2,"elementor-behaviors/elements-relation":3,"elementor-behaviors/handle-duplicate":4,"elementor-behaviors/handle-edit-mode":5,"elementor-behaviors/handle-editor":6,"elementor-behaviors/resizable":7,"elementor-behaviors/sortable":8,"elementor-views/base-element":42,"elementor-views/element-empty":63,"elementor-views/section":64,"elementor-views/widget":66}],44:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({applySavedValue:function(){var a=this.getControlValue(),b=this.$("[data-setting]"),c=this;_.each(a,function(a,d){var e=b.filter(function(){return d===this.dataset.setting});c.setInputValue(e,a)})},getControlValue:function(a){var b=this.elementSettingsModel.get(this.model.get("name"));return Backbone.$.isPlainObject(b)?a?b[a]||"":elementor.helpers.cloneObject(b):{}},setValue:function(a,b){var c=this.getControlValue();"object"==typeof a?_.each(a,function(a,b){c[b]=a}):c[a]=b,this.setSettingsModel(c)},updateElementModel:function(a){var b=this.getInputValue(a.currentTarget),c=a.currentTarget.dataset.setting;this.setValue(c,b)}},{replaceStyleValues:function(a,b){if(!_.isObject(b))return"";try{return a.replace(/\{\{([A-Z]+)}}/g,function(a,c){var d=b[c.toLowerCase()];if(""===d)throw"";return d})}catch(c){return""}}}),b.exports=d},{"elementor-views/controls/base":46}],45:[function(a,b,c){var d,e=a("elementor-views/controls/base-multiple");d=e.extend({getCurrentRange:function(){return this.getUnitRange(this.getControlValue("unit"))},getUnitRange:function(a){var b=this.model.get("range");return b&&b[a]?b[a]:!1}}),b.exports=d},{"elementor-views/controls/base-multiple":44}],46:[function(a,b,c){var d;d=Marionette.CompositeView.extend({ui:function(){return{input:'input[data-setting][type!="checkbox"][type!="radio"]',checkbox:'input[data-setting][type="checkbox"]',radio:'input[data-setting][type="radio"]',select:"select[data-setting]",textarea:"textarea[data-setting]"}},className:function(){var a="elementor-control elementor-control-"+this.model.get("name")+" elementor-control-type-"+this.model.get("type"),b=this.model.get("classes");return _.isEmpty(b)||(a+=" "+b),_.isEmpty(this.model.get("section"))||(a+=" elementor-control-under-section"),a},getTemplate:function(){return Marionette.TemplateCache.get("#tmpl-elementor-control-"+this.model.get("type")+"-content")},templateHelpers:function(){var a={controlValue:this.getControlValue(),_cid:this.model.cid};return{data:_.extend({},this.model.toJSON(),a)}},baseEvents:{"input @ui.input":"onBaseInputChange","change @ui.checkbox":"onBaseInputChange","change @ui.radio":"onBaseInputChange","input @ui.textarea":"onBaseInputChange","change @ui.select":"onBaseInputChange"},childEvents:{},events:function(){return _.extend({},this.baseEvents,this.childEvents)},initialize:function(a){this.elementSettingsModel=a.elementSettingsModel;var b=this.model.get("type"),c=Backbone.$.extend(!0,{},elementor.config.controls[b],this.model.attributes);this.model.set(c),this.listenTo(this.elementSettingsModel,"change",this.toggleControlVisibility),this.listenTo(this.elementSettingsModel,"control:switch:tab",this.onControlSwitchTab)},getControlValue:function(){return this.elementSettingsModel.get(this.model.get("name"))},isValidValue:function(a){return!0},setValue:function(a){this.setSettingsModel(a)},setSettingsModel:function(a){return!0!==this.isValidValue(a)?void this.triggerMethod("settings:error"):(this.elementSettingsModel.set(this.model.get("name"),a),void this.triggerMethod("settings:change"))},applySavedValue:function(){this.setInputValue('[data-setting="'+this.model.get("name")+'"]',this.getControlValue())},getEditSettings:function(a){var b=this.getOption("elementEditSettings").toJSON();return a?b[a]:b},setEditSetting:function(a,b){var c=this.getOption("elementEditSettings");c.set(a,b)},getInputValue:function(a){var b=this.$(a),c=b.val(),d=b.attr("type");return"checkbox"===d?b.prop("checked"):"radio"===d?b.prop("checked")?c:"":c},setInputValue:function(a,b){var c=this.$(a),d=c.attr("type");"checkbox"===d?c.prop("checked",!!b):"radio"===d?c.filter('[value="'+b+'"]').prop("checked",!0):c.val(b)},onSettingsError:function(){this.$el.addClass("elementor-error")},onSettingsChange:function(){this.$el.removeClass("elementor-error")},onRender:function(){this.applySavedValue();var a=this.model.get("label_block")?"block":"inline",b=this.model.get("show_label"),c="elementor-label-"+a;c+=" elementor-control-separator-"+this.model.get("separator"),b||(c+=" elementor-control-hidden-label"),this.$el.addClass(c),this.triggerMethod("ready"),this.toggleControlVisibility()},onBaseInputChange:function(a){this.updateElementModel(a),this.triggerMethod("input:change",a)},toggleControlVisibility:function(){var a=elementor.helpers.isControlVisible(this.model,this.elementSettingsModel);this.$el.toggleClass("elementor-hidden-control",!a),elementor.data.trigger("scrollbar:update")},onControlSwitchTab:function(a){this.$el.toggleClass("elementor-active-tab",a===this.model.get("tab")),elementor.data.trigger("scrollbar:update")},onReady:function(){},updateElementModel:function(a){this.setValue(this.getInputValue(a.currentTarget))}},{replaceStyleValues:function(a,b){var c={"{{VALUE}}":b};return elementor.helpers.stringReplaceAll(a,c)}}),b.exports=d},{}],47:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.inputs="[type=radio]",a},childEvents:{"mousedown label":"onMouseDownLabel","click @ui.inputs":"onClickInput","change @ui.inputs":"updateElementModel"},onMouseDownLabel:function(a){var b=this.$(a.currentTarget),c=this.$("#"+b.attr("for"));c.data("checked",c.prop("checked"))},onClickInput:function(a){if(this.model.get("toggle")){var b=this.$(a.currentTarget);b.data("checked")&&b.prop("checked",!1).trigger("change")}},onRender:function(){e.prototype.onRender.apply(this,arguments);var a=this.getControlValue();a?this.ui.inputs.filter("[value="+a+"]").prop("checked",!0):this.model.get("toggle")||this.ui.inputs.first().prop("checked",!0).trigger("change")}}),b.exports=d},{"elementor-views/controls/base":46}],48:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.picker=".color-picker-hex",a},onReady:function(){this.ui.picker.wpColorPicker({change:_.bind(function(){this.setValue(this.ui.picker.wpColorPicker("color"))},this),clear:_.bind(function(){this.setValue("")},this),width:251})},onBeforeDestroy:function(){this.ui.picker.wpColorPicker("instance")&&this.ui.picker.wpColorPicker("close"),this.$el.remove()}}),b.exports=d},{"elementor-views/controls/base":46}],49:[function(a,b,c){var d,e=a("elementor-views/controls/base-units");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.controls=".elementor-control-dimension > input:enabled",a.link="button.elementor-link-dimensions",a},childEvents:{"click @ui.link":"onLinkDimensionsClicked"},defaultDimensionValue:0,initialize:function(){e.prototype.initialize.apply(this,arguments),this.model.set("allowed_dimensions",this.filterDimensions(this.model.get("allowed_dimensions")))},getPossibleDimensions:function(){return["top","right","bottom","left"]},filterDimensions:function(a){a=a||"all";var b=this.getPossibleDimensions();return"all"===a?b:(_.isArray(a)||("horizontal"===a?a=["right","left"]:"vertical"===a&&(a=["top","bottom"])),a)},onReady:function(){var a=this.getControlValue();this.isLinkedDimensions()||(this.ui.link.addClass("unlinked"),this.ui.controls.each(_.bind(function(b,c){var d=a[c.dataset.setting];_.isEmpty(d)&&(d=this.defaultDimensionValue),this.$(c).val(d)},this))),this.fillEmptyDimensions()},updateDimensionsValue:function(){var a={},b=this.getPossibleDimensions(),c=this.ui.controls;b.forEach(_.bind(function(b){var d=c.filter('[data-setting="'+b+'"]');a[b]=d.length?d.val():this.defaultDimensionValue},this)),this.setValue(a)},fillEmptyDimensions:function(){var a=this.getPossibleDimensions(),b=this.model.get("allowed_dimensions"),c=this.ui.controls;this.isLinkedDimensions()||a.forEach(_.bind(function(a){var d=c.filter('[data-setting="'+a+'"]'),e=-1!==_.indexOf(b,a);e&&d.length&&_.isEmpty(d.val())&&d.val(this.defaultDimensionValue)},this))},updateDimensions:function(){this.fillEmptyDimensions(),this.updateDimensionsValue()},resetDimensions:function(){this.ui.controls.val(""),this.updateDimensionsValue()},onInputChange:function(a){var b=a.target.dataset.setting;if("unit"===b&&this.resetDimensions(),_.contains(this.getPossibleDimensions(),b)){
4
  if(this.isLinkedDimensions()){var c=this.$(a.target);this.ui.controls.val(c.val())}this.updateDimensions()}},onLinkDimensionsClicked:function(a){a.preventDefault(),a.stopPropagation(),this.ui.link.toggleClass("unlinked"),this.setValue("isLinked",!this.ui.link.hasClass("unlinked")),this.isLinkedDimensions()&&this.ui.controls.val(this.ui.controls.eq(0).val()),this.updateDimensions()},isLinkedDimensions:function(){return this.getControlValue("isLinked")}}),b.exports=d},{"elementor-views/controls/base-units":45}],50:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.fontSelect=".elementor-control-font-family",a},onReady:function(){this.ui.fontSelect.select2({dir:elementor.config.is_rtl?"rtl":"ltr"})},onBeforeDestroy:function(){this.ui.fontSelect.data("select2")&&this.ui.fontSelect.select2("destroy"),this.$el.remove()},templateHelpers:function(){var a=e.prototype.templateHelpers.apply(this,arguments);return a.getFontsByGroups=_.bind(function(a){return _.pick(this.model.get("fonts"),function(b){return _.isArray(a)?_.contains(a,b):b===a})},this),a}}),b.exports=d},{"elementor-views/controls/base":46}],51:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.controlMedia=".elementor-control-media",a.frameOpeners=".elementor-control-media-upload-button, .elementor-control-media-image",a.deleteButton=".elementor-control-media-delete",a},childEvents:{"click @ui.frameOpeners":"openFrame","click @ui.deleteButton":"deleteImage"},onReady:function(){_.isEmpty(this.getControlValue())&&this.ui.controlMedia.addClass("media-empty")},openFrame:function(){this.initFrame(),this.frame.open()},deleteImage:function(){this.setValue(""),this.render()},initFrame:function(){var a,b=this.getControlValue();a={frame:"post",multiple:!0,button:{text:"Insert Media"},state:"gallery"},0<b.length&&(a.selection=this.fetchSelection(b),a.state="gallery-edit"),this.frame=wp.media(a),this.frame.on("update",_.bind(this.select,this)),this.frame.on("menu:render:default",_.bind(this.menuRender,this)),this.frame.on("content:render:browse",_.bind(this.gallerySettings,this))},menuRender:function(a){a.unset("insert"),a.unset("featured-image")},gallerySettings:function(a){a.sidebar.on("ready",function(){a.sidebar.unset("gallery")})},fetchSelection:function(a){var b=a.split(","),c={orderby:"post__in",order:"ASC",type:"image",perPage:-1,post__in:b},d=wp.media.query(c),e=new wp.media.model.Selection(d.models,{props:d.props.toJSON(),multiple:!0});return e},select:function(a){var b=a.pluck("id");this.setValue(b.toString()),this.render()},onBeforeDestroy:function(){this.frame&&(this.frame.off("update"),this.frame.off("menu:render:default"),this.frame.off("content:render:browse")),this.$el.remove()}}),b.exports=d},{"elementor-views/controls/base":46}],52:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.iconSelect=".elementor-control-icon",a},onReady:function(){this.ui.iconSelect.select2({allowClear:!0,templateResult:_.bind(this.iconsList,this),templateSelection:_.bind(this.iconsList,this)})},iconsList:function(a){return a.id?Backbone.$('<span><i class="'+a.id+'"></i> '+a.text+"</span>"):a.text},onBeforeDestroy:function(){this.ui.iconSelect.data("select2")&&this.ui.iconSelect.select2("destroy"),this.$el.remove()}}),b.exports=d},{"elementor-views/controls/base":46}],53:[function(a,b,c){var d,e=a("elementor-views/controls/base-multiple");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.controlMedia=".elementor-control-media",a.frameOpeners=".elementor-control-media-upload-button, .elementor-control-media-image",a.deleteButton=".elementor-control-media-delete",a},childEvents:{"click @ui.frameOpeners":"openFrame","click @ui.deleteButton":"deleteImage"},onReady:function(){_.isEmpty(this.getControlValue("url"))&&this.ui.controlMedia.addClass("media-empty")},openFrame:function(){this.frame||this.initFrame(),this.frame.open()},deleteImage:function(){this.setValue({url:"",id:""}),this.render()},initFrame:function(){this.frame=wp.media({button:{text:"Insert Media"},states:[new wp.media.controller.Library({title:"Insert Media",library:wp.media.query({type:"image"}),multiple:!1,date:!1})]}),this.frame.on("insert select",_.bind(this.select,this))},select:function(){var a=this.frame.state().get("selection").first().toJSON();a.url&&(this.setValue({url:a.url,id:a.id}),this.render())},onBeforeDestroy:function(){this.$el.remove()}}),b.exports=d},{"elementor-views/controls/base-multiple":44}],54:[function(a,b,c){var d;d=Marionette.CompositeView.extend({template:Marionette.TemplateCache.get("#tmpl-elementor-repeater-row"),className:"repeater-fields",ui:{duplicateButton:".elementor-repeater-tool-duplicate",editButton:".elementor-repeater-tool-edit",removeButton:".elementor-repeater-tool-remove",itemNumber:".elementor-repeater-row-item-number"},triggers:{"click @ui.removeButton":"click:remove","click @ui.duplicateButton":"click:duplicate","click @ui.itemNumber":"click:edit"},templateHelpers:function(){return{itemIndex:this.getOption("itemIndex")}},childViewContainer:".elementor-repeater-row-controls",getChildView:function(a){var b=a.get("type");return elementor.getControlItemView(b)},childViewOptions:function(){return{elementSettingsModel:this.model}},updateIndex:function(a){this.itemIndex=a,this.render()},initialize:function(a){this.elementSettingsModel=a.elementSettingsModel,this.itemIndex=0,this.collection=new Backbone.Collection(a.controlFields)}}),b.exports=d},{}],55:[function(a,b,c){var d,e=a("elementor-views/controls/base"),f=a("elementor-views/controls/repeater-row");d=e.extend({ui:{btnAddRow:".elementor-repeater-add",fieldContainer:".elementor-repeater-fields"},events:{"click @ui.btnAddRow":"onButtonAddRowClick","sortstart @ui.fieldContainer":"onSortStart","sortupdate @ui.fieldContainer":"onSortUpdate"},childView:f,childViewContainer:".elementor-repeater-fields",templateHelpers:function(){return{data:_.extend({},this.model.toJSON(),{controlValue:[]})}},childViewOptions:function(a){return{controlFields:this.model.get("fields")}},initialize:function(a){e.prototype.initialize.apply(this,arguments),this.collection=this.elementSettingsModel.get(this.model.get("name")),this.listenTo(this.collection,"change add remove reset",this.onCollectionChanged,this)},editRow:function(a){return this.currentEditableChild&&this.currentEditableChild.getChildViewContainer(this.currentEditableChild).removeClass("editable"),this.currentEditableChild===a?void delete this.currentEditableChild:(a.getChildViewContainer(a).addClass("editable"),this.currentEditableChild=a,void this.updateActiveRow())},toggleMinRowsClass:function(){this.model.get("prevent_empty")&&this.$el.toggleClass("elementor-repeater-has-minimum-rows",1>=this.collection.length)},updateActiveRow:function(){var a=0;this.currentEditableChild&&(a=this.currentEditableChild.itemIndex),this.setEditSetting("activeItemIndex",a)},updateChildIndexes:function(){this.children.each(_.bind(function(a){a.updateIndex(this.collection.indexOf(a.model)+1)},this))},onRender:function(){this.ui.fieldContainer.sortable({axis:"y"}),this.toggleMinRowsClass()},onSortStart:function(a,b){b.item.data("oldIndex",b.item.index())},onSortUpdate:function(a,b){var c=b.item.data("oldIndex"),d=this.collection.at(c),e=b.item.index();this.collection.remove(d),this.collection.add(d,{at:e})},onAddChild:function(){this.updateChildIndexes(),this.updateActiveRow()},onRemoveChild:function(a){a===this.currentEditableChild&&delete this.currentEditableChild,this.updateChildIndexes(),this.updateActiveRow()},onCollectionChanged:function(){this.elementSettingsModel.trigger("change"),this.toggleMinRowsClass()},onButtonAddRowClick:function(){var a={};_.each(this.model.get("fields"),function(b){a[b.name]=b["default"]});var b=this.collection.add(a),c=this.children.findByModel(b);this.editRow(c)},onChildviewClickRemove:function(a){a.model.destroy()},onChildviewClickDuplicate:function(a){this.collection.add(a.model.clone(),{at:a.itemIndex})},onChildviewClickEdit:function(a){this.editRow(a)}}),b.exports=d},{"elementor-views/controls/base":46,"elementor-views/controls/repeater-row":54}],56:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.heading=".elementor-panel-heading",a},triggers:{click:"control:section:clicked"}}),b.exports=d},{"elementor-views/controls/base":46}],57:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.select=".elementor-select2",a},onReady:function(){var a={allowClear:!0};this.ui.select.select2(a)},onBeforeDestroy:function(){this.ui.select.data("select2")&&this.ui.select.select2("destroy"),this.$el.remove()}}),b.exports=d},{"elementor-views/controls/base":46}],58:[function(a,b,c){var d,e=a("elementor-views/controls/base-units");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.slider=".elementor-control-slider",a},childEvents:{"slide @ui.slider":"onSlideChange"},initSlider:function(){var a=this.getControlValue("size"),b=this.getCurrentRange();this.ui.input.attr(b).val(a),this.ui.slider.slider(_.extend({},b,{value:a}))},resetSize:function(){this.setValue("size",""),this.initSlider()},onReady:function(){this.initSlider()},onSlideChange:function(a,b){this.setValue("size",b.value),this.ui.input.val(b.value)},onInputChange:function(a){var b=a.currentTarget.dataset.setting;"size"===b?this.ui.slider.slider("value",this.getControlValue("size")):"unit"===b&&this.resetSize()},onBeforeDestroy:function(){this.ui.slider.slider("destroy"),this.$el.remove()}}),b.exports=d},{"elementor-views/controls/base-units":45}],59:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.resetStructure=".elementor-control-structure-reset",a},childEvents:{"click @ui.resetStructure":"onResetStructureClick"},templateHelpers:function(){var a=e.prototype.templateHelpers.apply(this,arguments);return a.getMorePresets=_.bind(this.getMorePresets,this),a},getCurrentEditedSection:function(){var a=elementor.getPanelView().getCurrentPageView();return a.getOption("editedElementView")},getMorePresets:function(){var a=elementor.presetsFactory.getParsedStructure(this.getControlValue());return elementor.presetsFactory.getPresets(a.columnsCount)},onInputChange:function(){this.getCurrentEditedSection().redefineLayout(),this.render()},onResetStructureClick:function(){this.getCurrentEditedSection().resetColumnsCustomSize()}}),b.exports=d},{"elementor-views/controls/base":46}],60:[function(a,b,c){var d,e=a("elementor-views/controls/base-multiple");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.btnExternal="button.elementor-control-url-target",a},childEvents:{"click @ui.btnExternal":"onExternalClicked"},onReady:function(){var a=this.getControlValue();a.is_external&&this.ui.btnExternal.addClass("active"),a.url&&this.ui.input.val(a.url)},onExternalClicked:function(a){a.preventDefault(),this.ui.btnExternal.toggleClass("active"),this.setValue("is_external",this.isExternal())},isExternal:function(){return this.ui.btnExternal.hasClass("active")}}),b.exports=d},{"elementor-views/controls/base-multiple":44}],61:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({ui:function(){var a=e.prototype.ui.apply(this,arguments);return a.form="form",a.loading=".wp-widget-form-loading",a},events:{"keyup @ui.form :input":"onFormChanged","change @ui.form :input":"onFormChanged"},onFormChanged:function(){var a="widget-"+this.model.get("id_base"),b=this.ui.form.elementorSerializeObject()[a].REPLACE_TO_ID;this.setValue(b)},onReady:function(){Backbone.$.ajax({type:"POST",url:elementor.config.ajaxurl,data:{action:"elementor_editor_get_wp_widget_form",widget_type:this.model.get("widget"),data:JSON.stringify(this.elementSettingsModel.toJSON())}}).done(_.bind(function(a){this.ui.form.html(a)},this))}}),b.exports=d},{"elementor-views/controls/base":46}],62:[function(a,b,c){var d,e=a("elementor-views/controls/base");d=e.extend({childEvents:{"keyup textarea.elementor-wp-editor":"updateElementModel"},buttons:{keepInBasic:["bold","italic","link","unlink","wp_adv","fullscreen"],moveToBasic:{underline:"italic"}},initialize:function(){e.prototype.initialize.apply(this,arguments);var a=this;this.editorID="elementorwpeditor"+this.cid;var b={id:this.editorID,selector:"#"+this.editorID,setup:function(b){b.on("keyup change",function(){b.save(),a.setValue(b.getContent())})}};tinyMCEPreInit.mceInit[this.editorID]=_.extend(_.clone(tinyMCEPreInit.mceInit.elementorwpeditor),b),this.rearrangeButtons(),this.$el.addClass("elementor-loading-editor"),_.defer(function(){quicktags({buttons:"strong,em,del,link,img,close",id:a.editorID}),switchEditors.go(a.editorID,"tmce"),_.defer(function(){delete QTags.instances[0]})})},attachElContent:function(){var a=elementor.config.wp_editor.replace(/elementorwpeditor/g,this.editorID).replace("%%EDITORCONTENT%%",this.getControlValue());return this.$el.html(a),this},rearrangeButtons:function(){var a=tinyMCEPreInit.mceInit[this.editorID],b=a.toolbar1.split(","),c=a.toolbar2.split(","),d=Array.prototype.slice.call(this.buttons.keepInBasic),e=_.difference(b,d),f=_.difference(c,Object.keys(this.buttons.moveToBasic));_.each(this.buttons.moveToBasic,function(a,b){var c=d.indexOf(a);-1!==c&&d.splice(c+1,0,b)}),a.toolbar1=d.join(","),a.toolbar2=e+","+f},onBeforeDestroy:function(){tinymce.EditorManager.execCommand("mceRemoveEditor",!0,this.editorID),delete QTags.instances[this.editorID],delete tinyMCEPreInit.mceInit[this.editorID],delete tinyMCEPreInit.qtInit[this.editorID]}}),b.exports=d},{"elementor-views/controls/base":46}],63:[function(a,b,c){var d;d=Marionette.ItemView.extend({template:"#tmpl-elementor-empty-preview",className:"elementor-empty-view",events:{click:"onClickAdd"},onClickAdd:function(){elementor.getPanelView().setPage("elements")}}),b.exports=d},{}],64:[function(a,b,c){var d,e=a("elementor-views/base-element"),f=a("elementor-views/column");d=e.extend({template:Marionette.TemplateCache.get("#tmpl-elementor-element-section-content"),childView:f,className:function(){var a="elementor-section",b=this.isInner()?"inner":"top";return a+=" elementor-"+b+"-section"},tagName:"section",childViewContainer:"> .elementor-container > .elementor-row",triggers:{"click .elementor-editor-section-settings-list .elementor-editor-element-edit":"click:edit","click .elementor-editor-section-settings-list .elementor-editor-element-trigger":"click:edit","click .elementor-editor-section-settings-list .elementor-editor-element-duplicate":"click:duplicate"},elementEvents:{"click .elementor-editor-section-settings-list .elementor-editor-element-remove":"onClickRemove"},behaviors:{Sortable:{behaviorClass:a("elementor-behaviors/sortable"),elChildType:"column"},HandleDuplicate:{behaviorClass:a("elementor-behaviors/handle-duplicate")},HandleEditor:{behaviorClass:a("elementor-behaviors/handle-editor")},HandleEditMode:{behaviorClass:a("elementor-behaviors/handle-edit-mode")},HandleAddMode:{behaviorClass:a("elementor-behaviors/duplicate")},HandleElementsRelation:{behaviorClass:a("elementor-behaviors/elements-relation")}},initialize:function(){e.prototype.initialize.apply(this,arguments),this.listenTo(this.collection,"add remove reset",this._checkIsFull),this.listenTo(this.collection,"remove",this.onCollectionRemove),this.listenTo(this.model,"change:settings:structure",this.onStructureChanged)},addEmptyColumn:function(){this.addChildModel({id:elementor.helpers.getUniqueID(),elType:"column",settings:{},elements:[]})},addChildModel:function(a,b){var c=a instanceof Backbone.Model,d=this.isInner();return c?a.set("isInner",d):a.isInner=d,e.prototype.addChildModel.apply(this,arguments)},getSortableOptions:function(){var a=this.isInner()?".elementor-inner-section":".elementor-top-section";return{connectWith:a+" > .elementor-container > .elementor-row",handle:"> .elementor-element-overlay .elementor-editor-column-settings-list .elementor-editor-element-trigger",items:"> .elementor-column"}},getColumnPercentSize:function(a,b){return b/a.parent().width()*100},getDefaultStructure:function(){return this.collection.length+"0"},getStructure:function(){return this.model.getSetting("structure")},setStructure:function(a){var b=elementor.presetsFactory.getParsedStructure(a);if(+b.columnsCount!==this.collection.length)throw new TypeError("The provided structure doesn't match the columns count.");this.model.setSetting("structure",a,!0)},redefineLayout:function(){var a=elementor.presetsFactory.getPresetByStructure(this.getStructure());this.collection.each(function(b,c){b.setSetting("_column_size",a.preset[c]),b.setSetting("_inline_size",null)}),this.children.invoke("changeSizeUI")},resetLayout:function(){this.setStructure(this.getDefaultStructure())},resetColumnsCustomSize:function(){this.collection.each(function(a){a.setSetting("_inline_size",null)}),this.children.invoke("changeSizeUI")},isCollectionFilled:function(){var a=10,b=this.collection.length;return b>=a},_checkIsFull:function(){this.$el.toggleClass("elementor-section-filled",this.isCollectionFilled())},_checkIsEmpty:function(){this.collection.length||this.addEmptyColumn()},onBeforeRender:function(){this._checkIsEmpty()},onRender:function(){this._checkIsFull()},onAddChild:function(){this.isBuffering||this.resetLayout()},onCollectionRemove:function(){this._checkIsEmpty(),this.resetLayout()},onChildviewRequestResize:function(a,b){var c=a.model.getSetting("_inline_size");c||(c=this.getColumnPercentSize(b.element,b.originalSize.width));var d=this.getColumnPercentSize(b.element,b.size.width),e=d-c;b.element.css({width:"",left:"initial"});var f=this.collection.indexOf(a.model),g=this.collection.at(f+1),h=this.children.findByModelCid(g.cid);if(h){var i=h.$el,j=this.getColumnPercentSize(i,i.width()),k=j-e;10>d||d>100||!e||10>k||k>100||(a.model.setSetting("_inline_size",d.toFixed(3)),a.changeSizeUI(),h.model.setSetting("_inline_size",k.toFixed(3)),h.changeSizeUI())}},onSettingsChanged:function(){e.prototype.onSettingsChanged.apply(this,arguments),this.render()},onStructureChanged:function(){this.redefineLayout()}}),b.exports=d},{"elementor-behaviors/duplicate":2,"elementor-behaviors/elements-relation":3,"elementor-behaviors/handle-duplicate":4,"elementor-behaviors/handle-edit-mode":5,"elementor-behaviors/handle-editor":6,"elementor-behaviors/sortable":8,"elementor-views/base-element":42,"elementor-views/column":43}],65:[function(a,b,c){var d,e=a("elementor-views/section");d=Marionette.CompositeView.extend({template:Marionette.TemplateCache.get("#tmpl-elementor-preview"),id:"elementor-inner",childViewContainer:"#elementor-section-wrap",childView:e,ui:{addSectionArea:"#elementor-add-section",addNewSection:"#elementor-add-new-section",closePresetsIcon:"#elementor-select-preset-close",addIcon:"#elementor-add-section-button",selectPreset:"#elementor-select-preset",presets:".elementor-preset"},events:{"click @ui.addIcon":"showSelectPresets","click @ui.closePresetsIcon":"closeSelectPresets","click @ui.presets":"onPresetSelected"},behaviors:{Sortable:{behaviorClass:a("elementor-behaviors/sortable"),elChildType:"section"},HandleDuplicate:{behaviorClass:a("elementor-behaviors/handle-duplicate")},HandleAdd:{behaviorClass:a("elementor-behaviors/duplicate")},HandleElementsRelation:{behaviorClass:a("elementor-behaviors/elements-relation")}},getSortableOptions:function(){return{handle:"> .elementor-container > .elementor-row > .elementor-column > .elementor-element-overlay .elementor-editor-section-settings-list .elementor-editor-element-trigger",items:"> .elementor-section"}},getChildType:function(){return["section"]},isCollectionFilled:function(){return!1},initialize:function(){1>this.collection.length&&this.addChildModel({id:elementor.helpers.getUniqueID(),elType:"section",settings:{},elements:[]})},addChildModel:function(a,b){return this.collection.add(a,b,!0)},addSection:function(a){var b={id:elementor.helpers.getUniqueID(),elType:"section",settings:{},elements:[]};a&&_.extend(b,a);var c=this.addChildModel(b);return this.children.findByModelCid(c.cid)},showSelectPresets:function(){this.ui.addNewSection.hide(),this.ui.selectPreset.show()},closeSelectPresets:function(){this.ui.addNewSection.show(),this.ui.selectPreset.hide()},onRender:function(){var a=this;a.ui.addSectionArea.html5Droppable({axis:["vertical"],groups:["elementor-element"],onDragging:function(b){a.ui.addSectionArea.data("side")!==b&&a.ui.addSectionArea.attr("data-side",b)},onDragLeave:function(){a.ui.addSectionArea.removeAttr("data-side")},onDropping:function(){var b=elementor.panelElements.request("element:selected"),c=a.addSection(),d={id:elementor.helpers.getUniqueID(),elType:"widget",widgetType:b.model.get("widgetType")};c.triggerMethod("request:add",d)}})},onPresetSelected:function(a){this.closeSelectPresets();var b,c=a.currentTarget.dataset.structure,d=elementor.presetsFactory.getParsedStructure(c),e=[];for(b=0;b<d.columnsCount;b++)e.push({id:elementor.helpers.getUniqueID(),elType:"column",settings:{},elements:[]});var f=this.addSection({elements:e});f.setStructure(c),f.redefineLayout()}}),b.exports=d},{"elementor-behaviors/duplicate":2,"elementor-behaviors/elements-relation":3,"elementor-behaviors/handle-duplicate":4,"elementor-behaviors/sortable":8,"elementor-views/section":64}],66:[function(a,b,c){var d,e=a("elementor-views/base-element"),f=a("elementor-models/base-settings");d=e.extend({_templateType:null,getTemplate:function(){return"remote"!==this.getTemplateType()?Marionette.TemplateCache.get("#tmpl-elementor-widget-"+this.model.get("widgetType")+"-content"):_.template("")},className:function(){return"elementor-widget elementor-widget-"+this.model.get("widgetType")},modelEvents:{"before:remote:render":"onModelBeforeRemoteRender","remote:render":"onModelRemoteRender"},triggers:{"click > .elementor-element-overlay":{event:"click:edit",stopPropagation:!1},"click > .elementor-element-overlay .elementor-editor-add-element":"click:add","click > .elementor-element-overlay .elementor-editor-element-duplicate":"click:duplicate"},ui:{settings:"> .elementor-element-overlay .elementor-editor-widget-settings"},elementEvents:{click:"showSettings","mouseleave @ui.settings":"hideSettings","click > .elementor-element-overlay .elementor-editor-element-remove":"onClickRemove"},behaviors:{HandleEditor:{behaviorClass:a("elementor-behaviors/handle-editor")},HandleEditMode:{behaviorClass:a("elementor-behaviors/handle-edit-mode")}},initialize:function(){e.prototype.initialize.apply(this,arguments),this.model.getHtmlCache()||this.model.renderRemoteServer()},getTemplateType:function(){if(null===this.getOption("_templateType")){var a=Backbone.$("#tmpl-elementor-widget-"+this.model.get("widgetType")+"-content");0===a.length?this._templateType="remote":this._templateType="js"}return this.getOption("_templateType")},onModelBeforeRemoteRender:function(){this.$el.addClass("elementor-loading")},onBeforeDestroy:function(){elementor.$previewContents.find("#elementor-style-"+this.model.cid).remove()},onModelRemoteRender:function(){this.isDestroyed||(this.$el.removeClass("elementor-loading"),this.render())},onSettingsChanged:function(a){if(e.prototype.onSettingsChanged.apply(this,arguments),a instanceof f){var b=!1;if(_.each(a.changedAttributes(),function(c,d){a.isStyleControl(d)||a.isClassControl(d)||(b=!0)}),!b)return}switch(this.getTemplateType()){case"js":this.model.setHtmlCache(),this.render();break;default:this.model.renderRemoteServer()}},attachElContent:function(a){var b=this.model.getHtmlCache();return b&&(a=b),this.$el.html(a),this},onRender:function(){this.$el.removeClass("elementor-widget-empty").find("> .elementor-element-overlay .elementor-widget-empty-icon").remove(),this.$el.imagesLoaded().always(_.bind(function(){1>this.$el.height()&&(this.$el.addClass("elementor-widget-empty"),this.$("> .elementor-element-overlay").append('<i class="elementor-widget-empty-icon fa fa-'+this.model.getIcon()+'"></i>'))},this))},showSettings:function(a){var b={my:elementor.config.is_rtl?"right+15 center":"left-15 center",of:a,collision:"fit",within:this.$el};this.ui.settings.addClass("elementor-open").position(b)},hideSettings:function(){this.ui.settings.removeClass("elementor-open")}}),b.exports=d},{"elementor-behaviors/handle-edit-mode":5,"elementor-behaviors/handle-editor":6,"elementor-models/base-settings":31,"elementor-views/base-element":42}]},{},[1]);
assets/js/admin.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! elementor - v0.2.1 - 08-06-2016 */
2
  !function(a,b,c,d){"use strict";var e={cache:{},cacheElements:function(){this.cache.$switchMode=a("#elementor-switch-mode"),this.cache.$switchModeInput=this.cache.$switchMode.find(".elementor-switch-mode-input"),this.cache.$switchModeButton=this.cache.$switchMode.find(".elementor-switch-mode-button"),this.cache.$switchModeButtonEditorStatus=this.cache.$switchModeButton.find(".elementor-switch-mode-off"),this.cache.$switchModeButtonBuilderStatus=this.cache.$switchModeButton.find(".elementor-switch-mode-on"),this.cache.$builderEditor=a("#elementor-editor"),this.cache.$wpEditor=a("#postdivrich")},buildElements:function(){var a=this;setTimeout(function(){a.toggleStatus(a)},300),a.cache.$switchModeButton.show()},toggleStatus:function(a){"builder"===a.cache.$switchModeInput.val()?(a.cache.$switchModeButtonBuilderStatus.show(),a.cache.$switchModeButtonEditorStatus.hide(),a.cache.$builderEditor.removeClass("elementor-editor-inactive").addClass("elementor-editor-active"),a.cache.$wpEditor.hide(),a.cache.$switchMode.removeClass("elementor-editor-inactive").addClass("elementor-editor-active")):(a.cache.$switchModeButtonEditorStatus.show(),a.cache.$switchModeButtonBuilderStatus.hide(),a.cache.$wpEditor.show(),a.cache.$builderEditor.addClass("elementor-editor-inactive").removeClass("elementor-editor-active"),a.cache.$switchMode.addClass("elementor-editor-inactive").removeClass("elementor-editor-active"))},bindEvents:function(){var d=this;d.cache.$switchModeButton.on("click",function(e){if(e.preventDefault(),"builder"===d.cache.$switchModeInput.val())d.cache.$switchModeInput.val("editor");else{d.cache.$switchModeInput.val("builder");var f=a("#title");f.val()||f.val("Elementor #"+a("#post_ID").val()),wp.autosave.server.triggerSave(),a(c).on("heartbeat-tick.autosave",function(){a(b).off("beforeunload.edit-post"),b.location=d.cache.$builderEditor.find("a").attr("href")})}d.toggleStatus(d)})},init:function(){this.cacheElements(),this.buildElements(),this.bindEvents()}};a(c).ready(function(a){e.init()})}(jQuery,window,document);
1
+ /*! elementor - v0.2.2 - 08-06-2016 */
2
  !function(a,b,c,d){"use strict";var e={cache:{},cacheElements:function(){this.cache.$switchMode=a("#elementor-switch-mode"),this.cache.$switchModeInput=this.cache.$switchMode.find(".elementor-switch-mode-input"),this.cache.$switchModeButton=this.cache.$switchMode.find(".elementor-switch-mode-button"),this.cache.$switchModeButtonEditorStatus=this.cache.$switchModeButton.find(".elementor-switch-mode-off"),this.cache.$switchModeButtonBuilderStatus=this.cache.$switchModeButton.find(".elementor-switch-mode-on"),this.cache.$builderEditor=a("#elementor-editor"),this.cache.$wpEditor=a("#postdivrich")},buildElements:function(){var a=this;setTimeout(function(){a.toggleStatus(a)},300),a.cache.$switchModeButton.show()},toggleStatus:function(a){"builder"===a.cache.$switchModeInput.val()?(a.cache.$switchModeButtonBuilderStatus.show(),a.cache.$switchModeButtonEditorStatus.hide(),a.cache.$builderEditor.removeClass("elementor-editor-inactive").addClass("elementor-editor-active"),a.cache.$wpEditor.hide(),a.cache.$switchMode.removeClass("elementor-editor-inactive").addClass("elementor-editor-active")):(a.cache.$switchModeButtonEditorStatus.show(),a.cache.$switchModeButtonBuilderStatus.hide(),a.cache.$wpEditor.show(),a.cache.$builderEditor.addClass("elementor-editor-inactive").removeClass("elementor-editor-active"),a.cache.$switchMode.addClass("elementor-editor-inactive").removeClass("elementor-editor-active"))},bindEvents:function(){var d=this;d.cache.$switchModeButton.on("click",function(e){if(e.preventDefault(),"builder"===d.cache.$switchModeInput.val())d.cache.$switchModeInput.val("editor");else{d.cache.$switchModeInput.val("builder");var f=a("#title");f.val()||f.val("Elementor #"+a("#post_ID").val()),wp.autosave.server.triggerSave(),a(c).on("heartbeat-tick.autosave",function(){a(b).off("beforeunload.edit-post"),b.location=d.cache.$builderEditor.find("a").attr("href")})}d.toggleStatus(d)})},init:function(){this.cacheElements(),this.buildElements(),this.bindEvents()}};a(c).ready(function(a){e.init()})}(jQuery,window,document);
assets/js/frontend.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! elementor - v0.2.1 - 08-06-2016 */
2
  !function(a,b){"use strict";var c=b,d=function(){var a={},b=!1,d=function(a){b=a},e=function(a){c=a},f=function(){return b},g=function(b,c){a[b]=c},h=function(b){var c=b.data("element_type");c&&a[c]&&a[c].call(b)};return{isEditorMode:f,setEditorMode:d,setScopeWindow:e,addBindEvent:g,runReadyTrigger:h}}(),e=function(a){b.YT&&YT.loaded?a(YT):setTimeout(function(){e(a)},350)};d.addBindEvent("counter",function(){this.find(".elementor-counter-number").waypoint(function(){var b=a(this);b.numerator({duration:b.data("duration")})},{offset:"90%"})}),d.addBindEvent("progress",function(){a(this).find(".elementor-progress-bar").waypoint(function(){var b=a(this),c=parseInt(b.data("max"),10),d=b.next(),e=d.find(".elementor-progress-percentage"),f=d.data("inner")?d.data("inner"):"";b.css("width",c+"%"),d.css("width",c+"%"),d.prepend(f+" "),e.html(c+"%")},{offset:"90%"})}),d.addBindEvent("tabs",function(){var b,c,d=a(this),e=d.find(".elementor-tabs").data("active-tab"),f=d.find(".elementor-tab-title"),g=d.find(".elementor-tab-content");e||(e=1);var h=function(a){b&&(b.removeClass("active"),c.hide()),b=f.filter('[data-tab="'+a+'"]'),b.addClass("active"),c=g.filter('[data-tab="'+a+'"]'),c.show()};h(e),f.on("click",function(){h(this.dataset.tab)})}),d.addBindEvent("accordion",function(){var b=a(this),c=b.find(".elementor-accordion").data("active-section"),d=b.find(".elementor-accordion-title"),e=d.filter(".active"),f=function(a){var b=d.filter('[data-section="'+a+'"]'),c=b.hasClass("active");e.removeClass("active").next().slideUp(),c||(b.addClass("active").next().slideDown(),e=b)};c||(c=1),f(c),d.on("click",function(){f(this.dataset.section)})}),d.addBindEvent("toggle",function(){var b=a(this).find(".elementor-toggle-title");b.on("click",function(){var b=a(this),c=b.next();b.hasClass("active")?(b.removeClass("active"),c.slideUp()):(b.addClass("active"),c.slideDown())})}),d.addBindEvent("carousel",function(){var b=a(this).find(".elementor-carousel-wrapper"),c=b.children(".elementor-carousel"),d=c.data("slidestoshow"),e=c.data("slidestoscroll"),f=c.data("autoplay"),g=c.data("autoplayspeed"),h=c.data("dots"),i=c.data("arrows"),j=c.data("infinite"),k=c.data("pauseonhover"),l=c.data("rtl"),m={slidesToShow:d,slidesToScroll:e,autoplay:f,autoplaySpeed:g,dots:h,arrows:i,infinite:j,pauseOnHover:k,rtl:l,responsive:[{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]};c.slick(m)}),d.addBindEvent("slideshow",function(){var b=a(this).find(".elementor-slider-wrapper"),c=b.children(".elementor-slider"),d=c.data("autoplay"),e=c.data("autoplayspeed"),f=c.data("dots"),g=c.data("arrows"),h=c.data("infinite"),i=c.data("pauseonhover"),j=c.data("rtl"),k={slidesToShow:1,autoplay:d,autoplaySpeed:e,dots:f,arrows:g,infinite:h,pauseOnHover:i,rtl:j,responsive:[{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]};c.slick(k)}),d.addBindEvent("alert",function(){a(this).find(".elementor-alert-dismiss").on("click",function(){a(this).parent().fadeOut()})}),d.addBindEvent("section",function(){var b,d={backgroundVideoContainer:this.find(".elementor-background-video-container")},f=!1;if(d.backgroundVideoContainer.length){d.backgroundVideo=d.backgroundVideoContainer.children(".elementor-background-video");var g=function(){var a=d.backgroundVideoContainer.outerWidth(),b=d.backgroundVideoContainer.outerHeight(),c="16:9",e=c.split(":"),f=e[0]/e[1],g=a/f,h=b*f,i=a/b>f;return{width:i?a:h,height:i?g:b}},h=function(){var c=f?a(b.getIframe()):d.backgroundVideo,e=g();c.width(e.width).height(e.height)},i=function(a,c){b=new a.Player(d.backgroundVideo[0],{videoId:c,events:{onReady:function(){b.mute(),h(),b.playVideo()},onStateChange:function(c){c.data===a.PlayerState.ENDED&&b.seekTo(0)}},playerVars:{controls:0,showinfo:0}})},j=d.backgroundVideo.data("video-id");j?(f=!0,e(function(a){setTimeout(function(){i(a,j)},1)})):d.backgroundVideo.one("canplay",h),a(c).on("resize",h)}}),d.addBindEvent("video",function(){var b=a(this),c=b.find(".elementor-custom-embed-image-overlay"),d=b.find("iframe");c.length&&c.on("click",function(){c.remove(),d[0].src=d[0].src+"&autoplay=1"})}),b.elementorBindUI=d}(jQuery,window),jQuery(function(a){a(".elementor-element").each(function(){elementorBindUI.runReadyTrigger(a(this))})});
1
+ /*! elementor - v0.2.2 - 08-06-2016 */
2
  !function(a,b){"use strict";var c=b,d=function(){var a={},b=!1,d=function(a){b=a},e=function(a){c=a},f=function(){return b},g=function(b,c){a[b]=c},h=function(b){var c=b.data("element_type");c&&a[c]&&a[c].call(b)};return{isEditorMode:f,setEditorMode:d,setScopeWindow:e,addBindEvent:g,runReadyTrigger:h}}(),e=function(a){b.YT&&YT.loaded?a(YT):setTimeout(function(){e(a)},350)};d.addBindEvent("counter",function(){this.find(".elementor-counter-number").waypoint(function(){var b=a(this);b.numerator({duration:b.data("duration")})},{offset:"90%"})}),d.addBindEvent("progress",function(){a(this).find(".elementor-progress-bar").waypoint(function(){var b=a(this),c=parseInt(b.data("max"),10),d=b.next(),e=d.find(".elementor-progress-percentage"),f=d.data("inner")?d.data("inner"):"";b.css("width",c+"%"),d.css("width",c+"%"),d.prepend(f+" "),e.html(c+"%")},{offset:"90%"})}),d.addBindEvent("tabs",function(){var b,c,d=a(this),e=d.find(".elementor-tabs").data("active-tab"),f=d.find(".elementor-tab-title"),g=d.find(".elementor-tab-content");e||(e=1);var h=function(a){b&&(b.removeClass("active"),c.hide()),b=f.filter('[data-tab="'+a+'"]'),b.addClass("active"),c=g.filter('[data-tab="'+a+'"]'),c.show()};h(e),f.on("click",function(){h(this.dataset.tab)})}),d.addBindEvent("accordion",function(){var b=a(this),c=b.find(".elementor-accordion").data("active-section"),d=b.find(".elementor-accordion-title"),e=d.filter(".active"),f=function(a){var b=d.filter('[data-section="'+a+'"]'),c=b.hasClass("active");e.removeClass("active").next().slideUp(),c||(b.addClass("active").next().slideDown(),e=b)};c||(c=1),f(c),d.on("click",function(){f(this.dataset.section)})}),d.addBindEvent("toggle",function(){var b=a(this).find(".elementor-toggle-title");b.on("click",function(){var b=a(this),c=b.next();b.hasClass("active")?(b.removeClass("active"),c.slideUp()):(b.addClass("active"),c.slideDown())})}),d.addBindEvent("carousel",function(){var b=a(this).find(".elementor-carousel-wrapper"),c=b.children(".elementor-carousel"),d=c.data("slidestoshow"),e=c.data("slidestoscroll"),f=c.data("autoplay"),g=c.data("autoplayspeed"),h=c.data("dots"),i=c.data("arrows"),j=c.data("infinite"),k=c.data("pauseonhover"),l=c.data("rtl"),m={slidesToShow:d,slidesToScroll:e,autoplay:f,autoplaySpeed:g,dots:h,arrows:i,infinite:j,pauseOnHover:k,rtl:l,responsive:[{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]};c.slick(m)}),d.addBindEvent("slideshow",function(){var b=a(this).find(".elementor-slider-wrapper"),c=b.children(".elementor-slider"),d=c.data("autoplay"),e=c.data("autoplayspeed"),f=c.data("dots"),g=c.data("arrows"),h=c.data("infinite"),i=c.data("pauseonhover"),j=c.data("rtl"),k={slidesToShow:1,autoplay:d,autoplaySpeed:e,dots:f,arrows:g,infinite:h,pauseOnHover:i,rtl:j,responsive:[{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]};c.slick(k)}),d.addBindEvent("alert",function(){a(this).find(".elementor-alert-dismiss").on("click",function(){a(this).parent().fadeOut()})}),d.addBindEvent("section",function(){var b,d={backgroundVideoContainer:this.find(".elementor-background-video-container")},f=!1;if(d.backgroundVideoContainer.length){d.backgroundVideo=d.backgroundVideoContainer.children(".elementor-background-video");var g=function(){var a=d.backgroundVideoContainer.outerWidth(),b=d.backgroundVideoContainer.outerHeight(),c="16:9",e=c.split(":"),f=e[0]/e[1],g=a/f,h=b*f,i=a/b>f;return{width:i?a:h,height:i?g:b}},h=function(){var c=f?a(b.getIframe()):d.backgroundVideo,e=g();c.width(e.width).height(e.height)},i=function(a,c){b=new a.Player(d.backgroundVideo[0],{videoId:c,events:{onReady:function(){b.mute(),h(),b.playVideo()},onStateChange:function(c){c.data===a.PlayerState.ENDED&&b.seekTo(0)}},playerVars:{controls:0,showinfo:0}})},j=d.backgroundVideo.data("video-id");j?(f=!0,e(function(a){setTimeout(function(){i(a,j)},1)})):d.backgroundVideo.one("canplay",h),a(c).on("resize",h)}}),d.addBindEvent("video",function(){var b=a(this),c=b.find(".elementor-custom-embed-image-overlay"),d=b.find("iframe");c.length&&c.on("click",function(){c.remove(),d[0].src=d[0].src+"&autoplay=1"})}),b.elementorBindUI=d}(jQuery,window),jQuery(function(a){a(".elementor-element").each(function(){elementorBindUI.runReadyTrigger(a(this))})});
elementor.php CHANGED
@@ -4,7 +4,7 @@
4
  * Description: The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.
5
  * Plugin URI: https://elementor.com/
6
  * Author: Elementor.com
7
- * Version: 0.2.1
8
  * Author URI: https://elementor.com/
9
  *
10
  * Text Domain: elementor
@@ -22,7 +22,7 @@
22
 
23
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
24
 
25
- define( 'ELEMENTOR_VERSION', '0.2.1' );
26
 
27
  define( 'ELEMENTOR__FILE__', __FILE__ );
28
  define( 'ELEMENTOR_PLUGIN_BASE', plugin_basename( ELEMENTOR__FILE__ ) );
4
  * Description: The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.
5
  * Plugin URI: https://elementor.com/
6
  * Author: Elementor.com
7
+ * Version: 0.2.2
8
  * Author URI: https://elementor.com/
9
  *
10
  * Text Domain: elementor
22
 
23
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
24
 
25
+ define( 'ELEMENTOR_VERSION', '0.2.2' );
26
 
27
  define( 'ELEMENTOR__FILE__', __FILE__ );
28
  define( 'ELEMENTOR_PLUGIN_BASE', plugin_basename( ELEMENTOR__FILE__ ) );
includes/widgets-manager.php CHANGED
@@ -25,6 +25,7 @@ class Widgets_Manager {
25
  'google-maps',
26
  'icon',
27
  'icon-list',
 
28
  'counter',
29
  'progress',
30
  'tabs',
@@ -40,7 +41,6 @@ class Widgets_Manager {
40
  $build_widgets_filename[] = 'gallery';
41
  $build_widgets_filename[] = 'carousel';
42
  $build_widgets_filename[] = 'slideshow';
43
- $build_widgets_filename[] = 'icon-box';
44
  }
45
 
46
  foreach ( $build_widgets_filename as $widget_filename ) {
25
  'google-maps',
26
  'icon',
27
  'icon-list',
28
+ 'icon-box',
29
  'counter',
30
  'progress',
31
  'tabs',
41
  $build_widgets_filename[] = 'gallery';
42
  $build_widgets_filename[] = 'carousel';
43
  $build_widgets_filename[] = 'slideshow';
 
44
  }
45
 
46
  foreach ( $build_widgets_filename as $widget_filename ) {
includes/widgets/icon-box.php CHANGED
@@ -424,7 +424,7 @@ class Widget_Icon_box extends Widget_Base {
424
  $this->add_control(
425
  'content_vertical_alignment',
426
  [
427
- 'label' => __( 'Content Vertical Alignment', 'elementor' ),
428
  'type' => Controls_Manager::SELECT,
429
  'options' => [
430
  'top' => __( 'Top', 'elementor' ),
424
  $this->add_control(
425
  'content_vertical_alignment',
426
  [
427
+ 'label' => __( 'Vertical Alignment', 'elementor' ),
428
  'type' => Controls_Manager::SELECT,
429
  'options' => [
430
  'top' => __( 'Top', 'elementor' ),
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: pojo.me, KingYes, ariel.k, jzaltzberg, yehudah
3
  Tags: page builder, editor, builder, visual editor, front-end editor, design, drag and drop builder, front-end builder, landing page, page builder plugin, site builder, template builder, visual builder, website builder, wysiwyg
4
  Requires at least: 4.4
5
  Tested up to: 4.5
6
- Stable tag: 0.2.1
7
  License: GPLv3
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -43,7 +43,7 @@ We've integrated RTL and multi language support within the framework of Elemento
43
  - [Hebrew](https://translate.wordpress.org/locale/he/default/wp-plugins/elementor) - (he_IL)
44
  - [German](https://translate.wordpress.org/locale/de/default/wp-plugins/elementor) - (de_DE) - in progress
45
 
46
- = Be a contributer =
47
  If you want to contribute, go to our [Elementor GitHub Repository](https://github.com/pojome/elementor) and see where you can help.
48
 
49
  You can also add a new language via [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/elementor). We've built a short guide explaining [how to translate and localize the plugin](https://go.elementor.com/translate/).
@@ -51,7 +51,7 @@ You can also add a new language via [translate.wordpress.org](https://translate.
51
  = Documentation and Support =
52
 
53
  - For documentation and tutorials go to [docs.elementor.com](https://docs.elementor.com/).
54
- - If you have any more questions, visit our support at [Plugin's Forum](https://wordpress.org/support/plugin/elementor).
55
  - For more information about features, FAQs and documentation, check out [Elementor.com](https://elementor.com/).
56
 
57
  = Liked Elementor? =
@@ -109,6 +109,9 @@ Yeah! Elementor enables to seamlessly build RTL pages as well as other translate
109
 
110
  == Changelog ==
111
 
 
 
 
112
  = 0.2.1 - 08.06.2016 =
113
  * New! - Icon Box widget
114
 
3
  Tags: page builder, editor, builder, visual editor, front-end editor, design, drag and drop builder, front-end builder, landing page, page builder plugin, site builder, template builder, visual builder, website builder, wysiwyg
4
  Requires at least: 4.4
5
  Tested up to: 4.5
6
+ Stable tag: 0.2.2
7
  License: GPLv3
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
43
  - [Hebrew](https://translate.wordpress.org/locale/he/default/wp-plugins/elementor) - (he_IL)
44
  - [German](https://translate.wordpress.org/locale/de/default/wp-plugins/elementor) - (de_DE) - in progress
45
 
46
+ = Be a contributor =
47
  If you want to contribute, go to our [Elementor GitHub Repository](https://github.com/pojome/elementor) and see where you can help.
48
 
49
  You can also add a new language via [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/elementor). We've built a short guide explaining [how to translate and localize the plugin](https://go.elementor.com/translate/).
51
  = Documentation and Support =
52
 
53
  - For documentation and tutorials go to [docs.elementor.com](https://docs.elementor.com/).
54
+ - If you have any more questions, visit our support on the [Plugin's Forum](https://wordpress.org/support/plugin/elementor).
55
  - For more information about features, FAQs and documentation, check out [Elementor.com](https://elementor.com/).
56
 
57
  = Liked Elementor? =
109
 
110
  == Changelog ==
111
 
112
+ = 0.2.2 - 08.06.2016 =
113
+ * Tweak! - Minor change from the last release
114
+
115
  = 0.2.1 - 08.06.2016 =
116
  * New! - Icon Box widget
117