@pantheon-systems/pds-toolkit-react 2.0.0-alpha.87 → 2.0.0-alpha.88

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,7 +1,7 @@
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, useCallback as c, useContext as l, useEffect as u, useId as d, useImperativeHandle as f, useLayoutEffect as p, useMemo as m, useRef as h, useState as g, useSyncExternalStore as _ } from "react";
2
- import { FloatingArrow as v, FloatingFocusManager as y, FloatingNode as b, FloatingOverlay as x, FloatingPortal as S, FloatingTree as C, arrow as w, autoUpdate as T, flip as E, offset as D, safePolygon as O, shift as k, size as A, useClick as j, useDismiss as M, useFloating as N, useFloatingNodeId as P, useFloatingParentNodeId as F, useFocus as I, useHover as L, useId as R, useInteractions as z, useListNavigation as B, useMergeRefs as ee, useRole as V, useTransitionStyles as H, useTypeahead as U } from "@floating-ui/react";
2
+ import { FloatingArrow as v, FloatingFocusManager as y, FloatingNode as b, FloatingOverlay as x, FloatingPortal as S, FloatingTree as C, arrow as w, autoUpdate as T, flip as E, offset as D, safePolygon as O, shift as k, size as A, useClick as j, useDismiss as M, useFloating as N, useFloatingNodeId as P, useFloatingParentNodeId as F, useFocus as I, useHover as L, useId as R, useInteractions as z, useListNavigation as B, useMergeRefs as V, useRole as H, useTransitionStyles as U, useTypeahead as ee } from "@floating-ui/react";
3
3
  import { useHotkeys as W } from "react-hotkeys-hook";
4
- import { Bar as G, BarChart as K, CartesianGrid as q, Cell as te, Line as J, LineChart as ne, Pie as re, PieChart as ie, Rectangle as ae, ReferenceLine as oe, ResponsiveContainer as se, Tooltip as ce, XAxis as le, YAxis as Y } from "recharts";
4
+ import { Bar as G, BarChart as K, CartesianGrid as q, Cell as te, Line as J, LineChart as ne, Pie as re, PieChart as ie, Rectangle as ae, ReferenceLine as Y, ResponsiveContainer as oe, Tooltip as se, XAxis as ce, YAxis as le } from "recharts";
5
5
  import { CodeBlock as ue } from "react-code-block";
6
6
  import de from "hash-sum";
7
7
  import { useCombobox as fe, useMultipleSelection as pe } from "downshift";
@@ -1458,6 +1458,13 @@ var st = Object.create, ct = Object.defineProperty, lt = Object.getOwnPropertyDe
1458
1458
  svgPathData: "M416 32L31.9 32C14.3 32 0 46.5 0 64.3L0 447.7C0 465.5 14.3 480 31.9 480L416 480c17.6 0 32-14.5 32-32.3l0-383.4C448 46.5 433.6 32 416 32zM135.4 416l-66.4 0 0-213.8 66.5 0 0 213.8-.1 0zM102.2 96a38.5 38.5 0 1 1 0 77 38.5 38.5 0 1 1 0-77zM384.3 416l-66.4 0 0-104c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9l0 105.8-66.4 0 0-213.8 63.7 0 0 29.2 .9 0c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9l0 117.2z",
1459
1459
  width: 448
1460
1460
  },
1461
+ list: {
1462
+ aliases: [],
1463
+ categories: ["data", "navigation"],
1464
+ height: 512,
1465
+ svgPathData: "M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM184 72c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L184 72zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z",
1466
+ width: 512
1467
+ },
1461
1468
  listCheck: {
1462
1469
  aliases: [
1463
1470
  "checklist",
@@ -1722,6 +1729,13 @@ var st = Object.create, ct = Object.defineProperty, lt = Object.getOwnPropertyDe
1722
1729
  svgPathData: "M64 112c-8.8 0-16 7.2-16 16l0 256c0 8.8 7.2 16 16 16l384 0c8.8 0 16-7.2 16-16l0-256c0-8.8-7.2-16-16-16L64 112zM0 128C0 92.7 28.7 64 64 64l384 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128zM160 320a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zm-32-96a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm104-56l160 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-160 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm0 128l160 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-160 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z",
1723
1730
  width: 512
1724
1731
  },
1732
+ rectanglesMixed: {
1733
+ aliases: ["bento", "boxes"],
1734
+ categories: ["navigation", "objects"],
1735
+ height: 512,
1736
+ svgPathData: "M240 112l0 96-192 0 0-96 192 0zM48 64C21.5 64 0 85.5 0 112l0 96c0 26.5 21.5 48 48 48l192 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48L48 64zm416 48l0 256-64 0 0-256 64 0zM400 64c-26.5 0-48 21.5-48 48l0 256c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-256c0-26.5-21.5-48-48-48l-64 0zM112 368l128 0 0 64-128 0 0-64zm-48 0l0 64c0 26.5 21.5 48 48 48l128 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-128 0c-26.5 0-48 21.5-48 48z",
1737
+ width: 512
1738
+ },
1725
1739
  reply: {
1726
1740
  aliases: ["respond", "answer"],
1727
1741
  categories: ["actions", "communication"],
@@ -2364,7 +2378,7 @@ var st = Object.create, ct = Object.defineProperty, lt = Object.getOwnPropertyDe
2364
2378
  svgPathData: "M549.7 124.1C543.5 100.4 524.9 81.8 501.4 75.5 458.9 64 288.1 64 288.1 64S117.3 64 74.7 75.5C51.2 81.8 32.7 100.4 26.4 124.1 15 167 15 256.4 15 256.4s0 89.4 11.4 132.3c6.3 23.6 24.8 41.5 48.3 47.8 42.6 11.5 213.4 11.5 213.4 11.5s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zM232.2 337.6l0-162.4 142.7 81.2-142.7 81.2z",
2365
2379
  width: 576
2366
2380
  }
2367
- }, xt = /* @__PURE__ */ "angleDown.angleLeft.angleRight.anglesDown.anglesLeft.anglesRight.anglesUp.angleUp.arrowDownToLine.arrowDownWideShort.arrowLeft.arrowRight.arrowsRetweet.arrowUpShortWide.asterisk.banBug.bars.barsFilter.barsStaggered.bell.billboard.bitbucket.bluesky.bolt.boltPantheon.boltSolid.book.bookmark.bookmarkSolid.books.box.bracketRight.bracketsSquare.brainCircuit.broomWide.building.buildings.bullhorn.calendarDays.caretDown.caretLeft.caretRight.caretUp.ccAmex.ccApplePay.ccDiscover.ccGeneric.ccMC.ccPaypal.ccVisa.chartLine.chartNetwork.chartSimple.check.circle.circleCheck.circleExclamation.circleExclamationSolid.circleHalfStroke.circleInfo.circleInfoSolid.circleMinus.circleNotch.circlePlus.circleQuestion.circleQuestionSolid.circleUser.circleXmark.claude.clock.cloud.cloudArrowDown.cloudArrowUp.cloudPlus.code.codeBranch.codeMerge.collapseToCenter.command.comment.compress.copy.desktop.diagramVenn.diamondExclamation.diamonds4.discourse.display.dollarSign.download.drupal.ellipsis.ellipsisVertical.emptySet.envelope.envelopeOpen.exclamation.expand.expandFromCenter.externalLink.eye.eyeSlash.facebook.file.fileCheck.fileContract.fileCSV.fileDiff.fileExport.fileImport.fileLines.filePDF.fileZip.floppyDisk.folder.folders.folderTree.gear.gem.github.gitlab.globe.graduationCap.grid.grid2.gripDots.gripDotsVertical.heart.heartSolid.house.idCard.image.inputText.instagram.keySkeleton.landmark.laptop.laptopCode.leaf.lifeRing.link.linkedin.listCheck.locationCrosshairs.lock.lockOpen.magnifyingGlass.medal.memo.messages.minus.moon.move.nextJs.octagonExclamation.openai.paperclip.paperPlane.pause.pen.penField.penPaintbrush.phone.play.plus.question.quotesLeft.quotesRight.rectangleList.reply.robot.rocketLaunch.rotate.rotateClock.rotateLeft.rotateRight.rss.save.server.shareNodes.shield.shieldQuartered.shovel.sidebar.siren.sirenOn.sitemap.slack.slashForward.slider.slidersSimple.snowflake.sparkles.squareCheck.squareCode.squareDashed.squareMinus.squarePen.squareQuestion.squareTerminal.star.starSolid.sun.sunBright.table.tableColumns.tableRows.terminal.text.threads.thumbsDown.thumbsUp.trash.triangleExclamation.twitter.unlink.upload.user.userAstronaut.userGear.userPlus.users.userSolid.video.wavePulse.windowRestore.wordpress.wreathLaurel.wrench.xmark.xmarkLarge.xTwitter.youtube".split("."), Q = ({ className: t, display: n = "inline-block", iconName: r, size: i = "xl", style: a, verticalAlign: o = "middle", ...s }) => {
2381
+ }, xt = /* @__PURE__ */ "angleDown.angleLeft.angleRight.anglesDown.anglesLeft.anglesRight.anglesUp.angleUp.arrowDownToLine.arrowDownWideShort.arrowLeft.arrowRight.arrowsRetweet.arrowUpShortWide.asterisk.banBug.bars.barsFilter.barsStaggered.bell.billboard.bitbucket.bluesky.bolt.boltPantheon.boltSolid.book.bookmark.bookmarkSolid.books.box.bracketRight.bracketsSquare.brainCircuit.broomWide.building.buildings.bullhorn.calendarDays.caretDown.caretLeft.caretRight.caretUp.ccAmex.ccApplePay.ccDiscover.ccGeneric.ccMC.ccPaypal.ccVisa.chartLine.chartNetwork.chartSimple.check.circle.circleCheck.circleExclamation.circleExclamationSolid.circleHalfStroke.circleInfo.circleInfoSolid.circleMinus.circleNotch.circlePlus.circleQuestion.circleQuestionSolid.circleUser.circleXmark.claude.clock.cloud.cloudArrowDown.cloudArrowUp.cloudPlus.code.codeBranch.codeMerge.collapseToCenter.command.comment.compress.copy.desktop.diagramVenn.diamondExclamation.diamonds4.discourse.display.dollarSign.download.drupal.ellipsis.ellipsisVertical.emptySet.envelope.envelopeOpen.exclamation.expand.expandFromCenter.externalLink.eye.eyeSlash.facebook.file.fileCheck.fileContract.fileCSV.fileDiff.fileExport.fileImport.fileLines.filePDF.fileZip.floppyDisk.folder.folders.folderTree.gear.gem.github.gitlab.globe.graduationCap.grid.grid2.gripDots.gripDotsVertical.heart.heartSolid.house.idCard.image.inputText.instagram.keySkeleton.landmark.laptop.laptopCode.leaf.lifeRing.link.linkedin.list.listCheck.locationCrosshairs.lock.lockOpen.magnifyingGlass.medal.memo.messages.minus.moon.move.nextJs.octagonExclamation.openai.paperclip.paperPlane.pause.pen.penField.penPaintbrush.phone.play.plus.question.quotesLeft.quotesRight.rectangleList.rectanglesMixed.reply.robot.rocketLaunch.rotate.rotateClock.rotateLeft.rotateRight.rss.save.server.shareNodes.shield.shieldQuartered.shovel.sidebar.siren.sirenOn.sitemap.slack.slashForward.slider.slidersSimple.snowflake.sparkles.squareCheck.squareCode.squareDashed.squareMinus.squarePen.squareQuestion.squareTerminal.star.starSolid.sun.sunBright.table.tableColumns.tableRows.terminal.text.threads.thumbsDown.thumbsUp.trash.triangleExclamation.twitter.unlink.upload.user.userAstronaut.userGear.userPlus.users.userSolid.video.wavePulse.windowRestore.wordpress.wreathLaurel.wrench.xmark.xmarkLarge.xTwitter.youtube".split("."), Q = ({ className: t, display: n = "inline-block", iconName: r, size: i = "xl", style: a, verticalAlign: o = "middle", ...s }) => {
2368
2382
  let c = "pds-icon", l = `${c} ${c}--${i} ${c}--${r}`, u = bt[r], d = `0 0 ${u.width} ${u.height}`, f = r in yt ? yt[r] : null, p;
2369
2383
  if (f?.type === "complex") p = f.render();
2370
2384
  else {
@@ -2508,9 +2522,9 @@ var st = Object.create, ct = Object.defineProperty, lt = Object.getOwnPropertyDe
2508
2522
  }),
2509
2523
  I(C, { enabled: !i }),
2510
2524
  M(C),
2511
- V(C, { role: "tooltip" }),
2525
+ H(C, { role: "tooltip" }),
2512
2526
  j(C, { enabled: !a && !x })
2513
- ]), { isMounted: F, styles: R } = H(C, {
2527
+ ]), { isMounted: F, styles: R } = U(C, {
2514
2528
  duration: {
2515
2529
  open: 0,
2516
2530
  close: 300
@@ -3048,7 +3062,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3048
3062
  let n = t.toLowerCase();
3049
3063
  return e.find((e) => (e?.textContent?.trim().toLowerCase() ?? "").startsWith(n));
3050
3064
  }, In = ({ allowEscape: e = !1, enableClick: t = !0, enableListNavigation: n = !0, enableShift: r = !0, enableTransition: i = !0, enableTypeahead: a = !1, matchReferenceWidth: o = !1, maxHeightValue: s, offsetValue: c = 0, openOnHover: l = !1, placement: u = "bottom-start", role: d = "menu", selectedIndex: f = null, shiftPadding: p = 24, variant: m = "default", virtual: _ = !1 } = {}) => {
3051
- let [v, y] = g(!1), [b, x] = g(null), S = h([]), C = P(), w = m === "input", F = w || o, { context: I, floatingStyles: R, refs: ee } = N({
3065
+ let [v, y] = g(!1), [b, x] = g(null), S = h([]), C = P(), w = m === "input", F = w || o, { context: I, floatingStyles: R, refs: V } = N({
3052
3066
  nodeId: C,
3053
3067
  open: v,
3054
3068
  onOpenChange: y,
@@ -3084,7 +3098,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3084
3098
  event: "mousedown"
3085
3099
  }),
3086
3100
  M(I),
3087
- V(I, { role: d }),
3101
+ H(I, { role: d }),
3088
3102
  L(I, {
3089
3103
  enabled: l,
3090
3104
  move: !1,
@@ -3108,7 +3122,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3108
3122
  allowEscape: e,
3109
3123
  focusItemOnHover: !_
3110
3124
  }),
3111
- U(I, {
3125
+ ee(I, {
3112
3126
  enabled: a,
3113
3127
  listRef: S,
3114
3128
  activeIndex: b,
@@ -3118,7 +3132,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3118
3132
  },
3119
3133
  findMatch: Fn
3120
3134
  })
3121
- ]), { isMounted: q, styles: te } = H(I, i ? {
3135
+ ]), { isMounted: q, styles: te } = U(I, i ? {
3122
3136
  duration: {
3123
3137
  open: 300,
3124
3138
  close: 150
@@ -3137,7 +3151,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3137
3151
  isMounted: q,
3138
3152
  listRef: S,
3139
3153
  nodeId: C,
3140
- refs: ee,
3154
+ refs: V,
3141
3155
  setActiveIndex: x,
3142
3156
  setIsOpen: y,
3143
3157
  transitionStyles: te
@@ -3194,7 +3208,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3194
3208
  }
3195
3209
  f?.(M);
3196
3210
  }, [M]);
3197
- let B = Zt(), ee = o && B, V = "pds-menu-button", H = w === "navbar", U = H ? "subtle" : w, W = a, [G] = g(`menu-button-${a}`), K = [], q = [];
3211
+ let B = Zt(), V = o && B, H = "pds-menu-button", U = w === "navbar", ee = U ? "subtle" : w, W = a, [G] = g(`menu-button-${a}`), K = [], q = [];
3198
3212
  ((e) => {
3199
3213
  e.forEach((e) => {
3200
3214
  !Hn(e) && !Un(e) && !Gn(e) && q.push(e);
@@ -3213,7 +3227,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3213
3227
  });
3214
3228
  if (Un(t)) return /* @__PURE__ */ e.createElement("li", {
3215
3229
  key: i || o,
3216
- className: `pds-dropdown__heading ${V}__listbox-heading`,
3230
+ className: `pds-dropdown__heading ${H}__listbox-heading`,
3217
3231
  id: i || void 0,
3218
3232
  role: "presentation"
3219
3233
  }, t.label);
@@ -3242,8 +3256,8 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3242
3256
  tabIndex: -1,
3243
3257
  ...n.props,
3244
3258
  onClick: () => I(!1)
3245
- }, /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${V}__item-label` }, s), c));
3246
- } else l = /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${V}__item-label` }, s), c);
3259
+ }, /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${H}__item-label` }, s), c));
3260
+ } else l = /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${H}__item-label` }, s), c);
3247
3261
  let u = Z([
3248
3262
  "pds-dropdown__item",
3249
3263
  r ? "pds-dropdown__item--focused" : null,
@@ -3279,7 +3293,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3279
3293
  });
3280
3294
  if (Un(t)) return /* @__PURE__ */ e.createElement("li", {
3281
3295
  key: r,
3282
- className: `pds-dropdown__heading ${V}__listbox-heading`,
3296
+ className: `pds-dropdown__heading ${H}__listbox-heading`,
3283
3297
  role: "presentation"
3284
3298
  }, t.label);
