@patternfly/quickstarts 6.3.0-prerelease.3 → 6.3.0-prerelease.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/ConsoleInternal/components/markdown-view.d.ts +2 -2
  2. package/dist/ConsoleInternal/components/utils/camel-case-wrap.d.ts +1 -1
  3. package/dist/ConsoleInternal/components/utils/status-box.d.ts +3 -3
  4. package/dist/ConsoleShared/src/components/markdown-extensions/MarkdownCopyClipboard.d.ts +3 -3
  5. package/dist/ConsoleShared/src/components/markdown-extensions/accordion-render-extension.d.ts +2 -2
  6. package/dist/ConsoleShared/src/components/markdown-highlight-extension/MarkdownHighlightExtension.d.ts +2 -2
  7. package/dist/ConsoleShared/src/components/modal/Modal.d.ts +3 -3
  8. package/dist/ConsoleShared/src/components/popper/Portal.d.ts +3 -3
  9. package/dist/ConsoleShared/src/components/popper/SimplePopper.d.ts +3 -3
  10. package/dist/ConsoleShared/src/components/spotlight/InteractiveSpotlight.d.ts +2 -2
  11. package/dist/ConsoleShared/src/components/spotlight/Spotlight.d.ts +2 -2
  12. package/dist/ConsoleShared/src/components/spotlight/StaticSpotlight.d.ts +2 -2
  13. package/dist/ConsoleShared/src/components/status/GenericStatus.d.ts +4 -4
  14. package/dist/ConsoleShared/src/components/status/NotStartedIcon.d.ts +1 -2
  15. package/dist/ConsoleShared/src/components/status/PopoverStatus.d.ts +4 -4
  16. package/dist/ConsoleShared/src/components/status/Status.d.ts +3 -3
  17. package/dist/ConsoleShared/src/components/status/StatusIconAndText.d.ts +3 -3
  18. package/dist/ConsoleShared/src/components/status/icons.d.ts +4 -4
  19. package/dist/ConsoleShared/src/components/status/statuses.d.ts +4 -4
  20. package/dist/ConsoleShared/src/components/utils/FallbackImg.d.ts +3 -3
  21. package/dist/ConsoleShared/src/utils/useCombineRefs.d.ts +2 -2
  22. package/dist/HelpTopicDrawer.d.ts +3 -3
  23. package/dist/HelpTopicPanelContent.d.ts +2 -2
  24. package/dist/QuickStartCatalogPage.d.ts +3 -3
  25. package/dist/QuickStartCloseModal.d.ts +2 -2
  26. package/dist/QuickStartContainer.d.ts +2 -2
  27. package/dist/QuickStartController.d.ts +2 -2
  28. package/dist/QuickStartDrawer.d.ts +2 -2
  29. package/dist/QuickStartDrawerContent.d.ts +2 -2
  30. package/dist/QuickStartMarkdownView.d.ts +2 -2
  31. package/dist/QuickStartPanelContent.d.ts +2 -2
  32. package/dist/catalog/Catalog/QuickStartCatalogHeader.d.ts +2 -2
  33. package/dist/catalog/Catalog/QuickStartCatalogSection.d.ts +2 -2
  34. package/dist/catalog/Catalog/QuickStartCatalogToolbar.d.ts +2 -2
  35. package/dist/catalog/QuickStartCatalog.d.ts +2 -2
  36. package/dist/catalog/QuickStartTile.d.ts +2 -2
  37. package/dist/catalog/QuickStartTileDescription.d.ts +2 -2
  38. package/dist/catalog/QuickStartTileFooter.d.ts +2 -2
  39. package/dist/catalog/QuickStartTileFooterExternal.d.ts +2 -2
  40. package/dist/catalog/QuickStartTileHeader.d.ts +2 -2
  41. package/dist/catalog/Toolbar/QuickStartCatalogFilter.d.ts +2 -2
  42. package/dist/catalog/Toolbar/QuickStartCatalogFilterItems.d.ts +7 -7
  43. package/dist/controller/QuickStartConclusion.d.ts +2 -2
  44. package/dist/controller/QuickStartContent.d.ts +2 -2
  45. package/dist/controller/QuickStartFooter.d.ts +2 -2
  46. package/dist/controller/QuickStartIntroduction.d.ts +2 -2
  47. package/dist/controller/QuickStartTaskHeader.d.ts +2 -2
  48. package/dist/controller/QuickStartTaskHeaderList.d.ts +2 -2
  49. package/dist/controller/QuickStartTaskReview.d.ts +2 -2
  50. package/dist/controller/QuickStartTasks.d.ts +2 -2
  51. package/dist/index.es.js +299 -459
  52. package/dist/index.es.js.map +1 -1
  53. package/dist/index.js +310 -472
  54. package/dist/index.js.map +1 -1
  55. package/dist/quickstarts-full.es.js +1693 -511
  56. package/dist/quickstarts-full.es.js.map +1 -1
  57. package/dist/utils/help-topic-context.d.ts +2 -2
  58. package/dist/utils/quick-start-context.d.ts +3 -3
  59. package/package.json +3 -4
  60. package/src/ConsoleInternal/components/markdown-view.tsx +20 -18
  61. package/src/ConsoleInternal/components/utils/camel-case-wrap.tsx +3 -3
  62. package/src/ConsoleInternal/components/utils/status-box.tsx +4 -4
  63. package/src/ConsoleShared/src/components/markdown-extensions/MarkdownCopyClipboard.tsx +8 -15
  64. package/src/ConsoleShared/src/components/markdown-extensions/__tests__/MarkdownCopyClipboard.spec.tsx +0 -1
  65. package/src/ConsoleShared/src/components/markdown-extensions/accordion-extension.tsx +2 -2
  66. package/src/ConsoleShared/src/components/markdown-extensions/accordion-render-extension.tsx +4 -4
  67. package/src/ConsoleShared/src/components/markdown-extensions/admonition-extension.tsx +2 -2
  68. package/src/ConsoleShared/src/components/markdown-extensions/code-extension.tsx +2 -2
  69. package/src/ConsoleShared/src/components/markdown-extensions/inline-clipboard-extension.tsx +3 -3
  70. package/src/ConsoleShared/src/components/markdown-extensions/multiline-clipboard-extension.tsx +3 -3
  71. package/src/ConsoleShared/src/components/markdown-highlight-extension/MarkdownHighlightExtension.tsx +5 -5
  72. package/src/ConsoleShared/src/components/modal/Modal.tsx +3 -3
  73. package/src/ConsoleShared/src/components/popper/Portal.tsx +5 -5
  74. package/src/ConsoleShared/src/components/popper/SimplePopper.tsx +15 -15
  75. package/src/ConsoleShared/src/components/spotlight/InteractiveSpotlight.tsx +5 -5
  76. package/src/ConsoleShared/src/components/spotlight/Spotlight.tsx +3 -3
  77. package/src/ConsoleShared/src/components/spotlight/StaticSpotlight.tsx +3 -3
  78. package/src/ConsoleShared/src/components/status/GenericStatus.tsx +5 -5
  79. package/src/ConsoleShared/src/components/status/NotStartedIcon.tsx +0 -1
  80. package/src/ConsoleShared/src/components/status/PopoverStatus.tsx +4 -4
  81. package/src/ConsoleShared/src/components/status/Status.tsx +3 -11
  82. package/src/ConsoleShared/src/components/status/StatusIconAndText.tsx +6 -6
  83. package/src/ConsoleShared/src/components/status/icons.tsx +4 -8
  84. package/src/ConsoleShared/src/components/status/statuses.tsx +4 -5
  85. package/src/ConsoleShared/src/components/utils/FallbackImg.tsx +4 -4
  86. package/src/ConsoleShared/src/hooks/scroll.ts +4 -4
  87. package/src/ConsoleShared/src/hooks/useBoundingClientRect.ts +3 -3
  88. package/src/ConsoleShared/src/hooks/useForceRender.ts +2 -2
  89. package/src/ConsoleShared/src/hooks/useResizeObserver.ts +3 -6
  90. package/src/ConsoleShared/src/hooks/useScrollShadows.ts +4 -4
  91. package/src/ConsoleShared/src/utils/useCombineRefs.ts +4 -4
  92. package/src/HelpTopicDrawer.tsx +6 -6
  93. package/src/HelpTopicPanelContent.tsx +4 -4
  94. package/src/QuickStartCatalogPage.tsx +9 -9
  95. package/src/QuickStartCloseModal.tsx +3 -7
  96. package/src/QuickStartContainer.tsx +4 -4
  97. package/src/QuickStartController.tsx +11 -11
  98. package/src/QuickStartDrawer.tsx +6 -6
  99. package/src/QuickStartDrawerContent.tsx +3 -3
  100. package/src/QuickStartMarkdownView.tsx +3 -3
  101. package/src/QuickStartPanelContent.tsx +8 -8
  102. package/src/catalog/Catalog/QuickStartCatalogHeader.tsx +2 -2
  103. package/src/catalog/Catalog/QuickStartCatalogSection.tsx +2 -2
  104. package/src/catalog/Catalog/QuickStartCatalogToolbar.tsx +2 -2
  105. package/src/catalog/QuickStartCatalog.tsx +3 -3
  106. package/src/catalog/QuickStartTile.tsx +4 -4
  107. package/src/catalog/QuickStartTileDescription.tsx +4 -4
  108. package/src/catalog/QuickStartTileFooter.tsx +6 -6
  109. package/src/catalog/QuickStartTileFooterExternal.tsx +2 -5
  110. package/src/catalog/QuickStartTileHeader.tsx +2 -6
  111. package/src/catalog/Toolbar/QuickStartCatalogFilter.tsx +2 -2
  112. package/src/catalog/Toolbar/QuickStartCatalogFilterItems.tsx +16 -16
  113. package/src/catalog/__tests__/QuickStartCatalog.spec.tsx +0 -1
  114. package/src/catalog/__tests__/QuickStartTile.spec.tsx +0 -1
  115. package/src/catalog/__tests__/QuickStartTileDescription.spec.tsx +1 -2
  116. package/src/controller/QuickStartConclusion.tsx +3 -3
  117. package/src/controller/QuickStartContent.tsx +2 -2
  118. package/src/controller/QuickStartFooter.tsx +10 -11
  119. package/src/controller/QuickStartIntroduction.tsx +4 -4
  120. package/src/controller/QuickStartTaskHeader.tsx +5 -5
  121. package/src/controller/QuickStartTaskHeaderList.tsx +2 -2
  122. package/src/controller/QuickStartTaskReview.tsx +4 -4
  123. package/src/controller/QuickStartTasks.tsx +5 -5
  124. package/src/controller/__tests__/QuickStartConclusion.spec.tsx +3 -3
  125. package/src/controller/__tests__/QuickStartContent.spec.tsx +2 -2
  126. package/src/controller/__tests__/QuickStartTaskHeader.spec.tsx +2 -2
  127. package/src/controller/__tests__/QuickStartTaskReview.spec.tsx +2 -2
  128. package/src/utils/help-topic-context.tsx +7 -10
  129. package/src/utils/quick-start-context.tsx +11 -11
@@ -1,9 +1,1376 @@
1
1
  import * as React from 'react';
2
- import React__default, { useRef, useEffect, forwardRef, useImperativeHandle, useMemo, useState, createContext, useCallback } from 'react';
2
+ import React__default, { useRef, useEffect, forwardRef, useImperativeHandle, useMemo, useState, createContext, useCallback, useContext, Fragment as Fragment$1, useReducer, cloneElement, Children } from 'react';
3
3
  import * as ReactDOM from 'react-dom';
4
+ import { createPortal } from 'react-dom';
4
5
  import fa$1 from 'stream';
5
6
  import aa from 'util';
6
7
 
