@pantheon-systems/pds-toolkit-react 2.0.0-alpha.58 → 2.0.0-alpha.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2,9 +2,9 @@ import e, { Children as t, cloneElement as n, createContext as r, createElement
2
2
  import _ from "hash-sum";
3
3
  import { FloatingArrow as v, FloatingFocusManager as y, FloatingOverlay as b, FloatingPortal as x, arrow as S, autoUpdate as C, flip as w, offset as T, safePolygon as E, shift as D, size as O, useClick as k, useDismiss as A, useFloating as j, useFocus as M, useHover as N, useId as P, useInteractions as F, useListNavigation as I, useRole as L, useTransitionStyles as R, useTypeahead as z } from "@floating-ui/react";
4
4
  import { useHotkeys as B } from "react-hotkeys-hook";
5
- import { Bar as V, BarChart as H, CartesianGrid as U, Cell as ee, Line as W, LineChart as G, Pie as te, PieChart as K, Rectangle as ne, ReferenceLine as re, ResponsiveContainer as ie, Tooltip as q, XAxis as ae, YAxis as oe } from "recharts";
6
- import { CodeBlock as J } from "react-code-block";
7
- import { useCombobox as Y, useMultipleSelection as X } from "downshift";
5
+ import { Bar as V, BarChart as H, CartesianGrid as U, Cell as W, Line as G, LineChart as K, Pie as ee, PieChart as q, Rectangle as te, ReferenceLine as ne, ResponsiveContainer as re, Tooltip as J, XAxis as ie, YAxis as ae } from "recharts";
6
+ import { CodeBlock as Y } from "react-code-block";
7
+ import { useCombobox as oe, useMultipleSelection as X } from "downshift";
8
8
  import { format as se } from "date-fns";
9
9
  import { DayPicker as ce } from "react-day-picker";
10
10
  import { isSafari as le } from "react-device-detect";
@@ -3544,12 +3544,12 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
3544
3544
  return e.forEach((t, o) => {
3545
3545
  t === i ? (n.push(a), a = [], a.push(t), i = r.shift()) : (a.push(t), o + 1 === e.length && n.push(a));
3546
3546
  }), n.filter((e) => e.length > 0);
3547
- }, H, U = u === "m" ? "s" : "xs", ee = f ? /* @__PURE__ */ e.createElement(e.Fragment, null, s, /* @__PURE__ */ e.createElement(an, {
3547
+ }, H, U = u === "m" ? "s" : "xs", W = f ? /* @__PURE__ */ e.createElement(e.Fragment, null, s, /* @__PURE__ */ e.createElement(an, {
3548
3548
  className: "pds-button__tally",
3549
3549
  label: f.label,
3550
3550
  size: U,
3551
3551
  type: f.type
3552
- })) : s, W = f ? /* @__PURE__ */ e.createElement("span", { className: `${j}__accordion-label` }, s, /* @__PURE__ */ e.createElement(an, {
3552
+ })) : s, G = f ? /* @__PURE__ */ e.createElement("span", { className: `${j}__accordion-label` }, s, /* @__PURE__ */ e.createElement(an, {
3553
3553
  className: `${j}__tally`,
3554
3554
  label: f.label,
3555
3555
  size: "s",
@@ -3566,7 +3566,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
3566
3566
  iconName: "angleDown",
3567
3567
  id: M,
3568
3568
  isSplitButton: o,
3569
- label: ee,
3569
+ label: W,
3570
3570
  size: u,
3571
3571
  statusDot: d,
3572
3572
  type: "button",
@@ -3591,18 +3591,18 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
3591
3591
  ...C({ onClick: L })
3592
3592
  });
3593
3593
  }
3594
- let G = i ? /* @__PURE__ */ e.createElement("span", { className: `${j}__icon-label` }, /* @__PURE__ */ e.createElement(Q, { iconName: r }), " ", s) : W, te = T ? `${j}--expanded` : null;
3594
+ let K = i ? /* @__PURE__ */ e.createElement("span", { className: `${j}__icon-label` }, /* @__PURE__ */ e.createElement(Q, { iconName: r }), " ", s) : G, ee = T ? `${j}--expanded` : null;
3595
3595
  return /* @__PURE__ */ e.createElement("span", {
3596
3596
  className: Z([
3597
3597
  j,
3598
- te,
3598
+ ee,
3599
3599
  t
3600
3600
  ]),
3601
3601
  "data-testid": p,
3602
3602
  ..._
3603
3603
  }, A ? /* @__PURE__ */ e.createElement(An, {
3604
3604
  disabled: n,
3605
- label: G
3605
+ label: K
3606
3606
  }, /* @__PURE__ */ e.createElement("ul", {
3607
3607
  className: `${j}__mobile-menu`,
3608
3608
  role: "menu"
@@ -4176,25 +4176,25 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4176
4176
  }, message: d, onBlur: f, onFocus: p, onOptionSelect: m, options: g, required: _ = !1, showLabel: v = !0, showSelectedIcon: y = !0, size: b = "s", tooltipText: x = null, validationMessage: S, validationStatus: C, value: w, ...T }) => {
4177
4177
  let E = Bt(s), D = "pds-select", O = t ? `${D}--auto-width` : null, k = b === "s" ? null : `${D}--${b}`, A = i ? $.disabled : null, j = _ && !i ? $.required : null, M = C === "error" ? $.error : null, N = C === "success" ? $.success : null, P = null;
4178
4178
  C === "error" && (P = "error"), C === "success" && (P = "success");
4179
- let F = S || d, I = w !== void 0, L = r !== void 0, R = ((e) => e.reduce((e, t) => Zt(t) ? [...e, ...t.options] : [...e, t], []))(g), z = (e) => R.findIndex((t) => t.value === e), B = I && z(w) >= 0 ? z(w) : null, V = L ? z(r) : null, [H, U] = h((B || V) ?? null), { activeIndex: ee, floatingStyles: W, getFloatingProps: G, getItemProps: te, getReferenceProps: K, isMounted: ne, listRef: re, refs: ie, setIsOpen: q, transitionStyles: ae } = _n({
4179
+ let F = S || d, I = w !== void 0, L = r !== void 0, R = ((e) => e.reduce((e, t) => Zt(t) ? [...e, ...t.options] : [...e, t], []))(g), z = (e) => R.findIndex((t) => t.value === e), B = I && z(w) >= 0 ? z(w) : null, V = L ? z(r) : null, [H, U] = h((B || V) ?? null), { activeIndex: W, floatingStyles: G, getFloatingProps: K, getItemProps: ee, getReferenceProps: q, isMounted: te, listRef: ne, refs: re, setIsOpen: J, transitionStyles: ie } = _n({
4180
4180
  enableClick: !i,
4181
4181
  enableTypeahead: !0,
4182
4182
  role: "listbox",
4183
4183
  selectedIndex: H,
4184
4184
  variant: "input"
4185
- }), oe = H === null ? void 0 : R[H]?.label, J = H === null ? void 0 : R[H]?.icon, Y = H === null ? void 0 : R[H]?.value, X = (e) => {
4185
+ }), ae = H === null ? void 0 : R[H]?.label, Y = H === null ? void 0 : R[H]?.icon, oe = H === null ? void 0 : R[H]?.value, X = (e) => {
4186
4186
  let t = R[e];
4187
- I || (U(e), q(!1)), m && m(t);
4187
+ I || (U(e), J(!1)), m && m(t);
4188
4188
  };
4189
4189
  l(() => {
4190
- I && (U(z(w)), q(!1));
4190
+ I && (U(z(w)), J(!1));
4191
4191
  }, [w]);
4192
4192
  let se = () => {
4193
- f && f(Y);
4193
+ f && f(oe);
4194
4194
  }, ce = () => {
4195
- p && p(Y);
4195
+ p && p(oe);
4196
4196
  }, le = () => {
4197
- ie.reference.current.focus();
4197
+ re.reference.current.focus();
4198
4198
  }, ue = (t, n) => t === "google" || t === "microsoft" ? /* @__PURE__ */ e.createElement(Hn, {
4199
4199
  className: n,
4200
4200
  platformType: t,
@@ -4212,17 +4212,17 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4212
4212
  return /* @__PURE__ */ e.createElement(Qt, {
4213
4213
  key: r,
4214
4214
  ref: (e) => {
4215
- re.current[r] = e;
4215
+ ne.current[r] = e;
4216
4216
  },
4217
4217
  "aria-disabled": t?.disabled,
4218
- "aria-selected": r === H && r === ee,
4219
- tabIndex: r === ee ? 0 : -1,
4220
- ...!t?.disabled && te({
4218
+ "aria-selected": r === H && r === W,
4219
+ tabIndex: r === W ? 0 : -1,
4220
+ ...!t?.disabled && ee({
4221
4221
  onClick() {
4222
4222
  X(r);
4223
4223
  },
4224
4224
  onKeyDown(e) {
4225
- e.key === "Enter" && (e.preventDefault(), X(r), ie.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ie.reference.current.focus());
4225
+ e.key === "Enter" && (e.preventDefault(), X(r), re.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), re.reference.current.focus());
4226
4226
  }
4227
4227
  })
4228
4228
  }, /* @__PURE__ */ e.createElement("span", { className: `${D}__option-label` }, t.icon && ue(t.icon, `${D}__option-icon`), t.label), y && H === r && /* @__PURE__ */ e.createElement(On, null));
@@ -4236,17 +4236,17 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4236
4236
  return /* @__PURE__ */ e.createElement(Qt, {
4237
4237
  key: r,
4238
4238
  ref: (e) => {
4239
- re.current[r] = e;
4239
+ ne.current[r] = e;
4240
4240
  },
4241
4241
  "aria-disabled": t?.disabled,
4242
- "aria-selected": r === H && r === ee,
4243
- tabIndex: r === ee ? 0 : -1,
4244
- ...!t?.disabled && te({
4242
+ "aria-selected": r === H && r === W,
4243
+ tabIndex: r === W ? 0 : -1,
4244
+ ...!t?.disabled && ee({
4245
4245
  onClick() {
4246
4246
  X(r);
4247
4247
  },
4248
4248
  onKeyDown(e) {
4249
- e.key === "Enter" && (e.preventDefault(), X(r), ie.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ie.reference.current.focus());
4249
+ e.key === "Enter" && (e.preventDefault(), X(r), re.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), re.reference.current.focus());
4250
4250
  }
4251
4251
  })
4252
4252
  }, /* @__PURE__ */ e.createElement("span", { className: `${D}__option-label` }, t.icon && ue(t.icon, `${D}__option-icon`), t.label), y && H === r && /* @__PURE__ */ e.createElement(On, null));
@@ -4283,29 +4283,29 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4283
4283
  showLabel: v,
4284
4284
  tooltipText: x
4285
4285
  }), /* @__PURE__ */ e.createElement("span", {
4286
- ref: ie.setReference,
4286
+ ref: re.setReference,
4287
4287
  "aria-autocomplete": "none",
4288
4288
  "aria-labelledby": `${o}-label`,
4289
4289
  className: `${D}__input-wrapper`,
4290
4290
  id: o,
4291
4291
  tabIndex: 0,
4292
- ...K({
4292
+ ...q({
4293
4293
  onClick: le,
4294
4294
  onBlur: se,
4295
4295
  onFocus: ce
4296
4296
  })
4297
- }, P && /* @__PURE__ */ e.createElement(Kt, { variant: P }), /* @__PURE__ */ e.createElement("span", { className: `${D}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${D}__option-text` }, (J || !oe && a) && ue(J || a, `${D}__icon`), /* @__PURE__ */ e.createElement("span", { className: `${D}__option-label-text` }, oe ?? u.selectOptionText)), /* @__PURE__ */ e.createElement(Q, {
4297
+ }, P && /* @__PURE__ */ e.createElement(Kt, { variant: P }), /* @__PURE__ */ e.createElement("span", { className: `${D}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${D}__option-text` }, (Y || !ae && a) && ue(Y || a, `${D}__icon`), /* @__PURE__ */ e.createElement("span", { className: `${D}__option-label-text` }, ae ?? u.selectOptionText)), /* @__PURE__ */ e.createElement(Q, {
4298
4298
  className: `${D}__trigger-icon`,
4299
4299
  iconName: "angleDown"
4300
- }))), ne && /* @__PURE__ */ e.createElement("div", {
4301
- ref: ie.setFloating,
4300
+ }))), te && /* @__PURE__ */ e.createElement("div", {
4301
+ ref: re.setFloating,
4302
4302
  className: `pds-dropdown__panel ${D}__dropdown`,
4303
4303
  style: {
4304
- ...W,
4304
+ ...G,
4305
4305
  zIndex: "var(--pds-z-index-dropdown)"
4306
4306
  },
4307
- ...G()
4308
- }, /* @__PURE__ */ e.createElement("div", { style: { ...ae } }, /* @__PURE__ */ e.createElement("ul", {
4307
+ ...K()
4308
+ }, /* @__PURE__ */ e.createElement("div", { style: { ...ie } }, /* @__PURE__ */ e.createElement("ul", {
4309
4309
  className: `${D}__options`,
4310
4310
  role: "group"
4311
4311
  }, de(g)))), F && /* @__PURE__ */ e.createElement(Wt, {
@@ -4617,7 +4617,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4617
4617
  let t = Math.abs(e);
4618
4618
  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);
4619
4619
  }, _r = ({ 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: S, showTooltip: E, timePeriodOptions: O, tooltipContent: k, variant: A = "stacked", xAxisLabel: M, xAxisTickInterval: N, yAxisDomain: P, yAxisFormatter: F = gr, yAxisLabel: I, yAxisTickInterval: L, ...z }) => {
4620
- let { accessibleTableDescription: B = "Bar chart data", emptyStateHeading: ee = "No data available", emptyStateMessage: W, legendTableHeader: G, loadingLabel: te = "Loading chart data" } = d, K = m(null), re = tr(a, sr(K, a)), J = n ?? (u ? 60 : 360), Y = r ?? (u ? 60 : void 0), X = x ?? !u, se = b ?? !u, ce = S ?? !u, le = E ?? !u, ue = y ?? !0, [de, fe] = h(null), pe = m(de);
4620
+ let { accessibleTableDescription: B = "Bar chart data", emptyStateHeading: W = "No data available", emptyStateMessage: G, legendTableHeader: K, loadingLabel: ee = "Loading chart data" } = d, q = m(null), ne = tr(a, sr(q, a)), Y = n ?? (u ? 60 : 360), oe = r ?? (u ? 60 : void 0), X = x ?? !u, se = b ?? !u, ce = S ?? !u, le = E ?? !u, ue = y ?? !0, [de, fe] = h(null), pe = m(de);
4621
4621
  de && (pe.current = de);
4622
4622
  let me = m({ getBoundingClientRect: () => ({
4623
4623
  bottom: 0,
@@ -4665,36 +4665,36 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4665
4665
  fe(null);
4666
4666
  }, []);
4667
4667
  if (c) return /* @__PURE__ */ e.createElement("div", {
4668
- ref: K,
4668
+ ref: q,
4669
4669
  "aria-busy": "true",
4670
- "aria-label": te,
4670
+ "aria-label": ee,
4671
4671
  className: Z([
4672
4672
  xe,
4673
4673
  `${xe}--loading`,
4674
4674
  i ?? ""
4675
4675
  ]),
4676
- style: { maxWidth: Y },
4676
+ style: { maxWidth: oe },
4677
4677
  ...z
4678
4678
  }, /* @__PURE__ */ e.createElement(hr, {
4679
- height: J,
4679
+ height: Y,
4680
4680
  legendVariant: p,
4681
4681
  showLegend: ce
4682
4682
  }));
4683
4683
  if (!o || o.length === 0) return /* @__PURE__ */ e.createElement("div", {
4684
- ref: K,
4684
+ ref: q,
4685
4685
  className: Z([
4686
4686
  xe,
4687
4687
  `${xe}--empty`,
4688
4688
  i ?? ""
4689
4689
  ]),
4690
4690
  style: {
4691
- height: J,
4692
- maxWidth: Y
4691
+ height: Y,
4692
+ maxWidth: oe
4693
4693
  },
4694
4694
  ...z
4695
4695
  }, /* @__PURE__ */ e.createElement(Zn, {
4696
- heading: ee,
4697
- message: W
4696
+ heading: W,
4697
+ message: G
4698
4698
  }));
4699
4699
  let Te = f === "vertical", Ee = (e) => A === "grouped" || A === "stacked" && e === v.length - 1 ? Te ? [
4700
4700
  0,
@@ -4708,7 +4708,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4708
4708
  0
4709
4709
  ] : 0, De = (t) => ({ fill: n, height: r, radius: i, width: a, x: o, y: s }) => {
4710
4710
  let c = t > 0, l = t < v.length - 1;
4711
- return /* @__PURE__ */ e.createElement("g", null, /* @__PURE__ */ e.createElement(ne, {
4711
+ return /* @__PURE__ */ e.createElement("g", null, /* @__PURE__ */ e.createElement(te, {
4712
4712
  fill: n,
4713
4713
  height: r,
4714
4714
  radius: i,
@@ -4746,9 +4746,9 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4746
4746
  })));
4747
4747
  };
4748
4748
  return /* @__PURE__ */ e.createElement("div", {
4749
- ref: K,
4749
+ ref: q,
4750
4750
  className: Z([xe, i ?? ""]),
4751
- style: Y ? { maxWidth: Y } : void 0,
4751
+ style: oe ? { maxWidth: oe } : void 0,
4752
4752
  ...z
4753
4753
  }, !u && O && O.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${xe}__header` }, /* @__PURE__ */ e.createElement($n, {
4754
4754
  autoWidth: !0,
@@ -4767,12 +4767,12 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4767
4767
  onMouseMove: le && !k ? Ce : void 0,
4768
4768
  style: {
4769
4769
  contain: "layout size",
4770
- height: J
4770
+ height: Y
4771
4771
  }
4772
- }, /* @__PURE__ */ e.createElement(ie, {
4772
+ }, /* @__PURE__ */ e.createElement(re, {
4773
4773
  debounce: 150,
4774
- height: J,
4775
- minHeight: J,
4774
+ height: Y,
4775
+ minHeight: Y,
4776
4776
  minWidth: 50,
4777
4777
  width: "100%"
4778
4778
  }, /* @__PURE__ */ e.createElement(H, {
@@ -4797,7 +4797,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4797
4797
  stroke: "var(--pds-color-border-default)",
4798
4798
  strokeDasharray: "3 3",
4799
4799
  vertical: Te
4800
- }), /* @__PURE__ */ e.createElement(ae, {
4800
+ }), /* @__PURE__ */ e.createElement(ie, {
4801
4801
  axisLine: se,
4802
4802
  dataKey: Te ? void 0 : "label",
4803
4803
  hide: !se,
@@ -4814,7 +4814,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4814
4814
  tickLine: !1,
4815
4815
  tickMargin: 10,
4816
4816
  type: Te ? "number" : "category"
4817
- }), /* @__PURE__ */ e.createElement(oe, {
4817
+ }), /* @__PURE__ */ e.createElement(ae, {
4818
4818
  axisLine: se,
4819
4819
  dataKey: Te ? "label" : void 0,
4820
4820
  domain: P,
@@ -4833,7 +4833,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4833
4833
  tickLine: !1,
4834
4834
  tickMargin: 6,
4835
4835
  type: Te ? "category" : "number"
4836
- }), le && k && /* @__PURE__ */ e.createElement(q, {
4836
+ }), le && k && /* @__PURE__ */ e.createElement(J, {
4837
4837
  content: (e) => !e.active || !e.payload?.length ? null : k({
4838
4838
  entries: e.payload.map((e) => ({
4839
4839
  color: String(e.color ?? ""),
@@ -4847,12 +4847,12 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4847
4847
  }), v.map((t, n) => /* @__PURE__ */ e.createElement(V, {
4848
4848
  key: t.dataKey,
4849
4849
  dataKey: t.dataKey,
4850
- fill: ar(n, re, t.color, nr(a, t.paletteIndex)),
4850
+ fill: ar(n, ne, t.color, nr(a, t.paletteIndex)),
4851
4851
  name: t.label,
4852
4852
  onMouseEnter: k ? void 0 : (e) => {
4853
4853
  let r = e.payload;
4854
4854
  le && r && fe({
4855
- color: ar(n, re, t.color, nr(a, t.paletteIndex)),
4855
+ color: ar(n, ne, t.color, nr(a, t.paletteIndex)),
4856
4856
  label: String(r.label ?? ""),
4857
4857
  name: t.label,
4858
4858
  value: Number(r[t.dataKey] ?? 0)
@@ -4879,8 +4879,8 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4879
4879
  ariaHidden: p === "table" && ue,
4880
4880
  data: o,
4881
4881
  series: v,
4882
- seriesColors: re,
4883
- tableHeader: G,
4882
+ seriesColors: ne,
4883
+ tableHeader: K,
4884
4884
  valueFormatter: F,
4885
4885
  variant: p
4886
4886
  }), ue && /* @__PURE__ */ e.createElement(ur, {
@@ -4895,14 +4895,14 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4895
4895
  default: return;
4896
4896
  }
4897
4897
  }, yr = ({ 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 = gr, yAxisLabel: k, yAxisTickInterval: A, ...j }) => {
4898
- 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 = tr(a, sr(L, a)), z = n ?? (c ? 60 : 360), B = r ?? (c ? 60 : void 0), V = b ?? !c, H = v ?? !c, ee = x ?? !c, te = S ?? !c, K = y ?? !c, ne = _ ?? !0, J = "pds-line-chart";
4898
+ 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 = tr(a, sr(L, a)), z = n ?? (c ? 60 : 360), B = r ?? (c ? 60 : void 0), V = b ?? !c, H = v ?? !c, W = x ?? !c, ee = S ?? !c, q = y ?? !c, te = _ ?? !0, Y = "pds-line-chart";
4899
4899
  return s ? /* @__PURE__ */ e.createElement("div", {
4900
4900
  ref: L,
4901
4901
  "aria-busy": "true",
4902
4902
  "aria-label": I,
4903
4903
  className: Z([
4904
- J,
4905
- `${J}--loading`,
4904
+ Y,
4905
+ `${Y}--loading`,
4906
4906
  i ?? ""
4907
4907
  ]),
4908
4908
  style: { maxWidth: B },
@@ -4910,12 +4910,12 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4910
4910
  }, /* @__PURE__ */ e.createElement(hr, {
4911
4911
  height: z,
4912
4912
  legendVariant: u,
4913
- showLegend: ee
4913
+ showLegend: W
4914
4914
  })) : !o || o.length === 0 ? /* @__PURE__ */ e.createElement("div", {
4915
4915
  ref: L,
4916
4916
  className: Z([
4917
- J,
4918
- `${J}--empty`,
4917
+ Y,
4918
+ `${Y}--empty`,
4919
4919
  i ?? ""
4920
4920
  ]),
4921
4921
  style: {
@@ -4928,12 +4928,12 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4928
4928
  message: P
4929
4929
  })) : /* @__PURE__ */ e.createElement("div", {
4930
4930
  ref: L,
4931
- className: Z([J, i ?? ""]),
4931
+ className: Z([Y, i ?? ""]),
4932
4932
  style: B ? { maxWidth: B } : void 0,
4933
4933
  ...j
4934
- }, !c && C && C.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${J}__header` }, /* @__PURE__ */ e.createElement($n, {
4934
+ }, !c && C && C.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${Y}__header` }, /* @__PURE__ */ e.createElement($n, {
4935
4935
  autoWidth: !0,
4936
- id: `${J}-time-period`,
4936
+ id: `${Y}-time-period`,
4937
4937
  label: "Time period",
4938
4938
  onOptionSelect: (e) => f?.(e.value),
4939
4939
  options: C.map((e) => ({
@@ -4948,13 +4948,13 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4948
4948
  contain: "layout size",
4949
4949
  height: z
4950
4950
  }
4951
- }, /* @__PURE__ */ e.createElement(ie, {
4951
+ }, /* @__PURE__ */ e.createElement(re, {
4952
4952
  debounce: 150,
4953
4953
  height: z,
4954
4954
  minHeight: z,
4955
4955
  minWidth: 50,
4956
4956
  width: "100%"
4957
- }, /* @__PURE__ */ e.createElement(G, {
4957
+ }, /* @__PURE__ */ e.createElement(K, {
4958
4958
  accessibilityLayer: !1,
4959
4959
  data: o,
4960
4960
  margin: c ? {
@@ -4971,7 +4971,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4971
4971
  }, V && /* @__PURE__ */ e.createElement(U, {
4972
4972
  stroke: "var(--pds-color-border-default)",
4973
4973
  strokeDasharray: "3 3"
4974
- }), /* @__PURE__ */ e.createElement(ae, {
4974
+ }), /* @__PURE__ */ e.createElement(ie, {
4975
4975
  axisLine: H,
4976
4976
  dataKey: "label",
4977
4977
  hide: !H,
@@ -4985,7 +4985,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4985
4985
  tick: H ? cr : !1,
4986
4986
  tickLine: !1,
4987
4987
  tickMargin: 10
4988
- }), /* @__PURE__ */ e.createElement(oe, {
4988
+ }), /* @__PURE__ */ e.createElement(ae, {
4989
4989
  axisLine: H,
4990
4990
  domain: D,
4991
4991
  hide: !H,
@@ -5001,7 +5001,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5001
5001
  tickFormatter: O,
5002
5002
  tickLine: !1,
5003
5003
  tickMargin: 6
5004
- }), te && /* @__PURE__ */ e.createElement(q, { content: (t) => {
5004
+ }), ee && /* @__PURE__ */ e.createElement(J, { content: (t) => {
5005
5005
  if (!t.active || !t.payload?.length) return null;
5006
5006
  let n = t.payload.map((e) => ({
5007
5007
  color: String(e.color ?? ""),
@@ -5019,11 +5019,11 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5019
5019
  className: "recharts-tooltip-item__color",
5020
5020
  style: { backgroundColor: t.color }
5021
5021
  }), t.name, /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, " ", ":", " "), O(t.value))));
5022
- } }), g.map((t, n) => /* @__PURE__ */ e.createElement(W, {
5022
+ } }), g.map((t, n) => /* @__PURE__ */ e.createElement(G, {
5023
5023
  key: t.dataKey,
5024
- activeDot: K ? { r: 6 } : !1,
5024
+ activeDot: q ? { r: 6 } : !1,
5025
5025
  dataKey: t.dataKey,
5026
- dot: K ? {
5026
+ dot: q ? {
5027
5027
  fill: ar(n, R, t.color, nr(a, t.paletteIndex)),
5028
5028
  r: 4,
5029
5029
  strokeWidth: 0
@@ -5035,7 +5035,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5035
5035
  type: d === "straight" ? "linear" : "monotone"
5036
5036
  })), !c && p?.map((t, n) => {
5037
5037
  let r = t.color ?? "var(--pds-color-foreground-default-secondary)";
5038
- return /* @__PURE__ */ e.createElement(re, {
5038
+ return /* @__PURE__ */ e.createElement(ne, {
5039
5039
  key: `ref-y-${n}`,
5040
5040
  label: ({ viewBox: n }) => {
5041
5041
  let r = (n?.x ?? 0) + (n?.width ?? 0) / 2, i = (n?.y ?? 0) - 8;
@@ -5055,7 +5055,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5055
5055
  });
5056
5056
  }), !c && t?.map((t, n) => {
5057
5057
  let r = t.color ?? "var(--pds-color-foreground-default-secondary)";
5058
- return /* @__PURE__ */ e.createElement(re, {
5058
+ return /* @__PURE__ */ e.createElement(ne, {
5059
5059
  key: `annotation-${n}`,
5060
5060
  label: ({ viewBox: n }) => {
5061
5061
  let r = (n?.x ?? 0) + (n?.width ?? 0) / 2, i = (n?.y ?? 0) - 8;
@@ -5073,15 +5073,15 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5073
5073
  strokeDasharray: vr(t.strokeStyle ?? "dashed"),
5074
5074
  x: t.atLabel
5075
5075
  });
5076
- })))), ee && /* @__PURE__ */ e.createElement(dr, {
5077
- ariaHidden: u === "table" && ne,
5076
+ })))), W && /* @__PURE__ */ e.createElement(dr, {
5077
+ ariaHidden: u === "table" && te,
5078
5078
  data: o,
5079
5079
  series: g,
5080
5080
  seriesColors: R,
5081
5081
  tableHeader: F,
5082
5082
  valueFormatter: O,
5083
5083
  variant: u
5084
- }), ne && /* @__PURE__ */ e.createElement(ur, {
5084
+ }), te && /* @__PURE__ */ e.createElement(ur, {
5085
5085
  data: o,
5086
5086
  description: M,
5087
5087
  series: g,
@@ -5164,13 +5164,13 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5164
5164
  margin: "0 auto",
5165
5165
  width: `min(100%, ${w}px)`
5166
5166
  }
5167
- }, /* @__PURE__ */ e.createElement(ie, {
5167
+ }, /* @__PURE__ */ e.createElement(re, {
5168
5168
  debounce: 150,
5169
5169
  height: w,
5170
5170
  minHeight: w,
5171
5171
  minWidth: 50,
5172
5172
  width: "100%"
5173
- }, /* @__PURE__ */ e.createElement(K, { accessibilityLayer: !1 }, /* @__PURE__ */ e.createElement(te, {
5173
+ }, /* @__PURE__ */ e.createElement(q, { accessibilityLayer: !1 }, /* @__PURE__ */ e.createElement(ee, {
5174
5174
  cx: "50%",
5175
5175
  cy: "50%",
5176
5176
  data: A,
@@ -5179,10 +5179,10 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5179
5179
  isAnimationActive: !s,
5180
5180
  outerRadius: "80%",
5181
5181
  stroke: "none"
5182
- }, a.map((t, n) => /* @__PURE__ */ e.createElement(ee, {
5182
+ }, a.map((t, n) => /* @__PURE__ */ e.createElement(W, {
5183
5183
  key: t.label,
5184
5184
  fill: k(n, t)
5185
- }))), D && /* @__PURE__ */ e.createElement(q, {
5185
+ }))), D && /* @__PURE__ */ e.createElement(J, {
5186
5186
  content: (t) => {
5187
5187
  if (!t.active || !t.payload?.length) return null;
5188
5188
  let n = t.payload[0], r = Number(n.value ?? 0), i = O > 0 ? Math.round(r / O * 100) : 0, a = String(n.payload?.fill ?? "");
@@ -5229,7 +5229,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5229
5229
  width: 0,
5230
5230
  x: 0,
5231
5231
  y: 0
5232
- }) }), { context: V, floatingStyles: H, refs: U, update: ee } = j({
5232
+ }) }), { context: V, floatingStyles: H, refs: U, update: W } = j({
5233
5233
  middleware: [
5234
5234
  T(8),
5235
5235
  w(),
@@ -5238,7 +5238,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5238
5238
  open: !!I,
5239
5239
  placement: "top",
5240
5240
  whileElementsMounted: C
5241
- }), { isMounted: W, styles: G } = R(V, {
5241
+ }), { isMounted: G, styles: K } = R(V, {
5242
5242
  duration: {
5243
5243
  close: 150,
5244
5244
  open: 150
@@ -5248,7 +5248,7 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5248
5248
  l(() => {
5249
5249
  U.setReference(B.current);
5250
5250
  }, [U]);
5251
- let te = s((e) => {
5251
+ let ee = s((e) => {
5252
5252
  B.current.getBoundingClientRect = () => ({
5253
5253
  bottom: e.clientY,
5254
5254
  height: 0,
@@ -5258,8 +5258,8 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5258
5258
  width: 0,
5259
5259
  x: e.clientX,
5260
5260
  y: e.clientY
5261
- }), ee();
5262
- }, [ee]), K = s(() => {
5261
+ }), W();
5262
+ }, [W]), q = s(() => {
5263
5263
  L(null);
5264
5264
  }, []);
5265
5265
  return o ? /* @__PURE__ */ e.createElement("div", {
@@ -5297,8 +5297,8 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5297
5297
  }, /* @__PURE__ */ e.createElement("div", {
5298
5298
  "aria-hidden": "true",
5299
5299
  className: `${k}__track`,
5300
- onMouseLeave: N ? K : void 0,
5301
- onMouseMove: N ? te : void 0,
5300
+ onMouseLeave: N ? q : void 0,
5301
+ onMouseMove: N ? ee : void 0,
5302
5302
  style: { height: t }
5303
5303
  }, a.map((t, n) => {
5304
5304
  let r = F(n, t), i = Math.round(t.value / P * 100);
@@ -5316,13 +5316,13 @@ var On = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5316
5316
  flex: t.value
5317
5317
  }
5318
5318
  });
5319
- })), N && W && z.current && /* @__PURE__ */ e.createElement("div", {
5319
+ })), N && G && z.current && /* @__PURE__ */ e.createElement("div", {
5320
5320
  ref: U.setFloating,
5321
5321
  className: "recharts-default-tooltip",
5322
5322
  role: "tooltip",
5323
5323
  style: {
5324
5324
  ...H,
5325
- ...G,
5325
+ ...K,
5326
5326
  pointerEvents: "none",
5327
5327
  zIndex: "var(--pds-z-index-notifications)"
5328
5328
  }
@@ -6429,17 +6429,17 @@ var Er = {
6429
6429
  variant: "reverse"
6430
6430
  }))));
6431
6431
  }
6432
- let C = /* @__PURE__ */ e.createElement(J.LineContent, null, /* @__PURE__ */ e.createElement(J.Token, null)), w = /* @__PURE__ */ e.createElement("div", { className: `${g}__line ${_}` }, /* @__PURE__ */ e.createElement(J.LineNumber, { className: `${g}__number` }), C), T = /* @__PURE__ */ e.createElement("div", { className: `${g}__line` }, /* @__PURE__ */ e.createElement("span", { className: `${g}__prompt` }, f), C);
6432
+ let C = /* @__PURE__ */ e.createElement(Y.LineContent, null, /* @__PURE__ */ e.createElement(Y.Token, null)), w = /* @__PURE__ */ e.createElement("div", { className: `${g}__line ${_}` }, /* @__PURE__ */ e.createElement(Y.LineNumber, { className: `${g}__number` }), C), T = /* @__PURE__ */ e.createElement("div", { className: `${g}__line` }, /* @__PURE__ */ e.createElement("span", { className: `${g}__prompt` }, f), C);
6433
6433
  return /* @__PURE__ */ e.createElement("div", {
6434
6434
  className: Z([g, t ?? ""]),
6435
6435
  style: v,
6436
6436
  ...h
6437
- }, c ? y : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(J, {
6437
+ }, c ? y : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Y, {
6438
6438
  code: n,
6439
6439
  language: l || "",
6440
6440
  prism: Tr,
6441
6441
  theme: Er
6442
- }, /* @__PURE__ */ e.createElement(J.Code, {
6442
+ }, /* @__PURE__ */ e.createElement(Y.Code, {
6443
6443
  className: `${g}__code`,
6444
6444
  tabIndex: 0
6445
6445
  }, a || o ? a ? w : T : C)), i && /* @__PURE__ */ e.createElement("div", { className: `${g}__copy` }, /* @__PURE__ */ e.createElement(mn, {
@@ -7026,15 +7026,15 @@ var Er = {
7026
7026
  searchShortcut: "Press / to focus the search field",
7027
7027
  triggerButton: "Toggle dropdown menu"
7028
7028
  }, loadingText: v = "Loading results...", message: y, noResultsText: b = "No results found", onBlur: x, onChange: S, onClear: E, onFocus: D, onOptionSelect: k, options: A, placeholder: M, required: N = !1, showLabel: P = !0, showUnfilteredOptions: F = !1, size: I = "s", tooltipText: L = null, validationMessage: z, validationStatus: B, value: V, ...H }, U) => {
7029
- let ee = Bt(d), W = "pds-combobox", G = I === "s" ? null : `${W}--${I}`, te = r ? $.disabled : null, K = N && !r ? $.required : null, ne = B === "error" ? $.error : null, re = B === "success" ? $.success : null, ie = null;
7030
- o && (ie = "search"), B === "error" && (ie = "error"), B === "success" && (ie = "success");
7031
- let q = z || y, ae = V !== void 0, oe = n !== void 0, J = (e) => {
7029
+ let W = Bt(d), G = "pds-combobox", K = I === "s" ? null : `${G}--${I}`, ee = r ? $.disabled : null, q = N && !r ? $.required : null, te = B === "error" ? $.error : null, ne = B === "success" ? $.success : null, re = null;
7030
+ o && (re = "search"), B === "error" && (re = "error"), B === "success" && (re = "success");
7031
+ let J = z || y, ie = V !== void 0, ae = n !== void 0, Y = (e) => {
7032
7032
  let t = A.find((t) => t.value === e);
7033
7033
  return t ? t.label : "";
7034
- }, [X, se] = h(oe ? n : void 0), [ce, le] = h(ae ? V ?? "" : oe ? J(n) : "");
7034
+ }, [X, se] = h(ae ? n : void 0), [ce, le] = h(ie ? V ?? "" : ae ? Y(n) : "");
7035
7035
  l(() => {
7036
- ae && le(V ?? "");
7037
- }, [ae, V]);
7036
+ ie && le(V ?? "");
7037
+ }, [ie, V]);
7038
7038
  let ue = m(null), de = (e) => e.map(({ label: e, optionDisplay: t, searchIndex: n, value: r, ...i }) => {
7039
7039
  let a = r || e, o = [e, r];
7040
7040
  return n && o.push(...n), {
@@ -7054,7 +7054,7 @@ var Er = {
7054
7054
  ce,
7055
7055
  F,
7056
7056
  f
7057
- ]), { getInputProps: pe, getItemProps: me, getMenuProps: he, highlightedIndex: ge, isOpen: _e, openMenu: ve, reset: ye } = Y({
7057
+ ]), { getInputProps: pe, getItemProps: me, getMenuProps: he, highlightedIndex: ge, isOpen: _e, openMenu: ve, reset: ye } = oe({
7058
7058
  id: u,
7059
7059
  inputId: `input-${u}`,
7060
7060
  items: fe,
@@ -7064,14 +7064,14 @@ var Er = {
7064
7064
  le(e ?? "");
7065
7065
  },
7066
7066
  onSelectedItemChange: ({ selectedItem: e }) => {
7067
- e && (ae || le(e.label), se(e.value), k?.(e));
7067
+ e && (ie || le(e.label), se(e.value), k?.(e));
7068
7068
  },
7069
7069
  stateReducer: (e, { changes: t, type: n }) => {
7070
- if (n === Y.stateChangeTypes.InputBlur) return {
7070
+ if (n === oe.stateChangeTypes.InputBlur) return {
7071
7071
  ...t,
7072
7072
  inputValue: e.inputValue
7073
7073
  };
7074
- if (n === Y.stateChangeTypes.InputClick) {
7074
+ if (n === oe.stateChangeTypes.InputClick) {
7075
7075
  if (F) return {
7076
7076
  ...t,
7077
7077
  isOpen: !0
@@ -7120,7 +7120,7 @@ var Er = {
7120
7120
  }, [U, Se]), Ee = () => {
7121
7121
  _e ? ye() : ve();
7122
7122
  }, De = () => {
7123
- ae || le(""), se(void 0), ye(), ue.current?.focus(), F && ve(), E?.();
7123
+ ie || le(""), se(void 0), ye(), ue.current?.focus(), F && ve(), E?.();
7124
7124
  }, Oe = (e) => {
7125
7125
  x?.(X);
7126
7126
  }, ke = (e) => {
@@ -7132,19 +7132,19 @@ var Er = {
7132
7132
  item: t,
7133
7133
  index: n
7134
7134
  })
7135
- }, /* @__PURE__ */ e.createElement("span", { className: `${W}__option-label` }, t.optionDisplay || t.label)));
7135
+ }, /* @__PURE__ */ e.createElement("span", { className: `${G}__option-label` }, t.optionDisplay || t.label)));
7136
7136
  return /* @__PURE__ */ e.createElement("div", {
7137
7137
  className: Z([
7138
7138
  $.base,
7139
- W,
7140
7139
  G,
7141
- te,
7142
7140
  K,
7141
+ ee,
7142
+ q,
7143
+ te,
7143
7144
  ne,
7144
- re,
7145
7145
  t ?? ""
7146
7146
  ]),
7147
- style: d ? ee : null,
7147
+ style: d ? W : null,
7148
7148
  ...H
7149
7149
  }, /* @__PURE__ */ e.createElement(Ut, {
7150
7150
  disabled: r,
@@ -7155,16 +7155,16 @@ var Er = {
7155
7155
  tooltipText: L
7156
7156
  }), /* @__PURE__ */ e.createElement("span", {
7157
7157
  ref: Te,
7158
- "aria-describedby": q ? `${u}__message` : null,
7158
+ "aria-describedby": J ? `${u}__message` : null,
7159
7159
  "aria-disabled": r ? !0 : null,
7160
7160
  "aria-invalid": B === "error" ? !0 : null,
7161
7161
  "aria-required": N ? !0 : null,
7162
- className: `${W}__input-wrapper`,
7162
+ className: `${G}__input-wrapper`,
7163
7163
  id: u
7164
- }, ie && /* @__PURE__ */ e.createElement(Kt, { variant: ie }), /* @__PURE__ */ e.createElement("input", {
7164
+ }, re && /* @__PURE__ */ e.createElement(Kt, { variant: re }), /* @__PURE__ */ e.createElement("input", {
7165
7165
  ref: ue,
7166
7166
  autoComplete: "off",
7167
- className: `${W}__input`,
7167
+ className: `${G}__input`,
7168
7168
  id: `input-${u}`,
7169
7169
  ...pe({
7170
7170
  "aria-label": _.inputInstructions,
@@ -7186,30 +7186,30 @@ var Er = {
7186
7186
  }), a && /* @__PURE__ */ e.createElement("button", {
7187
7187
  "aria-expanded": _e,
7188
7188
  "aria-label": _.triggerButton,
7189
- className: `${W}__trigger`,
7189
+ className: `${G}__trigger`,
7190
7190
  disabled: r,
7191
7191
  onClick: Ee,
7192
7192
  type: "button"
7193
7193
  }, /* @__PURE__ */ e.createElement(Q, {
7194
- className: `${W}__trigger-icon`,
7194
+ className: `${G}__trigger-icon`,
7195
7195
  iconName: "angleDown",
7196
7196
  size: "m"
7197
7197
  }))), /* @__PURE__ */ e.createElement("div", {
7198
7198
  ref: Se.setFloating,
7199
- className: `pds-dropdown__panel ${W}__dropdown`,
7199
+ className: `pds-dropdown__panel ${G}__dropdown`,
7200
7200
  style: Ce ? {
7201
7201
  ...xe,
7202
7202
  ...we,
7203
7203
  zIndex: "var(--pds-z-index-dropdown)"
7204
7204
  } : { display: "none" }
7205
- }, 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", {
7206
- className: `${W}__options`,
7205
+ }, 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", {
7206
+ className: `${G}__options`,
7207
7207
  ...he(),
7208
7208
  style: Ce && !f && fe.length > 0 ? void 0 : { display: "none" }
7209
- }, Ce && !f && Ae())), q && /* @__PURE__ */ e.createElement(Wt, {
7209
+ }, Ce && !f && Ae())), J && /* @__PURE__ */ e.createElement(Wt, {
7210
7210
  hasValidationMessage: !!z,
7211
7211
  id: u,
7212
- message: q,
7212
+ message: J,
7213
7213
  validationMessageHasDecorators: !1,
7214
7214
  validationStatus: B
7215
7215
  }));
@@ -7227,16 +7227,16 @@ var Er = {
7227
7227
  inputInstructions: "Type to search options",
7228
7228
  triggerButton: "Toggle dropdown menu"
7229
7229
  }, 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", ...S }) => {
7230
- let E = Bt(o), D = "pds-combobox-multi", k = x === "s" ? null : `${D}--${x}`, M = r ? $.disabled : null, N = v && !r ? $.required : null, P = y ? `${D}--show-all-tags` : null, [I, L] = h(""), [R, z] = h(a), [B, V] = h(null), [H, U] = h(!1), ee = p(() => Vr(g, R, I), [
7230
+ let E = Bt(o), D = "pds-combobox-multi", k = x === "s" ? null : `${D}--${x}`, M = r ? $.disabled : null, N = v && !r ? $.required : null, P = y ? `${D}--show-all-tags` : null, [I, L] = h(""), [R, z] = h(a), [B, V] = h(null), [H, U] = h(!1), W = p(() => Vr(g, R, I), [
7231
7231
  g,
7232
7232
  R,
7233
7233
  I
7234
- ]), W = p(() => t?.items?.map((e) => ({
7234
+ ]), G = p(() => t?.items?.map((e) => ({
7235
7235
  ...e,
7236
7236
  isAlreadySelected: R.some((t) => t.id === e.id)
7237
- })) || [], [t?.items, R]), G = (e) => {
7237
+ })) || [], [t?.items, R]), K = (e) => {
7238
7238
  z(e), f?.(e);
7239
- }, { getDropdownProps: te, getSelectedItemProps: K, removeSelectedItem: ne } = X({
7239
+ }, { getDropdownProps: ee, getSelectedItemProps: q, removeSelectedItem: te } = X({
7240
7240
  selectedItems: R,
7241
7241
  onStateChange: ({ selectedItems: e, type: t }) => {
7242
7242
  if (!r) switch (t) {
@@ -7244,13 +7244,13 @@ var Er = {
7244
7244
  case X.stateChangeTypes.SelectedItemKeyDownDelete:
7245
7245
  case X.stateChangeTypes.DropdownKeyDownBackspace:
7246
7246
  case X.stateChangeTypes.FunctionRemoveSelectedItem:
7247
- G(e || []);
7247
+ K(e || []);
7248
7248
  break;
7249
7249
  default: break;
7250
7250
  }
7251
7251
  }
7252
- }), { closeMenu: re, getInputProps: ie, getItemProps: q, getMenuProps: ae, getToggleButtonProps: oe, highlightedIndex: J, isOpen: se, openMenu: ce, selectedItem: le } = Y({
7253
- items: ee,
7252
+ }), { closeMenu: ne, getInputProps: re, getItemProps: J, getMenuProps: ie, getToggleButtonProps: ae, highlightedIndex: Y, isOpen: se, openMenu: ce, selectedItem: le } = oe({
7253
+ items: W,
7254
7254
  itemToString: (e) => e ? e.label : "",
7255
7255
  selectedItem: null,
7256
7256
  inputValue: I,
@@ -7258,8 +7258,8 @@ var Er = {
7258
7258
  stateReducer: (e, { changes: t, type: n }) => {
7259
7259
  if (r) return e;
7260
7260
  switch (n) {
7261
- case Y.stateChangeTypes.InputKeyDownEnter:
7262
- case Y.stateChangeTypes.ItemClick: return {
7261
+ case oe.stateChangeTypes.InputKeyDownEnter:
7262
+ case oe.stateChangeTypes.ItemClick: return {
7263
7263
  ...t,
7264
7264
  isOpen: !0,
7265
7265
  highlightedIndex: e.highlightedIndex
@@ -7269,16 +7269,16 @@ var Er = {
7269
7269
  },
7270
7270
  onStateChange: ({ inputValue: e, isOpen: t, selectedItem: n, type: i }) => {
7271
7271
  if (!r) switch (i) {
7272
- case Y.stateChangeTypes.InputKeyDownEnter:
7273
- case Y.stateChangeTypes.ItemClick:
7274
- case Y.stateChangeTypes.InputBlur:
7275
- n && (n.isAlreadySelected ? G(R.filter((e) => e.id !== n.id)) : G([...R, n]), L(""), V(null));
7272
+ case oe.stateChangeTypes.InputKeyDownEnter:
7273
+ case oe.stateChangeTypes.ItemClick:
7274
+ case oe.stateChangeTypes.InputBlur:
7275
+ n && (n.isAlreadySelected ? K(R.filter((e) => e.id !== n.id)) : K([...R, n]), L(""), V(null));
7276
7276
  break;
7277
- case Y.stateChangeTypes.InputChange:
7277
+ case oe.stateChangeTypes.InputChange:
7278
7278
  L(e || ""), V(null);
7279
7279
  break;
7280
- case Y.stateChangeTypes.ToggleButtonClick:
7281
- case Y.stateChangeTypes.FunctionOpenMenu:
7280
+ case oe.stateChangeTypes.ToggleButtonClick:
7281
+ case oe.stateChangeTypes.FunctionOpenMenu:
7282
7282
  t && U(!1);
7283
7283
  break;
7284
7284
  default: break;
@@ -7320,9 +7320,9 @@ var Er = {
7320
7320
  }), { getFloatingProps: he } = F([A(fe)]), ge = (e) => {
7321
7321
  if (e.stopPropagation(), r) return;
7322
7322
  let t = !H;
7323
- U(t), t && se && re();
7323
+ U(t), t && se && ne();
7324
7324
  }, _e = (e) => {
7325
- r || (e.isAlreadySelected ? G(R.filter((t) => t.id !== e.id)) : G([...R, e]));
7325
+ r || (e.isAlreadySelected ? K(R.filter((t) => t.id !== e.id)) : K([...R, e]));
7326
7326
  }, ve = () => {
7327
7327
  U(!1), t?.onClose?.();
7328
7328
  }, ye = () => {
@@ -7331,16 +7331,16 @@ var Er = {
7331
7331
  if (B === null) V(R.length - 1);
7332
7332
  else {
7333
7333
  let e = [...R];
7334
- e.splice(B, 1), G(e), V(null);
7334
+ e.splice(B, 1), K(e), V(null);
7335
7335
  }
7336
7336
  }, xe = m(!1), Se = () => {
7337
- r || (xe.current ? re() : ce());
7337
+ r || (xe.current ? ne() : ce());
7338
7338
  }, Ce = (e) => {
7339
7339
  xe.current = se, !r && e.currentTarget.setAttribute("data-focus-method", "mouse");
7340
7340
  }, we = (e) => {
7341
7341
  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()));
7342
- }, Te = ie({
7343
- ...te({ preventKeyAction: se }),
7342
+ }, Te = re({
7343
+ ...ee({ preventKeyAction: se }),
7344
7344
  disabled: r,
7345
7345
  onKeyDown: we
7346
7346
  }), Ee = R.length === 2 ? /* @__PURE__ */ e.createElement("span", { className: `${D}__counter-item` }, R.length - 1) : R.length === 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${D}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${D}__counter-item` }, R.length - 1)) : R.length > 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${D}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${D}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${D}__counter-item` }, R.length - 1)) : "";
@@ -7379,7 +7379,7 @@ var Er = {
7379
7379
  ${D}__selected-item
7380
7380
  ${n === B ? `${D}__selected-item--marked-for-deletion` : ""}
7381
7381
  `,
7382
- ...K({
7382
+ ...q({
7383
7383
  selectedItem: t,
7384
7384
  index: n
7385
7385
  }),
@@ -7388,7 +7388,7 @@ var Er = {
7388
7388
  "aria-label": `Remove ${t.label}`,
7389
7389
  className: `${D}__selected-item-remove`,
7390
7390
  onClick: (e) => {
7391
- e.stopPropagation(), ne(t);
7391
+ e.stopPropagation(), te(t);
7392
7392
  },
7393
7393
  onKeyDown: (e) => {
7394
7394
  (e.key === "Enter" || e.key === " ") && e.stopPropagation();
@@ -7412,13 +7412,13 @@ var Er = {
7412
7412
  className: `${D}__trigger ${M}`,
7413
7413
  disabled: r,
7414
7414
  type: "button",
7415
- ...oe({ onClick: (e) => e.stopPropagation() })
7415
+ ...ae({ onClick: (e) => e.stopPropagation() })
7416
7416
  }, /* @__PURE__ */ e.createElement(Q, {
7417
7417
  className: `${D}__trigger-icon`,
7418
7418
  iconName: "angleDown",
7419
7419
  size: "m"
7420
7420
  })))), /* @__PURE__ */ e.createElement("div", {
7421
- ...te(),
7421
+ ...ee(),
7422
7422
  ref: de.setFloating,
7423
7423
  className: `pds-dropdown__panel ${D}__dropdown`,
7424
7424
  style: se ? {
@@ -7433,17 +7433,17 @@ var Er = {
7433
7433
  onClick: (e) => {
7434
7434
  e.stopPropagation();
7435
7435
  }
7436
- })), se && s && /* @__PURE__ */ e.createElement("div", { className: `${D}__loading` }, u), se && !s && ee.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, d), /* @__PURE__ */ e.createElement("ul", {
7436
+ })), se && s && /* @__PURE__ */ e.createElement("div", { className: `${D}__loading` }, u), se && !s && W.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, d), /* @__PURE__ */ e.createElement("ul", {
7437
7437
  className: `${D}__dropdown-list`,
7438
- ...ae(),
7439
- style: se && !s && ee.length > 0 ? void 0 : { display: "none" }
7440
- }, se && !s && ee.map((t, n) => /* @__PURE__ */ e.createElement(Qt, {
7438
+ ...ie(),
7439
+ style: se && !s && W.length > 0 ? void 0 : { display: "none" }
7440
+ }, se && !s && W.map((t, n) => /* @__PURE__ */ e.createElement(Qt, {
7441
7441
  key: `${t.id}-${n}`,
7442
7442
  className: `${D}__dropdown-item
7443
- ${J === n ? "pds-dropdown__item--focused" : ""}
7443
+ ${Y === n ? "pds-dropdown__item--focused" : ""}
7444
7444
  ${le === t ? `${D}__dropdown-item--selected` : ""}
7445
7445
  ${t.isAlreadySelected ? "pds-dropdown__item--active" : ""}`,
7446
- ...q({
7446
+ ...J({
7447
7447
  item: t,
7448
7448
  index: n
7449
7449
  })
@@ -7462,7 +7462,7 @@ var Er = {
7462
7462
  className: `${D}__aux-panel-icon`,
7463
7463
  iconName: "sparkles",
7464
7464
  size: "m"
7465
- }), /* @__PURE__ */ e.createElement("div", { className: `${D}__aux-panel-items` }, W.map((t) => /* @__PURE__ */ e.createElement("button", {
7465
+ }), /* @__PURE__ */ e.createElement("div", { className: `${D}__aux-panel-items` }, G.map((t) => /* @__PURE__ */ e.createElement("button", {
7466
7466
  key: t.id,
7467
7467
  className: Z([`${D}__aux-panel-item`, t.isAlreadySelected ? `${D}__aux-panel-item--selected` : ""]),
7468
7468
  onClick: () => _e(t),
@@ -7554,7 +7554,7 @@ var Er = {
7554
7554
  let E = {
7555
7555
  ...Gr,
7556
7556
  ...v
7557
- }, [O, k] = h(x), [A, M] = h(!1), [N, P] = h(null), [F, I] = h(r ? x?.from : x), L = Bt(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 } = j({
7557
+ }, [O, k] = h(x), [A, M] = h(!1), [N, P] = h(null), [F, I] = h(r ? x?.from : x), L = Bt(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 } = j({
7558
7558
  open: A,
7559
7559
  onOpenChange: M,
7560
7560
  placement: "bottom-start",
@@ -7564,22 +7564,22 @@ var Er = {
7564
7564
  D({ padding: 8 })
7565
7565
  ],
7566
7566
  whileElementsMounted: C
7567
- }), G = (e) => {
7567
+ }), K = (e) => {
7568
7568
  k(e), f?.(e), r || setTimeout(() => {
7569
7569
  M(!1);
7570
7570
  }, 300);
7571
- }, te = (e) => {
7572
- G(e);
7573
- }, K = (e) => {
7574
- G(e);
7575
- }, ne = () => {
7571
+ }, ee = (e) => {
7572
+ K(e);
7573
+ }, q = (e) => {
7574
+ K(e);
7575
+ }, te = () => {
7576
7576
  k(void 0), f?.(void 0);
7577
- }, re = () => {
7577
+ }, ne = () => {
7578
7578
  M(!1);
7579
- }, ie = () => {
7579
+ }, re = () => {
7580
7580
  let e = /* @__PURE__ */ new Date();
7581
7581
  I(e), r ? (k(void 0), f?.(void 0)) : (k(e), f?.(e));
7582
- }, q = () => r ? O?.from : O, ae = ({ className: t, orientation: n }) => n === "left" ? /* @__PURE__ */ e.createElement(Q, {
7582
+ }, J = () => r ? O?.from : O, ie = ({ className: t, orientation: n }) => n === "left" ? /* @__PURE__ */ e.createElement(Q, {
7583
7583
  className: t,
7584
7584
  iconName: "angleLeft",
7585
7585
  size: "m"
@@ -7587,10 +7587,10 @@ var Er = {
7587
7587
  className: t,
7588
7588
  iconName: "angleRight",
7589
7589
  size: "m"
7590
- }), oe = (e) => se(e, "EEEEE", { locale: s }), J = () => {
7590
+ }), ae = (e) => se(e, "EEEEE", { locale: s }), Y = () => {
7591
7591
  let e = [];
7592
7592
  return d && e.push({ before: d }), c && e.push({ after: c }), e.length > 0 ? e : void 0;
7593
- }, Y = () => {
7593
+ }, oe = () => {
7594
7594
  if (r) {
7595
7595
  let t = O;
7596
7596
  return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null, Ur(t.from, s), /* @__PURE__ */ e.createElement("span", { className: `${R}__separator` }, " – "), Ur(t.to, s)) : Ur(t.from, s) : p || "";
@@ -7607,7 +7607,7 @@ var Er = {
7607
7607
  return e ? `${E.selectedDate}${Ur(e, s)}` : E.noDateSelected || "";
7608
7608
  }
7609
7609
  }, ue = (e) => {
7610
- W.floating.current && !W.floating.current.contains(e.target) && N && !N.contains(e.target) && M(!1);
7610
+ G.floating.current && !G.floating.current.contains(e.target) && N && !N.contains(e.target) && M(!1);
7611
7611
  };
7612
7612
  return l(() => {
7613
7613
  k(x);
@@ -7634,7 +7634,7 @@ var Er = {
7634
7634
  tooltipText: _
7635
7635
  }), /* @__PURE__ */ e.createElement("div", { className: `${R}__input-wrapper` }, /* @__PURE__ */ e.createElement("button", {
7636
7636
  ref: (e) => {
7637
- W.setReference(e), P(e);
7637
+ G.setReference(e), P(e);
7638
7638
  },
7639
7639
  "aria-describedby": U ? `${i}__message` : null,
7640
7640
  "aria-expanded": A,
@@ -7643,65 +7643,65 @@ var Er = {
7643
7643
  className: Z([`${R}__trigger`, A ? `${R}__trigger--open` : null]),
7644
7644
  disabled: n,
7645
7645
  onClick: () => {
7646
- A || I(q() ?? /* @__PURE__ */ new Date()), M(!A);
7646
+ A || I(J() ?? /* @__PURE__ */ new Date()), M(!A);
7647
7647
  },
7648
7648
  type: "button"
7649
7649
  }, /* @__PURE__ */ e.createElement(Q, {
7650
7650
  className: `${R}__trigger-icon`,
7651
7651
  iconName: "calendarDays"
7652
- }), /* @__PURE__ */ e.createElement("span", { className: Z([`${R}__trigger-text`, X() ? `${R}__trigger-text--placeholder` : null]) }, Y()))), U && /* @__PURE__ */ e.createElement(Wt, {
7652
+ }), /* @__PURE__ */ e.createElement("span", { className: Z([`${R}__trigger-text`, X() ? `${R}__trigger-text--placeholder` : null]) }, oe()))), U && /* @__PURE__ */ e.createElement(Wt, {
7653
7653
  hasValidationMessage: !!y,
7654
7654
  id: i,
7655
7655
  message: U,
7656
7656
  validationStatus: b
7657
7657
  }), A && /* @__PURE__ */ e.createElement("div", {
7658
- ref: W.setFloating,
7658
+ ref: G.setFloating,
7659
7659
  className: `${R}__popover`,
7660
- style: ee
7660
+ style: W
7661
7661
  }, /* @__PURE__ */ e.createElement("div", { className: `${R}__calendar` }, r ? /* @__PURE__ */ e.createElement(ce, {
7662
- components: { Chevron: ae },
7663
- disabled: J(),
7662
+ components: { Chevron: ie },
7663
+ disabled: Y(),
7664
7664
  footer: /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, le()),
7665
- formatters: { formatWeekdayName: oe },
7665
+ formatters: { formatWeekdayName: ae },
7666
7666
  locale: s,
7667
7667
  mode: "range",
7668
7668
  month: F,
7669
7669
  navLayout: "around",
7670
7670
  numberOfMonths: 2,
7671
7671
  onMonthChange: I,
7672
- onSelect: te,
7672
+ onSelect: ee,
7673
7673
  selected: O
7674
7674
  }) : /* @__PURE__ */ e.createElement(ce, {
7675
- components: { Chevron: ae },
7676
- disabled: J(),
7675
+ components: { Chevron: ie },
7676
+ disabled: Y(),
7677
7677
  footer: /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, le()),
7678
- formatters: { formatWeekdayName: oe },
7678
+ formatters: { formatWeekdayName: ae },
7679
7679
  locale: s,
7680
7680
  mode: "single",
7681
7681
  month: F,
7682
7682
  navLayout: "around",
7683
7683
  numberOfMonths: 1,
7684
7684
  onMonthChange: I,
7685
- onSelect: K,
7685
+ onSelect: q,
7686
7686
  selected: O
7687
7687
  })), /* @__PURE__ */ e.createElement("div", { className: `${R}__actions` }, /* @__PURE__ */ e.createElement(un, {
7688
7688
  className: `${R}__action-button ${R}__action-button--today`,
7689
7689
  label: E.todayButton,
7690
- onClick: ie,
7690
+ onClick: re,
7691
7691
  size: "s",
7692
7692
  type: "button",
7693
7693
  variant: "secondary"
7694
7694
  }), /* @__PURE__ */ e.createElement("div", { className: `${R}__actions-group` }, /* @__PURE__ */ e.createElement(un, {
7695
7695
  className: `${R}__action-button ${R}__action-button--clear`,
7696
7696
  label: E.clearButton,
7697
- onClick: ne,
7697
+ onClick: te,
7698
7698
  size: "s",
7699
7699
  type: "button",
7700
7700
  variant: "secondary"
7701
7701
  }), r && /* @__PURE__ */ e.createElement(un, {
7702
7702
  className: `${R}__action-button ${R}__action-button--done`,
7703
7703
  label: E.doneButton,
7704
- onClick: re,
7704
+ onClick: ne,
7705
7705
  size: "s",
7706
7706
  type: "button",
7707
7707
  variant: "highlight"
@@ -7725,13 +7725,13 @@ var Er = {
7725
7725
  if (!e || !r) return;
7726
7726
  let t = new DataTransfer();
7727
7727
  t.items.add(H), e.files = t.files, E(!0);
7728
- }, ee = (e) => {
7728
+ }, W = (e) => {
7729
7729
  if (e.target.files.length === 0) {
7730
7730
  r ? U() : E(!1);
7731
7731
  return;
7732
7732
  }
7733
7733
  le && r && (r === e.target.value ? O(!0) : O(!1)), m && m(e.target.files), E(!0);
7734
- }, W = () => {
7734
+ }, G = () => {
7735
7735
  let e = document.getElementById(`${o}--input`);
7736
7736
  e.value = "", le && O(!1), p && p(), E(!1), e.focus();
7737
7737
  };
@@ -7775,13 +7775,13 @@ var Er = {
7775
7775
  disabled: i,
7776
7776
  id: `${o}--input`,
7777
7777
  multiple: f,
7778
- onChange: ee,
7778
+ onChange: W,
7779
7779
  required: g,
7780
7780
  type: "file",
7781
7781
  ...s
7782
7782
  }), T && /* @__PURE__ */ e.createElement(Jt, {
7783
7783
  clearLabel: u.clearButton,
7784
- handleClearInput: W,
7784
+ handleClearInput: G,
7785
7785
  id: o
7786
7786
  })), R && /* @__PURE__ */ e.createElement(Wt, {
7787
7787
  hasValidationMessage: !!x,
@@ -7986,43 +7986,43 @@ var Er = {
7986
7986
  tagRemove: "Remove {value}",
7987
7987
  tagsListLabel: "Current tags"
7988
7988
  }, validationMessage: b, validationStatus: x, ...S }, C) => {
7989
- let w = Bt(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) => {
7989
+ let w = Bt(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) => {
7990
7990
  U(e), setTimeout(() => U(""), 1e3);
7991
- }, te = (e) => {
7991
+ }, ee = (e) => {
7992
7992
  u(e);
7993
- }, K = (e) => {
7993
+ }, q = (e) => {
7994
7994
  F(e);
7995
- }, ne = () => {
7995
+ }, te = () => {
7996
7996
  F(null), L(null), z(null);
7997
- }, re = (e, t) => {
7997
+ }, ne = (e, t) => {
7998
7998
  P === null || P === e || (L(e), z(t));
7999
- }, ie = (e) => {
7999
+ }, re = (e) => {
8000
8000
  if (e.preventDefault(), P === null || I === null || R === null) return;
8001
8001
  let t = _.findIndex((e) => e.id === P), n = _.findIndex((e) => e.id === I);
8002
8002
  if (t === -1 || n === -1) return;
8003
8003
  let r = [..._], [i] = r.splice(t, 1), a = n;
8004
- a = R === "after" ? t < n ? n : n + 1 : n, r.splice(a, 0, i), te(r), G("Tag reordered"), F(null), L(null), z(null);
8005
- }, q = (e, t) => {
8004
+ a = R === "after" ? t < n ? n : n + 1 : n, r.splice(a, 0, i), ee(r), K("Tag reordered"), F(null), L(null), z(null);
8005
+ }, J = (e, t) => {
8006
8006
  let n = [..._], [r] = n.splice(e, 1);
8007
- n.splice(t, 0, r), G(`${r.value} moved to position ${t + 1} of ${_.length}`), te(n);
8008
- }, ae = (e) => {
8007
+ n.splice(t, 0, r), K(`${r.value} moved to position ${t + 1} of ${_.length}`), ee(n);
8008
+ }, ie = (e) => {
8009
8009
  let t = _.find((t) => t.id === e);
8010
- te(_.filter((t) => t.id !== e)), t && G(`${t.value} removed`);
8011
- }, oe = () => {
8010
+ ee(_.filter((t) => t.id !== e)), t && K(`${t.value} removed`);
8011
+ }, ae = () => {
8012
8012
  V(null), setTimeout(() => {
8013
- ee.current?.focus();
8013
+ W.current?.focus();
8014
8014
  }, 0);
8015
- }, J = (e) => {
8015
+ }, Y = (e) => {
8016
8016
  if (!r) if (e.key === "Enter" && M.trim()) {
8017
8017
  e.preventDefault();
8018
8018
  let t = {
8019
8019
  id: Date.now().toString(),
8020
8020
  value: M.trim()
8021
8021
  };
8022
- te([..._, t]), G(`${M.trim()} added`), N("");
8022
+ ee([..._, t]), K(`${M.trim()} added`), N("");
8023
8023
  } else if (e.key === "Backspace" && !M && _.length > 0) {
8024
8024
  let e = _[_.length - 1];
8025
- te(_.slice(0, -1)), G(`${e.value} removed`);
8025
+ ee(_.slice(0, -1)), K(`${e.value} removed`);
8026
8026
  } else e.key === "ArrowLeft" && !M && _.length > 0 && (e.preventDefault(), V(_.length - 1));
8027
8027
  };
8028
8028
  return /* @__PURE__ */ e.createElement("div", {
@@ -8058,7 +8058,7 @@ var Er = {
8058
8058
  "aria-label": y.tagsListLabel,
8059
8059
  className: `${T}__tags`,
8060
8060
  onDragOver: s ? (e) => e.preventDefault() : void 0,
8061
- onDrop: s ? ie : void 0,
8061
+ onDrop: s ? re : void 0,
8062
8062
  role: "list"
8063
8063
  }, _.map((t, n) => {
8064
8064
  let i = null;
@@ -8072,12 +8072,12 @@ var Er = {
8072
8072
  index: n,
8073
8073
  isDragging: P === t.id,
8074
8074
  isSortable: s,
8075
- onDragEnd: ne,
8076
- onDragOver: re,
8077
- onDragStart: K,
8078
- onFocusInput: oe,
8079
- onKeyboardMove: q,
8080
- onRemove: ae,
8075
+ onDragEnd: te,
8076
+ onDragOver: ne,
8077
+ onDragStart: q,
8078
+ onFocusInput: ae,
8079
+ onKeyboardMove: J,
8080
+ onRemove: ie,
8081
8081
  setFocusedIndex: V,
8082
8082
  tag: t,
8083
8083
  totalTags: _.length,
@@ -8085,7 +8085,7 @@ var Er = {
8085
8085
  }));
8086
8086
  })), /* @__PURE__ */ e.createElement("input", {
8087
8087
  ref: (e) => {
8088
- ee.current = e, typeof C == "function" ? C(e) : C && (C.current = e);
8088
+ W.current = e, typeof C == "function" ? C(e) : C && (C.current = e);
8089
8089
  },
8090
8090
  "aria-describedby": `${i}__instructions`,
8091
8091
  "aria-invalid": x === "error" ? !0 : null,
@@ -8094,8 +8094,8 @@ var Er = {
8094
8094
  id: i,
8095
8095
  name: i,
8096
8096
  onChange: (e) => N(e.target.value),
8097
- onKeyDown: J,
8098
- placeholder: W,
8097
+ onKeyDown: Y,
8098
+ placeholder: G,
8099
8099
  required: f,
8100
8100
  type: "text",
8101
8101
  value: M
@@ -8183,8 +8183,8 @@ var Er = {
8183
8183
  }, type: O = "text", validationMessage: k, validationStatus: A, value: j, ...M }, N) => {
8184
8184
  let P = Bt(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;
8185
8185
  O === "search" && (U = "search"), O === "search" && S === "filter" && (U = "filter"), A === "error" && (U = "error"), A === "success" && (U = "success");
8186
- let ee = k || p, W = j !== void 0, [G, te] = h(i === void 0 ? "" : i), K = j || G, ne = (e) => {
8187
- if (w && q && ae(!1), c && O === "url") {
8186
+ let W = k || p, G = j !== void 0, [K, ee] = h(i === void 0 ? "" : i), q = j || K, te = (e) => {
8187
+ if (w && J && ie(!1), c && O === "url") {
8188
8188
  let t = Vt(e.target.value), n = {
8189
8189
  ...e,
8190
8190
  target: {
@@ -8194,7 +8194,7 @@ var Er = {
8194
8194
  };
8195
8195
  m && m(n);
8196
8196
  } else m && m(e);
8197
- }, re = (e) => {
8197
+ }, ne = (e) => {
8198
8198
  if (c && O === "url") {
8199
8199
  let t = Vt(e.target.value), n = {
8200
8200
  ...e,
@@ -8203,18 +8203,18 @@ var Er = {
8203
8203
  value: t
8204
8204
  }
8205
8205
  };
8206
- W || te(t), g && g(n);
8207
- } else W || te(e.target.value), g && g(e);
8208
- }, ie = () => {
8209
- W || te(""), _ && _();
8206
+ G || ee(t), g && g(n);
8207
+ } else G || ee(e.target.value), g && g(e);
8208
+ }, re = () => {
8209
+ G || ee(""), _ && _();
8210
8210
  let e = document.getElementById(l);
8211
8211
  e && e.focus();
8212
- }, [q, ae] = h(!1), oe = () => {
8213
- ae((e) => !e);
8212
+ }, [J, ie] = h(!1), ae = () => {
8213
+ ie((e) => !e);
8214
8214
  let e = document.getElementById(l);
8215
8215
  e && e.focus();
8216
- }, J = O;
8217
- return w && O === "password" && (J = q ? "text" : "password"), /* @__PURE__ */ e.createElement("div", {
8216
+ }, Y = O;
8217
+ return w && O === "password" && (Y = J ? "text" : "password"), /* @__PURE__ */ e.createElement("div", {
8218
8218
  className: Z([
8219
8219
  $.base,
8220
8220
  F,
@@ -8239,50 +8239,50 @@ var Er = {
8239
8239
  }), w && O === "password" && /* @__PURE__ */ e.createElement("div", {
8240
8240
  "aria-live": "polite",
8241
8241
  className: "visually-hidden"
8242
- }, `${D.visibilityStatus} ${q ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: `${F}__input-wrapper ${c && O === "url" ? `${F}__input-wrapper--has-prefix` : ""}` }, U && /* @__PURE__ */ e.createElement(Kt, { variant: U }), c && O === "url" && /* @__PURE__ */ e.createElement(ei, null), /* @__PURE__ */ e.createElement("input", {
8242
+ }, `${D.visibilityStatus} ${J ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: `${F}__input-wrapper ${c && O === "url" ? `${F}__input-wrapper--has-prefix` : ""}` }, U && /* @__PURE__ */ e.createElement(Kt, { variant: U }), c && O === "url" && /* @__PURE__ */ e.createElement(ei, null), /* @__PURE__ */ e.createElement("input", {
8243
8243
  ref: N,
8244
- "aria-describedby": ee ? `${l}__message` : null,
8244
+ "aria-describedby": W ? `${l}__message` : null,
8245
8245
  "aria-invalid": A === "error" ? !0 : null,
8246
8246
  autoComplete: O === "password" ? "off" : t,
8247
8247
  className: `${F}__input ${c && O === "url" ? `${F}__input--has-prefix` : ""}`,
8248
8248
  disabled: a,
8249
8249
  id: l,
8250
8250
  name: l,
8251
- onBlur: ne,
8252
- onChange: re,
8251
+ onBlur: te,
8252
+ onChange: ne,
8253
8253
  onFocus: v,
8254
8254
  placeholder: y,
8255
8255
  readOnly: b,
8256
8256
  required: x,
8257
- type: J,
8258
- value: W ? j : G,
8257
+ type: Y,
8258
+ value: G ? j : K,
8259
8259
  ...u
8260
- }), o && K && /* @__PURE__ */ e.createElement(Jt, {
8260
+ }), o && q && /* @__PURE__ */ e.createElement(Jt, {
8261
8261
  clearLabel: D.clearButton,
8262
- handleClearInput: ie,
8262
+ handleClearInput: re,
8263
8263
  id: l
8264
8264
  }), w && O === "password" && /* @__PURE__ */ e.createElement("button", {
8265
8265
  "aria-controls": l,
8266
8266
  className: `${F}__visibility-toggle`,
8267
- onClick: oe,
8267
+ onClick: ae,
8268
8268
  onMouseDown: (e) => e.preventDefault(),
8269
- title: q ? D.visibilityToggleHide : D.visibilityToggleShow,
8269
+ title: J ? D.visibilityToggleHide : D.visibilityToggleShow,
8270
8270
  type: "button"
8271
8271
  }, /* @__PURE__ */ e.createElement(Q, {
8272
- iconName: q ? "eyeSlash" : "eye",
8272
+ iconName: J ? "eyeSlash" : "eye",
8273
8273
  size: "m"
8274
- })), s && O === "search" && !K && /* @__PURE__ */ e.createElement(qt, {
8274
+ })), s && O === "search" && !q && /* @__PURE__ */ e.createElement(qt, {
8275
8275
  inputId: l,
8276
8276
  shortcutLabel: D.searchShortcut
8277
8277
  }), r && O !== "password" && /* @__PURE__ */ e.createElement(Yt, {
8278
- currentLength: K.length,
8278
+ currentLength: q.length,
8279
8279
  id: l,
8280
8280
  maxLength: r,
8281
8281
  overLimitMessage: D.counterOverLimit
8282
- })), ee && /* @__PURE__ */ e.createElement(Wt, {
8282
+ })), W && /* @__PURE__ */ e.createElement(Wt, {
8283
8283
  hasValidationMessage: !!k,
8284
8284
  id: l,
8285
- message: ee,
8285
+ message: W,
8286
8286
  validationMessageHasDecorators: !1,
8287
8287
  validationStatus: A
8288
8288
  }));
@@ -8346,7 +8346,7 @@ var Er = {
8346
8346
  t,
8347
8347
  P,
8348
8348
  b
8349
- ]), { focusProps: U, isFocusVisible: ee } = _e({ within: !0 }), W = R.value !== null;
8349
+ ]), { focusProps: U, isFocusVisible: W } = _e({ within: !0 }), G = R.value !== null;
8350
8350
  return /* @__PURE__ */ e.createElement("div", {
8351
8351
  className: Z([
8352
8352
  $.base,
@@ -8369,7 +8369,7 @@ var Er = {
8369
8369
  }), /* @__PURE__ */ e.createElement("div", {
8370
8370
  ...he(B, U),
8371
8371
  ref: z,
8372
- className: Z([`${E}__input-wrapper`, ee ? `${E}__input-wrapper--focus-visible` : null]),
8372
+ className: Z([`${E}__input-wrapper`, W ? `${E}__input-wrapper--focus-visible` : null]),
8373
8373
  id: o
8374
8374
  }, /* @__PURE__ */ e.createElement(Q, {
8375
8375
  className: `${E}__icon`,
@@ -8383,7 +8383,7 @@ var Er = {
8383
8383
  baseClass: E,
8384
8384
  segment: t,
8385
8385
  state: R
8386
- })), H && W && /* @__PURE__ */ e.createElement("div", { className: `${E}__timezone` }, H))), M && /* @__PURE__ */ e.createElement(Wt, {
8386
+ })), H && G && /* @__PURE__ */ e.createElement("div", { className: `${E}__timezone` }, H))), M && /* @__PURE__ */ e.createElement(Wt, {
8387
8387
  hasValidationMessage: !!S,
8388
8388
  id: o,
8389
8389
  message: M,
@@ -9448,7 +9448,7 @@ var Er = {
9448
9448
  ],
9449
9449
  whileElementsMounted: C,
9450
9450
  strategy: "fixed"
9451
- }), z = k(M, { event: "mousedown" }), B = A(M), V = L(M, { role: "menu" }), H = m([]), { getFloatingProps: U, getItemProps: ee, getReferenceProps: W } = F([
9451
+ }), z = k(M, { event: "mousedown" }), B = A(M), V = L(M, { role: "menu" }), H = m([]), { getFloatingProps: U, getItemProps: W, getReferenceProps: G } = F([
9452
9452
  B,
9453
9453
  V,
9454
9454
  z,
@@ -9461,7 +9461,7 @@ var Er = {
9461
9461
  focusItemOnOpen: !1,
9462
9462
  focusItemOnHover: !0
9463
9463
  })
9464
- ]), { isMounted: G, styles: te } = R(M, {
9464
+ ]), { isMounted: K, styles: ee } = R(M, {
9465
9465
  duration: {
9466
9466
  open: 300,
9467
9467
  close: 150
@@ -9469,16 +9469,16 @@ var Er = {
9469
9469
  initial: { opacity: 0 },
9470
9470
  open: { opacity: 1 },
9471
9471
  close: { opacity: 0 }
9472
- }), K = /* @__PURE__ */ e.createElement(rt, {
9472
+ }), q = /* @__PURE__ */ e.createElement(rt, {
9473
9473
  hasUserFallback: !0,
9474
9474
  className: `${E}__avatar`,
9475
9475
  imageSrc: l,
9476
9476
  size: "s",
9477
9477
  uniqueId: c
9478
- }), ne = /* @__PURE__ */ e.createElement("li", {
9478
+ }), te = /* @__PURE__ */ e.createElement("li", {
9479
9479
  className: `${E}__user-details`,
9480
9480
  role: "presentation"
9481
- }, /* @__PURE__ */ e.createElement("div", { className: `${E}__user-name` }, d), /* @__PURE__ */ e.createElement("div", { className: `${E}__user-email` }, c)), re = a !== void 0 && typeof i == "function" ? /* @__PURE__ */ e.createElement("li", {
9481
+ }, /* @__PURE__ */ e.createElement("div", { className: `${E}__user-name` }, d), /* @__PURE__ */ e.createElement("div", { className: `${E}__user-email` }, c)), ne = a !== void 0 && typeof i == "function" ? /* @__PURE__ */ e.createElement("li", {
9482
9482
  className: `${E}__theme-row`,
9483
9483
  role: "presentation"
9484
9484
  }, /* @__PURE__ */ e.createElement("span", { className: `${E}__theme-label` }, o), /* @__PURE__ */ e.createElement(Pi, {
@@ -9493,14 +9493,14 @@ var Er = {
9493
9493
  let n = e.id ? e.id : `${S}-item-${t}`;
9494
9494
  y.current.push(n), b.current.push(e);
9495
9495
  });
9496
- let ie = (e) => {
9496
+ let re = (e) => {
9497
9497
  let t = y.current.indexOf(e), n = b.current[t];
9498
9498
  n.linkContent && !n.disabled && (H.current[t].querySelector("a").click(), v(!1)), n.callback && !n.disabled && (n.callback(), v(!1));
9499
- }, q = (e) => {
9500
- e.preventDefault(), e.key === "Enter" && ie(e.currentTarget.id);
9501
- }, ae = (e) => {
9502
- ie(e.currentTarget.id);
9503
- }, oe = r.map((t, n) => {
9499
+ }, J = (e) => {
9500
+ e.preventDefault(), e.key === "Enter" && re(e.currentTarget.id);
9501
+ }, ie = (e) => {
9502
+ re(e.currentTarget.id);
9503
+ }, ae = r.map((t, n) => {
9504
9504
  let r = y.current[n], i = `${E}__item`, a = t.disabled ? `${i}--disabled` : null;
9505
9505
  return /* @__PURE__ */ e.createElement("li", {
9506
9506
  key: r,
@@ -9510,16 +9510,16 @@ var Er = {
9510
9510
  "aria-disabled": t.disabled || void 0,
9511
9511
  className: Z([i, a]),
9512
9512
  id: r,
9513
- onKeyDown: q,
9513
+ onKeyDown: J,
9514
9514
  role: "menuitem",
9515
9515
  tabIndex: p === n ? 0 : -1,
9516
- ...ee({ onClick: (e) => ae(e) })
9516
+ ...W({ onClick: (e) => ie(e) })
9517
9517
  }, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
9518
9518
  className: `${E}__icon`,
9519
9519
  iconName: t.iconName,
9520
9520
  size: "m"
9521
9521
  }));
9522
- }), J = r.map((t, n) => {
9522
+ }), Y = r.map((t, n) => {
9523
9523
  let r = y.current[n], i = `${E}__item`, a = t.disabled ? `${i}--disabled` : null;
9524
9524
  return /* @__PURE__ */ e.createElement("li", {
9525
9525
  key: r,
@@ -9535,20 +9535,20 @@ var Er = {
9535
9535
  iconName: t.iconName,
9536
9536
  size: "m"
9537
9537
  }));
9538
- }), Y = /* @__PURE__ */ e.createElement("span", { className: `${E}__toggle-left` }, K, d ?? c);
9538
+ }), oe = /* @__PURE__ */ e.createElement("span", { className: `${E}__toggle-left` }, q, d ?? c);
9539
9539
  return /* @__PURE__ */ e.createElement("span", {
9540
9540
  className: Z([E, n ?? ""]),
9541
9541
  ...f
9542
- }, /* @__PURE__ */ e.createElement(An, { label: Y }, /* @__PURE__ */ e.createElement("ul", {
9542
+ }, /* @__PURE__ */ e.createElement(An, { label: oe }, /* @__PURE__ */ e.createElement("ul", {
9543
9543
  className: Z([O, `${O}--mobile`]),
9544
9544
  role: "menu"
9545
- }, ne, /* @__PURE__ */ e.createElement("li", { role: "separator" }), re, J)), /* @__PURE__ */ e.createElement("button", {
9545
+ }, te, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ne, Y)), /* @__PURE__ */ e.createElement("button", {
9546
9546
  ref: P.setReference,
9547
9547
  "aria-label": t,
9548
9548
  className: `${E}__trigger`,
9549
9549
  type: "button",
9550
- ...W()
9551
- }, K), G && /* @__PURE__ */ e.createElement(x, null, /* @__PURE__ */ e.createElement("div", {
9550
+ ...G()
9551
+ }, q), K && /* @__PURE__ */ e.createElement(x, null, /* @__PURE__ */ e.createElement("div", {
9552
9552
  ref: P.setFloating,
9553
9553
  className: `${E}__dropdown`,
9554
9554
  style: {
@@ -9556,37 +9556,50 @@ var Er = {
9556
9556
  zIndex: "var(--pds-z-index-dropdown)"
9557
9557
  },
9558
9558
  ...U()
9559
- }, /* @__PURE__ */ e.createElement("div", { style: { ...te } }, /* @__PURE__ */ e.createElement("ul", {
9559
+ }, /* @__PURE__ */ e.createElement("div", { style: { ...ee } }, /* @__PURE__ */ e.createElement("ul", {
9560
9560
  className: O,
9561
9561
  role: "menu"
9562
- }, ne, /* @__PURE__ */ e.createElement("li", { role: "separator" }), re, oe)))));
9562
+ }, te, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ne, ae)))));
9563
9563
  }, Ii = ({ 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 }) => {
9564
- let [d, f] = h(""), [g, _] = h(""), v = m(null), y = l.length >= s, b = "pds-workspace-selector", S = `${b}__menu`, C = y ? `${S}--scroll` : null, { activeIndex: w, floatingStyles: T, getFloatingProps: E, getItemProps: D, getReferenceProps: O, isMounted: k, listRef: A, refs: j, setIsOpen: M, transitionStyles: N } = _n({
9565
- enableTypeahead: !y,
9564
+ let [d, g] = h(""), [_, v] = h(""), y = m(null), b = l.length >= s, S = "pds-workspace-selector", C = `${S}__menu`, w = b ? `${C}--scroll` : null, { activeIndex: T, floatingStyles: E, getFloatingProps: D, getItemProps: O, getReferenceProps: k, isMounted: A, listRef: j, refs: M, setIsOpen: N, transitionStyles: P } = _n({
9565
+ enableTypeahead: !b,
9566
9566
  role: "menu"
9567
- }), P = l.find((e) => e.isActive);
9568
- P || (P = l[0]);
9569
- let F = p(() => {
9567
+ }), F = l.find((e) => e.isActive);
9568
+ F || (F = l[0]);
9569
+ let I = m(null);
9570
+ f(() => {
9571
+ let e = I.current, t = e?.parentElement;
9572
+ if (!e || !t) return;
9573
+ let n = () => {
9574
+ t.style.width = "";
9575
+ let n = document.createRange();
9576
+ n.selectNodeContents(e);
9577
+ let r = Array.from(n.getClientRects()).slice(0, 2), i = Math.max(0, ...r.map((e) => e.width));
9578
+ i > 0 && (t.style.width = `${Math.ceil(i)}px`);
9579
+ };
9580
+ n(), document.fonts?.ready.then(n);
9581
+ }, [F?.displayName]);
9582
+ let L = p(() => {
9570
9583
  if (!d) return l;
9571
9584
  let e = d.toLowerCase();
9572
9585
  return l.filter((t) => t.displayName?.toLowerCase().includes(e));
9573
- }, [l, d]), I = p(() => {
9574
- if (!g) return l;
9575
- let e = g.toLowerCase();
9586
+ }, [l, d]), R = p(() => {
9587
+ if (!_) return l;
9588
+ let e = _.toLowerCase();
9576
9589
  return l.filter((t) => t.displayName?.toLowerCase().includes(e));
9577
- }, [l, g]), L = (e) => {
9578
- e.preventDefault(), e.key === "Enter" && (A.current[w]?.querySelector("a") || A.current[w]?.querySelector("button"))?.click(), e.key === "Tab" && (e.shiftKey ? y ? document.getElementById("workspace-filter")?.focus() : M(!1) : r ? v.current?.querySelector("a")?.focus() : M(!1));
9579
- }, R = (t) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${b}__item-content` }, /* @__PURE__ */ e.createElement(rt, {
9580
- className: `${b}__list-avatar`,
9590
+ }, [l, _]), z = (e) => {
9591
+ e.preventDefault(), e.key === "Enter" && (j.current[T]?.querySelector("a") || j.current[T]?.querySelector("button"))?.click(), e.key === "Tab" && (e.shiftKey ? b ? document.getElementById("workspace-filter")?.focus() : N(!1) : r ? y.current?.querySelector("a")?.focus() : N(!1));
9592
+ }, B = (t) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${S}__item-content` }, /* @__PURE__ */ e.createElement(rt, {
9593
+ className: `${S}__list-avatar`,
9581
9594
  imageSrc: t.imageSrc,
9582
9595
  size: "s",
9583
9596
  uniqueId: t.workspaceId
9584
- }), t.displayName, t.isRestricted && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.restrictedLabel ?? "Restricted")), (t.isRestricted || t.isActive) && /* @__PURE__ */ e.createElement("div", { className: `${b}__icons` }, t.isRestricted && /* @__PURE__ */ e.createElement(Q, {
9585
- className: `${b}__lock-icon`,
9597
+ }), t.displayName, t.isRestricted && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.restrictedLabel ?? "Restricted")), (t.isRestricted || t.isActive) && /* @__PURE__ */ e.createElement("div", { className: `${S}__icons` }, t.isRestricted && /* @__PURE__ */ e.createElement(Q, {
9598
+ className: `${S}__lock-icon`,
9586
9599
  iconName: "lock"
9587
- }), t.isActive && /* @__PURE__ */ e.createElement(On, null))), z = F.map((t, n) => {
9588
- let r = `${b}__item`, i = t.workspaceId, a = t.isRestricted && t.onRestrictedSelection, o = t.workspaceLink?.type, s = t.isUnprivileged ? null : (e) => {
9589
- A.current[n] = e;
9600
+ }), t.isActive && /* @__PURE__ */ e.createElement(On, null))), V = L.map((t, n) => {
9601
+ let r = `${S}__item`, i = t.workspaceId, a = t.isRestricted && t.onRestrictedSelection, o = t.workspaceLink?.type, s = t.isUnprivileged ? null : (e) => {
9602
+ j.current[n] = e;
9590
9603
  };
9591
9604
  return /* @__PURE__ */ e.createElement("li", {
9592
9605
  key: i,
@@ -9600,18 +9613,18 @@ var Er = {
9600
9613
  t.isRestricted ? `${r}--restricted` : null
9601
9614
  ]),
9602
9615
  id: i,
9603
- onKeyDown: L,
9616
+ onKeyDown: z,
9604
9617
  role: "menuitem",
9605
- tabIndex: w === n ? 0 : -1,
9606
- ...D()
9618
+ tabIndex: T === n ? 0 : -1,
9619
+ ...O()
9607
9620
  }, a ? /* @__PURE__ */ e.createElement("button", {
9608
9621
  onClick: () => {
9609
- t.onRestrictedSelection(), M(!1);
9622
+ t.onRestrictedSelection(), N(!1);
9610
9623
  },
9611
9624
  type: "button"
9612
- }, R(t)) : o ? /* @__PURE__ */ e.createElement(o, Object.assign({}, t.workspaceLink.props, { onClick: () => M(!1) }), R(t)) : null);
9613
- }), B = I.map((t) => {
9614
- let n = `${b}__item`, r = t.workspaceId, i = t.isRestricted && t.onRestrictedSelection, a = t.workspaceLink?.type;
9625
+ }, B(t)) : o ? /* @__PURE__ */ e.createElement(o, Object.assign({}, t.workspaceLink.props, { onClick: () => N(!1) }), B(t)) : null);
9626
+ }), H = R.map((t) => {
9627
+ let n = `${S}__item`, r = t.workspaceId, i = t.isRestricted && t.onRestrictedSelection, a = t.workspaceLink?.type;
9615
9628
  return /* @__PURE__ */ e.createElement("li", {
9616
9629
  key: `${r}-accordion`,
9617
9630
  className: Z([
@@ -9627,79 +9640,82 @@ var Er = {
9627
9640
  }, i ? /* @__PURE__ */ e.createElement("button", {
9628
9641
  onClick: () => t.onRestrictedSelection(),
9629
9642
  type: "button"
9630
- }, R(t)) : a ? /* @__PURE__ */ e.createElement(a, Object.assign({}, t.workspaceLink?.props), R(t)) : null);
9631
- }), V = r && /* @__PURE__ */ e.createElement("div", {
9632
- ref: v,
9633
- className: `${b}__create-link`
9643
+ }, B(t)) : a ? /* @__PURE__ */ e.createElement(a, Object.assign({}, t.workspaceLink?.props), B(t)) : null);
9644
+ }), U = r && /* @__PURE__ */ e.createElement("div", {
9645
+ ref: y,
9646
+ className: `${S}__create-link`
9634
9647
  }, /* @__PURE__ */ e.createElement("span", {
9635
- className: `${b}__create-link-inner`,
9636
- onBlur: () => M(!1),
9637
- onClick: () => M(!1)
9648
+ className: `${S}__create-link-inner`,
9649
+ onBlur: () => N(!1),
9650
+ onClick: () => N(!1)
9638
9651
  }, r, /* @__PURE__ */ e.createElement(Q, {
9639
9652
  iconName: "plus",
9640
9653
  size: "s"
9641
- }))), H = P ? /* @__PURE__ */ e.createElement("div", { className: `${b}__button-content` }, /* @__PURE__ */ e.createElement(rt, {
9642
- className: `${b}__avatar`,
9643
- imageSrc: P.imageSrc,
9654
+ }))), W = (t) => F ? /* @__PURE__ */ e.createElement("div", { className: `${S}__button-content` }, /* @__PURE__ */ e.createElement(rt, {
9655
+ className: `${S}__avatar`,
9656
+ imageSrc: F.imageSrc,
9644
9657
  size: "s",
9645
- uniqueId: P.workspaceId
9646
- }), /* @__PURE__ */ e.createElement("span", { className: `${b}__name` }, /* @__PURE__ */ e.createElement("span", { className: `${b}__name-text` }, P.displayName))) : null;
9658
+ uniqueId: F.workspaceId
9659
+ }), /* @__PURE__ */ e.createElement("span", { className: `${S}__name` }, /* @__PURE__ */ e.createElement("span", {
9660
+ ref: t,
9661
+ className: `${S}__name-text`
9662
+ }, F.displayName))) : null;
9647
9663
  return /* @__PURE__ */ e.createElement("span", {
9648
- className: Z([b, n]),
9664
+ className: Z([S, n]),
9649
9665
  ...u
9650
- }, /* @__PURE__ */ e.createElement(An, { label: H }, y && /* @__PURE__ */ e.createElement("div", { className: `${b}__filter` }, /* @__PURE__ */ e.createElement(ti, {
9666
+ }, /* @__PURE__ */ e.createElement(An, { label: W() }, b && /* @__PURE__ */ e.createElement("div", { className: `${S}__filter` }, /* @__PURE__ */ e.createElement(ti, {
9651
9667
  hasClearButton: !0,
9652
9668
  id: "workspace-filter-mobile",
9653
9669
  label: i,
9654
- onChange: (e) => _(e.target.value),
9655
- onClear: () => _(""),
9670
+ onChange: (e) => v(e.target.value),
9671
+ onClear: () => v(""),
9656
9672
  placeholder: a,
9657
9673
  showLabel: !1,
9658
9674
  type: "search"
9659
9675
  })), /* @__PURE__ */ e.createElement("ul", {
9660
- className: Z([S, `${S}--mobile`]),
9676
+ className: Z([C, `${C}--mobile`]),
9661
9677
  role: "menu"
9662
9678
  }, /* @__PURE__ */ e.createElement("li", {
9663
- className: `pds-dropdown__heading ${b}__item-heading`,
9679
+ className: `pds-dropdown__heading ${S}__item-heading`,
9664
9680
  role: "presentation"
9665
- }, o), B.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, c) : B), r && /* @__PURE__ */ e.createElement("div", { className: `${b}__create-link` }, /* @__PURE__ */ e.createElement("span", { className: `${b}__create-link-inner` }, r, /* @__PURE__ */ e.createElement(Q, {
9681
+ }, o), H.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, c) : H), r && /* @__PURE__ */ e.createElement("div", { className: `${S}__create-link` }, /* @__PURE__ */ e.createElement("span", { className: `${S}__create-link-inner` }, r, /* @__PURE__ */ e.createElement(Q, {
9666
9682
  iconName: "plus",
9667
9683
  size: "s"
9668
9684
  })))), /* @__PURE__ */ e.createElement("button", {
9669
- ref: j.setReference,
9685
+ ref: M.setReference,
9670
9686
  "aria-label": t,
9671
- className: `${b}__trigger`,
9687
+ className: `${S}__trigger`,
9672
9688
  type: "button",
9673
- ...O()
9674
- }, H, /* @__PURE__ */ e.createElement(Q, {
9675
- className: `${b}__trigger-icon`,
9689
+ ...k()
9690
+ }, W(I), /* @__PURE__ */ e.createElement(Q, {
9691
+ className: `${S}__trigger-icon`,
9676
9692
  iconName: "angleDown",
9677
9693
  size: "m"
9678
- })), k && /* @__PURE__ */ e.createElement(x, null, /* @__PURE__ */ e.createElement("div", {
9679
- ref: j.setFloating,
9680
- className: `pds-dropdown__panel ${b}__dropdown`,
9694
+ })), A && /* @__PURE__ */ e.createElement(x, null, /* @__PURE__ */ e.createElement("div", {
9695
+ ref: M.setFloating,
9696
+ className: `pds-dropdown__panel ${S}__dropdown`,
9681
9697
  style: {
9682
- ...T,
9683
- ...N,
9698
+ ...E,
9699
+ ...P,
9684
9700
  zIndex: "var(--pds-z-index-dropdown)"
9685
9701
  },
9686
- ...E()
9687
- }, y && /* @__PURE__ */ e.createElement("div", { className: `${b}__filter` }, /* @__PURE__ */ e.createElement(ti, {
9702
+ ...D()
9703
+ }, b && /* @__PURE__ */ e.createElement("div", { className: `${S}__filter` }, /* @__PURE__ */ e.createElement(ti, {
9688
9704
  hasClearButton: !0,
9689
9705
  id: "workspace-filter",
9690
9706
  label: i,
9691
- onChange: (e) => f(e.target.value),
9692
- onClear: () => f(""),
9707
+ onChange: (e) => g(e.target.value),
9708
+ onClear: () => g(""),
9693
9709
  placeholder: a,
9694
9710
  showLabel: !1,
9695
9711
  type: "search"
9696
9712
  })), /* @__PURE__ */ e.createElement("ul", {
9697
- className: Z([S, C]),
9713
+ className: Z([C, w]),
9698
9714
  role: "menu"
9699
9715
  }, /* @__PURE__ */ e.createElement("li", {
9700
- className: `pds-dropdown__heading ${b}__item-heading`,
9716
+ className: `pds-dropdown__heading ${S}__item-heading`,
9701
9717
  role: "presentation"
9702
- }, o), z.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, c) : z), V)));
9718
+ }, o), V.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, c) : V), U)));
9703
9719
  }, Li = {
9704
9720
  info: "circleInfo",
9705
9721
  warning: "triangleExclamation",
@@ -10650,7 +10666,7 @@ var Er = {
10650
10666
  }, [d]), l(() => {
10651
10667
  f(O);
10652
10668
  }, [O]);
10653
- let N = typeof a, P = "pds-popover", I = Z([`${P}__trigger-custom`, N === "string" ? `${P}__trigger-text` : ""]), z = a ? s : 0, B = m(null), { context: V, floatingStyles: H, middlewareData: U, refs: ee } = j({
10669
+ let N = typeof a, P = "pds-popover", I = Z([`${P}__trigger-custom`, N === "string" ? `${P}__trigger-text` : ""]), z = a ? s : 0, B = m(null), { context: V, floatingStyles: H, middlewareData: U, refs: W } = j({
10654
10670
  placement: u,
10655
10671
  open: O,
10656
10672
  onOpenChange(e) {
@@ -10664,44 +10680,44 @@ var Er = {
10664
10680
  ],
10665
10681
  whileElementsMounted: C,
10666
10682
  strategy: "fixed"
10667
- }), W = () => {
10683
+ }), G = () => {
10668
10684
  M(!1), c && c();
10669
- }, { getFloatingProps: G, getReferenceProps: te } = F([
10685
+ }, { getFloatingProps: K, getReferenceProps: ee } = F([
10670
10686
  k(V),
10671
10687
  A(V),
10672
10688
  L(V)
10673
- ]), K = U.arrow?.x ?? 0, ne = U.arrow?.y ?? 0, re = K + ba / 2, ie = ne + ya, { isMounted: q } = R(V, {
10689
+ ]), q = U.arrow?.x ?? 0, te = U.arrow?.y ?? 0, ne = q + ba / 2, re = te + ya, { isMounted: J } = R(V, {
10674
10690
  initial: { transform: "scale(0)" },
10675
10691
  common: ({ side: e }) => ({ transformOrigin: {
10676
- top: `${re}px calc(100% + ${ya}px)`,
10677
- bottom: `${re}px -8px`,
10678
- left: `calc(100% + ${ya}px) ${ie}px`,
10679
- right: `-8px ${ie}px`
10692
+ top: `${ne}px calc(100% + ${ya}px)`,
10693
+ bottom: `${ne}px -8px`,
10694
+ left: `calc(100% + ${ya}px) ${re}px`,
10695
+ right: `-8px ${re}px`
10680
10696
  }[e] })
10681
10697
  });
10682
10698
  return /* @__PURE__ */ e.createElement("div", {
10683
10699
  className: Z([P, t]),
10684
10700
  ...E
10685
10701
  }, /* @__PURE__ */ e.createElement("span", {
10686
- ref: ee.setReference,
10702
+ ref: W.setReference,
10687
10703
  className: `${P}__trigger`,
10688
10704
  role: "button",
10689
10705
  tabIndex: 0,
10690
- ...te(),
10706
+ ...ee(),
10691
10707
  ...E
10692
10708
  }, a ? /* @__PURE__ */ e.createElement("span", { className: I }, a) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, g), /* @__PURE__ */ e.createElement(Q, {
10693
10709
  className: `${P}__icon`,
10694
10710
  iconName: _,
10695
10711
  size: b
10696
- }))), q && /* @__PURE__ */ e.createElement(x, null, /* @__PURE__ */ e.createElement(y, {
10712
+ }))), J && /* @__PURE__ */ e.createElement(x, null, /* @__PURE__ */ e.createElement(y, {
10697
10713
  context: V,
10698
10714
  initialFocus: -1,
10699
10715
  modal: o
10700
10716
  }, /* @__PURE__ */ e.createElement("div", {
10701
- ref: ee.setFloating,
10717
+ ref: W.setFloating,
10702
10718
  className: Z([`${P}__container`, n]),
10703
10719
  style: H,
10704
- ...G()
10720
+ ...K()
10705
10721
  }, /* @__PURE__ */ e.createElement(v, {
10706
10722
  ref: B,
10707
10723
  className: `${P}__arrow`,
@@ -10714,7 +10730,7 @@ var Er = {
10714
10730
  width: ba
10715
10731
  }), /* @__PURE__ */ e.createElement("div", { className: `${P}__container-inner` }, p && /* @__PURE__ */ e.createElement("div", { className: `${P}__title` }, p), i && /* @__PURE__ */ e.createElement("div", { className: `${P}__content` }, i), o && /* @__PURE__ */ e.createElement("div", { className: `${P}__close-wrapper` }, /* @__PURE__ */ e.createElement(hn, {
10716
10732
  ariaLabel: r,
10717
- onClick: W,
10733
+ onClick: G,
10718
10734
  size: "s"
10719
10735
  })))))));
10720
10736
  }, Sa = {
@@ -11040,7 +11056,7 @@ function Ba(e) {
11040
11056
  //#endregion
11041
11057
  //#region src/components/SortableList/SortableList.tsx
11042
11058
  var Va = 24, Ha = { droppable: { strategy: je.Always } }, Ua = 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) {
11043
- 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) => {
11059
+ 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) => {
11044
11060
  if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
11045
11061
  e.preventDefault();
11046
11062
  let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
@@ -11050,132 +11066,132 @@ var Va = 24, Ha = { droppable: { strategy: je.Always } }, Ua = a(function({ chil
11050
11066
  };
11051
11067
  }
11052
11068
  return Le(e, t);
11053
- }, [_]), W = b === "always" || b === "toggle" && (l ?? !1), { currentItems: G, expandItem: te, flatNodes: K, handleReorder: ne, resetToSnapshot: re, sortableIds: ie, toggleExpand: q } = Ra({
11069
+ }, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: ee, flatNodes: q, handleReorder: te, resetToSnapshot: ne, sortableIds: re, toggleExpand: J } = Ra({
11054
11070
  defaultItems: a,
11055
- isDragEnabled: W,
11071
+ isDragEnabled: G,
11056
11072
  items: g,
11057
11073
  onReorder: v
11058
11074
  });
11059
- d(C, () => ({ resetToSnapshot: re }), [re]);
11060
- let ae = Fe(Pe(Me, { activationConstraint: { distance: 5 } }), Pe(Ae, { coordinateGetter: ee })), oe = W ? `${w}--reorder-active` : null, J = p(() => new Set(K.filter((e) => u(e.data)).map((e) => e.id)), [K, u]), Y = p(() => new Set(K.filter((e) => f(e.data)).map((e) => e.id)), [K, f]), X = s((e) => {
11061
- if (_ === 0 || Y.has(String(e))) return !1;
11062
- let t = K.find((t) => t.id === e);
11075
+ d(C, () => ({ resetToSnapshot: ne }), [ne]);
11076
+ let ie = Fe(Pe(Me, { activationConstraint: { distance: 5 } }), Pe(Ae, { coordinateGetter: W })), ae = G ? `${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) => {
11077
+ if (_ === 0 || oe.has(String(e))) return !1;
11078
+ let t = q.find((t) => t.id === e);
11063
11079
  return !t || t.depth >= _ ? !1 : t.hasChildren ? !t.isExpanded : !0;
11064
11080
  }, [
11065
- K,
11081
+ q,
11066
11082
  _,
11067
- Y
11083
+ oe
11068
11084
  ]), se = s((e) => j && X(j) ? null : ze(e), [X, j]), ce = p(() => {
11069
- if (!T || !j || J.size === 0 || T === j || X(j)) return /* @__PURE__ */ new Set();
11070
- let e = K.findIndex((e) => e.id === T), t = K.findIndex((e) => e.id === j);
11085
+ if (!T || !j || Y.size === 0 || T === j || X(j)) return /* @__PURE__ */ new Set();
11086
+ let e = q.findIndex((e) => e.id === T), t = q.findIndex((e) => e.id === j);
11071
11087
  if (e === -1 || t === -1) return /* @__PURE__ */ new Set();
11072
11088
  let [n, r] = e < t ? [e + 1, t - 1] : [t + 1, e - 1];
11073
- return new Set(K.slice(n, r + 1).filter((e) => J.has(e.id)).map((e) => e.id));
11089
+ return new Set(q.slice(n, r + 1).filter((e) => Y.has(e.id)).map((e) => e.id));
11074
11090
  }, [
11075
11091
  T,
11076
- K,
11092
+ q,
11077
11093
  X,
11078
- J,
11094
+ Y,
11079
11095
  j
11080
- ]).size > 0, le = p(() => T ? K.find((e) => e.id === T) ?? null : null, [T, K]), ue = p(() => T ? Fa(G, String(T)) ?? null : null, [T, G]), de = p(() => {
11096
+ ]).size > 0, le = p(() => T ? q.find((e) => e.id === T) ?? null : null, [T, q]), ue = p(() => T ? Fa(K, String(T)) ?? null : null, [T, K]), de = p(() => {
11081
11097
  let e = le?.depth ?? 0;
11082
- return !T || !j || O || _ === 0 ? e : Ia(K, String(T), String(j), V * Va, Va, _);
11098
+ return !T || !j || O || _ === 0 ? e : Ia(q, String(T), String(j), V * Va, Va, _);
11083
11099
  }, [
11084
11100
  T,
11085
11101
  le,
11086
11102
  V,
11087
- K,
11103
+ q,
11088
11104
  O,
11089
11105
  _,
11090
11106
  j
11091
11107
  ]), fe = p(() => {
11092
11108
  if (!T || O || de === 0 || j && X(j)) return null;
11093
- let e = K.findIndex((e) => e.id === T);
11094
- return e === -1 ? null : Wa(K, e, de);
11109
+ let e = q.findIndex((e) => e.id === T);
11110
+ return e === -1 ? null : Wa(q, e, de);
11095
11111
  }, [
11096
11112
  T,
11097
- K,
11113
+ q,
11098
11114
  X,
11099
11115
  O,
11100
11116
  j,
11101
11117
  de
11102
11118
  ]), pe = s((e) => {
11103
- let { active: t } = e, n = F.current === "keyboard", r = K.find((e) => e.id === t.id);
11104
- 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 && (q(String(t.id)), L.current = String(t.id));
11105
- }, [K, q]), me = s((e) => {
11119
+ let { active: t } = e, n = F.current === "keyboard", r = q.find((e) => e.id === t.id);
11120
+ 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 && (J(String(t.id)), L.current = String(t.id));
11121
+ }, [q, J]), me = s((e) => {
11106
11122
  let t = Ne(e);
11107
- if (!t.length || !D.current || J.size === 0) return t;
11108
- let n = K.findIndex((e) => e.id === D.current);
11123
+ if (!t.length || !D.current || Y.size === 0) return t;
11124
+ let n = q.findIndex((e) => e.id === D.current);
11109
11125
  for (let e of t) {
11110
11126
  let t = e.id;
11111
11127
  if (t === D.current) return [e];
11112
- let r = K.findIndex((e) => e.id === t);
11128
+ let r = q.findIndex((e) => e.id === t);
11113
11129
  if (n === -1 || r === -1) return [e];
11114
- if (J.has(String(t))) {
11130
+ if (Y.has(String(t))) {
11115
11131
  if (n > r) continue;
11116
- let e = !Y.has(String(t)), i = _ > 0 && U.current > 0;
11132
+ let e = !oe.has(String(t)), i = _ > 0 && U.current > 0;
11117
11133
  if (!X(t) && (!e || !i)) continue;
11118
11134
  }
11119
11135
  let [i, a] = n < r ? [n + 1, r - 1] : [r + 1, n - 1];
11120
- if (!K.slice(i, a + 1).some((e) => J.has(e.id))) return [e];
11136
+ if (!q.slice(i, a + 1).some((e) => Y.has(e.id))) return [e];
11121
11137
  }
11122
11138
  return [];
11123
11139
  }, [
11124
- K,
11125
- J,
11126
- Y
11140
+ q,
11141
+ Y,
11142
+ oe
11127
11143
  ]), he = s((e) => {
11128
11144
  let t = e.over?.id ?? null, n = D.current;
11129
- if (t && n && t !== n && J.size > 0) {
11130
- let e = K.findIndex((e) => e.id === n), r = K.findIndex((e) => e.id === t);
11145
+ if (t && n && t !== n && Y.size > 0) {
11146
+ let e = q.findIndex((e) => e.id === n), r = q.findIndex((e) => e.id === t);
11131
11147
  if (e !== -1 && r !== -1) {
11132
11148
  let [t, n] = e < r ? [e + 1, r] : [r, e - 1];
11133
- if (K.slice(t, n + 1).some((e) => J.has(e.id))) return;
11149
+ if (q.slice(t, n + 1).some((e) => Y.has(e.id))) return;
11134
11150
  }
11135
11151
  }
11136
11152
  M(t);
11137
- }, [K, J]), ge = s((e) => {
11153
+ }, [q, Y]), ge = s((e) => {
11138
11154
  let t = e.delta.x;
11139
11155
  if (P.current = t, A.current || _ === 0) return;
11140
11156
  let n = Math.floor(t / Va), r = U.current;
11141
11157
  (n > r || n < r && t < r * Va - Va * .4) && (U.current = n, H(n));
11142
11158
  }, [_]), _e = s((e) => {
11143
11159
  let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
11144
- E(null), D.current = null, k(!1), A.current = !1, M(null), U.current = 0, H(0), L.current && (te(L.current), L.current = null);
11145
- let o = K.findIndex((e) => e.id === t.id), s = r ? i * Va : a * Va, c = !n || t.id === n.id, l = n?.id ?? null;
11146
- if (r && i > 0 && c && o > 0 && (l = K[o - 1].id), !l || t.id === l) {
11160
+ E(null), D.current = null, k(!1), A.current = !1, M(null), U.current = 0, H(0), L.current && (ee(L.current), L.current = null);
11161
+ let o = q.findIndex((e) => e.id === t.id), s = r ? i * Va : a * Va, c = !n || t.id === n.id, l = n?.id ?? null;
11162
+ if (r && i > 0 && c && o > 0 && (l = q[o - 1].id), !l || t.id === l) {
11147
11163
  if (o === -1) return;
11148
- let e = K[o];
11164
+ let e = q[o];
11149
11165
  if (!e) return;
11150
- let n = Ia(K, String(t.id), String(t.id), s, Va, _);
11166
+ let n = Ia(q, String(t.id), String(t.id), s, Va, _);
11151
11167
  if (n === e.depth) return;
11152
- let r = [...K], [i] = r.splice(o, 1), a = Wa(r, o, n);
11153
- if (a && Y.has(a)) return;
11168
+ let r = [...q], [i] = r.splice(o, 1), a = Wa(r, o, n);
11169
+ if (a && oe.has(a)) return;
11154
11170
  let c = {
11155
11171
  ...i,
11156
11172
  depth: n,
11157
11173
  parentId: a
11158
11174
  };
11159
11175
  r.splice(o, 0, c);
11160
- let l = K.filter((e) => e.id !== t.id).map((e) => e.id), u = r.filter((e) => e.id !== t.id).map((e) => e.id);
11161
- if (l.some((e, t) => J.has(e) ? u.indexOf(e) !== t : !1)) return;
11162
- ne(r), n > 0 && a && te(a);
11176
+ 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);
11177
+ if (l.some((e, t) => Y.has(e) ? u.indexOf(e) !== t : !1)) return;
11178
+ te(r), n > 0 && a && ee(a);
11163
11179
  return;
11164
11180
  }
11165
- let u = K.findIndex((e) => e.id === l);
11181
+ let u = q.findIndex((e) => e.id === l);
11166
11182
  if (o === -1 || u === -1) return;
11167
- let d = [...K], f = d[o].depth, [p] = d.splice(o, 1), m = [];
11183
+ let d = [...q], f = d[o].depth, [p] = d.splice(o, 1), m = [];
11168
11184
  for (; d.length > o && d[o].depth > f;) m.push(d.splice(o, 1)[0]);
11169
11185
  let h = d.findIndex((e) => e.id === l), g, v;
11170
11186
  if (X(l)) {
11171
- let e = K[u];
11187
+ let e = q[u];
11172
11188
  g = Math.min(e.depth + 1, _), v = String(l);
11173
11189
  } else {
11174
11190
  g = Ia(d, String(t.id), String(l), s, Va, _, p.depth);
11175
11191
  let e = d[h];
11176
11192
  v = e && e.depth === g - 1 ? String(l) : Wa(d, h, g);
11177
11193
  }
11178
- if (v && Y.has(v)) return;
11194
+ if (v && oe.has(v)) return;
11179
11195
  let y = {
11180
11196
  ...p,
11181
11197
  depth: g,
@@ -11183,42 +11199,42 @@ var Va = 24, Ha = { droppable: { strategy: je.Always } }, Ua = a(function({ chil
11183
11199
  }, b = d[h], x = b && b.depth === g - 1 && v === String(l) || o < u ? h + 1 : h;
11184
11200
  d.splice(x, 0, y, ...m);
11185
11201
  let S = new Set([String(t.id), ...m.map((e) => e.id)]);
11186
- K.some((e, t) => !J.has(e.id) || S.has(e.id) || e.id === v ? !1 : d.findIndex((t) => t.id === e.id) !== t) || (ne(d), g > 0 && v !== null && te(v));
11202
+ 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 && ee(v));
11187
11203
  }, [
11204
+ ee,
11205
+ q,
11188
11206
  te,
11189
- K,
11190
- ne,
11191
11207
  X,
11192
- J,
11208
+ Y,
11193
11209
  _,
11194
- Y
11210
+ oe
11195
11211
  ]), ve = s(() => {
11196
- 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 && (te(L.current), L.current = null);
11197
- }, [te]), ye = p(() => ({
11212
+ 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 && (ee(L.current), L.current = null);
11213
+ }, [ee]), ye = p(() => ({
11198
11214
  onDragStart({ active: e }) {
11199
- let t = K.find((t) => t.id === e.id), n = Fa(G, String(e.id));
11200
- return `Picked up ${n ? c(n) : String(e.id)}. Current position: ${t ? K.indexOf(t) + 1 : "?"} of ${K.length} at depth ${t?.depth ?? 0}.`;
11215
+ let t = q.find((t) => t.id === e.id), n = Fa(K, String(e.id));
11216
+ return `Picked up ${n ? c(n) : String(e.id)}. Current position: ${t ? q.indexOf(t) + 1 : "?"} of ${q.length} at depth ${t?.depth ?? 0}.`;
11201
11217
  },
11202
11218
  onDragOver({ active: e, over: t }) {
11203
11219
  if (!t) return;
11204
- let n = K.findIndex((e) => e.id === t.id);
11220
+ let n = q.findIndex((e) => e.id === t.id);
11205
11221
  if (n === -1) return;
11206
- let r = Fa(G, String(e.id)), i = r ? c(r) : String(e.id), a = Ia(K, String(e.id), String(t.id), P.current, Va, _);
11207
- return `Moving ${i}. Target position: ${n + 1} of ${K.length} at depth ${a}.`;
11222
+ let r = Fa(K, String(e.id)), i = r ? c(r) : String(e.id), a = Ia(q, String(e.id), String(t.id), P.current, Va, _);
11223
+ return `Moving ${i}. Target position: ${n + 1} of ${q.length} at depth ${a}.`;
11208
11224
  },
11209
11225
  onDragEnd({ active: e, over: t }) {
11210
- let n = Fa(G, String(e.id)), r = n ? c(n) : String(e.id);
11226
+ let n = Fa(K, String(e.id)), r = n ? c(n) : String(e.id);
11211
11227
  if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
11212
- let i = K.findIndex((e) => e.id === t.id), a = Ia(K, String(e.id), String(t.id), P.current, Va, _);
11213
- return `${r} dropped at position ${i + 1} of ${K.length} at depth ${a}.`;
11228
+ let i = q.findIndex((e) => e.id === t.id), a = Ia(q, String(e.id), String(t.id), P.current, Va, _);
11229
+ return `${r} dropped at position ${i + 1} of ${q.length} at depth ${a}.`;
11214
11230
  },
11215
11231
  onDragCancel({ active: e }) {
11216
- let t = K.find((t) => t.id === e.id), n = Fa(G, String(e.id));
11217
- return `Sorting cancelled. ${n ? c(n) : String(e.id)} returned to position ${t ? K.indexOf(t) + 1 : "?"} of ${K.length}.`;
11232
+ let t = q.find((t) => t.id === e.id), n = Fa(K, String(e.id));
11233
+ return `Sorting cancelled. ${n ? c(n) : String(e.id)} returned to position ${t ? q.indexOf(t) + 1 : "?"} of ${q.length}.`;
11218
11234
  }
11219
11235
  }), [
11220
- G,
11221
11236
  K,
11237
+ q,
11222
11238
  c,
11223
11239
  _
11224
11240
  ]), be = { columns: i }, xe = t.map(n, (t) => o(t) && t.type === La ? e.cloneElement(t, be) : t);
@@ -11234,14 +11250,14 @@ var Va = 24, Ha = { droppable: { strategy: je.Always } }, Ua = a(function({ chil
11234
11250
  onDragMove: ge,
11235
11251
  onDragOver: he,
11236
11252
  onDragStart: pe,
11237
- sensors: ae
11253
+ sensors: ie
11238
11254
  }, /* @__PURE__ */ e.createElement(Ie, {
11239
- items: ie,
11255
+ items: re,
11240
11256
  strategy: se
11241
11257
  }, /* @__PURE__ */ e.createElement("div", {
11242
11258
  className: Z([
11243
11259
  w,
11244
- oe,
11260
+ ae,
11245
11261
  r ?? ""
11246
11262
  ]),
11247
11263
  onKeyDownCapture: () => {
@@ -11252,26 +11268,26 @@ var Va = 24, Ha = { droppable: { strategy: je.Always } }, Ua = a(function({ chil
11252
11268
  },
11253
11269
  role: "list",
11254
11270
  ...S
11255
- }, xe, K.map((t) => {
11271
+ }, xe, q.map((t) => {
11256
11272
  let n = {
11257
11273
  depth: t.depth,
11258
11274
  hasChildren: t.hasChildren,
11259
11275
  index: t.index,
11260
11276
  isDragging: t.id === T,
11261
11277
  isExpanded: t.isExpanded,
11262
- isLocked: J.has(t.id),
11263
- toggleExpand: () => q(t.id)
11278
+ isLocked: Y.has(t.id),
11279
+ toggleExpand: () => J(t.id)
11264
11280
  }, r = y(t.data, n), a = t.id === T, s = {
11265
11281
  columns: i,
11266
11282
  depth: t.depth,
11267
11283
  hasChildren: t.hasChildren,
11268
- isDragActive: W,
11284
+ isDragActive: G,
11269
11285
  isDragging: a,
11270
11286
  isDropTarget: t.id === j && X(t.id),
11271
- isProjectedParent: t.id === fe && !Y.has(t.id),
11287
+ isProjectedParent: t.id === fe && !oe.has(t.id),
11272
11288
  isExpanded: t.isExpanded,
11273
- ...J.has(t.id) ? { isLocked: !0 } : {},
11274
- onToggleExpand: () => q(t.id),
11289
+ ...Y.has(t.id) ? { isLocked: !0 } : {},
11290
+ onToggleExpand: () => J(t.id),
11275
11291
  ...a && !O && _ > 0 ? { projectedDepthDelta: de - t.depth } : {}
11276
11292
  };
11277
11293
  return o(r) ? e.cloneElement(r, {
@@ -11594,8 +11610,8 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11594
11610
  className: Z([a, t ?? ""]),
11595
11611
  ...i
11596
11612
  }, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
11597
- }, $a = ({ 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: g = "No results found.", emptyStateMessage: _, footer: v, getPageSizeLabel: y = (e) => `Show ${e} rows per page`, getRowClassName: b, getRowId: x, getRowSelectDisabledReason: S, getSelectRowLabel: C = (e, t) => `Select row ${t}`, getSortLabel: w = (e) => `Sort by ${e}`, inspectedRowId: T, isLoading: E = !1, isRowSelectable: D = () => !0, itemsPerPage: O, loadingRowCount: k = 5, nextDetailPanelRowLabel: A = "Next row", onDetailPanelNext: j, onDetailPanelPrev: M, onPageChange: N, onPageSizeChange: P, onRowInspect: F, onRowSelectionChange: I, onSort: L, pageSizeOptions: R, pageSizeSelectLabel: z = "Rows per page", paginationLabels: B, panel: V, prevDetailPanelRowLabel: H = "Previous row", renderDetailPanel: U, renderDetailPanelFooter: ee, rowData: W, selectAllLabel: G = "Select all rows", selectedRows: te, sortKey: K, sortOrder: ne, totalItemCount: re, ...ie }) => {
11598
- let q = "pds-table", ae = u(), oe = u(), J = m(null), Y = L !== void 0, X = N !== void 0, se = P !== void 0, ce = X || O !== void 0 || R !== void 0, le = W.length > 0 || X && (re ?? 0) > 0, [ue, de] = h({
11613
+ }, $a = ({ 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: g = "No results found.", emptyStateMessage: _, footer: v, getPageSizeLabel: y = (e) => `Show ${e} rows per page`, getRowClassName: b, getRowId: x, getRowSelectDisabledReason: S, getSelectRowLabel: C = (e, t) => `Select row ${t}`, getSortLabel: w = (e) => `Sort by ${e}`, inspectedRowId: T, isLoading: E = !1, isRowSelectable: D = () => !0, itemsPerPage: O, loadingRowCount: k = 5, nextDetailPanelRowLabel: A = "Next row", onDetailPanelNext: j, onDetailPanelPrev: M, onPageChange: N, onPageSizeChange: P, onRowInspect: F, onRowSelectionChange: I, onSort: L, pageSizeOptions: R, pageSizeSelectLabel: z = "Rows per page", paginationLabels: B, panel: V, prevDetailPanelRowLabel: H = "Previous row", renderDetailPanel: U, renderDetailPanelFooter: W, rowData: G, selectAllLabel: K = "Select all rows", selectedRows: ee, sortKey: q, sortOrder: te, totalItemCount: ne, ...re }) => {
11614
+ let J = "pds-table", ie = u(), ae = u(), Y = m(null), oe = L !== void 0, X = N !== void 0, se = P !== void 0, ce = X || O !== void 0 || R !== void 0, le = G.length > 0 || X && (ne ?? 0) > 0, [ue, de] = h({
11599
11615
  key: a ?? "",
11600
11616
  order: a === void 0 ? "asc" : o
11601
11617
  }), [fe, pe] = h(1), [me, he] = h(O ?? R?.[0] ?? 10), [ge, _e] = h(null), ve = T ?? ge, ye = !!ve && !!U, be = X ? O ?? 10 : me, xe = (e) => {
@@ -11603,25 +11619,25 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11603
11619
  };
11604
11620
  l(() => {
11605
11621
  X || pe(1);
11606
- }, [W.length, X]), l(() => {
11622
+ }, [G.length, X]), l(() => {
11607
11623
  process.env.NODE_ENV !== "production" && i !== void 0 && !N && console.warn("[Table] `currentPage` was provided without `onPageChange`. Controlled pagination requires both props. The table is running in uncontrolled mode.");
11608
11624
  }, []);
11609
- let Se = I !== void 0, Ce = te !== void 0, [we, Te] = h(/* @__PURE__ */ new Set()), Ee = Ce ? new Set(te) : we, De = p(() => new Map(W.map((e, t) => [e, t])), [W]), Oe = (e, t) => x ? x(e) : String(De.get(e) ?? t), ke = p(() => W.findIndex((e, t) => (x ? x(e) : String(De.get(e) ?? t)) === ve), [
11610
- W,
11625
+ let Se = I !== void 0, Ce = ee !== void 0, [we, Te] = h(/* @__PURE__ */ new Set()), Ee = Ce ? new Set(ee) : we, De = p(() => new Map(G.map((e, t) => [e, t])), [G]), Oe = (e, t) => x ? x(e) : String(De.get(e) ?? t), ke = p(() => G.findIndex((e, t) => (x ? x(e) : String(De.get(e) ?? t)) === ve), [
11626
+ G,
11611
11627
  ve,
11612
11628
  x,
11613
11629
  De
11614
- ]), Ae = ke >= 0 ? W[ke] : null, je = (e, t) => {
11630
+ ]), Ae = ke >= 0 ? G[ke] : null, je = (e, t) => {
11615
11631
  U && T === void 0 && _e(t), F?.(e, t);
11616
11632
  }, Me = () => {
11617
11633
  T === void 0 && _e(null);
11618
11634
  }, Ne = () => {
11619
11635
  if (ke <= 0) return;
11620
- let e = W[ke - 1], t = Oe(e, ke - 1);
11636
+ let e = G[ke - 1], t = Oe(e, ke - 1);
11621
11637
  T === void 0 && _e(t), F?.(e, t), M?.(e, t);
11622
11638
  }, Pe = () => {
11623
- if (ke >= W.length - 1) return;
11624
- let e = W[ke + 1], t = Oe(e, ke + 1);
11639
+ if (ke >= G.length - 1) return;
11640
+ let e = G[ke + 1], t = Oe(e, ke + 1);
11625
11641
  T === void 0 && _e(t), F?.(e, t), j?.(e, t);
11626
11642
  }, Fe = (e) => {
11627
11643
  if (!ye || e.key !== "ArrowUp" && e.key !== "ArrowDown") return;
@@ -11630,21 +11646,21 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11630
11646
  };
11631
11647
  l(() => {
11632
11648
  if (!ye) return;
11633
- let e = J.current, t = e?.querySelector(`.${q}__row--inspected`);
11649
+ let e = Y.current, t = e?.querySelector(`.${J}__row--inspected`);
11634
11650
  if (!e || !t) return;
11635
11651
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = e.querySelector("thead")?.getBoundingClientRect().height ?? 0, a = n.top + i;
11636
11652
  r.top < a ? e.scrollTop -= a - r.top : r.bottom > n.bottom && (e.scrollTop += r.bottom - n.bottom);
11637
11653
  let o = document.activeElement;
11638
- o instanceof HTMLElement && o.classList.contains(`${q}__row--inspectable`) && t.focus({ preventScroll: !0 });
11654
+ o instanceof HTMLElement && o.classList.contains(`${J}__row--inspectable`) && t.focus({ preventScroll: !0 });
11639
11655
  }, [
11640
11656
  ve,
11641
11657
  ye,
11642
- q
11658
+ J
11643
11659
  ]);
11644
- let Ie = Y ? K ?? "" : ue.key, Le = Y ? ne ?? "asc" : ue.order, Re = p(() => {
11660
+ let Ie = oe ? q ?? "" : ue.key, Le = oe ? te ?? "asc" : ue.order, Re = p(() => {
11645
11661
  if (E) return [];
11646
- let e = W;
11647
- if (!Y && ue.key !== "") {
11662
+ let e = G;
11663
+ if (!oe && ue.key !== "") {
11648
11664
  let t = r.find((e) => e.id === ue.key)?.sortKey ?? ue.key;
11649
11665
  e = [...e].sort((e, n) => {
11650
11666
  let r = String(e[t]).localeCompare(String(n[t]));
@@ -11657,21 +11673,21 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11657
11673
  }
11658
11674
  return e;
11659
11675
  }, [
11660
- W,
11676
+ G,
11661
11677
  ue,
11662
- Y,
11678
+ oe,
11663
11679
  X,
11664
11680
  ce,
11665
11681
  fe,
11666
11682
  be,
11667
11683
  E
11668
11684
  ]), ze = (e) => {
11669
- Y ? L(e, K === e && ne === "asc" ? "desc" : "asc") : de((t) => ({
11685
+ oe ? L(e, q === e && te === "asc" ? "desc" : "asc") : de((t) => ({
11670
11686
  key: e,
11671
11687
  order: t.key === e && t.order === "asc" ? "desc" : "asc"
11672
11688
  }));
11673
11689
  }, Be = (e) => Ie === e ? Le === "asc" ? "ascending" : "descending" : "none", Ve = (e, t) => {
11674
- let n = `${q}__sort-button-${t}`, r = !E && Re.length === 0;
11690
+ let n = `${J}__sort-button-${t}`, r = !E && Re.length === 0;
11675
11691
  if (E || r || Ie === "") return t === "top" ? `${n}--inactive` : "";
11676
11692
  let i = Ie === e;
11677
11693
  return t === "top" ? i && Le === "asc" ? "" : `${n}--inactive` : i && Le === "desc" ? `${n}--desc` : "";
@@ -11706,8 +11722,8 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11706
11722
  key: `row-${i}`,
11707
11723
  "aria-selected": a ? o : void 0,
11708
11724
  className: Z([
11709
- a ? `${q}__row--inspectable` : null,
11710
- o ? `${q}__row--inspected` : null,
11725
+ a ? `${J}__row--inspectable` : null,
11726
+ o ? `${J}__row--inspected` : null,
11711
11727
  b?.(t, i) ?? null
11712
11728
  ]),
11713
11729
  onClick: a ? () => je(t, i) : void 0,
@@ -11718,7 +11734,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11718
11734
  }, Se && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Lr, {
11719
11735
  checked: Ee.has(i),
11720
11736
  disabled: !s,
11721
- id: `${oe}-row-${i}`,
11737
+ id: `${ae}-row-${i}`,
11722
11738
  inputProps: c ? { title: c } : void 0,
11723
11739
  label: u,
11724
11740
  onChange: () => Ge(i),
@@ -11731,17 +11747,17 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11731
11747
  className: Z(["pds-table-wrapper__content", ye ? "pds-table-wrapper__content--panel-open" : null]),
11732
11748
  style: Xe
11733
11749
  }, /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__table-column" }, /* @__PURE__ */ e.createElement("div", {
11734
- ref: J,
11750
+ ref: Y,
11735
11751
  className: "pds-table-wrapper__table-area"
11736
11752
  }, /* @__PURE__ */ e.createElement("table", {
11737
11753
  "aria-busy": E,
11738
- className: Z([q, t]),
11739
- ...ie
11754
+ className: Z([J, t]),
11755
+ ...re
11740
11756
  }, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, Se && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Lr, {
11741
11757
  checked: Ue,
11742
- id: oe,
11758
+ id: ae,
11743
11759
  indeterminate: We,
11744
- label: G,
11760
+ label: K,
11745
11761
  onChange: Ke,
11746
11762
  showLabel: !1
11747
11763
  })), r.map((t) => /* @__PURE__ */ e.createElement("th", {
@@ -11749,21 +11765,21 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11749
11765
  "aria-sort": t.sortable ? Be(t.id) : void 0
11750
11766
  }, t.sortable ? /* @__PURE__ */ e.createElement("button", {
11751
11767
  "aria-label": w(ln(t.header)),
11752
- className: `${q}__sort-button`,
11768
+ className: `${J}__sort-button`,
11753
11769
  onClick: () => ze(t.id),
11754
11770
  type: "button"
11755
11771
  }, t.header, /* @__PURE__ */ e.createElement("span", {
11756
11772
  "aria-hidden": "true",
11757
- className: `${q}__sort-icons`
11758
- }, /* @__PURE__ */ e.createElement("span", { className: Z([`${q}__sort-button-top`, Ve(t.id, "top")]) }, /* @__PURE__ */ e.createElement(Q, {
11773
+ className: `${J}__sort-icons`
11774
+ }, /* @__PURE__ */ e.createElement("span", { className: Z([`${J}__sort-button-top`, Ve(t.id, "top")]) }, /* @__PURE__ */ e.createElement(Q, {
11759
11775
  iconName: "caretUp",
11760
11776
  size: "m"
11761
- })), /* @__PURE__ */ e.createElement("span", { className: Z([`${q}__sort-button-bottom`, Ve(t.id, "bottom")]) }, /* @__PURE__ */ e.createElement(Q, {
11777
+ })), /* @__PURE__ */ e.createElement("span", { className: Z([`${J}__sort-button-bottom`, Ve(t.id, "bottom")]) }, /* @__PURE__ */ e.createElement(Q, {
11762
11778
  iconName: "caretDown",
11763
11779
  size: "m"
11764
11780
  })))) : /* @__PURE__ */ e.createElement("span", null, t.header))))), /* @__PURE__ */ e.createElement("tbody", null, E ? Array.from({ length: k }, (e, t) => qe(t)) : Re.length === 0 ? Je() : Re.map((e, t) => Ye(e, t))))), ce && !E && le && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination" }, R && R.length > 0 && /* @__PURE__ */ e.createElement($n, {
11765
11781
  autoWidth: !0,
11766
- id: ae,
11782
+ id: ie,
11767
11783
  label: z,
11768
11784
  onOptionSelect: (e) => xe(Number(e.value)),
11769
11785
  options: R.map((e) => ({
@@ -11778,7 +11794,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11778
11794
  itemsPerPage: be,
11779
11795
  labelStrings: B,
11780
11796
  onPageChange: X ? N : pe,
11781
- totalItemCount: X ? re ?? 0 : W.length
11797
+ totalItemCount: X ? ne ?? 0 : G.length
11782
11798
  }))), v && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__footer" }, v)), U && /* @__PURE__ */ e.createElement("div", { className: Z(["pds-table-wrapper__detail-panel", ye ? "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(hn, {
11783
11799
  ariaLabel: n,
11784
11800
  onClick: Me,
@@ -11789,9 +11805,9 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11789
11805
  onPrev: Ne,
11790
11806
  onNext: Pe,
11791
11807
  hasPrev: ke > 0,
11792
- hasNext: ke < W.length - 1
11793
- }))), ye && Ae && (ee || s) && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__detail-panel-footer" }, ee ? ee(Ae, {
11794
- hasNext: ke < W.length - 1,
11808
+ hasNext: ke < G.length - 1
11809
+ }))), ye && Ae && (W || s) && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__detail-panel-footer" }, W ? W(Ae, {
11810
+ hasNext: ke < G.length - 1,
11795
11811
  hasPrev: ke > 0,
11796
11812
  onClose: Me,
11797
11813
  onNext: Pe,
@@ -11808,7 +11824,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11808
11824
  }), /* @__PURE__ */ e.createElement(pn, {
11809
11825
  hasBorder: !0,
11810
11826
  ariaLabel: A,
11811
- disabled: ke >= W.length - 1,
11827
+ disabled: ke >= G.length - 1,
11812
11828
  iconName: "angleDown",
11813
11829
  onClick: Pe,
11814
11830
  size: "s",
@@ -12060,21 +12076,25 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12060
12076
  "purple",
12061
12077
  "magenta",
12062
12078
  "rose",
12063
- "red",
12064
- "silver"
12079
+ "red"
12065
12080
  ], lo = [
12066
12081
  "orange-solid",
12067
12082
  "teal-solid",
12068
12083
  "indigo-solid",
12069
12084
  "magenta-solid",
12070
12085
  "rose-solid",
12086
+ "gold-solid",
12087
+ "lime-solid",
12088
+ "sky-solid",
12089
+ "slate-solid"
12090
+ ], uo = [
12071
12091
  "success-solid",
12072
12092
  "warning-solid",
12073
12093
  "critical-solid",
12074
12094
  "info-solid",
12075
12095
  "discovery-solid"
12076
- ], uo = (e) => co[parseInt(_(e), 16) % co.length], fo = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, po = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: s = "s", tagColor: c, tagLabel: l, truncationLength: u = 20, ...d }) => {
12077
- let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${uo(l)}`, _ = s === "m" ? null : `${m}--${s}`, v = f ? null : "pds-tag--hide", y = () => {
12096
+ ], fo = [...lo, ...uo], po = [...co, ...lo], mo = (e) => po[parseInt(_(e), 16) % po.length], ho = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, go = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: s = "s", tagColor: c, tagLabel: l, truncationLength: u = 20, ...d }) => {
12097
+ let [f, p] = h(!0), m = "pds-tag", g = c ? `${m}--${c}` : `${m}--${mo(l)}`, _ = s === "m" ? null : `${m}--${s}`, v = f ? null : "pds-tag--hide", y = () => {
12078
12098
  p((e) => !e);
12079
12099
  }, b, x, S;
12080
12100
  if (r && !n && o(r)) {
@@ -12096,7 +12116,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12096
12116
  }, /* @__PURE__ */ e.createElement("span", {
12097
12117
  className: `${m}__label`,
12098
12118
  title: l
12099
- }, u > 0 ? fo(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
12119
+ }, u > 0 ? ho(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
12100
12120
  "aria-label": `${a}: ${l}`,
12101
12121
  className: `${m}__remove`,
12102
12122
  onClick: () => {
@@ -12108,7 +12128,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12108
12128
  iconName: "xmark",
12109
12129
  size: "m"
12110
12130
  })) : null);
12111
- }, mo = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
12131
+ }, _o = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
12112
12132
  let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = Xe(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
12113
12133
  return /* @__PURE__ */ e.createElement("div", {
12114
12134
  className: Z([
@@ -12119,7 +12139,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12119
12139
  ]),
12120
12140
  ...a
12121
12141
  }, /* @__PURE__ */ e.createElement("div", { className: `${o}__layout` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-left` }, u), /* @__PURE__ */ e.createElement("div", { className: `${o}__items-right` }, d)));
12122
- }, ho = () => {
12142
+ }, vo = () => {
12123
12143
  let e = typeof window < "u", t = (e) => e >= 1440 ? "xl" : e >= 1280 ? "lg" : e >= 768 ? "md" : "sm", [n, r] = h(e ? t(window.innerWidth) : "lg");
12124
12144
  return l(() => {
12125
12145
  if (!e) return;
@@ -12130,7 +12150,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12130
12150
  window.removeEventListener("resize", n);
12131
12151
  };
12132
12152
  }, []), n;
12133
- }, go = ({ children: t, className: n, drawerContent: r, drawerProps: a, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: u, keyboardShortcuts: d = !0, labels: p, mainBackground: g, mainContentElement: _ = "main", mainContentMaxWidth: v = 1600, mainContentProps: y, onDrawerToggle: b, onSidebarToggle: x, scrollableContent: S, sidebarBackground: C, sidebarCollapsedWidth: w = 4, sidebarExpandedWidth: T = "15%", sidebarExpandedWidthMax: E = 18, sidebarExpandedWidthMin: D = 14.75, sidebarProps: O, topOffset: k, ...A }) => {
12153
+ }, yo = ({ children: t, className: n, drawerContent: r, drawerProps: a, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: u, keyboardShortcuts: d = !0, labels: p, mainBackground: g, mainContentElement: _ = "main", mainContentMaxWidth: v = 1600, mainContentProps: y, onDrawerToggle: b, onSidebarToggle: x, scrollableContent: S, sidebarBackground: C, sidebarCollapsedWidth: w = 4, sidebarExpandedWidth: T = "15%", sidebarExpandedWidthMax: E = 18, sidebarExpandedWidthMin: D = 14.75, sidebarProps: O, topOffset: k, ...A }) => {
12134
12154
  let [j, M] = h(u || !1);
12135
12155
  l(() => {
12136
12156
  M(u || !1);
@@ -12152,19 +12172,19 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12152
12172
  return;
12153
12173
  }
12154
12174
  M(!j);
12155
- }, U = ho();
12175
+ }, U = vo();
12156
12176
  l(() => {
12157
12177
  U === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : U !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
12158
12178
  }, [U]);
12159
- let ee = d && s;
12179
+ let W = d && s;
12160
12180
  Rt("[", (e) => {
12161
12181
  e.preventDefault(), j || H();
12162
- }, { enabled: ee }), Rt("]", (e) => {
12182
+ }, { enabled: W }), Rt("]", (e) => {
12163
12183
  e.preventDefault(), j && H();
12164
- }, { enabled: ee });
12165
- let W = m(null);
12184
+ }, { enabled: W });
12185
+ let G = m(null);
12166
12186
  f(() => {
12167
- let e = W.current;
12187
+ let e = G.current;
12168
12188
  if (!e) return;
12169
12189
  if (R != null) {
12170
12190
  e.style.setProperty("--pds-app-layout-top-offset", R);
@@ -12182,14 +12202,14 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12182
12202
  r.disconnect(), i?.disconnect(), window.removeEventListener("resize", t);
12183
12203
  };
12184
12204
  }, [R]);
12185
- let G = Xe(t), te = G.__unslotted, K = G.header, ne = G.footer, re = G.sidebar, ie = G.identity, q = G["content-top"], ae = G.navigation, oe = G["content-bottom"], J = ie || q || ae || oe, Y = J ? /* @__PURE__ */ e.createElement(e.Fragment, null, (ie || o) && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-identity` }, ie, o && !j && /* @__PURE__ */ e.createElement(pn, {
12205
+ let K = Xe(t), ee = K.__unslotted, q = K.header, te = K.footer, ne = K.sidebar, re = K.identity, J = K["content-top"], ie = K.navigation, ae = K["content-bottom"], Y = re || J || ie || ae, oe = Y ? /* @__PURE__ */ e.createElement(e.Fragment, null, (re || o) && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-identity` }, re, o && !j && /* @__PURE__ */ e.createElement(pn, {
12186
12206
  hasBorder: !0,
12187
12207
  ariaLabel: F.drawerToggle,
12188
12208
  className: `${N}__drawer-toggle`,
12189
12209
  iconName: "sidebar",
12190
12210
  onClick: b,
12191
12211
  size: "s"
12192
- })), q && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-content-top` }, q), ae && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-navigation` }, ae), oe && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-content-bottom` }, oe)) : re, X = i(_, {
12212
+ })), J && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-content-top` }, J), ie && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-navigation` }, ie), ae && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-content-bottom` }, ae)) : ne, X = i(_, {
12193
12213
  ...y,
12194
12214
  className: Z([`${N}__main`, y?.className]),
12195
12215
  id: I,
@@ -12201,13 +12221,13 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12201
12221
  }, /* @__PURE__ */ e.createElement("div", {
12202
12222
  className: `${N}__main-inner`,
12203
12223
  style: { maxWidth: L }
12204
- }, te)), se = /* @__PURE__ */ e.createElement("div", {
12224
+ }, ee)), se = /* @__PURE__ */ e.createElement("div", {
12205
12225
  className: `${N}__content-column`,
12206
12226
  style: { backgroundColor: g || void 0 }
12207
- }, X, ne && /* @__PURE__ */ e.createElement("div", { className: `${N}__footer` }, /* @__PURE__ */ e.createElement("div", {
12227
+ }, X, te && /* @__PURE__ */ e.createElement("div", { className: `${N}__footer` }, /* @__PURE__ */ e.createElement("div", {
12208
12228
  className: `${N}__footer-inner`,
12209
12229
  style: { maxWidth: L }
12210
- }, ne))), ce = /* @__PURE__ */ e.createElement(e.Fragment, null, (re || J) && /* @__PURE__ */ e.createElement("div", {
12230
+ }, te))), ce = /* @__PURE__ */ e.createElement(e.Fragment, null, (ne || Y) && /* @__PURE__ */ e.createElement("div", {
12211
12231
  ...O,
12212
12232
  className: Z([
12213
12233
  `${N}__sidebar`,
@@ -12234,20 +12254,20 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12234
12254
  crossAxis: -96
12235
12255
  },
12236
12256
  preferredPlacement: "right-end"
12237
- }), /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-inner` }, Y)), se);
12257
+ }), /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-inner` }, oe)), se);
12238
12258
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
12239
- ref: W,
12259
+ ref: G,
12240
12260
  className: Z([
12241
12261
  N,
12242
12262
  P,
12243
- K ? `${N}--has-header` : null,
12263
+ q ? `${N}--has-header` : null,
12244
12264
  n ?? ""
12245
12265
  ]),
12246
12266
  ...A
12247
12267
  }, /* @__PURE__ */ e.createElement(li, {
12248
12268
  destination: I,
12249
12269
  text: F.skipToContent
12250
- }), K ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, K), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, ce)) : ce), o && /* @__PURE__ */ e.createElement(ta, {
12270
+ }), 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(ta, {
12251
12271
  ...a,
12252
12272
  isOpen: c,
12253
12273
  placement: "left",
@@ -12255,7 +12275,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12255
12275
  !e && c && b && b();
12256
12276
  }
12257
12277
  }, r));
12258
- }, _o = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
12278
+ }, bo = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
12259
12279
  let c = "pds-docs-layout", l = {
12260
12280
  "--docs-sidebar-max-width": `${i}rem`,
12261
12281
  "--docs-sidebar-min-width": `${a}rem`,
@@ -12273,7 +12293,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12273
12293
  },
12274
12294
  ...s
12275
12295
  }, f && /* @__PURE__ */ e.createElement("aside", { className: `${c}__sidebar` }, /* @__PURE__ */ e.createElement("div", { className: `${c}__sidebar-inner` }, f)), /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, d));
12276
- }, vo = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
12296
+ }, xo = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
12277
12297
  let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = Xe(t);
12278
12298
  return /* @__PURE__ */ e.createElement("div", {
12279
12299
  className: Z([u, n ?? ""]),
@@ -12287,7 +12307,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12287
12307
  },
12288
12308
  ...l
12289
12309
  }, /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, f.__unslotted || f.content), /* @__PURE__ */ e.createElement("div", { className: `${u}__side` }, f.sidebar));
12290
- }, yo = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
12310
+ }, So = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
12291
12311
  let o = Xe(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" ? `${l}--full-width` : null, d = /* @__PURE__ */ e.createElement(Si, {
12292
12312
  className: Z([
12293
12313
  l,
@@ -12298,7 +12318,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12298
12318
  ...a
12299
12319
  }, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
12300
12320
  return i ? /* @__PURE__ */ e.createElement(da, null, d) : d;
12301
- }, bo = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
12321
+ }, Co = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
12302
12322
  let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = Xe(t), u = [
12303
12323
  l["first-item"],
12304
12324
  l["second-item"],
@@ -12316,7 +12336,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12316
12336
  key: n,
12317
12337
  className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
12318
12338
  }, t)));
12319
- }, xo = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
12339
+ }, wo = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
12320
12340
  let s = "pds-two-item-layout", c = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, l = `${s}--${a}`, u = ["pds-grid-item--md-6"], d = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], f = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], p = ["pds-grid-item", "pds-grid-item--sm-4"], m, h;
12321
12341
  switch (i) {
12322
12342
  case "equal":
@@ -12337,7 +12357,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12337
12357
  ]),
12338
12358
  ...o
12339
12359
  }, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
12340
- }, So = ({ alignContent: t = "flex-start", alignItems: n = "stretch", children: r, className: i, flexDirection: a = "row", flexWrap: o = "nowrap", gap: s = "xl", justifyContent: c = "flex-start", mobileAlignContent: l, mobileAlignItems: u, mobileFlexDirection: d = "column", mobileFlexWrap: f, mobileGap: p, mobileJustifyContent: m, style: h, ...g }) => {
12360
+ }, To = ({ alignContent: t = "flex-start", alignItems: n = "stretch", children: r, className: i, flexDirection: a = "row", flexWrap: o = "nowrap", gap: s = "xl", justifyContent: c = "flex-start", mobileAlignContent: l, mobileAlignItems: u, mobileFlexDirection: d = "column", mobileFlexWrap: f, mobileGap: p, mobileJustifyContent: m, style: h, ...g }) => {
12341
12361
  let _ = "pds-flex", v = `${_}-container`, y = {
12342
12362
  "--pds-flex-align-content": t,
12343
12363
  "--pds-flex-align-items": n,
@@ -12363,7 +12383,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12363
12383
  },
12364
12384
  ...g
12365
12385
  }, r);
12366
- }, Co = (e) => {
12386
+ }, Eo = (e) => {
12367
12387
  let t = typeof window < "u", [n, r] = h(((e) => t ? window.matchMedia(e).matches : !1)(e));
12368
12388
  return l(() => {
12369
12389
  if (!t) return;
@@ -12372,20 +12392,20 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12372
12392
  };
12373
12393
  return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
12374
12394
  }, [e]), n;
12375
- }, wo = [
12395
+ }, Do = [
12376
12396
  "light",
12377
12397
  "dark",
12378
12398
  "system"
12379
- ], To = (e) => typeof e == "string" && wo.includes(e), Eo = r(null), Do = {
12399
+ ], Oo = (e) => typeof e == "string" && Do.includes(e), ko = r(null), Ao = {
12380
12400
  resolvedTheme: "light",
12381
12401
  setTheme: () => {},
12382
12402
  theme: "light"
12383
- }, Oo = ({ defaultTheme: e = "light", storageKey: t = "pds-theme" } = {}) => `(function(){try{var t=localStorage.getItem(${JSON.stringify(t)})||${JSON.stringify(e)};if(t==='system'){t=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}document.documentElement.setAttribute('data-theme',t);}catch(e){}})();`, ko = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: c = "pds-theme", theme: u }) => {
12384
- let d = u !== void 0, f = !r && !d && o && !i, [p, m] = h(n), [g, _] = h(!1), v = d ? u : p, y = Co("(prefers-color-scheme: dark)"), b = v === "system" ? g && y ? "dark" : "light" : v;
12403
+ }, jo = ({ defaultTheme: e = "light", storageKey: t = "pds-theme" } = {}) => `(function(){try{var t=localStorage.getItem(${JSON.stringify(t)})||${JSON.stringify(e)};if(t==='system'){t=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}document.documentElement.setAttribute('data-theme',t);}catch(e){}})();`, Mo = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: c = "pds-theme", theme: u }) => {
12404
+ let d = u !== void 0, f = !r && !d && o && !i, [p, m] = h(n), [g, _] = h(!1), v = d ? u : p, y = Eo("(prefers-color-scheme: dark)"), b = v === "system" ? g && y ? "dark" : "light" : v;
12385
12405
  l(() => {
12386
12406
  if (_(!0), !(d || !o || typeof window > "u")) try {
12387
12407
  let e = window.localStorage.getItem(c);
12388
- To(e) && m(e);
12408
+ Oo(e) && m(e);
12389
12409
  } catch {}
12390
12410
  }, []), l(() => {
12391
12411
  typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
@@ -12405,20 +12425,20 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12405
12425
  ]),
12406
12426
  theme: v
12407
12427
  };
12408
- return /* @__PURE__ */ e.createElement(Eo.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: Oo({
12428
+ return /* @__PURE__ */ e.createElement(ko.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: jo({
12409
12429
  defaultTheme: n,
12410
12430
  storageKey: c
12411
12431
  }) } }), t);
12412
- }, Ao = () => c(Eo) ?? Do, jo = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
12432
+ }, No = () => c(ko) ?? Ao, Po = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
12413
12433
  l(() => {
12414
12434
  let e = document.documentElement, t = () => {
12415
12435
  window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
12416
12436
  };
12417
12437
  return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
12418
12438
  }, [r]);
12419
- let a = n ? /* @__PURE__ */ e.createElement(ko, i, t) : t;
12439
+ let a = n ? /* @__PURE__ */ e.createElement(Mo, i, t) : t;
12420
12440
  return /* @__PURE__ */ e.createElement(It, null, a);
12421
- }, Mo = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
12441
+ }, Fo = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
12422
12442
  let l = "pds-grid", u = a === "xl" ? null : `${l}--gap-${a}`, d = i ? `${l}--dense` : null, f = t || s ? `${l}--container` : null, p = s ? `${l}--stack-${s}` : null, m = o ?? a, h = m === a ? null : `${l}-gap-mobile--${m}`;
12423
12443
  return /* @__PURE__ */ e.createElement("div", {
12424
12444
  className: Z([
@@ -12432,7 +12452,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12432
12452
  ]),
12433
12453
  ...c
12434
12454
  }, n);
12435
- }, No = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
12455
+ }, Io = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
12436
12456
  let f = "pds-grid-item", p = [
12437
12457
  l ? `${f}--sm-${l}` : null,
12438
12458
  c ? `${f}--md-${c}` : null,
@@ -12451,7 +12471,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12451
12471
  ]),
12452
12472
  ...d
12453
12473
  }, t);
12454
- }, Po = (e, t, n) => {
12474
+ }, Lo = (e, t, n) => {
12455
12475
  let { altKey: r = !1, ctrlKey: i = !1, enabled: a = !0, metaKey: o = !1, shiftKey: c = !1 } = n ?? {}, [u, d] = h(!1), f = s((e) => e.altKey === r && e.ctrlKey === i && e.metaKey === o && e.shiftKey === c, [
12456
12476
  r,
12457
12477
  i,
@@ -12475,7 +12495,7 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12475
12495
  m,
12476
12496
  a
12477
12497
  ]), u;
12478
- }, Fo = () => {
12498
+ }, Ro = () => {
12479
12499
  let e = typeof window < "u", [t, n] = h(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
12480
12500
  return l(() => {
12481
12501
  if (!e) return;
@@ -12489,6 +12509,6 @@ var Ga = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12489
12509
  }, []), t;
12490
12510
  };
12491
12511
  //#endregion
12492
- export { Jn as ActionCard, go as AppLayout, rt as Avatar, it as Badge, Bi as Banner, _r as BarChart, on as BranchDiff, di as Breadcrumb, un as Button, dn as ButtonLink, bi as ButtonNav, si as CTALink, qn as Callout, Yn as Card, Xn as CardSelect, Lr as Checkbox, Rr as CheckboxFieldset, zr as CheckboxGroup, mn as ClipboardButton, hn as CloseButton, Dr as CodeBlock, Br as Combobox, Hr as ComboboxMultiselect, Zn as CompactEmptyState, kr as ComparisonList, Si as Container, Kr as Datepicker, _o as DocsLayout, ta as Drawer, bn as Dropdown, xi as DropdownMenu, la as ExpansionPanel, ua as ExpansionPanelGroup, Nr as FileDiff, qr as FileUpload, kn as FilterButton, So as FlexContainer, na as FullScreenOverlay, jo as GlobalWrapper, Mo as Grid, No as GridItem, jr as HorizontalEmptyState, Q as Icon, pn as IconButton, Ir as IdentityBlock, Hi as InlineMessage, Jr as InputGroup, yr as LineChart, ci as LinkNewWindow, Gi as MIN_AUTO_CLOSE_DURATION, Rn as MenuButton, ra as Modal, Ci as Navbar, oa as Pagination, sa as PaginationChapter, ca as PaginationCompact, da as Panel, fa as PanelList, pa as PanelRow, ma as PanelStack, va as PantheonLogo, Fr as PaymentIcon, ui as Picture, xr as PieChart, Hn as PlatformIcon, xa as Popover, Ca as ProgressBar, Ta as ProgressRing, Cr as ProportionBar, Yr as RadioGroup, Oa as ResultCount, Wn as SSOButton, Wi as SectionMessage, zn as SegmentedButton, $n as Select, Qn as SelectOptionGroup, wi as SideNav, Ei as SideNavGlobal, Ti as SideNavGlobalItem, vo as SidebarLayout, ka as SiteFooter, Oi as SiteMenu, Aa as SiteOptionDisplay, ja as SiteSearch, Ln as SiteTypeIcon, In as SiteTypeLabel, pr as Skeleton, li as Skiplink, Ua as SortableList, La as SortableListHeader, Ga as SortableRow, nn as Spinner, Bn as SplitButton, rn as StatusBadge, qa as StatusChecker, Ja as StatusIndicator, jn as StatusTypeLabels, Ya as StepList, Xa as Stepper, yo as StepperLayout, Xr as Switch, Ai as TabMenu, $a as Table, oo as TableOfContents, so as Tabs, po as Tag, Qr as TagsInput, an as Tally, ti as TextInput, $r as Textarea, Eo as ThemeContext, ko as ThemeContextProvider, Pi as ThemeSwitcher, bo as ThreeItemLayout, oi as TimeInput, Qi as Toast, $i as ToastType, Yi as Toaster, qi as ToasterContext, zt as Tooltip, Mi as TreeNav, xo as TwoItemLayout, Fi as UserMenu, mo as UtilityBar, Gn as UtilityButton, Mr as VerticalEmptyState, Qa as VerticalStepper, Ar as VideoEmbed, Ii as WorkspaceSelector, Wr as getPresetDateRange, Oo as getThemeInitScript, et as iconList, Nn as isHeadingItemType, Pn as isLinkItemType, Fn as isNodeItemType, Mn as isSeparatorItemType, Ka as statusCheckerStates, co as tagColors, lo as tagSolidColors, ho as useBreakpoint, fn as useClipboard, _n as useDropdown, Nt as useIsMobile, Po as useKeyPress, Rt as useKeyboardShortcut, Co as useMediaQuery, Ao as useTheme, ea as useToast, Fo as useWindowWidth };
12512
+ export { Jn as ActionCard, yo as AppLayout, rt as Avatar, it as Badge, Bi as Banner, _r as BarChart, on as BranchDiff, di as Breadcrumb, un as Button, dn as ButtonLink, bi as ButtonNav, si as CTALink, qn as Callout, Yn as Card, Xn as CardSelect, Lr as Checkbox, Rr as CheckboxFieldset, zr as CheckboxGroup, mn as ClipboardButton, hn as CloseButton, Dr as CodeBlock, Br as Combobox, Hr as ComboboxMultiselect, Zn as CompactEmptyState, kr as ComparisonList, Si as Container, Kr as Datepicker, bo as DocsLayout, ta as Drawer, bn as Dropdown, xi as DropdownMenu, la as ExpansionPanel, ua as ExpansionPanelGroup, Nr as FileDiff, qr as FileUpload, kn as FilterButton, To as FlexContainer, na as FullScreenOverlay, Po as GlobalWrapper, Fo as Grid, Io as GridItem, jr as HorizontalEmptyState, Q as Icon, pn as IconButton, Ir as IdentityBlock, Hi as InlineMessage, Jr as InputGroup, yr as LineChart, ci as LinkNewWindow, Gi as MIN_AUTO_CLOSE_DURATION, Rn as MenuButton, ra as Modal, Ci as Navbar, oa as Pagination, sa as PaginationChapter, ca as PaginationCompact, da as Panel, fa as PanelList, pa as PanelRow, ma as PanelStack, va as PantheonLogo, Fr as PaymentIcon, ui as Picture, xr as PieChart, Hn as PlatformIcon, xa as Popover, Ca as ProgressBar, Ta as ProgressRing, Cr as ProportionBar, Yr as RadioGroup, Oa as ResultCount, Wn as SSOButton, Wi as SectionMessage, zn as SegmentedButton, $n as Select, Qn as SelectOptionGroup, wi as SideNav, Ei as SideNavGlobal, Ti as SideNavGlobalItem, xo as SidebarLayout, ka as SiteFooter, Oi as SiteMenu, Aa as SiteOptionDisplay, ja as SiteSearch, Ln as SiteTypeIcon, In as SiteTypeLabel, pr as Skeleton, li as Skiplink, Ua as SortableList, La as SortableListHeader, Ga as SortableRow, nn as Spinner, Bn as SplitButton, rn as StatusBadge, qa as StatusChecker, Ja as StatusIndicator, jn as StatusTypeLabels, Ya as StepList, Xa as Stepper, So as StepperLayout, Xr as Switch, Ai as TabMenu, $a as Table, oo as TableOfContents, so as Tabs, go as Tag, Qr as TagsInput, an as Tally, ti as TextInput, $r as Textarea, ko as ThemeContext, Mo as ThemeContextProvider, Pi as ThemeSwitcher, Co as ThreeItemLayout, oi as TimeInput, Qi as Toast, $i as ToastType, Yi as Toaster, qi as ToasterContext, zt as Tooltip, Mi as TreeNav, wo as TwoItemLayout, Fi as UserMenu, _o as UtilityBar, Gn as UtilityButton, Mr as VerticalEmptyState, Qa as VerticalStepper, Ar as VideoEmbed, Ii as WorkspaceSelector, Wr as getPresetDateRange, jo as getThemeInitScript, et as iconList, Nn as isHeadingItemType, Pn as isLinkItemType, Fn as isNodeItemType, Mn as isSeparatorItemType, Ka as statusCheckerStates, co as tagColors, fo as tagSolidColors, lo as tagSolidHueColors, uo as tagSolidStatusColors, vo as useBreakpoint, fn as useClipboard, _n as useDropdown, Nt as useIsMobile, Lo as useKeyPress, Rt as useKeyboardShortcut, Eo as useMediaQuery, No as useTheme, ea as useToast, Ro as useWindowWidth };
12493
12513
 
12494
12514
  //# sourceMappingURL=index.js.map