@pantheon-systems/pds-toolkit-react 2.0.0-alpha.42 → 2.0.0-alpha.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/codemods/v1-to-v2/mappings.json +17 -12
  2. package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/basic.input.tsx +2 -1
  3. package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/basic.output.tsx +4 -3
  4. package/dist/components/icons/Icon/generated-icon-data.d.ts +1 -1
  5. package/dist/css/component-css/pds-action-card.css +1 -1
  6. package/dist/css/component-css/pds-avatar.css +1 -1
  7. package/dist/css/component-css/pds-badge.css +1 -1
  8. package/dist/css/component-css/pds-banner.css +1 -1
  9. package/dist/css/component-css/pds-bar-chart.css +1 -1
  10. package/dist/css/component-css/pds-branch-diff.css +1 -1
  11. package/dist/css/component-css/pds-breadcrumb.css +1 -1
  12. package/dist/css/component-css/pds-button-link.css +1 -1
  13. package/dist/css/component-css/pds-button-nav.css +1 -1
  14. package/dist/css/component-css/pds-button.css +2 -2
  15. package/dist/css/component-css/pds-callout.css +1 -1
  16. package/dist/css/component-css/pds-card-select.css +1 -1
  17. package/dist/css/component-css/pds-card.css +1 -1
  18. package/dist/css/component-css/pds-chart-legend.css +1 -1
  19. package/dist/css/component-css/pds-chart-wrapper.css +1 -1
  20. package/dist/css/component-css/pds-checkbox-group.css +1 -1
  21. package/dist/css/component-css/pds-checkbox.css +1 -1
  22. package/dist/css/component-css/pds-close-button.css +1 -1
  23. package/dist/css/component-css/pds-code-block-legacy.css +1 -1
  24. package/dist/css/component-css/pds-code-block.css +1 -1
  25. package/dist/css/component-css/pds-combobox-multiselect.css +2 -2
  26. package/dist/css/component-css/pds-combobox.css +1 -1
  27. package/dist/css/component-css/pds-compact-empty-state.css +1 -1
  28. package/dist/css/component-css/pds-comparison-list.css +1 -1
  29. package/dist/css/component-css/pds-cta-link.css +1 -1
  30. package/dist/css/component-css/pds-datepicker.css +2 -2
  31. package/dist/css/component-css/pds-drawer.css +1 -1
  32. package/dist/css/component-css/pds-dropdown-menu.css +2 -2
  33. package/dist/css/component-css/pds-dropdown.css +2 -2
  34. package/dist/css/component-css/pds-expansion-panel-group.css +1 -1
  35. package/dist/css/component-css/pds-expansion-panel.css +1 -1
  36. package/dist/css/component-css/pds-file-diff.css +1 -1
  37. package/dist/css/component-css/pds-file-upload.css +2 -2
  38. package/dist/css/component-css/pds-filter-button.css +1 -1
  39. package/dist/css/component-css/pds-full-screen-overlay.css +1 -1
  40. package/dist/css/component-css/pds-horizontal-empty-state.css +1 -1
  41. package/dist/css/component-css/pds-icon-button.css +2 -2
  42. package/dist/css/component-css/pds-icon-story-only.css +1 -1
  43. package/dist/css/component-css/pds-icon.css +1 -1
  44. package/dist/css/component-css/pds-identity-block.css +1 -1
  45. package/dist/css/component-css/pds-index.css +6 -6
  46. package/dist/css/component-css/pds-inline-message.css +1 -1
  47. package/dist/css/component-css/pds-input-group.css +1 -1
  48. package/dist/css/component-css/pds-input-utilities.css +1 -1
  49. package/dist/css/component-css/pds-line-chart.css +1 -1
  50. package/dist/css/component-css/pds-link-new-window.css +1 -1
  51. package/dist/css/component-css/pds-menu-button.css +2 -2
  52. package/dist/css/component-css/pds-modal.css +1 -1
  53. package/dist/css/component-css/pds-nav-menu.css +1 -1
  54. package/dist/css/component-css/pds-navbar.css +2 -2
  55. package/dist/css/component-css/pds-pagination-compact.css +1 -1
  56. package/dist/css/component-css/pds-pagination-mini.css +2 -2
  57. package/dist/css/component-css/pds-pagination.css +1 -1
  58. package/dist/css/component-css/pds-panel-list.css +1 -1
  59. package/dist/css/component-css/pds-panel.css +1 -1
  60. package/dist/css/component-css/pds-pantheon-logo.css +1 -1
  61. package/dist/css/component-css/pds-payment-icon.css +1 -1
  62. package/dist/css/component-css/pds-picture.css +1 -1
  63. package/dist/css/component-css/pds-pie-chart.css +1 -1
  64. package/dist/css/component-css/pds-platform-icon.css +1 -1
  65. package/dist/css/component-css/pds-popover.css +1 -1
  66. package/dist/css/component-css/pds-progress-bar.css +1 -1
  67. package/dist/css/component-css/pds-progress-ring.css +1 -1
  68. package/dist/css/component-css/pds-proportion-bar.css +1 -1
  69. package/dist/css/component-css/pds-radio-group.css +1 -1
  70. package/dist/css/component-css/pds-section-message.css +1 -1
  71. package/dist/css/component-css/pds-segmented-button.css +2 -2
  72. package/dist/css/component-css/pds-select.css +1 -1
  73. package/dist/css/component-css/pds-side-nav-global.css +2 -2
  74. package/dist/css/component-css/pds-side-nav.css +2 -2
  75. package/dist/css/component-css/pds-site-footer.css +1 -1
  76. package/dist/css/component-css/pds-site-search.css +1 -1
  77. package/dist/css/component-css/pds-skeleton.css +1 -1
  78. package/dist/css/component-css/pds-skiplink.css +1 -1
  79. package/dist/css/component-css/pds-sortable-list.css +2 -2
  80. package/dist/css/component-css/pds-spinner.css +1 -1
  81. package/dist/css/component-css/pds-split-button.css +1 -1
  82. package/dist/css/component-css/pds-sso-button.css +2 -2
  83. package/dist/css/component-css/pds-status-badge.css +1 -1
  84. package/dist/css/component-css/pds-status-checker.css +1 -1
  85. package/dist/css/component-css/pds-status-indicator.css +1 -1
  86. package/dist/css/component-css/pds-step-list.css +1 -1
  87. package/dist/css/component-css/pds-stepper.css +2 -2
  88. package/dist/css/component-css/pds-switch.css +2 -2
  89. package/dist/css/component-css/pds-tab-menu.css +2 -2
  90. package/dist/css/component-css/pds-table-of-contents.css +1 -1
  91. package/dist/css/component-css/pds-table.css +2 -2
  92. package/dist/css/component-css/pds-tabs.css +1 -1
  93. package/dist/css/component-css/pds-tag.css +1 -1
  94. package/dist/css/component-css/pds-tags-input.css +1 -1
  95. package/dist/css/component-css/pds-tally.css +1 -1
  96. package/dist/css/component-css/pds-text-input.css +1 -1
  97. package/dist/css/component-css/pds-textarea.css +1 -1
  98. package/dist/css/component-css/pds-theme-switcher.css +1 -1
  99. package/dist/css/component-css/pds-toaster.css +1 -1
  100. package/dist/css/component-css/pds-tooltip.css +1 -1
  101. package/dist/css/component-css/pds-tree-nav.css +1 -1
  102. package/dist/css/component-css/pds-user-menu-story-only.css +1 -1
  103. package/dist/css/component-css/pds-user-menu.css +2 -2
  104. package/dist/css/component-css/pds-utility-bar.css +1 -1
  105. package/dist/css/component-css/pds-utility-button.css +2 -2
  106. package/dist/css/component-css/pds-vertical-empty-state.css +1 -1
  107. package/dist/css/component-css/pds-vertical-stepper.css +1 -1
  108. package/dist/css/component-css/pds-video-embed.css +1 -1
  109. package/dist/css/component-css/pds-workspace-selector.css +2 -2
  110. package/dist/css/layout-css/pds-app-layout.css +2 -2
  111. package/dist/css/layout-css/pds-docs-layout.css +1 -1
  112. package/dist/css/layout-css/pds-index.css +2 -2
  113. package/dist/css/layout-css/pds-sidebar-layout.css +2 -2
  114. package/dist/css/layout-css/pds-stepper-layout.css +1 -1
  115. package/dist/css/layout-css/pds-three-item-layout.css +1 -1
  116. package/dist/css/layout-css/pds-two-item-layout.css +1 -1
  117. package/dist/css/pds-components.css +6 -6
  118. package/dist/css/pds-core.css +2 -2
  119. package/dist/css/pds-layouts.css +2 -2
  120. package/dist/index.css +5 -1
  121. package/dist/index.js +511 -481
  122. package/dist/index.js.map +1 -1
  123. package/dist/layouts/AppLayout/AppLayout.d.ts +6 -4
  124. package/dist/libs/types/navigation-types.d.ts +8 -0
  125. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import e, { Children as t, cloneElement as n, createContext as r, createElement as i, forwardRef as a, isValidElement as o, useCallback as s, useContext as c, useEffect as l, useId as u, useImperativeHandle as d, useLayoutEffect as f, useMemo as p, useRef as m, useState as h } from "react";
2
2
  import g from "hash-sum";
3
3
  import { FloatingArrow as _, FloatingFocusManager as v, FloatingOverlay as y, FloatingPortal as b, arrow as x, autoUpdate as S, flip as C, offset as w, safePolygon as T, shift as E, size as D, useClick as O, useDismiss as k, useFloating as A, useFocus as j, useHover as M, useId as N, useInteractions as P, useListNavigation as F, useRole as I, useTransitionStyles as L, useTypeahead as R } from "@floating-ui/react";
4
- import { Bar as z, BarChart as B, CartesianGrid as V, Cell as H, Line as U, LineChart as W, Pie as G, PieChart as K, ReferenceLine as q, ResponsiveContainer as J, Tooltip as ee, XAxis as te, YAxis as ne } from "recharts";
5
- import { CodeBlock as re } from "react-code-block";
6
- import { useCombobox as ie, useMultipleSelection as ae } from "downshift";
4
+ import { Bar as z, BarChart as B, CartesianGrid as V, Cell as H, Line as U, LineChart as ee, Pie as W, PieChart as G, ReferenceLine as K, ResponsiveContainer as q, Tooltip as te, XAxis as ne, YAxis as re } from "recharts";
5
+ import { CodeBlock as ie } from "react-code-block";
6
+ import { useCombobox as ae, useMultipleSelection as J } from "downshift";
7
7
  import { format as Y } from "date-fns";
8
8
  import { DayPicker as oe } from "react-day-picker";
9
9
  import { isSafari as X } from "react-device-detect";
@@ -2899,71 +2899,75 @@ var Vt = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
2899
2899
  await navigator.clipboard.writeText(e), r(!0);
2900
2900
  } catch {}
2901
2901
  }];
