@pantheon-systems/pds-toolkit-react 2.0.0-alpha.74 → 2.0.0-alpha.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -8919,347 +8919,7 @@ var Hr = {
8919
8919
  ]),
8920
8920
  ...i
8921
8921
  }, t);
8922
- }, Yi = {
8923
- light: "sunBright",
8924
- dark: "moon",
8925
- system: "circleHalfStroke"
8926
- }, Xi = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
8927
- light: "Light",
8928
- dark: "Dark",
8929
- system: "System"
8930
- }, onChange: i, size: a = "m", theme: o = "light", variant: s = "toggle", ...c }) => {
8931
- let l = "pds-theme-switcher", u = r.tooltip ?? "Change theme", d = [
8932
- "light",
8933
- "dark",
8934
- "system"
8935
- ];
8936
- if (s === "toggle") {
8937
- let s = d.map((e) => ({
8938
- iconName: Yi[e],
8939
- label: r[e],
8940
- value: e
8941
- }));
8942
- return /* @__PURE__ */ e.createElement("div", {
8943
- className: Z([l, t]),
8944
- ...c
8945
- }, /* @__PURE__ */ e.createElement(nr, {
8946
- iconOnly: !0,
8947
- id: n,
8948
- label: u,
8949
- onChange: (e) => i?.(e),
8950
- options: s,
8951
- size: a,
8952
- value: o
8953
- }));
8954
- }
8955
- let f = d.map((e) => ({
8956
- callback: () => i?.(e),
8957
- iconName: Yi[e],
8958
- iconSize: "m",
8959
- label: r[e]
8960
- }));
8961
- return /* @__PURE__ */ e.createElement("div", {
8962
- className: Z([l, t]),
8963
- ...c
8964
- }, /* @__PURE__ */ e.createElement(nn, {
8965
- content: u,
8966
- customTrigger: /* @__PURE__ */ e.createElement(tr, {
8967
- iconOnly: !0,
8968
- "aria-label": u,
8969
- iconName: Yi[o],
8970
- id: n,
8971
- label: "",
8972
- menuItems: f,
8973
- size: "m"
8974
- }),
8975
- offsetValue: 0,
8976
- preferredPlacement: "top"
8977
- }));
8978
- }, Zi = ({ ariaLabel: t = "User menu", className: n, isMobileAccordion: r = !1, menuItems: i = [], onThemeChange: a, theme: o, themeLabel: s = "Theme", themeLabelStrings: c, userEmail: l, userImageSrc: u, userName: f, ...p }) => {
8979
- let [m, _] = g(null), [v, y] = g(!1), b = Xt(), x = r && b, C = h([]), D = h([]), k = d(), N = "pds-user-menu", P = `${N}__menu`, { context: F, floatingStyles: B, refs: V } = M({
8980
- placement: "bottom-end",
8981
- open: v,
8982
- onOpenChange: y,
8983
- middleware: [
8984
- E(12),
8985
- T(),
8986
- O()
8987
- ],
8988
- whileElementsMounted: w,
8989
- strategy: "fixed"
8990
- }), H = A(F, { event: "mousedown" }), U = j(F), W = R(F, { role: "menu" }), G = h([]), { getFloatingProps: K, getItemProps: q, getReferenceProps: J } = I([
8991
- U,
8992
- W,
8993
- H,
8994
- L(F, {
8995
- listRef: G,
8996
- activeIndex: m,
8997
- onNavigate: _,
8998
- loop: !0,
8999
- openOnArrowKeyDown: !0,
9000
- focusItemOnOpen: !1,
9001
- focusItemOnHover: !0
9002
- })
9003
- ]), { isMounted: ee, styles: te } = z(F, {
9004
- duration: {
9005
- open: 300,
9006
- close: 150
9007
- },
9008
- initial: { opacity: 0 },
9009
- open: { opacity: 1 },
9010
- close: { opacity: 0 }
9011
- }), ne = /* @__PURE__ */ e.createElement(bt, {
9012
- hasUserFallback: !0,
9013
- className: `${N}__avatar`,
9014
- imageSrc: u,
9015
- size: "s",
9016
- uniqueId: l
9017
- }), re = /* @__PURE__ */ e.createElement("li", {
9018
- className: `${N}__user-details`,
9019
- role: "presentation"
9020
- }, /* @__PURE__ */ e.createElement("div", { className: `${N}__user-name` }, f), /* @__PURE__ */ e.createElement("div", { className: `${N}__user-email` }, l)), ie = o !== void 0 && typeof a == "function" ? /* @__PURE__ */ e.createElement("li", {
9021
- className: `${N}__theme-row`,
9022
- role: "presentation"
9023
- }, /* @__PURE__ */ e.createElement("span", { className: `${N}__theme-label` }, s), /* @__PURE__ */ e.createElement(Xi, {
9024
- id: `${k}-theme`,
9025
- labelStrings: c,
9026
- onChange: a,
9027
- size: "s",
9028
- theme: o,
9029
- variant: "toggle"
9030
- })) : null;
9031
- i.forEach((e, t) => {
9032
- let n = e.id ? e.id : `${k}-item-${t}`;
9033
- C.current.push(n), D.current.push(e);
9034
- });
9035
- let ae = (e) => {
9036
- let t = C.current.indexOf(e), n = D.current[t];
9037
- n.linkContent && !n.disabled && (G.current[t].querySelector("a").click(), y(!1)), n.callback && !n.disabled && (n.callback(), y(!1));
9038
- }, oe = (e) => {
9039
- e.preventDefault(), e.key === "Enter" && ae(e.currentTarget.id);
9040
- }, Y = (e) => {
9041
- ae(e.currentTarget.id);
9042
- }, se = i.map((t, n) => {
9043
- let r = C.current[n], i = `${N}__item`, a = t.disabled ? `${i}--disabled` : null;
9044
- return /* @__PURE__ */ e.createElement("li", {
9045
- key: r,
9046
- ref: (e) => {
9047
- G.current[n] = e;
9048
- },
9049
- "aria-disabled": t.disabled || void 0,
9050
- className: Z([i, a]),
9051
- id: r,
9052
- onKeyDown: oe,
9053
- role: "menuitem",
9054
- tabIndex: m === n ? 0 : -1,
9055
- ...q({ onClick: (e) => Y(e) })
9056
- }, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
9057
- className: `${N}__icon`,
9058
- iconName: t.iconName,
9059
- size: "m"
9060
- }));
9061
- }), X = i.map((t, n) => {
9062
- let r = C.current[n], i = `${N}__item`, a = t.disabled ? `${i}--disabled` : null;
9063
- return /* @__PURE__ */ e.createElement("li", {
9064
- key: r,
9065
- "aria-disabled": t.disabled || void 0,
9066
- className: Z([i, a]),
9067
- id: `${r}-accordion`,
9068
- onClick: () => {
9069
- t.linkContent && !t.disabled ? document.getElementById(`${r}-accordion`)?.querySelector("a")?.click() : t.callback && !t.disabled && t.callback();
9070
- },
9071
- role: "menuitem"
9072
- }, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
9073
- className: `${N}__icon`,
9074
- iconName: t.iconName,
9075
- size: "m"
9076
- }));
9077
- }), ce = /* @__PURE__ */ e.createElement("span", { className: `${N}__toggle-left` }, ne, f ?? l);
9078
- return /* @__PURE__ */ e.createElement("span", {
9079
- className: Z([N, n ?? ""]),
9080
- ...p
9081
- }, x ? /* @__PURE__ */ e.createElement(qn, { label: ce }, /* @__PURE__ */ e.createElement("ul", {
9082
- className: Z([P, `${P}--mobile`]),
9083
- role: "menu"
9084
- }, re, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ie, X)) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
9085
- ref: V.setReference,
9086
- "aria-label": t,
9087
- className: `${N}__trigger`,
9088
- type: "button",
9089
- ...J()
9090
- }, ne), ee && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
9091
- ref: V.setFloating,
9092
- className: `${N}__dropdown`,
9093
- style: {
9094
- ...B,
9095
- zIndex: "var(--pds-z-index-dropdown)"
9096
- },
9097
- ...K()
9098
- }, /* @__PURE__ */ e.createElement("div", { style: { ...te } }, /* @__PURE__ */ e.createElement("ul", {
9099
- className: P,
9100
- role: "menu"
9101
- }, re, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ie, se))))));
9102
- }, Qi = ({ ariaLabel: t = "Workspace selector menu", className: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", isMobileAccordion: o = !1, menuHeading: s = "Workspaces", minFilterItems: c = 8, noResultsText: l = "No results found", workspaceList: u = [], ...d }) => {
9103
- let [f, _] = g(""), [v, y] = g(""), b = h(null), x = u.length >= c, C = Xt(), w = o && C, T = "pds-workspace-selector", E = `${T}__menu`, D = x ? `${E}--scroll` : null, { activeIndex: O, floatingStyles: k, getFloatingProps: A, getItemProps: j, getReferenceProps: M, isMounted: N, listRef: P, refs: F, setIsOpen: I, transitionStyles: L } = Pn({
9104
- enableTypeahead: !x,
9105
- role: "menu"
9106
- }), R = u.find((e) => e.isActive);
9107
- R || (R = u[0]);
9108
- let z = h(null);
9109
- p(() => {
9110
- let e = z.current, t = e?.parentElement;
9111
- if (!e || !t) return;
9112
- let n = () => {
9113
- t.style.width = "";
9114
- let n = document.createRange();
9115
- n.selectNodeContents(e);
9116
- let r = Array.from(n.getClientRects()).slice(0, 2), i = Math.max(0, ...r.map((e) => e.width));
9117
- i > 0 && (t.style.width = `${Math.ceil(i)}px`);
9118
- };
9119
- n(), document.fonts?.ready.then(n);
9120
- }, [R?.displayName]);
9121
- let B = m(() => {
9122
- if (!f) return u;
9123
- let e = f.toLowerCase();
9124
- return u.filter((t) => t.displayName?.toLowerCase().includes(e));
9125
- }, [u, f]), V = m(() => {
9126
- if (!v) return u;
9127
- let e = v.toLowerCase();
9128
- return u.filter((t) => t.displayName?.toLowerCase().includes(e));
9129
- }, [u, v]), H = (e) => {
9130
- e.preventDefault(), e.key === "Enter" && (P.current[O]?.querySelector("a") || P.current[O]?.querySelector("button"))?.click(), e.key === "Tab" && (e.shiftKey ? x ? document.getElementById("workspace-filter")?.focus() : I(!1) : r ? b.current?.querySelector("a")?.focus() : I(!1));
9131
- }, U = (t) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${T}__item-content` }, /* @__PURE__ */ e.createElement(bt, {
9132
- className: `${T}__list-avatar`,
9133
- imageSrc: t.imageSrc,
9134
- size: "s",
9135
- uniqueId: t.workspaceId
9136
- }), t.displayName, t.isRestricted && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.restrictedLabel ?? "Restricted")), (t.isRestricted || t.isActive) && /* @__PURE__ */ e.createElement("div", { className: `${T}__icons` }, t.isRestricted && /* @__PURE__ */ e.createElement(Q, {
9137
- className: `${T}__lock-icon`,
9138
- iconName: "lock"
9139
- }), t.isActive && /* @__PURE__ */ e.createElement(Gn, null))), W = B.map((t, n) => {
9140
- let r = `${T}__item`, i = t.workspaceId, a = t.isRestricted && t.onRestrictedSelection, o = t.workspaceLink?.type, s = t.isUnprivileged ? null : (e) => {
9141
- P.current[n] = e;
9142
- };
9143
- return /* @__PURE__ */ e.createElement("li", {
9144
- key: i,
9145
- ref: s,
9146
- className: Z([
9147
- "pds-dropdown__item",
9148
- r,
9149
- t.isActive ? "pds-dropdown__item--active" : null,
9150
- t.isActive ? `${r}--active` : null,
9151
- t.isUnprivileged ? `${r}--unprivileged` : null,
9152
- t.isRestricted ? `${r}--restricted` : null
9153
- ]),
9154
- id: i,
9155
- onKeyDown: H,
9156
- role: "menuitem",
9157
- tabIndex: O === n ? 0 : -1,
9158
- ...j()
9159
- }, a ? /* @__PURE__ */ e.createElement("button", {
9160
- onClick: () => {
9161
- t.onRestrictedSelection(), I(!1);
9162
- },
9163
- type: "button"
9164
- }, U(t)) : o ? /* @__PURE__ */ e.createElement(o, Object.assign({}, t.workspaceLink.props, { onClick: () => I(!1) }), U(t)) : null);
9165
- }), G = V.map((t) => {
9166
- let n = `${T}__item`, r = t.workspaceId, i = t.isRestricted && t.onRestrictedSelection, a = t.workspaceLink?.type;
9167
- return /* @__PURE__ */ e.createElement("li", {
9168
- key: `${r}-accordion`,
9169
- className: Z([
9170
- "pds-dropdown__item",
9171
- n,
9172
- t.isActive ? "pds-dropdown__item--active" : null,
9173
- t.isActive ? `${n}--active` : null,
9174
- t.isUnprivileged ? `${n}--unprivileged` : null,
9175
- t.isRestricted ? `${n}--restricted` : null
9176
- ]),
9177
- id: `${r}-accordion`,
9178
- role: "menuitem"
9179
- }, i ? /* @__PURE__ */ e.createElement("button", {
9180
- onClick: () => t.onRestrictedSelection(),
9181
- type: "button"
9182
- }, U(t)) : a ? /* @__PURE__ */ e.createElement(a, Object.assign({}, t.workspaceLink?.props), U(t)) : null);
9183
- }), K = r && /* @__PURE__ */ e.createElement("div", {
9184
- ref: b,
9185
- className: `${T}__create-link`
9186
- }, /* @__PURE__ */ e.createElement("span", {
9187
- className: `${T}__create-link-inner`,
9188
- onBlur: () => I(!1),
9189
- onClick: () => I(!1)
9190
- }, r, /* @__PURE__ */ e.createElement(Q, {
9191
- iconName: "plus",
9192
- size: "s"
9193
- }))), q = (t) => R ? /* @__PURE__ */ e.createElement("div", { className: `${T}__button-content` }, /* @__PURE__ */ e.createElement(bt, {
9194
- className: `${T}__avatar`,
9195
- imageSrc: R.imageSrc,
9196
- size: "s",
9197
- uniqueId: R.workspaceId
9198
- }), /* @__PURE__ */ e.createElement("span", { className: `${T}__name` }, /* @__PURE__ */ e.createElement("span", {
9199
- ref: t,
9200
- className: `${T}__name-text`
9201
- }, R.displayName))) : null;
9202
- return /* @__PURE__ */ e.createElement("span", {
9203
- className: Z([T, n]),
9204
- ...d
9205
- }, w ? /* @__PURE__ */ e.createElement(qn, { label: q() }, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Mi, {
9206
- hasClearButton: !0,
9207
- id: "workspace-filter-mobile",
9208
- label: i,
9209
- onChange: (e) => y(e.target.value),
9210
- onClear: () => y(""),
9211
- placeholder: a,
9212
- showLabel: !1,
9213
- type: "search"
9214
- })), /* @__PURE__ */ e.createElement("ul", {
9215
- className: Z([E, `${E}--mobile`]),
9216
- role: "menu"
9217
- }, /* @__PURE__ */ e.createElement("li", {
9218
- className: `pds-dropdown__heading ${T}__item-heading`,
9219
- role: "presentation"
9220
- }, s), G.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, l) : G), r && /* @__PURE__ */ e.createElement("div", { className: `${T}__create-link` }, /* @__PURE__ */ e.createElement("span", { className: `${T}__create-link-inner` }, r, /* @__PURE__ */ e.createElement(Q, {
9221
- iconName: "plus",
9222
- size: "s"
9223
- })))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
9224
- ref: F.setReference,
9225
- "aria-label": t,
9226
- className: `${T}__trigger`,
9227
- type: "button",
9228
- ...M()
9229
- }, q(z), /* @__PURE__ */ e.createElement(Q, {
9230
- className: `${T}__trigger-icon`,
9231
- iconName: "angleDown",
9232
- size: "m"
9233
- })), N && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
9234
- ref: F.setFloating,
9235
- className: `pds-dropdown__panel ${T}__dropdown`,
9236
- style: {
9237
- ...k,
9238
- ...L,
9239
- zIndex: "var(--pds-z-index-dropdown)"
9240
- },
9241
- ...A()
9242
- }, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Mi, {
9243
- hasClearButton: !0,
9244
- id: "workspace-filter",
9245
- label: i,
9246
- onChange: (e) => _(e.target.value),
9247
- onClear: () => _(""),
9248
- placeholder: a,
9249
- showLabel: !1,
9250
- type: "search"
9251
- })), /* @__PURE__ */ e.createElement("ul", {
9252
- className: Z([E, D]),
9253
- role: "menu"
9254
- }, /* @__PURE__ */ e.createElement("li", {
9255
- className: `pds-dropdown__heading ${T}__item-heading`,
9256
- role: "presentation"
9257
- }, s), W.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, l) : W), K))));
9258
- }, $i = [
9259
- tr,
9260
- Zi,
9261
- Qi
9262
- ], ea = (e) => t.map(e, (e) => s(e) && $i.includes(e.type) ? r(e, { isMobileAccordion: !0 }) : e), ta = ({ children: t, className: n, colorType: r = "default", containerWidth: i = "x-wide", hideBorder: a, inlinePadding: o, translationStrings: s = {
8922
+ }, Yi = ({ children: t, className: n, colorType: r = "default", containerWidth: i = "x-wide", hideBorder: a, inlinePadding: o, translationStrings: s = {
9263
8923
  closeMobileNav: "Close navigation area",
9264
8924
  openMobileNav: "Open navigation area"
9265
8925
  }, ...c }) => {
@@ -9329,7 +8989,7 @@ var Hr = {
9329
8989
  className: "visually-hidden",
9330
8990
  onClick: b,
9331
8991
  type: "button"
9332
- }, s.closeMobileNav), ea(w), ea(T), ea(E))))) : /* @__PURE__ */ e.createElement(Ji, {
8992
+ }, s.closeMobileNav), w, T, E)))) : /* @__PURE__ */ e.createElement(Ji, {
9333
8993
  className: `${h}__inner`,
9334
8994
  style: o ? { paddingInline: o } : void 0,
9335
8995
  width: i
@@ -9337,7 +8997,7 @@ var Hr = {
9337
8997
  "aria-hidden": "true",
9338
8998
  className: `${h}__separator`
9339
8999
  }), w && /* @__PURE__ */ e.createElement("div", { className: `${h}__items-left` }, w)), T && /* @__PURE__ */ e.createElement("div", { className: `${h}__items-center` }, T), E && /* @__PURE__ */ e.createElement("div", { className: `${h}__items-right` }, E)));
9340
- }, na = ({ ariaLabel: t, className: n, hasMobileDropdown: i = !1, headingText: a, labels: o = {
9000
+ }, Xi = ({ ariaLabel: t, className: n, hasMobileDropdown: i = !1, headingText: a, labels: o = {
9341
9001
  submenu: "submenu",
9342
9002
  toggle: "Toggle"
9343
9003
  }, menuItems: c, mobileMenuSelectTextFallback: l = "Navigate to...", ...d }) => {
@@ -9427,7 +9087,7 @@ var Hr = {
9427
9087
  ]),
9428
9088
  ...d
9429
9089
  }, S, i && C);
9430
- }, ra = ({ icon: t, isActive: n, isExpanded: r, isSidebarCollapsed: i, labels: a, linkContent: o, links: s, onExpandSidebar: c, onToggleExpand: l }) => {
9090
+ }, Zi = ({ icon: t, isActive: n, isExpanded: r, isSidebarCollapsed: i, labels: a, linkContent: o, links: s, onExpandSidebar: c, onToggleExpand: l }) => {
9431
9091
  let d = "pds-side-nav-global", f = `${d}__item`, p = `${d}__menu`, m = /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, Gi(d, o, s, t)), _ = (t, n) => /* @__PURE__ */ e.createElement("ul", { className: Z([
9432
9092
  p,
9433
9093
  `${p}--${n}`,
@@ -9513,7 +9173,7 @@ var Hr = {
9513
9173
  },
9514
9174
  preferredPlacement: "right"
9515
9175
  }) : m));
9516
- }, ia = ({ ariaLabel: t, className: n, isSidebarCollapsed: r, labels: i = {
9176
+ }, Qi = ({ ariaLabel: t, className: n, isSidebarCollapsed: r, labels: i = {
9517
9177
  submenu: "submenu",
9518
9178
  toggle: "Toggle"
9519
9179
  }, menuItems: a, onExpandSidebar: o, ...s }) => {
@@ -9542,7 +9202,7 @@ var Hr = {
9542
9202
  role: "presentation"
9543
9203
  }, t.label);
9544
9204
  let a = Vi(t);
9545
- return /* @__PURE__ */ e.createElement(ra, {
9205
+ return /* @__PURE__ */ e.createElement(Zi, {
9546
9206
  key: n,
9547
9207
  icon: t.icon,
9548
9208
  isActive: a,
@@ -9564,7 +9224,7 @@ var Hr = {
9564
9224
  ]),
9565
9225
  ...s
9566
9226
  }, h);
9567
- }, aa = ({ items: t, label: n }) => {
9227
+ }, $i = ({ items: t, label: n }) => {
9568
9228
  let r = h(null), i = "pds-nav-menu", a = t && t.length > 0, { floatingStyles: o, getFloatingProps: s, getReferenceProps: c, isOpen: l, refs: u } = Pn({
9569
9229
  offsetValue: 8,
9570
9230
  openOnHover: !Xt()
@@ -9601,7 +9261,7 @@ var Hr = {
9601
9261
  key: n,
9602
9262
  className: `${i}__item ${t.isSeparator ? "pds-dropdown__separator" : `pds-dropdown__item${f(t) ? " pds-dropdown__item--active" : ""}`}`
9603
9263
  }, !t.isSeparator && t.linkContent)))));
9604
- }, oa = ({ ariaLabel: t = "Main Navigation", className: n, menuItems: r, ...i }) => {
9264
+ }, ea = ({ ariaLabel: t = "Main Navigation", className: n, menuItems: r, ...i }) => {
9605
9265
  let [a, o] = g(null), [s, c] = g(-1), [l, f] = g(null), [p, m] = g({
9606
9266
  container: null,
9607
9267
  containerChildren: []
@@ -9648,7 +9308,7 @@ var Hr = {
9648
9308
  },
9649
9309
  className: `${v}__item ${v}__item--top-level ${v}__item--has-children ${x(t) === !0 ? `${v}__item--active` : ""}`,
9650
9310
  id: i
9651
- }, /* @__PURE__ */ e.createElement(aa, {
9311
+ }, /* @__PURE__ */ e.createElement($i, {
9652
9312
  items: t.links,
9653
9313
  label: t.label
9654
9314
  }))) : S.push(/* @__PURE__ */ e.createElement("li", {
@@ -9667,7 +9327,7 @@ var Hr = {
9667
9327
  },
9668
9328
  ...i
9669
9329
  }, /* @__PURE__ */ e.createElement("ul", { className: `${v}__menu` }, S));
9670
- }, sa = ({ buttonLabel: t = "Toggle dropdown", filterLabel: n = "Filter items", filterPlaceholder: r = "Filter items...", links: i, minFilterItems: a = 5, noResultsText: o = "No results found" }) => {
9330
+ }, ta = ({ buttonLabel: t = "Toggle dropdown", filterLabel: n = "Filter items", filterPlaceholder: r = "Filter items...", links: i, minFilterItems: a = 5, noResultsText: o = "No results found" }) => {
9671
9331
  let [s, c] = g(i), [l, d] = g(""), f = i.length >= a, p = "pds-tab-menu", m = `${p}__dropdown-menu`, h = f ? `${m}--scroll` : null, _ = `${p}__dropdown-item`, { activeIndex: v, floatingStyles: y, getFloatingProps: b, getItemProps: x, getReferenceProps: C, isMounted: w, isOpen: T, listRef: E, refs: D, setActiveIndex: O, transitionStyles: k } = Pn({
9672
9332
  offsetValue: 8,
9673
9333
  placement: "bottom-start",
@@ -9732,7 +9392,7 @@ var Hr = {
9732
9392
  zIndex: "var(--pds-z-index-dropdown)"
9733
9393
  } })
9734
9394
  }, /* @__PURE__ */ e.createElement("div", { style: { ...k } }, I, /* @__PURE__ */ e.createElement("ul", { className: Z([m, h]) }, L.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${p}__no-results` }, o) : L)))));
