@oliasoft-open-source/react-ui-library 4.15.1-beta-10 → 4.15.1-beta-12

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.
package/dist/index.js CHANGED
@@ -11,12 +11,12 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
11
11
  var _docChanged, _ignoreNextExit, _suggesters, _next, _prev, _handlerMatches, _ignored, _removed, _lastChangeFromAppend, _a;
12
12
  import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
13
13
  import * as React$4 from "react";
14
- import React__default, { useContext, isValidElement, useState, useRef, useEffect, useCallback as useCallback$1, createElement, forwardRef, useMemo as useMemo$1, useLayoutEffect as useLayoutEffect$1, createContext, useReducer, useDebugValue, Fragment as Fragment$2, Component as Component$1, PureComponent, useImperativeHandle, memo, cloneElement as cloneElement$1 } from "react";
14
+ import React__default, { useContext, isValidElement, useState, useRef, useEffect, useCallback as useCallback$1, createElement, forwardRef, useMemo as useMemo$1, useLayoutEffect as useLayoutEffect$1, createContext, useReducer, useDebugValue, Fragment as Fragment$2, Component as Component$1, useImperativeHandle, memo, cloneElement as cloneElement$1 } from "react";
15
15
  import * as PropTypes from "prop-types";
16
16
  import PropTypes__default from "prop-types";
17
17
  import ReactDOM, { createPortal, unstable_batchedUpdates, render } from "react-dom";
18
18
  import { noop as noop$3, set, get as get$2, isString as isString$3, isNumber as isNumber$1, isBoolean as isBoolean$2, isFunction as isFunction$3, isEmpty, isArray as isArray$1, toNumber, debounce as debounce$2, isObject as isObject$5, isEqual as isEqual$4 } from "lodash";
19
- import { toString as toString$1, isScientificStringNum, roundToPrecision, toNum, validateNumber, cleanNumStr, stripLeadingZeros, roundToFixed, roundByMagnitude, unitFromQuantity, getUnit, KNOWN_UNITS, ALT_UNITS, isValueWithUnit, getValue as getValue$1, withUnit, convertSamePrecision, convertAndGetValue, split as split$1, label as label$b, isValidNum, getAltUnitsListByQuantity, altUnitsList, getUnitsForQuantity, roundByMagnitudeToFixed } from "@oliasoft-open-source/units";
19
+ import { toString as toString$1, isScientificStringNum, roundToPrecision, toNum, validateNumber, cleanNumStr, stripLeadingZeros, roundToFixed, roundByMagnitude, unitFromQuantity, getUnit, KNOWN_UNITS, ALT_UNITS, isValueWithUnit, getValue as getValue$1, withUnit, convertSamePrecision, convertAndGetValue, split as split$1, label as label$9, isValidNum, getAltUnitsListByQuantity, altUnitsList, getUnitsForQuantity, roundByMagnitudeToFixed } from "@oliasoft-open-source/units";
20
20
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
21
21
  function getDefaultExportFromCjs(x2) {
22
22
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
@@ -186,7 +186,7 @@ var InputType = /* @__PURE__ */ ((InputType2) => {
186
186
  })(InputType || {});
187
187
  const chevron = "_chevron_1kw4m_1";
188
188
  const expanded$2 = "_expanded_1kw4m_9";
189
- const styles$U = {
189
+ const styles$S = {
190
190
  chevron,
191
191
  expanded: expanded$2
192
192
  };
@@ -286,8 +286,8 @@ function __spreadArray$2(to2, from3, pack) {
286
286
  }
287
287
  return to2.concat(ar2 || Array.prototype.slice.call(from3));
288
288
  }
289
- typeof SuppressedError === "function" ? SuppressedError : function(error2, suppressed, message2) {
290
- var e2 = new Error(message2);
289
+ typeof SuppressedError === "function" ? SuppressedError : function(error2, suppressed, message) {
290
+ var e2 = new Error(message);
291
291
  return e2.name = "SuppressedError", e2.error = error2, e2.suppressed = suppressed, e2;
292
292
  };
293
293
  /*!
@@ -869,7 +869,7 @@ const wrapper$5 = "_wrapper_18jt2_1";
869
869
  const customSvg = "_customSvg_18jt2_8";
870
870
  const customPng = "_customPng_18jt2_11";
871
871
  const clickable$2 = "_clickable_18jt2_16";
872
- const styles$T = {
872
+ const styles$R = {
873
873
  wrapper: wrapper$5,
874
874
  customSvg,
875
875
  customPng,
@@ -1544,8 +1544,8 @@ const Icon = ({
1544
1544
  "div",
1545
1545
  {
1546
1546
  className: cx$2(
1547
- styles$T.wrapper,
1548
- (clickable2 || onClick) && !disabledContext ? styles$T.clickable : ""
1547
+ styles$R.wrapper,
1548
+ (clickable2 || onClick) && !disabledContext ? styles$R.clickable : ""
1549
1549
  ),
1550
1550
  style: style2,
1551
1551
  onClick: (evt) => onClick && !disabledContext ? onClick(evt) : void 0,
@@ -1553,7 +1553,7 @@ const Icon = ({
1553
1553
  children: isValidElement(icon2) ? icon2 : typeof icon2 === "string" && (icon2.includes(".svg") || icon2.includes("image/svg")) ? /* @__PURE__ */ jsx(
1554
1554
  ReactSVG,
1555
1555
  {
1556
- className: styles$T.customSvg,
1556
+ className: styles$R.customSvg,
1557
1557
  beforeInjection: (svg) => {
1558
1558
  if (size2) {
1559
1559
  svg.setAttribute("width", String(size2));
@@ -1562,26 +1562,26 @@ const Icon = ({
1562
1562
  },
1563
1563
  src: icon2
1564
1564
  }
1565
- ) : typeof icon2 === "string" && (icon2.includes(".png") || icon2.includes("image/png")) ? /* @__PURE__ */ jsx("img", { alt: "icon", className: styles$T.customPng, src: icon2 }) : typeof icon2 === "string" ? /* @__PURE__ */ jsx(NamedIcon, { icon: icon2 }) : null
1565
+ ) : typeof icon2 === "string" && (icon2.includes(".png") || icon2.includes("image/png")) ? /* @__PURE__ */ jsx("img", { alt: "icon", className: styles$R.customPng, src: icon2 }) : typeof icon2 === "string" ? /* @__PURE__ */ jsx(NamedIcon, { icon: icon2 }) : null
1566
1566
  }
1567
1567
  );
1568
1568
  };
1569
1569
  const Chevron = ({ expanded: expanded2 }) => {
1570
- return /* @__PURE__ */ jsx("span", { className: cx$2(styles$U.chevron, expanded2 ? styles$U.expanded : ""), children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_RIGHT }) });
1570
+ return /* @__PURE__ */ jsx("span", { className: cx$2(styles$S.chevron, expanded2 ? styles$S.expanded : ""), children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_RIGHT }) });
1571
1571
  };
1572
1572
  const accordion = "_accordion_15p8j_1";
1573
1573
  const accordionHeader = "_accordionHeader_15p8j_5";
1574
- const heading$6 = "_heading_15p8j_9";
1574
+ const heading$5 = "_heading_15p8j_9";
1575
1575
  const clickable$1 = "_clickable_15p8j_12";
1576
1576
  const bordered$4 = "_bordered_15p8j_18";
1577
1577
  const accordionContent = "_accordionContent_15p8j_18";
1578
1578
  const expanded$1 = "_expanded_15p8j_36";
1579
1579
  const padding$3 = "_padding_15p8j_44";
1580
1580
  const squareBottom = "_squareBottom_15p8j_47";
