WordPress/wp-includes/js/dist/reusable-blocks.min.js

2 lines
11 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.reusableBlocks=function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=463)}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(38);var c=n(28),o=n(39);function i(e,t){return Object(r.a)(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,c,o=[],i=!0,u=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){u=!0,c=e}finally{try{i||null==n.return||n.return()}finally{if(u)throw c}}return o}}(e,t)||Object(c.a)(e,t)||Object(o.a)()}},16:function(e,t){e.exports=window.regeneratorRuntime},2:function(e,t){e.exports=window.lodash},24:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(24);function c(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},29:function(e,t){e.exports=window.wp.url},3:function(e,t){e.exports=window.wp.components},37:function(e,t){e.exports=window.wp.coreData},38:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},39:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=window.wp.data},463:function(e,t,n){"use strict";n.r(t),n.d(t,"store",(function(){return C})),n.d(t,"ReusableBlocksMenuItems",(function(){return U}));var r={};n.r(r),n.d(r,"__experimentalConvertBlockToStatic",(function(){return w})),n.d(r,"__experimentalConvertBlocksToReusable",(function(){return k})),n.d(r,"__experimentalDeleteReusableBlock",(function(){return _})),n.d(r,"__experimentalSetEditingReusableBlock",(function(){return E}));var c={};n.r(c),n.d(c,"__experimentalIsEditingReusableBlock",(function(){return S}));var o=n(6),i=(n(37),n(4)),u=n(16),a=n.n(u),l=n(48),s=n(2),b=n(9),f=n(1);function p(e){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:e}}function d(e,t){return{type:"CONVERT_BLOCKS_TO_REUSABLE",clientIds:e,title:t}}function O(e){return{type:"DELETE_REUSABLE_BLOCK",id:e}}var j={CONVERT_BLOCK_TO_STATIC:Object(i.createRegistryControl)((function(e){return function(t){var n=t.clientId,r=e.select("core/block-editor").getBlock(n),c=e.select("core").getEditedEntityRecord("postType","wp_block",r.attributes.ref),o=Object(b.parse)(Object(s.isFunction)(c.content)?c.content(c):c.content);e.dispatch("core/block-editor").replaceBlocks(r.clientId,o)}})),CONVERT_BLOCKS_TO_REUSABLE:Object(i.createRegistryControl)((function(e){return function(){var t=Object(l.a)(a.a.mark((function t(n){var r,c,o,i,u;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.client