9735
- }, ca = ({ ariaLabel: t, className: n, menuItems: i, ...a }) => {
9395
+ }, na = ({ ariaLabel: t, className: n, menuItems: i, ...a }) => {
9736
9396
  let o = "pds-tab-menu", c = ({ dropdownSettings: t, icon: n, isActive: i, linkContent: a, links: c, promoteActiveChildLink: l = !1 }) => {
9737
9397
  let u = `${o}__item`, d = Ri(c);
9738
9398
  return /* @__PURE__ */ e.createElement("li", { className: Z([u, i ? `${u}--active` : null]) }, ((t, n) => {
@@ -9745,7 +9405,7 @@ var Hr = {
9745
9405
  iconName: n,
9746
9406
  size: "m"
9747
9407
  }), t.props.children)] })) : t), i;
9748
- })(l ? d : a, n), c && /* @__PURE__ */ e.createElement(sa, {
9408
+ })(l ? d : a, n), c && /* @__PURE__ */ e.createElement(ta, {
9749
9409
  buttonLabel: t?.buttonLabel,
9750
9410
  filterLabel: t?.filterLabel,
9751
9411
  filterPlaceholder: t?.filterPlaceholder,
@@ -9767,11 +9427,11 @@ var Hr = {
9767
9427
  className: Z([o, n ?? ""]),
9768
9428
  ...a
9769
9429
  }, /* @__PURE__ */ e.createElement("div", { className: `${o}__mobile-menu-wrapper` }, l));
9770
- }, la = {
9430
+ }, ra = {
9771
9431
  2: "second",
9772
9432
  3: "third",
9773
9433
  4: "fourth"
9774
- }, ua = ({ ariaLabel: t, className: n, headingText: r, labels: i = {
9434
+ }, ia = ({ ariaLabel: t, className: n, headingText: r, labels: i = {
9775
9435
  submenu: "submenu",
9776
9436
  toggle: "Toggle"
9777
9437
  }, menuItems: a, ...o }) => {
@@ -9891,7 +9551,7 @@ var Hr = {
9891
9551
  display: "none"
9892
9552
  }), b();
9893
9553
  }, j = (t, n, r) => {
9894
- let a = la[t], o = `${l}--${a}-level`, u = `${c}--${a}-level`, d = t + 1, f = Vi(n);
9554
+ let a = ra[t], o = `${l}--${a}-level`, u = `${c}--${a}-level`, d = t + 1, f = Vi(n);
9895
9555
  if (_.current && n.path) {
9896
9556
  let e = _.current.querySelector(`.${c}[data-item-path="${n.path}"]`);
9897
9557
  if (e) {
@@ -9910,62 +9570,398 @@ var Hr = {
9910
9570
  verticalAlign: "-0.0625rem"
9911
9571
  }), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${zi(n.linkContent)} ${i.submenu}`)), Wi(n.linkContent, n.links)), /* @__PURE__ */ e.createElement("ul", {
9912
9572
  className: Z([
9913
- l,
9914
- o,
9915
- f ? `${l}--expanded` : null
9573
+ l,
9574
+ o,
9575
+ f ? `${l}--expanded` : null
9576
+ ]),
9577
+ role: "group"
9578
+ }, n.links.map((t, n) => {
9579
+ let r = Vi(t);
9580
+ return /* @__PURE__ */ e.createElement("li", {
9581
+ key: `${n}-${a}`,
9582
+ "aria-expanded": t.links ? r : void 0,
9583
+ "aria-selected": r,
9584
+ className: Z([
9585
+ c,
9586
+ u,
9587
+ r ? `${c}--active` : null
9588
+ ]),
9589
+ "data-item-path": t.path || "",
9590
+ role: "treeitem"
9591
+ }, t.links && d in ra ? j(d, t, t.links) : t.linkContent);
9592
+ })));
9593
+ }, M = (t, n) => {
9594
+ let { linkContent: r, links: i } = t, a = Vi(t);
9595
+ return /* @__PURE__ */ e.createElement("li", {
9596
+ key: n,
9597
+ "aria-expanded": i ? a : void 0,
9598
+ "aria-selected": a,
9599
+ className: Z([
9600
+ c,
9601
+ `${c}--top-level`,
9602
+ a ? `${c}--active` : null
9603
+ ]),
9604
+ "data-item-path": t.path || "",
9605
+ role: "treeitem"
9606
+ }, i ? j(2, t, i) : r);
9607
+ };
9608
+ return /* @__PURE__ */ e.createElement("nav", {
9609
+ ref: _,
9610
+ "aria-label": t,
9611
+ className: Z([s, n ?? ""]),
9612
+ onFocus: D,
9613
+ onKeyDown: (e) => {
9614
+ w(e), E(e);
9615
+ },
9616
+ tabIndex: 0,
9617
+ ...o
9618
+ }, r && /* @__PURE__ */ e.createElement("h2", { className: `${s}__heading` }, r), a.length > 0 && /* @__PURE__ */ e.createElement("ul", {
9619
+ "aria-label": t,
9620
+ className: `${s}__menu ${s}__menu--top-level`,
9621
+ role: "tree"
9622
+ }, a.map((e, t) => M(e, t))));
9623
+ }, aa = {
9624
+ light: "sunBright",
9625
+ dark: "moon",
9626
+ system: "circleHalfStroke"
9627
+ }, oa = ({ className: t, id: n = "theme-switcher-menu", labelStrings: r = {
9628
+ light: "Light",
9629
+ dark: "Dark",
9630
+ system: "System"
9631
+ }, onChange: i, size: a = "m", theme: o = "light", variant: s = "toggle", ...c }) => {
9632
+ let l = "pds-theme-switcher", u = r.tooltip ?? "Change theme", d = [
9633
+ "light",
9634
+ "dark",
9635
+ "system"
9636
+ ];
9637
+ if (s === "toggle") {
9638
+ let s = d.map((e) => ({
9639
+ iconName: aa[e],
9640
+ label: r[e],
9641
+ value: e
9642
+ }));
9643
+ return /* @__PURE__ */ e.createElement("div", {
9644
+ className: Z([l, t]),
9645
+ ...c
9646
+ }, /* @__PURE__ */ e.createElement(nr, {
9647
+ iconOnly: !0,
9648
+ id: n,
9649
+ label: u,
9650
+ onChange: (e) => i?.(e),
9651
+ options: s,
9652
+ size: a,
9653
+ value: o
9654
+ }));
9655
+ }
9656
+ let f = d.map((e) => ({
9657
+ callback: () => i?.(e),
9658
+ iconName: aa[e],
9659
+ iconSize: "m",
9660
+ label: r[e]
9661
+ }));
9662
+ return /* @__PURE__ */ e.createElement("div", {
9663
+ className: Z([l, t]),
9664
+ ...c
9665
+ }, /* @__PURE__ */ e.createElement(nn, {
9666
+ content: u,
9667
+ customTrigger: /* @__PURE__ */ e.createElement(tr, {
9668
+ iconOnly: !0,
9669
+ "aria-label": u,
9670
+ iconName: aa[o],
9671
+ id: n,
9672
+ label: "",
9673
+ menuItems: f,
9674
+ size: "m"
9675
+ }),
9676
+ offsetValue: 0,
9677
+ preferredPlacement: "top"
9678
+ }));
9679
+ }, sa = ({ ariaLabel: t = "User menu", className: n, isMobileAccordion: r = !1, menuItems: i = [], onThemeChange: a, theme: o, themeLabel: s = "Theme", themeLabelStrings: c, userEmail: l, userImageSrc: u, userName: f, ...p }) => {
9680
+ let [m, _] = g(null), [v, y] = g(!1), b = Xt(), x = r && b, C = h([]), D = h([]), k = d(), N = "pds-user-menu", P = `${N}__menu`, { context: F, floatingStyles: B, refs: V } = M({
9681
+ placement: "bottom-end",
9682
+ open: v,
9683
+ onOpenChange: y,
9684
+ middleware: [
9685
+ E(12),
9686
+ T(),
9687
+ O()
9688
+ ],
9689
+ whileElementsMounted: w,
9690
+ strategy: "fixed"
9691
+ }), H = A(F, { event: "mousedown" }), U = j(F), W = R(F, { role: "menu" }), G = h([]), { getFloatingProps: K, getItemProps: q, getReferenceProps: J } = I([
9692
+ U,
9693
+ W,
9694
+ H,
9695
+ L(F, {
9696
+ listRef: G,
9697
+ activeIndex: m,
9698
+ onNavigate: _,
9699
+ loop: !0,
9700
+ openOnArrowKeyDown: !0,
9701
+ focusItemOnOpen: !1,
9702
+ focusItemOnHover: !0
9703
+ })
9704
+ ]), { isMounted: ee, styles: te } = z(F, {
9705
+ duration: {
9706
+ open: 300,
9707
+ close: 150
9708
+ },
9709
+ initial: { opacity: 0 },
9710
+ open: { opacity: 1 },
9711
+ close: { opacity: 0 }
9712
+ }), ne = /* @__PURE__ */ e.createElement(bt, {
9713
+ hasUserFallback: !0,
9714
+ className: `${N}__avatar`,
9715
+ imageSrc: u,
9716
+ size: "s",
9717
+ uniqueId: l
9718
+ }), re = /* @__PURE__ */ e.createElement("li", {
9719
+ className: `${N}__user-details`,
9720
+ role: "presentation"
9721
+ }, /* @__PURE__ */ e.createElement("div", { className: `${N}__user-name` }, f), /* @__PURE__ */ e.createElement("div", { className: `${N}__user-email` }, l)), ie = o !== void 0 && typeof a == "function" ? /* @__PURE__ */ e.createElement("li", {
9722
+ className: `${N}__theme-row`,
9723
+ role: "presentation"
9724
+ }, /* @__PURE__ */ e.createElement("span", { className: `${N}__theme-label` }, s), /* @__PURE__ */ e.createElement(oa, {
9725
+ id: `${k}-theme`,
9726
+ labelStrings: c,
9727
+ onChange: a,
9728
+ size: "s",
9729
+ theme: o,
9730
+ variant: "toggle"
9731
+ })) : null;
9732
+ i.forEach((e, t) => {
9733
+ let n = e.id ? e.id : `${k}-item-${t}`;
9734
+ C.current.push(n), D.current.push(e);
9735
+ });
9736
+ let ae = (e) => {
9737
+ let t = C.current.indexOf(e), n = D.current[t];
9738
+ n.linkContent && !n.disabled && (G.current[t].querySelector("a").click(), y(!1)), n.callback && !n.disabled && (n.callback(), y(!1));
9739
+ }, oe = (e) => {
9740
+ e.preventDefault(), e.key === "Enter" && ae(e.currentTarget.id);
9741
+ }, Y = (e) => {
9742
+ ae(e.currentTarget.id);
9743
+ }, se = i.map((t, n) => {
9744
+ let r = C.current[n], i = `${N}__item`, a = t.disabled ? `${i}--disabled` : null;
9745
+ return /* @__PURE__ */ e.createElement("li", {
9746
+ key: r,
9747
+ ref: (e) => {
9748
+ G.current[n] = e;
9749
+ },
9750
+ "aria-disabled": t.disabled || void 0,
9751
+ className: Z([i, a]),
9752
+ id: r,
9753
+ onKeyDown: oe,
9754
+ role: "menuitem",
9755
+ tabIndex: m === n ? 0 : -1,
9756
+ ...q({ onClick: (e) => Y(e) })
9757
+ }, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
9758
+ className: `${N}__icon`,
9759
+ iconName: t.iconName,
9760
+ size: "m"
9761
+ }));
9762
+ }), X = i.map((t, n) => {
9763
+ let r = C.current[n], i = `${N}__item`, a = t.disabled ? `${i}--disabled` : null;
9764
+ return /* @__PURE__ */ e.createElement("li", {
9765
+ key: r,
9766
+ "aria-disabled": t.disabled || void 0,
9767
+ className: Z([i, a]),
9768
+ id: `${r}-accordion`,
9769
+ onClick: () => {
9770
+ t.linkContent && !t.disabled ? document.getElementById(`${r}-accordion`)?.querySelector("a")?.click() : t.callback && !t.disabled && t.callback();
9771
+ },
9772
+ role: "menuitem"
9773
+ }, t.linkContent ? t.linkContent : t.label, t.iconName && /* @__PURE__ */ e.createElement(Q, {
9774
+ className: `${N}__icon`,
9775
+ iconName: t.iconName,
9776
+ size: "m"
9777
+ }));
9778
+ }), ce = /* @__PURE__ */ e.createElement("span", { className: `${N}__toggle-left` }, ne, f ?? l);
9779
+ return /* @__PURE__ */ e.createElement("span", {
9780
+ className: Z([N, n ?? ""]),
9781
+ ...p
9782
+ }, x ? /* @__PURE__ */ e.createElement(qn, { label: ce }, /* @__PURE__ */ e.createElement("ul", {
9783
+ className: Z([P, `${P}--mobile`]),
9784
+ role: "menu"
9785
+ }, re, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ie, X)) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
9786
+ ref: V.setReference,
9787
+ "aria-label": t,
9788
+ className: `${N}__trigger`,
9789
+ type: "button",
9790
+ ...J()
9791
+ }, ne), ee && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
9792
+ ref: V.setFloating,
9793
+ className: `${N}__dropdown`,
9794
+ style: {
9795
+ ...B,
9796
+ zIndex: "var(--pds-z-index-dropdown)"
9797
+ },
9798
+ ...K()
9799
+ }, /* @__PURE__ */ e.createElement("div", { style: { ...te } }, /* @__PURE__ */ e.createElement("ul", {
9800
+ className: P,
9801
+ role: "menu"
9802
+ }, re, /* @__PURE__ */ e.createElement("li", { role: "separator" }), ie, se))))));
9803
+ }, ca = ({ ariaLabel: t = "Workspace selector menu", className: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", isMobileAccordion: o = !1, menuHeading: s = "Workspaces", minFilterItems: c = 8, noResultsText: l = "No results found", workspaceList: u = [], ...d }) => {
9804
+ let [f, _] = g(""), [v, y] = g(""), b = h(null), x = u.length >= c, C = Xt(), w = o && C, T = "pds-workspace-selector", E = `${T}__menu`, D = x ? `${E}--scroll` : null, { activeIndex: O, floatingStyles: k, getFloatingProps: A, getItemProps: j, getReferenceProps: M, isMounted: N, listRef: P, refs: F, setIsOpen: I, transitionStyles: L } = Pn({
9805
+ enableTypeahead: !x,
9806
+ role: "menu"
9807
+ }), R = u.find((e) => e.isActive);
9808
+ R || (R = u[0]);
9809
+ let z = h(null);
9810
+ p(() => {
9811
+ let e = z.current, t = e?.parentElement;
9812
+ if (!e || !t) return;
9813
+ let n = () => {
9814
+ t.style.width = "";
9815
+ let n = document.createRange();
9816
+ n.selectNodeContents(e);
9817
+ let r = Array.from(n.getClientRects()).slice(0, 2), i = Math.max(0, ...r.map((e) => e.width));
9818
+ i > 0 && (t.style.width = `${Math.ceil(i)}px`);
9819
+ };
9820
+ n(), document.fonts?.ready.then(n);
9821
+ }, [R?.displayName]);
9822
+ let B = m(() => {
9823
+ if (!f) return u;
9824
+ let e = f.toLowerCase();
9825
+ return u.filter((t) => t.displayName?.toLowerCase().includes(e));
9826
+ }, [u, f]), V = m(() => {
9827
+ if (!v) return u;
9828
+ let e = v.toLowerCase();
9829
+ return u.filter((t) => t.displayName?.toLowerCase().includes(e));
9830
+ }, [u, v]), H = (e) => {
9831
+ e.preventDefault(), e.key === "Enter" && (P.current[O]?.querySelector("a") || P.current[O]?.querySelector("button"))?.click(), e.key === "Tab" && (e.shiftKey ? x ? document.getElementById("workspace-filter")?.focus() : I(!1) : r ? b.current?.querySelector("a")?.focus() : I(!1));
9832
+ }, U = (t) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${T}__item-content` }, /* @__PURE__ */ e.createElement(bt, {
9833
+ className: `${T}__list-avatar`,
9834
+ imageSrc: t.imageSrc,
9835
+ size: "s",
9836
+ uniqueId: t.workspaceId
9837
+ }), t.displayName, t.isRestricted && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.restrictedLabel ?? "Restricted")), (t.isRestricted || t.isActive) && /* @__PURE__ */ e.createElement("div", { className: `${T}__icons` }, t.isRestricted && /* @__PURE__ */ e.createElement(Q, {
9838
+ className: `${T}__lock-icon`,
9839
+ iconName: "lock"
9840
+ }), t.isActive && /* @__PURE__ */ e.createElement(Gn, null))), W = B.map((t, n) => {
9841
+ let r = `${T}__item`, i = t.workspaceId, a = t.isRestricted && t.onRestrictedSelection, o = t.workspaceLink?.type, s = t.isUnprivileged ? null : (e) => {
9842
+ P.current[n] = e;
9843
+ };
9844
+ return /* @__PURE__ */ e.createElement("li", {
9845
+ key: i,
9846
+ ref: s,
9847
+ className: Z([
9848
+ "pds-dropdown__item",
9849
+ r,
9850
+ t.isActive ? "pds-dropdown__item--active" : null,
9851
+ t.isActive ? `${r}--active` : null,
9852
+ t.isUnprivileged ? `${r}--unprivileged` : null,
9853
+ t.isRestricted ? `${r}--restricted` : null
9916
9854
  ]),
9917
- role: "group"
9918
- }, n.links.map((t, n) => {
9919
- let r = Vi(t);
9920
- return /* @__PURE__ */ e.createElement("li", {
9921
- key: `${n}-${a}`,
9922
- "aria-expanded": t.links ? r : void 0,
9923
- "aria-selected": r,
9924
- className: Z([
9925
- c,
9926
- u,
9927
- r ? `${c}--active` : null
9928
- ]),
9929
- "data-item-path": t.path || "",
9930
- role: "treeitem"
9931
- }, t.links && d in la ? j(d, t, t.links) : t.linkContent);
9932
- })));
9933
- }, M = (t, n) => {
9934
- let { linkContent: r, links: i } = t, a = Vi(t);
9855
+ id: i,
9856
+ onKeyDown: H,
9857
+ role: "menuitem",
9858
+ tabIndex: O === n ? 0 : -1,
9859
+ ...j()
9860
+ }, a ? /* @__PURE__ */ e.createElement("button", {
9861
+ onClick: () => {
9862
+ t.onRestrictedSelection(), I(!1);
9863
+ },
9864
+ type: "button"
9865
+ }, U(t)) : o ? /* @__PURE__ */ e.createElement(o, Object.assign({}, t.workspaceLink.props, { onClick: () => I(!1) }), U(t)) : null);
9866
+ }), G = V.map((t) => {
9867
+ let n = `${T}__item`, r = t.workspaceId, i = t.isRestricted && t.onRestrictedSelection, a = t.workspaceLink?.type;
9935
9868
  return /* @__PURE__ */ e.createElement("li", {
9936
- key: n,
9937
- "aria-expanded": i ? a : void 0,
9938
- "aria-selected": a,
9869
+ key: `${r}-accordion`,
9939
9870
  className: Z([
9940
- c,
9941
- `${c}--top-level`,
9942
- a ? `${c}--active` : null
9871
+ "pds-dropdown__item",
9872
+ n,
9873
+ t.isActive ? "pds-dropdown__item--active" : null,
9874
+ t.isActive ? `${n}--active` : null,
9875
+ t.isUnprivileged ? `${n}--unprivileged` : null,
9876
+ t.isRestricted ? `${n}--restricted` : null
9943
9877
  ]),
9944
- "data-item-path": t.path || "",
9945
- role: "treeitem"
9946
- }, i ? j(2, t, i) : r);
9947
- };
9948
- return /* @__PURE__ */ e.createElement("nav", {
9949
- ref: _,
9878
+ id: `${r}-accordion`,
9879
+ role: "menuitem"
9880
+ }, i ? /* @__PURE__ */ e.createElement("button", {
9881
+ onClick: () => t.onRestrictedSelection(),
9882
+ type: "button"
9883
+ }, U(t)) : a ? /* @__PURE__ */ e.createElement(a, Object.assign({}, t.workspaceLink?.props), U(t)) : null);
9884
+ }), K = r && /* @__PURE__ */ e.createElement("div", {
9885
+ ref: b,
9886
+ className: `${T}__create-link`
9887
+ }, /* @__PURE__ */ e.createElement("span", {
9888
+ className: `${T}__create-link-inner`,
9889
+ onBlur: () => I(!1),
9890
+ onClick: () => I(!1)
9891
+ }, r, /* @__PURE__ */ e.createElement(Q, {
9892
+ iconName: "plus",
9893
+ size: "s"
9894
+ }))), q = (t) => R ? /* @__PURE__ */ e.createElement("div", { className: `${T}__button-content` }, /* @__PURE__ */ e.createElement(bt, {
9895
+ className: `${T}__avatar`,
9896
+ imageSrc: R.imageSrc,
9897
+ size: "s",
9898
+ uniqueId: R.workspaceId
9899
+ }), /* @__PURE__ */ e.createElement("span", { className: `${T}__name` }, /* @__PURE__ */ e.createElement("span", {
9900
+ ref: t,
9901
+ className: `${T}__name-text`
9902
+ }, R.displayName))) : null;
9903
+ return /* @__PURE__ */ e.createElement("span", {
9904
+ className: Z([T, n]),
9905
+ ...d
9906
+ }, w ? /* @__PURE__ */ e.createElement(qn, { label: q() }, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Mi, {
9907
+ hasClearButton: !0,
9908
+ id: "workspace-filter-mobile",
9909
+ label: i,
9910
+ onChange: (e) => y(e.target.value),
9911
+ onClear: () => y(""),
9912
+ placeholder: a,
9913
+ showLabel: !1,
9914
+ type: "search"
9915
+ })), /* @__PURE__ */ e.createElement("ul", {
9916
+ className: Z([E, `${E}--mobile`]),
9917
+ role: "menu"
9918
+ }, /* @__PURE__ */ e.createElement("li", {
9919
+ className: `pds-dropdown__heading ${T}__item-heading`,
9920
+ role: "presentation"
9921
+ }, s), G.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, l) : G), r && /* @__PURE__ */ e.createElement("div", { className: `${T}__create-link` }, /* @__PURE__ */ e.createElement("span", { className: `${T}__create-link-inner` }, r, /* @__PURE__ */ e.createElement(Q, {
9922
+ iconName: "plus",
9923
+ size: "s"
9924
+ })))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
9925
+ ref: F.setReference,
9950
9926
  "aria-label": t,
