@pantheon-systems/pds-toolkit-react 1.0.0-dev.169 → 1.0.0-dev.170
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
|
@@ -9,7 +9,7 @@ var ts = (s, n, a) => n in s ? Zs(s, n, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
for (var a of vt(n))
|
|
10
10
|
ns.call(n, a) && ts(s, a, n[a]);
|
|
11
11
|
return s;
|
|
12
|
-
},
|
|
12
|
+
}, ge = (s, n) => Us(s, Gs(n));
|
|
13
13
|
var I = (s, n) => {
|
|
14
14
|
var a = {};
|
|
15
15
|
for (var c in s)
|
|
@@ -19,10 +19,10 @@ var I = (s, n) => {
|
|
|
19
19
|
n.indexOf(c) < 0 && ns.call(s, c) && (a[c] = s[c]);
|
|
20
20
|
return a;
|
|
21
21
|
};
|
|
22
|
-
import e, { createContext as $t, useState as R, useContext as He, forwardRef as
|
|
22
|
+
import e, { createContext as $t, useState as R, useContext as He, forwardRef as Fe, cloneElement as je, useEffect as oe, useRef as se, isValidElement as Ut, useLayoutEffect as Ks, useCallback as Gt } from "react";
|
|
23
23
|
import t from "prop-types";
|
|
24
24
|
import { NavLink as gs, MemoryRouter as Ys } from "react-router-dom";
|
|
25
|
-
import { useFloating as Ie, offset as yt, flip as wt, shift as Nt, autoUpdate as
|
|
25
|
+
import { useFloating as Ie, offset as yt, flip as wt, shift as Nt, autoUpdate as qe, useHover as Et, useFocus as fs, useDismiss as Se, useRole as Te, useInteractions as Oe, useId as bs, useListNavigation as ut, useTransitionStyles as Xe, useClick as ot, safePolygon as vs, FloatingOverlay as Xs, FloatingFocusManager as Es, arrow as Qs, FloatingArrow as Js } from "@floating-ui/react";
|
|
26
26
|
import { useHotkeys as e1 } from "react-hotkeys-hook";
|
|
27
27
|
import { useMeasure as kt } from "@reactuses/core";
|
|
28
28
|
import { useFloating as t1, flip as s1 } from "@floating-ui/react-dom";
|
|
@@ -110,7 +110,7 @@ const o1 = {
|
|
|
110
110
|
},
|
|
111
111
|
resolveCrumb: () => {
|
|
112
112
|
}
|
|
113
|
-
}, Cs = $t(o1),
|
|
113
|
+
}, Cs = $t(o1), Pe = () => Math.random().toString(32).substring(2, 13), $s = (s, n) => {
|
|
114
114
|
let a;
|
|
115
115
|
for (n = n || [], a = 0; a < s.childNodes.length; a++)
|
|
116
116
|
n.push(s.childNodes[a]), $s(s.childNodes[a], n);
|
|
@@ -777,7 +777,7 @@ const o1 = {
|
|
|
777
777
|
open: f,
|
|
778
778
|
onOpenChange: E,
|
|
779
779
|
middleware: [yt(a), wt(), Nt()],
|
|
780
|
-
whileElementsMounted:
|
|
780
|
+
whileElementsMounted: qe
|
|
781
781
|
}), L = Et(w, {
|
|
782
782
|
restMs: 300,
|
|
783
783
|
delay: { open: 500, close: 0 },
|
|
@@ -815,15 +815,15 @@ const o1 = {
|
|
|
815
815
|
y({
|
|
816
816
|
className: `${g}__container`,
|
|
817
817
|
ref: C.setFloating,
|
|
818
|
-
style:
|
|
818
|
+
style: ge(y({}, $), { zIndex: d })
|
|
819
819
|
}, M()),
|
|
820
820
|
s
|
|
821
821
|
));
|
|
822
|
-
},
|
|
822
|
+
}, Ge = ({ crumb: s, lastCrumb: n, classes: a }) => {
|
|
823
823
|
const c = s.label.length > 16 ? `${s.label.slice(0, 16)}...` : null;
|
|
824
824
|
return /* @__PURE__ */ e.createElement("li", { className: `${a || ""}`, key: `key-${s.label}` }, n ? /* @__PURE__ */ e.createElement("a", { className: "pds-breadcrumbs__disabled" }, s.label.length > 15 ? /* @__PURE__ */ e.createElement(_t, { content: s.label, triggerText: c }) : s.label) : /* @__PURE__ */ e.createElement(gs, { end: !0, to: s.uri }, s.label.length > 15 ? /* @__PURE__ */ e.createElement(_t, { content: s.label, triggerText: c }) : s.label));
|
|
825
825
|
};
|
|
826
|
-
|
|
826
|
+
Ge.propTypes = {
|
|
827
827
|
crumb: t.object,
|
|
828
828
|
lastCrumb: t.bool,
|
|
829
829
|
classes: t.string
|
|
@@ -833,9 +833,9 @@ const d1 = (s) => /* @__PURE__ */ e.createElement(gs, { className: "pds-breadcru
|
|
|
833
833
|
const [r, o] = R(!0), { crumbs: l, deferredCrumbIds: i } = He(Cs), d = [...l].sort(m1), u = () => {
|
|
834
834
|
o(!1);
|
|
835
835
|
}, h = d.map(
|
|
836
|
-
(_, g) => g === d.length - 1 ? /* @__PURE__ */ e.createElement(
|
|
836
|
+
(_, g) => g === d.length - 1 ? /* @__PURE__ */ e.createElement(Ge, { crumb: _, lastCrumb: !0, key: g }) : /* @__PURE__ */ e.createElement(Ge, { crumb: _, key: g })
|
|
837
837
|
), m = d.map(
|
|
838
|
-
(_, g) => g === d.length - 1 ? /* @__PURE__ */ e.createElement(
|
|
838
|
+
(_, g) => g === d.length - 1 ? /* @__PURE__ */ e.createElement(Ge, { crumb: _, key: `breadcrumb-${g}`, lastCrumb: !0 }) : g == 2 ? /* @__PURE__ */ e.createElement(e.Fragment, null, " ", /* @__PURE__ */ e.createElement("li", { className: r ? "" : "pds-breadcrumbs__hidden" }, /* @__PURE__ */ e.createElement(
|
|
839
839
|
"button",
|
|
840
840
|
{
|
|
841
841
|
key: `breadcrumb-button-${g}`,
|
|
@@ -844,20 +844,20 @@ const d1 = (s) => /* @__PURE__ */ e.createElement(gs, { className: "pds-breadcru
|
|
|
844
844
|
},
|
|
845
845
|
"..."
|
|
846
846
|
)), /* @__PURE__ */ e.createElement(
|
|
847
|
-
|
|
847
|
+
Ge,
|
|
848
848
|
{
|
|
849
849
|
crumb: _,
|
|
850
850
|
classes: r ? "pds-breadcrumbs__hidden" : null,
|
|
851
851
|
key: `breadcrumb-${g}`
|
|
852
852
|
}
|
|
853
853
|
)) : g > 2 && g < d.length - 2 ? /* @__PURE__ */ e.createElement(
|
|
854
|
-
|
|
854
|
+
Ge,
|
|
855
855
|
{
|
|
856
856
|
crumb: _,
|
|
857
857
|
classes: r ? "pds-breadcrumbs__hidden" : null,
|
|
858
858
|
key: `breadcrumb-${g}`
|
|
859
859
|
}
|
|
860
|
-
) : /* @__PURE__ */ e.createElement(
|
|
860
|
+
) : /* @__PURE__ */ e.createElement(Ge, { crumb: _, key: `breadcrumb-${g}` })
|
|
861
861
|
), p = d.length >= 6 ? m : h, f = d[d.length - 2], E = d1(f);
|
|
862
862
|
return /* @__PURE__ */ e.createElement("nav", { className: "pds-breadcrumbs", "aria-label": s, "aria-live": "polite" }, /* @__PURE__ */ e.createElement("ul", y({ className: "pds-breadcrumbs__item" }, n), p), E);
|
|
863
863
|
};
|
|
@@ -1034,7 +1034,7 @@ const p1 = [
|
|
|
1034
1034
|
"xmarkLarge",
|
|
1035
1035
|
"xTwitter",
|
|
1036
1036
|
"youtube"
|
|
1037
|
-
],
|
|
1037
|
+
], pt = t.oneOf(p1), Ht = t.oneOf([
|
|
1038
1038
|
"narrow",
|
|
1039
1039
|
"standard",
|
|
1040
1040
|
"wide",
|
|
@@ -1061,7 +1061,7 @@ const p1 = [
|
|
|
1061
1061
|
/**
|
|
1062
1062
|
* Optional icon for this item. Choose from available icons in the Icon component.
|
|
1063
1063
|
*/
|
|
1064
|
-
iconName:
|
|
1064
|
+
iconName: pt,
|
|
1065
1065
|
/**
|
|
1066
1066
|
* Is the item a link?
|
|
1067
1067
|
*/
|
|
@@ -1090,7 +1090,7 @@ const p1 = [
|
|
|
1090
1090
|
/**
|
|
1091
1091
|
* Optional icon for this item. Choose from available icons in the Icon component.
|
|
1092
1092
|
*/
|
|
1093
|
-
iconName:
|
|
1093
|
+
iconName: pt,
|
|
1094
1094
|
/**
|
|
1095
1095
|
* Optional ID value for this item.
|
|
1096
1096
|
*/
|
|
@@ -1131,7 +1131,7 @@ const p1 = [
|
|
|
1131
1131
|
iconSize: "sm",
|
|
1132
1132
|
className: "pds-input-label__required"
|
|
1133
1133
|
}
|
|
1134
|
-
),
|
|
1134
|
+
), ht = ({
|
|
1135
1135
|
id: s,
|
|
1136
1136
|
label: n,
|
|
1137
1137
|
showLabel: a = !0,
|
|
@@ -1146,7 +1146,7 @@ const p1 = [
|
|
|
1146
1146
|
l != null ? l : ""
|
|
1147
1147
|
]);
|
|
1148
1148
|
return o ? /* @__PURE__ */ e.createElement("legend", { className: i, id: `${s}-legend` }, n, c && !r && /* @__PURE__ */ e.createElement(Wt, null)) : /* @__PURE__ */ e.createElement("label", { htmlFor: s, className: i }, n, c && !r && /* @__PURE__ */ e.createElement(Wt, null));
|
|
1149
|
-
},
|
|
1149
|
+
}, Qe = ({
|
|
1150
1150
|
id: s,
|
|
1151
1151
|
message: n,
|
|
1152
1152
|
hasValidationMessage: a,
|
|
@@ -1226,10 +1226,10 @@ const p1 = [
|
|
|
1226
1226
|
}, Xt = (a) => {
|
|
1227
1227
|
var c = a, { label: s } = c, n = I(c, ["label"]);
|
|
1228
1228
|
return /* @__PURE__ */ e.createElement("span", y({ className: "visually-hidden" }, n), s);
|
|
1229
|
-
}, E1 =
|
|
1229
|
+
}, E1 = Fe(
|
|
1230
1230
|
(o, r) => {
|
|
1231
1231
|
var l = o, { children: s, isActive: n, className: a } = l, c = I(l, ["children", "isActive", "className"]);
|
|
1232
|
-
const i = bs(), d = "pds-
|
|
1232
|
+
const i = bs(), d = "pds-input__select-option", u = n ? `${d}--active` : null;
|
|
1233
1233
|
return /* @__PURE__ */ e.createElement(
|
|
1234
1234
|
"li",
|
|
1235
1235
|
y({
|
|
@@ -1268,7 +1268,7 @@ const p1 = [
|
|
|
1268
1268
|
/* @__PURE__ */ e.createElement("span", { className: `${u}__icon` }),
|
|
1269
1269
|
c && !n ? /* @__PURE__ */ e.createElement("span", { className: `${u}__label` }, a) : /* @__PURE__ */ e.createElement(Xt, { label: a })
|
|
1270
1270
|
);
|
|
1271
|
-
},
|
|
1271
|
+
}, Ke = Fe(
|
|
1272
1272
|
(E, f) => {
|
|
1273
1273
|
var _ = E, {
|
|
1274
1274
|
ariaLabel: s,
|
|
@@ -1321,7 +1321,7 @@ const p1 = [
|
|
|
1321
1321
|
let w = [i];
|
|
1322
1322
|
return c == "icon-start" && r && w.unshift($), c == "icon-end" && r && w.push($), l && (w = [$], s = i), /* @__PURE__ */ e.createElement(
|
|
1323
1323
|
"button",
|
|
1324
|
-
|
|
1324
|
+
ge(y({}, p), {
|
|
1325
1325
|
type: n,
|
|
1326
1326
|
className: [g, b, v, m].join(" ").trim().replace(/\s+/g, " "),
|
|
1327
1327
|
disabled: a || o,
|
|
@@ -1334,8 +1334,8 @@ const p1 = [
|
|
|
1334
1334
|
);
|
|
1335
1335
|
}
|
|
1336
1336
|
);
|
|
1337
|
-
|
|
1338
|
-
|
|
1337
|
+
Ke.displayName = "Button";
|
|
1338
|
+
Ke.propTypes = {
|
|
1339
1339
|
/**
|
|
1340
1340
|
* Aria-label attribute.
|
|
1341
1341
|
*/
|
|
@@ -1355,7 +1355,7 @@ Ge.propTypes = {
|
|
|
1355
1355
|
/**
|
|
1356
1356
|
* Which icon to render
|
|
1357
1357
|
*/
|
|
1358
|
-
iconName:
|
|
1358
|
+
iconName: pt,
|
|
1359
1359
|
/**
|
|
1360
1360
|
* Is the button in a loading state?
|
|
1361
1361
|
*/
|
|
@@ -1394,7 +1394,7 @@ Ge.propTypes = {
|
|
|
1394
1394
|
*/
|
|
1395
1395
|
className: t.string
|
|
1396
1396
|
};
|
|
1397
|
-
const
|
|
1397
|
+
const Be = (d) => {
|
|
1398
1398
|
var u = d, {
|
|
1399
1399
|
disabled: s = !1,
|
|
1400
1400
|
displayType: n = "label-only",
|
|
@@ -1412,7 +1412,7 @@ const je = (d) => {
|
|
|
1412
1412
|
"variant",
|
|
1413
1413
|
"className"
|
|
1414
1414
|
]);
|
|
1415
|
-
const h =
|
|
1415
|
+
const h = Pe(), m = "pds-button-link", p = "pds-button", f = c.props.className, E = r !== "md" ? `${p}--${r}` : null, _ = o !== "primary" ? `${p}--${o}` : null, g = [p, f, _, E].join(" ").trim().replace(/\s+/g, " ");
|
|
1416
1416
|
let b;
|
|
1417
1417
|
switch (r) {
|
|
1418
1418
|
case "sm":
|
|
@@ -1435,12 +1435,12 @@ const je = (d) => {
|
|
|
1435
1435
|
);
|
|
1436
1436
|
let $ = [c.props.children];
|
|
1437
1437
|
n == "icon-start" && a && $.unshift(v), n == "icon-end" && a && $.push(v);
|
|
1438
|
-
const w =
|
|
1438
|
+
const w = je(c, {
|
|
1439
1439
|
className: g,
|
|
1440
1440
|
children: $
|
|
1441
1441
|
});
|
|
1442
1442
|
return s ? /* @__PURE__ */ e.createElement(
|
|
1443
|
-
|
|
1443
|
+
Ke,
|
|
1444
1444
|
y({
|
|
1445
1445
|
disabled: !0,
|
|
1446
1446
|
onClick: () => {
|
|
@@ -1458,8 +1458,8 @@ const je = (d) => {
|
|
|
1458
1458
|
w
|
|
1459
1459
|
);
|
|
1460
1460
|
};
|
|
1461
|
-
|
|
1462
|
-
|
|
1461
|
+
Be.displayName = "ButtonLink";
|
|
1462
|
+
Be.propTypes = {
|
|
1463
1463
|
/**
|
|
1464
1464
|
* Is the link disabled?
|
|
1465
1465
|
*/
|
|
@@ -1471,7 +1471,7 @@ je.propTypes = {
|
|
|
1471
1471
|
/**
|
|
1472
1472
|
* Which icon to render
|
|
1473
1473
|
*/
|
|
1474
|
-
iconName:
|
|
1474
|
+
iconName: pt,
|
|
1475
1475
|
/**
|
|
1476
1476
|
* A link element using the router of your choice.
|
|
1477
1477
|
*/
|
|
@@ -1531,7 +1531,7 @@ const _1 = (h) => {
|
|
|
1531
1531
|
className: `${p}__kicker pds-overline-text pds-overline-text--sm`
|
|
1532
1532
|
},
|
|
1533
1533
|
o
|
|
1534
|
-
), a && /* @__PURE__ */ e.createElement(E, { className: `${p}__heading` }, a), s && /* @__PURE__ */ e.createElement("div", { className: `${p}__bodytext` }, /* @__PURE__ */ e.createElement("p", null, s)), !r && l && /* @__PURE__ */ e.createElement("div", { className: `${p}__links pds-button-group` }, /* @__PURE__ */ e.createElement(
|
|
1534
|
+
), a && /* @__PURE__ */ e.createElement(E, { className: `${p}__heading` }, a), s && /* @__PURE__ */ e.createElement("div", { className: `${p}__bodytext` }, /* @__PURE__ */ e.createElement("p", null, s)), !r && l && /* @__PURE__ */ e.createElement("div", { className: `${p}__links pds-button-group` }, /* @__PURE__ */ e.createElement(Be, { linkContent: l, variant: "primary" }), i && /* @__PURE__ */ e.createElement(Be, { linkContent: i, variant: "secondary" })));
|
|
1535
1535
|
return r && l ? /* @__PURE__ */ e.createElement(
|
|
1536
1536
|
_,
|
|
1537
1537
|
y({
|
|
@@ -1809,7 +1809,7 @@ $1.propTypes = {
|
|
|
1809
1809
|
*/
|
|
1810
1810
|
className: t.string
|
|
1811
1811
|
};
|
|
1812
|
-
const
|
|
1812
|
+
const We = $t(null), y1 = ({
|
|
1813
1813
|
children: s,
|
|
1814
1814
|
mobileMenuMaxWidth: n = 640
|
|
1815
1815
|
}) => {
|
|
@@ -1824,7 +1824,7 @@ const Fe = $t(null), y1 = ({
|
|
|
1824
1824
|
mobileMenuMaxWidth: n,
|
|
1825
1825
|
windowWidth: a
|
|
1826
1826
|
};
|
|
1827
|
-
return /* @__PURE__ */ e.createElement(
|
|
1827
|
+
return /* @__PURE__ */ e.createElement(We.Provider, { value: l }, s);
|
|
1828
1828
|
}, w1 = (r) => {
|
|
1829
1829
|
var o = r, {
|
|
1830
1830
|
destination: s = "main",
|
|
@@ -1865,7 +1865,7 @@ const Fe = $t(null), y1 = ({
|
|
|
1865
1865
|
]);
|
|
1866
1866
|
const [m, p] = R(
|
|
1867
1867
|
a
|
|
1868
|
-
), { isMobile: f } = He(
|
|
1868
|
+
), { isMobile: f } = He(We), E = se(), [_] = kt(E), b = {
|
|
1869
1869
|
navbarWidth: _.width,
|
|
1870
1870
|
isSidebarExpanded: f ? !0 : m
|
|
1871
1871
|
}, v = "pds-dashboard", C = f ? `${v}--isMobile` : `${v}--notMobile`, $ = f ? null : m ? `${v}--sidebarExpanded` : `${v}--sidebarCollapsed`, w = m ? `${r}rem` : `${c}rem`, L = {
|
|
@@ -1991,7 +1991,7 @@ const Fe = $t(null), y1 = ({
|
|
|
1991
1991
|
);
|
|
1992
1992
|
};
|
|
1993
1993
|
zs.propTypes = { option: t.object };
|
|
1994
|
-
const N1 =
|
|
1994
|
+
const N1 = Fe(
|
|
1995
1995
|
(M, x) => {
|
|
1996
1996
|
var T = M, {
|
|
1997
1997
|
defaultValue: s,
|
|
@@ -2054,23 +2054,23 @@ const N1 = Be(
|
|
|
2054
2054
|
const V = Kt(i), H = "pds-combobox", S = n ? ue.disabled : null, P = $ && !n ? ue.required : null, j = k === "error" ? ue.error : null, F = k === "success" ? ue.success : null;
|
|
2055
2055
|
let Z = null;
|
|
2056
2056
|
r && (Z = "search"), k === "error" && (Z = "error"), k === "success" && (Z = "success");
|
|
2057
|
-
const B = L || p, W = (
|
|
2058
|
-
const
|
|
2059
|
-
return
|
|
2057
|
+
const B = L || p, W = (pe) => {
|
|
2058
|
+
const fe = v.find((xe) => xe.value === pe);
|
|
2059
|
+
return fe ? fe.label : "";
|
|
2060
2060
|
}, [O, D] = R(!1), [U, K] = R(null), [ie, X] = R(
|
|
2061
2061
|
s ? W(s) : ""
|
|
2062
|
-
), [
|
|
2062
|
+
), [ve, te] = R([]), de = se([]), { context: le, refs: ne } = Ie({
|
|
2063
2063
|
open: O,
|
|
2064
2064
|
onOpenChange: D,
|
|
2065
|
-
whileElementsMounted:
|
|
2066
|
-
}), _e = Te(le, { role: "listbox" }), ee = Se(le), Q =
|
|
2065
|
+
whileElementsMounted: qe
|
|
2066
|
+
}), _e = Te(le, { role: "listbox" }), ee = Se(le), Q = ut(le, {
|
|
2067
2067
|
listRef: de,
|
|
2068
2068
|
activeIndex: U,
|
|
2069
2069
|
onNavigate: K,
|
|
2070
2070
|
virtual: !0,
|
|
2071
2071
|
loop: !0,
|
|
2072
2072
|
allowEscape: !0
|
|
2073
|
-
}), { getReferenceProps: G, getFloatingProps:
|
|
2073
|
+
}), { getReferenceProps: G, getFloatingProps: he, getItemProps: we } = Oe([_e, ee, Q]), { isMounted: ae, styles: ce } = Xe(le, {
|
|
2074
2074
|
duration: {
|
|
2075
2075
|
open: 300,
|
|
2076
2076
|
close: 150
|
|
@@ -2087,20 +2087,20 @@ const N1 = Be(
|
|
|
2087
2087
|
}), Le = () => {
|
|
2088
2088
|
D(!O);
|
|
2089
2089
|
}, ke = () => {
|
|
2090
|
-
var
|
|
2091
|
-
X(""), K(null), D(!0), (
|
|
2092
|
-
}, ze = (
|
|
2093
|
-
let
|
|
2094
|
-
|
|
2095
|
-
}, Ee = (
|
|
2096
|
-
E && g(
|
|
2097
|
-
},
|
|
2098
|
-
g && g(
|
|
2099
|
-
},
|
|
2100
|
-
const
|
|
2101
|
-
X(
|
|
2102
|
-
}, xt = (
|
|
2103
|
-
const { label: Re, optionDisplay: De, value:
|
|
2090
|
+
var pe;
|
|
2091
|
+
X(""), K(null), D(!0), (pe = ne.domReference.current) == null || pe.focus(), _ && _();
|
|
2092
|
+
}, ze = (pe) => {
|
|
2093
|
+
let fe = pe.target.value;
|
|
2094
|
+
fe.length > 0 && (fe = fe.trimStart()), X(fe), fe ? (K(null), D(!0)) : D(!1);
|
|
2095
|
+
}, Ee = (pe) => {
|
|
2096
|
+
E && g(pe);
|
|
2097
|
+
}, Ze = (pe) => {
|
|
2098
|
+
g && g(pe);
|
|
2099
|
+
}, gt = (pe) => {
|
|
2100
|
+
const fe = ve[pe];
|
|
2101
|
+
X(fe.label), K(null), D(!1), b && b(fe);
|
|
2102
|
+
}, xt = (pe) => pe.map((xe) => {
|
|
2103
|
+
const { label: Re, optionDisplay: De, value: Ae, searchIndex: ft } = xe, q = Ae || Re, re = [Re, Ae];
|
|
2104
2104
|
return ft && re.push(...ft), {
|
|
2105
2105
|
label: Re,
|
|
2106
2106
|
value: q,
|
|
@@ -2109,27 +2109,35 @@ const N1 = Be(
|
|
|
2109
2109
|
};
|
|
2110
2110
|
});
|
|
2111
2111
|
oe(() => {
|
|
2112
|
-
const
|
|
2113
|
-
(
|
|
2114
|
-
const xe =
|
|
2112
|
+
const pe = xt(v).filter(
|
|
2113
|
+
(fe) => {
|
|
2114
|
+
const xe = fe.searchIndex.map(
|
|
2115
2115
|
(De) => De.toLowerCase()
|
|
2116
2116
|
), Re = ie.toLowerCase();
|
|
2117
2117
|
return xe.some((De) => De.includes(Re));
|
|
2118
2118
|
}
|
|
2119
2119
|
);
|
|
2120
|
-
te(
|
|
2120
|
+
te(pe);
|
|
2121
2121
|
}, [ie, d, v]);
|
|
2122
|
-
const
|
|
2123
|
-
const { label: xe, value: Re, optionDisplay: De } =
|
|
2122
|
+
const et = ve.map((pe, fe) => {
|
|
2123
|
+
const { label: xe, value: Re, optionDisplay: De } = pe;
|
|
2124
2124
|
return /* @__PURE__ */ e.createElement(
|
|
2125
2125
|
E1,
|
|
2126
|
-
y({
|
|
2127
|
-
key:
|
|
2128
|
-
id: `${l}__option--${ve}`,
|
|
2129
|
-
isActive: U === ve
|
|
2126
|
+
ge(y({
|
|
2127
|
+
key: pe
|
|
2130
2128
|
}, we({
|
|
2131
|
-
|
|
2132
|
-
|
|
2129
|
+
key: Re,
|
|
2130
|
+
ref(Ae) {
|
|
2131
|
+
de.current[fe] = Ae;
|
|
2132
|
+
},
|
|
2133
|
+
onClick() {
|
|
2134
|
+
var Ae;
|
|
2135
|
+
gt(fe), (Ae = ne.domReference.current) == null || Ae.focus();
|
|
2136
|
+
}
|
|
2137
|
+
})), {
|
|
2138
|
+
tabIndex: U === fe ? 0 : -1,
|
|
2139
|
+
isActive: U === fe
|
|
2140
|
+
}),
|
|
2133
2141
|
De || xe
|
|
2134
2142
|
);
|
|
2135
2143
|
});
|
|
@@ -2148,7 +2156,7 @@ const N1 = Be(
|
|
|
2148
2156
|
style: i ? V : null
|
|
2149
2157
|
}, N),
|
|
2150
2158
|
/* @__PURE__ */ e.createElement(
|
|
2151
|
-
|
|
2159
|
+
ht,
|
|
2152
2160
|
{
|
|
2153
2161
|
id: l,
|
|
2154
2162
|
label: u,
|
|
@@ -2172,9 +2180,10 @@ const N1 = Be(
|
|
|
2172
2180
|
/* @__PURE__ */ e.createElement(
|
|
2173
2181
|
"input",
|
|
2174
2182
|
y({
|
|
2175
|
-
ref:
|
|
2183
|
+
ref: ne.setReference,
|
|
2176
2184
|
className: `${H}__input`,
|
|
2177
|
-
id: `input-${l}
|
|
2185
|
+
id: `input-${l}`,
|
|
2186
|
+
autoComplete: "off"
|
|
2178
2187
|
}, G({
|
|
2179
2188
|
"aria-autocomplete": "list",
|
|
2180
2189
|
"aria-label": h.inputInstructions,
|
|
@@ -2183,9 +2192,9 @@ const N1 = Be(
|
|
|
2183
2192
|
value: ie,
|
|
2184
2193
|
onBlur: Ee,
|
|
2185
2194
|
onChange: ze,
|
|
2186
|
-
onFocus:
|
|
2187
|
-
onKeyDown(
|
|
2188
|
-
|
|
2195
|
+
onFocus: Ze,
|
|
2196
|
+
onKeyDown(pe) {
|
|
2197
|
+
pe.key === "Enter" && U != null && ve[U] && gt(U);
|
|
2189
2198
|
}
|
|
2190
2199
|
}))
|
|
2191
2200
|
),
|
|
@@ -2206,8 +2215,8 @@ const N1 = Be(
|
|
|
2206
2215
|
),
|
|
2207
2216
|
c && /* @__PURE__ */ e.createElement(
|
|
2208
2217
|
"button",
|
|
2209
|
-
|
|
2210
|
-
ref:
|
|
2218
|
+
ge(y({
|
|
2219
|
+
ref: ne.setReference
|
|
2211
2220
|
}, G({
|
|
2212
2221
|
onClick: Le,
|
|
2213
2222
|
disabled: n,
|
|
@@ -2225,20 +2234,20 @@ const N1 = Be(
|
|
|
2225
2234
|
)
|
|
2226
2235
|
)
|
|
2227
2236
|
),
|
|
2228
|
-
|
|
2237
|
+
ae && /* @__PURE__ */ e.createElement(
|
|
2229
2238
|
"div",
|
|
2230
2239
|
y({
|
|
2231
|
-
ref:
|
|
2240
|
+
ref: ne.setFloating,
|
|
2232
2241
|
className: `${H}__dropdown`
|
|
2233
|
-
},
|
|
2242
|
+
}, he({
|
|
2234
2243
|
style: {
|
|
2235
2244
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
2236
2245
|
}
|
|
2237
2246
|
})),
|
|
2238
|
-
/* @__PURE__ */ e.createElement("div", { style: y({}, ce) }, d ? /* @__PURE__ */ e.createElement("div", { className: `${H}__loading` }, m) :
|
|
2247
|
+
/* @__PURE__ */ e.createElement("div", { style: y({}, ce) }, d ? /* @__PURE__ */ e.createElement("div", { className: `${H}__loading` }, m) : ve.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${H}__options` }, et) : /* @__PURE__ */ e.createElement("div", { className: `${H}__no-results` }, f))
|
|
2239
2248
|
),
|
|
2240
2249
|
B && /* @__PURE__ */ e.createElement(
|
|
2241
|
-
|
|
2250
|
+
Qe,
|
|
2242
2251
|
{
|
|
2243
2252
|
id: l,
|
|
2244
2253
|
message: B,
|
|
@@ -2285,7 +2294,7 @@ const N1 = Be(
|
|
|
2285
2294
|
]);
|
|
2286
2295
|
const [g, b] = R(!1), [v, C] = R(null), $ = se(null);
|
|
2287
2296
|
let w = !1;
|
|
2288
|
-
const L = He(
|
|
2297
|
+
const L = He(We);
|
|
2289
2298
|
L && (w = L.isMobile);
|
|
2290
2299
|
let k = null;
|
|
2291
2300
|
const z = He(Qt);
|
|
@@ -2329,7 +2338,7 @@ const N1 = Be(
|
|
|
2329
2338
|
disabled: s,
|
|
2330
2339
|
hasClearButton: !1,
|
|
2331
2340
|
id: `${n}-combobox`,
|
|
2332
|
-
|
|
2341
|
+
defaultValue: v,
|
|
2333
2342
|
isLoading: a,
|
|
2334
2343
|
label: c,
|
|
2335
2344
|
labelStrings: r,
|
|
@@ -2478,7 +2487,7 @@ const H1 = (l) => {
|
|
|
2478
2487
|
"summary",
|
|
2479
2488
|
"className"
|
|
2480
2489
|
]);
|
|
2481
|
-
const d = n || `expansion-panel-${
|
|
2490
|
+
const d = n || `expansion-panel-${Pe()}`, u = "pds-expansion-panel";
|
|
2482
2491
|
return /* @__PURE__ */ e.createElement(
|
|
2483
2492
|
"div",
|
|
2484
2493
|
y({
|
|
@@ -2563,7 +2572,7 @@ Mt.propTypes = {
|
|
|
2563
2572
|
label: t.string.isRequired,
|
|
2564
2573
|
handleClearInput: t.func
|
|
2565
2574
|
};
|
|
2566
|
-
const
|
|
2575
|
+
const rt = ({ type: s }) => {
|
|
2567
2576
|
let n;
|
|
2568
2577
|
switch (s) {
|
|
2569
2578
|
case "search":
|
|
@@ -2585,14 +2594,14 @@ const ct = ({ type: s }) => {
|
|
|
2585
2594
|
}
|
|
2586
2595
|
));
|
|
2587
2596
|
};
|
|
2588
|
-
|
|
2597
|
+
rt.propTypes = {
|
|
2589
2598
|
type: t.oneOf(["search", "error", "success"]).isRequired
|
|
2590
2599
|
};
|
|
2591
2600
|
const Ms = ({ label: s }) => /* @__PURE__ */ e.createElement("div", { className: "pds-input__search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s), /* @__PURE__ */ e.createElement(A, { iconName: "slashForward" }));
|
|
2592
2601
|
Ms.propTypes = {
|
|
2593
2602
|
label: t.string.isRequired
|
|
2594
2603
|
};
|
|
2595
|
-
const Ls =
|
|
2604
|
+
const Ls = Fe(
|
|
2596
2605
|
(o, r) => {
|
|
2597
2606
|
var l = o, { children: s, active: n, className: a } = l, c = I(l, ["children", "active", "className"]);
|
|
2598
2607
|
const i = bs(), d = "pds-input__option", u = n ? `${d}--active` : null;
|
|
@@ -2614,7 +2623,7 @@ Ls.propTypes = {
|
|
|
2614
2623
|
active: t.bool,
|
|
2615
2624
|
className: t.string
|
|
2616
2625
|
};
|
|
2617
|
-
const
|
|
2626
|
+
const Je = Fe(
|
|
2618
2627
|
(b, g) => {
|
|
2619
2628
|
var v = b, {
|
|
2620
2629
|
children: s,
|
|
@@ -2699,14 +2708,14 @@ const Qe = Be(
|
|
|
2699
2708
|
className: `pds-input-field ${r ? `pds-input-field--${r}` : ""}`
|
|
2700
2709
|
},
|
|
2701
2710
|
i && l && /* @__PURE__ */ e.createElement("legend", { className: w }, i, S),
|
|
2702
|
-
n && /* @__PURE__ */ e.createElement(
|
|
2711
|
+
n && /* @__PURE__ */ e.createElement(rt, { type: n }),
|
|
2703
2712
|
s
|
|
2704
2713
|
),
|
|
2705
2714
|
u === "after" && P
|
|
2706
2715
|
);
|
|
2707
2716
|
}
|
|
2708
2717
|
);
|
|
2709
|
-
|
|
2718
|
+
Je.propTypes = {
|
|
2710
2719
|
/**
|
|
2711
2720
|
* Children. The input field component.
|
|
2712
2721
|
*/
|
|
@@ -2768,7 +2777,7 @@ Qe.propTypes = {
|
|
|
2768
2777
|
*/
|
|
2769
2778
|
className: t.string
|
|
2770
2779
|
};
|
|
2771
|
-
const
|
|
2780
|
+
const dt = (m) => {
|
|
2772
2781
|
var p = m, {
|
|
2773
2782
|
ariaLabel: s,
|
|
2774
2783
|
buttonType: n = "button",
|
|
@@ -2868,7 +2877,7 @@ const it = (m) => {
|
|
|
2868
2877
|
) : z
|
|
2869
2878
|
);
|
|
2870
2879
|
};
|
|
2871
|
-
|
|
2880
|
+
dt.displayName = "IconButton";
|
|
2872
2881
|
const M1 = (_) => {
|
|
2873
2882
|
var g = _, {
|
|
2874
2883
|
accept: s,
|
|
@@ -2917,7 +2926,7 @@ const M1 = (_) => {
|
|
|
2917
2926
|
H.value = "", v(!1), x();
|
|
2918
2927
|
}, V = C || i;
|
|
2919
2928
|
return /* @__PURE__ */ e.createElement(
|
|
2920
|
-
|
|
2929
|
+
Je,
|
|
2921
2930
|
y({
|
|
2922
2931
|
className: f,
|
|
2923
2932
|
decorator: N,
|
|
@@ -2954,7 +2963,7 @@ const M1 = (_) => {
|
|
|
2954
2963
|
}
|
|
2955
2964
|
),
|
|
2956
2965
|
b && /* @__PURE__ */ e.createElement(
|
|
2957
|
-
|
|
2966
|
+
dt,
|
|
2958
2967
|
{
|
|
2959
2968
|
ariaLabel: a,
|
|
2960
2969
|
buttonType: "button",
|
|
@@ -3246,7 +3255,7 @@ const V1 = new Intl.NumberFormat().formatToParts(100000089e-2), It = V1.find((s)
|
|
|
3246
3255
|
};
|
|
3247
3256
|
T(), u && !s && v.current.push($e.required), s && v.current.push($e.disabled);
|
|
3248
3257
|
let W = null;
|
|
3249
|
-
return k === "error" && (W = /* @__PURE__ */ e.createElement(
|
|
3258
|
+
return k === "error" && (W = /* @__PURE__ */ e.createElement(rt, { type: "error" })), k === "success" && (W = /* @__PURE__ */ e.createElement(rt, { type: "success" })), /* @__PURE__ */ e.createElement("div", y({ className: v.current.join(" ").trim() }, f), /* @__PURE__ */ e.createElement("span", { className: h ? null : "visually-hidden" }, /* @__PURE__ */ e.createElement("label", { className: "pds-input-label", htmlFor: c }, o)), /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__input-wrapper" }, W && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__decorators" }, W), /* @__PURE__ */ e.createElement(
|
|
3250
3259
|
"input",
|
|
3251
3260
|
{
|
|
3252
3261
|
className: "pds-input-field__input",
|
|
@@ -3417,7 +3426,7 @@ const S1 = (f) => {
|
|
|
3417
3426
|
};
|
|
3418
3427
|
V(), d && !n && g.current.push($e.required), n && g.current.push($e.disabled);
|
|
3419
3428
|
let W = null;
|
|
3420
|
-
return k === "error" && (W = /* @__PURE__ */ e.createElement(
|
|
3429
|
+
return k === "error" && (W = /* @__PURE__ */ e.createElement(rt, { type: "error" })), k === "success" && (W = /* @__PURE__ */ e.createElement(rt, { type: "success" })), /* @__PURE__ */ e.createElement(
|
|
3421
3430
|
"div",
|
|
3422
3431
|
y({
|
|
3423
3432
|
className: g.current.join(" ").trim(),
|
|
@@ -3625,12 +3634,12 @@ const Tt = 16, rs = 10, T1 = (N) => {
|
|
|
3625
3634
|
break;
|
|
3626
3635
|
}
|
|
3627
3636
|
}, []);
|
|
3628
|
-
let
|
|
3629
|
-
(b === "credit-card" || b === "phone") && U.current && (
|
|
3630
|
-
const te = (
|
|
3631
|
-
if (
|
|
3637
|
+
let ve = null;
|
|
3638
|
+
(b === "credit-card" || b === "phone") && U.current && (ve = U.current + U.numExtra);
|
|
3639
|
+
const te = (ae) => {
|
|
3640
|
+
if (ae) {
|
|
3632
3641
|
if (b === "credit-card") {
|
|
3633
|
-
const ce = ("" +
|
|
3642
|
+
const ce = ("" + ae).replace(/\D/g, "");
|
|
3634
3643
|
if (D.current = ce, ce) {
|
|
3635
3644
|
if (new RegExp("^34|37", "g").test(ce)) {
|
|
3636
3645
|
U.numExtra = 2, U.current = Tt - 1;
|
|
@@ -3644,7 +3653,7 @@ const Tt = 16, rs = 10, T1 = (N) => {
|
|
|
3644
3653
|
return ce;
|
|
3645
3654
|
}
|
|
3646
3655
|
if (b === "phone") {
|
|
3647
|
-
const ce = ("" +
|
|
3656
|
+
const ce = ("" + ae).replace(/\D/g, "");
|
|
3648
3657
|
if (D.current = ce, ce) {
|
|
3649
3658
|
U.numExtra = 4, U.current = rs;
|
|
3650
3659
|
let Le = ce.substring(0, 3), ke = ce.substring(3, 6);
|
|
@@ -3655,48 +3664,48 @@ const Tt = 16, rs = 10, T1 = (N) => {
|
|
|
3655
3664
|
return ce;
|
|
3656
3665
|
}
|
|
3657
3666
|
}
|
|
3658
|
-
return
|
|
3667
|
+
return ae;
|
|
3659
3668
|
};
|
|
3660
3669
|
oe(() => {
|
|
3661
3670
|
l && n && H(n(l));
|
|
3662
3671
|
}, []);
|
|
3663
3672
|
const de = () => {
|
|
3664
3673
|
P(""), F(null);
|
|
3665
|
-
}, le = (
|
|
3666
|
-
p && p(
|
|
3667
|
-
},
|
|
3668
|
-
b ? m && m({ formattedValue:
|
|
3669
|
-
}, _e = (
|
|
3670
|
-
T(b ? te(
|
|
3671
|
-
}, ee = (
|
|
3674
|
+
}, le = (ae) => {
|
|
3675
|
+
p && p(ae.target);
|
|
3676
|
+
}, ne = (ae) => {
|
|
3677
|
+
b ? m && m({ formattedValue: ae, rawValue: D.current }) : m && m(ae);
|
|
3678
|
+
}, _e = (ae) => {
|
|
3679
|
+
T(b ? te(ae.target.value) : ae.target.value), de(), n && H(n(b ? D.current : ae.target.value)), ne(ae.target.value);
|
|
3680
|
+
}, ee = (ae) => {
|
|
3672
3681
|
if (C && B(!1), w) {
|
|
3673
|
-
const ce = w(
|
|
3682
|
+
const ce = w(ae.target.value) || {};
|
|
3674
3683
|
de(), ce.error && F("error"), ce.success && F("success"), P(ce.message);
|
|
3675
3684
|
}
|
|
3676
|
-
b && v && !w && (W.current.checkValidity() === !1 ||
|
|
3677
|
-
}, Q = (
|
|
3685
|
+
b && v && !w && (W.current.checkValidity() === !1 || ae.target.value.length < ve ? (F("error"), b === "credit-card" && P(L.creditCardError), b === "phone" && P(L.phoneError)) : F("success")), ne(ae.target.value);
|
|
3686
|
+
}, Q = (ae) => {
|
|
3678
3687
|
var ce;
|
|
3679
|
-
(!((ce = O.current) != null && ce.contains(
|
|
3688
|
+
(!((ce = O.current) != null && ce.contains(ae.relatedTarget)) || !ae.relatedTarget) && B(!1);
|
|
3680
3689
|
}, G = () => {
|
|
3681
|
-
de(), T(""), D.current = "", W.current.focus(), n && H(n("")),
|
|
3690
|
+
de(), T(""), D.current = "", W.current.focus(), n && H(n("")), ne("");
|
|
3682
3691
|
};
|
|
3683
3692
|
oe(() => {
|
|
3684
3693
|
if ($ === "search" && r) {
|
|
3685
|
-
const
|
|
3694
|
+
const ae = (ce) => {
|
|
3686
3695
|
ce.key === "/" && (/^(?:input|textarea|select|button)$/i.test(ce.target.tagName) || (ce.preventDefault(), document.getElementById(o).focus()));
|
|
3687
3696
|
};
|
|
3688
|
-
return document.addEventListener("keyup",
|
|
3689
|
-
document.removeEventListener("keyup",
|
|
3697
|
+
return document.addEventListener("keyup", ae), () => {
|
|
3698
|
+
document.removeEventListener("keyup", ae);
|
|
3690
3699
|
};
|
|
3691
3700
|
}
|
|
3692
3701
|
}, []);
|
|
3693
|
-
const
|
|
3694
|
-
B((
|
|
3702
|
+
const he = () => {
|
|
3703
|
+
B((ae) => !ae);
|
|
3695
3704
|
};
|
|
3696
3705
|
C && $ === "password" && (Z ? z.type = "text" : z.type = "password"), b === "phone" && (z.type = "tel");
|
|
3697
3706
|
const we = S || h;
|
|
3698
3707
|
return /* @__PURE__ */ e.createElement(
|
|
3699
|
-
|
|
3708
|
+
Je,
|
|
3700
3709
|
y({
|
|
3701
3710
|
className: k,
|
|
3702
3711
|
decorator: X,
|
|
@@ -3733,8 +3742,8 @@ const Tt = 16, rs = 10, T1 = (N) => {
|
|
|
3733
3742
|
"aria-invalid": j === "error",
|
|
3734
3743
|
"aria-describedby": we ? `${o}__message` : null,
|
|
3735
3744
|
autoComplete: $ === "password" ? "off" : s,
|
|
3736
|
-
maxLength:
|
|
3737
|
-
minLength:
|
|
3745
|
+
maxLength: ve,
|
|
3746
|
+
minLength: ve
|
|
3738
3747
|
}
|
|
3739
3748
|
),
|
|
3740
3749
|
V && /* @__PURE__ */ e.createElement("div", { className: "pds-input__counter" }, V),
|
|
@@ -3753,8 +3762,8 @@ const Tt = 16, rs = 10, T1 = (N) => {
|
|
|
3753
3762
|
className: "pds-input__visibility-toggle",
|
|
3754
3763
|
title: Z ? u.visibilityToggleHide : u.visibilityToggleShow,
|
|
3755
3764
|
"aria-controls": o,
|
|
3756
|
-
onClick:
|
|
3757
|
-
onMouseDown: (
|
|
3765
|
+
onClick: he,
|
|
3766
|
+
onMouseDown: (ae) => ae.preventDefault()
|
|
3758
3767
|
},
|
|
3759
3768
|
/* @__PURE__ */ e.createElement(A, { iconName: Z ? "eyeSlash" : "eye" })
|
|
3760
3769
|
),
|
|
@@ -3953,7 +3962,7 @@ const os = [
|
|
|
3953
3962
|
], R1 = (s) => {
|
|
3954
3963
|
const n = parseInt(_s(s), 16);
|
|
3955
3964
|
return os[n % os.length];
|
|
3956
|
-
},
|
|
3965
|
+
}, mt = (l) => {
|
|
3957
3966
|
var i = l, {
|
|
3958
3967
|
size: s = "md",
|
|
3959
3968
|
imageSrc: n,
|
|
@@ -3972,9 +3981,9 @@ const os = [
|
|
|
3972
3981
|
borderRadius: "100%",
|
|
3973
3982
|
height: "100%",
|
|
3974
3983
|
width: "100%"
|
|
3975
|
-
}, f = n ? /* @__PURE__ */ e.createElement("img", { src: `${n}`, className: `${d}__image`, alt: "" }) : /* @__PURE__ */ e.createElement("span", { style: p }), E = /* @__PURE__ */ e.createElement("span", { className: `${d}__content` }, f), _ = Ut(a) ?
|
|
3984
|
+
}, f = n ? /* @__PURE__ */ e.createElement("img", { src: `${n}`, className: `${d}__image`, alt: "" }) : /* @__PURE__ */ e.createElement("span", { style: p }), E = /* @__PURE__ */ e.createElement("span", { className: `${d}__content` }, f), _ = Ut(a) ? je(
|
|
3976
3985
|
a,
|
|
3977
|
-
|
|
3986
|
+
ge(y({}, a.props), {
|
|
3978
3987
|
className: `${d}__content ${d}__content--link`
|
|
3979
3988
|
}),
|
|
3980
3989
|
f
|
|
@@ -4034,9 +4043,9 @@ const os = [
|
|
|
4034
4043
|
middleware: [s1()]
|
|
4035
4044
|
});
|
|
4036
4045
|
let x = !1;
|
|
4037
|
-
const M = He(
|
|
4046
|
+
const M = He(We);
|
|
4038
4047
|
M && (x = M.isMobile);
|
|
4039
|
-
const T = f && x, V = 'data:image/svg+xml,<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="12.5" fill="%23CFCFD3"/><path d="M12.5 11.75C11.2422 11.75 10.0938 11.0938 9.46484 10C8.83594 8.93359 8.83594 7.59375 9.46484 6.5C10.0938 5.43359 11.2422 4.75 12.5 4.75C13.7305 4.75 14.8789 5.43359 15.5078 6.5C16.1367 7.59375 16.1367 8.93359 15.5078 10C14.8789 11.0938 13.7305 11.75 12.5 11.75ZM11.2422 13.0625H13.7305C16.4375 13.0625 18.625 15.25 18.625 17.957C18.625 18.3945 18.2422 18.75 17.8047 18.75H7.16797C6.73047 18.75 6.375 18.3945 6.375 17.957C6.375 15.25 8.53516 13.0625 11.2422 13.0625Z" fill="%2323232D"/></svg>', H = "pds-menu-button", S = T ? `${H}--isMobile` : null, P = f ? `${H}--navbar` : null, j =
|
|
4048
|
+
const T = f && x, V = 'data:image/svg+xml,<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="12.5" fill="%23CFCFD3"/><path d="M12.5 11.75C11.2422 11.75 10.0938 11.0938 9.46484 10C8.83594 8.93359 8.83594 7.59375 9.46484 6.5C10.0938 5.43359 11.2422 4.75 12.5 4.75C13.7305 4.75 14.8789 5.43359 15.5078 6.5C16.1367 7.59375 16.1367 8.93359 15.5078 10C14.8789 11.0938 13.7305 11.75 12.5 11.75ZM11.2422 13.0625H13.7305C16.4375 13.0625 18.625 15.25 18.625 17.957C18.625 18.3945 18.2422 18.75 17.8047 18.75H7.16797C6.73047 18.75 6.375 18.3945 6.375 17.957C6.375 15.25 8.53516 13.0625 11.2422 13.0625Z" fill="%2323232D"/></svg>', H = "pds-menu-button", S = T ? `${H}--isMobile` : null, P = f ? `${H}--navbar` : null, j = Pe(), [F] = R(`menu-button-${j}`), [Z] = R(`menu-listbox-${j}`), B = r || F, W = N.floating, O = se(null), [D, U] = R(!1), [K, ie] = R(!1), [X, ve] = R(""), [te, de] = R(0), le = se([]), ne = se([]), _e = se([]);
|
|
4040
4049
|
Ks(() => {
|
|
4041
4050
|
window.addEventListener("mousedown", Ee, !0), k();
|
|
4042
4051
|
const q = W.current;
|
|
@@ -4047,34 +4056,34 @@ const os = [
|
|
|
4047
4056
|
};
|
|
4048
4057
|
}, [D, z]);
|
|
4049
4058
|
const ee = (q, re) => {
|
|
4050
|
-
|
|
4059
|
+
ve(q), de(re);
|
|
4051
4060
|
}, Q = () => {
|
|
4052
4061
|
U(!0), ie(!0);
|
|
4053
4062
|
}, G = () => {
|
|
4054
4063
|
U(!1), ee(void 0, -1), O.current.querySelector(`#${B}`).focus();
|
|
4055
|
-
},
|
|
4064
|
+
}, he = (q) => {
|
|
4056
4065
|
q = q.toLowerCase();
|
|
4057
4066
|
let re = !1;
|
|
4058
4067
|
for (let Y = te + 1; Y < _e.current.length; Y++)
|
|
4059
4068
|
if (_e.current[Y].label.toLowerCase().startsWith(q)) {
|
|
4060
|
-
ee(
|
|
4069
|
+
ee(ne.current[Y], Y), re = !0;
|
|
4061
4070
|
break;
|
|
4062
4071
|
}
|
|
4063
4072
|
if (re === !1) {
|
|
4064
4073
|
for (let Y = 0; Y < te; Y++)
|
|
4065
4074
|
if (_e.current[Y].label.toLowerCase().startsWith(q)) {
|
|
4066
|
-
ee(
|
|
4075
|
+
ee(ne.current[Y], Y);
|
|
4067
4076
|
break;
|
|
4068
4077
|
}
|
|
4069
4078
|
}
|
|
4070
4079
|
}, we = (q) => {
|
|
4071
|
-
const re =
|
|
4080
|
+
const re = ne.current.indexOf(q), Y = _e.current[re];
|
|
4072
4081
|
if (Y.callback && !Y.disabled && Y.callback(Y), Y.linkContent && !Y.disabled) {
|
|
4073
|
-
const
|
|
4074
|
-
|
|
4082
|
+
const be = O.current.querySelector(`#${q} a`);
|
|
4083
|
+
be && be.click();
|
|
4075
4084
|
}
|
|
4076
|
-
},
|
|
4077
|
-
const q =
|
|
4085
|
+
}, ae = () => {
|
|
4086
|
+
const q = ne.current[te];
|
|
4078
4087
|
we(q);
|
|
4079
4088
|
}, ce = (q) => {
|
|
4080
4089
|
D ? G() : Q(), ie((re) => !re), q.stopPropagation(), q.preventDefault();
|
|
@@ -4087,7 +4096,7 @@ const os = [
|
|
|
4087
4096
|
case "Enter":
|
|
4088
4097
|
case "ArrowDown":
|
|
4089
4098
|
case "Down":
|
|
4090
|
-
Q(), ee(
|
|
4099
|
+
Q(), ee(ne.current[0], 0), Y = !0;
|
|
4091
4100
|
break;
|
|
4092
4101
|
case "Esc":
|
|
4093
4102
|
case "Escape":
|
|
@@ -4095,25 +4104,25 @@ const os = [
|
|
|
4095
4104
|
break;
|
|
4096
4105
|
case "Up":
|
|
4097
4106
|
case "ArrowUp": {
|
|
4098
|
-
const
|
|
4099
|
-
Q(), ee(
|
|
4107
|
+
const be = ne.current.length - 1;
|
|
4108
|
+
Q(), ee(ne.current[be], be), Y = !0;
|
|
4100
4109
|
break;
|
|
4101
4110
|
}
|
|
4102
4111
|
}
|
|
4103
4112
|
Y && (q.stopPropagation(), q.preventDefault());
|
|
4104
4113
|
}, ze = (q) => {
|
|
4105
|
-
let re = q.key, Y = !1,
|
|
4114
|
+
let re = q.key, Y = !1, be = "", me = 0;
|
|
4106
4115
|
function Ne(Ce) {
|
|
4107
4116
|
return Ce.length === 1 && Ce.match(/\S/);
|
|
4108
4117
|
}
|
|
4109
4118
|
if (!(q.ctrlKey || q.altKey || q.metaKey)) {
|
|
4110
4119
|
if (q.shiftKey)
|
|
4111
|
-
Ne(re) && (
|
|
4120
|
+
Ne(re) && (he(re), Y = !0), q.key === "Tab" && (G(), Y = !0);
|
|
4112
4121
|
else
|
|
4113
4122
|
switch (re) {
|
|
4114
4123
|
case " ":
|
|
4115
4124
|
case "Enter":
|
|
4116
|
-
G(),
|
|
4125
|
+
G(), ae(), Y = !0;
|
|
4117
4126
|
break;
|
|
4118
4127
|
case "Esc":
|
|
4119
4128
|
case "Escape":
|
|
@@ -4121,34 +4130,34 @@ const os = [
|
|
|
4121
4130
|
break;
|
|
4122
4131
|
case "Up":
|
|
4123
4132
|
case "ArrowUp":
|
|
4124
|
-
me = te - 1, me < 0 && (me =
|
|
4133
|
+
me = te - 1, me < 0 && (me = ne.current.length - 1), be = ne.current[me], ee(be, me), Y = !0;
|
|
4125
4134
|
break;
|
|
4126
4135
|
case "ArrowDown":
|
|
4127
4136
|
case "Down":
|
|
4128
|
-
me = te + 1, me >
|
|
4137
|
+
me = te + 1, me > ne.current.length - 1 && (me = 0), be = ne.current[me], ee(be, me), Y = !0;
|
|
4129
4138
|
break;
|
|
4130
4139
|
case "Home":
|
|
4131
4140
|
case "PageUp":
|
|
4132
|
-
ee(
|
|
4141
|
+
ee(ne.current[0], 0), Y = !0;
|
|
4133
4142
|
break;
|
|
4134
4143
|
case "End":
|
|
4135
4144
|
case "PageDown": {
|
|
4136
|
-
const Ce =
|
|
4137
|
-
ee(
|
|
4145
|
+
const Ce = ne.current.length - 1;
|
|
4146
|
+
ee(ne.current[Ce], Ce), Y = !0;
|
|
4138
4147
|
break;
|
|
4139
4148
|
}
|
|
4140
4149
|
case "Tab":
|
|
4141
4150
|
G();
|
|
4142
4151
|
break;
|
|
4143
4152
|
default:
|
|
4144
|
-
Ne(re) && (
|
|
4153
|
+
Ne(re) && (he(re), Y = !0);
|
|
4145
4154
|
break;
|
|
4146
4155
|
}
|
|
4147
4156
|
Y && (q.stopPropagation(), q.preventDefault());
|
|
4148
4157
|
}
|
|
4149
4158
|
}, Ee = (q) => {
|
|
4150
4159
|
O.current && !O.current.contains(q.target) && D && G();
|
|
4151
|
-
},
|
|
4160
|
+
}, Ze = (q, re, Y = "", be = "", ...me) => {
|
|
4152
4161
|
const Ne = Y ? `-group-${Y}` : "", Ce = B + Ne + "-item-" + (re + 1), Ve = q.id ? q.id : Ce;
|
|
4153
4162
|
if (Ot(q))
|
|
4154
4163
|
return /* @__PURE__ */ e.createElement("li", { role: "separator", key: Ve });
|
|
@@ -4157,8 +4166,8 @@ const os = [
|
|
|
4157
4166
|
"li",
|
|
4158
4167
|
{
|
|
4159
4168
|
role: "presentation",
|
|
4160
|
-
id:
|
|
4161
|
-
key:
|
|
4169
|
+
id: be || null,
|
|
4170
|
+
key: be,
|
|
4162
4171
|
className: `${H}__listbox-heading`
|
|
4163
4172
|
},
|
|
4164
4173
|
q.label
|
|
@@ -4166,22 +4175,22 @@ const os = [
|
|
|
4166
4175
|
if (D1(q))
|
|
4167
4176
|
return /* @__PURE__ */ e.createElement("li", { role: "presentation", key: Ve }, q.nodeContent);
|
|
4168
4177
|
if (Dt(q) || q.label) {
|
|
4169
|
-
|
|
4178
|
+
ne.current.push(Ve), _e.current.push(q);
|
|
4170
4179
|
let bt = !1;
|
|
4171
4180
|
X !== "" && !q.disabled && (bt = X === Ve);
|
|
4172
4181
|
let Me;
|
|
4173
4182
|
if (q.label && (Me = [q.label]), Dt(q) && (Me = [q.linkContent.props.children]), q.iconName) {
|
|
4174
|
-
const
|
|
4175
|
-
Me.unshift(
|
|
4183
|
+
const nt = /* @__PURE__ */ e.createElement(A, { key: `icon-${j}`, iconName: q.iconName, iconSize: "md" });
|
|
4184
|
+
Me.unshift(nt);
|
|
4176
4185
|
}
|
|
4177
|
-
let et;
|
|
4178
|
-
q.description && (et = /* @__PURE__ */ e.createElement("span", { className: `${H}__item-description` }, q.description));
|
|
4179
4186
|
let tt;
|
|
4187
|
+
q.description && (tt = /* @__PURE__ */ e.createElement("span", { className: `${H}__item-description` }, q.description));
|
|
4188
|
+
let st;
|
|
4180
4189
|
if (Dt(q)) {
|
|
4181
|
-
const
|
|
4182
|
-
|
|
4190
|
+
const nt = q.linkContent.type;
|
|
4191
|
+
st = /* @__PURE__ */ e.createElement(nt, y({ tabIndex: -1 }, q.linkContent.props), /* @__PURE__ */ e.createElement("span", { className: `${H}__item-label` }, Me), tt);
|
|
4183
4192
|
} else
|
|
4184
|
-
|
|
4193
|
+
st = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${H}__item-label` }, Me), tt);
|
|
4185
4194
|
return /* @__PURE__ */ e.createElement(
|
|
4186
4195
|
"li",
|
|
4187
4196
|
y({
|
|
@@ -4194,25 +4203,25 @@ const os = [
|
|
|
4194
4203
|
onClick: Le,
|
|
4195
4204
|
"aria-disabled": q.disabled ? !0 : null
|
|
4196
4205
|
}, me),
|
|
4197
|
-
|
|
4206
|
+
st
|
|
4198
4207
|
);
|
|
4199
4208
|
}
|
|
4200
|
-
},
|
|
4209
|
+
}, gt = (q, re) => {
|
|
4201
4210
|
const Y = [];
|
|
4202
|
-
let
|
|
4211
|
+
let be = re.shift(), me = [];
|
|
4203
4212
|
return q.map((Ne, Ce) => {
|
|
4204
|
-
Ne !==
|
|
4213
|
+
Ne !== be ? (me.push(Ne), Ce + 1 === q.length && Y.push(me)) : (Y.push(me), me = [], me.push(Ne), be = re.shift());
|
|
4205
4214
|
}), Y.filter((Ne) => Ne.length > 0);
|
|
4206
4215
|
}, xt = (q) => {
|
|
4207
|
-
|
|
4216
|
+
ne.current = [], _e.current = [];
|
|
4208
4217
|
const re = q, Y = q.filter(
|
|
4209
4218
|
Rt || Ot
|
|
4210
|
-
),
|
|
4219
|
+
), be = Y.length > 0;
|
|
4211
4220
|
let me = [`${H}__listbox`];
|
|
4212
|
-
if (f && me.push(`${H}__listbox--navbar`), (a === "avatar" || a === "avatar-with-text") && me.push(`${H}__listbox--avatar`), d === "end" && me.push(`${H}__listbox--end`), a === "icon-only" && me.push(`${H}__listbox--icon-only`), me = me.join(" ").trim().replace(/\s+/g, " "),
|
|
4213
|
-
const Ne =
|
|
4221
|
+
if (f && me.push(`${H}__listbox--navbar`), (a === "avatar" || a === "avatar-with-text") && me.push(`${H}__listbox--avatar`), d === "end" && me.push(`${H}__listbox--end`), a === "icon-only" && me.push(`${H}__listbox--icon-only`), me = me.join(" ").trim().replace(/\s+/g, " "), be) {
|
|
4222
|
+
const Ne = gt(q, Y);
|
|
4214
4223
|
Ne.forEach(() => {
|
|
4215
|
-
le.current.push(
|
|
4224
|
+
le.current.push(Pe());
|
|
4216
4225
|
});
|
|
4217
4226
|
let Ce = le.current[0];
|
|
4218
4227
|
const Ve = Ne[0].findIndex(
|
|
@@ -4238,22 +4247,22 @@ const os = [
|
|
|
4238
4247
|
onKeyDown: ze,
|
|
4239
4248
|
ref: w
|
|
4240
4249
|
},
|
|
4241
|
-
Ne.map((Me,
|
|
4242
|
-
Ce = le.current[
|
|
4243
|
-
const
|
|
4250
|
+
Ne.map((Me, tt) => {
|
|
4251
|
+
Ce = le.current[tt];
|
|
4252
|
+
const st = Me[0].isHeading, nt = st ? `${B}-group-${Ce}-heading` : "", js = `${B}-group-${Ce}`, Bs = st ? null : `${m} ${tt + 1}`;
|
|
4244
4253
|
return /* @__PURE__ */ e.createElement(
|
|
4245
4254
|
"ul",
|
|
4246
4255
|
{
|
|
4247
4256
|
role: "group",
|
|
4248
|
-
"aria-labelledby":
|
|
4257
|
+
"aria-labelledby": nt,
|
|
4249
4258
|
"aria-label": Bs,
|
|
4250
4259
|
key: js
|
|
4251
4260
|
},
|
|
4252
|
-
Me.map((Fs, Ws) =>
|
|
4261
|
+
Me.map((Fs, Ws) => Ze(
|
|
4253
4262
|
Fs,
|
|
4254
4263
|
Ws,
|
|
4255
4264
|
Ce,
|
|
4256
|
-
|
|
4265
|
+
nt
|
|
4257
4266
|
))
|
|
4258
4267
|
);
|
|
4259
4268
|
})
|
|
@@ -4279,13 +4288,13 @@ const os = [
|
|
|
4279
4288
|
onKeyDown: ze,
|
|
4280
4289
|
ref: w
|
|
4281
4290
|
},
|
|
4282
|
-
re.map((Ce, Ve) =>
|
|
4291
|
+
re.map((Ce, Ve) => Ze(Ce, Ve))
|
|
4283
4292
|
));
|
|
4284
4293
|
}
|
|
4285
4294
|
};
|
|
4286
|
-
let
|
|
4287
|
-
a === "icon-end" && (
|
|
4288
|
-
|
|
4295
|
+
let et;
|
|
4296
|
+
a === "icon-end" && (et = /* @__PURE__ */ e.createElement(
|
|
4297
|
+
Ke,
|
|
4289
4298
|
{
|
|
4290
4299
|
id: B,
|
|
4291
4300
|
isSplitButton: o,
|
|
@@ -4304,8 +4313,8 @@ const os = [
|
|
|
4304
4313
|
onKeyDown: ke,
|
|
4305
4314
|
ref: $
|
|
4306
4315
|
}
|
|
4307
|
-
)), a === "icon-only" && (
|
|
4308
|
-
|
|
4316
|
+
)), a === "icon-only" && (et = /* @__PURE__ */ e.createElement(
|
|
4317
|
+
dt,
|
|
4309
4318
|
{
|
|
4310
4319
|
id: B,
|
|
4311
4320
|
ariaLabel: l,
|
|
@@ -4323,7 +4332,7 @@ const os = [
|
|
|
4323
4332
|
ref: $,
|
|
4324
4333
|
hasTooltip: !1
|
|
4325
4334
|
}
|
|
4326
|
-
)), (a === "avatar" || a === "avatar-with-text") && (
|
|
4335
|
+
)), (a === "avatar" || a === "avatar-with-text") && (et = /* @__PURE__ */ e.createElement(
|
|
4327
4336
|
"button",
|
|
4328
4337
|
{
|
|
4329
4338
|
id: B,
|
|
@@ -4338,7 +4347,7 @@ const os = [
|
|
|
4338
4347
|
onKeyDown: ke,
|
|
4339
4348
|
ref: $
|
|
4340
4349
|
},
|
|
4341
|
-
/* @__PURE__ */ e.createElement("span", { className: `${H}__avatar-label` }, /* @__PURE__ */ e.createElement(
|
|
4350
|
+
/* @__PURE__ */ e.createElement("span", { className: `${H}__avatar-label` }, /* @__PURE__ */ e.createElement(mt, { size: "sm", imageSrc: s || V }), a === "avatar-with-text" && l),
|
|
4342
4351
|
/* @__PURE__ */ e.createElement(
|
|
4343
4352
|
A,
|
|
4344
4353
|
{
|
|
@@ -4348,13 +4357,13 @@ const os = [
|
|
|
4348
4357
|
}
|
|
4349
4358
|
)
|
|
4350
4359
|
));
|
|
4351
|
-
const
|
|
4360
|
+
const pe = (q) => {
|
|
4352
4361
|
const re = q.target;
|
|
4353
4362
|
re.classList.toggle(`${H}__toggle--expanded`), re.setAttribute(
|
|
4354
4363
|
"aria-expanded",
|
|
4355
4364
|
re.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
4356
4365
|
), re.nextElementSibling.classList.toggle(`${H}__mobile-menu--expanded`);
|
|
4357
|
-
},
|
|
4366
|
+
}, fe = () => /* @__PURE__ */ e.createElement("ul", { className: `${H}__mobile-menu`, role: "menu" }, i.map((q, re) => Ze(q, re)));
|
|
4358
4367
|
let xe;
|
|
4359
4368
|
const Re = a === "icon-end" ? "pds-button pds-button--navbar" : null, De = [`${H}__toggle`, Re].join(" ").trim().replace(/\s+/g, " ");
|
|
4360
4369
|
T && (xe = /* @__PURE__ */ e.createElement(
|
|
@@ -4365,10 +4374,10 @@ const os = [
|
|
|
4365
4374
|
disabled: n,
|
|
4366
4375
|
className: De,
|
|
4367
4376
|
"aria-expanded": !1,
|
|
4368
|
-
onClick:
|
|
4377
|
+
onClick: pe
|
|
4369
4378
|
},
|
|
4370
4379
|
a === "avatar" || a === "avatar-with-text" ? /* @__PURE__ */ e.createElement("span", { className: `${H}__avatar-label` }, /* @__PURE__ */ e.createElement(
|
|
4371
|
-
|
|
4380
|
+
mt,
|
|
4372
4381
|
{
|
|
4373
4382
|
size: "sm",
|
|
4374
4383
|
imageSrc: s || V
|
|
@@ -4383,7 +4392,7 @@ const os = [
|
|
|
4383
4392
|
}
|
|
4384
4393
|
)
|
|
4385
4394
|
));
|
|
4386
|
-
const
|
|
4395
|
+
const Ae = xe, ft = D ? `${H}--expanded` : null;
|
|
4387
4396
|
return /* @__PURE__ */ e.createElement(
|
|
4388
4397
|
"span",
|
|
4389
4398
|
y({
|
|
@@ -4391,7 +4400,7 @@ const os = [
|
|
|
4391
4400
|
"data-testid": h,
|
|
4392
4401
|
ref: O
|
|
4393
4402
|
}, _),
|
|
4394
|
-
T ? /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
4403
|
+
T ? /* @__PURE__ */ e.createElement(e.Fragment, null, Ae, /* @__PURE__ */ e.createElement(fe, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, et, xt(i))
|
|
4395
4404
|
);
|
|
4396
4405
|
};
|
|
4397
4406
|
Vs.propTypes = {
|
|
@@ -4415,7 +4424,7 @@ Vs.propTypes = {
|
|
|
4415
4424
|
/**
|
|
4416
4425
|
* Icon name for icon-only buttons.
|
|
4417
4426
|
*/
|
|
4418
|
-
iconName:
|
|
4427
|
+
iconName: pt,
|
|
4419
4428
|
/**
|
|
4420
4429
|
* Optional ID value for this component.
|
|
4421
4430
|
*/
|
|
@@ -4469,7 +4478,7 @@ Vs.propTypes = {
|
|
|
4469
4478
|
*/
|
|
4470
4479
|
className: t.string
|
|
4471
4480
|
};
|
|
4472
|
-
const
|
|
4481
|
+
const at = (r) => {
|
|
4473
4482
|
var o = r, {
|
|
4474
4483
|
children: s,
|
|
4475
4484
|
width: n = "standard",
|
|
@@ -4488,7 +4497,7 @@ const nt = (r) => {
|
|
|
4488
4497
|
s
|
|
4489
4498
|
);
|
|
4490
4499
|
};
|
|
4491
|
-
|
|
4500
|
+
at.propTypes = {
|
|
4492
4501
|
/**
|
|
4493
4502
|
* Container content.
|
|
4494
4503
|
*/
|
|
@@ -4820,10 +4829,10 @@ const A1 = /* @__PURE__ */ e.createElement(
|
|
|
4820
4829
|
case "sub-brand":
|
|
4821
4830
|
m = is;
|
|
4822
4831
|
}
|
|
4823
|
-
const p = e.isValidElement(a) && typeof a.props.children == "string" ? a.props.children : "", f = e.isValidElement(a) ?
|
|
4832
|
+
const p = e.isValidElement(a) && typeof a.props.children == "string" ? a.props.children : "", f = e.isValidElement(a) ? je(a, {
|
|
4824
4833
|
children: m,
|
|
4825
4834
|
"aria-Label": p
|
|
4826
|
-
}) : a, E = (g = c == null ? void 0 : c.text) != null ? g : "", _ = c && n === "sub-brand" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__separator" }), /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__sub-brand-wordmark" }, c.linkContent ?
|
|
4835
|
+
}) : a, E = (g = c == null ? void 0 : c.text) != null ? g : "", _ = c && n === "sub-brand" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__separator" }), /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__sub-brand-wordmark" }, c.linkContent ? je(c.linkContent, {
|
|
4827
4836
|
children: E,
|
|
4828
4837
|
"aria-label": E
|
|
4829
4838
|
}) : E)) : null;
|
|
@@ -4866,7 +4875,7 @@ const A1 = /* @__PURE__ */ e.createElement(
|
|
|
4866
4875
|
]);
|
|
4867
4876
|
const [f, E] = R(!1);
|
|
4868
4877
|
let _ = !1;
|
|
4869
|
-
const g = He(
|
|
4878
|
+
const g = He(We);
|
|
4870
4879
|
g && (_ = g.isMobile);
|
|
4871
4880
|
const b = "pds-navbar", v = c ? `${b}--noBorder` : "", C = n !== "default" ? `${b}--${n}` : "", $ = _ ? `${b}--isMobile` : `${b}--notMobile`;
|
|
4872
4881
|
oe(() => (window.addEventListener("keyup", w), () => {
|
|
@@ -4917,7 +4926,7 @@ const A1 = /* @__PURE__ */ e.createElement(
|
|
|
4917
4926
|
const x = N["items-left"], M = N["items-right"];
|
|
4918
4927
|
let T = "default";
|
|
4919
4928
|
(n === "reverse" || n === "reverse-transparent") && (T = "reverse");
|
|
4920
|
-
const V = l ? l.props.children : "", H = l ?
|
|
4929
|
+
const V = l ? l.props.children : "", H = l ? je(l, {
|
|
4921
4930
|
children: /* @__PURE__ */ e.createElement("img", { className: `${b}__custom-logo`, src: i }),
|
|
4922
4931
|
"aria-label": V
|
|
4923
4932
|
}) : /* @__PURE__ */ e.createElement("img", { className: `${b}__custom-logo`, src: i, alt: "" }), S = () => o === "custom" ? H : /* @__PURE__ */ e.createElement(
|
|
@@ -4942,7 +4951,7 @@ const A1 = /* @__PURE__ */ e.createElement(
|
|
|
4942
4951
|
className: f ? `${b}__mobile ${b}__mobile--open` : `${b}__mobile ${b}__mobile--closed`,
|
|
4943
4952
|
ref: k
|
|
4944
4953
|
},
|
|
4945
|
-
/* @__PURE__ */ e.createElement(
|
|
4954
|
+
/* @__PURE__ */ e.createElement(at, null, x, M)
|
|
4946
4955
|
), F = /* @__PURE__ */ e.createElement(
|
|
4947
4956
|
n1,
|
|
4948
4957
|
{
|
|
@@ -4951,8 +4960,8 @@ const A1 = /* @__PURE__ */ e.createElement(
|
|
|
4951
4960
|
initialFocus: !1
|
|
4952
4961
|
}
|
|
4953
4962
|
},
|
|
4954
|
-
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
4955
|
-
), Z = /* @__PURE__ */ e.createElement(
|
|
4963
|
+
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(at, { className: `${b}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${b}__inner-mobile` }, /* @__PURE__ */ e.createElement(S, null), s && P)), /* @__PURE__ */ e.createElement(at, null, s && j))
|
|
4964
|
+
), Z = /* @__PURE__ */ e.createElement(at, { width: a, className: `${b}__inner` }, !r && /* @__PURE__ */ e.createElement("div", { className: `${b}__logo` }, /* @__PURE__ */ e.createElement(S, null)), /* @__PURE__ */ e.createElement("div", { className: `${b}__content` }, x ? /* @__PURE__ */ e.createElement("div", { className: `${b}__items-left` }, x) : /* @__PURE__ */ e.createElement("span", null), M && /* @__PURE__ */ e.createElement("div", { className: `${b}__items-right` }, M)));
|
|
4956
4965
|
return /* @__PURE__ */ e.createElement(
|
|
4957
4966
|
"header",
|
|
4958
4967
|
y({
|
|
@@ -5022,8 +5031,8 @@ const Ss = ({ items: s, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
5022
5031
|
placement: "bottom-start",
|
|
5023
5032
|
open: c,
|
|
5024
5033
|
onOpenChange: r,
|
|
5025
|
-
whileElementsMounted:
|
|
5026
|
-
}), p =
|
|
5034
|
+
whileElementsMounted: qe
|
|
5035
|
+
}), p = ot(m, { event: "mousedown" }), f = Se(m), E = Te(m, { role: "menu" });
|
|
5027
5036
|
let _;
|
|
5028
5037
|
d ? _ = Et(m, {
|
|
5029
5038
|
enabled: !1
|
|
@@ -5139,7 +5148,7 @@ const j1 = (l) => {
|
|
|
5139
5148
|
};
|
|
5140
5149
|
let x = [];
|
|
5141
5150
|
return a.map((M, T) => {
|
|
5142
|
-
const V = `item-${
|
|
5151
|
+
const V = `item-${Pe()}`, H = M.id ? M.id : V;
|
|
5143
5152
|
M.links ? x.push(
|
|
5144
5153
|
/* @__PURE__ */ e.createElement(
|
|
5145
5154
|
"li",
|
|
@@ -5633,7 +5642,7 @@ B1.propTypes = {
|
|
|
5633
5642
|
*/
|
|
5634
5643
|
className: t.string
|
|
5635
5644
|
};
|
|
5636
|
-
const
|
|
5645
|
+
const it = $t({}), F1 = (s) => {
|
|
5637
5646
|
if (typeof window == "undefined")
|
|
5638
5647
|
return 0;
|
|
5639
5648
|
const n = window.location.href.split("/"), c = `/${n[n.length - 1]}`.split("");
|
|
@@ -5655,7 +5664,7 @@ const ot = $t({}), F1 = (s) => {
|
|
|
5655
5664
|
}) => {
|
|
5656
5665
|
const [l, i] = R(() => F1(s)), [d, u] = R([]), h = s.length, [m, p] = R("");
|
|
5657
5666
|
return /* @__PURE__ */ e.createElement(
|
|
5658
|
-
|
|
5667
|
+
it.Provider,
|
|
5659
5668
|
{
|
|
5660
5669
|
value: {
|
|
5661
5670
|
currentKey: l,
|
|
@@ -5716,8 +5725,8 @@ const Lt = (E) => {
|
|
|
5716
5725
|
const [g, b] = R(!1), [v, C] = R(null), [$, w] = R(a), [L, k] = R(), [z, N] = R(null), x = se([]), M = "pds-select", { context: T, refs: V } = Ie({
|
|
5717
5726
|
open: g,
|
|
5718
5727
|
onOpenChange: b,
|
|
5719
|
-
whileElementsMounted:
|
|
5720
|
-
}), H = Te(T, { role: "listbox" }), S = Se(T), P =
|
|
5728
|
+
whileElementsMounted: qe
|
|
5729
|
+
}), H = Te(T, { role: "listbox" }), S = Se(T), P = ut(T, {
|
|
5721
5730
|
listRef: x,
|
|
5722
5731
|
activeIndex: v,
|
|
5723
5732
|
onNavigate: C,
|
|
@@ -5725,7 +5734,7 @@ const Lt = (E) => {
|
|
|
5725
5734
|
openOnArrowKeyDown: !0
|
|
5726
5735
|
}), { getReferenceProps: j, getFloatingProps: F, getItemProps: Z } = Oe(
|
|
5727
5736
|
[S, H, P]
|
|
5728
|
-
), { isMounted: B, styles: W } =
|
|
5737
|
+
), { isMounted: B, styles: W } = Xe(T, {
|
|
5729
5738
|
duration: {
|
|
5730
5739
|
open: 300,
|
|
5731
5740
|
close: 150
|
|
@@ -5743,10 +5752,10 @@ const Lt = (E) => {
|
|
|
5743
5752
|
const Q = i.find((G) => G.value === ee);
|
|
5744
5753
|
return Q ? Q.label : "";
|
|
5745
5754
|
}, U = ((ee) => ee.map((G) => {
|
|
5746
|
-
const { label:
|
|
5755
|
+
const { label: he, value: we } = G;
|
|
5747
5756
|
return {
|
|
5748
|
-
label:
|
|
5749
|
-
value: we ||
|
|
5757
|
+
label: he,
|
|
5758
|
+
value: we || he
|
|
5750
5759
|
};
|
|
5751
5760
|
}))(i), K = () => {
|
|
5752
5761
|
k(""), N(null);
|
|
@@ -5756,9 +5765,9 @@ const Lt = (E) => {
|
|
|
5756
5765
|
}, X = (ee) => {
|
|
5757
5766
|
const Q = U[ee];
|
|
5758
5767
|
w(Q.value), C(null), b(!1), l && l(Q), m && ie(Q);
|
|
5759
|
-
},
|
|
5768
|
+
}, ve = /* @__PURE__ */ e.createElement(A, { iconName: "angleDown", className: `${M}__trigger-icon` }), te = /* @__PURE__ */ e.createElement(A, { iconName: "check", className: `${M}__checked-icon` }), de = U.map((ee, Q) => /* @__PURE__ */ e.createElement(
|
|
5760
5769
|
Ls,
|
|
5761
|
-
|
|
5770
|
+
ge(y({
|
|
5762
5771
|
key: ee
|
|
5763
5772
|
}, Z({
|
|
5764
5773
|
key: ee.value,
|
|
@@ -5778,9 +5787,9 @@ const Lt = (E) => {
|
|
|
5778
5787
|
}),
|
|
5779
5788
|
ee.label,
|
|
5780
5789
|
$ === ee.value && te
|
|
5781
|
-
)), le = L || o,
|
|
5790
|
+
)), le = L || o, ne = c ? `${c / 16}rem` : null, _e = c ? { width: ne } : null;
|
|
5782
5791
|
return /* @__PURE__ */ e.createElement(
|
|
5783
|
-
|
|
5792
|
+
Je,
|
|
5784
5793
|
y({
|
|
5785
5794
|
className: p,
|
|
5786
5795
|
disabled: s,
|
|
@@ -5817,7 +5826,7 @@ const Lt = (E) => {
|
|
|
5817
5826
|
}
|
|
5818
5827
|
})),
|
|
5819
5828
|
/* @__PURE__ */ e.createElement("span", null, O($) || u),
|
|
5820
|
-
|
|
5829
|
+
ve
|
|
5821
5830
|
),
|
|
5822
5831
|
B && /* @__PURE__ */ e.createElement(
|
|
5823
5832
|
"div",
|
|
@@ -5931,9 +5940,9 @@ const W1 = {
|
|
|
5931
5940
|
icon: "arrowRight",
|
|
5932
5941
|
keyModifier: (s) => s + 1
|
|
5933
5942
|
}
|
|
5934
|
-
},
|
|
5943
|
+
}, Ye = (c) => {
|
|
5935
5944
|
var r = c, { arrowText: s = null, direction: n } = r, a = I(r, ["arrowText", "direction"]);
|
|
5936
|
-
const { buttonCallback: o, currentKey: l, setCurrentKey: i, setDirection: d, pages: u } = He(
|
|
5945
|
+
const { buttonCallback: o, currentKey: l, setCurrentKey: i, setDirection: d, pages: u } = He(it), h = Gt(
|
|
5937
5946
|
(g, b) => {
|
|
5938
5947
|
o && (g.preventDefault(), o(b));
|
|
5939
5948
|
},
|
|
@@ -5961,7 +5970,7 @@ const W1 = {
|
|
|
5961
5970
|
)
|
|
5962
5971
|
);
|
|
5963
5972
|
};
|
|
5964
|
-
|
|
5973
|
+
Ye.propTypes = {
|
|
5965
5974
|
arrowText: t.string,
|
|
5966
5975
|
direction: t.oneOf(["right", "left"])
|
|
5967
5976
|
};
|
|
@@ -5974,7 +5983,7 @@ const Z1 = (n) => {
|
|
|
5974
5983
|
headingId: o,
|
|
5975
5984
|
itemLength: l,
|
|
5976
5985
|
pages: i
|
|
5977
|
-
} = He(
|
|
5986
|
+
} = He(it), d = [];
|
|
5978
5987
|
return i.forEach((u, h) => {
|
|
5979
5988
|
let m = { label: `Page ${h + 1}`, value: `${h + 1}` };
|
|
5980
5989
|
d.push(m);
|
|
@@ -5986,7 +5995,7 @@ const Z1 = (n) => {
|
|
|
5986
5995
|
"aria-labelledby": o
|
|
5987
5996
|
}, s),
|
|
5988
5997
|
/* @__PURE__ */ e.createElement("div", { id: o, className: "visually-hidden" }, "Pagination"),
|
|
5989
|
-
/* @__PURE__ */ e.createElement("ul", { className: "pds-pager__items" }, c > 0 ? /* @__PURE__ */ e.createElement(
|
|
5998
|
+
/* @__PURE__ */ e.createElement("ul", { className: "pds-pager__items" }, c > 0 ? /* @__PURE__ */ e.createElement(Ye, { arrowText: "Previous", direction: "left" }) : null, /* @__PURE__ */ e.createElement("li", null, /* @__PURE__ */ e.createElement(
|
|
5990
5999
|
Lt,
|
|
5991
6000
|
{
|
|
5992
6001
|
label: "Page select dropdown",
|
|
@@ -5996,7 +6005,7 @@ const Z1 = (n) => {
|
|
|
5996
6005
|
console.log(u), r(parseInt(u - 1)), a(parseInt(u - 1));
|
|
5997
6006
|
}
|
|
5998
6007
|
}
|
|
5999
|
-
)), /* @__PURE__ */ e.createElement("li", { className: "pds-pager__items-mini" }, `of ${l}`), c < l - 1 ? /* @__PURE__ */ e.createElement(
|
|
6008
|
+
)), /* @__PURE__ */ e.createElement("li", { className: "pds-pager__items-mini" }, `of ${l}`), c < l - 1 ? /* @__PURE__ */ e.createElement(Ye, { arrowText: "Next", direction: "right" }) : null)
|
|
6000
6009
|
);
|
|
6001
6010
|
};
|
|
6002
6011
|
function U1(s, n, a, c, r, o) {
|
|
@@ -6109,7 +6118,7 @@ const Rs = (c) => {
|
|
|
6109
6118
|
setCurrentKey: i,
|
|
6110
6119
|
render: d = null,
|
|
6111
6120
|
paginationItemClickHandler: u
|
|
6112
|
-
} = He(
|
|
6121
|
+
} = He(it);
|
|
6113
6122
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, n.key || n.key === 0 ? /* @__PURE__ */ e.createElement(
|
|
6114
6123
|
"span",
|
|
6115
6124
|
y({
|
|
@@ -6148,7 +6157,7 @@ const G1 = (n) => {
|
|
|
6148
6157
|
itemLength: d,
|
|
6149
6158
|
pageDirection: u,
|
|
6150
6159
|
pages: h
|
|
6151
|
-
} = He(
|
|
6160
|
+
} = He(it), m = Gt(
|
|
6152
6161
|
(f, E) => {
|
|
6153
6162
|
a && (f.preventDefault(), a(E));
|
|
6154
6163
|
},
|
|
@@ -6180,7 +6189,7 @@ const G1 = (n) => {
|
|
|
6180
6189
|
}
|
|
6181
6190
|
},
|
|
6182
6191
|
"First"
|
|
6183
|
-
)), /* @__PURE__ */ e.createElement(
|
|
6192
|
+
)), /* @__PURE__ */ e.createElement(Ye, { direction: "left" })) : null, o.map((f, E) => /* @__PURE__ */ e.createElement("li", { key: `list-item-${E}` }, /* @__PURE__ */ e.createElement(Rs, y({ index: E, page: f }, s)))), c < d - 1 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Ye, { direction: "right" }), /* @__PURE__ */ e.createElement("li", { className: "pds-pager__item pds-pager__item--last" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, "Last Page"), /* @__PURE__ */ e.createElement(
|
|
6184
6193
|
"a",
|
|
6185
6194
|
{
|
|
6186
6195
|
href: p[p.length - 1].link,
|
|
@@ -6193,7 +6202,7 @@ const G1 = (n) => {
|
|
|
6193
6202
|
));
|
|
6194
6203
|
}, K1 = (n) => {
|
|
6195
6204
|
var s = I(n, []);
|
|
6196
|
-
const { currentKey: a, headingId: c, itemLength: r } = He(
|
|
6205
|
+
const { currentKey: a, headingId: c, itemLength: r } = He(it);
|
|
6197
6206
|
return /* @__PURE__ */ e.createElement(
|
|
6198
6207
|
"nav",
|
|
6199
6208
|
y({
|
|
@@ -6202,7 +6211,7 @@ const G1 = (n) => {
|
|
|
6202
6211
|
"aria-labelledby": c
|
|
6203
6212
|
}, s),
|
|
6204
6213
|
/* @__PURE__ */ e.createElement("div", { id: c, className: "visually-hidden" }, "Pagination"),
|
|
6205
|
-
/* @__PURE__ */ e.createElement("ul", { className: "pds-pager__items" }, a > 0 ? /* @__PURE__ */ e.createElement(
|
|
6214
|
+
/* @__PURE__ */ e.createElement("ul", { className: "pds-pager__items" }, a > 0 ? /* @__PURE__ */ e.createElement(Ye, { arrowText: "Previous", direction: "left" }) : null, /* @__PURE__ */ e.createElement("li", { className: "pds-pager__items-mini" }, `${a + 1} of ${r}`), a < r - 1 ? /* @__PURE__ */ e.createElement(Ye, { arrowText: "Next", direction: "right" }) : null)
|
|
6206
6215
|
);
|
|
6207
6216
|
}, Y1 = (s, n, ...a) => {
|
|
6208
6217
|
switch (s) {
|
|
@@ -6424,7 +6433,7 @@ const Q1 = {
|
|
|
6424
6433
|
));
|
|
6425
6434
|
let T = null;
|
|
6426
6435
|
s && (s.type === "button" && (T = /* @__PURE__ */ e.createElement(
|
|
6427
|
-
|
|
6436
|
+
Ke,
|
|
6428
6437
|
{
|
|
6429
6438
|
variant: s.variant,
|
|
6430
6439
|
label: L,
|
|
@@ -6432,7 +6441,7 @@ const Q1 = {
|
|
|
6432
6441
|
disabled: s.disabled
|
|
6433
6442
|
}
|
|
6434
6443
|
)), s.type === "link" && (T = /* @__PURE__ */ e.createElement(
|
|
6435
|
-
|
|
6444
|
+
Be,
|
|
6436
6445
|
{
|
|
6437
6446
|
variant: s.variant,
|
|
6438
6447
|
linkContent: /* @__PURE__ */ e.createElement("a", { href: s.linkUrl, target: s.linkTarget }, s.label)
|
|
@@ -6440,14 +6449,14 @@ const Q1 = {
|
|
|
6440
6449
|
)));
|
|
6441
6450
|
let V = null;
|
|
6442
6451
|
return n && (n.type === "button" && (V = /* @__PURE__ */ e.createElement(
|
|
6443
|
-
|
|
6452
|
+
Ke,
|
|
6444
6453
|
{
|
|
6445
6454
|
variant: "secondary",
|
|
6446
6455
|
label: n.label,
|
|
6447
6456
|
onClick: n.buttonAction
|
|
6448
6457
|
}
|
|
6449
6458
|
)), n.type === "link" && (V = /* @__PURE__ */ e.createElement(
|
|
6450
|
-
|
|
6459
|
+
Be,
|
|
6451
6460
|
{
|
|
6452
6461
|
variant: "secondary",
|
|
6453
6462
|
linkContent: /* @__PURE__ */ e.createElement(
|
|
@@ -6596,7 +6605,7 @@ const e2 = (m) => {
|
|
|
6596
6605
|
_(b.target.value), l && l(b.target.value);
|
|
6597
6606
|
};
|
|
6598
6607
|
return /* @__PURE__ */ e.createElement(
|
|
6599
|
-
|
|
6608
|
+
Je,
|
|
6600
6609
|
y({
|
|
6601
6610
|
className: u,
|
|
6602
6611
|
disabled: s,
|
|
@@ -6909,7 +6918,7 @@ const Pt = {
|
|
|
6909
6918
|
const u = "pds-split-button", h = `${u}--${r}`, m = s[0], p = s.slice(1);
|
|
6910
6919
|
let f = null;
|
|
6911
6920
|
return m.isLink === !0 ? f = /* @__PURE__ */ e.createElement(
|
|
6912
|
-
|
|
6921
|
+
Be,
|
|
6913
6922
|
{
|
|
6914
6923
|
className: `${u}__primary-action`,
|
|
6915
6924
|
size: c,
|
|
@@ -6919,7 +6928,7 @@ const Pt = {
|
|
|
6919
6928
|
linkContent: m.linkContent
|
|
6920
6929
|
}
|
|
6921
6930
|
) : f = /* @__PURE__ */ e.createElement(
|
|
6922
|
-
|
|
6931
|
+
Ke,
|
|
6923
6932
|
{
|
|
6924
6933
|
className: `${u}__primary-action`,
|
|
6925
6934
|
label: m.label,
|
|
@@ -7036,7 +7045,7 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (u) => {
|
|
|
7036
7045
|
"size",
|
|
7037
7046
|
"className"
|
|
7038
7047
|
]);
|
|
7039
|
-
const m = s ||
|
|
7048
|
+
const m = s || Pe(), p = "pds-progress-ring", f = r ? `${p}__label` : "visually-hidden", E = `${p}__loading-text ${p}__loading-text--${l}`, _ = (k) => k * 16;
|
|
7040
7049
|
let g = _(r2), b = 7;
|
|
7041
7050
|
l === "sm" && (g = _(c2), b = b / 1.25), l === "lg" && (g = _(o2), b = b * 1.25);
|
|
7042
7051
|
const v = g / 2 - b / 2, C = `${v / 100}rem`, $ = 2 * Math.PI * v, w = $ - $ * c / 100;
|
|
@@ -7283,7 +7292,7 @@ const m2 = (r) => {
|
|
|
7283
7292
|
}, p = (g) => {
|
|
7284
7293
|
d(i.sort((b, v) => v[g].localeCompare(b[g]))), h({ order: "asc", key: g });
|
|
7285
7294
|
}, f = (g, b) => {
|
|
7286
|
-
h(
|
|
7295
|
+
h(ge(y({}, u), { key: b })), u.order === "asc" ? m(b) : p(b);
|
|
7287
7296
|
}, E = (g, b) => /* @__PURE__ */ e.createElement("tr", { id: b, key: `table-row-${b}` }, g.map((v, C) => /* @__PURE__ */ e.createElement("td", { key: `${b}-cell-${C}` }, /* @__PURE__ */ e.createElement("span", null, v)))), _ = "pds-table";
|
|
7288
7297
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
7289
7298
|
"table",
|
|
@@ -7379,7 +7388,7 @@ const u2 = (u) => {
|
|
|
7379
7388
|
V.id.includes(H) && (V.id = V.id.replaceAll(H, "-"));
|
|
7380
7389
|
});
|
|
7381
7390
|
}), M.map((V) => {
|
|
7382
|
-
const H = `item-${
|
|
7391
|
+
const H = `item-${Pe()}`;
|
|
7383
7392
|
V.id || (V.id = H);
|
|
7384
7393
|
});
|
|
7385
7394
|
const T = g(M);
|
|
@@ -7712,7 +7721,7 @@ const K2 = (d) => {
|
|
|
7712
7721
|
d && d(v);
|
|
7713
7722
|
}, P = L || i;
|
|
7714
7723
|
return /* @__PURE__ */ e.createElement(
|
|
7715
|
-
|
|
7724
|
+
Je,
|
|
7716
7725
|
y({
|
|
7717
7726
|
className: E,
|
|
7718
7727
|
disabled: n,
|
|
@@ -8271,7 +8280,7 @@ const v2 = (f) => {
|
|
|
8271
8280
|
className: `${_}__off-icon`
|
|
8272
8281
|
}
|
|
8273
8282
|
)), /* @__PURE__ */ e.createElement(
|
|
8274
|
-
|
|
8283
|
+
Je,
|
|
8275
8284
|
y({
|
|
8276
8285
|
className: m,
|
|
8277
8286
|
disabled: s,
|
|
@@ -8352,10 +8361,10 @@ const Y2 = () => {
|
|
|
8352
8361
|
const s = (a, c, r = {}) => {
|
|
8353
8362
|
const o = /* @__PURE__ */ e.createElement(As, { type: a }, c);
|
|
8354
8363
|
let l = y({}, r);
|
|
8355
|
-
return (a === "critical" || a === "warning") && (l =
|
|
8364
|
+
return (a === "critical" || a === "warning") && (l = ge(y({}, l), {
|
|
8356
8365
|
autoClose: !1,
|
|
8357
8366
|
role: "alert"
|
|
8358
|
-
})), a === "working" && (l =
|
|
8367
|
+
})), a === "working" && (l = ge(y({}, l), {
|
|
8359
8368
|
autoClose: !1,
|
|
8360
8369
|
closeButton: !1,
|
|
8361
8370
|
closeOnClick: !1
|
|
@@ -8366,7 +8375,7 @@ const Y2 = () => {
|
|
|
8366
8375
|
exit: "pds-toast--slideOut"
|
|
8367
8376
|
});
|
|
8368
8377
|
return [s, as, n];
|
|
8369
|
-
}, E2 =
|
|
8378
|
+
}, E2 = Fe(
|
|
8370
8379
|
(T, M) => {
|
|
8371
8380
|
var V = T, {
|
|
8372
8381
|
autoComplete: s,
|
|
@@ -8435,16 +8444,16 @@ const Y2 = () => {
|
|
|
8435
8444
|
w === "search" && (W = "search"), k === "error" && (W = "error"), k === "success" && (W = "success");
|
|
8436
8445
|
const O = L || h, D = typeof z != "undefined", U = typeof a != "undefined", [K, ie] = R(
|
|
8437
8446
|
U ? a : ""
|
|
8438
|
-
), X = z || K,
|
|
8439
|
-
C && le &&
|
|
8447
|
+
), X = z || K, ve = (Q) => {
|
|
8448
|
+
C && le && ne(!1), m && m(Q);
|
|
8440
8449
|
}, te = (Q) => {
|
|
8441
8450
|
D || ie(Q.target.value), p && p(Q);
|
|
8442
8451
|
}, de = () => {
|
|
8443
8452
|
D || ie(""), f && f();
|
|
8444
8453
|
const Q = document.getElementById(l);
|
|
8445
8454
|
Q && Q.focus();
|
|
8446
|
-
}, [le,
|
|
8447
|
-
|
|
8455
|
+
}, [le, ne] = R(!1), _e = () => {
|
|
8456
|
+
ne((G) => !G);
|
|
8448
8457
|
const Q = document.getElementById(l);
|
|
8449
8458
|
Q && Q.focus();
|
|
8450
8459
|
};
|
|
@@ -8465,7 +8474,7 @@ const Y2 = () => {
|
|
|
8465
8474
|
style: d ? H : null
|
|
8466
8475
|
}, x),
|
|
8467
8476
|
/* @__PURE__ */ e.createElement(
|
|
8468
|
-
|
|
8477
|
+
ht,
|
|
8469
8478
|
{
|
|
8470
8479
|
id: l,
|
|
8471
8480
|
label: u,
|
|
@@ -8489,7 +8498,7 @@ const Y2 = () => {
|
|
|
8489
8498
|
disabled: c,
|
|
8490
8499
|
required: b,
|
|
8491
8500
|
autoComplete: w === "password" ? "off" : s,
|
|
8492
|
-
onBlur:
|
|
8501
|
+
onBlur: ve,
|
|
8493
8502
|
onChange: te,
|
|
8494
8503
|
onFocus: E,
|
|
8495
8504
|
"aria-invalid": k === "error" ? !0 : null,
|
|
@@ -8529,7 +8538,7 @@ const Y2 = () => {
|
|
|
8529
8538
|
}
|
|
8530
8539
|
)),
|
|
8531
8540
|
O && /* @__PURE__ */ e.createElement(
|
|
8532
|
-
|
|
8541
|
+
Qe,
|
|
8533
8542
|
{
|
|
8534
8543
|
id: l,
|
|
8535
8544
|
message: O,
|
|
@@ -8571,13 +8580,13 @@ const Y2 = () => {
|
|
|
8571
8580
|
]);
|
|
8572
8581
|
const [f, E] = R(!1), [_, g] = R(null), [b, v] = R(d), C = se([]), $ = se(null), w = d.length >= o;
|
|
8573
8582
|
let L = !1;
|
|
8574
|
-
const k = He(
|
|
8583
|
+
const k = He(We);
|
|
8575
8584
|
k && (L = k.isMobile);
|
|
8576
8585
|
const z = i && L, N = "pds-workspace-selector", x = z ? `${N}--isMobile` : null, M = `${N}__menu`, T = w ? `${M}--scroll` : null, { refs: V, floatingStyles: H, context: S } = Ie({
|
|
8577
8586
|
open: f,
|
|
8578
8587
|
onOpenChange: E,
|
|
8579
|
-
whileElementsMounted:
|
|
8580
|
-
}), P =
|
|
8588
|
+
whileElementsMounted: qe
|
|
8589
|
+
}), P = ot(S, { event: "mousedown" }), j = Se(S), F = Te(S, { role: "menu" }), Z = ut(S, {
|
|
8581
8590
|
listRef: C,
|
|
8582
8591
|
activeIndex: _,
|
|
8583
8592
|
onNavigate: g,
|
|
@@ -8587,7 +8596,7 @@ const Y2 = () => {
|
|
|
8587
8596
|
focusItemOnOpen: !1
|
|
8588
8597
|
}), { getReferenceProps: B, getFloatingProps: W, getItemProps: O } = Oe(
|
|
8589
8598
|
[j, F, P, Z]
|
|
8590
|
-
), { isMounted: D, styles: U } =
|
|
8599
|
+
), { isMounted: D, styles: U } = Xe(S, {
|
|
8591
8600
|
duration: {
|
|
8592
8601
|
open: 300,
|
|
8593
8602
|
close: 150
|
|
@@ -8605,19 +8614,19 @@ const Y2 = () => {
|
|
|
8605
8614
|
let K = d.find((G) => G.isActive);
|
|
8606
8615
|
K || (K = d[0]);
|
|
8607
8616
|
const ie = (G) => {
|
|
8608
|
-
const { value:
|
|
8617
|
+
const { value: he } = G.target, we = d.filter((ae) => ae.displayName.toLowerCase().includes(he.toLowerCase()));
|
|
8609
8618
|
v(we);
|
|
8610
8619
|
};
|
|
8611
8620
|
oe(() => {
|
|
8612
|
-
const G = d.map((
|
|
8613
|
-
isActive:
|
|
8621
|
+
const G = d.map((he) => ge(y({}, he), {
|
|
8622
|
+
isActive: he.isActive
|
|
8614
8623
|
}));
|
|
8615
8624
|
v(G);
|
|
8616
8625
|
}, [d]);
|
|
8617
8626
|
const X = (G) => {
|
|
8618
8627
|
G.preventDefault(), G.key === "Enter" && C.current[_].querySelector("a").click(), G.key === "Tab" && (G.shiftKey ? w ? document.getElementById("workspace-filter").focus() : E(!1) : n ? $.current.querySelector("a").focus() : E(!1));
|
|
8619
|
-
},
|
|
8620
|
-
|
|
8628
|
+
}, ve = /* @__PURE__ */ e.createElement("div", { className: `${N}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
8629
|
+
mt,
|
|
8621
8630
|
{
|
|
8622
8631
|
size: "sm",
|
|
8623
8632
|
uniqueId: K.workspaceId,
|
|
@@ -8651,9 +8660,9 @@ const Y2 = () => {
|
|
|
8651
8660
|
type: "search"
|
|
8652
8661
|
}
|
|
8653
8662
|
)), le = b.map(
|
|
8654
|
-
(G,
|
|
8655
|
-
const we = `${N}__item`,
|
|
8656
|
-
C.current[
|
|
8663
|
+
(G, he) => {
|
|
8664
|
+
const we = `${N}__item`, ae = G.isActive ? `${we}--active` : null, ce = G.isUnprivileged ? `${we}--unprivileged` : null, Le = /* @__PURE__ */ e.createElement(A, { iconName: "check", className: `${N}__active-icon` }), ke = G.workspaceId, ze = G.workspaceLink.type, Ee = G.isUnprivileged ? null : (Ze) => {
|
|
8665
|
+
C.current[he] = Ze;
|
|
8657
8666
|
};
|
|
8658
8667
|
return /* @__PURE__ */ e.createElement(
|
|
8659
8668
|
"li",
|
|
@@ -8662,21 +8671,21 @@ const Y2 = () => {
|
|
|
8662
8671
|
id: ke,
|
|
8663
8672
|
className: [
|
|
8664
8673
|
we,
|
|
8665
|
-
|
|
8674
|
+
ae,
|
|
8666
8675
|
ce
|
|
8667
8676
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
8668
8677
|
role: "menuitem",
|
|
8669
|
-
tabIndex: _ ===
|
|
8678
|
+
tabIndex: _ === he ? 0 : -1,
|
|
8670
8679
|
ref: Ee,
|
|
8671
8680
|
onKeyDown: X
|
|
8672
8681
|
}, O()),
|
|
8673
8682
|
/* @__PURE__ */ e.createElement(
|
|
8674
8683
|
ze,
|
|
8675
|
-
|
|
8684
|
+
ge(y({}, G.workspaceLink.props), {
|
|
8676
8685
|
onClick: () => E(!1)
|
|
8677
8686
|
}),
|
|
8678
8687
|
/* @__PURE__ */ e.createElement("div", { className: `${N}__item-content` }, /* @__PURE__ */ e.createElement(
|
|
8679
|
-
|
|
8688
|
+
mt,
|
|
8680
8689
|
{
|
|
8681
8690
|
size: "sm",
|
|
8682
8691
|
uniqueId: G.workspaceId,
|
|
@@ -8688,8 +8697,8 @@ const Y2 = () => {
|
|
|
8688
8697
|
)
|
|
8689
8698
|
);
|
|
8690
8699
|
}
|
|
8691
|
-
),
|
|
8692
|
-
|
|
8700
|
+
), ne = n && /* @__PURE__ */ e.createElement("div", { className: `${N}__create-link`, ref: $ }, /* @__PURE__ */ e.createElement(
|
|
8701
|
+
Be,
|
|
8693
8702
|
{
|
|
8694
8703
|
displayType: "icon-end",
|
|
8695
8704
|
iconName: "plus",
|
|
@@ -8705,7 +8714,7 @@ const Y2 = () => {
|
|
|
8705
8714
|
"aria-label": s,
|
|
8706
8715
|
ref: V.setReference
|
|
8707
8716
|
}, B()),
|
|
8708
|
-
|
|
8717
|
+
ve,
|
|
8709
8718
|
te
|
|
8710
8719
|
), D && /* @__PURE__ */ e.createElement(
|
|
8711
8720
|
"div",
|
|
@@ -8725,13 +8734,13 @@ const Y2 = () => {
|
|
|
8725
8734
|
},
|
|
8726
8735
|
/* @__PURE__ */ e.createElement("li", { className: `${N}__item-heading`, role: "presentation" }, r),
|
|
8727
8736
|
le.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${N}__no-results` }, l) : le
|
|
8728
|
-
),
|
|
8737
|
+
), ne)
|
|
8729
8738
|
)), ee = (G) => {
|
|
8730
|
-
const
|
|
8731
|
-
|
|
8739
|
+
const he = G.target;
|
|
8740
|
+
he.classList.toggle(`${N}__toggle--expanded`), he.setAttribute(
|
|
8732
8741
|
"aria-expanded",
|
|
8733
|
-
|
|
8734
|
-
),
|
|
8742
|
+
he.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
8743
|
+
), he.nextElementSibling.classList.toggle(`${N}__mobile-menu--expanded`);
|
|
8735
8744
|
}, Q = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
8736
8745
|
"button",
|
|
8737
8746
|
{
|
|
@@ -8740,7 +8749,7 @@ const Y2 = () => {
|
|
|
8740
8749
|
"aria-label": s,
|
|
8741
8750
|
onClick: ee
|
|
8742
8751
|
},
|
|
8743
|
-
|
|
8752
|
+
ve,
|
|
8744
8753
|
te
|
|
8745
8754
|
), /* @__PURE__ */ e.createElement("div", { className: `${N}__mobile-menu` }, de, /* @__PURE__ */ e.createElement(
|
|
8746
8755
|
"ul",
|
|
@@ -8750,7 +8759,7 @@ const Y2 = () => {
|
|
|
8750
8759
|
},
|
|
8751
8760
|
/* @__PURE__ */ e.createElement("li", { className: `${N}__item-heading`, role: "presentation" }, r),
|
|
8752
8761
|
le.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${N}__no-results` }, l) : le
|
|
8753
|
-
),
|
|
8762
|
+
), ne));
|
|
8754
8763
|
return /* @__PURE__ */ e.createElement(
|
|
8755
8764
|
"span",
|
|
8756
8765
|
y({
|
|
@@ -8853,7 +8862,7 @@ const $2 = (o) => {
|
|
|
8853
8862
|
const i = "pds-tally", d = `${i}--${n}`, h = ["critical", "warning"].includes(n) ? "alert" : "status", m = `${a[n]} notifications: `;
|
|
8854
8863
|
return /* @__PURE__ */ e.createElement(
|
|
8855
8864
|
"div",
|
|
8856
|
-
|
|
8865
|
+
ge(y({
|
|
8857
8866
|
className: [i, d, c != null ? c : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
8858
8867
|
}, r), {
|
|
8859
8868
|
role: h
|
|
@@ -8968,7 +8977,7 @@ const $2 = (o) => {
|
|
|
8968
8977
|
}
|
|
8969
8978
|
)), /* @__PURE__ */ e.createElement("div", { className: `${i}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h), n && /* @__PURE__ */ e.createElement("div", { className: `${i}__title` }, n), s && /* @__PURE__ */ e.createElement("div", { className: `${i}__main-content` }, s)))
|
|
8970
8979
|
);
|
|
8971
|
-
}, w2 =
|
|
8980
|
+
}, w2 = Fe(
|
|
8972
8981
|
(L, w) => {
|
|
8973
8982
|
var k = L, {
|
|
8974
8983
|
checked: s,
|
|
@@ -9053,7 +9062,7 @@ const $2 = (o) => {
|
|
|
9053
9062
|
}, $),
|
|
9054
9063
|
/* @__PURE__ */ e.createElement("div", { className: `${N}__input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
9055
9064
|
"input",
|
|
9056
|
-
y(
|
|
9065
|
+
y(ge(y({
|
|
9057
9066
|
ref: w,
|
|
9058
9067
|
id: c,
|
|
9059
9068
|
name: u,
|
|
@@ -9092,7 +9101,7 @@ const $2 = (o) => {
|
|
|
9092
9101
|
E && !a && /* @__PURE__ */ e.createElement(Wt, null)
|
|
9093
9102
|
))),
|
|
9094
9103
|
S && /* @__PURE__ */ e.createElement(
|
|
9095
|
-
|
|
9104
|
+
Qe,
|
|
9096
9105
|
{
|
|
9097
9106
|
id: c,
|
|
9098
9107
|
message: S,
|
|
@@ -9146,7 +9155,7 @@ const $2 = (o) => {
|
|
|
9146
9155
|
style: r ? _ : null
|
|
9147
9156
|
}, p),
|
|
9148
9157
|
/* @__PURE__ */ e.createElement("fieldset", y({ className: `${g}__fieldset`, id: c }, a), /* @__PURE__ */ e.createElement(
|
|
9149
|
-
|
|
9158
|
+
ht,
|
|
9150
9159
|
{
|
|
9151
9160
|
disabled: n,
|
|
9152
9161
|
label: o,
|
|
@@ -9157,7 +9166,7 @@ const $2 = (o) => {
|
|
|
9157
9166
|
}
|
|
9158
9167
|
), /* @__PURE__ */ e.createElement("div", { className: `${g}__options` }, s)),
|
|
9159
9168
|
w && /* @__PURE__ */ e.createElement(
|
|
9160
|
-
|
|
9169
|
+
Qe,
|
|
9161
9170
|
{
|
|
9162
9171
|
id: c,
|
|
9163
9172
|
message: w,
|
|
@@ -9233,7 +9242,7 @@ const $2 = (o) => {
|
|
|
9233
9242
|
style: c ? b : null
|
|
9234
9243
|
}, E),
|
|
9235
9244
|
/* @__PURE__ */ e.createElement("fieldset", y({ className: `${v}__fieldset`, id: a }, n), /* @__PURE__ */ e.createElement(
|
|
9236
|
-
|
|
9245
|
+
ht,
|
|
9237
9246
|
{
|
|
9238
9247
|
disabled: s,
|
|
9239
9248
|
label: r,
|
|
@@ -9258,7 +9267,7 @@ const $2 = (o) => {
|
|
|
9258
9267
|
}
|
|
9259
9268
|
)))),
|
|
9260
9269
|
k && /* @__PURE__ */ e.createElement(
|
|
9261
|
-
|
|
9270
|
+
Qe,
|
|
9262
9271
|
{
|
|
9263
9272
|
id: a,
|
|
9264
9273
|
message: k,
|
|
@@ -9285,7 +9294,7 @@ const $2 = (o) => {
|
|
|
9285
9294
|
}, a),
|
|
9286
9295
|
/* @__PURE__ */ e.createElement("div", { className: `${o}__inner` }, l),
|
|
9287
9296
|
m && /* @__PURE__ */ e.createElement(
|
|
9288
|
-
|
|
9297
|
+
Qe,
|
|
9289
9298
|
{
|
|
9290
9299
|
id: i,
|
|
9291
9300
|
message: m,
|
|
@@ -9319,7 +9328,7 @@ const $2 = (o) => {
|
|
|
9319
9328
|
"aria-hidden": "true"
|
|
9320
9329
|
},
|
|
9321
9330
|
/* @__PURE__ */ e.createElement(A, { iconName: "xmark", iconSize: "sm" })
|
|
9322
|
-
)), sn =
|
|
9331
|
+
)), sn = Fe(
|
|
9323
9332
|
(v, b) => {
|
|
9324
9333
|
var C = v, {
|
|
9325
9334
|
checked: s,
|
|
@@ -9374,7 +9383,7 @@ const $2 = (o) => {
|
|
|
9374
9383
|
"aria-describedby": d ? `${c}__message` : null
|
|
9375
9384
|
}, r)
|
|
9376
9385
|
), !E && /* @__PURE__ */ e.createElement(k2, { toggleStatusLabel: H }), /* @__PURE__ */ e.createElement("span", { className: "pds-switch__thumb", "aria-hidden": "true" })), E && /* @__PURE__ */ e.createElement(N2, { toggleStatusLabel: H, id: c })), j = /* @__PURE__ */ e.createElement(
|
|
9377
|
-
|
|
9386
|
+
ht,
|
|
9378
9387
|
{
|
|
9379
9388
|
id: c,
|
|
9380
9389
|
label: l,
|
|
@@ -9387,7 +9396,7 @@ const $2 = (o) => {
|
|
|
9387
9396
|
])
|
|
9388
9397
|
}
|
|
9389
9398
|
), F = d && /* @__PURE__ */ e.createElement(
|
|
9390
|
-
|
|
9399
|
+
Qe,
|
|
9391
9400
|
{
|
|
9392
9401
|
id: c,
|
|
9393
9402
|
message: d,
|
|
@@ -9453,9 +9462,9 @@ const $2 = (o) => {
|
|
|
9453
9462
|
const { refs: _, context: g, floatingStyles: b } = Ie({
|
|
9454
9463
|
open: f,
|
|
9455
9464
|
onOpenChange: E
|
|
9456
|
-
}), v =
|
|
9465
|
+
}), v = ot(g), C = Se(g, {
|
|
9457
9466
|
outsidePressEvent: "mousedown"
|
|
9458
|
-
}), $ = Te(g), { getFloatingProps: w } = Oe([v, C, $]), { isMounted: L, styles: k } =
|
|
9467
|
+
}), $ = Te(g), { getFloatingProps: w } = Oe([v, C, $]), { isMounted: L, styles: k } = Xe(g, {
|
|
9459
9468
|
duration: {
|
|
9460
9469
|
open: 300,
|
|
9461
9470
|
close: 300
|
|
@@ -9477,7 +9486,7 @@ const $2 = (o) => {
|
|
|
9477
9486
|
Xs,
|
|
9478
9487
|
{
|
|
9479
9488
|
lockScroll: !0,
|
|
9480
|
-
style:
|
|
9489
|
+
style: ge(y({}, b), {
|
|
9481
9490
|
background: "var(--pds-color-overlay)",
|
|
9482
9491
|
transition: "var(--pds-animation-reveal-transition)",
|
|
9483
9492
|
zIndex: "var(--pds-z-index-modal)"
|
|
@@ -9485,12 +9494,12 @@ const $2 = (o) => {
|
|
|
9485
9494
|
},
|
|
9486
9495
|
/* @__PURE__ */ e.createElement(Es, { context: g }, /* @__PURE__ */ e.createElement(
|
|
9487
9496
|
"div",
|
|
9488
|
-
y(
|
|
9497
|
+
y(ge(y({
|
|
9489
9498
|
ref: _.setFloating,
|
|
9490
9499
|
"aria-label": s || l
|
|
9491
9500
|
}, w()), {
|
|
9492
9501
|
className: [m, p, i].join(" ").trim().replace(/\s+/g, " "),
|
|
9493
|
-
style:
|
|
9502
|
+
style: ge(y(y({}, b), k), {
|
|
9494
9503
|
position: "relative"
|
|
9495
9504
|
})
|
|
9496
9505
|
}), d),
|
|
@@ -9528,10 +9537,10 @@ const $2 = (o) => {
|
|
|
9528
9537
|
}
|
|
9529
9538
|
}
|
|
9530
9539
|
return null;
|
|
9531
|
-
},
|
|
9540
|
+
}, lt = (s) => {
|
|
9532
9541
|
let n = s;
|
|
9533
9542
|
return typeof s == "object" && (n = s.props.children), n;
|
|
9534
|
-
},
|
|
9543
|
+
}, ct = (s, n) => {
|
|
9535
9544
|
let a = null;
|
|
9536
9545
|
if (typeof s == "string" && n) {
|
|
9537
9546
|
const c = n ? n[0].linkContent : null;
|
|
@@ -9549,11 +9558,11 @@ const $2 = (o) => {
|
|
|
9549
9558
|
];
|
|
9550
9559
|
if (a) {
|
|
9551
9560
|
const l = a[0].linkContent;
|
|
9552
|
-
Ut(l) && (r =
|
|
9561
|
+
Ut(l) && (r = je(l, y({}, typeof n == "string" ? { children: o } : {})));
|
|
9553
9562
|
} else
|
|
9554
9563
|
r = null;
|
|
9555
9564
|
}
|
|
9556
|
-
return typeof n == "object" && (c ? r =
|
|
9565
|
+
return typeof n == "object" && (c ? r = je(n, ge(y({}, n.props), {
|
|
9557
9566
|
children: [
|
|
9558
9567
|
/* @__PURE__ */ e.createElement("span", { key: c, className: `${s}__item-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${s}__link-icon` }, /* @__PURE__ */ e.createElement(A, { iconName: c, iconSize: "md" })), /* @__PURE__ */ e.createElement("span", { className: `${s}__link-label` }, n.props.children))
|
|
9559
9568
|
]
|
|
@@ -9592,7 +9601,7 @@ const $2 = (o) => {
|
|
|
9592
9601
|
open: m,
|
|
9593
9602
|
onOpenChange: p,
|
|
9594
9603
|
middleware: [yt(12), wt(), Nt()],
|
|
9595
|
-
whileElementsMounted:
|
|
9604
|
+
whileElementsMounted: qe
|
|
9596
9605
|
}), g = Et(_, {
|
|
9597
9606
|
move: !1,
|
|
9598
9607
|
handleClose: vs()
|
|
@@ -9636,7 +9645,7 @@ const $2 = (o) => {
|
|
|
9636
9645
|
onClick: L
|
|
9637
9646
|
},
|
|
9638
9647
|
/* @__PURE__ */ e.createElement(A, { iconName: "angleDown", iconSize: "md" }),
|
|
9639
|
-
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${c.toggle} ${
|
|
9648
|
+
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${c.toggle} ${lt(r)} ${c.submenu}`)
|
|
9640
9649
|
)), a && h(o, "second-level"), !a && m && /* @__PURE__ */ e.createElement(
|
|
9641
9650
|
"div",
|
|
9642
9651
|
y({
|
|
@@ -9644,12 +9653,12 @@ const $2 = (o) => {
|
|
|
9644
9653
|
ref: f.setFloating,
|
|
9645
9654
|
style: E
|
|
9646
9655
|
}, w()),
|
|
9647
|
-
/* @__PURE__ */ e.createElement("div", { className: `${l}__flyout-heading` },
|
|
9656
|
+
/* @__PURE__ */ e.createElement("div", { className: `${l}__flyout-heading` }, lt(r)),
|
|
9648
9657
|
h(o, "second-level-flyout")
|
|
9649
9658
|
)) : /* @__PURE__ */ e.createElement(e.Fragment, null, a ? u : /* @__PURE__ */ e.createElement(
|
|
9650
9659
|
_t,
|
|
9651
9660
|
{
|
|
9652
|
-
content:
|
|
9661
|
+
content: lt(r),
|
|
9653
9662
|
customTrigger: u,
|
|
9654
9663
|
offsetValue: {
|
|
9655
9664
|
mainAxis: -4,
|
|
@@ -9695,10 +9704,10 @@ const $2 = (o) => {
|
|
|
9695
9704
|
const b = ({
|
|
9696
9705
|
item: S,
|
|
9697
9706
|
level: P
|
|
9698
|
-
}) =>
|
|
9707
|
+
}) => ge(y({}, S), {
|
|
9699
9708
|
level: P,
|
|
9700
|
-
linkContent:
|
|
9701
|
-
|
|
9709
|
+
linkContent: je(
|
|
9710
|
+
ct(S.linkContent, S.links),
|
|
9702
9711
|
{
|
|
9703
9712
|
tabIndex: -1
|
|
9704
9713
|
}
|
|
@@ -9718,17 +9727,17 @@ const $2 = (o) => {
|
|
|
9718
9727
|
placement: "bottom-start",
|
|
9719
9728
|
open: d,
|
|
9720
9729
|
onOpenChange: u,
|
|
9721
|
-
whileElementsMounted:
|
|
9722
|
-
}), w = se([]), L =
|
|
9730
|
+
whileElementsMounted: qe
|
|
9731
|
+
}), w = se([]), L = ut($, {
|
|
9723
9732
|
listRef: w,
|
|
9724
9733
|
activeIndex: h,
|
|
9725
9734
|
onNavigate: m,
|
|
9726
9735
|
loop: !0,
|
|
9727
9736
|
openOnArrowKeyDown: !0,
|
|
9728
9737
|
focusItemOnHover: !0
|
|
9729
|
-
}), k =
|
|
9738
|
+
}), k = ot($, { event: "mousedown" }), z = Se($), N = Te($, { role: "menu" }), { getReferenceProps: x, getFloatingProps: M, getItemProps: T } = Oe(
|
|
9730
9739
|
[z, N, k, L]
|
|
9731
|
-
), { isMounted: V, styles: H } =
|
|
9740
|
+
), { isMounted: V, styles: H } = Xe($, {
|
|
9732
9741
|
duration: {
|
|
9733
9742
|
open: 300,
|
|
9734
9743
|
close: 300
|
|
@@ -9763,7 +9772,7 @@ const $2 = (o) => {
|
|
|
9763
9772
|
y({
|
|
9764
9773
|
className: `${i}__dropdown ${i}__menu ${i}__menu--top-level`,
|
|
9765
9774
|
ref: C.setFloating,
|
|
9766
|
-
style:
|
|
9775
|
+
style: ge(y({}, H), {
|
|
9767
9776
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9768
9777
|
})
|
|
9769
9778
|
}, M()),
|
|
@@ -9800,7 +9809,7 @@ const $2 = (o) => {
|
|
|
9800
9809
|
"className"
|
|
9801
9810
|
]);
|
|
9802
9811
|
let d = !1;
|
|
9803
|
-
const u = He(
|
|
9812
|
+
const u = He(We);
|
|
9804
9813
|
u && (d = u.isMobile);
|
|
9805
9814
|
const h = He(Qt);
|
|
9806
9815
|
let m = !0;
|
|
@@ -9816,7 +9825,7 @@ const $2 = (o) => {
|
|
|
9816
9825
|
linkContent: b.linkContent,
|
|
9817
9826
|
links: b.links
|
|
9818
9827
|
}
|
|
9819
|
-
)))), _ = a.map((b) =>
|
|
9828
|
+
)))), _ = a.map((b) => ge(y({}, b), {
|
|
9820
9829
|
linkContent: Zt(
|
|
9821
9830
|
p,
|
|
9822
9831
|
b.linkContent,
|
|
@@ -9895,7 +9904,7 @@ const $2 = (o) => {
|
|
|
9895
9904
|
ye($) ? `${z}--active` : null
|
|
9896
9905
|
])
|
|
9897
9906
|
},
|
|
9898
|
-
k ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${z}-wrapper` },
|
|
9907
|
+
k ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${z}-wrapper` }, ct(L, k), /* @__PURE__ */ e.createElement(
|
|
9899
9908
|
"button",
|
|
9900
9909
|
{
|
|
9901
9910
|
"aria-expanded": ye($),
|
|
@@ -9906,7 +9915,7 @@ const $2 = (o) => {
|
|
|
9906
9915
|
onClick: g
|
|
9907
9916
|
},
|
|
9908
9917
|
/* @__PURE__ */ e.createElement(A, { iconName: "angleDown", iconSize: "md" }),
|
|
9909
|
-
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${c.toggle} ${
|
|
9918
|
+
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${c.toggle} ${lt(L)} ${c.submenu}`)
|
|
9910
9919
|
)), /* @__PURE__ */ e.createElement(
|
|
9911
9920
|
"ul",
|
|
9912
9921
|
{
|
|
@@ -9926,7 +9935,7 @@ const $2 = (o) => {
|
|
|
9926
9935
|
ye(x) ? `${z}--active` : null
|
|
9927
9936
|
])
|
|
9928
9937
|
},
|
|
9929
|
-
|
|
9938
|
+
ct(
|
|
9930
9939
|
x.linkContent,
|
|
9931
9940
|
x.links
|
|
9932
9941
|
)
|
|
@@ -10011,8 +10020,8 @@ const $2 = (o) => {
|
|
|
10011
10020
|
onClick: g
|
|
10012
10021
|
},
|
|
10013
10022
|
/* @__PURE__ */ e.createElement(A, { iconName: "caretDown", iconSize: "md" }),
|
|
10014
|
-
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${c.toggle} ${
|
|
10015
|
-
),
|
|
10023
|
+
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${c.toggle} ${lt(L)} ${c.submenu}`)
|
|
10024
|
+
), ct(L, k)), /* @__PURE__ */ e.createElement(
|
|
10016
10025
|
"ul",
|
|
10017
10026
|
{
|
|
10018
10027
|
className: J([
|
|
@@ -10042,8 +10051,8 @@ const $2 = (o) => {
|
|
|
10042
10051
|
onClick: g
|
|
10043
10052
|
},
|
|
10044
10053
|
/* @__PURE__ */ e.createElement(A, { iconName: "caretDown", iconSize: "md" }),
|
|
10045
|
-
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${c.toggle} ${
|
|
10046
|
-
),
|
|
10054
|
+
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${c.toggle} ${lt(x.linkContent)} ${c.submenu}`)
|
|
10055
|
+
), ct(
|
|
10047
10056
|
x.linkContent,
|
|
10048
10057
|
x.links
|
|
10049
10058
|
)), /* @__PURE__ */ e.createElement(
|
|
@@ -10065,7 +10074,7 @@ const $2 = (o) => {
|
|
|
10065
10074
|
ye(T) ? `${z}--active` : null
|
|
10066
10075
|
])
|
|
10067
10076
|
},
|
|
10068
|
-
|
|
10077
|
+
ct(
|
|
10069
10078
|
T.linkContent,
|
|
10070
10079
|
T.links
|
|
10071
10080
|
)
|
|
@@ -10116,15 +10125,15 @@ const $2 = (o) => {
|
|
|
10116
10125
|
]);
|
|
10117
10126
|
const [h, m] = R(null), [p, f] = R(!1), E = se([]), _ = se([]);
|
|
10118
10127
|
let g = !1;
|
|
10119
|
-
const b = He(
|
|
10128
|
+
const b = He(We);
|
|
10120
10129
|
b && (g = b.isMobile);
|
|
10121
10130
|
const v = o && g, C = "pds-user-menu", $ = v ? `${C}--isMobile` : null, w = `${C}__menu`, { refs: L, floatingStyles: k, context: z } = Ie({
|
|
10122
10131
|
placement: "bottom-end",
|
|
10123
10132
|
open: p,
|
|
10124
10133
|
onOpenChange: f,
|
|
10125
10134
|
middleware: [yt(12), wt(), Nt()],
|
|
10126
|
-
whileElementsMounted:
|
|
10127
|
-
}), N =
|
|
10135
|
+
whileElementsMounted: qe
|
|
10136
|
+
}), N = ot(z, { event: "mousedown" }), x = Se(z), M = Te(z, { role: "menu" }), T = se([]), V = ut(z, {
|
|
10128
10137
|
listRef: T,
|
|
10129
10138
|
activeIndex: h,
|
|
10130
10139
|
onNavigate: m,
|
|
@@ -10134,7 +10143,7 @@ const $2 = (o) => {
|
|
|
10134
10143
|
focusItemOnHover: !0
|
|
10135
10144
|
}), { getReferenceProps: H, getFloatingProps: S, getItemProps: P } = Oe(
|
|
10136
10145
|
[x, M, N, V]
|
|
10137
|
-
), { isMounted: j, styles: F } =
|
|
10146
|
+
), { isMounted: j, styles: F } = Xe(z, {
|
|
10138
10147
|
duration: {
|
|
10139
10148
|
open: 300,
|
|
10140
10149
|
close: 150
|
|
@@ -10149,7 +10158,7 @@ const $2 = (o) => {
|
|
|
10149
10158
|
opacity: 0
|
|
10150
10159
|
}
|
|
10151
10160
|
}), Z = /* @__PURE__ */ e.createElement(
|
|
10152
|
-
|
|
10161
|
+
mt,
|
|
10153
10162
|
{
|
|
10154
10163
|
size: "sm",
|
|
10155
10164
|
imageSrc: c,
|
|
@@ -10158,7 +10167,7 @@ const $2 = (o) => {
|
|
|
10158
10167
|
}
|
|
10159
10168
|
), B = /* @__PURE__ */ e.createElement(A, { iconName: "angleDown", className: `${C}__trigger-icon` }), W = /* @__PURE__ */ e.createElement("li", { className: `${C}__user-details`, role: "presentation" }, v ? null : /* @__PURE__ */ e.createElement("div", { className: `${C}__user-name` }, r), /* @__PURE__ */ e.createElement("div", { className: `${C}__user-email` }, a));
|
|
10160
10169
|
n.forEach((te) => {
|
|
10161
|
-
const de = te.id ? te.id :
|
|
10170
|
+
const de = te.id ? te.id : Pe();
|
|
10162
10171
|
E.current.push(de), _.current.push(te);
|
|
10163
10172
|
});
|
|
10164
10173
|
const O = (te) => {
|
|
@@ -10169,13 +10178,13 @@ const $2 = (o) => {
|
|
|
10169
10178
|
}, U = (te) => {
|
|
10170
10179
|
O(te.currentTarget.id);
|
|
10171
10180
|
}, K = n.map((te, de) => {
|
|
10172
|
-
const le = E.current[de],
|
|
10181
|
+
const le = E.current[de], ne = `${C}__item`, _e = te.disabled ? `${ne}--disabled` : null;
|
|
10173
10182
|
return /* @__PURE__ */ e.createElement(
|
|
10174
10183
|
"li",
|
|
10175
10184
|
y({
|
|
10176
10185
|
key: le,
|
|
10177
10186
|
id: le,
|
|
10178
|
-
className: J([
|
|
10187
|
+
className: J([ne, _e]),
|
|
10179
10188
|
role: "menuitem",
|
|
10180
10189
|
tabIndex: h === de ? 0 : -1,
|
|
10181
10190
|
ref: (ee) => {
|
|
@@ -10206,7 +10215,7 @@ const $2 = (o) => {
|
|
|
10206
10215
|
y({
|
|
10207
10216
|
className: `${C}__dropdown`,
|
|
10208
10217
|
ref: L.setFloating,
|
|
10209
|
-
style:
|
|
10218
|
+
style: ge(y({}, k), {
|
|
10210
10219
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
10211
10220
|
})
|
|
10212
10221
|
}, S()),
|
|
@@ -10217,7 +10226,7 @@ const $2 = (o) => {
|
|
|
10217
10226
|
"aria-expanded",
|
|
10218
10227
|
de.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
10219
10228
|
), de.nextElementSibling.classList.toggle(`${C}__mobile-menu--expanded`);
|
|
10220
|
-
},
|
|
10229
|
+
}, ve = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
10221
10230
|
"button",
|
|
10222
10231
|
{
|
|
10223
10232
|
className: `${C}__toggle`,
|
|
@@ -10242,7 +10251,7 @@ const $2 = (o) => {
|
|
|
10242
10251
|
y({
|
|
10243
10252
|
className: J([C, $, l != null ? l : ""])
|
|
10244
10253
|
}, i),
|
|
10245
|
-
v ?
|
|
10254
|
+
v ? ve : ie
|
|
10246
10255
|
);
|
|
10247
10256
|
}, z2 = {
|
|
10248
10257
|
info: "circleInfo",
|
|
@@ -10352,7 +10361,7 @@ const $2 = (o) => {
|
|
|
10352
10361
|
])
|
|
10353
10362
|
}, l),
|
|
10354
10363
|
m > 1 ? /* @__PURE__ */ e.createElement("div", { className: `${p}__navigation` }, /* @__PURE__ */ e.createElement(
|
|
10355
|
-
|
|
10364
|
+
dt,
|
|
10356
10365
|
{
|
|
10357
10366
|
iconName: "angleLeft",
|
|
10358
10367
|
size: "lg",
|
|
@@ -10361,7 +10370,7 @@ const $2 = (o) => {
|
|
|
10361
10370
|
onClick: w
|
|
10362
10371
|
}
|
|
10363
10372
|
), /* @__PURE__ */ e.createElement(
|
|
10364
|
-
|
|
10373
|
+
dt,
|
|
10365
10374
|
{
|
|
10366
10375
|
iconName: "angleRight",
|
|
10367
10376
|
size: "lg",
|
|
@@ -10521,7 +10530,7 @@ const $2 = (o) => {
|
|
|
10521
10530
|
n && a && /* @__PURE__ */ e.createElement("span", { className: u }),
|
|
10522
10531
|
/* @__PURE__ */ e.createElement("div", { className: `${d}__content` }, s)
|
|
10523
10532
|
);
|
|
10524
|
-
},
|
|
10533
|
+
}, Ue = 8, us = 14, M2 = 6, pn = (f) => {
|
|
10525
10534
|
var E = f, {
|
|
10526
10535
|
content: s,
|
|
10527
10536
|
customTrigger: n = !1,
|
|
@@ -10568,28 +10577,28 @@ const $2 = (o) => {
|
|
|
10568
10577
|
g(K), K || r();
|
|
10569
10578
|
},
|
|
10570
10579
|
middleware: [
|
|
10571
|
-
yt(
|
|
10580
|
+
yt(Ue + M2 + $),
|
|
10572
10581
|
wt({ padding: 8 }),
|
|
10573
10582
|
Nt({ padding: 8 }),
|
|
10574
10583
|
Qs({ element: w })
|
|
10575
10584
|
],
|
|
10576
|
-
whileElementsMounted:
|
|
10585
|
+
whileElementsMounted: qe
|
|
10577
10586
|
}), x = () => {
|
|
10578
10587
|
g(!1), r && r();
|
|
10579
|
-
}, M =
|
|
10588
|
+
}, M = ot(z), T = Se(z), V = Te(z), { getReferenceProps: H, getFloatingProps: S } = Oe([
|
|
10580
10589
|
M,
|
|
10581
10590
|
T,
|
|
10582
10591
|
V
|
|
10583
|
-
]), P = (O = (W = N.arrow) == null ? void 0 : W.x) != null ? O : 0, j = (U = (D = N.arrow) == null ? void 0 : D.y) != null ? U : 0, F = P + us / 2, Z = j +
|
|
10592
|
+
]), P = (O = (W = N.arrow) == null ? void 0 : W.x) != null ? O : 0, j = (U = (D = N.arrow) == null ? void 0 : D.y) != null ? U : 0, F = P + us / 2, Z = j + Ue, { isMounted: B } = Xe(z, {
|
|
10584
10593
|
initial: {
|
|
10585
10594
|
transform: "scale(0)"
|
|
10586
10595
|
},
|
|
10587
10596
|
common: ({ side: K }) => ({
|
|
10588
10597
|
transformOrigin: {
|
|
10589
|
-
top: `${F}px calc(100% + ${
|
|
10590
|
-
bottom: `${F}px ${-
|
|
10591
|
-
left: `calc(100% + ${
|
|
10592
|
-
right: `${-
|
|
10598
|
+
top: `${F}px calc(100% + ${Ue}px)`,
|
|
10599
|
+
bottom: `${F}px ${-Ue}px`,
|
|
10600
|
+
left: `calc(100% + ${Ue}px) ${Z}px`,
|
|
10601
|
+
right: `${-Ue}px ${Z}px`
|
|
10593
10602
|
}[K]
|
|
10594
10603
|
})
|
|
10595
10604
|
});
|
|
@@ -10625,7 +10634,7 @@ const $2 = (o) => {
|
|
|
10625
10634
|
{
|
|
10626
10635
|
ref: w,
|
|
10627
10636
|
context: z,
|
|
10628
|
-
height:
|
|
10637
|
+
height: Ue,
|
|
10629
10638
|
width: us,
|
|
10630
10639
|
tipRadius: 0,
|
|
10631
10640
|
fill: "var(--pds-color-background-default)",
|
|
@@ -10670,7 +10679,7 @@ const $2 = (o) => {
|
|
|
10670
10679
|
"size",
|
|
10671
10680
|
"className"
|
|
10672
10681
|
]);
|
|
10673
|
-
const f = n ||
|
|
10682
|
+
const f = n || Pe(), E = "pds-progress-bar", _ = l ? `${E}__label` : "visually-hidden", g = `${E}__track ${E}__track--${d}`, b = o > 100 ? 100 : o;
|
|
10674
10683
|
let v = "neutral";
|
|
10675
10684
|
s.forEach((L) => {
|
|
10676
10685
|
o >= L.percentage && (v = L.colorType);
|
|
@@ -11029,7 +11038,7 @@ const S2 = (c) => {
|
|
|
11029
11038
|
);
|
|
11030
11039
|
const m = "pds-stepper-layout";
|
|
11031
11040
|
return /* @__PURE__ */ e.createElement(
|
|
11032
|
-
|
|
11041
|
+
at,
|
|
11033
11042
|
y({
|
|
11034
11043
|
className: [m, n].join(" ").trim().replace(/\s+/g, " ")
|
|
11035
11044
|
}, a),
|
|
@@ -11165,12 +11174,12 @@ const vn = ({
|
|
|
11165
11174
|
mobileMenuMaxWidth: n = 640
|
|
11166
11175
|
}) => /* @__PURE__ */ e.createElement(y1, { mobileMenuMaxWidth: n }, s);
|
|
11167
11176
|
export {
|
|
11168
|
-
|
|
11177
|
+
mt as Avatar,
|
|
11169
11178
|
r1 as AvatarTileList,
|
|
11170
11179
|
on as Banner,
|
|
11171
11180
|
u1 as Breadcrumbs,
|
|
11172
|
-
|
|
11173
|
-
|
|
11181
|
+
Ke as Button,
|
|
11182
|
+
Be as ButtonLink,
|
|
11174
11183
|
h2 as CTALink,
|
|
11175
11184
|
$1 as CTASlice,
|
|
11176
11185
|
Q2 as Callout,
|
|
@@ -11181,7 +11190,7 @@ export {
|
|
|
11181
11190
|
en as CheckboxGroup,
|
|
11182
11191
|
N1 as Combobox,
|
|
11183
11192
|
ms as ComparisonList,
|
|
11184
|
-
|
|
11193
|
+
at as Container,
|
|
11185
11194
|
Qt as DashboardContext,
|
|
11186
11195
|
G2 as DashboardLayout,
|
|
11187
11196
|
an as DashboardNav,
|
|
@@ -11196,14 +11205,14 @@ export {
|
|
|
11196
11205
|
vn as GlobalWrapper,
|
|
11197
11206
|
x1 as Heading,
|
|
11198
11207
|
A as Icon,
|
|
11199
|
-
|
|
11208
|
+
dt as IconButton,
|
|
11200
11209
|
Ct as IndicatorBadge,
|
|
11201
11210
|
dn as InlineMessage,
|
|
11202
11211
|
I1 as InputFormatted,
|
|
11203
11212
|
tn as InputGroup,
|
|
11204
11213
|
S1 as InputObscured,
|
|
11205
11214
|
T1 as InputText,
|
|
11206
|
-
|
|
11215
|
+
Je as InputWrapper,
|
|
11207
11216
|
O1 as LinksCard,
|
|
11208
11217
|
Vs as MenuButton,
|
|
11209
11218
|
nn as Modal,
|
|
@@ -11220,7 +11229,7 @@ export {
|
|
|
11220
11229
|
i2 as ProgressRing,
|
|
11221
11230
|
gn as PullQuote,
|
|
11222
11231
|
e2 as RadioGroup,
|
|
11223
|
-
|
|
11232
|
+
We as ResponsiveContext,
|
|
11224
11233
|
mn as SectionMessage,
|
|
11225
11234
|
X2 as SegmentedButton,
|
|
11226
11235
|
Lt as Select,
|