8
+ function getDefaultExportFromCjs (x) {
9
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
10
+ }
11
+
12
+ function getAugmentedNamespace(n) {
13
+ if (n.__esModule) return n;
14
+ var a = Object.defineProperty({}, '__esModule', {value: true});
15
+ Object.keys(n).forEach(function (k) {
16
+ var d = Object.getOwnPropertyDescriptor(n, k);
17
+ Object.defineProperty(a, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () {
20
+ return n[k];
21
+ }
22
+ });
23
+ });
24
+ return a;
25
+ }
26
+
27
+ function createCommonjsModule(fn) {
28
+ var module = { exports: {} };
29
+ return fn(module, module.exports), module.exports;
30
+ }
31
+
32
+ /**
33
+ * @license React
34
+ * react-jsx-runtime.production.min.js
35
+ *
36
+ * Copyright (c) Facebook, Inc. and its affiliates.
37
+ *
38
+ * This source code is licensed under the MIT license found in the
39
+ * LICENSE file in the root directory of this source tree.
40
+ */
41
+ var k$1=Symbol.for("react.element"),l$2=Symbol.for("react.fragment"),m$1=Object.prototype.hasOwnProperty,n$1=React__default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
42
+ function q$2(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m$1.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k$1,type:c,key:e,ref:h,props:d,_owner:n$1.current}}var Fragment=l$2;var jsx=q$2;var jsxs=q$2;
43
+
44
+ var reactJsxRuntime_production_min = {
45
+ Fragment: Fragment,
46
+ jsx: jsx,
47
+ jsxs: jsxs
48
+ };
49
+
50
+ /**
51
+ * @license React
52
+ * react-jsx-runtime.development.js
53
+ *
54
+ * Copyright (c) Facebook, Inc. and its affiliates.
55
+ *
56
+ * This source code is licensed under the MIT license found in the
57
+ * LICENSE file in the root directory of this source tree.
58
+ */
59
+
60
+ var reactJsxRuntime_development = createCommonjsModule(function (module, exports) {
61
+
62
+ if (process.env.NODE_ENV !== "production") {
63
+ (function() {
64
+
65
+ var React = React__default;
66
+
67
+ // ATTENTION
68
+ // When adding new symbols to this file,
69
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
70
+ // The Symbol used to tag the ReactElement-like types.
71
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
72
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
73
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
74
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
75
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
76
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
77
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
78
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
79
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
80
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
81
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
82
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
83
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
84
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
85
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
86
+ function getIteratorFn(maybeIterable) {
87
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
88
+ return null;
89
+ }
90
+
91
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
92
+
93
+ if (typeof maybeIterator === 'function') {
94
+ return maybeIterator;
95
+ }
96
+
97
+ return null;
98
+ }
99
+
100
+ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
101
+
102
+ function error(format) {
103
+ {
104
+ {
105
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
106
+ args[_key2 - 1] = arguments[_key2];
107
+ }
108
+
109
+ printWarning('error', format, args);
110
+ }
111
+ }
112
+ }
113
+
114
+ function printWarning(level, format, args) {
115
+ // When changing this logic, you might want to also
116
+ // update consoleWithStackDev.www.js as well.
117
+ {
118
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
119
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
120
+
121
+ if (stack !== '') {
122
+ format += '%s';
123
+ args = args.concat([stack]);
124
+ } // eslint-disable-next-line react-internal/safe-string-coercion
125
+
126
+
127
+ var argsWithFormat = args.map(function (item) {
128
+ return String(item);
129
+ }); // Careful: RN currently depends on this prefix
130
+
131
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
132
+ // breaks IE9: https://github.com/facebook/react/issues/13610
133
+ // eslint-disable-next-line react-internal/no-production-logging
134
+
135
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
136
+ }
137
+ }
138
+
139
+ // -----------------------------------------------------------------------------
140
+
141
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
142
+ var enableCacheElement = false;
143
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
144
+
145
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
146
+ // stuff. Intended to enable React core members to more easily debug scheduling
147
+ // issues in DEV builds.
148
+
149
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
150
+
151
+ var REACT_MODULE_REFERENCE;
152
+
153
+ {
154
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
155
+ }
156
+
157
+ function isValidElementType(type) {
158
+ if (typeof type === 'string' || typeof type === 'function') {
159
+ return true;
160
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
161
+
162
+
163
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
164
+ return true;
165
+ }
166
+
167
+ if (typeof type === 'object' && type !== null) {
168
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
169
+ // types supported by any Flight configuration anywhere since
170
+ // we don't know which Flight build this will end up being used
171
+ // with.
172
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
173
+ return true;
174
+ }
175
+ }
176
+
177
+ return false;
178
+ }
179
+
180
+ function getWrappedName(outerType, innerType, wrapperName) {
181
+ var displayName = outerType.displayName;
182
+
183
+ if (displayName) {
184
+ return displayName;
185
+ }
186
+
187
+ var functionName = innerType.displayName || innerType.name || '';
188
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
189
+ } // Keep in sync with react-reconciler/getComponentNameFromFiber
190
+
191
+
192
+ function getContextName(type) {
193
+ return type.displayName || 'Context';
194
+ } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
195
+
196
+
197
+ function getComponentNameFromType(type) {
198
+ if (type == null) {
199
+ // Host root, text node or just invalid type.
200
+ return null;
201
+ }
202
+
203
+ {
204
+ if (typeof type.tag === 'number') {
205
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
206
+ }
207
+ }
208
+
209
+ if (typeof type === 'function') {
210
+ return type.displayName || type.name || null;
211
+ }
212
+
213
+ if (typeof type === 'string') {
214
+ return type;
215
+ }
216
+
217
+ switch (type) {
218
+ case REACT_FRAGMENT_TYPE:
219
+ return 'Fragment';
220
+
221
+ case REACT_PORTAL_TYPE:
222
+ return 'Portal';
223
+
224
+ case REACT_PROFILER_TYPE:
225
+ return 'Profiler';
226
+
227
+ case REACT_STRICT_MODE_TYPE:
228
+ return 'StrictMode';
229
+
230
+ case REACT_SUSPENSE_TYPE:
231
+ return 'Suspense';
232
+
233
+ case REACT_SUSPENSE_LIST_TYPE:
234
+ return 'SuspenseList';
235
+
236
+ }
237
+
238
+ if (typeof type === 'object') {
239
+ switch (type.$$typeof) {
240
+ case REACT_CONTEXT_TYPE:
241
+ var context = type;
242
+ return getContextName(context) + '.Consumer';
243
+
244
+ case REACT_PROVIDER_TYPE:
245
+ var provider = type;
246
+ return getContextName(provider._context) + '.Provider';
247
+
248
+ case REACT_FORWARD_REF_TYPE:
249
+ return getWrappedName(type, type.render, 'ForwardRef');
250
+
251
+ case REACT_MEMO_TYPE:
252
+ var outerName = type.displayName || null;
253
+
254
+ if (outerName !== null) {
255
+ return outerName;
256
+ }
257
+
258
+ return getComponentNameFromType(type.type) || 'Memo';
259
+
260
+ case REACT_LAZY_TYPE:
261
+ {
262
+ var lazyComponent = type;
263
+ var payload = lazyComponent._payload;
264
+ var init = lazyComponent._init;
265
+
266
+ try {
267
+ return getComponentNameFromType(init(payload));
268
+ } catch (x) {
269
+ return null;
270
+ }
271
+ }
272
+
273
+ // eslint-disable-next-line no-fallthrough
274
+ }
275
+ }
276
+
277
+ return null;
278
+ }
279
+
280
+ var assign = Object.assign;
281
+
282
+ // Helpers to patch console.logs to avoid logging during side-effect free
283
+ // replaying on render function. This currently only patches the object
284
+ // lazily which won't cover if the log function was extracted eagerly.
285
+ // We could also eagerly patch the method.
286
+ var disabledDepth = 0;
287
+ var prevLog;
288
+ var prevInfo;
289
+ var prevWarn;
290
+ var prevError;
291
+ var prevGroup;
292
+ var prevGroupCollapsed;
293
+ var prevGroupEnd;
294
+
295
+ function disabledLog() {}
296
+
297
+ disabledLog.__reactDisabledLog = true;
298
+ function disableLogs() {
299
+ {
300
+ if (disabledDepth === 0) {
301
+ /* eslint-disable react-internal/no-production-logging */
302
+ prevLog = console.log;
303
+ prevInfo = console.info;
304
+ prevWarn = console.warn;
305
+ prevError = console.error;
306
+ prevGroup = console.group;
307
+ prevGroupCollapsed = console.groupCollapsed;
308
+ prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
309
+
310
+ var props = {
311
+ configurable: true,
312
+ enumerable: true,
313
+ value: disabledLog,
314
+ writable: true
315
+ }; // $FlowFixMe Flow thinks console is immutable.
316
+
317
+ Object.defineProperties(console, {
318
+ info: props,
319
+ log: props,
320
+ warn: props,
321
+ error: props,
322
+ group: props,
323
+ groupCollapsed: props,
324
+ groupEnd: props
325
+ });
326
+ /* eslint-enable react-internal/no-production-logging */
327
+ }
328
+
329
+ disabledDepth++;
330
+ }
331
+ }
332
+ function reenableLogs() {
333
+ {
334
+ disabledDepth--;
335
+
336
+ if (disabledDepth === 0) {
337
+ /* eslint-disable react-internal/no-production-logging */
338
+ var props = {
339
+ configurable: true,
340
+ enumerable: true,
341
+ writable: true
342
+ }; // $FlowFixMe Flow thinks console is immutable.
343
+
344
+ Object.defineProperties(console, {
345
+ log: assign({}, props, {
346
+ value: prevLog
347
+ }),
348
+ info: assign({}, props, {
349
+ value: prevInfo
350
+ }),
351
+ warn: assign({}, props, {
352
+ value: prevWarn
353
+ }),
354
+ error: assign({}, props, {
355
+ value: prevError
356
+ }),
357
+ group: assign({}, props, {
358
+ value: prevGroup
359
+ }),
360
+ groupCollapsed: assign({}, props, {
361
+ value: prevGroupCollapsed
362
+ }),
363
+ groupEnd: assign({}, props, {
364
+ value: prevGroupEnd
365
+ })
366
+ });
367
+ /* eslint-enable react-internal/no-production-logging */
368
+ }
369
+
370
+ if (disabledDepth < 0) {
371
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
372
+ }
373
+ }
374
+ }
375
+
376
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
377
+ var prefix;
378
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
379
+ {
380
+ if (prefix === undefined) {
381
+ // Extract the VM specific prefix used by each line.
382
+ try {
383
+ throw Error();
384
+ } catch (x) {
385
+ var match = x.stack.trim().match(/\n( *(at )?)/);
386
+ prefix = match && match[1] || '';
387
+ }
388
+ } // We use the prefix to ensure our stacks line up with native stack frames.
389
+
390
+
391
+ return '\n' + prefix + name;
392
+ }
393
+ }
394
+ var reentry = false;
395
+ var componentFrameCache;
396
+
397
+ {
398
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
399
+ componentFrameCache = new PossiblyWeakMap();
400
+ }
401
+
402
+ function describeNativeComponentFrame(fn, construct) {
403
+ // If something asked for a stack inside a fake render, it should get ignored.
404
+ if ( !fn || reentry) {
405
+ return '';
406
+ }
407
+
408
+ {
409
+ var frame = componentFrameCache.get(fn);
410
+
411
+ if (frame !== undefined) {
412
+ return frame;
413
+ }
414
+ }
415
+
416
+ var control;
417
+ reentry = true;
418
+ var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
419
+
420
+ Error.prepareStackTrace = undefined;
421
+ var previousDispatcher;
422
+
423
+ {
424
+ previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
425
+ // for warnings.
426
+
427
+ ReactCurrentDispatcher.current = null;
428
+ disableLogs();
429
+ }
430
+
431
+ try {
432
+ // This should throw.
433
+ if (construct) {
434
+ // Something should be setting the props in the constructor.
435
+ var Fake = function () {
436
+ throw Error();
437
+ }; // $FlowFixMe
438
+
439
+
440
+ Object.defineProperty(Fake.prototype, 'props', {
441
+ set: function () {
442
+ // We use a throwing setter instead of frozen or non-writable props
443
+ // because that won't throw in a non-strict mode function.
444
+ throw Error();
445
+ }
446
+ });
447
+
448
+ if (typeof Reflect === 'object' && Reflect.construct) {
449
+ // We construct a different control for this case to include any extra
450
+ // frames added by the construct call.
451
+ try {
452
+ Reflect.construct(Fake, []);
453
+ } catch (x) {
454
+ control = x;
455
+ }
456
+
457
+ Reflect.construct(fn, [], Fake);
458
+ } else {
459
+ try {
460
+ Fake.call();
461
+ } catch (x) {
462
+ control = x;
463
+ }
464
+
465
+ fn.call(Fake.prototype);
466
+ }
467
+ } else {
468
+ try {
469
+ throw Error();
470
+ } catch (x) {
471
+ control = x;
472
+ }
473
+
474
+ fn();
475
+ }
476
+ } catch (sample) {
477
+ // This is inlined manually because closure doesn't do it for us.
478
+ if (sample && control && typeof sample.stack === 'string') {
479
+ // This extracts the first frame from the sample that isn't also in the control.
480
+ // Skipping one frame that we assume is the frame that calls the two.
481
+ var sampleLines = sample.stack.split('\n');
482
+ var controlLines = control.stack.split('\n');
483
+ var s = sampleLines.length - 1;
484
+ var c = controlLines.length - 1;
485
+
486
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
487
+ // We expect at least one stack frame to be shared.
488
+ // Typically this will be the root most one. However, stack frames may be
489
+ // cut off due to maximum stack limits. In this case, one maybe cut off
490
+ // earlier than the other. We assume that the sample is longer or the same
491
+ // and there for cut off earlier. So we should find the root most frame in
492
+ // the sample somewhere in the control.
493
+ c--;
494
+ }
495
+
496
+ for (; s >= 1 && c >= 0; s--, c--) {
497
+ // Next we find the first one that isn't the same which should be the
498
+ // frame that called our sample function and the control.
499
+ if (sampleLines[s] !== controlLines[c]) {
500
+ // In V8, the first line is describing the message but other VMs don't.
501
+ // If we're about to return the first line, and the control is also on the same
502
+ // line, that's a pretty good indicator that our sample threw at same line as
503
+ // the control. I.e. before we entered the sample frame. So we ignore this result.
504
+ // This can happen if you passed a class to function component, or non-function.
505
+ if (s !== 1 || c !== 1) {
506
+ do {
507
+ s--;
508
+ c--; // We may still have similar intermediate frames from the construct call.
509
+ // The next one that isn't the same should be our match though.
510
+
511
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
512
+ // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
513
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
514
+ // but we have a user-provided "displayName"
515
+ // splice it in to make the stack more readable.
516
+
517
+
518
+ if (fn.displayName && _frame.includes('<anonymous>')) {
519
+ _frame = _frame.replace('<anonymous>', fn.displayName);
520
+ }
521
+
522
+ {
523
+ if (typeof fn === 'function') {
524
+ componentFrameCache.set(fn, _frame);
525
+ }
526
+ } // Return the line we found.
527
+
528
+
529
+ return _frame;
530
+ }
531
+ } while (s >= 1 && c >= 0);
532
+ }
533
+
534
+ break;
535
+ }
536
+ }
537
+ }
538
+ } finally {
539
+ reentry = false;
540
+
541
+ {
542
+ ReactCurrentDispatcher.current = previousDispatcher;
543
+ reenableLogs();
544
+ }
545
+
546
+ Error.prepareStackTrace = previousPrepareStackTrace;
547
+ } // Fallback to just using the name if we couldn't make it throw.
548
+
549
+
550
+ var name = fn ? fn.displayName || fn.name : '';
551
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
552
+
553
+ {
554
+ if (typeof fn === 'function') {
555
+ componentFrameCache.set(fn, syntheticFrame);
556
+ }
557
+ }
558
+
559
+ return syntheticFrame;
560
+ }
561
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
562
+ {
563
+ return describeNativeComponentFrame(fn, false);
564
+ }
565
+ }
566
+
567
+ function shouldConstruct(Component) {
568
+ var prototype = Component.prototype;
569
+ return !!(prototype && prototype.isReactComponent);
570
+ }
571
+
572
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
573
+
574
+ if (type == null) {
575
+ return '';
576
+ }
577
+
578
+ if (typeof type === 'function') {
579
+ {
580
+ return describeNativeComponentFrame(type, shouldConstruct(type));
581
+ }
582
+ }
583
+
584
+ if (typeof type === 'string') {
585
+ return describeBuiltInComponentFrame(type);
586
+ }
587
+
588
+ switch (type) {
589
+ case REACT_SUSPENSE_TYPE:
590
+ return describeBuiltInComponentFrame('Suspense');
591
+
592
+ case REACT_SUSPENSE_LIST_TYPE:
593
+ return describeBuiltInComponentFrame('SuspenseList');
594
+ }
595
+
596
+ if (typeof type === 'object') {
597
+ switch (type.$$typeof) {
598
+ case REACT_FORWARD_REF_TYPE:
599
+ return describeFunctionComponentFrame(type.render);
600
+
601
+ case REACT_MEMO_TYPE:
602
+ // Memo may contain any component type so we recursively resolve it.
603
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
604
+
605
+ case REACT_LAZY_TYPE:
606
+ {
607
+ var lazyComponent = type;
608
+ var payload = lazyComponent._payload;
609
+ var init = lazyComponent._init;
610
+
611
+ try {
612
+ // Lazy may contain any component type so we recursively resolve it.
613
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
614
+ } catch (x) {}
615
+ }
616
+ }
617
+ }
618
+
619
+ return '';
620
+ }
621
+
622
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
623
+
624
+ var loggedTypeFailures = {};
625
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
626
+
627
+ function setCurrentlyValidatingElement(element) {
628
+ {
629
+ if (element) {
630
+ var owner = element._owner;
631
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
632
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
633
+ } else {
634
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
635
+ }
636
+ }
637
+ }
638
+
639
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
640
+ {
641
+ // $FlowFixMe This is okay but Flow doesn't know it.
642
+ var has = Function.call.bind(hasOwnProperty);
643
+
644
+ for (var typeSpecName in typeSpecs) {
645
+ if (has(typeSpecs, typeSpecName)) {
646
+ var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
647
+ // fail the render phase where it didn't fail before. So we log it.
648
+ // After these have been cleaned up, we'll let them throw.
649
+
650
+ try {
651
+ // This is intentionally an invariant that gets caught. It's the same
652
+ // behavior as without this statement except with a better message.
653
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
654
+ // eslint-disable-next-line react-internal/prod-error-codes
655
+ var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
656
+ err.name = 'Invariant Violation';
657
+ throw err;
658
+ }
659
+
660
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
661
+ } catch (ex) {
662
+ error$1 = ex;
663
+ }
664
+
665
+ if (error$1 && !(error$1 instanceof Error)) {
666
+ setCurrentlyValidatingElement(element);
667
+
668
+ error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
669
+
670
+ setCurrentlyValidatingElement(null);
671
+ }
672
+
673
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
674
+ // Only monitor this failure once because there tends to be a lot of the
675
+ // same error.
676
+ loggedTypeFailures[error$1.message] = true;
677
+ setCurrentlyValidatingElement(element);
678
+
679
+ error('Failed %s type: %s', location, error$1.message);
680
+
681
+ setCurrentlyValidatingElement(null);
682
+ }
683
+ }
684
+ }
685
+ }
686
+ }
687
+
688
+ var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
689
+
690
+ function isArray(a) {
691
+ return isArrayImpl(a);
692
+ }
693
+
694
+ /*
695
+ * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
696
+ * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
697
+ *
698
+ * The functions in this module will throw an easier-to-understand,
699
+ * easier-to-debug exception with a clear errors message message explaining the
700
+ * problem. (Instead of a confusing exception thrown inside the implementation
701
+ * of the `value` object).
702
+ */
703
+ // $FlowFixMe only called in DEV, so void return is not possible.
704
+ function typeName(value) {
705
+ {
706
+ // toStringTag is needed for namespaced types like Temporal.Instant
707
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
708
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
709
+ return type;
710
+ }
711
+ } // $FlowFixMe only called in DEV, so void return is not possible.
712
+
713
+
714
+ function willCoercionThrow(value) {
715
+ {
716
+ try {
717
+ testStringCoercion(value);
718
+ return false;
719
+ } catch (e) {
720
+ return true;
721
+ }
722
+ }
723
+ }
724
+
725
+ function testStringCoercion(value) {
726
+ // If you ended up here by following an exception call stack, here's what's
727
+ // happened: you supplied an object or symbol value to React (as a prop, key,
728
+ // DOM attribute, CSS property, string ref, etc.) and when React tried to
729
+ // coerce it to a string using `'' + value`, an exception was thrown.
730
+ //
731
+ // The most common types that will cause this exception are `Symbol` instances
732
+ // and Temporal objects like `Temporal.Instant`. But any object that has a
733
+ // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
734
+ // exception. (Library authors do this to prevent users from using built-in
735
+ // numeric operators like `+` or comparison operators like `>=` because custom
736
+ // methods are needed to perform accurate arithmetic or comparison.)
737
+ //
738
+ // To fix the problem, coerce this object or symbol value to a string before
739
+ // passing it to React. The most reliable way is usually `String(value)`.
740
+ //
741
+ // To find which value is throwing, check the browser or debugger console.
742
+ // Before this exception was thrown, there should be `console.error` output
743
+ // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
744
+ // problem and how that type was used: key, atrribute, input value prop, etc.
745
+ // In most cases, this console output also shows the component and its
746
+ // ancestor components where the exception happened.
747
+ //
748
+ // eslint-disable-next-line react-internal/safe-string-coercion
749
+ return '' + value;
750
+ }
751
+ function checkKeyStringCoercion(value) {
752
+ {
753
+ if (willCoercionThrow(value)) {
754
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
755
+
756
+ return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
757
+ }
758
+ }
759
+ }
760
+
761
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
762
+ var RESERVED_PROPS = {
763
+ key: true,
764
+ ref: true,
765
+ __self: true,
766
+ __source: true
767
+ };
768
+ var specialPropKeyWarningShown;
769
+ var specialPropRefWarningShown;
770
+ var didWarnAboutStringRefs;
771
+
772
+ {
773
+ didWarnAboutStringRefs = {};
774
+ }
775
+
776
+ function hasValidRef(config) {
777
+ {
778
+ if (hasOwnProperty.call(config, 'ref')) {
779
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
780
+
781
+ if (getter && getter.isReactWarning) {
782
+ return false;
783
+ }
784
+ }
785
+ }
786
+
787
+ return config.ref !== undefined;
788
+ }
789
+
790
+ function hasValidKey(config) {
791
+ {
792
+ if (hasOwnProperty.call(config, 'key')) {
793
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
794
+
795
+ if (getter && getter.isReactWarning) {
796
+ return false;
797
+ }
798
+ }
799
+ }
800
+
801
+ return config.key !== undefined;
802
+ }
803
+
804
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
805
+ {
806
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
807
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
808
+
809
+ if (!didWarnAboutStringRefs[componentName]) {
810
+ error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
811
+
812
+ didWarnAboutStringRefs[componentName] = true;
813
+ }
814
+ }
815
+ }
816
+ }
817
+
818
+ function defineKeyPropWarningGetter(props, displayName) {
819
+ {
820
+ var warnAboutAccessingKey = function () {
821
+ if (!specialPropKeyWarningShown) {
822
+ specialPropKeyWarningShown = true;
823
+
824
+ error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
825
+ }
826
+ };
827
+
828
+ warnAboutAccessingKey.isReactWarning = true;
829
+ Object.defineProperty(props, 'key', {
830
+ get: warnAboutAccessingKey,
831
+ configurable: true
832
+ });
833
+ }
834
+ }
835
+
836
+ function defineRefPropWarningGetter(props, displayName) {
837
+ {
838
+ var warnAboutAccessingRef = function () {
839
+ if (!specialPropRefWarningShown) {
840
+ specialPropRefWarningShown = true;
841
+
842
+ error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
843
+ }
844
+ };
845
+
846
+ warnAboutAccessingRef.isReactWarning = true;
847
+ Object.defineProperty(props, 'ref', {
848
+ get: warnAboutAccessingRef,
849
+ configurable: true
850
+ });
851
+ }
852
+ }
853
+ /**
854
+ * Factory method to create a new React element. This no longer adheres to
855
+ * the class pattern, so do not use new to call it. Also, instanceof check
856
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
857
+ * if something is a React Element.
858
+ *
859
+ * @param {*} type
860
+ * @param {*} props
861
+ * @param {*} key
862
+ * @param {string|object} ref
863
+ * @param {*} owner
864
+ * @param {*} self A *temporary* helper to detect places where `this` is
865
+ * different from the `owner` when React.createElement is called, so that we
866
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
867
+ * functions, and as long as `this` and owner are the same, there will be no
868
+ * change in behavior.
869
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
870
+ * indicating filename, line number, and/or other information.
871
+ * @internal
872
+ */
873
+
874
+
875
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
876
+ var element = {
877
+ // This tag allows us to uniquely identify this as a React Element
878
+ $$typeof: REACT_ELEMENT_TYPE,
879
+ // Built-in properties that belong on the element
880
+ type: type,
881
+ key: key,
882
+ ref: ref,
883
+ props: props,
884
+ // Record the component responsible for creating this element.
885
+ _owner: owner
886
+ };
887
+
888
+ {
889
+ // The validation flag is currently mutative. We put it on
890
+ // an external backing store so that we can freeze the whole object.
891
+ // This can be replaced with a WeakMap once they are implemented in
892
+ // commonly used development environments.
893
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
894
+ // the validation flag non-enumerable (where possible, which should
895
+ // include every environment we run tests in), so the test framework
896
+ // ignores it.
897
+
898
+ Object.defineProperty(element._store, 'validated', {
899
+ configurable: false,
900
+ enumerable: false,
901
+ writable: true,
902
+ value: false
903
+ }); // self and source are DEV only properties.
904
+
905
+ Object.defineProperty(element, '_self', {
906
+ configurable: false,
907
+ enumerable: false,
908
+ writable: false,
909
+ value: self
910
+ }); // Two elements created in two different places should be considered
911
+ // equal for testing purposes and therefore we hide it from enumeration.
912
+
913
+ Object.defineProperty(element, '_source', {
914
+ configurable: false,
915
+ enumerable: false,
916
+ writable: false,
917
+ value: source
918
+ });
919
+
920
+ if (Object.freeze) {
921
+ Object.freeze(element.props);
922
+ Object.freeze(element);
923
+ }
924
+ }
925
+
926
+ return element;
927
+ };
928
+ /**
929
+ * https://github.com/reactjs/rfcs/pull/107
930
+ * @param {*} type
931
+ * @param {object} props
932
+ * @param {string} key
933
+ */
934
+
935
+ function jsxDEV(type, config, maybeKey, source, self) {
936
+ {
937
+ var propName; // Reserved names are extracted
938
+
939
+ var props = {};
940
+ var key = null;
941
+ var ref = null; // Currently, key can be spread in as a prop. This causes a potential
942
+ // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
943
+ // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
944
+ // but as an intermediary step, we will use jsxDEV for everything except
945
+ // <div {...props} key="Hi" />, because we aren't currently able to tell if
946
+ // key is explicitly declared to be undefined or not.
947
+
948
+ if (maybeKey !== undefined) {
949
+ {
950
+ checkKeyStringCoercion(maybeKey);
951
+ }
952
+
953
+ key = '' + maybeKey;
954
+ }
955
+
956
+ if (hasValidKey(config)) {
957
+ {
958
+ checkKeyStringCoercion(config.key);
959
+ }
960
+
961
+ key = '' + config.key;
962
+ }
963
+
964
+ if (hasValidRef(config)) {
965
+ ref = config.ref;
966
+ warnIfStringRefCannotBeAutoConverted(config, self);
967
+ } // Remaining properties are added to a new props object
968
+
969
+
970
+ for (propName in config) {
971
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
972
+ props[propName] = config[propName];
973
+ }
974
+ } // Resolve default props
975
+
976
+
977
+ if (type && type.defaultProps) {
978
+ var defaultProps = type.defaultProps;
979
+
980
+ for (propName in defaultProps) {
981
+ if (props[propName] === undefined) {
982
+ props[propName] = defaultProps[propName];
983
+ }
984
+ }
985
+ }
986
+
987
+ if (key || ref) {
988
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
989
+
990
+ if (key) {
991
+ defineKeyPropWarningGetter(props, displayName);
992
+ }
993
+
994
+ if (ref) {
995
+ defineRefPropWarningGetter(props, displayName);
996
+ }
997
+ }
998
+
999
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
1000
+ }
1001
+ }
1002
+
1003
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
1004
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1005
+
1006
+ function setCurrentlyValidatingElement$1(element) {
1007
+ {
1008
+ if (element) {
1009
+ var owner = element._owner;
1010
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1011
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1012
+ } else {
1013
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1014
+ }
1015
+ }
1016
+ }
1017
+
1018
+ var propTypesMisspellWarningShown;
1019
+
1020
+ {
1021
+ propTypesMisspellWarningShown = false;
1022
+ }
1023
+ /**
1024
+ * Verifies the object is a ReactElement.
1025
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
1026
+ * @param {?object} object
1027
+ * @return {boolean} True if `object` is a ReactElement.
1028
+ * @final
1029
+ */
1030
+
1031
+
1032
+ function isValidElement(object) {
1033
+ {
1034
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1035
+ }
1036
+ }
1037
+
1038
+ function getDeclarationErrorAddendum() {
1039
+ {
1040
+ if (ReactCurrentOwner$1.current) {
1041
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
1042
+
1043
+ if (name) {
1044
+ return '\n\nCheck the render method of `' + name + '`.';
1045
+ }
1046
+ }
1047
+
1048
+ return '';
1049
+ }
1050
+ }
1051
+
1052
+ function getSourceInfoErrorAddendum(source) {
1053
+ {
1054
+ if (source !== undefined) {
1055
+ var fileName = source.fileName.replace(/^.*[\\\/]/, '');
1056
+ var lineNumber = source.lineNumber;
1057
+ return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
1058
+ }
1059
+
1060
+ return '';
1061
+ }
1062
+ }
1063
+ /**
1064
+ * Warn if there's no key explicitly set on dynamic arrays of children or
1065
+ * object keys are not valid. This allows us to keep track of children between
1066
+ * updates.
1067
+ */
1068
+
1069
+
1070
+ var ownerHasKeyUseWarning = {};
1071
+
1072
+ function getCurrentComponentErrorInfo(parentType) {
1073
+ {
1074
+ var info = getDeclarationErrorAddendum();
1075
+
1076
+ if (!info) {
1077
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
1078
+
1079
+ if (parentName) {
1080
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1081
+ }
1082
+ }
1083
+
1084
+ return info;
1085
+ }
1086
+ }
1087
+ /**
1088
+ * Warn if the element doesn't have an explicit key assigned to it.
1089
+ * This element is in an array. The array could grow and shrink or be
1090
+ * reordered. All children that haven't already been validated are required to
1091
+ * have a "key" property assigned to it. Error statuses are cached so a warning
1092
+ * will only be shown once.
1093
+ *
1094
+ * @internal
1095
+ * @param {ReactElement} element Element that requires a key.
1096
+ * @param {*} parentType element's parent's type.
1097
+ */
1098
+
1099
+
1100
+ function validateExplicitKey(element, parentType) {
1101
+ {
1102
+ if (!element._store || element._store.validated || element.key != null) {
1103
+ return;
1104
+ }
1105
+
1106
+ element._store.validated = true;
1107
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1108
+
1109
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1110
+ return;
1111
+ }
1112
+
1113
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
1114
+ // property, it may be the creator of the child that's responsible for
1115
+ // assigning it a key.
1116
+
1117
+ var childOwner = '';
1118
+
1119
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
1120
+ // Give the component that originally created this child.
1121
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1122
+ }
1123
+
1124
+ setCurrentlyValidatingElement$1(element);
1125
+
1126
+ error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
1127
+
1128
+ setCurrentlyValidatingElement$1(null);
1129
+ }
1130
+ }
1131
+ /**
1132
+ * Ensure that every element either is passed in a static location, in an
1133
+ * array with an explicit keys property defined, or in an object literal
1134
+ * with valid key property.
1135
+ *
1136
+ * @internal
1137
+ * @param {ReactNode} node Statically passed child of any type.
1138
+ * @param {*} parentType node's parent's type.
1139
+ */
1140
+
1141
+
1142
+ function validateChildKeys(node, parentType) {
1143
+ {
1144
+ if (typeof node !== 'object') {
1145
+ return;
1146
+ }
1147
+
1148
+ if (isArray(node)) {
1149
+ for (var i = 0; i < node.length; i++) {
1150
+ var child = node[i];
1151
+
1152
+ if (isValidElement(child)) {
1153
+ validateExplicitKey(child, parentType);
1154
+ }
1155
+ }
1156
+ } else if (isValidElement(node)) {
1157
+ // This element was passed in a valid location.
1158
+ if (node._store) {
1159
+ node._store.validated = true;
1160
+ }
1161
+ } else if (node) {
1162
+ var iteratorFn = getIteratorFn(node);
1163
+
1164
+ if (typeof iteratorFn === 'function') {
1165
+ // Entry iterators used to provide implicit keys,
1166
+ // but now we print a separate warning for them later.
1167
+ if (iteratorFn !== node.entries) {
1168
+ var iterator = iteratorFn.call(node);
1169
+ var step;
1170
+
1171
+ while (!(step = iterator.next()).done) {
1172
+ if (isValidElement(step.value)) {
1173
+ validateExplicitKey(step.value, parentType);
1174
+ }
1175
+ }
1176
+ }
1177
+ }
1178
+ }
1179
+ }
1180
+ }
1181
+ /**
1182
+ * Given an element, validate that its props follow the propTypes definition,
1183
+ * provided by the type.
1184
+ *
1185
+ * @param {ReactElement} element
1186
+ */
1187
+
1188
+
1189
+ function validatePropTypes(element) {
1190
+ {
1191
+ var type = element.type;
1192
+
1193
+ if (type === null || type === undefined || typeof type === 'string') {
1194
+ return;
1195
+ }
1196
+
1197
+ var propTypes;
1198
+
1199
+ if (typeof type === 'function') {
1200
+ propTypes = type.propTypes;
1201
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1202
+ // Inner props are checked in the reconciler.
1203
+ type.$$typeof === REACT_MEMO_TYPE)) {
1204
+ propTypes = type.propTypes;
1205
+ } else {
1206
+ return;
1207
+ }
1208
+
1209
+ if (propTypes) {
1210
+ // Intentionally inside to avoid triggering lazy initializers:
1211
+ var name = getComponentNameFromType(type);
1212
+ checkPropTypes(propTypes, element.props, 'prop', name, element);
1213
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
1214
+ propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
1215
+
1216
+ var _name = getComponentNameFromType(type);
1217
+
1218
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
1219
+ }
1220
+
1221
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
1222
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
1223
+ }
1224
+ }
1225
+ }
1226
+ /**
1227
+ * Given a fragment, validate that it can only be provided with fragment props
1228
+ * @param {ReactElement} fragment
1229
+ */
1230
+
1231
+
1232
+ function validateFragmentProps(fragment) {
1233
+ {
1234
+ var keys = Object.keys(fragment.props);
1235
+
1236
+ for (var i = 0; i < keys.length; i++) {
1237
+ var key = keys[i];
1238
+
1239
+ if (key !== 'children' && key !== 'key') {
1240
+ setCurrentlyValidatingElement$1(fragment);
1241
+
1242
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
1243
+
1244
+ setCurrentlyValidatingElement$1(null);
1245
+ break;
1246
+ }
1247
+ }
1248
+
1249
+ if (fragment.ref !== null) {
1250
+ setCurrentlyValidatingElement$1(fragment);
1251
+
1252
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
1253
+
1254
+ setCurrentlyValidatingElement$1(null);
1255
+ }
1256
+ }
1257
+ }
1258
+
1259
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1260
+ {
1261
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
1262
+ // succeed and there will likely be errors in render.
1263
+
1264
+ if (!validType) {
1265
+ var info = '';
1266
+
1267
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
1268
+ info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
1269
+ }
1270
+
1271
+ var sourceInfo = getSourceInfoErrorAddendum(source);
1272
+
1273
+ if (sourceInfo) {
1274
+ info += sourceInfo;
1275
+ } else {
1276
+ info += getDeclarationErrorAddendum();
1277
+ }
1278
+
1279
+ var typeString;
1280
+
1281
+ if (type === null) {
1282
+ typeString = 'null';
1283
+ } else if (isArray(type)) {
1284
+ typeString = 'array';
1285
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
1286
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
1287
+ info = ' Did you accidentally export a JSX literal instead of a component?';
1288
+ } else {
1289
+ typeString = typeof type;
1290
+ }
1291
+
1292
+ error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
1293
+ }
1294
+
1295
+ var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
1296
+ // TODO: Drop this when these are no longer allowed as the type argument.
1297
+
1298
+ if (element == null) {
1299
+ return element;
1300
+ } // Skip key warning if the type isn't valid since our key validation logic
1301
+ // doesn't expect a non-string/function type and can throw confusing errors.
1302
+ // We don't want exception behavior to differ between dev and prod.
1303
+ // (Rendering will throw with a helpful message and as soon as the type is
1304
+ // fixed, the key warnings will appear.)
1305
+
1306
+
1307
+ if (validType) {
1308
+ var children = props.children;
1309
+
1310
+ if (children !== undefined) {
1311
+ if (isStaticChildren) {
1312
+ if (isArray(children)) {
1313
+ for (var i = 0; i < children.length; i++) {
1314
+ validateChildKeys(children[i], type);
1315
+ }
1316
+
1317
+ if (Object.freeze) {
1318
+ Object.freeze(children);
1319
+ }
1320
+ } else {
1321
+ error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
1322
+ }
1323
+ } else {
1324
+ validateChildKeys(children, type);
1325
+ }
1326
+ }
1327
+ }
1328
+
1329
+ if (type === REACT_FRAGMENT_TYPE) {
1330
+ validateFragmentProps(element);
1331
+ } else {
1332
+ validatePropTypes(element);
1333
+ }
1334
+
1335
+ return element;
1336
+ }
1337
+ } // These two functions exist to still get child warnings in dev
1338
+ // even with the prod transform. This means that jsxDEV is purely
1339
+ // opt-in behavior for better messages but that we won't stop
1340
+ // giving you warnings if you use production apis.
1341
+
1342
+ function jsxWithValidationStatic(type, props, key) {
1343
+ {
1344
+ return jsxWithValidation(type, props, key, true);
1345
+ }
1346
+ }
1347
+ function jsxWithValidationDynamic(type, props, key) {
1348
+ {
1349
+ return jsxWithValidation(type, props, key, false);
1350
+ }
1351
+ }
1352
+
1353
+ var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
1354
+ // for now we can ship identical prod functions
1355
+
1356
+ var jsxs = jsxWithValidationStatic ;
1357
+
1358
+ exports.Fragment = REACT_FRAGMENT_TYPE;
1359
+ exports.jsx = jsx;
1360
+ exports.jsxs = jsxs;
1361
+ })();
1362
+ }
1363
+ });
1364
+
1365
+ var jsxRuntime = createCommonjsModule(function (module) {
1366
+
1367
+ if (process.env.NODE_ENV === 'production') {
1368
+ module.exports = reactJsxRuntime_production_min;
1369
+ } else {
1370
+ module.exports = reactJsxRuntime_development;
1371
+ }
1372
+ });
1373
+
7
1374
  /******************************************************************************
8
1375
  Copyright (c) Microsoft Corporation.
9
1376
 
@@ -500,37 +1867,37 @@ var tslib_es6 = {
500
1867
  };
501
1868
 
502
1869
  var tslib_es6$1 = /*#__PURE__*/Object.freeze({
503
- __proto__: null,
504
- __extends: __extends,
505
- get __assign () { return __assign; },
506
- __rest: __rest,
507
- __decorate: __decorate,
508
- __param: __param,
509
- __esDecorate: __esDecorate,
510
- __runInitializers: __runInitializers,
511
- __propKey: __propKey,
512
- __setFunctionName: __setFunctionName,
513
- __metadata: __metadata,
514
- __awaiter: __awaiter,
515
- __generator: __generator,
516
- __createBinding: __createBinding,
517
- __exportStar: __exportStar,
518
- __values: __values,
519
- __read: __read,
520
- __spread: __spread,
521
- __spreadArrays: __spreadArrays,
522
- __spreadArray: __spreadArray,
523
- __await: __await,
524
- __asyncGenerator: __asyncGenerator,
525
- __asyncDelegator: __asyncDelegator,
526
- __asyncValues: __asyncValues,
527
- __makeTemplateObject: __makeTemplateObject,
528
- __importStar: __importStar,
529
- __importDefault: __importDefault,
530
- __classPrivateFieldGet: __classPrivateFieldGet,
531
- __classPrivateFieldSet: __classPrivateFieldSet,
532
- __classPrivateFieldIn: __classPrivateFieldIn,
533
- 'default': tslib_es6
1870
+ __proto__: null,
1871
+ __extends: __extends,
1872
+ get __assign () { return __assign; },
1873
+ __rest: __rest,
1874
+ __decorate: __decorate,
1875
+ __param: __param,
1876
+ __esDecorate: __esDecorate,
1877
+ __runInitializers: __runInitializers,
1878
+ __propKey: __propKey,
1879
+ __setFunctionName: __setFunctionName,
1880
+ __metadata: __metadata,
1881
+ __awaiter: __awaiter,
1882
+ __generator: __generator,
1883
+ __createBinding: __createBinding,
1884
+ __exportStar: __exportStar,
1885
+ __values: __values,
1886
+ __read: __read,
1887
+ __spread: __spread,
1888
+ __spreadArrays: __spreadArrays,
1889
+ __spreadArray: __spreadArray,
1890
+ __await: __await,
1891
+ __asyncGenerator: __asyncGenerator,
1892
+ __asyncDelegator: __asyncDelegator,
1893
+ __asyncValues: __asyncValues,
1894
+ __makeTemplateObject: __makeTemplateObject,
1895
+ __importStar: __importStar,
1896
+ __importDefault: __importDefault,
1897
+ __classPrivateFieldGet: __classPrivateFieldGet,
1898
+ __classPrivateFieldSet: __classPrivateFieldSet,
1899
+ __classPrivateFieldIn: __classPrivateFieldIn,
1900
+ 'default': tslib_es6
534
1901
  });