9951
- className: Z([s, n ?? ""]),
9952
- onFocus: D,
9953
- onKeyDown: (e) => {
9954
- w(e), E(e);
9927
+ className: `${T}__trigger`,
9928
+ type: "button",
9929
+ ...M()
9930
+ }, q(z), /* @__PURE__ */ e.createElement(Q, {
9931
+ className: `${T}__trigger-icon`,
9932
+ iconName: "angleDown",
9933
+ size: "m"
9934
+ })), N && /* @__PURE__ */ e.createElement(S, null, /* @__PURE__ */ e.createElement("div", {
9935
+ ref: F.setFloating,
9936
+ className: `pds-dropdown__panel ${T}__dropdown`,
9937
+ style: {
9938
+ ...k,
9939
+ ...L,
9940
+ zIndex: "var(--pds-z-index-dropdown)"
9955
9941
  },
9956
- tabIndex: 0,
9957
- ...o
9958
- }, r && /* @__PURE__ */ e.createElement("h2", { className: `${s}__heading` }, r), a.length > 0 && /* @__PURE__ */ e.createElement("ul", {
9959
- "aria-label": t,
9960
- className: `${s}__menu ${s}__menu--top-level`,
9961
- role: "tree"
9962
- }, a.map((e, t) => M(e, t))));
9963
- }, da = {
9942
+ ...A()
9943
+ }, x && /* @__PURE__ */ e.createElement("div", { className: `${T}__filter` }, /* @__PURE__ */ e.createElement(Mi, {
9944
+ hasClearButton: !0,
9945
+ id: "workspace-filter",
9946
+ label: i,
9947
+ onChange: (e) => _(e.target.value),
9948
+ onClear: () => _(""),
9949
+ placeholder: a,
9950
+ showLabel: !1,
9951
+ type: "search"
9952
+ })), /* @__PURE__ */ e.createElement("ul", {
9953
+ className: Z([E, D]),
9954
+ role: "menu"
9955
+ }, /* @__PURE__ */ e.createElement("li", {
9956
+ className: `pds-dropdown__heading ${T}__item-heading`,
9957
+ role: "presentation"
9958
+ }, s), W.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: "pds-dropdown__no-results" }, l) : W), K))));
9959
+ }, la = {
9964
9960
  info: "circleInfo",
9965
9961
  warning: "triangleExclamation",
9966
9962
  critical: "diamondExclamation",
9967
9963
  discovery: "bullhorn"
9968
- }, fa = 200, pa = 50, ma = ({ banners: t, className: n, dataContext: r = "product", dismissLabel: i = "Dismiss", labelNext: a = "Go to next message", labelPrevious: o = "Go to previous message", typeLabels: s = {
9964
+ }, ua = 200, da = 50, fa = ({ banners: t, className: n, dataContext: r = "product", dismissLabel: i = "Dismiss", labelNext: a = "Go to next message", labelPrevious: o = "Go to previous message", typeLabels: s = {
9969
9965
  ...Jn,
9970
9966
  neutral: "Notice"
9971
9967
  }, ...c }) => {
@@ -9984,21 +9980,21 @@ var Hr = {
9984
9980
  }, w = d[0].type, T = w ? `${x}-group--${w}` : null, E = (e) => 500 - e, D = (e) => e === 0 ? 0 : -1, O = () => {
9985
9981
  m(d[0].id), setTimeout(() => {
9986
9982
  f((e) => [...e.slice(1), e[0]]), m(null);
9987
- }, fa);
9983
+ }, ua);
9988
9984
  }, k = () => {
9989
9985
  y({
9990
9986
  [d[0].id]: 502,
9991
9987
  [d[b - 1].id]: 501
9992
9988
  }), setTimeout(() => {
9993
9989
  m(d[0].id);
9994
- }, pa), setTimeout(() => {
9990
+ }, da), setTimeout(() => {
9995
9991
  f((e) => [e[e.length - 1], ...e.slice(0, e.length - 1)]), m(null), y({});
9996
- }, fa);
9992
+ }, ua);
9997
9993
  }, A = (t, n) => {
9998
9994
  let { iconName: r, id: a, isDismissible: o, message: c, onDismiss: u, type: d } = t, m = d === "critical" ? "alert" : "status", g = `${s[d]}: `, y = (e) => {
9999
9995
  e.preventDefault(), _(a), setTimeout(() => {
10000
9996
  u?.(), _(null), f((e) => e.filter((e) => e.id !== a));
10001
- }, fa);
9997
+ }, ua);
10002
9998
  }, b = v[a] ?? E(n);
