@pantheon-systems/pds-toolkit-react 2.0.0-beta.3 → 2.0.0-beta.5

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
@@ -1,11 +1,11 @@
1
1
  import e, { Children as t, Fragment as n, cloneElement as r, createContext as i, createElement as a, forwardRef as o, isValidElement as s, memo as c, useCallback as l, useContext as u, useEffect as d, useId as f, useImperativeHandle as p, useLayoutEffect as m, useMemo as h, useRef as g, useState as _, useSyncExternalStore as v } from "react";
2
2
  import { FloatingArrow as y, FloatingFocusManager as b, FloatingNode as x, FloatingOverlay as S, FloatingPortal as C, FloatingTree as w, arrow as T, autoUpdate as E, flip as D, offset as O, safePolygon as k, shift as A, size as j, useClick as M, useDismiss as N, useFloating as P, useFloatingNodeId as F, useFloatingParentNodeId as I, useFocus as L, useHover as R, useId as z, useInteractions as ee, useListNavigation as B, useMergeRefs as V, useRole as H, useTransitionStyles as U, useTypeahead as W } from "@floating-ui/react";
3
3
  import { useHotkeys as G } from "react-hotkeys-hook";
4
- import { Bar as K, BarChart as q, CartesianGrid as te, Cell as ne, Line as re, LineChart as J, Pie as ie, PieChart as ae, Rectangle as Y, ReferenceLine as oe, ResponsiveContainer as se, Tooltip as ce, XAxis as le, YAxis as ue } from "recharts";
4
+ import { Bar as K, BarChart as q, CartesianGrid as te, Cell as J, Line as ne, LineChart as re, Pie as ie, PieChart as Y, Rectangle as ae, ReferenceLine as oe, ResponsiveContainer as se, Tooltip as ce, XAxis as le, YAxis as ue } from "recharts";
5
5
  import { CodeBlock as de } from "react-code-block";
6
6
  import fe from "hash-sum";
7
7
  import { useCombobox as pe, useMultipleSelection as me } from "downshift";
8
- import { CalendarDate as he, Time as ge, createCalendar as _e, endOfMonth as ve, endOfWeek as X, fromDate as ye, getLocalTimeZone as be, startOfMonth as xe, startOfWeek as Se, toCalendarDateTime as Ce, toTimeZone as we, toZoned as Te, today as Ee } from "@internationalized/date";
8
+ import { CalendarDate as he, Time as ge, createCalendar as _e, endOfMonth as ve, endOfWeek as ye, fromDate as be, getLocalTimeZone as xe, startOfMonth as X, startOfWeek as Se, toCalendarDateTime as Ce, toTimeZone as we, toZoned as Te, today as Ee } from "@internationalized/date";
9
9
  import { format as De } from "date-fns";
10
10
  import { I18nProvider as Oe, mergeProps as ke, useButton as Ae, useCalendar as je, useCalendarCell as Me, useCalendarGrid as Ne, useDateSegment as Pe, useFocusRing as Fe, useLocale as Ie, useRangeCalendar as Le, useTimeField as Re } from "react-aria";
11
11
  import { useCalendarState as ze, useRangeCalendarState as Be, useTimeFieldState as Ve } from "react-stately";
@@ -2840,78 +2840,78 @@ var En = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
2840
2840
  return t.toArray(n.children).map(kn).join("");
2841
2841
  }
2842
2842
  return "";
2843
- }, An = o(({ ariaLabel: t, buttonType: n = "button", className: r = "", disabled: i = !1, displayType: a = "label-only", iconName: o, isFullWidth: s = !1, isLoading: c = !1, isSplitButton: l = !1, isWorking: u = !1, label: d, onClick: f, size: p = "s", statusDot: m, tally: h, tooltipText: g, variant: _ = "primary", ...v }, y) => {
2844
- let b = "pds-button", x = `${b}--${p}`, S = `${b}--${_}`, C = s ? `${b}--full-width` : null, w = c ? `${b}--loading` : null, T = c ? "pds-pulse" : null, E, D, O;
2845
- switch (p) {
2843
+ }, An = o(({ ariaLabel: t, buttonType: n = "button", className: r = "", disabled: i = !1, disableWhenWorking: a = !0, displayType: o = "label-only", iconName: s, isFullWidth: c = !1, isLoading: l = !1, isSplitButton: u = !1, isWorking: d = !1, label: f, onClick: p, size: m = "s", statusDot: h, tally: g, tooltipText: _, variant: v = "primary", ...y }, b) => {
2844
+ let x = "pds-button", S = `${x}--${m}`, C = `${x}--${v}`, w = c ? `${x}--full-width` : null, T = l ? `${x}--loading` : null, E = l ? "pds-pulse" : null, D = i || l || d && a, O, k, A;
2845
+ switch (m) {
2846
2846
  case "xs":
2847
- E = "xs", D = "s", O = "xs";
2847
+ O = "xs", k = "s", A = "xs";
2848
2848
  break;
2849
2849
  case "s":
2850
- E = "m", D = "m", O = "xs";
2850
+ O = "m", k = "m", A = "xs";
2851
2851
  break;
2852
2852
  case "m":
2853
- E = "m", D = "m", O = "s";
2853
+ O = "m", k = "m", A = "s";
2854
2854
  break;
2855
2855
  case "l":
2856
- E = "xl", D = "l", O = "m";
2856
+ O = "xl", k = "l", A = "m";
2857
2857
  break;
2858
2858
  }
2859
- let k = [
2859
+ let j = [
2860
2860
  "primary",
2861
2861
  "secondary",
2862
2862
  "subtle",
2863
2863
  "highlight"
2864
- ], A = k.includes(_);
2865
- h && !A && process.env.NODE_ENV !== "production" && console.warn(`[Button] The \`tally\` prop is not supported on the "${_}" variant. Use one of: ${k.join(", ")}.`);
2866
- let j = [
2864
+ ], M = j.includes(v);
2865
+ g && !M && process.env.NODE_ENV !== "production" && console.warn(`[Button] The \`tally\` prop is not supported on the "${v}" variant. Use one of: ${j.join(", ")}.`);
2866
+ let N = [
2867
2867
  "primary",
2868
2868
  "secondary",
2869
2869
  "subtle"
2870
- ], M = j.includes(_);
2871
- m && !M && process.env.NODE_ENV !== "production" && console.warn(`[Button] The \`statusDot\` prop is not supported on the "${_}" variant. Use one of: ${j.join(", ")}.`);
2872
- let N = /* @__PURE__ */ e.createElement(Q, {
2870
+ ], P = N.includes(v);
2871
+ h && !P && process.env.NODE_ENV !== "production" && console.warn(`[Button] The \`statusDot\` prop is not supported on the "${v}" variant. Use one of: ${N.join(", ")}.`);
2872
+ let F = /* @__PURE__ */ e.createElement(Q, {
2873
2873
  key: "icon",
2874
- className: `${b}__icon`,
2875
- iconName: o,
2876
- size: E
2877
- }), P = [];
2878
- m && M ? P.push(/* @__PURE__ */ e.createElement(Dn, {
2874
+ className: `${x}__icon`,
2875
+ iconName: s,
2876
+ size: O
2877
+ }), I = [];
2878
+ h && P ? I.push(/* @__PURE__ */ e.createElement(Dn, {
2879
2879
  key: "status-dot",
2880
- className: `${b}__icon`,
2881
- status: m
2882
- })) : a === "icon-start" && o && P.push(N), P.push(/* @__PURE__ */ e.createElement(e.Fragment, { key: "label" }, d)), h && A ? P.push(/* @__PURE__ */ e.createElement(Tn, {
2880
+ className: `${x}__icon`,
2881
+ status: h
2882
+ })) : o === "icon-start" && s && I.push(F), I.push(/* @__PURE__ */ e.createElement(e.Fragment, { key: "label" }, f)), g && M ? I.push(/* @__PURE__ */ e.createElement(Tn, {
2883
2883
  key: "tally",
2884
- className: `${b}__tally`,
2885
- label: h.label,
2886
- size: O,
2887
- type: h.type
2888
- })) : a === "icon-end" && o && P.push(N), l && (P = [N], t = kn(d));
2889
- let F = /* @__PURE__ */ e.createElement("button", {
2890
- ref: y,
2884
+ className: `${x}__tally`,
2885
+ label: g.label,
2886
+ size: A,
2887
+ type: g.type
2888
+ })) : o === "icon-end" && s && I.push(F), u && (I = [F], t = kn(f));
2889
+ let L = /* @__PURE__ */ e.createElement("button", {
2890
+ ref: b,
2891
2891
  "aria-label": t,
2892
2892
  className: Z([
2893
- b,
2894
2893
  x,
2895
2894
  S,
2896
2895
  C,
2897
2896
  w,
2898
2897
  T,
2898
+ E,
2899
2899
  r
2900
2900
  ]),
2901
- disabled: i || c || u,
2902
- onClick: f,
2901
+ disabled: D,
2902
+ onClick: p,
2903
2903
  type: n,
2904
- ...v
2905
- }, u && !c && /* @__PURE__ */ e.createElement(Cn, {
2906
- className: `${b}__working-indicator`,
2904
+ ...y
2905
+ }, d && !l && /* @__PURE__ */ e.createElement(Cn, {
2906
+ className: `${x}__working-indicator`,
2907
2907
  color: "currentColor",
2908
- size: D
2909
- }), P);
2910
- return (i || c || u) && g ? /* @__PURE__ */ e.createElement(on, {
2908
+ size: k
2909
+ }), I);
2910
+ return D && _ ? /* @__PURE__ */ e.createElement(on, {
2911
2911
  disableTapTrigger: !0,
2912
- content: g,
2913
- customTrigger: F
2914
- }) : /* @__PURE__ */ e.createElement(e.Fragment, null, F);
2912
+ content: _,
2913
+ customTrigger: L
2914
+ }) : /* @__PURE__ */ e.createElement(e.Fragment, null, L);
2915
2915
  }), jn = ({ className: t, disabled: n = !1, displayType: i = "label-only", iconName: a, linkContent: o, size: c = "s", tooltipText: l, variant: u = "primary", ...d }) => {
2916
2916
  let f = "pds-button-link", p = "pds-button", m = Z([
2917
2917
  p,
@@ -3044,8 +3044,8 @@ var En = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3044
3044
  customTrigger: N,
3045
3045
  offsetValue: w
3046
3046
  }) : N);
3047
- }), Pn = ({ ariaLabel: t = "Copy to clipboard", className: n, clipboardText: r = "", disabled: i, hasBorder: a = !1, variant: o = "standard", ...s }) => {
3048
- let [c, l] = Mn(r);
3047
+ }), Pn = ({ ariaLabel: t = "Copy to clipboard", className: n, clipboardText: r = "", disabled: i, hasBorder: a = !1, size: o = "s", variant: s = "standard", ...c }) => {
3048
+ let [l, u] = Mn(r);
3049
3049
  return /* @__PURE__ */ e.createElement(Nn, {
3050
3050
  ariaLabel: t,
3051
3051
  buttonType: "button",
@@ -3054,10 +3054,10 @@ var En = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3054
3054
  hasBorder: a,
3055
3055
  icon2Name: "check",
3056
3056
  iconName: "copy",
3057
- onClick: l,
3058
- size: "m",
3059
- variant: o,
3060
- ...s
3057
+ onClick: u,
3058
+ size: o,
3059
+ variant: s,
3060
+ ...c
3061
3061
  });
3062
3062
  }, Fn = ({ ariaLabel: t = "Close", className: n, onClick: r, size: i = "m", ...a }) => {
3063
3063
  let o = "pds-close-button", s = `${o}--${i}`, c = /* @__PURE__ */ e.createElement("button", {
@@ -3240,9 +3240,9 @@ var En = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3240
3240
  })(l);
3241
3241
  let te = (e) => {
3242
3242
  "disabled" in e && e.disabled || ("callback" in e && e.callback && e.callback(e), I(!1));
3243
- }, ne = () => {
3243
+ }, J = () => {
3244
3244
  u && u();
3245
- }, re = (t, n, r = "", i = "") => {
3245
+ }, ne = (t, n, r = "", i = "") => {
3246
3246
  let a = W + (r ? `-group-${r}` : "") + "-item-" + (n + 1), o = "id" in t && t.id ? t.id : a;
3247
3247
  if (Un(t)) return /* @__PURE__ */ e.createElement("li", {
3248
3248
  key: o,
@@ -3308,7 +3308,7 @@ var En = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3308
3308
  })
3309
3309
  }, l);
3310
3310
  }
3311
- }, J = (t, n) => {
3311
+ }, re = (t, n) => {
3312
3312
  let r = "id" in t && t.id ? t.id : `${W}-accordion-item-${n + 1}`;
3313
3313
  if (Un(t)) return /* @__PURE__ */ e.createElement("li", {
3314
3314
  key: r,
@@ -3365,7 +3365,7 @@ var En = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3365
3365
  i ? `${V}__listbox--icon-only` : null
3366
3366
  ]), o = 0;
3367
3367
  if (r) {
3368
- let r = ae(t, n);
3368
+ let r = Y(t, n);
3369
3369
  return r.forEach((e, t) => {
3370
3370
  K.push(`${t}`);
3371
3371
  }), /* @__PURE__ */ e.createElement("div", {
@@ -3388,7 +3388,7 @@ var En = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3388
3388
  "aria-labelledby": a || void 0,
3389
3389
  role: "group"
3390
3390
  }, t.map((e) => {
3391
- let t = re(e, o, r, a);
3391
+ let t = ne(e, o, r, a);
3392
3392
  return !Un(e) && !Wn(e) && !Kn(e) && o++, t;
3393
3393
  }));
3394
3394
  }));
@@ -3405,15 +3405,15 @@ var En = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3405
3405
  },
3406
3406
  ...O()
3407
3407
  }, t.map((e) => {
3408
- let t = re(e, o);
3408
+ let t = ne(e, o);
3409
3409
  return !Un(e) && !Wn(e) && !Kn(e) && o++, t;
3410
3410
  }));
3411
- }, ae = (e, t) => {
3411
+ }, Y = (e, t) => {
3412
3412
  let n = [], r = [...t], i = r.shift(), a = [];
3413
3413
  return e.forEach((t, o) => {
3414
3414
  t === i ? (n.push(a), a = [], a.push(t), i = r.shift()) : (a.push(t), o + 1 === e.length && n.push(a));
3415
3415
  }), n.filter((e) => e.length > 0);
3416
- }, Y, oe = h === "m" ? "s" : "xs", se = y ? /* @__PURE__ */ e.createElement(e.Fragment, null, c, /* @__PURE__ */ e.createElement(Tn, {
3416
+ }, ae, oe = h === "m" ? "s" : "xs", se = y ? /* @__PURE__ */ e.createElement(e.Fragment, null, c, /* @__PURE__ */ e.createElement(Tn, {
3417
3417
  className: "pds-button__tally",
3418
3418
  label: y.label,
3419
3419
  size: oe,
@@ -3424,7 +3424,7 @@ var En = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3424
3424
  size: "s",
3425
3425
  type: y.type
3426
3426
  })) : c;
3427
- if (i || (Y = /* @__PURE__ */ e.createElement(An, {
3427
+ if (i || (ae = /* @__PURE__ */ e.createElement(An, {
3428
3428
  ref: F.setReference,
3429
3429
  "aria-controls": G,
3430
3430
  "aria-expanded": M,
@@ -3440,10 +3440,10 @@ var En = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3440
3440
  statusDot: v,
3441
3441
  type: "button",
3442
3442
  variant: U,
3443
- ...A({ onClick: ne })
3443
+ ...A({ onClick: J })
3444
3444
  })), i) {
3445
3445
  let t = kn(c);
3446
- Y = /* @__PURE__ */ e.createElement(Nn, {
3446
+ ae = /* @__PURE__ */ e.createElement(Nn, {
3447
3447
  ref: F.setReference,
3448
3448
  "aria-controls": G,
3449
3449
  "aria-expanded": M,
@@ -3457,7 +3457,7 @@ var En = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3457
3457
  size: h,
3458
3458
  type: "button",
3459
3459
  variant: "standard",
3460
- ...A({ onClick: ne })
3460
+ ...A({ onClick: J })
3461
3461
  });
3462
3462
  }
3463
3463
  let le = i ? /* @__PURE__ */ e.createElement("span", { className: `${V}__icon-label` }, /* @__PURE__ */ e.createElement(Q, { iconName: r }), " ", c) : ce, ue = M ? `${V}--expanded` : null;
@@ -3475,7 +3475,7 @@ var En = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3475
3475
  }, /* @__PURE__ */ e.createElement("ul", {
3476
3476
  className: `${V}__mobile-menu`,
3477
3477
  role: "menu"
3478
- }, l.map((e, t) => J(e, t)))) : /* @__PURE__ */ e.createElement(e.Fragment, null, Y, /* @__PURE__ */ e.createElement(x, { id: P }, j && /* @__PURE__ */ e.createElement(C, null, ie(l)))));
3478
+ }, l.map((e, t) => re(e, t)))) : /* @__PURE__ */ e.createElement(e.Fragment, null, ae, /* @__PURE__ */ e.createElement(x, { id: P }, j && /* @__PURE__ */ e.createElement(C, null, ie(l)))));
3479
3479
  }, Zn = i(null), Qn = () => {
3480
3480
  let e = u(Zn);
3481
3481
  if (!e) throw Error("Dropdown sub-components must be used within a <Dropdown> provider.");
@@ -4118,85 +4118,86 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4118
4118
  d: "M17 10.5V15H21.5C22.0312 15 22.5 15.4688 22.5 16C22.5 16.5625 22.0312 17 21.5 17H17V21.5C17 22.0625 16.5312 22.5 16 22.5C15.4375 22.5 15 22.0625 15 21.5V17H10.5C9.9375 17 9.5 16.5625 9.5 16C9.5 15.4688 9.9375 15 10.5 15H15V10.5C15 9.96875 15.4375 9.5 16 9.5C16.5312 9.5 17 9.96875 17 10.5Z",
4119
4119
  fill: "var(--pds-color-foreground-reverse)"
4120
4120
  }))
