mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 22:26:06 +01:00
067856838b
Merges [48719] to the 5.5 branch. Fixes #50841. Built from https://develop.svn.wordpress.org/branches/5.5@48720 git-svn-id: http://core.svn.wordpress.org/branches/5.5@48482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
3.6 KiB
JavaScript
2 lines
3.6 KiB
JavaScript
/*! This file is auto-generated */
|
|
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=413)}({18:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(26);var o=r(35),u=r(29);function c(t){return function(t){if(Array.isArray(t))return Object(n.a)(t)}(t)||Object(o.a)(t)||Object(u.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},26:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,"a",(function(){return n}))},29:function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var n=r(26);function o(t,e){if(t){if("string"==typeof t)return Object(n.a)(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(t,e):void 0}}},35:function(t,e,r){"use strict";function n(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}r.d(e,"a",(function(){return n}))},4:function(t,e){!function(){t.exports=this.wp.data}()},413:function(t,e,r){"use strict";r.r(e),r.d(e,"apiFetch",(function(){return a})),r.d(e,"select",(function(){return i})),r.d(e,"__unstableSyncSelect",(function(){return f})),r.d(e,"dispatch",(function(){return s})),r.d(e,"controls",(function(){return l}));var n=r(18),o=r(45),u=r.n(o),c=r(4),a=function(t){return{type:"API_FETCH",request:t}};function i(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 f(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:"SYNC_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 l={API_FETCH:function(t){var e=t.request;return u()(e)},SELECT:Object(c.createRegistryControl)((function(t){return function(e){var r,o=e.storeKey,u=e.selectorName,c=e.args;return(r=t[t.select(o)[u].hasResolver?"__experimentalResolveSelect":"select"](o))[u].apply(r,Object(n.a)(c))}})),SYNC_SELECT:Object(c.createRegistryControl)((function(t){return function(e){var r,o=e.storeKey,u=e.selectorName,c=e.args;return(r=t.select(o))[u].apply(r,Object(n.a)(c))}})),DISPATCH:Object(c.createRegistryControl)((function(t){return function(e){var r,o=e.storeKey,u=e.actionName,c=e.args;return(r=t.dispatch(o))[u].apply(r,Object(n.a)(c))}}))}},45:function(t,e){!function(){t.exports=this.wp.apiFetch}()}}); |