10003
9999
  return /* @__PURE__ */ e.createElement("div", {
10004
10000
  key: a,
@@ -10013,7 +10009,7 @@ var Hr = {
10013
10009
  style: { zIndex: b }
10014
10010
  }, /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, /* @__PURE__ */ e.createElement(Q, {
10015
10011
  className: `${x}__icon ${x}__icon--${t.type}`,
10016
- iconName: d === "neutral" ? r : da[d],
10012
+ iconName: d === "neutral" ? r : la[d],
10017
10013
  size: l ? "l" : "m"
10018
10014
  }), /* @__PURE__ */ e.createElement("div", { className: `${x}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, g, " "), c)), o && /* @__PURE__ */ e.createElement("button", {
10019
10015
  className: `${x}__dismiss-button`,
@@ -10044,12 +10040,12 @@ var Hr = {
10044
10040
  onClick: O,
10045
10041
  size: "m"
10046
10042
  }), d.map((e, t) => A(e, t))) : A(d[0], 0));
10047
- }, ha = {
10043
+ }, pa = {
10048
10044
  info: "circleInfo",
10049
10045
  warning: "triangleExclamation",
10050
10046
  success: "circleCheck",
10051
10047
  critical: "diamondExclamation"
10052
- }, ga = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
10048
+ }, ma = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
10053
10049
  ...Jn,
10054
10050
  working: "Working"
10055
10051
  }, ...o }) => {
@@ -10070,16 +10066,16 @@ var Hr = {
10070
10066
  role: l,
10071
10067
  ...o
10072
10068
  }, /* @__PURE__ */ e.createElement("div", { className: `${s}__icon ${s}__icon-${i}` }, i === "working" ? /* @__PURE__ */ e.createElement(bn, { size: "l" }) : /* @__PURE__ */ e.createElement(Q, {
10073
- iconName: `${i}` in ha ? ha[i] : ha.info,
10069
+ iconName: `${i}` in pa ? pa[i] : pa.info,
10074
10070
  size: "l"
10075
10071
  })), /* @__PURE__ */ e.createElement("div", { className: `${s}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, u), /* @__PURE__ */ e.createElement("div", { className: `${s}__title` }, r), /* @__PURE__ */ e.createElement("div", { className: `${s}__message` }, d)));
10076
- }, _a = {
10072
+ }, ha = {
10077
10073
  info: "circleInfo",
10078
10074
  warning: "triangleExclamation",
10079
10075
  success: "circleCheck",
10080
10076
  critical: "diamondExclamation",
10081
10077
  discovery: "squareQuestion"
10082
- }, va = ({ className: t, ctaButton: n, ctaIcon: r, dismissLabel: i = "Dismiss", id: a, isDismissible: o, message: s, onDismiss: c, title: l, type: d = "info", typeLabels: f = Jn, ...p }) => {
10078
+ }, ga = ({ className: t, ctaButton: n, ctaIcon: r, dismissLabel: i = "Dismiss", id: a, isDismissible: o, message: s, onDismiss: c, title: l, type: d = "info", typeLabels: f = Jn, ...p }) => {
10083
10079
  let m = h(null), g = h(void 0), _ = "pds-section-message", v = {
10084
10080
  error: `${_}--error`,
10085
10081
  success: `${_}--success`,
@@ -10115,7 +10111,7 @@ var Hr = {
10115
10111
  role: x,
10116
10112
  ...p
10117
10113
  }, /* @__PURE__ */ e.createElement("div", { className: `${_}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${_}__icon ${_}__icon-${d}` }, /* @__PURE__ */ e.createElement(Q, {
10118
- iconName: `${d}` in _a ? _a[d] : _a.info,
10114
+ iconName: `${d}` in ha ? ha[d] : ha.info,
10119
10115
  size: "l"
10120
10116
  })), /* @__PURE__ */ e.createElement("div", { className: `${_}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, S), l && /* @__PURE__ */ e.createElement("div", { className: `${_}__title` }, l), /* @__PURE__ */ e.createElement("div", { className: `${_}__message` }, C))), (n || o) && /* @__PURE__ */ e.createElement("div", { className: `${_}__actions` }, n && /* @__PURE__ */ e.createElement(Dn, {
10121
10117
  ...n,
@@ -10130,10 +10126,10 @@ var Hr = {
10130
10126
  onClick: E,
10131
10127
  size: "m"
10132
10128
  })));
10133
- }, ya = 3e4, ba = {
10129
+ }, _a = 3e4, va = {
10134
10130
  pause: "Pause notification",
10135
10131
  resume: "Resume notification"
10136
- }, xa = i({ labelStrings: ba }), Sa = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(Mn, {
10132
+ }, ya = i({ labelStrings: va }), ba = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement(Mn, {
10137
10133
  ariaLabel: t || "Close",
10138
10134
  className: "pds-toast__close-button",
10139
10135
  onClick: (e) => {
@@ -10141,13 +10137,13 @@ var Hr = {
10141
10137
  },
10142
10138
  size: "s",
10143
10139
  tabIndex: 0
10144
- }), Ca = ({ className: t, labelStrings: n = ba, limit: r = 5, position: i = "bottom-right" }) => {
10140
+ }), xa = ({ className: t, labelStrings: n = va, limit: r = 5, position: i = "bottom-right" }) => {
10145
10141
  let a = Z(["pds-toaster", t]);
10146
- return /* @__PURE__ */ e.createElement(xa.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(ze, {
10142
+ return /* @__PURE__ */ e.createElement(ya.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(ze, {
10147
10143
  newestOnTop: !0,
10148
10144
  autoClose: !1,
10149
10145
  className: a,
10150
- closeButton: Sa,
10146
+ closeButton: ba,
10151
10147
  draggable: !1,
10152
10148
  icon: !1,
10153
10149
  limit: r,
@@ -10157,25 +10153,25 @@ var Hr = {
10157
10153
  role: "status",
10158
10154
  transition: Re
10159
10155
  }));
10160
- }, wa = {
10156
+ }, Sa = {
10161
10157
  info: "circleInfo",
10162
10158
  success: "circleCheck",
10163
10159
  warning: "triangleExclamation",
10164
10160
  critical: "diamondExclamation"
10165
- }, Ta = {
10161
+ }, Ca = {
10166
10162
  info: "Information",
10167
10163
  success: "Success",
10168
10164
  warning: "Warning",
10169
10165
  critical: "Critical",
10170
10166
  working: "Working..."
10171
- }, Ea = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = Ta }) => {
10167
+ }, wa = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = Ca }) => {
10172
10168
  let c = "pds-toast", u = {
10173
10169
  critical: `${c}--critical`,
10174
10170
  info: `${c}--info`,
10175
10171
  success: `${c}--success`,
10176
10172
  warning: `${c}--warning`,
10177
10173
  working: `${c}--working`
10178
- }, d = `${s[o]} `, { labelStrings: f } = l(xa), [p, m] = g(!1), h = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
10174
+ }, d = `${s[o]} `, { labelStrings: f } = l(ya), [p, m] = g(!1), h = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
10179
10175
  return /* @__PURE__ */ e.createElement("div", {
10180
10176
  className: Z([
10181
10177
  c,
@@ -10185,7 +10181,7 @@ var Hr = {
10185
10181
  id: i
10186
10182
  }, /* @__PURE__ */ e.createElement("div", { className: `${c}__icon-container` }, o === "working" ? /* @__PURE__ */ e.createElement(bn, { size: "l" }) : /* @__PURE__ */ e.createElement(Q, {
10187
10183
  className: `${c}__icon ${c}__icon--${o}`,
10188
- iconName: wa[o],
10184
+ iconName: Sa[o],
10189
10185
  size: "l"
10190
10186
  })), /* @__PURE__ */ e.createElement("div", { className: `${c}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), h && /* @__PURE__ */ e.createElement("button", {
10191
10187
  "aria-label": p ? f.resume : f.pause,
@@ -10200,11 +10196,11 @@ var Hr = {
10200
10196
  iconName: p ? "play" : "pause",
10201
10197
  size: "m"
10202
10198
  })));
10203
- }, Da = /* @__PURE__ */ function(e) {
10199
+ }, Ta = /* @__PURE__ */ function(e) {
10204
10200
  return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
10205
- }({}), Oa = () => [
10201
+ }({}), Ea = () => [
10206
10202
  (t, n, r = {}) => {
10207
- let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(ya, r.autoClose) : !1, o = /* @__PURE__ */ e.createElement(Ea, {
10203
+ let i = r.toastId ?? crypto.randomUUID(), a = typeof r.autoClose == "number" ? Math.max(_a, r.autoClose) : !1, o = /* @__PURE__ */ e.createElement(wa, {
10208
10204
  autoCloseDuration: a || void 0,
10209
10205
  toastId: i,
10210
10206
  type: t
@@ -10229,7 +10225,7 @@ var Hr = {
10229
10225
  enter: "pds-toast--bounceInPlace",
10230
10226
  exit: "pds-toast--slideOut"
10231
10227
  })
10232
- ], ka = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close drawer", disableOutsideClick: a, hasCloseButton: o = !0, isOpen: s = !1, placement: l = "right", setIsOpen: d = () => {}, size: f = "m", title: p, width: m, ..._ }) => {
10228
+ ], Da = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close drawer", disableOutsideClick: a, hasCloseButton: o = !0, isOpen: s = !1, placement: l = "right", setIsOpen: d = () => {}, size: f = "m", title: p, width: m, ..._ }) => {
10233
10229
  let v = ft(n), y = v.__unslotted, b = v.footer, x = "pds-drawer", S = m ? null : `${x}--${f}`, C = `${x}--${l}`, w = m ? { width: m } : void 0, [T, E] = g(s), [D, O] = g(!1), k = h(null), { closeOverlay: A, openOverlay: j } = en();
10234
10230
  u(() => {
10235
10231
  s ? E(!0) : O(!1);
@@ -10294,7 +10290,7 @@ var Hr = {
10294
10290
  onClick: M,
10295
10291
  size: "m"
10296
10292
  })), /* @__PURE__ */ e.createElement("div", { className: `${x}__content` }, y), b && /* @__PURE__ */ e.createElement("div", { className: `${x}__footer` }, b)))), document.body) : null;
10297
- }, Aa = ({ ariaLabel: t, background: n = "default", children: r, className: i, closeButtonLabel: a = "Close", closeIconName: o = "compress", hasCloseButton: s = !0, isOpen: c, onClose: l, ...d }) => {
10293
+ }, Oa = ({ ariaLabel: t, background: n = "default", children: r, className: i, closeButtonLabel: a = "Close", closeIconName: o = "compress", hasCloseButton: s = !0, isOpen: c, onClose: l, ...d }) => {
10298
10294
  let f = "pds-full-screen-overlay", p = n === "default" ? null : `${f}--bg-${n}`, { closeOverlay: m, openOverlay: h } = en();
10299
10295
  u(() => {
10300
10296
  if (!(!h || !m) && c) return h(), () => m();
@@ -10359,7 +10355,7 @@ var Hr = {
10359
10355
  }),
10360
10356
  zIndex: 9999
10361
10357
  }), /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, r)))), document.body) : null;
10362
- }, ja = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close modal", contentMaxHeight: a, disableOutsideClick: o, hasCloseButton: s = !0, modalIsOpen: c = !1, setModalIsOpen: l = () => {}, size: d = "m", title: f, ...p }) => {
10358
+ }, ka = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close modal", contentMaxHeight: a, disableOutsideClick: o, hasCloseButton: s = !0, modalIsOpen: c = !1, setModalIsOpen: l = () => {}, size: d = "m", title: f, ...p }) => {
10363
10359
  let m = ft(n), h = m.__unslotted, _ = m.footer, v = "pds-modal", y = d === "m" ? null : `${v}--${d}`, S = a ? {
10364
10360
  maxHeight: a,
10365
10361
  paddingInlineEnd: "1rem",
@@ -10435,27 +10431,27 @@ var Hr = {
10435
10431
  className: `${v}__content`,
10436
10432
  style: S
10437
10433
  }, h), _ && /* @__PURE__ */ e.createElement("div", { className: `${v}__footer` }, _)))), document.body) : null;
10438
- }, Ma = (e, t) => {
10434
+ }, Aa = (e, t) => {
10439
10435
  let n = t - e + 1;
10440
10436
  return Array.from({ length: n }, (t, n) => n + e);
10441
- }, Na = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => m(() => {
10437
+ }, ja = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => m(() => {
10442
10438
  let i = Math.ceil(r / n), a = e + 5, o = i;
10443
- if (a >= i) return Ma(1, i);
10439
+ if (a >= i) return Aa(1, i);
10444
10440
  let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
10445
10441
  if (!l && u) return [
10446
- ...Ma(1, 3 + 2 * e),
10442
+ ...Aa(1, 3 + 2 * e),
10447
10443
  "...",
10448
10444
  i
10449
10445
  ];
10450
10446
  if (l && !u) return [
10451
10447
  1,
10452
10448
  "...",
10453
- ...Ma(i - (3 + 2 * e) + 1, i)
10449
+ ...Aa(i - (3 + 2 * e) + 1, i)
10454
10450
  ];
10455
10451
  if (l && u) return [
10456
10452
  1,
10457
10453
  "...",
10458
- ...Ma(s, c),
10454
+ ...Aa(s, c),
10459
10455
  "...",
10460
10456
  o
10461
10457
  ];
@@ -10464,11 +10460,11 @@ var Hr = {
10464
10460
  n,
10465
10461
  e,
10466
10462
  t
10467
- ]), Pa = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
10463
+ ]), Ma = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
10468
10464
  previous: "Go to previous page",
10469
10465
  next: "Go to next page"
10470
10466
  }, onPageChange: c, size: l = "m", totalItemCount: u, ...d }) => {
10471
- let f = Na({
10467
+ let f = ja({
10472
10468
  currentPage: r,
10473
10469
  totalItemCount: u,
10474
10470
  bufferCount: t,
@@ -10522,7 +10518,7 @@ var Hr = {
10522
10518
  size: "m"
10523
10519
  }))
10524
10520
  }))));
10525
- }, Fa = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
10521
+ }, Na = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
10526
10522
  next: "Next",
10527
10523
  previous: "Previous"
10528
10524
  }, nextPage: s, onPageChange: c, previousPage: l, totalItemCount: u, ...d }) => {
@@ -10551,7 +10547,7 @@ var Hr = {
10551
10547
  iconName: "angleRight",
10552
10548
  size: "m"
10553
10549
  }))));
10554
- }, Ia = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
10550
+ }, Pa = ({ className: t, currentPage: n, headingLevel: r = "h2", headingText: i = "Pagination", itemsPerPage: a = 10, labelStrings: o = {
10555
10551
  next: "Go to next page",
10556
10552
  of: "of",
10557
10553
  page: "Page",
@@ -10655,7 +10651,7 @@ var Hr = {
10655
10651
  size: "m"
10656
10652
  }))
10657
10653
  })));
10658
- }, La = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
10654
+ }, Fa = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
10659
10655
  let [c, l] = g(i), f = d(), p = r ?? `expansion-panel-${f}`, m = "pds-expansion-panel", _ = a ? null : `${m}--no-border`, v = h(null);
10660
10656
  return u(() => {
10661
10657
  let e = v.current;
@@ -10679,7 +10675,7 @@ var Hr = {
10679
10675
  className: `${m}__icon ${c ? "rotated" : ""}`,
10680
10676
  iconName: "angleDown"
10681
10677
  })), /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, t)));
10682
- }, Ra = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
10678
+ }, Ia = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
10683
10679
  let a = "pds-expansion-panel-group", o = r === "standard" ? null : `${a}--${r}`;
10684
10680
  return /* @__PURE__ */ e.createElement("div", {
10685
10681
  className: Z([
@@ -10689,7 +10685,7 @@ var Hr = {
10689
10685
  ]),
10690
10686
  ...i
10691
10687
  }, t);
10692
- }, za = ({ children: t, className: n, padding: r = "standard", variant: i = "default", ...a }) => {
10688
+ }, La = ({ children: t, className: n, padding: r = "standard", variant: i = "default", ...a }) => {
10693
10689
  let o = "pds-panel", s = i === "default" ? null : `${o}--${i}`, c = `${o}__content`, l = r === "standard" ? null : `${c}--pad-${r}`;
10694
10690
  return /* @__PURE__ */ e.createElement("div", {
10695
10691
  className: Z([
@@ -10699,7 +10695,7 @@ var Hr = {
10699
10695
  ]),
10700
10696
  ...a
10701
10697
  }, /* @__PURE__ */ e.createElement("div", { className: Z([c, l]) }, t));
10702
- }, Ba = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
10698
+ }, Ra = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "m", ...o }) => {
10703
10699
  let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
10704
10700
  return /* @__PURE__ */ e.createElement("ul", {
10705
10701
  className: Z([
@@ -10711,7 +10707,7 @@ var Hr = {
10711
10707
  ]),
10712
10708
  ...o
10713
10709
  }, n);
10714
- }, Va = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
10710
+ }, za = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
10715
10711
  let o = "pds-panel-row", [s, c] = g(!1), l = ft(t), u = l["items-left"], d = l["items-right"], f = l["items-below"], p = () => {
10716
10712
  c((e) => !e);
10717
10713
  };
@@ -10742,10 +10738,10 @@ var Hr = {
10742
10738
  opacity: "0"
10743
10739
  }
