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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/components/badges/Badge/Badge.d.ts +1 -1
  2. package/dist/components/icons/Icon/generated-icon-data.d.ts +23 -2
  3. package/dist/components/icons/PlatformIcon/PlatformIcon.d.ts +1 -1
  4. package/dist/components/inputs/Combobox/Combobox.d.ts +6 -0
  5. package/dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +7 -1
  6. package/dist/components/inputs/Select/Select.d.ts +7 -1
  7. package/dist/css/component-css/pds-badge.css +1 -1
  8. package/dist/css/component-css/pds-combobox-multiselect.css +1 -1
  9. package/dist/css/component-css/pds-combobox.css +1 -1
  10. package/dist/css/component-css/pds-dropdown.css +1 -1
  11. package/dist/css/component-css/pds-file-upload.css +1 -7
  12. package/dist/css/component-css/pds-index.css +8 -14
  13. package/dist/css/component-css/pds-input-group.css +1 -1
  14. package/dist/css/component-css/pds-input-utilities.css +1 -1
  15. package/dist/css/component-css/pds-platform-icon.css +1 -1
  16. package/dist/css/component-css/pds-progress-bar.css +1 -1
  17. package/dist/css/component-css/pds-select.css +1 -1
  18. package/dist/css/component-css/pds-tab-menu.css +2 -2
  19. package/dist/css/component-css/pds-tabs.css +1 -1
  20. package/dist/css/pds-components.css +8 -14
  21. package/dist/css/pds-core.css +1 -1
  22. package/dist/index.css +1 -1
  23. package/dist/index.js +604 -557
  24. package/dist/index.js.map +1 -1
  25. package/dist/svg/files.svg +3 -0
  26. package/dist/svg/list.svg +3 -0
  27. package/dist/svg/rectanglesMixed.svg +3 -0
  28. package/dist/utilities/ai-visuals/AiVisualsDemo.d.ts +8 -0
  29. package/package.json +1 -1
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";
@@ -1154,6 +1154,13 @@ var st = Object.create, ct = Object.defineProperty, lt = Object.getOwnPropertyDe
1154
1154
  svgPathData: "M208 48L96 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l80 0 0 48-80 0c-35.3 0-64-28.7-64-64L32 64C32 28.7 60.7 0 96 0L229.5 0c17 0 33.3 6.7 45.3 18.7L397.3 141.3c12 12 18.7 28.3 18.7 45.3l0 149.5-48 0 0-128-88 0c-39.8 0-72-32.2-72-72l0-88zM348.1 160L256 67.9 256 136c0 13.3 10.7 24 24 24l68.1 0zM240 380l32 0c33.1 0 60 26.9 60 60s-26.9 60-60 60l-12 0 0 28c0 11-9 20-20 20s-20-9-20-20l0-128c0-11 9-20 20-20zm32 80c11 0 20-9 20-20s-9-20-20-20l-12 0 0 40 12 0zm96-80l32 0c28.7 0 52 23.3 52 52l0 64c0 28.7-23.3 52-52 52l-32 0c-11 0-20-9-20-20l0-128c0-11 9-20 20-20zm32 128c6.6 0 12-5.4 12-12l0-64c0-6.6-5.4-12-12-12l-12 0 0 88 12 0zm76-108c0-11 9-20 20-20l48 0c11 0 20 9 20 20s-9 20-20 20l-28 0 0 24 28 0c11 0 20 9 20 20s-9 20-20 20l-28 0 0 44c0 11-9 20-20 20s-20-9-20-20l0-128z",
1155
1155
  width: 576
1156
1156
  },
1157
+ files: {
1158
+ aliases: ["pages"],
1159
+ categories: ["actions", "documents"],
1160
+ height: 512,
1161
+ svgPathData: "M256 48l0 72c0 39.8 32.2 72 72 72l72 0 0 192c0 8.8-7.2 16-16 16l-224 0c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l96 0zm48 3.9l92.1 92.1-68.1 0c-13.3 0-24-10.7-24-24l0-68.1zM160 0C124.7 0 96 28.7 96 64l0 320c0 35.3 28.7 64 64 64l224 0c35.3 0 64-28.7 64-64l0-236.1c0-12.7-5.1-24.9-14.1-33.9L334.1 14.1c-9-9-21.2-14.1-33.9-14.1L160 0zM24 96C10.7 96 0 106.7 0 120L0 480c0 35.3 28.7 64 64 64l264 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L64 496c-8.8 0-16-7.2-16-16l0-360c0-13.3-10.7-24-24-24z",
1162
+ width: 448
1163
+ },
1157
1164
  fileZip: {
1158
1165
  aliases: [
1159
1166
  "archive",
@@ -1458,6 +1465,13 @@ var st = Object.create, ct = Object.defineProperty, lt = Object.getOwnPropertyDe
1458
1465
  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
1466
  width: 448
1460
1467
  },
1468
+ list: {
1469
+ aliases: [],
1470
+ categories: ["data", "navigation"],
1471
+ height: 512,
1472
+ 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",
1473
+ width: 512
1474
+ },
1461
1475
  listCheck: {
1462
1476
  aliases: [
1463
1477
  "checklist",
@@ -1722,6 +1736,13 @@ var st = Object.create, ct = Object.defineProperty, lt = Object.getOwnPropertyDe
1722
1736
  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
1737
  width: 512
1724
1738
  },
1739
+ rectanglesMixed: {
1740
+ aliases: ["bento", "boxes"],
1741
+ categories: ["navigation", "objects"],
1742
+ height: 512,
1743
+ 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",
1744
+ width: 512
1745
+ },
1725
1746
  reply: {
1726
1747
  aliases: ["respond", "answer"],
1727
1748
  categories: ["actions", "communication"],
@@ -2364,7 +2385,7 @@ var st = Object.create, ct = Object.defineProperty, lt = Object.getOwnPropertyDe
2364
2385
  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
2386
  width: 576
2366
2387
  }
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 }) => {
2388
+ }, 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.files.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
2389
  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
2390
  if (f?.type === "complex") p = f.render();
2370
2391
  else {
@@ -2508,9 +2529,9 @@ var st = Object.create, ct = Object.defineProperty, lt = Object.getOwnPropertyDe
2508
2529
  }),
2509
2530
  I(C, { enabled: !i }),
2510
2531
  M(C),
2511
- V(C, { role: "tooltip" }),
2532
+ H(C, { role: "tooltip" }),
2512
2533
  j(C, { enabled: !a && !x })
2513
- ]), { isMounted: F, styles: R } = H(C, {
2534
+ ]), { isMounted: F, styles: R } = U(C, {
2514
2535
  duration: {
2515
2536
  open: 0,
2516
2537
  close: 300
@@ -3048,7 +3069,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3048
3069
  let n = t.toLowerCase();
3049
3070
  return e.find((e) => (e?.textContent?.trim().toLowerCase() ?? "").startsWith(n));
3050
3071
  }, 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({
3072
+ 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
3073
  nodeId: C,
3053
3074
  open: v,
3054
3075
  onOpenChange: y,
@@ -3084,7 +3105,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3084
3105
  event: "mousedown"
3085
3106
  }),
3086
3107
  M(I),
3087
- V(I, { role: d }),
3108
+ H(I, { role: d }),
3088
3109
  L(I, {
3089
3110
  enabled: l,
3090
3111
  move: !1,
@@ -3108,7 +3129,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3108
3129
  allowEscape: e,
3109
3130
  focusItemOnHover: !_
3110
3131
  }),
3111
- U(I, {
3132
+ ee(I, {
3112
3133
  enabled: a,
3113
3134
  listRef: S,
3114
3135
  activeIndex: b,
@@ -3118,7 +3139,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3118
3139
  },
3119
3140
  findMatch: Fn
3120
3141
  })
3121
- ]), { isMounted: q, styles: te } = H(I, i ? {
3142
+ ]), { isMounted: q, styles: te } = U(I, i ? {
3122
3143
  duration: {
3123
3144
  open: 300,
3124
3145
  close: 150
@@ -3137,7 +3158,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3137
3158
  isMounted: q,
3138
3159
  listRef: S,
3139
3160
  nodeId: C,
3140
- refs: ee,
3161
+ refs: V,
3141
3162
  setActiveIndex: x,
3142
3163
  setIsOpen: y,
3143
3164
  transitionStyles: te
@@ -3194,7 +3215,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3194
3215
  }
3195
3216
  f?.(M);
3196
3217
  }, [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 = [];
3218
+ 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
3219
  ((e) => {
3199
3220
  e.forEach((e) => {
3200
3221
  !Hn(e) && !Un(e) && !Gn(e) && q.push(e);
@@ -3213,7 +3234,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3213
3234
  });
3214
3235
  if (Un(t)) return /* @__PURE__ */ e.createElement("li", {
3215
3236
  key: i || o,
3216
- className: `pds-dropdown__heading ${V}__listbox-heading`,
3237
+ className: `pds-dropdown__heading ${H}__listbox-heading`,
3217
3238
  id: i || void 0,
3218
3239
  role: "presentation"
3219
3240
  }, t.label);
@@ -3242,8 +3263,8 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3242
3263
  tabIndex: -1,
3243
3264
  ...n.props,
3244
3265
  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);
3266
+ }, /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${H}__item-label` }, s), c));
3267
+ } else l = /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${H}__item-label` }, s), c);
3247
3268
  let u = Z([
3248
3269
  "pds-dropdown__item",
3249
3270
  r ? "pds-dropdown__item--focused" : null,
@@ -3279,7 +3300,7 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3279
3300
  });
3280
3301
  if (Un(t)) return /* @__PURE__ */ e.createElement("li", {
3281
3302
  key: r,
3282
- className: `pds-dropdown__heading ${V}__listbox-heading`,
3303
+ className: `pds-dropdown__heading ${H}__listbox-heading`,
3283
3304
  role: "presentation"
3284
3305
  }, t.label);
