芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/jet-blocks/assets/js/jet-blocks-editor.min.js
!function(i){"use strict";var o={activeSection:null,modal:!1,init:function(){elementor.channels.editor.on("section:activated",o.onAuthSectionActivated),elementor.channels.editor.on("section:activated",o.onSearchSectionActivated),elementor.channels.editor.on("section:activated",o.onCartSectionActivated),window.elementor.on("preview:loaded",function(){(elementor.$preview[0].contentWindow.JetBlocksEditor=o).onPreviewLoaded()})},onCartSectionActivated:function(e,t){t=t.getOption("editedElementView");"jet-blocks-cart"===t.model.get("widgetType")&&(window.JetBlocksEditor.activeSection=e,-1!==["cart_list_style","cart_list_items_style","cart_buttons_style"].indexOf(e)?t.$el.find(".jet-blocks-cart").addClass("jet-cart-hover"):t.$el.find(".jet-blocks-cart").removeClass("jet-cart-hover"))},onSearchSectionActivated:function(e,t){t=t.getOption("editedElementView");"jet-search"===t.model.get("widgetType")&&(window.JetBlocksEditor.activeSection=e,-1!==["section_popup_style","section_popup_close_style","section_form_style"].indexOf(e)?t.$el.find(".jet-search").addClass("jet-search-popup-active"):t.$el.find(".jet-search").removeClass("jet-search-popup-active"))},onAuthSectionActivated:function(e,t){var i,t=t.getOption("editedElementView");"jet-auth-links"===t.model.get("widgetType")&&(window.JetBlocksEditor.activeSection=e,i=-1!==["section_logout_link","section_logout_link_style"].indexOf(e),e=-1!==["section_registered_link","section_registered_link_style"].indexOf(e),i?(t.$el.find(".jet-auth-links__logout").css("display","flex"),t.$el.find(".jet-auth-links__login").css("display","none")):(t.$el.find(".jet-auth-links__logout").css("display","none"),t.$el.find(".jet-auth-links__login").css("display","flex")),e?(t.$el.find(".jet-auth-links__registered").css("display","flex"),t.$el.find(".jet-auth-links__register").css("display","none")):(t.$el.find(".jet-auth-links__registered").css("display","none"),t.$el.find(".jet-auth-links__register").css("display","flex")))},onPreviewLoaded:function(){window.elementor.$previewContents;i("#elementor-preview-iframe")[0].contentWindow.elementorFrontend.hooks.addAction("frontend/element_ready/jet-hamburger-panel.default",function(e){e.find(".jet-blocks__edit-cover").on("click",o.showTemplatesModal),e.find(".jet-blocks-new-template-link").on("click",function(e){window.open(i(this).attr("href"))})}),o.getModal().on("hide",function(){window.elementor.reloadPreview()})},showTemplatesModal:function(){var e=i(this).data("template-edit-link");o.showModal(e)},showModal:function(e){var t;o.getModal().show(),i("#jet-blocks-edit-template-modal .dialog-message").html('
'),i("#jet-blocks-edit-template-modal .dialog-message").append('
Loading
'),e=i("#jet-blocks-edit-frame"),t=i("#jet-blocks-loading"),e.on("load",function(){t.fadeOut(300)})},getModal:function(){return o.modal||(this.modal=elementor.dialogsManager.createWidget("lightbox",{id:"jet-blocks-edit-template-modal",closeButton:!0,closeButtonClass:"eicon-close",hide:{onBackgroundClick:!1}})),o.modal}};i(window).on("elementor:init",o.init),window.JetBlocksEditor=o}(jQuery);