10744
10740
  }, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-inside` }, f)));
10745
- }, Ha = ({ children: t, className: n, ...r }) => /* @__PURE__ */ e.createElement("div", {
10741
+ }, Ba = ({ children: t, className: n, ...r }) => /* @__PURE__ */ e.createElement("div", {
10746
10742
  className: Z(["pds-panel-stack", n ?? ""]),
10747
10743
  ...r
10748
- }, t), Ua = /* @__PURE__ */ e.createElement("svg", {
10744
+ }, t), Va = /* @__PURE__ */ e.createElement("svg", {
10749
10745
  "aria-label": "Pantheon",
10750
10746
  fill: "none",
10751
10747
  focusable: "false",
@@ -10807,7 +10803,7 @@ var Hr = {
10807
10803
  }), /* @__PURE__ */ e.createElement("path", {
10808
10804
  d: "M161.5 16.65H161V16.35H162.5V16.65H162V18.25H161.6V16.65H161.5ZM163.6 18.25L163.1 16.75V18.25H162.7V16.35H163.3L163.8 17.85L164.3 16.35H164.9V18.25H164.5V16.75L164 18.25H163.6Z",
10809
10805
  fill: "var(--pds-color-foreground-default)"
10810
- })), Wa = /* @__PURE__ */ e.createElement("svg", {
10806
+ })), Ha = /* @__PURE__ */ e.createElement("svg", {
10811
10807
  "aria-label": "Pantheon",
10812
10808
  fill: "none",
10813
10809
  focusable: "false",
@@ -10842,7 +10838,7 @@ var Hr = {
10842
10838
  }), /* @__PURE__ */ e.createElement("path", {
10843
10839
  d: "M5.4 24.2L3.7 19.9H7.6L9.4 24.2H13.1L9.8 16.3H1.7C1.1 16.3 0.7 16.3 0.4 17.2C0.0999996 18.3 0 20.4 0 24.5C0 28.6 -3.8743e-07 30.7 0.4 31.8C0.7 32.7 1 32.7 1.7 32.7H8.8L5.4 24.2Z",
10844
10840
  fill: "var(--pds-color-foreground-default)"
10845
- })), Ga = /* @__PURE__ */ e.createElement("svg", {
10841
+ })), Ua = /* @__PURE__ */ e.createElement("svg", {
10846
10842
  "aria-label": "Pantheon",
10847
10843
  fill: "none",
10848
10844
  focusable: "false",
@@ -10877,17 +10873,17 @@ var Hr = {
10877
10873
  }), /* @__PURE__ */ e.createElement("path", {
10878
10874
  d: "M135.7 0.299999H135.2V0H136.7V0.299999H136.2V1.9H135.8V0.299999H135.7ZM137.8 1.9L137.3 0.4V1.9H136.9V0H137.5L138 1.5L138.5 0H139.1V1.9H138.7V0.4L138.2 1.9H137.8Z",
10879
10875
  fill: "var(--pds-color-foreground-default)"
10880
- })), Ka = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...o }) => {
10876
+ })), Wa = ({ className: t, colorType: n = "default", displayType: r = "full", linkContent: i, size: a = "m", ...o }) => {
10881
10877
  let c = "pds-pantheon-logo", l = r && r !== "full" ? `${c}--${r}` : null, u = n && n !== "default" ? `${c}--${n}` : null, d = a === "m" ? null : `${c}--${a}`, f;
10882
10878
  switch (r) {
10883
10879
  case "full":
10884
- f = Ua;
10880
+ f = Va;
10885
10881
  break;
10886
10882
  case "icon":
10887
- f = Wa;
10883
+ f = Ha;
10888
10884
  break;
10889
10885
  case "wordmark":
10890
- f = Ga;
10886
+ f = Ua;
10891
10887
  break;
10892
10888
  }
10893
10889
  let p = s(i) && typeof i.props.children == "string" ? i.props.children : "", m = s(i) ? i.type : null, h = s(i) && m ? /* @__PURE__ */ e.createElement(m, Object.assign({}, i.props, {
@@ -10904,7 +10900,7 @@ var Hr = {
10904
10900
  ]),
10905
10901
  ...o
10906
10902
  }, i ? h : f);
10907
- }, qa = 8, Ja = 14, Ya = ({ className: t, classNameContainer: n, closeButtonLabel: r = "Close", content: i, customTrigger: a = !1, hasCloseButton: o = !1, offsetValue: s = 0, onClose: c = () => {}, placement: l = "top", popoverIsOpen: d = !1, setPopoverIsOpen: f = () => {}, title: p, triggerAccessibleText: m = "Show more information", triggerIcon: _ = "circleInfo", triggerIconSize: v = "m", ...x }) => {
10903
+ }, Ga = 8, Ka = 14, qa = ({ className: t, classNameContainer: n, closeButtonLabel: r = "Close", content: i, customTrigger: a = !1, hasCloseButton: o = !1, offsetValue: s = 0, onClose: c = () => {}, placement: l = "top", popoverIsOpen: d = !1, setPopoverIsOpen: f = () => {}, title: p, triggerAccessibleText: m = "Show more information", triggerIcon: _ = "circleInfo", triggerIconSize: v = "m", ...x }) => {
10908
10904
  let [D, k] = g(d);
10909
10905
  u(() => {
10910
10906
  k(d);
@@ -10931,12 +10927,12 @@ var Hr = {
10931
10927
  A(V),
10932
10928
  j(V),
10933
10929
  R(V)
10934
- ]), J = U.arrow?.x ?? 0, ee = U.arrow?.y ?? 0, te = J + Ja / 2, ne = ee + qa, { isMounted: re } = z(V, {
10930
+ ]), J = U.arrow?.x ?? 0, ee = U.arrow?.y ?? 0, te = J + Ka / 2, ne = ee + Ga, { isMounted: re } = z(V, {
10935
10931
  initial: { transform: "scale(0)" },
10936
10932
  common: ({ side: e }) => ({ transformOrigin: {
10937
- top: `${te}px calc(100% + ${qa}px)`,
10933
+ top: `${te}px calc(100% + ${Ga}px)`,
10938
10934
  bottom: `${te}px -8px`,
10939
- left: `calc(100% + ${qa}px) ${ne}px`,
10935
+ left: `calc(100% + ${Ga}px) ${ne}px`,
10940
10936
  right: `-8px ${ne}px`
10941
10937
  }[e] })
10942
10938
  });
@@ -10968,23 +10964,23 @@ var Hr = {
10968
10964
  className: `${P}__arrow`,
10969
10965
  context: V,
10970
10966
  fill: "var(--pds-color-surface-default)",
10971
- height: qa,
10967
+ height: Ga,
10972
10968
  stroke: "var(--pds-color-border-default)",
10973
10969
  strokeWidth: 1,
10974
10970
  tipRadius: 0,
10975
- width: Ja
10971
+ width: Ka
10976
10972
  }), /* @__PURE__ */ e.createElement("div", { className: `${P}__container-inner` }, p && /* @__PURE__ */ e.createElement("div", { className: `${P}__title` }, p), i && /* @__PURE__ */ e.createElement("div", { className: `${P}__content` }, i), o && /* @__PURE__ */ e.createElement("div", { className: `${P}__close-wrapper` }, /* @__PURE__ */ e.createElement(Mn, {
10977
10973
  ariaLabel: r,
10978
10974
  onClick: G,
10979
10975
  size: "s"
10980
10976
  })))))));
10981
- }, Xa = {
10977
+ }, Ja = {
10982
10978
  neutral: "--pds-color-status-neutral-indicator",
10983
10979
  info: "--pds-color-status-info-fill",
10984
10980
  success: "--pds-color-status-success-fill",
10985
10981
  warning: "--pds-color-status-warning-fill",
10986
10982
  critical: "--pds-color-status-critical-fill"
10987
- }, Za = ({ className: t, colorBreakpoints: n = [{
10983
+ }, Ya = ({ className: t, colorBreakpoints: n = [{
10988
10984
  colorType: "info",
10989
10985
  percentage: 0
10990
10986
  }, {
@@ -11005,7 +11001,7 @@ var Hr = {
11005
11001
  id: m
11006
11002
  }, i), (x || l) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, x && b, l && /* @__PURE__ */ e.createElement("div", {
11007
11003
  className: `${h}__percentage`,
11008
- style: { color: `hsl(from var(${Xa[y]}) h s calc(l - 7))` }
11004
+ style: { color: `hsl(from var(${Ja[y]}) h s calc(l - 7))` }
11009
11005
  }, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${h}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
11010
11006
  "aria-labelledby": m,
11011
11007
  "aria-valuenow": v,
@@ -11015,16 +11011,16 @@ var Hr = {
11015
11011
  className: `${h}__bar`,
11016
11012
  style: {
11017
11013
  width: `${v}%`,
11018
- backgroundColor: `var(${Xa[y]})`
11014
+ backgroundColor: `var(${Ja[y]})`
11019
11015
  }
11020
11016
  }))), S && b);
11021
- }, Qa = {
11017
+ }, Xa = {
11022
11018
  neutral: "--pds-color-status-neutral-indicator",
11023
11019
  info: "--pds-color-status-info-fill",
11024
11020
  success: "--pds-color-status-success-fill",
11025
11021
  warning: "--pds-color-status-warning-fill",
11026
11022
  critical: "--pds-color-status-critical-fill"
11027
- }, $a = ({ className: t, colorBreakpoints: n = [{
11023
+ }, Za = ({ className: t, colorBreakpoints: n = [{
11028
11024
  colorType: "info",
11029
11025
  percentage: 0
11030
11026
  }, {
@@ -11073,7 +11069,7 @@ var Hr = {
11073
11069
  strokeDasharray: x,
11074
11070
  strokeDashoffset: S,
11075
11071
  strokeWidth: y,
11076
- style: { stroke: `var(${Qa[C]})` },
11072
+ style: { stroke: `var(${Xa[C]})` },
11077
11073
  transform: `rotate(-90 ${v / 2} ${v / 2})`
11078
11074
  }), /* @__PURE__ */ e.createElement("text", {
11079
11075
  alignmentBaseline: "middle",
@@ -11083,29 +11079,29 @@ var Hr = {
11083
11079
  x: "50%",
11084
11080
  y: "51%"
11085
11081
  }, w))));
11086
- }, eo = {
11082
+ }, Qa = {
11087
11083
  of: "of",
11088
11084
  showing: "Showing",
11089
11085
  unitPlural: "results",
11090
11086
  unitSingular: "result"
11091
- }, to = (e, t, n, r) => new Intl.PluralRules(r).select(e) === "one" ? t : n, no = ({ className: t, countMatching: n, countTotal: r, labelStrings: i, locale: a, ...o }) => {
11087
+ }, $a = (e, t, n, r) => new Intl.PluralRules(r).select(e) === "one" ? t : n, eo = ({ className: t, countMatching: n, countTotal: r, labelStrings: i, locale: a, ...o }) => {
11092
11088
  let s = "pds-result-count", c = `${s}__number`, { of: l, showing: u, unitPlural: d, unitSingular: f } = {
11093
- ...eo,
11089
+ ...Qa,
11094
11090
  ...i
11095
- }, p = n !== void 0, m = to(r, f, d, a);
11091
+ }, p = n !== void 0, m = $a(r, f, d, a);
11096
11092
  return /* @__PURE__ */ e.createElement("div", {
11097
11093
  "aria-live": "polite",
11098
11094
  className: Z([s, t ?? ""]),
11099
11095
  ...o
11100
11096
  }, /* @__PURE__ */ e.createElement("span", null, p && /* @__PURE__ */ e.createElement(e.Fragment, null, u && `${u} `, /* @__PURE__ */ e.createElement("span", { className: c }, n), ` ${l} `), /* @__PURE__ */ e.createElement("span", { className: c }, r), ` ${m}`));
11101
- }, ro = {
11097
+ }, to = {
11102
11098
  privacy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"),
11103
11099
  dataSubjectRequest: /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"),
11104
11100
  cookiePolicy: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"),
11105
11101
  termsOfUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"),
11106
11102
  acceptableUse: /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"),
11107
11103
  accessibilityStatement: /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")
11108
- }, io = (e) => typeof e == "string", ao = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
11104
+ }, no = (e) => typeof e == "string", ro = ({ as: t = "div", children: n, className: r, containerWidth: i = "full", hasTopBorder: a, legalLinks: o = [
11109
11105
  "privacy",
11110
11106
  "dataSubjectRequest",
11111
11107
  "cookiePolicy",
@@ -11122,8 +11118,8 @@ var Hr = {
11122
11118
  r ?? ""
11123
11119
  ]),
11124
11120
  ...c
11125
- }, /* @__PURE__ */ e.createElement("div", { className: f }, n && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", p, " Pantheon Systems, Inc."), o.map((t, n) => io(t) ? /* @__PURE__ */ e.createElement(e.Fragment, { key: t }, ro[t]) : /* @__PURE__ */ e.createElement(e.Fragment, { key: n }, t)))));
11126
- }, oo = ({ className: t, option: n, ...r }) => {
11121
+ }, /* @__PURE__ */ e.createElement("div", { className: f }, n && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", p, " Pantheon Systems, Inc."), o.map((t, n) => no(t) ? /* @__PURE__ */ e.createElement(e.Fragment, { key: t }, to[t]) : /* @__PURE__ */ e.createElement(e.Fragment, { key: n }, t)))));
11122
+ }, io = ({ className: t, option: n, ...r }) => {
11127
11123
  let i = "pds-site-option-display", a = n.type ? er[n.type] : "boltSolid", o = h(null), [s] = Ue(o), c = s.width / 16 - 7.5, l, u;
11128
11124
  n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
11129
11125
  let d = /* @__PURE__ */ e.createElement(xn, {
@@ -11146,7 +11142,7 @@ var Hr = {
11146
11142
  className: `${i}__status`,
11147
11143
  style: { pointerEvents: "none" }
11148
11144
  }, d));
11149
- }, so = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
11145
+ }, ao = ({ className: t, disabled: n = !1, id: r, isLoading: i = !1, label: a = "Search sites", labelStrings: o = {
11150
11146
  clearButton: "Clear input text",
11151
11147
  inputInstructions: "Type to search options"
11152
11148
  }, loadingText: s = "Loading results...", noResultsText: c = "No results found", onFocus: l, onOptionSelect: u, placeholder: d = "Search sites", siteList: f, ...p }) => {
@@ -11158,7 +11154,7 @@ var Hr = {
11158
11154
  id: n,
11159
11155
  label: i,
11160
11156
  value: r ?? i,
11161
- optionDisplay: /* @__PURE__ */ e.createElement(oo, { option: t }),
11157
+ optionDisplay: /* @__PURE__ */ e.createElement(io, { option: t }),
11162
11158
  siteData: t
11163
11159
  };
11164
11160
  });
@@ -11187,7 +11183,7 @@ var Hr = {
11187
11183
  };
11188
11184
  //#endregion
11189
11185
  //#region src/components/SortableList/sortable-utils.ts
11190
- function co(e, t, n = null, r = 0, i = []) {
11186
+ function oo(e, t, n = null, r = 0, i = []) {
11191
11187
  return e.reduce((e, a, o) => {
11192
11188
  let s = !!a.children?.length, c = t.has(a.id);
11193
11189
  return e.push({
@@ -11199,10 +11195,10 @@ function co(e, t, n = null, r = 0, i = []) {
11199
11195
  index: o,
11200
11196
  isExpanded: c,
11201
11197
  parentId: n
11202
- }), s && c && a.children && e.push(...co(a.children, t, a.id, r + 1, [...i, a.id])), e;
11198
+ }), s && c && a.children && e.push(...oo(a.children, t, a.id, r + 1, [...i, a.id])), e;
11203
11199
  }, []);
11204
11200
  }
11205
- function lo(e) {
11201
+ function so(e) {
11206
11202
  let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id)), r = [];
11207
11203
  for (let i of e) {
11208
11204
  let e = i.data.children ?? [], a = e.length > 0 && !e.some((e) => n.has(e.id)), o = {
@@ -11215,28 +11211,28 @@ function lo(e) {
11215
11211
  e && (e.children || (e.children = []), e.children.push(o));
11216
11212
  }
11217
11213
  }
11218
- return uo(r);
11214
+ return co(r);
11219
11215
  }
11220
- function uo(e) {
11216
+ function co(e) {
11221
11217
  return e.map((e) => {
11222
11218
  if (e.children?.length) return {
11223
11219
  ...e,
11224
- children: uo(e.children)
11220
+ children: co(e.children)
11225
11221
  };
11226
11222
  let { children: t, ...n } = e;
11227
11223
  return n;
11228
11224
  });
11229
11225
  }
11230
- function fo(e, t) {
11226
+ function lo(e, t) {
11231
11227
  for (let n of e) {
11232
11228
  if (n.id === t) return n;
11233
11229
  if (n.children) {
11234
- let e = fo(n.children, t);
11230
+ let e = lo(n.children, t);
11235
11231
  if (e) return e;
11236
11232
  }
11237
11233
  }
11238
11234
  }
11239
- function po(e, t, n, r, i, a, o) {
11235
+ function uo(e, t, n, r, i, a, o) {
11240
11236
  let s = e.findIndex((e) => e.id === n);
11241
11237
  if (s === -1) return 0;
11242
11238
  let c = e[s], l = Math.round(r / i), u = e.find((e) => e.id === t), d = (o ?? u?.depth ?? c.depth) + l, f = e[s - 1], p = f ? f.depth + 1 : 0, m = e.slice(s + 1).find((e) => e.id !== t && !e.ancestorIds.includes(t) && !e.ancestorIds.includes(n)), h = m ? m.depth : 0;
@@ -11244,7 +11240,7 @@ function po(e, t, n, r, i, a, o) {
11244
11240
  }
11245
11241
  //#endregion
11246
11242
  //#region src/components/SortableList/SortableListHeader.tsx
11247
- var mo = ({ children: t, className: n, columns: r, ...i }) => {
11243
+ var fo = ({ children: t, className: n, columns: r, ...i }) => {
11248
11244
  if (!r && !t) return null;
11249
11245
  let a = r ? {
11250
11246
  display: "grid",
@@ -11265,13 +11261,13 @@ var mo = ({ children: t, className: n, columns: r, ...i }) => {
11265
11261
  };
11266
11262
  //#endregion
11267
11263
  //#region src/components/SortableList/useSortableTree.ts
11268
- function ho({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
11264
+ function po({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r }) {
11269
11265
  let i = n !== void 0, [a, o] = g(() => n ?? e ?? []), [s, l] = g(/* @__PURE__ */ new Set()), u = h(null), d = h(t);
11270
11266
  t && !d.current && (u.current = {
11271
11267
  items: i ? n : a,
11272
11268
  expandedIds: s
11273
- }), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && _o("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
11274
- let f = i ? n : a, p = m(() => co(f, s), [f, s]), _ = m(() => p.map((e) => e.id), [p]), v = c((e) => {
11269
+ }), t || (u.current = null), d.current = t, process.env.NODE_ENV !== "production" && n !== void 0 && e !== void 0 && ho("SortableList received both `items` and `defaultItems`. `items` will be used and `defaultItems` will be ignored.");
11270
+ let f = i ? n : a, p = m(() => oo(f, s), [f, s]), _ = m(() => p.map((e) => e.id), [p]), v = c((e) => {
11275
11271
  l((t) => {
11276
11272
  let n = new Set(t);
11277
11273
  return n.has(e) ? n.delete(e) : n.add(e), n;
@@ -11289,7 +11285,7 @@ function ho({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
11289
11285
  }, []),
11290
11286
  flatNodes: p,
11291
11287
  handleReorder: c((e) => {
11292
- let t = lo(e);
11288
+ let t = so(e);
11293
11289
  i || o(t), r?.(t);
11294
11290
  }, [i, r]),
11295
11291
  resetToSnapshot: c(() => {
@@ -11301,24 +11297,24 @@ function ho({ defaultItems: e, isDragEnabled: t = !1, items: n, onReorder: r })
11301
11297
  toggleExpand: v
11302
11298
  };
11303
11299
  }
11304
- var go = /* @__PURE__ */ new Set();
11305
- function _o(e) {
11306
- go.has(e) || (go.add(e), console.warn(e));
11300
+ var mo = /* @__PURE__ */ new Set();
11301
+ function ho(e) {
11302
+ mo.has(e) || (mo.add(e), console.warn(e));
11307
11303
  }
11308
11304
  //#endregion
11309
11305
  //#region src/components/SortableList/SortableList.tsx
11310
- var vo = 24, yo = { droppable: { strategy: qe.Always } }, bo = o(function({ children: n, className: r, columns: i, defaultItems: a, getItemLabel: o = (e) => String(e.id), isDragEnabled: l, isItemLocked: u = () => !1, isNestingLocked: d = () => !1, items: p, maxDepth: _ = 0, onReorder: v, renderRow: y, reorderMode: b = "always", screenReaderInstructions: x, ...S }, C) {
11306
+ var go = 24, _o = { droppable: { strategy: qe.Always } }, vo = o(function({ children: n, className: r, columns: i, defaultItems: a, getItemLabel: o = (e) => String(e.id), isDragEnabled: l, isItemLocked: u = () => !1, isNestingLocked: d = () => !1, items: p, maxDepth: _ = 0, onReorder: v, renderRow: y, reorderMode: b = "always", screenReaderInstructions: x, ...S }, C) {
11311
11307
  let w = "pds-sortable-list", [T, E] = g(null), D = h(null), [O, k] = g(!1), A = h(!1), [j, M] = g(null), N = h(0), P = h(0), F = h("pointer"), I = h(0), L = h(null), [R, z] = g(0), B = h(0), [V, H] = g(0), U = h(0), W = c((e, t) => {
11312
11308
  if (_ > 0 && (e.key === "ArrowLeft" || e.key === "ArrowRight")) {
11313
11309
  e.preventDefault();
11314
11310
  let n = e.key === "ArrowRight" ? 1 : -1, r = B.current, i = Math.max(-_, Math.min(_, r + n)), a = i - r;
11315
11311
  return B.current = i, z(i), {
11316
- x: t.currentCoordinates.x + a * vo,
11312
+ x: t.currentCoordinates.x + a * go,
11317
11313
  y: t.currentCoordinates.y
11318
11314
  };
11319
11315
  }
11320
11316
  return $e(e, t);
11321
- }, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: q, flatNodes: J, handleReorder: ee, resetToSnapshot: te, sortableIds: ne, toggleExpand: re } = ho({
11317
+ }, [_]), G = b === "always" || b === "toggle" && (l ?? !1), { currentItems: K, expandItem: q, flatNodes: J, handleReorder: ee, resetToSnapshot: te, sortableIds: ne, toggleExpand: re } = po({
11322
11318
  defaultItems: a,
11323
11319
  isDragEnabled: G,
11324
11320
  items: p,
@@ -11345,9 +11341,9 @@ var vo = 24, yo = { droppable: { strategy: qe.Always } }, bo = o(function({ chil
11345
11341
  se,
11346
11342
  oe,
11347
11343
  j
11348
- ]).size > 0, le = m(() => T ? J.find((e) => e.id === T) ?? null : null, [T, J]), ue = m(() => T ? fo(K, String(T)) ?? null : null, [T, K]), de = m(() => {
11344
+ ]).size > 0, le = m(() => T ? J.find((e) => e.id === T) ?? null : null, [T, J]), ue = m(() => T ? lo(K, String(T)) ?? null : null, [T, K]), de = m(() => {
11349
11345
  let e = le?.depth ?? 0;
11350
- return !T || !j || O || _ === 0 ? e : po(J, String(T), String(j), V * vo, vo, _);
11346
+ return !T || !j || O || _ === 0 ? e : uo(J, String(T), String(j), V * go, go, _);
11351
11347
  }, [
11352
11348
  T,
11353
11349
  le,
@@ -11359,7 +11355,7 @@ var vo = 24, yo = { droppable: { strategy: qe.Always } }, bo = o(function({ chil
11359
11355
  ]), fe = m(() => {
11360
11356
  if (!T || O || de === 0 || j && se(j)) return null;
11361
11357
  let e = J.findIndex((e) => e.id === T);
11362
- return e === -1 ? null : xo(J, e, de);
11358
+ return e === -1 ? null : yo(J, e, de);
11363
11359
  }, [
11364
11360
  T,
11365
11361
  J,
@@ -11405,19 +11401,19 @@ var vo = 24, yo = { droppable: { strategy: qe.Always } }, bo = o(function({ chil
11405
11401
  }, [J, oe]), ge = c((e) => {
11406
11402
  let t = e.delta.x;
11407
11403
  if (P.current = t, A.current || _ === 0) return;
11408
- let n = Math.floor(t / vo), r = U.current;
11409
- (n > r || n < r && t < r * vo - vo * .4) && (U.current = n, H(n));
11404
+ let n = Math.floor(t / go), r = U.current;
11405
+ (n > r || n < r && t < r * go - go * .4) && (U.current = n, H(n));
11410
11406
  }, [_]), _e = c((e) => {
11411
11407
  let { active: t, over: n } = e, r = A.current, i = B.current, a = U.current;
11412
11408
  E(null), D.current = null, k(!1), A.current = !1, M(null), U.current = 0, H(0), L.current && (q(L.current), L.current = null);
11413
- let o = J.findIndex((e) => e.id === t.id), s = r ? i * vo : a * vo, c = !n || t.id === n.id, l = n?.id ?? null;
11409
+ let o = J.findIndex((e) => e.id === t.id), s = r ? i * go : a * go, c = !n || t.id === n.id, l = n?.id ?? null;
11414
11410
  if (r && i > 0 && c && o > 0 && (l = J[o - 1].id), !l || t.id === l) {
11415
11411
  if (o === -1) return;
11416
11412
  let e = J[o];
11417
11413
  if (!e) return;
11418
- let n = po(J, String(t.id), String(t.id), s, vo, _);
11414
+ let n = uo(J, String(t.id), String(t.id), s, go, _);
11419
11415
  if (n === e.depth) return;
11420
- let r = [...J], [i] = r.splice(o, 1), a = xo(r, o, n);
11416
+ let r = [...J], [i] = r.splice(o, 1), a = yo(r, o, n);
11421
11417
  if (a && Y.has(a)) return;
11422
11418
  let c = {
11423
11419
  ...i,
@@ -11439,9 +11435,9 @@ var vo = 24, yo = { droppable: { strategy: qe.Always } }, bo = o(function({ chil
11439
11435
  let e = J[u];
11440
11436
  g = Math.min(e.depth + 1, _), v = String(l);
11441
11437
  } else {
11442
- g = po(d, String(t.id), String(l), s, vo, _, p.depth);
11438
+ g = uo(d, String(t.id), String(l), s, go, _, p.depth);
11443
11439
  let e = d[h];
11444
- v = e && e.depth === g - 1 ? String(l) : xo(d, h, g);
11440
+ v = e && e.depth === g - 1 ? String(l) : yo(d, h, g);
11445
11441
  }
11446
11442
  if (v && Y.has(v)) return;
11447
11443
  let y = {
@@ -11464,24 +11460,24 @@ var vo = 24, yo = { droppable: { strategy: qe.Always } }, bo = o(function({ chil
11464
11460
  E(null), D.current = null, k(!1), A.current = !1, M(null), P.current = 0, U.current = 0, H(0), B.current = 0, z(0), L.current && (q(L.current), L.current = null);
11465
11461
  }, [q]), ye = m(() => ({
11466
11462
  onDragStart({ active: e }) {
11467
- let t = J.find((t) => t.id === e.id), n = fo(K, String(e.id));
11463
+ let t = J.find((t) => t.id === e.id), n = lo(K, String(e.id));
11468
11464
  return `Picked up ${n ? o(n) : String(e.id)}. Current position: ${t ? J.indexOf(t) + 1 : "?"} of ${J.length} at depth ${t?.depth ?? 0}.`;
11469
11465
  },
11470
11466
  onDragOver({ active: e, over: t }) {
11471
11467
  if (!t) return;
11472
11468
  let n = J.findIndex((e) => e.id === t.id);
11473
11469
  if (n === -1) return;
11474
- let r = fo(K, String(e.id)), i = r ? o(r) : String(e.id), a = po(J, String(e.id), String(t.id), P.current, vo, _);
11470
+ let r = lo(K, String(e.id)), i = r ? o(r) : String(e.id), a = uo(J, String(e.id), String(t.id), P.current, go, _);
11475
11471
  return `Moving ${i}. Target position: ${n + 1} of ${J.length} at depth ${a}.`;
11476
11472
  },
11477
11473
  onDragEnd({ active: e, over: t }) {
11478
- let n = fo(K, String(e.id)), r = n ? o(n) : String(e.id);
11474
+ let n = lo(K, String(e.id)), r = n ? o(n) : String(e.id);
11479
11475
  if (!t || e.id === t.id) return `${r} dropped. No change in position.`;
11480
- let i = J.findIndex((e) => e.id === t.id), a = po(J, String(e.id), String(t.id), P.current, vo, _);
11476
+ let i = J.findIndex((e) => e.id === t.id), a = uo(J, String(e.id), String(t.id), P.current, go, _);
11481
11477
  return `${r} dropped at position ${i + 1} of ${J.length} at depth ${a}.`;
11482
11478
  },
11483
11479
  onDragCancel({ active: e }) {
11484
- let t = J.find((t) => t.id === e.id), n = fo(K, String(e.id));
11480
+ let t = J.find((t) => t.id === e.id), n = lo(K, String(e.id));
11485
11481
  return `Sorting cancelled. ${n ? o(n) : String(e.id)} returned to position ${t ? J.indexOf(t) + 1 : "?"} of ${J.length}.`;
11486
11482
  }
11487
11483
  }), [
@@ -11489,14 +11485,14 @@ var vo = 24, yo = { droppable: { strategy: qe.Always } }, bo = o(function({ chil
11489
11485
  J,
11490
11486
  o,
11491
11487
  _
11492
- ]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type === mo ? e.cloneElement(t, be) : t);
11488
+ ]), be = { columns: i }, xe = t.map(n, (t) => s(t) && t.type === fo ? e.cloneElement(t, be) : t);
11493
11489
  return /* @__PURE__ */ e.createElement(We, {
11494
11490
  accessibility: {
11495
11491
  announcements: ye,
11496
11492
  ...x ? { screenReaderInstructions: { draggable: x } } : {}
11497
11493
  },
11498
11494
  collisionDetection: me,
11499
- measuring: yo,
11495
+ measuring: _o,
11500
11496
  onDragCancel: ve,
11501
11497
  onDragEnd: _e,
11502
11498
  onDragMove: ge,
@@ -11571,14 +11567,14 @@ var vo = 24, yo = { droppable: { strategy: qe.Always } }, bo = o(function({ chil
11571
11567
  return s(a) ? e.cloneElement(a, o) : a;
11572
11568
  })()) : null));
11573
11569
  });
11574
- function xo(e, t, n) {
11570
+ function yo(e, t, n) {
11575
11571
  if (n === 0) return null;
11576
11572
  for (let r = t - 1; r >= 0; r--) if (e[r].depth === n - 1) return e[r].id;
11577
11573
  return null;
11578
11574
  }
11579
11575
  //#endregion
11580
11576
  //#region src/components/SortableList/SortableRow.tsx
11581
- var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a = !1, id: o, isDragActive: s = !1, isDragging: c = !1, isDropTarget: l = !1, isExpanded: u = !1, isLocked: d = !1, isProjectedParent: f = !1, onToggleExpand: p, projectedDepthDelta: m, ...h }) => {
11577
+ var bo = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a = !1, id: o, isDragActive: s = !1, isDragging: c = !1, isDropTarget: l = !1, isExpanded: u = !1, isLocked: d = !1, isProjectedParent: f = !1, onToggleExpand: p, projectedDepthDelta: m, ...h }) => {
11582
11578
  let { attributes: g, isDragging: _, listeners: v, setNodeRef: y, transform: b, transition: x } = et({
11583
11579
  attributes: {
11584
11580
  role: "listitem",
@@ -11633,7 +11629,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11633
11629
  key: t.id,
11634
11630
  className: `${w}__cell`
11635
11631
  }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.label, ": "), j[t.id] ?? null)) : t));
11636
- }, Co = ({ actionCallback: t, actionIcon: n = "barsFilter", actionLabel: r, className: i, description: a, icon: o, iconColor: s = "neutral", isActive: c = !1, isLoading: l = !1, stat: u, title: f, ...p }) => {
11632
+ }, xo = ({ actionCallback: t, actionIcon: n = "barsFilter", actionLabel: r, className: i, description: a, icon: o, iconColor: s = "neutral", isActive: c = !1, isLoading: l = !1, stat: u, title: f, ...p }) => {
11637
11633
  let m = "pds-stat-panel", h = s === "neutral" ? null : `${m}--${s}`, g = c ? `${m}--active` : null, _ = d(), v = n && r && t;
11638
11634
  return /* @__PURE__ */ e.createElement("div", {
11639
11635
  "aria-labelledby": _,
@@ -11669,11 +11665,11 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11669
11665
  size: { width: 6 },
11670
11666
  textSize: "xl"
11671
11667
  }) : u && /* @__PURE__ */ e.createElement("span", { className: `${m}__stat` }, u)), a && /* @__PURE__ */ e.createElement("p", { className: `${m}__description` }, a));
11672
- }, wo = [
11668
+ }, So = [
11673
11669
  "default",
11674
11670
  "working",
11675
11671
  "checked"
11676
- ], To = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
11672
+ ], Co = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s = "default", ...c }) => {
11677
11673
  let l = {
11678
11674
  checkForUpdates: "Check for updates",
11679
11675
  checking: "Checking...",
@@ -11720,7 +11716,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11720
11716
  triggerIconColor: "default",
11721
11717
  triggerIconSize: "s"
11722
11718
  }), t === "left" && g));
11723
- }, Eo = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
11719
+ }, wo = ({ className: t, label: n = null, linkContent: r, type: i = "neutral", ...a }) => {
11724
11720
  let o = "pds-status-indicator", c = `${o}--${i}`, l = /* @__PURE__ */ e.createElement(e.Fragment, null, i === "working" ? /* @__PURE__ */ e.createElement(bn, {
11725
11721
  className: `${o}__spinner`,
11726
11722
  size: "m"
@@ -11737,7 +11733,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11737
11733
  ]),
11738
11734
  ...a
11739
11735
  }, r ? d : l);
11740
- }, Do = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
11736
+ }, To = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
11741
11737
  let o = "pds-step-list", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
11742
11738
  let a = /* @__PURE__ */ e.createElement("div", { className: `${o}__number` }, /* @__PURE__ */ e.createElement("span", null, i + 1)), s = /* @__PURE__ */ e.createElement("div", { className: `${o}__header` }, r), c = t ? /* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, t) : null, l = `${o}__step`;
11743
11739
  return /* @__PURE__ */ e.createElement("li", {
@@ -11755,7 +11751,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11755
11751
  style: r === "horizontal" ? { "--step-list-columns": i.length } : void 0,
11756
11752
  ...a
11757
11753
  }, l);
11758
- }, Oo = ({ className: t, steps: n, translatableLabels: r = {
11754
+ }, Eo = ({ className: t, steps: n, translatableLabels: r = {
11759
11755
  step: "Step",
11760
11756
  completed: "completed",
11761
11757
  hasError: "has an error",
@@ -11819,7 +11815,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11819
11815
  key: t.id,
11820
11816
  className: `${o}__step`,
11821
11817
  id: `${t.id}--mobile`
11822
- }, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement($a, {
11818
+ }, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(Za, {
11823
11819
  innerLabel: n,
11824
11820
  label: "Step progress",
11825
11821
  percentage: i,
@@ -11845,7 +11841,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11845
11841
  "data-steps": u,
11846
11842
  ...i
11847
11843
  }, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, p)));
11848
- }, ko = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
11844
+ }, Do = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
11849
11845
  let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
11850
11846
  return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
11851
11847
  className: Z([...p]),
@@ -11871,14 +11867,14 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11871
11867
  size: "s",
11872
11868
  variant: "highlight"
11873
11869
  })))));
11874
- }, Ao = ({ className: t, labelStrings: n = {
11870
+ }, Oo = ({ className: t, labelStrings: n = {
11875
11871
  step: "Step",
11876
11872
  completed: "completed",
11877
11873
  hasError: "has an error"
11878
11874
  }, steps: r, ...i }) => {
11879
11875
  let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
11880
11876
  let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
11881
- return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(ko, {
11877
+ return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(Do, {
11882
11878
  key: `s${i}`,
11883
11879
  _isFirstStep: c,
11884
11880
  "aria-current": a ? "step" : null,
@@ -11899,7 +11895,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
11899
11895
  className: Z([a, t ?? ""]),
11900
11896
  ...i
11901
11897
  }, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
11902
- }, jo = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", detailPanelNav: s = !0, detailPanelTitle: c, detailPanelWidth: l, emptyState: f, emptyStateHeading: p = "No results found.", emptyStateMessage: _, footer: v, getPageSizeLabel: y = (e) => `Show ${e} rows per page`, getRowClassName: b, getRowId: x, getRowSelectDisabledReason: S, getSelectRowLabel: C = (e, t) => `Select row ${t}`, getSortLabel: w = (e) => `Sort by ${e}`, inspectedRowId: T, isLoading: E = !1, isRowSelectable: D = () => !0, itemsPerPage: O, loadingRowCount: k = 5, maxHeight: A, minHeight: j, nextDetailPanelRowLabel: M = "Next row", onDetailPanelNext: N, onDetailPanelPrev: P, onPageChange: F, onPageSizeChange: I, onRowInspect: L, onRowSelectionChange: R, onSort: z, pageSizeOptions: B, pageSizeSelectLabel: V = "Rows per page", paginationLabels: H, panel: U, prevDetailPanelRowLabel: W = "Previous row", renderDetailPanel: G, renderDetailPanelFooter: K, rowData: q, selectAllLabel: J = "Select all rows", selectedRows: ee, sortKey: te, sortOrder: ne, totalItemCount: re, ...ie }) => {
11898
+ }, ko = ({ className: t, closeDetailPanelLabel: n = "Close detail panel", columns: r, currentPage: i, defaultSortKey: a, defaultSortOrder: o = "asc", detailPanelNav: s = !0, detailPanelTitle: c, detailPanelWidth: l, emptyState: f, emptyStateHeading: p = "No results found.", emptyStateMessage: _, footer: v, getPageSizeLabel: y = (e) => `Show ${e} rows per page`, getRowClassName: b, getRowId: x, getRowSelectDisabledReason: S, getSelectRowLabel: C = (e, t) => `Select row ${t}`, getSortLabel: w = (e) => `Sort by ${e}`, inspectedRowId: T, isLoading: E = !1, isRowSelectable: D = () => !0, itemsPerPage: O, loadingRowCount: k = 5, maxHeight: A, minHeight: j, nextDetailPanelRowLabel: M = "Next row", onDetailPanelNext: N, onDetailPanelPrev: P, onPageChange: F, onPageSizeChange: I, onRowInspect: L, onRowSelectionChange: R, onSort: z, pageSizeOptions: B, pageSizeSelectLabel: V = "Rows per page", paginationLabels: H, panel: U, prevDetailPanelRowLabel: W = "Previous row", renderDetailPanel: G, renderDetailPanelFooter: K, rowData: q, selectAllLabel: J = "Select all rows", selectedRows: ee, sortKey: te, sortOrder: ne, totalItemCount: re, ...ie }) => {
11903
11899
  let ae = "pds-table", oe = d(), Y = d(), se = h(null), X = z !== void 0, ce = F !== void 0, le = I !== void 0, ue = ce || O !== void 0 || B !== void 0, de = q.length > 0 || ce && (re ?? 0) > 0, [fe, pe] = g({
11904
11900
  key: a ?? "",
11905
11901
  order: a === void 0 ? "asc" : o
@@ -12082,7 +12078,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12082
12078
  showLabel: !1,
12083
12079
  size: "s",
12084
12080
  value: String(Se)
12085
- }), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(Ia, {
12081
+ }), /* @__PURE__ */ e.createElement("div", { className: "pds-table-wrapper__pagination-controls" }, /* @__PURE__ */ e.createElement(Pa, {
12086
12082
  currentPage: ce ? i ?? 1 : me,
12087
12083
  itemsPerPage: Se,
12088
12084
  labelStrings: H,
@@ -12123,8 +12119,8 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12123
12119
  size: "s",
12124
12120
  variant: "standard"
12125
12121
  }))))));
12126
- return U ? /* @__PURE__ */ e.createElement(za, { padding: "none" }, et) : et;
12127
- }, Mo = [
12122
+ return U ? /* @__PURE__ */ e.createElement(La, { padding: "none" }, et) : et;
12123
+ }, Ao = [
12128
12124
  " ",
12129
12125
  "/",
12130
12126
  ".",
@@ -12142,7 +12138,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12142
12138
  "=",
12143
12139
  "|",
12144
12140
  "~"
12145
- ], No = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Po = (e) => {
12141
+ ], jo = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Mo = (e) => {
12146
12142
  let t = [];
12147
12143
  return e.forEach((e) => {
12148
12144
  let { id: n, innerText: r } = e;
@@ -12155,18 +12151,18 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12155
12151
  title: r
12156
12152
  });
12157
12153
  }), t;
12158
- }, Fo = (e, t, n) => {
12154
+ }, No = (e, t, n) => {
12159
12155
  let [r, i] = g([]);
12160
12156
  return u(() => {
12161
12157
  let r = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = () => {
12162
12158
  let e = Array.from(document.querySelectorAll(r));
12163
12159
  e.forEach((e) => {
12164
- Mo.forEach((t) => {
12165
- e.id.includes(t) && (e.id = e.id.replace(new RegExp(No(t), "g"), "-"));
12160
+ Ao.forEach((t) => {
12161
+ e.id.includes(t) && (e.id = e.id.replace(new RegExp(jo(t), "g"), "-"));
12166
12162
  });
12167
12163
  }), e.forEach((e, t) => {
12168
12164
  e.id || (e.id = `${n}-item-${t}`);
12169
- }), i(Po(e));
12165
+ }), i(Mo(e));
12170
12166
  };
12171
12167
  a();
12172
12168
  let o = document.getElementById(e);
@@ -12182,7 +12178,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12182
12178
  t,
12183
12179
  n
12184
12180
  ]), { nestedHeadings: r };
12185
- }, Io = (e, t) => {
12181
+ }, Po = (e, t) => {
12186
12182
  let [n, r] = g(void 0), i = h({});
12187
12183
  return u(() => {
12188
12184
  let n = `#${e} h2:not(.${t}), #${e} h3:not(.${t})`, a = Array.from(document.querySelectorAll(n));