3285
3306
  if (Gn(t)) return /* @__PURE__ */ e.createElement("li", {
@@ -3306,8 +3327,8 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3306
3327
  c = /* @__PURE__ */ e.createElement(r, {
3307
3328
  tabIndex: -1,
3308
3329
  ...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);
3330
+ }, /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${H}__item-label` }, o), s));
3331
+ } else c = /* @__PURE__ */ e.createElement("span", { className: "pds-dropdown__item-label" }, /* @__PURE__ */ e.createElement("span", { className: `${H}__item-label` }, o), s);
3311
3332
  return /* @__PURE__ */ e.createElement("li", {
3312
3333
  key: r,
3313
3334
  "aria-disabled": t.disabled || void 0,
@@ -3323,8 +3344,8 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3323
3344
  }, ie = (t) => {
3324
3345
  let n = t.filter(Un || Hn), r = n.length > 0, a = Z([
3325
3346
  "pds-dropdown__panel",
3326
- `${V}__listbox`,
3327
- i ? `${V}__listbox--icon-only` : null
3347
+ `${H}__listbox`,
3348
+ i ? `${H}__listbox--icon-only` : null
3328
3349
  ]), o = 0;
3329
3350
  if (r) {
3330
3351
  let r = ae(t, n);
@@ -3375,43 +3396,43 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3375
3396
  return e.forEach((t, o) => {
3376
3397
  t === i ? (n.push(a), a = [], a.push(t), i = r.shift()) : (a.push(t), o + 1 === e.length && n.push(a));
3377
3398
  }), 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, {
3399
+ }, Y, oe = _ === "m" ? "s" : "xs", se = y ? /* @__PURE__ */ e.createElement(e.Fragment, null, c, /* @__PURE__ */ e.createElement(wn, {
3379
3400
  className: "pds-button__tally",
3380
3401
  label: y.label,
3381
- size: se,
3402
+ size: oe,
3382
3403
  type: y.type
3383
- })) : c, le = y ? /* @__PURE__ */ e.createElement("span", { className: `${V}__accordion-label` }, c, /* @__PURE__ */ e.createElement(wn, {
3384
- className: `${V}__tally`,
3404
+ })) : c, ce = y ? /* @__PURE__ */ e.createElement("span", { className: `${H}__accordion-label` }, c, /* @__PURE__ */ e.createElement(wn, {
3405
+ className: `${H}__tally`,
3385
3406
  label: y.label,
3386
3407
  size: "s",
3387
3408
  type: y.type
3388
3409
  })) : c;
3389
- if (i || (oe = /* @__PURE__ */ e.createElement(kn, {
3410
+ if (i || (Y = /* @__PURE__ */ e.createElement(kn, {
3390
3411
  ref: F.setReference,
3391
3412
  "aria-controls": G,
3392
3413
  "aria-expanded": M,
3393
3414
  "aria-haspopup": "true",
3394
- className: Z([`${V}__trigger`, H ? `${V}__trigger--navbar` : null]),
3415
+ className: Z([`${H}__trigger`, U ? `${H}__trigger--navbar` : null]),
3395
3416
  disabled: n,
3396
3417
  displayType: "icon-end",
3397
3418
  iconName: "angleDown",
3398
3419
  id: W,
3399
3420
  isSplitButton: s,
3400
- label: ce,
3421
+ label: se,
3401
3422
  size: _,
3402
3423
  statusDot: v,
3403
3424
  type: "button",
3404
- variant: U,
3425
+ variant: ee,
3405
3426
  ...A({ onClick: J })
3406
3427
  })), i) {
3407
3428
  let t = On(c);
3408
- oe = /* @__PURE__ */ e.createElement(Mn, {
3429
+ Y = /* @__PURE__ */ e.createElement(Mn, {
3409
3430
  ref: F.setReference,
3410
3431
  "aria-controls": G,
3411
3432
  "aria-expanded": M,
3412
3433
  "aria-haspopup": "true",
3413
3434
  ariaLabel: t,
3414
- className: `${V}__trigger ${V}__trigger--icon-only`,
3435
+ className: `${H}__trigger ${H}__trigger--icon-only`,
3415
3436
  disabled: n,
3416
3437
  hasTooltip: !1,
3417
3438
  iconName: r,
@@ -3422,22 +3443,22 @@ var Tn = ({ className: t, componentWidth: n, isLoading: r, loadingText: i = "Loa
3422
3443
  ...A({ onClick: J })
3423
3444
  });
3424
3445
  }
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;
3446
+ 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
3447
  return /* @__PURE__ */ e.createElement("span", {
3427
3448
  className: Z([
3428
- V,
3449
+ H,
3429
3450
  ue,
3430
3451
  t
3431
3452
  ]),
3432
3453
  "data-testid": x,
3433
3454
  ...T
3434
- }, ee ? /* @__PURE__ */ e.createElement(Ln, {
3455
+ }, V ? /* @__PURE__ */ e.createElement(Ln, {
3435
3456
  disabled: n,
3436
- label: Y
3457
+ label: le
3437
3458
  }, /* @__PURE__ */ e.createElement("ul", {
3438
- className: `${V}__mobile-menu`,
3459
+ className: `${H}__mobile-menu`,
3439
3460
  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)))));
3461
+ }, 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
3462
  }, Xn = i(null), Zn = () => {
3442
3463
  let e = l(Xn);
3443
3464
  if (!e) throw Error("Dropdown sub-components must be used within a <Dropdown> provider.");
@@ -4281,32 +4302,32 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4281
4302
  className: `${r}__group-options`,
4282
4303
  role: "group"
4283
4304
  }, t));
4284
- }, wr = ({ autoWidth: t = !1, className: n, defaultValue: r, disabled: i, icon: a, id: o, inputWidth: s, inputWidthMin: c, label: l, labelStrings: d = {
4305
+ }, 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
4306
  selectOptionText: "Select an option...",
4286
4307
  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({
4308
+ }, 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 }) => {
4309
+ 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;
4310
+ E === "error" && (L = "error"), E === "success" && (L = "success");
4311
+ 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
4312
  enableClick: !i,
4292
4313
  enableTypeahead: !0,
4293
4314
  role: "listbox",
4294
- selectedIndex: U,
4315
+ selectedIndex: W,
4295
4316
  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);
4317
+ }), 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) => {
4318
+ let t = V[e];
4319
+ z || (G(e), Y(!1)), _ && _(t);
4299
4320
  };
4300
4321
  u(() => {
4301
- R && (W(ee(E)), ae(!1));
4302
- }, [E]);
4303
- let de = () => {
4304
- p && p(Y);
4305
- }, fe = () => {
4306
- m && m(Y);
4322
+ z && (G(H(D)), Y(!1));
4323
+ }, [D]);
4324
+ let fe = () => {
4325
+ m && m(ue);
4307
4326
  }, pe = () => {
4308
- ie.reference.current.focus();
4309
- }, me = (t, n) => t === "google" || t === "microsoft" ? /* @__PURE__ */ e.createElement(pr, {
4327
+ h && h(ue);
4328
+ }, me = () => {
4329
+ ae.reference.current.focus();
4330
+ }, he = (t, n) => t === "google" || t === "microsoft" ? /* @__PURE__ */ e.createElement(pr, {
4310
4331
  className: n,
4311
4332
  platformType: t,
4312
4333
  size: "m"
@@ -4314,7 +4335,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4314
4335
  className: n,
4315
4336
  iconName: t,
4316
4337
  size: "m"
4317
- }), he = (t) => {
4338
+ }), ge = (t) => {
4318
4339
  let n = 0;
4319
4340
  return t.map((t) => {
4320
4341
  if (_n(t)) {
@@ -4323,20 +4344,20 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4323
4344
  return /* @__PURE__ */ e.createElement(vn, {
4324
4345
  key: r,
4325
4346
  ref: (e) => {
4326
- re.current[r] = e;
4347
+ ie.current[r] = e;
4327
4348
  },
4328
4349
  "aria-disabled": t?.disabled,
4329
- "aria-selected": r === U && r === G,
4330
- tabIndex: r === G ? 0 : -1,
4331
- ...!t?.disabled && te({
4350
+ "aria-selected": r === W && r === K,
4351
+ tabIndex: r === K ? 0 : -1,
4352
+ ...!t?.disabled && J({
4332
4353
  onClick() {
4333
- ue(r);
4354
+ de(r);
4334
4355
  },
4335
4356
  onKeyDown(e) {
4336
- e.key === "Enter" && (e.preventDefault(), ue(r), ie.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ie.reference.current.focus());
4357
+ e.key === "Enter" && (e.preventDefault(), de(r), ae.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ae.reference.current.focus());
4337
4358
  }
4338
4359
  })
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));
4360
+ }, /* @__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
4361
  });
4341
4362
  return /* @__PURE__ */ e.createElement(Cr, {
4342
4363
  key: t.groupLabel,
@@ -4347,84 +4368,87 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4347
4368
  return /* @__PURE__ */ e.createElement(vn, {
4348
4369
  key: r,
4349
4370
  ref: (e) => {
4350
- re.current[r] = e;
4371
+ ie.current[r] = e;
4351
4372
  },
4352
4373
  "aria-disabled": t?.disabled,
4353
- "aria-selected": r === U && r === G,
4354
- tabIndex: r === G ? 0 : -1,
4355
- ...!t?.disabled && te({
4374
+ "aria-selected": r === W && r === K,
4375
+ tabIndex: r === K ? 0 : -1,
4376
+ ...!t?.disabled && J({
4356
4377
  onClick() {
4357
- ue(r);
4378
+ de(r);
4358
4379
  },
4359
4380
  onKeyDown(e) {
4360
- e.key === "Enter" && (e.preventDefault(), ue(r), ie.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ie.reference.current.focus());
4381
+ e.key === "Enter" && (e.preventDefault(), de(r), ae.reference.current.focus()), e.key === "Escape" && (e.preventDefault(), ae.reference.current.focus());
4361
4382
  }
4362
4383
  })
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));
4384
+ }, /* @__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
4385
  });
4365
4386
  };
4366
4387
  return /* @__PURE__ */ e.createElement("div", {
4367
4388
  className: Z([
4368
4389
  $.base,
4369
- k,
4370
4390
  A,
4371
4391
  j,
4372
4392
  M,
4373
4393
  N,
4374
4394
  P,
4375
4395
  F,
4396
+ I,
4376
4397
  n ?? ""
4377
4398
  ]),
4378
- style: s ? O : null,
4379
- ...D
4380
- }, t && !s && /* @__PURE__ */ e.createElement("div", {
4399
+ style: c ? k : null,
4400
+ ...O
4401
+ }, t && !c && /* @__PURE__ */ e.createElement("div", {
4381
4402
  "aria-hidden": "true",
4382
- className: `${k}__sizer`
4383
- }, B.map((t) => /* @__PURE__ */ e.createElement("span", {
4403
+ className: `${A}__sizer`
4404
+ }, V.map((t) => /* @__PURE__ */ e.createElement("span", {
4384
4405
  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`,
4406
+ className: `${A}__input-wrapper`
4407
+ }, 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, {
4408
+ className: `${A}__trigger-icon`,
4388
4409
  iconName: "angleDown"
4389
4410
  }))))), /* @__PURE__ */ e.createElement(ln, {
4390
4411
  disabled: i,
4391
- id: o,
4392
- label: l,
4393
- required: v,
4394
- showLabel: y,
4395
- tooltipText: C
4412
+ id: s,
4413
+ label: d,
4414
+ required: y,
4415
+ showLabel: b,
4416
+ tooltipText: w
4396
4417
  }), /* @__PURE__ */ e.createElement("span", {
4397
- ref: ie.setReference,
4418
+ ref: ae.setReference,
4398
4419
  "aria-autocomplete": "none",
4399
- "aria-labelledby": `${o}-label`,
4400
- className: `${k}__input-wrapper`,
4401
- id: o,
4420
+ "aria-labelledby": `${s}-label`,
4421
+ className: `${A}__input-wrapper`,
4422
+ id: s,
4402
4423
  tabIndex: 0,
4403
- ...J({
4404
- onClick: pe,
4405
- onBlur: de,
4406
- onFocus: fe
4424
+ ...ne({
4425
+ onClick: me,
4426
+ onBlur: fe,
4427
+ onFocus: pe
4407
4428
  })
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`,
4429
+ }, 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, {
4430
+ className: `${A}__trigger-icon`,
4410
4431
  iconName: "angleDown"
4411
- }))), ne && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
4412
- ref: ie.setFloating,
4413
- className: `pds-dropdown__panel ${k}__dropdown`,
4432
+ }))), re && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
4433
+ ref: ae.setFloating,
4434
+ className: `pds-dropdown__panel ${A}__dropdown ${a ? `${A}__dropdown--has-footer` : ""}`,
4414
4435
  style: {
4415
- ...K,
4436
+ ...q,
4416
4437
  zIndex: se
4417
4438
  },
4418
- ...q()
4439
+ ...te()
4419
4440
  }, /* @__PURE__ */ e.createElement("div", { style: { ...oe } }, /* @__PURE__ */ e.createElement("ul", {
4420
- className: `${k}__options`,
4441
+ className: `${A}__options`,
4421
4442
  role: "group"
4422
- }, he(_))))), L && /* @__PURE__ */ e.createElement(un, {
4423
- hasValidationMessage: !!w,
4424
- id: o,
4425
- message: L,
4443
+ }, ge(v), a && /* @__PURE__ */ e.createElement("li", {
4444
+ className: "pds-dropdown__footer",
4445
+ role: "presentation"
4446
+ }, a))))), R && /* @__PURE__ */ e.createElement(un, {
4447
+ hasValidationMessage: !!T,
4448
+ id: s,
4449
+ message: R,
4426
4450
  validationMessageHasDecorators: !1,
4427
- validationStatus: T
4451
+ validationStatus: E
4428
4452
  }));
4429
4453
  }, Tr = {
4430
4454
  "sequential-blue": 2,
@@ -4728,7 +4752,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4728
4752
  let t = Math.abs(e);
4729
4753
  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
4754
  }, 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);
4755
+ 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
4756
  fe && (me.current = fe);
4733
4757
  let he = h({ getBoundingClientRect: () => ({
4734
4758
  bottom: 0,
@@ -4748,7 +4772,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4748
4772
  open: !!fe,
4749
4773
  placement: "top",
4750
4774
  whileElementsMounted: T
4751
- }), { isMounted: ye, styles: be } = H(ge, {
4775
+ }), { isMounted: ye, styles: be } = U(ge, {
4752
4776
  duration: {
4753
4777
  close: 150,
4754
4778
  open: 150
@@ -4778,7 +4802,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4778
4802
  if (s) return /* @__PURE__ */ e.createElement("div", {
4779
4803
  ref: W,
4780
4804
  "aria-busy": "true",
4781
- "aria-label": U,
4805
+ "aria-label": ee,
4782
4806
  className: Z([
4783
4807
  xe,
4784
4808
  `${xe}--loading`,
@@ -4789,7 +4813,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4789
4813
  }, /* @__PURE__ */ e.createElement(Br, {
4790
4814
  height: J,
4791
4815
  legendVariant: p,
4792
- showLegend: oe
4816
+ showLegend: Y
4793
4817
  }));
4794
4818
  if (!o || o.length === 0) return /* @__PURE__ */ e.createElement("div", {
4795
4819
  ref: W,
@@ -4805,7 +4829,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4805
4829
  ...R
4806
4830
  }, /* @__PURE__ */ e.createElement(Sr, {
4807
4831
  heading: B,
4808
- message: ee
4832
+ message: V
4809
4833
  }));
4810
4834
  let Te = f === "vertical", Ee = (e) => A === "grouped" || A === "stacked" && e === v.length - 1 ? Te ? [
4811
4835
  0,
@@ -4880,7 +4904,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4880
4904
  contain: "layout size",
4881
4905
  height: J
4882
4906
  }
4883
- }, /* @__PURE__ */ e.createElement(se, {
4907
+ }, /* @__PURE__ */ e.createElement(oe, {
4884
4908
  debounce: 150,
4885
4909
  height: J,
4886
4910
  minHeight: J,
@@ -4908,7 +4932,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4908
4932
  stroke: "var(--pds-color-border-default)",
4909
4933
  strokeDasharray: "3 3",
4910
4934
  vertical: Te
4911
- }), /* @__PURE__ */ e.createElement(le, {
4935
+ }), /* @__PURE__ */ e.createElement(ce, {
4912
4936
  axisLine: ie,
4913
4937
  dataKey: Te ? void 0 : "label",
4914
4938
  hide: !ie,
@@ -4925,7 +4949,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4925
4949
  tickLine: !1,
4926
4950
  tickMargin: 10,
4927
4951
  type: Te ? "number" : "category"
4928
- }), /* @__PURE__ */ e.createElement(Y, {
4952
+ }), /* @__PURE__ */ e.createElement(le, {
4929
4953
  axisLine: ie,
4930
4954
  dataKey: Te ? "label" : void 0,
4931
4955
  domain: P,
@@ -4944,7 +4968,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4944
4968
  tickLine: !1,
4945
4969
  tickMargin: 6,
4946
4970
  type: Te ? "category" : "number"
4947
- }), ue && O && /* @__PURE__ */ e.createElement(ce, {
4971
+ }), ue && O && /* @__PURE__ */ e.createElement(se, {
4948
4972
  content: (e) => !e.active || !e.payload?.length ? null : O({
4949
4973
  entries: e.payload.map((e) => ({
4950
4974
  color: String(e.color ?? ""),
@@ -4986,12 +5010,12 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
4986
5010
  }, /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-label" }, me.current.label), /* @__PURE__ */ e.createElement("p", { className: "recharts-tooltip-item" }, /* @__PURE__ */ e.createElement("span", {
4987
5011
  className: "recharts-tooltip-item__color",
4988
5012
  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, {
5013
+ }), /* @__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
5014
  ariaHidden: p === "table" && de,
4991
5015
  data: o,
4992
5016
  series: v,
4993
5017
  seriesColors: te,
4994
- tableHeader: V,
5018
+ tableHeader: H,
4995
5019
  valueFormatter: F,
4996
5020
  variant: p
4997
5021
  }), de && /* @__PURE__ */ e.createElement(Fr, {
@@ -5006,7 +5030,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5006
5030
  default: return;
5007
5031
  }
5008
5032
  }, 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";
5033
+ 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
5034
  return s ? /* @__PURE__ */ e.createElement("div", {
5011
5035
  ref: L,
5012
5036
  "aria-busy": "true",
@@ -5021,7 +5045,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5021
5045
  }, /* @__PURE__ */ e.createElement(Br, {
5022
5046
  height: z,
5023
5047
  legendVariant: u,
5024
- showLegend: H
5048
+ showLegend: U
5025
5049
  })) : !o || o.length === 0 ? /* @__PURE__ */ e.createElement("div", {
5026
5050
  ref: L,
5027
5051
  className: Z([
@@ -5059,7 +5083,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5059
5083
  contain: "layout size",
5060
5084
  height: z
5061
5085
  }
5062
- }, /* @__PURE__ */ e.createElement(se, {
5086
+ }, /* @__PURE__ */ e.createElement(oe, {
5063
5087
  debounce: 150,
5064
5088
  height: z,
5065
5089
  minHeight: z,
@@ -5079,40 +5103,40 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5079
5103
  right: 4,
5080
5104
  top: 20
5081
5105
  }
5082
- }, ee && /* @__PURE__ */ e.createElement(q, {
5106
+ }, V && /* @__PURE__ */ e.createElement(q, {
5083
5107
  stroke: "var(--pds-color-border-default)",
5084
5108
  strokeDasharray: "3 3"
5085
- }), /* @__PURE__ */ e.createElement(le, {
5086
- axisLine: V,
5109
+ }), /* @__PURE__ */ e.createElement(ce, {
5110
+ axisLine: H,
5087
5111
  dataKey: "label",
5088
- hide: !V,
5112
+ hide: !H,
5089
5113
  interval: E,
5090
- label: T && V ? {
5114
+ label: T && H ? {
5091
5115
  ...Pr,
5092
5116
  offset: -15,
5093
5117
  position: "insideBottom",
5094
5118
  value: T
5095
5119
  } : void 0,
5096
- tick: V ? Nr : !1,
5120
+ tick: H ? Nr : !1,
5097
5121
  tickLine: !1,
5098
5122
  tickMargin: 10
5099
- }), /* @__PURE__ */ e.createElement(Y, {
5100
- axisLine: V,
5123
+ }), /* @__PURE__ */ e.createElement(le, {
5124
+ axisLine: H,
5101
5125
  domain: D,
5102
- hide: !V,
5126
+ hide: !H,
5103
5127
  interval: A,
5104
- label: k && V ? {
5128
+ label: k && H ? {
5105
5129
  ...Pr,
5106
5130
  angle: -90,
5107
5131
  dx: -44,
5108
5132
  position: "center",
5109
5133
  value: k
5110
5134
  } : void 0,
5111
- tick: V ? Nr : !1,
5135
+ tick: H ? Nr : !1,
5112
5136
  tickFormatter: O,
5113
5137
  tickLine: !1,
5114
5138
  tickMargin: 6
5115
- }), U && /* @__PURE__ */ e.createElement(ce, { content: (t) => {
5139
+ }), ee && /* @__PURE__ */ e.createElement(se, { content: (t) => {
5116
5140
  if (!t.active || !t.payload?.length) return null;
5117
5141
  let n = t.payload.map((e) => ({
5118
5142
  color: String(e.color ?? ""),
@@ -5146,7 +5170,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5146
5170
  type: d === "straight" ? "linear" : "monotone"
5147
5171
  })), !c && p?.map((t, n) => {
5148
5172
  let r = t.color ?? "var(--pds-color-foreground-default-secondary)";
5149
- return /* @__PURE__ */ e.createElement(oe, {
5173
+ return /* @__PURE__ */ e.createElement(Y, {
5150
5174
  key: `ref-y-${n}`,
5151
5175
  label: ({ viewBox: n }) => {
5152
5176
  let r = (n?.x ?? 0) + (n?.width ?? 0) / 2, i = (n?.y ?? 0) - 8;
@@ -5166,7 +5190,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5166
5190
  });
5167
5191
  }), !c && t?.map((t, n) => {
5168
5192
  let r = t.color ?? "var(--pds-color-foreground-default-secondary)";
5169
- return /* @__PURE__ */ e.createElement(oe, {
5193
+ return /* @__PURE__ */ e.createElement(Y, {
5170
5194
  key: `annotation-${n}`,
5171
5195
  label: ({ viewBox: n }) => {
5172
5196
  let r = (n?.x ?? 0) + (n?.width ?? 0) / 2, i = (n?.y ?? 0) - 8;
@@ -5184,7 +5208,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5184
5208
  strokeDasharray: Ur(t.strokeStyle ?? "dashed"),
5185
5209
  x: t.atLabel
5186
5210
  });
5187
- })))), H && /* @__PURE__ */ e.createElement(Ir, {
5211
+ })))), U && /* @__PURE__ */ e.createElement(Ir, {
5188
5212
  ariaHidden: u === "table" && G,
5189
5213
  data: o,
5190
5214
  series: g,
@@ -5275,7 +5299,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5275
5299
  margin: "0 auto",
5276
5300
  width: `min(100%, ${w}px)`
5277
5301
  }
5278
- }, /* @__PURE__ */ e.createElement(se, {
5302
+ }, /* @__PURE__ */ e.createElement(oe, {
5279
5303
  debounce: 150,
5280
5304
  height: w,
5281
5305
  minHeight: w,
@@ -5293,7 +5317,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5293
5317
  }, a.map((t, n) => /* @__PURE__ */ e.createElement(te, {
5294
5318
  key: t.label,
5295
5319
  fill: k(n, t)
5296
- }))), D && /* @__PURE__ */ e.createElement(ce, {
5320
+ }))), D && /* @__PURE__ */ e.createElement(se, {
5297
5321
  content: (t) => {
5298
5322
  if (!t.active || !t.payload?.length) return null;
5299
5323
  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 +5364,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5340
5364
  width: 0,
5341
5365
  x: 0,
5342
5366
  y: 0
5343
- }) }), { context: B, floatingStyles: ee, refs: V, update: U } = N({
5367
+ }) }), { context: B, floatingStyles: V, refs: H, update: ee } = N({
5344
5368
  middleware: [
5345
5369
  D(8),
5346
5370
  E(),
@@ -5349,7 +5373,7 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5349
5373
  open: !!I,
5350
5374
  placement: "top",
5351
5375
  whileElementsMounted: T
5352
- }), { isMounted: W, styles: G } = H(B, {
5376
+ }), { isMounted: W, styles: G } = U(B, {
5353
5377
  duration: {
5354
5378
  close: 150,
5355
5379
  open: 150
@@ -5357,8 +5381,8 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5357
5381
  initial: { opacity: 0 }
5358
5382
  });
5359
5383
  u(() => {
5360
- V.setReference(z.current);
5361
- }, [V]);
5384
+ H.setReference(z.current);
5385
+ }, [H]);
5362
5386
  let K = c((e) => {
5363
5387
  z.current.getBoundingClientRect = () => ({
5364
5388
  bottom: e.clientY,
@@ -5369,8 +5393,8 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5369
5393
  width: 0,
5370
5394
  x: e.clientX,
5371
5395
  y: e.clientY
5372
- }), U();
5373
- }, [U]), q = c(() => {
5396
+ }), ee();
5397
+ }, [ee]), q = c(() => {
5374
5398
  L(null);
5375
5399
  }, []);
5376
5400
  return o ? /* @__PURE__ */ e.createElement("div", {
@@ -5428,11 +5452,11 @@ var cr = ({ className: t = "pds-dropdown__selected-icon" }) => /* @__PURE__ */ e
5428
5452
  }
5429
5453
  });
5430
5454
  })), M && W && R.current && /* @__PURE__ */ e.createElement("div", {
5431
- ref: V.setFloating,
5455
+ ref: H.setFloating,
5432
5456
  className: "recharts-default-tooltip",
5433
5457
  role: "tooltip",
5434
5458
  style: {
5435
- ...ee,
5459
+ ...V,
5436
5460
  ...G,
5437
5461
  pointerEvents: "none",
5438
5462
  zIndex: "var(--pds-z-index-notifications)"
@@ -7031,7 +7055,7 @@ var Zr = {
7031
7055
  }, 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
7056
  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
7057
  I || R(e.target.checked), _ && _(e);
7034
- }, ee = `${O}__box`, V = o ? null : z ? `${ee}--checked` : null, H = o ? `${ee}--indeterminate` : null, U = c(() => {
7058
+ }, V = `${O}__box`, H = o ? null : z ? `${V}--checked` : null, U = o ? `${V}--indeterminate` : null, ee = c(() => {
7035
7059
  if (o) return /* @__PURE__ */ e.createElement("svg", {
7036
7060
  "aria-hidden": "true",
7037
7061
  className: `${O}__icon ${O}__icon--indeterminate`,
@@ -7090,10 +7114,10 @@ var Zr = {
7090
7114
  className: `${O}__label`,
7091
7115
  htmlFor: a
7092
7116
  }, /* @__PURE__ */ e.createElement("div", { className: Z([
7093
- ee,
7094
7117
  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, {
7118
+ H,
7119
+ U
7120
+ ]) }, /* @__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
7121
  validationMessageHasDecorators: !0,
7098
7122
  hasValidationMessage: !!S,
7099
7123
  id: a,
@@ -7200,22 +7224,22 @@ var Zr = {
7200
7224
  message: O,
7201
7225
  validationStatus: b
7202
7226
  }));
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 = {
7227
+ }, 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
7228
  clearButton: "Clear input text",
7205
7229
  inputInstructions: "Type to search options",
7206
7230
  searchShortcut: "Press / to focus the search field",
7207
7231
  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);
7232
+ }, 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) => {
7233
+ 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;
7234
+ s && (ae = "search"), H === "error" && (ae = "error"), H === "success" && (ae = "success");
7235
+ let Y = V || x, oe = ee !== void 0, se = n !== void 0, ce = (e) => {
7236
+ let t = P.find((t) => t.value === e);
7213
7237
  return t ? t.label : "";
7214
- }, [le, Y] = g(se ? n : void 0), [ue, de] = g(oe ? V ?? "" : se ? ce(n) : ""), pe = s && !ue;
7238
+ }, [le, ue] = g(se ? n : void 0), [de, pe] = g(oe ? ee ?? "" : se ? ce(n) : ""), me = l && !de;
7215
7239
  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 }) => {
7240
+ oe && pe(ee ?? "");
7241
+ }, [oe, ee]);
7242
+ let he = h(null), ge = (e) => e.map(({ label: e, optionDisplay: t, searchIndex: n, value: r, ...i }) => {
7219
7243
  let a = r || e, o = [e, r];
7220
7244
  return n && o.push(...n), {
7221
7245
  label: e,
@@ -7224,27 +7248,27 @@ var Zr = {
7224
7248
  optionDisplay: t,
7225
7249
  ...i
7226
7250
  };
7227
- }), ge = m(() => {
7228
- let e = he(M);
7229
- if (!ue && !L) return [];
7230
- let t = (ue ?? "").toLowerCase();
7251
+ }), X = m(() => {
7252
+ let e = ge(P);
7253
+ if (!de && !R) return [];
7254
+ let t = (de ?? "").toLowerCase();
7231
7255
  return e.filter((e) => (e.searchIndex?.map((e) => e.toLowerCase()) ?? []).some((e) => e.includes(t)));
7232
7256
  }, [
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,
7257
+ P,
7258
+ de,
7259
+ R,
7260
+ _
7261
+ ]), { getInputProps: _e, getItemProps: ve, getMenuProps: ye, highlightedIndex: be, isOpen: xe, openMenu: Se, reset: Ce } = fe({
7262
+ id: d,
7263
+ inputId: `input-${d}`,
7264
+ items: X,
7241
7265
  itemToString: (e) => e ? e.label : "",
7242
- inputValue: ue,
7266
+ inputValue: de,
7243
7267
  onInputValueChange: ({ inputValue: e }) => {
7244
- de(e ?? "");
7268
+ pe(e ?? "");
7245
7269
  },
7246
7270
  onSelectedItemChange: ({ selectedItem: e }) => {
7247
- e && (oe || de(e.label), Y(e.value), j?.(e));
7271
+ e && (oe || pe(e.label), ue(e.value), M?.(e));
7248
7272
  },
7249
7273
  stateReducer: (e, { changes: t, type: n }) => {
7250
7274
  if (n === fe.stateChangeTypes.InputBlur) return {
@@ -7252,7 +7276,7 @@ var Zr = {
7252
7276
  inputValue: e.inputValue
7253
7277
  };
7254
7278
  if (n === fe.stateChangeTypes.InputClick) {
7255
- if (L) return {
7279
+ if (R) return {
7256
7280
  ...t,
7257
7281
  isOpen: !0
7258
7282
  };
@@ -7263,8 +7287,8 @@ var Zr = {
7263
7287
  }
7264
7288
  return t;
7265
7289
  }
7266
- }), { context: Ce, floatingStyles: we, refs: Te } = N({
7267
- open: be,
7290
+ }), { context: we, floatingStyles: Te, refs: Ee } = N({
7291
+ open: xe,
7268
7292
  whileElementsMounted: T,
7269
7293
  placement: "bottom-start",
7270
7294
  strategy: "fixed",
@@ -7287,7 +7311,7 @@ var Zr = {
7287
7311
  }
7288
7312
  })
7289
7313
  ]
7290
- }), { isMounted: Ee, styles: De } = H(Ce, {
7314
+ }), { isMounted: De, styles: Oe } = U(we, {
7291
7315
  duration: {
7292
7316
  open: 300,
7293
7317
  close: 150
@@ -7295,103 +7319,106 @@ var Zr = {
7295
7319
  initial: { opacity: 0 },
7296
7320
  open: { opacity: 1 },
7297
7321
  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);
7322
+ }), ke = Bn("var(--pds-z-index-dropdown)"), Ae = c((e) => {
7323
+ Ee.setReference(e), typeof G == "function" ? G(e) : G && "current" in G && (G.current = e);
7324
+ }, [G, Ee]), je = () => {
7325
+ xe ? Ce() : Se();
7326
+ }, Me = () => {
7327
+ oe || pe(""), ue(void 0), Ce(), he.current?.focus(), R && Se(), k?.();
7306
7328
  }, Ne = (e) => {
7307
- L && xe(), k?.(le);
7308
- }, Pe = () => ge.map((t, n) => /* @__PURE__ */ e.createElement(vn, {
7329
+ w?.(le);
7330
+ }, Pe = (e) => {
7331
+ R && Se(), j?.(le);
7332
+ }, Fe = () => X.map((t, n) => /* @__PURE__ */ e.createElement(vn, {
7309
7333
  key: t.value,
7310
- className: ye === n ? "pds-dropdown__item--focused" : "",
7311
- ..._e({
7334
+ className: be === n ? "pds-dropdown__item--focused" : "",
7335
+ ...ve({
7312
7336
  item: t,
7313
7337
  index: n
7314
7338
  })
7315
- }, /* @__PURE__ */ e.createElement("span", { className: `${K}__option-label` }, t.optionDisplay || t.label)));
7339
+ }, /* @__PURE__ */ e.createElement("span", { className: `${q}__option-label` }, t.optionDisplay || t.label)));
7316
7340
  return /* @__PURE__ */ e.createElement("div", {
7317
7341
  className: Z([
7318
7342
  $.base,
7319
- K,
7320
7343
  q,
7321
7344
  te,
7322
7345
  J,
7323
7346
  ne,
7324
7347
  re,
7348
+ ie,
7325
7349
  t ?? ""
7326
7350
  ]),
7327
- style: d ? G : null,
7328
- ...U
7351
+ style: f ? K : null,
7352
+ ...W
7329
7353
  }, /* @__PURE__ */ e.createElement(ln, {
7330
7354
  disabled: r,
7331
- id: `input-${l}`,
7332
- label: _,
7333
- required: F,
7334
- showLabel: I,
7335
- tooltipText: z
7355
+ id: `input-${d}`,
7356
+ label: v,
7357
+ required: I,
7358
+ showLabel: L,
7359
+ tooltipText: B
7336
7360
  }), /* @__PURE__ */ e.createElement("span", {
7337
- ref: ke,
7338
- "aria-describedby": ae ? `${l}__message` : null,
7361
+ ref: Ae,
7362
+ "aria-describedby": Y ? `${d}__message` : null,
7339
7363
  "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,
7364
+ "aria-invalid": H === "error" ? !0 : null,
7365
+ "aria-required": I ? !0 : null,
7366
+ className: Z([`${q}__input-wrapper`, me ? `${q}__input-wrapper--has-search-shortcut` : null]),
7367
+ id: d
7368
+ }, ae && /* @__PURE__ */ e.createElement(fn, { variant: ae }), /* @__PURE__ */ e.createElement("input", {
7369
+ ref: he,
7346
7370
  autoComplete: "off",
7347
- className: `${K}__input`,
7348
- id: `input-${l}`,
7349
- ...X({
7350
- "aria-label": v.inputInstructions,
7371
+ className: `${q}__input`,
7372
+ id: `input-${d}`,
7373
+ ..._e({
7374
+ "aria-label": y.inputInstructions,
7351
7375
  disabled: r,
7352
- placeholder: P,
7353
- onBlur: Me,
7376
+ placeholder: F,
7377
+ onBlur: Ne,
7354
7378
  onChange: (e) => {
7355
- w?.(e);
7379
+ O?.(e);
7356
7380
  },
7357
- onFocus: Ne
7381
+ onFocus: Pe
7358
7382
  })
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`,
7383
+ }), de && a && /* @__PURE__ */ e.createElement(mn, {
7384
+ clearLabel: y.clearButton,
7385
+ handleClearInput: Me,
7386
+ id: `input-${d}`
7387
+ }), me && /* @__PURE__ */ e.createElement(pn, {
7388
+ inputId: `input-${d}`,
7389
+ shortcutLabel: y.searchShortcut
7390
+ }), o && /* @__PURE__ */ e.createElement("button", {
7391
+ "aria-expanded": xe,
7392
+ "aria-label": y.triggerButton,
7393
+ className: `${q}__trigger`,
7370
7394
  disabled: r,
7371
- onClick: Ae,
7395
+ onClick: je,
7372
7396
  type: "button"
7373
7397
  }, /* @__PURE__ */ e.createElement(Q, {
7374
- className: `${K}__trigger-icon`,
7398
+ className: `${q}__trigger-icon`,
7375
7399
  iconName: "angleDown",
7376
7400
  size: "m"
7377
7401
  }))), /* @__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
7402
+ ref: Ee.setFloating,
7403
+ className: `pds-dropdown__panel ${q}__dropdown ${i ? `${q}__dropdown--has-footer` : ""}`,
7404
+ style: De ? {
7405
+ ...Te,
7406
+ ...Oe,
7407
+ zIndex: ke
7384
7408
  } : { 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,
7409
+ }, 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", {
7410
+ className: `${q}__options`,
7411
+ ...ye(),
7412
+ style: De && (i || !_ && X.length > 0) ? void 0 : { display: "none" }
7413
+ }, De && !_ && Fe(), De && i && /* @__PURE__ */ e.createElement("li", {
7414
+ className: "pds-dropdown__footer",
7415
+ role: "presentation"
7416
+ }, i)))), Y && /* @__PURE__ */ e.createElement(un, {
7417
+ hasValidationMessage: !!V,
7418
+ id: d,
7419
+ message: Y,
7393
7420
  validationMessageHasDecorators: !1,
7394
- validationStatus: ee
7421
+ validationStatus: H
7395
7422
  }));
