@pantheon-systems/pds-toolkit-react 2.0.0-alpha.4 → 2.0.0-alpha.6

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 (50) hide show
  1. package/dist/components/Avatar/Avatar.d.ts +1 -1
  2. package/dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +1 -1
  3. package/dist/components/StatusIndicator/StatusIndicator.d.ts +2 -2
  4. package/dist/components/badges/Badge/Badge.d.ts +28 -0
  5. package/dist/components/cards/NewSiteCard/NewSiteCard.d.ts +1 -1
  6. package/dist/components/cards/PricingCard/PricingCard.d.ts +6 -1
  7. package/dist/components/footer/SiteFooter/SiteFooter.d.ts +5 -1
  8. package/dist/components/icons/Icon/generated-icon-data.d.ts +9 -2
  9. package/dist/components/inputs/Select/Select.d.ts +5 -1
  10. package/dist/components/inputs/Select/select-sample-data.d.ts +1 -0
  11. package/dist/components/inputs/TextInput/TextInput.d.ts +4 -0
  12. package/dist/components/inputs/Textarea/Textarea.d.ts +4 -0
  13. package/dist/components/inputs/input-utilities.d.ts +3 -3
  14. package/dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +6 -7
  15. package/dist/css/component-css/pds-avatar.css +1 -1
  16. package/dist/css/component-css/pds-badge.css +1 -0
  17. package/dist/css/component-css/pds-button.css +2 -2
  18. package/dist/css/component-css/pds-dashboard-nav.css +1 -1
  19. package/dist/css/component-css/pds-file-upload.css +1 -1
  20. package/dist/css/component-css/pds-icon-button.css +4 -4
  21. package/dist/css/component-css/pds-icon.css +1 -1
  22. package/dist/css/component-css/pds-index.css +13 -37
  23. package/dist/css/component-css/pds-input-utilities.css +1 -1
  24. package/dist/css/component-css/pds-pricing-card.css +1 -1
  25. package/dist/css/component-css/pds-select.css +1 -1
  26. package/dist/css/component-css/pds-side-nav-global.css +1 -1
  27. package/dist/css/component-css/pds-skiplink.css +1 -1
  28. package/dist/css/component-css/pds-sso-button.css +1 -1
  29. package/dist/css/component-css/pds-status-badge.css +1 -1
  30. package/dist/css/component-css/pds-status-indicator.css +1 -1
  31. package/dist/css/component-css/pds-text-input.css +1 -1
  32. package/dist/css/component-css/pds-textarea.css +1 -1
  33. package/dist/css/component-css/pds-tooltip.css +1 -1
  34. package/dist/css/component-css/pds-workspace-selector.css +1 -1
  35. package/dist/css/design-tokens/variables.dark.css +120 -22
  36. package/dist/css/design-tokens/variables.global.css +4 -3
  37. package/dist/css/design-tokens/variables.light.css +98 -22
  38. package/dist/css/design-tokens/variables.typography.css +2 -0
  39. package/dist/css/pds-components.css +13 -37
  40. package/dist/css/pds-core.css +1 -1
  41. package/dist/index.css +1 -1
  42. package/dist/index.d.ts +8 -1
  43. package/dist/index.js +1827 -1564
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.source.d.ts +1 -1
  46. package/dist/libs/types/custom-types.d.ts +0 -1
  47. package/dist/svg/locationCrosshairs.svg +3 -0
  48. package/package.json +2 -2
  49. package/dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +0 -27
  50. package/dist/css/component-css/pds-indicator-badge.css +0 -25
