@kaizen/components 1.8.7 → 1.10.1

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 (86) hide show
  1. package/dist/cjs/dts/SVG/icons/IndicatorActiveIcon.d.ts +3 -0
  2. package/dist/cjs/dts/SVG/icons/IndicatorInactiveIcon.d.ts +3 -0
  3. package/dist/cjs/dts/SVG/icons/SuccessIcon.d.ts +3 -0
  4. package/dist/cjs/dts/Workflow/Workflow.d.ts +26 -0
  5. package/dist/cjs/dts/Workflow/_docs/controls/controls.d.ts +35 -0
  6. package/dist/cjs/dts/Workflow/_docs/controls/index.d.ts +1 -0
  7. package/dist/cjs/dts/Workflow/index.d.ts +1 -0
  8. package/dist/cjs/dts/Workflow/subcomponents/Footer/Footer.d.ts +13 -0
  9. package/dist/cjs/dts/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.d.ts +12 -0
  10. package/dist/cjs/dts/Workflow/subcomponents/Footer/components/FooterActions/index.d.ts +1 -0
  11. package/dist/cjs/dts/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.d.ts +10 -0
  12. package/dist/cjs/dts/Workflow/subcomponents/Footer/components/ProgressStepper/index.d.ts +1 -0
  13. package/dist/cjs/dts/Workflow/subcomponents/Footer/components/Root/Root.d.ts +7 -0
  14. package/dist/cjs/dts/Workflow/subcomponents/Footer/components/Root/index.d.ts +1 -0
  15. package/dist/cjs/dts/Workflow/subcomponents/Footer/components/index.d.ts +3 -0
  16. package/dist/cjs/dts/Workflow/subcomponents/Footer/index.d.ts +2 -0
  17. package/dist/cjs/dts/Workflow/subcomponents/Header/Header.d.ts +7 -0
  18. package/dist/cjs/dts/Workflow/subcomponents/Header/components/Actions/Actions.d.ts +13 -0
  19. package/dist/cjs/dts/Workflow/subcomponents/Header/components/Actions/index.d.ts +1 -0
  20. package/dist/cjs/dts/Workflow/subcomponents/Header/components/Branding/Branding.d.ts +12 -0
  21. package/dist/cjs/dts/Workflow/subcomponents/Header/components/Branding/index.d.ts +1 -0
  22. package/dist/cjs/dts/Workflow/subcomponents/Header/components/Root/Root.d.ts +7 -0
  23. package/dist/cjs/dts/Workflow/subcomponents/Header/components/Root/index.d.ts +1 -0
  24. package/dist/cjs/dts/Workflow/subcomponents/Header/components/Titles/Titles.d.ts +17 -0
  25. package/dist/cjs/dts/Workflow/subcomponents/Header/components/Titles/index.d.ts +1 -0
  26. package/dist/cjs/dts/Workflow/subcomponents/Header/components/index.d.ts +4 -0
  27. package/dist/cjs/dts/Workflow/subcomponents/Header/index.d.ts +2 -0
  28. package/dist/cjs/dts/Workflow/subcomponents/Main/Main.d.ts +9 -0
  29. package/dist/cjs/dts/Workflow/subcomponents/Main/index.d.ts +1 -0
  30. package/dist/cjs/dts/Workflow/subcomponents/Wrapper/Wrapper.d.ts +9 -0
  31. package/dist/cjs/dts/Workflow/subcomponents/Wrapper/index.d.ts +1 -0
  32. package/dist/cjs/dts/Workflow/subcomponents/index.d.ts +4 -0
  33. package/dist/cjs/dts/index.d.ts +1 -0
  34. package/dist/cjs/future.js +1 -1
  35. package/dist/cjs/{index-18831222.js → index-f4dd8d10.js} +1 -1
  36. package/dist/cjs/index-f4dd8d10.js.map +1 -0
  37. package/dist/cjs/index.css +451 -4
  38. package/dist/cjs/index.js +2030 -638
  39. package/dist/cjs/index.js.map +1 -1
  40. package/dist/esm/dts/SVG/icons/IndicatorActiveIcon.d.ts +3 -0
  41. package/dist/esm/dts/SVG/icons/IndicatorInactiveIcon.d.ts +3 -0
  42. package/dist/esm/dts/SVG/icons/SuccessIcon.d.ts +3 -0
  43. package/dist/esm/dts/Workflow/Workflow.d.ts +26 -0
  44. package/dist/esm/dts/Workflow/_docs/controls/controls.d.ts +35 -0
  45. package/dist/esm/dts/Workflow/_docs/controls/index.d.ts +1 -0
  46. package/dist/esm/dts/Workflow/index.d.ts +1 -0
  47. package/dist/esm/dts/Workflow/subcomponents/Footer/Footer.d.ts +13 -0
  48. package/dist/esm/dts/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.d.ts +12 -0
  49. package/dist/esm/dts/Workflow/subcomponents/Footer/components/FooterActions/index.d.ts +1 -0
  50. package/dist/esm/dts/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.d.ts +10 -0
  51. package/dist/esm/dts/Workflow/subcomponents/Footer/components/ProgressStepper/index.d.ts +1 -0
  52. package/dist/esm/dts/Workflow/subcomponents/Footer/components/Root/Root.d.ts +7 -0
  53. package/dist/esm/dts/Workflow/subcomponents/Footer/components/Root/index.d.ts +1 -0
  54. package/dist/esm/dts/Workflow/subcomponents/Footer/components/index.d.ts +3 -0
  55. package/dist/esm/dts/Workflow/subcomponents/Footer/index.d.ts +2 -0
  56. package/dist/esm/dts/Workflow/subcomponents/Header/Header.d.ts +7 -0
  57. package/dist/esm/dts/Workflow/subcomponents/Header/components/Actions/Actions.d.ts +13 -0
  58. package/dist/esm/dts/Workflow/subcomponents/Header/components/Actions/index.d.ts +1 -0
  59. package/dist/esm/dts/Workflow/subcomponents/Header/components/Branding/Branding.d.ts +12 -0
  60. package/dist/esm/dts/Workflow/subcomponents/Header/components/Branding/index.d.ts +1 -0
  61. package/dist/esm/dts/Workflow/subcomponents/Header/components/Root/Root.d.ts +7 -0
  62. package/dist/esm/dts/Workflow/subcomponents/Header/components/Root/index.d.ts +1 -0
  63. package/dist/esm/dts/Workflow/subcomponents/Header/components/Titles/Titles.d.ts +17 -0
  64. package/dist/esm/dts/Workflow/subcomponents/Header/components/Titles/index.d.ts +1 -0
  65. package/dist/esm/dts/Workflow/subcomponents/Header/components/index.d.ts +4 -0
  66. package/dist/esm/dts/Workflow/subcomponents/Header/index.d.ts +2 -0
  67. package/dist/esm/dts/Workflow/subcomponents/Main/Main.d.ts +9 -0
  68. package/dist/esm/dts/Workflow/subcomponents/Main/index.d.ts +1 -0
  69. package/dist/esm/dts/Workflow/subcomponents/Wrapper/Wrapper.d.ts +9 -0
  70. package/dist/esm/dts/Workflow/subcomponents/Wrapper/index.d.ts +1 -0
  71. package/dist/esm/dts/Workflow/subcomponents/index.d.ts +4 -0
  72. package/dist/esm/dts/index.d.ts +1 -0
  73. package/dist/esm/future.js +1 -1
  74. package/dist/esm/{index-3e73eeed.js → index-55bf6f2f.js} +1 -1
  75. package/dist/esm/index-55bf6f2f.js.map +1 -0
  76. package/dist/esm/index.css +451 -4
  77. package/dist/esm/index.js +2071 -680
  78. package/dist/esm/index.js.map +1 -1
  79. package/dist/index.d.ts +68 -2
  80. package/dist/styles.css +1 -1
  81. package/icons/empty.icon.svg +4 -14
  82. package/icons/full.icon.svg +3 -16
  83. package/icons/success.icon.svg +7 -15
  84. package/package.json +18 -15
  85. package/dist/cjs/index-18831222.js.map +0 -1
  86. package/dist/esm/index-3e73eeed.js.map +0 -1
package/dist/esm/index.js CHANGED
@@ -1,7 +1,8 @@
1
- import { _ as __assign$1, a as __rest$1, g as getDefaultExportFromCjs, b as __spreadArray, c as __spreadArrays, d as classnames, e as getAugmentedNamespace, f as commonjsGlobal, h as classnamesExports } from './index-3e73eeed.js';
1
+ import { _ as __assign$3, a as __rest$3, g as getDefaultExportFromCjs, b as __spreadArray, c as __spreadArrays, d as classnames, e as getAugmentedNamespace, f as commonjsGlobal, h as classnamesExports } from './index-55bf6f2f.js';
2
2
  import * as React from 'react';
3
3
  import React__default, { useState, useEffect, PureComponent, useRef, forwardRef, useMemo, useCallback, useContext, createContext } from 'react';
4
4
  import { makeCssVariableDefinitionsMap } from '@kaizen/design-tokens';
5
+ import require$$0 from 'process';
5
6
 
6
7
  var zeroRightClassName = 'right-scroll-bar-position';
7
8
  var fullWidthClassName = 'width-before-scroll-bar';
