@pantheon-systems/pds-toolkit-react 1.0.0-dev.249 → 1.0.0-dev.250
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/_dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import './index.css';var Wt = Object.defineProperty, Ut = Object.defineProperties;
|
|
2
2
|
var Gt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var _2 = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var lt = Object.prototype.hasOwnProperty, at = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var st = (t, n, s) => n in t ? Wt(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s, y = (t, n) => {
|
|
6
6
|
for (var s in n || (n = {}))
|
|
7
|
-
|
|
7
|
+
lt.call(n, s) && st(t, s, n[s]);
|
|
8
8
|
if (_2)
|
|
9
9
|
for (var s of _2(n))
|
|
10
|
-
|
|
10
|
+
at.call(n, s) && st(t, s, n[s]);
|
|
11
11
|
return t;
|
|
12
12
|
}, me = (t, n) => Ut(t, Gt(n));
|
|
13
13
|
var R = (t, n) => {
|
|
14
14
|
var s = {};
|
|
15
15
|
for (var a in t)
|
|
16
|
-
|
|
16
|
+
lt.call(t, a) && n.indexOf(a) < 0 && (s[a] = t[a]);
|
|
17
17
|
if (t != null && _2)
|
|
18
18
|
for (var a of _2(t))
|
|
19
|
-
n.indexOf(a) < 0 &&
|
|
19
|
+
n.indexOf(a) < 0 && at.call(t, a) && (s[a] = t[a]);
|
|
20
20
|
return s;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var ct = (t, n, s) => new Promise((a, r) => {
|
|
23
23
|
var m = (o) => {
|
|
24
24
|
try {
|
|
25
25
|
l(s.next(o));
|
|
@@ -35,7 +35,7 @@ var A2 = (t, n, s) => new Promise((a, r) => {
|
|
|
35
35
|
}, l = (o) => o.done ? a(o.value) : Promise.resolve(o.value).then(m, c);
|
|
36
36
|
l((s = s.apply(t, n)).next());
|
|
37
37
|
});
|
|
38
|
-
import e, { Children as vt, isValidElement as He, useState as X, cloneElement as Se, createElement as jt, forwardRef as je, useEffect as
|
|
38
|
+
import e, { Children as vt, isValidElement as He, useState as X, cloneElement as Se, createElement as jt, forwardRef as je, useEffect as se, useRef as ce, createContext as bt, useContext as be, useLayoutEffect as Kt, useCallback as G2, useMemo as $t, createRef as Xt, Fragment as Yt } from "react";
|
|
39
39
|
import wt from "hash-sum";
|
|
40
40
|
import { useFloating as Ae, offset as k2, flip as z2, shift as N2, autoUpdate as Pe, useHover as $2, useFocus as yt, useDismiss as Te, useRole as De, useInteractions as Re, FloatingPortal as Lt, useId as Qt, useClick as Xe, useListNavigation as i2, useTransitionStyles as Ye, FloatingOverlay as Jt, FloatingFocusManager as Ht, safePolygon as Mt, arrow as e1, FloatingArrow as t1 } from "@floating-ui/react";
|
|
41
41
|
import { useHotkeys as n1 } from "react-hotkeys-hook";
|
|
@@ -71,7 +71,7 @@ const a2 = () => Math.random().toString(32).substring(2, 13), kt = (t, n) => {
|
|
|
71
71
|
"iconSize",
|
|
72
72
|
"className"
|
|
73
73
|
]);
|
|
74
|
-
const c = `pds-icon pds-icon--${n} pds-icon--${t}`, l = `0 0 ${
|
|
74
|
+
const c = `pds-icon pds-icon--${n} pds-icon--${t}`, l = `0 0 ${j2[t].width} 512`, o = {
|
|
75
75
|
sm: "0.8rem",
|
|
76
76
|
md: "1rem",
|
|
77
77
|
lg: "1.2rem",
|
|
@@ -92,11 +92,11 @@ const a2 = () => Math.random().toString(32).substring(2, 13), kt = (t, n) => {
|
|
|
92
92
|
preserveAspectRatio: "xMidYMid meet",
|
|
93
93
|
focusable: "false",
|
|
94
94
|
className: [c, s != null ? s : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
95
|
-
style: { flexShrink: 0 }
|
|
95
|
+
style: { flexShrink: 0, overflow: "visible" }
|
|
96
96
|
}, a),
|
|
97
|
-
/* @__PURE__ */ e.createElement("path", { d:
|
|
97
|
+
/* @__PURE__ */ e.createElement("path", { d: j2[t].path, fill: "currentColor" })
|
|
98
98
|
);
|
|
99
|
-
},
|
|
99
|
+
}, j2 = {
|
|
100
100
|
angleDown: {
|
|
101
101
|
path: "M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z",
|
|
102
102
|
width: "440"
|
|
@@ -785,7 +785,7 @@ const a2 = () => Math.random().toString(32).substring(2, 13), kt = (t, n) => {
|
|
|
785
785
|
path: "M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z",
|
|
786
786
|
width: "576"
|
|
787
787
|
}
|
|
788
|
-
}, vn = Object.keys(
|
|
788
|
+
}, vn = Object.keys(j2), ot = [
|
|
789
789
|
"dawn",
|
|
790
790
|
"dragonfruit",
|
|
791
791
|
"dusk",
|
|
@@ -805,7 +805,7 @@ const a2 = () => Math.random().toString(32).substring(2, 13), kt = (t, n) => {
|
|
|
805
805
|
], d1 = (t) => {
|
|
806
806
|
const n = parseInt(wt(t), 16);
|
|
807
807
|
return ot[n % ot.length];
|
|
808
|
-
},
|
|
808
|
+
}, K2 = (o) => {
|
|
809
809
|
var u = o, {
|
|
810
810
|
ariaLabel: t,
|
|
811
811
|
hasUserFallback: n = !1,
|
|
@@ -875,7 +875,7 @@ const a2 = () => Math.random().toString(32).substring(2, 13), kt = (t, n) => {
|
|
|
875
875
|
}, r),
|
|
876
876
|
/* @__PURE__ */ e.createElement("span", { className: `${l}__label` }, t)
|
|
877
877
|
);
|
|
878
|
-
},
|
|
878
|
+
}, Y2 = (l) => {
|
|
879
879
|
var o = l, {
|
|
880
880
|
color: t = "transparent",
|
|
881
881
|
hasStatusIndicator: n = !1,
|
|
@@ -928,7 +928,7 @@ const a2 = () => Math.random().toString(32).substring(2, 13), kt = (t, n) => {
|
|
|
928
928
|
);
|
|
929
929
|
};
|
|
930
930
|
w2.displayName = "Tally";
|
|
931
|
-
const
|
|
931
|
+
const A2 = 300, m1 = 400, xe = (p) => {
|
|
932
932
|
var i = p, {
|
|
933
933
|
content: t,
|
|
934
934
|
customTrigger: n = null,
|
|
@@ -1084,7 +1084,7 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1084
1084
|
y({ className: N([o, r]), id: s }, m),
|
|
1085
1085
|
n
|
|
1086
1086
|
);
|
|
1087
|
-
},
|
|
1087
|
+
}, Q2 = (t) => typeof t == "string" || typeof t == "number" ? String(t) : e.isValidElement(t) ? e.Children.toArray(t.props.children).map(Q2).join("") : "", ne = {
|
|
1088
1088
|
base: "pds-input",
|
|
1089
1089
|
disabled: "pds-is-disabled",
|
|
1090
1090
|
required: "pds-is-required",
|
|
@@ -1156,7 +1156,7 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1156
1156
|
}) => (n1("/", (a) => {
|
|
1157
1157
|
const r = document.getElementById(t);
|
|
1158
1158
|
r && r.focus(), a.preventDefault();
|
|
1159
|
-
}), /* @__PURE__ */ e.createElement("div", { className: "pds-input-search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n), /* @__PURE__ */ e.createElement(j, { iconName: "slashForward", iconSize: "md" }))),
|
|
1159
|
+
}), /* @__PURE__ */ e.createElement("div", { className: "pds-input-search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n), /* @__PURE__ */ e.createElement(j, { iconName: "slashForward", iconSize: "md" }))), J2 = ({
|
|
1160
1160
|
id: t,
|
|
1161
1161
|
clearLabel: n,
|
|
1162
1162
|
handleClearInput: s
|
|
@@ -1188,7 +1188,7 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1188
1188
|
s,
|
|
1189
1189
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden", "aria-live": "polite" }, r && `${a} ${m}`)
|
|
1190
1190
|
);
|
|
1191
|
-
},
|
|
1191
|
+
}, et = (s) => {
|
|
1192
1192
|
var a = s, { label: t } = a, n = R(a, ["label"]);
|
|
1193
1193
|
return /* @__PURE__ */ e.createElement("span", y({ className: "visually-hidden" }, n), t);
|
|
1194
1194
|
}, dt = (t) => "options" in t, y2 = je(
|
|
@@ -1232,7 +1232,7 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1232
1232
|
"aria-hidden": "true"
|
|
1233
1233
|
}, c),
|
|
1234
1234
|
/* @__PURE__ */ e.createElement("span", { className: `${u}__icon` }),
|
|
1235
|
-
a && !n ? /* @__PURE__ */ e.createElement("span", { className: `${u}__label` }, s) : /* @__PURE__ */ e.createElement(
|
|
1235
|
+
a && !n ? /* @__PURE__ */ e.createElement("span", { className: `${u}__label` }, s) : /* @__PURE__ */ e.createElement(et, { label: s })
|
|
1236
1236
|
);
|
|
1237
1237
|
}, C2 = je(
|
|
1238
1238
|
(b, w) => {
|
|
@@ -1289,7 +1289,7 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
);
|
|
1291
1291
|
let M = [o];
|
|
1292
|
-
a == "icon-start" && r && M.unshift(H), a == "icon-end" && r && M.push(H), l && (M = [H], t =
|
|
1292
|
+
a == "icon-start" && r && M.unshift(H), a == "icon-end" && r && M.push(H), l && (M = [H], t = Q2(o));
|
|
1293
1293
|
const L = /* @__PURE__ */ e.createElement(
|
|
1294
1294
|
"button",
|
|
1295
1295
|
y({
|
|
@@ -1363,14 +1363,14 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1363
1363
|
) : /* @__PURE__ */ e.createElement("span", y({ className: N([p, l != null ? l : ""]) }, o), d);
|
|
1364
1364
|
}, p1 = (t, n) => {
|
|
1365
1365
|
const [s, a] = X(!1), r = n == null ? void 0 : n.duration;
|
|
1366
|
-
return
|
|
1366
|
+
return se(() => {
|
|
1367
1367
|
let c;
|
|
1368
1368
|
return s && r && (c = setTimeout(() => {
|
|
1369
1369
|
a(!1);
|
|
1370
1370
|
}, r)), () => {
|
|
1371
1371
|
c && clearTimeout(c);
|
|
1372
1372
|
};
|
|
1373
|
-
}, [s, r]), [s, () =>
|
|
1373
|
+
}, [s, r]), [s, () => ct(void 0, null, function* () {
|
|
1374
1374
|
if (navigator.clipboard)
|
|
1375
1375
|
try {
|
|
1376
1376
|
yield navigator.clipboard.writeText(t), a(!0);
|
|
@@ -1538,7 +1538,7 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1538
1538
|
const t = typeof window != "undefined", [n, s] = X(
|
|
1539
1539
|
t && window.innerWidth !== void 0 ? window.innerWidth : 1024
|
|
1540
1540
|
);
|
|
1541
|
-
return
|
|
1541
|
+
return se(() => {
|
|
1542
1542
|
if (!t) return;
|
|
1543
1543
|
s(window.innerWidth);
|
|
1544
1544
|
const a = () => {
|
|
@@ -1557,10 +1557,10 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1557
1557
|
mobileMenuMaxWidth: n,
|
|
1558
1558
|
windowWidth: s
|
|
1559
1559
|
};
|
|
1560
|
-
return
|
|
1560
|
+
return se(() => {
|
|
1561
1561
|
a ? document.body.classList.add("pds-no-scroll-x") : document.body.classList.remove("pds-no-scroll-x");
|
|
1562
1562
|
}, [a]), /* @__PURE__ */ e.createElement(Le.Provider, { value: r }, t);
|
|
1563
|
-
},
|
|
1563
|
+
}, T2 = (t) => t.isSeparator, D2 = (t) => t.isHeading, R2 = (t) => t.isLink, g1 = (t) => t.isNode, St = (b) => {
|
|
1564
1564
|
var _ = b, {
|
|
1565
1565
|
disabled: t,
|
|
1566
1566
|
displayType: n = "icon-end",
|
|
@@ -1620,21 +1620,21 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1620
1620
|
window.removeEventListener("mousedown", we, !0);
|
|
1621
1621
|
};
|
|
1622
1622
|
}, [J, M]);
|
|
1623
|
-
const ee = (G,
|
|
1624
|
-
A(G), V(
|
|
1623
|
+
const ee = (G, le) => {
|
|
1624
|
+
A(G), V(le);
|
|
1625
1625
|
}, pe = () => {
|
|
1626
1626
|
te(!0), F(!0);
|
|
1627
1627
|
}, ie = () => {
|
|
1628
1628
|
te(!1), ee(void 0, -1), Q.current.querySelector(`#${O}`).focus();
|
|
1629
1629
|
}, Ce = (G) => {
|
|
1630
1630
|
G = G.toLowerCase();
|
|
1631
|
-
let
|
|
1631
|
+
let le = !1;
|
|
1632
1632
|
for (let Y = I + 1; Y < K.current.length; Y++)
|
|
1633
1633
|
if (K.current[Y].label.toLowerCase().startsWith(G)) {
|
|
1634
|
-
ee(T.current[Y], Y),
|
|
1634
|
+
ee(T.current[Y], Y), le = !0;
|
|
1635
1635
|
break;
|
|
1636
1636
|
}
|
|
1637
|
-
if (
|
|
1637
|
+
if (le === !1) {
|
|
1638
1638
|
for (let Y = 0; Y < I; Y++)
|
|
1639
1639
|
if (K.current[Y].label.toLowerCase().startsWith(G)) {
|
|
1640
1640
|
ee(T.current[Y], Y);
|
|
@@ -1642,22 +1642,22 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
1644
|
}, _e = (G) => {
|
|
1645
|
-
const
|
|
1645
|
+
const le = T.current.indexOf(G), Y = K.current[le];
|
|
1646
1646
|
if (Y.callback && !Y.disabled && Y.callback(Y), Y.linkContent && !Y.disabled) {
|
|
1647
|
-
const
|
|
1648
|
-
|
|
1647
|
+
const ae = Q.current.querySelector(`#${G} a`);
|
|
1648
|
+
ae && ae.click();
|
|
1649
1649
|
}
|
|
1650
1650
|
}, re = () => {
|
|
1651
1651
|
const G = T.current[I];
|
|
1652
1652
|
_e(G);
|
|
1653
1653
|
}, he = (G) => {
|
|
1654
|
-
J ? ie() : pe(), o && o(), F((
|
|
1654
|
+
J ? ie() : pe(), o && o(), F((le) => !le), G.stopPropagation(), G.preventDefault();
|
|
1655
1655
|
}, ue = (G) => {
|
|
1656
1656
|
_e(G.currentTarget.id), S || ie();
|
|
1657
1657
|
}, de = (G) => {
|
|
1658
|
-
const
|
|
1658
|
+
const le = G.key;
|
|
1659
1659
|
let Y = !1;
|
|
1660
|
-
switch (
|
|
1660
|
+
switch (le) {
|
|
1661
1661
|
case " ":
|
|
1662
1662
|
case "Enter":
|
|
1663
1663
|
case "ArrowDown":
|
|
@@ -1670,23 +1670,23 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1670
1670
|
break;
|
|
1671
1671
|
case "Up":
|
|
1672
1672
|
case "ArrowUp": {
|
|
1673
|
-
const
|
|
1674
|
-
pe(), ee(T.current[
|
|
1673
|
+
const ae = T.current.length - 1;
|
|
1674
|
+
pe(), ee(T.current[ae], ae), Y = !0;
|
|
1675
1675
|
break;
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
1678
|
Y && (G.stopPropagation(), G.preventDefault());
|
|
1679
1679
|
}, $e = (G) => {
|
|
1680
|
-
const
|
|
1681
|
-
let Y = !1,
|
|
1680
|
+
const le = G.key;
|
|
1681
|
+
let Y = !1, ae = "", oe = 0;
|
|
1682
1682
|
function fe(ge) {
|
|
1683
1683
|
return ge.length === 1 && ge.match(/\S/);
|
|
1684
1684
|
}
|
|
1685
1685
|
if (!(G.ctrlKey || G.altKey || G.metaKey)) {
|
|
1686
1686
|
if (G.shiftKey)
|
|
1687
|
-
fe(
|
|
1687
|
+
fe(le) && (Ce(le), Y = !0), G.key === "Tab" && (ie(), Y = !0);
|
|
1688
1688
|
else
|
|
1689
|
-
switch (
|
|
1689
|
+
switch (le) {
|
|
1690
1690
|
case " ":
|
|
1691
1691
|
case "Enter":
|
|
1692
1692
|
ie(), re(), Y = !0;
|
|
@@ -1697,11 +1697,11 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1697
1697
|
break;
|
|
1698
1698
|
case "Up":
|
|
1699
1699
|
case "ArrowUp":
|
|
1700
|
-
oe = I - 1, oe < 0 && (oe = T.current.length - 1),
|
|
1700
|
+
oe = I - 1, oe < 0 && (oe = T.current.length - 1), ae = T.current[oe], ee(ae, oe), Y = !0;
|
|
1701
1701
|
break;
|
|
1702
1702
|
case "ArrowDown":
|
|
1703
1703
|
case "Down":
|
|
1704
|
-
oe = I + 1, oe > T.current.length - 1 && (oe = 0),
|
|
1704
|
+
oe = I + 1, oe > T.current.length - 1 && (oe = 0), ae = T.current[oe], ee(ae, oe), Y = !0;
|
|
1705
1705
|
break;
|
|
1706
1706
|
case "Home":
|
|
1707
1707
|
case "PageUp":
|
|
@@ -1717,36 +1717,36 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1717
1717
|
ie();
|
|
1718
1718
|
break;
|
|
1719
1719
|
default:
|
|
1720
|
-
fe(
|
|
1720
|
+
fe(le) && (Ce(le), Y = !0);
|
|
1721
1721
|
break;
|
|
1722
1722
|
}
|
|
1723
1723
|
Y && (G.stopPropagation(), G.preventDefault());
|
|
1724
1724
|
}
|
|
1725
1725
|
}, we = (G) => {
|
|
1726
1726
|
Q.current && !Q.current.contains(G.target) && J && ie();
|
|
1727
|
-
}, Ie = (G,
|
|
1728
|
-
const fe = Y ? `-group-${Y}` : "", ge = O + fe + "-item-" + (
|
|
1729
|
-
if (
|
|
1727
|
+
}, Ie = (G, le, Y = "", ae = "", ...oe) => {
|
|
1728
|
+
const fe = Y ? `-group-${Y}` : "", ge = O + fe + "-item-" + (le + 1), Ee = G.id ? G.id : ge;
|
|
1729
|
+
if (T2(G))
|
|
1730
1730
|
return /* @__PURE__ */ e.createElement("li", { role: "separator", key: Ee });
|
|
1731
|
-
if (
|
|
1731
|
+
if (D2(G))
|
|
1732
1732
|
return /* @__PURE__ */ e.createElement(
|
|
1733
1733
|
"li",
|
|
1734
1734
|
{
|
|
1735
1735
|
role: "presentation",
|
|
1736
|
-
id:
|
|
1737
|
-
key:
|
|
1736
|
+
id: ae || null,
|
|
1737
|
+
key: ae,
|
|
1738
1738
|
className: `${B}__listbox-heading`
|
|
1739
1739
|
},
|
|
1740
1740
|
G.label
|
|
1741
1741
|
);
|
|
1742
1742
|
if (g1(G))
|
|
1743
1743
|
return /* @__PURE__ */ e.createElement("li", { role: "presentation", key: Ee }, G.nodeContent);
|
|
1744
|
-
if (
|
|
1744
|
+
if (R2(G) || G.label) {
|
|
1745
1745
|
T.current.push(Ee), K.current.push(G);
|
|
1746
1746
|
let n2 = !1;
|
|
1747
1747
|
q !== "" && !G.disabled && (n2 = q === Ee);
|
|
1748
1748
|
let ze;
|
|
1749
|
-
if (G.label && (ze = [G.label]),
|
|
1749
|
+
if (G.label && (ze = [G.label]), R2(G) && (ze = [G.linkContent.props.children]), G.iconName) {
|
|
1750
1750
|
const Ue = /* @__PURE__ */ e.createElement(
|
|
1751
1751
|
j,
|
|
1752
1752
|
{
|
|
@@ -1760,7 +1760,7 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1760
1760
|
let Ke;
|
|
1761
1761
|
G.description && (Ke = /* @__PURE__ */ e.createElement("span", { className: `${B}__item-description` }, G.description));
|
|
1762
1762
|
let We;
|
|
1763
|
-
if (
|
|
1763
|
+
if (R2(G)) {
|
|
1764
1764
|
const Ue = G.linkContent.type;
|
|
1765
1765
|
We = /* @__PURE__ */ e.createElement(Ue, y({ tabIndex: -1 }, G.linkContent.props), /* @__PURE__ */ e.createElement("span", { className: `${B}__item-label` }, ze), Ke);
|
|
1766
1766
|
} else
|
|
@@ -1780,26 +1780,26 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1780
1780
|
We
|
|
1781
1781
|
);
|
|
1782
1782
|
}
|
|
1783
|
-
}, e2 = (G,
|
|
1783
|
+
}, e2 = (G, le) => {
|
|
1784
1784
|
const Y = [];
|
|
1785
|
-
let
|
|
1785
|
+
let ae = le.shift(), oe = [];
|
|
1786
1786
|
return G.map((fe, ge) => {
|
|
1787
|
-
fe !==
|
|
1787
|
+
fe !== ae ? (oe.push(fe), ge + 1 === G.length && Y.push(oe)) : (Y.push(oe), oe = [], oe.push(fe), ae = le.shift());
|
|
1788
1788
|
}), Y.filter((fe) => fe.length > 0);
|
|
1789
1789
|
}, t2 = (G) => {
|
|
1790
1790
|
T.current = [], K.current = [];
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1793
|
-
),
|
|
1791
|
+
const le = G, Y = G.filter(
|
|
1792
|
+
D2 || T2
|
|
1793
|
+
), ae = Y.length > 0;
|
|
1794
1794
|
let oe = [`${B}__listbox`];
|
|
1795
|
-
if (C && oe.push(`${B}__listbox--navbar`), l === "end" && oe.push(`${B}__listbox--end`), n === "icon-only" && oe.push(`${B}__listbox--icon-only`), oe = N(oe),
|
|
1795
|
+
if (C && oe.push(`${B}__listbox--navbar`), l === "end" && oe.push(`${B}__listbox--end`), n === "icon-only" && oe.push(`${B}__listbox--icon-only`), oe = N(oe), ae) {
|
|
1796
1796
|
const fe = e2(G, Y);
|
|
1797
1797
|
fe.forEach(() => {
|
|
1798
1798
|
x.current.push(a2());
|
|
1799
1799
|
});
|
|
1800
1800
|
let ge = x.current[0];
|
|
1801
1801
|
const Ee = fe[0].findIndex(
|
|
1802
|
-
(ze) => !
|
|
1802
|
+
(ze) => !T2(ze) && !D2(ze)
|
|
1803
1803
|
), n2 = `${O}-group-${ge}-item-${Ee + 1}`;
|
|
1804
1804
|
return /* @__PURE__ */ e.createElement(
|
|
1805
1805
|
"div",
|
|
@@ -1862,7 +1862,7 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1862
1862
|
onKeyDown: $e,
|
|
1863
1863
|
ref: E
|
|
1864
1864
|
},
|
|
1865
|
-
|
|
1865
|
+
le.map((ge, Ee) => Ie(ge, Ee))
|
|
1866
1866
|
));
|
|
1867
1867
|
}
|
|
1868
1868
|
};
|
|
@@ -1888,7 +1888,7 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1888
1888
|
ref: h
|
|
1889
1889
|
}
|
|
1890
1890
|
)), n === "icon-only") {
|
|
1891
|
-
const G =
|
|
1891
|
+
const G = Q2(m);
|
|
1892
1892
|
qe = /* @__PURE__ */ e.createElement(
|
|
1893
1893
|
H2,
|
|
1894
1894
|
{
|
|
@@ -1911,12 +1911,12 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
1911
1911
|
);
|
|
1912
1912
|
}
|
|
1913
1913
|
const c2 = (G) => {
|
|
1914
|
-
const
|
|
1915
|
-
|
|
1914
|
+
const le = G.target;
|
|
1915
|
+
le.classList.toggle(`${B}__toggle--expanded`), le.setAttribute(
|
|
1916
1916
|
"aria-expanded",
|
|
1917
|
-
|
|
1918
|
-
),
|
|
1919
|
-
}, r2 = () => /* @__PURE__ */ e.createElement("ul", { className: `${B}__mobile-menu`, role: "menu" }, c.map((G,
|
|
1917
|
+
le.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
1918
|
+
), le.nextElementSibling.classList.toggle(`${B}__mobile-menu--expanded`);
|
|
1919
|
+
}, r2 = () => /* @__PURE__ */ e.createElement("ul", { className: `${B}__mobile-menu`, role: "menu" }, c.map((G, le) => Ie(G, le)));
|
|
1920
1920
|
let ye;
|
|
1921
1921
|
const Me = n === "icon-end" ? "pds-button pds-button--navbar" : null, ve = N([
|
|
1922
1922
|
`${B}__toggle`,
|
|
@@ -2143,7 +2143,7 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
2143
2143
|
}, u),
|
|
2144
2144
|
l ? /* @__PURE__ */ e.createElement(xe, { content: l, customTrigger: b }) : b
|
|
2145
2145
|
);
|
|
2146
|
-
},
|
|
2146
|
+
}, O2 = {
|
|
2147
2147
|
info: "circleInfo",
|
|
2148
2148
|
warning: "triangleExclamation",
|
|
2149
2149
|
success: "circleCheck",
|
|
@@ -2182,7 +2182,7 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
2182
2182
|
/* @__PURE__ */ e.createElement("div", { className: `${o}__inner` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon--${s}` }, /* @__PURE__ */ e.createElement(
|
|
2183
2183
|
j,
|
|
2184
2184
|
{
|
|
2185
|
-
iconName: `${s}` in
|
|
2185
|
+
iconName: `${s}` in O2 ? O2[s] : O2.info,
|
|
2186
2186
|
iconSize: "xl"
|
|
2187
2187
|
}
|
|
2188
2188
|
)), /* @__PURE__ */ e.createElement("div", { className: `${o}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, g), n && /* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, n), t && /* @__PURE__ */ e.createElement("div", { className: `${o}__main-content` }, t)))
|
|
@@ -2359,9 +2359,9 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
2359
2359
|
u = ["next", "wordpress"];
|
|
2360
2360
|
break;
|
|
2361
2361
|
}
|
|
2362
|
-
l = /* @__PURE__ */ e.createElement("span", { className: `${m}__group` },
|
|
2362
|
+
l = /* @__PURE__ */ e.createElement("span", { className: `${m}__group` }, F2[u[0]], F2[u[1]]);
|
|
2363
2363
|
} else
|
|
2364
|
-
l =
|
|
2364
|
+
l = F2[t];
|
|
2365
2365
|
return /* @__PURE__ */ e.createElement(
|
|
2366
2366
|
"div",
|
|
2367
2367
|
y({
|
|
@@ -2369,7 +2369,7 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
2369
2369
|
}, s),
|
|
2370
2370
|
l
|
|
2371
2371
|
);
|
|
2372
|
-
},
|
|
2372
|
+
}, F2 = {
|
|
2373
2373
|
drupal: /* @__PURE__ */ e.createElement(
|
|
2374
2374
|
"svg",
|
|
2375
2375
|
{
|
|
@@ -3180,7 +3180,7 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
3180
3180
|
const Me = O[ye];
|
|
3181
3181
|
B || (I(ye), P(!1)), u && u(Me);
|
|
3182
3182
|
};
|
|
3183
|
-
|
|
3183
|
+
se(() => {
|
|
3184
3184
|
if (B) {
|
|
3185
3185
|
const ye = Z(b);
|
|
3186
3186
|
I(ye), P(!1);
|
|
@@ -3197,27 +3197,27 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
3197
3197
|
return ye.map((ve) => {
|
|
3198
3198
|
if (dt(ve)) {
|
|
3199
3199
|
const ke = ve.options.map((G) => {
|
|
3200
|
-
const
|
|
3200
|
+
const le = Me++;
|
|
3201
3201
|
return /* @__PURE__ */ e.createElement(
|
|
3202
3202
|
y2,
|
|
3203
3203
|
y({
|
|
3204
|
-
key:
|
|
3204
|
+
key: le,
|
|
3205
3205
|
ref: (Y) => {
|
|
3206
|
-
T.current[
|
|
3206
|
+
T.current[le] = Y;
|
|
3207
3207
|
},
|
|
3208
|
-
tabIndex:
|
|
3209
|
-
"aria-selected":
|
|
3208
|
+
tabIndex: le === F ? 0 : -1,
|
|
3209
|
+
"aria-selected": le === A && le === F,
|
|
3210
3210
|
"aria-disabled": G == null ? void 0 : G.disabled
|
|
3211
3211
|
}, !(G != null && G.disabled) && ue({
|
|
3212
3212
|
onClick() {
|
|
3213
|
-
we(
|
|
3213
|
+
we(le);
|
|
3214
3214
|
},
|
|
3215
3215
|
onKeyDown(Y) {
|
|
3216
|
-
Y.key === "Enter" && (Y.preventDefault(), we(
|
|
3216
|
+
Y.key === "Enter" && (Y.preventDefault(), we(le), ee.reference.current.focus()), Y.key === "Escape" && (Y.preventDefault(), ee.reference.current.focus());
|
|
3217
3217
|
}
|
|
3218
3218
|
})),
|
|
3219
3219
|
G.label,
|
|
3220
|
-
A ===
|
|
3220
|
+
A === le && /* @__PURE__ */ e.createElement(
|
|
3221
3221
|
j,
|
|
3222
3222
|
{
|
|
3223
3223
|
iconName: "check",
|
|
@@ -3472,7 +3472,7 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
3472
3472
|
className: N([w, b, g])
|
|
3473
3473
|
}, p),
|
|
3474
3474
|
/* @__PURE__ */ e.createElement("div", { className: N([v, _]) }, u && /* @__PURE__ */ e.createElement(
|
|
3475
|
-
|
|
3475
|
+
Y2,
|
|
3476
3476
|
{
|
|
3477
3477
|
className: `${v}__status-badge`,
|
|
3478
3478
|
label: l[u],
|
|
@@ -3505,7 +3505,7 @@ const T2 = 300, m1 = 400, xe = (p) => {
|
|
|
3505
3505
|
let i, C;
|
|
3506
3506
|
c === "active" && (i = "Active", C = "success"), c === "frozen" && (i = "Frozen", C = "frozen");
|
|
3507
3507
|
const v = /* @__PURE__ */ e.createElement(
|
|
3508
|
-
|
|
3508
|
+
Y2,
|
|
3509
3509
|
{
|
|
3510
3510
|
label: i,
|
|
3511
3511
|
statusType: C,
|
|
@@ -5144,7 +5144,7 @@ const xn = (i) => {
|
|
|
5144
5144
|
Q ? n : !1
|
|
5145
5145
|
), P = t || J, F = (x) => {
|
|
5146
5146
|
W || te(x.target.checked), i && i(x);
|
|
5147
|
-
}, q = `${k}__box`, A = r ? null : P ? `${q}--checked` : null, I = r ? `${q}--indeterminate` : null, V =
|
|
5147
|
+
}, q = `${k}__box`, A = r ? null : P ? `${q}--checked` : null, I = r ? `${q}--indeterminate` : null, V = G2(() => {
|
|
5148
5148
|
if (r)
|
|
5149
5149
|
return /* @__PURE__ */ e.createElement(
|
|
5150
5150
|
j,
|
|
@@ -5472,8 +5472,8 @@ const xn = (i) => {
|
|
|
5472
5472
|
let P = null;
|
|
5473
5473
|
r && (P = "search"), k === "error" && (P = "error"), k === "success" && (P = "success");
|
|
5474
5474
|
const F = L || i, q = typeof M != "undefined", A = typeof t != "undefined", I = (Y) => {
|
|
5475
|
-
const
|
|
5476
|
-
return
|
|
5475
|
+
const ae = d.find((oe) => oe.value === Y);
|
|
5476
|
+
return ae ? ae.label : "";
|
|
5477
5477
|
}, [V, x] = X(!1), [T, K] = X(null), [ee, pe] = X(
|
|
5478
5478
|
A ? I(t) : ""
|
|
5479
5479
|
), [ie, Ce] = X([]), _e = q ? M : ee, re = ce([]), { context: he, refs: ue } = Ae({
|
|
@@ -5507,15 +5507,15 @@ const xn = (i) => {
|
|
|
5507
5507
|
var Y;
|
|
5508
5508
|
!q && pe(""), K(null), x(!0), (Y = ue.domReference.current) == null || Y.focus(), b && b();
|
|
5509
5509
|
}, Me = (Y) => {
|
|
5510
|
-
let
|
|
5511
|
-
v && v(Y), q || (
|
|
5510
|
+
let ae = Y.target.value;
|
|
5511
|
+
v && v(Y), q || (ae.length > 0 && (ae = ae.trimStart()), pe(ae)), ae ? (K(null), x(!0)) : x(!1);
|
|
5512
5512
|
}, ve = (Y) => {
|
|
5513
5513
|
w && w(Y);
|
|
5514
5514
|
}, Ve = (Y) => {
|
|
5515
5515
|
_ && _(Y);
|
|
5516
5516
|
}, ke = (Y) => {
|
|
5517
|
-
const
|
|
5518
|
-
!q && pe(
|
|
5517
|
+
const ae = ie[Y];
|
|
5518
|
+
!q && pe(ae.label), K(null), x(!1), f && f(ae);
|
|
5519
5519
|
}, G = (Y) => Y.map((oe) => {
|
|
5520
5520
|
const Ue = oe, { label: fe, optionDisplay: ge, value: Ee, searchIndex: n2 } = Ue, ze = R(Ue, ["label", "optionDisplay", "value", "searchIndex"]), Ke = Ee || fe, We = [fe, Ee];
|
|
5521
5521
|
return n2 && We.push(...n2), y({
|
|
@@ -5525,11 +5525,11 @@ const xn = (i) => {
|
|
|
5525
5525
|
optionDisplay: ge
|
|
5526
5526
|
}, ze);
|
|
5527
5527
|
});
|
|
5528
|
-
|
|
5528
|
+
se(() => {
|
|
5529
5529
|
const Y = G(d).filter(
|
|
5530
|
-
(
|
|
5530
|
+
(ae) => {
|
|
5531
5531
|
var ge;
|
|
5532
|
-
const oe = (ge =
|
|
5532
|
+
const oe = (ge = ae.searchIndex) == null ? void 0 : ge.map(
|
|
5533
5533
|
(Ee) => Ee.toLowerCase()
|
|
5534
5534
|
), fe = _e.toLowerCase();
|
|
5535
5535
|
return oe.some((Ee) => Ee.includes(fe));
|
|
@@ -5537,7 +5537,7 @@ const xn = (i) => {
|
|
|
5537
5537
|
);
|
|
5538
5538
|
Ce(Y);
|
|
5539
5539
|
}, [_e, o, d]);
|
|
5540
|
-
const
|
|
5540
|
+
const le = ie.map((Y, ae) => {
|
|
5541
5541
|
const { label: oe, value: fe, optionDisplay: ge } = Y;
|
|
5542
5542
|
return /* @__PURE__ */ e.createElement(
|
|
5543
5543
|
y2,
|
|
@@ -5546,15 +5546,15 @@ const xn = (i) => {
|
|
|
5546
5546
|
}, t2({
|
|
5547
5547
|
key: fe,
|
|
5548
5548
|
ref(Ee) {
|
|
5549
|
-
re.current[
|
|
5549
|
+
re.current[ae] = Ee;
|
|
5550
5550
|
},
|
|
5551
5551
|
onClick() {
|
|
5552
5552
|
var Ee;
|
|
5553
|
-
ke(
|
|
5553
|
+
ke(ae), (Ee = ue.domReference.current) == null || Ee.focus();
|
|
5554
5554
|
}
|
|
5555
5555
|
})), {
|
|
5556
|
-
tabIndex: T ===
|
|
5557
|
-
isActive: T ===
|
|
5556
|
+
tabIndex: T === ae ? 0 : -1,
|
|
5557
|
+
isActive: T === ae
|
|
5558
5558
|
}),
|
|
5559
5559
|
ge || oe
|
|
5560
5560
|
);
|
|
@@ -5618,7 +5618,7 @@ const xn = (i) => {
|
|
|
5618
5618
|
}))
|
|
5619
5619
|
),
|
|
5620
5620
|
_e && s && /* @__PURE__ */ e.createElement(
|
|
5621
|
-
|
|
5621
|
+
J2,
|
|
5622
5622
|
{
|
|
5623
5623
|
id: `input-${c}`,
|
|
5624
5624
|
clearLabel: g.clearButton,
|
|
@@ -5664,7 +5664,7 @@ const xn = (i) => {
|
|
|
5664
5664
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
5665
5665
|
}
|
|
5666
5666
|
})),
|
|
5667
|
-
/* @__PURE__ */ e.createElement("div", { style: y({}, c2) }, o ? /* @__PURE__ */ e.createElement("div", { className: `${Z}__loading` }, p) : ie.length > 0 ? /* @__PURE__ */ e.createElement("ul", { role: "group", className: `${Z}__options` },
|
|
5667
|
+
/* @__PURE__ */ e.createElement("div", { style: y({}, c2) }, o ? /* @__PURE__ */ e.createElement("div", { className: `${Z}__loading` }, p) : ie.length > 0 ? /* @__PURE__ */ e.createElement("ul", { role: "group", className: `${Z}__options` }, le) : /* @__PURE__ */ e.createElement("div", { className: `${Z}__no-results` }, C))
|
|
5668
5668
|
),
|
|
5669
5669
|
F && /* @__PURE__ */ e.createElement(
|
|
5670
5670
|
Oe,
|
|
@@ -5965,7 +5965,7 @@ const xn = (i) => {
|
|
|
5965
5965
|
let W = null;
|
|
5966
5966
|
_ === "error" && (W = "error"), _ === "success" && (W = "success");
|
|
5967
5967
|
const Q = b || o, J = n ? [n] : null, te = n ? n.split("/").pop() : null, P = C ? n : te, F = n ? new File(J, P) : null;
|
|
5968
|
-
|
|
5968
|
+
se(() => {
|
|
5969
5969
|
const V = new DataTransfer();
|
|
5970
5970
|
if (F && V.items.add(F), V.files.length > 0) {
|
|
5971
5971
|
const x = document.getElementById(
|
|
@@ -6044,7 +6044,7 @@ const xn = (i) => {
|
|
|
6044
6044
|
"aria-describedby": Q ? `${r}__message` : null
|
|
6045
6045
|
}, m)
|
|
6046
6046
|
), H && /* @__PURE__ */ e.createElement(
|
|
6047
|
-
|
|
6047
|
+
J2,
|
|
6048
6048
|
{
|
|
6049
6049
|
id: r,
|
|
6050
6050
|
clearLabel: l.clearButton,
|
|
@@ -6195,7 +6195,7 @@ const xn = (i) => {
|
|
|
6195
6195
|
}
|
|
6196
6196
|
)
|
|
6197
6197
|
);
|
|
6198
|
-
}, A1 = ({ toggleStatusLabel: t, id: n }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
6198
|
+
}, A1 = ({ toggleStatusLabel: t, id: n }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(et, { label: t }), /* @__PURE__ */ e.createElement(
|
|
6199
6199
|
"label",
|
|
6200
6200
|
{
|
|
6201
6201
|
htmlFor: n,
|
|
@@ -6203,7 +6203,7 @@ const xn = (i) => {
|
|
|
6203
6203
|
"aria-hidden": "true"
|
|
6204
6204
|
},
|
|
6205
6205
|
t
|
|
6206
|
-
)), T1 = ({ toggleStatusLabel: t }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
6206
|
+
)), T1 = ({ toggleStatusLabel: t }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(et, { label: t }), /* @__PURE__ */ e.createElement(
|
|
6207
6207
|
"span",
|
|
6208
6208
|
{
|
|
6209
6209
|
className: "pds-switch__input-decor",
|
|
@@ -6616,7 +6616,7 @@ const xn = (i) => {
|
|
|
6616
6616
|
}, o)
|
|
6617
6617
|
),
|
|
6618
6618
|
r && ee && /* @__PURE__ */ e.createElement(
|
|
6619
|
-
|
|
6619
|
+
J2,
|
|
6620
6620
|
{
|
|
6621
6621
|
id: l,
|
|
6622
6622
|
clearLabel: H.clearButton,
|
|
@@ -6715,9 +6715,9 @@ const xn = (i) => {
|
|
|
6715
6715
|
"className"
|
|
6716
6716
|
]);
|
|
6717
6717
|
const i = "pds-modal", C = c !== "md" ? `${i}--${c}` : null, [v, w] = X(r);
|
|
6718
|
-
|
|
6718
|
+
se(() => {
|
|
6719
6719
|
w(r);
|
|
6720
|
-
}, [r]),
|
|
6720
|
+
}, [r]), se(() => {
|
|
6721
6721
|
m(v);
|
|
6722
6722
|
}, [v]);
|
|
6723
6723
|
const { refs: b, context: _, floatingStyles: f } = Ae({
|
|
@@ -6822,14 +6822,14 @@ const xn = (i) => {
|
|
|
6822
6822
|
return !0;
|
|
6823
6823
|
}
|
|
6824
6824
|
return !1;
|
|
6825
|
-
},
|
|
6825
|
+
}, tt = (t) => {
|
|
6826
6826
|
if (!t)
|
|
6827
6827
|
return null;
|
|
6828
6828
|
for (let n = 0; n < t.length; n++) {
|
|
6829
6829
|
if (Rt(t[n]))
|
|
6830
6830
|
return typeof t[n].linkContent == "string" ? null : t[n].linkContent;
|
|
6831
6831
|
if (t[n].links) {
|
|
6832
|
-
const s =
|
|
6832
|
+
const s = tt(t[n].links);
|
|
6833
6833
|
if (s)
|
|
6834
6834
|
return s;
|
|
6835
6835
|
}
|
|
@@ -6862,7 +6862,7 @@ const xn = (i) => {
|
|
|
6862
6862
|
const o = be(Le);
|
|
6863
6863
|
o && (l = o.isMobile);
|
|
6864
6864
|
const u = ce(null), g = "pds-button-nav", p = l ? `${g}--isMobile` : null, i = s !== "md" ? `${g}--${s}` : null;
|
|
6865
|
-
|
|
6865
|
+
se(() => {
|
|
6866
6866
|
const _ = (f) => {
|
|
6867
6867
|
if (l) return;
|
|
6868
6868
|
const d = u.current;
|
|
@@ -6939,7 +6939,7 @@ const xn = (i) => {
|
|
|
6939
6939
|
}, r),
|
|
6940
6940
|
l ? b : v
|
|
6941
6941
|
);
|
|
6942
|
-
},
|
|
6942
|
+
}, X2 = (t, n, s, a) => {
|
|
6943
6943
|
let r = null;
|
|
6944
6944
|
if (typeof n == "string") {
|
|
6945
6945
|
const m = a ? [
|
|
@@ -7004,9 +7004,9 @@ const xn = (i) => {
|
|
|
7004
7004
|
"className"
|
|
7005
7005
|
]);
|
|
7006
7006
|
const { isMobile: v, windowWidth: w } = be(Le), [b, _] = X(() => o !== void 0 ? o : w > 1440), f = ce(), [d] = x2(f), h = d.width;
|
|
7007
|
-
|
|
7007
|
+
se(() => {
|
|
7008
7008
|
o !== void 0 && _(o);
|
|
7009
|
-
}, [o]),
|
|
7009
|
+
}, [o]), se(() => {
|
|
7010
7010
|
u(b);
|
|
7011
7011
|
}, [b, u]);
|
|
7012
7012
|
const E = {
|
|
@@ -7055,7 +7055,7 @@ const xn = (i) => {
|
|
|
7055
7055
|
}, p),
|
|
7056
7056
|
v ? Q : J
|
|
7057
7057
|
));
|
|
7058
|
-
},
|
|
7058
|
+
}, P2 = 0.512, O1 = 3.815, F1 = 4.678, P1 = 5.96, o2 = 0.8, Fe = "ease-out", ht = 0, B1 = ({
|
|
7059
7059
|
icon: t,
|
|
7060
7060
|
isActive: n,
|
|
7061
7061
|
isSidebarExpanded: s,
|
|
@@ -7063,7 +7063,7 @@ const xn = (i) => {
|
|
|
7063
7063
|
linkContent: r,
|
|
7064
7064
|
links: m
|
|
7065
7065
|
}) => {
|
|
7066
|
-
const c = "pds-dashboard-nav", l = `${c}__item`, o = `${c}__menu`, u = /* @__PURE__ */ e.createElement("div", { className: `${l}-wrapper` },
|
|
7066
|
+
const c = "pds-dashboard-nav", l = `${c}__item`, o = `${c}__menu`, u = /* @__PURE__ */ e.createElement("div", { className: `${l}-wrapper` }, X2(c, r, m, t)), g = (L, k) => /* @__PURE__ */ e.createElement(
|
|
7067
7067
|
"ul",
|
|
7068
7068
|
{
|
|
7069
7069
|
className: N([
|
|
@@ -7166,7 +7166,7 @@ const xn = (i) => {
|
|
|
7166
7166
|
]),
|
|
7167
7167
|
ref: s ? null : C.setReference
|
|
7168
7168
|
}, h()),
|
|
7169
|
-
m ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${l}-wrapper` },
|
|
7169
|
+
m ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${l}-wrapper` }, X2(
|
|
7170
7170
|
c,
|
|
7171
7171
|
r,
|
|
7172
7172
|
m,
|
|
@@ -7206,7 +7206,7 @@ const xn = (i) => {
|
|
|
7206
7206
|
}
|
|
7207
7207
|
))
|
|
7208
7208
|
);
|
|
7209
|
-
},
|
|
7209
|
+
}, nt = (m) => {
|
|
7210
7210
|
var c = m, {
|
|
7211
7211
|
headingText: t,
|
|
7212
7212
|
menuItems: n,
|
|
@@ -7218,7 +7218,7 @@ const xn = (i) => {
|
|
|
7218
7218
|
"selectTextFallback",
|
|
7219
7219
|
"className"
|
|
7220
7220
|
]);
|
|
7221
|
-
const l = "pds-dropdown-menu", [o, u] = X(!1), [g, p] = X(null), i =
|
|
7221
|
+
const l = "pds-dropdown-menu", [o, u] = X(!1), [g, p] = X(null), i = tt(n), C = i ? i.props.children : s, v = /* @__PURE__ */ e.createElement(
|
|
7222
7222
|
j,
|
|
7223
7223
|
{
|
|
7224
7224
|
iconName: "check",
|
|
@@ -7231,7 +7231,7 @@ const xn = (i) => {
|
|
|
7231
7231
|
}, b = (U) => {
|
|
7232
7232
|
U.target.nodeName === "A" && u(!1);
|
|
7233
7233
|
};
|
|
7234
|
-
|
|
7234
|
+
se(() => {
|
|
7235
7235
|
if (o) {
|
|
7236
7236
|
const U = document.querySelector(".pds-dropdown-menu__dropdown");
|
|
7237
7237
|
return U.addEventListener("click", b), () => {
|
|
@@ -7474,7 +7474,7 @@ const xn = (i) => {
|
|
|
7474
7474
|
fill: "var(--pds-color-foreground-default)"
|
|
7475
7475
|
}
|
|
7476
7476
|
)
|
|
7477
|
-
),
|
|
7477
|
+
), B2 = /* @__PURE__ */ e.createElement(
|
|
7478
7478
|
"svg",
|
|
7479
7479
|
{
|
|
7480
7480
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7645,16 +7645,16 @@ const xn = (i) => {
|
|
|
7645
7645
|
p = Z1;
|
|
7646
7646
|
break;
|
|
7647
7647
|
case "icon":
|
|
7648
|
-
p =
|
|
7648
|
+
p = B2;
|
|
7649
7649
|
break;
|
|
7650
7650
|
case "wordmark":
|
|
7651
7651
|
p = q1;
|
|
7652
7652
|
break;
|
|
7653
7653
|
case "sub-brand":
|
|
7654
|
-
p =
|
|
7654
|
+
p = B2;
|
|
7655
7655
|
break;
|
|
7656
7656
|
case "sub-brand-small":
|
|
7657
|
-
p =
|
|
7657
|
+
p = B2;
|
|
7658
7658
|
}
|
|
7659
7659
|
const i = e.isValidElement(s) && typeof s.props.children == "string" ? s.props.children : "", C = e.isValidElement(s) ? Se(s, {
|
|
7660
7660
|
children: p,
|
|
@@ -7708,14 +7708,14 @@ const xn = (i) => {
|
|
|
7708
7708
|
links: f.links
|
|
7709
7709
|
}
|
|
7710
7710
|
)))), b = s.map((f) => me(y({}, f), {
|
|
7711
|
-
linkContent:
|
|
7711
|
+
linkContent: X2(
|
|
7712
7712
|
C,
|
|
7713
7713
|
f.linkContent,
|
|
7714
7714
|
f.links,
|
|
7715
7715
|
f.icon
|
|
7716
7716
|
)
|
|
7717
7717
|
})), _ = /* @__PURE__ */ e.createElement(
|
|
7718
|
-
|
|
7718
|
+
nt,
|
|
7719
7719
|
{
|
|
7720
7720
|
menuItems: b,
|
|
7721
7721
|
selectTextFallback: a
|
|
@@ -7796,7 +7796,7 @@ const xn = (i) => {
|
|
|
7796
7796
|
style: { pointerEvents: "none" }
|
|
7797
7797
|
},
|
|
7798
7798
|
/* @__PURE__ */ e.createElement(
|
|
7799
|
-
|
|
7799
|
+
Y2,
|
|
7800
7800
|
{
|
|
7801
7801
|
color: "neutral",
|
|
7802
7802
|
hasStatusIndicator: !0,
|
|
@@ -7864,7 +7864,7 @@ const xn = (i) => {
|
|
|
7864
7864
|
}, J = (A) => {
|
|
7865
7865
|
d(A.value), o && o(A);
|
|
7866
7866
|
};
|
|
7867
|
-
|
|
7867
|
+
se(() => {
|
|
7868
7868
|
const A = (V) => {
|
|
7869
7869
|
h.current && !h.current.contains(V.target) && _(!1);
|
|
7870
7870
|
}, I = (V) => {
|
|
@@ -8009,11 +8009,11 @@ const xn = (i) => {
|
|
|
8009
8009
|
}
|
|
8010
8010
|
A && (F.stopPropagation(), F.preventDefault());
|
|
8011
8011
|
};
|
|
8012
|
-
|
|
8012
|
+
se(() => (window.addEventListener("keyup", H), () => {
|
|
8013
8013
|
window.removeEventListener("keyup", H);
|
|
8014
8014
|
}), []);
|
|
8015
8015
|
const M = () => w(!v), L = Xt();
|
|
8016
|
-
|
|
8016
|
+
se(() => {
|
|
8017
8017
|
if (b && t) {
|
|
8018
8018
|
const F = kt(
|
|
8019
8019
|
document.querySelector(".pds-navbar__mobile")
|
|
@@ -8028,14 +8028,14 @@ const xn = (i) => {
|
|
|
8028
8028
|
const k = (F) => {
|
|
8029
8029
|
F.target.nodeName === "A" && w(!1);
|
|
8030
8030
|
};
|
|
8031
|
-
|
|
8031
|
+
se(() => {
|
|
8032
8032
|
if (v) {
|
|
8033
8033
|
const F = document.querySelector(".pds-navbar__bar-mobile"), q = document.querySelector(".pds-navbar__mobile");
|
|
8034
8034
|
return F.addEventListener("click", k), q.addEventListener("click", k), () => {
|
|
8035
8035
|
F.removeEventListener("click", k), q.removeEventListener("click", k);
|
|
8036
8036
|
};
|
|
8037
8037
|
}
|
|
8038
|
-
}, [v]),
|
|
8038
|
+
}, [v]), se(() => {
|
|
8039
8039
|
v ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
8040
8040
|
}, [v]);
|
|
8041
8041
|
const z = Be(t), S = z["items-left"], B = z["items-right"];
|
|
@@ -8100,7 +8100,7 @@ const xn = (i) => {
|
|
|
8100
8100
|
mobileMenuMaxWidth: s = 640
|
|
8101
8101
|
}) => {
|
|
8102
8102
|
const [a, r] = X(!1), [m, c] = X(0);
|
|
8103
|
-
|
|
8103
|
+
se(() => (c(window.innerWidth), window.addEventListener("resize", l), () => {
|
|
8104
8104
|
window.removeEventListener("resize", l);
|
|
8105
8105
|
}), []);
|
|
8106
8106
|
const l = () => {
|
|
@@ -8171,19 +8171,19 @@ const xn = (i) => {
|
|
|
8171
8171
|
container: null,
|
|
8172
8172
|
containerChildren: []
|
|
8173
8173
|
});
|
|
8174
|
-
|
|
8174
|
+
se(() => (u(window.innerWidth), window.addEventListener("resize", f), () => {
|
|
8175
8175
|
window.removeEventListener("resize", f);
|
|
8176
8176
|
}), []);
|
|
8177
8177
|
const f = () => {
|
|
8178
8178
|
u(window.innerWidth);
|
|
8179
8179
|
}, d = o <= a;
|
|
8180
|
-
|
|
8180
|
+
se(() => {
|
|
8181
8181
|
b.containerChildren[g] && (b.containerChildren[g].classList.contains(
|
|
8182
8182
|
"pds-nav-menu__dropdown--separator"
|
|
8183
8183
|
) && v == "down" ? p(g + 1) : b.containerChildren[g].classList.contains(
|
|
8184
8184
|
"pds-nav-menu__dropdown--separator"
|
|
8185
8185
|
) && v == "up" ? p(g - 1) : b.containerChildren[g].children[0].focus());
|
|
8186
|
-
}, [g]),
|
|
8186
|
+
}, [g]), se(() => {
|
|
8187
8187
|
i != -1 && (H.current[i].children[0].blur(), H.current[i].children[0].focus({
|
|
8188
8188
|
focusVisible: !0
|
|
8189
8189
|
}));
|
|
@@ -8287,11 +8287,11 @@ const xn = (i) => {
|
|
|
8287
8287
|
"className"
|
|
8288
8288
|
]);
|
|
8289
8289
|
const p = "pds-side-nav", i = `${p}__item`, C = `${p}__menu`, [v, w] = X(1025), [b, _] = X(!1), [f, d] = X([]), h = ce(null), E = ce(null), $ = ce([]), H = ce(-1);
|
|
8290
|
-
|
|
8290
|
+
se(() => (w(window.innerWidth), window.addEventListener("resize", M), () => {
|
|
8291
8291
|
window.removeEventListener("resize", M);
|
|
8292
|
-
}), []),
|
|
8292
|
+
}), []), se(() => {
|
|
8293
8293
|
(!L || !n) && k();
|
|
8294
|
-
}, [v, r, f]),
|
|
8294
|
+
}, [v, r, f]), se(() => {
|
|
8295
8295
|
if (h.current) {
|
|
8296
8296
|
const P = h.current.querySelector(
|
|
8297
8297
|
".pds-side-nav__heading a"
|
|
@@ -8536,7 +8536,7 @@ const xn = (i) => {
|
|
|
8536
8536
|
)
|
|
8537
8537
|
);
|
|
8538
8538
|
}, J = /* @__PURE__ */ e.createElement(e.Fragment, null, s && /* @__PURE__ */ e.createElement("h2", { className: `${p}__heading pds-ts-l` }, s), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${p}__menu ${p}__menu--top-level` }, r.map((P, F) => Q(P, F)))), te = /* @__PURE__ */ e.createElement(
|
|
8539
|
-
|
|
8539
|
+
nt,
|
|
8540
8540
|
{
|
|
8541
8541
|
headingText: s,
|
|
8542
8542
|
menuItems: r,
|
|
@@ -8582,18 +8582,18 @@ const xn = (i) => {
|
|
|
8582
8582
|
"className"
|
|
8583
8583
|
]);
|
|
8584
8584
|
const p = "pds-side-nav-compact", i = `${p}__item`, C = `${p}__menu`, [v, w] = X(1025), [b, _] = X(!1), [f, d] = X([]), h = ce(null), E = ce(null), $ = ce([]), H = ce(-1);
|
|
8585
|
-
|
|
8585
|
+
se(() => (w(window.innerWidth), window.addEventListener("resize", M), () => {
|
|
8586
8586
|
window.removeEventListener("resize", M);
|
|
8587
|
-
}), []),
|
|
8587
|
+
}), []), se(() => {
|
|
8588
8588
|
(!L || !n) && k();
|
|
8589
|
-
}, [v, r, f]),
|
|
8589
|
+
}, [v, r, f]), se(() => {
|
|
8590
8590
|
if (h.current) {
|
|
8591
8591
|
const I = h.current.querySelector(
|
|
8592
8592
|
".pds-side-nav-compact__heading a"
|
|
8593
8593
|
);
|
|
8594
8594
|
I && (E.current = I);
|
|
8595
8595
|
}
|
|
8596
|
-
}, [s]),
|
|
8596
|
+
}, [s]), se(() => {
|
|
8597
8597
|
if (h.current && r.length > 0) {
|
|
8598
8598
|
const V = Array.from(
|
|
8599
8599
|
h.current.querySelectorAll(`.${i}--active`)
|
|
@@ -8754,7 +8754,7 @@ const xn = (i) => {
|
|
|
8754
8754
|
{
|
|
8755
8755
|
height: V,
|
|
8756
8756
|
opacity: "1",
|
|
8757
|
-
marginBlockStart: `${
|
|
8757
|
+
marginBlockStart: `${P2}rem`
|
|
8758
8758
|
}
|
|
8759
8759
|
],
|
|
8760
8760
|
{
|
|
@@ -8766,7 +8766,7 @@ const xn = (i) => {
|
|
|
8766
8766
|
height: "auto",
|
|
8767
8767
|
opacity: "1",
|
|
8768
8768
|
display: "flex",
|
|
8769
|
-
marginBlockStart: `${
|
|
8769
|
+
marginBlockStart: `${P2}rem`
|
|
8770
8770
|
}), I.classList.add(`${C}--expanded`), k();
|
|
8771
8771
|
};
|
|
8772
8772
|
}, J = (I) => {
|
|
@@ -8775,7 +8775,7 @@ const xn = (i) => {
|
|
|
8775
8775
|
{
|
|
8776
8776
|
height: V,
|
|
8777
8777
|
opacity: "1",
|
|
8778
|
-
marginBlockStart: `${
|
|
8778
|
+
marginBlockStart: `${P2}rem`
|
|
8779
8779
|
},
|
|
8780
8780
|
{ height: "0px", opacity: "0", marginBlockStart: "0" }
|
|
8781
8781
|
],
|
|
@@ -8864,7 +8864,7 @@ const xn = (i) => {
|
|
|
8864
8864
|
T ? P(2, I) : x
|
|
8865
8865
|
);
|
|
8866
8866
|
}, q = /* @__PURE__ */ e.createElement(e.Fragment, null, s && /* @__PURE__ */ e.createElement("h2", { className: `${p}__heading pds-ts-l` }, s), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${p}__menu ${p}__menu--top-level` }, r.map((I, V) => F(I, V)))), A = /* @__PURE__ */ e.createElement(
|
|
8867
|
-
|
|
8867
|
+
nt,
|
|
8868
8868
|
{
|
|
8869
8869
|
headingText: s,
|
|
8870
8870
|
menuItems: r,
|
|
@@ -8932,7 +8932,7 @@ const xn = (i) => {
|
|
|
8932
8932
|
const V = a.filter((x) => O(x, I));
|
|
8933
8933
|
p(V);
|
|
8934
8934
|
};
|
|
8935
|
-
|
|
8935
|
+
se(() => {
|
|
8936
8936
|
const A = a.filter((I) => O(I, i));
|
|
8937
8937
|
p(A);
|
|
8938
8938
|
}, [a]);
|
|
@@ -9026,7 +9026,7 @@ const xn = (i) => {
|
|
|
9026
9026
|
links: b,
|
|
9027
9027
|
promoteActiveChildLink: _ = !1
|
|
9028
9028
|
}) => {
|
|
9029
|
-
const f = `${o}__item`, d =
|
|
9029
|
+
const f = `${o}__item`, d = tt(b), h = (E, $) => {
|
|
9030
9030
|
let H = null;
|
|
9031
9031
|
return typeof E == "object" && ($ ? H = Se(E, me(y({}, E.props), {
|
|
9032
9032
|
children: [
|
|
@@ -9135,7 +9135,7 @@ const xn = (i) => {
|
|
|
9135
9135
|
opacity: 0
|
|
9136
9136
|
}
|
|
9137
9137
|
}), Q = /* @__PURE__ */ e.createElement(
|
|
9138
|
-
|
|
9138
|
+
K2,
|
|
9139
9139
|
{
|
|
9140
9140
|
hasUserFallback: !0,
|
|
9141
9141
|
imageSrc: a,
|
|
@@ -9300,7 +9300,7 @@ const xn = (i) => {
|
|
|
9300
9300
|
const { value: he } = re.target, ue = o.filter((de) => de.displayName.toLowerCase().includes(he.toLowerCase()));
|
|
9301
9301
|
f(ue);
|
|
9302
9302
|
};
|
|
9303
|
-
|
|
9303
|
+
se(() => {
|
|
9304
9304
|
const re = o.map((he) => me(y({}, he), {
|
|
9305
9305
|
isActive: he.isActive
|
|
9306
9306
|
}));
|
|
@@ -9309,7 +9309,7 @@ const xn = (i) => {
|
|
|
9309
9309
|
const V = (re) => {
|
|
9310
9310
|
re.preventDefault(), re.key === "Enter" && d.current[w].querySelector("a").click(), re.key === "Tab" && (re.shiftKey ? E ? document.getElementById("workspace-filter").focus() : v(!1) : n ? h.current.querySelector("a").focus() : v(!1));
|
|
9311
9311
|
}, x = /* @__PURE__ */ e.createElement("div", { className: `${L}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
9312
|
-
|
|
9312
|
+
K2,
|
|
9313
9313
|
{
|
|
9314
9314
|
size: "sm",
|
|
9315
9315
|
uniqueId: A.workspaceId,
|
|
@@ -9368,7 +9368,7 @@ const xn = (i) => {
|
|
|
9368
9368
|
onClick: () => v(!1)
|
|
9369
9369
|
}),
|
|
9370
9370
|
/* @__PURE__ */ e.createElement("div", { className: `${L}__item-content` }, /* @__PURE__ */ e.createElement(
|
|
9371
|
-
|
|
9371
|
+
K2,
|
|
9372
9372
|
{
|
|
9373
9373
|
size: "sm",
|
|
9374
9374
|
uniqueId: re.workspaceId,
|
|
@@ -9468,7 +9468,7 @@ const xn = (i) => {
|
|
|
9468
9468
|
"className"
|
|
9469
9469
|
]);
|
|
9470
9470
|
const [u, g] = X(t);
|
|
9471
|
-
|
|
9471
|
+
se(() => {
|
|
9472
9472
|
g(t);
|
|
9473
9473
|
}, [t]);
|
|
9474
9474
|
const p = u.length;
|
|
@@ -9479,7 +9479,7 @@ const xn = (i) => {
|
|
|
9479
9479
|
warning: `${i}--warning`,
|
|
9480
9480
|
critical: `${i}--critical`
|
|
9481
9481
|
}, w = p > 0 ? u[0].type : null, b = w ? `${i}-group--${w}` : null, _ = (H) => ({
|
|
9482
|
-
zIndex:
|
|
9482
|
+
zIndex: A2 - H
|
|
9483
9483
|
}), f = (H) => H === 0 ? 0 : -1, d = () => {
|
|
9484
9484
|
const H = document.getElementsByClassName(
|
|
9485
9485
|
`${i}--fading`
|
|
@@ -9494,7 +9494,7 @@ const xn = (i) => {
|
|
|
9494
9494
|
]);
|
|
9495
9495
|
}, 200);
|
|
9496
9496
|
}, E = () => {
|
|
9497
|
-
d(), document.getElementById(u[0].id).style.zIndex = (
|
|
9497
|
+
d(), document.getElementById(u[0].id).style.zIndex = (A2 + 2).toString(), document.getElementById(u[p - 1].id).style.zIndex = (A2 + 1).toString(), setTimeout(() => {
|
|
9498
9498
|
document.getElementById(u[0].id).classList.add(`${i}--fading`);
|
|
9499
9499
|
}, 50), setTimeout(() => {
|
|
9500
9500
|
g((H) => [
|
|
@@ -9575,7 +9575,7 @@ const xn = (i) => {
|
|
|
9575
9575
|
}
|
|
9576
9576
|
), u.map((H, M) => $(H, M))) : $(u[0], 0)
|
|
9577
9577
|
);
|
|
9578
|
-
},
|
|
9578
|
+
}, Z2 = {
|
|
9579
9579
|
info: "circleInfo",
|
|
9580
9580
|
warning: "triangleExclamation",
|
|
9581
9581
|
success: "circleCheck",
|
|
@@ -9617,12 +9617,12 @@ const xn = (i) => {
|
|
|
9617
9617
|
/* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon-${s}` }, s === "working" ? /* @__PURE__ */ e.createElement(V2, { colorType: "monochromatic" }) : /* @__PURE__ */ e.createElement(
|
|
9618
9618
|
j,
|
|
9619
9619
|
{
|
|
9620
|
-
iconName: `${s}` in
|
|
9620
|
+
iconName: `${s}` in Z2 ? Z2[s] : Z2.info,
|
|
9621
9621
|
iconSize: "md"
|
|
9622
9622
|
}
|
|
9623
9623
|
)), /* @__PURE__ */ e.createElement("div", { className: `${o}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, C), t && /* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, t), /* @__PURE__ */ e.createElement("div", { className: `${o}__secondaryText` }, n)))
|
|
9624
9624
|
);
|
|
9625
|
-
},
|
|
9625
|
+
}, q2 = {
|
|
9626
9626
|
info: "circleInfo",
|
|
9627
9627
|
warning: "triangleExclamation",
|
|
9628
9628
|
success: "circleCheck",
|
|
@@ -9687,7 +9687,7 @@ const xn = (i) => {
|
|
|
9687
9687
|
/* @__PURE__ */ e.createElement("div", { className: `${C}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${C}__icon ${C}__icon-${c}` }, /* @__PURE__ */ e.createElement(
|
|
9688
9688
|
j,
|
|
9689
9689
|
{
|
|
9690
|
-
iconName: `${c}` in
|
|
9690
|
+
iconName: `${c}` in q2 ? q2[c] : q2.info,
|
|
9691
9691
|
iconSize: "md"
|
|
9692
9692
|
}
|
|
9693
9693
|
)), /* @__PURE__ */ e.createElement("div", { className: `${C}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, f), m && /* @__PURE__ */ e.createElement("div", { className: `${C}__title` }, m), /* @__PURE__ */ e.createElement("div", { className: `${C}__message` }, r))),
|
|
@@ -9703,7 +9703,7 @@ const xn = (i) => {
|
|
|
9703
9703
|
/* @__PURE__ */ e.createElement(j, { iconSize: "md", iconName: "xmark" })
|
|
9704
9704
|
)
|
|
9705
9705
|
);
|
|
9706
|
-
},
|
|
9706
|
+
}, W2 = {
|
|
9707
9707
|
info: "circleInfo",
|
|
9708
9708
|
success: "check",
|
|
9709
9709
|
warning: "triangleExclamation",
|
|
@@ -9740,7 +9740,7 @@ const xn = (i) => {
|
|
|
9740
9740
|
/* @__PURE__ */ e.createElement("div", { className: `${m}__icon-container` }, s === "working" ? /* @__PURE__ */ e.createElement(V2, { colorType: "monochromatic", size: "lg" }) : /* @__PURE__ */ e.createElement(
|
|
9741
9741
|
j,
|
|
9742
9742
|
{
|
|
9743
|
-
iconName: `${s}` in
|
|
9743
|
+
iconName: `${s}` in W2 ? W2[s] : W2.info,
|
|
9744
9744
|
className: `${m}__icon ${m}__icon--${s}`
|
|
9745
9745
|
}
|
|
9746
9746
|
)),
|
|
@@ -9957,7 +9957,7 @@ const h4 = () => {
|
|
|
9957
9957
|
const [o, u] = X(s), p = ce(
|
|
9958
9958
|
n || `expansion-panel-${a2()}`
|
|
9959
9959
|
).current, i = "pds-expansion-panel", C = ce(null), v = ce(null), w = ce(null);
|
|
9960
|
-
return
|
|
9960
|
+
return se(() => {
|
|
9961
9961
|
const b = C.current, _ = v.current, f = w.current;
|
|
9962
9962
|
if (!b || !_ || !f) return;
|
|
9963
9963
|
let d = null, h = !1, E = !1;
|
|
@@ -10208,9 +10208,9 @@ const h4 = () => {
|
|
|
10208
10208
|
]);
|
|
10209
10209
|
var F, q, A, I;
|
|
10210
10210
|
const [_, f] = X(g);
|
|
10211
|
-
|
|
10211
|
+
se(() => {
|
|
10212
10212
|
f(g);
|
|
10213
|
-
}, [g]),
|
|
10213
|
+
}, [g]), se(() => {
|
|
10214
10214
|
p(_);
|
|
10215
10215
|
}, [_]);
|
|
10216
10216
|
const d = typeof s, h = "pds-popover", E = N([
|
|
@@ -10506,37 +10506,41 @@ const y4 = (o) => {
|
|
|
10506
10506
|
var u = o, {
|
|
10507
10507
|
alignment: t = "left",
|
|
10508
10508
|
componentWidth: n,
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
|
|
10509
|
+
labelStrings: s = {},
|
|
10510
|
+
lastChecked: a,
|
|
10511
|
+
onCheck: r,
|
|
10512
|
+
state: m,
|
|
10513
10513
|
className: c
|
|
10514
10514
|
} = u, l = R(u, [
|
|
10515
10515
|
"alignment",
|
|
10516
10516
|
"componentWidth",
|
|
10517
|
-
"initialState",
|
|
10518
10517
|
"labelStrings",
|
|
10519
10518
|
"lastChecked",
|
|
10520
10519
|
"onCheck",
|
|
10520
|
+
"state",
|
|
10521
10521
|
"className"
|
|
10522
10522
|
]);
|
|
10523
10523
|
const [g, p] = X(
|
|
10524
|
-
|
|
10524
|
+
m != null ? m : "default"
|
|
10525
10525
|
/* DEFAULT */
|
|
10526
|
-
)
|
|
10526
|
+
);
|
|
10527
|
+
se(() => {
|
|
10528
|
+
p(m);
|
|
10529
|
+
}, [m, p]);
|
|
10530
|
+
const i = y({
|
|
10527
10531
|
checkForUpdates: "Check for updates",
|
|
10528
10532
|
checking: "Checking...",
|
|
10529
10533
|
checked: "Last checked",
|
|
10530
10534
|
ariaLabel: "Check for updates"
|
|
10531
|
-
},
|
|
10535
|
+
}, s), C = () => {
|
|
10532
10536
|
switch (g) {
|
|
10533
10537
|
case "default":
|
|
10534
10538
|
return i.checkForUpdates;
|
|
10535
10539
|
case "working":
|
|
10536
10540
|
return i.checking;
|
|
10537
10541
|
case "checked":
|
|
10538
|
-
if (
|
|
10539
|
-
const E =
|
|
10542
|
+
if (a) {
|
|
10543
|
+
const E = a instanceof Date ? a : new Date(a), $ = Date.now() - E.getTime(), H = Math.floor($ / 1e3), M = Math.floor(H / 60), L = Math.floor(M / 60), k = Math.floor(L / 24), z = {
|
|
10540
10544
|
year: "numeric",
|
|
10541
10545
|
month: "short",
|
|
10542
10546
|
day: "numeric"
|
|
@@ -10549,25 +10553,9 @@ const y4 = (o) => {
|
|
|
10549
10553
|
}
|
|
10550
10554
|
return i.checked;
|
|
10551
10555
|
}
|
|
10552
|
-
}, v = () =>
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
"working"
|
|
10556
|
-
/* WORKING */
|
|
10557
|
-
);
|
|
10558
|
-
try {
|
|
10559
|
-
yield m == null ? void 0 : m(), p(
|
|
10560
|
-
"checked"
|
|
10561
|
-
/* CHECKED */
|
|
10562
|
-
);
|
|
10563
|
-
} catch (E) {
|
|
10564
|
-
p(
|
|
10565
|
-
"default"
|
|
10566
|
-
/* DEFAULT */
|
|
10567
|
-
);
|
|
10568
|
-
}
|
|
10569
|
-
}
|
|
10570
|
-
}), w = "pds-refresh-checker", b = `${w}--${t}`, _ = N([
|
|
10556
|
+
}, v = () => {
|
|
10557
|
+
r == null || r();
|
|
10558
|
+
}, w = "pds-refresh-checker", b = `${w}--${t}`, _ = N([
|
|
10571
10559
|
`${w}__button`,
|
|
10572
10560
|
g === "working" ? `${w}__button--spinning` : ""
|
|
10573
10561
|
]), f = n !== null && n > 0 ? `${n}rem` : "100%", d = /* @__PURE__ */ e.createElement("span", { className: `${w}__tooltip-icon` }, /* @__PURE__ */ e.createElement(
|
|
@@ -10620,7 +10608,7 @@ const y4 = (o) => {
|
|
|
10620
10608
|
]);
|
|
10621
10609
|
const l = "pds-site-dashboard-heading", o = W1[n], u = s ? Ft[s] : "bolt";
|
|
10622
10610
|
return /* @__PURE__ */ e.createElement("div", y({ className: N([l, a != null ? a : ""]) }, r), /* @__PURE__ */ e.createElement(j, { iconName: u, iconSize: "2xl" }), /* @__PURE__ */ e.createElement("h1", { className: "pds-ts-2xl" }, t), n && /* @__PURE__ */ e.createElement(g2, { label: o, color: "neutral", size: "md" }));
|
|
10623
|
-
},
|
|
10611
|
+
}, U2 = {
|
|
10624
10612
|
bluesky: {
|
|
10625
10613
|
icon: "bluesky",
|
|
10626
10614
|
url: "https://bsky.app/profile/pantheon.io",
|
|
@@ -10673,12 +10661,12 @@ const y4 = (o) => {
|
|
|
10673
10661
|
t.map((c, l) => /* @__PURE__ */ e.createElement("li", { key: l, className: `${m}__item` }, /* @__PURE__ */ e.createElement(
|
|
10674
10662
|
"a",
|
|
10675
10663
|
{
|
|
10676
|
-
href:
|
|
10664
|
+
href: U2[c].url,
|
|
10677
10665
|
rel: "noreferrer",
|
|
10678
10666
|
target: "_blank",
|
|
10679
|
-
"aria-label":
|
|
10667
|
+
"aria-label": U2[c].label
|
|
10680
10668
|
},
|
|
10681
|
-
/* @__PURE__ */ e.createElement(j, { iconName:
|
|
10669
|
+
/* @__PURE__ */ e.createElement(j, { iconName: U2[c].icon, iconSize: "xl" })
|
|
10682
10670
|
)))
|
|
10683
10671
|
);
|
|
10684
10672
|
}, M4 = (m) => {
|
|
@@ -10928,7 +10916,7 @@ const y4 = (o) => {
|
|
|
10928
10916
|
"~"
|
|
10929
10917
|
], C = `#${c} h2:not(.${r}), h3:not(.${r})`, v = () => {
|
|
10930
10918
|
const [M, L] = X([]);
|
|
10931
|
-
return
|
|
10919
|
+
return se(() => {
|
|
10932
10920
|
const k = Array.from(
|
|
10933
10921
|
document.querySelectorAll(C)
|
|
10934
10922
|
);
|
|
@@ -10955,7 +10943,7 @@ const y4 = (o) => {
|
|
|
10955
10943
|
}, { nestedHeadings: b } = v(), [_, f] = X();
|
|
10956
10944
|
((M) => {
|
|
10957
10945
|
const L = ce({});
|
|
10958
|
-
|
|
10946
|
+
se(() => {
|
|
10959
10947
|
const k = (B) => {
|
|
10960
10948
|
L.current = B.reduce((O, Z) => (O[Z.target.id] = Z, O), L.current);
|
|
10961
10949
|
const D = [];
|
|
@@ -11051,7 +11039,7 @@ const y4 = (o) => {
|
|
|
11051
11039
|
"className"
|
|
11052
11040
|
]);
|
|
11053
11041
|
const u = "pds-tabs", [g, p] = X(a != null ? a : n);
|
|
11054
|
-
|
|
11042
|
+
se(() => {
|
|
11055
11043
|
a !== void 0 && p(a);
|
|
11056
11044
|
}, [a]);
|
|
11057
11045
|
const i = (b) => {
|
|
@@ -11061,9 +11049,9 @@ const y4 = (o) => {
|
|
|
11061
11049
|
p(f);
|
|
11062
11050
|
}
|
|
11063
11051
|
}, C = ce([]);
|
|
11064
|
-
|
|
11052
|
+
se(() => {
|
|
11065
11053
|
s(g);
|
|
11066
|
-
}, [g, s]),
|
|
11054
|
+
}, [g, s]), se(() => {
|
|
11067
11055
|
const b = C.current.length - 1;
|
|
11068
11056
|
if (g > b) {
|
|
11069
11057
|
p(0);
|
|
@@ -11265,7 +11253,7 @@ const y4 = (o) => {
|
|
|
11265
11253
|
]);
|
|
11266
11254
|
var i, C;
|
|
11267
11255
|
const l = "pds-theme-switcher", [o, u] = X(t != null ? t : "light");
|
|
11268
|
-
|
|
11256
|
+
se(() => {
|
|
11269
11257
|
u(t != null ? t : "system");
|
|
11270
11258
|
}, [t]);
|
|
11271
11259
|
const g = [
|
|
@@ -11690,23 +11678,23 @@ const y4 = (o) => {
|
|
|
11690
11678
|
/* @__PURE__ */ e.createElement("div", { className: b.join(" ").trim() }, d)
|
|
11691
11679
|
);
|
|
11692
11680
|
}, q4 = (t, n) => {
|
|
11693
|
-
const [s, a] = X(!1), r =
|
|
11681
|
+
const [s, a] = X(!1), r = G2(
|
|
11694
11682
|
(c) => {
|
|
11695
11683
|
c.key === t && (a(!0), n && n(c));
|
|
11696
11684
|
},
|
|
11697
11685
|
[t, n]
|
|
11698
|
-
), m =
|
|
11686
|
+
), m = G2(
|
|
11699
11687
|
(c) => {
|
|
11700
11688
|
c.key === t && a(!1);
|
|
11701
11689
|
},
|
|
11702
11690
|
[t]
|
|
11703
11691
|
);
|
|
11704
|
-
return
|
|
11692
|
+
return se(() => (window.addEventListener("keydown", r), window.addEventListener("keyup", m), () => {
|
|
11705
11693
|
window.removeEventListener("keydown", r), window.removeEventListener("keyup", m);
|
|
11706
11694
|
}), [r, m]), s;
|
|
11707
11695
|
};
|
|
11708
11696
|
export {
|
|
11709
|
-
|
|
11697
|
+
K2 as Avatar,
|
|
11710
11698
|
S4 as AvatarTileList,
|
|
11711
11699
|
d4 as Banner,
|
|
11712
11700
|
bn as BranchDiff,
|
|
@@ -11738,7 +11726,7 @@ export {
|
|
|
11738
11726
|
n4 as DashboardSearch,
|
|
11739
11727
|
In as DashboardStat,
|
|
11740
11728
|
D4 as DocsLayout,
|
|
11741
|
-
|
|
11729
|
+
nt as DropdownMenu,
|
|
11742
11730
|
g4 as ExpansionPanel,
|
|
11743
11731
|
C4 as ExpansionPanelGroup,
|
|
11744
11732
|
Dn as FileDiff,
|
|
@@ -11795,7 +11783,7 @@ export {
|
|
|
11795
11783
|
H4 as SocialLinks,
|
|
11796
11784
|
V2 as Spinner,
|
|
11797
11785
|
C1 as SplitButton,
|
|
11798
|
-
|
|
11786
|
+
Y2 as StatusBadge,
|
|
11799
11787
|
M4 as StatusIndicator,
|
|
11800
11788
|
k4 as Stepper,
|
|
11801
11789
|
P4 as StepperLayout,
|