@pantheon-systems/pds-toolkit-react 1.0.0-dev.214 → 1.0.0-dev.215
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/FlowSteps/FlowSteps.d.ts +29 -0
- package/_dist/components/FlowSteps/example-steps.d.ts +15 -0
- package/_dist/components/Icon/Icon.d.ts +9 -1
- package/_dist/components/Modal/Modal.d.ts +1 -1
- package/_dist/components/inputs/TextInput/TextInput.d.ts +4 -0
- package/_dist/components/inputs/input-utilities.d.ts +1 -1
- package/_dist/css/component-css/pds-code-block.css +1 -1
- package/_dist/css/component-css/pds-flow-steps.css +1 -0
- package/_dist/css/component-css/pds-index.css +2 -2
- package/_dist/css/component-css/pds-modal.css +1 -1
- package/_dist/css/design-tokens/pds-design-tokens.css +1 -0
- package/_dist/css/pds-components.css +2 -2
- package/_dist/css/pds-core.css +1 -1
- package/_dist/index.css +1 -1
- package/_dist/index.d.ts +1 -0
- package/_dist/index.js +1119 -1103
- package/_dist/index.js.map +1 -1
- package/package.json +2 -2
package/_dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var Yt = (t, s, n) => s in t ? N1(t, s, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
for (var n of ht(s))
|
|
10
10
|
Jt.call(s, n) && Yt(t, n, s[n]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
12
|
+
}, he = (t, s) => x1(t, V1(s));
|
|
13
13
|
var I = (t, s) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var a in t)
|
|
@@ -19,7 +19,7 @@ var I = (t, s) => {
|
|
|
19
19
|
s.indexOf(a) < 0 && Jt.call(t, a) && (n[a] = t[a]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var Ht = (t, s, n) => new Promise((a, r) => {
|
|
23
23
|
var i = (o) => {
|
|
24
24
|
try {
|
|
25
25
|
c(n.next(o));
|
|
@@ -35,8 +35,8 @@ var zt = (t, s, n) => new Promise((a, r) => {
|
|
|
35
35
|
}, c = (o) => o.done ? a(o.value) : Promise.resolve(o.value).then(i, l);
|
|
36
36
|
c((n = n.apply(t, s)).next());
|
|
37
37
|
});
|
|
38
|
-
import e, { useRef as
|
|
39
|
-
import
|
|
38
|
+
import e, { useRef as de, useState as G, Children as i1, isValidElement as Ce, cloneElement as Ve, createElement as S1, forwardRef as qe, useEffect as ce, createContext as d1, useContext as $e, useLayoutEffect as I1, useCallback as T1, createRef as A1, useMemo as D1, Fragment as O1 } from "react";
|
|
39
|
+
import _e from "prop-types";
|
|
40
40
|
import m1 from "hash-sum";
|
|
41
41
|
import { useFloating as Se, offset as $t, flip as wt, shift as yt, autoUpdate as Be, useHover as _t, useFocus as u1, useDismiss as Ie, useRole as Te, useInteractions as Ae, FloatingPortal as p1, useId as R1, useClick as Xe, useListNavigation as ct, useTransitionStyles as Ye, FloatingOverlay as F1, FloatingFocusManager as h1, safePolygon as f1, arrow as P1, FloatingArrow as B1 } from "@floating-ui/react";
|
|
42
42
|
import { useHotkeys as W1 } from "react-hotkeys-hook";
|
|
@@ -60,15 +60,15 @@ X1.propTypes = {
|
|
|
60
60
|
/**
|
|
61
61
|
* Heading content
|
|
62
62
|
*/
|
|
63
|
-
children:
|
|
63
|
+
children: _e.node.isRequired,
|
|
64
64
|
/**
|
|
65
65
|
* Heading level
|
|
66
66
|
*/
|
|
67
|
-
level:
|
|
67
|
+
level: _e.oneOf(["h1", "h2", "h3", "h4", "h5", "h6"]).isRequired,
|
|
68
68
|
/**
|
|
69
69
|
* Additional class names
|
|
70
70
|
*/
|
|
71
|
-
className:
|
|
71
|
+
className: _e.string
|
|
72
72
|
};
|
|
73
73
|
const O = (r) => {
|
|
74
74
|
var i = r, {
|
|
@@ -509,6 +509,14 @@ const O = (r) => {
|
|
|
509
509
|
path: "M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L532.4 392c45.4-28.2 75.6-78.6 75.6-136c0-88.4-71.6-160-160-160H384c-17.7 0-32 14.3-32 32s14.3 32 32 32h64c53 0 96 43 96 96c0 43.3-28.6 79.8-67.9 91.8L399.7 288H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H318.1l-81.7-64H256c17.7 0 32-14.3 32-32s-14.3-32-32-32H192c-11.3 0-22.3 1.2-32.9 3.4L38.8 5.1zM121 191.4L70.7 151.7C46.6 179.7 32 216.1 32 256c0 88.4 71.6 160 160 160h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H192c-53 0-96-43-96-96c0-24.9 9.5-47.6 25-64.6z",
|
|
510
510
|
width: "640"
|
|
511
511
|
},
|
|
512
|
+
lock: {
|
|
513
|
+
path: "M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z",
|
|
514
|
+
width: "448"
|
|
515
|
+
},
|
|
516
|
+
lockOpen: {
|
|
517
|
+
path: "M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z",
|
|
518
|
+
width: "576"
|
|
519
|
+
},
|
|
512
520
|
magnifyingGlass: {
|
|
513
521
|
path: "M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z",
|
|
514
522
|
width: "512"
|
|
@@ -765,7 +773,7 @@ const O = (r) => {
|
|
|
765
773
|
"onChange",
|
|
766
774
|
"options"
|
|
767
775
|
]);
|
|
768
|
-
const d = "pds-toggle-button", h = "pds-is-disabled", u =
|
|
776
|
+
const d = "pds-toggle-button", h = "pds-is-disabled", u = de([d]), [f, E] = G(n), C = (v) => {
|
|
769
777
|
E(v.target.value), r && r(v.target.value);
|
|
770
778
|
};
|
|
771
779
|
if ((() => {
|
|
@@ -812,51 +820,51 @@ Y1.propTypes = {
|
|
|
812
820
|
/**
|
|
813
821
|
* Is the ToggleButton disabled?
|
|
814
822
|
*/
|
|
815
|
-
disabled:
|
|
823
|
+
disabled: _e.bool,
|
|
816
824
|
/**
|
|
817
825
|
* Unique ID for the ToggleButton
|
|
818
826
|
*/
|
|
819
|
-
id:
|
|
827
|
+
id: _e.string.isRequired,
|
|
820
828
|
/**
|
|
821
829
|
* Optional initial selected option value
|
|
822
830
|
*/
|
|
823
|
-
defaultValue:
|
|
831
|
+
defaultValue: _e.string,
|
|
824
832
|
/**
|
|
825
833
|
* Label for the ToggleButton — visually hidden, used for screen readers only.
|
|
826
834
|
*/
|
|
827
|
-
label:
|
|
835
|
+
label: _e.string.isRequired,
|
|
828
836
|
/**
|
|
829
837
|
* Callback function that will return the updated value from the instance when it changes.
|
|
830
838
|
* Function should have the shape of: `(value) => { <do stuff here> } `.
|
|
831
839
|
*/
|
|
832
|
-
onChange:
|
|
840
|
+
onChange: _e.func,
|
|
833
841
|
/**
|
|
834
842
|
* Array of button options — must be exactly two options.
|
|
835
843
|
*/
|
|
836
|
-
options:
|
|
837
|
-
|
|
844
|
+
options: _e.arrayOf(
|
|
845
|
+
_e.shape({
|
|
838
846
|
/**
|
|
839
847
|
* Option label
|
|
840
848
|
*/
|
|
841
|
-
label:
|
|
849
|
+
label: _e.string.isRequired,
|
|
842
850
|
/**
|
|
843
851
|
* Option value
|
|
844
852
|
*/
|
|
845
|
-
value:
|
|
853
|
+
value: _e.string.isRequired,
|
|
846
854
|
/**
|
|
847
855
|
* Option icon
|
|
848
856
|
*/
|
|
849
|
-
iconName:
|
|
857
|
+
iconName: _e.string,
|
|
850
858
|
/**
|
|
851
859
|
* Unique ID for the option
|
|
852
860
|
*/
|
|
853
|
-
id:
|
|
861
|
+
id: _e.string
|
|
854
862
|
})
|
|
855
863
|
),
|
|
856
864
|
/**
|
|
857
865
|
* Additional class names
|
|
858
866
|
*/
|
|
859
|
-
className:
|
|
867
|
+
className: _e.string
|
|
860
868
|
};
|
|
861
869
|
const tt = () => Math.random().toString(32).substring(2, 13), g1 = (t, s) => {
|
|
862
870
|
let n;
|
|
@@ -866,7 +874,7 @@ const tt = () => Math.random().toString(32).substring(2, 13), g1 = (t, s) => {
|
|
|
866
874
|
}, je = (t) => {
|
|
867
875
|
const s = {};
|
|
868
876
|
return i1.forEach(t, (n) => {
|
|
869
|
-
if (
|
|
877
|
+
if (Ce(n)) {
|
|
870
878
|
const a = n.props.slot;
|
|
871
879
|
a && (s[a] ? s[a].push(n) : s[a] = [n]);
|
|
872
880
|
}
|
|
@@ -917,9 +925,9 @@ const tt = () => Math.random().toString(32).substring(2, 13), g1 = (t, s) => {
|
|
|
917
925
|
display: "flex",
|
|
918
926
|
alignItems: "center",
|
|
919
927
|
justifyContent: "center"
|
|
920
|
-
}, y = n ? /* @__PURE__ */ e.createElement("img", { src: `${n}`, className: `${h}__image`, alt: "" }) : /* @__PURE__ */ e.createElement("span", { style: C }, s && /* @__PURE__ */ e.createElement(O, { iconName: "user", className: `${h}__user-icon` })), v = /* @__PURE__ */ e.createElement("span", { className: `${h}__content` }, y), b =
|
|
928
|
+
}, y = n ? /* @__PURE__ */ e.createElement("img", { src: `${n}`, className: `${h}__image`, alt: "" }) : /* @__PURE__ */ e.createElement("span", { style: C }, s && /* @__PURE__ */ e.createElement(O, { iconName: "user", className: `${h}__user-icon` })), v = /* @__PURE__ */ e.createElement("span", { className: `${h}__content` }, y), b = Ce(a) ? Ve(
|
|
921
929
|
a,
|
|
922
|
-
|
|
930
|
+
he(L({}, a.props), {
|
|
923
931
|
className: `${h}__content ${h}__content--link`,
|
|
924
932
|
"aria-label": t
|
|
925
933
|
}),
|
|
@@ -1029,7 +1037,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1029
1037
|
"zIndex",
|
|
1030
1038
|
"className"
|
|
1031
1039
|
]);
|
|
1032
|
-
const [E, C] =
|
|
1040
|
+
const [E, C] = G(!1), y = typeof s, v = "pds-tooltip", b = N([
|
|
1033
1041
|
`${v}__trigger-custom`,
|
|
1034
1042
|
y === "string" ? `${v}__trigger-text` : null
|
|
1035
1043
|
]), p = N([
|
|
@@ -1045,10 +1053,10 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1045
1053
|
restMs: 300,
|
|
1046
1054
|
delay: { open: 500, close: 0 },
|
|
1047
1055
|
move: !1
|
|
1048
|
-
}),
|
|
1056
|
+
}), M = u1(g), z = Ie(g), w = Te(g, { role: "tooltip" }), { getReferenceProps: H, getFloatingProps: k } = Ae([
|
|
1049
1057
|
$,
|
|
1050
|
-
H,
|
|
1051
1058
|
M,
|
|
1059
|
+
z,
|
|
1052
1060
|
w
|
|
1053
1061
|
]);
|
|
1054
1062
|
return /* @__PURE__ */ e.createElement("div", L({ className: N([v, d != null ? d : ""]) }, h), s ? /* @__PURE__ */ e.createElement(
|
|
@@ -1056,7 +1064,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1056
1064
|
L({
|
|
1057
1065
|
className: b,
|
|
1058
1066
|
ref: m.setReference
|
|
1059
|
-
},
|
|
1067
|
+
}, H()),
|
|
1060
1068
|
s
|
|
1061
1069
|
) : /* @__PURE__ */ e.createElement(
|
|
1062
1070
|
"button",
|
|
@@ -1064,7 +1072,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1064
1072
|
"aria-label": r,
|
|
1065
1073
|
className: p,
|
|
1066
1074
|
ref: m.setReference
|
|
1067
|
-
},
|
|
1075
|
+
}, H()),
|
|
1068
1076
|
/* @__PURE__ */ e.createElement(
|
|
1069
1077
|
O,
|
|
1070
1078
|
{
|
|
@@ -1078,7 +1086,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1078
1086
|
L({
|
|
1079
1087
|
className: `${v}__container`,
|
|
1080
1088
|
ref: m.setFloating,
|
|
1081
|
-
style:
|
|
1089
|
+
style: he(L({}, _), { zIndex: o })
|
|
1082
1090
|
}, k()),
|
|
1083
1091
|
t
|
|
1084
1092
|
)));
|
|
@@ -1212,7 +1220,8 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1212
1220
|
}, e2 = {
|
|
1213
1221
|
search: "magnifyingGlass",
|
|
1214
1222
|
error: "triangleExclamation",
|
|
1215
|
-
success: "check"
|
|
1223
|
+
success: "check",
|
|
1224
|
+
filter: "barsFilter"
|
|
1216
1225
|
}, pt = ({ variant: t }) => {
|
|
1217
1226
|
const s = "pds-input-decorator";
|
|
1218
1227
|
return /* @__PURE__ */ e.createElement("div", { className: N([s, `${s}--${t}`]) }, /* @__PURE__ */ e.createElement(
|
|
@@ -1280,7 +1289,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1280
1289
|
t
|
|
1281
1290
|
);
|
|
1282
1291
|
}
|
|
1283
|
-
),
|
|
1292
|
+
), Mt = (c) => {
|
|
1284
1293
|
var o = c, {
|
|
1285
1294
|
colorType: t = "full-color",
|
|
1286
1295
|
isInline: s = !1,
|
|
@@ -1375,7 +1384,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1375
1384
|
onClick: d,
|
|
1376
1385
|
ref: C
|
|
1377
1386
|
}, E),
|
|
1378
|
-
l && /* @__PURE__ */ e.createElement(
|
|
1387
|
+
l && /* @__PURE__ */ e.createElement(Mt, { className: `${b}__loading-indicator`, size: "md" }),
|
|
1379
1388
|
$
|
|
1380
1389
|
);
|
|
1381
1390
|
}
|
|
@@ -1401,7 +1410,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1401
1410
|
u,
|
|
1402
1411
|
f,
|
|
1403
1412
|
E
|
|
1404
|
-
]), y =
|
|
1413
|
+
]), y = Ce(a) ? a.props.children : null, v = /* @__PURE__ */ e.createElement(
|
|
1405
1414
|
O,
|
|
1406
1415
|
{
|
|
1407
1416
|
iconName: n,
|
|
@@ -1412,7 +1421,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1412
1421
|
);
|
|
1413
1422
|
let b = [y];
|
|
1414
1423
|
s === "icon-start" && n ? b = [v, y] : s === "icon-end" && n && (b = [y, v]);
|
|
1415
|
-
const p =
|
|
1424
|
+
const p = Ce(a) ? Ve(a, {
|
|
1416
1425
|
className: C,
|
|
1417
1426
|
children: b
|
|
1418
1427
|
}) : null;
|
|
@@ -1427,7 +1436,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1427
1436
|
}
|
|
1428
1437
|
) : /* @__PURE__ */ e.createElement("span", L({ className: N([h, l != null ? l : ""]) }, c), p);
|
|
1429
1438
|
}, t2 = (t, s) => {
|
|
1430
|
-
const [n, a] =
|
|
1439
|
+
const [n, a] = G(!1), r = s == null ? void 0 : s.duration;
|
|
1431
1440
|
return ce(() => {
|
|
1432
1441
|
let l;
|
|
1433
1442
|
return n && r && (l = setTimeout(() => {
|
|
@@ -1435,7 +1444,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1435
1444
|
}, r)), () => {
|
|
1436
1445
|
l && clearTimeout(l);
|
|
1437
1446
|
};
|
|
1438
|
-
}, [n, r]), [n, () =>
|
|
1447
|
+
}, [n, r]), [n, () => Ht(void 0, null, function* () {
|
|
1439
1448
|
if (navigator.clipboard)
|
|
1440
1449
|
try {
|
|
1441
1450
|
yield navigator.clipboard.writeText(t), a(!0);
|
|
@@ -1483,15 +1492,15 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1483
1492
|
case "lg":
|
|
1484
1493
|
m = "xl", p = 12;
|
|
1485
1494
|
}
|
|
1486
|
-
const _ = i !== null, g =
|
|
1495
|
+
const _ = i !== null, g = de(null), $ = de(null), M = () => {
|
|
1487
1496
|
g.current.classList.add(b.fadeOut), g.current.classList.add(b.hide), $.current.classList.remove(b.hide), $.current.classList.add(b.scaleIn), setTimeout(() => {
|
|
1488
1497
|
g.current.classList.remove(
|
|
1489
1498
|
b.fadeOut,
|
|
1490
1499
|
b.hide
|
|
1491
1500
|
), g.current.classList.add(b.scaleIn), $.current.classList.remove(b.scaleIn), $.current.classList.add(b.hide);
|
|
1492
1501
|
}, 2e3);
|
|
1493
|
-
},
|
|
1494
|
-
_ &&
|
|
1502
|
+
}, z = (H) => {
|
|
1503
|
+
_ && M(), l && l(H);
|
|
1495
1504
|
}, w = _ ? /* @__PURE__ */ e.createElement("div", { className: `${C}__content` }, /* @__PURE__ */ e.createElement("div", { ref: g, className: `${C}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
1496
1505
|
O,
|
|
1497
1506
|
{
|
|
@@ -1532,7 +1541,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1532
1541
|
d
|
|
1533
1542
|
]),
|
|
1534
1543
|
disabled: n,
|
|
1535
|
-
onClick:
|
|
1544
|
+
onClick: z,
|
|
1536
1545
|
type: s,
|
|
1537
1546
|
title: a && !n ? null : t,
|
|
1538
1547
|
ref: u
|
|
@@ -1578,7 +1587,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1578
1587
|
}, i)
|
|
1579
1588
|
);
|
|
1580
1589
|
}, E1 = () => {
|
|
1581
|
-
const [t, s] =
|
|
1590
|
+
const [t, s] = G(
|
|
1582
1591
|
window.innerWidth !== void 0 ? window.innerWidth : 1024
|
|
1583
1592
|
);
|
|
1584
1593
|
return ce(() => {
|
|
@@ -1646,132 +1655,132 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1646
1655
|
reference: _,
|
|
1647
1656
|
floating: g,
|
|
1648
1657
|
strategy: $,
|
|
1649
|
-
update:
|
|
1650
|
-
placement:
|
|
1658
|
+
update: M,
|
|
1659
|
+
placement: z,
|
|
1651
1660
|
refs: w
|
|
1652
1661
|
} = G1({
|
|
1653
1662
|
placement: "bottom-start",
|
|
1654
1663
|
middleware: [U1()]
|
|
1655
1664
|
});
|
|
1656
|
-
let
|
|
1657
|
-
const k =
|
|
1658
|
-
k && (
|
|
1659
|
-
const
|
|
1665
|
+
let H = !1;
|
|
1666
|
+
const k = $e(ke);
|
|
1667
|
+
k && (H = k.isMobile);
|
|
1668
|
+
const x = f === "navbar" && H, V = "pds-menu-button", T = x ? `${V}--isMobile` : null, A = E ? `${V}--navbar` : null, S = a, [U] = G(`menu-button-${a}`), F = w.floating, W = de(null), [X, Q] = G(!1), [j, Y] = G(!1), [P, R] = G(""), [K, ae] = G(0), te = de([]), q = de([]), se = de([]);
|
|
1660
1669
|
I1(() => {
|
|
1661
|
-
window.addEventListener("mousedown", We, !0),
|
|
1670
|
+
window.addEventListener("mousedown", We, !0), M();
|
|
1662
1671
|
const D = F.current;
|
|
1663
|
-
return D && (D.dataset.fuiPlacement =
|
|
1672
|
+
return D && (D.dataset.fuiPlacement = z), j && (setTimeout(() => {
|
|
1664
1673
|
D.focus();
|
|
1665
|
-
}, 0),
|
|
1674
|
+
}, 0), Y(!1)), () => {
|
|
1666
1675
|
window.removeEventListener("mousedown", We, !0);
|
|
1667
1676
|
};
|
|
1668
|
-
}, [X,
|
|
1669
|
-
const
|
|
1670
|
-
R(D),
|
|
1671
|
-
},
|
|
1672
|
-
|
|
1677
|
+
}, [X, z]);
|
|
1678
|
+
const ne = (D, Z) => {
|
|
1679
|
+
R(D), ae(Z);
|
|
1680
|
+
}, me = () => {
|
|
1681
|
+
Q(!0), Y(!0);
|
|
1673
1682
|
}, ue = () => {
|
|
1674
|
-
|
|
1683
|
+
Q(!1), ne(void 0, -1), W.current.querySelector(`#${S}`).focus();
|
|
1675
1684
|
}, ge = (D) => {
|
|
1676
1685
|
D = D.toLowerCase();
|
|
1677
1686
|
let Z = !1;
|
|
1678
|
-
for (let
|
|
1679
|
-
if (
|
|
1680
|
-
|
|
1687
|
+
for (let B = K + 1; B < se.current.length; B++)
|
|
1688
|
+
if (se.current[B].label.toLowerCase().startsWith(D)) {
|
|
1689
|
+
ne(q.current[B], B), Z = !0;
|
|
1681
1690
|
break;
|
|
1682
1691
|
}
|
|
1683
1692
|
if (Z === !1) {
|
|
1684
|
-
for (let
|
|
1685
|
-
if (
|
|
1686
|
-
|
|
1693
|
+
for (let B = 0; B < K; B++)
|
|
1694
|
+
if (se.current[B].label.toLowerCase().startsWith(D)) {
|
|
1695
|
+
ne(q.current[B], B);
|
|
1687
1696
|
break;
|
|
1688
1697
|
}
|
|
1689
1698
|
}
|
|
1690
|
-
},
|
|
1691
|
-
const Z = q.current.indexOf(D),
|
|
1692
|
-
if (
|
|
1693
|
-
const re =
|
|
1699
|
+
}, we = (D) => {
|
|
1700
|
+
const Z = q.current.indexOf(D), B = se.current[Z];
|
|
1701
|
+
if (B.callback && !B.disabled && B.callback(B), B.linkContent && !B.disabled) {
|
|
1702
|
+
const re = W.current.querySelector(`#${D} a`);
|
|
1694
1703
|
re && re.click();
|
|
1695
1704
|
}
|
|
1696
|
-
},
|
|
1697
|
-
const D = q.current[
|
|
1698
|
-
|
|
1699
|
-
},
|
|
1700
|
-
X ? ue() :
|
|
1701
|
-
},
|
|
1702
|
-
|
|
1705
|
+
}, ee = () => {
|
|
1706
|
+
const D = q.current[K];
|
|
1707
|
+
we(D);
|
|
1708
|
+
}, ie = (D) => {
|
|
1709
|
+
X ? ue() : me(), o && o(), Y((Z) => !Z), D.stopPropagation(), D.preventDefault();
|
|
1710
|
+
}, ze = (D) => {
|
|
1711
|
+
we(D.currentTarget.id), x || ue();
|
|
1703
1712
|
}, Oe = (D) => {
|
|
1704
1713
|
const Z = D.key;
|
|
1705
|
-
let
|
|
1714
|
+
let B = !1;
|
|
1706
1715
|
switch (Z) {
|
|
1707
1716
|
case " ":
|
|
1708
1717
|
case "Enter":
|
|
1709
1718
|
case "ArrowDown":
|
|
1710
1719
|
case "Down":
|
|
1711
|
-
|
|
1720
|
+
me(), ne(q.current[0], 0), B = !0, o && o();
|
|
1712
1721
|
break;
|
|
1713
1722
|
case "Esc":
|
|
1714
1723
|
case "Escape":
|
|
1715
|
-
ue(),
|
|
1724
|
+
ue(), B = !0;
|
|
1716
1725
|
break;
|
|
1717
1726
|
case "Up":
|
|
1718
1727
|
case "ArrowUp": {
|
|
1719
1728
|
const re = q.current.length - 1;
|
|
1720
|
-
|
|
1729
|
+
me(), ne(q.current[re], re), B = !0;
|
|
1721
1730
|
break;
|
|
1722
1731
|
}
|
|
1723
1732
|
}
|
|
1724
|
-
|
|
1733
|
+
B && (D.stopPropagation(), D.preventDefault());
|
|
1725
1734
|
}, Ne = (D) => {
|
|
1726
1735
|
const Z = D.key;
|
|
1727
|
-
let
|
|
1728
|
-
function
|
|
1736
|
+
let B = !1, re = "", le = 0;
|
|
1737
|
+
function pe(oe) {
|
|
1729
1738
|
return oe.length === 1 && oe.match(/\S/);
|
|
1730
1739
|
}
|
|
1731
1740
|
if (!(D.ctrlKey || D.altKey || D.metaKey)) {
|
|
1732
1741
|
if (D.shiftKey)
|
|
1733
|
-
|
|
1742
|
+
pe(Z) && (ge(Z), B = !0), D.key === "Tab" && (ue(), B = !0);
|
|
1734
1743
|
else
|
|
1735
1744
|
switch (Z) {
|
|
1736
1745
|
case " ":
|
|
1737
1746
|
case "Enter":
|
|
1738
|
-
ue(),
|
|
1747
|
+
ue(), ee(), B = !0;
|
|
1739
1748
|
break;
|
|
1740
1749
|
case "Esc":
|
|
1741
1750
|
case "Escape":
|
|
1742
|
-
ue(),
|
|
1751
|
+
ue(), B = !0;
|
|
1743
1752
|
break;
|
|
1744
1753
|
case "Up":
|
|
1745
1754
|
case "ArrowUp":
|
|
1746
|
-
le =
|
|
1755
|
+
le = K - 1, le < 0 && (le = q.current.length - 1), re = q.current[le], ne(re, le), B = !0;
|
|
1747
1756
|
break;
|
|
1748
1757
|
case "ArrowDown":
|
|
1749
1758
|
case "Down":
|
|
1750
|
-
le =
|
|
1759
|
+
le = K + 1, le > q.current.length - 1 && (le = 0), re = q.current[le], ne(re, le), B = !0;
|
|
1751
1760
|
break;
|
|
1752
1761
|
case "Home":
|
|
1753
1762
|
case "PageUp":
|
|
1754
|
-
|
|
1763
|
+
ne(q.current[0], 0), B = !0;
|
|
1755
1764
|
break;
|
|
1756
1765
|
case "End":
|
|
1757
1766
|
case "PageDown": {
|
|
1758
1767
|
const oe = q.current.length - 1;
|
|
1759
|
-
|
|
1768
|
+
ne(q.current[oe], oe), B = !0;
|
|
1760
1769
|
break;
|
|
1761
1770
|
}
|
|
1762
1771
|
case "Tab":
|
|
1763
1772
|
ue();
|
|
1764
1773
|
break;
|
|
1765
1774
|
default:
|
|
1766
|
-
|
|
1775
|
+
pe(Z) && (ge(Z), B = !0);
|
|
1767
1776
|
break;
|
|
1768
1777
|
}
|
|
1769
|
-
|
|
1778
|
+
B && (D.stopPropagation(), D.preventDefault());
|
|
1770
1779
|
}
|
|
1771
1780
|
}, We = (D) => {
|
|
1772
|
-
|
|
1773
|
-
}, Re = (D, Z,
|
|
1774
|
-
const
|
|
1781
|
+
W.current && !W.current.contains(D.target) && X && ue();
|
|
1782
|
+
}, Re = (D, Z, B = "", re = "", ...le) => {
|
|
1783
|
+
const pe = B ? `-group-${B}` : "", oe = S + pe + "-item-" + (Z + 1), Le = D.id ? D.id : oe;
|
|
1775
1784
|
if (Nt(D))
|
|
1776
1785
|
return /* @__PURE__ */ e.createElement("li", { role: "separator", key: Le });
|
|
1777
1786
|
if (xt(D))
|
|
@@ -1781,18 +1790,18 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1781
1790
|
role: "presentation",
|
|
1782
1791
|
id: re || null,
|
|
1783
1792
|
key: re,
|
|
1784
|
-
className: `${
|
|
1793
|
+
className: `${V}__listbox-heading`
|
|
1785
1794
|
},
|
|
1786
1795
|
D.label
|
|
1787
1796
|
);
|
|
1788
1797
|
if (a2(D))
|
|
1789
1798
|
return /* @__PURE__ */ e.createElement("li", { role: "presentation", key: Le }, D.nodeContent);
|
|
1790
1799
|
if (Vt(D) || D.label) {
|
|
1791
|
-
q.current.push(Le),
|
|
1800
|
+
q.current.push(Le), se.current.push(D);
|
|
1792
1801
|
let at = !1;
|
|
1793
|
-
|
|
1794
|
-
let
|
|
1795
|
-
if (D.label && (
|
|
1802
|
+
P !== "" && !D.disabled && (at = P === Le);
|
|
1803
|
+
let Me;
|
|
1804
|
+
if (D.label && (Me = [D.label]), Vt(D) && (Me = [D.linkContent.props.children]), D.iconName) {
|
|
1796
1805
|
const lt = /* @__PURE__ */ e.createElement(
|
|
1797
1806
|
O,
|
|
1798
1807
|
{
|
|
@@ -1801,61 +1810,61 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1801
1810
|
iconSize: "md"
|
|
1802
1811
|
}
|
|
1803
1812
|
);
|
|
1804
|
-
|
|
1813
|
+
Me.unshift(lt);
|
|
1805
1814
|
}
|
|
1806
1815
|
let Ge;
|
|
1807
|
-
D.description && (Ge = /* @__PURE__ */ e.createElement("span", { className: `${
|
|
1816
|
+
D.description && (Ge = /* @__PURE__ */ e.createElement("span", { className: `${V}__item-description` }, D.description));
|
|
1808
1817
|
let Ue;
|
|
1809
1818
|
if (Vt(D)) {
|
|
1810
1819
|
const lt = D.linkContent.type;
|
|
1811
|
-
Ue = /* @__PURE__ */ e.createElement(lt, L({ tabIndex: -1 }, D.linkContent.props), /* @__PURE__ */ e.createElement("span", { className: `${
|
|
1820
|
+
Ue = /* @__PURE__ */ e.createElement(lt, L({ tabIndex: -1 }, D.linkContent.props), /* @__PURE__ */ e.createElement("span", { className: `${V}__item-label` }, Me), Ge);
|
|
1812
1821
|
} else
|
|
1813
|
-
Ue = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
1822
|
+
Ue = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${V}__item-label` }, Me), Ge);
|
|
1814
1823
|
return /* @__PURE__ */ e.createElement(
|
|
1815
1824
|
"li",
|
|
1816
1825
|
L({
|
|
1817
1826
|
id: Le,
|
|
1818
1827
|
key: Le,
|
|
1819
1828
|
"data-testid": D.testId,
|
|
1820
|
-
className: at ? `${
|
|
1829
|
+
className: at ? `${V}__item-focused` : null,
|
|
1821
1830
|
role: "menuitem",
|
|
1822
1831
|
tabIndex: -1,
|
|
1823
|
-
onClick:
|
|
1832
|
+
onClick: ze,
|
|
1824
1833
|
"aria-disabled": D.disabled ? !0 : null
|
|
1825
1834
|
}, le),
|
|
1826
1835
|
Ue
|
|
1827
1836
|
);
|
|
1828
1837
|
}
|
|
1829
1838
|
}, Qe = (D, Z) => {
|
|
1830
|
-
const
|
|
1839
|
+
const B = [];
|
|
1831
1840
|
let re = Z.shift(), le = [];
|
|
1832
|
-
return D.map((
|
|
1833
|
-
|
|
1834
|
-
}),
|
|
1841
|
+
return D.map((pe, oe) => {
|
|
1842
|
+
pe !== re ? (le.push(pe), oe + 1 === D.length && B.push(le)) : (B.push(le), le = [], le.push(pe), re = Z.shift());
|
|
1843
|
+
}), B.filter((pe) => pe.length > 0);
|
|
1835
1844
|
}, Je = (D) => {
|
|
1836
|
-
q.current = [],
|
|
1837
|
-
const Z = D,
|
|
1845
|
+
q.current = [], se.current = [];
|
|
1846
|
+
const Z = D, B = D.filter(
|
|
1838
1847
|
xt || Nt
|
|
1839
|
-
), re =
|
|
1840
|
-
let le = [`${
|
|
1841
|
-
if (E && le.push(`${
|
|
1842
|
-
const
|
|
1843
|
-
|
|
1844
|
-
|
|
1848
|
+
), re = B.length > 0;
|
|
1849
|
+
let le = [`${V}__listbox`];
|
|
1850
|
+
if (E && le.push(`${V}__listbox--navbar`), c === "end" && le.push(`${V}__listbox--end`), s === "icon-only" && le.push(`${V}__listbox--icon-only`), le = N(le), re) {
|
|
1851
|
+
const pe = Qe(D, B);
|
|
1852
|
+
pe.forEach(() => {
|
|
1853
|
+
te.current.push(tt());
|
|
1845
1854
|
});
|
|
1846
|
-
let oe =
|
|
1847
|
-
const Le =
|
|
1848
|
-
(
|
|
1855
|
+
let oe = te.current[0];
|
|
1856
|
+
const Le = pe[0].findIndex(
|
|
1857
|
+
(Me) => !Nt(Me) && !xt(Me)
|
|
1849
1858
|
), at = `${S}-group-${oe}-item-${Le + 1}`;
|
|
1850
1859
|
return /* @__PURE__ */ e.createElement(
|
|
1851
1860
|
"div",
|
|
1852
1861
|
{
|
|
1853
1862
|
className: le.toString(),
|
|
1854
|
-
id:
|
|
1863
|
+
id: U,
|
|
1855
1864
|
role: "menu",
|
|
1856
1865
|
tabIndex: -1,
|
|
1857
1866
|
"aria-labelledby": S,
|
|
1858
|
-
"aria-activedescendant":
|
|
1867
|
+
"aria-activedescendant": P !== "" ? P : at,
|
|
1859
1868
|
style: {
|
|
1860
1869
|
visibility: X ? "visible" : "hidden",
|
|
1861
1870
|
opacity: X ? "1" : "0",
|
|
@@ -1867,19 +1876,19 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1867
1876
|
onKeyDown: Ne,
|
|
1868
1877
|
ref: g
|
|
1869
1878
|
},
|
|
1870
|
-
|
|
1871
|
-
oe =
|
|
1872
|
-
const Ue =
|
|
1879
|
+
pe.map((Me, Ge) => {
|
|
1880
|
+
oe = te.current[Ge];
|
|
1881
|
+
const Ue = Me[0].isHeading, lt = Ue ? `${S}-group-${oe}-heading` : "", M1 = `${S}-group-${oe}`, z1 = Ue ? null : `${u} ${Ge + 1}`;
|
|
1873
1882
|
return /* @__PURE__ */ e.createElement(
|
|
1874
1883
|
"ul",
|
|
1875
1884
|
{
|
|
1876
1885
|
role: "group",
|
|
1877
1886
|
"aria-labelledby": lt,
|
|
1878
|
-
"aria-label":
|
|
1879
|
-
key:
|
|
1887
|
+
"aria-label": z1,
|
|
1888
|
+
key: M1
|
|
1880
1889
|
},
|
|
1881
|
-
|
|
1882
|
-
|
|
1890
|
+
Me.map((H1, k1) => Re(
|
|
1891
|
+
H1,
|
|
1883
1892
|
k1,
|
|
1884
1893
|
oe,
|
|
1885
1894
|
lt
|
|
@@ -1888,16 +1897,16 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1888
1897
|
})
|
|
1889
1898
|
);
|
|
1890
1899
|
} else {
|
|
1891
|
-
const
|
|
1900
|
+
const pe = `${S}-item-1`;
|
|
1892
1901
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
1893
1902
|
"ul",
|
|
1894
1903
|
{
|
|
1895
1904
|
className: le.toString(),
|
|
1896
|
-
id:
|
|
1905
|
+
id: U,
|
|
1897
1906
|
role: "menu",
|
|
1898
1907
|
tabIndex: -1,
|
|
1899
1908
|
"aria-labelledby": S,
|
|
1900
|
-
"aria-activedescendant":
|
|
1909
|
+
"aria-activedescendant": P !== "" ? P : pe,
|
|
1901
1910
|
style: {
|
|
1902
1911
|
visibility: X ? "visible" : "hidden",
|
|
1903
1912
|
opacity: X ? "1" : "0",
|
|
@@ -1925,11 +1934,11 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1925
1934
|
iconName: "angleDown",
|
|
1926
1935
|
type: "button",
|
|
1927
1936
|
disabled: t,
|
|
1928
|
-
className: `${
|
|
1937
|
+
className: `${V}__trigger`,
|
|
1929
1938
|
"aria-haspopup": "true",
|
|
1930
|
-
"aria-controls":
|
|
1939
|
+
"aria-controls": U,
|
|
1931
1940
|
"aria-expanded": X,
|
|
1932
|
-
onClick:
|
|
1941
|
+
onClick: ie,
|
|
1933
1942
|
onKeyDown: Oe,
|
|
1934
1943
|
ref: _
|
|
1935
1944
|
}
|
|
@@ -1945,11 +1954,11 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1945
1954
|
iconName: n,
|
|
1946
1955
|
type: "button",
|
|
1947
1956
|
disabled: t,
|
|
1948
|
-
className: `${
|
|
1957
|
+
className: `${V}__trigger ${V}__trigger--icon-only`,
|
|
1949
1958
|
"aria-haspopup": "true",
|
|
1950
|
-
"aria-controls":
|
|
1959
|
+
"aria-controls": U,
|
|
1951
1960
|
"aria-expanded": X,
|
|
1952
|
-
onClick:
|
|
1961
|
+
onClick: ie,
|
|
1953
1962
|
onKeyDown: Oe,
|
|
1954
1963
|
ref: _,
|
|
1955
1964
|
hasTooltip: !1
|
|
@@ -1958,51 +1967,51 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
1958
1967
|
}
|
|
1959
1968
|
const nt = (D) => {
|
|
1960
1969
|
const Z = D.target;
|
|
1961
|
-
Z.classList.toggle(`${
|
|
1970
|
+
Z.classList.toggle(`${V}__toggle--expanded`), Z.setAttribute(
|
|
1962
1971
|
"aria-expanded",
|
|
1963
1972
|
Z.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
1964
|
-
), Z.nextElementSibling.classList.toggle(`${
|
|
1965
|
-
},
|
|
1966
|
-
let
|
|
1967
|
-
const
|
|
1968
|
-
`${
|
|
1969
|
-
|
|
1973
|
+
), Z.nextElementSibling.classList.toggle(`${V}__mobile-menu--expanded`);
|
|
1974
|
+
}, ve = () => /* @__PURE__ */ e.createElement("ul", { className: `${V}__mobile-menu`, role: "menu" }, l.map((D, Z) => Re(D, Z)));
|
|
1975
|
+
let Ee;
|
|
1976
|
+
const fe = s === "icon-end" ? "pds-button pds-button--navbar" : null, He = N([
|
|
1977
|
+
`${V}__toggle`,
|
|
1978
|
+
fe
|
|
1970
1979
|
]);
|
|
1971
|
-
|
|
1980
|
+
x && (Ee = /* @__PURE__ */ e.createElement(
|
|
1972
1981
|
"button",
|
|
1973
1982
|
{
|
|
1974
1983
|
id: S,
|
|
1975
1984
|
type: "button",
|
|
1976
1985
|
disabled: t,
|
|
1977
|
-
className:
|
|
1986
|
+
className: He,
|
|
1978
1987
|
"aria-expanded": !1,
|
|
1979
1988
|
onClick: nt
|
|
1980
1989
|
},
|
|
1981
|
-
s === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${
|
|
1990
|
+
s === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${V}__icon-label` }, /* @__PURE__ */ e.createElement(O, { iconName: n }), " ", i) : i,
|
|
1982
1991
|
/* @__PURE__ */ e.createElement(
|
|
1983
1992
|
O,
|
|
1984
1993
|
{
|
|
1985
1994
|
iconName: "angleDown",
|
|
1986
1995
|
iconSize: "md",
|
|
1987
|
-
className: `${
|
|
1996
|
+
className: `${V}__toggle-icon ${V}__toggle-icon--${s}`
|
|
1988
1997
|
}
|
|
1989
1998
|
)
|
|
1990
1999
|
));
|
|
1991
|
-
const ye =
|
|
2000
|
+
const ye = Ee, xe = X ? `${V}--expanded` : null;
|
|
1992
2001
|
return /* @__PURE__ */ e.createElement(
|
|
1993
2002
|
"span",
|
|
1994
2003
|
L({
|
|
1995
2004
|
className: N([
|
|
1996
|
-
|
|
2005
|
+
V,
|
|
1997
2006
|
A,
|
|
1998
2007
|
T,
|
|
1999
2008
|
xe,
|
|
2000
2009
|
C
|
|
2001
2010
|
]),
|
|
2002
2011
|
"data-testid": h,
|
|
2003
|
-
ref:
|
|
2012
|
+
ref: W
|
|
2004
2013
|
}, y),
|
|
2005
|
-
|
|
2014
|
+
x ? /* @__PURE__ */ e.createElement(e.Fragment, null, ye, /* @__PURE__ */ e.createElement(ve, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, Fe, Je(l))
|
|
2006
2015
|
);
|
|
2007
2016
|
}, ns = (d) => {
|
|
2008
2017
|
var h = d, {
|
|
@@ -2024,7 +2033,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
2024
2033
|
"size",
|
|
2025
2034
|
"className"
|
|
2026
2035
|
]);
|
|
2027
|
-
const u = "pds-segmented-button", f = t ? "pds-is-disabled" : null, E = l !== "md" ? `${u}--${l}` : null, [C, y] =
|
|
2036
|
+
const u = "pds-segmented-button", f = t ? "pds-is-disabled" : null, E = l !== "md" ? `${u}--${l}` : null, [C, y] = G(n), v = (b) => {
|
|
2028
2037
|
y(b.target.value), r && r(b.target.value);
|
|
2029
2038
|
};
|
|
2030
2039
|
if (i.length >= 2 && i.length <= 6)
|
|
@@ -2302,7 +2311,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
2302
2311
|
const u = "pds-card-select-group";
|
|
2303
2312
|
let f = `${u}__legend`;
|
|
2304
2313
|
a === "center" && (f = `${u}__legend ${u}__legend--center`), a === "hidden" && (f = `${u}__legend visually-hidden`);
|
|
2305
|
-
const [E, C] =
|
|
2314
|
+
const [E, C] = G(s), y = (g) => {
|
|
2306
2315
|
C(g.currentTarget.value), i && i(g.currentTarget.value);
|
|
2307
2316
|
}, v = l.length, b = "pds-grid-item", p = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", m = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
2308
2317
|
let _ = "";
|
|
@@ -2802,27 +2811,27 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
2802
2811
|
"className"
|
|
2803
2812
|
]);
|
|
2804
2813
|
var Fe, nt;
|
|
2805
|
-
const _ = st(a), g = "pds-select", $ = s ? J.disabled : null,
|
|
2806
|
-
let
|
|
2807
|
-
C === "error" && (
|
|
2808
|
-
const k = E || l,
|
|
2809
|
-
|
|
2810
|
-
),
|
|
2814
|
+
const _ = st(a), g = "pds-select", $ = s ? J.disabled : null, M = u && !s ? J.required : null, z = C === "error" ? J.error : null, w = C === "success" ? J.success : null;
|
|
2815
|
+
let H = null;
|
|
2816
|
+
C === "error" && (H = "error"), C === "success" && (H = "success");
|
|
2817
|
+
const k = E || l, x = typeof y != "undefined", V = typeof t != "undefined", A = ((ve) => ve.reduce((Ee, fe) => s1(fe) ? [...Ee, ...fe.options] : [...Ee, fe], []))(h), S = (ve) => A.findIndex((Ee) => Ee.value === ve), U = x && S(y) >= 0 ? S(y) : null, F = V ? S(t) : null, W = U || F, [X, Q] = G(!1), [j, Y] = G(null), [P, R] = G(
|
|
2818
|
+
W != null ? W : null
|
|
2819
|
+
), K = P !== null ? (Fe = A[P]) == null ? void 0 : Fe.label : void 0, ae = P !== null ? (nt = A[P]) == null ? void 0 : nt.value : void 0, te = de([]), { context: q, refs: se } = Se({
|
|
2811
2820
|
open: X,
|
|
2812
|
-
onOpenChange:
|
|
2821
|
+
onOpenChange: Q,
|
|
2813
2822
|
whileElementsMounted: Be
|
|
2814
|
-
}),
|
|
2823
|
+
}), ne = Xe(q, {
|
|
2815
2824
|
enabled: !s,
|
|
2816
2825
|
event: "mousedown"
|
|
2817
|
-
}),
|
|
2818
|
-
listRef:
|
|
2819
|
-
activeIndex:
|
|
2820
|
-
selectedIndex:
|
|
2821
|
-
onNavigate:
|
|
2826
|
+
}), me = Ie(q), ue = Te(q, { role: "listbox" }), ge = ct(q, {
|
|
2827
|
+
listRef: te,
|
|
2828
|
+
activeIndex: j,
|
|
2829
|
+
selectedIndex: P,
|
|
2830
|
+
onNavigate: Y,
|
|
2822
2831
|
loop: !0
|
|
2823
|
-
}), { getReferenceProps:
|
|
2824
|
-
[ue,
|
|
2825
|
-
), { isMounted:
|
|
2832
|
+
}), { getReferenceProps: we, getFloatingProps: ee, getItemProps: ie } = Ae(
|
|
2833
|
+
[ue, me, ge, ne]
|
|
2834
|
+
), { isMounted: ze, styles: Oe } = Ye(q, {
|
|
2826
2835
|
duration: {
|
|
2827
2836
|
open: 300,
|
|
2828
2837
|
close: 150
|
|
@@ -2836,48 +2845,48 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
2836
2845
|
close: {
|
|
2837
2846
|
opacity: 0
|
|
2838
2847
|
}
|
|
2839
|
-
}), Ne = (
|
|
2840
|
-
const
|
|
2841
|
-
|
|
2848
|
+
}), Ne = (ve) => {
|
|
2849
|
+
const Ee = A[ve];
|
|
2850
|
+
x || (R(ve), Q(!1)), d && d(Ee);
|
|
2842
2851
|
};
|
|
2843
2852
|
ce(() => {
|
|
2844
|
-
if (
|
|
2845
|
-
const
|
|
2846
|
-
R(
|
|
2853
|
+
if (x) {
|
|
2854
|
+
const ve = S(y);
|
|
2855
|
+
R(ve), Q(!1);
|
|
2847
2856
|
}
|
|
2848
2857
|
}, [y]);
|
|
2849
2858
|
const We = () => {
|
|
2850
|
-
c && c(
|
|
2859
|
+
c && c(ae);
|
|
2851
2860
|
}, Re = () => {
|
|
2852
|
-
o && o(
|
|
2861
|
+
o && o(ae);
|
|
2853
2862
|
}, Qe = () => {
|
|
2854
|
-
|
|
2855
|
-
}, Je = (
|
|
2856
|
-
let
|
|
2857
|
-
return
|
|
2858
|
-
if (s1(
|
|
2859
|
-
const ye =
|
|
2860
|
-
const D =
|
|
2863
|
+
se.reference.current.focus();
|
|
2864
|
+
}, Je = (ve) => {
|
|
2865
|
+
let Ee = 0;
|
|
2866
|
+
return ve.map((fe) => {
|
|
2867
|
+
if (s1(fe)) {
|
|
2868
|
+
const ye = fe.options.map((xe) => {
|
|
2869
|
+
const D = Ee++;
|
|
2861
2870
|
return /* @__PURE__ */ e.createElement(
|
|
2862
2871
|
Bt,
|
|
2863
2872
|
L({
|
|
2864
2873
|
key: D,
|
|
2865
2874
|
ref: (Z) => {
|
|
2866
|
-
|
|
2875
|
+
te.current[D] = Z;
|
|
2867
2876
|
},
|
|
2868
|
-
tabIndex: D ===
|
|
2869
|
-
"aria-selected": D ===
|
|
2877
|
+
tabIndex: D === j ? 0 : -1,
|
|
2878
|
+
"aria-selected": D === P && D === j,
|
|
2870
2879
|
"aria-disabled": xe == null ? void 0 : xe.disabled
|
|
2871
|
-
}, !(xe != null && xe.disabled) &&
|
|
2880
|
+
}, !(xe != null && xe.disabled) && ie({
|
|
2872
2881
|
onClick() {
|
|
2873
2882
|
Ne(D);
|
|
2874
2883
|
},
|
|
2875
2884
|
onKeyDown(Z) {
|
|
2876
|
-
Z.key === "Enter" && (Z.preventDefault(), Ne(D),
|
|
2885
|
+
Z.key === "Enter" && (Z.preventDefault(), Ne(D), se.reference.current.focus()), Z.key === "Escape" && (Z.preventDefault(), se.reference.current.focus());
|
|
2877
2886
|
}
|
|
2878
2887
|
})),
|
|
2879
2888
|
xe.label,
|
|
2880
|
-
|
|
2889
|
+
P === D && /* @__PURE__ */ e.createElement(
|
|
2881
2890
|
O,
|
|
2882
2891
|
{
|
|
2883
2892
|
iconName: "check",
|
|
@@ -2886,29 +2895,29 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
2886
2895
|
)
|
|
2887
2896
|
);
|
|
2888
2897
|
});
|
|
2889
|
-
return /* @__PURE__ */ e.createElement(o2, { key:
|
|
2898
|
+
return /* @__PURE__ */ e.createElement(o2, { key: fe.groupLabel, label: fe.groupLabel }, ye);
|
|
2890
2899
|
}
|
|
2891
|
-
const
|
|
2900
|
+
const He = Ee++;
|
|
2892
2901
|
return /* @__PURE__ */ e.createElement(
|
|
2893
2902
|
Bt,
|
|
2894
2903
|
L({
|
|
2895
|
-
key:
|
|
2904
|
+
key: He,
|
|
2896
2905
|
ref: (ye) => {
|
|
2897
|
-
|
|
2906
|
+
te.current[He] = ye;
|
|
2898
2907
|
},
|
|
2899
|
-
tabIndex:
|
|
2900
|
-
"aria-selected":
|
|
2901
|
-
"aria-disabled":
|
|
2902
|
-
}, !(
|
|
2908
|
+
tabIndex: He === j ? 0 : -1,
|
|
2909
|
+
"aria-selected": He === P && He === j,
|
|
2910
|
+
"aria-disabled": fe == null ? void 0 : fe.disabled
|
|
2911
|
+
}, !(fe != null && fe.disabled) && ie({
|
|
2903
2912
|
onClick() {
|
|
2904
|
-
Ne(
|
|
2913
|
+
Ne(He);
|
|
2905
2914
|
},
|
|
2906
2915
|
onKeyDown(ye) {
|
|
2907
|
-
ye.key === "Enter" && (ye.preventDefault(), Ne(
|
|
2916
|
+
ye.key === "Enter" && (ye.preventDefault(), Ne(He), se.reference.current.focus()), ye.key === "Escape" && (ye.preventDefault(), se.reference.current.focus());
|
|
2908
2917
|
}
|
|
2909
2918
|
})),
|
|
2910
|
-
|
|
2911
|
-
|
|
2919
|
+
fe.label,
|
|
2920
|
+
P === He && /* @__PURE__ */ e.createElement(O, { iconName: "check", className: `${g}__checked-icon` })
|
|
2912
2921
|
);
|
|
2913
2922
|
});
|
|
2914
2923
|
};
|
|
@@ -2919,8 +2928,8 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
2919
2928
|
J.base,
|
|
2920
2929
|
g,
|
|
2921
2930
|
$,
|
|
2922
|
-
H,
|
|
2923
2931
|
M,
|
|
2932
|
+
z,
|
|
2924
2933
|
w,
|
|
2925
2934
|
v != null ? v : ""
|
|
2926
2935
|
]),
|
|
@@ -2942,23 +2951,23 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
2942
2951
|
className: `${g}__input-wrapper`,
|
|
2943
2952
|
id: n,
|
|
2944
2953
|
tabIndex: 0,
|
|
2945
|
-
ref:
|
|
2954
|
+
ref: se.setReference,
|
|
2946
2955
|
"aria-labelledby": `${n}-label`,
|
|
2947
2956
|
"aria-autocomplete": "none"
|
|
2948
|
-
},
|
|
2957
|
+
}, we({
|
|
2949
2958
|
onClick: Qe,
|
|
2950
2959
|
onBlur: We,
|
|
2951
2960
|
onFocus: Re
|
|
2952
2961
|
})),
|
|
2953
|
-
|
|
2954
|
-
/* @__PURE__ */ e.createElement("span", { className: `${g}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${g}__option-text` },
|
|
2962
|
+
H && /* @__PURE__ */ e.createElement(pt, { variant: H }),
|
|
2963
|
+
/* @__PURE__ */ e.createElement("span", { className: `${g}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${g}__option-text` }, K != null ? K : i.selectOptionText), /* @__PURE__ */ e.createElement(O, { iconName: "angleDown", className: `${g}__trigger-icon` }))
|
|
2955
2964
|
),
|
|
2956
|
-
|
|
2965
|
+
ze && /* @__PURE__ */ e.createElement(
|
|
2957
2966
|
"div",
|
|
2958
2967
|
L({
|
|
2959
|
-
ref:
|
|
2968
|
+
ref: se.setFloating,
|
|
2960
2969
|
className: `${g}__dropdown`
|
|
2961
|
-
},
|
|
2970
|
+
}, ee({
|
|
2962
2971
|
style: {
|
|
2963
2972
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
2964
2973
|
}
|
|
@@ -3005,13 +3014,13 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
3005
3014
|
"statusBadgeType",
|
|
3006
3015
|
"className"
|
|
3007
3016
|
]);
|
|
3008
|
-
const C = "pds-pricing-card", y = `${C}-container`, v = n ? `${y}--with-list` : null, b = d ? `${C}--${d}` : null, p = (T) => T.toLowerCase().replace(/\s/g, "-"), m = l && l.length > 1, [_, g] =
|
|
3017
|
+
const C = "pds-pricing-card", y = `${C}-container`, v = n ? `${y}--with-list` : null, b = d ? `${C}--${d}` : null, p = (T) => T.toLowerCase().replace(/\s/g, "-"), m = l && l.length > 1, [_, g] = G(
|
|
3009
3018
|
p(l[0].label)
|
|
3010
|
-
), [$,
|
|
3019
|
+
), [$, M] = G(
|
|
3011
3020
|
t.label
|
|
3012
3021
|
);
|
|
3013
|
-
let
|
|
3014
|
-
m || (
|
|
3022
|
+
let z = null, w = null;
|
|
3023
|
+
m || (z = /* @__PURE__ */ e.createElement("div", { className: `${C}__pricing-data` }, l[0].pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${C}__price-prefix` }, l[0].pricePrefix), /* @__PURE__ */ e.createElement("div", { className: `${C}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${C}__price` }, l[0].price), l[0].priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${C}__details` }, l[0].priceDetails)), /* @__PURE__ */ e.createElement("div", { className: `${C}__savings-line` }, l[0].savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
3015
3024
|
dt,
|
|
3016
3025
|
{
|
|
3017
3026
|
className: `${C}__savings-badge`,
|
|
@@ -3027,7 +3036,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
3027
3036
|
listItems: l[0].listItems,
|
|
3028
3037
|
renderTypeLabels: !1
|
|
3029
3038
|
}
|
|
3030
|
-
)), m && (
|
|
3039
|
+
)), m && (z = l.map((T) => {
|
|
3031
3040
|
const S = _ === p(T.label) ? null : `${C}__pricing-data--hide`;
|
|
3032
3041
|
return /* @__PURE__ */ e.createElement(
|
|
3033
3042
|
"div",
|
|
@@ -3064,7 +3073,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
3064
3073
|
}
|
|
3065
3074
|
);
|
|
3066
3075
|
}));
|
|
3067
|
-
const
|
|
3076
|
+
const H = (T) => {
|
|
3068
3077
|
const A = l.find(
|
|
3069
3078
|
(S) => p(S.label) === T
|
|
3070
3079
|
);
|
|
@@ -3084,12 +3093,12 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
3084
3093
|
})),
|
|
3085
3094
|
defaultValue: p(l[0].label),
|
|
3086
3095
|
onOptionSelect: (T) => {
|
|
3087
|
-
g(T.value), H(
|
|
3096
|
+
g(T.value), M(H(T.value)), a && a(T.value);
|
|
3088
3097
|
}
|
|
3089
3098
|
}
|
|
3090
3099
|
));
|
|
3091
|
-
let
|
|
3092
|
-
t && (t.type === "button" && (
|
|
3100
|
+
let x = null;
|
|
3101
|
+
t && (t.type === "button" && (x = /* @__PURE__ */ e.createElement(
|
|
3093
3102
|
mt,
|
|
3094
3103
|
{
|
|
3095
3104
|
variant: t.variant,
|
|
@@ -3097,22 +3106,22 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
3097
3106
|
onClick: t.buttonAction,
|
|
3098
3107
|
disabled: t.disabled
|
|
3099
3108
|
}
|
|
3100
|
-
)), t.type === "link" && (
|
|
3109
|
+
)), t.type === "link" && (x = /* @__PURE__ */ e.createElement(
|
|
3101
3110
|
Et,
|
|
3102
3111
|
{
|
|
3103
3112
|
variant: t.variant,
|
|
3104
3113
|
linkContent: /* @__PURE__ */ e.createElement("a", { href: t.linkUrl, target: t.linkTarget }, t.label)
|
|
3105
3114
|
}
|
|
3106
3115
|
)));
|
|
3107
|
-
let
|
|
3108
|
-
return s && (s.type === "button" && (
|
|
3116
|
+
let V = null;
|
|
3117
|
+
return s && (s.type === "button" && (V = /* @__PURE__ */ e.createElement(
|
|
3109
3118
|
mt,
|
|
3110
3119
|
{
|
|
3111
3120
|
variant: "secondary",
|
|
3112
3121
|
label: s.label,
|
|
3113
3122
|
onClick: s.buttonAction
|
|
3114
3123
|
}
|
|
3115
|
-
)), s.type === "link" && (
|
|
3124
|
+
)), s.type === "link" && (V = /* @__PURE__ */ e.createElement(
|
|
3116
3125
|
Et,
|
|
3117
3126
|
{
|
|
3118
3127
|
variant: "secondary",
|
|
@@ -3137,7 +3146,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
3137
3146
|
label: c[d],
|
|
3138
3147
|
color: d === "mostPopular" ? "reverse" : "neutral"
|
|
3139
3148
|
}
|
|
3140
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${C}__main-content` }, i && /* @__PURE__ */ e.createElement("div", { className: `${C}__plan pds-overline-text` }, i),
|
|
3149
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${C}__main-content` }, i && /* @__PURE__ */ e.createElement("div", { className: `${C}__plan pds-overline-text` }, i), z, r && /* @__PURE__ */ e.createElement("div", { className: `${C}__description` }, r), k), /* @__PURE__ */ e.createElement("div", { className: `${C}__actions` }, t && x, t && s && V)),
|
|
3141
3150
|
n && w
|
|
3142
3151
|
);
|
|
3143
3152
|
}, ms = (d) => {
|
|
@@ -3178,7 +3187,7 @@ const kt = 300, J1 = 400, Pe = (u) => {
|
|
|
3178
3187
|
level: s,
|
|
3179
3188
|
text: r
|
|
3180
3189
|
}
|
|
3181
|
-
), C), /* @__PURE__ */ e.createElement("div", { className: `${u}__plan` }, i))), v =
|
|
3190
|
+
), C), /* @__PURE__ */ e.createElement("div", { className: `${u}__plan` }, i))), v = Ce(a) ? Ve(a, he(L({}, a.props), {
|
|
3182
3191
|
className: `${u}__link`,
|
|
3183
3192
|
children: y,
|
|
3184
3193
|
"aria-label": `${t} ${r} dashboard`
|
|
@@ -3306,8 +3315,8 @@ var C1 = { exports: {} };
|
|
|
3306
3315
|
return _[$];
|
|
3307
3316
|
g = /** @type {Record<string, any>} */
|
|
3308
3317
|
{}, _[$] = g;
|
|
3309
|
-
for (var
|
|
3310
|
-
m.hasOwnProperty(
|
|
3318
|
+
for (var M in m)
|
|
3319
|
+
m.hasOwnProperty(M) && (g[M] = p(m[M], _));
|
|
3311
3320
|
return (
|
|
3312
3321
|
/** @type {any} */
|
|
3313
3322
|
g
|
|
@@ -3315,8 +3324,8 @@ var C1 = { exports: {} };
|
|
|
3315
3324
|
case "Array":
|
|
3316
3325
|
return $ = c.util.objId(m), _[$] ? _[$] : (g = [], _[$] = g, /** @type {Array} */
|
|
3317
3326
|
/** @type {any} */
|
|
3318
|
-
m.forEach(function(
|
|
3319
|
-
g[w] = p(
|
|
3327
|
+
m.forEach(function(z, w) {
|
|
3328
|
+
g[w] = p(z, _);
|
|
3320
3329
|
}), /** @type {any} */
|
|
3321
3330
|
g);
|
|
3322
3331
|
default:
|
|
@@ -3536,28 +3545,28 @@ var C1 = { exports: {} };
|
|
|
3536
3545
|
insertBefore: function(p, m, _, g) {
|
|
3537
3546
|
g = g || /** @type {any} */
|
|
3538
3547
|
c.languages;
|
|
3539
|
-
var $ = g[p],
|
|
3540
|
-
for (var
|
|
3541
|
-
if ($.hasOwnProperty(
|
|
3542
|
-
if (
|
|
3548
|
+
var $ = g[p], M = {};
|
|
3549
|
+
for (var z in $)
|
|
3550
|
+
if ($.hasOwnProperty(z)) {
|
|
3551
|
+
if (z == m)
|
|
3543
3552
|
for (var w in _)
|
|
3544
|
-
_.hasOwnProperty(w) && (
|
|
3545
|
-
_.hasOwnProperty(
|
|
3553
|
+
_.hasOwnProperty(w) && (M[w] = _[w]);
|
|
3554
|
+
_.hasOwnProperty(z) || (M[z] = $[z]);
|
|
3546
3555
|
}
|
|
3547
|
-
var
|
|
3548
|
-
return g[p] =
|
|
3549
|
-
|
|
3550
|
-
}),
|
|
3556
|
+
var H = g[p];
|
|
3557
|
+
return g[p] = M, c.languages.DFS(c.languages, function(k, x) {
|
|
3558
|
+
x === H && k != p && (this[k] = M);
|
|
3559
|
+
}), M;
|
|
3551
3560
|
},
|
|
3552
3561
|
// Traverse a language definition with Depth First Search
|
|
3553
3562
|
DFS: function p(m, _, g, $) {
|
|
3554
3563
|
$ = $ || {};
|
|
3555
|
-
var
|
|
3556
|
-
for (var
|
|
3557
|
-
if (m.hasOwnProperty(
|
|
3558
|
-
_.call(m,
|
|
3559
|
-
var w = m[
|
|
3560
|
-
|
|
3564
|
+
var M = c.util.objId;
|
|
3565
|
+
for (var z in m)
|
|
3566
|
+
if (m.hasOwnProperty(z)) {
|
|
3567
|
+
_.call(m, z, m[z], g || z);
|
|
3568
|
+
var w = m[z], H = c.util.type(w);
|
|
3569
|
+
H === "Object" && !$[M(w)] ? ($[M(w)] = !0, p(w, _, null, $)) : H === "Array" && !$[M(w)] && ($[M(w)] = !0, p(w, _, z, $));
|
|
3561
3570
|
}
|
|
3562
3571
|
}
|
|
3563
3572
|
},
|
|
@@ -3599,8 +3608,8 @@ var C1 = { exports: {} };
|
|
|
3599
3608
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
3600
3609
|
};
|
|
3601
3610
|
c.hooks.run("before-highlightall", g), g.elements = Array.prototype.slice.apply(g.container.querySelectorAll(g.selector)), c.hooks.run("before-all-elements-highlight", g);
|
|
3602
|
-
for (var $ = 0,
|
|
3603
|
-
c.highlightElement(
|
|
3611
|
+
for (var $ = 0, M; M = g.elements[$++]; )
|
|
3612
|
+
c.highlightElement(M, m === !0, g.callback);
|
|
3604
3613
|
},
|
|
3605
3614
|
/**
|
|
3606
3615
|
* Highlights the code inside a single element.
|
|
@@ -3633,36 +3642,36 @@ var C1 = { exports: {} };
|
|
|
3633
3642
|
highlightElement: function(p, m, _) {
|
|
3634
3643
|
var g = c.util.getLanguage(p), $ = c.languages[g];
|
|
3635
3644
|
c.util.setLanguage(p, g);
|
|
3636
|
-
var
|
|
3637
|
-
|
|
3638
|
-
var
|
|
3645
|
+
var M = p.parentElement;
|
|
3646
|
+
M && M.nodeName.toLowerCase() === "pre" && c.util.setLanguage(M, g);
|
|
3647
|
+
var z = p.textContent, w = {
|
|
3639
3648
|
element: p,
|
|
3640
3649
|
language: g,
|
|
3641
3650
|
grammar: $,
|
|
3642
|
-
code:
|
|
3651
|
+
code: z
|
|
3643
3652
|
};
|
|
3644
|
-
function
|
|
3645
|
-
w.highlightedCode =
|
|
3653
|
+
function H(x) {
|
|
3654
|
+
w.highlightedCode = x, c.hooks.run("before-insert", w), w.element.innerHTML = w.highlightedCode, c.hooks.run("after-highlight", w), c.hooks.run("complete", w), _ && _.call(w.element);
|
|
3646
3655
|
}
|
|
3647
|
-
if (c.hooks.run("before-sanity-check", w),
|
|
3656
|
+
if (c.hooks.run("before-sanity-check", w), M = w.element.parentElement, M && M.nodeName.toLowerCase() === "pre" && !M.hasAttribute("tabindex") && M.setAttribute("tabindex", "0"), !w.code) {
|
|
3648
3657
|
c.hooks.run("complete", w), _ && _.call(w.element);
|
|
3649
3658
|
return;
|
|
3650
3659
|
}
|
|
3651
3660
|
if (c.hooks.run("before-highlight", w), !w.grammar) {
|
|
3652
|
-
|
|
3661
|
+
H(c.util.encode(w.code));
|
|
3653
3662
|
return;
|
|
3654
3663
|
}
|
|
3655
3664
|
if (m && a.Worker) {
|
|
3656
3665
|
var k = new Worker(c.filename);
|
|
3657
|
-
k.onmessage = function(
|
|
3658
|
-
|
|
3666
|
+
k.onmessage = function(x) {
|
|
3667
|
+
H(x.data);
|
|
3659
3668
|
}, k.postMessage(JSON.stringify({
|
|
3660
3669
|
language: w.language,
|
|
3661
3670
|
code: w.code,
|
|
3662
3671
|
immediateClose: !0
|
|
3663
3672
|
}));
|
|
3664
3673
|
} else
|
|
3665
|
-
|
|
3674
|
+
H(c.highlight(w.code, w.grammar, w.language));
|
|
3666
3675
|
},
|
|
3667
3676
|
/**
|
|
3668
3677
|
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
@@ -3778,8 +3787,8 @@ var C1 = { exports: {} };
|
|
|
3778
3787
|
return m;
|
|
3779
3788
|
if (Array.isArray(m)) {
|
|
3780
3789
|
var g = "";
|
|
3781
|
-
return m.forEach(function(
|
|
3782
|
-
g += p(
|
|
3790
|
+
return m.forEach(function(H) {
|
|
3791
|
+
g += p(H, _);
|
|
3783
3792
|
}), g;
|
|
3784
3793
|
}
|
|
3785
3794
|
var $ = {
|
|
@@ -3789,65 +3798,65 @@ var C1 = { exports: {} };
|
|
|
3789
3798
|
classes: ["token", m.type],
|
|
3790
3799
|
attributes: {},
|
|
3791
3800
|
language: _
|
|
3792
|
-
},
|
|
3793
|
-
|
|
3794
|
-
var
|
|
3801
|
+
}, M = m.alias;
|
|
3802
|
+
M && (Array.isArray(M) ? Array.prototype.push.apply($.classes, M) : $.classes.push(M)), c.hooks.run("wrap", $);
|
|
3803
|
+
var z = "";
|
|
3795
3804
|
for (var w in $.attributes)
|
|
3796
|
-
|
|
3797
|
-
return "<" + $.tag + ' class="' + $.classes.join(" ") + '"' +
|
|
3805
|
+
z += " " + w + '="' + ($.attributes[w] || "").replace(/"/g, """) + '"';
|
|
3806
|
+
return "<" + $.tag + ' class="' + $.classes.join(" ") + '"' + z + ">" + $.content + "</" + $.tag + ">";
|
|
3798
3807
|
};
|
|
3799
3808
|
function d(p, m, _, g) {
|
|
3800
3809
|
p.lastIndex = m;
|
|
3801
3810
|
var $ = p.exec(_);
|
|
3802
3811
|
if ($ && g && $[1]) {
|
|
3803
|
-
var
|
|
3804
|
-
$.index +=
|
|
3812
|
+
var M = $[1].length;
|
|
3813
|
+
$.index += M, $[0] = $[0].slice(M);
|
|
3805
3814
|
}
|
|
3806
3815
|
return $;
|
|
3807
3816
|
}
|
|
3808
|
-
function h(p, m, _, g, $,
|
|
3809
|
-
for (var
|
|
3810
|
-
if (!(!_.hasOwnProperty(
|
|
3811
|
-
var w = _[
|
|
3817
|
+
function h(p, m, _, g, $, M) {
|
|
3818
|
+
for (var z in _)
|
|
3819
|
+
if (!(!_.hasOwnProperty(z) || !_[z])) {
|
|
3820
|
+
var w = _[z];
|
|
3812
3821
|
w = Array.isArray(w) ? w : [w];
|
|
3813
|
-
for (var
|
|
3814
|
-
if (
|
|
3822
|
+
for (var H = 0; H < w.length; ++H) {
|
|
3823
|
+
if (M && M.cause == z + "," + H)
|
|
3815
3824
|
return;
|
|
3816
|
-
var k = w[
|
|
3825
|
+
var k = w[H], x = k.inside, V = !!k.lookbehind, T = !!k.greedy, A = k.alias;
|
|
3817
3826
|
if (T && !k.pattern.global) {
|
|
3818
3827
|
var S = k.pattern.toString().match(/[imsuy]*$/)[0];
|
|
3819
3828
|
k.pattern = RegExp(k.pattern.source, S + "g");
|
|
3820
3829
|
}
|
|
3821
|
-
for (var
|
|
3830
|
+
for (var U = k.pattern || k, F = g.next, W = $; F !== m.tail && !(M && W >= M.reach); W += F.value.length, F = F.next) {
|
|
3822
3831
|
var X = F.value;
|
|
3823
3832
|
if (m.length > p.length)
|
|
3824
3833
|
return;
|
|
3825
3834
|
if (!(X instanceof o)) {
|
|
3826
|
-
var
|
|
3835
|
+
var Q = 1, j;
|
|
3827
3836
|
if (T) {
|
|
3828
|
-
if (
|
|
3837
|
+
if (j = d(U, W, p, V), !j || j.index >= p.length)
|
|
3829
3838
|
break;
|
|
3830
|
-
var
|
|
3831
|
-
for (
|
|
3832
|
-
F = F.next,
|
|
3833
|
-
if (
|
|
3839
|
+
var K = j.index, Y = j.index + j[0].length, P = W;
|
|
3840
|
+
for (P += F.value.length; K >= P; )
|
|
3841
|
+
F = F.next, P += F.value.length;
|
|
3842
|
+
if (P -= F.value.length, W = P, F.value instanceof o)
|
|
3834
3843
|
continue;
|
|
3835
|
-
for (var R = F; R !== m.tail && (
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
} else if (
|
|
3844
|
+
for (var R = F; R !== m.tail && (P < Y || typeof R.value == "string"); R = R.next)
|
|
3845
|
+
Q++, P += R.value.length;
|
|
3846
|
+
Q--, X = p.slice(W, P), j.index -= W;
|
|
3847
|
+
} else if (j = d(U, 0, X, V), !j)
|
|
3839
3848
|
continue;
|
|
3840
|
-
var
|
|
3841
|
-
|
|
3842
|
-
var
|
|
3843
|
-
|
|
3844
|
-
var
|
|
3845
|
-
if (F = f(m,
|
|
3849
|
+
var K = j.index, ae = j[0], te = X.slice(0, K), q = X.slice(K + ae.length), se = W + X.length;
|
|
3850
|
+
M && se > M.reach && (M.reach = se);
|
|
3851
|
+
var ne = F.prev;
|
|
3852
|
+
te && (ne = f(m, ne, te), W += te.length), E(m, ne, Q);
|
|
3853
|
+
var me = new o(z, x ? c.tokenize(ae, x) : ae, A, ae);
|
|
3854
|
+
if (F = f(m, ne, me), q && f(m, F, q), Q > 1) {
|
|
3846
3855
|
var ue = {
|
|
3847
|
-
cause:
|
|
3848
|
-
reach:
|
|
3856
|
+
cause: z + "," + H,
|
|
3857
|
+
reach: se
|
|
3849
3858
|
};
|
|
3850
|
-
h(p, m, _, F.prev,
|
|
3859
|
+
h(p, m, _, F.prev, W, ue), M && ue.reach > M.reach && (M.reach = ue.reach);
|
|
3851
3860
|
}
|
|
3852
3861
|
}
|
|
3853
3862
|
}
|
|
@@ -4528,6 +4537,10 @@ const us = (u) => {
|
|
|
4528
4537
|
)
|
|
4529
4538
|
))
|
|
4530
4539
|
);
|
|
4540
|
+
}, gs = (a) => {
|
|
4541
|
+
var r = a, { steps: t, className: s } = r, n = I(r, ["steps", "className"]);
|
|
4542
|
+
const i = "pds-flow-steps", l = t.map((c, o) => /* @__PURE__ */ e.createElement("li", { key: o, className: `${i}__step` }, /* @__PURE__ */ e.createElement("div", { className: `${i}__header` }, /* @__PURE__ */ e.createElement("span", { className: `${i}__number` }, /* @__PURE__ */ e.createElement("span", null, o + 1)), c.header), c.content && /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, c.content)));
|
|
4543
|
+
return /* @__PURE__ */ e.createElement("ol", L({ className: N([i, s != null ? s : ""]) }, n), l);
|
|
4531
4544
|
}, g2 = (r) => {
|
|
4532
4545
|
var i = r, {
|
|
4533
4546
|
headingLevel: t = "h3",
|
|
@@ -4546,7 +4559,7 @@ const us = (u) => {
|
|
|
4546
4559
|
}, a),
|
|
4547
4560
|
s
|
|
4548
4561
|
);
|
|
4549
|
-
},
|
|
4562
|
+
}, _s = (i) => {
|
|
4550
4563
|
var l = i, {
|
|
4551
4564
|
headingLevel: t,
|
|
4552
4565
|
headingText: s,
|
|
@@ -4567,7 +4580,7 @@ const us = (u) => {
|
|
|
4567
4580
|
headingText: s
|
|
4568
4581
|
}
|
|
4569
4582
|
), /* @__PURE__ */ e.createElement("ul", { className: `${c}__list`, role: "list" }, n.map((o, d) => /* @__PURE__ */ e.createElement("li", { key: d, className: `${c}__item` }, o))));
|
|
4570
|
-
},
|
|
4583
|
+
}, vs = (i) => {
|
|
4571
4584
|
var l = i, {
|
|
4572
4585
|
containerWidth: t = "standard",
|
|
4573
4586
|
children: s,
|
|
@@ -4589,8 +4602,8 @@ const us = (u) => {
|
|
|
4589
4602
|
const c = "pds-site-footer", o = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", d = (/* @__PURE__ */ new Date()).getFullYear(), h = n.includes("privacy"), u = n.includes("dataSubjectRequest"), f = n.includes("cookiePolicy"), E = n.includes("termsOfUse"), C = n.includes("acceptableUse"), y = n.includes("accessibilityStatement");
|
|
4590
4603
|
return /* @__PURE__ */ e.createElement("footer", L({ className: N([c, a != null ? a : ""]) }, r), /* @__PURE__ */ e.createElement("div", { className: o }, s && /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, s), /* @__PURE__ */ e.createElement("div", { className: `${c}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${c}__copyright` }, "© ", d, " Pantheon Systems, Inc."), h && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), u && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), f && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/pantheon-cookies?_gl=1*12uc311*_gcl_au*NjU2MzA3MDUzLjE2ODk3ODU1NTI." }, "Cookie Policy"), E && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/terms-of-service" }, "Terms of Use"), C && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/acceptable-use-policy" }, "Acceptable Use Policy"), y && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement"))));
|
|
4591
4604
|
}, _2 = qe(
|
|
4592
|
-
(
|
|
4593
|
-
var
|
|
4605
|
+
(M, $) => {
|
|
4606
|
+
var z = M, {
|
|
4594
4607
|
checked: t,
|
|
4595
4608
|
defaultChecked: s,
|
|
4596
4609
|
disabled: n,
|
|
@@ -4612,7 +4625,7 @@ const us = (u) => {
|
|
|
4612
4625
|
validationStatus: p,
|
|
4613
4626
|
value: m,
|
|
4614
4627
|
className: _
|
|
4615
|
-
} =
|
|
4628
|
+
} = z, g = I(z, [
|
|
4616
4629
|
"checked",
|
|
4617
4630
|
"defaultChecked",
|
|
4618
4631
|
"disabled",
|
|
@@ -4635,78 +4648,78 @@ const us = (u) => {
|
|
|
4635
4648
|
"value",
|
|
4636
4649
|
"className"
|
|
4637
4650
|
]);
|
|
4638
|
-
const w = l ? { width: `${l / 16}rem` } : null,
|
|
4639
|
-
|
|
4640
|
-
),
|
|
4641
|
-
F ||
|
|
4642
|
-
},
|
|
4651
|
+
const w = l ? { width: `${l / 16}rem` } : null, H = "pds-checkbox", k = n ? J.disabled : null, x = p === "error" ? J.error : null, V = h > 0 ? `${H}--indent-${h}` : null, T = C && !n ? J.required : null, A = v === "S" ? `${H}--sm` : null, S = p === "success" ? J.success : null, U = b || o, F = typeof t != "undefined", W = typeof s != "undefined", [X, Q] = G(
|
|
4652
|
+
W ? s : !1
|
|
4653
|
+
), j = t || X, Y = (te) => {
|
|
4654
|
+
F || Q(te.target.checked), f && f(te);
|
|
4655
|
+
}, P = `${H}__box`, R = r ? null : j ? `${P}--checked` : null, K = r ? `${P}--indeterminate` : null, ae = T1(() => {
|
|
4643
4656
|
if (r)
|
|
4644
4657
|
return /* @__PURE__ */ e.createElement(
|
|
4645
4658
|
O,
|
|
4646
4659
|
{
|
|
4647
4660
|
iconName: "minus",
|
|
4648
4661
|
iconSize: "sm",
|
|
4649
|
-
className: `${
|
|
4662
|
+
className: `${H}__icon ${H}__icon--indeterminate`
|
|
4650
4663
|
}
|
|
4651
4664
|
);
|
|
4652
|
-
if (
|
|
4665
|
+
if (j)
|
|
4653
4666
|
return /* @__PURE__ */ e.createElement(
|
|
4654
4667
|
O,
|
|
4655
4668
|
{
|
|
4656
4669
|
iconName: "check",
|
|
4657
4670
|
iconSize: "sm",
|
|
4658
|
-
className: `${
|
|
4671
|
+
className: `${H}__icon ${H}__icon--checked`
|
|
4659
4672
|
}
|
|
4660
4673
|
);
|
|
4661
|
-
}, [r,
|
|
4674
|
+
}, [r, j]);
|
|
4662
4675
|
return /* @__PURE__ */ e.createElement(
|
|
4663
4676
|
"div",
|
|
4664
4677
|
L({
|
|
4665
4678
|
className: [
|
|
4666
|
-
|
|
4679
|
+
H,
|
|
4667
4680
|
k,
|
|
4668
4681
|
T,
|
|
4669
|
-
|
|
4682
|
+
x,
|
|
4670
4683
|
S,
|
|
4671
4684
|
A,
|
|
4672
|
-
|
|
4685
|
+
V,
|
|
4673
4686
|
_ != null ? _ : ""
|
|
4674
4687
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
4675
4688
|
style: l ? w : null
|
|
4676
4689
|
}, g),
|
|
4677
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
4690
|
+
/* @__PURE__ */ e.createElement("div", { className: `${H}__input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
4678
4691
|
"input",
|
|
4679
|
-
L(
|
|
4692
|
+
L(he(L({
|
|
4680
4693
|
ref: $,
|
|
4681
4694
|
id: a,
|
|
4682
4695
|
name: d,
|
|
4683
4696
|
type: "checkbox",
|
|
4684
4697
|
checked: F ? t : X,
|
|
4685
|
-
"aria-checked": r ? "mixed" :
|
|
4698
|
+
"aria-checked": r ? "mixed" : j ? "true" : "false"
|
|
4686
4699
|
}, m ? { value: m } : {}), {
|
|
4687
4700
|
disabled: n,
|
|
4688
4701
|
required: C,
|
|
4689
4702
|
onBlur: u,
|
|
4690
|
-
onChange:
|
|
4703
|
+
onChange: Y,
|
|
4691
4704
|
onFocus: E,
|
|
4692
4705
|
"aria-invalid": p === "error" ? !0 : null,
|
|
4693
|
-
"aria-describedby":
|
|
4706
|
+
"aria-describedby": U ? `${a}__message` : null
|
|
4694
4707
|
}), i)
|
|
4695
|
-
), /* @__PURE__ */ e.createElement("label", { htmlFor: a, className: `${
|
|
4708
|
+
), /* @__PURE__ */ e.createElement("label", { htmlFor: a, className: `${H}__label` }, /* @__PURE__ */ e.createElement(
|
|
4696
4709
|
"div",
|
|
4697
4710
|
{
|
|
4698
4711
|
className: N([
|
|
4699
|
-
|
|
4712
|
+
P,
|
|
4700
4713
|
R,
|
|
4701
|
-
|
|
4714
|
+
K
|
|
4702
4715
|
])
|
|
4703
4716
|
},
|
|
4704
|
-
/* @__PURE__ */ e.createElement(
|
|
4717
|
+
/* @__PURE__ */ e.createElement(ae, null)
|
|
4705
4718
|
), /* @__PURE__ */ e.createElement(
|
|
4706
4719
|
"div",
|
|
4707
4720
|
{
|
|
4708
4721
|
className: N([
|
|
4709
|
-
`${
|
|
4722
|
+
`${H}__label-text`,
|
|
4710
4723
|
y ? "" : "visually-hidden"
|
|
4711
4724
|
])
|
|
4712
4725
|
},
|
|
@@ -4714,11 +4727,11 @@ const us = (u) => {
|
|
|
4714
4727
|
" ",
|
|
4715
4728
|
C && !n && /* @__PURE__ */ e.createElement(gt, null)
|
|
4716
4729
|
))),
|
|
4717
|
-
|
|
4730
|
+
U && /* @__PURE__ */ e.createElement(
|
|
4718
4731
|
De,
|
|
4719
4732
|
{
|
|
4720
4733
|
id: a,
|
|
4721
|
-
message:
|
|
4734
|
+
message: U,
|
|
4722
4735
|
hasValidationMessage: !!b,
|
|
4723
4736
|
validationMessageHasDecorators: !0,
|
|
4724
4737
|
validationStatus: p
|
|
@@ -4726,7 +4739,7 @@ const us = (u) => {
|
|
|
4726
4739
|
)
|
|
4727
4740
|
);
|
|
4728
4741
|
}
|
|
4729
|
-
),
|
|
4742
|
+
), Es = (E) => {
|
|
4730
4743
|
var C = E, {
|
|
4731
4744
|
children: t,
|
|
4732
4745
|
disabled: s = !1,
|
|
@@ -4790,7 +4803,7 @@ const us = (u) => {
|
|
|
4790
4803
|
}
|
|
4791
4804
|
)
|
|
4792
4805
|
);
|
|
4793
|
-
},
|
|
4806
|
+
}, bs = (y) => {
|
|
4794
4807
|
var v = y, {
|
|
4795
4808
|
disabled: t = !1,
|
|
4796
4809
|
fieldsetProps: s,
|
|
@@ -4822,24 +4835,24 @@ const us = (u) => {
|
|
|
4822
4835
|
"validationStatus",
|
|
4823
4836
|
"className"
|
|
4824
4837
|
]);
|
|
4825
|
-
const b = a ? { width: `${a / 16}rem` } : null, p = "pds-checkbox-group", m = t ? J.disabled : null, _ = d && !t ? J.required : null, g = f === "error" ? J.error : null, $ = f === "success" ? J.success : null,
|
|
4826
|
-
o.map((
|
|
4827
|
-
|
|
4838
|
+
const b = a ? { width: `${a / 16}rem` } : null, p = "pds-checkbox-group", m = t ? J.disabled : null, _ = d && !t ? J.required : null, g = f === "error" ? J.error : null, $ = f === "success" ? J.success : null, M = u || i;
|
|
4839
|
+
o.map((V) => {
|
|
4840
|
+
V.id || (V.id = V.value);
|
|
4828
4841
|
});
|
|
4829
|
-
const
|
|
4830
|
-
o.map((
|
|
4831
|
-
|
|
4842
|
+
const z = [];
|
|
4843
|
+
o.map((V) => {
|
|
4844
|
+
V.checked === !0 && z.push(V.value);
|
|
4832
4845
|
});
|
|
4833
|
-
const [w,
|
|
4834
|
-
const { value: T } =
|
|
4835
|
-
|
|
4846
|
+
const [w, H] = G(z), k = (V) => {
|
|
4847
|
+
const { value: T } = V.target, A = w.includes(T) ? w.filter((S) => S !== T) : [...w, T];
|
|
4848
|
+
H(A), c && c(A);
|
|
4836
4849
|
};
|
|
4837
|
-
o.map((
|
|
4838
|
-
w.includes(
|
|
4850
|
+
o.map((V) => {
|
|
4851
|
+
w.includes(V.value) ? V.checked = !0 : V.checked = !1;
|
|
4839
4852
|
});
|
|
4840
|
-
const
|
|
4853
|
+
const x = () => {
|
|
4841
4854
|
l && setTimeout(() => {
|
|
4842
|
-
o.some((
|
|
4855
|
+
o.some((V) => V.id === document.activeElement.id) || l(w);
|
|
4843
4856
|
}, 1500);
|
|
4844
4857
|
};
|
|
4845
4858
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -4865,26 +4878,26 @@ const us = (u) => {
|
|
|
4865
4878
|
required: d,
|
|
4866
4879
|
showLabel: h
|
|
4867
4880
|
}
|
|
4868
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${p}__options` }, o.map((
|
|
4881
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${p}__options` }, o.map((V) => /* @__PURE__ */ e.createElement(
|
|
4869
4882
|
_2,
|
|
4870
4883
|
{
|
|
4871
|
-
key:
|
|
4872
|
-
checked:
|
|
4873
|
-
id:
|
|
4874
|
-
label:
|
|
4875
|
-
name:
|
|
4876
|
-
value:
|
|
4877
|
-
disabled:
|
|
4884
|
+
key: V.id,
|
|
4885
|
+
checked: V.checked,
|
|
4886
|
+
id: V.id,
|
|
4887
|
+
label: V.label,
|
|
4888
|
+
name: V.name,
|
|
4889
|
+
value: V.value,
|
|
4890
|
+
disabled: V.disabled || t,
|
|
4878
4891
|
className: `${p}__checkbox`,
|
|
4879
4892
|
onChange: k,
|
|
4880
|
-
onBlur:
|
|
4893
|
+
onBlur: x
|
|
4881
4894
|
}
|
|
4882
4895
|
)))),
|
|
4883
|
-
|
|
4896
|
+
M && /* @__PURE__ */ e.createElement(
|
|
4884
4897
|
De,
|
|
4885
4898
|
{
|
|
4886
4899
|
id: n,
|
|
4887
|
-
message:
|
|
4900
|
+
message: M,
|
|
4888
4901
|
hasValidationMessage: !!u,
|
|
4889
4902
|
validationMessageHasDecorators: !0,
|
|
4890
4903
|
validationStatus: f
|
|
@@ -4892,8 +4905,8 @@ const us = (u) => {
|
|
|
4892
4905
|
)
|
|
4893
4906
|
);
|
|
4894
4907
|
}, v2 = qe(
|
|
4895
|
-
(
|
|
4896
|
-
var T =
|
|
4908
|
+
(V, x) => {
|
|
4909
|
+
var T = V, {
|
|
4897
4910
|
defaultValue: t,
|
|
4898
4911
|
disabled: s = !1,
|
|
4899
4912
|
hasClearButton: n = !0,
|
|
@@ -4922,10 +4935,10 @@ const us = (u) => {
|
|
|
4922
4935
|
placeholder: _,
|
|
4923
4936
|
required: g = !1,
|
|
4924
4937
|
showLabel: $ = !0,
|
|
4925
|
-
value:
|
|
4926
|
-
validationMessage:
|
|
4938
|
+
value: M,
|
|
4939
|
+
validationMessage: z,
|
|
4927
4940
|
validationStatus: w,
|
|
4928
|
-
className:
|
|
4941
|
+
className: H
|
|
4929
4942
|
} = T, k = I(T, [
|
|
4930
4943
|
"defaultValue",
|
|
4931
4944
|
"disabled",
|
|
@@ -4955,26 +4968,26 @@ const us = (u) => {
|
|
|
4955
4968
|
"validationStatus",
|
|
4956
4969
|
"className"
|
|
4957
4970
|
]);
|
|
4958
|
-
const A = st(c), S = "pds-combobox",
|
|
4959
|
-
let
|
|
4960
|
-
r && (
|
|
4961
|
-
const
|
|
4962
|
-
const
|
|
4963
|
-
return
|
|
4964
|
-
}, [
|
|
4965
|
-
|
|
4966
|
-
), [
|
|
4967
|
-
open:
|
|
4968
|
-
onOpenChange:
|
|
4971
|
+
const A = st(c), S = "pds-combobox", U = s ? J.disabled : null, F = g && !s ? J.required : null, W = w === "error" ? J.error : null, X = w === "success" ? J.success : null;
|
|
4972
|
+
let Q = null;
|
|
4973
|
+
r && (Q = "search"), w === "error" && (Q = "error"), w === "success" && (Q = "success");
|
|
4974
|
+
const j = z || f, Y = typeof M != "undefined", P = typeof t != "undefined", R = (Z) => {
|
|
4975
|
+
const B = m.find((re) => re.value === Z);
|
|
4976
|
+
return B ? B.label : "";
|
|
4977
|
+
}, [K, ae] = G(!1), [te, q] = G(null), [se, ne] = G(
|
|
4978
|
+
P ? R(t) : ""
|
|
4979
|
+
), [me, ue] = G([]), ge = Y ? M : se, we = de([]), { context: ee, refs: ie } = Se({
|
|
4980
|
+
open: K,
|
|
4981
|
+
onOpenChange: ae,
|
|
4969
4982
|
whileElementsMounted: Be
|
|
4970
|
-
}),
|
|
4971
|
-
listRef:
|
|
4972
|
-
activeIndex:
|
|
4983
|
+
}), ze = Te(ee, { role: "listbox" }), Oe = Ie(ee), Ne = ct(ee, {
|
|
4984
|
+
listRef: we,
|
|
4985
|
+
activeIndex: te,
|
|
4973
4986
|
onNavigate: q,
|
|
4974
4987
|
virtual: !0,
|
|
4975
4988
|
loop: !0,
|
|
4976
4989
|
allowEscape: !0
|
|
4977
|
-
}), { getReferenceProps: We, getFloatingProps: Re, getItemProps: Qe } = Ae([
|
|
4990
|
+
}), { getReferenceProps: We, getFloatingProps: Re, getItemProps: Qe } = Ae([ze, Oe, Ne]), { isMounted: Je, styles: Fe } = Ye(ee, {
|
|
4978
4991
|
duration: {
|
|
4979
4992
|
open: 300,
|
|
4980
4993
|
close: 150
|
|
@@ -4989,34 +5002,34 @@ const us = (u) => {
|
|
|
4989
5002
|
opacity: 0
|
|
4990
5003
|
}
|
|
4991
5004
|
}), nt = () => {
|
|
4992
|
-
|
|
4993
|
-
},
|
|
5005
|
+
ae(!K);
|
|
5006
|
+
}, ve = () => {
|
|
4994
5007
|
var Z;
|
|
4995
|
-
!
|
|
4996
|
-
},
|
|
4997
|
-
let
|
|
4998
|
-
C && C(Z),
|
|
4999
|
-
},
|
|
5008
|
+
!Y && ne(""), q(null), ae(!0), (Z = ie.domReference.current) == null || Z.focus(), v && v();
|
|
5009
|
+
}, Ee = (Z) => {
|
|
5010
|
+
let B = Z.target.value;
|
|
5011
|
+
C && C(Z), Y || (B.length > 0 && (B = B.trimStart()), ne(B)), B ? (q(null), ae(!0)) : ae(!1);
|
|
5012
|
+
}, fe = (Z) => {
|
|
5000
5013
|
y && y(Z);
|
|
5001
|
-
},
|
|
5014
|
+
}, He = (Z) => {
|
|
5002
5015
|
b && b(Z);
|
|
5003
5016
|
}, ye = (Z) => {
|
|
5004
|
-
const
|
|
5005
|
-
!
|
|
5017
|
+
const B = me[Z];
|
|
5018
|
+
!Y && ne(B.label), q(null), ae(!1), p && p(B);
|
|
5006
5019
|
}, xe = (Z) => Z.map((re) => {
|
|
5007
|
-
const Ue = re, { label: le, optionDisplay:
|
|
5020
|
+
const Ue = re, { label: le, optionDisplay: pe, value: oe, searchIndex: Le } = Ue, at = I(Ue, ["label", "optionDisplay", "value", "searchIndex"]), Me = oe || le, Ge = [le, oe];
|
|
5008
5021
|
return Le && Ge.push(...Le), L({
|
|
5009
5022
|
label: le,
|
|
5010
|
-
value:
|
|
5023
|
+
value: Me,
|
|
5011
5024
|
searchIndex: Ge,
|
|
5012
|
-
optionDisplay:
|
|
5025
|
+
optionDisplay: pe
|
|
5013
5026
|
}, at);
|
|
5014
5027
|
});
|
|
5015
5028
|
ce(() => {
|
|
5016
5029
|
const Z = xe(m).filter(
|
|
5017
|
-
(
|
|
5018
|
-
var
|
|
5019
|
-
const re = (
|
|
5030
|
+
(B) => {
|
|
5031
|
+
var pe;
|
|
5032
|
+
const re = (pe = B.searchIndex) == null ? void 0 : pe.map(
|
|
5020
5033
|
(oe) => oe.toLowerCase()
|
|
5021
5034
|
), le = ge.toLowerCase();
|
|
5022
5035
|
return re.some((oe) => oe.includes(le));
|
|
@@ -5024,26 +5037,26 @@ const us = (u) => {
|
|
|
5024
5037
|
);
|
|
5025
5038
|
ue(Z);
|
|
5026
5039
|
}, [ge, o, m]);
|
|
5027
|
-
const D =
|
|
5028
|
-
const { label: re, value: le, optionDisplay:
|
|
5040
|
+
const D = me.map((Z, B) => {
|
|
5041
|
+
const { label: re, value: le, optionDisplay: pe } = Z;
|
|
5029
5042
|
return /* @__PURE__ */ e.createElement(
|
|
5030
5043
|
Bt,
|
|
5031
|
-
|
|
5044
|
+
he(L({
|
|
5032
5045
|
key: Z
|
|
5033
5046
|
}, Qe({
|
|
5034
5047
|
key: le,
|
|
5035
5048
|
ref(oe) {
|
|
5036
|
-
|
|
5049
|
+
we.current[B] = oe;
|
|
5037
5050
|
},
|
|
5038
5051
|
onClick() {
|
|
5039
5052
|
var oe;
|
|
5040
|
-
ye(
|
|
5053
|
+
ye(B), (oe = ie.domReference.current) == null || oe.focus();
|
|
5041
5054
|
}
|
|
5042
5055
|
})), {
|
|
5043
|
-
tabIndex:
|
|
5044
|
-
isActive:
|
|
5056
|
+
tabIndex: te === B ? 0 : -1,
|
|
5057
|
+
isActive: te === B
|
|
5045
5058
|
}),
|
|
5046
|
-
|
|
5059
|
+
pe || re
|
|
5047
5060
|
);
|
|
5048
5061
|
});
|
|
5049
5062
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -5052,11 +5065,11 @@ const us = (u) => {
|
|
|
5052
5065
|
className: N([
|
|
5053
5066
|
J.base,
|
|
5054
5067
|
S,
|
|
5055
|
-
|
|
5068
|
+
U,
|
|
5056
5069
|
F,
|
|
5057
|
-
|
|
5070
|
+
W,
|
|
5058
5071
|
X,
|
|
5059
|
-
|
|
5072
|
+
H != null ? H : ""
|
|
5060
5073
|
]),
|
|
5061
5074
|
style: c ? A : null
|
|
5062
5075
|
}, k),
|
|
@@ -5074,18 +5087,18 @@ const us = (u) => {
|
|
|
5074
5087
|
"span",
|
|
5075
5088
|
{
|
|
5076
5089
|
className: `${S}__input-wrapper`,
|
|
5077
|
-
ref:
|
|
5090
|
+
ref: x,
|
|
5078
5091
|
id: l,
|
|
5079
5092
|
"aria-disabled": s ? !0 : null,
|
|
5080
5093
|
"aria-required": g ? !0 : null,
|
|
5081
5094
|
"aria-invalid": w === "error" ? !0 : null,
|
|
5082
|
-
"aria-describedby":
|
|
5095
|
+
"aria-describedby": j ? `${l}__message` : null
|
|
5083
5096
|
},
|
|
5084
|
-
|
|
5097
|
+
Q && /* @__PURE__ */ e.createElement(pt, { variant: Q }),
|
|
5085
5098
|
/* @__PURE__ */ e.createElement(
|
|
5086
5099
|
"input",
|
|
5087
5100
|
L({
|
|
5088
|
-
ref:
|
|
5101
|
+
ref: ie.setReference,
|
|
5089
5102
|
className: `${S}__input`,
|
|
5090
5103
|
id: `input-${l}`,
|
|
5091
5104
|
autoComplete: "off"
|
|
@@ -5095,11 +5108,11 @@ const us = (u) => {
|
|
|
5095
5108
|
disabled: s,
|
|
5096
5109
|
placeholder: _,
|
|
5097
5110
|
value: ge,
|
|
5098
|
-
onBlur:
|
|
5099
|
-
onChange:
|
|
5100
|
-
onFocus:
|
|
5111
|
+
onBlur: fe,
|
|
5112
|
+
onChange: Ee,
|
|
5113
|
+
onFocus: He,
|
|
5101
5114
|
onKeyDown(Z) {
|
|
5102
|
-
Z.key === "Enter" &&
|
|
5115
|
+
Z.key === "Enter" && te != null && me[te] && ye(te);
|
|
5103
5116
|
}
|
|
5104
5117
|
}))
|
|
5105
5118
|
),
|
|
@@ -5108,7 +5121,7 @@ const us = (u) => {
|
|
|
5108
5121
|
{
|
|
5109
5122
|
id: `input-${l}`,
|
|
5110
5123
|
clearLabel: h.clearButton,
|
|
5111
|
-
handleClearInput:
|
|
5124
|
+
handleClearInput: ve
|
|
5112
5125
|
}
|
|
5113
5126
|
),
|
|
5114
5127
|
i && !ge && /* @__PURE__ */ e.createElement(
|
|
@@ -5120,13 +5133,13 @@ const us = (u) => {
|
|
|
5120
5133
|
),
|
|
5121
5134
|
a && /* @__PURE__ */ e.createElement(
|
|
5122
5135
|
"button",
|
|
5123
|
-
|
|
5124
|
-
ref:
|
|
5136
|
+
he(L({
|
|
5137
|
+
ref: ie.setReference
|
|
5125
5138
|
}, We({
|
|
5126
5139
|
onClick: nt,
|
|
5127
5140
|
disabled: s,
|
|
5128
5141
|
type: "button",
|
|
5129
|
-
"aria-expanded":
|
|
5142
|
+
"aria-expanded": K,
|
|
5130
5143
|
"aria-label": h.triggerButton
|
|
5131
5144
|
})), {
|
|
5132
5145
|
className: `${S}__trigger`
|
|
@@ -5143,28 +5156,28 @@ const us = (u) => {
|
|
|
5143
5156
|
Je && /* @__PURE__ */ e.createElement(
|
|
5144
5157
|
"div",
|
|
5145
5158
|
L({
|
|
5146
|
-
ref:
|
|
5159
|
+
ref: ie.setFloating,
|
|
5147
5160
|
className: `${S}__dropdown`
|
|
5148
5161
|
}, Re({
|
|
5149
5162
|
style: {
|
|
5150
5163
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
5151
5164
|
}
|
|
5152
5165
|
})),
|
|
5153
|
-
/* @__PURE__ */ e.createElement("div", { style: L({}, Fe) }, o ? /* @__PURE__ */ e.createElement("div", { className: `${S}__loading` }, u) :
|
|
5166
|
+
/* @__PURE__ */ e.createElement("div", { style: L({}, Fe) }, o ? /* @__PURE__ */ e.createElement("div", { className: `${S}__loading` }, u) : me.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${S}__options` }, D) : /* @__PURE__ */ e.createElement("div", { className: `${S}__no-results` }, E))
|
|
5154
5167
|
),
|
|
5155
|
-
|
|
5168
|
+
j && /* @__PURE__ */ e.createElement(
|
|
5156
5169
|
De,
|
|
5157
5170
|
{
|
|
5158
5171
|
id: l,
|
|
5159
|
-
message:
|
|
5160
|
-
hasValidationMessage: !!
|
|
5172
|
+
message: j,
|
|
5173
|
+
hasValidationMessage: !!z,
|
|
5161
5174
|
validationMessageHasDecorators: !1,
|
|
5162
5175
|
validationStatus: w
|
|
5163
5176
|
}
|
|
5164
5177
|
)
|
|
5165
5178
|
);
|
|
5166
5179
|
}
|
|
5167
|
-
),
|
|
5180
|
+
), Cs = qe(
|
|
5168
5181
|
(p, b) => {
|
|
5169
5182
|
var m = p, {
|
|
5170
5183
|
accept: t,
|
|
@@ -5204,10 +5217,10 @@ const us = (u) => {
|
|
|
5204
5217
|
"validationStatus",
|
|
5205
5218
|
"className"
|
|
5206
5219
|
]);
|
|
5207
|
-
const [_, g] =
|
|
5208
|
-
let
|
|
5209
|
-
C === "error" && (
|
|
5210
|
-
const
|
|
5220
|
+
const [_, g] = G(!1), $ = st(i), M = "pds-file-upload", z = s ? J.disabled : null, w = u && !s ? J.required : null, H = C === "error" ? J.error : null, k = C === "success" ? J.success : null;
|
|
5221
|
+
let x = null;
|
|
5222
|
+
C === "error" && (x = "error"), C === "success" && (x = "success");
|
|
5223
|
+
const V = E || c, T = (S) => {
|
|
5211
5224
|
h && h(S.target.files), S.target.files.length > 0 ? g(!0) : g(!1);
|
|
5212
5225
|
}, A = () => {
|
|
5213
5226
|
const S = document.getElementById(
|
|
@@ -5220,10 +5233,10 @@ const us = (u) => {
|
|
|
5220
5233
|
L({
|
|
5221
5234
|
className: N([
|
|
5222
5235
|
J.base,
|
|
5223
|
-
H,
|
|
5224
5236
|
M,
|
|
5225
|
-
w,
|
|
5226
5237
|
z,
|
|
5238
|
+
w,
|
|
5239
|
+
H,
|
|
5227
5240
|
k,
|
|
5228
5241
|
y != null ? y : ""
|
|
5229
5242
|
]),
|
|
@@ -5240,11 +5253,11 @@ const us = (u) => {
|
|
|
5240
5253
|
disabled: s
|
|
5241
5254
|
}
|
|
5242
5255
|
),
|
|
5243
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
5256
|
+
/* @__PURE__ */ e.createElement("span", { className: `${M}__input-wrapper`, id: a }, x && /* @__PURE__ */ e.createElement(pt, { variant: x }), /* @__PURE__ */ e.createElement(
|
|
5244
5257
|
"label",
|
|
5245
5258
|
{
|
|
5246
5259
|
htmlFor: `${a}--input`,
|
|
5247
|
-
className: _ ? "visually-hidden" : `${
|
|
5260
|
+
className: _ ? "visually-hidden" : `${M}__input-label`
|
|
5248
5261
|
},
|
|
5249
5262
|
/* @__PURE__ */ e.createElement(O, { iconName: "paperclip", iconSize: "sm" }),
|
|
5250
5263
|
l.chooseFile
|
|
@@ -5252,7 +5265,7 @@ const us = (u) => {
|
|
|
5252
5265
|
"input",
|
|
5253
5266
|
L({
|
|
5254
5267
|
ref: b,
|
|
5255
|
-
className: N([`${
|
|
5268
|
+
className: N([`${M}__input`]),
|
|
5256
5269
|
type: "file",
|
|
5257
5270
|
id: `${a}--input`,
|
|
5258
5271
|
accept: t || null,
|
|
@@ -5261,7 +5274,7 @@ const us = (u) => {
|
|
|
5261
5274
|
required: u,
|
|
5262
5275
|
onChange: T,
|
|
5263
5276
|
"aria-invalid": C === "error" ? !0 : null,
|
|
5264
|
-
"aria-describedby":
|
|
5277
|
+
"aria-describedby": V ? `${a}__message` : null
|
|
5265
5278
|
}, r)
|
|
5266
5279
|
), _ && /* @__PURE__ */ e.createElement(
|
|
5267
5280
|
Zt,
|
|
@@ -5271,11 +5284,11 @@ const us = (u) => {
|
|
|
5271
5284
|
handleClearInput: A
|
|
5272
5285
|
}
|
|
5273
5286
|
)),
|
|
5274
|
-
|
|
5287
|
+
V && /* @__PURE__ */ e.createElement(
|
|
5275
5288
|
De,
|
|
5276
5289
|
{
|
|
5277
5290
|
id: a,
|
|
5278
|
-
message:
|
|
5291
|
+
message: V,
|
|
5279
5292
|
hasValidationMessage: !!E,
|
|
5280
5293
|
validationMessageHasDecorators: !1,
|
|
5281
5294
|
validationStatus: C
|
|
@@ -5283,7 +5296,7 @@ const us = (u) => {
|
|
|
5283
5296
|
)
|
|
5284
5297
|
);
|
|
5285
5298
|
}
|
|
5286
|
-
),
|
|
5299
|
+
), $s = (a) => {
|
|
5287
5300
|
var r = a, {
|
|
5288
5301
|
children: t,
|
|
5289
5302
|
className: s
|
|
@@ -5310,7 +5323,7 @@ const us = (u) => {
|
|
|
5310
5323
|
}
|
|
5311
5324
|
)
|
|
5312
5325
|
);
|
|
5313
|
-
},
|
|
5326
|
+
}, ws = (v) => {
|
|
5314
5327
|
var b = v, {
|
|
5315
5328
|
defaultValue: t,
|
|
5316
5329
|
disabled: s = !1,
|
|
@@ -5344,10 +5357,10 @@ const us = (u) => {
|
|
|
5344
5357
|
"validationStatus",
|
|
5345
5358
|
"className"
|
|
5346
5359
|
]);
|
|
5347
|
-
const p = "pds-radio-group", m = s ? J.disabled : null, _ = h && !s ? J.required : null, g = E === "error" ? J.error : null, $ = E === "success" ? J.success : null, [
|
|
5348
|
-
|
|
5349
|
-
}, k = (
|
|
5350
|
-
c && c(
|
|
5360
|
+
const p = "pds-radio-group", m = s ? J.disabled : null, _ = h && !s ? J.required : null, g = E === "error" ? J.error : null, $ = E === "success" ? J.success : null, [M, z] = G(t), w = f || l, H = (x) => {
|
|
5361
|
+
z(x.target.value), o && o(x.target.value);
|
|
5362
|
+
}, k = (x) => {
|
|
5363
|
+
c && c(x);
|
|
5351
5364
|
};
|
|
5352
5365
|
return /* @__PURE__ */ e.createElement(
|
|
5353
5366
|
"div",
|
|
@@ -5372,27 +5385,27 @@ const us = (u) => {
|
|
|
5372
5385
|
required: h,
|
|
5373
5386
|
showLabel: u
|
|
5374
5387
|
}
|
|
5375
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${p}__options` }, d.map((
|
|
5388
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${p}__options` }, d.map((x, V) => /* @__PURE__ */ e.createElement(
|
|
5376
5389
|
"div",
|
|
5377
5390
|
{
|
|
5378
5391
|
className: `${p}__option`,
|
|
5379
|
-
key: `${a}-option-${
|
|
5392
|
+
key: `${a}-option-${V}`
|
|
5380
5393
|
},
|
|
5381
5394
|
/* @__PURE__ */ e.createElement(
|
|
5382
5395
|
"input",
|
|
5383
5396
|
{
|
|
5384
5397
|
type: "radio",
|
|
5385
|
-
id:
|
|
5398
|
+
id: x.id ? x.id : `${a}-option-${V}`,
|
|
5386
5399
|
name: a,
|
|
5387
|
-
value:
|
|
5400
|
+
value: x.value,
|
|
5388
5401
|
required: h,
|
|
5389
|
-
disabled: s ||
|
|
5402
|
+
disabled: s || x.disabled,
|
|
5390
5403
|
onBlur: k,
|
|
5391
|
-
onChange:
|
|
5392
|
-
defaultChecked:
|
|
5404
|
+
onChange: H,
|
|
5405
|
+
defaultChecked: M === x.value
|
|
5393
5406
|
}
|
|
5394
5407
|
),
|
|
5395
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor:
|
|
5408
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: x.id ? x.id : `${a}-option-${V}` }, x.label)
|
|
5396
5409
|
)))),
|
|
5397
5410
|
w && /* @__PURE__ */ e.createElement(
|
|
5398
5411
|
De,
|
|
@@ -5429,7 +5442,7 @@ const us = (u) => {
|
|
|
5429
5442
|
"aria-hidden": "true"
|
|
5430
5443
|
},
|
|
5431
5444
|
/* @__PURE__ */ e.createElement(O, { iconName: "xmark", iconSize: "sm" })
|
|
5432
|
-
)),
|
|
5445
|
+
)), ys = qe(
|
|
5433
5446
|
(p, b) => {
|
|
5434
5447
|
var m = p, {
|
|
5435
5448
|
checked: t,
|
|
@@ -5466,8 +5479,8 @@ const us = (u) => {
|
|
|
5466
5479
|
"showStatusLabel",
|
|
5467
5480
|
"className"
|
|
5468
5481
|
]);
|
|
5469
|
-
const _ = st(i), g = "pds-switch", $ = n ? J.disabled : null,
|
|
5470
|
-
|
|
5482
|
+
const _ = st(i), g = "pds-switch", $ = n ? J.disabled : null, M = f && !n ? J.required : null, z = typeof t != "undefined", w = c == "below", H = c == "right", k = !z && s ? s : !1, [x, V] = G(k), T = t || x ? u : d, A = (Q) => {
|
|
5483
|
+
z || V(Q.target.checked), h && h(Q);
|
|
5471
5484
|
}, S = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
5472
5485
|
"input",
|
|
5473
5486
|
L({
|
|
@@ -5480,10 +5493,10 @@ const us = (u) => {
|
|
|
5480
5493
|
onChange: A,
|
|
5481
5494
|
disabled: n,
|
|
5482
5495
|
required: f,
|
|
5483
|
-
checked: t !== void 0 ? t :
|
|
5496
|
+
checked: t !== void 0 ? t : x,
|
|
5484
5497
|
"aria-describedby": o ? `${a}__message` : null
|
|
5485
5498
|
}, r)
|
|
5486
|
-
), !C && /* @__PURE__ */ e.createElement(b2, { toggleStatusLabel: T }), /* @__PURE__ */ e.createElement("span", { className: "pds-switch__thumb", "aria-hidden": "true" })), C && /* @__PURE__ */ e.createElement(E2, { toggleStatusLabel: T, id: a })),
|
|
5499
|
+
), !C && /* @__PURE__ */ e.createElement(b2, { toggleStatusLabel: T }), /* @__PURE__ */ e.createElement("span", { className: "pds-switch__thumb", "aria-hidden": "true" })), C && /* @__PURE__ */ e.createElement(E2, { toggleStatusLabel: T, id: a })), U = /* @__PURE__ */ e.createElement(
|
|
5487
5500
|
Ke,
|
|
5488
5501
|
{
|
|
5489
5502
|
id: a,
|
|
@@ -5506,8 +5519,8 @@ const us = (u) => {
|
|
|
5506
5519
|
className: "pds-input-message--switch"
|
|
5507
5520
|
}
|
|
5508
5521
|
);
|
|
5509
|
-
let
|
|
5510
|
-
return w ?
|
|
5522
|
+
let W, X;
|
|
5523
|
+
return w ? W = /* @__PURE__ */ e.createElement(e.Fragment, null, U, F, S) : H && (X = "pds-switch--placement-right", W = o ? /* @__PURE__ */ e.createElement(e.Fragment, null, U, /* @__PURE__ */ e.createElement("div", { className: "pds-switch__toggle-message-container" }, F, /* @__PURE__ */ e.createElement("div", null, S))) : /* @__PURE__ */ e.createElement(
|
|
5511
5524
|
"div",
|
|
5512
5525
|
{
|
|
5513
5526
|
className: N([
|
|
@@ -5515,7 +5528,7 @@ const us = (u) => {
|
|
|
5515
5528
|
"pds-switch__label-switch-right--label-only"
|
|
5516
5529
|
])
|
|
5517
5530
|
},
|
|
5518
|
-
|
|
5531
|
+
U,
|
|
5519
5532
|
S
|
|
5520
5533
|
)), /* @__PURE__ */ e.createElement(
|
|
5521
5534
|
"div",
|
|
@@ -5524,18 +5537,18 @@ const us = (u) => {
|
|
|
5524
5537
|
J.base,
|
|
5525
5538
|
g,
|
|
5526
5539
|
$,
|
|
5527
|
-
|
|
5540
|
+
M,
|
|
5528
5541
|
X,
|
|
5529
5542
|
y
|
|
5530
5543
|
]),
|
|
5531
5544
|
style: i ? _ : null
|
|
5532
5545
|
}, v),
|
|
5533
|
-
|
|
5546
|
+
W
|
|
5534
5547
|
);
|
|
5535
5548
|
}
|
|
5536
|
-
),
|
|
5537
|
-
(
|
|
5538
|
-
var w =
|
|
5549
|
+
), Ls = qe(
|
|
5550
|
+
(z, M) => {
|
|
5551
|
+
var w = z, {
|
|
5539
5552
|
counterMaxLength: t,
|
|
5540
5553
|
defaultValue: s,
|
|
5541
5554
|
disabled: n = !1,
|
|
@@ -5589,12 +5602,12 @@ const us = (u) => {
|
|
|
5589
5602
|
"value",
|
|
5590
5603
|
"className"
|
|
5591
5604
|
]);
|
|
5592
|
-
const
|
|
5605
|
+
const H = st(r), k = "pds-textarea", x = i ? "pds-is-resizable" : null, V = n ? J.disabled : null, T = E && !n ? J.required : null, A = m === "error" ? J.error : null, S = m === "success" ? J.success : null, U = f ? J.readonly : null, F = p || c, W = _ != null && d !== void 0, X = typeof s != "undefined", [Q, j] = G(
|
|
5593
5606
|
X ? s : ""
|
|
5594
|
-
),
|
|
5595
|
-
|
|
5596
|
-
}, R = (
|
|
5597
|
-
o && o(
|
|
5607
|
+
), Y = _ || Q, P = (K) => {
|
|
5608
|
+
W || j(K.target.value), d && d(K);
|
|
5609
|
+
}, R = (K) => {
|
|
5610
|
+
o && o(K);
|
|
5598
5611
|
};
|
|
5599
5612
|
return /* @__PURE__ */ e.createElement(
|
|
5600
5613
|
"div",
|
|
@@ -5602,14 +5615,14 @@ const us = (u) => {
|
|
|
5602
5615
|
className: N([
|
|
5603
5616
|
J.base,
|
|
5604
5617
|
k,
|
|
5605
|
-
|
|
5618
|
+
V,
|
|
5606
5619
|
T,
|
|
5607
5620
|
A,
|
|
5608
5621
|
S,
|
|
5609
|
-
|
|
5622
|
+
U,
|
|
5610
5623
|
g != null ? g : ""
|
|
5611
5624
|
]),
|
|
5612
|
-
style: r ?
|
|
5625
|
+
style: r ? H : null
|
|
5613
5626
|
}, $),
|
|
5614
5627
|
/* @__PURE__ */ e.createElement("div", { className: `${k}__inputlabel-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
5615
5628
|
Ke,
|
|
@@ -5625,7 +5638,7 @@ const us = (u) => {
|
|
|
5625
5638
|
v1,
|
|
5626
5639
|
{
|
|
5627
5640
|
id: a,
|
|
5628
|
-
currentLength:
|
|
5641
|
+
currentLength: Y.length,
|
|
5629
5642
|
maxLength: t,
|
|
5630
5643
|
overLimitMessage: b.counterOverLimit
|
|
5631
5644
|
}
|
|
@@ -5633,17 +5646,17 @@ const us = (u) => {
|
|
|
5633
5646
|
/* @__PURE__ */ e.createElement("div", { className: `${k}__input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
5634
5647
|
"textarea",
|
|
5635
5648
|
L({
|
|
5636
|
-
ref:
|
|
5637
|
-
className: N([`${k}--textarea`,
|
|
5649
|
+
ref: M,
|
|
5650
|
+
className: N([`${k}--textarea`, x]),
|
|
5638
5651
|
id: a,
|
|
5639
5652
|
name: a,
|
|
5640
5653
|
placeholder: u,
|
|
5641
5654
|
required: E,
|
|
5642
5655
|
readOnly: f,
|
|
5643
5656
|
disabled: n,
|
|
5644
|
-
value:
|
|
5657
|
+
value: W ? _ : Q,
|
|
5645
5658
|
rows: C,
|
|
5646
|
-
onChange:
|
|
5659
|
+
onChange: P,
|
|
5647
5660
|
onBlur: R,
|
|
5648
5661
|
onFocus: h,
|
|
5649
5662
|
"aria-invalid": m === "error",
|
|
@@ -5663,8 +5676,8 @@ const us = (u) => {
|
|
|
5663
5676
|
);
|
|
5664
5677
|
}
|
|
5665
5678
|
), $1 = qe(
|
|
5666
|
-
(V,
|
|
5667
|
-
var
|
|
5679
|
+
(V, x) => {
|
|
5680
|
+
var T = V, {
|
|
5668
5681
|
autoComplete: t,
|
|
5669
5682
|
counterMaxLength: s,
|
|
5670
5683
|
defaultValue: n,
|
|
@@ -5683,9 +5696,10 @@ const us = (u) => {
|
|
|
5683
5696
|
placeholder: y,
|
|
5684
5697
|
readonly: v = !1,
|
|
5685
5698
|
required: b = !1,
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5699
|
+
searchIcon: p = "search",
|
|
5700
|
+
showLabel: m = !0,
|
|
5701
|
+
showVisibilityToggle: _ = !1,
|
|
5702
|
+
translationStrings: g = {
|
|
5689
5703
|
clearButton: "Clear input text",
|
|
5690
5704
|
counterOverLimit: "Character limit exceeded by",
|
|
5691
5705
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -5693,12 +5707,12 @@ const us = (u) => {
|
|
|
5693
5707
|
visibilityToggleHide: "Hide input value",
|
|
5694
5708
|
visibilityToggleShow: "Show input value"
|
|
5695
5709
|
},
|
|
5696
|
-
type:
|
|
5697
|
-
validationMessage:
|
|
5698
|
-
validationStatus:
|
|
5699
|
-
value:
|
|
5700
|
-
className:
|
|
5701
|
-
} =
|
|
5710
|
+
type: $ = "text",
|
|
5711
|
+
validationMessage: M,
|
|
5712
|
+
validationStatus: z,
|
|
5713
|
+
value: w,
|
|
5714
|
+
className: H
|
|
5715
|
+
} = T, k = I(T, [
|
|
5702
5716
|
"autoComplete",
|
|
5703
5717
|
"counterMaxLength",
|
|
5704
5718
|
"defaultValue",
|
|
@@ -5717,6 +5731,7 @@ const us = (u) => {
|
|
|
5717
5731
|
"placeholder",
|
|
5718
5732
|
"readonly",
|
|
5719
5733
|
"required",
|
|
5734
|
+
"searchIcon",
|
|
5720
5735
|
"showLabel",
|
|
5721
5736
|
"showVisibilityToggle",
|
|
5722
5737
|
"translationStrings",
|
|
@@ -5726,117 +5741,117 @@ const us = (u) => {
|
|
|
5726
5741
|
"value",
|
|
5727
5742
|
"className"
|
|
5728
5743
|
]);
|
|
5729
|
-
const
|
|
5730
|
-
let
|
|
5731
|
-
|
|
5732
|
-
const
|
|
5733
|
-
|
|
5734
|
-
),
|
|
5735
|
-
|
|
5736
|
-
},
|
|
5737
|
-
|
|
5738
|
-
},
|
|
5739
|
-
|
|
5740
|
-
const
|
|
5741
|
-
|
|
5742
|
-
}, [
|
|
5743
|
-
|
|
5744
|
-
const
|
|
5745
|
-
|
|
5744
|
+
const A = st(o), S = "pds-text-input", U = a ? J.disabled : null, F = b && !a ? J.required : null, W = z === "error" ? J.error : null, X = z === "success" ? J.success : null, Q = v ? J.readonly : null;
|
|
5745
|
+
let j = null;
|
|
5746
|
+
$ === "search" && (j = "search"), $ === "search" && p === "filter" && (j = "filter"), z === "error" && (j = "error"), z === "success" && (j = "success");
|
|
5747
|
+
const Y = M || h, P = typeof w != "undefined", R = typeof n != "undefined", [K, ae] = G(
|
|
5748
|
+
R ? n : ""
|
|
5749
|
+
), te = w || K, q = (ee) => {
|
|
5750
|
+
_ && me && ue(!1), u && u(ee);
|
|
5751
|
+
}, se = (ee) => {
|
|
5752
|
+
P || ae(ee.target.value), f && f(ee);
|
|
5753
|
+
}, ne = () => {
|
|
5754
|
+
P || ae(""), E && E();
|
|
5755
|
+
const ee = document.getElementById(l);
|
|
5756
|
+
ee && ee.focus();
|
|
5757
|
+
}, [me, ue] = G(!1), ge = () => {
|
|
5758
|
+
ue((ie) => !ie);
|
|
5759
|
+
const ee = document.getElementById(l);
|
|
5760
|
+
ee && ee.focus();
|
|
5746
5761
|
};
|
|
5747
|
-
let
|
|
5748
|
-
return
|
|
5762
|
+
let we = $;
|
|
5763
|
+
return _ && $ === "password" && (me ? we = "text" : we = "password"), /* @__PURE__ */ e.createElement(
|
|
5749
5764
|
"div",
|
|
5750
5765
|
L({
|
|
5751
5766
|
className: N([
|
|
5752
5767
|
J.base,
|
|
5753
|
-
A,
|
|
5754
5768
|
S,
|
|
5755
|
-
|
|
5769
|
+
U,
|
|
5756
5770
|
F,
|
|
5757
|
-
|
|
5771
|
+
W,
|
|
5758
5772
|
X,
|
|
5759
|
-
|
|
5773
|
+
Q,
|
|
5774
|
+
H != null ? H : ""
|
|
5760
5775
|
]),
|
|
5761
|
-
style: o ?
|
|
5762
|
-
},
|
|
5776
|
+
style: o ? A : null
|
|
5777
|
+
}, k),
|
|
5763
5778
|
/* @__PURE__ */ e.createElement(
|
|
5764
5779
|
Ke,
|
|
5765
5780
|
{
|
|
5766
5781
|
id: l,
|
|
5767
5782
|
label: d,
|
|
5768
|
-
showLabel:
|
|
5783
|
+
showLabel: m,
|
|
5769
5784
|
required: b,
|
|
5770
5785
|
disabled: a
|
|
5771
5786
|
}
|
|
5772
5787
|
),
|
|
5773
|
-
|
|
5774
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
5788
|
+
_ && $ === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${g.visibilityStatus} ${me ? "visible" : "hidden"}.`),
|
|
5789
|
+
/* @__PURE__ */ e.createElement("div", { className: `${S}__input-wrapper` }, j && /* @__PURE__ */ e.createElement(pt, { variant: j }), /* @__PURE__ */ e.createElement(
|
|
5775
5790
|
"input",
|
|
5776
5791
|
L({
|
|
5777
|
-
ref:
|
|
5778
|
-
className: `${
|
|
5792
|
+
ref: x,
|
|
5793
|
+
className: `${S}__input`,
|
|
5779
5794
|
id: l,
|
|
5780
5795
|
name: l,
|
|
5781
|
-
type:
|
|
5782
|
-
value:
|
|
5796
|
+
type: we,
|
|
5797
|
+
value: P ? w : K,
|
|
5783
5798
|
placeholder: y,
|
|
5784
5799
|
readOnly: v,
|
|
5785
5800
|
disabled: a,
|
|
5786
5801
|
required: b,
|
|
5787
|
-
autoComplete:
|
|
5788
|
-
onBlur:
|
|
5789
|
-
onChange:
|
|
5802
|
+
autoComplete: $ === "password" ? "off" : t,
|
|
5803
|
+
onBlur: q,
|
|
5804
|
+
onChange: se,
|
|
5790
5805
|
onFocus: C,
|
|
5791
|
-
"aria-invalid":
|
|
5792
|
-
"aria-describedby":
|
|
5806
|
+
"aria-invalid": z === "error" ? !0 : null,
|
|
5807
|
+
"aria-describedby": Y ? `${l}__message` : null
|
|
5793
5808
|
}, c)
|
|
5794
|
-
), r &&
|
|
5809
|
+
), r && te && /* @__PURE__ */ e.createElement(
|
|
5795
5810
|
Zt,
|
|
5796
5811
|
{
|
|
5797
5812
|
id: l,
|
|
5798
|
-
clearLabel:
|
|
5799
|
-
handleClearInput:
|
|
5813
|
+
clearLabel: g.clearButton,
|
|
5814
|
+
handleClearInput: ne
|
|
5800
5815
|
}
|
|
5801
|
-
),
|
|
5816
|
+
), _ && $ === "password" && /* @__PURE__ */ e.createElement(
|
|
5802
5817
|
"button",
|
|
5803
5818
|
{
|
|
5804
5819
|
type: "button",
|
|
5805
|
-
className: `${
|
|
5806
|
-
title:
|
|
5820
|
+
className: `${S}__visibility-toggle`,
|
|
5821
|
+
title: me ? g.visibilityToggleHide : g.visibilityToggleShow,
|
|
5807
5822
|
"aria-controls": l,
|
|
5808
|
-
onClick:
|
|
5809
|
-
onMouseDown: (
|
|
5823
|
+
onClick: ge,
|
|
5824
|
+
onMouseDown: (ee) => ee.preventDefault()
|
|
5810
5825
|
},
|
|
5811
|
-
/* @__PURE__ */ e.createElement(O, { iconName:
|
|
5812
|
-
), i &&
|
|
5826
|
+
/* @__PURE__ */ e.createElement(O, { iconName: me ? "eyeSlash" : "eye", iconSize: "md" })
|
|
5827
|
+
), i && $ === "search" && !te && /* @__PURE__ */ e.createElement(
|
|
5813
5828
|
_1,
|
|
5814
5829
|
{
|
|
5815
5830
|
inputId: l,
|
|
5816
|
-
shortcutLabel:
|
|
5831
|
+
shortcutLabel: g.searchShortcut
|
|
5817
5832
|
}
|
|
5818
|
-
), s &&
|
|
5833
|
+
), s && $ !== "password" && /* @__PURE__ */ e.createElement(
|
|
5819
5834
|
v1,
|
|
5820
5835
|
{
|
|
5821
5836
|
id: l,
|
|
5822
|
-
currentLength:
|
|
5837
|
+
currentLength: te.length,
|
|
5823
5838
|
maxLength: s,
|
|
5824
|
-
overLimitMessage:
|
|
5839
|
+
overLimitMessage: g.counterOverLimit
|
|
5825
5840
|
}
|
|
5826
5841
|
)),
|
|
5827
|
-
|
|
5842
|
+
Y && /* @__PURE__ */ e.createElement(
|
|
5828
5843
|
De,
|
|
5829
5844
|
{
|
|
5830
5845
|
id: l,
|
|
5831
|
-
message:
|
|
5832
|
-
hasValidationMessage:
|
|
5846
|
+
message: Y,
|
|
5847
|
+
hasValidationMessage: !!M,
|
|
5833
5848
|
validationMessageHasDecorators: !1,
|
|
5834
|
-
validationStatus:
|
|
5849
|
+
validationStatus: z
|
|
5835
5850
|
}
|
|
5836
5851
|
)
|
|
5837
5852
|
);
|
|
5838
5853
|
}
|
|
5839
|
-
),
|
|
5854
|
+
), Ms = (l) => {
|
|
5840
5855
|
var c = l, {
|
|
5841
5856
|
children: t,
|
|
5842
5857
|
fontSize: s,
|
|
@@ -5863,7 +5878,7 @@ const us = (u) => {
|
|
|
5863
5878
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `(${n})`),
|
|
5864
5879
|
/* @__PURE__ */ e.createElement(O, { iconName: "externalLink", className: `${o}__icon` })
|
|
5865
5880
|
);
|
|
5866
|
-
},
|
|
5881
|
+
}, zs = (d) => {
|
|
5867
5882
|
var h = d, {
|
|
5868
5883
|
ariaLabel: t,
|
|
5869
5884
|
children: s,
|
|
@@ -5884,7 +5899,7 @@ const us = (u) => {
|
|
|
5884
5899
|
"title",
|
|
5885
5900
|
"className"
|
|
5886
5901
|
]);
|
|
5887
|
-
const u = "pds-modal", f = i !== "md" ? `${u}--${i}` : null, [E, C] =
|
|
5902
|
+
const u = "pds-modal", f = i !== "md" ? `${u}--${i}` : null, [E, C] = G(a);
|
|
5888
5903
|
ce(() => {
|
|
5889
5904
|
C(a);
|
|
5890
5905
|
}, [a]), ce(() => {
|
|
@@ -5895,7 +5910,7 @@ const us = (u) => {
|
|
|
5895
5910
|
onOpenChange: C
|
|
5896
5911
|
}), p = Xe(v), m = Ie(v, {
|
|
5897
5912
|
outsidePressEvent: "mousedown"
|
|
5898
|
-
}), _ = Te(v), { getFloatingProps: g } = Ae([p, m, _]), { isMounted: $, styles:
|
|
5913
|
+
}), _ = Te(v), { getFloatingProps: g } = Ae([p, m, _]), { isMounted: $, styles: M } = Ye(v, {
|
|
5899
5914
|
duration: {
|
|
5900
5915
|
open: 300,
|
|
5901
5916
|
close: 300
|
|
@@ -5917,7 +5932,7 @@ const us = (u) => {
|
|
|
5917
5932
|
F1,
|
|
5918
5933
|
{
|
|
5919
5934
|
lockScroll: !0,
|
|
5920
|
-
style:
|
|
5935
|
+
style: he(L({}, b), {
|
|
5921
5936
|
background: "var(--pds-color-overlay)",
|
|
5922
5937
|
transition: "var(--pds-animation-reveal-transition)",
|
|
5923
5938
|
zIndex: "var(--pds-z-index-modal)",
|
|
@@ -5926,12 +5941,12 @@ const us = (u) => {
|
|
|
5926
5941
|
},
|
|
5927
5942
|
/* @__PURE__ */ e.createElement(h1, { context: v }, /* @__PURE__ */ e.createElement(
|
|
5928
5943
|
"div",
|
|
5929
|
-
L(
|
|
5944
|
+
L(he(L({
|
|
5930
5945
|
ref: y.setFloating,
|
|
5931
5946
|
"aria-label": t || l
|
|
5932
5947
|
}, g()), {
|
|
5933
5948
|
className: [u, f, c].join(" ").trim().replace(/\s+/g, " "),
|
|
5934
|
-
style:
|
|
5949
|
+
style: he(L(L({}, b), M), {
|
|
5935
5950
|
position: "relative",
|
|
5936
5951
|
top: "5%"
|
|
5937
5952
|
})
|
|
@@ -5950,7 +5965,7 @@ const us = (u) => {
|
|
|
5950
5965
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__content` }, s)
|
|
5951
5966
|
))
|
|
5952
5967
|
));
|
|
5953
|
-
},
|
|
5968
|
+
}, Hs = (r) => {
|
|
5954
5969
|
var i = r, {
|
|
5955
5970
|
ariaLabel: t = "Breadcrumb",
|
|
5956
5971
|
crumbs: s,
|
|
@@ -5964,7 +5979,7 @@ const us = (u) => {
|
|
|
5964
5979
|
if (h < c - 1)
|
|
5965
5980
|
return /* @__PURE__ */ e.createElement("li", { key: h, className: `${l}__crumb` }, d);
|
|
5966
5981
|
{
|
|
5967
|
-
const u =
|
|
5982
|
+
const u = Ce(d) ? Ve(d, {
|
|
5968
5983
|
"aria-current": "page"
|
|
5969
5984
|
}) : null;
|
|
5970
5985
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -5985,12 +6000,12 @@ const us = (u) => {
|
|
|
5985
6000
|
}, a),
|
|
5986
6001
|
/* @__PURE__ */ e.createElement("ol", { className: `${l}__crumbs` }, o)
|
|
5987
6002
|
);
|
|
5988
|
-
}, w1 = (t) => typeof t.linkContent != "string" ? !!(t.isActive || t.linkContent.props.className && t.linkContent.props.className.includes("pds-isActive")) : !1,
|
|
6003
|
+
}, w1 = (t) => typeof t.linkContent != "string" ? !!(t.isActive || t.linkContent.props.className && t.linkContent.props.className.includes("pds-isActive")) : !1, be = (t) => {
|
|
5989
6004
|
if (w1(t))
|
|
5990
6005
|
return !0;
|
|
5991
6006
|
if (t.links) {
|
|
5992
6007
|
for (let s = 0; s < t.links.length; s++)
|
|
5993
|
-
if (
|
|
6008
|
+
if (be(t.links[s]))
|
|
5994
6009
|
return !0;
|
|
5995
6010
|
}
|
|
5996
6011
|
return !1;
|
|
@@ -6028,11 +6043,11 @@ const us = (u) => {
|
|
|
6028
6043
|
];
|
|
6029
6044
|
if (n) {
|
|
6030
6045
|
const l = n[0].linkContent;
|
|
6031
|
-
|
|
6046
|
+
Ce(l) && (r = Ve(l, L({}, typeof s == "string" ? { children: i } : {})));
|
|
6032
6047
|
} else
|
|
6033
6048
|
r = null;
|
|
6034
6049
|
}
|
|
6035
|
-
return typeof s == "object" && (a ? r = Ve(s,
|
|
6050
|
+
return typeof s == "object" && (a ? r = Ve(s, he(L({}, s.props), {
|
|
6036
6051
|
children: [
|
|
6037
6052
|
/* @__PURE__ */ e.createElement("span", { key: a, className: `${t}__item-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${t}__link-icon` }, /* @__PURE__ */ e.createElement(O, { iconName: a, iconSize: "md" })), /* @__PURE__ */ e.createElement("span", { className: `${t}__link-label` }, s.props.children))
|
|
6038
6053
|
]
|
|
@@ -6055,7 +6070,7 @@ const us = (u) => {
|
|
|
6055
6070
|
}, a),
|
|
6056
6071
|
s
|
|
6057
6072
|
);
|
|
6058
|
-
},
|
|
6073
|
+
}, zt = d1(null), ks = (f) => {
|
|
6059
6074
|
var E = f, {
|
|
6060
6075
|
children: t,
|
|
6061
6076
|
hasSidebarToggle: s = !0,
|
|
@@ -6082,9 +6097,9 @@ const us = (u) => {
|
|
|
6082
6097
|
"setIsSidebarExpanded",
|
|
6083
6098
|
"className"
|
|
6084
6099
|
]);
|
|
6085
|
-
const { breakpoint: C, isMobile: y } =
|
|
6100
|
+
const { breakpoint: C, isMobile: y } = $e(ke), [v, b] = G(
|
|
6086
6101
|
C === "xl" || o
|
|
6087
|
-
), p =
|
|
6102
|
+
), p = de(), [m] = Lt(p), _ = m.width;
|
|
6088
6103
|
ce(() => {
|
|
6089
6104
|
o !== void 0 && b(o);
|
|
6090
6105
|
}, [o]), ce(() => {
|
|
@@ -6095,47 +6110,47 @@ const us = (u) => {
|
|
|
6095
6110
|
logoLinkContent: a,
|
|
6096
6111
|
navbarWidth: _,
|
|
6097
6112
|
isAdmin: n
|
|
6098
|
-
}, $ = "pds-dashboard-global",
|
|
6099
|
-
width:
|
|
6113
|
+
}, $ = "pds-dashboard-global", M = n ? `${$}--isAdmin` : null, z = y ? `${$}--isMobile` : `${$}--notMobile`, w = y ? null : v ? `${$}--sidebarExpanded` : `${$}--sidebarCollapsed`, H = v ? `${i}rem` : `${r}rem`, k = {
|
|
6114
|
+
width: H,
|
|
6100
6115
|
transition: "width 200ms ease-in-out"
|
|
6101
|
-
},
|
|
6102
|
-
width: `calc(100% - ${
|
|
6116
|
+
}, x = y ? {} : {
|
|
6117
|
+
width: `calc(100% - ${H})`,
|
|
6103
6118
|
transition: "width 200ms ease-in-out"
|
|
6104
|
-
},
|
|
6119
|
+
}, V = () => {
|
|
6105
6120
|
b(!v);
|
|
6106
|
-
}, T = je(t), A = T.header, S = T.sidebar,
|
|
6121
|
+
}, T = je(t), A = T.header, S = T.sidebar, U = T.main, F = T.footer, W = /* @__PURE__ */ e.createElement("aside", { className: `${$}__sidebar` }, S), X = /* @__PURE__ */ e.createElement("aside", { className: `${$}__sidebar`, style: k }, s && /* @__PURE__ */ e.createElement(
|
|
6107
6122
|
"button",
|
|
6108
6123
|
{
|
|
6109
6124
|
className: `${$}__sidebar-toggle-button`,
|
|
6110
|
-
onClick:
|
|
6125
|
+
onClick: V,
|
|
6111
6126
|
"aria-expanded": v,
|
|
6112
6127
|
"aria-label": l
|
|
6113
6128
|
},
|
|
6114
6129
|
/* @__PURE__ */ e.createElement("span", { className: `${$}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(O, { iconName: "angleLeft", iconSize: "sm" }))
|
|
6115
6130
|
), /* @__PURE__ */ e.createElement("div", { className: `${$}__sidebar-inner` }, S));
|
|
6116
|
-
return /* @__PURE__ */ e.createElement(
|
|
6131
|
+
return /* @__PURE__ */ e.createElement(zt.Provider, { value: g }, /* @__PURE__ */ e.createElement(C2, { text: c, destination: "main" }), /* @__PURE__ */ e.createElement(
|
|
6117
6132
|
"div",
|
|
6118
6133
|
L({
|
|
6119
6134
|
className: N([
|
|
6120
6135
|
$,
|
|
6121
|
-
H,
|
|
6122
6136
|
M,
|
|
6137
|
+
z,
|
|
6123
6138
|
w,
|
|
6124
6139
|
"pds-typography--product",
|
|
6125
6140
|
h != null ? h : ""
|
|
6126
6141
|
])
|
|
6127
6142
|
}, u),
|
|
6128
6143
|
y && A,
|
|
6129
|
-
y ?
|
|
6144
|
+
y ? W : X,
|
|
6130
6145
|
/* @__PURE__ */ e.createElement(
|
|
6131
6146
|
"div",
|
|
6132
6147
|
{
|
|
6133
6148
|
ref: p,
|
|
6134
6149
|
className: `${$}__container`,
|
|
6135
|
-
style:
|
|
6150
|
+
style: x
|
|
6136
6151
|
},
|
|
6137
6152
|
!y && /* @__PURE__ */ e.createElement("div", { className: `${$}__header` }, A),
|
|
6138
|
-
/* @__PURE__ */ e.createElement("main", { id: "main", className: `${$}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${$}__main-inner` },
|
|
6153
|
+
/* @__PURE__ */ e.createElement("main", { id: "main", className: `${$}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${$}__main-inner` }, U), F && /* @__PURE__ */ e.createElement("footer", { className: `${$}__footer` }, F))
|
|
6139
6154
|
)
|
|
6140
6155
|
));
|
|
6141
6156
|
}, $2 = ({
|
|
@@ -6146,28 +6161,28 @@ const us = (u) => {
|
|
|
6146
6161
|
linkContent: r,
|
|
6147
6162
|
links: i
|
|
6148
6163
|
}) => {
|
|
6149
|
-
const l = "pds-dashboard-nav", c = `${l}__item`, o = `${l}__menu`, d = /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` }, Wt(l, r, i, t)), h = (
|
|
6164
|
+
const l = "pds-dashboard-nav", c = `${l}__item`, o = `${l}__menu`, d = /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` }, Wt(l, r, i, t)), h = (M, z) => /* @__PURE__ */ e.createElement(
|
|
6150
6165
|
"ul",
|
|
6151
6166
|
{
|
|
6152
6167
|
className: N([
|
|
6153
6168
|
o,
|
|
6154
|
-
`${o}--${
|
|
6169
|
+
`${o}--${z}`,
|
|
6155
6170
|
s ? `${o}--expanded` : null
|
|
6156
6171
|
])
|
|
6157
6172
|
},
|
|
6158
|
-
|
|
6173
|
+
M.map((w, H) => /* @__PURE__ */ e.createElement(
|
|
6159
6174
|
"li",
|
|
6160
6175
|
{
|
|
6161
|
-
key:
|
|
6176
|
+
key: H,
|
|
6162
6177
|
className: N([
|
|
6163
6178
|
c,
|
|
6164
|
-
`${c}--${
|
|
6165
|
-
|
|
6179
|
+
`${c}--${z}`,
|
|
6180
|
+
be(w) ? `${c}--active` : null
|
|
6166
6181
|
])
|
|
6167
6182
|
},
|
|
6168
6183
|
w.linkContent
|
|
6169
6184
|
))
|
|
6170
|
-
), [u, f] =
|
|
6185
|
+
), [u, f] = G(!1), { refs: E, floatingStyles: C, context: y } = Se({
|
|
6171
6186
|
placement: "right-start",
|
|
6172
6187
|
open: u,
|
|
6173
6188
|
onOpenChange: f,
|
|
@@ -6181,12 +6196,12 @@ const us = (u) => {
|
|
|
6181
6196
|
b,
|
|
6182
6197
|
p,
|
|
6183
6198
|
m
|
|
6184
|
-
]), $ = (
|
|
6185
|
-
const
|
|
6186
|
-
|
|
6199
|
+
]), $ = (M) => {
|
|
6200
|
+
const z = M.target;
|
|
6201
|
+
z.classList.toggle(`${l}__toggle--expanded`), z.setAttribute(
|
|
6187
6202
|
"aria-expanded",
|
|
6188
|
-
|
|
6189
|
-
),
|
|
6203
|
+
z.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
6204
|
+
), z.parentElement.nextElementSibling.classList.toggle(`${l}__menu--expanded`);
|
|
6190
6205
|
};
|
|
6191
6206
|
return /* @__PURE__ */ e.createElement(
|
|
6192
6207
|
"li",
|
|
@@ -6251,7 +6266,7 @@ const us = (u) => {
|
|
|
6251
6266
|
"selectTextFallback",
|
|
6252
6267
|
"className"
|
|
6253
6268
|
]);
|
|
6254
|
-
const c = "pds-dropdown-menu", [o, d] =
|
|
6269
|
+
const c = "pds-dropdown-menu", [o, d] = G(!1), [h, u] = G(null), f = Kt(s), E = f ? f.props.children : n, C = /* @__PURE__ */ e.createElement(
|
|
6255
6270
|
O,
|
|
6256
6271
|
{
|
|
6257
6272
|
iconName: "check",
|
|
@@ -6275,7 +6290,7 @@ const us = (u) => {
|
|
|
6275
6290
|
const b = ({
|
|
6276
6291
|
item: A,
|
|
6277
6292
|
level: S
|
|
6278
|
-
}) =>
|
|
6293
|
+
}) => he(L({}, A), {
|
|
6279
6294
|
level: S,
|
|
6280
6295
|
linkContent: Ve(
|
|
6281
6296
|
Ct(A.linkContent, A.links),
|
|
@@ -6285,36 +6300,36 @@ const us = (u) => {
|
|
|
6285
6300
|
)
|
|
6286
6301
|
}), p = (A) => {
|
|
6287
6302
|
const S = [];
|
|
6288
|
-
return A.forEach((
|
|
6289
|
-
|
|
6290
|
-
F.links ? (S.push(b({ item: F, level: "second-level" })), F.links.forEach((
|
|
6291
|
-
|
|
6292
|
-
b({ item:
|
|
6293
|
-
),
|
|
6303
|
+
return A.forEach((U) => {
|
|
6304
|
+
U.links ? (S.push(b({ item: U, level: "top-level" })), U.links.forEach((F) => {
|
|
6305
|
+
F.links ? (S.push(b({ item: F, level: "second-level" })), F.links.forEach((W) => {
|
|
6306
|
+
W.links && (S.push(
|
|
6307
|
+
b({ item: W, level: "third-level" })
|
|
6308
|
+
), W.links.forEach((X) => {
|
|
6294
6309
|
S.push(
|
|
6295
6310
|
b({ item: X, level: "fourth-level" })
|
|
6296
6311
|
);
|
|
6297
6312
|
})), S.push(
|
|
6298
|
-
b({ item:
|
|
6313
|
+
b({ item: W, level: "third-level" })
|
|
6299
6314
|
);
|
|
6300
6315
|
})) : S.push(b({ item: F, level: "second-level" }));
|
|
6301
|
-
})) : S.push(b({ item:
|
|
6316
|
+
})) : S.push(b({ item: U, level: "top-level" }));
|
|
6302
6317
|
}), S;
|
|
6303
6318
|
}, { refs: m, context: _ } = Se({
|
|
6304
6319
|
placement: "bottom-start",
|
|
6305
6320
|
open: o,
|
|
6306
6321
|
onOpenChange: d,
|
|
6307
6322
|
whileElementsMounted: Be
|
|
6308
|
-
}), g =
|
|
6323
|
+
}), g = de([]), $ = ct(_, {
|
|
6309
6324
|
listRef: g,
|
|
6310
6325
|
activeIndex: h,
|
|
6311
6326
|
onNavigate: u,
|
|
6312
6327
|
loop: !0,
|
|
6313
6328
|
openOnArrowKeyDown: !0,
|
|
6314
6329
|
focusItemOnHover: !0
|
|
6315
|
-
}),
|
|
6316
|
-
[
|
|
6317
|
-
), { isMounted:
|
|
6330
|
+
}), M = Xe(_, { event: "mousedown" }), z = Ie(_), w = Te(_, { role: "menu" }), { getReferenceProps: H, getFloatingProps: k, getItemProps: x } = Ae(
|
|
6331
|
+
[z, w, M, $]
|
|
6332
|
+
), { isMounted: V, styles: T } = Ye(_, {
|
|
6318
6333
|
duration: {
|
|
6319
6334
|
open: 300,
|
|
6320
6335
|
close: 300
|
|
@@ -6334,7 +6349,7 @@ const us = (u) => {
|
|
|
6334
6349
|
L({
|
|
6335
6350
|
className: `${c}__trigger`,
|
|
6336
6351
|
ref: m.setReference
|
|
6337
|
-
},
|
|
6352
|
+
}, H()),
|
|
6338
6353
|
/* @__PURE__ */ e.createElement("span", { className: `${c}__active-label` }, E),
|
|
6339
6354
|
/* @__PURE__ */ e.createElement(
|
|
6340
6355
|
O,
|
|
@@ -6344,12 +6359,12 @@ const us = (u) => {
|
|
|
6344
6359
|
className: `${c}__trigger-icon`
|
|
6345
6360
|
}
|
|
6346
6361
|
)
|
|
6347
|
-
),
|
|
6362
|
+
), V && /* @__PURE__ */ e.createElement(
|
|
6348
6363
|
"ul",
|
|
6349
6364
|
L({
|
|
6350
6365
|
className: `${c}__dropdown ${c}__menu ${c}__menu--top-level`,
|
|
6351
6366
|
ref: m.setFloating,
|
|
6352
|
-
style:
|
|
6367
|
+
style: he(L({}, T), {
|
|
6353
6368
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
6354
6369
|
})
|
|
6355
6370
|
}, k()),
|
|
@@ -6360,10 +6375,10 @@ const us = (u) => {
|
|
|
6360
6375
|
onKeyDown: y,
|
|
6361
6376
|
className: `${c}__item ${c}__item--${A.level} ${A.isActive === !0 ? `${c}__item--active` : ""}`,
|
|
6362
6377
|
tabIndex: h === S ? 0 : -1,
|
|
6363
|
-
ref: (
|
|
6364
|
-
g.current[S] =
|
|
6378
|
+
ref: (U) => {
|
|
6379
|
+
g.current[S] = U;
|
|
6365
6380
|
}
|
|
6366
|
-
},
|
|
6381
|
+
}, x()),
|
|
6367
6382
|
A.linkContent,
|
|
6368
6383
|
A.isActive === !0 && C
|
|
6369
6384
|
))
|
|
@@ -6705,7 +6720,7 @@ const us = (u) => {
|
|
|
6705
6720
|
n ? E : u,
|
|
6706
6721
|
a && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__separator" }), /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__sub-brand-wordmark" }, a))
|
|
6707
6722
|
);
|
|
6708
|
-
},
|
|
6723
|
+
}, Ns = (l) => {
|
|
6709
6724
|
var c = l, {
|
|
6710
6725
|
ariaLabel: t,
|
|
6711
6726
|
labels: s = {
|
|
@@ -6723,9 +6738,9 @@ const us = (u) => {
|
|
|
6723
6738
|
"className"
|
|
6724
6739
|
]);
|
|
6725
6740
|
let o = !1;
|
|
6726
|
-
const d =
|
|
6741
|
+
const d = $e(ke);
|
|
6727
6742
|
d && (o = d.isMobile);
|
|
6728
|
-
const h =
|
|
6743
|
+
const h = $e(zt);
|
|
6729
6744
|
let u = !0, f = null;
|
|
6730
6745
|
h && (u = h.isSidebarExpanded, f = h.logoLinkContent);
|
|
6731
6746
|
const E = "pds-dashboard-nav", C = u ? `${E}--expanded` : `${E}--collapsed`, y = /* @__PURE__ */ e.createElement(e.Fragment, null, n.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${E}__menu ${E}__menu--top-level` }, n.map((p, m) => /* @__PURE__ */ e.createElement(
|
|
@@ -6733,13 +6748,13 @@ const us = (u) => {
|
|
|
6733
6748
|
{
|
|
6734
6749
|
key: m,
|
|
6735
6750
|
icon: p.icon,
|
|
6736
|
-
isActive:
|
|
6751
|
+
isActive: be(p),
|
|
6737
6752
|
isSidebarExpanded: u,
|
|
6738
6753
|
labels: s,
|
|
6739
6754
|
linkContent: p.linkContent,
|
|
6740
6755
|
links: p.links
|
|
6741
6756
|
}
|
|
6742
|
-
)))), v = n.map((p) =>
|
|
6757
|
+
)))), v = n.map((p) => he(L({}, p), {
|
|
6743
6758
|
linkContent: Wt(
|
|
6744
6759
|
E,
|
|
6745
6760
|
p.linkContent,
|
|
@@ -6776,7 +6791,7 @@ const us = (u) => {
|
|
|
6776
6791
|
"performance-large": "Performance Large",
|
|
6777
6792
|
"performance-xl": "Performance Extra Large",
|
|
6778
6793
|
elite: "Elite"
|
|
6779
|
-
},
|
|
6794
|
+
}, xs = {
|
|
6780
6795
|
drupal: "Drupal",
|
|
6781
6796
|
wordpress: "WordPress",
|
|
6782
6797
|
gatsby: "Gatsby",
|
|
@@ -6786,7 +6801,7 @@ const us = (u) => {
|
|
|
6786
6801
|
wordpress: "wordpress",
|
|
6787
6802
|
gatsby: "bolt",
|
|
6788
6803
|
nextjs: "bolt"
|
|
6789
|
-
},
|
|
6804
|
+
}, M2 = (a) => {
|
|
6790
6805
|
var r = a, {
|
|
6791
6806
|
option: t,
|
|
6792
6807
|
className: s
|
|
@@ -6794,7 +6809,7 @@ const us = (u) => {
|
|
|
6794
6809
|
"option",
|
|
6795
6810
|
"className"
|
|
6796
6811
|
]);
|
|
6797
|
-
const i = "pds-dashboard-search", l = t.type ? L1[t.type] : "bolt", c =
|
|
6812
|
+
const i = "pds-dashboard-search", l = t.type ? L1[t.type] : "bolt", c = de(), [o] = Lt(c), d = o.width / 16 - 7.5;
|
|
6798
6813
|
return /* @__PURE__ */ e.createElement(
|
|
6799
6814
|
"div",
|
|
6800
6815
|
L({
|
|
@@ -6838,7 +6853,7 @@ const us = (u) => {
|
|
|
6838
6853
|
)
|
|
6839
6854
|
)
|
|
6840
6855
|
);
|
|
6841
|
-
},
|
|
6856
|
+
}, Vs = (C) => {
|
|
6842
6857
|
var y = C, {
|
|
6843
6858
|
disabled: t = !1,
|
|
6844
6859
|
id: s,
|
|
@@ -6872,24 +6887,24 @@ const us = (u) => {
|
|
|
6872
6887
|
"horizontalOffset",
|
|
6873
6888
|
"className"
|
|
6874
6889
|
]);
|
|
6875
|
-
const [v, b] =
|
|
6890
|
+
const [v, b] = G(!1), [p, m] = G(null), _ = de(null);
|
|
6876
6891
|
let g = !1;
|
|
6877
|
-
const $ =
|
|
6892
|
+
const $ = $e(ke);
|
|
6878
6893
|
$ && (g = $.isMobile);
|
|
6879
|
-
let
|
|
6880
|
-
const w =
|
|
6881
|
-
w && (
|
|
6882
|
-
const
|
|
6883
|
-
let T =
|
|
6884
|
-
v && !
|
|
6894
|
+
let M = null, z = !1;
|
|
6895
|
+
const w = $e(zt);
|
|
6896
|
+
w && (M = w.navbarWidth, z = w.isAdmin);
|
|
6897
|
+
const H = 2.25, k = 22, x = z ? 14.5 : 9.625, V = M > 900 ? k : M / 16 - (x + u) - H * 0.675;
|
|
6898
|
+
let T = H;
|
|
6899
|
+
v && !M && (T = k), v && M && (T = V);
|
|
6885
6900
|
const A = {
|
|
6886
|
-
right: `${
|
|
6901
|
+
right: `${x + u}rem`,
|
|
6887
6902
|
width: `${T}rem`
|
|
6888
|
-
}, S = "pds-dashboard-search",
|
|
6903
|
+
}, S = "pds-dashboard-search", U = g ? `${S}--isMobile` : null, F = () => {
|
|
6889
6904
|
b(!0), setTimeout(() => {
|
|
6890
6905
|
_.current.querySelector("input").focus();
|
|
6891
6906
|
}, 500);
|
|
6892
|
-
},
|
|
6907
|
+
}, W = () => {
|
|
6893
6908
|
setTimeout(() => {
|
|
6894
6909
|
b(!1);
|
|
6895
6910
|
}, 150);
|
|
@@ -6897,27 +6912,27 @@ const us = (u) => {
|
|
|
6897
6912
|
m(R.value), o && o(R);
|
|
6898
6913
|
};
|
|
6899
6914
|
ce(() => {
|
|
6900
|
-
const R = (
|
|
6901
|
-
_.current && !_.current.contains(
|
|
6902
|
-
},
|
|
6915
|
+
const R = (ae) => {
|
|
6916
|
+
_.current && !_.current.contains(ae.target) && b(!1);
|
|
6917
|
+
}, K = (ae) => {
|
|
6903
6918
|
var q;
|
|
6904
|
-
const
|
|
6905
|
-
|
|
6919
|
+
const te = (q = _.current) == null ? void 0 : q.querySelector("input");
|
|
6920
|
+
ae.key === "Tab" && v && te === document.activeElement && b(!1);
|
|
6906
6921
|
};
|
|
6907
6922
|
if (v)
|
|
6908
|
-
return document.addEventListener("mousedown", R), document.addEventListener("keydown",
|
|
6909
|
-
document.removeEventListener("mousedown", R), document.removeEventListener("keydown",
|
|
6923
|
+
return document.addEventListener("mousedown", R), document.addEventListener("keydown", K), () => {
|
|
6924
|
+
document.removeEventListener("mousedown", R), document.removeEventListener("keydown", K);
|
|
6910
6925
|
};
|
|
6911
6926
|
}, [v]);
|
|
6912
|
-
const
|
|
6913
|
-
const { id:
|
|
6927
|
+
const Q = h.map((R) => {
|
|
6928
|
+
const { id: K, machineName: ae, name: te } = R;
|
|
6914
6929
|
return {
|
|
6915
|
-
id:
|
|
6916
|
-
label:
|
|
6917
|
-
value:
|
|
6918
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
6930
|
+
id: K,
|
|
6931
|
+
label: te,
|
|
6932
|
+
value: ae != null ? ae : te,
|
|
6933
|
+
optionDisplay: /* @__PURE__ */ e.createElement(M2, { option: R })
|
|
6919
6934
|
};
|
|
6920
|
-
}),
|
|
6935
|
+
}), j = /* @__PURE__ */ e.createElement("div", { ref: _, className: `${S}__combobox-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
6921
6936
|
v2,
|
|
6922
6937
|
{
|
|
6923
6938
|
disabled: t,
|
|
@@ -6932,16 +6947,16 @@ const us = (u) => {
|
|
|
6932
6947
|
onFocus: c,
|
|
6933
6948
|
onOptionSelect: X,
|
|
6934
6949
|
placeholder: d,
|
|
6935
|
-
options:
|
|
6950
|
+
options: Q,
|
|
6936
6951
|
showLabel: !1,
|
|
6937
6952
|
className: `${S}__combobox`
|
|
6938
6953
|
}
|
|
6939
|
-
)),
|
|
6954
|
+
)), Y = /* @__PURE__ */ e.createElement("div", { className: `${S}--inner` }, /* @__PURE__ */ e.createElement(
|
|
6940
6955
|
"span",
|
|
6941
6956
|
{
|
|
6942
6957
|
style: v ? { visibility: "visible" } : { visibility: "hidden" }
|
|
6943
6958
|
},
|
|
6944
|
-
|
|
6959
|
+
j
|
|
6945
6960
|
), /* @__PURE__ */ e.createElement(
|
|
6946
6961
|
"button",
|
|
6947
6962
|
{
|
|
@@ -6963,18 +6978,18 @@ const us = (u) => {
|
|
|
6963
6978
|
)
|
|
6964
6979
|
}
|
|
6965
6980
|
)
|
|
6966
|
-
)),
|
|
6981
|
+
)), P = /* @__PURE__ */ e.createElement("div", { className: `${S}--mobile-inner` }, j);
|
|
6967
6982
|
return /* @__PURE__ */ e.createElement(
|
|
6968
6983
|
"div",
|
|
6969
6984
|
L({
|
|
6970
|
-
className: N([S,
|
|
6985
|
+
className: N([S, U, f != null ? f : ""]),
|
|
6971
6986
|
id: s,
|
|
6972
6987
|
style: g ? null : A,
|
|
6973
6988
|
onKeyDown: g ? null : (R) => {
|
|
6974
|
-
R.key === "Escape" &&
|
|
6989
|
+
R.key === "Escape" && W();
|
|
6975
6990
|
}
|
|
6976
6991
|
}, E),
|
|
6977
|
-
g ?
|
|
6992
|
+
g ? P : Y
|
|
6978
6993
|
);
|
|
6979
6994
|
}, ot = (r) => {
|
|
6980
6995
|
var i = r, {
|
|
@@ -6994,7 +7009,7 @@ const us = (u) => {
|
|
|
6994
7009
|
}, a),
|
|
6995
7010
|
t
|
|
6996
7011
|
);
|
|
6997
|
-
},
|
|
7012
|
+
}, Ss = (f) => {
|
|
6998
7013
|
var E = f, {
|
|
6999
7014
|
children: t,
|
|
7000
7015
|
colorType: s = "default",
|
|
@@ -7023,59 +7038,59 @@ const us = (u) => {
|
|
|
7023
7038
|
"translationStrings",
|
|
7024
7039
|
"className"
|
|
7025
7040
|
]);
|
|
7026
|
-
const [C, y] =
|
|
7041
|
+
const [C, y] = G(!1);
|
|
7027
7042
|
let v = !1;
|
|
7028
|
-
const b =
|
|
7043
|
+
const b = $e(ke);
|
|
7029
7044
|
b && (v = b.isMobile);
|
|
7030
|
-
const p =
|
|
7045
|
+
const p = $e(zt);
|
|
7031
7046
|
p && (l = p.logoLinkContent);
|
|
7032
|
-
const m = "pds-navbar", _ = a ? `${m}--noBorder` : "", g = s !== "default" ? `${m}--${s}` : "", $ = v ? `${m}--isMobile` : `${m}--notMobile`,
|
|
7033
|
-
const
|
|
7047
|
+
const m = "pds-navbar", _ = a ? `${m}--noBorder` : "", g = s !== "default" ? `${m}--${s}` : "", $ = v ? `${m}--isMobile` : `${m}--notMobile`, M = (Y) => {
|
|
7048
|
+
const P = Y.key;
|
|
7034
7049
|
let R = !1;
|
|
7035
|
-
switch (
|
|
7050
|
+
switch (P) {
|
|
7036
7051
|
case "Esc":
|
|
7037
7052
|
case "Escape":
|
|
7038
7053
|
y(!1), R = !0;
|
|
7039
7054
|
break;
|
|
7040
7055
|
}
|
|
7041
|
-
R && (
|
|
7056
|
+
R && (Y.stopPropagation(), Y.preventDefault());
|
|
7042
7057
|
};
|
|
7043
|
-
ce(() => (window.addEventListener("keyup",
|
|
7044
|
-
window.removeEventListener("keyup",
|
|
7058
|
+
ce(() => (window.addEventListener("keyup", M), () => {
|
|
7059
|
+
window.removeEventListener("keyup", M);
|
|
7045
7060
|
}), []);
|
|
7046
|
-
const
|
|
7061
|
+
const z = () => y(!C), w = A1();
|
|
7047
7062
|
ce(() => {
|
|
7048
7063
|
if (v && t) {
|
|
7049
|
-
const
|
|
7064
|
+
const Y = g1(
|
|
7050
7065
|
document.querySelector(".pds-navbar__mobile")
|
|
7051
|
-
),
|
|
7052
|
-
C ?
|
|
7053
|
-
|
|
7054
|
-
}) :
|
|
7055
|
-
|
|
7066
|
+
), P = ["a", "button", "input", "select", "textarea"];
|
|
7067
|
+
C ? Y.forEach((R) => {
|
|
7068
|
+
P.includes(R.nodeName.toLowerCase()) && (R.tabIndex = 0);
|
|
7069
|
+
}) : Y.forEach((R) => {
|
|
7070
|
+
P.includes(R.nodeName.toLowerCase()) && (R.tabIndex = -1);
|
|
7056
7071
|
});
|
|
7057
7072
|
}
|
|
7058
7073
|
}, [C]);
|
|
7059
|
-
const
|
|
7060
|
-
|
|
7074
|
+
const H = (Y) => {
|
|
7075
|
+
Y.target.nodeName === "A" && y(!1);
|
|
7061
7076
|
};
|
|
7062
7077
|
ce(() => {
|
|
7063
7078
|
if (C) {
|
|
7064
|
-
const
|
|
7065
|
-
return
|
|
7066
|
-
|
|
7079
|
+
const Y = document.querySelector(".pds-navbar__bar-mobile"), P = document.querySelector(".pds-navbar__mobile");
|
|
7080
|
+
return Y.addEventListener("click", H), P.addEventListener("click", H), () => {
|
|
7081
|
+
Y.removeEventListener("click", H), P.removeEventListener("click", H);
|
|
7067
7082
|
};
|
|
7068
7083
|
}
|
|
7069
7084
|
}, [C]), ce(() => {
|
|
7070
7085
|
C ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
7071
7086
|
}, [C]);
|
|
7072
|
-
const k = je(t),
|
|
7087
|
+
const k = je(t), x = k["items-left"], V = k["items-right"];
|
|
7073
7088
|
let T = "default";
|
|
7074
7089
|
(s === "reverse" || s === "reverse-transparent") && (T = "reverse");
|
|
7075
|
-
const A =
|
|
7090
|
+
const A = Ce(l) ? l.props.children : null, S = Ce(l) && A ? Ve(l, {
|
|
7076
7091
|
children: /* @__PURE__ */ e.createElement("img", { className: `${m}__custom-logo`, src: c }),
|
|
7077
7092
|
"aria-label": A || null
|
|
7078
|
-
}) : /* @__PURE__ */ e.createElement("img", { className: `${m}__custom-logo`, src: c, alt: "" }),
|
|
7093
|
+
}) : /* @__PURE__ */ e.createElement("img", { className: `${m}__custom-logo`, src: c, alt: "" }), U = () => c ? S : /* @__PURE__ */ e.createElement(
|
|
7079
7094
|
y1,
|
|
7080
7095
|
{
|
|
7081
7096
|
colorType: T,
|
|
@@ -7088,20 +7103,20 @@ const us = (u) => {
|
|
|
7088
7103
|
{
|
|
7089
7104
|
className: `${m}__menu-toggle`,
|
|
7090
7105
|
"aria-label": C ? d.closeMobileNav : d.openMobileNav,
|
|
7091
|
-
onClick:
|
|
7106
|
+
onClick: z
|
|
7092
7107
|
},
|
|
7093
7108
|
/* @__PURE__ */ e.createElement(O, { iconName: C ? "xmark" : "bars", iconSize: "lg" })
|
|
7094
|
-
),
|
|
7095
|
-
const R =
|
|
7096
|
-
return R -
|
|
7109
|
+
), W = e.Children.toArray(t).sort((Y, P) => {
|
|
7110
|
+
const R = Ce(Y) && parseInt(Y.props["data-mobile-order"], 10) || 1 / 0, K = Ce(P) && parseInt(P.props["data-mobile-order"], 10) || 1 / 0;
|
|
7111
|
+
return R - K;
|
|
7097
7112
|
}), X = /* @__PURE__ */ e.createElement(
|
|
7098
7113
|
"div",
|
|
7099
7114
|
{
|
|
7100
7115
|
className: C ? `${m}__mobile ${m}__mobile--open` : `${m}__mobile ${m}__mobile--closed`,
|
|
7101
7116
|
ref: w
|
|
7102
7117
|
},
|
|
7103
|
-
/* @__PURE__ */ e.createElement(ot, null,
|
|
7104
|
-
),
|
|
7118
|
+
/* @__PURE__ */ e.createElement(ot, null, W)
|
|
7119
|
+
), Q = /* @__PURE__ */ e.createElement(
|
|
7105
7120
|
Z1,
|
|
7106
7121
|
{
|
|
7107
7122
|
focusTrapOptions: {
|
|
@@ -7109,8 +7124,8 @@ const us = (u) => {
|
|
|
7109
7124
|
initialFocus: !1
|
|
7110
7125
|
}
|
|
7111
7126
|
},
|
|
7112
|
-
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(ot, { className: `${m}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${m}__inner-mobile` },
|
|
7113
|
-
),
|
|
7127
|
+
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(ot, { className: `${m}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${m}__inner-mobile` }, U(), t && F)), /* @__PURE__ */ e.createElement(ot, null, t && X))
|
|
7128
|
+
), j = /* @__PURE__ */ e.createElement(ot, { width: n, className: `${m}__inner` }, !r && /* @__PURE__ */ e.createElement("div", { className: `${m}__logo` }, U()), /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, x ? /* @__PURE__ */ e.createElement("div", { className: `${m}__items-left` }, x) : /* @__PURE__ */ e.createElement("span", null), V && /* @__PURE__ */ e.createElement("div", { className: `${m}__items-right` }, V)));
|
|
7114
7129
|
return /* @__PURE__ */ e.createElement(
|
|
7115
7130
|
"header",
|
|
7116
7131
|
L({
|
|
@@ -7122,14 +7137,14 @@ const us = (u) => {
|
|
|
7122
7137
|
h != null ? h : ""
|
|
7123
7138
|
])
|
|
7124
7139
|
}, u),
|
|
7125
|
-
v ?
|
|
7140
|
+
v ? Q : j
|
|
7126
7141
|
);
|
|
7127
|
-
},
|
|
7142
|
+
}, z2 = ({
|
|
7128
7143
|
items: t,
|
|
7129
7144
|
label: s,
|
|
7130
7145
|
mobileMenuMaxWidth: n = 640
|
|
7131
7146
|
}) => {
|
|
7132
|
-
const [a, r] =
|
|
7147
|
+
const [a, r] = G(!1), [i, l] = G(0);
|
|
7133
7148
|
ce(() => (l(window.innerWidth), window.addEventListener("resize", c), () => {
|
|
7134
7149
|
window.removeEventListener("resize", c);
|
|
7135
7150
|
}), []);
|
|
@@ -7182,7 +7197,7 @@ const us = (u) => {
|
|
|
7182
7197
|
!m.isSeparator && m.linkContent
|
|
7183
7198
|
))
|
|
7184
7199
|
));
|
|
7185
|
-
},
|
|
7200
|
+
}, Is = (l) => {
|
|
7186
7201
|
var c = l, {
|
|
7187
7202
|
ariaLabel: t = "Main Navigation",
|
|
7188
7203
|
colorType: s = "default",
|
|
@@ -7196,7 +7211,7 @@ const us = (u) => {
|
|
|
7196
7211
|
"mobileMenuMaxWidth",
|
|
7197
7212
|
"className"
|
|
7198
7213
|
]);
|
|
7199
|
-
const [o, d] =
|
|
7214
|
+
const [o, d] = G(1025), [h, u] = G(null), [f, E] = G(-1), [C, y] = G(null), [v, b] = G({
|
|
7200
7215
|
container: null,
|
|
7201
7216
|
containerChildren: []
|
|
7202
7217
|
});
|
|
@@ -7213,24 +7228,24 @@ const us = (u) => {
|
|
|
7213
7228
|
"pds-nav-menu__dropdown--separator"
|
|
7214
7229
|
) && C == "up" ? u(h - 1) : v.containerChildren[h].children[0].focus());
|
|
7215
7230
|
}, [h]), ce(() => {
|
|
7216
|
-
f != -1 && (
|
|
7231
|
+
f != -1 && (M.current[f].children[0].blur(), M.current[f].children[0].focus({
|
|
7217
7232
|
focusVisible: !0
|
|
7218
7233
|
}));
|
|
7219
7234
|
}, [f]);
|
|
7220
|
-
const _ = "pds-nav-menu", g = s !== "default" ? `${_}--${s}` : "", $ = m ? `${_}--isMobile` : `${_}--notMobile`,
|
|
7221
|
-
const
|
|
7235
|
+
const _ = "pds-nav-menu", g = s !== "default" ? `${_}--${s}` : "", $ = m ? `${_}--isMobile` : `${_}--notMobile`, M = de([]), z = (k) => {
|
|
7236
|
+
const x = M.current.length - 1, F = {
|
|
7222
7237
|
ArrowRight: () => {
|
|
7223
|
-
u(-1), E(f === -1 ? 1 : f ===
|
|
7238
|
+
u(-1), E(f === -1 ? 1 : f === x ? 0 : f + 1);
|
|
7224
7239
|
},
|
|
7225
7240
|
ArrowLeft: () => {
|
|
7226
|
-
u(-1), E(f === 0 ?
|
|
7241
|
+
u(-1), E(f === 0 ? x : f - 1);
|
|
7227
7242
|
},
|
|
7228
7243
|
ArrowDown: () => {
|
|
7229
|
-
var
|
|
7244
|
+
var Q, j, Y, P;
|
|
7230
7245
|
y("down");
|
|
7231
|
-
const
|
|
7232
|
-
v.container !=
|
|
7233
|
-
container:
|
|
7246
|
+
const W = k.target.parentNode.children[1], X = ((j = (Q = k.target) == null ? void 0 : Q.parentNode.children[1]) == null ? void 0 : j.children) || ((P = (Y = k.target) == null ? void 0 : Y.parentNode.parentNode.children[1]) == null ? void 0 : P.children);
|
|
7247
|
+
v.container != W && W != null && b({
|
|
7248
|
+
container: W,
|
|
7234
7249
|
containerChildren: [...X]
|
|
7235
7250
|
}), h === null || h == v.containerChildren.length - 1 ? u(0) : u(parseInt(h) + 1);
|
|
7236
7251
|
},
|
|
@@ -7243,25 +7258,25 @@ const us = (u) => {
|
|
|
7243
7258
|
if (k.isActive || k.linkContent && k.linkContent.props.className && k.linkContent.props.className.includes("pds-isActive"))
|
|
7244
7259
|
return !0;
|
|
7245
7260
|
if (k.links) {
|
|
7246
|
-
for (let
|
|
7247
|
-
if (w(k.links[
|
|
7261
|
+
for (let x = 0; x < k.links.length; x++)
|
|
7262
|
+
if (w(k.links[x]))
|
|
7248
7263
|
return !0;
|
|
7249
7264
|
}
|
|
7250
7265
|
return !1;
|
|
7251
|
-
},
|
|
7252
|
-
return n.map((k,
|
|
7253
|
-
const
|
|
7254
|
-
k.links ?
|
|
7266
|
+
}, H = [];
|
|
7267
|
+
return n.map((k, x) => {
|
|
7268
|
+
const V = `item-${tt()}`, T = k.id ? k.id : V;
|
|
7269
|
+
k.links ? H.push(
|
|
7255
7270
|
/* @__PURE__ */ e.createElement(
|
|
7256
7271
|
"li",
|
|
7257
7272
|
{
|
|
7258
|
-
key: `${
|
|
7273
|
+
key: `${x}-dropdown`,
|
|
7259
7274
|
id: T,
|
|
7260
|
-
ref: (A) =>
|
|
7275
|
+
ref: (A) => M.current[x] = A,
|
|
7261
7276
|
className: `${_}__item ${_}__item--top-level ${_}__item--has-children ${w(k) === !0 ? `${_}__item--active` : ""}`
|
|
7262
7277
|
},
|
|
7263
7278
|
/* @__PURE__ */ e.createElement(
|
|
7264
|
-
|
|
7279
|
+
z2,
|
|
7265
7280
|
{
|
|
7266
7281
|
label: k.label,
|
|
7267
7282
|
items: k.links,
|
|
@@ -7269,13 +7284,13 @@ const us = (u) => {
|
|
|
7269
7284
|
}
|
|
7270
7285
|
)
|
|
7271
7286
|
)
|
|
7272
|
-
) :
|
|
7287
|
+
) : H.push(
|
|
7273
7288
|
/* @__PURE__ */ e.createElement(
|
|
7274
7289
|
"li",
|
|
7275
7290
|
{
|
|
7276
|
-
key:
|
|
7291
|
+
key: x,
|
|
7277
7292
|
id: T,
|
|
7278
|
-
ref: (A) =>
|
|
7293
|
+
ref: (A) => M.current[x] = A,
|
|
7279
7294
|
className: `${_}__item ${_}__item--top-level ${_}__item--has-link ${w(k) === !0 ? `${_}__item--active` : ""}`
|
|
7280
7295
|
},
|
|
7281
7296
|
k.linkContent
|
|
@@ -7287,12 +7302,12 @@ const us = (u) => {
|
|
|
7287
7302
|
className: N([_, g, $, r]),
|
|
7288
7303
|
"aria-label": t,
|
|
7289
7304
|
onKeyDown: (k) => {
|
|
7290
|
-
|
|
7305
|
+
z(k);
|
|
7291
7306
|
}
|
|
7292
7307
|
}, i),
|
|
7293
|
-
/* @__PURE__ */ e.createElement("ul", { className: `${_}__menu` },
|
|
7308
|
+
/* @__PURE__ */ e.createElement("ul", { className: `${_}__menu` }, H)
|
|
7294
7309
|
);
|
|
7295
|
-
},
|
|
7310
|
+
}, Ts = (d) => {
|
|
7296
7311
|
var h = d, {
|
|
7297
7312
|
ariaLabel: t,
|
|
7298
7313
|
hasMobileMenu: s = !0,
|
|
@@ -7315,7 +7330,7 @@ const us = (u) => {
|
|
|
7315
7330
|
"mobileMenuSelectTextFallback",
|
|
7316
7331
|
"className"
|
|
7317
7332
|
]);
|
|
7318
|
-
const u = "pds-side-nav", [f, E] =
|
|
7333
|
+
const u = "pds-side-nav", [f, E] = G(1025);
|
|
7319
7334
|
ce(() => (E(window.innerWidth), window.addEventListener("resize", C), () => {
|
|
7320
7335
|
window.removeEventListener("resize", C);
|
|
7321
7336
|
}), []);
|
|
@@ -7327,67 +7342,67 @@ const us = (u) => {
|
|
|
7327
7342
|
"aria-expanded",
|
|
7328
7343
|
$.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
7329
7344
|
), $.parentElement.nextElementSibling.classList.toggle(`${u}__menu--expanded`);
|
|
7330
|
-
}, b = (g) => i1.toArray(g).some(($) =>
|
|
7331
|
-
const { linkContent:
|
|
7345
|
+
}, b = (g) => i1.toArray(g).some(($) => Ce($) ? $.type && $.type.displayName === "Tally" ? !0 : b($.props.children) : !1), p = (g, $) => {
|
|
7346
|
+
const { linkContent: M, links: z } = g, w = b(M), H = `${u}__item`, k = `${u}__menu`;
|
|
7332
7347
|
return /* @__PURE__ */ e.createElement(
|
|
7333
7348
|
"li",
|
|
7334
7349
|
{
|
|
7335
7350
|
key: $,
|
|
7336
7351
|
className: N([
|
|
7337
|
-
|
|
7338
|
-
`${
|
|
7339
|
-
|
|
7340
|
-
|
|
7352
|
+
H,
|
|
7353
|
+
`${H}--top-level`,
|
|
7354
|
+
z ? `${H}--has-children` : null,
|
|
7355
|
+
be(g) ? `${H}--active` : null,
|
|
7341
7356
|
w ? "with-tally" : null
|
|
7342
7357
|
// Add class if item contains a Tally component
|
|
7343
7358
|
])
|
|
7344
7359
|
},
|
|
7345
|
-
|
|
7360
|
+
z ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${H}-wrapper` }, Ct(M, z), /* @__PURE__ */ e.createElement(
|
|
7346
7361
|
"button",
|
|
7347
7362
|
{
|
|
7348
|
-
"aria-expanded":
|
|
7363
|
+
"aria-expanded": be(g),
|
|
7349
7364
|
className: N([
|
|
7350
7365
|
`${u}__toggle`,
|
|
7351
|
-
|
|
7366
|
+
be(g) ? `${u}__toggle--expanded` : null
|
|
7352
7367
|
]),
|
|
7353
7368
|
onClick: v
|
|
7354
7369
|
},
|
|
7355
7370
|
/* @__PURE__ */ e.createElement(O, { iconName: "angleDown", iconSize: "md" }),
|
|
7356
|
-
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Ze(
|
|
7371
|
+
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Ze(M)} ${a.submenu}`)
|
|
7357
7372
|
)), /* @__PURE__ */ e.createElement(
|
|
7358
7373
|
"ul",
|
|
7359
7374
|
{
|
|
7360
7375
|
className: N([
|
|
7361
7376
|
k,
|
|
7362
7377
|
`${k}--second-level`,
|
|
7363
|
-
|
|
7378
|
+
be(g) ? `${k}--expanded` : null
|
|
7364
7379
|
])
|
|
7365
7380
|
},
|
|
7366
|
-
|
|
7381
|
+
z.map((x, V) => {
|
|
7367
7382
|
const T = b(
|
|
7368
|
-
|
|
7383
|
+
x.linkContent
|
|
7369
7384
|
);
|
|
7370
7385
|
return /* @__PURE__ */ e.createElement(
|
|
7371
7386
|
"li",
|
|
7372
7387
|
{
|
|
7373
|
-
key:
|
|
7388
|
+
key: V,
|
|
7374
7389
|
className: N([
|
|
7375
|
-
|
|
7376
|
-
`${
|
|
7377
|
-
|
|
7390
|
+
H,
|
|
7391
|
+
`${H}--second-level`,
|
|
7392
|
+
be(x) ? `${H}--active` : null,
|
|
7378
7393
|
T ? "with-tally" : null
|
|
7379
7394
|
// Add class for second-level items
|
|
7380
7395
|
])
|
|
7381
7396
|
},
|
|
7382
7397
|
Ct(
|
|
7383
|
-
|
|
7384
|
-
|
|
7398
|
+
x.linkContent,
|
|
7399
|
+
x.links
|
|
7385
7400
|
)
|
|
7386
7401
|
);
|
|
7387
7402
|
})
|
|
7388
7403
|
)) : (
|
|
7389
7404
|
// If no top-level child links are present, render the link content as is.
|
|
7390
|
-
|
|
7405
|
+
M
|
|
7391
7406
|
)
|
|
7392
7407
|
);
|
|
7393
7408
|
}, m = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading` }, n), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map((g, $) => p(g, $)))), _ = /* @__PURE__ */ e.createElement(
|
|
@@ -7406,7 +7421,7 @@ const us = (u) => {
|
|
|
7406
7421
|
}, o),
|
|
7407
7422
|
y && s ? _ : m
|
|
7408
7423
|
);
|
|
7409
|
-
},
|
|
7424
|
+
}, As = (d) => {
|
|
7410
7425
|
var h = d, {
|
|
7411
7426
|
ariaLabel: t,
|
|
7412
7427
|
hasMobileMenu: s = !0,
|
|
@@ -7429,27 +7444,27 @@ const us = (u) => {
|
|
|
7429
7444
|
"mobileMenuSelectTextFallback",
|
|
7430
7445
|
"className"
|
|
7431
7446
|
]);
|
|
7432
|
-
const u = "pds-side-nav-compact", f = `${u}__item`, E = `${u}__menu`, [C, y] =
|
|
7447
|
+
const u = "pds-side-nav-compact", f = `${u}__item`, E = `${u}__menu`, [C, y] = G(1025);
|
|
7433
7448
|
ce(() => (y(window.innerWidth), window.addEventListener("resize", v), () => {
|
|
7434
7449
|
window.removeEventListener("resize", v);
|
|
7435
7450
|
}), []);
|
|
7436
7451
|
const v = () => {
|
|
7437
7452
|
y(window.innerWidth);
|
|
7438
|
-
}, b = C <= i, p = (
|
|
7439
|
-
const w =
|
|
7453
|
+
}, b = C <= i, p = (z) => {
|
|
7454
|
+
const w = z.target;
|
|
7440
7455
|
w.classList.toggle(`${u}__toggle--expanded`), w.setAttribute(
|
|
7441
7456
|
"aria-expanded",
|
|
7442
7457
|
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
7443
7458
|
), w.parentElement.nextElementSibling.classList.toggle(`${E}--expanded`);
|
|
7444
|
-
}, m = { 2: "second", 3: "third", 4: "fourth" }, _ = (
|
|
7445
|
-
const k = m[
|
|
7459
|
+
}, m = { 2: "second", 3: "third", 4: "fourth" }, _ = (z, w, H) => {
|
|
7460
|
+
const k = m[z], x = `${E}--${k}-level`, V = `${f}--${k}-level`, T = z + 1;
|
|
7446
7461
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${f}-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
7447
7462
|
"button",
|
|
7448
7463
|
{
|
|
7449
|
-
"aria-expanded":
|
|
7464
|
+
"aria-expanded": be(w),
|
|
7450
7465
|
className: N([
|
|
7451
7466
|
`${u}__toggle`,
|
|
7452
|
-
|
|
7467
|
+
be(w) ? `${u}__toggle--expanded` : null
|
|
7453
7468
|
]),
|
|
7454
7469
|
onClick: p
|
|
7455
7470
|
},
|
|
@@ -7460,8 +7475,8 @@ const us = (u) => {
|
|
|
7460
7475
|
{
|
|
7461
7476
|
className: N([
|
|
7462
7477
|
E,
|
|
7463
|
-
|
|
7464
|
-
|
|
7478
|
+
x,
|
|
7479
|
+
be(w) ? `${E}--expanded` : null
|
|
7465
7480
|
])
|
|
7466
7481
|
},
|
|
7467
7482
|
w.links.map((A, S) => /* @__PURE__ */ e.createElement(
|
|
@@ -7470,8 +7485,8 @@ const us = (u) => {
|
|
|
7470
7485
|
key: `${S}-${k}`,
|
|
7471
7486
|
className: N([
|
|
7472
7487
|
f,
|
|
7473
|
-
|
|
7474
|
-
|
|
7488
|
+
V,
|
|
7489
|
+
be(A) ? `${f}--active` : null
|
|
7475
7490
|
])
|
|
7476
7491
|
},
|
|
7477
7492
|
A.links && T in m ? _(
|
|
@@ -7481,8 +7496,8 @@ const us = (u) => {
|
|
|
7481
7496
|
) : A.linkContent
|
|
7482
7497
|
))
|
|
7483
7498
|
));
|
|
7484
|
-
}, g = (
|
|
7485
|
-
const { linkContent:
|
|
7499
|
+
}, g = (z, w) => {
|
|
7500
|
+
const { linkContent: H, links: k } = z;
|
|
7486
7501
|
return /* @__PURE__ */ e.createElement(
|
|
7487
7502
|
"li",
|
|
7488
7503
|
{
|
|
@@ -7490,12 +7505,12 @@ const us = (u) => {
|
|
|
7490
7505
|
className: N([
|
|
7491
7506
|
f,
|
|
7492
7507
|
`${f}--top-level`,
|
|
7493
|
-
|
|
7508
|
+
be(z) ? `${f}--active` : null
|
|
7494
7509
|
])
|
|
7495
7510
|
},
|
|
7496
|
-
k ? _(2,
|
|
7511
|
+
k ? _(2, z) : H
|
|
7497
7512
|
);
|
|
7498
|
-
}, $ = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading` }, n), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map((
|
|
7513
|
+
}, $ = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading` }, n), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map((z, w) => g(z, w)))), M = /* @__PURE__ */ e.createElement(
|
|
7499
7514
|
Xt,
|
|
7500
7515
|
{
|
|
7501
7516
|
headingText: n,
|
|
@@ -7509,9 +7524,9 @@ const us = (u) => {
|
|
|
7509
7524
|
"aria-label": t,
|
|
7510
7525
|
className: N([u, c != null ? c : ""])
|
|
7511
7526
|
}, o),
|
|
7512
|
-
b && s ?
|
|
7527
|
+
b && s ? M : $
|
|
7513
7528
|
);
|
|
7514
|
-
},
|
|
7529
|
+
}, H2 = ({
|
|
7515
7530
|
buttonLabel: t = "Toggle dropdown",
|
|
7516
7531
|
filterLabel: s = "Filter items",
|
|
7517
7532
|
filterPlaceholder: n = "Filter items...",
|
|
@@ -7519,22 +7534,22 @@ const us = (u) => {
|
|
|
7519
7534
|
minFilterItems: r = 5,
|
|
7520
7535
|
noResultsText: i = "No results found"
|
|
7521
7536
|
}) => {
|
|
7522
|
-
const [l, c] =
|
|
7537
|
+
const [l, c] = G(!1), [o, d] = G(null), [h, u] = G(a), [f, E] = G(""), C = a.length >= r, y = "pds-tab-menu", v = `${y}__dropdown-menu`, b = C ? `${v}--scroll` : null, p = `${y}__dropdown-item`, m = de([]), { context: _, refs: g } = Se({
|
|
7523
7538
|
open: l,
|
|
7524
7539
|
onOpenChange: c,
|
|
7525
7540
|
whileElementsMounted: Be
|
|
7526
7541
|
}), $ = Xe(_, {
|
|
7527
7542
|
event: "mousedown"
|
|
7528
|
-
}),
|
|
7543
|
+
}), M = Ie(_), z = Te(_, { role: "listbox" }), w = ct(_, {
|
|
7529
7544
|
listRef: m,
|
|
7530
7545
|
activeIndex: o,
|
|
7531
7546
|
onNavigate: d,
|
|
7532
7547
|
loop: !0,
|
|
7533
7548
|
focusItemOnHover: !0,
|
|
7534
7549
|
focusItemOnOpen: !1
|
|
7535
|
-
}), { getReferenceProps:
|
|
7536
|
-
[
|
|
7537
|
-
), { isMounted:
|
|
7550
|
+
}), { getReferenceProps: H, getFloatingProps: k, getItemProps: x } = Ae(
|
|
7551
|
+
[z, M, w, $]
|
|
7552
|
+
), { isMounted: V, styles: T } = Ye(_, {
|
|
7538
7553
|
duration: {
|
|
7539
7554
|
open: 300,
|
|
7540
7555
|
close: 150
|
|
@@ -7549,55 +7564,55 @@ const us = (u) => {
|
|
|
7549
7564
|
opacity: 0
|
|
7550
7565
|
}
|
|
7551
7566
|
}), A = (R) => {
|
|
7552
|
-
var
|
|
7553
|
-
R.preventDefault(), R.key === "Enter" && ((
|
|
7554
|
-
}, S = (R,
|
|
7555
|
-
const
|
|
7556
|
-
E(
|
|
7557
|
-
const
|
|
7558
|
-
u(
|
|
7567
|
+
var K;
|
|
7568
|
+
R.preventDefault(), R.key === "Enter" && ((K = m.current[o].querySelector("a")) == null || K.click()), R.key === "Tab" && R.shiftKey && (C ? document.getElementById("links-filter").focus() : c(!1));
|
|
7569
|
+
}, S = (R, K) => Ze(R.linkContent).toLowerCase().includes(K.toLowerCase()), U = (R) => {
|
|
7570
|
+
const K = R.target.value;
|
|
7571
|
+
E(K);
|
|
7572
|
+
const ae = a.filter((te) => S(te, K));
|
|
7573
|
+
u(ae);
|
|
7559
7574
|
};
|
|
7560
7575
|
ce(() => {
|
|
7561
|
-
const R = a.filter((
|
|
7576
|
+
const R = a.filter((K) => S(K, f));
|
|
7562
7577
|
u(R);
|
|
7563
7578
|
}, [a]);
|
|
7564
7579
|
const F = () => {
|
|
7565
7580
|
E(""), u(a);
|
|
7566
|
-
},
|
|
7567
|
-
(R,
|
|
7568
|
-
),
|
|
7581
|
+
}, W = a.reduce(
|
|
7582
|
+
(R, K) => Ze(R.linkContent).length > Ze(K.linkContent).length ? R : K
|
|
7583
|
+
), Q = {
|
|
7569
7584
|
minWidth: "13rem",
|
|
7570
7585
|
width: `${Ze(
|
|
7571
|
-
|
|
7586
|
+
W.linkContent
|
|
7572
7587
|
).length + 2}ch`
|
|
7573
|
-
},
|
|
7588
|
+
}, j = /* @__PURE__ */ e.createElement(O, { iconName: "check", className: `${y}__active-icon` }), Y = C && /* @__PURE__ */ e.createElement("div", { className: `${y}__filter` }, /* @__PURE__ */ e.createElement(
|
|
7574
7589
|
$1,
|
|
7575
7590
|
{
|
|
7576
7591
|
hasClearButton: !0,
|
|
7577
7592
|
onClear: F,
|
|
7578
7593
|
id: "links-filter",
|
|
7579
7594
|
label: s,
|
|
7580
|
-
onChange:
|
|
7595
|
+
onChange: U,
|
|
7581
7596
|
placeholder: n,
|
|
7582
7597
|
showLabel: !1,
|
|
7583
7598
|
type: "search",
|
|
7584
7599
|
autoComplete: "off"
|
|
7585
7600
|
}
|
|
7586
|
-
)),
|
|
7587
|
-
const
|
|
7601
|
+
)), P = h.map((R, K) => {
|
|
7602
|
+
const ae = R.isActive ? `${p}--active` : null;
|
|
7588
7603
|
return /* @__PURE__ */ e.createElement(
|
|
7589
7604
|
"li",
|
|
7590
7605
|
L({
|
|
7591
|
-
key:
|
|
7592
|
-
className: N([p,
|
|
7593
|
-
ref: (
|
|
7594
|
-
m.current[
|
|
7606
|
+
key: K,
|
|
7607
|
+
className: N([p, ae]),
|
|
7608
|
+
ref: (te) => {
|
|
7609
|
+
m.current[K] = te;
|
|
7595
7610
|
},
|
|
7596
|
-
tabIndex:
|
|
7611
|
+
tabIndex: K === o ? 0 : -1,
|
|
7597
7612
|
onKeyDown: A
|
|
7598
|
-
},
|
|
7613
|
+
}, x()),
|
|
7599
7614
|
R.linkContent,
|
|
7600
|
-
R.isActive &&
|
|
7615
|
+
R.isActive && j
|
|
7601
7616
|
);
|
|
7602
7617
|
});
|
|
7603
7618
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
@@ -7605,7 +7620,7 @@ const us = (u) => {
|
|
|
7605
7620
|
L({
|
|
7606
7621
|
className: `${y}__dropdown-trigger`,
|
|
7607
7622
|
ref: g.setReference
|
|
7608
|
-
},
|
|
7623
|
+
}, H({
|
|
7609
7624
|
"aria-expanded": l,
|
|
7610
7625
|
"aria-label": t
|
|
7611
7626
|
})),
|
|
@@ -7616,7 +7631,7 @@ const us = (u) => {
|
|
|
7616
7631
|
className: `${y}__dropdown-trigger-icon`
|
|
7617
7632
|
}
|
|
7618
7633
|
)
|
|
7619
|
-
),
|
|
7634
|
+
), V && /* @__PURE__ */ e.createElement(
|
|
7620
7635
|
"div",
|
|
7621
7636
|
L({
|
|
7622
7637
|
ref: g.setFloating,
|
|
@@ -7624,11 +7639,11 @@ const us = (u) => {
|
|
|
7624
7639
|
}, k({
|
|
7625
7640
|
style: L({
|
|
7626
7641
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
7627
|
-
},
|
|
7642
|
+
}, Q)
|
|
7628
7643
|
})),
|
|
7629
|
-
/* @__PURE__ */ e.createElement("div", { style: L({}, T) },
|
|
7644
|
+
/* @__PURE__ */ e.createElement("div", { style: L({}, T) }, Y, /* @__PURE__ */ e.createElement("ul", { className: N([v, b]) }, P.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${y}__no-results` }, i) : P))
|
|
7630
7645
|
));
|
|
7631
|
-
},
|
|
7646
|
+
}, Ds = (r) => {
|
|
7632
7647
|
var i = r, {
|
|
7633
7648
|
ariaLabel: t,
|
|
7634
7649
|
menuItems: s,
|
|
@@ -7639,7 +7654,7 @@ const us = (u) => {
|
|
|
7639
7654
|
"className"
|
|
7640
7655
|
]);
|
|
7641
7656
|
let l = !1;
|
|
7642
|
-
const c =
|
|
7657
|
+
const c = $e(ke);
|
|
7643
7658
|
c && (l = c.isMobile);
|
|
7644
7659
|
const o = "pds-tab-menu", d = l ? `${o}--isMobile` : null, h = ({
|
|
7645
7660
|
dropdownSettings: f,
|
|
@@ -7650,8 +7665,8 @@ const us = (u) => {
|
|
|
7650
7665
|
promoteActiveChildLink: b = !1
|
|
7651
7666
|
}) => {
|
|
7652
7667
|
const p = `${o}__item`, m = Kt(v), _ = (g, $) => {
|
|
7653
|
-
let
|
|
7654
|
-
return typeof g == "object" && ($ ?
|
|
7668
|
+
let M = null;
|
|
7669
|
+
return typeof g == "object" && ($ ? M = Ve(g, he(L({}, g.props), {
|
|
7655
7670
|
children: [
|
|
7656
7671
|
/* @__PURE__ */ e.createElement("span", { key: $, className: `${o}__item-inner` }, /* @__PURE__ */ e.createElement(
|
|
7657
7672
|
O,
|
|
@@ -7662,7 +7677,7 @@ const us = (u) => {
|
|
|
7662
7677
|
}
|
|
7663
7678
|
), g.props.children)
|
|
7664
7679
|
]
|
|
7665
|
-
})) :
|
|
7680
|
+
})) : M = g), M;
|
|
7666
7681
|
};
|
|
7667
7682
|
return /* @__PURE__ */ e.createElement(
|
|
7668
7683
|
"li",
|
|
@@ -7674,7 +7689,7 @@ const us = (u) => {
|
|
|
7674
7689
|
},
|
|
7675
7690
|
_(b ? m : y, E),
|
|
7676
7691
|
v && /* @__PURE__ */ e.createElement(
|
|
7677
|
-
|
|
7692
|
+
H2,
|
|
7678
7693
|
{
|
|
7679
7694
|
links: v,
|
|
7680
7695
|
buttonLabel: f == null ? void 0 : f.buttonLabel,
|
|
@@ -7691,7 +7706,7 @@ const us = (u) => {
|
|
|
7691
7706
|
key: E,
|
|
7692
7707
|
dropdownSettings: f.dropdownSettings,
|
|
7693
7708
|
icon: f.icon,
|
|
7694
|
-
isActive:
|
|
7709
|
+
isActive: be(f),
|
|
7695
7710
|
linkContent: f.linkContent,
|
|
7696
7711
|
links: f.links,
|
|
7697
7712
|
promoteActiveChildLink: f.promoteActiveChildLink
|
|
@@ -7705,7 +7720,7 @@ const us = (u) => {
|
|
|
7705
7720
|
}, a),
|
|
7706
7721
|
l ? /* @__PURE__ */ e.createElement("div", { className: `${o}__mobile-menu-wrapper` }, u) : u
|
|
7707
7722
|
);
|
|
7708
|
-
},
|
|
7723
|
+
}, Os = (o) => {
|
|
7709
7724
|
var d = o, {
|
|
7710
7725
|
ariaLabel: t = "User menu",
|
|
7711
7726
|
menuItems: s,
|
|
@@ -7723,18 +7738,18 @@ const us = (u) => {
|
|
|
7723
7738
|
"withinNavbar",
|
|
7724
7739
|
"className"
|
|
7725
7740
|
]);
|
|
7726
|
-
const [h, u] =
|
|
7741
|
+
const [h, u] = G(null), [f, E] = G(!1), C = de([]), y = de([]);
|
|
7727
7742
|
let v = !1;
|
|
7728
|
-
const b =
|
|
7743
|
+
const b = $e(ke);
|
|
7729
7744
|
b && (v = b.isMobile);
|
|
7730
|
-
const p = i && v, m = "pds-user-menu", _ = p ? `${m}--isMobile` : null, g = `${m}__menu`, { refs: $, floatingStyles:
|
|
7745
|
+
const p = i && v, m = "pds-user-menu", _ = p ? `${m}--isMobile` : null, g = `${m}__menu`, { refs: $, floatingStyles: M, context: z } = Se({
|
|
7731
7746
|
placement: "bottom-end",
|
|
7732
7747
|
open: f,
|
|
7733
7748
|
onOpenChange: E,
|
|
7734
7749
|
middleware: [$t(12), wt(), yt()],
|
|
7735
7750
|
whileElementsMounted: Be
|
|
7736
|
-
}), w = Xe(
|
|
7737
|
-
listRef:
|
|
7751
|
+
}), w = Xe(z, { event: "mousedown" }), H = Ie(z), k = Te(z, { role: "menu" }), x = de([]), V = ct(z, {
|
|
7752
|
+
listRef: x,
|
|
7738
7753
|
activeIndex: h,
|
|
7739
7754
|
onNavigate: u,
|
|
7740
7755
|
loop: !0,
|
|
@@ -7742,8 +7757,8 @@ const us = (u) => {
|
|
|
7742
7757
|
focusItemOnOpen: !1,
|
|
7743
7758
|
focusItemOnHover: !0
|
|
7744
7759
|
}), { getReferenceProps: T, getFloatingProps: A, getItemProps: S } = Ae(
|
|
7745
|
-
[
|
|
7746
|
-
), { isMounted:
|
|
7760
|
+
[H, k, w, V]
|
|
7761
|
+
), { isMounted: U, styles: F } = Ye(z, {
|
|
7747
7762
|
duration: {
|
|
7748
7763
|
open: 300,
|
|
7749
7764
|
close: 150
|
|
@@ -7757,7 +7772,7 @@ const us = (u) => {
|
|
|
7757
7772
|
close: {
|
|
7758
7773
|
opacity: 0
|
|
7759
7774
|
}
|
|
7760
|
-
}),
|
|
7775
|
+
}), W = /* @__PURE__ */ e.createElement(
|
|
7761
7776
|
Pt,
|
|
7762
7777
|
{
|
|
7763
7778
|
hasUserFallback: !0,
|
|
@@ -7766,33 +7781,33 @@ const us = (u) => {
|
|
|
7766
7781
|
uniqueId: n,
|
|
7767
7782
|
className: `${m}__avatar`
|
|
7768
7783
|
}
|
|
7769
|
-
), X = /* @__PURE__ */ e.createElement(O, { iconName: "angleDown", className: `${m}__trigger-icon` }),
|
|
7784
|
+
), X = /* @__PURE__ */ e.createElement(O, { iconName: "angleDown", className: `${m}__trigger-icon` }), Q = /* @__PURE__ */ e.createElement("li", { className: `${m}__user-details`, role: "presentation" }, p ? null : /* @__PURE__ */ e.createElement("div", { className: `${m}__user-name` }, r), /* @__PURE__ */ e.createElement("div", { className: `${m}__user-email` }, n));
|
|
7770
7785
|
s.forEach((q) => {
|
|
7771
|
-
const
|
|
7772
|
-
C.current.push(
|
|
7786
|
+
const se = q.id ? q.id : tt();
|
|
7787
|
+
C.current.push(se), y.current.push(q);
|
|
7773
7788
|
});
|
|
7774
|
-
const
|
|
7775
|
-
const
|
|
7776
|
-
|
|
7777
|
-
},
|
|
7778
|
-
q.preventDefault(), q.key === "Enter" &&
|
|
7779
|
-
},
|
|
7780
|
-
|
|
7781
|
-
}, R = s.map((q,
|
|
7782
|
-
const
|
|
7789
|
+
const j = (q) => {
|
|
7790
|
+
const se = C.current.indexOf(q), ne = y.current[se];
|
|
7791
|
+
ne.linkContent && !ne.disabled && (x.current[se].querySelector("a").click(), E(!1)), ne.callback && !ne.disabled && (ne.callback(ne), E(!1));
|
|
7792
|
+
}, Y = (q) => {
|
|
7793
|
+
q.preventDefault(), q.key === "Enter" && j(q.currentTarget.id);
|
|
7794
|
+
}, P = (q) => {
|
|
7795
|
+
j(q.currentTarget.id);
|
|
7796
|
+
}, R = s.map((q, se) => {
|
|
7797
|
+
const ne = C.current[se], me = `${m}__item`, ue = q.disabled ? `${me}--disabled` : null;
|
|
7783
7798
|
return /* @__PURE__ */ e.createElement(
|
|
7784
7799
|
"li",
|
|
7785
7800
|
L({
|
|
7786
|
-
key:
|
|
7787
|
-
id:
|
|
7788
|
-
className: N([
|
|
7801
|
+
key: ne,
|
|
7802
|
+
id: ne,
|
|
7803
|
+
className: N([me, ue]),
|
|
7789
7804
|
role: "menuitem",
|
|
7790
|
-
tabIndex: h ===
|
|
7805
|
+
tabIndex: h === se ? 0 : -1,
|
|
7791
7806
|
ref: (ge) => {
|
|
7792
|
-
|
|
7807
|
+
x.current[se] = ge;
|
|
7793
7808
|
},
|
|
7794
|
-
onKeyDown:
|
|
7795
|
-
}, S({ onClick: (ge) =>
|
|
7809
|
+
onKeyDown: Y
|
|
7810
|
+
}, S({ onClick: (ge) => P(ge) })),
|
|
7796
7811
|
q.iconName && /* @__PURE__ */ e.createElement(
|
|
7797
7812
|
O,
|
|
7798
7813
|
{
|
|
@@ -7803,39 +7818,39 @@ const us = (u) => {
|
|
|
7803
7818
|
),
|
|
7804
7819
|
q.linkContent ? q.linkContent : q.label
|
|
7805
7820
|
);
|
|
7806
|
-
}),
|
|
7821
|
+
}), K = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
7807
7822
|
"button",
|
|
7808
7823
|
L({
|
|
7809
7824
|
className: `${m}__trigger`,
|
|
7810
7825
|
"aria-label": t,
|
|
7811
7826
|
ref: $.setReference
|
|
7812
7827
|
}, T()),
|
|
7813
|
-
|
|
7814
|
-
),
|
|
7828
|
+
W
|
|
7829
|
+
), U && /* @__PURE__ */ e.createElement(
|
|
7815
7830
|
"div",
|
|
7816
7831
|
L({
|
|
7817
7832
|
className: `${m}__dropdown`,
|
|
7818
7833
|
ref: $.setFloating,
|
|
7819
|
-
style:
|
|
7834
|
+
style: he(L({}, M), {
|
|
7820
7835
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
7821
7836
|
})
|
|
7822
7837
|
}, A()),
|
|
7823
|
-
/* @__PURE__ */ e.createElement("div", { style: L({}, F) }, /* @__PURE__ */ e.createElement("ul", { className: g, role: "menu" },
|
|
7824
|
-
)),
|
|
7825
|
-
const
|
|
7826
|
-
|
|
7838
|
+
/* @__PURE__ */ e.createElement("div", { style: L({}, F) }, /* @__PURE__ */ e.createElement("ul", { className: g, role: "menu" }, Q, /* @__PURE__ */ e.createElement("li", { role: "separator" }), R))
|
|
7839
|
+
)), ae = (q) => {
|
|
7840
|
+
const se = q.currentTarget;
|
|
7841
|
+
se.classList.toggle(`${m}__toggle--expanded`), se.setAttribute(
|
|
7827
7842
|
"aria-expanded",
|
|
7828
|
-
|
|
7829
|
-
),
|
|
7830
|
-
},
|
|
7843
|
+
se.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
7844
|
+
), se.nextElementSibling.classList.toggle(`${m}__mobile-menu--expanded`);
|
|
7845
|
+
}, te = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
7831
7846
|
"button",
|
|
7832
7847
|
{
|
|
7833
7848
|
className: `${m}__toggle`,
|
|
7834
7849
|
"aria-expanded": !1,
|
|
7835
7850
|
"aria-label": t,
|
|
7836
|
-
onClick:
|
|
7851
|
+
onClick: ae
|
|
7837
7852
|
},
|
|
7838
|
-
/* @__PURE__ */ e.createElement("span", { className: `${m}__toggle-left` },
|
|
7853
|
+
/* @__PURE__ */ e.createElement("span", { className: `${m}__toggle-left` }, W, r || n),
|
|
7839
7854
|
X
|
|
7840
7855
|
), /* @__PURE__ */ e.createElement("div", { className: `${m}__mobile-menu` }, /* @__PURE__ */ e.createElement(
|
|
7841
7856
|
"ul",
|
|
@@ -7843,7 +7858,7 @@ const us = (u) => {
|
|
|
7843
7858
|
className: [g, `${g}--isMobile`].join(" ").trim(),
|
|
7844
7859
|
role: "menu"
|
|
7845
7860
|
},
|
|
7846
|
-
|
|
7861
|
+
Q,
|
|
7847
7862
|
/* @__PURE__ */ e.createElement("li", { role: "separator" }),
|
|
7848
7863
|
R
|
|
7849
7864
|
)));
|
|
@@ -7852,14 +7867,14 @@ const us = (u) => {
|
|
|
7852
7867
|
L({
|
|
7853
7868
|
className: N([m, _, l != null ? l : ""])
|
|
7854
7869
|
}, c),
|
|
7855
|
-
p ?
|
|
7870
|
+
p ? te : K
|
|
7856
7871
|
);
|
|
7857
7872
|
}, k2 = {
|
|
7858
7873
|
silver: "Silver",
|
|
7859
7874
|
gold: "Gold",
|
|
7860
7875
|
platinum: "Platinum",
|
|
7861
7876
|
diamond: "Diamond"
|
|
7862
|
-
},
|
|
7877
|
+
}, Rs = (u) => {
|
|
7863
7878
|
var f = u, {
|
|
7864
7879
|
ariaLabel: t = "Workspace selector menu",
|
|
7865
7880
|
createWorkspaceLink: s,
|
|
@@ -7883,15 +7898,15 @@ const us = (u) => {
|
|
|
7883
7898
|
"workspaceList",
|
|
7884
7899
|
"className"
|
|
7885
7900
|
]);
|
|
7886
|
-
const [E, C] =
|
|
7901
|
+
const [E, C] = G(!1), [y, v] = G(null), [b, p] = G(o), m = de([]), _ = de(null), g = o.length >= i;
|
|
7887
7902
|
let $ = !1;
|
|
7888
|
-
const
|
|
7889
|
-
|
|
7890
|
-
const
|
|
7903
|
+
const M = $e(ke);
|
|
7904
|
+
M && ($ = M.isMobile);
|
|
7905
|
+
const z = c && $, w = "pds-workspace-selector", H = z ? `${w}--isMobile` : null, k = `${w}__menu`, x = g ? `${k}--scroll` : null, { refs: V, floatingStyles: T, context: A } = Se({
|
|
7891
7906
|
open: E,
|
|
7892
7907
|
onOpenChange: C,
|
|
7893
7908
|
whileElementsMounted: Be
|
|
7894
|
-
}), S = Xe(A, { event: "mousedown" }),
|
|
7909
|
+
}), S = Xe(A, { event: "mousedown" }), U = Ie(A), F = Te(A, { role: "menu" }), W = ct(A, {
|
|
7895
7910
|
listRef: m,
|
|
7896
7911
|
activeIndex: y,
|
|
7897
7912
|
onNavigate: v,
|
|
@@ -7899,9 +7914,9 @@ const us = (u) => {
|
|
|
7899
7914
|
openOnArrowKeyDown: !0,
|
|
7900
7915
|
focusItemOnHover: !0,
|
|
7901
7916
|
focusItemOnOpen: !1
|
|
7902
|
-
}), { getReferenceProps: X, getFloatingProps:
|
|
7903
|
-
[
|
|
7904
|
-
), { isMounted:
|
|
7917
|
+
}), { getReferenceProps: X, getFloatingProps: Q, getItemProps: j } = Ae(
|
|
7918
|
+
[U, F, S, W]
|
|
7919
|
+
), { isMounted: Y, styles: P } = Ye(A, {
|
|
7905
7920
|
duration: {
|
|
7906
7921
|
open: 300,
|
|
7907
7922
|
close: 150
|
|
@@ -7916,21 +7931,21 @@ const us = (u) => {
|
|
|
7916
7931
|
opacity: 0
|
|
7917
7932
|
}
|
|
7918
7933
|
});
|
|
7919
|
-
let R = o.find((
|
|
7934
|
+
let R = o.find((ee) => ee.isActive);
|
|
7920
7935
|
R || (R = o[0]);
|
|
7921
|
-
const
|
|
7922
|
-
const { value:
|
|
7923
|
-
p(
|
|
7936
|
+
const K = (ee) => {
|
|
7937
|
+
const { value: ie } = ee.target, ze = o.filter((Oe) => Oe.displayName.toLowerCase().includes(ie.toLowerCase()));
|
|
7938
|
+
p(ze);
|
|
7924
7939
|
};
|
|
7925
7940
|
ce(() => {
|
|
7926
|
-
const
|
|
7927
|
-
isActive:
|
|
7941
|
+
const ee = o.map((ie) => he(L({}, ie), {
|
|
7942
|
+
isActive: ie.isActive
|
|
7928
7943
|
}));
|
|
7929
|
-
p(
|
|
7944
|
+
p(ee);
|
|
7930
7945
|
}, [o]);
|
|
7931
|
-
const
|
|
7932
|
-
|
|
7933
|
-
},
|
|
7946
|
+
const ae = (ee) => {
|
|
7947
|
+
ee.preventDefault(), ee.key === "Enter" && m.current[y].querySelector("a").click(), ee.key === "Tab" && (ee.shiftKey ? g ? document.getElementById("workspace-filter").focus() : C(!1) : s ? _.current.querySelector("a").focus() : C(!1));
|
|
7948
|
+
}, te = /* @__PURE__ */ e.createElement("div", { className: `${w}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
7934
7949
|
Pt,
|
|
7935
7950
|
{
|
|
7936
7951
|
size: "sm",
|
|
@@ -7952,22 +7967,22 @@ const us = (u) => {
|
|
|
7952
7967
|
iconSize: "md",
|
|
7953
7968
|
className: `${w}__trigger-icon`
|
|
7954
7969
|
}
|
|
7955
|
-
),
|
|
7970
|
+
), se = g && /* @__PURE__ */ e.createElement("div", { className: `${w}__filter` }, /* @__PURE__ */ e.createElement(
|
|
7956
7971
|
$1,
|
|
7957
7972
|
{
|
|
7958
7973
|
hasClearButton: !0,
|
|
7959
7974
|
onClear: () => p(o),
|
|
7960
7975
|
id: "workspace-filter",
|
|
7961
7976
|
label: a,
|
|
7962
|
-
onChange:
|
|
7977
|
+
onChange: K,
|
|
7963
7978
|
placeholder: n,
|
|
7964
7979
|
showLabel: !1,
|
|
7965
7980
|
type: "search"
|
|
7966
7981
|
}
|
|
7967
|
-
)),
|
|
7968
|
-
(
|
|
7969
|
-
const
|
|
7970
|
-
m.current[
|
|
7982
|
+
)), ne = b.map(
|
|
7983
|
+
(ee, ie) => {
|
|
7984
|
+
const ze = `${w}__item`, Oe = ee.isActive ? `${ze}--active` : null, Ne = ee.isUnprivileged ? `${ze}--unprivileged` : null, We = /* @__PURE__ */ e.createElement(O, { iconName: "check", className: `${w}__active-icon` }), Re = ee.workspaceId, Qe = ee.workspaceLink.type, Je = ee.isUnprivileged ? null : (Fe) => {
|
|
7985
|
+
m.current[ie] = Fe;
|
|
7971
7986
|
};
|
|
7972
7987
|
return /* @__PURE__ */ e.createElement(
|
|
7973
7988
|
"li",
|
|
@@ -7975,34 +7990,34 @@ const us = (u) => {
|
|
|
7975
7990
|
key: Re,
|
|
7976
7991
|
id: Re,
|
|
7977
7992
|
className: N([
|
|
7978
|
-
|
|
7993
|
+
ze,
|
|
7979
7994
|
Oe,
|
|
7980
7995
|
Ne
|
|
7981
7996
|
]),
|
|
7982
7997
|
role: "menuitem",
|
|
7983
|
-
tabIndex: y ===
|
|
7998
|
+
tabIndex: y === ie ? 0 : -1,
|
|
7984
7999
|
ref: Je,
|
|
7985
|
-
onKeyDown:
|
|
7986
|
-
},
|
|
8000
|
+
onKeyDown: ae
|
|
8001
|
+
}, j()),
|
|
7987
8002
|
/* @__PURE__ */ e.createElement(
|
|
7988
8003
|
Qe,
|
|
7989
|
-
|
|
8004
|
+
he(L({}, ee.workspaceLink.props), {
|
|
7990
8005
|
onClick: () => C(!1)
|
|
7991
8006
|
}),
|
|
7992
8007
|
/* @__PURE__ */ e.createElement("div", { className: `${w}__item-content` }, /* @__PURE__ */ e.createElement(
|
|
7993
8008
|
Pt,
|
|
7994
8009
|
{
|
|
7995
8010
|
size: "sm",
|
|
7996
|
-
uniqueId:
|
|
7997
|
-
imageSrc:
|
|
8011
|
+
uniqueId: ee.workspaceId,
|
|
8012
|
+
imageSrc: ee.imageSrc,
|
|
7998
8013
|
className: `${w}__list-avatar`
|
|
7999
8014
|
}
|
|
8000
|
-
),
|
|
8001
|
-
|
|
8015
|
+
), ee.displayName),
|
|
8016
|
+
ee.isActive && We
|
|
8002
8017
|
)
|
|
8003
8018
|
);
|
|
8004
8019
|
}
|
|
8005
|
-
),
|
|
8020
|
+
), me = s && /* @__PURE__ */ e.createElement("div", { className: `${w}__create-link`, ref: _ }, /* @__PURE__ */ e.createElement(
|
|
8006
8021
|
Et,
|
|
8007
8022
|
{
|
|
8008
8023
|
displayType: "icon-end",
|
|
@@ -8017,27 +8032,27 @@ const us = (u) => {
|
|
|
8017
8032
|
L({
|
|
8018
8033
|
className: `${w}__trigger`,
|
|
8019
8034
|
"aria-label": t,
|
|
8020
|
-
ref:
|
|
8035
|
+
ref: V.setReference
|
|
8021
8036
|
}, X()),
|
|
8022
|
-
|
|
8037
|
+
te,
|
|
8023
8038
|
q
|
|
8024
|
-
),
|
|
8039
|
+
), Y && /* @__PURE__ */ e.createElement(
|
|
8025
8040
|
"div",
|
|
8026
8041
|
L({
|
|
8027
8042
|
className: `${w}__dropdown`,
|
|
8028
|
-
ref:
|
|
8043
|
+
ref: V.setFloating,
|
|
8029
8044
|
style: {
|
|
8030
8045
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
8031
8046
|
}
|
|
8032
|
-
},
|
|
8033
|
-
/* @__PURE__ */ e.createElement("div", { style: L({},
|
|
8034
|
-
)), ge = (
|
|
8035
|
-
const
|
|
8036
|
-
|
|
8047
|
+
}, Q()),
|
|
8048
|
+
/* @__PURE__ */ e.createElement("div", { style: L({}, P) }, se, /* @__PURE__ */ e.createElement("ul", { className: N([k, x]), role: "menu" }, /* @__PURE__ */ e.createElement("li", { className: `${w}__item-heading`, role: "presentation" }, r), ne.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${w}__no-results` }, l) : ne), me)
|
|
8049
|
+
)), ge = (ee) => {
|
|
8050
|
+
const ie = ee.target;
|
|
8051
|
+
ie.classList.toggle(`${w}__toggle--expanded`), ie.setAttribute(
|
|
8037
8052
|
"aria-expanded",
|
|
8038
|
-
|
|
8039
|
-
),
|
|
8040
|
-
},
|
|
8053
|
+
ie.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
8054
|
+
), ie.nextElementSibling.classList.toggle(`${w}__mobile-menu--expanded`);
|
|
8055
|
+
}, we = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
8041
8056
|
"button",
|
|
8042
8057
|
{
|
|
8043
8058
|
className: `${w}__toggle`,
|
|
@@ -8045,29 +8060,29 @@ const us = (u) => {
|
|
|
8045
8060
|
"aria-label": t,
|
|
8046
8061
|
onClick: ge
|
|
8047
8062
|
},
|
|
8048
|
-
|
|
8063
|
+
te,
|
|
8049
8064
|
q
|
|
8050
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${w}__mobile-menu` },
|
|
8065
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${w}__mobile-menu` }, se, /* @__PURE__ */ e.createElement(
|
|
8051
8066
|
"ul",
|
|
8052
8067
|
{
|
|
8053
8068
|
className: [k, `${k}--isMobile`].join(" ").trim(),
|
|
8054
8069
|
role: "menu"
|
|
8055
8070
|
},
|
|
8056
8071
|
/* @__PURE__ */ e.createElement("li", { className: `${w}__item-heading`, role: "presentation" }, r),
|
|
8057
|
-
|
|
8058
|
-
),
|
|
8072
|
+
ne.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${w}__no-results` }, l) : ne
|
|
8073
|
+
), me));
|
|
8059
8074
|
return /* @__PURE__ */ e.createElement(
|
|
8060
8075
|
"span",
|
|
8061
8076
|
L({
|
|
8062
|
-
className: N([w,
|
|
8077
|
+
className: N([w, H, d])
|
|
8063
8078
|
}, h),
|
|
8064
|
-
|
|
8079
|
+
z ? we : ue
|
|
8065
8080
|
);
|
|
8066
8081
|
}, N2 = {
|
|
8067
8082
|
info: "circleInfo",
|
|
8068
8083
|
warning: "triangleExclamation",
|
|
8069
8084
|
critical: "diamondExclamation"
|
|
8070
|
-
},
|
|
8085
|
+
}, Fs = (c) => {
|
|
8071
8086
|
var o = c, {
|
|
8072
8087
|
banners: t,
|
|
8073
8088
|
dismissLabel: s = "Dismiss",
|
|
@@ -8087,7 +8102,7 @@ const us = (u) => {
|
|
|
8087
8102
|
"typeLabels",
|
|
8088
8103
|
"className"
|
|
8089
8104
|
]);
|
|
8090
|
-
const [d, h] =
|
|
8105
|
+
const [d, h] = G(t);
|
|
8091
8106
|
ce(() => {
|
|
8092
8107
|
h(t);
|
|
8093
8108
|
}, [t]);
|
|
@@ -8098,40 +8113,40 @@ const us = (u) => {
|
|
|
8098
8113
|
info: `${f}--info`,
|
|
8099
8114
|
warning: `${f}--warning`,
|
|
8100
8115
|
critical: `${f}--critical`
|
|
8101
|
-
}, y = u > 0 ? d[0].type : null, v = y ? `${f}-group--${y}` : null, b = (
|
|
8102
|
-
zIndex: kt -
|
|
8103
|
-
}), p = (
|
|
8104
|
-
const
|
|
8116
|
+
}, y = u > 0 ? d[0].type : null, v = y ? `${f}-group--${y}` : null, b = (M) => ({
|
|
8117
|
+
zIndex: kt - M
|
|
8118
|
+
}), p = (M) => M === 0 ? 0 : -1, m = () => {
|
|
8119
|
+
const M = document.getElementsByClassName(
|
|
8105
8120
|
`${f}--fading`
|
|
8106
8121
|
);
|
|
8107
|
-
for (;
|
|
8108
|
-
|
|
8122
|
+
for (; M.length; )
|
|
8123
|
+
M[0].classList.remove(`${f}--fading`);
|
|
8109
8124
|
}, _ = () => {
|
|
8110
8125
|
m(), document.getElementById(d[0].id).classList.add(`${f}--fading`), setTimeout(() => {
|
|
8111
|
-
h((
|
|
8112
|
-
...
|
|
8113
|
-
|
|
8126
|
+
h((M) => [
|
|
8127
|
+
...M.slice(1),
|
|
8128
|
+
M[0]
|
|
8114
8129
|
]);
|
|
8115
8130
|
}, 200);
|
|
8116
8131
|
}, g = () => {
|
|
8117
8132
|
m(), document.getElementById(d[0].id).style.zIndex = (kt + 2).toString(), document.getElementById(d[u - 1].id).style.zIndex = (kt + 1).toString(), setTimeout(() => {
|
|
8118
8133
|
document.getElementById(d[0].id).classList.add(`${f}--fading`);
|
|
8119
8134
|
}, 50), setTimeout(() => {
|
|
8120
|
-
h((
|
|
8121
|
-
|
|
8122
|
-
...
|
|
8135
|
+
h((M) => [
|
|
8136
|
+
M[M.length - 1],
|
|
8137
|
+
...M.slice(0, M.length - 1)
|
|
8123
8138
|
]), document.getElementById(d[0].id).classList.remove(`${f}--fading`);
|
|
8124
8139
|
}, 200);
|
|
8125
|
-
}, $ = (
|
|
8126
|
-
const { id: w, isDismissible:
|
|
8140
|
+
}, $ = (M, z) => {
|
|
8141
|
+
const { id: w, isDismissible: H, message: k, onDismiss: x, type: V } = M, A = ["critical", "warning"].includes(V) ? "alert" : "status", S = `${r[V]}: `, U = (F) => {
|
|
8127
8142
|
F.preventDefault(), document.getElementById(w).classList.add(`${f}--dismissing`), setTimeout(() => {
|
|
8128
8143
|
if (u === 1) {
|
|
8129
8144
|
h([]);
|
|
8130
8145
|
return;
|
|
8131
8146
|
}
|
|
8132
8147
|
h(
|
|
8133
|
-
(
|
|
8134
|
-
),
|
|
8148
|
+
(W) => W.filter((X) => X.id !== w)
|
|
8149
|
+
), x && M.onDismiss();
|
|
8135
8150
|
}, 200);
|
|
8136
8151
|
};
|
|
8137
8152
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -8139,26 +8154,26 @@ const us = (u) => {
|
|
|
8139
8154
|
{
|
|
8140
8155
|
key: w,
|
|
8141
8156
|
id: w,
|
|
8142
|
-
className: N([f, C[
|
|
8157
|
+
className: N([f, C[V]]),
|
|
8143
8158
|
role: A,
|
|
8144
8159
|
style: {
|
|
8145
|
-
zIndex: b(
|
|
8160
|
+
zIndex: b(z).zIndex
|
|
8146
8161
|
}
|
|
8147
8162
|
},
|
|
8148
8163
|
/* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement(
|
|
8149
8164
|
O,
|
|
8150
8165
|
{
|
|
8151
|
-
iconName: N2[
|
|
8166
|
+
iconName: N2[V],
|
|
8152
8167
|
iconSize: "md",
|
|
8153
|
-
className: `${f}__icon ${f}__icon--${
|
|
8168
|
+
className: `${f}__icon ${f}__icon--${M.type}`
|
|
8154
8169
|
}
|
|
8155
8170
|
), /* @__PURE__ */ e.createElement("div", { className: `${f}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, S, " "), k)),
|
|
8156
|
-
|
|
8171
|
+
H && /* @__PURE__ */ e.createElement(
|
|
8157
8172
|
"button",
|
|
8158
8173
|
{
|
|
8159
8174
|
className: `${f}__dismiss-button`,
|
|
8160
|
-
onClick:
|
|
8161
|
-
tabIndex: p(
|
|
8175
|
+
onClick: U,
|
|
8176
|
+
tabIndex: p(z)
|
|
8162
8177
|
},
|
|
8163
8178
|
s
|
|
8164
8179
|
)
|
|
@@ -8192,14 +8207,14 @@ const us = (u) => {
|
|
|
8192
8207
|
ariaLabel: n,
|
|
8193
8208
|
onClick: _
|
|
8194
8209
|
}
|
|
8195
|
-
), d.map((
|
|
8210
|
+
), d.map((M, z) => $(M, z))) : $(d[0], 0)
|
|
8196
8211
|
);
|
|
8197
8212
|
}, At = {
|
|
8198
8213
|
info: "circleInfo",
|
|
8199
8214
|
warning: "triangleExclamation",
|
|
8200
8215
|
success: "circleCheck",
|
|
8201
8216
|
critical: "diamondExclamation"
|
|
8202
|
-
},
|
|
8217
|
+
}, Ps = (l) => {
|
|
8203
8218
|
var c = l, {
|
|
8204
8219
|
title: t,
|
|
8205
8220
|
secondaryText: s,
|
|
@@ -8233,7 +8248,7 @@ const us = (u) => {
|
|
|
8233
8248
|
className: [o, d[n], h, r != null ? r : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
8234
8249
|
role: f
|
|
8235
8250
|
}, i),
|
|
8236
|
-
/* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon-${n}` }, n === "working" ? /* @__PURE__ */ e.createElement(
|
|
8251
|
+
/* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon-${n}` }, n === "working" ? /* @__PURE__ */ e.createElement(Mt, { colorType: "monochromatic" }) : /* @__PURE__ */ e.createElement(
|
|
8237
8252
|
O,
|
|
8238
8253
|
{
|
|
8239
8254
|
iconName: `${n}` in At ? At[n] : At.info,
|
|
@@ -8247,7 +8262,7 @@ const us = (u) => {
|
|
|
8247
8262
|
success: "circleCheck",
|
|
8248
8263
|
critical: "diamondExclamation",
|
|
8249
8264
|
discovery: "squareQuestion"
|
|
8250
|
-
},
|
|
8265
|
+
}, Bs = (h) => {
|
|
8251
8266
|
var u = h, {
|
|
8252
8267
|
dismissLabel: t = "Dismiss",
|
|
8253
8268
|
id: s,
|
|
@@ -8275,7 +8290,7 @@ const us = (u) => {
|
|
|
8275
8290
|
"typeLabels",
|
|
8276
8291
|
"className"
|
|
8277
8292
|
]);
|
|
8278
|
-
const f =
|
|
8293
|
+
const f = de(null), E = "pds-section-message", C = {
|
|
8279
8294
|
error: `${E}--error`,
|
|
8280
8295
|
success: `${E}--success`,
|
|
8281
8296
|
warning: `${E}--warning`,
|
|
@@ -8355,7 +8370,7 @@ const us = (u) => {
|
|
|
8355
8370
|
className: N([i, l[n], r]),
|
|
8356
8371
|
id: s
|
|
8357
8372
|
},
|
|
8358
|
-
/* @__PURE__ */ e.createElement("div", { className: `${i}__icon-container` }, n === "working" ? /* @__PURE__ */ e.createElement(
|
|
8373
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__icon-container` }, n === "working" ? /* @__PURE__ */ e.createElement(Mt, { colorType: "monochromatic", size: "lg" }) : /* @__PURE__ */ e.createElement(
|
|
8359
8374
|
O,
|
|
8360
8375
|
{
|
|
8361
8376
|
iconName: `${n}` in Ot ? Ot[n] : Ot.info,
|
|
@@ -8364,7 +8379,7 @@ const us = (u) => {
|
|
|
8364
8379
|
)),
|
|
8365
8380
|
/* @__PURE__ */ e.createElement("div", { className: `${i}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, c), t)
|
|
8366
8381
|
);
|
|
8367
|
-
},
|
|
8382
|
+
}, Ws = ({
|
|
8368
8383
|
autoCloseDuration: t = 5e3,
|
|
8369
8384
|
limit: s = 5,
|
|
8370
8385
|
position: n = "bottom-right",
|
|
@@ -8387,14 +8402,14 @@ const us = (u) => {
|
|
|
8387
8402
|
));
|
|
8388
8403
|
};
|
|
8389
8404
|
var S2 = /* @__PURE__ */ ((t) => (t.Critical = "critical", t.Warning = "warning", t.Working = "working", t.Success = "success", t.Info = "info", t))(S2 || {});
|
|
8390
|
-
const
|
|
8405
|
+
const Gs = () => {
|
|
8391
8406
|
const t = (n, a, r = {}) => {
|
|
8392
8407
|
const i = /* @__PURE__ */ e.createElement(V2, { type: n }, a);
|
|
8393
8408
|
let l = L({}, r);
|
|
8394
|
-
return (n === "critical" || n === "warning") && (l =
|
|
8409
|
+
return (n === "critical" || n === "warning") && (l = he(L({}, l), {
|
|
8395
8410
|
autoClose: !1,
|
|
8396
8411
|
role: "alert"
|
|
8397
|
-
})), n === "working" && (l =
|
|
8412
|
+
})), n === "working" && (l = he(L({}, l), {
|
|
8398
8413
|
autoClose: !1,
|
|
8399
8414
|
closeButton: !1,
|
|
8400
8415
|
closeOnClick: !1
|
|
@@ -8442,7 +8457,7 @@ const Ws = () => {
|
|
|
8442
8457
|
o
|
|
8443
8458
|
];
|
|
8444
8459
|
}
|
|
8445
|
-
}, [a, n, t, s]),
|
|
8460
|
+
}, [a, n, t, s]), Us = (h) => {
|
|
8446
8461
|
var u = h, {
|
|
8447
8462
|
bufferCount: t = 1,
|
|
8448
8463
|
currentPage: s,
|
|
@@ -8555,7 +8570,7 @@ const Ws = () => {
|
|
|
8555
8570
|
)
|
|
8556
8571
|
))
|
|
8557
8572
|
);
|
|
8558
|
-
},
|
|
8573
|
+
}, Zs = (l) => {
|
|
8559
8574
|
var c = l, {
|
|
8560
8575
|
children: t,
|
|
8561
8576
|
id: s,
|
|
@@ -8571,7 +8586,7 @@ const Ws = () => {
|
|
|
8571
8586
|
]);
|
|
8572
8587
|
const o = s || `expansion-panel-${tt()}`, d = "pds-expansion-panel";
|
|
8573
8588
|
return /* @__PURE__ */ e.createElement("div", L({ className: N([d, r]) }, i), /* @__PURE__ */ e.createElement("details", { key: o, id: o, open: n }, /* @__PURE__ */ e.createElement("summary", null, /* @__PURE__ */ e.createElement("span", null, a), /* @__PURE__ */ e.createElement(O, { iconName: "angleDown", className: `${d}__icon` })), /* @__PURE__ */ e.createElement("div", { className: `${d}__content` }, t)));
|
|
8574
|
-
},
|
|
8589
|
+
}, qs = (r) => {
|
|
8575
8590
|
var i = r, {
|
|
8576
8591
|
children: t,
|
|
8577
8592
|
displayType: s = "standard",
|
|
@@ -8589,7 +8604,7 @@ const Ws = () => {
|
|
|
8589
8604
|
}, a),
|
|
8590
8605
|
t
|
|
8591
8606
|
);
|
|
8592
|
-
},
|
|
8607
|
+
}, js = (c) => {
|
|
8593
8608
|
var o = c, {
|
|
8594
8609
|
children: t,
|
|
8595
8610
|
hasStatusIndicator: s = !1,
|
|
@@ -8614,7 +8629,7 @@ const Ws = () => {
|
|
|
8614
8629
|
s && a && /* @__PURE__ */ e.createElement("span", { className: h }),
|
|
8615
8630
|
/* @__PURE__ */ e.createElement("div", { className: N([f, E]) }, t)
|
|
8616
8631
|
);
|
|
8617
|
-
},
|
|
8632
|
+
}, Ks = (i) => {
|
|
8618
8633
|
var l = i, {
|
|
8619
8634
|
background: t = "default",
|
|
8620
8635
|
children: s,
|
|
@@ -8639,11 +8654,11 @@ const Ws = () => {
|
|
|
8639
8654
|
}, r),
|
|
8640
8655
|
s
|
|
8641
8656
|
);
|
|
8642
|
-
},
|
|
8657
|
+
}, Xs = (a) => {
|
|
8643
8658
|
var r = a, { children: t, className: s } = r, n = I(r, ["children", "className"]);
|
|
8644
8659
|
const i = "pds-panel-row", l = je(t), c = l["items-left"], o = l["items-right"];
|
|
8645
8660
|
return /* @__PURE__ */ e.createElement("li", L({ className: N([i, s != null ? s : ""]) }, n), c && /* @__PURE__ */ e.createElement("div", { className: `${i}__items ${i}__items--left` }, c), o && /* @__PURE__ */ e.createElement("div", { className: `${i}__items ${i}__items--right` }, o));
|
|
8646
|
-
}, et = 8, c1 = 14, T2 = 6,
|
|
8661
|
+
}, et = 8, c1 = 14, T2 = 6, Ys = (E) => {
|
|
8647
8662
|
var C = E, {
|
|
8648
8663
|
content: t,
|
|
8649
8664
|
customTrigger: s = !1,
|
|
@@ -8673,8 +8688,8 @@ const Ws = () => {
|
|
|
8673
8688
|
"setPopoverIsOpen",
|
|
8674
8689
|
"className"
|
|
8675
8690
|
]);
|
|
8676
|
-
var
|
|
8677
|
-
const [y, v] =
|
|
8691
|
+
var Q, j, Y, P;
|
|
8692
|
+
const [y, v] = G(d);
|
|
8678
8693
|
ce(() => {
|
|
8679
8694
|
v(d);
|
|
8680
8695
|
}, [d]), ce(() => {
|
|
@@ -8683,7 +8698,7 @@ const Ws = () => {
|
|
|
8683
8698
|
const b = typeof s, p = "pds-popover", m = N([
|
|
8684
8699
|
`${p}__trigger-custom`,
|
|
8685
8700
|
b === "string" ? `${p}__trigger-text` : ""
|
|
8686
|
-
]), _ = s ? a : 0, g =
|
|
8701
|
+
]), _ = s ? a : 0, g = de(null), { refs: $, floatingStyles: M, context: z, middlewareData: w } = Se({
|
|
8687
8702
|
placement: i,
|
|
8688
8703
|
open: y,
|
|
8689
8704
|
onOpenChange(R) {
|
|
@@ -8696,13 +8711,13 @@ const Ws = () => {
|
|
|
8696
8711
|
P1({ element: g })
|
|
8697
8712
|
],
|
|
8698
8713
|
whileElementsMounted: Be
|
|
8699
|
-
}),
|
|
8714
|
+
}), H = () => {
|
|
8700
8715
|
v(!1), r && r();
|
|
8701
|
-
}, k = Xe(
|
|
8716
|
+
}, k = Xe(z), x = Ie(z), V = Te(z), { getReferenceProps: T, getFloatingProps: A } = Ae([
|
|
8702
8717
|
k,
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
]), S = (
|
|
8718
|
+
x,
|
|
8719
|
+
V
|
|
8720
|
+
]), S = (j = (Q = w.arrow) == null ? void 0 : Q.x) != null ? j : 0, U = (P = (Y = w.arrow) == null ? void 0 : Y.y) != null ? P : 0, F = S + c1 / 2, W = U + et, { isMounted: X } = Ye(z, {
|
|
8706
8721
|
initial: {
|
|
8707
8722
|
transform: "scale(0)"
|
|
8708
8723
|
},
|
|
@@ -8710,8 +8725,8 @@ const Ws = () => {
|
|
|
8710
8725
|
transformOrigin: {
|
|
8711
8726
|
top: `${F}px calc(100% + ${et}px)`,
|
|
8712
8727
|
bottom: `${F}px ${-et}px`,
|
|
8713
|
-
left: `calc(100% + ${et}px) ${
|
|
8714
|
-
right: `${-et}px ${
|
|
8728
|
+
left: `calc(100% + ${et}px) ${W}px`,
|
|
8729
|
+
right: `${-et}px ${W}px`
|
|
8715
8730
|
}[R]
|
|
8716
8731
|
})
|
|
8717
8732
|
});
|
|
@@ -8730,18 +8745,18 @@ const Ws = () => {
|
|
|
8730
8745
|
iconSize: "md"
|
|
8731
8746
|
}
|
|
8732
8747
|
))
|
|
8733
|
-
), X && /* @__PURE__ */ e.createElement(p1, null, /* @__PURE__ */ e.createElement(h1, { context:
|
|
8748
|
+
), X && /* @__PURE__ */ e.createElement(p1, null, /* @__PURE__ */ e.createElement(h1, { context: z, modal: !1 }, /* @__PURE__ */ e.createElement(
|
|
8734
8749
|
"div",
|
|
8735
8750
|
L({
|
|
8736
8751
|
className: `${p}__container`,
|
|
8737
8752
|
ref: $.setFloating,
|
|
8738
|
-
style:
|
|
8753
|
+
style: M
|
|
8739
8754
|
}, A()),
|
|
8740
8755
|
/* @__PURE__ */ e.createElement(
|
|
8741
8756
|
B1,
|
|
8742
8757
|
{
|
|
8743
8758
|
ref: g,
|
|
8744
|
-
context:
|
|
8759
|
+
context: z,
|
|
8745
8760
|
height: et,
|
|
8746
8761
|
width: c1,
|
|
8747
8762
|
tipRadius: 0,
|
|
@@ -8754,7 +8769,7 @@ const Ws = () => {
|
|
|
8754
8769
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__container-inner` }, l && /* @__PURE__ */ e.createElement("div", { className: `${p}__title` }, l), t && /* @__PURE__ */ e.createElement("div", { className: `${p}__content` }, t), n && /* @__PURE__ */ e.createElement(
|
|
8755
8770
|
"button",
|
|
8756
8771
|
{
|
|
8757
|
-
onClick:
|
|
8772
|
+
onClick: H,
|
|
8758
8773
|
className: `${p}__close`
|
|
8759
8774
|
},
|
|
8760
8775
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, "Close"),
|
|
@@ -8767,7 +8782,7 @@ const Ws = () => {
|
|
|
8767
8782
|
success: "--pds-color-status-success-foreground",
|
|
8768
8783
|
warning: "--pds-color-status-warning-foreground",
|
|
8769
8784
|
critical: "--pds-color-status-critical-foreground"
|
|
8770
|
-
},
|
|
8785
|
+
}, Qs = (u) => {
|
|
8771
8786
|
var f = u, {
|
|
8772
8787
|
colorBreakpoints: t = [
|
|
8773
8788
|
{ colorType: "info", percentage: 0 },
|
|
@@ -8928,7 +8943,7 @@ const Ws = () => {
|
|
|
8928
8943
|
)
|
|
8929
8944
|
)
|
|
8930
8945
|
);
|
|
8931
|
-
},
|
|
8946
|
+
}, Js = (l) => {
|
|
8932
8947
|
var c = l, {
|
|
8933
8948
|
attribution: t,
|
|
8934
8949
|
image: s,
|
|
@@ -8959,7 +8974,7 @@ const Ws = () => {
|
|
|
8959
8974
|
);
|
|
8960
8975
|
};
|
|
8961
8976
|
var F2 = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.WORKING = "working", t.CHECKED = "checked", t))(F2 || {});
|
|
8962
|
-
const
|
|
8977
|
+
const en = (l) => {
|
|
8963
8978
|
var c = l, {
|
|
8964
8979
|
componentWidth: t,
|
|
8965
8980
|
labelStrings: s = {},
|
|
@@ -8973,7 +8988,7 @@ const Js = (l) => {
|
|
|
8973
8988
|
"onCheck",
|
|
8974
8989
|
"className"
|
|
8975
8990
|
]);
|
|
8976
|
-
const [o, d] =
|
|
8991
|
+
const [o, d] = G(
|
|
8977
8992
|
"default"
|
|
8978
8993
|
/* DEFAULT */
|
|
8979
8994
|
), h = L({
|
|
@@ -8991,12 +9006,12 @@ const Js = (l) => {
|
|
|
8991
9006
|
case "checked":
|
|
8992
9007
|
if (n) {
|
|
8993
9008
|
const b = n instanceof Date ? n : new Date(n), p = Date.now() - b.getTime(), m = Math.floor(p / 1e3), _ = Math.floor(m / 60), g = Math.floor(_ / 60), $ = Math.floor(g / 24);
|
|
8994
|
-
let
|
|
8995
|
-
return $ > 0 ?
|
|
9009
|
+
let M = "";
|
|
9010
|
+
return $ > 0 ? M = `${$} day${$ !== 1 ? "s" : ""} ago` : g > 0 ? M = `${g} hour${g !== 1 ? "s" : ""} ago` : _ > 0 ? M = `${_} minute${_ !== 1 ? "s" : ""} ago` : M = `${m} second${m !== 1 ? "s" : ""} ago`, `${h.checked} ${M}`;
|
|
8996
9011
|
}
|
|
8997
9012
|
return h.checked;
|
|
8998
9013
|
}
|
|
8999
|
-
}, f = () =>
|
|
9014
|
+
}, f = () => Ht(void 0, null, function* () {
|
|
9000
9015
|
if (o !== "working") {
|
|
9001
9016
|
d(
|
|
9002
9017
|
"working"
|
|
@@ -9052,7 +9067,7 @@ const Js = (l) => {
|
|
|
9052
9067
|
)
|
|
9053
9068
|
)
|
|
9054
9069
|
);
|
|
9055
|
-
},
|
|
9070
|
+
}, tn = (i) => {
|
|
9056
9071
|
var l = i, {
|
|
9057
9072
|
siteName: t,
|
|
9058
9073
|
sitePlanLevel: s,
|
|
@@ -9109,7 +9124,7 @@ const Js = (l) => {
|
|
|
9109
9124
|
url: "https://www.youtube.com/user/GetPantheon",
|
|
9110
9125
|
label: "Pantheon on YouTube"
|
|
9111
9126
|
}
|
|
9112
|
-
},
|
|
9127
|
+
}, sn = (a) => {
|
|
9113
9128
|
var r = a, {
|
|
9114
9129
|
linkItems: t = ["facebook", "x", "linkedin", "youtube", "instagram"],
|
|
9115
9130
|
className: s
|
|
@@ -9134,7 +9149,7 @@ const Js = (l) => {
|
|
|
9134
9149
|
/* @__PURE__ */ e.createElement(O, { iconName: Rt[l].icon, iconSize: "xl" })
|
|
9135
9150
|
)))
|
|
9136
9151
|
);
|
|
9137
|
-
},
|
|
9152
|
+
}, nn = (r) => {
|
|
9138
9153
|
var i = r, {
|
|
9139
9154
|
label: t = null,
|
|
9140
9155
|
type: s = "neutral",
|
|
@@ -9151,7 +9166,7 @@ const Js = (l) => {
|
|
|
9151
9166
|
className: [l, c, n != null ? n : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
9152
9167
|
}, a),
|
|
9153
9168
|
s === "working" ? /* @__PURE__ */ e.createElement(
|
|
9154
|
-
|
|
9169
|
+
Mt,
|
|
9155
9170
|
{
|
|
9156
9171
|
className: `${l}__spinner`,
|
|
9157
9172
|
colorType: "monochromatic",
|
|
@@ -9160,7 +9175,7 @@ const Js = (l) => {
|
|
|
9160
9175
|
) : /* @__PURE__ */ e.createElement("span", { className: `${l}__icon`, role: "img", "aria-hidden": "true" }),
|
|
9161
9176
|
t && /* @__PURE__ */ e.createElement("span", { className: "pds-status-indicator__label" }, t)
|
|
9162
9177
|
);
|
|
9163
|
-
},
|
|
9178
|
+
}, an = (r) => {
|
|
9164
9179
|
var i = r, {
|
|
9165
9180
|
steps: t,
|
|
9166
9181
|
translatableLabels: s = {
|
|
@@ -9175,36 +9190,36 @@ const Js = (l) => {
|
|
|
9175
9190
|
"translatableLabels",
|
|
9176
9191
|
"className"
|
|
9177
9192
|
]);
|
|
9178
|
-
const l = "pds-stepper", c = "pds-stepper-mobile", o =
|
|
9193
|
+
const l = "pds-stepper", c = "pds-stepper-mobile", o = de(), [d] = Lt(o), h = d.width, u = Number(
|
|
9179
9194
|
getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "")
|
|
9180
9195
|
) * 16, f = -40, E = 2, C = 5, y = t.length, v = t.map((m) => m.isCurrent).lastIndexOf(!0), b = t.map((m, _) => {
|
|
9181
|
-
const g = _ + 1, $ = _ === v,
|
|
9196
|
+
const g = _ + 1, $ = _ === v, M = _ < v, z = m.hasError && $, H = (h - y * u) / (y + (y - 2)), k = u + H * 2, x = u + H, V = H + f * -1, T = _ === 0, A = _ === y - 1;
|
|
9182
9197
|
let S = k;
|
|
9183
|
-
(T || A) && (S =
|
|
9184
|
-
const
|
|
9185
|
-
$ && F.push(`${
|
|
9186
|
-
let
|
|
9187
|
-
|
|
9188
|
-
const X =
|
|
9198
|
+
(T || A) && (S = x);
|
|
9199
|
+
const U = `${l}__step`, F = [U];
|
|
9200
|
+
$ && F.push(`${U}--current`), M && F.push(`${U}--complete`), z && F.push(`${U}--error`);
|
|
9201
|
+
let W = `${s.step} ${g}`;
|
|
9202
|
+
M && (W = `${s.step} ${g}, ${s.completed}`), z && (W = `${s.step} ${g}, ${s.hasError}`);
|
|
9203
|
+
const X = M ? /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${l}__step-indicator` }, /* @__PURE__ */ e.createElement(
|
|
9189
9204
|
O,
|
|
9190
9205
|
{
|
|
9191
9206
|
iconName: "check",
|
|
9192
9207
|
iconSize: "md",
|
|
9193
9208
|
className: `${l}__step-complete-icon`
|
|
9194
9209
|
}
|
|
9195
|
-
)) : /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${l}__step-indicator` }),
|
|
9196
|
-
let
|
|
9197
|
-
if (
|
|
9198
|
-
const
|
|
9199
|
-
m.callback(m),
|
|
9210
|
+
)) : /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${l}__step-indicator` }), Q = /* @__PURE__ */ e.createElement("div", { className: `${l}__step-label` }, m.label);
|
|
9211
|
+
let j = /* @__PURE__ */ e.createElement("div", { className: `${l}__step-content` }, Q, X);
|
|
9212
|
+
if (M && m.callback) {
|
|
9213
|
+
const Y = (P) => {
|
|
9214
|
+
m.callback(m), P.preventDefault();
|
|
9200
9215
|
};
|
|
9201
|
-
|
|
9216
|
+
j = /* @__PURE__ */ e.createElement(
|
|
9202
9217
|
"button",
|
|
9203
9218
|
{
|
|
9204
9219
|
className: `${l}__step-content`,
|
|
9205
|
-
onClick:
|
|
9220
|
+
onClick: Y
|
|
9206
9221
|
},
|
|
9207
|
-
|
|
9222
|
+
Q,
|
|
9208
9223
|
X
|
|
9209
9224
|
);
|
|
9210
9225
|
}
|
|
@@ -9213,7 +9228,7 @@ const Js = (l) => {
|
|
|
9213
9228
|
{
|
|
9214
9229
|
key: m.id,
|
|
9215
9230
|
id: m.id,
|
|
9216
|
-
"aria-label":
|
|
9231
|
+
"aria-label": W,
|
|
9217
9232
|
"aria-posinset": g,
|
|
9218
9233
|
"aria-setsize": y,
|
|
9219
9234
|
"aria-current": $ ? "step" : null,
|
|
@@ -9225,28 +9240,28 @@ const Js = (l) => {
|
|
|
9225
9240
|
{
|
|
9226
9241
|
className: `${l}__connector ${l}__connector--before`,
|
|
9227
9242
|
style: {
|
|
9228
|
-
width:
|
|
9243
|
+
width: V,
|
|
9229
9244
|
marginRight: f
|
|
9230
9245
|
}
|
|
9231
9246
|
}
|
|
9232
9247
|
),
|
|
9233
|
-
|
|
9248
|
+
j,
|
|
9234
9249
|
!A && /* @__PURE__ */ e.createElement(
|
|
9235
9250
|
"span",
|
|
9236
9251
|
{
|
|
9237
9252
|
className: `${l}__connector ${l}__connector--after`,
|
|
9238
|
-
style: { width:
|
|
9253
|
+
style: { width: V, marginLeft: f }
|
|
9239
9254
|
}
|
|
9240
9255
|
)
|
|
9241
9256
|
);
|
|
9242
9257
|
}), p = t.map((m, _) => {
|
|
9243
|
-
const g = _ + 1, $ = _ === v,
|
|
9258
|
+
const g = _ + 1, $ = _ === v, M = _ === y - 1, z = m.hasError && $, w = t[v + 1] ? t[v + 1].label : null;
|
|
9244
9259
|
if ($) {
|
|
9245
|
-
const
|
|
9260
|
+
const H = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s.step, " "), g, " of ", y), k = g / y * 100, x = z ? {
|
|
9246
9261
|
"--pds-color-status-info-foreground": "var(--pds-color-status-critical-foreground)"
|
|
9247
9262
|
} : {
|
|
9248
9263
|
"--pds-color-status-info-foreground": "var(--pds-color-brand-primary-default)"
|
|
9249
|
-
},
|
|
9264
|
+
}, V = /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, s.step, " ", g, ", ", s.hasError);
|
|
9250
9265
|
return /* @__PURE__ */ e.createElement(
|
|
9251
9266
|
"div",
|
|
9252
9267
|
{
|
|
@@ -9260,18 +9275,18 @@ const Js = (l) => {
|
|
|
9260
9275
|
label: "Step progress",
|
|
9261
9276
|
size: "sm",
|
|
9262
9277
|
percentage: k,
|
|
9263
|
-
innerLabel:
|
|
9264
|
-
style:
|
|
9278
|
+
innerLabel: H,
|
|
9279
|
+
style: x
|
|
9265
9280
|
}
|
|
9266
9281
|
)),
|
|
9267
|
-
/* @__PURE__ */ e.createElement("div", { className: `${c}__step-text` }, /* @__PURE__ */ e.createElement("div", { className: `${c}__step-label` },
|
|
9282
|
+
/* @__PURE__ */ e.createElement("div", { className: `${c}__step-text` }, /* @__PURE__ */ e.createElement("div", { className: `${c}__step-label` }, z && /* @__PURE__ */ e.createElement(e.Fragment, null, V, /* @__PURE__ */ e.createElement(
|
|
9268
9283
|
O,
|
|
9269
9284
|
{
|
|
9270
9285
|
iconName: "diamondExclamation",
|
|
9271
9286
|
iconSize: "md",
|
|
9272
9287
|
className: `${c}__error-icon`
|
|
9273
9288
|
}
|
|
9274
|
-
)), m.label), !
|
|
9289
|
+
)), m.label), !M && /* @__PURE__ */ e.createElement("div", { className: `${c}__next-step` }, `${s.next}: ${w}`))
|
|
9275
9290
|
);
|
|
9276
9291
|
}
|
|
9277
9292
|
});
|
|
@@ -9291,7 +9306,7 @@ const Js = (l) => {
|
|
|
9291
9306
|
}, a),
|
|
9292
9307
|
/* @__PURE__ */ e.createElement("div", { className: `${c}__steps` }, p)
|
|
9293
9308
|
));
|
|
9294
|
-
},
|
|
9309
|
+
}, ln = (r) => {
|
|
9295
9310
|
var i = r, {
|
|
9296
9311
|
headers: t,
|
|
9297
9312
|
rowData: s,
|
|
@@ -9301,12 +9316,12 @@ const Js = (l) => {
|
|
|
9301
9316
|
"rowData",
|
|
9302
9317
|
"className"
|
|
9303
9318
|
]);
|
|
9304
|
-
const [l] =
|
|
9319
|
+
const [l] = G(t), [c, o] = G(s), [d, h] = G({ order: "asc", key: "" }), u = (v) => {
|
|
9305
9320
|
o(c.sort((b, p) => b[v].localeCompare(p[v]))), h({ order: "desc", key: v });
|
|
9306
9321
|
}, f = (v) => {
|
|
9307
9322
|
o(c.sort((b, p) => p[v].localeCompare(b[v]))), h({ order: "asc", key: v });
|
|
9308
9323
|
}, E = (v, b) => {
|
|
9309
|
-
h(
|
|
9324
|
+
h(he(L({}, d), { key: b })), d.order === "asc" ? u(b) : f(b);
|
|
9310
9325
|
}, C = (v, b) => /* @__PURE__ */ e.createElement("tr", { id: b, key: `table-row-${b}` }, v.map((p, m) => /* @__PURE__ */ e.createElement("td", { key: `${b}-cell-${m}` }, /* @__PURE__ */ e.createElement("span", null, p)))), y = "pds-table";
|
|
9311
9326
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("table", L({ className: N([y, n]) }, a), /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, l.map((v, b) => /* @__PURE__ */ e.createElement("th", { key: `header-${b}` }, v.sortable ? /* @__PURE__ */ e.createElement("div", { className: `${y}__sort-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
9312
9327
|
"span",
|
|
@@ -9337,7 +9352,7 @@ const Js = (l) => {
|
|
|
9337
9352
|
/* @__PURE__ */ e.createElement(O, { iconName: "caretDown", iconSize: "sm" })
|
|
9338
9353
|
)
|
|
9339
9354
|
)) : /* @__PURE__ */ e.createElement("span", null, v.title))))), /* @__PURE__ */ e.createElement("tbody", null, c.map((v, b) => C(v, b)))));
|
|
9340
|
-
},
|
|
9355
|
+
}, cn = (d) => {
|
|
9341
9356
|
var h = d, {
|
|
9342
9357
|
appendIds: t = !1,
|
|
9343
9358
|
ariaLabel: s = "Table of contents",
|
|
@@ -9376,75 +9391,75 @@ const Js = (l) => {
|
|
|
9376
9391
|
"|",
|
|
9377
9392
|
"~"
|
|
9378
9393
|
], E = `#${l} h2:not(.${r}), h3:not(.${r})`, C = () => {
|
|
9379
|
-
const [
|
|
9394
|
+
const [z, w] = G([]);
|
|
9380
9395
|
return ce(() => {
|
|
9381
|
-
const
|
|
9396
|
+
const H = Array.from(
|
|
9382
9397
|
document.querySelectorAll(E)
|
|
9383
9398
|
);
|
|
9384
|
-
|
|
9385
|
-
f.forEach((
|
|
9386
|
-
|
|
9399
|
+
H.map((x) => {
|
|
9400
|
+
f.forEach((V) => {
|
|
9401
|
+
x.id.includes(V) && (x.id = x.id.replaceAll(V, "-"));
|
|
9387
9402
|
});
|
|
9388
|
-
}),
|
|
9389
|
-
const
|
|
9390
|
-
|
|
9403
|
+
}), H.map((x) => {
|
|
9404
|
+
const V = `item-${tt()}`;
|
|
9405
|
+
x.id || (x.id = V);
|
|
9391
9406
|
});
|
|
9392
|
-
const k = y(
|
|
9407
|
+
const k = y(H);
|
|
9393
9408
|
w(k);
|
|
9394
|
-
}, []), { nestedHeadings:
|
|
9395
|
-
}, y = (
|
|
9409
|
+
}, []), { nestedHeadings: z };
|
|
9410
|
+
}, y = (z) => {
|
|
9396
9411
|
const w = [];
|
|
9397
|
-
return
|
|
9398
|
-
const { innerText: k, id:
|
|
9399
|
-
|
|
9400
|
-
id:
|
|
9412
|
+
return z.forEach((H) => {
|
|
9413
|
+
const { innerText: k, id: x } = H;
|
|
9414
|
+
H.nodeName === "H2" ? w.push({ id: x, title: k, items: [] }) : H.nodeName === "H3" && w.length > 0 && w[w.length - 1].items.push({
|
|
9415
|
+
id: x,
|
|
9401
9416
|
title: k
|
|
9402
9417
|
});
|
|
9403
9418
|
}), w;
|
|
9404
|
-
}, { nestedHeadings: v } = C(), [b, p] =
|
|
9405
|
-
((
|
|
9406
|
-
const w =
|
|
9419
|
+
}, { nestedHeadings: v } = C(), [b, p] = G();
|
|
9420
|
+
((z) => {
|
|
9421
|
+
const w = de({});
|
|
9407
9422
|
ce(() => {
|
|
9408
|
-
const
|
|
9409
|
-
w.current =
|
|
9423
|
+
const H = (V) => {
|
|
9424
|
+
w.current = V.reduce((S, U) => (S[U.target.id] = U, S), w.current);
|
|
9410
9425
|
const T = [];
|
|
9411
9426
|
Object.keys(w.current).forEach((S) => {
|
|
9412
|
-
const
|
|
9413
|
-
|
|
9427
|
+
const U = w.current[S];
|
|
9428
|
+
U.isIntersecting && T.push(U);
|
|
9414
9429
|
});
|
|
9415
|
-
const A = (S) =>
|
|
9430
|
+
const A = (S) => x.findIndex((U) => U.id === S);
|
|
9416
9431
|
if (T.length === 1)
|
|
9417
|
-
|
|
9432
|
+
z(T[0].target.id);
|
|
9418
9433
|
else if (T.length > 1) {
|
|
9419
9434
|
const S = T.sort(
|
|
9420
|
-
(
|
|
9435
|
+
(U, F) => A(U.target.id) - A(F.target.id)
|
|
9421
9436
|
);
|
|
9422
|
-
|
|
9437
|
+
z(S[0].target.id);
|
|
9423
9438
|
}
|
|
9424
|
-
}, k = new IntersectionObserver(
|
|
9439
|
+
}, k = new IntersectionObserver(H, {
|
|
9425
9440
|
rootMargin: "0px 0px -20% 0px"
|
|
9426
|
-
}),
|
|
9441
|
+
}), x = Array.from(
|
|
9427
9442
|
document.querySelectorAll(E)
|
|
9428
9443
|
);
|
|
9429
|
-
return
|
|
9430
|
-
}, [
|
|
9444
|
+
return x.forEach((V) => k.observe(V)), () => k.disconnect();
|
|
9445
|
+
}, [z]);
|
|
9431
9446
|
})(p);
|
|
9432
|
-
const _ = (
|
|
9433
|
-
typeof window != "undefined" && window.location.hash !== `#${
|
|
9434
|
-
}, g = (
|
|
9435
|
-
document.querySelector(`#${
|
|
9447
|
+
const _ = (z) => {
|
|
9448
|
+
typeof window != "undefined" && window.location.hash !== `#${z}` && window.history.pushState({}, "", `#${z}`);
|
|
9449
|
+
}, g = (z) => {
|
|
9450
|
+
document.querySelector(`#${z}`).scrollIntoView({
|
|
9436
9451
|
behavior: "smooth",
|
|
9437
9452
|
block: "start"
|
|
9438
9453
|
});
|
|
9439
|
-
}, $ = (
|
|
9440
|
-
|
|
9441
|
-
},
|
|
9454
|
+
}, $ = (z, w) => {
|
|
9455
|
+
z.preventDefault(), t && _(w), g(w);
|
|
9456
|
+
}, M = ({ headings: z }) => /* @__PURE__ */ e.createElement("ul", { className: `${u}__list ${u}__list--top-level` }, z.map((w) => /* @__PURE__ */ e.createElement("li", { key: w.id, className: `${u}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
9442
9457
|
"a",
|
|
9443
9458
|
{
|
|
9444
9459
|
className: w.id === b ? `${u}__link ${u}__link--active` : `${u}__link`,
|
|
9445
9460
|
href: `#${w.id}`,
|
|
9446
|
-
onClick: (
|
|
9447
|
-
$(
|
|
9461
|
+
onClick: (H) => {
|
|
9462
|
+
$(H, w.id);
|
|
9448
9463
|
}
|
|
9449
9464
|
},
|
|
9450
9465
|
w.title
|
|
@@ -9453,16 +9468,16 @@ const Js = (l) => {
|
|
|
9453
9468
|
{
|
|
9454
9469
|
className: `${u}__list ${u}__list--second-level`
|
|
9455
9470
|
},
|
|
9456
|
-
w.items.map((
|
|
9471
|
+
w.items.map((H) => /* @__PURE__ */ e.createElement("li", { key: H.id, className: `${u}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
9457
9472
|
"a",
|
|
9458
9473
|
{
|
|
9459
|
-
className:
|
|
9460
|
-
href: `#${
|
|
9474
|
+
className: H.id === b ? `${u}__link ${u}__link--active` : `${u}__link`,
|
|
9475
|
+
href: `#${H.id}`,
|
|
9461
9476
|
onClick: (k) => {
|
|
9462
|
-
$(k,
|
|
9477
|
+
$(k, H.id);
|
|
9463
9478
|
}
|
|
9464
9479
|
},
|
|
9465
|
-
|
|
9480
|
+
H.title
|
|
9466
9481
|
)))
|
|
9467
9482
|
))));
|
|
9468
9483
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -9480,9 +9495,9 @@ const Js = (l) => {
|
|
|
9480
9495
|
},
|
|
9481
9496
|
a
|
|
9482
9497
|
),
|
|
9483
|
-
/* @__PURE__ */ e.createElement(
|
|
9498
|
+
/* @__PURE__ */ e.createElement(M, { headings: v, activeID: b })
|
|
9484
9499
|
);
|
|
9485
|
-
},
|
|
9500
|
+
}, rn = (c) => {
|
|
9486
9501
|
var o = c, {
|
|
9487
9502
|
ariaLabel: t,
|
|
9488
9503
|
defaultSelected: s = 0,
|
|
@@ -9499,7 +9514,7 @@ const Js = (l) => {
|
|
|
9499
9514
|
"tabs",
|
|
9500
9515
|
"className"
|
|
9501
9516
|
]);
|
|
9502
|
-
const d = "pds-tabs", [h, u] =
|
|
9517
|
+
const d = "pds-tabs", [h, u] = G(a != null ? a : s);
|
|
9503
9518
|
ce(() => {
|
|
9504
9519
|
a !== void 0 && u(a);
|
|
9505
9520
|
}, [a]);
|
|
@@ -9509,7 +9524,7 @@ const Js = (l) => {
|
|
|
9509
9524
|
const p = parseInt(b, 10);
|
|
9510
9525
|
u(p);
|
|
9511
9526
|
}
|
|
9512
|
-
}, E =
|
|
9527
|
+
}, E = de([]);
|
|
9513
9528
|
ce(() => {
|
|
9514
9529
|
n(h);
|
|
9515
9530
|
}, [h, n]), ce(() => {
|
|
@@ -9537,7 +9552,7 @@ const Js = (l) => {
|
|
|
9537
9552
|
C(b - 1), u(b - 1);
|
|
9538
9553
|
}, $ = () => {
|
|
9539
9554
|
E.current[h].focus();
|
|
9540
|
-
},
|
|
9555
|
+
}, z = {
|
|
9541
9556
|
ArrowRight: p,
|
|
9542
9557
|
ArrowLeft: m,
|
|
9543
9558
|
Home: _,
|
|
@@ -9545,7 +9560,7 @@ const Js = (l) => {
|
|
|
9545
9560
|
Space: $,
|
|
9546
9561
|
Enter: $
|
|
9547
9562
|
}[v.code];
|
|
9548
|
-
|
|
9563
|
+
z && (v.preventDefault(), z());
|
|
9549
9564
|
};
|
|
9550
9565
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", L({ className: N([d, i]) }, l), /* @__PURE__ */ e.createElement(
|
|
9551
9566
|
"div",
|
|
@@ -9652,7 +9667,7 @@ let o1 = [
|
|
|
9652
9667
|
const P2 = (t) => {
|
|
9653
9668
|
const s = parseInt(m1(t), 16);
|
|
9654
9669
|
return o1[s % o1.length];
|
|
9655
|
-
}, B2 = (t, s) => t.length > s ? t.slice(0, s) + " ..." : t,
|
|
9670
|
+
}, B2 = (t, s) => t.length > s ? t.slice(0, s) + " ..." : t, on = (o) => {
|
|
9656
9671
|
var d = o, {
|
|
9657
9672
|
linkContent: t,
|
|
9658
9673
|
isRemovable: s,
|
|
@@ -9670,11 +9685,11 @@ const P2 = (t) => {
|
|
|
9670
9685
|
"tagLabel",
|
|
9671
9686
|
"className"
|
|
9672
9687
|
]);
|
|
9673
|
-
const [h, u] =
|
|
9688
|
+
const [h, u] = G(!0), f = "pds-tag", E = r ? `${f}--${r}` : `${f}--${P2(i)}`, C = h ? null : "pds-tag--hide", y = () => {
|
|
9674
9689
|
u((m) => !m);
|
|
9675
9690
|
};
|
|
9676
9691
|
let v, b, p;
|
|
9677
|
-
return t && !s &&
|
|
9692
|
+
return t && !s && Ce(t) ? (v = t.type, b = t.props.href ? "href" : "to", p = b === "href" ? t.props.href : t.props.to) : (v = "span", b = null, p = null), /* @__PURE__ */ e.createElement(
|
|
9678
9693
|
v,
|
|
9679
9694
|
L({
|
|
9680
9695
|
href: b === "href" ? p : null,
|
|
@@ -9702,7 +9717,7 @@ const P2 = (t) => {
|
|
|
9702
9717
|
)
|
|
9703
9718
|
) : null
|
|
9704
9719
|
);
|
|
9705
|
-
},
|
|
9720
|
+
}, dn = (a) => {
|
|
9706
9721
|
var r = a, {
|
|
9707
9722
|
listItems: t,
|
|
9708
9723
|
className: s
|
|
@@ -9716,7 +9731,7 @@ const P2 = (t) => {
|
|
|
9716
9731
|
name: f,
|
|
9717
9732
|
title: E,
|
|
9718
9733
|
org: C
|
|
9719
|
-
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, h && /* @__PURE__ */ e.createElement("div", { className: `${l}__image ${l}__image--avatar` }, /* @__PURE__ */ e.createElement("img", { src: h, alt: u })), f && /* @__PURE__ */ e.createElement("div", { className: `${l}__name` }, f), E && /* @__PURE__ */ e.createElement("div", { className: `${l}__title` }, E), C && /* @__PURE__ */ e.createElement("div", { className: `${l}__org` }, C)), o = (h) =>
|
|
9734
|
+
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, h && /* @__PURE__ */ e.createElement("div", { className: `${l}__image ${l}__image--avatar` }, /* @__PURE__ */ e.createElement("img", { src: h, alt: u })), f && /* @__PURE__ */ e.createElement("div", { className: `${l}__name` }, f), E && /* @__PURE__ */ e.createElement("div", { className: `${l}__title` }, E), C && /* @__PURE__ */ e.createElement("div", { className: `${l}__org` }, C)), o = (h) => Ce(h.linkContent) ? Ve(h.linkContent, {
|
|
9720
9735
|
children: /* @__PURE__ */ e.createElement(c, L({}, h)),
|
|
9721
9736
|
className: `${l}__item`
|
|
9722
9737
|
}) : /* @__PURE__ */ e.createElement("span", { className: `${l}__item` }, /* @__PURE__ */ e.createElement(c, L({}, h))), d = () => t.map((h, u) => /* @__PURE__ */ e.createElement(O1, { key: `tile-${u}` }, o(h), /* @__PURE__ */ e.createElement("div", { className: "pds-tile__separator" })));
|
|
@@ -9776,7 +9791,7 @@ const P2 = (t) => {
|
|
|
9776
9791
|
}
|
|
9777
9792
|
)
|
|
9778
9793
|
), /* @__PURE__ */ e.createElement("span", { className: `${h}__separator` }));
|
|
9779
|
-
},
|
|
9794
|
+
}, mn = (i) => {
|
|
9780
9795
|
var l = i, {
|
|
9781
9796
|
displayType: t = "border",
|
|
9782
9797
|
headingLevel: s = "h2",
|
|
@@ -9808,7 +9823,7 @@ const P2 = (t) => {
|
|
|
9808
9823
|
}
|
|
9809
9824
|
))
|
|
9810
9825
|
);
|
|
9811
|
-
},
|
|
9826
|
+
}, un = (a) => {
|
|
9812
9827
|
var r = a, {
|
|
9813
9828
|
children: t,
|
|
9814
9829
|
className: s
|
|
@@ -9816,7 +9831,7 @@ const P2 = (t) => {
|
|
|
9816
9831
|
"children",
|
|
9817
9832
|
"className"
|
|
9818
9833
|
]);
|
|
9819
|
-
const { isMobile: i } =
|
|
9834
|
+
const { isMobile: i } = $e(ke), l = "pds-dashboard-inner", c = i ? `${l}--isMobile` : `${l}--notMobile`, o = je(t), d = o["header-left"], h = o["header-right"], u = o.content;
|
|
9820
9835
|
return /* @__PURE__ */ e.createElement(
|
|
9821
9836
|
"div",
|
|
9822
9837
|
L({
|
|
@@ -9825,7 +9840,7 @@ const P2 = (t) => {
|
|
|
9825
9840
|
(d || h) && /* @__PURE__ */ e.createElement("div", { className: `${l}__header` }, (d || h) && /* @__PURE__ */ e.createElement("div", { className: `${l}__header-top` }, d && /* @__PURE__ */ e.createElement("div", { className: `${l}__header-left` }, d), h && /* @__PURE__ */ e.createElement("div", { className: `${l}__header-right` }, h))),
|
|
9826
9841
|
u && u
|
|
9827
9842
|
);
|
|
9828
|
-
},
|
|
9843
|
+
}, pn = (y) => {
|
|
9829
9844
|
var v = y, {
|
|
9830
9845
|
alignContent: t = "flex-start",
|
|
9831
9846
|
alignItems: s = "stretch",
|
|
@@ -9858,41 +9873,41 @@ const P2 = (t) => {
|
|
|
9858
9873
|
"className"
|
|
9859
9874
|
]);
|
|
9860
9875
|
let p = E1() <= 640;
|
|
9861
|
-
const m =
|
|
9876
|
+
const m = $e(ke);
|
|
9862
9877
|
m && (p = m.isMobile);
|
|
9863
9878
|
const _ = "pds-flex", g = `${_}-container`, $ = p ? `${g}--mobile` : null;
|
|
9864
|
-
let H = null;
|
|
9865
|
-
p ? H = `${_}-direction--${o}` : n !== "row" && (H = `${_}-direction--${n}`);
|
|
9866
9879
|
let M = null;
|
|
9867
|
-
p ?
|
|
9880
|
+
p ? M = `${_}-direction--${o}` : n !== "row" && (M = `${_}-direction--${n}`);
|
|
9881
|
+
let z = null;
|
|
9882
|
+
p ? d ? d !== "nowrap" && (z = `${_}-wrap--${d}`) : a !== "nowrap" && (z = `${_}-wrap--${a}`) : a !== "nowrap" && (z = `${_}-wrap--${a}`);
|
|
9868
9883
|
let w = null;
|
|
9869
9884
|
p ? u ? u !== "flex-start" && (w = `${_}-justify--${u}`) : i !== "flex-start" && (w = `${_}-justify--${i}`) : i !== "flex-start" && (w = `${_}-justify--${i}`);
|
|
9870
|
-
let
|
|
9871
|
-
p ? l ? l !== "stretch" && (
|
|
9885
|
+
let H = null;
|
|
9886
|
+
p ? l ? l !== "stretch" && (H = `${_}-align-items--${l}`) : s !== "stretch" && (H = `${_}-align-items--${s}`) : s !== "stretch" && (H = `${_}-align-items--${s}`);
|
|
9872
9887
|
let k = null;
|
|
9873
9888
|
p ? c ? c !== "flex-start" && (k = `${_}-align-content--${c}`) : t !== "flex-start" && (k = `${_}-align-content--${t}`) : t !== "flex-start" && (k = `${_}-align-content--${t}`);
|
|
9874
|
-
let
|
|
9875
|
-
return p ? h ? h !== "none" && (
|
|
9889
|
+
let x = null;
|
|
9890
|
+
return p ? h ? h !== "none" && (x = `${_}-gap--${h}`) : r !== "none" && (x = `${_}-gap--${r}`) : r !== "none" && (x = `${_}-gap--${r}`), /* @__PURE__ */ e.createElement(
|
|
9876
9891
|
"div",
|
|
9877
9892
|
L({
|
|
9878
9893
|
className: N([
|
|
9879
9894
|
g,
|
|
9880
9895
|
$,
|
|
9881
|
-
H,
|
|
9882
9896
|
M,
|
|
9883
|
-
w,
|
|
9884
9897
|
z,
|
|
9898
|
+
w,
|
|
9899
|
+
H,
|
|
9885
9900
|
k,
|
|
9886
|
-
|
|
9901
|
+
x,
|
|
9887
9902
|
E != null ? E : ""
|
|
9888
9903
|
])
|
|
9889
9904
|
}, C),
|
|
9890
9905
|
f
|
|
9891
9906
|
);
|
|
9892
|
-
},
|
|
9907
|
+
}, hn = ({
|
|
9893
9908
|
children: t,
|
|
9894
9909
|
mobileMenuMaxWidth: s = 640
|
|
9895
|
-
}) => /* @__PURE__ */ e.createElement(n2, { mobileMenuMaxWidth: s }, t),
|
|
9910
|
+
}) => /* @__PURE__ */ e.createElement(n2, { mobileMenuMaxWidth: s }, t), fn = (c) => {
|
|
9896
9911
|
var o = c, {
|
|
9897
9912
|
children: t,
|
|
9898
9913
|
gridGap: s = "standard",
|
|
@@ -9910,7 +9925,7 @@ const P2 = (t) => {
|
|
|
9910
9925
|
]);
|
|
9911
9926
|
const d = "pds-sidebar-layout", h = `pds-grid pds-grid--${s}`, u = `${d}--${r}`;
|
|
9912
9927
|
let f = !1;
|
|
9913
|
-
const E =
|
|
9928
|
+
const E = $e(ke);
|
|
9914
9929
|
E && (f = E.isMobile);
|
|
9915
9930
|
const C = je(t);
|
|
9916
9931
|
let y = "pds-grid-item pds-grid-item--md-8 pds-grid-item--lg-9", v = "pds-grid-item pds-grid-item--lg-3";
|
|
@@ -9942,7 +9957,7 @@ const P2 = (t) => {
|
|
|
9942
9957
|
}, l),
|
|
9943
9958
|
f ? a === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, p, b) : /* @__PURE__ */ e.createElement(e.Fragment, null, b, p) : n === "left" ? /* @__PURE__ */ e.createElement(e.Fragment, null, p, b) : /* @__PURE__ */ e.createElement(e.Fragment, null, b, p)
|
|
9944
9959
|
);
|
|
9945
|
-
},
|
|
9960
|
+
}, gn = (a) => {
|
|
9946
9961
|
var r = a, {
|
|
9947
9962
|
children: t,
|
|
9948
9963
|
className: s
|
|
@@ -9950,7 +9965,7 @@ const P2 = (t) => {
|
|
|
9950
9965
|
"children",
|
|
9951
9966
|
"className"
|
|
9952
9967
|
]);
|
|
9953
|
-
const i = je(t), l = i.stepper, c = i.form, o =
|
|
9968
|
+
const i = je(t), l = i.stepper, c = i.form, o = de(), [d] = Lt(o), h = d.width;
|
|
9954
9969
|
document.documentElement.style.setProperty(
|
|
9955
9970
|
"--pds-stepper-layout-max-width",
|
|
9956
9971
|
h + "px"
|
|
@@ -9964,7 +9979,7 @@ const P2 = (t) => {
|
|
|
9964
9979
|
},
|
|
9965
9980
|
l
|
|
9966
9981
|
), c && /* @__PURE__ */ e.createElement("div", { className: `${u}__form-container` }, c));
|
|
9967
|
-
},
|
|
9982
|
+
}, _n = (i) => {
|
|
9968
9983
|
var l = i, {
|
|
9969
9984
|
children: t,
|
|
9970
9985
|
gridGap: s = "standard",
|
|
@@ -10000,7 +10015,7 @@ const P2 = (t) => {
|
|
|
10000
10015
|
f
|
|
10001
10016
|
))
|
|
10002
10017
|
);
|
|
10003
|
-
},
|
|
10018
|
+
}, vn = (l) => {
|
|
10004
10019
|
var c = l, {
|
|
10005
10020
|
children: t,
|
|
10006
10021
|
gridGap: s = "standard",
|
|
@@ -10043,10 +10058,10 @@ const P2 = (t) => {
|
|
|
10043
10058
|
};
|
|
10044
10059
|
export {
|
|
10045
10060
|
Pt as Avatar,
|
|
10046
|
-
|
|
10047
|
-
|
|
10061
|
+
dn as AvatarTileList,
|
|
10062
|
+
Fs as Banner,
|
|
10048
10063
|
ss as BranchDiff,
|
|
10049
|
-
|
|
10064
|
+
Hs as Breadcrumb,
|
|
10050
10065
|
mt as Button,
|
|
10051
10066
|
Et as ButtonLink,
|
|
10052
10067
|
f2 as CTALink,
|
|
@@ -10056,103 +10071,104 @@ export {
|
|
|
10056
10071
|
b1 as CardHeading,
|
|
10057
10072
|
rs as CardSelectGroup,
|
|
10058
10073
|
_2 as Checkbox,
|
|
10059
|
-
|
|
10060
|
-
|
|
10074
|
+
Es as CheckboxFieldset,
|
|
10075
|
+
bs as CheckboxGroup,
|
|
10061
10076
|
s2 as ClipboardButton,
|
|
10062
10077
|
us as CodeBlock,
|
|
10063
10078
|
v2 as Combobox,
|
|
10064
10079
|
a1 as ComparisonList,
|
|
10065
10080
|
ot as Container,
|
|
10066
|
-
|
|
10067
|
-
|
|
10068
|
-
|
|
10069
|
-
|
|
10070
|
-
|
|
10081
|
+
zt as DashboardContext,
|
|
10082
|
+
ks as DashboardGlobal,
|
|
10083
|
+
un as DashboardInner,
|
|
10084
|
+
Ns as DashboardNav,
|
|
10085
|
+
Vs as DashboardSearch,
|
|
10071
10086
|
hs as DashboardStat,
|
|
10072
10087
|
Xt as DropdownMenu,
|
|
10073
|
-
|
|
10074
|
-
|
|
10088
|
+
Zs as ExpansionPanel,
|
|
10089
|
+
qs as ExpansionPanelGroup,
|
|
10075
10090
|
fs as FileDiff,
|
|
10076
|
-
|
|
10077
|
-
|
|
10091
|
+
Cs as FileUpload,
|
|
10092
|
+
pn as FlexContainer,
|
|
10093
|
+
gs as FlowSteps,
|
|
10078
10094
|
g2 as FooterHeading,
|
|
10079
|
-
|
|
10080
|
-
|
|
10095
|
+
_s as FooterLinks,
|
|
10096
|
+
hn as GlobalWrapper,
|
|
10081
10097
|
X1 as Heading,
|
|
10082
10098
|
O as Icon,
|
|
10083
10099
|
bt as IconButton,
|
|
10084
10100
|
dt as IndicatorBadge,
|
|
10085
|
-
|
|
10086
|
-
|
|
10087
|
-
|
|
10101
|
+
Ps as InlineMessage,
|
|
10102
|
+
$s as InputGroup,
|
|
10103
|
+
Ms as LinkNewWindow,
|
|
10088
10104
|
os as LinksCard,
|
|
10089
10105
|
l2 as MenuButton,
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10106
|
+
zs as Modal,
|
|
10107
|
+
Is as NavMenu,
|
|
10108
|
+
Ss as Navbar,
|
|
10093
10109
|
is as NewSiteCard,
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
10110
|
+
Us as Pagination,
|
|
10111
|
+
js as Panel,
|
|
10112
|
+
Ks as PanelList,
|
|
10113
|
+
Xs as PanelRow,
|
|
10098
10114
|
y1 as PantheonLogo,
|
|
10099
10115
|
c2 as PlatformIcon,
|
|
10100
|
-
|
|
10116
|
+
Ys as Popover,
|
|
10101
10117
|
ds as PricingCard,
|
|
10102
|
-
|
|
10118
|
+
Qs as ProgressBar,
|
|
10103
10119
|
R2 as ProgressRing,
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
10120
|
+
Js as PullQuote,
|
|
10121
|
+
ws as RadioGroup,
|
|
10122
|
+
en as RefreshChecker,
|
|
10107
10123
|
F2 as RefreshCheckerState,
|
|
10108
10124
|
ke as ResponsiveContext,
|
|
10109
|
-
|
|
10125
|
+
Bs as SectionMessage,
|
|
10110
10126
|
ns as SegmentedButton,
|
|
10111
10127
|
i2 as Select,
|
|
10112
10128
|
o2 as SelectOptionGroup,
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10129
|
+
Ts as SideNav,
|
|
10130
|
+
As as SideNavCompact,
|
|
10131
|
+
fn as SidebarLayout,
|
|
10116
10132
|
ms as SiteCard,
|
|
10117
|
-
|
|
10118
|
-
|
|
10133
|
+
tn as SiteDashboardHeading,
|
|
10134
|
+
vs as SiteFooter,
|
|
10119
10135
|
L2 as SitePlanLevelLabel,
|
|
10120
10136
|
L1 as SiteTypeIcon,
|
|
10121
|
-
|
|
10137
|
+
xs as SiteTypeLabel,
|
|
10122
10138
|
C2 as Skiplink,
|
|
10123
|
-
|
|
10124
|
-
|
|
10139
|
+
sn as SocialLinks,
|
|
10140
|
+
Mt as Spinner,
|
|
10125
10141
|
as as SplitButton,
|
|
10126
10142
|
Gt as StatusBadge,
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
|
|
10135
|
-
|
|
10143
|
+
nn as StatusIndicator,
|
|
10144
|
+
an as Stepper,
|
|
10145
|
+
gn as StepperLayout,
|
|
10146
|
+
ys as Switch,
|
|
10147
|
+
Ds as TabMenu,
|
|
10148
|
+
ln as Table,
|
|
10149
|
+
cn as TableOfContents,
|
|
10150
|
+
rn as Tabs,
|
|
10151
|
+
on as Tag,
|
|
10136
10152
|
vt as Tally,
|
|
10137
10153
|
$1 as TextInput,
|
|
10138
|
-
|
|
10139
|
-
|
|
10154
|
+
Ls as Textarea,
|
|
10155
|
+
_n as ThreeItemLayout,
|
|
10140
10156
|
W2 as Tile,
|
|
10141
|
-
|
|
10157
|
+
mn as TileGrid,
|
|
10142
10158
|
V2 as Toast,
|
|
10143
10159
|
S2 as ToastType,
|
|
10144
|
-
|
|
10160
|
+
Ws as Toaster,
|
|
10145
10161
|
Y1 as ToggleButton,
|
|
10146
10162
|
Pe as Tooltip,
|
|
10147
|
-
|
|
10148
|
-
|
|
10163
|
+
vn as TwoItemLayout,
|
|
10164
|
+
Os as UserMenu,
|
|
10149
10165
|
ls as UtilityButton,
|
|
10150
|
-
|
|
10166
|
+
Rs as WorkspaceSelector,
|
|
10151
10167
|
n1 as badgeTypes,
|
|
10152
10168
|
ts as iconList,
|
|
10153
10169
|
o1 as tagColors,
|
|
10154
10170
|
t2 as useClipboard,
|
|
10155
|
-
|
|
10171
|
+
Gs as useToast,
|
|
10156
10172
|
E1 as useWindowWidth
|
|
10157
10173
|
};
|
|
10158
10174
|
//# sourceMappingURL=index.js.map
|