3285
3299
  if (Gn(t)) return /* @__PURE__ */ e.createElement("li", {
@@ -3306,8 +3320,8 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3306
3320
  c = /* @__PURE__ */ e.createElement(r, {
3307
3321
  tabIndex: -1,
3308
3322
  ...n.props
3309
- }, /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${V}__item-label` }, o), s));
3310
- } else c = /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${V}__item-label` }, o), s);
3323
+ }, /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${H}__item-label` }, o), s));
3324
+ } else c = /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${H}__item-label` }, o), s);
3311
3325
  return /* @__PURE__ */ e.createElement("li", {
3312
3326
  key: r,
3313
3327
  "aria-disabled": t.disabled || void 0,
@@ -3323,8 +3337,8 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3323
3337
  }, ie = (t) => {
3324
3338
  let n = t.filter(Un || Hn), r = n.length > 0, a = Z([
3325
3339
  "pds-dropdown__panel",
3326
- `${V}__listbox`,
3327
- i ? `${V}__listbox--icon-only` : null
3340
+ `${H}__listbox`,
3341
+ i ? `${H}__listbox--icon-only` : null
3328
3342
  ]), o = 0;
3329
3343
  if (r) {
3330
3344
  let r = ae(t, n);
@@ -3375,43 +3389,43 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3375
3389
  return e.forEach((t, o) => {
3376
3390
  t === i ? (n.push(a), a = [], a.push(t), i = r.shift()) : (a.push(t), o + 1 === e.length && n.push(a));
3377
3391
  }), n.filter((e) => e.length > 0);
3378
- }, oe, se = _ === "m" ? "s" : "xs", ce = y ? /* @__PURE__ */ e.createElement(e.Fragment, null, c, /* @__PURE__ */ e.createElement(wn, {
3392
+ }, Y, oe = _ === "m" ? "s" : "xs", se = y ? /* @__PURE__ */ e.createElement(e.Fragment, null, c, /* @__PURE__ */ e.createElement(wn, {
3379
3393
  className: "pds-button__tally",
3380
3394
  label: y.label,
3381
- size: se,
3395
+ size: oe,
3382
3396
  type: y.type
3383
- })) : c, le = y ? /* @__PURE__ */ e.createElement("span", { className: `${V}__accordion-label` }, c, /* @__PURE__ */ e.createElement(wn, {
3384
- className: `${V}__tally`,
3397
+ })) : c, ce = y ? /* @__PURE__ */ e.createElement("span", { className: `${H}__accordion-label` }, c, /* @__PURE__ */ e.createElement(wn, {
3398
+ className: `${H}__tally`,
3385
3399
  label: y.label,
3386
3400
  size: "s",
3387
3401
  type: y.type
3388
3402
  })) : c;
3389
- if (i || (oe = /* @__PURE__ */ e.createElement(kn, {
3403
+ if (i || (Y = /* @__PURE__ */ e.createElement(kn, {
3390
3404
  ref: F.setReference,
3391
3405
  "aria-controls": G,
3392
3406
  "aria-expanded": M,
3393
3407
  "aria-haspopup": "true",
3394
- className: Z([`${V}__trigger`, H ? `${V}__trigger--navbar` : null]),
3408
+ className: Z([`${H}__trigger`, U ? `${H}__trigger--navbar` : null]),
3395
3409
  disabled: n,
3396
3410
  displayType: "icon-end",
3397
3411
  iconName: "angleDown",
3398
3412
  id: W,
3399
3413
  isSplitButton: s,
3400
- label: ce,
3414
+ label: se,
3401
3415
  size: _,
3402
3416
  statusDot: v,
3403
3417
  type: "button",
3404
- variant: U,
3418
+ variant: ee,
3405
3419
  ...A({ onClick: J })
3406
3420
  })), i) {
3407
3421
  let t = On(c);
3408
- oe = /* @__PURE__ */ e.createElement(Mn, {
3422
+ Y = /* @__PURE__ */ e.createElement(Mn, {
3409
3423
  ref: F.setReference,
3410
3424
  "aria-controls": G,
3411
3425
  "aria-expanded": M,
3412
3426
  "aria-haspopup": "true",
3413
3427
  ariaLabel: t,
3414
- className: `${V}__trigger ${V}__trigger--icon-only`,
3428
+ className: `${H}__trigger ${H}__trigger--icon-only`,
3415
3429
  disabled: n,
3416
3430
  hasTooltip: !1,
3417
3431
  iconName: r,
@@ -3422,22 +3436,22 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3422
3436
  ...A({ onClick: J })
3423
3437
  });
3424
3438
  }
3425
- let Y = i ? /* @__PURE__ */ e.createElement("span", { className: `${V}__icon-label` }, /* @__PURE__ */ e.createElement(Q, { iconName: r }), " ", c) : le, ue = M ? `${V}--expanded` : null;
3439
+ let le = i ? /* @__PURE__ */ e.createElement("span", { className: `${H}__icon-label` }, /* @__PURE__ */ e.createElement(Q, { iconName: r }), " ", c) : ce, ue = M ? `${H}--expanded` : null;
3426
3440
  return /* @__PURE__ */ e.createElement("span", {
3427
3441
  className: Z([
3428
- V,
3442
+ H,
3429
3443
  ue,
3430
3444
  t
3431
3445
  ]),
3432
3446
  "data-testid": x,
3433
3447
  ...T
3434
- }, ee ? /* @__PURE__ */ e.createElement(Ln, {
3448
+ }, V ? /* @__PURE__ */ e.createElement(Ln, {
3435
3449
  disabled: n,
3436
- label: Y
3450
+ label: le
3437
3451
  }, /* @__PURE__ */ e.createElement("ul", {
3438
- className: `${V}__mobile-menu`,
3452
+ className: `${H}__mobile-menu`,
3439
3453
  role: "menu"
3440
- }, l.map((e, t) => re(e, t)))) : /* @__PURE__ */ e.createElement(e.Fragment, null, oe, /* @__PURE__ */ e.createElement(b, { id: P }, j && /* @__PURE__ */ e.createElement(S, null, ie(l)))));
3454
+ }, l.map((e, t) => re(e, t)))) : /* @__PURE__ */ e.createElement(e.Fragment, null, Y, /* @__PURE__ */ e.createElement(b, { id: P }, j && /* @__PURE__ */ e.createElement(S, null, ie(l)))));
3441
3455
  }, Xn = i(null), Zn = () => {
3442
3456
  let e = l(Xn);
3443
3457
  if (!e) throw Error("Dropdown sub-components must be used within a <Dropdown> provider.");
@@ -4281,32 +4295,32 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4281
4295
  className: `${r}__group-options`,
4282
4296
  role: "group"
4283
4297
  }, t));
4284
- }, wr = ({ autoWidth: t = !1, className: n, defaultValue: r, disabled: i, icon: a, id: o, inputWidth: s, inputWidthMin: c, label: l, labelStrings: d = {
4298
+ }, wr = ({ autoWidth: t = !1, className: n, defaultValue: r, disabled: i, footer: a, icon: o, id: s, inputWidth: c, inputWidthMin: l, label: d, labelStrings: f = {
4285
4299
  selectOptionText: "Select an option...",
4286
4300
  triggerButton: "Toggle dropdown menu"
4287
- }, message: f, onBlur: p, onFocus: m, onOptionSelect: h, options: _, required: v = !1, showLabel: y = !0, showSelectedIcon: b = !0, size: x = "s", tooltipText: C = null, validationMessage: w, validationStatus: T, value: E, ...D }) => {
4288
- let O = on(s, c), k = "pds-select", A = t ? `${k}--auto-width` : null, j = x === "s" ? null : `${k}--${x}`, M = i ? $.disabled : null, N = v && !i ? $.required : null, P = T === "error" ? $.error : null, F = T === "success" ? $.success : null, I = null;
4289
- T === "error" && (I = "error"), T === "success" && (I = "success");
4290
- let L = w || f, R = E !== void 0, z = r !== void 0, B = ((e) => e.reduce((e, t) => _n(t) ? [...e, ...t.options] : [...e, t], []))(_), ee = (e) => B.findIndex((t) => t.value === e), V = R && ee(E) >= 0 ? ee(E) : null, H = z ? ee(r) : null, [U, W] = g((V || H) ?? null), { activeIndex: G, floatingStyles: K, getFloatingProps: q, getItemProps: te, getReferenceProps: J, isMounted: ne, listRef: re, refs: ie, setIsOpen: ae, transitionStyles: oe } = In({
4301
+ }, message: p, onBlur: m, onFocus: h, onOptionSelect: _, options: v, required: y = !1, showLabel: b = !0, showSelectedIcon: x = !0, size: C = "s", tooltipText: w = null, validationMessage: T, validationStatus: E, value: D, ...O }) => {
4302
+ let k = on(c, l), A = "pds-select", j = t ? `${A}--auto-width` : null, M = C === "s" ? null : `${A}--${C}`, N = i ? $.disabled : null, P = y && !i ? $.required : null, F = E === "error" ? $.error : null, I = E === "success" ? $.success : null, L = null;
4303
+ E === "error" && (L = "error"), E === "success" && (L = "success");
4304
+ let R = T || p, z = D !== void 0, B = r !== void 0, V = ((e) => e.reduce((e, t) => _n(t) ? [...e, ...t.options] : [...e, t], []))(v), H = (e) => V.findIndex((t) => t.value === e), U = z && H(D) >= 0 ? H(D) : null, ee = B ? H(r) : null, [W, G] = g((U || ee) ?? null), { activeIndex: K, floatingStyles: q, getFloatingProps: te, getItemProps: J, getReferenceProps: ne, isMounted: re, listRef: ie, refs: ae, setIsOpen: Y, transitionStyles: oe } = In({
4291
4305
  enableClick: !i,
4292
4306
  enableTypeahead: !0,
4293
4307
  role: "listbox",
4294
- selectedIndex: U,
4308
+ selectedIndex: W,
4295
4309
  variant: "input"
4296
- }), se = Bn("var(--pds-z-index-dropdown)"), ce = U === null ? void 0 : B[U]?.label, le = U === null ? void 0 : B[U]?.icon, Y = U === null ? void 0 : B[U]?.value, ue = (e) => {
4297
- let t = B[e];
4298
- R || (W(e), ae(!1)), h && h(t);
4310
+ }), se = Bn("var(--pds-z-index-dropdown)"), ce = W === null ? void 0 : V[W]?.label, le = W === null ? void 0 : V[W]?.icon, ue = W === null ? void 0 : V[W]?.value, de = (e) => {
4311
+ let t = V[e];
4312
+ z || (G(e), Y(!1)), _ && _(t);
4299
4313
  };
4300
4314
  u(() => {
4301
- R && (W(ee(E)), ae(!1));
4302
- }, [E]);
4303
- let de = () => {
4304
- p && p(Y);
4305
- }, fe = () => {
4306
- m && m(Y);
4315
+ z && (G(H(D)), Y(!1));
4316
+ }, [D]);
4317
+ let fe = () => {
4318
+ m && m(ue);
4307
4319
  }, pe = () => {
4308
- ie.reference.current.focus();
4309
- }, me = (t, n) => t === "google" || t === "microsoft" ? /* @__PURE__ */ e.createElement(pr, {
4320
+ h && h(ue);
4321
+ }, me = () => {
4322
+ ae.reference.current.focus();
4323
+ }, he = (t, n) => t === "google" || t === "microsoft" ? /* @__PURE__ */ e.createElement(pr, {
4310
4324
  className: n,
4311
4325
  platformType: t,
4312
4326
  size: "m"
@@ -4314,7 +4328,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4314
4328
  className: n,
4315
4329
  iconName: t,
4316
4330
  size: "m"
4317
- }), he = (t) => {
4331
+ }), ge = (t) => {
4318
4332
  let n = 0;
4319
4333
  return t.map((t) => {
4320
4334
  if (_n(t)) {
@@ -4323,20 +4337,20 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4323
4337
  return /* @__PURE__ */ e.createElement(vn, {
4324
4338
  key: r,
4325
4339
  ref: (e) => {
4326
- re.current[r] = e;
4340
+ ie.current[r] = e;
4327
4341
  },
4328
4342
  "aria-disabled": t?.disabled,
4329
- "aria-selected": r === U && r === G,
4330
- tabIndex: r === G ? 0 : -1,
4331
- ...!t?.disabled && te({
4343
+ "aria-selected": r === W && r === K,
4344
+ tabIndex: r === K ? 0 : -1,
4345
+ ...!t?.disabled && J({
4332
4346
  onClick() {
4333
- ue(r);
4347
+ de(r);
4334
4348
  },
4335
4349
  onKeyDown(e) {
4336
- e.key === "Enter" && (e.preventDefault(), ue(r), ie.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ie.reference.current.focus());
4350
+ e.key === "Enter" && (e.preventDefault(), de(r), ae.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ae.reference.current.focus());
4337
4351
  }
4338
4352
  })
4339
- }, /* @__PURE__ */ e.createElement("span", { className: `${k}__option-label` }, t.icon && me(t.icon, `${k}__option-icon`), t.label), b && U === r && /* @__PURE__ */ e.createElement(cr, null));
4353
+ }, /* @__PURE__ */ e.createElement("span", { className: `${A}__option-label` }, t.icon && he(t.icon, `${A}__option-icon`), t.label), x && W === r && /* @__PURE__ */ e.createElement(cr, null));
4340
4354
  });
4341
4355
  return /* @__PURE__ */ e.createElement(Cr, {
4342
4356
  key: t.groupLabel,
@@ -4347,84 +4361,87 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4347
4361
  return /* @__PURE__ */ e.createElement(vn, {
4348
4362
  key: r,
4349
4363
  ref: (e) => {
4350
- re.current[r] = e;
4364
+ ie.current[r] = e;
4351
4365
  },
4352
4366
  "aria-disabled": t?.disabled,
4353
- "aria-selected": r === U && r === G,
4354
- tabIndex: r === G ? 0 : -1,
4355
- ...!t?.disabled && te({
4367
+ "aria-selected": r === W && r === K,
4368
+ tabIndex: r === K ? 0 : -1,
4369
+ ...!t?.disabled && J({
4356
4370
  onClick() {
4357
- ue(r);
4371
+ de(r);
4358
4372
  },
4359
4373
  onKeyDown(e) {
4360
- e.key === "Enter" && (e.preventDefault(), ue(r), ie.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ie.reference.current.focus());
4374
+ e.key === "Enter" && (e.preventDefault(), de(r), ae.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ae.reference.current.focus());
4361
4375
  }
4362
4376
  })
4363
- }, /* @__PURE__ */ e.createElement("span", { className: `${k}__option-label` }, t.icon && me(t.icon, `${k}__option-icon`), t.label), b && U === r && /* @__PURE__ */ e.createElement(cr, null));
4377
+ }, /* @__PURE__ */ e.createElement("span", { className: `${A}__option-label` }, t.icon && he(t.icon, `${A}__option-icon`), t.label), x && W === r && /* @__PURE__ */ e.createElement(cr, null));
4364
4378
  });
4365
4379
  };
4366
4380
  return /* @__PURE__ */ e.createElement("div", {
4367
4381
  className: Z([
4368
4382
  $.base,
4369
- k,
4370
4383
  A,
4371
4384
  j,
4372
4385
  M,
4373
4386
  N,
4374
4387
  P,
4375
4388
  F,
4389
+ I,
4376
4390
  n ?? ""
4377
4391
  ]),
4378
- style: s ? O : null,
4379
- ...D
4380
- }, t && !s && /* @__PURE__ */ e.createElement("div", {
4392
+ style: c ? k : null,
4393
+ ...O
4394
+ }, t && !c && /* @__PURE__ */ e.createElement("div", {
4381
4395
  "aria-hidden": "true",
4382
- className: `${k}__sizer`
4383
- }, B.map((t) => /* @__PURE__ */ e.createElement("span", {
4396
+ className: `${A}__sizer`
4397
+ }, V.map((t) => /* @__PURE__ */ e.createElement("span", {
4384
4398
  key: t.value,
4385
- className: `${k}__input-wrapper`
4386
- }, T !== void 0 && /* @__PURE__ */ e.createElement(fn, { variant: "error" }), /* @__PURE__ */ e.createElement("span", { className: `${k}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${k}__option-text` }, t.icon && me(t.icon, `${k}__icon`), t.label), /* @__PURE__ */ e.createElement(Q, {
4387
- className: `${k}__trigger-icon`,
4399
+ className: `${A}__input-wrapper`
4400
+ }, E !== void 0 && /* @__PURE__ */ e.createElement(fn, { variant: "error" }), /* @__PURE__ */ e.createElement("span", { className: `${A}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${A}__option-text` }, t.icon && he(t.icon, `${A}__icon`), t.label), /* @__PURE__ */ e.createElement(Q, {
4401
+ className: `${A}__trigger-icon`,
4388
4402
  iconName: "angleDown"
4389
4403
  }))))), /* @__PURE__ */ e.createElement(ln, {
4390
4404
  disabled: i,
4391
- id: o,
4392
- label: l,
4393
- required: v,
4394
- showLabel: y,
4395
- tooltipText: C
4405
+ id: s,
4406
+ label: d,
4407
+ required: y,
4408
+ showLabel: b,
4409
+ tooltipText: w
4396
4410
  }), /* @__PURE__ */ e.createElement("span", {
4397
- ref: ie.setReference,
4411
+ ref: ae.setReference,
4398
4412
  "aria-autocomplete": "none",
4399
- "aria-labelledby": `${o}-label`,
4400
- className: `${k}__input-wrapper`,
4401
- id: o,
4413
+ "aria-labelledby": `${s}-label`,
4414
+ className: `${A}__input-wrapper`,
4415
+ id: s,
4402
4416
  tabIndex: 0,
4403
- ...J({
4404
- onClick: pe,
4405
- onBlur: de,
4406
- onFocus: fe
4417
+ ...ne({
4418
+ onClick: me,
4419
+ onBlur: fe,
4420
+ onFocus: pe
4407
4421
  })
4408
- }, I && /* @__PURE__ */ e.createElement(fn, { variant: I }), /* @__PURE__ */ e.createElement("span", { className: `${k}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${k}__option-text` }, (le || !ce && a) && me(le || a, `${k}__icon`), /* @__PURE__ */ e.createElement("span", { className: `${k}__option-label-text` }, ce ?? d.selectOptionText)), /* @__PURE__ */ e.createElement(Q, {
4409
- className: `${k}__trigger-icon`,
4422
+ }, L && /* @__PURE__ */ e.createElement(fn, { 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, {
4423
+ className: `${A}__trigger-icon`,
4410
4424
  iconName: "angleDown"
4411
- }))), ne && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
4412
- ref: ie.setFloating,
4413
- className: `pds-dropdown__panel ${k}__dropdown`,
4425
+ }))), re && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
4426
+ ref: ae.setFloating,
4427
+ className: `pds-dropdown__panel ${A}__dropdown ${a ? `${A}__dropdown--has-footer` : ""}`,
4414
4428
  style: {
4415
- ...K,
4429
+ ...q,
4416
4430
  zIndex: se
4417
4431
  },
4418
- ...q()
4432
+ ...te()
4419
4433
  }, /* @__PURE__ */ e.createElement("div", { style: { ...oe } }, /* @__PURE__ */ e.createElement("ul", {
4420
- className: `${k}__options`,
4434
+ className: `${A}__options`,
4421
4435
  role: "group"
4422
- }, he(_))))), L && /* @__PURE__ */ e.createElement(un, {
4423
- hasValidationMessage: !!w,
4424
- id: o,
4425
- message: L,
4436
+ }, ge(v), a && /* @__PURE__ */ e.createElement("li", {
4437
+ className: "pds-dropdown__footer",
4438
+ role: "presentation"
4439
+ }, a))))), R && /* @__PURE__ */ e.createElement(un, {
4440
+ hasValidationMessage: !!T,
4441
+ id: s,
4442
+ message: R,
4426
4443
  validationMessageHasDecorators: !1,
4427
- validationStatus: T
4444
+ validationStatus: E
4428
4445
  }));
4429
4446
  }, Tr = {
4430
4447
  "sequential-blue": 2,
@@ -4728,7 +4745,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4728
4745
  let t = Math.abs(e);
4729
4746
  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);