7396
7423
  }), gi = (e, t, n) => {
7397
7424
  let r = n.toLowerCase();
@@ -7399,41 +7426,41 @@ var Zr = {
7399
7426
  ...e,
7400
7427
  isAlreadySelected: t.some((t) => t.id === e.id)
7401
7428
  })).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 = {
7429
+ }, _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
7430
  aiBadgeLabel: "Suggested",
7404
7431
  aiPanelButton: "Show AI suggestions",
7405
7432
  aiPanelClose: "Close suggestions panel",
7406
7433
  aiPanelRefresh: "Refresh suggestions",
7407
7434
  inputInstructions: "Type to search options",
7408
7435
  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) => ({
7436
+ }, 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 }) => {
7437
+ 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), [
7438
+ v,
7439
+ H,
7440
+ R
7441
+ ]), te = m(() => t?.items?.map((e) => ({
7415
7442
  ...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,
7443
+ isAlreadySelected: H.some((t) => t.id === e.id)
7444
+ })) || [], [t?.items, H]), J = (e) => {
7445
+ U(e), _?.(e);
7446
+ }, { getDropdownProps: ne, getSelectedItemProps: re, removeSelectedItem: ie } = pe({
7447
+ selectedItems: H,
7421
7448
  onStateChange: ({ selectedItems: e, type: t }) => {
7422
7449
  if (!r) switch (t) {
7423
7450
  case pe.stateChangeTypes.SelectedItemKeyDownBackspace:
7424
7451
  case pe.stateChangeTypes.SelectedItemKeyDownDelete:
7425
7452
  case pe.stateChangeTypes.DropdownKeyDownBackspace:
7426
7453
  case pe.stateChangeTypes.FunctionRemoveSelectedItem:
7427
- te(e || []);
7454
+ J(e || []);
7428
7455
  break;
7429
7456
  default: break;
7430
7457
  }
7431
7458
  }
7432
- }), { closeMenu: ie, getInputProps: ae, getItemProps: oe, getMenuProps: se, getToggleButtonProps: ce, highlightedIndex: le, isOpen: Y, openMenu: ue, selectedItem: de } = fe({
7433
- items: K,
7459
+ }), { closeMenu: ae, getInputProps: Y, getItemProps: oe, getMenuProps: se, getToggleButtonProps: ce, highlightedIndex: le, isOpen: ue, openMenu: de, selectedItem: me } = fe({
7460
+ items: q,
7434
7461
  itemToString: (e) => e ? e.label : "",
7435
7462
  selectedItem: null,
7436
- inputValue: L,
7463
+ inputValue: R,
7437
7464
  isOpen: r ? !1 : void 0,
7438
7465
  stateReducer: (e, { changes: t, type: n }) => {
7439
7466
  if (r) return e;
@@ -7452,20 +7479,20 @@ var Zr = {
7452
7479
  case fe.stateChangeTypes.InputKeyDownEnter:
7453
7480
  case fe.stateChangeTypes.ItemClick:
7454
7481
  case fe.stateChangeTypes.InputBlur:
7455
- n && (n.isAlreadySelected ? te(B.filter((e) => e.id !== n.id)) : te([...B, n]), R(""), U(null));
7482
+ n && (n.isAlreadySelected ? J(H.filter((e) => e.id !== n.id)) : J([...H, n]), B(""), W(null));
7456
7483
  break;
7457
7484
  case fe.stateChangeTypes.InputChange:
7458
- R(e || ""), U(null);
7485
+ B(e || ""), W(null);
7459
7486
  break;
7460
7487
  case fe.stateChangeTypes.ToggleButtonClick:
7461
7488
  case fe.stateChangeTypes.FunctionOpenMenu:
7462
- t && G(!1);
7489
+ t && K(!1);
7463
7490
  break;
7464
7491
  default: break;
7465
7492
  }
7466
7493
  }
7467
- }), { floatingStyles: me, refs: he } = N({
7468
- open: Y,
7494
+ }), { floatingStyles: he, refs: ge } = N({
7495
+ open: ue,
7469
7496
  whileElementsMounted: T,
7470
7497
  placement: "bottom-start",
7471
7498
  strategy: "fixed",
@@ -7487,9 +7514,9 @@ var Zr = {
7487
7514
  }
7488
7515
  })
