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.

298 lines
9.6 KiB

1 year ago
  1. /******/ (function() { // webpackBootstrap
  2. /******/ var __webpack_modules__ = ({
  3. /***/ 4403:
  4. /***/ (function(module, exports) {
  5. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
  6. Copyright (c) 2018 Jed Watson.
  7. Licensed under the MIT License (MIT), see
  8. http://jedwatson.github.io/classnames
  9. */
  10. /* global define */
  11. (function () {
  12. 'use strict';
  13. var hasOwn = {}.hasOwnProperty;
  14. var nativeCodeString = '[native code]';
  15. function classNames() {
  16. var classes = [];
  17. for (var i = 0; i < arguments.length; i++) {
  18. var arg = arguments[i];
  19. if (!arg) continue;
  20. var argType = typeof arg;
  21. if (argType === 'string' || argType === 'number') {
  22. classes.push(arg);
  23. } else if (Array.isArray(arg)) {
  24. if (arg.length) {
  25. var inner = classNames.apply(null, arg);
  26. if (inner) {
  27. classes.push(inner);
  28. }
  29. }
  30. } else if (argType === 'object') {
  31. if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
  32. classes.push(arg.toString());
  33. continue;
  34. }
  35. for (var key in arg) {
  36. if (hasOwn.call(arg, key) && arg[key]) {
  37. classes.push(key);
  38. }
  39. }
  40. }
  41. }
  42. return classes.join(' ');
  43. }
  44. if ( true && module.exports) {
  45. classNames.default = classNames;
  46. module.exports = classNames;
  47. } else if (true) {
  48. // register as 'classnames', consistent with npm package name
  49. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  50. return classNames;
  51. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  52. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  53. } else {}
  54. }());
  55. /***/ })
  56. /******/ });
  57. /************************************************************************/
  58. /******/ // The module cache
  59. /******/ var __webpack_module_cache__ = {};
  60. /******/
  61. /******/ // The require function
  62. /******/ function __webpack_require__(moduleId) {
  63. /******/ // Check if module is in cache
  64. /******/ var cachedModule = __webpack_module_cache__[moduleId];
  65. /******/ if (cachedModule !== undefined) {
  66. /******/ return cachedModule.exports;
  67. /******/ }
  68. /******/ // Create a new module (and put it into the cache)
  69. /******/ var module = __webpack_module_cache__[moduleId] = {
  70. /******/ // no module.id needed
  71. /******/ // no module.loaded needed
  72. /******/ exports: {}
  73. /******/ };
  74. /******/
  75. /******/ // Execute the module function
  76. /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
  77. /******/
  78. /******/ // Return the exports of the module
  79. /******/ return module.exports;
  80. /******/ }
  81. /******/
  82. /************************************************************************/
  83. /******/ /* webpack/runtime/compat get default export */
  84. /******/ !function() {
  85. /******/ // getDefaultExport function for compatibility with non-harmony modules
  86. /******/ __webpack_require__.n = function(module) {
  87. /******/ var getter = module && module.__esModule ?
  88. /******/ function() { return module['default']; } :
  89. /******/ function() { return module; };
  90. /******/ __webpack_require__.d(getter, { a: getter });
  91. /******/ return getter;
  92. /******/ };
  93. /******/ }();
  94. /******/
  95. /******/ /* webpack/runtime/define property getters */
  96. /******/ !function() {
  97. /******/ // define getter functions for harmony exports
  98. /******/ __webpack_require__.d = function(exports, definition) {
  99. /******/ for(var key in definition) {
  100. /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
  101. /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
  102. /******/ }
  103. /******/ }
  104. /******/ };
  105. /******/ }();
  106. /******/
  107. /******/ /* webpack/runtime/hasOwnProperty shorthand */
  108. /******/ !function() {
  109. /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
  110. /******/ }();
  111. /******/
  112. /******/ /* webpack/runtime/make namespace object */
  113. /******/ !function() {
  114. /******/ // define __esModule on exports
  115. /******/ __webpack_require__.r = function(exports) {
  116. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  117. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  118. /******/ }
  119. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  120. /******/ };
  121. /******/ }();
  122. /******/
  123. /************************************************************************/
  124. var __webpack_exports__ = {};
  125. // This entry need to be wrapped in an IIFE because it need to be in strict mode.
  126. !function() {
  127. "use strict";
  128. // ESM COMPAT FLAG
  129. __webpack_require__.r(__webpack_exports__);
  130. // EXPORTS
  131. __webpack_require__.d(__webpack_exports__, {
  132. BlockQuotation: function() { return /* reexport */ BlockQuotation; },
  133. Circle: function() { return /* reexport */ Circle; },
  134. Defs: function() { return /* reexport */ Defs; },
  135. G: function() { return /* reexport */ G; },
  136. HorizontalRule: function() { return /* reexport */ HorizontalRule; },
  137. Line: function() { return /* reexport */ Line; },
  138. LinearGradient: function() { return /* reexport */ LinearGradient; },
  139. Path: function() { return /* reexport */ Path; },
  140. Polygon: function() { return /* reexport */ Polygon; },
  141. RadialGradient: function() { return /* reexport */ RadialGradient; },
  142. Rect: function() { return /* reexport */ Rect; },
  143. SVG: function() { return /* reexport */ SVG; },
  144. Stop: function() { return /* reexport */ Stop; },
  145. View: function() { return /* reexport */ View; }
  146. });
  147. // EXTERNAL MODULE: ./node_modules/classnames/index.js
  148. var classnames = __webpack_require__(4403);
  149. var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
  150. ;// CONCATENATED MODULE: external ["wp","element"]
  151. var external_wp_element_namespaceObject = window["wp"]["element"];
  152. ;// CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/svg/index.js
  153. /**
  154. * External dependencies
  155. */
  156. /**
  157. * WordPress dependencies
  158. */
  159. /** @typedef {{isPressed?: boolean} & import('react').ComponentPropsWithoutRef<'svg'>} SVGProps */
  160. /**
  161. * @param {import('react').ComponentPropsWithoutRef<'circle'>} props
  162. *
  163. * @return {JSX.Element} Circle component
  164. */
  165. const Circle = props => (0,external_wp_element_namespaceObject.createElement)('circle', props);
  166. /**
  167. * @param {import('react').ComponentPropsWithoutRef<'g'>} props
  168. *
  169. * @return {JSX.Element} G component
  170. */
  171. const G = props => (0,external_wp_element_namespaceObject.createElement)('g', props);
  172. /**
  173. * @param {import('react').ComponentPropsWithoutRef<'line'>} props
  174. *
  175. * @return {JSX.Element} Path component
  176. */
  177. const Line = props => (0,external_wp_element_namespaceObject.createElement)('line', props);
  178. /**
  179. * @param {import('react').ComponentPropsWithoutRef<'path'>} props
  180. *
  181. * @return {JSX.Element} Path component
  182. */
  183. const Path = props => (0,external_wp_element_namespaceObject.createElement)('path', props);
  184. /**
  185. * @param {import('react').ComponentPropsWithoutRef<'polygon'>} props
  186. *
  187. * @return {JSX.Element} Polygon component
  188. */
  189. const Polygon = props => (0,external_wp_element_namespaceObject.createElement)('polygon', props);
  190. /**
  191. * @param {import('react').ComponentPropsWithoutRef<'rect'>} props
  192. *
  193. * @return {JSX.Element} Rect component
  194. */
  195. const Rect = props => (0,external_wp_element_namespaceObject.createElement)('rect', props);
  196. /**
  197. * @param {import('react').ComponentPropsWithoutRef<'defs'>} props
  198. *
  199. * @return {JSX.Element} Defs component
  200. */
  201. const Defs = props => (0,external_wp_element_namespaceObject.createElement)('defs', props);
  202. /**
  203. * @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props
  204. *
  205. * @return {JSX.Element} RadialGradient component
  206. */
  207. const RadialGradient = props => (0,external_wp_element_namespaceObject.createElement)('radialGradient', props);
  208. /**
  209. * @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props
  210. *
  211. * @return {JSX.Element} LinearGradient component
  212. */
  213. const LinearGradient = props => (0,external_wp_element_namespaceObject.createElement)('linearGradient', props);
  214. /**
  215. * @param {import('react').ComponentPropsWithoutRef<'stop'>} props
  216. *
  217. * @return {JSX.Element} Stop component
  218. */
  219. const Stop = props => (0,external_wp_element_namespaceObject.createElement)('stop', props);
  220. const SVG = (0,external_wp_element_namespaceObject.forwardRef)(
  221. /**
  222. * @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed.
  223. * Other props will be passed through to svg component.
  224. * @param {import('react').ForwardedRef<SVGSVGElement>} ref The forwarded ref to the SVG element.
  225. *
  226. * @return {JSX.Element} Stop component
  227. */
  228. ({
  229. className,
  230. isPressed,
  231. ...props
  232. }, ref) => {
  233. const appliedProps = {
  234. ...props,
  235. className: classnames_default()(className, {
  236. 'is-pressed': isPressed
  237. }) || undefined,
  238. 'aria-hidden': true,
  239. focusable: false
  240. };
  241. // Disable reason: We need to have a way to render HTML tag for web.
  242. // eslint-disable-next-line react/forbid-elements
  243. return (0,external_wp_element_namespaceObject.createElement)("svg", {
  244. ...appliedProps,
  245. ref: ref
  246. });
  247. });
  248. SVG.displayName = 'SVG';
  249. ;// CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/horizontal-rule/index.js
  250. const HorizontalRule = 'hr';
  251. ;// CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/block-quotation/index.js
  252. const BlockQuotation = 'blockquote';
  253. ;// CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/view/index.js
  254. const View = 'div';
  255. ;// CONCATENATED MODULE: ./node_modules/@wordpress/primitives/build-module/index.js
  256. }();
  257. (window.wp = window.wp || {}).primitives = __webpack_exports__;
  258. /******/ })()
  259. ;