4730
4747
  }, Hr = ({ barRadius: t = 2, chartHeight: n, chartWidth: r, className: i, colorPalette: a = "categorical", data: o = [], isLoading: s = !1, isThumbnail: l = !1, labelStrings: d = {}, layout: f = "horizontal", legendVariant: p = "inline", onTimePeriodChange: m, selectedTimePeriod: _, series: v = [], showAccessibleTable: y, showAxisLines: b, showGrid: x, showLegend: S, showTooltip: C, timePeriodOptions: w, tooltipContent: O, variant: A = "stacked", xAxisLabel: j, xAxisTickInterval: M, yAxisDomain: P, yAxisFormatter: F = Vr, yAxisLabel: I, yAxisTickInterval: L, ...R }) => {
4731
- let { accessibleTableDescription: z = "Bar chart data", emptyStateHeading: B = "No data available", emptyStateMessage: ee, legendTableHeader: V, loadingLabel: U = "Loading chart data" } = d, W = h(null), te = Er(a, Mr(W, a)), J = n ?? (l ? 60 : 360), ne = r ?? (l ? 60 : void 0), re = x ?? !l, ie = b ?? !l, oe = S ?? !l, ue = C ?? !l, de = y ?? !0, [fe, pe] = g(null), me = h(fe);
4748
+ let { accessibleTableDescription: z = "Bar chart data", emptyStateHeading: B = "No data available", emptyStateMessage: V, legendTableHeader: H, loadingLabel: ee = "Loading chart data" } = d, W = h(null), te = Er(a, Mr(W, a)), J = n ?? (l ? 60 : 360), ne = r ?? (l ? 60 : void 0), re = x ?? !l, ie = b ?? !l, Y = S ?? !l, ue = C ?? !l, de = y ?? !0, [fe, pe] = g(null), me = h(fe);
4732
4749
  fe && (me.current = fe);
4733
4750
  let he = h({ getBoundingClientRect: () => ({
4734
4751
  bottom: 0,
@@ -4748,7 +4765,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4748
4765
  open: !!fe,
4749
4766
  placement: "top",
4750
4767
  whileElementsMounted: T
4751
- }), { isMounted: ye, styles: be } = H(ge, {
4768
+ }), { isMounted: ye, styles: be } = U(ge, {
4752
4769
  duration: {
4753
4770
  close: 150,
4754
4771
  open: 150
@@ -4778,7 +4795,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4778
4795
  if (s) return /* @__PURE__ */ e.createElement("div", {
4779
4796
  ref: W,
4780
4797
  "aria-busy": "true",
4781
- "aria-label": U,
4798
+ "aria-label": ee,
4782
4799
  className: Z([
4783
4800
  xe,
4784
4801
  `${xe}--loading`,
@@ -4789,7 +4806,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4789
4806
  }, /* @__PURE__ */ e.createElement(Br, {
4790
4807
  height: J,
4791
4808
  legendVariant: p,
4792
- showLegend: oe
4809
+ showLegend: Y
4793
4810
  }));
4794
4811
  if (!o || o.length === 0) return /* @__PURE__ */ e.createElement("div", {
4795
4812
  ref: W,
@@ -4805,7 +4822,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4805
4822
  ...R
4806
4823
  }, /* @__PURE__ */ e.createElement(Sr, {
4807
4824
  heading: B,
4808
- message: ee
4825
+ message: V
4809
4826
  }));
4810
4827
  let Te = f === "vertical", Ee = (e) => A === "grouped" || A === "stacked" && e === v.length - 1 ? Te ? [
4811
4828
  0,
@@ -4880,7 +4897,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4880
4897
  contain: "layout size",
4881
4898
  height: J
4882
4899
  }
4883
- }, /* @__PURE__ */ e.createElement(se, {
4900
+ }, /* @__PURE__ */ e.createElement(oe, {
4884
4901
  debounce: 150,
4885
4902
  height: J,
4886
4903
  minHeight: J,
@@ -4908,7 +4925,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4908
4925
  stroke: "var(--pds-color-border-default)",
4909
4926
  strokeDasharray: "3 3",
4910
4927
  vertical: Te
4911
- }), /* @__PURE__ */ e.createElement(le, {
4928
+ }), /* @__PURE__ */ e.createElement(ce, {
4912
4929
  axisLine: ie,
4913
4930
  dataKey: Te ? void 0 : "label",
4914
4931
  hide: !ie,
@@ -4925,7 +4942,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4925
4942
  tickLine: !1,
4926
4943
  tickMargin: 10,
4927
4944
  type: Te ? "number" : "category"
4928
- }), /* @__PURE__ */ e.createElement(Y, {
4945
+ }), /* @__PURE__ */ e.createElement(le, {
4929
4946
  axisLine: ie,
4930
4947
  dataKey: Te ? "label" : void 0,
4931
4948
  domain: P,
@@ -4944,7 +4961,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4944
4961
  tickLine: !1,
4945
4962
  tickMargin: 6,
4946
4963
  type: Te ? "category" : "number"
4947
- }), ue && O && /* @__PURE__ */ e.createElement(ce, {
4964
+ }), ue && O && /* @__PURE__ */ e.createElement(se, {
4948
4965
  content: (e) => !e.active || !e.payload?.length ? null : O({
4949
4966
  entries: e.payload.map((e) => ({
4950
4967
  color: String(e.color ?? ""),
@@ -4986,12 +5003,12 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4986
5003
  }, /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-label" }, me.current.label), /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-item" }, /* @__PURE__ */ e.createElement("span", {
4987
5004
  className: "recharts-tooltip-item__color",
4988
5005
  style: { backgroundColor: me.current.color }
4989
- }), /* @__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)))), oe && /* @__PURE__ */ e.createElement(Ir, {
5006
+ }), /* @__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(Ir, {
4990
5007
  ariaHidden: p === "table" && de,
4991
5008
  data: o,
4992
5009
  series: v,
4993
5010
  seriesColors: te,
4994
- tableHeader: V,
5011
+ tableHeader: H,
4995
5012
  valueFormatter: F,
4996
5013
  variant: p
4997
5014
  }), de && /* @__PURE__ */ e.createElement(Fr, {
@@ -5006,7 +5023,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5006
5023
  default: return;
5007
5024
  }
5008
5025
  }, Wr = ({ 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: g = [], showAccessibleTable: _, showAxisLines: v, showDataPoints: y, showGrid: b, showLegend: x, showTooltip: S, timePeriodOptions: C, tooltipContent: w, xAxisLabel: T, xAxisTickInterval: E, yAxisDomain: D, yAxisFormatter: O = Vr, yAxisLabel: k, yAxisTickInterval: A, ...j }) => {
5009
- let { accessibleTableDescription: M = "Line chart data", emptyStateHeading: N = "No data available", emptyStateMessage: P, legendTableHeader: F, loadingLabel: I = "Loading chart data" } = l, L = h(null), R = Er(a, Mr(L, a)), z = n ?? (c ? 60 : 360), B = r ?? (c ? 60 : void 0), ee = b ?? !c, V = v ?? !c, H = x ?? !c, U = S ?? !c, W = y ?? !c, G = _ ?? !0, K = "pds-line-chart";
5026
+ let { accessibleTableDescription: M = "Line chart data", emptyStateHeading: N = "No data available", emptyStateMessage: P, legendTableHeader: F, loadingLabel: I = "Loading chart data" } = l, L = h(null), R = Er(a, Mr(L, a)), z = n ?? (c ? 60 : 360), B = r ?? (c ? 60 : void 0), V = b ?? !c, H = v ?? !c, U = x ?? !c, ee = S ?? !c, W = y ?? !c, G = _ ?? !0, K = "pds-line-chart";
5010
5027
  return s ? /* @__PURE__ */ e.createElement("div", {
5011
5028
  ref: L,
5012
5029
  "aria-busy": "true",
@@ -5021,7 +5038,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5021
5038
  }, /* @__PURE__ */ e.createElement(Br, {
5022
5039
  height: z,
5023
5040
  legendVariant: u,
5024
- showLegend: H
5041
+ showLegend: U
5025
5042
  })) : !o || o.length === 0 ? /* @__PURE__ */ e.createElement("div", {
5026
5043
  ref: L,
5027
5044
  className: Z([
@@ -5059,7 +5076,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5059
5076
  contain: "layout size",
5060
5077
  height: z
5061
5078
  }
5062
- }, /* @__PURE__ */ e.createElement(se, {
5079
+ }, /* @__PURE__ */ e.createElement(oe, {
5063
5080
  debounce: 150,
5064
5081
  height: z,
5065
5082
  minHeight: z,
@@ -5079,40 +5096,40 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5079
5096
  right: 4,
5080
5097
  top: 20
5081
5098
  }
5082
- }, ee && /* @__PURE__ */ e.createElement(q, {
5099
+ }, V && /* @__PURE__ */ e.createElement(q, {
5083
5100
  stroke: "var(--pds-color-border-default)",
5084
5101
  strokeDasharray: "3 3"
5085
- }), /* @__PURE__ */ e.createElement(le, {
5086
- axisLine: V,
5102
+ }), /* @__PURE__ */ e.createElement(ce, {
5103
+ axisLine: H,
5087
5104
  dataKey: "label",
5088
- hide: !V,
5105
+ hide: !H,
5089
5106
  interval: E,
5090
- label: T && V ? {
5107
+ label: T && H ? {
5091
5108
  ...Pr,
5092
5109
  offset: -15,
5093
5110
  position: "insideBottom",
5094
5111
  value: T
5095
5112
  } : void 0,
5096
- tick: V ? Nr : !1,
5113
+ tick: H ? Nr : !1,
5097
5114
  tickLine: !1,
5098
5115
  tickMargin: 10
5099
- }), /* @__PURE__ */ e.createElement(Y, {
5100
- axisLine: V,
5116
+ }), /* @__PURE__ */ e.createElement(le, {
5117
+ axisLine: H,
5101
5118
  domain: D,
5102
- hide: !V,
5119
+ hide: !H,
5103
5120
  interval: A,
5104
- label: k && V ? {
5121
+ label: k && H ? {
5105
5122
  ...Pr,
5106
5123
  angle: -90,
5107
5124
  dx: -44,
5108
5125
  position: "center",
5109
5126
  value: k
5110
5127
  } : void 0,
5111
- tick: V ? Nr : !1,
5128
+ tick: H ? Nr : !1,
5112
5129
  tickFormatter: O,
5113
5130
  tickLine: !1,
5114
5131
  tickMargin: 6
5115
- }), U && /* @__PURE__ */ e.createElement(ce, { content: (t) => {
5132
+ }), ee && /* @__PURE__ */ e.createElement(se, { content: (t) => {
5116
5133
  if (!t.active || !t.payload?.length) return null;
5117
5134
  let n = t.payload.map((e) => ({
5118
5135
  color: String(e.color ?? ""),
@@ -5146,7 +5163,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5146
5163
  type: d === "straight" ? "linear" : "monotone"
5147
5164
  })), !c && p?.map((t, n) => {
5148
5165
  let r = t.color ?? "var(--pds-color-foreground-default-secondary)";
5149
- return /* @__PURE__ */ e.createElement(oe, {
5166
+ return /* @__PURE__ */ e.createElement(Y, {
5150
5167
  key: `ref-y-${n}`,
5151
5168
  label: ({ viewBox: n }) => {
5152
5169
  let r = (n?.x ?? 0) + (n?.width ?? 0) / 2, i = (n?.y ?? 0) - 8;
@@ -5166,7 +5183,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5166
5183
  });
5167
5184
  }), !c && t?.map((t, n) => {
5168
5185
  let r = t.color ?? "var(--pds-color-foreground-default-secondary)";
5169
- return /* @__PURE__ */ e.createElement(oe, {
5186
+ return /* @__PURE__ */ e.createElement(Y, {
5170
5187
  key: `annotation-${n}`,
5171
5188
  label: ({ viewBox: n }) => {
5172
5189
  let r = (n?.x ?? 0) + (n?.width ?? 0) / 2, i = (n?.y ?? 0) - 8;
@@ -5184,7 +5201,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5184
5201
  strokeDasharray: Ur(t.strokeStyle ?? "dashed"),
5185
5202
  x: t.atLabel
5186
5203
  });
5187
- })))), H && /* @__PURE__ */ e.createElement(Ir, {
5204
+ })))), U && /* @__PURE__ */ e.createElement(Ir, {
5188
5205
  ariaHidden: u === "table" && G,
5189
5206
  data: o,
5190
5207
  series: g,
@@ -5275,7 +5292,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5275
5292
  margin: "0 auto",
5276
5293
  width: `min(100%, ${w}px)`
5277
5294
  }
5278
- }, /* @__PURE__ */ e.createElement(se, {
5295
+ }, /* @__PURE__ */ e.createElement(oe, {
5279
5296
  debounce: 150,
5280
5297
  height: w,
5281
5298
  minHeight: w,
@@ -5293,7 +5310,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5293
5310
  }, a.map((t, n) => /* @__PURE__ */ e.createElement(te, {
5294
5311
  key: t.label,
5295
5312
  fill: k(n, t)
5296
- }))), D && /* @__PURE__ */ e.createElement(ce, {
5313
+ }))), D && /* @__PURE__ */ e.createElement(se, {
5297
5314
  content: (t) => {
5298
5315
  if (!t.active || !t.payload?.length) return null;
5299
5316
  let n = t.payload[0], r = Number(n.value ?? 0), i = O > 0 ? Math.round(r / O * 100) : 0, a = String(n.payload?.fill ?? "");
@@ -5340,7 +5357,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5340
5357
  width: 0,
5341
5358
  x: 0,
5342
5359
  y: 0
5343
- }) }), { context: B, floatingStyles: ee, refs: V, update: U } = N({
5360
+ }) }), { context: B, floatingStyles: V, refs: H, update: ee } = N({
5344
5361
  middleware: [
5345
5362
  D(8),
5346
5363
  E(),
@@ -5349,7 +5366,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5349
5366
  open: !!I,
5350
5367
  placement: "top",
5351
5368
  whileElementsMounted: T
5352
- }), { isMounted: W, styles: G } = H(B, {
5369
+ }), { isMounted: W, styles: G } = U(B, {
5353
5370
  duration: {
5354
5371
  close: 150,
5355
5372
  open: 150
@@ -5357,8 +5374,8 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5357
5374
  initial: { opacity: 0 }
5358
5375
  });
5359
5376
  u(() => {
5360
- V.setReference(z.current);
5361
- }, [V]);
5377
+ H.setReference(z.current);
5378
+ }, [H]);
5362
5379
  let K = c((e) => {
5363
5380
  z.current.getBoundingClientRect = () => ({
5364
5381
  bottom: e.clientY,
@@ -5369,8 +5386,8 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5369
5386
  width: 0,
5370
5387
  x: e.clientX,
5371
5388
  y: e.clientY
5372
- }), U();
5373
- }, [U]), q = c(() => {
5389
+ }), ee();
5390
+ }, [ee]), q = c(() => {
5374
5391
  L(null);
5375
5392
  }, []);
5376
5393
  return o ? /* @__PURE__ */ e.createElement("div", {
@@ -5428,11 +5445,11 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5428
5445
  }
5429
5446
  });
5430
5447
  })), M && W && R.current && /* @__PURE__ */ e.createElement("div", {
5431
- ref: V.setFloating,
5448
+ ref: H.setFloating,
5432
5449
  className: "recharts-default-tooltip",
5433
5450
  role: "tooltip",
5434
5451
  style: {
5435
- ...ee,
5452
+ ...V,
5436
5453
  ...G,
5437
5454
  pointerEvents: "none",
5438
5455
  zIndex: "var(--pds-z-index-notifications)"
@@ -7031,7 +7048,7 @@ var Zr = {
7031
7048
  }, fi = o(({ checked: t, className: n, defaultChecked: r, disabled: i, id: a, indeterminate: o, inputProps: s, inputWidth: l, inputWidthMin: u, label: d, message: f, name: p, nestingLevel: m = 0, onBlur: h, onChange: _, onFocus: v, required: y, showLabel: b = !0, size: x = "s", validationMessage: S, validationStatus: C, value: w, ...T }, E) => {
7032
7049
  let D = on(l, u), O = "pds-checkbox", k = i ? $.disabled : null, A = C === "error" ? $.error : null, j = m > 0 ? `${O}--indent-${m}` : null, M = y && !i ? $.required : null, N = x === "s" ? null : `${O}--${x}`, P = C === "success" ? $.success : null, F = S || f, I = t !== void 0, [L, R] = g(r === void 0 ? !1 : r), z = t || L, B = (e) => {
7033
7050
  I || R(e.target.checked), _ && _(e);
7034
- }, ee = `${O}__box`, V = o ? null : z ? `${ee}--checked` : null, H = o ? `${ee}--indeterminate` : null, U = c(() => {
7051
+ }, V = `${O}__box`, H = o ? null : z ? `${V}--checked` : null, U = o ? `${V}--indeterminate` : null, ee = c(() => {
7035
7052
  if (o) return /* @__PURE__ */ e.createElement("svg", {
7036
7053
  "aria-hidden": "true",
7037
7054
  className: `${O}__icon ${O}__icon--indeterminate`,
@@ -7090,10 +7107,10 @@ var Zr = {
7090
7107
  className: `${O}__label`,
7091
7108
  htmlFor: a
7092
7109
  }, /* @__PURE__ */ e.createElement("div", { className: Z([
7093
- ee,
7094
7110
  V,
7095
- H
7096
- ]) }, /* @__PURE__ */ e.createElement(U, null)), /* @__PURE__ */ e.createElement("div", { className: Z([`${O}__label-text`, b ? "" : "visually-hidden"]) }, d, " ", y && !i && /* @__PURE__ */ e.createElement(cn, null)))), F && /* @__PURE__ */ e.createElement(un, {
7111
+ H,
7112
+ U
7113
+ ]) }, /* @__PURE__ */ e.createElement(ee, null)), /* @__PURE__ */ e.createElement("div", { className: Z([`${O}__label-text`, b ? "" : "visually-hidden"]) }, d, " ", y && !i && /* @__PURE__ */ e.createElement(cn, null)))), F && /* @__PURE__ */ e.createElement(un, {
7097
7114
  validationMessageHasDecorators: !0,
7098
7115
  hasValidationMessage: !!S,
7099
7116
  id: a,
@@ -7200,22 +7217,22 @@ var Zr = {
7200
7217
  message: O,
7201
7218
  validationStatus: b
7202
7219
  }));
7203
- }, hi = o(({ className: t, defaultValue: n, disabled: r = !1, hasClearButton: i = !0, hasDropdownTrigger: a = !1, hasSearchIcon: o = !0, hasSearchShortcut: s = !1, id: l, inputWidth: d, inputWidthMin: f, isLoading: p = !1, label: _, labelStrings: v = {
7220
+ }, hi = o(({ className: t, defaultValue: n, disabled: r = !1, footer: i, hasClearButton: a = !0, hasDropdownTrigger: o = !1, hasSearchIcon: s = !0, hasSearchShortcut: l = !1, id: d, inputWidth: f, inputWidthMin: p, isLoading: _ = !1, label: v, labelStrings: y = {
7204
7221
  clearButton: "Clear input text",
7205
7222
  inputInstructions: "Type to search options",
7206
7223
  searchShortcut: "Press / to focus the search field",
7207
7224
  triggerButton: "Toggle dropdown menu"
7208
- }, loadingText: y = "Loading results...", message: b, noResultsText: x = "No results found", onBlur: C, onChange: w, onClear: O, onFocus: k, onOptionSelect: j, options: M, placeholder: P, required: F = !1, showLabel: I = !0, showUnfilteredOptions: L = !1, size: R = "s", tooltipText: z = null, validationMessage: B, validationStatus: ee, value: V, ...U }, W) => {
7209
- let G = on(d, f), K = "pds-combobox", q = R === "s" ? null : `${K}--${R}`, te = r ? $.disabled : null, J = F && !r ? $.required : null, ne = ee === "error" ? $.error : null, re = ee === "success" ? $.success : null, ie = null;
7210
- o && (ie = "search"), ee === "error" && (ie = "error"), ee === "success" && (ie = "success");
7211
- let ae = B || b, oe = V !== void 0, se = n !== void 0, ce = (e) => {
7212
- let t = M.find((t) => t.value === e);
7225
+ }, loadingText: b = "Loading results...", message: x, noResultsText: C = "No results found", onBlur: w, onChange: O, onClear: k, onFocus: j, onOptionSelect: M, options: P, placeholder: F, required: I = !1, showLabel: L = !0, showUnfilteredOptions: R = !1, size: z = "s", tooltipText: B = null, validationMessage: V, validationStatus: H, value: ee, ...W }, G) => {
7226
+ let K = on(f, p), q = "pds-combobox", te = z === "s" ? null : `${q}--${z}`, J = r ? $.disabled : null, ne = I && !r ? $.required : null, re = H === "error" ? $.error : null, ie = H === "success" ? $.success : null, ae = null;
7227
+ s && (ae = "search"), H === "error" && (ae = "error"), H === "success" && (ae = "success");
7228
+ let Y = V || x, oe = ee !== void 0, se = n !== void 0, ce = (e) => {
7229
+ let t = P.find((t) => t.value === e);
7213
7230
  return t ? t.label : "";
7214
- }, [le, Y] = g(se ? n : void 0), [ue, de] = g(oe ? V ?? "" : se ? ce(n) : ""), pe = s && !ue;
7231
+ }, [le, ue] = g(se ? n : void 0), [de, pe] = g(oe ? ee ?? "" : se ? ce(n) : ""), me = l && !de;
7215
7232
  u(() => {
7216
- oe && de(V ?? "");
7217
- }, [oe, V]);
7218
- let me = h(null), he = (e) => e.map(({ label: e, optionDisplay: t, searchIndex: n, value: r, ...i }) => {
7233
+ oe && pe(ee ?? "");
7234
+ }, [oe, ee]);
7235
+ let he = h(null), ge = (e) => e.map(({ label: e, optionDisplay: t, searchIndex: n, value: r, ...i }) => {
7219
7236
  let a = r || e, o = [e, r];
7220
7237
  return n && o.push(...n), {
7221
7238
  label: e,
@@ -7224,27 +7241,27 @@ var Zr = {
7224
7241
  optionDisplay: t,
7225
7242
  ...i
7226
7243
  };
7227
- }), ge = m(() => {
7228
- let e = he(M);
7229
- if (!ue && !L) return [];
7230
- let t = (ue ?? "").toLowerCase();
7244
+ }), X = m(() => {
7245
+ let e = ge(P);
7246
+ if (!de && !R) return [];
7247
+ let t = (de ?? "").toLowerCase();
7231
7248
  return e.filter((e) => (e.searchIndex?.map((e) => e.toLowerCase()) ?? []).some((e) => e.includes(t)));
7232
7249
  }, [
7233
- M,
7234
- ue,
7235
- L,
7236
- p
7237
- ]), { getInputProps: X, getItemProps: _e, getMenuProps: ve, highlightedIndex: ye, isOpen: be, openMenu: xe, reset: Se } = fe({
7238
- id: l,
7239
- inputId: `input-${l}`,
7240
- items: ge,
7250
+ P,
7251
+ de,
7252
+ R,
7253
+ _
7254
+ ]), { getInputProps: _e, getItemProps: ve, getMenuProps: ye, highlightedIndex: be, isOpen: xe, openMenu: Se, reset: Ce } = fe({
7255
+ id: d,
7256
+ inputId: `input-${d}`,
7257
+ items: X,
7241
7258
  itemToString: (e) => e ? e.label : "",
7242
- inputValue: ue,
7259
+ inputValue: de,
7243
7260
  onInputValueChange: ({ inputValue: e }) => {
7244
- de(e ?? "");
7261
+ pe(e ?? "");
7245
7262
  },
7246
7263
  onSelectedItemChange: ({ selectedItem: e }) => {
7247
- e && (oe || de(e.label), Y(e.value), j?.(e));
7264
+ e && (oe || pe(e.label), ue(e.value), M?.(e));
7248
7265
  },
7249
7266
  stateReducer: (e, { changes: t, type: n }) => {
7250
7267
  if (n === fe.stateChangeTypes.InputBlur) return {
@@ -7252,7 +7269,7 @@ var Zr = {
7252
7269
  inputValue: e.inputValue
7253
7270
  };
7254
7271
  if (n === fe.stateChangeTypes.InputClick) {
7255
- if (L) return {
7272
+ if (R) return {
7256
7273
  ...t,
7257
7274
  isOpen: !0
7258
7275
  };
@@ -7263,8 +7280,8 @@ var Zr = {
7263
7280
  }
7264
7281
  return t;
7265
7282
  }
7266
- }), { context: Ce, floatingStyles: we, refs: Te } = N({
7267
- open: be,
7283
+ }), { context: we, floatingStyles: Te, refs: Ee } = N({
7284
+ open: xe,
7268
7285
  whileElementsMounted: T,
7269
7286
  placement: "bottom-start",
7270
7287
  strategy: "fixed",
@@ -7287,7 +7304,7 @@ var Zr = {
7287
7304
  }
7288
7305
  })
7289
7306
  ]
7290
- }), { isMounted: Ee, styles: De } = H(Ce, {
7307
+ }), { isMounted: De, styles: Oe } = U(we, {
7291
7308
  duration: {
7292
7309
  open: 300,
7293
7310
  close: 150
@@ -7295,103 +7312,106 @@ var Zr = {
7295
7312
  initial: { opacity: 0 },
7296
7313
  open: { opacity: 1 },
7297
7314
  close: { opacity: 0 }
7298
- }), Oe = Bn("var(--pds-z-index-dropdown)"), ke = c((e) => {
7299
- Te.setReference(e), typeof W == "function" ? W(e) : W && "current" in W && (W.current = e);
7300
- }, [W, Te]), Ae = () => {
7301
- be ? Se() : xe();
7302
- }, je = () => {
7303
- oe || de(""), Y(void 0), Se(), me.current?.focus(), L && xe(), O?.();
7304
- }, Me = (e) => {
7305
- C?.(le);
7315
+ }), ke = Bn("var(--pds-z-index-dropdown)"), Ae = c((e) => {
7316
+ Ee.setReference(e), typeof G == "function" ? G(e) : G && "current" in G && (G.current = e);
7317
+ }, [G, Ee]), je = () => {
7318
+ xe ? Ce() : Se();
7319
+ }, Me = () => {
7320
+ oe || pe(""), ue(void 0), Ce(), he.current?.focus(), R && Se(), k?.();
7306
7321
  }, Ne = (e) => {
7307
- L && xe(), k?.(le);
7308
- }, Pe = () => ge.map((t, n) => /* @__PURE__ */ e.createElement(vn, {
7322
+ w?.(le);
7323
+ }, Pe = (e) => {
7324
+ R && Se(), j?.(le);
7325
+ }, Fe = () => X.map((t, n) => /* @__PURE__ */ e.createElement(vn, {
7309
7326
  key: t.value,
7310
- className: ye === n ? "pds-dropdown__item--focused" : "",
7311
- ..._e({
7327
+ className: be === n ? "pds-dropdown__item--focused" : "",
7328
+ ...ve({
7312
7329
  item: t,
7313
7330
  index: n
7314
7331
  })
7315
- }, /* @__PURE__ */ e.createElement("span", { className: `${K}__option-label` }, t.optionDisplay || t.label)));
7332
+ }, /* @__PURE__ */ e.createElement("span", { className: `${q}__option-label` }, t.optionDisplay || t.label)));
7316
7333
  return /* @__PURE__ */ e.createElement("div", {
7317
7334
  className: Z([
7318
7335
  $.base,
7319
- K,
7320
7336
  q,
7321
7337
  te,
7322
7338
  J,
7323
7339
  ne,
7324
7340
  re,
7341
+ ie,
7325
7342
  t ?? ""
7326
7343
  ]),
7327
- style: d ? G : null,
7328
- ...U
7344
+ style: f ? K : null,
7345
+ ...W
7329
7346
  }, /* @__PURE__ */ e.createElement(ln, {
7330
7347
  disabled: r,
7331
- id: `input-${l}`,
7332
- label: _,
7333
- required: F,
7334
- showLabel: I,
7335
- tooltipText: z
7348
+ id: `input-${d}`,
7349
+ label: v,
7350
+ required: I,
7351
+ showLabel: L,
7352
+ tooltipText: B
7336
7353
  }), /* @__PURE__ */ e.createElement("span", {
7337
- ref: ke,
7338
- "aria-describedby": ae ? `${l}__message` : null,
7354
+ ref: Ae,
7355
+ "aria-describedby": Y ? `${d}__message` : null,
7339
7356
  "aria-disabled": r ? !0 : null,
7340
- "aria-invalid": ee === "error" ? !0 : null,
7341
- "aria-required": F ? !0 : null,
7342
- className: Z([`${K}__input-wrapper`, pe ? `${K}__input-wrapper--has-search-shortcut` : null]),
7343
- id: l
7344
- }, ie && /* @__PURE__ */ e.createElement(fn, { variant: ie }), /* @__PURE__ */ e.createElement("input", {
7345
- ref: me,
7357
+ "aria-invalid": H === "error" ? !0 : null,
7358
+ "aria-required": I ? !0 : null,
7359
+ className: Z([`${q}__input-wrapper`, me ? `${q}__input-wrapper--has-search-shortcut` : null]),
7360
+ id: d
7361
+ }, ae && /* @__PURE__ */ e.createElement(fn, { variant: ae }), /* @__PURE__ */ e.createElement("input", {
7362
+ ref: he,
7346
7363
  autoComplete: "off",
7347
- className: `${K}__input`,
7348
- id: `input-${l}`,
7349
- ...X({
7350
- "aria-label": v.inputInstructions,
7364
+ className: `${q}__input`,
7365
+ id: `input-${d}`,
7366
+ ..._e({
7367
+ "aria-label": y.inputInstructions,
7351
7368
  disabled: r,
7352
- placeholder: P,
7353
- onBlur: Me,
7369
+ placeholder: F,
7370
+ onBlur: Ne,
7354
7371
  onChange: (e) => {
7355
- w?.(e);
7372
+ O?.(e);
7356
7373
  },
7357
- onFocus: Ne
7374
+ onFocus: Pe
7358
7375
  })
7359
- }), ue && i && /* @__PURE__ */ e.createElement(mn, {
7360
- clearLabel: v.clearButton,
7361
- handleClearInput: je,
7362
- id: `input-${l}`
7363
- }), pe && /* @__PURE__ */ e.createElement(pn, {
7364
- inputId: `input-${l}`,
7365
- shortcutLabel: v.searchShortcut
7366
- }), a && /* @__PURE__ */ e.createElement("button", {
7367
- "aria-expanded": be,
7368
- "aria-label": v.triggerButton,
7369
- className: `${K}__trigger`,
7376
+ }), de && a && /* @__PURE__ */ e.createElement(mn, {
7377
+ clearLabel: y.clearButton,
7378
+ handleClearInput: Me,
7379
+ id: `input-${d}`
7380
+ }), me && /* @__PURE__ */ e.createElement(pn, {
7381
+ inputId: `input-${d}`,
7382
+ shortcutLabel: y.searchShortcut
7383
+ }), o && /* @__PURE__ */ e.createElement("button", {
7384
+ "aria-expanded": xe,
7385
+ "aria-label": y.triggerButton,
7386
+ className: `${q}__trigger`,
7370
7387
  disabled: r,
7371
- onClick: Ae,
7388
+ onClick: je,
7372
7389
  type: "button"
7373
7390
  }, /* @__PURE__ */ e.createElement(Q, {
7374
- className: `${K}__trigger-icon`,
7391
+ className: `${q}__trigger-icon`,
7375
7392
  iconName: "angleDown",
7376
7393
  size: "m"
7377
7394
  }))), /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
7378
- ref: Te.setFloating,
7379
- className: `pds-dropdown__panel ${K}__dropdown`,
7380
- style: Ee ? {
7381
- ...we,
7382
- ...De,
7383
- zIndex: Oe
7395
+ ref: Ee.setFloating,
7396
+ className: `pds-dropdown__panel ${q}__dropdown ${i ? `${q}__dropdown--has-footer` : ""}`,
7397
+ style: De ? {
7398
+ ...Te,
7399
+ ...Oe,
7400
+ zIndex: ke
7384
7401
  } : { display: "none" }
7385
- }, Ee && p && /* @__PURE__ */ e.createElement("div", { className: `${K}__loading` }, y), Ee && !p && ge.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, x), /* @__PURE__ */ e.createElement("ul", {
7386
- className: `${K}__options`,
7387
- ...ve(),
7388
- style: Ee && !p && ge.length > 0 ? void 0 : { display: "none" }
7389
- }, Ee && !p && Pe()))), ae && /* @__PURE__ */ e.createElement(un, {
7390
- hasValidationMessage: !!B,
7391
- id: l,
7392
- message: ae,
7402
+ }, De && _ && /* @__PURE__ */ e.createElement("div", { className: `${q}__loading` }, b), De && !_ && X.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, C), /* @__PURE__ */ e.createElement("ul", {
7403
+ className: `${q}__options`,
7404
+ ...ye(),
7405
+ style: De && (i || !_ && X.length > 0) ? void 0 : { display: "none" }
7406
+ }, De && !_ && Fe(), De && i && /* @__PURE__ */ e.createElement("li", {
7407
+ className: "pds-dropdown__footer",
7408
+ role: "presentation"
7409
+ }, i)))), Y && /* @__PURE__ */ e.createElement(un, {
7410
+ hasValidationMessage: !!V,
7411
+ id: d,
7412
+ message: Y,
7393
7413
  validationMessageHasDecorators: !1,
7394
- validationStatus: ee
7414
+ validationStatus: H
7395
7415
  }));
7396
7416
  }), gi = (e, t, n) => {
7397
7417
  let r = n.toLowerCase();
@@ -7399,41 +7419,41 @@ var Zr = {
7399
7419
  ...e,
7400
7420
  isAlreadySelected: t.some((t) => t.id === e.id)
7401
7421
  })).sort((e, t) => e.badge && !t.badge ? -1 : !e.badge && t.badge ? 1 : 0);
7402
- }, _i = ({ aiSuggestions: t, className: n, disabled: r = !1, id: i, initialSelectedItems: a = [], inputWidth: o, inputWidthMin: s, isLoading: c = !1, label: l = "Lorem ipsum dolor sit:", labelStrings: u = {
7422
+ }, _i = ({ aiSuggestions: t, className: n, disabled: r = !1, footer: i, id: a, initialSelectedItems: o = [], inputWidth: s, inputWidthMin: c, isLoading: l = !1, label: u = "Lorem ipsum dolor sit:", labelStrings: d = {
7403
7423
  aiBadgeLabel: "Suggested",
7404
7424
  aiPanelButton: "Show AI suggestions",
7405
7425
  aiPanelClose: "Close suggestions panel",
7406
7426
  aiPanelRefresh: "Refresh suggestions",
7407
7427
  inputInstructions: "Type to search options",
7408
7428
  triggerButton: "Toggle dropdown menu"
7409
- }, loadingText: d = "Loading results...", noResultsText: f = "No results found", onChange: p, options: _, placeholder: v = "Filter", required: y = !1, showAllTags: b = !1, showLabel: x = !0, size: C = "s", ...w }) => {
7410
- let O = on(o, s), k = "pds-combobox-multi", j = C === "s" ? null : `${k}--${C}`, P = r ? $.disabled : null, F = y && !r ? $.required : null, I = b ? `${k}--show-all-tags` : null, [L, R] = g(""), [B, V] = g(a), [H, U] = g(null), [W, G] = g(!1), K = m(() => gi(_, B, L), [
7411
- _,
7412
- B,
7413
- L
7414
- ]), q = m(() => t?.items?.map((e) => ({
7429
+ }, loadingText: f = "Loading results...", noResultsText: p = "No results found", onChange: _, options: v, placeholder: y = "Filter", required: b = !1, showAllTags: x = !1, showLabel: C = !0, size: w = "s", ...O }) => {
7430
+ let k = on(s, c), j = "pds-combobox-multi", P = w === "s" ? null : `${j}--${w}`, F = r ? $.disabled : null, I = b && !r ? $.required : null, L = x ? `${j}--show-all-tags` : null, [R, B] = g(""), [H, U] = g(o), [ee, W] = g(null), [G, K] = g(!1), q = m(() => gi(v, H, R), [
7431
+ v,
7432
+ H,
7433
+ R
7434
+ ]), te = m(() => t?.items?.map((e) => ({
7415
7435
  ...e,
7416
- isAlreadySelected: B.some((t) => t.id === e.id)
7417
- })) || [], [t?.items, B]), te = (e) => {
7418
- V(e), p?.(e);
7419
- }, { getDropdownProps: J, getSelectedItemProps: ne, removeSelectedItem: re } = pe({
7420
- selectedItems: B,
7436
+ isAlreadySelected: H.some((t) => t.id === e.id)
7437
+ })) || [], [t?.items, H]), J = (e) => {
7438
+ U(e), _?.(e);
7439
+ }, { getDropdownProps: ne, getSelectedItemProps: re, removeSelectedItem: ie } = pe({
7440
+ selectedItems: H,
7421
7441
  onStateChange: ({ selectedItems: e, type: t }) => {
7422
7442
  if (!r) switch (t) {
7423
7443
  case pe.stateChangeTypes.SelectedItemKeyDownBackspace:
7424
7444
  case pe.stateChangeTypes.SelectedItemKeyDownDelete:
7425
7445
  case pe.stateChangeTypes.DropdownKeyDownBackspace:
7426
7446
  case pe.stateChangeTypes.FunctionRemoveSelectedItem:
7427
- te(e || []);
7447
+ J(e || []);
7428
7448
  break;
7429
7449
  default: break;
7430
7450
  }
7431
7451
  }
7432
- }), { closeMenu: ie, getInputProps: ae, getItemProps: oe, getMenuProps: se, getToggleButtonProps: ce, highlightedIndex: le, isOpen: Y, openMenu: ue, selectedItem: de } = fe({
7433
- items: K,
7452
+ }), { closeMenu: ae, getInputProps: Y, getItemProps: oe, getMenuProps: se, getToggleButtonProps: ce, highlightedIndex: le, isOpen: ue, openMenu: de, selectedItem: me } = fe({
7453
+ items: q,
7434
7454
  itemToString: (e) => e ? e.label : "",
7435
7455
  selectedItem: null,
7436
- inputValue: L,
7456
+ inputValue: R,
7437
7457
  isOpen: r ? !1 : void 0,
7438
7458
  stateReducer: (e, { changes: t, type: n }) => {
7439
7459
  if (r) return e;
@@ -7452,20 +7472,20 @@ var Zr = {
7452
7472
  case fe.stateChangeTypes.InputKeyDownEnter:
7453
7473
  case fe.stateChangeTypes.ItemClick:
7454
7474
  case fe.stateChangeTypes.InputBlur:
7455
- n && (n.isAlreadySelected ? te(B.filter((e) => e.id !== n.id)) : te([...B, n]), R(""), U(null));
7475
+ n && (n.isAlreadySelected ? J(H.filter((e) => e.id !== n.id)) : J([...H, n]), B(""), W(null));
7456
7476
  break;
7457
7477
  case fe.stateChangeTypes.InputChange:
7458
- R(e || ""), U(null);
7478
+ B(e || ""), W(null);
7459
7479
  break;
7460
7480
  case fe.stateChangeTypes.ToggleButtonClick:
7461
7481
  case fe.stateChangeTypes.FunctionOpenMenu:
7462
- t && G(!1);
7482
+ t && K(!1);
7463
7483
  break;
7464
7484
  default: break;
7465
7485
  }
7466
7486
  }
7467
- }), { floatingStyles: me, refs: he } = N({
7468
- open: Y,
7487
+ }), { floatingStyles: he, refs: ge } = N({
7488
+ open: ue,
7469
7489
  whileElementsMounted: T,
7470
7490
  placement: "bottom-start",
7471
7491
  strategy: "fixed",
@@ -7487,9 +7507,9 @@ var Zr = {
7487
7507
  }
7488
7508
  })
7489
7509
  ]
7490
- }), { context: ge, floatingStyles: X, refs: _e } = N({
7491
- open: W,
7492
- onOpenChange: G,
7510
+ }), { context: X, floatingStyles: _e, refs: ve } = N({
7511
+ open: G,
7512
+ onOpenChange: K,
7493
7513
  whileElementsMounted: T,
7494
7514
  placement: "bottom-start",
7495
7515
  strategy: "fixed",
@@ -7500,78 +7520,78 @@ var Zr = {
7500
7520
  Object.assign(e.floating.style, { width: `${t.reference.width}px` });
7501
7521
  } })
7502
7522
  ]
7503
- }), { getFloatingProps: ve } = z([M(ge)]), ye = Bn("var(--pds-z-index-dropdown)"), be = (e) => {
7523
+ }), { getFloatingProps: ye } = z([M(X)]), be = Bn("var(--pds-z-index-dropdown)"), xe = (e) => {
7504
7524
  if (e.stopPropagation(), r) return;
7505
- let t = !W;
7506
- G(t), t && Y && ie();
7507
- }, xe = (e) => {
7508
- r || (e.isAlreadySelected ? te(B.filter((t) => t.id !== e.id)) : te([...B, e]));
7509
- }, Se = () => {
7510
- G(!1), t?.onClose?.();
7525
+ let t = !G;
7526
+ K(t), t && ue && ae();
7527
+ }, Se = (e) => {
7528
+ r || (e.isAlreadySelected ? J(H.filter((t) => t.id !== e.id)) : J([...H, e]));
7511
7529
  }, Ce = () => {
7512
- t?.onRefresh?.();
7530
+ K(!1), t?.onClose?.();
7513
7531
  }, we = () => {
7514
- if (H === null) U(B.length - 1);
7532
+ t?.onRefresh?.();
7533
+ }, Te = () => {
7534
+ if (ee === null) W(H.length - 1);
7515
7535
  else {
7516
- let e = [...B];
7517
- e.splice(H, 1), te(e), U(null);
7536
+ let e = [...H];
7537
+ e.splice(ee, 1), J(e), W(null);
7518
7538
  }
7519
- }, Te = h(!1), Ee = () => {
7520
- r || (Te.current ? ie() : ue());
7521
- }, De = (e) => {
7522
- Te.current = Y, !r && e.currentTarget.setAttribute("data-focus-method", "mouse");
7539
+ }, Ee = h(!1), De = () => {
7540
+ r || (Ee.current ? ae() : de());
7523
7541
  }, Oe = (e) => {
7524
- e.currentTarget.setAttribute("data-focus-method", "keyboard"), !r && ((e.key === "Backspace" || e.key === "Delete") && !L && B.length > 0 && (e.preventDefault(), we()), e.key === "Enter" && H !== null && (e.preventDefault(), we()), !Y && (e.key === "Enter" || e.key === "ArrowDown") && (e.preventDefault(), ue()));
7525
- }, ke = ae({
7526
- ...J({ preventKeyAction: Y }),
7542
+ Ee.current = ue, !r && e.currentTarget.setAttribute("data-focus-method", "mouse");
7543
+ }, ke = (e) => {
7544
+ e.currentTarget.setAttribute("data-focus-method", "keyboard"), !r && ((e.key === "Backspace" || e.key === "Delete") && !R && H.length > 0 && (e.preventDefault(), Te()), e.key === "Enter" && ee !== null && (e.preventDefault(), Te()), !ue && (e.key === "Enter" || e.key === "ArrowDown") && (e.preventDefault(), de()));
7545
+ }, Ae = Y({
7546
+ ...ne({ preventKeyAction: ue }),
7527
7547
  disabled: r,
7528
- onKeyDown: Oe
7529
- }), Ae = B.length === 2 ? /* @__PURE__ */ e.createElement("span", { className: `${k}__counter-item` }, B.length - 1) : B.length === 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${k}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${k}__counter-item` }, B.length - 1)) : B.length > 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${k}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${k}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${k}__counter-item` }, B.length - 1)) : "", je = J(), Me = ee([je.ref, he.setFloating]);
7548
+ onKeyDown: ke
7549
+ }), je = H.length === 2 ? /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-item` }, H.length - 1) : H.length === 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-item` }, H.length - 1)) : H.length > 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-item` }, H.length - 1)) : "", Me = ne(), Ne = V([Me.ref, ge.setFloating]);
7530
7550
  return /* @__PURE__ */ e.createElement("div", {
7531
7551
  className: Z([
7532
7552
  $.base,
7533
- k,
7534
7553
  j,
7535
7554
  P,
7536
7555
  F,
7537
7556
  I,
7557
+ L,
7538
7558
  n ?? ""
7539
7559
  ]),
7540
- style: o ? O : null,
7541
- ...w
7560
+ style: s ? k : null,
7561
+ ...O
7542
7562
  }, /* @__PURE__ */ e.createElement(ln, {
7543
7563
  disabled: r,
7544
- id: i,
7545
- label: l,
7546
- required: y,
7547
- showLabel: x
7564
+ id: a,
7565
+ label: u,
7566
+ required: b,
7567
+ showLabel: C
7548
7568
  }), /* @__PURE__ */ e.createElement("div", {
7549
7569
  ref: (e) => {
7550
- he.setReference(e), _e.setReference(e);
7570
+ ge.setReference(e), ve.setReference(e);
7551
7571
  },
7552
7572
  "aria-disabled": r ? !0 : null,
7553
- "aria-required": y ? !0 : null,
7554
- className: `${k}__input-wrapper`,
7555
- onClick: Ee,
7556
- onKeyDown: Oe,
7557
- onMouseDown: De,
7573
+ "aria-required": b ? !0 : null,
7574
+ className: `${j}__input-wrapper`,
7575
+ onClick: De,
7576
+ onKeyDown: ke,
7577
+ onMouseDown: Oe,
7558
7578
  tabIndex: r ? -1 : 0
7559
- }, B.length > 1 && !b && /* @__PURE__ */ e.createElement("div", { className: `${k}__counter` }, /* @__PURE__ */ e.createElement("span", { className: `${k}__counter-wrapper` }, Ae)), B.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${k}__items-wrapper` }, B.map((t, n) => /* @__PURE__ */ e.createElement("span", {
7579
+ }, H.length > 1 && !x && /* @__PURE__ */ e.createElement("div", { className: `${j}__counter` }, /* @__PURE__ */ e.createElement("span", { className: `${j}__counter-wrapper` }, je)), H.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${j}__items-wrapper` }, H.map((t, n) => /* @__PURE__ */ e.createElement("span", {
7560
7580
  key: `selected-item-${n}`,
7561
7581
  className: `
7562
- ${k}__selected-item
7563
- ${n === H ? `${k}__selected-item--marked-for-deletion` : ""}
7582
+ ${j}__selected-item
7583
+ ${n === ee ? `${j}__selected-item--marked-for-deletion` : ""}
7564
7584
  `,
7565
- ...ne({
7585
+ ...re({
7566
7586
  selectedItem: t,
7567
7587
  index: n
7568
7588
  }),
7569
7589
  tabIndex: -1
7570
- }, /* @__PURE__ */ e.createElement("span", { className: `${k}__selected-item-text` }, t.label), /* @__PURE__ */ e.createElement("button", {
7590
+ }, /* @__PURE__ */ e.createElement("span", { className: `${j}__selected-item-text` }, t.label), /* @__PURE__ */ e.createElement("button", {
7571
7591
  "aria-label": `Remove ${t.label}`,
7572
- className: `${k}__selected-item-remove`,
7592
+ className: `${j}__selected-item-remove`,
7573
7593
  onClick: (e) => {
7574
- e.stopPropagation(), re(t);
7594
+ e.stopPropagation(), ie(t);
7575
7595
  },
7576
7596
  onKeyDown: (e) => {
7577
7597
  (e.key === "Enter" || e.key === " ") && e.stopPropagation();
@@ -7580,90 +7600,93 @@ var Zr = {
7580
7600
  }, /* @__PURE__ */ e.createElement(Q, {
7581
7601
  iconName: "xmark",
7582
7602
  size: "xs"
7583
- }))))), /* @__PURE__ */ e.createElement("div", { className: `${k}__end-actions` }, t && /* @__PURE__ */ e.createElement("button", {
7584
- "aria-label": u.aiPanelButton,
7585
- className: Z([`${k}__ai-button`, P ?? ""]),
7603
+ }))))), /* @__PURE__ */ e.createElement("div", { className: `${j}__end-actions` }, t && /* @__PURE__ */ e.createElement("button", {
7604
+ "aria-label": d.aiPanelButton,
7605
+ className: Z([`${j}__ai-button`, F ?? ""]),
7586
7606
  disabled: r,
7587
- onClick: be,
7607
+ onClick: xe,
7588
7608
  type: "button"
7589
7609
  }, /* @__PURE__ */ e.createElement(Q, {
7590
- className: `${k}__ai-icon`,
7610
+ className: `${j}__ai-icon`,
7591
7611
  iconName: "sparkles",
7592
7612
  size: "xs"
7593
7613
  })), /* @__PURE__ */ e.createElement("button", {
7594
- "aria-label": u.triggerButton,
7595
- className: `${k}__trigger ${P}`,
7614
+ "aria-label": d.triggerButton,
7615
+ className: `${j}__trigger ${F}`,
7596
7616
  disabled: r,
7597
7617
  type: "button",
7598
7618
  ...ce({ onClick: (e) => e.stopPropagation() })
7599
7619
  }, /* @__PURE__ */ e.createElement(Q, {
7600
- className: `${k}__trigger-icon`,
7620
+ className: `${j}__trigger-icon`,
7601
7621
  iconName: "angleDown",
7602
7622
  size: "m"
7603
7623
  })))), /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
7604
- ...je,
7605
- ref: Me,
7606
- className: `pds-dropdown__panel ${k}__dropdown`,
7607
- style: Y ? {
7608
- ...me,
7609
- zIndex: ye
7624
+ ...Me,
7625
+ ref: Ne,
7626
+ className: `pds-dropdown__panel ${j}__dropdown ${i ? `${j}__dropdown--has-footer` : ""}`,
7627
+ style: ue ? {
7628
+ ...he,
7629
+ zIndex: be
7610
7630
  } : { display: "none" }
7611
- }, /* @__PURE__ */ e.createElement("div", { className: `${k}__dropdown-input-wrapper` }, /* @__PURE__ */ e.createElement(fn, { variant: "search" }), /* @__PURE__ */ e.createElement("input", {
7612
- "aria-label": u.inputInstructions,
7613
- className: `${k}__dropdown-input`,
7614
- placeholder: v,
7615
- ...ke,
7631
+ }, /* @__PURE__ */ e.createElement("div", { className: `${j}__dropdown-input-wrapper` }, /* @__PURE__ */ e.createElement(fn, { variant: "search" }), /* @__PURE__ */ e.createElement("input", {
7632
+ "aria-label": d.inputInstructions,
7633
+ className: `${j}__dropdown-input`,
7634
+ placeholder: y,
7635
+ ...Ae,
7616
7636
  onClick: (e) => {
7617
7637
  e.stopPropagation();
7618
7638
  }
7619
- })), Y && c && /* @__PURE__ */ e.createElement("div", { className: `${k}__loading` }, d), Y && !c && K.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, f), /* @__PURE__ */ e.createElement("ul", {
7620
- className: `${k}__dropdown-list`,
7639
+ })), ue && l && /* @__PURE__ */ e.createElement("div", { className: `${j}__loading` }, f), ue && !l && q.length === 0 && /* @__PURE__ */ e.createElement("div", { className: "pds-dropdown__no-results" }, p), /* @__PURE__ */ e.createElement("ul", {
7640
+ className: `${j}__dropdown-list`,
7621
7641
  ...se(),
7622
- style: Y && !c && K.length > 0 ? void 0 : { display: "none" }
7623
- }, Y && !c && K.map((t, n) => /* @__PURE__ */ e.createElement(vn, {
7642
+ style: ue && (i || !l && q.length > 0) ? void 0 : { display: "none" }
7643
+ }, ue && !l && q.map((t, n) => /* @__PURE__ */ e.createElement(vn, {
7624
7644
  key: `${t.id}-${n}`,
7625
- className: `${k}__dropdown-item
7645
+ className: `${j}__dropdown-item
7626
7646
  ${le === n ? "pds-dropdown__item--focused" : ""}
7627
- ${de === t ? `${k}__dropdown-item--selected` : ""}
7647
+ ${me === t ? `${j}__dropdown-item--selected` : ""}
7628
7648
  ${t.isAlreadySelected ? "pds-dropdown__item--active" : ""}`,
7629
7649
  ...oe({
7630
7650
  item: t,
7631
7651
  index: n
7632
7652
  })
7633
- }, /* @__PURE__ */ e.createElement("span", { className: `${k}__dropdown-item-label` }, /* @__PURE__ */ e.createElement("span", { className: `${k}__dropdown-item-text` }, t.label, t.badge === "ai" && /* @__PURE__ */ e.createElement("span", { className: `${k}__dropdown-item-badge` }, /* @__PURE__ */ e.createElement(Q, {
7653
+ }, /* @__PURE__ */ e.createElement("span", { className: `${j}__dropdown-item-label` }, /* @__PURE__ */ e.createElement("span", { className: `${j}__dropdown-item-text` }, t.label, t.badge === "ai" && /* @__PURE__ */ e.createElement("span", { className: `${j}__dropdown-item-badge` }, /* @__PURE__ */ e.createElement(Q, {
7634
7654
  iconName: "sparkles",
7635
7655
  size: "xs"
7636
- }), /* @__PURE__ */ e.createElement("span", null, u.aiBadgeLabel))), t.isAlreadySelected && /* @__PURE__ */ e.createElement(cr, null))))))), W && t && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
7637
- ref: _e.setFloating,
7638
- className: `${k}__aux-panel`,
7656
+ }), /* @__PURE__ */ e.createElement("span", null, d.aiBadgeLabel))), t.isAlreadySelected && /* @__PURE__ */ e.createElement(cr, null)))), ue && i && /* @__PURE__ */ e.createElement("li", {
7657
+ className: "pds-dropdown__footer",
7658
+ role: "presentation"
7659
+ }, i)))), G && t && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
7660
+ ref: ve.setFloating,
7661
+ className: `${j}__aux-panel`,
7639
7662
  style: {
7640
- ...X,
7641
- zIndex: ye
7663
+ ..._e,
7664
+ zIndex: be
7642
7665
  },