2902
- }, Jt = a(({ ariaLabel: t, buttonType: n = "button", className: r, disabled: i = !1, hasBorder: a = !1, hasTooltip: o = !0, icon2Name: s = null, iconName: c, isPressed: l, onClick: u, pressedIconName: d, size: f = "s", variant: p = "standard", ...h }, g) => {
2903
- let _ = "pds-icon-button", v = f === "s" ? null : `${_}--${f}`, y = p === "standard" ? null : `${_}--${p}`, b = a ? `${_}--has-border` : null, x = l ? `${_}--pressed` : null, S = {
2904
- fadeOut: `${_}--fadeOut`,
2905
- hide: `${_}--hide`,
2906
- scaleIn: `${_}--scaleIn`
2907
- }, C, w;
2908
- switch (f) {
2902
+ }, Jt = a(({ ariaLabel: t, buttonType: n = "button", className: r, disabled: i = !1, hasBorder: a = !1, hasTooltip: o = !0, icon2Name: s = null, iconName: c, isPressed: u, onClick: d, pressedIconName: f, size: p = "s", variant: h = "standard", ...g }, _) => {
2903
+ let v = "pds-icon-button", y = p === "s" ? null : `${v}--${p}`, b = h === "standard" ? null : `${v}--${h}`, x = a ? `${v}--has-border` : null, S = u ? `${v}--pressed` : null, C = {
2904
+ fadeOut: `${v}--fadeOut`,
2905
+ hide: `${v}--hide`,
2906
+ scaleIn: `${v}--scaleIn`
2907
+ }, w, T;
2908
+ switch (p) {
2909
2909
  case "s":
2910
- w = "m", C = 8;
2910
+ T = "m", w = 8;
2911
2911
  break;
2912
2912
  case "m":
2913
- w = "l", C = 11;
2913
+ T = "l", w = 11;
2914
2914
  break;
2915
2915
  default:
2916
- w = "m", C = 8;
2916
+ T = "m", w = 8;
2917
2917
  break;
2918
2918
  }
2919
- let T = s !== null, E = m(null), D = m(null), O = () => {
2920
- E.current.classList.add(S.fadeOut), E.current.classList.add(S.hide), D.current.classList.remove(S.hide), D.current.classList.add(S.scaleIn), setTimeout(() => {
2921
- E.current.classList.remove(S.fadeOut, S.hide), E.current.classList.add(S.scaleIn), D.current.classList.remove(S.scaleIn), D.current.classList.add(S.hide);
2922
- }, 2e3);
2923
- }, k = (e) => {
2924
- T && O(), u && u(e);
2925
- }, A = l && d ? d : c, j = T ? /* @__PURE__ */ e.createElement("div", { className: `${_}__content` }, /* @__PURE__ */ e.createElement("div", {
2926
- ref: E,
2927
- className: `${_}__icon-wrapper`
2919
+ let E = s !== null, D = m(null), O = m(null), k = m(void 0);
2920
+ l(() => () => {
2921
+ k.current && clearTimeout(k.current);
2922
+ }, []);
2923
+ let A = () => {
2924
+ !D.current || !O.current || (D.current.classList.add(C.fadeOut), D.current.classList.add(C.hide), O.current.classList.remove(C.hide), O.current.classList.add(C.scaleIn), k.current = setTimeout(() => {
2925
+ !D.current || !O.current || (D.current.classList.remove(C.fadeOut, C.hide), D.current.classList.add(C.scaleIn), O.current.classList.remove(C.scaleIn), O.current.classList.add(C.hide));
2926
+ }, 2e3));
2927
+ }, j = (e) => {
2928
+ E && A(), d && d(e);
2929
+ }, M = u && f ? f : c, N = E ? /* @__PURE__ */ e.createElement("div", { className: `${v}__content` }, /* @__PURE__ */ e.createElement("div", {
2930
+ ref: D,
2931
+ className: `${v}__icon-wrapper`
2928
2932
  }, /* @__PURE__ */ e.createElement(Q, {
2929
- className: `${_}__icon`,
2933
+ className: `${v}__icon`,
2930
2934
  iconName: c,
2931
- size: w
2935
+ size: T
2932
2936
  })), /* @__PURE__ */ e.createElement("div", {
2933
- ref: D,
2934
- className: `${_}__icon-wrapper ${S.hide}`
2937
+ ref: O,
2938
+ className: `${v}__icon-wrapper ${C.hide}`
2935
2939
  }, /* @__PURE__ */ e.createElement(Q, {
2936
- className: `${_}__icon`,
2940
+ className: `${v}__icon`,
2937
2941
  iconName: s,
2938
- size: w
2939
- }))) : /* @__PURE__ */ e.createElement("div", { className: `${_}__content` }, /* @__PURE__ */ e.createElement(Q, {
2940
- className: `${_}__icon`,
2941
- iconName: A,
2942
- size: w
2942
+ size: T
2943
+ }))) : /* @__PURE__ */ e.createElement("div", { className: `${v}__content` }, /* @__PURE__ */ e.createElement(Q, {
2944
+ className: `${v}__icon`,
2945
+ iconName: M,
2946
+ size: T
2943
2947
  }));
2944
2948
  return /* @__PURE__ */ e.createElement("button", {
2945
- ref: g,
2949
+ ref: _,
2946
2950
  "aria-label": t,
2947
- "aria-pressed": l,
2951
+ "aria-pressed": u,
2948
2952
  className: Z([
2949
- _,
2950
2953
  v,
2951
2954
  y,
2952
2955
  b,
2953
2956
  x,
2957
+ S,
2954
2958
  r
2955
2959
  ]),
2956
2960
  disabled: i,
2957
- onClick: k,
2961
+ onClick: j,
2958
2962
  title: o && !i ? null : t,
2959
2963
  type: n,
2960
- ...h
2964
+ ...g
2961
2965
  }, o && !i ? /* @__PURE__ */ e.createElement(xt, {
2962
- className: `${_}__tooltip`,
2966
+ className: `${v}__tooltip`,
2963
2967
  content: t,
2964
- customTrigger: j,
2965
- offsetValue: C
2966
- }) : j);
2968
+ customTrigger: N,
2969
+ offsetValue: w
2970
+ }) : N);
2967
2971
  }), Yt = ({ ariaLabel: t = "Copy to clipboard", className: n, clipboardText: r = "", disabled: i, hasBorder: a = !1, variant: o = "standard", ...s }) => {
2968
2972
  let [c, l] = qt(r);
2969
2973
  return /* @__PURE__ */ e.createElement(Jt, {
@@ -3517,7 +3521,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
3517
3521
  label: p.label,
3518
3522
  size: H,
3519
3523
  type: p.type
3520
- })) : s, W = p ? /* @__PURE__ */ e.createElement("span", { className: `${A}__accordion-label` }, s, /* @__PURE__ */ e.createElement(Bt, {
3524
+ })) : s, ee = p ? /* @__PURE__ */ e.createElement("span", { className: `${A}__accordion-label` }, s, /* @__PURE__ */ e.createElement(Bt, {
3521
3525
  className: `${A}__tally`,
3522
3526
  label: p.label,
3523
3527
  size: "s",
@@ -3559,18 +3563,18 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
3559
3563
  ...C({ onClick: I })
3560
3564
  });
3561
3565
  }
3562
- let G = i ? /* @__PURE__ */ e.createElement("span", { className: `${A}__icon-label` }, /* @__PURE__ */ e.createElement(Q, { iconName: r }), " ", s) : W, K = T ? `${A}--expanded` : null;
3566
+ let W = i ? /* @__PURE__ */ e.createElement("span", { className: `${A}__icon-label` }, /* @__PURE__ */ e.createElement(Q, { iconName: r }), " ", s) : ee, G = T ? `${A}--expanded` : null;
3563
3567
  return /* @__PURE__ */ e.createElement("span", {
3564
3568
  className: Z([
3565
3569
  A,
3566
- K,
3570
+ G,
3567
3571
  t
3568
3572
  ]),
3569
3573
  "data-testid": m,
3570
3574
  ...v
3571
3575
  }, /* @__PURE__ */ e.createElement(dn, {
3572
3576
  disabled: n,
3573
- label: G
3577
+ label: W
3574
3578
  }, /* @__PURE__ */ e.createElement("ul", {
3575
3579
  className: `${A}__mobile-menu`,
3576
3580
  role: "menu"
@@ -4144,25 +4148,25 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4144
4148
  }, message: d, onBlur: f, onFocus: p, onOptionSelect: m, options: g, required: _ = !1, showLabel: v = !0, size: y = "s", tooltipText: b = null, validationMessage: x, validationStatus: S, value: C, ...w }) => {
4145
4149
  let T = St(s), E = "pds-select", D = t ? `${E}--auto-width` : null, O = y === "s" ? null : `${E}--${y}`, k = i ? $.disabled : null, A = _ && !i ? $.required : null, j = S === "error" ? $.error : null, M = S === "success" ? $.success : null, N = null;
4146
4150
  S === "error" && (N = "error"), S === "success" && (N = "success");
4147
- let P = x || d, F = C !== void 0, I = r !== void 0, L = ((e) => e.reduce((e, t) => Nt(t) ? [...e, ...t.options] : [...e, t], []))(g), R = (e) => L.findIndex((t) => t.value === e), z = F && R(C) >= 0 ? R(C) : null, B = I ? R(r) : null, [V, H] = h((z || B) ?? null), { activeIndex: U, floatingStyles: W, getFloatingProps: G, getItemProps: K, getReferenceProps: q, isMounted: J, listRef: ee, refs: te, setIsOpen: ne, transitionStyles: re } = Qt({
4151
+ let P = x || d, F = C !== void 0, I = r !== void 0, L = ((e) => e.reduce((e, t) => Nt(t) ? [...e, ...t.options] : [...e, t], []))(g), R = (e) => L.findIndex((t) => t.value === e), z = F && R(C) >= 0 ? R(C) : null, B = I ? R(r) : null, [V, H] = h((z || B) ?? null), { activeIndex: U, floatingStyles: ee, getFloatingProps: W, getItemProps: G, getReferenceProps: K, isMounted: q, listRef: te, refs: ne, setIsOpen: re, transitionStyles: ie } = Qt({
4148
4152
  enableClick: !i,
4149
4153
  enableTypeahead: !0,
4150
4154
  role: "listbox",
4151
4155
  selectedIndex: V,
4152
4156
  variant: "input"
4153
- }), ie = V === null ? void 0 : L[V]?.label, ae = V === null ? void 0 : L[V]?.icon, Y = V === null ? void 0 : L[V]?.value, oe = (e) => {
4157
+ }), ae = V === null ? void 0 : L[V]?.label, J = V === null ? void 0 : L[V]?.icon, Y = V === null ? void 0 : L[V]?.value, oe = (e) => {
4154
4158
  let t = L[e];
4155
- F || (H(e), ne(!1)), m && m(t);
4159
+ F || (H(e), re(!1)), m && m(t);
4156
4160
  };
4157
4161
  l(() => {
4158
- F && (H(R(C)), ne(!1));
4162
+ F && (H(R(C)), re(!1));
4159
4163
  }, [C]);
4160
4164
  let X = () => {
4161
4165
  f && f(Y);
4162
4166
  }, se = () => {
4163
4167
  p && p(Y);
4164
4168
  }, ce = () => {
4165
- te.reference.current.focus();
4169
+ ne.reference.current.focus();
4166
4170
  }, le = (t, n) => t === "google" || t === "microsoft" ? /* @__PURE__ */ e.createElement(Cn, {
4167
4171
  className: n,
4168
4172
  platformType: t,
@@ -4180,17 +4184,17 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4180
4184
  return /* @__PURE__ */ e.createElement(Pt, {
4181
4185
  key: r,
4182
4186
  ref: (e) => {
4183
- ee.current[r] = e;
4187
+ te.current[r] = e;
4184
4188
  },
4185
4189
  "aria-disabled": t?.disabled,
4186
4190
  "aria-selected": r === V && r === U,
4187
4191
  tabIndex: r === U ? 0 : -1,
4188
- ...!t?.disabled && K({
4192
+ ...!t?.disabled && G({
4189
4193
  onClick() {
4190
4194
  oe(r);
4191
4195
  },
4192
4196
  onKeyDown(e) {
4193
- e.key === "Enter" && (e.preventDefault(), oe(r), te.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), te.reference.current.focus());
4197
+ e.key === "Enter" && (e.preventDefault(), oe(r), ne.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ne.reference.current.focus());
4194
4198
  }
4195
4199
  })
4196
4200
  }, /* @__PURE__ */ e.createElement("span", { className: `${E}__option-label` }, t.icon && le(t.icon, `${E}__option-icon`), t.label), V === r && /* @__PURE__ */ e.createElement(Nn, null));
@@ -4204,17 +4208,17 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4204
4208
  return /* @__PURE__ */ e.createElement(Pt, {
4205
4209
  key: r,
4206
4210
  ref: (e) => {
4207
- ee.current[r] = e;
4211
+ te.current[r] = e;
4208
4212
  },
4209
4213
  "aria-disabled": t?.disabled,
4210
4214
  "aria-selected": r === V && r === U,
4211
4215
  tabIndex: r === U ? 0 : -1,
4212
- ...!t?.disabled && K({
4216
+ ...!t?.disabled && G({
4213
4217
  onClick() {
4214
4218
  oe(r);
4215
4219
  },
4216
4220
  onKeyDown(e) {
4217
- e.key === "Enter" && (e.preventDefault(), oe(r), te.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), te.reference.current.focus());
4221
+ e.key === "Enter" && (e.preventDefault(), oe(r), ne.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ne.reference.current.focus());
4218
4222
  }
4219
4223
  })
4220
4224
  }, /* @__PURE__ */ e.createElement("span", { className: `${E}__option-label` }, t.icon && le(t.icon, `${E}__option-icon`), t.label), V === r && /* @__PURE__ */ e.createElement(Nn, null));
@@ -4251,29 +4255,29 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4251
4255
  showLabel: v,
4252
4256
  tooltipText: b
4253
4257
  }), /* @__PURE__ */ e.createElement("span", {
4254
- ref: te.setReference,
4258
+ ref: ne.setReference,
4255
4259
  "aria-autocomplete": "none",
4256
4260
  "aria-labelledby": `${o}-label`,
4257
4261
  className: `${E}__input-wrapper`,
4258
4262
  id: o,
4259
4263
  tabIndex: 0,
4260
- ...q({
4264
+ ...K({
4261
4265
  onClick: ce,
4262
4266
  onBlur: X,
4263
4267
  onFocus: se
4264
4268
  })
4265
- }, N && /* @__PURE__ */ e.createElement(Ot, { variant: N }), /* @__PURE__ */ e.createElement("span", { className: `${E}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${E}__option-text` }, (ae || !ie && a) && le(ae || a, `${E}__icon`), /* @__PURE__ */ e.createElement("span", { className: `${E}__option-label-text` }, ie ?? u.selectOptionText)), /* @__PURE__ */ e.createElement(Q, {
4269
+ }, N && /* @__PURE__ */ e.createElement(Ot, { variant: N }), /* @__PURE__ */ e.createElement("span", { className: `${E}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${E}__option-text` }, (J || !ae && a) && le(J || a, `${E}__icon`), /* @__PURE__ */ e.createElement("span", { className: `${E}__option-label-text` }, ae ?? u.selectOptionText)), /* @__PURE__ */ e.createElement(Q, {
4266
4270
  className: `${E}__trigger-icon`,
4267
4271
  iconName: "angleDown"
4268
- }))), J && /* @__PURE__ */ e.createElement("div", {
4269
- ref: te.setFloating,
4272
+ }))), q && /* @__PURE__ */ e.createElement("div", {
4273
+ ref: ne.setFloating,
4270
4274
  className: `pds-dropdown__panel ${E}__dropdown`,
4271
4275
  style: {
4272
- ...W,
4276
+ ...ee,
4273
4277
  zIndex: "var(--pds-z-index-dropdown)"
4274
4278
  },
4275
- ...G()
4276
- }, /* @__PURE__ */ e.createElement("div", { style: { ...re } }, /* @__PURE__ */ e.createElement("ul", {
4279
+ ...W()
4280
+ }, /* @__PURE__ */ e.createElement("div", { style: { ...ie } }, /* @__PURE__ */ e.createElement("ul", {
4277
4281
  className: `${E}__options`,
4278
4282
  role: "group"
4279
4283
  }, ue(g)))), P && /* @__PURE__ */ e.createElement(Et, {
@@ -4605,7 +4609,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4605
4609
  let t = Math.abs(e);
4606
4610
  return t >= 1e9 ? `${(e / 1e9).toFixed(1).replace(/\.0$/, "")}B` : t >= 1e6 ? `${(e / 1e6).toFixed(1).replace(/\.0$/, "")}M` : t >= 1e3 ? `${(e / 1e3).toFixed(1).replace(/\.0$/, "")}K` : String(e);
4607
4611
  }, $n = ({ barRadius: t = 2, chartHeight: n, chartWidth: r, className: i, colorPalette: a = "categorical", data: o = [], isLoading: c = !1, isThumbnail: u = !1, labelStrings: d = {}, layout: f = "horizontal", legendVariant: p = "inline", onTimePeriodChange: g, selectedTimePeriod: _, series: v = [], showAccessibleTable: y, showAxisLines: b, showGrid: x, showLegend: T, showTooltip: D, timePeriodOptions: O, tooltipContent: k, variant: j = "stacked", xAxisLabel: M, xAxisTickInterval: N, yAxisDomain: P, yAxisFormatter: F = Qn, yAxisLabel: I, yAxisTickInterval: R, ...H }) => {
4608
- let { accessibleTableDescription: U = "Bar chart data", emptyStateHeading: W = "No data available", emptyStateMessage: G, legendTableHeader: K, loadingLabel: q = "Loading chart data" } = d, re = m(null), ie = Ln(a, Un(re, a)), ae = n ?? (u ? 60 : 360), Y = r ?? (u ? 60 : void 0), oe = x ?? !u, X = b ?? !u, se = T ?? !u, ce = D ?? !u, le = y ?? !0, [ue, de] = h(null), fe = m(ue);
4612
+ let { accessibleTableDescription: U = "Bar chart data", emptyStateHeading: ee = "No data available", emptyStateMessage: W, legendTableHeader: G, loadingLabel: K = "Loading chart data" } = d, ie = m(null), ae = Ln(a, Un(ie, a)), J = n ?? (u ? 60 : 360), Y = r ?? (u ? 60 : void 0), oe = x ?? !u, X = b ?? !u, se = T ?? !u, ce = D ?? !u, le = y ?? !0, [ue, de] = h(null), fe = m(ue);
4609
4613
  ue && (fe.current = ue);
4610
4614
  let pe = m({ getBoundingClientRect: () => ({
4611
4615
  bottom: 0,
@@ -4653,9 +4657,9 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4653
4657
  de(null);
4654
4658
  }, []);
4655
4659
  if (c) return /* @__PURE__ */ e.createElement("div", {
4656
- ref: re,
4660
+ ref: ie,
4657
4661
  "aria-busy": "true",
4658
- "aria-label": q,
4662
+ "aria-label": K,
4659
4663
  className: Z([
4660
4664
  be,
4661
4665
  `${be}--loading`,
@@ -4664,25 +4668,25 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4664
4668
  style: { maxWidth: Y },
4665
4669
  ...H
4666
4670
  }, /* @__PURE__ */ e.createElement(Zn, {
4667
- height: ae,
4671
+ height: J,
4668
4672
  legendVariant: p,
4669
4673
  showLegend: se
4670
4674
  }));
4671
4675
  if (!o || o.length === 0) return /* @__PURE__ */ e.createElement("div", {
4672
- ref: re,
4676
+ ref: ie,
4673
4677
  className: Z([
4674
4678
  be,
4675
4679
  `${be}--empty`,
4676
4680
  i ?? ""
4677
4681
  ]),
4678
4682
  style: {
4679
- height: ae,
4683
+ height: J,
4680
4684
  maxWidth: Y
4681
4685
  },
4682
4686
  ...H
4683
4687
  }, /* @__PURE__ */ e.createElement(Mn, {
4684
- heading: W,
4685
- message: G
4688
+ heading: ee,
4689
+ message: W
4686
4690
  }));
4687
4691
  let we = f === "vertical", Te = (e) => j === "grouped" || j === "stacked" && e === v.length - 1 ? we ? [
4688
4692
  0,
@@ -4696,7 +4700,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4696
4700
  0
4697
4701
  ] : 0;
4698
4702
  return /* @__PURE__ */ e.createElement("div", {
4699
- ref: re,
4703
+ ref: ie,
4700
4704
  className: Z([be, i ?? ""]),
4701
4705
  style: Y ? { maxWidth: Y } : void 0,
4702
4706
  ...H
@@ -4715,8 +4719,8 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4715
4719
  "aria-hidden": "true",
4716
4720
  onMouseLeave: k ? void 0 : Ce,
4717
4721
  onMouseMove: ce && !k ? Se : void 0
4718
- }, /* @__PURE__ */ e.createElement(J, {
4719
- height: ae,
4722
+ }, /* @__PURE__ */ e.createElement(q, {
4723
+ height: J,
4720
4724
  width: "100%"
4721
4725
  }, /* @__PURE__ */ e.createElement(B, {
4722
4726
  barGap: 6,
@@ -4738,7 +4742,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4738
4742
  stroke: "var(--pds-color-border-default)",
4739
4743
  strokeDasharray: "3 3",
4740
4744
  vertical: we
4741
- }), /* @__PURE__ */ e.createElement(te, {
4745
+ }), /* @__PURE__ */ e.createElement(ne, {
4742
4746
  axisLine: X,
4743
4747
  dataKey: we ? void 0 : "label",
4744
4748
  hide: !X,
@@ -4754,7 +4758,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4754
4758
  tickLine: !1,
4755
4759
  tickMargin: 10,
4756
4760
  type: we ? "number" : "category"
4757
- }), /* @__PURE__ */ e.createElement(ne, {
4761
+ }), /* @__PURE__ */ e.createElement(re, {
4758
4762
  axisLine: X,
4759
4763
  dataKey: we ? "label" : void 0,
4760
4764
  domain: P,
@@ -4772,7 +4776,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4772
4776
  tickLine: !1,
4773
4777
  tickMargin: 6,
4774
4778
  type: we ? "category" : "number"
4775
- }), ce && k && /* @__PURE__ */ e.createElement(ee, {
4779
+ }), ce && k && /* @__PURE__ */ e.createElement(te, {
4776
4780
  content: (e) => !e.active || !e.payload?.length ? null : k({
4777
4781
  entries: e.payload.map((e) => ({
4778
4782
  color: String(e.color ?? ""),
@@ -4786,12 +4790,12 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4786
4790
  }), v.map((t, n) => /* @__PURE__ */ e.createElement(z, {
4787
4791
  key: t.dataKey,
4788
4792
  dataKey: t.dataKey,
4789
- fill: Vn(n, ie, t.color, Rn(a, t.paletteIndex)),
4793
+ fill: Vn(n, ae, t.color, Rn(a, t.paletteIndex)),
4790
4794
  name: t.label,
4791
4795
  onMouseEnter: k ? void 0 : (e) => {
4792
4796
  let r = e;
4793
4797
  ce && r && de({
4794
- color: Vn(n, ie, t.color, Rn(a, t.paletteIndex)),
4798
+ color: Vn(n, ae, t.color, Rn(a, t.paletteIndex)),
4795
4799
  label: String(r.label ?? ""),
4796
4800
  name: t.label,
4797
4801
  value: Number(r[t.dataKey] ?? 0)
@@ -4816,8 +4820,8 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4816
4820
  }), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-name" }, fe.current.name), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, ": "), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-value" }, F(fe.current.value)))), se && /* @__PURE__ */ e.createElement(qn, {
4817
4821
  data: o,
4818
4822
  series: v,
4819
- seriesColors: ie,
4820
- tableHeader: K,
4823
+ seriesColors: ae,
4824
+ tableHeader: G,
4821
4825
  valueFormatter: F,
4822
4826
  variant: p
4823
4827
  }), le && /* @__PURE__ */ e.createElement(Kn, {
@@ -4832,7 +4836,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4832
4836
  default: return;
4833
4837
  }
4834
4838
  }, tr = ({ annotations: t, chartHeight: n, chartWidth: r, className: i, colorPalette: a = "categorical", data: o = [], isLoading: s = !1, isThumbnail: c = !1, labelStrings: l = {}, legendVariant: u = "inline", lineStyle: d = "smooth", onTimePeriodChange: f, referenceLines: p, selectedTimePeriod: h, series: g = [], showAccessibleTable: _, showAxisLines: v, showDataPoints: y, showGrid: b, showLegend: x, showTooltip: S, timePeriodOptions: C, tooltipContent: w, xAxisLabel: T, xAxisTickInterval: E, yAxisDomain: D, yAxisFormatter: O = Qn, yAxisLabel: k, yAxisTickInterval: A, ...j }) => {
4835
- let { accessibleTableDescription: M = "Line chart data", emptyStateHeading: N = "No data available", emptyStateMessage: P, legendTableHeader: F, loadingLabel: I = "Loading chart data" } = l, L = m(null), R = Ln(a, Un(L, a)), z = n ?? (c ? 60 : 360), B = r ?? (c ? 60 : void 0), H = b ?? !c, G = v ?? !c, K = x ?? !c, re = S ?? !c, ie = y ?? !c, ae = _ ?? !0, Y = "pds-line-chart";
4839
+ let { accessibleTableDescription: M = "Line chart data", emptyStateHeading: N = "No data available", emptyStateMessage: P, legendTableHeader: F, loadingLabel: I = "Loading chart data" } = l, L = m(null), R = Ln(a, Un(L, a)), z = n ?? (c ? 60 : 360), B = r ?? (c ? 60 : void 0), H = b ?? !c, W = v ?? !c, G = x ?? !c, ie = S ?? !c, ae = y ?? !c, J = _ ?? !0, Y = "pds-line-chart";
4836
4840
  return s ? /* @__PURE__ */ e.createElement("div", {
4837
4841
  ref: L,
4838
4842
  "aria-busy": "true",
@@ -4847,7 +4851,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4847
4851
  }, /* @__PURE__ */ e.createElement(Zn, {
4848
4852
  height: z,
4849
4853
  legendVariant: u,
4850
- showLegend: K
4854
+ showLegend: G
4851
4855
  })) : !o || o.length === 0 ? /* @__PURE__ */ e.createElement("div", {
4852
4856
  ref: L,
4853
4857
  className: Z([
@@ -4879,10 +4883,10 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4879
4883
  })),
4880
4884
  showLabel: !1,
4881
4885
  value: h
4882
- })), /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true" }, /* @__PURE__ */ e.createElement(J, {
4886
+ })), /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true" }, /* @__PURE__ */ e.createElement(q, {
4883
4887
  height: z,
4884
4888
  width: "100%"
4885
- }, /* @__PURE__ */ e.createElement(W, {
4889
+ }, /* @__PURE__ */ e.createElement(ee, {
4886
4890
  data: o,
4887
4891
  margin: c ? {
4888
4892
  bottom: 0,
@@ -4898,37 +4902,37 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4898
4902
  }, H && /* @__PURE__ */ e.createElement(V, {
4899
4903
  stroke: "var(--pds-color-border-default)",
4900
4904
  strokeDasharray: "3 3"
4901
- }), /* @__PURE__ */ e.createElement(te, {
4902
- axisLine: G,
4905
+ }), /* @__PURE__ */ e.createElement(ne, {
4906
+ axisLine: W,
4903
4907
  dataKey: "label",
4904
- hide: !G,
4908
+ hide: !W,
4905
4909
  interval: E,
4906
- label: T && G ? {
4910
+ label: T && W ? {
4907
4911
  ...Gn,
4908
4912
  offset: -15,
4909
4913
  position: "insideBottom",
4910
4914
  value: T
4911
4915
  } : void 0,
4912
- tick: G ? Wn : !1,
4916
+ tick: W ? Wn : !1,
4913
4917
  tickLine: !1,
4914
4918
  tickMargin: 10
4915
- }), /* @__PURE__ */ e.createElement(ne, {
4916
- axisLine: G,
4919
+ }), /* @__PURE__ */ e.createElement(re, {
4920
+ axisLine: W,
4917
4921
  domain: D,
4918
- hide: !G,
4922
+ hide: !W,
4919
4923
  interval: A,
4920
- label: k && G ? {
4924
+ label: k && W ? {
4921
4925
  ...Gn,
4922
4926
  angle: -90,
4923
4927
  dx: -44,
4924
4928
  position: "center",
4925
4929
  value: k
4926
4930
  } : void 0,
4927
- tick: G ? Wn : !1,
4931
+ tick: W ? Wn : !1,
4928
4932
  tickFormatter: O,
4929
4933
  tickLine: !1,
4930
4934
  tickMargin: 6
4931
- }), re && /* @__PURE__ */ e.createElement(ee, { content: (t) => {
4935
+ }), ie && /* @__PURE__ */ e.createElement(te, { content: (t) => {
4932
4936
  if (!t.active || !t.payload?.length) return null;
4933
4937
  let n = t.payload.map((e) => ({
4934
4938
  color: String(e.color ?? ""),
@@ -4948,9 +4952,9 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4948
4952
  }), t.name, /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, " ", ":", " "), O(t.value))));
4949
4953
  } }), g.map((t, n) => /* @__PURE__ */ e.createElement(U, {
4950
4954
  key: t.dataKey,
4951
- activeDot: ie ? { r: 6 } : !1,
4955
+ activeDot: ae ? { r: 6 } : !1,
4952
4956
  dataKey: t.dataKey,
4953
- dot: ie ? {
4957
+ dot: ae ? {
4954
4958
  fill: Vn(n, R, t.color, Rn(a, t.paletteIndex)),
4955
4959
  r: 4,
4956
4960
  strokeWidth: 0
@@ -4962,7 +4966,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4962
4966
  type: d === "straight" ? "linear" : "monotone"
4963
4967
  })), !c && p?.map((t, n) => {
4964
4968
  let r = t.color ?? "var(--pds-color-foreground-default-secondary)";
4965
- return /* @__PURE__ */ e.createElement(q, {
4969
+ return /* @__PURE__ */ e.createElement(K, {
4966
4970
  key: `ref-y-${n}`,
4967
4971
  label: ({ viewBox: n }) => {
4968
4972
  let r = (n?.x ?? 0) + (n?.width ?? 0) / 2, i = (n?.y ?? 0) - 8;
@@ -4982,7 +4986,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
4982
4986
  });
4983
4987
  }), !c && t?.map((t, n) => {
4984
4988
  let r = t.color ?? "var(--pds-color-foreground-default-secondary)";
4985
- return /* @__PURE__ */ e.createElement(q, {
4989
+ return /* @__PURE__ */ e.createElement(K, {
4986
4990
  key: `annotation-${n}`,
4987
4991
  label: ({ viewBox: n }) => {
4988
4992
  let r = (n?.x ?? 0) + (n?.width ?? 0) / 2, i = (n?.y ?? 0) - 8;
@@ -5000,14 +5004,14 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
5000
5004
  strokeDasharray: er(t.strokeStyle ?? "dashed"),
5001
5005
  x: t.atLabel
5002
5006
  });
5003
- })))), K && /* @__PURE__ */ e.createElement(qn, {
5007
+ })))), G && /* @__PURE__ */ e.createElement(qn, {
5004
5008
  data: o,
5005
5009
  series: g,
5006
5010
  seriesColors: R,
5007
5011
  tableHeader: F,
5008
5012
  valueFormatter: O,
5009
5013
  variant: u
5010
- }), ae && /* @__PURE__ */ e.createElement(Kn, {
5014
+ }), J && /* @__PURE__ */ e.createElement(Kn, {
5011
5015
  data: o,
5012
5016
  description: M,
5013
5017
  series: g,
@@ -5088,10 +5092,10 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
5088
5092
  margin: "0 auto",
5089
5093
  width: `min(100%, ${w}px)`
5090
5094
  }
5091
- }, /* @__PURE__ */ e.createElement(J, {
5095
+ }, /* @__PURE__ */ e.createElement(q, {
5092
5096
  height: w,
5093
5097
  width: "100%"
5094
- }, /* @__PURE__ */ e.createElement(K, null, /* @__PURE__ */ e.createElement(G, {
5098
+ }, /* @__PURE__ */ e.createElement(G, null, /* @__PURE__ */ e.createElement(W, {
5095
5099
  cx: "50%",
5096
5100
  cy: "50%",
5097
5101
  data: A,
@@ -5103,7 +5107,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
5103
5107
  }, a.map((t, n) => /* @__PURE__ */ e.createElement(H, {
5104
5108
  key: t.label,
5105
5109
  fill: k(n, t)
5106
- }))), D && /* @__PURE__ */ e.createElement(ee, {
5110
+ }))), D && /* @__PURE__ */ e.createElement(te, {
5107
5111
  content: (t) => {
5108
5112
  if (!t.active || !t.payload?.length) return null;
5109
5113
  let n = t.payload[0], r = Number(n.value ?? 0), i = O > 0 ? Math.round(r / O * 100) : 0, a = String(n.payload?.fill ?? "");
@@ -5148,7 +5152,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
5148
5152
  width: 0,
5149
5153
  x: 0,
5150
5154
  y: 0
5151
- }) }), { context: V, floatingStyles: H, refs: U, update: W } = A({
5155
+ }) }), { context: V, floatingStyles: H, refs: U, update: ee } = A({
5152
5156
  middleware: [
5153
5157
  w(8),
5154
5158
  C(),
@@ -5157,7 +5161,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
5157
5161
  open: !!I,
5158
5162
  placement: "top",
5159
5163
  whileElementsMounted: S
5160
- }), { isMounted: G, styles: K } = L(V, {
5164
+ }), { isMounted: W, styles: G } = L(V, {
5161
5165
  duration: {
5162
5166
  close: 150,
5163
5167
  open: 150
@@ -5167,7 +5171,7 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
5167
5171
  l(() => {
5168
5172
  U.setReference(B.current);
5169
5173
  }, [U]);
5170
- let q = s((e) => {
5174
+ let K = s((e) => {
5171
5175
  B.current.getBoundingClientRect = () => ({
5172
5176
  bottom: e.clientY,
5173
5177
  height: 0,
@@ -5177,8 +5181,8 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
5177
5181
  width: 0,
5178
5182
  x: e.clientX,
5179
5183
  y: e.clientY
5180
- }), W();
5181
- }, [W]), J = s(() => {
5184
+ }), ee();
5185
+ }, [ee]), q = s(() => {
5182
5186
  R(null);
5183
5187
  }, []);
5184
5188
  return o ? /* @__PURE__ */ e.createElement("div", {
@@ -5216,8 +5220,8 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
5216
5220
  }, /* @__PURE__ */ e.createElement("div", {
5217
5221
  "aria-hidden": "true",
5218
5222
  className: `${k}__track`,
5219
- onMouseLeave: N ? J : void 0,
5220
- onMouseMove: N ? q : void 0,
5223
+ onMouseLeave: N ? q : void 0,
5224
+ onMouseMove: N ? K : void 0,
5221
5225
  style: { height: t }
5222
5226
  }, a.map((t, n) => {
5223
5227
  let r = F(n, t), i = Math.round(t.value / P * 100);
@@ -5235,13 +5239,13 @@ var un = ({ className: t, clearLabel: n = "Clear", disabled: r = !1, filterKey:
5235
5239
  flex: t.value
5236
5240
  }
5237
5241
  });
5238
- })), N && G && z.current && /* @__PURE__ */ e.createElement("div", {
5242
+ })), N && W && z.current && /* @__PURE__ */ e.createElement("div", {
5239
5243
  ref: U.setFloating,
5240
5244
  className: "recharts-default-tooltip",
5241
5245
  role: "tooltip",
5242
5246
  style: {
5243
5247
  ...H,
5244
- ...K,
5248
+ ...G,
5245
5249
  pointerEvents: "none",
5246
5250
  zIndex: "var(--pds-z-index-notifications)"
5247
5251
  }
@@ -6347,17 +6351,17 @@ var sr = {
6347
6351
  variant: "reverse"
6348
6352
  }))));
6349
6353
  }
6350
- let C = /* @__PURE__ */ e.createElement(re.LineContent, null, /* @__PURE__ */ e.createElement(re.Token, null)), w = /* @__PURE__ */ e.createElement("div", { className: `${g}__line ${_}` }, /* @__PURE__ */ e.createElement(re.LineNumber, { className: `${g}__number` }), C), T = /* @__PURE__ */ e.createElement("div", { className: `${g}__line` }, /* @__PURE__ */ e.createElement("span", { className: `${g}__prompt` }, f), C);
6354
+ let C = /* @__PURE__ */ e.createElement(ie.LineContent, null, /* @__PURE__ */ e.createElement(ie.Token, null)), w = /* @__PURE__ */ e.createElement("div", { className: `${g}__line ${_}` }, /* @__PURE__ */ e.createElement(ie.LineNumber, { className: `${g}__number` }), C), T = /* @__PURE__ */ e.createElement("div", { className: `${g}__line` }, /* @__PURE__ */ e.createElement("span", { className: `${g}__prompt` }, f), C);
6351
6355
  return /* @__PURE__ */ e.createElement("div", {
6352
6356
  className: Z([g, t ?? ""]),
6353
6357
  style: v,
6354
6358
  ...h
6355
- }, c ? y : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(re, {
6359
+ }, c ? y : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(ie, {
6356
6360
  code: n,
6357
6361
  language: l || "",
6358
6362
  prism: or.default,
6359
6363
  theme: sr
6360
- }, /* @__PURE__ */ e.createElement(re.Code, {
6364
+ }, /* @__PURE__ */ e.createElement(ie.Code, {
6361
6365
  className: `${g}__code`,
6362
6366
  tabIndex: 0
6363
6367
  }, a || o ? a ? w : T : C)), i && /* @__PURE__ */ e.createElement("div", { className: `${g}__copy` }, /* @__PURE__ */ e.createElement(Yt, {
@@ -6870,40 +6874,44 @@ var sr = {
6870
6874
  message: x,
6871
6875
  validationStatus: p
6872
6876
  }));
6873
- }, br = ({ className: t, disabled: n = !1, fieldsetProps: r, id: i, inputWidth: a, label: o, message: s, onGroupBlur: c, onValueChange: l, options: u, required: d = !1, showLabel: f = !0, tooltipText: p = null, validationMessage: m, validationStatus: g, ..._ }) => {
6874
- let v = a ? { width: `${a / 16}rem` } : null, y = "pds-checkbox-group", b = n ? $.disabled : null, x = d && !n ? $.required : null, S = g === "error" ? $.error : null, C = g === "success" ? $.success : null, w = m || s;
6875
- u.map((e) => {
6877
+ }, br = ({ className: t, disabled: n = !1, fieldsetProps: r, id: i, inputWidth: a, label: o, message: s, onGroupBlur: c, onValueChange: u, options: d, required: f = !1, showLabel: p = !0, tooltipText: g = null, validationMessage: _, validationStatus: v, ...y }) => {
6878
+ let b = a ? { width: `${a / 16}rem` } : null, x = "pds-checkbox-group", S = n ? $.disabled : null, C = f && !n ? $.required : null, w = v === "error" ? $.error : null, T = v === "success" ? $.success : null, E = _ || s;
6879
+ d.map((e) => {
6876
6880
  e.id || (e.id = e.value);
6877
6881
  });
6878
- let T = [];
6879
- u.map((e) => {
6880
- e.checked === !0 && T.push(e.value);
6882
+ let D = [];
6883
+ d.map((e) => {
6884
+ e.checked === !0 && D.push(e.value);
6881
6885
  });
6882
- let [E, D] = h(T), O = (e) => {
6883
- let { value: t } = e.target, n = E.includes(t) ? E.filter((e) => e !== t) : [...E, t];
6884
- D(n), l && l(n);
6886
+ let [O, k] = h(D), A = m(void 0);
6887
+ l(() => () => {
6888
+ A.current && clearTimeout(A.current);
6889
+ }, []);
6890
+ let j = (e) => {
6891
+ let { value: t } = e.target, n = O.includes(t) ? O.filter((e) => e !== t) : [...O, t];
6892
+ k(n), u && u(n);
6885
6893
  };
6886
- u.map((e) => {
6887
- E.includes(e.value) ? e.checked = !0 : e.checked = !1;
6894
+ d.map((e) => {
6895
+ O.includes(e.value) ? e.checked = !0 : e.checked = !1;
6888
6896
  });
6889
- let k = () => {
6890
- c && setTimeout(() => {
6891
- u.some((e) => e.id === document.activeElement.id) || c(E);
6892
- }, 1500);
6897
+ let M = () => {
6898
+ c && (A.current = setTimeout(() => {
6899
+ d.some((e) => e.id === document.activeElement?.id) || c(O);
6900
+ }, 1500));
6893
6901
  };
6894
6902
  return /* @__PURE__ */ e.createElement("div", {
6895
6903
  className: Z([
6896
- y,
6897
- b,
6898
6904
  x,
6899
6905
  S,
6900
6906
  C,
6907
+ w,
6908
+ T,
6901
6909
  t ?? ""
6902
6910
  ]),
6903
- style: a ? v : null,
6904
- ..._
6911
+ style: a ? b : null,
6912
+ ...y
6905
6913
  }, /* @__PURE__ */ e.createElement("fieldset", {
6906
- className: `${y}__fieldset`,
6914
+ className: `${x}__fieldset`,
6907
6915
  id: i,
6908
6916
  ...r
6909
6917
  }, /* @__PURE__ */ e.createElement(Tt, {
@@ -6911,26 +6919,26 @@ var sr = {
6911
6919
  disabled: n,
6912
6920
  id: i,
6913
6921
  label: o,
6914
- required: d,
6915
- showLabel: f,
6916
- tooltipText: p
6917
- }), /* @__PURE__ */ e.createElement("div", { className: `${y}__options` }, u.map((t) => /* @__PURE__ */ e.createElement(vr, {
6922
+ required: f,
6923
+ showLabel: p,
6924
+ tooltipText: g
6925
+ }), /* @__PURE__ */ e.createElement("div", { className: `${x}__options` }, d.map((t) => /* @__PURE__ */ e.createElement(vr, {
6918
6926
  key: t.id,
6919
6927
  checked: t.checked,
6920
- className: `${y}__checkbox`,
6928
+ className: `${x}__checkbox`,
6921
6929
  disabled: t.disabled || n,
6922
6930
  id: t.id,
6923
6931
  label: t.label,
6924
6932
  name: t.name,
6925
- onBlur: k,
6926
- onChange: O,
6933
+ onBlur: M,
6934
+ onChange: j,
6927
6935
  value: t.value
6928
- })))), w && /* @__PURE__ */ e.createElement(Et, {
6936
+ })))), E && /* @__PURE__ */ e.createElement(Et, {
6929
6937
  validationMessageHasDecorators: !0,
6930
- hasValidationMessage: !!m,
6938
+ hasValidationMessage: !!_,
6931
6939
  id: i,
6932
- message: w,
6933
- validationStatus: g
6940
+ message: E,
6941
+ validationStatus: v
6934
6942
  }));
6935
6943
  }, xr = a(({ className: t, defaultValue: n, disabled: r = !1, hasClearButton: i = !0, hasDropdownTrigger: a = !1, hasSearchIcon: o = !0, hasSearchShortcut: c = !1, id: u, inputWidth: d, isLoading: f = !1, label: g, labelStrings: _ = {
6936
6944
  clearButton: "Clear input text",
@@ -6938,15 +6946,15 @@ var sr = {
6938
6946
  searchShortcut: "Press / to focus the search field",
6939
6947
  triggerButton: "Toggle dropdown menu"
6940
6948
  }, loadingText: v = "Loading results...", message: y, noResultsText: b = "No results found", onBlur: x, onChange: T, onClear: E, onFocus: O, onOptionSelect: k, options: j, placeholder: M, required: N = !1, showLabel: P = !0, showUnfilteredOptions: F = !1, size: I = "s", tooltipText: R = null, validationMessage: z, validationStatus: B, value: V, ...H }, U) => {
6941
- let W = St(d), G = "pds-combobox", K = I === "s" ? null : `${G}--${I}`, q = r ? $.disabled : null, J = N && !r ? $.required : null, ee = B === "error" ? $.error : null, te = B === "success" ? $.success : null, ne = null;
6942
- o && (ne = "search"), B === "error" && (ne = "error"), B === "success" && (ne = "success");
6943
- let re = z || y, ae = V !== void 0, Y = n !== void 0, oe = (e) => {
6949
+ let ee = St(d), W = "pds-combobox", G = I === "s" ? null : `${W}--${I}`, K = r ? $.disabled : null, q = N && !r ? $.required : null, te = B === "error" ? $.error : null, ne = B === "success" ? $.success : null, re = null;
6950
+ o && (re = "search"), B === "error" && (re = "error"), B === "success" && (re = "success");
6951
+ let ie = z || y, J = V !== void 0, Y = n !== void 0, oe = (e) => {
6944
6952
  let t = j.find((t) => t.value === e);
6945
6953
  return t ? t.label : "";
6946
- }, [X, se] = h(Y ? n : void 0), [ce, le] = h(ae ? V ?? "" : Y ? oe(n) : "");
6954
+ }, [X, se] = h(Y ? n : void 0), [ce, le] = h(J ? V ?? "" : Y ? oe(n) : "");
6947
6955
  l(() => {
6948
- ae && le(V ?? "");
6949
- }, [ae, V]);
6956
+ J && le(V ?? "");
6957
+ }, [J, V]);
6950
6958
  let ue = m(null), de = (e) => e.map(({ label: e, optionDisplay: t, searchIndex: n, value: r, ...i }) => {
6951
6959
  let a = r || e, o = [e, r];
6952
6960
  return n && o.push(...n), {
@@ -6966,7 +6974,7 @@ var sr = {
6966
6974
  ce,
6967
6975
  F,
6968
6976
  f
6969
- ]), { getInputProps: pe, getItemProps: me, getMenuProps: he, highlightedIndex: ge, isOpen: _e, openMenu: ve, reset: ye } = ie({
6977
+ ]), { getInputProps: pe, getItemProps: me, getMenuProps: he, highlightedIndex: ge, isOpen: _e, openMenu: ve, reset: ye } = ae({
6970
6978
  id: u,
6971
6979
  inputId: `input-${u}`,
6972
6980
  items: fe,
@@ -6976,14 +6984,14 @@ var sr = {
6976
6984
  le(e ?? "");
6977
6985
  },
6978
6986
  onSelectedItemChange: ({ selectedItem: e }) => {
6979
- e && (ae || le(e.label), se(e.value), k?.(e));
6987
+ e && (J || le(e.label), se(e.value), k?.(e));
6980
6988
  },
6981
6989
  stateReducer: (e, { changes: t, type: n }) => {
6982
- if (n === ie.stateChangeTypes.InputBlur) return {
6990
+ if (n === ae.stateChangeTypes.InputBlur) return {
6983
6991
  ...t,
6984
6992
  inputValue: e.inputValue
6985
6993
  };
6986
- if (n === ie.stateChangeTypes.InputClick) {
6994
+ if (n === ae.stateChangeTypes.InputClick) {
6987
6995
  if (F) return {
6988
6996
  ...t,
6989
6997
  isOpen: !0
@@ -7032,7 +7040,7 @@ var sr = {
7032
7040
  }, [U, Se]), Ee = () => {
7033
7041
  _e ? ye() : ve();
7034
7042
  }, De = () => {
7035
- ae || le(""), se(void 0), ye(), ue.current?.focus(), F && ve(), E?.();
7043
+ J || le(""), se(void 0), ye(), ue.current?.focus(), F && ve(), E?.();
7036
7044
  }, Oe = (e) => {
7037
7045
  x?.(X);
7038
7046
  }, ke = (e) => {
@@ -7044,19 +7052,19 @@ var sr = {
7044
7052
  item: t,
7045
7053
  index: n
7046
7054
  })
7047
- }, /* @__PURE__ */ e.createElement("span", { className: `${G}__option-label` }, t.optionDisplay || t.label)));
7055
+ }, /* @__PURE__ */ e.createElement("span", { className: `${W}__option-label` }, t.optionDisplay || t.label)));
7048
7056
  return /* @__PURE__ */ e.createElement("div", {
7049
7057
  className: Z([
7050
7058
  $.base,
7059
+ W,
7051
7060
  G,
7052
7061
  K,
7053
7062
  q,
7054
- J,
7055
- ee,
7056
7063
  te,
7064
+ ne,
7057
7065
  t ?? ""
7058
7066
  ]),
7059
- style: d ? W : null,
7067
+ style: d ? ee : null,
7060
7068
  ...H
7061
7069
  }, /* @__PURE__ */ e.createElement(Tt, {
7062
7070
  disabled: r,
@@ -7067,16 +7075,16 @@ var sr = {
7067
7075
  tooltipText: R
7068
7076
  }), /* @__PURE__ */ e.createElement("span", {
7069
7077
  ref: Te,
7070
- "aria-describedby": re ? `${u}__message` : null,
7078
+ "aria-describedby": ie ? `${u}__message` : null,
7071
7079
  "aria-disabled": r ? !0 : null,
7072
7080
  "aria-invalid": B === "error" ? !0 : null,
7073
7081
  "aria-required": N ? !0 : null,
7074
- className: `${G}__input-wrapper`,
7082
+ className: `${W}__input-wrapper`,
7075
7083
  id: u
7076
- }, ne && /* @__PURE__ */ e.createElement(Ot, { variant: ne }), /* @__PURE__ */ e.createElement("input", {
7084
+ }, re && /* @__PURE__ */ e.createElement(Ot, { variant: re }), /* @__PURE__ */ e.createElement("input", {
7077
7085
  ref: ue,
7078
7086
  autoComplete: "off",
7079
- className: `${G}__input`,
7087
+ className: `${W}__input`,
7080
7088
  id: `input-${u}`,
7081
7089
  ...pe({
7082
7090
  "aria-label": _.inputInstructions,
@@ -7098,30 +7106,30 @@ var sr = {
7098
7106
  }), a && /* @__PURE__ */ e.createElement("button", {
7099
7107
  "aria-expanded": _e,
7100
7108
  "aria-label": _.triggerButton,
7101
- className: `${G}__trigger`,
7109
+ className: `${W}__trigger`,
7102
7110
  disabled: r,
7103
7111
  onClick: Ee,
7104
7112
  type: "button"
7105
7113
  }, /* @__PURE__ */ e.createElement(Q, {
7106
- className: `${G}__trigger-icon`,
7114
+ className: `${W}__trigger-icon`,
7107
7115
  iconName: "angleDown",
7108
7116
  size: "m"
7109
7117
  }))), /* @__PURE__ */ e.createElement("div", {
7110
7118
  ref: Se.setFloating,
7111
- className: `pds-dropdown__panel ${G}__dropdown`,
7119
+ className: `pds-dropdown__panel ${W}__dropdown`,
7112
7120
  style: Ce ? {
7113
7121
  ...xe,
7114
7122
  ...we,
7115
7123
  zIndex: "var(--pds-z-index-dropdown)"
7116
7124
  } : { display: "none" }
7117
- }, Ce && f && /* @__PURE__ */ e.createElement("div", { className: `${G}__loading` }, v), Ce && !f && fe.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, b), /* @__PURE__ */ e.createElement("ul", {
7118
- className: `${G}__options`,
7125
+ }, Ce && f && /* @__PURE__ */ e.createElement("div", { className: `${W}__loading` }, v), Ce && !f && fe.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, b), /* @__PURE__ */ e.createElement("ul", {
7126
+ className: `${W}__options`,
7119
7127
  ...he(),
7120
7128
  style: Ce && !f && fe.length > 0 ? void 0 : { display: "none" }
7121
- }, Ce && !f && Ae())), re && /* @__PURE__ */ e.createElement(Et, {
7129
+ }, Ce && !f && Ae())), ie && /* @__PURE__ */ e.createElement(Et, {
7122
7130
  hasValidationMessage: !!z,
7123
7131
  id: u,
7124
- message: re,
7132
+ message: ie,
7125
7133
  validationMessageHasDecorators: !1,
7126
7134
  validationStatus: B
7127
7135
  }));
@@ -7139,30 +7147,30 @@ var sr = {
7139
7147
  inputInstructions: "Type to search options",
7140
7148
  triggerButton: "Toggle dropdown menu"
7141
7149
  }, loadingText: u = "Loading results...", noResultsText: d = "No results found", onChange: f, options: g, placeholder: _ = "Filter", required: v = !1, showAllTags: y = !1, showLabel: b = !0, size: x = "s", ...T }) => {
7142
- let E = St(o), O = "pds-combobox-multi", j = x === "s" ? null : `${O}--${x}`, M = r ? $.disabled : null, N = v && !r ? $.required : null, F = y ? `${O}--show-all-tags` : null, [I, L] = h(""), [R, z] = h(a), [B, V] = h(null), [H, U] = h(!1), W = p(() => Sr(g, R, I), [
7150
+ let E = St(o), O = "pds-combobox-multi", j = x === "s" ? null : `${O}--${x}`, M = r ? $.disabled : null, N = v && !r ? $.required : null, F = y ? `${O}--show-all-tags` : null, [I, L] = h(""), [R, z] = h(a), [B, V] = h(null), [H, U] = h(!1), ee = p(() => Sr(g, R, I), [
7143
7151
  g,
7144
7152
  R,
7145
7153
  I
7146
- ]), G = p(() => t?.items?.map((e) => ({
7154
+ ]), W = p(() => t?.items?.map((e) => ({
7147
7155
  ...e,
7148
7156
  isAlreadySelected: R.some((t) => t.id === e.id)
7149
- })) || [], [t?.items, R]), K = (e) => {
7157
+ })) || [], [t?.items, R]), G = (e) => {
7150
7158
  z(e), f?.(e);
7151
- }, { getDropdownProps: q, getSelectedItemProps: J, removeSelectedItem: ee } = ae({
7159
+ }, { getDropdownProps: K, getSelectedItemProps: q, removeSelectedItem: te } = J({
7152
7160
  selectedItems: R,
7153
7161
  onStateChange: ({ selectedItems: e, type: t }) => {
7154
7162
  if (!r) switch (t) {
7155
- case ae.stateChangeTypes.SelectedItemKeyDownBackspace:
7156
- case ae.stateChangeTypes.SelectedItemKeyDownDelete:
7157
- case ae.stateChangeTypes.DropdownKeyDownBackspace:
7158
- case ae.stateChangeTypes.FunctionRemoveSelectedItem:
7159
- K(e || []);
7163
+ case J.stateChangeTypes.SelectedItemKeyDownBackspace:
7164
+ case J.stateChangeTypes.SelectedItemKeyDownDelete:
7165
+ case J.stateChangeTypes.DropdownKeyDownBackspace:
7166
+ case J.stateChangeTypes.FunctionRemoveSelectedItem:
7167
+ G(e || []);
7160
7168
  break;
7161
7169
  default: break;
7162
7170
  }
7163
7171
  }
7164
- }), { closeMenu: te, getInputProps: ne, getItemProps: re, getMenuProps: Y, getToggleButtonProps: oe, highlightedIndex: X, isOpen: se, openMenu: ce, selectedItem: le } = ie({
7165
- items: W,
7172
+ }), { closeMenu: ne, getInputProps: re, getItemProps: ie, getMenuProps: Y, getToggleButtonProps: oe, highlightedIndex: X, isOpen: se, openMenu: ce, selectedItem: le } = ae({
7173
+ items: ee,
7166
7174
  itemToString: (e) => e ? e.label : "",
7167
7175
  selectedItem: null,
7168
7176
  inputValue: I,
@@ -7170,8 +7178,8 @@ var sr = {
7170
7178
  stateReducer: (e, { changes: t, type: n }) => {
7171
7179
  if (r) return e;
7172
7180
  switch (n) {
7173
- case ie.stateChangeTypes.InputKeyDownEnter:
7174
- case ie.stateChangeTypes.ItemClick: return {
7181
+ case ae.stateChangeTypes.InputKeyDownEnter:
7182
+ case ae.stateChangeTypes.ItemClick: return {
7175
7183
  ...t,
7176
7184
  isOpen: !0,
7177
7185
  highlightedIndex: e.highlightedIndex
@@ -7181,16 +7189,16 @@ var sr = {
7181
7189
  },
7182
7190
  onStateChange: ({ inputValue: e, isOpen: t, selectedItem: n, type: i }) => {
7183
7191
  if (!r) switch (i) {
7184
- case ie.stateChangeTypes.InputKeyDownEnter:
7185
- case ie.stateChangeTypes.ItemClick:
7186
- case ie.stateChangeTypes.InputBlur:
7187
- n && (n.isAlreadySelected ? K(R.filter((e) => e.id !== n.id)) : K([...R, n]), L(""), V(null));
7192
+ case ae.stateChangeTypes.InputKeyDownEnter:
7193
+ case ae.stateChangeTypes.ItemClick:
7194
+ case ae.stateChangeTypes.InputBlur:
7195
+ n && (n.isAlreadySelected ? G(R.filter((e) => e.id !== n.id)) : G([...R, n]), L(""), V(null));
7188
7196
  break;
7189
- case ie.stateChangeTypes.InputChange:
7197
+ case ae.stateChangeTypes.InputChange:
7190
7198
  L(e || ""), V(null);
7191
7199
  break;
7192
- case ie.stateChangeTypes.ToggleButtonClick:
7193
- case ie.stateChangeTypes.FunctionOpenMenu:
7200
+ case ae.stateChangeTypes.ToggleButtonClick:
7201
+ case ae.stateChangeTypes.FunctionOpenMenu:
7194
7202
  t && U(!1);
7195
7203
  break;
7196
7204
  default: break;
@@ -7232,9 +7240,9 @@ var sr = {
7232
7240
  }), { getFloatingProps: he } = P([k(fe)]), ge = (e) => {
7233
7241
  if (e.stopPropagation(), r) return;
7234
7242
  let t = !H;
7235
- U(t), t && se && te();
7243
+ U(t), t && se && ne();
7236
7244
  }, _e = (e) => {
7237
- r || (e.isAlreadySelected ? K(R.filter((t) => t.id !== e.id)) : K([...R, e]));
7245
+ r || (e.isAlreadySelected ? G(R.filter((t) => t.id !== e.id)) : G([...R, e]));
7238
7246
  }, ve = () => {
7239
7247
  U(!1), t?.onClose?.();
7240
7248
  }, ye = () => {
@@ -7243,16 +7251,16 @@ var sr = {
7243
7251
  if (B === null) V(R.length - 1);
7244
7252
  else {
7245
7253
  let e = [...R];
7246
- e.splice(B, 1), K(e), V(null);
7254
+ e.splice(B, 1), G(e), V(null);
7247
7255
  }
7248
7256
  }, xe = m(!1), Se = () => {
7249
- r || (xe.current ? te() : ce());
7257
+ r || (xe.current ? ne() : ce());
7250
7258
  }, Ce = (e) => {
7251
7259
  xe.current = se, !r && e.currentTarget.setAttribute("data-focus-method", "mouse");
7252
7260
  }, we = (e) => {
7253
7261
  e.currentTarget.setAttribute("data-focus-method", "keyboard"), !r && ((e.key === "Backspace" || e.key === "Delete") && !I && R.length > 0 && (e.preventDefault(), be()), e.key === "Enter" && B !== null && (e.preventDefault(), be()), !se && (e.key === "Enter" || e.key === "ArrowDown") && (e.preventDefault(), ce()));
7254
- }, Te = ne({
7255
- ...q({ preventKeyAction: se }),
7262
+ }, Te = re({
7263
+ ...K({ preventKeyAction: se }),
7256
7264
  disabled: r,
7257
7265
  onKeyDown: we
7258
7266
  }), Ee = R.length === 2 ? /* @__PURE__ */ e.createElement("span", { className: `${O}__counter-item` }, R.length - 1) : R.length === 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${O}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${O}__counter-item` }, R.length - 1)) : R.length > 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${O}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${O}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${O}__counter-item` }, R.length - 1)) : "";
@@ -7291,7 +7299,7 @@ var sr = {
7291
7299
  ${O}__selected-item
7292
7300
  ${n === B ? `${O}__selected-item--marked-for-deletion` : ""}
7293
7301
  `,
7294
- ...J({
7302
+ ...q({
7295
7303
  selectedItem: t,
7296
7304
  index: n
7297
7305
  }),
@@ -7300,7 +7308,7 @@ var sr = {
7300
7308
  "aria-label": `Remove ${t.label}`,
7301
7309
  className: `${O}__selected-item-remove`,
7302
7310
  onClick: (e) => {
7303
- e.stopPropagation(), ee(t);
7311
+ e.stopPropagation(), te(t);
7304
7312
  },
7305
7313
  onKeyDown: (e) => {
7306
7314
  (e.key === "Enter" || e.key === " ") && e.stopPropagation();
@@ -7330,7 +7338,7 @@ var sr = {
7330
7338
  iconName: "angleDown",
7331
7339
  size: "m"
7332
7340
  })))), /* @__PURE__ */ e.createElement("div", {
7333
- ...q(),
7341
+ ...K(),
7334
7342
  ref: de.setFloating,
7335
7343
  className: `pds-dropdown__panel ${O}__dropdown`,
7336
7344
  style: se ? {
@@ -7345,17 +7353,17 @@ var sr = {
7345
7353
  onClick: (e) => {
7346
7354
  e.stopPropagation();
7347
7355
  }
7348
- })), se && s && /* @__PURE__ */ e.createElement("div", { className: `${O}__loading` }, u), se && !s && W.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, d), /* @__PURE__ */ e.createElement("ul", {
7356
+ })), se && s && /* @__PURE__ */ e.createElement("div", { className: `${O}__loading` }, u), se && !s && ee.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, d), /* @__PURE__ */ e.createElement("ul", {
7349
7357
  className: `${O}__dropdown-list`,
7350
7358
  ...Y(),
7351
- style: se && !s && W.length > 0 ? void 0 : { display: "none" }
7352
- }, se && !s && W.map((t, n) => /* @__PURE__ */ e.createElement(Pt, {
7359
+ style: se && !s && ee.length > 0 ? void 0 : { display: "none" }
7360
+ }, se && !s && ee.map((t, n) => /* @__PURE__ */ e.createElement(Pt, {
7353
7361
  key: `${t.id}-${n}`,
7354
7362
  className: `${O}__dropdown-item
7355
7363
  ${X === n ? "pds-dropdown__item--focused" : ""}
7356
7364
  ${le === t ? `${O}__dropdown-item--selected` : ""}
7357
7365
  ${t.isAlreadySelected ? "pds-dropdown__item--active" : ""}`,
7358
- ...re({
7366
+ ...ie({
7359
7367
  item: t,
7360
7368
  index: n
7361
7369
  })
@@ -7374,7 +7382,7 @@ var sr = {
7374
7382
  className: `${O}__aux-panel-icon`,
7375
7383
  iconName: "sparkles",
7376
7384
  size: "m"
7377
- }), /* @__PURE__ */ e.createElement("div", { className: `${O}__aux-panel-items` }, G.map((t) => /* @__PURE__ */ e.createElement("button", {
7385
+ }), /* @__PURE__ */ e.createElement("div", { className: `${O}__aux-panel-items` }, W.map((t) => /* @__PURE__ */ e.createElement("button", {
7378
7386
  key: t.id,
7379
7387
  className: Z([`${O}__aux-panel-item`, t.isAlreadySelected ? `${O}__aux-panel-item--selected` : ""]),
7380
7388
  onClick: () => _e(t),
@@ -7466,7 +7474,7 @@ var sr = {
7466
7474
  let D = {
7467
7475
  ...Er,
7468
7476
  ...v
7469
- }, [O, k] = h(x), [j, M] = h(!1), [N, P] = h(null), [F, I] = h(r ? x?.from : x), L = St(a), R = "pds-datepicker", z = n ? $.disabled : null, B = m && !n ? $.required : null, V = b === "error" ? $.error : null, H = b === "success" ? $.success : null, U = y || u, { floatingStyles: W, refs: G } = A({
7477
+ }, [O, k] = h(x), [j, M] = h(!1), [N, P] = h(null), [F, I] = h(r ? x?.from : x), L = St(a), R = "pds-datepicker", z = n ? $.disabled : null, B = m && !n ? $.required : null, V = b === "error" ? $.error : null, H = b === "success" ? $.success : null, U = y || u, { floatingStyles: ee, refs: W } = A({
7470
7478
  open: j,
7471
7479
  onOpenChange: M,
7472
7480
  placement: "bottom-start",
@@ -7476,22 +7484,22 @@ var sr = {
7476
7484
  E({ padding: 8 })
7477
7485
  ],
7478
7486
  whileElementsMounted: S
7479
- }), K = (e) => {
7487
+ }), G = (e) => {
7480
7488
  k(e), f?.(e), r || setTimeout(() => {
7481
7489
  M(!1);
7482
7490
  }, 300);
7491
+ }, K = (e) => {
7492
+ G(e);
7483
7493
  }, q = (e) => {
7484
- K(e);
7485
- }, J = (e) => {
7486
- K(e);
7487
- }, ee = () => {
7488
- k(void 0), f?.(void 0);
7494
+ G(e);
7489
7495
  }, te = () => {
7490
- M(!1);
7496
+ k(void 0), f?.(void 0);
7491
7497
  }, ne = () => {
7498
+ M(!1);
7499
+ }, re = () => {
7492
7500
  let e = /* @__PURE__ */ new Date();
7493
7501
  I(e), r ? (k(void 0), f?.(void 0)) : (k(e), f?.(e));
7494
- }, re = () => r ? O?.from : O, ie = ({ className: t, orientation: n }) => n === "left" ? /* @__PURE__ */ e.createElement(Q, {
7502
+ }, ie = () => r ? O?.from : O, ae = ({ className: t, orientation: n }) => n === "left" ? /* @__PURE__ */ e.createElement(Q, {
7495
7503
  className: t,
7496
7504
  iconName: "angleLeft",
7497
7505
  size: "m"
@@ -7499,7 +7507,7 @@ var sr = {
7499
7507
  className: t,
7500
7508
  iconName: "angleRight",
7501
7509
  size: "m"
7502
- }), ae = (e) => Y(e, "EEEEE", { locale: s }), X = () => {
7510
+ }), J = (e) => Y(e, "EEEEE", { locale: s }), X = () => {
7503
7511
  let e = [];
7504
7512
  return d && e.push({ before: d }), c && e.push({ after: c }), e.length > 0 ? e : void 0;
7505
7513
  }, se = () => {
@@ -7519,7 +7527,7 @@ var sr = {
7519
7527
  return e ? `${D.selectedDate}${wr(e, s)}` : D.noDateSelected || "";
7520
7528
  }
7521
7529
  }, ue = (e) => {
7522
- G.floating.current && !G.floating.current.contains(e.target) && N && !N.contains(e.target) && M(!1);
7530
+ W.floating.current && !W.floating.current.contains(e.target) && N && !N.contains(e.target) && M(!1);
7523
7531
  };
7524
7532
  return l(() => {
7525
7533
  k(x);
@@ -7546,7 +7554,7 @@ var sr = {
7546
7554
  tooltipText: _
7547
7555
  }), /* @__PURE__ */ e.createElement("div", { className: `${R}__input-wrapper` }, /* @__PURE__ */ e.createElement("button", {
7548
7556
  ref: (e) => {
7549
- G.setReference(e), P(e);
7557
+ W.setReference(e), P(e);
7550
7558
  },
7551
7559
  "aria-describedby": U ? `${i}__message` : null,
7552
7560
  "aria-expanded": j,
@@ -7555,7 +7563,7 @@ var sr = {
7555
7563
  className: Z([`${R}__trigger`, j ? `${R}__trigger--open` : null]),
7556
7564
  disabled: n,
7557
7565
  onClick: () => {
7558
- j || I(re() ?? /* @__PURE__ */ new Date()), M(!j);
7566
+ j || I(ie() ?? /* @__PURE__ */ new Date()), M(!j);
7559
7567
  },
7560
7568
  type: "button"
7561
7569
  }, /* @__PURE__ */ e.createElement(Q, {
@@ -7567,53 +7575,53 @@ var sr = {
7567
7575
  message: U,
7568
7576
  validationStatus: b
7569
7577
  }), j && /* @__PURE__ */ e.createElement("div", {
7570
- ref: G.setFloating,
7578
+ ref: W.setFloating,
7571
7579
  className: `${R}__popover`,
7572
- style: W
7580
+ style: ee
7573
7581
  }, /* @__PURE__ */ e.createElement("div", { className: `${R}__calendar` }, r ? /* @__PURE__ */ e.createElement(oe, {
7574
- components: { Chevron: ie },
7582
+ components: { Chevron: ae },
7575
7583
  disabled: X(),
7576
7584
  footer: /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, le()),
7577
- formatters: { formatWeekdayName: ae },
7585
+ formatters: { formatWeekdayName: J },
7578
7586
  locale: s,
7579
7587
  mode: "range",
7580
7588
  month: F,
7581
7589
  navLayout: "around",
7582
7590
  numberOfMonths: 2,
7583
7591
  onMonthChange: I,
7584
- onSelect: q,
7592
+ onSelect: K,
7585
7593
  selected: O
7586
7594
  }) : /* @__PURE__ */ e.createElement(oe, {
7587
- components: { Chevron: ie },
7595
+ components: { Chevron: ae },
7588
7596
  disabled: X(),
7589
7597
  footer: /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, le()),
7590
- formatters: { formatWeekdayName: ae },
7598
+ formatters: { formatWeekdayName: J },
7591
7599
  locale: s,
7592
7600
  mode: "single",
7593
7601
  month: F,
7594
7602
  navLayout: "around",
7595
7603
  numberOfMonths: 1,
7596
7604
  onMonthChange: I,
7597
- onSelect: J,
7605
+ onSelect: q,
7598
7606
  selected: O
7599
7607
  })), /* @__PURE__ */ e.createElement("div", { className: `${R}__actions` }, /* @__PURE__ */ e.createElement(Gt, {
7600
7608
  className: `${R}__action-button ${R}__action-button--today`,
7601
7609
  label: D.todayButton,
7602
- onClick: ne,
7610
+ onClick: re,
7603
7611
  size: "s",
7604
7612
  type: "button",
7605
7613
  variant: "secondary"
7606
7614
  }), /* @__PURE__ */ e.createElement("div", { className: `${R}__actions-group` }, /* @__PURE__ */ e.createElement(Gt, {
7607
7615
  className: `${R}__action-button ${R}__action-button--clear`,
7608
7616
  label: D.clearButton,
7609
- onClick: ee,
7617
+ onClick: te,
7610
7618
  size: "s",
7611
7619
  type: "button",
7612
7620
  variant: "secondary"
7613
7621
  }), r && /* @__PURE__ */ e.createElement(Gt, {
7614
7622
  className: `${R}__action-button ${R}__action-button--done`,
7615
7623
  label: D.doneButton,
7616
- onClick: te,
7624
+ onClick: ne,
7617
7625
  size: "s",
7618
7626
  type: "button",
7619
7627
  variant: "highlight"
@@ -7637,13 +7645,13 @@ var sr = {
7637
7645
  if (!e || !r) return;
7638
7646
  let t = new DataTransfer();
7639
7647
  t.items.add(H), e.files = t.files, E(!0);
7640
- }, W = (e) => {
7648
+ }, ee = (e) => {
7641
7649
  if (e.target.files.length === 0) {
7642
7650
  r ? U() : E(!1);
7643
7651
  return;
7644
7652
  }
7645
7653
  X && r && (r === e.target.value ? O(!0) : O(!1)), m && m(e.target.files), E(!0);
7646
- }, G = () => {
7654
+ }, W = () => {
7647
7655
  let e = document.getElementById(`${o}--input`);
7648
7656
  e.value = "", X && O(!1), p && p(), E(!1), e.focus();
7649
7657
  };
@@ -7687,13 +7695,13 @@ var sr = {
7687
7695
  disabled: i,
7688
7696
  id: `${o}--input`,
7689
7697
  multiple: f,
7690
- onChange: W,
7698
+ onChange: ee,
7691
7699
  required: g,
7692
7700
  type: "file",
7693
7701
  ...s
7694
7702
  }), T && /* @__PURE__ */ e.createElement(At, {
7695
7703
  clearLabel: u.clearButton,
7696
- handleClearInput: G,
7704
+ handleClearInput: W,
7697
7705
  id: o
7698
7706
  })), R && /* @__PURE__ */ e.createElement(Et, {
7699
7707
  hasValidationMessage: !!x,
@@ -7890,31 +7898,31 @@ var sr = {
7890
7898
  tagRemove: "Remove {value}",
7891
7899
  tagsListLabel: "Current tags"
7892
7900
  }, validationMessage: b, validationStatus: x, ...S }, C) => {
7893
- let w = St(o), T = "pds-tags-input", E = g === "s" ? null : `${T}--${g}`, D = r ? $.disabled : null, O = f && !r ? $.required : null, k = x === "error" ? $.error : null, A = x === "success" ? $.success : null, j = b || l, [M, N] = h(""), [P, F] = h(null), [I, L] = h(null), [R, z] = h(null), [B, V] = h(null), [H, U] = h(""), W = m(null), G = _.length > 0 ? t : d, K = (e) => {
7901
+ let w = St(o), T = "pds-tags-input", E = g === "s" ? null : `${T}--${g}`, D = r ? $.disabled : null, O = f && !r ? $.required : null, k = x === "error" ? $.error : null, A = x === "success" ? $.success : null, j = b || l, [M, N] = h(""), [P, F] = h(null), [I, L] = h(null), [R, z] = h(null), [B, V] = h(null), [H, U] = h(""), ee = m(null), W = _.length > 0 ? t : d, G = (e) => {
7894
7902
  U(e), setTimeout(() => U(""), 1e3);
7895
- }, q = (e) => {
7903
+ }, K = (e) => {
7896
7904
  u(e);
7897
- }, J = (e) => {
7905
+ }, q = (e) => {
7898
7906
  F(e);
7899
- }, ee = () => {
7907
+ }, te = () => {
7900
7908
  F(null), L(null), z(null);
7901
- }, te = (e, t) => {
7909
+ }, ne = (e, t) => {
7902
7910
  P === null || P === e || (L(e), z(t));
7903
- }, ne = (e) => {
7911
+ }, re = (e) => {
7904
7912
  if (e.preventDefault(), P === null || I === null || R === null) return;
7905
7913
  let t = _.findIndex((e) => e.id === P), n = _.findIndex((e) => e.id === I);
7906
7914
  if (t === -1 || n === -1) return;
7907
7915
  let r = [..._], [i] = r.splice(t, 1), a = n;
7908
- a = R === "after" ? t < n ? n : n + 1 : n, r.splice(a, 0, i), q(r), K("Tag reordered"), F(null), L(null), z(null);
7909
- }, re = (e, t) => {
7916
+ a = R === "after" ? t < n ? n : n + 1 : n, r.splice(a, 0, i), K(r), G("Tag reordered"), F(null), L(null), z(null);
7917
+ }, ie = (e, t) => {
7910
7918
  let n = [..._], [r] = n.splice(e, 1);
7911
- n.splice(t, 0, r), K(`${r.value} moved to position ${t + 1} of ${_.length}`), q(n);
7912
- }, ie = (e) => {
7919
+ n.splice(t, 0, r), G(`${r.value} moved to position ${t + 1} of ${_.length}`), K(n);
7920
+ }, ae = (e) => {
7913
7921
  let t = _.find((t) => t.id === e);
7914
- q(_.filter((t) => t.id !== e)), t && K(`${t.value} removed`);
7915
- }, ae = () => {
7922
+ K(_.filter((t) => t.id !== e)), t && G(`${t.value} removed`);
7923
+ }, J = () => {
7916
7924
  V(null), setTimeout(() => {
7917
- W.current?.focus();
7925
+ ee.current?.focus();
7918
7926
  }, 0);
7919
7927
  }, Y = (e) => {
7920
7928
  if (!r) if (e.key === "Enter" && M.trim()) {
@@ -7923,10 +7931,10 @@ var sr = {
7923
7931
  id: Date.now().toString(),
7924
7932
  value: M.trim()
7925
7933
  };
7926
- q([..._, t]), K(`${M.trim()} added`), N("");
7934
+ K([..._, t]), G(`${M.trim()} added`), N("");
7927
7935
  } else if (e.key === "Backspace" && !M && _.length > 0) {
7928
7936
  let e = _[_.length - 1];
7929
- q(_.slice(0, -1)), K(`${e.value} removed`);
7937
+ K(_.slice(0, -1)), G(`${e.value} removed`);
7930
7938
  } else e.key === "ArrowLeft" && !M && _.length > 0 && (e.preventDefault(), V(_.length - 1));
7931
7939
  };
7932
7940
  return /* @__PURE__ */ e.createElement("div", {
@@ -7962,7 +7970,7 @@ var sr = {
7962
7970
  "aria-label": y.tagsListLabel,
7963
7971
  className: `${T}__tags`,
7964
7972
  onDragOver: s ? (e) => e.preventDefault() : void 0,
7965
- onDrop: s ? ne : void 0,
7973
+ onDrop: s ? re : void 0,
7966
7974
  role: "list"
7967
7975
  }, _.map((t, n) => {
7968
7976
  let i = null;
@@ -7976,12 +7984,12 @@ var sr = {
7976
7984
  index: n,
7977
7985
  isDragging: P === t.id,
7978
7986
  isSortable: s,
7979
- onDragEnd: ee,
7980
- onDragOver: te,
7981
- onDragStart: J,
7982
- onFocusInput: ae,
7983
- onKeyboardMove: re,
7984
- onRemove: ie,
7987
+ onDragEnd: te,
7988
+ onDragOver: ne,
7989
+ onDragStart: q,
7990
+ onFocusInput: J,
7991
+ onKeyboardMove: ie,
7992
+ onRemove: ae,
7985
7993
  setFocusedIndex: V,
7986
7994
  tag: t,
7987
7995
  totalTags: _.length,
@@ -7989,7 +7997,7 @@ var sr = {
7989
7997
  }));
7990
7998
  })), /* @__PURE__ */ e.createElement("input", {
7991
7999
  ref: (e) => {
7992
- W.current = e, typeof C == "function" ? C(e) : C && (C.current = e);
8000
+ ee.current = e, typeof C == "function" ? C(e) : C && (C.current = e);
7993
8001
  },
7994
8002
  "aria-describedby": `${i}__instructions`,
7995
8003
  "aria-invalid": x === "error" ? !0 : null,
@@ -7999,7 +8007,7 @@ var sr = {
7999
8007
  name: i,
8000
8008
  onChange: (e) => N(e.target.value),
8001
8009
  onKeyDown: Y,
8002
- placeholder: G,
8010
+ placeholder: W,
8003
8011
  required: f,
8004
8012
  type: "text",
8005
8013
  value: M
@@ -8087,8 +8095,8 @@ var sr = {
8087
8095
  }, type: O = "text", validationMessage: k, validationStatus: A, value: j, ...M }, N) => {
8088
8096
  let P = St(d), F = "pds-text-input", I = a ? $.disabled : null, L = x && !a ? $.required : null, R = A === "error" ? $.error : null, z = A === "success" ? $.success : null, B = b ? $.readonly : null, V = T === "s" ? null : `${F}--${T}`, H = c && O === "url" ? `${F}--has-url-prefix` : null, U = null;
8089
8097
  O === "search" && (U = "search"), O === "search" && S === "filter" && (U = "filter"), A === "error" && (U = "error"), A === "success" && (U = "success");
8090
- let W = k || p, G = j !== void 0, [K, q] = h(i === void 0 ? "" : i), J = j || K, ee = (e) => {
8091
- if (w && re && ie(!1), c && O === "url") {
8098
+ let ee = k || p, W = j !== void 0, [G, K] = h(i === void 0 ? "" : i), q = j || G, te = (e) => {
8099
+ if (w && ie && ae(!1), c && O === "url") {
8092
8100
  let t = Ct(e.target.value), n = {
8093
8101
  ...e,
8094
8102
  target: {
@@ -8098,7 +8106,7 @@ var sr = {
8098
8106
  };
8099
8107
  m && m(n);
8100
8108
  } else m && m(e);
8101
- }, te = (e) => {
8109
+ }, ne = (e) => {
8102
8110
  if (c && O === "url") {
8103
8111
  let t = Ct(e.target.value), n = {
8104
8112
  ...e,
@@ -8107,18 +8115,18 @@ var sr = {
8107
8115
  value: t
8108
8116
  }
8109
8117
  };
8110
- G || q(t), g && g(n);
8111
- } else G || q(e.target.value), g && g(e);
8112
- }, ne = () => {
8113
- G || q(""), _ && _();
8118
+ W || K(t), g && g(n);
8119
+ } else W || K(e.target.value), g && g(e);
8120
+ }, re = () => {
8121
+ W || K(""), _ && _();
8114
8122
  let e = document.getElementById(l);
8115
8123
  e && e.focus();
8116
- }, [re, ie] = h(!1), ae = () => {
8117
- ie((e) => !e);
8124
+ }, [ie, ae] = h(!1), J = () => {
8125
+ ae((e) => !e);
8118
8126
  let e = document.getElementById(l);
8119
8127
  e && e.focus();
8120
8128
  }, Y = O;
8121
- return w && O === "password" && (Y = re ? "text" : "password"), /* @__PURE__ */ e.createElement("div", {
8129
+ return w && O === "password" && (Y = ie ? "text" : "password"), /* @__PURE__ */ e.createElement("div", {
8122
8130
  className: Z([
8123
8131
  $.base,
8124
8132
  F,
@@ -8143,50 +8151,50 @@ var sr = {
8143
8151
  }), w && O === "password" && /* @__PURE__ */ e.createElement("div", {
8144
8152
  "aria-live": "polite",
8145
8153
  className: "visually-hidden"
8146
- }, `${D.visibilityStatus} ${re ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: `${F}__input-wrapper ${c && O === "url" ? `${F}__input-wrapper--has-prefix` : ""}` }, U && /* @__PURE__ */ e.createElement(Ot, { variant: U }), c && O === "url" && /* @__PURE__ */ e.createElement(Fr, null), /* @__PURE__ */ e.createElement("input", {
8154
+ }, `${D.visibilityStatus} ${ie ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: `${F}__input-wrapper ${c && O === "url" ? `${F}__input-wrapper--has-prefix` : ""}` }, U && /* @__PURE__ */ e.createElement(Ot, { variant: U }), c && O === "url" && /* @__PURE__ */ e.createElement(Fr, null), /* @__PURE__ */ e.createElement("input", {
8147
8155
  ref: N,
8148
- "aria-describedby": W ? `${l}__message` : null,
8156
+ "aria-describedby": ee ? `${l}__message` : null,
8149
8157
  "aria-invalid": A === "error" ? !0 : null,
8150
8158
  autoComplete: O === "password" ? "off" : t,
8151
8159
  className: `${F}__input ${c && O === "url" ? `${F}__input--has-prefix` : ""}`,
8152
8160
  disabled: a,
8153
8161
  id: l,
8154
8162
  name: l,
8155
- onBlur: ee,
8156
- onChange: te,
8163
+ onBlur: te,
8164
+ onChange: ne,
8157
8165
  onFocus: v,
8158
8166
  placeholder: y,
8159
8167
  readOnly: b,
8160
8168
  required: x,
8161
8169
  type: Y,
8162
- value: G ? j : K,
8170
+ value: W ? j : G,
8163
8171
  ...u
8164
- }), o && J && /* @__PURE__ */ e.createElement(At, {
8172
+ }), o && q && /* @__PURE__ */ e.createElement(At, {
8165
8173
  clearLabel: D.clearButton,
8166
- handleClearInput: ne,
8174
+ handleClearInput: re,
8167
8175
  id: l
8168
8176
  }), w && O === "password" && /* @__PURE__ */ e.createElement("button", {
8169
8177
  "aria-controls": l,
8170
8178
  className: `${F}__visibility-toggle`,
8171
- onClick: ae,
8179
+ onClick: J,
8172
8180
  onMouseDown: (e) => e.preventDefault(),
8173
- title: re ? D.visibilityToggleHide : D.visibilityToggleShow,
8181
+ title: ie ? D.visibilityToggleHide : D.visibilityToggleShow,
8174
8182
  type: "button"
8175
8183
  }, /* @__PURE__ */ e.createElement(Q, {
8176
- iconName: re ? "eyeSlash" : "eye",
8184
+ iconName: ie ? "eyeSlash" : "eye",
8177
8185
  size: "m"
8178
- })), s && O === "search" && !J && /* @__PURE__ */ e.createElement(kt, {
8186
+ })), s && O === "search" && !q && /* @__PURE__ */ e.createElement(kt, {
8179
8187
  inputId: l,
8180
8188
  shortcutLabel: D.searchShortcut
8181
8189
  }), r && O !== "password" && /* @__PURE__ */ e.createElement(jt, {
8182
- currentLength: J.length,
8190
+ currentLength: q.length,
8183
8191
  id: l,
8184
8192
  maxLength: r,
8185
8193
  overLimitMessage: D.counterOverLimit
8186
- })), W && /* @__PURE__ */ e.createElement(Et, {
8194
+ })), ee && /* @__PURE__ */ e.createElement(Et, {
8187
8195
  hasValidationMessage: !!k,
8188
8196
  id: l,
8189
- message: W,
8197
+ message: ee,
8190
8198
  validationMessageHasDecorators: !1,
8191
8199
  validationStatus: A
8192
8200
  }));
@@ -8277,7 +8285,7 @@ var sr = {
8277
8285
  }
8278
8286
  }
8279
8287
  return null;
8280
- }, Ur = (e) => typeof e == "string" ? e : e.props.children, Wr = (e) => typeof e.linkContent == "string" ? !1 : !!(e.isActive || e.linkContent.props.className && e.linkContent.props.className.includes("pds-isActive")), Gr = (e) => {
8288
+ }, Ur = (e) => typeof e == "string" ? e : e.props.children, Wr = (e) => e.isSeparator || e.isHeading || typeof e.linkContent == "string" ? !1 : !!(e.isActive || e.linkContent.props.className && e.linkContent.props.className.includes("pds-isActive")), Gr = (e) => {
8281
8289
  if (Wr(e)) return !0;
8282
8290
  if (e.links) {
8283
8291
  for (let t = 0; t < e.links.length; t++) if (Gr(e.links[t])) return !0;
@@ -8748,6 +8756,17 @@ var sr = {
8748
8756
  };
8749
8757
  });
8750
8758
  }, g = /* @__PURE__ */ e.createElement(e.Fragment, null, a.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${c}__menu ${c}__menu--top-level` }, a.map((t, n) => {
8759
+ if (t.isSeparator) return /* @__PURE__ */ e.createElement("li", {
8760
+ key: n,
8761
+ "aria-hidden": "true",
8762
+ className: `${c}__separator`,
8763
+ role: "separator"
8764
+ });
8765
+ if (t.isHeading) return /* @__PURE__ */ e.createElement("li", {
8766
+ key: n,
8767
+ className: `${c}__section-label`,
8768
+ role: "presentation"
8769
+ }, t.label);
8751
8770
  let a = Gr(t);
8752
8771
  return /* @__PURE__ */ e.createElement(ti, {
8753
8772
  key: n,
@@ -9244,7 +9263,7 @@ var sr = {
9244
9263
  E()
9245
9264
  ],
9246
9265
  whileElementsMounted: S
9247
- }), R = O(j, { event: "mousedown" }), z = k(j), B = I(j, { role: "menu" }), V = m([]), { getFloatingProps: H, getItemProps: U, getReferenceProps: W } = P([
9266
+ }), R = O(j, { event: "mousedown" }), z = k(j), B = I(j, { role: "menu" }), V = m([]), { getFloatingProps: H, getItemProps: U, getReferenceProps: ee } = P([
9248
9267
  z,
9249
9268
  B,
9250
9269
  R,
@@ -9257,7 +9276,7 @@ var sr = {
9257
9276
  focusItemOnOpen: !1,
9258
9277
  focusItemOnHover: !0
9259
9278
  })
9260
- ]), { isMounted: G, styles: K } = L(j, {
9279
+ ]), { isMounted: W, styles: G } = L(j, {
9261
9280
  duration: {
9262
9281
  open: 300,
9263
9282
  close: 150
@@ -9265,16 +9284,16 @@ var sr = {
9265
9284
  initial: { opacity: 0 },
9266
9285
  open: { opacity: 1 },
9267
9286
  close: { opacity: 0 }
9268
- }), q = /* @__PURE__ */ e.createElement(Ue, {
9287
+ }), K = /* @__PURE__ */ e.createElement(Ue, {
9269
9288
  hasUserFallback: !0,
9270
9289
  className: `${T}__avatar`,
9271
9290
  imageSrc: l,
9272
9291
  size: "s",
9273
9292
  uniqueId: c
9274
- }), J = /* @__PURE__ */ e.createElement("li", {
9293
+ }), q = /* @__PURE__ */ e.createElement("li", {
9275
9294
  className: `${T}__user-details`,
9276
9295
  role: "presentation"
9277
- }, /* @__PURE__ */ e.createElement("div", { className: `${T}__user-name` }, d), /* @__PURE__ */ e.createElement("div", { className: `${T}__user-email` }, c)), ee = a !== void 0 && typeof i == "function" ? /* @__PURE__ */ e.createElement("li", {
9296
+ }, /* @__PURE__ */ e.createElement("div", { className: `${T}__user-name` }, d), /* @__PURE__ */ e.createElement("div", { className: `${T}__user-email` }, c)), te = a !== void 0 && typeof i == "function" ? /* @__PURE__ */ e.createElement("li", {
9278
9297
  className: `${T}__theme-row`,
9279
9298
  role: "presentation"
9280
9299
  }, /* @__PURE__ */ e.createElement("span", { className: `${T}__theme-label` }, o), /* @__PURE__ */ e.createElement(ui, {
@@ -9289,14 +9308,14 @@ var sr = {
9289
9308
  let n = e.id ? e.id : `${x}-item-${t}`;
9290
9309
  y.current.push(n), b.current.push(e);
9291
9310
  });
9292
- let te = (e) => {
9311
+ let ne = (e) => {
9293
9312
  let t = y.current.indexOf(e), n = b.current[t];
9294
9313
  n.linkContent && !n.disabled && (V.current[t].querySelector("a").click(), v(!1)), n.callback && !n.disabled && (n.callback(), v(!1));
9295
- }, ne = (e) => {
9296
- e.preventDefault(), e.key === "Enter" && te(e.currentTarget.id);
9297
9314
  }, re = (e) => {
9298
- te(e.currentTarget.id);
9299
- }, ie = r.map((t, n) => {
9315
+ e.preventDefault(), e.key === "Enter" && ne(e.currentTarget.id);
9316
+ }, ie = (e) => {
9317
+ ne(e.currentTarget.id);
9318
+ }, ae = r.map((t, n) => {
9300
9319
  let r = y.current[n], i = `${T}__item`, a = t.disabled ? `${i}--disabled` : null;
9301
9320
  return /* @__PURE__ */ e.createElement("li", {
9302
9321
  key: r,
@@ -9305,16 +9324,16 @@ var sr = {
9305
9324
  },
9306
9325
  className: Z([i, a]),
9307
9326
  id: r,
9308
- onKeyDown: ne,
9327
+ onKeyDown: re,
9309
9328
  role: "menuitem",
9310
9329
  tabIndex: p === n ? 0 : -1,
9311
- ...U({ onClick: (e) => re(e) })
9330
+ ...U({ onClick: (e) => ie(e) })
9312
9331
  }, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
9313
9332
  className: `${T}__icon`,
9314
9333
  iconName: t.iconName,
9315
9334
  size: "m"
9316
9335
  }));
9317
- }), ae = r.map((t, n) => {
9336
+ }), J = r.map((t, n) => {
9318
9337
  let r = y.current[n], i = `${T}__item`, a = t.disabled ? `${i}--disabled` : null;
9319
9338
  return /* @__PURE__ */ e.createElement("li", {
9320
9339
  key: r,
@@ -9329,20 +9348,20 @@ var sr = {
9329
9348
  iconName: t.iconName,
9330
9349
  size: "m"
9331
9350
  }));
9332
- }), Y = /* @__PURE__ */ e.createElement("span", { className: `${T}__toggle-left` }, q, d ?? c);
9351
+ }), Y = /* @__PURE__ */ e.createElement("span", { className: `${T}__toggle-left` }, K, d ?? c);
9333
9352
  return /* @__PURE__ */ e.createElement("span", {
9334
9353
  className: Z([T, n ?? ""]),
9335
9354
  ...f
9336
9355
  }, /* @__PURE__ */ e.createElement(dn, { label: Y }, /* @__PURE__ */ e.createElement("ul", {
9337
9356
  className: Z([D, `${D}--mobile`]),
9338
9357
  role: "menu"
9339
- }, J, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ee, ae)), /* @__PURE__ */ e.createElement("button", {
9358
+ }, q, /* @__PURE__ */ e.createElement("li", { role: "separator" }), te, J)), /* @__PURE__ */ e.createElement("button", {
9340
9359
  ref: N.setReference,
9341
9360
  "aria-label": t,
9342
9361
  className: `${T}__trigger`,
9343
9362
  type: "button",
9344
- ...W()
9345
- }, q), G && /* @__PURE__ */ e.createElement("div", {
9363
+ ...ee()
9364
+ }, K), W && /* @__PURE__ */ e.createElement("div", {
9346
9365
  ref: N.setFloating,
9347
9366
  className: `${T}__dropdown`,
9348
9367
  style: {
@@ -9350,10 +9369,10 @@ var sr = {
9350
9369
  zIndex: "var(--pds-z-index-dropdown)"
9351
9370
  },
9352
9371
  ...H()
9353
- }, /* @__PURE__ */ e.createElement("div", { style: { ...K } }, /* @__PURE__ */ e.createElement("ul", {
9372
+ }, /* @__PURE__ */ e.createElement("div", { style: { ...G } }, /* @__PURE__ */ e.createElement("ul", {
9354
9373
  className: D,
9355
9374
  role: "menu"
9356
- }, J, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ee, ie))));
9375
+ }, q, /* @__PURE__ */ e.createElement("li", { role: "separator" }), te, ae))));
9357
9376
  }, fi = ({ ariaLabel: t = "Workspace selector menu", className: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", menuHeading: o = "Workspaces", minFilterItems: s = 8, noResultsText: c = "No results found", workspaceList: l = [], ...u }) => {
9358
9377
  let [d, f] = h(""), [g, _] = h(""), v = m(null), y = l.length >= s, b = "pds-workspace-selector", x = `${b}__menu`, S = y ? `${x}--scroll` : null, { activeIndex: C, floatingStyles: w, getFloatingProps: T, getItemProps: E, getReferenceProps: D, isMounted: O, listRef: k, refs: A, setIsOpen: j, transitionStyles: M } = Qt({
9359
9378
  enableTypeahead: !y,
@@ -9613,51 +9632,55 @@ var sr = {
9613
9632
  success: "circleCheck",
9614
9633
  critical: "diamondExclamation",
9615
9634
  discovery: "squareQuestion"
9616
- }, bi = ({ className: t, ctaButton: n, dataContext: r = "product", dismissLabel: i = "Dismiss", id: a, isDismissible: o, message: s, onDismiss: c, title: l, type: u = "info", typeLabels: d = fn, ...f }) => {
9617
- let p = r === "marketing", h = m(null), g = "pds-section-message", _ = {
9618
- error: `${g}--error`,
9619
- success: `${g}--success`,
9620
- warning: `${g}--warning`,
9621
- info: `${g}--info`,
9622
- critical: `${g}--critical`,
9623
- discovery: `${g}--discovery`,
9624
- dismissing: `${g}--dismissing`,
9625
- dismissed: `${g}--dismissed`
9626
- }, v = o ? `${g}--hasDismiss` : null, y = l ? `${g}--hasTitle` : null, b = u === "critical" ? "alert" : "status", x = `${d[u]}: `, S = typeof s == "string" ? /* @__PURE__ */ e.createElement("p", null, s) : s, C = () => {
9627
- h.current.addEventListener("animationend", w, { once: !0 });
9628
- }, w = (e) => {
9629
- c(e, a);
9630
- }, T = () => {
9631
- C(), h.current.classList.toggle(_.dismissing), setTimeout(() => {
9632
- h.current.classList.toggle(_.dismissing), h.current.classList.toggle(_.dismissed);
9635
+ }, bi = ({ className: t, ctaButton: n, dataContext: r = "product", dismissLabel: i = "Dismiss", id: a, isDismissible: o, message: s, onDismiss: c, title: u, type: d = "info", typeLabels: f = fn, ...p }) => {
9636
+ let h = r === "marketing", g = m(null), _ = m(void 0), v = "pds-section-message", y = {
9637
+ error: `${v}--error`,
9638
+ success: `${v}--success`,
9639
+ warning: `${v}--warning`,
9640
+ info: `${v}--info`,
9641
+ critical: `${v}--critical`,
9642
+ discovery: `${v}--discovery`,
9643
+ dismissing: `${v}--dismissing`,
9644
+ dismissed: `${v}--dismissed`
9645
+ }, b = o ? `${v}--hasDismiss` : null, x = u ? `${v}--hasTitle` : null, S = d === "critical" ? "alert" : "status", C = `${f[d]}: `, w = typeof s == "string" ? /* @__PURE__ */ e.createElement("p", null, s) : s;
9646
+ l(() => () => {
9647
+ _.current && clearTimeout(_.current);
9648
+ }, []);
9649
+ let T = () => {
9650
+ g.current?.addEventListener("animationend", E, { once: !0 });
9651
+ }, E = (e) => {
9652
+ c?.(e, a);
9653
+ }, D = () => {
9654
+ T(), g.current?.classList.toggle(y.dismissing), _.current = setTimeout(() => {
9655
+ g.current && (g.current.classList.toggle(y.dismissing), g.current.classList.toggle(y.dismissed));
9633
9656
  }, 400);
9634
9657
  };
9635
9658
  return /* @__PURE__ */ e.createElement("div", {
9636
- ref: h,
9659
+ ref: g,
9637
9660
  className: Z([
9638
- g,
9639
- _[u],
9640
9661
  v,
9641
- y,
9662
+ y[d],
9663
+ b,
9664
+ x,
9642
9665
  t ?? ""
9643
9666
  ]),
9644
9667
  "data-context": r,
9645
9668
  id: a,
9646
- role: b,
9647
- ...f
9648
- }, /* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${g}__icon ${g}__icon-${u}` }, /* @__PURE__ */ e.createElement(Q, {
9649
- iconName: `${u}` in yi ? yi[u] : yi.info,
9650
- size: p ? "xl" : "l"
9651
- })), /* @__PURE__ */ e.createElement("div", { className: `${g}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, x), l && /* @__PURE__ */ e.createElement("div", { className: `${g}__title` }, l), /* @__PURE__ */ e.createElement("div", { className: `${g}__message` }, S))), (n || o) && /* @__PURE__ */ e.createElement("div", { className: `${g}__actions` }, n && /* @__PURE__ */ e.createElement(Gt, {
9669
+ role: S,
9670
+ ...p
9671
+ }, /* @__PURE__ */ e.createElement("div", { className: `${v}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${v}__icon ${v}__icon-${d}` }, /* @__PURE__ */ e.createElement(Q, {
9672
+ iconName: `${d}` in yi ? yi[d] : yi.info,
9673
+ size: h ? "xl" : "l"
9674
+ })), /* @__PURE__ */ e.createElement("div", { className: `${v}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, C), u && /* @__PURE__ */ e.createElement("div", { className: `${v}__title` }, u), /* @__PURE__ */ e.createElement("div", { className: `${v}__message` }, w))), (n || o) && /* @__PURE__ */ e.createElement("div", { className: `${v}__actions` }, n && /* @__PURE__ */ e.createElement(Gt, {
9652
9675
  ...n,
9653
- className: `${g}__cta`,
9654
- size: p ? "m" : "s",
9676
+ className: `${v}__cta`,
9677
+ size: h ? "m" : "s",
9655
9678
  variant: "secondary"
9656
9679
  }), o && /* @__PURE__ */ e.createElement(Xt, {
9657
9680
  ariaLabel: i,
9658
- className: `${g}__dismiss`,
9659
- onClick: T,
9660
- size: p ? "l" : "m"
9681
+ className: `${v}__dismiss`,
9682
+ onClick: D,
9683
+ size: h ? "l" : "m"
9661
9684
  })));
9662
9685
  }, xi = 3e4, Si = {
9663
9686
  pause: "Pause notification",
@@ -10389,7 +10412,7 @@ var sr = {
10389
10412
  }, [d]), l(() => {
10390
10413
  f(j);
10391
10414
  }, [j]);
10392
- let N = typeof a, F = "pds-popover", R = Z([`${F}__trigger-custom`, N === "string" ? `${F}__trigger-text` : ""]), z = a ? s : 0, B = m(null), { context: V, floatingStyles: H, middlewareData: U, refs: W } = A({
10415
+ let N = typeof a, F = "pds-popover", R = Z([`${F}__trigger-custom`, N === "string" ? `${F}__trigger-text` : ""]), z = a ? s : 0, B = m(null), { context: V, floatingStyles: H, middlewareData: U, refs: ee } = A({
10393
10416
  placement: u,
10394
10417
  open: j,
10395
10418
  onOpenChange(e) {
@@ -10402,44 +10425,44 @@ var sr = {
10402
10425
  x({ element: B })
10403
10426
  ],
10404
10427
  whileElementsMounted: S
10405
- }), G = () => {
10428
+ }), W = () => {
10406
10429
  M(!1), c && c();
10407
- }, { getFloatingProps: K, getReferenceProps: q } = P([
10430
+ }, { getFloatingProps: G, getReferenceProps: K } = P([
10408
10431
  O(V),
10409
10432
  k(V),
10410
10433
  I(V)
10411
- ]), J = U.arrow?.x ?? 0, ee = U.arrow?.y ?? 0, te = J + Yi / 2, ne = ee + Ji, { isMounted: re } = L(V, {
10434
+ ]), q = U.arrow?.x ?? 0, te = U.arrow?.y ?? 0, ne = q + Yi / 2, re = te + Ji, { isMounted: ie } = L(V, {
10412
10435
  initial: { transform: "scale(0)" },
10413
10436
  common: ({ side: e }) => ({ transformOrigin: {
10414
- top: `${te}px calc(100% + ${Ji}px)`,
10415
- bottom: `${te}px -8px`,
10416
- left: `calc(100% + ${Ji}px) ${ne}px`,
10417
- right: `-8px ${ne}px`
10437
+ top: `${ne}px calc(100% + ${Ji}px)`,
10438
+ bottom: `${ne}px -8px`,
10439
+ left: `calc(100% + ${Ji}px) ${re}px`,
10440
+ right: `-8px ${re}px`
10418
10441
  }[e] })
10419
10442
  });
10420
10443
  return /* @__PURE__ */ e.createElement("div", {
10421
10444
  className: Z([F, t]),
10422
10445
  ...D
10423
10446
  }, /* @__PURE__ */ e.createElement("span", {
10424
- ref: W.setReference,
10447
+ ref: ee.setReference,
10425
10448
  className: `${F}__trigger`,
10426
10449
  role: "button",
10427
10450
  tabIndex: 0,
10428
- ...q(),
10451
+ ...K(),
10429
10452
  ...D
10430
10453
  }, a ? /* @__PURE__ */ e.createElement("span", { className: R }, a) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, g), /* @__PURE__ */ e.createElement(Q, {
10431
10454
  className: `${F}__icon`,
10432
10455
  iconName: y,
10433
10456
  size: T
10434
- }))), re && /* @__PURE__ */ e.createElement(b, null, /* @__PURE__ */ e.createElement(v, {
10457
+ }))), ie && /* @__PURE__ */ e.createElement(b, null, /* @__PURE__ */ e.createElement(v, {
10435
10458
  context: V,
10436
10459
  initialFocus: -1,
10437
10460
  modal: o
10438
10461
  }, /* @__PURE__ */ e.createElement("div", {
10439
- ref: W.setFloating,
10462
+ ref: ee.setFloating,
10440
10463
  className: Z([`${F}__container`, n]),
10441
10464
  style: H,
10442
- ...K()
10465
+ ...G()
10443
10466
  }, /* @__PURE__ */ e.createElement(_, {
10444
10467
  ref: B,
10445
10468
  className: `${F}__arrow`,
@@ -10452,7 +10475,7 @@ var sr = {
10452
10475
  width: Yi
10453
10476
  }), /* @__PURE__ */ e.createElement("div", { className: `${F}__container-inner` }, p && /* @__PURE__ */ e.createElement("div", { className: `${F}__title` }, p), i && /* @__PURE__ */ e.createElement("div", { className: `${F}__content` }, i), o && /* @__PURE__ */ e.createElement("div", { className: `${F}__close-wrapper` }, /* @__PURE__ */ e.createElement(Xt, {
10454
10477
  ariaLabel: r,
10455
- onClick: G,
10478
+ onClick: W,
10456
10479
  size: "s"
10457
10480
  })))))));
10458
10481
  }, Zi = {
@@ -10763,7 +10786,7 @@ function fa(e) {
10763
10786
  //#endregion
10764
10787
  //#region src/components/SortableList/SortableList.tsx
10765
10788
  var pa = 24, ma = { droppable: { strategy: _e.Always } }, ha = a(function({ children: n, className: r, columns: i, defaultItems: a, getItemLabel: c = (e) => String(e.id), isDragEnabled: l, isItemLocked: u = () => !1, isNestingLocked: f = () => !1, items: g, maxDepth: _ = 0, onReorder: v, renderRow: y, reorderMode: b = "always", screenReaderInstructions: x, ...S }, C) {
10766
- let w = "pds-sortable-list", [T, E] = h(null), D = m(null), [O, k] = h(!1), A = m(!1), [j, M] = h(null), N = m(0), P = m(0), F = m("pointer"), I = m(0), L = m(null), [R, z] = h(0), B = m(0), [V, H] = h(0), U = m(0), W = s((e, t) => {
10789
+ let w = "pds-sortable-list", [T, E] = h(null), D = m(null), [O, k] = h(!1), A = m(!1), [j, M] = h(null), N = m(0), P = m(0), F = m("pointer"), I = m(0), L = m(null), [R, z] = h(0), B = m(0), [V, H] = h(0), U = m(0), ee = s((e, t) => {
10767
10790
  if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
10768
10791
  e.preventDefault();
10769
10792
  let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
@@ -10773,66 +10796,66 @@ var pa = 24, ma = { droppable: { strategy: _e.Always } }, ha = a(function({ chil
10773
10796
  };
10774
10797
  }
10775
10798
  return Ce(e, t);
10776
- }, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: q, flatNodes: J, handleReorder: ee, resetToSnapshot: te, sortableIds: ne, toggleExpand: re } = ua({
10799
+ }, [_]), W = b === "always" || b === "toggle" && (l ?? !1), { currentItems: G, expandItem: K, flatNodes: q, handleReorder: te, resetToSnapshot: ne, sortableIds: re, toggleExpand: ie } = ua({
10777
10800
  defaultItems: a,
10778
- isDragEnabled: G,
10801
+ isDragEnabled: W,
10779
10802
  items: g,
10780
10803
  onReorder: v
10781
10804
  });
10782
- d(C, () => ({ resetToSnapshot: te }), [te]);
10783
- let ie = xe(be(ve, { activationConstraint: { distance: 5 } }), be(ge, { coordinateGetter: W })), ae = G ? `${w}--reorder-active` : null, Y = p(() => new Set(J.filter((e) => u(e.data)).map((e) => e.id)), [J, u]), oe = p(() => new Set(J.filter((e) => f(e.data)).map((e) => e.id)), [J, f]), X = s((e) => {
10805
+ d(C, () => ({ resetToSnapshot: ne }), [ne]);
10806
+ let ae = xe(be(ve, { activationConstraint: { distance: 5 } }), be(ge, { coordinateGetter: ee })), J = W ? `${w}--reorder-active` : null, Y = p(() => new Set(q.filter((e) => u(e.data)).map((e) => e.id)), [q, u]), oe = p(() => new Set(q.filter((e) => f(e.data)).map((e) => e.id)), [q, f]), X = s((e) => {
10784
10807
  if (_ === 0 || oe.has(String(e))) return !1;
10785
- let t = J.find((t) => t.id === e);
10808
+ let t = q.find((t) => t.id === e);
10786
10809
  return !t || t.depth >= _ ? !1 : t.hasChildren ? !t.isExpanded : !0;
10787
10810
  }, [
10788
- J,
10811
+ q,
10789
10812
  _,
10790
10813
  oe
10791
10814
  ]), se = s((e) => j && X(j) ? null : Te(e), [X, j]), ce = p(() => {
10792
10815
  if (!T || !j || Y.size === 0 || T === j || X(j)) return /* @__PURE__ */ new Set();
10793
- let e = J.findIndex((e) => e.id === T), t = J.findIndex((e) => e.id === j);
10816
+ let e = q.findIndex((e) => e.id === T), t = q.findIndex((e) => e.id === j);
10794
10817
  if (e === -1 || t === -1) return /* @__PURE__ */ new Set();
10795
10818
  let [n, r] = e < t ? [e + 1, t - 1] : [t + 1, e - 1];
10796
- return new Set(J.slice(n, r + 1).filter((e) => Y.has(e.id)).map((e) => e.id));
10819
+ return new Set(q.slice(n, r + 1).filter((e) => Y.has(e.id)).map((e) => e.id));
10797
10820
  }, [
10798
10821
  T,
10799
- J,
10822
+ q,
10800
10823
  X,
10801
10824
  Y,
10802
10825
  j
10803
- ]).size > 0, le = p(() => T ? J.find((e) => e.id === T) ?? null : null, [T, J]), ue = p(() => T ? sa(K, String(T)) ?? null : null, [T, K]), de = p(() => {
10826
+ ]).size > 0, le = p(() => T ? q.find((e) => e.id === T) ?? null : null, [T, q]), ue = p(() => T ? sa(G, String(T)) ?? null : null, [T, G]), de = p(() => {
10804
10827
  let e = le?.depth ?? 0;
10805
- return !T || !j || O || _ === 0 ? e : ca(J, String(T), String(j), V * pa, pa, _);
10828
+ return !T || !j || O || _ === 0 ? e : ca(q, String(T), String(j), V * pa, pa, _);
10806
10829
  }, [
10807
10830
  T,
10808
10831
  le,
10809
10832
  V,
10810
- J,
10833
+ q,
10811
10834
  O,
10812
10835
  _,
10813
10836
  j
10814
10837
  ]), fe = p(() => {
10815
10838
  if (!T || O || de === 0 || j && X(j)) return null;
10816
- let e = J.findIndex((e) => e.id === T);
10817
- return e === -1 ? null : ga(J, e, de);
10839
+ let e = q.findIndex((e) => e.id === T);
10840
+ return e === -1 ? null : ga(q, e, de);
10818
10841
  }, [
10819
10842
  T,
10820
- J,
10843
+ q,
10821
10844
  X,
10822
10845
  O,
10823
10846
  j,
10824
10847
  de
10825
10848
  ]), pe = s((e) => {
10826
- let { active: t } = e, n = F.current === "keyboard", r = J.find((e) => e.id === t.id);
10827
- E(t.id), D.current = t.id, k(n), A.current = n, I.current = r?.depth ?? 0, M(null), N.current = 0, P.current = 0, U.current = 0, H(0), B.current = 0, z(0), r?.hasChildren && r?.isExpanded && (re(String(t.id)), L.current = String(t.id));
10828
- }, [J, re]), _e = s((e) => {
10849
+ let { active: t } = e, n = F.current === "keyboard", r = q.find((e) => e.id === t.id);
10850
+ E(t.id), D.current = t.id, k(n), A.current = n, I.current = r?.depth ?? 0, M(null), N.current = 0, P.current = 0, U.current = 0, H(0), B.current = 0, z(0), r?.hasChildren && r?.isExpanded && (ie(String(t.id)), L.current = String(t.id));
10851
+ }, [q, ie]), _e = s((e) => {
10829
10852
  let t = ye(e);
10830
10853
  if (!t.length || !D.current || Y.size === 0) return t;
10831
- let n = J.findIndex((e) => e.id === D.current);
10854
+ let n = q.findIndex((e) => e.id === D.current);
10832
10855
  for (let e of t) {
10833
10856
  let t = e.id;
10834
10857
  if (t === D.current) return [e];
10835
- let r = J.findIndex((e) => e.id === t);
10858
+ let r = q.findIndex((e) => e.id === t);
10836
10859
  if (n === -1 || r === -1) return [e];
10837
10860
  if (Y.has(String(t))) {
10838
10861
  if (n > r) continue;
@@ -10840,39 +10863,39 @@ var pa = 24, ma = { droppable: { strategy: _e.Always } }, ha = a(function({ chil
10840
10863
  if (!X(t) && (!e || !i)) continue;
10841
10864
  }
10842
10865
  let [i, a] = n < r ? [n + 1, r - 1] : [r + 1, n - 1];
10843
- if (!J.slice(i, a + 1).some((e) => Y.has(e.id))) return [e];
10866
+ if (!q.slice(i, a + 1).some((e) => Y.has(e.id))) return [e];
10844
10867
  }
10845
10868
  return [];
10846
10869
  }, [
10847
- J,
10870
+ q,
10848
10871
  Y,
10849
10872
  oe
10850
10873
  ]), we = s((e) => {
10851
10874
  let t = e.over?.id ?? null, n = D.current;
10852
10875
  if (t && n && t !== n && Y.size > 0) {
10853
- let e = J.findIndex((e) => e.id === n), r = J.findIndex((e) => e.id === t);
10876
+ let e = q.findIndex((e) => e.id === n), r = q.findIndex((e) => e.id === t);
10854
10877
  if (e !== -1 && r !== -1) {
10855
10878
  let [t, n] = e < r ? [e + 1, r] : [r, e - 1];
10856
- if (J.slice(t, n + 1).some((e) => Y.has(e.id))) return;
10879
+ if (q.slice(t, n + 1).some((e) => Y.has(e.id))) return;
10857
10880
  }
10858
10881
  }
10859
10882
  M(t);
10860
- }, [J, Y]), Ee = s((e) => {
10883
+ }, [q, Y]), Ee = s((e) => {
10861
10884
  let t = e.delta.x;
10862
10885
  if (P.current = t, A.current || _ === 0) return;
10863
10886
  let n = Math.floor(t / pa), r = U.current;
10864
10887
  (n > r || n < r && t < r * pa - pa * .4) && (U.current = n, H(n));
10865
10888
  }, [_]), De = s((e) => {
10866
10889
  let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
10867
- E(null), D.current = null, k(!1), A.current = !1, M(null), U.current = 0, H(0), L.current && (q(L.current), L.current = null);
10868
- let o = J.findIndex((e) => e.id === t.id), s = r ? i * pa : a * pa, c = !n || t.id === n.id, l = n?.id ?? null;
10869
- if (r && i > 0 && c && o > 0 && (l = J[o - 1].id), !l || t.id === l) {
10890
+ E(null), D.current = null, k(!1), A.current = !1, M(null), U.current = 0, H(0), L.current && (K(L.current), L.current = null);
10891
+ let o = q.findIndex((e) => e.id === t.id), s = r ? i * pa : a * pa, c = !n || t.id === n.id, l = n?.id ?? null;
10892
+ if (r && i > 0 && c && o > 0 && (l = q[o - 1].id), !l || t.id === l) {
10870
10893
  if (o === -1) return;
10871
- let e = J[o];
10894
+ let e = q[o];
10872
10895
  if (!e) return;
10873
- let n = ca(J, String(t.id), String(t.id), s, pa, _);
10896
+ let n = ca(q, String(t.id), String(t.id), s, pa, _);
10874
10897
  if (n === e.depth) return;
10875
- let r = [...J], [i] = r.splice(o, 1), a = ga(r, o, n);
10898
+ let r = [...q], [i] = r.splice(o, 1), a = ga(r, o, n);
10876
10899
  if (a && oe.has(a)) return;
10877
10900
  let c = {
10878
10901
  ...i,
@@ -10880,18 +10903,18 @@ var pa = 24, ma = { droppable: { strategy: _e.Always } }, ha = a(function({ chil
10880
10903
  parentId: a
10881
10904
  };
10882
10905
  r.splice(o, 0, c);
10883
- let l = J.filter((e) => e.id !== t.id).map((e) => e.id), u = r.filter((e) => e.id !== t.id).map((e) => e.id);
10906
+ let l = q.filter((e) => e.id !== t.id).map((e) => e.id), u = r.filter((e) => e.id !== t.id).map((e) => e.id);
10884
10907
  if (l.some((e, t) => Y.has(e) ? u.indexOf(e) !== t : !1)) return;
10885
- ee(r), n > 0 && a && q(a);
10908
+ te(r), n > 0 && a && K(a);
10886
10909
  return;
10887
10910
  }
10888
- let u = J.findIndex((e) => e.id === l);
10911
+ let u = q.findIndex((e) => e.id === l);
10889
10912
  if (o === -1 || u === -1) return;
10890
- let d = [...J], f = d[o].depth, [p] = d.splice(o, 1), m = [];
10913
+ let d = [...q], f = d[o].depth, [p] = d.splice(o, 1), m = [];
10891
10914
  for (; d.length > o && d[o].depth > f;) m.push(d.splice(o, 1)[0]);
10892
10915
  let h = d.findIndex((e) => e.id === l), g, v;
10893
10916
  if (X(l)) {
10894
- let e = J[u];
10917
+ let e = q[u];
10895
10918
  g = Math.min(e.depth + 1, _), v = String(l);
10896
10919
  } else {
10897
10920
  g = ca(d, String(t.id), String(l), s, pa, _, p.depth);
@@ -10906,42 +10929,42 @@ var pa = 24, ma = { droppable: { strategy: _e.Always } }, ha = a(function({ chil
10906
10929
  }, b = d[h], x = b && b.depth === g - 1 && v === String(l) || o < u ? h + 1 : h;
10907
10930
  d.splice(x, 0, y, ...m);
10908
10931
  let S = new Set([String(t.id), ...m.map((e) => e.id)]);
10909
- J.some((e, t) => !Y.has(e.id) || S.has(e.id) || e.id === v ? !1 : d.findIndex((t) => t.id === e.id) !== t) || (ee(d), g > 0 && v !== null && q(v));
10932
+ q.some((e, t) => !Y.has(e.id) || S.has(e.id) || e.id === v ? !1 : d.findIndex((t) => t.id === e.id) !== t) || (te(d), g > 0 && v !== null && K(v));
10910
10933
  }, [
10934
+ K,
10911
10935
  q,
10912
- J,
10913
- ee,
10936
+ te,
10914
10937
  X,
10915
10938
  Y,
10916
10939
  _,
10917
10940
  oe
10918
10941
  ]), Oe = s(() => {
10919
- E(null), D.current = null, k(!1), A.current = !1, M(null), P.current = 0, U.current = 0, H(0), B.current = 0, z(0), L.current && (q(L.current), L.current = null);
10920
- }, [q]), ke = p(() => ({
10942
+ E(null), D.current = null, k(!1), A.current = !1, M(null), P.current = 0, U.current = 0, H(0), B.current = 0, z(0), L.current && (K(L.current), L.current = null);
10943
+ }, [K]), ke = p(() => ({
10921
10944
  onDragStart({ active: e }) {
10922
- let t = J.find((t) => t.id === e.id), n = sa(K, String(e.id));
10923
- return `Picked up ${n ? c(n) : String(e.id)}. Current position: ${t ? J.indexOf(t) + 1 : "?"} of ${J.length} at depth ${t?.depth ?? 0}.`;
10945
+ let t = q.find((t) => t.id === e.id), n = sa(G, String(e.id));
10946
+ return `Picked up ${n ? c(n) : String(e.id)}. Current position: ${t ? q.indexOf(t) + 1 : "?"} of ${q.length} at depth ${t?.depth ?? 0}.`;
10924
10947
  },
10925
10948
  onDragOver({ active: e, over: t }) {
10926
10949
  if (!t) return;
10927
- let n = J.findIndex((e) => e.id === t.id);
10950
+ let n = q.findIndex((e) => e.id === t.id);
10928
10951
  if (n === -1) return;
10929
- let r = sa(K, String(e.id)), i = r ? c(r) : String(e.id), a = ca(J, String(e.id), String(t.id), P.current, pa, _);
10930
- return `Moving ${i}. Target position: ${n + 1} of ${J.length} at depth ${a}.`;
10952
+ let r = sa(G, String(e.id)), i = r ? c(r) : String(e.id), a = ca(q, String(e.id), String(t.id), P.current, pa, _);
10953
+ return `Moving ${i}. Target position: ${n + 1} of ${q.length} at depth ${a}.`;
10931
10954
  },
10932
10955
  onDragEnd({ active: e, over: t }) {
10933
- let n = sa(K, String(e.id)), r = n ? c(n) : String(e.id);
10956
+ let n = sa(G, String(e.id)), r = n ? c(n) : String(e.id);
10934
10957
  if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
10935
- let i = J.findIndex((e) => e.id === t.id), a = ca(J, String(e.id), String(t.id), P.current, pa, _);
10936
- return `${r} dropped at position ${i + 1} of ${J.length} at depth ${a}.`;
10958
+ let i = q.findIndex((e) => e.id === t.id), a = ca(q, String(e.id), String(t.id), P.current, pa, _);
10959
+ return `${r} dropped at position ${i + 1} of ${q.length} at depth ${a}.`;
10937
10960
  },
10938
10961
  onDragCancel({ active: e }) {
10939
- let t = J.find((t) => t.id === e.id), n = sa(K, String(e.id));
10940
- return `Sorting cancelled. ${n ? c(n) : String(e.id)} returned to position ${t ? J.indexOf(t) + 1 : "?"} of ${J.length}.`;
10962
+ let t = q.find((t) => t.id === e.id), n = sa(G, String(e.id));
10963
+ return `Sorting cancelled. ${n ? c(n) : String(e.id)} returned to position ${t ? q.indexOf(t) + 1 : "?"} of ${q.length}.`;
10941
10964
  }
10942
10965
  }), [
10943
- K,
10944
- J,
10966
+ G,
10967
+ q,
10945
10968
  c,
10946
10969
  _
10947
10970
  ]), Ae = { columns: i }, je = t.map(n, (t) => o(t) && t.type === la ? e.cloneElement(t, Ae) : t);
@@ -10957,14 +10980,14 @@ var pa = 24, ma = { droppable: { strategy: _e.Always } }, ha = a(function({ chil
10957
10980
  onDragMove: Ee,
10958
10981
  onDragOver: we,
10959
10982
  onDragStart: pe,
10960
- sensors: ie
10983
+ sensors: ae
10961
10984
  }, /* @__PURE__ */ e.createElement(Se, {
10962
- items: ne,
10985
+ items: re,
10963
10986
  strategy: se
10964
10987
  }, /* @__PURE__ */ e.createElement("div", {
10965
10988
  className: Z([
10966
10989
  w,
10967
- ae,
10990
+ J,
10968
10991
  r ?? ""
10969
10992
  ]),
10970
10993
  onKeyDownCapture: () => {
@@ -10975,7 +10998,7 @@ var pa = 24, ma = { droppable: { strategy: _e.Always } }, ha = a(function({ chil
10975
10998
  },
10976
10999
  role: "list",
10977
11000
  ...S
10978
- }, je, J.map((t) => {
11001
+ }, je, q.map((t) => {
10979
11002
  let n = {
10980
11003
  depth: t.depth,
10981
11004
  hasChildren: t.hasChildren,
@@ -10983,18 +11006,18 @@ var pa = 24, ma = { droppable: { strategy: _e.Always } }, ha = a(function({ chil
10983
11006
  isDragging: t.id === T,
10984
11007
  isExpanded: t.isExpanded,
10985
11008
  isLocked: Y.has(t.id),
10986
- toggleExpand: () => re(t.id)
11009
+ toggleExpand: () => ie(t.id)
10987
11010
  }, r = y(t.data, n), a = t.id === T, s = {
10988
11011
  columns: i,
10989
11012
  depth: t.depth,
10990
11013
  hasChildren: t.hasChildren,
10991
- isDragActive: G,
11014
+ isDragActive: W,
10992
11015
  isDragging: a,
10993
11016
  isDropTarget: t.id === j && X(t.id),
10994
11017
  isProjectedParent: t.id === fe && !oe.has(t.id),
10995
11018
  isExpanded: t.isExpanded,
10996
11019
  ...Y.has(t.id) ? { isLocked: !0 } : {},
10997
- onToggleExpand: () => re(t.id),
11020
+ onToggleExpand: () => ie(t.id),
10998
11021
  ...a && !O && _ > 0 ? { projectedDepthDelta: de - t.depth } : {}
10999
11022
  };
11000
11023
  return o(r) ? e.cloneElement(r, {
@@ -11313,16 +11336,16 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11313
11336
  className: Z([a, t ?? ""]),
11314
11337
  ...i
11315
11338
  }, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
11316
- }, wa = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", detailPanelNav: s = !0, detailPanelTitle: c, detailPanelWidth: d, emptyState: f, emptyStateHeading: m = "No results found.", emptyStateMessage: g, footer: _, getPageSizeLabel: v = (e) => `Show ${e} rows per page`, getRowClassName: y, getRowId: b, getSelectRowLabel: x = (e, t) => `Select row ${t}`, getSortLabel: S = (e) => `Sort by ${e}`, inspectedRowId: C, isLoading: w = !1, itemsPerPage: T, loadingRowCount: E = 5, nextDetailPanelRowLabel: D = "Next row", onDetailPanelNext: O, onDetailPanelPrev: k, onPageChange: A, onPageSizeChange: j, onRowInspect: M, onRowSelectionChange: N, onSort: P, pageSizeOptions: F, panel: I, prevDetailPanelRowLabel: L = "Previous row", renderDetailPanel: R, renderDetailPanelFooter: z, rowData: B, selectAllLabel: V = "Select all rows", selectedRows: H, sortKey: U, sortOrder: W, totalItemCount: G, ...K }) => {
11317
- let q = "pds-table", J = u(), ee = u(), te = P !== void 0, ne = A !== void 0, re = j !== void 0, ie = ne || T !== void 0 || F !== void 0, [ae, Y] = h({
11339
+ }, wa = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", detailPanelNav: s = !0, detailPanelTitle: c, detailPanelWidth: d, emptyState: f, emptyStateHeading: m = "No results found.", emptyStateMessage: g, footer: _, getPageSizeLabel: v = (e) => `Show ${e} rows per page`, getRowClassName: y, getRowId: b, getSelectRowLabel: x = (e, t) => `Select row ${t}`, getSortLabel: S = (e) => `Sort by ${e}`, inspectedRowId: C, isLoading: w = !1, itemsPerPage: T, loadingRowCount: E = 5, nextDetailPanelRowLabel: D = "Next row", onDetailPanelNext: O, onDetailPanelPrev: k, onPageChange: A, onPageSizeChange: j, onRowInspect: M, onRowSelectionChange: N, onSort: P, pageSizeOptions: F, panel: I, prevDetailPanelRowLabel: L = "Previous row", renderDetailPanel: R, renderDetailPanelFooter: z, rowData: B, selectAllLabel: V = "Select all rows", selectedRows: H, sortKey: U, sortOrder: ee, totalItemCount: W, ...G }) => {
11340
+ let K = "pds-table", q = u(), te = u(), ne = P !== void 0, re = A !== void 0, ie = j !== void 0, ae = re || T !== void 0 || F !== void 0, [J, Y] = h({
11318
11341
  key: a ?? "",
11319
11342
  order: a === void 0 ? "asc" : o
11320
- }), [oe, X] = h(1), [se, ce] = h(T ?? F?.[0] ?? 10), [le, ue] = h(null), de = C ?? le, fe = !!de && !!R, pe = ne ? T ?? 10 : se, me = (e) => {
11321
- re ? j(e) : ce(e), ne || X(1);
11343
+ }), [oe, X] = h(1), [se, ce] = h(T ?? F?.[0] ?? 10), [le, ue] = h(null), de = C ?? le, fe = !!de && !!R, pe = re ? T ?? 10 : se, me = (e) => {
11344
+ ie ? j(e) : ce(e), re || X(1);
11322
11345
  };
11323
11346
  l(() => {
11324
- ne || X(1);
11325
- }, [B.length, ne]), l(() => {
11347
+ re || X(1);
11348
+ }, [B.length, re]), l(() => {
11326
11349
  process.env.NODE_ENV !== "production" && i !== void 0 && !A && console.warn("[Table] `currentPage` was provided without `onPageChange`. Controlled pagination requires both props. The table is running in uncontrolled mode.");
11327
11350
  }, []);
11328
11351
  let he = N !== void 0, ge = H !== void 0, [_e, ve] = h(/* @__PURE__ */ new Set()), ye = ge ? new Set(H) : _e, be = p(() => new Map(B.map((e, t) => [e, t])), [B]), xe = (e, t) => b ? b(e) : String(be.get(e) ?? t), Se = p(() => B.findIndex((e, t) => (b ? b(e) : String(be.get(e) ?? t)) === de), [
@@ -11342,37 +11365,37 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11342
11365
  if (Se >= B.length - 1) return;
11343
11366
  let e = B[Se + 1], t = xe(e, Se + 1);
11344
11367
  C === void 0 && ue(t), M?.(e, t), O?.(e, t);
11345
- }, Oe = te ? U ?? "" : ae.key, ke = te ? W ?? "asc" : ae.order, Ae = p(() => {
11368
+ }, Oe = ne ? U ?? "" : J.key, ke = ne ? ee ?? "asc" : J.order, Ae = p(() => {
11346
11369
  if (w) return [];
11347
11370
  let e = B;
11348
- if (!te && ae.key !== "") {
11349
- let t = r.find((e) => e.id === ae.key)?.sortKey ?? ae.key;
11371
+ if (!ne && J.key !== "") {
11372
+ let t = r.find((e) => e.id === J.key)?.sortKey ?? J.key;
11350
11373
  e = [...e].sort((e, n) => {
11351
11374
  let r = String(e[t]).localeCompare(String(n[t]));
11352
- return ae.order === "asc" ? r : -r;
11375
+ return J.order === "asc" ? r : -r;
11353
11376
  });
11354
11377
  }
11355
- if (!ne && ie && pe) {
11378
+ if (!re && ae && pe) {
11356
11379
  let t = (oe - 1) * pe;
11357
11380
  e = e.slice(t, t + pe);
11358
11381
  }
11359
11382
  return e;
11360
11383
  }, [
11361
11384
  B,
11362
- ae,
11363
- te,
11385
+ J,
11364
11386
  ne,
11365
- ie,
11387
+ re,
11388
+ ae,
11366
11389
  oe,
11367
11390
  pe,
11368
11391
  w
11369
11392
  ]), je = (e) => {
11370
- te ? P(e, U === e && W === "asc" ? "desc" : "asc") : Y((t) => ({
11393
+ ne ? P(e, U === e && ee === "asc" ? "desc" : "asc") : Y((t) => ({
11371
11394
  key: e,
11372
11395
  order: t.key === e && t.order === "asc" ? "desc" : "asc"
11373
11396
  }));
11374
11397
  }, Me = (e) => Oe === e ? ke === "asc" ? "ascending" : "descending" : "none", Ne = (e, t) => {
11375
- let n = `${q}__sort-button-${t}`, r = !w && Ae.length === 0;
11398
+ let n = `${K}__sort-button-${t}`, r = !w && Ae.length === 0;
11376
11399
  if (w || r || Oe === "") return t === "top" ? `${n}--inactive` : "";
11377
11400
  let i = Oe === e;
11378
11401
  return t === "top" ? i && ke === "asc" ? "" : `${n}--inactive` : i && ke === "desc" ? `${n}--desc` : "";
@@ -11404,8 +11427,8 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11404
11427
  key: `row-${i}`,
11405
11428
  "aria-selected": a ? o : void 0,
11406
11429
  className: Z([
11407
- a ? `${q}__row--inspectable` : null,
11408
- o ? `${q}__row--inspected` : null,
11430
+ a ? `${K}__row--inspectable` : null,
11431
+ o ? `${K}__row--inspected` : null,
11409
11432
  y?.(t, i) ?? null
11410
11433
  ]),
11411
11434
  onClick: a ? () => we(t, i) : void 0,
@@ -11415,7 +11438,7 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11415
11438
  tabIndex: a ? 0 : void 0
11416
11439
  }, he && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(vr, {
11417
11440
  checked: ye.has(i),
11418
- id: `${ee}-row-${i}`,
11441
+ id: `${te}-row-${i}`,
11419
11442
  label: x(t, n + 1),
11420
11443
  onChange: () => Le(i),
11421
11444
  showLabel: !1
@@ -11425,11 +11448,11 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11425
11448
  style: He
11426
11449
  }, /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__table-column" }, /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__table-area" }, /* @__PURE__ */ e.createElement("table", {
11427
11450
  "aria-busy": w,
11428
- className: Z([q, t]),
11429
- ...K
11451
+ className: Z([K, t]),
11452
+ ...G
11430
11453
  }, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, he && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(vr, {
11431
11454
  checked: Fe,
11432
- id: ee,
11455
+ id: te,
11433
11456
  indeterminate: Ie,
11434
11457
  label: V,
11435
11458
  onChange: Re,
@@ -11439,21 +11462,21 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11439
11462
  "aria-sort": t.sortable ? Me(t.id) : void 0
11440
11463
  }, t.sortable ? /* @__PURE__ */ e.createElement("button", {
11441
11464
  "aria-label": S(Wt(t.header)),
11442
- className: `${q}__sort-button`,
11465
+ className: `${K}__sort-button`,
11443
11466
  onClick: () => je(t.id),
11444
11467
  type: "button"
11445
11468
  }, t.header, /* @__PURE__ */ e.createElement("span", {
11446
11469
  "aria-hidden": "true",
11447
- className: `${q}__sort-icons`
11448
- }, /* @__PURE__ */ e.createElement("span", { className: Z([`${q}__sort-button-top`, Ne(t.id, "top")]) }, /* @__PURE__ */ e.createElement(Q, {
11470
+ className: `${K}__sort-icons`
11471
+ }, /* @__PURE__ */ e.createElement("span", { className: Z([`${K}__sort-button-top`, Ne(t.id, "top")]) }, /* @__PURE__ */ e.createElement(Q, {
11449
11472
  iconName: "caretUp",
11450
11473
  size: "m"
11451
- })), /* @__PURE__ */ e.createElement("span", { className: Z([`${q}__sort-button-bottom`, Ne(t.id, "bottom")]) }, /* @__PURE__ */ e.createElement(Q, {
11474
+ })), /* @__PURE__ */ e.createElement("span", { className: Z([`${K}__sort-button-bottom`, Ne(t.id, "bottom")]) }, /* @__PURE__ */ e.createElement(Q, {
11452
11475
  iconName: "caretDown",
11453
11476
  size: "m"
11454
- })))) : /* @__PURE__ */ e.createElement("span", null, t.header))))), /* @__PURE__ */ e.createElement("tbody", null, w ? Array.from({ length: E }, (e, t) => ze(t)) : Ae.length === 0 ? Be() : Ae.map((e, t) => Ve(e, t))))), ie && !w && (ne || B.length > 0) && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination" }, F && F.length > 0 && /* @__PURE__ */ e.createElement(Fn, {
11477
+ })))) : /* @__PURE__ */ e.createElement("span", null, t.header))))), /* @__PURE__ */ e.createElement("tbody", null, w ? Array.from({ length: E }, (e, t) => ze(t)) : Ae.length === 0 ? Be() : Ae.map((e, t) => Ve(e, t))))), ae && !w && (re || B.length > 0) && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination" }, F && F.length > 0 && /* @__PURE__ */ e.createElement(Fn, {
11455
11478
  autoWidth: !0,
11456
- id: J,
11479
+ id: q,
11457
11480
  label: "Rows per page",
11458
11481
  onOptionSelect: (e) => me(Number(e.value)),
11459
11482
  options: F.map((e) => ({
@@ -11464,10 +11487,10 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11464
11487
  size: "s",
11465
11488
  value: String(pe)
11466
11489
  }), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(Li, {
11467
- currentPage: ne ? i ?? 1 : oe,
11490
+ currentPage: re ? i ?? 1 : oe,
11468
11491
  itemsPerPage: pe,
11469
- onPageChange: ne ? A : X,
11470
- totalItemCount: ne ? G ?? 0 : B.length
11492
+ onPageChange: re ? A : X,
11493
+ totalItemCount: re ? W ?? 0 : B.length
11471
11494
  }))), _ && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__footer" }, _)), R && /* @__PURE__ */ e.createElement("div", { className: Z(["pds-table-wrapper__detail-panel", fe ? "pds-table-wrapper__detail-panel--open" : null]) }, /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__detail-panel-upper" }, /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__detail-panel-header" }, c && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__detail-panel-title" }, c), /* @__PURE__ */ e.createElement(Xt, {
11472
11495
  ariaLabel: n,
11473
11496
  onClick: Te,
@@ -11816,31 +11839,33 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11816
11839
  window.removeEventListener("resize", n);
11817
11840
  };
11818
11841
  }, []), n;
11819
- }, Ba = ({ children: t, className: n, drawerContent: r, drawerProps: a, hasDrawerToggle: o, hasSidebarToggle: c, isDrawerOpen: u = !1, isSidebarCollapsed: d, keyboardShortcuts: p = !0, labels: g = {
11820
- collapseSidebar: "Press [ to collapse sidebar",
11821
- drawerToggle: "Open account menu",
11822
- expandSidebar: "Press ] to expand sidebar"
11823
- }, mainBackground: _, mainContentElement: v = "main", mainContentMaxWidth: y = 1600, mainContentProps: b, onDrawerToggle: x, onSidebarToggle: S, scrollableContent: C, sidebarBackground: w, sidebarCollapsedWidth: T = 4, sidebarExpandedWidth: E = "15%", sidebarExpandedWidthMax: D = 18, sidebarExpandedWidthMin: O = 14.75, sidebarProps: k, ...A }) => {
11842
+ }, Ba = ({ children: t, className: n, drawerContent: r, drawerProps: a, hasDrawerToggle: o, hasSidebarToggle: c, isDrawerOpen: u = !1, isSidebarCollapsed: d, keyboardShortcuts: p = !0, labels: g, mainBackground: _, mainContentElement: v = "main", mainContentMaxWidth: y = 1600, mainContentProps: b, onDrawerToggle: x, onSidebarToggle: S, scrollableContent: C, sidebarBackground: w, sidebarCollapsedWidth: T = 4, sidebarExpandedWidth: E = "15%", sidebarExpandedWidthMax: D = 18, sidebarExpandedWidthMin: O = 14.75, sidebarProps: k, ...A }) => {
11824
11843
  let [j, M] = h(d || !1);
11825
11844
  l(() => {
11826
11845
  M(d || !1);
11827
11846
  }, [d]);
11828
- let N = "pds-app-layout", P = C ? `${N}--scrollable` : null, F = y == null ? void 0 : typeof y == "number" ? `${y}px` : y, I = j ? `${T}rem` : `${E}`, L = {
11847
+ let N = "pds-app-layout", P = C ? `${N}--scrollable` : null, F = {
11848
+ collapseSidebar: "Press [ to collapse sidebar",
11849
+ drawerToggle: "Open account menu",
11850
+ expandSidebar: "Press ] to expand sidebar",
11851
+ skipToContent: "Skip to main content",
11852
+ ...g
11853
+ }, I = b?.id ?? "app-layout-main", L = y == null ? void 0 : typeof y == "number" ? `${y}px` : y, R = j ? `${T}rem` : `${E}`, z = {
11829
11854
  backgroundColor: w || void 0,
11830
11855
  maxWidth: j ? void 0 : `${D}rem`,
11831
11856
  minWidth: j ? `${T}rem` : `${O}rem`,
11832
- width: I
11833
- }, R = m(!1), z = () => {
11834
- if (R.current = !1, S) {
11857
+ width: R
11858
+ }, B = m(!1), V = () => {
11859
+ if (B.current = !1, S) {
11835
11860
  S();
11836
11861
  return;
11837
11862
  }
11838
11863
  M(!j);
11839
- }, B = za();
11864
+ }, H = za();
11840
11865
  l(() => {
11841
- B === "sm" && !j ? (R.current = !0, S ? S() : M(!0)) : B !== "sm" && R.current && (R.current = !1, S ? S() : M(!1));
11842
- }, [B]);
11843
- let V = s(() => {
11866
+ H === "sm" && !j ? (B.current = !0, S ? S() : M(!0)) : H !== "sm" && B.current && (B.current = !1, S ? S() : M(!1));
11867
+ }, [H]);
11868
+ let U = s(() => {
11844
11869
  let e = document.activeElement;
11845
11870
  if (!e) return !1;
11846
11871
  let t = e.tagName.toLowerCase();
@@ -11857,62 +11882,64 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11857
11882
  ].includes(t);
11858
11883
  }
11859
11884
  return e.isContentEditable;
11860
- }, []), H = p && c;
11885
+ }, []), ee = p && c;
11861
11886
  bt("[", (e) => {
11862
- V() || (e.preventDefault(), j || z());
11863
- }, { enabled: H }), bt("]", (e) => {
11864
- V() || (e.preventDefault(), j && z());
11865
- }, { enabled: H });
11866
- let U = m(null);
11887
+ U() || (e.preventDefault(), j || V());
11888
+ }, { enabled: ee }), bt("]", (e) => {
11889
+ U() || (e.preventDefault(), j && V());
11890
+ }, { enabled: ee });
11891
+ let W = m(null);
11867
11892
  f(() => {
11868
11893
  let e = () => {
11869
- if (!U.current) return;
11870
- let e = Math.max(0, Math.round(U.current.getBoundingClientRect().top + window.scrollY));
11871
- U.current.style.setProperty("--pds-app-layout-top-offset", `${e}px`);
11894
+ if (!W.current) return;
11895
+ let e = Math.max(0, Math.round(W.current.getBoundingClientRect().top + window.scrollY));
11896
+ W.current.style.setProperty("--pds-app-layout-top-offset", `${e}px`);
11872
11897
  };
11873
11898
  e();
11874
11899
  let t = new ResizeObserver(e);
11875
11900
  return t.observe(document.documentElement), () => t.disconnect();
11876
11901
  }, []);
11877
- let W = Ie(t), G = W.__unslotted, K = W.header, q = W.footer, J = W.sidebar, ee = W.identity, te = W["content-top"], ne = W.navigation, re = W["content-bottom"], ie = ee || te || ne || re, ae = ie ? /* @__PURE__ */ e.createElement(e.Fragment, null, (ee || o) && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-identity` }, ee, o && !j && /* @__PURE__ */ e.createElement(Jt, {
11902
+ let G = Ie(t), K = G.__unslotted, q = G.header, te = G.footer, ne = G.sidebar, re = G.identity, ie = G["content-top"], ae = G.navigation, J = G["content-bottom"], Y = re || ie || ae || J, oe = Y ? /* @__PURE__ */ e.createElement(e.Fragment, null, (re || o) && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-identity` }, re, o && !j && /* @__PURE__ */ e.createElement(Jt, {
11878
11903
  hasBorder: !0,
11879
- ariaLabel: g.drawerToggle,
11904
+ ariaLabel: F.drawerToggle,
11880
11905
  className: `${N}__drawer-toggle`,
11881
11906
  iconName: "sidebar",
11882
11907
  onClick: x,
11883
11908
  size: "s"
11884
- })), te && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-content-top` }, te), ne && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-navigation` }, ne), re && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-content-bottom` }, re)) : J, Y = i(v, {
11909
+ })), ie && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-content-top` }, ie), ae && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-navigation` }, ae), J && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-content-bottom` }, J)) : ne, X = i(v, {
11885
11910
  ...b,
11886
11911
  className: Z([`${N}__main`, b?.className]),
11912
+ id: I,
11913
+ tabIndex: b?.tabIndex ?? -1,
11887
11914
  style: {
11888
11915
  ...b?.style,
11889
11916
  backgroundColor: _ || void 0
11890
11917
  }
11891
11918
  }, /* @__PURE__ */ e.createElement("div", {
11892
11919
  className: `${N}__main-inner`,
11893
- style: { maxWidth: F }
11894
- }, G)), oe = q ? /* @__PURE__ */ e.createElement("div", {
11920
+ style: { maxWidth: L }
11921
+ }, K)), se = te ? /* @__PURE__ */ e.createElement("div", {
11895
11922
  className: `${N}__content-column`,
11896
11923
  style: { backgroundColor: _ || void 0 }
11897
- }, Y, /* @__PURE__ */ e.createElement("div", { className: `${N}__footer` }, /* @__PURE__ */ e.createElement("div", {
11924
+ }, X, /* @__PURE__ */ e.createElement("div", { className: `${N}__footer` }, /* @__PURE__ */ e.createElement("div", {
11898
11925
  className: `${N}__footer-inner`,
11899
- style: { maxWidth: F }
11900
- }, q))) : Y, X = /* @__PURE__ */ e.createElement(e.Fragment, null, (J || ie) && /* @__PURE__ */ e.createElement("div", {
11926
+ style: { maxWidth: L }
11927
+ }, te))) : X, ce = /* @__PURE__ */ e.createElement(e.Fragment, null, (ne || Y) && /* @__PURE__ */ e.createElement("div", {
11901
11928
  ...k,
11902
11929
  className: Z([
11903
11930
  `${N}__sidebar`,
11904
11931
  j ? `${N}__sidebar--collapsed` : null,
11905
11932
  k?.className
11906
11933
  ]),
11907
- style: L
11934
+ style: z
11908
11935
  }, c && /* @__PURE__ */ e.createElement(xt, {
11909
11936
  className: `${N}__sidebar-toggle-tooltip`,
11910
- content: j ? g.expandSidebar : g.collapseSidebar,
11937
+ content: j ? F.expandSidebar : F.collapseSidebar,
11911
11938
  customTrigger: /* @__PURE__ */ e.createElement("button", {
11912
11939
  "aria-expanded": !j,
11913
- "aria-label": j ? g.expandSidebar : g.collapseSidebar,
11940
+ "aria-label": j ? F.expandSidebar : F.collapseSidebar,
11914
11941
  className: `${N}__sidebar-toggle-button`,
11915
- onClick: z,
11942
+ onClick: V,
11916
11943
  type: "button"
11917
11944
  }, /* @__PURE__ */ e.createElement("span", { className: `${N}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(Q, {
11918
11945
  iconName: "angleLeft",
@@ -11924,17 +11951,20 @@ var _a = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11924
11951
  crossAxis: -96
11925
11952
  },
11926
11953
  preferredPlacement: "right-end"
11927
- }), /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-inner` }, ae)), oe);
11954
+ }), /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-inner` }, oe)), se);
11928
11955
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
11929
- ref: U,
11956
+ ref: W,
11930
11957
  className: Z([
11931
11958
  N,
11932
11959
  P,
11933
- K ? `${N}--has-header` : null,
11960
+ q ? `${N}--has-header` : null,
11934
11961
  n ?? ""
11935
11962
  ]),
11936
11963
  ...A
11937
- }, K ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, K), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, X)) : X), o && /* @__PURE__ */ e.createElement(ji, {
11964
+ }, /* @__PURE__ */ e.createElement(zr, {
11965
+ destination: I,
11966
+ text: F.skipToContent
11967
+ }), q ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, q), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, ce)) : ce), o && /* @__PURE__ */ e.createElement(ji, {
11938
11968
  ...a,
11939
11969
  isOpen: u,
11940
11970
  placement: "left",