@@ -12201,7 +12197,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12201
12197
  o.disconnect(), r(void 0);
12202
12198
  };
12203
12199
  }, [e, t]), n;
12204
- }, Lo = ({ activeID: t, baseClass: n, headings: r, onLinkClick: i }) => /* @__PURE__ */ e.createElement("ul", { className: `${n}__list ${n}__list--top-level` }, r.map((r) => /* @__PURE__ */ e.createElement("li", {
12200
+ }, Fo = ({ activeID: t, baseClass: n, headings: r, onLinkClick: i }) => /* @__PURE__ */ e.createElement("ul", { className: `${n}__list ${n}__list--top-level` }, r.map((r) => /* @__PURE__ */ e.createElement("li", {
12205
12201
  key: r.id,
12206
12202
  className: `${n}__list-item`
12207
12203
  }, /* @__PURE__ */ e.createElement("a", {
@@ -12217,8 +12213,8 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12217
12213
  className: Z([`${n}__link`, r.id === t ? `${n}__link--active` : null]),
12218
12214
  href: `#${r.id}`,
12219
12215
  onClick: (e) => i(e, r.id)
12220
- }, r.title))))))), Ro = ({ appendIds: t = !1, ariaLabel: n = "Table of contents", className: r, headingLevel: i = "h2", headingText: a = "Table of contents", ignoreClass: o = "pds-toc-ignore", showHeading: s = !1, sourceID: c = "pds-toc-source", ...l }) => {
12221
- let u = "pds-toc", { nestedHeadings: f } = Fo(c, o, d()), p = Io(c, o), m = (e) => {
12216
+ }, r.title))))))), Io = ({ appendIds: t = !1, ariaLabel: n = "Table of contents", className: r, headingLevel: i = "h2", headingText: a = "Table of contents", ignoreClass: o = "pds-toc-ignore", showHeading: s = !1, sourceID: c = "pds-toc-source", ...l }) => {
12217
+ let u = "pds-toc", { nestedHeadings: f } = No(c, o, d()), p = Po(c, o), m = (e) => {
12222
12218
  typeof window < "u" && window.location.hash !== `#${e}` && window.history.pushState({}, "", `#${e}`);
12223
12219
  }, h = (e) => {
12224
12220
  document.querySelector(`#${e}`)?.scrollIntoView({
@@ -12236,13 +12232,13 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12236
12232
  baseClass: u,
12237
12233
  className: `${s ? "" : "visually-hidden"}`,
12238
12234
  level: i
12239
- }, a), /* @__PURE__ */ e.createElement(Lo, {
12235
+ }, a), /* @__PURE__ */ e.createElement(Fo, {
12240
12236
  activeID: p,
12241
12237
  baseClass: u,
12242
12238
  headings: f,
12243
12239
  onLinkClick: g
12244
12240
  }));
12245
- }, zo = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
12241
+ }, Lo = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
12246
12242
  let c = "pds-tabs", [l, d] = g(a ?? r);