7643
- ...ve()
7644
- }, t.content ? /* @__PURE__ */ e.createElement("div", { className: `${k}__aux-panel-content` }, t.content) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Q, {
7645
- className: `${k}__aux-panel-icon`,
7666
+ ...ye()
7667
+ }, t.content ? /* @__PURE__ */ e.createElement("div", { className: `${j}__aux-panel-content` }, t.content) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Q, {
7668
+ className: `${j}__aux-panel-icon`,
7646
7669
  iconName: "sparkles",
7647
7670
  size: "m"
7648
- }), /* @__PURE__ */ e.createElement("div", { className: `${k}__aux-panel-items` }, q.map((t) => /* @__PURE__ */ e.createElement("button", {
7671
+ }), /* @__PURE__ */ e.createElement("div", { className: `${j}__aux-panel-items` }, te.map((t) => /* @__PURE__ */ e.createElement("button", {
7649
7672
  key: t.id,
7650
- className: Z([`${k}__aux-panel-item`, t.isAlreadySelected ? `${k}__aux-panel-item--selected` : ""]),
7651
- onClick: () => xe(t),
7673
+ className: Z([`${j}__aux-panel-item`, t.isAlreadySelected ? `${j}__aux-panel-item--selected` : ""]),
7674
+ onClick: () => Se(t),
7652
7675
  type: "button"
7653
- }, t.label)))), /* @__PURE__ */ e.createElement("div", { className: `${k}__aux-panel-header` }, /* @__PURE__ */ e.createElement("button", {
7654
- "aria-label": u.aiPanelRefresh,
7655
- className: `${k}__aux-panel-button`,
7676
+ }, t.label)))), /* @__PURE__ */ e.createElement("div", { className: `${j}__aux-panel-header` }, /* @__PURE__ */ e.createElement("button", {
7677
+ "aria-label": d.aiPanelRefresh,
7678
+ className: `${j}__aux-panel-button`,
7656
7679
  disabled: t.isFetching || t.disableRefresh,
7657
- onClick: Ce,
7680
+ onClick: we,
7658
7681
  type: "button"
7659
7682
  }, /* @__PURE__ */ e.createElement(Q, {
7660
- className: Z([`${k}__aux-panel-refresh-icon`, t.isFetching ? `${k}__aux-panel-button-icon--rotating` : ""]),
7683
+ className: Z([`${j}__aux-panel-refresh-icon`, t.isFetching ? `${j}__aux-panel-button-icon--rotating` : ""]),
7661
7684
  iconName: "rotate",
7662
7685
  size: "m"
7663
7686
  })), /* @__PURE__ */ e.createElement("button", {
7664
- "aria-label": u.aiPanelClose,
7665
- className: `${k}__aux-panel-button`,
7666
- onClick: Se,
7687
+ "aria-label": d.aiPanelClose,
7688
+ className: `${j}__aux-panel-button`,
7689
+ onClick: Ce,
7667
7690
  type: "button"
7668
7691
  }, /* @__PURE__ */ e.createElement(Q, {
7669
7692
  iconName: "xmark",
@@ -7701,20 +7724,20 @@ var Zr = {
7701
7724
  },
7702
7725
  shouldForceLeadingZeros: !0,
7703
7726
  value: m(() => yi(R), [R])
7704
- }), B = h(null), { fieldProps: ee } = Le({
7727
+ }), B = h(null), { fieldProps: V } = Le({
7705
7728
  "aria-describedby": N ? `${o}__message` : void 0,
7706
7729
  "aria-labelledby": `${o}-label`,
7707
7730
  isDisabled: i
7708
- }, z, B), V = h(x);
7731
+ }, z, B), H = h(x);
7709
7732
  u(() => {
7710
- let e = V.current;
7711
- if (V.current = x, !x || !e || x === e) return;
7733
+ let e = H.current;
7734
+ if (H.current = x, !x || !e || x === e) return;
7712
7735
  let n = z.value;
7713
7736
  if (!n) return;
7714
7737
  let r = Ce(we(Se(t ?? Te(e), n), e), x), i = bi(new he(r.hour, r.minute));
7715
7738
  i && (P || L(i), p && p(i));
7716
7739
  }, [x]);