7489
7516
  ]
7490
- }), { context: ge, floatingStyles: X, refs: _e } = N({
7491
- open: W,
7492
- onOpenChange: G,
7517
+ }), { context: X, floatingStyles: _e, refs: ve } = N({
7518
+ open: G,
7519
+ onOpenChange: K,
7493
7520
  whileElementsMounted: T,
7494
7521
  placement: "bottom-start",
7495
7522
  strategy: "fixed",
@@ -7500,78 +7527,78 @@ var Zr = {
7500
7527
  Object.assign(e.floating.style, { width: `${t.reference.width}px` });
7501
7528
  } })
7502
7529
  ]
7503
- }), { getFloatingProps: ve } = z([M(ge)]), ye = Bn("var(--pds-z-index-dropdown)"), be = (e) => {
7530
+ }), { getFloatingProps: ye } = z([M(X)]), be = Bn("var(--pds-z-index-dropdown)"), xe = (e) => {
7504
7531
  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?.();
7532
+ let t = !G;
7533
+ K(t), t && ue && ae();
7534
+ }, Se = (e) => {
7535
+ r || (e.isAlreadySelected ? J(H.filter((t) => t.id !== e.id)) : J([...H, e]));
7511
7536
  }, Ce = () => {
7512
- t?.onRefresh?.();
7537
+ K(!1), t?.onClose?.();
7513
7538
  }, we = () => {
7514
- if (H === null) U(B.length - 1);
7539
+ t?.onRefresh?.();
7540
+ }, Te = () => {
7541
+ if (ee === null) W(H.length - 1);
7515
7542
  else {
7516
- let e = [...B];
7517
- e.splice(H, 1), te(e), U(null);
7543
+ let e = [...H];
7544
+ e.splice(ee, 1), J(e), W(null);
7518
7545
  }
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");
7546
+ }, Ee = h(!1), De = () => {
7547
+ r || (Ee.current ? ae() : de());
7523
7548
  }, 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 }),
7549
+ Ee.current = ue, !r && e.currentTarget.setAttribute("data-focus-method", "mouse");
7550
+ }, ke = (e) => {
7551
+ 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()));
7552
+ }, Ae = Y({
7553
+ ...ne({ preventKeyAction: ue }),
7527
7554
  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]);
7555
+ onKeyDown: ke
7556
+ }), 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
7557
  return /* @__PURE__ */ e.createElement("div", {
7531
7558
  className: Z([
7532
7559
  $.base,
7533
- k,
7534
7560
  j,
7535
7561
  P,
7536
7562
  F,
7537
7563
  I,
7564
+ L,
7538
7565
  n ?? ""
7539
7566
  ]),
7540
- style: o ? O : null,
7541
- ...w
7567
+ style: s ? k : null,
7568
+ ...O
7542
7569
  }, /* @__PURE__ */ e.createElement(ln, {
7543
7570
  disabled: r,
7544
- id: i,
7545
- label: l,
7546
- required: y,
7547
- showLabel: x
7571
+ id: a,
7572
+ label: u,
7573
+ required: b,
7574
+ showLabel: C
7548
7575
  }), /* @__PURE__ */ e.createElement("div", {
7549
7576
  ref: (e) => {
7550
- he.setReference(e), _e.setReference(e);
7577
+ ge.setReference(e), ve.setReference(e);
7551
7578
  },
7552
7579
  "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,
7580
+ "aria-required": b ? !0 : null,
7581
+ className: `${j}__input-wrapper`,
7582
+ onClick: De,
7583
+ onKeyDown: ke,
7584
+ onMouseDown: Oe,
7558
7585
  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", {
7586
+ }, 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
7587
  key: `selected-item-${n}`,
7561
7588
  className: `
7562
- ${k}__selected-item
7563
- ${n === H ? `${k}__selected-item--marked-for-deletion` : ""}
7589
+ ${j}__selected-item
7590
+ ${n === ee ? `${j}__selected-item--marked-for-deletion` : ""}
7564
7591
  `,
7565
- ...ne({
7592
+ ...re({
7566
7593
  selectedItem: t,
7567
7594
  index: n
7568
7595
  }),
7569
7596
  tabIndex: -1
7570
- }, /* @__PURE__ */ e.createElement("span", { className: `${k}__selected-item-text` }, t.label), /* @__PURE__ */ e.createElement("button", {
7597
+ }, /* @__PURE__ */ e.createElement("span", { className: `${j}__selected-item-text` }, t.label), /* @__PURE__ */ e.createElement("button", {
7571
7598
  "aria-label": `Remove ${t.label}`,
7572
- className: `${k}__selected-item-remove`,
7599
+ className: `${j}__selected-item-remove`,
7573
7600
  onClick: (e) => {
7574
- e.stopPropagation(), re(t);
7601
+ e.stopPropagation(), ie(t);
7575
7602
  },
7576
7603
  onKeyDown: (e) => {
7577
7604
  (e.key === "Enter" || e.key === " ") && e.stopPropagation();
@@ -7580,90 +7607,93 @@ var Zr = {
7580
7607
  }, /* @__PURE__ */ e.createElement(Q, {
7581
7608
  iconName: "xmark",
7582
7609
  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 ?? ""]),
7610
+ }))))), /* @__PURE__ */ e.createElement("div", { className: `${j}__end-actions` }, t && /* @__PURE__ */ e.createElement("button", {
7611
+ "aria-label": d.aiPanelButton,
7612
+ className: Z([`${j}__ai-button`, F ?? ""]),
7586
7613
  disabled: r,
7587
- onClick: be,
7614
+ onClick: xe,
7588
7615
  type: "button"
7589
7616
  }, /* @__PURE__ */ e.createElement(Q, {
7590
- className: `${k}__ai-icon`,
7617
+ className: `${j}__ai-icon`,
7591
7618
  iconName: "sparkles",
7592
7619
  size: "xs"
7593
7620
  })), /* @__PURE__ */ e.createElement("button", {
7594
- "aria-label": u.triggerButton,
7595
- className: `${k}__trigger ${P}`,
7621
+ "aria-label": d.triggerButton,
7622
+ className: `${j}__trigger ${F}`,
7596
7623
  disabled: r,
7597
7624
  type: "button",
7598
7625
  ...ce({ onClick: (e) => e.stopPropagation() })
7599
7626
  }, /* @__PURE__ */ e.createElement(Q, {
7600
- className: `${k}__trigger-icon`,
7627
+ className: `${j}__trigger-icon`,
7601
7628
  iconName: "angleDown",
7602
7629
  size: "m"
7603
7630
  })))), /* @__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
7631
+ ...Me,
7632
+ ref: Ne,
7633
+ className: `pds-dropdown__panel ${j}__dropdown ${i ? `${j}__dropdown--has-footer` : ""}`,
7634
+ style: ue ? {
7635
+ ...he,
7636
+ zIndex: be
7610
7637
  } : { 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,
7638
+ }, /* @__PURE__ */ e.createElement("div", { className: `${j}__dropdown-input-wrapper` }, /* @__PURE__ */ e.createElement(fn, { variant: "search" }), /* @__PURE__ */ e.createElement("input", {
7639
+ "aria-label": d.inputInstructions,
7640
+ className: `${j}__dropdown-input`,
7641
+ placeholder: y,
7642
+ ...Ae,
7616
7643
  onClick: (e) => {
7617
7644
  e.stopPropagation();
7618
7645
  }
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`,
7646
+ })), 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", {
7647
+ className: `${j}__dropdown-list`,
7621
7648
  ...se(),
7622
- style: Y && !c && K.length > 0 ? void 0 : { display: "none" }
7623
- }, Y && !c && K.map((t, n) => /* @__PURE__ */ e.createElement(vn, {
7649
+ style: ue && (i || !l && q.length > 0) ? void 0 : { display: "none" }
7650
+ }, ue && !l && q.map((t, n) => /* @__PURE__ */ e.createElement(vn, {
7624
7651
  key: `${t.id}-${n}`,
7625
- className: `${k}__dropdown-item
7652
+ className: `${j}__dropdown-item
7626
7653
  ${le === n ? "pds-dropdown__item--focused" : ""}
7627
- ${de === t ? `${k}__dropdown-item--selected` : ""}
7654
+ ${me === t ? `${j}__dropdown-item--selected` : ""}
7628
7655
  ${t.isAlreadySelected ? "pds-dropdown__item--active" : ""}`,
7629
7656
  ...oe({
7630
7657
  item: t,
7631
7658
  index: n
7632
7659
  })
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, {
7660
+ }, /* @__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
7661
  iconName: "sparkles",
7635
7662
  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`,
7663
+ }), /* @__PURE__ */ e.createElement("span", null, d.aiBadgeLabel))), t.isAlreadySelected && /* @__PURE__ */ e.createElement(cr, null)))), ue && i && /* @__PURE__ */ e.createElement("li", {
7664
+ className: "pds-dropdown__footer",
7665
+ role: "presentation"
7666
+ }, i)))), G && t && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
7667
+ ref: ve.setFloating,
7668
+ className: `${j}__aux-panel`,
7639
7669
  style: {
7640
- ...X,
7641
- zIndex: ye
7670
+ ..._e,
7671
+ zIndex: be
7642
7672
  },
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`,
7673
+ ...ye()
7674
+ }, t.content ? /* @__PURE__ */ e.createElement("div", { className: `${j}__aux-panel-content` }, t.content) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Q, {
7675
+ className: `${j}__aux-panel-icon`,
7646
7676
  iconName: "sparkles",
7647
7677
  size: "m"
7648
- }), /* @__PURE__ */ e.createElement("div", { className: `${k}__aux-panel-items` }, q.map((t) => /* @__PURE__ */ e.createElement("button", {
7678
+ }), /* @__PURE__ */ e.createElement("div", { className: `${j}__aux-panel-items` }, te.map((t) => /* @__PURE__ */ e.createElement("button", {
7649
7679
  key: t.id,
7650
- className: Z([`${k}__aux-panel-item`, t.isAlreadySelected ? `${k}__aux-panel-item--selected` : ""]),
7651
- onClick: () => xe(t),
7680
+ className: Z([`${j}__aux-panel-item`, t.isAlreadySelected ? `${j}__aux-panel-item--selected` : ""]),
7681
+ onClick: () => Se(t),
7652
7682
  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`,
