@pantheon-systems/pds-toolkit-react 1.0.0-dev.221 → 1.0.0-dev.222
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/css/component-css/pds-comparison-list.css +1 -1
- package/_dist/css/component-css/pds-index.css +2 -2
- package/_dist/css/component-css/pds-site-footer.css +1 -1
- package/_dist/css/component-css/pds-status-indicator.css +1 -1
- package/_dist/css/component-css/pds-tooltip.css +1 -1
- package/_dist/css/design-tokens/pds-design-tokens.css +2 -1
- package/_dist/css/pds-components.css +2 -2
- package/_dist/css/pds-core.css +2 -2
- package/_dist/index.css +1 -1
- package/_dist/index.js +541 -530
- package/_dist/index.js.map +1 -1
- package/package.json +2 -2
package/_dist/index.js
CHANGED
|
@@ -35,9 +35,9 @@ var zt = (t, s, n) => new Promise((l, r) => {
|
|
|
35
35
|
}, c = (o) => o.done ? l(o.value) : Promise.resolve(o.value).then(d, a);
|
|
36
36
|
c((n = n.apply(t, s)).next());
|
|
37
37
|
});
|
|
38
|
-
import e, { Children as o1, isValidElement as be, cloneElement as xe, useState as
|
|
38
|
+
import e, { Children as o1, isValidElement as be, cloneElement as xe, useState as Z, createElement as V1, forwardRef as Ze, useEffect as ce, useRef as de, createContext as i1, useContext as Ce, useLayoutEffect as I1, useCallback as S1, createRef as T1, useMemo as A1, Fragment as D1 } from "react";
|
|
39
39
|
import d1 from "hash-sum";
|
|
40
|
-
import { useFloating as Ve, offset as Ct, flip as $t, shift as wt, autoUpdate as Pe, useHover as gt, useFocus as m1, useDismiss as Ie, useRole as Se, useInteractions as
|
|
40
|
+
import { useFloating as Ve, offset as Ct, flip as $t, shift as wt, autoUpdate as Pe, useHover as gt, useFocus as m1, useDismiss as Ie, useRole as Se, useInteractions as Te, FloatingPortal as u1, useId as O1, useClick as Ke, useListNavigation as lt, useTransitionStyles as Xe, FloatingOverlay as R1, FloatingFocusManager as p1, safePolygon as h1, arrow as F1, FloatingArrow as P1 } from "@floating-ui/react";
|
|
41
41
|
import { useHotkeys as B1 } from "react-hotkeys-hook";
|
|
42
42
|
import { useFloating as W1, flip as G1 } from "@floating-ui/react-dom";
|
|
43
43
|
import { CodeBlock as ct } from "react-code-block";
|
|
@@ -57,7 +57,7 @@ const et = () => Math.random().toString(32).substring(2, 13), f1 = (t, s) => {
|
|
|
57
57
|
l && (s[l] ? s[l].push(n) : s[l] = [n]);
|
|
58
58
|
}
|
|
59
59
|
}), s;
|
|
60
|
-
}, x = (t) => t.join(" ").trim().replace(/\s+/g, " "),
|
|
60
|
+
}, x = (t) => t.join(" ").trim().replace(/\s+/g, " "), R = (r) => {
|
|
61
61
|
var d = r, {
|
|
62
62
|
iconName: t,
|
|
63
63
|
iconSize: s = "md",
|
|
@@ -794,7 +794,7 @@ const et = () => Math.random().toString(32).substring(2, 13), f1 = (t, s) => {
|
|
|
794
794
|
display: "flex",
|
|
795
795
|
alignItems: "center",
|
|
796
796
|
justifyContent: "center"
|
|
797
|
-
}, y = n ? /* @__PURE__ */ e.createElement("img", { src: `${n}`, className: `${f}__image`, alt: "" }) : /* @__PURE__ */ e.createElement("span", { style: b }, s && /* @__PURE__ */ e.createElement(
|
|
797
|
+
}, y = n ? /* @__PURE__ */ e.createElement("img", { src: `${n}`, className: `${f}__image`, alt: "" }) : /* @__PURE__ */ e.createElement("span", { style: b }, s && /* @__PURE__ */ e.createElement(R, { iconName: "user", className: `${f}__user-icon` })), v = /* @__PURE__ */ e.createElement("span", { className: `${f}__content` }, y), $ = be(l) ? xe(
|
|
798
798
|
l,
|
|
799
799
|
he(L({}, l.props), {
|
|
800
800
|
className: `${f}__content ${f}__content--link`,
|
|
@@ -906,7 +906,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
906
906
|
"zIndex",
|
|
907
907
|
"className"
|
|
908
908
|
]);
|
|
909
|
-
const [E, b] =
|
|
909
|
+
const [E, b] = Z(!1), y = typeof s, v = "pds-tooltip", $ = x([
|
|
910
910
|
`${v}__trigger-custom`,
|
|
911
911
|
y === "string" ? `${v}__trigger-text` : null
|
|
912
912
|
]), h = x([
|
|
@@ -922,7 +922,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
922
922
|
restMs: 300,
|
|
923
923
|
delay: { open: 500, close: 0 },
|
|
924
924
|
move: !1
|
|
925
|
-
}), M = m1(_), z = Ie(_), w = Se(_, { role: "tooltip" }), { getReferenceProps: H, getFloatingProps: N } =
|
|
925
|
+
}), M = m1(_), z = Ie(_), w = Se(_, { role: "tooltip" }), { getReferenceProps: H, getFloatingProps: N } = Te([
|
|
926
926
|
C,
|
|
927
927
|
M,
|
|
928
928
|
z,
|
|
@@ -943,7 +943,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
943
943
|
ref: m.setReference
|
|
944
944
|
}, H()),
|
|
945
945
|
/* @__PURE__ */ e.createElement(
|
|
946
|
-
|
|
946
|
+
R,
|
|
947
947
|
{
|
|
948
948
|
iconName: d,
|
|
949
949
|
className: `${v}__icon`,
|
|
@@ -1045,7 +1045,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1045
1045
|
success: "pds-has-success",
|
|
1046
1046
|
readonly: "pds-is-readonly"
|
|
1047
1047
|
}, tt = (t) => t ? { width: `${t / 16}rem` } : null, ft = () => /* @__PURE__ */ e.createElement(
|
|
1048
|
-
|
|
1048
|
+
R,
|
|
1049
1049
|
{
|
|
1050
1050
|
iconName: "asterisk",
|
|
1051
1051
|
iconSize: "sm",
|
|
@@ -1067,7 +1067,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1067
1067
|
c != null ? c : ""
|
|
1068
1068
|
]);
|
|
1069
1069
|
return d ? /* @__PURE__ */ e.createElement("legend", { className: o, id: `${t}-legend` }, s, l && !r && /* @__PURE__ */ e.createElement(ft, null)) : a ? /* @__PURE__ */ e.createElement("span", { className: o, id: `${t}-field-label` }, s, l && !r && /* @__PURE__ */ e.createElement(ft, null)) : /* @__PURE__ */ e.createElement("label", { htmlFor: t, className: o, id: `${t}-label` }, s, l && !r && /* @__PURE__ */ e.createElement(ft, null));
|
|
1070
|
-
},
|
|
1070
|
+
}, Ae = ({
|
|
1071
1071
|
id: t,
|
|
1072
1072
|
message: s,
|
|
1073
1073
|
hasValidationMessage: n,
|
|
@@ -1094,7 +1094,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1094
1094
|
}, ut = ({ variant: t }) => {
|
|
1095
1095
|
const s = "pds-input-decorator";
|
|
1096
1096
|
return /* @__PURE__ */ e.createElement("div", { className: x([s, `${s}--${t}`]) }, /* @__PURE__ */ e.createElement(
|
|
1097
|
-
|
|
1097
|
+
R,
|
|
1098
1098
|
{
|
|
1099
1099
|
iconName: Y1[t],
|
|
1100
1100
|
iconSize: "md",
|
|
@@ -1107,7 +1107,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1107
1107
|
}) => (B1("/", (l) => {
|
|
1108
1108
|
const r = document.getElementById(t);
|
|
1109
1109
|
r && r.focus(), l.preventDefault();
|
|
1110
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-input-search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s), /* @__PURE__ */ e.createElement(
|
|
1110
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-input-search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s), /* @__PURE__ */ e.createElement(R, { iconName: "slashForward", iconSize: "md" }))), Ut = ({
|
|
1111
1111
|
id: t,
|
|
1112
1112
|
clearLabel: s,
|
|
1113
1113
|
handleClearInput: n
|
|
@@ -1120,7 +1120,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1120
1120
|
"aria-controls": t,
|
|
1121
1121
|
onClick: n
|
|
1122
1122
|
},
|
|
1123
|
-
/* @__PURE__ */ e.createElement(
|
|
1123
|
+
/* @__PURE__ */ e.createElement(R, { iconName: "xmark", iconSize: "md" })
|
|
1124
1124
|
), _1 = ({
|
|
1125
1125
|
id: t,
|
|
1126
1126
|
currentLength: s,
|
|
@@ -1229,7 +1229,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1229
1229
|
g = "lg";
|
|
1230
1230
|
}
|
|
1231
1231
|
const _ = /* @__PURE__ */ e.createElement(
|
|
1232
|
-
|
|
1232
|
+
R,
|
|
1233
1233
|
{
|
|
1234
1234
|
key: "icon",
|
|
1235
1235
|
iconName: r,
|
|
@@ -1281,7 +1281,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1281
1281
|
p,
|
|
1282
1282
|
E
|
|
1283
1283
|
]), y = be(l) ? l.props.children : null, v = /* @__PURE__ */ e.createElement(
|
|
1284
|
-
|
|
1284
|
+
R,
|
|
1285
1285
|
{
|
|
1286
1286
|
iconName: n,
|
|
1287
1287
|
iconSize: r,
|
|
@@ -1306,7 +1306,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
) : /* @__PURE__ */ e.createElement("span", L({ className: x([f, a != null ? a : ""]) }, c), h);
|
|
1308
1308
|
}, Q1 = (t, s) => {
|
|
1309
|
-
const [n, l] =
|
|
1309
|
+
const [n, l] = Z(!1), r = s == null ? void 0 : s.duration;
|
|
1310
1310
|
return ce(() => {
|
|
1311
1311
|
let a;
|
|
1312
1312
|
return n && r && (a = setTimeout(() => {
|
|
@@ -1372,7 +1372,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1372
1372
|
}, z = (H) => {
|
|
1373
1373
|
g && M(), a && a(H);
|
|
1374
1374
|
}, w = g ? /* @__PURE__ */ e.createElement("div", { className: `${b}__content` }, /* @__PURE__ */ e.createElement("div", { ref: _, className: `${b}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
1375
|
-
|
|
1375
|
+
R,
|
|
1376
1376
|
{
|
|
1377
1377
|
iconName: r,
|
|
1378
1378
|
iconSize: m,
|
|
@@ -1385,7 +1385,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1385
1385
|
className: `${b}__icon-wrapper ${$.hide}`
|
|
1386
1386
|
},
|
|
1387
1387
|
/* @__PURE__ */ e.createElement(
|
|
1388
|
-
|
|
1388
|
+
R,
|
|
1389
1389
|
{
|
|
1390
1390
|
iconName: d,
|
|
1391
1391
|
iconSize: m,
|
|
@@ -1393,7 +1393,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
)
|
|
1395
1395
|
)) : /* @__PURE__ */ e.createElement("div", { className: `${b}__content` }, /* @__PURE__ */ e.createElement(
|
|
1396
|
-
|
|
1396
|
+
R,
|
|
1397
1397
|
{
|
|
1398
1398
|
iconName: r,
|
|
1399
1399
|
iconSize: m,
|
|
@@ -1457,7 +1457,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1457
1457
|
}, d)
|
|
1458
1458
|
);
|
|
1459
1459
|
}, E1 = () => {
|
|
1460
|
-
const t = typeof window != "undefined", [s, n] =
|
|
1460
|
+
const t = typeof window != "undefined", [s, n] = Z(
|
|
1461
1461
|
t && window.innerWidth !== void 0 ? window.innerWidth : 1024
|
|
1462
1462
|
);
|
|
1463
1463
|
return ce(() => {
|
|
@@ -1536,32 +1536,32 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1536
1536
|
let H = !1;
|
|
1537
1537
|
const N = Ce(He);
|
|
1538
1538
|
N && (H = N.isMobile);
|
|
1539
|
-
const I = p === "navbar" && H, V = "pds-menu-button",
|
|
1539
|
+
const I = p === "navbar" && H, V = "pds-menu-button", T = I ? `${V}--isMobile` : null, A = E ? `${V}--navbar` : null, k = l, [P] = Z(`menu-button-${l}`), B = w.floating, F = de(null), [K, Q] = Z(!1), [U, Y] = Z(!1), [W, O] = Z(""), [X, ae] = Z(0), te = de([]), j = de([]), se = de([]);
|
|
1540
1540
|
I1(() => {
|
|
1541
1541
|
window.addEventListener("mousedown", Be, !0), M();
|
|
1542
|
-
const D =
|
|
1543
|
-
return D && (D.dataset.fuiPlacement = z),
|
|
1542
|
+
const D = B.current;
|
|
1543
|
+
return D && (D.dataset.fuiPlacement = z), U && (setTimeout(() => {
|
|
1544
1544
|
D.focus();
|
|
1545
1545
|
}, 0), Y(!1)), () => {
|
|
1546
1546
|
window.removeEventListener("mousedown", Be, !0);
|
|
1547
1547
|
};
|
|
1548
|
-
}, [
|
|
1548
|
+
}, [K, z]);
|
|
1549
1549
|
const ne = (D, q) => {
|
|
1550
|
-
|
|
1550
|
+
O(D), ae(q);
|
|
1551
1551
|
}, me = () => {
|
|
1552
1552
|
Q(!0), Y(!0);
|
|
1553
1553
|
}, ue = () => {
|
|
1554
|
-
Q(!1), ne(void 0, -1),
|
|
1554
|
+
Q(!1), ne(void 0, -1), F.current.querySelector(`#${k}`).focus();
|
|
1555
1555
|
}, ge = (D) => {
|
|
1556
1556
|
D = D.toLowerCase();
|
|
1557
1557
|
let q = !1;
|
|
1558
|
-
for (let G =
|
|
1558
|
+
for (let G = X + 1; G < se.current.length; G++)
|
|
1559
1559
|
if (se.current[G].label.toLowerCase().startsWith(D)) {
|
|
1560
1560
|
ne(j.current[G], G), q = !0;
|
|
1561
1561
|
break;
|
|
1562
1562
|
}
|
|
1563
1563
|
if (q === !1) {
|
|
1564
|
-
for (let G = 0; G <
|
|
1564
|
+
for (let G = 0; G < X; G++)
|
|
1565
1565
|
if (se.current[G].label.toLowerCase().startsWith(D)) {
|
|
1566
1566
|
ne(j.current[G], G);
|
|
1567
1567
|
break;
|
|
@@ -1570,14 +1570,14 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1570
1570
|
}, $e = (D) => {
|
|
1571
1571
|
const q = j.current.indexOf(D), G = se.current[q];
|
|
1572
1572
|
if (G.callback && !G.disabled && G.callback(G), G.linkContent && !G.disabled) {
|
|
1573
|
-
const re =
|
|
1573
|
+
const re = F.current.querySelector(`#${D} a`);
|
|
1574
1574
|
re && re.click();
|
|
1575
1575
|
}
|
|
1576
1576
|
}, ee = () => {
|
|
1577
|
-
const D = j.current[
|
|
1577
|
+
const D = j.current[X];
|
|
1578
1578
|
$e(D);
|
|
1579
1579
|
}, ie = (D) => {
|
|
1580
|
-
|
|
1580
|
+
K ? ue() : me(), o && o(), Y((q) => !q), D.stopPropagation(), D.preventDefault();
|
|
1581
1581
|
}, Me = (D) => {
|
|
1582
1582
|
$e(D.currentTarget.id), I || ue();
|
|
1583
1583
|
}, De = (D) => {
|
|
@@ -1623,11 +1623,11 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1623
1623
|
break;
|
|
1624
1624
|
case "Up":
|
|
1625
1625
|
case "ArrowUp":
|
|
1626
|
-
le =
|
|
1626
|
+
le = X - 1, le < 0 && (le = j.current.length - 1), re = j.current[le], ne(re, le), G = !0;
|
|
1627
1627
|
break;
|
|
1628
1628
|
case "ArrowDown":
|
|
1629
1629
|
case "Down":
|
|
1630
|
-
le =
|
|
1630
|
+
le = X + 1, le > j.current.length - 1 && (le = 0), re = j.current[le], ne(re, le), G = !0;
|
|
1631
1631
|
break;
|
|
1632
1632
|
case "Home":
|
|
1633
1633
|
case "PageUp":
|
|
@@ -1649,7 +1649,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1649
1649
|
G && (D.stopPropagation(), D.preventDefault());
|
|
1650
1650
|
}
|
|
1651
1651
|
}, Be = (D) => {
|
|
1652
|
-
|
|
1652
|
+
F.current && !F.current.contains(D.target) && K && ue();
|
|
1653
1653
|
}, Oe = (D, q, G = "", re = "", ...le) => {
|
|
1654
1654
|
const pe = G ? `-group-${G}` : "", oe = k + pe + "-item-" + (q + 1), ye = D.id ? D.id : oe;
|
|
1655
1655
|
if (kt(D))
|
|
@@ -1670,11 +1670,11 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1670
1670
|
if (xt(D) || D.label) {
|
|
1671
1671
|
j.current.push(ye), se.current.push(D);
|
|
1672
1672
|
let nt = !1;
|
|
1673
|
-
|
|
1673
|
+
W !== "" && !D.disabled && (nt = W === ye);
|
|
1674
1674
|
let Le;
|
|
1675
1675
|
if (D.label && (Le = [D.label]), xt(D) && (Le = [D.linkContent.props.children]), D.iconName) {
|
|
1676
1676
|
const at = /* @__PURE__ */ e.createElement(
|
|
1677
|
-
|
|
1677
|
+
R,
|
|
1678
1678
|
{
|
|
1679
1679
|
key: `icon-${k}`,
|
|
1680
1680
|
iconName: D.iconName,
|
|
@@ -1735,10 +1735,10 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1735
1735
|
role: "menu",
|
|
1736
1736
|
tabIndex: -1,
|
|
1737
1737
|
"aria-labelledby": k,
|
|
1738
|
-
"aria-activedescendant":
|
|
1738
|
+
"aria-activedescendant": W !== "" ? W : nt,
|
|
1739
1739
|
style: {
|
|
1740
|
-
visibility:
|
|
1741
|
-
opacity:
|
|
1740
|
+
visibility: K ? "visible" : "hidden",
|
|
1741
|
+
opacity: K ? "1" : "0",
|
|
1742
1742
|
transition: "opacity 300ms ease-in-out 0s",
|
|
1743
1743
|
position: C,
|
|
1744
1744
|
transform: `translate(${Math.round(h)}px,${Math.round(m)}px)`,
|
|
@@ -1777,10 +1777,10 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1777
1777
|
role: "menu",
|
|
1778
1778
|
tabIndex: -1,
|
|
1779
1779
|
"aria-labelledby": k,
|
|
1780
|
-
"aria-activedescendant":
|
|
1780
|
+
"aria-activedescendant": W !== "" ? W : pe,
|
|
1781
1781
|
style: {
|
|
1782
|
-
visibility:
|
|
1783
|
-
opacity:
|
|
1782
|
+
visibility: K ? "visible" : "hidden",
|
|
1783
|
+
opacity: K ? "1" : "0",
|
|
1784
1784
|
transition: "opacity 300ms ease-in-out 0s",
|
|
1785
1785
|
position: C,
|
|
1786
1786
|
transform: `translate(${Math.round(h)}px,${Math.round(m)}px)`
|
|
@@ -1808,7 +1808,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1808
1808
|
className: `${V}__trigger`,
|
|
1809
1809
|
"aria-haspopup": "true",
|
|
1810
1810
|
"aria-controls": P,
|
|
1811
|
-
"aria-expanded":
|
|
1811
|
+
"aria-expanded": K,
|
|
1812
1812
|
onClick: ie,
|
|
1813
1813
|
onKeyDown: De,
|
|
1814
1814
|
ref: g
|
|
@@ -1828,7 +1828,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1828
1828
|
className: `${V}__trigger ${V}__trigger--icon-only`,
|
|
1829
1829
|
"aria-haspopup": "true",
|
|
1830
1830
|
"aria-controls": P,
|
|
1831
|
-
"aria-expanded":
|
|
1831
|
+
"aria-expanded": K,
|
|
1832
1832
|
onClick: ie,
|
|
1833
1833
|
onKeyDown: De,
|
|
1834
1834
|
ref: g,
|
|
@@ -1858,9 +1858,9 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1858
1858
|
"aria-expanded": !1,
|
|
1859
1859
|
onClick: st
|
|
1860
1860
|
},
|
|
1861
|
-
s === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${V}__icon-label` }, /* @__PURE__ */ e.createElement(
|
|
1861
|
+
s === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${V}__icon-label` }, /* @__PURE__ */ e.createElement(R, { iconName: n }), " ", d) : d,
|
|
1862
1862
|
/* @__PURE__ */ e.createElement(
|
|
1863
|
-
|
|
1863
|
+
R,
|
|
1864
1864
|
{
|
|
1865
1865
|
iconName: "angleDown",
|
|
1866
1866
|
iconSize: "md",
|
|
@@ -1868,19 +1868,19 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1868
1868
|
}
|
|
1869
1869
|
)
|
|
1870
1870
|
));
|
|
1871
|
-
const we = Ee, Ne =
|
|
1871
|
+
const we = Ee, Ne = K ? `${V}--expanded` : null;
|
|
1872
1872
|
return /* @__PURE__ */ e.createElement(
|
|
1873
1873
|
"span",
|
|
1874
1874
|
L({
|
|
1875
1875
|
className: x([
|
|
1876
1876
|
V,
|
|
1877
|
-
T,
|
|
1878
1877
|
A,
|
|
1878
|
+
T,
|
|
1879
1879
|
Ne,
|
|
1880
1880
|
b
|
|
1881
1881
|
]),
|
|
1882
1882
|
"data-testid": f,
|
|
1883
|
-
ref:
|
|
1883
|
+
ref: F
|
|
1884
1884
|
}, y),
|
|
1885
1885
|
I ? /* @__PURE__ */ e.createElement(e.Fragment, null, we, /* @__PURE__ */ e.createElement(_e, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, Re, Qe(a))
|
|
1886
1886
|
);
|
|
@@ -1906,7 +1906,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1906
1906
|
"value",
|
|
1907
1907
|
"className"
|
|
1908
1908
|
]);
|
|
1909
|
-
const p = "pds-segmented-button", E = t ? "pds-is-disabled" : null, b = a !== "md" ? `${p}--${a}` : null, y = typeof c != "undefined", v = typeof n != "undefined", [$, h] =
|
|
1909
|
+
const p = "pds-segmented-button", E = t ? "pds-is-disabled" : null, b = a !== "md" ? `${p}--${a}` : null, y = typeof c != "undefined", v = typeof n != "undefined", [$, h] = Z(
|
|
1910
1910
|
v ? n : ""
|
|
1911
1911
|
), m = (g) => {
|
|
1912
1912
|
h(g.target.value), r && r(g.target.value);
|
|
@@ -1950,7 +1950,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
1950
1950
|
className: `${p}__tally`
|
|
1951
1951
|
}
|
|
1952
1952
|
) : g.iconName && /* @__PURE__ */ e.createElement(
|
|
1953
|
-
|
|
1953
|
+
R,
|
|
1954
1954
|
{
|
|
1955
1955
|
iconName: g.iconName,
|
|
1956
1956
|
iconSize: a,
|
|
@@ -2049,7 +2049,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2049
2049
|
"aria-disabled": s ? "true" : void 0,
|
|
2050
2050
|
onClick: s ? void 0 : a
|
|
2051
2051
|
}, t),
|
|
2052
|
-
n && /* @__PURE__ */ e.createElement(
|
|
2052
|
+
n && /* @__PURE__ */ e.createElement(R, { iconName: n }),
|
|
2053
2053
|
/* @__PURE__ */ e.createElement("span", { className: `${p}__label` }, d)
|
|
2054
2054
|
);
|
|
2055
2055
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -2102,7 +2102,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2102
2102
|
className: [o, i, r != null ? r : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
2103
2103
|
}, d),
|
|
2104
2104
|
/* @__PURE__ */ e.createElement("div", { className: `${o}__inner` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon--${n}` }, /* @__PURE__ */ e.createElement(
|
|
2105
|
-
|
|
2105
|
+
R,
|
|
2106
2106
|
{
|
|
2107
2107
|
iconName: `${n}` in Vt ? Vt[n] : Vt.info,
|
|
2108
2108
|
iconSize: "xl"
|
|
@@ -2186,7 +2186,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2186
2186
|
const u = "pds-card-select-group";
|
|
2187
2187
|
let p = `${u}__legend`;
|
|
2188
2188
|
l === "center" && (p = `${u}__legend ${u}__legend--center`), l === "hidden" && (p = `${u}__legend visually-hidden`);
|
|
2189
|
-
const [E, b] =
|
|
2189
|
+
const [E, b] = Z(s), y = (_) => {
|
|
2190
2190
|
b(_.currentTarget.value), d && d(_.currentTarget.value);
|
|
2191
2191
|
}, v = a.length, $ = "pds-grid-item", h = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", m = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
2192
2192
|
let g = "";
|
|
@@ -2221,7 +2221,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2221
2221
|
className: E === _.value ? `${u}__option-label ${u}__option-label--selected` : `${u}__option-label`
|
|
2222
2222
|
},
|
|
2223
2223
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__option-label-indicator` }, /* @__PURE__ */ e.createElement(
|
|
2224
|
-
|
|
2224
|
+
R,
|
|
2225
2225
|
{
|
|
2226
2226
|
iconName: E === _.value ? "circleCheck" : "circle",
|
|
2227
2227
|
iconSize: "xl",
|
|
@@ -2586,7 +2586,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2586
2586
|
}, y.props),
|
|
2587
2587
|
y.props.children,
|
|
2588
2588
|
y.props.target === "_blank" && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
2589
|
-
|
|
2589
|
+
R,
|
|
2590
2590
|
{
|
|
2591
2591
|
iconName: "externalLink",
|
|
2592
2592
|
iconSize: "sm",
|
|
@@ -2628,7 +2628,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2628
2628
|
className: `${i}__list-item ${i}__list-item--${f.type}`
|
|
2629
2629
|
},
|
|
2630
2630
|
/* @__PURE__ */ e.createElement("div", { className: `${i}__item-icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
2631
|
-
|
|
2631
|
+
R,
|
|
2632
2632
|
{
|
|
2633
2633
|
iconName: a2[f.type],
|
|
2634
2634
|
iconSize: "md",
|
|
@@ -2689,10 +2689,10 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2689
2689
|
const g = tt(l), _ = "pds-select", C = s ? J.disabled : null, M = u && !s ? J.required : null, z = b === "error" ? J.error : null, w = b === "success" ? J.success : null;
|
|
2690
2690
|
let H = null;
|
|
2691
2691
|
b === "error" && (H = "error"), b === "success" && (H = "success");
|
|
2692
|
-
const N = E || a, I = typeof y != "undefined", V = typeof t != "undefined",
|
|
2693
|
-
|
|
2694
|
-
),
|
|
2695
|
-
open:
|
|
2692
|
+
const N = E || a, I = typeof y != "undefined", V = typeof t != "undefined", A = ((_e) => _e.reduce((Ee, fe) => t1(fe) ? [...Ee, ...fe.options] : [...Ee, fe], []))(f), k = (_e) => A.findIndex((Ee) => Ee.value === _e), P = I && k(y) >= 0 ? k(y) : null, B = V ? k(t) : null, F = P || B, [K, Q] = Z(!1), [U, Y] = Z(null), [W, O] = Z(
|
|
2693
|
+
F != null ? F : null
|
|
2694
|
+
), X = W !== null ? (Re = A[W]) == null ? void 0 : Re.label : void 0, ae = W !== null ? (st = A[W]) == null ? void 0 : st.value : void 0, te = de([]), { context: j, refs: se } = Ve({
|
|
2695
|
+
open: K,
|
|
2696
2696
|
onOpenChange: Q,
|
|
2697
2697
|
whileElementsMounted: Pe
|
|
2698
2698
|
}), ne = Ke(j, {
|
|
@@ -2700,11 +2700,11 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2700
2700
|
event: "mousedown"
|
|
2701
2701
|
}), me = Ie(j), ue = Se(j, { role: "listbox" }), ge = lt(j, {
|
|
2702
2702
|
listRef: te,
|
|
2703
|
-
activeIndex:
|
|
2704
|
-
selectedIndex:
|
|
2703
|
+
activeIndex: U,
|
|
2704
|
+
selectedIndex: W,
|
|
2705
2705
|
onNavigate: Y,
|
|
2706
2706
|
loop: !0
|
|
2707
|
-
}), { getReferenceProps: $e, getFloatingProps: ee, getItemProps: ie } =
|
|
2707
|
+
}), { getReferenceProps: $e, getFloatingProps: ee, getItemProps: ie } = Te(
|
|
2708
2708
|
[ue, me, ge, ne]
|
|
2709
2709
|
), { isMounted: Me, styles: De } = Xe(j, {
|
|
2710
2710
|
duration: {
|
|
@@ -2721,13 +2721,13 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2721
2721
|
opacity: 0
|
|
2722
2722
|
}
|
|
2723
2723
|
}), ke = (_e) => {
|
|
2724
|
-
const Ee =
|
|
2725
|
-
I || (
|
|
2724
|
+
const Ee = A[_e];
|
|
2725
|
+
I || (O(_e), Q(!1)), i && i(Ee);
|
|
2726
2726
|
};
|
|
2727
2727
|
ce(() => {
|
|
2728
2728
|
if (I) {
|
|
2729
2729
|
const _e = k(y);
|
|
2730
|
-
|
|
2730
|
+
O(_e), Q(!1);
|
|
2731
2731
|
}
|
|
2732
2732
|
}, [y]);
|
|
2733
2733
|
const Be = () => {
|
|
@@ -2749,8 +2749,8 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2749
2749
|
ref: (q) => {
|
|
2750
2750
|
te.current[D] = q;
|
|
2751
2751
|
},
|
|
2752
|
-
tabIndex: D ===
|
|
2753
|
-
"aria-selected": D ===
|
|
2752
|
+
tabIndex: D === U ? 0 : -1,
|
|
2753
|
+
"aria-selected": D === W && D === U,
|
|
2754
2754
|
"aria-disabled": Ne == null ? void 0 : Ne.disabled
|
|
2755
2755
|
}, !(Ne != null && Ne.disabled) && ie({
|
|
2756
2756
|
onClick() {
|
|
@@ -2761,8 +2761,8 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2761
2761
|
}
|
|
2762
2762
|
})),
|
|
2763
2763
|
Ne.label,
|
|
2764
|
-
|
|
2765
|
-
|
|
2764
|
+
W === D && /* @__PURE__ */ e.createElement(
|
|
2765
|
+
R,
|
|
2766
2766
|
{
|
|
2767
2767
|
iconName: "check",
|
|
2768
2768
|
className: `${_}__checked-icon`
|
|
@@ -2780,8 +2780,8 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2780
2780
|
ref: (we) => {
|
|
2781
2781
|
te.current[ze] = we;
|
|
2782
2782
|
},
|
|
2783
|
-
tabIndex: ze ===
|
|
2784
|
-
"aria-selected": ze ===
|
|
2783
|
+
tabIndex: ze === U ? 0 : -1,
|
|
2784
|
+
"aria-selected": ze === W && ze === U,
|
|
2785
2785
|
"aria-disabled": fe == null ? void 0 : fe.disabled
|
|
2786
2786
|
}, !(fe != null && fe.disabled) && ie({
|
|
2787
2787
|
onClick() {
|
|
@@ -2792,7 +2792,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2792
2792
|
}
|
|
2793
2793
|
})),
|
|
2794
2794
|
fe.label,
|
|
2795
|
-
|
|
2795
|
+
W === ze && /* @__PURE__ */ e.createElement(R, { iconName: "check", className: `${_}__checked-icon` })
|
|
2796
2796
|
);
|
|
2797
2797
|
});
|
|
2798
2798
|
};
|
|
@@ -2835,7 +2835,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2835
2835
|
onFocus: Oe
|
|
2836
2836
|
})),
|
|
2837
2837
|
H && /* @__PURE__ */ e.createElement(ut, { variant: H }),
|
|
2838
|
-
/* @__PURE__ */ e.createElement("span", { className: `${_}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__option-text` },
|
|
2838
|
+
/* @__PURE__ */ e.createElement("span", { className: `${_}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__option-text` }, X != null ? X : d.selectOptionText), /* @__PURE__ */ e.createElement(R, { iconName: "angleDown", className: `${_}__trigger-icon` }))
|
|
2839
2839
|
),
|
|
2840
2840
|
Me && /* @__PURE__ */ e.createElement(
|
|
2841
2841
|
"div",
|
|
@@ -2850,7 +2850,7 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2850
2850
|
/* @__PURE__ */ e.createElement("div", { style: L({}, De) }, /* @__PURE__ */ e.createElement("ul", { className: `${_}__options` }, Qe(f)))
|
|
2851
2851
|
),
|
|
2852
2852
|
N && /* @__PURE__ */ e.createElement(
|
|
2853
|
-
|
|
2853
|
+
Ae,
|
|
2854
2854
|
{
|
|
2855
2855
|
id: n,
|
|
2856
2856
|
message: N,
|
|
@@ -2889,9 +2889,9 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2889
2889
|
"statusBadgeType",
|
|
2890
2890
|
"className"
|
|
2891
2891
|
]);
|
|
2892
|
-
const b = "pds-pricing-card", y = `${b}-container`, v = n ? `${y}--with-list` : null, $ = i ? `${b}--${i}` : null, h = (
|
|
2892
|
+
const b = "pds-pricing-card", y = `${b}-container`, v = n ? `${y}--with-list` : null, $ = i ? `${b}--${i}` : null, h = (T) => T.toLowerCase().replace(/\s/g, "-"), m = a && a.length > 1, [g, _] = Z(
|
|
2893
2893
|
h(a[0].label)
|
|
2894
|
-
), [C, M] =
|
|
2894
|
+
), [C, M] = Z(
|
|
2895
2895
|
t.label
|
|
2896
2896
|
);
|
|
2897
2897
|
let z = null, w = null;
|
|
@@ -2911,8 +2911,8 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2911
2911
|
listItems: a[0].listItems,
|
|
2912
2912
|
renderTypeLabels: !1
|
|
2913
2913
|
}
|
|
2914
|
-
)), m && (z = a.map((
|
|
2915
|
-
const k = g === h(
|
|
2914
|
+
)), m && (z = a.map((T) => {
|
|
2915
|
+
const k = g === h(T.label) ? null : `${b}__pricing-data--hide`;
|
|
2916
2916
|
return /* @__PURE__ */ e.createElement(
|
|
2917
2917
|
"div",
|
|
2918
2918
|
{
|
|
@@ -2920,39 +2920,39 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2920
2920
|
`${b}__pricing-data`,
|
|
2921
2921
|
k
|
|
2922
2922
|
]),
|
|
2923
|
-
id: `data-${h(
|
|
2924
|
-
key: h(
|
|
2923
|
+
id: `data-${h(T.label)}`,
|
|
2924
|
+
key: h(T.label)
|
|
2925
2925
|
},
|
|
2926
|
-
|
|
2927
|
-
/* @__PURE__ */ e.createElement("div", { className: `${b}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${b}__price` },
|
|
2928
|
-
/* @__PURE__ */ e.createElement("div", { className: `${b}__savings-line` },
|
|
2926
|
+
T.pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${b}__price-prefix` }, T.pricePrefix),
|
|
2927
|
+
/* @__PURE__ */ e.createElement("div", { className: `${b}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${b}__price` }, T.price), T.priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${b}__details` }, T.priceDetails)),
|
|
2928
|
+
/* @__PURE__ */ e.createElement("div", { className: `${b}__savings-line` }, T.savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
2929
2929
|
it,
|
|
2930
2930
|
{
|
|
2931
2931
|
className: `${b}__savings-badge`,
|
|
2932
2932
|
color: "neutral",
|
|
2933
2933
|
size: "sm",
|
|
2934
|
-
label:
|
|
2934
|
+
label: T.savingsBadgeLabel
|
|
2935
2935
|
}
|
|
2936
|
-
),
|
|
2936
|
+
), T.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${b}__savings-details` }, T.savingsDetails))
|
|
2937
2937
|
);
|
|
2938
|
-
}), w = a.map((
|
|
2939
|
-
const k = g === h(
|
|
2938
|
+
}), w = a.map((T) => {
|
|
2939
|
+
const k = g === h(T.label) ? null : `${b}__list--hide`;
|
|
2940
2940
|
return /* @__PURE__ */ e.createElement(
|
|
2941
2941
|
n1,
|
|
2942
2942
|
{
|
|
2943
2943
|
className: x([`${b}__list`, k]),
|
|
2944
|
-
listLabel:
|
|
2945
|
-
listItems:
|
|
2944
|
+
listLabel: T.listLabel,
|
|
2945
|
+
listItems: T.listItems,
|
|
2946
2946
|
renderTypeLabels: !1,
|
|
2947
|
-
key: `${h(
|
|
2947
|
+
key: `${h(T.label)}-list`
|
|
2948
2948
|
}
|
|
2949
2949
|
);
|
|
2950
2950
|
}));
|
|
2951
|
-
const H = (
|
|
2952
|
-
const
|
|
2953
|
-
(k) => h(k.label) ===
|
|
2951
|
+
const H = (T) => {
|
|
2952
|
+
const A = a.find(
|
|
2953
|
+
(k) => h(k.label) === T
|
|
2954
2954
|
);
|
|
2955
|
-
return
|
|
2955
|
+
return A.customActionLabel ? A.customActionLabel : t.label;
|
|
2956
2956
|
};
|
|
2957
2957
|
let N = null;
|
|
2958
2958
|
m && (N = /* @__PURE__ */ e.createElement(
|
|
@@ -2962,13 +2962,13 @@ const Ht = 300, X1 = 400, Fe = (u) => {
|
|
|
2962
2962
|
className: `${b}__select`,
|
|
2963
2963
|
label: o,
|
|
2964
2964
|
showLabel: !1,
|
|
2965
|
-
options: a.map((
|
|
2966
|
-
value: h(
|
|
2967
|
-
label:
|
|
2965
|
+
options: a.map((T) => ({
|
|
2966
|
+
value: h(T.label),
|
|
2967
|
+
label: T.label
|
|
2968
2968
|
})),
|
|
2969
2969
|
defaultValue: h(a[0].label),
|
|
2970
|
-
onOptionSelect: (
|
|
2971
|
-
_(
|
|
2970
|
+
onOptionSelect: (T) => {
|
|
2971
|
+
_(T.value), M(H(T.value)), l && l(T.value);
|
|
2972
2972
|
}
|
|
2973
2973
|
}
|
|
2974
2974
|
));
|
|
@@ -3697,41 +3697,41 @@ var b1 = { exports: {} };
|
|
|
3697
3697
|
for (var H = 0; H < w.length; ++H) {
|
|
3698
3698
|
if (M && M.cause == z + "," + H)
|
|
3699
3699
|
return;
|
|
3700
|
-
var N = w[H], I = N.inside, V = !!N.lookbehind,
|
|
3701
|
-
if (
|
|
3700
|
+
var N = w[H], I = N.inside, V = !!N.lookbehind, T = !!N.greedy, A = N.alias;
|
|
3701
|
+
if (T && !N.pattern.global) {
|
|
3702
3702
|
var k = N.pattern.toString().match(/[imsuy]*$/)[0];
|
|
3703
3703
|
N.pattern = RegExp(N.pattern.source, k + "g");
|
|
3704
3704
|
}
|
|
3705
|
-
for (var P = N.pattern || N,
|
|
3706
|
-
var
|
|
3705
|
+
for (var P = N.pattern || N, B = _.next, F = C; B !== m.tail && !(M && F >= M.reach); F += B.value.length, B = B.next) {
|
|
3706
|
+
var K = B.value;
|
|
3707
3707
|
if (m.length > h.length)
|
|
3708
3708
|
return;
|
|
3709
|
-
if (!(
|
|
3710
|
-
var Q = 1,
|
|
3711
|
-
if (
|
|
3712
|
-
if (
|
|
3709
|
+
if (!(K instanceof o)) {
|
|
3710
|
+
var Q = 1, U;
|
|
3711
|
+
if (T) {
|
|
3712
|
+
if (U = i(P, F, h, V), !U || U.index >= h.length)
|
|
3713
3713
|
break;
|
|
3714
|
-
var
|
|
3715
|
-
for (
|
|
3716
|
-
|
|
3717
|
-
if (
|
|
3714
|
+
var X = U.index, Y = U.index + U[0].length, W = F;
|
|
3715
|
+
for (W += B.value.length; X >= W; )
|
|
3716
|
+
B = B.next, W += B.value.length;
|
|
3717
|
+
if (W -= B.value.length, F = W, B.value instanceof o)
|
|
3718
3718
|
continue;
|
|
3719
|
-
for (var
|
|
3720
|
-
Q++,
|
|
3721
|
-
Q--,
|
|
3722
|
-
} else if (
|
|
3719
|
+
for (var O = B; O !== m.tail && (W < Y || typeof O.value == "string"); O = O.next)
|
|
3720
|
+
Q++, W += O.value.length;
|
|
3721
|
+
Q--, K = h.slice(F, W), U.index -= F;
|
|
3722
|
+
} else if (U = i(P, 0, K, V), !U)
|
|
3723
3723
|
continue;
|
|
3724
|
-
var
|
|
3724
|
+
var X = U.index, ae = U[0], te = K.slice(0, X), j = K.slice(X + ae.length), se = F + K.length;
|
|
3725
3725
|
M && se > M.reach && (M.reach = se);
|
|
3726
|
-
var ne =
|
|
3727
|
-
te && (ne = p(m, ne, te),
|
|
3728
|
-
var me = new o(z, I ? c.tokenize(ae, I) : ae,
|
|
3729
|
-
if (
|
|
3726
|
+
var ne = B.prev;
|
|
3727
|
+
te && (ne = p(m, ne, te), F += te.length), E(m, ne, Q);
|
|
3728
|
+
var me = new o(z, I ? c.tokenize(ae, I) : ae, A, ae);
|
|
3729
|
+
if (B = p(m, ne, me), j && p(m, B, j), Q > 1) {
|
|
3730
3730
|
var ue = {
|
|
3731
3731
|
cause: z + "," + H,
|
|
3732
3732
|
reach: se
|
|
3733
3733
|
};
|
|
3734
|
-
f(h, m, g,
|
|
3734
|
+
f(h, m, g, B.prev, F, ue), M && ue.reach > M.reach && (M.reach = ue.reach);
|
|
3735
3735
|
}
|
|
3736
3736
|
}
|
|
3737
3737
|
}
|
|
@@ -4270,7 +4270,7 @@ const os = (u) => {
|
|
|
4270
4270
|
}, l),
|
|
4271
4271
|
t,
|
|
4272
4272
|
/* @__PURE__ */ e.createElement(
|
|
4273
|
-
|
|
4273
|
+
R,
|
|
4274
4274
|
{
|
|
4275
4275
|
iconName: "arrowRight",
|
|
4276
4276
|
iconSize: s === "sm" ? "md" : "lg",
|
|
@@ -4340,7 +4340,7 @@ const os = (u) => {
|
|
|
4340
4340
|
notReady: "thumbsDown"
|
|
4341
4341
|
};
|
|
4342
4342
|
return /* @__PURE__ */ e.createElement("div", L({ className: x([c, l != null ? l : ""]) }, r), /* @__PURE__ */ e.createElement("div", { className: `${c}__title` }, t), /* @__PURE__ */ e.createElement("div", { className: `${c}__stat-wrapper` }, s && /* @__PURE__ */ e.createElement(
|
|
4343
|
-
|
|
4343
|
+
R,
|
|
4344
4344
|
{
|
|
4345
4345
|
iconName: o[s],
|
|
4346
4346
|
className: `${c}__stat-status ${c}__stat-status--${s}`
|
|
@@ -4544,40 +4544,40 @@ const os = (u) => {
|
|
|
4544
4544
|
"value",
|
|
4545
4545
|
"className"
|
|
4546
4546
|
]);
|
|
4547
|
-
const w = a ? { width: `${a / 16}rem` } : null, H = "pds-checkbox", N = n ? J.disabled : null, I = h === "error" ? J.error : null, V = f > 0 ? `${H}--indent-${f}` : null,
|
|
4548
|
-
|
|
4549
|
-
),
|
|
4550
|
-
|
|
4551
|
-
},
|
|
4547
|
+
const w = a ? { width: `${a / 16}rem` } : null, H = "pds-checkbox", N = n ? J.disabled : null, I = h === "error" ? J.error : null, V = f > 0 ? `${H}--indent-${f}` : null, T = b && !n ? J.required : null, A = v === "S" ? `${H}--sm` : null, k = h === "success" ? J.success : null, P = $ || o, B = typeof t != "undefined", F = typeof s != "undefined", [K, Q] = Z(
|
|
4548
|
+
F ? s : !1
|
|
4549
|
+
), U = t || K, Y = (te) => {
|
|
4550
|
+
B || Q(te.target.checked), p && p(te);
|
|
4551
|
+
}, W = `${H}__box`, O = r ? null : U ? `${W}--checked` : null, X = r ? `${W}--indeterminate` : null, ae = S1(() => {
|
|
4552
4552
|
if (r)
|
|
4553
4553
|
return /* @__PURE__ */ e.createElement(
|
|
4554
|
-
|
|
4554
|
+
R,
|
|
4555
4555
|
{
|
|
4556
4556
|
iconName: "minus",
|
|
4557
4557
|
iconSize: "sm",
|
|
4558
4558
|
className: `${H}__icon ${H}__icon--indeterminate`
|
|
4559
4559
|
}
|
|
4560
4560
|
);
|
|
4561
|
-
if (
|
|
4561
|
+
if (U)
|
|
4562
4562
|
return /* @__PURE__ */ e.createElement(
|
|
4563
|
-
|
|
4563
|
+
R,
|
|
4564
4564
|
{
|
|
4565
4565
|
iconName: "check",
|
|
4566
4566
|
iconSize: "sm",
|
|
4567
4567
|
className: `${H}__icon ${H}__icon--checked`
|
|
4568
4568
|
}
|
|
4569
4569
|
);
|
|
4570
|
-
}, [r,
|
|
4570
|
+
}, [r, U]);
|
|
4571
4571
|
return /* @__PURE__ */ e.createElement(
|
|
4572
4572
|
"div",
|
|
4573
4573
|
L({
|
|
4574
4574
|
className: [
|
|
4575
4575
|
H,
|
|
4576
4576
|
N,
|
|
4577
|
-
|
|
4577
|
+
T,
|
|
4578
4578
|
I,
|
|
4579
4579
|
k,
|
|
4580
|
-
|
|
4580
|
+
A,
|
|
4581
4581
|
V,
|
|
4582
4582
|
g != null ? g : ""
|
|
4583
4583
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
@@ -4590,8 +4590,8 @@ const os = (u) => {
|
|
|
4590
4590
|
id: l,
|
|
4591
4591
|
name: i,
|
|
4592
4592
|
type: "checkbox",
|
|
4593
|
-
checked:
|
|
4594
|
-
"aria-checked": r ? "mixed" :
|
|
4593
|
+
checked: B ? t : K,
|
|
4594
|
+
"aria-checked": r ? "mixed" : U ? "true" : "false"
|
|
4595
4595
|
}, m ? { value: m } : {}), {
|
|
4596
4596
|
disabled: n,
|
|
4597
4597
|
required: b,
|
|
@@ -4605,9 +4605,9 @@ const os = (u) => {
|
|
|
4605
4605
|
"div",
|
|
4606
4606
|
{
|
|
4607
4607
|
className: x([
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4608
|
+
W,
|
|
4609
|
+
O,
|
|
4610
|
+
X
|
|
4611
4611
|
])
|
|
4612
4612
|
},
|
|
4613
4613
|
/* @__PURE__ */ e.createElement(ae, null)
|
|
@@ -4624,7 +4624,7 @@ const os = (u) => {
|
|
|
4624
4624
|
b && !n && /* @__PURE__ */ e.createElement(ft, null)
|
|
4625
4625
|
))),
|
|
4626
4626
|
P && /* @__PURE__ */ e.createElement(
|
|
4627
|
-
|
|
4627
|
+
Ae,
|
|
4628
4628
|
{
|
|
4629
4629
|
id: l,
|
|
4630
4630
|
message: P,
|
|
@@ -4689,7 +4689,7 @@ const os = (u) => {
|
|
|
4689
4689
|
}
|
|
4690
4690
|
), /* @__PURE__ */ e.createElement("div", { className: `${v}__options` }, t)),
|
|
4691
4691
|
_ && /* @__PURE__ */ e.createElement(
|
|
4692
|
-
|
|
4692
|
+
Ae,
|
|
4693
4693
|
{
|
|
4694
4694
|
id: l,
|
|
4695
4695
|
message: _,
|
|
@@ -4739,9 +4739,9 @@ const os = (u) => {
|
|
|
4739
4739
|
o.map((V) => {
|
|
4740
4740
|
V.checked === !0 && z.push(V.value);
|
|
4741
4741
|
});
|
|
4742
|
-
const [w, H] =
|
|
4743
|
-
const { value:
|
|
4744
|
-
H(
|
|
4742
|
+
const [w, H] = Z(z), N = (V) => {
|
|
4743
|
+
const { value: T } = V.target, A = w.includes(T) ? w.filter((k) => k !== T) : [...w, T];
|
|
4744
|
+
H(A), c && c(A);
|
|
4745
4745
|
};
|
|
4746
4746
|
o.map((V) => {
|
|
4747
4747
|
w.includes(V.value) ? V.checked = !0 : V.checked = !1;
|
|
@@ -4790,7 +4790,7 @@ const os = (u) => {
|
|
|
4790
4790
|
}
|
|
4791
4791
|
)))),
|
|
4792
4792
|
M && /* @__PURE__ */ e.createElement(
|
|
4793
|
-
|
|
4793
|
+
Ae,
|
|
4794
4794
|
{
|
|
4795
4795
|
id: n,
|
|
4796
4796
|
message: M,
|
|
@@ -4802,7 +4802,7 @@ const os = (u) => {
|
|
|
4802
4802
|
);
|
|
4803
4803
|
}, f2 = Ze(
|
|
4804
4804
|
(V, I) => {
|
|
4805
|
-
var
|
|
4805
|
+
var T = V, {
|
|
4806
4806
|
defaultValue: t,
|
|
4807
4807
|
disabled: s = !1,
|
|
4808
4808
|
hasClearButton: n = !0,
|
|
@@ -4835,7 +4835,7 @@ const os = (u) => {
|
|
|
4835
4835
|
validationMessage: z,
|
|
4836
4836
|
validationStatus: w,
|
|
4837
4837
|
className: H
|
|
4838
|
-
} =
|
|
4838
|
+
} = T, N = S(T, [
|
|
4839
4839
|
"defaultValue",
|
|
4840
4840
|
"disabled",
|
|
4841
4841
|
"hasClearButton",
|
|
@@ -4864,16 +4864,16 @@ const os = (u) => {
|
|
|
4864
4864
|
"validationStatus",
|
|
4865
4865
|
"className"
|
|
4866
4866
|
]);
|
|
4867
|
-
const
|
|
4867
|
+
const A = tt(c), k = "pds-combobox", P = s ? J.disabled : null, B = _ && !s ? J.required : null, F = w === "error" ? J.error : null, K = w === "success" ? J.success : null;
|
|
4868
4868
|
let Q = null;
|
|
4869
4869
|
r && (Q = "search"), w === "error" && (Q = "error"), w === "success" && (Q = "success");
|
|
4870
|
-
const
|
|
4870
|
+
const U = z || p, Y = typeof M != "undefined", W = typeof t != "undefined", O = (q) => {
|
|
4871
4871
|
const G = m.find((re) => re.value === q);
|
|
4872
4872
|
return G ? G.label : "";
|
|
4873
|
-
}, [
|
|
4874
|
-
|
|
4875
|
-
), [me, ue] =
|
|
4876
|
-
open:
|
|
4873
|
+
}, [X, ae] = Z(!1), [te, j] = Z(null), [se, ne] = Z(
|
|
4874
|
+
W ? O(t) : ""
|
|
4875
|
+
), [me, ue] = Z([]), ge = Y ? M : se, $e = de([]), { context: ee, refs: ie } = Ve({
|
|
4876
|
+
open: X,
|
|
4877
4877
|
onOpenChange: ae,
|
|
4878
4878
|
whileElementsMounted: Pe
|
|
4879
4879
|
}), Me = Se(ee, { role: "listbox" }), De = Ie(ee), ke = lt(ee, {
|
|
@@ -4883,7 +4883,7 @@ const os = (u) => {
|
|
|
4883
4883
|
virtual: !0,
|
|
4884
4884
|
loop: !0,
|
|
4885
4885
|
allowEscape: !0
|
|
4886
|
-
}), { getReferenceProps: Be, getFloatingProps: Oe, getItemProps: Ye } =
|
|
4886
|
+
}), { getReferenceProps: Be, getFloatingProps: Oe, getItemProps: Ye } = Te([Me, De, ke]), { isMounted: Qe, styles: Re } = Xe(ee, {
|
|
4887
4887
|
duration: {
|
|
4888
4888
|
open: 300,
|
|
4889
4889
|
close: 150
|
|
@@ -4898,7 +4898,7 @@ const os = (u) => {
|
|
|
4898
4898
|
opacity: 0
|
|
4899
4899
|
}
|
|
4900
4900
|
}), st = () => {
|
|
4901
|
-
ae(!
|
|
4901
|
+
ae(!X);
|
|
4902
4902
|
}, _e = () => {
|
|
4903
4903
|
var q;
|
|
4904
4904
|
!Y && ne(""), j(null), ae(!0), (q = ie.domReference.current) == null || q.focus(), v && v();
|
|
@@ -4962,12 +4962,12 @@ const os = (u) => {
|
|
|
4962
4962
|
J.base,
|
|
4963
4963
|
k,
|
|
4964
4964
|
P,
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4965
|
+
B,
|
|
4966
|
+
F,
|
|
4967
|
+
K,
|
|
4968
4968
|
H != null ? H : ""
|
|
4969
4969
|
]),
|
|
4970
|
-
style: c ?
|
|
4970
|
+
style: c ? A : null
|
|
4971
4971
|
}, N),
|
|
4972
4972
|
/* @__PURE__ */ e.createElement(
|
|
4973
4973
|
je,
|
|
@@ -4988,7 +4988,7 @@ const os = (u) => {
|
|
|
4988
4988
|
"aria-disabled": s ? !0 : null,
|
|
4989
4989
|
"aria-required": _ ? !0 : null,
|
|
4990
4990
|
"aria-invalid": w === "error" ? !0 : null,
|
|
4991
|
-
"aria-describedby":
|
|
4991
|
+
"aria-describedby": U ? `${a}__message` : null
|
|
4992
4992
|
},
|
|
4993
4993
|
Q && /* @__PURE__ */ e.createElement(ut, { variant: Q }),
|
|
4994
4994
|
/* @__PURE__ */ e.createElement(
|
|
@@ -5035,13 +5035,13 @@ const os = (u) => {
|
|
|
5035
5035
|
onClick: st,
|
|
5036
5036
|
disabled: s,
|
|
5037
5037
|
type: "button",
|
|
5038
|
-
"aria-expanded":
|
|
5038
|
+
"aria-expanded": X,
|
|
5039
5039
|
"aria-label": f.triggerButton
|
|
5040
5040
|
})), {
|
|
5041
5041
|
className: `${k}__trigger`
|
|
5042
5042
|
}),
|
|
5043
5043
|
/* @__PURE__ */ e.createElement(
|
|
5044
|
-
|
|
5044
|
+
R,
|
|
5045
5045
|
{
|
|
5046
5046
|
iconName: "angleDown",
|
|
5047
5047
|
className: `${k}__trigger-icon`
|
|
@@ -5061,11 +5061,11 @@ const os = (u) => {
|
|
|
5061
5061
|
})),
|
|
5062
5062
|
/* @__PURE__ */ e.createElement("div", { style: L({}, Re) }, o ? /* @__PURE__ */ e.createElement("div", { className: `${k}__loading` }, u) : me.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${k}__options` }, D) : /* @__PURE__ */ e.createElement("div", { className: `${k}__no-results` }, E))
|
|
5063
5063
|
),
|
|
5064
|
-
|
|
5065
|
-
|
|
5064
|
+
U && /* @__PURE__ */ e.createElement(
|
|
5065
|
+
Ae,
|
|
5066
5066
|
{
|
|
5067
5067
|
id: a,
|
|
5068
|
-
message:
|
|
5068
|
+
message: U,
|
|
5069
5069
|
hasValidationMessage: !!z,
|
|
5070
5070
|
validationMessageHasDecorators: !1,
|
|
5071
5071
|
validationStatus: w
|
|
@@ -5117,28 +5117,39 @@ const os = (u) => {
|
|
|
5117
5117
|
"validationStatus",
|
|
5118
5118
|
"className"
|
|
5119
5119
|
]);
|
|
5120
|
-
const [C, M] =
|
|
5121
|
-
let
|
|
5122
|
-
v === "error" && (
|
|
5123
|
-
const
|
|
5120
|
+
const [C, M] = Z(!1), z = tt(a), w = "pds-file-upload", H = n ? J.disabled : null, N = p && !n ? J.required : null, I = v === "error" ? J.error : null, V = v === "success" ? J.success : null;
|
|
5121
|
+
let T = null;
|
|
5122
|
+
v === "error" && (T = "error"), v === "success" && (T = "success");
|
|
5123
|
+
const A = y || o;
|
|
5124
5124
|
ce(() => {
|
|
5125
|
-
const
|
|
5126
|
-
|
|
5127
|
-
const
|
|
5128
|
-
if (
|
|
5129
|
-
const
|
|
5125
|
+
const F = s ? [s] : null, K = s ? s.split("/").pop() : null, Q = E ? s : K, U = s ? new File(F, Q) : null, Y = new DataTransfer();
|
|
5126
|
+
U && Y.items.add(U);
|
|
5127
|
+
const W = Y.files;
|
|
5128
|
+
if (W.length > 0) {
|
|
5129
|
+
const O = document.getElementById(
|
|
5130
5130
|
`${r}--input`
|
|
5131
5131
|
);
|
|
5132
|
-
|
|
5132
|
+
O.files = W, M(!0);
|
|
5133
5133
|
}
|
|
5134
5134
|
}, [s, E]);
|
|
5135
|
-
const k = (
|
|
5136
|
-
|
|
5135
|
+
const k = (F) => {
|
|
5136
|
+
if (F.target.files.length === 0) {
|
|
5137
|
+
s ? P() : M(!1);
|
|
5138
|
+
return;
|
|
5139
|
+
}
|
|
5140
|
+
u && u(F.target.files), M(!0);
|
|
5137
5141
|
}, P = () => {
|
|
5138
|
-
const
|
|
5142
|
+
const F = document.getElementById(
|
|
5143
|
+
`${r}--input`
|
|
5144
|
+
);
|
|
5145
|
+
if (!F || !s) return;
|
|
5146
|
+
const K = s.split("/").pop() || "default-file", Q = new File([""], K), U = new DataTransfer();
|
|
5147
|
+
U.items.add(Q), F.files = U.files, M(!0);
|
|
5148
|
+
}, B = () => {
|
|
5149
|
+
const F = document.getElementById(
|
|
5139
5150
|
`${r}--input`
|
|
5140
5151
|
);
|
|
5141
|
-
|
|
5152
|
+
F.value = "", M(!1), f && f(), F.focus();
|
|
5142
5153
|
};
|
|
5143
5154
|
return /* @__PURE__ */ e.createElement(
|
|
5144
5155
|
"div",
|
|
@@ -5165,13 +5176,13 @@ const os = (u) => {
|
|
|
5165
5176
|
disabled: n
|
|
5166
5177
|
}
|
|
5167
5178
|
),
|
|
5168
|
-
/* @__PURE__ */ e.createElement("span", { className: `${w}__input-wrapper`, id: r },
|
|
5179
|
+
/* @__PURE__ */ e.createElement("span", { className: `${w}__input-wrapper`, id: r }, T && /* @__PURE__ */ e.createElement(ut, { variant: T }), /* @__PURE__ */ e.createElement(
|
|
5169
5180
|
"label",
|
|
5170
5181
|
{
|
|
5171
5182
|
htmlFor: `${r}--input`,
|
|
5172
5183
|
className: C ? "visually-hidden" : `${w}__input-label`
|
|
5173
5184
|
},
|
|
5174
|
-
/* @__PURE__ */ e.createElement(
|
|
5185
|
+
/* @__PURE__ */ e.createElement(R, { iconName: "paperclip", iconSize: "sm" }),
|
|
5175
5186
|
c.chooseFile
|
|
5176
5187
|
), /* @__PURE__ */ e.createElement(
|
|
5177
5188
|
"input",
|
|
@@ -5186,21 +5197,21 @@ const os = (u) => {
|
|
|
5186
5197
|
required: p,
|
|
5187
5198
|
onChange: k,
|
|
5188
5199
|
"aria-invalid": v === "error" ? !0 : null,
|
|
5189
|
-
"aria-describedby":
|
|
5200
|
+
"aria-describedby": A ? `${r}__message` : null
|
|
5190
5201
|
}, d)
|
|
5191
5202
|
), C && /* @__PURE__ */ e.createElement(
|
|
5192
5203
|
Ut,
|
|
5193
5204
|
{
|
|
5194
5205
|
id: r,
|
|
5195
5206
|
clearLabel: c.clearButton,
|
|
5196
|
-
handleClearInput:
|
|
5207
|
+
handleClearInput: B
|
|
5197
5208
|
}
|
|
5198
5209
|
)),
|
|
5199
|
-
|
|
5200
|
-
|
|
5210
|
+
A && /* @__PURE__ */ e.createElement(
|
|
5211
|
+
Ae,
|
|
5201
5212
|
{
|
|
5202
5213
|
id: r,
|
|
5203
|
-
message:
|
|
5214
|
+
message: A,
|
|
5204
5215
|
hasValidationMessage: !!y,
|
|
5205
5216
|
validationMessageHasDecorators: !1,
|
|
5206
5217
|
validationStatus: v
|
|
@@ -5225,7 +5236,7 @@ const os = (u) => {
|
|
|
5225
5236
|
}, n),
|
|
5226
5237
|
/* @__PURE__ */ e.createElement("div", { className: `${d}__inner` }, a),
|
|
5227
5238
|
u && /* @__PURE__ */ e.createElement(
|
|
5228
|
-
|
|
5239
|
+
Ae,
|
|
5229
5240
|
{
|
|
5230
5241
|
id: c,
|
|
5231
5242
|
message: u,
|
|
@@ -5273,11 +5284,11 @@ const os = (u) => {
|
|
|
5273
5284
|
"value",
|
|
5274
5285
|
"className"
|
|
5275
5286
|
]);
|
|
5276
|
-
const g = "pds-radio-group", _ = s ? J.disabled : null, C = u && !s ? J.required : null, M = b === "error" ? J.error : null, z = b === "success" ? J.success : null, w = typeof y != "undefined", H = typeof t != "undefined", [N, I] =
|
|
5287
|
+
const g = "pds-radio-group", _ = s ? J.disabled : null, C = u && !s ? J.required : null, M = b === "error" ? J.error : null, z = b === "success" ? J.success : null, w = typeof y != "undefined", H = typeof t != "undefined", [N, I] = Z(
|
|
5277
5288
|
H ? t : ""
|
|
5278
|
-
), V = E || a,
|
|
5289
|
+
), V = E || a, T = (k) => {
|
|
5279
5290
|
w || I(k.target.value), o && o(k), i && i(k.target.value);
|
|
5280
|
-
},
|
|
5291
|
+
}, A = (k) => {
|
|
5281
5292
|
c && c(k);
|
|
5282
5293
|
};
|
|
5283
5294
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -5318,15 +5329,15 @@ const os = (u) => {
|
|
|
5318
5329
|
value: k.value,
|
|
5319
5330
|
required: u,
|
|
5320
5331
|
disabled: s || k.disabled,
|
|
5321
|
-
onBlur:
|
|
5322
|
-
onChange:
|
|
5332
|
+
onBlur: A,
|
|
5333
|
+
onChange: T,
|
|
5323
5334
|
checked: w ? y === k.value : N === k.value
|
|
5324
5335
|
}
|
|
5325
5336
|
),
|
|
5326
5337
|
/* @__PURE__ */ e.createElement("label", { htmlFor: k.id ? k.id : `${l}-option-${P}` }, k.label)
|
|
5327
5338
|
)))),
|
|
5328
5339
|
V && /* @__PURE__ */ e.createElement(
|
|
5329
|
-
|
|
5340
|
+
Ae,
|
|
5330
5341
|
{
|
|
5331
5342
|
id: l,
|
|
5332
5343
|
message: V,
|
|
@@ -5351,7 +5362,7 @@ const os = (u) => {
|
|
|
5351
5362
|
"data-switch-input-state": "on",
|
|
5352
5363
|
"aria-hidden": "true"
|
|
5353
5364
|
},
|
|
5354
|
-
/* @__PURE__ */ e.createElement(
|
|
5365
|
+
/* @__PURE__ */ e.createElement(R, { iconName: "check", iconSize: "sm" })
|
|
5355
5366
|
), /* @__PURE__ */ e.createElement(
|
|
5356
5367
|
"span",
|
|
5357
5368
|
{
|
|
@@ -5359,7 +5370,7 @@ const os = (u) => {
|
|
|
5359
5370
|
"data-switch-input-state": "off",
|
|
5360
5371
|
"aria-hidden": "true"
|
|
5361
5372
|
},
|
|
5362
|
-
/* @__PURE__ */ e.createElement(
|
|
5373
|
+
/* @__PURE__ */ e.createElement(R, { iconName: "xmark", iconSize: "sm" })
|
|
5363
5374
|
)), bs = Ze(
|
|
5364
5375
|
(h, $) => {
|
|
5365
5376
|
var m = h, {
|
|
@@ -5397,7 +5408,7 @@ const os = (u) => {
|
|
|
5397
5408
|
"showStatusLabel",
|
|
5398
5409
|
"className"
|
|
5399
5410
|
]);
|
|
5400
|
-
const g = tt(d), _ = "pds-switch", C = n ? J.disabled : null, M = p && !n ? J.required : null, z = typeof t != "undefined", w = c == "below", H = c == "right", N = !z && s ? s : !1, [I, V] =
|
|
5411
|
+
const g = tt(d), _ = "pds-switch", C = n ? J.disabled : null, M = p && !n ? J.required : null, z = typeof t != "undefined", w = c == "below", H = c == "right", N = !z && s ? s : !1, [I, V] = Z(N), T = t || I ? u : i, A = (Q) => {
|
|
5401
5412
|
z || V(Q.target.checked), f && f(Q);
|
|
5402
5413
|
}, k = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
5403
5414
|
"input",
|
|
@@ -5408,13 +5419,13 @@ const os = (u) => {
|
|
|
5408
5419
|
type: "checkbox",
|
|
5409
5420
|
role: "switch",
|
|
5410
5421
|
className: "visually-hidden",
|
|
5411
|
-
onChange:
|
|
5422
|
+
onChange: A,
|
|
5412
5423
|
disabled: n,
|
|
5413
5424
|
required: p,
|
|
5414
5425
|
checked: t !== void 0 ? t : I,
|
|
5415
5426
|
"aria-describedby": o ? `${l}__message` : null
|
|
5416
5427
|
}, r)
|
|
5417
|
-
), !b && /* @__PURE__ */ e.createElement(_2, { toggleStatusLabel:
|
|
5428
|
+
), !b && /* @__PURE__ */ e.createElement(_2, { toggleStatusLabel: T }), /* @__PURE__ */ e.createElement("span", { className: "pds-switch__thumb", "aria-hidden": "true" })), b && /* @__PURE__ */ e.createElement(g2, { toggleStatusLabel: T, id: l })), P = /* @__PURE__ */ e.createElement(
|
|
5418
5429
|
je,
|
|
5419
5430
|
{
|
|
5420
5431
|
id: l,
|
|
@@ -5427,8 +5438,8 @@ const os = (u) => {
|
|
|
5427
5438
|
o ? "" : "pds-input-label--switch-top-message"
|
|
5428
5439
|
])
|
|
5429
5440
|
}
|
|
5430
|
-
),
|
|
5431
|
-
|
|
5441
|
+
), B = o && /* @__PURE__ */ e.createElement(
|
|
5442
|
+
Ae,
|
|
5432
5443
|
{
|
|
5433
5444
|
id: l,
|
|
5434
5445
|
message: o,
|
|
@@ -5437,8 +5448,8 @@ const os = (u) => {
|
|
|
5437
5448
|
className: "pds-input-message--switch"
|
|
5438
5449
|
}
|
|
5439
5450
|
);
|
|
5440
|
-
let
|
|
5441
|
-
return w ?
|
|
5451
|
+
let F, K;
|
|
5452
|
+
return w ? F = /* @__PURE__ */ e.createElement(e.Fragment, null, P, B, k) : H && (K = "pds-switch--placement-right", F = o ? /* @__PURE__ */ e.createElement(e.Fragment, null, P, /* @__PURE__ */ e.createElement("div", { className: "pds-switch__toggle-message-container" }, B, /* @__PURE__ */ e.createElement("div", null, k))) : /* @__PURE__ */ e.createElement(
|
|
5442
5453
|
"div",
|
|
5443
5454
|
{
|
|
5444
5455
|
className: x([
|
|
@@ -5456,12 +5467,12 @@ const os = (u) => {
|
|
|
5456
5467
|
_,
|
|
5457
5468
|
C,
|
|
5458
5469
|
M,
|
|
5459
|
-
|
|
5470
|
+
K,
|
|
5460
5471
|
y
|
|
5461
5472
|
]),
|
|
5462
5473
|
style: d ? g : null
|
|
5463
5474
|
}, v),
|
|
5464
|
-
|
|
5475
|
+
F
|
|
5465
5476
|
);
|
|
5466
5477
|
}
|
|
5467
5478
|
), Cs = Ze(
|
|
@@ -5520,12 +5531,12 @@ const os = (u) => {
|
|
|
5520
5531
|
"value",
|
|
5521
5532
|
"className"
|
|
5522
5533
|
]);
|
|
5523
|
-
const H = tt(r), N = "pds-textarea", I = d ? "pds-is-resizable" : null, V = n ? J.disabled : null,
|
|
5524
|
-
|
|
5525
|
-
), Y = g || Q,
|
|
5526
|
-
|
|
5527
|
-
},
|
|
5528
|
-
o && o(
|
|
5534
|
+
const H = tt(r), N = "pds-textarea", I = d ? "pds-is-resizable" : null, V = n ? J.disabled : null, T = E && !n ? J.required : null, A = m === "error" ? J.error : null, k = m === "success" ? J.success : null, P = p ? J.readonly : null, B = h || c, F = g != null && i !== void 0, K = typeof s != "undefined", [Q, U] = Z(
|
|
5535
|
+
K ? s : ""
|
|
5536
|
+
), Y = g || Q, W = (X) => {
|
|
5537
|
+
F || U(X.target.value), i && i(X);
|
|
5538
|
+
}, O = (X) => {
|
|
5539
|
+
o && o(X);
|
|
5529
5540
|
};
|
|
5530
5541
|
return /* @__PURE__ */ e.createElement(
|
|
5531
5542
|
"div",
|
|
@@ -5534,8 +5545,8 @@ const os = (u) => {
|
|
|
5534
5545
|
J.base,
|
|
5535
5546
|
N,
|
|
5536
5547
|
V,
|
|
5537
|
-
A,
|
|
5538
5548
|
T,
|
|
5549
|
+
A,
|
|
5539
5550
|
k,
|
|
5540
5551
|
P,
|
|
5541
5552
|
_ != null ? _ : ""
|
|
@@ -5572,20 +5583,20 @@ const os = (u) => {
|
|
|
5572
5583
|
required: E,
|
|
5573
5584
|
readOnly: p,
|
|
5574
5585
|
disabled: n,
|
|
5575
|
-
value:
|
|
5586
|
+
value: F ? g : Q,
|
|
5576
5587
|
rows: b,
|
|
5577
|
-
onChange:
|
|
5578
|
-
onBlur:
|
|
5588
|
+
onChange: W,
|
|
5589
|
+
onBlur: O,
|
|
5579
5590
|
onFocus: f,
|
|
5580
5591
|
"aria-invalid": m === "error",
|
|
5581
|
-
"aria-describedby":
|
|
5592
|
+
"aria-describedby": B ? `${l}__message` : null
|
|
5582
5593
|
}, v)
|
|
5583
5594
|
)),
|
|
5584
|
-
|
|
5585
|
-
|
|
5595
|
+
B && /* @__PURE__ */ e.createElement(
|
|
5596
|
+
Ae,
|
|
5586
5597
|
{
|
|
5587
5598
|
id: l,
|
|
5588
|
-
message:
|
|
5599
|
+
message: B,
|
|
5589
5600
|
hasValidationMessage: !!h,
|
|
5590
5601
|
validationMessageHasDecorators: !0,
|
|
5591
5602
|
validationStatus: m
|
|
@@ -5595,7 +5606,7 @@ const os = (u) => {
|
|
|
5595
5606
|
}
|
|
5596
5607
|
), C1 = Ze(
|
|
5597
5608
|
(V, I) => {
|
|
5598
|
-
var
|
|
5609
|
+
var T = V, {
|
|
5599
5610
|
autoComplete: t,
|
|
5600
5611
|
counterMaxLength: s,
|
|
5601
5612
|
defaultValue: n,
|
|
@@ -5630,7 +5641,7 @@ const os = (u) => {
|
|
|
5630
5641
|
validationStatus: z,
|
|
5631
5642
|
value: w,
|
|
5632
5643
|
className: H
|
|
5633
|
-
} =
|
|
5644
|
+
} = T, N = S(T, [
|
|
5634
5645
|
"autoComplete",
|
|
5635
5646
|
"counterMaxLength",
|
|
5636
5647
|
"defaultValue",
|
|
@@ -5659,20 +5670,20 @@ const os = (u) => {
|
|
|
5659
5670
|
"value",
|
|
5660
5671
|
"className"
|
|
5661
5672
|
]);
|
|
5662
|
-
const
|
|
5663
|
-
let
|
|
5664
|
-
C === "search" && (
|
|
5665
|
-
const Y = M || f,
|
|
5666
|
-
|
|
5667
|
-
), te = w ||
|
|
5673
|
+
const A = tt(o), k = "pds-text-input", P = l ? J.disabled : null, B = $ && !l ? J.required : null, F = z === "error" ? J.error : null, K = z === "success" ? J.success : null, Q = v ? J.readonly : null;
|
|
5674
|
+
let U = null;
|
|
5675
|
+
C === "search" && (U = "search"), C === "search" && h === "filter" && (U = "filter"), z === "error" && (U = "error"), z === "success" && (U = "success");
|
|
5676
|
+
const Y = M || f, W = typeof w != "undefined", O = typeof n != "undefined", [X, ae] = Z(
|
|
5677
|
+
O ? n : ""
|
|
5678
|
+
), te = w || X, j = (ee) => {
|
|
5668
5679
|
g && me && ue(!1), u && u(ee);
|
|
5669
5680
|
}, se = (ee) => {
|
|
5670
|
-
|
|
5681
|
+
W || ae(ee.target.value), p && p(ee);
|
|
5671
5682
|
}, ne = () => {
|
|
5672
|
-
|
|
5683
|
+
W || ae(""), E && E();
|
|
5673
5684
|
const ee = document.getElementById(a);
|
|
5674
5685
|
ee && ee.focus();
|
|
5675
|
-
}, [me, ue] =
|
|
5686
|
+
}, [me, ue] = Z(!1), ge = () => {
|
|
5676
5687
|
ue((ie) => !ie);
|
|
5677
5688
|
const ee = document.getElementById(a);
|
|
5678
5689
|
ee && ee.focus();
|
|
@@ -5685,13 +5696,13 @@ const os = (u) => {
|
|
|
5685
5696
|
J.base,
|
|
5686
5697
|
k,
|
|
5687
5698
|
P,
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5699
|
+
B,
|
|
5700
|
+
F,
|
|
5701
|
+
K,
|
|
5691
5702
|
Q,
|
|
5692
5703
|
H != null ? H : ""
|
|
5693
5704
|
]),
|
|
5694
|
-
style: o ?
|
|
5705
|
+
style: o ? A : null
|
|
5695
5706
|
}, N),
|
|
5696
5707
|
/* @__PURE__ */ e.createElement(
|
|
5697
5708
|
je,
|
|
@@ -5704,7 +5715,7 @@ const os = (u) => {
|
|
|
5704
5715
|
}
|
|
5705
5716
|
),
|
|
5706
5717
|
g && C === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${_.visibilityStatus} ${me ? "visible" : "hidden"}.`),
|
|
5707
|
-
/* @__PURE__ */ e.createElement("div", { className: `${k}__input-wrapper` },
|
|
5718
|
+
/* @__PURE__ */ e.createElement("div", { className: `${k}__input-wrapper` }, U && /* @__PURE__ */ e.createElement(ut, { variant: U }), /* @__PURE__ */ e.createElement(
|
|
5708
5719
|
"input",
|
|
5709
5720
|
L({
|
|
5710
5721
|
ref: I,
|
|
@@ -5712,7 +5723,7 @@ const os = (u) => {
|
|
|
5712
5723
|
id: a,
|
|
5713
5724
|
name: a,
|
|
5714
5725
|
type: $e,
|
|
5715
|
-
value:
|
|
5726
|
+
value: W ? w : X,
|
|
5716
5727
|
placeholder: y,
|
|
5717
5728
|
readOnly: v,
|
|
5718
5729
|
disabled: l,
|
|
@@ -5741,7 +5752,7 @@ const os = (u) => {
|
|
|
5741
5752
|
onClick: ge,
|
|
5742
5753
|
onMouseDown: (ee) => ee.preventDefault()
|
|
5743
5754
|
},
|
|
5744
|
-
/* @__PURE__ */ e.createElement(
|
|
5755
|
+
/* @__PURE__ */ e.createElement(R, { iconName: me ? "eyeSlash" : "eye", iconSize: "md" })
|
|
5745
5756
|
), d && C === "search" && !te && /* @__PURE__ */ e.createElement(
|
|
5746
5757
|
g1,
|
|
5747
5758
|
{
|
|
@@ -5758,7 +5769,7 @@ const os = (u) => {
|
|
|
5758
5769
|
}
|
|
5759
5770
|
)),
|
|
5760
5771
|
Y && /* @__PURE__ */ e.createElement(
|
|
5761
|
-
|
|
5772
|
+
Ae,
|
|
5762
5773
|
{
|
|
5763
5774
|
id: a,
|
|
5764
5775
|
message: Y,
|
|
@@ -5794,7 +5805,7 @@ const os = (u) => {
|
|
|
5794
5805
|
}, d),
|
|
5795
5806
|
t,
|
|
5796
5807
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `(${n})`),
|
|
5797
|
-
/* @__PURE__ */ e.createElement(
|
|
5808
|
+
/* @__PURE__ */ e.createElement(R, { iconName: "externalLink", className: `${o}__icon` })
|
|
5798
5809
|
);
|
|
5799
5810
|
}, ws = (i) => {
|
|
5800
5811
|
var f = i, {
|
|
@@ -5817,7 +5828,7 @@ const os = (u) => {
|
|
|
5817
5828
|
"title",
|
|
5818
5829
|
"className"
|
|
5819
5830
|
]);
|
|
5820
|
-
const u = "pds-modal", p = d !== "md" ? `${u}--${d}` : null, [E, b] =
|
|
5831
|
+
const u = "pds-modal", p = d !== "md" ? `${u}--${d}` : null, [E, b] = Z(l);
|
|
5821
5832
|
ce(() => {
|
|
5822
5833
|
b(l);
|
|
5823
5834
|
}, [l]), ce(() => {
|
|
@@ -5828,7 +5839,7 @@ const os = (u) => {
|
|
|
5828
5839
|
onOpenChange: b
|
|
5829
5840
|
}), h = Ke(v), m = Ie(v, {
|
|
5830
5841
|
outsidePressEvent: "mousedown"
|
|
5831
|
-
}), g = Se(v), { getFloatingProps: _ } =
|
|
5842
|
+
}), g = Se(v), { getFloatingProps: _ } = Te([h, m, g]), { isMounted: C, styles: M } = Xe(v, {
|
|
5832
5843
|
duration: {
|
|
5833
5844
|
open: 300,
|
|
5834
5845
|
close: 300
|
|
@@ -5877,7 +5888,7 @@ const os = (u) => {
|
|
|
5877
5888
|
type: "button"
|
|
5878
5889
|
},
|
|
5879
5890
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, "Close"),
|
|
5880
|
-
/* @__PURE__ */ e.createElement(
|
|
5891
|
+
/* @__PURE__ */ e.createElement(R, { iconName: "xmark", iconSize: "xl" })
|
|
5881
5892
|
),
|
|
5882
5893
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__title` }, a),
|
|
5883
5894
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__content` }, s)
|
|
@@ -5955,7 +5966,7 @@ const os = (u) => {
|
|
|
5955
5966
|
let r = null;
|
|
5956
5967
|
if (typeof s == "string") {
|
|
5957
5968
|
const d = l ? [
|
|
5958
|
-
/* @__PURE__ */ e.createElement("span", { key: s, className: `${t}__item-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${t}__link-icon` }, /* @__PURE__ */ e.createElement(
|
|
5969
|
+
/* @__PURE__ */ e.createElement("span", { key: s, className: `${t}__item-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${t}__link-icon` }, /* @__PURE__ */ e.createElement(R, { iconName: l, iconSize: "md" })), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, s))
|
|
5959
5970
|
] : [
|
|
5960
5971
|
/* @__PURE__ */ e.createElement("span", { key: s, className: `${t}__item-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, s))
|
|
5961
5972
|
];
|
|
@@ -5967,7 +5978,7 @@ const os = (u) => {
|
|
|
5967
5978
|
}
|
|
5968
5979
|
return typeof s == "object" && (l ? r = xe(s, he(L({}, s.props), {
|
|
5969
5980
|
children: [
|
|
5970
|
-
/* @__PURE__ */ e.createElement("span", { key: l, className: `${t}__item-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${t}__link-icon` }, /* @__PURE__ */ e.createElement(
|
|
5981
|
+
/* @__PURE__ */ e.createElement("span", { key: l, className: `${t}__item-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${t}__link-icon` }, /* @__PURE__ */ e.createElement(R, { iconName: l, iconSize: "md" })), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, s.props.children))
|
|
5971
5982
|
]
|
|
5972
5983
|
})) : r = s), r;
|
|
5973
5984
|
}, E2 = (r) => {
|
|
@@ -6015,7 +6026,7 @@ const os = (u) => {
|
|
|
6015
6026
|
"setIsSidebarExpanded",
|
|
6016
6027
|
"className"
|
|
6017
6028
|
]);
|
|
6018
|
-
const { breakpoint: b, isMobile: y } = Ce(He), [v, $] =
|
|
6029
|
+
const { breakpoint: b, isMobile: y } = Ce(He), [v, $] = Z(
|
|
6019
6030
|
b === "xl" || o
|
|
6020
6031
|
), h = de(), [m] = yt(h), g = m.width;
|
|
6021
6032
|
ce(() => {
|
|
@@ -6036,7 +6047,7 @@ const os = (u) => {
|
|
|
6036
6047
|
transition: "width 200ms ease-in-out"
|
|
6037
6048
|
}, V = () => {
|
|
6038
6049
|
$(!v);
|
|
6039
|
-
},
|
|
6050
|
+
}, T = qe(t), A = T.header, k = T.sidebar, P = T.main, B = T.footer, F = /* @__PURE__ */ e.createElement("aside", { className: `${C}__sidebar` }, k), K = /* @__PURE__ */ e.createElement("aside", { className: `${C}__sidebar`, style: N }, s && /* @__PURE__ */ e.createElement(
|
|
6040
6051
|
"button",
|
|
6041
6052
|
{
|
|
6042
6053
|
className: `${C}__sidebar-toggle-button`,
|
|
@@ -6044,7 +6055,7 @@ const os = (u) => {
|
|
|
6044
6055
|
"aria-expanded": v,
|
|
6045
6056
|
"aria-label": a
|
|
6046
6057
|
},
|
|
6047
|
-
/* @__PURE__ */ e.createElement("span", { className: `${C}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(
|
|
6058
|
+
/* @__PURE__ */ e.createElement("span", { className: `${C}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(R, { iconName: "angleLeft", iconSize: "sm" }))
|
|
6048
6059
|
), /* @__PURE__ */ e.createElement("div", { className: `${C}__sidebar-inner` }, k));
|
|
6049
6060
|
return /* @__PURE__ */ e.createElement(Mt.Provider, { value: _ }, /* @__PURE__ */ e.createElement(E2, { text: c, destination: "main" }), /* @__PURE__ */ e.createElement(
|
|
6050
6061
|
"div",
|
|
@@ -6058,8 +6069,8 @@ const os = (u) => {
|
|
|
6058
6069
|
f != null ? f : ""
|
|
6059
6070
|
])
|
|
6060
6071
|
}, u),
|
|
6061
|
-
y &&
|
|
6062
|
-
y ?
|
|
6072
|
+
y && A,
|
|
6073
|
+
y ? F : K,
|
|
6063
6074
|
/* @__PURE__ */ e.createElement(
|
|
6064
6075
|
"div",
|
|
6065
6076
|
{
|
|
@@ -6067,8 +6078,8 @@ const os = (u) => {
|
|
|
6067
6078
|
className: `${C}__container`,
|
|
6068
6079
|
style: I
|
|
6069
6080
|
},
|
|
6070
|
-
!y && /* @__PURE__ */ e.createElement("div", { className: `${C}__header` },
|
|
6071
|
-
/* @__PURE__ */ e.createElement("main", { id: "main", className: `${C}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${C}__main-inner` }, P),
|
|
6081
|
+
!y && /* @__PURE__ */ e.createElement("div", { className: `${C}__header` }, A),
|
|
6082
|
+
/* @__PURE__ */ e.createElement("main", { id: "main", className: `${C}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${C}__main-inner` }, P), B && /* @__PURE__ */ e.createElement("footer", { className: `${C}__footer` }, B))
|
|
6072
6083
|
)
|
|
6073
6084
|
));
|
|
6074
6085
|
}, v2 = ({
|
|
@@ -6100,7 +6111,7 @@ const os = (u) => {
|
|
|
6100
6111
|
},
|
|
6101
6112
|
w.linkContent
|
|
6102
6113
|
))
|
|
6103
|
-
), [u, p] =
|
|
6114
|
+
), [u, p] = Z(!1), { refs: E, floatingStyles: b, context: y } = Ve({
|
|
6104
6115
|
placement: "right-start",
|
|
6105
6116
|
open: u,
|
|
6106
6117
|
onOpenChange: p,
|
|
@@ -6109,7 +6120,7 @@ const os = (u) => {
|
|
|
6109
6120
|
}), v = gt(y, {
|
|
6110
6121
|
move: !1,
|
|
6111
6122
|
handleClose: h1()
|
|
6112
|
-
}), $ = m1(y), h = Ie(y), m = Se(y, { role: "menu" }), { getReferenceProps: g, getFloatingProps: _ } =
|
|
6123
|
+
}), $ = m1(y), h = Ie(y), m = Se(y, { role: "menu" }), { getReferenceProps: g, getFloatingProps: _ } = Te([
|
|
6113
6124
|
v,
|
|
6114
6125
|
$,
|
|
6115
6126
|
h,
|
|
@@ -6148,7 +6159,7 @@ const os = (u) => {
|
|
|
6148
6159
|
]),
|
|
6149
6160
|
onClick: C
|
|
6150
6161
|
},
|
|
6151
|
-
/* @__PURE__ */ e.createElement(
|
|
6162
|
+
/* @__PURE__ */ e.createElement(R, { iconName: "angleDown", iconSize: "md" }),
|
|
6152
6163
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${l.toggle} ${Ue(r)} ${l.submenu}`)
|
|
6153
6164
|
)), n && f(d, "second-level"), !n && u && /* @__PURE__ */ e.createElement(
|
|
6154
6165
|
"div",
|
|
@@ -6184,53 +6195,53 @@ const os = (u) => {
|
|
|
6184
6195
|
"selectTextFallback",
|
|
6185
6196
|
"className"
|
|
6186
6197
|
]);
|
|
6187
|
-
const c = "pds-dropdown-menu", [o, i] =
|
|
6188
|
-
|
|
6198
|
+
const c = "pds-dropdown-menu", [o, i] = Z(!1), [f, u] = Z(null), p = jt(s), E = p ? p.props.children : n, b = /* @__PURE__ */ e.createElement(
|
|
6199
|
+
R,
|
|
6189
6200
|
{
|
|
6190
6201
|
iconName: "check",
|
|
6191
6202
|
iconSize: "md",
|
|
6192
6203
|
className: `${c}__active-icon`
|
|
6193
6204
|
}
|
|
6194
|
-
), y = (
|
|
6205
|
+
), y = (A) => {
|
|
6195
6206
|
var k;
|
|
6196
|
-
|
|
6197
|
-
}, v = (
|
|
6198
|
-
|
|
6207
|
+
A.key === "Enter" && ((k = _.current[f].querySelector("a")) == null || k.click());
|
|
6208
|
+
}, v = (A) => {
|
|
6209
|
+
A.target.nodeName === "A" && i(!1);
|
|
6199
6210
|
};
|
|
6200
6211
|
ce(() => {
|
|
6201
6212
|
if (o) {
|
|
6202
|
-
const
|
|
6203
|
-
return
|
|
6204
|
-
|
|
6213
|
+
const A = document.querySelector(".pds-dropdown-menu__dropdown");
|
|
6214
|
+
return A.addEventListener("click", v), () => {
|
|
6215
|
+
A.removeEventListener("click", v);
|
|
6205
6216
|
};
|
|
6206
6217
|
}
|
|
6207
6218
|
}, [o]);
|
|
6208
6219
|
const $ = ({
|
|
6209
|
-
item:
|
|
6220
|
+
item: A,
|
|
6210
6221
|
level: k
|
|
6211
|
-
}) => he(L({},
|
|
6222
|
+
}) => he(L({}, A), {
|
|
6212
6223
|
level: k,
|
|
6213
6224
|
linkContent: xe(
|
|
6214
|
-
bt(
|
|
6225
|
+
bt(A.linkContent, A.links),
|
|
6215
6226
|
{
|
|
6216
6227
|
tabIndex: -1
|
|
6217
6228
|
}
|
|
6218
6229
|
)
|
|
6219
|
-
}), h = (
|
|
6230
|
+
}), h = (A) => {
|
|
6220
6231
|
const k = [];
|
|
6221
|
-
return
|
|
6222
|
-
P.links ? (k.push($({ item: P, level: "top-level" })), P.links.forEach((
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
$({ item:
|
|
6226
|
-
),
|
|
6232
|
+
return A.forEach((P) => {
|
|
6233
|
+
P.links ? (k.push($({ item: P, level: "top-level" })), P.links.forEach((B) => {
|
|
6234
|
+
B.links ? (k.push($({ item: B, level: "second-level" })), B.links.forEach((F) => {
|
|
6235
|
+
F.links && (k.push(
|
|
6236
|
+
$({ item: F, level: "third-level" })
|
|
6237
|
+
), F.links.forEach((K) => {
|
|
6227
6238
|
k.push(
|
|
6228
|
-
$({ item:
|
|
6239
|
+
$({ item: K, level: "fourth-level" })
|
|
6229
6240
|
);
|
|
6230
6241
|
})), k.push(
|
|
6231
|
-
$({ item:
|
|
6242
|
+
$({ item: F, level: "third-level" })
|
|
6232
6243
|
);
|
|
6233
|
-
})) : k.push($({ item:
|
|
6244
|
+
})) : k.push($({ item: B, level: "second-level" }));
|
|
6234
6245
|
})) : k.push($({ item: P, level: "top-level" }));
|
|
6235
6246
|
}), k;
|
|
6236
6247
|
}, { refs: m, context: g } = Ve({
|
|
@@ -6245,9 +6256,9 @@ const os = (u) => {
|
|
|
6245
6256
|
loop: !0,
|
|
6246
6257
|
openOnArrowKeyDown: !0,
|
|
6247
6258
|
focusItemOnHover: !0
|
|
6248
|
-
}), M = Ke(g, { event: "mousedown" }), z = Ie(g), w = Se(g, { role: "menu" }), { getReferenceProps: H, getFloatingProps: N, getItemProps: I } =
|
|
6259
|
+
}), M = Ke(g, { event: "mousedown" }), z = Ie(g), w = Se(g, { role: "menu" }), { getReferenceProps: H, getFloatingProps: N, getItemProps: I } = Te(
|
|
6249
6260
|
[z, w, M, C]
|
|
6250
|
-
), { isMounted: V, styles:
|
|
6261
|
+
), { isMounted: V, styles: T } = Xe(g, {
|
|
6251
6262
|
duration: {
|
|
6252
6263
|
open: 300,
|
|
6253
6264
|
close: 300
|
|
@@ -6270,7 +6281,7 @@ const os = (u) => {
|
|
|
6270
6281
|
}, H()),
|
|
6271
6282
|
/* @__PURE__ */ e.createElement("span", { className: `${c}__active-label` }, E),
|
|
6272
6283
|
/* @__PURE__ */ e.createElement(
|
|
6273
|
-
|
|
6284
|
+
R,
|
|
6274
6285
|
{
|
|
6275
6286
|
iconName: "angleDown",
|
|
6276
6287
|
iconSize: "md",
|
|
@@ -6282,23 +6293,23 @@ const os = (u) => {
|
|
|
6282
6293
|
L({
|
|
6283
6294
|
className: `${c}__dropdown ${c}__menu ${c}__menu--top-level`,
|
|
6284
6295
|
ref: m.setFloating,
|
|
6285
|
-
style: he(L({},
|
|
6296
|
+
style: he(L({}, T), {
|
|
6286
6297
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
6287
6298
|
})
|
|
6288
6299
|
}, N()),
|
|
6289
|
-
h(s).map((
|
|
6300
|
+
h(s).map((A, k) => /* @__PURE__ */ e.createElement(
|
|
6290
6301
|
"li",
|
|
6291
6302
|
L({
|
|
6292
6303
|
key: k,
|
|
6293
6304
|
onKeyDown: y,
|
|
6294
|
-
className: `${c}__item ${c}__item--${
|
|
6305
|
+
className: `${c}__item ${c}__item--${A.level} ${A.isActive === !0 ? `${c}__item--active` : ""}`,
|
|
6295
6306
|
tabIndex: f === k ? 0 : -1,
|
|
6296
6307
|
ref: (P) => {
|
|
6297
6308
|
_.current[k] = P;
|
|
6298
6309
|
}
|
|
6299
6310
|
}, I()),
|
|
6300
|
-
|
|
6301
|
-
|
|
6311
|
+
A.linkContent,
|
|
6312
|
+
A.isActive === !0 && b
|
|
6302
6313
|
))
|
|
6303
6314
|
));
|
|
6304
6315
|
}, b2 = /* @__PURE__ */ e.createElement(
|
|
@@ -6744,7 +6755,7 @@ const os = (u) => {
|
|
|
6744
6755
|
className: `${d}__option-inner`,
|
|
6745
6756
|
style: { pointerEvents: "none" }
|
|
6746
6757
|
},
|
|
6747
|
-
/* @__PURE__ */ e.createElement("div", { className: `${d}__option-icon` }, /* @__PURE__ */ e.createElement(
|
|
6758
|
+
/* @__PURE__ */ e.createElement("div", { className: `${d}__option-icon` }, /* @__PURE__ */ e.createElement(R, { iconName: a })),
|
|
6748
6759
|
/* @__PURE__ */ e.createElement(
|
|
6749
6760
|
"div",
|
|
6750
6761
|
{
|
|
@@ -6805,7 +6816,7 @@ const os = (u) => {
|
|
|
6805
6816
|
"horizontalOffset",
|
|
6806
6817
|
"className"
|
|
6807
6818
|
]);
|
|
6808
|
-
const [v, $] =
|
|
6819
|
+
const [v, $] = Z(!1), [h, m] = Z(null), g = de(null);
|
|
6809
6820
|
let _ = !1;
|
|
6810
6821
|
const C = Ce(He);
|
|
6811
6822
|
C && (_ = C.isMobile);
|
|
@@ -6813,44 +6824,44 @@ const os = (u) => {
|
|
|
6813
6824
|
const w = Ce(Mt);
|
|
6814
6825
|
w && (M = w.navbarWidth, z = w.isAdmin);
|
|
6815
6826
|
const H = 2.25, N = 22, I = z ? 14.5 : 9.625, V = M > 900 ? N : M / 16 - (I + u) - H * 0.675;
|
|
6816
|
-
let
|
|
6817
|
-
v && !M && (
|
|
6818
|
-
const
|
|
6827
|
+
let T = H;
|
|
6828
|
+
v && !M && (T = N), v && M && (T = V);
|
|
6829
|
+
const A = {
|
|
6819
6830
|
right: `${I + u}rem`,
|
|
6820
|
-
width: `${
|
|
6821
|
-
}, k = "pds-dashboard-search", P = _ ? `${k}--isMobile` : null,
|
|
6831
|
+
width: `${T}rem`
|
|
6832
|
+
}, k = "pds-dashboard-search", P = _ ? `${k}--isMobile` : null, B = () => {
|
|
6822
6833
|
$(!0), setTimeout(() => {
|
|
6823
6834
|
g.current.querySelector("input").focus();
|
|
6824
6835
|
}, 500);
|
|
6825
|
-
},
|
|
6836
|
+
}, F = () => {
|
|
6826
6837
|
setTimeout(() => {
|
|
6827
6838
|
$(!1);
|
|
6828
6839
|
}, 150);
|
|
6829
|
-
},
|
|
6830
|
-
m(
|
|
6840
|
+
}, K = (O) => {
|
|
6841
|
+
m(O.value), o && o(O);
|
|
6831
6842
|
};
|
|
6832
6843
|
ce(() => {
|
|
6833
|
-
const
|
|
6844
|
+
const O = (ae) => {
|
|
6834
6845
|
g.current && !g.current.contains(ae.target) && $(!1);
|
|
6835
|
-
},
|
|
6846
|
+
}, X = (ae) => {
|
|
6836
6847
|
var j;
|
|
6837
6848
|
const te = (j = g.current) == null ? void 0 : j.querySelector("input");
|
|
6838
6849
|
ae.key === "Tab" && v && te === document.activeElement && $(!1);
|
|
6839
6850
|
};
|
|
6840
6851
|
if (v)
|
|
6841
|
-
return document.addEventListener("mousedown",
|
|
6842
|
-
document.removeEventListener("mousedown",
|
|
6852
|
+
return document.addEventListener("mousedown", O), document.addEventListener("keydown", X), () => {
|
|
6853
|
+
document.removeEventListener("mousedown", O), document.removeEventListener("keydown", X);
|
|
6843
6854
|
};
|
|
6844
6855
|
}, [v]);
|
|
6845
|
-
const Q = f.map((
|
|
6846
|
-
const { id:
|
|
6856
|
+
const Q = f.map((O) => {
|
|
6857
|
+
const { id: X, machineName: ae, name: te } = O;
|
|
6847
6858
|
return {
|
|
6848
|
-
id:
|
|
6859
|
+
id: X,
|
|
6849
6860
|
label: te,
|
|
6850
6861
|
value: ae != null ? ae : te,
|
|
6851
|
-
optionDisplay: /* @__PURE__ */ e.createElement(w2, { option:
|
|
6862
|
+
optionDisplay: /* @__PURE__ */ e.createElement(w2, { option: O })
|
|
6852
6863
|
};
|
|
6853
|
-
}),
|
|
6864
|
+
}), U = /* @__PURE__ */ e.createElement("div", { ref: g, className: `${k}__combobox-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
6854
6865
|
f2,
|
|
6855
6866
|
{
|
|
6856
6867
|
disabled: t,
|
|
@@ -6863,7 +6874,7 @@ const os = (u) => {
|
|
|
6863
6874
|
loadingText: d,
|
|
6864
6875
|
noResultsText: a,
|
|
6865
6876
|
onFocus: c,
|
|
6866
|
-
onOptionSelect:
|
|
6877
|
+
onOptionSelect: K,
|
|
6867
6878
|
placeholder: i,
|
|
6868
6879
|
options: Q,
|
|
6869
6880
|
showLabel: !1,
|
|
@@ -6874,13 +6885,13 @@ const os = (u) => {
|
|
|
6874
6885
|
{
|
|
6875
6886
|
style: v ? { visibility: "visible" } : { visibility: "hidden" }
|
|
6876
6887
|
},
|
|
6877
|
-
|
|
6888
|
+
U
|
|
6878
6889
|
), /* @__PURE__ */ e.createElement(
|
|
6879
6890
|
"button",
|
|
6880
6891
|
{
|
|
6881
6892
|
className: `${k}__search-toggle`,
|
|
6882
6893
|
"aria-label": r.openSearchButton,
|
|
6883
|
-
onClick:
|
|
6894
|
+
onClick: B,
|
|
6884
6895
|
style: v ? { visibility: "hidden" } : { visibility: "visible" }
|
|
6885
6896
|
},
|
|
6886
6897
|
/* @__PURE__ */ e.createElement(
|
|
@@ -6888,7 +6899,7 @@ const os = (u) => {
|
|
|
6888
6899
|
{
|
|
6889
6900
|
content: r.openSearchButton,
|
|
6890
6901
|
customTrigger: /* @__PURE__ */ e.createElement(
|
|
6891
|
-
|
|
6902
|
+
R,
|
|
6892
6903
|
{
|
|
6893
6904
|
iconName: "magnifyingGlass",
|
|
6894
6905
|
className: `${k}__search-toggle-icon`
|
|
@@ -6896,18 +6907,18 @@ const os = (u) => {
|
|
|
6896
6907
|
)
|
|
6897
6908
|
}
|
|
6898
6909
|
)
|
|
6899
|
-
)),
|
|
6910
|
+
)), W = /* @__PURE__ */ e.createElement("div", { className: `${k}--mobile-inner` }, U);
|
|
6900
6911
|
return /* @__PURE__ */ e.createElement(
|
|
6901
6912
|
"div",
|
|
6902
6913
|
L({
|
|
6903
6914
|
className: x([k, P, p != null ? p : ""]),
|
|
6904
6915
|
id: s,
|
|
6905
|
-
style: _ ? null :
|
|
6906
|
-
onKeyDown: _ ? null : (
|
|
6907
|
-
|
|
6916
|
+
style: _ ? null : A,
|
|
6917
|
+
onKeyDown: _ ? null : (O) => {
|
|
6918
|
+
O.key === "Escape" && F();
|
|
6908
6919
|
}
|
|
6909
6920
|
}, E),
|
|
6910
|
-
_ ?
|
|
6921
|
+
_ ? W : Y
|
|
6911
6922
|
);
|
|
6912
6923
|
}, rt = (r) => {
|
|
6913
6924
|
var d = r, {
|
|
@@ -6956,36 +6967,36 @@ const os = (u) => {
|
|
|
6956
6967
|
"translationStrings",
|
|
6957
6968
|
"className"
|
|
6958
6969
|
]);
|
|
6959
|
-
const [b, y] =
|
|
6970
|
+
const [b, y] = Z(!1);
|
|
6960
6971
|
let v = !1;
|
|
6961
6972
|
const $ = Ce(He);
|
|
6962
6973
|
$ && (v = $.isMobile);
|
|
6963
6974
|
const h = Ce(Mt);
|
|
6964
6975
|
h && (a = h.logoLinkContent);
|
|
6965
6976
|
const m = "pds-navbar", g = l ? `${m}--noBorder` : "", _ = s !== "default" ? `${m}--${s}` : "", C = v ? `${m}--isMobile` : `${m}--notMobile`, M = (Y) => {
|
|
6966
|
-
const
|
|
6967
|
-
let
|
|
6968
|
-
switch (
|
|
6977
|
+
const W = Y.key;
|
|
6978
|
+
let O = !1;
|
|
6979
|
+
switch (W) {
|
|
6969
6980
|
case "Esc":
|
|
6970
6981
|
case "Escape":
|
|
6971
|
-
y(!1),
|
|
6982
|
+
y(!1), O = !0;
|
|
6972
6983
|
break;
|
|
6973
6984
|
}
|
|
6974
|
-
|
|
6985
|
+
O && (Y.stopPropagation(), Y.preventDefault());
|
|
6975
6986
|
};
|
|
6976
6987
|
ce(() => (window.addEventListener("keyup", M), () => {
|
|
6977
6988
|
window.removeEventListener("keyup", M);
|
|
6978
6989
|
}), []);
|
|
6979
|
-
const z = () => y(!b), w =
|
|
6990
|
+
const z = () => y(!b), w = T1();
|
|
6980
6991
|
ce(() => {
|
|
6981
6992
|
if (v && t) {
|
|
6982
6993
|
const Y = f1(
|
|
6983
6994
|
document.querySelector(".pds-navbar__mobile")
|
|
6984
|
-
),
|
|
6985
|
-
b ? Y.forEach((
|
|
6986
|
-
|
|
6987
|
-
}) : Y.forEach((
|
|
6988
|
-
|
|
6995
|
+
), W = ["a", "button", "input", "select", "textarea"];
|
|
6996
|
+
b ? Y.forEach((O) => {
|
|
6997
|
+
W.includes(O.nodeName.toLowerCase()) && (O.tabIndex = 0);
|
|
6998
|
+
}) : Y.forEach((O) => {
|
|
6999
|
+
W.includes(O.nodeName.toLowerCase()) && (O.tabIndex = -1);
|
|
6989
7000
|
});
|
|
6990
7001
|
}
|
|
6991
7002
|
}, [b]);
|
|
@@ -6994,46 +7005,46 @@ const os = (u) => {
|
|
|
6994
7005
|
};
|
|
6995
7006
|
ce(() => {
|
|
6996
7007
|
if (b) {
|
|
6997
|
-
const Y = document.querySelector(".pds-navbar__bar-mobile"),
|
|
6998
|
-
return Y.addEventListener("click", H),
|
|
6999
|
-
Y.removeEventListener("click", H),
|
|
7008
|
+
const Y = document.querySelector(".pds-navbar__bar-mobile"), W = document.querySelector(".pds-navbar__mobile");
|
|
7009
|
+
return Y.addEventListener("click", H), W.addEventListener("click", H), () => {
|
|
7010
|
+
Y.removeEventListener("click", H), W.removeEventListener("click", H);
|
|
7000
7011
|
};
|
|
7001
7012
|
}
|
|
7002
7013
|
}, [b]), ce(() => {
|
|
7003
7014
|
b ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
7004
7015
|
}, [b]);
|
|
7005
7016
|
const N = qe(t), I = N["items-left"], V = N["items-right"];
|
|
7006
|
-
let
|
|
7007
|
-
(s === "reverse" || s === "reverse-transparent") && (
|
|
7008
|
-
const
|
|
7017
|
+
let T = "default";
|
|
7018
|
+
(s === "reverse" || s === "reverse-transparent") && (T = "reverse");
|
|
7019
|
+
const A = be(a) ? a.props.children : null, k = be(a) && A ? xe(a, {
|
|
7009
7020
|
children: /* @__PURE__ */ e.createElement("img", { className: `${m}__custom-logo`, src: c }),
|
|
7010
|
-
"aria-label":
|
|
7021
|
+
"aria-label": A || null
|
|
7011
7022
|
}) : /* @__PURE__ */ e.createElement("img", { className: `${m}__custom-logo`, src: c, alt: "" }), P = () => c ? k : /* @__PURE__ */ e.createElement(
|
|
7012
7023
|
w1,
|
|
7013
7024
|
{
|
|
7014
|
-
colorType:
|
|
7025
|
+
colorType: T,
|
|
7015
7026
|
displayType: d,
|
|
7016
7027
|
linkContent: a,
|
|
7017
7028
|
subBrand: o
|
|
7018
7029
|
}
|
|
7019
|
-
),
|
|
7030
|
+
), B = /* @__PURE__ */ e.createElement(
|
|
7020
7031
|
"button",
|
|
7021
7032
|
{
|
|
7022
7033
|
className: `${m}__menu-toggle`,
|
|
7023
7034
|
"aria-label": b ? i.closeMobileNav : i.openMobileNav,
|
|
7024
7035
|
onClick: z
|
|
7025
7036
|
},
|
|
7026
|
-
/* @__PURE__ */ e.createElement(
|
|
7027
|
-
),
|
|
7028
|
-
const
|
|
7029
|
-
return
|
|
7030
|
-
}),
|
|
7037
|
+
/* @__PURE__ */ e.createElement(R, { iconName: b ? "xmark" : "bars", iconSize: "lg" })
|
|
7038
|
+
), F = e.Children.toArray(t).sort((Y, W) => {
|
|
7039
|
+
const O = be(Y) && parseInt(Y.props["data-mobile-order"], 10) || 1 / 0, X = be(W) && parseInt(W.props["data-mobile-order"], 10) || 1 / 0;
|
|
7040
|
+
return O - X;
|
|
7041
|
+
}), K = /* @__PURE__ */ e.createElement(
|
|
7031
7042
|
"div",
|
|
7032
7043
|
{
|
|
7033
7044
|
className: b ? `${m}__mobile ${m}__mobile--open` : `${m}__mobile ${m}__mobile--closed`,
|
|
7034
7045
|
ref: w
|
|
7035
7046
|
},
|
|
7036
|
-
/* @__PURE__ */ e.createElement(rt, null,
|
|
7047
|
+
/* @__PURE__ */ e.createElement(rt, null, F)
|
|
7037
7048
|
), Q = /* @__PURE__ */ e.createElement(
|
|
7038
7049
|
U1,
|
|
7039
7050
|
{
|
|
@@ -7042,8 +7053,8 @@ const os = (u) => {
|
|
|
7042
7053
|
initialFocus: !1
|
|
7043
7054
|
}
|
|
7044
7055
|
},
|
|
7045
|
-
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(rt, { className: `${m}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${m}__inner-mobile` }, P(), t &&
|
|
7046
|
-
),
|
|
7056
|
+
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(rt, { className: `${m}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${m}__inner-mobile` }, P(), t && B)), /* @__PURE__ */ e.createElement(rt, null, t && K))
|
|
7057
|
+
), U = /* @__PURE__ */ e.createElement(rt, { width: n, className: `${m}__inner` }, !r && /* @__PURE__ */ e.createElement("div", { className: `${m}__logo` }, P()), /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, I ? /* @__PURE__ */ e.createElement("div", { className: `${m}__items-left` }, I) : /* @__PURE__ */ e.createElement("span", null), V && /* @__PURE__ */ e.createElement("div", { className: `${m}__items-right` }, V)));
|
|
7047
7058
|
return /* @__PURE__ */ e.createElement(
|
|
7048
7059
|
"header",
|
|
7049
7060
|
L({
|
|
@@ -7055,14 +7066,14 @@ const os = (u) => {
|
|
|
7055
7066
|
f != null ? f : ""
|
|
7056
7067
|
])
|
|
7057
7068
|
}, u),
|
|
7058
|
-
v ? Q :
|
|
7069
|
+
v ? Q : U
|
|
7059
7070
|
);
|
|
7060
7071
|
}, y2 = ({
|
|
7061
7072
|
items: t,
|
|
7062
7073
|
label: s,
|
|
7063
7074
|
mobileMenuMaxWidth: n = 640
|
|
7064
7075
|
}) => {
|
|
7065
|
-
const [l, r] =
|
|
7076
|
+
const [l, r] = Z(!1), [d, a] = Z(0);
|
|
7066
7077
|
ce(() => (a(window.innerWidth), window.addEventListener("resize", c), () => {
|
|
7067
7078
|
window.removeEventListener("resize", c);
|
|
7068
7079
|
}), []);
|
|
@@ -7085,7 +7096,7 @@ const os = (u) => {
|
|
|
7085
7096
|
}),
|
|
7086
7097
|
enabled: !0
|
|
7087
7098
|
});
|
|
7088
|
-
const { getReferenceProps: v, getFloatingProps: $ } =
|
|
7099
|
+
const { getReferenceProps: v, getFloatingProps: $ } = Te([
|
|
7089
7100
|
E,
|
|
7090
7101
|
b,
|
|
7091
7102
|
p,
|
|
@@ -7098,7 +7109,7 @@ const os = (u) => {
|
|
|
7098
7109
|
ref: f.setReference
|
|
7099
7110
|
}, v()),
|
|
7100
7111
|
s,
|
|
7101
|
-
/* @__PURE__ */ e.createElement(
|
|
7112
|
+
/* @__PURE__ */ e.createElement(R, { iconName: "angleDown", className: `${i}__trigger-icon` })
|
|
7102
7113
|
), l && /* @__PURE__ */ e.createElement(
|
|
7103
7114
|
"ul",
|
|
7104
7115
|
L({
|
|
@@ -7129,7 +7140,7 @@ const os = (u) => {
|
|
|
7129
7140
|
"mobileMenuMaxWidth",
|
|
7130
7141
|
"className"
|
|
7131
7142
|
]);
|
|
7132
|
-
const [o, i] =
|
|
7143
|
+
const [o, i] = Z(1025), [f, u] = Z(null), [p, E] = Z(-1), [b, y] = Z(null), [v, $] = Z({
|
|
7133
7144
|
container: null,
|
|
7134
7145
|
containerChildren: []
|
|
7135
7146
|
});
|
|
@@ -7151,7 +7162,7 @@ const os = (u) => {
|
|
|
7151
7162
|
}));
|
|
7152
7163
|
}, [p]);
|
|
7153
7164
|
const g = "pds-nav-menu", _ = s !== "default" ? `${g}--${s}` : "", C = m ? `${g}--isMobile` : `${g}--notMobile`, M = de([]), z = (N) => {
|
|
7154
|
-
const I = M.current.length - 1,
|
|
7165
|
+
const I = M.current.length - 1, B = {
|
|
7155
7166
|
ArrowRight: () => {
|
|
7156
7167
|
u(-1), E(p === -1 ? 1 : p === I ? 0 : p + 1);
|
|
7157
7168
|
},
|
|
@@ -7159,19 +7170,19 @@ const os = (u) => {
|
|
|
7159
7170
|
u(-1), E(p === 0 ? I : p - 1);
|
|
7160
7171
|
},
|
|
7161
7172
|
ArrowDown: () => {
|
|
7162
|
-
var Q,
|
|
7173
|
+
var Q, U, Y, W;
|
|
7163
7174
|
y("down");
|
|
7164
|
-
const
|
|
7165
|
-
v.container !=
|
|
7166
|
-
container:
|
|
7167
|
-
containerChildren: [...
|
|
7175
|
+
const F = N.target.parentNode.children[1], K = ((U = (Q = N.target) == null ? void 0 : Q.parentNode.children[1]) == null ? void 0 : U.children) || ((W = (Y = N.target) == null ? void 0 : Y.parentNode.parentNode.children[1]) == null ? void 0 : W.children);
|
|
7176
|
+
v.container != F && F != null && $({
|
|
7177
|
+
container: F,
|
|
7178
|
+
containerChildren: [...K]
|
|
7168
7179
|
}), f === null || f == v.containerChildren.length - 1 ? u(0) : u(parseInt(f) + 1);
|
|
7169
7180
|
},
|
|
7170
7181
|
ArrowUp: () => {
|
|
7171
7182
|
y("up"), u(f === 0 ? v.containerChildren.length - 1 : parseInt(f) - 1);
|
|
7172
7183
|
}
|
|
7173
7184
|
}[N.code];
|
|
7174
|
-
|
|
7185
|
+
B && B();
|
|
7175
7186
|
}, w = (N) => {
|
|
7176
7187
|
if (N.isActive || N.linkContent && N.linkContent.props.className && N.linkContent.props.className.includes("pds-isActive"))
|
|
7177
7188
|
return !0;
|
|
@@ -7183,14 +7194,14 @@ const os = (u) => {
|
|
|
7183
7194
|
return !1;
|
|
7184
7195
|
}, H = [];
|
|
7185
7196
|
return n.map((N, I) => {
|
|
7186
|
-
const V = `item-${et()}`,
|
|
7197
|
+
const V = `item-${et()}`, T = N.id ? N.id : V;
|
|
7187
7198
|
N.links ? H.push(
|
|
7188
7199
|
/* @__PURE__ */ e.createElement(
|
|
7189
7200
|
"li",
|
|
7190
7201
|
{
|
|
7191
7202
|
key: `${I}-dropdown`,
|
|
7192
|
-
id:
|
|
7193
|
-
ref: (
|
|
7203
|
+
id: T,
|
|
7204
|
+
ref: (A) => M.current[I] = A,
|
|
7194
7205
|
className: `${g}__item ${g}__item--top-level ${g}__item--has-children ${w(N) === !0 ? `${g}__item--active` : ""}`
|
|
7195
7206
|
},
|
|
7196
7207
|
/* @__PURE__ */ e.createElement(
|
|
@@ -7207,8 +7218,8 @@ const os = (u) => {
|
|
|
7207
7218
|
"li",
|
|
7208
7219
|
{
|
|
7209
7220
|
key: I,
|
|
7210
|
-
id:
|
|
7211
|
-
ref: (
|
|
7221
|
+
id: T,
|
|
7222
|
+
ref: (A) => M.current[I] = A,
|
|
7212
7223
|
className: `${g}__item ${g}__item--top-level ${g}__item--has-link ${w(N) === !0 ? `${g}__item--active` : ""}`
|
|
7213
7224
|
},
|
|
7214
7225
|
N.linkContent
|
|
@@ -7248,7 +7259,7 @@ const os = (u) => {
|
|
|
7248
7259
|
"mobileMenuSelectTextFallback",
|
|
7249
7260
|
"className"
|
|
7250
7261
|
]);
|
|
7251
|
-
const u = "pds-side-nav", [p, E] =
|
|
7262
|
+
const u = "pds-side-nav", [p, E] = Z(1025);
|
|
7252
7263
|
ce(() => (E(window.innerWidth), window.addEventListener("resize", b), () => {
|
|
7253
7264
|
window.removeEventListener("resize", b);
|
|
7254
7265
|
}), []);
|
|
@@ -7285,7 +7296,7 @@ const os = (u) => {
|
|
|
7285
7296
|
]),
|
|
7286
7297
|
onClick: v
|
|
7287
7298
|
},
|
|
7288
|
-
/* @__PURE__ */ e.createElement(
|
|
7299
|
+
/* @__PURE__ */ e.createElement(R, { iconName: "angleDown", iconSize: "md" }),
|
|
7289
7300
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${l.toggle} ${Ue(M)} ${l.submenu}`)
|
|
7290
7301
|
)), /* @__PURE__ */ e.createElement(
|
|
7291
7302
|
"ul",
|
|
@@ -7297,7 +7308,7 @@ const os = (u) => {
|
|
|
7297
7308
|
])
|
|
7298
7309
|
},
|
|
7299
7310
|
z.map((I, V) => {
|
|
7300
|
-
const
|
|
7311
|
+
const T = $(
|
|
7301
7312
|
I.linkContent
|
|
7302
7313
|
);
|
|
7303
7314
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -7308,7 +7319,7 @@ const os = (u) => {
|
|
|
7308
7319
|
H,
|
|
7309
7320
|
`${H}--second-level`,
|
|
7310
7321
|
ve(I) ? `${H}--active` : null,
|
|
7311
|
-
|
|
7322
|
+
T ? "with-tally" : null
|
|
7312
7323
|
// Add class for second-level items
|
|
7313
7324
|
])
|
|
7314
7325
|
},
|
|
@@ -7362,7 +7373,7 @@ const os = (u) => {
|
|
|
7362
7373
|
"mobileMenuSelectTextFallback",
|
|
7363
7374
|
"className"
|
|
7364
7375
|
]);
|
|
7365
|
-
const u = "pds-side-nav-compact", p = `${u}__item`, E = `${u}__menu`, [b, y] =
|
|
7376
|
+
const u = "pds-side-nav-compact", p = `${u}__item`, E = `${u}__menu`, [b, y] = Z(1025);
|
|
7366
7377
|
ce(() => (y(window.innerWidth), window.addEventListener("resize", v), () => {
|
|
7367
7378
|
window.removeEventListener("resize", v);
|
|
7368
7379
|
}), []);
|
|
@@ -7375,7 +7386,7 @@ const os = (u) => {
|
|
|
7375
7386
|
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
7376
7387
|
), w.parentElement.nextElementSibling.classList.toggle(`${E}--expanded`);
|
|
7377
7388
|
}, m = { 2: "second", 3: "third", 4: "fourth" }, g = (z, w, H) => {
|
|
7378
|
-
const N = m[z], I = `${E}--${N}-level`, V = `${p}--${N}-level`,
|
|
7389
|
+
const N = m[z], I = `${E}--${N}-level`, V = `${p}--${N}-level`, T = z + 1;
|
|
7379
7390
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${p}-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
7380
7391
|
"button",
|
|
7381
7392
|
{
|
|
@@ -7386,7 +7397,7 @@ const os = (u) => {
|
|
|
7386
7397
|
]),
|
|
7387
7398
|
onClick: h
|
|
7388
7399
|
},
|
|
7389
|
-
/* @__PURE__ */ e.createElement(
|
|
7400
|
+
/* @__PURE__ */ e.createElement(R, { iconName: "caretDown", iconSize: "md" }),
|
|
7390
7401
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${l.toggle} ${Ue(w.linkContent)} ${l.submenu}`)
|
|
7391
7402
|
), bt(w.linkContent, w.links)), /* @__PURE__ */ e.createElement(
|
|
7392
7403
|
"ul",
|
|
@@ -7397,21 +7408,21 @@ const os = (u) => {
|
|
|
7397
7408
|
ve(w) ? `${E}--expanded` : null
|
|
7398
7409
|
])
|
|
7399
7410
|
},
|
|
7400
|
-
w.links.map((
|
|
7411
|
+
w.links.map((A, k) => /* @__PURE__ */ e.createElement(
|
|
7401
7412
|
"li",
|
|
7402
7413
|
{
|
|
7403
7414
|
key: `${k}-${N}`,
|
|
7404
7415
|
className: x([
|
|
7405
7416
|
p,
|
|
7406
7417
|
V,
|
|
7407
|
-
ve(
|
|
7418
|
+
ve(A) ? `${p}--active` : null
|
|
7408
7419
|
])
|
|
7409
7420
|
},
|
|
7410
|
-
|
|
7411
|
-
A,
|
|
7421
|
+
A.links && T in m ? g(
|
|
7412
7422
|
T,
|
|
7413
|
-
|
|
7414
|
-
|
|
7423
|
+
A,
|
|
7424
|
+
A.links
|
|
7425
|
+
) : A.linkContent
|
|
7415
7426
|
))
|
|
7416
7427
|
));
|
|
7417
7428
|
}, _ = (z, w) => {
|
|
@@ -7452,7 +7463,7 @@ const os = (u) => {
|
|
|
7452
7463
|
minFilterItems: r = 5,
|
|
7453
7464
|
noResultsText: d = "No results found"
|
|
7454
7465
|
}) => {
|
|
7455
|
-
const [a, c] =
|
|
7466
|
+
const [a, c] = Z(!1), [o, i] = Z(null), [f, u] = Z(l), [p, E] = Z(""), b = l.length >= r, y = "pds-tab-menu", v = `${y}__dropdown-menu`, $ = b ? `${v}--scroll` : null, h = `${y}__dropdown-item`, m = de([]), { context: g, refs: _ } = Ve({
|
|
7456
7467
|
open: a,
|
|
7457
7468
|
onOpenChange: c,
|
|
7458
7469
|
whileElementsMounted: Pe
|
|
@@ -7465,9 +7476,9 @@ const os = (u) => {
|
|
|
7465
7476
|
loop: !0,
|
|
7466
7477
|
focusItemOnHover: !0,
|
|
7467
7478
|
focusItemOnOpen: !1
|
|
7468
|
-
}), { getReferenceProps: H, getFloatingProps: N, getItemProps: I } =
|
|
7479
|
+
}), { getReferenceProps: H, getFloatingProps: N, getItemProps: I } = Te(
|
|
7469
7480
|
[z, M, w, C]
|
|
7470
|
-
), { isMounted: V, styles:
|
|
7481
|
+
), { isMounted: V, styles: T } = Xe(g, {
|
|
7471
7482
|
duration: {
|
|
7472
7483
|
open: 300,
|
|
7473
7484
|
close: 150
|
|
@@ -7481,33 +7492,33 @@ const os = (u) => {
|
|
|
7481
7492
|
close: {
|
|
7482
7493
|
opacity: 0
|
|
7483
7494
|
}
|
|
7484
|
-
}),
|
|
7485
|
-
var
|
|
7486
|
-
|
|
7487
|
-
}, k = (
|
|
7488
|
-
const
|
|
7489
|
-
E(
|
|
7490
|
-
const ae = l.filter((te) => k(te,
|
|
7495
|
+
}), A = (O) => {
|
|
7496
|
+
var X;
|
|
7497
|
+
O.preventDefault(), O.key === "Enter" && ((X = m.current[o].querySelector("a")) == null || X.click()), O.key === "Tab" && O.shiftKey && (b ? document.getElementById("links-filter").focus() : c(!1));
|
|
7498
|
+
}, k = (O, X) => Ue(O.linkContent).toLowerCase().includes(X.toLowerCase()), P = (O) => {
|
|
7499
|
+
const X = O.target.value;
|
|
7500
|
+
E(X);
|
|
7501
|
+
const ae = l.filter((te) => k(te, X));
|
|
7491
7502
|
u(ae);
|
|
7492
7503
|
};
|
|
7493
7504
|
ce(() => {
|
|
7494
|
-
const
|
|
7495
|
-
u(
|
|
7505
|
+
const O = l.filter((X) => k(X, p));
|
|
7506
|
+
u(O);
|
|
7496
7507
|
}, [l]);
|
|
7497
|
-
const
|
|
7508
|
+
const B = () => {
|
|
7498
7509
|
E(""), u(l);
|
|
7499
|
-
},
|
|
7500
|
-
(
|
|
7510
|
+
}, F = l.reduce(
|
|
7511
|
+
(O, X) => Ue(O.linkContent).length > Ue(X.linkContent).length ? O : X
|
|
7501
7512
|
), Q = {
|
|
7502
7513
|
minWidth: "13rem",
|
|
7503
7514
|
width: `${Ue(
|
|
7504
|
-
|
|
7515
|
+
F.linkContent
|
|
7505
7516
|
).length + 2}ch`
|
|
7506
|
-
},
|
|
7517
|
+
}, U = /* @__PURE__ */ e.createElement(R, { iconName: "check", className: `${y}__active-icon` }), Y = b && /* @__PURE__ */ e.createElement("div", { className: `${y}__filter` }, /* @__PURE__ */ e.createElement(
|
|
7507
7518
|
C1,
|
|
7508
7519
|
{
|
|
7509
7520
|
hasClearButton: !0,
|
|
7510
|
-
onClear:
|
|
7521
|
+
onClear: B,
|
|
7511
7522
|
id: "links-filter",
|
|
7512
7523
|
label: s,
|
|
7513
7524
|
onChange: P,
|
|
@@ -7516,21 +7527,21 @@ const os = (u) => {
|
|
|
7516
7527
|
type: "search",
|
|
7517
7528
|
autoComplete: "off"
|
|
7518
7529
|
}
|
|
7519
|
-
)),
|
|
7520
|
-
const ae =
|
|
7530
|
+
)), W = f.map((O, X) => {
|
|
7531
|
+
const ae = O.isActive ? `${h}--active` : null;
|
|
7521
7532
|
return /* @__PURE__ */ e.createElement(
|
|
7522
7533
|
"li",
|
|
7523
7534
|
L({
|
|
7524
|
-
key:
|
|
7535
|
+
key: X,
|
|
7525
7536
|
className: x([h, ae]),
|
|
7526
7537
|
ref: (te) => {
|
|
7527
|
-
m.current[
|
|
7538
|
+
m.current[X] = te;
|
|
7528
7539
|
},
|
|
7529
|
-
tabIndex:
|
|
7530
|
-
onKeyDown:
|
|
7540
|
+
tabIndex: X === o ? 0 : -1,
|
|
7541
|
+
onKeyDown: A
|
|
7531
7542
|
}, I()),
|
|
7532
|
-
|
|
7533
|
-
|
|
7543
|
+
O.linkContent,
|
|
7544
|
+
O.isActive && U
|
|
7534
7545
|
);
|
|
7535
7546
|
});
|
|
7536
7547
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
@@ -7543,7 +7554,7 @@ const os = (u) => {
|
|
|
7543
7554
|
"aria-label": t
|
|
7544
7555
|
})),
|
|
7545
7556
|
/* @__PURE__ */ e.createElement(
|
|
7546
|
-
|
|
7557
|
+
R,
|
|
7547
7558
|
{
|
|
7548
7559
|
iconName: "angleDown",
|
|
7549
7560
|
className: `${y}__dropdown-trigger-icon`
|
|
@@ -7559,7 +7570,7 @@ const os = (u) => {
|
|
|
7559
7570
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
7560
7571
|
}, Q)
|
|
7561
7572
|
})),
|
|
7562
|
-
/* @__PURE__ */ e.createElement("div", { style: L({},
|
|
7573
|
+
/* @__PURE__ */ e.createElement("div", { style: L({}, T) }, Y, /* @__PURE__ */ e.createElement("ul", { className: x([v, $]) }, W.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${y}__no-results` }, d) : W))
|
|
7563
7574
|
));
|
|
7564
7575
|
}, Is = (r) => {
|
|
7565
7576
|
var d = r, {
|
|
@@ -7587,7 +7598,7 @@ const os = (u) => {
|
|
|
7587
7598
|
return typeof _ == "object" && (C ? M = xe(_, he(L({}, _.props), {
|
|
7588
7599
|
children: [
|
|
7589
7600
|
/* @__PURE__ */ e.createElement("span", { key: C, className: `${o}__item-inner` }, /* @__PURE__ */ e.createElement(
|
|
7590
|
-
|
|
7601
|
+
R,
|
|
7591
7602
|
{
|
|
7592
7603
|
iconName: C,
|
|
7593
7604
|
iconSize: a ? "sm" : "md",
|
|
@@ -7656,7 +7667,7 @@ const os = (u) => {
|
|
|
7656
7667
|
"withinNavbar",
|
|
7657
7668
|
"className"
|
|
7658
7669
|
]);
|
|
7659
|
-
const [f, u] =
|
|
7670
|
+
const [f, u] = Z(null), [p, E] = Z(!1), b = de([]), y = de([]);
|
|
7660
7671
|
let v = !1;
|
|
7661
7672
|
const $ = Ce(He);
|
|
7662
7673
|
$ && (v = $.isMobile);
|
|
@@ -7674,9 +7685,9 @@ const os = (u) => {
|
|
|
7674
7685
|
openOnArrowKeyDown: !0,
|
|
7675
7686
|
focusItemOnOpen: !1,
|
|
7676
7687
|
focusItemOnHover: !0
|
|
7677
|
-
}), { getReferenceProps:
|
|
7688
|
+
}), { getReferenceProps: T, getFloatingProps: A, getItemProps: k } = Te(
|
|
7678
7689
|
[H, N, w, V]
|
|
7679
|
-
), { isMounted: P, styles:
|
|
7690
|
+
), { isMounted: P, styles: B } = Xe(z, {
|
|
7680
7691
|
duration: {
|
|
7681
7692
|
open: 300,
|
|
7682
7693
|
close: 150
|
|
@@ -7690,7 +7701,7 @@ const os = (u) => {
|
|
|
7690
7701
|
close: {
|
|
7691
7702
|
opacity: 0
|
|
7692
7703
|
}
|
|
7693
|
-
}),
|
|
7704
|
+
}), F = /* @__PURE__ */ e.createElement(
|
|
7694
7705
|
Ft,
|
|
7695
7706
|
{
|
|
7696
7707
|
hasUserFallback: !0,
|
|
@@ -7699,19 +7710,19 @@ const os = (u) => {
|
|
|
7699
7710
|
uniqueId: n,
|
|
7700
7711
|
className: `${m}__avatar`
|
|
7701
7712
|
}
|
|
7702
|
-
),
|
|
7713
|
+
), K = /* @__PURE__ */ e.createElement(R, { iconName: "angleDown", className: `${m}__trigger-icon` }), Q = /* @__PURE__ */ e.createElement("li", { className: `${m}__user-details`, role: "presentation" }, h ? null : /* @__PURE__ */ e.createElement("div", { className: `${m}__user-name` }, r), /* @__PURE__ */ e.createElement("div", { className: `${m}__user-email` }, n));
|
|
7703
7714
|
s.forEach((j) => {
|
|
7704
7715
|
const se = j.id ? j.id : et();
|
|
7705
7716
|
b.current.push(se), y.current.push(j);
|
|
7706
7717
|
});
|
|
7707
|
-
const
|
|
7718
|
+
const U = (j) => {
|
|
7708
7719
|
const se = b.current.indexOf(j), ne = y.current[se];
|
|
7709
7720
|
ne.linkContent && !ne.disabled && (I.current[se].querySelector("a").click(), E(!1)), ne.callback && !ne.disabled && (ne.callback(ne), E(!1));
|
|
7710
7721
|
}, Y = (j) => {
|
|
7711
|
-
j.preventDefault(), j.key === "Enter" &&
|
|
7712
|
-
},
|
|
7713
|
-
|
|
7714
|
-
},
|
|
7722
|
+
j.preventDefault(), j.key === "Enter" && U(j.currentTarget.id);
|
|
7723
|
+
}, W = (j) => {
|
|
7724
|
+
U(j.currentTarget.id);
|
|
7725
|
+
}, O = s.map((j, se) => {
|
|
7715
7726
|
const ne = b.current[se], me = `${m}__item`, ue = j.disabled ? `${me}--disabled` : null;
|
|
7716
7727
|
return /* @__PURE__ */ e.createElement(
|
|
7717
7728
|
"li",
|
|
@@ -7725,9 +7736,9 @@ const os = (u) => {
|
|
|
7725
7736
|
I.current[se] = ge;
|
|
7726
7737
|
},
|
|
7727
7738
|
onKeyDown: Y
|
|
7728
|
-
}, k({ onClick: (ge) =>
|
|
7739
|
+
}, k({ onClick: (ge) => W(ge) })),
|
|
7729
7740
|
j.iconName && /* @__PURE__ */ e.createElement(
|
|
7730
|
-
|
|
7741
|
+
R,
|
|
7731
7742
|
{
|
|
7732
7743
|
iconName: j.iconName,
|
|
7733
7744
|
className: `${m}__icon`,
|
|
@@ -7736,14 +7747,14 @@ const os = (u) => {
|
|
|
7736
7747
|
),
|
|
7737
7748
|
j.linkContent ? j.linkContent : j.label
|
|
7738
7749
|
);
|
|
7739
|
-
}),
|
|
7750
|
+
}), X = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
7740
7751
|
"button",
|
|
7741
7752
|
L({
|
|
7742
7753
|
className: `${m}__trigger`,
|
|
7743
7754
|
"aria-label": t,
|
|
7744
7755
|
ref: C.setReference
|
|
7745
|
-
},
|
|
7746
|
-
|
|
7756
|
+
}, T()),
|
|
7757
|
+
F
|
|
7747
7758
|
), P && /* @__PURE__ */ e.createElement(
|
|
7748
7759
|
"div",
|
|
7749
7760
|
L({
|
|
@@ -7752,8 +7763,8 @@ const os = (u) => {
|
|
|
7752
7763
|
style: he(L({}, M), {
|
|
7753
7764
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
7754
7765
|
})
|
|
7755
|
-
},
|
|
7756
|
-
/* @__PURE__ */ e.createElement("div", { style: L({},
|
|
7766
|
+
}, A()),
|
|
7767
|
+
/* @__PURE__ */ e.createElement("div", { style: L({}, B) }, /* @__PURE__ */ e.createElement("ul", { className: _, role: "menu" }, Q, /* @__PURE__ */ e.createElement("li", { role: "separator" }), O))
|
|
7757
7768
|
)), ae = (j) => {
|
|
7758
7769
|
const se = j.currentTarget;
|
|
7759
7770
|
se.classList.toggle(`${m}__toggle--expanded`), se.setAttribute(
|
|
@@ -7768,8 +7779,8 @@ const os = (u) => {
|
|
|
7768
7779
|
"aria-label": t,
|
|
7769
7780
|
onClick: ae
|
|
7770
7781
|
},
|
|
7771
|
-
/* @__PURE__ */ e.createElement("span", { className: `${m}__toggle-left` },
|
|
7772
|
-
|
|
7782
|
+
/* @__PURE__ */ e.createElement("span", { className: `${m}__toggle-left` }, F, r || n),
|
|
7783
|
+
K
|
|
7773
7784
|
), /* @__PURE__ */ e.createElement("div", { className: `${m}__mobile-menu` }, /* @__PURE__ */ e.createElement(
|
|
7774
7785
|
"ul",
|
|
7775
7786
|
{
|
|
@@ -7778,21 +7789,21 @@ const os = (u) => {
|
|
|
7778
7789
|
},
|
|
7779
7790
|
Q,
|
|
7780
7791
|
/* @__PURE__ */ e.createElement("li", { role: "separator" }),
|
|
7781
|
-
|
|
7792
|
+
O
|
|
7782
7793
|
)));
|
|
7783
7794
|
return /* @__PURE__ */ e.createElement(
|
|
7784
7795
|
"span",
|
|
7785
7796
|
L({
|
|
7786
7797
|
className: x([m, g, a != null ? a : ""])
|
|
7787
7798
|
}, c),
|
|
7788
|
-
h ? te :
|
|
7799
|
+
h ? te : X
|
|
7789
7800
|
);
|
|
7790
7801
|
}, M2 = {
|
|
7791
7802
|
silver: "Silver",
|
|
7792
7803
|
gold: "Gold",
|
|
7793
7804
|
platinum: "Platinum",
|
|
7794
7805
|
diamond: "Diamond"
|
|
7795
|
-
},
|
|
7806
|
+
}, Ts = (u) => {
|
|
7796
7807
|
var p = u, {
|
|
7797
7808
|
ariaLabel: t = "Workspace selector menu",
|
|
7798
7809
|
createWorkspaceLink: s,
|
|
@@ -7816,15 +7827,15 @@ const os = (u) => {
|
|
|
7816
7827
|
"workspaceList",
|
|
7817
7828
|
"className"
|
|
7818
7829
|
]);
|
|
7819
|
-
const [E, b] =
|
|
7830
|
+
const [E, b] = Z(!1), [y, v] = Z(null), [$, h] = Z(o), m = de([]), g = de(null), _ = o.length >= d;
|
|
7820
7831
|
let C = !1;
|
|
7821
7832
|
const M = Ce(He);
|
|
7822
7833
|
M && (C = M.isMobile);
|
|
7823
|
-
const z = c && C, w = "pds-workspace-selector", H = z ? `${w}--isMobile` : null, N = `${w}__menu`, I = _ ? `${N}--scroll` : null, { refs: V, floatingStyles:
|
|
7834
|
+
const z = c && C, w = "pds-workspace-selector", H = z ? `${w}--isMobile` : null, N = `${w}__menu`, I = _ ? `${N}--scroll` : null, { refs: V, floatingStyles: T, context: A } = Ve({
|
|
7824
7835
|
open: E,
|
|
7825
7836
|
onOpenChange: b,
|
|
7826
7837
|
whileElementsMounted: Pe
|
|
7827
|
-
}), k = Ke(
|
|
7838
|
+
}), k = Ke(A, { event: "mousedown" }), P = Ie(A), B = Se(A, { role: "menu" }), F = lt(A, {
|
|
7828
7839
|
listRef: m,
|
|
7829
7840
|
activeIndex: y,
|
|
7830
7841
|
onNavigate: v,
|
|
@@ -7832,9 +7843,9 @@ const os = (u) => {
|
|
|
7832
7843
|
openOnArrowKeyDown: !0,
|
|
7833
7844
|
focusItemOnHover: !0,
|
|
7834
7845
|
focusItemOnOpen: !1
|
|
7835
|
-
}), { getReferenceProps:
|
|
7836
|
-
[P,
|
|
7837
|
-
), { isMounted: Y, styles:
|
|
7846
|
+
}), { getReferenceProps: K, getFloatingProps: Q, getItemProps: U } = Te(
|
|
7847
|
+
[P, B, k, F]
|
|
7848
|
+
), { isMounted: Y, styles: W } = Xe(A, {
|
|
7838
7849
|
duration: {
|
|
7839
7850
|
open: 300,
|
|
7840
7851
|
close: 150
|
|
@@ -7849,9 +7860,9 @@ const os = (u) => {
|
|
|
7849
7860
|
opacity: 0
|
|
7850
7861
|
}
|
|
7851
7862
|
});
|
|
7852
|
-
let
|
|
7853
|
-
|
|
7854
|
-
const
|
|
7863
|
+
let O = o.find((ee) => ee.isActive);
|
|
7864
|
+
O || (O = o[0]);
|
|
7865
|
+
const X = (ee) => {
|
|
7855
7866
|
const { value: ie } = ee.target, Me = o.filter((De) => De.displayName.toLowerCase().includes(ie.toLowerCase()));
|
|
7856
7867
|
h(Me);
|
|
7857
7868
|
};
|
|
@@ -7867,19 +7878,19 @@ const os = (u) => {
|
|
|
7867
7878
|
Ft,
|
|
7868
7879
|
{
|
|
7869
7880
|
size: "sm",
|
|
7870
|
-
uniqueId:
|
|
7871
|
-
imageSrc:
|
|
7881
|
+
uniqueId: O.workspaceId,
|
|
7882
|
+
imageSrc: O.imageSrc,
|
|
7872
7883
|
className: `${w}__avatar`
|
|
7873
7884
|
}
|
|
7874
|
-
), /* @__PURE__ */ e.createElement("span", { className: `${w}__name` },
|
|
7885
|
+
), /* @__PURE__ */ e.createElement("span", { className: `${w}__name` }, O.displayName), O.planTier && /* @__PURE__ */ e.createElement(
|
|
7875
7886
|
it,
|
|
7876
7887
|
{
|
|
7877
7888
|
size: "sm",
|
|
7878
|
-
color:
|
|
7879
|
-
label: M2[
|
|
7889
|
+
color: O.planTier,
|
|
7890
|
+
label: M2[O.planTier]
|
|
7880
7891
|
}
|
|
7881
7892
|
)), j = /* @__PURE__ */ e.createElement(
|
|
7882
|
-
|
|
7893
|
+
R,
|
|
7883
7894
|
{
|
|
7884
7895
|
iconName: "angleDown",
|
|
7885
7896
|
iconSize: "md",
|
|
@@ -7892,14 +7903,14 @@ const os = (u) => {
|
|
|
7892
7903
|
onClear: () => h(o),
|
|
7893
7904
|
id: "workspace-filter",
|
|
7894
7905
|
label: l,
|
|
7895
|
-
onChange:
|
|
7906
|
+
onChange: X,
|
|
7896
7907
|
placeholder: n,
|
|
7897
7908
|
showLabel: !1,
|
|
7898
7909
|
type: "search"
|
|
7899
7910
|
}
|
|
7900
7911
|
)), ne = $.map(
|
|
7901
7912
|
(ee, ie) => {
|
|
7902
|
-
const Me = `${w}__item`, De = ee.isActive ? `${Me}--active` : null, ke = ee.isUnprivileged ? `${Me}--unprivileged` : null, Be = /* @__PURE__ */ e.createElement(
|
|
7913
|
+
const Me = `${w}__item`, De = ee.isActive ? `${Me}--active` : null, ke = ee.isUnprivileged ? `${Me}--unprivileged` : null, Be = /* @__PURE__ */ e.createElement(R, { iconName: "check", className: `${w}__active-icon` }), Oe = ee.workspaceId, Ye = ee.workspaceLink.type, Qe = ee.isUnprivileged ? null : (Re) => {
|
|
7903
7914
|
m.current[ie] = Re;
|
|
7904
7915
|
};
|
|
7905
7916
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -7916,7 +7927,7 @@ const os = (u) => {
|
|
|
7916
7927
|
tabIndex: y === ie ? 0 : -1,
|
|
7917
7928
|
ref: Qe,
|
|
7918
7929
|
onKeyDown: ae
|
|
7919
|
-
},
|
|
7930
|
+
}, U()),
|
|
7920
7931
|
/* @__PURE__ */ e.createElement(
|
|
7921
7932
|
Ye,
|
|
7922
7933
|
he(L({}, ee.workspaceLink.props), {
|
|
@@ -7951,7 +7962,7 @@ const os = (u) => {
|
|
|
7951
7962
|
className: `${w}__trigger`,
|
|
7952
7963
|
"aria-label": t,
|
|
7953
7964
|
ref: V.setReference
|
|
7954
|
-
},
|
|
7965
|
+
}, K()),
|
|
7955
7966
|
te,
|
|
7956
7967
|
j
|
|
7957
7968
|
), Y && /* @__PURE__ */ e.createElement(
|
|
@@ -7963,7 +7974,7 @@ const os = (u) => {
|
|
|
7963
7974
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
7964
7975
|
}
|
|
7965
7976
|
}, Q()),
|
|
7966
|
-
/* @__PURE__ */ e.createElement("div", { style: L({},
|
|
7977
|
+
/* @__PURE__ */ e.createElement("div", { style: L({}, W) }, se, /* @__PURE__ */ e.createElement("ul", { className: x([N, I]), role: "menu" }, /* @__PURE__ */ e.createElement("li", { className: `${w}__item-heading`, role: "presentation" }, r), ne.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${w}__no-results` }, a) : ne), me)
|
|
7967
7978
|
)), ge = (ee) => {
|
|
7968
7979
|
const ie = ee.target;
|
|
7969
7980
|
ie.classList.toggle(`${w}__toggle--expanded`), ie.setAttribute(
|
|
@@ -8000,7 +8011,7 @@ const os = (u) => {
|
|
|
8000
8011
|
info: "circleInfo",
|
|
8001
8012
|
warning: "triangleExclamation",
|
|
8002
8013
|
critical: "diamondExclamation"
|
|
8003
|
-
},
|
|
8014
|
+
}, As = (c) => {
|
|
8004
8015
|
var o = c, {
|
|
8005
8016
|
banners: t,
|
|
8006
8017
|
dismissLabel: s = "Dismiss",
|
|
@@ -8020,7 +8031,7 @@ const os = (u) => {
|
|
|
8020
8031
|
"typeLabels",
|
|
8021
8032
|
"className"
|
|
8022
8033
|
]);
|
|
8023
|
-
const [i, f] =
|
|
8034
|
+
const [i, f] = Z(t);
|
|
8024
8035
|
ce(() => {
|
|
8025
8036
|
f(t);
|
|
8026
8037
|
}, [t]);
|
|
@@ -8056,14 +8067,14 @@ const os = (u) => {
|
|
|
8056
8067
|
]), document.getElementById(i[0].id).classList.remove(`${p}--fading`);
|
|
8057
8068
|
}, 200);
|
|
8058
8069
|
}, C = (M, z) => {
|
|
8059
|
-
const { id: w, isDismissible: H, message: N, onDismiss: I, type: V } = M,
|
|
8060
|
-
|
|
8070
|
+
const { id: w, isDismissible: H, message: N, onDismiss: I, type: V } = M, A = ["critical", "warning"].includes(V) ? "alert" : "status", k = `${r[V]}: `, P = (B) => {
|
|
8071
|
+
B.preventDefault(), document.getElementById(w).classList.add(`${p}--dismissing`), setTimeout(() => {
|
|
8061
8072
|
if (u === 1) {
|
|
8062
8073
|
f([]);
|
|
8063
8074
|
return;
|
|
8064
8075
|
}
|
|
8065
8076
|
f(
|
|
8066
|
-
(
|
|
8077
|
+
(F) => F.filter((K) => K.id !== w)
|
|
8067
8078
|
), I && M.onDismiss();
|
|
8068
8079
|
}, 200);
|
|
8069
8080
|
};
|
|
@@ -8073,13 +8084,13 @@ const os = (u) => {
|
|
|
8073
8084
|
key: w,
|
|
8074
8085
|
id: w,
|
|
8075
8086
|
className: x([p, b[V]]),
|
|
8076
|
-
role:
|
|
8087
|
+
role: A,
|
|
8077
8088
|
style: {
|
|
8078
8089
|
zIndex: $(z).zIndex
|
|
8079
8090
|
}
|
|
8080
8091
|
},
|
|
8081
8092
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__content` }, /* @__PURE__ */ e.createElement(
|
|
8082
|
-
|
|
8093
|
+
R,
|
|
8083
8094
|
{
|
|
8084
8095
|
iconName: z2[V],
|
|
8085
8096
|
iconSize: "md",
|
|
@@ -8127,7 +8138,7 @@ const os = (u) => {
|
|
|
8127
8138
|
}
|
|
8128
8139
|
), i.map((M, z) => C(M, z))) : C(i[0], 0)
|
|
8129
8140
|
);
|
|
8130
|
-
},
|
|
8141
|
+
}, Tt = {
|
|
8131
8142
|
info: "circleInfo",
|
|
8132
8143
|
warning: "triangleExclamation",
|
|
8133
8144
|
success: "circleCheck",
|
|
@@ -8167,14 +8178,14 @@ const os = (u) => {
|
|
|
8167
8178
|
role: p
|
|
8168
8179
|
}, d),
|
|
8169
8180
|
/* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon-${n}` }, n === "working" ? /* @__PURE__ */ e.createElement(Lt, { colorType: "monochromatic" }) : /* @__PURE__ */ e.createElement(
|
|
8170
|
-
|
|
8181
|
+
R,
|
|
8171
8182
|
{
|
|
8172
|
-
iconName: `${n}` in
|
|
8183
|
+
iconName: `${n}` in Tt ? Tt[n] : Tt.info,
|
|
8173
8184
|
iconSize: "md"
|
|
8174
8185
|
}
|
|
8175
8186
|
)), /* @__PURE__ */ e.createElement("div", { className: `${o}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, E), t && /* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, t), /* @__PURE__ */ e.createElement("div", { className: `${o}__secondaryText` }, s)))
|
|
8176
8187
|
);
|
|
8177
|
-
},
|
|
8188
|
+
}, At = {
|
|
8178
8189
|
info: "circleInfo",
|
|
8179
8190
|
warning: "triangleExclamation",
|
|
8180
8191
|
success: "circleCheck",
|
|
@@ -8237,9 +8248,9 @@ const os = (u) => {
|
|
|
8237
8248
|
role: $
|
|
8238
8249
|
}, i),
|
|
8239
8250
|
/* @__PURE__ */ e.createElement("div", { className: `${E}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${E}__icon ${E}__icon-${a}` }, /* @__PURE__ */ e.createElement(
|
|
8240
|
-
|
|
8251
|
+
R,
|
|
8241
8252
|
{
|
|
8242
|
-
iconName: `${a}` in
|
|
8253
|
+
iconName: `${a}` in At ? At[a] : At.info,
|
|
8243
8254
|
iconSize: "md"
|
|
8244
8255
|
}
|
|
8245
8256
|
)), /* @__PURE__ */ e.createElement("div", { className: `${E}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h), d && /* @__PURE__ */ e.createElement("div", { className: `${E}__title` }, d), /* @__PURE__ */ e.createElement("div", { className: `${E}__message` }, r))),
|
|
@@ -8251,7 +8262,7 @@ const os = (u) => {
|
|
|
8251
8262
|
"aria-label": t,
|
|
8252
8263
|
role: "button"
|
|
8253
8264
|
},
|
|
8254
|
-
/* @__PURE__ */ e.createElement(
|
|
8265
|
+
/* @__PURE__ */ e.createElement(R, { iconSize: "md", iconName: "xmark" })
|
|
8255
8266
|
)
|
|
8256
8267
|
);
|
|
8257
8268
|
}, Dt = {
|
|
@@ -8289,7 +8300,7 @@ const os = (u) => {
|
|
|
8289
8300
|
id: s
|
|
8290
8301
|
},
|
|
8291
8302
|
/* @__PURE__ */ e.createElement("div", { className: `${d}__icon-container` }, n === "working" ? /* @__PURE__ */ e.createElement(Lt, { colorType: "monochromatic", size: "lg" }) : /* @__PURE__ */ e.createElement(
|
|
8292
|
-
|
|
8303
|
+
R,
|
|
8293
8304
|
{
|
|
8294
8305
|
iconName: `${n}` in Dt ? Dt[n] : Dt.info,
|
|
8295
8306
|
className: `${d}__icon ${d}__icon--${n}`
|
|
@@ -8346,7 +8357,7 @@ const Fs = () => {
|
|
|
8346
8357
|
currentPage: s,
|
|
8347
8358
|
itemsPerPage: n,
|
|
8348
8359
|
totalItemCount: l
|
|
8349
|
-
}) =>
|
|
8360
|
+
}) => A1(() => {
|
|
8350
8361
|
const d = Math.ceil(l / n), a = t + 5, c = 1, o = d;
|
|
8351
8362
|
if (a >= d)
|
|
8352
8363
|
return ht(1, d);
|
|
@@ -8442,7 +8453,7 @@ const Fs = () => {
|
|
|
8442
8453
|
"aria-label": d.previous,
|
|
8443
8454
|
onClick: s === 1 ? void 0 : y
|
|
8444
8455
|
},
|
|
8445
|
-
/* @__PURE__ */ e.createElement(
|
|
8456
|
+
/* @__PURE__ */ e.createElement(R, { iconName: "arrowLeft" })
|
|
8446
8457
|
)
|
|
8447
8458
|
), p.map((g, _) => g === ot ? /* @__PURE__ */ e.createElement(
|
|
8448
8459
|
"li",
|
|
@@ -8484,7 +8495,7 @@ const Fs = () => {
|
|
|
8484
8495
|
"aria-label": d.next,
|
|
8485
8496
|
onClick: s === E ? void 0 : b
|
|
8486
8497
|
},
|
|
8487
|
-
/* @__PURE__ */ e.createElement(
|
|
8498
|
+
/* @__PURE__ */ e.createElement(R, { iconName: "arrowRight" })
|
|
8488
8499
|
)
|
|
8489
8500
|
))
|
|
8490
8501
|
);
|
|
@@ -8503,7 +8514,7 @@ const Fs = () => {
|
|
|
8503
8514
|
"className"
|
|
8504
8515
|
]);
|
|
8505
8516
|
const o = s || `expansion-panel-${et()}`, i = "pds-expansion-panel";
|
|
8506
|
-
return /* @__PURE__ */ e.createElement("div", L({ className: x([i, r]) }, d), /* @__PURE__ */ e.createElement("details", { key: o, id: o, open: n }, /* @__PURE__ */ e.createElement("summary", null, /* @__PURE__ */ e.createElement("span", null, l), /* @__PURE__ */ e.createElement(
|
|
8517
|
+
return /* @__PURE__ */ e.createElement("div", L({ className: x([i, r]) }, d), /* @__PURE__ */ e.createElement("details", { key: o, id: o, open: n }, /* @__PURE__ */ e.createElement("summary", null, /* @__PURE__ */ e.createElement("span", null, l), /* @__PURE__ */ e.createElement(R, { iconName: "angleDown", className: `${i}__icon` })), /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, t)));
|
|
8507
8518
|
}, Ws = (r) => {
|
|
8508
8519
|
var d = r, {
|
|
8509
8520
|
children: t,
|
|
@@ -8606,8 +8617,8 @@ const Fs = () => {
|
|
|
8606
8617
|
"setPopoverIsOpen",
|
|
8607
8618
|
"className"
|
|
8608
8619
|
]);
|
|
8609
|
-
var Q,
|
|
8610
|
-
const [y, v] =
|
|
8620
|
+
var Q, U, Y, W;
|
|
8621
|
+
const [y, v] = Z(i);
|
|
8611
8622
|
ce(() => {
|
|
8612
8623
|
v(i);
|
|
8613
8624
|
}, [i]), ce(() => {
|
|
@@ -8619,8 +8630,8 @@ const Fs = () => {
|
|
|
8619
8630
|
]), g = s ? l : 0, _ = de(null), { refs: C, floatingStyles: M, context: z, middlewareData: w } = Ve({
|
|
8620
8631
|
placement: d,
|
|
8621
8632
|
open: y,
|
|
8622
|
-
onOpenChange(
|
|
8623
|
-
v(
|
|
8633
|
+
onOpenChange(O) {
|
|
8634
|
+
v(O), O || r();
|
|
8624
8635
|
},
|
|
8625
8636
|
middleware: [
|
|
8626
8637
|
Ct(Je + V2 + g),
|
|
@@ -8631,21 +8642,21 @@ const Fs = () => {
|
|
|
8631
8642
|
whileElementsMounted: Pe
|
|
8632
8643
|
}), H = () => {
|
|
8633
8644
|
v(!1), r && r();
|
|
8634
|
-
}, N = Ke(z), I = Ie(z), V = Se(z), { getReferenceProps:
|
|
8645
|
+
}, N = Ke(z), I = Ie(z), V = Se(z), { getReferenceProps: T, getFloatingProps: A } = Te([
|
|
8635
8646
|
N,
|
|
8636
8647
|
I,
|
|
8637
8648
|
V
|
|
8638
|
-
]), k = (
|
|
8649
|
+
]), k = (U = (Q = w.arrow) == null ? void 0 : Q.x) != null ? U : 0, P = (W = (Y = w.arrow) == null ? void 0 : Y.y) != null ? W : 0, B = k + l1 / 2, F = P + Je, { isMounted: K } = Xe(z, {
|
|
8639
8650
|
initial: {
|
|
8640
8651
|
transform: "scale(0)"
|
|
8641
8652
|
},
|
|
8642
|
-
common: ({ side:
|
|
8653
|
+
common: ({ side: O }) => ({
|
|
8643
8654
|
transformOrigin: {
|
|
8644
|
-
top: `${
|
|
8645
|
-
bottom: `${
|
|
8646
|
-
left: `calc(100% + ${Je}px) ${
|
|
8647
|
-
right: `${-Je}px ${
|
|
8648
|
-
}[
|
|
8655
|
+
top: `${B}px calc(100% + ${Je}px)`,
|
|
8656
|
+
bottom: `${B}px ${-Je}px`,
|
|
8657
|
+
left: `calc(100% + ${Je}px) ${F}px`,
|
|
8658
|
+
right: `${-Je}px ${F}px`
|
|
8659
|
+
}[O]
|
|
8649
8660
|
})
|
|
8650
8661
|
});
|
|
8651
8662
|
return /* @__PURE__ */ e.createElement("div", L({ className: x([h, u]) }, p), /* @__PURE__ */ e.createElement(
|
|
@@ -8654,22 +8665,22 @@ const Fs = () => {
|
|
|
8654
8665
|
className: `${h}__trigger`,
|
|
8655
8666
|
ref: C.setReference,
|
|
8656
8667
|
role: "button"
|
|
8657
|
-
},
|
|
8668
|
+
}, T()),
|
|
8658
8669
|
s ? /* @__PURE__ */ e.createElement("span", { className: m }, s) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, o), /* @__PURE__ */ e.createElement(
|
|
8659
|
-
|
|
8670
|
+
R,
|
|
8660
8671
|
{
|
|
8661
8672
|
iconName: c,
|
|
8662
8673
|
className: `${h}__icon`,
|
|
8663
8674
|
iconSize: "md"
|
|
8664
8675
|
}
|
|
8665
8676
|
))
|
|
8666
|
-
),
|
|
8677
|
+
), K && /* @__PURE__ */ e.createElement(u1, null, /* @__PURE__ */ e.createElement(p1, { context: z, modal: !1 }, /* @__PURE__ */ e.createElement(
|
|
8667
8678
|
"div",
|
|
8668
8679
|
L({
|
|
8669
8680
|
className: `${h}__container`,
|
|
8670
8681
|
ref: C.setFloating,
|
|
8671
8682
|
style: M
|
|
8672
|
-
},
|
|
8683
|
+
}, A()),
|
|
8673
8684
|
/* @__PURE__ */ e.createElement(
|
|
8674
8685
|
P1,
|
|
8675
8686
|
{
|
|
@@ -8691,7 +8702,7 @@ const Fs = () => {
|
|
|
8691
8702
|
className: `${h}__close`
|
|
8692
8703
|
},
|
|
8693
8704
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, "Close"),
|
|
8694
|
-
/* @__PURE__ */ e.createElement(
|
|
8705
|
+
/* @__PURE__ */ e.createElement(R, { iconName: "xmark", iconSize: "lg" })
|
|
8695
8706
|
))
|
|
8696
8707
|
))));
|
|
8697
8708
|
}, c1 = {
|
|
@@ -8772,7 +8783,7 @@ const Fs = () => {
|
|
|
8772
8783
|
)),
|
|
8773
8784
|
_ && m
|
|
8774
8785
|
);
|
|
8775
|
-
}, I2 = 3.815, S2 = 4.678,
|
|
8786
|
+
}, I2 = 3.815, S2 = 4.678, T2 = 5.96, A2 = (i) => {
|
|
8776
8787
|
var f = i, {
|
|
8777
8788
|
id: t,
|
|
8778
8789
|
innerLabel: s,
|
|
@@ -8794,7 +8805,7 @@ const Fs = () => {
|
|
|
8794
8805
|
]);
|
|
8795
8806
|
const u = t || et(), p = "pds-progress-ring", E = r ? `${p}__label` : "visually-hidden", b = `${p}__loading-text ${p}__loading-text--${a}`, y = (C) => C * 16;
|
|
8796
8807
|
let v = y(S2), $ = 7;
|
|
8797
|
-
a === "sm" && (v = y(I2), $ = $ / 1.25), a === "lg" && (v = y(
|
|
8808
|
+
a === "sm" && (v = y(I2), $ = $ / 1.25), a === "lg" && (v = y(T2), $ = $ * 1.25);
|
|
8798
8809
|
const h = v / 2 - $ / 2, m = 2 * Math.PI * h, g = m - m * l / 100;
|
|
8799
8810
|
let _;
|
|
8800
8811
|
return s ? _ = s : d ? _ = `${l}%` : _ = "", /* @__PURE__ */ e.createElement(
|
|
@@ -8882,13 +8893,13 @@ const Fs = () => {
|
|
|
8882
8893
|
className: [o, i, r].join(" ").trim().replace(/\s+/g, " ")
|
|
8883
8894
|
}, d),
|
|
8884
8895
|
s && n === "stand-alone" && /* @__PURE__ */ e.createElement("div", { className: `${o}__image` }, /* @__PURE__ */ e.createElement("img", { src: s, alt: "" })),
|
|
8885
|
-
/* @__PURE__ */ e.createElement("div", { className: `${o}__quote-wrapper` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon--before` }, /* @__PURE__ */ e.createElement(
|
|
8896
|
+
/* @__PURE__ */ e.createElement("div", { className: `${o}__quote-wrapper` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon--before` }, /* @__PURE__ */ e.createElement(R, { iconName: "quotesLeft", iconSize: "4xl" })), /* @__PURE__ */ e.createElement("div", { className: `${o}__text-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
8886
8897
|
"div",
|
|
8887
8898
|
{
|
|
8888
8899
|
className: `${o}__quote pds-quote-text pds-quote-text--lg`
|
|
8889
8900
|
},
|
|
8890
8901
|
l
|
|
8891
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${o}__attribution` }, /* @__PURE__ */ e.createElement("span", { className: `${o}__name` }, t.name), t.title && /* @__PURE__ */ e.createElement("span", { className: `${o}__title` }, ", ", t.title), t.org && /* @__PURE__ */ e.createElement("span", { className: `${o}__org` }, ", ", t.org))), /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon--after` }, /* @__PURE__ */ e.createElement(
|
|
8902
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${o}__attribution` }, /* @__PURE__ */ e.createElement("span", { className: `${o}__name` }, t.name), t.title && /* @__PURE__ */ e.createElement("span", { className: `${o}__title` }, ", ", t.title), t.org && /* @__PURE__ */ e.createElement("span", { className: `${o}__org` }, ", ", t.org))), /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon--after` }, /* @__PURE__ */ e.createElement(R, { iconName: "quotesRight", iconSize: "4xl" })))
|
|
8892
8903
|
);
|
|
8893
8904
|
};
|
|
8894
8905
|
var D2 = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.WORKING = "working", t.CHECKED = "checked", t))(D2 || {});
|
|
@@ -8906,7 +8917,7 @@ const Xs = (a) => {
|
|
|
8906
8917
|
"onCheck",
|
|
8907
8918
|
"className"
|
|
8908
8919
|
]);
|
|
8909
|
-
const [o, i] =
|
|
8920
|
+
const [o, i] = Z(
|
|
8910
8921
|
"default"
|
|
8911
8922
|
/* DEFAULT */
|
|
8912
8923
|
), f = L({
|
|
@@ -8951,7 +8962,7 @@ const Xs = (a) => {
|
|
|
8951
8962
|
`${E}__button`,
|
|
8952
8963
|
o === "working" ? `${E}__button--spinning` : ""
|
|
8953
8964
|
]), y = t !== null && t > 0 ? `${t}rem` : "100%", v = /* @__PURE__ */ e.createElement("span", { className: `${E}__tooltip-icon` }, /* @__PURE__ */ e.createElement(
|
|
8954
|
-
|
|
8965
|
+
R,
|
|
8955
8966
|
{
|
|
8956
8967
|
iconName: "rotate",
|
|
8957
8968
|
iconSize: "md",
|
|
@@ -9007,7 +9018,7 @@ const Xs = (a) => {
|
|
|
9007
9018
|
l != null ? l : ""
|
|
9008
9019
|
])
|
|
9009
9020
|
}, r),
|
|
9010
|
-
/* @__PURE__ */ e.createElement(
|
|
9021
|
+
/* @__PURE__ */ e.createElement(R, { iconName: i, iconSize: "2xl" }),
|
|
9011
9022
|
/* @__PURE__ */ e.createElement("h1", null, t),
|
|
9012
9023
|
s && /* @__PURE__ */ e.createElement(it, { label: o, color: "neutral", size: "md" })
|
|
9013
9024
|
);
|
|
@@ -9069,7 +9080,7 @@ const Xs = (a) => {
|
|
|
9069
9080
|
target: "_blank",
|
|
9070
9081
|
"aria-label": Ot[a].label
|
|
9071
9082
|
},
|
|
9072
|
-
/* @__PURE__ */ e.createElement(
|
|
9083
|
+
/* @__PURE__ */ e.createElement(R, { iconName: Ot[a].icon, iconSize: "xl" })
|
|
9073
9084
|
)))
|
|
9074
9085
|
);
|
|
9075
9086
|
}, Js = (d) => {
|
|
@@ -9118,34 +9129,34 @@ const Xs = (a) => {
|
|
|
9118
9129
|
const a = "pds-stepper", c = "pds-stepper-mobile", o = de(), [i] = yt(o), f = i.width, u = Number(
|
|
9119
9130
|
getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "")
|
|
9120
9131
|
) * 16, p = -40, E = 2, b = 5, y = t.length, v = t.map((m) => m.isCurrent).lastIndexOf(!0), $ = t.map((m, g) => {
|
|
9121
|
-
const _ = g + 1, C = g === v, M = g < v, z = m.hasError && C, H = (f - y * u) / (y + (y - 2)), N = u + H * 2, I = u + H, V = H + p * -1,
|
|
9132
|
+
const _ = g + 1, C = g === v, M = g < v, z = m.hasError && C, H = (f - y * u) / (y + (y - 2)), N = u + H * 2, I = u + H, V = H + p * -1, T = g === 0, A = g === y - 1;
|
|
9122
9133
|
let k = N;
|
|
9123
|
-
(
|
|
9124
|
-
const P = `${a}__step`,
|
|
9125
|
-
C &&
|
|
9126
|
-
let
|
|
9127
|
-
M && (
|
|
9128
|
-
const
|
|
9129
|
-
|
|
9134
|
+
(T || A) && (k = I);
|
|
9135
|
+
const P = `${a}__step`, B = [P];
|
|
9136
|
+
C && B.push(`${P}--current`), M && B.push(`${P}--complete`), z && B.push(`${P}--error`);
|
|
9137
|
+
let F = `${s.step} ${_}`;
|
|
9138
|
+
M && (F = `${s.step} ${_}, ${s.completed}`), z && (F = `${s.step} ${_}, ${s.hasError}`);
|
|
9139
|
+
const K = M ? /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${a}__step-indicator` }, /* @__PURE__ */ e.createElement(
|
|
9140
|
+
R,
|
|
9130
9141
|
{
|
|
9131
9142
|
iconName: "check",
|
|
9132
9143
|
iconSize: "md",
|
|
9133
9144
|
className: `${a}__step-complete-icon`
|
|
9134
9145
|
}
|
|
9135
9146
|
)) : /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${a}__step-indicator` }), Q = /* @__PURE__ */ e.createElement("div", { className: `${a}__step-label` }, m.label);
|
|
9136
|
-
let
|
|
9147
|
+
let U = /* @__PURE__ */ e.createElement("div", { className: `${a}__step-content` }, Q, K);
|
|
9137
9148
|
if (M && m.callback) {
|
|
9138
|
-
const Y = (
|
|
9139
|
-
m.callback(m),
|
|
9149
|
+
const Y = (W) => {
|
|
9150
|
+
m.callback(m), W.preventDefault();
|
|
9140
9151
|
};
|
|
9141
|
-
|
|
9152
|
+
U = /* @__PURE__ */ e.createElement(
|
|
9142
9153
|
"button",
|
|
9143
9154
|
{
|
|
9144
9155
|
className: `${a}__step-content`,
|
|
9145
9156
|
onClick: Y
|
|
9146
9157
|
},
|
|
9147
9158
|
Q,
|
|
9148
|
-
|
|
9159
|
+
K
|
|
9149
9160
|
);
|
|
9150
9161
|
}
|
|
9151
9162
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -9153,14 +9164,14 @@ const Xs = (a) => {
|
|
|
9153
9164
|
{
|
|
9154
9165
|
key: m.id,
|
|
9155
9166
|
id: m.id,
|
|
9156
|
-
"aria-label":
|
|
9167
|
+
"aria-label": F,
|
|
9157
9168
|
"aria-posinset": _,
|
|
9158
9169
|
"aria-setsize": y,
|
|
9159
9170
|
"aria-current": C ? "step" : null,
|
|
9160
|
-
className:
|
|
9171
|
+
className: B.join(" ").trim().replace(/\s+/g, " "),
|
|
9161
9172
|
style: { width: k }
|
|
9162
9173
|
},
|
|
9163
|
-
!
|
|
9174
|
+
!T && /* @__PURE__ */ e.createElement(
|
|
9164
9175
|
"span",
|
|
9165
9176
|
{
|
|
9166
9177
|
className: `${a}__connector ${a}__connector--before`,
|
|
@@ -9170,8 +9181,8 @@ const Xs = (a) => {
|
|
|
9170
9181
|
}
|
|
9171
9182
|
}
|
|
9172
9183
|
),
|
|
9173
|
-
|
|
9174
|
-
!
|
|
9184
|
+
U,
|
|
9185
|
+
!A && /* @__PURE__ */ e.createElement(
|
|
9175
9186
|
"span",
|
|
9176
9187
|
{
|
|
9177
9188
|
className: `${a}__connector ${a}__connector--after`,
|
|
@@ -9195,7 +9206,7 @@ const Xs = (a) => {
|
|
|
9195
9206
|
className: `${c}__step`
|
|
9196
9207
|
},
|
|
9197
9208
|
/* @__PURE__ */ e.createElement("div", { className: `${c}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
9198
|
-
|
|
9209
|
+
A2,
|
|
9199
9210
|
{
|
|
9200
9211
|
label: "Step progress",
|
|
9201
9212
|
size: "sm",
|
|
@@ -9205,7 +9216,7 @@ const Xs = (a) => {
|
|
|
9205
9216
|
}
|
|
9206
9217
|
)),
|
|
9207
9218
|
/* @__PURE__ */ e.createElement("div", { className: `${c}__step-text` }, /* @__PURE__ */ e.createElement("div", { className: `${c}__step-label` }, z && /* @__PURE__ */ e.createElement(e.Fragment, null, V, /* @__PURE__ */ e.createElement(
|
|
9208
|
-
|
|
9219
|
+
R,
|
|
9209
9220
|
{
|
|
9210
9221
|
iconName: "diamondExclamation",
|
|
9211
9222
|
iconSize: "md",
|
|
@@ -9241,7 +9252,7 @@ const Xs = (a) => {
|
|
|
9241
9252
|
"rowData",
|
|
9242
9253
|
"className"
|
|
9243
9254
|
]);
|
|
9244
|
-
const [a] =
|
|
9255
|
+
const [a] = Z(t), [c, o] = Z(s), [i, f] = Z({ order: "asc", key: "" }), u = (v) => {
|
|
9245
9256
|
o(c.sort(($, h) => $[v].localeCompare(h[v]))), f({ order: "desc", key: v });
|
|
9246
9257
|
}, p = (v) => {
|
|
9247
9258
|
o(c.sort(($, h) => h[v].localeCompare($[v]))), f({ order: "asc", key: v });
|
|
@@ -9267,14 +9278,14 @@ const Xs = (a) => {
|
|
|
9267
9278
|
{
|
|
9268
9279
|
className: `${y}__sort-button-top ${$ != Number(i.key) && i.key !== "" ? "pds-table__sort-innactive" : Number(i.key) == $ ? i.order : "asc"}`
|
|
9269
9280
|
},
|
|
9270
|
-
/* @__PURE__ */ e.createElement(
|
|
9281
|
+
/* @__PURE__ */ e.createElement(R, { iconName: "caretUp", iconSize: "sm" })
|
|
9271
9282
|
),
|
|
9272
9283
|
/* @__PURE__ */ e.createElement(
|
|
9273
9284
|
"span",
|
|
9274
9285
|
{
|
|
9275
9286
|
className: `${y}__sort-button-bottom ${Number(i.key) == $ ? i.order : "asc"}`
|
|
9276
9287
|
},
|
|
9277
|
-
/* @__PURE__ */ e.createElement(
|
|
9288
|
+
/* @__PURE__ */ e.createElement(R, { iconName: "caretDown", iconSize: "sm" })
|
|
9278
9289
|
)
|
|
9279
9290
|
)) : /* @__PURE__ */ e.createElement("span", null, v.title))))), /* @__PURE__ */ e.createElement("tbody", null, c.map((v, $) => b(v, $)))));
|
|
9280
9291
|
}, sn = (i) => {
|
|
@@ -9316,7 +9327,7 @@ const Xs = (a) => {
|
|
|
9316
9327
|
"|",
|
|
9317
9328
|
"~"
|
|
9318
9329
|
], E = `#${a} h2:not(.${r}), h3:not(.${r})`, b = () => {
|
|
9319
|
-
const [z, w] =
|
|
9330
|
+
const [z, w] = Z([]);
|
|
9320
9331
|
return ce(() => {
|
|
9321
9332
|
const H = Array.from(
|
|
9322
9333
|
document.querySelectorAll(E)
|
|
@@ -9341,23 +9352,23 @@ const Xs = (a) => {
|
|
|
9341
9352
|
title: N
|
|
9342
9353
|
});
|
|
9343
9354
|
}), w;
|
|
9344
|
-
}, { nestedHeadings: v } = b(), [$, h] =
|
|
9355
|
+
}, { nestedHeadings: v } = b(), [$, h] = Z();
|
|
9345
9356
|
((z) => {
|
|
9346
9357
|
const w = de({});
|
|
9347
9358
|
ce(() => {
|
|
9348
9359
|
const H = (V) => {
|
|
9349
9360
|
w.current = V.reduce((k, P) => (k[P.target.id] = P, k), w.current);
|
|
9350
|
-
const
|
|
9361
|
+
const T = [];
|
|
9351
9362
|
Object.keys(w.current).forEach((k) => {
|
|
9352
9363
|
const P = w.current[k];
|
|
9353
|
-
P.isIntersecting &&
|
|
9364
|
+
P.isIntersecting && T.push(P);
|
|
9354
9365
|
});
|
|
9355
|
-
const
|
|
9356
|
-
if (
|
|
9357
|
-
z(
|
|
9358
|
-
else if (
|
|
9359
|
-
const k =
|
|
9360
|
-
(P,
|
|
9366
|
+
const A = (k) => I.findIndex((P) => P.id === k);
|
|
9367
|
+
if (T.length === 1)
|
|
9368
|
+
z(T[0].target.id);
|
|
9369
|
+
else if (T.length > 1) {
|
|
9370
|
+
const k = T.sort(
|
|
9371
|
+
(P, B) => A(P.target.id) - A(B.target.id)
|
|
9361
9372
|
);
|
|
9362
9373
|
z(k[0].target.id);
|
|
9363
9374
|
}
|
|
@@ -9439,7 +9450,7 @@ const Xs = (a) => {
|
|
|
9439
9450
|
"tabs",
|
|
9440
9451
|
"className"
|
|
9441
9452
|
]);
|
|
9442
|
-
const i = "pds-tabs", [f, u] =
|
|
9453
|
+
const i = "pds-tabs", [f, u] = Z(l != null ? l : s);
|
|
9443
9454
|
ce(() => {
|
|
9444
9455
|
l !== void 0 && u(l);
|
|
9445
9456
|
}, [l]);
|
|
@@ -9514,7 +9525,7 @@ const Xs = (a) => {
|
|
|
9514
9525
|
onClick: v ? null : p,
|
|
9515
9526
|
type: "button"
|
|
9516
9527
|
},
|
|
9517
|
-
/* @__PURE__ */ e.createElement("div", { key: $, className: `${i}__tab-label` }, $ ? /* @__PURE__ */ e.createElement(
|
|
9528
|
+
/* @__PURE__ */ e.createElement("div", { key: $, className: `${i}__tab-label` }, $ ? /* @__PURE__ */ e.createElement(R, { iconName: $, iconSize: "md" }) : null, " ", m, r[_].tally ? /* @__PURE__ */ e.createElement(_t, { label: g.label, type: g.type }) : null)
|
|
9518
9529
|
))
|
|
9519
9530
|
), r.map(({ disabled: v, icon: $, panelContent: h, tabLabel: m, tally: g }, _) => /* @__PURE__ */ e.createElement(
|
|
9520
9531
|
"div",
|
|
@@ -9540,16 +9551,16 @@ const Xs = (a) => {
|
|
|
9540
9551
|
onClick: v ? null : p,
|
|
9541
9552
|
type: "button"
|
|
9542
9553
|
},
|
|
9543
|
-
/* @__PURE__ */ e.createElement("div", { key: $, className: `${i}__tab-label` }, $ ? /* @__PURE__ */ e.createElement(
|
|
9554
|
+
/* @__PURE__ */ e.createElement("div", { key: $, className: `${i}__tab-label` }, $ ? /* @__PURE__ */ e.createElement(R, { iconSize: "md", iconName: $ }) : null, " ", m, r[_].tally ? /* @__PURE__ */ e.createElement(_t, { label: g.label, type: g.type }) : null),
|
|
9544
9555
|
_ == f ? /* @__PURE__ */ e.createElement(
|
|
9545
|
-
|
|
9556
|
+
R,
|
|
9546
9557
|
{
|
|
9547
9558
|
iconName: "angleUp",
|
|
9548
9559
|
iconSize: "md",
|
|
9549
9560
|
className: `${i}__panel-content`
|
|
9550
9561
|
}
|
|
9551
9562
|
) : /* @__PURE__ */ e.createElement(
|
|
9552
|
-
|
|
9563
|
+
R,
|
|
9553
9564
|
{
|
|
9554
9565
|
iconName: "angleDown",
|
|
9555
9566
|
iconSize: "md",
|
|
@@ -9610,7 +9621,7 @@ const O2 = (t) => {
|
|
|
9610
9621
|
"tagLabel",
|
|
9611
9622
|
"className"
|
|
9612
9623
|
]);
|
|
9613
|
-
const [f, u] =
|
|
9624
|
+
const [f, u] = Z(!0), p = "pds-tag", E = r ? `${p}--${r}` : `${p}--${O2(d)}`, b = f ? null : "pds-tag--hide", y = () => {
|
|
9614
9625
|
u((m) => !m);
|
|
9615
9626
|
};
|
|
9616
9627
|
let v, $, h;
|
|
@@ -9633,7 +9644,7 @@ const O2 = (t) => {
|
|
|
9633
9644
|
}
|
|
9634
9645
|
},
|
|
9635
9646
|
/* @__PURE__ */ e.createElement(
|
|
9636
|
-
|
|
9647
|
+
R,
|
|
9637
9648
|
{
|
|
9638
9649
|
iconName: "xmark",
|
|
9639
9650
|
className: `${p}__remove-icon`,
|
|
@@ -9984,7 +9995,7 @@ const O2 = (t) => {
|
|
|
9984
9995
|
export {
|
|
9985
9996
|
Ft as Avatar,
|
|
9986
9997
|
ln as AvatarTileList,
|
|
9987
|
-
|
|
9998
|
+
As as Banner,
|
|
9988
9999
|
Q2 as BranchDiff,
|
|
9989
10000
|
ys as Breadcrumb,
|
|
9990
10001
|
dt as Button,
|
|
@@ -10019,7 +10030,7 @@ export {
|
|
|
10019
10030
|
p2 as FooterHeading,
|
|
10020
10031
|
ps as FooterLinks,
|
|
10021
10032
|
dn as GlobalWrapper,
|
|
10022
|
-
|
|
10033
|
+
R as Icon,
|
|
10023
10034
|
vt as IconButton,
|
|
10024
10035
|
it as IndicatorBadge,
|
|
10025
10036
|
Ds as InlineMessage,
|
|
@@ -10040,7 +10051,7 @@ export {
|
|
|
10040
10051
|
qs as Popover,
|
|
10041
10052
|
cs as PricingCard,
|
|
10042
10053
|
js as ProgressBar,
|
|
10043
|
-
|
|
10054
|
+
A2 as ProgressRing,
|
|
10044
10055
|
Ks as PullQuote,
|
|
10045
10056
|
vs as RadioGroup,
|
|
10046
10057
|
Xs as RefreshChecker,
|
|
@@ -10086,7 +10097,7 @@ export {
|
|
|
10086
10097
|
hn as TwoItemLayout,
|
|
10087
10098
|
Ss as UserMenu,
|
|
10088
10099
|
ts as UtilityButton,
|
|
10089
|
-
|
|
10100
|
+
Ts as WorkspaceSelector,
|
|
10090
10101
|
s1 as badgeTypes,
|
|
10091
10102
|
Y2 as iconList,
|
|
10092
10103
|
r1 as tagColors,
|