%PDF- %PDF-
Direktori : /home/jalalj2hb/www/wp-content/plugins/elementor/assets/js/ |
Current File : /home/jalalj2hb/www/wp-content/plugins/elementor/assets/js/gutenberg.min.js |
/*! elementor - v2.1.6 - 31-07-2018 */ !function r(c,a,s){function d(t,e){if(!a[t]){if(!c[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(l)return l(t,!0);var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}var n=a[t]={exports:{}};c[t][0].call(n.exports,function(e){return d(c[t][1][e]||e)},n,n.exports,r,c,a,s)}return a[t].exports}for(var l="function"==typeof require&&require,e=0;e<s.length;e++)d(s[e]);return d}({1:[function(e,t,i){!function(i){"use strict";var e={cacheElements:function(){this.isElementorMode="1"===ElementorGutenbergSettings.isElementorMode,this.cache={},this.cache.$gutenberg=i("#editor"),this.cache.$switchMode=i(i("#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 e=this;wp.data.subscribe(function(){setTimeout(function(){e.buildPanel()},1)})},buildPanel:function(){var t=this;i("#elementor-editor").length||(t.cache.$editorPanel=i(i("#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(e){e.preventDefault(),t.animateLoader(),wp.data.select("core/editor").getEditedPostAttribute("title")||wp.data.dispatch("core/editor").editPost({title:"Elementor #"+i("#post_ID").val()}),wp.data.dispatch("core/editor").savePost(),t.redirectWhenSave()}))},bindEvents:function(){var t=this;t.cache.$switchModeButton.on("click",function(){if(t.isElementorMode=!t.isElementorMode,t.toggleStatus(),t.isElementorMode)t.cache.$editorPanelButton.trigger("click");else{var e=wp.data.dispatch("core/editor");e.editPost({gutenberg_elementor_mode:!1}),e.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)}};i(function(){e.init()})}(jQuery)},{}]},{},[1]);