7683
+ }, t.label)))), /* @__PURE__ */ e.createElement("div", { className: `${j}__aux-panel-header` }, /* @__PURE__ */ e.createElement("button", {
7684
+ "aria-label": d.aiPanelRefresh,
7685
+ className: `${j}__aux-panel-button`,
7656
7686
  disabled: t.isFetching || t.disableRefresh,
7657
- onClick: Ce,
7687
+ onClick: we,
7658
7688
  type: "button"
7659
7689
  }, /* @__PURE__ */ e.createElement(Q, {
7660
- className: Z([`${k}__aux-panel-refresh-icon`, t.isFetching ? `${k}__aux-panel-button-icon--rotating` : ""]),
7690
+ className: Z([`${j}__aux-panel-refresh-icon`, t.isFetching ? `${j}__aux-panel-button-icon--rotating` : ""]),
7661
7691
  iconName: "rotate",
7662
7692
  size: "m"
7663
7693
  })), /* @__PURE__ */ e.createElement("button", {
7664
- "aria-label": u.aiPanelClose,
7665
- className: `${k}__aux-panel-button`,
7666
- onClick: Se,
7694
+ "aria-label": d.aiPanelClose,
7695
+ className: `${j}__aux-panel-button`,
7696
+ onClick: Ce,
7667
7697
  type: "button"
7668
7698
  }, /* @__PURE__ */ e.createElement(Q, {
7669
7699
  iconName: "xmark",
@@ -7701,20 +7731,20 @@ var Zr = {
7701
7731
  },
7702
7732
  shouldForceLeadingZeros: !0,
7703
7733
  value: m(() => yi(R), [R])
7704
- }), B = h(null), { fieldProps: ee } = Le({
7734
+ }), B = h(null), { fieldProps: V } = Le({
7705
7735
  "aria-describedby": N ? `${o}__message` : void 0,
7706
7736
  "aria-labelledby": `${o}-label`,
7707
7737
  isDisabled: i
7708
- }, z, B), V = h(x);
7738
+ }, z, B), H = h(x);
7709
7739
  u(() => {
7710
- let e = V.current;
7711
- if (V.current = x, !x || !e || x === e) return;
7740
+ let e = H.current;
7741
+ if (H.current = x, !x || !e || x === e) return;
7712
7742
  let n = z.value;
7713
7743
  if (!n) return;
7714
7744
  let r = Ce(we(Se(t ?? Te(e), n), e), x), i = bi(new he(r.hour, r.minute));
7715
7745
  i && (P || L(i), p && p(i));
7716
7746
  }, [x]);
