You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.5 KiB

1 year ago
  1. /******/ (function() { // webpackBootstrap
  2. /******/ "use strict";
  3. /******/ // The require scope
  4. /******/ var __webpack_require__ = {};
  5. /******/
  6. /************************************************************************/
  7. /******/ /* webpack/runtime/define property getters */
  8. /******/ !function() {
  9. /******/ // define getter functions for harmony exports
  10. /******/ __webpack_require__.d = function(exports, definition) {
  11. /******/ for(var key in definition) {
  12. /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
  13. /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
  14. /******/ }
  15. /******/ }
  16. /******/ };
  17. /******/ }();
  18. /******/
  19. /******/ /* webpack/runtime/hasOwnProperty shorthand */
  20. /******/ !function() {
  21. /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
  22. /******/ }();
  23. /******/
  24. /************************************************************************/
  25. var __webpack_exports__ = {};
  26. // EXPORTS
  27. __webpack_require__.d(__webpack_exports__, {
  28. "default": function() { return /* binding */ warning; }
  29. });
  30. ;// CONCATENATED MODULE: ./node_modules/@wordpress/warning/build-module/utils.js
  31. /**
  32. * Object map tracking messages which have been logged, for use in ensuring a
  33. * message is only logged once.
  34. *
  35. * @type {Set<string>}
  36. */
  37. const logged = new Set();
  38. ;// CONCATENATED MODULE: ./node_modules/@wordpress/warning/build-module/index.js
  39. /**
  40. * Internal dependencies
  41. */
  42. function isDev() {
  43. return true && true === true;
  44. }
  45. /**
  46. * Shows a warning with `message` if environment is not `production`.
  47. *
  48. * @param {string} message Message to show in the warning.
  49. *
  50. * @example
  51. * ```js
  52. * import warning from '@wordpress/warning';
  53. *
  54. * function MyComponent( props ) {
  55. * if ( ! props.title ) {
  56. * warning( '`props.title` was not passed' );
  57. * }
  58. * ...
  59. * }
  60. * ```
  61. */
  62. function warning(message) {
  63. if (!isDev()) {
  64. return;
  65. }
  66. // Skip if already logged.
  67. if (logged.has(message)) {
  68. return;
  69. }
  70. // eslint-disable-next-line no-console
  71. console.warn(message);
  72. // Throwing an error and catching it immediately to improve debugging
  73. // A consumer can use 'pause on caught exceptions'
  74. // https://github.com/facebook/react/issues/4216
  75. try {
  76. throw Error(message);
  77. } catch (x) {
  78. // Do nothing.
  79. }
  80. logged.add(message);
  81. }
  82. (window.wp = window.wp || {}).warning = __webpack_exports__["default"];
  83. /******/ })()
  84. ;