12247
12243
  u(() => {
12248
12244
  a !== void 0 && d(a);
@@ -12356,7 +12352,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12356
12352
  className: `${c}__panel-content`,
12357
12353
  hidden: o !== l
12358
12354
  }, r)))));
12359
- }, Bo = [
12355
+ }, Ro = [
12360
12356
  "orange",
12361
12357
  "stone",
12362
12358
  "gold",
@@ -12370,7 +12366,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12370
12366
  "magenta",
12371
12367
  "rose",
12372
12368
  "red"
12373
- ], Vo = [
12369
+ ], zo = [
12374
12370
  "orange-solid",
12375
12371
  "teal-solid",
12376
12372
  "indigo-solid",
@@ -12380,14 +12376,14 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12380
12376
  "lime-solid",
12381
12377
  "sky-solid",
12382
12378
  "slate-solid"
12383
- ], Ho = [
12379
+ ], Bo = [
12384
12380
  "success-solid",
12385
12381
  "warning-solid",
12386
12382
  "critical-solid",
12387
12383
  "info-solid",
12388
12384
  "discovery-solid"
12389
- ], Uo = [...Vo, ...Ho], Wo = [...Bo, ...Vo], Go = (e) => Wo[parseInt(v(e), 16) % Wo.length], Ko = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, qo = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: o = "s", tagColor: c, tagLabel: l, truncationLength: u = 18, ...d }) => {
12390
- let [f, p] = g(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${Go(l)}`, _ = `${m}--${o}`, v = f ? null : "pds-tag--hide", y = () => {
12385
+ ], Vo = [...zo, ...Bo], Ho = [...Ro, ...zo], Uo = (e) => Ho[parseInt(v(e), 16) % Ho.length], Wo = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, Go = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", size: o = "s", tagColor: c, tagLabel: l, truncationLength: u = 18, ...d }) => {
12386
+ let [f, p] = g(!0), m = "pds-tag", h = c ? `${m}--${c}` : `${m}--${Uo(l)}`, _ = `${m}--${o}`, v = f ? null : "pds-tag--hide", y = () => {
12391
12387
  p((e) => !e);
12392
12388
  }, b, x, S;
12393
12389
  if (r && !n && s(r)) {
@@ -12409,7 +12405,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12409
12405
  }, /* @__PURE__ */ e.createElement("span", {
12410
12406
  className: `${m}__label`,
12411
12407
  title: l
12412
- }, u > 0 ? Ko(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
12408
+ }, u > 0 ? Wo(l, u) : l), n ? /* @__PURE__ */ e.createElement("button", {
12413
12409
  "aria-label": `${a}: ${l}`,
12414
12410
  className: `${m}__remove`,
12415
12411
  onClick: () => {
@@ -12421,7 +12417,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12421
12417
  iconName: "xmark",
12422
12418
  size: "m"
12423
12419
  })) : null);
12424
- }, Jo = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
12420
+ }, Ko = ({ backgroundColor: t = "transparent", children: n, className: r, padding: i = "none", ...a }) => {
12425
12421
  let o = "pds-utility-bar", s = t === "transparent" ? null : `${o}--bg-${t}`, c = i === "none" ? null : `${o}--pad-${i}`, l = ft(n), u = l["items-left"], d = l["items-right"] ?? l.__unslotted;
12426
12422
  return /* @__PURE__ */ e.createElement("div", {
12427
12423
  className: Z([
@@ -12432,7 +12428,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12432
12428
  ]),
12433
12429
  ...a
12434
12430
  }, /* @__PURE__ */ e.createElement("div", { className: `${o}__layout` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-left` }, u), /* @__PURE__ */ e.createElement("div", { className: `${o}__items-right` }, d)));
12435
- }, Yo = () => {
12431
+ }, qo = () => {
12436
12432
  let e = typeof window < "u", t = (e) => e >= 1440 ? "xl" : e >= 1280 ? "lg" : e >= 768 ? "md" : "sm", [n, r] = g(e ? t(window.innerWidth) : "lg");
12437
12433
  return u(() => {
12438
12434
  if (!e) return;
@@ -12443,7 +12439,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12443
12439
  window.removeEventListener("resize", n);
12444
12440
  };
12445
12441
  }, []), n;
12446
- }, Xo = ({ children: t, className: n, drawerContent: r, drawerProps: i, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: l, keyboardShortcuts: d = !0, labels: f, mainBackground: m, mainContentElement: _ = "main", mainContentMaxWidth: v = 1600, mainContentProps: y, onDrawerToggle: b, onSidebarToggle: x, scrollableContent: S, sidebarBackground: C, sidebarCollapsedWidth: w = 4, sidebarExpandedWidth: T = "15%", sidebarExpandedWidthMax: E = 18, sidebarExpandedWidthMin: D = 14.75, sidebarProps: O, topOffset: k, ...A }) => {
12442
+ }, Jo = ({ children: t, className: n, drawerContent: r, drawerProps: i, hasDrawerToggle: o, hasSidebarToggle: s, isDrawerOpen: c = !1, isSidebarCollapsed: l, keyboardShortcuts: d = !0, labels: f, mainBackground: m, mainContentElement: _ = "main", mainContentMaxWidth: v = 1600, mainContentProps: y, onDrawerToggle: b, onSidebarToggle: x, scrollableContent: S, sidebarBackground: C, sidebarCollapsedWidth: w = 4, sidebarExpandedWidth: T = "15%", sidebarExpandedWidthMax: E = 18, sidebarExpandedWidthMin: D = 14.75, sidebarProps: O, topOffset: k, ...A }) => {
12447
12443
  let [j, M] = g(l || !1);
12448
12444
  u(() => {
12449
12445
  M(l || !1);
@@ -12465,7 +12461,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12465
12461
  return;
12466
12462
  }
12467
12463
  M(!j);
12468
- }, U = Yo();
12464
+ }, U = qo();
12469
12465
  u(() => {
12470
12466
  U === "sm" && !j ? (V.current = !0, x ? x() : M(!0)) : U !== "sm" && V.current && (V.current = !1, x ? x() : M(!1));
12471
12467
  }, [U]);
