PluginProbe
Gutenberg / 6.0.0
Gutenberg v6.0.0
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
gutenberg / build / data-controls / index.js

index.js in Gutenberg 6.0.0, at build/data-controls/index.js

1 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 this.wp=this.wp||{},this.wp.dataControls=function(t){var r={};function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=250)}({17:function(t,r,e){"use strict";var n=e(30);function o(t){return function(t){if(Array.isArray(t)){for(var r=0,e=new Array(t.length);r<t.length;r++)e[r]=t[r];return e}}(t)||Object(n.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}e.d(r,"a",function(){return o})},250:function(t,r,e){"use strict";e.r(r),e.d(r,"apiFetch",function(){return i}),e.d(r,"select",function(){return a}),e.d(r,"dispatch",function(){return s}),e.d(r,"controls",function(){return f});var n=e(17),o=e(35),u=e.n(o),c=e(4),i=function(t){return{type:"API_FETCH",request:t}};function a(t,r){for(var e=arguments.length,n=new Array(e>2?e-2:0),o=2;o<e;o++)n[o-2]=arguments[o];return{type:"SELECT",storeKey:t,selectorName:r,args:n}}function s(t,r){for(var e=arguments.length,n=new Array(e>2?e-2:0),o=2;o<e;o++)n[o-2]=arguments[o];return{type:"DISPATCH",storeKey:t,actionName:r,args:n}}var f={API_FETCH:function(t){var r=t.request;return u()(r)},SELECT:Object(c.createRegistryControl)(function(t){return function(r){var e,o=r.storeKey,u=r.selectorName,c=r.args;return t.select(o)[u].hasResolver?function(t,r){var e=r.storeKey,n=r.selectorName,o=r.args;return new Promise(function(r){var u=function(){return t.select("core/data").hasFinishedResolution(e,n,o)},c=function(){return t.select(e)[n].apply(null,o)},i=c();if(u())return r(i);var a=t.subscribe(function(){u()&&(a(),r(c()))})})}(t,{storeKey:o,selectorName:u,args:c}):(e=t.select(o))[u].apply(e,Object(n.a)(c))}}),DISPATCH:Object(c.createRegistryControl)(function(t){return function(r){var e,o=r.storeKey,u=r.actionName,c=r.args;return(e=t.dispatch(o))[u].apply(e,Object(n.a)(c))}})}},30:function(t,r,e){"use strict";function n(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}e.d(r,"a",function(){return n})},35:function(t,r){!function(){t.exports=this.wp.apiFetch}()},4:function(t,r){!function(){t.exports=this.wp.data}()}});