1581
- const styles$S = {
1581
+ const styles$Q = {
1582
1582
  accordion,
1583
1583
  accordionHeader,
1584
- heading: heading$6,
1584
+ heading: heading$5,
1585
1585
  clickable: clickable$1,
1586
1586
  bordered: bordered$4,
1587
1587
  accordionContent,
@@ -1603,21 +1603,21 @@ const AccordionBase = ({
1603
1603
  "div",
1604
1604
  {
1605
1605
  className: cx$2(
1606
- styles$S.accordion,
1607
- bordered2 ? styles$S.bordered : "",
1608
- expanded2 ? styles$S.expanded : "",
1609
- squareBottom2 ? styles$S.squareBottom : ""
1606
+ styles$Q.accordion,
1607
+ bordered2 ? styles$Q.bordered : "",
1608
+ expanded2 ? styles$Q.expanded : "",
1609
+ squareBottom2 ? styles$Q.squareBottom : ""
1610
1610
  ),
1611
1611
  children: [
1612
1612
  /* @__PURE__ */ jsxs(
1613
1613
  "div",
1614
1614
  {
1615
- className: cx$2(styles$S.accordionHeader, onClick ? styles$S.clickable : ""),
1615
+ className: cx$2(styles$Q.accordionHeader, onClick ? styles$Q.clickable : ""),
1616
1616
  onClick,
1617
1617
  "data-testid": testId,
1618
1618
  children: [
1619
1619
  /* @__PURE__ */ jsx(Chevron, { expanded: expanded2 }),
1620
- /* @__PURE__ */ jsx("div", { className: styles$S.heading, children: heading2 })
1620
+ /* @__PURE__ */ jsx("div", { className: styles$Q.heading, children: heading2 })
1621
1621
  ]
1622
1622
  }
1623
1623
  ),
@@ -1625,8 +1625,8 @@ const AccordionBase = ({
1625
1625
  "div",
1626
1626
  {
1627
1627
  className: cx$2(
1628
- styles$S.accordionContent,
1629
- bordered2 && padding2 ? styles$S.padding : ""
1628
+ styles$Q.accordionContent,
1629
+ bordered2 && padding2 ? styles$Q.padding : ""
1630
1630
  ),
1631
1631
  children
1632
1632
  }
@@ -1698,20 +1698,20 @@ const Accordion = ({
1698
1698
  };
1699
1699
  const checkbox = "_checkbox_1ybyr_1";
1700
1700
  const noLabel = "_noLabel_1ybyr_17";
1701
- const small$d = "_small_1ybyr_20";
1701
+ const small$b = "_small_1ybyr_20";
1702
1702
  const checkmark = "_checkmark_1ybyr_43";
1703
- const disabled$a = "_disabled_1ybyr_67";
1703
+ const disabled$8 = "_disabled_1ybyr_67";
1704
1704
  const noMargin$2 = "_noMargin_1ybyr_81";
1705
- const isInTable$4 = "_isInTable_1ybyr_84";
1705
+ const isInTable$3 = "_isInTable_1ybyr_84";
1706
1706
  const helpIconEnabled$2 = "_helpIconEnabled_1ybyr_87";
1707
- const styles$R = {
1707
+ const styles$P = {
1708
1708
  checkbox,
1709
1709
  noLabel,
1710
- small: small$d,
1710
+ small: small$b,
1711
1711
  checkmark,
1712
- disabled: disabled$a,
1712
+ disabled: disabled$8,
1713
1713
  noMargin: noMargin$2,
1714
- isInTable: isInTable$4,
1714
+ isInTable: isInTable$3,
1715
1715
  helpIconEnabled: helpIconEnabled$2
1716
1716
  };
1717
1717
  var MapShim = function() {
@@ -2207,12 +2207,12 @@ var index = function() {
2207
2207
  return ResizeObserver$2;
2208
2208
  }();
2209
2209
  var isProduction$3 = process.env.NODE_ENV === "production";
2210
- function warning$7(condition, message2) {
2210
+ function warning$7(condition, message) {
2211
2211
  if (!isProduction$3) {
2212
2212
  if (condition) {
2213
2213
  return;
2214
2214
  }
2215
- var text2 = "Warning: " + message2;
2215
+ var text2 = "Warning: " + message;
2216
2216
  if (typeof console !== "undefined") {
2217
2217
  console.warn(text2);
2218
2218
  }
@@ -2659,7 +2659,7 @@ function getShouldCloseAccordingToChildren(registrations, event) {
2659
2659
  return true;
2660
2660
  }
2661
2661
  function useGroup(_ref2) {
2662
- var isOpen2 = _ref2.isOpen, onOutsideClick = _ref2.onOutsideClick, onParentClose = _ref2.onParentClose;
2662
+ var isOpen = _ref2.isOpen, onOutsideClick = _ref2.onOutsideClick, onParentClose = _ref2.onParentClose;
2663
2663
  var trigger2 = useRef(null);
2664
2664
  var layer2 = useRef(null);
2665
2665
  var registrations = useRef(/* @__PURE__ */ new Set());
@@ -2693,7 +2693,7 @@ function useGroup(_ref2) {
2693
2693
  }, [possibleRegisterFn, shouldCloseWhenClickedOutside, onParentClose, registrations]);
2694
2694
  useEffect(function() {
2695
2695
  var isChild = typeof possibleRegisterFn === "function";
2696
- var shouldNotListen = !isOpen2 || !onOutsideClick || isChild;
2696
+ var shouldNotListen = !isOpen || !onOutsideClick || isChild;
2697
2697
  if (shouldNotListen) {
2698
2698
  return;
2699
2699
  }
@@ -2706,15 +2706,15 @@ function useGroup(_ref2) {
2706
2706
  return function() {
2707
2707
  return document.removeEventListener("click", handleClick2, true);
2708
2708
  };
2709
- }, [isOpen2, onOutsideClick, shouldCloseWhenClickedOutside, possibleRegisterFn]);
2709
+ }, [isOpen, onOutsideClick, shouldCloseWhenClickedOutside, possibleRegisterFn]);
2710
2710
  useEffect(function() {
2711
- if (!isOpen2) {
2711
+ if (!isOpen) {
2712
2712
  registrations.current.forEach(function(_ref4) {
2713
2713
  var closeChild = _ref4.closeChild;
2714
2714
  return closeChild();
2715
2715
  });
2716
2716
  }
2717
- }, [isOpen2]);
2717
+ }, [isOpen]);
2718
2718
  return {
2719
2719
  closeOnOutsideClickRefs: {
2720
2720
  trigger: trigger2,
@@ -3413,7 +3413,7 @@ var DEFAULT_OPTIONS$1 = {
3413
3413
  };
3414
3414
  function useLayer(_ref) {
3415
3415
  var _triggerBoundsRef$cur;
3416
- var _ref$isOpen = _ref.isOpen, isOpen2 = _ref$isOpen === void 0 ? false : _ref$isOpen, _ref$overflowContaine = _ref.overflowContainer, overflowContainer = _ref$overflowContaine === void 0 ? DEFAULT_OPTIONS$1.overflowContainer : _ref$overflowContaine, _ref$environment = _ref.environment, environment2 = _ref$environment === void 0 ? typeof window !== "undefined" ? window : void 0 : _ref$environment, ResizeObserverPolyfill = _ref.ResizeObserver, _ref$placement = _ref.placement, placement = _ref$placement === void 0 ? DEFAULT_OPTIONS$1.placement : _ref$placement, _ref$possiblePlacemen = _ref.possiblePlacements, possiblePlacements = _ref$possiblePlacemen === void 0 ? DEFAULT_OPTIONS$1.possiblePlacements : _ref$possiblePlacemen, _ref$preferX = _ref.preferX, preferX = _ref$preferX === void 0 ? DEFAULT_OPTIONS$1.preferX : _ref$preferX, _ref$preferY = _ref.preferY, preferY = _ref$preferY === void 0 ? DEFAULT_OPTIONS$1.preferY : _ref$preferY, _ref$auto = _ref.auto, auto2 = _ref$auto === void 0 ? DEFAULT_OPTIONS$1.auto : _ref$auto, _ref$snap = _ref.snap, snap = _ref$snap === void 0 ? DEFAULT_OPTIONS$1.snap : _ref$snap, _ref$triggerOffset = _ref.triggerOffset, triggerOffset = _ref$triggerOffset === void 0 ? DEFAULT_OPTIONS$1.triggerOffset : _ref$triggerOffset, _ref$containerOffset = _ref.containerOffset, containerOffset = _ref$containerOffset === void 0 ? DEFAULT_OPTIONS$1.containerOffset : _ref$containerOffset, _ref$arrowOffset = _ref.arrowOffset, arrowOffset = _ref$arrowOffset === void 0 ? DEFAULT_OPTIONS$1.arrowOffset : _ref$arrowOffset, _ref$container = _ref.container, container2 = _ref$container === void 0 ? DEFAULT_OPTIONS$1.container : _ref$container, _ref$layerDimensions = _ref.layerDimensions, layerDimensions = _ref$layerDimensions === void 0 ? null : _ref$layerDimensions, onDisappear = _ref.onDisappear, onOutsideClick = _ref.onOutsideClick, onParentClose = _ref.onParentClose, triggerOption = _ref.trigger;
3416
+ var _ref$isOpen = _ref.isOpen, isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen, _ref$overflowContaine = _ref.overflowContainer, overflowContainer = _ref$overflowContaine === void 0 ? DEFAULT_OPTIONS$1.overflowContainer : _ref$overflowContaine, _ref$environment = _ref.environment, environment2 = _ref$environment === void 0 ? typeof window !== "undefined" ? window : void 0 : _ref$environment, ResizeObserverPolyfill = _ref.ResizeObserver, _ref$placement = _ref.placement, placement = _ref$placement === void 0 ? DEFAULT_OPTIONS$1.placement : _ref$placement, _ref$possiblePlacemen = _ref.possiblePlacements, possiblePlacements = _ref$possiblePlacemen === void 0 ? DEFAULT_OPTIONS$1.possiblePlacements : _ref$possiblePlacemen, _ref$preferX = _ref.preferX, preferX = _ref$preferX === void 0 ? DEFAULT_OPTIONS$1.preferX : _ref$preferX, _ref$preferY = _ref.preferY, preferY = _ref$preferY === void 0 ? DEFAULT_OPTIONS$1.preferY : _ref$preferY, _ref$auto = _ref.auto, auto2 = _ref$auto === void 0 ? DEFAULT_OPTIONS$1.auto : _ref$auto, _ref$snap = _ref.snap, snap = _ref$snap === void 0 ? DEFAULT_OPTIONS$1.snap : _ref$snap, _ref$triggerOffset = _ref.triggerOffset, triggerOffset = _ref$triggerOffset === void 0 ? DEFAULT_OPTIONS$1.triggerOffset : _ref$triggerOffset, _ref$containerOffset = _ref.containerOffset, containerOffset = _ref$containerOffset === void 0 ? DEFAULT_OPTIONS$1.containerOffset : _ref$containerOffset, _ref$arrowOffset = _ref.arrowOffset, arrowOffset = _ref$arrowOffset === void 0 ? DEFAULT_OPTIONS$1.arrowOffset : _ref$arrowOffset, _ref$container = _ref.container, container2 = _ref$container === void 0 ? DEFAULT_OPTIONS$1.container : _ref$container, _ref$layerDimensions = _ref.layerDimensions, layerDimensions = _ref$layerDimensions === void 0 ? null : _ref$layerDimensions, onDisappear = _ref.onDisappear, onOutsideClick = _ref.onOutsideClick, onParentClose = _ref.onParentClose, triggerOption = _ref.trigger;
3417
3417
  var _useState = useState(function() {
3418
3418
  return {
3419
3419
  layerSide: placement === "center" ? "center" : Placements.getSidesFromPlacementType(placement)[0].prop,
@@ -3432,7 +3432,7 @@ function useLayer(_ref) {
3432
3432
  };
3433
3433
  }), state = _useState[0], setState = _useState[1];
3434
3434
  var triggerBoundsRef = useRef(null);
3435
- var lastState = useLastState(state, isOpen2);
3435
+ var lastState = useLastState(state, isOpen);
3436
3436
  var repositioningToken = useRef({
3437
3437
  cancelled: false
3438
3438
  });
@@ -3483,13 +3483,13 @@ function useLayer(_ref) {
3483
3483
  var _useTrackElements = useTrackElements({
3484
3484
  ResizeObserverPolyfill,
3485
3485
  environment: environment2,
3486
- enabled: isOpen2,
3486
+ enabled: isOpen,
3487
3487
  overflowContainer,
3488
3488
  onChange: handlePositioning,
3489
3489
  triggerOption
3490
3490
  }), triggerRef = _useTrackElements.triggerRef, layerRef = _useTrackElements.layerRef, arrowRef = _useTrackElements.arrowRef, closestScrollContainer = _useTrackElements.closestScrollContainer;
3491
3491
  var _useGroup = useGroup({
3492
- isOpen: isOpen2,
3492
+ isOpen,
3493
3493
  onOutsideClick,
3494
3494
  onParentClose
3495
3495
  }), closeOnOutsideClickRefs = _useGroup.closeOnOutsideClickRefs, registrations = _useGroup.registrations;
@@ -3507,7 +3507,7 @@ function useLayer(_ref) {
3507
3507
  layerSide: state.layerSide
3508
3508
  },
3509
3509
  layerSide: state.layerSide,
3510
- triggerBounds: isOpen2 ? triggerOption ? triggerOption.getBounds() : (_triggerBoundsRef$cur = triggerBoundsRef.current) == null ? void 0 : _triggerBoundsRef$cur.getBoundingClientRect() : null,
3510
+ triggerBounds: isOpen ? triggerOption ? triggerOption.getBounds() : (_triggerBoundsRef$cur = triggerBoundsRef.current) == null ? void 0 : _triggerBoundsRef$cur.getBoundingClientRect() : null,
3511
3511
  renderLayer: function renderLayer(children) {
3512
3512
  return typeof document !== "undefined" ? createPortal(createElement(GroupProvider, {
3513
3513
  registrations,
@@ -3711,7 +3711,7 @@ function useHover(_temp) {
3711
3711
  const tooltip = "_tooltip_wli9z_1";
3712
3712
  const error$3 = "_error_wli9z_15";
3713
3713
  const warning$6 = "_warning_wli9z_19";
3714
- const styles$Q = {
3714
+ const styles$O = {
3715
3715
  tooltip,
3716
3716
  error: error$3,
3717
3717
  warning: warning$6
@@ -3742,8 +3742,8 @@ const TooltipLayer = ({
3742
3742
  "div",
3743
3743
  {
3744
3744
  className: cx$2(
3745
- styles$Q.tooltip,
3746
- error2 ? styles$Q.error : warning2 ? styles$Q.warning : ""
3745
+ styles$O.tooltip,
3746
+ error2 ? styles$O.error : warning2 ? styles$O.warning : ""
3747
3747
  ),
3748
3748
  ...layerProps,
3749
3749
  children: [
@@ -3779,9 +3779,9 @@ const Tooltip = ({
3779
3779
  delayEnter: 100,
3780
3780
  delayLeave: 0
3781
3781
  });
3782
- const isOpen2 = !visible ? false : forceOpen ? true : isOver;
3782
+ const isOpen = !visible ? false : forceOpen ? true : isOver;
3783
3783
  const { renderLayer, triggerProps, layerProps, arrowProps } = useLayer({
3784
- isOpen: isOpen2,
3784
+ isOpen,
3785
3785
  overflowContainer: true,
3786
3786
  ResizeObserver: index,
3787
3787
  auto: true,
@@ -3791,7 +3791,7 @@ const Tooltip = ({
3791
3791
  onParentClose: forceClose
3792
3792
  });
3793
3793
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
3794
- isOpen2 && renderLayer(
3794
+ isOpen && renderLayer(
3795
3795
  /* @__PURE__ */ jsx(
3796
3796
  TooltipLayer,
3797
3797
  {
@@ -3812,7 +3812,7 @@ const Tooltip = ({
3812
3812
  const helpIcon = "_helpIcon_hd0z2_1";
3813
3813
  const active$9 = "_active_hd0z2_9";
3814
3814
  const clickable = "_clickable_hd0z2_12";
3815
- const styles$P = {
3815
+ const styles$N = {
3816
3816
  helpIcon,
3817
3817
  active: active$9,
3818
3818
  clickable
@@ -3843,9 +3843,9 @@ const HelpIcon = ({
3843
3843
  "div",
3844
3844
  {
3845
3845
  className: cx$2(
3846
- styles$P.helpIcon,
3847
- onClick ? styles$P.clickable : "",
3848
- active2 ? styles$P.active : ""
3846
+ styles$N.helpIcon,
3847
+ onClick ? styles$N.clickable : "",
3848
+ active2 ? styles$N.active : ""
3849
3849
  ),
3850
3850
  onClick: onClickHelpIcon,
3851
3851
  "data-testid": testId,
@@ -3876,12 +3876,12 @@ const CheckBox = ({
3876
3876
  "div",
3877
3877
  {
3878
3878
  className: cx$2(
3879
- styles$R.checkbox,
3880
- noMargin2 && styles$R.noMargin,
3881
- isInTable2 && styles$R.isInTable,
3882
- isDisabled && styles$R.disabled,
3883
- small2 && styles$R.small,
3884
- !label2 && styles$R.noLabel
3879
+ styles$P.checkbox,
3880
+ noMargin2 && styles$P.noMargin,
3881
+ isInTable2 && styles$P.isInTable,
3882
+ isDisabled && styles$P.disabled,
3883
+ small2 && styles$P.small,
3884
+ !label2 && styles$P.noLabel
3885
3885
  ),
3886
3886
  "data-ix": dataix,
3887
3887
  onClick: (evt) => {
@@ -3913,10 +3913,10 @@ const CheckBox = ({
3913
3913
  }
3914
3914
  ),
3915
3915
  /* @__PURE__ */ jsxs("label", { htmlFor: name2, children: [
3916
- /* @__PURE__ */ jsx("span", { className: styles$R.checkmark, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHECK }) }),
3916
+ /* @__PURE__ */ jsx("span", { className: styles$P.checkmark, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHECK }) }),
3917
3917
  label2
3918
3918
  ] }),
3919
- showHelp && /* @__PURE__ */ jsx("div", { className: styles$R.helpIconEnabled, onClick: onClickHelp, children: /* @__PURE__ */ jsx(HelpIcon, { text: helpText }) })
3919
+ showHelp && /* @__PURE__ */ jsx("div", { className: styles$P.helpIconEnabled, onClick: onClickHelp, children: /* @__PURE__ */ jsx(HelpIcon, { text: helpText }) })
3920
3920
  ]
3921
3921
  }
3922
3922
  );
@@ -3925,7 +3925,7 @@ const bordered$3 = "_bordered_1cgsf_1";
3925
3925
  const checkboxWrapper = "_checkboxWrapper_1cgsf_7";
3926
3926
  const padding$2 = "_padding_1cgsf_13";
3927
3927
  const contentWrapper = "_contentWrapper_1cgsf_16";
3928
- const styles$O = {
3928
+ const styles$M = {
3929
3929
  bordered: bordered$3,
3930
3930
  checkboxWrapper,
3931
3931
  padding: padding$2,
@@ -3967,7 +3967,7 @@ const AccordionWithDefaultToggle = ({
3967
3967
  defaultEnabled
3968
3968
  });
3969
3969
  const content2 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
3970
- /* @__PURE__ */ jsx("div", { className: styles$O.checkboxWrapper, children: /* @__PURE__ */ jsx(
3970
+ /* @__PURE__ */ jsx("div", { className: styles$M.checkboxWrapper, children: /* @__PURE__ */ jsx(
3971
3971
  CheckBox,
3972
3972
  {
3973
3973
  label: toggleLabel,
@@ -3978,7 +3978,7 @@ const AccordionWithDefaultToggle = ({
3978
3978
  checked: state.defaultEnabled
3979
3979
  }
3980
3980
  ) }),
3981
- state.accordionExpanded && /* @__PURE__ */ jsx("div", { className: styles$O.contentWrapper, children })
3981
+ state.accordionExpanded && /* @__PURE__ */ jsx("div", { className: styles$M.contentWrapper, children })
3982
3982
  ] });
3983
3983
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
3984
3984
  /* @__PURE__ */ jsx(
@@ -3991,61 +3991,61 @@ const AccordionWithDefaultToggle = ({
3991
3991
  onClick: () => dispatch({ type: AccordionActionType.TOGGLE_ACCORDION })
3992
3992
  }
3993
3993
  ),
3994
- /* @__PURE__ */ jsx("div", { className: cx$2(styles$O.bordered, padding2 ? styles$O.padding : ""), children: content2 })
3994
+ /* @__PURE__ */ jsx("div", { className: cx$2(styles$M.bordered, padding2 ? styles$M.padding : ""), children: content2 })
3995
3995
  ] });
3996
3996
  };
3997
- const inputInTable$b = "_inputInTable_1m45a_1";
3998
- const inputHover$b = "_inputHover_1m45a_13";
3999
- const inputFocus$b = "_inputFocus_1m45a_18";
4000
- const inputError$b = "_inputError_1m45a_25";
4001
- const inputWarning$b = "_inputWarning_1m45a_26";
4002
- const inputDisabled$b = "_inputDisabled_1m45a_61";
4003
- const hideScrollbars$b = "_hideScrollbars_1m45a_67";
3997
+ const inputInTable$a = "_inputInTable_1m45a_1";
3998
+ const inputHover$a = "_inputHover_1m45a_13";
3999
+ const inputFocus$a = "_inputFocus_1m45a_18";
4000
+ const inputError$a = "_inputError_1m45a_25";
4001
+ const inputWarning$a = "_inputWarning_1m45a_26";
4002
+ const inputDisabled$a = "_inputDisabled_1m45a_61";
4003
+ const hideScrollbars$a = "_hideScrollbars_1m45a_67";
4004
4004
  const button$3 = "_button_1m45a_100";
4005
4005
  const active$8 = "_active_1m45a_135";
4006
4006
  const green$1 = "_green_1m45a_135";
4007
4007
  const red$1 = "_red_1m45a_135";
4008
4008
  const orange$1 = "_orange_1m45a_135";
4009
- const icon$5 = "_icon_1m45a_147";
4009
+ const icon$4 = "_icon_1m45a_147";
4010
4010
  const iconOnly = "_iconOnly_1m45a_153";
4011
4011
  const basic = "_basic_1m45a_163";
4012
4012
  const muted$2 = "_muted_1m45a_169";
4013
- const disabled$9 = "_disabled_1m45a_188";
4014
- const small$c = "_small_1m45a_198";
4013
+ const disabled$7 = "_disabled_1m45a_188";
4014
+ const small$a = "_small_1m45a_198";
4015
4015
  const pill = "_pill_1m45a_203";
4016
4016
  const round = "_round_1m45a_204";
4017
4017
  const inverted$1 = "_inverted_1m45a_310";
4018
- const groupOrderFirst$4 = "_groupOrderFirst_1m45a_340";
4019
- const groupOrderMiddle$4 = "_groupOrderMiddle_1m45a_341";
4020
- const groupOrderLast$4 = "_groupOrderLast_1m45a_342";
4018
+ const groupOrderFirst$3 = "_groupOrderFirst_1m45a_340";
4019
+ const groupOrderMiddle$3 = "_groupOrderMiddle_1m45a_341";
4020
+ const groupOrderLast$3 = "_groupOrderLast_1m45a_342";
4021
4021
  const buttonStyles = {
4022
- inputInTable: inputInTable$b,
4023
- inputHover: inputHover$b,
4024
- inputFocus: inputFocus$b,
4025
- inputError: inputError$b,
4026
- inputWarning: inputWarning$b,
4027
- inputDisabled: inputDisabled$b,
4028
- hideScrollbars: hideScrollbars$b,
4022
+ inputInTable: inputInTable$a,
4023
+ inputHover: inputHover$a,
4024
+ inputFocus: inputFocus$a,
4025
+ inputError: inputError$a,
4026
+ inputWarning: inputWarning$a,
4027
+ inputDisabled: inputDisabled$a,
4028
+ hideScrollbars: hideScrollbars$a,
4029
4029
  button: button$3,
4030
4030
  active: active$8,
4031
4031
  green: green$1,
4032
4032
  red: red$1,
4033
4033
  orange: orange$1,
4034
- icon: icon$5,
4034
+ icon: icon$4,
4035
4035
  iconOnly,
4036
4036
  basic,
4037
4037
  muted: muted$2,
4038
- disabled: disabled$9,
4039
- small: small$c,
4038
+ disabled: disabled$7,
4039
+ small: small$a,
4040
4040
  pill,
4041
4041
  round,
4042
4042
  inverted: inverted$1,
4043
- groupOrderFirst: groupOrderFirst$4,
4044
- groupOrderMiddle: groupOrderMiddle$4,
4045
- groupOrderLast: groupOrderLast$4
4043
+ groupOrderFirst: groupOrderFirst$3,
4044
+ groupOrderMiddle: groupOrderMiddle$3,
4045
+ groupOrderLast: groupOrderLast$3
4046
4046
  };
4047
4047
  const spinner = "_spinner_156m4_1";
4048
- const styles$N = {
4048
+ const styles$L = {
4049
4049
  spinner
4050
4050
  };
4051
4051
  const Spinner$1 = ({
@@ -4056,7 +4056,7 @@ const Spinner$1 = ({
4056
4056
  }) => {
4057
4057
  const color2 = colored2 ? "var(--color-text-primary)" : dark2 ? "var(--color-text-muted)" : "white";
4058
4058
  const fontSize = small2 ? "var(--font-size)" : tiny ? "var(--font-size-xs)" : "var(--size)";
4059
- return /* @__PURE__ */ jsx("div", { className: styles$N.spinner, style: { color: color2, fontSize } });
4059
+ return /* @__PURE__ */ jsx("div", { className: styles$L.spinner, style: { color: color2, fontSize } });
4060
4060
  };
4061
4061
  var ButtonType = /* @__PURE__ */ ((ButtonType2) => {
4062
4062
  ButtonType2["SUBMIT"] = "submit";
@@ -4180,84 +4180,84 @@ const actions$2 = "_actions_1t7vd_1";
4180
4180
  const childComponent = "_childComponent_1t7vd_11";
4181
4181
  const actionComponentContainer = "_actionComponentContainer_1t7vd_14";
4182
4182
  const active$7 = "_active_1t7vd_36";
4183
- const styles$M = {
4183
+ const styles$K = {
4184
4184
  actions: actions$2,
4185
4185
  childComponent,
4186
4186
  actionComponentContainer,
4187
4187
  active: active$7
4188
4188
  };
4189
4189
  const wrapper$4 = "_wrapper_8cxhw_1";
4190
- const layer$1 = "_layer_8cxhw_5";
4191
- const layerContainer$1 = "_layerContainer_8cxhw_8";
4190
+ const layer = "_layer_8cxhw_5";
4191
+ const layerContainer = "_layerContainer_8cxhw_8";
4192
4192
  const nested = "_nested_8cxhw_24";
4193
4193
  const fileInput$1 = "_fileInput_8cxhw_36";
4194
- const trigger$2 = "_trigger_8cxhw_41";
4194
+ const trigger$1 = "_trigger_8cxhw_41";
4195
4195
  const middleAlignedInline = "_middleAlignedInline_8cxhw_50";
4196
- const heading$5 = "_heading_8cxhw_56";
4196
+ const heading$4 = "_heading_8cxhw_56";
4197
4197
  const headingIcon = "_headingIcon_8cxhw_62";
4198
- const option$1 = "_option_8cxhw_74";
4198
+ const option = "_option_8cxhw_74";
4199
4199
  const active$6 = "_active_8cxhw_93";
4200
- const selected$1 = "_selected_8cxhw_98";
4201
- const optionContent$1 = "_optionContent_8cxhw_105";
4200
+ const selected = "_selected_8cxhw_98";
4201
+ const optionContent = "_optionContent_8cxhw_105";
4202
4202
  const inline$4 = "_inline_8cxhw_109";
4203
- const icon$4 = "_icon_8cxhw_114";
4204
- const check$1 = "_check_8cxhw_115";
4203
+ const icon$3 = "_icon_8cxhw_114";
4204
+ const check = "_check_8cxhw_115";
4205
4205
  const text$3 = "_text_8cxhw_141";
4206
- const label$a = "_label_8cxhw_146";
4206
+ const label$8 = "_label_8cxhw_146";
4207
4207
  const description = "_description_8cxhw_157";
4208
4208
  const arrow$1 = "_arrow_8cxhw_161";
4209
4209
  const divider$1 = "_divider_8cxhw_165";
4210
4210
  const deprecatedSemanticIcon = "_deprecatedSemanticIcon_8cxhw_169";
4211
- const disabled$8 = "_disabled_8cxhw_173";
4211
+ const disabled$6 = "_disabled_8cxhw_173";
4212
4212
  const buttonLabel = "_buttonLabel_8cxhw_178";
4213
4213
  const buttonCaret = "_buttonCaret_8cxhw_184";
4214
4214
  const component = "_component_8cxhw_188";
4215
- const right$7 = "_right_8cxhw_194";
4215
+ const right$6 = "_right_8cxhw_194";
4216
4216
  const actions$1 = "_actions_8cxhw_199";
4217
- const styles$L = {
4217
+ const styles$J = {
4218
4218
  wrapper: wrapper$4,
4219
- layer: layer$1,
4220
- layerContainer: layerContainer$1,
4219
+ layer,
4220
+ layerContainer,
4221
4221
  nested,
4222
4222
  fileInput: fileInput$1,
4223
- trigger: trigger$2,
4223
+ trigger: trigger$1,
4224
4224
  middleAlignedInline,
4225
- heading: heading$5,
4225
+ heading: heading$4,
4226
4226
  headingIcon,
4227
- option: option$1,
4227
+ option,
4228
4228
  active: active$6,
4229
- selected: selected$1,
4230
- optionContent: optionContent$1,
4229
+ selected,
4230
+ optionContent,
4231
4231
  inline: inline$4,
4232
- icon: icon$4,
4233
- check: check$1,
4232
+ icon: icon$3,
4233
+ check,
4234
4234
  text: text$3,
4235
- label: label$a,
4235
+ label: label$8,
4236
4236
  description,
4237
4237
  arrow: arrow$1,
4238
4238
  divider: divider$1,
4239
4239
  deprecatedSemanticIcon,
4240
- disabled: disabled$8,
4240
+ disabled: disabled$6,
4241
4241
  buttonLabel,
4242
4242
  buttonCaret,
4243
4243
  component,
4244
- right: right$7,
4244
+ right: right$6,
4245
4245
  actions: actions$1
4246
4246
  };
4247
- const Heading$3 = ({ label: label2, onClick, icon: icon2, testId }) => /* @__PURE__ */ jsxs(
4247
+ const Heading$2 = ({ label: label2, onClick, icon: icon2, testId }) => /* @__PURE__ */ jsxs(
4248
4248
  "div",
4249
4249
  {
4250
4250
  onClick: (evt) => evt.stopPropagation(),
4251
- className: styles$L.heading,
4251
+ className: styles$J.heading,
4252
4252
  "data-testid": testId,
4253
4253
  children: [
4254
4254
  label2,
4255
- /* @__PURE__ */ jsx("span", { className: styles$L.headingIcon, onClick, children: icon2 })
4255
+ /* @__PURE__ */ jsx("span", { className: styles$J.headingIcon, onClick, children: icon2 })
4256
4256
  ]
4257
4257
  }
4258
4258
  );
4259
- const Divider$1 = () => /* @__PURE__ */ jsx("hr", { className: styles$L.divider });
4260
- const Option$2 = ({
4259
+ const Divider$1 = () => /* @__PURE__ */ jsx("hr", { className: styles$J.divider });
4260
+ const Option$1 = ({
4261
4261
  actions: actions2,
4262
4262
  label: label2,
4263
4263
  url,
@@ -4309,30 +4309,30 @@ const Option$2 = ({
4309
4309
  href: url,
4310
4310
  to: url,
4311
4311
  className: cx$2(
4312
- styles$L.option,
4313
- disabled2 ? styles$L.disabled : "",
4314
- inline2 ? styles$L.inline : "",
4315
- selected2 ? styles$L.selected : ""
4312
+ styles$J.option,
4313
+ disabled2 ? styles$J.disabled : "",
4314
+ inline2 ? styles$J.inline : "",
4315
+ selected2 ? styles$J.selected : ""
4316
4316
  ),
4317
4317
  onClick: handleClick2,
4318
4318
  "data-testid": testId,
4319
4319
  children: [
4320
- icon2 ? /* @__PURE__ */ jsx("span", { className: styles$L.icon, children: /* @__PURE__ */ jsx(Icon, { icon: icon2 }) }) : null,
4321
- /* @__PURE__ */ jsxs("div", { className: styles$L.optionContent, children: [
4320
+ icon2 ? /* @__PURE__ */ jsx("span", { className: styles$J.icon, children: /* @__PURE__ */ jsx(Icon, { icon: icon2 }) }) : null,
4321
+ /* @__PURE__ */ jsxs("div", { className: styles$J.optionContent, children: [
4322
4322
  upload && /* @__PURE__ */ jsx(
4323
4323
  "input",
4324
4324
  {
4325
4325
  type: "file",
4326
- className: styles$L.fileInput,
4326
+ className: styles$J.fileInput,
4327
4327
  onChange: handleFileChange
4328
4328
  }
4329
4329
  ),
4330
- /* @__PURE__ */ jsx("span", { className: styles$L.label, title: `${title2 || label2}`, children: label2 }),
4331
- /* @__PURE__ */ jsx("span", { className: styles$L.description, children: description2 })
4330
+ /* @__PURE__ */ jsx("span", { className: styles$J.label, title: `${title2 || label2}`, children: label2 }),
4331
+ /* @__PURE__ */ jsx("span", { className: styles$J.description, children: description2 })
4332
4332
  ] }),
4333
- /* @__PURE__ */ jsxs("div", { className: styles$L.right, children: [
4334
- selected2 && /* @__PURE__ */ jsx("span", { className: styles$L.check, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHECK }) }),
4335
- !!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", { className: styles$L.actions, children: /* @__PURE__ */ jsx(Actions, { actions: actions2 }) })
4333
+ /* @__PURE__ */ jsxs("div", { className: styles$J.right, children: [
4334
+ selected2 && /* @__PURE__ */ jsx("span", { className: styles$J.check, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHECK }) }),
4335
+ !!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", { className: styles$J.actions, children: /* @__PURE__ */ jsx(Actions, { actions: actions2 }) })
4336
4336
  ] })
4337
4337
  ]
4338
4338
  }
@@ -4351,7 +4351,7 @@ var MenuCarat = /* @__PURE__ */ ((MenuCarat2) => {
4351
4351
  MenuCarat2["DOWN"] = "down";
4352
4352
  return MenuCarat2;
4353
4353
  })(MenuCarat || {});
4354
- const Section$1 = ({
4354
+ const Section = ({
4355
4355
  section: section2,
4356
4356
  closeOnOptionClick,
4357
4357
  close: close2,
@@ -4364,7 +4364,7 @@ const Section$1 = ({
4364
4364
  switch (section2.type) {
4365
4365
  case MenuType.HEADING:
4366
4366
  return /* @__PURE__ */ jsx(
4367
- Heading$3,
4367
+ Heading$2,
4368
4368
  {
4369
4369
  label: (section2 == null ? void 0 : section2.label) ?? "",
4370
4370
  onClick: section2.onClick,
@@ -4376,7 +4376,7 @@ const Section$1 = ({
4376
4376
  return /* @__PURE__ */ jsx(Divider$1, {});
4377
4377
  case MenuType.OPTION:
4378
4378
  return /* @__PURE__ */ jsx(
4379
- Option$2,
4379
+ Option$1,
4380
4380
  {
4381
4381
  actions: section2.actions,
4382
4382
  label: (section2 == null ? void 0 : section2.label) ?? "",
@@ -4424,7 +4424,7 @@ const childPath = (path, sectionIndex) => `${path}.sections[${sectionIndex}]`.re
4424
4424
  const closePath = (path) => `${path}.close`.replace(/^\./, "");
4425
4425
  const siblings = (tree2, path) => get$2(tree2, parentPath(path), []);
4426
4426
  const registerClose = (tree2, path, close2) => set(tree2, closePath(path), close2);
4427
- const Layer$2 = ({
4427
+ const Layer$1 = ({
4428
4428
  sections,
4429
4429
  isNested,
4430
4430
  width: width2,
@@ -4470,11 +4470,11 @@ const Layer$2 = ({
4470
4470
  return /* @__PURE__ */ jsx(
4471
4471
  "div",
4472
4472
  {
4473
- className: cx$2(styles$L.layer, isNested ? styles$L.nested : null),
4473
+ className: cx$2(styles$J.layer, isNested ? styles$J.nested : null),
4474
4474
  style: { maxWidth: width2, maxHeight },
4475
4475
  "data-testid": testId,
4476
4476
  children: /* @__PURE__ */ jsx("ul", { children: localSections.map((section2, i) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
4477
- Section$1,
4477
+ Section,
4478
4478
  {
4479
4479
  section: section2,
4480
4480
  closeOnOptionClick: section2.closeOnOptionClick,
@@ -4501,19 +4501,19 @@ const getType = (item2) => {
4501
4501
  };
4502
4502
  const wrapper$3 = "_wrapper_nwprz_1";
4503
4503
  const badge = "_badge_nwprz_5";
4504
- const label$9 = "_label_nwprz_11";
4504
+ const label$7 = "_label_nwprz_11";
4505
4505
  const dark = "_dark_nwprz_23";
4506
4506
  const light = "_light_nwprz_26";
4507
- const small$b = "_small_nwprz_29";
4507
+ const small$9 = "_small_nwprz_29";
4508
4508
  const dot$1 = "_dot_nwprz_33";
4509
4509
  const hasChildren = "_hasChildren_nwprz_39";
4510
- const styles$K = {
4510
+ const styles$I = {
4511
4511
  wrapper: wrapper$3,
4512
4512
  badge,
4513
- label: label$9,
4513
+ label: label$7,
4514
4514
  dark,
4515
4515
  light,
4516
- small: small$b,
4516
+ small: small$9,
4517
4517
  dot: dot$1,
4518
4518
  hasChildren
4519
4519
  };
@@ -4535,16 +4535,16 @@ const Badge = ({
4535
4535
  small: small2 = false
4536
4536
  }) => {
4537
4537
  const visible = !(title2 === null && dot2 === false);
4538
- return /* @__PURE__ */ jsxs("div", { className: styles$K.wrapper, children: [
4538
+ return /* @__PURE__ */ jsxs("div", { className: styles$I.wrapper, children: [
4539
4539
  visible && /* @__PURE__ */ jsx(
4540
4540
  "sup",
4541
4541
  {
4542
4542
  className: cx$2(
4543
- styles$K.badge,
4544
- isDark(color2) ? styles$K.dark : styles$K.light,
4545
- title2 !== null ? styles$K.label : styles$K.dot,
4546
- small2 ? styles$K.small : "",
4547
- children ? styles$K.hasChildren : ""
4543
+ styles$I.badge,
4544
+ isDark(color2) ? styles$I.dark : styles$I.light,
4545
+ title2 !== null ? styles$I.label : styles$I.dot,
4546
+ small2 ? styles$I.small : "",
4547
+ children ? styles$I.hasChildren : ""
4548
4548
  ),
4549
4549
  style: {
4550
4550
  background: color2 || void 0,
@@ -4570,16 +4570,16 @@ const Button = ({
4570
4570
  active: active2
4571
4571
  }) => {
4572
4572
  const disabledContext = useContext(DisabledContext);
4573
- const buttonLabel2 = trigger2 === TriggerType.BUTTON ? label2 : trigger2 === TriggerType.DROP_DOWN_BUTTON ? /* @__PURE__ */ jsxs("span", { className: styles$L.middleAlignedInline, children: [
4574
- /* @__PURE__ */ jsx("span", { className: styles$L.buttonLabel, children: label2 }),
4575
- /* @__PURE__ */ jsx("span", { className: styles$L.buttonCaret, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_DOWN }) })
4573
+ const buttonLabel2 = trigger2 === TriggerType.BUTTON ? label2 : trigger2 === TriggerType.DROP_DOWN_BUTTON ? /* @__PURE__ */ jsxs("span", { className: styles$J.middleAlignedInline, children: [
4574
+ /* @__PURE__ */ jsx("span", { className: styles$J.buttonLabel, children: label2 }),
4575
+ /* @__PURE__ */ jsx("span", { className: styles$J.buttonCaret, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_DOWN }) })
4576
4576
  ] }) : null;
4577
4577
  return /* @__PURE__ */ jsx(
4578
4578
  "div",
4579
4579
  {
4580
4580
  className: cx$2(
4581
- styles$L.trigger,
4582
- disabled2 || disabledContext ? styles$L.disabled : null
4581
+ styles$J.trigger,
4582
+ disabled2 || disabledContext ? styles$J.disabled : null
4583
4583
  ),
4584
4584
  style: { width: width2 },
4585
4585
  children: /* @__PURE__ */ jsx(
@@ -4607,7 +4607,7 @@ const Text$1 = ({
4607
4607
  title: title2,
4608
4608
  carat,
4609
4609
  disabled: disabled2,
4610
- isOpen: isOpen2,
4610
+ isOpen,
4611
4611
  selected: selected2
4612
4612
  }) => {
4613
4613
  let titleText;
@@ -4620,14 +4620,14 @@ const Text$1 = ({
4620
4620
  "div",
4621
4621
  {
4622
4622
  className: cx$2(
4623
- styles$L.trigger,
4624
- disabled2 ? styles$L.disabled : null,
4625
- isOpen2 ? styles$L.active : null,
4626
- selected2 ? styles$L.selected : null
4623
+ styles$J.trigger,
4624
+ disabled2 ? styles$J.disabled : null,
4625
+ isOpen ? styles$J.active : null,
4626
+ selected2 ? styles$J.selected : null
4627
4627
  ),
4628
4628
  children: [
4629
- /* @__PURE__ */ jsx("span", { className: styles$L.label, title: titleText, children: label2 }),
4630
- carat && carat === MenuCarat.RIGHT ? /* @__PURE__ */ jsx("span", { className: styles$L.arrow, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_RIGHT }) }) : carat && carat === MenuCarat.DOWN ? /* @__PURE__ */ jsx("span", { className: styles$L.arrow, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_DOWN }) }) : null
4629
+ /* @__PURE__ */ jsx("span", { className: styles$J.label, title: titleText, children: label2 }),
4630
+ carat && carat === MenuCarat.RIGHT ? /* @__PURE__ */ jsx("span", { className: styles$J.arrow, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_RIGHT }) }) : carat && carat === MenuCarat.DOWN ? /* @__PURE__ */ jsx("span", { className: styles$J.arrow, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHEVRON_DOWN }) }) : null
4631
4631
  ]
4632
4632
  }
4633
4633
  );
@@ -4640,7 +4640,7 @@ const Component = ({
4640
4640
  return /* @__PURE__ */ jsx(
4641
4641
  "div",
4642
4642
  {
4643
- className: cx$2(styles$L.component, disabled2 ? styles$L.disabled : null),
4643
+ className: cx$2(styles$J.component, disabled2 ? styles$J.disabled : null),
4644
4644
  "data-testid": testId,
4645
4645
  children: component2
4646
4646
  }
@@ -4666,7 +4666,7 @@ const TriggerTooltip = ({
4666
4666
  }
4667
4667
  );
4668
4668
  };
4669
- const Trigger$1 = React__default.forwardRef(
4669
+ const Trigger = React__default.forwardRef(
4670
4670
  ({
4671
4671
  isDisabled,
4672
4672
  badgeTitle,
@@ -4684,7 +4684,7 @@ const Trigger$1 = React__default.forwardRef(
4684
4684
  component: component2,
4685
4685
  groupOrder,
4686
4686
  fullHeight,
4687
- isOpen: isOpen2,
4687
+ isOpen,
4688
4688
  error: error2,
4689
4689
  warning: warning2,
4690
4690
  tooltip: tooltip2,
@@ -4705,7 +4705,7 @@ const Trigger$1 = React__default.forwardRef(
4705
4705
  loading,
4706
4706
  error: error2,
4707
4707
  warning: warning2,
4708
- active: isOpen2
4708
+ active: isOpen
4709
4709
  }
4710
4710
  ) : trigger2 === TriggerType.TEXT ? /* @__PURE__ */ jsx(
4711
4711
  Text$1,
@@ -4714,7 +4714,7 @@ const Trigger$1 = React__default.forwardRef(
4714
4714
  title: title2,
4715
4715
  disabled: isDisabled,
4716
4716
  carat: !contextMenu ? isNested ? MenuCarat.RIGHT : MenuCarat.DOWN : void 0,
4717
- isOpen: isOpen2,
4717
+ isOpen,
4718
4718
  selected: selected2
4719
4719
  }
4720
4720
  ) : trigger2 === TriggerType.COMPONENT ? /* @__PURE__ */ jsx(Component, { component: component2, disabled: isDisabled }) : null;
@@ -4723,7 +4723,7 @@ const Trigger$1 = React__default.forwardRef(
4723
4723
  "div",
4724
4724
  {
4725
4725
  ref: ref2,
4726
- className: styles$L.wrapper,
4726
+ className: styles$J.wrapper,
4727
4727
  style: width2 ? { width: width2 } : {
4728
4728
  ...fullHeight && {
4729
4729
  height: "100%",
@@ -4763,9 +4763,9 @@ const useContextMenu = ({
4763
4763
  }) => {
4764
4764
  const { hasMousePosition, resetMousePosition, handleMouseEvent, trigger: trigger2 } = useMousePositionAsTrigger();
4765
4765
  const close2 = resetMousePosition;
4766
- const isOpen2 = hasMousePosition;
4766
+ const isOpen = hasMousePosition;
4767
4767
  const { layerProps, renderLayer } = useLayer({
4768
- isOpen: isOpen2,
4768
+ isOpen,
4769
4769
  trigger: trigger2,
4770
4770
  ...placementOptions$1(placement),
4771
4771
  possiblePlacements,
@@ -4773,9 +4773,9 @@ const useContextMenu = ({
4773
4773
  onOutsideClick: close2,
4774
4774
  overflowContainer
4775
4775
  });
4776
- const layer2 = isOpen2 && renderLayer(
4776
+ const layer2 = isOpen && renderLayer(
4777
4777
  /* @__PURE__ */ jsx("div", { ...layerProps, children: /* @__PURE__ */ jsx(
4778
- Layer$2,
4778
+ Layer$1,
4779
4779
  {
4780
4780
  isNested: false,
4781
4781
  width: width2,
@@ -4830,7 +4830,7 @@ const ContextMenu = ({
4830
4830
  const isDisabled = disabled2 || isMenuEmpty(menu2) || disabledContext;
4831
4831
  return /* @__PURE__ */ jsxs("div", { onContextMenu, "data-testid": testId, children: [
4832
4832
  /* @__PURE__ */ jsx(
4833
- Trigger$1,
4833
+ Trigger,
4834
4834
  {
4835
4835
  width: width2,
4836
4836
  fullHeight: fullHeightTrigger,
@@ -4887,11 +4887,11 @@ const DropDownMenu = ({
4887
4887
  showAllButton,
4888
4888
  possiblePlacements = ["bottom-start", "top-start"]
4889
4889
  } = menu2;
4890
- const [isOpen2, setOpen] = isBoolean$2(openProp) && isFunction$3(setOpenProp) ? [openProp, setOpenProp] : useState(false);
4890
+ const [isOpen, setOpen] = isBoolean$2(openProp) && isFunction$3(setOpenProp) ? [openProp, setOpenProp] : useState(false);
4891
4891
  const close2 = () => setOpen(false);
4892
4892
  const open = () => setOpen(true);
4893
4893
  const { triggerProps, layerProps, renderLayer } = useLayer({
4894
- isOpen: isOpen2,
4894
+ isOpen,
4895
4895
  ...placementOptions$1(placement, isNested),
4896
4896
  possiblePlacements,
4897
4897
  ResizeObserver: index,
@@ -4905,7 +4905,7 @@ const DropDownMenu = ({
4905
4905
  if (isDisabled) {
4906
4906
  return;
4907
4907
  }
4908
- if (isOpen2) {
4908
+ if (isOpen) {
4909
4909
  close2();
4910
4910
  return;
4911
4911
  }
@@ -4918,7 +4918,7 @@ const DropDownMenu = ({
4918
4918
  };
4919
4919
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
4920
4920
  /* @__PURE__ */ jsx(
4921
- Trigger$1,
4921
+ Trigger,
4922
4922
  {
4923
4923
  ref: triggerProps.ref,
4924
4924
  isDisabled,
@@ -4936,7 +4936,7 @@ const DropDownMenu = ({
4936
4936
  isNested,
4937
4937
  component: component2,
4938
4938
  groupOrder,
4939
- isOpen: isOpen2,
4939
+ isOpen,
4940
4940
  tooltip: tooltip2,
4941
4941
  error: error2,
4942
4942
  warning: warning2,
@@ -4944,16 +4944,16 @@ const DropDownMenu = ({
4944
4944
  selected: selected2
4945
4945
  }
4946
4946
  ),
4947
- isOpen2 && renderLayer(
4947
+ isOpen && renderLayer(
4948
4948
  /* @__PURE__ */ jsx(
4949
4949
  "div",
4950
4950
  {
4951
4951
  ...layerProps,
4952
- className: styles$L.layerContainer,
4952
+ className: styles$J.layerContainer,
4953
4953
  "data-testid": menu2.testId,
4954
4954
  onClick: (evt) => evt.stopPropagation(),
4955
4955
  children: /* @__PURE__ */ jsx(
4956
- Layer$2,
4956
+ Layer$1,
4957
4957
  {
4958
4958
  sections,
4959
4959
  isNested,
@@ -5018,7 +5018,7 @@ const SubmenuActions = (props) => {
5018
5018
  const Actions = (props) => {
5019
5019
  const disabledContext = useContext(DisabledContext);
5020
5020
  const { actions: actions2 = [], closeLayer } = props;
5021
- return /* @__PURE__ */ jsx("div", { className: cx$2(styles$M.actions), children: actions2.map((action2, index2) => {
5021
+ return /* @__PURE__ */ jsx("div", { className: cx$2(styles$K.actions), children: actions2.map((action2, index2) => {
5022
5022
  const hidden2 = (action2 == null ? void 0 : action2.hidden) || !action2 || !Object.keys(action2).length;
5023
5023
  if (!hidden2) {
5024
5024
  if (action2.childComponent && React__default.isValidElement(action2.childComponent)) {
@@ -5026,7 +5026,7 @@ const Actions = (props) => {
5026
5026
  "div",
5027
5027
  {
5028
5028
  "data-testid": action2.testId,
5029
- className: styles$M.childComponent,
5029
+ className: styles$K.childComponent,
5030
5030
  children: action2.childComponent
5031
5031
  },
5032
5032
  index2
@@ -5075,17 +5075,17 @@ const Actions = (props) => {
5075
5075
  }) });
5076
5076
  };
5077
5077
  const breadcrumb = "_breadcrumb_2k0cd_1";
5078
- const small$a = "_small_2k0cd_4";
5078
+ const small$8 = "_small_2k0cd_4";
5079
5079
  const labelContainer = "_labelContainer_2k0cd_7";
5080
5080
  const active$5 = "_active_2k0cd_17";
5081
- const disabled$7 = "_disabled_2k0cd_22";
5081
+ const disabled$5 = "_disabled_2k0cd_22";
5082
5082
  const separator = "_separator_2k0cd_27";
5083
- const styles$J = {
5083
+ const styles$H = {
5084
5084
  breadcrumb,
5085
- small: small$a,
5085
+ small: small$8,
5086
5086
  labelContainer,
5087
5087
  active: active$5,
5088
- disabled: disabled$7,
5088
+ disabled: disabled$5,
5089
5089
  separator
5090
5090
  };
5091
5091
  var BreadcrumbLinkType = /* @__PURE__ */ ((BreadcrumbLinkType2) => {
@@ -5111,16 +5111,16 @@ const Link$2 = ({
5111
5111
  {
5112
5112
  onClick,
5113
5113
  className: cx$2(
5114
- styles$J.labelContainer,
5115
- active2 && styles$J.active,
5116
- (disabled2 || disabledContext) && styles$J.disabled
5114
+ styles$H.labelContainer,
5115
+ active2 && styles$H.active,
5116
+ (disabled2 || disabledContext) && styles$H.disabled
5117
5117
  ),
5118
5118
  children: isLink ? /* @__PURE__ */ jsx("a", { href: url, children: label2 }) : isCustom ? element : label2
5119
5119
  }
5120
5120
  );
5121
5121
  };
5122
5122
  const Breadcrumb = ({ links, small: small2 = false }) => {
5123
- return /* @__PURE__ */ jsx("div", { className: cx$2(styles$J.breadcrumb, small2 && styles$J.small), children: links.map((link2, i) => {
5123
+ return /* @__PURE__ */ jsx("div", { className: cx$2(styles$H.breadcrumb, small2 && styles$H.small), children: links.map((link2, i) => {
5124
5124
  const isFinal = links.length === i + 1;
5125
5125
  const { type, label: label2, url, onClick, active: active2, disabled: disabled2, element } = link2;
5126
5126
  return /* @__PURE__ */ jsxs("span", { children: [
@@ -5136,14 +5136,14 @@ const Breadcrumb = ({ links, small: small2 = false }) => {
5136
5136
  element
5137
5137
  }
5138
5138
  ),
5139
- !isFinal && /* @__PURE__ */ jsx("span", { className: styles$J.separator, children: "/" })
5139
+ !isFinal && /* @__PURE__ */ jsx("span", { className: styles$H.separator, children: "/" })
5140
5140
  ] }, i);
5141
5141
  }) });
5142
5142
  };
5143
- const label$8 = "_label_iu2wi_1";
5143
+ const label$6 = "_label_iu2wi_1";
5144
5144
  const buttonGroup = "_buttonGroup_iu2wi_11";
5145
- const styles$I = {
5146
- label: label$8,
5145
+ const styles$G = {
5146
+ label: label$6,
5147
5147
  buttonGroup
5148
5148
  };
5149
5149
  const ButtonGroup = (props) => {
@@ -5196,7 +5196,7 @@ const ButtonGroup = (props) => {
5196
5196
  };
5197
5197
  const renderHeader = () => {
5198
5198
  if (header2) {
5199
- return /* @__PURE__ */ jsx("label", { className: styles$I.label, children: header2 });
5199
+ return /* @__PURE__ */ jsx("label", { className: styles$G.label, children: header2 });
5200
5200
  }
5201
5201
  };
5202
5202
  const renderButtons = () => {
@@ -5253,7 +5253,7 @@ const ButtonGroup = (props) => {
5253
5253
  };
5254
5254
  return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("div", { children: [
5255
5255
  renderHeader(),
5256
- /* @__PURE__ */ jsx("div", { className: styles$I.buttonGroup, "data-testid": testId, children: renderButtons() })
5256
+ /* @__PURE__ */ jsx("div", { className: styles$G.buttonGroup, "data-testid": testId, children: renderButtons() })
5257
5257
  ] }) });
5258
5258
  };
5259
5259
  const card = "_card_ucdeu_1";
@@ -5263,7 +5263,7 @@ const cardHeader = "_cardHeader_ucdeu_13";
5263
5263
  const cardContentBorderTop = "_cardContentBorderTop_ucdeu_19";
5264
5264
  const padding$1 = "_padding_ucdeu_22";
5265
5265
  const cardContent = "_cardContent_ucdeu_19";
5266
- const styles$H = {
5266
+ const styles$F = {
5267
5267
  card,
5268
5268
  bordered: bordered$2,
5269
5269
  raised,
@@ -5284,20 +5284,20 @@ const Card = ({
5284
5284
  "div",
5285
5285
  {
5286
5286
  className: cx$2(
5287
- styles$H.card,
5288
- bordered2 ? styles$H.bordered : "",
5289
- raised2 ? styles$H.raised : ""
5287
+ styles$F.card,
5288
+ bordered2 ? styles$F.bordered : "",
5289
+ raised2 ? styles$F.raised : ""
5290
5290
  ),
5291
5291
  style: { margin: margin2 },
5292
5292
  children: [
5293
- heading2 ? /* @__PURE__ */ jsx("div", { className: cx$2(styles$H.cardHeader), children: heading2 }) : null,
5293
+ heading2 ? /* @__PURE__ */ jsx("div", { className: cx$2(styles$F.cardHeader), children: heading2 }) : null,
5294
5294
  /* @__PURE__ */ jsx(
5295
5295
  "div",
5296
5296
  {
5297
5297
  className: cx$2(
5298
- styles$H.cardContent,
5299
- heading2 ? styles$H.cardContentBorderTop : "",
5300
- padding2 ? styles$H.padding : ""
5298
+ styles$F.cardContent,
5299
+ heading2 ? styles$F.cardContentBorderTop : "",
5300
+ padding2 ? styles$F.padding : ""
5301
5301
  ),
5302
5302
  children
5303
5303
  }
@@ -5325,8 +5325,8 @@ function __spreadArray$1(to2, from3, pack) {
5325
5325
  }
5326
5326
  return to2.concat(ar2 || Array.prototype.slice.call(from3));
5327
5327
  }
5328
- typeof SuppressedError === "function" ? SuppressedError : function(error2, suppressed, message2) {
5329
- var e2 = new Error(message2);
5328
+ typeof SuppressedError === "function" ? SuppressedError : function(error2, suppressed, message) {
5329
+ var e2 = new Error(message);
5330
5330
  return e2.name = "SuppressedError", e2.error = error2, e2.suppressed = suppressed, e2;
5331
5331
  };
5332
5332
  function memoize$1(fn) {
@@ -6497,7 +6497,7 @@ const Column = ({
6497
6497
  const divider = "_divider_2bfzh_1";
6498
6498
  const alignLeft = "_alignLeft_2bfzh_12";
6499
6499
  const alignRight = "_alignRight_2bfzh_15";
6500
- const styles$G = {
6500
+ const styles$E = {
6501
6501
  divider,
6502
6502
  alignLeft,
6503
6503
  alignRight
@@ -6509,9 +6509,9 @@ const faint = "_faint_11ofj_10";
6509
6509
  const success$1 = "_success_11ofj_13";
6510
6510
  const warning$5 = "_warning_11ofj_16";
6511
6511
  const error$2 = "_error_11ofj_19";
6512
- const small$9 = "_small_11ofj_22";
6512
+ const small$7 = "_small_11ofj_22";
6513
6513
  const link$1 = "_link_11ofj_25";
6514
- const styles$F = {
6514
+ const styles$D = {
6515
6515
  bold: bold$1,
6516
6516
  center,
6517
6517
  muted: muted$1,
@@ -6519,7 +6519,7 @@ const styles$F = {
6519
6519
  success: success$1,
6520
6520
  warning: warning$5,
6521
6521
  error: error$2,
6522
- small: small$9,
6522
+ small: small$7,
6523
6523
  link: link$1
6524
6524
  };
6525
6525
  const Text = ({
@@ -6539,16 +6539,16 @@ const Text = ({
6539
6539
  "span",
6540
6540
  {
6541
6541
  className: cx$2(
6542
- bold2 && styles$F.bold,
6543
- center2 && styles$F.center,
6544
- error2 && styles$F.error,
6545
- faint2 && styles$F.faint,
6546
- link2 && styles$F.link,
6547
- muted2 && styles$F.muted,
6548
- onClick && styles$F.clickable,
6549
- small2 && styles$F.small,
6550
- success2 && styles$F.success,
6551
- warning2 && styles$F.warning
6542
+ bold2 && styles$D.bold,
6543
+ center2 && styles$D.center,
6544
+ error2 && styles$D.error,
6545
+ faint2 && styles$D.faint,
6546
+ link2 && styles$D.link,
6547
+ muted2 && styles$D.muted,
6548
+ onClick && styles$D.clickable,
6549
+ small2 && styles$D.small,
6550
+ success2 && styles$D.success,
6551
+ warning2 && styles$D.warning
6552
6552
  ),
6553
6553
  onClick,
6554
6554
  children
@@ -6558,9 +6558,9 @@ const Text = ({
6558
6558
  const cssAlignClass = (align) => {
6559
6559
  switch (align) {
6560
6560
  case Align.LEFT:
6561
- return styles$G.alignLeft;
6561
+ return styles$E.alignLeft;
6562
6562
  case Align.RIGHT:
6563
- return styles$G.alignRight;
6563
+ return styles$E.alignRight;
6564
6564
  default:
6565
6565
  return "";
6566
6566
  }
@@ -6573,7 +6573,7 @@ const Divider = ({
6573
6573
  }) => /* @__PURE__ */ jsx(
6574
6574
  "div",
6575
6575
  {
6576
- className: `${styles$G.divider} ${cssAlignClass(align)}`,
6576
+ className: `${styles$E.divider} ${cssAlignClass(align)}`,
6577
6577
  style: {
6578
6578
  marginTop: margin2,
6579
6579
  marginBottom: margin2,
@@ -6582,15 +6582,15 @@ const Divider = ({
6582
6582
  children: typeof children === "string" ? /* @__PURE__ */ jsx(Text, { muted: true, children }) : children
6583
6583
  }
6584
6584
  );
6585
- const heading$4 = "_heading_yhdiy_1";
6585
+ const heading$3 = "_heading_yhdiy_1";
6586
6586
  const top$1 = "_top_yhdiy_10";
6587
- const icons$2 = "_icons_yhdiy_20";
6588
- const styles$E = {
6589
- heading: heading$4,
6587
+ const icons$1 = "_icons_yhdiy_20";
6588
+ const styles$C = {
6589
+ heading: heading$3,
6590
6590
  top: top$1,
6591
- icons: icons$2
6591
+ icons: icons$1
6592
6592
  };
6593
- const Heading$2 = ({
6593
+ const Heading$1 = ({
6594
6594
  children,
6595
6595
  helpText,
6596
6596
  onClick,
@@ -6606,13 +6606,13 @@ const Heading$2 = ({
6606
6606
  return /* @__PURE__ */ jsxs(
6607
6607
  "div",
6608
6608
  {
6609
- className: cx$2(styles$E.heading, top2 ? styles$E.top : ""),
6609
+ className: cx$2(styles$C.heading, top2 ? styles$C.top : ""),
6610
6610
  style: { marginBottom },
6611
6611
  onClick,
6612
6612
  "data-testid": testId,
6613
6613
  children: [
6614
6614
  children,
6615
- /* @__PURE__ */ jsxs("div", { className: styles$E.icons, children: [
6615
+ /* @__PURE__ */ jsxs("div", { className: styles$C.icons, children: [
6616
6616
  icon2 && /* @__PURE__ */ jsx(HelpIcon, { onClick: onIconClick, icon: icon2 }),
6617
6617
  isHelpIconDisplayed && /* @__PURE__ */ jsx(HelpIcon, { text: helpText, onClick: onClickHelp }),
6618
6618
  libraryIcon && /* @__PURE__ */ jsx(
@@ -6635,7 +6635,7 @@ const header$2 = "_header_18g0k_24";
6635
6635
  const dismiss$2 = "_dismiss_18g0k_33";
6636
6636
  const content$3 = "_content_18g0k_38";
6637
6637
  const footer$2 = "_footer_18g0k_47";
6638
- const styles$D = {
6638
+ const styles$B = {
6639
6639
  dialog,
6640
6640
  inline: inline$3,
6641
6641
  scroll: scroll$3,
@@ -6670,16 +6670,16 @@ const Dialog = ({ dialog: dialog2 }) => {
6670
6670
  "div",
6671
6671
  {
6672
6672
  className: cx$2(
6673
- styles$D.dialog,
6674
- width2 ? styles$D.inline : null,
6675
- scroll3 ? styles$D.scroll : null
6673
+ styles$B.dialog,
6674
+ width2 ? styles$B.inline : null,
6675
+ scroll3 ? styles$B.scroll : null
6676
6676
  ),
6677
6677
  style: { width: width2, height: height2 },
6678
6678
  "data-testid": testId ?? null,
6679
6679
  children: [
6680
- /* @__PURE__ */ jsxs("div", { className: styles$D.header, children: [
6681
- /* @__PURE__ */ jsx(Heading$2, { testId: testId && `${testId}-heading`, top: true, marginBottom: 0, children: heading2 }),
6682
- onClose ? /* @__PURE__ */ jsx("div", { className: styles$D.dismiss, children: /* @__PURE__ */ jsx(
6680
+ /* @__PURE__ */ jsxs("div", { className: styles$B.header, children: [
6681
+ /* @__PURE__ */ jsx(Heading$1, { testId: testId && `${testId}-heading`, top: true, marginBottom: 0, children: heading2 }),
6682
+ onClose ? /* @__PURE__ */ jsx("div", { className: styles$B.dismiss, children: /* @__PURE__ */ jsx(
6683
6683
  Button$1,
6684
6684
  {
6685
6685
  icon: IconType.CLOSE,
@@ -6696,7 +6696,7 @@ const Dialog = ({ dialog: dialog2 }) => {
6696
6696
  "div",
6697
6697
  {
6698
6698
  "data-testid": testId && `${testId}-content`,
6699
- className: styles$D.content,
6699
+ className: styles$B.content,
6700
6700
  style: { padding: contentPadding2 },
6701
6701
  children: convertStringToJsx(content2)
6702
6702
  }
@@ -6705,7 +6705,7 @@ const Dialog = ({ dialog: dialog2 }) => {
6705
6705
  "div",
6706
6706
  {
6707
6707
  "data-testid": testId && `${testId}-footer`,
6708
- className: styles$D.footer,
6708
+ className: styles$B.footer,
6709
6709
  children: footer2
6710
6710
  }
6711
6711
  )
@@ -6713,16 +6713,16 @@ const Dialog = ({ dialog: dialog2 }) => {
6713
6713
  }
6714
6714
  );
6715
6715
  };
6716
- const inputInTable$a = "_inputInTable_1f40p_1";
6717
- const inputHover$a = "_inputHover_1f40p_13";
6718
- const inputFocus$a = "_inputFocus_1f40p_18";
6719
- const inputError$a = "_inputError_1f40p_25";
6720
- const inputWarning$a = "_inputWarning_1f40p_26";
6721
- const inputDisabled$a = "_inputDisabled_1f40p_61";
6722
- const hideScrollbars$a = "_hideScrollbars_1f40p_67";
6716
+ const inputInTable$9 = "_inputInTable_1f40p_1";
6717
+ const inputHover$9 = "_inputHover_1f40p_13";
6718
+ const inputFocus$9 = "_inputFocus_1f40p_18";
6719
+ const inputError$9 = "_inputError_1f40p_25";
6720
+ const inputWarning$9 = "_inputWarning_1f40p_26";
6721
+ const inputDisabled$9 = "_inputDisabled_1f40p_61";
6722
+ const hideScrollbars$9 = "_hideScrollbars_1f40p_67";
6723
6723
  const inline$2 = "_inline_1f40p_90";
6724
6724
  const left$2 = "_left_1f40p_93";
6725
- const right$6 = "_right_1f40p_96";
6725
+ const right$5 = "_right_1f40p_96";
6726
6726
  const fixed$1 = "_fixed_1f40p_99";
6727
6727
  const border$1 = "_border_1f40p_111";
6728
6728
  const shadow = "_shadow_1f40p_117";
@@ -6735,20 +6735,20 @@ const toggleButtonOpen = "_toggleButtonOpen_1f40p_162";
6735
6735
  const tabs$1 = "_tabs_1f40p_165";
6736
6736
  const tab$1 = "_tab_1f40p_165";
6737
6737
  const active$4 = "_active_1f40p_197";
6738
- const disabled$6 = "_disabled_1f40p_222";
6738
+ const disabled$4 = "_disabled_1f40p_222";
6739
6739
  const tabsContent = "_tabsContent_1f40p_229";
6740
6740
  const resizeHandle = "_resizeHandle_1f40p_235";
6741
- const styles$C = {
6742
- inputInTable: inputInTable$a,
6743
- inputHover: inputHover$a,
6744
- inputFocus: inputFocus$a,
6745
- inputError: inputError$a,
6746
- inputWarning: inputWarning$a,
6747
- inputDisabled: inputDisabled$a,
6748
- hideScrollbars: hideScrollbars$a,
6741
+ const styles$A = {
6742
+ inputInTable: inputInTable$9,
6743
+ inputHover: inputHover$9,
6744
+ inputFocus: inputFocus$9,
6745
+ inputError: inputError$9,
6746
+ inputWarning: inputWarning$9,
6747
+ inputDisabled: inputDisabled$9,
6748
+ hideScrollbars: hideScrollbars$9,
6749
6749
  inline: inline$2,
6750
6750
  left: left$2,
6751
- right: right$6,
6751
+ right: right$5,
6752
6752
  fixed: fixed$1,
6753
6753
  border: border$1,
6754
6754
  shadow,
@@ -6761,7 +6761,7 @@ const styles$C = {
6761
6761
  tabs: tabs$1,
6762
6762
  tab: tab$1,
6763
6763
  active: active$4,
6764
- disabled: disabled$6,
6764
+ disabled: disabled$4,
6765
6765
  tabsContent,
6766
6766
  resizeHandle
6767
6767
  };
@@ -6779,13 +6779,13 @@ const DrawerTabs = ({
6779
6779
  testId
6780
6780
  }) => {
6781
6781
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
6782
- /* @__PURE__ */ jsx("div", { className: styles$C.tabs, children: tabs2.map((tab2, index2) => /* @__PURE__ */ jsx(
6782
+ /* @__PURE__ */ jsx("div", { className: styles$A.tabs, children: tabs2.map((tab2, index2) => /* @__PURE__ */ jsx(
6783
6783
  "div",
6784
6784
  {
6785
6785
  className: cx$2(
6786
- styles$C.tab,
6787
- activeTab === index2 && open ? styles$C.active : "",
6788
- tab2.disabled ? styles$C.disabled : ""
6786
+ styles$A.tab,
6787
+ activeTab === index2 && open ? styles$A.active : "",
6788
+ tab2.disabled ? styles$A.disabled : ""
6789
6789
  ),
6790
6790
  style: { background: background2 },
6791
6791
  onClick: !tab2.disabled ? () => handleTabClick(index2) : void 0,
@@ -6800,7 +6800,7 @@ const DrawerTabs = ({
6800
6800
  "div",
6801
6801
  {
6802
6802
  style: { width: typeof width2 === "number" ? `${width2}px` : width2 },
6803
- className: styles$C.tabsContent,
6803
+ className: styles$A.tabsContent,
6804
6804
  "data-testid": testId && `${testId}-content-${index2}`,
6805
6805
  children: active2 && open && tab2.content
6806
6806
  },
@@ -8721,7 +8721,7 @@ const MIN_OPEN_WIDTH = 240;
8721
8721
  const ResizeHandle = forwardRef(
8722
8722
  (props, ref2) => {
8723
8723
  const { handleAxis, ...rest } = props;
8724
- return /* @__PURE__ */ jsx("div", { ref: ref2, className: styles$C.resizeHandle, ...rest, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.DRAG }) });
8724
+ return /* @__PURE__ */ jsx("div", { ref: ref2, className: styles$A.resizeHandle, ...rest, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.DRAG }) });
8725
8725
  }
8726
8726
  );
8727
8727
  const DrawerResizeWrapper = ({
@@ -8747,7 +8747,7 @@ const DrawerResizeWrapper = ({
8747
8747
  handle: /* @__PURE__ */ jsx(ResizeHandle, {}),
8748
8748
  resizeHandles: right2 ? ["w"] : ["e"],
8749
8749
  axis: "x",
8750
- className: isResizing2 ? styles$C.isResizing : "",
8750
+ className: isResizing2 ? styles$A.isResizing : "",
8751
8751
  onResizeStart: () => {
8752
8752
  if (setOpen) setOpen(true);
8753
8753
  if (onResize) onResize(width2);
@@ -8845,17 +8845,17 @@ const Drawer = ({
8845
8845
  "div",
8846
8846
  {
8847
8847
  className: cx$2(
8848
- styles$C.drawer,
8849
- shadow4 ? styles$C.shadow : "",
8850
- fixed2 ? styles$C.fixed : styles$C.inline,
8851
- right2 ? styles$C.right : styles$C.left
8848
+ styles$A.drawer,
8849
+ shadow4 ? styles$A.shadow : "",
8850
+ fixed2 ? styles$A.fixed : styles$A.inline,
8851
+ right2 ? styles$A.right : styles$A.left
8852
8852
  ),
8853
8853
  style: { top: top2 },
8854
8854
  children: [
8855
8855
  /* @__PURE__ */ jsx(
8856
8856
  "div",
8857
8857
  {
8858
- className: cx$2(styles$C.drawerContent, border2 && styles$C.border),
8858
+ className: cx$2(styles$A.drawerContent, border2 && styles$A.border),
8859
8859
  style: {
8860
8860
  background: background2,
8861
8861
  borderColor: typeof border2 === "string" ? border2 : void 0,
@@ -8881,9 +8881,9 @@ const Drawer = ({
8881
8881
  "span",
8882
8882
  {
8883
8883
  className: cx$2(
8884
- styles$C.toggleButton,
8885
- localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$C.toggleButtonOpen : "",
8886
- buttonPosition === "top" ? styles$C.top : styles$C.bottom
8884
+ styles$A.toggleButton,
8885
+ localOpen && (isStandardButton || isCustomButton && buttonAnimate) ? styles$A.toggleButtonOpen : "",
8886
+ buttonPosition === "top" ? styles$A.top : styles$A.bottom
8887
8887
  ),
8888
8888
  children: isCustomButton ? button2 : /* @__PURE__ */ jsx(
8889
8889
  Button$1,
@@ -8903,7 +8903,7 @@ const Drawer = ({
8903
8903
  };
8904
8904
  const empty$2 = "_empty_fe425_1";
8905
8905
  const text$2 = "_text_fe425_11";
8906
- const styles$B = {
8906
+ const styles$z = {
8907
8907
  empty: empty$2,
8908
8908
  text: text$2
8909
8909
  };
@@ -8917,7 +8917,7 @@ const Empty = ({
8917
8917
  return /* @__PURE__ */ jsxs(
8918
8918
  "div",
8919
8919
  {
8920
- className: styles$B.empty,
8920
+ className: styles$z.empty,
8921
8921
  style: { width: width2, height: height2 },
8922
8922
  "data-testid": testId,
8923
8923
  children: [
@@ -8949,7 +8949,7 @@ const Empty = ({
8949
8949
  )
8950
8950
  ] })
8951
8951
  ] }) }),
8952
- text2 !== "" && /* @__PURE__ */ jsx("div", { className: styles$B.text, children: /* @__PURE__ */ jsx(Text, { faint: true, children: text2 }) }),
8952
+ text2 !== "" && /* @__PURE__ */ jsx("div", { className: styles$z.text, children: /* @__PURE__ */ jsx(Text, { faint: true, children: text2 }) }),
8953
8953
  children
8954
8954
  ]
8955
8955
  }
@@ -9003,7 +9003,7 @@ const FileButton = ({
9003
9003
  ] });
9004
9004
  };
9005
9005
  const inputGroup = "_inputGroup_biuoa_1";
9006
- const styles$A = {
9006
+ const styles$y = {
9007
9007
  inputGroup
9008
9008
  };
9009
9009
  const isDOMTypeElement = (element) => {
@@ -9028,43 +9028,43 @@ const InputGroup = ({
9028
9028
  return /* @__PURE__ */ jsx(
9029
9029
  "div",
9030
9030
  {
9031
- className: cx$2(styles$A.inputGroup),
9031
+ className: cx$2(styles$y.inputGroup),
9032
9032
  style: { width: width2 },
9033
9033
  children: elements
9034
9034
  }
9035
9035
  );
9036
9036
  };
9037
- const inputInTable$9 = "_inputInTable_1285q_1";
9038
- const inputHover$9 = "_inputHover_1285q_13";
9039
- const inputFocus$9 = "_inputFocus_1285q_18";
9040
- const inputError$9 = "_inputError_1285q_25";
9041
- const inputWarning$9 = "_inputWarning_1285q_26";
9042
- const inputDisabled$9 = "_inputDisabled_1285q_61";
9043
- const hideScrollbars$9 = "_hideScrollbars_1285q_67";
9044
- const input$1 = "_input_1285q_1";
9045
- const isInTable$3 = "_isInTable_1285q_100";
9046
- const small$8 = "_small_1285q_124";
9047
- const right$5 = "_right_1285q_170";
9048
- const groupOrderFirst$3 = "_groupOrderFirst_1285q_173";
9049
- const groupOrderMiddle$3 = "_groupOrderMiddle_1285q_174";
9050
- const groupOrderLast$3 = "_groupOrderLast_1285q_175";
9051
- const styles$z = {
9052
- inputInTable: inputInTable$9,
9053
- inputHover: inputHover$9,
9054
- inputFocus: inputFocus$9,
9055
- inputError: inputError$9,
9056
- inputWarning: inputWarning$9,
9057
- inputDisabled: inputDisabled$9,
9058
- hideScrollbars: hideScrollbars$9,
9059
- input: input$1,
9060
- isInTable: isInTable$3,
9061
- small: small$8,
9062
- right: right$5,
9063
- groupOrderFirst: groupOrderFirst$3,
9064
- groupOrderMiddle: groupOrderMiddle$3,
9065
- groupOrderLast: groupOrderLast$3
9037
+ const inputInTable$8 = "_inputInTable_1285q_1";
9038
+ const inputHover$8 = "_inputHover_1285q_13";
9039
+ const inputFocus$8 = "_inputFocus_1285q_18";
9040
+ const inputError$8 = "_inputError_1285q_25";
9041
+ const inputWarning$8 = "_inputWarning_1285q_26";
9042
+ const inputDisabled$8 = "_inputDisabled_1285q_61";
9043
+ const hideScrollbars$8 = "_hideScrollbars_1285q_67";
9044
+ const input = "_input_1285q_1";
9045
+ const isInTable$2 = "_isInTable_1285q_100";
9046
+ const small$6 = "_small_1285q_124";
9047
+ const right$4 = "_right_1285q_170";
9048
+ const groupOrderFirst$2 = "_groupOrderFirst_1285q_173";
9049
+ const groupOrderMiddle$2 = "_groupOrderMiddle_1285q_174";
9050
+ const groupOrderLast$2 = "_groupOrderLast_1285q_175";
9051
+ const styles$x = {
9052
+ inputInTable: inputInTable$8,
9053
+ inputHover: inputHover$8,
9054
+ inputFocus: inputFocus$8,
9055
+ inputError: inputError$8,
9056
+ inputWarning: inputWarning$8,
9057
+ inputDisabled: inputDisabled$8,
9058
+ hideScrollbars: hideScrollbars$8,
9059
+ input,
9060
+ isInTable: isInTable$2,
9061
+ small: small$6,
9062
+ right: right$4,
9063
+ groupOrderFirst: groupOrderFirst$2,
9064
+ groupOrderMiddle: groupOrderMiddle$2,
9065
+ groupOrderLast: groupOrderLast$2
9066
9066
  };
9067
- const Input$1 = forwardRef(
9067
+ const Input = forwardRef(
9068
9068
  ({
9069
9069
  error: error2 = null,
9070
9070
  tooltip: tooltip2 = null,
@@ -9100,11 +9100,11 @@ const Input$1 = forwardRef(
9100
9100
  if (groupOrder) {
9101
9101
  switch (groupOrder) {
9102
9102
  case "first":
9103
- return styles$z.groupOrderFirst;
9103
+ return styles$x.groupOrderFirst;
9104
9104
  case "last":
9105
- return styles$z.groupOrderLast;
9105
+ return styles$x.groupOrderLast;
9106
9106
  default:
9107
- return styles$z.groupOrderMiddle;
9107
+ return styles$x.groupOrderMiddle;
9108
9108
  }
9109
9109
  }
9110
9110
  return "";
@@ -9138,10 +9138,10 @@ const Input$1 = forwardRef(
9138
9138
  autoComplete: "off",
9139
9139
  disabled: disabled2 || disabledContext,
9140
9140
  className: cx$2(
9141
- styles$z.input,
9142
- right2 ? styles$z.right : "",
9143
- small2 ? styles$z.small : "",
9144
- isInTable2 ? styles$z.isInTable : ""
9141
+ styles$x.input,
9142
+ right2 ? styles$x.right : "",
9143
+ small2 ? styles$x.small : "",
9144
+ isInTable2 ? styles$x.isInTable : ""
9145
9145
  ),
9146
9146
  style: { width: width2 },
9147
9147
  "data-error": error2 || null,
@@ -9154,7 +9154,7 @@ const Input$1 = forwardRef(
9154
9154
  }
9155
9155
  );
9156
9156
  const fileInput = "_fileInput_1elar_1";
9157
- const styles$y = {
9157
+ const styles$w = {
9158
9158
  fileInput
9159
9159
  };
9160
9160
  var InputReaderMethods = /* @__PURE__ */ ((InputReaderMethods2) => {
@@ -9232,7 +9232,7 @@ const FileInput = ({
9232
9232
  };
9233
9233
  return /* @__PURE__ */ jsxs("div", { onClick: handleClick2, style: { width: width2 }, children: [
9234
9234
  /* @__PURE__ */ jsxs(InputGroup, { children: [
9235
- /* @__PURE__ */ jsx(Input$1, { value: fileName || "", placeholder: placeholder3, disabled: true }),
9235
+ /* @__PURE__ */ jsx(Input, { value: fileName || "", placeholder: placeholder3, disabled: true }),
9236
9236
  /* @__PURE__ */ jsx(
9237
9237
  Button$1,
9238
9238
  {
@@ -9248,7 +9248,7 @@ const FileInput = ({
9248
9248
  {
9249
9249
  name: name2,
9250
9250
  ref: inputRef,
9251
- className: styles$y.fileInput,
9251
+ className: styles$w.fileInput,
9252
9252
  type: "file",
9253
9253
  accept,
9254
9254
  multiple: multi,
@@ -9258,13 +9258,13 @@ const FileInput = ({
9258
9258
  )
9259
9259
  ] });
9260
9260
  };
9261
- const label$7 = "_label_18pfe_1";
9261
+ const label$5 = "_label_18pfe_1";
9262
9262
  const labelLeft$1 = "_labelLeft_18pfe_5";
9263
- const icons$1 = "_icons_18pfe_13";
9264
- const styles$x = {
9265
- label: label$7,
9263
+ const icons = "_icons_18pfe_13";
9264
+ const styles$v = {
9265
+ label: label$5,
9266
9266
  labelLeft: labelLeft$1,
9267
- icons: icons$1
9267
+ icons
9268
9268
  };
9269
9269
  const Label$2 = ({
9270
9270
  label: label2 = null,
@@ -9284,9 +9284,9 @@ const Label$2 = ({
9284
9284
  libraryIcon,
9285
9285
  labelLeft: labelLeft2 = false
9286
9286
  }) => {
9287
- return /* @__PURE__ */ jsx("div", { className: cx$2(styles$x.label, labelLeft2 ? styles$x.labelLeft : ""), children: /* @__PURE__ */ jsxs("label", { style: { width: width2 || "" }, children: [
9287
+ return /* @__PURE__ */ jsx("div", { className: cx$2(styles$v.label, labelLeft2 ? styles$v.labelLeft : ""), children: /* @__PURE__ */ jsxs("label", { style: { width: width2 || "" }, children: [
9288
9288
  label2,
9289
- /* @__PURE__ */ jsxs("div", { className: styles$x.icons, children: [
9289
+ /* @__PURE__ */ jsxs("div", { className: styles$v.icons, children: [
9290
9290
  (helpText || onClickHelp) && /* @__PURE__ */ jsx(
9291
9291
  HelpIcon,
9292
9292
  {
@@ -9321,7 +9321,7 @@ const labelLeft = "_labelLeft_1xoss_5";
9321
9321
  const fieldInput = "_fieldInput_1xoss_9";
9322
9322
  const formRow$1 = "_formRow_1xoss_12";
9323
9323
  const button$2 = "_button_1xoss_22";
9324
- const styles$w = {
9324
+ const styles$u = {
9325
9325
  field,
9326
9326
  labelLeft,
9327
9327
  fieldInput,
@@ -9352,7 +9352,7 @@ const Field = ({
9352
9352
  return /* @__PURE__ */ jsxs(
9353
9353
  "div",
9354
9354
  {
9355
- className: cx$2(styles$w.field, labelLeft2 ? styles$w.labelLeft : ""),
9355
+ className: cx$2(styles$u.field, labelLeft2 ? styles$u.labelLeft : ""),
9356
9356
  "data-testid": testId,
9357
9357
  children: [
9358
9358
  (label2 || labelLeft2) && /* @__PURE__ */ jsx(
@@ -9369,7 +9369,7 @@ const Field = ({
9369
9369
  labelLeft: labelLeft2
9370
9370
  }
9371
9371
  ),
9372
- /* @__PURE__ */ jsx("div", { className: styles$w.fieldInput, children })
9372
+ /* @__PURE__ */ jsx("div", { className: styles$u.fieldInput, children })
9373
9373
  ]
9374
9374
  }
9375
9375
  );
@@ -9400,11 +9400,11 @@ const Flex = ({
9400
9400
  );
9401
9401
  };
9402
9402
  const formRow = "_formRow_odewu_1";
9403
- const styles$v = {
9403
+ const styles$t = {
9404
9404
  formRow
9405
9405
  };
9406
9406
  const FormRow = ({ children }) => {
9407
- return /* @__PURE__ */ jsx("div", { className: styles$v.formRow, children });
9407
+ return /* @__PURE__ */ jsx("div", { className: styles$t.formRow, children });
9408
9408
  };
9409
9409
  const getGapValue = (gap) => {
9410
9410
  if (typeof gap === "boolean") {
@@ -9460,16 +9460,16 @@ const Grid = ({
9460
9460
  );
9461
9461
  };
9462
9462
  const addon = "_addon_b4w53_1";
9463
- const small$7 = "_small_b4w53_12";
9464
- const groupOrderFirst$2 = "_groupOrderFirst_b4w53_16";
9465
- const groupOrderMiddle$2 = "_groupOrderMiddle_b4w53_17";
9466
- const groupOrderLast$2 = "_groupOrderLast_b4w53_21";
9467
- const styles$u = {
9463
+ const small$5 = "_small_b4w53_12";
9464
+ const groupOrderFirst$1 = "_groupOrderFirst_b4w53_16";
9465
+ const groupOrderMiddle$1 = "_groupOrderMiddle_b4w53_17";
9466
+ const groupOrderLast$1 = "_groupOrderLast_b4w53_21";
9467
+ const styles$s = {
9468
9468
  addon,
9469
- small: small$7,
9470
- groupOrderFirst: groupOrderFirst$2,
9471
- groupOrderMiddle: groupOrderMiddle$2,
9472
- groupOrderLast: groupOrderLast$2
9469
+ small: small$5,
9470
+ groupOrderFirst: groupOrderFirst$1,
9471
+ groupOrderMiddle: groupOrderMiddle$1,
9472
+ groupOrderLast: groupOrderLast$1
9473
9473
  };
9474
9474
  const InputGroupAddon = ({
9475
9475
  children,
@@ -9480,16 +9480,16 @@ const InputGroupAddon = ({
9480
9480
  if (groupOrder) {
9481
9481
  switch (groupOrder) {
9482
9482
  case GroupOrder.FIRST:
9483
- return styles$u.groupOrderFirst;
9483
+ return styles$s.groupOrderFirst;
9484
9484
  case GroupOrder.LAST:
9485
- return styles$u.groupOrderLast;
9485
+ return styles$s.groupOrderLast;
9486
9486
  default:
9487
- return styles$u.groupOrderMiddle;
9487
+ return styles$s.groupOrderMiddle;
9488
9488
  }
9489
9489
  }
9490
9490
  return "";
9491
9491
  })();
9492
- return /* @__PURE__ */ jsx("span", { className: cx$2(styles$u.addon, order2, small2 ? styles$u.small : ""), children });
9492
+ return /* @__PURE__ */ jsx("span", { className: cx$2(styles$s.addon, order2, small2 ? styles$s.small : ""), children });
9493
9493
  };
9494
9494
  function _typeof$2(o) {
9495
9495
  "@babel/helpers - typeof";
@@ -10895,12 +10895,12 @@ function isPlainObject$3(obj) {
10895
10895
  }
10896
10896
  return proto === baseProto;
10897
10897
  }
10898
- function warning$4(message2) {
10898
+ function warning$4(message) {
10899
10899
  if (typeof console !== "undefined" && typeof console.error === "function") {
10900
- console.error(message2);
10900
+ console.error(message);
10901
10901
  }
10902
10902
  try {
10903
- throw new Error(message2);
10903
+ throw new Error(message);
10904
10904
  } catch (e2) {
10905
10905
  }
10906
10906
  }
@@ -11166,11 +11166,11 @@ var useMemo = useMemoOne;
11166
11166
  var useCallback = useCallbackOne;
11167
11167
  var isProduction$2 = process.env.NODE_ENV === "production";
11168
11168
  var prefix$2 = "Invariant failed";
11169
- function invariant$4(condition, message2) {
11169
+ function invariant$4(condition, message) {
11170
11170
  if (isProduction$2) {
11171
11171
  throw new Error(prefix$2);
11172
11172
  }
11173
- var provided = typeof message2 === "function" ? message2() : message2;
11173
+ var provided = typeof message === "function" ? message() : message;
11174
11174
  var value = provided ? "".concat(prefix$2, ": ").concat(provided) : prefix$2;
11175
11175
  throw new Error(value);
11176
11176
  }
@@ -11380,14 +11380,14 @@ var lineStartWithSpaces = /^[ \t]*/gm;
11380
11380
  var clean = function clean2(value) {
11381
11381
  return value.replace(spacesAndTabs, " ").replace(lineStartWithSpaces, "").trim();
11382
11382
  };
11383
- var getDevMessage = function getDevMessage2(message2) {
11384
- return clean("\n %creact-beautiful-dnd\n\n %c" + clean(message2) + "\n\n %c👷‍ This is a development only message. It will be removed in production builds.\n");
11383
+ var getDevMessage = function getDevMessage2(message) {
11384
+ return clean("\n %creact-beautiful-dnd\n\n %c" + clean(message) + "\n\n %c👷‍ This is a development only message. It will be removed in production builds.\n");
11385
11385
  };
11386
- var getFormattedMessage = function getFormattedMessage2(message2) {
11387
- return [getDevMessage(message2), "color: #00C584; font-size: 1.2em; font-weight: bold;", "line-height: 1.5", "color: #723874;"];
11386
+ var getFormattedMessage = function getFormattedMessage2(message) {
11387
+ return [getDevMessage(message), "color: #00C584; font-size: 1.2em; font-weight: bold;", "line-height: 1.5", "color: #723874;"];
11388
11388
  };
11389
11389
  var isDisabledFlag = "__react-beautiful-dnd-disable-dev-warnings";
11390
- function log(type, message2) {
11390
+ function log(type, message) {
11391
11391
  var _console;
11392
11392
  if (isProduction$1) {
11393
11393
  return;
@@ -11395,7 +11395,7 @@ function log(type, message2) {
11395
11395
  if (typeof window !== "undefined" && window[isDisabledFlag]) {
11396
11396
  return;
11397
11397
  }
11398
- (_console = console)[type].apply(_console, getFormattedMessage(message2));
11398
+ (_console = console)[type].apply(_console, getFormattedMessage(message));
11399
11399
  }
11400
11400
  var warning$3 = log.bind(null, "warn");
11401
11401
  var error$1 = log.bind(null, "error");
@@ -11420,17 +11420,17 @@ function bindEvents(el2, bindings, sharedOptions) {
11420
11420
  }
11421
11421
  var isProduction$1$1 = process.env.NODE_ENV === "production";
11422
11422
  var prefix = "Invariant failed";
11423
- function RbdInvariant(message2) {
11424
- this.message = message2;
11423
+ function RbdInvariant(message) {
11424
+ this.message = message;
11425
11425
  }
11426
11426
  RbdInvariant.prototype.toString = function toString() {
11427
11427
  return this.message;
11428
11428
  };
11429
- function invariant$3(condition, message2) {
11429
+ function invariant$3(condition, message) {
11430
11430
  if (isProduction$1$1) {
11431
11431
  throw new RbdInvariant(prefix);
11432
11432
  } else {
11433
- throw new RbdInvariant(prefix + ": " + (message2 || ""));
11433
+ throw new RbdInvariant(prefix + ": " + (message || ""));
11434
11434
  }
11435
11435
  }
11436
11436
  var ErrorBoundary = function(_React$Component) {
@@ -13026,11 +13026,11 @@ var patchDroppableMap = function(droppables, updated) {
13026
13026
  var clearUnusedPlaceholder = function clearUnusedPlaceholder2(_ref) {
13027
13027
  var previousImpact = _ref.previousImpact, impact = _ref.impact, droppables = _ref.droppables;
13028
13028
  var last = whatIsDraggedOver(previousImpact);
13029
- var now2 = whatIsDraggedOver(impact);
13029
+ var now = whatIsDraggedOver(impact);
13030
13030
  if (!last) {
13031
13031
  return droppables;
13032
13032
  }
13033
- if (last === now2) {
13033
+ if (last === now) {
13034
13034
  return droppables;
13035
13035
  }
13036
13036
  var lastDroppable = droppables[last];
@@ -14094,7 +14094,7 @@ var getExpiringAnnounce = function(announce) {
14094
14094
  var timeoutId = setTimeout(function() {
14095
14095
  isExpired = true;
14096
14096
  });
14097
- var result = function result2(message2) {
14097
+ var result = function result2(message) {
14098
14098
  if (wasCalled) {
14099
14099
  process.env.NODE_ENV !== "production" ? warning$3("Announcement already made. Not making a second announcement") : void 0;
14100
14100
  return;
@@ -14104,7 +14104,7 @@ var getExpiringAnnounce = function(announce) {
14104
14104
  return;
14105
14105
  }
14106
14106
  wasCalled = true;
14107
- announce(message2);
14107
+ announce(message);
14108
14108
  clearTimeout(timeoutId);
14109
14109
  };
14110
14110
  result.wasCalled = function() {
@@ -14411,7 +14411,7 @@ var dimensionMarshalStopper = function(marshal) {
14411
14411
  };
14412
14412
  };
14413
14413
  };
14414
- var focus$1 = function(marshal) {
14414
+ var focus = function(marshal) {
14415
14415
  var isWatching2 = false;
14416
14416
  return function() {
14417
14417
  return function(next2) {
@@ -14494,7 +14494,7 @@ var composeEnhancers = process.env.NODE_ENV !== "production" && typeof window !=
14494
14494
  }) : compose;
14495
14495
  var createStore = function(_ref) {
14496
14496
  var dimensionMarshal = _ref.dimensionMarshal, focusMarshal = _ref.focusMarshal, styleMarshal = _ref.styleMarshal, getResponders = _ref.getResponders, announce = _ref.announce, autoScroller = _ref.autoScroller;
14497
- return createStore$1(reducer$2, composeEnhancers(applyMiddleware(style(styleMarshal), dimensionMarshalStopper(dimensionMarshal), lift$1$1(dimensionMarshal), drop$1, dropAnimationFinish, dropAnimationFlushOnScroll, pendingDrop, autoScroll(autoScroller), scrollListener, focus$1(focusMarshal), responders(getResponders, announce))));
14497
+ return createStore$1(reducer$2, composeEnhancers(applyMiddleware(style(styleMarshal), dimensionMarshalStopper(dimensionMarshal), lift$1$1(dimensionMarshal), drop$1, dropAnimationFinish, dropAnimationFlushOnScroll, pendingDrop, autoScroll(autoScroller), scrollListener, focus(focusMarshal), responders(getResponders, announce))));
14498
14498
  };
14499
14499
  var clean$1 = function clean3() {
14500
14500
  return {
@@ -14871,8 +14871,8 @@ var stopAt = config.durationDampening.stopDampeningAt;
14871
14871
  var dampenValueByTime = function(proposedScroll, dragStartTime) {
14872
14872
  var startOfRange = dragStartTime;
14873
14873
  var endOfRange = stopAt;
14874
- var now2 = Date.now();
14875
- var runTime = now2 - startOfRange;
14874
+ var now = Date.now();
14875
+ var runTime = now - startOfRange;
14876
14876
  if (runTime >= stopAt) {
14877
14877
  return proposedScroll;
14878
14878
  }
@@ -15518,11 +15518,11 @@ function useFocusMarshal(contextId) {
15518
15518
  }, [tryGiveFocus]);
15519
15519
  var tryRecordFocus = useCallback(function tryRecordFocus2(id2) {
15520
15520
  recordRef.current = null;
15521
- var focused2 = document.activeElement;
15522
- if (!focused2) {
15521
+ var focused = document.activeElement;
15522
+ if (!focused) {
15523
15523
  return;
15524
15524
  }
15525
- if (focused2.getAttribute(dragHandle.draggableId) !== id2) {
15525
+ if (focused.getAttribute(dragHandle.draggableId) !== id2) {
15526
15526
  return;
15527
15527
  }
15528
15528
  recordRef.current = id2;
@@ -15722,13 +15722,13 @@ function useAnnouncer(contextId) {
15722
15722
  });
15723
15723
  };
15724
15724
  }, [id2]);
15725
- var announce = useCallback(function(message2) {
15725
+ var announce = useCallback(function(message) {
15726
15726
  var el2 = ref2.current;
15727
15727
  if (el2) {
15728
- el2.textContent = message2;
15728
+ el2.textContent = message;
15729
15729
  return;
15730
15730
  }
15731
- process.env.NODE_ENV !== "production" ? warning$3('\n A screen reader message was trying to be announced but it was unable to do so.\n This can occur if you unmount your <DragDropContext /> in your onDragEnd.\n Consider calling provided.announce() before the unmount so that the instruction will\n not be lost for users relying on a screen reader.\n\n Message not passed to screen reader:\n\n "' + message2 + '"\n ') : void 0;
15731
+ process.env.NODE_ENV !== "production" ? warning$3('\n A screen reader message was trying to be announced but it was unable to do so.\n This can occur if you unmount your <DragDropContext /> in your onDragEnd.\n Consider calling provided.announce() before the unmount so that the instruction will\n not be lost for users relying on a screen reader.\n\n Message not passed to screen reader:\n\n "' + message + '"\n ') : void 0;
15732
15732
  }, []);
15733
15733
  return announce;
15734
15734
  }
@@ -18677,16 +18677,16 @@ var InfiniteScroll = (
18677
18677
  return InfiniteScroll2;
18678
18678
  }(Component$1)
18679
18679
  );
18680
- const inputInTable$8 = "_inputInTable_1llou_1";
18681
- const inputHover$8 = "_inputHover_1llou_13";
18682
- const inputFocus$8 = "_inputFocus_1llou_18";
18683
- const inputError$8 = "_inputError_1llou_25";
18684
- const inputWarning$8 = "_inputWarning_1llou_26";
18685
- const inputDisabled$8 = "_inputDisabled_1llou_61";
18686
- const hideScrollbars$8 = "_hideScrollbars_1llou_67";
18680
+ const inputInTable$7 = "_inputInTable_1llou_1";
18681
+ const inputHover$7 = "_inputHover_1llou_13";
18682
+ const inputFocus$7 = "_inputFocus_1llou_18";
18683
+ const inputError$7 = "_inputError_1llou_25";
18684
+ const inputWarning$7 = "_inputWarning_1llou_26";
18685
+ const inputDisabled$7 = "_inputDisabled_1llou_61";
18686
+ const hideScrollbars$7 = "_hideScrollbars_1llou_67";
18687
18687
  const header$1 = "_header_1llou_77";
18688
18688
  const headerTitle = "_headerTitle_1llou_77";
18689
- const heading$3 = "_heading_1llou_78";
18689
+ const heading$2 = "_heading_1llou_78";
18690
18690
  const itemHeader = "_itemHeader_1llou_78";
18691
18691
  const narrow = "_narrow_1llou_81";
18692
18692
  const stickyHeader = "_stickyHeader_1llou_85";
@@ -18702,31 +18702,31 @@ const item$4 = "_item_1llou_78";
18702
18702
  const action = "_action_1llou_192";
18703
18703
  const active$3 = "_active_1llou_195";
18704
18704
  const indented = "_indented_1llou_202";
18705
- const disabled$5 = "_disabled_1llou_215";
18706
- const label$6 = "_label_1llou_226";
18707
- const details$2 = "_details_1llou_237";
18705
+ const disabled$3 = "_disabled_1llou_215";
18706
+ const label$4 = "_label_1llou_226";
18707
+ const details$1 = "_details_1llou_237";
18708
18708
  const metadata = "_metadata_1llou_238";
18709
18709
  const itemContent = "_itemContent_1llou_246";
18710
18710
  const indentIcon = "_indentIcon_1llou_253";
18711
18711
  const expandIcon = "_expandIcon_1llou_258";
18712
18712
  const expanded = "_expanded_1llou_265";
18713
- const right$4 = "_right_1llou_268";
18713
+ const right$3 = "_right_1llou_268";
18714
18714
  const actions = "_actions_1llou_276";
18715
18715
  const scrollableList = "_scrollableList_1llou_281";
18716
18716
  const infiniteScrollContainer = "_infiniteScrollContainer_1llou_286";
18717
18717
  const hideScrollbar = "_hideScrollbar_1llou_67";
18718
18718
  const noPointerEvents = "_noPointerEvents_1llou_303";
18719
18719
  const listStyles = {
18720
- inputInTable: inputInTable$8,
18721
- inputHover: inputHover$8,
18722
- inputFocus: inputFocus$8,
18723
- inputError: inputError$8,
18724
- inputWarning: inputWarning$8,
18725
- inputDisabled: inputDisabled$8,
18726
- hideScrollbars: hideScrollbars$8,
18720
+ inputInTable: inputInTable$7,
18721
+ inputHover: inputHover$7,
18722
+ inputFocus: inputFocus$7,
18723
+ inputError: inputError$7,
18724
+ inputWarning: inputWarning$7,
18725
+ inputDisabled: inputDisabled$7,
18726
+ hideScrollbars: hideScrollbars$7,
18727
18727
  header: header$1,
18728
18728
  headerTitle,
18729
- heading: heading$3,
18729
+ heading: heading$2,
18730
18730
  itemHeader,
18731
18731
  narrow,
18732
18732
  stickyHeader,
@@ -18742,15 +18742,15 @@ const listStyles = {
18742
18742
  action,
18743
18743
  active: active$3,
18744
18744
  indented,
18745
- disabled: disabled$5,
18746
- label: label$6,
18747
- details: details$2,
18745
+ disabled: disabled$3,
18746
+ label: label$4,
18747
+ details: details$1,
18748
18748
  metadata,
18749
18749
  itemContent,
18750
18750
  indentIcon,
18751
18751
  expandIcon,
18752
18752
  expanded,
18753
- right: right$4,
18753
+ right: right$3,
18754
18754
  actions,
18755
18755
  scrollableList,
18756
18756
  infiniteScrollContainer,
@@ -18785,7 +18785,7 @@ const ListHeading = forwardRef(
18785
18785
  onClickToggleNarrow: onToggleNarrow
18786
18786
  }
18787
18787
  ),
18788
- name2 && /* @__PURE__ */ jsx("div", { className: listStyles.headerTitle, children: /* @__PURE__ */ jsx(Heading$2, { top: true, marginBottom: 0, children: name2 }) }),
18788
+ name2 && /* @__PURE__ */ jsx("div", { className: listStyles.headerTitle, children: /* @__PURE__ */ jsx(Heading$1, { top: true, marginBottom: 0, children: name2 }) }),
18789
18789
  /* @__PURE__ */ jsx("div", { className: listStyles.right, children: /* @__PURE__ */ jsx("div", { className: listStyles.actions, children: /* @__PURE__ */ jsx(Actions, { actions: actions2 }) }) })
18790
18790
  ]
18791
18791
  }
@@ -18976,15 +18976,15 @@ const cover = "_cover_477i5_14";
18976
18976
  const dimmer = "_dimmer_477i5_21";
18977
18977
  const content$2 = "_content_477i5_44";
18978
18978
  const text$1 = "_text_477i5_49";
18979
- const details$1 = "_details_477i5_53";
18980
- const styles$t = {
18979
+ const details = "_details_477i5_53";
18980
+ const styles$r = {
18981
18981
  loader,
18982
18982
  fullViewPortSize,
18983
18983
  cover,
18984
18984
  dimmer,
18985
18985
  content: content$2,
18986
18986
  text: text$1,
18987
- details: details$1
18987
+ details
18988
18988
  };
18989
18989
  const Loader = ({
18990
18990
  width: width2,
@@ -19002,22 +19002,22 @@ const Loader = ({
19002
19002
  return /* @__PURE__ */ jsx(
19003
19003
  "div",
19004
19004
  {
19005
- className: cx$2(styles$t.loader, cover2 ? styles$t.cover : "", {
19006
- [styles$t.fullViewPortSize]: fullViewPortSize2
19005
+ className: cx$2(styles$r.loader, cover2 ? styles$r.cover : "", {
19006
+ [styles$r.fullViewPortSize]: fullViewPortSize2
19007
19007
  }),
19008
19008
  style: { width: width2, height: height2 },
19009
19009
  "data-testid": testId,
19010
- children: /* @__PURE__ */ jsx("div", { className: styles$t.dimmer, style: { background: background2, color: color2 }, children: /* @__PURE__ */ jsxs(
19010
+ children: /* @__PURE__ */ jsx("div", { className: styles$r.dimmer, style: { background: background2, color: color2 }, children: /* @__PURE__ */ jsxs(
19011
19011
  "div",
19012
19012
  {
19013
- className: styles$t.content,
19013
+ className: styles$r.content,
19014
19014
  "data-testid": testId && `${testId}-content`,
19015
19015
  children: [
19016
19016
  children,
19017
19017
  text2 && /* @__PURE__ */ jsx(
19018
19018
  "div",
19019
19019
  {
19020
- className: styles$t.text,
19020
+ className: styles$r.text,
19021
19021
  "data-testid": testId && `${testId}-text`,
19022
19022
  children: text2
19023
19023
  }
@@ -19025,7 +19025,7 @@ const Loader = ({
19025
19025
  details2 && /* @__PURE__ */ jsx(
19026
19026
  "div",
19027
19027
  {
19028
- className: styles$t.details,
19028
+ className: styles$r.details,
19029
19029
  "data-testid": testId && `${testId}-details`,
19030
19030
  children: details2
19031
19031
  }
@@ -19208,13 +19208,13 @@ const List = ({
19208
19208
  }
19209
19209
  );
19210
19210
  };
19211
- const inputInTable$7 = "_inputInTable_1okhq_1";
19212
- const inputHover$7 = "_inputHover_1okhq_13";
19213
- const inputFocus$7 = "_inputFocus_1okhq_18";
19214
- const inputError$7 = "_inputError_1okhq_25";
19215
- const inputWarning$7 = "_inputWarning_1okhq_26";
19216
- const inputDisabled$7 = "_inputDisabled_1okhq_61";
19217
- const hideScrollbars$7 = "_hideScrollbars_1okhq_67";
19211
+ const inputInTable$6 = "_inputInTable_1okhq_1";
19212
+ const inputHover$6 = "_inputHover_1okhq_13";
19213
+ const inputFocus$6 = "_inputFocus_1okhq_18";
19214
+ const inputError$6 = "_inputError_1okhq_25";
19215
+ const inputWarning$6 = "_inputWarning_1okhq_26";
19216
+ const inputDisabled$6 = "_inputDisabled_1okhq_61";
19217
+ const hideScrollbars$6 = "_hideScrollbars_1okhq_67";
19218
19218
  const container$1 = "_container_1okhq_83";
19219
19219
  const block$1 = "_block_1okhq_101";
19220
19220
  const info = "_info_1okhq_104";
@@ -19222,21 +19222,21 @@ const success = "_success_1okhq_108";
19222
19222
  const warning$2 = "_warning_1okhq_112";
19223
19223
  const error = "_error_1okhq_116";
19224
19224
  const content$1 = "_content_1okhq_120";
19225
- const heading$2 = "_heading_1okhq_124";
19226
- const icon$3 = "_icon_1okhq_131";
19225
+ const heading$1 = "_heading_1okhq_124";
19226
+ const icon$2 = "_icon_1okhq_131";
19227
19227
  const dismiss$1 = "_dismiss_1okhq_139";
19228
19228
  const absolute = "_absolute_1okhq_143";
19229
19229
  const legendToggle = "_legendToggle_1okhq_155";
19230
19230
  const detailsText = "_detailsText_1okhq_165";
19231
19231
  const footer$1 = "_footer_1okhq_169";
19232
- const styles$s = {
19233
- inputInTable: inputInTable$7,
19234
- inputHover: inputHover$7,
19235
- inputFocus: inputFocus$7,
19236
- inputError: inputError$7,
19237
- inputWarning: inputWarning$7,
19238
- inputDisabled: inputDisabled$7,
19239
- hideScrollbars: hideScrollbars$7,
19232
+ const styles$q = {
19233
+ inputInTable: inputInTable$6,
19234
+ inputHover: inputHover$6,
19235
+ inputFocus: inputFocus$6,
19236
+ inputError: inputError$6,
19237
+ inputWarning: inputWarning$6,
19238
+ inputDisabled: inputDisabled$6,
19239
+ hideScrollbars: hideScrollbars$6,
19240
19240
  container: container$1,
19241
19241
  block: block$1,
19242
19242
  info,
@@ -19244,8 +19244,8 @@ const styles$s = {
19244
19244
  warning: warning$2,
19245
19245
  error,
19246
19246
  content: content$1,
19247
- heading: heading$2,
19248
- icon: icon$3,
19247
+ heading: heading$1,
19248
+ icon: icon$2,
19249
19249
  dismiss: dismiss$1,
19250
19250
  absolute,
19251
19251
  legendToggle,
@@ -19273,9 +19273,9 @@ const Dismiss = ({
19273
19273
  "div",
19274
19274
  {
19275
19275
  className: cx$2(
19276
- styles$s.dismiss,
19277
- isInToast ? styles$s.absolute : "",
19278
- type === MessageType.INFO ? styles$s.info : type === MessageType.SUCCESS ? styles$s.success : type === MessageType.WARNING ? styles$s.warning : type === MessageType.ERROR ? styles$s.error : null
19276
+ styles$q.dismiss,
19277
+ isInToast ? styles$q.absolute : "",
19278
+ type === MessageType.INFO ? styles$q.info : type === MessageType.SUCCESS ? styles$q.success : type === MessageType.WARNING ? styles$q.warning : type === MessageType.ERROR ? styles$q.error : null
19279
19279
  ),
19280
19280
  children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CLOSE, onClick: onClose, testId })
19281
19281
  }
@@ -19294,8 +19294,8 @@ const reducer$1 = (state, action2) => {
19294
19294
  };
19295
19295
  const Details = ({ details: details2, visible, dispatch }) => {
19296
19296
  return /* @__PURE__ */ jsxs("div", { children: [
19297
- /* @__PURE__ */ jsx("div", { className: cx$2(styles$s.legendToggle), onClick: dispatch, children: visible ? "Hide details" : "Show details" }),
19298
- visible ? /* @__PURE__ */ jsx("div", { className: styles$s.detailsText, children: details2 }) : null
19297
+ /* @__PURE__ */ jsx("div", { className: cx$2(styles$q.legendToggle), onClick: dispatch, children: visible ? "Hide details" : "Show details" }),
19298
+ visible ? /* @__PURE__ */ jsx("div", { className: styles$q.detailsText, children: details2 }) : null
19299
19299
  ] });
19300
19300
  };
19301
19301
  const DialogIcon = ({ type }) => {
@@ -19311,7 +19311,7 @@ const DialogIcon = ({ type }) => {
19311
19311
  return /* @__PURE__ */ jsx(Icon, { icon: IconType.INFO, size: size2 });
19312
19312
  }
19313
19313
  };
19314
- const Message = ({ message: message2 }) => {
19314
+ const Message = ({ message }) => {
19315
19315
  const {
19316
19316
  visible,
19317
19317
  type = MessageType.INFO,
@@ -19325,7 +19325,7 @@ const Message = ({ message: message2 }) => {
19325
19325
  onClose,
19326
19326
  width: width2,
19327
19327
  maxHeight
19328
- } = message2;
19328
+ } = message;
19329
19329
  const initialState2 = {
19330
19330
  detailsVisible
19331
19331
  };
@@ -19334,15 +19334,15 @@ const Message = ({ message: message2 }) => {
19334
19334
  "div",
19335
19335
  {
19336
19336
  className: cx$2(
19337
- styles$s.container,
19338
- width2 ? styles$s.block : null,
19339
- type === MessageType.SUCCESS ? styles$s.success : type === MessageType.WARNING ? styles$s.warning : type === MessageType.ERROR ? styles$s.error : styles$s.info
19337
+ styles$q.container,
19338
+ width2 ? styles$q.block : null,
19339
+ type === MessageType.SUCCESS ? styles$q.success : type === MessageType.WARNING ? styles$q.warning : type === MessageType.ERROR ? styles$q.error : styles$q.info
19340
19340
  ),
19341
19341
  style: { width: width2, maxHeight },
19342
19342
  children: [
19343
- /* @__PURE__ */ jsx("div", { children: icon2 ? /* @__PURE__ */ jsx("div", { className: styles$s.icon, children: /* @__PURE__ */ jsx(DialogIcon, { type }) }) : null }),
19344
- /* @__PURE__ */ jsxs("div", { className: styles$s.content, children: [
19345
- heading2 ? /* @__PURE__ */ jsx("div", { className: styles$s.heading, children: heading2 }) : null,
19343
+ /* @__PURE__ */ jsx("div", { children: icon2 ? /* @__PURE__ */ jsx("div", { className: styles$q.icon, children: /* @__PURE__ */ jsx(DialogIcon, { type }) }) : null }),
19344
+ /* @__PURE__ */ jsxs("div", { className: styles$q.content, children: [
19345
+ heading2 ? /* @__PURE__ */ jsx("div", { className: styles$q.heading, children: heading2 }) : null,
19346
19346
  /* @__PURE__ */ jsx("div", { children: content2 }),
19347
19347
  details2 ? /* @__PURE__ */ jsx(
19348
19348
  Details,
@@ -19352,7 +19352,7 @@ const Message = ({ message: message2 }) => {
19352
19352
  dispatch: () => dispatch({ type: MessageToggle.TOGGLE_DETAILS })
19353
19353
  }
19354
19354
  ) : null,
19355
- !!footer2 && /* @__PURE__ */ jsx("div", { className: styles$s.footer, children: footer2 })
19355
+ !!footer2 && /* @__PURE__ */ jsx("div", { className: styles$q.footer, children: footer2 })
19356
19356
  ] }),
19357
19357
  withDismiss ? /* @__PURE__ */ jsx(Dismiss, { type, onClose }) : null
19358
19358
  ]
@@ -19384,7 +19384,7 @@ const wrapper$2 = "_wrapper_sb0hc_1";
19384
19384
  const contentContainer = "_contentContainer_sb0hc_15";
19385
19385
  const centered = "_centered_sb0hc_24";
19386
19386
  const newLine = "_newLine_sb0hc_28";
19387
- const styles$r = {
19387
+ const styles$p = {
19388
19388
  wrapper: wrapper$2,
19389
19389
  contentContainer,
19390
19390
  centered,
@@ -19404,12 +19404,12 @@ const Wrapper = ({ children }) => {
19404
19404
  }
19405
19405
  }
19406
19406
  }, []);
19407
- return /* @__PURE__ */ jsx("div", { ref: wrapperRef, tabIndex: -1, className: cx$2(styles$r.wrapper), children });
19407
+ return /* @__PURE__ */ jsx("div", { ref: wrapperRef, tabIndex: -1, className: cx$2(styles$p.wrapper), children });
19408
19408
  };
19409
19409
  const Content$2 = ({ children, width: width2, centered: centered2 }) => /* @__PURE__ */ jsx(
19410
19410
  "div",
19411
19411
  {
19412
- className: cx$2(styles$r.contentContainer, centered2 ? styles$r.centered : ""),
19412
+ className: cx$2(styles$p.contentContainer, centered2 ? styles$p.centered : ""),
19413
19413
  style: { maxWidth: width2 },
19414
19414
  children
19415
19415
  }
@@ -19457,36 +19457,36 @@ const Modal = ({
19457
19457
  const menu$1 = "_menu_12x4u_1";
19458
19458
  const header = "_header_12x4u_11";
19459
19459
  const item$3 = "_item_12x4u_27";
19460
- const heading$1 = "_heading_12x4u_32";
19461
- const styles$q = {
19460
+ const heading = "_heading_12x4u_32";
19461
+ const styles$o = {
19462
19462
  menu: menu$1,
19463
19463
  header,
19464
19464
  item: item$3,
19465
- heading: heading$1
19465
+ heading
19466
19466
  };
19467
- const Option$1 = ({
19467
+ const Option = ({
19468
19468
  option: option2,
19469
19469
  onChange
19470
19470
  }) => {
19471
19471
  const { key: key2, label: label2, selected: selected2 } = option2;
19472
- return /* @__PURE__ */ jsx("div", { className: styles$q.item, children: /* @__PURE__ */ jsx(CheckBox, { label: label2, noMargin: true, checked: selected2, onChange }) }, key2);
19472
+ return /* @__PURE__ */ jsx("div", { className: styles$o.item, children: /* @__PURE__ */ jsx(CheckBox, { label: label2, noMargin: true, checked: selected2, onChange }) }, key2);
19473
19473
  };
19474
- const Heading$1 = ({ label: label2 }) => /* @__PURE__ */ jsx("div", { className: styles$q.heading, children: label2 });
19474
+ const Heading = ({ label: label2 }) => /* @__PURE__ */ jsx("div", { className: styles$o.heading, children: label2 });
19475
19475
  var DropdownType = /* @__PURE__ */ ((DropdownType2) => {
19476
19476
  DropdownType2["HEADING"] = "Heading";
19477
19477
  DropdownType2["DIVIDER"] = "Divider";
19478
19478
  DropdownType2["DEFAULT"] = "Default";
19479
19479
  return DropdownType2;
19480
19480
  })(DropdownType || {});
19481
- const Layer$1 = ({
19481
+ const Layer = ({
19482
19482
  options,
19483
19483
  onChangeOptions,
19484
19484
  showHeader,
19485
19485
  maxHeight
19486
19486
  }) => {
19487
- return /* @__PURE__ */ jsxs("div", { className: cx$2("menu", styles$q.menu), style: { maxHeight }, children: [
19487
+ return /* @__PURE__ */ jsxs("div", { className: cx$2("menu", styles$o.menu), style: { maxHeight }, children: [
19488
19488
  showHeader && /* @__PURE__ */ jsxs(Fragment$1, { children: [
19489
- /* @__PURE__ */ jsxs("div", { className: styles$q.header, children: [
19489
+ /* @__PURE__ */ jsxs("div", { className: styles$o.header, children: [
19490
19490
  /* @__PURE__ */ jsx(
19491
19491
  "a",
19492
19492
  {
@@ -19532,12 +19532,12 @@ const Layer$1 = ({
19532
19532
  options.map((option2, index2) => {
19533
19533
  switch (option2.type) {
19534
19534
  case DropdownType.HEADING:
19535
- return /* @__PURE__ */ jsx(Heading$1, { label: option2.label }, index2);
19535
+ return /* @__PURE__ */ jsx(Heading, { label: option2.label }, index2);
19536
19536
  case DropdownType.DIVIDER:
19537
19537
  return /* @__PURE__ */ jsx(Divider, { margin: 0 }, index2);
19538
19538
  default:
19539
19539
  return /* @__PURE__ */ jsx(
19540
- Option$1,
19540
+ Option,
19541
19541
  {
19542
19542
  option: option2,
19543
19543
  onChange: (evt) => {
@@ -19570,7 +19570,7 @@ const OptionDropdown = ({
19570
19570
  trigger: TriggerType.DROP_DOWN_BUTTON,
19571
19571
  possiblePlacements: ["top-start", "bottom-start"],
19572
19572
  sections: /* @__PURE__ */ jsx(
19573
- Layer$1,
19573
+ Layer,
19574
19574
  {
19575
19575
  options,
19576
19576
  onChangeOptions: (evt, nextOptions) => {
@@ -19589,7 +19589,7 @@ const OptionDropdown = ({
19589
19589
  };
19590
19590
  const page = "_page_beskc_1";
19591
19591
  const scroll$1 = "_scroll_beskc_23";
19592
- const styles$p = {
19592
+ const styles$n = {
19593
19593
  page,
19594
19594
  scroll: scroll$1
19595
19595
  };
@@ -19604,43 +19604,43 @@ const Page = ({
19604
19604
  return /* @__PURE__ */ jsx(
19605
19605
  "div",
19606
19606
  {
19607
- className: cx$2(styles$p.page, scroll3 ? styles$p.scroll : ""),
19607
+ className: cx$2(styles$n.page, scroll3 ? styles$n.scroll : ""),
19608
19608
  style: { left: left2, padding: padding2, top: top2 },
19609
19609
  children
19610
19610
  }
19611
19611
  );
19612
19612
  };
19613
- const inputInTable$6 = "_inputInTable_sl2b5_1";
19614
- const inputHover$6 = "_inputHover_sl2b5_13";
19615
- const inputFocus$6 = "_inputFocus_sl2b5_18";
19616
- const inputError$6 = "_inputError_sl2b5_25";
19617
- const inputWarning$6 = "_inputWarning_sl2b5_26";
19618
- const inputDisabled$6 = "_inputDisabled_sl2b5_61";
19619
- const hideScrollbars$6 = "_hideScrollbars_sl2b5_67";
19613
+ const inputInTable$5 = "_inputInTable_sl2b5_1";
19614
+ const inputHover$5 = "_inputHover_sl2b5_13";
19615
+ const inputFocus$5 = "_inputFocus_sl2b5_18";
19616
+ const inputError$5 = "_inputError_sl2b5_25";
19617
+ const inputWarning$5 = "_inputWarning_sl2b5_26";
19618
+ const inputDisabled$5 = "_inputDisabled_sl2b5_61";
19619
+ const hideScrollbars$5 = "_hideScrollbars_sl2b5_67";
19620
19620
  const select = "_select_sl2b5_77";
19621
- const isInTable$2 = "_isInTable_sl2b5_121";
19621
+ const isInTable$1 = "_isInTable_sl2b5_121";
19622
19622
  const unSelected = "_unSelected_sl2b5_133";
19623
- const small$6 = "_small_sl2b5_174";
19624
- const right$3 = "_right_sl2b5_182";
19625
- const groupOrderFirst$1 = "_groupOrderFirst_sl2b5_193";
19626
- const groupOrderMiddle$1 = "_groupOrderMiddle_sl2b5_194";
19627
- const groupOrderLast$1 = "_groupOrderLast_sl2b5_198";
19628
- const styles$o = {
19629
- inputInTable: inputInTable$6,
19630
- inputHover: inputHover$6,
19631
- inputFocus: inputFocus$6,
19632
- inputError: inputError$6,
19633
- inputWarning: inputWarning$6,
19634
- inputDisabled: inputDisabled$6,
19635
- hideScrollbars: hideScrollbars$6,
19623
+ const small$4 = "_small_sl2b5_174";
19624
+ const right$2 = "_right_sl2b5_182";
19625
+ const groupOrderFirst = "_groupOrderFirst_sl2b5_193";
19626
+ const groupOrderMiddle = "_groupOrderMiddle_sl2b5_194";
19627
+ const groupOrderLast = "_groupOrderLast_sl2b5_198";
19628
+ const styles$m = {
19629
+ inputInTable: inputInTable$5,
19630
+ inputHover: inputHover$5,
19631
+ inputFocus: inputFocus$5,
19632
+ inputError: inputError$5,
19633
+ inputWarning: inputWarning$5,
19634
+ inputDisabled: inputDisabled$5,
19635
+ hideScrollbars: hideScrollbars$5,
19636
19636
  select,
19637
- isInTable: isInTable$2,
19637
+ isInTable: isInTable$1,
19638
19638
  unSelected,
19639
- small: small$6,
19640
- right: right$3,
19641
- groupOrderFirst: groupOrderFirst$1,
19642
- groupOrderMiddle: groupOrderMiddle$1,
19643
- groupOrderLast: groupOrderLast$1
19639
+ small: small$4,
19640
+ right: right$2,
19641
+ groupOrderFirst,
19642
+ groupOrderMiddle,
19643
+ groupOrderLast
19644
19644
  };
19645
19645
  const NativeSelect = ({
19646
19646
  disabled: disabled2 = false,
@@ -19708,11 +19708,11 @@ const NativeSelect = ({
19708
19708
  if (groupOrder) {
19709
19709
  switch (groupOrder) {
19710
19710
  case GroupOrder.FIRST:
19711
- return styles$o.groupOrderFirst;
19711
+ return styles$m.groupOrderFirst;
19712
19712
  case GroupOrder.LAST:
19713
- return styles$o.groupOrderLast;
19713
+ return styles$m.groupOrderLast;
19714
19714
  default:
19715
- return styles$o.groupOrderMiddle;
19715
+ return styles$m.groupOrderMiddle;
19716
19716
  }
19717
19717
  }
19718
19718
  return "";
@@ -19730,11 +19730,11 @@ const NativeSelect = ({
19730
19730
  "select",
19731
19731
  {
19732
19732
  className: cx$2(
19733
- styles$o.select,
19734
- isUnselected ? styles$o.unSelected : "",
19735
- right2 ? styles$o.right : "",
19736
- small2 ? styles$o.small : "",
19737
- isInTable2 ? styles$o.isInTable : "",
19733
+ styles$m.select,
19734
+ isUnselected ? styles$m.unSelected : "",
19735
+ right2 ? styles$m.right : "",
19736
+ small2 ? styles$m.small : "",
19737
+ isInTable2 ? styles$m.isInTable : "",
19738
19738
  order2
19739
19739
  ),
19740
19740
  style: {
@@ -19768,182 +19768,6 @@ const NativeSelect = ({
19768
19768
  }
19769
19769
  );
19770
19770
  };
19771
- var reactKeyboardEventHandler = { exports: {} };
19772
- (function(module, exports) {
19773
- !function(e2, t) {
19774
- module.exports = t(React__default, PropTypes__default);
19775
- }(window, function(e2, t) {
19776
- return function(e3) {
19777
- var t2 = {};
19778
- function n2(r2) {
19779
- if (t2[r2]) return t2[r2].exports;
19780
- var o = t2[r2] = { i: r2, l: false, exports: {} };
19781
- return e3[r2].call(o.exports, o, o.exports, n2), o.l = true, o.exports;
19782
- }
19783
- return n2.m = e3, n2.c = t2, n2.d = function(e4, t3, r2) {
19784
- n2.o(e4, t3) || Object.defineProperty(e4, t3, { enumerable: true, get: r2 });
19785
- }, n2.r = function(e4) {
19786
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e4, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e4, "__esModule", { value: true });
19787
- }, n2.t = function(e4, t3) {
19788
- if (1 & t3 && (e4 = n2(e4)), 8 & t3) return e4;
19789
- if (4 & t3 && "object" == typeof e4 && e4 && e4.__esModule) return e4;
19790
- var r2 = /* @__PURE__ */ Object.create(null);
19791
- if (n2.r(r2), Object.defineProperty(r2, "default", { enumerable: true, value: e4 }), 2 & t3 && "string" != typeof e4) for (var o in e4) n2.d(r2, o, (function(t4) {
19792
- return e4[t4];
19793
- }).bind(null, o));
19794
- return r2;
19795
- }, n2.n = function(e4) {
19796
- var t3 = e4 && e4.__esModule ? function() {
19797
- return e4.default;
19798
- } : function() {
19799
- return e4;
19800
- };
19801
- return n2.d(t3, "a", t3), t3;
19802
- }, n2.o = function(e4, t3) {
19803
- return Object.prototype.hasOwnProperty.call(e4, t3);
19804
- }, n2.p = "", n2(n2.s = 0);
19805
- }([function(e3, t2, n2) {
19806
- Object.defineProperty(t2, "__esModule", { value: true });
19807
- var r2 = n2(1);
19808
- Object.defineProperty(t2, "default", { enumerable: true, get: function() {
19809
- return function(e4) {
19810
- return e4 && e4.__esModule ? e4 : { default: e4 };
19811
- }(r2).default;
19812
- } }), e3.exports = t2.default;
19813
- }, function(e3, t2, n2) {
19814
- Object.defineProperty(t2, "__esModule", { value: true });
19815
- var r2 = Object.assign || function(e4) {
19816
- for (var t3 = 1; t3 < arguments.length; t3++) {
19817
- var n3 = arguments[t3];
19818
- for (var r3 in n3) Object.prototype.hasOwnProperty.call(n3, r3) && (e4[r3] = n3[r3]);
19819
- }
19820
- return e4;
19821
- }, o = /* @__PURE__ */ function() {
19822
- function e4(e5, t3) {
19823
- for (var n3 = 0; n3 < t3.length; n3++) {
19824
- var r3 = t3[n3];
19825
- r3.enumerable = r3.enumerable || false, r3.configurable = true, "value" in r3 && (r3.writable = true), Object.defineProperty(e5, r3.key, r3);
19826
- }
19827
- }
19828
- return function(t3, n3, r3) {
19829
- return n3 && e4(t3.prototype, n3), r3 && e4(t3, r3), t3;
19830
- };
19831
- }(), i = l(n2(2)), u = l(n2(3)), a2 = n2(4);
19832
- function l(e4) {
19833
- return e4 && e4.__esModule ? e4 : { default: e4 };
19834
- }
19835
- var s = [], c2 = function(e4) {
19836
- function t3(e5) {
19837
- !function(e6, t4) {
19838
- if (!(e6 instanceof t4)) throw new TypeError("Cannot call a class as a function");
19839
- }(this, t3);
19840
- var n3 = function(e6, t4) {
19841
- if (!e6) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
19842
- return !t4 || "object" != typeof t4 && "function" != typeof t4 ? e6 : t4;
19843
- }(this, (t3.__proto__ || Object.getPrototypeOf(t3)).call(this, e5));
19844
- return n3.handleKeyboardEvent = n3.handleKeyboardEvent.bind(n3), n3.registerExclusiveHandler = n3.registerExclusiveHandler.bind(n3), n3.deregisterExclusiveHandler = n3.deregisterExclusiveHandler.bind(n3), n3;
19845
- }
19846
- return function(e5, t4) {
19847
- if ("function" != typeof t4 && null !== t4) throw new TypeError("Super expression must either be null or a function, not " + typeof t4);
19848
- e5.prototype = Object.create(t4 && t4.prototype, { constructor: { value: e5, enumerable: false, writable: true, configurable: true } }), t4 && (Object.setPrototypeOf ? Object.setPrototypeOf(e5, t4) : e5.__proto__ = t4);
19849
- }(t3, i.default.Component), o(t3, [{ key: "componentDidMount", value: function() {
19850
- document.addEventListener("keydown", this.handleKeyboardEvent, false), document.addEventListener("keyup", this.handleKeyboardEvent, false), document.addEventListener("keypress", this.handleKeyboardEvent, false);
19851
- var e5 = this.props, t4 = e5.isExclusive, n3 = e5.isDisabled;
19852
- t4 && !n3 && this.registerExclusiveHandler();
19853
- } }, { key: "componentWillUnmount", value: function() {
19854
- document.removeEventListener("keydown", this.handleKeyboardEvent, false), document.removeEventListener("keyup", this.handleKeyboardEvent, false), document.removeEventListener("keypress", this.handleKeyboardEvent, false), this.deregisterExclusiveHandler();
19855
- } }, { key: "componentDidUpdate", value: function(e5) {
19856
- var t4 = e5.isExclusive, n3 = e5.isDisabled;
19857
- (this.props.isExclusive !== t4 || this.props.isDisabled !== n3) && (this.props.isExclusive && !this.props.isDisabled ? this.registerExclusiveHandler() : this.deregisterExclusiveHandler());
19858
- } }, { key: "registerExclusiveHandler", value: function() {
19859
- this.deregisterExclusiveHandler(), s.unshift(this);
19860
- } }, { key: "deregisterExclusiveHandler", value: function() {
19861
- var e5 = this;
19862
- s.includes(this) && (s = s.filter(function(t4) {
19863
- return t4 !== e5;
19864
- }));
19865
- } }, { key: "handleKeyboardEvent", value: function(e5) {
19866
- var t4 = this.props, n3 = t4.isDisabled, r3 = t4.handleKeys, o2 = t4.onKeyEvent, i2 = t4.handleEventType, u2 = t4.children, l2 = t4.handleFocusableElements;
19867
- if (n3) return false;
19868
- if (!(i2 === e5.type)) return false;
19869
- if (s.length > 0 && s[0] !== this) return false;
19870
- var c3 = e5.target === document.body || l2, d2 = this.childrenContainer && this.childrenContainer.contains(e5.target);
19871
- if (!(u2 ? d2 : c3)) return false;
19872
- var f2 = (0, a2.findMatchedKey)(e5, r3);
19873
- return !!f2 && (o2(f2, e5), true);
19874
- } }, { key: "render", value: function() {
19875
- var e5 = this, n3 = this.props.children, o2 = Object.assign({}, this.props), u2 = true, a3 = false, l2 = void 0;
19876
- try {
19877
- for (var s2, c3 = Object.keys(t3.propTypes)[Symbol.iterator](); !(u2 = (s2 = c3.next()).done); u2 = true) {
19878
- delete o2[s2.value];
19879
- }
19880
- } catch (e6) {
19881
- a3 = true, l2 = e6;
19882
- } finally {
19883
- try {
19884
- !u2 && c3.return && c3.return();
19885
- } finally {
19886
- if (a3) throw l2;
19887
- }
19888
- }
19889
- return n3 ? i.default.createElement("span", r2({ ref: function(t4) {
19890
- e5.childrenContainer = t4;
19891
- } }, o2), n3) : null;
19892
- } }]), t3;
19893
- }();
19894
- t2.default = c2, c2.propTypes = { handleKeys: u.default.array, handleEventType: u.default.oneOf(["keydown", "keyup", "keypress"]), handleFocusableElements: u.default.bool, onKeyEvent: u.default.func, isDisabled: u.default.bool, isExclusive: u.default.bool, children: u.default.any }, c2.defaultProps = { handleKeys: [], handleFocusableElements: false, handleEventType: "keydown", onKeyEvent: function() {
19895
- return null;
19896
- } }, e3.exports = t2.default;
19897
- }, function(t2, n2) {
19898
- t2.exports = e2;
19899
- }, function(e3, n2) {
19900
- e3.exports = t;
19901
- }, function(e3, t2, n2) {
19902
- function r2(e4, t3, n3) {
19903
- return t3 in e4 ? Object.defineProperty(e4, t3, { value: n3, enumerable: true, configurable: true, writable: true }) : e4[t3] = n3, e4;
19904
- }
19905
- Object.defineProperty(t2, "__esModule", { value: true }), t2.matchKeyEvent = p, t2.findMatchedKey = function(e4, t3) {
19906
- var n3 = t3.map(function(e5) {
19907
- var t4 = e5.toLowerCase(), n4 = f2[t4];
19908
- return n4 || [e5];
19909
- }).reduce(function(e5, t4) {
19910
- return e5.concat(t4);
19911
- }, []).find(function(t4) {
19912
- return p(e4, t4);
19913
- });
19914
- !n3 && t3.includes("all") && (n3 = "other");
19915
- return n3;
19916
- };
19917
- var o = { backspace: [8], del: [46], delete: [46], ins: [45], insert: [45], tab: [9], enter: [13], return: [13], esc: [27], space: [32], pageup: [33], pagedown: [34], end: [35], home: [36], left: [37], up: [38], right: [39], down: [40], shift: [16], ctrl: [17], alt: [18], cap: [20], num: [144], clear: [12], meta: [91], ";": [186, 59], "=": [187, 61], ",": [188, 44], "-": [189, 45, 173, 109], minus: [189, 45, 173, 109], ".": [190, 110], "/": [191, 111], "`": [192], "[": [219], "\\": [220], "]": [221], "*": [106], "+": [107], plus: [107], "'": [222], quote: [222] }, i = Object.keys(o).reduce(function(e4, t3) {
19918
- return Object.assign(e4, r2({}, t3.toUpperCase(), o[t3]));
19919
- }, {}), u = "0123456789".split("").reduce(function(e4, t3, n3) {
19920
- return Object.assign(e4, r2({}, t3, [n3 + 48, n3 + 96]));
19921
- }, {}), a2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").reduce(function(e4, t3, n3) {
19922
- return Object.assign(e4, r2({}, t3.toLowerCase(), [n3 + 65]), r2({}, t3, [n3 + 65]));
19923
- }, {}), l = "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19".split(",").reduce(function(e4, t3, n3) {
19924
- return Object.assign(e4, r2({}, "f" + t3, [n3 + 112]));
19925
- }, {}), s = { control: "ctrl", ctrl: "ctrl", shift: "shift", meta: "meta", cmd: "meta", command: "meta", option: "alt", alt: "alt" }, c2 = t2.AllKeys = Object.assign({}, o, i, u, a2, l), d2 = Object.assign({}, u, a2), f2 = { all: Object.keys(c2), alphanumeric: Object.keys(d2), numeric: Object.keys(u), alphabetic: Object.keys(a2), function: Object.keys(l) };
19926
- function p(e4, t3) {
19927
- var n3 = e4.which || e4.keyCode, r3 = e4.type, o2 = Object.keys(s).filter(function(t4) {
19928
- return e4[t4 + "Key"];
19929
- }).sort(), i2 = t3.toLowerCase().trim(), u2 = "+" === i2 ? ["+"] : i2.split(/\s?\+\s?/), a3 = u2.pop(), l2 = c2[a3], d3 = u2;
19930
- if ("keypress" === r3) return t3 == String.fromCharCode(n3).toLowerCase();
19931
- if (0 === d3.length && 0 === o2.length) return l2.indexOf(n3) >= 0;
19932
- if (d3.length > 0 && o2.length > 0) {
19933
- var f3 = d3.map(function(e5) {
19934
- return s[e5];
19935
- }).sort(), p2 = f3.length === o2.length && f3.every(function(e5, t4) {
19936
- return o2[t4] === e5;
19937
- });
19938
- return l2.indexOf(n3) >= 0 && p2;
19939
- }
19940
- return 0 == d3.length && 1 === o2.length && a3 === o2[0];
19941
- }
19942
- }]);
19943
- });
19944
- })(reactKeyboardEventHandler);
19945
- var reactKeyboardEventHandlerExports = reactKeyboardEventHandler.exports;
19946
- const KeyboardEventHandler = /* @__PURE__ */ getDefaultExportFromCjs(reactKeyboardEventHandlerExports);
19947
19771
  const useFocus = () => {
19948
19772
  const ref2 = useRef(null);
19949
19773
  const setFocus = () => {
@@ -19976,1023 +19800,6 @@ const useWindowWidth = () => {
19976
19800
  }, []);
19977
19801
  return width2;
19978
19802
  };
19979
- function _assertThisInitialized(e2) {
19980
- if (void 0 === e2) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
19981
- return e2;
19982
- }
19983
- var hasNativePerformanceNow = typeof performance === "object" && typeof performance.now === "function";
19984
- var now = hasNativePerformanceNow ? function() {
19985
- return performance.now();
19986
- } : function() {
19987
- return Date.now();
19988
- };
19989
- function cancelTimeout(timeoutID) {
19990
- cancelAnimationFrame(timeoutID.id);
19991
- }
19992
- function requestTimeout(callback, delay) {
19993
- var start3 = now();
19994
- function tick() {
19995
- if (now() - start3 >= delay) {
19996
- callback.call(null);
19997
- } else {
19998
- timeoutID.id = requestAnimationFrame(tick);
19999
- }
20000
- }
20001
- var timeoutID = {
20002
- id: requestAnimationFrame(tick)
20003
- };
20004
- return timeoutID;
20005
- }
20006
- var size$1 = -1;
20007
- function getScrollbarSize(recalculate) {
20008
- if (recalculate === void 0) {
20009
- recalculate = false;
20010
- }
20011
- if (size$1 === -1 || recalculate) {
20012
- var div = document.createElement("div");
20013
- var style2 = div.style;
20014
- style2.width = "50px";
20015
- style2.height = "50px";
20016
- style2.overflow = "scroll";
20017
- document.body.appendChild(div);
20018
- size$1 = div.offsetWidth - div.clientWidth;
20019
- document.body.removeChild(div);
20020
- }
20021
- return size$1;
20022
- }
20023
- var cachedRTLResult = null;
20024
- function getRTLOffsetType(recalculate) {
20025
- if (recalculate === void 0) {
20026
- recalculate = false;
20027
- }
20028
- if (cachedRTLResult === null || recalculate) {
20029
- var outerDiv = document.createElement("div");
20030
- var outerStyle = outerDiv.style;
20031
- outerStyle.width = "50px";
20032
- outerStyle.height = "50px";
20033
- outerStyle.overflow = "scroll";
20034
- outerStyle.direction = "rtl";
20035
- var innerDiv = document.createElement("div");
20036
- var innerStyle = innerDiv.style;
20037
- innerStyle.width = "100px";
20038
- innerStyle.height = "100px";
20039
- outerDiv.appendChild(innerDiv);
20040
- document.body.appendChild(outerDiv);
20041
- if (outerDiv.scrollLeft > 0) {
20042
- cachedRTLResult = "positive-descending";
20043
- } else {
20044
- outerDiv.scrollLeft = 1;
20045
- if (outerDiv.scrollLeft === 0) {
20046
- cachedRTLResult = "negative";
20047
- } else {
20048
- cachedRTLResult = "positive-ascending";
20049
- }
20050
- }
20051
- document.body.removeChild(outerDiv);
20052
- return cachedRTLResult;
20053
- }
20054
- return cachedRTLResult;
20055
- }
20056
- if (process.env.NODE_ENV !== "production") ;
20057
- var IS_SCROLLING_DEBOUNCE_INTERVAL$1 = 150;
20058
- var defaultItemKey$1 = function defaultItemKey(index2, data) {
20059
- return index2;
20060
- };
20061
- var devWarningsDirection = null;
20062
- var devWarningsTagName$1 = null;
20063
- if (process.env.NODE_ENV !== "production") {
20064
- if (typeof window !== "undefined" && typeof window.WeakSet !== "undefined") {
20065
- devWarningsDirection = /* @__PURE__ */ new WeakSet();
20066
- devWarningsTagName$1 = /* @__PURE__ */ new WeakSet();
20067
- }
20068
- }
20069
- function createListComponent(_ref) {
20070
- var _class;
20071
- var getItemOffset2 = _ref.getItemOffset, getEstimatedTotalSize2 = _ref.getEstimatedTotalSize, getItemSize2 = _ref.getItemSize, getOffsetForIndexAndAlignment2 = _ref.getOffsetForIndexAndAlignment, getStartIndexForOffset2 = _ref.getStartIndexForOffset, getStopIndexForStartIndex2 = _ref.getStopIndexForStartIndex, initInstanceProps2 = _ref.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref.shouldResetStyleCacheOnItemSizeChange, validateProps2 = _ref.validateProps;
20072
- return _class = /* @__PURE__ */ function(_PureComponent) {
20073
- _inheritsLoose$3(List2, _PureComponent);
20074
- function List2(props) {
20075
- var _this;
20076
- _this = _PureComponent.call(this, props) || this;
20077
- _this._instanceProps = initInstanceProps2(_this.props, _assertThisInitialized(_this));
20078
- _this._outerRef = void 0;
20079
- _this._resetIsScrollingTimeoutId = null;
20080
- _this.state = {
20081
- instance: _assertThisInitialized(_this),
20082
- isScrolling: false,
20083
- scrollDirection: "forward",
20084
- scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
20085
- scrollUpdateWasRequested: false
20086
- };
20087
- _this._callOnItemsRendered = void 0;
20088
- _this._callOnItemsRendered = memoizeOne(function(overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {
20089
- return _this.props.onItemsRendered({
20090
- overscanStartIndex,
20091
- overscanStopIndex,
20092
- visibleStartIndex,
20093
- visibleStopIndex
20094
- });
20095
- });
20096
- _this._callOnScroll = void 0;
20097
- _this._callOnScroll = memoizeOne(function(scrollDirection, scrollOffset, scrollUpdateWasRequested) {
20098
- return _this.props.onScroll({
20099
- scrollDirection,
20100
- scrollOffset,
20101
- scrollUpdateWasRequested
20102
- });
20103
- });
20104
- _this._getItemStyle = void 0;
20105
- _this._getItemStyle = function(index2) {
20106
- var _this$props = _this.props, direction = _this$props.direction, itemSize = _this$props.itemSize, layout = _this$props.layout;
20107
- var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize, shouldResetStyleCacheOnItemSizeChange && layout, shouldResetStyleCacheOnItemSizeChange && direction);
20108
- var style2;
20109
- if (itemStyleCache.hasOwnProperty(index2)) {
20110
- style2 = itemStyleCache[index2];
20111
- } else {
20112
- var _offset = getItemOffset2(_this.props, index2, _this._instanceProps);
20113
- var size2 = getItemSize2(_this.props, index2, _this._instanceProps);
20114
- var isHorizontal = direction === "horizontal" || layout === "horizontal";
20115
- var isRtl = direction === "rtl";
20116
- var offsetHorizontal = isHorizontal ? _offset : 0;
20117
- itemStyleCache[index2] = style2 = {
20118
- position: "absolute",
20119
- left: isRtl ? void 0 : offsetHorizontal,
20120
- right: isRtl ? offsetHorizontal : void 0,
20121
- top: !isHorizontal ? _offset : 0,
20122
- height: !isHorizontal ? size2 : "100%",
20123
- width: isHorizontal ? size2 : "100%"
20124
- };
20125
- }
20126
- return style2;
20127
- };
20128
- _this._getItemStyleCache = void 0;
20129
- _this._getItemStyleCache = memoizeOne(function(_2, __, ___) {
20130
- return {};
20131
- });
20132
- _this._onScrollHorizontal = function(event) {
20133
- var _event$currentTarget = event.currentTarget, clientWidth = _event$currentTarget.clientWidth, scrollLeft = _event$currentTarget.scrollLeft, scrollWidth = _event$currentTarget.scrollWidth;
20134
- _this.setState(function(prevState) {
20135
- if (prevState.scrollOffset === scrollLeft) {
20136
- return null;
20137
- }
20138
- var direction = _this.props.direction;
20139
- var scrollOffset = scrollLeft;
20140
- if (direction === "rtl") {
20141
- switch (getRTLOffsetType()) {
20142
- case "negative":
20143
- scrollOffset = -scrollLeft;
20144
- break;
20145
- case "positive-descending":
20146
- scrollOffset = scrollWidth - clientWidth - scrollLeft;
20147
- break;
20148
- }
20149
- }
20150
- scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
20151
- return {
20152
- isScrolling: true,
20153
- scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
20154
- scrollOffset,
20155
- scrollUpdateWasRequested: false
20156
- };
20157
- }, _this._resetIsScrollingDebounced);
20158
- };
20159
- _this._onScrollVertical = function(event) {
20160
- var _event$currentTarget2 = event.currentTarget, clientHeight = _event$currentTarget2.clientHeight, scrollHeight = _event$currentTarget2.scrollHeight, scrollTop = _event$currentTarget2.scrollTop;
20161
- _this.setState(function(prevState) {
20162
- if (prevState.scrollOffset === scrollTop) {
20163
- return null;
20164
- }
20165
- var scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));
20166
- return {
20167
- isScrolling: true,
20168
- scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
20169
- scrollOffset,
20170
- scrollUpdateWasRequested: false
20171
- };
20172
- }, _this._resetIsScrollingDebounced);
20173
- };
20174
- _this._outerRefSetter = function(ref2) {
20175
- var outerRef = _this.props.outerRef;
20176
- _this._outerRef = ref2;
20177
- if (typeof outerRef === "function") {
20178
- outerRef(ref2);
20179
- } else if (outerRef != null && typeof outerRef === "object" && outerRef.hasOwnProperty("current")) {
20180
- outerRef.current = ref2;
20181
- }
20182
- };
20183
- _this._resetIsScrollingDebounced = function() {
20184
- if (_this._resetIsScrollingTimeoutId !== null) {
20185
- cancelTimeout(_this._resetIsScrollingTimeoutId);
20186
- }
20187
- _this._resetIsScrollingTimeoutId = requestTimeout(_this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL$1);
20188
- };
20189
- _this._resetIsScrolling = function() {
20190
- _this._resetIsScrollingTimeoutId = null;
20191
- _this.setState({
20192
- isScrolling: false
20193
- }, function() {
20194
- _this._getItemStyleCache(-1, null);
20195
- });
20196
- };
20197
- return _this;
20198
- }
20199
- List2.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
20200
- validateSharedProps$1(nextProps, prevState);
20201
- validateProps2(nextProps);
20202
- return null;
20203
- };
20204
- var _proto = List2.prototype;
20205
- _proto.scrollTo = function scrollTo(scrollOffset) {
20206
- scrollOffset = Math.max(0, scrollOffset);
20207
- this.setState(function(prevState) {
20208
- if (prevState.scrollOffset === scrollOffset) {
20209
- return null;
20210
- }
20211
- return {
20212
- scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
20213
- scrollOffset,
20214
- scrollUpdateWasRequested: true
20215
- };
20216
- }, this._resetIsScrollingDebounced);
20217
- };
20218
- _proto.scrollToItem = function scrollToItem(index2, align) {
20219
- if (align === void 0) {
20220
- align = "auto";
20221
- }
20222
- var _this$props2 = this.props, itemCount = _this$props2.itemCount, layout = _this$props2.layout;
20223
- var scrollOffset = this.state.scrollOffset;
20224
- index2 = Math.max(0, Math.min(index2, itemCount - 1));
20225
- var scrollbarSize = 0;
20226
- if (this._outerRef) {
20227
- var outerRef = this._outerRef;
20228
- if (layout === "vertical") {
20229
- scrollbarSize = outerRef.scrollWidth > outerRef.clientWidth ? getScrollbarSize() : 0;
20230
- } else {
20231
- scrollbarSize = outerRef.scrollHeight > outerRef.clientHeight ? getScrollbarSize() : 0;
20232
- }
20233
- }
20234
- this.scrollTo(getOffsetForIndexAndAlignment2(this.props, index2, align, scrollOffset, this._instanceProps, scrollbarSize));
20235
- };
20236
- _proto.componentDidMount = function componentDidMount() {
20237
- var _this$props3 = this.props, direction = _this$props3.direction, initialScrollOffset = _this$props3.initialScrollOffset, layout = _this$props3.layout;
20238
- if (typeof initialScrollOffset === "number" && this._outerRef != null) {
20239
- var outerRef = this._outerRef;
20240
- if (direction === "horizontal" || layout === "horizontal") {
20241
- outerRef.scrollLeft = initialScrollOffset;
20242
- } else {
20243
- outerRef.scrollTop = initialScrollOffset;
20244
- }
20245
- }
20246
- this._callPropsCallbacks();
20247
- };
20248
- _proto.componentDidUpdate = function componentDidUpdate() {
20249
- var _this$props4 = this.props, direction = _this$props4.direction, layout = _this$props4.layout;
20250
- var _this$state = this.state, scrollOffset = _this$state.scrollOffset, scrollUpdateWasRequested = _this$state.scrollUpdateWasRequested;
20251
- if (scrollUpdateWasRequested && this._outerRef != null) {
20252
- var outerRef = this._outerRef;
20253
- if (direction === "horizontal" || layout === "horizontal") {
20254
- if (direction === "rtl") {
20255
- switch (getRTLOffsetType()) {
20256
- case "negative":
20257
- outerRef.scrollLeft = -scrollOffset;
20258
- break;
20259
- case "positive-ascending":
20260
- outerRef.scrollLeft = scrollOffset;
20261
- break;
20262
- default:
20263
- var clientWidth = outerRef.clientWidth, scrollWidth = outerRef.scrollWidth;
20264
- outerRef.scrollLeft = scrollWidth - clientWidth - scrollOffset;
20265
- break;
20266
- }
20267
- } else {
20268
- outerRef.scrollLeft = scrollOffset;
20269
- }
20270
- } else {
20271
- outerRef.scrollTop = scrollOffset;
20272
- }
20273
- }
20274
- this._callPropsCallbacks();
20275
- };
20276
- _proto.componentWillUnmount = function componentWillUnmount() {
20277
- if (this._resetIsScrollingTimeoutId !== null) {
20278
- cancelTimeout(this._resetIsScrollingTimeoutId);
20279
- }
20280
- };
20281
- _proto.render = function render2() {
20282
- var _this$props5 = this.props, children = _this$props5.children, className = _this$props5.className, direction = _this$props5.direction, height2 = _this$props5.height, innerRef = _this$props5.innerRef, innerElementType = _this$props5.innerElementType, innerTagName = _this$props5.innerTagName, itemCount = _this$props5.itemCount, itemData = _this$props5.itemData, _this$props5$itemKey = _this$props5.itemKey, itemKey = _this$props5$itemKey === void 0 ? defaultItemKey$1 : _this$props5$itemKey, layout = _this$props5.layout, outerElementType = _this$props5.outerElementType, outerTagName = _this$props5.outerTagName, style2 = _this$props5.style, useIsScrolling = _this$props5.useIsScrolling, width2 = _this$props5.width;
20283
- var isScrolling = this.state.isScrolling;
20284
- var isHorizontal = direction === "horizontal" || layout === "horizontal";
20285
- var onScroll = isHorizontal ? this._onScrollHorizontal : this._onScrollVertical;
20286
- var _this$_getRangeToRend = this._getRangeToRender(), startIndex = _this$_getRangeToRend[0], stopIndex = _this$_getRangeToRend[1];
20287
- var items = [];
20288
- if (itemCount > 0) {
20289
- for (var _index = startIndex; _index <= stopIndex; _index++) {
20290
- items.push(createElement(children, {
20291
- data: itemData,
20292
- key: itemKey(_index, itemData),
20293
- index: _index,
20294
- isScrolling: useIsScrolling ? isScrolling : void 0,
20295
- style: this._getItemStyle(_index)
20296
- }));
20297
- }
20298
- }
20299
- var estimatedTotalSize = getEstimatedTotalSize2(this.props, this._instanceProps);
20300
- return createElement(outerElementType || outerTagName || "div", {
20301
- className,
20302
- onScroll,
20303
- ref: this._outerRefSetter,
20304
- style: _extends$4({
20305
- position: "relative",
20306
- height: height2,
20307
- width: width2,
20308
- overflow: "auto",
20309
- WebkitOverflowScrolling: "touch",
20310
- willChange: "transform",
20311
- direction
20312
- }, style2)
20313
- }, createElement(innerElementType || innerTagName || "div", {
20314
- children: items,
20315
- ref: innerRef,
20316
- style: {
20317
- height: isHorizontal ? "100%" : estimatedTotalSize,
20318
- pointerEvents: isScrolling ? "none" : void 0,
20319
- width: isHorizontal ? estimatedTotalSize : "100%"
20320
- }
20321
- }));
20322
- };
20323
- _proto._callPropsCallbacks = function _callPropsCallbacks() {
20324
- if (typeof this.props.onItemsRendered === "function") {
20325
- var itemCount = this.props.itemCount;
20326
- if (itemCount > 0) {
20327
- var _this$_getRangeToRend2 = this._getRangeToRender(), _overscanStartIndex = _this$_getRangeToRend2[0], _overscanStopIndex = _this$_getRangeToRend2[1], _visibleStartIndex = _this$_getRangeToRend2[2], _visibleStopIndex = _this$_getRangeToRend2[3];
20328
- this._callOnItemsRendered(_overscanStartIndex, _overscanStopIndex, _visibleStartIndex, _visibleStopIndex);
20329
- }
20330
- }
20331
- if (typeof this.props.onScroll === "function") {
20332
- var _this$state2 = this.state, _scrollDirection = _this$state2.scrollDirection, _scrollOffset = _this$state2.scrollOffset, _scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;
20333
- this._callOnScroll(_scrollDirection, _scrollOffset, _scrollUpdateWasRequested);
20334
- }
20335
- };
20336
- _proto._getRangeToRender = function _getRangeToRender() {
20337
- var _this$props6 = this.props, itemCount = _this$props6.itemCount, overscanCount = _this$props6.overscanCount;
20338
- var _this$state3 = this.state, isScrolling = _this$state3.isScrolling, scrollDirection = _this$state3.scrollDirection, scrollOffset = _this$state3.scrollOffset;
20339
- if (itemCount === 0) {
20340
- return [0, 0, 0, 0];
20341
- }
20342
- var startIndex = getStartIndexForOffset2(this.props, scrollOffset, this._instanceProps);
20343
- var stopIndex = getStopIndexForStartIndex2(this.props, startIndex, scrollOffset, this._instanceProps);
20344
- var overscanBackward = !isScrolling || scrollDirection === "backward" ? Math.max(1, overscanCount) : 1;
20345
- var overscanForward = !isScrolling || scrollDirection === "forward" ? Math.max(1, overscanCount) : 1;
20346
- return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(itemCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];
20347
- };
20348
- return List2;
20349
- }(PureComponent), _class.defaultProps = {
20350
- direction: "ltr",
20351
- itemData: void 0,
20352
- layout: "vertical",
20353
- overscanCount: 2,
20354
- useIsScrolling: false
20355
- }, _class;
20356
- }
20357
- var validateSharedProps$1 = function validateSharedProps(_ref2, _ref3) {
20358
- var children = _ref2.children, direction = _ref2.direction, height2 = _ref2.height, layout = _ref2.layout, innerTagName = _ref2.innerTagName, outerTagName = _ref2.outerTagName, width2 = _ref2.width;
20359
- var instance = _ref3.instance;
20360
- if (process.env.NODE_ENV !== "production") {
20361
- if (innerTagName != null || outerTagName != null) {
20362
- if (devWarningsTagName$1 && !devWarningsTagName$1.has(instance)) {
20363
- devWarningsTagName$1.add(instance);
20364
- console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.");
20365
- }
20366
- }
20367
- var isHorizontal = direction === "horizontal" || layout === "horizontal";
20368
- switch (direction) {
20369
- case "horizontal":
20370
- case "vertical":
20371
- if (devWarningsDirection && !devWarningsDirection.has(instance)) {
20372
- devWarningsDirection.add(instance);
20373
- console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.');
20374
- }
20375
- break;
20376
- case "ltr":
20377
- case "rtl":
20378
- break;
20379
- default:
20380
- throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + direction + '" was specified.'));
20381
- }
20382
- switch (layout) {
20383
- case "horizontal":
20384
- case "vertical":
20385
- break;
20386
- default:
20387
- throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + layout + '" was specified.'));
20388
- }
20389
- if (children == null) {
20390
- throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (children === null ? "null" : typeof children) + '" was specified.'));
20391
- }
20392
- if (isHorizontal && typeof width2 !== "number") {
20393
- throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (width2 === null ? "null" : typeof width2) + '" was specified.'));
20394
- } else if (!isHorizontal && typeof height2 !== "number") {
20395
- throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (height2 === null ? "null" : typeof height2) + '" was specified.'));
20396
- }
20397
- }
20398
- };
20399
- var FixedSizeList = /* @__PURE__ */ createListComponent({
20400
- getItemOffset: function getItemOffset(_ref, index2) {
20401
- var itemSize = _ref.itemSize;
20402
- return index2 * itemSize;
20403
- },
20404
- getItemSize: function getItemSize(_ref2, index2) {
20405
- var itemSize = _ref2.itemSize;
20406
- return itemSize;
20407
- },
20408
- getEstimatedTotalSize: function getEstimatedTotalSize(_ref3) {
20409
- var itemCount = _ref3.itemCount, itemSize = _ref3.itemSize;
20410
- return itemSize * itemCount;
20411
- },
20412
- getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment(_ref4, index2, align, scrollOffset, instanceProps, scrollbarSize) {
20413
- var direction = _ref4.direction, height2 = _ref4.height, itemCount = _ref4.itemCount, itemSize = _ref4.itemSize, layout = _ref4.layout, width2 = _ref4.width;
20414
- var isHorizontal = direction === "horizontal" || layout === "horizontal";
20415
- var size2 = isHorizontal ? width2 : height2;
20416
- var lastItemOffset = Math.max(0, itemCount * itemSize - size2);
20417
- var maxOffset = Math.min(lastItemOffset, index2 * itemSize);
20418
- var minOffset = Math.max(0, index2 * itemSize - size2 + itemSize + scrollbarSize);
20419
- if (align === "smart") {
20420
- if (scrollOffset >= minOffset - size2 && scrollOffset <= maxOffset + size2) {
20421
- align = "auto";
20422
- } else {
20423
- align = "center";
20424
- }
20425
- }
20426
- switch (align) {
20427
- case "start":
20428
- return maxOffset;
20429
- case "end":
20430
- return minOffset;
20431
- case "center": {
20432
- var middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);
20433
- if (middleOffset < Math.ceil(size2 / 2)) {
20434
- return 0;
20435
- } else if (middleOffset > lastItemOffset + Math.floor(size2 / 2)) {
20436
- return lastItemOffset;
20437
- } else {
20438
- return middleOffset;
20439
- }
20440
- }
20441
- case "auto":
20442
- default:
20443
- if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
20444
- return scrollOffset;
20445
- } else if (scrollOffset < minOffset) {
20446
- return minOffset;
20447
- } else {
20448
- return maxOffset;
20449
- }
20450
- }
20451
- },
20452
- getStartIndexForOffset: function getStartIndexForOffset(_ref5, offset3) {
20453
- var itemCount = _ref5.itemCount, itemSize = _ref5.itemSize;
20454
- return Math.max(0, Math.min(itemCount - 1, Math.floor(offset3 / itemSize)));
20455
- },
20456
- getStopIndexForStartIndex: function getStopIndexForStartIndex(_ref6, startIndex, scrollOffset) {
20457
- var direction = _ref6.direction, height2 = _ref6.height, itemCount = _ref6.itemCount, itemSize = _ref6.itemSize, layout = _ref6.layout, width2 = _ref6.width;
20458
- var isHorizontal = direction === "horizontal" || layout === "horizontal";
20459
- var offset3 = startIndex * itemSize;
20460
- var size2 = isHorizontal ? width2 : height2;
20461
- var numVisibleItems = Math.ceil((size2 + scrollOffset - offset3) / itemSize);
20462
- return Math.max(0, Math.min(
20463
- itemCount - 1,
20464
- startIndex + numVisibleItems - 1
20465
- // -1 is because stop index is inclusive
20466
- ));
20467
- },
20468
- initInstanceProps: function initInstanceProps(props) {
20469
- },
20470
- shouldResetStyleCacheOnItemSizeChange: true,
20471
- validateProps: function validateProps(_ref7) {
20472
- var itemSize = _ref7.itemSize;
20473
- if (process.env.NODE_ENV !== "production") {
20474
- if (typeof itemSize !== "number") {
20475
- throw Error('An invalid "itemSize" prop has been specified. Value should be a number. ' + ('"' + (itemSize === null ? "null" : typeof itemSize) + '" was specified.'));
20476
- }
20477
- }
20478
- }
20479
- });
20480
- const layerContainer = "_layerContainer_dw2pp_1";
20481
- const layer = "_layer_dw2pp_1";
20482
- const small$5 = "_small_dw2pp_23";
20483
- const heading = "_heading_dw2pp_26";
20484
- const option = "_option_dw2pp_27";
20485
- const message = "_message_dw2pp_28";
20486
- const focused = "_focused_dw2pp_64";
20487
- const selected = "_selected_dw2pp_68";
20488
- const disabled$4 = "_disabled_dw2pp_71";
20489
- const check = "_check_dw2pp_75";
20490
- const optionContent = "_optionContent_dw2pp_92";
20491
- const label$5 = "_label_dw2pp_97";
20492
- const icon$2 = "_icon_dw2pp_104";
20493
- const details = "_details_dw2pp_109";
20494
- const styles$n = {
20495
- layerContainer,
20496
- layer,
20497
- small: small$5,
20498
- heading,
20499
- option,
20500
- message,
20501
- focused,
20502
- selected,
20503
- disabled: disabled$4,
20504
- check,
20505
- optionContent,
20506
- label: label$5,
20507
- icon: icon$2,
20508
- details
20509
- };
20510
- const Heading = ({ label: label2 }) => {
20511
- return /* @__PURE__ */ jsx(
20512
- "div",
20513
- {
20514
- onClick: (evt) => evt.stopPropagation(),
20515
- className: styles$n.heading,
20516
- children: label2
20517
- }
20518
- );
20519
- };
20520
- const Option = ({
20521
- details: details2,
20522
- label: label2,
20523
- icon: icon2,
20524
- disabled: disabled2 = false,
20525
- selected: selected2 = false,
20526
- focused: focused2 = false,
20527
- onSelectOption,
20528
- actions: actions2,
20529
- closeLayer,
20530
- testId
20531
- }) => {
20532
- return /* @__PURE__ */ jsxs(
20533
- "div",
20534
- {
20535
- className: cx$2(
20536
- styles$n.option,
20537
- disabled2 ? styles$n.disabled : "",
20538
- selected2 ? styles$n.selected : "",
20539
- focused2 ? styles$n.focused : ""
20540
- ),
20541
- onClick: !disabled2 && onSelectOption ? onSelectOption : void 0,
20542
- "data-testid": testId,
20543
- children: [
20544
- /* @__PURE__ */ jsx("div", { className: styles$n.optionContent, children: /* @__PURE__ */ jsxs("span", { className: styles$n.label, title: label2, children: [
20545
- label2,
20546
- icon2 && /* @__PURE__ */ jsx("span", { className: styles$n.icon, children: icon2 })
20547
- ] }) }),
20548
- details2 && /* @__PURE__ */ jsx("div", { className: cx$2(styles$n.details), children: /* @__PURE__ */ jsx(Text, { faint: true, children: details2 }) }),
20549
- !!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", { className: cx$2(styles$n.actions), children: /* @__PURE__ */ jsx(Actions, { actions: actions2, closeLayer }) }),
20550
- /* @__PURE__ */ jsx("span", { className: styles$n.check, children: selected2 ? /* @__PURE__ */ jsx(Icon, { icon: IconType.CHECK }) : null })
20551
- ]
20552
- }
20553
- );
20554
- };
20555
- const Section = ({
20556
- section: section2,
20557
- selected: selected2,
20558
- focused: focused2,
20559
- onSelectOption,
20560
- closeLayer
20561
- }) => {
20562
- const disabledContext = useContext(DisabledContext);
20563
- switch (section2.type) {
20564
- case MenuType.HEADING:
20565
- return /* @__PURE__ */ jsx(Heading, { label: section2.label });
20566
- case MenuType.OPTION:
20567
- default:
20568
- return /* @__PURE__ */ jsx(
20569
- Option,
20570
- {
20571
- closeLayer,
20572
- actions: section2.actions,
20573
- label: section2.label,
20574
- details: section2.details,
20575
- icon: section2.icon,
20576
- disabled: section2.disabled || disabledContext,
20577
- selected: selected2,
20578
- focused: focused2,
20579
- onSelectOption,
20580
- testId: section2.testId
20581
- }
20582
- );
20583
- }
20584
- };
20585
- const getTextWidth = (text2, font) => {
20586
- const element = document.createElement("canvas");
20587
- const context2 = element.getContext("2d");
20588
- if (!context2) {
20589
- return 0;
20590
- }
20591
- context2.font = font;
20592
- return context2.measureText(text2).width;
20593
- };
20594
- const FONT_SIZE = "13px";
20595
- const FONT_SIZE_SMALL = "12px";
20596
- const FONT_FAMILY = "Roobert";
20597
- const FONT_FAMILY_FALLBACK = "sans-serif";
20598
- const PADDING = 12;
20599
- const PADDING_SMALL = 8;
20600
- const TOGGLE_SIZE = 30;
20601
- const TOGGLE_SIZE_SMALL = 24;
20602
- const TAG_PADDING = 5;
20603
- const TAG_PADDING_SMALL = 3;
20604
- const TAG_BORDER_WIDTH = 1;
20605
- const TAG_MARGIN = 2;
20606
- const MAX_OPTIONS_LENGTH = 10;
20607
- const getFont = (small2 = false, isFontLoaded = false) => {
20608
- const fontSize = small2 ? FONT_SIZE_SMALL : FONT_SIZE;
20609
- const fontFamily = isFontLoaded ? FONT_FAMILY : FONT_FAMILY_FALLBACK;
20610
- return `${fontSize} ${fontFamily}`;
20611
- };
20612
- const getExtraOptionWidth = (small2 = false, scrollbar = false) => {
20613
- const SCROLLBAR_WIDTH = 17;
20614
- return (small2 ? PADDING_SMALL : PADDING) + (small2 ? TOGGLE_SIZE_SMALL : TOGGLE_SIZE) + (scrollbar ? SCROLLBAR_WIDTH : 0);
20615
- };
20616
- const getWidestOptionWidth = (options, small2, isFontLoaded, placeholder3) => {
20617
- const font = getFont(small2, isFontLoaded);
20618
- const placeholderWidth = placeholder3 ? getTextWidth(placeholder3, font) : 0;
20619
- const widestTextWidth = Math.ceil(
20620
- options.reduce((acc, option2) => {
20621
- var _a2;
20622
- const optionActionsWidth = (((_a2 = option2 == null ? void 0 : option2.actions) == null ? void 0 : _a2.length) ?? 0) * 24;
20623
- const optionIconWidth = option2.icon ? (small2 ? parseInt(FONT_SIZE_SMALL) : parseInt(FONT_SIZE)) + 7 : 0;
20624
- const optionsText = `${option2.label} ${option2.details || ""}`;
20625
- const optionWidth = getTextWidth(optionsText, font) + optionActionsWidth + optionIconWidth;
20626
- acc = optionWidth > acc ? optionWidth : acc;
20627
- return acc;
20628
- }, placeholderWidth)
20629
- );
20630
- const extraWidth = getExtraOptionWidth(small2, true);
20631
- return widestTextWidth + extraWidth;
20632
- };
20633
- const getMultiOptionWidth = (option2, small2, isFontLoaded) => {
20634
- const font = getFont(true, isFontLoaded);
20635
- const textWidth = getTextWidth(option2.label, font);
20636
- const extraWidth = (small2 ? TAG_PADDING_SMALL : TAG_PADDING) * 2 + TAG_BORDER_WIDTH * 2 + TAG_MARGIN;
20637
- return Math.ceil(textWidth + extraWidth);
20638
- };
20639
- const Layer = ({
20640
- listRef,
20641
- isMulti: isMulti2,
20642
- sections,
20643
- selectedOptions,
20644
- onSelectOption,
20645
- focusedOptionIndex,
20646
- width: width2,
20647
- small: small2,
20648
- firstSelectedOptionIndex,
20649
- closeLayer,
20650
- testId
20651
- }) => {
20652
- useEffect(() => {
20653
- if (firstSelectedOptionIndex && firstSelectedOptionIndex !== null && listRef.current !== null) {
20654
- listRef.current.scrollToItem(firstSelectedOptionIndex, "start");
20655
- }
20656
- }, [firstSelectedOptionIndex, listRef]);
20657
- const optionHeight = small2 ? 24 : 30;
20658
- return /* @__PURE__ */ jsx(
20659
- "div",
20660
- {
20661
- "data-testid": testId,
20662
- className: cx$2(styles$n.layer, small2 && styles$n.small),
20663
- children: !sections.length ? /* @__PURE__ */ jsx("ul", { children: /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("div", { className: styles$n.message, style: { width: width2 }, children: "No matches" }) }) }) : /* @__PURE__ */ jsx(
20664
- FixedSizeList,
20665
- {
20666
- ref: listRef,
20667
- height: sections.length < MAX_OPTIONS_LENGTH ? optionHeight * sections.length : optionHeight * MAX_OPTIONS_LENGTH,
20668
- itemCount: sections.length,
20669
- itemSize: optionHeight,
20670
- width: width2,
20671
- children: ({ index: index2, style: style2 }) => {
20672
- var _a2;
20673
- return /* @__PURE__ */ jsx("div", { style: style2, children: /* @__PURE__ */ jsx(
20674
- Section,
20675
- {
20676
- closeLayer,
20677
- section: sections[index2],
20678
- selected: isMulti2 && sections[index2].type !== MenuType.HEADING && Array.isArray(selectedOptions) ? selectedOptions.some(
20679
- (v2) => {
20680
- var _a3;
20681
- return v2 && (v2 == null ? void 0 : v2.value) === ((_a3 = sections == null ? void 0 : sections[index2]) == null ? void 0 : _a3.value);
20682
- }
20683
- ) : !Array.isArray(selectedOptions) && ((_a2 = sections == null ? void 0 : sections[index2]) == null ? void 0 : _a2.value) === (selectedOptions == null ? void 0 : selectedOptions.value),
20684
- focused: focusedOptionIndex === index2,
20685
- onSelectOption: (evt) => onSelectOption(evt, sections[index2])
20686
- }
20687
- ) });
20688
- }
20689
- }
20690
- )
20691
- }
20692
- );
20693
- };
20694
- const inputInTable$5 = "_inputInTable_7uwhv_1";
20695
- const inputHover$5 = "_inputHover_7uwhv_13";
20696
- const inputFocus$5 = "_inputFocus_7uwhv_18";
20697
- const inputError$5 = "_inputError_7uwhv_25";
20698
- const inputWarning$5 = "_inputWarning_7uwhv_26";
20699
- const inputDisabled$5 = "_inputDisabled_7uwhv_61";
20700
- const hideScrollbars$5 = "_hideScrollbars_7uwhv_67";
20701
- const trigger$1 = "_trigger_7uwhv_77";
20702
- const isInTable$1 = "_isInTable_7uwhv_93";
20703
- const input = "_input_7uwhv_1";
20704
- const isOpen = "_isOpen_7uwhv_114";
20705
- const disabled$3 = "_disabled_7uwhv_156";
20706
- const icons = "_icons_7uwhv_162";
20707
- const clearAll = "_clearAll_7uwhv_169";
20708
- const iconOpen = "_iconOpen_7uwhv_170";
20709
- const small$4 = "_small_7uwhv_181";
20710
- const triggerInputContainer = "_triggerInputContainer_7uwhv_189";
20711
- const right$2 = "_right_7uwhv_198";
20712
- const multiOptions = "_multiOptions_7uwhv_211";
20713
- const multiOption = "_multiOption_7uwhv_211";
20714
- const label$4 = "_label_7uwhv_239";
20715
- const closeMultiOption = "_closeMultiOption_7uwhv_242";
20716
- const focus = "_focus_7uwhv_253";
20717
- const selectedSingleValue = "_selectedSingleValue_7uwhv_257";
20718
- const placeHolder = "_placeHolder_7uwhv_258";
20719
- const groupOrderFirst = "_groupOrderFirst_7uwhv_297";
20720
- const groupOrderMiddle = "_groupOrderMiddle_7uwhv_298";
20721
- const groupOrderLast = "_groupOrderLast_7uwhv_302";
20722
- const detailedLabel = "_detailedLabel_7uwhv_307";
20723
- const styles$m = {
20724
- inputInTable: inputInTable$5,
20725
- inputHover: inputHover$5,
20726
- inputFocus: inputFocus$5,
20727
- inputError: inputError$5,
20728
- inputWarning: inputWarning$5,
20729
- inputDisabled: inputDisabled$5,
20730
- hideScrollbars: hideScrollbars$5,
20731
- trigger: trigger$1,
20732
- isInTable: isInTable$1,
20733
- input,
20734
- isOpen,
20735
- disabled: disabled$3,
20736
- icons,
20737
- clearAll,
20738
- iconOpen,
20739
- small: small$4,
20740
- triggerInputContainer,
20741
- right: right$2,
20742
- multiOptions,
20743
- multiOption,
20744
- label: label$4,
20745
- closeMultiOption,
20746
- focus,
20747
- selectedSingleValue,
20748
- placeHolder,
20749
- groupOrderFirst,
20750
- groupOrderMiddle,
20751
- groupOrderLast,
20752
- detailedLabel
20753
- };
20754
- const MultiSelectedOptions = ({
20755
- selectedOptions,
20756
- small: small2,
20757
- width: width2,
20758
- testId
20759
- }) => {
20760
- const isFontLoaded = useFontsReady();
20761
- const [displayedOptions, setDisplayedOptions] = useState([]);
20762
- const [overflowOptions, setOverflowOptions] = useState([]);
20763
- useEffect(() => {
20764
- let displayed = [];
20765
- let overflow = [];
20766
- let usedWidth = 0;
20767
- selectedOptions.forEach((option2, index2) => {
20768
- usedWidth += getMultiOptionWidth(option2, small2, isFontLoaded);
20769
- if (index2 === selectedOptions.length - 1 && usedWidth < width2) {
20770
- displayed.push(option2);
20771
- } else if (usedWidth < width2 - 24) {
20772
- displayed.push(option2);
20773
- } else {
20774
- overflow.push(option2);
20775
- }
20776
- });
20777
- setDisplayedOptions(displayed);
20778
- setOverflowOptions(overflow);
20779
- }, [selectedOptions, isFontLoaded, width2]);
20780
- return /* @__PURE__ */ jsxs(
20781
- "div",
20782
- {
20783
- className: styles$m.multiOptions,
20784
- "data-testid": testId && `${testId}-value`,
20785
- children: [
20786
- displayedOptions.filter((option2) => option2 && option2.label).map((option2, index2) => /* @__PURE__ */ jsx(
20787
- "span",
20788
- {
20789
- className: styles$m.multiOption,
20790
- onClick: (evt) => {
20791
- evt.stopPropagation();
20792
- },
20793
- children: option2.label
20794
- },
20795
- index2
20796
- )),
20797
- overflowOptions.length > 0 && /* @__PURE__ */ jsx(
20798
- Tooltip,
20799
- {
20800
- text: overflowOptions.map((option2, index2) => /* @__PURE__ */ jsx("div", { children: option2.label }, index2)),
20801
- display: "inline-flex",
20802
- children: /* @__PURE__ */ jsx("span", { className: styles$m.multiOption, children: displayedOptions.length ? `+${overflowOptions.length}` : `${overflowOptions.length} items` })
20803
- }
20804
- )
20805
- ]
20806
- }
20807
- );
20808
- };
20809
- const Input = ({
20810
- selectedOptions,
20811
- searchable = false,
20812
- searchValue,
20813
- onChange = noop$3,
20814
- inputRef,
20815
- error: error2,
20816
- placeholder: placeholder3 = "Select...",
20817
- small: small2,
20818
- testId
20819
- }) => {
20820
- const containerRef = useRef(null);
20821
- const isMulti2 = Array.isArray(selectedOptions);
20822
- const hasSelectedValues = isMulti2 ? selectedOptions.length > 0 : !!selectedOptions;
20823
- const inputSize = searchValue ? searchValue.length + 1 : 1;
20824
- const getMultiOptionsWidth = () => {
20825
- var _a2, _b;
20826
- const containerWidth = ((_a2 = containerRef.current) == null ? void 0 : _a2.offsetWidth) || 0;
20827
- const inputWidth = ((_b = inputRef.current) == null ? void 0 : _b.offsetWidth) || 0;
20828
- return containerWidth - inputWidth;
20829
- };
20830
- return /* @__PURE__ */ jsxs("div", { className: styles$m.triggerInputContainer, ref: containerRef, children: [
20831
- !hasSelectedValues ? /* @__PURE__ */ jsx("span", { className: styles$m.placeHolder, children: !(searchValue == null ? void 0 : searchValue.length) ? placeholder3 : "" }) : isMulti2 ? /* @__PURE__ */ jsx(
20832
- MultiSelectedOptions,
20833
- {
20834
- selectedOptions,
20835
- small: small2,
20836
- width: getMultiOptionsWidth(),
20837
- testId
20838
- }
20839
- ) : /* @__PURE__ */ jsx(
20840
- "span",
20841
- {
20842
- className: styles$m.selectedSingleValue,
20843
- "data-testid": testId && `${testId}-value`,
20844
- children: !(searchValue == null ? void 0 : searchValue.length) ? selectedOptions == null ? void 0 : selectedOptions.label : ""
20845
- }
20846
- ),
20847
- searchable ? /* @__PURE__ */ jsx(
20848
- "input",
20849
- {
20850
- tabIndex: -1,
20851
- ref: inputRef,
20852
- size: inputSize,
20853
- className: styles$m.input,
20854
- value: searchValue,
20855
- onChange: (evt) => onChange(evt.target.value),
20856
- "data-error": error2 || null,
20857
- "data-testid": testId && `${testId}-input`
20858
- }
20859
- ) : null
20860
- ] });
20861
- };
20862
- const Trigger = ({
20863
- selectedOptions,
20864
- searchValue,
20865
- searchable,
20866
- clearable,
20867
- onClickTrigger,
20868
- element,
20869
- error: error2,
20870
- warning: warning2,
20871
- tooltip: tooltip2,
20872
- small: small2,
20873
- isInTable: isInTable2,
20874
- disabled: disabled2,
20875
- onChangeSearch,
20876
- onClickDeselect,
20877
- onClickClear,
20878
- tabIndex,
20879
- isOpen: isOpen2,
20880
- triggerRef,
20881
- clearAllIsFocused,
20882
- focusedSelectedOptionIndex,
20883
- onFocus,
20884
- onBlur,
20885
- groupOrder,
20886
- maxTooltipWidth,
20887
- placeholder: placeholder3,
20888
- right: right2,
20889
- isMounted,
20890
- testId
20891
- }) => {
20892
- var _a2;
20893
- const [inputRef, setInputFocus] = useFocus();
20894
- const hasSelection2 = Array.isArray(selectedOptions) ? selectedOptions.length > 0 && ((_a2 = selectedOptions[0]) == null ? void 0 : _a2.value) : selectedOptions == null ? void 0 : selectedOptions.value;
20895
- const canClear = clearable && hasSelection2;
20896
- const order2 = (() => {
20897
- if (groupOrder) {
20898
- switch (groupOrder) {
20899
- case GroupOrder.FIRST:
20900
- return styles$m.groupOrderFirst;
20901
- case GroupOrder.LAST:
20902
- return styles$m.groupOrderLast;
20903
- default:
20904
- return styles$m.groupOrderMiddle;
20905
- }
20906
- }
20907
- return "";
20908
- })();
20909
- const selectedOptionsWithDetails = !Array.isArray(selectedOptions) && (selectedOptions == null ? void 0 : selectedOptions.details) ? {
20910
- ...selectedOptions,
20911
- label: /* @__PURE__ */ jsxs("div", { className: cx$2(styles$m.detailedLabel), children: [
20912
- /* @__PURE__ */ jsx(Text, { children: selectedOptions.label }),
20913
- /* @__PURE__ */ jsx(Text, { muted: true, children: selectedOptions.details })
20914
- ] })
20915
- } : selectedOptions;
20916
- const triggerInput = /* @__PURE__ */ jsxs(Fragment$1, { children: [
20917
- element,
20918
- /* @__PURE__ */ jsxs(
20919
- "div",
20920
- {
20921
- ref: triggerRef,
20922
- tabIndex,
20923
- className: cx$2(
20924
- styles$m.trigger,
20925
- isOpen2 ? styles$m.isOpen : "",
20926
- disabled2 ? styles$m.disabled : "",
20927
- small2 ? styles$m.small : "",
20928
- isInTable2 ? styles$m.isInTable : "",
20929
- right2 ? styles$m.right : "",
20930
- order2
20931
- ),
20932
- onClick: (evt) => {
20933
- onClickTrigger(evt);
20934
- if (typeof setInputFocus === "function") {
20935
- requestAnimationFrame(() => {
20936
- if (isMounted == null ? void 0 : isMounted.current) {
20937
- setInputFocus();
20938
- }
20939
- });
20940
- }
20941
- },
20942
- onFocus,
20943
- onBlur,
20944
- "data-error": error2 || null,
20945
- "data-warning": warning2 || null,
20946
- "data-testid": testId,
20947
- children: [
20948
- /* @__PURE__ */ jsx(
20949
- Input,
20950
- {
20951
- selectedOptions: selectedOptionsWithDetails,
20952
- placeholder: placeholder3,
20953
- searchable,
20954
- searchValue,
20955
- inputRef,
20956
- onChange: onChangeSearch,
20957
- error: error2,
20958
- small: small2,
20959
- testId
20960
- }
20961
- ),
20962
- /* @__PURE__ */ jsx("span", { className: styles$m.icons, children: canClear ? /* @__PURE__ */ jsx(
20963
- "span",
20964
- {
20965
- className: cx$2(
20966
- styles$m.clearAll,
20967
- clearAllIsFocused ? styles$m.focus : ""
20968
- ),
20969
- onClick: (evt) => {
20970
- evt.stopPropagation();
20971
- if (onClickClear) {
20972
- onClickClear(evt);
20973
- }
20974
- },
20975
- "data-testid": testId && `${testId}-clear`,
20976
- children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CLOSE })
20977
- }
20978
- ) : /* @__PURE__ */ jsx("span", { className: cx$2(styles$m.iconOpen), children: /* @__PURE__ */ jsx(Icon, { icon: "chevron down" }) }) })
20979
- ]
20980
- }
20981
- )
20982
- ] });
20983
- return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(
20984
- Tooltip,
20985
- {
20986
- error: !!error2,
20987
- warning: !!warning2,
20988
- text: tooltip2 || error2 || warning2,
20989
- enabled: tooltip2 && isStringNumberOrNode(tooltip2) || error2 && isStringNumberOrNode(error2) || warning2 && isStringNumberOrNode(warning2) || false,
20990
- maxWidth: maxTooltipWidth,
20991
- placement: "bottom-center",
20992
- children: triggerInput
20993
- }
20994
- ) });
20995
- };
20996
19803
  var ReducerAction = /* @__PURE__ */ ((ReducerAction2) => {
20997
19804
  ReducerAction2["SET_VISIBLE_OPTIONS"] = "SET_VISIBLE_OPTIONS";
20998
19805
  ReducerAction2["RESET_LAYER_FOCUS"] = "RESET_LAYER_FOCUS";
@@ -21045,12 +19852,12 @@ const nextTriggerFocus = (direction, selectedOptions, triggerFocus) => {
21045
19852
  const increment = triggerFocus.currentIndex + sign;
21046
19853
  const nextIndex = (increment < 0 ? nextOptions.length - 1 : increment) % nextOptions.length;
21047
19854
  const next2 = nextOptions[nextIndex];
21048
- const clearAll2 = next2 === "clearAll";
19855
+ const clearAll = next2 === "clearAll";
21049
19856
  return {
21050
19857
  options: nextOptions,
21051
19858
  currentIndex: nextIndex,
21052
19859
  currentOption: next2,
21053
- clearAll: clearAll2
19860
+ clearAll
21054
19861
  };
21055
19862
  };
21056
19863
  const blurTriggerFocus = () => initialTriggerFocus;
@@ -21145,6 +19952,49 @@ const reducer = (state, action2) => {
21145
19952
  return state;
21146
19953
  }
21147
19954
  };
19955
+ const getTextWidth = (text2, font) => {
19956
+ const element = document.createElement("canvas");
19957
+ const context2 = element.getContext("2d");
19958
+ if (!context2) {
19959
+ return 0;
19960
+ }
19961
+ context2.font = font;
19962
+ return context2.measureText(text2).width;
19963
+ };
19964
+ const FONT_SIZE = "13px";
19965
+ const FONT_SIZE_SMALL = "12px";
19966
+ const FONT_FAMILY = "Roobert";
19967
+ const FONT_FAMILY_FALLBACK = "sans-serif";
19968
+ const PADDING = 12;
19969
+ const PADDING_SMALL = 8;
19970
+ const TOGGLE_SIZE = 30;
19971
+ const TOGGLE_SIZE_SMALL = 24;
19972
+ const getFont = (small2 = false, isFontLoaded = false) => {
19973
+ const fontSize = small2 ? FONT_SIZE_SMALL : FONT_SIZE;
19974
+ const fontFamily = isFontLoaded ? FONT_FAMILY : FONT_FAMILY_FALLBACK;
19975
+ return `${fontSize} ${fontFamily}`;
19976
+ };
19977
+ const getExtraOptionWidth = (small2 = false, scrollbar = false) => {
19978
+ const SCROLLBAR_WIDTH = 17;
19979
+ return (small2 ? PADDING_SMALL : PADDING) + (small2 ? TOGGLE_SIZE_SMALL : TOGGLE_SIZE) + (scrollbar ? SCROLLBAR_WIDTH : 0);
19980
+ };
19981
+ const getWidestOptionWidth = (options, small2, isFontLoaded, placeholder3) => {
19982
+ const font = getFont(small2, isFontLoaded);
19983
+ const placeholderWidth = placeholder3 ? getTextWidth(placeholder3, font) : 0;
19984
+ const widestTextWidth = Math.ceil(
19985
+ options.reduce((acc, option2) => {
19986
+ var _a2;
19987
+ const optionActionsWidth = (((_a2 = option2 == null ? void 0 : option2.actions) == null ? void 0 : _a2.length) ?? 0) * 24;
19988
+ const optionIconWidth = option2.icon ? (small2 ? parseInt(FONT_SIZE_SMALL) : parseInt(FONT_SIZE)) + 7 : 0;
19989
+ const optionsText = `${option2.label} ${option2.details || ""}`;
19990
+ const optionWidth = getTextWidth(optionsText, font) + optionActionsWidth + optionIconWidth;
19991
+ acc = optionWidth > acc ? optionWidth : acc;
19992
+ return acc;
19993
+ }, placeholderWidth)
19994
+ );
19995
+ const extraWidth = getExtraOptionWidth(small2, true);
19996
+ return widestTextWidth + extraWidth;
19997
+ };
21148
19998
  const placementOptions = {
21149
19999
  auto: true,
21150
20000
  possiblePlacements: ["bottom-start", "top-start"],
@@ -21208,11 +20058,15 @@ const useCustomSelectLogic = ({
21208
20058
  const openLayer = () => safeDispatch({ type: ActionTypes.OPEN_LAYER });
21209
20059
  const isFirstRun = useRef(true);
21210
20060
  useEffect(() => {
20061
+ console.log("isFirstRun mounted");
21211
20062
  if (isFirstRun.current) {
21212
20063
  isFirstRun.current = false;
21213
20064
  } else {
21214
20065
  safeDispatch({ type: ActionTypes.SET_VISIBLE_OPTIONS, options });
21215
20066
  }
20067
+ return () => {
20068
+ console.log("isFirstRun unmounted");
20069
+ };
21216
20070
  }, [options]);
21217
20071
  const onSelectOption = (evt, option2, close2) => {
21218
20072
  if (!(disabled2 || disabledContext)) {
@@ -21294,6 +20148,7 @@ const useCustomSelectLogic = ({
21294
20148
  };
21295
20149
  const isFirstRender = useRef(true);
21296
20150
  useEffect(() => {
20151
+ console.log("isFirstRender mounted");
21297
20152
  if (isFirstRender.current) {
21298
20153
  isFirstRender.current = false;
21299
20154
  } else {
@@ -21301,6 +20156,9 @@ const useCustomSelectLogic = ({
21301
20156
  safeDispatch({ type: ActionTypes.CLEAR_SEARCH, options });
21302
20157
  }
21303
20158
  }
20159
+ return () => {
20160
+ console.log("isFirstRender unmounted");
20161
+ };
21304
20162
  }, [state.isLayerOpen]);
21305
20163
  const onClickDeselectOption = (evt, options2) => {
21306
20164
  const newSelectedOptions = selectedOptions instanceof Array ? selectedOptions.filter((option2) => option2.value !== options2.value) : null;
@@ -21344,7 +20202,7 @@ const useCustomSelectLogic = ({
21344
20202
  selectedOptions
21345
20203
  });
21346
20204
  };
21347
- const clearAll2 = (evt) => onClickClearAll(evt);
20205
+ const clearAll = (evt) => onClickClearAll(evt);
21348
20206
  const deselectIsFocused = selectedOptions && selectedOptions[state.triggerFocus.currentOption];
21349
20207
  const deselectOption = (evt) => {
21350
20208
  onClickDeselectOption(
@@ -21382,7 +20240,7 @@ const useCustomSelectLogic = ({
21382
20240
  }
21383
20241
  case EventKey.ENTER: {
21384
20242
  if (clearAllIsFocused) {
21385
- clearAll2(evt);
20243
+ clearAll(evt);
21386
20244
  } else if (deselectIsFocused) {
21387
20245
  deselectOption(evt);
21388
20246
  } else {
@@ -21491,72 +20349,7 @@ const CustomSelect = (props) => {
21491
20349
  listRef,
21492
20350
  isMounted
21493
20351
  });
21494
- return /* @__PURE__ */ jsx("div", { style: { width: getTriggerWidth() }, children: /* @__PURE__ */ jsxs(
21495
- KeyboardEventHandler,
21496
- {
21497
- handleKeys: Object.values(EventKey),
21498
- onKeyEvent,
21499
- children: [
21500
- /* @__PURE__ */ jsx(
21501
- Trigger,
21502
- {
21503
- selectedOptions,
21504
- searchValue: state.searchValue,
21505
- isOpen: state.isLayerOpen,
21506
- focusedSelectedOptionIndex: state.triggerFocus.currentOption,
21507
- clearAllIsFocused,
21508
- searchable,
21509
- triggerRef: mergeRefs(triggerRef, triggerProps.ref),
21510
- error: error2,
21511
- warning: warning2,
21512
- tooltip: tooltip2,
21513
- small: small2,
21514
- isInTable: isInTable2,
21515
- disabled: disabled2 || disabledContext,
21516
- clearable,
21517
- tabIndex,
21518
- onClickTrigger,
21519
- onChangeSearch,
21520
- onClickDeselect: onClickDeselectOption,
21521
- onClickClear: onClickClearAll,
21522
- onFocus,
21523
- onBlur,
21524
- groupOrder,
21525
- maxTooltipWidth,
21526
- placeholder: placeholder3,
21527
- right: right2,
21528
- testId,
21529
- isMounted
21530
- }
21531
- ),
21532
- state.isLayerOpen && renderLayer(
21533
- /* @__PURE__ */ jsx("div", { ...layerProps, className: styles$n.layerContainer, children: /* @__PURE__ */ jsx(
21534
- Layer,
21535
- {
21536
- listRef,
21537
- isMulti: isMulti2,
21538
- sections: state.visibleOptions,
21539
- selectedOptions,
21540
- onSelectOption: (evt, option2) => {
21541
- const close2 = !isMulti2 ? closeLayer : void 0;
21542
- onSelectOption(evt, option2, close2);
21543
- },
21544
- closeLayer: () => {
21545
- if (closeOnOptionActionClick) {
21546
- closeLayer();
21547
- }
21548
- },
21549
- width: getLayerWidth(triggerBounds),
21550
- small: small2,
21551
- focusedOptionIndex: state.layerFocus.current,
21552
- firstSelectedOptionIndex: firstSelectedOptionIndex ?? 0,
21553
- testId: testId && `${testId}-layer`
21554
- }
21555
- ) })
21556
- )
21557
- ]
21558
- }
21559
- ) });
20352
+ return /* @__PURE__ */ jsx("div", { style: { width: getTriggerWidth() } });
21560
20353
  };
21561
20354
  const isEmptyNullOrUndefined = (value) => value === null || value === void 0 || value === "";
21562
20355
  const isMulti = (selectedOptions) => selectedOptions instanceof Array;
@@ -21857,7 +20650,7 @@ const Pagination = ({ pagination }) => {
21857
20650
  ),
21858
20651
  /* @__PURE__ */ jsxs(InputGroup, { small: small2, width: "auto", children: [
21859
20652
  /* @__PURE__ */ jsx(
21860
- Input$1,
20653
+ Input,
21861
20654
  {
21862
20655
  right: true,
21863
20656
  value: unvalidatedSelectedPage,
@@ -21920,7 +20713,7 @@ const Popover = ({
21920
20713
  onToggle: externalOnToggle
21921
20714
  }) => {
21922
20715
  const disabledContext = useContext(DisabledContext);
21923
- const [isOpen2, setOpen] = externalIsOpen !== void 0 ? [externalIsOpen, externalOnToggle] : useState(false);
20716
+ const [isOpen, setOpen] = externalIsOpen !== void 0 ? [externalIsOpen, externalOnToggle] : useState(false);
21924
20717
  const close2 = () => {
21925
20718
  if (!disabled2 && !disabledContext) {
21926
20719
  if (setOpen) {
@@ -21931,7 +20724,7 @@ const Popover = ({
21931
20724
  const toggle2 = () => {
21932
20725
  if (!(disabled2 || disabledContext)) {
21933
20726
  if (setOpen) {
21934
- setOpen(!isOpen2);
20727
+ setOpen(!isOpen);
21935
20728
  }
21936
20729
  }
21937
20730
  };
@@ -21941,7 +20734,7 @@ const Popover = ({
21941
20734
  }
21942
20735
  }, [disabled2, disabledContext]);
21943
20736
  const { renderLayer, arrowProps, layerProps, triggerProps } = useLayer({
21944
- isOpen: isOpen2,
20737
+ isOpen,
21945
20738
  placement,
21946
20739
  auto: true,
21947
20740
  triggerOffset: 6,
@@ -21951,7 +20744,7 @@ const Popover = ({
21951
20744
  });
21952
20745
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
21953
20746
  /* @__PURE__ */ jsx("div", { ref: triggerProps.ref, onClick: toggle2, "data-testid": testId, children }),
21954
- isOpen2 && renderLayer(
20747
+ isOpen && renderLayer(
21955
20748
  /* @__PURE__ */ jsxs(
21956
20749
  "div",
21957
20750
  {
@@ -22228,11 +21021,11 @@ var makeError = { exports: {} };
22228
21021
  });
22229
21022
  };
22230
21023
  }
22231
- function BaseError(message2) {
22232
- if (message2 !== void 0) {
21024
+ function BaseError(message) {
21025
+ if (message !== void 0) {
22233
21026
  defineProperty2(this, "message", {
22234
21027
  configurable: true,
22235
- value: message2,
21028
+ value: message,
22236
21029
  writable: true
22237
21030
  });
22238
21031
  }
@@ -22888,14 +21681,14 @@ function debounce$1(delay, atBegin, callback) {
22888
21681
  function Cast(value) {
22889
21682
  return value;
22890
21683
  }
22891
- function assertGet(value, key2, message2) {
21684
+ function assertGet(value, key2, message) {
22892
21685
  const prop = value[key2];
22893
- assert(!isUndefined(prop), message2);
21686
+ assert(!isUndefined(prop), message);
22894
21687
  return prop;
22895
21688
  }
22896
- function assert(testValue, message2) {
21689
+ function assert(testValue, message) {
22897
21690
  if (!testValue) {
22898
- throw new AssertionError(message2);
21691
+ throw new AssertionError(message);
22899
21692
  }
22900
21693
  }
22901
21694
  var AssertionError = class extends makeErrorExports.BaseError {
@@ -23170,8 +21963,8 @@ function isErrorConstant(code) {
23170
21963
  return isString$2(code) && includes(values(ErrorConstant), code);
23171
21964
  }
23172
21965
  function createErrorMessage(code, extraMessage) {
23173
- const message2 = errorMessageMap[code];
23174
- const prefix2 = message2 ? `${message2}
21966
+ const message = errorMessageMap[code];
21967
+ const prefix2 = message ? `${message}
23175
21968
 
23176
21969
  ` : "";
23177
21970
  const customMessage = extraMessage ? `${extraMessage}
@@ -23183,9 +21976,9 @@ var RemirrorError = class extends makeErrorExports.BaseError {
23183
21976
  /**
23184
21977
  * The constructor is intentionally kept private to prevent being extended from.
23185
21978
  */
23186
- constructor({ code, message: message2, disableLogging = false } = {}) {
21979
+ constructor({ code, message, disableLogging = false } = {}) {
23187
21980
  const errorCode = isErrorConstant(code) ? code : ErrorConstant.CUSTOM;
23188
- super(createErrorMessage(errorCode, message2));
21981
+ super(createErrorMessage(errorCode, message));
23189
21982
  this.errorCode = errorCode;
23190
21983
  this.url = `${ERROR_INFORMATION_URL}#${errorCode.toLowerCase()}`;
23191
21984
  if (!disableLogging) {
@@ -25906,16 +24699,16 @@ class NodeContext {
25906
24699
  }
25907
24700
  }
25908
24701
  class ParseContext {
25909
- constructor(parser2, options, isOpen2) {
24702
+ constructor(parser2, options, isOpen) {
25910
24703
  this.parser = parser2;
25911
24704
  this.options = options;
25912
- this.isOpen = isOpen2;
24705
+ this.isOpen = isOpen;
25913
24706
  this.open = 0;
25914
24707
  let topNode = options.topNode, topContext;
25915
- let topOptions = wsOptionsFor(null, options.preserveWhitespace, 0) | (isOpen2 ? OPT_OPEN_LEFT : 0);
24708
+ let topOptions = wsOptionsFor(null, options.preserveWhitespace, 0) | (isOpen ? OPT_OPEN_LEFT : 0);
25916
24709
  if (topNode)
25917
24710
  topContext = new NodeContext(topNode.type, topNode.attrs, Mark$1.none, true, options.topMatch || topNode.type.contentMatch, topOptions);
25918
- else if (isOpen2)
24711
+ else if (isOpen)
25919
24712
  topContext = new NodeContext(null, null, Mark$1.none, true, null, topOptions);
25920
24713
  else
25921
24714
  topContext = new NodeContext(parser2.schema.topNodeType, null, Mark$1.none, true, null, topOptions);
@@ -26857,8 +25650,8 @@ class StepResult {
26857
25650
  /**
26858
25651
  Create a failed step result.
26859
25652
  */
26860
- static fail(message2) {
26861
- return new StepResult(null, message2);
25653
+ static fail(message) {
25654
+ return new StepResult(null, message);
26862
25655
  }
26863
25656
  /**
26864
25657
  Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
@@ -28004,8 +26797,8 @@ class DocAttrStep extends Step {
28004
26797
  Step.jsonID("docAttr", DocAttrStep);
28005
26798
  let TransformError = class extends Error {
28006
26799
  };
28007
- TransformError = function TransformError2(message2) {
28008
- let err = Error.call(this, message2);
26800
+ TransformError = function TransformError2(message) {
26801
+ let err = Error.call(this, message);
28009
26802
  err.__proto__ = TransformError2.prototype;
28010
26803
  return err;
28011
26804
  };
@@ -32405,10 +31198,10 @@ editHandlers.keydown = (view, _event) => {
32405
31198
  if (event.keyCode != 229)
32406
31199
  view.domObserver.forceFlush();
32407
31200
  if (ios && event.keyCode == 13 && !event.ctrlKey && !event.altKey && !event.metaKey) {
32408
- let now2 = Date.now();
32409
- view.input.lastIOSEnter = now2;
31201
+ let now = Date.now();
31202
+ view.input.lastIOSEnter = now;
32410
31203
  view.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
32411
- if (view.input.lastIOSEnter == now2) {
31204
+ if (view.input.lastIOSEnter == now) {
32412
31205
  view.someProp("handleKeyDown", (f2) => f2(view, keyEvent(13, "Enter")));
32413
31206
  view.input.lastIOSEnter = 0;
32414
31207
  }
@@ -32538,14 +31331,14 @@ handlers.mousedown = (view, _event) => {
32538
31331
  let event = _event;
32539
31332
  view.input.shiftKey = event.shiftKey;
32540
31333
  let flushed = forceDOMFlush(view);
32541
- let now2 = Date.now(), type = "singleClick";
32542
- if (now2 - view.input.lastClick.time < 500 && isNear$1(event, view.input.lastClick) && !event[selectNodeModifier]) {
31334
+ let now = Date.now(), type = "singleClick";
31335
+ if (now - view.input.lastClick.time < 500 && isNear$1(event, view.input.lastClick) && !event[selectNodeModifier]) {
32543
31336
  if (view.input.lastClick.type == "singleClick")
32544
31337
  type = "doubleClick";
32545
31338
  else if (view.input.lastClick.type == "doubleClick")
32546
31339
  type = "tripleClick";
32547
31340
  }
32548
- view.input.lastClick = { time: now2, x: event.clientX, y: event.clientY, type };
31341
+ view.input.lastClick = { time: now, x: event.clientX, y: event.clientY, type };
32549
31342
  let pos = view.posAtCoords(eventCoords(event));
32550
31343
  if (!pos)
32551
31344
  return;
@@ -50515,7 +49308,7 @@ var moo = { exports: {} };
50515
49308
  return new LexerIterator(this);
50516
49309
  };
50517
49310
  }
50518
- Lexer2.prototype.formatError = function(token2, message2) {
49311
+ Lexer2.prototype.formatError = function(token2, message) {
50519
49312
  if (token2 == null) {
50520
49313
  var text2 = this.buffer.slice(this.index);
50521
49314
  var token2 = {
@@ -50535,7 +49328,7 @@ var moo = { exports: {} };
50535
49328
  this.line - token2.line + numLinesAround + 1
50536
49329
  ).slice(0, 5);
50537
49330
  var errorLines = [];
50538
- errorLines.push(message2 + " at line " + token2.line + " col " + token2.col + ":");
49331
+ errorLines.push(message + " at line " + token2.line + " col " + token2.col + ":");
50539
49332
  errorLines.push("");
50540
49333
  for (var i = 0; i < displayedLines.length; i++) {
50541
49334
  var line2 = displayedLines[i];
@@ -50870,14 +49663,14 @@ function processTokens(tokens, mapText) {
50870
49663
  ];
50871
49664
  });
50872
49665
  }
50873
- function compileMessage(message2, mapText = (v2) => v2) {
49666
+ function compileMessage(message, mapText = (v2) => v2) {
50874
49667
  try {
50875
- return processTokens(parse_1(message2), mapText);
49668
+ return processTokens(parse_1(message), mapText);
50876
49669
  } catch (e2) {
50877
49670
  console.error(`${e2.message}
50878
49671
 
50879
- Message: ${message2}`);
50880
- return message2;
49672
+ Message: ${message}`);
49673
+ return message;
50881
49674
  }
50882
49675
  }
50883
49676
  const isString$1 = (s) => typeof s === "string";
@@ -50935,21 +49728,21 @@ const getDefaultFormats = (locale, passedLocales, formats = {}) => {
50935
49728
  const style2 = (format) => {
50936
49729
  return typeof format === "object" ? format : formats[format] || { style: format };
50937
49730
  };
50938
- const replaceOctothorpe = (value, message2) => {
49731
+ const replaceOctothorpe = (value, message) => {
50939
49732
  const numberFormat = Object.keys(formats).length ? style2("number") : void 0;
50940
49733
  const valueStr = number$1(locales, value, numberFormat);
50941
- return message2.replace(new RegExp(OCTOTHORPE_PH, "g"), valueStr);
49734
+ return message.replace(new RegExp(OCTOTHORPE_PH, "g"), valueStr);
50942
49735
  };
50943
49736
  return {
50944
49737
  plural: (value, cases) => {
50945
49738
  const { offset: offset3 = 0 } = cases;
50946
- const message2 = plural(locales, false, value, cases);
50947
- return replaceOctothorpe(value - offset3, message2);
49739
+ const message = plural(locales, false, value, cases);
49740
+ return replaceOctothorpe(value - offset3, message);
50948
49741
  },
50949
49742
  selectordinal: (value, cases) => {
50950
49743
  const { offset: offset3 = 0 } = cases;
50951
- const message2 = plural(locales, true, value, cases);
50952
- return replaceOctothorpe(value - offset3, message2);
49744
+ const message = plural(locales, true, value, cases);
49745
+ return replaceOctothorpe(value - offset3, message);
50953
49746
  },
50954
49747
  select: selectFormatter,
50955
49748
  number: (value, format) => number$1(locales, value, style2(format)),
@@ -50963,12 +49756,12 @@ function interpolate$1(translation, locale, locales) {
50963
49756
  const formatMessage = (tokens, replaceOctothorpe = false) => {
50964
49757
  if (!Array.isArray(tokens))
50965
49758
  return tokens;
50966
- return tokens.reduce((message2, token2) => {
49759
+ return tokens.reduce((message, token2) => {
50967
49760
  if (token2 === "#" && replaceOctothorpe) {
50968
- return message2 + OCTOTHORPE_PH;
49761
+ return message + OCTOTHORPE_PH;
50969
49762
  }
50970
49763
  if (isString$1(token2)) {
50971
- return message2 + token2;
49764
+ return message + token2;
50972
49765
  }
50973
49766
  const [name2, type, format] = token2;
50974
49767
  let interpolatedFormat = {};
@@ -50992,9 +49785,9 @@ function interpolate$1(translation, locale, locales) {
50992
49785
  value = values2[name2];
50993
49786
  }
50994
49787
  if (value == null) {
50995
- return message2;
49788
+ return message;
50996
49789
  }
50997
- return message2 + value;
49790
+ return message + value;
50998
49791
  }, "");
50999
49792
  };
51000
49793
  const result = formatMessage(translation);
@@ -51141,13 +49934,13 @@ class I18n extends EventEmitter {
51141
49934
  this.emit("change");
51142
49935
  }
51143
49936
  _(id2, values2, options) {
51144
- let message2 = options == null ? void 0 : options.message;
49937
+ let message = options == null ? void 0 : options.message;
51145
49938
  if (!id2) {
51146
49939
  id2 = "";
51147
49940
  }
51148
49941
  if (!isString$1(id2)) {
51149
49942
  values2 = id2.values || values2;
51150
- message2 = id2.message;
49943
+ message = id2.message;
51151
49944
  id2 = id2.id;
51152
49945
  }
51153
49946
  const messageForId = this.messages[id2];
@@ -51159,7 +49952,7 @@ class I18n extends EventEmitter {
51159
49952
  if (messageMissing) {
51160
49953
  this.emit("missing", { id: id2, locale: this._locale });
51161
49954
  }
51162
- let translation = messageForId || message2 || id2;
49955
+ let translation = messageForId || message || id2;
51163
49956
  if (process.env.NODE_ENV !== "production") {
51164
49957
  translation = isString$1(translation) ? compileMessage(translation) : translation;
51165
49958
  }
@@ -52677,13 +51470,13 @@ const styles$d = {
52677
51470
  icon: icon$1
52678
51471
  };
52679
51472
  const TooltipIcon = memo(
52680
- ({ isOpen: isOpen2, label: label2, icon: icon2, invalid }) => {
51473
+ ({ isOpen, label: label2, icon: icon2, invalid }) => {
52681
51474
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
52682
51475
  /* @__PURE__ */ jsx(
52683
51476
  Tooltip,
52684
51477
  {
52685
51478
  text: label2,
52686
- enabled: !isOpen2,
51479
+ enabled: !isOpen,
52687
51480
  placement: "right-center",
52688
51481
  possiblePlacements: ["right-center"],
52689
51482
  fontSize: 16,
@@ -52698,7 +51491,7 @@ const TooltipIcon = memo(
52698
51491
  (prevProps, nextProps) => isEqual$1(prevProps, nextProps)
52699
51492
  );
52700
51493
  const Link$1 = ({
52701
- isOpen: isOpen2,
51494
+ isOpen,
52702
51495
  items,
52703
51496
  sectionIndex,
52704
51497
  onClick,
@@ -52723,7 +51516,7 @@ const Link$1 = ({
52723
51516
  label: link2.label,
52724
51517
  icon: link2.icon,
52725
51518
  invalid: link2.invalid,
52726
- isOpen: isOpen2
51519
+ isOpen
52727
51520
  },
52728
51521
  key2
52729
51522
  )
@@ -52733,7 +51526,7 @@ const Link$1 = ({
52733
51526
  }) });
52734
51527
  };
52735
51528
  const Sections = ({
52736
- isOpen: isOpen2,
51529
+ isOpen,
52737
51530
  sections,
52738
51531
  onClick
52739
51532
  }) => {
@@ -52742,7 +51535,7 @@ const Sections = ({
52742
51535
  /* @__PURE__ */ jsx(
52743
51536
  Link$1,
52744
51537
  {
52745
- isOpen: isOpen2,
51538
+ isOpen,
52746
51539
  items: section2.items,
52747
51540
  sectionIndex: i,
52748
51541
  onClick,
@@ -52759,7 +51552,7 @@ const SideBar = memo(
52759
51552
  },
52760
51553
  top: top2
52761
51554
  }) => {
52762
- const [isOpen2, setIsOpen] = useState(startOpen);
51555
+ const [isOpen, setIsOpen] = useState(startOpen);
52763
51556
  const onClick = (evt, value, label2, clickHandler) => {
52764
51557
  evt.preventDefault();
52765
51558
  if (typeof clickHandler === "function") {
@@ -52774,7 +51567,7 @@ const SideBar = memo(
52774
51567
  Drawer,
52775
51568
  {
52776
51569
  fixed: true,
52777
- open: isOpen2,
51570
+ open: isOpen,
52778
51571
  top: top2,
52779
51572
  background: "var(--color-background-sidebar)",
52780
51573
  closedWidth: "var(--size-sidebar)",
@@ -52787,19 +51580,19 @@ const SideBar = memo(
52787
51580
  if (evt.shiftKey && onShiftClickToggleOpen) {
52788
51581
  onShiftClickToggleOpen(evt);
52789
51582
  }
52790
- setIsOpen(!isOpen2);
51583
+ setIsOpen(!isOpen);
52791
51584
  },
52792
51585
  colored: true,
52793
51586
  round: true,
52794
51587
  icon: IconType.LEFT
52795
51588
  }
52796
51589
  ),
52797
- children: /* @__PURE__ */ jsx("div", { className: cx$2(styles$d.sidebar, !isOpen2 ? styles$d.collapsed : ""), children: visible && /* @__PURE__ */ jsxs("div", { className: styles$d.inner, children: [
51590
+ children: /* @__PURE__ */ jsx("div", { className: cx$2(styles$d.sidebar, !isOpen ? styles$d.collapsed : ""), children: visible && /* @__PURE__ */ jsxs("div", { className: styles$d.inner, children: [
52798
51591
  /* @__PURE__ */ jsx("h4", { className: styles$d.title, children: options.title }),
52799
51592
  /* @__PURE__ */ jsx(
52800
51593
  Sections,
52801
51594
  {
52802
- isOpen: isOpen2,
51595
+ isOpen,
52803
51596
  sections: options.sections,
52804
51597
  onClick
52805
51598
  }
@@ -52869,21 +51662,21 @@ var preWarningFns = [];
52869
51662
  var preMessage = function preMessage2(fn) {
52870
51663
  preWarningFns.push(fn);
52871
51664
  };
52872
- function warning$1(valid, message2) {
51665
+ function warning$1(valid, message) {
52873
51666
  if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
52874
51667
  var finalMessage = preWarningFns.reduce(function(msg2, preMessageFn) {
52875
51668
  return preMessageFn(msg2 !== null && msg2 !== void 0 ? msg2 : "", "warning");
52876
- }, message2);
51669
+ }, message);
52877
51670
  if (finalMessage) {
52878
51671
  console.error("Warning: ".concat(finalMessage));
52879
51672
  }
52880
51673
  }
52881
51674
  }
52882
- function note(valid, message2) {
51675
+ function note(valid, message) {
52883
51676
  if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
52884
51677
  var finalMessage = preWarningFns.reduce(function(msg2, preMessageFn) {
52885
51678
  return preMessageFn(msg2 !== null && msg2 !== void 0 ? msg2 : "", "note");
52886
- }, message2);
51679
+ }, message);
52887
51680
  if (finalMessage) {
52888
51681
  console.warn("Note: ".concat(finalMessage));
52889
51682
  }
@@ -52892,17 +51685,17 @@ function note(valid, message2) {
52892
51685
  function resetWarned() {
52893
51686
  warned$1 = {};
52894
51687
  }
52895
- function call(method, valid, message2) {
52896
- if (!valid && !warned$1[message2]) {
52897
- method(false, message2);
52898
- warned$1[message2] = true;
51688
+ function call(method, valid, message) {
51689
+ if (!valid && !warned$1[message]) {
51690
+ method(false, message);
51691
+ warned$1[message] = true;
52899
51692
  }
52900
51693
  }
52901
- function warningOnce(valid, message2) {
52902
- call(warning$1, valid, message2);
51694
+ function warningOnce(valid, message) {
51695
+ call(warning$1, valid, message);
52903
51696
  }
52904
- function noteOnce(valid, message2) {
52905
- call(note, valid, message2);
51697
+ function noteOnce(valid, message) {
51698
+ call(note, valid, message);
52906
51699
  }
52907
51700
  warningOnce.preMessage = preMessage;
52908
51701
  warningOnce.resetWarned = resetWarned;
@@ -55400,7 +54193,7 @@ const Title$1 = ({
55400
54193
  return /* @__PURE__ */ jsx("div", { children: actionsComponent });
55401
54194
  };
55402
54195
  return /* @__PURE__ */ jsxs("div", { className: styles$a.title, children: [
55403
- isNameDefined ? /* @__PURE__ */ jsx(Heading$2, { children: /* @__PURE__ */ jsx("span", { "data-testid": testId, children: name2 }) }) : null,
54196
+ isNameDefined ? /* @__PURE__ */ jsx(Heading$1, { children: /* @__PURE__ */ jsx("span", { "data-testid": testId, children: name2 }) }) : null,
55404
54197
  actionsContainer()
55405
54198
  ] });
55406
54199
  };
@@ -55620,7 +54413,7 @@ const InputCell = ({
55620
54413
  type
55621
54414
  }) => {
55622
54415
  return /* @__PURE__ */ jsx(
55623
- Input$1,
54416
+ Input,
55624
54417
  {
55625
54418
  name: cell2.name,
55626
54419
  value: cell2.value,
@@ -55656,6 +54449,182 @@ const roundNumberCosmetic = (value) => {
55656
54449
  roundToPrecision(toNum(value), COSMETIC_ROUNDING_DEFAULT_PRECISION)
55657
54450
  ) : value;
55658
54451
  };
54452
+ var reactKeyboardEventHandler = { exports: {} };
54453
+ (function(module, exports) {
54454
+ !function(e2, t) {
54455
+ module.exports = t(React__default, PropTypes__default);
54456
+ }(window, function(e2, t) {
54457
+ return function(e3) {
54458
+ var t2 = {};
54459
+ function n2(r2) {
54460
+ if (t2[r2]) return t2[r2].exports;
54461
+ var o = t2[r2] = { i: r2, l: false, exports: {} };
54462
+ return e3[r2].call(o.exports, o, o.exports, n2), o.l = true, o.exports;
54463
+ }
54464
+ return n2.m = e3, n2.c = t2, n2.d = function(e4, t3, r2) {
54465
+ n2.o(e4, t3) || Object.defineProperty(e4, t3, { enumerable: true, get: r2 });
54466
+ }, n2.r = function(e4) {
54467
+ "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e4, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e4, "__esModule", { value: true });
54468
+ }, n2.t = function(e4, t3) {
54469
+ if (1 & t3 && (e4 = n2(e4)), 8 & t3) return e4;
54470
+ if (4 & t3 && "object" == typeof e4 && e4 && e4.__esModule) return e4;
54471
+ var r2 = /* @__PURE__ */ Object.create(null);
54472
+ if (n2.r(r2), Object.defineProperty(r2, "default", { enumerable: true, value: e4 }), 2 & t3 && "string" != typeof e4) for (var o in e4) n2.d(r2, o, (function(t4) {
54473
+ return e4[t4];
54474
+ }).bind(null, o));
54475
+ return r2;
54476
+ }, n2.n = function(e4) {
54477
+ var t3 = e4 && e4.__esModule ? function() {
54478
+ return e4.default;
54479
+ } : function() {
54480
+ return e4;
54481
+ };
54482
+ return n2.d(t3, "a", t3), t3;
54483
+ }, n2.o = function(e4, t3) {
54484
+ return Object.prototype.hasOwnProperty.call(e4, t3);
54485
+ }, n2.p = "", n2(n2.s = 0);
54486
+ }([function(e3, t2, n2) {
54487
+ Object.defineProperty(t2, "__esModule", { value: true });
54488
+ var r2 = n2(1);
54489
+ Object.defineProperty(t2, "default", { enumerable: true, get: function() {
54490
+ return function(e4) {
54491
+ return e4 && e4.__esModule ? e4 : { default: e4 };
54492
+ }(r2).default;
54493
+ } }), e3.exports = t2.default;
54494
+ }, function(e3, t2, n2) {
54495
+ Object.defineProperty(t2, "__esModule", { value: true });
54496
+ var r2 = Object.assign || function(e4) {
54497
+ for (var t3 = 1; t3 < arguments.length; t3++) {
54498
+ var n3 = arguments[t3];
54499
+ for (var r3 in n3) Object.prototype.hasOwnProperty.call(n3, r3) && (e4[r3] = n3[r3]);
54500
+ }
54501
+ return e4;
54502
+ }, o = /* @__PURE__ */ function() {
54503
+ function e4(e5, t3) {
54504
+ for (var n3 = 0; n3 < t3.length; n3++) {
54505
+ var r3 = t3[n3];
54506
+ r3.enumerable = r3.enumerable || false, r3.configurable = true, "value" in r3 && (r3.writable = true), Object.defineProperty(e5, r3.key, r3);
54507
+ }
54508
+ }
54509
+ return function(t3, n3, r3) {
54510
+ return n3 && e4(t3.prototype, n3), r3 && e4(t3, r3), t3;
54511
+ };
54512
+ }(), i = l(n2(2)), u = l(n2(3)), a2 = n2(4);
54513
+ function l(e4) {
54514
+ return e4 && e4.__esModule ? e4 : { default: e4 };
54515
+ }
54516
+ var s = [], c2 = function(e4) {
54517
+ function t3(e5) {
54518
+ !function(e6, t4) {
54519
+ if (!(e6 instanceof t4)) throw new TypeError("Cannot call a class as a function");
54520
+ }(this, t3);
54521
+ var n3 = function(e6, t4) {
54522
+ if (!e6) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
54523
+ return !t4 || "object" != typeof t4 && "function" != typeof t4 ? e6 : t4;
54524
+ }(this, (t3.__proto__ || Object.getPrototypeOf(t3)).call(this, e5));
54525
+ return n3.handleKeyboardEvent = n3.handleKeyboardEvent.bind(n3), n3.registerExclusiveHandler = n3.registerExclusiveHandler.bind(n3), n3.deregisterExclusiveHandler = n3.deregisterExclusiveHandler.bind(n3), n3;
54526
+ }
54527
+ return function(e5, t4) {
54528
+ if ("function" != typeof t4 && null !== t4) throw new TypeError("Super expression must either be null or a function, not " + typeof t4);
54529
+ e5.prototype = Object.create(t4 && t4.prototype, { constructor: { value: e5, enumerable: false, writable: true, configurable: true } }), t4 && (Object.setPrototypeOf ? Object.setPrototypeOf(e5, t4) : e5.__proto__ = t4);
54530
+ }(t3, i.default.Component), o(t3, [{ key: "componentDidMount", value: function() {
54531
+ document.addEventListener("keydown", this.handleKeyboardEvent, false), document.addEventListener("keyup", this.handleKeyboardEvent, false), document.addEventListener("keypress", this.handleKeyboardEvent, false);
54532
+ var e5 = this.props, t4 = e5.isExclusive, n3 = e5.isDisabled;
54533
+ t4 && !n3 && this.registerExclusiveHandler();
54534
+ } }, { key: "componentWillUnmount", value: function() {
54535
+ document.removeEventListener("keydown", this.handleKeyboardEvent, false), document.removeEventListener("keyup", this.handleKeyboardEvent, false), document.removeEventListener("keypress", this.handleKeyboardEvent, false), this.deregisterExclusiveHandler();
54536
+ } }, { key: "componentDidUpdate", value: function(e5) {
54537
+ var t4 = e5.isExclusive, n3 = e5.isDisabled;
54538
+ (this.props.isExclusive !== t4 || this.props.isDisabled !== n3) && (this.props.isExclusive && !this.props.isDisabled ? this.registerExclusiveHandler() : this.deregisterExclusiveHandler());
54539
+ } }, { key: "registerExclusiveHandler", value: function() {
54540
+ this.deregisterExclusiveHandler(), s.unshift(this);
54541
+ } }, { key: "deregisterExclusiveHandler", value: function() {
54542
+ var e5 = this;
54543
+ s.includes(this) && (s = s.filter(function(t4) {
54544
+ return t4 !== e5;
54545
+ }));
54546
+ } }, { key: "handleKeyboardEvent", value: function(e5) {
54547
+ var t4 = this.props, n3 = t4.isDisabled, r3 = t4.handleKeys, o2 = t4.onKeyEvent, i2 = t4.handleEventType, u2 = t4.children, l2 = t4.handleFocusableElements;
54548
+ if (n3) return false;
54549
+ if (!(i2 === e5.type)) return false;
54550
+ if (s.length > 0 && s[0] !== this) return false;
54551
+ var c3 = e5.target === document.body || l2, d2 = this.childrenContainer && this.childrenContainer.contains(e5.target);
54552
+ if (!(u2 ? d2 : c3)) return false;
54553
+ var f2 = (0, a2.findMatchedKey)(e5, r3);
54554
+ return !!f2 && (o2(f2, e5), true);
54555
+ } }, { key: "render", value: function() {
54556
+ var e5 = this, n3 = this.props.children, o2 = Object.assign({}, this.props), u2 = true, a3 = false, l2 = void 0;
54557
+ try {
54558
+ for (var s2, c3 = Object.keys(t3.propTypes)[Symbol.iterator](); !(u2 = (s2 = c3.next()).done); u2 = true) {
54559
+ delete o2[s2.value];
54560
+ }
54561
+ } catch (e6) {
54562
+ a3 = true, l2 = e6;
54563
+ } finally {
54564
+ try {
54565
+ !u2 && c3.return && c3.return();
54566
+ } finally {
54567
+ if (a3) throw l2;
54568
+ }
54569
+ }
54570
+ return n3 ? i.default.createElement("span", r2({ ref: function(t4) {
54571
+ e5.childrenContainer = t4;
54572
+ } }, o2), n3) : null;
54573
+ } }]), t3;
54574
+ }();
54575
+ t2.default = c2, c2.propTypes = { handleKeys: u.default.array, handleEventType: u.default.oneOf(["keydown", "keyup", "keypress"]), handleFocusableElements: u.default.bool, onKeyEvent: u.default.func, isDisabled: u.default.bool, isExclusive: u.default.bool, children: u.default.any }, c2.defaultProps = { handleKeys: [], handleFocusableElements: false, handleEventType: "keydown", onKeyEvent: function() {
54576
+ return null;
54577
+ } }, e3.exports = t2.default;
54578
+ }, function(t2, n2) {
54579
+ t2.exports = e2;
54580
+ }, function(e3, n2) {
54581
+ e3.exports = t;
54582
+ }, function(e3, t2, n2) {
54583
+ function r2(e4, t3, n3) {
54584
+ return t3 in e4 ? Object.defineProperty(e4, t3, { value: n3, enumerable: true, configurable: true, writable: true }) : e4[t3] = n3, e4;
54585
+ }
54586
+ Object.defineProperty(t2, "__esModule", { value: true }), t2.matchKeyEvent = p, t2.findMatchedKey = function(e4, t3) {
54587
+ var n3 = t3.map(function(e5) {
54588
+ var t4 = e5.toLowerCase(), n4 = f2[t4];
54589
+ return n4 || [e5];
54590
+ }).reduce(function(e5, t4) {
54591
+ return e5.concat(t4);
54592
+ }, []).find(function(t4) {
54593
+ return p(e4, t4);
54594
+ });
54595
+ !n3 && t3.includes("all") && (n3 = "other");
54596
+ return n3;
54597
+ };
54598
+ var o = { backspace: [8], del: [46], delete: [46], ins: [45], insert: [45], tab: [9], enter: [13], return: [13], esc: [27], space: [32], pageup: [33], pagedown: [34], end: [35], home: [36], left: [37], up: [38], right: [39], down: [40], shift: [16], ctrl: [17], alt: [18], cap: [20], num: [144], clear: [12], meta: [91], ";": [186, 59], "=": [187, 61], ",": [188, 44], "-": [189, 45, 173, 109], minus: [189, 45, 173, 109], ".": [190, 110], "/": [191, 111], "`": [192], "[": [219], "\\": [220], "]": [221], "*": [106], "+": [107], plus: [107], "'": [222], quote: [222] }, i = Object.keys(o).reduce(function(e4, t3) {
54599
+ return Object.assign(e4, r2({}, t3.toUpperCase(), o[t3]));
54600
+ }, {}), u = "0123456789".split("").reduce(function(e4, t3, n3) {
54601
+ return Object.assign(e4, r2({}, t3, [n3 + 48, n3 + 96]));
54602
+ }, {}), a2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").reduce(function(e4, t3, n3) {
54603
+ return Object.assign(e4, r2({}, t3.toLowerCase(), [n3 + 65]), r2({}, t3, [n3 + 65]));
54604
+ }, {}), l = "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19".split(",").reduce(function(e4, t3, n3) {
54605
+ return Object.assign(e4, r2({}, "f" + t3, [n3 + 112]));
54606
+ }, {}), s = { control: "ctrl", ctrl: "ctrl", shift: "shift", meta: "meta", cmd: "meta", command: "meta", option: "alt", alt: "alt" }, c2 = t2.AllKeys = Object.assign({}, o, i, u, a2, l), d2 = Object.assign({}, u, a2), f2 = { all: Object.keys(c2), alphanumeric: Object.keys(d2), numeric: Object.keys(u), alphabetic: Object.keys(a2), function: Object.keys(l) };
54607
+ function p(e4, t3) {
54608
+ var n3 = e4.which || e4.keyCode, r3 = e4.type, o2 = Object.keys(s).filter(function(t4) {
54609
+ return e4[t4 + "Key"];
54610
+ }).sort(), i2 = t3.toLowerCase().trim(), u2 = "+" === i2 ? ["+"] : i2.split(/\s?\+\s?/), a3 = u2.pop(), l2 = c2[a3], d3 = u2;
54611
+ if ("keypress" === r3) return t3 == String.fromCharCode(n3).toLowerCase();
54612
+ if (0 === d3.length && 0 === o2.length) return l2.indexOf(n3) >= 0;
54613
+ if (d3.length > 0 && o2.length > 0) {
54614
+ var f3 = d3.map(function(e5) {
54615
+ return s[e5];
54616
+ }).sort(), p2 = f3.length === o2.length && f3.every(function(e5, t4) {
54617
+ return o2[t4] === e5;
54618
+ });
54619
+ return l2.indexOf(n3) >= 0 && p2;
54620
+ }
54621
+ return 0 == d3.length && 1 === o2.length && a3 === o2[0];
54622
+ }
54623
+ }]);
54624
+ });
54625
+ })(reactKeyboardEventHandler);
54626
+ var reactKeyboardEventHandlerExports = reactKeyboardEventHandler.exports;
54627
+ const KeyboardEventHandler = /* @__PURE__ */ getDefaultExportFromCjs(reactKeyboardEventHandlerExports);
55659
54628
  const getStringName$1 = (name2) => {
55660
54629
  if (!name2) return "";
55661
54630
  if (typeof name2 === "string") {
@@ -55789,7 +54758,7 @@ const NumberInput = ({
55789
54758
  handleKeys: [EventKey.ENTER],
55790
54759
  onKeyEvent: (_key, evt) => onChangeValue(evt),
55791
54760
  children: /* @__PURE__ */ jsx(
55792
- Input$1,
54761
+ Input,
55793
54762
  {
55794
54763
  type: "text",
55795
54764
  name: stringName,
@@ -57856,11 +56825,11 @@ eventManager.on(
57856
56825
  );
57857
56826
  const toast = ({
57858
56827
  id: id2,
57859
- message: message2 = { type: MessageType.INFO, content: "" },
56828
+ message = { type: MessageType.INFO, content: "" },
57860
56829
  autoClose = 6e3,
57861
56830
  onClose
57862
56831
  }) => {
57863
- const { type = MessageType.INFO } = message2 ?? {};
56832
+ const { type = MessageType.INFO } = message ?? {};
57864
56833
  const CloseButton2 = ({
57865
56834
  closeToast
57866
56835
  }) => /* @__PURE__ */ jsx(
@@ -57876,7 +56845,7 @@ const toast = ({
57876
56845
  Message,
57877
56846
  {
57878
56847
  message: {
57879
- ...message2,
56848
+ ...message,
57880
56849
  visible: true,
57881
56850
  width: "100%",
57882
56851
  maxHeight: "500px",
@@ -57885,7 +56854,7 @@ const toast = ({
57885
56854
  }
57886
56855
  );
57887
56856
  const toastType = (() => {
57888
- switch (message2 == null ? void 0 : message2.type) {
56857
+ switch (message == null ? void 0 : message.type) {
57889
56858
  case MessageType.SUCCESS:
57890
56859
  return toast$1.TYPE.SUCCESS;
57891
56860
  case MessageType.WARNING:
@@ -61798,14 +60767,14 @@ var warning = function() {
61798
60767
  var invariant = function() {
61799
60768
  };
61800
60769
  if (process.env.NODE_ENV !== "production") {
61801
- warning = function(check2, message2) {
60770
+ warning = function(check2, message) {
61802
60771
  if (!check2 && typeof console !== "undefined") {
61803
- console.warn(message2);
60772
+ console.warn(message);
61804
60773
  }
61805
60774
  };
61806
- invariant = function(check2, message2) {
60775
+ invariant = function(check2, message) {
61807
60776
  if (!check2) {
61808
- throw new Error(message2);
60777
+ throw new Error(message);
61809
60778
  }
61810
60779
  };
61811
60780
  }
@@ -63982,11 +62951,11 @@ function useTapGesture(_a2) {
63982
62951
  useUnmountEffect(removePointerEndListener);
63983
62952
  }
63984
62953
  var warned = /* @__PURE__ */ new Set();
63985
- function warnOnce(condition, message2, element) {
63986
- if (condition || warned.has(message2))
62954
+ function warnOnce(condition, message, element) {
62955
+ if (condition || warned.has(message))
63987
62956
  return;
63988
- console.warn(message2);
63989
- warned.add(message2);
62957
+ console.warn(message);
62958
+ warned.add(message);
63990
62959
  }
63991
62960
  var observerCallbacks = /* @__PURE__ */ new WeakMap();
63992
62961
  var observers = /* @__PURE__ */ new WeakMap();
@@ -69908,7 +68877,7 @@ const styles$1 = {
69908
68877
  const TreeItem = ({
69909
68878
  node: node2,
69910
68879
  depth,
69911
- isOpen: isOpen2,
68880
+ isOpen,
69912
68881
  onToggle,
69913
68882
  hasChild,
69914
68883
  draggable: draggable2,
@@ -69941,7 +68910,7 @@ const TreeItem = ({
69941
68910
  const handleDragOver = (event) => {
69942
68911
  event.preventDefault();
69943
68912
  event.stopPropagation();
69944
- if (hasChild && !isOpen2 && (/* @__PURE__ */ new Date()).getTime() - dragOverStartTime > 200) {
68913
+ if (hasChild && !isOpen && (/* @__PURE__ */ new Date()).getTime() - dragOverStartTime > 200) {
69945
68914
  handleToggle(event);
69946
68915
  }
69947
68916
  };
@@ -69989,10 +68958,10 @@ const TreeItem = ({
69989
68958
  Button$1,
69990
68959
  {
69991
68960
  basic: true,
69992
- colored: isOpen2 ? true : Color.MUTED,
68961
+ colored: isOpen ? true : Color.MUTED,
69993
68962
  small: true,
69994
68963
  round: true,
69995
- icon: isOpen2 ? (icons2 == null ? void 0 : icons2.collapse) || IconType.COLLAPSE : (icons2 == null ? void 0 : icons2.expand) || IconType.EXPAND,
68964
+ icon: isOpen ? (icons2 == null ? void 0 : icons2.collapse) || IconType.COLLAPSE : (icons2 == null ? void 0 : icons2.expand) || IconType.EXPAND,
69996
68965
  onClick: handleToggle
69997
68966
  }
69998
68967
  ) }),
@@ -70120,7 +69089,7 @@ const Tree = ({
70120
69089
  }
70121
69090
  },
70122
69091
  rootId: 0,
70123
- render: (node2, { depth, isOpen: isOpen2, onToggle, hasChild }) => {
69092
+ render: (node2, { depth, isOpen, onToggle, hasChild }) => {
70124
69093
  var _a3;
70125
69094
  return /* @__PURE__ */ jsx(
70126
69095
  TreeItem,
@@ -70128,9 +69097,9 @@ const Tree = ({
70128
69097
  hasChild: itemHasChild ? itemHasChild(node2) : hasChild,
70129
69098
  node: node2,
70130
69099
  depth,
70131
- isOpen: isOpen2,
69100
+ isOpen,
70132
69101
  onToggle: () => {
70133
- onItemToggle == null ? void 0 : onItemToggle(node2, !isOpen2);
69102
+ onItemToggle == null ? void 0 : onItemToggle(node2, !isOpen);
70134
69103
  onToggle();
70135
69104
  },
70136
69105
  draggable: draggable2,
@@ -70479,7 +69448,7 @@ const UnitInput = ({
70479
69448
  }
70480
69449
  }, [initDisplayUnit, value, error2, shouldLinkAutomaticly]);
70481
69450
  const alternativeUnits = getAlternativeUnits();
70482
- const displayUnitLabel = label$b(displayLayer.unit) || displayLayer.unit || "";
69451
+ const displayUnitLabel = label$9(displayLayer.unit) || displayLayer.unit || "";
70483
69452
  const noConvert = noConversion || !alternativeUnits || alternativeUnits && alternativeUnits.length === 1;
70484
69453
  const stringName = getStringName(name2);
70485
69454
  let sectionsPredefinedMenu;
@@ -70670,7 +69639,7 @@ const convertVisibleRows = ({
70670
69639
  type: CellType.SELECT,
70671
69640
  searchable: false,
70672
69641
  options: (_a2 = getUnitsForQuantity(unitKey)) == null ? void 0 : _a2.map((unit2) => ({
70673
- label: label$b(unit2),
69642
+ label: label$9(unit2),
70674
69643
  value: unit2
70675
69644
  })),
70676
69645
  native: headerCell.native,
@@ -70982,11 +69951,11 @@ export {
70982
69951
  FormRow,
70983
69952
  Grid,
70984
69953
  GroupOrder,
70985
- Heading$2 as Heading,
69954
+ Heading$1 as Heading,
70986
69955
  HelpIcon,
70987
69956
  Icon,
70988
69957
  IconType,
70989
- Input$1 as Input,
69958
+ Input,
70990
69959
  InputGroup,
70991
69960
  InputGroupAddon,
70992
69961
  InputReaderMethods,