@@ -12560,7 +12556,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12560
12556
  }, /* @__PURE__ */ e.createElement(Fi, {
12561
12557
  destination: I,
12562
12558
  text: F.skipToContent
12563
- }), J ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, J), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, ce)) : ce), o && /* @__PURE__ */ e.createElement(ka, {
12559
+ }), J ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${N}__header` }, J), /* @__PURE__ */ e.createElement("div", { className: `${N}__body` }, ce)) : ce), o && /* @__PURE__ */ e.createElement(Da, {
12564
12560
  ...i,
12565
12561
  isOpen: c,
12566
12562
  placement: "left",
@@ -12568,7 +12564,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12568
12564
  !e && c && b && b();
12569
12565
  }
12570
12566
  }, r));
12571
- }, Zo = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
12567
+ }, Yo = ({ children: t, className: n, sidebarWidth: r = "18%", sidebarWidthMax: i = 20, sidebarWidthMin: a = 15, style: o, ...s }) => {
12572
12568
  let c = "pds-docs-layout", l = {
12573
12569
  "--docs-sidebar-max-width": `${i}rem`,
12574
12570
  "--docs-sidebar-min-width": `${a}rem`,
@@ -12586,7 +12582,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12586
12582
  },
12587
12583
  ...s
12588
12584
  }, f && /* @__PURE__ */ e.createElement("aside", { className: `${c}__sidebar` }, /* @__PURE__ */ e.createElement("div", { className: `${c}__sidebar-inner` }, f)), /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, d));
12589
- }, Qo = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
12585
+ }, Xo = ({ children: t, className: n, gridGap: r = "xl", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "33%", sidebarWidthMax: s = 25, sidebarWidthMin: c = 15, ...l }) => {
12590
12586
  let u = "pds-sidebar-layout", d = r === "none" ? "0" : `var(--pds-spacing-${r})`, f = ft(t);
12591
12587
  return /* @__PURE__ */ e.createElement("div", {
12592
12588
  className: Z([u, n ?? ""]),
@@ -12600,7 +12596,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12600
12596
  },
12601
12597
  ...l
12602
12598
  }, /* @__PURE__ */ e.createElement("div", { className: `${u}__main` }, f.__unslotted || f.content), /* @__PURE__ */ e.createElement("div", { className: `${u}__side` }, f.sidebar));
12603
- }, $o = ({ children: n, className: r, maxColumns: i = 3, style: a, ...o }) => {
12599
+ }, Zo = ({ children: n, className: r, maxColumns: i = 3, style: a, ...o }) => {
12604
12600
  let s = "pds-stat-panel-group", c = `${s}--max-${i}`, l = {
12605
12601
  "--max-columns": i,
12606
12602
  ...a
@@ -12619,7 +12615,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12619
12615
  className: `${s}__item`,
12620
12616
  role: "listitem"
12621
12617
  }, t))));
12622
- }, es = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
12618
+ }, Qo = ({ children: t, className: n, formWidth: r = "standard", hasPanel: i = !1, ...a }) => {
12623
12619
  let o = ft(t), s = o.stepper, c = o.form, l = "pds-stepper-layout", u = r === "full" ? `${l}--full-width` : null, d = /* @__PURE__ */ e.createElement(Ji, {
12624
12620
  className: Z([
12625
12621
  l,
@@ -12629,8 +12625,8 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12629
12625
  width: "wide",
12630
12626
  ...a
12631
12627
  }, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stepper-container` }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${l}__form-container` }, c));
12632
- return i ? /* @__PURE__ */ e.createElement(za, null, d) : d;
12633
- }, ts = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
12628
+ return i ? /* @__PURE__ */ e.createElement(La, null, d) : d;
12629
+ }, $o = ({ children: t, className: n, gridGap: r = "xl", verticalAlign: i = "start", ...a }) => {
12634
12630
  let o = "pds-three-item-layout", s = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, c = `${o}--${i}`, l = ft(t), u = [
12635
12631
  l["first-item"],
12636
12632
  l["second-item"],
@@ -12648,7 +12644,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12648
12644
  key: n,
12649
12645
  className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
12650
12646
  }, t)));
12651
- }, ns = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
12647
+ }, es = ({ children: t, className: n, gridGap: r = "xl", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
12652
12648
  let s = "pds-two-item-layout", c = r === "xl" ? "pds-grid" : `pds-grid pds-grid--gap-${r}`, l = `${s}--${a}`, u = ["pds-grid-item--md-6"], d = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], f = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], p = ["pds-grid-item", "pds-grid-item--sm-4"], m, h;
12653
12649
  switch (i) {
12654
12650
  case "equal":
@@ -12669,7 +12665,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12669
12665
  ]),
12670
12666
  ...o
12671
12667
  }, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
12672
- }, rs = ({ alignContent: t = "flex-start", alignItems: n = "stretch", children: r, className: i, flexDirection: a = "row", flexWrap: o = "nowrap", gap: s = "xl", justifyContent: c = "flex-start", mobileAlignContent: l, mobileAlignItems: u, mobileFlexDirection: d = "column", mobileFlexWrap: f, mobileGap: p, mobileJustifyContent: m, style: h, ...g }) => {
12668
+ }, ts = ({ alignContent: t = "flex-start", alignItems: n = "stretch", children: r, className: i, flexDirection: a = "row", flexWrap: o = "nowrap", gap: s = "xl", justifyContent: c = "flex-start", mobileAlignContent: l, mobileAlignItems: u, mobileFlexDirection: d = "column", mobileFlexWrap: f, mobileGap: p, mobileJustifyContent: m, style: h, ...g }) => {
12673
12669
  let _ = "pds-flex", v = `${_}-container`, y = {
12674
12670
  "--pds-flex-align-content": t,
12675
12671
  "--pds-flex-align-items": n,
@@ -12695,7 +12691,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12695
12691
  },
12696
12692
  ...g
12697
12693
  }, r);
12698
- }, is = (e) => {
12694
+ }, ns = (e) => {
12699
12695
  let t = typeof window < "u", [n, r] = g(((e) => t ? window.matchMedia(e).matches : !1)(e));
12700
12696
  return u(() => {
12701
12697
  if (!t) return;
@@ -12704,20 +12700,20 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12704
12700
  };
12705
12701
  return r(n.matches), n.addEventListener ? (n.addEventListener("change", i), () => n.removeEventListener("change", i)) : (n.addListener(i), () => n.removeListener(i));
12706
12702
  }, [e]), n;
12707
- }, as = [
12703
+ }, rs = [
12708
12704
  "light",
12709
12705
  "dark",
12710
12706
  "system"
12711
- ], os = (e) => typeof e == "string" && as.includes(e), ss = i(null), cs = {
12707
+ ], is = (e) => typeof e == "string" && rs.includes(e), as = i(null), os = {
12712
12708
  resolvedTheme: "light",
12713
12709
  setTheme: () => {},
12714
12710
  theme: "light"
12715
- }, ls = ({ defaultTheme: e = "light", storageKey: t = "pds-theme" } = {}) => `(function(){try{var t=localStorage.getItem(${JSON.stringify(t)})||${JSON.stringify(e)};if(t==='system'){t=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}document.documentElement.setAttribute('data-theme',t);}catch(e){}})();`, us = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: s = "pds-theme", theme: l }) => {
12716
- let d = l !== void 0, f = !r && !d && o && !i, [p, m] = g(n), [h, _] = g(!1), v = d ? l : p, y = is("(prefers-color-scheme: dark)"), b = v === "system" ? h && y ? "dark" : "light" : v;
12711
+ }, ss = ({ defaultTheme: e = "light", storageKey: t = "pds-theme" } = {}) => `(function(){try{var t=localStorage.getItem(${JSON.stringify(t)})||${JSON.stringify(e)};if(t==='system'){t=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}document.documentElement.setAttribute('data-theme',t);}catch(e){}})();`, cs = ({ children: t, defaultTheme: n = "light", disableInitScript: r = !1, nodeRef: i, onThemeChange: a, persist: o = !0, storageKey: s = "pds-theme", theme: l }) => {
12712
+ let d = l !== void 0, f = !r && !d && o && !i, [p, m] = g(n), [h, _] = g(!1), v = d ? l : p, y = ns("(prefers-color-scheme: dark)"), b = v === "system" ? h && y ? "dark" : "light" : v;
12717
12713
  u(() => {
12718
12714
  if (_(!0), !(d || !o || typeof window > "u")) try {
12719
12715
  let e = window.localStorage.getItem(s);
12720
- os(e) && m(e);
12716
+ is(e) && m(e);
12721
12717
  } catch {}
12722
12718
  }, []), u(() => {
12723
12719
  typeof document > "u" || (i?.current ?? document.documentElement).setAttribute("data-theme", b);
@@ -12737,20 +12733,20 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12737
12733
  ]),
12738
12734
  theme: v
12739
12735
  };
12740
- return /* @__PURE__ */ e.createElement(ss.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: ls({
12736
+ return /* @__PURE__ */ e.createElement(as.Provider, { value: x }, f && /* @__PURE__ */ e.createElement("script", { dangerouslySetInnerHTML: { __html: ss({
12741
12737
  defaultTheme: n,
12742
12738
  storageKey: s
12743
12739
  }) } }), t);
12744
- }, ds = () => l(ss) ?? cs, fs = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
12740
+ }, ls = () => l(as) ?? os, us = ({ children: t, enableThemeSwitching: n = !1, mobileMaxWidth: r = 767, themeProps: i = {} }) => {
12745
12741
  u(() => {
12746
12742
  let e = document.documentElement, t = () => {
12747
12743
  window.innerWidth <= r ? e.setAttribute("data-pds-mobile", "") : e.removeAttribute("data-pds-mobile");
12748
12744
  };
12749
12745
  return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
12750
12746
  }, [r]);
12751
- let a = n ? /* @__PURE__ */ e.createElement(us, i, t) : t;
12747
+ let a = n ? /* @__PURE__ */ e.createElement(cs, i, t) : t;
12752
12748
  return /* @__PURE__ */ e.createElement($t, null, a);
12753
- }, ps = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
12749
+ }, ds = ({ asContainer: t = !1, children: n, className: r, dense: i = !1, gap: a = "xl", mobileGap: o, stackBelow: s, ...c }) => {
12754
12750
  let l = "pds-grid", u = a === "xl" ? null : `${l}--gap-${a}`, d = i ? `${l}--dense` : null, f = t || s ? `${l}--container` : null, p = s ? `${l}--stack-${s}` : null, m = o ?? a, h = m === a ? null : `${l}-gap-mobile--${m}`;
12755
12751
  return /* @__PURE__ */ e.createElement("div", {
12756
12752
  className: Z([
@@ -12764,7 +12760,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12764
12760
  ]),
12765
12761
  ...c
12766
12762
  }, n);
12767
- }, ms = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
12763
+ }, fs = ({ children: t, className: n, rowSpanLg: r, rowSpanMd: i, rowSpanSm: a, rowSpanXl: o, spanLg: s, spanMd: c, spanSm: l, spanXl: u, ...d }) => {
12768
12764
  let f = "pds-grid-item", p = [
12769
12765
  l ? `${f}--sm-${l}` : null,
12770
12766
  c ? `${f}--md-${c}` : null,
@@ -12783,7 +12779,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12783
12779
  ]),
12784
12780
  ...d
12785
12781
  }, t);
12786
- }, hs = (e, t, n) => {
12782
+ }, ps = (e, t, n) => {
12787
12783
  let { altKey: r = !1, ctrlKey: i = !1, enabled: a = !0, metaKey: o = !1, shiftKey: s = !1 } = n ?? {}, [l, d] = g(!1), f = c((e) => e.altKey === r && e.ctrlKey === i && e.metaKey === o && e.shiftKey === s, [
12788
12784
  r,
12789
12785
  i,
@@ -12807,7 +12803,7 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12807
12803
  m,
12808
12804
  a
12809
12805
  ]), l;
12810
- }, gs = () => {
12806
+ }, ms = () => {
12811
12807
  let e = typeof window < "u", [t, n] = g(e && window.innerWidth !== void 0 ? window.innerWidth : 1024);
12812
12808
  return u(() => {
12813
12809
  if (!e) return;
@@ -12821,6 +12817,6 @@ var So = ({ children: t, className: n, columns: r, depth: i = 0, hasChildren: a
12821
12817
  }, []), t;
12822
12818
  };
12823
12819
  //#endregion
12824
- export { ur as ActionCard, Xo as AppLayout, bt as Avatar, St as Badge, ma as Banner, Nr as BarChart, Cn as BranchDiff, Li as Breadcrumb, Dn as Button, On as ButtonLink, qi as ButtonNav, Ni as CTALink, lr as Callout, dr as Card, fr as CardSelect, $r as Checkbox, ei as CheckboxFieldset, ti as CheckboxGroup, jn as ClipboardButton, Mn as CloseButton, Ur as CodeBlock, ni as Combobox, ii as ComboboxMultiselect, pr as CompactEmptyState, Gr as ComparisonList, Ji as Container, Ci as Datepicker, Zo as DocsLayout, ka as Drawer, Ln as Dropdown, Ki as DropdownMenu, La as ExpansionPanel, Ra as ExpansionPanelGroup, Yr as FileDiff, wi as FileUpload, Kn as FilterButton, rs as FlexContainer, Aa as FullScreenOverlay, fs as GlobalWrapper, ps as Grid, ms as GridItem, qr as HorizontalEmptyState, Q as Icon, An as IconButton, Qr as IdentityBlock, ga as InlineMessage, Ti as InputGroup, Fr as LineChart, Pi as LinkNewWindow, ya as MIN_AUTO_CLOSE_DURATION, tr as MenuButton, ja as Modal, ta as Navbar, Pa as Pagination, Fa as PaginationChapter, Ia as PaginationCompact, za as Panel, Ba as PanelList, Va as PanelRow, Ha as PanelStack, Ka as PantheonLogo, Zr as PaymentIcon, Ii as Picture, Lr as PieChart, ir as PlatformIcon, Ya as Popover, Za as ProgressBar, $a as ProgressRing, zr as ProportionBar, Ei as RadioGroup, no as ResultCount, or as SSOButton, va as SectionMessage, nr as SegmentedButton, hr as Select, mr as SelectOptionGroup, na as SideNav, ia as SideNavGlobal, ra as SideNavGlobalItem, Qo as SidebarLayout, ao as SiteFooter, oa as SiteMenu, oo as SiteOptionDisplay, so as SiteSearch, er as SiteTypeIcon, $n as SiteTypeLabel, kr as Skeleton, Fi as Skiplink, bo as SortableList, mo as SortableListHeader, So as SortableRow, bn as Spinner, rr as SplitButton, Co as StatPanel, $o as StatPanelGroup, xn as StatusBadge, To as StatusChecker, Eo as StatusIndicator, Jn as StatusTypeLabels, Do as StepList, Oo as Stepper, es as StepperLayout, Di as Switch, ca as TabMenu, jo as Table, Ro as TableOfContents, zo as Tabs, qo as Tag, ki as TagsInput, Sn as Tally, Mi as TextInput, Ai as Textarea, ss as ThemeContext, us as ThemeContextProvider, Xi as ThemeSwitcher, ts as ThreeItemLayout, li as Timepicker, Ea as Toast, Da as ToastType, Ca as Toaster, xa as ToasterContext, nn as Tooltip, ua as TreeNav, ns as TwoItemLayout, Zi as UserMenu, Jo as UtilityBar, sr as UtilityButton, Jr as VerticalEmptyState, Ao as VerticalStepper, Kr as VideoEmbed, Qi as WorkspaceSelector, yi as getPresetDateRange, ls as getThemeInitScript, _t as iconList, Xn as isHeadingItemType, Zn as isLinkItemType, Qn as isNodeItemType, Yn as isSeparatorItemType, wo as statusCheckerStates, Bo as tagColors, Uo as tagSolidColors, Vo as tagSolidHueColors, Ho as tagSolidStatusColors, Yo as useBreakpoint, kn as useClipboard, Pn as useDropdown, Xt as useIsMobile, hs as useKeyPress, tn as useKeyboardShortcut, is as useMediaQuery, ds as useTheme, Oa as useToast, gs as useWindowWidth };
12820
+ export { ur as ActionCard, Jo as AppLayout, bt as Avatar, St as Badge, fa as Banner, Nr as BarChart, Cn as BranchDiff, Li as Breadcrumb, Dn as Button, On as ButtonLink, qi as ButtonNav, Ni as CTALink, lr as Callout, dr as Card, fr as CardSelect, $r as Checkbox, ei as CheckboxFieldset, ti as CheckboxGroup, jn as ClipboardButton, Mn as CloseButton, Ur as CodeBlock, ni as Combobox, ii as ComboboxMultiselect, pr as CompactEmptyState, Gr as ComparisonList, Ji as Container, Ci as Datepicker, Yo as DocsLayout, Da as Drawer, Ln as Dropdown, Ki as DropdownMenu, Fa as ExpansionPanel, Ia as ExpansionPanelGroup, Yr as FileDiff, wi as FileUpload, Kn as FilterButton, ts as FlexContainer, Oa as FullScreenOverlay, us as GlobalWrapper, ds as Grid, fs as GridItem, qr as HorizontalEmptyState, Q as Icon, An as IconButton, Qr as IdentityBlock, ma as InlineMessage, Ti as InputGroup, Fr as LineChart, Pi as LinkNewWindow, _a as MIN_AUTO_CLOSE_DURATION, tr as MenuButton, ka as Modal, Yi as Navbar, Ma as Pagination, Na as PaginationChapter, Pa as PaginationCompact, La as Panel, Ra as PanelList, za as PanelRow, Ba as PanelStack, Wa as PantheonLogo, Zr as PaymentIcon, Ii as Picture, Lr as PieChart, ir as PlatformIcon, qa as Popover, Ya as ProgressBar, Za as ProgressRing, zr as ProportionBar, Ei as RadioGroup, eo as ResultCount, or as SSOButton, ga as SectionMessage, nr as SegmentedButton, hr as Select, mr as SelectOptionGroup, Xi as SideNav, Qi as SideNavGlobal, Zi as SideNavGlobalItem, Xo as SidebarLayout, ro as SiteFooter, ea as SiteMenu, io as SiteOptionDisplay, ao as SiteSearch, er as SiteTypeIcon, $n as SiteTypeLabel, kr as Skeleton, Fi as Skiplink, vo as SortableList, fo as SortableListHeader, bo as SortableRow, bn as Spinner, rr as SplitButton, xo as StatPanel, Zo as StatPanelGroup, xn as StatusBadge, Co as StatusChecker, wo as StatusIndicator, Jn as StatusTypeLabels, To as StepList, Eo as Stepper, Qo as StepperLayout, Di as Switch, na as TabMenu, ko as Table, Io as TableOfContents, Lo as Tabs, Go as Tag, ki as TagsInput, Sn as Tally, Mi as TextInput, Ai as Textarea, as as ThemeContext, cs as ThemeContextProvider, oa as ThemeSwitcher, $o as ThreeItemLayout, li as Timepicker, wa as Toast, Ta as ToastType, xa as Toaster, ya as ToasterContext, nn as Tooltip, ia as TreeNav, es as TwoItemLayout, sa as UserMenu, Ko as UtilityBar, sr as UtilityButton, Jr as VerticalEmptyState, Oo as VerticalStepper, Kr as VideoEmbed, ca as WorkspaceSelector, yi as getPresetDateRange, ss as getThemeInitScript, _t as iconList, Xn as isHeadingItemType, Zn as isLinkItemType, Qn as isNodeItemType, Yn as isSeparatorItemType, So as statusCheckerStates, Ro as tagColors, Vo as tagSolidColors, zo as tagSolidHueColors, Bo as tagSolidStatusColors, qo as useBreakpoint, kn as useClipboard, Pn as useDropdown, Xt as useIsMobile, ps as useKeyPress, tn as useKeyboardShortcut, ns as useMediaQuery, ls as useTheme, Ea as useToast, ms as useWindowWidth };
12825
12821
 
12826
12822
  //# sourceMappingURL=index.js.map