package/dist/index.js CHANGED
@@ -1,55 +1,18 @@
1
- import e, { Children as l1, isValidElement as z2, useState as O, useCallback as M2, useEffect as c2, createContext as a1, forwardRef as k2, cloneElement as n1, useRef as Q, useContext as P2, useLayoutEffect as M1 } from "react";
2
- import { useFloating as i1, autoUpdate as r1, offset as b1, flip as o1, shift as y1, useHover as E1, useFocus as $1, useDismiss as D1, useRole as _1, useInteractions as k1, FloatingPortal as P1, useId as x1 } from "@floating-ui/react";
3
- import { ToastContainer as N1, Slide as S1, cssTransition as I1, toast as e1 } from "react-toastify";
4
- import { useMeasure as j1 } from "@reactuses/core";
5
- import './index.css';const T1 = () => Math.random().toString(32).substring(2, 13), x2 = (t) => {
6
- const a = {}, l = [];
7
- return l1.forEach(t, (s) => {
8
- if (z2(s)) {
9
- const r = s.props.slot;
10
- r ? a[r] ? a[r].push(s) : a[r] = [s] : l.push(s);
1
+ import e, { Children as i1, isValidElement as h2, useState as H, cloneElement as _2, useCallback as $2, useEffect as l2, createContext as n1, useContext as D2, forwardRef as P2, useRef as J, useLayoutEffect as _1 } from "react";
2
+ import D1 from "hash-sum";
3
+ import { useFloating as r1, autoUpdate as o1, offset as P1, flip as m1, shift as k1, useHover as x1, useFocus as N1, useDismiss as S1, useRole as I1, useInteractions as j1, FloatingPortal as T1, useId as B1 } from "@floating-ui/react";
4
+ import { ToastContainer as A1, Slide as O1, cssTransition as H1, toast as e1 } from "react-toastify";
5
+ import { useMeasure as R1 } from "@reactuses/core";
6
+ import './index.css';const V1 = () => Math.random().toString(32).substring(2, 13), j2 = (t) => {
7
+ const l = {}, a = [];
8
+ return i1.forEach(t, (c) => {
9
+ if (h2(c)) {
10
+ const i = c.props.slot;
11
+ i ? l[i] ? l[i].push(c) : l[i] = [c] : a.push(c);
11
12
  } else
12
- l.push(s);
13
- }), l.length > 0 && (a.__unslotted = l), a;
14
- }, b = (t) => t.join(" ").trim().replace(/\s+/g, " "), d1 = ({
15
- className: t,
16
- label: a,
17
- size: l = "s",
18
- type: s = "neutral",
19
- typeLabels: r = {
20
- info: "Information",
21
- success: "Success",
22
- warning: "Warning",
23
- critical: "Critical",
24
- neutral: ""
25
- },
26
- ...c
27
- }) => {
28
- const n = "pds-tally", i = `${n}--${s}`, m = `${n}--${l}`, h = `${r[s]}: `;
29
- return /* @__PURE__ */ e.createElement(
30
- "div",
31
- {
32
- className: b([
33
- n,
34
- i,
35
- m,
36
- t ?? ""
37
- ]),
38
- ...c
39
- },
40
- /* @__PURE__ */ e.createElement("div", { className: `${n}__label` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h), a)
41
- );
42
- };
43
- d1.displayName = "Tally";
44
- const W2 = (t) => {
45
- if (typeof t == "string" || typeof t == "number")
46
- return String(t);
47
- if (z2(t)) {
48
- const a = t.props;
49
- return l1.toArray(a.children).map(W2).join("");
50
- }
51
- return "";
52
- }, A1 = 768, R1 = 1280, B1 = 1440, O1 = "5rem", H1 = "4rem", V1 = "3rem", m1 = "2.5rem", h1 = "2rem", g1 = "1.5rem", X2 = "1.25rem", Y2 = "1rem", D2 = "0.75rem", u2 = "0.625rem", O2 = 500, F1 = 700, t1 = {
13
+ a.push(c);
14
+ }), a.length > 0 && (l.__unslotted = a), l;
15
+ }, v = (t) => t.join(" ").trim().replace(/\s+/g, " "), F1 = (t) => t ? t.startsWith("data:") ? /^data:image\/(png|jpeg|jpg|gif|bmp|webp);base64,[A-Za-z0-9+/]+=*$/.test(t) : !0 : !1, t1 = {
53
16
  boltPantheon: {
54
17
  height: 512,
55
18
  svgPathData: "M183.215 0L254.271 277.176H204.614L302 512L46.228 187.779H135.272L0 0.434418L144.526 0.459972L145.968 0H183.215Z",
@@ -1001,6 +964,13 @@ const W2 = (t) => {
1001
964
  svgPathData: "M139.7 69.8c7.6-10.9 5-25.8-5.9-33.4s-25.8-5-33.4 5.9L60.7 98.8 41 79C31.6 69.7 16.4 69.7 7 79S-2.3 103.6 7 113l40 40c5 5 12 7.6 19.1 6.9s13.5-4.3 17.6-10.1l56-80zm0 160c7.6-10.9 5-25.8-5.9-33.4s-25.8-5-33.4 5.9L60.7 258.8 41 239c-9.4-9.4-24.6-9.4-33.9 0S-2.3 263.6 7 273l40 40c5 5 12 7.6 19.1 6.9s13.5-4.3 17.6-10.1l56-80zM192 96c0 13.3 10.7 24 24 24l272 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L216 72c-13.3 0-24 10.7-24 24zm0 160c0 13.3 10.7 24 24 24l272 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-272 0c-13.3 0-24 10.7-24 24zM160 416c0 13.3 10.7 24 24 24l304 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-304 0c-13.3 0-24 10.7-24 24zm-64 0a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z",
1002
965
  width: 512
1003
966
  },
967
+ locationCrosshairs: {
968
+ aliases: ["location", "gps", "target", "crosshair"],
969
+ categories: ["navigation"],
970
+ height: 512,
971
+ svgPathData: "M288-16c13.3 0 24 10.7 24 24l0 25.3C416.5 44.4 499.6 127.5 510.7 232l25.3 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-25.3 0C499.6 384.5 416.5 467.6 312 478.7l0 25.3c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-25.3C159.5 467.6 76.4 384.5 65.3 280L40 280c-13.3 0-24-10.7-24-24s10.7-24 24-24l25.3 0C76.4 127.5 159.5 44.4 264 33.3L264 8c0-13.3 10.7-24 24-24zM464 256a176 176 0 1 0 -352 0 176 176 0 1 0 352 0zm-112 0a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zm-176 0a112 112 0 1 1 224 0 112 112 0 1 1 -224 0z",
972
+ width: 576
973
+ },
1004
974
  lock: {
1005
975
  aliases: ["locked", "password", "secure", "private"],
1006
976
  categories: ["actions", "security", "status"],
@@ -1547,7 +1517,7 @@ const W2 = (t) => {
1547
1517
  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",
1548
1518
  width: 576
1549
1519
  }
1550
- }, $4 = [
1520
+ }, B4 = [
1551
1521
  "angleDown",
1552
1522
  "angleLeft",
1553
1523
  "angleRight",
@@ -1671,6 +1641,7 @@ const W2 = (t) => {
1671
1641
  "linkSimple",
1672
1642
  "linkSimpleSlash",
1673
1643
  "listCheck",
1644
+ "locationCrosshairs",
1674
1645
  "lock",
1675
1646
  "lockOpen",
1676
1647
  "magnifyingGlass",
@@ -1749,529 +1720,710 @@ const W2 = (t) => {
1749
1720
  "xmarkLarge",
1750
1721
  "xTwitter",
1751
1722
  "youtube"
1752
- ], q1 = {
1753
- "2xl": h1,
1754
- "3xl": m1,
1755
- l: X2,
1756
- m: Y2,
1757
- s: D2,
1758
- xl: g1,
1759
- xs: u2
1760
- }, V = ({
1723
+ ], A = ({
1761
1724
  className: t,
1762
- display: a = "inline-block",
1763
- iconName: l,
1764
- iconSize: s = "l",
1765
- style: r,
1766
- verticalAlign: c = "middle",
1725
+ display: l = "inline-block",
1726
+ iconName: a,
1727
+ iconSize: c = "l",
1728
+ style: i,
1729
+ verticalAlign: s = "middle",
1767
1730
  ...n
1768
1731
  }) => {
1769
- const i = "pds-icon", m = `${i} ${i}--${s} ${i}--${l}`, h = Z1[l], p = `0 0 ${h.width} ${h.height}`, f = l in t1 ? t1[l] : null;
1732
+ const r = "pds-icon", o = `${r} ${r}--${c} ${r}--${a}`, m = Z1[a], h = `0 0 ${m.width} ${m.height}`, z = a in t1 ? t1[a] : null;
1770
1733
  let d;
1771
- if (f?.type === "complex")
1772
- d = f.render();
1734
+ if (z?.type === "complex")
1735
+ d = z.render();
1773
1736
  else {
1774
- const g = f?.type === "path" ? f.svgPathData : h.svgPathData;
1775
- d = Array.isArray(g) ? g.map((M, o) => /* @__PURE__ */ e.createElement("path", { key: o, d: M, fill: "currentColor" })) : /* @__PURE__ */ e.createElement("path", { d: g, fill: "currentColor" });
1737
+ const f = z?.type === "path" ? z.svgPathData : m.svgPathData;
1738
+ d = Array.isArray(f) ? f.map((C, g) => /* @__PURE__ */ e.createElement("path", { key: g, d: C, fill: "currentColor" })) : /* @__PURE__ */ e.createElement("path", { d: f, fill: "currentColor" });
1776
1739
  }
1777
1740
  return /* @__PURE__ */ e.createElement(
1778
1741
  "svg",
1779
1742
  {
1780
1743
  "aria-hidden": "true",
1781
- className: b([m, t ?? ""]),
1744
+ className: v([o, t ?? ""]),
1782
1745
  fill: "none",
1783
1746
  focusable: "false",
1784
- height: q1[s],
1785
1747
  preserveAspectRatio: "xMidYMid meet",
1786
1748
  role: "img",
1787
1749
  style: {
1788
- display: a,
1789
- flexShrink: 0,
1790
- overflow: "visible",
1791
- verticalAlign: c,
1792
- ...r
1750
+ display: l,
1751
+ verticalAlign: s,
1752
+ ...i
1793
1753
  },
1794
- viewBox: p,
1754
+ viewBox: h,
1795
1755
  xmlns: "http://www.w3.org/2000/svg",
1796
1756
  ...n
1797
1757
  },
1798
1758
  d
1799
1759
  );
1800
- }, w2 = "0.75rem", s1 = "0.875rem", c1 = "1rem", U1 = a1(null), G1 = ({
1760
+ }, s1 = [
1761
+ "dawn",
1762
+ "dragonfruit",
1763
+ "dusk",
1764
+ "earth",
1765
+ "fall",
1766
+ "grape",
1767
+ "midnight",
1768
+ "moon",
1769
+ "plum",
1770
+ "spring",
1771
+ "summer",
1772
+ "sun",
1773
+ "sundown",
1774
+ "sunrise",
1775
+ "twilight",
1776
+ "winter"
1777
+ ], q1 = (t) => {
1778
+ const l = parseInt(D1(t), 16);
1779
+ return s1[l % s1.length];
1780
+ }, A4 = ({
1781
+ ariaLabel: t,
1782
+ className: l,
1783
+ hasUserFallback: a = !1,
1784
+ imageSrc: c,
1785
+ linkContent: i,
1786
+ size: s = "s",
1787
+ uniqueId: n,
1788
+ ...r
1789
+ }) => {
1790
+ const o = "pds-avatar", m = `${o}--${s}`, h = c ? `${o}--image` : null, [z, d] = H(void 0), C = {
1791
+ backgroundImage: n ? `var(--pds-gradient-avatar-${q1(n)})` : null,
1792
+ borderRadius: "100%",
1793
+ height: "100%",
1794
+ width: "100%",
1795
+ display: "flex",
1796
+ alignItems: "center",
1797
+ justifyContent: "center"
1798
+ }, g = F1(c) && !z ? /* @__PURE__ */ e.createElement(
1799
+ "img",
1800
+ {
1801
+ alt: "",
1802
+ className: `${o}__image`,
1803
+ onError: () => d(!0),
1804
+ onLoad: () => d(!1),
1805
+ src: `${c}`
1806
+ }
1807
+ ) : /* @__PURE__ */ e.createElement("span", { style: C }, a && /* @__PURE__ */ e.createElement(A, { className: `${o}__user-icon`, iconName: "user" })), p = /* @__PURE__ */ e.createElement("span", { className: `${o}__content` }, g), L = i && h2(i) ? _2(
1808
+ i,
1809
+ Object.assign({}, i.props, {
1810
+ className: `${o}__content ${o}__content--link`,
1811
+ "aria-label": t
1812
+ }),
1813
+ g
1814
+ ) : null;
1815
+ return /* @__PURE__ */ e.createElement(
1816
+ "div",
1817
+ {
1818
+ className: v([o, m, h, l]),
1819
+ ...r
1820
+ },
1821
+ i ? L : p
1822
+ );
1823
+ }, O4 = ({
1824
+ className: t,
1825
+ color: l = "gaia",
1826
+ label: a,
1827
+ size: c = "m",
1828
+ ...i
1829
+ }) => {
1830
+ const s = "pds-badge", n = `${s}--${l}`, r = c !== "m" ? `${s}--${c}` : null;
1831
+ return /* @__PURE__ */ e.createElement(
1832
+ "span",
1833
+ {
1834
+ className: v([
1835
+ s,
1836
+ n,
1837
+ r,
1838
+ t ?? ""
1839
+ ]),
1840
+ ...i
1841
+ },
1842
+ /* @__PURE__ */ e.createElement("span", { className: `${s}__label` }, a)
1843
+ );
1844
+ }, G1 = ({
1845
+ className: t,
1846
+ color: l = "transparent",
1847
+ hasStatusIndicator: a = !1,
1848
+ label: c,
1849
+ statusIndicatorText: i = "Status indicator: ",
1850
+ statusType: s,
1851
+ ...n
1852
+ }) => {
1853
+ const r = "pds-status-badge", o = `${r}--${l}`, m = `${r}__status`, h = s ? `${m}--${s}` : null;
1854
+ return /* @__PURE__ */ e.createElement(
1855
+ "div",
1856
+ {
1857
+ className: v([r, o, t ?? ""]),
1858
+ ...n
1859
+ },
1860
+ a === !0 && /* @__PURE__ */ e.createElement("span", { className: v([m, h]) }, s && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, i, " ", s)),
1861
+ /* @__PURE__ */ e.createElement("span", { className: `${r}__label` }, c)
1862
+ );
1863
+ }, d1 = ({
1864
+ className: t,
1865
+ label: l,
1866
+ size: a = "s",
1867
+ type: c = "neutral",
1868
+ typeLabels: i = {
1869
+ info: "Information",
1870
+ success: "Success",
1871
+ warning: "Warning",
1872
+ critical: "Critical",
1873
+ neutral: ""
1874
+ },
1875
+ ...s
1876
+ }) => {
1877
+ const n = "pds-tally", r = `${n}--${c}`, o = `${n}--${a}`, m = `${i[c]}: `;
1878
+ return /* @__PURE__ */ e.createElement(
1879
+ "div",
1880
+ {
1881
+ className: v([
1882
+ n,
1883
+ r,
1884
+ o,
1885
+ t ?? ""
1886
+ ]),
1887
+ ...s
1888
+ },
1889
+ /* @__PURE__ */ e.createElement("div", { className: `${n}__label` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, m), l)
1890
+ );
1891
+ };
1892
+ d1.displayName = "Tally";
1893
+ const Y2 = (t) => {
1894
+ if (typeof t == "string" || typeof t == "number")
1895
+ return String(t);
1896
+ if (h2(t)) {
1897
+ const l = t.props;
1898
+ return i1.toArray(l.children).map(Y2).join("");
1899
+ }
1900
+ return "";
1901
+ }, W1 = 768, U1 = 1280, K1 = 1440, X1 = "5rem", Y1 = "4rem", Q1 = "3rem", J1 = "2.5rem", e4 = "2rem", t4 = "1.5rem", h1 = "1.25rem", u1 = "1rem", K2 = "0.75rem", E2 = "0.625rem", R2 = 500, s4 = 700, y2 = "0.75rem", c1 = "0.875rem", a1 = "1rem", g1 = n1(null), c4 = ({
1801
1902
  children: t
1802
1903
  }) => {
1803
- const [a, l] = O(0), s = M2(() => {
1804
- l((i) => i + 1);
1805
- }, []), r = M2(() => {
1806
- l((i) => Math.max(0, i - 1));
1807
- }, []), c = a > 0;
1808
- c2(() => {
1809
- if (!c)
1904
+ const [l, a] = H(0), c = $2(() => {
1905
+ a((r) => r + 1);
1906
+ }, []), i = $2(() => {
1907
+ a((r) => Math.max(0, r - 1));
1908
+ }, []), s = l > 0;
1909
+ l2(() => {
1910
+ if (!s)
1810
1911
  return;
1811
- const i = (m) => {
1812
- ["/"].includes(m.key) && (m.preventDefault(), m.stopPropagation(), m.stopImmediatePropagation());
1912
+ const r = (o) => {
1913
+ ["/"].includes(o.key) && (o.preventDefault(), o.stopPropagation(), o.stopImmediatePropagation());
1813
1914
  };
1814
- return document.addEventListener("keydown", i, { capture: !0 }), () => {
1815
- document.removeEventListener("keydown", i, { capture: !0 });
1915
+ return document.addEventListener("keydown", r, { capture: !0 }), () => {
1916
+ document.removeEventListener("keydown", r, { capture: !0 });
1816
1917
  };
1817
- }, [c]);
1918
+ }, [s]);
1818
1919
  const n = {
1819
- closeOverlay: r,
1820
- hasOpenOverlay: c,
1821
- openOverlay: s
1920
+ closeOverlay: i,
1921
+ hasOpenOverlay: s,
1922
+ openOverlay: c
1822
1923
  };
1823
- return /* @__PURE__ */ e.createElement(U1.Provider, { value: n }, t);
1824
- }, D4 = (t, a, l) => {
1924
+ return /* @__PURE__ */ e.createElement(g1.Provider, { value: n }, t);
1925
+ }, a4 = () => {
1926
+ const t = D2(g1);
1927
+ if (!t)
1928
+ throw new Error(
1929
+ "useOverlayContext must be used within OverlayContextProvider"
1930
+ );
1931
+ return t;
1932
+ }, l4 = (t, l, a) => {
1825
1933
  const {
1826
- altKey: s = !1,
1827
- ctrlKey: r = !1,
1828
- enabled: c = !0,
1934
+ altKey: c = !1,
1935
+ ctrlKey: i = !1,
1936
+ enabled: s = !0,
1829
1937
  metaKey: n = !1,
1830
- shiftKey: i = !1
1831
- } = l ?? {}, [m, h] = O(!1), p = M2(
1832
- (g) => g.altKey === s && g.ctrlKey === r && g.metaKey === n && g.shiftKey === i,
1833
- [s, r, n, i]
1834
- ), f = M2(
1835
- (g) => {
1836
- g.key === t && p(g) && (h(!0), a && a(g));
1938
+ shiftKey: r = !1
1939
+ } = a ?? {}, [o, m] = H(!1), h = $2(
1940
+ (f) => f.altKey === c && f.ctrlKey === i && f.metaKey === n && f.shiftKey === r,
1941
+ [c, i, n, r]
1942
+ ), z = $2(
1943
+ (f) => {
1944
+ f.key === t && h(f) && (m(!0), l && l(f));
1837
1945
  },
1838
- [t, a, p]
1839
- ), d = M2(
1840
- (g) => {
1841
- g.key === t && p(g) && h(!1);
1946
+ [t, l, h]
1947
+ ), d = $2(
1948
+ (f) => {
1949
+ f.key === t && h(f) && m(!1);
1842
1950
  },
1843
- [t, p]
1951
+ [t, h]
1844
1952
  );
1845
- return c2(() => {
1846
- if (c)
1847
- return window.addEventListener("keydown", f), window.addEventListener("keyup", d), () => {
1848
- window.removeEventListener("keydown", f), window.removeEventListener("keyup", d);
1953
+ return l2(() => {
1954
+ if (s)
1955
+ return window.addEventListener("keydown", z), window.addEventListener("keyup", d), () => {
1956
+ window.removeEventListener("keydown", z), window.removeEventListener("keyup", d);
1849
1957
  };
1850
- }, [f, d, c]), m;
1851
- }, N2 = ({
1958
+ }, [z, d, s]), o;
1959
+ }, T2 = ({
1852
1960
  className: t,
1853
- content: a,
1854
- customTrigger: l = null,
1855
- offsetValue: s = 8,
1856
- preferredPlacement: r = "top",
1857
- triggerAccessibleText: c = "Show more information",
1961
+ content: l,
1962
+ customTrigger: a = null,
1963
+ offsetValue: c = 6,
1964
+ preferredPlacement: i = "top",
1965
+ triggerAccessibleText: s = "Show more information",
1858
1966
  triggerIcon: n = "circleInfo",
1859
- triggerIconColor: i = "default",
1860
- triggerIconSize: m = "s",
1861
- zIndex: h = F1,
1862
- ...p
1967
+ triggerIconColor: r = "default",
1968
+ triggerIconSize: o = "m",
1969
+ zIndex: m = s4,
1970
+ ...h
1863
1971
  }) => {
1864
- const [f, d] = O(!1), g = typeof l, M = "pds-tooltip", o = b([
1865
- `${M}__trigger-custom`,
1866
- g === "string" ? `${M}__trigger-text` : null
1867
- ]), z = b([
1868
- `${M}__trigger`,
1869
- `${M}__trigger--${i}`
1870
- ]), { context: L, floatingStyles: y, refs: w } = i1({
1871
- placement: r,
1872
- open: f,
1972
+ const [z, d] = H(!1), f = typeof a, C = "pds-tooltip", g = v([
1973
+ `${C}__trigger-custom`,
1974
+ f === "string" ? `${C}__trigger-text` : null
1975
+ ]), p = v([
1976
+ `${C}__trigger`,
1977
+ `${C}__trigger--${r}`
1978
+ ]), { context: L, floatingStyles: b, refs: M } = r1({
1979
+ placement: i,
1980
+ open: z,
1873
1981
  onOpenChange: d,
1874
- middleware: [b1(s), o1(), y1()],
1875
- whileElementsMounted: r1
1876
- }), _ = E1(L, {
1982
+ middleware: [P1(c), m1(), k1()],
1983
+ whileElementsMounted: o1
1984
+ }), D = x1(L, {
1877
1985
  restMs: 300,
1878
1986
  delay: { open: 100, close: 0 },
1879
1987
  move: !1
1880
- }), k = $1(L), S = D1(L), x = _1(L, { role: "tooltip" }), { getFloatingProps: v, getReferenceProps: T } = k1([
1881
- _,
1882
- k,
1883
- S,
1884
- x
1988
+ }), N = N1(L), P = S1(L), _ = I1(L, { role: "tooltip" }), { getFloatingProps: w, getReferenceProps: S } = j1([
1989
+ D,
1990
+ N,
1991
+ P,
1992
+ _
1885
1993
  ]);
1886
- return /* @__PURE__ */ e.createElement("div", { className: b([M, t ?? ""]), ...p }, l ? /* @__PURE__ */ e.createElement(
1994
+ return /* @__PURE__ */ e.createElement("div", { className: v([C, t ?? ""]), ...h }, a ? /* @__PURE__ */ e.createElement(
1887
1995
  "span",
1888
1996
  {
1889
- ref: w.setReference,
1890
- className: o,
1891
- ...T()
1997
+ ref: M.setReference,
1998
+ className: g,
1999
+ ...S()
1892
2000
  },
1893
- l
2001
+ a
1894
2002
  ) : /* @__PURE__ */ e.createElement(
1895
2003
  "button",
1896
2004
  {
1897
- ref: w.setReference,
1898
- "aria-label": c,
1899
- className: z,
2005
+ ref: M.setReference,
2006
+ "aria-label": s,
2007
+ className: p,
1900
2008
  type: "button",
1901
- ...T()
2009
+ ...S()
1902
2010
  },
1903
2011
  /* @__PURE__ */ e.createElement(
1904
- V,
2012
+ A,
1905
2013
  {
1906
- className: `${M}__icon`,
2014
+ className: `${C}__icon`,
1907
2015
  iconName: n,
1908
- iconSize: m
2016
+ iconSize: o
1909
2017
  }
1910
2018
  )
1911
- ), /* @__PURE__ */ e.createElement(P1, null, /* @__PURE__ */ e.createElement(
2019
+ ), /* @__PURE__ */ e.createElement(T1, null, /* @__PURE__ */ e.createElement(
1912
2020
  "div",
1913
2021
  {
1914
- ref: w.setFloating,
1915
- "aria-hidden": !f,
1916
- className: `${M}__container`,
2022
+ ref: M.setFloating,
2023
+ "aria-hidden": !z,
2024
+ className: `${C}__container`,
1917
2025
  style: {
1918
- ...y,
1919
- zIndex: h,
1920
- opacity: f ? 1 : 0,
1921
- pointerEvents: f ? "auto" : "none",
2026
+ ...b,
2027
+ zIndex: m,
2028
+ opacity: z ? 1 : 0,
2029
+ pointerEvents: z ? "auto" : "none",
1922
2030
  transition: "var(--pds-animation-transition-reveal)"
1923
2031
  },
1924
- ...v()
2032
+ ...w()
1925
2033
  },
1926
- a
2034
+ l
1927
2035
  )));
1928
- }, p2 = {
2036
+ }, X = {
1929
2037
  base: "pds-input",
1930
2038
  disabled: "pds-is-disabled",
1931
2039
  required: "pds-is-required",
1932
2040
  error: "pds-has-error",
1933
- success: "pds-has-success"
1934
- }, K1 = (t) => t ? { maxWidth: `${t / 16}rem` } : null, W1 = () => /* @__PURE__ */ e.createElement("span", { className: "pds-input-label__required" }, /* @__PURE__ */ e.createElement(
1935
- V,
2041
+ success: "pds-has-success",
2042
+ readonly: "pds-is-readonly"
2043
+ }, p1 = (t) => t ? { maxWidth: `${t / 16}rem` } : null, l1 = (t) => t.replace(/^(https?:\/\/)/, ""), i4 = () => /* @__PURE__ */ e.createElement("span", { className: "pds-input-label__required" }, /* @__PURE__ */ e.createElement(
2044
+ A,
1936
2045
  {
1937
2046
  className: "pds-input-label__required-icon",
1938
2047
  iconName: "asterisk",
1939
2048
  iconSize: "s"
1940
2049
  }
1941
- )), X1 = ({
2050
+ )), z1 = ({
1942
2051
  className: t,
1943
- disabled: a,
1944
- id: l,
1945
- isLegend: s,
1946
- isPseudoLabel: r,
1947
- label: c,
2052
+ disabled: l,
2053
+ id: a,
2054
+ isLegend: c,
2055
+ isPseudoLabel: i,
2056
+ label: s,
1948
2057
  required: n,
1949
- showLabel: i = !0,
1950
- tooltipText: m = null
2058
+ showLabel: r = !0,
2059
+ tooltipText: o = null
1951
2060
  }) => {
1952
- const h = b([
2061
+ const m = v([
1953
2062
  "pds-input-label",
1954
- i ? null : "visually-hidden",
2063
+ r ? null : "visually-hidden",
1955
2064
  t ?? ""
1956
- ]), p = /* @__PURE__ */ e.createElement(e.Fragment, null, c, n && !a && /* @__PURE__ */ e.createElement(W1, null), m && /* @__PURE__ */ e.createElement(N2, { content: m }, /* @__PURE__ */ e.createElement("span", null, /* @__PURE__ */ e.createElement(V, { iconName: "circleInfo", iconSize: "s" }))));
1957
- return s ? /* @__PURE__ */ e.createElement("legend", { className: h, id: `${l}-legend` }, p) : r ? /* @__PURE__ */ e.createElement("span", { className: h, id: `${l}-field-label` }, p) : /* @__PURE__ */ e.createElement("label", { className: h, htmlFor: l, id: `${l}-label` }, p);
1958
- }, Y1 = ({
2065
+ ]), h = /* @__PURE__ */ e.createElement(e.Fragment, null, s, n && !l && /* @__PURE__ */ e.createElement(i4, null), o && /* @__PURE__ */ e.createElement(T2, { content: o }, /* @__PURE__ */ e.createElement("span", null, /* @__PURE__ */ e.createElement(A, { iconName: "circleInfo", iconSize: "s" }))));
2066
+ return c ? /* @__PURE__ */ e.createElement("legend", { className: m, id: `${a}-legend` }, h) : i ? /* @__PURE__ */ e.createElement("span", { className: m, id: `${a}-field-label` }, h) : /* @__PURE__ */ e.createElement("label", { className: m, htmlFor: a, id: `${a}-label` }, h);
2067
+ }, f1 = ({
1959
2068
  className: t,
1960
- forInputGroup: a = !1,
1961
- hasValidationMessage: l,
1962
- id: s,
1963
- message: r,
1964
- validationMessageHasDecorators: c,
2069
+ forInputGroup: l = !1,
2070
+ hasValidationMessage: a,
2071
+ id: c,
2072
+ message: i,
2073
+ validationMessageHasDecorators: s,
1965
2074
  validationStatus: n
1966
2075
  }) => {
1967
- const i = "pds-input-message", m = n && l ? `${i}--${n}` : null;
2076
+ const r = "pds-input-message", o = n && a ? `${r}--${n}` : null;
1968
2077
  return /* @__PURE__ */ e.createElement(
1969
2078
  "div",
1970
2079
  {
1971
- className: b([i, m, t ?? ""]),
1972
- id: a ? `${s}__message-hidden` : `${s}__message`,
2080
+ className: v([r, o, t ?? ""]),
2081
+ id: l ? `${c}__message-hidden` : `${c}__message`,
1973
2082
  role: n === "error" ? "alert" : null
1974
2083
  },
1975
- c && n && /* @__PURE__ */ e.createElement(J1, { variant: n }),
1976
- /* @__PURE__ */ e.createElement("div", { className: `${i}__text` }, r)
2084
+ s && n && /* @__PURE__ */ e.createElement(L1, { variant: n }),
2085
+ /* @__PURE__ */ e.createElement("div", { className: `${r}__text` }, i)
1977
2086
  );
1978
- }, Q1 = {
2087
+ }, n4 = {
1979
2088
  search: "magnifyingGlass",
1980
2089
  error: "triangleExclamation",
1981
2090
  success: "check",
1982
2091
  filter: "barsFilter"
1983
- }, J1 = ({ variant: t }) => {
1984
- const a = "pds-input-decorator";
1985
- return /* @__PURE__ */ e.createElement("div", { className: b([a, `${a}--${t}`]) }, /* @__PURE__ */ e.createElement(
1986
- V,
2092
+ }, L1 = ({ variant: t }) => {
2093
+ const l = "pds-input-prefix";
2094
+ return /* @__PURE__ */ e.createElement("div", { className: v([l, `${l}--${t}`]) }, /* @__PURE__ */ e.createElement(
2095
+ A,
1987
2096
  {
1988
- className: `${a}__icon`,
1989
- iconName: Q1[t],
2097
+ className: `${l}__icon`,
2098
+ iconName: n4[t],
1990
2099
  iconSize: "m"
1991
2100
  }
1992
2101
  ));
1993
- }, e4 = ({ label: t, ...a }) => /* @__PURE__ */ e.createElement("span", { className: "visually-hidden", ...a }, t);
1994
- k2(
1995
- ({ children: t, className: a, isActive: l, ...s }, r) => {
1996
- const c = x1(), n = "pds-input__select-option", i = l ? `${n}--active` : null;
2102
+ }, r4 = ({
2103
+ inputId: t,
2104
+ shortcutLabel: l
2105
+ }) => {
2106
+ const { hasOpenOverlay: a } = a4();
2107
+ return l4("/", (i) => {
2108
+ const s = document.getElementById(t);
2109
+ s && s.focus(), i.preventDefault();
2110
+ }, {
2111
+ enabled: !a
2112
+ }), /* @__PURE__ */ e.createElement("div", { className: "pds-input-search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, l), /* @__PURE__ */ e.createElement(A, { iconName: "slashForward", iconSize: "s" }));
2113
+ }, o4 = ({
2114
+ clearLabel: t,
2115
+ handleClearInput: l,
2116
+ id: a
2117
+ }) => /* @__PURE__ */ e.createElement(
2118
+ "button",
2119
+ {
2120
+ "aria-controls": a,
2121
+ className: "pds-input-clear-button",
2122
+ onClick: l,
2123
+ title: t,
2124
+ type: "button"
2125
+ },
2126
+ /* @__PURE__ */ e.createElement(A, { iconName: "xmark", iconSize: "m" })
2127
+ ), C1 = ({
2128
+ currentLength: t,
2129
+ id: l,
2130
+ maxLength: a,
2131
+ overLimitMessage: c = "Character limit exceeded by"
2132
+ }) => {
2133
+ const i = t > a, s = t - a, n = "pds-input-character-counter", r = i ? `${n}--overLimit` : null;
2134
+ return /* @__PURE__ */ e.createElement(
2135
+ "div",
2136
+ {
2137
+ className: v([n, r]),
2138
+ id: `${l}__counter`
2139
+ },
2140
+ t,
2141
+ "/",
2142
+ a,
2143
+ /* @__PURE__ */ e.createElement("span", { "aria-live": "polite", className: "visually-hidden" }, i && `${c} ${s}`)
2144
+ );
2145
+ }, m4 = ({ label: t, ...l }) => /* @__PURE__ */ e.createElement("span", { className: "visually-hidden", ...l }, t);
2146
+ P2(
2147
+ ({ children: t, className: l, isActive: a, ...c }, i) => {
2148
+ const s = B1(), n = "pds-input__select-option", r = a ? `${n}--active` : null;
1997
2149
  return /* @__PURE__ */ e.createElement(
1998
2150
  "li",
1999
2151
  {
2000
- ref: r,
2001
- "aria-selected": l,
2002
- className: b([n, i, a ?? ""]),
2003
- id: c,
2152
+ ref: i,
2153
+ "aria-selected": a,
2154
+ className: v([n, r, l ?? ""]),
2155
+ id: s,
2004
2156
  role: "option",
2005
- ...s
2157
+ ...c
2006
2158
  },
2007
2159
  t
2008
2160
  );
2009
2161
  }
2010
2162
  );
2011
- const t4 = {
2012
- s: D2,
2013
- m: Y2,
2014
- l: X2,
2015
- xl: g1,
2016
- "2xl": h1,
2017
- "3xl": m1,
2018
- "4xl": V1,
2019
- "5xl": H1,
2020
- "6xl": O1
2021
- }, s4 = {
2022
- s: w2,
2023
- m: w2,
2024
- l: w2,
2025
- xl: w2,
2026
- "2xl": w2,
2027
- "3xl": s1,
2028
- "4xl": s1,
2029
- "5xl": c1,
2030
- "6xl": c1
2031
- }, c4 = {
2032
- s: u2,
2033
- m: u2,
2034
- l: u2,
2035
- xl: u2,
2036
- "2xl": u2,
2037
- "3xl": D2,
2038
- "4xl": D2,
2039
- "5xl": Y2,
2040
- "6xl": X2
2041
- }, S2 = ({
2163
+ const d4 = {
2164
+ s: K2,
2165
+ m: u1,
2166
+ l: h1,
2167
+ xl: t4,
2168
+ "2xl": e4,
2169
+ "3xl": J1,
2170
+ "4xl": Q1,
2171
+ "5xl": Y1,
2172
+ "6xl": X1
2173
+ }, h4 = {
2174
+ s: y2,
2175
+ m: y2,
2176
+ l: y2,
2177
+ xl: y2,
2178
+ "2xl": y2,
2179
+ "3xl": c1,
2180
+ "4xl": c1,
2181
+ "5xl": a1,
2182
+ "6xl": a1
2183
+ }, u4 = {
2184
+ s: E2,
2185
+ m: E2,
2186
+ l: E2,
2187
+ xl: E2,
2188
+ "2xl": E2,
2189
+ "3xl": K2,
2190
+ "4xl": K2,
2191
+ "5xl": u1,
2192
+ "6xl": h1
2193
+ }, k2 = ({
2042
2194
  className: t = "",
2043
- colorType: a = "full-color",
2044
- isInline: l = !1,
2045
- label: s = "Loading",
2046
- showLabel: r = !1,
2047
- size: c = "3xl",
2195
+ colorType: l = "full-color",
2196
+ isInline: a = !1,
2197
+ label: c = "Loading",
2198
+ showLabel: i = !1,
2199
+ size: s = "3xl",
2048
2200
  ...n
2049
2201
  }) => {
2050
- const i = "pds-spinner", m = a !== "full-color" ? `${i}--${a}` : null, h = l ? `${i}--inline` : null, p = t4[c], f = s4[c], d = c4[c], g = Math.ceil(parseFloat(p) * 16 * 0.13), M = {
2051
- "--spinner-size": p,
2052
- "--spinner-line": `${g}px`
2053
- }, o = {
2054
- fontSize: f,
2202
+ const r = "pds-spinner", o = l !== "full-color" ? `${r}--${l}` : null, m = a ? `${r}--inline` : null, h = d4[s], z = h4[s], d = u4[s], f = Math.ceil(parseFloat(h) * 16 * 0.13), C = {
2203
+ "--spinner-size": h,
2204
+ "--spinner-line": `${f}px`
2205
+ }, g = {
2206
+ fontSize: z,
2055
2207
  marginBlockStart: d
2056
2208
  };
2057
2209
  return /* @__PURE__ */ e.createElement(
2058
2210
  "span",
2059
2211
  {
2060
2212
  "aria-hidden": "true",
2061
- className: b([i, m, h, t]),
2213
+ className: v([r, o, m, t]),
2062
2214
  role: "status",
2063
- style: M,
2215
+ style: C,
2064
2216
  ...n
2065
2217
  },
2066
- /* @__PURE__ */ e.createElement("span", { className: `${i}__icon` }),
2067
- r && !l ? /* @__PURE__ */ e.createElement("span", { className: `${i}__label`, style: o }, s) : /* @__PURE__ */ e.createElement(e4, { label: s })
2218
+ /* @__PURE__ */ e.createElement("span", { className: `${r}__icon` }),
2219
+ i && !a ? /* @__PURE__ */ e.createElement("span", { className: `${r}__label`, style: g }, c) : /* @__PURE__ */ e.createElement(m4, { label: c })
2068
2220
  );
2069
- }, I2 = k2(
2221
+ }, B2 = P2(
2070
2222
  ({
2071
2223
  ariaLabel: t,
2072
- buttonType: a = "button",
2073
- className: l = "",
2074
- disabled: s = !1,
2075
- displayType: r = "label-only",
2076
- iconName: c,
2224
+ buttonType: l = "button",
2225
+ className: a = "",
2226
+ disabled: c = !1,
2227
+ displayType: i = "label-only",
2228
+ iconName: s,
2077
2229
  isFullWidth: n = !1,
2078
- isLoading: i = !1,
2079
- isSplitButton: m = !1,
2080
- isWorking: h = !1,
2081
- label: p,
2082
- onClick: f,
2230
+ isLoading: r = !1,
2231
+ isSplitButton: o = !1,
2232
+ isWorking: m = !1,
2233
+ label: h,
2234
+ onClick: z,
2083
2235
  size: d = "s",
2084
- tooltipText: g,
2085
- variant: M = "primary",
2086
- ...o
2087
- }, z) => {
2088
- const L = "pds-button", y = `${L}--${d}`, w = `${L}--${M}`, _ = n ? `${L}--full-width` : null, k = i ? `${L}--loading` : null, S = i ? "pds-pulse" : null;
2089
- let x, v;
2236
+ tooltipText: f,
2237
+ variant: C = "primary",
2238
+ ...g
2239
+ }, p) => {
2240
+ const L = "pds-button", b = `${L}--${d}`, M = `${L}--${C}`, D = n ? `${L}--full-width` : null, N = r ? `${L}--loading` : null, P = r ? "pds-pulse" : null;
2241
+ let _, w;
2090
2242
  switch (d) {
2091
2243
  case "xs":
2092
- x = "s", v = "s";
2244
+ _ = "s", w = "s";
2093
2245
  break;
2094
2246
  case "s":
2095
- x = "m", v = "m";
2247
+ _ = "m", w = "m";
2096
2248
  break;
2097
2249
  case "m":
2098
- x = "m", v = "m";
2250
+ _ = "m", w = "m";
2099
2251
  break;
2100
2252
  case "l":
2101
- x = "m", v = "l";
2253
+ _ = "m", w = "l";
2102
2254
  break;
2103
2255
  case "xl":
2104
- x = "l", v = "l";
2256
+ _ = "l", w = "l";
2105
2257
  break;
2106
2258
  }
2107
- let T = "monochromatic";
2108
- ["primary"].includes(M) && (T = "monochromatic-reverse");
2109
- const C = /* @__PURE__ */ e.createElement(
2110
- V,
2259
+ let S = "monochromatic";
2260
+ ["primary"].includes(C) && (S = "monochromatic-reverse");
2261
+ const k = /* @__PURE__ */ e.createElement(
2262
+ A,
2111
2263
  {
2112
2264
  key: "icon",
2113
2265
  className: `${L}__icon`,
2114
- iconName: c,
2115
- iconSize: x
2266
+ iconName: s,
2267
+ iconSize: _
2116
2268
  }
2117
2269
  );
2118
- let U = [p];
2119
- r == "icon-start" && c && U.unshift(C), r == "icon-end" && c && U.push(C), m && (U = [C], t = W2(p));
2120
- const A = /* @__PURE__ */ e.createElement(
2270
+ let R = [h];
2271
+ i == "icon-start" && s && R.unshift(k), i == "icon-end" && s && R.push(k), o && (R = [k], t = Y2(h));
2272
+ const F = /* @__PURE__ */ e.createElement(
2121
2273
  "button",
2122
2274
  {
2123
- ref: z,
2275
+ ref: p,
2124
2276
  "aria-label": t,
2125
- className: b([
2277
+ className: v([
2126
2278
  L,
2127
- y,
2128
- w,
2129
- _,
2130
- k,
2131
- S,
2132
- l
2279
+ b,
2280
+ M,
2281
+ D,
2282
+ N,
2283
+ P,
2284
+ a
2133
2285
  ]),
2134
- disabled: s || i || h,
2135
- onClick: f,
2136
- type: a,
2137
- ...o
2286
+ disabled: c || r || m,
2287
+ onClick: z,
2288
+ type: l,
2289
+ ...g
2138
2290
  },
2139
- h && !i && /* @__PURE__ */ e.createElement(
2140
- S2,
2291
+ m && !r && /* @__PURE__ */ e.createElement(
2292
+ k2,
2141
2293
  {
2142
2294
  className: `${L}__working-indicator`,
2143
- colorType: T,
2144
- size: v
2295
+ colorType: S,
2296
+ size: w
2145
2297
  }
2146
2298
  ),
2147
- U
2299
+ R
2148
2300
  );
2149
- return (s || i || h) && g ? /* @__PURE__ */ e.createElement(N2, { content: g, customTrigger: A }) : /* @__PURE__ */ e.createElement(e.Fragment, null, A);
2301
+ return (c || r || m) && f ? /* @__PURE__ */ e.createElement(T2, { content: f, customTrigger: F }) : /* @__PURE__ */ e.createElement(e.Fragment, null, F);
2150
2302
  }
2151
- ), l4 = ({
2303
+ ), g4 = ({
2152
2304
  className: t,
2153
- disabled: a = !1,
2154
- displayType: l = "label-only",
2155
- iconName: s,
2156
- linkContent: r,
2157
- size: c = "s",
2305
+ disabled: l = !1,
2306
+ displayType: a = "label-only",
2307
+ iconName: c,
2308
+ linkContent: i,
2309
+ size: s = "s",
2158
2310
  tooltipText: n,
2159
- variant: i = "primary",
2160
- ...m
2311
+ variant: r = "primary",
2312
+ ...o
2161
2313
  }) => {
2162
- const h = "pds-button-link", p = "pds-button", f = `${p}--${c}`, d = `${p}--${i}`, g = b([
2163
- p,
2164
- f,
2314
+ const m = "pds-button-link", h = "pds-button", z = `${h}--${s}`, d = `${h}--${r}`, f = v([
2315
+ h,
2316
+ z,
2165
2317
  d
2166
- ]), M = z2(r) ? r.props.children : null;
2167
- let o;
2168
- switch (c) {
2318
+ ]), C = h2(i) ? i.props.children : null;
2319
+ let g;
2320
+ switch (s) {
2169
2321
  case "xs":
2170
- o = "s";
2322
+ g = "s";
2171
2323
  break;
2172
2324
  case "s":
2173
- o = "m";
2325
+ g = "m";
2174
2326
  break;
2175
2327
  case "m":
2176
- o = "m";
2328
+ g = "m";
2177
2329
  break;
2178
2330
  case "l":
2179
- o = "m";
2331
+ g = "m";
2180
2332
  break;
2181
2333
  case "xl":
2182
- o = "l";
2334
+ g = "l";
2183
2335
  break;
2184
2336
  default:
2185
- o = "m";
2337
+ g = "m";
2186
2338
  break;
2187
2339
  }
2188
- const z = /* @__PURE__ */ e.createElement(
2189
- V,
2340
+ const p = /* @__PURE__ */ e.createElement(
2341
+ A,
2190
2342
  {
2191
- key: s,
2192
- className: `${h}__icon`,
2193
- iconName: s,
2194
- iconSize: o
2343
+ key: c,
2344
+ className: `${m}__icon`,
2345
+ iconName: c,
2346
+ iconSize: g
2195
2347
  }
2196
2348
  );
2197
- let L = [M];
2198
- l === "icon-start" && s ? L = [z, M] : l === "icon-end" && s && (L = [M, z]);
2199
- const y = z2(r) ? n1(
2200
- r,
2201
- Object.assign({}, r.props, {
2202
- className: g,
2349
+ let L = [C];
2350
+ a === "icon-start" && c ? L = [p, C] : a === "icon-end" && c && (L = [C, p]);
2351
+ const b = h2(i) ? _2(
2352
+ i,
2353
+ Object.assign({}, i.props, {
2354
+ className: f,
2203
2355
  children: L
2204
2356
  })
2205
2357
  ) : null;
2206
- return a ? /* @__PURE__ */ e.createElement(
2207
- I2,
2358
+ return l ? /* @__PURE__ */ e.createElement(
2359
+ B2,
2208
2360
  {
2209
2361
  disabled: !0,
2210
- className: b([h, t ?? ""]),
2362
+ className: v([m, t ?? ""]),
2211
2363
  label: L,
2212
- size: c,
2364
+ size: s,
2213
2365
  tooltipText: n ?? null,
2214
- variant: i
2366
+ variant: r
2215
2367
  }
2216
- ) : /* @__PURE__ */ e.createElement("span", { className: b([h, t ?? ""]), ...m }, y);
2217
- }, a4 = (t, a) => {
2218
- const [l, s] = O(!1), r = a?.duration;
2219
- return c2(() => {
2368
+ ) : /* @__PURE__ */ e.createElement("span", { className: v([m, t ?? ""]), ...o }, b);
2369
+ }, p4 = (t, l) => {
2370
+ const [a, c] = H(!1), i = l?.duration;
2371
+ return l2(() => {
2220
2372
  let n;
2221
- return l && r && (n = setTimeout(() => {
2222
- s(!1);
2223
- }, r)), () => {
2373
+ return a && i && (n = setTimeout(() => {
2374
+ c(!1);
2375
+ }, i)), () => {
2224
2376
  n && clearTimeout(n);
2225
2377
  };
2226
- }, [l, r]), [l, async () => {
2378
+ }, [a, i]), [a, async () => {
2227
2379
  if (navigator.clipboard)
2228
2380
  try {
2229
- await navigator.clipboard.writeText(t), s(!0);
2381
+ await navigator.clipboard.writeText(t), c(!0);
2230
2382
  } catch {
2231
2383
  }
2232
2384
  }];
2233
- }, _2 = k2(
2385
+ }, I2 = P2(
2234
2386
  ({
2235
2387
  ariaLabel: t,
2236
- buttonType: a = "button",
2237
- className: l,
2238
- disabled: s = !1,
2239
- hasTooltip: r = !0,
2240
- icon2Name: c = null,
2388
+ buttonType: l = "button",
2389
+ className: a,
2390
+ disabled: c = !1,
2391
+ hasTooltip: i = !0,
2392
+ icon2Name: s = null,
2241
2393
  iconName: n,
2242
- onClick: i,
2243
- size: m = "s",
2244
- variant: h = "standard",
2245
- ...p
2246
- }, f) => {
2247
- const d = "pds-icon-button", g = m !== "s" ? `${d}--${m}` : null, M = h !== "standard" ? `${d}--${h}` : null, o = {
2394
+ onClick: r,
2395
+ size: o = "s",
2396
+ variant: m = "standard",
2397
+ ...h
2398
+ }, z) => {
2399
+ const d = "pds-icon-button", f = o !== "s" ? `${d}--${o}` : null, C = m !== "standard" ? `${d}--${m}` : null, g = {
2248
2400
  fadeOut: `${d}--fadeOut`,
2249
2401
  hide: `${d}--hide`,
2250
2402
  scaleIn: `${d}--scaleIn`
2251
2403
  };
2252
- let z, L;
2253
- switch (m) {
2404
+ let p, L;
2405
+ switch (o) {
2254
2406
  case "s":
2255
- L = "m", z = 8;
2407
+ L = "m", p = 8;
2256
2408
  break;
2257
2409
  case "m":
2258
- L = "l", z = 11;
2410
+ L = "l", p = 11;
2259
2411
  break;
2260
2412
  default:
2261
- L = "m", z = 8;
2413
+ L = "m", p = 8;
2262
2414
  break;
2263
2415
  }
2264
- const y = c !== null, w = Q(null), _ = Q(null), k = () => {
2265
- w.current.classList.add(o.fadeOut), w.current.classList.add(o.hide), _.current.classList.remove(o.hide), _.current.classList.add(o.scaleIn), setTimeout(() => {
2266
- w.current.classList.remove(
2267
- o.fadeOut,
2268
- o.hide
2269
- ), w.current.classList.add(o.scaleIn), _.current.classList.remove(o.scaleIn), _.current.classList.add(o.hide);
2416
+ const b = s !== null, M = J(null), D = J(null), N = () => {
2417
+ M.current.classList.add(g.fadeOut), M.current.classList.add(g.hide), D.current.classList.remove(g.hide), D.current.classList.add(g.scaleIn), setTimeout(() => {
2418
+ M.current.classList.remove(
2419
+ g.fadeOut,
2420
+ g.hide
2421
+ ), M.current.classList.add(g.scaleIn), D.current.classList.remove(g.scaleIn), D.current.classList.add(g.hide);
2270
2422
  }, 2e3);
2271
- }, S = (v) => {
2272
- y && k(), i && i(v);
2273
- }, x = y ? /* @__PURE__ */ e.createElement("div", { className: `${d}__content` }, /* @__PURE__ */ e.createElement("div", { ref: w, className: `${d}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
2274
- V,
2423
+ }, P = (w) => {
2424
+ b && N(), r && r(w);
2425
+ }, _ = b ? /* @__PURE__ */ e.createElement("div", { className: `${d}__content` }, /* @__PURE__ */ e.createElement("div", { ref: M, className: `${d}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
2426
+ A,
2275
2427
  {
2276
2428
  className: `${d}__icon`,
2277
2429
  iconName: n,
@@ -2280,19 +2432,19 @@ const t4 = {
2280
2432
  )), /* @__PURE__ */ e.createElement(
2281
2433
  "div",
2282
2434
  {
2283
- ref: _,
2284
- className: `${d}__icon-wrapper ${o.hide}`
2435
+ ref: D,
2436
+ className: `${d}__icon-wrapper ${g.hide}`
2285
2437
  },
2286
2438
  /* @__PURE__ */ e.createElement(
2287
- V,
2439
+ A,
2288
2440
  {
2289
2441
  className: `${d}__icon`,
2290
- iconName: c,
2442
+ iconName: s,
2291
2443
  iconSize: L
2292
2444
  }
2293
2445
  )
2294
2446
  )) : /* @__PURE__ */ e.createElement("div", { className: `${d}__content` }, /* @__PURE__ */ e.createElement(
2295
- V,
2447
+ A,
2296
2448
  {
2297
2449
  className: `${d}__icon`,
2298
2450
  iconName: n,
@@ -2302,73 +2454,73 @@ const t4 = {
2302
2454
  return /* @__PURE__ */ e.createElement(
2303
2455
  "button",
2304
2456
  {
2305
- ref: f,
2457
+ ref: z,
2306
2458
  "aria-label": t,
2307
- className: b([
2459
+ className: v([
2308
2460
  d,
2309
- g,
2310
- M,
2311
- l
2461
+ f,
2462
+ C,
2463
+ a
2312
2464
  ]),
2313
- disabled: s,
2314
- onClick: S,
2315
- title: r && !s ? null : t,
2316
- type: a,
2317
- ...p
2465
+ disabled: c,
2466
+ onClick: P,
2467
+ title: i && !c ? null : t,
2468
+ type: l,
2469
+ ...h
2318
2470
  },
2319
- r && !s ? /* @__PURE__ */ e.createElement(
2320
- N2,
2471
+ i && !c ? /* @__PURE__ */ e.createElement(
2472
+ T2,
2321
2473
  {
2322
2474
  className: `${d}__tooltip`,
2323
2475
  content: t,
2324
- customTrigger: x,
2325
- offsetValue: z
2476
+ customTrigger: _,
2477
+ offsetValue: p
2326
2478
  }
2327
- ) : x
2479
+ ) : _
2328
2480
  );
2329
2481
  }
2330
- ), _4 = ({
2482
+ ), H4 = ({
2331
2483
  ariaLabel: t = "Copy to clipboard",
2332
- className: a,
2333
- clipboardText: l = "",
2334
- disabled: s,
2335
- variant: r = "standard",
2336
- ...c
2484
+ className: l,
2485
+ clipboardText: a = "",
2486
+ disabled: c,
2487
+ variant: i = "standard",
2488
+ ...s
2337
2489
  }) => {
2338
- const n = "pds-clipboard-button", [i, m] = a4(l);
2490
+ const n = "pds-clipboard-button", [r, o] = p4(a);
2339
2491
  return /* @__PURE__ */ e.createElement(
2340
- _2,
2492
+ I2,
2341
2493
  {
2342
2494
  ariaLabel: t,
2343
2495
  buttonType: "button",
2344
- className: b([n, a ?? ""]),
2345
- disabled: s,
2496
+ className: v([n, l ?? ""]),
2497
+ disabled: c,
2346
2498
  icon2Name: "check",
2347
2499
  iconName: "copy",
2348
- onClick: m,
2500
+ onClick: o,
2349
2501
  size: "m",
2350
- variant: r,
2351
- ...c
2502
+ variant: i,
2503
+ ...s
2352
2504
  }
2353
2505
  );
2354
- }, u1 = ({
2506
+ }, v1 = ({
2355
2507
  ariaLabel: t = "Close",
2356
- className: a,
2357
- onClick: l,
2358
- size: s = "l",
2359
- ...r
2508
+ className: l,
2509
+ onClick: a,
2510
+ size: c = "l",
2511
+ ...i
2360
2512
  }) => {
2361
- const c = "pds-close-button", n = `${c}--${s}`;
2513
+ const s = "pds-close-button", n = `${s}--${c}`;
2362
2514
  return /* @__PURE__ */ e.createElement(
2363
2515
  "button",
2364
2516
  {
2365
2517
  "aria-label": t,
2366
- className: b([c, n, a ?? ""]),
2367
- onClick: l,
2518
+ className: v([s, n, l ?? ""]),
2519
+ onClick: a,
2368
2520
  type: "button",
2369
- ...r
2521
+ ...i
2370
2522
  },
2371
- /* @__PURE__ */ e.createElement(V, { className: `${c}__icon`, iconName: "xmarkLarge" })
2523
+ /* @__PURE__ */ e.createElement(A, { className: `${s}__icon`, iconName: "xmarkLarge" })
2372
2524
  );
2373
2525
  }, Q2 = {
2374
2526
  info: "Information",
@@ -2376,7 +2528,7 @@ const t4 = {
2376
2528
  warning: "Warning",
2377
2529
  critical: "Critical",
2378
2530
  discovery: "Discovery"
2379
- }, H2 = (t) => "isSeparator" in t && t.isSeparator, V2 = (t) => "isHeading" in t && t.isHeading, F2 = (t) => "isLink" in t && t.isLink, n4 = (t) => "isNode" in t && t.isNode, k4 = {
2531
+ }, V2 = (t) => "isSeparator" in t && t.isSeparator, F2 = (t) => "isHeading" in t && t.isHeading, Z2 = (t) => "isLink" in t && t.isLink, z4 = (t) => "isNode" in t && t.isNode, R4 = {
2380
2532
  sandbox: "Sandbox",
2381
2533
  basic: "Basic",
2382
2534
  "performance-small": "Performance Small",
@@ -2388,114 +2540,114 @@ const t4 = {
2388
2540
  pro: "Professional",
2389
2541
  business: "Business",
2390
2542
  "flagship-performance": "Flagship Performance"
2391
- }, P4 = {
2543
+ }, V4 = {
2392
2544
  drupal: "Drupal",
2393
2545
  wordpress: "WordPress",
2394
2546
  gatsby: "Gatsby",
2395
2547
  nextjs: "Next.js"
2396
- }, i4 = {
2548
+ }, f4 = {
2397
2549
  drupal: "drupal",
2398
2550
  wordpress: "wordpress",
2399
2551
  gatsby: "bolt",
2400
2552
  nextjs: "bolt"
2401
- }, p1 = () => {
2402
- const t = typeof window < "u", [a, l] = O(
2553
+ }, w1 = () => {
2554
+ const t = typeof window < "u", [l, a] = H(
2403
2555
  t && window.innerWidth !== void 0 ? window.innerWidth : 1024
2404
2556
  );
2405
- return c2(() => {
2557
+ return l2(() => {
2406
2558
  if (!t) return;
2407
- l(window.innerWidth);
2408
- const s = () => {
2409
- l(window.innerWidth);
2559
+ a(window.innerWidth);
2560
+ const c = () => {
2561
+ a(window.innerWidth);
2410
2562
  };
2411
- return window.addEventListener("resize", s), () => {
2412
- window.removeEventListener("resize", s);
2563
+ return window.addEventListener("resize", c), () => {
2564
+ window.removeEventListener("resize", c);
2413
2565
  };
2414
- }, []), a;
2415
- }, b2 = a1(null), r4 = ({
2566
+ }, []), l;
2567
+ }, x2 = n1(null), L4 = ({
2416
2568
  children: t,
2417
- mobileMenuMaxWidth: a = 640
2569
+ mobileMenuMaxWidth: l = 640
2418
2570
  }) => {
2419
- const l = p1(), s = l <= a, r = {
2420
- isMobile: s,
2421
- mobileMenuMaxWidth: a,
2422
- windowWidth: l
2571
+ const a = w1(), c = a <= l, i = {
2572
+ isMobile: c,
2573
+ mobileMenuMaxWidth: l,
2574
+ windowWidth: a
2423
2575
  };
2424
- return c2(() => {
2425
- s ? document.body.classList.add("pds-no-scroll-x") : document.body.classList.remove("pds-no-scroll-x");
2426
- }, [s]), /* @__PURE__ */ e.createElement(b2.Provider, { value: r }, t);
2427
- }, o4 = ({
2576
+ return l2(() => {
2577
+ c ? document.body.classList.add("pds-no-scroll-x") : document.body.classList.remove("pds-no-scroll-x");
2578
+ }, [c]), /* @__PURE__ */ e.createElement(x2.Provider, { value: i }, t);
2579
+ }, C4 = ({
2428
2580
  className: t,
2429
- disabled: a,
2430
- displayType: l = "icon-end",
2431
- iconName: s = "ellipsisVertical",
2432
- id: r,
2433
- isSplitButton: c = !1,
2581
+ disabled: l,
2582
+ displayType: a = "icon-end",
2583
+ iconName: c = "ellipsisVertical",
2584
+ id: i,
2585
+ isSplitButton: s = !1,
2434
2586
  label: n,
2435
- menuItems: i,
2436
- menuPosition: m = "start",
2437
- onClick: h,
2438
- size: p = "s",
2439
- testId: f,
2587
+ menuItems: r,
2588
+ menuPosition: o = "start",
2589
+ onClick: m,
2590
+ size: h = "s",
2591
+ testId: z,
2440
2592
  undefinedLabel: d = "Unlabeled group",
2441
- variant: g = "primary",
2442
- withinNavbar: M,
2443
- ...o
2593
+ variant: f = "primary",
2594
+ withinNavbar: C,
2595
+ ...g
2444
2596
  }) => {
2445
- const { placement: z, refs: L, strategy: y, x: w, y: _ } = i1({
2597
+ const { placement: p, refs: L, strategy: b, x: M, y: D } = r1({
2446
2598
  placement: "bottom-start",
2447
- middleware: [o1()],
2448
- whileElementsMounted: r1
2599
+ middleware: [m1()],
2600
+ whileElementsMounted: o1
2449
2601
  });
2450
- let k = !1;
2451
- const S = P2(b2);
2452
- S && (k = S.isMobile);
2453
- const x = g === "navbar" && k, v = "pds-menu-button", T = x ? `${v}--isMobile` : null, N = M ? `${v}--navbar` : null, C = r, [U] = O(`menu-button-${r}`), A = L.floating, K = Q(null), [F, e2] = O(!1), [W, t2] = O(!1), [J, d2] = O(""), [l2, m2] = O(0), a2 = Q([]), H = Q([]), Z = Q([]);
2454
- M1(() => {
2455
- window.addEventListener("mousedown", q, !0);
2456
- const u = A.current;
2457
- return u && (u.dataset.fuiPlacement = z), W && (setTimeout(() => {
2602
+ let N = !1;
2603
+ const P = D2(x2);
2604
+ P && (N = P.isMobile);
2605
+ const _ = f === "navbar" && N, w = "pds-menu-button", S = _ ? `${w}--isMobile` : null, y = C ? `${w}--navbar` : null, k = i, [R] = H(`menu-button-${i}`), F = L.floating, Y = J(null), [q, i2] = H(!1), [Z, n2] = H(!1), [U, r2] = H(""), [Q, o2] = H(0), s2 = J([]), T = J([]), B = J([]);
2606
+ _1(() => {
2607
+ window.addEventListener("mousedown", L2, !0);
2608
+ const u = F.current;
2609
+ return u && (u.dataset.fuiPlacement = p), Z && (setTimeout(() => {
2458
2610
  u.focus();
2459
- }, 0), t2(!1)), () => {
2460
- window.removeEventListener("mousedown", q, !0);
2611
+ }, 0), n2(!1)), () => {
2612
+ window.removeEventListener("mousedown", L2, !0);
2461
2613
  };
2462
- }, [F, z]);
2463
- const X = (u, I) => {
2464
- d2(u), m2(I);
2465
- }, f2 = () => {
2466
- e2(!0), t2(!0);
2467
- }, s2 = () => {
2468
- e2(!1), X(void 0, -1), K.current?.querySelector(
2469
- `#${C}`
2614
+ }, [q, p]);
2615
+ const W = (u, I) => {
2616
+ r2(u), o2(I);
2617
+ }, K = () => {
2618
+ i2(!0), n2(!0);
2619
+ }, e2 = () => {
2620
+ i2(!1), W(void 0, -1), Y.current?.querySelector(
2621
+ `#${k}`
2470
2622
  )?.focus();
2471
- }, y2 = (u) => {
2623
+ }, z2 = (u) => {
2472
2624
  u = u.toLowerCase();
2473
2625
  let I = !1;
2474
- for (let E = l2 + 1; E < Z.current.length; E++)
2475
- if (Z.current[E].label.toLowerCase().startsWith(u)) {
2476
- X(H.current[E], E), I = !0;
2626
+ for (let E = Q + 1; E < B.current.length; E++)
2627
+ if (B.current[E].label.toLowerCase().startsWith(u)) {
2628
+ W(T.current[E], E), I = !0;
2477
2629
  break;
2478
2630
  }
2479
2631
  if (I === !1) {
2480
- for (let E = 0; E < l2; E++)
2481
- if (Z.current[E].label.toLowerCase().startsWith(u)) {
2482
- X(H.current[E], E);
2632
+ for (let E = 0; E < Q; E++)
2633
+ if (B.current[E].label.toLowerCase().startsWith(u)) {
2634
+ W(T.current[E], E);
2483
2635
  break;
2484
2636
  }
2485
2637
  }
2486
- }, E2 = (u) => {
2487
- const I = H.current.indexOf(u), E = Z.current[I];
2488
- E.callback && !E.disabled && E.callback(E), E.linkContent && !E.disabled && K.current?.querySelector(
2638
+ }, u2 = (u) => {
2639
+ const I = T.current.indexOf(u), E = B.current[I];
2640
+ E.callback && !E.disabled && E.callback(E), E.linkContent && !E.disabled && Y.current?.querySelector(
2489
2641
  `#${u} a`
2490
2642
  )?.click();
2491
- }, j2 = () => {
2492
- const u = H.current[l2];
2493
- E2(u);
2494
- }, $2 = (u) => {
2495
- F ? s2() : f2(), h && h(), u.stopPropagation(), u.preventDefault();
2496
- }, T2 = (u) => {
2497
- E2(u.currentTarget.id), x || s2();
2498
- }, $ = (u) => {
2643
+ }, f2 = () => {
2644
+ const u = T.current[Q];
2645
+ u2(u);
2646
+ }, N2 = (u) => {
2647
+ q ? e2() : K(), m && m(), u.stopPropagation(), u.preventDefault();
2648
+ }, A2 = (u) => {
2649
+ u2(u.currentTarget.id), _ || e2();
2650
+ }, S2 = (u) => {
2499
2651
  const I = u.key;
2500
2652
  let E = !1;
2501
2653
  switch (I) {
@@ -2504,538 +2656,564 @@ const t4 = {
2504
2656
  case "Enter":
2505
2657
  case "ArrowDown":
2506
2658
  case "Down": {
2507
- f2();
2508
- let B = 0;
2509
- for (let D = 0; D < Z.current.length; D++)
2510
- if (!Z.current[D]?.disabled) {
2511
- B = D;
2659
+ K();
2660
+ let O = 0;
2661
+ for (let $ = 0; $ < B.current.length; $++)
2662
+ if (!B.current[$]?.disabled) {
2663
+ O = $;
2512
2664
  break;
2513
2665
  }
2514
- X(
2515
- H.current[B],
2516
- B
2517
- ), E = !0, h && h();
2666
+ W(
2667
+ T.current[O],
2668
+ O
2669
+ ), E = !0, m && m();
2518
2670
  break;
2519
2671
  }
2520
2672
  // close menu
2521
2673
  case "Esc":
2522
2674
  case "Escape":
2523
- s2(), E = !0;
2675
+ e2(), E = !0;
2524
2676
  break;
2525
2677
  // open menu and focus on last menu item
2526
2678
  case "Up":
2527
2679
  case "ArrowUp": {
2528
- f2();
2529
- let B = H.current.length - 1;
2530
- for (let D = H.current.length - 1; D >= 0; D--)
2531
- if (!Z.current[D]?.disabled) {
2532
- B = D;
2680
+ K();
2681
+ let O = T.current.length - 1;
2682
+ for (let $ = T.current.length - 1; $ >= 0; $--)
2683
+ if (!B.current[$]?.disabled) {
2684
+ O = $;
2533
2685
  break;
2534
2686
  }
2535
- X(
2536
- H.current[B],
2537
- B
2687
+ W(
2688
+ T.current[O],
2689
+ O
2538
2690
  ), E = !0;
2539
2691
  break;
2540
2692
  }
2541
2693
  }
2542
2694
  E && (u.stopPropagation(), u.preventDefault());
2543
- }, R = (u) => {
2695
+ }, m2 = (u) => {
2544
2696
  const I = u.key;
2545
- let E = !1, B = "", D = 0;
2546
- function G(P) {
2547
- return P.length === 1 && P.match(/\S/);
2697
+ let E = !1, O = "", $ = 0;
2698
+ function G(x) {
2699
+ return x.length === 1 && x.match(/\S/);
2548
2700
  }
2549
2701
  if (!(u.ctrlKey || u.altKey || u.metaKey)) {
2550
2702
  if (u.shiftKey)
2551
- G(I) && (y2(I), E = !0), u.key === "Tab" && (s2(), E = !0);
2703
+ G(I) && (z2(I), E = !0), u.key === "Tab" && (e2(), E = !0);
2552
2704
  else
2553
2705
  switch (I) {
2554
2706
  case " ":
2555
2707
  case "Enter":
2556
- s2(), j2(), E = !0;
2708
+ e2(), f2(), E = !0;
2557
2709
  break;
2558
2710
  case "Esc":
2559
2711
  case "Escape":
2560
- s2(), E = !0;
2712
+ e2(), E = !0;
2561
2713
  break;
2562
2714
  case "Up":
2563
2715
  case "ArrowUp": {
2564
- let P = 0;
2565
- const j = H.current.length;
2566
- for (D = l2 - 1; P < j && (D < 0 && (D = H.current.length - 1), !!Z.current[D]?.disabled); )
2567
- D--, P++;
2568
- B = H.current[D], X(B, D), E = !0;
2716
+ let x = 0;
2717
+ const j = T.current.length;
2718
+ for ($ = Q - 1; x < j && ($ < 0 && ($ = T.current.length - 1), !!B.current[$]?.disabled); )
2719
+ $--, x++;
2720
+ O = T.current[$], W(O, $), E = !0;
2569
2721
  break;
2570
2722
  }
2571
2723
  case "ArrowDown":
2572
2724
  case "Down": {
2573
- let P = 0;
2574
- const j = H.current.length;
2575
- for (D = l2 + 1; P < j && (D > H.current.length - 1 && (D = 0), !!Z.current[D]?.disabled); )
2576
- D++, P++;
2577
- B = H.current[D], X(B, D), E = !0;
2725
+ let x = 0;
2726
+ const j = T.current.length;
2727
+ for ($ = Q + 1; x < j && ($ > T.current.length - 1 && ($ = 0), !!B.current[$]?.disabled); )
2728
+ $++, x++;
2729
+ O = T.current[$], W(O, $), E = !0;
2578
2730
  break;
2579
2731
  }
2580
2732
  case "Home":
2581
2733
  case "PageUp": {
2582
- let P = 0;
2583
- for (let j = 0; j < Z.current.length; j++)
2584
- if (!Z.current[j]?.disabled) {
2585
- P = j;
2734
+ let x = 0;
2735
+ for (let j = 0; j < B.current.length; j++)
2736
+ if (!B.current[j]?.disabled) {
2737
+ x = j;
2586
2738
  break;
2587
2739
  }
2588
- X(
2589
- H.current[P],
2590
- P
2740
+ W(
2741
+ T.current[x],
2742
+ x
2591
2743
  ), E = !0;
2592
2744
  break;
2593
2745
  }
2594
2746
  case "End":
2595
2747
  case "PageDown": {
2596
- let P = H.current.length - 1;
2597
- for (let j = H.current.length - 1; j >= 0; j--)
2598
- if (!Z.current[j]?.disabled) {
2599
- P = j;
2748
+ let x = T.current.length - 1;
2749
+ for (let j = T.current.length - 1; j >= 0; j--)
2750
+ if (!B.current[j]?.disabled) {
2751
+ x = j;
2600
2752
  break;
2601
2753
  }
2602
- X(
2603
- H.current[P],
2604
- P
2754
+ W(
2755
+ T.current[x],
2756
+ x
2605
2757
  ), E = !0;
2606
2758
  break;
2607
2759
  }
2608
2760
  case "Tab":
2609
- s2();
2761
+ e2();
2610
2762
  break;
2611
2763
  default:
2612
- G(I) && (y2(I), E = !0);
2764
+ G(I) && (z2(I), E = !0);
2613
2765
  break;
2614
2766
  }
2615
2767
  E && (u.stopPropagation(), u.preventDefault());
2616
2768
  }
2617
- }, q = (u) => {
2618
- K.current && !K.current.contains(u.target) && F && s2();
2619
- }, Y = (u, I, E = "", B = "", ...D) => {
2620
- const G = E ? `-group-${E}` : "", P = C + G + "-item-" + (I + 1), j = "id" in u && u.id ? u.id : P;
2621
- if (H2(u))
2622
- return /* @__PURE__ */ e.createElement("li", { key: j, role: "separator" });
2769
+ }, L2 = (u) => {
2770
+ Y.current && !Y.current.contains(u.target) && q && e2();
2771
+ }, C2 = (u, I, E = "", O = "", ...$) => {
2772
+ const G = E ? `-group-${E}` : "", x = k + G + "-item-" + (I + 1), j = "id" in u && u.id ? u.id : x;
2623
2773
  if (V2(u))
2774
+ return /* @__PURE__ */ e.createElement("li", { key: j, role: "separator" });
2775
+ if (F2(u))
2624
2776
  return /* @__PURE__ */ e.createElement(
2625
2777
  "li",
2626
2778
  {
2627
- key: B,
2628
- className: `${v}__listbox-heading`,
2629
- id: B || null,
2779
+ key: O,
2780
+ className: `${w}__listbox-heading`,
2781
+ id: O || null,
2630
2782
  role: "presentation"
2631
2783
  },
2632
2784
  u.label
2633
2785
  );
2634
- if (n4(u))
2786
+ if (z4(u))
2635
2787
  return /* @__PURE__ */ e.createElement("li", { key: j, role: "presentation" }, u.nodeContent);
2636
- if (F2(u) || "label" in u && u.label) {
2637
- H.current.push(j), Z.current.push(u);
2638
- let h2 = !1;
2639
- J !== "" && !u.disabled && (h2 = J === j);
2640
- const n2 = "isCritical" in u && u.isCritical, C2 = "criticalLabel" in u ? u.criticalLabel : void 0;
2641
- let i2 = [];
2642
- if ("label" in u && u.label && (i2 = [u.label]), F2(u) && u.linkContent && (i2 = [u.linkContent.props.children]), u.iconName) {
2643
- const o2 = /* @__PURE__ */ e.createElement(
2644
- V,
2788
+ if (Z2(u) || "label" in u && u.label) {
2789
+ T.current.push(j), B.current.push(u);
2790
+ let g2 = !1;
2791
+ U !== "" && !u.disabled && (g2 = U === j);
2792
+ const c2 = "isCritical" in u && u.isCritical, M2 = "criticalLabel" in u ? u.criticalLabel : void 0;
2793
+ let a2 = [];
2794
+ if ("label" in u && u.label && (a2 = [u.label]), Z2(u) && u.linkContent && (a2 = [u.linkContent.props.children]), u.iconName) {
2795
+ const d2 = /* @__PURE__ */ e.createElement(
2796
+ A,
2645
2797
  {
2646
- key: `icon-${C}`,
2798
+ key: `icon-${k}`,
2647
2799
  iconName: u.iconName,
2648
2800
  iconSize: "m"
2649
2801
  }
2650
2802
  );
2651
- i2.unshift(o2);
2803
+ a2.unshift(d2);
2652
2804
  }
2653
- n2 && C2 && i2.unshift(
2654
- /* @__PURE__ */ e.createElement("span", { key: `critical-${C}`, className: "visually-hidden" }, C2)
2805
+ c2 && M2 && a2.unshift(
2806
+ /* @__PURE__ */ e.createElement("span", { key: `critical-${k}`, className: "visually-hidden" }, M2)
2655
2807
  );
2656
- let g2;
2657
- u.description && (g2 = /* @__PURE__ */ e.createElement("span", { className: `${v}__item-description` }, u.description));
2658
- let v2;
2659
- if (F2(u) && u.linkContent) {
2660
- const o2 = u.linkContent, B2 = o2.type;
2661
- v2 = /* @__PURE__ */ e.createElement(B2, { tabIndex: -1, ...o2.props }, /* @__PURE__ */ e.createElement("span", { className: `${v}__item-label` }, i2), g2);
2808
+ let p2;
2809
+ u.description && (p2 = /* @__PURE__ */ e.createElement("span", { className: `${w}__item-description` }, u.description));
2810
+ let b2;
2811
+ if (Z2(u) && u.linkContent) {
2812
+ const d2 = u.linkContent, H2 = d2.type;
2813
+ b2 = /* @__PURE__ */ e.createElement(H2, { tabIndex: -1, ...d2.props }, /* @__PURE__ */ e.createElement("span", { className: `${w}__item-label` }, a2), p2);
2662
2814
  } else
2663
- v2 = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${v}__item-label` }, i2), g2);
2664
- const R2 = b([
2665
- h2 ? `${v}__item-focused` : null,
2666
- n2 ? `${v}__item-critical` : null
2815
+ b2 = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${w}__item-label` }, a2), p2);
2816
+ const O2 = v([
2817
+ g2 ? `${w}__item-focused` : null,
2818
+ c2 ? `${w}__item-critical` : null
2667
2819
  ]);
2668
2820
  return /* @__PURE__ */ e.createElement(
2669
2821
  "li",
2670
2822
  {
2671
2823
  key: j,
2672
2824
  "aria-disabled": u.disabled ? !0 : null,
2673
- className: R2,
2825
+ className: O2,
2674
2826
  "data-testid": u.testId,
2675
2827
  id: j,
2676
- onClick: T2,
2828
+ onClick: A2,
2677
2829
  role: "menuitem",
2678
2830
  tabIndex: -1,
2679
- ...D
2831
+ ...$
2680
2832
  },
2681
- v2
2833
+ b2
2682
2834
  );
2683
2835
  }
2684
- }, A2 = (u, I) => {
2685
- const E = [], B = [...I];
2686
- let D = B.shift(), G = [];
2687
- return u.map((P, j) => {
2688
- P !== D ? (G.push(P), j + 1 === u.length && E.push(G)) : (E.push(G), G = [], G.push(P), D = B.shift());
2689
- }), E.filter((P) => P.length > 0);
2690
- }, L2 = (u) => {
2691
- H.current = [], Z.current = [];
2836
+ }, v2 = (u, I) => {
2837
+ const E = [], O = [...I];
2838
+ let $ = O.shift(), G = [];
2839
+ return u.map((x, j) => {
2840
+ x !== $ ? (G.push(x), j + 1 === u.length && E.push(G)) : (E.push(G), G = [], G.push(x), $ = O.shift());
2841
+ }), E.filter((x) => x.length > 0);
2842
+ }, V = (u) => {
2843
+ T.current = [], B.current = [];
2692
2844
  const I = u, E = u.filter(
2693
- V2 || H2
2694
- ), B = E.length > 0;
2695
- let D = [`${v}__listbox`];
2696
- if (M && D.push(`${v}__listbox--navbar`), m === "end" && D.push(`${v}__listbox--end`), l === "icon-only" && D.push(`${v}__listbox--icon-only`), D = b(D), B) {
2697
- const G = A2(u, E);
2845
+ F2 || V2
2846
+ ), O = E.length > 0;
2847
+ let $ = [`${w}__listbox`];
2848
+ if (C && $.push(`${w}__listbox--navbar`), o === "end" && $.push(`${w}__listbox--end`), a === "icon-only" && $.push(`${w}__listbox--icon-only`), $ = v($), O) {
2849
+ const G = v2(u, E);
2698
2850
  G.forEach(() => {
2699
- a2.current.push(T1());
2851
+ s2.current.push(V1());
2700
2852
  });
2701
- let P = a2.current[0];
2853
+ let x = s2.current[0];
2702
2854
  const j = G[0].findIndex(
2703
- (n2) => !H2(n2) && !V2(n2)
2704
- ), h2 = `${C}-group-${P}-item-${j + 1}`;
2855
+ (c2) => !V2(c2) && !F2(c2)
2856
+ ), g2 = `${k}-group-${x}-item-${j + 1}`;
2705
2857
  return /* @__PURE__ */ e.createElement(
2706
2858
  "div",
2707
2859
  {
2708
2860
  ref: L.setFloating,
2709
- "aria-activedescendant": J !== "" ? J : h2,
2710
- "aria-labelledby": C,
2711
- className: D.toString(),
2712
- id: U,
2713
- onKeyDown: R,
2861
+ "aria-activedescendant": U !== "" ? U : g2,
2862
+ "aria-labelledby": k,
2863
+ className: $.toString(),
2864
+ id: R,
2865
+ onKeyDown: m2,
2714
2866
  role: "menu",
2715
2867
  style: {
2716
- visibility: F ? "visible" : "hidden",
2717
- opacity: F ? "1" : "0",
2868
+ visibility: q ? "visible" : "hidden",
2869
+ opacity: q ? "1" : "0",
2718
2870
  transition: "var(--pds-animation-transition-reveal)",
2719
- position: y,
2720
- transform: `translate(${Math.round(w)}px,${Math.round(_)}px)`,
2871
+ position: b,
2872
+ transform: `translate(${Math.round(M)}px,${Math.round(D)}px)`,
2721
2873
  zIndex: "var(--pds-z-index-dropdown)"
2722
2874
  },
2723
2875
  tabIndex: -1
2724
2876
  },
2725
- G.map((n2, C2) => {
2726
- P = a2.current[C2];
2727
- const i2 = "isHeading" in n2[0] && n2[0].isHeading, g2 = i2 ? `${C}-group-${P}-heading` : "", v2 = `${C}-group-${P}`, R2 = i2 ? null : `${d} ${C2 + 1}`;
2877
+ G.map((c2, M2) => {
2878
+ x = s2.current[M2];
2879
+ const a2 = "isHeading" in c2[0] && c2[0].isHeading, p2 = a2 ? `${k}-group-${x}-heading` : "", b2 = `${k}-group-${x}`, O2 = a2 ? null : `${d} ${M2 + 1}`;
2728
2880
  return /* @__PURE__ */ e.createElement(
2729
2881
  "ul",
2730
2882
  {
2731
- key: v2,
2732
- "aria-label": R2,
2733
- "aria-labelledby": g2,
2883
+ key: b2,
2884
+ "aria-label": O2,
2885
+ "aria-labelledby": p2,
2734
2886
  role: "group"
2735
2887
  },
2736
- n2.map((o2, B2) => Y(
2737
- o2,
2738
- B2,
2739
- P,
2740
- g2
2888
+ c2.map((d2, H2) => C2(
2889
+ d2,
2890
+ H2,
2891
+ x,
2892
+ p2
2741
2893
  ))
2742
2894
  );
2743
2895
  })
2744
2896
  );
2745
2897
  } else {
2746
- const G = `${C}-item-1`;
2898
+ const G = `${k}-item-1`;
2747
2899
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
2748
2900
  "ul",
2749
2901
  {
2750
2902
  ref: L.setFloating,
2751
- "aria-activedescendant": J !== "" ? J : G,
2752
- "aria-labelledby": C,
2753
- className: D.toString(),
2754
- id: U,
2755
- onKeyDown: R,
2903
+ "aria-activedescendant": U !== "" ? U : G,
2904
+ "aria-labelledby": k,
2905
+ className: $.toString(),
2906
+ id: R,
2907
+ onKeyDown: m2,
2756
2908
  role: "menu",
2757
2909
  style: {
2758
- visibility: F ? "visible" : "hidden",
2759
- opacity: F ? "1" : "0",
2910
+ visibility: q ? "visible" : "hidden",
2911
+ opacity: q ? "1" : "0",
2760
2912
  transition: "var(--pds-animation-transition-reveal)",
2761
- position: y,
2762
- transform: `translate(${Math.round(w)}px,${Math.round(_)}px)`
2913
+ position: b,
2914
+ transform: `translate(${Math.round(M)}px,${Math.round(D)}px)`
2763
2915
  },
2764
2916
  tabIndex: -1
2765
2917
  },
2766
- I.map((P, j) => Y(P, j))
2918
+ I.map((x, j) => C2(x, j))
2767
2919
  ));
2768
2920
  }
2769
2921
  };
2770
- let r2;
2771
- if (l === "icon-end" && (r2 = /* @__PURE__ */ e.createElement(
2772
- I2,
2922
+ let t2;
2923
+ if (a === "icon-end" && (t2 = /* @__PURE__ */ e.createElement(
2924
+ B2,
2773
2925
  {
2774
2926
  ref: L.setReference,
2775
- "aria-controls": U,
2776
- "aria-expanded": F,
2927
+ "aria-controls": R,
2928
+ "aria-expanded": q,
2777
2929
  "aria-haspopup": "true",
2778
- className: `${v}__trigger`,
2779
- disabled: a,
2780
- displayType: l,
2930
+ className: `${w}__trigger`,
2931
+ disabled: l,
2932
+ displayType: a,
2781
2933
  iconName: "angleDown",
2782
- id: C,
2783
- isSplitButton: c,
2934
+ id: k,
2935
+ isSplitButton: s,
2784
2936
  label: n,
2785
- onClick: $2,
2786
- onKeyDown: $,
2787
- size: p,
2937
+ onClick: N2,
2938
+ onKeyDown: S2,
2939
+ size: h,
2788
2940
  type: "button",
2789
- variant: g
2941
+ variant: f
2790
2942
  }
2791
- )), l === "icon-only") {
2792
- const u = W2(n);
2793
- r2 = /* @__PURE__ */ e.createElement(
2794
- _2,
2943
+ )), a === "icon-only") {
2944
+ const u = Y2(n);
2945
+ t2 = /* @__PURE__ */ e.createElement(
2946
+ I2,
2795
2947
  {
2796
2948
  ref: L.setReference,
2797
- "aria-controls": U,
2798
- "aria-expanded": F,
2949
+ "aria-controls": R,
2950
+ "aria-expanded": q,
2799
2951
  "aria-haspopup": "true",
2800
2952
  ariaLabel: u,
2801
- className: `${v}__trigger ${v}__trigger--icon-only`,
2802
- disabled: a,
2953
+ className: `${w}__trigger ${w}__trigger--icon-only`,
2954
+ disabled: l,
2803
2955
  hasTooltip: !1,
2804
- iconName: s,
2805
- id: C,
2806
- onClick: $2,
2807
- onKeyDown: $,
2808
- size: p,
2956
+ iconName: c,
2957
+ id: k,
2958
+ onClick: N2,
2959
+ onKeyDown: S2,
2960
+ size: h,
2809
2961
  type: "button",
2810
2962
  variant: "standard"
2811
2963
  }
2812
2964
  );
2813
2965
  }
2814
- const z1 = (u) => {
2966
+ const w2 = (u) => {
2815
2967
  const I = u.target;
2816
- I.classList.toggle(`${v}__toggle--expanded`), I.setAttribute(
2968
+ I.classList.toggle(`${w}__toggle--expanded`), I.setAttribute(
2817
2969
  "aria-expanded",
2818
2970
  I.getAttribute("aria-expanded") === "true" ? "false" : "true"
2819
- ), I.nextElementSibling.classList.toggle(`${v}__mobile-menu--expanded`);
2820
- }, f1 = () => /* @__PURE__ */ e.createElement("ul", { className: `${v}__mobile-menu`, role: "menu" }, i.map((u, I) => Y(u, I)));
2971
+ ), I.nextElementSibling.classList.toggle(`${w}__mobile-menu--expanded`);
2972
+ }, M1 = () => /* @__PURE__ */ e.createElement("ul", { className: `${w}__mobile-menu`, role: "menu" }, r.map((u, I) => C2(u, I)));
2821
2973
  let J2;
2822
- const L1 = l === "icon-end" ? "pds-button pds-button--navbar" : null, C1 = b([
2823
- `${v}__toggle`,
2824
- L1
2974
+ const b1 = a === "icon-end" ? "pds-button pds-button--navbar" : null, E1 = v([
2975
+ `${w}__toggle`,
2976
+ b1
2825
2977
  ]);
2826
- x && (J2 = /* @__PURE__ */ e.createElement(
2978
+ _ && (J2 = /* @__PURE__ */ e.createElement(
2827
2979
  "button",
2828
2980
  {
2829
2981
  "aria-expanded": !1,
2830
- className: C1,
2831
- disabled: a,
2832
- id: C,
2833
- onClick: z1,
2982
+ className: E1,
2983
+ disabled: l,
2984
+ id: k,
2985
+ onClick: w2,
2834
2986
  type: "button"
2835
2987
  },
2836
- l === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${v}__icon-label` }, /* @__PURE__ */ e.createElement(V, { iconName: s }), " ", n) : n,
2988
+ a === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${w}__icon-label` }, /* @__PURE__ */ e.createElement(A, { iconName: c }), " ", n) : n,
2837
2989
  /* @__PURE__ */ e.createElement(
2838
- V,
2990
+ A,
2839
2991
  {
2840
- className: `${v}__toggle-icon ${v}__toggle-icon--${l}`,
2992
+ className: `${w}__toggle-icon ${w}__toggle-icon--${a}`,
2841
2993
  iconName: "angleDown",
2842
2994
  iconSize: "m"
2843
2995
  }
2844
2996
  )
2845
2997
  ));
2846
- const v1 = J2, w1 = F ? `${v}--expanded` : null;
2998
+ const y1 = J2, $1 = q ? `${w}--expanded` : null;
2847
2999
  return /* @__PURE__ */ e.createElement(
2848
3000
  "span",
2849
3001
  {
2850
- ref: K,
2851
- className: b([
2852
- v,
2853
- N,
2854
- T,
2855
- w1,
3002
+ ref: Y,
3003
+ className: v([
3004
+ w,
3005
+ y,
3006
+ S,
3007
+ $1,
2856
3008
  t
2857
3009
  ]),
2858
- "data-testid": f,
2859
- ...o
3010
+ "data-testid": z,
3011
+ ...g
2860
3012
  },
2861
- x ? /* @__PURE__ */ e.createElement(e.Fragment, null, v1, /* @__PURE__ */ e.createElement(f1, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, r2, L2(i))
3013
+ _ ? /* @__PURE__ */ e.createElement(e.Fragment, null, y1, /* @__PURE__ */ e.createElement(M1, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, t2, V(r))
2862
3014
  );
2863
- }, x4 = ({
3015
+ }, F4 = ({
2864
3016
  className: t,
2865
- defaultValue: a,
2866
- disabled: l = !1,
2867
- id: s,
2868
- label: r,
2869
- onChange: c,
3017
+ defaultValue: l,
3018
+ disabled: a = !1,
3019
+ id: c,
3020
+ label: i,
3021
+ onChange: s,
2870
3022
  options: n,
2871
- size: i = "s",
2872
- value: m,
2873
- ...h
3023
+ size: r = "s",
3024
+ value: o,
3025
+ ...m
2874
3026
  }) => {
2875
- const p = "pds-segmented-button", f = l ? "pds-is-disabled" : null, d = `${p}--${i}`, g = i === "s" ? "s" : "m", M = typeof m < "u", o = typeof a < "u", [z, L] = O(
2876
- o ? a : ""
2877
- ), y = (w) => {
2878
- L(w.target.value), c && c(w.target.value);
3027
+ const h = "pds-segmented-button", z = a ? "pds-is-disabled" : null, d = `${h}--${r}`, f = r === "s" ? "s" : "m", C = typeof o < "u", g = typeof l < "u", [p, L] = H(
3028
+ g ? l : ""
3029
+ ), b = (M) => {
3030
+ L(M.target.value), s && s(M.target.value);
2879
3031
  };
2880
3032
  if (n.length >= 2 && n.length <= 6)
2881
3033
  return /* @__PURE__ */ e.createElement(
2882
3034
  "fieldset",
2883
3035
  {
2884
- className: b([
2885
- p,
3036
+ className: v([
3037
+ h,
2886
3038
  d,
2887
- f,
3039
+ z,
2888
3040
  t ?? ""
2889
3041
  ]),
2890
- ...h
3042
+ ...m
2891
3043
  },
2892
- /* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, r),
2893
- /* @__PURE__ */ e.createElement("div", { className: `${p}__options` }, n.map((w, _) => {
2894
- const k = M ? m === w.value : z === w.value, S = `${p}__option`, x = k ? `${S}--checked` : null;
3044
+ /* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, i),
3045
+ /* @__PURE__ */ e.createElement("div", { className: `${h}__options` }, n.map((M, D) => {
3046
+ const N = C ? o === M.value : p === M.value, P = `${h}__option`, _ = N ? `${P}--checked` : null;
2895
3047
  return /* @__PURE__ */ e.createElement(
2896
3048
  "div",
2897
3049
  {
2898
- key: `${s}-option-${_}`,
2899
- className: b([S, x])
3050
+ key: `${c}-option-${D}`,
3051
+ className: v([P, _])
2900
3052
  },
2901
3053
  /* @__PURE__ */ e.createElement(
2902
3054
  "input",
2903
3055
  {
2904
- checked: k,
3056
+ checked: N,
2905
3057
  className: "visually-hidden",
2906
- disabled: l || w.disabled,
2907
- id: w.id ? w.id : `${s}-option-${_}`,
2908
- name: s,
2909
- onChange: y,
3058
+ disabled: a || M.disabled,
3059
+ id: M.id ? M.id : `${c}-option-${D}`,
3060
+ name: c,
3061
+ onChange: b,
2910
3062
  type: "radio",
2911
- value: w.value
3063
+ value: M.value
2912
3064
  }
2913
3065
  ),
2914
3066
  /* @__PURE__ */ e.createElement(
2915
3067
  "label",
2916
3068
  {
2917
- htmlFor: w.id ? w.id : `${s}-option-${_}`,
2918
- title: w.label
3069
+ htmlFor: M.id ? M.id : `${c}-option-${D}`,
3070
+ title: M.label
2919
3071
  },
2920
- w.iconName && /* @__PURE__ */ e.createElement(
2921
- V,
3072
+ M.iconName && /* @__PURE__ */ e.createElement(
3073
+ A,
2922
3074
  {
2923
- className: `${p}__icon`,
2924
- iconName: w.iconName,
2925
- iconSize: g
3075
+ className: `${h}__icon`,
3076
+ iconName: M.iconName,
3077
+ iconSize: f
2926
3078
  }
2927
3079
  ),
2928
- /* @__PURE__ */ e.createElement("span", { className: `${p}__label-text` }, w.label),
2929
- w.tally && /* @__PURE__ */ e.createElement(
3080
+ /* @__PURE__ */ e.createElement("span", { className: `${h}__label-text` }, M.label),
3081
+ M.tally && /* @__PURE__ */ e.createElement(
2930
3082
  d1,
2931
3083
  {
2932
- className: `${p}__tally`,
2933
- label: w.tally.label,
2934
- type: w.tally.type
3084
+ className: `${h}__tally`,
3085
+ label: M.tally.label,
3086
+ type: M.tally.type
2935
3087
  }
2936
3088
  )
2937
3089
  )
2938
3090
  );
2939
3091
  }))
2940
3092
  );
2941
- }, d4 = ({
3093
+ }, v4 = ({
2942
3094
  actionItems: t,
2943
- className: a,
2944
- disabled: l,
2945
- id: s,
2946
- moreActionsLabel: r = "More actions",
2947
- size: c = "s",
3095
+ className: l,
3096
+ disabled: a,
3097
+ id: c,
3098
+ moreActionsLabel: i = "More actions",
3099
+ size: s = "s",
2948
3100
  variant: n = "primary",
2949
- ...i
3101
+ ...r
2950
3102
  }) => {
2951
- const m = "pds-split-button", h = `${m}--${n}`, p = t[0], f = t.slice(1);
3103
+ const o = "pds-split-button", m = `${o}--${n}`, h = t[0], z = t.slice(1);
2952
3104
  let d = null;
2953
- return "isLink" in p && p.isLink === !0 ? d = /* @__PURE__ */ e.createElement(
2954
- l4,
3105
+ return "isLink" in h && h.isLink === !0 ? d = /* @__PURE__ */ e.createElement(
3106
+ g4,
2955
3107
  {
2956
- className: `${m}__primary-action`,
2957
- disabled: l,
3108
+ className: `${o}__primary-action`,
3109
+ disabled: a,
2958
3110
  displayType: "label-only",
2959
- linkContent: p.linkContent,
2960
- size: c,
3111
+ linkContent: h.linkContent,
3112
+ size: s,
2961
3113
  variant: n
2962
3114
  }
2963
- ) : "label" in p && (d = /* @__PURE__ */ e.createElement(
2964
- I2,
3115
+ ) : "label" in h && (d = /* @__PURE__ */ e.createElement(
3116
+ B2,
2965
3117
  {
2966
- className: `${m}__primary-action`,
2967
- disabled: l,
2968
- label: p.label,
2969
- onClick: () => p.callback(),
2970
- size: c,
3118
+ className: `${o}__primary-action`,
3119
+ disabled: a,
3120
+ label: h.label,
3121
+ onClick: () => h.callback(),
3122
+ size: s,
2971
3123
  variant: n
2972
3124
  }
2973
3125
  )), /* @__PURE__ */ e.createElement(
2974
3126
  "span",
2975
3127
  {
2976
- className: b([m, h, a]),
2977
- id: s,
2978
- ...i
3128
+ className: v([o, m, l]),
3129
+ id: c,
3130
+ ...r
2979
3131
  },
2980
3132
  d,
2981
3133
  /* @__PURE__ */ e.createElement(
2982
- o4,
3134
+ C4,
2983
3135
  {
2984
3136
  isSplitButton: !0,
2985
- className: `${m}__menu-button`,
2986
- disabled: l,
3137
+ className: `${o}__menu-button`,
3138
+ disabled: a,
2987
3139
  displayType: "icon-end",
2988
- id: `${s}-menu`,
2989
- label: r,
2990
- menuItems: f,
2991
- size: c,
3140
+ id: `${c}-menu`,
3141
+ label: i,
3142
+ menuItems: z,
3143
+ size: s,
2992
3144
  testId: null,
2993
3145
  variant: n,
2994
3146
  withinNavbar: !1
2995
3147
  }
2996
3148
  )
2997
3149
  );
2998
- }, m4 = ({
3150
+ }, w4 = {
3151
+ drupal: "Drupal",
3152
+ drupal7: "Drupal 7",
3153
+ "front-end-sites": "Next.js and Gatsby",
3154
+ gatsby: "Gatsby",
3155
+ "gatsby-wp": "Gatsby and WordPress",
3156
+ google: "Google",
3157
+ "import-custom": "Add custom",
3158
+ microsoft: "Microsoft",
3159
+ next: "Next.js",
3160
+ "next-drupal": "Next.js and Drupal",
3161
+ "next-wp": "Next.js and WordPress",
3162
+ splunk: "Splunk",
3163
+ "sumo-logic": "Sumo Logic",
3164
+ wordpress: "WordPress"
3165
+ }, M4 = ({
2999
3166
  className: t,
3000
- iconSize: a = "2xl",
3001
- platformType: l,
3002
- ...s
3167
+ iconSize: l = "2xl",
3168
+ platformType: a,
3169
+ ...c
3003
3170
  }) => {
3004
- const r = "pds-platform-icon", c = `pds-platform-icon--${l}`, n = `pds-platform-icon--${a}`;
3005
- let i;
3006
- if (["front-end-sites", "gatsby-wp", "next-drupal", "next-wp"].includes(l)) {
3007
- let h = [];
3008
- switch (l) {
3171
+ const i = "pds-platform-icon", s = `pds-platform-icon--${a}`, n = `pds-platform-icon--${l}`;
3172
+ let r;
3173
+ if (["front-end-sites", "gatsby-wp", "next-drupal", "next-wp"].includes(a)) {
3174
+ let m = [];
3175
+ switch (a) {
3009
3176
  case "front-end-sites":
3010
- h = ["next", "gatsby"];
3177
+ m = ["next", "gatsby"];
3011
3178
  break;
3012
3179
  case "next-drupal":
3013
- h = ["next", "drupal"];
3180
+ m = ["next", "drupal"];
3014
3181
  break;
3015
3182
  case "gatsby-wp":
3016
- h = ["gatsby", "wordpress"];
3183
+ m = ["gatsby", "wordpress"];
3017
3184
  break;
3018
3185
  case "next-wp":
3019
- h = ["next", "wordpress"];
3186
+ m = ["next", "wordpress"];
3020
3187
  break;
3021
3188
  }
3022
- i = /* @__PURE__ */ e.createElement("span", { className: `${r}__group` }, Z2[h[0]], Z2[h[1]]);
3189
+ r = /* @__PURE__ */ e.createElement(
3190
+ "span",
3191
+ {
3192
+ "aria-label": w4[a],
3193
+ className: `${i}__group`,
3194
+ role: "img"
3195
+ },
3196
+ _2(q2[m[0]], { "aria-hidden": "true" }),
3197
+ _2(q2[m[1]], { "aria-hidden": "true" })
3198
+ );
3023
3199
  } else
3024
- i = Z2[l];
3200
+ r = q2[a];
3025
3201
  return /* @__PURE__ */ e.createElement(
3026
3202
  "div",
3027
3203
  {
3028
- className: b([r, c, n, t]),
3029
- ...s
3204
+ className: v([i, s, n, t]),
3205
+ ...c
3030
3206
  },
3031
- i
3207
+ r
3032
3208
  );
3033
- }, Z2 = {
3209
+ }, q2 = {
3034
3210
  drupal: /* @__PURE__ */ e.createElement(
3035
3211
  "svg",
3036
3212
  {
3213
+ "aria-label": "Drupal",
3037
3214
  fill: "none",
3038
3215
  height: "32",
3216
+ role: "img",
3039
3217
  viewBox: "0 0 32 32",
3040
3218
  width: "32",
3041
3219
  xmlns: "http://www.w3.org/2000/svg"
@@ -3060,8 +3238,10 @@ const t4 = {
3060
3238
  drupal7: /* @__PURE__ */ e.createElement(
3061
3239
  "svg",
3062
3240
  {
3241
+ "aria-label": "Drupal 7",
3063
3242
  fill: "none",
3064
3243
  height: "32",
3244
+ role: "img",
3065
3245
  viewBox: "0 0 32 32",
3066
3246
  width: "32",
3067
3247
  xmlns: "http://www.w3.org/2000/svg"
@@ -3086,8 +3266,10 @@ const t4 = {
3086
3266
  wordpress: /* @__PURE__ */ e.createElement(
3087
3267
  "svg",
3088
3268
  {
3269
+ "aria-label": "WordPress",
3089
3270
  fill: "none",
3090
3271
  height: "32",
3272
+ role: "img",
3091
3273
  viewBox: "0 0 32 32",
3092
3274
  width: "32",
3093
3275
  xmlns: "http://www.w3.org/2000/svg"
@@ -3111,8 +3293,10 @@ const t4 = {
3111
3293
  gatsby: /* @__PURE__ */ e.createElement(
3112
3294
  "svg",
3113
3295
  {
3296
+ "aria-label": "Gatsby",
3114
3297
  fill: "none",
3115
3298
  height: "32",
3299
+ role: "img",
3116
3300
  viewBox: "0 0 32 32",
3117
3301
  width: "32",
3118
3302
  xmlns: "http://www.w3.org/2000/svg"
@@ -3141,8 +3325,10 @@ const t4 = {
3141
3325
  google: /* @__PURE__ */ e.createElement(
3142
3326
  "svg",
3143
3327
  {
3328
+ "aria-label": "Google",
3144
3329
  fill: "none",
3145
3330
  height: "30",
3331
+ role: "img",
3146
3332
  viewBox: "0 0 30 30",
3147
3333
  width: "30",
3148
3334
  xmlns: "http://www.w3.org/2000/svg"
@@ -3179,8 +3365,10 @@ const t4 = {
3179
3365
  microsoft: /* @__PURE__ */ e.createElement(
3180
3366
  "svg",
3181
3367
  {
3368
+ "aria-label": "Microsoft",
3182
3369
  fill: "none",
3183
3370
  height: "30",
3371
+ role: "img",
3184
3372
  viewBox: "0 0 30 30",
3185
3373
  width: "30",
3186
3374
  xmlns: "http://www.w3.org/2000/svg"
@@ -3191,8 +3379,10 @@ const t4 = {
3191
3379
  next: /* @__PURE__ */ e.createElement(
3192
3380
  "svg",
3193
3381
  {
3382
+ "aria-label": "Next.js",
3194
3383
  fill: "none",
3195
3384
  height: "32",
3385
+ role: "img",
3196
3386
  viewBox: "0 0 180 180",
3197
3387
  width: "32",
3198
3388
  xmlns: "http://www.w3.org/2000/svg"
@@ -3255,8 +3445,10 @@ const t4 = {
3255
3445
  splunk: /* @__PURE__ */ e.createElement(
3256
3446
  "svg",
3257
3447
  {
3448
+ "aria-label": "Splunk",
3258
3449
  fill: "none",
3259
3450
  height: "32",
3451
+ role: "img",
3260
3452
  viewBox: "0 0 32 32",
3261
3453
  width: "32",
3262
3454
  xmlns: "http://www.w3.org/2000/svg"
@@ -3272,8 +3464,10 @@ const t4 = {
3272
3464
  "sumo-logic": /* @__PURE__ */ e.createElement(
3273
3465
  "svg",
3274
3466
  {
3467
+ "aria-label": "Sumo Logic",
3275
3468
  fill: "none",
3276
3469
  height: "32",
3470
+ role: "img",
3277
3471
  viewBox: "0 0 32 32",
3278
3472
  width: "32",
3279
3473
  xmlns: "http://www.w3.org/2000/svg"
@@ -3289,8 +3483,10 @@ const t4 = {
3289
3483
  "import-custom": /* @__PURE__ */ e.createElement(
3290
3484
  "svg",
3291
3485
  {
3486
+ "aria-label": "Add custom",
3292
3487
  fill: "none",
3293
3488
  height: "32",
3489
+ role: "img",
3294
3490
  viewBox: "0 0 32 32",
3295
3491
  width: "32",
3296
3492
  xmlns: "http://www.w3.org/2000/svg"
@@ -3304,644 +3500,681 @@ const t4 = {
3304
3500
  }
3305
3501
  )
3306
3502
  )
3307
- }, N4 = ({
3503
+ }, Z4 = ({
3308
3504
  buttonType: t = "button",
3309
- className: a = "",
3310
- disabled: l = !1,
3311
- label: s,
3312
- onClick: r,
3313
- platform: c,
3505
+ className: l = "",
3506
+ disabled: a = !1,
3507
+ label: c,
3508
+ onClick: i,
3509
+ platform: s,
3314
3510
  size: n = "m",
3315
- ...i
3511
+ ...r
3316
3512
  }) => {
3317
- const m = "pds-sso-button", h = `${m}--${n}`, p = n === "m" ? "l" : "2xl", f = /* @__PURE__ */ e.createElement(
3318
- m4,
3513
+ const o = "pds-sso-button", m = `${o}--${n}`, h = n === "m" ? "l" : "2xl", z = /* @__PURE__ */ e.createElement(
3514
+ M4,
3319
3515
  {
3320
- className: `${m}__icon`,
3321
- iconSize: p,
3322
- platformType: c
3516
+ className: `${o}__icon`,
3517
+ iconSize: h,
3518
+ platformType: s
3323
3519
  }
3324
3520
  );
3325
3521
  return /* @__PURE__ */ e.createElement(
3326
3522
  "button",
3327
3523
  {
3328
- className: b([m, h, a]),
3329
- disabled: l,
3330
- onClick: r,
3524
+ className: v([o, m, l]),
3525
+ disabled: a,
3526
+ onClick: i,
3331
3527
  type: t,
3332
- ...i
3528
+ ...r
3333
3529
  },
3334
- f,
3335
- s
3530
+ z,
3531
+ c
3336
3532
  );
3337
- }, S4 = ({
3533
+ }, q4 = ({
3338
3534
  buttonProps: t,
3339
- className: a,
3340
- disabled: l = !1,
3341
- hasBorder: s = !1,
3342
- iconName: r,
3343
- iconPosition: c = "before",
3535
+ className: l,
3536
+ disabled: a = !1,
3537
+ hasBorder: c = !1,
3538
+ iconName: i,
3539
+ iconPosition: s = "before",
3344
3540
  isCritical: n = !1,
3345
- isLoading: i,
3346
- isMonospace: m = !1,
3347
- isWorking: h,
3348
- label: p,
3349
- linkContent: f,
3541
+ isLoading: r,
3542
+ isMonospace: o = !1,
3543
+ isWorking: m,
3544
+ label: h,
3545
+ linkContent: z,
3350
3546
  onClick: d,
3351
- tooltipText: g,
3352
- ...M
3547
+ tooltipText: f,
3548
+ ...C
3353
3549
  }) => {
3354
- const o = "pds-utility-button", z = i ? "pds-pulse" : null, L = (v) => r && !h ? /* @__PURE__ */ e.createElement(V, { key: v, className: `${o}__icon`, iconName: r }) : null, y = () => h ? /* @__PURE__ */ e.createElement(
3355
- S2,
3550
+ const g = "pds-utility-button", p = r ? "pds-pulse" : null, L = (w) => i && !m ? /* @__PURE__ */ e.createElement(A, { key: w, className: `${g}__icon`, iconName: i }) : null, b = () => m ? /* @__PURE__ */ e.createElement(
3551
+ k2,
3356
3552
  {
3357
3553
  key: "spinner",
3358
- className: `${o}__spinner`,
3554
+ className: `${g}__spinner`,
3359
3555
  colorType: "monochromatic",
3360
3556
  size: "s"
3361
3557
  }
3362
- ) : null, w = (v) => {
3363
- const T = [];
3364
- return c === "before" && T.push(L("icon-before")), T.push(y()), T.push(
3365
- /* @__PURE__ */ e.createElement("span", { key: "label", className: `${o}__label` }, v)
3366
- ), c === "after" && T.push(L("icon-after")), T.filter(Boolean);
3367
- }, _ = f && z2(f) ? f.props.children : p, k = b([
3368
- o,
3369
- s ? `${o}--border` : null,
3370
- n ? `${o}--critical` : null,
3371
- l ? `${o}--disabled` : null,
3372
- i ? `${o}--loading` : null,
3373
- h ? `${o}--working` : null,
3374
- m ? `${o}--monospace` : null,
3375
- a ?? ""
3376
- ]), S = (v) => g ? /* @__PURE__ */ e.createElement(N2, { content: g, customTrigger: v }) : v;
3377
- if (f && !l) {
3378
- const v = z2(f) ? n1(
3379
- f,
3380
- Object.assign({}, f.props, {
3381
- className: b([
3382
- `${o}__button`,
3383
- z,
3384
- f.props.className ?? ""
3558
+ ) : null, M = (w) => {
3559
+ const S = [];
3560
+ return s === "before" && S.push(L("icon-before")), S.push(b()), S.push(
3561
+ /* @__PURE__ */ e.createElement("span", { key: "label", className: `${g}__label` }, w)
3562
+ ), s === "after" && S.push(L("icon-after")), S.filter(Boolean);
3563
+ }, D = z && h2(z) ? z.props.children : h, N = v([
3564
+ g,
3565
+ c ? `${g}--border` : null,
3566
+ n ? `${g}--critical` : null,
3567
+ a ? `${g}--disabled` : null,
3568
+ r ? `${g}--loading` : null,
3569
+ m ? `${g}--working` : null,
3570
+ o ? `${g}--monospace` : null,
3571
+ l ?? ""
3572
+ ]), P = (w) => f ? /* @__PURE__ */ e.createElement(T2, { content: f, customTrigger: w }) : w;
3573
+ if (z && !a) {
3574
+ const w = h2(z) ? _2(
3575
+ z,
3576
+ Object.assign({}, z.props, {
3577
+ className: v([
3578
+ `${g}__button`,
3579
+ p,
3580
+ z.props.className ?? ""
3385
3581
  ]),
3386
- children: w(_)
3582
+ children: M(D)
3387
3583
  })
3388
3584
  ) : null;
3389
- return /* @__PURE__ */ e.createElement("div", { className: k, ...M }, S(v));
3585
+ return /* @__PURE__ */ e.createElement("div", { className: N, ...C }, P(w));
3390
3586
  }
3391
- const x = /* @__PURE__ */ e.createElement(
3587
+ const _ = /* @__PURE__ */ e.createElement(
3392
3588
  "button",
3393
3589
  {
3394
- "aria-disabled": l || i || h,
3395
- className: b([`${o}__button`, z]),
3396
- onClick: l ? void 0 : d,
3590
+ "aria-disabled": a || r || m,
3591
+ className: v([`${g}__button`, p]),
3592
+ onClick: a ? void 0 : d,
3397
3593
  type: "button",
3398
3594
  ...t
3399
3595
  },
3400
- w(_)
3596
+ M(D)
3401
3597
  );
3402
- return /* @__PURE__ */ e.createElement("div", { className: k, ...M }, S(x));
3403
- }, h4 = ({
3404
- disabled: t,
3405
- dropTargetDirection: a,
3406
- focusedIndex: l,
3407
- index: s,
3408
- isDragging: r,
3409
- isSortable: c,
3410
- onDragEnd: n,
3411
- onDragOver: i,
3412
- onDragStart: m,
3413
- onKeyboardMove: h,
3414
- onRemove: p,
3415
- setFocusedIndex: f,
3416
- tag: d,
3417
- totalTags: g,
3418
- translationStrings: M
3419
- }) => {
3420
- const o = Q(null), z = "pds-tags-input__tag";
3421
- c2(() => {
3422
- l === s && o.current && o.current.focus();
3423
- }, [l, s]);
3424
- const L = (C) => {
3425
- if (!c || !o.current) return;
3426
- const U = window.getComputedStyle(
3427
- o.current.closest(".pds-tags-input") || document.documentElement
3428
- ), A = U.getPropertyValue("--tag-hover-background").trim(), K = U.getPropertyValue("--tag-text-hover-color").trim(), F = U.getPropertyValue("--tag-selected-outline").trim(), e2 = o.current.style.backgroundColor, W = o.current.style.color, t2 = o.current.style.outline, J = o.current.style.outlineOffset;
3429
- o.current.style.backgroundColor = A, o.current.style.color = K, o.current.style.outline = F, o.current.style.outlineOffset = "-1px", o.current.offsetHeight, C.dataTransfer.effectAllowed = "move", C.dataTransfer.setData("text/html", C.currentTarget.innerHTML), setTimeout(() => {
3430
- o.current && (o.current.style.backgroundColor = e2, o.current.style.color = W, o.current.style.outline = t2, o.current.style.outlineOffset = J, o.current.classList.add(`${z}--dragging`));
3431
- }, 0), m(d.id);
3432
- }, y = (C) => {
3433
- if (!c || !o.current) return;
3434
- C.preventDefault(), C.dataTransfer.dropEffect = "move";
3435
- const U = o.current.getBoundingClientRect(), A = C.clientX, K = U.left + U.width / 2, F = A < K ? "before" : "after";
3436
- i(d.id, F);
3437
- }, w = (C) => {
3438
- if (!t) {
3439
- if (c) {
3440
- if ((C.key === "ArrowLeft" || C.key === "ArrowUp") && C.shiftKey && s > 0) {
3441
- C.preventDefault(), h(s, s - 1), f(s - 1);
3442
- return;
3443
- } else if ((C.key === "ArrowRight" || C.key === "ArrowDown") && C.shiftKey && s < g - 1) {
3444
- C.preventDefault(), h(s, s + 1), f(s + 1);
3445
- return;
3446
- }
3447
- }
3448
- C.key === "Delete" ? (C.preventDefault(), p(d.id), s > 0 && f(s - 1)) : C.key === "ArrowLeft" && !C.shiftKey && s > 0 ? (C.preventDefault(), f(s - 1)) : C.key === "ArrowRight" && !C.shiftKey && s < g - 1 && (C.preventDefault(), f(s + 1));
3449
- }
3450
- }, _ = String(s + 1), k = String(g), S = c ? M.tagAriaLabel : M.tagAriaLabelSimple, x = `${d.value}, ${S.replace("{index}", _).replace("{total}", k)}`, v = r ? `${z}--dragging` : null, T = t ? p2.disabled : null, N = a ? `${z}--drop-target-${a}` : null;
3451
- return /* @__PURE__ */ e.createElement(
3452
- "div",
3453
- {
3454
- ref: o,
3455
- "aria-label": x,
3456
- className: b([
3457
- z,
3458
- v,
3459
- T,
3460
- N
3461
- ]),
3462
- draggable: c && !t,
3463
- onDragEnd: c ? n : void 0,
3464
- onDragOver: c ? y : void 0,
3465
- onDragStart: c ? L : void 0,
3466
- onKeyDown: w,
3467
- role: "button",
3468
- tabIndex: t ? -1 : 0
3598
+ return /* @__PURE__ */ e.createElement("div", { className: N, ...C }, P(_));
3599
+ }, G4 = P2(
3600
+ ({
3601
+ className: t,
3602
+ counterMaxLength: l,
3603
+ defaultValue: a,
3604
+ disabled: c = !1,
3605
+ id: i,
3606
+ inputWidth: s,
3607
+ isResizable: n = !0,
3608
+ label: r,
3609
+ message: o,
3610
+ onBlur: m,
3611
+ onChange: h,
3612
+ onFocus: z,
3613
+ placeholder: d,
3614
+ readonly: f = !1,
3615
+ required: C = !1,
3616
+ rows: g = 5,
3617
+ showLabel: p,
3618
+ size: L = "s",
3619
+ textareaProps: b,
3620
+ tooltipText: M = null,
3621
+ translationStrings: D = {
3622
+ clearButton: "Clear input text",
3623
+ counterOverLimit: "Character limit exceeded by",
3624
+ searchShortcut: "Press / to focus the search field",
3625
+ visibilityStatus: "The value of the input is",
3626
+ visibilityToggleHide: "Hide input value",
3627
+ visibilityToggleShow: "Show input value"
3469
3628
  },
3470
- c && /* @__PURE__ */ e.createElement("span", { "aria-hidden": "true", className: `${z}-grip` }, /* @__PURE__ */ e.createElement(V, { iconName: "gripDotsVertical", iconSize: "s" })),
3471
- /* @__PURE__ */ e.createElement("span", { className: `${z}-text` }, d.value),
3472
- /* @__PURE__ */ e.createElement(
3473
- "button",
3629
+ validationMessage: N,
3630
+ validationStatus: P,
3631
+ value: _,
3632
+ ...w
3633
+ }, S) => {
3634
+ const y = p1(s), k = "pds-textarea", R = n ? "pds-is-resizable" : null, F = c ? X.disabled : null, Y = C && !c ? X.required : null, q = P === "error" ? X.error : null, i2 = P === "success" ? X.success : null, Z = L !== "s" ? `${k}--${L}` : null, n2 = f ? X.readonly : null, U = N || o, r2 = _ != null && h !== void 0, Q = typeof a < "u", [o2, s2] = H(
3635
+ Q ? a : ""
3636
+ ), T = _ || o2, B = (K) => {
3637
+ r2 || s2(K.target.value), h && h(K);
3638
+ }, W = (K) => {
3639
+ m && m(K);
3640
+ };
3641
+ return /* @__PURE__ */ e.createElement(
3642
+ "div",
3474
3643
  {
3475
- "aria-label": M.tagRemove.replace("{value}", d.value),
3476
- className: `${z}-remove`,
3477
- disabled: t,
3478
- onClick: (C) => {
3479
- C.stopPropagation(), p(d.id);
3480
- },
3481
- tabIndex: 0,
3482
- type: "button"
3644
+ className: v([
3645
+ X.base,
3646
+ k,
3647
+ Z,
3648
+ F,
3649
+ Y,
3650
+ q,
3651
+ i2,
3652
+ n2,
3653
+ t ?? ""
3654
+ ]),
3655
+ style: s ? y : null,
3656
+ ...w
3483
3657
  },
3484
- /* @__PURE__ */ e.createElement(
3485
- V,
3658
+ /* @__PURE__ */ e.createElement("div", { className: `${k}__inputlabel-wrapper` }, /* @__PURE__ */ e.createElement(
3659
+ z1,
3486
3660
  {
3487
- className: `${z}-remove-icon`,
3488
- iconName: "xmark",
3489
- iconSize: "m"
3661
+ className: `${k}__inputlabel`,
3662
+ disabled: c,
3663
+ id: i,
3664
+ label: r,
3665
+ required: C,
3666
+ showLabel: p,
3667
+ tooltipText: M
3668
+ }
3669
+ ), l && /* @__PURE__ */ e.createElement(
3670
+ C1,
3671
+ {
3672
+ currentLength: T.length,
3673
+ id: i,
3674
+ maxLength: l,
3675
+ overLimitMessage: D.counterOverLimit
3676
+ }
3677
+ )),
3678
+ /* @__PURE__ */ e.createElement("div", { className: `${k}__input-wrapper` }, /* @__PURE__ */ e.createElement(
3679
+ "textarea",
3680
+ {
3681
+ ref: S,
3682
+ "aria-describedby": U ? `${i}__message` : null,
3683
+ "aria-invalid": P === "error",
3684
+ className: v([`${k}--textarea`, R]),
3685
+ disabled: c,
3686
+ id: i,
3687
+ name: i,
3688
+ onBlur: W,
3689
+ onChange: B,
3690
+ onFocus: z,
3691
+ placeholder: d,
3692
+ readOnly: f,
3693
+ required: C,
3694
+ rows: g,
3695
+ value: r2 ? _ : o2,
3696
+ ...b
3697
+ }
3698
+ )),
3699
+ U && /* @__PURE__ */ e.createElement(
3700
+ f1,
3701
+ {
3702
+ validationMessageHasDecorators: !0,
3703
+ hasValidationMessage: !!N,
3704
+ id: i,
3705
+ message: U,
3706
+ validationStatus: P
3490
3707
  }
3491
3708
  )
3492
- )
3493
- );
3494
- }, I4 = k2(
3709
+ );
3710
+ }
3711
+ ), b4 = () => /* @__PURE__ */ e.createElement("div", { className: "pds-text-input__url-prefix" }, "https://"), W4 = P2(
3495
3712
  ({
3496
- addMorePlaceholder: t = "Add another",
3497
- className: a,
3498
- disabled: l = !1,
3499
- id: s,
3500
- inputMinHeight: r = 80,
3501
- inputWidth: c,
3502
- isSortable: n = !1,
3503
- label: i,
3504
- message: m,
3505
- onChange: h,
3506
- placeholder: p,
3507
- required: f = !1,
3508
- showLabel: d = !0,
3509
- tags: g,
3510
- tooltipText: M = null,
3511
- translationStrings: o = {
3512
- inputInstructions: "Type a tag name and press Enter to add. Press Backspace on empty input to remove last tag. Press left arrow on empty input to navigate to tags.",
3513
- tagAriaLabel: "tag {index} of {total}. Press Shift plus arrow keys to reorder, Delete to remove.",
3514
- tagAriaLabelSimple: "tag {index} of {total}. Press Delete to remove.",
3515
- tagRemove: "Remove {value}",
3516
- tagsListLabel: "Current tags"
3713
+ autoComplete: t,
3714
+ className: l,
3715
+ counterMaxLength: a,
3716
+ defaultValue: c,
3717
+ disabled: i = !1,
3718
+ hasClearButton: s = !1,
3719
+ hasSearchShortcut: n = !1,
3720
+ hasUrlPrefix: r = !1,
3721
+ id: o,
3722
+ inputProps: m,
3723
+ inputWidth: h,
3724
+ label: z,
3725
+ message: d,
3726
+ onBlur: f,
3727
+ onChange: C,
3728
+ onClear: g,
3729
+ onFocus: p,
3730
+ placeholder: L,
3731
+ readonly: b = !1,
3732
+ required: M = !1,
3733
+ searchIcon: D = "search",
3734
+ showLabel: N = !0,
3735
+ showVisibilityToggle: P = !1,
3736
+ size: _ = "s",
3737
+ tooltipText: w = null,
3738
+ translationStrings: S = {
3739
+ clearButton: "Clear input text",
3740
+ counterOverLimit: "Character limit exceeded by",
3741
+ searchShortcut: "Press / to focus the search field",
3742
+ visibilityStatus: "The value of the input is",
3743
+ visibilityToggleHide: "Hide input value",
3744
+ visibilityToggleShow: "Show input value"
3517
3745
  },
3518
- validationMessage: z,
3519
- validationStatus: L,
3520
- ...y
3521
- }, w) => {
3522
- const _ = K1(c), k = "pds-tags-input", S = l ? p2.disabled : null, x = f && !l ? p2.required : null, v = L === "error" ? p2.error : null, T = L === "success" ? p2.success : null, N = z || m, [C, U] = O(""), [A, K] = O(null), [F, e2] = O(null), [W, t2] = O(null), [J, d2] = O(null), [l2, m2] = O(""), a2 = Q(null), H = g.length > 0 ? t : p, Z = ($) => {
3523
- m2($), setTimeout(() => m2(""), 1e3);
3524
- }, X = ($) => {
3525
- h($);
3526
- }, f2 = ($) => {
3527
- K($);
3528
- }, s2 = () => {
3529
- K(null), e2(null), t2(null);
3530
- }, y2 = ($, R) => {
3531
- A === null || A === $ || (e2($), t2(R));
3532
- }, E2 = ($) => {
3533
- if ($.preventDefault(), A === null || F === null || W === null)
3534
- return;
3535
- const R = g.findIndex((r2) => r2.id === A), q = g.findIndex((r2) => r2.id === F);
3536
- if (R === -1 || q === -1) return;
3537
- const Y = [...g], [A2] = Y.splice(R, 1);
3538
- let L2 = q;
3539
- W === "after" ? L2 = R < q ? q : q + 1 : L2 = (R < q, q), Y.splice(L2, 0, A2), X(Y), Z("Tag reordered"), K(null), e2(null), t2(null);
3540
- }, j2 = ($, R) => {
3541
- const q = [...g], [Y] = q.splice($, 1);
3542
- q.splice(R, 0, Y), Z(
3543
- `${Y.value} moved to position ${R + 1} of ${g.length}`
3544
- ), X(q);
3545
- }, $2 = ($) => {
3546
- const R = g.find((Y) => Y.id === $), q = g.filter((Y) => Y.id !== $);
3547
- X(q), R && Z(`${R.value} removed`), setTimeout(() => {
3548
- a2.current && a2.current.focus();
3549
- }, 0);
3550
- }, T2 = ($) => {
3551
- if (!l)
3552
- if ($.key === "Enter" && C.trim()) {
3553
- $.preventDefault();
3554
- const R = {
3555
- id: Date.now().toString(),
3556
- value: C.trim()
3557
- };
3558
- X([...g, R]), Z(`${C.trim()} added`), U("");
3559
- } else if ($.key === "Backspace" && !C && g.length > 0) {
3560
- const R = g[g.length - 1];
3561
- X(g.slice(0, -1)), Z(`${R.value} removed`);
3562
- } else $.key === "ArrowLeft" && !C && g.length > 0 && ($.preventDefault(), d2(g.length - 1));
3746
+ type: y = "text",
3747
+ validationMessage: k,
3748
+ validationStatus: R,
3749
+ value: F,
3750
+ ...Y
3751
+ }, q) => {
3752
+ const i2 = p1(h), Z = "pds-text-input", n2 = i ? X.disabled : null, U = M && !i ? X.required : null, r2 = R === "error" ? X.error : null, Q = R === "success" ? X.success : null, o2 = b ? X.readonly : null, s2 = _ !== "s" ? `${Z}--${_}` : null, T = r && y === "url" ? `${Z}--has-url-prefix` : null;
3753
+ let B = null;
3754
+ y === "search" && (B = "search"), y === "search" && D === "filter" && (B = "filter"), R === "error" && (B = "error"), R === "success" && (B = "success");
3755
+ const W = k || d, K = typeof F < "u", e2 = typeof c < "u", [z2, u2] = H(
3756
+ e2 ? c : ""
3757
+ ), f2 = F || z2, N2 = (V) => {
3758
+ if (P && m2 && L2(!1), r && y === "url") {
3759
+ const t2 = l1(V.target.value), w2 = {
3760
+ ...V,
3761
+ target: {
3762
+ ...V.target,
3763
+ value: t2
3764
+ }
3765
+ };
3766
+ f && f(w2);
3767
+ } else f && f(V);
3768
+ }, A2 = (V) => {
3769
+ if (r && y === "url") {
3770
+ const t2 = l1(V.target.value), w2 = {
3771
+ ...V,
3772
+ target: {
3773
+ ...V.target,
3774
+ value: t2
3775
+ }
3776
+ };
3777
+ K || u2(t2), C && C(w2);
3778
+ } else
3779
+ K || u2(V.target.value), C && C(V);
3780
+ }, S2 = () => {
3781
+ K || u2(""), g && g();
3782
+ const V = document.getElementById(o);
3783
+ V && V.focus();
3784
+ }, [m2, L2] = H(!1), C2 = () => {
3785
+ L2((t2) => !t2);
3786
+ const V = document.getElementById(o);
3787
+ V && V.focus();
3563
3788
  };
3564
- return /* @__PURE__ */ e.createElement(
3789
+ let v2 = y;
3790
+ return P && y === "password" && (m2 ? v2 = "text" : v2 = "password"), /* @__PURE__ */ e.createElement(
3565
3791
  "div",
3566
3792
  {
3567
- className: b([
3568
- p2.base,
3569
- k,
3570
- S,
3571
- x,
3572
- v,
3793
+ className: v([
3794
+ X.base,
3795
+ Z,
3796
+ s2,
3797
+ n2,
3798
+ U,
3799
+ r2,
3800
+ Q,
3801
+ o2,
3573
3802
  T,
3574
- a ?? ""
3803
+ l ?? ""
3575
3804
  ]),
3576
- style: c ? _ : null,
3577
- ...y
3805
+ style: h ? i2 : null,
3806
+ ...Y
3578
3807
  },
3579
3808
  /* @__PURE__ */ e.createElement(
3580
- X1,
3809
+ z1,
3581
3810
  {
3582
- disabled: l,
3583
- id: s,
3584
- label: i,
3585
- required: f,
3586
- showLabel: d,
3587
- tooltipText: M
3811
+ disabled: i,
3812
+ id: o,
3813
+ label: z,
3814
+ required: M,
3815
+ showLabel: N,
3816
+ tooltipText: w
3588
3817
  }
3589
3818
  ),
3590
- /* @__PURE__ */ e.createElement("div", { "aria-atomic": "true", "aria-live": "polite", className: "visually-hidden" }, l2),
3819
+ P && y === "password" && /* @__PURE__ */ e.createElement("div", { "aria-live": "polite", className: "visually-hidden" }, `${S.visibilityStatus} ${m2 ? "visible" : "hidden"}.`),
3591
3820
  /* @__PURE__ */ e.createElement(
3592
3821
  "div",
3593
3822
  {
3594
- "aria-labelledby": `${s}-label`,
3595
- className: `${k}__input-wrapper`,
3596
- role: "group",
3597
- style: { minHeight: `${r}px` }
3823
+ className: `${Z}__input-wrapper ${r && y === "url" ? `${Z}__input-wrapper--has-prefix` : ""}`
3598
3824
  },
3599
- g.length > 0 && /* @__PURE__ */ e.createElement(
3600
- "div",
3825
+ B && /* @__PURE__ */ e.createElement(L1, { variant: B }),
3826
+ r && y === "url" && /* @__PURE__ */ e.createElement(b4, null),
3827
+ /* @__PURE__ */ e.createElement(
3828
+ "input",
3829
+ {
3830
+ ref: q,
3831
+ "aria-describedby": W ? `${o}__message` : null,
3832
+ "aria-invalid": R === "error" ? !0 : null,
3833
+ autoComplete: y === "password" ? "off" : t,
3834
+ className: `${Z}__input ${r && y === "url" ? `${Z}__input--has-prefix` : ""}`,
3835
+ disabled: i,
3836
+ id: o,
3837
+ name: o,
3838
+ onBlur: N2,
3839
+ onChange: A2,
3840
+ onFocus: p,
3841
+ placeholder: L,
3842
+ readOnly: b,
3843
+ required: M,
3844
+ type: v2,
3845
+ value: K ? F : z2,
3846
+ ...m
3847
+ }
3848
+ ),
3849
+ s && f2 && /* @__PURE__ */ e.createElement(
3850
+ o4,
3851
+ {
3852
+ clearLabel: S.clearButton,
3853
+ handleClearInput: S2,
3854
+ id: o
3855
+ }
3856
+ ),
3857
+ P && y === "password" && /* @__PURE__ */ e.createElement(
3858
+ "button",
3601
3859
  {
3602
- "aria-label": o.tagsListLabel,
3603
- className: `${k}__tags`,
3604
- onDrop: n ? E2 : void 0,
3605
- role: "list"
3860
+ "aria-controls": o,
3861
+ className: `${Z}__visibility-toggle`,
3862
+ onClick: C2,
3863
+ onMouseDown: (V) => V.preventDefault(),
3864
+ title: m2 ? S.visibilityToggleHide : S.visibilityToggleShow,
3865
+ type: "button"
3606
3866
  },
3607
- g.map(($, R) => {
3608
- let q = null;
3609
- return A && A !== $.id && (F === $.id && W === "before" ? q = "before" : F === $.id && W === "after" && R === g.length - 1 ? q = "after" : R > 0 && F === g[R - 1].id && W === "after" && (q = "before")), /* @__PURE__ */ e.createElement("div", { key: $.id, role: "listitem" }, /* @__PURE__ */ e.createElement(
3610
- h4,
3611
- {
3612
- disabled: l,
3613
- dropTargetDirection: q,
3614
- focusedIndex: J,
3615
- index: R,
3616
- isDragging: A === $.id,
3617
- isSortable: n,
3618
- onDragEnd: s2,
3619
- onDragOver: y2,
3620
- onDragStart: f2,
3621
- onKeyboardMove: j2,
3622
- onRemove: $2,
3623
- setFocusedIndex: d2,
3624
- tag: $,
3625
- totalTags: g.length,
3626
- translationStrings: o
3627
- }
3628
- ));
3629
- })
3867
+ /* @__PURE__ */ e.createElement(A, { iconName: m2 ? "eyeSlash" : "eye", iconSize: "m" })
3630
3868
  ),
3631
- /* @__PURE__ */ e.createElement(
3632
- "input",
3869
+ n && y === "search" && !f2 && /* @__PURE__ */ e.createElement(
3870
+ r4,
3633
3871
  {
3634
- ref: ($) => {
3635
- a2.current = $, typeof w == "function" ? w($) : w && (w.current = $);
3636
- },
3637
- "aria-describedby": `${s}__instructions`,
3638
- "aria-invalid": L === "error" ? !0 : null,
3639
- className: `${k}__input`,
3640
- disabled: l,
3641
- id: s,
3642
- name: s,
3643
- onChange: ($) => U($.target.value),
3644
- onKeyDown: T2,
3645
- placeholder: H,
3646
- required: f,
3647
- type: "text",
3648
- value: C
3872
+ inputId: o,
3873
+ shortcutLabel: S.searchShortcut
3649
3874
  }
3650
3875
  ),
3651
- /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", id: `${s}__instructions` }, o.inputInstructions)
3876
+ a && y !== "password" && /* @__PURE__ */ e.createElement(
3877
+ C1,
3878
+ {
3879
+ currentLength: f2.length,
3880
+ id: o,
3881
+ maxLength: a,
3882
+ overLimitMessage: S.counterOverLimit
3883
+ }
3884
+ )
3652
3885
  ),
3653
- N && /* @__PURE__ */ e.createElement(
3654
- Y1,
3886
+ W && /* @__PURE__ */ e.createElement(
3887
+ f1,
3655
3888
  {
3656
- hasValidationMessage: !!z,
3657
- id: s,
3658
- message: N,
3889
+ hasValidationMessage: !!k,
3890
+ id: o,
3891
+ message: W,
3659
3892
  validationMessageHasDecorators: !1,
3660
- validationStatus: L
3893
+ validationStatus: R
3661
3894
  }
3662
3895
  )
3663
3896
  );
3664
3897
  }
3665
- ), g4 = (t) => typeof t.linkContent != "string" ? !!(t.isActive || t.linkContent.props.className && t.linkContent.props.className.includes(
3898
+ ), E4 = (t) => typeof t.linkContent != "string" ? !!(t.isActive || t.linkContent.props.className && t.linkContent.props.className.includes(
3666
3899
  "pds-isActive"
3667
- )) : !1, K2 = (t) => {
3668
- if (g4(t))
3900
+ )) : !1, X2 = (t) => {
3901
+ if (E4(t))
3669
3902
  return !0;
3670
3903
  if (t.links) {
3671
- for (let a = 0; a < t.links.length; a++)
3672
- if (K2(t.links[a]))
3904
+ for (let l = 0; l < t.links.length; l++)
3905
+ if (X2(t.links[l]))
3673
3906
  return !0;
3674
3907
  }
3675
3908
  return !1;
3676
- }, j4 = ({
3909
+ }, U4 = ({
3677
3910
  ariaLabel: t,
3678
- className: a,
3679
- menuItems: l,
3680
- size: s = "s",
3681
- ...r
3911
+ className: l,
3912
+ menuItems: a,
3913
+ size: c = "s",
3914
+ ...i
3682
3915
  }) => {
3683
- let c = !1;
3684
- const n = P2(b2);
3685
- n && (c = n.isMobile);
3686
- const i = Q(null), m = "pds-button-nav", h = c ? `${m}--isMobile` : null, p = `${m}--${s}`;
3687
- c2(() => {
3688
- const o = (z) => {
3689
- if (c) return;
3690
- const L = i.current;
3916
+ let s = !1;
3917
+ const n = D2(x2);
3918
+ n && (s = n.isMobile);
3919
+ const r = J(null), o = "pds-button-nav", m = s ? `${o}--isMobile` : null, h = `${o}--${c}`;
3920
+ l2(() => {
3921
+ const g = (p) => {
3922
+ if (s) return;
3923
+ const L = r.current;
3691
3924
  if (!L) return;
3692
- const y = Array.from(
3925
+ const b = Array.from(
3693
3926
  L.querySelectorAll('a, button, [tabindex]:not([tabindex="-1"])')
3694
3927
  );
3695
- if (y.length === 0) return;
3696
- const w = document.activeElement, _ = y.indexOf(w);
3697
- if (_ !== -1) {
3698
- if (z.key === "ArrowRight") {
3699
- z.preventDefault();
3700
- const k = (_ + 1) % y.length;
3701
- y[k].focus();
3702
- } else if (z.key === "ArrowLeft") {
3703
- z.preventDefault();
3704
- const k = (_ - 1 + y.length) % y.length;
3705
- y[k].focus();
3928
+ if (b.length === 0) return;
3929
+ const M = document.activeElement, D = b.indexOf(M);
3930
+ if (D !== -1) {
3931
+ if (p.key === "ArrowRight") {
3932
+ p.preventDefault();
3933
+ const N = (D + 1) % b.length;
3934
+ b[N].focus();
3935
+ } else if (p.key === "ArrowLeft") {
3936
+ p.preventDefault();
3937
+ const N = (D - 1 + b.length) % b.length;
3938
+ b[N].focus();
3706
3939
  }
3707
3940
  }
3708
3941
  };
3709
- return document.addEventListener("keydown", o), () => {
3710
- document.removeEventListener("keydown", o);
3942
+ return document.addEventListener("keydown", g), () => {
3943
+ document.removeEventListener("keydown", g);
3711
3944
  };
3712
- }, [c]);
3713
- const f = ({ isActive: o, linkContent: z }) => {
3714
- const L = `${m}__item`;
3945
+ }, [s]);
3946
+ const z = ({ isActive: g, linkContent: p }) => {
3947
+ const L = `${o}__item`;
3715
3948
  return /* @__PURE__ */ e.createElement(
3716
3949
  "li",
3717
3950
  {
3718
- className: b([
3951
+ className: v([
3719
3952
  L,
3720
- o ? `${L}--active` : null
3953
+ g ? `${L}--active` : null
3721
3954
  ])
3722
3955
  },
3723
- z
3956
+ p
3724
3957
  );
3725
- }, d = l.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${m}__menu` }, l.map((o, z) => /* @__PURE__ */ e.createElement(
3726
- f,
3958
+ }, d = a.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu` }, a.map((g, p) => /* @__PURE__ */ e.createElement(
3959
+ z,
3727
3960
  {
3728
- key: z,
3729
- isActive: K2(o),
3730
- linkContent: o.linkContent
3961
+ key: p,
3962
+ isActive: X2(g),
3963
+ linkContent: g.linkContent
3731
3964
  }
3732
- ))) : null, g = [];
3733
- l.map((o) => {
3734
- o.linkContent && (K2(o) ? g.unshift({
3735
- linkContent: o.linkContent,
3965
+ ))) : null, f = [];
3966
+ a.map((g) => {
3967
+ g.linkContent && (X2(g) ? f.unshift({
3968
+ linkContent: g.linkContent,
3736
3969
  isLink: !0
3737
- }) : g.push({
3738
- linkContent: o.linkContent,
3970
+ }) : f.push({
3971
+ linkContent: g.linkContent,
3739
3972
  isLink: !0
3740
3973
  }));
3741
3974
  });
3742
- const M = g.length > 0 ? /* @__PURE__ */ e.createElement(
3743
- d4,
3975
+ const C = f.length > 0 ? /* @__PURE__ */ e.createElement(
3976
+ v4,
3744
3977
  {
3745
- actionItems: g,
3978
+ actionItems: f,
3746
3979
  id: "mobile-nav-split-button",
3747
- size: s,
3980
+ size: c,
3748
3981
  variant: "secondary"
3749
3982
  }
3750
3983
  ) : null;
3751
3984
  return /* @__PURE__ */ e.createElement(
3752
3985
  "nav",
3753
3986
  {
3754
- ref: i,
3987
+ ref: r,
3755
3988
  "aria-label": t,
3756
- className: b([
3757
- m,
3758
- p,
3989
+ className: v([
3990
+ o,
3759
3991
  h,
3760
- a ?? ""
3992
+ m,
3993
+ l ?? ""
3761
3994
  ]),
3762
- ...r
3995
+ ...i
3763
3996
  },
3764
- c ? M : d
3997
+ s ? C : d
3765
3998
  );
3766
- }, u4 = {
3999
+ }, y4 = {
3767
4000
  info: "circleInfo",
3768
4001
  warning: "triangleExclamation",
3769
4002
  critical: "diamondExclamation",
3770
4003
  discovery: "bullhorn"
3771
- }, q2 = 200, p4 = 50, T4 = ({
4004
+ }, G2 = 200, $4 = 50, K4 = ({
3772
4005
  banners: t,
3773
- className: a,
3774
- dismissLabel: l = "Dismiss",
3775
- labelNext: s = "Go to next message",
3776
- labelPrevious: r = "Go to previous message",
3777
- typeLabels: c = { ...Q2, neutral: "Notice" },
4006
+ className: l,
4007
+ dismissLabel: a = "Dismiss",
4008
+ labelNext: c = "Go to next message",
4009
+ labelPrevious: i = "Go to previous message",
4010
+ typeLabels: s = { ...Q2, neutral: "Notice" },
3778
4011
  ...n
3779
4012
  }) => {
3780
- const [i, m] = O(t), [h, p] = O(null), [f, d] = O(null), [g, M] = O({});
3781
- c2(() => {
3782
- m(t);
4013
+ const [r, o] = H(t), [m, h] = H(null), [z, d] = H(null), [f, C] = H({});
4014
+ l2(() => {
4015
+ o(t);
3783
4016
  }, [t]);
3784
- const o = i.length;
3785
- if (o === 0)
4017
+ const g = r.length;
4018
+ if (g === 0)
3786
4019
  return null;
3787
- const z = "pds-banner", L = o > 1 ? `${z}-group--multiple` : null, y = {
3788
- critical: `${z}--critical`,
3789
- discovery: `${z}--discovery`,
3790
- info: `${z}--info`,
3791
- neutral: `${z}--neutral`,
3792
- warning: `${z}--warning`
3793
- }, w = i[0].type, _ = w ? `${z}-group--${w}` : null, k = (N) => O2 - N, S = (N) => N === 0 ? 0 : -1, x = () => {
3794
- p(i[0].id), setTimeout(() => {
3795
- m((N) => [
3796
- ...N.slice(1),
3797
- N[0]
3798
- ]), p(null);
3799
- }, q2);
3800
- }, v = () => {
3801
- M({
3802
- [i[0].id]: O2 + 2,
3803
- [i[o - 1].id]: O2 + 1
4020
+ const p = "pds-banner", L = g > 1 ? `${p}-group--multiple` : null, b = {
4021
+ critical: `${p}--critical`,
4022
+ discovery: `${p}--discovery`,
4023
+ info: `${p}--info`,
4024
+ neutral: `${p}--neutral`,
4025
+ warning: `${p}--warning`
4026
+ }, M = r[0].type, D = M ? `${p}-group--${M}` : null, N = (y) => R2 - y, P = (y) => y === 0 ? 0 : -1, _ = () => {
4027
+ h(r[0].id), setTimeout(() => {
4028
+ o((y) => [
4029
+ ...y.slice(1),
4030
+ y[0]
4031
+ ]), h(null);
4032
+ }, G2);
4033
+ }, w = () => {
4034
+ C({
4035
+ [r[0].id]: R2 + 2,
4036
+ [r[g - 1].id]: R2 + 1
3804
4037
  }), setTimeout(() => {
3805
- p(i[0].id);
3806
- }, p4), setTimeout(() => {
3807
- m((N) => [
3808
- N[N.length - 1],
3809
- ...N.slice(0, N.length - 1)
3810
- ]), p(null), M({});
3811
- }, q2);
3812
- }, T = (N, C) => {
3813
- const { iconName: U, id: A, isDismissible: K, message: F, onDismiss: e2, type: W } = N, t2 = W === "critical" ? "alert" : "status", J = `${c[W]}: `, d2 = (m2) => {
3814
- m2.preventDefault(), d(A), setTimeout(() => {
3815
- e2?.(), d(null), m((a2) => a2.filter(
3816
- (Z) => Z.id !== A
4038
+ h(r[0].id);
4039
+ }, $4), setTimeout(() => {
4040
+ o((y) => [
4041
+ y[y.length - 1],
4042
+ ...y.slice(0, y.length - 1)
4043
+ ]), h(null), C({});
4044
+ }, G2);
4045
+ }, S = (y, k) => {
4046
+ const { iconName: R, id: F, isDismissible: Y, message: q, onDismiss: i2, type: Z } = y, n2 = Z === "critical" ? "alert" : "status", U = `${s[Z]}: `, r2 = (o2) => {
4047
+ o2.preventDefault(), d(F), setTimeout(() => {
4048
+ i2?.(), d(null), o((s2) => s2.filter(
4049
+ (B) => B.id !== F
3817
4050
  ));
3818
- }, q2);
3819
- }, l2 = g[A] ?? k(C);
4051
+ }, G2);
4052
+ }, Q = f[F] ?? N(k);
3820
4053
  return /* @__PURE__ */ e.createElement(
3821
4054
  "div",
3822
4055
  {
3823
- key: A,
3824
- className: b([
3825
- z,
3826
- y[W],
3827
- h === A ? `${z}--fading` : null,
3828
- f === A ? `${z}--dismissing` : null
4056
+ key: F,
4057
+ className: v([
4058
+ p,
4059
+ b[Z],
4060
+ m === F ? `${p}--fading` : null,
4061
+ z === F ? `${p}--dismissing` : null
3829
4062
  ]),
3830
- id: A,
3831
- role: t2,
3832
- style: { zIndex: l2 }
4063
+ id: F,
4064
+ role: n2,
4065
+ style: { zIndex: Q }
3833
4066
  },
3834
- /* @__PURE__ */ e.createElement("div", { className: `${z}__content` }, /* @__PURE__ */ e.createElement(
3835
- V,
4067
+ /* @__PURE__ */ e.createElement("div", { className: `${p}__content` }, /* @__PURE__ */ e.createElement(
4068
+ A,
3836
4069
  {
3837
- className: `${z}__icon ${z}__icon--${N.type}`,
3838
- iconName: W === "neutral" ? U : u4[W],
4070
+ className: `${p}__icon ${p}__icon--${y.type}`,
4071
+ iconName: Z === "neutral" ? R : y4[Z],
3839
4072
  iconSize: "m"
3840
4073
  }
3841
- ), /* @__PURE__ */ e.createElement("div", { className: `${z}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, J, " "), F)),
3842
- K && /* @__PURE__ */ e.createElement(
4074
+ ), /* @__PURE__ */ e.createElement("div", { className: `${p}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, U, " "), q)),
4075
+ Y && /* @__PURE__ */ e.createElement(
3843
4076
  "button",
3844
4077
  {
3845
- className: `${z}__dismiss-button`,
3846
- onClick: d2,
3847
- tabIndex: S(C),
4078
+ className: `${p}__dismiss-button`,
4079
+ onClick: r2,
4080
+ tabIndex: P(k),
3848
4081
  type: "button"
3849
4082
  },
3850
- l
4083
+ a
3851
4084
  )
3852
4085
  );
3853
4086
  };
3854
4087
  return /* @__PURE__ */ e.createElement(
3855
4088
  "div",
3856
4089
  {
3857
- className: b([
3858
- `${z}-group`,
3859
- _,
4090
+ className: v([
4091
+ `${p}-group`,
4092
+ D,
3860
4093
  L,
3861
- a ?? ""
4094
+ l ?? ""
3862
4095
  ]),
3863
4096
  ...n
3864
4097
  },
3865
- o > 1 ? /* @__PURE__ */ e.createElement("div", { className: `${z}__navigation` }, /* @__PURE__ */ e.createElement(
3866
- _2,
4098
+ g > 1 ? /* @__PURE__ */ e.createElement("div", { className: `${p}__navigation` }, /* @__PURE__ */ e.createElement(
4099
+ I2,
3867
4100
  {
3868
- ariaLabel: r,
3869
- className: `${z}__nav-button ${z}__nav-button--prev`,
4101
+ ariaLabel: i,
4102
+ className: `${p}__nav-button ${p}__nav-button--prev`,
3870
4103
  iconName: "angleLeft",
3871
- onClick: v,
4104
+ onClick: w,
3872
4105
  size: "m"
3873
4106
  }
3874
4107
  ), /* @__PURE__ */ e.createElement(
3875
- _2,
4108
+ I2,
3876
4109
  {
3877
- ariaLabel: s,
3878
- className: `${z}__nav-button ${z}__nav-button--next`,
4110
+ ariaLabel: c,
4111
+ className: `${p}__nav-button ${p}__nav-button--next`,
3879
4112
  iconName: "angleRight",
3880
- onClick: x,
4113
+ onClick: _,
3881
4114
  size: "m"
3882
4115
  }
3883
- ), i.map((N, C) => T(N, C))) : T(i[0], 0)
4116
+ ), r.map((y, k) => S(y, k))) : S(r[0], 0)
3884
4117
  );
3885
- }, U2 = {
4118
+ }, W2 = {
3886
4119
  info: "circleInfo",
3887
4120
  warning: "triangleExclamation",
3888
4121
  success: "circleCheck",
3889
4122
  critical: "diamondExclamation"
3890
- }, A4 = ({
4123
+ }, X4 = ({
3891
4124
  className: t,
3892
- message: a,
3893
- title: l,
3894
- type: s,
3895
- typeLabels: r = {
4125
+ message: l,
4126
+ title: a,
4127
+ type: c,
4128
+ typeLabels: i = {
3896
4129
  ...Q2,
3897
4130
  working: "Working"
3898
4131
  },
3899
- ...c
4132
+ ...s
3900
4133
  }) => {
3901
- const n = "pds-inline-message", i = {
4134
+ const n = "pds-inline-message", r = {
3902
4135
  error: `${n}--error`,
3903
4136
  success: `${n}--success`,
3904
4137
  warning: `${n}--warning`,
3905
4138
  info: `${n}--info`,
3906
4139
  critical: `${n}--critical`,
3907
4140
  working: `${n}--working`
3908
- }, m = s === "critical" ? "alert" : "status", h = `${r[s]}: `, p = typeof a == "string" ? /* @__PURE__ */ e.createElement("p", null, a) : a;
4141
+ }, o = c === "critical" ? "alert" : "status", m = `${i[c]}: `, h = typeof l == "string" ? /* @__PURE__ */ e.createElement("p", null, l) : l;
3909
4142
  return /* @__PURE__ */ e.createElement(
3910
4143
  "div",
3911
4144
  {
3912
- className: b([n, i[s], t ?? ""]),
3913
- role: m,
3914
- ...c
4145
+ className: v([n, r[c], t ?? ""]),
4146
+ role: o,
4147
+ ...s
3915
4148
  },
3916
- /* @__PURE__ */ e.createElement("div", { className: `${n}__icon ${n}__icon-${s}` }, s === "working" ? /* @__PURE__ */ e.createElement(S2, { colorType: "monochromatic", size: "m" }) : /* @__PURE__ */ e.createElement(
3917
- V,
4149
+ /* @__PURE__ */ e.createElement("div", { className: `${n}__icon ${n}__icon-${c}` }, c === "working" ? /* @__PURE__ */ e.createElement(k2, { colorType: "monochromatic", size: "m" }) : /* @__PURE__ */ e.createElement(
4150
+ A,
3918
4151
  {
3919
- iconName: `${s}` in U2 ? U2[s] : U2.info,
4152
+ iconName: `${c}` in W2 ? W2[c] : W2.info,
3920
4153
  iconSize: "m"
3921
4154
  }
3922
4155
  )),
3923
- /* @__PURE__ */ e.createElement("div", { className: `${n}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h), /* @__PURE__ */ e.createElement("div", { className: `${n}__title` }, l), /* @__PURE__ */ e.createElement("div", { className: `${n}__message` }, p))
4156
+ /* @__PURE__ */ e.createElement("div", { className: `${n}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, m), /* @__PURE__ */ e.createElement("div", { className: `${n}__title` }, a), /* @__PURE__ */ e.createElement("div", { className: `${n}__message` }, h))
3924
4157
  );
3925
- }, G2 = {
4158
+ }, U2 = {
3926
4159
  info: "circleInfo",
3927
4160
  warning: "triangleExclamation",
3928
4161
  success: "circleCheck",
3929
4162
  critical: "diamondExclamation",
3930
4163
  discovery: "squareQuestion"
3931
- }, R4 = ({
4164
+ }, Y4 = ({
3932
4165
  className: t,
3933
- ctaButton: a,
3934
- dismissLabel: l = "Dismiss",
3935
- id: s,
3936
- isDismissible: r,
3937
- message: c,
4166
+ ctaButton: l,
4167
+ dismissLabel: a = "Dismiss",
4168
+ id: c,
4169
+ isDismissible: i,
4170
+ message: s,
3938
4171
  onDismiss: n,
3939
- title: i,
3940
- type: m = "info",
3941
- typeLabels: h = Q2,
3942
- ...p
4172
+ title: r,
4173
+ type: o = "info",
4174
+ typeLabels: m = Q2,
4175
+ ...h
3943
4176
  }) => {
3944
- const f = Q(null), d = "pds-section-message", g = {
4177
+ const z = J(null), d = "pds-section-message", f = {
3945
4178
  error: `${d}--error`,
3946
4179
  success: `${d}--success`,
3947
4180
  warning: `${d}--warning`,
@@ -3950,575 +4183,605 @@ const t4 = {
3950
4183
  discovery: `${d}--discovery`,
3951
4184
  dismissing: `${d}--dismissing`,
3952
4185
  dismissed: `${d}--dismissed`
3953
- }, M = r ? `${d}--hasDismiss` : null, o = i ? `${d}--hasTitle` : null, z = m === "critical" ? "alert" : "status", L = `${h[m]}: `, y = typeof c == "string" ? /* @__PURE__ */ e.createElement("p", null, c) : c, w = () => {
3954
- f.current.addEventListener("animationend", _, {
4186
+ }, C = i ? `${d}--hasDismiss` : null, g = r ? `${d}--hasTitle` : null, p = o === "critical" ? "alert" : "status", L = `${m[o]}: `, b = typeof s == "string" ? /* @__PURE__ */ e.createElement("p", null, s) : s, M = () => {
4187
+ z.current.addEventListener("animationend", D, {
3955
4188
  once: !0
3956
4189
  });
3957
- }, _ = (S) => {
3958
- n(S, s);
3959
- }, k = () => {
3960
- w(), f.current.classList.toggle(g.dismissing), setTimeout(() => {
3961
- f.current.classList.toggle(g.dismissing), f.current.classList.toggle(g.dismissed);
4190
+ }, D = (P) => {
4191
+ n(P, c);
4192
+ }, N = () => {
4193
+ M(), z.current.classList.toggle(f.dismissing), setTimeout(() => {
4194
+ z.current.classList.toggle(f.dismissing), z.current.classList.toggle(f.dismissed);
3962
4195
  }, 400);
3963
4196
  };
3964
4197
  return /* @__PURE__ */ e.createElement(
3965
4198
  "div",
3966
4199
  {
3967
- ref: f,
3968
- className: b([
4200
+ ref: z,
4201
+ className: v([
3969
4202
  d,
3970
- g[m],
3971
- M,
3972
- o,
4203
+ f[o],
4204
+ C,
4205
+ g,
3973
4206
  t ?? ""
3974
4207
  ]),
3975
- id: s,
3976
- role: z,
3977
- ...p
4208
+ id: c,
4209
+ role: p,
4210
+ ...h
3978
4211
  },
3979
- /* @__PURE__ */ e.createElement("div", { className: `${d}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${d}__icon ${d}__icon-${m}` }, /* @__PURE__ */ e.createElement(
3980
- V,
4212
+ /* @__PURE__ */ e.createElement("div", { className: `${d}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${d}__icon ${d}__icon-${o}` }, /* @__PURE__ */ e.createElement(
4213
+ A,
3981
4214
  {
3982
- iconName: `${m}` in G2 ? G2[m] : G2.info,
4215
+ iconName: `${o}` in U2 ? U2[o] : U2.info,
3983
4216
  iconSize: "m"
3984
4217
  }
3985
- )), /* @__PURE__ */ e.createElement("div", { className: `${d}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, L), i && /* @__PURE__ */ e.createElement("div", { className: `${d}__title` }, i), /* @__PURE__ */ e.createElement("div", { className: `${d}__message` }, y))),
3986
- (a || r) && /* @__PURE__ */ e.createElement("div", { className: `${d}__actions` }, a && /* @__PURE__ */ e.createElement(
3987
- I2,
4218
+ )), /* @__PURE__ */ e.createElement("div", { className: `${d}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, L), r && /* @__PURE__ */ e.createElement("div", { className: `${d}__title` }, r), /* @__PURE__ */ e.createElement("div", { className: `${d}__message` }, b))),
4219
+ (l || i) && /* @__PURE__ */ e.createElement("div", { className: `${d}__actions` }, l && /* @__PURE__ */ e.createElement(
4220
+ B2,
3988
4221
  {
3989
- ...a,
4222
+ ...l,
3990
4223
  className: `${d}__cta`,
3991
4224
  size: "s",
3992
4225
  variant: "secondary"
3993
4226
  }
3994
- ), r && /* @__PURE__ */ e.createElement(
3995
- u1,
4227
+ ), i && /* @__PURE__ */ e.createElement(
4228
+ v1,
3996
4229
  {
3997
- ariaLabel: l,
4230
+ ariaLabel: a,
3998
4231
  className: `${d}__dismiss`,
3999
- onClick: k,
4232
+ onClick: N,
4000
4233
  size: "l"
4001
4234
  }
4002
4235
  ))
4003
4236
  );
4004
- }, z4 = {
4237
+ }, _4 = {
4005
4238
  info: "circleInfo",
4006
4239
  success: "circleCheck",
4007
4240
  warning: "triangleExclamation",
4008
4241
  critical: "diamondExclamation"
4009
- }, f4 = {
4242
+ }, D4 = {
4010
4243
  info: "Information",
4011
4244
  success: "Success",
4012
4245
  warning: "Warning",
4013
4246
  critical: "Critical",
4014
4247
  working: "Working..."
4015
- }, L4 = ({
4248
+ }, P4 = ({
4016
4249
  children: t,
4017
- className: a,
4018
- id: l,
4019
- type: s = "info",
4020
- typeLabels: r = f4
4250
+ className: l,
4251
+ id: a,
4252
+ type: c = "info",
4253
+ typeLabels: i = D4
4021
4254
  }) => {
4022
- const c = "pds-toast", n = {
4023
- critical: `${c}--critical`,
4024
- info: `${c}--info`,
4025
- success: `${c}--success`,
4026
- warning: `${c}--warning`,
4027
- working: `${c}--working`
4028
- }, i = `${r[s]} `;
4255
+ const s = "pds-toast", n = {
4256
+ critical: `${s}--critical`,
4257
+ info: `${s}--info`,
4258
+ success: `${s}--success`,
4259
+ warning: `${s}--warning`,
4260
+ working: `${s}--working`
4261
+ }, r = `${i[c]} `;
4029
4262
  return /* @__PURE__ */ e.createElement(
4030
4263
  "div",
4031
4264
  {
4032
- className: b([c, n[s], a]),
4033
- id: l
4265
+ className: v([s, n[c], l]),
4266
+ id: a
4034
4267
  },
4035
- /* @__PURE__ */ e.createElement("div", { className: `${c}__icon-container` }, s === "working" ? /* @__PURE__ */ e.createElement(S2, { colorType: "monochromatic-reverse", size: "l" }) : /* @__PURE__ */ e.createElement(
4036
- V,
4268
+ /* @__PURE__ */ e.createElement("div", { className: `${s}__icon-container` }, c === "working" ? /* @__PURE__ */ e.createElement(k2, { colorType: "monochromatic-reverse", size: "l" }) : /* @__PURE__ */ e.createElement(
4269
+ A,
4037
4270
  {
4038
- className: `${c}__icon ${c}__icon--${s}`,
4039
- iconName: z4[s],
4271
+ className: `${s}__icon ${s}__icon--${c}`,
4272
+ iconName: _4[c],
4040
4273
  iconSize: "m"
4041
4274
  }
4042
4275
  )),
4043
- /* @__PURE__ */ e.createElement("div", { className: `${c}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, i), t)
4276
+ /* @__PURE__ */ e.createElement("div", { className: `${s}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, r), t)
4044
4277
  );
4045
- }, C4 = ({
4278
+ }, k4 = ({
4046
4279
  ariaLabel: t,
4047
- closeToast: a
4280
+ closeToast: l
4048
4281
  }) => /* @__PURE__ */ e.createElement(
4049
- u1,
4282
+ v1,
4050
4283
  {
4051
4284
  ariaLabel: t || "Close",
4052
4285
  className: "pds-toaster__close-button",
4053
- onClick: () => a(null),
4286
+ onClick: () => l(null),
4054
4287
  size: "l"
4055
4288
  }
4056
- ), B4 = ({
4289
+ ), Q4 = ({
4057
4290
  autoCloseDuration: t = 5e3,
4058
- className: a,
4059
- limit: l = 5,
4060
- position: s = "bottom-right"
4291
+ className: l,
4292
+ limit: a = 5,
4293
+ position: c = "bottom-right"
4061
4294
  }) => {
4062
- const c = b(["pds-toaster", a]);
4295
+ const s = v(["pds-toaster", l]);
4063
4296
  return /* @__PURE__ */ e.createElement(
4064
- N1,
4297
+ A1,
4065
4298
  {
4066
4299
  newestOnTop: !0,
4067
4300
  autoClose: t,
4068
- className: c,
4069
- closeButton: C4,
4301
+ className: s,
4302
+ closeButton: k4,
4070
4303
  draggable: !1,
4071
4304
  icon: !1,
4072
- limit: l,
4073
- position: s,
4305
+ limit: a,
4306
+ position: c,
4074
4307
  role: "status",
4075
- transition: S1
4308
+ transition: O1
4076
4309
  }
4077
4310
  );
4078
4311
  };
4079
- var v4 = /* @__PURE__ */ ((t) => (t.Critical = "critical", t.Info = "info", t.Success = "success", t.Warning = "warning", t.Working = "working", t))(v4 || {});
4080
- const O4 = () => {
4081
- const t = (l, s, r = {}) => {
4082
- const c = /* @__PURE__ */ e.createElement(L4, { type: l }, s);
4312
+ var x4 = /* @__PURE__ */ ((t) => (t.Critical = "critical", t.Info = "info", t.Success = "success", t.Warning = "warning", t.Working = "working", t))(x4 || {});
4313
+ const J4 = () => {
4314
+ const t = (a, c, i = {}) => {
4315
+ const s = /* @__PURE__ */ e.createElement(P4, { type: a }, c);
4083
4316
  let n = {
4084
- ...r
4317
+ ...i
4085
4318
  };
4086
- return l === "critical" && (n = {
4319
+ return a === "critical" && (n = {
4087
4320
  ...n,
4088
4321
  autoClose: !1,
4089
4322
  role: "alert"
4090
- }), l === "warning" && (n = {
4323
+ }), a === "warning" && (n = {
4091
4324
  ...n,
4092
4325
  autoClose: !1
4093
- }), l === "working" && (n = {
4326
+ }), a === "working" && (n = {
4094
4327
  ...n,
4095
4328
  autoClose: !1,
4096
4329
  closeButton: !1,
4097
4330
  closeOnClick: !1
4098
- }), e1(c, n);
4099
- }, a = I1({
4331
+ }), e1(s, n);
4332
+ }, l = H1({
4100
4333
  collapse: !1,
4101
4334
  enter: "pds-toast--bounceInPlace",
4102
4335
  exit: "pds-toast--slideOut"
4103
4336
  });
4104
- return [t, e1, a];
4105
- }, H4 = ({
4337
+ return [t, e1, l];
4338
+ }, e0 = ({
4106
4339
  children: t,
4107
- className: a,
4108
- expandButtonAriaLabel: l,
4109
- isExpandable: s = !1,
4110
- ...r
4340
+ className: l,
4341
+ expandButtonAriaLabel: a,
4342
+ isExpandable: c = !1,
4343
+ ...i
4111
4344
  }) => {
4112
- const c = "pds-panel-row", [n, i] = O(!1), m = Q(null), h = Q(null), p = x2(t), f = p["items-left"], d = p["items-right"], g = p["items-below"], M = () => {
4113
- const o = h.current, z = m.current;
4114
- if (!o || !z) return;
4345
+ const s = "pds-panel-row", [n, r] = H(!1), o = J(null), m = J(null), h = j2(t), z = h["items-left"], d = h["items-right"], f = h["items-below"], C = () => {
4346
+ const g = m.current, p = o.current;
4347
+ if (!g || !p) return;
4115
4348
  const L = !n;
4116
- i(L), L ? (Object.assign(o.style, {
4349
+ r(L), L ? (Object.assign(g.style, {
4117
4350
  display: "block",
4118
4351
  height: "auto",
4119
4352
  opacity: "1"
4120
- }), z.classList.add("is-expanded")) : (Object.assign(o.style, {
4353
+ }), p.classList.add("is-expanded")) : (Object.assign(g.style, {
4121
4354
  height: "0",
4122
4355
  opacity: "0",
4123
4356
  display: "none"
4124
- }), z.classList.remove("is-expanded"));
4357
+ }), p.classList.remove("is-expanded"));
4125
4358
  };
4126
4359
  return /* @__PURE__ */ e.createElement(
4127
4360
  "li",
4128
4361
  {
4129
- className: b([c, a ?? ""]),
4130
- ...r,
4131
- ref: m
4362
+ className: v([s, l ?? ""]),
4363
+ ...i,
4364
+ ref: o
4132
4365
  },
4133
4366
  /* @__PURE__ */ e.createElement(
4134
4367
  "div",
4135
4368
  {
4136
- className: b([
4137
- `${c}__main`,
4138
- s ? "is-expandable" : ""
4369
+ className: v([
4370
+ `${s}__main`,
4371
+ c ? "is-expandable" : ""
4139
4372
  ])
4140
4373
  },
4141
- f && /* @__PURE__ */ e.createElement("div", { className: `${c}__items ${c}__items--left` }, f),
4142
- d && /* @__PURE__ */ e.createElement("div", { className: `${c}__items ${c}__items--right` }, d),
4143
- s && /* @__PURE__ */ e.createElement(
4374
+ z && /* @__PURE__ */ e.createElement("div", { className: `${s}__items ${s}__items--left` }, z),
4375
+ d && /* @__PURE__ */ e.createElement("div", { className: `${s}__items ${s}__items--right` }, d),
4376
+ c && /* @__PURE__ */ e.createElement(
4144
4377
  "button",
4145
4378
  {
4146
4379
  "aria-expanded": n,
4147
- "aria-label": l,
4148
- className: `${c}__expand-button`,
4149
- onClick: M
4380
+ "aria-label": a,
4381
+ className: `${s}__expand-button`,
4382
+ onClick: C
4150
4383
  },
4151
4384
  /* @__PURE__ */ e.createElement(
4152
- V,
4385
+ A,
4153
4386
  {
4154
- className: `${c}__expand-icon ${n ? "rotated" : ""}`,
4387
+ className: `${s}__expand-icon ${n ? "rotated" : ""}`,
4155
4388
  iconName: "angleDown"
4156
4389
  }
4157
4390
  )
4158
4391
  )
4159
4392
  ),
4160
- s && g && /* @__PURE__ */ e.createElement(
4393
+ c && f && /* @__PURE__ */ e.createElement(
4161
4394
  "div",
4162
4395
  {
4163
- ref: h,
4164
- className: `${c}__items ${c}__items--below`,
4396
+ ref: m,
4397
+ className: `${s}__items ${s}__items--below`,
4165
4398
  style: { display: "none", height: "0", opacity: "0" }
4166
4399
  },
4167
- /* @__PURE__ */ e.createElement("div", { className: `${c}__items-inside` }, g)
4400
+ /* @__PURE__ */ e.createElement("div", { className: `${s}__items-inside` }, f)
4168
4401
  )
4169
4402
  );
4170
- }, V4 = ({
4403
+ }, t0 = ({
4171
4404
  alt: t = "",
4172
- className: a,
4173
- height: l,
4174
- srcFallback: s,
4175
- srcWebp: r,
4176
- width: c,
4405
+ className: l,
4406
+ height: a,
4407
+ srcFallback: c,
4408
+ srcWebp: i,
4409
+ width: s,
4177
4410
  ...n
4178
4411
  }) => {
4179
- const i = "pds-picture";
4180
- return /* @__PURE__ */ e.createElement("picture", { className: b([i, a ?? ""]) }, /* @__PURE__ */ e.createElement("source", { srcSet: r, type: "image/webp" }), /* @__PURE__ */ e.createElement(
4412
+ const r = "pds-picture";
4413
+ return /* @__PURE__ */ e.createElement("picture", { className: v([r, l ?? ""]) }, /* @__PURE__ */ e.createElement("source", { srcSet: i, type: "image/webp" }), /* @__PURE__ */ e.createElement(
4181
4414
  "img",
4182
4415
  {
4183
4416
  alt: t,
4184
- className: `${i}__img`,
4185
- height: l,
4186
- src: s,
4187
- width: c,
4417
+ className: `${r}__img`,
4418
+ height: a,
4419
+ src: c,
4420
+ width: s,
4188
4421
  ...n
4189
4422
  }
4190
4423
  ));
4191
- }, F4 = ({
4424
+ }, s0 = ({
4192
4425
  className: t,
4193
- platform: a,
4194
- videoId: l,
4195
- videoTitle: s,
4196
- ...r
4426
+ destination: l = "main",
4427
+ text: a = "Skip to main content",
4428
+ ...c
4429
+ }) => /* @__PURE__ */ e.createElement(
4430
+ "a",
4431
+ {
4432
+ className: v(["pds-skiplink", t]),
4433
+ href: `#${l}`,
4434
+ ...c
4435
+ },
4436
+ a
4437
+ ), c0 = ({
4438
+ className: t,
4439
+ label: l = null,
4440
+ size: a = "s",
4441
+ type: c = "neutral",
4442
+ ...i
4443
+ }) => {
4444
+ const s = "pds-status-indicator", n = `${s}--${c}`, r = a !== "s" ? `${s}--${a}` : null;
4445
+ return /* @__PURE__ */ e.createElement(
4446
+ "div",
4447
+ {
4448
+ className: v([
4449
+ s,
4450
+ n,
4451
+ r,
4452
+ t ?? ""
4453
+ ]),
4454
+ ...i
4455
+ },
4456
+ c === "working" ? /* @__PURE__ */ e.createElement(
4457
+ k2,
4458
+ {
4459
+ className: `${s}__spinner`,
4460
+ colorType: "monochromatic",
4461
+ size: "m"
4462
+ }
4463
+ ) : /* @__PURE__ */ e.createElement("span", { "aria-hidden": "true", className: `${s}__icon`, role: "img" }),
4464
+ l && /* @__PURE__ */ e.createElement("span", { className: "pds-status-indicator__label" }, l)
4465
+ );
4466
+ }, a0 = ({
4467
+ className: t,
4468
+ platform: l,
4469
+ videoId: a,
4470
+ videoTitle: c,
4471
+ ...i
4197
4472
  }) => {
4198
- const c = "pds-video-embed", n = /* @__PURE__ */ e.createElement(
4473
+ const s = "pds-video-embed", n = /* @__PURE__ */ e.createElement(
4199
4474
  "iframe",
4200
4475
  {
4201
4476
  allow: "autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media",
4202
- src: `https://fast.wistia.net/embed/iframe/${l}`,
4203
- title: `Wistia video player${s ? `: ${s}` : ""}`
4477
+ src: `https://fast.wistia.net/embed/iframe/${a}`,
4478
+ title: `Wistia video player${c ? `: ${c}` : ""}`
4204
4479
  }
4205
- ), i = /* @__PURE__ */ e.createElement(
4480
+ ), r = /* @__PURE__ */ e.createElement(
4206
4481
  "iframe",
4207
4482
  {
4208
4483
  allow: "autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media",
4209
- src: `https://player.vimeo.com/video/${l}`,
4210
- title: `Vimeo video player${s ? `: ${s}` : ""}`
4484
+ src: `https://player.vimeo.com/video/${a}`,
4485
+ title: `Vimeo video player${c ? `: ${c}` : ""}`
4211
4486
  }
4212
- ), m = /* @__PURE__ */ e.createElement(
4487
+ ), o = /* @__PURE__ */ e.createElement(
4213
4488
  "iframe",
4214
4489
  {
4215
4490
  allowFullScreen: !0,
4216
4491
  allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",
4217
4492
  referrerPolicy: "strict-origin-when-cross-origin",
4218
- src: `https://www.youtube.com/embed/${l}`,
4219
- title: `YouTube video player${s ? `: ${s}` : ""}`
4493
+ src: `https://www.youtube.com/embed/${a}`,
4494
+ title: `YouTube video player${c ? `: ${c}` : ""}`
4220
4495
  }
4221
4496
  );
4222
- let h;
4223
- switch (a) {
4497
+ let m;
4498
+ switch (l) {
4224
4499
  case "vimeo":
4225
- h = i;
4500
+ m = r;
4226
4501
  break;
4227
4502
  case "wistia":
4228
- h = n;
4503
+ m = n;
4229
4504
  break;
4230
4505
  case "youtube":
4231
4506
  default:
4232
- h = m;
4507
+ m = o;
4233
4508
  break;
4234
4509
  }
4235
- return /* @__PURE__ */ e.createElement("div", { className: b([c, t ?? ""]), ...r }, h);
4236
- }, w4 = ({
4510
+ return /* @__PURE__ */ e.createElement("div", { className: v([s, t ?? ""]), ...i }, m);
4511
+ }, l0 = ({
4237
4512
  className: t,
4238
- color: a = "transparent",
4239
- hasStatusIndicator: l = !1,
4240
- label: s,
4241
- statusIndicatorText: r = "Status indicator: ",
4242
- statusType: c,
4243
- ...n
4513
+ option: l,
4514
+ ...a
4244
4515
  }) => {
4245
- const i = "pds-status-badge", m = `${i}--${a}`, h = `${i}__status`, p = c ? `${h}--${c}` : null;
4246
- return /* @__PURE__ */ e.createElement(
4247
- "div",
4248
- {
4249
- className: b([i, m, t ?? ""]),
4250
- ...n
4251
- },
4252
- l === !0 && /* @__PURE__ */ e.createElement("span", { className: b([h, p]) }, c && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, r, " ", c)),
4253
- /* @__PURE__ */ e.createElement("span", { className: `${i}__label` }, s)
4254
- );
4255
- }, Z4 = ({
4256
- className: t,
4257
- option: a,
4258
- ...l
4259
- }) => {
4260
- const s = "pds-site-option-display", r = a.type ? i4[a.type] : "bolt", c = Q(null), [n] = j1(c), i = n.width / 16 - 7.5;
4261
- let m, h;
4262
- a.status === "active" && (m = "Active", h = "success"), a.status === "frozen" && (m = "Frozen", h = "frozen"), a.status === "restricted" && (m = "Restricted", h = "critical");
4263
- const p = /* @__PURE__ */ e.createElement(
4264
- w4,
4516
+ const c = "pds-site-option-display", i = l.type ? f4[l.type] : "bolt", s = J(null), [n] = R1(s), r = n.width / 16 - 7.5;
4517
+ let o, m;
4518
+ l.status === "active" && (o = "Active", m = "success"), l.status === "frozen" && (o = "Frozen", m = "frozen"), l.status === "restricted" && (o = "Restricted", m = "critical");
4519
+ const h = /* @__PURE__ */ e.createElement(
4520
+ G1,
4265
4521
  {
4266
4522
  hasStatusIndicator: !0,
4267
- label: m,
4268
- statusType: h
4523
+ label: o,
4524
+ statusType: m
4269
4525
  }
4270
4526
  );
4271
4527
  return /* @__PURE__ */ e.createElement(
4272
4528
  "div",
4273
4529
  {
4274
- ref: c,
4275
- className: b([s, t ?? ""]),
4276
- title: a.name,
4277
- ...l
4530
+ ref: s,
4531
+ className: v([c, t ?? ""]),
4532
+ title: l.name,
4533
+ ...a
4278
4534
  },
4279
- /* @__PURE__ */ e.createElement("div", { className: `${s}__inner`, style: { pointerEvents: "none" } }, /* @__PURE__ */ e.createElement("div", { className: `${s}__icon` }, /* @__PURE__ */ e.createElement(V, { iconName: r })), /* @__PURE__ */ e.createElement(
4535
+ /* @__PURE__ */ e.createElement("div", { className: `${c}__inner`, style: { pointerEvents: "none" } }, /* @__PURE__ */ e.createElement("div", { className: `${c}__icon` }, /* @__PURE__ */ e.createElement(A, { iconName: i })), /* @__PURE__ */ e.createElement(
4280
4536
  "div",
4281
4537
  {
4282
- className: `${s}__label`,
4283
- style: { maxWidth: `${i}rem` }
4538
+ className: `${c}__label`,
4539
+ style: { maxWidth: `${r}rem` }
4284
4540
  },
4285
- a.name
4541
+ l.name
4286
4542
  )),
4287
- /* @__PURE__ */ e.createElement("div", { className: `${s}__status`, style: { pointerEvents: "none" } }, p)
4543
+ /* @__PURE__ */ e.createElement("div", { className: `${c}__status`, style: { pointerEvents: "none" } }, h)
4288
4544
  );
4289
- }, q4 = ({
4545
+ }, i0 = ({
4290
4546
  children: t,
4291
- className: a,
4292
- width: l = "standard",
4293
- ...s
4547
+ className: l,
4548
+ width: a = "standard",
4549
+ ...c
4294
4550
  }) => {
4295
- const r = "pds-container", c = l !== "standard" ? `${r}--${l}` : null;
4551
+ const i = "pds-container", s = a !== "standard" ? `${i}--${a}` : null;
4296
4552
  return /* @__PURE__ */ e.createElement(
4297
4553
  "div",
4298
4554
  {
4299
- className: b([r, c, a ?? ""]),
4300
- ...s
4555
+ className: v([i, s, l ?? ""]),
4556
+ ...c
4301
4557
  },
4302
4558
  t
4303
4559
  );
4304
- }, U4 = ({
4560
+ }, n0 = ({
4305
4561
  children: t,
4306
- className: a,
4307
- sidebarMinWidth: l = 14.5,
4308
- sidebarWidth: s = "18%",
4309
- ...r
4562
+ className: l,
4563
+ sidebarMinWidth: a = 14.5,
4564
+ sidebarWidth: c = "18%",
4565
+ ...i
4310
4566
  }) => {
4311
- let c = !1;
4312
- const n = P2(b2);
4313
- n && (c = n.isMobile);
4314
- const i = "pds-docs-layout", m = c ? `${i}--isMobile` : null, h = {
4315
- width: s,
4316
- minWidth: `${l}rem`
4317
- }, p = x2(t), f = p.__unslotted || p.content, d = p.sidebar, g = /* @__PURE__ */ e.createElement(e.Fragment, null, d && /* @__PURE__ */ e.createElement("aside", { className: `${i}__sidebar` }, d), /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, f)), M = /* @__PURE__ */ e.createElement(e.Fragment, null, d && /* @__PURE__ */ e.createElement("aside", { className: `${i}__sidebar`, style: h }, /* @__PURE__ */ e.createElement("div", { className: `${i}__sidebar-inner` }, d)), /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, f));
4567
+ let s = !1;
4568
+ const n = D2(x2);
4569
+ n && (s = n.isMobile);
4570
+ const r = "pds-docs-layout", o = s ? `${r}--isMobile` : null, m = {
4571
+ width: c,
4572
+ minWidth: `${a}rem`
4573
+ }, h = j2(t), z = h.__unslotted || h.content, d = h.sidebar, f = /* @__PURE__ */ e.createElement(e.Fragment, null, d && /* @__PURE__ */ e.createElement("aside", { className: `${r}__sidebar` }, d), /* @__PURE__ */ e.createElement("div", { className: `${r}__content` }, z)), C = /* @__PURE__ */ e.createElement(e.Fragment, null, d && /* @__PURE__ */ e.createElement("aside", { className: `${r}__sidebar`, style: m }, /* @__PURE__ */ e.createElement("div", { className: `${r}__sidebar-inner` }, d)), /* @__PURE__ */ e.createElement("div", { className: `${r}__content` }, z));
4318
4574
  return /* @__PURE__ */ e.createElement(
4319
4575
  "div",
4320
4576
  {
4321
- className: b([
4322
- i,
4323
- m,
4577
+ className: v([
4578
+ r,
4579
+ o,
4324
4580
  "pds-container pds-container--x-wide",
4325
- a ?? ""
4581
+ l ?? ""
4326
4582
  ]),
4327
- ...r
4583
+ ...i
4328
4584
  },
4329
- c ? g : M
4585
+ s ? f : C
4330
4586
  );
4331
- }, G4 = ({
4587
+ }, r0 = ({
4332
4588
  alignContent: t = "flex-start",
4333
- alignItems: a = "stretch",
4334
- children: l,
4335
- className: s,
4336
- flexDirection: r = "row",
4337
- flexWrap: c = "nowrap",
4589
+ alignItems: l = "stretch",
4590
+ children: a,
4591
+ className: c,
4592
+ flexDirection: i = "row",
4593
+ flexWrap: s = "nowrap",
4338
4594
  gap: n = "standard",
4339
- justifyContent: i = "flex-start",
4340
- mobileAlignContent: m,
4341
- mobileAlignItems: h,
4342
- mobileFlexDirection: p = "column",
4343
- mobileFlexWrap: f,
4595
+ justifyContent: r = "flex-start",
4596
+ mobileAlignContent: o,
4597
+ mobileAlignItems: m,
4598
+ mobileFlexDirection: h = "column",
4599
+ mobileFlexWrap: z,
4344
4600
  mobileGap: d,
4345
- mobileJustifyContent: g,
4346
- ...M
4601
+ mobileJustifyContent: f,
4602
+ ...C
4347
4603
  }) => {
4348
- let z = p1() <= 640;
4349
- const L = P2(b2);
4350
- L && (z = L.isMobile);
4351
- const y = "pds-flex", w = `${y}-container`, _ = z ? `${w}--mobile` : null;
4352
- let k = null;
4353
- z ? k = `${y}-direction--${p}` : r !== "row" && (k = `${y}-direction--${r}`);
4354
- let S = null;
4355
- z ? f ? f !== "nowrap" && (S = `${y}-wrap--${f}`) : c !== "nowrap" && (S = `${y}-wrap--${c}`) : c !== "nowrap" && (S = `${y}-wrap--${c}`);
4356
- let x = null;
4357
- z ? g ? g !== "flex-start" && (x = `${y}-justify--${g}`) : i !== "flex-start" && (x = `${y}-justify--${i}`) : i !== "flex-start" && (x = `${y}-justify--${i}`);
4358
- let v = null;
4359
- z ? h ? h !== "stretch" && (v = `${y}-align-items--${h}`) : a !== "stretch" && (v = `${y}-align-items--${a}`) : a !== "stretch" && (v = `${y}-align-items--${a}`);
4360
- let T = null;
4361
- z ? m ? m !== "flex-start" && (T = `${y}-align-content--${m}`) : t !== "flex-start" && (T = `${y}-align-content--${t}`) : t !== "flex-start" && (T = `${y}-align-content--${t}`);
4604
+ let p = w1() <= 640;
4605
+ const L = D2(x2);
4606
+ L && (p = L.isMobile);
4607
+ const b = "pds-flex", M = `${b}-container`, D = p ? `${M}--mobile` : null;
4362
4608
  let N = null;
4363
- return z ? d ? d !== "none" && (N = `${y}-gap--${d}`) : n !== "none" && (N = `${y}-gap--${n}`) : n !== "none" && (N = `${y}-gap--${n}`), /* @__PURE__ */ e.createElement(
4609
+ p ? N = `${b}-direction--${h}` : i !== "row" && (N = `${b}-direction--${i}`);
4610
+ let P = null;
4611
+ p ? z ? z !== "nowrap" && (P = `${b}-wrap--${z}`) : s !== "nowrap" && (P = `${b}-wrap--${s}`) : s !== "nowrap" && (P = `${b}-wrap--${s}`);
4612
+ let _ = null;
4613
+ p ? f ? f !== "flex-start" && (_ = `${b}-justify--${f}`) : r !== "flex-start" && (_ = `${b}-justify--${r}`) : r !== "flex-start" && (_ = `${b}-justify--${r}`);
4614
+ let w = null;
4615
+ p ? m ? m !== "stretch" && (w = `${b}-align-items--${m}`) : l !== "stretch" && (w = `${b}-align-items--${l}`) : l !== "stretch" && (w = `${b}-align-items--${l}`);
4616
+ let S = null;
4617
+ p ? o ? o !== "flex-start" && (S = `${b}-align-content--${o}`) : t !== "flex-start" && (S = `${b}-align-content--${t}`) : t !== "flex-start" && (S = `${b}-align-content--${t}`);
4618
+ let y = null;
4619
+ return p ? d ? d !== "none" && (y = `${b}-gap--${d}`) : n !== "none" && (y = `${b}-gap--${n}`) : n !== "none" && (y = `${b}-gap--${n}`), /* @__PURE__ */ e.createElement(
4364
4620
  "div",
4365
4621
  {
4366
- className: b([
4367
- w,
4622
+ className: v([
4623
+ M,
4624
+ D,
4625
+ N,
4626
+ P,
4368
4627
  _,
4369
- k,
4628
+ w,
4370
4629
  S,
4371
- x,
4372
- v,
4373
- T,
4374
- N,
4375
- s ?? ""
4630
+ y,
4631
+ c ?? ""
4376
4632
  ]),
4377
- ...M
4633
+ ...C
4378
4634
  },
4379
- l
4635
+ a
4380
4636
  );
4381
- }, K4 = ({
4637
+ }, o0 = ({
4382
4638
  children: t,
4383
- mobileMenuMaxWidth: a = 640
4384
- }) => /* @__PURE__ */ e.createElement(r4, { mobileMenuMaxWidth: a }, /* @__PURE__ */ e.createElement(G1, null, t)), W4 = ({
4639
+ mobileMenuMaxWidth: l = 640
4640
+ }) => /* @__PURE__ */ e.createElement(L4, { mobileMenuMaxWidth: l }, /* @__PURE__ */ e.createElement(c4, null, t)), m0 = ({
4385
4641
  children: t,
4386
- className: a,
4387
- gridGap: l = "standard",
4388
- verticalAlign: s = "start",
4389
- ...r
4642
+ className: l,
4643
+ gridGap: a = "standard",
4644
+ verticalAlign: c = "start",
4645
+ ...i
4390
4646
  }) => {
4391
- const c = "pds-three-item-layout", n = l === "standard" ? "pds-grid" : `pds-grid pds-grid--${l}`, i = `${c}--${s}`, m = x2(t), h = [
4392
- m["first-item"],
4393
- m["second-item"],
4394
- m["third-item"]
4647
+ const s = "pds-three-item-layout", n = a === "standard" ? "pds-grid" : `pds-grid pds-grid--${a}`, r = `${s}--${c}`, o = j2(t), m = [
4648
+ o["first-item"],
4649
+ o["second-item"],
4650
+ o["third-item"]
4395
4651
  ];
4396
4652
  return /* @__PURE__ */ e.createElement(
4397
4653
  "div",
4398
4654
  {
4399
- className: b([
4400
- c,
4655
+ className: v([
4656
+ s,
4401
4657
  n,
4402
- i,
4403
- a
4658
+ r,
4659
+ l
4404
4660
  ]),
4405
- ...r
4661
+ ...i
4406
4662
  },
4407
- h.map((p, f) => /* @__PURE__ */ e.createElement(
4663
+ m.map((h, z) => /* @__PURE__ */ e.createElement(
4408
4664
  "div",
4409
4665
  {
4410
- key: f,
4666
+ key: z,
4411
4667
  className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
4412
4668
  },
4413
- p
4669
+ h
4414
4670
  ))
4415
4671
  );
4416
- }, X4 = ({
4672
+ }, d0 = ({
4417
4673
  children: t,
4418
- className: a,
4419
- gridGap: l = "standard",
4420
- layoutVariant: s = "equal",
4421
- verticalAlign: r = "start",
4422
- ...c
4674
+ className: l,
4675
+ gridGap: a = "standard",
4676
+ layoutVariant: c = "equal",
4677
+ verticalAlign: i = "start",
4678
+ ...s
4423
4679
  }) => {
4424
- const n = "pds-two-item-layout", i = l === "standard" ? "pds-grid" : `pds-grid pds-grid--${l}`, m = `${n}--${r}`, h = ["pds-grid-item--md-6"], p = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], f = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], d = ["pds-grid-item", "pds-grid-item--sm-4"];
4425
- let g, M;
4426
- switch (s) {
4680
+ const n = "pds-two-item-layout", r = a === "standard" ? "pds-grid" : `pds-grid pds-grid--${a}`, o = `${n}--${i}`, m = ["pds-grid-item--md-6"], h = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], z = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], d = ["pds-grid-item", "pds-grid-item--sm-4"];
4681
+ let f, C;
4682
+ switch (c) {
4427
4683
  case "equal":
4428
- g = d.concat(h), M = d.concat(h);
4684
+ f = d.concat(m), C = d.concat(m);
4429
4685
  break;
4430
4686
  case "one-third-start":
4431
- g = d.concat(p), M = d.concat(f);
4687
+ f = d.concat(h), C = d.concat(z);
4432
4688
  break;
4433
4689
  case "one-third-end":
4434
- g = d.concat(f), M = d.concat(p);
4690
+ f = d.concat(z), C = d.concat(h);
4435
4691
  }
4436
- const o = x2(t), z = o["first-item"], L = o["second-item"];
4692
+ const g = j2(t), p = g["first-item"], L = g["second-item"];
4437
4693
  return /* @__PURE__ */ e.createElement(
4438
4694
  "div",
4439
4695
  {
4440
- className: b([
4696
+ className: v([
4441
4697
  n,
4442
- i,
4443
- m,
4444
- a
4698
+ r,
4699
+ o,
4700
+ l
4445
4701
  ]),
4446
- ...c
4702
+ ...s
4447
4703
  },
4448
- /* @__PURE__ */ e.createElement("div", { className: g.join(" ").trim() }, z),
4449
- /* @__PURE__ */ e.createElement("div", { className: M.join(" ").trim() }, L)
4704
+ /* @__PURE__ */ e.createElement("div", { className: f.join(" ").trim() }, p),
4705
+ /* @__PURE__ */ e.createElement("div", { className: C.join(" ").trim() }, L)
4450
4706
  );
4451
- }, Y4 = () => {
4452
- const t = typeof window < "u", a = (r) => r >= B1 ? "xl" : r >= R1 ? "lg" : r >= A1 ? "md" : "sm", [l, s] = O(
4453
- t ? a(window.innerWidth) : "lg"
4707
+ }, h0 = () => {
4708
+ const t = typeof window < "u", l = (i) => i >= K1 ? "xl" : i >= U1 ? "lg" : i >= W1 ? "md" : "sm", [a, c] = H(
4709
+ t ? l(window.innerWidth) : "lg"
4454
4710
  );
4455
- return c2(() => {
4711
+ return l2(() => {
4456
4712
  if (!t) return;
4457
- const r = () => {
4458
- s(a(window.innerWidth));
4713
+ const i = () => {
4714
+ c(l(window.innerWidth));
4459
4715
  };
4460
- return r(), window.addEventListener("resize", r), () => {
4461
- window.removeEventListener("resize", r);
4716
+ return i(), window.addEventListener("resize", i), () => {
4717
+ window.removeEventListener("resize", i);
4462
4718
  };
4463
- }, []), l;
4464
- }, Q4 = (t) => {
4465
- const a = typeof window < "u", l = (c) => a ? window.matchMedia(c).matches : !1, [s, r] = O(l(t));
4466
- return c2(() => {
4467
- if (!a) return;
4468
- const c = window.matchMedia(t), n = () => {
4469
- r(c.matches);
4719
+ }, []), a;
4720
+ }, u0 = (t) => {
4721
+ const l = typeof window < "u", a = (s) => l ? window.matchMedia(s).matches : !1, [c, i] = H(a(t));
4722
+ return l2(() => {
4723
+ if (!l) return;
4724
+ const s = window.matchMedia(t), n = () => {
4725
+ i(s.matches);
4470
4726
  };
4471
- return r(c.matches), c.addEventListener ? (c.addEventListener("change", n), () => c.removeEventListener("change", n)) : (c.addListener(n), () => c.removeListener(n));
4472
- }, [t]), s;
4727
+ return i(s.matches), s.addEventListener ? (s.addEventListener("change", n), () => s.removeEventListener("change", n)) : (s.addListener(n), () => s.removeListener(n));
4728
+ }, [t]), c;
4473
4729
  };
4474
4730
  export {
4475
- T4 as Banner,
4476
- I2 as Button,
4477
- l4 as ButtonLink,
4478
- j4 as ButtonNav,
4479
- _4 as ClipboardButton,
4480
- u1 as CloseButton,
4481
- q4 as Container,
4482
- U4 as DocsLayout,
4483
- G4 as FlexContainer,
4484
- K4 as GlobalWrapper,
4485
- V as Icon,
4486
- _2 as IconButton,
4487
- A4 as InlineMessage,
4488
- o4 as MenuButton,
4489
- H4 as PanelRow,
4490
- V4 as Picture,
4491
- b2 as ResponsiveContext,
4492
- r4 as ResponsiveContextProvider,
4493
- N4 as SSOButton,
4494
- R4 as SectionMessage,
4495
- x4 as SegmentedButton,
4496
- Z4 as SiteOptionDisplay,
4497
- k4 as SitePlanLevelLabel,
4498
- i4 as SiteTypeIcon,
4499
- P4 as SiteTypeLabel,
4500
- S2 as Spinner,
4501
- d4 as SplitButton,
4731
+ A4 as Avatar,
4732
+ O4 as Badge,
4733
+ K4 as Banner,
4734
+ B2 as Button,
4735
+ g4 as ButtonLink,
4736
+ U4 as ButtonNav,
4737
+ H4 as ClipboardButton,
4738
+ v1 as CloseButton,
4739
+ i0 as Container,
4740
+ n0 as DocsLayout,
4741
+ r0 as FlexContainer,
4742
+ o0 as GlobalWrapper,
4743
+ A as Icon,
4744
+ I2 as IconButton,
4745
+ X4 as InlineMessage,
4746
+ C4 as MenuButton,
4747
+ e0 as PanelRow,
4748
+ t0 as Picture,
4749
+ x2 as ResponsiveContext,
4750
+ L4 as ResponsiveContextProvider,
4751
+ Z4 as SSOButton,
4752
+ Y4 as SectionMessage,
4753
+ F4 as SegmentedButton,
4754
+ l0 as SiteOptionDisplay,
4755
+ R4 as SitePlanLevelLabel,
4756
+ f4 as SiteTypeIcon,
4757
+ V4 as SiteTypeLabel,
4758
+ s0 as Skiplink,
4759
+ k2 as Spinner,
4760
+ v4 as SplitButton,
4761
+ G1 as StatusBadge,
4762
+ c0 as StatusIndicator,
4502
4763
  Q2 as StatusTypeLabels,
4503
- I4 as TagsInput,
4504
4764
  d1 as Tally,
4505
- W4 as ThreeItemLayout,
4506
- L4 as Toast,
4507
- v4 as ToastType,
4508
- B4 as Toaster,
4509
- X4 as TwoItemLayout,
4510
- S4 as UtilityButton,
4511
- F4 as VideoEmbed,
4512
- $4 as iconList,
4513
- V2 as isHeadingItemType,
4514
- F2 as isLinkItemType,
4515
- n4 as isNodeItemType,
4516
- H2 as isSeparatorItemType,
4517
- Y4 as useBreakpoint,
4518
- a4 as useClipboard,
4519
- D4 as useKeyPress,
4520
- Q4 as useMediaQuery,
4521
- O4 as useToast,
4522
- p1 as useWindowWidth
4765
+ W4 as TextInput,
4766
+ G4 as Textarea,
4767
+ m0 as ThreeItemLayout,
4768
+ P4 as Toast,
4769
+ x4 as ToastType,
4770
+ Q4 as Toaster,
4771
+ T2 as Tooltip,
4772
+ d0 as TwoItemLayout,
4773
+ q4 as UtilityButton,
4774
+ a0 as VideoEmbed,
4775
+ B4 as iconList,
4776
+ F2 as isHeadingItemType,
4777
+ Z2 as isLinkItemType,
4778
+ z4 as isNodeItemType,
4779
+ V2 as isSeparatorItemType,
4780
+ h0 as useBreakpoint,
4781
+ p4 as useClipboard,
4782
+ l4 as useKeyPress,
4783
+ u0 as useMediaQuery,
4784
+ J4 as useToast,
4785
+ w1 as useWindowWidth
4523
4786
  };
4524
4787
  //# sourceMappingURL=index.js.map