7717
- let H = m(() => {
7740
+ let U = m(() => {
7718
7741
  if (!x) return;
7719
7742
  let e = (t ?? Te(x)).toDate(x);
7720
7743
  try {
@@ -7729,7 +7752,7 @@ var Zr = {
7729
7752
  t,
7730
7753
  F,
7731
7754
  x
7732
- ]), { focusProps: U, isFocusVisible: W } = Pe({ within: !0 }), G = z.value !== null;
7755
+ ]), { focusProps: ee, isFocusVisible: W } = Pe({ within: !0 }), G = z.value !== null;
7733
7756
  return /* @__PURE__ */ e.createElement("div", {
7734
7757
  className: Z([
7735
7758
  $.base,
@@ -7750,7 +7773,7 @@ var Zr = {
7750
7773
  showLabel: y,
7751
7774
  tooltipText: S
7752
7775
  }), /* @__PURE__ */ e.createElement("div", {
7753
- ...Oe(ee, U),
7776
+ ...Oe(V, ee),
7754
7777
  ref: B,
7755
7778
  className: Z([`${D}__input-wrapper`, W ? `${D}__input-wrapper--focus-visible` : null]),
7756
7779
  id: o
@@ -7766,7 +7789,7 @@ var Zr = {
7766
7789
  baseClass: D,
7767
7790
  segment: t,
7768
7791
  state: z
7769
- })), H && G && /* @__PURE__ */ e.createElement("div", { className: `${D}__timezone` }, H))), N && /* @__PURE__ */ e.createElement(un, {
7792
+ })), U && G && /* @__PURE__ */ e.createElement("div", { className: `${D}__timezone` }, U))), N && /* @__PURE__ */ e.createElement(un, {
7770
7793
  hasValidationMessage: !!C,
7771
7794
  id: o,
7772
7795
  message: N,
@@ -7919,22 +7942,22 @@ var Zr = {
7919
7942
  let z = b === "range", B = {
7920
7943
  ...Ni,
7921
7944
  ...N
7922
- }, ee = z && !!w && w.length > 0;
7923
- k && !O && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `showTimeZoneSwitcher` has no effect unless `showTime` is also true."), w && w.length > 0 && !z && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `presets` requires `mode=\"range\"` — every preset computes a date range."), !t && !ee && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `allowCustomRange` has no effect unless `presets` is also set."), i !== void 0 && !(ee && w?.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.`);
7924
- let { locale: V } = Fe(), H = p?.code ?? V, U = m(() => z ? w?.find((e) => e.label === i) : void 0, [
7945
+ }, V = z && !!w && w.length > 0;
7946
+ k && !O && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `showTimeZoneSwitcher` has no effect unless `showTime` is also true."), w && w.length > 0 && !z && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `presets` requires `mode=\"range\"` — every preset computes a date range."), !t && !V && process.env.NODE_ENV !== "production" && console.warn("[Datepicker] `allowCustomRange` has no effect unless `presets` is also set."), i !== void 0 && !(V && w?.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.`);
7947
+ let { locale: H } = Fe(), U = p?.code ?? H, ee = m(() => z ? w?.find((e) => e.label === i) : void 0, [
7925
7948
  i,
7926
7949
  z,
7927
7950
  w
7928
7951
  ]), W = (e) => {
7929
7952
  let t = Mi(e, {
7930
- locale: H,
7953
+ locale: U,
7931
7954
  timeZone: j
7932
7955
  }), n = e.hours !== void 0 || e.minutes !== void 0;
7933
7956
  return !O || n ? t : {
7934
7957
  from: Oi(Ci(t.from, j), ki, j),
7935
7958
  to: Oi(Ci(t.to, j), Ai, j)
7936
7959
  };
7937
- }, [G, K] = g(() => I ?? (U ? W(U) : void 0)), [q, te] = g("local"), J = k && q === "utc" ? "UTC" : j, [ne, re] = g(U?.label), [ie, ae] = g(D), oe = !ee || ie, se = !ee || D || t, ce = L === 1 ? z && O ? 400 : 280 : 550, le = h(null), Y = ne === void 0 && (z ? !!G?.from : !!G), ue = (e, t) => z && O ? e ?? t : e, [de, fe] = g(() => ue(Di(z ? G?.from : G, J), ki)), [pe, me] = g(() => ue(Di(G?.to, J), Ai)), he = on(l, d), X = "pds-datepicker", _e = a ? $.disabled : null, ve = T && !a ? $.required : null, be = F === "error" ? $.error : null, xe = F === "success" ? $.success : null, Se = P || v, Ce = /* @__PURE__ */ e.createElement("div", { className: `${X}__timezone-switcher` }, /* @__PURE__ */ e.createElement("span", { className: `${X}__timezone-switcher-label` }, B.timeZoneSwitcherLabel), /* @__PURE__ */ e.createElement(ur, {
7960
+ }, [G, K] = g(() => I ?? (ee ? W(ee) : void 0)), [q, te] = g("local"), J = k && q === "utc" ? "UTC" : j, [ne, re] = g(ee?.label), [ie, ae] = g(D), Y = !V || ie, oe = !V || D || t, se = L === 1 ? z && O ? 400 : 280 : 550, ce = h(null), le = ne === void 0 && (z ? !!G?.from : !!G), ue = (e, t) => z && O ? e ?? t : e, [de, fe] = g(() => ue(Di(z ? G?.from : G, J), ki)), [pe, me] = g(() => ue(Di(G?.to, J), Ai)), he = on(l, d), X = "pds-datepicker", _e = a ? $.disabled : null, ve = T && !a ? $.required : null, be = F === "error" ? $.error : null, xe = F === "success" ? $.success : null, Se = P || v, Ce = /* @__PURE__ */ e.createElement("div", { className: `${X}__timezone-switcher` }, /* @__PURE__ */ e.createElement("span", { className: `${X}__timezone-switcher-label` }, B.timeZoneSwitcherLabel), /* @__PURE__ */ e.createElement(ur, {
7938
7961
  id: `${c}-timezone-switcher`,
7939
7962
  label: B.timeZoneSwitcherLabel || "",
7940
7963
  onChange: (e) => te(e),
@@ -7960,7 +7983,7 @@ var Zr = {
7960
7983
  }, 300);
7961
7984
  }, Ue = Re({
7962
7985
  createCalendar: ge,
7963
- locale: H,
7986
+ locale: U,
7964
7987
  maxValue: Ve,
7965
7988
  minValue: Be,
7966
7989
  onChange: (e) => {
@@ -7969,7 +7992,7 @@ var Zr = {
7969
7992
  value: z ? null : Ci(G, J) ?? null
7970
7993
  }), We = h(null), Ge = ze({
7971
7994
  createCalendar: ge,
7972
- locale: H,
7995
+ locale: U,
7973
7996
  maxValue: Ve,
7974
7997
  minValue: Be,
7975
7998
  visibleDuration: { months: L },
@@ -7986,7 +8009,7 @@ var Zr = {
7986
8009
  end: n
7987
8010
  } : null;
7988
8011
  })() : null
7989
- }), Ke = z ? Ge : Ue, { calendarProps: qe, nextButtonProps: Je, prevButtonProps: Ye } = Ae({}, Ue), { calendarProps: Xe, nextButtonProps: Ze, prevButtonProps: Qe } = Ie({}, Ge, We), $e = z ? Xe : qe, et = z ? Ze : Je, tt = z ? Qe : Ye, nt = (e) => new Intl.DateTimeFormat(H, {
8012
+ }), Ke = z ? Ge : Ue, { calendarProps: qe, nextButtonProps: Je, prevButtonProps: Ye } = Ae({}, Ue), { calendarProps: Xe, nextButtonProps: Ze, prevButtonProps: Qe } = Ie({}, Ge, We), $e = z ? Xe : qe, et = z ? Ze : Je, tt = z ? Qe : Ye, nt = (e) => new Intl.DateTimeFormat(U, {
7990
8013
  month: "long",
7991
8014
  year: "numeric"
7992
8015
  }).format(e.toDate(ye())), rt = z ? Array.from({ length: L }, (e, t) => t) : [0], it = rt.map((e) => nt(Ke.visibleRange.start.add({ months: e }))), at = h(null), ot = h(null), { buttonProps: st } = ke(tt, at), { buttonProps: ct } = ke(et, ot), lt = () => {
@@ -7998,7 +8021,7 @@ var Zr = {
7998
8021
  Ke.setFocusedDate(e), z ? (Ge.setValue(null), K(void 0), re(void 0), x?.(void 0)) : (Ue.setValue(e), He(Oi(e, O ? de : void 0, J), void 0, !O));
7999
8022
  }, pt = (e) => {
8000
8023
  let t = Mi(e, {
8001
- locale: H,
8024
+ locale: U,
8002
8025
  timeZone: J
8003
8026
  }), n = e.hours !== void 0 || e.minutes !== void 0;
8004
8027
  ae(D), O && n ? (fe(Di(t.from, J)), me(Di(t.to, J)), He(t, e.label)) : He(O ? {
@@ -8052,8 +8075,8 @@ var Zr = {
8052
8075
  Ke.setFocusedDate(e ?? Te(J)), ae(D);
8053
8076
  }
8054
8077
  }, [Me]), u(() => {
8055
- le.current && (le.current.inert = !oe);
8056
- }, [oe]);
8078
+ ce.current && (ce.current.inert = !Y);
8079
+ }, [Y]);
8057
8080
  let _t = w?.find((e) => e.label === ne), vt = _t && (_t.showLabelInTrigger ?? (_t.hours !== void 0 || _t.minutes !== void 0)) ? _t.label : void 0, yt = () => {
8058
8081
  if (vt !== void 0) return vt;
8059
8082
  if (z) {
@@ -8140,7 +8163,7 @@ var Zr = {
8140
8163
  size: "s",
8141
8164
  timeZone: J,
8142
8165
  value: de
8143
- })), k && !ee && Ce), o && /* @__PURE__ */ e.createElement("div", { className: `${X}__footer-note` }, o), /* @__PURE__ */ e.createElement("div", { className: `${X}__actions` }, A && /* @__PURE__ */ e.createElement(kn, {
8166
+ })), k && !V && Ce), o && /* @__PURE__ */ e.createElement("div", { className: `${X}__footer-note` }, o), /* @__PURE__ */ e.createElement("div", { className: `${X}__actions` }, A && /* @__PURE__ */ e.createElement(kn, {
8144
8167
  className: `${X}__action-button ${X}__action-button--today`,
8145
8168
  label: B.todayButton,
8146
8169
  onClick: ft,
@@ -8162,7 +8185,7 @@ var Zr = {
8162
8185
  type: "button",
8163
8186
  variant: "highlight"
8164
8187
  }))));
8165
- return /* @__PURE__ */ e.createElement(De, { locale: H }, /* @__PURE__ */ e.createElement("div", {
8188
+ return /* @__PURE__ */ e.createElement(De, { locale: U }, /* @__PURE__ */ e.createElement("div", {
8166
8189
  className: Z([
8167
8190
  $.base,
8168
8191
  X,
@@ -8207,7 +8230,7 @@ var Zr = {
8207
8230
  zIndex: Le
8208
8231
  },
8209
8232
  ...Ee()
8210
- }, ee && /* @__PURE__ */ e.createElement("div", { className: Z([`${X}__presets`, oe ? null : `${X}__presets--collapsed`]) }, /* @__PURE__ */ e.createElement("div", {
8233
+ }, V && /* @__PURE__ */ e.createElement("div", { className: Z([`${X}__presets`, Y ? null : `${X}__presets--collapsed`]) }, /* @__PURE__ */ e.createElement("div", {
8211
8234
  "aria-label": B.presetsGroupLabel,
8212
8235
  className: `${X}__preset-list`,
8213
8236
  role: "group"
@@ -8221,8 +8244,8 @@ var Zr = {
8221
8244
  "aria-hidden": "true",
8222
8245
  className: `${X}__preset-divider`
8223
8246
  }), /* @__PURE__ */ e.createElement("button", {
8224
- "aria-pressed": Y,
8225
- className: Z([`${X}__preset-item`, Y ? `${X}__preset-item--active` : null]),
8247
+ "aria-pressed": le,
8248
+ className: Z([`${X}__preset-item`, le ? `${X}__preset-item--active` : null]),
8226
8249
  onClick: () => {
8227
8250
  re(void 0), ae(!0);
8228
8251
  },
@@ -8230,13 +8253,13 @@ var Zr = {
8230
8253
  }, B.customPresetLabel, !D && /* @__PURE__ */ e.createElement(Q, {
8231
8254
  iconName: "angleRight",
8232
8255
  size: "xs"
8233
- })))), O && k && Ce), /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, xt()), ee ? se && /* @__PURE__ */ e.createElement("div", {
8234
- ref: le,
8256
+ })))), O && k && Ce), /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, xt()), V ? oe && /* @__PURE__ */ e.createElement("div", {
8257
+ ref: ce,
8235
8258
  className: `${X}__calendar-wrapper`,
8236
- style: { flexBasis: oe ? ce : 0 }
8259
+ style: { flexBasis: Y ? se : 0 }
8237
8260
  }, /* @__PURE__ */ e.createElement("div", {
8238
8261
  className: `${X}__calendar-wrapper-inner`,
8239
- style: { width: ce }
8262
+ style: { width: se }
8240
8263
  }, Ct)) : Ct))));
8241
8264
  }, Li = o(({ accept: t, className: n, defaultValue: r, disabled: i = !1, fieldLabel: a, id: o, inputProps: s, inputWidth: c, inputWidthMin: l, labelStrings: d = {
8242
8265
  chooseFile: "Choose file",
@@ -8244,22 +8267,22 @@ var Zr = {
8244
8267
  }, message: f, multiple: p = !1, onClear: m, onFileChange: h, required: _ = !1, showFullPath: v, showLabel: y = !0, size: b = "s", tooltipText: x = null, validationMessage: S, validationStatus: C, ...w }, T) => {
8245
8268
  let [E, D] = g(!1), [O, k] = g(!!(Ve && r)), A = on(c, l), j = "pds-file-upload", M = b === "s" ? null : `${j}--${b}`, N = i ? $.disabled : null, P = _ && !i ? $.required : null, F = C === "error" ? $.error : null, I = C === "success" ? $.success : null, L = O ? `${j}--safari-default` : null, R = null;
8246
8269
  C === "error" && (R = "error"), C === "success" && (R = "success");
8247
- let z = S || f, B = r ? [r] : null, ee = r ? r.split("/").pop() : null, V = v ? r : ee, H = r ? new File(B, V) : null;
8270
+ let z = S || f, B = r ? [r] : null, V = r ? r.split("/").pop() : null, H = v ? r : V, U = r ? new File(B, H) : null;
8248
8271
  u(() => {
8249
8272
  let e = new DataTransfer();
8250
- if (H && e.items.add(H), e.files.length > 0) {
8273
+ if (U && e.items.add(U), e.files.length > 0) {
8251
8274
  let t = document.getElementById(`${o}--input`);
8252
- t.files = e.files, Ve && (t.dataset.file = `${V}`), D(!0);
8275
+ t.files = e.files, Ve && (t.dataset.file = `${H}`), D(!0);
8253
8276
  }
8254
8277
  }, [r, v]);
8255
- let U = () => {
8278
+ let ee = () => {
8256
8279
  let e = document.getElementById(`${o}--input`);
8257
8280
  if (!e || !r) return;
8258
8281
  let t = new DataTransfer();
8259
- t.items.add(H), e.files = t.files, D(!0);
8282
+ t.items.add(U), e.files = t.files, D(!0);
8260
8283
  }, W = (e) => {
8261
8284
  if (e.target.files.length === 0) {
8262
- r ? U() : D(!1);
8285
+ r ? ee() : D(!1);
8263
8286
  return;
8264
8287
  }
8265
8288
  Ve && r && (r === e.target.value ? k(!0) : k(!1)), h && h(e.target.files), D(!0);
@@ -8518,8 +8541,8 @@ var Zr = {
8518
8541
  tagRemove: "Remove {value}",
8519
8542
  tagsListLabel: "Current tags"
8520
8543
  }, validationMessage: x, validationStatus: S, ...C }, w) => {
8521
- let T = on(o, s), E = "pds-tags-input", D = _ === "s" ? null : `${E}--${_}`, O = r ? $.disabled : null, k = p && !r ? $.required : null, A = S === "error" ? $.error : null, j = S === "success" ? $.success : null, M = x || u, [N, P] = g(""), [F, I] = g(null), [L, R] = g(null), [z, B] = g(null), [ee, V] = g(null), [H, U] = g(""), W = h(null), G = v.length > 0 ? t : f, K = (e) => {
8522
- U(e), setTimeout(() => U(""), 1e3);
8544
+ let T = on(o, s), E = "pds-tags-input", D = _ === "s" ? null : `${E}--${_}`, O = r ? $.disabled : null, k = p && !r ? $.required : null, A = S === "error" ? $.error : null, j = S === "success" ? $.success : null, M = x || u, [N, P] = g(""), [F, I] = g(null), [L, R] = g(null), [z, B] = g(null), [V, H] = g(null), [U, ee] = g(""), W = h(null), G = v.length > 0 ? t : f, K = (e) => {
8545
+ ee(e), setTimeout(() => ee(""), 1e3);
8523
8546
  }, q = (e) => {
8524
8547
  d(e);
8525
8548
  }, te = (e) => {
@@ -8540,11 +8563,11 @@ var Zr = {
8540
8563
  }, ae = (e) => {
8541
8564
  let t = v.find((t) => t.id === e);
8542
8565
  q(v.filter((t) => t.id !== e)), t && K(`${t.value} removed`);
8543
- }, oe = () => {
8544
- V(null), setTimeout(() => {
8566
+ }, Y = () => {
8567
+ H(null), setTimeout(() => {
8545
8568
  W.current?.focus();
8546
8569
  }, 0);
8547
- }, se = (e) => {
8570
+ }, oe = (e) => {
8548
8571
  if (!r) if (e.key === "Enter" && N.trim()) {
8549
8572
  e.preventDefault();
8550
8573
  let t = {
@@ -8555,7 +8578,7 @@ var Zr = {
8555
8578
  } else if (e.key === "Backspace" && !N && v.length > 0) {
8556
8579
  let e = v[v.length - 1];
8557
8580
  q(v.slice(0, -1)), K(`${e.value} removed`);
8558
- } else e.key === "ArrowLeft" && !N && v.length > 0 && (e.preventDefault(), V(v.length - 1));
8581
+ } else e.key === "ArrowLeft" && !N && v.length > 0 && (e.preventDefault(), H(v.length - 1));
8559
8582
  };
8560
8583
  return /* @__PURE__ */ e.createElement("div", {
8561
8584
  className: Z([
@@ -8581,7 +8604,7 @@ var Zr = {
8581
8604
  "aria-atomic": "true",
8582
8605
  "aria-live": "polite",
8583
8606
  className: "visually-hidden"
8584
- }, H), /* @__PURE__ */ e.createElement("div", {
8607
+ }, U), /* @__PURE__ */ e.createElement("div", {
8585
8608
  "aria-labelledby": `${i}-label`,
8586
8609
  className: `${E}__input-wrapper`,
8587
8610
  role: "group",
@@ -8600,17 +8623,17 @@ var Zr = {
8600
8623
  }, /* @__PURE__ */ e.createElement(Vi, {
8601
8624
  disabled: r,
8602
8625
  dropTargetDirection: i,
8603
- focusedIndex: ee,
8626
+ focusedIndex: V,
8604
8627
  index: n,
8605
8628
  isDragging: F === t.id,
8606
8629
  isSortable: c,
8607
8630
  onDragEnd: J,
8608
8631
  onDragOver: ne,
8609
8632
  onDragStart: te,
8610
- onFocusInput: oe,
8633
+ onFocusInput: Y,
8611
8634
  onKeyboardMove: ie,
8612
8635
  onRemove: ae,
8613
- setFocusedIndex: V,
8636
+ setFocusedIndex: H,
8614
8637
  tag: t,
8615
8638
  totalTags: v.length,
8616
8639
  translationStrings: b
@@ -8626,7 +8649,7 @@ var Zr = {
8626
8649
  id: i,
8627
8650
  name: i,
8628
8651
  onChange: (e) => P(e.target.value),
8629
- onKeyDown: se,
8652
+ onKeyDown: oe,
8630
8653
  placeholder: G,
8631
8654
  required: p,
8632
8655
  type: "text",
@@ -8649,9 +8672,9 @@ var Zr = {
8649
8672
  visibilityToggleHide: "Hide input value",
8650
8673
  visibilityToggleShow: "Show input value"
8651
8674
  }, validationMessage: w, validationStatus: T, value: E, ...D }, O) => {
8652
- let k = on(o, s), A = "pds-textarea", j = c ? "pds-is-resizable" : null, M = i ? $.disabled : null, N = _ && !i ? $.required : null, P = T === "error" ? $.error : null, F = T === "success" ? $.success : null, I = b === "s" ? null : `${A}--${b}`, L = h ? $.readonly : null, R = w || u, z = E != null && f !== void 0, [B, ee] = g(r === void 0 ? "" : r), V = E || B, H = (e) => {
8653
- z || ee(e.target.value), f && f(e);
8654
- }, U = (e) => {
8675
+ let k = on(o, s), A = "pds-textarea", j = c ? "pds-is-resizable" : null, M = i ? $.disabled : null, N = _ && !i ? $.required : null, P = T === "error" ? $.error : null, F = T === "success" ? $.success : null, I = b === "s" ? null : `${A}--${b}`, L = h ? $.readonly : null, R = w || u, z = E != null && f !== void 0, [B, V] = g(r === void 0 ? "" : r), H = E || B, U = (e) => {
8676
+ z || V(e.target.value), f && f(e);
8677
+ }, ee = (e) => {
8655
8678
  d && d(e);
8656
8679
  }, W = (e) => {
8657
8680
  h && e.preventDefault();
@@ -8679,7 +8702,7 @@ var Zr = {
8679
8702
  showLabel: y,
8680
8703
  tooltipText: S
8681
8704
  }), n && /* @__PURE__ */ e.createElement(hn, {
8682
- currentLength: V.length,
8705
+ currentLength: H.length,
8683
8706
  id: a,
8684
8707
  maxLength: n,
8685
8708
  overLimitMessage: C.counterOverLimit
@@ -8691,8 +8714,8 @@ var Zr = {
8691
8714
  disabled: i,
8692
8715
  id: a,
8693
8716
  name: a,
8694
- onBlur: U,
8695
- onChange: H,
8717
+ onBlur: ee,
8718
+ onChange: U,
8696
8719
  onFocus: p,
8697
8720
  onMouseDown: W,
8698
8721
  placeholder: m,
@@ -8716,12 +8739,12 @@ var Zr = {
8716
8739
  visibilityToggleHide: "Hide input value",
8717
8740
  visibilityToggleShow: "Show input value"
8718
8741
  }, type: k = "text", validationMessage: A, validationStatus: j, value: M, ...N }, P) => {
8719
- let F = on(d, f), I = "pds-text-input", L = a ? $.disabled : null, R = S && !a ? $.required : null, z = j === "error" ? $.error : null, B = j === "success" ? $.success : null, ee = x ? $.readonly : null, V = E === "s" ? null : `${I}--${E}`, H = c && k === "url" ? `${I}--has-url-prefix` : null, U = null;
8720
- k === "search" && (U = "search"), k === "search" && C === "filter" && (U = "filter"), j === "error" && (U = "error"), j === "success" && (U = "success");
8742
+ let F = on(d, f), I = "pds-text-input", L = a ? $.disabled : null, R = S && !a ? $.required : null, z = j === "error" ? $.error : null, B = j === "success" ? $.success : null, V = x ? $.readonly : null, H = E === "s" ? null : `${I}--${E}`, U = c && k === "url" ? `${I}--has-url-prefix` : null, ee = null;
8743
+ k === "search" && (ee = "search"), k === "search" && C === "filter" && (ee = "filter"), j === "error" && (ee = "error"), j === "success" && (ee = "success");
8721
8744
  let W = A || m, G = M !== void 0, [K, q] = g(i === void 0 ? "" : i), te = M || K, J = s && k === "search" && !te, ne = (e) => {
8722
8745
  x && e.preventDefault();
8723
8746
  }, re = (e) => {
8724
- if (T && oe && se(!1), c && k === "url") {
8747
+ if (T && Y && oe(!1), c && k === "url") {
8725
8748
  let t = sn(e.target.value), n = {
8726
8749
  ...e,
8727
8750
  target: {
@@ -8746,22 +8769,22 @@ var Zr = {
8746
8769
  G || q(""), v && v();
8747
8770
  let e = document.getElementById(l);
8748
8771
  e && e.focus();
8749
- }, [oe, se] = g(!1), ce = () => {
8750
- se((e) => !e);
8772
+ }, [Y, oe] = g(!1), se = () => {
8773
+ oe((e) => !e);
8751
8774
  let e = document.getElementById(l);
8752
8775
  e && e.focus();
8753
- }, le = k;
8754
- return T && k === "password" && (le = oe ? "text" : "password"), /* @__PURE__ */ e.createElement("div", {
8776
+ }, ce = k;
8777
+ return T && k === "password" && (ce = Y ? "text" : "password"), /* @__PURE__ */ e.createElement("div", {
8755
8778
  className: Z([
8756
8779
  $.base,
8757
8780
  I,
8758
- V,
8781
+ H,
8759
8782
  L,
8760
8783
  R,
8761
8784
  z,
8762
8785
  B,
8763
- ee,
8764
- H,
8786
+ V,
8787
+ U,
8765
8788
  n ?? ""
8766
8789
  ]),
8767
8790
  style: d ? F : null,
@@ -8776,11 +8799,11 @@ var Zr = {
8776
8799
  }), T && k === "password" && /* @__PURE__ */ e.createElement("div", {
8777
8800
  "aria-live": "polite",
8778
8801
  className: "visually-hidden"
8779
- }, `${O.visibilityStatus} ${oe ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: Z([
8802
+ }, `${O.visibilityStatus} ${Y ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: Z([
8780
8803
  `${I}__input-wrapper`,
8781
8804
  c && k === "url" ? `${I}__input-wrapper--has-prefix` : null,
8782
8805
  J ? `${I}__input-wrapper--has-search-shortcut` : null
8783
- ]) }, U && /* @__PURE__ */ e.createElement(fn, { variant: U }), c && k === "url" && /* @__PURE__ */ e.createElement(Wi, null), /* @__PURE__ */ e.createElement("input", {
8806
+ ]) }, ee && /* @__PURE__ */ e.createElement(fn, { variant: ee }), c && k === "url" && /* @__PURE__ */ e.createElement(Wi, null), /* @__PURE__ */ e.createElement("input", {
8784
8807
  ref: P,
8785
8808
  "aria-describedby": W ? `${l}__message` : null,
8786
8809
  "aria-invalid": j === "error" ? !0 : null,
@@ -8796,7 +8819,7 @@ var Zr = {
8796
8819
  placeholder: b,
8797
8820
  readOnly: x,
8798
8821
  required: S,
8799
- type: le,
8822
+ type: ce,
8800
8823
  value: G ? M : K,
8801
8824
  ...u
8802
8825
  }), o && te && /* @__PURE__ */ e.createElement(mn, {
@@ -8806,12 +8829,12 @@ var Zr = {
8806
8829
  }), T && k === "password" && /* @__PURE__ */ e.createElement("button", {
8807
8830
  "aria-controls": l,
8808
8831
  className: `${I}__visibility-toggle`,
8809
- onClick: ce,
8832
+ onClick: se,
8810
8833
  onMouseDown: (e) => e.preventDefault(),
8811
- title: oe ? O.visibilityToggleHide : O.visibilityToggleShow,
8834
+ title: Y ? O.visibilityToggleHide : O.visibilityToggleShow,
8812
8835
  type: "button"
8813
8836
  }, /* @__PURE__ */ e.createElement(Q, {
8814
- iconName: oe ? "eyeSlash" : "eye",
8837
+ iconName: Y ? "eyeSlash" : "eye",
8815
8838
  size: "m"
8816
8839
  })), J && /* @__PURE__ */ e.createElement(pn, {
8817
8840
  inputId: l,
@@ -9418,7 +9441,7 @@ var Zr = {
9418
9441
  ]),
9419
9442
  role: i ? "menuitem" : void 0,
9420
9443
  tabIndex: i ? b === r ? 0 : -1 : void 0,
9421
- ...i ? ee({ onKeyDown: (e) => G(e, r) }) : null
9444
+ ...i ? V({ onKeyDown: (e) => G(e, r) }) : null
9422
9445
  }, t.linkContent))), [v, y] = g(!1), [b, x] = g(null), C = h([]), w = h(v), A = h(!1), { context: j, floatingStyles: P, refs: F } = N({
9423
9446
  placement: "right-start",
9424
9447
  open: v,
@@ -9445,7 +9468,7 @@ var Zr = {
9445
9468
  i,
9446
9469
  F.reference
9447
9470
  ]);
9448
- let { getFloatingProps: R, getItemProps: ee, getReferenceProps: H } = z([
9471
+ let { getFloatingProps: R, getItemProps: V, getReferenceProps: U } = z([
9449
9472
  L(j, {
9450
9473
  move: !1,
9451
9474
  delay: {
@@ -9455,7 +9478,7 @@ var Zr = {
9455
9478
  handleClose: O()
9456
9479
  }),
9457
9480
  M(j),
9458
- V(j, { role: "menu" }),
9481
+ H(j, { role: "menu" }),
9459
9482
  B(j, {
9460
9483
  listRef: C,
9461
9484
  activeIndex: b,
@@ -9464,7 +9487,7 @@ var Zr = {
9464
9487
  openOnArrowKeyDown: !0,
9465
9488
  focusItemOnOpen: !1
9466
9489
  })
9467
- ]), U = (e) => {
9490
+ ]), ee = (e) => {
9468
9491
  i && s && (e.key === "ArrowRight" || e.key === " " || e.key === "Spacebar") && (e.preventDefault(), y(!0));
9469
9492
  }, W = (e) => {
9470
9493
  (C.current[e]?.querySelector("a"))?.click(), y(!1);
@@ -9493,9 +9516,9 @@ var Zr = {
9493
9516
  i ? `${f}--collapsed` : null,
9494
9517
  n ? `${f}--active` : null
9495
9518
  ]),
9496
- ...H({
9519
+ ...U({
9497
9520
  onClick: q,
9498
- onKeyDown: U
9521
+ onKeyDown: ee
9499
9522
  })
9500
9523
  }, s ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, la(d, o, s, t), !i && /* @__PURE__ */ e.createElement("button", {
9501
9524
  "aria-expanded": r,
@@ -9735,7 +9758,18 @@ var Zr = {
9735
9758
  } })
9736
9759
  }, /* @__PURE__ */ e.createElement("div", { style: { ...k } }, L, /* @__PURE__ */ e.createElement("ul", { className: Z([m, h]) }, R.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${p}__no-results` }, o) : R)))));
