WordPress/wp-includes/js/dist/data-controls.min.js

2 lines
2.9 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
Block Editor: Update the WordPress Packages to the ones used in the Gutenberg 6.8 release. Updated packages: @wordpress/a11y@2.5.1 @wordpress/annotations@1.7.2 @wordpress/api-fetch@3.6.2 @wordpress/autop@2.5.1 @wordpress/babel-preset-default@4.6.2 @wordpress/blob@2.5.1 @wordpress/block-directory@1.0.2 @wordpress/block-editor@3.2.2 @wordpress/block-library@2.9.2 @wordpress/block-serialization-default-parser@3.4.1 @wordpress/block-serialization-spec-parser@3.3.1 @wordpress/blocks@6.7.2 @wordpress/components@8.3.2 @wordpress/compose@3.7.2 @wordpress/core-data@2.7.2 @wordpress/data-controls@1.3.2 @wordpress/data@4.9.2 @wordpress/deprecated@2.6.1 @wordpress/dom-ready@2.5.1 @wordpress/dom@2.5.2 @wordpress/e2e-test-utils@2.4.2 @wordpress/e2e-tests@1.7.2 @wordpress/edit-post@3.8.2 @wordpress/editor@9.7.2 @wordpress/element@2.8.2 @wordpress/escape-html@1.5.1 @wordpress/format-library@1.9.2 @wordpress/is-shallow-equal@1.6.1 @wordpress/keycodes@2.6.2 @wordpress/list-reusable-blocks@1.8.2 @wordpress/media-utils@1.2.2 @wordpress/notices@1.8.2 @wordpress/nux@3.7.2 @wordpress/plugins@2.7.2 @wordpress/priority-queue@1.3.1 @wordpress/redux-routine@3.6.2 @wordpress/rich-text@3.7.2 @wordpress/scripts@5.1.0 @wordpress/server-side-render@1.3.2 @wordpress/url@2.8.1 @wordpress/viewport@2.8.2 @wordpress/wordcount@2.6.2 Props gziolo, youknowriad. Fixes: #48310 Built from https://develop.svn.wordpress.org/trunk@46546 git-svn-id: http://core.svn.wordpress.org/trunk@46343 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-15 18:17:12 +02:00
this.wp=this.wp||{},this.wp.dataControls=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=317)}({17:function(t,e,r){"use strict";var n=r(30);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||Object(n.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.d(e,"a",(function(){return o}))},30:function(t,e,r){"use strict";function n(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}r.d(e,"a",(function(){return n}))},317:function(t,e,r){"use strict";r.r(e),r.d(e,"apiFetch",(function(){return c})),r.d(e,"select",(function(){return a})),r.d(e,"dispatch",(function(){return s})),r.d(e,"controls",(function(){return f}));var n=r(17),o=r(34),u=r.n(o),i=r(4),c=function(t){return{type:"API_FETCH",request:t}};function a(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return{type:"SELECT",storeKey:t,selectorName:e,args:n}}function s(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return{type:"DISPATCH",storeKey:t,actionName:e,args:n}}var f={API_FETCH:function(t){var e=t.request;return u()(e)},SELECT:Object(i.createRegistryControl)((function(t){return function(e){var r,o=e.storeKey,u=e.selectorName,i=e.args;return t.select(o)[u].hasResolver?function(t,e){var r=e.storeKey,n=e.selectorName,o=e.args;return new Promise((function(e){var u=function(){return t.select("core/data").hasFinishedResolution(r,n,o)},i=function(){return t.select(r)[n].apply(null,o)},c=i();if(u())return e(c);var a=t.subscribe((function(){u()&&(a(),e(i()))}))}))}(t,{storeKey:o,selectorName:u,args:i}):(r=t.select(o))[u].apply(r,Object(n.a)(i))}})),DISPATCH:Object(i.createRegistryControl)((function(t){return function(e){var r,o=e.storeKey,u=e.actionName,i=e.args;return(r=t.dispatch(o))[u].apply(r,Object(n.a)(i))}}))}},34:function(t,e){!function(){t.exports=this.wp.apiFetch}()},4:function(t,e){!function(){t.exports=this.wp.data}()}});