7717
- let H = m(() => {
7747
+ let U = m(() => {
7718
7748
  if (!x) return;
7719
7749
  let e = (t ?? Te(x)).toDate(x);
7720
7750
  try {
@@ -7729,7 +7759,7 @@ var Zr = {
7729
7759
  t,
7730
7760
  F,
7731
7761
  x
7732
- ]), { focusProps: U, isFocusVisible: W } = Pe({ within: !0 }), G = z.value !== null;
7762
+ ]), { focusProps: ee, isFocusVisible: W } = Pe({ within: !0 }), G = z.value !== null;
7733
7763
  return /* @__PURE__ */ e.createElement("div", {
7734
7764
  className: Z([
7735
7765
  $.base,
@@ -7750,7 +7780,7 @@ var Zr = {
7750
7780
  showLabel: y,
7751
7781
  tooltipText: S
7752
7782
  }), /* @__PURE__ */ e.createElement("div", {
7753
- ...Oe(ee, U),
7783
+ ...Oe(V, ee),
7754
7784
  ref: B,
7755
7785
  className: Z([`${D}__input-wrapper`, W ? `${D}__input-wrapper--focus-visible` : null]),
7756
7786
  id: o
@@ -7766,7 +7796,7 @@ var Zr = {
7766
7796
  baseClass: D,
7767
7797
  segment: t,
7768
7798
  state: z
7769
- })), H && G && /* @__PURE__ */ e.createElement("div", { className: `${D}__timezone` }, H))), N && /* @__PURE__ */ e.createElement(un, {
7799
+ })), U && G && /* @__PURE__ */ e.createElement("div", { className: `${D}__timezone` }, U))), N && /* @__PURE__ */ e.createElement(un, {
7770
7800
  hasValidationMessage: !!C,
7771
7801
  id: o,
7772
7802
  message: N,
@@ -7919,22 +7949,22 @@ var Zr = {
7919
7949
  let z = b === "range", B = {
7920
7950
  ...Ni,
7921
7951
  ...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, [
7952
+ }, V = z && !!w && w.length > 0;
7953
+ 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.`);
7954
+ let { locale: H } = Fe(), U = p?.code ?? H, ee = m(() => z ? w?.find((e) => e.label === i) : void 0, [
7925
7955
  i,
7926
7956
  z,
7927
7957
  w
7928
7958
  ]), W = (e) => {
7929
7959
  let t = Mi(e, {
7930
- locale: H,
7960
+ locale: U,
7931
7961
  timeZone: j
7932
7962
  }), n = e.hours !== void 0 || e.minutes !== void 0;
7933
7963
  return !O || n ? t : {
7934
7964
  from: Oi(Ci(t.from, j), ki, j),
7935
7965
  to: Oi(Ci(t.to, j), Ai, j)
7936
7966
  };
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, {
7967
+ }, [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
7968
  id: `${c}-timezone-switcher`,
7939
7969
  label: B.timeZoneSwitcherLabel || "",
7940
7970
  onChange: (e) => te(e),
@@ -7960,7 +7990,7 @@ var Zr = {
7960
7990
  }, 300);
7961
7991
  }, Ue = Re({
7962
7992
  createCalendar: ge,
7963
- locale: H,
7993
+ locale: U,
7964
7994
  maxValue: Ve,
7965
7995
  minValue: Be,
7966
7996
  onChange: (e) => {
@@ -7969,7 +7999,7 @@ var Zr = {
7969
7999
  value: z ? null : Ci(G, J) ?? null
7970
8000
  }), We = h(null), Ge = ze({
7971
8001
  createCalendar: ge,
7972
- locale: H,
8002
+ locale: U,
7973
8003
  maxValue: Ve,
7974
8004
  minValue: Be,
7975
8005
  visibleDuration: { months: L },
@@ -7986,7 +8016,7 @@ var Zr = {
7986
8016
  end: n
7987
8017
  } : null;
7988
8018
  })() : 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, {
8019
+ }), 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
8020
  month: "long",
7991
8021
  year: "numeric"
7992
8022
  }).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 +8028,7 @@ var Zr = {
7998
8028
  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
8029
  }, pt = (e) => {
8000
8030
  let t = Mi(e, {
8001
- locale: H,
8031
+ locale: U,
8002
8032
  timeZone: J
8003
8033
  }), n = e.hours !== void 0 || e.minutes !== void 0;
8004
8034
  ae(D), O && n ? (fe(Di(t.from, J)), me(Di(t.to, J)), He(t, e.label)) : He(O ? {
@@ -8052,8 +8082,8 @@ var Zr = {
8052
8082
  Ke.setFocusedDate(e ?? Te(J)), ae(D);
8053
8083
  }
8054
8084
  }, [Me]), u(() => {
8055
- le.current && (le.current.inert = !oe);
8056
- }, [oe]);
8085
+ ce.current && (ce.current.inert = !Y);
8086
+ }, [Y]);
8057
8087
  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
8088
  if (vt !== void 0) return vt;
8059
8089
  if (z) {
@@ -8140,7 +8170,7 @@ var Zr = {
8140
8170
  size: "s",
8141
8171
  timeZone: J,
8142
8172
  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, {
8173
+ })), 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
8174
  className: `${X}__action-button ${X}__action-button--today`,
8145
8175
  label: B.todayButton,
8146
8176
  onClick: ft,
@@ -8162,7 +8192,7 @@ var Zr = {
8162
8192
  type: "button",
8163
8193
  variant: "highlight"
8164
8194
  }))));
8165
- return /* @__PURE__ */ e.createElement(De, { locale: H }, /* @__PURE__ */ e.createElement("div", {
8195
+ return /* @__PURE__ */ e.createElement(De, { locale: U }, /* @__PURE__ */ e.createElement("div", {
8166
8196
  className: Z([
8167
8197
  $.base,
8168
8198
  X,
@@ -8207,7 +8237,7 @@ var Zr = {
8207
8237
  zIndex: Le
8208
8238
  },
8209
8239
  ...Ee()
8210
- }, ee && /* @__PURE__ */ e.createElement("div", { className: Z([`${X}__presets`, oe ? null : `${X}__presets--collapsed`]) }, /* @__PURE__ */ e.createElement("div", {
8240
+ }, V && /* @__PURE__ */ e.createElement("div", { className: Z([`${X}__presets`, Y ? null : `${X}__presets--collapsed`]) }, /* @__PURE__ */ e.createElement("div", {
8211
8241
  "aria-label": B.presetsGroupLabel,
8212
8242
  className: `${X}__preset-list`,
8213
8243
  role: "group"
@@ -8221,8 +8251,8 @@ var Zr = {
8221
8251
  "aria-hidden": "true",
8222
8252
  className: `${X}__preset-divider`
8223
8253
  }), /* @__PURE__ */ e.createElement("button", {
8224
- "aria-pressed": Y,
8225
- className: Z([`${X}__preset-item`, Y ? `${X}__preset-item--active` : null]),
8254
+ "aria-pressed": le,
8255
+ className: Z([`${X}__preset-item`, le ? `${X}__preset-item--active` : null]),
8226
8256
  onClick: () => {
8227
8257
  re(void 0), ae(!0);
8228
8258
  },
@@ -8230,13 +8260,13 @@ var Zr = {
8230
8260
  }, B.customPresetLabel, !D && /* @__PURE__ */ e.createElement(Q, {
8231
8261
  iconName: "angleRight",
8232
8262
  size: "xs"
8233
- })))), O && k && Ce), /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, xt()), ee ? se && /* @__PURE__ */ e.createElement("div", {
8234
- ref: le,
8263
+ })))), O && k && Ce), /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, xt()), V ? oe && /* @__PURE__ */ e.createElement("div", {
8264
+ ref: ce,
8235
8265
  className: `${X}__calendar-wrapper`,
8236
- style: { flexBasis: oe ? ce : 0 }
8266
+ style: { flexBasis: Y ? se : 0 }
8237
8267
  }, /* @__PURE__ */ e.createElement("div", {
8238
8268
  className: `${X}__calendar-wrapper-inner`,
8239
- style: { width: ce }
8269
+ style: { width: se }
8240
8270
  }, Ct)) : Ct))));
8241
8271
  }, Li = o(({ accept: t, className: n, defaultValue: r, disabled: i = !1, fieldLabel: a, id: o, inputProps: s, inputWidth: c, inputWidthMin: l, labelStrings: d = {
8242
8272
  chooseFile: "Choose file",
@@ -8244,22 +8274,22 @@ var Zr = {
8244
8274
  }, 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
8275
  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
8276
  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;
8277
+ 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
8278
  u(() => {
8249
8279
  let e = new DataTransfer();
8250
- if (H && e.items.add(H), e.files.length > 0) {
8280
+ if (U && e.items.add(U), e.files.length > 0) {
8251
8281
  let t = document.getElementById(`${o}--input`);
8252
- t.files = e.files, Ve && (t.dataset.file = `${V}`), D(!0);
8282
+ t.files = e.files, Ve && (t.dataset.file = `${H}`), D(!0);
8253
8283
  }
8254
8284
  }, [r, v]);
8255
- let U = () => {
8285
+ let ee = () => {
8256
8286
  let e = document.getElementById(`${o}--input`);
8257
8287
  if (!e || !r) return;
8258
8288
  let t = new DataTransfer();
8259
- t.items.add(H), e.files = t.files, D(!0);
8289
+ t.items.add(U), e.files = t.files, D(!0);
8260
8290
  }, W = (e) => {
8261
8291
  if (e.target.files.length === 0) {
8262
- r ? U() : D(!1);
8292
+ r ? ee() : D(!1);
8263
8293
  return;
8264
8294
  }
8265
8295
  Ve && r && (r === e.target.value ? k(!0) : k(!1)), h && h(e.target.files), D(!0);
@@ -8518,8 +8548,8 @@ var Zr = {
8518
8548
  tagRemove: "Remove {value}",
8519
8549
  tagsListLabel: "Current tags"
8520
8550
  }, 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);
8551
+ 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) => {
8552
+ ee(e), setTimeout(() => ee(""), 1e3);
8523
8553
  }, q = (e) => {
8524
8554
  d(e);
8525
8555
  }, te = (e) => {
@@ -8540,11 +8570,11 @@ var Zr = {
8540
8570
  }, ae = (e) => {
8541
8571
  let t = v.find((t) => t.id === e);
8542
8572
  q(v.filter((t) => t.id !== e)), t && K(`${t.value} removed`);
8543
- }, oe = () => {
8544
- V(null), setTimeout(() => {
8573
+ }, Y = () => {
8574
+ H(null), setTimeout(() => {
8545
8575
  W.current?.focus();
8546
8576
  }, 0);
8547
- }, se = (e) => {
8577
+ }, oe = (e) => {
8548
8578
  if (!r) if (e.key === "Enter" && N.trim()) {
8549
8579
  e.preventDefault();
8550
8580
  let t = {
@@ -8555,7 +8585,7 @@ var Zr = {
8555
8585
  } else if (e.key === "Backspace" && !N && v.length > 0) {
8556
8586
  let e = v[v.length - 1];
8557
8587
  q(v.slice(0, -1)), K(`${e.value} removed`);
8558
- } else e.key === "ArrowLeft" && !N && v.length > 0 && (e.preventDefault(), V(v.length - 1));
8588
+ } else e.key === "ArrowLeft" && !N && v.length > 0 && (e.preventDefault(), H(v.length - 1));
8559
8589
  };
8560
8590
  return /* @__PURE__ */ e.createElement("div", {
8561
8591
  className: Z([
@@ -8581,7 +8611,7 @@ var Zr = {
8581
8611
  "aria-atomic": "true",
8582
8612
  "aria-live": "polite",
8583
8613
  className: "visually-hidden"
8584
- }, H), /* @__PURE__ */ e.createElement("div", {
8614
+ }, U), /* @__PURE__ */ e.createElement("div", {
8585
8615
  "aria-labelledby": `${i}-label`,
8586
8616
  className: `${E}__input-wrapper`,
8587
8617
  role: "group",
@@ -8600,17 +8630,17 @@ var Zr = {
8600
8630
  }, /* @__PURE__ */ e.createElement(Vi, {
8601
8631
  disabled: r,
8602
8632
  dropTargetDirection: i,
8603
- focusedIndex: ee,
8633
+ focusedIndex: V,
8604
8634
  index: n,
8605
8635
  isDragging: F === t.id,
8606
8636
  isSortable: c,
8607
8637
  onDragEnd: J,
8608
8638
  onDragOver: ne,
8609
8639
  onDragStart: te,
8610
- onFocusInput: oe,
8640
+ onFocusInput: Y,
8611
8641
  onKeyboardMove: ie,
8612
8642
  onRemove: ae,
8613
- setFocusedIndex: V,
8643
+ setFocusedIndex: H,
8614
8644
  tag: t,
8615
8645
  totalTags: v.length,
8616
8646
  translationStrings: b
@@ -8626,7 +8656,7 @@ var Zr = {
8626
8656
  id: i,
8627
8657
  name: i,
8628
8658
  onChange: (e) => P(e.target.value),
8629
- onKeyDown: se,
8659
+ onKeyDown: oe,
8630
8660
  placeholder: G,
8631
8661
  required: p,
8632
8662
  type: "text",
@@ -8649,9 +8679,9 @@ var Zr = {
8649
8679
  visibilityToggleHide: "Hide input value",
8650
8680
  visibilityToggleShow: "Show input value"
8651
8681
  }, 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) => {
8682
+ 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) => {
8683
+ z || V(e.target.value), f && f(e);
8684
+ }, ee = (e) => {
8655
8685
  d && d(e);
8656
8686
  }, W = (e) => {
8657
8687
  h && e.preventDefault();
@@ -8679,7 +8709,7 @@ var Zr = {
8679
8709
  showLabel: y,
8680
8710
  tooltipText: S
8681
8711
  }), n && /* @__PURE__ */ e.createElement(hn, {
8682
- currentLength: V.length,
8712
+ currentLength: H.length,
8683
8713
  id: a,
8684
8714
  maxLength: n,
8685
8715
  overLimitMessage: C.counterOverLimit
@@ -8691,8 +8721,8 @@ var Zr = {
8691
8721
  disabled: i,
8692
8722
  id: a,
8693
8723
  name: a,
8694
- onBlur: U,
8695
- onChange: H,
8724
+ onBlur: ee,
8725
+ onChange: U,
8696
8726
  onFocus: p,
8697
8727
  onMouseDown: W,
8698
8728
  placeholder: m,
@@ -8716,12 +8746,12 @@ var Zr = {
8716
8746
  visibilityToggleHide: "Hide input value",
8717
8747
  visibilityToggleShow: "Show input value"
8718
8748
  }, 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");
8749
+ 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;
8750
+ k === "search" && (ee = "search"), k === "search" && C === "filter" && (ee = "filter"), j === "error" && (ee = "error"), j === "success" && (ee = "success");
8721
8751
  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
8752
  x && e.preventDefault();
8723
8753
  }, re = (e) => {
8724
- if (T && oe && se(!1), c && k === "url") {
8754
+ if (T && Y && oe(!1), c && k === "url") {
8725
8755
  let t = sn(e.target.value), n = {
8726
8756
  ...e,
8727
8757
  target: {
@@ -8746,22 +8776,22 @@ var Zr = {
8746
8776
  G || q(""), v && v();
8747
8777
  let e = document.getElementById(l);
8748
8778
  e && e.focus();
8749
- }, [oe, se] = g(!1), ce = () => {
8750
- se((e) => !e);
8779
+ }, [Y, oe] = g(!1), se = () => {
8780
+ oe((e) => !e);
8751
8781
  let e = document.getElementById(l);
8752
8782
  e && e.focus();
8753
- }, le = k;
8754
- return T && k === "password" && (le = oe ? "text" : "password"), /* @__PURE__ */ e.createElement("div", {
8783
+ }, ce = k;
8784
+ return T && k === "password" && (ce = Y ? "text" : "password"), /* @__PURE__ */ e.createElement("div", {
8755
8785
  className: Z([
8756
8786
  $.base,
8757
8787
  I,
8758
- V,
8788
+ H,
8759
8789
  L,
8760
8790
  R,
8761
8791
  z,
8762
8792
  B,
8763
- ee,
8764
- H,
8793
+ V,
8794
+ U,
8765
8795
  n ?? ""
8766
8796
  ]),
8767
8797
  style: d ? F : null,
@@ -8776,11 +8806,11 @@ var Zr = {
8776
8806
  }), T && k === "password" && /* @__PURE__ */ e.createElement("div", {
8777
8807
  "aria-live": "polite",
8778
8808
  className: "visually-hidden"
8779
- }, `${O.visibilityStatus} ${oe ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: Z([
8809
+ }, `${O.visibilityStatus} ${Y ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: Z([
8780
8810
  `${I}__input-wrapper`,
8781
8811
  c && k === "url" ? `${I}__input-wrapper--has-prefix` : null,
8782
8812
  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", {
8813
+ ]) }, ee && /* @__PURE__ */ e.createElement(fn, { variant: ee }), c && k === "url" && /* @__PURE__ */ e.createElement(Wi, null), /* @__PURE__ */ e.createElement("input", {
8784
8814
  ref: P,
8785
8815
  "aria-describedby": W ? `${l}__message` : null,
8786
8816
  "aria-invalid": j === "error" ? !0 : null,
@@ -8796,7 +8826,7 @@ var Zr = {
8796
8826
  placeholder: b,
8797
8827
  readOnly: x,
8798
8828
  required: S,
8799
- type: le,
8829
+ type: ce,
8800
8830
  value: G ? M : K,
8801
8831
  ...u
8802
8832
  }), o && te && /* @__PURE__ */ e.createElement(mn, {
@@ -8806,12 +8836,12 @@ var Zr = {
8806
8836
  }), T && k === "password" && /* @__PURE__ */ e.createElement("button", {
8807
8837
  "aria-controls": l,
8808
8838
  className: `${I}__visibility-toggle`,
8809
- onClick: ce,
8839
+ onClick: se,
8810
8840
  onMouseDown: (e) => e.preventDefault(),
8811
- title: oe ? O.visibilityToggleHide : O.visibilityToggleShow,
8841
+ title: Y ? O.visibilityToggleHide : O.visibilityToggleShow,
8812
8842
  type: "button"
8813
8843
  }, /* @__PURE__ */ e.createElement(Q, {
8814
- iconName: oe ? "eyeSlash" : "eye",
8844
+ iconName: Y ? "eyeSlash" : "eye",
8815
8845
  size: "m"
8816
8846
  })), J && /* @__PURE__ */ e.createElement(pn, {
8817
8847
  inputId: l,
@@ -9418,7 +9448,7 @@ var Zr = {
9418
9448
  ]),
9419
9449
  role: i ? "menuitem" : void 0,
9420
9450
  tabIndex: i ? b === r ? 0 : -1 : void 0,
9421
- ...i ? ee({ onKeyDown: (e) => G(e, r) }) : null
9451
+ ...i ? V({ onKeyDown: (e) => G(e, r) }) : null
9422
9452
  }, 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
9453
  placement: "right-start",
9424
9454
  open: v,
@@ -9445,7 +9475,7 @@ var Zr = {
9445
9475
  i,
9446
9476
  F.reference
9447
9477
  ]);
9448
- let { getFloatingProps: R, getItemProps: ee, getReferenceProps: H } = z([
9478
+ let { getFloatingProps: R, getItemProps: V, getReferenceProps: U } = z([
9449
9479
  L(j, {
9450
9480
  move: !1,
9451
9481
  delay: {
@@ -9455,7 +9485,7 @@ var Zr = {
9455
9485
  handleClose: O()
9456
9486
  }),
9457
9487
  M(j),
9458
- V(j, { role: "menu" }),
9488
+ H(j, { role: "menu" }),
9459
9489
  B(j, {
9460
9490
  listRef: C,
9461
9491
  activeIndex: b,
@@ -9464,7 +9494,7 @@ var Zr = {
9464
9494
  openOnArrowKeyDown: !0,
9465
9495
  focusItemOnOpen: !1
9466
9496
  })
9467
- ]), U = (e) => {
9497
+ ]), ee = (e) => {
9468
9498
  i && s && (e.key === "ArrowRight" || e.key === " " || e.key === "Spacebar") && (e.preventDefault(), y(!0));
9469
9499
  }, W = (e) => {
9470
9500
  (C.current[e]?.querySelector("a"))?.click(), y(!1);
@@ -9493,9 +9523,9 @@ var Zr = {
9493
9523
  i ? `${f}--collapsed` : null,
9494
9524
  n ? `${f}--active` : null
9495
9525
  ]),
9496
- ...H({
9526
+ ...U({
9497
9527
  onClick: q,
9498
- onKeyDown: U
9528
+ onKeyDown: ee
9499
9529
  })
9500
9530
  }, 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
9531
  "aria-expanded": r,
@@ -9735,7 +9765,18 @@ var Zr = {
9735
9765
  } })
9736
9766
  }, /* @__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
9767
  }, 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 }) => {
9768
+ let o = "pds-tab-menu", c = h(null), l = h(null);
9769
+ u(() => {
9770
+ let e = l.current, t = c.current;
9771
+ if (!e || !t) return;
9772
+ let n = () => {
9773
+ t.toggleAttribute("data-overflowing", e.scrollWidth > e.clientWidth);
9774
+ };
9775
+ n();
9776
+ let r = new ResizeObserver(n);
9777
+ return r.observe(e), () => r.disconnect();
9778
+ }, [i]);
9779
+ let d = ({ dropdownSettings: t, icon: n, isActive: i, linkContent: a, links: c, promoteActiveChildLink: l = !1 }) => {
9739
9780
  let u = `${o}__item`, d = na(c);
9740
9781
  return /* @__PURE__ */ e.createElement("li", { className: Z([u, i ? `${u}--active` : null]) }, ((t, n) => {
9741
9782
  let i = null;
@@ -9755,7 +9796,10 @@ var Zr = {
9755
9796
  minFilterItems: t?.minFilterItems,
9756
9797
  noResultsText: t?.noResultsText
9757
9798
  }));
9758
- }, l = i.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu` }, i.map((t, n) => /* @__PURE__ */ e.createElement(c, {
9799
+ }, f = i.length > 0 ? /* @__PURE__ */ e.createElement("ul", {
9800
+ ref: l,
9801
+ className: `${o}__menu`
9802
+ }, i.map((t, n) => /* @__PURE__ */ e.createElement(d, {
9759
9803
  key: n,
9760
9804
  dropdownSettings: t.dropdownSettings,
9761
9805
  icon: t.icon,
@@ -9768,7 +9812,10 @@ var Zr = {
9768
9812
  "aria-label": t,
9769
9813
  className: Z([o, n ?? ""]),
9770
9814
  ...a
9771
- }, /* @__PURE__ */ e.createElement("div", { className: `${o}__mobile-menu-wrapper` }, l));
9815
+ }, /* @__PURE__ */ e.createElement("div", {
9816
+ ref: c,
9817
+ className: `${o}__mobile-menu-wrapper`
9818
+ }, f));
9772
9819
  }, Ca = {
9773
9820
  2: "second",
9774
9821
  3: "third",
@@ -10015,9 +10062,9 @@ var Zr = {
10015
10062
  ],
10016
10063
  whileElementsMounted: T,
10017
10064
  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([
10065
+ }), R = j(F, { event: "mousedown" }), V = M(F), ee = H(F, { role: "menu" }), W = h([]), { getFloatingProps: G, getItemProps: K, getReferenceProps: q } = z([
10066
+ V,
10019
10067
  ee,
10020
- U,
10021
10068
  R,
10022
10069
  B(F, {
10023
10070
  listRef: W,
@@ -10028,7 +10075,7 @@ var Zr = {
10028
10075
  focusItemOnOpen: !1,
10029
10076
  focusItemOnHover: !0
10030
10077
  })
10031
- ]), { isMounted: te, styles: J } = H(F, {
10078
+ ]), { isMounted: te, styles: J } = U(F, {
10032
10079
  duration: {
10033
10080
  open: 300,
10034
10081
  close: 150
@@ -10060,14 +10107,14 @@ var Zr = {
10060
10107
  let n = e.id ? e.id : `${O}-item-${t}`;
10061
10108
  C.current.push(n), w.current.push(e);
10062
10109
  });
10063
- let oe = (e) => {
10110
+ let Y = (e) => {
10064
10111
  let t = C.current.indexOf(e), n = w.current[t];
10065
10112
  n.linkContent && !n.disabled && (W.current[t].querySelector("a").click(), y(!1)), n.callback && !n.disabled && (n.callback(), y(!1));
10113
+ }, oe = (e) => {
10114
+ e.preventDefault(), e.key === "Enter" && Y(e.currentTarget.id);
10066
10115
  }, 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) => {
10116
+ Y(e.currentTarget.id);
10117
+ }, ce = i.map((t, n) => {
10071
10118
  let r = C.current[n], i = `${A}__item`, a = t.disabled ? `${i}--disabled` : null;
10072
10119
  return /* @__PURE__ */ e.createElement("li", {
10073
10120
  key: r,
@@ -10077,16 +10124,16 @@ var Zr = {
10077
10124
  "aria-disabled": t.disabled || void 0,
10078
10125
  className: Z([i, a]),
10079
10126
  id: r,
10080
- onKeyDown: se,
10127
+ onKeyDown: oe,
10081
10128
  role: "menuitem",
10082
10129
  tabIndex: m === n ? 0 : -1,
10083
- ...K({ onClick: (e) => ce(e) })
10130
+ ...K({ onClick: (e) => se(e) })
10084
10131
  }, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
10085
10132
  className: `${A}__icon`,
10086
10133
  iconName: t.iconName,
10087
10134
  size: "m"
10088
10135
  }));
10089
- }), Y = i.map((t, n) => {
10136
+ }), le = i.map((t, n) => {
10090
10137
  let r = C.current[n], i = `${A}__item`, a = t.disabled ? `${i}--disabled` : null;
10091
10138
  return /* @__PURE__ */ e.createElement("li", {
10092
10139
  key: r,
@@ -10109,7 +10156,7 @@ var Zr = {
10109
10156
  }, x ? /* @__PURE__ */ e.createElement(Ln, { label: ue }, /* @__PURE__ */ e.createElement("ul", {
10110
10157
  className: Z([P, `${P}--mobile`]),
10111
10158
  role: "menu"
10112
- }, ie, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ae, Y)) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
10159
+ }, ie, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ae, le)) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
10113
10160
  ref: L.setReference,
10114
10161
  "aria-label": t,
10115
10162
  className: `${A}__trigger`,
@@ -10126,7 +10173,7 @@ var Zr = {
10126
10173
  }, /* @__PURE__ */ e.createElement("div", { style: { ...J } }, /* @__PURE__ */ e.createElement("ul", {
10127
10174
  className: P,
10128
10175
  role: "menu"
10129
- }, ie, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ae, le))))));
10176
+ }, ie, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ae, ce))))));
10130
10177
  }, Oa = ({ avatarSize: t = "m", className: n, showActiveState: r = !0, workspace: i, ...a }) => {
10131
10178
  let o = "pds-workspace-list-item";
10132
10179
  return /* @__PURE__ */ e.createElement("div", {
@@ -10160,17 +10207,17 @@ var Zr = {
10160
10207
  };
10161
10208
  n(), document.fonts?.ready.then(n);
10162
10209
  }, [z?.displayName]);
10163
- let ee = m(() => {
10210
+ let V = m(() => {
10164
10211
  if (!f) return u;
10165
10212
  let e = f.toLowerCase();
10166
10213
  return u.filter((t) => t.displayName?.toLowerCase().includes(e));
10167
- }, [u, f]), V = m(() => {
10214
+ }, [u, f]), H = m(() => {
10168
10215
  if (!v) return u;
10169
10216
  let e = v.toLowerCase();
10170
10217
  return u.filter((t) => t.displayName?.toLowerCase().includes(e));
10171
- }, [u, v]), H = (e) => {
10218
+ }, [u, v]), U = (e) => {
10172
10219
  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) => {
10220
+ }, ee = V.map((t, n) => {
10174
10221
  let r = `${T}__item`, i = t.workspaceId, a = t.isRestricted && t.onRestrictedSelection, o = t.workspaceLink?.type, s = t.isUnprivileged ? null : (e) => {
10175
10222
  P.current[n] = e;
10176
10223
  };
@@ -10186,7 +10233,7 @@ var Zr = {
10186
10233
  t.isRestricted ? `${r}--restricted` : null
10187
10234
  ]),
10188
10235
  id: i,
10189
- onKeyDown: H,
10236
+ onKeyDown: U,
10190
10237
  role: "menuitem",
10191
10238
  tabIndex: O === n ? 0 : -1,
10192
10239
  ...j()
@@ -10196,7 +10243,7 @@ var Zr = {
10196
10243
  },
10197
10244
  type: "button"
10198
10245
  }, /* @__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) => {
10246
+ }), W = H.map((t) => {
10200
10247
  let n = `${T}__item`, r = t.workspaceId, i = t.isRestricted && t.onRestrictedSelection, a = t.workspaceLink?.type;
10201
10248
  return /* @__PURE__ */ e.createElement("li", {
10202
10249
  key: `${r}-accordion`,
@@ -10294,7 +10341,7 @@ var Zr = {
10294
10341
  }, /* @__PURE__ */ e.createElement("li", {
10295
10342
  className: `pds-dropdown__heading ${T}__item-heading`,
10296
10343
  role: "presentation"
10297
- }, s), U.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, l) : U), G))));
10344
+ }, s), ee.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, l) : ee), G))));
10298
10345
  }, Aa = {
10299
10346
  info: "circleInfo",
10300
10347
  warning: "triangleExclamation",
@@ -10605,7 +10652,7 @@ var Zr = {
10605
10652
  O(!1);
10606
10653
  }, []), B = c(() => {
10607
10654
  D || E(!1);
10608
- }, [D]), ee = c(() => {
10655
+ }, [D]), V = c(() => {
10609
10656
  a || z();
10610
10657
  }, [a, z]);
