XylotrechusZ
!function(o){var e={};function t(n){if(e[n])return e[n].exports;var c=e[n]={i:n,l:!1,exports:{}};return o[n].call(c.exports,c,c.exports,t),c.l=!0,c.exports}t.m=o,t.c=e,t.d=function(o,e,n){t.o(o,e)||Object.defineProperty(o,e,{enumerable:!0,get:n})},t.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},t.t=function(o,e){if(1&e&&(o=t(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var c in o)t.d(n,c,function(e){return o[e]}.bind(null,c));return n},t.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(e,"a",e),e},t.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},t.p="",t(t.s=0)}([function(o,e,t){o.exports=t(1)},function(o,e,t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};"undefined"!=typeof wp&&void 0!==wp.domReady&&wp.domReady((function(){if("undefined"!==advgb_blocks_vars.blocks.active_blocks&&0!==advgb_blocks_vars.blocks.active_blocks.length){var o=null;void 0!==window._wpLoadBlockEditor&&(o=window._wpLoadBlockEditor),null!==o&&o.then((function(){if(!0===advgb_blocks_vars.original_settings.allowedBlockTypes){var o=[],e=[],t=!1,c=wp.blocks.getBlockTypes(),r={active_blocks:Object.values(advgb_blocks_vars.blocks.active_blocks),inactive_blocks:Object.values(advgb_blocks_vars.blocks.inactive_blocks)};for(var i in c){var l="",a={name:c[i].name,icon:c[i].icon.src,title:c[i].title,category:c[i].category,parent:c[i].parent},s=c[i].icon.src?c[i].icon.src:c[i].icon;void 0!==c[i].icon.foreground&&(a.iconColor=c[i].icon.foreground),"function"==typeof s?void 0!==s.prototype?(a.icon=wp.element.renderToString(wp.element.createElement(s)),a.icon=a.icon.replace(/stopcolor/g,"stop-color"),a.icon=a.icon.replace(/stopopacity/g,"stop-opacity")):(l=wp.element.createElement(wp.components.Dashicon,{icon:"block-default"}),a.icon=wp.element.renderToString(l)):"object"===(void 0===s?"undefined":n(s))?(a.icon=wp.element.renderToString(s),a.icon=a.icon.replace(/stopcolor/g,"stop-color"),a.icon=a.icon.replace(/stopopacity/g,"stop-opacity")):"string"==typeof s&&(l=wp.element.createElement(wp.components.Dashicon,{icon:s}),a.icon=wp.element.renderToString(l)),o.push(a),r.active_blocks.indexOf(c[i].name)>=0?e.push(c[i].name):r.inactive_blocks.indexOf(c[i].name)>=0||(e.push(c[i].name),t=!0)}if(t){void 0!==console&&void 0!==console.error&&console.log("Reloading editor by PublishPress Blocks plugin"),setTimeout((function(){wp.data.dispatch("core/editor").updateEditorSettings({allowedBlockTypes:e})}),3e3);var p=wp.blocks.getCategories();try{jQuery.ajax({url:advgb_blocks_vars.ajaxurl,method:"POST",data:{action:"advgb_update_blocks_list",blocksList:JSON.stringify(o),categoriesList:JSON.stringify(p),nonce:advgb_blocks_vars.nonce},success:function(o){}})}catch(o){}}}}))}}))}]);
//# sourceMappingURL=editor.js.map