@pantheon-systems/pds-toolkit-react 1.19.0 → 1.19.1
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/components/CodeBlock/prism-setup.d.ts +2 -0
- package/_dist/index.js +462 -460
- package/_dist/index.js.map +1 -1
- package/package.json +10 -4
package/_dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import e, { Children as t, Fragment as n, cloneElement as r, createContext as i,
|
|
|
2
2
|
import g from "hash-sum";
|
|
3
3
|
import { FloatingArrow as _, FloatingFocusManager as v, FloatingOverlay as y, FloatingPortal as b, arrow as x, autoUpdate as S, flip as C, offset as w, safePolygon as T, shift as E, size as D, useClick as O, useDismiss as k, useFloating as A, useFocus as j, useHover as M, useId as N, useInteractions as P, useListNavigation as F, useRole as I, useTransitionStyles as L, useTypeahead as R } from "@floating-ui/react";
|
|
4
4
|
import { useHotkeys as z } from "react-hotkeys-hook";
|
|
5
|
-
import { Bar as B, BarChart as V, CartesianGrid as H, Cell as U, Line as ee, LineChart as W, Pie as te, PieChart as
|
|
6
|
-
import { CodeBlock as
|
|
7
|
-
import
|
|
8
|
-
import { createPortal as
|
|
5
|
+
import { Bar as B, BarChart as V, CartesianGrid as H, Cell as U, Line as ee, LineChart as W, Pie as te, PieChart as G, ReferenceLine as K, ResponsiveContainer as q, Tooltip as J, XAxis as ne, YAxis as re } from "recharts";
|
|
6
|
+
import { CodeBlock as Y } from "react-code-block";
|
|
7
|
+
import ie from "focus-trap-react";
|
|
8
|
+
import { createPortal as ae } from "react-dom";
|
|
9
9
|
import { useCombobox as oe, useMultipleSelection as X } from "downshift";
|
|
10
10
|
import { format as se } from "date-fns";
|
|
11
11
|
import { DayPicker as ce } from "react-day-picker";
|
|
@@ -1394,7 +1394,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
1394
1394
|
whileElementsMounted: S
|
|
1395
1395
|
}), O = !1, k = u(bt);
|
|
1396
1396
|
k && (O = k.isMobile);
|
|
1397
|
-
let j = v === "navbar" && O, M = "pds-menu-button", N = j ? `${M}--isMobile` : null, P = y ? `${M}--navbar` : null, F = a, [I] = h(`menu-button-${a}`), L = w.floating, R = m(null), [z, B] = h(!1), [V, H] = h(!1), [U, ee] = h(""), [W, te] = h(0),
|
|
1397
|
+
let j = v === "navbar" && O, M = "pds-menu-button", N = j ? `${M}--isMobile` : null, P = y ? `${M}--navbar` : null, F = a, [I] = h(`menu-button-${a}`), L = w.floating, R = m(null), [z, B] = h(!1), [V, H] = h(!1), [U, ee] = h(""), [W, te] = h(0), G = m([]), K = m([]), q = m([]);
|
|
1398
1398
|
f(() => {
|
|
1399
1399
|
window.addEventListener("mousedown", le, !0);
|
|
1400
1400
|
let e = L.current;
|
|
@@ -1404,35 +1404,35 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
1404
1404
|
window.removeEventListener("mousedown", le, !0);
|
|
1405
1405
|
};
|
|
1406
1406
|
}, [z, x]);
|
|
1407
|
-
let
|
|
1407
|
+
let J = (e, t) => {
|
|
1408
1408
|
ee(e), te(t);
|
|
1409
|
-
},
|
|
1409
|
+
}, ne = () => {
|
|
1410
1410
|
B(!0), H(!0);
|
|
1411
|
-
},
|
|
1412
|
-
B(!1),
|
|
1413
|
-
},
|
|
1411
|
+
}, re = () => {
|
|
1412
|
+
B(!1), J(void 0, -1), (R.current?.querySelector(`#${F}`))?.focus();
|
|
1413
|
+
}, Y = (e) => {
|
|
1414
1414
|
e = e.toLowerCase();
|
|
1415
1415
|
let t = !1;
|
|
1416
|
-
for (let n = W + 1; n <
|
|
1417
|
-
|
|
1416
|
+
for (let n = W + 1; n < q.current.length; n++) if (q.current[n].label.toLowerCase().startsWith(e)) {
|
|
1417
|
+
J(K.current[n], n), t = !0;
|
|
1418
1418
|
break;
|
|
1419
1419
|
}
|
|
1420
1420
|
if (t === !1) {
|
|
1421
|
-
for (let t = 0; t < W; t++) if (
|
|
1422
|
-
|
|
1421
|
+
for (let t = 0; t < W; t++) if (q.current[t].label.toLowerCase().startsWith(e)) {
|
|
1422
|
+
J(K.current[t], t);
|
|
1423
1423
|
break;
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
|
-
},
|
|
1427
|
-
let t =
|
|
1426
|
+
}, ie = (e) => {
|
|
1427
|
+
let t = K.current.indexOf(e), n = q.current[t];
|
|
1428
1428
|
n.callback && !n.disabled && n.callback(n), n.linkContent && !n.disabled && (R.current?.querySelector(`#${e} a`))?.click();
|
|
1429
|
-
},
|
|
1430
|
-
let e =
|
|
1431
|
-
|
|
1429
|
+
}, ae = () => {
|
|
1430
|
+
let e = K.current[W];
|
|
1431
|
+
ie(e);
|
|
1432
1432
|
}, oe = (e) => {
|
|
1433
|
-
z ?
|
|
1433
|
+
z ? re() : ne(), d && d(), e.stopPropagation(), e.preventDefault();
|
|
1434
1434
|
}, X = (e) => {
|
|
1435
|
-
|
|
1435
|
+
ie(e.currentTarget.id), j || re();
|
|
1436
1436
|
}, se = (e) => {
|
|
1437
1437
|
let t = e.key, n = !1;
|
|
1438
1438
|
switch (t) {
|
|
@@ -1440,28 +1440,28 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
1440
1440
|
case "Enter":
|
|
1441
1441
|
case "ArrowDown":
|
|
1442
1442
|
case "Down": {
|
|
1443
|
-
|
|
1443
|
+
ne();
|
|
1444
1444
|
let e = 0;
|
|
1445
|
-
for (let t = 0; t <
|
|
1445
|
+
for (let t = 0; t < q.current.length; t++) if (!q.current[t]?.disabled) {
|
|
1446
1446
|
e = t;
|
|
1447
1447
|
break;
|
|
1448
1448
|
}
|
|
1449
|
-
|
|
1449
|
+
J(K.current[e], e), n = !0, d && d();
|
|
1450
1450
|
break;
|
|
1451
1451
|
}
|
|
1452
1452
|
case "Esc":
|
|
1453
1453
|
case "Escape":
|
|
1454
|
-
|
|
1454
|
+
re(), n = !0;
|
|
1455
1455
|
break;
|
|
1456
1456
|
case "Up":
|
|
1457
1457
|
case "ArrowUp": {
|
|
1458
|
-
|
|
1459
|
-
let e =
|
|
1460
|
-
for (let t =
|
|
1458
|
+
ne();
|
|
1459
|
+
let e = K.current.length - 1;
|
|
1460
|
+
for (let t = K.current.length - 1; t >= 0; t--) if (!q.current[t]?.disabled) {
|
|
1461
1461
|
e = t;
|
|
1462
1462
|
break;
|
|
1463
1463
|
}
|
|
1464
|
-
|
|
1464
|
+
J(K.current[e], e), n = !0;
|
|
1465
1465
|
break;
|
|
1466
1466
|
}
|
|
1467
1467
|
default: break;
|
|
@@ -1473,61 +1473,61 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
1473
1473
|
return e.length === 1 && e.match(/\S/);
|
|
1474
1474
|
}
|
|
1475
1475
|
if (!(e.ctrlKey || e.altKey || e.metaKey)) {
|
|
1476
|
-
if (e.shiftKey) a(t) && (
|
|
1476
|
+
if (e.shiftKey) a(t) && (Y(t), n = !0), e.key === "Tab" && (re(), n = !0);
|
|
1477
1477
|
else switch (t) {
|
|
1478
1478
|
case " ":
|
|
1479
1479
|
case "Enter":
|
|
1480
|
-
|
|
1480
|
+
re(), ae(), n = !0;
|
|
1481
1481
|
break;
|
|
1482
1482
|
case "Esc":
|
|
1483
1483
|
case "Escape":
|
|
1484
|
-
|
|
1484
|
+
re(), n = !0;
|
|
1485
1485
|
break;
|
|
1486
1486
|
case "Up":
|
|
1487
1487
|
case "ArrowUp": {
|
|
1488
|
-
let e = 0, t =
|
|
1489
|
-
for (i = W - 1; e < t && (i < 0 && (i =
|
|
1490
|
-
r =
|
|
1488
|
+
let e = 0, t = K.current.length;
|
|
1489
|
+
for (i = W - 1; e < t && (i < 0 && (i = K.current.length - 1), q.current[i]?.disabled);) i--, e++;
|
|
1490
|
+
r = K.current[i], J(r, i), n = !0;
|
|
1491
1491
|
break;
|
|
1492
1492
|
}
|
|
1493
1493
|
case "ArrowDown":
|
|
1494
1494
|
case "Down": {
|
|
1495
|
-
let e = 0, t =
|
|
1496
|
-
for (i = W + 1; e < t && (i >
|
|
1497
|
-
r =
|
|
1495
|
+
let e = 0, t = K.current.length;
|
|
1496
|
+
for (i = W + 1; e < t && (i > K.current.length - 1 && (i = 0), q.current[i]?.disabled);) i++, e++;
|
|
1497
|
+
r = K.current[i], J(r, i), n = !0;
|
|
1498
1498
|
break;
|
|
1499
1499
|
}
|
|
1500
1500
|
case "Home":
|
|
1501
1501
|
case "PageUp": {
|
|
1502
1502
|
let e = 0;
|
|
1503
|
-
for (let t = 0; t <
|
|
1503
|
+
for (let t = 0; t < q.current.length; t++) if (!q.current[t]?.disabled) {
|
|
1504
1504
|
e = t;
|
|
1505
1505
|
break;
|
|
1506
1506
|
}
|
|
1507
|
-
|
|
1507
|
+
J(K.current[e], e), n = !0;
|
|
1508
1508
|
break;
|
|
1509
1509
|
}
|
|
1510
1510
|
case "End":
|
|
1511
1511
|
case "PageDown": {
|
|
1512
|
-
let e =
|
|
1513
|
-
for (let t =
|
|
1512
|
+
let e = K.current.length - 1;
|
|
1513
|
+
for (let t = K.current.length - 1; t >= 0; t--) if (!q.current[t]?.disabled) {
|
|
1514
1514
|
e = t;
|
|
1515
1515
|
break;
|
|
1516
1516
|
}
|
|
1517
|
-
|
|
1517
|
+
J(K.current[e], e), n = !0;
|
|
1518
1518
|
break;
|
|
1519
1519
|
}
|
|
1520
1520
|
case "Tab":
|
|
1521
|
-
|
|
1521
|
+
re();
|
|
1522
1522
|
break;
|
|
1523
1523
|
default:
|
|
1524
|
-
a(t) && (
|
|
1524
|
+
a(t) && (Y(t), n = !0);
|
|
1525
1525
|
break;
|
|
1526
1526
|
}
|
|
1527
1527
|
n && (e.stopPropagation(), e.preventDefault());
|
|
1528
1528
|
}
|
|
1529
1529
|
}, le = (e) => {
|
|
1530
|
-
R.current && !R.current.contains(e.target) && z &&
|
|
1530
|
+
R.current && !R.current.contains(e.target) && z && re();
|
|
1531
1531
|
}, ue = (t, n, r = "", i = "", ...a) => {
|
|
1532
1532
|
let o = F + (r ? `-group-${r}` : "") + "-item-" + (n + 1), s = "id" in t && t.id ? t.id : o;
|
|
1533
1533
|
if (ft(t)) return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -1545,7 +1545,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
1545
1545
|
role: "presentation"
|
|
1546
1546
|
}, t.nodeContent);
|
|
1547
1547
|
if (mt(t) || "label" in t && t.label) {
|
|
1548
|
-
|
|
1548
|
+
K.current.push(s), q.current.push(t);
|
|
1549
1549
|
let n = !1;
|
|
1550
1550
|
U !== "" && !t.disabled && (n = U === s);
|
|
1551
1551
|
let r = "isCritical" in t && t.isCritical, i = "criticalLabel" in t ? t.criticalLabel : void 0, o = [];
|
|
@@ -1590,14 +1590,14 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
1590
1590
|
t === i ? (n.push(a), a = [], a.push(t), i = r.shift()) : (a.push(t), o + 1 === e.length && n.push(a));
|
|
1591
1591
|
}), n.filter((e) => e.length > 0);
|
|
1592
1592
|
}, fe = (t) => {
|
|
1593
|
-
|
|
1593
|
+
K.current = [], q.current = [];
|
|
1594
1594
|
let n = t, i = t.filter(pt || ft), a = i.length > 0, o = [`${M}__listbox`];
|
|
1595
1595
|
if (y && o.push(`${M}__listbox--navbar`), l === "end" && o.push(`${M}__listbox--end`), r === "icon-only" && o.push(`${M}__listbox--icon-only`), o = Z(o), a) {
|
|
1596
1596
|
let n = de(t, i);
|
|
1597
1597
|
n.forEach(() => {
|
|
1598
|
-
|
|
1598
|
+
G.current.push(we());
|
|
1599
1599
|
});
|
|
1600
|
-
let r =
|
|
1600
|
+
let r = G.current[0], a = n[0].findIndex((e) => !ft(e) && !pt(e)), s = `${F}-group-${r}-item-${a + 1}`;
|
|
1601
1601
|
return /* @__PURE__ */ e.createElement("div", {
|
|
1602
1602
|
ref: w.setFloating,
|
|
1603
1603
|
"aria-activedescendant": U === "" ? s : U,
|
|
@@ -1616,7 +1616,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
1616
1616
|
},
|
|
1617
1617
|
tabIndex: -1
|
|
1618
1618
|
}, n.map((t, n) => {
|
|
1619
|
-
r =
|
|
1619
|
+
r = G.current[n];
|
|
1620
1620
|
let i = "isHeading" in t[0] && t[0].isHeading, a = i ? `${F}-group-${r}-heading` : "", o = `${F}-group-${r}`, s = i ? null : `${_} ${n + 1}`;
|
|
1621
1621
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
1622
1622
|
key: o,
|
|
@@ -2750,9 +2750,9 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
2750
2750
|
}, message: u, onBlur: f, onFocus: p, onOptionSelect: g, options: _, required: v = !1, showLabel: y = !0, tooltipText: b = null, validationMessage: x, validationStatus: T, value: E, ...j }) => {
|
|
2751
2751
|
let M = Ge(s), N = "pds-select", z = t ? `${N}--auto-width` : null, B = i ? $.disabled : null, V = v && !i ? $.required : null, H = T === "error" ? $.error : null, U = T === "success" ? $.success : null, ee = null;
|
|
2752
2752
|
T === "error" && (ee = "error"), T === "success" && (ee = "success");
|
|
2753
|
-
let W = x || u, te = E !== void 0,
|
|
2754
|
-
open:
|
|
2755
|
-
onOpenChange:
|
|
2753
|
+
let W = x || u, te = E !== void 0, G = r !== void 0, K = ((e) => e.reduce((e, t) => nt(t) ? [...e, ...t.options] : [...e, t], []))(_), q = (e) => K.findIndex((t) => t.value === e), J = te && q(E) >= 0 ? q(E) : null, ne = G ? q(r) : null, re = J || ne, [Y, ie] = h(!1), [ae, oe] = h(null), [X, se] = h(re ?? null), ce = X === null ? void 0 : K[X]?.label, le = X === null ? void 0 : K[X]?.icon, ue = X === null ? void 0 : K[X]?.value, de = m([]), { context: fe, floatingStyles: pe, refs: me } = A({
|
|
2754
|
+
open: Y,
|
|
2755
|
+
onOpenChange: ie,
|
|
2756
2756
|
whileElementsMounted: S,
|
|
2757
2757
|
placement: "bottom-start",
|
|
2758
2758
|
strategy: "absolute",
|
|
@@ -2782,7 +2782,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
2782
2782
|
ge,
|
|
2783
2783
|
F(fe, {
|
|
2784
2784
|
listRef: de,
|
|
2785
|
-
activeIndex:
|
|
2785
|
+
activeIndex: ae,
|
|
2786
2786
|
selectedIndex: X,
|
|
2787
2787
|
onNavigate: oe,
|
|
2788
2788
|
loop: !0
|
|
@@ -2790,10 +2790,10 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
2790
2790
|
he,
|
|
2791
2791
|
R(fe, {
|
|
2792
2792
|
listRef: de,
|
|
2793
|
-
activeIndex:
|
|
2793
|
+
activeIndex: ae,
|
|
2794
2794
|
selectedIndex: X,
|
|
2795
2795
|
onMatch: (e) => {
|
|
2796
|
-
|
|
2796
|
+
Y || ie(!0), oe(e);
|
|
2797
2797
|
},
|
|
2798
2798
|
findMatch: (e, t) => {
|
|
2799
2799
|
let n = t.toLowerCase();
|
|
@@ -2809,11 +2809,11 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
2809
2809
|
open: { opacity: 1 },
|
|
2810
2810
|
close: { opacity: 0 }
|
|
2811
2811
|
}), Se = (e) => {
|
|
2812
|
-
let t =
|
|
2813
|
-
te || (se(e),
|
|
2812
|
+
let t = K[e];
|
|
2813
|
+
te || (se(e), ie(!1)), g && g(t);
|
|
2814
2814
|
};
|
|
2815
2815
|
d(() => {
|
|
2816
|
-
te && (se(
|
|
2816
|
+
te && (se(q(E)), ie(!1));
|
|
2817
2817
|
}, [E]);
|
|
2818
2818
|
let Ce = () => {
|
|
2819
2819
|
f && f(ue);
|
|
@@ -2840,8 +2840,8 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
2840
2840
|
de.current[r] = e;
|
|
2841
2841
|
},
|
|
2842
2842
|
"aria-disabled": t?.disabled,
|
|
2843
|
-
"aria-selected": r === X && r ===
|
|
2844
|
-
tabIndex: r ===
|
|
2843
|
+
"aria-selected": r === X && r === ae,
|
|
2844
|
+
tabIndex: r === ae ? 0 : -1,
|
|
2845
2845
|
...!t?.disabled && ve({
|
|
2846
2846
|
onClick() {
|
|
2847
2847
|
Se(r);
|
|
@@ -2867,8 +2867,8 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
2867
2867
|
de.current[r] = e;
|
|
2868
2868
|
},
|
|
2869
2869
|
"aria-disabled": t?.disabled,
|
|
2870
|
-
"aria-selected": r === X && r ===
|
|
2871
|
-
tabIndex: r ===
|
|
2870
|
+
"aria-selected": r === X && r === ae,
|
|
2871
|
+
tabIndex: r === ae ? 0 : -1,
|
|
2872
2872
|
...!t?.disabled && ve({
|
|
2873
2873
|
onClick() {
|
|
2874
2874
|
Se(r);
|
|
@@ -2899,7 +2899,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
2899
2899
|
}, t && !s && /* @__PURE__ */ e.createElement("div", {
|
|
2900
2900
|
"aria-hidden": "true",
|
|
2901
2901
|
className: `${N}__sizer`
|
|
2902
|
-
},
|
|
2902
|
+
}, K.map((t) => /* @__PURE__ */ e.createElement("span", {
|
|
2903
2903
|
key: t.value,
|
|
2904
2904
|
className: `${N}__input-wrapper`
|
|
2905
2905
|
}, T !== void 0 && /* @__PURE__ */ e.createElement(Ze, { variant: "error" }), /* @__PURE__ */ e.createElement("span", { className: `${N}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${N}__option-text` }, t.icon && Ee(t.icon, `${N}__icon`), t.label), /* @__PURE__ */ e.createElement(Q, {
|
|
@@ -3440,7 +3440,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3440
3440
|
let t = Math.abs(e);
|
|
3441
3441
|
return t >= 1e9 ? `${(e / 1e9).toFixed(1).replace(/\.0$/, "")}B` : t >= 1e6 ? `${(e / 1e6).toFixed(1).replace(/\.0$/, "")}M` : t >= 1e3 ? `${(e / 1e3).toFixed(1).replace(/\.0$/, "")}K` : String(e);
|
|
3442
3442
|
}, Nn = ({ barRadius: t = 2, chartHeight: n, chartWidth: r, className: i, colorPalette: a = "categorical", data: o = [], isLoading: s = !1, isThumbnail: c = !1, labelStrings: u = {}, layout: f = "horizontal", legendVariant: p = "inline", onTimePeriodChange: g, selectedTimePeriod: _, series: v = [], showAccessibleTable: y, showAxisLines: b, showGrid: x, showLegend: T, showTooltip: D, timePeriodOptions: O, tooltipContent: k, variant: j = "stacked", xAxisLabel: M, xAxisTickInterval: N, yAxisDomain: P, yAxisFormatter: F = Mn, yAxisLabel: I, yAxisTickInterval: R, ...z }) => {
|
|
3443
|
-
let { accessibleTableDescription: U = "Bar chart data", emptyStateHeading: ee = "No data available", emptyStateMessage: W, legendTableHeader: te, loadingLabel:
|
|
3443
|
+
let { accessibleTableDescription: U = "Bar chart data", emptyStateHeading: ee = "No data available", emptyStateMessage: W, legendTableHeader: te, loadingLabel: G = "Loading chart data" } = u, K = m(null), Y = $t(a, on(K, a)), ie = n ?? (c ? 60 : 360), ae = r ?? (c ? 60 : void 0), oe = x ?? !c, X = b ?? !c, se = T ?? !c, ce = D ?? !c, le = y ?? !0, [ue, de] = h(null), fe = m(ue);
|
|
3444
3444
|
ue && (fe.current = ue);
|
|
3445
3445
|
let pe = m({ getBoundingClientRect: () => ({
|
|
3446
3446
|
bottom: 0,
|
|
@@ -3485,31 +3485,31 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3485
3485
|
de(null);
|
|
3486
3486
|
}, []);
|
|
3487
3487
|
if (s) return /* @__PURE__ */ e.createElement("div", {
|
|
3488
|
-
ref:
|
|
3488
|
+
ref: K,
|
|
3489
3489
|
"aria-busy": "true",
|
|
3490
|
-
"aria-label":
|
|
3490
|
+
"aria-label": G,
|
|
3491
3491
|
className: Z([
|
|
3492
3492
|
be,
|
|
3493
3493
|
`${be}--loading`,
|
|
3494
3494
|
i ?? ""
|
|
3495
3495
|
]),
|
|
3496
|
-
style: { maxWidth:
|
|
3496
|
+
style: { maxWidth: ae },
|
|
3497
3497
|
...z
|
|
3498
3498
|
}, /* @__PURE__ */ e.createElement(jn, {
|
|
3499
|
-
height:
|
|
3499
|
+
height: ie,
|
|
3500
3500
|
legendVariant: p,
|
|
3501
3501
|
showLegend: se
|
|
3502
3502
|
}));
|
|
3503
3503
|
if (!o || o.length === 0) return /* @__PURE__ */ e.createElement("div", {
|
|
3504
|
-
ref:
|
|
3504
|
+
ref: K,
|
|
3505
3505
|
className: Z([
|
|
3506
3506
|
be,
|
|
3507
3507
|
`${be}--empty`,
|
|
3508
3508
|
i ?? ""
|
|
3509
3509
|
]),
|
|
3510
3510
|
style: {
|
|
3511
|
-
height:
|
|
3512
|
-
maxWidth:
|
|
3511
|
+
height: ie,
|
|
3512
|
+
maxWidth: ae
|
|
3513
3513
|
},
|
|
3514
3514
|
...z
|
|
3515
3515
|
}, /* @__PURE__ */ e.createElement(Zt, {
|
|
@@ -3528,9 +3528,9 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3528
3528
|
0
|
|
3529
3529
|
] : 0;
|
|
3530
3530
|
return /* @__PURE__ */ e.createElement("div", {
|
|
3531
|
-
ref:
|
|
3531
|
+
ref: K,
|
|
3532
3532
|
className: Z([be, i ?? ""]),
|
|
3533
|
-
style:
|
|
3533
|
+
style: ae ? { maxWidth: ae } : void 0,
|
|
3534
3534
|
...z
|
|
3535
3535
|
}, !c && O && O.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${be}__header` }, /* @__PURE__ */ e.createElement(Jt, {
|
|
3536
3536
|
autoWidth: !0,
|
|
@@ -3547,8 +3547,8 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3547
3547
|
"aria-hidden": "true",
|
|
3548
3548
|
onMouseLeave: k ? void 0 : Ce,
|
|
3549
3549
|
onMouseMove: ce && !k ? Se : void 0
|
|
3550
|
-
}, /* @__PURE__ */ e.createElement(
|
|
3551
|
-
height:
|
|
3550
|
+
}, /* @__PURE__ */ e.createElement(q, {
|
|
3551
|
+
height: ie,
|
|
3552
3552
|
width: "100%"
|
|
3553
3553
|
}, /* @__PURE__ */ e.createElement(V, {
|
|
3554
3554
|
barGap: 6,
|
|
@@ -3570,7 +3570,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3570
3570
|
stroke: "var(--pds-color-border-default)",
|
|
3571
3571
|
strokeDasharray: "3 3",
|
|
3572
3572
|
vertical: we
|
|
3573
|
-
}), /* @__PURE__ */ e.createElement(
|
|
3573
|
+
}), /* @__PURE__ */ e.createElement(ne, {
|
|
3574
3574
|
axisLine: X,
|
|
3575
3575
|
dataKey: we ? void 0 : "label",
|
|
3576
3576
|
hide: !X,
|
|
@@ -3586,7 +3586,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3586
3586
|
tickLine: !1,
|
|
3587
3587
|
tickMargin: 10,
|
|
3588
3588
|
type: we ? "number" : "category"
|
|
3589
|
-
}), /* @__PURE__ */ e.createElement(
|
|
3589
|
+
}), /* @__PURE__ */ e.createElement(re, {
|
|
3590
3590
|
axisLine: X,
|
|
3591
3591
|
dataKey: we ? "label" : void 0,
|
|
3592
3592
|
domain: P,
|
|
@@ -3604,7 +3604,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3604
3604
|
tickLine: !1,
|
|
3605
3605
|
tickMargin: 6,
|
|
3606
3606
|
type: we ? "category" : "number"
|
|
3607
|
-
}), ce && k && /* @__PURE__ */ e.createElement(
|
|
3607
|
+
}), ce && k && /* @__PURE__ */ e.createElement(J, {
|
|
3608
3608
|
content: (e) => !e.active || !e.payload?.length ? null : k({
|
|
3609
3609
|
entries: e.payload.map((e) => ({
|
|
3610
3610
|
color: String(e.color ?? ""),
|
|
@@ -3618,12 +3618,12 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3618
3618
|
}), v.map((t, n) => /* @__PURE__ */ e.createElement(B, {
|
|
3619
3619
|
key: t.dataKey,
|
|
3620
3620
|
dataKey: t.dataKey,
|
|
3621
|
-
fill: rn(n,
|
|
3621
|
+
fill: rn(n, Y, t.color, en(a, t.paletteIndex)),
|
|
3622
3622
|
name: t.label,
|
|
3623
3623
|
onMouseEnter: k ? void 0 : (e) => {
|
|
3624
3624
|
let r = e;
|
|
3625
3625
|
ce && r && de({
|
|
3626
|
-
color: rn(n,
|
|
3626
|
+
color: rn(n, Y, t.color, en(a, t.paletteIndex)),
|
|
3627
3627
|
label: String(r.label ?? ""),
|
|
3628
3628
|
name: t.label,
|
|
3629
3629
|
value: Number(r[t.dataKey] ?? 0)
|
|
@@ -3648,7 +3648,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3648
3648
|
}), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-name" }, fe.current.name), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, ": "), /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-value" }, F(fe.current.value)))), se && /* @__PURE__ */ e.createElement(un, {
|
|
3649
3649
|
data: o,
|
|
3650
3650
|
series: v,
|
|
3651
|
-
seriesColors:
|
|
3651
|
+
seriesColors: Y,
|
|
3652
3652
|
tableHeader: te,
|
|
3653
3653
|
valueFormatter: F,
|
|
3654
3654
|
variant: p
|
|
@@ -3664,14 +3664,14 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3664
3664
|
default: return;
|
|
3665
3665
|
}
|
|
3666
3666
|
}, Fn = ({ annotations: t, chartHeight: n, chartWidth: r, className: i, colorPalette: a = "categorical", data: o = [], isLoading: s = !1, isThumbnail: c = !1, labelStrings: l = {}, legendVariant: u = "inline", lineStyle: d = "smooth", onTimePeriodChange: f, referenceLines: p, selectedTimePeriod: h, series: g = [], showAccessibleTable: _, showAxisLines: v, showDataPoints: y, showGrid: b, showLegend: x, showTooltip: S, timePeriodOptions: C, tooltipContent: w, xAxisLabel: T, xAxisTickInterval: E, yAxisDomain: D, yAxisFormatter: O = Mn, yAxisLabel: k, yAxisTickInterval: A, ...j }) => {
|
|
3667
|
-
let { accessibleTableDescription: M = "Line chart data", emptyStateHeading: N = "No data available", emptyStateMessage: P, legendTableHeader: F, loadingLabel: I = "Loading chart data" } = l, L = m(null), R = $t(a, on(L, a)), z = n ?? (c ? 60 : 360), B = r ?? (c ? 60 : void 0), V = b ?? !c, U = v ?? !c, te = x ?? !c,
|
|
3667
|
+
let { accessibleTableDescription: M = "Line chart data", emptyStateHeading: N = "No data available", emptyStateMessage: P, legendTableHeader: F, loadingLabel: I = "Loading chart data" } = l, L = m(null), R = $t(a, on(L, a)), z = n ?? (c ? 60 : 360), B = r ?? (c ? 60 : void 0), V = b ?? !c, U = v ?? !c, te = x ?? !c, G = S ?? !c, Y = y ?? !c, ie = _ ?? !0, ae = "pds-line-chart";
|
|
3668
3668
|
return s ? /* @__PURE__ */ e.createElement("div", {
|
|
3669
3669
|
ref: L,
|
|
3670
3670
|
"aria-busy": "true",
|
|
3671
3671
|
"aria-label": I,
|
|
3672
3672
|
className: Z([
|
|
3673
|
-
|
|
3674
|
-
`${
|
|
3673
|
+
ae,
|
|
3674
|
+
`${ae}--loading`,
|
|
3675
3675
|
i ?? ""
|
|
3676
3676
|
]),
|
|
3677
3677
|
style: { maxWidth: B },
|
|
@@ -3683,8 +3683,8 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3683
3683
|
})) : !o || o.length === 0 ? /* @__PURE__ */ e.createElement("div", {
|
|
3684
3684
|
ref: L,
|
|
3685
3685
|
className: Z([
|
|
3686
|
-
|
|
3687
|
-
`${
|
|
3686
|
+
ae,
|
|
3687
|
+
`${ae}--empty`,
|
|
3688
3688
|
i ?? ""
|
|
3689
3689
|
]),
|
|
3690
3690
|
style: {
|
|
@@ -3697,12 +3697,12 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3697
3697
|
message: P
|
|
3698
3698
|
})) : /* @__PURE__ */ e.createElement("div", {
|
|
3699
3699
|
ref: L,
|
|
3700
|
-
className: Z([
|
|
3700
|
+
className: Z([ae, i ?? ""]),
|
|
3701
3701
|
style: B ? { maxWidth: B } : void 0,
|
|
3702
3702
|
...j
|
|
3703
|
-
}, !c && C && C.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
3703
|
+
}, !c && C && C.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${ae}__header` }, /* @__PURE__ */ e.createElement(Jt, {
|
|
3704
3704
|
autoWidth: !0,
|
|
3705
|
-
id: `${
|
|
3705
|
+
id: `${ae}-time-period`,
|
|
3706
3706
|
label: "Time period",
|
|
3707
3707
|
onOptionSelect: (e) => f?.(e.value),
|
|
3708
3708
|
options: C.map((e) => ({
|
|
@@ -3711,7 +3711,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3711
3711
|
})),
|
|
3712
3712
|
showLabel: !1,
|
|
3713
3713
|
value: h
|
|
3714
|
-
})), /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true" }, /* @__PURE__ */ e.createElement(
|
|
3714
|
+
})), /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true" }, /* @__PURE__ */ e.createElement(q, {
|
|
3715
3715
|
height: z,
|
|
3716
3716
|
width: "100%"
|
|
3717
3717
|
}, /* @__PURE__ */ e.createElement(W, {
|
|
@@ -3730,7 +3730,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3730
3730
|
}, V && /* @__PURE__ */ e.createElement(H, {
|
|
3731
3731
|
stroke: "var(--pds-color-border-default)",
|
|
3732
3732
|
strokeDasharray: "3 3"
|
|
3733
|
-
}), /* @__PURE__ */ e.createElement(
|
|
3733
|
+
}), /* @__PURE__ */ e.createElement(ne, {
|
|
3734
3734
|
axisLine: U,
|
|
3735
3735
|
dataKey: "label",
|
|
3736
3736
|
hide: !U,
|
|
@@ -3744,7 +3744,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3744
3744
|
tick: U ? sn : !1,
|
|
3745
3745
|
tickLine: !1,
|
|
3746
3746
|
tickMargin: 10
|
|
3747
|
-
}), /* @__PURE__ */ e.createElement(
|
|
3747
|
+
}), /* @__PURE__ */ e.createElement(re, {
|
|
3748
3748
|
axisLine: U,
|
|
3749
3749
|
domain: D,
|
|
3750
3750
|
hide: !U,
|
|
@@ -3760,7 +3760,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3760
3760
|
tickFormatter: O,
|
|
3761
3761
|
tickLine: !1,
|
|
3762
3762
|
tickMargin: 6
|
|
3763
|
-
}),
|
|
3763
|
+
}), G && /* @__PURE__ */ e.createElement(J, { content: (t) => {
|
|
3764
3764
|
if (!t.active || !t.payload?.length) return null;
|
|
3765
3765
|
let n = t.payload.map((e) => ({
|
|
3766
3766
|
color: String(e.color ?? ""),
|
|
@@ -3780,9 +3780,9 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3780
3780
|
}), t.name, /* @__PURE__ */ e.createElement("span", { className: "recharts-tooltip-item-separator" }, " ", ":", " "), O(t.value))));
|
|
3781
3781
|
} }), g.map((t, n) => /* @__PURE__ */ e.createElement(ee, {
|
|
3782
3782
|
key: t.dataKey,
|
|
3783
|
-
activeDot:
|
|
3783
|
+
activeDot: Y ? { r: 6 } : !1,
|
|
3784
3784
|
dataKey: t.dataKey,
|
|
3785
|
-
dot:
|
|
3785
|
+
dot: Y ? {
|
|
3786
3786
|
fill: rn(n, R, t.color, en(a, t.paletteIndex)),
|
|
3787
3787
|
r: 4,
|
|
3788
3788
|
strokeWidth: 0
|
|
@@ -3794,7 +3794,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3794
3794
|
type: d === "straight" ? "linear" : "monotone"
|
|
3795
3795
|
})), !c && p?.map((t, n) => {
|
|
3796
3796
|
let r = t.color ?? "var(--pds-color-fg-default-secondary)";
|
|
3797
|
-
return /* @__PURE__ */ e.createElement(
|
|
3797
|
+
return /* @__PURE__ */ e.createElement(K, {
|
|
3798
3798
|
key: `ref-y-${n}`,
|
|
3799
3799
|
label: ({ viewBox: n }) => {
|
|
3800
3800
|
let r = (n?.x ?? 0) + (n?.width ?? 0) / 2, i = (n?.y ?? 0) - 8;
|
|
@@ -3814,7 +3814,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3814
3814
|
});
|
|
3815
3815
|
}), !c && t?.map((t, n) => {
|
|
3816
3816
|
let r = t.color ?? "var(--pds-color-fg-default-secondary)";
|
|
3817
|
-
return /* @__PURE__ */ e.createElement(
|
|
3817
|
+
return /* @__PURE__ */ e.createElement(K, {
|
|
3818
3818
|
key: `annotation-${n}`,
|
|
3819
3819
|
label: ({ viewBox: n }) => {
|
|
3820
3820
|
let r = (n?.x ?? 0) + (n?.width ?? 0) / 2, i = (n?.y ?? 0) - 8;
|
|
@@ -3839,7 +3839,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3839
3839
|
tableHeader: F,
|
|
3840
3840
|
valueFormatter: O,
|
|
3841
3841
|
variant: u
|
|
3842
|
-
}),
|
|
3842
|
+
}), ie && /* @__PURE__ */ e.createElement(ln, {
|
|
3843
3843
|
data: o,
|
|
3844
3844
|
description: M,
|
|
3845
3845
|
series: g,
|
|
@@ -3876,7 +3876,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3876
3876
|
d(() => {
|
|
3877
3877
|
U.setReference(B.current);
|
|
3878
3878
|
}, [U]);
|
|
3879
|
-
let
|
|
3879
|
+
let G = l((e) => {
|
|
3880
3880
|
B.current.getBoundingClientRect = () => ({
|
|
3881
3881
|
bottom: e.clientY,
|
|
3882
3882
|
height: 0,
|
|
@@ -3887,7 +3887,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3887
3887
|
x: e.clientX,
|
|
3888
3888
|
y: e.clientY
|
|
3889
3889
|
}), ee();
|
|
3890
|
-
}, [ee]),
|
|
3890
|
+
}, [ee]), K = l(() => {
|
|
3891
3891
|
R(null);
|
|
3892
3892
|
}, []);
|
|
3893
3893
|
return o ? /* @__PURE__ */ e.createElement("div", {
|
|
@@ -3925,8 +3925,8 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
3925
3925
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
3926
3926
|
"aria-hidden": "true",
|
|
3927
3927
|
className: `${k}__track`,
|
|
3928
|
-
onMouseLeave: N ?
|
|
3929
|
-
onMouseMove: N ?
|
|
3928
|
+
onMouseLeave: N ? K : void 0,
|
|
3929
|
+
onMouseMove: N ? G : void 0,
|
|
3930
3930
|
style: { height: t }
|
|
3931
3931
|
}, a.map((t, n) => {
|
|
3932
3932
|
let r = F(n, t), i = Math.round(t.value / P * 100);
|
|
@@ -4267,6 +4267,8 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
4267
4267
|
}(typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {});
|
|
4268
4268
|
t !== void 0 && t.exports && (t.exports = n), typeof global < "u" && (global.Prism = n);
|
|
4269
4269
|
})))(), 1);
|
|
4270
|
+
typeof globalThis < "u" && (globalThis.Prism = Rn.default);
|
|
4271
|
+
var zn = Rn.default;
|
|
4270
4272
|
//#endregion
|
|
4271
4273
|
//#region node_modules/prismjs/components/prism-diff.js
|
|
4272
4274
|
(function(e) {
|
|
@@ -4475,7 +4477,7 @@ var Ie = "cubic-bezier(.2, 0, 0, 1)", Le = "cubic-bezier(.2, 0, 0, 1)", Re = ({
|
|
|
4475
4477
|
})(Prism);
|
|
4476
4478
|
//#endregion
|
|
4477
4479
|
//#region src/components/CodeBlock/themes/pdsDark.ts
|
|
4478
|
-
var
|
|
4480
|
+
var Bn = {
|
|
4479
4481
|
plain: {
|
|
4480
4482
|
color: "var(--pds-color-code-block-dark-foreground)",
|
|
4481
4483
|
backgroundColor: "var(--pds-color-code-block-dark-background)"
|
|
@@ -4551,7 +4553,7 @@ var zn = {
|
|
|
4551
4553
|
style: { color: "#a0f76e" }
|
|
4552
4554
|
}
|
|
4553
4555
|
]
|
|
4554
|
-
},
|
|
4556
|
+
}, Vn = {
|
|
4555
4557
|
plain: {
|
|
4556
4558
|
color: "var(--pds-color-code-block-light-foreground)",
|
|
4557
4559
|
backgroundColor: "#f4f4f4"
|
|
@@ -4627,10 +4629,10 @@ var zn = {
|
|
|
4627
4629
|
style: { color: "#217A37" }
|
|
4628
4630
|
}
|
|
4629
4631
|
]
|
|
4630
|
-
},
|
|
4632
|
+
}, Hn = ({ className: t, code: n, colorType: r = "dark", copyButtonLabel: i = "Copy to clipboard", hasCopyButton: a, hasLineNumbers: o, hasPrompt: s, height: c, isLoading: l, language: u, loadingLineCount: d = 1, maxHeight: f, promptSymbol: p = "$", renderAsLegacy: m = !1, shouldWrap: h = !1, ...g }) => {
|
|
4631
4633
|
let _ = "pds-code-block", v = `${_}--${r}`, y = h ? `${_}__line-wrapped` : "", b = {};
|
|
4632
4634
|
c && (b.height = `${c}rem`), f && (b.maxHeight = `${f}rem`);
|
|
4633
|
-
let x = r === "dark" ? "reverse" : "standard", S = r === "dark" ?
|
|
4635
|
+
let x = r === "dark" ? "reverse" : "standard", S = r === "dark" ? Bn : Vn, C = /* @__PURE__ */ e.createElement("div", { className: `${_}__code` }, /* @__PURE__ */ e.createElement(kn, {
|
|
4634
4636
|
className: `${_}__skeleton`,
|
|
4635
4637
|
colorType: r === "dark" ? "bold" : "regular",
|
|
4636
4638
|
shape: o || s ? "code-block-prefix" : "code-block",
|
|
@@ -4675,7 +4677,7 @@ var zn = {
|
|
|
4675
4677
|
variant: x
|
|
4676
4678
|
}))));
|
|
4677
4679
|
}
|
|
4678
|
-
let D = /* @__PURE__ */ e.createElement(
|
|
4680
|
+
let D = /* @__PURE__ */ e.createElement(Y.LineContent, null, /* @__PURE__ */ e.createElement(Y.Token, null)), O = /* @__PURE__ */ e.createElement("div", { className: `${_}__line ${y}` }, /* @__PURE__ */ e.createElement(Y.LineNumber, { className: `${_}__number` }), D), k = /* @__PURE__ */ e.createElement("div", { className: `${_}__line` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__prompt` }, p), D);
|
|
4679
4681
|
return /* @__PURE__ */ e.createElement("div", {
|
|
4680
4682
|
className: Z([
|
|
4681
4683
|
_,
|
|
@@ -4684,12 +4686,12 @@ var zn = {
|
|
|
4684
4686
|
]),
|
|
4685
4687
|
style: b,
|
|
4686
4688
|
...g
|
|
4687
|
-
}, l ? C : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
4689
|
+
}, l ? C : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Y, {
|
|
4688
4690
|
code: n,
|
|
4689
4691
|
language: u || "",
|
|
4690
|
-
prism:
|
|
4692
|
+
prism: zn,
|
|
4691
4693
|
theme: S
|
|
4692
|
-
}, /* @__PURE__ */ e.createElement(
|
|
4694
|
+
}, /* @__PURE__ */ e.createElement(Y.Code, {
|
|
4693
4695
|
className: `${_}__code`,
|
|
4694
4696
|
tabIndex: 0
|
|
4695
4697
|
}, o || s ? o ? O : k : D)), a && /* @__PURE__ */ e.createElement("div", { className: `${_}__copy` }, /* @__PURE__ */ e.createElement(lt, {
|
|
@@ -4697,7 +4699,7 @@ var zn = {
|
|
|
4697
4699
|
clipboardText: n,
|
|
4698
4700
|
variant: x
|
|
4699
4701
|
}))));
|
|
4700
|
-
},
|
|
4702
|
+
}, Un = ({ className: t, linkContent: n, size: r = "md", ...i }) => {
|
|
4701
4703
|
let a = "pds-cta-link", o = r == "md" ? null : `${a}--${r}`;
|
|
4702
4704
|
return /* @__PURE__ */ e.createElement("div", {
|
|
4703
4705
|
className: Z([
|
|
@@ -4711,7 +4713,7 @@ var zn = {
|
|
|
4711
4713
|
iconName: "arrowRight",
|
|
4712
4714
|
iconSize: r === "sm" ? "md" : "lg"
|
|
4713
4715
|
}));
|
|
4714
|
-
},
|
|
4716
|
+
}, Wn = ({ backgroundColor: t = "default", className: n, containerWidth: r = "standard", headingLevel: i = "h2", headingText: a, leadText: o, primaryLinkContent: s, secondaryLinkContent: c, ...l }) => {
|
|
4715
4717
|
let u = "pds-cta-slice", d = t && t !== "default" ? `${u}--${t}` : null, f = r && r !== "standard" ? `pds-container pds-container--${r}` : "pds-container";
|
|
4716
4718
|
return /* @__PURE__ */ e.createElement("div", {
|
|
4717
4719
|
className: Z([
|
|
@@ -4725,7 +4727,7 @@ var zn = {
|
|
|
4725
4727
|
className: "pds-ts-4xl",
|
|
4726
4728
|
level: i
|
|
4727
4729
|
}, a), o && /* @__PURE__ */ e.createElement("div", { className: `${u}__lead-text pds-lead-text pds-lead-text--sm` }, o), s && /* @__PURE__ */ e.createElement("div", { className: `${u}__links pds-button-group pds-button-group--lg` }, s, c)));
|
|
4728
|
-
},
|
|
4730
|
+
}, Gn = ({ className: t, stat: n, status: r, title: i, ...a }) => {
|
|
4729
4731
|
let o = "pds-dashboard-stat", s = {
|
|
4730
4732
|
success: "circleCheck",
|
|
4731
4733
|
warning: "diamondExclamation",
|
|
@@ -4741,7 +4743,7 @@ var zn = {
|
|
|
4741
4743
|
className: `${o}__stat-status ${o}__stat-status--${r}`,
|
|
4742
4744
|
iconName: s[r]
|
|
4743
4745
|
}), n && /* @__PURE__ */ e.createElement("div", { className: `${o}__stat-value` }, n)));
|
|
4744
|
-
},
|
|
4746
|
+
}, Kn = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close drawer", disableOutsideClick: a, hasCloseButton: o = !0, isOpen: s = !1, placement: c = "right", setIsOpen: u = () => {}, size: f = "md", title: p, width: g, ..._ }) => {
|
|
4745
4747
|
let v = "pds-drawer", y = g ? null : `${v}--${f}`, b = `${v}--${c}`, x = g ? { width: g } : void 0, [S, C] = h(s), [w, T] = h(!1), E = m(null), { closeOverlay: D, openOverlay: O } = We();
|
|
4746
4748
|
d(() => {
|
|
4747
4749
|
s ? C(!0) : T(!1);
|
|
@@ -4777,7 +4779,7 @@ var zn = {
|
|
|
4777
4779
|
e.key === "Escape" && k();
|
|
4778
4780
|
};
|
|
4779
4781
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
4780
|
-
}, [S, k]), S ?
|
|
4782
|
+
}, [S, k]), S ? ae(/* @__PURE__ */ e.createElement(ie, {
|
|
4781
4783
|
active: w,
|
|
4782
4784
|
focusTrapOptions: {
|
|
4783
4785
|
clickOutsideDeactivates: !a,
|
|
@@ -4807,7 +4809,7 @@ var zn = {
|
|
|
4807
4809
|
ariaLabel: i,
|
|
4808
4810
|
onClick: k
|
|
4809
4811
|
})), /* @__PURE__ */ e.createElement("div", { className: `${v}__content` }, n)))), document.body) : null;
|
|
4810
|
-
},
|
|
4812
|
+
}, qn = ({ className: t, platform: n, videoId: r, videoTitle: i, ...a }) => {
|
|
4811
4813
|
let o = /* @__PURE__ */ e.createElement("iframe", {
|
|
4812
4814
|
allow: "autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media",
|
|
4813
4815
|
src: `https://fast.wistia.net/embed/iframe/${r}`,
|
|
@@ -4838,7 +4840,7 @@ var zn = {
|
|
|
4838
4840
|
className: Z(["pds-video-embed", t ?? ""]),
|
|
4839
4841
|
...a
|
|
4840
4842
|
}, l);
|
|
4841
|
-
},
|
|
4843
|
+
}, Jn = ({ alignment: t = "center", className: n, ctaRegion: r, heading: i, headingLevel: a = "h1", image: o, imageMarginLeft: s = "0", imageWidth: c = "40%", isWithinPanel: l, maxWidth: d = "1200px", message: f, video: p, ...m }) => {
|
|
4842
4844
|
let h = !1, g = u(bt);
|
|
4843
4845
|
g && (h = g.isMobile);
|
|
4844
4846
|
let _ = "pds-horizontal-empty-state", v = `${_}--${t}`, y = h ? `${_}--isMobile` : null, b = l ? `${_}--panel` : null, x = p ? `${_}--video` : null, S = {
|
|
@@ -4846,7 +4848,7 @@ var zn = {
|
|
|
4846
4848
|
marginLeft: s
|
|
4847
4849
|
};
|
|
4848
4850
|
f = typeof f == "string" ? /* @__PURE__ */ e.createElement("p", { className: `${_}__message` }, f) : /* @__PURE__ */ e.createElement("div", { className: `${_}__message` }, f);
|
|
4849
|
-
let C = p && /* @__PURE__ */ e.createElement("div", { className: `${_}__media` }, /* @__PURE__ */ e.createElement(
|
|
4851
|
+
let C = p && /* @__PURE__ */ e.createElement("div", { className: `${_}__media` }, /* @__PURE__ */ e.createElement(qn, {
|
|
4850
4852
|
platform: p.platform,
|
|
4851
4853
|
videoId: p.videoId
|
|
4852
4854
|
}));
|
|
@@ -4873,7 +4875,7 @@ var zn = {
|
|
|
4873
4875
|
className: `${_}__image`,
|
|
4874
4876
|
src: o
|
|
4875
4877
|
}) : o), !h && p && C);
|
|
4876
|
-
},
|
|
4878
|
+
}, Yn = ({ className: t, ctaRegion: n, heading: r, headingLevel: i = "h2", image: a, imageHeight: o = "120", imageWidth: s = "auto", message: c, ...l }) => {
|
|
4877
4879
|
let u = "pds-vertical-empty-state";
|
|
4878
4880
|
return c = typeof c == "string" ? /* @__PURE__ */ e.createElement("p", { className: `${u}__message` }, c) : /* @__PURE__ */ e.createElement("div", { className: `${u}__message` }, c), /* @__PURE__ */ e.createElement("div", {
|
|
4879
4881
|
className: Z([u, t ?? ""]),
|
|
@@ -4889,7 +4891,7 @@ var zn = {
|
|
|
4889
4891
|
className: "pds-ts-2xl pds-fw-bold",
|
|
4890
4892
|
level: i
|
|
4891
4893
|
}, r), c && c), n && /* @__PURE__ */ e.createElement("div", { className: `${u}__cta` }, n));
|
|
4892
|
-
},
|
|
4894
|
+
}, Xn = ({ additions: t = 4, className: n, componentWidth: r, deletions: i = 2, labelStrings: a = {
|
|
4893
4895
|
linesChanged: "lines changed",
|
|
4894
4896
|
additions: "additions",
|
|
4895
4897
|
deletions: "deletions"
|
|
@@ -4921,7 +4923,7 @@ var zn = {
|
|
|
4921
4923
|
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${s}__ahead-bar` })),
|
|
4922
4924
|
preferredPlacement: "top"
|
|
4923
4925
|
}))));
|
|
4924
|
-
},
|
|
4926
|
+
}, Zn = ({ className: t, contentAlignment: n = "indented", layoutDirection: r = "vertical", steps: i, ...a }) => {
|
|
4925
4927
|
let o = "pds-flow-steps", s = `${o}--${n}`, c = r === "horizontal" ? `${o}--horizontal` : "", l = i.map(({ content: t, header: r }, i) => {
|
|
4926
4928
|
let a = /* @__PURE__ */ e.createElement("div", { className: `${o}__number` }, /* @__PURE__ */ e.createElement("span", null, i + 1)), s = /* @__PURE__ */ e.createElement("div", { className: `${o}__header` }, r), c = t ? /* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, t) : null, l = `${o}__step`;
|
|
4927
4929
|
return /* @__PURE__ */ e.createElement("li", {
|
|
@@ -4939,7 +4941,7 @@ var zn = {
|
|
|
4939
4941
|
style: r === "horizontal" ? { "--flow-steps-columns": i.length } : void 0,
|
|
4940
4942
|
...a
|
|
4941
4943
|
}, l);
|
|
4942
|
-
},
|
|
4944
|
+
}, Qn = ({ className: t, headingLevel: n = "h3", headingText: r, ...i }) => {
|
|
4943
4945
|
let a = n;
|
|
4944
4946
|
return /* @__PURE__ */ e.createElement(a, {
|
|
4945
4947
|
className: Z([
|
|
@@ -4949,12 +4951,12 @@ var zn = {
|
|
|
4949
4951
|
]),
|
|
4950
4952
|
...i
|
|
4951
4953
|
}, r);
|
|
4952
|
-
},
|
|
4954
|
+
}, $n = ({ className: t, headingLevel: n, headingText: r, linkItems: i, ...a }) => {
|
|
4953
4955
|
let o = "pds-footer-links";
|
|
4954
4956
|
return /* @__PURE__ */ e.createElement("div", {
|
|
4955
4957
|
className: Z([o, t]),
|
|
4956
4958
|
...a
|
|
4957
|
-
}, r && /* @__PURE__ */ e.createElement(
|
|
4959
|
+
}, r && /* @__PURE__ */ e.createElement(Qn, {
|
|
4958
4960
|
className: `${o}__heading`,
|
|
4959
4961
|
headingLevel: n,
|
|
4960
4962
|
headingText: r
|
|
@@ -4965,7 +4967,7 @@ var zn = {
|
|
|
4965
4967
|
key: n,
|
|
4966
4968
|
className: `${o}__item`
|
|
4967
4969
|
}, t))));
|
|
4968
|
-
},
|
|
4970
|
+
}, er = ({ as: t = "div", children: n, className: r, containerWidth: i = "standard", hasTopBorder: a, legalLinks: o = [
|
|
4969
4971
|
"privacy",
|
|
4970
4972
|
"dataSubjectRequest",
|
|
4971
4973
|
"cookiePolicy",
|
|
@@ -4982,7 +4984,7 @@ var zn = {
|
|
|
4982
4984
|
]),
|
|
4983
4985
|
...s
|
|
4984
4986
|
}, /* @__PURE__ */ e.createElement("div", { className: u }, n && /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${c}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${c}__copyright` }, "© ", d, " Pantheon Systems, Inc."), f && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"), p && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), m && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"), h && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"), g && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"), _ && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement"))));
|
|
4985
|
-
},
|
|
4987
|
+
}, tr = s(({ checked: t, className: n, defaultChecked: r, disabled: i, id: a, indeterminate: o, inputProps: s, inputWidth: c, label: u, message: d, name: f, nestingLevel: p = 0, onBlur: m, onChange: g, onFocus: _, required: v, showLabel: y = !0, size: b = "M", validationMessage: x, validationStatus: S, value: C, ...w }, T) => {
|
|
4986
4988
|
let E = c ? { width: `${c / 16}rem` } : null, D = "pds-checkbox", O = i ? $.disabled : null, k = S === "error" ? $.error : null, A = p > 0 ? `${D}--indent-${p}` : null, j = v && !i ? $.required : null, M = b === "S" ? `${D}--sm` : null, N = S === "success" ? $.success : null, P = x || d, F = t !== void 0, [I, L] = h(r === void 0 ? !1 : r), R = t || I, z = (e) => {
|
|
4987
4989
|
F || L(e.target.checked), g && g(e);
|
|
4988
4990
|
}, B = `${D}__box`, V = o ? null : R ? `${B}--checked` : null, H = o ? `${B}--indeterminate` : null, U = l(() => {
|
|
@@ -5040,7 +5042,7 @@ var zn = {
|
|
|
5040
5042
|
message: P,
|
|
5041
5043
|
validationStatus: S
|
|
5042
5044
|
}));
|
|
5043
|
-
}),
|
|
5045
|
+
}), nr = ({ children: t, className: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, label: s, message: c, required: l = !1, showLabel: u = !0, tooltipText: d = null, validationMessage: f, validationStatus: p, ...m }) => {
|
|
5044
5046
|
let h = o ? { width: `${o / 16}rem` } : null, g = "pds-checkbox-group", _ = r ? $.disabled : null, v = l && !r ? $.required : null, y = p === "error" ? $.error : null, b = p === "success" ? $.success : null, x = f || c;
|
|
5045
5047
|
return /* @__PURE__ */ e.createElement("div", {
|
|
5046
5048
|
className: Z([
|
|
@@ -5072,7 +5074,7 @@ var zn = {
|
|
|
5072
5074
|
message: x,
|
|
5073
5075
|
validationStatus: p
|
|
5074
5076
|
}));
|
|
5075
|
-
},
|
|
5077
|
+
}, rr = ({ className: t, disabled: n = !1, fieldsetProps: r, id: i, inputWidth: a, label: o, message: s, onGroupBlur: c, onValueChange: l, options: u, required: d = !1, showLabel: f = !0, tooltipText: p = null, validationMessage: m, validationStatus: g, ..._ }) => {
|
|
5076
5078
|
let v = a ? { width: `${a / 16}rem` } : null, y = "pds-checkbox-group", b = n ? $.disabled : null, x = d && !n ? $.required : null, S = g === "error" ? $.error : null, C = g === "success" ? $.success : null, w = m || s;
|
|
5077
5079
|
u.map((e) => {
|
|
5078
5080
|
e.id || (e.id = e.value);
|
|
@@ -5116,7 +5118,7 @@ var zn = {
|
|
|
5116
5118
|
required: d,
|
|
5117
5119
|
showLabel: f,
|
|
5118
5120
|
tooltipText: p
|
|
5119
|
-
}), /* @__PURE__ */ e.createElement("div", { className: `${y}__options` }, u.map((t) => /* @__PURE__ */ e.createElement(
|
|
5121
|
+
}), /* @__PURE__ */ e.createElement("div", { className: `${y}__options` }, u.map((t) => /* @__PURE__ */ e.createElement(tr, {
|
|
5120
5122
|
key: t.id,
|
|
5121
5123
|
checked: t.checked,
|
|
5122
5124
|
className: `${y}__checkbox`,
|
|
@@ -5134,18 +5136,18 @@ var zn = {
|
|
|
5134
5136
|
message: w,
|
|
5135
5137
|
validationStatus: g
|
|
5136
5138
|
}));
|
|
5137
|
-
},
|
|
5139
|
+
}, ir = s(({ className: t, defaultValue: n, disabled: r = !1, hasClearButton: i = !0, hasDropdownTrigger: a = !1, hasSearchIcon: o = !0, hasSearchShortcut: s = !1, id: c, inputWidth: u, isLoading: f = !1, label: p, labelStrings: g = {
|
|
5138
5140
|
clearButton: "Clear input text",
|
|
5139
5141
|
inputInstructions: "Type to search options",
|
|
5140
5142
|
searchShortcut: "Press / to focus the search field",
|
|
5141
5143
|
triggerButton: "Toggle dropdown menu"
|
|
5142
5144
|
}, loadingText: _ = "Loading results...", message: v, noResultsText: y = "No results found", onBlur: b, onChange: x, onClear: T, onFocus: E, onOptionSelect: O, options: j, placeholder: M, required: N = !1, showLabel: R = !0, showUnfilteredOptions: z = !1, tooltipText: B = null, validationMessage: V, validationStatus: H, value: U, ...ee }, W) => {
|
|
5143
|
-
let te = Ge(u),
|
|
5144
|
-
o && (
|
|
5145
|
-
let
|
|
5145
|
+
let te = Ge(u), G = "pds-combobox", K = r ? $.disabled : null, q = N && !r ? $.required : null, J = H === "error" ? $.error : null, ne = H === "success" ? $.success : null, re = null;
|
|
5146
|
+
o && (re = "search"), H === "error" && (re = "error"), H === "success" && (re = "success");
|
|
5147
|
+
let Y = V || v, ie = U !== void 0, ae = n !== void 0, oe = (e) => {
|
|
5146
5148
|
let t = j.find((t) => t.value === e);
|
|
5147
5149
|
return t ? t.label : "";
|
|
5148
|
-
}, [X, se] = h(!1), [ce, le] = h(null), [ue, de] = h(
|
|
5150
|
+
}, [X, se] = h(!1), [ce, le] = h(null), [ue, de] = h(ae ? oe(n) : ""), [fe, pe] = h([]), me = ie ? U : ue, he = m([]), ge = m(null), { context: _e, floatingStyles: ve, refs: ye } = A({
|
|
5149
5151
|
open: X,
|
|
5150
5152
|
onOpenChange: se,
|
|
5151
5153
|
whileElementsMounted: S,
|
|
@@ -5193,17 +5195,17 @@ var zn = {
|
|
|
5193
5195
|
}, [W, ye]), Ee = () => {
|
|
5194
5196
|
se(!X);
|
|
5195
5197
|
}, De = () => {
|
|
5196
|
-
|
|
5198
|
+
ie || de(""), le(null), se(!0), ge.current?.focus(), T && T();
|
|
5197
5199
|
}, Oe = (e) => {
|
|
5198
5200
|
let t = e.target.value;
|
|
5199
|
-
x && x(e),
|
|
5201
|
+
x && x(e), ie || (t.length > 0 && (t = t.trimStart()), de(t)), t ? (le(null), se(!0)) : z || se(!1);
|
|
5200
5202
|
}, ke = (e) => {
|
|
5201
5203
|
b?.(e);
|
|
5202
5204
|
}, Ae = (e) => {
|
|
5203
5205
|
z && se(!0), E?.(e);
|
|
5204
5206
|
}, je = (e) => {
|
|
5205
5207
|
let t = fe[e];
|
|
5206
|
-
|
|
5208
|
+
ie || de(t.label), le(null), se(!1), O && O(t);
|
|
5207
5209
|
}, Me = (e) => e.map((e) => {
|
|
5208
5210
|
let { label: t, optionDisplay: n, searchIndex: r, value: i, ...a } = e, o = i || t, s = [t, i];
|
|
5209
5211
|
return r && s.push(...r), {
|
|
@@ -5244,11 +5246,11 @@ var zn = {
|
|
|
5244
5246
|
return /* @__PURE__ */ e.createElement("div", {
|
|
5245
5247
|
className: Z([
|
|
5246
5248
|
$.base,
|
|
5247
|
-
ne,
|
|
5248
5249
|
G,
|
|
5249
5250
|
K,
|
|
5250
5251
|
q,
|
|
5251
|
-
|
|
5252
|
+
J,
|
|
5253
|
+
ne,
|
|
5252
5254
|
t ?? ""
|
|
5253
5255
|
]),
|
|
5254
5256
|
style: u ? te : null,
|
|
@@ -5262,16 +5264,16 @@ var zn = {
|
|
|
5262
5264
|
tooltipText: B
|
|
5263
5265
|
}), /* @__PURE__ */ e.createElement("span", {
|
|
5264
5266
|
ref: Te,
|
|
5265
|
-
"aria-describedby":
|
|
5267
|
+
"aria-describedby": Y ? `${c}__message` : null,
|
|
5266
5268
|
"aria-disabled": r ? !0 : null,
|
|
5267
5269
|
"aria-invalid": H === "error" ? !0 : null,
|
|
5268
5270
|
"aria-required": N ? !0 : null,
|
|
5269
|
-
className: `${
|
|
5271
|
+
className: `${G}__input-wrapper`,
|
|
5270
5272
|
id: c
|
|
5271
|
-
},
|
|
5273
|
+
}, re && /* @__PURE__ */ e.createElement(Ze, { variant: re }), /* @__PURE__ */ e.createElement("input", {
|
|
5272
5274
|
ref: ge,
|
|
5273
5275
|
autoComplete: "off",
|
|
5274
|
-
className: `${
|
|
5276
|
+
className: `${G}__input`,
|
|
5275
5277
|
id: `input-${c}`,
|
|
5276
5278
|
...Se({
|
|
5277
5279
|
"aria-autocomplete": "list",
|
|
@@ -5296,38 +5298,38 @@ var zn = {
|
|
|
5296
5298
|
}), a && /* @__PURE__ */ e.createElement("button", {
|
|
5297
5299
|
"aria-expanded": X,
|
|
5298
5300
|
"aria-label": g.triggerButton,
|
|
5299
|
-
className: `${
|
|
5301
|
+
className: `${G}__trigger`,
|
|
5300
5302
|
disabled: r,
|
|
5301
5303
|
onClick: Ee,
|
|
5302
5304
|
type: "button"
|
|
5303
5305
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
5304
|
-
className: `${
|
|
5306
|
+
className: `${G}__trigger-icon`,
|
|
5305
5307
|
iconName: "angleDown"
|
|
5306
5308
|
}))), Ce && /* @__PURE__ */ e.createElement("div", {
|
|
5307
5309
|
ref: ye.setFloating,
|
|
5308
|
-
className: `${
|
|
5310
|
+
className: `${G}__dropdown`,
|
|
5309
5311
|
style: {
|
|
5310
5312
|
...ve,
|
|
5311
5313
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
5312
5314
|
},
|
|
5313
5315
|
...be()
|
|
5314
|
-
}, /* @__PURE__ */ e.createElement("div", { style: { ...we } }, f ? /* @__PURE__ */ e.createElement("div", { className: `${
|
|
5315
|
-
className: `${
|
|
5316
|
+
}, /* @__PURE__ */ e.createElement("div", { style: { ...we } }, f ? /* @__PURE__ */ e.createElement("div", { className: `${G}__loading` }, _) : fe.length > 0 ? /* @__PURE__ */ e.createElement("ul", {
|
|
5317
|
+
className: `${G}__options`,
|
|
5316
5318
|
role: "group"
|
|
5317
|
-
}, Ne) : /* @__PURE__ */ e.createElement("div", { className: `${
|
|
5319
|
+
}, Ne) : /* @__PURE__ */ e.createElement("div", { className: `${G}__no-results` }, y))), Y && /* @__PURE__ */ e.createElement(Ye, {
|
|
5318
5320
|
hasValidationMessage: !!V,
|
|
5319
5321
|
id: c,
|
|
5320
|
-
message:
|
|
5322
|
+
message: Y,
|
|
5321
5323
|
validationMessageHasDecorators: !1,
|
|
5322
5324
|
validationStatus: H
|
|
5323
5325
|
}));
|
|
5324
|
-
}),
|
|
5326
|
+
}), ar = (e, t, n) => {
|
|
5325
5327
|
let r = n.toLowerCase();
|
|
5326
5328
|
return e.filter((e) => e.label.toLowerCase().includes(r)).map((e) => ({
|
|
5327
5329
|
...e,
|
|
5328
5330
|
isAlreadySelected: t.some((t) => t.id === e.id)
|
|
5329
5331
|
})).sort((e, t) => e.badge && !t.badge ? -1 : !e.badge && t.badge ? 1 : 0);
|
|
5330
|
-
},
|
|
5332
|
+
}, or = ({ auxiliaryPanel: t, className: n, disabled: r = !1, id: i, initialSelectedItems: a = [], inputWidth: o, isLoading: s = !1, label: c = "Lorem ipsum dolor sit:", labelStrings: l = {
|
|
5331
5333
|
aiBadgeLabel: "Suggested",
|
|
5332
5334
|
aiPanelButton: "Show AI suggestions",
|
|
5333
5335
|
aiPanelClose: "Close suggestions panel",
|
|
@@ -5335,7 +5337,7 @@ var zn = {
|
|
|
5335
5337
|
inputInstructions: "Type to search options",
|
|
5336
5338
|
triggerButton: "Toggle dropdown menu"
|
|
5337
5339
|
}, loadingText: u = "Loading results...", noResultsText: d = "No results found", onChange: f, options: m, placeholder: g = "Filter", required: _ = !1, showAllTags: v = !1, showLabel: y = !0, ...b }) => {
|
|
5338
|
-
let x = Ge(o), T = "pds-combobox-multi", E = r ? $.disabled : null, O = _ && !r ? $.required : null, j = v ? `${T}--show-all-tags` : null, [M, N] = h(""), [F, I] = h(a), [L, R] = h(null), [z, B] = h(!1), V = p(() =>
|
|
5340
|
+
let x = Ge(o), T = "pds-combobox-multi", E = r ? $.disabled : null, O = _ && !r ? $.required : null, j = v ? `${T}--show-all-tags` : null, [M, N] = h(""), [F, I] = h(a), [L, R] = h(null), [z, B] = h(!1), V = p(() => ar(m, F, M), [
|
|
5339
5341
|
m,
|
|
5340
5342
|
F,
|
|
5341
5343
|
M
|
|
@@ -5357,7 +5359,7 @@ var zn = {
|
|
|
5357
5359
|
default: break;
|
|
5358
5360
|
}
|
|
5359
5361
|
}
|
|
5360
|
-
}), { closeMenu:
|
|
5362
|
+
}), { closeMenu: G, getInputProps: K, getItemProps: q, getMenuProps: J, getToggleButtonProps: ne, highlightedIndex: re, isOpen: Y, selectedItem: ie } = oe({
|
|
5361
5363
|
items: V,
|
|
5362
5364
|
itemToString: (e) => e ? e.label : "",
|
|
5363
5365
|
selectedItem: null,
|
|
@@ -5391,8 +5393,8 @@ var zn = {
|
|
|
5391
5393
|
default: break;
|
|
5392
5394
|
}
|
|
5393
5395
|
}
|
|
5394
|
-
}), { floatingStyles:
|
|
5395
|
-
open:
|
|
5396
|
+
}), { floatingStyles: ae, refs: se } = A({
|
|
5397
|
+
open: Y,
|
|
5396
5398
|
whileElementsMounted: S,
|
|
5397
5399
|
placement: "bottom-start",
|
|
5398
5400
|
strategy: "absolute",
|
|
@@ -5427,7 +5429,7 @@ var zn = {
|
|
|
5427
5429
|
}), { getFloatingProps: de } = P([k(ce)]), fe = () => {
|
|
5428
5430
|
if (r) return;
|
|
5429
5431
|
let e = !z;
|
|
5430
|
-
B(e), e &&
|
|
5432
|
+
B(e), e && Y && G();
|
|
5431
5433
|
}, pe = (e) => {
|
|
5432
5434
|
r || (e.isAlreadySelected ? U(F.filter((t) => t.id !== e.id)) : U([...F, e]));
|
|
5433
5435
|
}, me = () => {
|
|
@@ -5443,13 +5445,13 @@ var zn = {
|
|
|
5443
5445
|
}, _e = (e) => {
|
|
5444
5446
|
r || e.currentTarget.setAttribute("data-focus-method", "mouse");
|
|
5445
5447
|
}, ve = (e) => {
|
|
5446
|
-
if (e.currentTarget.setAttribute("data-focus-method", "keyboard"), !r && ((e.key === "Backspace" || e.key === "Delete") && !M && F.length > 0 && (e.preventDefault(), ge()), e.key === "Enter" && L !== null && (e.preventDefault(), ge()), e.key === "ArrowDown" && !
|
|
5448
|
+
if (e.currentTarget.setAttribute("data-focus-method", "keyboard"), !r && ((e.key === "Backspace" || e.key === "Delete") && !M && F.length > 0 && (e.preventDefault(), ge()), e.key === "Enter" && L !== null && (e.preventDefault(), ge()), e.key === "ArrowDown" && !Y)) {
|
|
5447
5449
|
e.preventDefault();
|
|
5448
5450
|
let t = e.nativeEvent;
|
|
5449
|
-
|
|
5451
|
+
ne().onClick?.(t);
|
|
5450
5452
|
}
|
|
5451
|
-
}, ye =
|
|
5452
|
-
...ee({ preventKeyAction:
|
|
5453
|
+
}, ye = K({
|
|
5454
|
+
...ee({ preventKeyAction: Y }),
|
|
5453
5455
|
disabled: r,
|
|
5454
5456
|
onKeyDown: ve
|
|
5455
5457
|
}), be = F.length === 2 ? /* @__PURE__ */ e.createElement("span", { className: `${T}__counter-item` }, F.length - 1) : F.length === 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${T}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${T}__counter-item` }, F.length - 1)) : F.length > 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${T}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${T}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${T}__counter-item` }, F.length - 1)) : "";
|
|
@@ -5510,16 +5512,16 @@ var zn = {
|
|
|
5510
5512
|
className: `${T}__trigger ${E}`,
|
|
5511
5513
|
disabled: r,
|
|
5512
5514
|
type: "button",
|
|
5513
|
-
...
|
|
5515
|
+
...ne()
|
|
5514
5516
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
5515
5517
|
className: `${T}__trigger-icon`,
|
|
5516
5518
|
iconName: "angleDown"
|
|
5517
|
-
}))),
|
|
5519
|
+
}))), Y && /* @__PURE__ */ e.createElement("div", {
|
|
5518
5520
|
...ee(),
|
|
5519
5521
|
ref: se.setFloating,
|
|
5520
5522
|
className: `${T}__dropdown`,
|
|
5521
5523
|
style: {
|
|
5522
|
-
...
|
|
5524
|
+
...ae,
|
|
5523
5525
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
5524
5526
|
}
|
|
5525
5527
|
}, /* @__PURE__ */ e.createElement("div", { className: `${T}__dropdown-input-wrapper` }, /* @__PURE__ */ e.createElement(Ze, { variant: "search" }), /* @__PURE__ */ e.createElement("input", {
|
|
@@ -5532,14 +5534,14 @@ var zn = {
|
|
|
5532
5534
|
}
|
|
5533
5535
|
})), s ? /* @__PURE__ */ e.createElement("div", { className: `${T}__loading` }, u) : V.length > 0 ? /* @__PURE__ */ e.createElement("ul", {
|
|
5534
5536
|
className: `${T}__dropdown-list`,
|
|
5535
|
-
...
|
|
5537
|
+
...J()
|
|
5536
5538
|
}, V.map((t, n) => /* @__PURE__ */ e.createElement(rt, {
|
|
5537
5539
|
key: `${t.id}-${n}`,
|
|
5538
5540
|
className: `${T}__dropdown-item
|
|
5539
|
-
${
|
|
5540
|
-
${
|
|
5541
|
+
${re === n ? `${T}__dropdown-item--highlighted` : ""}
|
|
5542
|
+
${ie === t ? `${T}__dropdown-item--selected` : ""}
|
|
5541
5543
|
${t.isAlreadySelected ? `${T}__dropdown-item--active` : ""}`,
|
|
5542
|
-
...
|
|
5544
|
+
...q({
|
|
5543
5545
|
item: t,
|
|
5544
5546
|
index: n
|
|
5545
5547
|
})
|
|
@@ -5580,7 +5582,7 @@ var zn = {
|
|
|
5580
5582
|
onClick: me,
|
|
5581
5583
|
type: "button"
|
|
5582
5584
|
}, /* @__PURE__ */ e.createElement(Q, { iconName: "xmark" })))));
|
|
5583
|
-
},
|
|
5585
|
+
}, sr = (e, t) => e ? se(e, "PP", { locale: t }) : "", cr = {
|
|
5584
5586
|
clearButton: "Clear",
|
|
5585
5587
|
doneButton: "Done",
|
|
5586
5588
|
noDateSelected: "No date selected",
|
|
@@ -5590,7 +5592,7 @@ var zn = {
|
|
|
5590
5592
|
pleaseSelectEndDate: ". Please select an end date.",
|
|
5591
5593
|
selectedDateRange: "Selected date range: ",
|
|
5592
5594
|
to: " to "
|
|
5593
|
-
},
|
|
5595
|
+
}, lr = ({ className: t, disabled: n = !1, hasDateRange: r, id: i, inputWidth: a, label: o, locale: s, maxDate: c, minDate: l, onChange: u, onInitialize: f, placeholder: p, presets: m, required: g = !1, showLabel: _ = !0, tooltipText: v, translationStrings: y = cr, value: b, ...x }) => {
|
|
5594
5596
|
let T = () => {
|
|
5595
5597
|
if (!m || !r) return "";
|
|
5596
5598
|
let e = m.find((e) => e.active);
|
|
@@ -5668,9 +5670,9 @@ var zn = {
|
|
|
5668
5670
|
U(e);
|
|
5669
5671
|
}, te = () => {
|
|
5670
5672
|
O(void 0), u?.(void 0), F("");
|
|
5671
|
-
},
|
|
5673
|
+
}, G = () => {
|
|
5672
5674
|
j(!1);
|
|
5673
|
-
},
|
|
5675
|
+
}, K = (e) => {
|
|
5674
5676
|
let t = m?.find((t) => t.label === e);
|
|
5675
5677
|
if (!t) return;
|
|
5676
5678
|
F(e);
|
|
@@ -5678,7 +5680,7 @@ var zn = {
|
|
|
5678
5680
|
O(n), u?.(n), r || setTimeout(() => {
|
|
5679
5681
|
j(!1);
|
|
5680
5682
|
}, 300);
|
|
5681
|
-
},
|
|
5683
|
+
}, q = () => r ? D?.from : D, J = ({ className: t, orientation: n }) => n === "left" ? /* @__PURE__ */ e.createElement(Q, {
|
|
5682
5684
|
className: t,
|
|
5683
5685
|
iconName: "angleLeft",
|
|
5684
5686
|
iconSize: "md"
|
|
@@ -5686,24 +5688,24 @@ var zn = {
|
|
|
5686
5688
|
className: t,
|
|
5687
5689
|
iconName: "angleRight",
|
|
5688
5690
|
iconSize: "md"
|
|
5689
|
-
}),
|
|
5691
|
+
}), ne = (e) => se(e, "EEEEE", { locale: s }), re = () => {
|
|
5690
5692
|
let e = [];
|
|
5691
5693
|
return l && e.push({ before: l }), c && e.push({ after: c }), e.length > 0 ? e : void 0;
|
|
5692
|
-
},
|
|
5694
|
+
}, Y = () => {
|
|
5693
5695
|
if (r) {
|
|
5694
5696
|
let t = D;
|
|
5695
|
-
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
5697
|
+
return t?.from ? t.to ? /* @__PURE__ */ e.createElement(e.Fragment, null, sr(t.from, s), /* @__PURE__ */ e.createElement("span", { className: `${L}__separator` }, " – "), sr(t.to, s)) : sr(t.from, s) : p || "";
|
|
5696
5698
|
} else {
|
|
5697
5699
|
let e = D;
|
|
5698
|
-
return e ?
|
|
5700
|
+
return e ? sr(e, s) : p || "";
|
|
5699
5701
|
}
|
|
5700
|
-
},
|
|
5702
|
+
}, ie = () => r ? !D?.from : !D, ae = () => {
|
|
5701
5703
|
if (r) {
|
|
5702
5704
|
let e = D;
|
|
5703
|
-
return e?.from ? e.to ? `${y.selectedDateRange}${
|
|
5705
|
+
return e?.from ? e.to ? `${y.selectedDateRange}${sr(e.from, s)}${y.to}${sr(e.to, s)}` : `${y.selectedStartDate}${sr(e.from, s)}${y.pleaseSelectEndDate}` : y.noDateRangeSelected || "";
|
|
5704
5706
|
} else {
|
|
5705
5707
|
let e = D;
|
|
5706
|
-
return e ? `${y.selectedDate}${
|
|
5708
|
+
return e ? `${y.selectedDate}${sr(e, s)}` : y.noDateSelected || "";
|
|
5707
5709
|
}
|
|
5708
5710
|
}, oe = (e) => {
|
|
5709
5711
|
V.floating.current && !V.floating.current.contains(e.target) && M && !M.contains(e.target) && j(!1);
|
|
@@ -5739,7 +5741,7 @@ var zn = {
|
|
|
5739
5741
|
disabled: n,
|
|
5740
5742
|
id: `${i}-presets`,
|
|
5741
5743
|
label: "Date range presets",
|
|
5742
|
-
onChange:
|
|
5744
|
+
onChange: K,
|
|
5743
5745
|
options: m.map((e) => ({
|
|
5744
5746
|
value: e.label,
|
|
5745
5747
|
label: e.label
|
|
@@ -5759,16 +5761,16 @@ var zn = {
|
|
|
5759
5761
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
5760
5762
|
className: `${L}__trigger-icon`,
|
|
5761
5763
|
iconName: "calendarDays"
|
|
5762
|
-
}), /* @__PURE__ */ e.createElement("span", { className: Z([`${L}__trigger-text`,
|
|
5764
|
+
}), /* @__PURE__ */ e.createElement("span", { className: Z([`${L}__trigger-text`, ie() ? `${L}__trigger-text--placeholder` : null]) }, Y()))), k && /* @__PURE__ */ e.createElement("div", {
|
|
5763
5765
|
ref: V.setFloating,
|
|
5764
5766
|
className: `${L}__popover`,
|
|
5765
5767
|
style: B
|
|
5766
5768
|
}, /* @__PURE__ */ e.createElement("div", { className: `${L}__calendar` }, r ? /* @__PURE__ */ e.createElement(ce, {
|
|
5767
|
-
components: { Chevron:
|
|
5768
|
-
defaultMonth:
|
|
5769
|
-
disabled:
|
|
5770
|
-
footer: /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" },
|
|
5771
|
-
formatters: { formatWeekdayName:
|
|
5769
|
+
components: { Chevron: J },
|
|
5770
|
+
defaultMonth: q(),
|
|
5771
|
+
disabled: re(),
|
|
5772
|
+
footer: /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, ae()),
|
|
5773
|
+
formatters: { formatWeekdayName: ne },
|
|
5772
5774
|
locale: s,
|
|
5773
5775
|
mode: "range",
|
|
5774
5776
|
navLayout: "around",
|
|
@@ -5776,11 +5778,11 @@ var zn = {
|
|
|
5776
5778
|
onSelect: ee,
|
|
5777
5779
|
selected: D
|
|
5778
5780
|
}) : /* @__PURE__ */ e.createElement(ce, {
|
|
5779
|
-
components: { Chevron:
|
|
5780
|
-
defaultMonth:
|
|
5781
|
-
disabled:
|
|
5782
|
-
footer: /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" },
|
|
5783
|
-
formatters: { formatWeekdayName:
|
|
5781
|
+
components: { Chevron: J },
|
|
5782
|
+
defaultMonth: q(),
|
|
5783
|
+
disabled: re(),
|
|
5784
|
+
footer: /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, ae()),
|
|
5785
|
+
formatters: { formatWeekdayName: ne },
|
|
5784
5786
|
locale: s,
|
|
5785
5787
|
mode: "single",
|
|
5786
5788
|
navLayout: "around",
|
|
@@ -5804,12 +5806,12 @@ var zn = {
|
|
|
5804
5806
|
}), /* @__PURE__ */ e.createElement(at, {
|
|
5805
5807
|
className: `${L}__action-button ${L}__action-button--done`,
|
|
5806
5808
|
label: y.doneButton,
|
|
5807
|
-
onClick:
|
|
5809
|
+
onClick: G,
|
|
5808
5810
|
size: "sm",
|
|
5809
5811
|
type: "button",
|
|
5810
5812
|
variant: "primary"
|
|
5811
5813
|
}))));
|
|
5812
|
-
},
|
|
5814
|
+
}, ur = s(({ accept: t, className: n, defaultValue: r, disabled: i = !1, fieldLabel: a, id: o, inputProps: s, inputWidth: c, labelStrings: l = {
|
|
5813
5815
|
chooseFile: "Choose file",
|
|
5814
5816
|
clearButton: "Clear selected file"
|
|
5815
5817
|
}, message: u, multiple: f = !1, onClear: p, onFileChange: m, required: g = !1, showFullPath: _, showLabel: v = !0, tooltipText: y = null, validationMessage: b, validationStatus: x, ...S }, C) => {
|
|
@@ -5892,7 +5894,7 @@ var zn = {
|
|
|
5892
5894
|
validationMessageHasDecorators: !1,
|
|
5893
5895
|
validationStatus: x
|
|
5894
5896
|
}));
|
|
5895
|
-
}),
|
|
5897
|
+
}), dr = ({ children: t, className: n, ...r }) => {
|
|
5896
5898
|
let i = "pds-input-group", a = [t[0], t[1]], o = t[0].props.id ?? null, s = t[0].props.message ?? null, c = t[0].props.validationMessage ?? null, l = t[0].props.validationStatus ?? null, u = c || s, d = u ? `${i}--has-message` : null;
|
|
5897
5899
|
return /* @__PURE__ */ e.createElement("div", {
|
|
5898
5900
|
className: Z([
|
|
@@ -5909,7 +5911,7 @@ var zn = {
|
|
|
5909
5911
|
validationMessageHasDecorators: !1,
|
|
5910
5912
|
validationStatus: l
|
|
5911
5913
|
}));
|
|
5912
|
-
},
|
|
5914
|
+
}, fr = ({ className: t, defaultValue: n, disabled: r = !1, fieldsetProps: i, id: a, inputWidth: o, label: s, message: c, onBlur: l, onChange: u, onValueChange: d, options: f, required: p = !1, showLabel: m = !0, tooltipText: g = null, validationMessage: _, validationStatus: v, value: y, ...b }) => {
|
|
5913
5915
|
let x = "pds-radio-group", S = r ? $.disabled : null, C = p && !r ? $.required : null, w = v === "error" ? $.error : null, T = v === "success" ? $.success : null, E = y !== void 0, [D, O] = h(n === void 0 ? "" : n), k = _ || c, A = (e) => {
|
|
5914
5916
|
E || O(e.target.value), u && u(e), d && d(e.target.value);
|
|
5915
5917
|
}, j = (e) => {
|
|
@@ -5958,7 +5960,7 @@ var zn = {
|
|
|
5958
5960
|
message: k,
|
|
5959
5961
|
validationStatus: v
|
|
5960
5962
|
}));
|
|
5961
|
-
},
|
|
5963
|
+
}, pr = s(({ checked: t, className: n, defaultChecked: r, disabled: i = !1, id: a, inputProps: o, inputWidth: s, label: c, message: l, offLabel: u = "Off", onChange: d, onLabel: f = "On", required: p = !1, showLabel: m = !0, showStatusLabel: g = !0, statusLabelPlacement: _ = "right", switchPlacement: v = "right", ...y }, b) => {
|
|
5962
5964
|
let x = Ge(s), S = "pds-switch", C = `${S}--${v}`, w = l ? `${S}--message` : null, T = i ? $.disabled : null, E = p && !i ? $.required : null, D = t !== void 0, [O, k] = h(!D && r ? r : !1), A = t || O ? f : u, j = (e) => {
|
|
5963
5965
|
D || k(e.target.checked), d && d(e);
|
|
5964
5966
|
}, M = g ? /* @__PURE__ */ e.createElement("span", {
|
|
@@ -6025,7 +6027,7 @@ var zn = {
|
|
|
6025
6027
|
required: p,
|
|
6026
6028
|
showLabel: m
|
|
6027
6029
|
}), /* @__PURE__ */ e.createElement("div", { className: `${S}__content` }, F, P));
|
|
6028
|
-
}),
|
|
6030
|
+
}), mr = ({ disabled: t, dropTargetDirection: n, focusedIndex: r, index: i, isDragging: a, isSortable: o, onDragEnd: s, onDragOver: c, onDragStart: l, onKeyboardMove: u, onRemove: f, setFocusedIndex: p, tag: h, totalTags: g, translationStrings: _ }) => {
|
|
6029
6031
|
let v = m(null), y = "pds-tags-input__tag";
|
|
6030
6032
|
d(() => {
|
|
6031
6033
|
r === i && v.current && v.current.focus();
|
|
@@ -6091,7 +6093,7 @@ var zn = {
|
|
|
6091
6093
|
iconName: "xmark",
|
|
6092
6094
|
iconSize: "md"
|
|
6093
6095
|
})));
|
|
6094
|
-
},
|
|
6096
|
+
}, hr = s(({ addMorePlaceholder: t = "Add another", className: n, disabled: r = !1, id: i, inputMinHeight: a = 80, inputWidth: o, isSortable: s = !1, label: c, message: l, onChange: u, placeholder: d, required: f = !1, showLabel: p = !0, tags: g, tooltipText: _ = null, translationStrings: v = {
|
|
6095
6097
|
inputInstructions: "Type a tag name and press Enter to add. Press Backspace on empty input to remove last tag. Press left arrow on empty input to navigate to tags.",
|
|
6096
6098
|
tagAriaLabel: "tag {index} of {total}. Press Shift plus arrow keys to reorder, Delete to remove.",
|
|
6097
6099
|
tagAriaLabelSimple: "tag {index} of {total}. Press Delete to remove.",
|
|
@@ -6104,25 +6106,25 @@ var zn = {
|
|
|
6104
6106
|
u(e);
|
|
6105
6107
|
}, te = (e) => {
|
|
6106
6108
|
N(e);
|
|
6107
|
-
},
|
|
6109
|
+
}, G = () => {
|
|
6108
6110
|
N(null), F(null), L(null);
|
|
6109
|
-
},
|
|
6111
|
+
}, K = (e, t) => {
|
|
6110
6112
|
M === null || M === e || (F(e), L(t));
|
|
6111
|
-
},
|
|
6113
|
+
}, q = (e) => {
|
|
6112
6114
|
if (e.preventDefault(), M === null || P === null || I === null) return;
|
|
6113
6115
|
let t = g.findIndex((e) => e.id === M), n = g.findIndex((e) => e.id === P);
|
|
6114
6116
|
if (t === -1 || n === -1) return;
|
|
6115
6117
|
let r = [...g], [i] = r.splice(t, 1), a = n;
|
|
6116
6118
|
a = I === "after" ? t < n ? n : n + 1 : n, r.splice(a, 0, i), W(r), ee("Tag reordered"), N(null), F(null), L(null);
|
|
6117
|
-
},
|
|
6119
|
+
}, J = (e, t) => {
|
|
6118
6120
|
let n = [...g], [r] = n.splice(e, 1);
|
|
6119
6121
|
n.splice(t, 0, r), ee(`${r.value} moved to position ${t + 1} of ${g.length}`), W(n);
|
|
6120
|
-
},
|
|
6122
|
+
}, ne = (e) => {
|
|
6121
6123
|
let t = g.find((t) => t.id === e);
|
|
6122
6124
|
W(g.filter((t) => t.id !== e)), t && ee(`${t.value} removed`), setTimeout(() => {
|
|
6123
6125
|
H.current && H.current.focus();
|
|
6124
6126
|
}, 0);
|
|
6125
|
-
},
|
|
6127
|
+
}, re = (e) => {
|
|
6126
6128
|
if (!r) if (e.key === "Enter" && A.trim()) {
|
|
6127
6129
|
e.preventDefault();
|
|
6128
6130
|
let t = {
|
|
@@ -6166,25 +6168,25 @@ var zn = {
|
|
|
6166
6168
|
}, g.length > 0 && /* @__PURE__ */ e.createElement("div", {
|
|
6167
6169
|
"aria-label": v.tagsListLabel,
|
|
6168
6170
|
className: `${w}__tags`,
|
|
6169
|
-
onDrop: s ?
|
|
6171
|
+
onDrop: s ? q : void 0,
|
|
6170
6172
|
role: "list"
|
|
6171
6173
|
}, g.map((t, n) => {
|
|
6172
6174
|
let i = null;
|
|
6173
6175
|
return M && M !== t.id && (P === t.id && I === "before" ? i = "before" : P === t.id && I === "after" && n === g.length - 1 ? i = "after" : n > 0 && P === g[n - 1].id && I === "after" && (i = "before")), /* @__PURE__ */ e.createElement("div", {
|
|
6174
6176
|
key: t.id,
|
|
6175
6177
|
role: "listitem"
|
|
6176
|
-
}, /* @__PURE__ */ e.createElement(
|
|
6178
|
+
}, /* @__PURE__ */ e.createElement(mr, {
|
|
6177
6179
|
disabled: r,
|
|
6178
6180
|
dropTargetDirection: i,
|
|
6179
6181
|
focusedIndex: R,
|
|
6180
6182
|
index: n,
|
|
6181
6183
|
isDragging: M === t.id,
|
|
6182
6184
|
isSortable: s,
|
|
6183
|
-
onDragEnd:
|
|
6184
|
-
onDragOver:
|
|
6185
|
+
onDragEnd: G,
|
|
6186
|
+
onDragOver: K,
|
|
6185
6187
|
onDragStart: te,
|
|
6186
|
-
onKeyboardMove:
|
|
6187
|
-
onRemove:
|
|
6188
|
+
onKeyboardMove: J,
|
|
6189
|
+
onRemove: ne,
|
|
6188
6190
|
setFocusedIndex: z,
|
|
6189
6191
|
tag: t,
|
|
6190
6192
|
totalTags: g.length,
|
|
@@ -6201,7 +6203,7 @@ var zn = {
|
|
|
6201
6203
|
id: i,
|
|
6202
6204
|
name: i,
|
|
6203
6205
|
onChange: (e) => j(e.target.value),
|
|
6204
|
-
onKeyDown:
|
|
6206
|
+
onKeyDown: re,
|
|
6205
6207
|
placeholder: U,
|
|
6206
6208
|
required: f,
|
|
6207
6209
|
type: "text",
|
|
@@ -6216,7 +6218,7 @@ var zn = {
|
|
|
6216
6218
|
validationMessageHasDecorators: !1,
|
|
6217
6219
|
validationStatus: b
|
|
6218
6220
|
}));
|
|
6219
|
-
}),
|
|
6221
|
+
}), gr = s(({ className: t, counterMaxLength: n, defaultValue: r, disabled: i = !1, id: a, inputWidth: o, isResizable: s = !0, label: c, message: l, onBlur: u, onChange: d, onFocus: f, placeholder: p, readonly: m = !1, required: g = !1, rows: _ = 5, showLabel: v, textareaProps: y, tooltipText: b = null, translationStrings: x = {
|
|
6220
6222
|
clearButton: "Clear input text",
|
|
6221
6223
|
counterOverLimit: "Character limit exceeded by",
|
|
6222
6224
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -6279,7 +6281,7 @@ var zn = {
|
|
|
6279
6281
|
message: F,
|
|
6280
6282
|
validationStatus: C
|
|
6281
6283
|
}));
|
|
6282
|
-
}),
|
|
6284
|
+
}), _r = () => /* @__PURE__ */ e.createElement("div", { className: "pds-text-input__url-prefix" }, "https://"), vr = s(({ autoComplete: t, className: n, counterMaxLength: r, defaultValue: i, disabled: a = !1, hasClearButton: o = !1, hasSearchShortcut: s = !1, hasUrlPrefix: c = !1, id: l, inputProps: u, inputWidth: d, label: f, message: p, onBlur: m, onChange: g, onClear: _, onFocus: v, placeholder: y, readonly: b = !1, required: x = !1, searchIcon: S = "search", showLabel: C = !0, showVisibilityToggle: w = !1, tooltipText: T = null, translationStrings: E = {
|
|
6283
6285
|
clearButton: "Clear input text",
|
|
6284
6286
|
counterOverLimit: "Character limit exceeded by",
|
|
6285
6287
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -6289,8 +6291,8 @@ var zn = {
|
|
|
6289
6291
|
}, type: D = "text", validationMessage: O, validationStatus: k, value: A, ...j }, M) => {
|
|
6290
6292
|
let N = Ge(d), P = "pds-text-input", F = a ? $.disabled : null, I = x && !a ? $.required : null, L = k === "error" ? $.error : null, R = k === "success" ? $.success : null, z = b ? $.readonly : null, B = c && D === "url" ? `${P}--has-url-prefix` : null, V = null;
|
|
6291
6293
|
D === "search" && (V = "search"), D === "search" && S === "filter" && (V = "filter"), k === "error" && (V = "error"), k === "success" && (V = "success");
|
|
6292
|
-
let H = O || p, U = A !== void 0, [ee, W] = h(i === void 0 ? "" : i), te = A || ee,
|
|
6293
|
-
if (w &&
|
|
6294
|
+
let H = O || p, U = A !== void 0, [ee, W] = h(i === void 0 ? "" : i), te = A || ee, G = (e) => {
|
|
6295
|
+
if (w && J && ne(!1), c && D === "url") {
|
|
6294
6296
|
let t = Ke(e.target.value), n = {
|
|
6295
6297
|
...e,
|
|
6296
6298
|
target: {
|
|
@@ -6300,7 +6302,7 @@ var zn = {
|
|
|
6300
6302
|
};
|
|
6301
6303
|
m && m(n);
|
|
6302
6304
|
} else m && m(e);
|
|
6303
|
-
},
|
|
6305
|
+
}, K = (e) => {
|
|
6304
6306
|
if (c && D === "url") {
|
|
6305
6307
|
let t = Ke(e.target.value), n = {
|
|
6306
6308
|
...e,
|
|
@@ -6311,16 +6313,16 @@ var zn = {
|
|
|
6311
6313
|
};
|
|
6312
6314
|
U || W(t), g && g(n);
|
|
6313
6315
|
} else U || W(e.target.value), g && g(e);
|
|
6314
|
-
},
|
|
6316
|
+
}, q = () => {
|
|
6315
6317
|
U || W(""), _ && _();
|
|
6316
6318
|
let e = document.getElementById(l);
|
|
6317
6319
|
e && e.focus();
|
|
6318
|
-
}, [
|
|
6319
|
-
|
|
6320
|
+
}, [J, ne] = h(!1), re = () => {
|
|
6321
|
+
ne((e) => !e);
|
|
6320
6322
|
let e = document.getElementById(l);
|
|
6321
6323
|
e && e.focus();
|
|
6322
|
-
},
|
|
6323
|
-
return w && D === "password" && (
|
|
6324
|
+
}, Y = D;
|
|
6325
|
+
return w && D === "password" && (Y = J ? "text" : "password"), /* @__PURE__ */ e.createElement("div", {
|
|
6324
6326
|
className: Z([
|
|
6325
6327
|
$.base,
|
|
6326
6328
|
P,
|
|
@@ -6344,7 +6346,7 @@ var zn = {
|
|
|
6344
6346
|
}), w && D === "password" && /* @__PURE__ */ e.createElement("div", {
|
|
6345
6347
|
"aria-live": "polite",
|
|
6346
6348
|
className: "visually-hidden"
|
|
6347
|
-
}, `${E.visibilityStatus} ${
|
|
6349
|
+
}, `${E.visibilityStatus} ${J ? "visible" : "hidden"}.`), /* @__PURE__ */ e.createElement("div", { className: `${P}__input-wrapper ${c && D === "url" ? `${P}__input-wrapper--has-prefix` : ""}` }, V && /* @__PURE__ */ e.createElement(Ze, { variant: V }), c && D === "url" && /* @__PURE__ */ e.createElement(_r, null), /* @__PURE__ */ e.createElement("input", {
|
|
6348
6350
|
ref: M,
|
|
6349
6351
|
"aria-describedby": H ? `${l}__message` : null,
|
|
6350
6352
|
"aria-invalid": k === "error" ? !0 : null,
|
|
@@ -6353,28 +6355,28 @@ var zn = {
|
|
|
6353
6355
|
disabled: a,
|
|
6354
6356
|
id: l,
|
|
6355
6357
|
name: l,
|
|
6356
|
-
onBlur:
|
|
6357
|
-
onChange:
|
|
6358
|
+
onBlur: G,
|
|
6359
|
+
onChange: K,
|
|
6358
6360
|
onFocus: v,
|
|
6359
6361
|
placeholder: y,
|
|
6360
6362
|
readOnly: b,
|
|
6361
6363
|
required: x,
|
|
6362
|
-
type:
|
|
6364
|
+
type: Y,
|
|
6363
6365
|
value: U ? A : ee,
|
|
6364
6366
|
...u
|
|
6365
6367
|
}), o && te && /* @__PURE__ */ e.createElement($e, {
|
|
6366
6368
|
clearLabel: E.clearButton,
|
|
6367
|
-
handleClearInput:
|
|
6369
|
+
handleClearInput: q,
|
|
6368
6370
|
id: l
|
|
6369
6371
|
}), w && D === "password" && /* @__PURE__ */ e.createElement("button", {
|
|
6370
6372
|
"aria-controls": l,
|
|
6371
6373
|
className: `${P}__visibility-toggle`,
|
|
6372
|
-
onClick:
|
|
6374
|
+
onClick: re,
|
|
6373
6375
|
onMouseDown: (e) => e.preventDefault(),
|
|
6374
|
-
title:
|
|
6376
|
+
title: J ? E.visibilityToggleHide : E.visibilityToggleShow,
|
|
6375
6377
|
type: "button"
|
|
6376
6378
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
6377
|
-
iconName:
|
|
6379
|
+
iconName: J ? "eyeSlash" : "eye",
|
|
6378
6380
|
iconSize: "md"
|
|
6379
6381
|
})), s && D === "search" && !te && /* @__PURE__ */ e.createElement(Qe, {
|
|
6380
6382
|
inputId: l,
|
|
@@ -6391,7 +6393,7 @@ var zn = {
|
|
|
6391
6393
|
validationMessageHasDecorators: !1,
|
|
6392
6394
|
validationStatus: k
|
|
6393
6395
|
}));
|
|
6394
|
-
}),
|
|
6396
|
+
}), yr = ({ children: t, className: n, fontSize: r, isLoading: i, newWindowText: a = "opens in a new window", url: o, ...s }) => {
|
|
6395
6397
|
let c = "pds-link-new-window", l = r ? `${c}--${r}` : null;
|
|
6396
6398
|
return i ? /* @__PURE__ */ e.createElement("span", {
|
|
6397
6399
|
"aria-hidden": "true",
|
|
@@ -6418,7 +6420,7 @@ var zn = {
|
|
|
6418
6420
|
className: `${c}__icon`,
|
|
6419
6421
|
iconName: "externalLink"
|
|
6420
6422
|
}));
|
|
6421
|
-
},
|
|
6423
|
+
}, br = ({ ariaLabel: t, children: n, className: r, closeButtonLabel: i = "Close modal", contentMaxHeight: a, disableOutsideClick: o, hasCloseButton: s = !0, modalIsOpen: c = !1, setModalIsOpen: l = () => {}, size: u = "md", title: f, ...p }) => {
|
|
6422
6424
|
let m = Ee(n), g = m.__unslotted, _ = m.footer, b = "pds-modal", x = u === "md" ? null : `${b}--${u}`, S = a ? {
|
|
6423
6425
|
maxHeight: a,
|
|
6424
6426
|
paddingInlineEnd: "1rem",
|
|
@@ -6494,7 +6496,7 @@ var zn = {
|
|
|
6494
6496
|
className: `${b}__content`,
|
|
6495
6497
|
style: S
|
|
6496
6498
|
}, g), _ && /* @__PURE__ */ e.createElement("div", { className: `${b}__footer` }, _)))));
|
|
6497
|
-
},
|
|
6499
|
+
}, xr = ({ ariaLabel: t = "Breadcrumb", className: n, crumbs: i, ...a }) => {
|
|
6498
6500
|
let o = "pds-breadcrumb", s = i.length, l = i.map((t, n) => {
|
|
6499
6501
|
if (n < s - 1) return /* @__PURE__ */ e.createElement("li", {
|
|
6500
6502
|
key: n,
|
|
@@ -6513,36 +6515,36 @@ var zn = {
|
|
|
6513
6515
|
className: Z([o, n ?? ""]),
|
|
6514
6516
|
...a
|
|
6515
6517
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${o}__crumbs` }, l));
|
|
6516
|
-
},
|
|
6518
|
+
}, Sr = (e) => {
|
|
6517
6519
|
if (!e) return null;
|
|
6518
6520
|
for (let t = 0; t < e.length; t++) {
|
|
6519
|
-
if (
|
|
6521
|
+
if (wr(e[t])) return typeof e[t].linkContent == "string" ? null : e[t].linkContent;
|
|
6520
6522
|
if (e[t].links) {
|
|
6521
|
-
let n =
|
|
6523
|
+
let n = Sr(e[t].links);
|
|
6522
6524
|
if (n) return n;
|
|
6523
6525
|
}
|
|
6524
6526
|
}
|
|
6525
6527
|
return null;
|
|
6526
|
-
},
|
|
6527
|
-
if (
|
|
6528
|
+
}, Cr = (e) => typeof e == "string" ? e : e.props.children, wr = (e) => typeof e.linkContent == "string" ? !1 : !!(e.isActive || e.linkContent.props.className && e.linkContent.props.className.includes("pds-isActive")), Tr = (e) => {
|
|
6529
|
+
if (wr(e)) return !0;
|
|
6528
6530
|
if (e.links) {
|
|
6529
|
-
for (let t = 0; t < e.links.length; t++) if (
|
|
6531
|
+
for (let t = 0; t < e.links.length; t++) if (Tr(e.links[t])) return !0;
|
|
6530
6532
|
}
|
|
6531
6533
|
return !1;
|
|
6532
|
-
},
|
|
6534
|
+
}, Er = (e) => {
|
|
6533
6535
|
if (c(e)) {
|
|
6534
6536
|
let t = e.type;
|
|
6535
6537
|
return t === "a" || typeof t == "string" && t.toLowerCase() === "a" || (typeof t == "function" || typeof t == "object") && t?.displayName === "Link";
|
|
6536
6538
|
}
|
|
6537
6539
|
return !1;
|
|
6538
|
-
},
|
|
6540
|
+
}, Dr = (e, t) => {
|
|
6539
6541
|
let n = null;
|
|
6540
6542
|
if (typeof e == "string" && t) {
|
|
6541
6543
|
let i = t ? t[0].linkContent : null;
|
|
6542
6544
|
c(i) && (n = r(i, { ...typeof e == "string" ? { children: e } : {} }));
|
|
6543
6545
|
} else n = e;
|
|
6544
6546
|
return n;
|
|
6545
|
-
},
|
|
6547
|
+
}, Or = (t, n, i, a) => {
|
|
6546
6548
|
let o = null;
|
|
6547
6549
|
if (typeof n == "string") {
|
|
6548
6550
|
let s = a ? [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -6567,7 +6569,7 @@ var zn = {
|
|
|
6567
6569
|
iconName: a,
|
|
6568
6570
|
iconSize: "md"
|
|
6569
6571
|
})), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, n.props.children))] })) : n), o;
|
|
6570
|
-
},
|
|
6572
|
+
}, kr = ({ ariaLabel: t, className: n, menuItems: r, size: i = "md", ...a }) => {
|
|
6571
6573
|
let o = !1, s = u(bt);
|
|
6572
6574
|
s && (o = s.isMobile);
|
|
6573
6575
|
let c = m(null), l = "pds-button-nav", f = o ? `${l}--isMobile` : null, p = i === "md" ? null : `${l}--${i}`;
|
|
@@ -6590,11 +6592,11 @@ var zn = {
|
|
|
6590
6592
|
return /* @__PURE__ */ e.createElement("li", { className: Z([r, t ? `${r}--active` : null]) }, n);
|
|
6591
6593
|
}, g = r.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${l}__menu` }, r.map((t, n) => /* @__PURE__ */ e.createElement(h, {
|
|
6592
6594
|
key: n,
|
|
6593
|
-
isActive:
|
|
6595
|
+
isActive: Tr(t),
|
|
6594
6596
|
linkContent: t.linkContent
|
|
6595
6597
|
}))) : null, _ = [];
|
|
6596
6598
|
r.map((e) => {
|
|
6597
|
-
e.linkContent && (
|
|
6599
|
+
e.linkContent && (Tr(e) ? _.unshift({
|
|
6598
6600
|
linkContent: e.linkContent,
|
|
6599
6601
|
isLink: !0
|
|
6600
6602
|
}) : _.push({
|
|
@@ -6619,11 +6621,11 @@ var zn = {
|
|
|
6619
6621
|
]),
|
|
6620
6622
|
...a
|
|
6621
6623
|
}, o ? v : g);
|
|
6622
|
-
},
|
|
6624
|
+
}, Ar = ({ className: t, destination: n = "main", text: r = "Skip to main content", ...i }) => /* @__PURE__ */ e.createElement("a", {
|
|
6623
6625
|
className: Z(["pds-skiplink", t]),
|
|
6624
6626
|
href: `#${n}`,
|
|
6625
6627
|
...i
|
|
6626
|
-
}, r),
|
|
6628
|
+
}, r), jr = i(null), Mr = ({ children: t, className: n, hasSidebarToggle: r = !0, isAdmin: i, isSidebarExpanded: a, logoLinkContent: o, setIsSidebarExpanded: s = () => {}, sidebarCollapsedWidth: c = 2.125, sidebarExpandedWidth: l = 12, sidebarToggleLabel: f = "Toggle sidebar", skiplinkText: p = "Skip to main content", ...g }) => {
|
|
6627
6629
|
let { isMobile: _, windowWidth: v } = u(bt), [y, b] = h(() => a === void 0 ? v > 1440 : a), x = m(null), [S] = ue(x), C = S.width;
|
|
6628
6630
|
d(() => {
|
|
6629
6631
|
a !== void 0 && b(a);
|
|
@@ -6665,7 +6667,7 @@ var zn = {
|
|
|
6665
6667
|
className: `${T}__main`,
|
|
6666
6668
|
id: "main"
|
|
6667
6669
|
}, I), L && /* @__PURE__ */ e.createElement("footer", { className: `${T}__footer` }, L))));
|
|
6668
|
-
return /* @__PURE__ */ e.createElement(
|
|
6670
|
+
return /* @__PURE__ */ e.createElement(jr.Provider, { value: w }, /* @__PURE__ */ e.createElement(Ar, {
|
|
6669
6671
|
destination: "main",
|
|
6670
6672
|
text: p
|
|
6671
6673
|
}), /* @__PURE__ */ e.createElement("div", {
|
|
@@ -6679,8 +6681,8 @@ var zn = {
|
|
|
6679
6681
|
]),
|
|
6680
6682
|
...g
|
|
6681
6683
|
}, _ ? R : z));
|
|
6682
|
-
},
|
|
6683
|
-
let s = "pds-dropdown-menu", [c, l] = h(!1), [u, f] = h(null), p =
|
|
6684
|
+
}, Nr = ({ className: t, headingText: n, menuItems: i, selectTextFallback: a = "Navigate to...", ...o }) => {
|
|
6685
|
+
let s = "pds-dropdown-menu", [c, l] = h(!1), [u, f] = h(null), p = Sr(i), g = p ? p.props.children : a, _ = /* @__PURE__ */ e.createElement(Q, {
|
|
6684
6686
|
className: `${s}__active-icon`,
|
|
6685
6687
|
iconName: "check",
|
|
6686
6688
|
iconSize: "md"
|
|
@@ -6698,7 +6700,7 @@ var zn = {
|
|
|
6698
6700
|
}
|
|
6699
6701
|
}, [c]);
|
|
6700
6702
|
let b = ({ item: e, level: t }) => {
|
|
6701
|
-
let n =
|
|
6703
|
+
let n = Dr(e.linkContent, e.links);
|
|
6702
6704
|
return {
|
|
6703
6705
|
...e,
|
|
6704
6706
|
level: t,
|
|
@@ -6819,8 +6821,8 @@ var zn = {
|
|
|
6819
6821
|
tabIndex: u === n ? 0 : -1,
|
|
6820
6822
|
...M()
|
|
6821
6823
|
}, t.linkContent, t.isActive === !0 && _))));
|
|
6822
|
-
},
|
|
6823
|
-
let s = "pds-dashboard-nav", c = `${s}__item`, l = `${s}__menu`, u = /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` },
|
|
6824
|
+
}, Pr = ({ icon: t, isActive: n, isSidebarExpanded: r, labels: i, linkContent: a, links: o }) => {
|
|
6825
|
+
let s = "pds-dashboard-nav", c = `${s}__item`, l = `${s}__menu`, u = /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` }, Or(s, a, o, t)), f = (t, r) => /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
6824
6826
|
l,
|
|
6825
6827
|
`${l}--${r}`,
|
|
6826
6828
|
n ? `${l}--expanded` : null
|
|
@@ -6829,7 +6831,7 @@ var zn = {
|
|
|
6829
6831
|
className: Z([
|
|
6830
6832
|
c,
|
|
6831
6833
|
`${c}--${r}`,
|
|
6832
|
-
|
|
6834
|
+
Tr(t) ? `${c}--active` : null
|
|
6833
6835
|
])
|
|
6834
6836
|
}, t.linkContent))), [p, g] = h(!1), _ = m(p), { context: v, floatingStyles: y, refs: b } = A({
|
|
6835
6837
|
placement: "right-start",
|
|
@@ -6920,7 +6922,7 @@ var zn = {
|
|
|
6920
6922
|
]),
|
|
6921
6923
|
...D(),
|
|
6922
6924
|
onKeyDown: O
|
|
6923
|
-
}, o ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` },
|
|
6925
|
+
}, o ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` }, Or(s, a, o, t), r && /* @__PURE__ */ e.createElement("button", {
|
|
6924
6926
|
"aria-expanded": n,
|
|
6925
6927
|
className: Z([`${s}__toggle`, n ? `${s}__toggle--expanded` : null]),
|
|
6926
6928
|
onClick: j,
|
|
@@ -6928,13 +6930,13 @@ var zn = {
|
|
|
6928
6930
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
6929
6931
|
iconName: "angleDown",
|
|
6930
6932
|
iconSize: "md"
|
|
6931
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${
|
|
6933
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${Cr(a)} ${i.submenu}`))), r && f(o, "second-level"), !r && p && /* @__PURE__ */ e.createElement("div", {
|
|
6932
6934
|
ref: b.setFloating,
|
|
6933
6935
|
className: `${s}__flyout`,
|
|
6934
6936
|
style: y,
|
|
6935
6937
|
...x()
|
|
6936
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__flyout-heading` },
|
|
6937
|
-
content:
|
|
6938
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__flyout-heading` }, Cr(a)), f(o, "second-level-flyout"))) : /* @__PURE__ */ e.createElement(e.Fragment, null, r ? u : /* @__PURE__ */ e.createElement(Re, {
|
|
6939
|
+
content: Cr(a),
|
|
6938
6940
|
customTrigger: u,
|
|
6939
6941
|
offsetValue: {
|
|
6940
6942
|
mainAxis: 8,
|
|
@@ -6942,18 +6944,18 @@ var zn = {
|
|
|
6942
6944
|
},
|
|
6943
6945
|
preferredPlacement: "right"
|
|
6944
6946
|
})));
|
|
6945
|
-
},
|
|
6947
|
+
}, Fr = ({ ariaLabel: t, className: n, labels: r = {
|
|
6946
6948
|
submenu: "submenu",
|
|
6947
6949
|
toggle: "Toggle"
|
|
6948
6950
|
}, menuItems: i, mobileMenuSelectTextFallback: a = "Navigate to...", secondaryMenuItems: o, secondaryMenuLabel: s, ...c }) => {
|
|
6949
6951
|
let l = !1, d = u(bt);
|
|
6950
6952
|
d && (l = d.isMobile);
|
|
6951
|
-
let f = u(
|
|
6953
|
+
let f = u(jr), p = !0, m = null;
|
|
6952
6954
|
f && (p = f.isSidebarExpanded, m = f.logoLinkContent);
|
|
6953
|
-
let h = "pds-dashboard-nav", g = p ? `${h}--expanded` : `${h}--collapsed`, _ = /* @__PURE__ */ e.createElement(e.Fragment, null, i.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${h}__menu ${h}__menu--top-level` }, i.map((t, n) => /* @__PURE__ */ e.createElement(
|
|
6955
|
+
let h = "pds-dashboard-nav", g = p ? `${h}--expanded` : `${h}--collapsed`, _ = /* @__PURE__ */ e.createElement(e.Fragment, null, i.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${h}__menu ${h}__menu--top-level` }, i.map((t, n) => /* @__PURE__ */ e.createElement(Pr, {
|
|
6954
6956
|
key: n,
|
|
6955
6957
|
icon: t.icon,
|
|
6956
|
-
isActive:
|
|
6958
|
+
isActive: Tr(t),
|
|
6957
6959
|
isSidebarExpanded: p,
|
|
6958
6960
|
labels: r,
|
|
6959
6961
|
linkContent: t.linkContent,
|
|
@@ -6964,22 +6966,22 @@ var zn = {
|
|
|
6964
6966
|
}), s && /* @__PURE__ */ e.createElement("div", {
|
|
6965
6967
|
"aria-hidden": "true",
|
|
6966
6968
|
className: `${h}__section-label`
|
|
6967
|
-
}, s), /* @__PURE__ */ e.createElement("ul", { className: `${h}__menu ${h}__menu--top-level` }, o.map((t, n) => /* @__PURE__ */ e.createElement(
|
|
6969
|
+
}, s), /* @__PURE__ */ e.createElement("ul", { className: `${h}__menu ${h}__menu--top-level` }, o.map((t, n) => /* @__PURE__ */ e.createElement(Pr, {
|
|
6968
6970
|
key: n,
|
|
6969
6971
|
icon: t.icon,
|
|
6970
|
-
isActive:
|
|
6972
|
+
isActive: Tr(t),
|
|
6971
6973
|
isSidebarExpanded: p,
|
|
6972
6974
|
labels: r,
|
|
6973
6975
|
linkContent: t.linkContent,
|
|
6974
6976
|
links: t.links
|
|
6975
6977
|
}))))), v = (e) => e.map((e) => ({
|
|
6976
6978
|
...e,
|
|
6977
|
-
linkContent:
|
|
6979
|
+
linkContent: Or(h, e.linkContent, e.links, e.icon)
|
|
6978
6980
|
})), y = o && o.length > 0 ? [
|
|
6979
6981
|
...v(i),
|
|
6980
6982
|
{ isSeparator: !0 },
|
|
6981
6983
|
...v(o)
|
|
6982
|
-
] : v(i), b = /* @__PURE__ */ e.createElement(
|
|
6984
|
+
] : v(i), b = /* @__PURE__ */ e.createElement(Nr, {
|
|
6983
6985
|
menuItems: y,
|
|
6984
6986
|
selectTextFallback: a
|
|
6985
6987
|
});
|
|
@@ -6996,7 +6998,7 @@ var zn = {
|
|
|
6996
6998
|
displayType: p ? "full" : "icon",
|
|
6997
6999
|
linkContent: m
|
|
6998
7000
|
}), l ? b : _);
|
|
6999
|
-
},
|
|
7001
|
+
}, Ir = ({ className: t, option: n, ...r }) => {
|
|
7000
7002
|
let i = "pds-site-option-display", a = n.type ? vt[n.type] : "bolt", o = m(null), [s] = ue(o), c = s.width / 16 - 7.5, l, u;
|
|
7001
7003
|
n.status === "active" && (l = "Active", u = "success"), n.status === "frozen" && (l = "Frozen", u = "frozen"), n.status === "restricted" && (l = "Restricted", u = "critical");
|
|
7002
7004
|
let d = /* @__PURE__ */ e.createElement(Pe, {
|
|
@@ -7019,7 +7021,7 @@ var zn = {
|
|
|
7019
7021
|
className: `${i}__status`,
|
|
7020
7022
|
style: { pointerEvents: "none" }
|
|
7021
7023
|
}, d));
|
|
7022
|
-
},
|
|
7024
|
+
}, Lr = ({ className: t, disabled: n = !1, horizontalOffset: r = 0, id: i, isLoading: a = !1, label: o = "Search sites", labelStrings: s = {
|
|
7023
7025
|
clearButton: "Clear input text",
|
|
7024
7026
|
inputInstructions: "Type to search options"
|
|
7025
7027
|
}, loadingText: c = "Loading results...", noResultsText: l = "No results found", onFocus: d, onOptionSelect: f, placeholder: p = "Search sites", siteList: m, ...g }) => {
|
|
@@ -7033,10 +7035,10 @@ var zn = {
|
|
|
7033
7035
|
id: n,
|
|
7034
7036
|
label: i,
|
|
7035
7037
|
value: r ?? i,
|
|
7036
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
7038
|
+
optionDisplay: /* @__PURE__ */ e.createElement(Ir, { option: t }),
|
|
7037
7039
|
siteData: t
|
|
7038
7040
|
};
|
|
7039
|
-
}), T = /* @__PURE__ */ e.createElement(
|
|
7041
|
+
}), T = /* @__PURE__ */ e.createElement(ir, {
|
|
7040
7042
|
hasClearButton: !0,
|
|
7041
7043
|
hasSearchShortcut: !0,
|
|
7042
7044
|
className: `${x}__combobox`,
|
|
@@ -7063,7 +7065,7 @@ var zn = {
|
|
|
7063
7065
|
id: i,
|
|
7064
7066
|
...g
|
|
7065
7067
|
}, y ? D : E);
|
|
7066
|
-
},
|
|
7068
|
+
}, Rr = ({ children: t, className: n, width: r = "standard", ...i }) => {
|
|
7067
7069
|
let a = "pds-container", o = r === "standard" ? null : `${a}--${r}`;
|
|
7068
7070
|
return /* @__PURE__ */ e.createElement("div", {
|
|
7069
7071
|
className: Z([
|
|
@@ -7073,13 +7075,13 @@ var zn = {
|
|
|
7073
7075
|
]),
|
|
7074
7076
|
...i
|
|
7075
7077
|
}, t);
|
|
7076
|
-
},
|
|
7078
|
+
}, zr = ({ children: n, className: i, colorType: a = "default", containerWidth: s = "x-wide", hideBorder: l, hideLogo: f = !1, logoDisplayType: p = "full", logoLinkContent: m, logoSrc: g, logoSubBrand: _, translationStrings: v = {
|
|
7077
7079
|
closeMobileNav: "Close navigation area",
|
|
7078
7080
|
openMobileNav: "Open navigation area"
|
|
7079
7081
|
}, ...y }) => {
|
|
7080
7082
|
let [b, x] = h(!1), S = !1, C = u(bt);
|
|
7081
7083
|
C && (S = C.isMobile);
|
|
7082
|
-
let { closeOverlay: w, openOverlay: T } = We(), E = u(
|
|
7084
|
+
let { closeOverlay: w, openOverlay: T } = We(), E = u(jr);
|
|
7083
7085
|
E && (m = E.logoLinkContent);
|
|
7084
7086
|
let D = "pds-navbar", O = l ? `${D}--noBorder` : "", k = a === "default" ? "" : `${D}--${a}`, A = S ? `${D}--isMobile` : `${D}--notMobile`, j = (e) => {
|
|
7085
7087
|
let t = e.key, n = !1;
|
|
@@ -7159,14 +7161,14 @@ var zn = {
|
|
|
7159
7161
|
})), U = t.toArray(n).sort((e, t) => (c(e) && parseInt(e.props["data-mobile-order"], 10) || Infinity) - (c(t) && parseInt(t.props["data-mobile-order"], 10) || Infinity)), ee = /* @__PURE__ */ e.createElement("div", {
|
|
7160
7162
|
ref: N,
|
|
7161
7163
|
className: b ? `${D}__mobile ${D}__mobile--open` : `${D}__mobile ${D}__mobile--closed`
|
|
7162
|
-
}, /* @__PURE__ */ e.createElement(
|
|
7164
|
+
}, /* @__PURE__ */ e.createElement(Rr, null, U)), W = /* @__PURE__ */ e.createElement(ie, {
|
|
7163
7165
|
active: b,
|
|
7164
7166
|
focusTrapOptions: {
|
|
7165
7167
|
clickOutsideDeactivates: !0,
|
|
7166
7168
|
initialFocus: !1,
|
|
7167
7169
|
returnFocusOnDeactivate: !1
|
|
7168
7170
|
}
|
|
7169
|
-
}, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
7171
|
+
}, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(Rr, { className: `${D}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${D}__inner-mobile` }, V(), n && H)), /* @__PURE__ */ e.createElement(Rr, null, n && ee))), te = /* @__PURE__ */ e.createElement(Rr, {
|
|
7170
7172
|
className: `${D}__inner`,
|
|
7171
7173
|
width: s
|
|
7172
7174
|
}, !f && /* @__PURE__ */ e.createElement("div", { className: `${D}__logo` }, V()), /* @__PURE__ */ e.createElement("div", { className: `${D}__content` }, I ? /* @__PURE__ */ e.createElement("div", { className: `${D}__items-left` }, I) : /* @__PURE__ */ e.createElement("span", null), L && /* @__PURE__ */ e.createElement("div", { className: `${D}__items-right` }, L)));
|
|
@@ -7180,7 +7182,7 @@ var zn = {
|
|
|
7180
7182
|
]),
|
|
7181
7183
|
...y
|
|
7182
7184
|
}, S ? W : te);
|
|
7183
|
-
},
|
|
7185
|
+
}, Br = ({ items: t, label: n, mobileMenuMaxWidth: r = 640 }) => {
|
|
7184
7186
|
let [i, a] = h(!1), [o, s] = h(0);
|
|
7185
7187
|
d(() => (s(window.innerWidth), window.addEventListener("resize", c), () => {
|
|
7186
7188
|
window.removeEventListener("resize", c);
|
|
@@ -7224,7 +7226,7 @@ var zn = {
|
|
|
7224
7226
|
className: `${u}__item ${t.isSeparator ? `${u}__dropdown--separator` : `${u}__item--second-level`} ${x(t) ? `${u}__item--active` : null}`,
|
|
7225
7227
|
role: t.isSeparator ? "separator" : "menuitem"
|
|
7226
7228
|
}, !t.isSeparator && t.linkContent))));
|
|
7227
|
-
},
|
|
7229
|
+
}, Vr = ({ ariaLabel: t = "Main Navigation", className: n, colorType: r = "default", menuItems: i, mobileMenuMaxWidth: a = 640, ...o }) => {
|
|
7228
7230
|
let [s, c] = h(1025), [l, u] = h(null), [f, p] = h(-1), [g, _] = h(null), [v, y] = h({
|
|
7229
7231
|
container: null,
|
|
7230
7232
|
containerChildren: []
|
|
@@ -7277,7 +7279,7 @@ var zn = {
|
|
|
7277
7279
|
},
|
|
7278
7280
|
className: `${S}__item ${S}__item--top-level ${S}__item--has-children ${D(t) === !0 ? `${S}__item--active` : ""}`,
|
|
7279
7281
|
id: i
|
|
7280
|
-
}, /* @__PURE__ */ e.createElement(
|
|
7282
|
+
}, /* @__PURE__ */ e.createElement(Br, {
|
|
7281
7283
|
items: t.links,
|
|
7282
7284
|
label: t.label,
|
|
7283
7285
|
mobileMenuMaxWidth: a
|
|
@@ -7302,7 +7304,7 @@ var zn = {
|
|
|
7302
7304
|
},
|
|
7303
7305
|
...o
|
|
7304
7306
|
}, /* @__PURE__ */ e.createElement("ul", { className: `${S}__menu` }, O));
|
|
7305
|
-
},
|
|
7307
|
+
}, Hr = ({ ariaLabel: t, className: n, headingText: i, labels: a = {
|
|
7306
7308
|
submenu: "submenu",
|
|
7307
7309
|
toggle: "Toggle"
|
|
7308
7310
|
}, menuItems: o, mobileMenuSelectTextFallback: s = "Navigate to...", ...l }) => {
|
|
@@ -7312,7 +7314,7 @@ var zn = {
|
|
|
7312
7314
|
let i = t.getAttribute("aria-expanded") === "false";
|
|
7313
7315
|
t.classList.toggle(`${u}__toggle--expanded`, i), t.setAttribute("aria-expanded", i ? "true" : "false"), n.classList.toggle(`${f}--expanded`, i);
|
|
7314
7316
|
}, m = (t, n) => {
|
|
7315
|
-
let { linkContent: i, links: o } = t, s =
|
|
7317
|
+
let { linkContent: i, links: o } = t, s = Tr(t), l = Er(i), m = s;
|
|
7316
7318
|
return /* @__PURE__ */ e.createElement("li", {
|
|
7317
7319
|
key: n,
|
|
7318
7320
|
className: Z([
|
|
@@ -7321,7 +7323,7 @@ var zn = {
|
|
|
7321
7323
|
o ? `${d}--has-children` : null,
|
|
7322
7324
|
s ? `${d}--active` : null
|
|
7323
7325
|
])
|
|
7324
|
-
}, o ? l ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${d}-wrapper` },
|
|
7326
|
+
}, o ? l ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${d}-wrapper` }, Dr(i, o), /* @__PURE__ */ e.createElement("button", {
|
|
7325
7327
|
"aria-expanded": m,
|
|
7326
7328
|
className: Z([`${u}__toggle`, m ? `${u}__toggle--expanded` : null]),
|
|
7327
7329
|
onClick: p,
|
|
@@ -7329,7 +7331,7 @@ var zn = {
|
|
|
7329
7331
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
7330
7332
|
iconName: "angleDown",
|
|
7331
7333
|
iconSize: "md"
|
|
7332
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${
|
|
7334
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Cr(i)} ${a.submenu}`))), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
7333
7335
|
f,
|
|
7334
7336
|
`${f}--second-level`,
|
|
7335
7337
|
m ? `${f}--expanded` : null
|
|
@@ -7338,9 +7340,9 @@ var zn = {
|
|
|
7338
7340
|
className: Z([
|
|
7339
7341
|
d,
|
|
7340
7342
|
`${d}--second-level`,
|
|
7341
|
-
|
|
7343
|
+
Tr(t) ? `${d}--active` : null
|
|
7342
7344
|
])
|
|
7343
|
-
},
|
|
7345
|
+
}, Dr(t.linkContent, t.links))))) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
7344
7346
|
"aria-expanded": m,
|
|
7345
7347
|
className: Z([
|
|
7346
7348
|
`${u}__toggle`,
|
|
@@ -7352,7 +7354,7 @@ var zn = {
|
|
|
7352
7354
|
}, c(i) && i.type === "span" ? r(i, { className: Z([i.props.className, `${u}__toggle-content`]) }) : /* @__PURE__ */ e.createElement("span", { className: `${u}__toggle-content` }, i), /* @__PURE__ */ e.createElement(Q, {
|
|
7353
7355
|
iconName: "angleDown",
|
|
7354
7356
|
iconSize: "md"
|
|
7355
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${
|
|
7357
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Cr(i)} ${a.submenu}`)), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
7356
7358
|
f,
|
|
7357
7359
|
`${f}--second-level`,
|
|
7358
7360
|
m ? `${f}--expanded` : null
|
|
@@ -7361,10 +7363,10 @@ var zn = {
|
|
|
7361
7363
|
className: Z([
|
|
7362
7364
|
d,
|
|
7363
7365
|
`${d}--second-level`,
|
|
7364
|
-
|
|
7366
|
+
Tr(t) ? `${d}--active` : null
|
|
7365
7367
|
])
|
|
7366
|
-
},
|
|
7367
|
-
}, h = /* @__PURE__ */ e.createElement(e.Fragment, null, i && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading pds-ts-l` }, i), o.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, o.map((e, t) => m(e, t)))), g = /* @__PURE__ */ e.createElement(
|
|
7368
|
+
}, Dr(t.linkContent, t.links))))) : i);
|
|
7369
|
+
}, h = /* @__PURE__ */ e.createElement(e.Fragment, null, i && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading pds-ts-l` }, i), o.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, o.map((e, t) => m(e, t)))), g = /* @__PURE__ */ e.createElement(Nr, {
|
|
7368
7370
|
className: `${u}__mobile`,
|
|
7369
7371
|
headingText: i,
|
|
7370
7372
|
menuItems: o,
|
|
@@ -7375,7 +7377,7 @@ var zn = {
|
|
|
7375
7377
|
className: Z([u, n ?? ""]),
|
|
7376
7378
|
...l
|
|
7377
7379
|
}, h, g);
|
|
7378
|
-
},
|
|
7380
|
+
}, Ur = 0, Wr = ({ ariaLabel: t, className: n, hasMobileMenu: r = !0, headingText: i, labels: a = {
|
|
7379
7381
|
submenu: "submenu",
|
|
7380
7382
|
toggle: "Toggle"
|
|
7381
7383
|
}, menuItems: o, mobileMenuMaxWidth: s = 640, mobileMenuSelectTextFallback: c = "Navigate to...", ...l }) => {
|
|
@@ -7457,7 +7459,7 @@ var zn = {
|
|
|
7457
7459
|
O();
|
|
7458
7460
|
let n = e.querySelector("a") || t;
|
|
7459
7461
|
n && (n.focus(), T.current = w.current.indexOf(n));
|
|
7460
|
-
},
|
|
7462
|
+
}, Ur));
|
|
7461
7463
|
}
|
|
7462
7464
|
} else if (j(t)) {
|
|
7463
7465
|
let e = t.classList.contains(`${u}__toggle`) ? t : k(t);
|
|
@@ -7507,7 +7509,7 @@ var zn = {
|
|
|
7507
7509
|
opacity: "1",
|
|
7508
7510
|
marginBlockStart: `${hn}rem`
|
|
7509
7511
|
}], {
|
|
7510
|
-
duration:
|
|
7512
|
+
duration: Ur,
|
|
7511
7513
|
easing: Le
|
|
7512
7514
|
}).onfinish = () => {
|
|
7513
7515
|
Object.assign(e.style, {
|
|
@@ -7527,7 +7529,7 @@ var zn = {
|
|
|
7527
7529
|
opacity: "0",
|
|
7528
7530
|
marginBlockStart: "0"
|
|
7529
7531
|
}], {
|
|
7530
|
-
duration:
|
|
7532
|
+
duration: Ur,
|
|
7531
7533
|
easing: Le
|
|
7532
7534
|
});
|
|
7533
7535
|
n.onfinish = () => {
|
|
@@ -7543,21 +7545,21 @@ var zn = {
|
|
|
7543
7545
|
3: "third",
|
|
7544
7546
|
4: "fourth"
|
|
7545
7547
|
}, B = (t, n, r) => {
|
|
7546
|
-
let i = z[t], o = `${p}--${i}-level`, s = `${f}--${i}-level`, c = t + 1, l =
|
|
7548
|
+
let i = z[t], o = `${p}--${i}-level`, s = `${f}--${i}-level`, c = t + 1, l = Tr(n), d = !1, m = S.current?.querySelector(`.${f}--top-level[data-item-path="${n.path}"]`);
|
|
7547
7549
|
if (m) {
|
|
7548
7550
|
let e = Array.from(S.current?.querySelectorAll(`.${f}--top-level`) || []).indexOf(m);
|
|
7549
7551
|
d = b.includes(e);
|
|
7550
7552
|
} else d = l;
|
|
7551
7553
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, /* @__PURE__ */ e.createElement("button", {
|
|
7552
|
-
"aria-expanded":
|
|
7553
|
-
className: Z([`${u}__toggle`,
|
|
7554
|
+
"aria-expanded": Tr(n),
|
|
7555
|
+
className: Z([`${u}__toggle`, Tr(n) ? `${u}__toggle--expanded` : null]),
|
|
7554
7556
|
onClick: I,
|
|
7555
7557
|
type: "button"
|
|
7556
7558
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
7557
7559
|
iconName: "caretDown",
|
|
7558
7560
|
iconSize: "md",
|
|
7559
7561
|
verticalAlign: "-0.0625rem"
|
|
7560
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${
|
|
7562
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Cr(n.linkContent)} ${a.submenu}`)), Dr(n.linkContent, n.links)), /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
7561
7563
|
p,
|
|
7562
7564
|
o,
|
|
7563
7565
|
d ? `${p}--expanded` : null
|
|
@@ -7566,7 +7568,7 @@ var zn = {
|
|
|
7566
7568
|
className: Z([
|
|
7567
7569
|
f,
|
|
7568
7570
|
s,
|
|
7569
|
-
|
|
7571
|
+
Tr(t) ? `${f}--active` : null
|
|
7570
7572
|
]),
|
|
7571
7573
|
"data-item-path": t.path || ""
|
|
7572
7574
|
}, t.links && c in z ? B(c, t, t.links) : t.linkContent))));
|
|
@@ -7577,11 +7579,11 @@ var zn = {
|
|
|
7577
7579
|
className: Z([
|
|
7578
7580
|
f,
|
|
7579
7581
|
`${f}--top-level`,
|
|
7580
|
-
|
|
7582
|
+
Tr(t) ? `${f}--active` : null
|
|
7581
7583
|
]),
|
|
7582
7584
|
"data-item-path": t.path || ""
|
|
7583
7585
|
}, i ? B(2, t, i) : r);
|
|
7584
|
-
}, H = /* @__PURE__ */ e.createElement(e.Fragment, null, i && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading pds-ts-l` }, i), o.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, o.map((e, t) => V(e, t)))), U = /* @__PURE__ */ e.createElement(
|
|
7586
|
+
}, H = /* @__PURE__ */ e.createElement(e.Fragment, null, i && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading pds-ts-l` }, i), o.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, o.map((e, t) => V(e, t)))), U = /* @__PURE__ */ e.createElement(Nr, {
|
|
7585
7587
|
headingText: i,
|
|
7586
7588
|
menuItems: o,
|
|
7587
7589
|
selectTextFallback: c
|
|
@@ -7598,8 +7600,8 @@ var zn = {
|
|
|
7598
7600
|
tabIndex: 0,
|
|
7599
7601
|
...l
|
|
7600
7602
|
}, D && r ? U : H);
|
|
7601
|
-
},
|
|
7602
|
-
let s = "pds-side-nav-global", c = `${s}__item`, l = `${s}__menu`, u = /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` },
|
|
7603
|
+
}, Gr = ({ icon: t, isActive: n, isSidebarCollapsed: r, labels: i, linkContent: a, links: o }) => {
|
|
7604
|
+
let s = "pds-side-nav-global", c = `${s}__item`, l = `${s}__menu`, u = /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` }, Or(s, a, o, t)), f = (t, r) => /* @__PURE__ */ e.createElement("ul", { className: Z([
|
|
7603
7605
|
l,
|
|
7604
7606
|
`${l}--${r}`,
|
|
7605
7607
|
n ? `${l}--expanded` : null
|
|
@@ -7608,7 +7610,7 @@ var zn = {
|
|
|
7608
7610
|
className: Z([
|
|
7609
7611
|
c,
|
|
7610
7612
|
`${c}--${r}`,
|
|
7611
|
-
|
|
7613
|
+
Tr(t) ? `${c}--active` : null
|
|
7612
7614
|
])
|
|
7613
7615
|
}, t.linkContent))), [p, g] = h(!1), _ = m(p), { context: v, floatingStyles: y, refs: b } = A({
|
|
7614
7616
|
placement: "right-start",
|
|
@@ -7662,7 +7664,7 @@ var zn = {
|
|
|
7662
7664
|
]),
|
|
7663
7665
|
...D(),
|
|
7664
7666
|
onKeyDown: O
|
|
7665
|
-
}, o ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` },
|
|
7667
|
+
}, o ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` }, Or(s, a, o, t), !r && /* @__PURE__ */ e.createElement("button", {
|
|
7666
7668
|
"aria-expanded": n,
|
|
7667
7669
|
className: Z([`${s}__toggle`, n ? `${s}__toggle--expanded` : null]),
|
|
7668
7670
|
onClick: j,
|
|
@@ -7670,13 +7672,13 @@ var zn = {
|
|
|
7670
7672
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
7671
7673
|
iconName: "angleDown",
|
|
7672
7674
|
iconSize: "md"
|
|
7673
|
-
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${
|
|
7675
|
+
}), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${i.toggle} ${Cr(a)} ${i.submenu}`))), !r && f(o, "second-level"), r && p && /* @__PURE__ */ e.createElement("div", {
|
|
7674
7676
|
ref: b.setFloating,
|
|
7675
7677
|
className: `${s}__flyout`,
|
|
7676
7678
|
style: y,
|
|
7677
7679
|
...x()
|
|
7678
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__flyout-heading` },
|
|
7679
|
-
content:
|
|
7680
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${s}__flyout-heading` }, Cr(a)), f(o, "second-level-flyout"))) : /* @__PURE__ */ e.createElement(e.Fragment, null, r ? /* @__PURE__ */ e.createElement(Re, {
|
|
7681
|
+
content: Cr(a),
|
|
7680
7682
|
customTrigger: u,
|
|
7681
7683
|
offsetValue: {
|
|
7682
7684
|
mainAxis: 8,
|
|
@@ -7684,7 +7686,7 @@ var zn = {
|
|
|
7684
7686
|
},
|
|
7685
7687
|
preferredPlacement: "right"
|
|
7686
7688
|
}) : u));
|
|
7687
|
-
},
|
|
7689
|
+
}, Kr = ({ ariaLabel: t, className: n, hasLogo: r, isSidebarCollapsed: i, labels: a = {
|
|
7688
7690
|
submenu: "submenu",
|
|
7689
7691
|
toggle: "Toggle"
|
|
7690
7692
|
}, logoLinkContent: o, menuItems: s, mobileMenuSelectTextFallback: c = "Navigate to...", ...l }) => {
|
|
@@ -7692,18 +7694,18 @@ var zn = {
|
|
|
7692
7694
|
className: `${u}__logo`,
|
|
7693
7695
|
displayType: i ? "icon" : "full",
|
|
7694
7696
|
linkContent: o
|
|
7695
|
-
})), s.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, s.map((t, n) => /* @__PURE__ */ e.createElement(
|
|
7697
|
+
})), s.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, s.map((t, n) => /* @__PURE__ */ e.createElement(Gr, {
|
|
7696
7698
|
key: n,
|
|
7697
7699
|
icon: t.icon,
|
|
7698
|
-
isActive:
|
|
7700
|
+
isActive: Tr(t),
|
|
7699
7701
|
isSidebarCollapsed: i,
|
|
7700
7702
|
labels: a,
|
|
7701
7703
|
linkContent: t.linkContent,
|
|
7702
7704
|
links: t.links
|
|
7703
7705
|
})))), p = s.map((e) => ({
|
|
7704
7706
|
...e,
|
|
7705
|
-
linkContent:
|
|
7706
|
-
})), m = /* @__PURE__ */ e.createElement(
|
|
7707
|
+
linkContent: Or(u, e.linkContent, e.links, e.icon)
|
|
7708
|
+
})), m = /* @__PURE__ */ e.createElement(Nr, {
|
|
7707
7709
|
className: `${u}__dropdown-menu`,
|
|
7708
7710
|
menuItems: p,
|
|
7709
7711
|
selectTextFallback: c
|
|
@@ -7717,7 +7719,7 @@ var zn = {
|
|
|
7717
7719
|
]),
|
|
7718
7720
|
...l
|
|
7719
7721
|
}, f, m);
|
|
7720
|
-
},
|
|
7722
|
+
}, qr = ({ buttonLabel: t = "Toggle dropdown", filterLabel: n = "Filter items", filterPlaceholder: r = "Filter items...", links: i, minFilterItems: a = 5, noResultsText: o = "No results found" }) => {
|
|
7721
7723
|
let [s, c] = h(!1), [l, u] = h(null), [f, p] = h(i), [g, _] = h(""), v = i.length >= a, y = "pds-tab-menu", b = `${y}__dropdown-menu`, x = v ? `${b}--scroll` : null, C = `${y}__dropdown-item`, w = m([]), { context: T, refs: E } = A({
|
|
7722
7724
|
open: s,
|
|
7723
7725
|
onOpenChange: c,
|
|
@@ -7744,7 +7746,7 @@ var zn = {
|
|
|
7744
7746
|
close: { opacity: 0 }
|
|
7745
7747
|
}), V = (e) => {
|
|
7746
7748
|
e.preventDefault(), e.key === "Enter" && w.current[l].querySelector("a")?.click(), e.key === "Tab" && e.shiftKey && (v ? document.getElementById("links-filter").focus() : c(!1));
|
|
7747
|
-
}, H = (e, t) =>
|
|
7749
|
+
}, H = (e, t) => Cr(e.linkContent).toLowerCase().includes(t.toLowerCase()), U = (e) => {
|
|
7748
7750
|
let t = e.target.value;
|
|
7749
7751
|
_(t), p(i.filter((e) => H(e, t)));
|
|
7750
7752
|
};
|
|
@@ -7755,11 +7757,11 @@ var zn = {
|
|
|
7755
7757
|
_(""), p(i);
|
|
7756
7758
|
}, W = {
|
|
7757
7759
|
minWidth: "13rem",
|
|
7758
|
-
width: `${
|
|
7760
|
+
width: `${Cr(i.reduce((e, t) => Cr(e.linkContent).length > Cr(t.linkContent).length ? e : t).linkContent).length + 2}ch`
|
|
7759
7761
|
}, te = /* @__PURE__ */ e.createElement(Q, {
|
|
7760
7762
|
className: `${y}__active-icon`,
|
|
7761
7763
|
iconName: "check"
|
|
7762
|
-
}),
|
|
7764
|
+
}), G = v && /* @__PURE__ */ e.createElement("div", { className: `${y}__filter` }, /* @__PURE__ */ e.createElement(vr, {
|
|
7763
7765
|
hasClearButton: !0,
|
|
7764
7766
|
autoComplete: "off",
|
|
7765
7767
|
id: "links-filter",
|
|
@@ -7769,7 +7771,7 @@ var zn = {
|
|
|
7769
7771
|
placeholder: r,
|
|
7770
7772
|
showLabel: !1,
|
|
7771
7773
|
type: "search"
|
|
7772
|
-
})),
|
|
7774
|
+
})), K = f.map((t, n) => {
|
|
7773
7775
|
let r = t.isActive ? `${C}--active` : null;
|
|
7774
7776
|
return /* @__PURE__ */ e.createElement("li", {
|
|
7775
7777
|
key: n,
|
|
@@ -7800,12 +7802,12 @@ var zn = {
|
|
|
7800
7802
|
zIndex: "var(--pds-z-index-dropdown)",
|
|
7801
7803
|
...W
|
|
7802
7804
|
} })
|
|
7803
|
-
}, /* @__PURE__ */ e.createElement("div", { style: { ...B } },
|
|
7804
|
-
},
|
|
7805
|
+
}, /* @__PURE__ */ e.createElement("div", { style: { ...B } }, G, /* @__PURE__ */ e.createElement("ul", { className: Z([b, x]) }, K.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${y}__no-results` }, o) : K))));
|
|
7806
|
+
}, Jr = ({ ariaLabel: t, className: n, menuItems: i, ...a }) => {
|
|
7805
7807
|
let o = !1, s = u(bt);
|
|
7806
7808
|
s && (o = s.isMobile);
|
|
7807
7809
|
let l = "pds-tab-menu", d = o ? `${l}--isMobile` : null, f = ({ dropdownSettings: t, icon: n, isActive: i, linkContent: a, links: s, promoteActiveChildLink: u = !1 }) => {
|
|
7808
|
-
let d = `${l}__item`, f =
|
|
7810
|
+
let d = `${l}__item`, f = Sr(s);
|
|
7809
7811
|
return /* @__PURE__ */ e.createElement("li", { className: Z([d, i ? `${d}--active` : null]) }, ((t, n) => {
|
|
7810
7812
|
let i = null;
|
|
7811
7813
|
return c(t) && (i = n ? r(t, Object.assign({}, t.props, { children: [/* @__PURE__ */ e.createElement("span", {
|
|
@@ -7816,7 +7818,7 @@ var zn = {
|
|
|
7816
7818
|
iconName: n,
|
|
7817
7819
|
iconSize: o ? "sm" : "md"
|
|
7818
7820
|
}), t.props.children)] })) : t), i;
|
|
7819
|
-
})(u ? f : a, n), s && /* @__PURE__ */ e.createElement(
|
|
7821
|
+
})(u ? f : a, n), s && /* @__PURE__ */ e.createElement(qr, {
|
|
7820
7822
|
buttonLabel: t?.buttonLabel,
|
|
7821
7823
|
filterLabel: t?.filterLabel,
|
|
7822
7824
|
filterPlaceholder: t?.filterPlaceholder,
|
|
@@ -7828,7 +7830,7 @@ var zn = {
|
|
|
7828
7830
|
key: n,
|
|
7829
7831
|
dropdownSettings: t.dropdownSettings,
|
|
7830
7832
|
icon: t.icon,
|
|
7831
|
-
isActive:
|
|
7833
|
+
isActive: Tr(t),
|
|
7832
7834
|
linkContent: t.linkContent,
|
|
7833
7835
|
links: t.links,
|
|
7834
7836
|
promoteActiveChildLink: t.promoteActiveChildLink
|
|
@@ -7842,7 +7844,7 @@ var zn = {
|
|
|
7842
7844
|
]),
|
|
7843
7845
|
...a
|
|
7844
7846
|
}, o ? /* @__PURE__ */ e.createElement("div", { className: `${l}__mobile-menu-wrapper` }, p) : p);
|
|
7845
|
-
},
|
|
7847
|
+
}, Yr = ({ ariaLabel: t = "User menu", className: n, menuItems: r, userEmail: i, userImageSrc: a, userName: o, withinNavbar: s = !0, ...c }) => {
|
|
7846
7848
|
let [l, d] = h(null), [f, p] = h(!1), g = m([]), _ = m([]), v = !1, y = u(bt);
|
|
7847
7849
|
y && (v = y.isMobile);
|
|
7848
7850
|
let b = s && v, x = "pds-user-menu", T = b ? `${x}--isMobile` : null, D = `${x}__menu`, { context: j, floatingStyles: M, refs: N } = A({
|
|
@@ -7876,16 +7878,16 @@ var zn = {
|
|
|
7876
7878
|
initial: { opacity: 0 },
|
|
7877
7879
|
open: { opacity: 1 },
|
|
7878
7880
|
close: { opacity: 0 }
|
|
7879
|
-
}),
|
|
7881
|
+
}), G = /* @__PURE__ */ e.createElement(Me, {
|
|
7880
7882
|
hasUserFallback: !0,
|
|
7881
7883
|
className: `${x}__avatar`,
|
|
7882
7884
|
imageSrc: a,
|
|
7883
7885
|
size: "sm",
|
|
7884
7886
|
uniqueId: i
|
|
7885
|
-
}),
|
|
7887
|
+
}), K = /* @__PURE__ */ e.createElement(Q, {
|
|
7886
7888
|
className: `${x}__trigger-icon`,
|
|
7887
7889
|
iconName: "angleDown"
|
|
7888
|
-
}),
|
|
7890
|
+
}), q = /* @__PURE__ */ e.createElement("li", {
|
|
7889
7891
|
className: `${x}__user-details`,
|
|
7890
7892
|
role: "presentation"
|
|
7891
7893
|
}, b ? null : /* @__PURE__ */ e.createElement("div", { className: `${x}__user-name` }, o), /* @__PURE__ */ e.createElement("div", { className: `${x}__user-email` }, i));
|
|
@@ -7893,14 +7895,14 @@ var zn = {
|
|
|
7893
7895
|
let t = e.id ? e.id : we();
|
|
7894
7896
|
g.current.push(t), _.current.push(e);
|
|
7895
7897
|
});
|
|
7896
|
-
let
|
|
7898
|
+
let J = (e) => {
|
|
7897
7899
|
let t = g.current.indexOf(e), n = _.current[t];
|
|
7898
7900
|
n.linkContent && !n.disabled && (V.current[t].querySelector("a").click(), p(!1)), n.callback && !n.disabled && (n.callback(n), p(!1));
|
|
7901
|
+
}, ne = (e) => {
|
|
7902
|
+
e.preventDefault(), e.key === "Enter" && J(e.currentTarget.id);
|
|
7899
7903
|
}, re = (e) => {
|
|
7900
|
-
|
|
7901
|
-
},
|
|
7902
|
-
q(e.currentTarget.id);
|
|
7903
|
-
}, J = r.map((t, n) => {
|
|
7904
|
+
J(e.currentTarget.id);
|
|
7905
|
+
}, Y = r.map((t, n) => {
|
|
7904
7906
|
let r = g.current[n], i = `${x}__item`, a = t.disabled ? `${i}--disabled` : null;
|
|
7905
7907
|
return /* @__PURE__ */ e.createElement("li", {
|
|
7906
7908
|
key: r,
|
|
@@ -7909,22 +7911,22 @@ var zn = {
|
|
|
7909
7911
|
},
|
|
7910
7912
|
className: Z([i, a]),
|
|
7911
7913
|
id: r,
|
|
7912
|
-
onKeyDown:
|
|
7914
|
+
onKeyDown: ne,
|
|
7913
7915
|
role: "menuitem",
|
|
7914
7916
|
tabIndex: l === n ? 0 : -1,
|
|
7915
|
-
...U({ onClick: (e) =>
|
|
7917
|
+
...U({ onClick: (e) => re(e) })
|
|
7916
7918
|
}, t.iconName && /* @__PURE__ */ e.createElement(Q, {
|
|
7917
7919
|
className: `${x}__icon`,
|
|
7918
7920
|
iconName: t.iconName,
|
|
7919
7921
|
iconSize: "sm"
|
|
7920
7922
|
}), t.linkContent ? t.linkContent : t.label);
|
|
7921
|
-
}),
|
|
7923
|
+
}), ie = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
7922
7924
|
ref: N.setReference,
|
|
7923
7925
|
"aria-label": t,
|
|
7924
7926
|
className: `${x}__trigger`,
|
|
7925
7927
|
type: "button",
|
|
7926
7928
|
...ee()
|
|
7927
|
-
},
|
|
7929
|
+
}, G), W && /* @__PURE__ */ e.createElement("div", {
|
|
7928
7930
|
ref: N.setFloating,
|
|
7929
7931
|
className: `${x}__dropdown`,
|
|
7930
7932
|
style: {
|
|
@@ -7935,7 +7937,7 @@ var zn = {
|
|
|
7935
7937
|
}, /* @__PURE__ */ e.createElement("div", { style: { ...te } }, /* @__PURE__ */ e.createElement("ul", {
|
|
7936
7938
|
className: D,
|
|
7937
7939
|
role: "menu"
|
|
7938
|
-
},
|
|
7940
|
+
}, q, /* @__PURE__ */ e.createElement("li", { role: "separator" }), Y)))), ae = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("button", {
|
|
7939
7941
|
"aria-expanded": !1,
|
|
7940
7942
|
"aria-label": t,
|
|
7941
7943
|
className: `${x}__toggle`,
|
|
@@ -7943,10 +7945,10 @@ var zn = {
|
|
|
7943
7945
|
let t = e.currentTarget;
|
|
7944
7946
|
t.classList.toggle(`${x}__toggle--expanded`), t.setAttribute("aria-expanded", t.getAttribute("aria-expanded") === "true" ? "false" : "true"), t.nextElementSibling.classList.toggle(`${x}__mobile-menu--expanded`);
|
|
7945
7947
|
}
|
|
7946
|
-
}, /* @__PURE__ */ e.createElement("span", { className: `${x}__toggle-left` },
|
|
7948
|
+
}, /* @__PURE__ */ e.createElement("span", { className: `${x}__toggle-left` }, G, o || i), K), /* @__PURE__ */ e.createElement("div", { className: `${x}__mobile-menu` }, /* @__PURE__ */ e.createElement("ul", {
|
|
7947
7949
|
className: Z([D, `${D}--isMobile`]),
|
|
7948
7950
|
role: "menu"
|
|
7949
|
-
},
|
|
7951
|
+
}, q, /* @__PURE__ */ e.createElement("li", { role: "separator" }), Y)));
|
|
7950
7952
|
return /* @__PURE__ */ e.createElement("span", {
|
|
7951
7953
|
className: Z([
|
|
7952
7954
|
x,
|
|
@@ -7954,8 +7956,8 @@ var zn = {
|
|
|
7954
7956
|
n ?? ""
|
|
7955
7957
|
]),
|
|
7956
7958
|
...c
|
|
7957
|
-
}, b ?
|
|
7958
|
-
},
|
|
7959
|
+
}, b ? ae : ie);
|
|
7960
|
+
}, Xr = {
|
|
7959
7961
|
silver: "Silver",
|
|
7960
7962
|
gold: "Gold",
|
|
7961
7963
|
platinum: "Platinum",
|
|
@@ -7964,14 +7966,14 @@ var zn = {
|
|
|
7964
7966
|
standard: "Standard",
|
|
7965
7967
|
premium: "Premium",
|
|
7966
7968
|
priority: "Priority"
|
|
7967
|
-
},
|
|
7969
|
+
}, Zr = ({ ariaLabel: t = "Workspace selector menu", className: n, createWorkspaceLink: r, filterLabel: i = "Filter workspaces", filterPlaceholder: a = "Find workspace...", menuHeading: o = "Workspaces", minFilterItems: s = 8, noResultsText: c = "No results found", withinNavbar: l = !0, workspaceList: d, ...f }) => {
|
|
7968
7970
|
let [g, _] = h(!1), [v, y] = h(null), [b, x] = h(""), C = m([]), w = m(null), T = d.length >= s, E = !1, D = u(bt);
|
|
7969
7971
|
D && (E = D.isMobile);
|
|
7970
7972
|
let j = l && E, M = "pds-workspace-selector", N = j ? `${M}--isMobile` : null, z = `${M}__menu`, B = T ? `${z}--scroll` : null, { context: V, floatingStyles: H, refs: U } = A({
|
|
7971
7973
|
open: g,
|
|
7972
7974
|
onOpenChange: _,
|
|
7973
7975
|
whileElementsMounted: S
|
|
7974
|
-
}), ee = O(V, { event: "mousedown" }), { getFloatingProps: W, getItemProps: te, getReferenceProps:
|
|
7976
|
+
}), ee = O(V, { event: "mousedown" }), { getFloatingProps: W, getItemProps: te, getReferenceProps: G } = P([
|
|
7975
7977
|
k(V),
|
|
7976
7978
|
I(V, { role: "menu" }),
|
|
7977
7979
|
ee,
|
|
@@ -7996,7 +7998,7 @@ var zn = {
|
|
|
7996
7998
|
return e.find((e) => (e?.textContent?.trim().toLowerCase() ?? "").startsWith(n));
|
|
7997
7999
|
}
|
|
7998
8000
|
})
|
|
7999
|
-
]), { isMounted:
|
|
8001
|
+
]), { isMounted: K, styles: q } = L(V, {
|
|
8000
8002
|
duration: {
|
|
8001
8003
|
open: 300,
|
|
8002
8004
|
close: 150
|
|
@@ -8004,28 +8006,28 @@ var zn = {
|
|
|
8004
8006
|
initial: { opacity: 0 },
|
|
8005
8007
|
open: { opacity: 1 },
|
|
8006
8008
|
close: { opacity: 0 }
|
|
8007
|
-
}),
|
|
8008
|
-
|
|
8009
|
-
let
|
|
8009
|
+
}), J = d.find((e) => e.isActive);
|
|
8010
|
+
J || (J = d[0]);
|
|
8011
|
+
let ne = p(() => {
|
|
8010
8012
|
if (!b) return d;
|
|
8011
8013
|
let e = b.toLowerCase();
|
|
8012
8014
|
return d.filter((t) => t.displayName.toLowerCase().includes(e));
|
|
8013
|
-
}, [d, b]),
|
|
8015
|
+
}, [d, b]), re = (e) => {
|
|
8014
8016
|
e.preventDefault(), e.key === "Enter" && (C.current[v].querySelector("a") || C.current[v].querySelector("button"))?.click(), e.key === "Tab" && (e.shiftKey ? T ? document.getElementById("workspace-filter").focus() : _(!1) : r ? w.current.querySelector("a").focus() : _(!1));
|
|
8015
|
-
},
|
|
8017
|
+
}, Y = /* @__PURE__ */ e.createElement("div", { className: `${M}__button-content` }, /* @__PURE__ */ e.createElement(Me, {
|
|
8016
8018
|
className: `${M}__avatar`,
|
|
8017
|
-
imageSrc:
|
|
8019
|
+
imageSrc: J.imageSrc,
|
|
8018
8020
|
size: "sm",
|
|
8019
|
-
uniqueId:
|
|
8020
|
-
}), /* @__PURE__ */ e.createElement("span", { className: `${M}__name` },
|
|
8021
|
-
color:
|
|
8022
|
-
label:
|
|
8021
|
+
uniqueId: J.workspaceId
|
|
8022
|
+
}), /* @__PURE__ */ e.createElement("span", { className: `${M}__name` }, J.displayName), J.planTier && /* @__PURE__ */ e.createElement(Ne, {
|
|
8023
|
+
color: J.planTier,
|
|
8024
|
+
label: Xr[J.planTier],
|
|
8023
8025
|
size: "sm"
|
|
8024
|
-
})),
|
|
8026
|
+
})), ie = /* @__PURE__ */ e.createElement(Q, {
|
|
8025
8027
|
className: `${M}__trigger-icon`,
|
|
8026
8028
|
iconName: "angleDown",
|
|
8027
8029
|
iconSize: "md"
|
|
8028
|
-
}),
|
|
8030
|
+
}), ae = T && /* @__PURE__ */ e.createElement("div", { className: `${M}__filter` }, /* @__PURE__ */ e.createElement(vr, {
|
|
8029
8031
|
hasClearButton: !0,
|
|
8030
8032
|
id: "workspace-filter",
|
|
8031
8033
|
label: i,
|
|
@@ -8034,7 +8036,7 @@ var zn = {
|
|
|
8034
8036
|
placeholder: a,
|
|
8035
8037
|
showLabel: !1,
|
|
8036
8038
|
type: "search"
|
|
8037
|
-
})), oe =
|
|
8039
|
+
})), oe = ne.map((t, n) => {
|
|
8038
8040
|
let r = `${M}__item`, i = t.isActive ? `${r}--active` : null, a = t.isUnprivileged ? `${r}--unprivileged` : null, o = t.isRestricted ? `${r}--restricted` : null, s = /* @__PURE__ */ e.createElement(Q, {
|
|
8039
8041
|
className: `${M}__active-icon`,
|
|
8040
8042
|
iconName: "check"
|
|
@@ -8059,7 +8061,7 @@ var zn = {
|
|
|
8059
8061
|
o
|
|
8060
8062
|
]),
|
|
8061
8063
|
id: l,
|
|
8062
|
-
onKeyDown:
|
|
8064
|
+
onKeyDown: re,
|
|
8063
8065
|
role: "menuitem",
|
|
8064
8066
|
tabIndex: v === n ? 0 : -1,
|
|
8065
8067
|
...te()
|
|
@@ -8084,13 +8086,13 @@ var zn = {
|
|
|
8084
8086
|
"aria-label": t,
|
|
8085
8087
|
className: `${M}__trigger`,
|
|
8086
8088
|
type: "button",
|
|
8087
|
-
...
|
|
8088
|
-
},
|
|
8089
|
+
...G()
|
|
8090
|
+
}, Y, ie), K && /* @__PURE__ */ e.createElement("div", {
|
|
8089
8091
|
ref: U.setFloating,
|
|
8090
8092
|
className: `${M}__dropdown`,
|
|
8091
8093
|
style: { zIndex: "var(--pds-z-index-dropdown)" },
|
|
8092
8094
|
...W()
|
|
8093
|
-
}, /* @__PURE__ */ e.createElement("div", { style: { ...
|
|
8095
|
+
}, /* @__PURE__ */ e.createElement("div", { style: { ...q } }, ae, /* @__PURE__ */ e.createElement("ul", {
|
|
8094
8096
|
className: Z([z, B]),
|
|
8095
8097
|
role: "menu"
|
|
8096
8098
|
}, /* @__PURE__ */ e.createElement("li", {
|
|
@@ -8105,7 +8107,7 @@ var zn = {
|
|
|
8105
8107
|
t.classList.toggle(`${M}__toggle--expanded`), t.setAttribute("aria-expanded", t.getAttribute("aria-expanded") === "true" ? "false" : "true"), t.nextElementSibling.classList.toggle(`${M}__mobile-menu--expanded`);
|
|
8106
8108
|
},
|
|
8107
8109
|
type: "button"
|
|
8108
|
-
},
|
|
8110
|
+
}, Y, ie), /* @__PURE__ */ e.createElement("div", { className: `${M}__mobile-menu` }, ae, /* @__PURE__ */ e.createElement("ul", {
|
|
8109
8111
|
className: Z([z, `${z}--isMobile`]),
|
|
8110
8112
|
role: "menu"
|
|
8111
8113
|
}, /* @__PURE__ */ e.createElement("li", {
|
|
@@ -8120,11 +8122,11 @@ var zn = {
|
|
|
8120
8122
|
]),
|
|
8121
8123
|
...f
|
|
8122
8124
|
}, j ? ce : se);
|
|
8123
|
-
},
|
|
8125
|
+
}, Qr = {
|
|
8124
8126
|
info: "circleInfo",
|
|
8125
8127
|
warning: "triangleExclamation",
|
|
8126
8128
|
critical: "diamondExclamation"
|
|
8127
|
-
},
|
|
8129
|
+
}, $r = ({ banners: t, className: n, dismissLabel: r = "Dismiss", labelNext: i = "Go to next message", labelPrevious: a = "Go to previous message", typeLabels: o = dt, ...s }) => {
|
|
8128
8130
|
let [c, l] = h(t);
|
|
8129
8131
|
d(() => {
|
|
8130
8132
|
l(t);
|
|
@@ -8158,7 +8160,7 @@ var zn = {
|
|
|
8158
8160
|
style: { zIndex: v(n).zIndex }
|
|
8159
8161
|
}, /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement(Q, {
|
|
8160
8162
|
className: `${f}__icon ${f}__icon--${t.type}`,
|
|
8161
|
-
iconName:
|
|
8163
|
+
iconName: Qr[d],
|
|
8162
8164
|
iconSize: "md"
|
|
8163
8165
|
}), /* @__PURE__ */ e.createElement("div", { className: `${f}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h, " "), s)), a && /* @__PURE__ */ e.createElement("button", {
|
|
8164
8166
|
className: `${f}__dismiss-button`,
|
|
@@ -8196,12 +8198,12 @@ var zn = {
|
|
|
8196
8198
|
onClick: x,
|
|
8197
8199
|
size: "lg"
|
|
8198
8200
|
}), c.map((e, t) => C(e, t))) : C(c[0], 0));
|
|
8199
|
-
},
|
|
8201
|
+
}, ei = {
|
|
8200
8202
|
info: "circleInfo",
|
|
8201
8203
|
warning: "triangleExclamation",
|
|
8202
8204
|
success: "circleCheck",
|
|
8203
8205
|
critical: "diamondExclamation"
|
|
8204
|
-
},
|
|
8206
|
+
}, ti = ({ className: t, message: n, title: r, type: i, typeLabels: a = {
|
|
8205
8207
|
...dt,
|
|
8206
8208
|
working: "Working"
|
|
8207
8209
|
}, ...o }) => {
|
|
@@ -8225,16 +8227,16 @@ var zn = {
|
|
|
8225
8227
|
colorType: "monochromatic",
|
|
8226
8228
|
size: "lg"
|
|
8227
8229
|
}) : /* @__PURE__ */ e.createElement(Q, {
|
|
8228
|
-
iconName: `${i}` in
|
|
8230
|
+
iconName: `${i}` in ei ? ei[i] : ei.info,
|
|
8229
8231
|
iconSize: "lg"
|
|
8230
8232
|
})), /* @__PURE__ */ e.createElement("div", { className: `${s}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, u), /* @__PURE__ */ e.createElement("div", { className: `${s}__title` }, r), /* @__PURE__ */ e.createElement("div", { className: `${s}__message` }, d)));
|
|
8231
|
-
},
|
|
8233
|
+
}, ni = {
|
|
8232
8234
|
info: "circleInfo",
|
|
8233
8235
|
warning: "triangleExclamation",
|
|
8234
8236
|
success: "circleCheck",
|
|
8235
8237
|
critical: "diamondExclamation",
|
|
8236
8238
|
discovery: "squareQuestion"
|
|
8237
|
-
},
|
|
8239
|
+
}, ri = ({ className: t, ctaButton: n, dismissLabel: r = "Dismiss", id: i, isDismissible: a, message: o, onDismiss: s, title: c, type: l = "info", typeLabels: u = dt, ...d }) => {
|
|
8238
8240
|
let f = m(null), p = "pds-section-message", h = {
|
|
8239
8241
|
error: `${p}--error`,
|
|
8240
8242
|
success: `${p}--success`,
|
|
@@ -8266,7 +8268,7 @@ var zn = {
|
|
|
8266
8268
|
role: v,
|
|
8267
8269
|
...d
|
|
8268
8270
|
}, /* @__PURE__ */ e.createElement("div", { className: `${p}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${p}__icon ${p}__icon-${l}` }, /* @__PURE__ */ e.createElement(Q, {
|
|
8269
|
-
iconName: `${l}` in
|
|
8271
|
+
iconName: `${l}` in ni ? ni[l] : ni.info,
|
|
8270
8272
|
iconSize: "lg"
|
|
8271
8273
|
})), /* @__PURE__ */ e.createElement("div", { className: `${p}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, y), c && /* @__PURE__ */ e.createElement("div", { className: `${p}__title` }, c), /* @__PURE__ */ e.createElement("div", { className: `${p}__message` }, b))), (n || a) && /* @__PURE__ */ e.createElement("div", { className: `${p}__actions` }, n && /* @__PURE__ */ e.createElement(at, {
|
|
8272
8274
|
...n,
|
|
@@ -8283,10 +8285,10 @@ var zn = {
|
|
|
8283
8285
|
iconName: "xmark",
|
|
8284
8286
|
iconSize: "lg"
|
|
8285
8287
|
}))));
|
|
8286
|
-
},
|
|
8288
|
+
}, ii = 3e4, ai = {
|
|
8287
8289
|
pause: "Pause notification",
|
|
8288
8290
|
resume: "Resume notification"
|
|
8289
|
-
},
|
|
8291
|
+
}, oi = i({ labelStrings: ai }), si = ({ ariaLabel: t, closeToast: n }) => /* @__PURE__ */ e.createElement("button", {
|
|
8290
8292
|
"aria-label": t ?? "Close",
|
|
8291
8293
|
className: "pds-toast__close-button",
|
|
8292
8294
|
onClick: (e) => {
|
|
@@ -8297,13 +8299,13 @@ var zn = {
|
|
|
8297
8299
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8298
8300
|
iconName: "xmark",
|
|
8299
8301
|
iconSize: "md"
|
|
8300
|
-
})),
|
|
8302
|
+
})), ci = ({ className: t, labelStrings: n = ai, limit: r = 5, position: i = "bottom-right" }) => {
|
|
8301
8303
|
let a = Z(["pds-toaster", t]);
|
|
8302
|
-
return /* @__PURE__ */ e.createElement(
|
|
8304
|
+
return /* @__PURE__ */ e.createElement(oi.Provider, { value: { labelStrings: n } }, /* @__PURE__ */ e.createElement(fe, {
|
|
8303
8305
|
newestOnTop: !0,
|
|
8304
8306
|
autoClose: !1,
|
|
8305
8307
|
className: a,
|
|
8306
|
-
closeButton:
|
|
8308
|
+
closeButton: si,
|
|
8307
8309
|
draggable: !1,
|
|
8308
8310
|
icon: !1,
|
|
8309
8311
|
limit: r,
|
|
@@ -8312,18 +8314,18 @@ var zn = {
|
|
|
8312
8314
|
role: "status",
|
|
8313
8315
|
transition: de
|
|
8314
8316
|
}));
|
|
8315
|
-
},
|
|
8317
|
+
}, li = {
|
|
8316
8318
|
info: "circleInfo",
|
|
8317
8319
|
success: "check",
|
|
8318
8320
|
warning: "triangleExclamation",
|
|
8319
8321
|
critical: "diamondExclamation"
|
|
8320
|
-
},
|
|
8322
|
+
}, ui = {
|
|
8321
8323
|
info: "Information",
|
|
8322
8324
|
success: "Success",
|
|
8323
8325
|
warning: "Warning",
|
|
8324
8326
|
critical: "Critical",
|
|
8325
8327
|
working: "Working..."
|
|
8326
|
-
},
|
|
8328
|
+
}, di = ({ autoCloseDuration: t, children: n, className: r, id: i, toastId: a, type: o = "info", typeLabels: s = ui }) => {
|
|
8327
8329
|
let c = "pds-toast", l = {
|
|
8328
8330
|
info: `${c}--info`,
|
|
8329
8331
|
success: `${c}--success`,
|
|
@@ -8333,7 +8335,7 @@ var zn = {
|
|
|
8333
8335
|
dismissing: `${c}--dismissing`,
|
|
8334
8336
|
dismissed: `${c}--dismissed`,
|
|
8335
8337
|
transition: `${c}--transition`
|
|
8336
|
-
}, d = `${s[o]} `, { labelStrings: f } = u(
|
|
8338
|
+
}, d = `${s[o]} `, { labelStrings: f } = u(oi), [p, m] = h(!1), g = a !== void 0 && o !== "critical" && o !== "working" && typeof t == "number";
|
|
8337
8339
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8338
8340
|
className: Z([
|
|
8339
8341
|
c,
|
|
@@ -8346,7 +8348,7 @@ var zn = {
|
|
|
8346
8348
|
size: "lg"
|
|
8347
8349
|
}) : /* @__PURE__ */ e.createElement(Q, {
|
|
8348
8350
|
className: `${c}__icon ${c}__icon--${o}`,
|
|
8349
|
-
iconName: `${o}` in
|
|
8351
|
+
iconName: `${o}` in li ? li[o] : li.info
|
|
8350
8352
|
})), /* @__PURE__ */ e.createElement("div", { className: `${c}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), n), g && /* @__PURE__ */ e.createElement("button", {
|
|
8351
8353
|
"aria-label": p ? f.resume : f.pause,
|
|
8352
8354
|
className: `${c}__pause-button`,
|
|
@@ -8357,11 +8359,11 @@ var zn = {
|
|
|
8357
8359
|
},
|
|
8358
8360
|
type: "button"
|
|
8359
8361
|
}, /* @__PURE__ */ e.createElement(Q, { iconName: p ? "play" : "pause" })));
|
|
8360
|
-
},
|
|
8362
|
+
}, fi = /* @__PURE__ */ function(e) {
|
|
8361
8363
|
return e.Critical = "critical", e.Info = "info", e.Success = "success", e.Warning = "warning", e.Working = "working", e;
|
|
8362
|
-
}({}),
|
|
8364
|
+
}({}), pi = () => [
|
|
8363
8365
|
(t, n, r = {}) => {
|
|
8364
|
-
let i = r.toastId ?? we(), a = typeof r.autoClose == "number" ? Math.max(
|
|
8366
|
+
let i = r.toastId ?? we(), a = typeof r.autoClose == "number" ? Math.max(ii, r.autoClose) : !1, o = /* @__PURE__ */ e.createElement(di, {
|
|
8365
8367
|
autoCloseDuration: a || void 0,
|
|
8366
8368
|
toastId: i,
|
|
8367
8369
|
type: t
|
|
@@ -8386,27 +8388,27 @@ var zn = {
|
|
|
8386
8388
|
enter: "pds-toast--bounceInPlace",
|
|
8387
8389
|
exit: "pds-toast--slideOut"
|
|
8388
8390
|
})
|
|
8389
|
-
],
|
|
8391
|
+
], mi = (e, t) => {
|
|
8390
8392
|
let n = t - e + 1;
|
|
8391
8393
|
return Array.from({ length: n }, (t, n) => n + e);
|
|
8392
|
-
},
|
|
8394
|
+
}, hi = ({ bufferCount: e = 1, currentPage: t, itemsPerPage: n, totalItemCount: r }) => p(() => {
|
|
8393
8395
|
let i = Math.ceil(r / n), a = e + 5, o = i;
|
|
8394
|
-
if (a >= i) return
|
|
8396
|
+
if (a >= i) return mi(1, i);
|
|
8395
8397
|
let s = Math.max(t - e, 1), c = Math.min(t + e, i), l = s > 2, u = c < i - 2;
|
|
8396
8398
|
if (!l && u) return [
|
|
8397
|
-
...
|
|
8399
|
+
...mi(1, 3 + 2 * e),
|
|
8398
8400
|
"...",
|
|
8399
8401
|
i
|
|
8400
8402
|
];
|
|
8401
8403
|
if (l && !u) return [
|
|
8402
8404
|
1,
|
|
8403
8405
|
"...",
|
|
8404
|
-
...
|
|
8406
|
+
...mi(i - (3 + 2 * e) + 1, i)
|
|
8405
8407
|
];
|
|
8406
8408
|
if (l && u) return [
|
|
8407
8409
|
1,
|
|
8408
8410
|
"...",
|
|
8409
|
-
...
|
|
8411
|
+
...mi(s, c),
|
|
8410
8412
|
"...",
|
|
8411
8413
|
o
|
|
8412
8414
|
];
|
|
@@ -8415,11 +8417,11 @@ var zn = {
|
|
|
8415
8417
|
n,
|
|
8416
8418
|
e,
|
|
8417
8419
|
t
|
|
8418
|
-
]),
|
|
8420
|
+
]), gi = ({ bufferCount: t = 1, className: n, currentPage: r, headingLevel: i = "h2", headingText: a = "Pagination", itemsPerPage: o = 10, labelStrings: s = {
|
|
8419
8421
|
previous: "Go to previous page",
|
|
8420
8422
|
next: "Go to next page"
|
|
8421
8423
|
}, onPageChange: c, totalItemCount: l, ...u }) => {
|
|
8422
|
-
let d =
|
|
8424
|
+
let d = hi({
|
|
8423
8425
|
currentPage: r,
|
|
8424
8426
|
totalItemCount: l,
|
|
8425
8427
|
bufferCount: t,
|
|
@@ -8467,7 +8469,7 @@ var zn = {
|
|
|
8467
8469
|
onClick: r === f ? void 0 : p,
|
|
8468
8470
|
type: "button"
|
|
8469
8471
|
}, /* @__PURE__ */ e.createElement(Q, { iconName: "arrowRight" })))));
|
|
8470
|
-
},
|
|
8472
|
+
}, _i = 0, vi = ({ children: t, className: n, id: r, isOpen: i = !1, showBorder: a = !0, summary: o, ...s }) => {
|
|
8471
8473
|
let [c, l] = h(i), u = m(r || `expansion-panel-${we()}`).current, f = "pds-expansion-panel", p = a ? null : `${f}--no-border`, g = m(null), _ = m(null), v = m(null);
|
|
8472
8474
|
return d(() => {
|
|
8473
8475
|
let e = g.current, t = _.current, n = v.current;
|
|
@@ -8478,7 +8480,7 @@ var zn = {
|
|
|
8478
8480
|
i = !0, l(!1);
|
|
8479
8481
|
let n = `${e.offsetHeight}px`, a = `${t.offsetHeight}px`;
|
|
8480
8482
|
r && r.cancel(), r = e.animate({ height: [n, a] }, {
|
|
8481
|
-
duration:
|
|
8483
|
+
duration: _i,
|
|
8482
8484
|
easing: Le
|
|
8483
8485
|
}), r.onfinish = () => d(!1), r.oncancel = () => i = !1;
|
|
8484
8486
|
}, c = () => {
|
|
@@ -8487,7 +8489,7 @@ var zn = {
|
|
|
8487
8489
|
a = !0;
|
|
8488
8490
|
let i = `${e.offsetHeight}px`, o = `${t.offsetHeight + n.offsetHeight}px`;
|
|
8489
8491
|
r && r.cancel(), r = e.animate({ height: [i, o] }, {
|
|
8490
|
-
duration:
|
|
8492
|
+
duration: _i,
|
|
8491
8493
|
easing: Le
|
|
8492
8494
|
}), r.onfinish = () => d(!0), r.oncancel = () => a = !1;
|
|
8493
8495
|
}, d = (t) => {
|
|
@@ -8513,7 +8515,7 @@ var zn = {
|
|
|
8513
8515
|
ref: v,
|
|
8514
8516
|
className: `${f}__content`
|
|
8515
8517
|
}, t)));
|
|
8516
|
-
},
|
|
8518
|
+
}, yi = ({ children: t, className: n, displayType: r = "standard", ...i }) => {
|
|
8517
8519
|
let a = "pds-expansion-panel-group", o = `${a}--${r}`;
|
|
8518
8520
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8519
8521
|
className: Z([
|
|
@@ -8523,7 +8525,7 @@ var zn = {
|
|
|
8523
8525
|
]),
|
|
8524
8526
|
...i
|
|
8525
8527
|
}, t);
|
|
8526
|
-
},
|
|
8528
|
+
}, bi = ({ children: t, className: n, hasStatusIndicator: r = !1, padding: i = "standard", statusType: a, typeLabels: o = dt, variant: s = "default", ...c }) => {
|
|
8527
8529
|
let l = "pds-panel", u = r ? `${l}__status ${l}__status-${a}` : null, d = `${l}--${s}`, f = `${l}__content`, p = i === "standard" ? null : `${f}--pad-${i}`, m = a && a !== "neutral" ? `${o[a]}: ` : null;
|
|
8528
8530
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8529
8531
|
className: Z([
|
|
@@ -8533,7 +8535,7 @@ var zn = {
|
|
|
8533
8535
|
]),
|
|
8534
8536
|
...c
|
|
8535
8537
|
}, r && a && /* @__PURE__ */ e.createElement("span", { className: u }, m && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, m)), /* @__PURE__ */ e.createElement("div", { className: Z([f, p]) }, t));
|
|
8536
|
-
},
|
|
8538
|
+
}, xi = ({ background: t = "default", children: n, className: r, hasBorder: i = !0, paddingSize: a = "md", ...o }) => {
|
|
8537
8539
|
let s = "pds-panel-list", c = `pds-panel-list--${a}`, l = t === "default" ? null : `${s}--${t}`, u = i ? null : `${s}--borderless`;
|
|
8538
8540
|
return /* @__PURE__ */ e.createElement("ul", {
|
|
8539
8541
|
className: Z([
|
|
@@ -8545,7 +8547,7 @@ var zn = {
|
|
|
8545
8547
|
]),
|
|
8546
8548
|
...o
|
|
8547
8549
|
}, n);
|
|
8548
|
-
},
|
|
8550
|
+
}, Si = 0, Ci = ({ children: t, className: n, expandButtonAriaLabel: r, isExpandable: i = !1, ...a }) => {
|
|
8549
8551
|
let o = "pds-panel-row", [s, c] = h(!1), l = m(null), u = m(null), d = Ee(t), f = d["items-left"], p = d["items-right"], g = d["items-below"], _ = () => {
|
|
8550
8552
|
let e = u.current, t = l.current;
|
|
8551
8553
|
if (!e || !t) return;
|
|
@@ -8560,7 +8562,7 @@ var zn = {
|
|
|
8560
8562
|
height: n,
|
|
8561
8563
|
opacity: "1"
|
|
8562
8564
|
}], {
|
|
8563
|
-
duration:
|
|
8565
|
+
duration: Si,
|
|
8564
8566
|
easing: Le
|
|
8565
8567
|
}).onfinish = () => {
|
|
8566
8568
|
Object.assign(e.style, {
|
|
@@ -8577,7 +8579,7 @@ var zn = {
|
|
|
8577
8579
|
height: "0px",
|
|
8578
8580
|
opacity: "0"
|
|
8579
8581
|
}], {
|
|
8580
|
-
duration:
|
|
8582
|
+
duration: Si,
|
|
8581
8583
|
easing: Le
|
|
8582
8584
|
}).onfinish = () => {
|
|
8583
8585
|
Object.assign(e.style, {
|
|
@@ -8609,7 +8611,7 @@ var zn = {
|
|
|
8609
8611
|
opacity: "0"
|
|
8610
8612
|
}
|
|
8611
8613
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__items-inside` }, g)));
|
|
8612
|
-
},
|
|
8614
|
+
}, wi = ({ alt: t = "", className: n, height: r, srcFallback: i, srcWebp: a, width: o, ...s }) => {
|
|
8613
8615
|
let c = "pds-picture";
|
|
8614
8616
|
return /* @__PURE__ */ e.createElement("picture", { className: Z([c, n ?? ""]) }, /* @__PURE__ */ e.createElement("source", {
|
|
8615
8617
|
srcSet: a,
|
|
@@ -8622,7 +8624,7 @@ var zn = {
|
|
|
8622
8624
|
width: o,
|
|
8623
8625
|
...s
|
|
8624
8626
|
}));
|
|
8625
|
-
},
|
|
8627
|
+
}, Ti = 8, Ei = 14, Di = ({ className: t, classNameContainer: n, closeButtonLabel: r = "Close", content: i, customTrigger: a = !1, hasCloseButton: o = !1, offsetValue: s = 0, onClose: c = () => {}, placement: l = "top", popoverIsOpen: u = !1, setPopoverIsOpen: f = () => {}, title: p, triggerAccessibleText: g = "Show more information", triggerIcon: y = "circleInfo", ...T }) => {
|
|
8626
8628
|
let [D, j] = h(u);
|
|
8627
8629
|
d(() => {
|
|
8628
8630
|
j(u);
|
|
@@ -8648,13 +8650,13 @@ var zn = {
|
|
|
8648
8650
|
O(B),
|
|
8649
8651
|
k(B),
|
|
8650
8652
|
I(B)
|
|
8651
|
-
]),
|
|
8653
|
+
]), G = H.arrow?.x ?? 0, K = H.arrow?.y ?? 0, q = G + Ei / 2, J = K + Ti, { isMounted: ne } = L(B, {
|
|
8652
8654
|
initial: { transform: "scale(0)" },
|
|
8653
8655
|
common: ({ side: e }) => ({ transformOrigin: {
|
|
8654
|
-
top: `${
|
|
8655
|
-
bottom: `${
|
|
8656
|
-
left: `calc(100% + ${
|
|
8657
|
-
right: `-8px ${
|
|
8656
|
+
top: `${q}px calc(100% + ${Ti}px)`,
|
|
8657
|
+
bottom: `${q}px -8px`,
|
|
8658
|
+
left: `calc(100% + ${Ti}px) ${J}px`,
|
|
8659
|
+
right: `-8px ${J}px`
|
|
8658
8660
|
}[e] })
|
|
8659
8661
|
});
|
|
8660
8662
|
return /* @__PURE__ */ e.createElement("div", {
|
|
@@ -8671,7 +8673,7 @@ var zn = {
|
|
|
8671
8673
|
className: `${N}__icon`,
|
|
8672
8674
|
iconName: y,
|
|
8673
8675
|
iconSize: "md"
|
|
8674
|
-
}))),
|
|
8676
|
+
}))), ne && /* @__PURE__ */ e.createElement(b, null, /* @__PURE__ */ e.createElement(v, {
|
|
8675
8677
|
context: B,
|
|
8676
8678
|
initialFocus: -1,
|
|
8677
8679
|
modal: o
|
|
@@ -8685,23 +8687,23 @@ var zn = {
|
|
|
8685
8687
|
className: `${N}__arrow`,
|
|
8686
8688
|
context: B,
|
|
8687
8689
|
fill: "var(--pds-color-bg-default)",
|
|
8688
|
-
height:
|
|
8690
|
+
height: Ti,
|
|
8689
8691
|
stroke: "var(--pds-color-border-default)",
|
|
8690
8692
|
strokeWidth: 1,
|
|
8691
8693
|
tipRadius: 0,
|
|
8692
|
-
width:
|
|
8694
|
+
width: Ei
|
|
8693
8695
|
}), /* @__PURE__ */ e.createElement("div", { className: `${N}__container-inner` }, p && /* @__PURE__ */ e.createElement("div", { className: `${N}__title` }, p), i && /* @__PURE__ */ e.createElement("div", { className: `${N}__content` }, i), o && /* @__PURE__ */ e.createElement("div", { className: `${N}__close-wrapper` }, /* @__PURE__ */ e.createElement(ut, {
|
|
8694
8696
|
ariaLabel: r,
|
|
8695
8697
|
iconSize: "lg",
|
|
8696
8698
|
onClick: ee
|
|
8697
8699
|
})))))));
|
|
8698
|
-
},
|
|
8700
|
+
}, Oi = {
|
|
8699
8701
|
neutral: "--pds-color-status-neutral-utility",
|
|
8700
8702
|
info: "--pds-color-status-info-foreground",
|
|
8701
8703
|
success: "--pds-color-status-success-foreground",
|
|
8702
8704
|
warning: "--pds-color-status-warning-foreground",
|
|
8703
8705
|
critical: "--pds-color-status-critical-foreground"
|
|
8704
|
-
},
|
|
8706
|
+
}, ki = ({ className: t, colorBreakpoints: n = [{
|
|
8705
8707
|
colorType: "info",
|
|
8706
8708
|
percentage: 0
|
|
8707
8709
|
}, {
|
|
@@ -8722,7 +8724,7 @@ var zn = {
|
|
|
8722
8724
|
id: f
|
|
8723
8725
|
}, i), (y || l) && /* @__PURE__ */ e.createElement("div", { className: `${p}__details` }, y && v, l && /* @__PURE__ */ e.createElement("div", {
|
|
8724
8726
|
className: `${p}__percentage`,
|
|
8725
|
-
style: { color: `hsl(from var(${
|
|
8727
|
+
style: { color: `hsl(from var(${Oi[_]}) h s calc(l - 7))` }
|
|
8726
8728
|
}, s, "%")), /* @__PURE__ */ e.createElement("div", { className: `${p}__wrapper` }, /* @__PURE__ */ e.createElement("div", {
|
|
8727
8729
|
"aria-labelledby": f,
|
|
8728
8730
|
"aria-valuenow": g,
|
|
@@ -8732,10 +8734,10 @@ var zn = {
|
|
|
8732
8734
|
className: `${p}__bar`,
|
|
8733
8735
|
style: {
|
|
8734
8736
|
width: `${g}%`,
|
|
8735
|
-
backgroundColor: `var(${
|
|
8737
|
+
backgroundColor: `var(${Oi[_]})`
|
|
8736
8738
|
}
|
|
8737
8739
|
}))), b && v);
|
|
8738
|
-
},
|
|
8740
|
+
}, Ai = ({ className: t, id: n, innerLabel: r, label: i, percentage: a, showLabel: o = !1, showPercentage: s = !1, size: c = "md", ...l }) => {
|
|
8739
8741
|
let u = n || we(), d = "pds-progress-ring", f = o ? `${d}__label` : "visually-hidden", p = `${d}__loading-text ${d}__loading-text--${c}`, m = (e) => e * 16, h = m(wn), g = 7;
|
|
8740
8742
|
c === "sm" && (h = m(Cn), g /= 1.25), c === "lg" && (h = m(Tn), g *= 1.25);
|
|
8741
8743
|
let _ = h / 2 - g / 2, v = 2 * Math.PI * _, y = v - v * a / 100, b;
|
|
@@ -8784,7 +8786,7 @@ var zn = {
|
|
|
8784
8786
|
x: "50%",
|
|
8785
8787
|
y: "51%"
|
|
8786
8788
|
}, b))));
|
|
8787
|
-
},
|
|
8789
|
+
}, ji = ({ attribution: t, className: n, image: r, layoutType: i = "stand-alone", quote: a, ...o }) => {
|
|
8788
8790
|
let s = "pds-pull-quote", c = `${s}--${i}`;
|
|
8789
8791
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8790
8792
|
className: Z([
|
|
@@ -8803,9 +8805,9 @@ var zn = {
|
|
|
8803
8805
|
iconName: "quotesRight",
|
|
8804
8806
|
iconSize: "4xl"
|
|
8805
8807
|
}))));
|
|
8806
|
-
},
|
|
8808
|
+
}, Mi = /* @__PURE__ */ function(e) {
|
|
8807
8809
|
return e.CHECKED = "checked", e.DEFAULT = "default", e.WORKING = "working", e;
|
|
8808
|
-
}({}),
|
|
8810
|
+
}({}), Ni = ({ alignment: t = "left", className: n, componentWidth: r, labelStrings: i = {}, lastChecked: a, onCheck: o, state: s, ...c }) => {
|
|
8809
8811
|
let l = s ?? "default", u = {
|
|
8810
8812
|
checkForUpdates: "Check for updates",
|
|
8811
8813
|
checking: "Checking...",
|
|
@@ -8854,7 +8856,7 @@ var zn = {
|
|
|
8854
8856
|
triggerIconColor: "default",
|
|
8855
8857
|
triggerIconSize: "sm"
|
|
8856
8858
|
}), t === "left" && v));
|
|
8857
|
-
},
|
|
8859
|
+
}, Pi = ({ className: t, handleUpgradeClick: n, popoverContent: r, popoverIsOpen: i, popoverTitle: a, setPopoverIsOpen: o, siteName: s, sitePlanLevel: c, siteType: l, triggerProps: u, upgradeLabel: d, workspaceName: f, ...p }) => {
|
|
8858
8860
|
let m = "pds-site-dashboard-heading", h = c && c in gt ? gt[c] : c, g = l ? vt[l] : "bolt";
|
|
8859
8861
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8860
8862
|
className: Z([m, t ?? ""]),
|
|
@@ -8873,7 +8875,7 @@ var zn = {
|
|
|
8873
8875
|
color: "neutral",
|
|
8874
8876
|
label: h,
|
|
8875
8877
|
size: "md"
|
|
8876
|
-
}), r && /* @__PURE__ */ e.createElement(
|
|
8878
|
+
}), r && /* @__PURE__ */ e.createElement(Di, {
|
|
8877
8879
|
content: r,
|
|
8878
8880
|
placement: "bottom",
|
|
8879
8881
|
popoverIsOpen: i,
|
|
@@ -8882,7 +8884,7 @@ var zn = {
|
|
|
8882
8884
|
triggerIcon: "circleInfo",
|
|
8883
8885
|
...u
|
|
8884
8886
|
})))));
|
|
8885
|
-
},
|
|
8887
|
+
}, Fi = {
|
|
8886
8888
|
bluesky: {
|
|
8887
8889
|
icon: "bluesky",
|
|
8888
8890
|
url: "https://bsky.app/profile/pantheon.io",
|
|
@@ -8918,7 +8920,7 @@ var zn = {
|
|
|
8918
8920
|
url: "https://www.youtube.com/user/GetPantheon",
|
|
8919
8921
|
label: "Pantheon on YouTube"
|
|
8920
8922
|
}
|
|
8921
|
-
},
|
|
8923
|
+
}, Ii = ({ className: t, linkItems: n = [
|
|
8922
8924
|
"facebook",
|
|
8923
8925
|
"x",
|
|
8924
8926
|
"bluesky",
|
|
@@ -8934,15 +8936,15 @@ var zn = {
|
|
|
8934
8936
|
key: n,
|
|
8935
8937
|
className: `${i}__item`
|
|
8936
8938
|
}, /* @__PURE__ */ e.createElement("a", {
|
|
8937
|
-
"aria-label":
|
|
8938
|
-
href:
|
|
8939
|
+
"aria-label": Fi[t].label,
|
|
8940
|
+
href: Fi[t].url,
|
|
8939
8941
|
rel: "noreferrer",
|
|
8940
8942
|
target: "_blank"
|
|
8941
8943
|
}, /* @__PURE__ */ e.createElement(Q, {
|
|
8942
|
-
iconName:
|
|
8944
|
+
iconName: Fi[t].icon,
|
|
8943
8945
|
iconSize: "xl"
|
|
8944
8946
|
})))));
|
|
8945
|
-
},
|
|
8947
|
+
}, Li = ({ className: t, label: n = null, size: r = "md", type: i = "neutral", ...a }) => {
|
|
8946
8948
|
let o = "pds-status-indicator", s = `${o}--${i}`, c = `${o}--${r}`;
|
|
8947
8949
|
return /* @__PURE__ */ e.createElement("div", {
|
|
8948
8950
|
className: Z([
|
|
@@ -8961,7 +8963,7 @@ var zn = {
|
|
|
8961
8963
|
className: `${o}__icon`,
|
|
8962
8964
|
role: "img"
|
|
8963
8965
|
}), n && /* @__PURE__ */ e.createElement("span", { className: "pds-status-indicator__label" }, n));
|
|
8964
|
-
},
|
|
8966
|
+
}, Ri = ({ className: t, steps: n, translatableLabels: r = {
|
|
8965
8967
|
step: "Step",
|
|
8966
8968
|
completed: "completed",
|
|
8967
8969
|
hasError: "has an error",
|
|
@@ -9021,7 +9023,7 @@ var zn = {
|
|
|
9021
9023
|
key: t.id,
|
|
9022
9024
|
className: `${o}__step`,
|
|
9023
9025
|
id: `${t.id}--mobile`
|
|
9024
|
-
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
9026
|
+
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__progress-indicator` }, /* @__PURE__ */ e.createElement(Ai, {
|
|
9025
9027
|
innerLabel: n,
|
|
9026
9028
|
label: "Step progress",
|
|
9027
9029
|
percentage: i,
|
|
@@ -9046,7 +9048,7 @@ var zn = {
|
|
|
9046
9048
|
"data-steps": d,
|
|
9047
9049
|
...i
|
|
9048
9050
|
}, /* @__PURE__ */ e.createElement("div", { className: `${o}__steps` }, h)));
|
|
9049
|
-
},
|
|
9051
|
+
}, zi = ({ _isFirstStep: t, backButton: n, forwardButton: r, hasError: i, id: a, isComplete: o, isCurrent: s, label: c, stepContent: l, ...u }) => {
|
|
9050
9052
|
let d = "pds-vert-stepper", f = `${d}__step`, p = [f];
|
|
9051
9053
|
return s && p.push(`${f}--current`), o && p.push(`${f}--complete`), i && p.push(`${f}--error`), /* @__PURE__ */ e.createElement("li", {
|
|
9052
9054
|
className: Z([...p]),
|
|
@@ -9068,14 +9070,14 @@ var zn = {
|
|
|
9068
9070
|
size: "sm",
|
|
9069
9071
|
variant: "primary"
|
|
9070
9072
|
})))));
|
|
9071
|
-
},
|
|
9073
|
+
}, Bi = ({ className: t, labelStrings: n = {
|
|
9072
9074
|
step: "Step",
|
|
9073
9075
|
completed: "completed",
|
|
9074
9076
|
hasError: "has an error"
|
|
9075
9077
|
}, steps: r, ...i }) => {
|
|
9076
9078
|
let a = "pds-vert-stepper", o = r.length, s = r.findIndex((e) => e.isCurrent), c = r.map((t, r) => {
|
|
9077
9079
|
let i = r + 1, a = r === s, c = r === 0, l = t.isComplete || !1, u = t.hasError && a, d = `${n.step} ${i}`;
|
|
9078
|
-
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(
|
|
9080
|
+
return l && (d = `${n.step} ${i}, ${n.completed}`), u && (d = `${n.step} ${i}, ${n.hasError}`), /* @__PURE__ */ e.createElement(zi, {
|
|
9079
9081
|
key: `s${i}`,
|
|
9080
9082
|
_isFirstStep: c,
|
|
9081
9083
|
"aria-current": a ? "step" : null,
|
|
@@ -9096,7 +9098,7 @@ var zn = {
|
|
|
9096
9098
|
className: Z([a, t ?? ""]),
|
|
9097
9099
|
...i
|
|
9098
9100
|
}, /* @__PURE__ */ e.createElement("ol", { className: `${a}__steps` }, r && c));
|
|
9099
|
-
},
|
|
9101
|
+
}, Vi = ({ className: t, headers: n, rowData: r, ...i }) => {
|
|
9100
9102
|
let [a] = h(n), [o, s] = h(r), [c, l] = h({
|
|
9101
9103
|
order: "asc",
|
|
9102
9104
|
key: ""
|
|
@@ -9137,7 +9139,7 @@ var zn = {
|
|
|
9137
9139
|
iconName: "caretDown",
|
|
9138
9140
|
iconSize: "sm"
|
|
9139
9141
|
})))) : /* @__PURE__ */ e.createElement("span", null, t.title))))), /* @__PURE__ */ e.createElement("tbody", null, o.map((e, t) => p(e, t)))));
|
|
9140
|
-
},
|
|
9142
|
+
}, Hi = ({ appendIds: t = !1, ariaLabel: n = "Table of contents", className: r, headingLevel: i = "h2", headingText: a = "Table of contents", ignoreClass: o = "pds-toc-ignore", showHeading: s = !1, sourceID: c = "pds-toc-source", ...l }) => {
|
|
9141
9143
|
let u = "pds-toc", f = [
|
|
9142
9144
|
" ",
|
|
9143
9145
|
"/",
|
|
@@ -9239,7 +9241,7 @@ var zn = {
|
|
|
9239
9241
|
activeID: b,
|
|
9240
9242
|
headings: y
|
|
9241
9243
|
}));
|
|
9242
|
-
},
|
|
9244
|
+
}, Ui = ({ ariaLabel: t, className: n, defaultSelected: r = 0, onActiveTabChange: i = () => {}, selectedTab: a, tabs: o, ...s }) => {
|
|
9243
9245
|
let c = "pds-tabs", [l, u] = h(a ?? r);
|
|
9244
9246
|
d(() => {
|
|
9245
9247
|
a !== void 0 && u(a);
|
|
@@ -9358,7 +9360,7 @@ var zn = {
|
|
|
9358
9360
|
className: `${c}__panel-content`,
|
|
9359
9361
|
hidden: s != l
|
|
9360
9362
|
}, r)))));
|
|
9361
|
-
},
|
|
9363
|
+
}, Wi = [
|
|
9362
9364
|
"color-1",
|
|
9363
9365
|
"color-2",
|
|
9364
9366
|
"color-3",
|
|
@@ -9379,8 +9381,8 @@ var zn = {
|
|
|
9379
9381
|
"color-18",
|
|
9380
9382
|
"color-19",
|
|
9381
9383
|
"color-20"
|
|
9382
|
-
],
|
|
9383
|
-
let [u, d] = h(!0), f = "pds-tag", p = o ? `${f}--${o}` : `${f}--${
|
|
9384
|
+
], Gi = (e) => Wi[parseInt(g(e), 16) % Wi.length], Ki = (e, t) => e.length > t ? e.slice(0, t) + " ..." : e, qi = ({ className: t, isRemovable: n, linkContent: r, onRemove: i, removeLabel: a = "Remove tag", tagColor: o, tagLabel: s, ...l }) => {
|
|
9385
|
+
let [u, d] = h(!0), f = "pds-tag", p = o ? `${f}--${o}` : `${f}--${Gi(s)}`, m = u ? null : "pds-tag--hide", g = () => {
|
|
9384
9386
|
d((e) => !e);
|
|
9385
9387
|
}, _, v, y;
|
|
9386
9388
|
if (r && !n && c(r)) {
|
|
@@ -9401,7 +9403,7 @@ var zn = {
|
|
|
9401
9403
|
}, /* @__PURE__ */ e.createElement("span", {
|
|
9402
9404
|
className: `${f}__label`,
|
|
9403
9405
|
title: s
|
|
9404
|
-
},
|
|
9406
|
+
}, Ki(s, 20)), n ? /* @__PURE__ */ e.createElement("button", {
|
|
9405
9407
|
"aria-label": `${a}: ${s}`,
|
|
9406
9408
|
className: `${f}__remove`,
|
|
9407
9409
|
onClick: () => {
|
|
@@ -9413,7 +9415,7 @@ var zn = {
|
|
|
9413
9415
|
iconName: "xmark",
|
|
9414
9416
|
iconSize: "md"
|
|
9415
9417
|
})) : null);
|
|
9416
|
-
},
|
|
9418
|
+
}, Ji = ({ className: t, onChange: n, theme: r = "light", translations: i = {
|
|
9417
9419
|
light: "Light",
|
|
9418
9420
|
dark: "Dark",
|
|
9419
9421
|
system: "System"
|
|
@@ -9467,7 +9469,7 @@ var zn = {
|
|
|
9467
9469
|
offsetValue: 0,
|
|
9468
9470
|
preferredPlacement: "top"
|
|
9469
9471
|
}));
|
|
9470
|
-
},
|
|
9472
|
+
}, Yi = ({ className: t, listItems: r, ...i }) => {
|
|
9471
9473
|
let o = "pds-tile-list", s = ({ alt: t, image: n, name: r, org: i, title: a }) => /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("div", { className: `${o}__image ${o}__image--avatar` }, /* @__PURE__ */ e.createElement("img", {
|
|
9472
9474
|
alt: t,
|
|
9473
9475
|
src: n
|
|
@@ -9489,7 +9491,7 @@ var zn = {
|
|
|
9489
9491
|
]),
|
|
9490
9492
|
...i
|
|
9491
9493
|
}, u());
|
|
9492
|
-
},
|
|
9494
|
+
}, Xi = ({ className: t, displayType: n = "border", headingLevel: r = "span", headingText: i, imageSrc: a, linkContent: o, summary: s, ...c }) => {
|
|
9493
9495
|
let l = "pds-tile", u = `${l}--${n}`;
|
|
9494
9496
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
|
|
9495
9497
|
className: Z([
|
|
@@ -9505,12 +9507,12 @@ var zn = {
|
|
|
9505
9507
|
baseClass: l,
|
|
9506
9508
|
className: "pds-ts-xl",
|
|
9507
9509
|
level: r
|
|
9508
|
-
}, i), s && /* @__PURE__ */ e.createElement("div", { className: `${l}__summary` }, /* @__PURE__ */ e.createElement("p", null, s)), o && (n == "border" || n == "clean") && /* @__PURE__ */ e.createElement(
|
|
9510
|
+
}, i), s && /* @__PURE__ */ e.createElement("div", { className: `${l}__summary` }, /* @__PURE__ */ e.createElement("p", null, s)), o && (n == "border" || n == "clean") && /* @__PURE__ */ e.createElement(Un, {
|
|
9509
9511
|
className: `${l}__cta`,
|
|
9510
9512
|
linkContent: o,
|
|
9511
9513
|
size: "sm"
|
|
9512
9514
|
})), /* @__PURE__ */ e.createElement("span", { className: `${l}__separator` }));
|
|
9513
|
-
},
|
|
9515
|
+
}, Zi = ({ className: t, displayType: n = "border", headingLevel: r = "h2", tiles: i, ...a }) => {
|
|
9514
9516
|
let o = i.length, s = "pds-tile-grid", c = `${s}--${n}`, l = o === 2 || o === 4 ? `${s}--two-column` : null;
|
|
9515
9517
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9516
9518
|
className: Z([
|
|
@@ -9520,7 +9522,7 @@ var zn = {
|
|
|
9520
9522
|
t ?? ""
|
|
9521
9523
|
]),
|
|
9522
9524
|
...a
|
|
9523
|
-
}, i.map((t, i) => /* @__PURE__ */ e.createElement(
|
|
9525
|
+
}, i.map((t, i) => /* @__PURE__ */ e.createElement(Xi, {
|
|
9524
9526
|
key: i,
|
|
9525
9527
|
className: t.className,
|
|
9526
9528
|
displayType: n,
|
|
@@ -9530,7 +9532,7 @@ var zn = {
|
|
|
9530
9532
|
linkContent: t.linkContent,
|
|
9531
9533
|
summary: t.summary
|
|
9532
9534
|
})));
|
|
9533
|
-
},
|
|
9535
|
+
}, Qi = ({ children: t, className: n, containerWidth: r = "x-wide", hasSidebarToggle: i, isSidebarCollapsed: o, labels: s = {
|
|
9534
9536
|
collapseSidebar: "Collapse sidebar",
|
|
9535
9537
|
expandSidebar: "Expand sidebar"
|
|
9536
9538
|
}, mainContentElement: c = "main", mainContentProps: l, onSidebarToggle: f, sidebarCollapsedWidth: p = 3.5, sidebarExpandedWidth: m = "15%", sidebarExpandedWidthMin: g = 13, sidebarProps: _, ...v }) => {
|
|
@@ -9581,7 +9583,7 @@ var zn = {
|
|
|
9581
9583
|
]),
|
|
9582
9584
|
...v
|
|
9583
9585
|
}, y ? M : N);
|
|
9584
|
-
},
|
|
9586
|
+
}, $i = ({ children: t, className: n, hasContentSpacing: r, ...i }) => {
|
|
9585
9587
|
let { isMobile: a } = u(bt), o = "pds-dashboard-inner", s = a ? `${o}--isMobile` : `${o}--notMobile`, c = Ee(t), l = c["header-left"], d = c["header-right"], f = c.__unslotted || c.content;
|
|
9586
9588
|
return /* @__PURE__ */ e.createElement("div", {
|
|
9587
9589
|
className: Z([
|
|
@@ -9591,7 +9593,7 @@ var zn = {
|
|
|
9591
9593
|
]),
|
|
9592
9594
|
...i
|
|
9593
9595
|
}, (l || d) && /* @__PURE__ */ e.createElement("div", { className: `${o}__header` }, l && /* @__PURE__ */ e.createElement("div", { className: `${o}__header-left` }, l), d && /* @__PURE__ */ e.createElement("div", { className: `${o}__header-right` }, d)), f && /* @__PURE__ */ e.createElement("div", { className: r ? `${o}__content ${o}__content--with-spacing` : `${o}__content` }, f));
|
|
9594
|
-
},
|
|
9596
|
+
}, ea = ({ children: t, className: n, sidebarMinWidth: r = 14.5, sidebarWidth: i = "18%", ...a }) => {
|
|
9595
9597
|
let o = !1, s = u(bt);
|
|
9596
9598
|
s && (o = s.isMobile);
|
|
9597
9599
|
let c = "pds-docs-layout", l = o ? `${c}--isMobile` : null, d = {
|
|
@@ -9610,7 +9612,7 @@ var zn = {
|
|
|
9610
9612
|
]),
|
|
9611
9613
|
...a
|
|
9612
9614
|
}, o ? h : g);
|
|
9613
|
-
},
|
|
9615
|
+
}, ta = ({ alignContent: t = "flex-start", alignItems: n = "stretch", children: r, className: i, flexDirection: a = "row", flexWrap: o = "nowrap", gap: s = "standard", justifyContent: c = "flex-start", mobileAlignContent: l, mobileAlignItems: d, mobileFlexDirection: f = "column", mobileFlexWrap: p, mobileGap: m, mobileJustifyContent: h, ...g }) => {
|
|
9614
9616
|
let _ = yt() <= 640, v = u(bt);
|
|
9615
9617
|
v && (_ = v.isMobile);
|
|
9616
9618
|
let y = "pds-flex", b = `${y}-container`, x = _ ? `${b}--mobile` : null, S = null;
|
|
@@ -9638,7 +9640,7 @@ var zn = {
|
|
|
9638
9640
|
]),
|
|
9639
9641
|
...g
|
|
9640
9642
|
}, r);
|
|
9641
|
-
},
|
|
9643
|
+
}, na = ({ children: t, mobileMenuMaxWidth: n = 640 }) => /* @__PURE__ */ e.createElement(xt, { mobileMenuMaxWidth: n }, /* @__PURE__ */ e.createElement(Ue, null, t)), ra = ({ children: t, className: n, gridGap: r = "standard", sidebarLocation: i = "right", sidebarMobileLocation: a = "after", sidebarWidth: o = "standard", ...s }) => {
|
|
9642
9644
|
let c = "pds-sidebar-layout", l = `pds-grid pds-grid--${r}`, d = `${c}--${o}`, f = !1, p = u(bt);
|
|
9643
9645
|
p && (f = p.isMobile);
|
|
9644
9646
|
let m = Ee(t), h = "pds-grid-item pds-grid-item--md-8 pds-grid-item--lg-9 pds-grid-item--xl-10", g = "pds-grid-item pds-grid-item--md-4 pds-grid-item--lg-3 pds-grid-item--xl-2";
|
|
@@ -9659,18 +9661,18 @@ var zn = {
|
|
|
9659
9661
|
]),
|
|
9660
9662
|
...s
|
|
9661
9663
|
}, f ? a === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, v, _) : /* @__PURE__ */ e.createElement(e.Fragment, null, _, v) : i === "left" ? /* @__PURE__ */ e.createElement(e.Fragment, null, v, _) : /* @__PURE__ */ e.createElement(e.Fragment, null, _, v));
|
|
9662
|
-
},
|
|
9664
|
+
}, ia = ({ children: t, className: n, ...r }) => {
|
|
9663
9665
|
let i = Ee(t), a = i.stepper, o = i.form, s = m(null), [c] = ue(s), l = c.width;
|
|
9664
9666
|
document.documentElement.style.setProperty("--stepper-layout-max-width", l + "px");
|
|
9665
9667
|
let u = "pds-stepper-layout";
|
|
9666
|
-
return /* @__PURE__ */ e.createElement(
|
|
9668
|
+
return /* @__PURE__ */ e.createElement(Rr, {
|
|
9667
9669
|
className: Z([u, n]),
|
|
9668
9670
|
...r
|
|
9669
9671
|
}, a && /* @__PURE__ */ e.createElement("div", {
|
|
9670
9672
|
ref: s,
|
|
9671
9673
|
className: `${u}__stepper-container`
|
|
9672
9674
|
}, a), o && /* @__PURE__ */ e.createElement("div", { className: `${u}__form-container` }, o));
|
|
9673
|
-
},
|
|
9675
|
+
}, aa = ({ children: t, className: n, gridGap: r = "standard", verticalAlign: i = "start", ...a }) => {
|
|
9674
9676
|
let o = "pds-three-item-layout", s = r === "standard" ? "pds-grid" : `pds-grid pds-grid--${r}`, c = `${o}--${i}`, l = Ee(t), u = [
|
|
9675
9677
|
l["first-item"],
|
|
9676
9678
|
l["second-item"],
|
|
@@ -9688,7 +9690,7 @@ var zn = {
|
|
|
9688
9690
|
key: n,
|
|
9689
9691
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
9690
9692
|
}, t)));
|
|
9691
|
-
},
|
|
9693
|
+
}, oa = ({ children: t, className: n, gridGap: r = "standard", layoutVariant: i = "equal", verticalAlign: a = "start", ...o }) => {
|
|
9692
9694
|
let s = "pds-two-item-layout", c = r === "standard" ? "pds-grid" : `pds-grid pds-grid--${r}`, l = `${s}--${a}`, u = ["pds-grid-item--md-6"], d = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], f = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], p = ["pds-grid-item", "pds-grid-item--sm-4"], m, h;
|
|
9693
9695
|
switch (i) {
|
|
9694
9696
|
case "equal":
|
|
@@ -9709,7 +9711,7 @@ var zn = {
|
|
|
9709
9711
|
]),
|
|
9710
9712
|
...o
|
|
9711
9713
|
}, /* @__PURE__ */ e.createElement("div", { className: m.join(" ").trim() }, _), /* @__PURE__ */ e.createElement("div", { className: h.join(" ").trim() }, v));
|
|
9712
|
-
},
|
|
9714
|
+
}, sa = (e, t) => `(${t > 0 ? Math.round(e / t * 100) : 0}%)`, ca = ({ chartHeight: t, chartWidth: n, className: r, colorPalette: i = "categorical", data: a = [], isLoading: o = !1, isThumbnail: s = !1, labelStrings: c = {}, legendVariant: l = "inline", showAccessibleTable: u = !0, showLegend: d, showTooltip: f, valueFormatter: p = sa, variant: h = "pie", ...g }) => {
|
|
9713
9715
|
let { accessibleTableDescription: _ = "Pie chart data", emptyStateHeading: v = "No data available", emptyStateMessage: y, loadingLabel: b = "Loading chart data" } = c, x = m(null), S = $t(i, on(x, i)), C = "pds-pie-chart", w = t ?? (s ? 80 : 300), T = n ?? (s ? 80 : void 0), E = d ?? !s, D = f ?? !s, O = a.reduce((e, t) => e + t.value, 0), k = (e, t) => rn(e, S, t.color, en(i, t.paletteIndex));
|
|
9714
9716
|
if (o) {
|
|
9715
9717
|
let t = `${Math.round(w * .8)}px`;
|
|
@@ -9784,10 +9786,10 @@ var zn = {
|
|
|
9784
9786
|
margin: "0 auto",
|
|
9785
9787
|
width: `min(100%, ${w}px)`
|
|
9786
9788
|
}
|
|
9787
|
-
}, /* @__PURE__ */ e.createElement(
|
|
9789
|
+
}, /* @__PURE__ */ e.createElement(q, {
|
|
9788
9790
|
height: w,
|
|
9789
9791
|
width: "100%"
|
|
9790
|
-
}, /* @__PURE__ */ e.createElement(
|
|
9792
|
+
}, /* @__PURE__ */ e.createElement(G, null, /* @__PURE__ */ e.createElement(te, {
|
|
9791
9793
|
cx: "50%",
|
|
9792
9794
|
cy: "50%",
|
|
9793
9795
|
data: A,
|
|
@@ -9799,7 +9801,7 @@ var zn = {
|
|
|
9799
9801
|
}, a.map((t, n) => /* @__PURE__ */ e.createElement(U, {
|
|
9800
9802
|
key: t.label,
|
|
9801
9803
|
fill: k(n, t)
|
|
9802
|
-
}))), D && /* @__PURE__ */ e.createElement(
|
|
9804
|
+
}))), D && /* @__PURE__ */ e.createElement(J, {
|
|
9803
9805
|
content: (t) => {
|
|
9804
9806
|
if (!t.active || !t.payload?.length) return null;
|
|
9805
9807
|
let n = t.payload[0], r = Number(n.value ?? 0), i = O > 0 ? Math.round(r / O * 100) : 0, a = String(n.payload?.fill ?? "");
|
|
@@ -9832,7 +9834,7 @@ var zn = {
|
|
|
9832
9834
|
let n = O > 0 ? Math.round(t.value / O * 100) : 0;
|
|
9833
9835
|
return /* @__PURE__ */ e.createElement("tr", { key: t.label }, /* @__PURE__ */ e.createElement("td", null, t.label), /* @__PURE__ */ e.createElement("td", null, t.value.toLocaleString()), /* @__PURE__ */ e.createElement("td", null, n, "%"));
|
|
9834
9836
|
}))));
|
|
9835
|
-
},
|
|
9837
|
+
}, la = (e, t) => {
|
|
9836
9838
|
let [n, r] = h(!1), i = l((n) => {
|
|
9837
9839
|
n.key === e && (r(!0), t && t(n));
|
|
9838
9840
|
}, [e, t]), a = l((t) => {
|
|
@@ -9843,6 +9845,6 @@ var zn = {
|
|
|
9843
9845
|
}), [i, a]), n;
|
|
9844
9846
|
};
|
|
9845
9847
|
//#endregion
|
|
9846
|
-
export {
|
|
9848
|
+
export { Qi as AppLayout, Me as Avatar, Yi as AvatarTileList, $r as Banner, Nn as BarChart, ze as BranchDiff, xr as Breadcrumb, at as Button, ot as ButtonLink, kr as ButtonNav, Un as CTALink, Wn as CTASlice, Dt as Callout, Ot as Card, kt as CardHeading, At as CardSelectGroup, tr as Checkbox, nr as CheckboxFieldset, rr as CheckboxGroup, lt as ClipboardButton, ut as CloseButton, Hn as CodeBlock, ir as Combobox, or as ComboboxMultiselect, Zt as CompactEmptyState, Kt as ComparisonList, Rr as Container, jr as DashboardContext, Mr as DashboardGlobal, $i as DashboardInner, Fr as DashboardNav, Pr as DashboardNavItem, Lr as DashboardSearch, Gn as DashboardStat, lr as Datepicker, ea as DocsLayout, Kn as Drawer, Nr as DropdownMenu, jt as EmptyStateCard, vi as ExpansionPanel, yi as ExpansionPanelGroup, Xn as FileDiff, ur as FileUpload, ta as FlexContainer, Zn as FlowSteps, Qn as FooterHeading, $n as FooterLinks, na as GlobalWrapper, Jn as HorizontalEmptyState, Q as Icon, ct as IconButton, Ne as IndicatorBadge, ti as InlineMessage, dr as InputGroup, Fn as LineChart, yr as LinkNewWindow, Mt as LinksCard, ii as MIN_AUTO_CLOSE_DURATION, St as MenuButton, br as Modal, Vr as NavMenu, zr as Navbar, Vt as NewSiteCard, gi as Pagination, bi as Panel, xi as PanelList, Ci as PanelRow, zt as PantheonLogo, Wt as PaymentCard, Ut as PaymentIcon, wi as Picture, ca as PieChart, Pt as PlatformIcon, Di as Popover, Yt as PricingCard, ki as ProgressBar, Ai as ProgressRing, Ln as ProportionBar, ji as PullQuote, fr as RadioGroup, Ni as RefreshChecker, Mi as RefreshCheckerState, bt as ResponsiveContext, ri as SectionMessage, Ct as SegmentedButton, Jt as Select, qt as SelectOptionGroup, Hr as SideNav, Wr as SideNavCompact, Kr as SideNavGlobal, Gr as SideNavGlobalItem, ra as SidebarLayout, Xt as SiteCard, Pi as SiteDashboardHeading, er as SiteFooter, Ir as SiteOptionDisplay, gt as SitePlanLevelLabel, vt as SiteTypeIcon, _t as SiteTypeLabel, kn as Skeleton, Ar as Skiplink, Ii as SocialLinks, it as Spinner, wt as SplitButton, Pe as StatusBadge, Li as StatusIndicator, dt as StatusTypeLabels, Ri as Stepper, ia as StepperLayout, pr as Switch, Jr as TabMenu, Vi as Table, Hi as TableOfContents, Ui as Tabs, qi as Tag, hr as TagsInput, Fe as Tally, vr as TextInput, gr as Textarea, Ji as ThemeSwitcher, aa as ThreeItemLayout, Xi as Tile, Zi as TileGrid, di as Toast, fi as ToastType, ci as Toaster, oi as ToasterContext, Re as Tooltip, oa as TwoItemLayout, Yr as UserMenu, Tt as UtilityButton, Yn as VerticalEmptyState, Bi as VerticalStepper, qn as VideoEmbed, Zr as WorkspaceSelector, Bt as badgeTypes, ke as iconList, pt as isHeadingItemType, mt as isLinkItemType, ht as isNodeItemType, ft as isSeparatorItemType, Wi as tagColors, st as useClipboard, la as useKeyPress, pi as useToast, yt as useWindowWidth };
|
|
9847
9849
|
|
|
9848
9850
|
//# sourceMappingURL=index.js.map
|