4121
- }, gr = ({ buttonType: t = "button", className: n = "", disabled: r = !1, isWorking: i = !1, label: a, onClick: o, platform: s, size: c = "m", tooltipText: l, ...u }) => {
4122
- let d = "pds-sso-button", f = `${d}--${c}`, p = c === "m" ? "l" : "2xl", m = c === "m" ? "l" : "xl", h = /* @__PURE__ */ e.createElement(mr, {
4123
- className: `${d}__icon`,
4124
- platformType: s,
4125
- size: p
4126
- }), g = /* @__PURE__ */ e.createElement("button", {
4121
+ }, gr = ({ buttonType: t = "button", className: n = "", disabled: r = !1, disableWhenWorking: i = !0, isWorking: a = !1, label: o, onClick: s, platform: c, size: l = "m", tooltipText: u, ...d }) => {
4122
+ let f = "pds-sso-button", p = `${f}--${l}`, m = l === "m" ? "l" : "2xl", h = l === "m" ? "l" : "xl", g = r || a && i, _ = /* @__PURE__ */ e.createElement(mr, {
4123
+ className: `${f}__icon`,
4124
+ platformType: c,
4125
+ size: m
4126
+ }), v = /* @__PURE__ */ e.createElement("button", {
4127
4127
  className: Z([
4128
- d,
4129
4128
  f,
4129
+ p,
4130
4130
  n
4131
4131
  ]),
4132
- disabled: r || i,
4133
- onClick: o,
4132
+ disabled: g,
4133
+ onClick: s,
4134
4134
  type: t,
4135
- ...u
4136
- }, h, a, i && /* @__PURE__ */ e.createElement(Cn, {
4137
- className: `${d}__working-indicator`,
4135
+ ...d
4136
+ }, _, o, a && /* @__PURE__ */ e.createElement(Cn, {
4137
+ className: `${f}__working-indicator`,
4138
4138
  color: "currentColor",
4139
- size: m
4139
+ size: h
4140
4140
  }));
4141
- return (r || i) && l ? /* @__PURE__ */ e.createElement(on, {
4141
+ return g && u ? /* @__PURE__ */ e.createElement(on, {
4142
4142
  disableTapTrigger: !0,
4143
- content: l,
4144
- customTrigger: g
4145
- }) : /* @__PURE__ */ e.createElement(e.Fragment, null, g);
4146
- }, _r = ({ buttonProps: t, className: n, disabled: i = !1, hasBorder: a = !1, iconName: o, iconPosition: c = "before", isCritical: l = !1, isLoading: u, isMonospace: d = !1, isWorking: f, label: p, linkContent: m, onClick: h, tooltipText: g, ..._ }) => {
4147
- let v = "pds-utility-button", y = u ? "pds-pulse" : null, b = (t) => o && !f ? /* @__PURE__ */ e.createElement(Q, {
4143
+ content: u,
4144
+ customTrigger: v
4145
+ }) : /* @__PURE__ */ e.createElement(e.Fragment, null, v);
4146
+ }, _r = ({ buttonProps: t, className: n, disabled: i = !1, disableWhenWorking: a = !0, hasBorder: o = !1, iconName: c, iconPosition: l = "before", isCritical: u = !1, isLoading: d, isMonospace: f = !1, isWorking: p, label: m, linkContent: h, onClick: g, tooltipText: _, ...v }) => {
4147
+ let y = "pds-utility-button", b = d ? "pds-pulse" : null, x = i || d || p && a, S = (t) => c && !p ? /* @__PURE__ */ e.createElement(Q, {
4148
4148
  key: t,
4149
- className: `${v}__icon`,
4150
- iconName: o
4151
- }) : null, x = () => f ? /* @__PURE__ */ e.createElement(Cn, {
4149
+ className: `${y}__icon`,
4150
+ iconName: c
4151
+ }) : null, C = () => p ? /* @__PURE__ */ e.createElement(Cn, {
4152
4152
  key: "spinner",
4153
- className: `${v}__spinner`,
4153
+ className: `${y}__spinner`,
4154
+ color: "currentColor",
4154
4155
  size: "m"
4155
- }) : null, S = (t) => {
4156
+ }) : null, w = (t) => {
4156
4157
  let n = [];
4157
- return c === "before" && n.push(b("icon-before")), n.push(x()), n.push(/* @__PURE__ */ e.createElement("span", {
4158
+ return l === "before" && n.push(S("icon-before")), n.push(C()), n.push(/* @__PURE__ */ e.createElement("span", {
4158
4159
  key: "label",
4159
- className: `${v}__label`
4160
- }, t)), c === "after" && n.push(b("icon-after")), n.filter(Boolean);
4161
- }, C = m && s(m) ? m.props.children : p, w = Z([
4162
- v,
4163
- a ? `${v}--border` : null,
4164
- l ? `${v}--critical` : null,
4165
- i ? `${v}--disabled` : null,
4166
- u ? `${v}--loading` : null,
4167
- f ? `${v}--working` : null,
4168
- d ? `${v}--monospace` : null,
4160
+ className: `${y}__label`
4161
+ }, t)), l === "after" && n.push(S("icon-after")), n.filter(Boolean);
4162
+ }, T = h && s(h) ? h.props.children : m, E = Z([
4163
+ y,
4164
+ o ? `${y}--border` : null,
4165
+ u ? `${y}--critical` : null,
4166
+ i ? `${y}--disabled` : null,
4167
+ d ? `${y}--loading` : null,
4168
+ p ? `${y}--working` : null,
4169
+ f ? `${y}--monospace` : null,
4169
4170
  n ?? ""
4170
- ]), T = (t) => g ? /* @__PURE__ */ e.createElement(on, {
4171
+ ]), D = (t) => _ ? /* @__PURE__ */ e.createElement(on, {
4171
4172
  disableTapTrigger: !0,
4172
- content: g,
4173
+ content: _,
4173
4174
  customTrigger: t
4174
4175
  }) : t;
4175
- if (m && !i) {
4176
- let t = s(m) ? r(m, Object.assign({}, m.props, {
4176
+ if (h && !i) {
4177
+ let t = s(h) ? r(h, Object.assign({}, h.props, {
4177
4178
  className: Z([
4178
- `${v}__button`,
4179
- y,
4180
- m.props.className ?? ""
4179
+ `${y}__button`,
4180
+ b,
4181
+ h.props.className ?? ""
4181
4182
  ]),
4182
- children: S(C)
4183
+ children: w(T)
4183
4184
  })) : null;
4184
4185
  return /* @__PURE__ */ e.createElement("div", {
4185
- className: w,
4186
- ..._
4187
- }, T(t));
4186
+ className: E,
4187
+ ...v
4188
+ }, D(t));
4188
4189
  }
4189
- let E = /* @__PURE__ */ e.createElement("button", {
4190
- className: Z([`${v}__button`, y]),
4191
- disabled: i || u || f,
4192
- onClick: h,
4190
+ let O = /* @__PURE__ */ e.createElement("button", {
4191
+ className: Z([`${y}__button`, b]),
4192
+ disabled: x,
4193
+ onClick: g,
4193
4194
  type: "button",
4194
4195
  ...t
4195
- }, S(C));
4196
+ }, w(T));
4196
4197
  return /* @__PURE__ */ e.createElement("div", {
4197
- className: w,
4198
- ..._
4199
- }, T(E));
4198
+ className: E,
4199
+ ...v
4200
+ }, D(O));
4200
4201
  }, vr = {
4201
4202
  info: "circleInfo",
4202
4203
  warning: "triangleExclamation",
@@ -4325,7 +4326,7 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4325
4326
  }, message: p, onBlur: m, onFocus: h, onOptionSelect: g, options: v, required: y = !1, showLabel: b = !0, showSelectedIcon: x = !0, size: S = "s", tooltipText: w = null, validationMessage: T, validationStatus: E, value: D, ...O }) => {
4326
4327
  let k = sn(c, l), A = "pds-select", j = t ? `${A}--auto-width` : null, M = S === "s" ? null : `${A}--${S}`, N = i ? $.disabled : null, P = y && !i ? $.required : null, F = E === "error" ? $.error : null, I = E === "success" ? $.success : null, L = null;
4327
4328
  E === "error" && (L = "error"), E === "success" && (L = "success");
4328
- let R = T || p, z = D !== void 0, ee = r !== void 0, B = ((e) => e.reduce((e, t) => vn(t) ? [...e, ...t.options] : [...e, t], []))(v), V = (e) => B.findIndex((t) => t.value === e), H = z && V(D) >= 0 ? V(D) : null, U = ee ? V(r) : null, [W, G] = _((H || U) ?? null), { activeIndex: K, floatingStyles: q, getFloatingProps: te, getItemProps: ne, getReferenceProps: re, isMounted: J, listRef: ie, refs: ae, setIsOpen: Y, transitionStyles: oe } = Ln({
4329
+ let R = T || p, z = D !== void 0, ee = r !== void 0, B = ((e) => e.reduce((e, t) => vn(t) ? [...e, ...t.options] : [...e, t], []))(v), V = (e) => B.findIndex((t) => t.value === e), H = z && V(D) >= 0 ? V(D) : null, U = ee ? V(r) : null, [W, G] = _((H || U) ?? null), { activeIndex: K, floatingStyles: q, getFloatingProps: te, getItemProps: J, getReferenceProps: ne, isMounted: re, listRef: ie, refs: Y, setIsOpen: ae, transitionStyles: oe } = Ln({
4329
4330
  enableClick: !i,
4330
4331
  enableTypeahead: !0,
4331
4332
  role: "listbox",
@@ -4333,17 +4334,17 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4333
4334
  variant: "input"
4334
4335
  }), se = Vn("var(--pds-z-index-dropdown)"), ce = W === null ? void 0 : B[W]?.label, le = W === null ? void 0 : B[W]?.icon, ue = W === null ? void 0 : B[W]?.value, de = (e) => {
4335
4336
  let t = B[e];
4336
- z || (G(e), Y(!1)), g && g(t);
4337
+ z || (G(e), ae(!1)), g && g(t);
4337
4338
  };
4338
4339
  d(() => {
4339
- z && (G(V(D)), Y(!1));
4340
+ z && (G(V(D)), ae(!1));
4340
4341
  }, [D]);
4341
4342
  let fe = () => {
4342
4343
  m && m(ue);
4343
4344
  }, pe = () => {
4344
4345
  h && h(ue);
4345
4346
  }, me = () => {
4346
- ae.reference.current.focus();
4347
+ Y.reference.current.focus();
4347
4348
  }, he = (t, n) => t === "google" || t === "microsoft" ? /* @__PURE__ */ e.createElement(mr, {
4348
4349
  className: n,
4349
4350
  platformType: t,
@@ -4366,12 +4367,12 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4366
4367
  "aria-disabled": t?.disabled,
4367
4368
  "aria-selected": r === W && r === K,
4368
4369
  tabIndex: r === K ? 0 : -1,
4369
- ...!t?.disabled && ne({
4370
+ ...!t?.disabled && J({
4370
4371
  onClick() {
4371
4372
  de(r);
4372
4373
  },
4373
4374
  onKeyDown(e) {
4374
- e.key === "Enter" && (e.preventDefault(), de(r), ae.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ae.reference.current.focus());
4375
+ e.key === "Enter" && (e.preventDefault(), de(r), Y.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), Y.reference.current.focus());
4375
4376
  }
4376
4377
  })
4377
4378
  }, /* @__PURE__ */ e.createElement("span", { className: `${A}__option-label` }, t.icon && he(t.icon, `${A}__option-icon`), t.label), x && W === r && /* @__PURE__ */ e.createElement(lr, null));
@@ -4390,12 +4391,12 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4390
4391
  "aria-disabled": t?.disabled,
4391
4392
  "aria-selected": r === W && r === K,
4392
4393
  tabIndex: r === K ? 0 : -1,
4393
- ...!t?.disabled && ne({
4394
+ ...!t?.disabled && J({
4394
4395
  onClick() {
4395
4396
  de(r);
4396
4397
  },
4397
4398
  onKeyDown(e) {
4398
- e.key === "Enter" && (e.preventDefault(), de(r), ae.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ae.reference.current.focus());
4399
+ e.key === "Enter" && (e.preventDefault(), de(r), Y.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), Y.reference.current.focus());
4399
4400
  }
4400
4401
  })
4401
4402
  }, /* @__PURE__ */ e.createElement("span", { className: `${A}__option-label` }, t.icon && he(t.icon, `${A}__option-icon`), t.label), x && W === r && /* @__PURE__ */ e.createElement(lr, null));
@@ -4432,13 +4433,13 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4432
4433
  showLabel: b,
4433
4434
  tooltipText: w
4434
4435
  }), /* @__PURE__ */ e.createElement("span", {
4435
- ref: ae.setReference,
4436
+ ref: Y.setReference,
4436
4437
  "aria-autocomplete": "none",
4437
4438
  "aria-labelledby": `${s}-label`,
4438
4439
  className: `${A}__input-wrapper`,
4439
4440
  id: s,
4440
4441
  tabIndex: 0,
4441
- ...re({
4442
+ ...ne({
4442
4443
  onClick: me,
4443
4444
  onBlur: fe,
4444
4445
  onFocus: pe
@@ -4446,8 +4447,8 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4446
4447
  }, L && /* @__PURE__ */ e.createElement(pn, { variant: L }), /* @__PURE__ */ e.createElement("span", { className: `${A}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${A}__option-text` }, (le || !ce && o) && he(le || o, `${A}__icon`), /* @__PURE__ */ e.createElement("span", { className: `${A}__option-label-text` }, ce ?? f.selectOptionText)), /* @__PURE__ */ e.createElement(Q, {
4447
4448
  className: `${A}__trigger-icon`,
4448
4449
  iconName: "angleDown"
4449
- }))), J && /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
4450
- ref: ae.setFloating,
4450
+ }))), re && /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
4451
+ ref: Y.setFloating,
4451
4452
  className: `pds-dropdown__panel ${A}__dropdown ${a ? `${A}__dropdown--has-footer` : ""}`,
4452
4453
  style: {
4453
4454
  ...q,
@@ -4769,7 +4770,7 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4769
4770
  let t = Math.abs(e);
4770
4771
  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);
4771
4772
  }, Ur = ({ barRadius: t = 2, chartHeight: n, chartWidth: r, className: i, colorPalette: a = "categorical", data: o = [], isLoading: s = !1, isThumbnail: c = !1, labelStrings: u = {}, layout: f = "horizontal", legendVariant: p = "inline", onTimePeriodChange: m, selectedTimePeriod: h, series: v = [], showAccessibleTable: y, showAxisLines: b, showGrid: x, showLegend: S, showTooltip: C, timePeriodOptions: w, tooltipContent: T, variant: k = "stacked", xAxisLabel: j, xAxisTickInterval: M, yAxisDomain: N, yAxisFormatter: F = Hr, yAxisLabel: I, yAxisTickInterval: L, ...R }) => {
4772
- let { accessibleTableDescription: z = "Bar chart data", emptyStateHeading: ee = "No data available", emptyStateMessage: B, legendTableHeader: V, loadingLabel: H = "Loading chart data" } = u, W = g(null), G = Dr(a, Nr(W, a)), ne = n ?? (c ? 60 : 360), re = r ?? (c ? 60 : void 0), J = x ?? !c, ie = b ?? !c, ae = S ?? !c, oe = C ?? !c, de = y ?? !0, [fe, pe] = _(null), me = g(fe);
4773
+ let { accessibleTableDescription: z = "Bar chart data", emptyStateHeading: ee = "No data available", emptyStateMessage: B, legendTableHeader: V, loadingLabel: H = "Loading chart data" } = u, W = g(null), G = Dr(a, Nr(W, a)), J = n ?? (c ? 60 : 360), ne = r ?? (c ? 60 : void 0), re = x ?? !c, ie = b ?? !c, Y = S ?? !c, oe = C ?? !c, de = y ?? !0, [fe, pe] = _(null), me = g(fe);
4773
4774
  fe && (me.current = fe);
4774
4775
  let he = g({ getBoundingClientRect: () => ({
4775
4776
  bottom: 0,
@@ -4780,7 +4781,7 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4780
4781
  width: 0,
4781
4782
  x: 0,
4782
4783
  y: 0
4783
- }) }), { context: ge, floatingStyles: _e, refs: ve, update: X } = P({
4784
+ }) }), { context: ge, floatingStyles: _e, refs: ve, update: ye } = P({
4784
4785
  middleware: [
4785
4786
  O(8),
4786
4787
  D(),
@@ -4789,7 +4790,7 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4789
4790
  open: !!fe,
4790
4791
  placement: "top",
4791
4792
  whileElementsMounted: E
4792
- }), { isMounted: ye, styles: be } = U(ge, {
4793
+ }), { isMounted: be, styles: xe } = U(ge, {
4793
4794
  duration: {
4794
4795
  close: 150,
4795
4796
  open: 150
@@ -4802,7 +4803,7 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4802
4803
  let e = () => pe(null);
4803
4804
  return window.addEventListener("scroll", e, !0), () => window.removeEventListener("scroll", e, !0);
4804
4805
  }, []);
4805
- let xe = "pds-bar-chart", Se = k === "stacked" ? "stack" : void 0, Ce = l((e) => {
4806
+ let X = "pds-bar-chart", Se = k === "stacked" ? "stack" : void 0, Ce = l((e) => {
4806
4807
  he.current.getBoundingClientRect = () => ({
4807
4808
  bottom: e.clientY,
4808
4809
  height: 0,
@@ -4812,43 +4813,55 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4812
4813
  width: 0,
4813
4814
  x: e.clientX,
4814
4815
  y: e.clientY
4815
- }), X();
4816
- }, [X]), we = l(() => {
4816
+ }), ye();
4817
+ }, [ye]), we = l(() => {
4817
4818
  pe(null);
4818
- }, []);
4819
+ }, []), Te = l((e, t, n) => {
4820
+ let r = n.payload;
4821
+ oe && r && pe({
4822
+ color: jr(e, G, t.color, Or(a, t.paletteIndex)),
4823
+ label: String(r.label ?? ""),
4824
+ name: t.label,
4825
+ value: Number(r[t.dataKey] ?? 0)
4826
+ });
4827
+ }, [
4828
+ G,
4829
+ a,
4830
+ oe
4831
+ ]);
4819
4832
  if (s) return /* @__PURE__ */ e.createElement("div", {
4820
4833
  ref: W,
4821
4834
  "aria-busy": "true",
4822
4835
  "aria-label": H,
4823
4836
  className: Z([
4824
- xe,
4825
- `${xe}--loading`,
4837
+ X,
4838
+ `${X}--loading`,
4826
4839
  i ?? ""
4827
4840
  ]),
4828
- style: { maxWidth: re },
4841
+ style: { maxWidth: ne },
4829
4842
  ...R
4830
4843
  }, /* @__PURE__ */ e.createElement(Vr, {
4831
- height: ne,
4844
+ height: J,
4832
4845
  legendVariant: p,
4833
- showLegend: ae
4846
+ showLegend: Y
4834
4847
  }));
4835
4848
  if (!o || o.length === 0) return /* @__PURE__ */ e.createElement("div", {
4836
4849
  ref: W,
4837
4850
  className: Z([
4838
- xe,
4839
- `${xe}--empty`,
4851
+ X,
4852
+ `${X}--empty`,
4840
4853
  i ?? ""
4841
4854
  ]),
4842
4855
  style: {
4843
- height: ne,
4844
- maxWidth: re
4856
+ height: J,
4857
+ maxWidth: ne
4845
4858
  },
4846
4859
  ...R
4847
4860
  }, /* @__PURE__ */ e.createElement(Cr, {
4848
4861
  heading: ee,
4849
4862
  message: B
4850
4863
  }));
4851
- let Te = f === "vertical", Ee = (e) => k === "grouped" || k === "stacked" && e === v.length - 1 ? Te ? [
4864
+ let Ee = f === "vertical", De = (e) => k === "grouped" || k === "stacked" && e === v.length - 1 ? Ee ? [
4852
4865
  0,
4853
4866
  t,
4854
4867
  t,
@@ -4858,16 +4871,16 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4858
4871
  t,
4859
4872
  0,
4860
4873
  0
4861
- ] : 0, De = (t) => ({ fill: n, height: r, radius: i, width: a, x: o, y: s }) => {
4874
+ ] : 0, Oe = (t) => ({ fill: n, height: r, radius: i, width: a, x: o, y: s }) => {
4862
4875
  let c = t > 0, l = t < v.length - 1;
4863
- return /* @__PURE__ */ e.createElement("g", null, /* @__PURE__ */ e.createElement(Y, {
4876
+ return /* @__PURE__ */ e.createElement("g", null, /* @__PURE__ */ e.createElement(ae, {
4864
4877
  fill: n,
4865
4878
  height: r,
4866
4879
  radius: i,
4867
4880
  width: a,
4868
4881
  x: o,
4869
4882
  y: s
4870
- }), Te ? /* @__PURE__ */ e.createElement(e.Fragment, null, c && /* @__PURE__ */ e.createElement("line", {
4883
+ }), Ee ? /* @__PURE__ */ e.createElement(e.Fragment, null, c && /* @__PURE__ */ e.createElement("line", {
4871
4884
  stroke: "var(--pds-color-surface-default)",
4872
4885
  strokeWidth: 1,
4873
4886
  x1: o,
@@ -4899,12 +4912,12 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4899
4912
  };
4900
4913
  return /* @__PURE__ */ e.createElement("div", {
4901
4914
  ref: W,
4902
- className: Z([xe, i ?? ""]),
4903
- style: re ? { maxWidth: re } : void 0,
4915
+ className: Z([X, i ?? ""]),
4916
+ style: ne ? { maxWidth: ne } : void 0,
4904
4917
  ...R
4905
- }, !c && w && w.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${xe}__header` }, /* @__PURE__ */ e.createElement(Tr, {
4918
+ }, !c && w && w.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${X}__header` }, /* @__PURE__ */ e.createElement(Tr, {
4906
4919
  autoWidth: !0,
4907
- id: `${xe}-time-period`,
4920
+ id: `${X}-time-period`,
4908
4921
  label: "Time period",
4909
4922
  onOptionSelect: (e) => m?.(e.value),
4910
4923
  options: w.map((e) => ({
@@ -4919,12 +4932,12 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4919
4932
  onMouseMove: oe && !T ? Ce : void 0,
4920
4933
  style: {
4921
4934
  contain: "layout size",
4922
- height: ne
4935
+ height: J
4923
4936
  }
4924
4937
  }, /* @__PURE__ */ e.createElement(se, {
4925
4938
  debounce: 150,
4926
- height: ne,
4927
- minHeight: ne,
4939
+ height: J,
4940
+ minHeight: J,
4928
4941
  minWidth: 50,
4929
4942
  width: "100%"
4930
4943
  }, /* @__PURE__ */ e.createElement(q, {
@@ -4932,7 +4945,7 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4932
4945
  barCategoryGap: "25%",
4933
4946
  barGap: 6,
4934
4947
  data: o,
4935
- layout: Te ? "vertical" : "horizontal",
4948
+ layout: Ee ? "vertical" : "horizontal",
4936
4949
  margin: c ? {
4937
4950
  bottom: 0,
4938
4951
  left: 0,
@@ -4944,14 +4957,14 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4944
4957
  right: 4,
4945
4958
  top: 20
4946
4959
  }
4947
- }, J && /* @__PURE__ */ e.createElement(te, {
4948
- horizontal: !Te,
4960
+ }, re && /* @__PURE__ */ e.createElement(te, {
4961
+ horizontal: !Ee,
4949
4962
  stroke: "var(--pds-color-border-default)",
4950
4963
  strokeDasharray: "3 3",
4951
- vertical: Te
4964
+ vertical: Ee
4952
4965
  }), /* @__PURE__ */ e.createElement(le, {
4953
4966
  axisLine: ie,
4954
- dataKey: Te ? void 0 : "label",
4967
+ dataKey: Ee ? void 0 : "label",
4955
4968
  hide: !ie,
4956
4969
  interval: M,
4957
4970
  label: j && ie ? {
@@ -4960,15 +4973,15 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4960
4973
  position: "insideBottom",
4961
4974
  value: j
4962
4975
  } : void 0,
4963
- padding: Te ? void 0 : "no-gap",
4976
+ padding: Ee ? void 0 : "no-gap",
4964
4977
  tick: ie ? Pr : !1,
4965
- tickFormatter: Te ? F : void 0,
4978
+ tickFormatter: Ee ? F : void 0,
4966
4979
  tickLine: !1,
4967
4980
  tickMargin: 10,
4968
- type: Te ? "number" : "category"
4981
+ type: Ee ? "number" : "category"
4969
4982
  }), /* @__PURE__ */ e.createElement(ue, {
4970
4983
  axisLine: ie,
4971
- dataKey: Te ? "label" : void 0,
4984
+ dataKey: Ee ? "label" : void 0,
4972
4985
  domain: N,
4973
4986
  hide: !ie,
4974
4987
  interval: L,
@@ -4979,12 +4992,12 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4979
4992
  position: "center",
4980
4993
  value: I
4981
4994
  } : void 0,
4982
- padding: Te ? "no-gap" : void 0,
4995
+ padding: Ee ? "no-gap" : void 0,
4983
4996
  tick: ie ? Pr : !1,
4984
- tickFormatter: Te ? void 0 : F,
4997
+ tickFormatter: Ee ? void 0 : F,
4985
4998
  tickLine: !1,
4986
4999
  tickMargin: 6,
4987
- type: Te ? "category" : "number"
5000
+ type: Ee ? "category" : "number"
4988
5001
  }), oe && T && /* @__PURE__ */ e.createElement(ce, {
4989
5002
  content: (e) => !e.active || !e.payload?.length ? null : T({
4990
5003
  entries: e.payload.map((e) => ({
@@ -5001,33 +5014,28 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5001
5014
  dataKey: t.dataKey,
5002
5015
  fill: jr(n, G, t.color, Or(a, t.paletteIndex)),
5003
5016
  name: t.label,
5004
- onMouseEnter: T ? void 0 : (e) => {
5005
- let r = e.payload;
5006
- oe && r && pe({
5007
- color: jr(n, G, t.color, Or(a, t.paletteIndex)),
5008
- label: String(r.label ?? ""),
5009
- name: t.label,
5010
- value: Number(r[t.dataKey] ?? 0)
5011
- });
5017
+ onClick: T ? void 0 : (e, r, i) => {
5018
+ Ce(i), Te(n, t, e);
5012
5019
  },
5020
+ onMouseEnter: T ? void 0 : (e) => Te(n, t, e),
5013
5021
  onMouseLeave: T ? void 0 : () => pe(null),
5014
- radius: Ee(n),
5015
- shape: k === "stacked" ? De(n) : void 0,
5022
+ radius: De(n),
5023
+ shape: k === "stacked" ? Oe(n) : void 0,
5016
5024
  stackId: Se
5017
- }))))), oe && !T && ye && me.current && /* @__PURE__ */ e.createElement("div", {
5025
+ }))))), oe && !T && be && me.current && /* @__PURE__ */ e.createElement("div", {
5018
5026
  ref: ve.setFloating,
5019
5027
  className: "recharts-default-tooltip",
5020
5028
  role: "tooltip",
5021
5029
  style: {
5022
5030
  ..._e,
5023
- ...be,
5031
+ ...xe,
5024
5032
  pointerEvents: "none",
5025
5033
  zIndex: "var(--pds-z-index-notifications)"
5026
5034
  }
5027
5035
  }, /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-label" }, me.current.label), /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-item" }, /* @__PURE__ */ e.createElement("span", {
5028
5036
  className: "recharts-tooltip-item__color",
5029
5037
  style: { backgroundColor: me.current.color }
5030
- }), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-name" }, me.current.name), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, ": "), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-value" }, F(me.current.value)))), ae && /* @__PURE__ */ e.createElement(Lr, {
5038
+ }), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-name" }, me.current.name), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, ": "), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-value" }, F(me.current.value)))), Y && /* @__PURE__ */ e.createElement(Lr, {
5031
5039
  ariaHidden: p === "table" && de,
5032
5040
  data: o,
5033
5041
  series: v,
@@ -5047,32 +5055,32 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5047
5055
  default: return;
5048
5056
  }
5049
5057
  }, Gr = ({ 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: m, series: h = [], showAccessibleTable: _, showAxisLines: v, showDataPoints: y, showGrid: b, showLegend: x, showTooltip: S, timePeriodOptions: C, tooltipContent: w, xAxisLabel: T, xAxisTickInterval: E, yAxisDomain: D, yAxisFormatter: O = Hr, yAxisLabel: k, yAxisTickInterval: A, ...j }) => {
5050
- let { accessibleTableDescription: M = "Line chart data", emptyStateHeading: N = "No data available", emptyStateMessage: P, legendTableHeader: F, loadingLabel: I = "Loading chart data" } = l, L = g(null), R = Dr(a, Nr(L, a)), z = n ?? (c ? 60 : 360), ee = r ?? (c ? 60 : void 0), B = b ?? !c, V = v ?? !c, H = x ?? !c, U = S ?? !c, W = y ?? !c, G = _ ?? !0, K = "pds-line-chart";
5058
+ let { accessibleTableDescription: M = "Line chart data", emptyStateHeading: N = "No data available", emptyStateMessage: P, legendTableHeader: F, loadingLabel: I = "Loading chart data" } = l, L = g(null), R = Dr(a, Nr(L, a)), z = an("(hover: hover)"), ee = n ?? (c ? 60 : 360), B = r ?? (c ? 60 : void 0), V = b ?? !c, H = v ?? !c, U = x ?? !c, W = S ?? !c, G = y ?? !c, K = _ ?? !0, q = "pds-line-chart";
5051
5059
  return s ? /* @__PURE__ */ e.createElement("div", {
5052
5060
  ref: L,
5053
5061
  "aria-busy": "true",
5054
5062
  "aria-label": I,
5055
5063
  className: Z([
5056
- K,
5057
- `${K}--loading`,
5064
+ q,
5065
+ `${q}--loading`,
5058
5066
  i ?? ""
5059
5067
  ]),
5060
- style: { maxWidth: ee },
5068
+ style: { maxWidth: B },
5061
5069
  ...j
5062
5070
  }, /* @__PURE__ */ e.createElement(Vr, {
5063
- height: z,
5071
+ height: ee,
5064
5072
  legendVariant: u,
5065
- showLegend: H
5073
+ showLegend: U
5066
5074
  })) : !o || o.length === 0 ? /* @__PURE__ */ e.createElement("div", {
5067
5075
  ref: L,
5068
5076
  className: Z([
5069
- K,
5070
- `${K}--empty`,
5077
+ q,
5078
+ `${q}--empty`,
5071
5079
  i ?? ""
5072
5080
  ]),
5073
5081
  style: {
5074
- height: z,
5075
- maxWidth: ee
5082
+ height: ee,
5083
+ maxWidth: B
5076
5084
  },
5077
5085
  ...j
5078
5086
  }, /* @__PURE__ */ e.createElement(Cr, {
@@ -5080,12 +5088,12 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5080
5088
  message: P
5081
5089
  })) : /* @__PURE__ */ e.createElement("div", {
5082
5090
  ref: L,
5083
- className: Z([K, i ?? ""]),
5084
- style: ee ? { maxWidth: ee } : void 0,
5091
+ className: Z([q, i ?? ""]),
5092
+ style: B ? { maxWidth: B } : void 0,
5085
5093
  ...j
5086
- }, !c && C && C.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${K}__header` }, /* @__PURE__ */ e.createElement(Tr, {
5094
+ }, !c && C && C.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${q}__header` }, /* @__PURE__ */ e.createElement(Tr, {
5087
5095
  autoWidth: !0,
5088
- id: `${K}-time-period`,
5096
+ id: `${q}-time-period`,
5089
5097
  label: "Time period",
5090
5098
  onOptionSelect: (e) => f?.(e.value),
5091
5099
  options: C.map((e) => ({
@@ -5098,15 +5106,15 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5098
5106
  "aria-hidden": "true",
5099
5107
  style: {
5100
5108
  contain: "layout size",
5101
- height: z
5109
+ height: ee
5102
5110
  }
5103
5111
  }, /* @__PURE__ */ e.createElement(se, {
5104
5112
  debounce: 150,
5105
- height: z,
5106
- minHeight: z,
5113
+ height: ee,
5114
+ minHeight: ee,
5107
5115
  minWidth: 50,
5108
5116
  width: "100%"
5109
- }, /* @__PURE__ */ e.createElement(J, {
5117
+ }, /* @__PURE__ */ e.createElement(re, {
5110
5118
  accessibilityLayer: !1,
5111
5119
  data: o,
5112
5120
  margin: c ? {
@@ -5120,62 +5128,65 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5120
5128
  right: 4,
5121
5129
  top: 20
5122
5130
  }
5123
- }, B && /* @__PURE__ */ e.createElement(te, {
5131
+ }, V && /* @__PURE__ */ e.createElement(te, {
5124
5132
  stroke: "var(--pds-color-border-default)",
5125
5133
  strokeDasharray: "3 3"
5126
5134
  }), /* @__PURE__ */ e.createElement(le, {
5127
- axisLine: V,
5135
+ axisLine: H,
5128
5136
  dataKey: "label",
5129
- hide: !V,
5137
+ hide: !H,
5130
5138
  interval: E,
5131
- label: T && V ? {
5139
+ label: T && H ? {
5132
5140
  ...Fr,
5133
5141
  offset: -15,
5134
5142
  position: "insideBottom",
5135
5143
  value: T
5136
5144
  } : void 0,
5137
- tick: V ? Pr : !1,
5145
+ tick: H ? Pr : !1,
5138
5146
  tickLine: !1,
5139
5147
  tickMargin: 10
5140
5148
  }), /* @__PURE__ */ e.createElement(ue, {
5141
- axisLine: V,
5149
+ axisLine: H,
5142
5150
  domain: D,
5143
- hide: !V,
5151
+ hide: !H,
5144
5152
  interval: A,
5145
- label: k && V ? {
5153
+ label: k && H ? {
5146
5154
  ...Fr,
5147
5155
  angle: -90,
5148
5156
  dx: -44,
5149
5157
  position: "center",
5150
5158
  value: k
5151
5159
  } : void 0,
5152
- tick: V ? Pr : !1,
5160
+ tick: H ? Pr : !1,
5153
5161
  tickFormatter: O,
5154
5162
  tickLine: !1,
5155
5163
  tickMargin: 6
5156
- }), U && /* @__PURE__ */ e.createElement(ce, { content: (t) => {
5157
- if (!t.active || !t.payload?.length) return null;
5158
- let n = t.payload.map((e) => ({
5159
- color: String(e.color ?? ""),
5160
- dataKey: String(e.dataKey ?? ""),
5161
- name: String(e.name ?? ""),
5162
- value: Number(e.value ?? 0)
5163
- })), r = String(t.label ?? "");
5164
- return w ? w({
5165
- entries: n,
5166
- label: r
5167
- }) : /* @__PURE__ */ e.createElement("div", { className: "recharts-default-tooltip" }, /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-label" }, r), n.map((t) => /* @__PURE__ */ e.createElement("p", {
5168
- key: t.dataKey,
5169
- className: "recharts-tooltip-item"
5170
- }, /* @__PURE__ */ e.createElement("span", {
5171
- className: "recharts-tooltip-item__color",
5172
- style: { backgroundColor: t.color }
5173
- }), t.name, /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, " ", ":", " "), O(t.value))));
5174
- } }), h.map((t, n) => /* @__PURE__ */ e.createElement(re, {
5164
+ }), W && /* @__PURE__ */ e.createElement(ce, {
5165
+ content: (t) => {
5166
+ if (!t.active || !t.payload?.length) return null;
5167
+ let n = t.payload.map((e) => ({
5168
+ color: String(e.color ?? ""),
5169
+ dataKey: String(e.dataKey ?? ""),
5170
+ name: String(e.name ?? ""),
5171
+ value: Number(e.value ?? 0)
5172
+ })), r = String(t.label ?? "");
5173
+ return w ? w({
5174
+ entries: n,
5175
+ label: r
5176
+ }) : /* @__PURE__ */ e.createElement("div", { className: "recharts-default-tooltip" }, /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-label" }, r), n.map((t) => /* @__PURE__ */ e.createElement("p", {
5177
+ key: t.dataKey,
5178
+ className: "recharts-tooltip-item"
5179
+ }, /* @__PURE__ */ e.createElement("span", {
5180
+ className: "recharts-tooltip-item__color",
5181
+ style: { backgroundColor: t.color }
5182
+ }), t.name, /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, " ", ":", " "), O(t.value))));
5183
+ },
5184
+ trigger: z ? "hover" : "click"
5185
+ }), h.map((t, n) => /* @__PURE__ */ e.createElement(ne, {
5175
5186
  key: t.dataKey,
5176
- activeDot: W ? { r: 6 } : !1,
5187
+ activeDot: G ? { r: 6 } : !1,
5177
5188
  dataKey: t.dataKey,
5178
- dot: W ? {
5189
+ dot: G ? {
5179
5190
  fill: jr(n, R, t.color, Or(a, t.paletteIndex)),
5180
5191
  r: 4,
5181
5192
  strokeWidth: 0
@@ -5225,24 +5236,24 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5225
5236
  strokeDasharray: Wr(t.strokeStyle ?? "dashed"),
5226
5237
  x: t.atLabel
5227
5238
  });
5228
- })))), H && /* @__PURE__ */ e.createElement(Lr, {
5229
- ariaHidden: u === "table" && G,
5239
+ })))), U && /* @__PURE__ */ e.createElement(Lr, {
5240
+ ariaHidden: u === "table" && K,
5230
5241
  data: o,
5231
5242
  series: h,
5232
5243
  seriesColors: R,
5233
5244
  tableHeader: F,
5234
5245
  valueFormatter: O,
5235
5246
  variant: u
5236
- }), G && /* @__PURE__ */ e.createElement(Ir, {
5247
+ }), K && /* @__PURE__ */ e.createElement(Ir, {
5237
5248
  data: o,
5238
5249
  description: M,
5239
5250
  series: h,
5240
5251
  valueFormatter: O
5241
5252
  }));
5242
5253
  }, Kr = (e, t) => `(${t > 0 ? Math.round(e / t * 100) : 0}%)`, qr = ({ chartHeight: t, chartWidth: n, className: r, colorPalette: i = "categorical", data: a = [], isLoading: o = !1, isThumbnail: s = !1, labelStrings: c = {}, legendVariant: l = "inline", showAccessibleTable: u = !0, showLegend: d, showTooltip: f, valueFormatter: p = Kr, variant: m = "pie", ...h }) => {
5243
- let { accessibleTableDescription: _ = "Pie chart data", emptyStateHeading: v = "No data available", emptyStateMessage: y, loadingLabel: b = "Loading chart data" } = c, x = g(null), S = Dr(i, Nr(x, i)), C = "pds-pie-chart", w = t ?? (s ? 80 : 300), T = n ?? (s ? 80 : void 0), E = d ?? !s, D = f ?? !s, O = a.reduce((e, t) => e + t.value, 0), k = (e, t) => jr(e, S, t.color, Or(i, t.paletteIndex));
5254
+ let { accessibleTableDescription: _ = "Pie chart data", emptyStateHeading: v = "No data available", emptyStateMessage: y, loadingLabel: b = "Loading chart data" } = c, x = g(null), S = Dr(i, Nr(x, i)), C = "pds-pie-chart", w = an("(hover: hover)"), T = t ?? (s ? 80 : 300), E = n ?? (s ? 80 : void 0), D = d ?? !s, O = f ?? !s, k = a.reduce((e, t) => e + t.value, 0), A = (e, t) => jr(e, S, t.color, Or(i, t.paletteIndex));
5244
5255
  if (o) {
5245
- let t = `${Math.round(w * .8)}px`;
5256
+ let t = `${Math.round(T * .8)}px`;
5246
5257
  return /* @__PURE__ */ e.createElement("div", {
5247
5258
  ref: x,
5248
5259
  "aria-busy": "true",
@@ -5252,18 +5263,18 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5252
5263
  `${C}--loading`,
5253
5264
  r ?? ""
5254
5265
  ]),
5255
- style: T ? { maxWidth: T } : void 0,
5266
+ style: E ? { maxWidth: E } : void 0,
5256
5267
  ...h
5257
5268
  }, /* @__PURE__ */ e.createElement("div", { className: `${C}__skeleton` }, /* @__PURE__ */ e.createElement("div", {
5258
5269
  className: `${C}__skeleton-chart`,
5259
- style: { height: w }
5270
+ style: { height: T }
5260
5271
  }, /* @__PURE__ */ e.createElement(zr, {
5261
5272
  shape: "circular",
5262
5273
  style: {
5263
5274
  height: t,
5264
5275
  width: t
5265
5276
  }
5266
- })), E && /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--inline" }, /* @__PURE__ */ e.createElement(zr, {
5277
+ })), D && /* @__PURE__ */ e.createElement("div", { className: "pds-chart__skeleton-legend pds-chart__skeleton-legend--inline" }, /* @__PURE__ */ e.createElement(zr, {
5267
5278
  shape: "rounded",
5268
5279
  size: {
5269
5280
  height: .75,
@@ -5283,7 +5294,7 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5283
5294
  }
5284
5295
  }))));
5285
5296
  }