9737
9760
  }, Sa = ({ ariaLabel: t, className: n, menuItems: i, ...a }) => {
9738
- let o = "pds-tab-menu", c = ({ dropdownSettings: t, icon: n, isActive: i, linkContent: a, links: c, promoteActiveChildLink: l = !1 }) => {
9761
+ let o = "pds-tab-menu", c = h(null), l = h(null);
9762
+ u(() => {
9763
+ let e = l.current, t = c.current;
9764
+ if (!e || !t) return;
9765
+ let n = () => {
9766
+ t.toggleAttribute("data-overflowing", e.scrollWidth > e.clientWidth);
9767
+ };
9768
+ n();
9769
+ let r = new ResizeObserver(n);
9770
+ return r.observe(e), () => r.disconnect();
9771
+ }, [i]);
9772
+ let d = ({ dropdownSettings: t, icon: n, isActive: i, linkContent: a, links: c, promoteActiveChildLink: l = !1 }) => {
9739
9773
  let u = `${o}__item`, d = na(c);
9740
9774
  return /* @__PURE__ */ e.createElement("li", { className: Z([u, i ? `${u}--active` : null]) }, ((t, n) => {
9741
9775
  let i = null;
@@ -9755,7 +9789,10 @@ var Zr = {
9755
9789
  minFilterItems: t?.minFilterItems,
9756
9790
  noResultsText: t?.noResultsText
9757
9791
  }));
9758
- }, l = i.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu` }, i.map((t, n) => /* @__PURE__ */ e.createElement(c, {
9792
+ }, f = i.length > 0 ? /* @__PURE__ */ e.createElement("ul", {
9793
+ ref: l,
9794
+ className: `${o}__menu`
9795
+ }, i.map((t, n) => /* @__PURE__ */ e.createElement(d, {
9759
9796
  key: n,
9760
9797
  dropdownSettings: t.dropdownSettings,
9761
9798
  icon: t.icon,
@@ -9768,7 +9805,10 @@ var Zr = {
9768
9805
  "aria-label": t,
9769
9806
  className: Z([o, n ?? ""]),
9770
9807
  ...a
9771
- }, /* @__PURE__ */ e.createElement("div", { className: `${o}__mobile-menu-wrapper` }, l));
9808
+ }, /* @__PURE__ */ e.createElement("div", {
9809
+ ref: c,
9810
+ className: `${o}__mobile-menu-wrapper`
9811
+ }, f));
9772
9812
  }, Ca = {
9773
9813
  2: "second",
9774
9814
  3: "third",
@@ -10015,9 +10055,9 @@ var Zr = {
10015
10055
  ],
10016
10056
  whileElementsMounted: T,
10017
10057
  strategy: "fixed"
10018
- }), R = j(F, { event: "mousedown" }), ee = M(F), U = V(F, { role: "menu" }), W = h([]), { getFloatingProps: G, getItemProps: K, getReferenceProps: q } = z([
10058
+ }), R = j(F, { event: "mousedown" }), V = M(F), ee = H(F, { role: "menu" }), W = h([]), { getFloatingProps: G, getItemProps: K, getReferenceProps: q } = z([
10059
+ V,
10019
10060
  ee,
10020
- U,
10021
10061
  R,
10022
10062
  B(F, {
10023
10063
  listRef: W,
@@ -10028,7 +10068,7 @@ var Zr = {
10028
10068
  focusItemOnOpen: !1,
10029
10069
  focusItemOnHover: !0
10030
10070
  })
10031
- ]), { isMounted: te, styles: J } = H(F, {
10071
+ ]), { isMounted: te, styles: J } = U(F, {
10032
10072
  duration: {
10033
10073
  open: 300,
10034
10074
  close: 150
@@ -10060,14 +10100,14 @@ var Zr = {
10060
10100
  let n = e.id ? e.id : `${O}-item-${t}`;
10061
10101
  C.current.push(n), w.current.push(e);
10062
10102
  });
10063
- let oe = (e) => {
10103
+ let Y = (e) => {
10064
10104
  let t = C.current.indexOf(e), n = w.current[t];
10065
10105
  n.linkContent && !n.disabled && (W.current[t].querySelector("a").click(), y(!1)), n.callback && !n.disabled && (n.callback(), y(!1));
10106
+ }, oe = (e) => {
10107
+ e.preventDefault(), e.key === "Enter" && Y(e.currentTarget.id);
10066
10108
  }, se = (e) => {
10067
- e.preventDefault(), e.key === "Enter" && oe(e.currentTarget.id);
10068
- }, ce = (e) => {
10069
- oe(e.currentTarget.id);
10070
- }, le = i.map((t, n) => {
10109
+ Y(e.currentTarget.id);
10110
+ }, ce = i.map((t, n) => {
10071
10111
  let r = C.current[n], i = `${A}__item`, a = t.disabled ? `${i}--disabled` : null;
10072
10112
  return /* @__PURE__ */ e.createElement("li", {
10073
10113
  key: r,
@@ -10077,16 +10117,16 @@ var Zr = {
10077
10117
  "aria-disabled": t.disabled || void 0,
10078
10118
  className: Z([i, a]),
10079
10119
  id: r,
10080
- onKeyDown: se,
10120
+ onKeyDown: oe,
10081
10121
  role: "menuitem",
10082
10122
  tabIndex: m === n ? 0 : -1,
10083
- ...K({ onClick: (e) => ce(e) })
10123
+ ...K({ onClick: (e) => se(e) })
10084
10124
  }, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
10085
10125
  className: `${A}__icon`,
10086
10126
  iconName: t.iconName,
10087
10127
  size: "m"
10088
10128
  }));
10089
- }), Y = i.map((t, n) => {
10129
+ }), le = i.map((t, n) => {
10090
10130
  let r = C.current[n], i = `${A}__item`, a = t.disabled ? `${i}--disabled` : null;
10091
10131
  return /* @__PURE__ */ e.createElement("li", {
10092
10132
  key: r,
@@ -10109,7 +10149,7 @@ var Zr = {
10109
10149
  }, x ? /* @__PURE__ */ e.createElement(Ln, { label: ue }, /* @__PURE__ */ e.createElement("ul", {
10110
10150
  className: Z([P, `${P}--mobile`]),
10111
10151
  role: "menu"
10112
- }, ie, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ae, Y)) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
10152
+ }, ie, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ae, le)) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
10113
10153
  ref: L.setReference,
10114
10154
  "aria-label": t,
10115
10155
  className: `${A}__trigger`,
@@ -10126,7 +10166,7 @@ var Zr = {
10126
10166
  }, /* @__PURE__ */ e.createElement("div", { style: { ...J } }, /* @__PURE__ */ e.createElement("ul", {
10127
10167
  className: P,
10128
10168
  role: "menu"
10129
- }, ie, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ae, le))))));
10169
+ }, ie, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ae, ce))))));
10130
10170
  }, Oa = ({ avatarSize: t = "m", className: n, showActiveState: r = !0, workspace: i, ...a }) => {
10131
10171
  let o = "pds-workspace-list-item";
10132
10172
  return /* @__PURE__ */ e.createElement("div", {
@@ -10160,17 +10200,17 @@ var Zr = {
10160
10200
  };
10161
10201
  n(), document.fonts?.ready.then(n);
10162
10202
  }, [z?.displayName]);
10163
- let ee = m(() => {
10203
+ let V = m(() => {
10164
10204
  if (!f) return u;
10165
10205
  let e = f.toLowerCase();
10166
10206
  return u.filter((t) => t.displayName?.toLowerCase().includes(e));
10167
- }, [u, f]), V = m(() => {
10207
+ }, [u, f]), H = m(() => {
10168
10208
  if (!v) return u;
10169
10209
  let e = v.toLowerCase();
10170
10210
  return u.filter((t) => t.displayName?.toLowerCase().includes(e));
10171
- }, [u, v]), H = (e) => {
10211
+ }, [u, v]), U = (e) => {
10172
10212
  e.preventDefault(), e.key === "Enter" && (P.current[O]?.querySelector("a") || P.current[O]?.querySelector("button"))?.click(), e.key === "Tab" && (e.shiftKey ? x ? document.getElementById("workspace-filter")?.focus() : I(!1) : r ? b.current?.querySelector("a")?.focus() : I(!1));
10173
- }, U = ee.map((t, n) => {
10213
+ }, ee = V.map((t, n) => {
10174
10214
  let r = `${T}__item`, i = t.workspaceId, a = t.isRestricted && t.onRestrictedSelection, o = t.workspaceLink?.type, s = t.isUnprivileged ? null : (e) => {
10175
10215
  P.current[n] = e;
10176
10216
  };
@@ -10186,7 +10226,7 @@ var Zr = {
10186
10226
  t.isRestricted ? `${r}--restricted` : null
10187
10227
  ]),
10188
10228
  id: i,
10189
- onKeyDown: H,
10229
+ onKeyDown: U,
10190
10230
  role: "menuitem",
10191
10231
  tabIndex: O === n ? 0 : -1,
10192
10232
  ...j()
@@ -10196,7 +10236,7 @@ var Zr = {
10196
10236
  },
10197
10237
  type: "button"
10198
10238
  }, /* @__PURE__ */ e.createElement(Oa, { workspace: t })) : o ? /* @__PURE__ */ e.createElement(o, Object.assign({}, t.workspaceLink.props, { onClick: () => I(!1) }), /* @__PURE__ */ e.createElement(Oa, { workspace: t })) : null);
10199
- }), W = V.map((t) => {
10239
+ }), W = H.map((t) => {
10200
10240
  let n = `${T}__item`, r = t.workspaceId, i = t.isRestricted && t.onRestrictedSelection, a = t.workspaceLink?.type;
10201
10241
  return /* @__PURE__ */ e.createElement("li", {
10202
10242
  key: `${r}-accordion`,
@@ -10294,7 +10334,7 @@ var Zr = {
10294
10334
  }, /* @__PURE__ */ e.createElement("li", {
10295
10335
  className: `pds-dropdown__heading ${T}__item-heading`,
10296
10336
  role: "presentation"
10297
- }, s), U.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, l) : U), G))));
10337
+ }, s), ee.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, l) : ee), G))));
10298
10338
  }, Aa = {
10299
10339
  info: "circleInfo",
10300
10340
  warning: "triangleExclamation",
@@ -10605,7 +10645,7 @@ var Zr = {
10605
10645
  O(!1);
10606
10646
  }, []), B = c(() => {
10607
10647
  D || E(!1);
10608
- }, [D]), ee = c(() => {
10648
+ }, [D]), V = c(() => {
10609
10649
  a || z();
10610
10650
  }, [a, z]);
10611
10651
  u(() => {
@@ -10615,18 +10655,18 @@ var Zr = {
10615
10655
  };
10616
10656
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
10617
10657
  }, [T, z]);
10618
- let V = c(() => {
10658
+ let H = c(() => {
10619
10659
  if (I.current) {
10620
10660
  I.current = !1;
10621
10661
  return;
10622
10662
  }
10623
10663
  z();
10624
- }, [z]), H = c((e) => {
10664
+ }, [z]), U = c((e) => {
10625
10665
  F.current = {
10626
10666
  startY: e.clientY,
10627
10667
  startHeight: N.current?.getBoundingClientRect().height ?? 0
10628
10668
  }, M(!0), P.current?.setPointerCapture(e.pointerId);
10629
- }, []), U = c((e) => {
10669
+ }, []), ee = c((e) => {
10630
10670
  let t = F.current, n = N.current;
10631
10671
  if (!t || !n) return;
10632
10672
  let r = e.clientY - t.startY, i = C ? window.innerHeight * .96 : t.startHeight;
@@ -10649,7 +10689,7 @@ var Zr = {
10649
10689
  }
10650
10690
  }, /* @__PURE__ */ e.createElement("div", { className: `${x}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
10651
10691
  className: Z([`${x}__scrim`, D ? `${x}__scrim--visible` : null]),
10652
- onClick: ee
10692
+ onClick: V
10653
10693
  }), /* @__PURE__ */ e.createElement("div", {
10654
10694
  ref: N,
10655
10695
  "aria-label": t || (typeof m == "string" ? m : void 0),
@@ -10668,9 +10708,9 @@ var Zr = {
10668
10708
  ref: P,
10669
10709
  "aria-label": f,
10670
10710
  className: `${x}__grabber`,
10671
- onClick: V,
10672
- onPointerDown: H,
10673
- onPointerMove: U,
10711
+ onClick: H,
10712
+ onPointerDown: U,
10713
+ onPointerMove: ee,
10674
10714
  onPointerUp: W,
10675
10715
  type: "button"
10676
10716
  }), /* @__PURE__ */ e.createElement("span", {
@@ -10778,7 +10818,7 @@ var Zr = {
10778
10818
  e || l();
10779
10819
  },
10780
10820
  open: c
10781
- }), { getFloatingProps: v } = z([M(g, { outsidePressEvent: "mousedown" }), V(g, { role: "dialog" })]), { isMounted: b, styles: C } = H(g, {
10821
+ }), { getFloatingProps: v } = z([M(g, { outsidePressEvent: "mousedown" }), H(g, { role: "dialog" })]), { isMounted: b, styles: C } = U(g, {
10782
10822
  duration: {
10783
10823
  close: 200,
10784
10824
  open: 250
@@ -10854,8 +10894,8 @@ var Zr = {
10854
10894
  }), { getFloatingProps: P } = z([
10855
10895
  j(O),
10856
10896
  o ? void 0 : M(O, { outsidePressEvent: "mousedown" }),
10857
- V(O)
10858
- ]), { isMounted: F, styles: I } = H(O, {
10897
+ H(O)
10898
+ ]), { isMounted: F, styles: I } = U(O, {
10859
10899
  duration: {
10860
10900
  open: 300,
10861
10901
  close: 300
@@ -11505,7 +11545,7 @@ var Zr = {
11505
11545
  }, [d]), u(() => {
11506
11546
  f(C);
11507
11547
  }, [C]);
11508
- let A = typeof a, P = "pds-popover", F = Z([`${P}__trigger-custom`, A === "string" ? `${P}__trigger-text` : ""]), I = a ? s : 0, L = h(null), { context: R, floatingStyles: B, middlewareData: ee, refs: U } = N({
11548
+ let A = typeof a, P = "pds-popover", F = Z([`${P}__trigger-custom`, A === "string" ? `${P}__trigger-text` : ""]), I = a ? s : 0, L = h(null), { context: R, floatingStyles: B, middlewareData: V, refs: ee } = N({
11509
11549
  placement: l,
11510
11550
  open: C,
11511
11551
  onOpenChange(e) {
@@ -11524,8 +11564,8 @@ var Zr = {
11524
11564
  }, { getFloatingProps: K, getReferenceProps: q } = z([
11525
11565
  j(R),
11526
11566
  M(R),
11527
- V(R)
11528
- ]), te = ee.arrow?.x ?? 0, J = ee.arrow?.y ?? 0, ne = te + To / 2, re = J + wo, { isMounted: ie } = H(R, {
11567
+ H(R)
11568
+ ]), te = V.arrow?.x ?? 0, J = V.arrow?.y ?? 0, ne = te + To / 2, re = J + wo, { isMounted: ie } = U(R, {
11529
11569
  initial: { transform: "scale(0)" },
11530
11570
  common: ({ side: e }) => ({ transformOrigin: {
11531
11571
  top: `${ne}px calc(100% + ${wo}px)`,
@@ -11538,7 +11578,7 @@ var Zr = {
11538
11578
  className: Z([P, t]),
11539
11579
  ...x
11540
11580
  }, /* @__PURE__ */ e.createElement("span", {
11541
- ref: U.setReference,
11581
+ ref: ee.setReference,
11542
11582
  className: `${P}__trigger`,
11543
11583
  role: "button",
11544
11584
  tabIndex: 0,
@@ -11553,7 +11593,7 @@ var Zr = {
11553
11593
  initialFocus: -1,
11554
11594
  modal: o
11555
11595
  }, /* @__PURE__ */ e.createElement("div", {
11556
- ref: U.setFloating,
11596
+ ref: ee.setFloating,
11557
11597
  className: Z([`${P}__container`, n]),
11558
11598
  style: {
11559
11599
  ...B,
@@ -11905,7 +11945,7 @@ function qo(e) {
11905
11945
  //#endregion
11906
11946
  //#region src/components/SortableList/SortableList.tsx
11907
11947
  var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ children: n, className: r, columns: i, defaultItems: a, getItemLabel: o = (e) => String(e.id), isDragEnabled: l, isItemLocked: u = () => !1, isNestingLocked: d = () => !1, items: p, maxDepth: _ = 0, onReorder: v, renderRow: y, reorderMode: b = "always", screenReaderInstructions: x, ...S }, C) {
11908
- let w = "pds-sortable-list", [T, E] = g(null), D = h(null), [O, k] = g(!1), A = h(!1), [j, M] = g(null), N = h(0), P = h(0), F = h("pointer"), I = h(0), L = h(null), [R, z] = g(0), B = h(0), [ee, V] = g(0), H = h(0), U = c((e, t) => {
11948
+ let w = "pds-sortable-list", [T, E] = g(null), D = h(null), [O, k] = g(!1), A = h(!1), [j, M] = g(null), N = h(0), P = h(0), F = h("pointer"), I = h(0), L = h(null), [R, z] = g(0), B = h(0), [V, H] = g(0), U = h(0), ee = c((e, t) => {
11909
11949
  if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
11910
11950
  e.preventDefault();
11911
11951
  let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
@@ -11922,91 +11962,91 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
11922
11962
  onReorder: v
11923
11963
  });
11924
11964
  f(C, () => ({ resetToSnapshot: J }), [J]);
11925
- let ie = tt(et(Qe, { activationConstraint: { distance: 5 } }), et(Xe, { coordinateGetter: U })), ae = W ? `${w}--reorder-active` : null, oe = m(() => new Set(q.filter((e) => u(e.data)).map((e) => e.id)), [q, u]), se = m(() => new Set(q.filter((e) => d(e.data)).map((e) => e.id)), [q, d]), ce = c((e) => {
11926
- if (_ === 0 || se.has(String(e))) return !1;
11965
+ let ie = tt(et(Qe, { activationConstraint: { distance: 5 } }), et(Xe, { coordinateGetter: ee })), ae = W ? `${w}--reorder-active` : null, Y = m(() => new Set(q.filter((e) => u(e.data)).map((e) => e.id)), [q, u]), oe = m(() => new Set(q.filter((e) => d(e.data)).map((e) => e.id)), [q, d]), se = c((e) => {
11966
+ if (_ === 0 || oe.has(String(e))) return !1;
11927
11967
  let t = q.find((t) => t.id === e);
11928
11968
  return !t || t.depth >= _ ? !1 : t.hasChildren ? !t.isExpanded : !0;
11929
11969
  }, [
11930
11970
  q,
11931
11971
  _,
11932
- se
11933
- ]), le = c((e) => j && ce(j) ? null : at(e), [ce, j]), Y = m(() => {
11934
- if (!T || !j || oe.size === 0 || T === j || ce(j)) return /* @__PURE__ */ new Set();
11972
+ oe
11973
+ ]), ce = c((e) => j && se(j) ? null : at(e), [se, j]), le = m(() => {
11974
+ if (!T || !j || Y.size === 0 || T === j || se(j)) return /* @__PURE__ */ new Set();
11935
11975
  let e = q.findIndex((e) => e.id === T), t = q.findIndex((e) => e.id === j);
11936
11976
  if (e === -1 || t === -1) return /* @__PURE__ */ new Set();
11937
11977
  let [n, r] = e < t ? [e + 1, t - 1] : [t + 1, e - 1];
11938
- return new Set(q.slice(n, r + 1).filter((e) => oe.has(e.id)).map((e) => e.id));
11978
+ return new Set(q.slice(n, r + 1).filter((e) => Y.has(e.id)).map((e) => e.id));
11939
11979
  }, [
11940
11980
  T,
11941
11981
  q,
11942
- ce,
11943
- oe,
11982
+ se,
11983
+ Y,
11944
11984
  j
11945
11985
  ]).size > 0, ue = m(() => T ? q.find((e) => e.id === T) ?? null : null, [T, q]), de = m(() => T ? Ho(G, String(T)) ?? null : null, [T, G]), fe = m(() => {
11946
11986
  let e = ue?.depth ?? 0;
11947
- return !T || !j || O || _ === 0 ? e : Uo(q, String(T), String(j), ee * Jo, Jo, _);
11987
+ return !T || !j || O || _ === 0 ? e : Uo(q, String(T), String(j), V * Jo, Jo, _);
11948
11988
  }, [
11949
11989
  T,
11950
11990
  ue,
11951
- ee,
11991
+ V,
11952
11992
  q,
11953
11993
  O,
11954
11994
  _,
11955
11995
  j
11956
11996
  ]), pe = m(() => {
11957
- if (!T || O || fe === 0 || j && ce(j)) return null;
11997
+ if (!T || O || fe === 0 || j && se(j)) return null;
11958
11998
  let e = q.findIndex((e) => e.id === T);
11959
11999
  return e === -1 ? null : Zo(q, e, fe);
11960
12000
  }, [
11961
12001
  T,
11962
12002
  q,
11963
- ce,
12003
+ se,
11964
12004
  O,
11965
12005
  j,
11966
12006
  fe
11967
12007
  ]), me = c((e) => {
11968
12008
  let { active: t } = e, n = F.current === "keyboard", r = q.find((e) => e.id === t.id);
11969
- 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), B.current = 0, z(0), r?.hasChildren && r?.isExpanded && (re(String(t.id)), L.current = String(t.id));
12009
+ E(t.id), D.current = t.id, k(n), A.current = n, I.current = r?.depth ?? 0, M(null), N.current = 0, P.current = 0, U.current = 0, H(0), B.current = 0, z(0), r?.hasChildren && r?.isExpanded && (re(String(t.id)), L.current = String(t.id));
11970
12010
  }, [q, re]), he = c((e) => {
11971
12011
  let t = $e(e);
11972
- if (!t.length || !D.current || oe.size === 0) return t;
12012
+ if (!t.length || !D.current || Y.size === 0) return t;
11973
12013
  let n = q.findIndex((e) => e.id === D.current);
11974
12014
  for (let e of t) {
11975
12015
  let t = e.id;
11976
12016
  if (t === D.current) return [e];
11977
12017
  let r = q.findIndex((e) => e.id === t);
11978
12018
  if (n === -1 || r === -1) return [e];
11979
- if (oe.has(String(t))) {
12019
+ if (Y.has(String(t))) {
11980
12020
  if (n > r) continue;
11981
- let e = !se.has(String(t)), i = _ > 0 && H.current > 0;
11982
- if (!ce(t) && (!e || !i)) continue;
12021
+ let e = !oe.has(String(t)), i = _ > 0 && U.current > 0;
12022
+ if (!se(t) && (!e || !i)) continue;
11983
12023
  }
11984
12024
  let [i, a] = n < r ? [n + 1, r - 1] : [r + 1, n - 1];
11985
- if (!q.slice(i, a + 1).some((e) => oe.has(e.id))) return [e];
12025
+ if (!q.slice(i, a + 1).some((e) => Y.has(e.id))) return [e];
11986
12026
  }
11987
12027
  return [];
11988
12028
  }, [
11989
12029
  q,
11990
- oe,
11991
- se
12030
+ Y,
12031
+ oe
11992
12032
  ]), ge = c((e) => {
11993
12033
  let t = e.over?.id ?? null, n = D.current;
11994
- if (t && n && t !== n && oe.size > 0) {
12034
+ if (t && n && t !== n && Y.size > 0) {
11995
12035
  let e = q.findIndex((e) => e.id === n), r = q.findIndex((e) => e.id === t);
11996
12036
  if (e !== -1 && r !== -1) {
11997
12037
  let [t, n] = e < r ? [e + 1, r] : [r, e - 1];
11998
- if (q.slice(t, n + 1).some((e) => oe.has(e.id))) return;
12038
+ if (q.slice(t, n + 1).some((e) => Y.has(e.id))) return;
11999
12039
  }
12000
12040
  }
12001
12041
  M(t);
12002
- }, [q, oe]), X = c((e) => {
12042
+ }, [q, Y]), X = c((e) => {
12003
12043
  let t = e.delta.x;
12004
12044
  if (P.current = t, A.current || _ === 0) return;
12005
- let n = Math.floor(t / Jo), r = H.current;
12006
- (n > r || n < r && t < r * Jo - Jo * .4) && (H.current = n, V(n));
12045
+ let n = Math.floor(t / Jo), r = U.current;
12046
+ (n > r || n < r && t < r * Jo - Jo * .4) && (U.current = n, H(n));
12007
12047
  }, [_]), _e = c((e) => {
12008
- let { active: t, over: n } = e, r = A.current, i = B.current, a = H.current;
12009
- E(null), D.current = null, k(!1), A.current = !1, M(null), H.current = 0, V(0), L.current && (K(L.current), L.current = null);
12048
+ let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
12049
+ E(null), D.current = null, k(!1), A.current = !1, M(null), U.current = 0, H(0), L.current && (K(L.current), L.current = null);
12010
12050
  let o = q.findIndex((e) => e.id === t.id), s = r ? i * Jo : a * Jo, c = !n || t.id === n.id, l = n?.id ?? null;
12011
12051
  if (r && i > 0 && c && o > 0 && (l = q[o - 1].id), !l || t.id === l) {
12012
12052
  if (o === -1) return;
@@ -12015,7 +12055,7 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12015
12055
  let n = Uo(q, String(t.id), String(t.id), s, Jo, _);
12016
12056
  if (n === e.depth) return;
12017
12057
  let r = [...q], [i] = r.splice(o, 1), a = Zo(r, o, n);
12018
- if (a && se.has(a)) return;
12058
+ if (a && oe.has(a)) return;
12019
12059
  let c = {
12020
12060
  ...i,
12021
12061
  depth: n,
@@ -12023,7 +12063,7 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12023
12063
  };
12024
12064
  r.splice(o, 0, c);
12025
12065
  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);
12026
- if (l.some((e, t) => oe.has(e) ? u.indexOf(e) !== t : !1)) return;
12066
+ if (l.some((e, t) => Y.has(e) ? u.indexOf(e) !== t : !1)) return;
12027
12067
  te(r), n > 0 && a && K(a);
12028
12068
  return;
12029
12069
  }
@@ -12032,7 +12072,7 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12032
12072
  let d = [...q], f = d[o].depth, [p] = d.splice(o, 1), m = [];
12033
12073
  for (; d.length > o && d[o].depth > f;) m.push(d.splice(o, 1)[0]);
12034
12074
  let h = d.findIndex((e) => e.id === l), g, v;
12035
- if (ce(l)) {
12075
+ if (se(l)) {
12036
12076
  let e = q[u];
12037
12077
  g = Math.min(e.depth + 1, _), v = String(l);
12038
12078
  } else {
@@ -12040,7 +12080,7 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12040
12080
  let e = d[h];
12041
12081
  v = e && e.depth === g - 1 ? String(l) : Zo(d, h, g);
12042
12082
  }
12043
- if (v && se.has(v)) return;
12083
+ if (v && oe.has(v)) return;
12044
12084
  let y = {
12045
12085
  ...p,
12046
12086
  depth: g,
@@ -12048,17 +12088,17 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12048
12088
  }, b = d[h], x = b && b.depth === g - 1 && v === String(l) || o < u ? h + 1 : h;
12049
12089
  d.splice(x, 0, y, ...m);
12050
12090
  let S = new Set([String(t.id), ...m.map((e) => e.id)]);
12051
- q.some((e, t) => !oe.has(e.id) || S.has(e.id) || e.id === v ? !1 : d.findIndex((t) => t.id === e.id) !== t) || (te(d), g > 0 && v !== null && K(v));
12091
+ q.some((e, t) => !Y.has(e.id) || S.has(e.id) || e.id === v ? !1 : d.findIndex((t) => t.id === e.id) !== t) || (te(d), g > 0 && v !== null && K(v));
12052
12092
  }, [
12053
12093
  K,
12054
12094
  q,
12055
12095
  te,
12056
- ce,
12057
- oe,
12096
+ se,
12097
+ Y,
12058
12098
  _,
12059
- se
12099
+ oe
12060
12100
  ]), ve = c(() => {
12061
- E(null), D.current = null, k(!1), A.current = !1, M(null), P.current = 0, H.current = 0, V(0), B.current = 0, z(0), L.current && (K(L.current), L.current = null);
12101
+ E(null), D.current = null, k(!1), A.current = !1, M(null), P.current = 0, U.current = 0, H(0), B.current = 0, z(0), L.current && (K(L.current), L.current = null);
12062
12102
  }, [K]), ye = m(() => ({
12063
12103
  onDragStart({ active: e }) {
12064
12104
  let t = q.find((t) => t.id === e.id), n = Ho(G, String(e.id));
@@ -12102,7 +12142,7 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12102
12142
  sensors: ie
12103
12143
  }, /* @__PURE__ */ e.createElement(nt, {
12104
12144
  items: ne,
12105
- strategy: le
12145
+ strategy: ce
12106
12146
  }, /* @__PURE__ */ e.createElement("div", {
12107
12147
  className: Z([
12108
12148
  w,
@@ -12124,7 +12164,7 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12124
12164
  index: t.index,
12125
12165
  isDragging: t.id === T,
12126
12166
  isExpanded: t.isExpanded,
12127
- isLocked: oe.has(t.id),
12167
+ isLocked: Y.has(t.id),
12128
12168
  toggleExpand: () => re(t.id)
12129
12169
  }, r = y(t.data, n), a = t.id === T, o = {
12130
12170
  columns: i,
@@ -12132,10 +12172,10 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12132
12172
  hasChildren: t.hasChildren,
12133
12173
  isDragActive: W,
12134
12174
  isDragging: a,
12135
- isDropTarget: t.id === j && ce(t.id),
12136
- isProjectedParent: t.id === pe && !se.has(t.id),
12175
+ isDropTarget: t.id === j && se(t.id),
12176
+ isProjectedParent: t.id === pe && !oe.has(t.id),
12137
12177
  isExpanded: t.isExpanded,
12138
- ...oe.has(t.id) ? { isLocked: !0 } : {},
12178
+ ...Y.has(t.id) ? { isLocked: !0 } : {},
12139
12179
  onToggleExpand: () => re(t.id),
12140
12180
  ...a && !O && _ > 0 ? { projectedDepthDelta: fe - t.depth } : {}
12141
12181
  };
@@ -12145,7 +12185,7 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12145
12185
  }) : /* @__PURE__ */ e.createElement("div", { key: t.id }, r);
12146
12186
  }))), /* @__PURE__ */ e.createElement(Ye, null, T && de ? /* @__PURE__ */ e.createElement("div", { className: Z([
12147
12187
  "pds-sortable-list pds-sortable-list--overlay",
12148
- Y ? "pds-sortable-list--overlay-invalid" : null,
12188
+ le ? "pds-sortable-list--overlay-invalid" : null,
12149
12189
  O ? "pds-sortable-list--overlay-keyboard" : null
12150
12190
  ]) }, (() => {
12151
12191
  let t = ue?.depth ?? 0, n = O ? Math.max(0, Math.min(_, t + R)) : t, r = {
@@ -12513,8 +12553,8 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12513
12553
  className: Z([a, t ?? ""]),
12514
12554
  ...i
12515
12555
  }, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
12516
- }, us = ({ 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: f, emptyState: p, emptyStateHeading: _ = "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: B, onPageChange: ee, 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: ae, sortKey: oe, sortOrder: se, totalItemCount: ce, ...le }) => {
12517
- let Y = "pds-table", ue = d(), de = d(), fe = h(null), pe = ga() === "sm" && O, me = A && !pe, he = r.some((e) => e.cardVisible) ? r.filter((e) => e.cardVisible) : r.slice(0, 1), ge = J !== void 0 || H === void 0 && k, X = J !== void 0 || H !== void 0 || k, _e = W !== void 0, ve = ee !== void 0, ye = V !== void 0, be = ve || P !== void 0 || G !== void 0, xe = re.length > 0 || ve && (ce ?? 0) > 0, [Se, Ce] = g({
12556
+ }, us = ({ 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: f, emptyState: p, emptyStateHeading: _ = "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: B, onPageChange: V, onPageSizeChange: H, onRowInspect: U, onRowSelectionChange: ee, 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: ae, sortKey: Y, sortOrder: oe, totalItemCount: se, ...ce }) => {
12557
+ let le = "pds-table", ue = d(), de = d(), fe = h(null), pe = ga() === "sm" && O, me = A && !pe, he = r.some((e) => e.cardVisible) ? r.filter((e) => e.cardVisible) : r.slice(0, 1), ge = J !== void 0 || U === void 0 && k, X = J !== void 0 || U !== void 0 || k, _e = W !== void 0, ve = V !== void 0, ye = H !== void 0, be = ve || P !== void 0 || G !== void 0, xe = re.length > 0 || ve && (se ?? 0) > 0, [Se, Ce] = g({
12518
12558
  key: a ?? "",
12519
12559
  order: a === void 0 ? "asc" : o
12520
12560
  }), we = m(() => {
@@ -12534,30 +12574,30 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12534
12574
  je && Fe(je);
12535
12575
  }, [je]);
12536
12576
  let Ie = ve ? P ?? 10 : De, Le = (e) => {
12537
- ye ? V(e) : Oe(e), ve || Ee(1);
12577
+ ye ? H(e) : Oe(e), ve || Ee(1);
12538
12578
  };
12539
12579
  u(() => {
12540
12580
  ve || Ee(1);
12541
12581
  }, [re.length, ve]), u(() => {
12542
- process.env.NODE_ENV !== "production" && i !== void 0 && !ee && console.warn("[Table] `currentPage` was provided without `onPageChange`. Controlled pagination requires both props. The table is running in uncontrolled mode.");
12582
+ process.env.NODE_ENV !== "production" && i !== void 0 && !V && console.warn("[Table] `currentPage` was provided without `onPageChange`. Controlled pagination requires both props. The table is running in uncontrolled mode.");
12543
12583
  }, []);
12544
- let Re = U !== void 0, ze = ae !== void 0, [Be, Ve] = g(/* @__PURE__ */ new Set()), He = ze ? new Set(ae) : Be, Ue = m(() => new Map(re.map((e, t) => [e, t])), [re]), We = (e, t) => C ? C(e) : String(Ue.get(e) ?? t), Ge = m(() => we.findIndex((e, t) => (C ? C(e) : String(Ue.get(e) ?? t)) === je), [
12584
+ let Re = ee !== void 0, ze = ae !== void 0, [Be, Ve] = g(/* @__PURE__ */ new Set()), He = ze ? new Set(ae) : Be, Ue = m(() => new Map(re.map((e, t) => [e, t])), [re]), We = (e, t) => C ? C(e) : String(Ue.get(e) ?? t), Ge = m(() => we.findIndex((e, t) => (C ? C(e) : String(Ue.get(e) ?? t)) === je), [
12545
12585
  we,
12546
12586
  je,
12547
12587
  C,
12548
12588
  Ue
12549
12589
  ]), Ke = Ge >= 0 ? we[Ge] : null, qe = (e, t) => {
12550
- (pe ? ge : J !== void 0 && D) && j === void 0 && Ae(t), H?.(e, t);
12590
+ (pe ? ge : J !== void 0 && D) && j === void 0 && Ae(t), U?.(e, t);
12551
12591
  }, Je = () => {
12552
12592
  j === void 0 && Ae(null);
12553
12593
  }, Ye = () => {
12554
12594
  if (we.length === 0) return;
12555
12595
  let e = (Ge - 1 + we.length) % we.length, t = we[e], n = We(t, e);
12556
- j === void 0 && Ae(n), H?.(t, n), B?.(t, n);
12596
+ j === void 0 && Ae(n), U?.(t, n), B?.(t, n);
12557
12597
  }, Xe = () => {
12558
12598
  if (we.length === 0) return;
12559
12599
  let e = (Ge + 1) % we.length, t = we[e], n = We(t, e);
12560
- j === void 0 && Ae(n), H?.(t, n), z?.(t, n);
12600
+ j === void 0 && Ae(n), U?.(t, n), z?.(t, n);
12561
12601
  }, Ze = je ?? Pe, Qe = m(() => we.findIndex((e, t) => (C ? C(e) : String(Ue.get(e) ?? t)) === Ze), [
12562
12602
  we,
12563
12603
  Ze,
@@ -12588,18 +12628,18 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12588
12628
  };
12589
12629
  u(() => {
12590
12630
  if (!Me) return;
12591
- let e = fe.current, t = e?.querySelector(`.${Y}__row--inspected`);
12631
+ let e = fe.current, t = e?.querySelector(`.${le}__row--inspected`);
12592
12632
  if (!e || !t) return;
12593
12633
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = e.querySelector("thead")?.getBoundingClientRect().height ?? 0, a = n.top + i;
12594
12634
  r.top < a ? e.scrollTop -= a - r.top : r.bottom > n.bottom && (e.scrollTop += r.bottom - n.bottom);
12595
12635
  let o = document.activeElement;
12596
- o instanceof HTMLElement && o.classList.contains(`${Y}__row--inspectable`) && t.focus({ preventScroll: !0 });
12636
+ o instanceof HTMLElement && o.classList.contains(`${le}__row--inspectable`) && t.focus({ preventScroll: !0 });
12597
12637
  }, [
12598
12638
  je,
12599
12639
  Me,
12600
- Y
12640
+ le
12601
12641
  ]);
12602
- let rt = _e ? oe ?? "" : Se.key, it = _e ? se ?? "asc" : Se.order, at = m(() => {
12642
+ let rt = _e ? Y ?? "" : Se.key, it = _e ? oe ?? "asc" : Se.order, at = m(() => {
12603
12643
  if (M) return [];
12604
12644
  let e = we;
12605
12645
  if (!ve && be && Ie) {
@@ -12615,12 +12655,12 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12615
12655
  Ie,
12616
12656
  M
12617
12657
  ]), ot = (e) => {
12618
- _e ? W(e, oe === e && se === "asc" ? "desc" : "asc") : Ce((t) => ({
12658
+ _e ? W(e, Y === e && oe === "asc" ? "desc" : "asc") : Ce((t) => ({
12619
12659
  key: e,
12620
12660
  order: t.key === e && t.order === "asc" ? "desc" : "asc"
12621
12661
  }));
12622
12662
  }, st = (e) => rt === e ? it === "asc" ? "ascending" : "descending" : "none", ct = (e, t) => {
12623
- let n = `${Y}__sort-button-${t}`, r = !M && at.length === 0;
12663
+ let n = `${le}__sort-button-${t}`, r = !M && at.length === 0;
12624
12664
  if (M || r || rt === "") return t === "top" ? `${n}--inactive` : "";
12625
12665
  let i = rt === e;
12626
12666
  return t === "top" ? i && it === "asc" ? "" : `${n}--inactive` : i && it === "desc" ? `${n}--desc` : "";
@@ -12629,10 +12669,10 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12629
12669
  return N(t, r) && e.push(r), e;
12630
12670
  }, []), ut = lt.length > 0 && lt.every((e) => He.has(e)), dt = !ut && lt.some((e) => He.has(e)), ft = (e) => {
12631
12671
  let t = new Set(He);
12632
- t.has(e) ? t.delete(e) : t.add(e), ze || Ve(t), U?.(Array.from(t));
12672
+ t.has(e) ? t.delete(e) : t.add(e), ze || Ve(t), ee?.(Array.from(t));
12633
12673
  }, pt = () => {
12634
12674
  let e = new Set(He);
12635
- ut || dt ? lt.forEach((t) => e.delete(t)) : lt.forEach((t) => e.add(t)), ze || Ve(e), U?.(Array.from(e));
12675
+ ut || dt ? lt.forEach((t) => e.delete(t)) : lt.forEach((t) => e.add(t)), ze || Ve(e), ee?.(Array.from(e));
12636
12676
  }, mt = (t) => /* @__PURE__ */ e.createElement("tr", { key: `skeleton-${t}` }, Re && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Rr, {
12637
12677
  shape: "rounded",
12638
12678
  size: {
@@ -12653,13 +12693,13 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12653
12693
  iconName: "emptySet",
12654
12694
  message: v
12655
12695
  }))), gt = (t, n) => {
12656
- let i = We(t, n), a = H !== void 0 && J === void 0 || J !== void 0 && D, o = a && je === i, s = N(t, i), c = s ? void 0 : w?.(t, i), l = T(t, n + 1), u = c ? `${l} (${c})` : l;
12696
+ let i = We(t, n), a = U !== void 0 && J === void 0 || J !== void 0 && D, o = a && je === i, s = N(t, i), c = s ? void 0 : w?.(t, i), l = T(t, n + 1), u = c ? `${l} (${c})` : l;
12657
12697
  return /* @__PURE__ */ e.createElement("tr", {
12658
12698
  key: `row-${i}`,
12659
12699
  "aria-selected": a ? o : void 0,
12660
12700
  className: Z([
12661
- a ? `${Y}__row--inspectable` : null,
12662
- o ? `${Y}__row--inspected` : null,
12701
+ a ? `${le}__row--inspectable` : null,
12702
+ o ? `${le}__row--inspected` : null,
12663
12703
  S?.(t, i) ?? null
12664
12704
  ]),
12665
12705
  onClick: a ? () => qe(t, i) : void 0,
@@ -12679,7 +12719,7 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12679
12719
  key: `${i}-${n.id}`,
12680
12720
  className: n.cellClassName
12681
12721
  }, t[n.id])));
12682
- }, _t = (t) => /* @__PURE__ */ e.createElement("dl", { className: `${Y}__auto-detail` }, r.map((n) => /* @__PURE__ */ e.createElement(e.Fragment, { key: n.id }, /* @__PURE__ */ e.createElement("dt", null, n.header), /* @__PURE__ */ e.createElement("dd", null, t[n.id])))), vt = (t) => /* @__PURE__ */ e.createElement("li", { key: `skeleton-card-${t}` }, /* @__PURE__ */ e.createElement("div", { className: `${Y}__card` }, /* @__PURE__ */ e.createElement("div", { className: `${Y}__card-main` }, /* @__PURE__ */ e.createElement("div", { className: `${Y}__card-body` }, /* @__PURE__ */ e.createElement(Rr, {
12722
+ }, _t = (t) => /* @__PURE__ */ e.createElement("dl", { className: `${le}__auto-detail` }, r.map((n) => /* @__PURE__ */ e.createElement(e.Fragment, { key: n.id }, /* @__PURE__ */ e.createElement("dt", null, n.header), /* @__PURE__ */ e.createElement("dd", null, t[n.id])))), vt = (t) => /* @__PURE__ */ e.createElement("li", { key: `skeleton-card-${t}` }, /* @__PURE__ */ e.createElement("div", { className: `${le}__card` }, /* @__PURE__ */ e.createElement("div", { className: `${le}__card-main` }, /* @__PURE__ */ e.createElement("div", { className: `${le}__card-body` }, /* @__PURE__ */ e.createElement(Rr, {
12683
12723
  shape: "rounded",
12684
12724
  size: { height: 1 }
12685
12725
  }))))), yt = () => /* @__PURE__ */ e.createElement("li", null, p ?? /* @__PURE__ */ e.createElement(Sr, {
@@ -12687,7 +12727,7 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12687
12727
  iconName: "emptySet",
12688
12728
  message: v
12689
12729
  })), bt = (t, n) => {
12690
- let r = We(t, n), i = !Re && X && je === r, a = Re && He.has(r), [o, ...s] = he, c = N(t, r), l = c ? void 0 : w?.(t, r), u = T(t, n + 1), d = l ? `${u} (${l})` : u, f = /* @__PURE__ */ e.createElement("div", { className: `${Y}__card-main` }, Re && /* @__PURE__ */ e.createElement("span", {
12730
+ let r = We(t, n), i = !Re && X && je === r, a = Re && He.has(r), [o, ...s] = he, c = N(t, r), l = c ? void 0 : w?.(t, r), u = T(t, n + 1), d = l ? `${u} (${l})` : u, f = /* @__PURE__ */ e.createElement("div", { className: `${le}__card-main` }, Re && /* @__PURE__ */ e.createElement("span", {
12691
12731
  "aria-hidden": "true",
12692
12732
  className: "pds-checkbox"
12693
12733
  }, /* @__PURE__ */ e.createElement("span", { className: Z(["pds-checkbox__box", a ? "pds-checkbox__box--checked" : null]) }, a && /* @__PURE__ */ e.createElement("svg", {
@@ -12697,14 +12737,14 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12697
12737
  viewBox: "0 0 12 12",
12698
12738
  width: "12",
12699
12739
  xmlns: "http://www.w3.org/2000/svg"
12700
- }, /* @__PURE__ */ e.createElement("path", { d: "M9.85474 3.64666C10.1032 3.32078 10.0258 2.86817 9.67727 2.63583C9.32878 2.4035 8.84476 2.47591 8.5963 2.80179L4.8694 7.65977L3.32056 6.21143C3.01724 5.9278 2.52677 5.9278 2.22669 6.21143C1.9266 6.49506 1.92337 6.9537 2.22346 7.23734L4.41765 9.28916C4.57899 9.44003 4.80164 9.51546 5.02751 9.49736C5.25338 9.47925 5.4599 9.37063 5.59219 9.19864L9.85151 3.64666H9.85474Z" })))), /* @__PURE__ */ e.createElement("div", { className: `${Y}__card-body` }, o && /* @__PURE__ */ e.createElement("div", { className: `${Y}__card-title` }, t[o.id]), s.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${Y}__card-meta` }, s.map((n) => /* @__PURE__ */ e.createElement(e.Fragment, { key: n.id }, /* @__PURE__ */ e.createElement("span", null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, On(n.header), ":", " "), t[n.id]))))), !Re && X && /* @__PURE__ */ e.createElement(Q, {
12701
- className: `${Y}__card-chevron`,
12740
+ }, /* @__PURE__ */ e.createElement("path", { d: "M9.85474 3.64666C10.1032 3.32078 10.0258 2.86817 9.67727 2.63583C9.32878 2.4035 8.84476 2.47591 8.5963 2.80179L4.8694 7.65977L3.32056 6.21143C3.01724 5.9278 2.52677 5.9278 2.22669 6.21143C1.9266 6.49506 1.92337 6.9537 2.22346 7.23734L4.41765 9.28916C4.57899 9.44003 4.80164 9.51546 5.02751 9.49736C5.25338 9.47925 5.4599 9.37063 5.59219 9.19864L9.85151 3.64666H9.85474Z" })))), /* @__PURE__ */ e.createElement("div", { className: `${le}__card-body` }, o && /* @__PURE__ */ e.createElement("div", { className: `${le}__card-title` }, t[o.id]), s.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${le}__card-meta` }, s.map((n) => /* @__PURE__ */ e.createElement(e.Fragment, { key: n.id }, /* @__PURE__ */ e.createElement("span", null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, On(n.header), ":", " "), t[n.id]))))), !Re && X && /* @__PURE__ */ e.createElement(Q, {
12741
+ className: `${le}__card-chevron`,
12702
12742
  iconName: "angleRight",
12703
12743
  size: "m"
12704
12744
  })), p = Z([
12705
- `${Y}__card`,
12706
- Re ? `${Y}__card--selectable` : X ? `${Y}__row--inspectable` : null,
12707
- i || a ? `${Y}__row--inspected` : null,
12745
+ `${le}__card`,
12746
+ Re ? `${le}__card--selectable` : X ? `${le}__row--inspectable` : null,
12747
+ i || a ? `${le}__row--inspected` : null,
12708
12748
  S?.(t, r) ?? null
12709
12749
  ]);
12710
12750
  return Re ? /* @__PURE__ */ e.createElement("li", { key: `card-${r}` }, /* @__PURE__ */ e.createElement("button", {
@@ -12736,16 +12776,16 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12736
12776
  style: St
12737
12777
  }, pe ? /* @__PURE__ */ e.createElement("ul", {
12738
12778
  "aria-busy": M,
12739
- className: Z([`${Y}-wrapper__card-list`, t]),
12740
- ...le
12779
+ className: Z([`${le}-wrapper__card-list`, t]),
12780
+ ...ce
12741
12781
  }, M ? Array.from({ length: F }, (e, t) => vt(t)) : at.length === 0 ? yt() : at.map((e, t) => bt(e, t))) : /* @__PURE__ */ e.createElement("table", {
12742
12782
  "aria-busy": M,
12743
12783
  className: Z([
12744
- Y,
12745
- s === "compact" ? `${Y}--compact` : null,
12784
+ le,
12785
+ s === "compact" ? `${le}--compact` : null,
12746
12786
  t
12747
12787
  ]),
12748
- ...le
12788
+ ...ce
12749
12789
  }, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, Re && /* @__PURE__ */ e.createElement("th", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(fi, {
12750
12790
  checked: ut,
12751
12791
  id: de,
@@ -12759,16 +12799,16 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12759
12799
  className: t.headerClassName
12760
12800
  }, t.sortable ? /* @__PURE__ */ e.createElement("button", {
12761
12801
  "aria-label": E(On(t.header)),
12762
- className: `${Y}__sort-button`,
12802
+ className: `${le}__sort-button`,
12763
12803
  onClick: () => ot(t.id),
12764
12804
  type: "button"
12765
12805
  }, t.header, /* @__PURE__ */ e.createElement("span", {
12766
12806
  "aria-hidden": "true",
12767
- className: `${Y}__sort-icons`
12768
- }, /* @__PURE__ */ e.createElement("span", { className: Z([`${Y}__sort-button-top`, ct(t.id, "top")]) }, /* @__PURE__ */ e.createElement(Q, {
12807
+ className: `${le}__sort-icons`
12808
+ }, /* @__PURE__ */ e.createElement("span", { className: Z([`${le}__sort-button-top`, ct(t.id, "top")]) }, /* @__PURE__ */ e.createElement(Q, {
12769
12809
  iconName: "caretUp",
12770
12810
  size: "m"
12771
- })), /* @__PURE__ */ e.createElement("span", { className: Z([`${Y}__sort-button-bottom`, ct(t.id, "bottom")]) }, /* @__PURE__ */ e.createElement(Q, {
12811
+ })), /* @__PURE__ */ e.createElement("span", { className: Z([`${le}__sort-button-bottom`, ct(t.id, "bottom")]) }, /* @__PURE__ */ e.createElement(Q, {
12772
12812
  iconName: "caretDown",
12773
12813
  size: "m"
12774
12814
  })))) : /* @__PURE__ */ e.createElement("span", null, t.header))))), /* @__PURE__ */ e.createElement("tbody", null, M ? Array.from({ length: F }, (e, t) => mt(t)) : at.length === 0 ? ht() : at.map((e, t) => gt(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(wr, {
@@ -12787,9 +12827,9 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12787
12827
  currentPage: ve ? i ?? 1 : Te,
12788
12828
  itemsPerPage: Ie,
12789
12829
  labelStrings: q,
12790
- onPageChange: ve ? ee : Ee,
12830
+ onPageChange: ve ? V : Ee,
12791
12831
  pageControlType: pe ? "static" : "dropdown",
12792
- totalItemCount: ve ? ce ?? 0 : re.length
12832
+ totalItemCount: ve ? se ?? 0 : re.length
12793
12833
  }))), 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(Pn, {
12794
12834
  ariaLabel: n,
12795
12835
  onClick: Je,
@@ -12818,7 +12858,7 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12818
12858
  },
12819
12859
  title: l
12820
12860
  }, $e && (J ? J($e, tt) : _t($e)), $e && (ne || c) && /* @__PURE__ */ e.createElement("div", {
12821
- className: `${Y}-wrapper__mobile-sheet-nav`,
12861
+ className: `${le}-wrapper__mobile-sheet-nav`,
12822
12862
  slot: "footer"
12823
12863
  }, ne ? ne($e, tt) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Mn, {
12824
12864
  hasBorder: !0,
@@ -13162,9 +13202,9 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13162
13202
  maxWidth: j ? void 0 : `${E}rem`,
13163
13203
  minWidth: j ? `${w}rem` : `${D}rem`,
13164
13204
  width: z
13165
- }, ee = h(!1), V = ga(), H = V === "sm", U = () => {
13166
- if (!H) {
13167
- if (ee.current = !1, x) {
13205
+ }, V = h(!1), H = ga(), U = H === "sm", ee = () => {
13206
+ if (!U) {
13207
+ if (V.current = !1, x) {
13168
13208
  x();
13169
13209
  return;
13170
13210
  }
@@ -13172,13 +13212,13 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13172
13212
  }
13173
13213
  };
13174
13214
  u(() => {
13175
- V === "sm" && !j ? (ee.current = !0, x ? x() : M(!0)) : V !== "sm" && ee.current && (ee.current = !1, x ? x() : M(!1));
13176
- }, [V]);
13177
- let W = d && s && !H;
13215
+ H === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : H !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
13216
+ }, [H]);
13217
+ let W = d && s && !U;
13178
13218
  nn("[", (e) => {
13179
- e.preventDefault(), j || U();
13219
+ e.preventDefault(), j || ee();
13180
13220
  }, { enabled: W }), nn("]", (e) => {
13181
- e.preventDefault(), j && U();
13221
+ e.preventDefault(), j && ee();
13182
13222
  }, { enabled: W });
13183
13223
  let G = h(null);
13184
13224
  p(() => {
@@ -13200,14 +13240,14 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13200
13240
  r.disconnect(), i?.disconnect(), window.removeEventListener("resize", t);
13201
13241
  };
13202
13242
  }, [R]);
13203
- let K = gt(t), q = K.__unslotted, te = K.header, J = K.footer, ne = K.sidebar, re = K.identity, ie = K["content-top"], ae = K.navigation, oe = K["content-bottom"], se = re || ie || ae || oe, ce = se ? /* @__PURE__ */ e.createElement(e.Fragment, null, (re || o) && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-identity` }, re, o && !j && /* @__PURE__ */ e.createElement(Mn, {
13243
+ let K = gt(t), q = K.__unslotted, te = K.header, J = K.footer, ne = K.sidebar, re = K.identity, ie = K["content-top"], ae = K.navigation, Y = K["content-bottom"], oe = re || ie || ae || Y, se = oe ? /* @__PURE__ */ e.createElement(e.Fragment, null, (re || o) && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-identity` }, re, o && !j && /* @__PURE__ */ e.createElement(Mn, {
13204
13244
  hasBorder: !0,
13205
13245
  ariaLabel: F.drawerToggle,
13206
13246
  className: `${N}__drawer-toggle`,
13207
13247
  iconName: "sidebar",
13208
13248
  onClick: b,
13209
13249
  size: "s"
13210
- })), ie && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-content-top` }, ie), ae && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-navigation` }, ae), oe && /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-content-bottom` }, oe)) : ne, le = a(_, {
13250
+ })), 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)) : ne, ce = a(_, {
13211
13251
  ...y,
13212
13252
  className: Z([`${N}__main`, y?.className]),
13213
13253
  id: I,
@@ -13219,13 +13259,13 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13219
13259
  }, /* @__PURE__ */ e.createElement("div", {
13220
13260
  className: `${N}__main-inner`,
13221
13261
  style: { maxWidth: L }
13222
- }, q)), Y = /* @__PURE__ */ e.createElement("div", {
13262
+ }, q)), le = /* @__PURE__ */ e.createElement("div", {
13223
13263
  className: `${N}__content-column`,
13224
13264
  style: { backgroundColor: m || void 0 }
13225
- }, le, J && /* @__PURE__ */ e.createElement("div", { className: `${N}__footer` }, /* @__PURE__ */ e.createElement("div", {
13265
+ }, ce, J && /* @__PURE__ */ e.createElement("div", { className: `${N}__footer` }, /* @__PURE__ */ e.createElement("div", {
13226
13266
  className: `${N}__footer-inner`,
13227
13267
  style: { maxWidth: L }
13228
- }, J))), ue = /* @__PURE__ */ e.createElement(e.Fragment, null, (ne || se) && /* @__PURE__ */ e.createElement("div", {
13268
+ }, J))), ue = /* @__PURE__ */ e.createElement(e.Fragment, null, (ne || oe) && /* @__PURE__ */ e.createElement("div", {
13229
13269
  ...O,
13230
13270
  className: Z([
13231
13271
  `${N}__sidebar`,
@@ -13233,7 +13273,7 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13233
13273
  O?.className
13234
13274
  ]),
13235
13275
  style: B
13236
- }, s && !H && /* @__PURE__ */ e.createElement(an, {
13276
+ }, s && !U && /* @__PURE__ */ e.createElement(an, {
13237
13277
  disableTapTrigger: !0,
13238
13278
  className: `${N}__sidebar-toggle-tooltip`,
13239
13279
  content: j ? F.expandSidebar : F.collapseSidebar,
@@ -13241,7 +13281,7 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13241
13281
  "aria-expanded": !j,
13242
13282
  "aria-label": j ? F.expandSidebar : F.collapseSidebar,
13243
13283
  className: `${N}__sidebar-toggle-button`,
13244
- onClick: U,
13284
+ onClick: ee,
13245
13285
  type: "button"
13246
13286
  }, /* @__PURE__ */ e.createElement("span", { className: `${N}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(Q, {
13247
13287
  iconName: "angleLeft",
@@ -13253,7 +13293,7 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13253
13293
  crossAxis: -96
13254
13294
  },
13255
13295
  preferredPlacement: "right-end"
13256
- }), /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-inner` }, ce)), Y);
13296
+ }), /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-inner` }, se)), le);
13257
13297
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
13258
13298
  ref: G,
13259
13299
  className: Z([