mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 23:25:50 +01:00
0fb5da94e6
Updates packages: annotations, api-fetch, block-library, blocks, components, core-data, data, dom, edit-post, editor, format-library, jest-console, jest-preset-default, keycodes, html-entities, list-reusable-blocks, notices, nux, rich-text, scripts, token-list, url, viewport Fixes undefined notices in some blocks. Removes incorrect `'gutenberg'` textdomain too. See #45145 Built from https://develop.svn.wordpress.org/branches/5.0@43919 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
this.wp=this.wp||{},this.wp.reduxRoutine=function(t){var n={};function r(e){if(n[e])return n[e].exports;var u=n[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},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,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var u in t)r.d(e,u,function(n){return t[n]}.bind(null,u));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=322)}({177:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createChannel=n.subscribe=n.cps=n.apply=n.call=n.invoke=n.delay=n.race=n.join=n.fork=n.error=n.all=void 0;var e=function(t){return t&&t.__esModule?t:{default:t}}(r(178));n.all=function(t){return{type:e.default.all,value:t}},n.error=function(t){return{type:e.default.error,error:t}},n.fork=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return{type:e.default.fork,iterator:t,args:r}},n.join=function(t){return{type:e.default.join,task:t}},n.race=function(t){return{type:e.default.race,competitors:t}},n.delay=function(t){return new Promise(function(n){setTimeout(function(){return n(!0)},t)})},n.invoke=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return{type:e.default.call,func:t,context:null,args:r}},n.call=function(t,n){for(var r=arguments.length,u=Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return{type:e.default.call,func:t,context:n,args:u}},n.apply=function(t,n,r){return{type:e.default.call,func:t,context:n,args:r}},n.cps=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return{type:e.default.cps,func:t,args:r}},n.subscribe=function(t){return{type:e.default.subscribe,channel:t}},n.createChannel=function(t){var n=[];return t(function(t){return n.forEach(function(n){return n(t)})}),{subscribe:function(t){return n.push(t),function(){return n.splice(n.indexOf(t),1)}}}}},178:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e={all:Symbol("all"),error:Symbol("error"),fork:Symbol("fork"),join:Symbol("join"),race:Symbol("race"),call:Symbol("call"),cps:Symbol("cps"),subscribe:Symbol("subscribe")};n.default=e},194:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.wrapControls=n.asyncControls=n.create=void 0;var e=r(177);Object.keys(e).forEach(function(t){"default"!==t&&Object.defineProperty(n,t,{enumerable:!0,get:function(){return e[t]}})});var u=f(r(292)),o=f(r(294)),c=f(r(296));function f(t){return t&&t.__esModule?t:{default:t}}n.create=u.default,n.asyncControls=o.default,n.wrapControls=c.default},2:function(t,n){!function(){t.exports=this.lodash}()},29:function(t,n,r){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t){return(u="function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?function(t){return e(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)})(t)}r.d(n,"a",function(){return u})},292:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=o(r(293)),u=o(r(95));function o(t){return t&&t.__esModule?t:{default:t}}function c(t){if(Array.isArray(t)){for(var n=0,r=Array(t.length);n<t.length;n++)r[n]=t[n];return r}return Array.from(t)}n.default=function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],n=[].concat(c(t),c(e.default));return function t(r){var e=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?function(){}:arguments[2];!function(r){var u=function(t){return function(n){try{var u=t?r.throw(n):r.next(n),f=u.value;if(u.done)return e(f);c(f)}catch(t){return o(t)}}},c=function r(e){n.some(function(n){return n(e,r,t,u(!1),u(!0))})};u(!1)()}(u.default.iterator(r)?r:regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r;case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)})())}}},293:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.iterator=n.array=n.object=n.error=n.any=void 0;var e=function(t){return t&&t.__esModule?t:{default:t}}(r(95));var u=n.any=function(t,n,r,e){return e(t),!0},o=n.error=function(t,n,r,u,o){return!!e.default.error(t)&&(o(t.error),!0)},c=n.object=function(t,n,r,u,o){if(!e.default.all(t)||!e.default.obj(t.value))return!1;var c={},f=Object.keys(t.value),i=0,a=!1;return f.map(function(n){r(t.value[n],function(t){return function(t,n){a||(c[t]=n,++i===f.length&&u(c))}(n,t)},function(t){return function(t,n){a||(a=!0,o(n))}(0,t)})}),!0},f=n.array=function(t,n,r,u,o){if(!e.default.all(t)||!e.default.array(t.value))return!1;var c=[],f=0,i=!1;return t.value.map(function(n,e){r(n,function(n){return function(n,r){i||(c[n]=r,++f===t.value.length&&u(c))}(e,n)},function(t){return function(t,n){i||(i=!0,o(n))}(0,t)})}),!0},i=n.iterator=function(t,n,r,u,o){return!!e.default.iterator(t)&&(r(t,n,o),!0)};n.default=[o,i,f,c,u]},294:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.race=n.join=n.fork=n.promise=void 0;var e=c(r(95)),u=r(177),o=c(r(295));function c(t){return t&&t.__esModule?t:{default:t}}var f=n.promise=function(t,n,r,u,o){return!!e.default.promise(t)&&(t.then(n,o),!0)},i=new Map,a=n.fork=function(t,n,r){if(!e.default.fork(t))return!1;var c=Symbol("fork"),f=(0,o.default)();i.set(c,f),r(t.iterator.apply(null,t.args),function(t){return f.dispatch(t)},function(t){return f.dispatch((0,u.error)(t))});var a=f.subscribe(function(){a(),i.delete(c)});return n(c),!0},l=n.join=function(t,n,r,u,o){if(!e.default.join(t))return!1;var c=i.get(t.task);return c?function(){var t=c.subscribe(function(r){t(),n(r)})}():o("join error : task not found"),!0},s=n.race=function(t,n,r,u,o){if(!e.default.race(t))return!1;var c=!1,f=function(t,r,e){c||(c=!0,t[r]=e,n(t))},i=function(t){c||o(t)};return e.default.array(t.competitors)?function(){var n=t.competitors.map(function(){return!1});t.competitors.forEach(function(t,e){r(t,function(t){return f(n,e,t)},i)})}():function(){var n=Object.keys(t.competitors).reduce(function(t,n){return t[n]=!1,t},{});Object.keys(t.competitors).forEach(function(e){r(t.competitors[e],function(t){return f(n,e,t)},i)})}(),!0};n.default=[f,a,l,s,function(t,n){if(!e.default.subscribe(t))return!1;if(!e.default.channel(t.channel))throw new Error('the first argument of "subscribe" must be a valid channel');var r=t.channel.subscribe(function(t){r&&r(),n(t)});return!0}]},295:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function(){var t=[];return{subscribe:function(n){return t.push(n),function(){t=t.filter(function(t){return t!==n})}},dispatch:function(n){t.slice().forEach(function(t){return t(n)})}}}},296:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.cps=n.call=void 0;var e=function(t){return t&&t.__esModule?t:{default:t}}(r(95));var u=n.call=function(t,n,r,u,o){if(!e.default.call(t))return!1;try{n(t.func.apply(t.context,t.args))}catch(t){o(t)}return!0},o=n.cps=function(t,n,r,u,o){var c;return!!e.default.cps(t)&&((c=t.func).call.apply(c,[null].concat(function(t){if(Array.isArray(t)){for(var n=0,r=Array(t.length);n<t.length;n++)r[n]=t[n];return r}return Array.from(t)}(t.args),[function(t,r){t?o(t):n(r)}])),!0)};n.default=[u,o]},322:function(t,n,r){"use strict";r.r(n);var e=r(29),u=r(194),o=r(2),c=r(86),f=r.n(c);function i(t){return Object(o.isPlainObject)(t)&&Object(o.isString)(t.type)}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=Object(o.map)(t,function(t,n){return function(r,e,u,o,c){if(!function(t,n){return i(t)&&t.type===n}(r,n))return!1;var a=t(r);return f()(a)?a.then(o,function(t){return c(function(t){return t instanceof Error||(t=new Error(t)),t}(t))}):e(a),!0}});r.push(function(t,r){return!!i(t)&&(n(t),r(),!0)});var c=Object(u.create)(r);return function(t){return new Promise(function(r,u){return c(t,function(t){"object"===Object(e.a)(t)&&Object(o.isString)(t.type)&&n(t),r(t)},u)})}}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var r=a(t,n.dispatch);return function(t){return function(n){return function(t){return!!t&&"Generator"===t[Symbol.toStringTag]}(n)?r(n):t(n)}}}}r.d(n,"default",function(){return l})},86:function(t,n){t.exports=function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}},95:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},u=function(t){return t&&t.__esModule?t:{default:t}}(r(178));var o={obj:function(t){return"object"===(void 0===t?"undefined":e(t))&&!!t},all:function(t){return o.obj(t)&&t.type===u.default.all},error:function(t){return o.obj(t)&&t.type===u.default.error},array:Array.isArray,func:function(t){return"function"==typeof t},promise:function(t){return t&&o.func(t.then)},iterator:function(t){return t&&o.func(t.next)&&o.func(t.throw)},fork:function(t){return o.obj(t)&&t.type===u.default.fork},join:function(t){return o.obj(t)&&t.type===u.default.join},race:function(t){return o.obj(t)&&t.type===u.default.race},call:function(t){return o.obj(t)&&t.type===u.default.call},cps:function(t){return o.obj(t)&&t.type===u.default.cps},subscribe:function(t){return o.obj(t)&&t.type===u.default.subscribe},channel:function(t){return o.obj(t)&&o.func(t.subscribe)}};n.default=o}}).default; |