5286
- if (!a || a.length === 0 || O === 0) return /* @__PURE__ */ e.createElement("div", {
5297
+ if (!a || a.length === 0 || k === 0) return /* @__PURE__ */ e.createElement("div", {
5287
5298
  ref: x,
5288
5299
  className: Z([
5289
5300
  C,
@@ -5291,64 +5302,65 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5291
5302
  r ?? ""
5292
5303
  ]),
5293
5304
  style: {
5294
- height: w,
5295
- maxWidth: T
5305
+ height: T,
5306
+ maxWidth: E
5296
5307
  },
5297
5308
  ...h
5298
5309
  }, /* @__PURE__ */ e.createElement(Cr, {
5299
5310
  heading: v,
5300
5311
  message: y
5301
5312
  }));
5302
- let A = a.map((e) => ({
5313
+ let j = a.map((e) => ({
5303
5314
  name: e.label,
5304
5315
  value: e.value
5305
5316
  }));
5306
5317
  return /* @__PURE__ */ e.createElement("div", {
5307
5318
  ref: x,
5308
5319
  className: Z([C, r ?? ""]),
5309
- style: T ? { maxWidth: T } : void 0,
5320
+ style: E ? { maxWidth: E } : void 0,
5310
5321
  ...h
5311
5322
  }, /* @__PURE__ */ e.createElement("div", {
5312
5323
  "aria-hidden": "true",
5313
5324
  style: {
5314
5325
  contain: "layout size",
5315
- height: w,
5326
+ height: T,
5316
5327
  margin: "0 auto",
5317
- width: `min(100%, ${w}px)`
5328
+ width: `min(100%, ${T}px)`
5318
5329
  }
5319
5330
  }, /* @__PURE__ */ e.createElement(se, {
5320
5331
  debounce: 150,
5321
- height: w,
5322
- minHeight: w,
5332
+ height: T,
5333
+ minHeight: T,
5323
5334
  minWidth: 50,
5324
5335
  width: "100%"
5325
- }, /* @__PURE__ */ e.createElement(ae, { accessibilityLayer: !1 }, /* @__PURE__ */ e.createElement(ie, {
5336
+ }, /* @__PURE__ */ e.createElement(Y, { accessibilityLayer: !1 }, /* @__PURE__ */ e.createElement(ie, {
5326
5337
  cx: "50%",
5327
5338
  cy: "50%",
5328
- data: A,
5339
+ data: j,
5329
5340
  dataKey: "value",
5330
5341
  innerRadius: m === "donut" ? "55%" : 0,
5331
5342
  isAnimationActive: !s,
5332
5343
  outerRadius: "80%",
5333
5344
  stroke: "none"
5334
- }, a.map((t, n) => /* @__PURE__ */ e.createElement(ne, {
5345
+ }, a.map((t, n) => /* @__PURE__ */ e.createElement(J, {
5335
5346
  key: t.label,
5336
- fill: k(n, t)
5337
- }))), D && /* @__PURE__ */ e.createElement(ce, {
5347
+ fill: A(n, t)
5348
+ }))), O && /* @__PURE__ */ e.createElement(ce, {
5338
5349
  content: (t) => {
5339
5350
  if (!t.active || !t.payload?.length) return null;
5340
- let n = t.payload[0], r = Number(n.value ?? 0), i = O > 0 ? Math.round(r / O * 100) : 0, a = String(n.payload?.fill ?? "");
5351
+ let n = t.payload[0], r = Number(n.value ?? 0), i = k > 0 ? Math.round(r / k * 100) : 0, a = String(n.payload?.fill ?? "");
5341
5352
  return /* @__PURE__ */ e.createElement("div", { className: "recharts-default-tooltip" }, /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-label" }, String(n.name ?? "")), /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-item" }, /* @__PURE__ */ e.createElement("span", {
5342
5353
  className: "recharts-tooltip-item__color",
5343
5354
  style: { backgroundColor: a }
5344
5355
  }), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-value" }, i, "%"), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, " ", "—", " "), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-name" }, r.toLocaleString())));
5345
5356
  },
5346
- cursor: !1
5347
- })))), E && /* @__PURE__ */ e.createElement("div", {
5357
+ cursor: !1,
5358
+ trigger: w ? "hover" : "click"
5359
+ })))), D && /* @__PURE__ */ e.createElement("div", {
5348
5360
  "aria-hidden": l === "table" && u ? "true" : void 0,
5349
5361
  className: Z([`${C}__legend`, l === "table" ? `${C}__legend--table` : `${C}__legend--inline`])
5350
5362
  }, a.map((t, n) => {
5351
- let r = k(n, t), i = p(t.value, O, t.label);
5363
+ let r = A(n, t), i = p(t.value, k, t.label);
5352
5364
  return l === "table" ? /* @__PURE__ */ e.createElement("div", {
5353
5365
  key: t.label,
5354
5366
  className: `${C}__legend-row`
@@ -5366,7 +5378,7 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5366
5378
  "aria-label": _,
5367
5379
  role: "table"
5368
5380
  }, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, /* @__PURE__ */ e.createElement("th", { scope: "col" }, "Category"), /* @__PURE__ */ e.createElement("th", { scope: "col" }, "Value"), /* @__PURE__ */ e.createElement("th", { scope: "col" }, "Percentage"))), /* @__PURE__ */ e.createElement("tbody", null, a.map((t) => {
5369
- let n = O > 0 ? Math.round(t.value / O * 100) : 0;
5381
+ let n = k > 0 ? Math.round(t.value / k * 100) : 0;
5370
5382
  return /* @__PURE__ */ e.createElement("tr", { key: t.label }, /* @__PURE__ */ e.createElement("td", null, t.label), /* @__PURE__ */ e.createElement("td", null, t.value.toLocaleString()), /* @__PURE__ */ e.createElement("td", null, n, "%"));
5371
5383
  })))));
5372
5384
  }, Jr = (e, t) => `(${t > 0 ? Math.round(e / t * 100) : 0}%)`, Yr = ({ barHeight: t = 16, chartWidth: n, className: r, colorPalette: i = "categorical", data: a = [], isLoading: o = !1, isThumbnail: s = !1, labelStrings: c = {}, legendAlignment: u = "left", showAccessibleTable: f = !0, showLegend: p, showTooltip: m, valueFormatter: h = Jr, ...v }) => {
@@ -5399,7 +5411,10 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5399
5411
  });
