PluginProbe
Elementor Website Builder – more than just a page builder / 3.7.0-dev1
Elementor Website Builder – more than just a page builder v3.7.0-dev1
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | assets/js/gutenberg.min.js +2 -10 4.3.1 → 3.7.0-dev1 View file →
@@ -1,10 +1,2 @@
1 -(function(e){(function(t){"use strict";var n={cacheElements:function cacheElements(){var e=this;e.isElementorMode=ElementorGutenbergSettings.isElementorMode,e.cache={},e.cache.$gutenberg=t(`#editor`),e.cache.$switchMode=t(t(`#elementor-gutenberg-button-switch-mode`).html()),e.cache.$switchModeButton=e.cache.$switchMode.find(`#elementor-switch-mode-button`),e.bindEvents(),e.toggleStatus(),wp.data.subscribe(function(){setTimeout(function(){e.buildPanel()},1)})},buildPanel:function buildPanel(){var e=this;if(e.cache.$gutenberg.find(`#elementor-switch-mode`).length||e.cache.$gutenberg.find(`.edit-post-header-toolbar`).append(e.cache.$switchMode),this.hasIframe()&&this.handleIframe(),!t(`#elementor-editor`).length){e.cache.$editorPanel=t(t(`#elementor-gutenberg-panel`).html());var n=e.cache.$gutenberg.find(`.block-editor-writing-flow`);n.length||(n=e.cache.$gutenberg.find(`.is-desktop-preview`)),e.cache.$gurenbergBlockList=n,e.cache.$gurenbergBlockList.append(e.cache.$editorPanel),e.cache.$editorPanelButton=e.cache.$editorPanel.find(`#elementor-go-to-edit-page-link`),e.cache.$editorPanelButton.on(`click`,function(t){t.preventDefault(),e.handleEditButtonClick()})}},handleIframe:function handleIframe(){this.hideIframeContent(),this.buildPanelTopBar()},hasIframe:function hasIframe(){return!!this.cache.$gutenberg.find(`iframe[name="editor-canvas"]`).length},hideIframeContent:function hideIframeContent(){this.isElementorMode&&this.cache.$gutenberg.find(`iframe[name="editor-canvas"]`).contents().find(`body`).append(`<style>
2 - .editor-post-text-editor,
3 - .block-editor-block-list__layout {
4 - display: none;
5 - }
6 -
7 - body {
8 - padding: 0 !important;
9 - }
10 - </style>`)},buildPanelTopBar:function buildPanelTopBar(){var e=this;!t(`#elementor-edit-mode-button`).length&&this.isElementorMode&&(e.cache.$editorBtnTop=t(t(`#elementor-gutenberg-button-tmpl`).html()),e.cache.$gutenberg.find(`.edit-post-header-toolbar`).append(e.cache.$editorBtnTop),t(`#elementor-edit-mode-button`).on(`click`,function(t){t.preventDefault(),e.handleEditButtonClick(!1)}))},handleEditButtonClick:function handleEditButtonClick(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,n=this;e&&n.animateLoader(),wp.data.select(`core/editor`).getCurrentPost().status===`auto-draft`&&(wp.data.select(`core/editor`).getEditedPostAttribute(`title`)||wp.data.dispatch(`core/editor`).editPost({title:`Elementor #`+t(`#post_ID`).val()}),wp.data.dispatch(`core/editor`).savePost()),n.redirectWhenSave()},bindEvents:function bindEvents(){var t=this;t.cache.$switchModeButton.on(`click`,function(){t.isElementorMode?elementorCommon.dialogsManager.createWidget(`confirm`,{message:(0,e.__)(`You are about to switch this page from the Elementor editor to the WordPress editor. Your current layout, design, and content may break and need to be rebuilt. Are you sure you want to continue?`,`elementor`),headerMessage:(0,e.__)(`Edit with WordPress?`,`elementor`),strings:{confirm:(0,e.__)(`Continue`,`elementor`),cancel:(0,e.__)(`Cancel`,`elementor`)},defaultOption:`cancel`,onConfirm:function onConfirm(){var e=wp.data.dispatch(`core/editor`);e.editPost({gutenberg_elementor_mode:!1}),e.savePost(),t.isElementorMode=!t.isElementorMode,t.toggleStatus()}}).show():(t.isElementorMode=!t.isElementorMode,t.toggleStatus(),t.cache.$editorPanelButton.trigger(`click`))})},redirectWhenSave:function redirectWhenSave(){var e=this;setTimeout(function(){wp.data.select(`core/editor`).isSavingPost()?e.redirectWhenSave():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()}};t(function(){n.init()})})(jQuery)})(wp.i18n);
1 +/*! elementor - v3.5.6 - 16-03-2022 */
2 +(()=>{var e={22761:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},42094:(e,t,r)=>{var n=r(62190)("unscopables"),o=Array.prototype;null==o[n]&&r(74216)(o,n,{}),e.exports=function(e){o[n][e]=!0}},6365:(e,t,r)=>{var n=r(67334);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},78309:(e,t,r)=>{var n=r(11528),o=r(8467),i=r(26033),c=r(26078),a=r(63531);e.exports=function(e,t){var r=1==e,u=2==e,s=3==e,l=4==e,f=6==e,d=5==e||f,p=t||a;return function(t,a,h){for(var v,g,m=i(t),y=o(m),b=n(a,h,3),_=c(y.length),w=0,x=r?p(t,_):u?p(t,0):void 0;_>w;w++)if((d||w in y)&&(g=b(v=y[w],w,m),e))if(r)x[w]=g;else if(g)switch(e){case 3:return!0;case 5:return v;case 6:return w;case 2:x.push(v)}else if(l)return!1;return f?-1:s||l?l:x}}},81071:(e,t,r)=>{var n=r(67334),o=r(99141),i=r(62190)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),n(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},63531:(e,t,r)=>{var n=r(81071);e.exports=function(e,t){return new(n(e))(t)}},26688:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},60066:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},11528:(e,t,r)=>{var n=r(22761);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},61622:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},36628:(e,t,r)=>{e.exports=!r(48625)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},5050:(e,t,r)=>{var n=r(67334),o=r(38113).document,i=n(o)&&n(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},65772:(e,t,r)=>{var n=r(38113),o=r(60066),i=r(74216),c=r(17738),a=r(11528),$export=function(e,t,r){var u,s,l,f,d=e&$export.F,p=e&$export.G,h=e&$export.S,v=e&$export.P,g=e&$export.B,m=p?n:h?n[t]||(n[t]={}):(n[t]||{}).prototype,y=p?o:o[t]||(o[t]={}),b=y.prototype||(y.prototype={});for(u in p&&(r=t),r)l=((s=!d&&m&&void 0!==m[u])?m:r)[u],f=g&&s?a(l,n):v&&"function"==typeof l?a(Function.call,l):l,m&&c(m,u,l,e&$export.U),y[u]!=l&&i(y,u,f),v&&b[u]!=l&&(b[u]=l)};n.core=o,$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128,e.exports=$export},48625:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},20646:(e,t,r)=>{e.exports=r(8655)("native-function-to-string",Function.toString)},38113:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},54040:e=>{var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},74216:(e,t,r)=>{var n=r(98558),o=r(36061);e.exports=r(36628)?function(e,t,r){return n.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},5100:(e,t,r)=>{e.exports=!r(36628)&&!r(48625)((function(){return 7!=Object.defineProperty(r(5050)("div"),"a",{get:function(){return 7}}).a}))},8467:(e,t,r)=>{var n=r(26688);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},99141:(e,t,r)=>{var n=r(26688);e.exports=Array.isArray||function isArray(e){return"Array"==n(e)}},67334:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},81422:e=>{e.exports=!1},98558:(e,t,r)=>{var n=r(6365),o=r(5100),i=r(31382),c=Object.defineProperty;t.f=r(36628)?Object.defineProperty:function defineProperty(e,t,r){if(n(e),t=i(t,!0),n(r),o)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},36061:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},17738:(e,t,r)=>{var n=r(38113),o=r(74216),i=r(54040),c=r(25078)("src"),a=r(20646),u="toString",s=(""+a).split(u);r(60066).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,r,a){var u="function"==typeof r;u&&(i(r,"name")||o(r,"name",t)),e[t]!==r&&(u&&(i(r,c)||o(r,c,e[t]?""+e[t]:s.join(String(t)))),e===n?e[t]=r:a?e[t]?e[t]=r:o(e,t,r):(delete e[t],o(e,t,r)))})(Function.prototype,u,(function toString(){return"function"==typeof this&&this[c]||a.call(this)}))},8655:(e,t,r)=>{var n=r(60066),o=r(38113),i="__core-js_shared__",c=o[i]||(o[i]={});(e.exports=function(e,t){return c[e]||(c[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(81422)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},3338:e=>{var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},26078:(e,t,r)=>{var n=r(3338),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},26033:(e,t,r)=>{var n=r(61622);e.exports=function(e){return Object(n(e))}},31382:(e,t,r)=>{var n=r(67334);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},25078:e=>{var t=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+r).toString(36))}},62190:(e,t,r)=>{var n=r(8655)("wks"),o=r(25078),i=r(38113).Symbol,c="function"==typeof i;(e.exports=function(e){return n[e]||(n[e]=c&&i[e]||(c?i:o)("Symbol."+e))}).store=n},71954:(e,t,r)=>{"use strict";var n=r(65772),o=r(78309)(5),i="find",c=!0;i in[]&&Array(1).find((function(){c=!1})),n(n.P+n.F*c,"Array",{find:function find(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),r(42094)(i)},38003:e=>{"use strict";e.exports=wp.i18n}},t={};function __webpack_require__(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,__webpack_require__),o.exports}(()=>{"use strict";var e,t,r=__webpack_require__(38003).__;__webpack_require__(71954),e=jQuery,t={cacheElements:function cacheElements(){var t=this;t.isElementorMode=ElementorGutenbergSettings.isElementorMode,t.cache={},t.cache.$gutenberg=e("#editor"),t.cache.$switchMode=e(e("#elementor-gutenberg-button-switch-mode").html()),t.cache.$switchModeButton=t.cache.$switchMode.find("#elementor-switch-mode-button"),t.bindEvents(),t.toggleStatus(),wp.data.subscribe((function(){setTimeout((function(){t.buildPanel()}),1)}))},buildPanel:function buildPanel(){var t=this;t.cache.$gutenberg.find("#elementor-switch-mode").length||t.cache.$gutenberg.find(".edit-post-header-toolbar").append(t.cache.$switchMode),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, .block-editor-block-list__layout"),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(r){r.preventDefault(),t.animateLoader(),"auto-draft"===wp.data.select("core/editor").getCurrentPost().status&&(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 bindEvents(){var e=this;e.cache.$switchModeButton.on("click",(function(){e.isElementorMode?elementorCommon.dialogsManager.createWidget("confirm",{message:r("Please note that you are switching to WordPress default editor. Your current layout, design and content might break.","elementor"),headerMessage:r("Back to WordPress Editor","elementor"),strings:{confirm:r("Continue","elementor"),cancel:r("Cancel","elementor")},defaultOption:"confirm",onConfirm:function onConfirm(){var t=wp.data.dispatch("core/editor");t.editPost({gutenberg_elementor_mode:!1}),t.savePost(),e.isElementorMode=!e.isElementorMode,e.toggleStatus()}}).show():(e.isElementorMode=!e.isElementorMode,e.toggleStatus(),e.cache.$editorPanelButton.trigger("click"))}))},redirectWhenSave:function redirectWhenSave(){var e=this;setTimeout((function(){wp.data.select("core/editor").isSavingPost()?e.redirectWhenSave():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()}},e((function(){t.init()}))})()})();