WordPress/wp-includes/js/dist/notices.min.js
Peter Wilson 5a721be794 Build: Use hashed/deterministic moduleIDs in webpack config
Props peterwilsoncc, desrosj, gziolo.
Merges [50940] in to the 5.7 branch.
Fixes #53192.


Built from https://develop.svn.wordpress.org/branches/5.7@50990


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-25 05:22:08 +00:00

2 lines
5.9 KiB
JavaScript

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.notices=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./node_modules/@wordpress/notices/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/defineProperty.js":function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/iterableToArray.js":function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");var o=r("./node_modules/@babel/runtime/helpers/esm/iterableToArray.js"),i=r("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");function u(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||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.")}()}},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function o(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},"./node_modules/@wordpress/notices/build-module/index.js":function(e,t,r){"use strict";r.r(t),r.d(t,"store",(function(){return g}));var n={};r.r(n),r.d(n,"createNotice",(function(){return f})),r.d(n,"createSuccessNotice",(function(){return b})),r.d(n,"createInfoNotice",(function(){return p})),r.d(n,"createErrorNotice",(function(){return m})),r.d(n,"createWarningNotice",(function(){return y})),r.d(n,"removeNotice",(function(){return v}));var o={};r.r(o),r.d(o,"getNotices",(function(){return O}));var i=r("@wordpress/data"),u=r("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),s=r("lodash"),c=r("./node_modules/@babel/runtime/helpers/esm/defineProperty.js");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){Object(c.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var d=function(e){return function(t){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=n[e];if(void 0===o)return r;var i=t(r[o],n);return i===r[o]?r:l(l({},r),{},Object(c.a)({},o,i))}}}("context")((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CREATE_NOTICE":return[].concat(Object(u.a)(Object(s.reject)(e,{id:t.notice.id})),[t.notice]);case"REMOVE_NOTICE":return Object(s.reject)(e,{id:t.id})}return e}));function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"info",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.speak,o=void 0===n||n,i=r.isDismissible,u=void 0===i||i,c=r.context,a=void 0===c?"global":c,l=r.id,d=void 0===l?Object(s.uniqueId)(a):l,f=r.actions,b=void 0===f?[]:f,p=r.type,m=void 0===p?"default":p,y=r.__unstableHTML,v=r.icon,j=void 0===v?null:v,O=r.explicitDismiss,g=void 0!==O&&O,h=r.onDismiss,_=void 0===h?null:h;return{type:"CREATE_NOTICE",context:a,notice:{id:d,status:e,content:t=String(t),spokenMessage:o?t:null,__unstableHTML:y,isDismissible:u,actions:b,type:m,icon:j,explicitDismiss:g,onDismiss:_}}}function b(e,t){return f("success",e,t)}function p(e,t){return f("info",e,t)}function m(e,t){return f("error",e,t)}function y(e,t){return f("warning",e,t)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return{type:"REMOVE_NOTICE",id:e,context:t}}var j=[];function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return e[t]||j}var g=Object(i.createReduxStore)("core/notices",{reducer:d,actions:n,selectors:o});Object(i.register)(g)},"@wordpress/data":function(e,t){e.exports=window.wp.data},lodash:function(e,t){e.exports=window.lodash}});