5400
5412
  d(() => {
5401
5413
  V.setReference(z.current);
5402
- }, [V]);
5414
+ }, [V]), d(() => {
5415
+ let e = () => L(null);
5416
+ return window.addEventListener("scroll", e, !0), () => window.removeEventListener("scroll", e, !0);
5417
+ }, []);
5403
5418
  let K = l((e) => {
5404
5419
  z.current.getBoundingClientRect = () => ({
5405
5420
  bottom: e.clientY,
@@ -5453,16 +5468,19 @@ var lr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5453
5468
  onMouseMove: M ? K : void 0,
5454
5469
  style: { height: t }
5455
5470
  }, a.map((t, n) => {
5456
- let r = F(n, t), i = Math.round(t.value / N * 100);
5471
+ let r = F(n, t), i = Math.round(t.value / N * 100), a = () => L({
5472
+ color: r,
5473
+ label: t.label,
5474
+ percent: i,
5475
+ value: t.value
5476
+ });
5457
5477
  return /* @__PURE__ */ e.createElement("div", {
5458
5478
  key: t.label,
5459
5479
  className: `${T}__segment`,
5460
- onMouseEnter: M ? () => L({
5461
- color: r,
5462
- label: t.label,
5463
- percent: i,
5464
- value: t.value
5465
- }) : void 0,
5480
+ onClick: M ? (e) => {
5481
+ K(e), a();
5482
+ } : void 0,
5483
+ onMouseEnter: M ? a : void 0,
5466
5484
  style: {
5467
5485
  backgroundColor: r,
5468
5486
  flex: t.value
@@ -7247,9 +7265,9 @@ var Qr = {
7247
7265
  searchShortcut: "Press / to focus the search field",
7248
7266
  triggerButton: "Toggle dropdown menu"
7249
7267
  }, loadingText: b = "Loading results...", message: x, noResultsText: S = "No results found", onBlur: w, onChange: T, onClear: k, onFocus: A, onOptionSelect: M, options: N, placeholder: F, required: I = !1, showLabel: L = !0, showUnfilteredOptions: R = !1, size: z = "s", tooltipText: ee = null, validationMessage: B, validationStatus: V, value: H, ...W }, G) => {
7250
- let K = sn(f, p), q = "pds-combobox", te = z === "s" ? null : `${q}--${z}`, ne = r ? $.disabled : null, re = I && !r ? $.required : null, J = V === "error" ? $.error : null, ie = V === "success" ? $.success : null, ae = null;
7251
- s && (ae = "search"), V === "error" && (ae = "error"), V === "success" && (ae = "success");
7252
- let Y = B || x, oe = H !== void 0, se = n !== void 0, ce = (e) => {
7268
+ let K = sn(f, p), q = "pds-combobox", te = z === "s" ? null : `${q}--${z}`, J = r ? $.disabled : null, ne = I && !r ? $.required : null, re = V === "error" ? $.error : null, ie = V === "success" ? $.success : null, Y = null;
7269
+ s && (Y = "search"), V === "error" && (Y = "error"), V === "success" && (Y = "success");
7270
+ let ae = B || x, oe = H !== void 0, se = n !== void 0, ce = (e) => {
7253
7271
  let t = N.find((t) => t.value === e);
7254
7272
  return t ? t.label : "";
7255
7273
  }, [le, ue] = _(se ? n : void 0), [de, fe] = _(oe ? H ?? "" : se ? ce(n) : ""), me = c && !de;
@@ -7274,7 +7292,7 @@ var Qr = {
7274
7292
  N,
7275
7293
  de,
7276
7294
  R
7277
- ]), { getInputProps: ve, getItemProps: X, getMenuProps: ye, highlightedIndex: be, isOpen: xe, openMenu: Se, reset: Ce } = pe({
7295
+ ]), { getInputProps: ve, getItemProps: ye, getMenuProps: be, highlightedIndex: xe, isOpen: X, openMenu: Se, reset: Ce } = pe({
7278
7296
  id: u,
7279
7297
  inputId: `input-${u}`,
7280
7298
  items: _e,
@@ -7304,7 +7322,7 @@ var Qr = {
7304
7322
  return t;
7305
7323
  }
7306
7324
  }), { context: we, floatingStyles: Te, refs: Ee } = P({
7307
- open: xe,
7325
+ open: X,
7308
7326
  whileElementsMounted: E,
7309
7327
  placement: "bottom-start",
7310
7328
  strategy: "fixed",
@@ -7338,7 +7356,7 @@ var Qr = {
7338
7356
  }), ke = Vn("var(--pds-z-index-dropdown)"), Ae = l((e) => {
7339
7357
  Ee.setReference(e), typeof G == "function" ? G(e) : G && "current" in G && (G.current = e);
7340
7358
  }, [G, Ee]), je = () => {
7341
- xe ? Ce() : Se();
7359
+ X ? Ce() : Se();
7342
7360
  }, Me = () => {
7343
7361
  oe || fe(""), ue(void 0), Ce(), he.current?.focus(), R && Se(), k?.();
7344
7362
  }, Ne = (e) => {
@@ -7347,8 +7365,8 @@ var Qr = {
7347
7365
  R && Se(), A?.(le);
7348
7366
  }, Fe = () => _e.map((t, n) => /* @__PURE__ */ e.createElement(yn, {
7349
7367
  key: t.value,
7350
- className: be === n ? "pds-dropdown__item--focused" : "",
7351
- ...X({
7368
+ className: xe === n ? "pds-dropdown__item--focused" : "",
7369
+ ...ye({
7352
7370
  item: t,
7353
7371
  index: n
7354
7372
  })
@@ -7358,9 +7376,9 @@ var Qr = {
7358
7376
  $.base,
7359
7377
  q,
7360
7378
  te,
7379
+ J,
7361
7380
  ne,
7362
7381
  re,
7363
- J,
7364
7382
  ie,
7365
7383
  t ?? ""
7366
7384
  ]),
@@ -7375,13 +7393,13 @@ var Qr = {
7375
7393
  tooltipText: ee
7376
7394
  }), /* @__PURE__ */ e.createElement("span", {
7377
7395
  ref: Ae,
7378
- "aria-describedby": Y ? `${u}__message` : null,
7396
+ "aria-describedby": ae ? `${u}__message` : null,
7379
7397
  "aria-disabled": r ? !0 : null,
7380
7398
  "aria-invalid": V === "error" ? !0 : null,
7381
7399
  "aria-required": I ? !0 : null,
7382
7400
  className: Z([`${q}__input-wrapper`, me ? `${q}__input-wrapper--has-search-shortcut` : null]),
7383
7401
  id: u
7384
- }, ae && /* @__PURE__ */ e.createElement(pn, { variant: ae }), /* @__PURE__ */ e.createElement("input", {
7402
+ }, Y && /* @__PURE__ */ e.createElement(pn, { variant: Y }), /* @__PURE__ */ e.createElement("input", {
7385
7403
  ref: he,
7386
7404
  autoComplete: "off",
7387
7405
  className: `${q}__input`,
@@ -7404,7 +7422,7 @@ var Qr = {
7404
7422
  inputId: `input-${u}`,
7405
7423
  shortcutLabel: y.searchShortcut
7406
7424
  }), o && /* @__PURE__ */ e.createElement("button", {
7407
- "aria-expanded": xe,
7425
+ "aria-expanded": X,
7408
7426
  "aria-label": y.triggerButton,
7409
7427
  className: `${q}__trigger`,
7410
7428
  disabled: r,
@@ -7424,15 +7442,15 @@ var Qr = {
7424
7442
  } : { display: "none" }
7425
7443
  }, De && m && /* @__PURE__ */ e.createElement("div", { className: `${q}__loading` }, b), De && !m && _e.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, S), /* @__PURE__ */ e.createElement("ul", {
7426
7444
  className: `${q}__options`,
7427
- ...ye({}, { suppressRefError: !0 }),
7445
+ ...be({}, { suppressRefError: !0 }),
7428
7446
  style: De && (i || !m && _e.length > 0) ? void 0 : { display: "none" }
7429
7447
  }, De && !m && Fe(), De && i && /* @__PURE__ */ e.createElement("li", {
7430
7448
  className: "pds-dropdown__footer",
7431
7449
  role: "presentation"
7432
- }, i)))), Y && /* @__PURE__ */ e.createElement(dn, {
7450
+ }, i)))), ae && /* @__PURE__ */ e.createElement(dn, {
7433
7451
  hasValidationMessage: !!B,
7434
7452
  id: u,
7435
- message: Y,
7453
+ message: ae,
7436
7454
  validationMessageHasDecorators: !1,
7437
7455
  validationStatus: V
7438
7456
  }));
@@ -7457,9 +7475,9 @@ var Qr = {
7457
7475
  ]), te = h(() => t?.items?.map((e) => ({
7458
7476
  ...e,
7459
7477
  isAlreadySelected: B.some((t) => t.id === e.id)
7460
- })) || [], [t?.items, B]), ne = (e) => {
7478
+ })) || [], [t?.items, B]), J = (e) => {
7461
7479
  H(e), m?.(e);
7462
- }, { getDropdownProps: re, getSelectedItemProps: J, removeSelectedItem: ie } = me({
7480
+ }, { getDropdownProps: ne, getSelectedItemProps: re, removeSelectedItem: ie } = me({
7463
7481
  selectedItems: B,
7464
7482
  onStateChange: ({ selectedItems: e, type: t }) => {
7465
7483
  if (!r) switch (t) {
@@ -7467,12 +7485,12 @@ var Qr = {
7467
7485
  case me.stateChangeTypes.SelectedItemKeyDownDelete:
7468
7486
  case me.stateChangeTypes.DropdownKeyDownBackspace:
7469
7487
  case me.stateChangeTypes.FunctionRemoveSelectedItem:
7470
- ne(e || []);
7488
+ J(e || []);
7471
7489
  break;
7472
7490
  default: break;
7473
7491
  }
7474
7492
  }
7475
- }), { closeMenu: ae, getInputProps: Y, getItemProps: oe, getMenuProps: se, getToggleButtonProps: ce, highlightedIndex: le, isOpen: ue, openMenu: de, selectedItem: fe } = pe({
7493
+ }), { closeMenu: Y, getInputProps: ae, getItemProps: oe, getMenuProps: se, getToggleButtonProps: ce, highlightedIndex: le, isOpen: ue, openMenu: de, selectedItem: fe } = pe({
7476
7494
  items: q,
7477
7495
  itemToString: (e) => e ? e.label : "",
7478
7496
  selectedItem: null,
@@ -7495,7 +7513,7 @@ var Qr = {
7495
7513
  case pe.stateChangeTypes.InputKeyDownEnter:
7496
7514
  case pe.stateChangeTypes.ItemClick:
7497
7515
  case pe.stateChangeTypes.InputBlur:
7498
- n && (n.isAlreadySelected ? ne(B.filter((e) => e.id !== n.id)) : ne([...B, n]), z(""), W(null));
7516
+ n && (n.isAlreadySelected ? J(B.filter((e) => e.id !== n.id)) : J([...B, n]), z(""), W(null));
7499
7517
  break;
7500
7518
  case pe.stateChangeTypes.InputChange:
7501
7519
  z(e || ""), W(null);
@@ -7530,7 +7548,7 @@ var Qr = {
7530
7548
  }
7531
7549
  })
7532
7550
  ]
7533
- }), { context: _e, floatingStyles: ve, refs: X } = P({
7551
+ }), { context: _e, floatingStyles: ve, refs: ye } = P({
7534
7552
  open: G,
7535
7553
  onOpenChange: K,
7536
7554
  whileElementsMounted: E,
@@ -7543,12 +7561,12 @@ var Qr = {
7543
7561
  Object.assign(e.floating.style, { width: `${t.reference.width}px` });
7544
7562
  } })
7545
7563
  ]
7546
- }), { getFloatingProps: ye } = ee([N(_e)]), be = Vn("var(--pds-z-index-dropdown)"), xe = (e) => {
7564
+ }), { getFloatingProps: be } = ee([N(_e)]), xe = Vn("var(--pds-z-index-dropdown)"), X = (e) => {
7547
7565
  if (e.stopPropagation(), r) return;
7548
7566
  let t = !G;
7549
- K(t), t && ue && ae();
7567
+ K(t), t && ue && Y();
7550
7568
  }, Se = (e) => {
7551
- r || (e.isAlreadySelected ? ne(B.filter((t) => t.id !== e.id)) : ne([...B, e]));
7569
+ r || (e.isAlreadySelected ? J(B.filter((t) => t.id !== e.id)) : J([...B, e]));
7552
7570
  }, Ce = () => {
7553
7571
  K(!1), t?.onClose?.();
7554
7572
  }, we = () => {
@@ -7557,19 +7575,19 @@ var Qr = {
7557
7575
  if (U === null) W(B.length - 1);
7558
7576
  else {
7559
7577
  let e = [...B];
7560
- e.splice(U, 1), ne(e), W(null);
7578
+ e.splice(U, 1), J(e), W(null);
7561
7579
  }
7562
7580
  }, Ee = g(!1), De = () => {
7563
- r || (Ee.current ? ae() : de());
7581
+ r || (Ee.current ? Y() : de());
7564
7582
  }, Oe = (e) => {
7565
7583
  Ee.current = ue, !r && e.currentTarget.setAttribute("data-focus-method", "mouse");
7566
7584
  }, ke = (e) => {
7567
7585
  e.currentTarget.setAttribute("data-focus-method", "keyboard"), !r && ((e.key === "Backspace" || e.key === "Delete") && !R && B.length > 0 && (e.preventDefault(), Te()), e.key === "Enter" && U !== null && (e.preventDefault(), Te()), !ue && (e.key === "Enter" || e.key === "ArrowDown") && (e.preventDefault(), de()));
7568
- }, Ae = Y({
7569
- ...re({ preventKeyAction: ue }, { suppressRefError: !0 }),
7586
+ }, Ae = ae({
7587
+ ...ne({ preventKeyAction: ue }, { suppressRefError: !0 }),
7570
7588
  disabled: r,
7571
7589
  onKeyDown: ke
7572
- }, { suppressRefError: !0 }), je = B.length === 2 ? /* @__PURE__ */ e.createElement("span", { className: `${A}__counter-item` }, B.length - 1) : B.length === 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${A}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${A}__counter-item` }, B.length - 1)) : B.length > 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${A}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${A}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${A}__counter-item` }, B.length - 1)) : "", Me = re({}, { suppressRefError: !0 }), Ne = V([Me.ref, ge.setFloating]);
7590
+ }, { suppressRefError: !0 }), je = B.length === 2 ? /* @__PURE__ */ e.createElement("span", { className: `${A}__counter-item` }, B.length - 1) : B.length === 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${A}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${A}__counter-item` }, B.length - 1)) : B.length > 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${A}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${A}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${A}__counter-item` }, B.length - 1)) : "", Me = ne({}, { suppressRefError: !0 }), Ne = V([Me.ref, ge.setFloating]);
7573
7591
  return /* @__PURE__ */ e.createElement("div", {
7574
7592
  className: Z([
7575
7593
  $.base,
@@ -7590,7 +7608,7 @@ var Qr = {
7590
7608
  showLabel: S
7591
7609
  }), /* @__PURE__ */ e.createElement("div", {
7592
7610
  ref: (e) => {
7593
- ge.setReference(e), X.setReference(e);
7611
+ ge.setReference(e), ye.setReference(e);
7594
7612
  },
7595
7613
  "aria-disabled": r ? !0 : null,
7596
7614
  "aria-required": b ? !0 : null,
@@ -7605,7 +7623,7 @@ var Qr = {
7605
7623
  ${A}__selected-item
7606
7624
  ${n === U ? `${A}__selected-item--marked-for-deletion` : ""}
7607
7625
  `,
7608
- ...J({
7626
+ ...re({
7609
7627
  selectedItem: t,
7610
7628
  index: n
7611
7629
  }),
@@ -7627,7 +7645,7 @@ var Qr = {
7627
7645
  "aria-label": d.aiPanelButton,
7628
7646
  className: Z([`${A}__ai-button`, F ?? ""]),
7629
7647
  disabled: r,
7630
- onClick: xe,
7648
+ onClick: X,
7631
7649
  type: "button"
7632
7650
  }, /* @__PURE__ */ e.createElement(Q, {
7633
7651
  className: `${A}__ai-icon`,
@@ -7649,7 +7667,7 @@ var Qr = {
7649
7667
  className: `pds-dropdown__panel ${A}__dropdown ${i ? `${A}__dropdown--has-footer` : ""}`,
7650
7668
  style: ue ? {
7651
7669
  ...he,
7652
- zIndex: be
7670
+ zIndex: xe
7653
7671
  } : { display: "none" }
7654
7672
  }, /* @__PURE__ */ e.createElement("div", { className: `${A}__dropdown-input-wrapper` }, /* @__PURE__ */ e.createElement(pn, { variant: "search" }), /* @__PURE__ */ e.createElement("input", {
7655
7673
  "aria-label": d.inputInstructions,
@@ -7680,13 +7698,13 @@ var Qr = {
7680
7698
  className: "pds-dropdown__footer",
7681
7699
  role: "presentation"
7682
7700
  }, i)))), G && t && /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
7683
- ref: X.setFloating,
7701
+ ref: ye.setFloating,
7684
7702
  className: `${A}__aux-panel`,
7685
7703
  style: {
7686
7704
  ...ve,
7687
- zIndex: be
7705
+ zIndex: xe
7688
7706
  },
7689
- ...ye()
7707
+ ...be()
7690
7708
  }, t.content ? /* @__PURE__ */ e.createElement("div", { className: `${A}__aux-panel-content` }, t.content) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Q, {
7691
7709
  className: `${A}__aux-panel-icon`,
7692
7710
  iconName: "sparkles",
@@ -7715,12 +7733,23 @@ var Qr = {
7715
7733
  iconName: "xmark",
7716
7734
  size: "m"
7717
7735
  }))))));
7718
- }, yi = (e) => String(e).padStart(2, "0"), bi = (e) => {
7736
+ }, yi = () => {
7737
+ let e = typeof window < "u", t = (e) => e >= 1440 ? "xl" : e >= 1280 ? "lg" : e >= 768 ? "md" : "sm", [n, r] = _(e ? t(window.innerWidth) : "lg");
7738
+ return d(() => {
7739
+ if (!e) return;
7740
+ let n = () => {
7741
+ r(t(window.innerWidth));
7742
+ };
7743
+ return n(), window.addEventListener("resize", n), () => {
7744
+ window.removeEventListener("resize", n);
7745
+ };
7746
+ }, [e]), n;
7747
+ }, bi = (e) => String(e).padStart(2, "0"), xi = (e) => {
7719
7748
  let t = e ? /^(\d{1,2}):(\d{2})$/.exec(e) : null;
7720
7749
  if (!t) return null;
7721
7750
  let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
7722
7751
  return n > 23 || r > 59 ? null : new ge(n, r);
7723
- }, xi = (e) => e ? `${yi(e.hour)}:${yi(e.minute)}` : void 0, Si = ({ baseClass: t, segment: n, state: r }) => {
7752
+ }, Si = (e) => e ? `${bi(e.hour)}:${bi(e.minute)}` : void 0, Ci = ({ baseClass: t, segment: n, state: r }) => {
7724
7753
  let i = g(null), { segmentProps: a } = Pe(n, r, i), { focusProps: o, isFocusVisible: s } = Fe(), c = n.isPlaceholder ? n.type === "dayPeriod" ? "--" : "00" : n.text;
7725
7754
  return /* @__PURE__ */ e.createElement("div", {
7726
7755
  ...ke(a, o),
@@ -7731,7 +7760,7 @@ var Qr = {
7731
7760
  s ? `${t}__segment--focus-visible` : null
7732
7761
  ])
7733
7762
  }, c);
7734
- }, Ci = ({ anchorDate: t, className: n, defaultValue: r, disabled: i = !1, hourCycle: a = 12, id: o, inputWidth: s, inputWidthMin: c, label: l, message: u, onBlur: f, onChange: p, onFocus: m, required: v = !1, showLabel: y = !0, size: b = "s", timeZone: x, tooltipText: S = null, validationMessage: C, validationStatus: w, value: T }) => {
7763
+ }, wi = ({ anchorDate: t, className: n, defaultValue: r, disabled: i = !1, hourCycle: a = 12, id: o, inputWidth: s, inputWidthMin: c, label: l, message: u, onBlur: f, onChange: p, onFocus: m, required: v = !1, showLabel: y = !0, size: b = "s", timeZone: x, tooltipText: S = null, validationMessage: C, validationStatus: w, value: T }) => {
7735
7764
  let E = sn(s, c), D = "pds-timepicker", O = b === "s" ? null : `${D}--${b}`, k = i ? $.disabled : null, A = v && !i ? $.required : null, j = w === "error" ? $.error : null, M = w === "success" ? $.success : null, N = C || u, P = T !== void 0, { locale: F } = Ie(), [I, L] = _(r), R = P ? T : I, z = Ve({
7736
7765
  granularity: "minute",
7737
7766
  hourCycle: a,
@@ -7739,14 +7768,14 @@ var Qr = {
7739
7768
  locale: F,
7740
7769
  onBlur: f,
7741
7770
  onChange: (e) => {
7742
- let t = xi(e);
7771
+ let t = Si(e);
7743
7772
  t && (P || L(t), p && p(t));
7744
7773
  },
7745
7774
  onFocusChange: (e) => {
7746
7775
  e && m && m();
7747
7776
  },
7748
7777
  shouldForceLeadingZeros: !0,
7749
- value: h(() => bi(R), [R])
7778
+ value: h(() => xi(R), [R])
7750
7779
  }), ee = g(null), { fieldProps: B } = Re({
7751
7780
  "aria-describedby": N ? `${o}__message` : void 0,
7752
7781
  "aria-labelledby": `${o}-label`,
@@ -7757,7 +7786,7 @@ var Qr = {
7757
7786
  if (V.current = x, !x || !e || x === e) return;
7758
7787
  let n = z.value;
7759
7788
  if (!n) return;
7760
- let r = we(Te(Ce(t ?? Ee(e), n), e), x), i = xi(new ge(r.hour, r.minute));
7789
+ let r = we(Te(Ce(t ?? Ee(e), n), e), x), i = Si(new ge(r.hour, r.minute));
7761
7790
  i && (P || L(i), p && p(i));
7762
7791
  }, [x]);
7763
7792
  let H = h(() => {
@@ -7807,7 +7836,7 @@ var Qr = {
7807
7836
  }), /* @__PURE__ */ e.createElement("div", { className: `${D}__value` }, z.segments.map((t, n) => t.type === "literal" ? /* @__PURE__ */ e.createElement("div", {
7808
7837
  key: n,
7809
7838
  className: Z([`${D}__separator`, t.text === ":" ? `${D}__separator--colon` : null])
7810
- }, t.text) : /* @__PURE__ */ e.createElement(Si, {
7839
+ }, t.text) : /* @__PURE__ */ e.createElement(Ci, {
7811
7840
  key: n,
7812
7841
  baseClass: D,
7813
7842
  segment: t,
@@ -7819,31 +7848,31 @@ var Qr = {
7819
7848
  validationMessageHasDecorators: !1,
7820
7849
  validationStatus: w
7821
7850
  }));
7822
- }, wi = (e, t = be()) => {
7851
+ }, Ti = (e, t = xe()) => {
7823
7852
  if (!e) return;
7824
- let n = ye(e, t);
7853
+ let n = be(e, t);
7825
7854
  return new he(n.year, n.month, n.day);
7826
- }, Ti = (e, t = be()) => e ? e.toDate(t) : void 0, Ei = (e) => String(e).padStart(2, "0"), Di = (e) => {
7855
+ }, Ei = (e, t = xe()) => e ? e.toDate(t) : void 0, Di = (e) => String(e).padStart(2, "0"), Oi = (e) => {
7827
7856
  let t = e ? /^(\d{1,2}):(\d{2})$/.exec(e) : null;
7828
7857
  if (!t) return;
7829
7858
  let n = parseInt(t[1], 10), r = parseInt(t[2], 10);
7830
7859
  if (!(n > 23 || r > 59)) return new ge(n, r);
7831
- }, Oi = (e, t = be()) => {
7860
+ }, ki = (e, t = xe()) => {
7832
7861
  if (!e) return;
7833
- let n = ye(e, t);
7834
- return `${Ei(n.hour)}:${Ei(n.minute)}`;
7835
- }, ki = (e, t, n = be()) => {
7862
+ let n = be(e, t);
7863
+ return `${Di(n.hour)}:${Di(n.minute)}`;
7864
+ }, Ai = (e, t, n = xe()) => {
7836
7865
  if (!e) return;
7837
- let r = Di(t);
7838
- return r ? Ce(e, r).toDate(n) : Ti(e, n);
7839
- }, Ai = "00:00", ji = "23:59", Mi = (e, t, n = be()) => {
7866
+ let r = Oi(t);
7867
+ return r ? Ce(e, r).toDate(n) : Ei(e, n);
7868
+ }, ji = "00:00", Mi = "23:59", Ni = (e, t, n = xe()) => {
7840
7869
  if (!e) return "";
7841
- let r = ye(e, n);
7870
+ let r = be(e, n);
7842
7871
  return De(new Date(r.year, r.month - 1, r.day), "PP", { locale: t });
7843
- }, Ni = (e, t) => {
7872
+ }, Pi = (e, t) => {
7844
7873
  let n = Ee(t).year;
7845
- return e.some((e) => !!e && ye(e, t).year !== n);
7846
- }, Pi = (e, { hourCycle: t, includeYear: n, localeString: r, timeZone: i = be() }) => e ? new Intl.DateTimeFormat(r, {
7874
+ return e.some((e) => !!e && be(e, t).year !== n);
7875
+ }, Fi = (e, { hourCycle: t, includeYear: n, localeString: r, timeZone: i = xe() }) => e ? new Intl.DateTimeFormat(r, {
7847
7876
  day: "numeric",
7848
7877
  hour: t === 24 ? "2-digit" : "numeric",
7849
7878
  hourCycle: t === 24 ? "h23" : "h12",
@@ -7851,15 +7880,15 @@ var Qr = {
7851
7880
  month: "short",
7852
7881
  timeZone: i,
7853
7882
  ...n ? { year: "numeric" } : {}
7854
- }).format(e) : "", Fi = (e, t) => {
7883
+ }).format(e) : "", Ii = (e, t) => {
7855
7884
  if (e.custom) return e.custom();
7856
- let n = t?.timeZone ?? be(), r = t?.locale ?? "en-US", i = Ee(n);
7885
+ let n = t?.timeZone ?? xe(), r = t?.locale ?? "en-US", i = Ee(n);
7857
7886
  if (e.days !== void 0) return e.days < 0 ? {
7858
- from: Ti(i.add({ days: e.days + 1 }), n),
7859
- to: Ti(i, n)
7887
+ from: Ei(i.add({ days: e.days + 1 }), n),
7888
+ to: Ei(i, n)
7860
7889
  } : {
7861
- from: Ti(i, n),
7862
- to: Ti(i.add({ days: e.days - 1 }), n)
7890
+ from: Ei(i, n),
7891
+ to: Ei(i.add({ days: e.days - 1 }), n)
7863
7892
  };
7864
7893
  if (e.hours !== void 0) {
7865
7894
  let t = /* @__PURE__ */ new Date(), n = new Date(t.getTime() + e.hours * 60 * 60 * 1e3);
@@ -7883,37 +7912,37 @@ var Qr = {
7883
7912
  }
7884
7913
  switch (e.type) {
7885
7914
  case "today": return {
7886
- from: Ti(i, n),
7887
- to: Ti(i, n)
7915
+ from: Ei(i, n),
7916
+ to: Ei(i, n)
7888
7917
  };
7889
7918
  case "current-week": return {
7890
- from: Ti(Se(i, r), n),
7891
- to: Ti(X(i, r), n)
7919
+ from: Ei(Se(i, r), n),
7920
+ to: Ei(ye(i, r), n)
7892
7921
  };
7893
7922
  case "current-month": return {
7894
- from: Ti(xe(i), n),
7895
- to: Ti(ve(i), n)
7923
+ from: Ei(X(i), n),
7924
+ to: Ei(ve(i), n)
7896
7925
  };
7897
7926
  case "last-week": {
7898
7927
  let e = i.subtract({ weeks: 1 });
7899
7928
  return {
7900
- from: Ti(Se(e, r), n),
7901
- to: Ti(X(e, r), n)
7929
+ from: Ei(Se(e, r), n),
7930
+ to: Ei(ye(e, r), n)
7902
7931
  };
7903
7932
  }
7904
7933
  case "last-month": {
7905
7934
  let e = i.subtract({ months: 1 });
7906
7935
  return {
7907
- from: Ti(xe(e), n),
7908
- to: Ti(ve(e), n)
7936
+ from: Ei(X(e), n),
7937
+ to: Ei(ve(e), n)
7909
7938
  };
7910
7939
  }
7911
7940
  default: return {
7912
- from: Ti(i, n),
7913
- to: Ti(i, n)
7941
+ from: Ei(i, n),
7942
+ to: Ei(i, n)
7914
7943
  };
7915
7944
  }
7916
- }, Ii = {
7945
+ }, Li = {
7917
7946
  clearButton: "Clear",
7918
7947
  customPresetLabel: "Custom",
7919
7948
  doneButton: "Done",
@@ -7934,7 +7963,7 @@ var Qr = {
7934
7963
  to: " to ",
7935
7964
  todayButton: "Today",
7936
7965
  utcTimeZoneLabel: "UTC"
7937
- }, Li = ({ baseClass: t, currentMonth: n, date: r, state: i, timeZone: a }) => {
7966
+ }, Ri = ({ baseClass: t, currentMonth: n, date: r, state: i, timeZone: a }) => {
7938
7967
  let o = g(null), { buttonProps: s, cellProps: c, formattedDate: l, isDisabled: u, isOutsideVisibleRange: d, isSelected: f, isUnavailable: p } = Me({ date: r }, i, o), m = r.month !== n.month || r.year !== n.year, h = "highlightedRange" in i ? i : null, _ = !!h?.highlightedRange && r.compare(h.highlightedRange.start) === 0, v = !!h?.highlightedRange && r.compare(h.highlightedRange.end) === 0, y = f && h && !_ && !v, b = d || m, x = r.compare(Ee(a)) === 0;
7939
7968
  return /* @__PURE__ */ e.createElement("td", {
7940
7969
  ...c,
@@ -7956,7 +7985,7 @@ var Qr = {
7956
7985
  ]),
7957
7986
  hidden: b
7958
7987
  }, l));
7959
- }, Ri = ({ baseClass: t, monthOffset: n = 0, state: r, timeZone: i }) => {
7988
+ }, zi = ({ baseClass: t, monthOffset: n = 0, state: r, timeZone: i }) => {
7960
7989
  let a = r.visibleRange.start.add({ months: n }), { gridProps: o, headerProps: s, weekDays: c, weeksInMonth: l } = Ne({ startDate: a }, r);
7961
7990
  return /* @__PURE__ */ e.createElement("table", {
7962
7991
  ...o,
@@ -7964,7 +7993,7 @@ var Qr = {
7964
7993
  }, /* @__PURE__ */ e.createElement("thead", s, /* @__PURE__ */ e.createElement("tr", null, c.map((n, r) => /* @__PURE__ */ e.createElement("th", {
7965
7994
  key: r,
7966
7995
  className: `${t}__weekday`
7967
- }, n)))), /* @__PURE__ */ e.createElement("tbody", null, [...Array(l).keys()].map((n) => /* @__PURE__ */ e.createElement("tr", { key: n }, r.getDatesInWeek(n, a).map((n, o) => n ? /* @__PURE__ */ e.createElement(Li, {
7996
+ }, n)))), /* @__PURE__ */ e.createElement("tbody", null, [...Array(l).keys()].map((n) => /* @__PURE__ */ e.createElement("tr", { key: n }, r.getDatesInWeek(n, a).map((n, o) => n ? /* @__PURE__ */ e.createElement(Ri, {
7968
7997
  key: o,
7969
7998
  baseClass: t,
7970
7999
  currentMonth: a,
@@ -7972,31 +8001,31 @@ var Qr = {
7972
8001
  state: r,
7973
8002
  timeZone: i
7974
8003
  }) : /* @__PURE__ */ e.createElement("td", { key: o }))))));
7975
- }, zi = ({ allowCustomRange: t = !0, allowDateRangeSelection: n = !0, className: r, defaultPresetLabel: i, defaultTimeZoneMode: a = "utc", disabled: o = !1, footerNote: s, hourCycle: c = 12, id: l, inputWidth: u, inputWidthMin: f, label: p, locale: m, maxDate: v, message: y, minDate: b, mode: x = "single", onChange: S, onTimeZoneChange: w, placeholder: T, presets: E, required: D = !1, showLabel: O = !0, showPresetCalendar: k = !0, showTime: A = !1, showTimeZoneSwitcher: j = !1, showTodayButton: M = !0, timeZone: N = be(), tooltipText: P, translationStrings: F, validationMessage: I, validationStatus: L, value: R, visibleMonths: z = 2, ...ee }) => {
8004
+ }, Bi = ({ allowCustomRange: t = !0, allowDateRangeSelection: n = !0, className: r, defaultPresetLabel: i, defaultTimeZoneMode: a = "utc", disabled: o = !1, footerNote: s, hourCycle: c = 12, id: l, inputWidth: u, inputWidthMin: f, label: p, locale: m, maxDate: v, message: y, minDate: b, mode: x = "single", onChange: S, onTimeZoneChange: w, placeholder: T, presets: E, required: D = !1, showLabel: O = !0, showPresetCalendar: k = !0, showTime: A = !1, showTimeZoneSwitcher: j = !1, showTodayButton: M = !0, timeZone: N = xe(), tooltipText: P, translationStrings: F, validationMessage: I, validationStatus: L, value: R, visibleMonths: z = 2, ...ee }) => {
7976
8005
  let B = x === "range", V = {
7977
- ...Ii,
8006
+ ...Li,
7978
8007
  ...F
7979
- }, H = B && !!E && E.length > 0;
8008
+ }, H = B && !!E && E.length > 0, U = yi() === "sm", W = k && !U;
7980
8009
  j && !A && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `showTimeZoneSwitcher` has no effect unless `showTime` is also true."), E && E.length > 0 && !B && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `presets` requires `mode=\"range\"` — every preset computes a date range."), !t && !H && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `allowCustomRange` has no effect unless `presets` is also set."), i !== void 0 && !(H && E?.some((e) => e.label === i)) && process.env.NODE_ENV !== "production" && console.warn(`[Datepicker] \`defaultPresetLabel\` "${i}" matches no entry in \`presets\` — nothing is seeded as active.`);
7981
- let { locale: U } = Ie(), W = m?.code ?? U, G = h(() => B ? E?.find((e) => e.label === i) : void 0, [
8010
+ let { locale: G } = Ie(), K = m?.code ?? G, q = h(() => B ? E?.find((e) => e.label === i) : void 0, [
7982
8011
  i,
7983
8012
  B,
7984
8013
  E
7985
- ]), K = (e) => {
7986
- let t = Fi(e, {
7987
- locale: W,
8014
+ ]), te = (e) => {
8015
+ let t = Ii(e, {
8016
+ locale: K,
7988
8017
  timeZone: N
7989
8018
  }), n = e.hours !== void 0 || e.minutes !== void 0;
7990
8019
  return !A || n ? t : {
7991
- from: ki(wi(t.from, N), Ai, N),
7992
- to: ki(wi(t.to, N), ji, N)
8020
+ from: Ai(Ti(t.from, N), ji, N),
8021
+ to: Ai(Ti(t.to, N), Mi, N)
7993
8022
  };
7994
- }, [q, te] = _(() => R ?? (G ? K(G) : void 0)), [ne, re] = _(a), J = j ? ne === "utc" ? "UTC" : be() : N, [ie, ae] = _(G?.label), [Y, oe] = _(k), se = !H || Y, ce = !H || k || t, le = z === 1 ? B && A ? 400 : 280 : 550, ue = g(null), de = ie === void 0 && (B ? !!q?.from : !!q), fe = (e, t) => B && A ? e ?? t : e, [pe, me] = _(() => fe(Oi(B ? q?.from : q, J), Ai)), [he, ge] = _(() => fe(Oi(q?.to, J), ji)), ve = sn(u, f), X = "pds-datepicker", ye = o ? $.disabled : null, xe = D && !o ? $.required : null, Se = L === "error" ? $.error : null, Ce = L === "success" ? $.success : null, we = I || y, Te = /* @__PURE__ */ e.createElement("div", { className: `${X}__timezone-switcher` }, /* @__PURE__ */ e.createElement("span", { className: `${X}__timezone-switcher-label` }, V.timeZoneSwitcherLabel), /* @__PURE__ */ e.createElement(dr, {
8023
+ }, [J, ne] = _(() => R ?? (q ? te(q) : void 0)), [re, ie] = _(a), Y = j ? re === "utc" ? "UTC" : xe() : N, [ae, oe] = _(q?.label), [se, ce] = _(W), le = !H || se, ue = !H || k || t, de = z === 1 ? B && A ? 400 : 280 : 550, fe = g(null), pe = ae === void 0 && (B ? !!J?.from : !!J), me = (e, t) => B && A ? e ?? t : e, [he, ge] = _(() => me(ki(B ? J?.from : J, Y), ji)), [ve, ye] = _(() => me(ki(J?.to, Y), Mi)), be = sn(u, f), X = "pds-datepicker", Se = o ? $.disabled : null, Ce = D && !o ? $.required : null, we = L === "error" ? $.error : null, Te = L === "success" ? $.success : null, De = I || y, ke = /* @__PURE__ */ e.createElement("div", { className: `${X}__timezone-switcher` }, /* @__PURE__ */ e.createElement("span", { className: `${X}__timezone-switcher-label` }, V.timeZoneSwitcherLabel), /* @__PURE__ */ e.createElement(dr, {
7995
8024
  id: `${l}-timezone-switcher`,
7996
8025
  label: V.timeZoneSwitcherLabel || "",
7997
8026
  onChange: (e) => {
7998
8027
  let t = e;
7999
- re(t), w?.(t === "utc" ? "UTC" : be(), t);
8028
+ ie(t), w?.(t === "utc" ? "UTC" : xe(), t);
8000
8029
  },
8001
8030
  options: [{
8002
8031
  label: V.localTimeZoneLabel || "",
@@ -8006,155 +8035,155 @@ var Qr = {
8006
8035
  value: "utc"
8007
8036
  }],
8008
8037
  size: "s",
8009
- value: ne
8010
- })), { floatingStyles: De, getFloatingProps: ke, getReferenceProps: Me, isMounted: Ne, isOpen: Pe, refs: Fe, setIsOpen: Re } = Ln({
8038
+ value: re
8039
+ })), { floatingStyles: Me, getFloatingProps: Ne, getReferenceProps: Pe, isMounted: Fe, isOpen: Re, refs: Ve, setIsOpen: He } = Ln({
8011
8040
  enableListNavigation: !1,
8012
8041
  offsetValue: 8,
8013
8042
  placement: "bottom-start",
8014
8043
  role: "dialog",
8015
8044
  shiftPadding: 16,
8016
8045
  variant: "default"
8017
- }), Ve = Vn("var(--pds-z-index-overlay)"), He = wi(b, J), Ue = wi(v, J), We = (e, t, n = !1) => {
8018
- te(e), ae(t), S?.(e), !B && n && setTimeout(() => {
8019
- Re(!1);
8046
+ }), Ue = Vn("var(--pds-z-index-overlay)"), We = Ti(b, Y), Ge = Ti(v, Y), Ke = (e, t, n = !1) => {
8047
+ ne(e), oe(t), S?.(e), !B && n && setTimeout(() => {
8048
+ He(!1);
8020
8049
  }, 300);
8021
- }, Ge = ze({
8050
+ }, qe = ze({
8022
8051
  createCalendar: _e,
8023
- locale: W,
8024
- maxValue: Ue,
8025
- minValue: He,
8052
+ locale: K,
8053
+ maxValue: Ge,
8054
+ minValue: We,
8026
8055
  onChange: (e) => {
8027
- B || We(ki(e, A ? pe : void 0, J), void 0, !A);
8056
+ B || Ke(Ai(e, A ? he : void 0, Y), void 0, !A);
8028
8057
  },
8029
- value: B ? null : wi(q, J) ?? null
8030
- }), Ke = g(null), qe = Be({
8058
+ value: B ? null : Ti(J, Y) ?? null
8059
+ }), Je = g(null), Ye = Be({
8031
8060
  createCalendar: _e,
8032
- locale: W,
8033
- maxValue: Ue,
8034
- minValue: He,
8061
+ locale: K,
8062
+ maxValue: Ge,
8063
+ minValue: We,
8035
8064
  visibleDuration: { months: z },
8036
8065
  onChange: (e) => {
8037
- B && e && We({
8038
- from: ki(e.start, A ? pe : void 0, J),
8039
- to: ki(e.end, A ? he : void 0, J)
8066
+ B && e && Ke({
8067
+ from: Ai(e.start, A ? he : void 0, Y),
8068
+ to: Ai(e.end, A ? ve : void 0, Y)
8040
8069
  });
8041
8070
  },
8042
8071
  value: B ? (() => {
8043
- let e = q, t = wi(e?.from, J), n = wi(e?.to, J);
8072
+ let e = J, t = Ti(e?.from, Y), n = Ti(e?.to, Y);
8044
8073
  return t && n ? {
8045
8074
  start: t,
8046
8075
  end: n
8047
8076
  } : null;
8048
8077
  })() : null
8049
- }), Je = B ? qe : Ge, { calendarProps: Ye, nextButtonProps: Xe, prevButtonProps: Ze } = je({}, Ge), { calendarProps: Qe, nextButtonProps: $e, prevButtonProps: et } = Le({}, qe, Ke), tt = B ? Qe : Ye, nt = B ? $e : Xe, rt = B ? et : Ze, it = (e) => new Intl.DateTimeFormat(W, {
8078
+ }), Xe = B ? Ye : qe, { calendarProps: Ze, nextButtonProps: Qe, prevButtonProps: $e } = je({}, qe), { calendarProps: et, nextButtonProps: tt, prevButtonProps: nt } = Le({}, Ye, Je), rt = B ? et : Ze, it = B ? tt : Qe, at = B ? nt : $e, ot = (e) => new Intl.DateTimeFormat(K, {
8050
8079
  month: "long",
8051
8080
  year: "numeric"
8052
- }).format(e.toDate(be())), at = B ? Array.from({ length: z }, (e, t) => t) : [0], ot = at.map((e) => it(Je.visibleRange.start.add({ months: e }))), st = g(null), ct = g(null), { buttonProps: lt } = Ae(rt, st), { buttonProps: ut } = Ae(nt, ct), dt = () => {
8053
- te(void 0), ae(void 0), S?.(void 0), A && (me(B ? Ai : void 0), ge(B ? ji : void 0)), B ? qe.setValue(null) : Ge.setValue(null);
8054
- }, ft = () => !B || !qe.anchorDate ? !1 : (qe.selectDate(qe.anchorDate), !0), pt = () => {
8055
- ft(), Re(!1);
8056
- }, mt = () => {
8057
- let e = Ee(J);
8058
- Je.setFocusedDate(e), B ? (qe.setValue(null), te(void 0), ae(void 0), S?.(void 0)) : (Ge.setValue(e), We(ki(e, A ? pe : void 0, J), void 0, !A));
8059
- }, ht = (e) => {
8060
- let t = Fi(e, {
8061
- locale: W,
8062
- timeZone: J
8081
+ }).format(e.toDate(xe())), st = B ? Array.from({ length: z }, (e, t) => t) : [0], ct = st.map((e) => ot(Xe.visibleRange.start.add({ months: e }))), lt = g(null), ut = g(null), { buttonProps: dt } = Ae(at, lt), { buttonProps: ft } = Ae(it, ut), pt = () => {
8082
+ ne(void 0), oe(void 0), S?.(void 0), A && (ge(B ? ji : void 0), ye(B ? Mi : void 0)), B ? Ye.setValue(null) : qe.setValue(null);
8083
+ }, mt = () => !B || !Ye.anchorDate ? !1 : (Ye.selectDate(Ye.anchorDate), !0), ht = () => {
8084
+ mt(), He(!1);
8085
+ }, gt = () => {
8086
+ let e = Ee(Y);
8087
+ Xe.setFocusedDate(e), B ? (Ye.setValue(null), ne(void 0), oe(void 0), S?.(void 0)) : (qe.setValue(e), Ke(Ai(e, A ? he : void 0, Y), void 0, !A));
8088
+ }, _t = (e) => {
8089
+ let t = Ii(e, {
8090
+ locale: K,
8091
+ timeZone: Y
8063
8092
  }), n = e.hours !== void 0 || e.minutes !== void 0;
8064
- oe(k), A && n ? (me(Oi(t.from, J)), ge(Oi(t.to, J)), We(t, e.label)) : We(A ? {
8065
- from: ki(wi(t.from, J), pe, J),
8066
- to: ki(wi(t.to, J), he, J)
8093
+ ce(W), A && n ? (ge(ki(t.from, Y)), ye(ki(t.to, Y)), Ke(t, e.label)) : Ke(A ? {
8094
+ from: Ai(Ti(t.from, Y), he, Y),
8095
+ to: Ai(Ti(t.to, Y), ve, Y)
8067
8096
  } : t, e.label);
8068
- let r = wi(t.from, J);
8069
- r && Je.setFocusedDate(r), k || setTimeout(() => {
8070
- Re(!1);
8097
+ let r = Ti(t.from, Y);
8098
+ r && Xe.setFocusedDate(r), W || setTimeout(() => {
8099
+ He(!1);
8071
8100
  }, 300);
8072
- }, gt = (e, t) => Oi(e, J) === t, _t = (e) => {
8073
- if (me(e), B) {
8074
- let t = q;
8101
+ }, vt = (e, t) => ki(e, Y) === t, yt = (e) => {
8102
+ if (ge(e), B) {
8103
+ let t = J;
8075
8104
  if (t?.from && t?.to) {
8076
- if (gt(t.from, e)) return;
8077
- We({
8078
- from: ki(wi(t.from, J), e, J),
8105
+ if (vt(t.from, e)) return;
8106
+ Ke({
8107
+ from: Ai(Ti(t.from, Y), e, Y),
8079
8108
  to: t.to
8080
8109
  });
8081
8110
  }
8082
8111
  } else {
8083
- let t = q;
8112
+ let t = J;
8084
8113
  if (t) {
8085
- if (gt(t, e)) return;
8086
- We(ki(wi(t, J), e, J));
8114
+ if (vt(t, e)) return;
8115
+ Ke(Ai(Ti(t, Y), e, Y));
8087
8116
  }
8088
8117
  }
8089
- }, vt = (e) => {
8090
- ge(e);
8091
- let t = q;
8118
+ }, bt = (e) => {
8119
+ ye(e);
8120
+ let t = J;
8092
8121
  if (t?.from && t?.to) {
8093
- if (gt(t.to, e)) return;
8094
- We({
8122
+ if (vt(t.to, e)) return;
8123
+ Ke({
8095
8124
  from: t.from,
8096
- to: ki(wi(t.to, J), e, J)
8125
+ to: Ai(Ti(t.to, Y), e, Y)
8097
8126
  });
8098
8127
  }
8099
- }, yt = g(R);
8128
+ }, xt = g(R);
8100
8129
  d(() => {
8101
- yt.current !== R && (yt.current = R, te(R));
8130
+ xt.current !== R && (xt.current = R, ne(R));
8102
8131
  }, [R]), d(() => {
8103
8132
  if (A) if (B) {
8104
- let e = q;
8105
- me(Oi(e?.from, J) ?? Ai), ge(Oi(e?.to, J) ?? ji);
8106
- } else me(Oi(q, J));
8133
+ let e = J;
8134
+ ge(ki(e?.from, Y) ?? ji), ye(ki(e?.to, Y) ?? Mi);
8135
+ } else ge(ki(J, Y));
8107
8136
  }, [
8108
- q,
8109
8137
  J,
8138
+ Y,
8110
8139
  B,
8111
8140
  A
8112
8141
  ]), d(() => {
8113
- n || ft();
8142
+ n || mt();
8114
8143
  }, [
8115
8144
  B,
8116
8145
  n,
8117
- qe.anchorDate
8146
+ Ye.anchorDate
8118
8147
  ]), d(() => {
8119
- if (Pe) {
8120
- let e = wi(B ? q?.from : q, J);
8121
- Je.setFocusedDate(e ?? Ee(J)), oe(k);
8148
+ if (Re) {
8149
+ let e = Ti(B ? J?.from : J, Y);
8150
+ Xe.setFocusedDate(e ?? Ee(Y)), ce(W);
8122
8151
  }
8123
- }, [Pe]), d(() => {
8124
- ue.current && (ue.current.inert = !se);
8125
- }, [se]);
8126
- let bt = E?.find((e) => e.label === ie), xt = bt && (bt.showLabelInTrigger ?? (bt.hours !== void 0 || bt.minutes !== void 0)) ? bt.label : void 0, St = Ni(B ? [q?.from, q?.to] : [q], J), Ct = (e) => A ? Pi(e, {
8152
+ }, [Re]), d(() => {
8153
+ fe.current && (fe.current.inert = !le);
8154
+ }, [le]);
8155
+ let St = E?.find((e) => e.label === ae), Ct = St && (St.showLabelInTrigger ?? (St.hours !== void 0 || St.minutes !== void 0)) ? St.label : void 0, wt = Pi(B ? [J?.from, J?.to] : [J], Y), Tt = (e) => A ? Fi(e, {
8127
8156
  hourCycle: c,
8128
- includeYear: St,
8129
- localeString: W,
8130
- timeZone: J
8131
- }) : Mi(e, m, J), wt = () => {
8132
- if (xt !== void 0) return xt;
8157
+ includeYear: wt,
8158
+ localeString: K,
8159
+ timeZone: Y
8160
+ }) : Ni(e, m, Y), Et = () => {
8161
+ if (Ct !== void 0) return Ct;
8133
8162
  if (B) {
8134
- let t = q;
8135
- return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null, Ct(t.from), /* @__PURE__ */ e.createElement("span", { className: `${X}__separator` }, " – "), Ct(t.to)) : Ct(t.from) : T || "";
8163
+ let t = J;
8164
+ return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null, Tt(t.from), /* @__PURE__ */ e.createElement("span", { className: `${X}__separator` }, " – "), Tt(t.to)) : Tt(t.from) : T || "";
8136
8165
  } else {
8137
- let e = q;
8138
- return e ? Ct(e) : T || "";
8166
+ let e = J;
8167
+ return e ? Tt(e) : T || "";
8139
8168
  }
8140
- }, Tt = () => xt === void 0 ? B ? !q?.from : !q : !1, Et = () => {
8169
+ }, Dt = () => Ct === void 0 ? B ? !J?.from : !J : !1, Ot = () => {
8141
8170
  if (B) {
8142
- let e = q, t = qe.anchorDate;
8143
- return !e?.from && t ? `${V.selectedStartDate}${Mi(Ti(t, J), m, J)}${V.pleaseSelectEndDate}` : e?.from ? e.to ? `${V.selectedDateRange}${Ct(e.from)}${V.to}${Ct(e.to)}` : `${V.selectedStartDate}${Ct(e.from)}${V.pleaseSelectEndDate}` : V.noDateRangeSelected || "";
8171
+ let e = J, t = Ye.anchorDate;
8172
+ return !e?.from && t ? `${V.selectedStartDate}${Ni(Ei(t, Y), m, Y)}${V.pleaseSelectEndDate}` : e?.from ? e.to ? `${V.selectedDateRange}${Tt(e.from)}${V.to}${Tt(e.to)}` : `${V.selectedStartDate}${Tt(e.from)}${V.pleaseSelectEndDate}` : V.noDateRangeSelected || "";
8144
8173
  } else {
8145
- let e = q;
8146
- return e ? `${V.selectedDate}${Ct(e)}` : V.noDateSelected || "";
8174
+ let e = J;
8175
+ return e ? `${V.selectedDate}${Tt(e)}` : V.noDateSelected || "";
8147
8176
  }
8148
- }, Dt = B ? q : void 0, Ot = /* @__PURE__ */ e.createElement("div", {
8149
- ...tt,
8150
- ref: B ? Ke : void 0,
8177
+ }, kt = B ? J : void 0, At = /* @__PURE__ */ e.createElement("div", {
8178
+ ...rt,
8179
+ ref: B ? Je : void 0,
8151
8180
  className: `${X}__calendar`
8152
- }, /* @__PURE__ */ e.createElement("div", { className: `${X}__grids` }, at.map((t, n) => /* @__PURE__ */ e.createElement("div", {
8181
+ }, /* @__PURE__ */ e.createElement("div", { className: `${X}__grids` }, st.map((t, n) => /* @__PURE__ */ e.createElement("div", {
8153
8182
  key: t,
8154
8183
  className: `${X}__month`
8155
8184
  }, /* @__PURE__ */ e.createElement("div", { className: `${X}__nav` }, n === 0 ? /* @__PURE__ */ e.createElement("button", {
8156
- ...lt,
8157
- ref: st,
8185
+ ...dt,
8186
+ ref: lt,
8158
8187
  "aria-label": V.previousMonthLabel,
8159
8188
  className: `${X}__nav-button`,
8160
8189
  type: "button"
@@ -8167,9 +8196,9 @@ var Qr = {
8167
8196
  }, /* @__PURE__ */ e.createElement(Q, {
8168
8197
  iconName: "angleLeft",
8169
8198
  size: "m"
8170
- })), /* @__PURE__ */ e.createElement("div", { className: `${X}__nav-title` }, ot[n]), n === at.length - 1 ? /* @__PURE__ */ e.createElement("button", {
8171
- ...ut,
8172
- ref: ct,
8199
+ })), /* @__PURE__ */ e.createElement("div", { className: `${X}__nav-title` }, ct[n]), n === st.length - 1 ? /* @__PURE__ */ e.createElement("button", {
8200
+ ...ft,
8201
+ ref: ut,
8173
8202
  "aria-label": V.nextMonthLabel,
8174
8203
  className: `${X}__nav-button`,
8175
8204
  type: "button"
@@ -8182,71 +8211,71 @@ var Qr = {
8182
8211
  }, /* @__PURE__ */ e.createElement(Q, {
8183
8212
  iconName: "angleRight",
8184
8213
  size: "m"
8185
- }))), /* @__PURE__ */ e.createElement(Ri, {
8214
+ }))), /* @__PURE__ */ e.createElement(zi, {
8186
8215
  baseClass: X,
8187
8216
  monthOffset: t,
8188
- state: Je,
8189
- timeZone: J
8190
- })))), A && /* @__PURE__ */ e.createElement("div", { className: `${X}__time-section` }, B ? /* @__PURE__ */ e.createElement("div", { className: `${X}__time-fields` }, /* @__PURE__ */ e.createElement(Ci, {
8191
- anchorDate: wi(Dt?.from, J),
8217
+ state: Xe,
8218
+ timeZone: Y
8219
+ })))), A && /* @__PURE__ */ e.createElement("div", { className: `${X}__time-section` }, B ? /* @__PURE__ */ e.createElement("div", { className: `${X}__time-fields` }, /* @__PURE__ */ e.createElement(wi, {
8220
+ anchorDate: Ti(kt?.from, Y),
8192
8221
  hourCycle: c,
8193
8222
  id: `${l}-start-time`,
8194
8223
  label: V.startTimeLabel || "",
8195
- onChange: _t,
8224
+ onChange: yt,
8196
8225
  size: "s",
8197
- timeZone: J,
8198
- value: pe
8199
- }), /* @__PURE__ */ e.createElement(Ci, {
8200
- anchorDate: wi(Dt?.to, J),
8226
+ timeZone: Y,
8227
+ value: he
8228
+ }), /* @__PURE__ */ e.createElement(wi, {
8229
+ anchorDate: Ti(kt?.to, Y),
8201
8230
  hourCycle: c,
8202
8231
  id: `${l}-end-time`,
8203
8232
  label: V.endTimeLabel || "",
8204
- onChange: vt,
8233
+ onChange: bt,
8205
8234
  size: "s",
8206
- timeZone: J,
8207
- value: he
8208
- })) : q && /* @__PURE__ */ e.createElement("div", { className: `${X}__time-fields` }, /* @__PURE__ */ e.createElement(Ci, {
8209
- anchorDate: wi(q, J),
8235
+ timeZone: Y,
8236
+ value: ve
8237
+ })) : J && /* @__PURE__ */ e.createElement("div", { className: `${X}__time-fields` }, /* @__PURE__ */ e.createElement(wi, {
8238
+ anchorDate: Ti(J, Y),
8210
8239
  hourCycle: c,
8211
8240
  id: `${l}-time`,
8212
8241
  label: V.timeLabel || "",
8213
- onChange: _t,
8242
+ onChange: yt,
8214
8243
  size: "s",
8215
- timeZone: J,
8216
- value: pe
8217
- })), j && !H && Te), s && /* @__PURE__ */ e.createElement("div", { className: `${X}__footer-note` }, s), /* @__PURE__ */ e.createElement("div", { className: `${X}__actions` }, M && /* @__PURE__ */ e.createElement(An, {
8244
+ timeZone: Y,
8245
+ value: he
8246
+ })), j && !H && ke), s && /* @__PURE__ */ e.createElement("div", { className: `${X}__footer-note` }, s), /* @__PURE__ */ e.createElement("div", { className: `${X}__actions` }, M && /* @__PURE__ */ e.createElement(An, {
8218
8247
  className: `${X}__action-button ${X}__action-button--today`,
8219
8248
  label: V.todayButton,
8220
- onClick: mt,
8249
+ onClick: gt,
8221
8250
  size: "xs",
8222
8251
  type: "button",
8223
8252
  variant: "secondary"
8224
8253
  }), /* @__PURE__ */ e.createElement("div", { className: `${X}__actions-group` }, /* @__PURE__ */ e.createElement(An, {
8225
8254
  className: `${X}__action-button ${X}__action-button--clear`,
8226
8255
  label: V.clearButton,
8227
- onClick: dt,
8256
+ onClick: pt,
8228
8257
  size: "xs",
8229
8258
  type: "button",
8230
8259
  variant: "secondary"
8231
8260
  }), (B || A) && /* @__PURE__ */ e.createElement(An, {
8232
8261
  className: `${X}__action-button ${X}__action-button--done`,
8233
8262
  label: V.doneButton,
8234
- onClick: pt,
8263
+ onClick: ht,
8235
8264
  size: "xs",
8236
8265
  type: "button",
8237
8266
  variant: "highlight"
8238
8267
  }))));
8239
- return /* @__PURE__ */ e.createElement(Oe, { locale: W }, /* @__PURE__ */ e.createElement("div", {
8268
+ return /* @__PURE__ */ e.createElement(Oe, { locale: K }, /* @__PURE__ */ e.createElement("div", {
8240
8269
  className: Z([
8241
8270
  $.base,
8242
8271
  X,
8243
- ye,
8244
8272
  Se,
8245
- xe,
8273
+ we,
8246
8274
  Ce,
8275
+ Te,
8247
8276
  r ?? ""
8248
8277
  ]),
8249
- style: u ? ve : null,
8278
+ style: u ? be : null,
8250
8279
  ...ee
8251
8280
  }, /* @__PURE__ */ e.createElement(un, {
8252
8281
  disabled: o,
@@ -8256,67 +8285,67 @@ var Qr = {
8256
8285
  showLabel: O,
8257
8286
  tooltipText: P
8258
8287
  }), /* @__PURE__ */ e.createElement("div", { className: `${X}__input-wrapper` }, /* @__PURE__ */ e.createElement("button", {
8259
- ref: Fe.setReference,
8260
- "aria-describedby": we ? `${l}__message` : null,
8261
- "aria-expanded": Pe,
8288
+ ref: Ve.setReference,
8289
+ "aria-describedby": De ? `${l}__message` : null,
8290
+ "aria-expanded": Re,
8262
8291
  "aria-haspopup": "dialog",
8263
8292
  "aria-invalid": L === "error" ? !0 : null,
8264
- className: Z([`${X}__trigger`, Pe ? `${X}__trigger--open` : null]),
8293
+ className: Z([`${X}__trigger`, Re ? `${X}__trigger--open` : null]),
8265
8294
  disabled: o,
8266
8295
  type: "button",
8267
- ...Me()
8296
+ ...Pe()
8268
8297
  }, /* @__PURE__ */ e.createElement(Q, {
8269
8298
  className: `${X}__trigger-icon`,
8270
8299
  iconName: "calendarDays"
8271
- }), /* @__PURE__ */ e.createElement("span", { className: Z([`${X}__trigger-text`, Tt() ? `${X}__trigger-text--placeholder` : null]) }, wt()))), we && /* @__PURE__ */ e.createElement(dn, {
8300
+ }), /* @__PURE__ */ e.createElement("span", { className: Z([`${X}__trigger-text`, Dt() ? `${X}__trigger-text--placeholder` : null]) }, Et()))), De && /* @__PURE__ */ e.createElement(dn, {
8272
8301
  hasValidationMessage: !!I,
8273
8302
  id: l,
8274
- message: we,
8303
+ message: De,
8275
8304
  validationStatus: L
8276
- }), Ne && /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
8277
- ref: Fe.setFloating,
8305
+ }), Fe && /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
8306
+ ref: Ve.setFloating,
8278
8307
  className: `${X}__popover`,
8279
8308
  style: {
8280
- ...De,
8281
- zIndex: Ve
8309
+ ...Me,
8310
+ zIndex: Ue
8282
8311
  },
8283
- ...ke()
8284
- }, H && /* @__PURE__ */ e.createElement("div", { className: Z([`${X}__presets`, se ? null : `${X}__presets--collapsed`]) }, /* @__PURE__ */ e.createElement("div", {
8312
+ ...Ne()
8313
+ }, H && /* @__PURE__ */ e.createElement("div", { className: Z([`${X}__presets`, le ? null : `${X}__presets--collapsed`]) }, /* @__PURE__ */ e.createElement("div", {
8285
8314
  "aria-label": V.presetsGroupLabel,
8286
8315
  className: `${X}__preset-list`,
8287
8316
  role: "group"
8288
8317
  }, E?.map((t) => /* @__PURE__ */ e.createElement("button", {
8289
8318
  key: t.label,
8290
- "aria-pressed": ie === t.label,
8291
- className: Z([`${X}__preset-item`, ie === t.label ? `${X}__preset-item--active` : null]),
8292
- onClick: () => ht(t),
8319
+ "aria-pressed": ae === t.label,
8320
+ className: Z([`${X}__preset-item`, ae === t.label ? `${X}__preset-item--active` : null]),
8321
+ onClick: () => _t(t),
8293
8322
  type: "button"
8294
8323
  }, t.label)), t && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
8295
8324
  "aria-hidden": "true",
8296
8325
  className: `${X}__preset-divider`
8297
8326
  }), /* @__PURE__ */ e.createElement("button", {
8298
- "aria-pressed": de,
8299
- className: Z([`${X}__preset-item`, de ? `${X}__preset-item--active` : null]),
8327
+ "aria-pressed": pe,
8328
+ className: Z([`${X}__preset-item`, pe ? `${X}__preset-item--active` : null]),
8300
8329
  onClick: () => {
8301
- ae(void 0), oe(!0);
8330
+ oe(void 0), ce(!0);
8302
8331
  },
8303
8332
  type: "button"
8304
- }, V.customPresetLabel, !k && /* @__PURE__ */ e.createElement(Q, {
8333
+ }, V.customPresetLabel, !W && /* @__PURE__ */ e.createElement(Q, {
8305
8334
  iconName: "angleRight",
8306
8335
  size: "xs"
8307
- })))), A && j && Te), /* @__PURE__ */ e.createElement("div", {
8336
+ })))), A && j && ke), /* @__PURE__ */ e.createElement("div", {
8308
8337
  "aria-atomic": "true",
8309
8338
  "aria-live": "polite",
8310
8339
  className: "visually-hidden"
8311
- }, Et()), H ? ce && /* @__PURE__ */ e.createElement("div", {
8312
- ref: ue,
8313
- className: `${X}__calendar-wrapper`,
8314
- style: { flexBasis: se ? le : 0 }
8340
+ }, Ot()), H ? ue && /* @__PURE__ */ e.createElement("div", {
8341
+ ref: fe,
8342
+ className: Z([`${X}__calendar-wrapper`, U && !le ? `${X}__calendar-wrapper--collapsed` : null]),
8343
+ style: U ? void 0 : { flexBasis: le ? de : 0 }
8315
8344
  }, /* @__PURE__ */ e.createElement("div", {
8316
8345
  className: `${X}__calendar-wrapper-inner`,
8317
- style: { width: le }
8318
- }, Ot)) : Ot))));
8319
- }, Bi = o(({ accept: t, className: n, defaultValue: r, disabled: i = !1, fieldLabel: a, id: o, inputProps: s, inputWidth: c, inputWidthMin: l, labelStrings: u = {
8346
+ style: U ? void 0 : { width: de }
8347
+ }, At)) : At))));
8348
+ }, Vi = o(({ accept: t, className: n, defaultValue: r, disabled: i = !1, fieldLabel: a, id: o, inputProps: s, inputWidth: c, inputWidthMin: l, labelStrings: u = {
8320
8349
  chooseFile: "Choose file",
8321
8350
  clearButton: "Clear selected file"
8322
8351
  }, message: f, multiple: p = !1, onClear: m, onFileChange: h, required: g = !1, showFullPath: v, showLabel: y = !0, size: b = "s", tooltipText: x = null, validationMessage: S, validationStatus: C, ...w }, T) => {
@@ -8400,7 +8429,7 @@ var Qr = {
8400
8429
  validationMessageHasDecorators: !1,
8401
8430
  validationStatus: C
8402
8431
  }));
8403
- }), Vi = ({ children: t, className: n, ...r }) => {
8432
+ }), Hi = ({ children: t, className: n, ...r }) => {
8404
8433
  let i = "pds-input-group", a = [t[0], t[1]], o = t[0].props.id ?? null, s = t[0].props.message ?? null, c = t[0].props.validationMessage ?? null, l = t[0].props.validationStatus ?? null, u = c || s, d = u ? `${i}--has-message` : null;
8405
8434
  return /* @__PURE__ */ e.createElement("div", {
8406
8435
  className: Z([
@@ -8417,7 +8446,7 @@ var Qr = {
8417
8446
  validationMessageHasDecorators: !1,
8418
8447
  validationStatus: l
8419
8448
  }));
8420
- }, Hi = ({ className: t, defaultValue: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, inputWidthMin: s, label: c, labelVariant: l, message: u, onBlur: d, onChange: f, onValueChange: p, options: m, required: h = !1, showLabel: g = !0, tooltipText: v = null, validationMessage: y, validationStatus: b, value: x, ...S }) => {
8449
+ }, Ui = ({ className: t, defaultValue: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, inputWidthMin: s, label: c, labelVariant: l, message: u, onBlur: d, onChange: f, onValueChange: p, options: m, required: h = !1, showLabel: g = !0, tooltipText: v = null, validationMessage: y, validationStatus: b, value: x, ...S }) => {
8421
8450
  let C = "pds-radio-group", w = r ? $.disabled : null, T = h && !r ? $.required : null, E = b === "error" ? $.error : null, D = b === "success" ? $.success : null, O = x !== void 0, [k, A] = _(n === void 0 ? "" : n), j = y || u, M = (e) => {
8422
8451
  O || A(e.target.value), f && f(e), p && p(e.target.value);
8423
8452
  }, N = (e) => {
@@ -8467,7 +8496,7 @@ var Qr = {
8467
8496
  message: j,
8468
8497
  validationStatus: b
8469
8498
  }));
8470
- }, Ui = o(({ checked: t, className: n, defaultChecked: r, disabled: i = !1, id: a, inputProps: o, inputWidth: s, inputWidthMin: c, label: l, message: u, offLabel: d = "Off", onChange: f, onLabel: p = "On", required: m = !1, showLabel: h = !0, showStatusLabel: g = !0, statusLabelPlacement: v = "right", switchPlacement: y = "right", ...b }, x) => {
8499
+ }, Wi = o(({ checked: t, className: n, defaultChecked: r, disabled: i = !1, id: a, inputProps: o, inputWidth: s, inputWidthMin: c, label: l, message: u, offLabel: d = "Off", onChange: f, onLabel: p = "On", required: m = !1, showLabel: h = !0, showStatusLabel: g = !0, statusLabelPlacement: v = "right", switchPlacement: y = "right", ...b }, x) => {
8471
8500
  let S = sn(s, c), C = "pds-switch", w = `${C}--${y}`, T = u ? `${C}--message` : null, E = i ? $.disabled : null, D = m && !i ? $.required : null, O = t !== void 0, [k, A] = _(!O && r ? r : !1), j = t || k ? p : d, M = (e) => {
8472
8501
  O || A(e.target.checked), f && f(e);
8473
8502
  }, N = g ? /* @__PURE__ */ e.createElement("span", {
@@ -8522,7 +8551,7 @@ var Qr = {
8522
8551
  required: m,
8523
8552
  showLabel: h
8524
8553
  }), /* @__PURE__ */ e.createElement("div", { className: `${C}__content` }, I, F));
8525
- }), Wi = ({ disabled: t, dropTargetDirection: n, focusedIndex: r, index: i, isDragging: a, isSortable: o, onDragEnd: s, onDragOver: c, onDragStart: l, onFocusInput: u, onKeyboardMove: f, onRemove: p, setFocusedIndex: m, tag: h, totalTags: _, translationStrings: v }) => {
8554
+ }), Gi = ({ disabled: t, dropTargetDirection: n, focusedIndex: r, index: i, isDragging: a, isSortable: o, onDragEnd: s, onDragOver: c, onDragStart: l, onFocusInput: u, onKeyboardMove: f, onRemove: p, setFocusedIndex: m, tag: h, totalTags: _, translationStrings: v }) => {
8526
8555
  let y = g(null), b = "pds-tags-input__tag";
8527
8556
  d(() => {
8528
8557
  r === i && y.current && y.current.focus();
@@ -8589,7 +8618,7 @@ var Qr = {
8589
8618
  iconName: "xmark",
8590
8619
  size: "xs"
8591
8620
  })));
8592
- }, Gi = o(({ addMorePlaceholder: t = "Add another", className: n, disabled: r = !1, id: i, inputMinHeight: a, inputWidth: o, inputWidthMin: s, isSortable: c = !1, label: l, message: u, onChange: d, placeholder: f, required: p = !1, showLabel: m = !0, size: h = "s", tags: v, tooltipText: y = null, translationStrings: b = {
8621
+ }, Ki = o(({ addMorePlaceholder: t = "Add another", className: n, disabled: r = !1, id: i, inputMinHeight: a, inputWidth: o, inputWidthMin: s, isSortable: c = !1, label: l, message: u, onChange: d, placeholder: f, required: p = !1, showLabel: m = !0, size: h = "s", tags: v, tooltipText: y = null, translationStrings: b = {
8593
8622
  inputInstructions: "Type a tag name and press Enter to add. Press Backspace on empty input to remove last tag. Press left arrow on empty input to navigate to tags.",
8594
8623
  tagAriaLabel: "tag {index} of {total}. Press Shift plus arrow keys to reorder, Delete to remove.",
8595
8624
  tagAriaLabelSimple: "tag {index} of {total}. Press Delete to remove.",
@@ -8602,11 +8631,11 @@ var Qr = {
8602
8631
  d(e);
8603
8632
  }, te = (e) => {
8604
8633
  I(e);
8605
- }, ne = () => {
8634
+ }, J = () => {
8606
8635
  I(null), R(null), ee(null);
8607
- }, re = (e, t) => {
8636
+ }, ne = (e, t) => {
8608
8637
  F === null || F === e || (R(e), ee(t));
8609
- }, J = (e) => {
8638
+ }, re = (e) => {
8610
8639
  if (e.preventDefault(), F === null || L === null || z === null) return;
8611
8640
  let t = v.findIndex((e) => e.id === F), n = v.findIndex((e) => e.id === L);
8612
8641
  if (t === -1 || n === -1) return;
@@ -8615,10 +8644,10 @@ var Qr = {
8615
8644
  }, ie = (e, t) => {
8616
8645
  let n = [...v], [r] = n.splice(e, 1);
8617
8646
  n.splice(t, 0, r), K(`${r.value} moved to position ${t + 1} of ${v.length}`), q(n);
8618
- }, ae = (e) => {
8647
+ }, Y = (e) => {
8619
8648
  let t = v.find((t) => t.id === e);
8620
8649
  q(v.filter((t) => t.id !== e)), t && K(`${t.value} removed`);
8621
- }, Y = () => {
8650
+ }, ae = () => {
8622
8651
  V(null), setTimeout(() => {
8623
8652
  W.current?.focus();
8624
8653
  }, 0);
@@ -8668,26 +8697,26 @@ var Qr = {
8668
8697
  "aria-label": b.tagsListLabel,
8669
8698
  className: `${E}__tags`,
8670
8699
  onDragOver: c ? (e) => e.preventDefault() : void 0,
8671
- onDrop: c ? J : void 0,
8700
+ onDrop: c ? re : void 0,
8672
8701
  role: "list"
8673
8702
  }, v.map((t, n) => {
8674
8703
  let i = null;
8675
8704
  return F && F !== t.id && (L === t.id && z === "before" ? i = "before" : L === t.id && z === "after" && n === v.length - 1 ? i = "after" : n > 0 && L === v[n - 1].id && z === "after" && (i = "before")), /* @__PURE__ */ e.createElement("div", {
8676
8705
  key: t.id,
8677
8706
  role: "listitem"
8678
- }, /* @__PURE__ */ e.createElement(Wi, {
8707
+ }, /* @__PURE__ */ e.createElement(Gi, {
8679
8708
  disabled: r,
8680
8709
  dropTargetDirection: i,
8681
8710
  focusedIndex: B,
8682
8711
  index: n,
8683
8712
  isDragging: F === t.id,
8684
8713
  isSortable: c,
8685
- onDragEnd: ne,
8686
- onDragOver: re,
8714
+ onDragEnd: J,
8715
+ onDragOver: ne,
8687
8716
  onDragStart: te,
8688
- onFocusInput: Y,
8717
+ onFocusInput: ae,
8689
8718
  onKeyboardMove: ie,
8690
- onRemove: ae,
8719
+ onRemove: Y,
8691
8720
  setFocusedIndex: V,
8692
8721
  tag: t,
8693
8722
  totalTags: v.length,
@@ -8719,7 +8748,7 @@ var Qr = {
8719
8748
  validationMessageHasDecorators: !1,
8720
8749
  validationStatus: S
8721
8750
  }));
8722
- }), Ki = o(({ className: t, counterMaxLength: n, defaultValue: r, disabled: i = !1, id: a, inputWidth: o, inputWidthMin: s, isResizable: c = !0, label: l, message: u, onBlur: d, onChange: f, onFocus: p, placeholder: m, readonly: h = !1, required: g = !1, rows: v = 5, showLabel: y, size: b = "s", textareaProps: x, tooltipText: S = null, translationStrings: C = {
8751
+ }), qi = o(({ className: t, counterMaxLength: n, defaultValue: r, disabled: i = !1, id: a, inputWidth: o, inputWidthMin: s, isResizable: c = !0, label: l, message: u, onBlur: d, onChange: f, onFocus: p, placeholder: m, readonly: h = !1, required: g = !1, rows: v = 5, showLabel: y, size: b = "s", textareaProps: x, tooltipText: S = null, translationStrings: C = {
8723
8752
  clearButton: "Clear input text",
8724
8753
  counterOverLimit: "Character limit exceeded by",
8725
8754
  searchShortcut: "Press / to focus the search field",
@@ -8786,7 +8815,7 @@ var Qr = {
8786
8815
  message: R,
8787
8816
  validationStatus: T
8788
8817
  }));
8789
- }), qi = () => /* @__PURE__ */ e.createElement("div", { className: "pds-text-input__url-prefix" }, "https://"), Ji = o(({ autoComplete: t, className: n, counterMaxLength: r, defaultValue: i, disabled: a = !1, hasClearButton: o = !1, hasSearchShortcut: s = !1, hasUrlPrefix: c = !1, id: l, inputProps: u, inputWidth: d, inputWidthMin: f, label: p, message: m, onBlur: h, onChange: g, onClear: v, onFocus: y, placeholder: b, readonly: x = !1, required: S = !1, searchIcon: C = "search", showLabel: w = !0, showVisibilityToggle: T = !1, size: E = "s", tooltipText: D = null, translationStrings: O = {
8818
+ }), Ji = () => /* @__PURE__ */ e.createElement("div", { className: "pds-text-input__url-prefix" }, "https://"), Yi = o(({ autoComplete: t, className: n, counterMaxLength: r, defaultValue: i, disabled: a = !1, hasClearButton: o = !1, hasSearchShortcut: s = !1, hasUrlPrefix: c = !1, id: l, inputProps: u, inputWidth: d, inputWidthMin: f, label: p, message: m, onBlur: h, onChange: g, onClear: v, onFocus: y, placeholder: b, readonly: x = !1, required: S = !1, searchIcon: C = "search", showLabel: w = !0, showVisibilityToggle: T = !1, size: E = "s", tooltipText: D = null, translationStrings: O = {
8790
8819
  clearButton: "Clear input text",
8791
8820
  counterOverLimit: "Character limit exceeded by",
8792
8821
  searchShortcut: "Press / to focus the search field",
@@ -8796,10 +8825,10 @@ var Qr = {
8796
8825
  }, type: k = "text", validationMessage: A, validationStatus: j, value: M, ...N }, P) => {
8797
8826
  let F = sn(d, f), I = "pds-text-input", L = a ? $.disabled : null, R = S && !a ? $.required : null, z = j === "error" ? $.error : null, ee = j === "success" ? $.success : null, B = x ? $.readonly : null, V = E === "s" ? null : `${I}--${E}`, H = c && k === "url" ? `${I}--has-url-prefix` : null, U = null;
8798
8827
  k === "search" && (U = "search"), k === "search" && C === "filter" && (U = "filter"), j === "error" && (U = "error"), j === "success" && (U = "success");
8799
- let W = A || m, G = M !== void 0, [K, q] = _(i === void 0 ? "" : i), te = M || K, ne = s && k === "search" && !te, re = (e) => {
8828
+ let W = A || m, G = M !== void 0, [K, q] = _(i === void 0 ? "" : i), te = M || K, J = s && k === "search" && !te, ne = (e) => {
8800
8829
  x && e.preventDefault();
8801
- }, J = (e) => {
8802
- if (T && Y && oe(!1), c && k === "url") {
8830
+ }, re = (e) => {
8831
+ if (T && ae && oe(!1), c && k === "url") {
8803
8832
  let t = cn(e.target.value), n = {
8804
8833
  ...e,
8805
8834
  target: {
@@ -8820,16 +8849,16 @@ var Qr = {
8820
8849
  };
8821
8850
  G || q(t), g && g(n);
8822
8851
  } else G || q(e.target.value), g && g(e);
8823
- }, ae = () => {
8852
+ }, Y = () => {
8824
8853
  G || q(""), v && v();
8825
8854
  let e = document.getElementById(l);
8826
8855
  e && e.focus();
8827
- }, [Y, oe] = _(!1), se = () => {
8856
+ }, [ae, oe] = _(!1), se = () => {
8828
8857
  oe((e) => !e);
8829
8858
  let e = document.getElementById(l);
8830
8859
  e && e.focus();
8831
8860
  }, ce = k;
8832
- return T && k === "password" && (ce = Y ? "text" : "password"), /* @__PURE__ */ e.createElement("div", {
8861
+ return T && k === "password" && (ce = ae ? "text" : "password"), /* @__PURE__ */ e.createElement("div", {
8833
8862
  className: Z([
8834
8863
  $.base,
8835
8864
  I,
@@ -8854,11 +8883,11 @@ var Qr = {
8854
8883
  }), T && k === "password" && /* @__PURE__ */ e.createElement("div", {
8855
8884
  "aria-live": "polite",
8856
8885
  className: "visually-hidden"
8857
- }, `${O.visibilityStatus} ${Y ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: Z([
8886
+ }, `${O.visibilityStatus} ${ae ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: Z([
8858
8887
  `${I}__input-wrapper`,
8859
8888
  c && k === "url" ? `${I}__input-wrapper--has-prefix` : null,
8860
- ne ? `${I}__input-wrapper--has-search-shortcut` : null
8861
- ]) }, U && /* @__PURE__ */ e.createElement(pn, { variant: U }), c && k === "url" && /* @__PURE__ */ e.createElement(qi, null), /* @__PURE__ */ e.createElement("input", {
8889
+ J ? `${I}__input-wrapper--has-search-shortcut` : null
8890
+ ]) }, U && /* @__PURE__ */ e.createElement(pn, { variant: U }), c && k === "url" && /* @__PURE__ */ e.createElement(Ji, null), /* @__PURE__ */ e.createElement("input", {
8862
8891
  ref: P,
8863
8892
  "aria-describedby": W ? `${l}__message` : null,
8864
8893
  "aria-invalid": j === "error" ? !0 : null,
@@ -8867,10 +8896,10 @@ var Qr = {
8867
8896
  disabled: a,
8868
8897
  id: l,
8869
8898
  name: l,
8870
- onBlur: J,
8899
+ onBlur: re,
8871
8900
  onChange: ie,
8872
8901
  onFocus: y,
8873
- onMouseDown: re,
8902
+ onMouseDown: ne,
8874
8903
  placeholder: b,
8875
8904
  readOnly: x,
8876
8905
  required: S,
@@ -8879,19 +8908,19 @@ var Qr = {
8879
8908
  ...u
8880
8909
  }), o && te && /* @__PURE__ */ e.createElement(hn, {
8881
8910
  clearLabel: O.clearButton,
8882
- handleClearInput: ae,
8911
+ handleClearInput: Y,
8883
8912
  id: l
8884
8913
  }), T && k === "password" && /* @__PURE__ */ e.createElement("button", {
8885
8914
  "aria-controls": l,
8886
8915
  className: `${I}__visibility-toggle`,
8887
8916
  onClick: se,
8888
8917
  onMouseDown: (e) => e.preventDefault(),
8889
- title: Y ? O.visibilityToggleHide : O.visibilityToggleShow,
8918
+ title: ae ? O.visibilityToggleHide : O.visibilityToggleShow,
8890
8919
  type: "button"
8891
8920
  }, /* @__PURE__ */ e.createElement(Q, {
8892
- iconName: Y ? "eyeSlash" : "eye",
8921
+ iconName: ae ? "eyeSlash" : "eye",
8893
8922
  size: "m"
8894
- })), ne && /* @__PURE__ */ e.createElement(mn, {
8923
+ })), J && /* @__PURE__ */ e.createElement(mn, {
8895
8924
  inputId: l,
8896
8925
  shortcutLabel: O.searchShortcut
8897
8926
  }), r && k !== "password" && /* @__PURE__ */ e.createElement(gn, {
@@ -8906,7 +8935,7 @@ var Qr = {
8906
8935
  validationMessageHasDecorators: !1,
8907
8936
  validationStatus: j
8908
8937
  }));
8909
- }), Yi = ({ className: t, linkContent: n, size: i = "s", ...a }) => {
8938
+ }), Xi = ({ className: t, linkContent: n, size: i = "s", ...a }) => {
8910
8939
  let o = "pds-cta-link", c = i === "s" ? null : `${o}--${i}`, l = /* @__PURE__ */ e.createElement(Q, {
8911
8940
  className: `${o}__icon`,
8912
8941
  iconName: "arrowRight",
@@ -8920,7 +8949,7 @@ var Qr = {
8920
8949
  ]),
8921
8950
  ...a
8922
8951
  }, u);
8923
- }, Xi = ({ children: t, className: n, fontSize: r, isLoading: i, newWindowText: a = "opens in a new window", url: o, ...s }) => {
8952
+ }, Zi = ({ children: t, className: n, fontSize: r, isLoading: i, newWindowText: a = "opens in a new window", url: o, ...s }) => {
8924
8953
  let c = "pds-link-new-window", l = r ? `${c}--${r}` : null;
8925
8954
  return i ? /* @__PURE__ */ e.createElement("span", {
8926
8955
  "aria-hidden": "true",
@@ -8947,11 +8976,11 @@ var Qr = {
8947
8976
  className: `${c}__icon`,
8948
8977
  iconName: "externalLink"
8949
8978
  }));
8950
- }, Zi = ({ className: t, destination: n = "main", text: r = "Skip to main content", ...i }) => /* @__PURE__ */ e.createElement("a", {
8979
+ }, Qi = ({ className: t, destination: n = "main", text: r = "Skip to main content", ...i }) => /* @__PURE__ */ e.createElement("a", {
8951
8980
  className: Z(["pds-skiplink", t]),
8952
8981
  href: `#${n}`,
8953
8982
  ...i
8954
- }, r), Qi = ({ alt: t = "", className: n, height: r, srcFallback: i, srcWebp: a, width: o, ...s }) => {
8983
+ }, r), $i = ({ alt: t = "", className: n, height: r, srcFallback: i, srcWebp: a, width: o, ...s }) => {
8955
8984
  let c = "pds-picture";
8956
8985
  return /* @__PURE__ */ e.createElement("picture", { className: Z([c, n ?? ""]) }, /* @__PURE__ */ e.createElement("source", {
8957
8986
  srcSet: a,
@@ -8964,7 +8993,7 @@ var Qr = {
8964
8993
  width: o,
8965
8994
  ...s
8966
8995
  }));
8967
- }, $i = ({ children: t, className: n, menuAriaLabel: r, menuItems: i, variant: a = "dropdown", ...o }) => {
8996
+ }, ea = ({ children: t, className: n, menuAriaLabel: r, menuItems: i, variant: a = "dropdown", ...o }) => {
8968
8997
  let s = "pds-row-actions-menu", c = a === "dropdown" ? null : `${s}--${a}`, l = f(), u = g(null);
8969
8998
  return /* @__PURE__ */ e.createElement("div", {
8970
8999
  className: Z([
@@ -8991,7 +9020,7 @@ var Qr = {
8991
9020
  size: "s",
8992
9021
  variant: "subtle"
8993
9022
  })));
8994
- }, ea = (e, t = {}) => {
9023
+ }, ta = (e, t = {}) => {
8995
9024
  let { getRemoveCriticalLabel: n = (e) => `Remove ${e.title}`, removeLabel: r = "Remove", renameLabel: i = "Rename" } = t, a = [];
8996
9025
  return e.onRename && a.push({
8997
9026
  callback: e.onRename,
@@ -9004,11 +9033,11 @@ var Qr = {
9004
9033
  isCritical: !0,
9005
9034
  label: r
9006
9035
  }), a;
9007
- }, ta = ({ text: t }) => /* @__PURE__ */ e.createElement("div", { className: "pds-bookmarks-empty-state" }, /* @__PURE__ */ e.createElement(Q, {
9036
+ }, na = ({ text: t }) => /* @__PURE__ */ e.createElement("div", { className: "pds-bookmarks-empty-state" }, /* @__PURE__ */ e.createElement(Q, {
9008
9037
  className: "pds-bookmarks-empty-state__icon",
9009
9038
  iconName: "bookmark",
9010
9039
  size: "2xl"
9011
- }), /* @__PURE__ */ e.createElement("p", { className: "pds-bookmarks-empty-state__text" }, t)), na = "Bookmark pages you visit often for quick access. Use the bookmark icon in the top bar to save your first one.", ra = ({ ariaLabel: t = "Bookmarks", bookmarks: n = [], className: r, createLabel: i = "Create", getMenuAriaLabel: a = (e) => `Actions for ${e.title}`, getRemoveCriticalLabel: o, heading: s = "Bookmarks", isBookmarked: c = !1, isMobileAccordion: l = !1, maxHeightValue: u, noResultsText: d = na, onCreateBookmark: f, removeLabel: p, renameLabel: m, ...h }) => {
9040
+ }), /* @__PURE__ */ e.createElement("p", { className: "pds-bookmarks-empty-state__text" }, t)), ra = "Bookmark pages you visit often for quick access. Use the bookmark icon in the top bar to save your first one.", ia = ({ ariaLabel: t = "Bookmarks", bookmarks: n = [], className: r, createLabel: i = "Create", getMenuAriaLabel: a = (e) => `Actions for ${e.title}`, getRemoveCriticalLabel: o, heading: s = "Bookmarks", isBookmarked: c = !1, isMobileAccordion: l = !1, maxHeightValue: u, noResultsText: d = ra, onCreateBookmark: f, removeLabel: p, renameLabel: m, ...h }) => {
9012
9041
  let g = "pds-bookmarks-menu", _ = Qt(), v = l && _, y = f && /* @__PURE__ */ e.createElement(An, {
9013
9042
  displayType: "icon-start",
9014
9043
  iconName: "plus",
@@ -9023,7 +9052,7 @@ var Qr = {
9023
9052
  }, v ? /* @__PURE__ */ e.createElement(Rn, { label: /* @__PURE__ */ e.createElement("span", { className: `${g}__mobile-label` }, /* @__PURE__ */ e.createElement(Q, {
9024
9053
  iconName: c ? "bookmarkSolid" : "bookmark",
9025
9054
  size: "m"
9026
- }), s) }, n.length === 0 ? /* @__PURE__ */ e.createElement(ta, { text: d }) : /* @__PURE__ */ e.createElement("ul", {
9055
+ }), s) }, n.length === 0 ? /* @__PURE__ */ e.createElement(na, { text: d }) : /* @__PURE__ */ e.createElement("ul", {
9027
9056
  className: `${g}__mobile-list`,
9028
9057
  role: "menu"
9029
9058
  }, n.map((t) => {
@@ -9031,9 +9060,9 @@ var Qr = {
9031
9060
  return /* @__PURE__ */ e.createElement("li", {
9032
9061
  key: t.id ?? t.title,
9033
9062
  className: `${g}__mobile-item`
9034
- }, /* @__PURE__ */ e.createElement($i, {
9063
+ }, /* @__PURE__ */ e.createElement(ea, {
9035
9064
  menuAriaLabel: a(t),
9036
- menuItems: ea(t, {
9065
+ menuItems: ta(t, {
9037
9066
  getRemoveCriticalLabel: o,
9038
9067
  removeLabel: p,
9039
9068
  renameLabel: m
@@ -9053,13 +9082,13 @@ var Qr = {
9053
9082
  }, /* @__PURE__ */ e.createElement($n.Trigger, { "aria-label": t }, /* @__PURE__ */ e.createElement(Q, {
9054
9083
  iconName: c ? "bookmarkSolid" : "bookmark",
9055
9084
  size: "m"
9056
- })), /* @__PURE__ */ e.createElement($n.Panel, { className: `${g}__panel` }, /* @__PURE__ */ e.createElement($n.Heading, { className: `${g}__header` }, s, y), n.length === 0 ? /* @__PURE__ */ e.createElement($n.Heading, { className: `${g}__empty` }, /* @__PURE__ */ e.createElement(ta, { text: d })) : n.map((t, n) => /* @__PURE__ */ e.createElement($n.ActionItem, {
9085
+ })), /* @__PURE__ */ e.createElement($n.Panel, { className: `${g}__panel` }, /* @__PURE__ */ e.createElement($n.Heading, { className: `${g}__header` }, s, y), n.length === 0 ? /* @__PURE__ */ e.createElement($n.Heading, { className: `${g}__empty` }, /* @__PURE__ */ e.createElement(na, { text: d })) : n.map((t, n) => /* @__PURE__ */ e.createElement($n.ActionItem, {
9057
9086
  key: t.id ?? t.title,
9058
9087
  description: t.subtitle && /* @__PURE__ */ e.createElement("span", { title: t.subtitle }, t.subtitle),
9059
9088
  index: n,
9060
9089
  linkContent: t.linkContent,
9061
9090
  menuAriaLabel: a(t),
9062
- menuItems: ea(t, {
9091
+ menuItems: ta(t, {
9063
9092
  getRemoveCriticalLabel: o,
9064
9093
  removeLabel: p,
9065
9094
  renameLabel: m
@@ -9068,7 +9097,7 @@ var Qr = {
9068
9097
  className: `${g}__item-title`,
9069
9098
  title: t.title
9070
9099
  }, t.title))))));
9071
- }, ia = ({ ariaLabel: t = "Breadcrumb", className: n, crumbs: i, ...a }) => {
9100
+ }, aa = ({ ariaLabel: t = "Breadcrumb", className: n, crumbs: i, ...a }) => {
9072
9101
  let o = "pds-breadcrumb", c = i.length, l = i.map((t, n) => {
9073
9102
  if (n < c - 1) return /* @__PURE__ */ e.createElement("li", {
9074
9103
  key: n,
@@ -9087,23 +9116,23 @@ var Qr = {
9087
9116
  className: Z([o, n]),
9088
9117
  ...a
9089
9118
  }, /* @__PURE__ */ e.createElement("ol", { className: `${o}__crumbs` }, l));
9090
- }, aa = (e) => {
9119
+ }, oa = (e) => {
9091
9120
  if (!e) return null;
9092
9121
  for (let t = 0; t < e.length; t++) {
9093
- if (sa(e[t])) return typeof e[t].linkContent == "string" ? null : e[t].linkContent;
9122
+ if (ca(e[t])) return typeof e[t].linkContent == "string" ? null : e[t].linkContent;
9094
9123
  if (e[t].links) {
9095
- let n = aa(e[t].links);
9124
+ let n = oa(e[t].links);
9096
9125
  if (n) return n;
9097
9126
  }
9098
9127
  }
9099
9128
  return null;
9100
- }, oa = (e) => typeof e == "string" ? e : e.props.children, sa = (e) => e.isSeparator || e.isHeading || typeof e.linkContent == "string" ? !1 : !!(e.isActive || e.linkContent.props.className && e.linkContent.props.className.includes("pds-isActive")), ca = (e) => {
9101
- if (sa(e)) return !0;
9129
+ }, sa = (e) => typeof e == "string" ? e : e.props.children, ca = (e) => e.isSeparator || e.isHeading || typeof e.linkContent == "string" ? !1 : !!(e.isActive || e.linkContent.props.className && e.linkContent.props.className.includes("pds-isActive")), la = (e) => {
9130
+ if (ca(e)) return !0;
9102
9131
  if (e.links) {
9103
- for (let t = 0; t < e.links.length; t++) if (ca(e.links[t])) return !0;
9132
+ for (let t = 0; t < e.links.length; t++) if (la(e.links[t])) return !0;
9104
9133
  }
9105
9134
  return !1;
9106
- }, la = (e) => e.map((e) => `${sa(e)}${e.links ? `[${la(e.links)}]` : ""}`).join("|"), ua = (e) => {
9135
+ }, ua = (e) => e.map((e) => `${ca(e)}${e.links ? `[${ua(e.links)}]` : ""}`).join("|"), da = (e) => {
9107
9136
  if (s(e)) {
9108
9137
  let t = e.type;
9109
9138
  if (t === "a" || typeof t == "string" && t.toLowerCase() === "a" || (typeof t == "function" || typeof t == "object") && t?.displayName === "Link") return !0;
@@ -9111,14 +9140,14 @@ var Qr = {
9111
9140
  return n.to !== void 0 || n.href !== void 0;
9112
9141
  }
9113
9142
  return !1;
9114
- }, da = (e, t) => {
9143
+ }, fa = (e, t) => {
9115
9144
  let n = null;
9116
9145
  if (typeof e == "string" && t) {
9117
9146
  let i = t ? t[0].linkContent : null;
9118
9147
  s(i) && (n = r(i, { ...typeof e == "string" ? { children: e } : {} }));
9119
9148
  } else n = e;
9120
9149
  return n;
9121
- }, fa = (t, n, i, a) => {
9150
+ }, pa = (t, n, i, a) => {
9122
9151
  let o = null;
9123
9152
  if (typeof n == "string") {
9124
9153
  let c = a ? [/* @__PURE__ */ e.createElement("span", {
@@ -9143,8 +9172,8 @@ var Qr = {
9143
9172
  iconName: a,
9144
9173
  size: "m"
9145
9174
  })), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, n.props.children))] })) : n), o;
9146
- }, pa = ({ className: t, headingText: n, menuItems: i, selectTextFallback: a = "Navigate to...", ...o }) => {
9147
- let s = "pds-dropdown-menu", c = aa(i), l = c ? c.props.children : a, u = /* @__PURE__ */ e.createElement(lr, { className: `pds-dropdown__selected-icon ${s}__active-icon` }), { activeIndex: d, floatingStyles: f, getFloatingProps: p, getItemProps: m, getReferenceProps: h, isMounted: g, listRef: _, refs: v, setIsOpen: y, transitionStyles: b } = Ln({
9175
+ }, ma = ({ className: t, headingText: n, menuItems: i, selectTextFallback: a = "Navigate to...", ...o }) => {
9176
+ let s = "pds-dropdown-menu", c = oa(i), l = c ? c.props.children : a, u = /* @__PURE__ */ e.createElement(lr, { className: `pds-dropdown__selected-icon ${s}__active-icon` }), { activeIndex: d, floatingStyles: f, getFloatingProps: p, getItemProps: m, getReferenceProps: h, isMounted: g, listRef: _, refs: v, setIsOpen: y, transitionStyles: b } = Ln({
9148
9177
  enableTypeahead: !0,
9149
9178
  matchReferenceWidth: !0,
9150
9179
  role: "menu"
@@ -9153,7 +9182,7 @@ var Qr = {
9153
9182
  }, w = (e) => {
9154
9183
  e.key === "Enter" && _.current[d]?.querySelector("a")?.click();
9155
9184
  }, T = ({ item: e, level: t }) => {
9156
- let n = da(e.linkContent, e.links);
9185
+ let n = fa(e.linkContent, e.links);
9157
9186
  return {
9158
9187
  ...e,
9159
9188
  level: t,
@@ -9244,7 +9273,7 @@ var Qr = {
9244
9273
  tabIndex: d === n ? 0 : -1,
9245
9274
  ...m({ onKeyDown: w })
9246
9275
  }, t.linkContent, t.isActive === !0 && u)))));
9247
- }, ma = ({ ariaLabel: t, className: n, hasBorder: r = !1, hasMobileDropdown: i = !1, menuItems: a, ...o }) => {
9276
+ }, ha = ({ ariaLabel: t, className: n, hasBorder: r = !1, hasMobileDropdown: i = !1, menuItems: a, ...o }) => {
9248
9277
  let s = g(null), c = "pds-button-nav", l = r ? `${c}--bordered` : null, u = i ? `${c}--has-mobile-dropdown` : null;
9249
9278
  d(() => {
9250
9279
  let e = (e) => {
@@ -9263,9 +9292,9 @@ var Qr = {
9263
9292
  return /* @__PURE__ */ e.createElement("li", { className: Z([r, t ? `${r}--active` : null]) }, n);
9264
9293
  }, p = a.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${c}__menu` }, a.map((t, n) => /* @__PURE__ */ e.createElement(f, {
9265
9294
  key: n,
9266
- isActive: ca(t),
9295
+ isActive: la(t),
9267
9296
  linkContent: t.linkContent
9268
- }))) : null, m = /* @__PURE__ */ e.createElement(pa, {
9297
+ }))) : null, m = /* @__PURE__ */ e.createElement(ma, {
9269
9298
  className: `${c}__mobile`,
9270
9299
  menuItems: a,
9271
9300
  selectTextFallback: t
@@ -9281,7 +9310,7 @@ var Qr = {
9281
9310
  ]),
9282
9311
  ...o
9283
9312
  }, p, i && m);
9284
- }, ha = ({ children: t, className: n, width: r = "standard", ...i }) => {
9313
+ }, ga = ({ children: t, className: n, width: r = "standard", ...i }) => {
9285
9314
  let a = "pds-container", o = r === "standard" ? null : `${a}--${r}`;
9286
9315
  return /* @__PURE__ */ e.createElement("div", {
9287
9316
  className: Z([
@@ -9291,7 +9320,7 @@ var Qr = {
9291
9320
  ]),
9292
9321
  ...i
9293
9322
  }, t);
9294
- }, ga = (e) => e === "m" ? void 0 : { columnGap: e === "none" ? "0" : `var(--pds-spacing-${e})` }, _a = ({ children: t, className: n, colorType: r = "default", containerWidth: i = "x-wide", hideBorder: a, inlinePadding: o, itemsCenterGap: s = "m", itemsLeftGap: c = "m", itemsRightGap: l = "m", translationStrings: u = {
9323
+ }, _a = (e) => e === "m" ? void 0 : { columnGap: e === "none" ? "0" : `var(--pds-spacing-${e})` }, va = ({ children: t, className: n, colorType: r = "default", containerWidth: i = "x-wide", hideBorder: a, inlinePadding: o, itemsCenterGap: s = "m", itemsLeftGap: c = "m", itemsRightGap: l = "m", translationStrings: u = {
9295
9324
  closeMobileNav: "Close navigation area",
9296
9325
  openMobileNav: "Open navigation area"
9297
9326
  }, ...f }) => {
@@ -9347,7 +9376,7 @@ var Qr = {
9347
9376
  n ?? ""
9348
9377
  ]),
9349
9378
  ...f
9350
- }, h ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${y}__bar-mobile` }, /* @__PURE__ */ e.createElement(ha, null, /* @__PURE__ */ e.createElement("div", { className: `${y}__inner-mobile` }, E, M && N))), /* @__PURE__ */ e.createElement(zn.Provider, { value: !0 }, /* @__PURE__ */ e.createElement(Ue, {
9379
+ }, h ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${y}__bar-mobile` }, /* @__PURE__ */ e.createElement(ga, null, /* @__PURE__ */ e.createElement("div", { className: `${y}__inner-mobile` }, E, M && N))), /* @__PURE__ */ e.createElement(zn.Provider, { value: !0 }, /* @__PURE__ */ e.createElement(Ue, {
9351
9380
  active: p,
9352
9381
  focusTrapOptions: {
9353
9382
  clickOutsideDeactivates: !0,
@@ -9357,11 +9386,11 @@ var Qr = {
9357
9386
  }, /* @__PURE__ */ e.createElement("div", {
9358
9387
  className: Z([`${y}__mobile`, p ? `${y}__mobile--open` : null]),
9359
9388
  inert: p ? void 0 : ""
9360
- }, /* @__PURE__ */ e.createElement(ha, null, /* @__PURE__ */ e.createElement("button", {
9389
+ }, /* @__PURE__ */ e.createElement(ga, null, /* @__PURE__ */ e.createElement("button", {
9361
9390
  className: "visually-hidden",
9362
9391
  onClick: C,
9363
9392
  type: "button"
9364
- }, u.closeMobileNav), D, O, k))))) : /* @__PURE__ */ e.createElement(ha, {
9393
+ }, u.closeMobileNav), D, O, k))))) : /* @__PURE__ */ e.createElement(ga, {
9365
9394
  className: `${y}__inner`,
9366
9395
  style: o ? { paddingInline: o } : void 0,
9367
9396
  width: i
@@ -9370,22 +9399,22 @@ var Qr = {
9370
9399
  className: `${y}__separator`
9371
9400
  }), D && /* @__PURE__ */ e.createElement("div", {
9372
9401
  className: `${y}__items-left`,
9373
- style: ga(c)
9402
+ style: _a(c)
9374
9403
  }, D)), O && /* @__PURE__ */ e.createElement("div", {
9375
9404
  className: `${y}__items-center`,
9376
- style: ga(s)
9405
+ style: _a(s)
9377
9406
  }, O), k && /* @__PURE__ */ e.createElement("div", {
9378
9407
  className: `${y}__items-right`,
9379
- style: ga(l)
9408
+ style: _a(l)
9380
9409
  }, k)));
9381
- }, va = ({ ariaLabel: t, className: n, hasMobileDropdown: i = !1, headingText: a, labels: o = {
9410
+ }, ya = ({ ariaLabel: t, className: n, hasMobileDropdown: i = !1, headingText: a, labels: o = {
9382
9411
  submenu: "submenu",
9383
9412
  toggle: "Toggle"
9384
9413
  }, menuItems: c, mobileMenuSelectTextFallback: l = "Navigate to...", ...u }) => {
9385
9414
  let f = "pds-side-nav", p = i ? `${f}--has-mobile-dropdown` : null, m = `${f}__item`, h = `${f}__menu`, [g, v] = _({});
9386
9415
  d(() => {
9387
9416
  v((e) => Object.keys(e).length ? {} : e);
9388
- }, [la(c)]);
9417
+ }, [ua(c)]);
9389
9418
  let y = (e, t) => t in g ? g[t] : e, b = (e, t) => {
9390
9419
  v((n) => {
9391
9420
  let r = t in n ? n[t] : e;
@@ -9395,7 +9424,7 @@ var Qr = {
9395
9424
  };
9396
9425
  });
9397
9426
  }, x = (t, n) => {
9398
- let { linkContent: i, links: a } = t, c = ca(t), l = ua(i), u = y(c, n);
9427
+ let { linkContent: i, links: a } = t, c = la(t), l = da(i), u = y(c, n);
9399
9428
  return /* @__PURE__ */ e.createElement("li", {
9400
9429
  key: n,
9401
9430
  className: Z([
@@ -9408,7 +9437,7 @@ var Qr = {
9408
9437
  `${f}__row`,
9409
9438
  `${f}__row--expandable`,
9410
9439
  `${m}-wrapper`
9411
- ]) }, da(i, a), /* @__PURE__ */ e.createElement("button", {
9440
+ ]) }, fa(i, a), /* @__PURE__ */ e.createElement("button", {
9412
9441
  "aria-expanded": u,
9413
9442
  className: Z([`${f}__toggle`, u ? `${f}__toggle--expanded` : null]),
9414
9443
  onClick: () => b(c, n),
@@ -9416,7 +9445,7 @@ var Qr = {
9416
9445
  }, /* @__PURE__ */ e.createElement(Q, {
9417
9446
  iconName: "angleDown",
9418
9447
  size: "m"
9419
- }), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${oa(i)} ${o.submenu}`))), /* @__PURE__ */ e.createElement("ul", { className: Z([
9448
+ }), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${sa(i)} ${o.submenu}`))), /* @__PURE__ */ e.createElement("ul", { className: Z([
9420
9449
  h,
9421
9450
  `${h}--second-level`,
9422
9451
  u ? `${h}--expanded` : null
@@ -9425,9 +9454,9 @@ var Qr = {
9425
9454
  className: Z([
9426
9455
  m,
9427
9456
  `${m}--second-level`,
9428
- ca(t) ? `${m}--active` : null
9457
+ la(t) ? `${m}--active` : null
9429
9458
  ])
9430
- }, da(t.linkContent, t.links))))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
9459
+ }, fa(t.linkContent, t.links))))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
9431
9460
  "aria-expanded": u,
9432
9461
  className: Z([
9433
9462
  `${f}__row`,
@@ -9441,7 +9470,7 @@ var Qr = {
9441
9470
  }, s(i) && i.type === "span" ? r(i, { className: Z([i.props.className, `${f}__toggle-content`]) }) : /* @__PURE__ */ e.createElement("span", { className: `${f}__toggle-content` }, i), /* @__PURE__ */ e.createElement(Q, {
9442
9471
  iconName: "angleDown",
9443
9472
  size: "m"
9444
- }), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${oa(i)} ${o.submenu}`)), /* @__PURE__ */ e.createElement("ul", { className: Z([
9473
+ }), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${o.toggle} ${sa(i)} ${o.submenu}`)), /* @__PURE__ */ e.createElement("ul", { className: Z([
9445
9474
  h,
9446
9475
  `${h}--second-level`,
9447
9476
  u ? `${h}--expanded` : null
@@ -9450,10 +9479,10 @@ var Qr = {
9450
9479
  className: Z([
9451
9480
  m,
9452
9481
  `${m}--second-level`,
9453
- ca(t) ? `${m}--active` : null
9482
+ la(t) ? `${m}--active` : null
9454
9483
  ])
9455
- }, da(t.linkContent, t.links))))) : i);
9456
- }, S = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${f}__heading` }, a), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${f}__menu ${f}__menu--top-level` }, c.map((e, t) => x(e, t)))), C = /* @__PURE__ */ e.createElement(pa, {
9484
+ }, fa(t.linkContent, t.links))))) : i);
9485
+ }, S = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${f}__heading` }, a), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${f}__menu ${f}__menu--top-level` }, c.map((e, t) => x(e, t)))), C = /* @__PURE__ */ e.createElement(ma, {
9457
9486
  className: `${f}__mobile`,
9458
9487
  headingText: a,
9459
9488
  menuItems: c,
@@ -9468,19 +9497,8 @@ var Qr = {
9468
9497
  ]),
9469
9498
  ...u
9470
9499
  }, S, i && C);
9471
- }, ya = () => {
9472
- let e = typeof window < "u", t = (e) => e >= 1440 ? "xl" : e >= 1280 ? "lg" : e >= 768 ? "md" : "sm", [n, r] = _(e ? t(window.innerWidth) : "lg");
9473
- return d(() => {
9474
- if (!e) return;
9475
- let n = () => {
9476
- r(t(window.innerWidth));
9477
- };
9478
- return n(), window.addEventListener("resize", n), () => {
9479
- window.removeEventListener("resize", n);
9480
- };
9481
- }, [e]), n;
9482
9500
  }, ba = ({ icon: t, isActive: n, isExpanded: r, isSidebarCollapsed: i, labels: a, linkContent: o, links: s, onExpandSidebar: c, onToggleExpand: l }) => {
9483
- let u = "pds-side-nav-global", f = `${u}__item`, p = `${u}__menu`, m = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, fa(u, o, s, t)), h = (t, n, i = !1) => /* @__PURE__ */ e.createElement("ul", { className: Z([
9501
+ let u = "pds-side-nav-global", f = `${u}__item`, p = `${u}__menu`, m = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, pa(u, o, s, t)), h = (t, n, i = !1) => /* @__PURE__ */ e.createElement("ul", { className: Z([
9484
9502
  p,
9485
9503
  `${p}--${n}`,
9486
9504
  r ? `${p}--expanded` : null
@@ -9492,7 +9510,7 @@ var Qr = {
9492
9510
  className: Z([
9493
9511
  f,
9494
9512
  `${f}--${n}`,
9495
- ca(t) ? `${f}--active` : null
9513
+ la(t) ? `${f}--active` : null
9496
9514
  ]),
9497
9515
  role: i ? "menuitem" : void 0,
9498
9516
  tabIndex: i ? b === r ? 0 : -1 : void 0,
@@ -9548,7 +9566,7 @@ var Qr = {
9548
9566
  (S.current[e]?.querySelector("a"))?.click(), y(!1);
9549
9567
  }, G = (e, t) => {
9550
9568
  e.key === "Enter" && (e.preventDefault(), W(t));
9551
- }, K = ya() === "sm", q = (e) => {
9569
+ }, K = yi() === "sm", q = (e) => {
9552
9570
  if (!(!i || !s) && e.nativeEvent.pointerType === "touch") {
9553
9571
  if (K) {
9554
9572
  e.preventDefault(), e.stopPropagation(), y(!0);
@@ -9561,7 +9579,7 @@ var Qr = {
9561
9579
  className: `${u}__flyout`,
9562
9580
  style: M,
9563
9581
  ...L({ onKeyDown: I })
9564
- }, /* @__PURE__ */ e.createElement("div", { className: `${u}__flyout-heading` }, oa(o)), h(s, "second-level-flyout", !0)));
9582
+ }, /* @__PURE__ */ e.createElement("div", { className: `${u}__flyout-heading` }, sa(o)), h(s, "second-level-flyout", !0)));
9565
9583
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("li", {
9566
9584
  ref: i ? F.setReference : null,
9567
9585
  className: Z([
@@ -9575,7 +9593,7 @@ var Qr = {
9575
9593
  onClick: q,
9576
9594
  onKeyDown: U
9577
9595
  })
9578
- }, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, fa(u, o, s, t), !i && /* @__PURE__ */ e.createElement("button", {
9596
+ }, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, pa(u, o, s, t), !i && /* @__PURE__ */ e.createElement("button", {
9579
9597
  "aria-expanded": r,
9580
9598
  className: Z([`${u}__toggle`, r ? `${u}__toggle--expanded` : null]),
9581
9599
  onClick: l,
@@ -9583,9 +9601,9 @@ var Qr = {
9583
9601
  }, /* @__PURE__ */ e.createElement(Q, {
9584
9602
  iconName: "angleDown",
9585
9603
  size: "m"
9586
- }), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${oa(o)} ${a.submenu}`))), !i && h(s, "second-level")) : /* @__PURE__ */ e.createElement(e.Fragment, null, i ? /* @__PURE__ */ e.createElement(on, {
9604
+ }), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${sa(o)} ${a.submenu}`))), !i && h(s, "second-level")) : /* @__PURE__ */ e.createElement(e.Fragment, null, i ? /* @__PURE__ */ e.createElement(on, {
9587
9605
  disableTapTrigger: !0,
9588
- content: oa(o),
9606
+ content: sa(o),
9589
9607
  customTrigger: m,
9590
9608
  offsetValue: {
9591
9609
  mainAxis: 8,
@@ -9600,7 +9618,7 @@ var Qr = {
9600
9618
  let c = "pds-side-nav-global", l = r ? `${c}--collapsed` : `${c}--expanded`, [u, f] = _({});
9601
9619
  d(() => {
9602
9620
  f((e) => Object.keys(e).length ? {} : e);
9603
- }, [la(a)]);
9621
+ }, [ua(a)]);
9604
9622
  let p = (e, t) => t in u ? u[t] : e, m = (e, t) => {
9605
9623
  f((n) => {
9606
9624
  let r = t in n ? n[t] : e;
@@ -9621,7 +9639,7 @@ var Qr = {
9621
9639
  className: `${c}__section-label`,
9622
9640
  role: "presentation"
9623
9641
  }, t.label);
9624
- let a = ca(t);
9642
+ let a = la(t);
9625
9643
  return /* @__PURE__ */ e.createElement(ba, {
9626
9644
  key: n,
9627
9645
  icon: t.icon,
@@ -9754,17 +9772,17 @@ var Qr = {
9754
9772
  role: "listbox"
9755
9773
  }), O = Vn("var(--pds-z-index-dropdown)"), k = (e) => {
9756
9774
  e.preventDefault(), e.key === "Enter" && w.current[m].querySelector("a")?.click(), e.key === "Tab" && e.shiftKey && l && document.getElementById("links-filter").focus();
9757
- }, A = (e, t) => oa(e.linkContent).toLowerCase().includes(t.toLowerCase()), j = h(() => i.filter((e) => A(e, s)), [s, i]), M = (e) => {
9775
+ }, A = (e, t) => sa(e.linkContent).toLowerCase().includes(t.toLowerCase()), j = h(() => i.filter((e) => A(e, s)), [s, i]), M = (e) => {
9758
9776
  c(e.target.value);
9759
9777
  }, N = () => {
9760
9778
  c("");
9761
9779
  }, P = {
9762
9780
  minWidth: "13rem",
9763
- width: `${oa(i.reduce((e, t) => oa(e.linkContent).length > oa(t.linkContent).length ? e : t).linkContent).length + 2}ch`
9781
+ width: `${sa(i.reduce((e, t) => sa(e.linkContent).length > sa(t.linkContent).length ? e : t).linkContent).length + 2}ch`
9764
9782
  }, F = /* @__PURE__ */ e.createElement(Q, {
9765
9783
  className: `${u}__active-icon`,
9766
9784
  iconName: "check"
9767
- }), I = l && /* @__PURE__ */ e.createElement("div", { className: `${u}__filter` }, /* @__PURE__ */ e.createElement(Ji, {
9785
+ }), I = l && /* @__PURE__ */ e.createElement("div", { className: `${u}__filter` }, /* @__PURE__ */ e.createElement(Yi, {
9768
9786
  hasClearButton: !0,
9769
9787
  autoComplete: "off",
9770
9788
  id: "links-filter",
@@ -9820,7 +9838,7 @@ var Qr = {
9820
9838
  return r.observe(e), () => r.disconnect();
9821
9839
  }, [i]);
9822
9840
  let u = ({ dropdownSettings: t, icon: n, isActive: i, linkContent: a, links: c, promoteActiveChildLink: l = !1 }) => {
9823
- let u = `${o}__item`, d = aa(c);
9841
+ let u = `${o}__item`, d = oa(c);
9824
9842
  return /* @__PURE__ */ e.createElement("li", { className: Z([u, i ? `${u}--active` : null]) }, ((t, n) => {
9825
9843
  let i = null;
9826
9844
  return s(t) && (i = n ? r(t, Object.assign({}, t.props, { children: [/* @__PURE__ */ e.createElement("span", {
@@ -9846,7 +9864,7 @@ var Qr = {
9846
9864
  key: n,
9847
9865
  dropdownSettings: t.dropdownSettings,
9848
9866
  icon: t.icon,
9849
- isActive: ca(t),
9867
+ isActive: la(t),
9850
9868
  linkContent: t.linkContent,
9851
9869
  links: t.links,
9852
9870
  promoteActiveChildLink: t.promoteActiveChildLink
@@ -9974,7 +9992,7 @@ var Qr = {
9974
9992
  t !== -1 && (f(!0), y.current = t);
9975
9993
  }
9976
9994
  }, M = (t, n, r) => {
9977
- let a = Ea[t], o = `${l}--${a}-level`, u = `${c}--${a}-level`, d = t + 1, { isExpanded: f, itemIndex: p } = S(n, ca(n));
9995
+ let a = Ea[t], o = `${l}--${a}-level`, u = `${c}--${a}-level`, d = t + 1, { isExpanded: f, itemIndex: p } = S(n, la(n));
9978
9996
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` }, /* @__PURE__ */ e.createElement("button", {
9979
9997
  "aria-expanded": f,
9980
9998
  className: Z([`${s}__toggle`, f ? `${s}__toggle--expanded` : null]),
@@ -9984,7 +10002,7 @@ var Qr = {
9984
10002
  iconName: "angleDown",
9985
10003
  size: "xs",
9986
10004
  verticalAlign: "-0.0625rem"
9987
- }), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${oa(n.linkContent)} ${i.submenu}`)), da(n.linkContent, n.links)), /* @__PURE__ */ e.createElement("ul", {
10005
+ }), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${sa(n.linkContent)} ${i.submenu}`)), fa(n.linkContent, n.links)), /* @__PURE__ */ e.createElement("ul", {
9988
10006
  className: Z([
9989
10007
  l,
9990
10008
  o,
@@ -9992,7 +10010,7 @@ var Qr = {
9992
10010
  ]),
9993
10011
  role: "group"
9994
10012
  }, n.links.map((t, n) => {
9995
- let r = ca(t), { isExpanded: i } = S(t, r);
10013
+ let r = la(t), { isExpanded: i } = S(t, r);
9996
10014
  return /* @__PURE__ */ e.createElement("li", {
9997
10015
  key: `${n}-${a}`,
9998
10016
  "aria-expanded": t.links ? i : void 0,
@@ -10007,7 +10025,7 @@ var Qr = {
10007
10025
  }, t.links && d in Ea ? M(d, t, t.links) : t.linkContent);
10008
10026
  })));
10009
10027
  }, N = (t, n) => {
10010
- let { linkContent: r, links: i } = t, a = ca(t), { isExpanded: o } = S(t, a);
10028
+ let { linkContent: r, links: i } = t, a = la(t), { isExpanded: o } = S(t, a);
10011
10029
  return /* @__PURE__ */ e.createElement("li", {
10012
10030
  key: n,
10013
10031
  "aria-expanded": i ? o : void 0,
@@ -10118,7 +10136,7 @@ var Qr = {
10118
10136
  focusItemOnOpen: !1,
10119
10137
  focusItemOnHover: !0
10120
10138
  })
10121
- ]), { isMounted: te, styles: ne } = U(F, {
10139
+ ]), { isMounted: te, styles: J } = U(F, {
10122
10140
  duration: {
10123
10141
  open: 300,
10124
10142
  close: 150
@@ -10126,7 +10144,7 @@ var Qr = {
10126
10144
  initial: { opacity: 0 },
10127
10145
  open: { opacity: 1 },
10128
10146
  close: { opacity: 0 }
10129
- }), re = Vn("var(--pds-z-index-dropdown)"), J = /* @__PURE__ */ e.createElement(ui, {
10147
+ }), ne = Vn("var(--pds-z-index-dropdown)"), re = /* @__PURE__ */ e.createElement(ui, {
10130
10148
  hasUserFallback: !0,
10131
10149
  className: `${k}__avatar`,
10132
10150
  imageSrc: u,
@@ -10135,7 +10153,7 @@ var Qr = {
10135
10153
  }), ie = /* @__PURE__ */ e.createElement("li", {
10136
10154
  className: `${k}__user-details`,
10137
10155
  role: "presentation"
10138
- }, /* @__PURE__ */ e.createElement("div", { className: `${k}__user-name` }, d), /* @__PURE__ */ e.createElement("div", { className: `${k}__user-email` }, l)), ae = o !== void 0 && typeof a == "function" ? /* @__PURE__ */ e.createElement("li", {
10156
+ }, /* @__PURE__ */ e.createElement("div", { className: `${k}__user-name` }, d), /* @__PURE__ */ e.createElement("div", { className: `${k}__user-email` }, l)), Y = o !== void 0 && typeof a == "function" ? /* @__PURE__ */ e.createElement("li", {
10139
10157
  className: `${k}__theme-row`,
10140
10158
  role: "presentation"
10141
10159
  }, /* @__PURE__ */ e.createElement("span", { className: `${k}__theme-label` }, s), /* @__PURE__ */ e.createElement(ka, {
@@ -10150,13 +10168,13 @@ var Qr = {
10150
10168
  let n = e.id ? e.id : `${T}-item-${t}`;
10151
10169
  S.current.push(n), w.current.push(e);
10152
10170
  });
10153
- let Y = (e) => {
10171
+ let ae = (e) => {
10154
10172
  let t = S.current.indexOf(e), n = w.current[t];
10155
10173
  n.linkContent && !n.disabled && (W.current[t].querySelector("a").click(), y(!1)), n.callback && !n.disabled && (n.callback(), y(!1));
10156
10174
  }, oe = (e) => {
10157
- e.preventDefault(), e.key === "Enter" && Y(e.currentTarget.id);
10175
+ e.preventDefault(), e.key === "Enter" && ae(e.currentTarget.id);
10158
10176
  }, se = (e) => {
10159
- Y(e.currentTarget.id);
10177
+ ae(e.currentTarget.id);
10160
10178
  }, ce = i.map((t, n) => {
10161
10179
  let r = S.current[n], i = `${k}__item`, a = t.disabled ? `${i}--disabled` : null;
10162
10180
  return /* @__PURE__ */ e.createElement("li", {
@@ -10192,31 +10210,31 @@ var Qr = {
10192
10210
  iconName: t.iconName,
10193
10211
  size: "m"
10194
10212
  }));
10195
- }), ue = /* @__PURE__ */ e.createElement("span", { className: `${k}__toggle-left` }, J, d ?? l);
10213
+ }), ue = /* @__PURE__ */ e.createElement("span", { className: `${k}__toggle-left` }, re, d ?? l);
10196
10214
  return /* @__PURE__ */ e.createElement("span", {
10197
10215
  className: Z([k, n ?? ""]),
10198
10216
  ...p
10199
10217
  }, x ? /* @__PURE__ */ e.createElement(Rn, { label: ue }, /* @__PURE__ */ e.createElement("ul", {
10200
10218
  className: Z([j, `${j}--mobile`]),
10201
10219
  role: "menu"
10202
- }, ie, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ae, le)) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
10220
+ }, ie, /* @__PURE__ */ e.createElement("li", { role: "separator" }), Y, le)) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
10203
10221
  ref: L.setReference,
10204
10222
  "aria-label": t,
10205
10223
  className: `${k}__trigger`,
10206
10224
  type: "button",
10207
10225
  ...q()
10208
- }, J), te && /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
10226
+ }, re), te && /* @__PURE__ */ e.createElement(C, null, /* @__PURE__ */ e.createElement("div", {
10209
10227
  ref: L.setFloating,
10210
10228
  className: `${k}__dropdown`,
10211
10229
  style: {
10212
10230
  ...I,
10213
- zIndex: re
10231
+ zIndex: ne
10214
10232
  },
10215
10233
  ...G()
10216
- }, /* @__PURE__ */ e.createElement("div", { style: { ...ne } }, /* @__PURE__ */ e.createElement("ul", {
10234
+ }, /* @__PURE__ */ e.createElement("div", { style: { ...J } }, /* @__PURE__ */ e.createElement("ul", {
10217
10235
  className: j,
10218
10236
  role: "menu"
10219
- }, ie, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ae, ce))))));
10237
+ }, ie, /* @__PURE__ */ e.createElement("li", { role: "separator" }), Y, ce))))));
10220
10238
  }, ja = ({ avatarSize: t = "m", className: n, showActiveState: r = !0, workspace: i, ...a }) => {
10221
10239
  let o = "pds-workspace-list-item";
10222
10240
  return /* @__PURE__ */ e.createElement("div", {
@@ -10328,7 +10346,7 @@ var Qr = {
10328
10346
  return /* @__PURE__ */ e.createElement("span", {
10329
10347
  className: Z([T, n]),
10330
10348
  ...d
10331
- }, w ? /* @__PURE__ */ e.createElement(Rn, { label: K() }, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Ji, {
10349
+ }, w ? /* @__PURE__ */ e.createElement(Rn, { label: K() }, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Yi, {
10332
10350
  hasClearButton: !0,
10333
10351
  id: "workspace-filter-mobile",
10334
10352
  label: i,
@@ -10369,7 +10387,7 @@ var Qr = {
10369
10387
  zIndex: R
10370
10388
  },
10371
10389
  ...A()
10372
- }, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Ji, {
10390
+ }, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Yi, {
10373
10391
  hasClearButton: !0,
10374
10392
  id: "workspace-filter",
10375
10393
  label: i,
@@ -11179,7 +11197,7 @@ var Qr = {
11179
11197
  className: "visually-hidden",
11180
11198
  id: "pagination-compact",
11181
11199
  level: r
11182
- }, i), o.page && /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.page), c === "input" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Ji, {
11200
+ }, i), o.page && /* @__PURE__ */ e.createElement("span", { className: `${b}__count` }, o.page), c === "input" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Yi, {
11183
11201
  className: C ? `${b}__page-input--error` : void 0,
11184
11202
  id: p,
11185
11203
  inputProps: {
@@ -11237,9 +11255,9 @@ var Qr = {
11237
11255
  return /* @__PURE__ */ e.createElement("li", {
11238
11256
  key: t.id ?? t.title,
11239
11257
  className: g
11240
- }, /* @__PURE__ */ e.createElement($i, {
11258
+ }, /* @__PURE__ */ e.createElement(ea, {
11241
11259
  menuAriaLabel: a(t),
11242
- menuItems: ea(t, {
11260
+ menuItems: ta(t, {
11243
11261
  getRemoveCriticalLabel: o,
11244
11262
  removeLabel: f,
11245
11263
  renameLabel: p
@@ -11267,7 +11285,7 @@ var Qr = {
11267
11285
  heading: s,
11268
11286
  icon: "bookmark",
11269
11287
  ...m
11270
- }, c ? /* @__PURE__ */ e.createElement("ul", { className: `${h}__list ${h}__list--loading` }, _) : t.length === 0 ? /* @__PURE__ */ e.createElement(ta, { text: u }) : /* @__PURE__ */ e.createElement("ul", { className: `${h}__list` }, v), !c && y);
11288
+ }, c ? /* @__PURE__ */ e.createElement("ul", { className: `${h}__list ${h}__list--loading` }, _) : t.length === 0 ? /* @__PURE__ */ e.createElement(na, { text: u }) : /* @__PURE__ */ e.createElement("ul", { className: `${h}__list` }, v), !c && y);
11271
11289
  }, go = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
11272
11290
  let [c, l] = _(i), u = f(), p = r ?? `expansion-panel-${u}`, m = "pds-expansion-panel", h = a ? null : `${m}--no-border`, v = g(null);
11273
11291
  return d(() => {
@@ -11425,7 +11443,7 @@ var Qr = {
11425
11443
  heading: o,
11426
11444
  icon: "folders",
11427
11445
  ...u
11428
- }, g && /* @__PURE__ */ e.createElement("div", { className: `${d}__filter` }, /* @__PURE__ */ e.createElement(Ji, {
11446
+ }, g && /* @__PURE__ */ e.createElement("div", { className: `${d}__filter` }, /* @__PURE__ */ e.createElement(Yi, {
11429
11447
  hasClearButton: !0,
11430
11448
  id: "workspace-selector-panel-filter",
11431
11449
  label: i,
@@ -11624,13 +11642,13 @@ var Qr = {
11624
11642
  M(R),
11625
11643
  N(R),
11626
11644
  H(R)
11627
- ]), te = B.arrow?.x ?? 0, ne = B.arrow?.y ?? 0, re = te + ko / 2, J = ne + Oo, { isMounted: ie } = U(R, {
11645
+ ]), te = B.arrow?.x ?? 0, J = B.arrow?.y ?? 0, ne = te + ko / 2, re = J + Oo, { isMounted: ie } = U(R, {
11628
11646
  initial: { transform: "scale(0)" },
11629
11647
  common: ({ side: e }) => ({ transformOrigin: {
11630
- top: `${re}px calc(100% + ${Oo}px)`,
11631
- bottom: `${re}px -8px`,
11632
- left: `calc(100% + ${Oo}px) ${J}px`,
11633
- right: `-8px ${J}px`
11648
+ top: `${ne}px calc(100% + ${Oo}px)`,
11649
+ bottom: `${ne}px -8px`,
11650
+ left: `calc(100% + ${Oo}px) ${re}px`,
11651
+ right: `-8px ${re}px`
11634
11652
  }[e] })
11635
11653
  });
11636
11654
  return /* @__PURE__ */ e.createElement("div", {
@@ -12014,14 +12032,14 @@ var Qo = 24, $o = { droppable: { strategy: Qe.Always } }, es = o(function({ chil
12014
12032
  };
12015
12033
  }
12016
12034
  return it(e, t);
12017
- }, [m]), W = b === "always" || b === "toggle" && (c ?? !1), { currentItems: G, expandItem: K, flatNodes: q, handleReorder: te, resetToSnapshot: ne, sortableIds: re, toggleExpand: J } = Yo({
12035
+ }, [m]), W = b === "always" || b === "toggle" && (c ?? !1), { currentItems: G, expandItem: K, flatNodes: q, handleReorder: te, resetToSnapshot: J, sortableIds: ne, toggleExpand: re } = Yo({
12018
12036
  defaultItems: a,
12019
12037
  isDragEnabled: W,
12020
12038
  items: f,
12021
12039
  onReorder: v
12022
12040
  });
12023
- p(C, () => ({ resetToSnapshot: ne }), [ne]);
12024
- let ie = nt(tt($e, { activationConstraint: { distance: 5 } }), tt(Ze, { coordinateGetter: U })), ae = W ? `${w}--reorder-active` : null, Y = h(() => new Set(q.filter((e) => u(e.data)).map((e) => e.id)), [q, u]), oe = h(() => new Set(q.filter((e) => d(e.data)).map((e) => e.id)), [q, d]), se = l((e) => {
12041
+ p(C, () => ({ resetToSnapshot: J }), [J]);
12042
+ let ie = nt(tt($e, { activationConstraint: { distance: 5 } }), tt(Ze, { coordinateGetter: U })), Y = W ? `${w}--reorder-active` : null, ae = h(() => new Set(q.filter((e) => u(e.data)).map((e) => e.id)), [q, u]), oe = h(() => new Set(q.filter((e) => d(e.data)).map((e) => e.id)), [q, d]), se = l((e) => {
12025
12043
  if (m === 0 || oe.has(String(e))) return !1;
12026
12044
  let t = q.find((t) => t.id === e);
12027
12045
  return !t || t.depth >= m ? !1 : t.hasChildren ? !t.isExpanded : !0;
@@ -12030,16 +12048,16 @@ var Qo = 24, $o = { droppable: { strategy: Qe.Always } }, es = o(function({ chil
12030
12048
  m,
12031
12049
  oe
12032
12050
  ]), ce = l((e) => j && se(j) ? null : ot(e), [se, j]), le = h(() => {
12033
- if (!T || !j || Y.size === 0 || T === j || se(j)) return /* @__PURE__ */ new Set();
12051
+ if (!T || !j || ae.size === 0 || T === j || se(j)) return /* @__PURE__ */ new Set();
12034
12052
  let e = q.findIndex((e) => e.id === T), t = q.findIndex((e) => e.id === j);
12035
12053
  if (e === -1 || t === -1) return /* @__PURE__ */ new Set();
12036
12054
  let [n, r] = e < t ? [e + 1, t - 1] : [t + 1, e - 1];
12037
- return new Set(q.slice(n, r + 1).filter((e) => Y.has(e.id)).map((e) => e.id));
12055
+ return new Set(q.slice(n, r + 1).filter((e) => ae.has(e.id)).map((e) => e.id));
12038
12056
  }, [
12039
12057
  T,
12040
12058
  q,
12041
12059
  se,
12042
- Y,
12060
+ ae,
12043
12061
  j
12044
12062
  ]).size > 0, ue = h(() => T ? q.find((e) => e.id === T) ?? null : null, [T, q]), de = h(() => T ? Ko(G, String(T)) ?? null : null, [T, G]), fe = h(() => {
12045
12063
  let e = ue?.depth ?? 0;
@@ -12065,40 +12083,40 @@ var Qo = 24, $o = { droppable: { strategy: Qe.Always } }, es = o(function({ chil
12065
12083
  fe
12066
12084
  ]), me = l((e) => {
12067
12085
  let { active: t } = e, n = F.current === "keyboard", r = q.find((e) => e.id === t.id);
12068
- 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, H.current = 0, V(0), ee.current = 0, z(0), r?.hasChildren && r?.isExpanded && (J(String(t.id)), L.current = String(t.id));
12069
- }, [q, J]), he = l((e) => {
12086
+ 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, H.current = 0, V(0), ee.current = 0, z(0), r?.hasChildren && r?.isExpanded && (re(String(t.id)), L.current = String(t.id));
12087
+ }, [q, re]), he = l((e) => {
12070
12088
  let t = et(e);
12071
- if (!t.length || !D.current || Y.size === 0) return t;
12089
+ if (!t.length || !D.current || ae.size === 0) return t;
12072
12090
  let n = q.findIndex((e) => e.id === D.current);
12073
12091
  for (let e of t) {
12074
12092
  let t = e.id;
12075
12093
  if (t === D.current) return [e];
12076
12094
  let r = q.findIndex((e) => e.id === t);
12077
12095
  if (n === -1 || r === -1) return [e];
12078
- if (Y.has(String(t))) {
12096
+ if (ae.has(String(t))) {
12079
12097
  if (n > r) continue;
12080
12098
  let e = !oe.has(String(t)), i = m > 0 && H.current > 0;
12081
12099
  if (!se(t) && (!e || !i)) continue;
12082
12100
  }
12083
12101
  let [i, a] = n < r ? [n + 1, r - 1] : [r + 1, n - 1];
12084
- if (!q.slice(i, a + 1).some((e) => Y.has(e.id))) return [e];
12102
+ if (!q.slice(i, a + 1).some((e) => ae.has(e.id))) return [e];
12085
12103
  }
12086
12104
  return [];
12087
12105
  }, [
12088
12106
  q,
12089
- Y,
12107
+ ae,
12090
12108
  oe
12091
12109
  ]), ge = l((e) => {
12092
12110
  let t = e.over?.id ?? null, n = D.current;
12093
- if (t && n && t !== n && Y.size > 0) {
12111
+ if (t && n && t !== n && ae.size > 0) {
12094
12112
  let e = q.findIndex((e) => e.id === n), r = q.findIndex((e) => e.id === t);
12095
12113
  if (e !== -1 && r !== -1) {
12096
12114
  let [t, n] = e < r ? [e + 1, r] : [r, e - 1];
12097
- if (q.slice(t, n + 1).some((e) => Y.has(e.id))) return;
12115
+ if (q.slice(t, n + 1).some((e) => ae.has(e.id))) return;
12098
12116
  }
12099
12117
  }
12100
12118
  M(t);
12101
- }, [q, Y]), _e = l((e) => {
12119
+ }, [q, ae]), _e = l((e) => {
12102
12120
  let t = e.delta.x;
12103
12121
  if (P.current = t, A.current || m === 0) return;
12104
12122
  let n = Math.floor(t / Qo), r = H.current;
@@ -12122,7 +12140,7 @@ var Qo = 24, $o = { droppable: { strategy: Qe.Always } }, es = o(function({ chil
12122
12140
  };
12123
12141
  r.splice(o, 0, c);
12124
12142
  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);
12125
- if (l.some((e, t) => Y.has(e) ? u.indexOf(e) !== t : !1)) return;
12143
+ if (l.some((e, t) => ae.has(e) ? u.indexOf(e) !== t : !1)) return;
12126
12144
  te(r), n > 0 && a && K(a);
12127
12145
  return;
12128
12146
  }
@@ -12147,18 +12165,18 @@ var Qo = 24, $o = { droppable: { strategy: Qe.Always } }, es = o(function({ chil
12147
12165
  }, b = d[g], x = b && b.depth === _ - 1 && v === String(l) || o < u ? g + 1 : g;
12148
12166
  d.splice(x, 0, y, ...h);
12149
12167
  let S = new Set([String(t.id), ...h.map((e) => e.id)]);
12150
- 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), _ > 0 && v !== null && K(v));
12168
+ q.some((e, t) => !ae.has(e.id) || S.has(e.id) || e.id === v ? !1 : d.findIndex((t) => t.id === e.id) !== t) || (te(d), _ > 0 && v !== null && K(v));
12151
12169
  }, [
12152
12170
  K,
12153
12171
  q,
12154
12172
  te,
12155
12173
  se,
12156
- Y,
12174
+ ae,
12157
12175
  m,
12158
12176
  oe
12159
- ]), X = l(() => {
12177
+ ]), ye = l(() => {
12160
12178
  E(null), D.current = null, k(!1), A.current = !1, M(null), P.current = 0, H.current = 0, V(0), ee.current = 0, z(0), L.current && (K(L.current), L.current = null);
12161
- }, [K]), ye = h(() => ({
12179
+ }, [K]), be = h(() => ({
12162
12180
  onDragStart({ active: e }) {
12163
12181
  let t = q.find((t) => t.id === e.id), n = Ko(G, String(e.id));
12164
12182
  return `Picked up ${n ? o(n) : String(e.id)}. Current position: ${t ? q.indexOf(t) + 1 : "?"} of ${q.length} at depth ${t?.depth ?? 0}.`;
@@ -12185,27 +12203,27 @@ var Qo = 24, $o = { droppable: { strategy: Qe.Always } }, es = o(function({ chil
12185
12203
  q,
12186
12204
  o,
12187
12205
  m
12188
- ]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type === Jo ? e.cloneElement(t, be) : t);
12206
+ ]), xe = { columns: i }, X = t.map(n, (t) => s(t) && t.type === Jo ? e.cloneElement(t, xe) : t);
12189
12207
  return /* @__PURE__ */ e.createElement(Ye, {
12190
12208
  accessibility: {
12191
- announcements: ye,
12209
+ announcements: be,
12192
12210
  ...x ? { screenReaderInstructions: { draggable: x } } : {}
12193
12211
  },
12194
12212
  collisionDetection: he,
12195
12213
  measuring: $o,
12196
- onDragCancel: X,
12214
+ onDragCancel: ye,
12197
12215
  onDragEnd: ve,
12198
12216
  onDragMove: _e,
12199
12217
  onDragOver: ge,
12200
12218
  onDragStart: me,
12201
12219
  sensors: ie
12202
12220
  }, /* @__PURE__ */ e.createElement(rt, {
12203
- items: re,
12221
+ items: ne,
12204
12222
  strategy: ce
12205
12223
  }, /* @__PURE__ */ e.createElement("div", {
12206
12224
  className: Z([
12207
12225
  w,
12208
- ae,
12226
+ Y,
12209
12227
  r ?? ""
12210
12228
  ]),
12211
12229
  onKeyDownCapture: () => {
@@ -12216,15 +12234,15 @@ var Qo = 24, $o = { droppable: { strategy: Qe.Always } }, es = o(function({ chil
12216
12234
  },
12217
12235
  role: "list",
12218
12236
  ...S
12219
- }, xe, q.map((t) => {
12237
+ }, X, q.map((t) => {
12220
12238
  let n = {
12221
12239
  depth: t.depth,
12222
12240
  hasChildren: t.hasChildren,
12223
12241
  index: t.index,
12224
12242
  isDragging: t.id === T,
12225
12243
  isExpanded: t.isExpanded,
12226
- isLocked: Y.has(t.id),
12227
- toggleExpand: () => J(t.id)
12244
+ isLocked: ae.has(t.id),
12245
+ toggleExpand: () => re(t.id)
12228
12246
  }, r = y(t.data, n), a = t.id === T, o = {
12229
12247
  columns: i,
12230
12248
  depth: t.depth,
@@ -12234,8 +12252,8 @@ var Qo = 24, $o = { droppable: { strategy: Qe.Always } }, es = o(function({ chil
12234
12252
  isDropTarget: t.id === j && se(t.id),
12235
12253
  isProjectedParent: t.id === pe && !oe.has(t.id),
12236
12254
  isExpanded: t.isExpanded,
12237
- ...Y.has(t.id) ? { isLocked: !0 } : {},
12238
- onToggleExpand: () => J(t.id),
12255
+ ...ae.has(t.id) ? { isLocked: !0 } : {},
12256
+ onToggleExpand: () => re(t.id),
12239
12257
  ...a && !O && m > 0 ? { projectedDepthDelta: fe - t.depth } : {}
12240
12258
  };
12241
12259
  return s(r) ? e.cloneElement(r, {
@@ -12369,54 +12387,59 @@ var ns = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12369
12387
  "default",
12370
12388
  "working",
12371
12389
  "checked"
12372
- ], as = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
12373
- let l = {
12390
+ ], as = ({ alignment: t = "left", className: n, componentWidth: r, displayType: i = "label", labelStrings: a = {}, lastChecked: o, onCheck: s, state: c = "default", ...l }) => {
12391
+ let u = i === "icon-button", d = {
12374
12392
  checkForUpdates: "Check for updates",
12375
12393
  checking: "Checking...",
12376
12394
  checked: "Last checked",
12377
12395
  ariaLabel: "Check for updates",
12378
- ...i
12379
- }, u = () => {
12380
- switch (s) {
12381
- case "default": return l.checkForUpdates;
12382
- case "working": return l.checking;
12396
+ ...a
12397
+ }, f = () => {
12398
+ switch (c) {
12399
+ case "default": return d.checkForUpdates;
12400
+ case "working": return d.checking;
12383
12401
  case "checked":
12384
- if (a) {
12385
- let e = a instanceof Date ? a : new Date(a), t = Date.now() - e.getTime(), n = Math.floor(t / 1e3), r = Math.floor(n / 60), i = Math.floor(r / 60), o = Math.floor(i / 24), s = {
12402
+ if (o) {
12403
+ let e = o instanceof Date ? o : new Date(o), t = Date.now() - e.getTime(), n = Math.floor(t / 1e3), r = Math.floor(n / 60), i = Math.floor(r / 60), a = Math.floor(i / 24), s = {
12386
12404
  year: "numeric",
12387
12405
  month: "short",
12388
12406
  day: "numeric"
12389
12407
  }, c = "";
12390
- return c = o > 7 ? e.toLocaleDateString(void 0, s) : o > 0 && o <= 7 ? `${o} day${o === 1 ? "" : "s"} ago` : i > 0 ? `${i} hour${i === 1 ? "" : "s"} ago` : r > 0 ? `${r} minute${r === 1 ? "" : "s"} ago` : `${n} second${n === 1 ? "" : "s"} ago`, `${l.checked} ${c}`;
12408
+ return c = a > 7 ? e.toLocaleDateString(void 0, s) : a > 0 && a <= 7 ? `${a} day${a === 1 ? "" : "s"} ago` : i > 0 ? `${i} hour${i === 1 ? "" : "s"} ago` : r > 0 ? `${r} minute${r === 1 ? "" : "s"} ago` : `${n} second${n === 1 ? "" : "s"} ago`, `${d.checked} ${c}`;
12391
12409
  }
12392
- return l.checked;
12410
+ return d.checked;
12393
12411
  }
12394
- }, d = "pds-status-checker", f = `${d}--${t}`, p = Z([`${d}__button`, s === "working" ? `${d}__button--spinning` : ""]), m = r !== null && r > 0 ? `${r}rem` : "100%", h = /* @__PURE__ */ e.createElement("span", { className: `${d}__tooltip-icon` }, /* @__PURE__ */ e.createElement(Q, {
12395
- className: `${d}__icon ${s === "working" ? `${d}__icon--spinning` : ""}`,
12412
+ }, p = "pds-status-checker", m = `${p}--${t}`, h = u ? `${p}--icon-button` : "", g = Z([
12413
+ `${p}__button`,
12414
+ c === "working" ? `${p}__button--spinning` : "",
12415
+ u ? `${p}__button--icon-only` : ""
12416
+ ]), _ = u ? void 0 : r !== null && r > 0 ? `${r}rem` : "100%", v = /* @__PURE__ */ e.createElement("span", { className: `${p}__tooltip-icon` }, /* @__PURE__ */ e.createElement(Q, {
12417
+ className: `${p}__icon ${c === "working" ? `${p}__icon--spinning` : ""}`,
12396
12418
  iconName: "rotate",
12397
12419
  size: "m"
12398
- })), g = /* @__PURE__ */ e.createElement("span", { className: `${d}__label` }, u());
12420
+ })), y = /* @__PURE__ */ e.createElement("span", { className: `${p}__label` }, f());
12399
12421
  return /* @__PURE__ */ e.createElement("div", {
12400
12422
  className: Z([
12401
- d,
12402
- f,
12423
+ p,
12424
+ m,
12425
+ h,
12403
12426
  n ?? ""
12404
12427
  ]),
12405
- style: { width: m },
12406
- ...c
12428
+ style: _ ? { width: _ } : void 0,
12429
+ ...l
12407
12430
  }, /* @__PURE__ */ e.createElement("button", {
12408
- "aria-label": l.ariaLabel,
12431
+ "aria-label": d.ariaLabel,
12409
12432
  "aria-live": "polite",
12410
- className: p,
12411
- onClick: o,
12433
+ className: g,
12434
+ onClick: s,
12412
12435
  type: "button"
12413
- }, t === "right" && g, /* @__PURE__ */ e.createElement(on, {
12436
+ }, t === "right" && y, /* @__PURE__ */ e.createElement(on, {
12414
12437
  disableTapTrigger: !0,
12415
- content: l.tooltipContent || l.ariaLabel,
12416
- customTrigger: h,
12438
+ content: d.tooltipContent || d.ariaLabel,
12439
+ customTrigger: v,
12417
12440
  triggerIconColor: "default",
12418
12441
  triggerIconSize: "xs"
12419
- }), t === "left" && g));
12442
+ }), t === "left" && y));
12420
12443
  }, os = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
12421
12444
  let o = "pds-status-indicator", c = `${o}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(Cn, {
12422
12445
  className: `${o}__spinner`,
@@ -12677,41 +12700,41 @@ var ns = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12677
12700
  onClick: () => u(f, p),
12678
12701
  type: "button"
12679
12702
  }, _) : /* @__PURE__ */ e.createElement("div", { className: v }, _));
12680
- }), vs = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", density: s = "standard", detailPanelNav: c = !0, detailPanelTitle: l, detailPanelWidth: u, emptyState: p, emptyStateHeading: m = "No results found.", emptyStateMessage: v, footer: y, getDetailPanelPositionLabel: b = (e, t) => `${e} of ${t}`, getPageSizeLabel: x = (e) => `Show ${e} rows per page`, getRowClassName: S, getRowId: C, getRowSelectDisabledReason: w, getSelectRowLabel: T = (e, t) => `Select row ${t}`, getSortLabel: E = (e) => `Sort by ${e}`, hasDesktopDetailPanel: D = !1, hasMobileCards: O = !1, hasMobileDetailSheet: k = !0, hasPanel: A = !1, inspectedRowId: j, isLoading: M = !1, isRowSelectable: N = () => !0, itemsPerPage: P, loadingRowCount: F = 5, maxHeight: I, minHeight: L, nextDetailPanelRowLabel: R = "Next row", onDetailPanelNext: z, onDetailPanelPrev: ee, onPageChange: B, onPageSizeChange: V, onRowInspect: H, onRowSelectionChange: U, onSort: W, pageSizeOptions: G, pageSizeSelectLabel: K = "Rows per page", paginationLabels: q, prevDetailPanelRowLabel: te = "Previous row", renderDetailPanel: ne, renderDetailPanelFooter: re, rowData: J, selectAllLabel: ie = "Select all rows", selectedRows: ae, sortKey: Y, sortOrder: oe, totalItemCount: se, ...ce }) => {
12681
- let le = "pds-table", ue = f(), de = f(), fe = g(null), pe = ya() === "sm" && O, me = A && !pe, he = h(() => r.some((e) => e.cardVisible) ? r.filter((e) => e.cardVisible) : r.slice(0, 1), [r]), ge = ne !== void 0 || H === void 0 && k, _e = ne !== void 0 || H !== void 0 || k, ve = W !== void 0, X = B !== void 0, ye = V !== void 0, be = X || P !== void 0 || G !== void 0, xe = J.length > 0 || X && (se ?? 0) > 0, [Se, Ce] = _({
12703
+ }), vs = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", density: s = "standard", detailPanelNav: c = !0, detailPanelTitle: l, detailPanelWidth: u, emptyState: p, emptyStateHeading: m = "No results found.", emptyStateMessage: v, footer: y, getDetailPanelPositionLabel: b = (e, t) => `${e} of ${t}`, getPageSizeLabel: x = (e) => `Show ${e} rows per page`, getRowClassName: S, getRowId: C, getRowSelectDisabledReason: w, getSelectRowLabel: T = (e, t) => `Select row ${t}`, getSortLabel: E = (e) => `Sort by ${e}`, hasDesktopDetailPanel: D = !1, hasMobileCards: O = !1, hasMobileDetailSheet: k = !0, hasPanel: A = !1, inspectedRowId: j, isLoading: M = !1, isRowSelectable: N = () => !0, itemsPerPage: P, loadingRowCount: F = 5, maxHeight: I, minHeight: L, nextDetailPanelRowLabel: R = "Next row", onDetailPanelNext: z, onDetailPanelPrev: ee, onPageChange: B, onPageSizeChange: V, onRowInspect: H, onRowSelectionChange: U, onSort: W, pageSizeOptions: G, pageSizeSelectLabel: K = "Rows per page", paginationLabels: q, prevDetailPanelRowLabel: te = "Previous row", renderDetailPanel: J, renderDetailPanelFooter: ne, rowData: re, selectAllLabel: ie = "Select all rows", selectedRows: Y, sortKey: ae, sortOrder: oe, totalItemCount: se, ...ce }) => {
12704
+ let le = "pds-table", ue = f(), de = f(), fe = g(null), pe = yi() === "sm" && O, me = A && !pe, he = h(() => r.some((e) => e.cardVisible) ? r.filter((e) => e.cardVisible) : r.slice(0, 1), [r]), ge = J !== void 0 || H === void 0 && k, _e = J !== void 0 || H !== void 0 || k, ve = W !== void 0, ye = B !== void 0, be = V !== void 0, xe = ye || P !== void 0 || G !== void 0, X = re.length > 0 || ye && (se ?? 0) > 0, [Se, Ce] = _({
12682
12705
  key: a ?? "",
12683
12706
  order: a === void 0 ? "asc" : o
12684
12707
  }), we = h(() => {
12685
- if (ve || Se.key === "") return J;
12708
+ if (ve || Se.key === "") return re;
12686
12709
  let e = r.find((e) => e.id === Se.key)?.sortKey ?? Se.key;
12687
- return [...J].sort((t, n) => {
12710
+ return [...re].sort((t, n) => {
12688
12711
  let r = String(t[e]).localeCompare(String(n[e]));
12689
12712
  return Se.order === "asc" ? r : -r;
12690
12713
  });
12691
12714
  }, [
12692
- J,
12715
+ re,
12693
12716
  Se,
12694
12717
  ve,
12695
12718
  r
12696
- ]), [Te, Ee] = _(1), [De, Oe] = _(P ?? G?.[0] ?? 10), [ke, Ae] = _(null), je = j ?? ke, Me = !!je && !!ne && D && !pe, Ne = pe && ge && !!je, [Pe, Fe] = _(null);
12719
+ ]), [Te, Ee] = _(1), [De, Oe] = _(P ?? G?.[0] ?? 10), [ke, Ae] = _(null), je = j ?? ke, Me = !!je && !!J && D && !pe, Ne = pe && ge && !!je, [Pe, Fe] = _(null);
12697
12720
  d(() => {
12698
12721
  je && Fe(je);
12699
12722
  }, [je]);
12700
- let Ie = X ? P ?? 10 : De, Le = (e) => {
12701
- ye ? V(e) : Oe(e), X || Ee(1);
12723
+ let Ie = ye ? P ?? 10 : De, Le = (e) => {
12724
+ be ? V(e) : Oe(e), ye || Ee(1);
12702
12725
  };
12703
12726
  d(() => {
12704
- X || Ee(1);
12705
- }, [J.length, X]), d(() => {
12727
+ ye || Ee(1);
12728
+ }, [re.length, ye]), d(() => {
12706
12729
  process.env.NODE_ENV !== "production" && i !== void 0 && !B && console.warn("[Table] `currentPage` was provided without `onPageChange`. Controlled pagination requires both props. The table is running in uncontrolled mode.");
12707
12730
  }, []);
12708
- let Re = U !== void 0, ze = ae !== void 0, [Be, Ve] = _(/* @__PURE__ */ new Set()), He = h(() => new Set(ae), [ae]), Ue = ze ? He : Be, We = h(() => new Map(J.map((e, t) => [e, t])), [J]), Ge = (e, t) => C ? C(e) : String(We.get(e) ?? t), Ke = h(() => we.findIndex((e, t) => (C ? C(e) : String(We.get(e) ?? t)) === je), [
12731
+ let Re = U !== void 0, ze = Y !== void 0, [Be, Ve] = _(/* @__PURE__ */ new Set()), He = h(() => new Set(Y), [Y]), Ue = ze ? He : Be, We = h(() => new Map(re.map((e, t) => [e, t])), [re]), Ge = (e, t) => C ? C(e) : String(We.get(e) ?? t), Ke = h(() => we.findIndex((e, t) => (C ? C(e) : String(We.get(e) ?? t)) === je), [
12709
12732
  we,
12710
12733
  je,
12711
12734
  C,
12712
12735
  We
12713
12736
  ]), qe = Ke >= 0 ? we[Ke] : null, Je = hs((e, t) => {
12714
- (pe ? ge : ne !== void 0 && D) && j === void 0 && Ae(t), H?.(e, t);
12737
+ (pe ? ge : J !== void 0 && D) && j === void 0 && Ae(t), H?.(e, t);
12715
12738
  }), Ye = () => {
12716
12739
  j === void 0 && Ae(null);
12717
12740
  }, Xe = () => {
@@ -12763,23 +12786,23 @@ var ns = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12763
12786
  Me,
12764
12787
  le
12765
12788
  ]);
12766
- let it = ve ? Y ?? "" : Se.key, at = ve ? oe ?? "asc" : Se.order, ot = h(() => {
12789
+ let it = ve ? ae ?? "" : Se.key, at = ve ? oe ?? "asc" : Se.order, ot = h(() => {
12767
12790
  if (M) return [];
12768
12791
  let e = we;
12769
- if (!X && be && Ie) {
12792
+ if (!ye && xe && Ie) {
12770
12793
  let t = (Te - 1) * Ie;
12771
12794
  e = e.slice(t, t + Ie);
12772
12795
  }
12773
12796
  return e;
12774
12797
  }, [
12775
12798
  we,
12776
- X,
12777
- be,
12799
+ ye,
12800
+ xe,
12778
12801
  Te,
12779
12802
  Ie,
12780
12803
  M
12781
12804
  ]), st = (e) => {
12782
- ve ? W(e, Y === e && oe === "asc" ? "desc" : "asc") : Ce((t) => ({
12805
+ ve ? W(e, ae === e && oe === "asc" ? "desc" : "asc") : Ce((t) => ({
12783
12806
  key: e,
12784
12807
  order: t.key === e && t.order === "asc" ? "desc" : "asc"
12785
12808
  }));
@@ -12816,7 +12839,7 @@ var ns = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12816
12839
  heading: m,
12817
12840
  iconName: "emptySet",
12818
12841
  message: v
12819
- }))), _t = H !== void 0 && ne === void 0 || ne !== void 0 && D, vt = (e, t, n) => {
12842
+ }))), _t = H !== void 0 && J === void 0 || J !== void 0 && D, vt = (e, t, n) => {
12820
12843
  let r = N(e, t), i = r ? void 0 : w?.(e, t), a = T(e, n + 1);
12821
12844
  return {
12822
12845
  disabledReason: i,
@@ -12915,7 +12938,7 @@ var ns = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12915
12938
  })), /* @__PURE__ */ e.createElement("span", { className: Z([`${le}__sort-button-bottom`, lt(t.id, "bottom")]) }, /* @__PURE__ */ e.createElement(Q, {
12916
12939
  iconName: "caretDown",
12917
12940
  size: "m"
12918
- })))) : /* @__PURE__ */ e.createElement("span", null, t.header))))), /* @__PURE__ */ e.createElement("tbody", null, M ? Array.from({ length: F }, (e, t) => ht(t)) : ot.length === 0 ? gt() : ot.map((e, t) => yt(e, t))))), be && !M && xe && /* @__PURE__ */ e.createElement("div", { className: Z(["pds-table-wrapper__pagination", pe && !(G && G.length > 0) ? "pds-table-wrapper__pagination--center" : null]) }, G && G.length > 0 && /* @__PURE__ */ e.createElement(Tr, {
12941
+ })))) : /* @__PURE__ */ e.createElement("span", null, t.header))))), /* @__PURE__ */ e.createElement("tbody", null, M ? Array.from({ length: F }, (e, t) => ht(t)) : ot.length === 0 ? gt() : ot.map((e, t) => yt(e, t))))), xe && !M && X && /* @__PURE__ */ e.createElement("div", { className: Z(["pds-table-wrapper__pagination", pe && !(G && G.length > 0) ? "pds-table-wrapper__pagination--center" : null]) }, G && G.length > 0 && /* @__PURE__ */ e.createElement(Tr, {
12919
12942
  autoWidth: !0,
12920
12943
  id: ue,
12921
12944
  label: K,
@@ -12928,17 +12951,17 @@ var ns = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12928
12951
  size: "s",
12929
12952
  value: String(Ie)
12930
12953
  }), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(uo, {
12931
- currentPage: X ? i ?? 1 : Te,
12954
+ currentPage: ye ? i ?? 1 : Te,
12932
12955
  itemsPerPage: Ie,
12933
12956
  labelStrings: q,
12934
- onPageChange: X ? B : Ee,
12957
+ onPageChange: ye ? B : Ee,
12935
12958
  pageControlType: pe ? "static" : "dropdown",
12936
- totalItemCount: X ? se ?? 0 : J.length
12937
- }))), y && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__footer" }, y)), ne && /* @__PURE__ */ e.createElement("div", { className: Z(["pds-table-wrapper__detail-panel", Me ? "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" }, l && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__detail-panel-title" }, l), /* @__PURE__ */ e.createElement(Fn, {
12959
+ totalItemCount: ye ? se ?? 0 : re.length
12960
+ }))), y && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__footer" }, y)), J && /* @__PURE__ */ e.createElement("div", { className: Z(["pds-table-wrapper__detail-panel", Me ? "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" }, l && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__detail-panel-title" }, l), /* @__PURE__ */ e.createElement(Fn, {
12938
12961
  ariaLabel: n,
12939
12962
  onClick: Ye,
12940
12963
  size: "s"
12941
- })), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__detail-panel-content" }, Me && qe && ne(qe, tt))), Me && qe && (re || c) && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__detail-panel-footer" }, re ? re(qe, tt) : /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__detail-panel-nav" }, /* @__PURE__ */ e.createElement(Nn, {
12964
+ })), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__detail-panel-content" }, Me && qe && J(qe, tt))), Me && qe && (ne || c) && /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__detail-panel-footer" }, ne ? ne(qe, tt) : /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__detail-panel-nav" }, /* @__PURE__ */ e.createElement(Nn, {
12942
12965
  hasBorder: !0,
12943
12966
  ariaLabel: te,
12944
12967
  disabled: !tt.hasPrev,
@@ -12961,10 +12984,10 @@ var ns = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12961
12984
  e || Ye();
12962
12985
  },
12963
12986
  title: l
12964
- }, et && (ne ? ne(et, nt) : bt(et)), et && (re || c) && /* @__PURE__ */ e.createElement("div", {
12987
+ }, et && (J ? J(et, nt) : bt(et)), et && (ne || c) && /* @__PURE__ */ e.createElement("div", {
12965
12988
  className: `${le}-wrapper__mobile-sheet-nav`,
12966
12989
  slot: "footer"
12967
- }, re ? re(et, nt) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Nn, {
12990
+ }, ne ? ne(et, nt) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Nn, {
12968
12991
  hasBorder: !0,
12969
12992
  ariaLabel: te,
12970
12993
  disabled: !nt.hasPrev,
@@ -13306,7 +13329,7 @@ var ns = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13306
13329
  maxWidth: j ? void 0 : `${E}rem`,
13307
13330
  minWidth: j ? `${w}rem` : `${D}rem`,
13308
13331
  width: z
13309
- }, B = g(!1), V = ya(), H = V === "sm", U = () => {
13332
+ }, B = g(!1), V = yi(), H = V === "sm", U = () => {
13310
13333
  if (!H) {
13311
13334
  if (B.current = !1, x) {
13312
13335
  x();
@@ -13344,14 +13367,14 @@ var ns = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13344
13367
  r.disconnect(), i?.disconnect(), window.removeEventListener("resize", t);
13345
13368
  };
13346
13369
  }, [R]);
13347
- let K = _t(t), q = K.__unslotted, te = K.header, ne = K.footer, re = K.sidebar, J = K.identity, ie = K["content-top"], ae = K.navigation, Y = K["content-bottom"], oe = J || ie || ae || Y, se = oe ? /* @__PURE__ */ e.createElement(e.Fragment, null, (J || o) && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-identity` }, J, o && !j && /* @__PURE__ */ e.createElement(Nn, {
13370
+ let K = _t(t), q = K.__unslotted, te = K.header, J = K.footer, ne = K.sidebar, re = K.identity, ie = K["content-top"], Y = K.navigation, ae = K["content-bottom"], oe = re || ie || Y || ae, se = oe ? /* @__PURE__ */ e.createElement(e.Fragment, null, (re || o) && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-identity` }, re, o && !j && /* @__PURE__ */ e.createElement(Nn, {
13348
13371
  hasBorder: !0,
13349
13372
  ariaLabel: F.drawerToggle,
13350
13373
  className: `${N}__drawer-toggle`,
13351
13374
  iconName: "sidebar",
13352
13375
  onClick: b,
13353
13376
  size: "s"
13354
- })), ie && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-content-top` }, ie), ae && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-navigation` }, ae), Y && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-content-bottom` }, Y)) : re, ce = a(h, {
13377
+ })), ie && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-content-top` }, ie), Y && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-navigation` }, Y), ae && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-content-bottom` }, ae)) : ne, ce = a(h, {
13355
13378
  ...y,
13356
13379
  className: Z([`${N}__main`, y?.className]),
13357
13380
  id: I,
@@ -13366,10 +13389,10 @@ var ns = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13366
13389
  }, q)), le = /* @__PURE__ */ e.createElement("div", {
13367
13390
  className: `${N}__content-column`,
13368
13391
  style: { backgroundColor: p || void 0 }
13369
- }, ce, ne && /* @__PURE__ */ e.createElement("div", { className: `${N}__footer` }, /* @__PURE__ */ e.createElement("div", {
13392
+ }, ce, J && /* @__PURE__ */ e.createElement("div", { className: `${N}__footer` }, /* @__PURE__ */ e.createElement("div", {
13370
13393
  className: `${N}__footer-inner`,
13371
13394
  style: { maxWidth: L }
13372
- }, ne))), ue = /* @__PURE__ */ e.createElement(e.Fragment, null, (re || oe) && /* @__PURE__ */ e.createElement("div", {
13395
+ }, J))), ue = /* @__PURE__ */ e.createElement(e.Fragment, null, (ne || oe) && /* @__PURE__ */ e.createElement("div", {
13373
13396
  ...O,
13374
13397
  className: Z([
13375
13398
  `${N}__sidebar`,
@@ -13407,7 +13430,7 @@ var ns = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13407
13430
  n ?? ""
13408
13431
  ]),
13409
13432
  ...A
13410
- }, /* @__PURE__ */ e.createElement(Zi, {
13433
+ }, /* @__PURE__ */ e.createElement(Qi, {
13411
13434
  destination: I,
13412
13435
  text: F.skipToContent
13413
13436
  }), te ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, te), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, ue)) : ue), o && /* @__PURE__ */ e.createElement(ro, {
@@ -13479,7 +13502,7 @@ var ns = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13479
13502
  role: "listitem"
13480
13503
  }, t))));
13481
13504
  }, Bs = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
13482
- let o = _t(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" ? `${l}--full-width` : null, d = /* @__PURE__ */ e.createElement(ha, {
13505
+ let o = _t(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" ? `${l}--full-width` : null, d = /* @__PURE__ */ e.createElement(ga, {
13483
13506
  className: Z([
13484
13507
  l,
13485
13508
  u,
@@ -13709,6 +13732,6 @@ var ns = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13709
13732
  }, [e]), t;
13710
13733
  };
13711
13734
  //#endregion
13712
- export { br as ActionCard, Is as AppLayout, Qs as AutoGrid, ui as Avatar, di as AvatarLabel, wt as Badge, Ia as Banner, Ur as BarChart, ta as BookmarksEmptyState, ra as BookmarksMenu, ho as BookmarksPanel, to as BottomSheet, En as BranchDiff, ia as Breadcrumb, no as BulkActionBar, An as Button, jn as ButtonLink, ma as ButtonNav, Yi as CTALink, yr as Callout, xr as Card, Sr as CardSelect, pi as Checkbox, mi as CheckboxFieldset, hi as CheckboxGroup, Pn as ClipboardButton, Fn as CloseButton, $r as CodeBlock, gi as Combobox, vi as ComboboxMultiselect, Cr as CompactEmptyState, ti as ComparisonList, ha as Container, zi as Datepicker, Ls as DocsLayout, ro as Drawer, $n as Dropdown, pa as DropdownMenu, go as ExpansionPanel, _o as ExpansionPanelGroup, vo as FeaturePanel, ai as FileDiff, Bi as FileUpload, ur as FilterButton, Us as FlexContainer, io as FullScreenOverlay, Zs as GlobalWrapper, $s as Grid, ec as GridItem, ri as HorizontalEmptyState, Q as Icon, Nn as IconButton, fi as IdentityBlock, Ra as InlineMessage, Vi as InputGroup, Gr as LineChart, Xi as LinkNewWindow, Va as MIN_AUTO_CLOSE_DURATION, Yn as MenuButton, ao as Modal, _a as Navbar, co as Pagination, lo as PaginationChapter, uo as PaginationCompact, yo as Panel, bo as PanelList, xo as PanelRow, So as PanelStack, Do as PantheonLogo, si as PaymentIcon, Qi as Picture, qr as PieChart, mr as PlatformIcon, Ao as Popover, Mo as ProgressBar, Po as ProgressRing, Yr as ProportionBar, Hi as RadioGroup, Lo as ResultCount, $i as RowActionsMenu, gr as SSOButton, Ba as SectionMessage, dr as SegmentedButton, Tr as Select, fr as SelectButton, wr as SelectOptionGroup, va as SideNav, xa as SideNavGlobal, ba as SideNavGlobalItem, Rs as SidebarLayout, Bo as SiteFooter, Ca as SiteMenu, Vo as SiteOptionDisplay, Ho as SiteSearch, Jn as SiteTypeIcon, qn as SiteTypeLabel, zr as Skeleton, Zi as Skiplink, es as SortableList, Jo as SortableListHeader, ns as SortableRow, Cn as Spinner, pr as SplitButton, rs as StatPanel, zs as StatPanelGroup, wn as StatusBadge, as as StatusChecker, os as StatusIndicator, ls as StatusScrim, Hn as StatusTypeLabels, us as StepList, ds as Stepper, Bs as StepperLayout, Ui as Switch, Ta as TabMenu, vs as Table, Ts as TableOfContents, Es as Tabs, Ps as Tag, Gi as TagsInput, Tn as Tally, Ji as TextInput, Ki as Textarea, Ks as ThemeContext, Ys as ThemeContextProvider, ka as ThemeSwitcher, Vs as ThreeItemLayout, Ci as Timepicker, Ja as Toast, Ya as ToastType, Ga as Toaster, Ua as ToasterContext, on as Tooltip, Da as TreeNav, Hs as TwoItemLayout, Aa as UserMenu, Fs as UtilityBar, _r as UtilityButton, ii as VerticalEmptyState, ps as VerticalStepper, ni as VideoEmbed, fo as WidgetPanel, Ma as WorkspaceSelector, Co as WorkspaceSelectorPanel, ea as buildBookmarkMenuItems, Fi as getPresetDateRange, Js as getThemeInitScript, St as iconList, Wn as isHeadingItemType, Gn as isLinkItemType, Kn as isNodeItemType, Un as isSeparatorItemType, is as statusCheckerStates, Ds as tagColors, As as tagSolidColors, Os as tagSolidHueColors, ks as tagSolidStatusColors, ya as useBreakpoint, Mn as useClipboard, Ln as useDropdown, Qt as useIsMobile, tc as useKeyPress, rn as useKeyboardShortcut, an as useMediaQuery, Xs as useTheme, Xa as useToast, nc as useWindowWidth };
13735
+ export { br as ActionCard, Is as AppLayout, Qs as AutoGrid, ui as Avatar, di as AvatarLabel, wt as Badge, Ia as Banner, Ur as BarChart, na as BookmarksEmptyState, ia as BookmarksMenu, ho as BookmarksPanel, to as BottomSheet, En as BranchDiff, aa as Breadcrumb, no as BulkActionBar, An as Button, jn as ButtonLink, ha as ButtonNav, Xi as CTALink, yr as Callout, xr as Card, Sr as CardSelect, pi as Checkbox, mi as CheckboxFieldset, hi as CheckboxGroup, Pn as ClipboardButton, Fn as CloseButton, $r as CodeBlock, gi as Combobox, vi as ComboboxMultiselect, Cr as CompactEmptyState, ti as ComparisonList, ga as Container, Bi as Datepicker, Ls as DocsLayout, ro as Drawer, $n as Dropdown, ma as DropdownMenu, go as ExpansionPanel, _o as ExpansionPanelGroup, vo as FeaturePanel, ai as FileDiff, Vi as FileUpload, ur as FilterButton, Us as FlexContainer, io as FullScreenOverlay, Zs as GlobalWrapper, $s as Grid, ec as GridItem, ri as HorizontalEmptyState, Q as Icon, Nn as IconButton, fi as IdentityBlock, Ra as InlineMessage, Hi as InputGroup, Gr as LineChart, Zi as LinkNewWindow, Va as MIN_AUTO_CLOSE_DURATION, Yn as MenuButton, ao as Modal, va as Navbar, co as Pagination, lo as PaginationChapter, uo as PaginationCompact, yo as Panel, bo as PanelList, xo as PanelRow, So as PanelStack, Do as PantheonLogo, si as PaymentIcon, $i as Picture, qr as PieChart, mr as PlatformIcon, Ao as Popover, Mo as ProgressBar, Po as ProgressRing, Yr as ProportionBar, Ui as RadioGroup, Lo as ResultCount, ea as RowActionsMenu, gr as SSOButton, Ba as SectionMessage, dr as SegmentedButton, Tr as Select, fr as SelectButton, wr as SelectOptionGroup, ya as SideNav, xa as SideNavGlobal, ba as SideNavGlobalItem, Rs as SidebarLayout, Bo as SiteFooter, Ca as SiteMenu, Vo as SiteOptionDisplay, Ho as SiteSearch, Jn as SiteTypeIcon, qn as SiteTypeLabel, zr as Skeleton, Qi as Skiplink, es as SortableList, Jo as SortableListHeader, ns as SortableRow, Cn as Spinner, pr as SplitButton, rs as StatPanel, zs as StatPanelGroup, wn as StatusBadge, as as StatusChecker, os as StatusIndicator, ls as StatusScrim, Hn as StatusTypeLabels, us as StepList, ds as Stepper, Bs as StepperLayout, Wi as Switch, Ta as TabMenu, vs as Table, Ts as TableOfContents, Es as Tabs, Ps as Tag, Ki as TagsInput, Tn as Tally, Yi as TextInput, qi as Textarea, Ks as ThemeContext, Ys as ThemeContextProvider, ka as ThemeSwitcher, Vs as ThreeItemLayout, wi as Timepicker, Ja as Toast, Ya as ToastType, Ga as Toaster, Ua as ToasterContext, on as Tooltip, Da as TreeNav, Hs as TwoItemLayout, Aa as UserMenu, Fs as UtilityBar, _r as UtilityButton, ii as VerticalEmptyState, ps as VerticalStepper, ni as VideoEmbed, fo as WidgetPanel, Ma as WorkspaceSelector, Co as WorkspaceSelectorPanel, ta as buildBookmarkMenuItems, Ii as getPresetDateRange, Js as getThemeInitScript, St as iconList, Wn as isHeadingItemType, Gn as isLinkItemType, Kn as isNodeItemType, Un as isSeparatorItemType, is as statusCheckerStates, Ds as tagColors, As as tagSolidColors, Os as tagSolidHueColors, ks as tagSolidStatusColors, yi as useBreakpoint, Mn as useClipboard, Ln as useDropdown, Qt as useIsMobile, tc as useKeyPress, rn as useKeyboardShortcut, an as useMediaQuery, Xs as useTheme, Xa as useToast, nc as useWindowWidth };
13713
13736
 
13714
13737
  //# sourceMappingURL=index.js.map