535
1902
 
536
1903
  let currentId$1 = 0;
@@ -8779,30 +10146,6 @@ ExpandableSection.defaultProps = {
8779
10146
  variant: 'default'
8780
10147
  };
8781
10148
 
8782
- function getDefaultExportFromCjs (x) {
8783
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
8784
- }
8785
-
8786
- function getAugmentedNamespace(n) {
8787
- if (n.__esModule) return n;
8788
- var a = Object.defineProperty({}, '__esModule', {value: true});
8789
- Object.keys(n).forEach(function (k) {
8790
- var d = Object.getOwnPropertyDescriptor(n, k);
8791
- Object.defineProperty(a, k, d.get ? d : {
8792
- enumerable: true,
8793
- get: function () {
8794
- return n[k];
8795
- }
8796
- });
8797
- });
8798
- return a;
8799
- }
8800
-
8801
- function createCommonjsModule(fn) {
8802
- var module = { exports: {} };
8803
- return fn(module, module.exports), module.exports;
8804
- }
8805
-
8806
10149
  var labelStyles = {
8807
10150
  "button": "pf-v6-c-button",
8808
10151
  "label": "pf-v6-c-label",
@@ -11104,27 +12447,27 @@ const useValuesForQuickStartContext = (value = {}) => {
11104
12447
  var _a, _b;
11105
12448
  const combinedValue = Object.assign(Object.assign({}, QuickStartContextDefaults), value);
11106
12449
  const { activeQuickStartID, setActiveQuickStartID, setAllQuickStartStates, useQueryParams, allQuickStartStates, allQuickStarts = [], footer, useLegacyHeaderColors, markdown, } = combinedValue;
11107
- const [quickStarts, setQuickStarts] = React__default.useState(combinedValue.allQuickStarts || []);
11108
- const [resourceBundle, setResourceBundle] = React__default.useState(Object.assign(Object.assign({}, en), combinedValue.resourceBundle));
11109
- const [language, setLanguage] = React__default.useState(combinedValue.language);
12450
+ const [quickStarts, setQuickStarts] = useState(combinedValue.allQuickStarts || []);
12451
+ const [resourceBundle, setResourceBundle] = useState(Object.assign(Object.assign({}, en), combinedValue.resourceBundle));
12452
+ const [language, setLanguage] = useState(combinedValue.language);
11110
12453
  const changeResourceBundle = (bundle, lng) => {
11111
12454
  lng && setLanguage(lng);
11112
12455
  setResourceBundle(Object.assign(Object.assign({}, en), bundle));
11113
12456
  };
11114
12457
  const findResource = useCallback((resource, count) => getResource(resource, count !== undefined ? { count } : null, resourceBundle, language), [resourceBundle, language]);
11115
- const [loading, setLoading] = React__default.useState(combinedValue.loading);
11116
- const [alwaysShowTaskReview, setAlwaysShowTaskReview] = React__default.useState(combinedValue.alwaysShowTaskReview);
12458
+ const [loading, setLoading] = useState(combinedValue.loading);
12459
+ const [alwaysShowTaskReview, setAlwaysShowTaskReview] = useState(combinedValue.alwaysShowTaskReview);
11117
12460
  const initialSearchParams = new URLSearchParams(window.location.search);
11118
12461
  const initialSearchQuery = initialSearchParams.get(QUICKSTART_SEARCH_FILTER_KEY) || '';
11119
12462
  const initialStatusFilters = ((_a = initialSearchParams.get(QUICKSTART_STATUS_FILTER_KEY)) === null || _a === void 0 ? void 0 : _a.split(',')) || [];
11120
12463
  const quickStartStatusCount = getQuickStartStatusCount(allQuickStartStates, allQuickStarts);
11121
- const [statusTypes, setStatusTypes] = React__default.useState({
12464
+ const [statusTypes, setStatusTypes] = useState({
11122
12465
  [QuickStartStatus.COMPLETE]: findResource('Complete ({{statusCount, number}})').replace('{{statusCount, number}}', quickStartStatusCount[QuickStartStatus.COMPLETE]),
11123
12466
  [QuickStartStatus.IN_PROGRESS]: findResource('In progress ({{statusCount, number}})').replace('{{statusCount, number}}', quickStartStatusCount[QuickStartStatus.IN_PROGRESS]),
11124
12467
  [QuickStartStatus.NOT_STARTED]: findResource('Not started ({{statusCount, number}})').replace('{{statusCount, number}}', quickStartStatusCount[QuickStartStatus.NOT_STARTED]),
11125
12468
  });
11126
- const [statusFilters, setStatusFilters] = React__default.useState(initialStatusFilters);
11127
- const [filterKeyword, setFilterKeyword] = React__default.useState(initialSearchQuery);
12469
+ const [statusFilters, setStatusFilters] = useState(initialStatusFilters);
12470
+ const [filterKeyword, setFilterKeyword] = useState(initialSearchQuery);
11128
12471
  const setFilter = (type, val) => {
11129
12472
  if (type === 'keyword') {
11130
12473
  setFilterKeyword(val);
@@ -11133,7 +12476,7 @@ const useValuesForQuickStartContext = (value = {}) => {
11133
12476
  setStatusFilters(val);
11134
12477
  }
11135
12478
  };
11136
- React__default.useEffect(() => {
12479
+ useEffect(() => {
11137
12480
  const updatedQuickStartStatusCount = getQuickStartStatusCount(allQuickStartStates, quickStarts);
11138
12481
  setStatusTypes({
11139
12482
  [QuickStartStatus.COMPLETE]: findResource('Complete ({{statusCount, number}})').replace('{{statusCount, number}}', updatedQuickStartStatusCount[QuickStartStatus.COMPLETE]),
@@ -11305,24 +12648,18 @@ const useValuesForQuickStartContext = (value = {}) => {
11305
12648
  setAlwaysShowTaskReview,
11306
12649
  };
11307
12650
  };
11308
- const QuickStartContextProvider = ({ children, value }) => (React__default.createElement(QuickStartContext.Provider, { value: useValuesForQuickStartContext(value) }, children));
12651
+ const QuickStartContextProvider = ({ children, value }) => (jsxRuntime.jsx(QuickStartContext.Provider, Object.assign({ value: useValuesForQuickStartContext(value) }, { children: children })));
11309
12652
 
11310
- const Box = ({ children, className }) => (React.createElement("div", { className: css('pfext-status-box', className) }, children));
11311
- const Loading = ({ className }) => (React.createElement("div", { className: css('pfext-m-loader', className) },
11312
- React.createElement("div", { className: "pfext-m-loader-dot__one" }),
11313
- React.createElement("div", { className: "pfext-m-loader-dot__two" }),
11314
- React.createElement("div", { className: "pfext-m-loader-dot__three" })));
12653
+ const Box = ({ children, className }) => (jsxRuntime.jsx("div", Object.assign({ className: css('pfext-status-box', className) }, { children: children })));
12654
+ const Loading = ({ className }) => (jsxRuntime.jsxs("div", Object.assign({ className: css('pfext-m-loader', className) }, { children: [jsxRuntime.jsx("div", { className: "pfext-m-loader-dot__one" }), jsxRuntime.jsx("div", { className: "pfext-m-loader-dot__two" }), jsxRuntime.jsx("div", { className: "pfext-m-loader-dot__three" })] })));
11315
12655
  Loading.displayName = 'Loading';
11316
- const LoadingBox = ({ className, message }) => (React.createElement(Box, { className: css('pfext-status-box--loading', className) },
11317
- React.createElement(Loading, null),
11318
- message && React.createElement("div", { className: "pfext-status-box__loading-message" }, message)));
12656
+ const LoadingBox = ({ className, message }) => (jsxRuntime.jsxs(Box, Object.assign({ className: css('pfext-status-box--loading', className) }, { children: [jsxRuntime.jsx(Loading, {}), message && jsxRuntime.jsx("div", Object.assign({ className: "pfext-status-box__loading-message" }, { children: message }))] })));
11319
12657
  LoadingBox.displayName = 'LoadingBox';
11320
12658
  const EmptyBox = ({ label }) => {
11321
- const { getResource } = React.useContext(QuickStartContext);
11322
- return (React.createElement(Box, null,
11323
- React.createElement("div", { "data-test": "empty-message", className: "text-center" }, label
11324
- ? getResource('No {{label}} found').replace('{{label}}', label)
11325
- : getResource('Not found'))));
12659
+ const { getResource } = useContext(QuickStartContext);
12660
+ return (jsxRuntime.jsx(Box, { children: jsxRuntime.jsx("div", Object.assign({ "data-test": "empty-message", className: "text-center" }, { children: label
12661
+ ? getResource('No {{label}} found').replace('{{label}}', label)
12662
+ : getResource('Not found') })) }));
11326
12663
  };
11327
12664
  EmptyBox.displayName = 'EmptyBox';
11328
12665
 
@@ -11336,9 +12673,7 @@ const CamelCaseWrap = ({ value, dataTest }) => {
11336
12673
  }
11337
12674
  // Add word break points before capital letters (but keep consecutive capital letters together).
11338
12675
  const words = value.match(/[A-Z]+[^A-Z]*|[^A-Z]+/g);
11339
- const rendered = (React.createElement("span", { "data-test": dataTest }, words.map((word, i) => (React.createElement(React.Fragment, { key: i },
11340
- word,
11341
- i !== words.length - 1 && React.createElement("wbr", null))))));
12676
+ const rendered = (jsxRuntime.jsx("span", Object.assign({ "data-test": dataTest }, { children: words.map((word, i) => (jsxRuntime.jsxs(Fragment$1, { children: [word, i !== words.length - 1 && jsxRuntime.jsx("wbr", {})] }, i))) })));
11342
12677
  MEMO[value] = rendered;
11343
12678
  return rendered;
11344
12679
  };
@@ -11361,40 +12696,40 @@ var RocketIcon = /*@__PURE__*/getDefaultExportFromCjs(rocketIcon);
11361
12696
 
11362
12697
  const Modal = (_a) => {
11363
12698
  var { isFullScreen = false, className } = _a, props = __rest(_a, ["isFullScreen", "className"]);
11364
- return (React.createElement(Modal$1, Object.assign({}, props, { className: css('pfext-modal', className), appendTo: () => (isFullScreen ? document.body : document.querySelector('#modal-container')) })));
12699
+ return (jsxRuntime.jsx(Modal$1, Object.assign({}, props, { className: css('pfext-modal', className), appendTo: () => (isFullScreen ? document.body : document.querySelector('#modal-container')) })));
11365
12700
  };
11366
12701
 
11367
12702
  const getContainer = (container) => typeof container === 'function' ? container() : container;
11368
12703
  const Portal = ({ children, container }) => {
11369
- const [containerNode, setContainerNode] = React.useState();
12704
+ const [containerNode, setContainerNode] = useState();
11370
12705
  useIsomorphicLayoutEffect(() => {
11371
12706
  setContainerNode(getContainer(container) || document.body);
11372
12707
  }, [container]);
11373
- return containerNode ? ReactDOM.createPortal(children, containerNode) : null;
12708
+ return containerNode ? createPortal(children, containerNode) : null;
11374
12709
  };
11375
12710
 
11376
12711
  const SimplePopper = ({ children }) => {
11377
12712
  const openProp = true;
11378
- const nodeRef = React.useRef();
11379
- const popperRef = React.useRef(null);
11380
- const [isOpen, setOpenState] = React.useState(openProp);
11381
- const setOpen = React.useCallback((newOpen) => {
12713
+ const nodeRef = useRef(null);
12714
+ const popperRef = useRef(null);
12715
+ const [isOpen, setOpenState] = useState(openProp);
12716
+ const setOpen = useCallback((newOpen) => {
11382
12717
  setOpenState(newOpen);
11383
12718
  }, []);
11384
- React.useEffect(() => {
12719
+ useEffect(() => {
11385
12720
  setOpen(openProp);
11386
12721
  }, [openProp, setOpen]);
11387
- const onKeyDown = React.useCallback((e) => {
12722
+ const onKeyDown = useCallback((e) => {
11388
12723
  if (e.keyCode === 27) {
11389
12724
  setOpen(false);
11390
12725
  }
11391
12726
  }, [setOpen]);
11392
- const onClickOutside = React.useCallback((e) => {
12727
+ const onClickOutside = useCallback((e) => {
11393
12728
  if (!nodeRef.current || (e.target instanceof Node && !nodeRef.current.contains(e.target))) {
11394
12729
  setOpen(false);
11395
12730
  }
11396
12731
  }, [setOpen]);
11397
- const destroy = React.useCallback(() => {
12732
+ const destroy = useCallback(() => {
11398
12733
  if (popperRef.current) {
11399
12734
  popperRef.current.destroy();
11400
12735
  document.removeEventListener('keydown', onKeyDown, true);
@@ -11402,29 +12737,28 @@ const SimplePopper = ({ children }) => {
11402
12737
  document.removeEventListener('touchstart', onClickOutside, true);
11403
12738
  }
11404
12739
  }, [onClickOutside, onKeyDown]);
11405
- const initialize = React.useCallback(() => {
12740
+ const initialize = useCallback(() => {
11406
12741
  if (!nodeRef.current || !isOpen) {
11407
12742
  return;
11408
12743
  }
11409
12744
  destroy();
11410
12745
  }, [isOpen, destroy]);
11411
- const nodeRefCallback = React.useCallback((node) => {
12746
+ const nodeRefCallback = useCallback((node) => {
11412
12747
  nodeRef.current = node;
11413
12748
  initialize();
11414
12749
  }, [initialize]);
11415
- React.useEffect(() => {
12750
+ useEffect(() => {
11416
12751
  initialize();
11417
12752
  }, [initialize]);
11418
- React.useEffect(() => () => {
12753
+ useEffect(() => () => {
11419
12754
  destroy();
11420
12755
  }, [destroy]);
11421
- React.useEffect(() => {
12756
+ useEffect(() => {
11422
12757
  if (!isOpen) {
11423
12758
  destroy();
11424
12759
  }
11425
12760
  }, [destroy, isOpen]);
11426
- return isOpen ? (React.createElement(Portal, null,
11427
- React.createElement("div", { ref: nodeRefCallback, style: { zIndex: 9999, position: 'absolute', top: 0, left: 0 }, className: "pfext-quick-start__base" }, children))) : null;
12761
+ return isOpen ? (jsxRuntime.jsx(Portal, { children: jsxRuntime.jsx("div", Object.assign({ ref: nodeRefCallback, style: { zIndex: 9999, position: 'absolute', top: 0, left: 0 }, className: "pfext-quick-start__base" }, { children: children })) })) : null;
11428
12762
  };
11429
12763
 
11430
12764
  const isInViewport = (elementToCheck) => {
@@ -11444,8 +12778,8 @@ const InteractiveSpotlight = ({ element }) => {
11444
12778
  bottom,
11445
12779
  right,
11446
12780
  };
11447
- const [clicked, setClicked] = React.useState(false);
11448
- React.useEffect(() => {
12781
+ const [clicked, setClicked] = useState(false);
12782
+ useEffect(() => {
11449
12783
  if (!clicked) {
11450
12784
  if (!isInViewport(element)) {
11451
12785
  element.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'nearest' });
@@ -11461,9 +12795,7 @@ const InteractiveSpotlight = ({ element }) => {
11461
12795
  if (clicked) {
11462
12796
  return null;
11463
12797
  }
11464
- return (React.createElement(Portal, null,
11465
- React.createElement(SimplePopper, null,
11466
- React.createElement("div", { className: "pfext-spotlight pfext-spotlight__element-highlight-animate", style: style }))));
12798
+ return (jsxRuntime.jsx(Portal, { children: jsxRuntime.jsx(SimplePopper, { children: jsxRuntime.jsx("div", { className: "pfext-spotlight pfext-spotlight__element-highlight-animate", style: style }) }) }));
11467
12799
  };
11468
12800
 
11469
12801
  var ScrollDirection;
@@ -11475,8 +12807,8 @@ var ScrollDirection;
11475
12807
  })(ScrollDirection || (ScrollDirection = {}));
11476
12808
 
11477
12809
  const useResizeObserver = (callback, targetElement, observerOptions = undefined) => {
11478
- const element = React.useMemo(() => targetElement !== null && targetElement !== void 0 ? targetElement : document.querySelector('body'), [targetElement]);
11479
- React.useEffect(() => {
12810
+ const element = useMemo(() => targetElement !== null && targetElement !== void 0 ? targetElement : document.querySelector('body'), [targetElement]);
12811
+ useEffect(() => {
11480
12812
  const observer = new ResizeObserver(callback);
11481
12813
  observer.observe(element, observerOptions);
11482
12814
  return () => {
@@ -11494,8 +12826,8 @@ var Shadows;
11494
12826
  })(Shadows || (Shadows = {}));
11495
12827
 
11496
12828
  const useBoundingClientRect = (targetElement) => {
11497
- const [clientRect, setClientRect] = React.useState(() => targetElement ? targetElement.getBoundingClientRect() : null);
11498
- const observerCallback = React.useCallback(() => {
12829
+ const [clientRect, setClientRect] = useState(() => targetElement ? targetElement.getBoundingClientRect() : null);
12830
+ const observerCallback = useCallback(() => {
11499
12831
  setClientRect(targetElement ? targetElement.getBoundingClientRect() : null);
11500
12832
  }, [targetElement]);
11501
12833
  useResizeObserver(observerCallback);
@@ -11505,7 +12837,7 @@ const useBoundingClientRect = (targetElement) => {
11505
12837
  /**
11506
12838
  * React hook that forces component render.
11507
12839
  */
11508
- const useForceRender = () => React.useReducer((s) => !s, false)[1];
12840
+ const useForceRender = () => useReducer((s) => !s, false)[1];
11509
12841
 
11510
12842
  const useEventListener = (target, event, callback) => {
11511
12843
  useEffect(() => {
@@ -11526,14 +12858,12 @@ const StaticSpotlight = ({ element }) => {
11526
12858
  width: clientRect.width,
11527
12859
  }
11528
12860
  : {};
11529
- return clientRect ? (React.createElement(Portal, null,
11530
- React.createElement("div", { className: "pf-v6-c-backdrop pfext-spotlight__with-backdrop" },
11531
- React.createElement("div", { className: "pfext-spotlight pfext-spotlight__element-highlight-noanimate", style: style })))) : null;
12861
+ return clientRect ? (jsxRuntime.jsx(Portal, { children: jsxRuntime.jsx("div", Object.assign({ className: "pf-v6-c-backdrop pfext-spotlight__with-backdrop" }, { children: jsxRuntime.jsx("div", { className: "pfext-spotlight pfext-spotlight__element-highlight-noanimate", style: style }) })) })) : null;
11532
12862
  };
11533
12863
 
11534
12864
  const Spotlight = ({ selector, interactive }) => {
11535
12865
  // if target element is a hidden one return null
11536
- const element = React.useMemo(() => {
12866
+ const element = useMemo(() => {
11537
12867
  const highlightElement = document.querySelector(selector);
11538
12868
  let hiddenElement = highlightElement;
11539
12869
  while (hiddenElement) {
@@ -11548,12 +12878,12 @@ const Spotlight = ({ selector, interactive }) => {
11548
12878
  if (!element) {
11549
12879
  return null;
11550
12880
  }
11551
- return interactive ? (React.createElement(InteractiveSpotlight, { element: element })) : (React.createElement(StaticSpotlight, { element: element }));
12881
+ return interactive ? (jsxRuntime.jsx(InteractiveSpotlight, { element: element })) : (jsxRuntime.jsx(StaticSpotlight, { element: element }));
11552
12882
  };
11553
12883
 
11554
12884
  const MarkdownHighlightExtension = ({ docContext, rootSelector, }) => {
11555
- const [selector, setSelector] = React.useState(null);
11556
- React.useEffect(() => {
12885
+ const [selector, setSelector] = useState(null);
12886
+ useEffect(() => {
11557
12887
  const elements = docContext.querySelectorAll(`${rootSelector} [data-highlight]`);
11558
12888
  let timeoutId;
11559
12889
  function startHighlight(e) {
@@ -11572,7 +12902,7 @@ const MarkdownHighlightExtension = ({ docContext, rootSelector, }) => {
11572
12902
  elements && elements.forEach((elm) => elm.removeEventListener('click', startHighlight));
11573
12903
  };
11574
12904
  }, [docContext, rootSelector]);
11575
- React.useEffect(() => {
12905
+ useEffect(() => {
11576
12906
  const elements = docContext.querySelectorAll(`${rootSelector} [class^=data-highlight__]`);
11577
12907
  let timeoutId;
11578
12908
  function startHighlight(e) {
@@ -11602,7 +12932,7 @@ const MarkdownHighlightExtension = ({ docContext, rootSelector, }) => {
11602
12932
  if (!selector) {
11603
12933
  return null;
11604
12934
  }
11605
- return React.createElement(Spotlight, { selector: selector, interactive: true });
12935
+ return jsxRuntime.jsx(Spotlight, { selector: selector, interactive: true });
11606
12936
  };
11607
12937
 
11608
12938
  const MARKDOWN_COPY_BUTTON_ID = 'data-copy-for';
@@ -11610,15 +12940,15 @@ const MARKDOWN_SNIPPET_ID = 'data-snippet-id';
11610
12940
  const ACCORDION_MARKDOWN_BUTTON_ID = `accordion-markdown-button-id`;
11611
12941
  const ACCORDION_MARKDOWN_CONTENT_ID = `accordion-markdown-content-id`;
11612
12942
 
11613
- const CopyClipboard = ({ element, rootSelector, docContext, }) => {
11614
- const { getResource } = React.useContext(QuickStartContext);
11615
- const [showSuccessContent, setShowSuccessContent] = React.useState(false);
11616
- const textToCopy = React.useMemo(() => {
12943
+ const CopyClipboard = ({ element, rootSelector, docContext }) => {
12944
+ const { getResource } = useContext(QuickStartContext);
12945
+ const [showSuccessContent, setShowSuccessContent] = useState(false);
12946
+ const textToCopy = useMemo(() => {
11617
12947
  var _a;
11618
12948
  const copyTextId = element.getAttribute(MARKDOWN_COPY_BUTTON_ID);
11619
12949
  return (_a = docContext.querySelector(`${rootSelector} [${MARKDOWN_SNIPPET_ID}="${copyTextId}"]`)) === null || _a === void 0 ? void 0 : _a.innerText;
11620
12950
  }, [element, docContext, rootSelector]);
11621
- useEventListener(element, 'click', React.useCallback(() => {
12951
+ useEventListener(element, 'click', useCallback(() => {
11622
12952
  navigator.clipboard
11623
12953
  .writeText(textToCopy.trim())
11624
12954
  .then(() => {
@@ -11626,17 +12956,17 @@ const CopyClipboard = ({ element, rootSelector, docContext, }) => {
11626
12956
  })
11627
12957
  .catch(() => { });
11628
12958
  }, [textToCopy]));
11629
- useEventListener(element, 'mouseleave', React.useCallback(() => {
12959
+ useEventListener(element, 'mouseleave', useCallback(() => {
11630
12960
  setShowSuccessContent(false);
11631
12961
  }, []));
11632
- return showSuccessContent ? (React.createElement(Tooltip, { key: "after-copy", isVisible: true, triggerRef: () => element, content: getResource('Successfully copied to clipboard!'), className: "pfext-quick-start__base" })) : (React.createElement(Tooltip, { key: "before-copy", triggerRef: () => element, content: getResource('Copy to clipboard'), className: "pfext-quick-start__base" }));
12962
+ return showSuccessContent ? (jsxRuntime.jsx(Tooltip, { isVisible: true, triggerRef: () => element, content: getResource('Successfully copied to clipboard!'), className: "pfext-quick-start__base" }, "after-copy")) : (jsxRuntime.jsx(Tooltip, { triggerRef: () => element, content: getResource('Copy to clipboard'), className: "pfext-quick-start__base" }, "before-copy"));
11633
12963
  };
11634
- const MarkdownCopyClipboard = ({ docContext, rootSelector, }) => {
12964
+ const MarkdownCopyClipboard = ({ docContext, rootSelector }) => {
11635
12965
  const elements = docContext.querySelectorAll(`${rootSelector} [${MARKDOWN_COPY_BUTTON_ID}]`);
11636
- return elements.length > 0 ? (React.createElement(React.Fragment, null, Array.from(elements).map((elm) => {
11637
- const attributeValue = elm.getAttribute(MARKDOWN_COPY_BUTTON_ID);
11638
- return (React.createElement(CopyClipboard, { key: attributeValue, element: elm, rootSelector: rootSelector, docContext: docContext }));
11639
- }))) : null;
12966
+ return elements.length > 0 ? (jsxRuntime.jsx(jsxRuntime.Fragment, { children: Array.from(elements).map((elm) => {
12967
+ const attributeValue = elm.getAttribute(MARKDOWN_COPY_BUTTON_ID);
12968
+ return (jsxRuntime.jsx(CopyClipboard, { element: elm, rootSelector: rootSelector, docContext: docContext }, attributeValue));
12969
+ }) })) : null;
11640
12970
  };
11641
12971
 
11642
12972
  const removeTemplateWhitespace = (template) => template.replace(/>(?:\s|\n)+</g, '><');
@@ -26031,8 +27361,8 @@ exports["default"] = exports.CopyIcon;
26031
27361
  var CopyIcon = /*@__PURE__*/getDefaultExportFromCjs(copyIcon);
26032
27362
 
26033
27363
  const useInlineCopyClipboardShowdownExtension = () => {
26034
- const { getResource } = React.useContext(QuickStartContext);
26035
- return React.useMemo(() => ({
27364
+ const { getResource } = useContext(QuickStartContext);
27365
+ return useMemo(() => ({
26036
27366
  type: 'lang',
26037
27367
  regex: /`([^`](.*?)[^`])`{{copy}}/g,
26038
27368
  replace: (text, group, _, groupId) => {
@@ -26044,7 +27374,7 @@ const useInlineCopyClipboardShowdownExtension = () => {
26044
27374
  <span class="pf-v6-c-clipboard-copy__actions">
26045
27375
  <span class="pf-v6-c-clipboard-copy__actions-item">
26046
27376
  <button class="pf-v6-c-button pf-m-plain" aria-label="${getResource('Copy to clipboard')}" ${MARKDOWN_COPY_BUTTON_ID}="${groupId}">
26047
- ${renderToStaticMarkup(React.createElement(CopyIcon, null))}
27377
+ ${renderToStaticMarkup(jsxRuntime.jsx(CopyIcon, {}))}
26048
27378
  </button>
26049
27379
  </span>
26050
27380
  </span>
@@ -26053,10 +27383,9 @@ const useInlineCopyClipboardShowdownExtension = () => {
26053
27383
  }), [getResource]);
26054
27384
  };
26055
27385
 
26056
- /* eslint-disable max-len */
26057
27386
  const useMultilineCopyClipboardShowdownExtension = () => {
26058
- const { getResource } = React.useContext(QuickStartContext);
26059
- return React.useMemo(() => ({
27387
+ const { getResource } = useContext(QuickStartContext);
27388
+ return useMemo(() => ({
26060
27389
  type: 'lang',
26061
27390
  regex: /```[\n]\s*((((?!```).)*?\n)+)\s*```{{copy}}/g,
26062
27391
  replace: (text, group, _1, _2, groupId) => {
@@ -26068,7 +27397,7 @@ const useMultilineCopyClipboardShowdownExtension = () => {
26068
27397
  <div class="pf-v6-c-code-block__actions">
26069
27398
  <div class="pf-v6-c-code-block__actions-item">
26070
27399
  <button class="pf-v6-c-button pf-m-plain" type="button" aria-label="${getResource('Copy to clipboard')}" ${MARKDOWN_COPY_BUTTON_ID}="${groupId}">
26071
- ${renderToStaticMarkup(React.createElement(CopyIcon, null))}
27400
+ ${renderToStaticMarkup(jsxRuntime.jsx(CopyIcon, {}))}
26072
27401
  </button>
26073
27402
  </div>
26074
27403
  </div>
@@ -28757,9 +30086,9 @@ const markdownConvert = (markdown, extensions) => __awaiter(void 0, void 0, void
28757
30086
  return DOMPurify.sanitize(md);
28758
30087
  });
28759
30088
  const SyncMarkdownView = ({ content, emptyMsg, extensions, renderExtension, exactHeight, inline, className, }) => {
28760
- const { getResource } = React.useContext(QuickStartContext);
28761
- const [markup, setMarkup] = React.useState('');
28762
- React.useEffect(() => {
30089
+ const { getResource } = useContext(QuickStartContext);
30090
+ const [markup, setMarkup] = useState('');
30091
+ useEffect(() => {
28763
30092
  function getMd() {
28764
30093
  return __awaiter(this, void 0, void 0, function* () {
28765
30094
  const md = yield markdownConvert(content || emptyMsg || getResource('Not available'), extensions);
@@ -28775,7 +30104,7 @@ const SyncMarkdownView = ({ content, emptyMsg, extensions, renderExtension, exac
28775
30104
  isEmpty: !content,
28776
30105
  className,
28777
30106
  };
28778
- return inline ? React.createElement(InlineMarkdownView, Object.assign({}, innerProps)) : React.createElement(IFrameMarkdownView, Object.assign({}, innerProps));
30107
+ return inline ? jsxRuntime.jsx(InlineMarkdownView, Object.assign({}, innerProps)) : jsxRuntime.jsx(IFrameMarkdownView, Object.assign({}, innerProps));
28779
30108
  };
28780
30109
  const uniqueId = (function () {
28781
30110
  let num = 0;
@@ -28787,8 +30116,8 @@ const uniqueId = (function () {
28787
30116
  })();
28788
30117
  const RenderExtension = ({ renderExtension, selector, markup, docContext, }) => {
28789
30118
  const forceRender = useForceRender();
28790
- const markupRef = React.useRef(null);
28791
- const shouldRenderExtension = React.useCallback(() => {
30119
+ const markupRef = useRef(null);
30120
+ const shouldRenderExtension = useCallback(() => {
28792
30121
  if (markupRef.current === markup) {
28793
30122
  return true;
28794
30123
  }
@@ -28801,25 +30130,23 @@ const RenderExtension = ({ renderExtension, selector, markup, docContext, }) =>
28801
30130
  * which causes the component rendered by renderExtension to receive old copy of document
28802
30131
  * use forceRender to delay the rendering of extension by one render cycle
28803
30132
  */
28804
- React.useEffect(() => {
30133
+ useEffect(() => {
28805
30134
  if (renderExtension) {
28806
30135
  forceRender();
28807
30136
  }
28808
30137
  // eslint-disable-next-line react-hooks/exhaustive-deps
28809
30138
  }, [markup]);
28810
- return (React.createElement(React.Fragment, null, shouldRenderExtension() ? renderExtension === null || renderExtension === void 0 ? void 0 : renderExtension(docContext !== null && docContext !== void 0 ? docContext : document, selector) : null));
30139
+ return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: shouldRenderExtension() ? renderExtension === null || renderExtension === void 0 ? void 0 : renderExtension(docContext !== null && docContext !== void 0 ? docContext : document, selector) : null }));
28811
30140
  };
28812
30141
  const InlineMarkdownView = ({ markup, isEmpty, renderExtension, className, }) => {
28813
- const id = React.useMemo(() => uniqueId('markdown'), []);
28814
- return (React.createElement("div", { className: css({ 'is-empty': isEmpty }, className), id: id },
28815
- React.createElement("div", { dangerouslySetInnerHTML: { __html: markup } }),
28816
- renderExtension && (React.createElement(RenderExtension, { renderExtension: renderExtension, selector: `#${id}`, markup: markup }))));
30142
+ const id = useMemo(() => uniqueId('markdown'), []);
30143
+ return (jsxRuntime.jsxs("div", Object.assign({ className: css({ 'is-empty': isEmpty }, className), id: id }, { children: [jsxRuntime.jsx("div", { dangerouslySetInnerHTML: { __html: markup } }), renderExtension && (jsxRuntime.jsx(RenderExtension, { renderExtension: renderExtension, selector: `#${id}`, markup: markup }))] })));
28817
30144
  };
28818
30145
  const IFrameMarkdownView = ({ exactHeight, markup, isEmpty, renderExtension, className, }) => {
28819
- const [frame, setFrame] = React.useState();
28820
- const [loaded, setLoaded] = React.useState(false);
28821
- const updateTimeoutHandle = React.useRef();
28822
- const updateDimensions = React.useCallback(() => {
30146
+ const [frame, setFrame] = useState();
30147
+ const [loaded, setLoaded] = useState(false);
30148
+ const updateTimeoutHandle = useRef(null);
30149
+ const updateDimensions = useCallback(() => {
28823
30150
  var _a;
28824
30151
  if (!((_a = frame === null || frame === void 0 ? void 0 : frame.contentWindow) === null || _a === void 0 ? void 0 : _a.document.body.firstChild)) {
28825
30152
  return;
@@ -28836,10 +30163,10 @@ const IFrameMarkdownView = ({ exactHeight, markup, isEmpty, renderExtension, cla
28836
30163
  }
28837
30164
  });
28838
30165
  }, [frame, exactHeight]);
28839
- React.useEffect(() => () => {
30166
+ useEffect(() => () => {
28840
30167
  clearTimeout(updateTimeoutHandle.current);
28841
30168
  }, []);
28842
- const onLoad = React.useCallback(() => {
30169
+ const onLoad = useCallback(() => {
28843
30170
  updateDimensions();
28844
30171
  setLoaded(true);
28845
30172
  }, [updateDimensions]);
@@ -28872,9 +30199,9 @@ const IFrameMarkdownView = ({ exactHeight, markup, isEmpty, renderExtension, cla
28872
30199
  }
28873
30200
  </style>
28874
30201
  <body class="pf-m-redhat-font"><div style="overflow-y: auto;">${markup}</div></body>`;
28875
- return (React.createElement(React.Fragment, null,
28876
- React.createElement("iframe", { sandbox: "allow-popups allow-popups-to-escape-sandbox allow-same-origin", srcDoc: contents, style: { border: '0px', display: 'block', width: '100%', height: '0' }, ref: (r) => setFrame(r), onLoad: () => onLoad(), className: className }),
28877
- loaded && frame && renderExtension && (React.createElement(RenderExtension, { markup: markup, selector: '', renderExtension: renderExtension, docContext: frame.contentDocument }))));
30202
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("iframe", { sandbox: "allow-popups allow-popups-to-escape-sandbox allow-same-origin", srcDoc: contents, style: { border: '0px', display: 'block', width: '100%', height: '0' }, ref: (r) => {
30203
+ setFrame(r);
30204
+ }, onLoad: () => onLoad(), className: className }), loaded && frame && renderExtension && (jsxRuntime.jsx(RenderExtension, { markup: markup, selector: '', renderExtension: renderExtension, docContext: frame.contentDocument }))] }));
28878
30205
  };
28879
30206
 
28880
30207
  const LINK_LABEL = '[\\d\\w\\s-()$!]+';
@@ -28884,13 +30211,13 @@ const SELECTOR_ID = `[\\w-]+`;
28884
30211
  const HIGHLIGHT_REGEXP = new RegExp(`\\[(${LINK_LABEL})]{{(${HIGHLIGHT_ACTIONS.join('|')}) (${SELECTOR_ID})}}`, 'g');
28885
30212
 
28886
30213
  const QuickStartMarkdownView = ({ content, exactHeight, className, }) => {
28887
- const { markdown } = React.useContext(QuickStartContext);
30214
+ const { markdown } = useContext(QuickStartContext);
28888
30215
  const inlineCopyClipboardShowdownExtension = useInlineCopyClipboardShowdownExtension();
28889
30216
  const multilineCopyClipboardShowdownExtension = useMultilineCopyClipboardShowdownExtension();
28890
30217
  const admonitionShowdownExtension = useAdmonitionShowdownExtension();
28891
30218
  const codeShowdownExtension = useCodeShowdownExtension();
28892
30219
  const accordionShowdownExtension = useAccordionShowdownExtension();
28893
- return (React.createElement(SyncMarkdownView, { inline: true, content: content, exactHeight: exactHeight, extensions: [
30220
+ return (jsxRuntime.jsx(SyncMarkdownView, { inline: true, content: content, exactHeight: exactHeight, extensions: [
28894
30221
  {
28895
30222
  type: 'lang',
28896
30223
  regex: HIGHLIGHT_REGEXP,
@@ -28915,13 +30242,9 @@ const QuickStartMarkdownView = ({ content, exactHeight, className, }) => {
28915
30242
  codeShowdownExtension,
28916
30243
  accordionShowdownExtension,
28917
30244
  ...(markdown ? markdown.extensions : []),
28918
- ], renderExtension: (docContext, rootSelector) => (React.createElement(React.Fragment, null,
28919
- React.createElement(AccordionRenderExtension, { docContext: docContext }),
28920
- React.createElement(MarkdownHighlightExtension, { docContext: docContext, rootSelector: rootSelector }),
28921
- React.createElement(MarkdownCopyClipboard, { docContext: docContext, rootSelector: rootSelector }),
28922
- markdown &&
28923
- markdown.renderExtension &&
28924
- markdown.renderExtension(docContext, rootSelector))), className: className }));
30245
+ ], renderExtension: (docContext, rootSelector) => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(AccordionRenderExtension, { docContext: docContext }), jsxRuntime.jsx(MarkdownHighlightExtension, { docContext: docContext, rootSelector: rootSelector }), jsxRuntime.jsx(MarkdownCopyClipboard, { docContext: docContext, rootSelector: rootSelector }), markdown &&
30246
+ markdown.renderExtension &&
30247
+ markdown.renderExtension(docContext, rootSelector)] })), className: className }));
28925
30248
  };
28926
30249
 
28927
30250
  var AdmonitionType;
@@ -28934,14 +30257,14 @@ var AdmonitionType;
28934
30257
  })(AdmonitionType || (AdmonitionType = {}));
28935
30258
  const admonitionToAlertVariantMap = {
28936
30259
  [AdmonitionType.NOTE]: { variant: 'info' },
28937
- [AdmonitionType.TIP]: { variant: 'custom', customIcon: React.createElement(LightbulbIcon, null) },
30260
+ [AdmonitionType.TIP]: { variant: 'custom', customIcon: jsxRuntime.jsx(LightbulbIcon, {}) },
28938
30261
  [AdmonitionType.IMPORTANT]: { variant: 'danger' },
28939
- [AdmonitionType.CAUTION]: { variant: 'warning', customIcon: React.createElement(FireIcon, null) },
30262
+ [AdmonitionType.CAUTION]: { variant: 'warning', customIcon: jsxRuntime.jsx(FireIcon, {}) },
28940
30263
  [AdmonitionType.WARNING]: { variant: 'warning' },
28941
30264
  };
28942
30265
  const useAdmonitionShowdownExtension = () =>
28943
30266
  // const { getResource } = React.useContext<QuickStartContextValues>(QuickStartContext);
28944
- React.useMemo(() => ({
30267
+ useMemo(() => ({
28945
30268
  type: 'lang',
28946
30269
  regex: /\[(.+)]{{(admonition) ([\w-]+)}}/g,
28947
30270
  replace: (text, content, admonitionLabel, admonitionType, groupId) => {
@@ -28950,39 +30273,35 @@ React.useMemo(() => ({
28950
30273
  }
28951
30274
  admonitionType = admonitionType.toUpperCase();
28952
30275
  const { variant, customIcon } = admonitionToAlertVariantMap[admonitionType];
28953
- const mdContent = React.createElement(QuickStartMarkdownView, { content: content });
28954
- const pfAlert = (React.createElement(Alert, Object.assign({ variant: variant }, (customIcon && { customIcon }), { isInline: true, title: admonitionType, className: "pfext-markdown-admonition" }), mdContent));
30276
+ const mdContent = jsxRuntime.jsx(QuickStartMarkdownView, { content: content });
30277
+ const pfAlert = (jsxRuntime.jsx(Alert, Object.assign({ variant: variant }, (customIcon && { customIcon }), { isInline: true, title: admonitionType, className: "pfext-markdown-admonition" }, { children: mdContent })));
28955
30278
  return removeTemplateWhitespace(renderToStaticMarkup(pfAlert));
28956
30279
  },
28957
30280
  }), []);
28958
30281
 
28959
- const useCodeShowdownExtension = () => React.useMemo(() => ({
30282
+ const useCodeShowdownExtension = () => useMemo(() => ({
28960
30283
  type: 'output',
28961
30284
  regex: /<pre><code>(.*?)\n?<\/code><\/pre>/g,
28962
30285
  replace: (text, content) => {
28963
30286
  if (!content) {
28964
30287
  return text;
28965
30288
  }
28966
- const pfCodeBlock = React.createElement(CodeBlock, null, content);
30289
+ const pfCodeBlock = jsxRuntime.jsx(CodeBlock, { children: content });
28967
30290
  return removeTemplateWhitespace(renderToStaticMarkup(pfCodeBlock));
28968
30291
  },
28969
30292
  }), []);
28970
30293
 
28971
- const useAccordionShowdownExtension = () => React.useMemo(() => ({
30294
+ const useAccordionShowdownExtension = () => useMemo(() => ({
28972
30295
  type: 'lang',
28973
30296
  regex: /\[(.+)]{{(accordion) ("(.*?)")}}/g,
28974
30297
  replace: (_text, accordionContent, _command, accordionHeading) => {
28975
30298
  const accordionId = String(accordionHeading).replace(/\s/g, '-');
28976
- return removeTemplateWhitespace(renderToStaticMarkup(React.createElement(React.Fragment, null,
28977
- React.createElement(Accordion, { asDefinitionList: true },
28978
- React.createElement(AccordionItem, { isExpanded: false },
28979
- React.createElement(AccordionToggle, { id: `${ACCORDION_MARKDOWN_BUTTON_ID}-${accordionId}` }, accordionHeading),
28980
- React.createElement(AccordionContent, { id: `${ACCORDION_MARKDOWN_CONTENT_ID}-${accordionId}` }, accordionContent))))));
30299
+ return removeTemplateWhitespace(renderToStaticMarkup(jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(Accordion, Object.assign({ asDefinitionList: true }, { children: jsxRuntime.jsxs(AccordionItem, Object.assign({ isExpanded: false }, { children: [jsxRuntime.jsx(AccordionToggle, Object.assign({ id: `${ACCORDION_MARKDOWN_BUTTON_ID}-${accordionId}` }, { children: accordionHeading })), jsxRuntime.jsx(AccordionContent, Object.assign({ id: `${ACCORDION_MARKDOWN_CONTENT_ID}-${accordionId}` }, { children: accordionContent }))] })) })) })));
28981
30300
  },
28982
30301
  }), []);
28983
30302
 
28984
30303
  const AccordionShowdownHandler = ({ buttonElement, contentElement, }) => {
28985
- const [expanded, setExpanded] = React.useState(false);
30304
+ const [expanded, setExpanded] = useState(false);
28986
30305
  const handleClick = () => {
28987
30306
  const expandedModifier = 'pf-m-expanded';
28988
30307
  buttonElement.className = `pf-v6-c-accordion__toggle ${!expanded ? expandedModifier : ''}`;
@@ -28991,27 +30310,27 @@ const AccordionShowdownHandler = ({ buttonElement, contentElement, }) => {
28991
30310
  setExpanded(!expanded);
28992
30311
  };
28993
30312
  useEventListener(buttonElement, 'click', handleClick);
28994
- return React.createElement(React.Fragment, null);
30313
+ return jsxRuntime.jsx(jsxRuntime.Fragment, {});
28995
30314
  };
28996
30315
  const AccordionRenderExtension = ({ docContext }) => {
28997
30316
  const buttonElements = docContext.querySelectorAll(`[id ^= ${ACCORDION_MARKDOWN_BUTTON_ID}]`);
28998
30317
  const contentElements = docContext.querySelectorAll(`[id ^= ${ACCORDION_MARKDOWN_CONTENT_ID}]`);
28999
- return buttonElements.length > 0 ? (React.createElement(React.Fragment, null, Array.from(buttonElements).map((elm) => {
29000
- const content = Array.from(contentElements).find((elm2) => {
29001
- const elmId = elm.id.split(ACCORDION_MARKDOWN_BUTTON_ID)[1];
29002
- const elm2Id = elm2.id.split(ACCORDION_MARKDOWN_CONTENT_ID)[1];
29003
- return elmId === elm2Id;
29004
- });
29005
- return (React.createElement(AccordionShowdownHandler, { key: elm.id.split(ACCORDION_MARKDOWN_BUTTON_ID)[1], buttonElement: elm, contentElement: content }));
29006
- }))) : null;
30318
+ return buttonElements.length > 0 ? (jsxRuntime.jsx(jsxRuntime.Fragment, { children: Array.from(buttonElements).map((elm) => {
30319
+ const content = Array.from(contentElements).find((elm2) => {
30320
+ const elmId = elm.id.split(ACCORDION_MARKDOWN_BUTTON_ID)[1];
30321
+ const elm2Id = elm2.id.split(ACCORDION_MARKDOWN_CONTENT_ID)[1];
30322
+ return elmId === elm2Id;
30323
+ });
30324
+ return (jsxRuntime.jsx(AccordionShowdownHandler, { buttonElement: elm, contentElement: content }, elm.id.split(ACCORDION_MARKDOWN_BUTTON_ID)[1]));
30325
+ }) })) : null;
29007
30326
  };
29008
30327
 
29009
30328
  const FallbackImg = ({ src, alt, className, fallback }) => {
29010
- const [isSrcValid, setIsSrcValid] = React.useState(true);
30329
+ const [isSrcValid, setIsSrcValid] = useState(true);
29011
30330
  if (src && isSrcValid) {
29012
- return React.createElement("img", { className: className, src: src, alt: alt, onError: () => setIsSrcValid(false) });
30331
+ return jsxRuntime.jsx("img", { className: className, src: src, alt: alt, onError: () => setIsSrcValid(false) });
29013
30332
  }
29014
- return React.createElement(React.Fragment, null, fallback);
30333
+ return jsxRuntime.jsx(jsxRuntime.Fragment, { children: fallback });
29015
30334
  };
29016
30335
 
29017
30336
  var syncAltIcon = createCommonjsModule(function (module, exports) {
@@ -29032,26 +30351,23 @@ var SyncAltIcon = /*@__PURE__*/getDefaultExportFromCjs(syncAltIcon);
29032
30351
 
29033
30352
  const DASH = '-';
29034
30353
 
29035
- const PopoverStatus = ({ hideHeader, children, isVisible = null, statusBody, title, onHide, onShow, }) => (React.createElement(Popover, { position: PopoverPosition.right, headerContent: hideHeader ? null : title, bodyContent: children, "aria-label": title, onHide: onHide, onShow: onShow, isVisible: isVisible },
29036
- React.createElement(Button, { variant: "link", isInline: true }, statusBody)));
30354
+ const PopoverStatus = ({ hideHeader, children, isVisible = null, statusBody, title, onHide, onShow, }) => (jsxRuntime.jsx(Popover, Object.assign({ position: PopoverPosition.right, headerContent: hideHeader ? null : title, bodyContent: children, "aria-label": title, onHide: onHide, onShow: onShow, isVisible: isVisible }, { children: jsxRuntime.jsx(Button, Object.assign({ variant: "link", isInline: true }, { children: statusBody })) })));
29037
30355
 
29038
30356
  const StatusIconAndText = ({ icon, title, spin, iconOnly, noTooltip, className, }) => {
29039
30357
  if (!title) {
29040
- return React.createElement(React.Fragment, null, DASH);
30358
+ return jsxRuntime.jsx(jsxRuntime.Fragment, { children: DASH });
29041
30359
  }
29042
- return (React.createElement("span", { className: css('pfext-icon-and-text', className), title: iconOnly && !noTooltip ? title : undefined },
29043
- icon &&
29044
- React.cloneElement(icon, {
29045
- className: css(spin && 'fa-spin', icon.props.className, !iconOnly && 'pfext-icon-and-text__icon pfext-icon-flex-child'),
29046
- }),
29047
- !iconOnly && React.createElement(CamelCaseWrap, { value: title, dataTest: "status-text" })));
30360
+ return (jsxRuntime.jsxs("span", Object.assign({ className: css('pfext-icon-and-text', className), title: iconOnly && !noTooltip ? title : undefined }, { children: [icon &&
30361
+ cloneElement(icon, {
30362
+ className: css(spin && 'fa-spin', icon.props.className, !iconOnly && 'pfext-icon-and-text__icon pfext-icon-flex-child'),
30363
+ }), !iconOnly && jsxRuntime.jsx(CamelCaseWrap, { value: title, dataTest: "status-text" })] })));
29048
30364
  };
29049
30365
 
29050
30366
  const GenericStatus = (props) => {
29051
30367
  const { Icon, children, popoverTitle, title, noTooltip, iconOnly } = props, restProps = __rest(props, ["Icon", "children", "popoverTitle", "title", "noTooltip", "iconOnly"]);
29052
- const renderIcon = iconOnly && !noTooltip ? React.createElement(Icon, { title: title }) : React.createElement(Icon, null);
29053
- const statusBody = (React.createElement(StatusIconAndText, Object.assign({}, restProps, { noTooltip: noTooltip, title: title, iconOnly: iconOnly, icon: renderIcon })));
29054
- return React.Children.toArray(children).length ? (React.createElement(PopoverStatus, Object.assign({ title: popoverTitle || title }, restProps, { statusBody: statusBody }), children)) : (statusBody);
30368
+ const renderIcon = iconOnly && !noTooltip ? jsxRuntime.jsx(Icon, { title: title }) : jsxRuntime.jsx(Icon, {});
30369
+ const statusBody = (jsxRuntime.jsx(StatusIconAndText, Object.assign({}, restProps, { noTooltip: noTooltip, title: title, iconOnly: iconOnly, icon: renderIcon })));
30370
+ return Children.toArray(children).length ? (jsxRuntime.jsx(PopoverStatus, Object.assign({ title: popoverTitle || title }, restProps, { statusBody: statusBody }, { children: children }))) : (statusBody);
29055
30371
  };
29056
30372
 
29057
30373
  var checkCircleIcon = createCommonjsModule(function (module, exports) {
@@ -29086,65 +30402,46 @@ exports["default"] = exports.InfoCircleIcon;
29086
30402
 
29087
30403
  var InfoCircleIcon = /*@__PURE__*/getDefaultExportFromCjs(infoCircleIcon);
29088
30404
 
29089
- const GreenCheckCircleIcon = ({ className, title, size }) => (React.createElement(Icon, { size: size, status: "success" },
29090
- React.createElement(CheckCircleIcon, { "data-test": "success-icon", className: className, title: title })));
30405
+ const GreenCheckCircleIcon = ({ className, title, size }) => (jsxRuntime.jsx(Icon, Object.assign({ size: size, status: "success" }, { children: jsxRuntime.jsx(CheckCircleIcon, { "data-test": "success-icon", className: className, title: title }) })));
29091
30406
 
29092
- const SuccessStatus = (props) => (React.createElement(GenericStatus, Object.assign({}, props, { Icon: GreenCheckCircleIcon, title: props.title || 'Healthy' })));
30407
+ const SuccessStatus = (props) => (jsxRuntime.jsx(GenericStatus, Object.assign({}, props, { Icon: GreenCheckCircleIcon, title: props.title || 'Healthy' })));
29093
30408
  SuccessStatus.displayName = 'SuccessStatus';
29094
30409
 
29095
- const Status = ({ status, title, iconOnly, noTooltip, className, }) => {
30410
+ const Status = ({ status, title, iconOnly, noTooltip, className }) => {
29096
30411
  const statusProps = { title: title || status, iconOnly, noTooltip, className };
29097
30412
  switch (status) {
29098
30413
  case 'In Progress':
29099
- return React.createElement(StatusIconAndText, Object.assign({}, statusProps, { icon: React.createElement(SyncAltIcon, null) }));
30414
+ return jsxRuntime.jsx(StatusIconAndText, Object.assign({}, statusProps, { icon: jsxRuntime.jsx(SyncAltIcon, {}) }));
29100
30415
  case 'Complete':
29101
- return React.createElement(SuccessStatus, Object.assign({}, statusProps));
30416
+ return jsxRuntime.jsx(SuccessStatus, Object.assign({}, statusProps));
29102
30417
  default:
29103
- return React.createElement(React.Fragment, null, status || DASH);
30418
+ return jsxRuntime.jsx(jsxRuntime.Fragment, { children: status || DASH });
29104
30419
  }
29105
30420
  };
29106
- const StatusIcon = ({ status }) => (React.createElement(Status, { status: status, iconOnly: true }));
30421
+ const StatusIcon = ({ status }) => jsxRuntime.jsx(Status, { status: status, iconOnly: true });
29107
30422
 
29108
30423
  const QuickStartTileDescription = ({ description, prerequisites, }) => {
29109
- const { getResource } = React.useContext(QuickStartContext);
30424
+ const { getResource } = useContext(QuickStartContext);
29110
30425
  const prereqs = prerequisites === null || prerequisites === void 0 ? void 0 : prerequisites.filter((p) => p);
29111
- const buttonRef = React.useRef(null);
29112
- return (React.createElement(React.Fragment, null,
29113
- React.createElement(QuickStartMarkdownView, { content: description }),
29114
- (prereqs === null || prereqs === void 0 ? void 0 : prereqs.length) > 0 && (React.createElement(Flex, { spaceItems: { default: 'spaceItemsSm' } },
29115
- React.createElement("h5", null,
29116
- getResource('Prerequisites ({{totalPrereqs}})').replace('{{totalPrereqs}}', prereqs.length),
29117
- ' '),
29118
- React.createElement(Button, { variant: "link", isInline: true, "data-testid": "qs-card-prereqs", ref: buttonRef, onClick: (e) => {
29119
- e.preventDefault();
29120
- e.stopPropagation();
29121
- }, "aria-label": getResource('Show prerequisites') },
29122
- React.createElement(InfoCircleIcon, null)),
29123
- React.createElement(Popover, { "aria-label": getResource('Prerequisites'), headerContent: getResource('Prerequisites'), triggerRef: buttonRef, bodyContent: React.createElement("div", null,
29124
- React.createElement("ul", { "aria-label": getResource('Prerequisites') }, prereqs.map((prerequisite, index) => (
29125
- // eslint-disable-next-line react/no-array-index-key
29126
- React.createElement("li", { key: index },
29127
- React.createElement(QuickStartMarkdownView, { content: prerequisite })))))) })))));
30426
+ const buttonRef = useRef(null);
30427
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(QuickStartMarkdownView, { content: description }), (prereqs === null || prereqs === void 0 ? void 0 : prereqs.length) > 0 && (jsxRuntime.jsxs(Flex, Object.assign({ spaceItems: { default: 'spaceItemsSm' } }, { children: [jsxRuntime.jsxs("h5", { children: [getResource('Prerequisites ({{totalPrereqs}})').replace('{{totalPrereqs}}', prereqs.length), ' '] }), jsxRuntime.jsx(Button, Object.assign({ variant: "link", isInline: true, "data-testid": "qs-card-prereqs", ref: buttonRef, onClick: (e) => {
30428
+ e.preventDefault();
30429
+ e.stopPropagation();
30430
+ }, "aria-label": getResource('Show prerequisites') }, { children: jsxRuntime.jsx(InfoCircleIcon, {}) })), jsxRuntime.jsx(Popover, { "aria-label": getResource('Prerequisites'), headerContent: getResource('Prerequisites'), triggerRef: buttonRef, bodyContent: jsxRuntime.jsx("div", { children: jsxRuntime.jsx("ul", Object.assign({ "aria-label": getResource('Prerequisites') }, { children: prereqs.map((prerequisite, index) => (
30431
+ // eslint-disable-next-line react/no-array-index-key
30432
+ jsxRuntime.jsx("li", { children: jsxRuntime.jsx(QuickStartMarkdownView, { content: prerequisite }) }, index))) })) }) })] })))] }));
29128
30433
  };
29129
30434
 
29130
30435
  const QuickStartTileFooter = ({ quickStartId, status, totalTasks, onClickContinue, }) => {
29131
- const { getResource } = React.useContext(QuickStartContext);
29132
- const { activeQuickStartID, startQuickStart, restartQuickStart } = React.useContext(QuickStartContext);
29133
- const start = React.useCallback(() => {
30436
+ const { getResource } = useContext(QuickStartContext);
30437
+ const { activeQuickStartID, startQuickStart, restartQuickStart } = useContext(QuickStartContext);
30438
+ const start = useCallback(() => {
29134
30439
  startQuickStart(quickStartId, totalTasks);
29135
30440
  }, [quickStartId, startQuickStart, totalTasks]);
29136
- const restart = React.useCallback(() => {
30441
+ const restart = useCallback(() => {
29137
30442
  restartQuickStart(quickStartId, totalTasks);
29138
30443
  }, [quickStartId, restartQuickStart, totalTasks]);
29139
- return (React.createElement(Flex, { justifyContent: { default: 'justifyContentSpaceBetween' } },
29140
- status === QuickStartStatus.NOT_STARTED && (React.createElement(FlexItem, null,
29141
- React.createElement(Button, { onClick: start, variant: "link", isInline: true, "data-testid": "qs-card-notStarted-start", id: `${quickStartId}-start`, "aria-labelledby": `${quickStartId}-start ${quickStartId}` }, getResource('Start')))),
29142
- status === QuickStartStatus.IN_PROGRESS && activeQuickStartID !== quickStartId && (React.createElement(FlexItem, null,
29143
- React.createElement(Button, { variant: "link", onClick: onClickContinue, isInline: true, "data-testid": "qs-card-inProgress-resume", id: `${quickStartId}-continue`, "aria-labelledby": `${quickStartId}-continue ${quickStartId}` }, getResource('Continue')))),
29144
- status === QuickStartStatus.COMPLETE && (React.createElement(FlexItem, null,
29145
- React.createElement(Button, { onClick: restart, variant: "link", isInline: true, "data-testid": "qs-card-complete-restart", id: `${quickStartId}-restart`, "aria-labelledby": `${quickStartId}-restart ${quickStartId}` }, getResource('Restart')))),
29146
- status === QuickStartStatus.IN_PROGRESS && (React.createElement(FlexItem, null,
29147
- React.createElement(Button, { onClick: restart, variant: "link", isInline: true, "data-testid": "qs-card-inProgress-restart", id: `${quickStartId}-restart`, "aria-labelledby": `${quickStartId}-restart ${quickStartId}` }, getResource('Restart'))))));
30444
+ return (jsxRuntime.jsxs(Flex, Object.assign({ justifyContent: { default: 'justifyContentSpaceBetween' } }, { children: [status === QuickStartStatus.NOT_STARTED && (jsxRuntime.jsx(FlexItem, { children: jsxRuntime.jsx(Button, Object.assign({ onClick: start, variant: "link", isInline: true, "data-testid": "qs-card-notStarted-start", id: `${quickStartId}-start`, "aria-labelledby": `${quickStartId}-start ${quickStartId}` }, { children: getResource('Start') })) })), status === QuickStartStatus.IN_PROGRESS && activeQuickStartID !== quickStartId && (jsxRuntime.jsx(FlexItem, { children: jsxRuntime.jsx(Button, Object.assign({ variant: "link", onClick: onClickContinue, isInline: true, "data-testid": "qs-card-inProgress-resume", id: `${quickStartId}-continue`, "aria-labelledby": `${quickStartId}-continue ${quickStartId}` }, { children: getResource('Continue') })) })), status === QuickStartStatus.COMPLETE && (jsxRuntime.jsx(FlexItem, { children: jsxRuntime.jsx(Button, Object.assign({ onClick: restart, variant: "link", isInline: true, "data-testid": "qs-card-complete-restart", id: `${quickStartId}-restart`, "aria-labelledby": `${quickStartId}-restart ${quickStartId}` }, { children: getResource('Restart') })) })), status === QuickStartStatus.IN_PROGRESS && (jsxRuntime.jsx(FlexItem, { children: jsxRuntime.jsx(Button, Object.assign({ onClick: restart, variant: "link", isInline: true, "data-testid": "qs-card-inProgress-restart", id: `${quickStartId}-restart`, "aria-labelledby": `${quickStartId}-restart ${quickStartId}` }, { children: getResource('Restart') })) }))] })));
29148
30445
  };
29149
30446
 
29150
30447
  var externalLinkAltIcon = createCommonjsModule(function (module, exports) {
@@ -29163,15 +30460,12 @@ exports["default"] = exports.ExternalLinkAltIcon;
29163
30460
 
29164
30461
  var ExternalLinkAltIcon = /*@__PURE__*/getDefaultExportFromCjs(externalLinkAltIcon);
29165
30462
 
29166
- const QuickStartTileFooterExternal = ({ link, quickStartId, }) => {
30463
+ const QuickStartTileFooterExternal = ({ link, quickStartId }) => {
29167
30464
  const { href, text } = link;
29168
- return (React.createElement(Flex, { justifyContent: { default: 'justifyContentSpaceBetween' } },
29169
- React.createElement(FlexItem, null,
29170
- React.createElement(Button, { component: "a", href: href, target: "_blank", rel: "noopener noreferrer", variant: "link", "aria-label": `Open documentation in new window`, isInline: true, icon: React.createElement(ExternalLinkAltIcon, null), iconPosition: "right", id: quickStartId, "aria-labelledby": `${quickStartId}-external ${quickStartId}` }, text || href))));
30465
+ return (jsxRuntime.jsx(Flex, Object.assign({ justifyContent: { default: 'justifyContentSpaceBetween' } }, { children: jsxRuntime.jsx(FlexItem, { children: jsxRuntime.jsx(Button, Object.assign({ component: "a", href: href, target: "_blank", rel: "noopener noreferrer", variant: "link", "aria-label": `Open documentation in new window`, isInline: true, icon: jsxRuntime.jsx(ExternalLinkAltIcon, {}), iconPosition: "right", id: quickStartId, "aria-labelledby": `${quickStartId}-external ${quickStartId}` }, { children: text || href })) }) })));
29171
30466
  };
29172
30467
 
29173
- const QuickStartTileHeader = ({ name, quickStartId, onSelect, }) => (React.createElement(Flex, { flexWrap: { default: 'nowrap' } },
29174
- React.createElement(Button, { "data-test": "title", id: quickStartId, variant: "link", isInline: true, onClick: onSelect }, name)));
30468
+ const QuickStartTileHeader = ({ name, quickStartId, onSelect }) => (jsxRuntime.jsx(Flex, Object.assign({ flexWrap: { default: 'nowrap' } }, { children: jsxRuntime.jsx(Button, Object.assign({ "data-test": "title", id: quickStartId, variant: "link", isInline: true, onClick: onSelect }, { children: name })) })));
29175
30469
 
29176
30470
  var outlinedBookmarkIcon = createCommonjsModule(function (module, exports) {
29177
30471
  exports.__esModule = true;
@@ -29207,7 +30501,7 @@ var OutlinedClockIcon = /*@__PURE__*/getDefaultExportFromCjs(outlinedClockIcon);
29207
30501
 
29208
30502
  const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, action, }) => {
29209
30503
  const { metadata: { name: id }, spec: { icon, tasks, displayName, description, durationMinutes, prerequisites, link, type }, } = quickStart;
29210
- const { setActiveQuickStart, footer, getResource } = React.useContext(QuickStartContext);
30504
+ const { setActiveQuickStart, footer, getResource } = useContext(QuickStartContext);
29211
30505
  const statusColorMap = {
29212
30506
  [QuickStartStatus.COMPLETE]: 'green',
29213
30507
  [QuickStartStatus.IN_PROGRESS]: 'purple',
@@ -29220,11 +30514,10 @@ const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, act
29220
30514
  };
29221
30515
  let quickStartIcon;
29222
30516
  if (typeof icon === 'object') {
29223
- quickStartIcon = React.createElement(Icon, { size: "2xl" }, icon);
30517
+ quickStartIcon = jsxRuntime.jsx(Icon, Object.assign({ size: "2xl" }, { children: icon }));
29224
30518
  }
29225
30519
  else {
29226
- quickStartIcon = (React.createElement(Icon, { size: "2xl" },
29227
- React.createElement(FallbackImg, { src: icon, alt: "", className: "pfext-catalog-item-icon__img", fallback: React.createElement(RocketIcon, null) })));
30520
+ quickStartIcon = (jsxRuntime.jsx(Icon, Object.assign({ size: "2xl" }, { children: jsxRuntime.jsx(FallbackImg, { src: icon, alt: "", className: "pfext-catalog-item-icon__img", fallback: jsxRuntime.jsx(RocketIcon, {}) }) })));
29228
30521
  }
29229
30522
  const onSelect = () => {
29230
30523
  if (!link) {
@@ -29235,70 +30528,53 @@ const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, act
29235
30528
  }
29236
30529
  onClick();
29237
30530
  };
29238
- const footerComponent = React.useMemo(() => {
30531
+ const footerComponent = useMemo(() => {
29239
30532
  if (footer && footer.show === false) {
29240
30533
  return null;
29241
30534
  }
29242
30535
  if (link) {
29243
- return React.createElement(QuickStartTileFooterExternal, { link: link, quickStartId: id });
30536
+ return jsxRuntime.jsx(QuickStartTileFooterExternal, { link: link, quickStartId: id });
29244
30537
  }
29245
- return (React.createElement(QuickStartTileFooter, { quickStartId: id, status: status, totalTasks: tasks === null || tasks === void 0 ? void 0 : tasks.length, onClickContinue: onSelect }));
30538
+ return (jsxRuntime.jsx(QuickStartTileFooter, { quickStartId: id, status: status, totalTasks: tasks === null || tasks === void 0 ? void 0 : tasks.length, onClickContinue: onSelect }));
29246
30539
  }, [footer, id, link, status, tasks === null || tasks === void 0 ? void 0 : tasks.length]);
29247
30540
  const ActionIcon = (action === null || action === void 0 ? void 0 : action.icon) || OutlinedBookmarkIcon;
29248
- const additionalAction = action ? (React.createElement(Button, Object.assign({ "aria-label": action['aria-label'], icon: React.createElement(ActionIcon, null), variant: "plain", onClick: action.onClick }, action.buttonProps))) : undefined;
29249
- return (React.createElement(Card, Object.assign({ id: `${id}-catalog-tile`, style: { height: '100%' }, "data-testid": `qs-card-${camelize(displayName)}`, className: "pfext-catalog-item" }, (isActive && {
30541
+ const additionalAction = action ? (jsxRuntime.jsx(Button, Object.assign({ "aria-label": action['aria-label'], icon: jsxRuntime.jsx(ActionIcon, {}), variant: "plain", onClick: action.onClick }, action.buttonProps))) : undefined;
30542
+ return (jsxRuntime.jsxs(Card, Object.assign({ id: `${id}-catalog-tile`, style: { height: '100%' }, "data-testid": `qs-card-${camelize(displayName)}`, className: "pfext-catalog-item" }, (isActive && {
29250
30543
  isClickable: true,
29251
30544
  isSelectable: true,
29252
30545
  isSelected: true,
29253
30546
  isClicked: true,
29254
- })),
29255
- React.createElement(CardHeader, Object.assign({}, (action && {
29256
- actions: { actions: additionalAction },
29257
- })), quickStartIcon),
29258
- React.createElement(CardTitle, null,
29259
- React.createElement(QuickStartTileHeader, { name: displayName, onSelect: onSelect, quickStartId: id })),
29260
- React.createElement(CardBody, null,
29261
- React.createElement(Stack, { hasGutter: true },
29262
- React.createElement(Flex, { spaceItems: { default: 'spaceItemsSm' } },
29263
- type && React.createElement(Label, { color: type.color }, type.text),
29264
- durationMinutes && (React.createElement(Label, { variant: "outline", "data-test": "duration", icon: React.createElement(OutlinedClockIcon, null) }, getResource('{{duration, number}} minutes', durationMinutes).replace('{{duration, number}}', durationMinutes))),
29265
- status !== QuickStartStatus.NOT_STARTED && (React.createElement(Label, { variant: "outline", color: statusColorMap[status], icon: React.createElement(StatusIcon, { status: status }), "data-test": "status" }, statusLocaleMap[status]))),
29266
- React.createElement(QuickStartTileDescription, { description: description, prerequisites: prerequisites }))),
29267
- React.createElement(CardFooter, null, footerComponent)));
30547
+ }), { children: [jsxRuntime.jsx(CardHeader, Object.assign({}, (action && {
30548
+ actions: { actions: additionalAction },
30549
+ }), { children: quickStartIcon })), jsxRuntime.jsx(CardTitle, { children: jsxRuntime.jsx(QuickStartTileHeader, { name: displayName, onSelect: onSelect, quickStartId: id }) }), jsxRuntime.jsx(CardBody, { children: jsxRuntime.jsxs(Stack, Object.assign({ hasGutter: true }, { children: [jsxRuntime.jsxs(Flex, Object.assign({ spaceItems: { default: 'spaceItemsSm' } }, { children: [type && jsxRuntime.jsx(Label, Object.assign({ color: type.color }, { children: type.text })), durationMinutes && (jsxRuntime.jsx(Label, Object.assign({ variant: "outline", "data-test": "duration", icon: jsxRuntime.jsx(OutlinedClockIcon, {}) }, { children: getResource('{{duration, number}} minutes', durationMinutes).replace('{{duration, number}}', durationMinutes) }))), status !== QuickStartStatus.NOT_STARTED && (jsxRuntime.jsx(Label, Object.assign({ variant: "outline", color: statusColorMap[status], icon: jsxRuntime.jsx(StatusIcon, { status: status }), "data-test": "status" }, { children: statusLocaleMap[status] })))] })), jsxRuntime.jsx(QuickStartTileDescription, { description: description, prerequisites: prerequisites })] })) }), jsxRuntime.jsx(CardFooter, { children: footerComponent })] })));
29268
30550
  };
29269
30551
 
29270
30552
  const QuickStartCatalog = ({ quickStarts }) => {
29271
- const { activeQuickStartID, allQuickStartStates } = React.useContext(QuickStartContext);
29272
- return (React.createElement("div", null,
29273
- React.createElement(Gallery, { hasGutter: true, className: "pfext-quick-start-catalog__gallery" }, quickStarts.map((quickStart, index) => {
29274
- const { metadata: { name: id }, } = quickStart;
29275
- return (React.createElement(QuickStartTile, { key: index, quickStart: quickStart, isActive: id === activeQuickStartID, status: getQuickStartStatus(allQuickStartStates, id) }));
29276
- }))));
30553
+ const { activeQuickStartID, allQuickStartStates } = useContext(QuickStartContext);
30554
+ return (jsxRuntime.jsx("div", { children: jsxRuntime.jsx(Gallery, Object.assign({ hasGutter: true, className: "pfext-quick-start-catalog__gallery" }, { children: quickStarts.map((quickStart, index) => {
30555
+ const { metadata: { name: id }, } = quickStart;
30556
+ return (jsxRuntime.jsx(QuickStartTile, { quickStart: quickStart, isActive: id === activeQuickStartID, status: getQuickStartStatus(allQuickStartStates, id) }, index));
30557
+ }) })) }));
29277
30558
  };
29278
30559
 
29279
30560
  const QuickStartCatalogFilterSearch = (_a) => {
29280
30561
  var { searchInputText, handleTextChange } = _a, props = __rest(_a, ["searchInputText", "handleTextChange"]);
29281
- const { getResource } = React.useContext(QuickStartContext);
29282
- return (React.createElement(ToolbarItem, null,
29283
- React.createElement(SearchInput, Object.assign({ placeholder: getResource('Filter by keyword...'), value: searchInputText, onChange: (_ev, value) => handleTextChange(value), onClear: () => handleTextChange('') }, props))));
30562
+ const { getResource } = useContext(QuickStartContext);
30563
+ return (jsxRuntime.jsx(ToolbarItem, { children: jsxRuntime.jsx(SearchInput, Object.assign({ placeholder: getResource('Filter by keyword...'), value: searchInputText, onChange: (_ev, value) => handleTextChange(value), onClear: () => handleTextChange('') }, props)) }));
29284
30564
  };
29285
30565
  const QuickStartCatalogFilterSelect = (_a) => {
29286
30566
  var { isDropdownOpen, setIsDropdownOpen, onRowfilterSelect, selectedFilters, dropdownItems } = _a, props = __rest(_a, ["isDropdownOpen", "setIsDropdownOpen", "onRowfilterSelect", "selectedFilters", "dropdownItems"]);
29287
- const { getResource } = React.useContext(QuickStartContext);
29288
- const toggle = (toggleRef) => (React.createElement(MenuToggle, { isFullWidth: true, ref: toggleRef, onClick: () => setIsDropdownOpen(!isDropdownOpen), isExpanded: isDropdownOpen },
29289
- getResource('Status'),
29290
- selectedFilters.length > 0 && React.createElement(Badge, { isRead: true }, selectedFilters.length)));
29291
- return (React.createElement(ToolbarItem, null,
29292
- React.createElement(Select, Object.assign({ "aria-label": getResource('Select filter'), isOpen: isDropdownOpen, selected: selectedFilters, onSelect: onRowfilterSelect, onOpenChange: (isOpen) => setIsDropdownOpen(isOpen), toggle: toggle }, props),
29293
- React.createElement(SelectList, null, dropdownItems))));
30567
+ const { getResource } = useContext(QuickStartContext);
30568
+ const toggle = (toggleRef) => (jsxRuntime.jsxs(MenuToggle, Object.assign({ isFullWidth: true, ref: toggleRef, onClick: () => setIsDropdownOpen(!isDropdownOpen), isExpanded: isDropdownOpen }, { children: [getResource('Status'), selectedFilters.length > 0 && jsxRuntime.jsx(Badge, Object.assign({ isRead: true }, { children: selectedFilters.length }))] })));
30569
+ return (jsxRuntime.jsx(ToolbarItem, { children: jsxRuntime.jsx(Select, Object.assign({ "aria-label": getResource('Select filter'), isOpen: isDropdownOpen, selected: selectedFilters, onSelect: onRowfilterSelect, onOpenChange: (isOpen) => setIsDropdownOpen(isOpen), toggle: toggle }, props, { children: jsxRuntime.jsx(SelectList, { children: dropdownItems }) })) }));
29294
30570
  };
29295
30571
  const QuickStartCatalogFilterCount = ({ quickStartsCount }) => {
29296
- const { getResource } = React.useContext(QuickStartContext);
29297
- return (React.createElement(ToolbarItem, { align: { default: 'alignEnd' } }, getResource('{{count, number}} item', quickStartsCount).replace('{{count, number}}', quickStartsCount)));
30572
+ const { getResource } = useContext(QuickStartContext);
30573
+ return (jsxRuntime.jsx(ToolbarItem, Object.assign({ align: { default: 'alignEnd' } }, { children: getResource('{{count, number}} item', quickStartsCount).replace('{{count, number}}', quickStartsCount) })));
29298
30574
  };
29299
30575
  const QuickStartCatalogFilterSearchWrapper = ({ onSearchInputChange = () => { } }) => {
29300
- const { useQueryParams, filter, setFilter } = React.useContext(QuickStartContext);
29301
- React.useEffect(() => {
30576
+ const { useQueryParams, filter, setFilter } = useContext(QuickStartContext);
30577
+ useEffect(() => {
29302
30578
  // use this effect to clear the search when a `clear all` action is performed higher up
29303
30579
  const unlisten = history.listen(({ location }) => {
29304
30580
  const searchParams = new URLSearchParams(location.search);
@@ -29324,7 +30600,7 @@ const QuickStartCatalogFilterSearchWrapper = ({ onSearchInputChange = () => { }
29324
30600
  }
29325
30601
  onSearchInputChange(val);
29326
30602
  };
29327
- return (React.createElement(QuickStartCatalogFilterSearch, { searchInputText: filter === null || filter === void 0 ? void 0 : filter.keyword, handleTextChange: handleTextChange }));
30603
+ return (jsxRuntime.jsx(QuickStartCatalogFilterSearch, { searchInputText: filter === null || filter === void 0 ? void 0 : filter.keyword, handleTextChange: handleTextChange }));
29328
30604
  };
29329
30605
  // compare string/number arrays
29330
30606
  const equalsIgnoreOrder = (a, b) => {
@@ -29342,8 +30618,8 @@ const equalsIgnoreOrder = (a, b) => {
29342
30618
  return true;
29343
30619
  };
29344
30620
  const QuickStartCatalogFilterStatusWrapper = ({ onStatusChange = () => { } }) => {
29345
- const { useQueryParams, filter, setFilter } = React.useContext(QuickStartContext);
29346
- React.useEffect(() => {
30621
+ const { useQueryParams, filter, setFilter } = useContext(QuickStartContext);
30622
+ useEffect(() => {
29347
30623
  // use this effect to clear the status when a `clear all` action is performed higher up
29348
30624
  const unlisten = history.listen(({ location }) => {
29349
30625
  var _a;
@@ -29358,8 +30634,8 @@ const QuickStartCatalogFilterStatusWrapper = ({ onStatusChange = () => { } }) =>
29358
30634
  unlisten();
29359
30635
  };
29360
30636
  });
29361
- const [isDropdownOpen, setIsDropdownOpen] = React.useState(false);
29362
- const onRowfilterSelect = React.useCallback((_e, selectedValue) => {
30637
+ const [isDropdownOpen, setIsDropdownOpen] = useState(false);
30638
+ const onRowfilterSelect = useCallback((_e, selectedValue) => {
29363
30639
  setIsDropdownOpen(false);
29364
30640
  const selection = Object.entries(filter.status.statusTypes).find(([_key, value]) => value === selectedValue)[0];
29365
30641
  const selectedFiltersList = filter.status.statusFilters.includes(selection)
@@ -29376,33 +30652,24 @@ const QuickStartCatalogFilterStatusWrapper = ({ onStatusChange = () => { } }) =>
29376
30652
  }
29377
30653
  onStatusChange(selectedFiltersList);
29378
30654
  }, [filter.status.statusFilters, onStatusChange, setFilter, useQueryParams]);
29379
- const dropdownItems = Object.entries(filter.status.statusTypes).map(([key, value]) => (React.createElement(SelectOption, { key: key, "data-key": key, value: value, hasCheckbox: true, isSelected: filter.status.statusFilters.includes(key) },
29380
- React.createElement(React.Fragment, null, value))));
29381
- return (React.createElement(QuickStartCatalogFilterSelect, { isDropdownOpen: isDropdownOpen, setIsDropdownOpen: setIsDropdownOpen, onRowfilterSelect: onRowfilterSelect, selectedFilters: filter.status.statusFilters, dropdownItems: dropdownItems }));
30655
+ const dropdownItems = Object.entries(filter.status.statusTypes).map(([key, value]) => (jsxRuntime.jsx(SelectOption, Object.assign({ "data-key": key, value: value, hasCheckbox: true, isSelected: filter.status.statusFilters.includes(key) }, { children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: value }) }), key)));
30656
+ return (jsxRuntime.jsx(QuickStartCatalogFilterSelect, { isDropdownOpen: isDropdownOpen, setIsDropdownOpen: setIsDropdownOpen, onRowfilterSelect: onRowfilterSelect, selectedFilters: filter.status.statusFilters, dropdownItems: dropdownItems }));
29382
30657
  };
29383
- const QuickStartCatalogFilterCountWrapper = ({ quickStartsCount }) => React.createElement(QuickStartCatalogFilterCount, { quickStartsCount: quickStartsCount });
30658
+ const QuickStartCatalogFilterCountWrapper = ({ quickStartsCount, }) => jsxRuntime.jsx(QuickStartCatalogFilterCount, { quickStartsCount: quickStartsCount });
29384
30659
 
29385
30660
  const QuickStartCatalogFilter = (_a) => {
29386
30661
  var { quickStartsCount, onSearchInputChange = () => { }, onStatusChange = () => { } } = _a, props = __rest(_a, ["quickStartsCount", "onSearchInputChange", "onStatusChange"]);
29387
- return (React.createElement(Toolbar, Object.assign({}, props),
29388
- React.createElement(ToolbarContent, null,
29389
- React.createElement(QuickStartCatalogFilterSearchWrapper, { onSearchInputChange: onSearchInputChange }),
29390
- React.createElement(QuickStartCatalogFilterStatusWrapper, { onStatusChange: onStatusChange }),
29391
- React.createElement(QuickStartCatalogFilterCountWrapper, { quickStartsCount: quickStartsCount }))));
30662
+ return (jsxRuntime.jsx(Toolbar, Object.assign({}, props, { children: jsxRuntime.jsxs(ToolbarContent, { children: [jsxRuntime.jsx(QuickStartCatalogFilterSearchWrapper, { onSearchInputChange: onSearchInputChange }), jsxRuntime.jsx(QuickStartCatalogFilterStatusWrapper, { onStatusChange: onStatusChange }), jsxRuntime.jsx(QuickStartCatalogFilterCountWrapper, { quickStartsCount: quickStartsCount })] }) })));
29392
30663
  };
29393
30664
 
29394
30665
  const QuickStartCatalogEmptyState = ({ clearFilters }) => {
29395
- const { getResource } = React.useContext(QuickStartContext);
29396
- return (React.createElement(EmptyState, { headingLevel: "h4", icon: SearchIcon, titleText: React.createElement(React.Fragment, null, getResource('No results found')) },
29397
- React.createElement(EmptyStateBody, null, getResource('No results match the filter criteria. Remove filters or clear all filters to show results.')),
29398
- React.createElement(EmptyStateFooter, null,
29399
- React.createElement(EmptyStateActions, null,
29400
- React.createElement(Button, { variant: "link", onClick: clearFilters, "data-test": "clear-filter button" }, getResource('Clear all filters'))))));
30666
+ const { getResource } = useContext(QuickStartContext);
30667
+ return (jsxRuntime.jsxs(EmptyState, Object.assign({ headingLevel: "h4", icon: SearchIcon, titleText: jsxRuntime.jsx(jsxRuntime.Fragment, { children: getResource('No results found') }) }, { children: [jsxRuntime.jsx(EmptyStateBody, { children: getResource('No results match the filter criteria. Remove filters or clear all filters to show results.') }), jsxRuntime.jsx(EmptyStateFooter, { children: jsxRuntime.jsx(EmptyStateActions, { children: jsxRuntime.jsx(Button, Object.assign({ variant: "link", onClick: clearFilters, "data-test": "clear-filter button" }, { children: getResource('Clear all filters') })) }) })] })));
29401
30668
  };
29402
30669
  const QuickStartCatalogPage = ({ quickStarts, showFilter, sortFnc = (q1, q2) => q1.spec.displayName.localeCompare(q2.spec.displayName), title, hint, showTitle = true, }) => {
29403
- const sortFncCallback = React.useCallback(sortFnc, [sortFnc]);
29404
- const { allQuickStarts = [], setAllQuickStarts, allQuickStartStates, getResource, filter, setFilter, loading, } = React.useContext(QuickStartContext);
29405
- React.useEffect(() => {
30670
+ const sortFncCallback = useCallback(sortFnc, [sortFnc]);
30671
+ const { allQuickStarts = [], setAllQuickStarts, allQuickStartStates, getResource, filter, setFilter, loading, } = useContext(QuickStartContext);
30672
+ useEffect(() => {
29406
30673
  // passed through prop, not context
29407
30674
  if (quickStarts && JSON.stringify(quickStarts) !== JSON.stringify(allQuickStarts)) {
29408
30675
  setAllQuickStarts(quickStarts);
@@ -29411,8 +30678,8 @@ const QuickStartCatalogPage = ({ quickStarts, showFilter, sortFnc = (q1, q2) =>
29411
30678
  const initialFilteredQuickStarts = showFilter
29412
30679
  ? filterQuickStarts(allQuickStarts, filter.keyword, filter.status.statusFilters, allQuickStartStates).sort(sortFncCallback)
29413
30680
  : allQuickStarts;
29414
- const [filteredQuickStarts, setFilteredQuickStarts] = React.useState(initialFilteredQuickStarts);
29415
- React.useEffect(() => {
30681
+ const [filteredQuickStarts, setFilteredQuickStarts] = useState(initialFilteredQuickStarts);
30682
+ useEffect(() => {
29416
30683
  const filteredQs = showFilter
29417
30684
  ? filterQuickStarts(allQuickStarts, filter.keyword, filter.status.statusFilters, allQuickStartStates).sort(sortFncCallback)
29418
30685
  : allQuickStarts;
@@ -29455,37 +30722,23 @@ const QuickStartCatalogPage = ({ quickStarts, showFilter, sortFnc = (q1, q2) =>
29455
30722
  }
29456
30723
  };
29457
30724
  if (loading) {
29458
- return React.createElement(LoadingBox, null);
30725
+ return jsxRuntime.jsx(LoadingBox, {});
29459
30726
  }
29460
30727
  if (!allQuickStarts || allQuickStarts.length === 0) {
29461
- return React.createElement(EmptyBox, { label: getResource('Quick Starts') });
30728
+ return jsxRuntime.jsx(EmptyBox, { label: getResource('Quick Starts') });
29462
30729
  }
29463
- return (React.createElement(React.Fragment, null,
29464
- (showTitle || showFilter) && (React.createElement(PageSection, { hasBodyWrapper: false },
29465
- showTitle && (React.createElement(Content, { isEditorial: true },
29466
- React.createElement(Title, { headingLevel: "h1", "data-test": "page-title" }, title || getResource('Quick Starts')),
29467
- hint && React.createElement("div", null, hint))),
29468
- showTitle && React.createElement(Divider, { component: "div" }),
29469
- showFilter && (React.createElement(React.Fragment, null,
29470
- React.createElement(QuickStartCatalogFilter, { quickStartsCount: filteredQuickStarts.length, onSearchInputChange: onSearchInputChange, onStatusChange: onStatusChange }))))),
29471
- React.createElement(PageSection, { hasBodyWrapper: false }, filteredQuickStarts.length === 0 ? (React.createElement(QuickStartCatalogEmptyState, { clearFilters: clearFilters })) : (React.createElement(QuickStartCatalog, { quickStarts: filteredQuickStarts })))));
30730
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [(showTitle || showFilter) && (jsxRuntime.jsxs(PageSection, Object.assign({ hasBodyWrapper: false }, { children: [showTitle && (jsxRuntime.jsxs(Content, Object.assign({ isEditorial: true }, { children: [jsxRuntime.jsx(Title, Object.assign({ headingLevel: "h1", "data-test": "page-title" }, { children: title || getResource('Quick Starts') })), hint && jsxRuntime.jsx("div", { children: hint })] }))), showTitle && jsxRuntime.jsx(Divider, { component: "div" }), showFilter && (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(QuickStartCatalogFilter, { quickStartsCount: filteredQuickStarts.length, onSearchInputChange: onSearchInputChange, onStatusChange: onStatusChange }) }))] }))), jsxRuntime.jsx(PageSection, Object.assign({ hasBodyWrapper: false }, { children: filteredQuickStarts.length === 0 ? (jsxRuntime.jsx(QuickStartCatalogEmptyState, { clearFilters: clearFilters })) : (jsxRuntime.jsx(QuickStartCatalog, { quickStarts: filteredQuickStarts })) }))] }));
29472
30731
  };
29473
30732
 
29474
- const QuickStartCatalogHeader = ({ title, hint, }) => (React.createElement("div", null,
29475
- React.createElement(Title, { headingLevel: "h1", "data-pf-content": "true" }, title),
29476
- hint && React.createElement("div", null, hint)));
30733
+ const QuickStartCatalogHeader = ({ title, hint, }) => (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Title, Object.assign({ headingLevel: "h1", "data-pf-content": "true" }, { children: title })), hint && jsxRuntime.jsx("div", { children: hint })] }));
29477
30734
 
29478
- const QuickStartCatalogSection = ({ children }) => (React.createElement("div", null, children));
30735
+ const QuickStartCatalogSection = ({ children }) => (jsxRuntime.jsx("div", { children: children }));
29479
30736
 
29480
- const QuickStartCatalogToolbar = ({ children }) => (React.createElement(Toolbar, null, children));
30737
+ const QuickStartCatalogToolbar = ({ children }) => (jsxRuntime.jsx(Toolbar, { children: children }));
29481
30738
 
29482
- const QuickStartCloseModal = ({ isOpen, onConfirm, onCancel, }) => {
29483
- const { getResource } = React.useContext(QuickStartContext);
29484
- return (React.createElement(Modal, { isOpen: isOpen, variant: ModalVariant.small, showClose: false, "data-test": "leave-quickstart", title: getResource('Leave quick start?'), footer: React.createElement(Flex, null,
29485
- React.createElement(FlexItem, { align: { default: 'alignRight' } },
29486
- React.createElement(Button, { variant: "secondary", "data-test": "cancel button", onClick: onCancel }, getResource('Cancel'))),
29487
- React.createElement(FlexItem, null,
29488
- React.createElement(Button, { variant: "primary", "data-test": "leave button", onClick: onConfirm }, getResource('Leave')))), isFullScreen: true }, getResource('Your progress will be saved.')));
30739
+ const QuickStartCloseModal = ({ isOpen, onConfirm, onCancel }) => {
30740
+ const { getResource } = useContext(QuickStartContext);
30741
+ return (jsxRuntime.jsx(Modal, Object.assign({ isOpen: isOpen, variant: ModalVariant.small, showClose: false, "data-test": "leave-quickstart", title: getResource('Leave quick start?'), footer: jsxRuntime.jsxs(Flex, { children: [jsxRuntime.jsx(FlexItem, Object.assign({ align: { default: 'alignRight' } }, { children: jsxRuntime.jsx(Button, Object.assign({ variant: "secondary", "data-test": "cancel button", onClick: onCancel }, { children: getResource('Cancel') })) })), jsxRuntime.jsx(FlexItem, { children: jsxRuntime.jsx(Button, Object.assign({ variant: "primary", "data-test": "leave button", onClick: onConfirm }, { children: getResource('Leave') })) })] }), isFullScreen: true }, { children: getResource('Your progress will be saved.') })));
29489
30742
  };
29490
30743
 
29491
30744
  var arrowRightIcon = createCommonjsModule(function (module, exports) {
@@ -29505,25 +30758,17 @@ exports["default"] = exports.ArrowRightIcon;
29505
30758
  var ArrowRightIcon = /*@__PURE__*/getDefaultExportFromCjs(arrowRightIcon);
29506
30759
 
29507
30760
  const QuickStartTaskHeader = ({ title, taskIndex, subtitle, taskStatus, size, isActiveTask, onTaskSelect, children, }) => {
29508
- const titleRef = React.useRef(null);
29509
- const { focusOnQuickStart } = React.useContext(QuickStartContext);
29510
- React.useEffect(() => {
30761
+ const titleRef = useRef(null);
30762
+ const { focusOnQuickStart } = useContext(QuickStartContext);
30763
+ useEffect(() => {
29511
30764
  if (focusOnQuickStart && isActiveTask) {
29512
30765
  // Focus the WizardNavItem button element that contains the title
29513
30766
  titleRef.current.parentNode.focus();
29514
30767
  }
29515
30768
  }, [focusOnQuickStart, isActiveTask]);
29516
30769
  const failedReview = taskStatus === QuickStartTaskStatus.FAILED;
29517
- const tryAgain = failedReview && (React.createElement(React.Fragment, null,
29518
- React.createElement("div", null),
29519
- React.createElement("div", { className: "pfext-quick-start-task-header__tryagain" }, "Try the steps again.")));
29520
- const content = (React.createElement("div", { ref: titleRef },
29521
- React.createElement(Title, { headingLevel: "h3", size: size },
29522
- React.createElement("span", { className: "pfext-quick-start-task-header__title" }, title),
29523
- isActiveTask && subtitle && (React.createElement("span", null,
29524
- ' ',
29525
- React.createElement("span", { "data-test-id": "quick-start-task-subtitle", className: "pfext-quick-start-task-header__subtitle" }, subtitle))),
29526
- tryAgain)));
30770
+ const tryAgain = failedReview && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", {}), jsxRuntime.jsx("div", Object.assign({ className: "pfext-quick-start-task-header__tryagain" }, { children: "Try the steps again." }))] }));
30771
+ const content = (jsxRuntime.jsx("div", Object.assign({ ref: titleRef }, { children: jsxRuntime.jsxs(Title, Object.assign({ headingLevel: "h3", size: size }, { children: [jsxRuntime.jsx("span", Object.assign({ className: "pfext-quick-start-task-header__title" }, { children: title })), isActiveTask && subtitle && (jsxRuntime.jsxs("span", { children: [' ', jsxRuntime.jsx("span", Object.assign({ "data-test-id": "quick-start-task-subtitle", className: "pfext-quick-start-task-header__subtitle" }, { children: subtitle }))] })), tryAgain] })) })));
29527
30772
  let status = 'default';
29528
30773
  if (taskStatus === QuickStartTaskStatus.FAILED) {
29529
30774
  status = 'error';
@@ -29531,42 +30776,31 @@ const QuickStartTaskHeader = ({ title, taskIndex, subtitle, taskStatus, size, is
29531
30776
  else if (taskStatus === QuickStartTaskStatus.SUCCESS) {
29532
30777
  status = 'success';
29533
30778
  }
29534
- return (React.createElement(WizardNavItem, { content: content, stepIndex: taskIndex, onClick: () => onTaskSelect(taskIndex - 1), component: "button", isCurrent: isActiveTask, status: status, className: "pfext-quick-start-task-header" }, children));
30779
+ return (jsxRuntime.jsx(WizardNavItem, Object.assign({ content: content, stepIndex: taskIndex, onClick: () => onTaskSelect(taskIndex - 1), component: "button", isCurrent: isActiveTask, status: status, className: "pfext-quick-start-task-header" }, { children: children })));
29535
30780
  };
29536
30781
 
29537
- const QuickStartTaskHeaderList = ({ tasks, allTaskStatuses, onTaskSelect, }) => (tasks === null || tasks === void 0 ? void 0 : tasks.length) > 0 ? (React.createElement("ul", { className: "pf-v6-c-wizard pf-v6-c-wizard__nav-list" }, tasks.map((task, index) => (React.createElement(QuickStartTaskHeader, { key: task.title, title: task.title, taskIndex: index + 1, size: "md", taskStatus: allTaskStatuses[index], onTaskSelect: onTaskSelect }))))) : null;
30782
+ const QuickStartTaskHeaderList = ({ tasks, allTaskStatuses, onTaskSelect, }) => (tasks === null || tasks === void 0 ? void 0 : tasks.length) > 0 ? (jsxRuntime.jsx("ul", Object.assign({ className: "pf-v6-c-wizard pf-v6-c-wizard__nav-list" }, { children: tasks.map((task, index) => (jsxRuntime.jsx(QuickStartTaskHeader, { title: task.title, taskIndex: index + 1, size: "md", taskStatus: allTaskStatuses[index], onTaskSelect: onTaskSelect }, task.title))) }))) : null;
29538
30783
 
29539
30784
  const QuickStartConclusion = ({ tasks, conclusion, allTaskStatuses, nextQuickStarts, onQuickStartChange, onTaskSelect, }) => {
29540
30785
  const hasFailedTask = allTaskStatuses.includes(QuickStartTaskStatus.FAILED);
29541
- const { getResource } = React.useContext(QuickStartContext);
29542
- return (React.createElement(React.Fragment, null,
29543
- React.createElement(QuickStartTaskHeaderList, { tasks: tasks, allTaskStatuses: allTaskStatuses, onTaskSelect: onTaskSelect }),
29544
- React.createElement(QuickStartMarkdownView, { content: hasFailedTask
29545
- ? getResource('One or more verifications did not pass during this quick start. Revisit the tasks or the help links, and then try again.')
29546
- : conclusion }),
29547
- !hasFailedTask &&
29548
- nextQuickStarts &&
29549
- nextQuickStarts.length > 0 &&
29550
- nextQuickStarts.map((nextQuickStart, index) => {
29551
- var _a;
29552
- return (React.createElement(Button, { variant: "link", onClick: () => onQuickStartChange(nextQuickStart.metadata.name), isInline: true, icon: React.createElement(ArrowRightIcon, null), iconPosition: "end", isBlock: true, key: index, style: { marginTop: 'var(--pf-t--global--spacer--md' } }, getResource('Start {{nextQSDisplayName}} quick start').replace('{{nextQSDisplayName}}', (_a = nextQuickStart === null || nextQuickStart === void 0 ? void 0 : nextQuickStart.spec) === null || _a === void 0 ? void 0 : _a.displayName)));
29553
- })));
30786
+ const { getResource } = useContext(QuickStartContext);
30787
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(QuickStartTaskHeaderList, { tasks: tasks, allTaskStatuses: allTaskStatuses, onTaskSelect: onTaskSelect }), jsxRuntime.jsx(QuickStartMarkdownView, { content: hasFailedTask
30788
+ ? getResource('One or more verifications did not pass during this quick start. Revisit the tasks or the help links, and then try again.')
30789
+ : conclusion }), !hasFailedTask &&
30790
+ nextQuickStarts &&
30791
+ nextQuickStarts.length > 0 &&
30792
+ nextQuickStarts.map((nextQuickStart, index) => {
30793
+ var _a;
30794
+ return (jsxRuntime.jsx(Button, Object.assign({ variant: "link", onClick: () => onQuickStartChange(nextQuickStart.metadata.name), isInline: true, icon: jsxRuntime.jsx(ArrowRightIcon, {}), iconPosition: "end", isBlock: true, style: { marginTop: 'var(--pf-t--global--spacer--md' } }, { children: getResource('Start {{nextQSDisplayName}} quick start').replace('{{nextQSDisplayName}}', (_a = nextQuickStart === null || nextQuickStart === void 0 ? void 0 : nextQuickStart.spec) === null || _a === void 0 ? void 0 : _a.displayName) }), index));
30795
+ })] }));
29554
30796
  };
29555
30797
 
29556
30798
  const QuickStartIntroduction = ({ tasks, introduction, allTaskStatuses, prerequisites, onTaskSelect, }) => {
29557
- const { getResource } = React.useContext(QuickStartContext);
30799
+ const { getResource } = useContext(QuickStartContext);
29558
30800
  const prereqs = prerequisites === null || prerequisites === void 0 ? void 0 : prerequisites.filter((p) => p);
29559
- const [isPrereqsExpanded, setIsPrereqsExpanded] = React.useState(false);
29560
- const prereqList = (prereqs === null || prereqs === void 0 ? void 0 : prereqs.length) > 0 && (React.createElement(ExpandableSection, { toggleText: getResource('View Prerequisites ({{totalPrereqs}})').replace('{{totalPrereqs}}', prereqs.length), onToggle: () => setIsPrereqsExpanded(!isPrereqsExpanded) },
29561
- React.createElement(List, null, prereqs.map((pr) => (React.createElement(ListItem, { key: pr },
29562
- React.createElement(QuickStartMarkdownView, { content: pr })))))));
29563
- return (React.createElement(Stack, { hasGutter: true },
29564
- React.createElement(QuickStartMarkdownView, { content: introduction }),
29565
- prereqList,
29566
- React.createElement("p", null,
29567
- getResource('In this quick start, you will complete {{count, number}} task', tasks === null || tasks === void 0 ? void 0 : tasks.length).replace('{{count, number}}', (tasks === null || tasks === void 0 ? void 0 : tasks.length) || 0),
29568
- ":"),
29569
- React.createElement(QuickStartTaskHeaderList, { tasks: tasks, allTaskStatuses: allTaskStatuses, onTaskSelect: onTaskSelect })));
30801
+ const [isPrereqsExpanded, setIsPrereqsExpanded] = useState(false);
30802
+ const prereqList = (prereqs === null || prereqs === void 0 ? void 0 : prereqs.length) > 0 && (jsxRuntime.jsx(ExpandableSection, Object.assign({ toggleText: getResource('View Prerequisites ({{totalPrereqs}})').replace('{{totalPrereqs}}', prereqs.length), onToggle: () => setIsPrereqsExpanded(!isPrereqsExpanded) }, { children: jsxRuntime.jsx(List, { children: prereqs.map((pr) => (jsxRuntime.jsx(ListItem, { children: jsxRuntime.jsx(QuickStartMarkdownView, { content: pr }) }, pr))) }) })));
30803
+ return (jsxRuntime.jsxs(Stack, Object.assign({ hasGutter: true }, { children: [jsxRuntime.jsx(QuickStartMarkdownView, { content: introduction }), prereqList, jsxRuntime.jsxs("p", { children: [getResource('In this quick start, you will complete {{count, number}} task', tasks === null || tasks === void 0 ? void 0 : tasks.length).replace('{{count, number}}', (tasks === null || tasks === void 0 ? void 0 : tasks.length) || 0), ":"] }), jsxRuntime.jsx(QuickStartTaskHeaderList, { tasks: tasks, allTaskStatuses: allTaskStatuses, onTaskSelect: onTaskSelect })] })));
29570
30804
  };
29571
30805
 
29572
30806
  const getAlertVariant = (status) => {
@@ -29581,64 +30815,52 @@ const getAlertVariant = (status) => {
29581
30815
  };
29582
30816
  const QuickStartTaskReview = ({ review, taskStatus, onTaskReview, }) => {
29583
30817
  const { instructions, failedTaskHelp: taskHelp } = review;
29584
- const { getResource } = React.useContext(QuickStartContext);
29585
- return (React.createElement(Alert, { variant: getAlertVariant(taskStatus), title: getResource('Check your work'), isInline: true, role: "alert", style: {
30818
+ const { getResource } = useContext(QuickStartContext);
30819
+ return (jsxRuntime.jsxs(Alert, Object.assign({ variant: getAlertVariant(taskStatus), title: getResource('Check your work'), isInline: true, role: "alert", style: {
29586
30820
  marginBottom: 'var(--pf-t--global--spacer--md)',
29587
- } },
29588
- React.createElement(QuickStartMarkdownView, { content: instructions }),
29589
- React.createElement("span", { className: "pfext-quick-start-task-review__actions" },
29590
- React.createElement(Radio, { id: "review-success", name: "review-success", "data-testid": "qs-drawer-check-yes", label: getResource('Yes'), className: "pfext-quick-start-task-review__radio", isChecked: taskStatus === QuickStartTaskStatus.SUCCESS, onChange: () => onTaskReview(QuickStartTaskStatus.SUCCESS) }),
29591
- React.createElement(Radio, { id: "review-failed", name: "review-failed", "data-testid": "qs-drawer-check-no", label: getResource('No'), className: "pfext-quick-start-task-review__radio", isChecked: taskStatus === QuickStartTaskStatus.FAILED, onChange: () => onTaskReview(QuickStartTaskStatus.FAILED) })),
29592
- taskStatus === QuickStartTaskStatus.FAILED && taskHelp && (React.createElement(QuickStartMarkdownView, { content: taskHelp, exactHeight: true }))));
30821
+ } }, { children: [jsxRuntime.jsx(QuickStartMarkdownView, { content: instructions }), jsxRuntime.jsxs("span", Object.assign({ className: "pfext-quick-start-task-review__actions" }, { children: [jsxRuntime.jsx(Radio, { id: "review-success", name: "review-success", "data-testid": "qs-drawer-check-yes", label: getResource('Yes'), className: "pfext-quick-start-task-review__radio", isChecked: taskStatus === QuickStartTaskStatus.SUCCESS, onChange: () => onTaskReview(QuickStartTaskStatus.SUCCESS) }), jsxRuntime.jsx(Radio, { id: "review-failed", name: "review-failed", "data-testid": "qs-drawer-check-no", label: getResource('No'), className: "pfext-quick-start-task-review__radio", isChecked: taskStatus === QuickStartTaskStatus.FAILED, onChange: () => onTaskReview(QuickStartTaskStatus.FAILED) })] })), taskStatus === QuickStartTaskStatus.FAILED && taskHelp && (jsxRuntime.jsx(QuickStartMarkdownView, { content: taskHelp, exactHeight: true }))] })));
29593
30822
  };
29594
30823
 
29595
30824
  const QuickStartTasks = ({ tasks, taskNumber, allTaskStatuses, onTaskReview, onTaskSelect, }) => {
29596
- const { getResource, alwaysShowTaskReview } = React.useContext(QuickStartContext);
29597
- return (React.createElement("div", { className: "pf-v6-c-wizard pf-v6-c-wizard__nav-list", style: { padding: '0 0 0 0' } },
29598
- React.createElement("ul", null, tasks
29599
- .filter((_, index) => allTaskStatuses[index] !== QuickStartTaskStatus.INIT)
29600
- .map((task, index) => {
29601
- const { title, description, review } = task;
29602
- const isActiveTask = index === taskNumber;
29603
- const taskStatus = allTaskStatuses[index];
29604
- const shouldShowTaskReview = (!QUICKSTART_TASKS_INITIAL_STATES.includes(taskStatus) || alwaysShowTaskReview) &&
29605
- review;
29606
- return (React.createElement(React.Fragment, { key: title },
29607
- React.createElement(QuickStartTaskHeader, { taskIndex: index + 1, title: title, size: "md", subtitle: getResource('{{index, number}} of {{tasks, number}}')
29608
- .replace('{{index, number}}', index + 1)
29609
- .replace('{{tasks, number}}', tasks.length), taskStatus: taskStatus, isActiveTask: isActiveTask, onTaskSelect: onTaskSelect }, isActiveTask && (React.createElement(Stack, { hasGutter: true },
29610
- React.createElement(QuickStartMarkdownView, { content: description }),
29611
- shouldShowTaskReview && (React.createElement(QuickStartTaskReview, { review: review, taskStatus: taskStatus, onTaskReview: onTaskReview })))))));
29612
- }))));
29613
- };
29614
-
29615
- const QuickStartContent = React.forwardRef(({ quickStart, nextQuickStarts = [], taskNumber, allTaskStatuses, onTaskSelect, onTaskReview, onQuickStartChange, }, ref) => {
30825
+ const { getResource, alwaysShowTaskReview } = useContext(QuickStartContext);
30826
+ return (jsxRuntime.jsx("div", Object.assign({ className: "pf-v6-c-wizard pf-v6-c-wizard__nav-list", style: { padding: '0 0 0 0' } }, { children: jsxRuntime.jsx("ul", { children: tasks
30827
+ .filter((_, index) => allTaskStatuses[index] !== QuickStartTaskStatus.INIT)
30828
+ .map((task, index) => {
30829
+ const { title, description, review } = task;
30830
+ const isActiveTask = index === taskNumber;
30831
+ const taskStatus = allTaskStatuses[index];
30832
+ const shouldShowTaskReview = (!QUICKSTART_TASKS_INITIAL_STATES.includes(taskStatus) || alwaysShowTaskReview) &&
30833
+ review;
30834
+ return (jsxRuntime.jsx(Fragment$1, { children: jsxRuntime.jsx(QuickStartTaskHeader, Object.assign({ taskIndex: index + 1, title: title, size: "md", subtitle: getResource('{{index, number}} of {{tasks, number}}')
30835
+ .replace('{{index, number}}', index + 1)
30836
+ .replace('{{tasks, number}}', tasks.length), taskStatus: taskStatus, isActiveTask: isActiveTask, onTaskSelect: onTaskSelect }, { children: isActiveTask && (jsxRuntime.jsxs(Stack, Object.assign({ hasGutter: true }, { children: [jsxRuntime.jsx(QuickStartMarkdownView, { content: description }), shouldShowTaskReview && (jsxRuntime.jsx(QuickStartTaskReview, { review: review, taskStatus: taskStatus, onTaskReview: onTaskReview }))] }))) })) }, title));
30837
+ }) }) })));
30838
+ };
30839
+
30840
+ const QuickStartContent = forwardRef(({ quickStart, nextQuickStarts = [], taskNumber, allTaskStatuses, onTaskSelect, onTaskReview, onQuickStartChange, }, ref) => {
29616
30841
  const { spec: { introduction, tasks, conclusion, prerequisites }, } = quickStart;
29617
30842
  const totalTasks = tasks === null || tasks === void 0 ? void 0 : tasks.length;
29618
- return (React.createElement("div", { className: "pfext-quick-start-task", ref: ref },
29619
- taskNumber === -1 && (React.createElement(QuickStartIntroduction, { tasks: tasks, allTaskStatuses: allTaskStatuses, introduction: introduction, prerequisites: prerequisites, onTaskSelect: onTaskSelect })),
29620
- taskNumber > -1 && taskNumber < totalTasks && (React.createElement(QuickStartTasks, { tasks: tasks, taskNumber: taskNumber, allTaskStatuses: allTaskStatuses, onTaskReview: onTaskReview, onTaskSelect: onTaskSelect })),
29621
- taskNumber === totalTasks && (React.createElement(QuickStartConclusion, { tasks: tasks, conclusion: conclusion, allTaskStatuses: allTaskStatuses, nextQuickStarts: nextQuickStarts, onQuickStartChange: onQuickStartChange, onTaskSelect: onTaskSelect }))));
30843
+ return (jsxRuntime.jsxs("div", Object.assign({ className: "pfext-quick-start-task", ref: ref }, { children: [taskNumber === -1 && (jsxRuntime.jsx(QuickStartIntroduction, { tasks: tasks, allTaskStatuses: allTaskStatuses, introduction: introduction, prerequisites: prerequisites, onTaskSelect: onTaskSelect })), taskNumber > -1 && taskNumber < totalTasks && (jsxRuntime.jsx(QuickStartTasks, { tasks: tasks, taskNumber: taskNumber, allTaskStatuses: allTaskStatuses, onTaskReview: onTaskReview, onTaskSelect: onTaskSelect })), taskNumber === totalTasks && (jsxRuntime.jsx(QuickStartConclusion, { tasks: tasks, conclusion: conclusion, allTaskStatuses: allTaskStatuses, nextQuickStarts: nextQuickStarts, onQuickStartChange: onQuickStartChange, onTaskSelect: onTaskSelect }))] })));
29622
30844
  });
29623
30845
 
29624
30846
  const QuickStartFooter = ({ status, taskNumber, totalTasks, onNext, onBack, quickStartId, className, }) => {
29625
- const { restartQuickStart, getResource } = React.useContext(QuickStartContext);
29626
- const PrimaryButtonText = React.useMemo(() => ({
30847
+ const { restartQuickStart, getResource } = useContext(QuickStartContext);
30848
+ const PrimaryButtonText = useMemo(() => ({
29627
30849
  START: getResource('Start'),
29628
30850
  CONTINUE: getResource('Continue'),
29629
30851
  NEXT: getResource('Next'),
29630
30852
  CLOSE: getResource('Close'),
29631
30853
  }), [getResource]);
29632
- const SecondaryButtonText = React.useMemo(() => ({
30854
+ const SecondaryButtonText = useMemo(() => ({
29633
30855
  BACK: getResource('Back'),
29634
30856
  RESTART: getResource('Restart'),
29635
30857
  }), [getResource]);
29636
- const onRestart = React.useCallback((e) => {
30858
+ const onRestart = useCallback((e) => {
29637
30859
  e.preventDefault();
29638
30860
  e.stopPropagation();
29639
30861
  restartQuickStart(quickStartId, totalTasks);
29640
30862
  }, [quickStartId, restartQuickStart, totalTasks]);
29641
- const getPrimaryButtonText = React.useMemo(() => {
30863
+ const getPrimaryButtonText = useMemo(() => {
29642
30864
  if (status === QuickStartStatus.NOT_STARTED) {
29643
30865
  return PrimaryButtonText.START;
29644
30866
  }
@@ -29650,23 +30872,17 @@ const QuickStartFooter = ({ status, taskNumber, totalTasks, onNext, onBack, quic
29650
30872
  }
29651
30873
  return PrimaryButtonText.CONTINUE;
29652
30874
  }, [taskNumber, totalTasks, PrimaryButtonText, status]);
29653
- const getPrimaryButton = React.useMemo(() => (React.createElement(Button, { variant: "primary", className: "pfext-quick-start-footer__actionbtn", onClick: onNext, "data-testid": `qs-drawer-${camelize(getPrimaryButtonText)}`, "data-test": `${getPrimaryButtonText} button` }, getPrimaryButtonText)), [getPrimaryButtonText, onNext]);
29654
- const getSecondaryButton = React.useMemo(() => taskNumber === -1 && status !== QuickStartStatus.NOT_STARTED ? (React.createElement(Button, { variant: "secondary", onClick: onRestart, "data-testid": "qs-drawer-restart" }, SecondaryButtonText.RESTART)) : (taskNumber > -1 && (React.createElement(Button, { variant: "secondary", onClick: onBack, "data-testid": "qs-drawer-back" }, SecondaryButtonText.BACK))), [onRestart, onBack, SecondaryButtonText, status, taskNumber]);
29655
- const getSideNoteAction = React.useMemo(() => taskNumber !== -1 && (React.createElement(Button, { variant: "link", onClick: onRestart, "data-testid": "qs-drawer-side-note-action" }, SecondaryButtonText.RESTART)), [taskNumber, onRestart, SecondaryButtonText.RESTART]);
29656
- return (React.createElement("div", { className: css('pfext-quick-start-footer', className) },
29657
- React.createElement(ActionList, null,
29658
- React.createElement(ActionListGroup, null,
29659
- React.createElement(ActionListItem, null, getPrimaryButton),
29660
- React.createElement(ActionListItem, null, getSecondaryButton)),
29661
- React.createElement(ActionListGroup, null,
29662
- React.createElement(ActionListItem, null, getSideNoteAction)))));
30875
+ const getPrimaryButton = useMemo(() => (jsxRuntime.jsx(Button, Object.assign({ variant: "primary", className: "pfext-quick-start-footer__actionbtn", onClick: onNext, "data-testid": `qs-drawer-${camelize(getPrimaryButtonText)}`, "data-test": `${getPrimaryButtonText} button` }, { children: getPrimaryButtonText }))), [getPrimaryButtonText, onNext]);
30876
+ const getSecondaryButton = useMemo(() => taskNumber === -1 && status !== QuickStartStatus.NOT_STARTED ? (jsxRuntime.jsx(Button, Object.assign({ variant: "secondary", onClick: onRestart, "data-testid": "qs-drawer-restart" }, { children: SecondaryButtonText.RESTART }))) : (taskNumber > -1 && (jsxRuntime.jsx(Button, Object.assign({ variant: "secondary", onClick: onBack, "data-testid": "qs-drawer-back" }, { children: SecondaryButtonText.BACK })))), [onRestart, onBack, SecondaryButtonText, status, taskNumber]);
30877
+ const getSideNoteAction = useMemo(() => taskNumber !== -1 && (jsxRuntime.jsx(Button, Object.assign({ variant: "link", onClick: onRestart, "data-testid": "qs-drawer-side-note-action" }, { children: SecondaryButtonText.RESTART }))), [taskNumber, onRestart, SecondaryButtonText.RESTART]);
30878
+ return (jsxRuntime.jsx("div", Object.assign({ className: css('pfext-quick-start-footer', className) }, { children: jsxRuntime.jsxs(ActionList, { children: [jsxRuntime.jsxs(ActionListGroup, { children: [jsxRuntime.jsx(ActionListItem, { children: getPrimaryButton }), jsxRuntime.jsx(ActionListItem, { children: getSecondaryButton })] }), jsxRuntime.jsx(ActionListGroup, { children: jsxRuntime.jsx(ActionListItem, { children: getSideNoteAction }) })] }) })));
29663
30879
  };
29664
30880
 
29665
30881
  const QuickStartController = ({ quickStart, nextQuickStarts, contentRef, footerClass, }) => {
29666
30882
  const { metadata: { name }, spec: { tasks = [] }, } = quickStart;
29667
30883
  const totalTasks = tasks === null || tasks === void 0 ? void 0 : tasks.length;
29668
- const { activeQuickStartID, allQuickStartStates, setAllQuickStartStates, activeQuickStartState, setActiveQuickStart, setQuickStartTaskNumber, setQuickStartTaskStatus, nextStep, previousStep, } = React.useContext(QuickStartContext);
29669
- React.useEffect(() => {
30884
+ const { activeQuickStartID, allQuickStartStates, setAllQuickStartStates, activeQuickStartState, setActiveQuickStart, setQuickStartTaskNumber, setQuickStartTaskStatus, nextStep, previousStep, } = useContext(QuickStartContext);
30885
+ useEffect(() => {
29670
30886
  // If activeQuickStartID was changed through prop from QuickStartContainer, need to init the state if it does not exist yet
29671
30887
  if (activeQuickStartID && !allQuickStartStates[activeQuickStartID]) {
29672
30888
  setAllQuickStartStates(Object.assign(Object.assign({}, allQuickStartStates), { [activeQuickStartID]: getDefaultQuickStartState() }));
@@ -29675,9 +30891,9 @@ const QuickStartController = ({ quickStart, nextQuickStarts, contentRef, footerC
29675
30891
  const status = activeQuickStartState === null || activeQuickStartState === void 0 ? void 0 : activeQuickStartState.status;
29676
30892
  const taskNumber = activeQuickStartState === null || activeQuickStartState === void 0 ? void 0 : activeQuickStartState.taskNumber;
29677
30893
  const allTaskStatuses = tasks.map((task, index) => activeQuickStartState[`taskStatus${index}`]);
29678
- const handleQuickStartChange = React.useCallback((quickStartId) => setActiveQuickStart(quickStartId), [setActiveQuickStart]);
29679
- const handleTaskStatusChange = React.useCallback((newTaskStatus) => setQuickStartTaskStatus(newTaskStatus), [setQuickStartTaskStatus]);
29680
- const getQuickStartActiveTask = React.useCallback(() => {
30894
+ const handleQuickStartChange = useCallback((quickStartId) => setActiveQuickStart(quickStartId), [setActiveQuickStart]);
30895
+ const handleTaskStatusChange = useCallback((newTaskStatus) => setQuickStartTaskStatus(newTaskStatus), [setQuickStartTaskStatus]);
30896
+ const getQuickStartActiveTask = useCallback(() => {
29681
30897
  let activeTaskNumber = 0;
29682
30898
  while (activeTaskNumber !== totalTasks &&
29683
30899
  activeQuickStartState[`taskStatus${activeTaskNumber}`] === QuickStartTaskStatus.SUCCESS) {
@@ -29685,11 +30901,11 @@ const QuickStartController = ({ quickStart, nextQuickStarts, contentRef, footerC
29685
30901
  }
29686
30902
  return activeTaskNumber;
29687
30903
  }, [totalTasks, activeQuickStartState]);
29688
- const handleQuickStartContinue = React.useCallback(() => {
30904
+ const handleQuickStartContinue = useCallback(() => {
29689
30905
  const activeTaskNumber = getQuickStartActiveTask();
29690
30906
  setQuickStartTaskNumber(name, activeTaskNumber);
29691
30907
  }, [getQuickStartActiveTask, setQuickStartTaskNumber, name]);
29692
- const handleNext = React.useCallback(() => {
30908
+ const handleNext = useCallback(() => {
29693
30909
  if (status === QuickStartStatus.COMPLETE && taskNumber === totalTasks) {
29694
30910
  return handleQuickStartChange('');
29695
30911
  }
@@ -29698,13 +30914,11 @@ const QuickStartController = ({ quickStart, nextQuickStarts, contentRef, footerC
29698
30914
  }
29699
30915
  return nextStep(totalTasks);
29700
30916
  }, [handleQuickStartChange, nextStep, status, taskNumber, totalTasks, handleQuickStartContinue]);
29701
- const handleBack = React.useCallback(() => previousStep(), [previousStep]);
29702
- const handleTaskSelect = React.useCallback((selectedTaskNumber) => {
30917
+ const handleBack = useCallback(() => previousStep(), [previousStep]);
30918
+ const handleTaskSelect = useCallback((selectedTaskNumber) => {
29703
30919
  setQuickStartTaskNumber(name, selectedTaskNumber);
29704
30920
  }, [name, setQuickStartTaskNumber]);
29705
- return (React.createElement(React.Fragment, null,
29706
- React.createElement(QuickStartContent, { quickStart: quickStart, nextQuickStarts: nextQuickStarts, taskNumber: taskNumber, allTaskStatuses: allTaskStatuses, onTaskSelect: handleTaskSelect, onTaskReview: handleTaskStatusChange, onQuickStartChange: handleQuickStartChange, ref: contentRef }),
29707
- React.createElement(QuickStartFooter, { status: status, taskNumber: taskNumber, totalTasks: totalTasks, onNext: handleNext, onBack: handleBack, className: footerClass, quickStartId: quickStart.metadata.name })));
30921
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(QuickStartContent, { quickStart: quickStart, nextQuickStarts: nextQuickStarts, taskNumber: taskNumber, allTaskStatuses: allTaskStatuses, onTaskSelect: handleTaskSelect, onTaskReview: handleTaskStatusChange, onQuickStartChange: handleQuickStartChange, ref: contentRef }), jsxRuntime.jsx(QuickStartFooter, { status: status, taskNumber: taskNumber, totalTasks: totalTasks, onNext: handleNext, onBack: handleBack, className: footerClass, quickStartId: quickStart.metadata.name })] }));
29708
30922
  };
29709
30923
 
29710
30924
  const getElement = (appendTo) => {
@@ -29714,7 +30928,7 @@ const getElement = (appendTo) => {
29714
30928
  return appendTo;
29715
30929
  };
29716
30930
  const useScrollTopOnTaskNumberChange = (node, taskNumber) => {
29717
- React.useEffect(() => {
30931
+ useEffect(() => {
29718
30932
  if (node) {
29719
30933
  node.scrollTo({ top: 0, behavior: 'smooth' });
29720
30934
  }
@@ -29722,9 +30936,9 @@ const useScrollTopOnTaskNumberChange = (node, taskNumber) => {
29722
30936
  };
29723
30937
  const QuickStartPanelContent = (_a) => {
29724
30938
  var { quickStarts = [], handleClose, activeQuickStartID, appendTo, isResizable = true, showClose = true, footerClass } = _a, props = __rest(_a, ["quickStarts", "handleClose", "activeQuickStartID", "appendTo", "isResizable", "showClose", "footerClass"]);
29725
- const titleRef = React.useRef(null);
29726
- const { getResource, activeQuickStartState, focusOnQuickStart } = React.useContext(QuickStartContext);
29727
- const [contentRef, setContentRef] = React.useState();
30939
+ const titleRef = useRef(null);
30940
+ const { getResource, activeQuickStartState, focusOnQuickStart } = useContext(QuickStartContext);
30941
+ const [contentRef, setContentRef] = useState();
29728
30942
  const quickStart = quickStarts.find((qs) => qs.metadata.name === activeQuickStartID);
29729
30943
  const taskNumber = activeQuickStartState === null || activeQuickStartState === void 0 ? void 0 : activeQuickStartState.taskNumber;
29730
30944
  useScrollTopOnTaskNumberChange(contentRef, taskNumber);
@@ -29740,27 +30954,16 @@ const QuickStartPanelContent = (_a) => {
29740
30954
  }
29741
30955
  return Number.parseInt(taskNumber) + 1;
29742
30956
  };
29743
- React.useEffect(() => {
30957
+ useEffect(() => {
29744
30958
  if (focusOnQuickStart && quickStart) {
29745
30959
  titleRef.current.focus();
29746
30960
  }
29747
30961
  }, [focusOnQuickStart, quickStart]);
29748
- const content = quickStart ? (React.createElement(DrawerPanelContent, Object.assign({ isResizable: isResizable, "data-testid": `qs-drawer-${camelize(quickStart.spec.displayName)}`, "data-qs": `qs-step-${getStep()}`, "data-test": "quickstart drawer", style: { '--pf-v6-c-drawer__panel--PaddingBlockStart': '0' } }, props),
29749
- React.createElement("div", { className: "pfext-quick-start-panel-content" },
29750
- React.createElement(DrawerHead, null,
29751
- React.createElement("div", { tabIndex: -1, ref: titleRef },
29752
- React.createElement(Title, { headingLevel: "h2", size: "xl", style: { marginRight: 'var(--pf-t--global--spacer--md)' } },
29753
- React.createElement("span", null, quickStart === null || quickStart === void 0 ? void 0 : quickStart.spec.displayName),
29754
- ' '),
29755
- React.createElement("span", null, (quickStart === null || quickStart === void 0 ? void 0 : quickStart.spec.durationMinutes)
29756
- ? getResource('{{type}} • {{duration, number}} minutes', quickStart === null || quickStart === void 0 ? void 0 : quickStart.spec.durationMinutes)
29757
- .replace('{{duration, number}}', quickStart === null || quickStart === void 0 ? void 0 : quickStart.spec.durationMinutes)
29758
- .replace('{{type}}', getResource('Type'))
29759
- : getResource('Type'))),
29760
- showClose && (React.createElement(DrawerActions, null,
29761
- React.createElement(DrawerCloseButton, { onClick: handleClose, className: "pfext-quick-start-panel-content__close-button", "data-testid": "qs-drawer-close" }))))),
29762
- React.createElement(DrawerPanelBody, { className: "pfext-quick-start-panel-content__body", "data-test": "content" },
29763
- React.createElement(QuickStartController, { quickStart: quickStart, nextQuickStarts: nextQuickStarts, footerClass: footerClass, contentRef: setContentRef })))) : null;
30962
+ const content = quickStart ? (jsxRuntime.jsxs(DrawerPanelContent, Object.assign({ isResizable: isResizable, "data-testid": `qs-drawer-${camelize(quickStart.spec.displayName)}`, "data-qs": `qs-step-${getStep()}`, "data-test": "quickstart drawer", style: { '--pf-v6-c-drawer__panel--PaddingBlockStart': '0' } }, props, { children: [jsxRuntime.jsx("div", Object.assign({ className: "pfext-quick-start-panel-content" }, { children: jsxRuntime.jsxs(DrawerHead, { children: [jsxRuntime.jsxs("div", Object.assign({ tabIndex: -1, ref: titleRef }, { children: [jsxRuntime.jsxs(Title, Object.assign({ headingLevel: "h2", size: "xl", style: { marginRight: 'var(--pf-t--global--spacer--md)' } }, { children: [jsxRuntime.jsx("span", { children: quickStart === null || quickStart === void 0 ? void 0 : quickStart.spec.displayName }), ' '] })), jsxRuntime.jsx("span", { children: (quickStart === null || quickStart === void 0 ? void 0 : quickStart.spec.durationMinutes)
30963
+ ? getResource('{{type}} {{duration, number}} minutes', quickStart === null || quickStart === void 0 ? void 0 : quickStart.spec.durationMinutes)
30964
+ .replace('{{duration, number}}', quickStart === null || quickStart === void 0 ? void 0 : quickStart.spec.durationMinutes)
30965
+ .replace('{{type}}', getResource('Type'))
30966
+ : getResource('Type') })] })), showClose && (jsxRuntime.jsx(DrawerActions, { children: jsxRuntime.jsx(DrawerCloseButton, { onClick: handleClose, className: "pfext-quick-start-panel-content__close-button", "data-testid": "qs-drawer-close" }) }))] }) })), jsxRuntime.jsx(DrawerPanelBody, Object.assign({ className: "pfext-quick-start-panel-content__body", "data-test": "content" }, { children: jsxRuntime.jsx(QuickStartController, { quickStart: quickStart, nextQuickStarts: nextQuickStarts, footerClass: footerClass, contentRef: setContentRef }) }))] }))) : null;
29764
30967
  if (appendTo) {
29765
30968
  return ReactDOM.createPortal(content, getElement(appendTo));
29766
30969
  }
@@ -29769,7 +30972,7 @@ const QuickStartPanelContent = (_a) => {
29769
30972
 
29770
30973
  const QuickStartDrawerContent = (_a) => {
29771
30974
  var { quickStarts = [], appendTo, fullWidth, handleDrawerClose } = _a, props = __rest(_a, ["quickStarts", "appendTo", "fullWidth", "handleDrawerClose"]);
29772
- const { activeQuickStartID, allQuickStarts = [], activeQuickStartState, } = React.useContext(QuickStartContext);
30975
+ const { activeQuickStartID, allQuickStarts = [], activeQuickStartState, } = useContext(QuickStartContext);
29773
30976
  const combinedQuickStarts = allQuickStarts.concat(quickStarts);
29774
30977
  const handleClose = () => {
29775
30978
  handleDrawerClose && handleDrawerClose(activeQuickStartState === null || activeQuickStartState === void 0 ? void 0 : activeQuickStartState.status);
@@ -29781,14 +30984,14 @@ const QuickStartDrawerContent = (_a) => {
29781
30984
  },
29782
30985
  }
29783
30986
  : {};
29784
- return (React.createElement(QuickStartPanelContent, Object.assign({ quickStarts: combinedQuickStarts, handleClose: handleClose, activeQuickStartID: activeQuickStartID, appendTo: appendTo, isResizable: !fullWidth }, fullWidthPanelStyle, props)));
30987
+ return (jsxRuntime.jsx(QuickStartPanelContent, Object.assign({ quickStarts: combinedQuickStarts, handleClose: handleClose, activeQuickStartID: activeQuickStartID, appendTo: appendTo, isResizable: !fullWidth }, fullWidthPanelStyle, props)));
29785
30988
  };
29786
30989
 
29787
30990
  const QuickStartDrawer = (_a) => {
29788
30991
  var { quickStarts = [], children, appendTo, fullWidth, onCloseInProgress, onCloseNotInProgress } = _a, props = __rest(_a, ["quickStarts", "children", "appendTo", "fullWidth", "onCloseInProgress", "onCloseNotInProgress"]);
29789
- const { activeQuickStartID, setActiveQuickStart, allQuickStarts = [], allQuickStartStates, setAllQuickStartStates, } = React.useContext(QuickStartContext);
30992
+ const { activeQuickStartID, setActiveQuickStart, allQuickStarts = [], allQuickStartStates, setAllQuickStartStates, } = useContext(QuickStartContext);
29790
30993
  const combinedQuickStarts = allQuickStarts.concat(quickStarts);
29791
- React.useEffect(() => {
30994
+ useEffect(() => {
29792
30995
  const params = new URLSearchParams(window.location.search);
29793
30996
  // if there is a quick start param, but the quick start is not active, set it
29794
30997
  // this can happen if a new browser session is opened or an incognito window for example
@@ -29801,13 +31004,13 @@ const QuickStartDrawer = (_a) => {
29801
31004
  }
29802
31005
  }
29803
31006
  }, [activeQuickStartID, combinedQuickStarts, setActiveQuickStart]);
29804
- React.useEffect(() => {
31007
+ useEffect(() => {
29805
31008
  // If activeQuickStartID was changed through prop from QuickStartContainer, need to init the state if it does not exist yet
29806
31009
  if (activeQuickStartID && !allQuickStartStates[activeQuickStartID]) {
29807
31010
  setAllQuickStartStates(Object.assign(Object.assign({}, allQuickStartStates), { [activeQuickStartID]: getDefaultQuickStartState() }));
29808
31011
  }
29809
31012
  }, [activeQuickStartID, allQuickStartStates, setAllQuickStartStates]);
29810
- const [modalOpen, setModalOpen] = React.useState(false);
31013
+ const [modalOpen, setModalOpen] = useState(false);
29811
31014
  const onClose = () => setActiveQuickStart('');
29812
31015
  const handleClose = (activeQuickStartStatus) => {
29813
31016
  if (activeQuickStartStatus === QuickStartStatus.IN_PROGRESS) {
@@ -29837,11 +31040,7 @@ const QuickStartDrawer = (_a) => {
29837
31040
  },
29838
31041
  }
29839
31042
  : {};
29840
- return (React.createElement(React.Fragment, null,
29841
- React.createElement(Drawer, Object.assign({ isExpanded: !!activeQuickStartID, isInline: true }, props),
29842
- React.createElement(DrawerContent, Object.assign({ panelContent: React.createElement(QuickStartDrawerContent, { quickStarts: combinedQuickStarts, handleDrawerClose: handleClose, appendTo: appendTo, fullWidth: fullWidth }) }, fullWidthBodyStyle),
29843
- React.createElement(DrawerContentBody, null, children))),
29844
- React.createElement(QuickStartCloseModal, { isOpen: modalOpen, onConfirm: onModalConfirm, onCancel: onModalCancel })));
31043
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Drawer, Object.assign({ isExpanded: !!activeQuickStartID, isInline: true }, props, { children: jsxRuntime.jsx(DrawerContent, Object.assign({ panelContent: jsxRuntime.jsx(QuickStartDrawerContent, { quickStarts: combinedQuickStarts, handleDrawerClose: handleClose, appendTo: appendTo, fullWidth: fullWidth }) }, fullWidthBodyStyle, { children: jsxRuntime.jsx(DrawerContentBody, { children: children }) })) })), jsxRuntime.jsx(QuickStartCloseModal, { isOpen: modalOpen, onConfirm: onModalConfirm, onCancel: onModalCancel })] }));
29845
31044
  };
29846
31045
 
29847
31046
  const QuickStartContainer = (_a) => {
@@ -29856,13 +31055,13 @@ const QuickStartContainer = (_a) => {
29856
31055
  useQueryParams,
29857
31056
  markdown,
29858
31057
  alwaysShowTaskReview }, contextProps));
29859
- React.useEffect(() => {
31058
+ useEffect(() => {
29860
31059
  if (quickStarts &&
29861
31060
  JSON.stringify(quickStarts) !== JSON.stringify(valuesForQuickstartContext.allQuickStarts)) {
29862
31061
  valuesForQuickstartContext.setAllQuickStarts(quickStarts);
29863
31062
  }
29864
31063
  }, [quickStarts, valuesForQuickstartContext]);
29865
- React.useEffect(() => {
31064
+ useEffect(() => {
29866
31065
  if (loading !== valuesForQuickstartContext.loading) {
29867
31066
  valuesForQuickstartContext.setLoading(loading);
29868
31067
  }
@@ -29871,7 +31070,7 @@ const QuickStartContainer = (_a) => {
29871
31070
  fullWidth,
29872
31071
  onCloseInProgress,
29873
31072
  onCloseNotInProgress }, props);
29874
- return (React.createElement(QuickStartContext.Provider, { value: valuesForQuickstartContext }, isManagedDrawer ? (React.createElement(QuickStartDrawer, Object.assign({}, drawerProps), children)) : (children)));
31073
+ return (jsxRuntime.jsx(QuickStartContext.Provider, Object.assign({ value: valuesForQuickstartContext }, { children: isManagedDrawer ? (jsxRuntime.jsx(QuickStartDrawer, Object.assign({}, drawerProps, { children: children }))) : (children) })));
29875
31074
  };
29876
31075
 
29877
31076
  var barsIcon = createCommonjsModule(function (module, exports) {
@@ -29899,14 +31098,14 @@ const HelpTopicContextDefaults = {
29899
31098
  setFilteredHelpTopics: () => { },
29900
31099
  loading: false,
29901
31100
  };
29902
- const HelpTopicContext = React__default.createContext(HelpTopicContextDefaults);
31101
+ const HelpTopicContext = createContext(HelpTopicContextDefaults);
29903
31102
  const useValuesForHelpTopicContext = (value = {}) => {
29904
31103
  const combinedValue = Object.assign(Object.assign({}, HelpTopicContextDefaults), value);
29905
- const [loading, setLoading] = React__default.useState(combinedValue.loading);
31104
+ const [loading, setLoading] = useState(combinedValue.loading);
29906
31105
  // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
29907
- const [helpTopics, setHelpTopics] = React__default.useState(combinedValue.helpTopics || []);
29908
- const [activeHelpTopic, setActiveHelpTopic] = React__default.useState(combinedValue.activeHelpTopic || null);
29909
- const setActiveHelpTopicByName = React__default.useCallback((helpTopicName) => {
31106
+ const [helpTopics, setHelpTopics] = useState(combinedValue.helpTopics || []);
31107
+ const [activeHelpTopic, setActiveHelpTopic] = useState(combinedValue.activeHelpTopic || null);
31108
+ const setActiveHelpTopicByName = useCallback((helpTopicName) => {
29910
31109
  const topic = helpTopics.find((t) => t.name === helpTopicName);
29911
31110
  if (!helpTopicName) {
29912
31111
  setActiveHelpTopic(null);
@@ -29914,7 +31113,7 @@ const useValuesForHelpTopicContext = (value = {}) => {
29914
31113
  }
29915
31114
  setActiveHelpTopic(topic);
29916
31115
  }, [helpTopics]);
29917
- const [filteredHelpTopics, setFilteredHelpTopics] = React__default.useState(combinedValue.filteredHelpTopics || []);
31116
+ const [filteredHelpTopics, setFilteredHelpTopics] = useState(combinedValue.filteredHelpTopics || []);
29918
31117
  return {
29919
31118
  helpTopics,
29920
31119
  setHelpTopics,
@@ -29930,8 +31129,8 @@ const useValuesForHelpTopicContext = (value = {}) => {
29930
31129
  const HelpTopicPanelContent = (_a) => {
29931
31130
  var _b, _c;
29932
31131
  var { activeHelpTopic = null, filteredHelpTopics = [], isResizable = true, onClose } = _a, props = __rest(_a, ["activeHelpTopic", "filteredHelpTopics", "isResizable", "onClose"]);
29933
- const { setActiveHelpTopicByName } = React.useContext(HelpTopicContext);
29934
- const [isHelpTopicMenuOpen, setIsHelpTopicMenuOpen] = React.useState(false);
31132
+ const { setActiveHelpTopicByName } = useContext(HelpTopicContext);
31133
+ const [isHelpTopicMenuOpen, setIsHelpTopicMenuOpen] = useState(false);
29935
31134
  const toggleHelpTopicMenu = () => {
29936
31135
  setIsHelpTopicMenuOpen(!isHelpTopicMenuOpen);
29937
31136
  };
@@ -29941,24 +31140,10 @@ const HelpTopicPanelContent = (_a) => {
29941
31140
  toggleHelpTopicMenu();
29942
31141
  };
29943
31142
  const helpTopicOptions = filteredHelpTopics.length > 1 &&
29944
- filteredHelpTopics.map((topic) => (React.createElement(SelectOption, { key: topic.name, value: topic.name }, topic.title)));
29945
- const paddingContainer = (children) => React.createElement("div", { style: { padding: '24px' } }, children);
29946
- const panelBodyItems = (React.createElement(React.Fragment, null,
29947
- paddingContainer(React.createElement(QuickStartMarkdownView, { content: activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.content })),
29948
- !!((_b = activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.links) === null || _b === void 0 ? void 0 : _b.length) && React.createElement(Divider, null),
29949
- paddingContainer(React.createElement(Stack, { hasGutter: true }, (_c = activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.links) === null || _c === void 0 ? void 0 : _c.map(({ href, text, newTab, isExternal }, index) => (React.createElement(StackItem, { key: index },
29950
- React.createElement(Button, { component: "a", href: href, target: newTab ? '_blank' : '', rel: "noopener noreferrer", variant: "link", "aria-label": `Open documentation in new window`, isInline: true, icon: isExternal ? React.createElement(ExternalLinkAltIcon, null) : null, iconPosition: "right", style: { fontSize: 'inherit' } }, text || href))))))));
29951
- const content = (React.createElement(DrawerPanelContent, Object.assign({ isResizable: isResizable }, props),
29952
- React.createElement("div", null,
29953
- React.createElement(DrawerHead, null,
29954
- React.createElement("div", null,
29955
- helpTopicOptions && (React.createElement(Select, { isPlain: true, id: "help-topics-select", selected: activeHelpTopic, isOpen: isHelpTopicMenuOpen, onSelect: onSelectHelpTopic, onOpenChange: (isOpen) => setIsHelpTopicMenuOpen(isOpen), toggle: (toggleRef) => (React.createElement(MenuToggle, { isFullWidth: true, ref: toggleRef, icon: React.createElement(BarsIcon, null), onClick: toggleHelpTopicMenu, isExpanded: isHelpTopicMenuOpen }, activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.title)) },
29956
- React.createElement(SelectList, null, helpTopicOptions))),
29957
- React.createElement(Title, { headingLevel: "h1", size: "xl", style: { marginRight: 'var(--pf-t--global--spacer--md)' } }, activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.title)),
29958
- React.createElement(DrawerActions, null,
29959
- React.createElement(DrawerCloseButton, { onClick: onClose, "data-testid": "qs-drawer-close" }))),
29960
- React.createElement(Divider, null),
29961
- React.createElement(DrawerPanelBody, { "data-test": "content" }, panelBodyItems))));
31143
+ filteredHelpTopics.map((topic) => (jsxRuntime.jsx(SelectOption, Object.assign({ value: topic.name }, { children: topic.title }), topic.name)));
31144
+ const paddingContainer = (children) => jsxRuntime.jsx("div", Object.assign({ style: { padding: '24px' } }, { children: children }));
31145
+ const panelBodyItems = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [paddingContainer(jsxRuntime.jsx(QuickStartMarkdownView, { content: activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.content })), !!((_b = activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.links) === null || _b === void 0 ? void 0 : _b.length) && jsxRuntime.jsx(Divider, {}), paddingContainer(jsxRuntime.jsx(Stack, Object.assign({ hasGutter: true }, { children: (_c = activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.links) === null || _c === void 0 ? void 0 : _c.map(({ href, text, newTab, isExternal }, index) => (jsxRuntime.jsx(StackItem, { children: jsxRuntime.jsx(Button, Object.assign({ component: "a", href: href, target: newTab ? '_blank' : '', rel: "noopener noreferrer", variant: "link", "aria-label": `Open documentation in new window`, isInline: true, icon: isExternal ? jsxRuntime.jsx(ExternalLinkAltIcon, {}) : null, iconPosition: "right", style: { fontSize: 'inherit' } }, { children: text || href })) }, index))) })))] }));
31146
+ const content = (jsxRuntime.jsx(DrawerPanelContent, Object.assign({ isResizable: isResizable }, props, { children: jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs(DrawerHead, { children: [jsxRuntime.jsxs("div", { children: [helpTopicOptions && (jsxRuntime.jsx(Select, Object.assign({ isPlain: true, id: "help-topics-select", selected: activeHelpTopic, isOpen: isHelpTopicMenuOpen, onSelect: onSelectHelpTopic, onOpenChange: (isOpen) => setIsHelpTopicMenuOpen(isOpen), toggle: (toggleRef) => (jsxRuntime.jsx(MenuToggle, Object.assign({ isFullWidth: true, ref: toggleRef, icon: jsxRuntime.jsx(BarsIcon, {}), onClick: toggleHelpTopicMenu, isExpanded: isHelpTopicMenuOpen }, { children: activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.title }))) }, { children: jsxRuntime.jsx(SelectList, { children: helpTopicOptions }) }))), jsxRuntime.jsx(Title, Object.assign({ headingLevel: "h1", size: "xl", style: { marginRight: 'var(--pf-t--global--spacer--md)' } }, { children: activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.title }))] }), jsxRuntime.jsx(DrawerActions, { children: jsxRuntime.jsx(DrawerCloseButton, { onClick: onClose, "data-testid": "qs-drawer-close" }) })] }), jsxRuntime.jsx(Divider, {}), jsxRuntime.jsx(DrawerPanelBody, Object.assign({ "data-test": "content" }, { children: panelBodyItems }))] }) })));
29962
31147
  return content;
29963
31148
  };
29964
31149
 
@@ -29967,30 +31152,27 @@ const HelpTopicContainer = (_a) => {
29967
31152
  const valuesForHelpTopicContext = useValuesForHelpTopicContext(Object.assign({ helpTopics,
29968
31153
  language, resourceBundle: Object.assign({}, resourceBundle), loading,
29969
31154
  markdown }, contextProps));
29970
- React.useEffect(() => {
31155
+ useEffect(() => {
29971
31156
  if (loading !== valuesForHelpTopicContext.loading) {
29972
31157
  valuesForHelpTopicContext.setLoading(loading);
29973
31158
  }
29974
31159
  }, [loading, valuesForHelpTopicContext]);
29975
- React.useEffect(() => {
31160
+ useEffect(() => {
29976
31161
  if (helpTopics &&
29977
31162
  JSON.stringify(helpTopics) !== JSON.stringify(valuesForHelpTopicContext.helpTopics)) {
29978
31163
  valuesForHelpTopicContext.setHelpTopics(helpTopics);
29979
31164
  }
29980
31165
  }, [helpTopics, valuesForHelpTopicContext]);
29981
- return (React.createElement(HelpTopicContext.Provider, { value: valuesForHelpTopicContext },
29982
- React.createElement(HelpTopicDrawer, Object.assign({}, props), children)));
31166
+ return (jsxRuntime.jsx(HelpTopicContext.Provider, Object.assign({ value: valuesForHelpTopicContext }, { children: jsxRuntime.jsx(HelpTopicDrawer, Object.assign({}, props, { children: children })) })));
29983
31167
  };
29984
31168
  const HelpTopicDrawer = (_a) => {
29985
31169
  var { children } = _a, props = __rest(_a, ["children"]);
29986
- const { activeHelpTopic, filteredHelpTopics, setActiveHelpTopicByName } = React.useContext(HelpTopicContext);
31170
+ const { activeHelpTopic, filteredHelpTopics, setActiveHelpTopicByName } = useContext(HelpTopicContext);
29987
31171
  const onClose = () => {
29988
31172
  setActiveHelpTopicByName('');
29989
31173
  };
29990
- const panelContent = (React.createElement(HelpTopicPanelContent, { activeHelpTopic: activeHelpTopic, filteredHelpTopics: filteredHelpTopics, onClose: onClose }));
29991
- return (React.createElement(React.Fragment, null,
29992
- React.createElement(Drawer, Object.assign({ isExpanded: !!activeHelpTopic, isInline: true }, props), children ? (React.createElement(DrawerContent, { panelContent: panelContent },
29993
- React.createElement(DrawerContentBody, null, children))) : (React.createElement("div", { className: "pf-v6-c-drawer__main" }, panelContent)))));
31174
+ const panelContent = (jsxRuntime.jsx(HelpTopicPanelContent, { activeHelpTopic: activeHelpTopic, filteredHelpTopics: filteredHelpTopics, onClose: onClose }));
31175
+ return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(Drawer, Object.assign({ isExpanded: !!activeHelpTopic, isInline: true }, props, { children: children ? (jsxRuntime.jsx(DrawerContent, Object.assign({ panelContent: panelContent }, { children: jsxRuntime.jsx(DrawerContentBody, { children: children }) }))) : (jsxRuntime.jsx("div", Object.assign({ className: "pf-v6-c-drawer__main" }, { children: panelContent }))) })) }));
29994
31176
  };
29995
31177
 
29996
31178
  const useLocalStorage = (key, initialValue) => {