/*! elementor - v2.2.5 - 07-10-2018 */
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=163)}({163:function(e,t,n){"use strict";!function(e){var t={cacheElements:function(){this.isElementorMode="1"===ElementorGutenbergSettings.isElementorMode,this.cache={},this.cache.$gutenberg=e("#editor"),this.cache.$switchMode=e(e("#elementor-gutenberg-button-switch-mode").html()),this.cache.$gutenberg.find(".edit-post-header-toolbar").append(this.cache.$switchMode),this.cache.$switchModeButton=this.cache.$switchMode.find("#elementor-switch-mode-button"),this.toggleStatus(),this.buildPanel();var t=this;wp.data.subscribe(function(){setTimeout(function(){t.buildPanel()},1)})},buildPanel:function(){var t=this;e("#elementor-editor").length||(t.cache.$editorPanel=e(e("#elementor-gutenberg-panel").html()),t.cache.$gurenbergBlockList=t.cache.$gutenberg.find(".editor-block-list__layout, .editor-post-text-editor"),t.cache.$gurenbergBlockList.after(t.cache.$editorPanel),t.cache.$editorPanelButton=t.cache.$editorPanel.find("#elementor-go-to-edit-page-link"),t.cache.$editorPanelButton.on("click",function(n){n.preventDefault(),t.animateLoader(),wp.data.select("core/editor").getEditedPostAttribute("title")||wp.data.dispatch("core/editor").editPost({title:"Elementor #"+e("#post_ID").val()}),wp.data.dispatch("core/editor").savePost(),t.redirectWhenSave()}))},bindEvents:function(){var e=this;e.cache.$switchModeButton.on("click",function(){if(e.isElementorMode=!e.isElementorMode,e.toggleStatus(),e.isElementorMode)e.cache.$editorPanelButton.trigger("click");else{var t=wp.data.dispatch("core/editor");t.editPost({gutenberg_elementor_mode:!1}),t.savePost()}})},redirectWhenSave:function(){var e=this;setTimeout(function(){wp.data.select("core/editor").isSavingPost()?e.redirectWhenSave():location.href=ElementorGutenbergSettings.editLink},300)},animateLoader:function(){this.cache.$editorPanelButton.addClass("elementor-animate")},toggleStatus:function(){jQuery("body").toggleClass("elementor-editor-active",this.isElementorMode).toggleClass("elementor-editor-inactive",!this.isElementorMode)},init:function(){var e=this;setTimeout(function(){e.cacheElements(),e.bindEvents()},1)}};e(function(){t.init()})}(jQuery)}});