@@ -166,12 +167,12 @@ function createMedium(defaults, middleware) {
166
167
  function createSidecarMedium(options) {
167
168
  if (options === void 0) { options = {}; }
168
169
  var medium = innerCreateMedium(null);
169
- medium.options = __assign$1({ async: true, ssr: false }, options);
170
+ medium.options = __assign$3({ async: true, ssr: false }, options);
170
171
  return medium;
171
172
  }
172
173
 
173
174
  var SideCar$1 = function (_a) {
174
- var sideCar = _a.sideCar, rest = __rest$1(_a, ["sideCar"]);
175
+ var sideCar = _a.sideCar, rest = __rest$3(_a, ["sideCar"]);
175
176
  if (!sideCar) {
176
177
  throw new Error('Sidecar: please provide `sideCar` property to import the right car');
177
178
  }
@@ -179,7 +180,7 @@ var SideCar$1 = function (_a) {
179
180
  if (!Target) {
180
181
  throw new Error('Sidecar medium not found');
181
182
  }
182
- return React.createElement(Target, __assign$1({}, rest));
183
+ return React.createElement(Target, __assign$3({}, rest));
183
184
  };
184
185
  SideCar$1.isSideCarExport = true;
185
186
  function exportSidecar(medium, exported) {
@@ -202,13 +203,13 @@ var RemoveScroll = React.forwardRef(function (props, parentRef) {
202
203
  onWheelCapture: nothing,
203
204
  onTouchMoveCapture: nothing,
204
205
  }), callbacks = _a[0], setCallbacks = _a[1];
205
- var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest$1(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
206
+ var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest$3(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
206
207
  var SideCar = sideCar;
207
208
  var containerRef = useMergeRefs([ref, parentRef]);
208
- var containerProps = __assign$1(__assign$1({}, rest), callbacks);
209
+ var containerProps = __assign$3(__assign$3({}, rest), callbacks);
209
210
  return (React.createElement(React.Fragment, null,
210
211
  enabled && (React.createElement(SideCar, { sideCar: effectCar$1, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),
211
- forwardProps ? (React.cloneElement(React.Children.only(children), __assign$1(__assign$1({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign$1({}, containerProps, { className: className, ref: containerRef }), children))));
212
+ forwardProps ? (React.cloneElement(React.Children.only(children), __assign$3(__assign$3({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign$3({}, containerProps, { className: className, ref: containerRef }), children))));
212
213
  });
213
214
  RemoveScroll.defaultProps = {
214
215
  enabled: true,
@@ -220,8 +221,8 @@ RemoveScroll.classNames = {
220
221
  zeroRight: zeroRightClassName,
221
222
  };
222
223
 
223
- function _extends() {
224
- _extends = Object.assign ? Object.assign.bind() : function (target) {
224
+ function _extends$1() {
225
+ _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
225
226
  for (var i = 1; i < arguments.length; i++) {
226
227
  var source = arguments[i];
227
228
  for (var key in source) {
@@ -232,7 +233,7 @@ function _extends() {
232
233
  }
233
234
  return target;
234
235
  };
235
- return _extends.apply(this, arguments);
236
+ return _extends$1.apply(this, arguments);
236
237
  }
237
238
 
238
239
  var propTypes = {exports: {}};
@@ -1586,7 +1587,7 @@ var FocusLock = /*#__PURE__*/React.forwardRef(function FocusLockUI(props, parent
1586
1587
  }, []);
1587
1588
  }
1588
1589
 
1589
- var lockProps = _extends((_extends2 = {}, _extends2[FOCUS_DISABLED] = disabled && 'disabled', _extends2[FOCUS_GROUP] = group, _extends2), containerProps);
1590
+ var lockProps = _extends$1((_extends2 = {}, _extends2[FOCUS_DISABLED] = disabled && 'disabled', _extends2[FOCUS_GROUP] = group, _extends2), containerProps);
1590
1591
 
1591
1592
  var hasLeadingGuards = noFocusGuards !== true;
1592
1593
  var hasTailingGuards = hasLeadingGuards && noFocusGuards !== 'tail';
@@ -1619,7 +1620,7 @@ var FocusLock = /*#__PURE__*/React.forwardRef(function FocusLockUI(props, parent
1619
1620
  onDeactivation: onDeactivation,
1620
1621
  returnFocus: returnFocus,
1621
1622
  focusOptions: focusOptions
1622
- }), /*#__PURE__*/React.createElement(Container, _extends({
1623
+ }), /*#__PURE__*/React.createElement(Container, _extends$1({
1623
1624
  ref: mergedRef
1624
1625
  }, lockProps, {
1625
1626
  className: className,
@@ -1706,14 +1707,14 @@ process.env.NODE_ENV !== "production" ? {
1706
1707
  var effectCar = createSidecarMedium();
1707
1708
  var focusHiddenMarker = 'data-focus-on-hidden';
1708
1709
 
1709
- __assign$1({}, RemoveScroll.classNames);
1710
+ __assign$3({}, RemoveScroll.classNames);
1710
1711
 
1711
1712
  var FocusOn$1 = React.forwardRef(function (props, parentRef) {
1712
1713
  var _a = React.useState(false), lockProps = _a[0], setLockProps = _a[1];
1713
- var children = props.children, autoFocus = props.autoFocus, shards = props.shards, _b = props.enabled, enabled = _b === void 0 ? true : _b, _c = props.scrollLock, scrollLock = _c === void 0 ? true : _c, _d = props.focusLock, focusLock = _d === void 0 ? true : _d, _e = props.returnFocus, returnFocus = _e === void 0 ? true : _e, inert = props.inert, allowPinchZoom = props.allowPinchZoom, sideCar = props.sideCar, className = props.className, shouldIgnore = props.shouldIgnore, preventScrollOnFocus = props.preventScrollOnFocus, style = props.style, as = props.as, gapMode = props.gapMode, rest = __rest$1(props, ["children", "autoFocus", "shards", "enabled", "scrollLock", "focusLock", "returnFocus", "inert", "allowPinchZoom", "sideCar", "className", "shouldIgnore", "preventScrollOnFocus", "style", "as", "gapMode"]);
1714
+ var children = props.children, autoFocus = props.autoFocus, shards = props.shards, _b = props.enabled, enabled = _b === void 0 ? true : _b, _c = props.scrollLock, scrollLock = _c === void 0 ? true : _c, _d = props.focusLock, focusLock = _d === void 0 ? true : _d, _e = props.returnFocus, returnFocus = _e === void 0 ? true : _e, inert = props.inert, allowPinchZoom = props.allowPinchZoom, sideCar = props.sideCar, className = props.className, shouldIgnore = props.shouldIgnore, preventScrollOnFocus = props.preventScrollOnFocus, style = props.style, as = props.as, gapMode = props.gapMode, rest = __rest$3(props, ["children", "autoFocus", "shards", "enabled", "scrollLock", "focusLock", "returnFocus", "inert", "allowPinchZoom", "sideCar", "className", "shouldIgnore", "preventScrollOnFocus", "style", "as", "gapMode"]);
1714
1715
  var SideCar = sideCar;
1715
- var onActivation = lockProps.onActivation, onDeactivation = lockProps.onDeactivation, restProps = __rest$1(lockProps, ["onActivation", "onDeactivation"]);
1716
- var appliedLockProps = __assign$1(__assign$1({}, restProps), { as: as,
1716
+ var onActivation = lockProps.onActivation, onDeactivation = lockProps.onDeactivation, restProps = __rest$3(lockProps, ["onActivation", "onDeactivation"]);
1717
+ var appliedLockProps = __assign$3(__assign$3({}, restProps), { as: as,
1717
1718
  style: style,
1718
1719
  sideCar: sideCar,
1719
1720
  shards: shards,
@@ -1722,7 +1723,7 @@ var FocusOn$1 = React.forwardRef(function (props, parentRef) {
1722
1723
  inert: inert, enabled: enabled && scrollLock });
1723
1724
  return (React.createElement(React.Fragment, null,
1724
1725
  React.createElement(FocusLockUI, { ref: parentRef, sideCar: sideCar, disabled: !(lockProps && enabled && focusLock), returnFocus: returnFocus, autoFocus: autoFocus, shards: shards, onActivation: onActivation, onDeactivation: onDeactivation, className: className, whiteList: shouldIgnore, lockProps: appliedLockProps, focusOptions: preventScrollOnFocus ? { preventScroll: true } : undefined, as: RemoveScroll }, children),
1725
- enabled && (React.createElement(SideCar, __assign$1({}, rest, { sideCar: effectCar, setLockProps: setLockProps, shards: shards })))));
1726
+ enabled && (React.createElement(SideCar, __assign$3({}, rest, { sideCar: effectCar, setLockProps: setLockProps, shards: shards })))));
1726
1727
  });
1727
1728
 
1728
1729
  function _setPrototypeOf(o, p) {
@@ -3314,8 +3315,8 @@ var hideOthers = function (originalTarget, parentNode, markerName) {
3314
3315
  };
3315
3316
 
3316
3317
  var Style = styleSingleton();
3317
- var styles$b = "\n [" + focusHiddenMarker + "] {\n pointer-events: none !important;\n }\n";
3318
- var InteractivityDisabler = function () { return React.createElement(Style, { styles: styles$b }); };
3318
+ var styles$j = "\n [" + focusHiddenMarker + "] {\n pointer-events: none !important;\n }\n";
3319
+ var InteractivityDisabler = function () { return React.createElement(Style, { styles: styles$j }); };
3319
3320
 
3320
3321
  var extractRef = function (ref) {
3321
3322
  return 'current' in ref ? ref.current : ref;
@@ -3423,9 +3424,9 @@ function Effect(_a) {
3423
3424
  var SideCar = exportSidecar(effectCar, Effect);
3424
3425
 
3425
3426
  var RequireSideCar = function (props) {
3426
- return React.createElement(SideCar, __assign$1({}, props));
3427
+ return React.createElement(SideCar, __assign$3({}, props));
3427
3428
  };
3428
- var FocusOn = React.forwardRef(function (props, ref) { return React.createElement(FocusOn$1, __assign$1({}, props, { ref: ref, sideCar: RequireSideCar })); });
3429
+ var FocusOn = React.forwardRef(function (props, ref) { return React.createElement(FocusOn$1, __assign$3({}, props, { ref: ref, sideCar: RequireSideCar })); });
3429
3430
 
3430
3431
  var ManagerReferenceNodeContext = React.createContext();
3431
3432
  var ManagerReferenceNodeSetterContext = React.createContext();
@@ -34857,17 +34858,7 @@ function effect$1(_ref2) {
34857
34858
  }
34858
34859
  }
34859
34860
 
34860
- if (process.env.NODE_ENV !== "production") {
34861
- if (!isHTMLElement(arrowElement)) {
34862
- console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));
34863
- }
34864
- }
34865
-
34866
34861
  if (!contains(state.elements.popper, arrowElement)) {
34867
- if (process.env.NODE_ENV !== "production") {
34868
- console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
34869
- }
34870
-
34871
34862
  return;
34872
34863
  }
34873
34864
 
@@ -35009,17 +35000,6 @@ function computeStyles(_ref5) {
35009
35000
  adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
35010
35001
  _options$roundOffsets = options.roundOffsets,
35011
35002
  roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
35012
-
35013
- if (process.env.NODE_ENV !== "production") {
35014
- var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
35015
-
35016
- if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
35017
- return transitionProperty.indexOf(property) >= 0;
35018
- })) {
35019
- console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: "transform", "top", "right", "bottom", "left".', '\n\n', 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\n\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));
35020
- }
35021
- }
35022
-
35023
35003
  var commonStyles = {
35024
35004
  placement: getBasePlacement(state.placement),
35025
35005
  variation: getVariation(state.placement),
@@ -35460,10 +35440,6 @@ function computeAutoPlacement(state, options) {
35460
35440
 
35461
35441
  if (allowedPlacements.length === 0) {
35462
35442
  allowedPlacements = placements$1;
35463
-
35464
- if (process.env.NODE_ENV !== "production") {
35465
- console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
35466
- }
35467
35443
  } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
35468
35444
 
35469
35445
 
@@ -36015,108 +35991,6 @@ function debounce(fn) {
36015
35991
  };
36016
35992
  }
36017
35993
 
36018
- function format(str) {
36019
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
36020
- args[_key - 1] = arguments[_key];
36021
- }
36022
-
36023
- return [].concat(args).reduce(function (p, c) {
36024
- return p.replace(/%s/, c);
36025
- }, str);
36026
- }
36027
-
36028
- var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
36029
- var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
36030
- var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
36031
- function validateModifiers(modifiers) {
36032
- modifiers.forEach(function (modifier) {
36033
- [].concat(Object.keys(modifier), VALID_PROPERTIES) // IE11-compatible replacement for `new Set(iterable)`
36034
- .filter(function (value, index, self) {
36035
- return self.indexOf(value) === index;
36036
- }).forEach(function (key) {
36037
- switch (key) {
36038
- case 'name':
36039
- if (typeof modifier.name !== 'string') {
36040
- console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\""));
36041
- }
36042
-
36043
- break;
36044
-
36045
- case 'enabled':
36046
- if (typeof modifier.enabled !== 'boolean') {
36047
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
36048
- }
36049
-
36050
- break;
36051
-
36052
- case 'phase':
36053
- if (modifierPhases.indexOf(modifier.phase) < 0) {
36054
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
36055
- }
36056
-
36057
- break;
36058
-
36059
- case 'fn':
36060
- if (typeof modifier.fn !== 'function') {
36061
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', "\"" + String(modifier.fn) + "\""));
36062
- }
36063
-
36064
- break;
36065
-
36066
- case 'effect':
36067
- if (modifier.effect != null && typeof modifier.effect !== 'function') {
36068
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
36069
- }
36070
-
36071
- break;
36072
-
36073
- case 'requires':
36074
- if (modifier.requires != null && !Array.isArray(modifier.requires)) {
36075
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
36076
- }
36077
-
36078
- break;
36079
-
36080
- case 'requiresIfExists':
36081
- if (!Array.isArray(modifier.requiresIfExists)) {
36082
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', "\"" + String(modifier.requiresIfExists) + "\""));
36083
- }
36084
-
36085
- break;
36086
-
36087
- case 'options':
36088
- case 'data':
36089
- break;
36090
-
36091
- default:
36092
- console.error("PopperJS: an invalid property has been provided to the \"" + modifier.name + "\" modifier, valid properties are " + VALID_PROPERTIES.map(function (s) {
36093
- return "\"" + s + "\"";
36094
- }).join(', ') + "; but \"" + key + "\" was provided.");
36095
- }
36096
-
36097
- modifier.requires && modifier.requires.forEach(function (requirement) {
36098
- if (modifiers.find(function (mod) {
36099
- return mod.name === requirement;
36100
- }) == null) {
36101
- console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
36102
- }
36103
- });
36104
- });
36105
- });
36106
- }
36107
-
36108
- function uniqueBy(arr, fn) {
36109
- var identifiers = new Set();
36110
- return arr.filter(function (item) {
36111
- var identifier = fn(item);
36112
-
36113
- if (!identifiers.has(identifier)) {
36114
- identifiers.add(identifier);
36115
- return true;
36116
- }
36117
- });
36118
- }
36119
-
36120
35994
  function mergeByName(modifiers) {
36121
35995
  var merged = modifiers.reduce(function (merged, current) {
36122
35996
  var existing = merged[current.name];
@@ -36132,8 +36006,6 @@ function mergeByName(modifiers) {
36132
36006
  });
36133
36007
  }
36134
36008
 
36135
- var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
36136
- var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
36137
36009
  var DEFAULT_OPTIONS = {
36138
36010
  placement: 'bottom',
36139
36011
  modifiers: [],
@@ -36195,42 +36067,7 @@ function popperGenerator(generatorOptions) {
36195
36067
 
36196
36068
  state.orderedModifiers = orderedModifiers.filter(function (m) {
36197
36069
  return m.enabled;
36198
- }); // Validate the provided modifiers so that the consumer will get warned
36199
- // if one of the modifiers is invalid for any reason
36200
-
36201
- if (process.env.NODE_ENV !== "production") {
36202
- var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
36203
- var name = _ref.name;
36204
- return name;
36205
- });
36206
- validateModifiers(modifiers);
36207
-
36208
- if (getBasePlacement(state.options.placement) === auto) {
36209
- var flipModifier = state.orderedModifiers.find(function (_ref2) {
36210
- var name = _ref2.name;
36211
- return name === 'flip';
36212
- });
36213
-
36214
- if (!flipModifier) {
36215
- console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
36216
- }
36217
- }
36218
-
36219
- var _getComputedStyle = getComputedStyle$1(popper),
36220
- marginTop = _getComputedStyle.marginTop,
36221
- marginRight = _getComputedStyle.marginRight,
36222
- marginBottom = _getComputedStyle.marginBottom,
36223
- marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
36224
- // cause bugs with positioning, so we'll warn the consumer
36225
-
36226
-
36227
- if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
36228
- return parseFloat(margin);
36229
- })) {
36230
- console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
36231
- }
36232
- }
36233
-
36070
+ });
36234
36071
  runModifierEffects();
36235
36072
  return instance.update();
36236
36073
  },
@@ -36250,10 +36087,6 @@ function popperGenerator(generatorOptions) {
36250
36087
  // anymore
36251
36088
 
36252
36089
  if (!areValidElements(reference, popper)) {
36253
- if (process.env.NODE_ENV !== "production") {
36254
- console.error(INVALID_ELEMENT_ERROR);
36255
- }
36256
-
36257
36090
  return;
36258
36091
  } // Store the reference and popper rects to be read by modifiers
36259
36092
 
@@ -36276,18 +36109,8 @@ function popperGenerator(generatorOptions) {
36276
36109
  state.orderedModifiers.forEach(function (modifier) {
36277
36110
  return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
36278
36111
  });
36279
- var __debug_loops__ = 0;
36280
36112
 
36281
36113
  for (var index = 0; index < state.orderedModifiers.length; index++) {
36282
- if (process.env.NODE_ENV !== "production") {
36283
- __debug_loops__ += 1;
36284
-
36285
- if (__debug_loops__ > 100) {
36286
- console.error(INFINITE_LOOP_ERROR);
36287
- break;
36288
- }
36289
- }
36290
-
36291
36114
  if (state.reset === true) {
36292
36115
  state.reset = false;
36293
36116
  index = -1;
@@ -36325,10 +36148,6 @@ function popperGenerator(generatorOptions) {
36325
36148
  };
36326
36149
 
36327
36150
  if (!areValidElements(reference, popper)) {
36328
- if (process.env.NODE_ENV !== "production") {
36329
- console.error(INVALID_ELEMENT_ERROR);
36330
- }
36331
-
36332
36151
  return instance;
36333
36152
  }
36334
36153
 
@@ -36343,11 +36162,11 @@ function popperGenerator(generatorOptions) {
36343
36162
  // one.
36344
36163
 
36345
36164
  function runModifierEffects() {
36346
- state.orderedModifiers.forEach(function (_ref3) {
36347
- var name = _ref3.name,
36348
- _ref3$options = _ref3.options,
36349
- options = _ref3$options === void 0 ? {} : _ref3$options,
36350
- effect = _ref3.effect;
36165
+ state.orderedModifiers.forEach(function (_ref) {
36166
+ var name = _ref.name,
36167
+ _ref$options = _ref.options,
36168
+ options = _ref$options === void 0 ? {} : _ref$options,
36169
+ effect = _ref.effect;
36351
36170
 
36352
36171
  if (typeof effect === 'function') {
36353
36172
  var cleanupFn = effect({
@@ -36789,12 +36608,12 @@ var esm = /*#__PURE__*/Object.freeze({
36789
36608
  usePopper: usePopper
36790
36609
  });
36791
36610
 
36792
- var styles$a = {"filterPopover":"FilterPopover-module_filterPopover__OgOEM"};
36611
+ var styles$i = {"filterPopover":"FilterPopover-module_filterPopover__OgOEM"};
36793
36612
 
36794
36613
  var FilterPopover = function(_a) {
36795
- var children = _a.children, referenceElement = _a.referenceElement, popperOptions = _a.popperOptions, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["children", "referenceElement", "popperOptions", "classNameOverride"]);
36614
+ var children = _a.children, referenceElement = _a.referenceElement, popperOptions = _a.popperOptions, classNameOverride = _a.classNameOverride, restProps = __rest$3(_a, ["children", "referenceElement", "popperOptions", "classNameOverride"]);
36796
36615
  var _b = useState(null), popperElement = _b[0], setPopperElement = _b[1];
36797
- var _c = usePopper(referenceElement, popperElement, __assign$1({ modifiers: [
36616
+ var _c = usePopper(referenceElement, popperElement, __assign$3({ modifiers: [
36798
36617
  {
36799
36618
  name: "offset",
36800
36619
  options: {
@@ -36802,13 +36621,13 @@ var FilterPopover = function(_a) {
36802
36621
  }
36803
36622
  }
36804
36623
  ], placement: "bottom-start", strategy: "fixed" }, popperOptions)), popperStyles = _c.styles, popperAttributes = _c.attributes;
36805
- return React__default.createElement("div", __assign$1({ ref: setPopperElement, style: popperStyles === null || popperStyles === void 0 ? void 0 : popperStyles.popper }, popperAttributes === null || popperAttributes === void 0 ? void 0 : popperAttributes.popper, { className: classnames(styles$a.filterPopover, classNameOverride), role: "dialog", "aria-modal": "true" }, restProps), children);
36624
+ return React__default.createElement("div", __assign$3({ ref: setPopperElement, style: popperStyles === null || popperStyles === void 0 ? void 0 : popperStyles.popper }, popperAttributes === null || popperAttributes === void 0 ? void 0 : popperAttributes.popper, { className: classnames(styles$i.filterPopover, classNameOverride), role: "dialog", "aria-modal": "true" }, restProps), children);
36806
36625
  };
36807
36626
  FilterPopover.displayName = "FilterPopover";
36808
36627
 
36809
36628
  var Filter = function(_a) {
36810
36629
  var _b, _c, _d, _e, _f;
36811
- var children = _a.children, isOpen = _a.isOpen, setIsOpen = _a.setIsOpen, renderTrigger = _a.renderTrigger, classNameOverride = _a.classNameOverride, onMount = _a.onMount, restProps = __rest$1(_a, ["children", "isOpen", "setIsOpen", "renderTrigger", "classNameOverride", "onMount"]);
36630
+ var children = _a.children, isOpen = _a.isOpen, setIsOpen = _a.setIsOpen, renderTrigger = _a.renderTrigger, classNameOverride = _a.classNameOverride, onMount = _a.onMount, restProps = __rest$3(_a, ["children", "isOpen", "setIsOpen", "renderTrigger", "classNameOverride", "onMount"]);
36812
36631
  var _g = useState(false), isRefLoaded = _g[0], setIsRefLoaded = _g[1];
36813
36632
  var trigger = renderTrigger({
36814
36633
  onClick: function() {
@@ -36830,7 +36649,7 @@ var Filter = function(_a) {
36830
36649
  }, [(_d = (_c = filterButtonRef.current) === null || _c === void 0 ? void 0 : _c.triggerRef) === null || _d === void 0 ? void 0 : _d.current, onMount]);
36831
36650
  return React__default.createElement(
36832
36651
  "div",
36833
- __assign$1({ className: classNameOverride }, restProps),
36652
+ __assign$3({ className: classNameOverride }, restProps),
36834
36653
  React__default.cloneElement(trigger, {
36835
36654
  ref: filterButtonRef
36836
36655
  }),
@@ -36847,11 +36666,11 @@ var Filter = function(_a) {
36847
36666
  };
36848
36667
  Filter.displayName = "Filter";
36849
36668
 
36850
- var styles$9 = {"filterContents":"FilterContents-module_filterContents__uNUpd"};
36669
+ var styles$h = {"filterContents":"FilterContents-module_filterContents__uNUpd"};
36851
36670
 
36852
36671
  var FilterContents = function(_a) {
36853
- var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["children", "classNameOverride"]);
36854
- return React__default.createElement("div", __assign$1({ className: classnames(styles$9.filterContents, classNameOverride) }, restProps), children);
36672
+ var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$3(_a, ["children", "classNameOverride"]);
36673
+ return React__default.createElement("div", __assign$3({ className: classnames(styles$h.filterContents, classNameOverride) }, restProps), children);
36855
36674
  };
36856
36675
  FilterContents.displayName = "FilterContents";
36857
36676
 
@@ -36864,11 +36683,11 @@ var singleLine = function(message) {
36864
36683
  return message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
36865
36684
  };
36866
36685
 
36867
- var styles$8 = {"icon":"SVG-module_icon__FE6iP","inheritSize":"SVG-module_inheritSize__wiKMe","interactiveIconWrapper":"SVG-module_interactiveIconWrapper__ACcob","disabled":"SVG-module_disabled__WB5BU","hover":"SVG-module_hover__QivVO","active":"SVG-module_active__R9jic","reversedInteractiveIconWrapper":"SVG-module_reversedInteractiveIconWrapper__hTsnf SVG-module_interactiveIconWrapper__ACcob"};
36686
+ var styles$g = {"icon":"SVG-module_icon__FE6iP","inheritSize":"SVG-module_inheritSize__wiKMe","interactiveIconWrapper":"SVG-module_interactiveIconWrapper__ACcob","disabled":"SVG-module_disabled__WB5BU","hover":"SVG-module_hover__QivVO","active":"SVG-module_active__R9jic","reversedInteractiveIconWrapper":"SVG-module_reversedInteractiveIconWrapper__hTsnf SVG-module_interactiveIconWrapper__ACcob"};
36868
36687
 
36869
36688
  var SVG = function(_a) {
36870
36689
  var _b;
36871
- var _c = _a.inheritSize, inheritSize = _c === void 0 ? false : _c, _d = _a.role, role = _d === void 0 ? "img" : _d, _e = _a.title, title = _e === void 0 ? "" : _e, _f = _a.desc, desc = _f === void 0 ? "" : _f, _g = _a.viewBox, viewBox = _g === void 0 ? "0 0 20 20" : _g, classNameOverride = _a.classNameOverride, children = _a.children, props = __rest$1(_a, ["inheritSize", "role", "title", "desc", "viewBox", "classNameOverride", "children"]);
36690
+ var _c = _a.inheritSize, inheritSize = _c === void 0 ? false : _c, _d = _a.role, role = _d === void 0 ? "img" : _d, _e = _a.title, title = _e === void 0 ? "" : _e, _f = _a.desc, desc = _f === void 0 ? "" : _f, _g = _a.viewBox, viewBox = _g === void 0 ? "0 0 20 20" : _g, classNameOverride = _a.classNameOverride, children = _a.children, props = __rest$3(_a, ["inheritSize", "role", "title", "desc", "viewBox", "classNameOverride", "children"]);
36872
36691
  var isMeaningfulImg = role === "img";
36873
36692
  if (isMeaningfulImg && !title) {
36874
36693
  warn(`
@@ -36895,8 +36714,8 @@ var SVG = function(_a) {
36895
36714
  }, _b["aria-hidden"] = isMeaningfulImg ? void 0 : true, _b);
36896
36715
  return React__default.createElement(
36897
36716
  "svg",
36898
- __assign$1({
36899
- className: classnames(styles$8.icon, classNameOverride, inheritSize && styles$8.inheritSize),
36717
+ __assign$3({
36718
+ className: classnames(styles$g.icon, classNameOverride, inheritSize && styles$g.inheritSize),
36900
36719
  viewBox,
36901
36720
  // Work around IE11 making all SVGs focusable.
36902
36721
  // See http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4
@@ -36912,7 +36731,7 @@ SVG.displayName = "SVG";
36912
36731
  var ChevronDownIcon = function(props) {
36913
36732
  return React__default.createElement(
36914
36733
  SVG,
36915
- __assign$1({}, props),
36734
+ __assign$3({}, props),
36916
36735
  React__default.createElement(
36917
36736
  "defs",
36918
36737
  null,
@@ -36938,7 +36757,7 @@ var ChevronDownIcon = function(props) {
36938
36757
  var ChevronUpIcon = function(props) {
36939
36758
  return React__default.createElement(
36940
36759
  SVG,
36941
- __assign$1({}, props),
36760
+ __assign$3({}, props),
36942
36761
  React__default.createElement(
36943
36762
  "defs",
36944
36763
  null,
@@ -36965,32 +36784,32 @@ var isRefObject = function(ref) {
36965
36784
  return ref !== null && "current" in ref;
36966
36785
  };
36967
36786
 
36968
- var styles$7 = {"filterButtonBase":"FilterButtonBase-module_filterButtonBase__505sK"};
36787
+ var styles$f = {"filterButtonBase":"FilterButtonBase-module_filterButtonBase__505sK"};
36969
36788
 
36970
36789
  var FilterButtonBase = forwardRef(function(_a, ref) {
36971
- var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["children", "classNameOverride"]);
36972
- return React__default.createElement("button", __assign$1({ ref, type: "button", className: classnames(styles$7.filterButtonBase, classNameOverride) }, restProps), children);
36790
+ var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$3(_a, ["children", "classNameOverride"]);
36791
+ return React__default.createElement("button", __assign$3({ ref, type: "button", className: classnames(styles$f.filterButtonBase, classNameOverride) }, restProps), children);
36973
36792
  });
36974
36793
  FilterButtonBase.displayName = "FilterButtonBase";
36975
36794
 
36976
- var styles$6 = {"filterButton":"FilterButton-module_filterButton__Q2dMX","labelContainer":"FilterButton-module_labelContainer__5G-MD","hasSelectedValues":"FilterButton-module_hasSelectedValues__dyQkL","labelSeparator":"FilterButton-module_labelSeparator__xrkAx"};
36795
+ var styles$e = {"filterButton":"FilterButton-module_filterButton__Q2dMX","labelContainer":"FilterButton-module_labelContainer__5G-MD","hasSelectedValues":"FilterButton-module_hasSelectedValues__dyQkL","labelSeparator":"FilterButton-module_labelSeparator__xrkAx"};
36977
36796
 
36978
36797
  var FilterButton = forwardRef(function(_a, ref) {
36979
- var label = _a.label, selectedValue = _a.selectedValue, _b = _a.isOpen, isOpen = _b === void 0 ? false : _b, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["label", "selectedValue", "isOpen", "classNameOverride"]);
36798
+ var label = _a.label, selectedValue = _a.selectedValue, _b = _a.isOpen, isOpen = _b === void 0 ? false : _b, classNameOverride = _a.classNameOverride, restProps = __rest$3(_a, ["label", "selectedValue", "isOpen", "classNameOverride"]);
36980
36799
  var customRefObject = isRefObject(ref) ? ref.current : null;
36981
36800
  var triggerRef = customRefObject === null || customRefObject === void 0 ? void 0 : customRefObject.triggerRef;
36982
36801
  var selectedValuesLabel = selectedValue;
36983
36802
  return React__default.createElement(
36984
36803
  FilterButtonBase,
36985
- __assign$1({ ref: triggerRef, classNameOverride: classnames(styles$6.filterButton, classNameOverride), "aria-haspopup": "true", "aria-expanded": isOpen }, restProps),
36986
- React__default.createElement("span", { className: styles$6.labelContainer }, selectedValuesLabel ? React__default.createElement(
36804
+ __assign$3({ ref: triggerRef, classNameOverride: classnames(styles$e.filterButton, classNameOverride), "aria-haspopup": "true", "aria-expanded": isOpen }, restProps),
36805
+ React__default.createElement("span", { className: styles$e.labelContainer }, selectedValuesLabel ? React__default.createElement(
36987
36806
  React__default.Fragment,
36988
36807
  null,
36989
36808
  React__default.createElement(
36990
36809
  "span",
36991
- { className: styles$6.hasSelectedValues },
36810
+ { className: styles$e.hasSelectedValues },
36992
36811
  React__default.createElement("span", null, label),
36993
- React__default.createElement("span", { className: styles$6.labelSeparator }, ":")
36812
+ React__default.createElement("span", { className: styles$e.labelSeparator }, ":")
36994
36813
  ),
36995
36814
  React__default.createElement("span", null, selectedValuesLabel)
36996
36815
  ) : label),
@@ -37005,7 +36824,7 @@ var Tooltip$1 = {};
37005
36824
 
37006
36825
  var Tooltip = {};
37007
36826
 
37008
- var require$$3$2 = /*@__PURE__*/getAugmentedNamespace(esm);
36827
+ var require$$3$4 = /*@__PURE__*/getAugmentedNamespace(esm);
37009
36828
 
37010
36829
  var AppearanceAnim = {};
37011
36830
 
@@ -37744,10 +37563,10 @@ var require$$1$4 = /*@__PURE__*/getAugmentedNamespace(esmBrowser);
37744
37563
 
37745
37564
  useUuid$1.__esModule = true;
37746
37565
  useUuid$1.useUuid = void 0;
37747
- var react_1$1 = React__default;
37566
+ var react_1$3 = React__default;
37748
37567
  var uuid_1 = require$$1$4;
37749
37568
  var useUuid = function() {
37750
- return (0, react_1$1.useMemo)(function() {
37569
+ return (0, react_1$3.useMemo)(function() {
37751
37570
  return (0, uuid_1.v4)();
37752
37571
  }, []);
37753
37572
  };
@@ -37760,7 +37579,7 @@ var Tooltip_module$1 = /*#__PURE__*/Object.freeze({
37760
37579
  default: Tooltip_module
37761
37580
  });
37762
37581
 
37763
- var require$$6$1 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
37582
+ var require$$6$2 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
37764
37583
 
37765
37584
  (function(exports) {
37766
37585
  var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
@@ -37815,10 +37634,10 @@ var require$$6$1 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
37815
37634
  var react_1 = __importStar(React__default);
37816
37635
  var react_dom_1 = __importDefault(reactDomExports);
37817
37636
  var classnames_1 = __importDefault(classnamesExports);
37818
- var react_popper_1 = require$$3$2;
37637
+ var react_popper_1 = require$$3$4;
37819
37638
  var AppearanceAnim_1 = AppearanceAnim;
37820
37639
  var useUuid_1 = useUuid$1;
37821
- var Tooltip_module_scss_1 = __importDefault(require$$6$1);
37640
+ var Tooltip_module_scss_1 = __importDefault(require$$6$2);
37822
37641
  var positionToPlacement = /* @__PURE__ */ new Map([
37823
37642
  ["above", "top"],
37824
37643
  ["below", "bottom"],
@@ -37996,7 +37815,7 @@ var require$$6$1 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
37996
37815
  var ClearIcon = function(props) {
37997
37816
  return React__default.createElement(
37998
37817
  SVG,
37999
- __assign$1({}, props),
37818
+ __assign$3({}, props),
38000
37819
  React__default.createElement(
38001
37820
  "defs",
38002
37821
  null,
@@ -38019,19 +37838,19 @@ var ClearIcon = function(props) {
38019
37838
  );
38020
37839
  };
38021
37840
 
38022
- var styles$5 = {"buttonGroup":"ButtonGroup-module_buttonGroup__bsy2X","child":"ButtonGroup-module_child__K6AP-","firstChild":"ButtonGroup-module_firstChild__uEn1j","lastChild":"ButtonGroup-module_lastChild__Vicsx"};
37841
+ var styles$d = {"buttonGroup":"ButtonGroup-module_buttonGroup__bsy2X","child":"ButtonGroup-module_child__K6AP-","firstChild":"ButtonGroup-module_firstChild__uEn1j","lastChild":"ButtonGroup-module_lastChild__Vicsx"};
38023
37842
 
38024
37843
  var isFilterButton = function(node) {
38025
37844
  return React__default.isValidElement(node) && node.type === FilterButtonBase;
38026
37845
  };
38027
37846
  var ButtonGroup = function(_a) {
38028
- var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["children", "classNameOverride"]);
37847
+ var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$3(_a, ["children", "classNameOverride"]);
38029
37848
  var childCount = React__default.Children.count(children);
38030
- var containerProps = __assign$1({ role: "group", className: classnames(styles$5.buttonGroup, classNameOverride) }, restProps);
37849
+ var containerProps = __assign$3({ role: "group", className: classnames(styles$d.buttonGroup, classNameOverride) }, restProps);
38031
37850
  if (childCount === 1)
38032
- return React__default.createElement("div", __assign$1({}, containerProps), children);
38033
- return React__default.createElement("div", __assign$1({}, containerProps), React__default.Children.map(children, function(child, index) {
38034
- var buttonClassNames = classnames(styles$5.child, index === 0 && styles$5.firstChild, index === childCount - 1 && styles$5.lastChild, child.props.classNameOverride);
37851
+ return React__default.createElement("div", __assign$3({}, containerProps), children);
37852
+ return React__default.createElement("div", __assign$3({}, containerProps), React__default.Children.map(children, function(child, index) {
37853
+ var buttonClassNames = classnames(styles$d.child, index === 0 && styles$d.firstChild, index === childCount - 1 && styles$d.lastChild, child.props.classNameOverride);
38035
37854
  if (child.type === tooltip.Tooltip) {
38036
37855
  var button = child.props.children;
38037
37856
  if (isFilterButton(button)) {
@@ -38052,20 +37871,20 @@ ButtonGroup.displayName = "ButtonGroup";
38052
37871
 
38053
37872
  var FilterButtonRemovable = forwardRef(function(_a, ref) {
38054
37873
  var _b;
38055
- var triggerButtonProps = _a.triggerButtonProps, removeButtonProps = _a.removeButtonProps, restProps = __rest$1(_a, ["triggerButtonProps", "removeButtonProps"]);
37874
+ var triggerButtonProps = _a.triggerButtonProps, removeButtonProps = _a.removeButtonProps, restProps = __rest$3(_a, ["triggerButtonProps", "removeButtonProps"]);
38056
37875
  var customRefObject = isRefObject(ref) ? ref.current : null;
38057
37876
  var removeButtonRef = customRefObject === null || customRefObject === void 0 ? void 0 : customRefObject.removeButtonRef;
38058
37877
  var removeButtonLabel = (_b = removeButtonProps === null || removeButtonProps === void 0 ? void 0 : removeButtonProps.tooltipText) !== null && _b !== void 0 ? _b : "Remove filter - ".concat(triggerButtonProps === null || triggerButtonProps === void 0 ? void 0 : triggerButtonProps.label);
38059
37878
  return React__default.createElement(
38060
37879
  ButtonGroup,
38061
- __assign$1({}, restProps),
38062
- React__default.createElement(FilterButton, __assign$1({ ref }, triggerButtonProps)),
37880
+ __assign$3({}, restProps),
37881
+ React__default.createElement(FilterButton, __assign$3({ ref }, triggerButtonProps)),
38063
37882
  React__default.createElement(
38064
37883
  tooltip.Tooltip,
38065
37884
  { text: removeButtonLabel, display: "inline-block", position: "below" },
38066
37885
  React__default.createElement(
38067
37886
  FilterButtonBase,
38068
- __assign$1({ ref: removeButtonRef }, removeButtonProps),
37887
+ __assign$3({ ref: removeButtonRef }, removeButtonProps),
38069
37888
  React__default.createElement(ClearIcon, { title: removeButtonLabel })
38070
37889
  )
38071
37890
  )
@@ -38280,34 +38099,45 @@ function $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue) {
38280
38099
  let [value, setValue] = (useState)(defaultValue);
38281
38100
  let valueRef = (useRef)(value);
38282
38101
  let effect = (useRef)(null);
38283
- valueRef.current = value;
38284
- // Store the function in a ref so we can always access the current version
38285
- // which has the proper `value` in scope.
38286
- let nextRef = (useRef)(null);
38287
- nextRef.current = ()=>{
38102
+ // Must be stable so that `queue` is stable.
38103
+ let nextIter = (useCallback)(()=>{
38288
38104
  // Run the generator to the next yield.
38289
38105
  let newValue = effect.current.next();
38106
+ while(!newValue.done && valueRef.current === newValue.value)// If the value is the same as the current value,
38107
+ // then continue to the next yield. Otherwise,
38108
+ // set the value in state and wait for the next layout effect.
38109
+ newValue = effect.current.next();
38290
38110
  // If the generator is done, reset the effect.
38291
38111
  if (newValue.done) {
38292
38112
  effect.current = null;
38293
38113
  return;
38294
38114
  }
38295
- // If the value is the same as the current value,
38296
- // then continue to the next yield. Otherwise,
38297
- // set the value in state and wait for the next layout effect.
38298
- if (value === newValue.value) nextRef.current();
38299
- else setValue(newValue.value);
38300
- };
38115
+ // Always update valueRef when setting the state.
38116
+ // This is needed because the function is not regenerated with the new state value since
38117
+ // they must be stable across renders. Instead, it gets carried in the ref, but the setState
38118
+ // is also needed in order to cause a rerender.
38119
+ setValue(newValue.value);
38120
+ valueRef.current = newValue.value;
38121
+ // this list of dependencies is stable, setState and refs never change after first render.
38122
+ }, [
38123
+ setValue,
38124
+ valueRef,
38125
+ effect
38126
+ ]);
38301
38127
  ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
38302
38128
  // If there is an effect currently running, continue to the next yield.
38303
- if (effect.current) nextRef.current();
38129
+ if (effect.current) nextIter();
38304
38130
  });
38131
+ // queue must be a stable function, much like setState.
38305
38132
  let queue = (useCallback)((fn)=>{
38306
38133
  effect.current = fn(valueRef.current);
38307
- nextRef.current();
38134
+ nextIter();
38135
+ // this list of dependencies is stable, setState and refs never change after first render.
38136
+ // in addition, nextIter is stable as outlined above
38308
38137
  }, [
38138
+ nextIter,
38309
38139
  effect,
38310
- nextRef
38140
+ valueRef
38311
38141
  ]);
38312
38142
  return [
38313
38143
  value,
@@ -38316,7 +38146,7 @@ function $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue) {
38316
38146
  }
38317
38147
 
38318
38148
 
38319
- let $bdb11010cef70236$var$idsUpdaterMap = new Map();
38149
+ let $bdb11010cef70236$var$idsUpdaterMap$1 = new Map();
38320
38150
  function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
38321
38151
  let [value, setValue] = (useState)(defaultId);
38322
38152
  let nextId = (useRef)(null);
@@ -38324,11 +38154,11 @@ function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
38324
38154
  let updateValue = (useCallback)((val)=>{
38325
38155
  nextId.current = val;
38326
38156
  }, []);
38327
- $bdb11010cef70236$var$idsUpdaterMap.set(res, updateValue);
38157
+ $bdb11010cef70236$var$idsUpdaterMap$1.set(res, updateValue);
38328
38158
  ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
38329
38159
  let r = res;
38330
38160
  return ()=>{
38331
- $bdb11010cef70236$var$idsUpdaterMap.delete(r);
38161
+ $bdb11010cef70236$var$idsUpdaterMap$1.delete(r);
38332
38162
  };
38333
38163
  }, [
38334
38164
  res
@@ -38344,14 +38174,14 @@ function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
38344
38174
  });
38345
38175
  return res;
38346
38176
  }
38347
- function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {
38177
+ function $bdb11010cef70236$export$cd8c9cb68f842629$1(idA, idB) {
38348
38178
  if (idA === idB) return idA;
38349
- let setIdA = $bdb11010cef70236$var$idsUpdaterMap.get(idA);
38179
+ let setIdA = $bdb11010cef70236$var$idsUpdaterMap$1.get(idA);
38350
38180
  if (setIdA) {
38351
38181
  setIdA(idB);
38352
38182
  return idB;
38353
38183
  }
38354
- let setIdB = $bdb11010cef70236$var$idsUpdaterMap.get(idB);
38184
+ let setIdB = $bdb11010cef70236$var$idsUpdaterMap$1.get(idB);
38355
38185
  if (setIdB) {
38356
38186
  setIdB(idA);
38357
38187
  return idA;
@@ -38391,7 +38221,7 @@ function $bdb11010cef70236$export$b4cc09c592e8fdb8(depArray = []) {
38391
38221
  * governing permissions and limitations under the License.
38392
38222
  */ /**
38393
38223
  * Calls all functions in the order they were chained with the same arguments.
38394
- */ function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {
38224
+ */ function $ff5963eb1fccf552$export$e08e3b67e392101e$1(...callbacks) {
38395
38225
  return (...args)=>{
38396
38226
  for (let callback of callbacks)if (typeof callback === "function") callback(...args);
38397
38227
  };
@@ -38411,7 +38241,7 @@ function $bdb11010cef70236$export$b4cc09c592e8fdb8(depArray = []) {
38411
38241
  */
38412
38242
 
38413
38243
 
38414
- function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
38244
+ function $3ef42575df84b30b$export$9d1611c77c2fe928$1(...args) {
38415
38245
  // Start with a base clone of the first argument. This is a lot faster than starting
38416
38246
  // with an empty object and adding properties as we go.
38417
38247
  let result = {
@@ -38424,9 +38254,9 @@ function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
38424
38254
  let b = props[key];
38425
38255
  // Chain events
38426
38256
  if (typeof a === "function" && typeof b === "function" && // This is a lot faster than a regex.
38427
- key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = ($ff5963eb1fccf552$export$e08e3b67e392101e)(a, b);
38257
+ key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = ($ff5963eb1fccf552$export$e08e3b67e392101e$1)(a, b);
38428
38258
  else if ((key === "className" || key === "UNSAFE_className") && typeof a === "string" && typeof b === "string") result[key] = (clsx)(a, b);
38429
- else if (key === "id" && a && b) result.id = ($bdb11010cef70236$export$cd8c9cb68f842629)(a, b);
38259
+ else if (key === "id" && a && b) result.id = ($bdb11010cef70236$export$cd8c9cb68f842629$1)(a, b);
38430
38260
  else result[key] = b !== undefined ? b : a;
38431
38261
  }
38432
38262
  }
@@ -38543,17 +38373,17 @@ function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {
38543
38373
  // bugs, e.g. Chrome sometimes fires both transitionend and transitioncancel rather
38544
38374
  // than one or the other. So we need to track what's actually transitioning so that
38545
38375
  // we can ignore these duplicate events.
38546
- let $bbed8b41f857bcc0$var$transitionsByElement = new Map();
38376
+ let $bbed8b41f857bcc0$var$transitionsByElement$1 = new Map();
38547
38377
  // A list of callbacks to call once there are no transitioning elements.
38548
- let $bbed8b41f857bcc0$var$transitionCallbacks = new Set();
38549
- function $bbed8b41f857bcc0$var$setupGlobalEvents() {
38378
+ let $bbed8b41f857bcc0$var$transitionCallbacks$1 = new Set();
38379
+ function $bbed8b41f857bcc0$var$setupGlobalEvents$1() {
38550
38380
  if (typeof window === "undefined") return;
38551
38381
  let onTransitionStart = (e)=>{
38552
38382
  // Add the transitioning property to the list for this element.
38553
- let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
38383
+ let transitions = $bbed8b41f857bcc0$var$transitionsByElement$1.get(e.target);
38554
38384
  if (!transitions) {
38555
38385
  transitions = new Set();
38556
- $bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions);
38386
+ $bbed8b41f857bcc0$var$transitionsByElement$1.set(e.target, transitions);
38557
38387
  // The transitioncancel event must be registered on the element itself, rather than as a global
38558
38388
  // event. This enables us to handle when the node is deleted from the document while it is transitioning.
38559
38389
  // In that case, the cancel event would have nowhere to bubble to so we need to handle it directly.
@@ -38563,34 +38393,34 @@ function $bbed8b41f857bcc0$var$setupGlobalEvents() {
38563
38393
  };
38564
38394
  let onTransitionEnd = (e)=>{
38565
38395
  // Remove property from list of transitioning properties.
38566
- let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
38396
+ let properties = $bbed8b41f857bcc0$var$transitionsByElement$1.get(e.target);
38567
38397
  if (!properties) return;
38568
38398
  properties.delete(e.propertyName);
38569
38399
  // If empty, remove transitioncancel event, and remove the element from the list of transitioning elements.
38570
38400
  if (properties.size === 0) {
38571
38401
  e.target.removeEventListener("transitioncancel", onTransitionEnd);
38572
- $bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);
38402
+ $bbed8b41f857bcc0$var$transitionsByElement$1.delete(e.target);
38573
38403
  }
38574
38404
  // If no transitioning elements, call all of the queued callbacks.
38575
- if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {
38576
- for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks)cb();
38577
- $bbed8b41f857bcc0$var$transitionCallbacks.clear();
38405
+ if ($bbed8b41f857bcc0$var$transitionsByElement$1.size === 0) {
38406
+ for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks$1)cb();
38407
+ $bbed8b41f857bcc0$var$transitionCallbacks$1.clear();
38578
38408
  }
38579
38409
  };
38580
38410
  document.body.addEventListener("transitionrun", onTransitionStart);
38581
38411
  document.body.addEventListener("transitionend", onTransitionEnd);
38582
38412
  }
38583
38413
  if (typeof document !== "undefined") {
38584
- if (document.readyState !== "loading") $bbed8b41f857bcc0$var$setupGlobalEvents();
38585
- else document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents);
38414
+ if (document.readyState !== "loading") $bbed8b41f857bcc0$var$setupGlobalEvents$1();
38415
+ else document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents$1);
38586
38416
  }
38587
38417
  function $bbed8b41f857bcc0$export$24490316f764c430(fn) {
38588
38418
  // Wait one frame to see if an animation starts, e.g. a transition on mount.
38589
38419
  requestAnimationFrame(()=>{
38590
38420
  // If no transitions are running, call the function immediately.
38591
38421
  // Otherwise, add it to a list of callbacks to run at the end of the animation.
38592
- if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) fn();
38593
- else $bbed8b41f857bcc0$var$transitionCallbacks.add(fn);
38422
+ if ($bbed8b41f857bcc0$var$transitionsByElement$1.size === 0) fn();
38423
+ else $bbed8b41f857bcc0$var$transitionCallbacks$1.add(fn);
38594
38424
  });
38595
38425
  }
38596
38426
 
@@ -39115,7 +38945,7 @@ function $f6c31cce2adf654f$var$usePressResponderContext(props) {
39115
38945
  let context = (useContext)(($ae1eeba8b9eafd08$export$5165eccb35aaadb5));
39116
38946
  if (context) {
39117
38947
  let { register: register , ...contextProps } = context;
39118
- props = ($3ef42575df84b30b$export$9d1611c77c2fe928)(contextProps, props);
38948
+ props = ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(contextProps, props);
39119
38949
  register();
39120
38950
  }
39121
38951
  ($e7801be82b4b2a53$export$4debdb1a3f0fa79e)(context, props.ref);
@@ -39494,7 +39324,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
39494
39324
  ]);
39495
39325
  return {
39496
39326
  isPressed: isPressedProp || isPressed,
39497
- pressProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(domProps, pressProps)
39327
+ pressProps: ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(domProps, pressProps)
39498
39328
  };
39499
39329
  }
39500
39330
  function $f6c31cce2adf654f$var$isHTMLAnchorLink(target) {
@@ -40299,7 +40129,7 @@ function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
40299
40129
  });
40300
40130
  let descriptionProps = ($ef06256079686ba0$export$f8aeda7b10753fa1)(onLongPress && !isDisabled ? accessibilityDescription : null);
40301
40131
  return {
40302
- longPressProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(pressProps, descriptionProps)
40132
+ longPressProps: ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(pressProps, descriptionProps)
40303
40133
  };
40304
40134
  }
40305
40135
 
@@ -40767,7 +40597,7 @@ function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain)
40767
40597
  let onFocus = ()=>{
40768
40598
  // If focusing an element in a child scope of the currently active scope, the child becomes active.
40769
40599
  // Moving out of the active scope to an ancestor is not allowed.
40770
- if (!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) $9bf71ea28793e738$var$activeScope = scopeRef;
40600
+ if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(document.activeElement, scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;
40771
40601
  };
40772
40602
  document.addEventListener("focusin", onFocus, false);
40773
40603
  scope.forEach((element)=>element.addEventListener("focusin", onFocus, false));
@@ -41024,7 +40854,7 @@ function $e6afbd83fe6ebbd2$var$useFocusableContext(ref) {
41024
40854
  function $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, domRef) {
41025
40855
  let { focusProps: focusProps } = ($a1ea59d68270f0dd$export$f8168d8dd8fd66e6)(props);
41026
40856
  let { keyboardProps: keyboardProps } = ($46d819fcbaf35654$export$8f71654801c2f7cd)(props);
41027
- let interactions = ($3ef42575df84b30b$export$9d1611c77c2fe928)(focusProps, keyboardProps);
40857
+ let interactions = ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(focusProps, keyboardProps);
41028
40858
  let domProps = $e6afbd83fe6ebbd2$var$useFocusableContext(domRef);
41029
40859
  let interactionProps = props.isDisabled ? {} : domProps;
41030
40860
  let autoFocusRef = (useRef)(props.autoFocus);
@@ -41035,7 +40865,7 @@ function $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, domRef) {
41035
40865
  domRef
41036
40866
  ]);
41037
40867
  return {
41038
- focusableProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)({
40868
+ focusableProps: ($3ef42575df84b30b$export$9d1611c77c2fe928$1)({
41039
40869
  ...interactions,
41040
40870
  tabIndex: props.excludeFromTabOrder && !props.isDisabled ? -1 : undefined
41041
40871
  }, interactionProps)
@@ -41097,12 +40927,12 @@ function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
41097
40927
  });
41098
40928
  let { focusableProps: focusableProps } = ($e6afbd83fe6ebbd2$export$4c014de7c8940b4c)(props, ref);
41099
40929
  if (allowFocusWhenDisabled) focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;
41100
- let buttonProps = ($3ef42575df84b30b$export$9d1611c77c2fe928)(focusableProps, pressProps, ($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props, {
40930
+ let buttonProps = ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(focusableProps, pressProps, ($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props, {
41101
40931
  labelable: true
41102
40932
  }));
41103
40933
  return {
41104
40934
  isPressed: isPressed,
41105
- buttonProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(additionalProps, buttonProps, {
40935
+ buttonProps: ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(additionalProps, buttonProps, {
41106
40936
  "aria-haspopup": props["aria-haspopup"],
41107
40937
  "aria-expanded": props["aria-expanded"],
41108
40938
  "aria-controls": props["aria-controls"],
@@ -41499,7 +41329,7 @@ function $fb3050f43d946246$export$e32c88dfddc6e1d8(options) {
41499
41329
  }).current;
41500
41330
  let onKeyDown = (e)=>{
41501
41331
  let character = $fb3050f43d946246$var$getStringForKey(e.key);
41502
- if (!character || e.ctrlKey || e.metaKey) return;
41332
+ if (!character || e.ctrlKey || e.metaKey || !e.currentTarget.contains(e.target)) return;
41503
41333
  // Do not propagate the Spacebar event if it's meant to be part of the search.
41504
41334
  // When we time out, the search term becomes empty, hence the check on length.
41505
41335
  // Trimming is to account for the case of pressing the Spacebar more than once,
@@ -41579,15 +41409,19 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
41579
41409
  break;
41580
41410
  case "ArrowLeft":
41581
41411
  if (delegate.getKeyLeftOf) {
41412
+ var _delegate_getFirstKey2, _delegate_getLastKey2;
41582
41413
  e.preventDefault();
41583
41414
  let nextKey2 = delegate.getKeyLeftOf(manager.focusedKey);
41415
+ if (nextKey2 == null && shouldFocusWrap) nextKey2 = direction === "rtl" ? (_delegate_getFirstKey2 = delegate.getFirstKey) === null || _delegate_getFirstKey2 === void 0 ? void 0 : _delegate_getFirstKey2.call(delegate, manager.focusedKey) : (_delegate_getLastKey2 = delegate.getLastKey) === null || _delegate_getLastKey2 === void 0 ? void 0 : _delegate_getLastKey2.call(delegate, manager.focusedKey);
41584
41416
  navigateToKey(nextKey2, direction === "rtl" ? "first" : "last");
41585
41417
  }
41586
41418
  break;
41587
41419
  case "ArrowRight":
41588
41420
  if (delegate.getKeyRightOf) {
41421
+ var _delegate_getLastKey3, _delegate_getFirstKey3;
41589
41422
  e.preventDefault();
41590
41423
  let nextKey3 = delegate.getKeyRightOf(manager.focusedKey);
41424
+ if (nextKey3 == null && shouldFocusWrap) nextKey3 = direction === "rtl" ? (_delegate_getLastKey3 = delegate.getLastKey) === null || _delegate_getLastKey3 === void 0 ? void 0 : _delegate_getLastKey3.call(delegate, manager.focusedKey) : (_delegate_getFirstKey3 = delegate.getFirstKey) === null || _delegate_getFirstKey3 === void 0 ? void 0 : _delegate_getFirstKey3.call(delegate, manager.focusedKey);
41591
41425
  navigateToKey(nextKey3, direction === "rtl" ? "last" : "first");
41592
41426
  }
41593
41427
  break;
@@ -41763,7 +41597,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
41763
41597
  keyboardDelegate: delegate,
41764
41598
  selectionManager: manager
41765
41599
  });
41766
- if (!disallowTypeAhead) handlers = ($3ef42575df84b30b$export$9d1611c77c2fe928)(typeSelectProps, handlers);
41600
+ if (!disallowTypeAhead) handlers = ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(typeSelectProps, handlers);
41767
41601
  // If nothing is focused within the collection, make the collection itself tabbable.
41768
41602
  // This will be marshalled to either the first or last item depending on where focus came from.
41769
41603
  // If using virtual focus, don't set a tabIndex at all so that VoiceOver on iOS 14 doesn't try
@@ -41932,7 +41766,7 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
41932
41766
  if (modality.current === "touch" && longPressEnabledOnPressStart.current) e.preventDefault();
41933
41767
  };
41934
41768
  return {
41935
- itemProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(itemProps, allowsSelection || hasPrimaryAction ? pressProps : {}, longPressEnabled ? longPressProps : {}, {
41769
+ itemProps: ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(itemProps, allowsSelection || hasPrimaryAction ? pressProps : {}, longPressEnabled ? longPressProps : {}, {
41936
41770
  onDoubleClick: onDoubleClick,
41937
41771
  onDragStartCapture: onDragStartCapture
41938
41772
  }),
@@ -41975,7 +41809,8 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
41975
41809
  * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
41976
41810
  * OF ANY KIND, either express or implied. See the License for the specific language
41977
41811
  * governing permissions and limitations under the License.
41978
- */ class $2a25aae57d74318e$export$a05409b8bb224a5a {
41812
+ */
41813
+ class $2a25aae57d74318e$export$a05409b8bb224a5a {
41979
41814
  getKeyBelow(key) {
41980
41815
  key = this.collection.getKeyAfter(key);
41981
41816
  while(key != null){
@@ -41994,6 +41829,14 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
41994
41829
  }
41995
41830
  return null;
41996
41831
  }
41832
+ getKeyRightOf(key) {
41833
+ if (this.orientation === "horizontal") return this.direction === "rtl" ? this.getKeyAbove(key) : this.getKeyBelow(key);
41834
+ return null;
41835
+ }
41836
+ getKeyLeftOf(key) {
41837
+ if (this.orientation === "horizontal") return this.direction === "rtl" ? this.getKeyBelow(key) : this.getKeyAbove(key);
41838
+ return null;
41839
+ }
41997
41840
  getFirstKey() {
41998
41841
  let key = this.collection.getFirstKey();
41999
41842
  while(key != null){
@@ -42019,23 +41862,53 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
42019
41862
  let menu = this.ref.current;
42020
41863
  let item = this.getItem(key);
42021
41864
  if (!item) return null;
42022
- let pageY = Math.max(0, item.offsetTop + item.offsetHeight - menu.offsetHeight);
42023
- while(item && item.offsetTop > pageY){
42024
- key = this.getKeyAbove(key);
42025
- item = key == null ? null : this.getItem(key);
41865
+ if (!($62d8ded9296f3872$export$2bb74740c4e19def)(menu)) return this.getFirstKey();
41866
+ let containerRect = menu.getBoundingClientRect();
41867
+ let itemRect = item.getBoundingClientRect();
41868
+ if (this.orientation === "horizontal") {
41869
+ let containerX = containerRect.x - menu.scrollLeft;
41870
+ let pageX = Math.max(0, itemRect.x - containerX + itemRect.width - containerRect.width);
41871
+ while(item && itemRect.x - containerX > pageX){
41872
+ key = this.getKeyAbove(key);
41873
+ item = key == null ? null : this.getItem(key);
41874
+ itemRect = item === null || item === void 0 ? void 0 : item.getBoundingClientRect();
41875
+ }
41876
+ } else {
41877
+ let containerY = containerRect.y - menu.scrollTop;
41878
+ let pageY = Math.max(0, itemRect.y - containerY + itemRect.height - containerRect.height);
41879
+ while(item && itemRect.y - containerY > pageY){
41880
+ key = this.getKeyAbove(key);
41881
+ item = key == null ? null : this.getItem(key);
41882
+ itemRect = item === null || item === void 0 ? void 0 : item.getBoundingClientRect();
41883
+ }
42026
41884
  }
42027
- return key;
41885
+ return key !== null && key !== void 0 ? key : this.getFirstKey();
42028
41886
  }
42029
41887
  getKeyPageBelow(key) {
42030
41888
  let menu = this.ref.current;
42031
41889
  let item = this.getItem(key);
42032
41890
  if (!item) return null;
42033
- let pageY = Math.min(menu.scrollHeight, item.offsetTop - item.offsetHeight + menu.offsetHeight);
42034
- while(item && item.offsetTop < pageY){
42035
- key = this.getKeyBelow(key);
42036
- item = key == null ? null : this.getItem(key);
41891
+ if (!($62d8ded9296f3872$export$2bb74740c4e19def)(menu)) return this.getLastKey();
41892
+ let containerRect = menu.getBoundingClientRect();
41893
+ let itemRect = item.getBoundingClientRect();
41894
+ if (this.orientation === "horizontal") {
41895
+ let containerX = containerRect.x - menu.scrollLeft;
41896
+ let pageX = Math.min(menu.scrollWidth, itemRect.x - containerX - itemRect.width + containerRect.width);
41897
+ while(item && itemRect.x - containerX < pageX){
41898
+ key = this.getKeyBelow(key);
41899
+ item = key == null ? null : this.getItem(key);
41900
+ itemRect = item === null || item === void 0 ? void 0 : item.getBoundingClientRect();
41901
+ }
41902
+ } else {
41903
+ let containerY = containerRect.y - menu.scrollTop;
41904
+ let pageY = Math.min(menu.scrollHeight, itemRect.y - containerY - itemRect.height + containerRect.height);
41905
+ while(item && itemRect.y - containerY < pageY){
41906
+ key = this.getKeyBelow(key);
41907
+ item = key == null ? null : this.getItem(key);
41908
+ itemRect = item === null || item === void 0 ? void 0 : item.getBoundingClientRect();
41909
+ }
42037
41910
  }
42038
- return key;
41911
+ return key !== null && key !== void 0 ? key : this.getLastKey();
42039
41912
  }
42040
41913
  getKeyForSearch(search, fromKey) {
42041
41914
  if (!this.collator) return null;
@@ -42049,11 +41922,20 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
42049
41922
  }
42050
41923
  return null;
42051
41924
  }
42052
- constructor(collection, disabledKeys, ref, collator){
42053
- this.collection = collection;
42054
- this.disabledKeys = disabledKeys;
42055
- this.ref = ref;
42056
- this.collator = collator;
41925
+ constructor(...args){
41926
+ if (args.length === 1) {
41927
+ let opts = args[0];
41928
+ this.collection = opts.collection;
41929
+ this.ref = opts.ref;
41930
+ this.disabledKeys = opts.disabledKeys || new Set();
41931
+ this.orientation = opts.orientation;
41932
+ this.direction = opts.direction;
41933
+ } else {
41934
+ this.collection = args[0];
41935
+ this.disabledKeys = args[1];
41936
+ this.ref = args[2];
41937
+ this.collator = args[3];
41938
+ }
42057
41939
  }
42058
41940
  }
42059
41941
 
@@ -42165,7 +42047,7 @@ function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
42165
42047
  Boolean(errorMessage),
42166
42048
  validationState
42167
42049
  ]);
42168
- fieldProps = ($3ef42575df84b30b$export$9d1611c77c2fe928)(fieldProps, {
42050
+ fieldProps = ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(fieldProps, {
42169
42051
  "aria-describedby": [
42170
42052
  descriptionId,
42171
42053
  // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
@@ -42250,7 +42132,7 @@ function $5c3e21d68f1c4674$export$439d29a4e110a164(props) {
42250
42132
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
42251
42133
  let { children: children , elementType: Element = "div" , isFocusable: isFocusable , style: style , ...otherProps } = props;
42252
42134
  let { visuallyHiddenProps: visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab(props);
42253
- return /*#__PURE__*/ (React__default).createElement(Element, ($3ef42575df84b30b$export$9d1611c77c2fe928)(otherProps, visuallyHiddenProps), children);
42135
+ return /*#__PURE__*/ (React__default).createElement(Element, ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(otherProps, visuallyHiddenProps), children);
42254
42136
  }
42255
42137
 
42256
42138
  function $parcel$interopDefault$1(a) {
@@ -42723,308 +42605,197 @@ new WeakMap();
42723
42605
  * OF ANY KIND, either express or implied. See the License for the specific language
42724
42606
  * governing permissions and limitations under the License.
42725
42607
  */
42726
- function $c1d7fb2ec91bae71$var$Item(props) {
42727
- return null;
42608
+
42609
+ class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
42610
+ build(props, context) {
42611
+ this.context = context;
42612
+ return $eb2240fc39a57fa5$var$iterable(()=>this.iterateCollection(props));
42613
+ }
42614
+ *iterateCollection(props) {
42615
+ let { children: children , items: items } = props;
42616
+ if (typeof children === "function") {
42617
+ if (!items) throw new Error("props.children was a function but props.items is missing");
42618
+ for (let item of props.items)yield* this.getFullNode({
42619
+ value: item
42620
+ }, {
42621
+ renderer: children
42622
+ });
42623
+ } else {
42624
+ let items1 = [];
42625
+ (React__default).Children.forEach(children, (child)=>{
42626
+ items1.push(child);
42627
+ });
42628
+ let index = 0;
42629
+ for (let item1 of items1){
42630
+ let nodes = this.getFullNode({
42631
+ element: item1,
42632
+ index: index
42633
+ }, {});
42634
+ for (let node of nodes){
42635
+ index++;
42636
+ yield node;
42637
+ }
42638
+ }
42639
+ }
42640
+ }
42641
+ getKey(item, partialNode, state, parentKey) {
42642
+ if (item.key != null) return item.key;
42643
+ if (partialNode.type === "cell" && partialNode.key != null) return `${parentKey}${partialNode.key}`;
42644
+ let v = partialNode.value;
42645
+ if (v != null) {
42646
+ var _v_key;
42647
+ let key = (_v_key = v.key) !== null && _v_key !== void 0 ? _v_key : v.id;
42648
+ if (key == null) throw new Error("No key found for item");
42649
+ return key;
42650
+ }
42651
+ return parentKey ? `${parentKey}.${partialNode.index}` : `$.${partialNode.index}`;
42652
+ }
42653
+ getChildState(state, partialNode) {
42654
+ return {
42655
+ renderer: partialNode.renderer || state.renderer
42656
+ };
42657
+ }
42658
+ *getFullNode(partialNode, state, parentKey, parentNode) {
42659
+ // If there's a value instead of an element on the node, and a parent renderer function is available,
42660
+ // use it to render an element for the value.
42661
+ let element = partialNode.element;
42662
+ if (!element && partialNode.value && state && state.renderer) {
42663
+ let cached = this.cache.get(partialNode.value);
42664
+ if (cached && (!cached.shouldInvalidate || !cached.shouldInvalidate(this.context))) {
42665
+ cached.index = partialNode.index;
42666
+ cached.parentKey = parentNode ? parentNode.key : null;
42667
+ yield cached;
42668
+ return;
42669
+ }
42670
+ element = state.renderer(partialNode.value);
42671
+ }
42672
+ // If there's an element with a getCollectionNode function on its type, then it's a supported component.
42673
+ // Call this function to get a partial node, and recursively build a full node from there.
42674
+ if ((React__default).isValidElement(element)) {
42675
+ let type = element.type;
42676
+ if (typeof type !== "function" && typeof type.getCollectionNode !== "function") {
42677
+ let name = typeof element.type === "function" ? element.type.name : element.type;
42678
+ throw new Error(`Unknown element <${name}> in collection.`);
42679
+ }
42680
+ let childNodes = type.getCollectionNode(element.props, this.context);
42681
+ let index = partialNode.index;
42682
+ let result = childNodes.next();
42683
+ while(!result.done && result.value){
42684
+ let childNode = result.value;
42685
+ partialNode.index = index;
42686
+ let nodeKey = childNode.key;
42687
+ if (!nodeKey) nodeKey = childNode.element ? null : this.getKey(element, partialNode, state, parentKey);
42688
+ let nodes = this.getFullNode({
42689
+ ...childNode,
42690
+ key: nodeKey,
42691
+ index: index,
42692
+ wrapper: $eb2240fc39a57fa5$var$compose(partialNode.wrapper, childNode.wrapper)
42693
+ }, this.getChildState(state, childNode), parentKey ? `${parentKey}${element.key}` : element.key, parentNode);
42694
+ let children = [
42695
+ ...nodes
42696
+ ];
42697
+ for (let node of children){
42698
+ // Cache the node based on its value
42699
+ node.value = childNode.value || partialNode.value;
42700
+ if (node.value) this.cache.set(node.value, node);
42701
+ // The partial node may have specified a type for the child in order to specify a constraint.
42702
+ // Verify that the full node that was built recursively matches this type.
42703
+ if (partialNode.type && node.type !== partialNode.type) throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(node.type)}> in <${$eb2240fc39a57fa5$var$capitalize(parentNode.type)}>. Only <${$eb2240fc39a57fa5$var$capitalize(partialNode.type)}> is supported.`);
42704
+ index++;
42705
+ yield node;
42706
+ }
42707
+ result = childNodes.next(children);
42708
+ }
42709
+ return;
42710
+ }
42711
+ // Ignore invalid elements
42712
+ if (partialNode.key == null) return;
42713
+ // Create full node
42714
+ let builder = this;
42715
+ let node1 = {
42716
+ type: partialNode.type,
42717
+ props: partialNode.props,
42718
+ key: partialNode.key,
42719
+ parentKey: parentNode ? parentNode.key : null,
42720
+ value: partialNode.value,
42721
+ level: parentNode ? parentNode.level + 1 : 0,
42722
+ index: partialNode.index,
42723
+ rendered: partialNode.rendered,
42724
+ textValue: partialNode.textValue,
42725
+ "aria-label": partialNode["aria-label"],
42726
+ wrapper: partialNode.wrapper,
42727
+ shouldInvalidate: partialNode.shouldInvalidate,
42728
+ hasChildNodes: partialNode.hasChildNodes,
42729
+ childNodes: $eb2240fc39a57fa5$var$iterable(function*() {
42730
+ if (!partialNode.hasChildNodes) return;
42731
+ let index = 0;
42732
+ for (let child of partialNode.childNodes()){
42733
+ // Ensure child keys are globally unique by prepending the parent node's key
42734
+ if (child.key != null) // TODO: Remove this line entirely and enforce that users always provide unique keys.
42735
+ // Currently this line will have issues when a parent has a key `a` and a child with key `bc`
42736
+ // but another parent has key `ab` and its child has a key `c`. The combined keys would result in both
42737
+ // children having a key of `abc`.
42738
+ child.key = `${node1.key}${child.key}`;
42739
+ child.index = index;
42740
+ let nodes = builder.getFullNode(child, builder.getChildState(state, child), node1.key, node1);
42741
+ for (let node of nodes){
42742
+ index++;
42743
+ yield node;
42744
+ }
42745
+ }
42746
+ })
42747
+ };
42748
+ yield node1;
42749
+ }
42750
+ constructor(){
42751
+ (_defineProperty)(this, "cache", new WeakMap());
42752
+ }
42728
42753
  }
42729
- $c1d7fb2ec91bae71$var$Item.getCollectionNode = function* getCollectionNode(props, context) {
42730
- let { childItems: childItems , title: title , children: children } = props;
42731
- let rendered = props.title || props.children;
42732
- let textValue = props.textValue || (typeof rendered === "string" ? rendered : "") || props["aria-label"] || "";
42733
- // suppressTextValueWarning is used in components like Tabs, which don't have type to select support.
42734
- if (!textValue && !(context === null || context === void 0 ? void 0 : context.suppressTextValueWarning)) console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.");
42735
- yield {
42736
- type: "item",
42737
- props: props,
42738
- rendered: rendered,
42739
- textValue: textValue,
42740
- "aria-label": props["aria-label"],
42741
- hasChildNodes: $c1d7fb2ec91bae71$var$hasChildItems(props),
42742
- *childNodes () {
42743
- if (childItems) for (let child of childItems)yield {
42744
- type: "item",
42745
- value: child
42746
- };
42747
- else if (title) {
42748
- let items = [];
42749
- (React__default).Children.forEach(children, (child)=>{
42750
- items.push({
42751
- type: "item",
42752
- element: child
42753
- });
42754
- });
42755
- yield* items;
42754
+ // Wraps an iterator function as an iterable object, and caches the results.
42755
+ function $eb2240fc39a57fa5$var$iterable(iterator) {
42756
+ let cache = [];
42757
+ let iterable = null;
42758
+ return {
42759
+ *[Symbol.iterator] () {
42760
+ for (let item of cache)yield item;
42761
+ if (!iterable) iterable = iterator();
42762
+ for (let item1 of iterable){
42763
+ cache.push(item1);
42764
+ yield item1;
42756
42765
  }
42757
42766
  }
42758
42767
  };
42759
- };
42760
- function $c1d7fb2ec91bae71$var$hasChildItems(props) {
42761
- if (props.hasChildItems != null) return props.hasChildItems;
42762
- if (props.childItems) return true;
42763
- if (props.title && (React__default).Children.count(props.children) > 0) return true;
42764
- return false;
42765
42768
  }
42766
- // We don't want getCollectionNode to show up in the type definition
42767
- let $c1d7fb2ec91bae71$export$6d08773d2e66f8f2 = $c1d7fb2ec91bae71$var$Item;
42769
+ function $eb2240fc39a57fa5$var$compose(outer, inner) {
42770
+ if (outer && inner) return (element)=>outer(inner(element));
42771
+ if (outer) return outer;
42772
+ if (inner) return inner;
42773
+ }
42774
+ function $eb2240fc39a57fa5$var$capitalize(str) {
42775
+ return str[0].toUpperCase() + str.slice(1);
42776
+ }
42768
42777
 
42769
42778
 
42770
- /*
42771
- * Copyright 2020 Adobe. All rights reserved.
42772
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
42773
- * you may not use this file except in compliance with the License. You may obtain a copy
42774
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
42775
- *
42776
- * Unless required by applicable law or agreed to in writing, software distributed under
42777
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
42778
- * OF ANY KIND, either express or implied. See the License for the specific language
42779
- * governing permissions and limitations under the License.
42780
- */
42781
- function $9fc4852771d079eb$var$Section(props) {
42782
- return null;
42783
- }
42784
- $9fc4852771d079eb$var$Section.getCollectionNode = function* getCollectionNode(props) {
42785
- let { children: children , title: title , items: items } = props;
42786
- yield {
42787
- type: "section",
42788
- props: props,
42789
- hasChildNodes: true,
42790
- rendered: title,
42791
- "aria-label": props["aria-label"],
42792
- *childNodes () {
42793
- if (typeof children === "function") {
42794
- if (!items) throw new Error("props.children was a function but props.items is missing");
42795
- for (let item of items)yield {
42796
- type: "item",
42797
- value: item,
42798
- renderer: children
42799
- };
42800
- } else {
42801
- let items1 = [];
42802
- (React__default).Children.forEach(children, (child)=>{
42803
- items1.push({
42804
- type: "item",
42805
- element: child
42806
- });
42807
- });
42808
- yield* items1;
42809
- }
42810
- }
42811
- };
42812
- };
42813
- // We don't want getCollectionNode to show up in the type definition
42814
- let $9fc4852771d079eb$export$6e2c8f0811a474ce = $9fc4852771d079eb$var$Section;
42815
-
42816
-
42817
- /*
42818
- * Copyright 2020 Adobe. All rights reserved.
42819
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
42820
- * you may not use this file except in compliance with the License. You may obtain a copy
42821
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
42822
- *
42823
- * Unless required by applicable law or agreed to in writing, software distributed under
42824
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
42825
- * OF ANY KIND, either express or implied. See the License for the specific language
42826
- * governing permissions and limitations under the License.
42827
- */ /*
42828
- * Copyright 2020 Adobe. All rights reserved.
42829
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
42830
- * you may not use this file except in compliance with the License. You may obtain a copy
42831
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
42832
- *
42833
- * Unless required by applicable law or agreed to in writing, software distributed under
42834
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
42835
- * OF ANY KIND, either express or implied. See the License for the specific language
42836
- * governing permissions and limitations under the License.
42837
- */
42838
-
42839
- class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
42840
- build(props, context) {
42841
- this.context = context;
42842
- return $eb2240fc39a57fa5$var$iterable(()=>this.iterateCollection(props));
42843
- }
42844
- *iterateCollection(props) {
42845
- let { children: children , items: items } = props;
42846
- if (typeof children === "function") {
42847
- if (!items) throw new Error("props.children was a function but props.items is missing");
42848
- for (let item of props.items)yield* this.getFullNode({
42849
- value: item
42850
- }, {
42851
- renderer: children
42852
- });
42853
- } else {
42854
- let items1 = [];
42855
- (React__default).Children.forEach(children, (child)=>{
42856
- items1.push(child);
42857
- });
42858
- let index = 0;
42859
- for (let item1 of items1){
42860
- let nodes = this.getFullNode({
42861
- element: item1,
42862
- index: index
42863
- }, {});
42864
- for (let node of nodes){
42865
- index++;
42866
- yield node;
42867
- }
42868
- }
42869
- }
42870
- }
42871
- getKey(item, partialNode, state, parentKey) {
42872
- if (item.key != null) return item.key;
42873
- if (partialNode.type === "cell" && partialNode.key != null) return `${parentKey}${partialNode.key}`;
42874
- let v = partialNode.value;
42875
- if (v != null) {
42876
- var _v_key;
42877
- let key = (_v_key = v.key) !== null && _v_key !== void 0 ? _v_key : v.id;
42878
- if (key == null) throw new Error("No key found for item");
42879
- return key;
42880
- }
42881
- return parentKey ? `${parentKey}.${partialNode.index}` : `$.${partialNode.index}`;
42882
- }
42883
- getChildState(state, partialNode) {
42884
- return {
42885
- renderer: partialNode.renderer || state.renderer
42886
- };
42887
- }
42888
- *getFullNode(partialNode, state, parentKey, parentNode) {
42889
- // If there's a value instead of an element on the node, and a parent renderer function is available,
42890
- // use it to render an element for the value.
42891
- let element = partialNode.element;
42892
- if (!element && partialNode.value && state && state.renderer) {
42893
- let cached = this.cache.get(partialNode.value);
42894
- if (cached && (!cached.shouldInvalidate || !cached.shouldInvalidate(this.context))) {
42895
- cached.index = partialNode.index;
42896
- cached.parentKey = parentNode ? parentNode.key : null;
42897
- yield cached;
42898
- return;
42899
- }
42900
- element = state.renderer(partialNode.value);
42901
- }
42902
- // If there's an element with a getCollectionNode function on its type, then it's a supported component.
42903
- // Call this function to get a partial node, and recursively build a full node from there.
42904
- if ((React__default).isValidElement(element)) {
42905
- let type = element.type;
42906
- if (typeof type !== "function" && typeof type.getCollectionNode !== "function") {
42907
- let name = typeof element.type === "function" ? element.type.name : element.type;
42908
- throw new Error(`Unknown element <${name}> in collection.`);
42909
- }
42910
- let childNodes = type.getCollectionNode(element.props, this.context);
42911
- let index = partialNode.index;
42912
- let result = childNodes.next();
42913
- while(!result.done && result.value){
42914
- let childNode = result.value;
42915
- partialNode.index = index;
42916
- let nodeKey = childNode.key;
42917
- if (!nodeKey) nodeKey = childNode.element ? null : this.getKey(element, partialNode, state, parentKey);
42918
- let nodes = this.getFullNode({
42919
- ...childNode,
42920
- key: nodeKey,
42921
- index: index,
42922
- wrapper: $eb2240fc39a57fa5$var$compose(partialNode.wrapper, childNode.wrapper)
42923
- }, this.getChildState(state, childNode), parentKey ? `${parentKey}${element.key}` : element.key, parentNode);
42924
- let children = [
42925
- ...nodes
42926
- ];
42927
- for (let node of children){
42928
- // Cache the node based on its value
42929
- node.value = childNode.value || partialNode.value;
42930
- if (node.value) this.cache.set(node.value, node);
42931
- // The partial node may have specified a type for the child in order to specify a constraint.
42932
- // Verify that the full node that was built recursively matches this type.
42933
- if (partialNode.type && node.type !== partialNode.type) throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(node.type)}> in <${$eb2240fc39a57fa5$var$capitalize(parentNode.type)}>. Only <${$eb2240fc39a57fa5$var$capitalize(partialNode.type)}> is supported.`);
42934
- index++;
42935
- yield node;
42936
- }
42937
- result = childNodes.next(children);
42938
- }
42939
- return;
42940
- }
42941
- // Ignore invalid elements
42942
- if (partialNode.key == null) return;
42943
- // Create full node
42944
- let builder = this;
42945
- let node1 = {
42946
- type: partialNode.type,
42947
- props: partialNode.props,
42948
- key: partialNode.key,
42949
- parentKey: parentNode ? parentNode.key : null,
42950
- value: partialNode.value,
42951
- level: parentNode ? parentNode.level + 1 : 0,
42952
- index: partialNode.index,
42953
- rendered: partialNode.rendered,
42954
- textValue: partialNode.textValue,
42955
- "aria-label": partialNode["aria-label"],
42956
- wrapper: partialNode.wrapper,
42957
- shouldInvalidate: partialNode.shouldInvalidate,
42958
- hasChildNodes: partialNode.hasChildNodes,
42959
- childNodes: $eb2240fc39a57fa5$var$iterable(function*() {
42960
- if (!partialNode.hasChildNodes) return;
42961
- let index = 0;
42962
- for (let child of partialNode.childNodes()){
42963
- // Ensure child keys are globally unique by prepending the parent node's key
42964
- if (child.key != null) // TODO: Remove this line entirely and enforce that users always provide unique keys.
42965
- // Currently this line will have issues when a parent has a key `a` and a child with key `bc`
42966
- // but another parent has key `ab` and its child has a key `c`. The combined keys would result in both
42967
- // children having a key of `abc`.
42968
- child.key = `${node1.key}${child.key}`;
42969
- child.index = index;
42970
- let nodes = builder.getFullNode(child, builder.getChildState(state, child), node1.key, node1);
42971
- for (let node of nodes){
42972
- index++;
42973
- yield node;
42974
- }
42975
- }
42976
- })
42977
- };
42978
- yield node1;
42979
- }
42980
- constructor(){
42981
- (_defineProperty)(this, "cache", new WeakMap());
42982
- }
42983
- }
42984
- // Wraps an iterator function as an iterable object, and caches the results.
42985
- function $eb2240fc39a57fa5$var$iterable(iterator) {
42986
- let cache = [];
42987
- let iterable = null;
42988
- return {
42989
- *[Symbol.iterator] () {
42990
- for (let item of cache)yield item;
42991
- if (!iterable) iterable = iterator();
42992
- for (let item1 of iterable){
42993
- cache.push(item1);
42994
- yield item1;
42995
- }
42996
- }
42997
- };
42998
- }
42999
- function $eb2240fc39a57fa5$var$compose(outer, inner) {
43000
- if (outer && inner) return (element)=>outer(inner(element));
43001
- if (outer) return outer;
43002
- if (inner) return inner;
43003
- }
43004
- function $eb2240fc39a57fa5$var$capitalize(str) {
43005
- return str[0].toUpperCase() + str.slice(1);
43006
- }
43007
-
43008
-
43009
-
43010
- function $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context, invalidators = []) {
43011
- let builder = (useMemo)(()=>new ($eb2240fc39a57fa5$export$bf788dd355e3a401)(), []);
43012
- let prev = (useRef)(null);
43013
- return (useMemo)(()=>{
43014
- if (props.collection) return props.collection;
43015
- let nodes = builder.build(props, context);
43016
- prev.current = factory(nodes, prev.current);
43017
- return prev.current;
43018
- // Don't invalidate when any prop changes, just the two we care about.
43019
- // eslint-disable-next-line react-hooks/exhaustive-deps
43020
- }, [
43021
- builder,
43022
- props.children,
43023
- props.items,
43024
- props.collection,
43025
- context,
43026
- ...invalidators
43027
- ]);
42779
+
42780
+ function $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context) {
42781
+ let builder = (useMemo)(()=>new ($eb2240fc39a57fa5$export$bf788dd355e3a401)(), []);
42782
+ let { children: children , items: items , collection: collection } = props;
42783
+ let result = (useMemo)(()=>{
42784
+ if (collection) return collection;
42785
+ let nodes = builder.build({
42786
+ children: children,
42787
+ items: items
42788
+ }, context);
42789
+ return factory(nodes);
42790
+ }, [
42791
+ builder,
42792
+ children,
42793
+ items,
42794
+ collection,
42795
+ context,
42796
+ factory
42797
+ ]);
42798
+ return result;
43028
42799
  }
43029
42800
 
43030
42801
 
@@ -43538,7 +43309,7 @@ function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
43538
43309
  let domProps = ($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props, {
43539
43310
  labelable: true
43540
43311
  });
43541
- let triggerProps = ($3ef42575df84b30b$export$9d1611c77c2fe928)(typeSelectProps, menuTriggerProps, fieldProps);
43312
+ let triggerProps = ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(typeSelectProps, menuTriggerProps, fieldProps);
43542
43313
  let valueId = ($bdb11010cef70236$export$f680877a34711e37)();
43543
43314
  return {
43544
43315
  labelProps: {
@@ -43551,10 +43322,10 @@ function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
43551
43322
  }
43552
43323
  }
43553
43324
  },
43554
- triggerProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(domProps, {
43325
+ triggerProps: ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(domProps, {
43555
43326
  ...triggerProps,
43556
43327
  isDisabled: isDisabled,
43557
- onKeyDown: ($ff5963eb1fccf552$export$e08e3b67e392101e)(triggerProps.onKeyDown, onKeyDown, props.onKeyDown),
43328
+ onKeyDown: ($ff5963eb1fccf552$export$e08e3b67e392101e$1)(triggerProps.onKeyDown, onKeyDown, props.onKeyDown),
43558
43329
  onKeyUp: props.onKeyUp,
43559
43330
  "aria-labelledby": [
43560
43331
  triggerProps["aria-labelledby"],
@@ -44117,7 +43888,7 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
44117
43888
  /**
44118
43889
  * Selects all items in the collection.
44119
43890
  */ selectAll() {
44120
- if (this.selectionMode === "multiple") this.state.setSelectedKeys("all");
43891
+ if (!this.isSelectAll && this.selectionMode === "multiple") this.state.setSelectedKeys("all");
44121
43892
  }
44122
43893
  /**
44123
43894
  * Removes all keys from the selection.
@@ -44279,15 +44050,15 @@ function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
44279
44050
  let disabledKeys = (useMemo)(()=>props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [
44280
44051
  props.disabledKeys
44281
44052
  ]);
44282
- let factory = (nodes)=>filter ? new ($a02d57049d202695$export$d085fb9e920b5ca7)(filter(nodes)) : new ($a02d57049d202695$export$d085fb9e920b5ca7)(nodes);
44053
+ let factory = (useCallback)((nodes)=>filter ? new ($a02d57049d202695$export$d085fb9e920b5ca7)(filter(nodes)) : new ($a02d57049d202695$export$d085fb9e920b5ca7)(nodes), [
44054
+ filter
44055
+ ]);
44283
44056
  let context = (useMemo)(()=>({
44284
44057
  suppressTextValueWarning: props.suppressTextValueWarning
44285
44058
  }), [
44286
44059
  props.suppressTextValueWarning
44287
44060
  ]);
44288
- let collection = ($7613b1592d41b092$export$6cd28814d92fa9c9)(props, factory, context, [
44289
- filter
44290
- ]);
44061
+ let collection = ($7613b1592d41b092$export$6cd28814d92fa9c9)(props, factory, context);
44291
44062
  let selectionManager = (useMemo)(()=>new ($d496c0a20b6e58ec$export$6c8a5aaad13c9852)(collection, selectionState), [
44292
44063
  collection,
44293
44064
  selectionState
@@ -44392,7 +44163,7 @@ function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
44392
44163
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
44393
44164
  * you may not use this file except in compliance with the License. You may obtain a copy
44394
44165
  * of the License at http://www.apache.org/licenses/LICENSE-2.0
44395
- *
44166
+ *
44396
44167
  * Unless required by applicable law or agreed to in writing, software distributed under
44397
44168
  * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
44398
44169
  * OF ANY KIND, either express or implied. See the License for the specific language
@@ -44530,11 +44301,11 @@ function $c132121280ec012d$export$50eacbbf140a3141(props, state, ref) {
44530
44301
  });
44531
44302
  return {
44532
44303
  labelProps: labelProps,
44533
- listBoxProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(domProps, focusWithinProps, state.selectionManager.selectionMode === "multiple" ? {
44304
+ listBoxProps: ($3ef42575df84b30b$export$9d1611c77c2fe928$1)(domProps, focusWithinProps, state.selectionManager.selectionMode === "multiple" ? {
44534
44305
  "aria-multiselectable": "true"
44535
44306
  } : {}, {
44536
44307
  role: "listbox",
44537
- ...($3ef42575df84b30b$export$9d1611c77c2fe928)(fieldProps, listProps)
44308
+ ...($3ef42575df84b30b$export$9d1611c77c2fe928$1)(fieldProps, listProps)
44538
44309
  })
44539
44310
  };
44540
44311
  }
@@ -44617,7 +44388,7 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
44617
44388
  return {
44618
44389
  optionProps: {
44619
44390
  ...optionProps,
44620
- ...($3ef42575df84b30b$export$9d1611c77c2fe928)(itemProps, hoverProps),
44391
+ ...($3ef42575df84b30b$export$9d1611c77c2fe928$1)(itemProps, hoverProps),
44621
44392
  id: ($b1f0cad8af73213b$export$9145995848b05025)(state, key)
44622
44393
  },
44623
44394
  labelProps: {
@@ -44670,14 +44441,14 @@ function $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {
44670
44441
  };
44671
44442
  }
44672
44443
 
44673
- var styles$4 = {"listBox":"ListBox-module_listBox__FQ9sQ","focus":"ListBox-module_focus__Tm-jn"};
44444
+ var styles$c = {"listBox":"ListBox-module_listBox__FQ9sQ","focus":"ListBox-module_focus__Tm-jn"};
44674
44445
 
44675
44446
  var ListBox = function(_a) {
44676
- var children = _a.children, menuProps = _a.menuProps, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["children", "menuProps", "classNameOverride"]);
44447
+ var children = _a.children, menuProps = _a.menuProps, classNameOverride = _a.classNameOverride, restProps = __rest$3(_a, ["children", "menuProps", "classNameOverride"]);
44677
44448
  var state = useSelectContext().state;
44678
44449
  var ref = React__default.useRef(null);
44679
- var listBoxProps = $c132121280ec012d$export$50eacbbf140a3141(__assign$1(__assign$1({}, menuProps), { disallowEmptySelection: true, autoFocus: "first" }), state, ref).listBoxProps;
44680
- return React__default.createElement("ul", __assign$1({ ref, className: classnames(styles$4.listBox, classNameOverride) }, listBoxProps, restProps), children);
44450
+ var listBoxProps = $c132121280ec012d$export$50eacbbf140a3141(__assign$3(__assign$3({}, menuProps), { disallowEmptySelection: true, autoFocus: "first" }), state, ref).listBoxProps;
44451
+ return React__default.createElement("ul", __assign$3({ ref, className: classnames(styles$c.listBox, classNameOverride) }, listBoxProps, restProps), children);
44681
44452
  };
44682
44453
  ListBox.displayName = "ListBox";
44683
44454
 
@@ -44694,7 +44465,7 @@ var Heading_module$1 = /*#__PURE__*/Object.freeze({
44694
44465
  default: Heading_module
44695
44466
  });
44696
44467
 
44697
- var require$$2$4 = /*@__PURE__*/getAugmentedNamespace(Heading_module$1);
44468
+ var require$$2$5 = /*@__PURE__*/getAugmentedNamespace(Heading_module$1);
44698
44469
 
44699
44470
  (function(exports) {
44700
44471
  var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
@@ -44728,7 +44499,7 @@ var require$$2$4 = /*@__PURE__*/getAugmentedNamespace(Heading_module$1);
44728
44499
  exports.Heading = void 0;
44729
44500
  var react_1 = React__default;
44730
44501
  var classnames_1 = __importDefault(classnamesExports);
44731
- var Heading_module_scss_1 = __importDefault(require$$2$4);
44502
+ var Heading_module_scss_1 = __importDefault(require$$2$5);
44732
44503
  var VARIANTS_24PX_OR_GREATER = ["display-0", "heading-1", "heading-2"];
44733
44504
  var Heading = function(_a) {
44734
44505
  var children = _a.children, tag = _a.tag, variant = _a.variant, _b = _a.color, color = _b === void 0 ? "dark" : _b, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "tag", "variant", "color", "classNameOverride"]);
@@ -44794,10 +44565,10 @@ var Paragraph_module$1 = /*#__PURE__*/Object.freeze({
44794
44565
  default: Paragraph_module
44795
44566
  });
44796
44567
 
44797
- var require$$2$3 = /*@__PURE__*/getAugmentedNamespace(Paragraph_module$1);
44568
+ var require$$2$4 = /*@__PURE__*/getAugmentedNamespace(Paragraph_module$1);
44798
44569
 
44799
- var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
44800
- __assign = Object.assign || function(t) {
44570
+ var __assign$2 = commonjsGlobal && commonjsGlobal.__assign || function() {
44571
+ __assign$2 = Object.assign || function(t) {
44801
44572
  for (var s, i = 1, n = arguments.length; i < n; i++) {
44802
44573
  s = arguments[i];
44803
44574
  for (var p in s)
@@ -44806,9 +44577,9 @@ var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
44806
44577
  }
44807
44578
  return t;
44808
44579
  };
44809
- return __assign.apply(this, arguments);
44580
+ return __assign$2.apply(this, arguments);
44810
44581
  };
44811
- var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
44582
+ var __rest$2 = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
44812
44583
  var t = {};
44813
44584
  for (var p in s)
44814
44585
  if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -44820,18 +44591,18 @@ var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
44820
44591
  }
44821
44592
  return t;
44822
44593
  };
44823
- var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
44594
+ var __importDefault$2 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
44824
44595
  return mod && mod.__esModule ? mod : { "default": mod };
44825
44596
  };
44826
44597
  Paragraph$1.__esModule = true;
44827
44598
  Paragraph$1.Paragraph = void 0;
44828
- var react_1 = React__default;
44829
- var classnames_1 = __importDefault(classnamesExports);
44830
- var Paragraph_module_scss_1 = __importDefault(require$$2$3);
44599
+ var react_1$2 = React__default;
44600
+ var classnames_1$2 = __importDefault$2(classnamesExports);
44601
+ var Paragraph_module_scss_1 = __importDefault$2(require$$2$4);
44831
44602
  var Paragraph = function(_a) {
44832
- var children = _a.children, tag = _a.tag, variant = _a.variant, _b = _a.color, color = _b === void 0 ? "dark" : _b, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "tag", "variant", "color", "classNameOverride"]);
44833
- var className = (0, classnames_1["default"])(Paragraph_module_scss_1["default"].paragraph, Paragraph_module_scss_1["default"][variant], Paragraph_module_scss_1["default"][color], classNameOverride);
44834
- return (0, react_1.createElement)(tag === void 0 ? "p" : tag, __assign(__assign({}, restProps), { className }), children);
44603
+ var children = _a.children, tag = _a.tag, variant = _a.variant, _b = _a.color, color = _b === void 0 ? "dark" : _b, classNameOverride = _a.classNameOverride, restProps = __rest$2(_a, ["children", "tag", "variant", "color", "classNameOverride"]);
44604
+ var className = (0, classnames_1$2["default"])(Paragraph_module_scss_1["default"].paragraph, Paragraph_module_scss_1["default"][variant], Paragraph_module_scss_1["default"][color], classNameOverride);
44605
+ return (0, react_1$2.createElement)(tag === void 0 ? "p" : tag, __assign$2(__assign$2({}, restProps), { className }), children);
44835
44606
  };
44836
44607
  Paragraph$1.Paragraph = Paragraph;
44837
44608
 
@@ -44886,6 +44657,193 @@ Paragraph$1.Paragraph = Paragraph;
44886
44657
  __exportStar(Paragraph$2, exports);
44887
44658
  })(typography);
44888
44659
 
44660
+ /*
44661
+ * Copyright 2020 Adobe. All rights reserved.
44662
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
44663
+ * you may not use this file except in compliance with the License. You may obtain a copy
44664
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
44665
+ *
44666
+ * Unless required by applicable law or agreed to in writing, software distributed under
44667
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
44668
+ * OF ANY KIND, either express or implied. See the License for the specific language
44669
+ * governing permissions and limitations under the License.
44670
+ */ /*
44671
+ * Copyright 2020 Adobe. All rights reserved.
44672
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
44673
+ * you may not use this file except in compliance with the License. You may obtain a copy
44674
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
44675
+ *
44676
+ * Unless required by applicable law or agreed to in writing, software distributed under
44677
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
44678
+ * OF ANY KIND, either express or implied. See the License for the specific language
44679
+ * governing permissions and limitations under the License.
44680
+ */
44681
+ /*
44682
+ * Copyright 2020 Adobe. All rights reserved.
44683
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
44684
+ * you may not use this file except in compliance with the License. You may obtain a copy
44685
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
44686
+ *
44687
+ * Unless required by applicable law or agreed to in writing, software distributed under
44688
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
44689
+ * OF ANY KIND, either express or implied. See the License for the specific language
44690
+ * governing permissions and limitations under the License.
44691
+ */
44692
+ typeof window !== "undefined" ? (React__default).useLayoutEffect : ()=>{};
44693
+
44694
+
44695
+ let $bdb11010cef70236$var$idsUpdaterMap = new Map();
44696
+ function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {
44697
+ if (idA === idB) return idA;
44698
+ let setIdA = $bdb11010cef70236$var$idsUpdaterMap.get(idA);
44699
+ if (setIdA) {
44700
+ setIdA(idB);
44701
+ return idB;
44702
+ }
44703
+ let setIdB = $bdb11010cef70236$var$idsUpdaterMap.get(idB);
44704
+ if (setIdB) {
44705
+ setIdB(idA);
44706
+ return idA;
44707
+ }
44708
+ return idB;
44709
+ }
44710
+
44711
+
44712
+ /*
44713
+ * Copyright 2020 Adobe. All rights reserved.
44714
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
44715
+ * you may not use this file except in compliance with the License. You may obtain a copy
44716
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
44717
+ *
44718
+ * Unless required by applicable law or agreed to in writing, software distributed under
44719
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
44720
+ * OF ANY KIND, either express or implied. See the License for the specific language
44721
+ * governing permissions and limitations under the License.
44722
+ */ /**
44723
+ * Calls all functions in the order they were chained with the same arguments.
44724
+ */ function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) {
44725
+ return (...args)=>{
44726
+ for (let callback of callbacks)if (typeof callback === "function") callback(...args);
44727
+ };
44728
+ }
44729
+
44730
+
44731
+ /*
44732
+ * Copyright 2020 Adobe. All rights reserved.
44733
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
44734
+ * you may not use this file except in compliance with the License. You may obtain a copy
44735
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
44736
+ *
44737
+ * Unless required by applicable law or agreed to in writing, software distributed under
44738
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
44739
+ * OF ANY KIND, either express or implied. See the License for the specific language
44740
+ * governing permissions and limitations under the License.
44741
+ */
44742
+
44743
+
44744
+ function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
44745
+ // Start with a base clone of the first argument. This is a lot faster than starting
44746
+ // with an empty object and adding properties as we go.
44747
+ let result = {
44748
+ ...args[0]
44749
+ };
44750
+ for(let i = 1; i < args.length; i++){
44751
+ let props = args[i];
44752
+ for(let key in props){
44753
+ let a = result[key];
44754
+ let b = props[key];
44755
+ // Chain events
44756
+ if (typeof a === "function" && typeof b === "function" && // This is a lot faster than a regex.
44757
+ key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */ 65 && key.charCodeAt(2) <= /* 'Z' */ 90) result[key] = ($ff5963eb1fccf552$export$e08e3b67e392101e)(a, b);
44758
+ else if ((key === "className" || key === "UNSAFE_className") && typeof a === "string" && typeof b === "string") result[key] = (clsx)(a, b);
44759
+ else if (key === "id" && a && b) result.id = ($bdb11010cef70236$export$cd8c9cb68f842629)(a, b);
44760
+ else result[key] = b !== undefined ? b : a;
44761
+ }
44762
+ }
44763
+ return result;
44764
+ }
44765
+
44766
+
44767
+ /*
44768
+ * Copyright 2020 Adobe. All rights reserved.
44769
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
44770
+ * you may not use this file except in compliance with the License. You may obtain a copy
44771
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
44772
+ *
44773
+ * Unless required by applicable law or agreed to in writing, software distributed under
44774
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
44775
+ * OF ANY KIND, either express or implied. See the License for the specific language
44776
+ * governing permissions and limitations under the License.
44777
+ */ new Set([
44778
+ "id"
44779
+ ]);
44780
+ new Set([
44781
+ "aria-label",
44782
+ "aria-labelledby",
44783
+ "aria-describedby",
44784
+ "aria-details"
44785
+ ]);
44786
+
44787
+
44788
+ /*
44789
+ * Copyright 2020 Adobe. All rights reserved.
44790
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
44791
+ * you may not use this file except in compliance with the License. You may obtain a copy
44792
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
44793
+ *
44794
+ * Unless required by applicable law or agreed to in writing, software distributed under
44795
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
44796
+ * OF ANY KIND, either express or implied. See the License for the specific language
44797
+ * governing permissions and limitations under the License.
44798
+ */ // We store a global list of elements that are currently transitioning,
44799
+ // mapped to a set of CSS properties that are transitioning for that element.
44800
+ // This is necessary rather than a simple count of transitions because of browser
44801
+ // bugs, e.g. Chrome sometimes fires both transitionend and transitioncancel rather
44802
+ // than one or the other. So we need to track what's actually transitioning so that
44803
+ // we can ignore these duplicate events.
44804
+ let $bbed8b41f857bcc0$var$transitionsByElement = new Map();
44805
+ // A list of callbacks to call once there are no transitioning elements.
44806
+ let $bbed8b41f857bcc0$var$transitionCallbacks = new Set();
44807
+ function $bbed8b41f857bcc0$var$setupGlobalEvents() {
44808
+ if (typeof window === "undefined") return;
44809
+ let onTransitionStart = (e)=>{
44810
+ // Add the transitioning property to the list for this element.
44811
+ let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
44812
+ if (!transitions) {
44813
+ transitions = new Set();
44814
+ $bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions);
44815
+ // The transitioncancel event must be registered on the element itself, rather than as a global
44816
+ // event. This enables us to handle when the node is deleted from the document while it is transitioning.
44817
+ // In that case, the cancel event would have nowhere to bubble to so we need to handle it directly.
44818
+ e.target.addEventListener("transitioncancel", onTransitionEnd);
44819
+ }
44820
+ transitions.add(e.propertyName);
44821
+ };
44822
+ let onTransitionEnd = (e)=>{
44823
+ // Remove property from list of transitioning properties.
44824
+ let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target);
44825
+ if (!properties) return;
44826
+ properties.delete(e.propertyName);
44827
+ // If empty, remove transitioncancel event, and remove the element from the list of transitioning elements.
44828
+ if (properties.size === 0) {
44829
+ e.target.removeEventListener("transitioncancel", onTransitionEnd);
44830
+ $bbed8b41f857bcc0$var$transitionsByElement.delete(e.target);
44831
+ }
44832
+ // If no transitioning elements, call all of the queued callbacks.
44833
+ if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {
44834
+ for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks)cb();
44835
+ $bbed8b41f857bcc0$var$transitionCallbacks.clear();
44836
+ }
44837
+ };
44838
+ document.body.addEventListener("transitionrun", onTransitionStart);
44839
+ document.body.addEventListener("transitionend", onTransitionEnd);
44840
+ }
44841
+ if (typeof document !== "undefined") {
44842
+ if (document.readyState !== "loading") $bbed8b41f857bcc0$var$setupGlobalEvents();
44843
+ else document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents);
44844
+ }
44845
+ new Map();
44846
+
44889
44847
  var componentLibrary = {};
44890
44848
 
44891
44849
  var components = {};
@@ -44894,23 +44852,23 @@ var Dropdown$1 = {};
44894
44852
 
44895
44853
  var Dropdown = {};
44896
44854
 
44897
- var img$2 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 44.1 (41455) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3eIcons/Directional/chevron-down%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpolygon id='path-1' points='6.17916667 6.84500003 10 10.746733 13.8208333 6.84500003 15 8.04913353 10 13.155 5 8.04913353'%3e%3c/polygon%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='Icons/Directional/chevron-down'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
44855
+ var img$8 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 44.1 (41455) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3eIcons/Directional/chevron-down%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpolygon id='path-1' points='6.17916667 6.84500003 10 10.746733 13.8208333 6.84500003 15 8.04913353 10 13.155 5 8.04913353'%3e%3c/polygon%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='Icons/Directional/chevron-down'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
44898
44856
 
44899
44857
  var chevronDown_icon = /*#__PURE__*/Object.freeze({
44900
44858
  __proto__: null,
44901
- default: img$2
44859
+ default: img$8
44902
44860
  });
44903
44861
 
44904
- var require$$2$2 = /*@__PURE__*/getAugmentedNamespace(chevronDown_icon);
44862
+ var require$$2$3 = /*@__PURE__*/getAugmentedNamespace(chevronDown_icon);
44905
44863
 
44906
- var img$1 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3emeatballs%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M4%2c8 C2.9%2c8 2%2c8.9 2%2c10 C2%2c11.1 2.9%2c12 4%2c12 C5.1%2c12 6%2c11.1 6%2c10 C6%2c8.9 5.1%2c8 4%2c8 L4%2c8 Z M16%2c8 C14.9%2c8 14%2c8.9 14%2c10 C14%2c11.1 14.9%2c12 16%2c12 C17.1%2c12 18%2c11.1 18%2c10 C18%2c8.9 17.1%2c8 16%2c8 L16%2c8 Z M10%2c8 C8.9%2c8 8%2c8.9 8%2c10 C8%2c11.1 8.9%2c12 10%2c12 C11.1%2c12 12%2c11.1 12%2c10 C12%2c8.9 11.1%2c8 10%2c8 L10%2c8 Z' id='path-1'%3e%3c/path%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='meatballs'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Icons/Actions/metballs' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
44864
+ var img$7 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3emeatballs%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M4%2c8 C2.9%2c8 2%2c8.9 2%2c10 C2%2c11.1 2.9%2c12 4%2c12 C5.1%2c12 6%2c11.1 6%2c10 C6%2c8.9 5.1%2c8 4%2c8 L4%2c8 Z M16%2c8 C14.9%2c8 14%2c8.9 14%2c10 C14%2c11.1 14.9%2c12 16%2c12 C17.1%2c12 18%2c11.1 18%2c10 C18%2c8.9 17.1%2c8 16%2c8 L16%2c8 Z M10%2c8 C8.9%2c8 8%2c8.9 8%2c10 C8%2c11.1 8.9%2c12 10%2c12 C11.1%2c12 12%2c11.1 12%2c10 C12%2c8.9 11.1%2c8 10%2c8 L10%2c8 Z' id='path-1'%3e%3c/path%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='meatballs'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Icons/Actions/metballs' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
44907
44865
 
44908
44866
  var ellipsis_icon = /*#__PURE__*/Object.freeze({
44909
44867
  __proto__: null,
44910
- default: img$1
44868
+ default: img$7
44911
44869
  });
44912
44870
 
44913
- var require$$3$1 = /*@__PURE__*/getAugmentedNamespace(ellipsis_icon);
44871
+ var require$$3$3 = /*@__PURE__*/getAugmentedNamespace(ellipsis_icon);
44914
44872
 
44915
44873
  var Icon$1 = {};
44916
44874
 
@@ -44945,7 +44903,7 @@ var Icon_module$1 = /*#__PURE__*/Object.freeze({
44945
44903
  default: Icon_module
44946
44904
  });
44947
44905
 
44948
- var require$$3 = /*@__PURE__*/getAugmentedNamespace(Icon_module$1);
44906
+ var require$$3$2 = /*@__PURE__*/getAugmentedNamespace(Icon_module$1);
44949
44907
 
44950
44908
  (function(exports) {
44951
44909
  var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
@@ -44980,7 +44938,7 @@ var require$$3 = /*@__PURE__*/getAugmentedNamespace(Icon_module$1);
44980
44938
  var react_1 = __importDefault(React__default);
44981
44939
  var classnames_1 = __importDefault(classnamesExports);
44982
44940
  var console_1 = console$1;
44983
- var Icon_module_scss_1 = __importDefault(require$$3);
44941
+ var Icon_module_scss_1 = __importDefault(require$$3$2);
44984
44942
  var Icon = function(_a) {
44985
44943
  var _b;
44986
44944
  var icon = _a.icon, _c = _a.inheritSize, inheritSize = _c === void 0 ? false : _c, _d = _a.role, role = _d === void 0 ? "img" : _d, _e = _a.title, title = _e === void 0 ? "" : _e, _f = _a.desc, desc = _f === void 0 ? "" : _f, classNameOverride = _a.classNameOverride, props = __rest(_a, ["icon", "inheritSize", "role", "title", "desc", "classNameOverride"]);
@@ -45053,7 +45011,7 @@ var Dropdown_module$1 = /*#__PURE__*/Object.freeze({
45053
45011
  default: Dropdown_module
45054
45012
  });
45055
45013
 
45056
- var require$$6 = /*@__PURE__*/getAugmentedNamespace(Dropdown_module$1);
45014
+ var require$$6$1 = /*@__PURE__*/getAugmentedNamespace(Dropdown_module$1);
45057
45015
 
45058
45016
  (function(exports) {
45059
45017
  var __extends = commonjsGlobal && commonjsGlobal.__extends || function() {
@@ -45082,7 +45040,7 @@ var require$$6 = /*@__PURE__*/getAugmentedNamespace(Dropdown_module$1);
45082
45040
  };
45083
45041
  exports.__esModule = true;
45084
45042
  var react_1 = __importDefault(React__default);
45085
- var Dropdown_module_scss_1 = __importDefault(require$$6);
45043
+ var Dropdown_module_scss_1 = __importDefault(require$$6$1);
45086
45044
  var DropdownMenu = (
45087
45045
  /** @class */
45088
45046
  function(_super) {
@@ -45170,11 +45128,11 @@ var require$$6 = /*@__PURE__*/getAugmentedNamespace(Dropdown_module$1);
45170
45128
  exports.__esModule = true;
45171
45129
  var react_1 = __importDefault(React__default);
45172
45130
  var classnames_1 = __importDefault(classnamesExports);
45173
- var chevron_down_icon_svg_1 = __importDefault(require$$2$2);
45174
- var ellipsis_icon_svg_1 = __importDefault(require$$3$1);
45131
+ var chevron_down_icon_svg_1 = __importDefault(require$$2$3);
45132
+ var ellipsis_icon_svg_1 = __importDefault(require$$3$3);
45175
45133
  var Icon_1 = Icon$1;
45176
45134
  var DropdownMenu_1 = __importDefault(DropdownMenu);
45177
- var Dropdown_module_scss_1 = __importDefault(require$$6);
45135
+ var Dropdown_module_scss_1 = __importDefault(require$$6$1);
45178
45136
  var Dropdown = (
45179
45137
  /** @class */
45180
45138
  function(_super) {
@@ -45611,7 +45569,7 @@ var Text_module$1 = /*#__PURE__*/Object.freeze({
45611
45569
  default: Text_module
45612
45570
  });
45613
45571
 
45614
- var require$$2$1 = /*@__PURE__*/getAugmentedNamespace(Text_module$1);
45572
+ var require$$2$2 = /*@__PURE__*/getAugmentedNamespace(Text_module$1);
45615
45573
 
45616
45574
  (function(exports) {
45617
45575
  var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
@@ -45620,7 +45578,7 @@ var require$$2$1 = /*@__PURE__*/getAugmentedNamespace(Text_module$1);
45620
45578
  exports.__esModule = true;
45621
45579
  var react_1 = __importDefault(React__default);
45622
45580
  var classnames_1 = __importDefault(classnamesExports);
45623
- var Text_module_scss_1 = __importDefault(require$$2$1);
45581
+ var Text_module_scss_1 = __importDefault(require$$2$2);
45624
45582
  var Text = function(_a) {
45625
45583
  var tag = _a.tag, children = _a.children, _b = _a.inheritBaseline, inheritBaseline = _b === void 0 ? false : _b, _c = _a.inline, inline = _c === void 0 ? false : _c, _d = _a.style, style = _d === void 0 ? "default-style" : _d;
45626
45584
  return react_1["default"].createElement(tag, {
@@ -46060,27 +46018,27 @@ var Box = {};
46060
46018
  __exportStar(components, exports);
46061
46019
  })(componentLibrary);
46062
46020
 
46063
- var img = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 44.1 (41455) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3eIcons/Informational/check%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpolygon id='path-1' points='8.33333333 14.3416667 4.16666667 10.175 5.34166667 9 8.33333333 11.9833333 14.6583333 5.65833333 15.8333333 6.84166667'%3e%3c/polygon%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='Icons/Informational/check'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
46064
- var check = img;
46021
+ var img$6 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 44.1 (41455) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3eIcons/Informational/check%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpolygon id='path-1' points='8.33333333 14.3416667 4.16666667 10.175 5.34166667 9 8.33333333 11.9833333 14.6583333 5.65833333 15.8333333 6.84166667'%3e%3c/polygon%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='Icons/Informational/check'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
46022
+ var check = img$6;
46065
46023
 
46066
- var styles$3 = {"icon":"Option-module_icon__0ECp6","option":"Option-module_option__U-MsL","isFocusVisible":"Option-module_isFocusVisible__yYC7y","disabled":"Option-module_disabled__RV081","isSelected":"Option-module_isSelected__L3nhB"};
46024
+ var styles$b = {"icon":"Option-module_icon__0ECp6","option":"Option-module_option__U-MsL","isFocusVisible":"Option-module_isFocusVisible__yYC7y","disabled":"Option-module_disabled__RV081","isSelected":"Option-module_isSelected__L3nhB"};
46067
46025
 
46068
46026
  var Option = function(_a) {
46069
- var item = _a.item, classNameOverride = _a.classNameOverride, props = __rest$1(_a, ["item", "classNameOverride"]);
46027
+ var item = _a.item, classNameOverride = _a.classNameOverride, props = __rest$3(_a, ["item", "classNameOverride"]);
46070
46028
  var state = useSelectContext().state;
46071
46029
  var ref = React__default.useRef(null);
46072
46030
  var _b = $293f70390ea03370$export$497855f14858aa34({ key: item.key }, state, ref), optionProps = _b.optionProps, isSelected = _b.isSelected, isDisabled = _b.isDisabled;
46073
46031
  var _c = $f7dceffc5ad7768b$export$4e328f61c538687f(), isFocusVisible = _c.isFocusVisible, focusProps = _c.focusProps;
46074
46032
  return React__default.createElement(
46075
46033
  "li",
46076
- __assign$1({}, $3ef42575df84b30b$export$9d1611c77c2fe928(optionProps, focusProps, props), { ref, className: classnames(styles$3.option, isSelected && styles$3.isSelected, isFocusVisible && styles$3.isFocusVisible, isDisabled && styles$3.disabled, classNameOverride), "aria-label": item.textValue }),
46034
+ __assign$3({}, $3ef42575df84b30b$export$9d1611c77c2fe928(optionProps, focusProps, props), { ref, className: classnames(styles$b.option, isSelected && styles$b.isSelected, isFocusVisible && styles$b.isFocusVisible, isDisabled && styles$b.disabled, classNameOverride), "aria-label": item.textValue }),
46077
46035
  item.rendered,
46078
- React__default.createElement("span", { className: classnames(styles$3.icon, isSelected && styles$3.isSelected) }, isSelected && React__default.createElement(componentLibrary.Icon, { icon: check, role: "presentation" }))
46036
+ React__default.createElement("span", { className: classnames(styles$b.icon, isSelected && styles$b.isSelected) }, isSelected && React__default.createElement(componentLibrary.Icon, { icon: check, role: "presentation" }))
46079
46037
  );
46080
46038
  };
46081
46039
  Option.displayName = "Option";
46082
46040
 
46083
- var styles$2 = {"sectionWrapper":"ListBoxSection-module_sectionWrapper__NYQwa","sectionHeading":"ListBoxSection-module_sectionHeading__KiOi1","sectionList":"ListBoxSection-module_sectionList__xiPZY"};
46041
+ var styles$a = {"sectionWrapper":"ListBoxSection-module_sectionWrapper__NYQwa","sectionHeading":"ListBoxSection-module_sectionHeading__KiOi1","sectionList":"ListBoxSection-module_sectionList__xiPZY"};
46084
46042
 
46085
46043
  var ListBoxSection = function(_a) {
46086
46044
  var section = _a.section;
@@ -46093,9 +46051,9 @@ var ListBoxSection = function(_a) {
46093
46051
  null,
46094
46052
  React__default.createElement(
46095
46053
  "li",
46096
- __assign$1({}, itemProps, { className: styles$2.sectionWrapper }),
46097
- section.rendered && React__default.createElement(typography.Heading, __assign$1({ tag: "span", variant: "heading-6" }, headingProps, { classNameOverride: styles$2.sectionHeading }), section.rendered),
46098
- React__default.createElement("ul", __assign$1({}, groupProps, { className: styles$2.sectionList }), Array.from(section.childNodes).map(function(item) {
46054
+ __assign$3({}, itemProps, { className: styles$a.sectionWrapper }),
46055
+ section.rendered && React__default.createElement(typography.Heading, __assign$3({ tag: "span", variant: "heading-6" }, headingProps, { classNameOverride: styles$a.sectionHeading }), section.rendered),
46056
+ React__default.createElement("ul", __assign$3({}, groupProps, { className: styles$a.sectionList }), Array.from(section.childNodes).map(function(item) {
46099
46057
  return React__default.createElement(Option, { key: item.key, item });
46100
46058
  }))
46101
46059
  )
@@ -46118,13 +46076,13 @@ var ListItems = function(_a) {
46118
46076
  ListItems.displayName = "ListItems";
46119
46077
 
46120
46078
  var Overlay = function(_a) {
46121
- var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["children", "classNameOverride"]);
46079
+ var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$3(_a, ["children", "classNameOverride"]);
46122
46080
  var state = useSelectContext().state;
46123
46081
  var overlayRef = React__default.useRef(null);
46124
46082
  var overlayProps = $a11501f3d1d39e6c$export$ea8f71083e90600f({ isDismissable: true, isOpen: state.isOpen, onClose: state.close }, overlayRef).overlayProps;
46125
46083
  return React__default.createElement(
46126
46084
  "div",
46127
- __assign$1({ ref: overlayRef, className: classNameOverride }, overlayProps, restProps),
46085
+ __assign$3({ ref: overlayRef, className: classNameOverride }, overlayProps, restProps),
46128
46086
  React__default.createElement(
46129
46087
  $9bf71ea28793e738$export$20e40289641fbbb6,
46130
46088
  { contain: true, autoFocus: true, restoreFocus: true },
@@ -46147,7 +46105,7 @@ var Divider_module$1 = /*#__PURE__*/Object.freeze({
46147
46105
  default: Divider_module
46148
46106
  });
46149
46107
 
46150
- var require$$2 = /*@__PURE__*/getAugmentedNamespace(Divider_module$1);
46108
+ var require$$2$1 = /*@__PURE__*/getAugmentedNamespace(Divider_module$1);
46151
46109
 
46152
46110
  (function(exports) {
46153
46111
  var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
@@ -46181,7 +46139,7 @@ var require$$2 = /*@__PURE__*/getAugmentedNamespace(Divider_module$1);
46181
46139
  exports.Divider = void 0;
46182
46140
  var react_1 = __importDefault(React__default);
46183
46141
  var classnames_1 = __importDefault(classnamesExports);
46184
- var Divider_module_scss_1 = __importDefault(require$$2);
46142
+ var Divider_module_scss_1 = __importDefault(require$$2$1);
46185
46143
  var Divider = function(_a) {
46186
46144
  var variant = _a.variant, _b = _a.isReversed, isReversed = _b === void 0 ? false : _b, classNameOverride = _a.classNameOverride, props = __rest(_a, ["variant", "isReversed", "classNameOverride"]);
46187
46145
  return react_1["default"].createElement("hr", __assign({ "aria-hidden": "true", className: (0, classnames_1["default"])(Divider_module_scss_1["default"].wrapper, classNameOverride, isReversed && Divider_module_scss_1["default"].reversed, Divider_module_scss_1["default"][variant]) }, props));
@@ -46215,10 +46173,10 @@ var require$$2 = /*@__PURE__*/getAugmentedNamespace(Divider_module$1);
46215
46173
  __exportStar(Divider, exports);
46216
46174
  })(divider);
46217
46175
 
46218
- var styles$1 = {"divider":"SectionDivider-module_divider__-idrC"};
46176
+ var styles$9 = {"divider":"SectionDivider-module_divider__-idrC"};
46219
46177
 
46220
46178
  var SectionDivider = function() {
46221
- return React__default.createElement(divider.Divider, { classNameOverride: styles$1.divider, variant: "canvas" });
46179
+ return React__default.createElement(divider.Divider, { classNameOverride: styles$9.divider, variant: "canvas" });
46222
46180
  };
46223
46181
  SectionDivider.displayName = "SectionDivider";
46224
46182
 
@@ -46226,16 +46184,130 @@ var isSelectOptionGroup = function(item) {
46226
46184
  return item.hasOwnProperty("options") && Array.isArray(item.options);
46227
46185
  };
46228
46186
 
46187
+ /*
46188
+ * Copyright 2020 Adobe. All rights reserved.
46189
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
46190
+ * you may not use this file except in compliance with the License. You may obtain a copy
46191
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
46192
+ *
46193
+ * Unless required by applicable law or agreed to in writing, software distributed under
46194
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
46195
+ * OF ANY KIND, either express or implied. See the License for the specific language
46196
+ * governing permissions and limitations under the License.
46197
+ */ /*
46198
+ * Copyright 2020 Adobe. All rights reserved.
46199
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
46200
+ * you may not use this file except in compliance with the License. You may obtain a copy
46201
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
46202
+ *
46203
+ * Unless required by applicable law or agreed to in writing, software distributed under
46204
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
46205
+ * OF ANY KIND, either express or implied. See the License for the specific language
46206
+ * governing permissions and limitations under the License.
46207
+ */
46208
+ function $c1d7fb2ec91bae71$var$Item(props) {
46209
+ return null;
46210
+ }
46211
+ $c1d7fb2ec91bae71$var$Item.getCollectionNode = function* getCollectionNode(props, context) {
46212
+ let { childItems: childItems , title: title , children: children } = props;
46213
+ let rendered = props.title || props.children;
46214
+ let textValue = props.textValue || (typeof rendered === "string" ? rendered : "") || props["aria-label"] || "";
46215
+ // suppressTextValueWarning is used in components like Tabs, which don't have type to select support.
46216
+ if (!textValue && !(context === null || context === void 0 ? void 0 : context.suppressTextValueWarning)) console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.");
46217
+ yield {
46218
+ type: "item",
46219
+ props: props,
46220
+ rendered: rendered,
46221
+ textValue: textValue,
46222
+ "aria-label": props["aria-label"],
46223
+ hasChildNodes: $c1d7fb2ec91bae71$var$hasChildItems(props),
46224
+ *childNodes () {
46225
+ if (childItems) for (let child of childItems)yield {
46226
+ type: "item",
46227
+ value: child
46228
+ };
46229
+ else if (title) {
46230
+ let items = [];
46231
+ (React__default).Children.forEach(children, (child)=>{
46232
+ items.push({
46233
+ type: "item",
46234
+ element: child
46235
+ });
46236
+ });
46237
+ yield* items;
46238
+ }
46239
+ }
46240
+ };
46241
+ };
46242
+ function $c1d7fb2ec91bae71$var$hasChildItems(props) {
46243
+ if (props.hasChildItems != null) return props.hasChildItems;
46244
+ if (props.childItems) return true;
46245
+ if (props.title && (React__default).Children.count(props.children) > 0) return true;
46246
+ return false;
46247
+ }
46248
+ // We don't want getCollectionNode to show up in the type definition
46249
+ let $c1d7fb2ec91bae71$export$6d08773d2e66f8f2 = $c1d7fb2ec91bae71$var$Item;
46250
+
46251
+
46252
+ /*
46253
+ * Copyright 2020 Adobe. All rights reserved.
46254
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
46255
+ * you may not use this file except in compliance with the License. You may obtain a copy
46256
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
46257
+ *
46258
+ * Unless required by applicable law or agreed to in writing, software distributed under
46259
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
46260
+ * OF ANY KIND, either express or implied. See the License for the specific language
46261
+ * governing permissions and limitations under the License.
46262
+ */
46263
+ function $9fc4852771d079eb$var$Section(props) {
46264
+ return null;
46265
+ }
46266
+ $9fc4852771d079eb$var$Section.getCollectionNode = function* getCollectionNode(props) {
46267
+ let { children: children , title: title , items: items } = props;
46268
+ yield {
46269
+ type: "section",
46270
+ props: props,
46271
+ hasChildNodes: true,
46272
+ rendered: title,
46273
+ "aria-label": props["aria-label"],
46274
+ *childNodes () {
46275
+ if (typeof children === "function") {
46276
+ if (!items) throw new Error("props.children was a function but props.items is missing");
46277
+ for (let item of items)yield {
46278
+ type: "item",
46279
+ value: item,
46280
+ renderer: children
46281
+ };
46282
+ } else {
46283
+ let items1 = [];
46284
+ (React__default).Children.forEach(children, (child)=>{
46285
+ items1.push({
46286
+ type: "item",
46287
+ element: child
46288
+ });
46289
+ });
46290
+ yield* items1;
46291
+ }
46292
+ }
46293
+ };
46294
+ };
46295
+ // We don't want getCollectionNode to show up in the type definition
46296
+ let $9fc4852771d079eb$export$6e2c8f0811a474ce = $9fc4852771d079eb$var$Section;
46297
+
46298
+
46299
+ new WeakMap();
46300
+
46229
46301
  var transformSelectItemToCollectionElement = function(item) {
46230
46302
  return isSelectOptionGroup(item) ? React__default.createElement($9fc4852771d079eb$export$6e2c8f0811a474ce, { key: item.label, title: item.label, items: item.options }, function(child) {
46231
46303
  return React__default.createElement($c1d7fb2ec91bae71$export$6d08773d2e66f8f2, { key: child.value }, child.label);
46232
46304
  }) : React__default.createElement($c1d7fb2ec91bae71$export$6d08773d2e66f8f2, { key: item.value }, item.label);
46233
46305
  };
46234
46306
 
46235
- var styles = {"filterContents":"FilterSelect-module_filterContents__2LknZ"};
46307
+ var styles$8 = {"filterContents":"FilterSelect-module_filterContents__2LknZ"};
46236
46308
 
46237
46309
  var FilterSelect = function(_a) {
46238
- var isOpen = _a.isOpen, setIsOpen = _a.setIsOpen, renderTrigger = _a.renderTrigger, label = _a.label, children = _a.children, items = _a.items, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["isOpen", "setIsOpen", "renderTrigger", "label", "children", "items", "classNameOverride"]);
46310
+ var isOpen = _a.isOpen, setIsOpen = _a.setIsOpen, renderTrigger = _a.renderTrigger, label = _a.label, children = _a.children, items = _a.items, classNameOverride = _a.classNameOverride, restProps = __rest$3(_a, ["isOpen", "setIsOpen", "renderTrigger", "label", "children", "items", "classNameOverride"]);
46239
46311
  var _b = useState({ current: null }), triggerRef = _b[0], setTriggerRef = _b[1];
46240
46312
  var disabledKeys = items.reduce(function(acc, item) {
46241
46313
  if (isSelectOptionGroup(item)) {
@@ -46248,7 +46320,7 @@ var FilterSelect = function(_a) {
46248
46320
  }
46249
46321
  return item.disabled ? __spreadArray(__spreadArray([], acc, true), [item.value], false) : acc;
46250
46322
  }, []);
46251
- var ariaSelectProps = __assign$1({ label, items, children: transformSelectItemToCollectionElement, isOpen, onOpenChange: setIsOpen, disabledKeys }, restProps);
46323
+ var ariaSelectProps = __assign$3({ label, items, children: transformSelectItemToCollectionElement, isOpen, onOpenChange: setIsOpen, disabledKeys }, restProps);
46252
46324
  var state = $2bc3a590c5373a4e$export$5159ec8b34d4ec12(ariaSelectProps);
46253
46325
  var _c = $58aed456727eb0f3$export$e64b2f635402ca43(ariaSelectProps, state, triggerRef), triggerProps = _c.triggerProps, menuProps = _c.menuProps;
46254
46326
  var buttonProps = $701a24aa0da5b062$export$ea18c227d4417cc3(triggerProps, triggerRef).buttonProps;
@@ -46261,11 +46333,11 @@ var FilterSelect = function(_a) {
46261
46333
  Filter,
46262
46334
  { isOpen, setIsOpen, renderTrigger: function() {
46263
46335
  var _a2;
46264
- return renderTrigger(__assign$1({ selectedValue: ((_a2 = state.selectedItem) === null || _a2 === void 0 ? void 0 : _a2.textValue) || void 0, label, isOpen }, buttonProps));
46336
+ return renderTrigger(__assign$3({ selectedValue: ((_a2 = state.selectedItem) === null || _a2 === void 0 ? void 0 : _a2.textValue) || void 0, label, isOpen }, buttonProps));
46265
46337
  }, onMount: setTriggerRef, classNameOverride },
46266
46338
  React__default.createElement(
46267
46339
  FilterContents,
46268
- { classNameOverride: styles.filterContents },
46340
+ { classNameOverride: styles$8.filterContents },
46269
46341
  React__default.createElement(
46270
46342
  SelectProvider,
46271
46343
  { state },
@@ -46669,7 +46741,7 @@ var defaultTheme = heartTheme;
46669
46741
 
46670
46742
  var ThemeContext = createContext(defaultTheme);
46671
46743
  var ThemeProvider = function(_a) {
46672
- var themeManager = _a.themeManager, props = __rest$1(_a, ["themeManager"]);
46744
+ var themeManager = _a.themeManager, props = __rest$3(_a, ["themeManager"]);
46673
46745
  var themeManagerInstance = useState(function() {
46674
46746
  return themeManager || new ThemeManager(defaultTheme);
46675
46747
  })[0];
@@ -46707,5 +46779,1324 @@ var KaizenProvider = function(_a) {
46707
46779
  };
46708
46780
  KaizenProvider.displayName = "KaizenProvider";
46709
46781
 
46710
- export { Filter, FilterButton, FilterButtonRemovable, FilterContents, FilterSelect, KaizenProvider, ThemeContext, ThemeManager, ThemeProvider, defaultTheme, heartTheme, useTheme };
46782
+ var styles$7 = {"footerRoot":"FooterRoot-module_footerRoot__bvMSa"};
46783
+
46784
+ var FooterRoot = function(_a) {
46785
+ var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$3(_a, ["children", "classNameOverride"]);
46786
+ return React__default.createElement("footer", __assign$3({ className: classnames(styles$7.footerRoot, classNameOverride) }, restProps), children);
46787
+ };
46788
+ FooterRoot.displayName = "Workflow.FooterRoot";
46789
+
46790
+ var IndicatorActiveIcon = function(props) {
46791
+ return React__default.createElement(
46792
+ SVG,
46793
+ __assign$3({}, props),
46794
+ React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10 2C5.584 2 2 5.584 2 10C2 14.416 5.584 18 10 18C14.416 18 18 14.416 18 10C18 5.584 14.416 2 10 2ZM10 16.4C6.464 16.4 3.6 13.536 3.6 10C3.6 6.464 6.464 3.6 10 3.6C13.536 3.6 16.4 6.464 16.4 10C16.4 13.536 13.536 16.4 10 16.4ZM10 13.5C11.933 13.5 13.5 11.933 13.5 10C13.5 8.067 11.933 6.5 10 6.5C8.067 6.5 6.5 8.067 6.5 10C6.5 11.933 8.067 13.5 10 13.5Z", fill: "currentColor" })
46795
+ );
46796
+ };
46797
+
46798
+ var IndicatorInactiveIcon = function(props) {
46799
+ return React__default.createElement(
46800
+ SVG,
46801
+ __assign$3({}, props),
46802
+ React__default.createElement("path", { d: "M2 10c0-4.416 3.584-8 8-8s8 3.584 8 8-3.584 8-8 8-8-3.584-8-8Zm8 6.4c3.536 0 6.4-2.864 6.4-6.4 0-3.536-2.864-6.4-6.4-6.4A6.398 6.398 0 0 0 3.6 10c0 3.536 2.864 6.4 6.4 6.4Z", fill: "currentColor" })
46803
+ );
46804
+ };
46805
+
46806
+ var SuccessIcon = function(props) {
46807
+ return React__default.createElement(
46808
+ SVG,
46809
+ __assign$3({}, props),
46810
+ React__default.createElement("path", { fill: "currentColor", id: "a", d: "M10 2c4.416 0 8 3.584 8 8s-3.584 8-8 8-8-3.584-8-8 3.584-8 8-8ZM8.4 14l7.2-7.2-1.128-1.136L8.4 11.736 5.528 8.872 4.4 10l4 4Z" })
46811
+ );
46812
+ };
46813
+
46814
+ var styles$6 = {"stepsContainer":"ProgressStepper-module_stepsContainer__kh4S2","stepList":"ProgressStepper-module_stepList__ToKVO","step":"ProgressStepper-module_step__5Zakx","stepContent":"ProgressStepper-module_stepContent__brp8m","stepIndicator":"ProgressStepper-module_stepIndicator__vAWW6","stepName":"ProgressStepper-module_stepName__21rPP","stepIcon":"ProgressStepper-module_stepIcon__eW-Ps","stepDivider":"ProgressStepper-module_stepDivider__SaO4y","stepperDescription":"ProgressStepper-module_stepperDescription__XT8Ra"};
46815
+
46816
+ var getStepStatus = function(isComplete, isCurrentStep, step, index) {
46817
+ if (isComplete) {
46818
+ return {
46819
+ icon: React__default.createElement(SuccessIcon, { key: index, inheritSize: true, role: "presentation", classNameOverride: "success" }),
46820
+ accessibleName: "Completed: ".concat(step)
46821
+ };
46822
+ }
46823
+ if (isCurrentStep) {
46824
+ return {
46825
+ icon: React__default.createElement(IndicatorActiveIcon, { key: index, inheritSize: true, role: "presentation", classNameOverride: "active" }),
46826
+ accessibleName: "Current: ".concat(step)
46827
+ };
46828
+ }
46829
+ return {
46830
+ icon: React__default.createElement(IndicatorInactiveIcon, { key: index, inheritSize: true, classNameOverride: "incomplete", role: "presentation" }),
46831
+ accessibleName: "Not started: ".concat(step)
46832
+ };
46833
+ };
46834
+ var ProgressStepper = function(_a) {
46835
+ var stepName = _a.stepName, steps = _a.steps, _b = _a.isComplete, isComplete = _b === void 0 ? false : _b, restprops = __rest$3(_a, ["stepName", "steps", "isComplete"]);
46836
+ var currentStepIndex = steps.indexOf(stepName);
46837
+ return React__default.createElement(
46838
+ "div",
46839
+ { className: styles$6.stepsContainer },
46840
+ React__default.createElement("ol", __assign$3({ className: styles$6.stepList }, restprops, { "aria-labelledby": "stepper-description" }), steps.map(function(step, index) {
46841
+ var isCurrentStep = currentStepIndex === index;
46842
+ var isCompletedStep = index < currentStepIndex || isComplete;
46843
+ var _a2 = getStepStatus(isCompletedStep, isCurrentStep, step, index), accessibleName = _a2.accessibleName, Icon = _a2.icon;
46844
+ return React__default.createElement(
46845
+ "li",
46846
+ { className: styles$6.step, key: "".concat(index, "-").concat(step), "aria-current": isCurrentStep },
46847
+ React__default.createElement(
46848
+ "div",
46849
+ { className: styles$6.stepContent },
46850
+ React__default.createElement("span", { className: "sr-only" }, accessibleName),
46851
+ React__default.createElement(typography.Paragraph, { classNameOverride: styles$6.stepName, variant: "small", color: "white", "aria-hidden": true }, step),
46852
+ React__default.createElement(
46853
+ "div",
46854
+ { className: styles$6.stepIndicator },
46855
+ React__default.createElement("span", { className: styles$6.stepIcon }, Icon)
46856
+ ),
46857
+ index < steps.length - 1 && React__default.createElement("div", { className: classnames([
46858
+ styles$6.stepDivider,
46859
+ isCompletedStep && styles$6.completedStep
46860
+ ]) })
46861
+ )
46862
+ );
46863
+ })),
46864
+ React__default.createElement(
46865
+ typography.Paragraph,
46866
+ { classNameOverride: styles$6.stepperDescription, variant: "small", color: "white", id: "stepper-description" },
46867
+ "Step ",
46868
+ currentStepIndex + 1,
46869
+ " of ",
46870
+ steps.length
46871
+ )
46872
+ );
46873
+ };
46874
+ ProgressStepper.displayName = "Workflow.ProgressStepper";
46875
+
46876
+ var styles$5 = {"footerAction":"FooterActions-module_footerAction__H-bdq","footerActionPrevious":"FooterActions-module_footerActionPrevious__yyzsX","footerActionNext":"FooterActions-module_footerActionNext__GIowc"};
46877
+
46878
+ var FooterAction = function(_a) {
46879
+ var _b = _a.actionType, actionType = _b === void 0 ? "Previous" : _b, action = _a.action, restProps = __rest$3(_a, ["actionType", "action"]);
46880
+ return React__default.createElement("div", __assign$3({ className: classnames([
46881
+ styles$5.footerAction,
46882
+ styles$5["footerAction".concat(actionType)]
46883
+ ]) }, restProps), action);
46884
+ };
46885
+ FooterAction.displayName = "Workflow.FooterActions";
46886
+
46887
+ var Footer = function(_a) {
46888
+ var steps = _a.steps, stepName = _a.stepName, isComplete = _a.isComplete, previousAction = _a.previousAction, nextAction = _a.nextAction, restProps = __rest$3(_a, ["steps", "stepName", "isComplete", "previousAction", "nextAction"]);
46889
+ return React__default.createElement(
46890
+ FooterRoot,
46891
+ __assign$3({}, restProps),
46892
+ React__default.createElement(FooterAction, { action: previousAction, actionType: "Previous" }),
46893
+ React__default.createElement(ProgressStepper, { steps, stepName, isComplete }),
46894
+ React__default.createElement(FooterAction, { action: nextAction, actionType: "Next" })
46895
+ );
46896
+ };
46897
+ Footer.displayName = "Workflow.Footer";
46898
+
46899
+ var tag = {};
46900
+
46901
+ var Tag$1 = {};
46902
+
46903
+ var Tag = {};
46904
+
46905
+ var img$5 = "data:image/svg+xml,%3csvg width='20' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8.67 2.822 2.16 15.849A1.486 1.486 0 0 0 3.488 18h13.024a1.486 1.486 0 0 0 1.33-2.151L11.328 2.822c-.548-1.096-2.11-1.096-2.658 0Z' fill='black'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.8 15H9.2v-1.6h1.6V15Zm0-3.2H9.2V7h1.6v4.8Z' fill='white'/%3e%3c/svg%3e";
46906
+
46907
+ var cautionWhite_icon = /*#__PURE__*/Object.freeze({
46908
+ __proto__: null,
46909
+ default: img$5
46910
+ });
46911
+
46912
+ var require$$3$1 = /*@__PURE__*/getAugmentedNamespace(cautionWhite_icon);
46913
+
46914
+ var img$4 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 47.1 (45422) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3eclear%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M10%2c2 C5.576%2c2 2%2c5.576 2%2c10 C2%2c14.424 5.576%2c18 10%2c18 C14.424%2c18 18%2c14.424 18%2c10 C18%2c5.576 14.424%2c2 10%2c2 L10%2c2 Z' id='path-1'%3e%3c/path%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='clear'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Icons/Actions/clear' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3cpolygon id='Path' fill='white' points='14 12.872 12.872 14 10 11.128 7.128 14 6 12.872 8.872 10 6 7.128 7.128 6 10 8.872 12.872 6 14 7.128 11.128 10'%3e%3c/polygon%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
46915
+
46916
+ var clearWhite_icon = /*#__PURE__*/Object.freeze({
46917
+ __proto__: null,
46918
+ default: img$4
46919
+ });
46920
+
46921
+ var require$$4$1 = /*@__PURE__*/getAugmentedNamespace(clearWhite_icon);
46922
+
46923
+ var img$3 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 48.2 (47327) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3e2. Atoms/Icons/Informational/warning%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M10%2c18 C14.418278%2c18 18%2c14.418278 18%2c10 C18%2c5.581722 14.418278%2c2 10%2c2 C5.581722%2c2 2%2c5.581722 2%2c10 C2%2c14.418278 5.581722%2c18 10%2c18 Z' id='path-1'%3e%3c/path%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='2.-Atoms/Icons/Informational/warning'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Oval' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3cpolygon id='Path' fill='white' points='10.8 14 9.2 14 9.2 12.4 10.8 12.4'%3e%3c/polygon%3e %3cpolygon id='Path' fill='white' points='10.8 10.8 9.2 10.8 9.2 6 10.8 6'%3e%3c/polygon%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
46924
+
46925
+ var exclamationWhite_icon = /*#__PURE__*/Object.freeze({
46926
+ __proto__: null,
46927
+ default: img$3
46928
+ });
46929
+
46930
+ var require$$5$1 = /*@__PURE__*/getAugmentedNamespace(exclamationWhite_icon);
46931
+
46932
+ var img$2 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3einformation-white%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M10%2c2 C14.42%2c2 18%2c5.58 18%2c10 C18%2c14.42 14.42%2c18 10%2c18 C5.58%2c18 2%2c14.42 2%2c10 C2%2c5.58 5.58%2c2 10%2c2 Z M9.2%2c7.6 L10.8%2c7.6 L10.8%2c6 L9.2%2c6 L9.2%2c7.6 Z M9.2%2c14 L10.8%2c14 L10.8%2c9.2 L9.2%2c9.2 L9.2%2c14 Z' id='path-1'%3e%3c/path%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='information-white'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Combined-Shape' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
46933
+
46934
+ var information_icon = /*#__PURE__*/Object.freeze({
46935
+ __proto__: null,
46936
+ default: img$2
46937
+ });
46938
+
46939
+ var require$$6 = /*@__PURE__*/getAugmentedNamespace(information_icon);
46940
+
46941
+ var img$1 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3esuccess%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M10%2c2 C14.416%2c2 18%2c5.584 18%2c10 C18%2c14.416 14.416%2c18 10%2c18 C5.584%2c18 2%2c14.416 2%2c10 C2%2c5.584 5.584%2c2 10%2c2 Z M8.4%2c14 L15.6%2c6.8 L14.472%2c5.664 L8.4%2c11.736 L5.528%2c8.872 L4.4%2c10 L8.4%2c14 Z' id='path-1'%3e%3c/path%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='success'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse id='Combined-Shape' fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
46942
+
46943
+ var success_icon = /*#__PURE__*/Object.freeze({
46944
+ __proto__: null,
46945
+ default: img$1
46946
+ });
46947
+
46948
+ var require$$7 = /*@__PURE__*/getAugmentedNamespace(success_icon);
46949
+
46950
+ var avatar = {};
46951
+
46952
+ var Avatar$2 = {};
46953
+
46954
+ var Avatar$1 = {};
46955
+
46956
+ var lib = {};
46957
+
46958
+ var Textfit = {};
46959
+
46960
+ var shallowEqual$1 = {};
46961
+
46962
+ Object.defineProperty(shallowEqual$1, "__esModule", {
46963
+ value: true
46964
+ });
46965
+ shallowEqual$1.default = shallowEqual;
46966
+ function shallowEqual(objA, objB) {
46967
+ if (objA === objB) {
46968
+ return true;
46969
+ }
46970
+
46971
+ var keysA = Object.keys(objA);
46972
+ var keysB = Object.keys(objB);
46973
+
46974
+ if (keysA.length !== keysB.length) {
46975
+ return false;
46976
+ }
46977
+
46978
+ // Test for A's keys different from B.
46979
+ var hasOwn = Object.prototype.hasOwnProperty;
46980
+ for (var i = 0; i < keysA.length; i++) {
46981
+ if (!hasOwn.call(objB, keysA[i]) || objA[keysA[i]] !== objB[keysA[i]]) {
46982
+ return false;
46983
+ }
46984
+ }
46985
+
46986
+ return true;
46987
+ }
46988
+
46989
+ var series$1 = {};
46990
+
46991
+ Object.defineProperty(series$1, "__esModule", {
46992
+ value: true
46993
+ });
46994
+ series$1.default = series;
46995
+
46996
+ var _process = require$$0;
46997
+
46998
+ var _process2 = _interopRequireDefault$2(_process);
46999
+
47000
+ function _interopRequireDefault$2(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
47001
+
47002
+ function series(tasks, cb) {
47003
+ var results = [];
47004
+ var current = 0;
47005
+ var isSync = true;
47006
+
47007
+ function done(err) {
47008
+ function end() {
47009
+ if (cb) cb(err, results);
47010
+ }
47011
+ if (isSync) _process2.default.nextTick(end);else end();
47012
+ }
47013
+
47014
+ function each(err, result) {
47015
+ results.push(result);
47016
+ if (++current >= tasks.length || err) done(err);else tasks[current](each);
47017
+ }
47018
+
47019
+ if (tasks.length > 0) tasks[0](each);else done(null);
47020
+
47021
+ isSync = false;
47022
+ } /**
47023
+ * Run the functions in the tasks array in series, each one running once the previous function has completed.
47024
+ * If any functions in the series pass an error to its callback, no more functions are run,
47025
+ * and callback is immediately called with the value of the error. Otherwise, callback receives an array of results
47026
+ * when tasks have completed.
47027
+ * Taken from https://github.com/feross/run-series
47028
+ *
47029
+ * @params {Array} tasks An array containing functions to run, each function is passed a callback(err, result) which it must call on completion with an error err (which can be null) and an optional result value.
47030
+ * @params {Function} callback(err, results) - An optional callback to run once all the functions have completed. This function gets a results array containing all the result arguments passed to the task callbacks.
47031
+ */
47032
+
47033
+ var whilst$1 = {};
47034
+
47035
+ Object.defineProperty(whilst$1, "__esModule", {
47036
+ value: true
47037
+ });
47038
+ whilst$1.default = whilst;
47039
+ var noop$1 = function noop() {};
47040
+
47041
+ /**
47042
+ * Repeatedly call fn, while test returns true. Calls callback when stopped, or an error occurs.
47043
+ *
47044
+ * @param {Function} test Synchronous truth test to perform before each execution of fn.
47045
+ * @param {Function} fn A function which is called each time test passes. The function is passed a callback(err), which must be called once it has completed with an optional err argument.
47046
+ * @param {Function} callback A callback which is called after the test fails and repeated execution of fn has stopped.
47047
+ */
47048
+
47049
+ function whilst(test, iterator) {
47050
+ var callback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : noop$1;
47051
+
47052
+ if (test()) {
47053
+ iterator(function next(err) {
47054
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
47055
+ args[_key - 1] = arguments[_key];
47056
+ }
47057
+
47058
+ if (err) {
47059
+ callback(err);
47060
+ } else if (test.apply(this, args)) {
47061
+ iterator(next);
47062
+ } else {
47063
+ callback(null);
47064
+ }
47065
+ });
47066
+ } else {
47067
+ callback(null);
47068
+ }
47069
+ }
47070
+
47071
+ var throttle$1 = {};
47072
+
47073
+ Object.defineProperty(throttle$1, "__esModule", {
47074
+ value: true
47075
+ });
47076
+ throttle$1.default = throttle;
47077
+ /**
47078
+ * Returns a new function that, when invoked, invokes `func` at most once per `wait` milliseconds.
47079
+ * Taken from https://github.com/component/throttle v1.0.0
47080
+ *
47081
+ * @param {Function} func Function to wrap.
47082
+ * @param {Number} wait Number of milliseconds that must elapse between `func` invocations.
47083
+ * @return {Function} A new function that wraps the `func` function passed in.
47084
+ */
47085
+
47086
+ function throttle(func, wait) {
47087
+ var ctx = void 0;
47088
+ var args = void 0;
47089
+ var rtn = void 0;
47090
+ var timeoutID = void 0;
47091
+ var last = 0;
47092
+
47093
+ function call() {
47094
+ timeoutID = 0;
47095
+ last = +new Date();
47096
+ rtn = func.apply(ctx, args);
47097
+ ctx = null;
47098
+ args = null;
47099
+ }
47100
+
47101
+ return function throttled() {
47102
+ ctx = this;
47103
+ args = arguments;
47104
+ var delta = new Date() - last;
47105
+ if (!timeoutID) {
47106
+ if (delta >= wait) call();else timeoutID = setTimeout(call, wait - delta);
47107
+ }
47108
+ return rtn;
47109
+ };
47110
+ }
47111
+
47112
+ var uniqueId$1 = {};
47113
+
47114
+ Object.defineProperty(uniqueId$1, "__esModule", {
47115
+ value: true
47116
+ });
47117
+ uniqueId$1.default = uniqueId;
47118
+ var uid = 0;
47119
+
47120
+ function uniqueId() {
47121
+ return uid++;
47122
+ }
47123
+
47124
+ var innerSize = {};
47125
+
47126
+ Object.defineProperty(innerSize, "__esModule", {
47127
+ value: true
47128
+ });
47129
+ innerSize.innerHeight = innerHeight;
47130
+ innerSize.innerWidth = innerWidth;
47131
+ // Calculate height without padding.
47132
+ function innerHeight(el) {
47133
+ var style = window.getComputedStyle(el, null);
47134
+ // Hidden iframe in Firefox returns null, https://github.com/malte-wessel/react-textfit/pull/34
47135
+ if (!style) return el.clientHeight;
47136
+ return el.clientHeight - parseInt(style.getPropertyValue("padding-top"), 10) - parseInt(style.getPropertyValue("padding-bottom"), 10);
47137
+ }
47138
+
47139
+ // Calculate width without padding.
47140
+ function innerWidth(el) {
47141
+ var style = window.getComputedStyle(el, null);
47142
+ // Hidden iframe in Firefox returns null, https://github.com/malte-wessel/react-textfit/pull/34
47143
+ if (!style) return el.clientWidth;
47144
+ return el.clientWidth - parseInt(style.getPropertyValue("padding-left"), 10) - parseInt(style.getPropertyValue("padding-right"), 10);
47145
+ }
47146
+
47147
+ Object.defineProperty(Textfit, "__esModule", {
47148
+ value: true
47149
+ });
47150
+
47151
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
47152
+
47153
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
47154
+
47155
+ var _react = React__default;
47156
+
47157
+ var _react2 = _interopRequireDefault$1(_react);
47158
+
47159
+ var _propTypes = propTypesExports;
47160
+
47161
+ var _propTypes2 = _interopRequireDefault$1(_propTypes);
47162
+
47163
+ var _shallowEqual = shallowEqual$1;
47164
+
47165
+ var _shallowEqual2 = _interopRequireDefault$1(_shallowEqual);
47166
+
47167
+ var _series = series$1;
47168
+
47169
+ var _series2 = _interopRequireDefault$1(_series);
47170
+
47171
+ var _whilst = whilst$1;
47172
+
47173
+ var _whilst2 = _interopRequireDefault$1(_whilst);
47174
+
47175
+ var _throttle = throttle$1;
47176
+
47177
+ var _throttle2 = _interopRequireDefault$1(_throttle);
47178
+
47179
+ var _uniqueId = uniqueId$1;
47180
+
47181
+ var _uniqueId2 = _interopRequireDefault$1(_uniqueId);
47182
+
47183
+ var _innerSize = innerSize;
47184
+
47185
+ function _interopRequireDefault$1(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
47186
+
47187
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
47188
+
47189
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
47190
+
47191
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
47192
+
47193
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
47194
+
47195
+ function assertElementFitsWidth(el, width) {
47196
+ // -1: temporary bugfix, will be refactored soon
47197
+ return el.scrollWidth - 1 <= width;
47198
+ }
47199
+
47200
+ function assertElementFitsHeight(el, height) {
47201
+ // -1: temporary bugfix, will be refactored soon
47202
+ return el.scrollHeight - 1 <= height;
47203
+ }
47204
+
47205
+ function noop() {}
47206
+
47207
+ var TextFit = function (_React$Component) {
47208
+ _inherits(TextFit, _React$Component);
47209
+
47210
+ function TextFit(props) {
47211
+ _classCallCheck(this, TextFit);
47212
+
47213
+ var _this = _possibleConstructorReturn(this, (TextFit.__proto__ || Object.getPrototypeOf(TextFit)).call(this, props));
47214
+
47215
+ _this.state = {
47216
+ fontSize: null,
47217
+ ready: false
47218
+ };
47219
+
47220
+ _this.handleWindowResize = function () {
47221
+ _this.process();
47222
+ };
47223
+
47224
+ if ('perfectFit' in props) {
47225
+ console.warn('TextFit property perfectFit has been removed.');
47226
+ }
47227
+
47228
+ _this.handleWindowResize = (0, _throttle2.default)(_this.handleWindowResize, props.throttle);
47229
+ return _this;
47230
+ }
47231
+
47232
+ _createClass(TextFit, [{
47233
+ key: 'componentDidMount',
47234
+ value: function componentDidMount() {
47235
+ var autoResize = this.props.autoResize;
47236
+
47237
+ if (autoResize) {
47238
+ window.addEventListener('resize', this.handleWindowResize);
47239
+ }
47240
+ this.process();
47241
+ }
47242
+ }, {
47243
+ key: 'componentDidUpdate',
47244
+ value: function componentDidUpdate(prevProps) {
47245
+ var ready = this.state.ready;
47246
+
47247
+ if (!ready) return;
47248
+ if ((0, _shallowEqual2.default)(this.props, prevProps)) return;
47249
+ this.process();
47250
+ }
47251
+ }, {
47252
+ key: 'componentWillUnmount',
47253
+ value: function componentWillUnmount() {
47254
+ var autoResize = this.props.autoResize;
47255
+
47256
+ if (autoResize) {
47257
+ window.removeEventListener('resize', this.handleWindowResize);
47258
+ }
47259
+ // Setting a new pid will cancel all running processes
47260
+ this.pid = (0, _uniqueId2.default)();
47261
+ }
47262
+ }, {
47263
+ key: 'process',
47264
+ value: function process() {
47265
+ var _this2 = this;
47266
+
47267
+ var _props = this.props,
47268
+ min = _props.min,
47269
+ max = _props.max,
47270
+ mode = _props.mode,
47271
+ forceSingleModeWidth = _props.forceSingleModeWidth,
47272
+ onReady = _props.onReady;
47273
+
47274
+ var el = this._parent;
47275
+ var wrapper = this._child;
47276
+
47277
+ var originalWidth = (0, _innerSize.innerWidth)(el);
47278
+ var originalHeight = (0, _innerSize.innerHeight)(el);
47279
+
47280
+ if (originalHeight <= 0 || isNaN(originalHeight)) {
47281
+ console.warn('Can not process element without height. Make sure the element is displayed and has a static height.');
47282
+ return;
47283
+ }
47284
+
47285
+ if (originalWidth <= 0 || isNaN(originalWidth)) {
47286
+ console.warn('Can not process element without width. Make sure the element is displayed and has a static width.');
47287
+ return;
47288
+ }
47289
+
47290
+ var pid = (0, _uniqueId2.default)();
47291
+ this.pid = pid;
47292
+
47293
+ var shouldCancelProcess = function shouldCancelProcess() {
47294
+ return pid !== _this2.pid;
47295
+ };
47296
+
47297
+ var testPrimary = mode === 'multi' ? function () {
47298
+ return assertElementFitsHeight(wrapper, originalHeight);
47299
+ } : function () {
47300
+ return assertElementFitsWidth(wrapper, originalWidth);
47301
+ };
47302
+
47303
+ var testSecondary = mode === 'multi' ? function () {
47304
+ return assertElementFitsWidth(wrapper, originalWidth);
47305
+ } : function () {
47306
+ return assertElementFitsHeight(wrapper, originalHeight);
47307
+ };
47308
+
47309
+ var mid = void 0;
47310
+ var low = min;
47311
+ var high = max;
47312
+
47313
+ this.setState({ ready: false });
47314
+
47315
+ (0, _series2.default)([
47316
+ // Step 1:
47317
+ // Binary search to fit the element's height (multi line) / width (single line)
47318
+ function (stepCallback) {
47319
+ return (0, _whilst2.default)(function () {
47320
+ return low <= high;
47321
+ }, function (whilstCallback) {
47322
+ if (shouldCancelProcess()) return whilstCallback(true);
47323
+ mid = parseInt((low + high) / 2, 10);
47324
+ _this2.setState({ fontSize: mid }, function () {
47325
+ if (shouldCancelProcess()) return whilstCallback(true);
47326
+ if (testPrimary()) low = mid + 1;else high = mid - 1;
47327
+ return whilstCallback();
47328
+ });
47329
+ }, stepCallback);
47330
+ },
47331
+ // Step 2:
47332
+ // Binary search to fit the element's width (multi line) / height (single line)
47333
+ // If mode is single and forceSingleModeWidth is true, skip this step
47334
+ // in order to not fit the elements height and decrease the width
47335
+ function (stepCallback) {
47336
+ if (mode === 'single' && forceSingleModeWidth) return stepCallback();
47337
+ if (testSecondary()) return stepCallback();
47338
+ low = min;
47339
+ high = mid;
47340
+ return (0, _whilst2.default)(function () {
47341
+ return low < high;
47342
+ }, function (whilstCallback) {
47343
+ if (shouldCancelProcess()) return whilstCallback(true);
47344
+ mid = parseInt((low + high) / 2, 10);
47345
+ _this2.setState({ fontSize: mid }, function () {
47346
+ if (pid !== _this2.pid) return whilstCallback(true);
47347
+ if (testSecondary()) low = mid + 1;else high = mid - 1;
47348
+ return whilstCallback();
47349
+ });
47350
+ }, stepCallback);
47351
+ },
47352
+ // Step 3
47353
+ // Limits
47354
+ function (stepCallback) {
47355
+ // We break the previous loop without updating mid for the final time,
47356
+ // so we do it here:
47357
+ mid = Math.min(low, high);
47358
+
47359
+ // Ensure we hit the user-supplied limits
47360
+ mid = Math.max(mid, min);
47361
+ mid = Math.min(mid, max);
47362
+
47363
+ // Sanity check:
47364
+ mid = Math.max(mid, 0);
47365
+
47366
+ if (shouldCancelProcess()) return stepCallback(true);
47367
+ _this2.setState({ fontSize: mid }, stepCallback);
47368
+ }], function (err) {
47369
+ // err will be true, if another process was triggered
47370
+ if (err || shouldCancelProcess()) return;
47371
+ _this2.setState({ ready: true }, function () {
47372
+ return onReady(mid);
47373
+ });
47374
+ });
47375
+ }
47376
+ }, {
47377
+ key: 'render',
47378
+ value: function render() {
47379
+ var _this3 = this;
47380
+
47381
+ var _props2 = this.props,
47382
+ children = _props2.children,
47383
+ text = _props2.text,
47384
+ style = _props2.style;
47385
+ _props2.min;
47386
+ _props2.max;
47387
+ var mode = _props2.mode;
47388
+ _props2.forceWidth;
47389
+ _props2.forceSingleModeWidth;
47390
+ _props2.throttle;
47391
+ _props2.autoResize;
47392
+ _props2.onReady;
47393
+ var props = _objectWithoutProperties(_props2, ['children', 'text', 'style', 'min', 'max', 'mode', 'forceWidth', 'forceSingleModeWidth', 'throttle', 'autoResize', 'onReady']);
47394
+
47395
+ var _state = this.state,
47396
+ fontSize = _state.fontSize,
47397
+ ready = _state.ready;
47398
+
47399
+ var finalStyle = _extends({}, style, {
47400
+ fontSize: fontSize
47401
+ });
47402
+
47403
+ var wrapperStyle = {
47404
+ display: ready ? 'block' : 'inline-block'
47405
+ };
47406
+ if (mode === 'single') wrapperStyle.whiteSpace = 'nowrap';
47407
+
47408
+ return _react2.default.createElement(
47409
+ 'div',
47410
+ _extends({ ref: function ref(c) {
47411
+ return _this3._parent = c;
47412
+ }, style: finalStyle }, props),
47413
+ _react2.default.createElement(
47414
+ 'div',
47415
+ { ref: function ref(c) {
47416
+ return _this3._child = c;
47417
+ }, style: wrapperStyle },
47418
+ text && typeof children === 'function' ? ready ? children(text) : text : children
47419
+ )
47420
+ );
47421
+ }
47422
+ }]);
47423
+
47424
+ return TextFit;
47425
+ }(_react2.default.Component);
47426
+
47427
+ TextFit.propTypes = {
47428
+ children: _propTypes2.default.node,
47429
+ text: _propTypes2.default.string,
47430
+ min: _propTypes2.default.number,
47431
+ max: _propTypes2.default.number,
47432
+ mode: _propTypes2.default.oneOf(['single', 'multi']),
47433
+ forceSingleModeWidth: _propTypes2.default.bool,
47434
+ throttle: _propTypes2.default.number,
47435
+ onReady: _propTypes2.default.func
47436
+ };
47437
+ TextFit.defaultProps = {
47438
+ min: 1,
47439
+ max: 100,
47440
+ mode: 'multi',
47441
+ forceSingleModeWidth: true,
47442
+ throttle: 50,
47443
+ autoResize: true,
47444
+ onReady: noop
47445
+ };
47446
+ Textfit.default = TextFit;
47447
+
47448
+ Object.defineProperty(lib, "__esModule", {
47449
+ value: true
47450
+ });
47451
+ lib.Textfit = undefined;
47452
+
47453
+ var _Textfit = Textfit;
47454
+
47455
+ var _Textfit2 = _interopRequireDefault(_Textfit);
47456
+
47457
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
47458
+
47459
+ lib.Textfit = _Textfit2.default;
47460
+ lib.default = _Textfit2.default;
47461
+
47462
+ var img = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3csvg width='20px' height='20px' viewBox='0 0 20 20' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3c!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --%3e %3ctitle%3euser%3c/title%3e %3cdesc%3eCreated with Sketch.%3c/desc%3e %3cdefs%3e %3cpath d='M10%2c12 C7.33%2c12 2%2c13.34 2%2c16 L2%2c18 L18%2c18 L18%2c16 C18%2c13.34 12.67%2c12 10%2c12 M10%2c10 C12.21%2c10 14%2c8.21 14%2c6 C14%2c3.79 12.21%2c2 10%2c2 C7.79%2c2 6%2c3.79 6%2c6 C6%2c8.21 7.79%2c10 10%2c10' id='path-1'%3e%3c/path%3e %3c/defs%3e %3cg id='Symbols' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='user'%3e %3cmask id='mask-2' fill='white'%3e %3cuse xlink:href='%23path-1'%3e%3c/use%3e %3c/mask%3e %3cuse fill='black' xlink:href='%23path-1'%3e%3c/use%3e %3c/g%3e %3c/g%3e%3c/svg%3e";
47463
+
47464
+ var user_icon = /*#__PURE__*/Object.freeze({
47465
+ __proto__: null,
47466
+ default: img
47467
+ });
47468
+
47469
+ var require$$4 = /*@__PURE__*/getAugmentedNamespace(user_icon);
47470
+
47471
+ var Avatar_module = {"wrapper":"Avatar-module_wrapper__Z0f9l","small":"Avatar-module_small__jGh0-","personal":"Avatar-module_personal__dF-Ou","otherUser":"Avatar-module_otherUser__p-EP2","company":"Avatar-module_company__cX7Yd","initials":"Avatar-module_initials__KqQwi","medium":"Avatar-module_medium__1NEXg","large":"Avatar-module_large__HEyf8","xlarge":"Avatar-module_xlarge__efxpR","xxlarge":"Avatar-module_xxlarge__2Pd9d","avatarImage":"Avatar-module_avatarImage__3BogQ","loading":"Avatar-module_loading__pRyVI","companyAvatarImage":"Avatar-module_companyAvatarImage__QAPBc","fallbackIcon":"Avatar-module_fallbackIcon__wsRF7","longName":"Avatar-module_longName__E6V7H"};
47472
+
47473
+ var Avatar_module$1 = /*#__PURE__*/Object.freeze({
47474
+ __proto__: null,
47475
+ default: Avatar_module
47476
+ });
47477
+
47478
+ var require$$5 = /*@__PURE__*/getAugmentedNamespace(Avatar_module$1);
47479
+
47480
+ var __assign$1 = commonjsGlobal && commonjsGlobal.__assign || function() {
47481
+ __assign$1 = Object.assign || function(t) {
47482
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
47483
+ s = arguments[i];
47484
+ for (var p in s)
47485
+ if (Object.prototype.hasOwnProperty.call(s, p))
47486
+ t[p] = s[p];
47487
+ }
47488
+ return t;
47489
+ };
47490
+ return __assign$1.apply(this, arguments);
47491
+ };
47492
+ var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
47493
+ if (k2 === void 0)
47494
+ k2 = k;
47495
+ var desc = Object.getOwnPropertyDescriptor(m, k);
47496
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
47497
+ desc = { enumerable: true, get: function() {
47498
+ return m[k];
47499
+ } };
47500
+ }
47501
+ Object.defineProperty(o, k2, desc);
47502
+ } : function(o, m, k, k2) {
47503
+ if (k2 === void 0)
47504
+ k2 = k;
47505
+ o[k2] = m[k];
47506
+ });
47507
+ var __setModuleDefault = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v) {
47508
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
47509
+ } : function(o, v) {
47510
+ o["default"] = v;
47511
+ });
47512
+ var __importStar = commonjsGlobal && commonjsGlobal.__importStar || function(mod) {
47513
+ if (mod && mod.__esModule)
47514
+ return mod;
47515
+ var result = {};
47516
+ if (mod != null) {
47517
+ for (var k in mod)
47518
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
47519
+ __createBinding(result, mod, k);
47520
+ }
47521
+ __setModuleDefault(result, mod);
47522
+ return result;
47523
+ };
47524
+ var __rest$1 = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
47525
+ var t = {};
47526
+ for (var p in s)
47527
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
47528
+ t[p] = s[p];
47529
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
47530
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
47531
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
47532
+ t[p[i]] = s[p[i]];
47533
+ }
47534
+ return t;
47535
+ };
47536
+ var __importDefault$1 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
47537
+ return mod && mod.__esModule ? mod : { "default": mod };
47538
+ };
47539
+ Avatar$1.__esModule = true;
47540
+ Avatar$1.Avatar = void 0;
47541
+ var react_1$1 = __importStar(React__default);
47542
+ var classnames_1$1 = __importDefault$1(classnamesExports);
47543
+ var react_textfit_1 = lib;
47544
+ var component_library_1 = componentLibrary;
47545
+ var user_icon_svg_1 = __importDefault$1(require$$4);
47546
+ var Avatar_module_scss_1 = __importDefault$1(require$$5);
47547
+ var getInitials = function(fullName, max2Characters) {
47548
+ if (max2Characters === void 0) {
47549
+ max2Characters = false;
47550
+ }
47551
+ return fullName == null ? "" : fullName.split(/\s/).reduce(function(acc, name) {
47552
+ return "".concat(acc).concat(name.slice(0, 1));
47553
+ }, "").toUpperCase().substring(0, max2Characters ? 2 : 8);
47554
+ };
47555
+ var getMaxFontSizePixels = function(size) {
47556
+ if (size === "small")
47557
+ return 8;
47558
+ if (size === "medium")
47559
+ return 16;
47560
+ if (size === "xlarge" || size === "xxlarge")
47561
+ return 34;
47562
+ return 22;
47563
+ };
47564
+ var fallbackIcon = function(fullName) {
47565
+ return react_1$1["default"].createElement(
47566
+ "span",
47567
+ { className: Avatar_module_scss_1["default"].fallbackIcon },
47568
+ react_1$1["default"].createElement(component_library_1.Icon, { inheritSize: true, role: fullName ? "img" : "presentation", title: fullName, icon: user_icon_svg_1["default"] })
47569
+ );
47570
+ };
47571
+ var renderInitials = function(fullName, size, disableInitials) {
47572
+ if (fullName === void 0) {
47573
+ fullName = "";
47574
+ }
47575
+ if (disableInitials === void 0) {
47576
+ disableInitials = false;
47577
+ }
47578
+ var initials = getInitials(fullName);
47579
+ var isLongName = initials.length > 2 && size !== "small";
47580
+ var renderFallback = disableInitials || initials === "";
47581
+ return renderFallback ? fallbackIcon(fullName) : react_1$1["default"].createElement("abbr", { className: (0, classnames_1$1["default"])(Avatar_module_scss_1["default"].initials, isLongName && Avatar_module_scss_1["default"].longName), title: fullName || "" }, isLongName ? (
47582
+ // Only called if 3 or more initials, fits text width for long names
47583
+ react_1$1["default"].createElement(react_textfit_1.Textfit, { mode: "single", max: getMaxFontSizePixels(size) }, initials)
47584
+ ) : getInitials(fullName, size === "small"));
47585
+ };
47586
+ var Avatar = function(_a) {
47587
+ var fullName = _a.fullName, _b = _a.size, size = _b === void 0 ? "medium" : _b, avatarSrc = _a.avatarSrc, _c = _a.disableInitials, disableInitials = _c === void 0 ? false : _c, _d = _a.isCompany, isCompany = _d === void 0 ? false : _d, _e = _a.isCurrentUser, isCurrentUser = _e === void 0 ? true : _e, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["fullName", "size", "avatarSrc", "disableInitials", "isCompany", "isCurrentUser", "classNameOverride"]);
47588
+ var _f = (0, react_1$1.useState)(avatarSrc ? "loading" : "none"), avatarState = _f[0], setAvatarState = _f[1];
47589
+ var image = (0, react_1$1.useRef)(null);
47590
+ var renderInitialAvatar = !isCompany && (avatarState === "none" || avatarState === "error");
47591
+ (0, react_1$1.useEffect)(function() {
47592
+ setAvatarState(avatarSrc ? "loading" : "none");
47593
+ }, [avatarSrc]);
47594
+ var onImageFailure = function() {
47595
+ return setAvatarState("error");
47596
+ };
47597
+ var onImageSuccess = function() {
47598
+ return setAvatarState("success");
47599
+ };
47600
+ (0, react_1$1.useEffect)(function() {
47601
+ var _a2;
47602
+ if ((_a2 = image === null || image === void 0 ? void 0 : image.current) === null || _a2 === void 0 ? void 0 : _a2.complete)
47603
+ onImageSuccess();
47604
+ }, [image]);
47605
+ var isNoneOrError = avatarState === "none" || avatarState === "error";
47606
+ var isPersonal = isNoneOrError && isCurrentUser;
47607
+ var isOtherUser = isNoneOrError && !isCurrentUser;
47608
+ return react_1$1["default"].createElement(
47609
+ "span",
47610
+ __assign$1({ className: (0, classnames_1$1["default"])(Avatar_module_scss_1["default"].wrapper, Avatar_module_scss_1["default"][size], classNameOverride, isCompany && Avatar_module_scss_1["default"].company, isPersonal && Avatar_module_scss_1["default"].personal, isOtherUser && Avatar_module_scss_1["default"].otherUser, (avatarState === "loading" || avatarState === "error") && Avatar_module_scss_1["default"].loading) }, restProps),
47611
+ avatarState !== "none" && react_1$1["default"].createElement("img", { ref: image, className: (0, classnames_1$1["default"])(Avatar_module_scss_1["default"].avatarImage, isCompany && Avatar_module_scss_1["default"].companyAvatarImage), src: avatarSrc, onError: onImageFailure, onLoad: onImageSuccess, alt: fullName || "" }),
47612
+ renderInitialAvatar && renderInitials(fullName, size, disableInitials)
47613
+ );
47614
+ };
47615
+ Avatar$1.Avatar = Avatar;
47616
+
47617
+ var AvatarGroup$1 = {};
47618
+
47619
+ var AvatarGroup_module = {"AvatarGroup":"AvatarGroup-module_AvatarGroup__yyC2u","small":"AvatarGroup-module_small__026qy","AvatarGroupItem":"AvatarGroup-module_AvatarGroupItem__tVQsT","medium":"AvatarGroup-module_medium__na3GI","large":"AvatarGroup-module_large__prOGN","AvatarCounter":"AvatarGroup-module_AvatarCounter__w0QVP"};
47620
+
47621
+ var AvatarGroup_module$1 = /*#__PURE__*/Object.freeze({
47622
+ __proto__: null,
47623
+ default: AvatarGroup_module
47624
+ });
47625
+
47626
+ var require$$3 = /*@__PURE__*/getAugmentedNamespace(AvatarGroup_module$1);
47627
+
47628
+ var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
47629
+ __assign = Object.assign || function(t) {
47630
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
47631
+ s = arguments[i];
47632
+ for (var p in s)
47633
+ if (Object.prototype.hasOwnProperty.call(s, p))
47634
+ t[p] = s[p];
47635
+ }
47636
+ return t;
47637
+ };
47638
+ return __assign.apply(this, arguments);
47639
+ };
47640
+ var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
47641
+ var t = {};
47642
+ for (var p in s)
47643
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
47644
+ t[p] = s[p];
47645
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
47646
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
47647
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
47648
+ t[p[i]] = s[p[i]];
47649
+ }
47650
+ return t;
47651
+ };
47652
+ var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
47653
+ return mod && mod.__esModule ? mod : { "default": mod };
47654
+ };
47655
+ AvatarGroup$1.__esModule = true;
47656
+ AvatarGroup$1.AvatarGroup = void 0;
47657
+ var react_1 = __importDefault(React__default);
47658
+ var classnames_1 = __importDefault(classnamesExports);
47659
+ var Avatar_1 = Avatar$1;
47660
+ var AvatarGroup_module_scss_1 = __importDefault(require$$3);
47661
+ var renderCounter = function(remainingAvatars) {
47662
+ if (remainingAvatars <= 0)
47663
+ return;
47664
+ return react_1["default"].createElement(
47665
+ "li",
47666
+ { "aria-label": "There ".concat(remainingAvatars > 1 ? "are ".concat(remainingAvatars, " other members") : "is ".concat(remainingAvatars, " other member"), " of this group"), className: AvatarGroup_module_scss_1["default"].AvatarGroupItem },
47667
+ react_1["default"].createElement("span", { className: AvatarGroup_module_scss_1["default"].AvatarCounter, "aria-hidden": true }, "+".concat(remainingAvatars))
47668
+ );
47669
+ };
47670
+ var renderAvatars = function(avatars, maxVisible, size) {
47671
+ return react_1["default"].createElement(
47672
+ react_1["default"].Fragment,
47673
+ null,
47674
+ avatars === null || avatars === void 0 ? void 0 : avatars.map(function(avatarProps, index) {
47675
+ return index < maxVisible && react_1["default"].createElement(
47676
+ "li",
47677
+ { key: "avatar-".concat(index), className: AvatarGroup_module_scss_1["default"].AvatarGroupItem },
47678
+ react_1["default"].createElement(Avatar_1.Avatar, __assign({}, avatarProps, { size }))
47679
+ );
47680
+ }),
47681
+ renderCounter((avatars === null || avatars === void 0 ? void 0 : avatars.length) - maxVisible)
47682
+ );
47683
+ };
47684
+ var AvatarGroup = function(_a) {
47685
+ var _b = _a.size, size = _b === void 0 ? "medium" : _b, _c = _a.maxVisible, maxVisible = _c === void 0 ? 2 : _c, avatars = _a.avatars, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["size", "maxVisible", "avatars", "classNameOverride"]);
47686
+ return react_1["default"].createElement("ul", __assign({ className: (0, classnames_1["default"])(AvatarGroup_module_scss_1["default"].AvatarGroup, AvatarGroup_module_scss_1["default"][size], classNameOverride), "aria-label": "Avatar Group" }, restProps), renderAvatars(avatars, maxVisible, size));
47687
+ };
47688
+ AvatarGroup$1.AvatarGroup = AvatarGroup;
47689
+
47690
+ (function(exports) {
47691
+ var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
47692
+ if (k2 === void 0)
47693
+ k2 = k;
47694
+ var desc = Object.getOwnPropertyDescriptor(m, k);
47695
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
47696
+ desc = { enumerable: true, get: function() {
47697
+ return m[k];
47698
+ } };
47699
+ }
47700
+ Object.defineProperty(o, k2, desc);
47701
+ } : function(o, m, k, k2) {
47702
+ if (k2 === void 0)
47703
+ k2 = k;
47704
+ o[k2] = m[k];
47705
+ });
47706
+ var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
47707
+ for (var p in m)
47708
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
47709
+ __createBinding(exports2, m, p);
47710
+ };
47711
+ exports.__esModule = true;
47712
+ __exportStar(Avatar$1, exports);
47713
+ __exportStar(AvatarGroup$1, exports);
47714
+ })(Avatar$2);
47715
+
47716
+ (function(exports) {
47717
+ var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
47718
+ if (k2 === void 0)
47719
+ k2 = k;
47720
+ var desc = Object.getOwnPropertyDescriptor(m, k);
47721
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
47722
+ desc = { enumerable: true, get: function() {
47723
+ return m[k];
47724
+ } };
47725
+ }
47726
+ Object.defineProperty(o, k2, desc);
47727
+ } : function(o, m, k, k2) {
47728
+ if (k2 === void 0)
47729
+ k2 = k;
47730
+ o[k2] = m[k];
47731
+ });
47732
+ var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
47733
+ for (var p in m)
47734
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
47735
+ __createBinding(exports2, m, p);
47736
+ };
47737
+ exports.__esModule = true;
47738
+ __exportStar(Avatar$2, exports);
47739
+ })(avatar);
47740
+
47741
+ var Tag_module = {"root":"Tag-module_root__ZoDW8","profile":"Tag-module_profile__Ehf-K","layoutContainer":"Tag-module_layoutContainer__LWT-U","validationIcon":"Tag-module_validationIcon__s6PsN","textContent":"Tag-module_textContent__I6Xpa","iconWrapper":"Tag-module_iconWrapper__18lT7","dismissButton":"Tag-module_dismissButton__LdCmP","background":"Tag-module_background__0uo93","truncate":"Tag-module_truncate__-LIzQ","inline":"Tag-module_inline__eXwDM","medium":"Tag-module_medium__Eu-Al","small":"Tag-module_small__N9Fgj","default":"Tag-module_default__ktMsS","sentimentPositive":"Tag-module_sentimentPositive__P9FK6","sentimentNeutral":"Tag-module_sentimentNeutral__sHWK8","sentimentNegative":"Tag-module_sentimentNegative__AtFz2","sentimentNone":"Tag-module_sentimentNone__djSUk","validationPositive":"Tag-module_validationPositive__uG3EH","validationInformative":"Tag-module_validationInformative__dfOBN","validationNegative":"Tag-module_validationNegative__VH5WS","validationCautionary":"Tag-module_validationCautionary__0y7aC","statusLive":"Tag-module_statusLive__UdadP","statusAction":"Tag-module_statusAction__MY6Yl","statusClosed":"Tag-module_statusClosed__7bQU3","statusDraft":"Tag-module_statusDraft__c-z-g","pulse":"Tag-module_pulse__e1HBQ","pulseRing":"Tag-module_pulseRing__DEU34","pulsate":"Tag-module_pulsate__a0hjU"};
47742
+
47743
+ var Tag_module$1 = /*#__PURE__*/Object.freeze({
47744
+ __proto__: null,
47745
+ default: Tag_module
47746
+ });
47747
+
47748
+ var require$$9 = /*@__PURE__*/getAugmentedNamespace(Tag_module$1);
47749
+
47750
+ (function(exports) {
47751
+ var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
47752
+ __assign = Object.assign || function(t) {
47753
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
47754
+ s = arguments[i];
47755
+ for (var p in s)
47756
+ if (Object.prototype.hasOwnProperty.call(s, p))
47757
+ t[p] = s[p];
47758
+ }
47759
+ return t;
47760
+ };
47761
+ return __assign.apply(this, arguments);
47762
+ };
47763
+ var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
47764
+ return mod && mod.__esModule ? mod : { "default": mod };
47765
+ };
47766
+ exports.__esModule = true;
47767
+ exports.Tag = void 0;
47768
+ var react_1 = __importDefault(React__default);
47769
+ var classnames_1 = __importDefault(classnamesExports);
47770
+ var component_library_1 = componentLibrary;
47771
+ var caution_white_icon_svg_1 = __importDefault(require$$3$1);
47772
+ var clear_white_icon_svg_1 = __importDefault(require$$4$1);
47773
+ var exclamation_white_icon_svg_1 = __importDefault(require$$5$1);
47774
+ var information_icon_svg_1 = __importDefault(require$$6);
47775
+ var success_icon_svg_1 = __importDefault(require$$7);
47776
+ var draft_avatar_1 = avatar;
47777
+ var Tag_module_scss_1 = __importDefault(require$$9);
47778
+ var isJSXElement = function(imageElementOrAvatarProps) {
47779
+ return "props" in imageElementOrAvatarProps;
47780
+ };
47781
+ var renderAvatar = function(imageElementOrAvatarProps) {
47782
+ return isJSXElement(imageElementOrAvatarProps) ? react_1["default"].createElement(react_1["default"].Fragment, null, imageElementOrAvatarProps) : react_1["default"].createElement(draft_avatar_1.Avatar, __assign({}, imageElementOrAvatarProps, { size: "small" }));
47783
+ };
47784
+ var Tag = function(props) {
47785
+ var children = props.children, _a = props.variant, variant = _a === void 0 ? "default" : _a, _b = props.size, size = _b === void 0 ? "medium" : _b, _c = props.inline, inline = _c === void 0 ? false : _c, _d = props.dismissible, dismissible = _d === void 0 ? false : _d, onDismiss = props.onDismiss, onMouseDown = props.onMouseDown, onMouseLeave = props.onMouseLeave, truncateWidth = props.truncateWidth;
47786
+ var isTruncated = truncateWidth && truncateWidth > 0;
47787
+ var canShowIcon = size === "medium";
47788
+ return react_1["default"].createElement(
47789
+ "div",
47790
+ { className: (0, classnames_1["default"])(Tag_module_scss_1["default"].root, Tag_module_scss_1["default"][variant], variant === "profile" && Tag_module_scss_1["default"]["default"], Tag_module_scss_1["default"][size], inline && Tag_module_scss_1["default"].inline, dismissible && Tag_module_scss_1["default"].dismissible) },
47791
+ react_1["default"].createElement(
47792
+ "div",
47793
+ { className: Tag_module_scss_1["default"].layoutContainer },
47794
+ react_1["default"].createElement(
47795
+ react_1["default"].Fragment,
47796
+ null,
47797
+ canShowIcon && function() {
47798
+ switch (props.variant) {
47799
+ case "validationPositive":
47800
+ return react_1["default"].createElement(
47801
+ "span",
47802
+ { className: Tag_module_scss_1["default"].validationIcon },
47803
+ react_1["default"].createElement(component_library_1.Icon, { icon: success_icon_svg_1["default"], role: "presentation" })
47804
+ );
47805
+ case "validationNegative":
47806
+ return react_1["default"].createElement(
47807
+ "span",
47808
+ { className: Tag_module_scss_1["default"].validationIcon },
47809
+ react_1["default"].createElement(component_library_1.Icon, { icon: exclamation_white_icon_svg_1["default"], role: "presentation" })
47810
+ );
47811
+ case "validationCautionary":
47812
+ return react_1["default"].createElement(
47813
+ "span",
47814
+ { className: Tag_module_scss_1["default"].validationIcon },
47815
+ react_1["default"].createElement(component_library_1.Icon, { icon: caution_white_icon_svg_1["default"], role: "presentation" })
47816
+ );
47817
+ case "validationInformative":
47818
+ return react_1["default"].createElement(
47819
+ "span",
47820
+ { className: Tag_module_scss_1["default"].validationIcon },
47821
+ react_1["default"].createElement(component_library_1.Icon, { icon: information_icon_svg_1["default"], role: "presentation" })
47822
+ );
47823
+ case "profile":
47824
+ return react_1["default"].createElement("span", { className: Tag_module_scss_1["default"].profile }, props.avatar && renderAvatar(props.avatar));
47825
+ default:
47826
+ return;
47827
+ }
47828
+ }(),
47829
+ react_1["default"].createElement("span", { className: (0, classnames_1["default"])(Tag_module_scss_1["default"].textContent, isTruncated && Tag_module_scss_1["default"].truncate), style: {
47830
+ maxWidth: isTruncated ? truncateWidth : void 0
47831
+ } }, children),
47832
+ dismissible && react_1["default"].createElement(
47833
+ react_1["default"].Fragment,
47834
+ null,
47835
+ react_1["default"].createElement(
47836
+ "button",
47837
+ { type: "button", className: Tag_module_scss_1["default"].dismissButton, onClick: onDismiss, onMouseDown, onMouseLeave },
47838
+ react_1["default"].createElement(
47839
+ "div",
47840
+ { className: Tag_module_scss_1["default"].iconWrapper },
47841
+ react_1["default"].createElement(component_library_1.Icon, { icon: clear_white_icon_svg_1["default"], inheritSize: true, role: "img", title: "Dismiss" })
47842
+ )
47843
+ )
47844
+ ),
47845
+ variant === "statusLive" && react_1["default"].createElement(
47846
+ "span",
47847
+ { className: Tag_module_scss_1["default"].pulse },
47848
+ react_1["default"].createElement("span", { className: Tag_module_scss_1["default"].pulseRing })
47849
+ )
47850
+ )
47851
+ )
47852
+ );
47853
+ };
47854
+ exports.Tag = Tag;
47855
+ exports.Tag.displayName = "Tag";
47856
+ })(Tag);
47857
+
47858
+ (function(exports) {
47859
+ var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
47860
+ if (k2 === void 0)
47861
+ k2 = k;
47862
+ var desc = Object.getOwnPropertyDescriptor(m, k);
47863
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
47864
+ desc = { enumerable: true, get: function() {
47865
+ return m[k];
47866
+ } };
47867
+ }
47868
+ Object.defineProperty(o, k2, desc);
47869
+ } : function(o, m, k, k2) {
47870
+ if (k2 === void 0)
47871
+ k2 = k;
47872
+ o[k2] = m[k];
47873
+ });
47874
+ var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
47875
+ for (var p in m)
47876
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
47877
+ __createBinding(exports2, m, p);
47878
+ };
47879
+ exports.__esModule = true;
47880
+ __exportStar(Tag, exports);
47881
+ })(Tag$1);
47882
+
47883
+ (function(exports) {
47884
+ var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
47885
+ if (k2 === void 0)
47886
+ k2 = k;
47887
+ var desc = Object.getOwnPropertyDescriptor(m, k);
47888
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
47889
+ desc = { enumerable: true, get: function() {
47890
+ return m[k];
47891
+ } };
47892
+ }
47893
+ Object.defineProperty(o, k2, desc);
47894
+ } : function(o, m, k, k2) {
47895
+ if (k2 === void 0)
47896
+ k2 = k;
47897
+ o[k2] = m[k];
47898
+ });
47899
+ var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
47900
+ for (var p in m)
47901
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
47902
+ __createBinding(exports2, m, p);
47903
+ };
47904
+ exports.__esModule = true;
47905
+ __exportStar(Tag$1, exports);
47906
+ })(tag);
47907
+
47908
+ var styles$4 = {"titles":"Titles-module_titles__tO9dZ","pageTitle":"Titles-module_pageTitle__7-ui0","prefix":"Titles-module_prefix__vV-WW","status":"Titles-module_status__RvbTg"};
47909
+
47910
+ var Titles = function(_a) {
47911
+ var workflowName = _a.workflowName, stepName = _a.stepName, status = _a.status, restProps = __rest$3(_a, ["workflowName", "stepName", "status"]);
47912
+ return React__default.createElement(
47913
+ "div",
47914
+ __assign$3({ className: styles$4.titles }, restProps),
47915
+ React__default.createElement(
47916
+ typography.Heading,
47917
+ { variant: "heading-1", tag: "h1", color: "dark", classNameOverride: styles$4.pageTitle },
47918
+ React__default.createElement(typography.Heading, { classNameOverride: styles$4.prefix, variant: "heading-6", tag: "span", color: "dark-reduced-opacity" }, workflowName),
47919
+ React__default.createElement("span", null, stepName)
47920
+ ),
47921
+ status && // status may need to be update by a fetch
47922
+ React__default.createElement(
47923
+ "div",
47924
+ { className: styles$4.status },
47925
+ React__default.createElement(tag.Tag, { inline: true, variant: (status === null || status === void 0 ? void 0 : status.variant) || "statusDraft" }, status === null || status === void 0 ? void 0 : status.content)
47926
+ )
47927
+ );
47928
+ };
47929
+ Titles.displayName = "Workflow.Titles";
47930
+
47931
+ var styles$3 = {"actions":"Actions-module_actions__2Zdtd"};
47932
+
47933
+ var Actions = function(_a) {
47934
+ var headerActions = _a.headerActions, restProps = __rest$3(_a, ["headerActions"]);
47935
+ return React__default.createElement("div", __assign$3({ className: styles$3.actions }, restProps), headerActions === null || headerActions === void 0 ? void 0 : headerActions.map(function(action, index) {
47936
+ return React__default.createElement(action.type, __assign$3({ key: "header-actions ".concat(index) }, action.props));
47937
+ }));
47938
+ };
47939
+ Actions.displayName = "Workflow.Actions";
47940
+
47941
+ var brand = {};
47942
+
47943
+ var Brand = {};
47944
+
47945
+ var dist = {};
47946
+
47947
+ dist.__esModule = true;
47948
+ dist.assetUrl = void 0;
47949
+ var ORIGIN_BASE_URL = "https://d1e7r7b0lb8p4d.cloudfront.net";
47950
+ var assetUrl = function(path) {
47951
+ return [ORIGIN_BASE_URL, path].join("/");
47952
+ };
47953
+ dist.assetUrl = assetUrl;
47954
+
47955
+ var Brand_module = {"img":"Brand-module_img__YE-W7"};
47956
+
47957
+ var Brand_module$1 = /*#__PURE__*/Object.freeze({
47958
+ __proto__: null,
47959
+ default: Brand_module
47960
+ });
47961
+
47962
+ var require$$2 = /*@__PURE__*/getAugmentedNamespace(Brand_module$1);
47963
+
47964
+ (function(exports) {
47965
+ var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
47966
+ __assign = Object.assign || function(t) {
47967
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
47968
+ s = arguments[i];
47969
+ for (var p in s)
47970
+ if (Object.prototype.hasOwnProperty.call(s, p))
47971
+ t[p] = s[p];
47972
+ }
47973
+ return t;
47974
+ };
47975
+ return __assign.apply(this, arguments);
47976
+ };
47977
+ var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
47978
+ var t = {};
47979
+ for (var p in s)
47980
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
47981
+ t[p] = s[p];
47982
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
47983
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
47984
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
47985
+ t[p[i]] = s[p[i]];
47986
+ }
47987
+ return t;
47988
+ };
47989
+ var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
47990
+ return mod && mod.__esModule ? mod : { "default": mod };
47991
+ };
47992
+ exports.__esModule = true;
47993
+ exports.Brand = void 0;
47994
+ var react_1 = __importDefault(React__default);
47995
+ var hosted_assets_1 = dist;
47996
+ var Brand_module_scss_1 = __importDefault(require$$2);
47997
+ var Brand = function(_a) {
47998
+ var variant = _a.variant, alt = _a.alt, _b = _a.reversed, reversed = _b === void 0 ? false : _b, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["variant", "alt", "reversed", "classNameOverride"]);
47999
+ var brandTheme = reversed ? "-reversed" : "-default";
48000
+ return react_1["default"].createElement(
48001
+ "picture",
48002
+ __assign({ className: classNameOverride }, restProps),
48003
+ react_1["default"].createElement("source", { srcSet: (0, hosted_assets_1.assetUrl)("brand/".concat(variant, "-reversed.svg")), media: "(forced-colors: active) and (prefers-color-scheme: dark)" }),
48004
+ react_1["default"].createElement("source", { srcSet: (0, hosted_assets_1.assetUrl)("brand/".concat(variant, "-default.svg")), media: "(forced-colors: active) and (prefers-color-scheme: light)" }),
48005
+ react_1["default"].createElement("img", { src: (0, hosted_assets_1.assetUrl)("brand/".concat(variant).concat(brandTheme, ".svg")), alt, className: Brand_module_scss_1["default"].img })
48006
+ );
48007
+ };
48008
+ exports.Brand = Brand;
48009
+ exports.Brand.displayName = "Brand";
48010
+ })(Brand);
48011
+
48012
+ (function(exports) {
48013
+ var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
48014
+ if (k2 === void 0)
48015
+ k2 = k;
48016
+ var desc = Object.getOwnPropertyDescriptor(m, k);
48017
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
48018
+ desc = { enumerable: true, get: function() {
48019
+ return m[k];
48020
+ } };
48021
+ }
48022
+ Object.defineProperty(o, k2, desc);
48023
+ } : function(o, m, k, k2) {
48024
+ if (k2 === void 0)
48025
+ k2 = k;
48026
+ o[k2] = m[k];
48027
+ });
48028
+ var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m, exports2) {
48029
+ for (var p in m)
48030
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
48031
+ __createBinding(exports2, m, p);
48032
+ };
48033
+ exports.__esModule = true;
48034
+ __exportStar(Brand, exports);
48035
+ })(brand);
48036
+
48037
+ var styles$2 = {"branding":"Branding-module_branding__Oayqr","logo":"Branding-module_logo__rTXU9"};
48038
+
48039
+ var Branding = function(_a) {
48040
+ var _b = _a.variant, variant = _b === void 0 ? "logo-horizontal" : _b, alt = _a.alt;
48041
+ return React__default.createElement(
48042
+ "div",
48043
+ { className: styles$2.branding },
48044
+ React__default.createElement(brand.Brand, { classNameOverride: styles$2.logo, variant, alt })
48045
+ );
48046
+ };
48047
+ Branding.displayName = "Workflow.Branding";
48048
+
48049
+ var styles$1 = {"root":"Root-module_root__cfRZi"};
48050
+
48051
+ var HeaderRoot = function(_a) {
48052
+ var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$3(_a, ["children", "classNameOverride"]);
48053
+ return React__default.createElement("header", __assign$3({ className: classnames(styles$1.root, classNameOverride) }, restProps), children);
48054
+ };
48055
+ HeaderRoot.displayName = "Workflow.HeaderRoot";
48056
+
48057
+ var Header = function(_a) {
48058
+ var workflowName = _a.workflowName, stepName = _a.stepName, status = _a.status, headerActions = _a.headerActions, restProps = __rest$3(_a, ["workflowName", "stepName", "status", "headerActions"]);
48059
+ return React__default.createElement(
48060
+ HeaderRoot,
48061
+ __assign$3({}, restProps),
48062
+ React__default.createElement(Branding, { alt: "Cultureamp" }),
48063
+ React__default.createElement(Titles, { workflowName, stepName, status }),
48064
+ React__default.createElement(Actions, { headerActions })
48065
+ );
48066
+ };
48067
+ Header.displayName = "Workflow.Header";
48068
+
48069
+ var Main = function(_a) {
48070
+ var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$3(_a, ["children", "classNameOverride"]);
48071
+ return React__default.createElement("main", __assign$3({ className: classnames([classNameOverride]) }, restProps), children);
48072
+ };
48073
+ Main.displayName = "Workflow.Main";
48074
+
48075
+ var styles = {"wrapper":"Wrapper-module_wrapper__EUUEZ"};
48076
+
48077
+ var Wrapper = function(_a) {
48078
+ var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$3(_a, ["children", "classNameOverride"]);
48079
+ return React__default.createElement("div", __assign$3({ className: classnames(styles.wrapper, classNameOverride) }, restProps), children);
48080
+ };
48081
+ Wrapper.displayName = "Workflow.Wrapper";
48082
+
48083
+ var WorkflowComponent = function(_a) {
48084
+ var stepName = _a.stepName, steps = _a.steps, isComplete = _a.isComplete, workflowName = _a.workflowName, status = _a.status, headerActions = _a.headerActions, children = _a.children, nextAction = _a.nextAction, previousAction = _a.previousAction, classNameOverride = _a.classNameOverride, restProps = __rest$3(_a, ["stepName", "steps", "isComplete", "workflowName", "status", "headerActions", "children", "nextAction", "previousAction", "classNameOverride"]);
48085
+ return React__default.createElement(
48086
+ Workflow.Wrapper,
48087
+ __assign$3({ classNameOverride }, restProps),
48088
+ React__default.createElement(Workflow.Header, { workflowName, stepName, status, headerActions }),
48089
+ React__default.createElement(Workflow.Main, null, children),
48090
+ React__default.createElement(Workflow.Footer, { stepName, steps, isComplete, nextAction, previousAction })
48091
+ );
48092
+ };
48093
+ var Workflow = Object.assign(WorkflowComponent, {
48094
+ Header,
48095
+ Footer,
48096
+ Main,
48097
+ ProgressStepper,
48098
+ Wrapper
48099
+ });
48100
+
48101
+ export { Filter, FilterButton, FilterButtonRemovable, FilterContents, FilterSelect, KaizenProvider, ThemeContext, ThemeManager, ThemeProvider, Workflow, defaultTheme, heartTheme, useTheme };
46711
48102
  //# sourceMappingURL=index.js.map