10611
10658
  u(() => {
@@ -10615,18 +10662,18 @@ var Zr = {
10615
10662
  };
10616
10663
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
10617
10664
  }, [T, z]);
10618
- let V = c(() => {
10665
+ let H = c(() => {
10619
10666
  if (I.current) {
10620
10667
  I.current = !1;
10621
10668
  return;
10622
10669
  }
10623
10670
  z();
10624
- }, [z]), H = c((e) => {
10671
+ }, [z]), U = c((e) => {
10625
10672
  F.current = {
10626
10673
  startY: e.clientY,
10627
10674
  startHeight: N.current?.getBoundingClientRect().height ?? 0
10628
10675
  }, M(!0), P.current?.setPointerCapture(e.pointerId);
10629
- }, []), U = c((e) => {
10676
+ }, []), ee = c((e) => {
10630
10677
  let t = F.current, n = N.current;
10631
10678
  if (!t || !n) return;
10632
10679
  let r = e.clientY - t.startY, i = C ? window.innerHeight * .96 : t.startHeight;
@@ -10649,7 +10696,7 @@ var Zr = {
10649
10696
  }
10650
10697
  }, /* @__PURE__ */ e.createElement("div", { className: `${x}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
10651
10698
  className: Z([`${x}__scrim`, D ? `${x}__scrim--visible` : null]),
10652
- onClick: ee
10699
+ onClick: V
10653
10700
  }), /* @__PURE__ */ e.createElement("div", {
10654
10701
  ref: N,
10655
10702
  "aria-label": t || (typeof m == "string" ? m : void 0),
@@ -10668,9 +10715,9 @@ var Zr = {
10668
10715
  ref: P,
10669
10716
  "aria-label": f,
10670
10717
  className: `${x}__grabber`,
10671
- onClick: V,
10672
- onPointerDown: H,
10673
- onPointerMove: U,
10718
+ onClick: H,
10719
+ onPointerDown: U,
10720
+ onPointerMove: ee,
10674
10721
  onPointerUp: W,
10675
10722
  type: "button"
10676
10723
  }), /* @__PURE__ */ e.createElement("span", {
@@ -10778,7 +10825,7 @@ var Zr = {
10778
10825
  e || l();
10779
10826
  },
10780
10827
  open: c
10781
- }), { getFloatingProps: v } = z([M(g, { outsidePressEvent: "mousedown" }), V(g, { role: "dialog" })]), { isMounted: b, styles: C } = H(g, {
10828
+ }), { getFloatingProps: v } = z([M(g, { outsidePressEvent: "mousedown" }), H(g, { role: "dialog" })]), { isMounted: b, styles: C } = U(g, {
10782
10829
  duration: {
10783
10830
  close: 200,
10784
10831
  open: 250
@@ -10854,8 +10901,8 @@ var Zr = {
10854
10901
  }), { getFloatingProps: P } = z([
10855
10902
  j(O),
10856
10903
  o ? void 0 : M(O, { outsidePressEvent: "mousedown" }),
10857
- V(O)
10858
- ]), { isMounted: F, styles: I } = H(O, {
10904
+ H(O)
10905
+ ]), { isMounted: F, styles: I } = U(O, {
10859
10906
  duration: {
10860
10907
  open: 300,
10861
10908
  close: 300
@@ -11505,7 +11552,7 @@ var Zr = {
11505
11552
  }, [d]), u(() => {
11506
11553
  f(C);
11507
11554
  }, [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({
11555
+ 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
11556
  placement: l,
11510
11557
  open: C,
11511
11558
  onOpenChange(e) {
@@ -11524,8 +11571,8 @@ var Zr = {
11524
11571
  }, { getFloatingProps: K, getReferenceProps: q } = z([
11525
11572
  j(R),
11526
11573
  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, {
11574
+ H(R)
11575
+ ]), te = V.arrow?.x ?? 0, J = V.arrow?.y ?? 0, ne = te + To / 2, re = J + wo, { isMounted: ie } = U(R, {
11529
11576
  initial: { transform: "scale(0)" },
11530
11577
  common: ({ side: e }) => ({ transformOrigin: {
11531
11578
  top: `${ne}px calc(100% + ${wo}px)`,
@@ -11538,7 +11585,7 @@ var Zr = {
11538
11585
  className: Z([P, t]),
11539
11586
  ...x
11540
11587
  }, /* @__PURE__ */ e.createElement("span", {
11541
- ref: U.setReference,
11588
+ ref: ee.setReference,
11542
11589
  className: `${P}__trigger`,
11543
11590
  role: "button",
11544
11591
  tabIndex: 0,
@@ -11553,7 +11600,7 @@ var Zr = {
11553
11600
  initialFocus: -1,
11554
11601
  modal: o
11555
11602
  }, /* @__PURE__ */ e.createElement("div", {
11556
- ref: U.setFloating,
11603
+ ref: ee.setFloating,
11557
11604
  className: Z([`${P}__container`, n]),
11558
11605
  style: {
11559
11606
  ...B,
@@ -11905,7 +11952,7 @@ function qo(e) {
11905
11952
  //#endregion
11906
11953
  //#region src/components/SortableList/SortableList.tsx
11907
11954
  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) => {
11955
+ 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
11956
  if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
11910
11957
  e.preventDefault();
11911
11958
  let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
@@ -11922,91 +11969,91 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
11922
11969
  onReorder: v
11923
11970
  });
11924
11971
  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;
11972
+ 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) => {
11973
+ if (_ === 0 || oe.has(String(e))) return !1;
11927
11974
  let t = q.find((t) => t.id === e);
11928
11975
  return !t || t.depth >= _ ? !1 : t.hasChildren ? !t.isExpanded : !0;
11929
11976
  }, [
11930
11977
  q,
11931
11978
  _,
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();
11979
+ oe
11980
+ ]), ce = c((e) => j && se(j) ? null : at(e), [se, j]), le = m(() => {
11981
+ if (!T || !j || Y.size === 0 || T === j || se(j)) return /* @__PURE__ */ new Set();
11935
11982
  let e = q.findIndex((e) => e.id === T), t = q.findIndex((e) => e.id === j);
11936
11983
  if (e === -1 || t === -1) return /* @__PURE__ */ new Set();
11937
11984
  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));
11985
+ return new Set(q.slice(n, r + 1).filter((e) => Y.has(e.id)).map((e) => e.id));
11939
11986
  }, [
11940
11987
  T,
11941
11988
  q,
11942
- ce,
11943
- oe,
11989
+ se,
11990
+ Y,
11944
11991
  j
11945
11992
  ]).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
11993
  let e = ue?.depth ?? 0;
11947
- return !T || !j || O || _ === 0 ? e : Uo(q, String(T), String(j), ee * Jo, Jo, _);
11994
+ return !T || !j || O || _ === 0 ? e : Uo(q, String(T), String(j), V * Jo, Jo, _);
11948
11995
  }, [
11949
11996
  T,
11950
11997
  ue,
11951
- ee,
11998
+ V,
11952
11999
  q,
11953
12000
  O,
11954
12001
  _,
11955
12002
  j
11956
12003
  ]), pe = m(() => {
11957
- if (!T || O || fe === 0 || j && ce(j)) return null;
12004
+ if (!T || O || fe === 0 || j && se(j)) return null;
11958
12005
  let e = q.findIndex((e) => e.id === T);
11959
12006
  return e === -1 ? null : Zo(q, e, fe);
11960
12007
  }, [
11961
12008
  T,
11962
12009
  q,
11963
- ce,
12010
+ se,
11964
12011
  O,
11965
12012
  j,
11966
12013
  fe
11967
12014
  ]), me = c((e) => {
11968
12015
  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));
12016
+ 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
12017
  }, [q, re]), he = c((e) => {
11971
12018
  let t = $e(e);
11972
- if (!t.length || !D.current || oe.size === 0) return t;
12019
+ if (!t.length || !D.current || Y.size === 0) return t;
11973
12020
  let n = q.findIndex((e) => e.id === D.current);
11974
12021
  for (let e of t) {
11975
12022
  let t = e.id;
11976
12023
  if (t === D.current) return [e];
11977
12024
  let r = q.findIndex((e) => e.id === t);
11978
12025
  if (n === -1 || r === -1) return [e];
11979
- if (oe.has(String(t))) {
12026
+ if (Y.has(String(t))) {
11980
12027
  if (n > r) continue;
11981
- let e = !se.has(String(t)), i = _ > 0 && H.current > 0;
11982
- if (!ce(t) && (!e || !i)) continue;
12028
+ let e = !oe.has(String(t)), i = _ > 0 && U.current > 0;
12029
+ if (!se(t) && (!e || !i)) continue;
11983
12030
  }
11984
12031
  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];
12032
+ if (!q.slice(i, a + 1).some((e) => Y.has(e.id))) return [e];
11986
12033
  }
11987
12034
  return [];
11988
12035
  }, [
11989
12036
  q,
11990
- oe,
11991
- se
12037
+ Y,
12038
+ oe
11992
12039
  ]), ge = c((e) => {
11993
12040
  let t = e.over?.id ?? null, n = D.current;
11994
- if (t && n && t !== n && oe.size > 0) {
12041
+ if (t && n && t !== n && Y.size > 0) {
11995
12042
  let e = q.findIndex((e) => e.id === n), r = q.findIndex((e) => e.id === t);
11996
12043
  if (e !== -1 && r !== -1) {
11997
12044
  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;
12045
+ if (q.slice(t, n + 1).some((e) => Y.has(e.id))) return;
11999
12046
  }
12000
12047
  }
12001
12048
  M(t);
12002
- }, [q, oe]), X = c((e) => {
12049
+ }, [q, Y]), X = c((e) => {
12003
12050
  let t = e.delta.x;
12004
12051
  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));
12052
+ let n = Math.floor(t / Jo), r = U.current;
12053
+ (n > r || n < r && t < r * Jo - Jo * .4) && (U.current = n, H(n));
12007
12054
  }, [_]), _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);
12055
+ let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
12056
+ 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
12057
  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
12058
  if (r && i > 0 && c && o > 0 && (l = q[o - 1].id), !l || t.id === l) {
12012
12059
  if (o === -1) return;
@@ -12015,7 +12062,7 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12015
12062
  let n = Uo(q, String(t.id), String(t.id), s, Jo, _);
12016
12063
  if (n === e.depth) return;
12017
12064
  let r = [...q], [i] = r.splice(o, 1), a = Zo(r, o, n);
12018
- if (a && se.has(a)) return;
12065
+ if (a && oe.has(a)) return;
12019
12066
  let c = {
12020
12067
  ...i,
12021
12068
  depth: n,
@@ -12023,7 +12070,7 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12023
12070
  };
12024
12071
  r.splice(o, 0, c);
12025
12072
  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;
12073
+ if (l.some((e, t) => Y.has(e) ? u.indexOf(e) !== t : !1)) return;
12027
12074
  te(r), n > 0 && a && K(a);
12028
12075
  return;
12029
12076
  }
@@ -12032,7 +12079,7 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12032
12079
  let d = [...q], f = d[o].depth, [p] = d.splice(o, 1), m = [];
12033
12080
  for (; d.length > o && d[o].depth > f;) m.push(d.splice(o, 1)[0]);
12034
12081
  let h = d.findIndex((e) => e.id === l), g, v;
12035
- if (ce(l)) {
12082
+ if (se(l)) {
12036
12083
  let e = q[u];
12037
12084
  g = Math.min(e.depth + 1, _), v = String(l);
12038
12085
  } else {
@@ -12040,7 +12087,7 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12040
12087
  let e = d[h];
12041
12088
  v = e && e.depth === g - 1 ? String(l) : Zo(d, h, g);
12042
12089
  }
12043
- if (v && se.has(v)) return;
12090
+ if (v && oe.has(v)) return;
12044
12091
  let y = {
12045
12092
  ...p,
12046
12093
  depth: g,
@@ -12048,17 +12095,17 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12048
12095
  }, b = d[h], x = b && b.depth === g - 1 && v === String(l) || o < u ? h + 1 : h;
12049
12096
  d.splice(x, 0, y, ...m);
12050
12097
  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));
12098
+ 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
12099
  }, [
12053
12100
  K,
12054
12101
  q,
12055
12102
  te,
12056
- ce,
12057
- oe,
12103
+ se,
12104
+ Y,
12058
12105
  _,
12059
- se
12106
+ oe
12060
12107
  ]), 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);
12108
+ 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
12109
  }, [K]), ye = m(() => ({
12063
12110
  onDragStart({ active: e }) {
12064
12111
  let t = q.find((t) => t.id === e.id), n = Ho(G, String(e.id));
@@ -12102,7 +12149,7 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12102
12149
  sensors: ie
12103
12150
  }, /* @__PURE__ */ e.createElement(nt, {
12104
12151
  items: ne,
12105
- strategy: le
12152
+ strategy: ce
12106
12153
  }, /* @__PURE__ */ e.createElement("div", {
12107
12154
  className: Z([
12108
12155
  w,
@@ -12124,7 +12171,7 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12124
12171
  index: t.index,
12125
12172
  isDragging: t.id === T,
12126
12173
  isExpanded: t.isExpanded,
12127
- isLocked: oe.has(t.id),
12174
+ isLocked: Y.has(t.id),
12128
12175
  toggleExpand: () => re(t.id)
12129
12176
  }, r = y(t.data, n), a = t.id === T, o = {
12130
12177
  columns: i,
@@ -12132,10 +12179,10 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12132
12179
  hasChildren: t.hasChildren,
12133
12180
  isDragActive: W,
12134
12181
  isDragging: a,
12135
- isDropTarget: t.id === j && ce(t.id),
12136
- isProjectedParent: t.id === pe && !se.has(t.id),
12182
+ isDropTarget: t.id === j && se(t.id),
12183
+ isProjectedParent: t.id === pe && !oe.has(t.id),
12137
12184
  isExpanded: t.isExpanded,
12138
- ...oe.has(t.id) ? { isLocked: !0 } : {},
12185
+ ...Y.has(t.id) ? { isLocked: !0 } : {},
12139
12186
  onToggleExpand: () => re(t.id),
12140
12187
  ...a && !O && _ > 0 ? { projectedDepthDelta: fe - t.depth } : {}
12141
12188
  };
@@ -12145,7 +12192,7 @@ var Jo = 24, Yo = { droppable: { strategy: Ze.Always } }, Xo = o(function({ chil
12145
12192
  }) : /* @__PURE__ */ e.createElement("div", { key: t.id }, r);
12146
12193
  }))), /* @__PURE__ */ e.createElement(Ye, null, T && de ? /* @__PURE__ */ e.createElement("div", { className: Z([
12147
12194
  "pds-sortable-list pds-sortable-list--overlay",
12148
- Y ? "pds-sortable-list--overlay-invalid" : null,
12195
+ le ? "pds-sortable-list--overlay-invalid" : null,
12149
12196
  O ? "pds-sortable-list--overlay-keyboard" : null
12150
12197
  ]) }, (() => {
12151
12198
  let t = ue?.depth ?? 0, n = O ? Math.max(0, Math.min(_, t + R)) : t, r = {
@@ -12513,8 +12560,8 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12513
12560
  className: Z([a, t ?? ""]),
12514
12561
  ...i
12515
12562
  }, /* @__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({
12563
+ }, 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 }) => {
12564
+ 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
12565
  key: a ?? "",
12519
12566
  order: a === void 0 ? "asc" : o
12520
12567
  }), we = m(() => {
@@ -12534,30 +12581,30 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12534
12581
  je && Fe(je);
12535
12582
  }, [je]);
12536
12583
  let Ie = ve ? P ?? 10 : De, Le = (e) => {
12537
- ye ? V(e) : Oe(e), ve || Ee(1);
12584
+ ye ? H(e) : Oe(e), ve || Ee(1);
12538
12585
  };
12539
12586
  u(() => {
12540
12587
  ve || Ee(1);
12541
12588
  }, [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.");
12589
+ 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
12590
  }, []);
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), [
12591
+ 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
12592
  we,
12546
12593
  je,
12547
12594
  C,
12548
12595
  Ue
12549
12596
  ]), Ke = Ge >= 0 ? we[Ge] : null, qe = (e, t) => {
12550
- (pe ? ge : J !== void 0 && D) && j === void 0 && Ae(t), H?.(e, t);
12597
+ (pe ? ge : J !== void 0 && D) && j === void 0 && Ae(t), U?.(e, t);
12551
12598
  }, Je = () => {
12552
12599
  j === void 0 && Ae(null);
12553
12600
  }, Ye = () => {
12554
12601
  if (we.length === 0) return;
12555
12602
  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);
12603
+ j === void 0 && Ae(n), U?.(t, n), B?.(t, n);
12557
12604
  }, Xe = () => {
12558
12605
  if (we.length === 0) return;
12559
12606
  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);
12607
+ j === void 0 && Ae(n), U?.(t, n), z?.(t, n);
12561
12608
  }, Ze = je ?? Pe, Qe = m(() => we.findIndex((e, t) => (C ? C(e) : String(Ue.get(e) ?? t)) === Ze), [
12562
12609
  we,
12563
12610
  Ze,
@@ -12588,18 +12635,18 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12588
12635
  };
12589
12636
  u(() => {
12590
12637
  if (!Me) return;
12591
- let e = fe.current, t = e?.querySelector(`.${Y}__row--inspected`);
12638
+ let e = fe.current, t = e?.querySelector(`.${le}__row--inspected`);
12592
12639
  if (!e || !t) return;
12593
12640
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = e.querySelector("thead")?.getBoundingClientRect().height ?? 0, a = n.top + i;
12594
12641
  r.top < a ? e.scrollTop -= a - r.top : r.bottom > n.bottom && (e.scrollTop += r.bottom - n.bottom);
12595
12642
  let o = document.activeElement;
12596
- o instanceof HTMLElement && o.classList.contains(`${Y}__row--inspectable`) && t.focus({ preventScroll: !0 });
12643
+ o instanceof HTMLElement && o.classList.contains(`${le}__row--inspectable`) && t.focus({ preventScroll: !0 });
12597
12644
  }, [
12598
12645
  je,
12599
12646
  Me,
12600
- Y
12647
+ le
12601
12648
  ]);
12602
- let rt = _e ? oe ?? "" : Se.key, it = _e ? se ?? "asc" : Se.order, at = m(() => {
12649
+ let rt = _e ? Y ?? "" : Se.key, it = _e ? oe ?? "asc" : Se.order, at = m(() => {
12603
12650
  if (M) return [];
12604
12651
  let e = we;
12605
12652
  if (!ve && be && Ie) {
@@ -12615,12 +12662,12 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12615
12662
  Ie,
12616
12663
  M
12617
12664
  ]), ot = (e) => {
12618
- _e ? W(e, oe === e && se === "asc" ? "desc" : "asc") : Ce((t) => ({
12665
+ _e ? W(e, Y === e && oe === "asc" ? "desc" : "asc") : Ce((t) => ({
12619
12666
  key: e,
12620
12667
  order: t.key === e && t.order === "asc" ? "desc" : "asc"
12621
12668
  }));
12622
12669
  }, st = (e) => rt === e ? it === "asc" ? "ascending" : "descending" : "none", ct = (e, t) => {
12623
- let n = `${Y}__sort-button-${t}`, r = !M && at.length === 0;
12670
+ let n = `${le}__sort-button-${t}`, r = !M && at.length === 0;
12624
12671
  if (M || r || rt === "") return t === "top" ? `${n}--inactive` : "";
12625
12672
  let i = rt === e;
12626
12673
  return t === "top" ? i && it === "asc" ? "" : `${n}--inactive` : i && it === "desc" ? `${n}--desc` : "";
@@ -12629,10 +12676,10 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12629
12676
  return N(t, r) && e.push(r), e;
12630
12677
  }, []), ut = lt.length > 0 && lt.every((e) => He.has(e)), dt = !ut && lt.some((e) => He.has(e)), ft = (e) => {
12631
12678
  let t = new Set(He);
12632
- t.has(e) ? t.delete(e) : t.add(e), ze || Ve(t), U?.(Array.from(t));
12679
+ t.has(e) ? t.delete(e) : t.add(e), ze || Ve(t), ee?.(Array.from(t));
12633
12680
  }, pt = () => {
12634
12681
  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));
12682
+ ut || dt ? lt.forEach((t) => e.delete(t)) : lt.forEach((t) => e.add(t)), ze || Ve(e), ee?.(Array.from(e));
12636
12683
  }, mt = (t) => /* @__PURE__ */ e.createElement("tr", { key: `skeleton-${t}` }, Re && /* @__PURE__ */ e.createElement("td", { className: "pds-table__checkbox-cell" }, /* @__PURE__ */ e.createElement(Rr, {
12637
12684
  shape: "rounded",
12638
12685
  size: {
@@ -12653,13 +12700,13 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12653
12700
  iconName: "emptySet",
12654
12701
  message: v
12655
12702
  }))), 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;
12703
+ 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
12704
  return /* @__PURE__ */ e.createElement("tr", {
12658
12705
  key: `row-${i}`,
12659
12706
  "aria-selected": a ? o : void 0,
12660
12707
  className: Z([
12661
- a ? `${Y}__row--inspectable` : null,
12662
- o ? `${Y}__row--inspected` : null,
12708
+ a ? `${le}__row--inspectable` : null,
12709
+ o ? `${le}__row--inspected` : null,
12663
12710
  S?.(t, i) ?? null
12664
12711
  ]),
12665
12712
  onClick: a ? () => qe(t, i) : void 0,
@@ -12679,7 +12726,7 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12679
12726
  key: `${i}-${n.id}`,
12680
12727
  className: n.cellClassName
12681
12728
  }, 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, {
12729
+ }, _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
12730
  shape: "rounded",
12684
12731
  size: { height: 1 }
12685
12732
  }))))), yt = () => /* @__PURE__ */ e.createElement("li", null, p ?? /* @__PURE__ */ e.createElement(Sr, {
@@ -12687,7 +12734,7 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12687
12734
  iconName: "emptySet",
12688
12735
  message: v
12689
12736
  })), 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", {
12737
+ 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
12738
  "aria-hidden": "true",
12692
12739
  className: "pds-checkbox"
12693
12740
  }, /* @__PURE__ */ e.createElement("span", { className: Z(["pds-checkbox__box", a ? "pds-checkbox__box--checked" : null]) }, a && /* @__PURE__ */ e.createElement("svg", {
@@ -12697,14 +12744,14 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12697
12744
  viewBox: "0 0 12 12",
12698
12745
  width: "12",
12699
12746
  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`,
12747
+ }, /* @__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, {
12748
+ className: `${le}__card-chevron`,
12702
12749
  iconName: "angleRight",
12703
12750
  size: "m"
12704
12751
  })), p = Z([
12705
- `${Y}__card`,
12706
- Re ? `${Y}__card--selectable` : X ? `${Y}__row--inspectable` : null,
12707
- i || a ? `${Y}__row--inspected` : null,
12752
+ `${le}__card`,
12753
+ Re ? `${le}__card--selectable` : X ? `${le}__row--inspectable` : null,
12754
+ i || a ? `${le}__row--inspected` : null,
12708
12755
  S?.(t, r) ?? null
12709
12756
  ]);
12710
12757
  return Re ? /* @__PURE__ */ e.createElement("li", { key: `card-${r}` }, /* @__PURE__ */ e.createElement("button", {
@@ -12736,16 +12783,16 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12736
12783
  style: St
12737
12784
  }, pe ? /* @__PURE__ */ e.createElement("ul", {
12738
12785
  "aria-busy": M,
12739
- className: Z([`${Y}-wrapper__card-list`, t]),
12740
- ...le
12786
+ className: Z([`${le}-wrapper__card-list`, t]),
12787
+ ...ce
12741
12788
  }, 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
12789
  "aria-busy": M,
12743
12790
  className: Z([
12744
- Y,
12745
- s === "compact" ? `${Y}--compact` : null,
12791
+ le,
12792
+ s === "compact" ? `${le}--compact` : null,
12746
12793
  t
12747
12794
  ]),
12748
- ...le
12795
+ ...ce
12749
12796
  }, /* @__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
12797
  checked: ut,
12751
12798
  id: de,
@@ -12759,16 +12806,16 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12759
12806
  className: t.headerClassName
12760
12807
  }, t.sortable ? /* @__PURE__ */ e.createElement("button", {
12761
12808
  "aria-label": E(On(t.header)),
12762
- className: `${Y}__sort-button`,
12809
+ className: `${le}__sort-button`,
12763
12810
  onClick: () => ot(t.id),
12764
12811
  type: "button"
12765
12812
  }, t.header, /* @__PURE__ */ e.createElement("span", {
12766
12813
  "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, {
12814
+ className: `${le}__sort-icons`
12815
+ }, /* @__PURE__ */ e.createElement("span", { className: Z([`${le}__sort-button-top`, ct(t.id, "top")]) }, /* @__PURE__ */ e.createElement(Q, {
12769
12816
  iconName: "caretUp",
12770
12817
  size: "m"
12771
- })), /* @__PURE__ */ e.createElement("span", { className: Z([`${Y}__sort-button-bottom`, ct(t.id, "bottom")]) }, /* @__PURE__ */ e.createElement(Q, {
12818
+ })), /* @__PURE__ */ e.createElement("span", { className: Z([`${le}__sort-button-bottom`, ct(t.id, "bottom")]) }, /* @__PURE__ */ e.createElement(Q, {
12772
12819
  iconName: "caretDown",
12773
12820
  size: "m"
12774
12821
  })))) : /* @__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 +12834,9 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12787
12834
  currentPage: ve ? i ?? 1 : Te,
12788
12835
  itemsPerPage: Ie,
12789
12836
  labelStrings: q,
12790
- onPageChange: ve ? ee : Ee,
12837
+ onPageChange: ve ? V : Ee,
12791
12838
  pageControlType: pe ? "static" : "dropdown",
12792
- totalItemCount: ve ? ce ?? 0 : re.length
12839
+ totalItemCount: ve ? se ?? 0 : re.length
12793
12840
  }))), 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
12841
  ariaLabel: n,
12795
12842
  onClick: Je,
@@ -12818,7 +12865,7 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12818
12865
  },
12819
12866
  title: l
12820
12867
  }, $e && (J ? J($e, tt) : _t($e)), $e && (ne || c) && /* @__PURE__ */ e.createElement("div", {
12821
- className: `${Y}-wrapper__mobile-sheet-nav`,
12868
+ className: `${le}-wrapper__mobile-sheet-nav`,
12822
12869
  slot: "footer"
12823
12870
  }, ne ? ne($e, tt) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Mn, {
12824
12871
  hasBorder: !0,
@@ -13162,9 +13209,9 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13162
13209
  maxWidth: j ? void 0 : `${E}rem`,
13163
13210
  minWidth: j ? `${w}rem` : `${D}rem`,
13164
13211
  width: z
13165
- }, ee = h(!1), V = ga(), H = V === "sm", U = () => {
13166
- if (!H) {
13167
- if (ee.current = !1, x) {
13212
+ }, V = h(!1), H = ga(), U = H === "sm", ee = () => {
13213
+ if (!U) {
13214
+ if (V.current = !1, x) {
13168
13215
  x();
13169
13216
  return;
13170
13217
  }
@@ -13172,13 +13219,13 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13172
13219
  }
13173
13220
  };
13174
13221
  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;
13222
+ H === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : H !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
13223
+ }, [H]);
13224
+ let W = d && s && !U;
13178
13225
  nn("[", (e) => {
13179
- e.preventDefault(), j || U();
13226
+ e.preventDefault(), j || ee();
13180
13227
  }, { enabled: W }), nn("]", (e) => {
13181
- e.preventDefault(), j && U();
13228
+ e.preventDefault(), j && ee();
13182
13229
  }, { enabled: W });
13183
13230
  let G = h(null);
13184
13231
  p(() => {
@@ -13200,14 +13247,14 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13200
13247
  r.disconnect(), i?.disconnect(), window.removeEventListener("resize", t);
13201
13248
  };
13202
13249
  }, [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, {
13250
+ 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
13251
  hasBorder: !0,
13205
13252
  ariaLabel: F.drawerToggle,
13206
13253
  className: `${N}__drawer-toggle`,
13207
13254
  iconName: "sidebar",
13208
13255
  onClick: b,
13209
13256
  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(_, {
13257
+ })), 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
13258
  ...y,
13212
13259
  className: Z([`${N}__main`, y?.className]),
13213
13260
  id: I,
@@ -13219,13 +13266,13 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13219
13266
  }, /* @__PURE__ */ e.createElement("div", {
13220
13267
  className: `${N}__main-inner`,
13221
13268
  style: { maxWidth: L }
13222
- }, q)), Y = /* @__PURE__ */ e.createElement("div", {
13269
+ }, q)), le = /* @__PURE__ */ e.createElement("div", {
13223
13270
  className: `${N}__content-column`,
13224
13271
  style: { backgroundColor: m || void 0 }
13225
- }, le, J && /* @__PURE__ */ e.createElement("div", { className: `${N}__footer` }, /* @__PURE__ */ e.createElement("div", {
13272
+ }, ce, J && /* @__PURE__ */ e.createElement("div", { className: `${N}__footer` }, /* @__PURE__ */ e.createElement("div", {
13226
13273
  className: `${N}__footer-inner`,
13227
13274
  style: { maxWidth: L }
13228
- }, J))), ue = /* @__PURE__ */ e.createElement(e.Fragment, null, (ne || se) && /* @__PURE__ */ e.createElement("div", {
13275
+ }, J))), ue = /* @__PURE__ */ e.createElement(e.Fragment, null, (ne || oe) && /* @__PURE__ */ e.createElement("div", {
13229
13276
  ...O,
13230
13277
  className: Z([
13231
13278
  `${N}__sidebar`,
@@ -13233,7 +13280,7 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13233
13280
  O?.className
13234
13281
  ]),
13235
13282
  style: B
13236
- }, s && !H && /* @__PURE__ */ e.createElement(an, {
13283
+ }, s && !U && /* @__PURE__ */ e.createElement(an, {
13237
13284
  disableTapTrigger: !0,
13238
13285
  className: `${N}__sidebar-toggle-tooltip`,
13239
13286
  content: j ? F.expandSidebar : F.collapseSidebar,
@@ -13241,7 +13288,7 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13241
13288
  "aria-expanded": !j,
13242
13289
  "aria-label": j ? F.expandSidebar : F.collapseSidebar,
13243
13290
  className: `${N}__sidebar-toggle-button`,
13244
- onClick: U,
13291
+ onClick: ee,
13245
13292
  type: "button"
13246
13293
  }, /* @__PURE__ */ e.createElement("span", { className: `${N}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(Q, {
13247
13294
  iconName: "angleLeft",
@@ -13253,7 +13300,7 @@ var Qo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
13253
13300
  crossAxis: -96
13254
13301
  },
13255
13302
  preferredPlacement: "right-end"
13256
- }), /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-inner` }, ce)), Y);
13303
+ }), /* @__PURE__ */ e.createElement("div", { className: `${N}__sidebar-inner` }, se)), le);
13257
13304
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
13258
13305
  ref: G,
13259
13306
  className: Z([